@songsid/agend 2.2.0-beta.2 → 2.2.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -24
- package/README.zh-TW.md +40 -24
- package/dist/agent-cli-instructions.md +6 -2
- package/dist/agent-cli.js +15 -7
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.js +3 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-whats-new.js +16 -4
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +3 -1
- package/dist/auth-api.js +17 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/antigravity.d.ts +33 -0
- package/dist/backend/antigravity.js +126 -18
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/claude-carry.d.ts +22 -0
- package/dist/backend/claude-carry.js +170 -0
- package/dist/backend/claude-carry.js.map +1 -0
- package/dist/backend/claude-code.d.ts +65 -2
- package/dist/backend/claude-code.js +226 -33
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-metadata.d.ts +33 -0
- package/dist/backend/codex-metadata.js +122 -18
- package/dist/backend/codex-metadata.js.map +1 -1
- package/dist/backend/codex.d.ts +3 -0
- package/dist/backend/codex.js +17 -1
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/credential-profile.d.ts +40 -3
- package/dist/backend/credential-profile.js +113 -5
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/backend/effort-metadata.d.ts +37 -1
- package/dist/backend/effort-metadata.js +86 -15
- package/dist/backend/effort-metadata.js.map +1 -1
- package/dist/backend/grok.d.ts +4 -0
- package/dist/backend/grok.js +14 -0
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.d.ts +27 -1
- package/dist/backend/kiro.js +63 -10
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/launch-effort.d.ts +61 -0
- package/dist/backend/launch-effort.js +170 -0
- package/dist/backend/launch-effort.js.map +1 -0
- package/dist/backend/muse.d.ts +84 -0
- package/dist/backend/muse.js +449 -53
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/types.d.ts +48 -2
- package/dist/backend/types.js +12 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-command.d.ts +91 -0
- package/dist/backend-command.js +122 -0
- package/dist/backend-command.js.map +1 -0
- package/dist/background-work-ended.d.ts +18 -0
- package/dist/background-work-ended.js +30 -0
- package/dist/background-work-ended.js.map +1 -0
- package/dist/cache-service.d.ts +2 -0
- package/dist/cache-service.js +2 -1
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +26 -1
- package/dist/channel/adapters/discord.js +103 -3
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +35 -3
- package/dist/channel/adapters/telegram.js +122 -23
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-tools.js +5 -3
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/message-edit-errors.d.ts +5 -0
- package/dist/channel/message-edit-errors.js +24 -0
- package/dist/channel/message-edit-errors.js.map +1 -0
- package/dist/channel/telegram-markdown.d.ts +6 -0
- package/dist/channel/telegram-markdown.js +104 -0
- package/dist/channel/telegram-markdown.js.map +1 -0
- package/dist/channel/tool-router.d.ts +2 -0
- package/dist/channel/tool-router.js +6 -5
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/channel/types.d.ts +46 -4
- package/dist/cli.js +184 -34
- package/dist/cli.js.map +1 -1
- package/dist/command-table.d.ts +2 -2
- package/dist/command-table.js +5 -2
- package/dist/command-table.js.map +1 -1
- package/dist/compact-watch.d.ts +86 -0
- package/dist/compact-watch.js +288 -0
- package/dist/compact-watch.js.map +1 -0
- package/dist/config-validator.js +55 -5
- package/dist/config-validator.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/cross-instance-envelope.js +2 -0
- package/dist/cross-instance-envelope.js.map +1 -1
- package/dist/daemon.d.ts +129 -1
- package/dist/daemon.js +754 -94
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +64 -8
- package/dist/delivery-outbox.js +315 -24
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +18 -1
- package/dist/delivery-reconciliation.js +67 -2
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/doctor.js +7 -0
- package/dist/doctor.js.map +1 -1
- package/dist/fleet-context.d.ts +12 -1
- package/dist/fleet-manager.d.ts +392 -19
- package/dist/fleet-manager.js +2030 -275
- package/dist/fleet-manager.js.map +1 -1
- package/dist/forged-envelope-scan.d.ts +4 -3
- package/dist/forged-envelope-scan.js +4 -3
- package/dist/forged-envelope-scan.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +84 -16
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +16 -1
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -1
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +4 -0
- package/dist/host-memory.d.ts +10 -0
- package/dist/host-memory.js +33 -1
- package/dist/host-memory.js.map +1 -1
- package/dist/human-delivery-receipts.d.ts +83 -0
- package/dist/human-delivery-receipts.js +194 -0
- package/dist/human-delivery-receipts.js.map +1 -0
- package/dist/install-lock.d.ts +18 -1
- package/dist/install-lock.js +30 -3
- package/dist/install-lock.js.map +1 -1
- package/dist/instance-avatar.d.ts +5 -4
- package/dist/instance-avatar.js +12 -8
- package/dist/instance-avatar.js.map +1 -1
- package/dist/instance-config-impact.js +1 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +25 -6
- package/dist/instance-lifecycle.js +76 -27
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +3 -3
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-compact-pane.d.ts +38 -0
- package/dist/kiro-compact-pane.js +57 -0
- package/dist/kiro-compact-pane.js.map +1 -0
- package/dist/kiro-log-gate.d.ts +42 -0
- package/dist/kiro-log-gate.js +39 -0
- package/dist/kiro-log-gate.js.map +1 -0
- package/dist/launchd-handoff.d.ts +43 -0
- package/dist/launchd-handoff.js +56 -0
- package/dist/launchd-handoff.js.map +1 -0
- package/dist/locale.js +268 -42
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +99 -0
- package/dist/log-service.js +243 -0
- package/dist/log-service.js.map +1 -0
- package/dist/log-steps.d.ts +169 -0
- package/dist/log-steps.js +858 -0
- package/dist/log-steps.js.map +1 -0
- package/dist/login-controller.d.ts +20 -3
- package/dist/login-controller.js +71 -19
- package/dist/login-controller.js.map +1 -1
- package/dist/login-flows.d.ts +5 -2
- package/dist/login-flows.js +5 -4
- package/dist/login-flows.js.map +1 -1
- package/dist/login-shell.d.ts +21 -0
- package/dist/login-shell.js +98 -0
- package/dist/login-shell.js.map +1 -0
- package/dist/memory-pressure.d.ts +13 -1
- package/dist/memory-pressure.js +50 -10
- package/dist/memory-pressure.js.map +1 -1
- package/dist/needs-you-hub.js +2 -0
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you-live.d.ts +6 -0
- package/dist/needs-you-live.js +23 -3
- package/dist/needs-you-live.js.map +1 -1
- package/dist/outbound-handlers.d.ts +100 -0
- package/dist/outbound-handlers.js +277 -93
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +30 -15
- package/dist/outbound-schemas.js +23 -5
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/provider-probe.d.ts +29 -0
- package/dist/provider-probe.js +198 -2
- package/dist/provider-probe.js.map +1 -1
- package/dist/public-link-progress.d.ts +1 -1
- package/dist/public-link-progress.js +8 -2
- package/dist/public-link-progress.js.map +1 -1
- package/dist/public-preview.d.ts +101 -0
- package/dist/public-preview.js +236 -0
- package/dist/public-preview.js.map +1 -0
- package/dist/public-web-gateway.d.ts +2 -0
- package/dist/public-web-gateway.js +20 -6
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +24 -1
- package/dist/public-web-link.js +63 -9
- package/dist/public-web-link.js.map +1 -1
- package/dist/quickstart-api.d.ts +1 -1
- package/dist/quickstart-api.js +8 -6
- package/dist/quickstart-api.js.map +1 -1
- package/dist/quickstart.d.ts +12 -0
- package/dist/quickstart.js +36 -6
- package/dist/quickstart.js.map +1 -1
- package/dist/reply-buttons-controller.d.ts +89 -5
- package/dist/reply-buttons-controller.js +273 -8
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-buttons.d.ts +48 -3
- package/dist/reply-buttons.js +105 -10
- package/dist/reply-buttons.js.map +1 -1
- package/dist/reply-polls.d.ts +85 -0
- package/dist/reply-polls.js +154 -0
- package/dist/reply-polls.js.map +1 -0
- package/dist/restart-guard.d.ts +6 -3
- package/dist/restart-guard.js +6 -3
- package/dist/restart-guard.js.map +1 -1
- package/dist/restart-progress.d.ts +33 -2
- package/dist/restart-progress.js +30 -2
- package/dist/restart-progress.js.map +1 -1
- package/dist/sd-notify.d.ts +22 -1
- package/dist/sd-notify.js +63 -10
- package/dist/sd-notify.js.map +1 -1
- package/dist/service-activation.d.ts +15 -7
- package/dist/service-activation.js +42 -26
- package/dist/service-activation.js.map +1 -1
- package/dist/service-installer.d.ts +55 -0
- package/dist/service-installer.js +90 -3
- package/dist/service-installer.js.map +1 -1
- package/dist/service-plan.d.ts +11 -0
- package/dist/service-plan.js +23 -0
- package/dist/service-plan.js.map +1 -1
- package/dist/settings-api.js +14 -4
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +4 -2
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +2 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/spawn-gate.js +5 -1
- package/dist/spawn-gate.js.map +1 -1
- package/dist/spawn-hold-reply.d.ts +12 -0
- package/dist/spawn-hold-reply.js +39 -0
- package/dist/spawn-hold-reply.js.map +1 -0
- package/dist/systemd-peer-bus.d.ts +95 -0
- package/dist/systemd-peer-bus.js +430 -0
- package/dist/systemd-peer-bus.js.map +1 -0
- package/dist/systemd-runtime.d.ts +27 -1
- package/dist/systemd-runtime.js +69 -7
- package/dist/systemd-runtime.js.map +1 -1
- package/dist/tips.js +1 -1
- package/dist/tips.js.map +1 -1
- package/dist/tool-permissions.js +3 -3
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.js +3 -2
- package/dist/tool-progress.js.map +1 -1
- package/dist/topic-commands.d.ts +71 -4
- package/dist/topic-commands.js +167 -34
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-delta-reader.d.ts +3 -3
- package/dist/transcript-delta-reader.js +8 -8
- package/dist/transcript-delta-reader.js.map +1 -1
- package/dist/transcript-jsonl.d.ts +85 -3
- package/dist/transcript-jsonl.js +156 -13
- package/dist/transcript-jsonl.js.map +1 -1
- package/dist/transcript-monitor.d.ts +11 -0
- package/dist/transcript-monitor.js +61 -13
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-sources.d.ts +24 -0
- package/dist/transcript-sources.js +211 -56
- package/dist/transcript-sources.js.map +1 -1
- package/dist/tunnel/cloudflared.d.ts +7 -15
- package/dist/tunnel/cloudflared.js +36 -1
- package/dist/tunnel/cloudflared.js.map +1 -1
- package/dist/tunnel/purpose-lane.d.ts +5 -1
- package/dist/tunnel/purpose-lane.js +14 -7
- package/dist/tunnel/purpose-lane.js.map +1 -1
- package/dist/tunnel/types.d.ts +5 -1
- package/dist/tunnel/types.js.map +1 -1
- package/dist/turn-resume.d.ts +2 -0
- package/dist/turn-resume.js +1 -1
- package/dist/turn-resume.js.map +1 -1
- package/dist/types.d.ts +22 -0
- package/dist/ui/chat-commands.js +1 -0
- package/dist/ui/chat-mentions.js +63 -0
- package/dist/ui/chat-render.js +80 -10
- package/dist/ui/chat-store.js +70 -6
- package/dist/ui/chat-strings.js +62 -32
- package/dist/ui/chat-thread.js +199 -24
- package/dist/ui/chat-time.js +80 -0
- package/dist/ui/chat-tour.js +17 -14
- package/dist/ui/panel-chat.js +45 -21
- package/dist/ui/panel-details.js +2 -0
- package/dist/ui/panel-fleet.js +213 -58
- package/dist/ui/panel-log.js +428 -0
- package/dist/ui/panel-needs.js +14 -10
- package/dist/ui/panel-settings.js +82 -17
- package/dist/ui/preview-panel.js +55 -15
- package/dist/ui/preview-status.js +28 -0
- package/dist/ui/preview.js +44 -3
- package/dist/ui/settings-dialogs.js +11 -6
- package/dist/ui/settings-model.js +3 -1
- package/dist/ui/settings-strings.js +32 -12
- package/dist/ui/settings-token.js +8 -1
- package/dist/ui/settings-wizard.js +5 -3
- package/dist/ui/shared/app-i18n.js +41 -15
- package/dist/ui/shared/app-prefs.js +250 -0
- package/dist/ui/shared/app-route.js +6 -1
- package/dist/ui/shared/app-shell.js +165 -8
- package/dist/ui/shared/app-store.js +5 -1
- package/dist/ui/shared/app-stream.js +26 -5
- package/dist/ui/shared/app.css +170 -30
- package/dist/ui/shared/app.js +11 -1
- package/dist/ui/shared/fonts/README.md +1 -1
- package/dist/ui/shared/header-tools.js +83 -13
- package/dist/ui/shared/instance-nav.js +178 -51
- package/dist/ui/shared/instance-switch.js +8 -5
- package/dist/ui/shared/panel-view.js +21 -4
- package/dist/ui/shared/signin.js +15 -9
- package/dist/ui/shared/theme.js +39 -7
- package/dist/ui/shared/tokens.css +1 -1
- package/dist/ui/shared/ui-icons.js +2 -0
- package/dist/ui/shared/usage-dialog.js +23 -5
- package/dist/ui/shared/view-strings.js +40 -4
- package/dist/ui/signin.html +8 -3
- package/dist/unrecognised-prompt.d.ts +23 -0
- package/dist/unrecognised-prompt.js +74 -0
- package/dist/unrecognised-prompt.js.map +1 -0
- package/dist/update-check.d.ts +31 -0
- package/dist/update-check.js +47 -0
- package/dist/update-check.js.map +1 -1
- package/dist/update-install.d.ts +13 -1
- package/dist/update-install.js +16 -4
- package/dist/update-install.js.map +1 -1
- package/dist/update-launch.d.ts +48 -1
- package/dist/update-launch.js +159 -5
- package/dist/update-launch.js.map +1 -1
- package/dist/update-marker.d.ts +51 -0
- package/dist/update-marker.js +61 -0
- package/dist/update-marker.js.map +1 -1
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +1 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/providers.d.ts +62 -13
- package/dist/usage/providers.js +256 -68
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/statusline-usage.d.ts +6 -2
- package/dist/usage/statusline-usage.js +10 -4
- package/dist/usage/statusline-usage.js.map +1 -1
- package/dist/view-api.js +31 -9
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +82 -4
- package/dist/web-api.js +632 -88
- package/dist/web-api.js.map +1 -1
- package/dist/web-auth.js +5 -2
- package/dist/web-auth.js.map +1 -1
- package/dist/web-chat-history.d.ts +26 -1
- package/dist/web-chat-history.js +47 -8
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +41 -5
- package/dist/web-commands.js +25 -7
- package/dist/web-commands.js.map +1 -1
- package/dist/web-login.d.ts +14 -0
- package/dist/web-login.js +4 -2
- package/dist/web-login.js.map +1 -1
- package/dist/web-mentions.d.ts +44 -0
- package/dist/web-mentions.js +75 -0
- package/dist/web-mentions.js.map +1 -0
- package/dist/web-prefs.d.ts +81 -0
- package/dist/web-prefs.js +297 -0
- package/dist/web-prefs.js.map +1 -0
- package/dist/web-preview.d.ts +14 -1
- package/dist/web-preview.js +35 -13
- package/dist/web-preview.js.map +1 -1
- package/dist/web-profile.d.ts +32 -0
- package/dist/web-profile.js +132 -0
- package/dist/web-profile.js.map +1 -0
- package/dist/web-reply-files.d.ts +45 -0
- package/dist/web-reply-files.js +223 -0
- package/dist/web-reply-files.js.map +1 -0
- package/dist/web-schedules.d.ts +12 -0
- package/dist/web-schedules.js +34 -0
- package/dist/web-schedules.js.map +1 -0
- package/dist/web-server-drain.d.ts +10 -0
- package/dist/web-server-drain.js +50 -0
- package/dist/web-server-drain.js.map +1 -0
- package/dist/web-session.d.ts +14 -0
- package/dist/web-session.js +11 -1
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +3 -1
- package/dist/web-settings-patch.js +4 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +4 -0
- package/dist/web-shell-routes.js +9 -0
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-upload.d.ts +135 -7
- package/dist/web-upload.js +315 -51
- package/dist/web-upload.js.map +1 -1
- package/launcher/install-admission.cjs +61 -6
- package/package.json +3 -3
- package/templates/launchd.plist.ejs +3 -1
- package/templates/systemd.service.ejs +2 -1
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* OWN kiro
|
|
7
7
|
* transcript for fleet-envelope shapes (`[from:<instance>] … (message_id:
|
|
8
8
|
* xmsg-…)`) and check each message_id against the durable delivery record
|
|
9
|
-
* (#856's `delivery_status` message_id selector).
|
|
10
|
-
*
|
|
9
|
+
* (#856's `delivery_status` message_id selector). A missing retained record
|
|
10
|
+
* triggers a verification warning; retention expiry also makes a real message
|
|
11
|
+
* unverifiable, so this is not proof that the receiver fabricated the turn.
|
|
11
12
|
*
|
|
12
13
|
* Only kiro has a reader here: its conversation store
|
|
13
14
|
* (`~/.local/share/kiro-cli/data.sqlite3`, conversations_v2) is on disk.
|
|
@@ -60,7 +61,7 @@ export declare function readKiroAssistantTexts(workingDirectory: string, kiroDbP
|
|
|
60
61
|
export declare function verifyEnvelopeCandidates(outboxDbPath: string, messageIds: string[]): Map<string, CandidateVerdict>;
|
|
61
62
|
/**
|
|
62
63
|
* The exact correction to inject into the instance (send_to_instance or a
|
|
63
|
-
* mid-turn steer): the message
|
|
64
|
+
* mid-turn steer): no retained row verifies the message. An expired row is not proof of non-delivery.
|
|
64
65
|
*/
|
|
65
66
|
export declare function formatForgedEnvelopeWarning(instanceName: string, finding: EnvelopeCandidate): string;
|
|
66
67
|
export type KiroForgedScanStatus = "clean" | "forged-envelopes" | "no-conversation" | "unreadable-store" | "partially-unverified";
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* OWN kiro
|
|
7
7
|
* transcript for fleet-envelope shapes (`[from:<instance>] … (message_id:
|
|
8
8
|
* xmsg-…)`) and check each message_id against the durable delivery record
|
|
9
|
-
* (#856's `delivery_status` message_id selector).
|
|
10
|
-
*
|
|
9
|
+
* (#856's `delivery_status` message_id selector). A missing retained record
|
|
10
|
+
* triggers a verification warning; retention expiry also makes a real message
|
|
11
|
+
* unverifiable, so this is not proof that the receiver fabricated the turn.
|
|
11
12
|
*
|
|
12
13
|
* Only kiro has a reader here: its conversation store
|
|
13
14
|
* (`~/.local/share/kiro-cli/data.sqlite3`, conversations_v2) is on disk.
|
|
@@ -141,7 +142,7 @@ export function verifyEnvelopeCandidates(outboxDbPath, messageIds) {
|
|
|
141
142
|
}
|
|
142
143
|
/**
|
|
143
144
|
* The exact correction to inject into the instance (send_to_instance or a
|
|
144
|
-
* mid-turn steer): the message
|
|
145
|
+
* mid-turn steer): no retained row verifies the message. An expired row is not proof of non-delivery.
|
|
145
146
|
*/
|
|
146
147
|
export function formatForgedEnvelopeWarning(instanceName, finding) {
|
|
147
148
|
return t("delivery.forged_warning", finding.fromInstance, finding.messageId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forged-envelope-scan.js","sourceRoot":"","sources":["../src/forged-envelope-scan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,c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AAE,IAAI,CAAC,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC,GAAG,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AACzH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: credential-profiles
|
|
3
|
-
description: Run agents on more than one subscription of the same backend. Use when someone asks for a worker on a different account, wants an agent moved to another subscription, or asks which subscription an agent is using. Currently kiro-cli and
|
|
3
|
+
description: Run agents on more than one subscription of the same backend. Use when someone asks for a worker on a different account, wants an agent moved to another subscription, or asks which subscription an agent is using. Currently kiro-cli, codex and claude-code.
|
|
4
4
|
roles: [general]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -10,15 +10,17 @@ One AgEnD fleet normally shares one login per backend. A **credential profile**
|
|
|
10
10
|
is a named, separate login for the same backend, so two agents can run on two
|
|
11
11
|
subscriptions at once.
|
|
12
12
|
|
|
13
|
-
`kiro-cli` and `
|
|
14
|
-
than setting an option that will be ignored.
|
|
13
|
+
`kiro-cli`, `codex` and `claude-code` have profiles today. For any other backend,
|
|
14
|
+
say so rather than setting an option that will be ignored.
|
|
15
15
|
|
|
16
16
|
**The two behave differently when you switch, and it is not a setting.** Kiro
|
|
17
17
|
keeps its conversations inside the same database as its login, so a different
|
|
18
18
|
subscription is a different set of them: switching is a new conversation. Codex
|
|
19
19
|
keeps its login in one file beside conversation stores that carry no account, so
|
|
20
|
-
switching leaves the history where it is and both subscriptions see it.
|
|
21
|
-
|
|
20
|
+
switching leaves the history where it is and both subscriptions see it. Claude
|
|
21
|
+
Code behaves like Kiro: the profile is its whole config directory, conversations
|
|
22
|
+
included, so switching is a new conversation. Say which one you are talking
|
|
23
|
+
about.
|
|
22
24
|
|
|
23
25
|
## Is a profile already set up?
|
|
24
26
|
|
|
@@ -34,15 +36,44 @@ the command, do not try to work around the refusal.
|
|
|
34
36
|
Ask the operator to run this on the host once per subscription:
|
|
35
37
|
|
|
36
38
|
```
|
|
37
|
-
XDG_DATA_HOME="${AGEND_HOME
|
|
39
|
+
XDG_DATA_HOME="${AGEND_HOME:-$HOME/.agend}/credential-profiles/kiro-cli/<profile>" kiro-cli login
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
For codex the variable and the path are different:
|
|
41
43
|
|
|
42
44
|
```
|
|
43
|
-
CODEX_HOME="${AGEND_HOME
|
|
45
|
+
CODEX_HOME="${AGEND_HOME:-$HOME/.agend}/credential-profiles/codex/<profile>" codex login
|
|
44
46
|
```
|
|
45
47
|
|
|
48
|
+
For claude-code a fleet admin can do it **from chat**, no host access needed:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
/login claude-code <profile>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
It opens the same browser-terminal login as `/login claude-code`, for that
|
|
55
|
+
profile only. Or on the host:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
CLAUDE_CONFIG_DIR="${AGEND_HOME:-$HOME/.agend}/credential-profiles/claude-code/<profile>" claude auth login
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Kiro and codex profiles cannot be signed in from chat yet: `/login kiro-cli <profile>`
|
|
62
|
+
answers with the host command to run.
|
|
63
|
+
|
|
64
|
+
A Claude Code profile keeps its own login, trust and conversations, and a
|
|
65
|
+
`settings.json` that starts as a copy of the user's; the user's `CLAUDE.md`,
|
|
66
|
+
agents, commands, skills, output styles and plugins are shared with it.
|
|
67
|
+
|
|
68
|
+
**When a switch was refused, relay the command from the refusal, character for
|
|
69
|
+
character** — never one you assembled from the templates above. It carries the
|
|
70
|
+
exact absolute path AgEnD launches with. For claude-code this matters more than
|
|
71
|
+
anywhere: on macOS the login is stored under a Keychain item named after that
|
|
72
|
+
path string, so a login under a differently spelled path (a relative
|
|
73
|
+
`AGEND_HOME`, a trailing slash, a `~` that was never expanded) lands in another
|
|
74
|
+
item, and the agent still finds no login.
|
|
75
|
+
For claude-code the refusal also names `/login claude-code <profile>`: offer that first, since it works from chat.
|
|
76
|
+
|
|
46
77
|
## Create a worker on another subscription
|
|
47
78
|
|
|
48
79
|
```
|
|
@@ -71,8 +102,8 @@ restarted for you** and the reply says `restarted: true`. A paused or stopped on
|
|
|
71
102
|
is not started: the reply says `restarted: false`, and the switch applies at its
|
|
72
103
|
next start.
|
|
73
104
|
|
|
74
|
-
**For kiro**, a switch is always a **new conversation
|
|
75
|
-
(`conversation_carried_over: false`).
|
|
105
|
+
**For kiro**, a switch is always a **new conversation**
|
|
106
|
+
(`conversation_carried_over: false`). Kiro keeps its conversations in the same
|
|
76
107
|
database as its login, so a different subscription has a different set of them
|
|
77
108
|
and there is nothing to resume — AgEnD does not even try. What it does instead
|
|
78
109
|
is hand the new session a summary of what the old one was doing
|
|
@@ -80,6 +111,34 @@ is hand the new session a summary of what the old one was doing
|
|
|
80
111
|
transcript. Tell the user plainly: the agent restarted on the other
|
|
81
112
|
subscription, it knows what it was doing, it cannot quote what was said.
|
|
82
113
|
|
|
114
|
+
**For claude-code**, AgEnD copies the transcript and its folder into the new
|
|
115
|
+
profile's directory and resumes it there with `--continue`. The originals are
|
|
116
|
+
left untouched; the switch copies, never moves.
|
|
117
|
+
|
|
118
|
+
**Reply fields to relay:**
|
|
119
|
+
|
|
120
|
+
- `conversation_carried_over: true` — the copy succeeded and the agent resumed
|
|
121
|
+
the same conversation on the new account. The reply also carries
|
|
122
|
+
`conversation_note`: relay it. It says the old copy is still there and
|
|
123
|
+
warns that the next turn re-reads the full history from a cold cache — one
|
|
124
|
+
slower, full-price turn on the new subscription.
|
|
125
|
+
|
|
126
|
+
- `conversation_carried_over: false` + `carry_failed: "<reason>"` — the copy
|
|
127
|
+
could not be made. Common reasons: no session id recorded, not enough free
|
|
128
|
+
space, or the new profile already holds a *different* version of this
|
|
129
|
+
conversation (an existing older copy of the same conversation is replaced
|
|
130
|
+
safely; a different conversation is refused). The instance starts fresh and
|
|
131
|
+
`handover_chars` says how much context the new session received. Relay
|
|
132
|
+
`carry_failed` plainly to the user.
|
|
133
|
+
|
|
134
|
+
- `conversation_carried_over: true` with no `carry_failed` and no
|
|
135
|
+
`conversation_note` — the backend shares its history across profiles (codex)
|
|
136
|
+
or some other case where no copy was needed; relay the `conversation_note`
|
|
137
|
+
regardless.
|
|
138
|
+
|
|
139
|
+
**Always read and relay `conversation_carried_over`, `conversation_note` and
|
|
140
|
+
`carry_failed` from the actual response.** Do not predict the outcome.
|
|
141
|
+
|
|
83
142
|
**For codex** the reply says `conversation_carried_over: true` and carries a
|
|
84
143
|
`conversation_note`. Relay it as what it is — a statement about where the
|
|
85
144
|
history lives, not a promise about what happens next. The accurate sentence is
|
|
@@ -121,7 +180,12 @@ are two quotas, and adding them together would give a number that is true of
|
|
|
121
180
|
neither. An agent with no profile appears under the plain `Kiro` row. Codex works
|
|
122
181
|
the same way: `Codex (<profile>)` rows next to the plain `Codex`.
|
|
123
182
|
|
|
124
|
-
|
|
183
|
+
Claude Code also has a row per profile: `Claude (work)`, `Claude (personal)`,
|
|
184
|
+
next to the plain `Claude` for the default login. A profile reads quota from its
|
|
185
|
+
own login; a profile that is configured but has never been signed in shows
|
|
186
|
+
**Not logged in — run `/login claude-code <profile>` to sign in**.
|
|
187
|
+
|
|
188
|
+
A kiro profile that is configured but has never been logged in still gets a row,
|
|
125
189
|
reading **Signed out — run `kiro-cli` to log in**. That is the reminder to go
|
|
126
190
|
and log it in, so report it as such rather than as a missing subscription.
|
|
127
191
|
|
|
@@ -132,16 +196,20 @@ and log it in, so report it as such rather than as a missing subscription.
|
|
|
132
196
|
- Quotas only add up if the profiles are genuinely different billing accounts.
|
|
133
197
|
Two profiles logged into the same account do not double anything, and it is
|
|
134
198
|
worth saying so before someone sets this up expecting more headroom.
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
199
|
+
- Claude Code profiles now each have their own usage row (`Claude (<profile>)`),
|
|
200
|
+
reading quota from that profile's own login.
|
|
201
|
+
- Switching a kiro profile does not carry the conversation across; the agent
|
|
202
|
+
gets a summary of the work, not the transcript. Say anything that must survive
|
|
203
|
+
verbatim in the channel before switching. For claude-code, AgEnD copies the
|
|
204
|
+
conversation automatically; relay `conversation_carried_over` and, if it is
|
|
205
|
+
false, the `carry_failed` reason and the cold-cache note from
|
|
206
|
+
`conversation_note` when carry succeeds.
|
|
139
207
|
## Do not
|
|
140
208
|
|
|
141
209
|
- Do not invent a profile that has never been logged in and report success —
|
|
142
210
|
the switch is refused, and the refusal tells you what to relay.
|
|
143
|
-
- Do not set `credential_profile` for a backend other than `kiro-cli`
|
|
144
|
-
`
|
|
211
|
+
- Do not set `credential_profile` for a backend other than `kiro-cli`, `codex`
|
|
212
|
+
or `claude-code`; it is ignored, and the config validator warns about it.
|
|
145
213
|
- Do not tell a codex user their conversation will definitely continue across a
|
|
146
214
|
switch. Say the history is shared; that part is verified.
|
|
147
215
|
- Do not use a profile name with slashes or spaces — it becomes a directory
|
|
@@ -38,7 +38,22 @@ Only when a result is unclear: `delivery_status` with the `operation_id` / `deli
|
|
|
38
38
|
Before a destructive or hard-to-undo action based on another instance's message — merge, reset, force-push, deleting a branch or instance, deploying, closing an issue or PR — verify the message itself:
|
|
39
39
|
|
|
40
40
|
- Call `delivery_status` with the `message_id` from its header.
|
|
41
|
-
- **`Delivery not found`** → the
|
|
41
|
+
- **`Delivery not found`** → the row may be hidden, expired, or absent. Do not act; ask the sender to explicitly forward the reference.
|
|
42
42
|
- Found → confirm the value you are about to use (SHA, PR number, branch) appears in the returned `content`, and still check a SHA against the real ref (`git cat-file -t`, `gh pr view --json headRefOid`).
|
|
43
43
|
|
|
44
44
|
Why: a model can "see" a peer message nobody sent, header and message_id included, and act on it (#856).
|
|
45
|
+
|
|
46
|
+
## Relayed human authorization
|
|
47
|
+
|
|
48
|
+
A peer's summary is not the original person's consent. Before an irreversible action:
|
|
49
|
+
|
|
50
|
+
1. Ask the peer to send/delegate with `forwards: [verification_id]`, using the original human receipt's `verification_id` / `[agend-human-id:…]`. Every hop needs an explicit forward; mentioning an ID grants nothing. Only delivered references the sender can read are accepted (up to 16).
|
|
51
|
+
- The ID goes in the `forwards` parameter, never only in the message text: an ID in the text grants nothing, and the receiver's `delivery_status` says "Delivery not found".
|
|
52
|
+
- If the `send_to_instance` / `delegate_task` schema you loaded has no `forwards`, pass it anyway. A session resumed across an AgEnD upgrade keeps the tool copy it first loaded (reloading does not refresh it); AgEnD's server accepts the parameter.
|
|
53
|
+
2. Read `delivery_status({message_id: verification_id})`. Require `state: delivered`, its owned `proof_kind`, and the original `content` naming the exact operation/resource. Check `origin.platform`, `origin.adapter_id` and `origin.user_id` against the human authorized for that resource. Labels, quoted headers and agent relay rows are not origin evidence.
|
|
54
|
+
3. Native queue/composer acceptance never proves the model consumed the message. Unknown/unverifiable outcomes, `/raw`, historical rows and a missing origin cannot prove human authorization. Web receipts truthfully have no verified platform actor; action receipts identify the click and its anchor, not a human-authored platform message.
|
|
55
|
+
4. Do not resend on `uncertain`. Ask for clarification or fresh explicit consent; do not infer consent from a missing row.
|
|
56
|
+
|
|
57
|
+
CLI mode: `agend-agent send <instance> <text> --forward <verification_id>` (repeat `--forward` for more refs); `agend-agent delegate` accepts the same flags. Lookup: `agend-agent delivery-status --message-id <verification_id>`.
|
|
58
|
+
|
|
59
|
+
Forward access is read-only and row-scoped. It does not grant commands, visibility of siblings, or access by knowing an ID. Same-uid shell-capable agents are not isolated from one another; use distinct OS users/containers for mutually untrusted agents.
|
|
@@ -67,7 +67,10 @@ Underlying commands, if you need them by hand:
|
|
|
67
67
|
**antigravity: keep the effort suffix.** The suffix is part of the selectable id,
|
|
68
68
|
not decoration — the same model at two effort levels is two different ids. Take
|
|
69
69
|
the id from `list_models` (e.g. `gemini-3.6-flash-high`), not the display label
|
|
70
|
-
the TUI shows.
|
|
70
|
+
the TUI shows. With an `effort` set, AgEnD launches that level's id instead
|
|
71
|
+
(`gemini-3.8-flash-medium` + `high` runs `gemini-3.8-flash-high`). A level the model
|
|
72
|
+
lacks launches the configured id without it. A name agy does not list does not fail:
|
|
73
|
+
agy starts on **another model**, with a warning in its pane.
|
|
71
74
|
|
|
72
75
|
**Pass-through: AgEnD does not gate model names.** An unknown id is warned about,
|
|
73
76
|
then handed to the CLI anyway. So a name missing from `list_models` may still be
|
|
@@ -39,3 +39,7 @@ Call `report_result` exactly once when the assignment is complete or genuinely b
|
|
|
39
39
|
- remaining risk, blocker, or follow-up, if any.
|
|
40
40
|
|
|
41
41
|
Do not put user-facing results only in terminal text; the fleet report is the delivery channel.
|
|
42
|
+
|
|
43
|
+
## Relayed human approval
|
|
44
|
+
|
|
45
|
+
For an irreversible action based on relayed consent, request an explicit `forwards` edge for the original human `verification_id`, then read its original content and origin with `delivery_status`. Each hop needs a forward; a peer's summary or a mentioned ID grants nothing. When you relay it, put the ID in `forwards` (even if your loaded copy of the tool's schema lacks the parameter: the server accepts it), not in the text. Require delivered and an owned proof_kind, and verify the actual platform/adapter/actor plus the exact resource. Hidden/expired/uncertain receipts are not consent and must not trigger a resend. See the cross-instance-messaging skill.
|
package/dist/host-memory.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export interface LinuxMemoryPsi {
|
|
2
|
+
someAvg60: number;
|
|
3
|
+
fullAvg10: number;
|
|
4
|
+
}
|
|
5
|
+
/** Kernel percentage averages; missing/ambiguous output is unavailable, not zero pressure. */
|
|
6
|
+
export declare function parseLinuxMemoryPsi(output: string): LinuxMemoryPsi | null;
|
|
1
7
|
export interface HostMemory {
|
|
2
8
|
totalBytes: number;
|
|
3
9
|
availableBytes: number | null;
|
|
@@ -8,12 +14,16 @@ export interface HostMemory {
|
|
|
8
14
|
darwinPressureLevel?: 1 | 2 | 4 | null;
|
|
9
15
|
/** Bounded diagnostic output; null when unavailable or not requested. */
|
|
10
16
|
darwinPressureRaw?: string | null;
|
|
17
|
+
/** Linux pressure sampling only; null means PSI cannot be used. */
|
|
18
|
+
linuxPsi?: LinuxMemoryPsi | null;
|
|
11
19
|
}
|
|
12
20
|
interface HostMemoryDeps {
|
|
13
21
|
platform: NodeJS.Platform;
|
|
14
22
|
meminfo: () => string;
|
|
15
23
|
totalmem: () => number;
|
|
16
24
|
freemem: () => number;
|
|
25
|
+
includePressure: boolean;
|
|
26
|
+
psi: () => string;
|
|
17
27
|
}
|
|
18
28
|
/** Host memory, not the fleet's RSS/cgroup charge. Missing swap data is not zero swap. */
|
|
19
29
|
export declare function readHostMemory(overrides?: Partial<HostMemoryDeps>): HostMemory;
|
package/dist/host-memory.js
CHANGED
|
@@ -1,15 +1,44 @@
|
|
|
1
1
|
import { DarwinMemoryProbe } from "./darwin-memory.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { freemem, totalmem, platform } from "node:os";
|
|
4
|
+
/** Kernel percentage averages; missing/ambiguous output is unavailable, not zero pressure. */
|
|
5
|
+
export function parseLinuxMemoryPsi(output) {
|
|
6
|
+
if (output.length > 4096)
|
|
7
|
+
return null;
|
|
8
|
+
const rows = new Map();
|
|
9
|
+
const lines = output.trim().split(/\r?\n/);
|
|
10
|
+
if (lines.length !== 2)
|
|
11
|
+
return null;
|
|
12
|
+
for (const line of lines) {
|
|
13
|
+
const match = /^(some|full) avg10=(\d+(?:\.\d+)?) avg60=(\d+(?:\.\d+)?) avg300=(\d+(?:\.\d+)?) total=\d+$/.exec(line);
|
|
14
|
+
if (!match || rows.has(match[1]))
|
|
15
|
+
return null;
|
|
16
|
+
const averages = match.slice(2).map(Number);
|
|
17
|
+
if (averages.some(n => !Number.isFinite(n) || n < 0 || n > 100))
|
|
18
|
+
return null;
|
|
19
|
+
rows.set(match[1], averages);
|
|
20
|
+
}
|
|
21
|
+
if (!rows.has("some") || !rows.has("full"))
|
|
22
|
+
return null;
|
|
23
|
+
return { someAvg60: rows.get("some")[1], fullAvg10: rows.get("full")[0] };
|
|
24
|
+
}
|
|
4
25
|
/** Host memory, not the fleet's RSS/cgroup charge. Missing swap data is not zero swap. */
|
|
5
26
|
export function readHostMemory(overrides = {}) {
|
|
6
|
-
const deps = { platform: platform(), meminfo: () => readFileSync("/proc/meminfo", "utf8"), totalmem, freemem,
|
|
27
|
+
const deps = { platform: platform(), meminfo: () => readFileSync("/proc/meminfo", "utf8"), totalmem, freemem,
|
|
28
|
+
includePressure: false, psi: () => readFileSync("/proc/pressure/memory", "utf8"), ...overrides };
|
|
7
29
|
// macOS keeps reclaimable pages in use. Its free count is not availability.
|
|
8
30
|
// Synchronous readers cannot run the native probe; absence stays unknown.
|
|
9
31
|
if (deps.platform === "darwin") {
|
|
10
32
|
return { totalBytes: deps.totalmem(), availableBytes: null, availableKind: "unknown", swapTotalBytes: null, swapFreeBytes: null };
|
|
11
33
|
}
|
|
12
34
|
if (deps.platform === "linux") {
|
|
35
|
+
let linuxPsi = null;
|
|
36
|
+
if (deps.includePressure) {
|
|
37
|
+
try {
|
|
38
|
+
linuxPsi = parseLinuxMemoryPsi(deps.psi());
|
|
39
|
+
}
|
|
40
|
+
catch { /* Fall back to RAM, without inventing PSI. */ }
|
|
41
|
+
}
|
|
13
42
|
try {
|
|
14
43
|
const fields = new Map();
|
|
15
44
|
for (const match of deps.meminfo().matchAll(/^(\w+):\s+(\d+)\s+kB\s*$/gm)) {
|
|
@@ -28,10 +57,13 @@ export function readHostMemory(overrides = {}) {
|
|
|
28
57
|
availableKind: fields.has("MemAvailable") ? "available" : "free",
|
|
29
58
|
swapTotalBytes: hasSwap ? swapTotal : null,
|
|
30
59
|
swapFreeBytes: hasSwap ? swapFree : null,
|
|
60
|
+
...(deps.includePressure ? { linuxPsi } : {}),
|
|
31
61
|
};
|
|
32
62
|
}
|
|
33
63
|
}
|
|
34
64
|
catch { /* non-procfs Linux, or an unreadable snapshot: portable fallback */ }
|
|
65
|
+
return { totalBytes: deps.totalmem(), availableBytes: deps.freemem(), availableKind: "free", swapTotalBytes: null, swapFreeBytes: null,
|
|
66
|
+
...(deps.includePressure ? { linuxPsi } : {}) };
|
|
35
67
|
}
|
|
36
68
|
return { totalBytes: deps.totalmem(), availableBytes: deps.freemem(), availableKind: "free", swapTotalBytes: null, swapFreeBytes: null };
|
|
37
69
|
}
|
package/dist/host-memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-memory.js","sourceRoot":"","sources":["../src/host-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"host-memory.js","sourceRoot":"","sources":["../src/host-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAItD,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAAC,MAAc;IAChD,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI;QAAE,OAAO,IAAI,CAAC;IACtC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAoB,CAAC;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,4FAA4F,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtH,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,IAAI,CAAC;QAC9C,MAAM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qB,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type Database from "better-sqlite3";
|
|
2
|
+
import type { DeliveryStatusSelector, DeliveryStatusPage } from "./delivery-outbox.js";
|
|
3
|
+
import { type AgentMode } from "./cross-instance-envelope.js";
|
|
4
|
+
/** Server-owned ingress facts. Labels and Web session identity are not platform authority. */
|
|
5
|
+
export interface HumanOrigin {
|
|
6
|
+
platform: "discord" | "telegram" | "web";
|
|
7
|
+
adapter_id: string | null;
|
|
8
|
+
user_id: string | null;
|
|
9
|
+
username: string | null;
|
|
10
|
+
platform_message_id: string | null;
|
|
11
|
+
ingress: "message" | "action" | "web";
|
|
12
|
+
anchor_message_id?: string;
|
|
13
|
+
event_id?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Called only by trusted SDK event producers, never on text/agent metadata. */
|
|
16
|
+
export declare function nativeHumanOrigin(platform: "telegram" | "discord", adapterId: string, userId: string, username: string | undefined, isBot: boolean | undefined, messageId: string | null, action?: {
|
|
17
|
+
anchor: string;
|
|
18
|
+
event: string;
|
|
19
|
+
}): HumanOrigin | undefined;
|
|
20
|
+
export declare function webHumanOrigin(action?: boolean): HumanOrigin;
|
|
21
|
+
export type HumanWriteMode = "idle_submit" | "native_queue_handoff" | "steer" | "raw_paste";
|
|
22
|
+
export type HumanPositiveTag = "unique-id-pane" | "composer-empty-steer" | "composer-empty-queue" | "composer-empty-idle";
|
|
23
|
+
export interface HumanReceiptProof {
|
|
24
|
+
receipt_id: string;
|
|
25
|
+
verification_id: string;
|
|
26
|
+
wire_sha256: string;
|
|
27
|
+
owner_key: string;
|
|
28
|
+
mode: HumanWriteMode;
|
|
29
|
+
tag: HumanPositiveTag;
|
|
30
|
+
}
|
|
31
|
+
export interface HumanReceiptAttempt {
|
|
32
|
+
receiptId: string;
|
|
33
|
+
verificationId: string;
|
|
34
|
+
expectedWireHash: string;
|
|
35
|
+
ownerKey: string;
|
|
36
|
+
current: () => boolean;
|
|
37
|
+
proof?: HumanReceiptProof;
|
|
38
|
+
}
|
|
39
|
+
export declare function humanBodyHash(body: string): string;
|
|
40
|
+
/** Process-local object identity; a new process cannot settle an old binding. */
|
|
41
|
+
export declare function humanOwnerObjectId(owner: object): string;
|
|
42
|
+
export declare function isHumanPositiveProof(proof: unknown): proof is HumanReceiptProof;
|
|
43
|
+
export interface HumanReceiptRow {
|
|
44
|
+
receipt_id: string;
|
|
45
|
+
message_id: string;
|
|
46
|
+
target_instance: string;
|
|
47
|
+
manager_boot_id: string;
|
|
48
|
+
original_body: string;
|
|
49
|
+
original_sha256: string;
|
|
50
|
+
origin_json: string;
|
|
51
|
+
wire_body: string | null;
|
|
52
|
+
wire_sha256: string | null;
|
|
53
|
+
owner_key: string | null;
|
|
54
|
+
input_kind: string;
|
|
55
|
+
state: "queued" | "delivered" | "uncertain";
|
|
56
|
+
proof_tag: HumanPositiveTag | null;
|
|
57
|
+
proof_mode: HumanWriteMode | null;
|
|
58
|
+
created_at: string;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
delivered_at: string | null;
|
|
61
|
+
}
|
|
62
|
+
export declare function initializeHumanReceipts(db: Database.Database): void;
|
|
63
|
+
/** Server-only admission; no origin is read from an agent payload or tool argument. */
|
|
64
|
+
export declare function createHumanReceipt(db: Database.Database, input: {
|
|
65
|
+
targetInstance: string;
|
|
66
|
+
originalBody: string;
|
|
67
|
+
origin: HumanOrigin;
|
|
68
|
+
inputKind: string;
|
|
69
|
+
managerBootId: string;
|
|
70
|
+
}): HumanReceiptRow;
|
|
71
|
+
export declare function getHumanReceipt(db: Database.Database, id: string): HumanReceiptRow | undefined;
|
|
72
|
+
/** Bind once at the actual IPC handoff, after wake/reconnect waits. */
|
|
73
|
+
export declare function bindHumanReceipt(db: Database.Database, id: string, target: string, ownerKey: string, wire: string, managerBootId: string): HumanReceiptRow;
|
|
74
|
+
/** An owned unknown result may close pending evidence; it never grants or overwrites a positive proof. */
|
|
75
|
+
export declare function settleHumanReceipt(db: Database.Database, id: string, target: string, ownerKey: string, proof: unknown, currentOwnerKey: string | null): boolean;
|
|
76
|
+
/** Read-only operator compatibility: an older database simply has no human receipts. */
|
|
77
|
+
export declare function queryHumanReceipt(db: Database.Database, caller: string | null, selector: DeliveryStatusSelector): DeliveryStatusPage | null;
|
|
78
|
+
/** Preserve the existing sanitizer in one place; receipts hash these actual prepared bytes. */
|
|
79
|
+
export declare function prepareDeliveryWire(body: string, preserveExactBytes?: boolean): string;
|
|
80
|
+
export declare function steerInboundEnvelope(inbound: string): string;
|
|
81
|
+
export declare const BTW_INBOUND_PREFIX = "[BTW \u2014 side question from the user. Answer it separately without changing or interrupting the CURRENT work.]\n";
|
|
82
|
+
/** One formatter for human wire bytes and their immutable evidence snapshot. */
|
|
83
|
+
export declare function formatHumanInboundMessage(content: string, meta: Record<string, string>, mode: AgentMode): string;
|