@cello-protocol/daemon 0.0.225 → 0.0.227
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/package.json +5 -5
- package/dist/agent-admin-handlers.d.ts +0 -56
- package/dist/agent-admin-handlers.d.ts.map +0 -1
- package/dist/agent-admin-handlers.js +0 -73
- package/dist/agent-admin-handlers.js.map +0 -1
- package/dist/agent-handlers.d.ts +0 -72
- package/dist/agent-handlers.d.ts.map +0 -1
- package/dist/agent-handlers.js +0 -604
- package/dist/agent-handlers.js.map +0 -1
- package/dist/agent-id-migration.d.ts +0 -70
- package/dist/agent-id-migration.d.ts.map +0 -1
- package/dist/agent-id-migration.js +0 -468
- package/dist/agent-id-migration.js.map +0 -1
- package/dist/agent-loader.d.ts +0 -37
- package/dist/agent-loader.d.ts.map +0 -1
- package/dist/agent-loader.js +0 -37
- package/dist/agent-loader.js.map +0 -1
- package/dist/agent-selection-root.d.ts +0 -29
- package/dist/agent-selection-root.d.ts.map +0 -1
- package/dist/agent-selection-root.js +0 -126
- package/dist/agent-selection-root.js.map +0 -1
- package/dist/agent-selection.d.ts +0 -73
- package/dist/agent-selection.d.ts.map +0 -1
- package/dist/agent-selection.js +0 -80
- package/dist/agent-selection.js.map +0 -1
- package/dist/agent-settings-keys.d.ts +0 -52
- package/dist/agent-settings-keys.d.ts.map +0 -1
- package/dist/agent-settings-keys.js +0 -114
- package/dist/agent-settings-keys.js.map +0 -1
- package/dist/agent-state.d.ts +0 -67
- package/dist/agent-state.d.ts.map +0 -1
- package/dist/agent-state.js +0 -66
- package/dist/agent-state.js.map +0 -1
- package/dist/assignment-verify.d.ts +0 -90
- package/dist/assignment-verify.d.ts.map +0 -1
- package/dist/assignment-verify.js +0 -301
- package/dist/assignment-verify.js.map +0 -1
- package/dist/attendance-wiring.d.ts +0 -23
- package/dist/attendance-wiring.d.ts.map +0 -1
- package/dist/attendance-wiring.js +0 -248
- package/dist/attendance-wiring.js.map +0 -1
- package/dist/attestation-body.d.ts +0 -47
- package/dist/attestation-body.d.ts.map +0 -1
- package/dist/attestation-body.js +0 -71
- package/dist/attestation-body.js.map +0 -1
- package/dist/authorship-verification.d.ts +0 -91
- package/dist/authorship-verification.d.ts.map +0 -1
- package/dist/authorship-verification.js +0 -532
- package/dist/authorship-verification.js.map +0 -1
- package/dist/away-detection.d.ts +0 -139
- package/dist/away-detection.d.ts.map +0 -1
- package/dist/away-detection.js +0 -186
- package/dist/away-detection.js.map +0 -1
- package/dist/away-inbox-oneshot.d.ts +0 -40
- package/dist/away-inbox-oneshot.d.ts.map +0 -1
- package/dist/away-inbox-oneshot.js +0 -311
- package/dist/away-inbox-oneshot.js.map +0 -1
- package/dist/backup-restore-handlers.d.ts +0 -10
- package/dist/backup-restore-handlers.d.ts.map +0 -1
- package/dist/backup-restore-handlers.js +0 -82
- package/dist/backup-restore-handlers.js.map +0 -1
- package/dist/backup-restore.d.ts +0 -102
- package/dist/backup-restore.d.ts.map +0 -1
- package/dist/backup-restore.js +0 -341
- package/dist/backup-restore.js.map +0 -1
- package/dist/bin/cello-daemon.d.ts +0 -13
- package/dist/bin/cello-daemon.d.ts.map +0 -1
- package/dist/bin/cello-daemon.js.map +0 -1
- package/dist/boot-agents.d.ts +0 -64
- package/dist/boot-agents.d.ts.map +0 -1
- package/dist/boot-agents.js +0 -241
- package/dist/boot-agents.js.map +0 -1
- package/dist/boot-connection-state.d.ts +0 -38
- package/dist/boot-connection-state.d.ts.map +0 -1
- package/dist/boot-connection-state.js +0 -95
- package/dist/boot-connection-state.js.map +0 -1
- package/dist/boot-core.d.ts +0 -36
- package/dist/boot-core.d.ts.map +0 -1
- package/dist/boot-core.js +0 -293
- package/dist/boot-core.js.map +0 -1
- package/dist/boot-parked-content.d.ts +0 -34
- package/dist/boot-parked-content.d.ts.map +0 -1
- package/dist/boot-parked-content.js +0 -528
- package/dist/boot-parked-content.js.map +0 -1
- package/dist/boot-sweeps.d.ts +0 -22
- package/dist/boot-sweeps.d.ts.map +0 -1
- package/dist/boot-sweeps.js +0 -51
- package/dist/boot-sweeps.js.map +0 -1
- package/dist/bundled-consortium-manifest.d.ts +0 -47
- package/dist/bundled-consortium-manifest.d.ts.map +0 -1
- package/dist/bundled-consortium-manifest.js +0 -116
- package/dist/bundled-consortium-manifest.js.map +0 -1
- package/dist/cbor-blob-migration.d.ts +0 -8
- package/dist/cbor-blob-migration.d.ts.map +0 -1
- package/dist/cbor-blob-migration.js +0 -116
- package/dist/cbor-blob-migration.js.map +0 -1
- package/dist/challenge-verifier.d.ts +0 -12
- package/dist/challenge-verifier.d.ts.map +0 -1
- package/dist/challenge-verifier.js +0 -11
- package/dist/challenge-verifier.js.map +0 -1
- package/dist/close-commitment.d.ts +0 -67
- package/dist/close-commitment.d.ts.map +0 -1
- package/dist/close-commitment.js +0 -78
- package/dist/close-commitment.js.map +0 -1
- package/dist/close-session-handler.d.ts +0 -94
- package/dist/close-session-handler.d.ts.map +0 -1
- package/dist/close-session-handler.js +0 -1418
- package/dist/close-session-handler.js.map +0 -1
- package/dist/co-attendance.d.ts +0 -29
- package/dist/co-attendance.d.ts.map +0 -1
- package/dist/co-attendance.js +0 -32
- package/dist/co-attendance.js.map +0 -1
- package/dist/column-birth.d.ts +0 -40
- package/dist/column-birth.d.ts.map +0 -1
- package/dist/column-birth.js +0 -61
- package/dist/column-birth.js.map +0 -1
- package/dist/connect-or-start.d.ts +0 -25
- package/dist/connect-or-start.d.ts.map +0 -1
- package/dist/connect-or-start.js +0 -175
- package/dist/connect-or-start.js.map +0 -1
- package/dist/connection-agents.d.ts +0 -16
- package/dist/connection-agents.d.ts.map +0 -1
- package/dist/connection-agents.js +0 -68
- package/dist/connection-agents.js.map +0 -1
- package/dist/consent-migration.d.ts +0 -49
- package/dist/consent-migration.d.ts.map +0 -1
- package/dist/consent-migration.js +0 -128
- package/dist/consent-migration.js.map +0 -1
- package/dist/consortium-bootstrap.d.ts +0 -138
- package/dist/consortium-bootstrap.d.ts.map +0 -1
- package/dist/consortium-bootstrap.js +0 -339
- package/dist/consortium-bootstrap.js.map +0 -1
- package/dist/consortium-fingerprint.d.ts +0 -115
- package/dist/consortium-fingerprint.d.ts.map +0 -1
- package/dist/consortium-fingerprint.js +0 -175
- package/dist/consortium-fingerprint.js.map +0 -1
- package/dist/contact-handlers.d.ts +0 -59
- package/dist/contact-handlers.d.ts.map +0 -1
- package/dist/contact-handlers.js +0 -343
- package/dist/contact-handlers.js.map +0 -1
- package/dist/contact-pubkey-case.d.ts +0 -65
- package/dist/contact-pubkey-case.d.ts.map +0 -1
- package/dist/contact-pubkey-case.js +0 -136
- package/dist/contact-pubkey-case.js.map +0 -1
- package/dist/contacts-tier-migration.d.ts +0 -90
- package/dist/contacts-tier-migration.d.ts.map +0 -1
- package/dist/contacts-tier-migration.js +0 -150
- package/dist/contacts-tier-migration.js.map +0 -1
- package/dist/content-encryption-status.d.ts +0 -111
- package/dist/content-encryption-status.d.ts.map +0 -1
- package/dist/content-encryption-status.js +0 -158
- package/dist/content-encryption-status.js.map +0 -1
- package/dist/content-park-client.d.ts +0 -90
- package/dist/content-park-client.d.ts.map +0 -1
- package/dist/content-park-client.js +0 -362
- package/dist/content-park-client.js.map +0 -1
- package/dist/content-park.d.ts +0 -52
- package/dist/content-park.d.ts.map +0 -1
- package/dist/content-park.js +0 -1309
- package/dist/content-park.js.map +0 -1
- package/dist/cross-node-negotiation.d.ts +0 -44
- package/dist/cross-node-negotiation.d.ts.map +0 -1
- package/dist/cross-node-negotiation.js +0 -34
- package/dist/cross-node-negotiation.js.map +0 -1
- package/dist/daemon-handle.d.ts +0 -57
- package/dist/daemon-handle.d.ts.map +0 -1
- package/dist/daemon-handle.js +0 -2
- package/dist/daemon-handle.js.map +0 -1
- package/dist/daemon-status-report.d.ts +0 -50
- package/dist/daemon-status-report.d.ts.map +0 -1
- package/dist/daemon-status-report.js +0 -81
- package/dist/daemon-status-report.js.map +0 -1
- package/dist/daemon.d.ts +0 -45
- package/dist/daemon.d.ts.map +0 -1
- package/dist/daemon.js +0 -1177
- package/dist/daemon.js.map +0 -1
- package/dist/db-identity-store.d.ts +0 -159
- package/dist/db-identity-store.d.ts.map +0 -1
- package/dist/db-identity-store.js +0 -502
- package/dist/db-identity-store.js.map +0 -1
- package/dist/delivery-open-registry.d.ts +0 -92
- package/dist/delivery-open-registry.d.ts.map +0 -1
- package/dist/delivery-open-registry.js +0 -121
- package/dist/delivery-open-registry.js.map +0 -1
- package/dist/delivery-session-suspects.d.ts +0 -56
- package/dist/delivery-session-suspects.d.ts.map +0 -1
- package/dist/delivery-session-suspects.js +0 -94
- package/dist/delivery-session-suspects.js.map +0 -1
- package/dist/directory-auth-posture.d.ts +0 -87
- package/dist/directory-auth-posture.d.ts.map +0 -1
- package/dist/directory-auth-posture.js +0 -134
- package/dist/directory-auth-posture.js.map +0 -1
- package/dist/directory-bootstrap.d.ts +0 -310
- package/dist/directory-bootstrap.d.ts.map +0 -1
- package/dist/directory-bootstrap.js +0 -557
- package/dist/directory-bootstrap.js.map +0 -1
- package/dist/directory-connect.d.ts +0 -27
- package/dist/directory-connect.d.ts.map +0 -1
- package/dist/directory-connect.js +0 -106
- package/dist/directory-connect.js.map +0 -1
- package/dist/disconnect-cleanup.d.ts +0 -51
- package/dist/disconnect-cleanup.d.ts.map +0 -1
- package/dist/disconnect-cleanup.js +0 -72
- package/dist/disconnect-cleanup.js.map +0 -1
- package/dist/document-amendment-store.d.ts +0 -120
- package/dist/document-amendment-store.d.ts.map +0 -1
- package/dist/document-amendment-store.js +0 -266
- package/dist/document-amendment-store.js.map +0 -1
- package/dist/document-delivery-transport.d.ts +0 -168
- package/dist/document-delivery-transport.d.ts.map +0 -1
- package/dist/document-delivery-transport.js +0 -206
- package/dist/document-delivery-transport.js.map +0 -1
- package/dist/document-engine.d.ts +0 -134
- package/dist/document-engine.d.ts.map +0 -1
- package/dist/document-engine.js +0 -282
- package/dist/document-engine.js.map +0 -1
- package/dist/document-flag.d.ts +0 -58
- package/dist/document-flag.d.ts.map +0 -1
- package/dist/document-flag.js +0 -70
- package/dist/document-flag.js.map +0 -1
- package/dist/document-frame-router.d.ts +0 -245
- package/dist/document-frame-router.d.ts.map +0 -1
- package/dist/document-frame-router.js +0 -397
- package/dist/document-frame-router.js.map +0 -1
- package/dist/document-gate-wiring.d.ts +0 -61
- package/dist/document-gate-wiring.d.ts.map +0 -1
- package/dist/document-gate-wiring.js +0 -125
- package/dist/document-gate-wiring.js.map +0 -1
- package/dist/document-gate.d.ts +0 -149
- package/dist/document-gate.d.ts.map +0 -1
- package/dist/document-gate.js +0 -509
- package/dist/document-gate.js.map +0 -1
- package/dist/document-handlers.d.ts +0 -47
- package/dist/document-handlers.d.ts.map +0 -1
- package/dist/document-handlers.js +0 -2203
- package/dist/document-handlers.js.map +0 -1
- package/dist/document-handshake.d.ts +0 -176
- package/dist/document-handshake.d.ts.map +0 -1
- package/dist/document-handshake.js +0 -452
- package/dist/document-handshake.js.map +0 -1
- package/dist/document-inbound.d.ts +0 -162
- package/dist/document-inbound.d.ts.map +0 -1
- package/dist/document-inbound.js +0 -530
- package/dist/document-inbound.js.map +0 -1
- package/dist/document-json.d.ts +0 -120
- package/dist/document-json.d.ts.map +0 -1
- package/dist/document-json.js +0 -191
- package/dist/document-json.js.map +0 -1
- package/dist/document-layer.d.ts +0 -215
- package/dist/document-layer.d.ts.map +0 -1
- package/dist/document-layer.js +0 -1025
- package/dist/document-layer.js.map +0 -1
- package/dist/document-lifecycle.d.ts +0 -52
- package/dist/document-lifecycle.d.ts.map +0 -1
- package/dist/document-lifecycle.js +0 -134
- package/dist/document-lifecycle.js.map +0 -1
- package/dist/document-live-docs.d.ts +0 -58
- package/dist/document-live-docs.d.ts.map +0 -1
- package/dist/document-live-docs.js +0 -126
- package/dist/document-live-docs.js.map +0 -1
- package/dist/document-notify.d.ts +0 -228
- package/dist/document-notify.d.ts.map +0 -1
- package/dist/document-notify.js +0 -580
- package/dist/document-notify.js.map +0 -1
- package/dist/document-profile.d.ts +0 -61
- package/dist/document-profile.d.ts.map +0 -1
- package/dist/document-profile.js +0 -112
- package/dist/document-profile.js.map +0 -1
- package/dist/document-publish.d.ts +0 -87
- package/dist/document-publish.d.ts.map +0 -1
- package/dist/document-publish.js +0 -173
- package/dist/document-publish.js.map +0 -1
- package/dist/document-reachability.d.ts +0 -42
- package/dist/document-reachability.d.ts.map +0 -1
- package/dist/document-reachability.js +0 -80
- package/dist/document-reachability.js.map +0 -1
- package/dist/document-reconcile-engine.d.ts +0 -66
- package/dist/document-reconcile-engine.d.ts.map +0 -1
- package/dist/document-reconcile-engine.js +0 -225
- package/dist/document-reconcile-engine.js.map +0 -1
- package/dist/document-reconcile-scheduler.d.ts +0 -163
- package/dist/document-reconcile-scheduler.d.ts.map +0 -1
- package/dist/document-reconcile-scheduler.js +0 -303
- package/dist/document-reconcile-scheduler.js.map +0 -1
- package/dist/document-rejection.d.ts +0 -251
- package/dist/document-rejection.d.ts.map +0 -1
- package/dist/document-rejection.js +0 -435
- package/dist/document-rejection.js.map +0 -1
- package/dist/document-screen.d.ts +0 -114
- package/dist/document-screen.d.ts.map +0 -1
- package/dist/document-screen.js +0 -223
- package/dist/document-screen.js.map +0 -1
- package/dist/document-store.d.ts +0 -372
- package/dist/document-store.d.ts.map +0 -1
- package/dist/document-store.js +0 -931
- package/dist/document-store.js.map +0 -1
- package/dist/document-surface.d.ts +0 -32
- package/dist/document-surface.d.ts.map +0 -1
- package/dist/document-surface.js +0 -151
- package/dist/document-surface.js.map +0 -1
- package/dist/document-types.d.ts +0 -94
- package/dist/document-types.d.ts.map +0 -1
- package/dist/document-types.js +0 -90
- package/dist/document-types.js.map +0 -1
- package/dist/document-watch.d.ts +0 -69
- package/dist/document-watch.d.ts.map +0 -1
- package/dist/document-watch.js +0 -108
- package/dist/document-watch.js.map +0 -1
- package/dist/document-wiring.d.ts +0 -53
- package/dist/document-wiring.d.ts.map +0 -1
- package/dist/document-wiring.js +0 -323
- package/dist/document-wiring.js.map +0 -1
- package/dist/document-write-guard.d.ts +0 -66
- package/dist/document-write-guard.d.ts.map +0 -1
- package/dist/document-write-guard.js +0 -98
- package/dist/document-write-guard.js.map +0 -1
- package/dist/document-write-path.d.ts +0 -94
- package/dist/document-write-path.d.ts.map +0 -1
- package/dist/document-write-path.js +0 -530
- package/dist/document-write-path.js.map +0 -1
- package/dist/error-message.d.ts +0 -7
- package/dist/error-message.d.ts.map +0 -1
- package/dist/error-message.js +0 -19
- package/dist/error-message.js.map +0 -1
- package/dist/file-manifest-provider.d.ts +0 -37
- package/dist/file-manifest-provider.d.ts.map +0 -1
- package/dist/file-manifest-provider.js +0 -105
- package/dist/file-manifest-provider.js.map +0 -1
- package/dist/frame-values.d.ts +0 -3
- package/dist/frame-values.d.ts.map +0 -1
- package/dist/frame-values.js +0 -84
- package/dist/frame-values.js.map +0 -1
- package/dist/frontier-mismatch.d.ts +0 -73
- package/dist/frontier-mismatch.d.ts.map +0 -1
- package/dist/frontier-mismatch.js +0 -89
- package/dist/frontier-mismatch.js.map +0 -1
- package/dist/gateway-config-handlers.d.ts +0 -26
- package/dist/gateway-config-handlers.d.ts.map +0 -1
- package/dist/gateway-config-handlers.js +0 -429
- package/dist/gateway-config-handlers.js.map +0 -1
- package/dist/held-content.d.ts +0 -145
- package/dist/held-content.d.ts.map +0 -1
- package/dist/held-content.js +0 -389
- package/dist/held-content.js.map +0 -1
- package/dist/http-manifest-poll.d.ts +0 -67
- package/dist/http-manifest-poll.d.ts.map +0 -1
- package/dist/http-manifest-poll.js +0 -150
- package/dist/http-manifest-poll.js.map +0 -1
- package/dist/identity-migration.d.ts +0 -40
- package/dist/identity-migration.d.ts.map +0 -1
- package/dist/identity-migration.js +0 -461
- package/dist/identity-migration.js.map +0 -1
- package/dist/inbound-refusals.d.ts +0 -283
- package/dist/inbound-refusals.d.ts.map +0 -1
- package/dist/inbound-refusals.js +0 -919
- package/dist/inbound-refusals.js.map +0 -1
- package/dist/inbound-seal-request.d.ts +0 -32
- package/dist/inbound-seal-request.d.ts.map +0 -1
- package/dist/inbound-seal-request.js +0 -228
- package/dist/inbound-seal-request.js.map +0 -1
- package/dist/inbound-sessions.d.ts +0 -291
- package/dist/inbound-sessions.d.ts.map +0 -1
- package/dist/inbound-sessions.js +0 -1609
- package/dist/inbound-sessions.js.map +0 -1
- package/dist/inclusion-proof-handlers.d.ts +0 -43
- package/dist/inclusion-proof-handlers.d.ts.map +0 -1
- package/dist/inclusion-proof-handlers.js +0 -565
- package/dist/inclusion-proof-handlers.js.map +0 -1
- package/dist/inclusion-proof.d.ts +0 -151
- package/dist/inclusion-proof.d.ts.map +0 -1
- package/dist/inclusion-proof.js +0 -228
- package/dist/inclusion-proof.js.map +0 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/initiate-session-handler.d.ts +0 -55
- package/dist/initiate-session-handler.d.ts.map +0 -1
- package/dist/initiate-session-handler.js +0 -310
- package/dist/initiate-session-handler.js.map +0 -1
- package/dist/ipc-client.d.ts +0 -31
- package/dist/ipc-client.d.ts.map +0 -1
- package/dist/ipc-client.js +0 -113
- package/dist/ipc-client.js.map +0 -1
- package/dist/ipc-server.d.ts +0 -63
- package/dist/ipc-server.d.ts.map +0 -1
- package/dist/ipc-server.js +0 -429
- package/dist/ipc-server.js.map +0 -1
- package/dist/ipc-surface.d.ts +0 -44
- package/dist/ipc-surface.d.ts.map +0 -1
- package/dist/ipc-surface.js +0 -107
- package/dist/ipc-surface.js.map +0 -1
- package/dist/line-lcs.d.ts +0 -51
- package/dist/line-lcs.d.ts.map +0 -1
- package/dist/line-lcs.js +0 -71
- package/dist/line-lcs.js.map +0 -1
- package/dist/lock-file.d.ts +0 -39
- package/dist/lock-file.d.ts.map +0 -1
- package/dist/lock-file.js +0 -120
- package/dist/lock-file.js.map +0 -1
- package/dist/log-collapse.d.ts +0 -66
- package/dist/log-collapse.d.ts.map +0 -1
- package/dist/log-collapse.js +0 -244
- package/dist/log-collapse.js.map +0 -1
- package/dist/log-rotate.d.ts +0 -67
- package/dist/log-rotate.d.ts.map +0 -1
- package/dist/log-rotate.js +0 -134
- package/dist/log-rotate.js.map +0 -1
- package/dist/manifest-deps.d.ts +0 -25
- package/dist/manifest-deps.d.ts.map +0 -1
- package/dist/manifest-deps.js +0 -151
- package/dist/manifest-deps.js.map +0 -1
- package/dist/manifest-poll-scheduler.d.ts +0 -31
- package/dist/manifest-poll-scheduler.d.ts.map +0 -1
- package/dist/manifest-poll-scheduler.js +0 -59
- package/dist/manifest-poll-scheduler.js.map +0 -1
- package/dist/manifest-validity.d.ts +0 -153
- package/dist/manifest-validity.d.ts.map +0 -1
- package/dist/manifest-validity.js +0 -268
- package/dist/manifest-validity.js.map +0 -1
- package/dist/manifest-version-store-db.d.ts +0 -24
- package/dist/manifest-version-store-db.d.ts.map +0 -1
- package/dist/manifest-version-store-db.js +0 -58
- package/dist/manifest-version-store-db.js.map +0 -1
- package/dist/manifest-version-store.d.ts +0 -16
- package/dist/manifest-version-store.d.ts.map +0 -1
- package/dist/manifest-version-store.js +0 -15
- package/dist/manifest-version-store.js.map +0 -1
- package/dist/network-directory-node.d.ts +0 -136
- package/dist/network-directory-node.d.ts.map +0 -1
- package/dist/network-directory-node.js +0 -810
- package/dist/network-directory-node.js.map +0 -1
- package/dist/nonce-dedup.d.ts +0 -68
- package/dist/nonce-dedup.d.ts.map +0 -1
- package/dist/nonce-dedup.js +0 -205
- package/dist/nonce-dedup.js.map +0 -1
- package/dist/notification-dispatcher.d.ts +0 -92
- package/dist/notification-dispatcher.d.ts.map +0 -1
- package/dist/notification-dispatcher.js +0 -210
- package/dist/notification-dispatcher.js.map +0 -1
- package/dist/notification-handlers.d.ts +0 -53
- package/dist/notification-handlers.d.ts.map +0 -1
- package/dist/notification-handlers.js +0 -461
- package/dist/notification-handlers.js.map +0 -1
- package/dist/onboarding-guidance.d.ts +0 -79
- package/dist/onboarding-guidance.d.ts.map +0 -1
- package/dist/onboarding-guidance.js +0 -95
- package/dist/onboarding-guidance.js.map +0 -1
- package/dist/operator-guidance.d.ts +0 -25
- package/dist/operator-guidance.d.ts.map +0 -1
- package/dist/operator-guidance.js +0 -50
- package/dist/operator-guidance.js.map +0 -1
- package/dist/orphan-triage.d.ts +0 -130
- package/dist/orphan-triage.d.ts.map +0 -1
- package/dist/orphan-triage.js +0 -207
- package/dist/orphan-triage.js.map +0 -1
- package/dist/outbound-sessions.d.ts +0 -126
- package/dist/outbound-sessions.d.ts.map +0 -1
- package/dist/outbound-sessions.js +0 -1052
- package/dist/outbound-sessions.js.map +0 -1
- package/dist/park-envelope.d.ts +0 -329
- package/dist/park-envelope.d.ts.map +0 -1
- package/dist/park-envelope.js +0 -509
- package/dist/park-envelope.js.map +0 -1
- package/dist/park-recovery.d.ts +0 -273
- package/dist/park-recovery.d.ts.map +0 -1
- package/dist/park-recovery.js +0 -717
- package/dist/park-recovery.js.map +0 -1
- package/dist/park-refusals.d.ts +0 -147
- package/dist/park-refusals.d.ts.map +0 -1
- package/dist/park-refusals.js +0 -331
- package/dist/park-refusals.js.map +0 -1
- package/dist/quarantine-framing.d.ts +0 -92
- package/dist/quarantine-framing.d.ts.map +0 -1
- package/dist/quarantine-framing.js +0 -111
- package/dist/quarantine-framing.js.map +0 -1
- package/dist/reconnect-drain.d.ts +0 -22
- package/dist/reconnect-drain.d.ts.map +0 -1
- package/dist/reconnect-drain.js +0 -65
- package/dist/reconnect-drain.js.map +0 -1
- package/dist/recovered-position.d.ts +0 -14
- package/dist/recovered-position.d.ts.map +0 -1
- package/dist/recovered-position.js +0 -59
- package/dist/recovered-position.js.map +0 -1
- package/dist/refusal-notices.d.ts +0 -196
- package/dist/refusal-notices.d.ts.map +0 -1
- package/dist/refusal-notices.js +0 -516
- package/dist/refusal-notices.js.map +0 -1
- package/dist/refusal-reasons.d.ts +0 -245
- package/dist/refusal-reasons.d.ts.map +0 -1
- package/dist/refusal-reasons.js +0 -363
- package/dist/refusal-reasons.js.map +0 -1
- package/dist/register-handler.d.ts +0 -36
- package/dist/register-handler.d.ts.map +0 -1
- package/dist/register-handler.js +0 -285
- package/dist/register-handler.js.map +0 -1
- package/dist/registration-context.d.ts +0 -72
- package/dist/registration-context.d.ts.map +0 -1
- package/dist/registration-context.js +0 -126
- package/dist/registration-context.js.map +0 -1
- package/dist/registration-manager.d.ts +0 -94
- package/dist/registration-manager.d.ts.map +0 -1
- package/dist/registration-manager.js +0 -585
- package/dist/registration-manager.js.map +0 -1
- package/dist/registration-persistence.d.ts +0 -183
- package/dist/registration-persistence.d.ts.map +0 -1
- package/dist/registration-persistence.js +0 -263
- package/dist/registration-persistence.js.map +0 -1
- package/dist/registry-poll.d.ts +0 -52
- package/dist/registry-poll.d.ts.map +0 -1
- package/dist/registry-poll.js +0 -140
- package/dist/registry-poll.js.map +0 -1
- package/dist/registry-version-store-db.d.ts +0 -22
- package/dist/registry-version-store-db.d.ts.map +0 -1
- package/dist/registry-version-store-db.js +0 -50
- package/dist/registry-version-store-db.js.map +0 -1
- package/dist/relay-endpoints.d.ts +0 -18
- package/dist/relay-endpoints.d.ts.map +0 -1
- package/dist/relay-endpoints.js +0 -9
- package/dist/relay-endpoints.js.map +0 -1
- package/dist/relay-only.d.ts +0 -140
- package/dist/relay-only.d.ts.map +0 -1
- package/dist/relay-only.js +0 -193
- package/dist/relay-only.js.map +0 -1
- package/dist/relay-receipt-store.d.ts +0 -155
- package/dist/relay-receipt-store.d.ts.map +0 -1
- package/dist/relay-receipt-store.js +0 -284
- package/dist/relay-receipt-store.js.map +0 -1
- package/dist/relay-reconnect.d.ts +0 -32
- package/dist/relay-reconnect.d.ts.map +0 -1
- package/dist/relay-reconnect.js +0 -29
- package/dist/relay-reconnect.js.map +0 -1
- package/dist/reply-lag.d.ts +0 -11
- package/dist/reply-lag.d.ts.map +0 -1
- package/dist/reply-lag.js +0 -46
- package/dist/reply-lag.js.map +0 -1
- package/dist/resolve-named-agent.d.ts +0 -49
- package/dist/resolve-named-agent.d.ts.map +0 -1
- package/dist/resolve-named-agent.js +0 -77
- package/dist/resolve-named-agent.js.map +0 -1
- package/dist/restart-seal-resolver.d.ts +0 -110
- package/dist/restart-seal-resolver.d.ts.map +0 -1
- package/dist/restart-seal-resolver.js +0 -353
- package/dist/restart-seal-resolver.js.map +0 -1
- package/dist/resume-last-seen.d.ts +0 -15
- package/dist/resume-last-seen.d.ts.map +0 -1
- package/dist/resume-last-seen.js +0 -44
- package/dist/resume-last-seen.js.map +0 -1
- package/dist/retry-queue.d.ts +0 -203
- package/dist/retry-queue.d.ts.map +0 -1
- package/dist/retry-queue.js +0 -701
- package/dist/retry-queue.js.map +0 -1
- package/dist/roster-freshness.d.ts +0 -160
- package/dist/roster-freshness.d.ts.map +0 -1
- package/dist/roster-freshness.js +0 -250
- package/dist/roster-freshness.js.map +0 -1
- package/dist/screening-status.d.ts +0 -15
- package/dist/screening-status.d.ts.map +0 -1
- package/dist/screening-status.js +0 -65
- package/dist/screening-status.js.map +0 -1
- package/dist/seal-carried-close.d.ts +0 -37
- package/dist/seal-carried-close.d.ts.map +0 -1
- package/dist/seal-carried-close.js +0 -179
- package/dist/seal-carried-close.js.map +0 -1
- package/dist/seal-certificate-pull.d.ts +0 -79
- package/dist/seal-certificate-pull.d.ts.map +0 -1
- package/dist/seal-certificate-pull.js +0 -186
- package/dist/seal-certificate-pull.js.map +0 -1
- package/dist/seal-certified-root-check.d.ts +0 -37
- package/dist/seal-certified-root-check.d.ts.map +0 -1
- package/dist/seal-certified-root-check.js +0 -127
- package/dist/seal-certified-root-check.js.map +0 -1
- package/dist/seal-coordinator.d.ts +0 -118
- package/dist/seal-coordinator.d.ts.map +0 -1
- package/dist/seal-coordinator.js +0 -927
- package/dist/seal-coordinator.js.map +0 -1
- package/dist/seal-escalation.d.ts +0 -80
- package/dist/seal-escalation.d.ts.map +0 -1
- package/dist/seal-escalation.js +0 -283
- package/dist/seal-escalation.js.map +0 -1
- package/dist/seal-evidence-root-check.d.ts +0 -70
- package/dist/seal-evidence-root-check.d.ts.map +0 -1
- package/dist/seal-evidence-root-check.js +0 -199
- package/dist/seal-evidence-root-check.js.map +0 -1
- package/dist/seal-failure-store.d.ts +0 -129
- package/dist/seal-failure-store.d.ts.map +0 -1
- package/dist/seal-failure-store.js +0 -173
- package/dist/seal-failure-store.js.map +0 -1
- package/dist/seal-flows.d.ts +0 -107
- package/dist/seal-flows.d.ts.map +0 -1
- package/dist/seal-flows.js +0 -638
- package/dist/seal-flows.js.map +0 -1
- package/dist/seal-frontier-verify.d.ts +0 -103
- package/dist/seal-frontier-verify.d.ts.map +0 -1
- package/dist/seal-frontier-verify.js +0 -143
- package/dist/seal-frontier-verify.js.map +0 -1
- package/dist/seal-leaf.d.ts +0 -58
- package/dist/seal-leaf.d.ts.map +0 -1
- package/dist/seal-leaf.js +0 -112
- package/dist/seal-leaf.js.map +0 -1
- package/dist/seal-legibility-tbs.d.ts +0 -25
- package/dist/seal-legibility-tbs.d.ts.map +0 -1
- package/dist/seal-legibility-tbs.js +0 -77
- package/dist/seal-legibility-tbs.js.map +0 -1
- package/dist/seal-local-terminus.d.ts +0 -41
- package/dist/seal-local-terminus.d.ts.map +0 -1
- package/dist/seal-local-terminus.js +0 -170
- package/dist/seal-local-terminus.js.map +0 -1
- package/dist/seal-receipt-upgrade.d.ts +0 -30
- package/dist/seal-receipt-upgrade.d.ts.map +0 -1
- package/dist/seal-receipt-upgrade.js +0 -49
- package/dist/seal-receipt-upgrade.js.map +0 -1
- package/dist/seal-relay-silence.d.ts +0 -51
- package/dist/seal-relay-silence.d.ts.map +0 -1
- package/dist/seal-relay-silence.js +0 -76
- package/dist/seal-relay-silence.js.map +0 -1
- package/dist/seal-settle.d.ts +0 -38
- package/dist/seal-settle.d.ts.map +0 -1
- package/dist/seal-settle.js +0 -33
- package/dist/seal-settle.js.map +0 -1
- package/dist/seal-upgrade.d.ts +0 -107
- package/dist/seal-upgrade.d.ts.map +0 -1
- package/dist/seal-upgrade.js +0 -200
- package/dist/seal-upgrade.js.map +0 -1
- package/dist/sealed-conversation.d.ts +0 -36
- package/dist/sealed-conversation.d.ts.map +0 -1
- package/dist/sealed-conversation.js +0 -171
- package/dist/sealed-conversation.js.map +0 -1
- package/dist/sealed-leaf-set.d.ts +0 -92
- package/dist/sealed-leaf-set.d.ts.map +0 -1
- package/dist/sealed-leaf-set.js +0 -122
- package/dist/sealed-leaf-set.js.map +0 -1
- package/dist/send-claims.d.ts +0 -56
- package/dist/send-claims.d.ts.map +0 -1
- package/dist/send-claims.js +0 -50
- package/dist/send-claims.js.map +0 -1
- package/dist/session-assignment-parser.d.ts +0 -98
- package/dist/session-assignment-parser.d.ts.map +0 -1
- package/dist/session-assignment-parser.js +0 -325
- package/dist/session-assignment-parser.js.map +0 -1
- package/dist/session-category.d.ts +0 -19
- package/dist/session-category.d.ts.map +0 -1
- package/dist/session-category.js +0 -14
- package/dist/session-category.js.map +0 -1
- package/dist/session-ceremony.d.ts +0 -297
- package/dist/session-ceremony.d.ts.map +0 -1
- package/dist/session-ceremony.js +0 -964
- package/dist/session-ceremony.js.map +0 -1
- package/dist/session-closed.d.ts +0 -79
- package/dist/session-closed.d.ts.map +0 -1
- package/dist/session-closed.js +0 -189
- package/dist/session-closed.js.map +0 -1
- package/dist/session-connection-gater.d.ts +0 -148
- package/dist/session-connection-gater.d.ts.map +0 -1
- package/dist/session-connection-gater.js +0 -332
- package/dist/session-connection-gater.js.map +0 -1
- package/dist/session-content-context.d.ts +0 -162
- package/dist/session-content-context.d.ts.map +0 -1
- package/dist/session-content-context.js +0 -2
- package/dist/session-content-context.js.map +0 -1
- package/dist/session-content-handlers.d.ts +0 -82
- package/dist/session-content-handlers.d.ts.map +0 -1
- package/dist/session-content-handlers.js +0 -1382
- package/dist/session-content-handlers.js.map +0 -1
- package/dist/session-content-ingest.d.ts +0 -206
- package/dist/session-content-ingest.d.ts.map +0 -1
- package/dist/session-content-ingest.js +0 -2167
- package/dist/session-content-ingest.js.map +0 -1
- package/dist/session-content-send.d.ts +0 -191
- package/dist/session-content-send.d.ts.map +0 -1
- package/dist/session-content-send.js +0 -1360
- package/dist/session-content-send.js.map +0 -1
- package/dist/session-delivery-acks.d.ts +0 -169
- package/dist/session-delivery-acks.d.ts.map +0 -1
- package/dist/session-delivery-acks.js +0 -569
- package/dist/session-delivery-acks.js.map +0 -1
- package/dist/session-ephemerals.d.ts +0 -279
- package/dist/session-ephemerals.d.ts.map +0 -1
- package/dist/session-ephemerals.js +0 -591
- package/dist/session-ephemerals.js.map +0 -1
- package/dist/session-leaf-records.d.ts +0 -159
- package/dist/session-leaf-records.d.ts.map +0 -1
- package/dist/session-leaf-records.js +0 -408
- package/dist/session-leaf-records.js.map +0 -1
- package/dist/session-lifecycle.d.ts +0 -303
- package/dist/session-lifecycle.d.ts.map +0 -1
- package/dist/session-lifecycle.js +0 -1679
- package/dist/session-lifecycle.js.map +0 -1
- package/dist/session-liveness.d.ts +0 -135
- package/dist/session-liveness.d.ts.map +0 -1
- package/dist/session-liveness.js +0 -347
- package/dist/session-liveness.js.map +0 -1
- package/dist/session-name.d.ts +0 -35
- package/dist/session-name.d.ts.map +0 -1
- package/dist/session-name.js +0 -60
- package/dist/session-name.js.map +0 -1
- package/dist/session-node-factory.d.ts +0 -18
- package/dist/session-node-factory.d.ts.map +0 -1
- package/dist/session-node-factory.js +0 -182
- package/dist/session-node-factory.js.map +0 -1
- package/dist/session-node-manager.d.ts +0 -875
- package/dist/session-node-manager.d.ts.map +0 -1
- package/dist/session-node-manager.js +0 -2995
- package/dist/session-node-manager.js.map +0 -1
- package/dist/session-node-types.d.ts +0 -1057
- package/dist/session-node-types.d.ts.map +0 -1
- package/dist/session-node-types.js +0 -657
- package/dist/session-node-types.js.map +0 -1
- package/dist/session-notify.d.ts +0 -46
- package/dist/session-notify.d.ts.map +0 -1
- package/dist/session-notify.js +0 -116
- package/dist/session-notify.js.map +0 -1
- package/dist/session-own-chain-store.d.ts +0 -65
- package/dist/session-own-chain-store.d.ts.map +0 -1
- package/dist/session-own-chain-store.js +0 -75
- package/dist/session-own-chain-store.js.map +0 -1
- package/dist/session-queries.d.ts +0 -476
- package/dist/session-queries.d.ts.map +0 -1
- package/dist/session-queries.js +0 -1007
- package/dist/session-queries.js.map +0 -1
- package/dist/session-read-handlers.d.ts +0 -87
- package/dist/session-read-handlers.d.ts.map +0 -1
- package/dist/session-read-handlers.js +0 -682
- package/dist/session-read-handlers.js.map +0 -1
- package/dist/session-records.d.ts +0 -341
- package/dist/session-records.d.ts.map +0 -1
- package/dist/session-records.js +0 -858
- package/dist/session-records.js.map +0 -1
- package/dist/session-relay-client.d.ts +0 -659
- package/dist/session-relay-client.d.ts.map +0 -1
- package/dist/session-relay-client.js +0 -2876
- package/dist/session-relay-client.js.map +0 -1
- package/dist/session-relay.d.ts +0 -397
- package/dist/session-relay.d.ts.map +0 -1
- package/dist/session-relay.js +0 -1636
- package/dist/session-relay.js.map +0 -1
- package/dist/session-salt-agreement.d.ts +0 -331
- package/dist/session-salt-agreement.d.ts.map +0 -1
- package/dist/session-salt-agreement.js +0 -472
- package/dist/session-salt-agreement.js.map +0 -1
- package/dist/session-salts.d.ts +0 -432
- package/dist/session-salts.d.ts.map +0 -1
- package/dist/session-salts.js +0 -1540
- package/dist/session-salts.js.map +0 -1
- package/dist/session-schema.d.ts +0 -30
- package/dist/session-schema.d.ts.map +0 -1
- package/dist/session-schema.js +0 -877
- package/dist/session-schema.js.map +0 -1
- package/dist/session-seal-leaf-store.d.ts +0 -70
- package/dist/session-seal-leaf-store.d.ts.map +0 -1
- package/dist/session-seal-leaf-store.js +0 -105
- package/dist/session-seal-leaf-store.js.map +0 -1
- package/dist/session-seal.d.ts +0 -334
- package/dist/session-seal.d.ts.map +0 -1
- package/dist/session-seal.js +0 -1017
- package/dist/session-seal.js.map +0 -1
- package/dist/session-terminal-refusal.d.ts +0 -65
- package/dist/session-terminal-refusal.d.ts.map +0 -1
- package/dist/session-terminal-refusal.js +0 -87
- package/dist/session-terminal-refusal.js.map +0 -1
- package/dist/session-tree.d.ts +0 -110
- package/dist/session-tree.d.ts.map +0 -1
- package/dist/session-tree.js +0 -144
- package/dist/session-tree.js.map +0 -1
- package/dist/session-views.d.ts +0 -47
- package/dist/session-views.d.ts.map +0 -1
- package/dist/session-views.js +0 -278
- package/dist/session-views.js.map +0 -1
- package/dist/signal-handlers.d.ts +0 -63
- package/dist/signal-handlers.d.ts.map +0 -1
- package/dist/signal-handlers.js +0 -980
- package/dist/signal-handlers.js.map +0 -1
- package/dist/signal-requirement-policy.d.ts +0 -51
- package/dist/signal-requirement-policy.d.ts.map +0 -1
- package/dist/signal-requirement-policy.js +0 -89
- package/dist/signal-requirement-policy.js.map +0 -1
- package/dist/signal-revocability.d.ts +0 -49
- package/dist/signal-revocability.d.ts.map +0 -1
- package/dist/signal-revocability.js +0 -93
- package/dist/signal-revocability.js.map +0 -1
- package/dist/signal-submission.d.ts +0 -181
- package/dist/signal-submission.d.ts.map +0 -1
- package/dist/signal-submission.js +0 -368
- package/dist/signal-submission.js.map +0 -1
- package/dist/signaling-connect.d.ts +0 -118
- package/dist/signaling-connect.d.ts.map +0 -1
- package/dist/signaling-connect.js +0 -538
- package/dist/signaling-connect.js.map +0 -1
- package/dist/signaling-wiring.d.ts +0 -105
- package/dist/signaling-wiring.d.ts.map +0 -1
- package/dist/signaling-wiring.js +0 -393
- package/dist/signaling-wiring.js.map +0 -1
- package/dist/singleton-lock.d.ts +0 -85
- package/dist/singleton-lock.d.ts.map +0 -1
- package/dist/singleton-lock.js +0 -219
- package/dist/singleton-lock.js.map +0 -1
- package/dist/sqlcipher-db.d.ts +0 -139
- package/dist/sqlcipher-db.d.ts.map +0 -1
- package/dist/sqlcipher-db.js +0 -357
- package/dist/sqlcipher-db.js.map +0 -1
- package/dist/standing-receivers.d.ts +0 -319
- package/dist/standing-receivers.d.ts.map +0 -1
- package/dist/standing-receivers.js +0 -1295
- package/dist/standing-receivers.js.map +0 -1
- package/dist/start-agent.d.ts +0 -64
- package/dist/start-agent.d.ts.map +0 -1
- package/dist/start-agent.js +0 -136
- package/dist/start-agent.js.map +0 -1
- package/dist/status-handler.d.ts +0 -54
- package/dist/status-handler.d.ts.map +0 -1
- package/dist/status-handler.js +0 -61
- package/dist/status-handler.js.map +0 -1
- package/dist/submission-retry.d.ts +0 -208
- package/dist/submission-retry.d.ts.map +0 -1
- package/dist/submission-retry.js +0 -506
- package/dist/submission-retry.js.map +0 -1
- package/dist/telegram-bot-client.d.ts +0 -34
- package/dist/telegram-bot-client.d.ts.map +0 -1
- package/dist/telegram-bot-client.js +0 -36
- package/dist/telegram-bot-client.js.map +0 -1
- package/dist/telegram-doorbell.d.ts +0 -38
- package/dist/telegram-doorbell.d.ts.map +0 -1
- package/dist/telegram-doorbell.js +0 -140
- package/dist/telegram-doorbell.js.map +0 -1
- package/dist/test-handlers.d.ts +0 -62
- package/dist/test-handlers.d.ts.map +0 -1
- package/dist/test-handlers.js +0 -240
- package/dist/test-handlers.js.map +0 -1
- package/dist/testing.d.ts +0 -10
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js +0 -10
- package/dist/testing.js.map +0 -1
- package/dist/transport-composition.d.ts +0 -31
- package/dist/transport-composition.d.ts.map +0 -1
- package/dist/transport-composition.js +0 -55
- package/dist/transport-composition.js.map +0 -1
- package/dist/transport-selector.d.ts +0 -202
- package/dist/transport-selector.d.ts.map +0 -1
- package/dist/transport-selector.js +0 -196
- package/dist/transport-selector.js.map +0 -1
- package/dist/trust-signal-pickup-listener.d.ts +0 -43
- package/dist/trust-signal-pickup-listener.d.ts.map +0 -1
- package/dist/trust-signal-pickup-listener.js +0 -48
- package/dist/trust-signal-pickup-listener.js.map +0 -1
- package/dist/trust-signal-store.d.ts +0 -406
- package/dist/trust-signal-store.d.ts.map +0 -1
- package/dist/trust-signal-store.js +0 -939
- package/dist/trust-signal-store.js.map +0 -1
- package/dist/trust-signal-sweep-tick.d.ts +0 -60
- package/dist/trust-signal-sweep-tick.d.ts.map +0 -1
- package/dist/trust-signal-sweep-tick.js +0 -101
- package/dist/trust-signal-sweep-tick.js.map +0 -1
- package/dist/trust-signal-sweep.d.ts +0 -94
- package/dist/trust-signal-sweep.d.ts.map +0 -1
- package/dist/trust-signal-sweep.js +0 -147
- package/dist/trust-signal-sweep.js.map +0 -1
- package/dist/type-registry.d.ts +0 -42
- package/dist/type-registry.d.ts.map +0 -1
- package/dist/type-registry.js +0 -37
- package/dist/type-registry.js.map +0 -1
- package/dist/types.d.ts +0 -746
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -20
- package/dist/types.js.map +0 -1
- package/dist/unresolved-nodes-report.d.ts +0 -14
- package/dist/unresolved-nodes-report.d.ts.map +0 -1
- package/dist/unresolved-nodes-report.js +0 -96
- package/dist/unresolved-nodes-report.js.map +0 -1
- package/dist/vocabulary.d.ts +0 -150
- package/dist/vocabulary.d.ts.map +0 -1
- package/dist/vocabulary.js +0 -386
- package/dist/vocabulary.js.map +0 -1
- package/dist/who-label.d.ts +0 -28
- package/dist/who-label.d.ts.map +0 -1
- package/dist/who-label.js +0 -31
- package/dist/who-label.js.map +0 -1
- package/dist/who-resolver.d.ts +0 -15
- package/dist/who-resolver.d.ts.map +0 -1
- package/dist/who-resolver.js +0 -47
- package/dist/who-resolver.js.map +0 -1
- package/dist/wire-content-hash.d.ts +0 -93
- package/dist/wire-content-hash.d.ts.map +0 -1
- package/dist/wire-content-hash.js +0 -116
- package/dist/wire-content-hash.js.map +0 -1
- package/dist/withheld-content.d.ts +0 -13
- package/dist/withheld-content.d.ts.map +0 -1
- package/dist/withheld-content.js +0 -46
- package/dist/withheld-content.js.map +0 -1
- package/dist/witness-alerts.d.ts +0 -40
- package/dist/witness-alerts.d.ts.map +0 -1
- package/dist/witness-alerts.js +0 -102
- package/dist/witness-alerts.js.map +0 -1
package/dist/agent-loader.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent identity loader for the CELLO daemon.
|
|
3
|
-
*
|
|
4
|
-
* Agents are enumerated from the encrypted `agents` table — ONE loading path. There is no flat-file
|
|
5
|
-
* fallback: on-disk key files are imported into the `agents` table by the one-time migration
|
|
6
|
-
* (identity-migration.ts) before this loader runs.
|
|
7
|
-
*
|
|
8
|
-
* Each agent's K_local Ed25519 seed is stored as a BLOB column; the loader builds a sign-only
|
|
9
|
-
* InMemoryKeyProvider from it (the private scalar never leaves the provider — only signatures and
|
|
10
|
-
* content-seal opens are emitted).
|
|
11
|
-
*/
|
|
12
|
-
import { InMemoryKeyProvider } from "@cello-protocol/crypto";
|
|
13
|
-
import { DbIdentityStore } from "./db-identity-store.js";
|
|
14
|
-
import { extractErrorMessage } from "./error-message.js";
|
|
15
|
-
/**
|
|
16
|
-
* Load every agent from the encrypted `agents` table. A row whose seed is unusable (corrupt/wrong
|
|
17
|
-
* length) is reported as a failed agent and skipped — never silently dropped.
|
|
18
|
-
*/
|
|
19
|
-
export async function loadAgents(db, logger) {
|
|
20
|
-
const store = new DbIdentityStore(db, logger);
|
|
21
|
-
const loaded = [];
|
|
22
|
-
const failed = [];
|
|
23
|
-
for (const row of store.listAgents()) {
|
|
24
|
-
try {
|
|
25
|
-
const keyProvider = new InMemoryKeyProvider(row.kLocalSeed);
|
|
26
|
-
const pubkey = Buffer.from(await keyProvider.getPublicKey()).toString("hex");
|
|
27
|
-
loaded.push({ name: row.agentName, pubkey, keyProvider });
|
|
28
|
-
}
|
|
29
|
-
catch (err) {
|
|
30
|
-
const error = extractErrorMessage(err);
|
|
31
|
-
logger.error("agent.load.failed", { agentName: row.agentName, error });
|
|
32
|
-
failed.push({ name: row.agentName, error });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return { loaded, failed };
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=agent-loader.js.map
|
package/dist/agent-loader.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-loader.js","sourceRoot":"","sources":["../src/agent-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAsBzD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAkB,EAAE,MAAc;IACjE,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC;QACrC,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,IAAI,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YAC5D,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7E,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;QAC5D,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,MAAM,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;YACvC,MAAM,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;YACvE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which agent a call is FOR, and how a caller learns it fell back.
|
|
3
|
-
*
|
|
4
|
-
* One rule, in one place, because the alternative has already happened: several handlers each
|
|
5
|
-
* deciding what "the current agent" means is how a call lands on an agent the operator did not
|
|
6
|
-
* choose. The fallback notice rides an AsyncLocalStorage so an answer can carry WHY it fell back
|
|
7
|
-
* without every caller having to thread it through.
|
|
8
|
-
*
|
|
9
|
-
* The registration guidance stayed in the root: it is written between this block and the agent
|
|
10
|
-
* lifecycle handlers, and moving it would have meant moving the handler registration with it.
|
|
11
|
-
*/
|
|
12
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
|
-
import type { Logger } from "./types.js";
|
|
14
|
-
export interface AgentSelectionDeps {
|
|
15
|
-
logger: Logger;
|
|
16
|
-
/** The live set — a copy would freeze at boot and the single-online-agent fallback would never fire. */
|
|
17
|
-
onlineAgents: ReadonlySet<string>;
|
|
18
|
-
}
|
|
19
|
-
export declare function createAgentSelection(deps: AgentSelectionDeps): {
|
|
20
|
-
fallbackNoticeStore: AsyncLocalStorage<{
|
|
21
|
-
notice?: Record<string, unknown>;
|
|
22
|
-
}>;
|
|
23
|
-
resolveCurrentAgent: (connState: {
|
|
24
|
-
currentAgent: string | null;
|
|
25
|
-
clearedAgent?: string;
|
|
26
|
-
clientType?: string;
|
|
27
|
-
} | undefined, explicitAgent?: string) => string | null;
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=agent-selection-root.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-selection-root.d.ts","sourceRoot":"","sources":["../src/agent-selection-root.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,wGAAwG;IACxG,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,kBAAkB;;iBAwDE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;qCAGvE;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,kBAClF,MAAM,KACrB,MAAM,GAAG,IAAI;EA0DjB"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which agent a call is FOR, and how a caller learns it fell back.
|
|
3
|
-
*
|
|
4
|
-
* One rule, in one place, because the alternative has already happened: several handlers each
|
|
5
|
-
* deciding what "the current agent" means is how a call lands on an agent the operator did not
|
|
6
|
-
* choose. The fallback notice rides an AsyncLocalStorage so an answer can carry WHY it fell back
|
|
7
|
-
* without every caller having to thread it through.
|
|
8
|
-
*
|
|
9
|
-
* The registration guidance stayed in the root: it is written between this block and the agent
|
|
10
|
-
* lifecycle handlers, and moving it would have meant moving the handler registration with it.
|
|
11
|
-
*/
|
|
12
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
|
-
import { resolveCurrentAgentFor } from "./agent-selection.js";
|
|
14
|
-
export function createAgentSelection(deps) {
|
|
15
|
-
const { logger, onlineAgents } = deps;
|
|
16
|
-
// M8C-AUTOSTART-1 (F18): resolve which agent an agent-defaulting tool should act on for this
|
|
17
|
-
// connection: an explicit { agent } wins; else the connection's current agent; else — when EXACTLY one
|
|
18
|
-
// agent is online daemon-wide — that sole agent (removes the "why did it forget my agent" moment
|
|
19
|
-
// after a /mcp reconnect). Two-or-more online with none selected stays ambiguous → null (the
|
|
20
|
-
// caller returns no_current_agent), because guessing between peers would misroute.
|
|
21
|
-
/**
|
|
22
|
-
* Which agent does this call act as?
|
|
23
|
-
*
|
|
24
|
-
* An explicit { agent } wins, then this connection's selection. Only with NEITHER does the daemon fall back
|
|
25
|
-
* to the sole online agent — a convenience for a caller that never chose, where "the online one"
|
|
26
|
-
* cannot mean anyone else.
|
|
27
|
-
*
|
|
28
|
-
* The fallback is REFUSED for a connection whose selection was taken away (`clearedAgent`): it
|
|
29
|
-
* chose an agent, that agent was stopped or retired, and the choice is gone. Falling back there
|
|
30
|
-
* silently re-targets the next call at whoever else happens to be online — the caller asked for
|
|
31
|
-
* alice, alice was stopped, and the work lands on bob reporting success. A lost intent is not the
|
|
32
|
-
* same as no intent, and it must fail loud (no_current_agent) rather than be guessed at.
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* Which agent this call acts as — `DOD-M15-SELECTION-1`, logic in `agent-selection.ts`.
|
|
36
|
-
*
|
|
37
|
-
* It used to end with `if (onlineAgents.size === 1) return [...onlineAgents][0]`, so a connection
|
|
38
|
-
* that had selected nothing acted as whichever agent happened to be the only one online. On a
|
|
39
|
-
* shared daemon that can be a DIFFERENT operator's agent, and a live MCP session was being bound
|
|
40
|
-
* to an identity it never asked for.
|
|
41
|
-
*
|
|
42
|
-
* The resolution is now attributable: every path reports how it was reached, and `fallback` — the
|
|
43
|
-
* one that was invisible — is logged at INFO. `DOD-M15-IPCVISIBLE-1`.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* The fallback notice owed to THIS REQUEST's response — `DOD-M15-SELECTION-1` clause 2.
|
|
47
|
-
*
|
|
48
|
-
* ─── Why an AsyncLocalStorage and not a per-connection map ─────────────────────────────────────
|
|
49
|
-
*
|
|
50
|
-
* The first cut keyed a `WeakMap` on the per-connection state object, so the notice belonged to
|
|
51
|
-
* the CONNECTION and was read back at the response boundary. Review found that hands the notice to
|
|
52
|
-
* whichever response finishes first, and Claude Code issues tool calls in parallel:
|
|
53
|
-
*
|
|
54
|
-
* 1. the agent calls `cello_receive` — nothing selected, so the fallback resolves and records
|
|
55
|
-
* the notice, then the handler BLOCKS for up to 30 s waiting for content;
|
|
56
|
-
* 2. in the same turn it calls `cello_sessions {agent: "bob"}`, which names an agent explicitly
|
|
57
|
-
* and never falls back;
|
|
58
|
-
* 3. `cello_sessions` returns first and takes the notice on its way out.
|
|
59
|
-
*
|
|
60
|
-
* Bob's response now says *"no agent was selected, so 'solo' was used"* — false, on the one call
|
|
61
|
-
* that did name an agent — and `cello_receive`, the call that actually fell back, says nothing.
|
|
62
|
-
* Exactly inverted.
|
|
63
|
-
*
|
|
64
|
-
* A notice is a fact about ONE CALL, so it is stored in that call's async context. The store is
|
|
65
|
-
* created per request in `renderedHandlers` and dies with it, which also means a handler that
|
|
66
|
-
* THROWS cannot leave a notice behind to attach itself to some later, unrelated response — the
|
|
67
|
-
* other half of the same review finding.
|
|
68
|
-
*/
|
|
69
|
-
const fallbackNoticeStore = new AsyncLocalStorage();
|
|
70
|
-
function resolveCurrentAgent(connState, explicitAgent) {
|
|
71
|
-
return resolveCurrentAgentFor({
|
|
72
|
-
connState,
|
|
73
|
-
onlineAgents,
|
|
74
|
-
...(explicitAgent !== undefined ? { explicitAgent } : {}),
|
|
75
|
-
onResolved: (agent, trigger) => {
|
|
76
|
-
// Only the FALLBACK is announced. `explicit` and `selected` are the ordinary cases and
|
|
77
|
-
// logging them would bury the one that matters — a signal that fires on the normal case is
|
|
78
|
-
// not a signal.
|
|
79
|
-
if (trigger !== "fallback")
|
|
80
|
-
return;
|
|
81
|
-
/**
|
|
82
|
-
* RECORDED FOR THE RESPONSE, not just the log — `DOD-M15-SELECTION-1` clause 2.
|
|
83
|
-
*
|
|
84
|
-
* The log tells whoever reads the daemon log. The RESPONSE tells the agent that just acted
|
|
85
|
-
* as an identity it never selected, which is the one that stops the half-attended state
|
|
86
|
-
* being read as the protocol dropping messages.
|
|
87
|
-
*/
|
|
88
|
-
/**
|
|
89
|
-
* No `connState` guard. The first cut wrote the notice only `if (agent && connState)`, and
|
|
90
|
-
* `perConnectionState` is populated at `ipc.connect` — which `withIpc` in the CLI
|
|
91
|
-
* (`core/cli/src/commands.ts`) does not send. So every plain `cello` invocation fell back
|
|
92
|
-
* and got a response that said nothing, while the log line below fired regardless: the
|
|
93
|
-
* clause asks for explicit IN THE RESPONSE, and those callers had it explicit in the log
|
|
94
|
-
* only. The store is per-REQUEST, so it exists whether or not the connection ever
|
|
95
|
-
* handshook.
|
|
96
|
-
*/
|
|
97
|
-
const store = fallbackNoticeStore.getStore();
|
|
98
|
-
if (agent && store) {
|
|
99
|
-
store.notice = {
|
|
100
|
-
acting_as: agent,
|
|
101
|
-
agent_selection: "fallback",
|
|
102
|
-
agent_selection_guidance: `No agent was selected on this connection, so '${agent}' was used because it is the ` +
|
|
103
|
-
`only one online. This is a per-call subject, NOT an attendance: doorbells route by ` +
|
|
104
|
-
`the connection's registered agent and this does not set it. Two things follow — ` +
|
|
105
|
-
`this session will not WAKE on an incoming message even though sending and reading ` +
|
|
106
|
-
`work, and anyone who opens a session with you is sent an AWAY auto-reply while you ` +
|
|
107
|
-
`sit here able to answer. Run cello_use_agent to fix both. Naming the agent on each ` +
|
|
108
|
-
`call is NOT a remedy for either: it settles which agent a call is about and leaves ` +
|
|
109
|
-
`the connection just as unattended.`,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
logger.info("agent.current.fallback", {
|
|
113
|
-
agentName: agent,
|
|
114
|
-
clientType: connState?.clientType ?? "cli",
|
|
115
|
-
impact: "this call had no selected agent and exactly one was online, so that one was used. It " +
|
|
116
|
-
"is a per-call subject, NOT an attendance: doorbells route by the connection's " +
|
|
117
|
-
"registered agent, which this does not set.",
|
|
118
|
-
guidance: "If this was not the intended agent, name it explicitly, or run cello_use_agent to " +
|
|
119
|
-
"select one for the connection.",
|
|
120
|
-
});
|
|
121
|
-
},
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
return { fallbackNoticeStore, resolveCurrentAgent };
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=agent-selection-root.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-selection-root.js","sourceRoot":"","sources":["../src/agent-selection-root.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAS9D,MAAM,UAAU,oBAAoB,CAAC,IAAwB;IAC3D,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAEtC,6FAA6F;IAC7F,uGAAuG;IACvG,iGAAiG;IACjG,6FAA6F;IAC7F,mFAAmF;IACnF;;;;;;;;;;;;OAYG;IACH;;;;;;;;;;OAUG;IACH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,mBAAmB,GAAG,IAAI,iBAAiB,EAAwC,CAAC;IAE1F,SAAS,mBAAmB,CAC1B,SAAkG,EAClG,aAAsB;QAEtB,OAAO,sBAAsB,CAAC;YAC5B,SAAS;YACT,YAAY;YACZ,GAAG,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzD,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;gBAC7B,uFAAuF;gBACvF,2FAA2F;gBAC3F,gBAAgB;gBAChB,IAAI,OAAO,KAAK,UAAU;oBAAE,OAAO;gBACnC;;;;;;mBAMG;gBACH;;;;;;;;mBAQG;gBACH,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;gBAC7C,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;oBACnB,KAAK,CAAC,MAAM,GAAG;wBACb,SAAS,EAAE,KAAK;wBAChB,eAAe,EAAE,UAAU;wBAC3B,wBAAwB,EACtB,iDAAiD,KAAK,+BAA+B;4BACrF,qFAAqF;4BACrF,kFAAkF;4BAClF,oFAAoF;4BACpF,qFAAqF;4BACrF,qFAAqF;4BACrF,qFAAqF;4BACrF,oCAAoC;qBACvC,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,wBAAwB,EAAE;oBACpC,SAAS,EAAE,KAAK;oBAChB,UAAU,EAAE,SAAS,EAAE,UAAU,IAAI,KAAK;oBAC1C,MAAM,EACJ,uFAAuF;wBACvF,gFAAgF;wBAChF,4CAA4C;oBAC9C,QAAQ,EACN,oFAAoF;wBACpF,gCAAgC;iBACnC,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;AACtD,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which agent a call acts as, and HOW that was decided — `DOD-M15-SELECTION-1`,
|
|
3
|
-
* `DOD-M15-IPCVISIBLE-1`.
|
|
4
|
-
*
|
|
5
|
-
* ─── The defect this is extracted from ─────────────────────────────────────────────────────────
|
|
6
|
-
*
|
|
7
|
-
* This logic was four lines inside `daemon.ts`, ending in:
|
|
8
|
-
*
|
|
9
|
-
* if (onlineAgents.size === 1) return [...onlineAgents][0];
|
|
10
|
-
*
|
|
11
|
-
* A connection that had selected nothing therefore acted as whichever agent happened to be the only
|
|
12
|
-
* one online. On a shared daemon that can be a DIFFERENT operator's agent, which is how it was
|
|
13
|
-
* found: after a restart a released agent was silently reinstated under someone else's name.
|
|
14
|
-
*
|
|
15
|
-
* ─── Why the fallback is worse than it looks even when it picks the "right" agent ──────────────
|
|
16
|
-
*
|
|
17
|
-
* It produces a HALF-ATTENDED state. Tools resolve a subject and work; the notification dispatcher
|
|
18
|
-
* routes doorbells by the connection's REGISTERED current agent, which this never sets. So the
|
|
19
|
-
* session sends and receives on request but never wakes — and an operator reads that as the
|
|
20
|
-
* protocol dropping messages, not as a selection that was never made.
|
|
21
|
-
*
|
|
22
|
-
* ─── AND WHY IT IS STILL HERE ──────────────────────────────────────────────────────────────────
|
|
23
|
-
*
|
|
24
|
-
* My first version switched the fallback OFF for MCP on that reasoning, and four tests said no. CC-3
|
|
25
|
-
* added it deliberately, to fix "the post-/mcp-reconnect papercut": a reconnected session with
|
|
26
|
-
* exactly one agent online used to hard-fail `no_current_agent`.
|
|
27
|
-
*
|
|
28
|
-
* `DOD-M15-SELECTION-1`'s answer is narrower than removal — *"if a fallback is wanted it is EXPLICIT
|
|
29
|
-
* in the response, not announced as an accomplished fact"* — and it sequences the work: *"diagnosis
|
|
30
|
-
* first… with the trigger field from DOD-M15-IPCVISIBLE-1 distinguishing replay from fallback in one
|
|
31
|
-
* run."* So this module makes the decision ATTRIBUTABLE, which is the precondition, and changing
|
|
32
|
-
* what the fallback DOES waits for the diagnosis that attribution makes possible.
|
|
33
|
-
*
|
|
34
|
-
* ─── Every path reports how it got there ───────────────────────────────────────────────────────
|
|
35
|
-
*
|
|
36
|
-
* Two agent switches fired one second after a reconnect on 2026-08-09 and neither could be
|
|
37
|
-
* attributed, because an operator's explicit selection and the shim's reconnect replay arrive
|
|
38
|
-
* identically. `fallback` is the third value `DOD-M15-IPCVISIBLE-1` asks for, and the one that was
|
|
39
|
-
* invisible.
|
|
40
|
-
*/
|
|
41
|
-
/** How a call's acting agent was arrived at. Every branch reports one. */
|
|
42
|
-
export type SelectionTrigger =
|
|
43
|
-
/** The caller named an agent on this call. */
|
|
44
|
-
"explicit"
|
|
45
|
-
/** The connection had selected one earlier with `cello_use_agent`. */
|
|
46
|
-
| "selected"
|
|
47
|
-
/** Nothing was selected and one agent was online — a CLI convenience, never for a live session. */
|
|
48
|
-
| "fallback"
|
|
49
|
-
/**
|
|
50
|
-
* The connection's choice was TAKEN AWAY — the agent was shut down or removed underneath it.
|
|
51
|
-
*
|
|
52
|
-
* NOT a voluntary release. `cello_stop_using_agent` deliberately does not set this: the operator
|
|
53
|
-
* choosing to hold nothing stays eligible for the sole-online fallback, whereas a connection whose
|
|
54
|
-
* agent vanished must not have a replacement guessed for it.
|
|
55
|
-
*/
|
|
56
|
-
| "cleared"
|
|
57
|
-
/** No agent could be determined. */
|
|
58
|
-
| "none";
|
|
59
|
-
export interface SelectionConnState {
|
|
60
|
-
currentAgent: string | null;
|
|
61
|
-
/** Set by `cello_stop_using_agent`: this connection HAD an intent and gave it up. */
|
|
62
|
-
clearedAgent?: string;
|
|
63
|
-
/** `"mcp"` is a live session; anything else is treated as an ephemeral CLI invocation. */
|
|
64
|
-
clientType?: string;
|
|
65
|
-
}
|
|
66
|
-
export declare function resolveCurrentAgentFor(opts: {
|
|
67
|
-
connState: SelectionConnState | undefined;
|
|
68
|
-
onlineAgents: ReadonlySet<string>;
|
|
69
|
-
explicitAgent?: string;
|
|
70
|
-
/** Called exactly once with the outcome, so the decision is attributable in the log. */
|
|
71
|
-
onResolved?: (agent: string | null, trigger: SelectionTrigger) => void;
|
|
72
|
-
}): string | null;
|
|
73
|
-
//# sourceMappingURL=agent-selection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-selection.d.ts","sourceRoot":"","sources":["../src/agent-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,0EAA0E;AAC1E,MAAM,MAAM,gBAAgB;AAC1B,8CAA8C;AAC5C,UAAU;AACZ,sEAAsE;GACpE,UAAU;AACZ,mGAAmG;GACjG,UAAU;AACZ;;;;;;GAMG;GACD,SAAS;AACX,oCAAoC;GAClC,MAAM,CAAC;AAEX,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,SAAS,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACxE,GAAG,MAAM,GAAG,IAAI,CAsChB"}
|
package/dist/agent-selection.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Which agent a call acts as, and HOW that was decided — `DOD-M15-SELECTION-1`,
|
|
3
|
-
* `DOD-M15-IPCVISIBLE-1`.
|
|
4
|
-
*
|
|
5
|
-
* ─── The defect this is extracted from ─────────────────────────────────────────────────────────
|
|
6
|
-
*
|
|
7
|
-
* This logic was four lines inside `daemon.ts`, ending in:
|
|
8
|
-
*
|
|
9
|
-
* if (onlineAgents.size === 1) return [...onlineAgents][0];
|
|
10
|
-
*
|
|
11
|
-
* A connection that had selected nothing therefore acted as whichever agent happened to be the only
|
|
12
|
-
* one online. On a shared daemon that can be a DIFFERENT operator's agent, which is how it was
|
|
13
|
-
* found: after a restart a released agent was silently reinstated under someone else's name.
|
|
14
|
-
*
|
|
15
|
-
* ─── Why the fallback is worse than it looks even when it picks the "right" agent ──────────────
|
|
16
|
-
*
|
|
17
|
-
* It produces a HALF-ATTENDED state. Tools resolve a subject and work; the notification dispatcher
|
|
18
|
-
* routes doorbells by the connection's REGISTERED current agent, which this never sets. So the
|
|
19
|
-
* session sends and receives on request but never wakes — and an operator reads that as the
|
|
20
|
-
* protocol dropping messages, not as a selection that was never made.
|
|
21
|
-
*
|
|
22
|
-
* ─── AND WHY IT IS STILL HERE ──────────────────────────────────────────────────────────────────
|
|
23
|
-
*
|
|
24
|
-
* My first version switched the fallback OFF for MCP on that reasoning, and four tests said no. CC-3
|
|
25
|
-
* added it deliberately, to fix "the post-/mcp-reconnect papercut": a reconnected session with
|
|
26
|
-
* exactly one agent online used to hard-fail `no_current_agent`.
|
|
27
|
-
*
|
|
28
|
-
* `DOD-M15-SELECTION-1`'s answer is narrower than removal — *"if a fallback is wanted it is EXPLICIT
|
|
29
|
-
* in the response, not announced as an accomplished fact"* — and it sequences the work: *"diagnosis
|
|
30
|
-
* first… with the trigger field from DOD-M15-IPCVISIBLE-1 distinguishing replay from fallback in one
|
|
31
|
-
* run."* So this module makes the decision ATTRIBUTABLE, which is the precondition, and changing
|
|
32
|
-
* what the fallback DOES waits for the diagnosis that attribution makes possible.
|
|
33
|
-
*
|
|
34
|
-
* ─── Every path reports how it got there ───────────────────────────────────────────────────────
|
|
35
|
-
*
|
|
36
|
-
* Two agent switches fired one second after a reconnect on 2026-08-09 and neither could be
|
|
37
|
-
* attributed, because an operator's explicit selection and the shim's reconnect replay arrive
|
|
38
|
-
* identically. `fallback` is the third value `DOD-M15-IPCVISIBLE-1` asks for, and the one that was
|
|
39
|
-
* invisible.
|
|
40
|
-
*/
|
|
41
|
-
export function resolveCurrentAgentFor(opts) {
|
|
42
|
-
const report = (agent, trigger) => {
|
|
43
|
-
opts.onResolved?.(agent, trigger);
|
|
44
|
-
return agent;
|
|
45
|
-
};
|
|
46
|
-
if (opts.explicitAgent)
|
|
47
|
-
return report(opts.explicitAgent, "explicit");
|
|
48
|
-
if (opts.connState?.currentAgent)
|
|
49
|
-
return report(opts.connState.currentAgent, "selected");
|
|
50
|
-
/**
|
|
51
|
-
* AN INVOLUNTARY CLEAR BLOCKS THE FALLBACK. Pre-existing behaviour, preserved.
|
|
52
|
-
*
|
|
53
|
-
* `clearedAgent` means the connection's agent was shut down or removed underneath it — do not
|
|
54
|
-
* guess a replacement. A VOLUNTARY release (`cello_stop_using_agent`) deliberately does not set
|
|
55
|
-
* it, because the operator choosing to hold nothing is not the same as having the choice taken,
|
|
56
|
-
* and they stay eligible for the fallback.
|
|
57
|
-
*/
|
|
58
|
-
if (opts.connState?.clearedAgent)
|
|
59
|
-
return report(null, "cleared");
|
|
60
|
-
/**
|
|
61
|
-
* THE SOLE-ONLINE FALLBACK — behaviour UNCHANGED, visibility added.
|
|
62
|
-
*
|
|
63
|
-
* `DOD-M15-SELECTION-1` names this as the place a live MCP session gets bound to an identity it
|
|
64
|
-
* never asked for, and the instinct is to switch it off for MCP. That is wrong, and the tests say
|
|
65
|
-
* why: CC-3 introduced it deliberately to fix "the post-/mcp-reconnect papercut", where a
|
|
66
|
-
* reconnected session hard-failed `no_current_agent` with exactly one agent online.
|
|
67
|
-
*
|
|
68
|
-
* The line's own answer is narrower than removal: *"if a fallback is wanted it is EXPLICIT in the
|
|
69
|
-
* response, not announced as an accomplished fact."* And it sequences the work — *"diagnosis
|
|
70
|
-
* first… with the trigger field from DOD-M15-IPCVISIBLE-1 distinguishing replay from fallback in
|
|
71
|
-
* one run."* So this reports itself, and changing what it DOES waits for that diagnosis.
|
|
72
|
-
*
|
|
73
|
-
* Exactly one, never a guess between two: choosing between identities is a coin flip with the
|
|
74
|
-
* operator's name on it, not a convenience.
|
|
75
|
-
*/
|
|
76
|
-
if (opts.onlineAgents.size === 1)
|
|
77
|
-
return report([...opts.onlineAgents][0], "fallback");
|
|
78
|
-
return report(null, "none");
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=agent-selection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-selection.js","sourceRoot":"","sources":["../src/agent-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AA6BH,MAAM,UAAU,sBAAsB,CAAC,IAMtC;IACC,MAAM,MAAM,GAAG,CAAC,KAAoB,EAAE,OAAyB,EAAiB,EAAE;QAChF,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,IAAI,IAAI,CAAC,aAAa;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;IACtE,IAAI,IAAI,CAAC,SAAS,EAAE,YAAY;QAAE,OAAO,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IAEzF;;;;;;;OAOG;IACH,IAAI,IAAI,CAAC,SAAS,EAAE,YAAY;QAAE,OAAO,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAEjE;;;;;;;;;;;;;;;OAeG;IACH,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAE,EAAE,UAAU,CAAC,CAAC;IAExF,OAAO,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CELLO Daemon — the agent_settings key namespace (DOD-SETTINGS-1).
|
|
3
|
-
*
|
|
4
|
-
* A single source for every valid per-agent reachability-policy setting key, so the handler (which
|
|
5
|
-
* REFUSES an unknown key) and the consumers (TIER-BOUNDS-SETTINGS reads the bound overrides,
|
|
6
|
-
* AWAY-TIER-1 reads the away texts) can never drift. Keys are lower-snake, dotted namespaces:
|
|
7
|
-
*
|
|
8
|
-
* bounds.<tier>.max_sessions bounds.<tier>.max_bytes — per-tier bound overrides
|
|
9
|
-
* away.default — the agent's default away text
|
|
10
|
-
* away.tier.<tier> — a per-tier away text
|
|
11
|
-
*
|
|
12
|
-
* `<tier>` is a tier NAME (not the integer), for legibility in the store. BLOCKED is deliberately NOT
|
|
13
|
-
* settable — 0/0 is fixed (you cannot "raise" a block), and it has no away text (a blocked sender is
|
|
14
|
-
* refused before any reply). So the settable tiers are unknown / known / whitelisted / vip.
|
|
15
|
-
*/
|
|
16
|
-
/** The tiers whose bounds and away texts are settable (BLOCKED is fixed, never overridable). */
|
|
17
|
-
export declare const SETTABLE_TIER_NAMES: readonly ["unknown", "known", "whitelisted", "vip"];
|
|
18
|
-
export type SettableTierName = (typeof SETTABLE_TIER_NAMES)[number];
|
|
19
|
-
/** The tier NAME for a tier integer, or null for an unknown/unsettable value (e.g. BLOCKED=0).
|
|
20
|
-
* Keyed off the TIER constants (review F3) so a renumbering in contacts-tier-migration can never
|
|
21
|
-
* silently desync the settings namespace from the grid. */
|
|
22
|
-
export declare function settableTierName(tier: number): SettableTierName | null;
|
|
23
|
-
export type BoundField = "max_sessions" | "max_bytes";
|
|
24
|
-
/** The setting key for a per-tier bound override. */
|
|
25
|
-
export declare function boundSettingKey(tier: SettableTierName, field: BoundField): string;
|
|
26
|
-
/** The setting key for a per-tier away text. */
|
|
27
|
-
export declare function awayTierSettingKey(tier: SettableTierName): string;
|
|
28
|
-
/** The setting key for the agent's default away text (the fallback below any per-tier text). */
|
|
29
|
-
export declare const AWAY_DEFAULT_KEY = "away.default";
|
|
30
|
-
/** True iff `key` is a known, settable reachability-policy key. An unknown key is REFUSED by the
|
|
31
|
-
* handler (never silently stored — a typo'd key that persisted would be a setting that never takes
|
|
32
|
-
* effect, invisible to the operator). */
|
|
33
|
-
export declare function isValidSettingKey(key: string): boolean;
|
|
34
|
-
/** The full list of valid keys (for surfacing in a settings-list / help). */
|
|
35
|
-
export declare function allSettingKeys(): string[];
|
|
36
|
-
/** True iff the key is a per-tier BOUND override (its value must be a positive integer). */
|
|
37
|
-
export declare function isBoundKey(key: string): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Validate a setting's VALUE for its key (DOD-TIER-BOUNDS-SETTINGS AC2). A bound override may only be
|
|
40
|
-
* a FINITE POSITIVE INTEGER — INV-TIER-BOUND: a setting can RAISE or lower a bound within finite
|
|
41
|
-
* limits, never REMOVE one. So `Infinity`, negatives, zero, non-integers, and non-numeric strings are
|
|
42
|
-
* refused (an unbounded tier is exactly what the grid forbids). Away-text values are free-form strings.
|
|
43
|
-
*/
|
|
44
|
-
export declare function validateSettingValue(key: string, value: string): {
|
|
45
|
-
ok: true;
|
|
46
|
-
} | {
|
|
47
|
-
ok: false;
|
|
48
|
-
reason: string;
|
|
49
|
-
};
|
|
50
|
-
/** Max length of an away message (per-contact or per-tier/agent-default) — an answering-machine line. */
|
|
51
|
-
export declare const AWAY_MESSAGE_MAX_LEN = 2048;
|
|
52
|
-
//# sourceMappingURL=agent-settings-keys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-settings-keys.d.ts","sourceRoot":"","sources":["../src/agent-settings-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,qDAAqE,CAAC;AACtG,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE;;4DAE4D;AAC5D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAQtE;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;AAEtD,qDAAqD;AACrD,wBAAgB,eAAe,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAEjF;AAED,gDAAgD;AAChD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEjE;AAED,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAgB/C;;0CAE0C;AAC1C,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED,4FAA4F;AAC5F,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAqC7G;AAED,yGAAyG;AACzG,eAAO,MAAM,oBAAoB,OAAO,CAAC"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CELLO Daemon — the agent_settings key namespace (DOD-SETTINGS-1).
|
|
3
|
-
*
|
|
4
|
-
* A single source for every valid per-agent reachability-policy setting key, so the handler (which
|
|
5
|
-
* REFUSES an unknown key) and the consumers (TIER-BOUNDS-SETTINGS reads the bound overrides,
|
|
6
|
-
* AWAY-TIER-1 reads the away texts) can never drift. Keys are lower-snake, dotted namespaces:
|
|
7
|
-
*
|
|
8
|
-
* bounds.<tier>.max_sessions bounds.<tier>.max_bytes — per-tier bound overrides
|
|
9
|
-
* away.default — the agent's default away text
|
|
10
|
-
* away.tier.<tier> — a per-tier away text
|
|
11
|
-
*
|
|
12
|
-
* `<tier>` is a tier NAME (not the integer), for legibility in the store. BLOCKED is deliberately NOT
|
|
13
|
-
* settable — 0/0 is fixed (you cannot "raise" a block), and it has no away text (a blocked sender is
|
|
14
|
-
* refused before any reply). So the settable tiers are unknown / known / whitelisted / vip.
|
|
15
|
-
*/
|
|
16
|
-
import { TIER } from "./contacts-tier-migration.js";
|
|
17
|
-
import { RELAY_ONLY_KEY } from "./relay-only.js";
|
|
18
|
-
/** The tiers whose bounds and away texts are settable (BLOCKED is fixed, never overridable). */
|
|
19
|
-
export const SETTABLE_TIER_NAMES = Object.freeze(["unknown", "known", "whitelisted", "vip"]);
|
|
20
|
-
/** The tier NAME for a tier integer, or null for an unknown/unsettable value (e.g. BLOCKED=0).
|
|
21
|
-
* Keyed off the TIER constants (review F3) so a renumbering in contacts-tier-migration can never
|
|
22
|
-
* silently desync the settings namespace from the grid. */
|
|
23
|
-
export function settableTierName(tier) {
|
|
24
|
-
switch (tier) {
|
|
25
|
-
case TIER.UNKNOWN: return "unknown";
|
|
26
|
-
case TIER.KNOWN: return "known";
|
|
27
|
-
case TIER.WHITELISTED: return "whitelisted";
|
|
28
|
-
case TIER.VIP: return "vip";
|
|
29
|
-
default: return null; // BLOCKED or out-of-range — not settable
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/** The setting key for a per-tier bound override. */
|
|
33
|
-
export function boundSettingKey(tier, field) {
|
|
34
|
-
return `bounds.${tier}.${field}`;
|
|
35
|
-
}
|
|
36
|
-
/** The setting key for a per-tier away text. */
|
|
37
|
-
export function awayTierSettingKey(tier) {
|
|
38
|
-
return `away.tier.${tier}`;
|
|
39
|
-
}
|
|
40
|
-
/** The setting key for the agent's default away text (the fallback below any per-tier text). */
|
|
41
|
-
export const AWAY_DEFAULT_KEY = "away.default";
|
|
42
|
-
const BOUND_FIELDS = Object.freeze(["max_sessions", "max_bytes"]);
|
|
43
|
-
/** Every valid setting key, precomputed. The handler validates a `set` against this exact set. */
|
|
44
|
-
const VALID_KEYS = new Set([
|
|
45
|
-
AWAY_DEFAULT_KEY,
|
|
46
|
-
// DOD-M15-RELAYONLY-1: relay-only routing. A BOOLEAN key, and the first one here — see
|
|
47
|
-
// `validateSettingValue`, where it needs its own branch or the away-text fallback swallows it.
|
|
48
|
-
RELAY_ONLY_KEY,
|
|
49
|
-
...SETTABLE_TIER_NAMES.flatMap((t) => [
|
|
50
|
-
...BOUND_FIELDS.map((f) => boundSettingKey(t, f)),
|
|
51
|
-
awayTierSettingKey(t),
|
|
52
|
-
]),
|
|
53
|
-
]);
|
|
54
|
-
/** True iff `key` is a known, settable reachability-policy key. An unknown key is REFUSED by the
|
|
55
|
-
* handler (never silently stored — a typo'd key that persisted would be a setting that never takes
|
|
56
|
-
* effect, invisible to the operator). */
|
|
57
|
-
export function isValidSettingKey(key) {
|
|
58
|
-
return VALID_KEYS.has(key);
|
|
59
|
-
}
|
|
60
|
-
/** The full list of valid keys (for surfacing in a settings-list / help). */
|
|
61
|
-
export function allSettingKeys() {
|
|
62
|
-
return [...VALID_KEYS];
|
|
63
|
-
}
|
|
64
|
-
/** True iff the key is a per-tier BOUND override (its value must be a positive integer). */
|
|
65
|
-
export function isBoundKey(key) {
|
|
66
|
-
return key.startsWith("bounds.");
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Validate a setting's VALUE for its key (DOD-TIER-BOUNDS-SETTINGS AC2). A bound override may only be
|
|
70
|
-
* a FINITE POSITIVE INTEGER — INV-TIER-BOUND: a setting can RAISE or lower a bound within finite
|
|
71
|
-
* limits, never REMOVE one. So `Infinity`, negatives, zero, non-integers, and non-numeric strings are
|
|
72
|
-
* refused (an unbounded tier is exactly what the grid forbids). Away-text values are free-form strings.
|
|
73
|
-
*/
|
|
74
|
-
export function validateSettingValue(key, value) {
|
|
75
|
-
if (isBoundKey(key)) {
|
|
76
|
-
// `^[1-9][0-9]*$` — a positive integer with no sign, decimal, or `Infinity`/`NaN` spelling.
|
|
77
|
-
if (!/^[1-9][0-9]*$/.test(value)) {
|
|
78
|
-
return { ok: false, reason: "a bound must be a finite positive integer (no 0, negative, decimal, or Infinity)" };
|
|
79
|
-
}
|
|
80
|
-
// Number.MAX_SAFE_INTEGER guard — a value past it loses precision and is meaningless as a cap.
|
|
81
|
-
if (Number(value) > Number.MAX_SAFE_INTEGER) {
|
|
82
|
-
return { ok: false, reason: "a bound must be <= Number.MAX_SAFE_INTEGER" };
|
|
83
|
-
}
|
|
84
|
-
return { ok: true };
|
|
85
|
-
}
|
|
86
|
-
// DOD-M15-RELAYONLY-1: a BOOLEAN key, and it must be caught BEFORE the away-text fallback below.
|
|
87
|
-
//
|
|
88
|
-
// ⚠️ THE FALLBACK IS THE HAZARD, not an edge case. Everything that is not a bound key falls
|
|
89
|
-
// through to away-text validation, which accepts any non-empty string under 2048 characters. So
|
|
90
|
-
// without this branch `transport.relay_only = "yes"` — or `"flase"` — would STORE successfully and
|
|
91
|
-
// then read as not-"true" forever: the operator sets the privacy control, is told it was saved,
|
|
92
|
-
// and has no protection. `isRelayOnly` deliberately treats anything but "true" as OFF, which is
|
|
93
|
-
// only safe because a bad value cannot get past here to be misread later.
|
|
94
|
-
if (key === RELAY_ONLY_KEY) {
|
|
95
|
-
if (value !== "true" && value !== "false") {
|
|
96
|
-
return { ok: false, reason: `${RELAY_ONLY_KEY} must be exactly "true" or "false"` };
|
|
97
|
-
}
|
|
98
|
-
return { ok: true };
|
|
99
|
-
}
|
|
100
|
-
// Away-text (review F2/F3): an EMPTY / whitespace-only away text is refused — to CLEAR, use null
|
|
101
|
-
// (cello_contact_set_away) or omit the key; storing "" would silently blank every away reply,
|
|
102
|
-
// including the minimal stranger disclosure. Bounded to a sane length (an answering-machine line,
|
|
103
|
-
// not a document).
|
|
104
|
-
if (value.trim().length === 0) {
|
|
105
|
-
return { ok: false, reason: "an away message cannot be empty or whitespace-only (omit the key or pass null to clear)" };
|
|
106
|
-
}
|
|
107
|
-
if (value.length > AWAY_MESSAGE_MAX_LEN) {
|
|
108
|
-
return { ok: false, reason: `an away message must be <= ${AWAY_MESSAGE_MAX_LEN} characters` };
|
|
109
|
-
}
|
|
110
|
-
return { ok: true };
|
|
111
|
-
}
|
|
112
|
-
/** Max length of an away message (per-contact or per-tier/agent-default) — an answering-machine line. */
|
|
113
|
-
export const AWAY_MESSAGE_MAX_LEN = 2048;
|
|
114
|
-
//# sourceMappingURL=agent-settings-keys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-settings-keys.js","sourceRoot":"","sources":["../src/agent-settings-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,gGAAgG;AAChG,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,CAAU,CAAC,CAAC;AAGtG;;4DAE4D;AAC5D,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC;QACpC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,OAAO,CAAC;QAChC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,aAAa,CAAC;QAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC;QAC5B,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,yCAAyC;IACjE,CAAC;AACH,CAAC;AAID,qDAAqD;AACrD,MAAM,UAAU,eAAe,CAAC,IAAsB,EAAE,KAAiB;IACvE,OAAO,UAAU,IAAI,IAAI,KAAK,EAAE,CAAC;AACnC,CAAC;AAED,gDAAgD;AAChD,MAAM,UAAU,kBAAkB,CAAC,IAAsB;IACvD,OAAO,aAAa,IAAI,EAAE,CAAC;AAC7B,CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAE/C,MAAM,YAAY,GAA0B,MAAM,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC;AAEzF,kGAAkG;AAClG,MAAM,UAAU,GAAwB,IAAI,GAAG,CAAS;IACtD,gBAAgB;IAChB,uFAAuF;IACvF,+FAA+F;IAC/F,cAAc;IACd,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACpC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACjD,kBAAkB,CAAC,CAAC,CAAC;KACtB,CAAC;CACH,CAAC,CAAC;AAEH;;0CAE0C;AAC1C,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAC3C,OAAO,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC;AACzB,CAAC;AAED,4FAA4F;AAC5F,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAE,KAAa;IAC7D,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACpB,4FAA4F;QAC5F,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACjC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kFAAkF,EAAE,CAAC;QACnH,CAAC;QACD,+FAA+F;QAC/F,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAC5C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,4CAA4C,EAAE,CAAC;QAC7E,CAAC;QACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACtB,CAAC;IACD,iGAAiG;IACjG,EAAE;IACF,4FAA4F;IAC5F,gGAAgG;IAChG,mGAAmG;IACnG,gGAAgG;IAChG,gGAAgG;IAChG,0EAA0E;IAC1E,IAAI,GAAG,KAAK,cAAc,EAAE,CAAC;QAC3B,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;YAC1C,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,cAAc,oCAAoC,EAAE,CAAC;QACtF,CAAC;QACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACtB,CAAC;IACD,iGAAiG;IACjG,8FAA8F;IAC9F,kGAAkG;IAClG,mBAAmB;IACnB,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,yFAAyF,EAAE,CAAC;IAC1H,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,GAAG,oBAAoB,EAAE,CAAC;QACxC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B,oBAAoB,aAAa,EAAE,CAAC;IAChG,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AACtB,CAAC;AAED,yGAAyG;AACzG,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC"}
|
package/dist/agent-state.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The one place an agent's state is decided.
|
|
3
|
-
*
|
|
4
|
-
* There are two status surfaces — the daemon-wide `getStatus()` the CLI prints, and the
|
|
5
|
-
* per-connection `cello_status` the MCP tools call — and they had two separate copies of this
|
|
6
|
-
* calculation. They already drifted once this week on a different field: the directory-health block
|
|
7
|
-
* existed on one surface and not the other, which is why an operator whose sessions were all failing
|
|
8
|
-
* could run `cello status` and be told nothing. Two copies of a truth claim is how that happens, so
|
|
9
|
-
* this exists as a single function both surfaces call.
|
|
10
|
-
*
|
|
11
|
-
* The ladder is documented on `AgentState` in types.ts. Order here IS the semantics: the first
|
|
12
|
-
* matching rung wins, worst fact first. An attended agent whose signaling is down reads
|
|
13
|
-
* `connecting`, not `online` — the severe fact is the one stopping it doing its job, and it is the
|
|
14
|
-
* one the operator needs. Reversing that would let attendance mask a dead connection, which is the
|
|
15
|
-
* exact class of lie this enum replaces.
|
|
16
|
-
*/
|
|
17
|
-
import type { AgentState } from "./types.js";
|
|
18
|
-
/**
|
|
19
|
-
* Is this agent RUNNING — started, and not switched off?
|
|
20
|
-
*
|
|
21
|
-
* Use this wherever the old code asked `state === "online"` and MEANT "started". Narrowing `online`
|
|
22
|
-
* to also require an attendee changed the meaning of every such check silently: the string stayed
|
|
23
|
-
* valid, so the compiler caught none of them, and the symptom was `cello settings set` refusing a
|
|
24
|
-
* perfectly healthy agent with `selected_agent_offline`.
|
|
25
|
-
*
|
|
26
|
-
* The callers' actual question is the kill switch one — "may I claim this agent, or did the operator
|
|
27
|
-
* deliberately stop it?" So the excluded states are the ones where claiming it would be wrong:
|
|
28
|
-
* `stopped` and `paused` (resurrecting either would silently undo an operator's decision),
|
|
29
|
-
* `unregistered` (nobody can reach it), and `load_failed`.
|
|
30
|
-
*
|
|
31
|
-
* `unattended` counts: nobody is at the desk, so a caller gets the away message rather than a live
|
|
32
|
-
* reply, but the agent is up, reachable, and will record the session.
|
|
33
|
-
*
|
|
34
|
-
* `connecting` counts too, and that is deliberate. It is started; its directory stream is merely
|
|
35
|
-
* still coming up, which is NORMAL for a minute after registering. Excluding it made local commands
|
|
36
|
-
* — settings, moniker — refuse for want of a directory they never needed, which is the same
|
|
37
|
-
* over-reach in the opposite direction.
|
|
38
|
-
*/
|
|
39
|
-
export declare function isAgentRunning(state: AgentState | string | undefined): boolean;
|
|
40
|
-
/** Everything the decision needs. Each field is a fact the daemon already tracks. */
|
|
41
|
-
export interface AgentStateInputs {
|
|
42
|
-
/** The identity failed to load — a bad key file or database. Terminal. */
|
|
43
|
-
loadFailed: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Registration left a FROST share for this agent.
|
|
46
|
-
*
|
|
47
|
-
* Deliberately NOT a stored "registered" flag. Registration IS the distributed key ceremony, and
|
|
48
|
-
* the share is its durable product — so asking whether the share exists asks whether the thing
|
|
49
|
-
* actually happened, rather than whether someone remembered to record that it had. Before this,
|
|
50
|
-
* every agent on disk was labelled "registered" at load whether or not it ever was, so an agent
|
|
51
|
-
* created and not yet registered was indistinguishable from a working one.
|
|
52
|
-
*/
|
|
53
|
-
hasFrostShare: boolean;
|
|
54
|
-
/** The operator deliberately took this agent offline — the kill switch. */
|
|
55
|
-
deliberatelyOffline: boolean;
|
|
56
|
-
/** The agent has been started in this daemon (it is in `onlineAgents`). */
|
|
57
|
-
started: boolean;
|
|
58
|
-
/** This agent's own directory signaling stream is connected. */
|
|
59
|
-
signalingConnected: boolean;
|
|
60
|
-
/** How many live connections are attending this agent right now. */
|
|
61
|
-
attendance: number;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Decide an agent's state. Pure — no clock, no I/O — so every rung is directly testable.
|
|
65
|
-
*/
|
|
66
|
-
export declare function resolveAgentState(i: AgentStateInputs): AgentState;
|
|
67
|
-
//# sourceMappingURL=agent-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-state.d.ts","sourceRoot":"","sources":["../src/agent-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAE9E;AAED,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;;;OAQG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,2EAA2E;IAC3E,mBAAmB,EAAE,OAAO,CAAC;IAC7B,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,gBAAgB,GAAG,UAAU,CAqBjE"}
|