chore: auto-commit (27 archivos)
- .claude/CLAUDE.md - .claude/rules/create_agent.md - agents/_specials/father-bot/prompts/system.md - agents/_template/config.yaml - agents/_template_robot/config.yaml - cmd/agentctl/autoavatar.go - cmd/launcher/sqlite.go - dev-scripts/_common.sh - dev-scripts/agent/create-full.sh - dev-scripts/agent/delete-full.sh - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -407,7 +407,7 @@ type diagMachine interface {
|
||||
OwnIdentity() *id.Device
|
||||
ExportCrossSigningKeys() crypto.CrossSigningSeeds
|
||||
ResolveTrustContext(ctx context.Context, device *id.Device) (id.TrustState, error)
|
||||
IsDeviceTrusted(device *id.Device) bool
|
||||
IsDeviceTrusted(ctx context.Context, device *id.Device) bool
|
||||
}
|
||||
|
||||
// logCryptoDiagnostics logs the E2EE state after initialization.
|
||||
@@ -512,7 +512,7 @@ func logDeviceTrust(ctx context.Context, machine diagMachine, device *id.Device,
|
||||
logger.Info("e2ee diagnostics: own device trust state",
|
||||
"device_id", device.DeviceID,
|
||||
"trust_state", trust.String(),
|
||||
"is_trusted", machine.IsDeviceTrusted(device),
|
||||
"is_trusted", machine.IsDeviceTrusted(ctx, device),
|
||||
)
|
||||
|
||||
if trust < id.TrustStateCrossSignedTOFU {
|
||||
@@ -533,7 +533,7 @@ func truncateKey(key string) string {
|
||||
|
||||
// SetPresence sets the bot's presence status (online, unavailable, offline).
|
||||
func (c *Client) SetPresence(ctx context.Context, status event.Presence) error {
|
||||
return c.raw.SetPresence(ctx, status)
|
||||
return c.raw.SetPresence(ctx, mautrix.ReqPresence{Presence: status})
|
||||
}
|
||||
|
||||
// Raw returns the underlying mautrix.Client for advanced use.
|
||||
|
||||
@@ -103,7 +103,7 @@ func (l *Listener) Run(ctx context.Context) error {
|
||||
}
|
||||
|
||||
l.logger.Info("received room invite, joining", "room", evt.RoomID, "inviter", evt.Sender)
|
||||
if _, err := l.client.raw.JoinRoom(ctx, evt.RoomID.String(), "", nil); err != nil {
|
||||
if _, err := l.client.raw.JoinRoom(ctx, evt.RoomID.String(), nil); err != nil {
|
||||
l.logger.Error("failed to auto-join room", "room", evt.RoomID, "err", err)
|
||||
} else {
|
||||
l.logger.Info("auto-joined room", "room", evt.RoomID)
|
||||
|
||||
Reference in New Issue
Block a user