@jungjaehoon/mama-os 0.53.1 → 0.58.0
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/CHANGELOG.md +71 -0
- package/README.md +62 -259
- package/db/migrations/001-connector-event-index.sql +251 -0
- package/dist/agent/claude-native-tool-policy.d.ts +17 -0
- package/dist/agent/claude-native-tool-policy.d.ts.map +1 -0
- package/dist/agent/claude-native-tool-policy.js +88 -0
- package/dist/agent/claude-native-tool-policy.js.map +1 -0
- package/dist/api/attachment-actions.d.ts +16 -0
- package/dist/api/attachment-actions.d.ts.map +1 -0
- package/dist/api/attachment-actions.js +280 -0
- package/dist/api/attachment-actions.js.map +1 -0
- package/dist/api/auth-middleware.d.ts +15 -55
- package/dist/api/auth-middleware.d.ts.map +1 -1
- package/dist/api/auth-middleware.js +56 -233
- package/dist/api/auth-middleware.js.map +1 -1
- package/dist/api/cf-access.d.ts +6 -0
- package/dist/api/cf-access.d.ts.map +1 -0
- package/dist/api/cf-access.js +121 -0
- package/dist/api/cf-access.js.map +1 -0
- package/dist/api/file-delivery.d.ts +29 -0
- package/dist/api/file-delivery.d.ts.map +1 -0
- package/dist/api/file-delivery.js +90 -0
- package/dist/api/file-delivery.js.map +1 -0
- package/dist/api/help-actions.d.ts +12 -0
- package/dist/api/help-actions.d.ts.map +1 -0
- package/dist/api/help-actions.js +70 -0
- package/dist/api/help-actions.js.map +1 -0
- package/dist/api/owner-timezone-actions.d.ts +10 -0
- package/dist/api/owner-timezone-actions.d.ts.map +1 -0
- package/dist/api/owner-timezone-actions.js +73 -0
- package/dist/api/owner-timezone-actions.js.map +1 -0
- package/dist/api/record-actions.d.ts +8 -0
- package/dist/api/record-actions.d.ts.map +1 -0
- package/dist/api/record-actions.js +53 -0
- package/dist/api/record-actions.js.map +1 -0
- package/dist/api/report-actions.d.ts +20 -0
- package/dist/api/report-actions.d.ts.map +1 -0
- package/dist/api/report-actions.js +137 -0
- package/dist/api/report-actions.js.map +1 -0
- package/dist/api/report-handler.d.ts +15 -11
- package/dist/api/report-handler.d.ts.map +1 -1
- package/dist/api/report-handler.js +48 -120
- package/dist/api/report-handler.js.map +1 -1
- package/dist/api/report-persistence.d.ts +3 -3
- package/dist/api/report-persistence.d.ts.map +1 -1
- package/dist/api/report-persistence.js +35 -10
- package/dist/api/report-persistence.js.map +1 -1
- package/dist/api/report-source-actions.d.ts +11 -0
- package/dist/api/report-source-actions.d.ts.map +1 -0
- package/dist/api/report-source-actions.js +309 -0
- package/dist/api/report-source-actions.js.map +1 -0
- package/dist/api/security-events.d.ts +23 -0
- package/dist/api/security-events.d.ts.map +1 -0
- package/dist/api/security-events.js +71 -0
- package/dist/api/security-events.js.map +1 -0
- package/dist/api/source-actions.d.ts +9 -0
- package/dist/api/source-actions.d.ts.map +1 -0
- package/dist/api/source-actions.js +274 -0
- package/dist/api/source-actions.js.map +1 -0
- package/dist/api/stored-source-reader.d.ts +21 -0
- package/dist/api/stored-source-reader.d.ts.map +1 -0
- package/dist/api/stored-source-reader.js +269 -0
- package/dist/api/stored-source-reader.js.map +1 -0
- package/dist/api/viewer-data.d.ts +143 -0
- package/dist/api/viewer-data.d.ts.map +1 -0
- package/dist/api/viewer-data.js +518 -0
- package/dist/api/viewer-data.js.map +1 -0
- package/dist/api/viewer-request-security.d.ts +12 -0
- package/dist/api/viewer-request-security.d.ts.map +1 -0
- package/dist/api/viewer-request-security.js +217 -0
- package/dist/api/viewer-request-security.js.map +1 -0
- package/dist/api/viewer-server.d.ts +56 -0
- package/dist/api/viewer-server.d.ts.map +1 -0
- package/dist/api/viewer-server.js +937 -0
- package/dist/api/viewer-server.js.map +1 -0
- package/dist/api/wiki-actions.d.ts +20 -0
- package/dist/api/wiki-actions.d.ts.map +1 -0
- package/dist/api/wiki-actions.js +296 -0
- package/dist/api/wiki-actions.js.map +1 -0
- package/dist/api/work-actions.d.ts +96 -0
- package/dist/api/work-actions.d.ts.map +1 -0
- package/dist/api/work-actions.js +956 -0
- package/dist/api/work-actions.js.map +1 -0
- package/dist/cli/commands/daemon.d.ts +90 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -0
- package/dist/cli/commands/daemon.js +632 -0
- package/dist/cli/commands/daemon.js.map +1 -0
- package/dist/cli/commands/init.d.ts +7 -18
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +357 -273
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/replay.d.ts +12 -0
- package/dist/cli/commands/replay.d.ts.map +1 -0
- package/dist/cli/commands/replay.js +145 -0
- package/dist/cli/commands/replay.js.map +1 -0
- package/dist/cli/commands/secret.d.ts +6 -0
- package/dist/cli/commands/secret.d.ts.map +1 -0
- package/dist/cli/commands/secret.js +24 -0
- package/dist/cli/commands/secret.js.map +1 -0
- package/dist/cli/index.d.ts +0 -5
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +52 -95
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/launch-files.d.ts +10 -0
- package/dist/cli/launch-files.d.ts.map +1 -0
- package/dist/cli/launch-files.js +74 -0
- package/dist/cli/launch-files.js.map +1 -0
- package/dist/cli/prompt.d.ts +15 -0
- package/dist/cli/prompt.d.ts.map +1 -0
- package/dist/cli/prompt.js +64 -0
- package/dist/cli/prompt.js.map +1 -0
- package/dist/cli/runtime/action-mcp-config.d.ts +15 -0
- package/dist/cli/runtime/action-mcp-config.d.ts.map +1 -0
- package/dist/cli/runtime/action-mcp-config.js +56 -0
- package/dist/cli/runtime/action-mcp-config.js.map +1 -0
- package/dist/cli/runtime/claude-caller-config.d.ts +4 -0
- package/dist/cli/runtime/claude-caller-config.d.ts.map +1 -0
- package/dist/cli/runtime/claude-caller-config.js +46 -0
- package/dist/cli/runtime/claude-caller-config.js.map +1 -0
- package/dist/cli/secrets.d.ts +9 -0
- package/dist/cli/secrets.d.ts.map +1 -0
- package/dist/cli/secrets.js +94 -0
- package/dist/cli/secrets.js.map +1 -0
- package/dist/connectors/calendar/index.d.ts +11 -10
- package/dist/connectors/calendar/index.d.ts.map +1 -1
- package/dist/connectors/calendar/index.js +171 -97
- package/dist/connectors/calendar/index.js.map +1 -1
- package/dist/connectors/chatwork/index.d.ts +31 -5
- package/dist/connectors/chatwork/index.d.ts.map +1 -1
- package/dist/connectors/chatwork/index.js +184 -20
- package/dist/connectors/chatwork/index.js.map +1 -1
- package/dist/connectors/claude-code/index.d.ts +0 -2
- package/dist/connectors/claude-code/index.d.ts.map +1 -1
- package/dist/connectors/claude-code/index.js +94 -70
- package/dist/connectors/claude-code/index.js.map +1 -1
- package/dist/connectors/config-loader.d.ts +1 -6
- package/dist/connectors/config-loader.d.ts.map +1 -1
- package/dist/connectors/config-loader.js +154 -134
- package/dist/connectors/config-loader.js.map +1 -1
- package/dist/connectors/discord/index.d.ts +8 -1
- package/dist/connectors/discord/index.d.ts.map +1 -1
- package/dist/connectors/discord/index.js +110 -32
- package/dist/connectors/discord/index.js.map +1 -1
- package/dist/connectors/drive/index.d.ts +10 -5
- package/dist/connectors/drive/index.d.ts.map +1 -1
- package/dist/connectors/drive/index.js +145 -88
- package/dist/connectors/drive/index.js.map +1 -1
- package/dist/connectors/framework/attachment-io.d.ts +5 -0
- package/dist/connectors/framework/attachment-io.d.ts.map +1 -0
- package/dist/connectors/framework/attachment-io.js +72 -0
- package/dist/connectors/framework/attachment-io.js.map +1 -0
- package/dist/connectors/framework/attachments.d.ts +32 -0
- package/dist/connectors/framework/attachments.d.ts.map +1 -0
- package/dist/connectors/framework/attachments.js +14 -0
- package/dist/connectors/framework/attachments.js.map +1 -0
- package/dist/connectors/framework/connector-event-types.d.ts +136 -0
- package/dist/connectors/framework/connector-event-types.d.ts.map +1 -0
- package/dist/connectors/framework/connector-event-types.js +3 -0
- package/dist/connectors/framework/connector-event-types.js.map +1 -0
- package/dist/connectors/framework/connector-state.d.ts +3 -0
- package/dist/connectors/framework/connector-state.d.ts.map +1 -0
- package/dist/connectors/framework/connector-state.js +47 -0
- package/dist/connectors/framework/connector-state.js.map +1 -0
- package/dist/connectors/framework/event-index.d.ts +28 -0
- package/dist/connectors/framework/event-index.d.ts.map +1 -0
- package/dist/connectors/framework/event-index.js +354 -0
- package/dist/connectors/framework/event-index.js.map +1 -0
- package/dist/connectors/framework/gws-utils.d.ts +3 -8
- package/dist/connectors/framework/gws-utils.d.ts.map +1 -1
- package/dist/connectors/framework/gws-utils.js +23 -30
- package/dist/connectors/framework/gws-utils.js.map +1 -1
- package/dist/connectors/framework/index.d.ts +4 -2
- package/dist/connectors/framework/index.d.ts.map +1 -1
- package/dist/connectors/framework/index.js +8 -6
- package/dist/connectors/framework/index.js.map +1 -1
- package/dist/connectors/framework/polling-scheduler.d.ts +71 -52
- package/dist/connectors/framework/polling-scheduler.d.ts.map +1 -1
- package/dist/connectors/framework/polling-scheduler.js +236 -168
- package/dist/connectors/framework/polling-scheduler.js.map +1 -1
- package/dist/connectors/framework/raw-query.d.ts +44 -0
- package/dist/connectors/framework/raw-query.d.ts.map +1 -0
- package/dist/connectors/framework/raw-query.js +584 -0
- package/dist/connectors/framework/raw-query.js.map +1 -0
- package/dist/connectors/framework/stored-index-read.d.ts +16 -0
- package/dist/connectors/framework/stored-index-read.d.ts.map +1 -0
- package/dist/connectors/framework/stored-index-read.js +66 -0
- package/dist/connectors/framework/stored-index-read.js.map +1 -0
- package/dist/connectors/framework/types.d.ts +17 -61
- package/dist/connectors/framework/types.d.ts.map +1 -1
- package/dist/connectors/framework/types.js +0 -4
- package/dist/connectors/framework/types.js.map +1 -1
- package/dist/connectors/gmail/index.d.ts +3 -2
- package/dist/connectors/gmail/index.d.ts.map +1 -1
- package/dist/connectors/gmail/index.js +74 -27
- package/dist/connectors/gmail/index.js.map +1 -1
- package/dist/connectors/ical/index.d.ts +29 -0
- package/dist/connectors/ical/index.d.ts.map +1 -0
- package/dist/connectors/ical/index.js +220 -0
- package/dist/connectors/ical/index.js.map +1 -0
- package/dist/connectors/ical/parser.d.ts +13 -0
- package/dist/connectors/ical/parser.d.ts.map +1 -0
- package/dist/connectors/ical/parser.js +117 -0
- package/dist/connectors/ical/parser.js.map +1 -0
- package/dist/connectors/imessage/index.d.ts +3 -1
- package/dist/connectors/imessage/index.d.ts.map +1 -1
- package/dist/connectors/imessage/index.js +31 -16
- package/dist/connectors/imessage/index.js.map +1 -1
- package/dist/connectors/index.d.ts +12 -5
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/index.js +67 -18
- package/dist/connectors/index.js.map +1 -1
- package/dist/connectors/kagemusha/index.d.ts +7 -19
- package/dist/connectors/kagemusha/index.d.ts.map +1 -1
- package/dist/connectors/kagemusha/index.js +123 -173
- package/dist/connectors/kagemusha/index.js.map +1 -1
- package/dist/connectors/notion/index.d.ts.map +1 -1
- package/dist/connectors/notion/index.js +79 -36
- package/dist/connectors/notion/index.js.map +1 -1
- package/dist/connectors/obsidian/index.d.ts +1 -1
- package/dist/connectors/obsidian/index.d.ts.map +1 -1
- package/dist/connectors/obsidian/index.js +59 -57
- package/dist/connectors/obsidian/index.js.map +1 -1
- package/dist/connectors/sheets/index.d.ts +8 -4
- package/dist/connectors/sheets/index.d.ts.map +1 -1
- package/dist/connectors/sheets/index.js +155 -143
- package/dist/connectors/sheets/index.js.map +1 -1
- package/dist/connectors/slack/index.d.ts +24 -5
- package/dist/connectors/slack/index.d.ts.map +1 -1
- package/dist/connectors/slack/index.js +177 -39
- package/dist/connectors/slack/index.js.map +1 -1
- package/dist/connectors/telegram/index.d.ts +9 -2
- package/dist/connectors/telegram/index.d.ts.map +1 -1
- package/dist/connectors/telegram/index.js +119 -70
- package/dist/connectors/telegram/index.js.map +1 -1
- package/dist/connectors/trello/index.d.ts +10 -3
- package/dist/connectors/trello/index.d.ts.map +1 -1
- package/dist/connectors/trello/index.js +88 -39
- package/dist/connectors/trello/index.js.map +1 -1
- package/dist/gateways/base-gateway.d.ts +9 -33
- package/dist/gateways/base-gateway.d.ts.map +1 -1
- package/dist/gateways/base-gateway.js +7 -28
- package/dist/gateways/base-gateway.js.map +1 -1
- package/dist/gateways/conversation-record.d.ts +52 -0
- package/dist/gateways/conversation-record.d.ts.map +1 -0
- package/dist/gateways/conversation-record.js +220 -0
- package/dist/gateways/conversation-record.js.map +1 -0
- package/dist/gateways/discord.d.ts +33 -135
- package/dist/gateways/discord.d.ts.map +1 -1
- package/dist/gateways/discord.js +258 -778
- package/dist/gateways/discord.js.map +1 -1
- package/dist/gateways/session-store.d.ts +28 -9
- package/dist/gateways/session-store.d.ts.map +1 -1
- package/dist/gateways/session-store.js +192 -60
- package/dist/gateways/session-store.js.map +1 -1
- package/dist/gateways/slack.d.ts +35 -105
- package/dist/gateways/slack.d.ts.map +1 -1
- package/dist/gateways/slack.js +282 -440
- package/dist/gateways/slack.js.map +1 -1
- package/dist/gateways/telegram-attachments.d.ts +32 -0
- package/dist/gateways/telegram-attachments.d.ts.map +1 -0
- package/dist/gateways/telegram-attachments.js +113 -0
- package/dist/gateways/telegram-attachments.js.map +1 -0
- package/dist/gateways/telegram-errors.d.ts +3 -0
- package/dist/gateways/telegram-errors.d.ts.map +1 -0
- package/dist/gateways/telegram-errors.js +10 -0
- package/dist/gateways/telegram-errors.js.map +1 -0
- package/dist/gateways/telegram-format.d.ts.map +1 -1
- package/dist/gateways/telegram-format.js +11 -3
- package/dist/gateways/telegram-format.js.map +1 -1
- package/dist/gateways/telegram-message-ledger.d.ts +31 -25
- package/dist/gateways/telegram-message-ledger.d.ts.map +1 -1
- package/dist/gateways/telegram-message-ledger.js +122 -146
- package/dist/gateways/telegram-message-ledger.js.map +1 -1
- package/dist/gateways/telegram-response-presenter.d.ts +3 -1
- package/dist/gateways/telegram-response-presenter.d.ts.map +1 -1
- package/dist/gateways/telegram-response-presenter.js +14 -0
- package/dist/gateways/telegram-response-presenter.js.map +1 -1
- package/dist/gateways/telegram-text-entities.d.ts +2 -3
- package/dist/gateways/telegram-text-entities.d.ts.map +1 -1
- package/dist/gateways/telegram-text-entities.js +4 -5
- package/dist/gateways/telegram-text-entities.js.map +1 -1
- package/dist/gateways/telegram.d.ts +39 -101
- package/dist/gateways/telegram.d.ts.map +1 -1
- package/dist/gateways/telegram.js +406 -919
- package/dist/gateways/telegram.js.map +1 -1
- package/dist/gateways/turn-contract.d.ts +27 -87
- package/dist/gateways/turn-contract.d.ts.map +1 -1
- package/dist/gateways/types.d.ts +14 -299
- package/dist/gateways/types.d.ts.map +1 -1
- package/dist/gateways/types.js +0 -3
- package/dist/gateways/types.js.map +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -23
- package/dist/index.js.map +1 -1
- package/dist/operator/board-read-views.d.ts +8 -10
- package/dist/operator/board-read-views.d.ts.map +1 -1
- package/dist/operator/board-read-views.js +7 -16
- package/dist/operator/board-read-views.js.map +1 -1
- package/dist/operator/board-slot-instructions.d.ts +5 -8
- package/dist/operator/board-slot-instructions.d.ts.map +1 -1
- package/dist/operator/board-slot-instructions.js +12 -24
- package/dist/operator/board-slot-instructions.js.map +1 -1
- package/dist/replay/import-manifest.d.ts +21 -0
- package/dist/replay/import-manifest.d.ts.map +1 -0
- package/dist/replay/import-manifest.js +157 -0
- package/dist/replay/import-manifest.js.map +1 -0
- package/dist/replay/jev-client.d.ts +35 -0
- package/dist/replay/jev-client.d.ts.map +1 -0
- package/dist/replay/jev-client.js +141 -0
- package/dist/replay/jev-client.js.map +1 -0
- package/dist/replay/kagemusha-import.d.ts +35 -0
- package/dist/replay/kagemusha-import.d.ts.map +1 -0
- package/dist/replay/kagemusha-import.js +543 -0
- package/dist/replay/kagemusha-import.js.map +1 -0
- package/dist/replay/replay-cursor.d.ts +31 -0
- package/dist/replay/replay-cursor.d.ts.map +1 -0
- package/dist/replay/replay-cursor.js +189 -0
- package/dist/replay/replay-cursor.js.map +1 -0
- package/dist/replay/replay-feeder.d.ts +55 -0
- package/dist/replay/replay-feeder.d.ts.map +1 -0
- package/dist/replay/replay-feeder.js +214 -0
- package/dist/replay/replay-feeder.js.map +1 -0
- package/dist/replay/replay-ledger.d.ts +32 -0
- package/dist/replay/replay-ledger.d.ts.map +1 -0
- package/dist/replay/replay-ledger.js +91 -0
- package/dist/replay/replay-ledger.js.map +1 -0
- package/dist/replay/replay-source-catalog.d.ts +66 -0
- package/dist/replay/replay-source-catalog.d.ts.map +1 -0
- package/dist/replay/replay-source-catalog.js +332 -0
- package/dist/replay/replay-source-catalog.js.map +1 -0
- package/dist/replay/trello-import.d.ts +33 -0
- package/dist/replay/trello-import.d.ts.map +1 -0
- package/dist/replay/trello-import.js +204 -0
- package/dist/replay/trello-import.js.map +1 -0
- package/dist/replay/window-queue.d.ts +116 -0
- package/dist/replay/window-queue.d.ts.map +1 -0
- package/dist/replay/window-queue.js +497 -0
- package/dist/replay/window-queue.js.map +1 -0
- package/dist/runtime/action-mcp-server.d.ts +30 -0
- package/dist/runtime/action-mcp-server.d.ts.map +1 -0
- package/dist/runtime/action-mcp-server.js +178 -0
- package/dist/runtime/action-mcp-server.js.map +1 -0
- package/dist/runtime/action-surface.d.ts +47 -0
- package/dist/runtime/action-surface.d.ts.map +1 -0
- package/dist/runtime/action-surface.js +192 -0
- package/dist/runtime/action-surface.js.map +1 -0
- package/dist/runtime/backend-security.d.ts +7 -0
- package/dist/runtime/backend-security.d.ts.map +1 -0
- package/dist/runtime/backend-security.js +28 -0
- package/dist/runtime/backend-security.js.map +1 -0
- package/dist/runtime/claude-caller-hook.d.ts +20 -0
- package/dist/runtime/claude-caller-hook.d.ts.map +1 -0
- package/dist/runtime/claude-caller-hook.js +41 -0
- package/dist/runtime/claude-caller-hook.js.map +1 -0
- package/dist/runtime/config.d.ts +84 -0
- package/dist/runtime/config.d.ts.map +1 -0
- package/dist/runtime/config.js +361 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/connectors.d.ts +41 -0
- package/dist/runtime/connectors.d.ts.map +1 -0
- package/dist/runtime/connectors.js +187 -0
- package/dist/runtime/connectors.js.map +1 -0
- package/dist/runtime/core-db.d.ts +8 -0
- package/dist/runtime/core-db.d.ts.map +1 -0
- package/dist/runtime/core-db.js +19 -0
- package/dist/runtime/core-db.js.map +1 -0
- package/dist/runtime/model-cache.d.ts +9 -0
- package/dist/runtime/model-cache.d.ts.map +1 -0
- package/dist/runtime/model-cache.js +22 -0
- package/dist/runtime/model-cache.js.map +1 -0
- package/dist/runtime/native-session.d.ts +86 -0
- package/dist/runtime/native-session.d.ts.map +1 -0
- package/dist/runtime/native-session.js +282 -0
- package/dist/runtime/native-session.js.map +1 -0
- package/dist/runtime/owner-policy.d.ts +10 -0
- package/dist/runtime/owner-policy.d.ts.map +1 -0
- package/dist/runtime/owner-policy.js +35 -0
- package/dist/runtime/owner-policy.js.map +1 -0
- package/dist/runtime/owner-runtime.d.ts +89 -0
- package/dist/runtime/owner-runtime.d.ts.map +1 -0
- package/dist/runtime/owner-runtime.js +319 -0
- package/dist/runtime/owner-runtime.js.map +1 -0
- package/dist/runtime/owner-system-prompt.d.ts +16 -0
- package/dist/runtime/owner-system-prompt.d.ts.map +1 -0
- package/dist/runtime/owner-system-prompt.js +118 -0
- package/dist/runtime/owner-system-prompt.js.map +1 -0
- package/dist/runtime/recent-owner-exchanges.d.ts +8 -0
- package/dist/runtime/recent-owner-exchanges.d.ts.map +1 -0
- package/dist/runtime/recent-owner-exchanges.js +27 -0
- package/dist/runtime/recent-owner-exchanges.js.map +1 -0
- package/dist/runtime/record-orders.d.ts +49 -0
- package/dist/runtime/record-orders.d.ts.map +1 -0
- package/dist/runtime/record-orders.js +152 -0
- package/dist/runtime/record-orders.js.map +1 -0
- package/dist/runtime/report-scheduler.d.ts +24 -0
- package/dist/runtime/report-scheduler.d.ts.map +1 -0
- package/dist/runtime/report-scheduler.js +100 -0
- package/dist/runtime/report-scheduler.js.map +1 -0
- package/dist/runtime/session-credential.d.ts +5 -0
- package/dist/runtime/session-credential.d.ts.map +1 -0
- package/dist/runtime/session-credential.js +19 -0
- package/dist/runtime/session-credential.js.map +1 -0
- package/dist/runtime/stimulus-delivery.d.ts +83 -0
- package/dist/runtime/stimulus-delivery.d.ts.map +1 -0
- package/dist/runtime/stimulus-delivery.js +507 -0
- package/dist/runtime/stimulus-delivery.js.map +1 -0
- package/dist/runtime/timezone.d.ts +15 -0
- package/dist/runtime/timezone.d.ts.map +1 -0
- package/dist/runtime/timezone.js +128 -0
- package/dist/runtime/timezone.js.map +1 -0
- package/dist/runtime/turn-orders.d.ts +86 -0
- package/dist/runtime/turn-orders.d.ts.map +1 -0
- package/dist/runtime/turn-orders.js +272 -0
- package/dist/runtime/turn-orders.js.map +1 -0
- package/dist/sqlite.d.ts +7 -32
- package/dist/sqlite.d.ts.map +1 -1
- package/dist/sqlite.js +10 -48
- package/dist/sqlite.js.map +1 -1
- package/dist/storage/migrations/raw-item-revisions.d.ts +6 -0
- package/dist/storage/migrations/raw-item-revisions.d.ts.map +1 -0
- package/dist/storage/migrations/raw-item-revisions.js +109 -0
- package/dist/storage/migrations/raw-item-revisions.js.map +1 -0
- package/dist/storage/migrations-source.d.ts +5 -0
- package/dist/storage/migrations-source.d.ts.map +1 -0
- package/dist/storage/migrations-source.js +24 -0
- package/dist/storage/migrations-source.js.map +1 -0
- package/dist/storage/source-archive.d.ts +123 -0
- package/dist/storage/source-archive.d.ts.map +1 -0
- package/dist/storage/source-archive.js +595 -0
- package/dist/storage/source-archive.js.map +1 -0
- package/dist/storage-sqlite.d.ts +59 -0
- package/dist/storage-sqlite.d.ts.map +1 -0
- package/dist/storage-sqlite.js +75 -0
- package/dist/storage-sqlite.js.map +1 -0
- package/dist/utils/untrusted-content.d.ts +5 -35
- package/dist/utils/untrusted-content.d.ts.map +1 -1
- package/dist/utils/untrusted-content.js +16 -75
- package/dist/utils/untrusted-content.js.map +1 -1
- package/dist/wiki/obsidian-writer.d.ts +4 -2
- package/dist/wiki/obsidian-writer.d.ts.map +1 -1
- package/dist/wiki/obsidian-writer.js +85 -4
- package/dist/wiki/obsidian-writer.js.map +1 -1
- package/dist/wiki/path-safety.d.ts +2 -0
- package/dist/wiki/path-safety.d.ts.map +1 -1
- package/dist/wiki/path-safety.js +11 -3
- package/dist/wiki/path-safety.js.map +1 -1
- package/dist/wiki/wiki-edits.d.ts +17 -0
- package/dist/wiki/wiki-edits.d.ts.map +1 -0
- package/dist/wiki/wiki-edits.js +75 -0
- package/dist/wiki/wiki-edits.js.map +1 -0
- package/dist/wiki/wiki-read.d.ts +20 -11
- package/dist/wiki/wiki-read.d.ts.map +1 -1
- package/dist/wiki/wiki-read.js +87 -89
- package/dist/wiki/wiki-read.js.map +1 -1
- package/dist/wiki-artifacts/types.d.ts +1 -1
- package/dist/wiki-artifacts/types.d.ts.map +1 -1
- package/dist/wiki-artifacts/wiki-publish-adapter.d.ts.map +1 -1
- package/dist/wiki-artifacts/wiki-publish-adapter.js +13 -9
- package/dist/wiki-artifacts/wiki-publish-adapter.js.map +1 -1
- package/package.json +11 -41
- package/public/viewer/js/modules/graph.js +111 -41
- package/public/viewer/js/modules/memory.js +4 -31
- package/public/viewer/js/modules/wiki.js +0 -37
- package/public/viewer/js/utils/api.js +4 -50
- package/public/viewer/log-viewer.html +46 -0
- package/public/viewer/operator/operator.css +1 -1
- package/public/viewer/operator/operator.js +10835 -8211
- package/public/viewer/src/modules/graph.ts +133 -41
- package/public/viewer/src/modules/memory.ts +4 -31
- package/public/viewer/src/modules/wiki.ts +0 -42
- package/public/viewer/src/types/global.d.ts +1 -1
- package/public/viewer/src/utils/api.ts +7 -83
- package/public/viewer/viewer.html +7 -96
- package/dist/agent/agent-loop.d.ts +0 -289
- package/dist/agent/agent-loop.d.ts.map +0 -1
- package/dist/agent/agent-loop.js +0 -2842
- package/dist/agent/agent-loop.js.map +0 -1
- package/dist/agent/attachment-text-extractor.d.ts +0 -2
- package/dist/agent/attachment-text-extractor.d.ts.map +0 -1
- package/dist/agent/attachment-text-extractor.js +0 -128
- package/dist/agent/attachment-text-extractor.js.map +0 -1
- package/dist/agent/backend-model-policy.d.ts +0 -58
- package/dist/agent/backend-model-policy.d.ts.map +0 -1
- package/dist/agent/backend-model-policy.js +0 -167
- package/dist/agent/backend-model-policy.js.map +0 -1
- package/dist/agent/backend-model-runner-factory.d.ts +0 -27
- package/dist/agent/backend-model-runner-factory.d.ts.map +0 -1
- package/dist/agent/backend-model-runner-factory.js +0 -88
- package/dist/agent/backend-model-runner-factory.js.map +0 -1
- package/dist/agent/claude-cli-wrapper.d.ts +0 -144
- package/dist/agent/claude-cli-wrapper.d.ts.map +0 -1
- package/dist/agent/claude-cli-wrapper.js +0 -382
- package/dist/agent/claude-cli-wrapper.js.map +0 -1
- package/dist/agent/cli-arg-redaction.d.ts +0 -2
- package/dist/agent/cli-arg-redaction.d.ts.map +0 -1
- package/dist/agent/cli-arg-redaction.js +0 -18
- package/dist/agent/cli-arg-redaction.js.map +0 -1
- package/dist/agent/cline-cli-adapter.d.ts +0 -126
- package/dist/agent/cline-cli-adapter.d.ts.map +0 -1
- package/dist/agent/cline-cli-adapter.js +0 -1042
- package/dist/agent/cline-cli-adapter.js.map +0 -1
- package/dist/agent/cline-native-tool-policy.d.ts +0 -9
- package/dist/agent/cline-native-tool-policy.d.ts.map +0 -1
- package/dist/agent/cline-native-tool-policy.js +0 -61
- package/dist/agent/cline-native-tool-policy.js.map +0 -1
- package/dist/agent/code-act/completed-terminal-result.d.ts +0 -5
- package/dist/agent/code-act/completed-terminal-result.d.ts.map +0 -1
- package/dist/agent/code-act/completed-terminal-result.js +0 -83
- package/dist/agent/code-act/completed-terminal-result.js.map +0 -1
- package/dist/agent/code-act/constants.d.ts +0 -11
- package/dist/agent/code-act/constants.d.ts.map +0 -1
- package/dist/agent/code-act/constants.js +0 -64
- package/dist/agent/code-act/constants.js.map +0 -1
- package/dist/agent/code-act/host-bridge.d.ts +0 -50
- package/dist/agent/code-act/host-bridge.d.ts.map +0 -1
- package/dist/agent/code-act/host-bridge.js +0 -1405
- package/dist/agent/code-act/host-bridge.js.map +0 -1
- package/dist/agent/code-act/index.d.ts +0 -10
- package/dist/agent/code-act/index.d.ts.map +0 -1
- package/dist/agent/code-act/index.js +0 -22
- package/dist/agent/code-act/index.js.map +0 -1
- package/dist/agent/code-act/run-context-registry.d.ts +0 -36
- package/dist/agent/code-act/run-context-registry.d.ts.map +0 -1
- package/dist/agent/code-act/run-context-registry.js +0 -143
- package/dist/agent/code-act/run-context-registry.js.map +0 -1
- package/dist/agent/code-act/sandbox.d.ts +0 -25
- package/dist/agent/code-act/sandbox.d.ts.map +0 -1
- package/dist/agent/code-act/sandbox.js +0 -494
- package/dist/agent/code-act/sandbox.js.map +0 -1
- package/dist/agent/code-act/tool-catalog.d.ts +0 -30
- package/dist/agent/code-act/tool-catalog.d.ts.map +0 -1
- package/dist/agent/code-act/tool-catalog.js +0 -185
- package/dist/agent/code-act/tool-catalog.js.map +0 -1
- package/dist/agent/code-act/tool-policy.d.ts +0 -51
- package/dist/agent/code-act/tool-policy.d.ts.map +0 -1
- package/dist/agent/code-act/tool-policy.js +0 -160
- package/dist/agent/code-act/tool-policy.js.map +0 -1
- package/dist/agent/code-act/type-definition-generator.d.ts +0 -19
- package/dist/agent/code-act/type-definition-generator.d.ts.map +0 -1
- package/dist/agent/code-act/type-definition-generator.js +0 -73
- package/dist/agent/code-act/type-definition-generator.js.map +0 -1
- package/dist/agent/code-act/types.d.ts +0 -57
- package/dist/agent/code-act/types.d.ts.map +0 -1
- package/dist/agent/code-act/types.js +0 -14
- package/dist/agent/code-act/types.js.map +0 -1
- package/dist/agent/codex-app-server-process.d.ts +0 -257
- package/dist/agent/codex-app-server-process.d.ts.map +0 -1
- package/dist/agent/codex-app-server-process.js +0 -2084
- package/dist/agent/codex-app-server-process.js.map +0 -1
- package/dist/agent/codex-auth.d.ts +0 -2
- package/dist/agent/codex-auth.d.ts.map +0 -1
- package/dist/agent/codex-auth.js +0 -17
- package/dist/agent/codex-auth.js.map +0 -1
- package/dist/agent/codex-auxiliary-tools.d.ts +0 -17
- package/dist/agent/codex-auxiliary-tools.d.ts.map +0 -1
- package/dist/agent/codex-auxiliary-tools.js +0 -267
- package/dist/agent/codex-auxiliary-tools.js.map +0 -1
- package/dist/agent/codex-home.d.ts +0 -13
- package/dist/agent/codex-home.d.ts.map +0 -1
- package/dist/agent/codex-home.js +0 -644
- package/dist/agent/codex-home.js.map +0 -1
- package/dist/agent/codex-thread-registry.d.ts +0 -63
- package/dist/agent/codex-thread-registry.d.ts.map +0 -1
- package/dist/agent/codex-thread-registry.js +0 -433
- package/dist/agent/codex-thread-registry.js.map +0 -1
- package/dist/agent/content-dedup.d.ts +0 -86
- package/dist/agent/content-dedup.d.ts.map +0 -1
- package/dist/agent/content-dedup.js +0 -114
- package/dist/agent/content-dedup.js.map +0 -1
- package/dist/agent/context-compile-contract.d.ts +0 -5
- package/dist/agent/context-compile-contract.d.ts.map +0 -1
- package/dist/agent/context-compile-contract.js +0 -8
- package/dist/agent/context-compile-contract.js.map +0 -1
- package/dist/agent/context-compile-service.d.ts +0 -60
- package/dist/agent/context-compile-service.d.ts.map +0 -1
- package/dist/agent/context-compile-service.js +0 -481
- package/dist/agent/context-compile-service.js.map +0 -1
- package/dist/agent/context-prompt-builder.d.ts +0 -24
- package/dist/agent/context-prompt-builder.d.ts.map +0 -1
- package/dist/agent/context-prompt-builder.js +0 -61
- package/dist/agent/context-prompt-builder.js.map +0 -1
- package/dist/agent/contract-extractor.d.ts +0 -124
- package/dist/agent/contract-extractor.d.ts.map +0 -1
- package/dist/agent/contract-extractor.js +0 -465
- package/dist/agent/contract-extractor.js.map +0 -1
- package/dist/agent/drive-tools.d.ts +0 -83
- package/dist/agent/drive-tools.d.ts.map +0 -1
- package/dist/agent/drive-tools.js +0 -338
- package/dist/agent/drive-tools.js.map +0 -1
- package/dist/agent/gateway-tool-catalog.d.ts +0 -14
- package/dist/agent/gateway-tool-catalog.d.ts.map +0 -1
- package/dist/agent/gateway-tool-catalog.js +0 -41
- package/dist/agent/gateway-tool-catalog.js.map +0 -1
- package/dist/agent/gateway-tool-executor.d.ts +0 -353
- package/dist/agent/gateway-tool-executor.d.ts.map +0 -1
- package/dist/agent/gateway-tool-executor.js +0 -5448
- package/dist/agent/gateway-tool-executor.js.map +0 -1
- package/dist/agent/gateway-tools.md +0 -166
- package/dist/agent/image-translation-tools.d.ts +0 -48
- package/dist/agent/image-translation-tools.d.ts.map +0 -1
- package/dist/agent/image-translation-tools.js +0 -274
- package/dist/agent/image-translation-tools.js.map +0 -1
- package/dist/agent/index.d.ts +0 -13
- package/dist/agent/index.d.ts.map +0 -1
- package/dist/agent/index.js +0 -18
- package/dist/agent/index.js.map +0 -1
- package/dist/agent/mama-tool-handlers.d.ts +0 -11
- package/dist/agent/mama-tool-handlers.d.ts.map +0 -1
- package/dist/agent/mama-tool-handlers.js +0 -220
- package/dist/agent/mama-tool-handlers.js.map +0 -1
- package/dist/agent/managed-agent-runtime-sync.d.ts +0 -36
- package/dist/agent/managed-agent-runtime-sync.d.ts.map +0 -1
- package/dist/agent/managed-agent-runtime-sync.js +0 -245
- package/dist/agent/managed-agent-runtime-sync.js.map +0 -1
- package/dist/agent/managed-agent-validation.d.ts +0 -4
- package/dist/agent/managed-agent-validation.d.ts.map +0 -1
- package/dist/agent/managed-agent-validation.js +0 -85
- package/dist/agent/managed-agent-validation.js.map +0 -1
- package/dist/agent/model-runner.d.ts +0 -180
- package/dist/agent/model-runner.d.ts.map +0 -1
- package/dist/agent/model-runner.js +0 -54
- package/dist/agent/model-runner.js.map +0 -1
- package/dist/agent/native-effect-observer.d.ts +0 -20
- package/dist/agent/native-effect-observer.d.ts.map +0 -1
- package/dist/agent/native-effect-observer.js +0 -86
- package/dist/agent/native-effect-observer.js.map +0 -1
- package/dist/agent/obsidian-cli-args.d.ts +0 -14
- package/dist/agent/obsidian-cli-args.d.ts.map +0 -1
- package/dist/agent/obsidian-cli-args.js +0 -57
- package/dist/agent/obsidian-cli-args.js.map +0 -1
- package/dist/agent/os-agent-capabilities.md +0 -367
- package/dist/agent/persistent-cli-adapter.d.ts +0 -173
- package/dist/agent/persistent-cli-adapter.d.ts.map +0 -1
- package/dist/agent/persistent-cli-adapter.js +0 -506
- package/dist/agent/persistent-cli-adapter.js.map +0 -1
- package/dist/agent/persistent-cli-process.d.ts +0 -392
- package/dist/agent/persistent-cli-process.d.ts.map +0 -1
- package/dist/agent/persistent-cli-process.js +0 -1568
- package/dist/agent/persistent-cli-process.js.map +0 -1
- package/dist/agent/post-tool-handler.d.ts +0 -27
- package/dist/agent/post-tool-handler.d.ts.map +0 -1
- package/dist/agent/post-tool-handler.js +0 -194
- package/dist/agent/post-tool-handler.js.map +0 -1
- package/dist/agent/pre-compact-handler.d.ts +0 -36
- package/dist/agent/pre-compact-handler.d.ts.map +0 -1
- package/dist/agent/pre-compact-handler.js +0 -162
- package/dist/agent/pre-compact-handler.js.map +0 -1
- package/dist/agent/prompt-enhancer.d.ts +0 -33
- package/dist/agent/prompt-enhancer.d.ts.map +0 -1
- package/dist/agent/prompt-enhancer.js +0 -811
- package/dist/agent/prompt-enhancer.js.map +0 -1
- package/dist/agent/prompt-size-monitor.d.ts +0 -104
- package/dist/agent/prompt-size-monitor.d.ts.map +0 -1
- package/dist/agent/prompt-size-monitor.js +0 -192
- package/dist/agent/prompt-size-monitor.js.map +0 -1
- package/dist/agent/role-manager.d.ts +0 -122
- package/dist/agent/role-manager.d.ts.map +0 -1
- package/dist/agent/role-manager.js +0 -300
- package/dist/agent/role-manager.js.map +0 -1
- package/dist/agent/session-pool.d.ts +0 -176
- package/dist/agent/session-pool.d.ts.map +0 -1
- package/dist/agent/session-pool.js +0 -368
- package/dist/agent/session-pool.js.map +0 -1
- package/dist/agent/skill-loader.d.ts +0 -87
- package/dist/agent/skill-loader.d.ts.map +0 -1
- package/dist/agent/skill-loader.js +0 -461
- package/dist/agent/skill-loader.js.map +0 -1
- package/dist/agent/stop-continuation-handler.d.ts +0 -106
- package/dist/agent/stop-continuation-handler.d.ts.map +0 -1
- package/dist/agent/stop-continuation-handler.js +0 -230
- package/dist/agent/stop-continuation-handler.js.map +0 -1
- package/dist/agent/subagent-run-reconcile.d.ts +0 -23
- package/dist/agent/subagent-run-reconcile.d.ts.map +0 -1
- package/dist/agent/subagent-run-reconcile.js +0 -56
- package/dist/agent/subagent-run-reconcile.js.map +0 -1
- package/dist/agent/temporal-code-act-breaker.d.ts +0 -26
- package/dist/agent/temporal-code-act-breaker.d.ts.map +0 -1
- package/dist/agent/temporal-code-act-breaker.js +0 -94
- package/dist/agent/temporal-code-act-breaker.js.map +0 -1
- package/dist/agent/token-estimator.d.ts +0 -25
- package/dist/agent/token-estimator.d.ts.map +0 -1
- package/dist/agent/token-estimator.js +0 -75
- package/dist/agent/token-estimator.js.map +0 -1
- package/dist/agent/tool-registry.d.ts +0 -81
- package/dist/agent/tool-registry.d.ts.map +0 -1
- package/dist/agent/tool-registry.js +0 -876
- package/dist/agent/tool-registry.js.map +0 -1
- package/dist/agent/types.d.ts +0 -1261
- package/dist/agent/types.d.ts.map +0 -1
- package/dist/agent/types.js +0 -60
- package/dist/agent/types.js.map +0 -1
- package/dist/agent/yaml-frontmatter.d.ts +0 -75
- package/dist/agent/yaml-frontmatter.d.ts.map +0 -1
- package/dist/agent/yaml-frontmatter.js +0 -166
- package/dist/agent/yaml-frontmatter.js.map +0 -1
- package/dist/api/agent-context-handler.d.ts +0 -10
- package/dist/api/agent-context-handler.d.ts.map +0 -1
- package/dist/api/agent-context-handler.js +0 -216
- package/dist/api/agent-context-handler.js.map +0 -1
- package/dist/api/agent-graph-handler.d.ts +0 -18
- package/dist/api/agent-graph-handler.d.ts.map +0 -1
- package/dist/api/agent-graph-handler.js +0 -569
- package/dist/api/agent-graph-handler.js.map +0 -1
- package/dist/api/agent-handler.d.ts +0 -36
- package/dist/api/agent-handler.d.ts.map +0 -1
- package/dist/api/agent-handler.js +0 -223
- package/dist/api/agent-handler.js.map +0 -1
- package/dist/api/agent-raw-handler.d.ts +0 -70
- package/dist/api/agent-raw-handler.d.ts.map +0 -1
- package/dist/api/agent-raw-handler.js +0 -262
- package/dist/api/agent-raw-handler.js.map +0 -1
- package/dist/api/agent-situation-handler.d.ts +0 -14
- package/dist/api/agent-situation-handler.d.ts.map +0 -1
- package/dist/api/agent-situation-handler.js +0 -383
- package/dist/api/agent-situation-handler.js.map +0 -1
- package/dist/api/connector-feed-handler.d.ts +0 -42
- package/dist/api/connector-feed-handler.d.ts.map +0 -1
- package/dist/api/connector-feed-handler.js +0 -180
- package/dist/api/connector-feed-handler.js.map +0 -1
- package/dist/api/cron-handler.d.ts +0 -44
- package/dist/api/cron-handler.d.ts.map +0 -1
- package/dist/api/cron-handler.js +0 -261
- package/dist/api/cron-handler.js.map +0 -1
- package/dist/api/entity-audit-handler.d.ts +0 -12
- package/dist/api/entity-audit-handler.d.ts.map +0 -1
- package/dist/api/entity-audit-handler.js +0 -119
- package/dist/api/entity-audit-handler.js.map +0 -1
- package/dist/api/entity-audit-queue.d.ts +0 -74
- package/dist/api/entity-audit-queue.d.ts.map +0 -1
- package/dist/api/entity-audit-queue.js +0 -123
- package/dist/api/entity-audit-queue.js.map +0 -1
- package/dist/api/entity-audit-runner.d.ts +0 -9
- package/dist/api/entity-audit-runner.d.ts.map +0 -1
- package/dist/api/entity-audit-runner.js +0 -240
- package/dist/api/entity-audit-runner.js.map +0 -1
- package/dist/api/entity-review-handler.d.ts +0 -18
- package/dist/api/entity-review-handler.d.ts.map +0 -1
- package/dist/api/entity-review-handler.js +0 -521
- package/dist/api/entity-review-handler.js.map +0 -1
- package/dist/api/error-handler.d.ts +0 -22
- package/dist/api/error-handler.d.ts.map +0 -1
- package/dist/api/error-handler.js +0 -104
- package/dist/api/error-handler.js.map +0 -1
- package/dist/api/graph-api-types.d.ts +0 -105
- package/dist/api/graph-api-types.d.ts.map +0 -1
- package/dist/api/graph-api-types.js +0 -6
- package/dist/api/graph-api-types.js.map +0 -1
- package/dist/api/graph-api.d.ts +0 -42
- package/dist/api/graph-api.d.ts.map +0 -1
- package/dist/api/graph-api.js +0 -3460
- package/dist/api/graph-api.js.map +0 -1
- package/dist/api/heartbeat-handler.d.ts +0 -49
- package/dist/api/heartbeat-handler.d.ts.map +0 -1
- package/dist/api/heartbeat-handler.js +0 -106
- package/dist/api/heartbeat-handler.js.map +0 -1
- package/dist/api/index.d.ts +0 -145
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -448
- package/dist/api/index.js.map +0 -1
- package/dist/api/intelligence-handler.d.ts +0 -116
- package/dist/api/intelligence-handler.d.ts.map +0 -1
- package/dist/api/intelligence-handler.js +0 -280
- package/dist/api/intelligence-handler.js.map +0 -1
- package/dist/api/memory-provenance-handler.d.ts +0 -3
- package/dist/api/memory-provenance-handler.d.ts.map +0 -1
- package/dist/api/memory-provenance-handler.js +0 -120
- package/dist/api/memory-provenance-handler.js.map +0 -1
- package/dist/api/operator-handler.d.ts +0 -19
- package/dist/api/operator-handler.d.ts.map +0 -1
- package/dist/api/operator-handler.js +0 -106
- package/dist/api/operator-handler.js.map +0 -1
- package/dist/api/operator-summary.d.ts +0 -3
- package/dist/api/operator-summary.d.ts.map +0 -1
- package/dist/api/operator-summary.js +0 -72
- package/dist/api/operator-summary.js.map +0 -1
- package/dist/api/operator-tasks-handler.d.ts +0 -7
- package/dist/api/operator-tasks-handler.d.ts.map +0 -1
- package/dist/api/operator-tasks-handler.js +0 -192
- package/dist/api/operator-tasks-handler.js.map +0 -1
- package/dist/api/runtime-status-handler.d.ts +0 -42
- package/dist/api/runtime-status-handler.d.ts.map +0 -1
- package/dist/api/runtime-status-handler.js +0 -56
- package/dist/api/runtime-status-handler.js.map +0 -1
- package/dist/api/skills-handler.d.ts +0 -12
- package/dist/api/skills-handler.d.ts.map +0 -1
- package/dist/api/skills-handler.js +0 -156
- package/dist/api/skills-handler.js.map +0 -1
- package/dist/api/token-handler.d.ts +0 -33
- package/dist/api/token-handler.d.ts.map +0 -1
- package/dist/api/token-handler.js +0 -118
- package/dist/api/token-handler.js.map +0 -1
- package/dist/api/types.d.ts +0 -155
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -49
- package/dist/api/types.js.map +0 -1
- package/dist/api/ui-command-handler.d.ts +0 -48
- package/dist/api/ui-command-handler.d.ts.map +0 -1
- package/dist/api/ui-command-handler.js +0 -160
- package/dist/api/ui-command-handler.js.map +0 -1
- package/dist/api/upload-handler.d.ts +0 -12
- package/dist/api/upload-handler.d.ts.map +0 -1
- package/dist/api/upload-handler.js +0 -321
- package/dist/api/upload-handler.js.map +0 -1
- package/dist/api/wiki-handler.d.ts +0 -19
- package/dist/api/wiki-handler.d.ts.map +0 -1
- package/dist/api/wiki-handler.js +0 -136
- package/dist/api/wiki-handler.js.map +0 -1
- package/dist/api/worker-envelope.d.ts +0 -26
- package/dist/api/worker-envelope.d.ts.map +0 -1
- package/dist/api/worker-envelope.js +0 -176
- package/dist/api/worker-envelope.js.map +0 -1
- package/dist/auth/claude-client.d.ts +0 -12
- package/dist/auth/claude-client.d.ts.map +0 -1
- package/dist/auth/claude-client.js +0 -36
- package/dist/auth/claude-client.js.map +0 -1
- package/dist/auth/claude-code-auth.d.ts +0 -12
- package/dist/auth/claude-code-auth.d.ts.map +0 -1
- package/dist/auth/claude-code-auth.js +0 -85
- package/dist/auth/claude-code-auth.js.map +0 -1
- package/dist/auth/index.d.ts +0 -9
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js +0 -13
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/oauth-manager.d.ts +0 -59
- package/dist/auth/oauth-manager.d.ts.map +0 -1
- package/dist/auth/oauth-manager.js +0 -252
- package/dist/auth/oauth-manager.js.map +0 -1
- package/dist/auth/types.d.ts +0 -92
- package/dist/auth/types.d.ts.map +0 -1
- package/dist/auth/types.js +0 -23
- package/dist/auth/types.js.map +0 -1
- package/dist/cli/commands/connector.d.ts +0 -14
- package/dist/cli/commands/connector.d.ts.map +0 -1
- package/dist/cli/commands/connector.js +0 -174
- package/dist/cli/commands/connector.js.map +0 -1
- package/dist/cli/commands/gateway.d.ts +0 -18
- package/dist/cli/commands/gateway.d.ts.map +0 -1
- package/dist/cli/commands/gateway.js +0 -144
- package/dist/cli/commands/gateway.js.map +0 -1
- package/dist/cli/commands/report.d.ts +0 -14
- package/dist/cli/commands/report.d.ts.map +0 -1
- package/dist/cli/commands/report.js +0 -102
- package/dist/cli/commands/report.js.map +0 -1
- package/dist/cli/commands/run.d.ts +0 -19
- package/dist/cli/commands/run.d.ts.map +0 -1
- package/dist/cli/commands/run.js +0 -123
- package/dist/cli/commands/run.js.map +0 -1
- package/dist/cli/commands/setup.d.ts +0 -3
- package/dist/cli/commands/setup.d.ts.map +0 -1
- package/dist/cli/commands/setup.js +0 -9
- package/dist/cli/commands/setup.js.map +0 -1
- package/dist/cli/commands/start.d.ts +0 -263
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/start.js +0 -2230
- package/dist/cli/commands/start.js.map +0 -1
- package/dist/cli/commands/status.d.ts +0 -18
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js +0 -326
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/stop.d.ts +0 -28
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js +0 -597
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/config/config-manager.d.ts +0 -84
- package/dist/cli/config/config-manager.d.ts.map +0 -1
- package/dist/cli/config/config-manager.js +0 -886
- package/dist/cli/config/config-manager.js.map +0 -1
- package/dist/cli/config/types.d.ts +0 -633
- package/dist/cli/config/types.d.ts.map +0 -1
- package/dist/cli/config/types.js +0 -247
- package/dist/cli/config/types.js.map +0 -1
- package/dist/cli/runtime/agent-loop-init.d.ts +0 -53
- package/dist/cli/runtime/agent-loop-init.d.ts.map +0 -1
- package/dist/cli/runtime/agent-loop-init.js +0 -368
- package/dist/cli/runtime/agent-loop-init.js.map +0 -1
- package/dist/cli/runtime/api-routes-init.d.ts +0 -84
- package/dist/cli/runtime/api-routes-init.d.ts.map +0 -1
- package/dist/cli/runtime/api-routes-init.js +0 -1542
- package/dist/cli/runtime/api-routes-init.js.map +0 -1
- package/dist/cli/runtime/api-server-init.d.ts +0 -59
- package/dist/cli/runtime/api-server-init.d.ts.map +0 -1
- package/dist/cli/runtime/api-server-init.js +0 -159
- package/dist/cli/runtime/api-server-init.js.map +0 -1
- package/dist/cli/runtime/code-act-executor.d.ts +0 -14
- package/dist/cli/runtime/code-act-executor.d.ts.map +0 -1
- package/dist/cli/runtime/code-act-executor.js +0 -108
- package/dist/cli/runtime/code-act-executor.js.map +0 -1
- package/dist/cli/runtime/connector-bootstrap.d.ts +0 -8
- package/dist/cli/runtime/connector-bootstrap.d.ts.map +0 -1
- package/dist/cli/runtime/connector-bootstrap.js +0 -14
- package/dist/cli/runtime/connector-bootstrap.js.map +0 -1
- package/dist/cli/runtime/connector-init.d.ts +0 -64
- package/dist/cli/runtime/connector-init.d.ts.map +0 -1
- package/dist/cli/runtime/connector-init.js +0 -237
- package/dist/cli/runtime/connector-init.js.map +0 -1
- package/dist/cli/runtime/daemon.d.ts +0 -38
- package/dist/cli/runtime/daemon.d.ts.map +0 -1
- package/dist/cli/runtime/daemon.js +0 -263
- package/dist/cli/runtime/daemon.js.map +0 -1
- package/dist/cli/runtime/envelope-bootstrap.d.ts +0 -17
- package/dist/cli/runtime/envelope-bootstrap.d.ts.map +0 -1
- package/dist/cli/runtime/envelope-bootstrap.js +0 -56
- package/dist/cli/runtime/envelope-bootstrap.js.map +0 -1
- package/dist/cli/runtime/gateway-init.d.ts +0 -55
- package/dist/cli/runtime/gateway-init.d.ts.map +0 -1
- package/dist/cli/runtime/gateway-init.js +0 -196
- package/dist/cli/runtime/gateway-init.js.map +0 -1
- package/dist/cli/runtime/gateway-wiring.d.ts +0 -51
- package/dist/cli/runtime/gateway-wiring.d.ts.map +0 -1
- package/dist/cli/runtime/gateway-wiring.js +0 -215
- package/dist/cli/runtime/gateway-wiring.js.map +0 -1
- package/dist/cli/runtime/mama-core-init.d.ts +0 -42
- package/dist/cli/runtime/mama-core-init.d.ts.map +0 -1
- package/dist/cli/runtime/mama-core-init.js +0 -211
- package/dist/cli/runtime/mama-core-init.js.map +0 -1
- package/dist/cli/runtime/message-router-config.d.ts +0 -4
- package/dist/cli/runtime/message-router-config.d.ts.map +0 -1
- package/dist/cli/runtime/message-router-config.js +0 -11
- package/dist/cli/runtime/message-router-config.js.map +0 -1
- package/dist/cli/runtime/metrics-init.d.ts +0 -28
- package/dist/cli/runtime/metrics-init.d.ts.map +0 -1
- package/dist/cli/runtime/metrics-init.js +0 -131
- package/dist/cli/runtime/metrics-init.js.map +0 -1
- package/dist/cli/runtime/owner-backfill.d.ts +0 -24
- package/dist/cli/runtime/owner-backfill.d.ts.map +0 -1
- package/dist/cli/runtime/owner-backfill.js +0 -24
- package/dist/cli/runtime/owner-backfill.js.map +0 -1
- package/dist/cli/runtime/scheduler-init.d.ts +0 -60
- package/dist/cli/runtime/scheduler-init.d.ts.map +0 -1
- package/dist/cli/runtime/scheduler-init.js +0 -173
- package/dist/cli/runtime/scheduler-init.js.map +0 -1
- package/dist/cli/runtime/server-start.d.ts +0 -23
- package/dist/cli/runtime/server-start.d.ts.map +0 -1
- package/dist/cli/runtime/server-start.js +0 -174
- package/dist/cli/runtime/server-start.js.map +0 -1
- package/dist/cli/runtime/shutdown.d.ts +0 -46
- package/dist/cli/runtime/shutdown.d.ts.map +0 -1
- package/dist/cli/runtime/shutdown.js +0 -240
- package/dist/cli/runtime/shutdown.js.map +0 -1
- package/dist/cli/runtime/temporal-init.d.ts +0 -26
- package/dist/cli/runtime/temporal-init.d.ts.map +0 -1
- package/dist/cli/runtime/temporal-init.js +0 -57
- package/dist/cli/runtime/temporal-init.js.map +0 -1
- package/dist/cli/runtime/types.d.ts +0 -127
- package/dist/cli/runtime/types.d.ts.map +0 -1
- package/dist/cli/runtime/types.js +0 -12
- package/dist/cli/runtime/types.js.map +0 -1
- package/dist/cli/runtime/utilities.d.ts +0 -72
- package/dist/cli/runtime/utilities.d.ts.map +0 -1
- package/dist/cli/runtime/utilities.js +0 -472
- package/dist/cli/runtime/utilities.js.map +0 -1
- package/dist/cli/shutdown-utils.d.ts +0 -6
- package/dist/cli/shutdown-utils.d.ts.map +0 -1
- package/dist/cli/shutdown-utils.js +0 -11
- package/dist/cli/shutdown-utils.js.map +0 -1
- package/dist/cli/utils/pid-manager.d.ts +0 -56
- package/dist/cli/utils/pid-manager.d.ts.map +0 -1
- package/dist/cli/utils/pid-manager.js +0 -141
- package/dist/cli/utils/pid-manager.js.map +0 -1
- package/dist/concurrency/index.d.ts +0 -13
- package/dist/concurrency/index.d.ts.map +0 -1
- package/dist/concurrency/index.js +0 -22
- package/dist/concurrency/index.js.map +0 -1
- package/dist/concurrency/lane-manager.d.ts +0 -113
- package/dist/concurrency/lane-manager.d.ts.map +0 -1
- package/dist/concurrency/lane-manager.js +0 -248
- package/dist/concurrency/lane-manager.js.map +0 -1
- package/dist/concurrency/session-key.d.ts +0 -41
- package/dist/concurrency/session-key.d.ts.map +0 -1
- package/dist/concurrency/session-key.js +0 -61
- package/dist/concurrency/session-key.js.map +0 -1
- package/dist/concurrency/types.d.ts +0 -73
- package/dist/concurrency/types.d.ts.map +0 -1
- package/dist/concurrency/types.js +0 -16
- package/dist/concurrency/types.js.map +0 -1
- package/dist/connectors/framework/raw-store.d.ts +0 -63
- package/dist/connectors/framework/raw-store.d.ts.map +0 -1
- package/dist/connectors/framework/raw-store.js +0 -356
- package/dist/connectors/framework/raw-store.js.map +0 -1
- package/dist/connectors/kagemusha/query-tools.d.ts +0 -146
- package/dist/connectors/kagemusha/query-tools.d.ts.map +0 -1
- package/dist/connectors/kagemusha/query-tools.js +0 -467
- package/dist/connectors/kagemusha/query-tools.js.map +0 -1
- package/dist/connectors/private-connector-policy.d.ts +0 -174
- package/dist/connectors/private-connector-policy.d.ts.map +0 -1
- package/dist/connectors/private-connector-policy.js +0 -299
- package/dist/connectors/private-connector-policy.js.map +0 -1
- package/dist/connectors/private-prompt-overlay.d.ts +0 -17
- package/dist/connectors/private-prompt-overlay.d.ts.map +0 -1
- package/dist/connectors/private-prompt-overlay.js +0 -156
- package/dist/connectors/private-prompt-overlay.js.map +0 -1
- package/dist/connectors/trello/query-tools.d.ts +0 -243
- package/dist/connectors/trello/query-tools.d.ts.map +0 -1
- package/dist/connectors/trello/query-tools.js +0 -661
- package/dist/connectors/trello/query-tools.js.map +0 -1
- package/dist/db/agent-store.d.ts +0 -145
- package/dist/db/agent-store.d.ts.map +0 -1
- package/dist/db/agent-store.js +0 -279
- package/dist/db/agent-store.js.map +0 -1
- package/dist/db/migrations/agent-activity-envelope-hash.d.ts +0 -3
- package/dist/db/migrations/agent-activity-envelope-hash.d.ts.map +0 -1
- package/dist/db/migrations/agent-activity-envelope-hash.js +0 -29
- package/dist/db/migrations/agent-activity-envelope-hash.js.map +0 -1
- package/dist/db/migrations/agent-activity-gateway-call-id.d.ts +0 -3
- package/dist/db/migrations/agent-activity-gateway-call-id.d.ts.map +0 -1
- package/dist/db/migrations/agent-activity-gateway-call-id.js +0 -17
- package/dist/db/migrations/agent-activity-gateway-call-id.js.map +0 -1
- package/dist/db/migrations/agent-activity-tool-name.d.ts +0 -8
- package/dist/db/migrations/agent-activity-tool-name.d.ts.map +0 -1
- package/dist/db/migrations/agent-activity-tool-name.js +0 -24
- package/dist/db/migrations/agent-activity-tool-name.js.map +0 -1
- package/dist/db/migrations/agent-activity-validation-columns.d.ts +0 -3
- package/dist/db/migrations/agent-activity-validation-columns.d.ts.map +0 -1
- package/dist/db/migrations/agent-activity-validation-columns.js +0 -22
- package/dist/db/migrations/agent-activity-validation-columns.js.map +0 -1
- package/dist/db/migrations/agent-metrics-response-avg.d.ts +0 -3
- package/dist/db/migrations/agent-metrics-response-avg.d.ts.map +0 -1
- package/dist/db/migrations/agent-metrics-response-avg.js +0 -19
- package/dist/db/migrations/agent-metrics-response-avg.js.map +0 -1
- package/dist/db/migrations/agent-store-tables.d.ts +0 -3
- package/dist/db/migrations/agent-store-tables.d.ts.map +0 -1
- package/dist/db/migrations/agent-store-tables.js +0 -64
- package/dist/db/migrations/agent-store-tables.js.map +0 -1
- package/dist/db/migrations/envelope-tables.d.ts +0 -3
- package/dist/db/migrations/envelope-tables.d.ts.map +0 -1
- package/dist/db/migrations/envelope-tables.js +0 -38
- package/dist/db/migrations/envelope-tables.js.map +0 -1
- package/dist/db/migrations/operator-owner-action-candidates.d.ts +0 -19
- package/dist/db/migrations/operator-owner-action-candidates.d.ts.map +0 -1
- package/dist/db/migrations/operator-owner-action-candidates.js +0 -254
- package/dist/db/migrations/operator-owner-action-candidates.js.map +0 -1
- package/dist/db/migrations/operator-procedures.d.ts +0 -4
- package/dist/db/migrations/operator-procedures.d.ts.map +0 -1
- package/dist/db/migrations/operator-procedures.js +0 -63
- package/dist/db/migrations/operator-procedures.js.map +0 -1
- package/dist/db/migrations/operator-task-classification.d.ts +0 -15
- package/dist/db/migrations/operator-task-classification.d.ts.map +0 -1
- package/dist/db/migrations/operator-task-classification.js +0 -25
- package/dist/db/migrations/operator-task-classification.js.map +0 -1
- package/dist/db/migrations/operator-task-external-lifecycle.d.ts +0 -17
- package/dist/db/migrations/operator-task-external-lifecycle.d.ts.map +0 -1
- package/dist/db/migrations/operator-task-external-lifecycle.js +0 -199
- package/dist/db/migrations/operator-task-external-lifecycle.js.map +0 -1
- package/dist/db/migrations/operator-task-review-lifecycle.d.ts +0 -4
- package/dist/db/migrations/operator-task-review-lifecycle.d.ts.map +0 -1
- package/dist/db/migrations/operator-task-review-lifecycle.js +0 -17
- package/dist/db/migrations/operator-task-review-lifecycle.js.map +0 -1
- package/dist/db/migrations/operator-task-temporal.d.ts +0 -8
- package/dist/db/migrations/operator-task-temporal.d.ts.map +0 -1
- package/dist/db/migrations/operator-task-temporal.js +0 -214
- package/dist/db/migrations/operator-task-temporal.js.map +0 -1
- package/dist/db/migrations/owner-action-effects.d.ts +0 -18
- package/dist/db/migrations/owner-action-effects.d.ts.map +0 -1
- package/dist/db/migrations/owner-action-effects.js +0 -111
- package/dist/db/migrations/owner-action-effects.js.map +0 -1
- package/dist/db/migrations/raw-item-revisions.d.ts +0 -4
- package/dist/db/migrations/raw-item-revisions.d.ts.map +0 -1
- package/dist/db/migrations/raw-item-revisions.js +0 -29
- package/dist/db/migrations/raw-item-revisions.js.map +0 -1
- package/dist/db/migrations/token-usage-agent-version.d.ts +0 -3
- package/dist/db/migrations/token-usage-agent-version.d.ts.map +0 -1
- package/dist/db/migrations/token-usage-agent-version.js +0 -16
- package/dist/db/migrations/token-usage-agent-version.js.map +0 -1
- package/dist/db/migrations/validation-session-tables.d.ts +0 -3
- package/dist/db/migrations/validation-session-tables.d.ts.map +0 -1
- package/dist/db/migrations/validation-session-tables.js +0 -59
- package/dist/db/migrations/validation-session-tables.js.map +0 -1
- package/dist/envelope/authority.d.ts +0 -15
- package/dist/envelope/authority.d.ts.map +0 -1
- package/dist/envelope/authority.js +0 -95
- package/dist/envelope/authority.js.map +0 -1
- package/dist/envelope/canonical.d.ts +0 -14
- package/dist/envelope/canonical.d.ts.map +0 -1
- package/dist/envelope/canonical.js +0 -68
- package/dist/envelope/canonical.js.map +0 -1
- package/dist/envelope/enforcer.d.ts +0 -30
- package/dist/envelope/enforcer.d.ts.map +0 -1
- package/dist/envelope/enforcer.js +0 -286
- package/dist/envelope/enforcer.js.map +0 -1
- package/dist/envelope/expiry.d.ts +0 -2
- package/dist/envelope/expiry.d.ts.map +0 -1
- package/dist/envelope/expiry.js +0 -15
- package/dist/envelope/expiry.js.map +0 -1
- package/dist/envelope/index.d.ts +0 -9
- package/dist/envelope/index.d.ts.map +0 -1
- package/dist/envelope/index.js +0 -25
- package/dist/envelope/index.js.map +0 -1
- package/dist/envelope/key-provider.d.ts +0 -7
- package/dist/envelope/key-provider.d.ts.map +0 -1
- package/dist/envelope/key-provider.js +0 -137
- package/dist/envelope/key-provider.js.map +0 -1
- package/dist/envelope/reactive-config.d.ts +0 -24
- package/dist/envelope/reactive-config.d.ts.map +0 -1
- package/dist/envelope/reactive-config.js +0 -198
- package/dist/envelope/reactive-config.js.map +0 -1
- package/dist/envelope/run-guard.d.ts +0 -10
- package/dist/envelope/run-guard.d.ts.map +0 -1
- package/dist/envelope/run-guard.js +0 -19
- package/dist/envelope/run-guard.js.map +0 -1
- package/dist/envelope/signature.d.ts +0 -15
- package/dist/envelope/signature.d.ts.map +0 -1
- package/dist/envelope/signature.js +0 -75
- package/dist/envelope/signature.js.map +0 -1
- package/dist/envelope/store.d.ts +0 -16
- package/dist/envelope/store.d.ts.map +0 -1
- package/dist/envelope/store.js +0 -118
- package/dist/envelope/store.js.map +0 -1
- package/dist/envelope/tool-connector-scope.d.ts +0 -35
- package/dist/envelope/tool-connector-scope.d.ts.map +0 -1
- package/dist/envelope/tool-connector-scope.js +0 -61
- package/dist/envelope/tool-connector-scope.js.map +0 -1
- package/dist/envelope/types.d.ts +0 -60
- package/dist/envelope/types.d.ts.map +0 -1
- package/dist/envelope/types.js +0 -9
- package/dist/envelope/types.js.map +0 -1
- package/dist/evidence/effects.d.ts +0 -125
- package/dist/evidence/effects.d.ts.map +0 -1
- package/dist/evidence/effects.js +0 -409
- package/dist/evidence/effects.js.map +0 -1
- package/dist/evidence/read.d.ts +0 -130
- package/dist/evidence/read.d.ts.map +0 -1
- package/dist/evidence/read.js +0 -167
- package/dist/evidence/read.js.map +0 -1
- package/dist/gateways/attachment-utils.d.ts +0 -28
- package/dist/gateways/attachment-utils.d.ts.map +0 -1
- package/dist/gateways/attachment-utils.js +0 -489
- package/dist/gateways/attachment-utils.js.map +0 -1
- package/dist/gateways/channel-history.d.ts +0 -148
- package/dist/gateways/channel-history.d.ts.map +0 -1
- package/dist/gateways/channel-history.js +0 -385
- package/dist/gateways/channel-history.js.map +0 -1
- package/dist/gateways/context-injector.d.ts +0 -255
- package/dist/gateways/context-injector.d.ts.map +0 -1
- package/dist/gateways/context-injector.js +0 -285
- package/dist/gateways/context-injector.js.map +0 -1
- package/dist/gateways/image-analyzer.d.ts +0 -28
- package/dist/gateways/image-analyzer.d.ts.map +0 -1
- package/dist/gateways/image-analyzer.js +0 -154
- package/dist/gateways/image-analyzer.js.map +0 -1
- package/dist/gateways/index.d.ts +0 -35
- package/dist/gateways/index.d.ts.map +0 -1
- package/dist/gateways/index.js +0 -55
- package/dist/gateways/index.js.map +0 -1
- package/dist/gateways/member-candidate-store.d.ts +0 -26
- package/dist/gateways/member-candidate-store.d.ts.map +0 -1
- package/dist/gateways/member-candidate-store.js +0 -90
- package/dist/gateways/member-candidate-store.js.map +0 -1
- package/dist/gateways/member-effective-scope.d.ts +0 -25
- package/dist/gateways/member-effective-scope.d.ts.map +0 -1
- package/dist/gateways/member-effective-scope.js +0 -323
- package/dist/gateways/member-effective-scope.js.map +0 -1
- package/dist/gateways/message-router.d.ts +0 -239
- package/dist/gateways/message-router.d.ts.map +0 -1
- package/dist/gateways/message-router.js +0 -1714
- package/dist/gateways/message-router.js.map +0 -1
- package/dist/gateways/plugin-loader.d.ts +0 -80
- package/dist/gateways/plugin-loader.d.ts.map +0 -1
- package/dist/gateways/plugin-loader.js +0 -299
- package/dist/gateways/plugin-loader.js.map +0 -1
- package/dist/gateways/principal.d.ts +0 -37
- package/dist/gateways/principal.d.ts.map +0 -1
- package/dist/gateways/principal.js +0 -95
- package/dist/gateways/principal.js.map +0 -1
- package/dist/gateways/report-projection-v1.d.ts +0 -41
- package/dist/gateways/report-projection-v1.d.ts.map +0 -1
- package/dist/gateways/report-projection-v1.js +0 -160
- package/dist/gateways/report-projection-v1.js.map +0 -1
- package/dist/gateways/telegram-media.d.ts +0 -41
- package/dist/gateways/telegram-media.d.ts.map +0 -1
- package/dist/gateways/telegram-media.js +0 -242
- package/dist/gateways/telegram-media.js.map +0 -1
- package/dist/gateways/telegram-report-context-store.d.ts +0 -131
- package/dist/gateways/telegram-report-context-store.d.ts.map +0 -1
- package/dist/gateways/telegram-report-context-store.js +0 -388
- package/dist/gateways/telegram-report-context-store.js.map +0 -1
- package/dist/gateways/tool-status-tracker.d.ts +0 -87
- package/dist/gateways/tool-status-tracker.d.ts.map +0 -1
- package/dist/gateways/tool-status-tracker.js +0 -284
- package/dist/gateways/tool-status-tracker.js.map +0 -1
- package/dist/mcp/code-act-api-client.d.ts +0 -32
- package/dist/mcp/code-act-api-client.d.ts.map +0 -1
- package/dist/mcp/code-act-api-client.js +0 -80
- package/dist/mcp/code-act-api-client.js.map +0 -1
- package/dist/mcp/code-act-mcp-config.d.ts +0 -49
- package/dist/mcp/code-act-mcp-config.d.ts.map +0 -1
- package/dist/mcp/code-act-mcp-config.js +0 -124
- package/dist/mcp/code-act-mcp-config.js.map +0 -1
- package/dist/mcp/code-act-server.d.ts +0 -14
- package/dist/mcp/code-act-server.d.ts.map +0 -1
- package/dist/mcp/code-act-server.js +0 -204
- package/dist/mcp/code-act-server.js.map +0 -1
- package/dist/mcp/code-act-terminal-transport.d.ts +0 -64
- package/dist/mcp/code-act-terminal-transport.d.ts.map +0 -1
- package/dist/mcp/code-act-terminal-transport.js +0 -176
- package/dist/mcp/code-act-terminal-transport.js.map +0 -1
- package/dist/memory/agent-notice-queue.d.ts +0 -24
- package/dist/memory/agent-notice-queue.d.ts.map +0 -1
- package/dist/memory/agent-notice-queue.js +0 -40
- package/dist/memory/agent-notice-queue.js.map +0 -1
- package/dist/memory/audit-task-queue.d.ts +0 -28
- package/dist/memory/audit-task-queue.d.ts.map +0 -1
- package/dist/memory/audit-task-queue.js +0 -29
- package/dist/memory/audit-task-queue.js.map +0 -1
- package/dist/memory/bootstrap-context.d.ts +0 -12
- package/dist/memory/bootstrap-context.d.ts.map +0 -1
- package/dist/memory/bootstrap-context.js +0 -68
- package/dist/memory/bootstrap-context.js.map +0 -1
- package/dist/memory/history-extractor.d.ts +0 -69
- package/dist/memory/history-extractor.d.ts.map +0 -1
- package/dist/memory/history-extractor.js +0 -210
- package/dist/memory/history-extractor.js.map +0 -1
- package/dist/memory/memory-agent-ack.d.ts +0 -4
- package/dist/memory/memory-agent-ack.d.ts.map +0 -1
- package/dist/memory/memory-agent-ack.js +0 -54
- package/dist/memory/memory-agent-ack.js.map +0 -1
- package/dist/memory/memory-agent-dashboard.d.ts +0 -35
- package/dist/memory/memory-agent-dashboard.d.ts.map +0 -1
- package/dist/memory/memory-agent-dashboard.js +0 -116
- package/dist/memory/memory-agent-dashboard.js.map +0 -1
- package/dist/memory/memory-logger.d.ts +0 -47
- package/dist/memory/memory-logger.d.ts.map +0 -1
- package/dist/memory/memory-logger.js +0 -126
- package/dist/memory/memory-logger.js.map +0 -1
- package/dist/memory/provenance-live.d.ts +0 -111
- package/dist/memory/provenance-live.d.ts.map +0 -1
- package/dist/memory/provenance-live.js +0 -381
- package/dist/memory/provenance-live.js.map +0 -1
- package/dist/memory/provenance-resolver.d.ts +0 -184
- package/dist/memory/provenance-resolver.d.ts.map +0 -1
- package/dist/memory/provenance-resolver.js +0 -152
- package/dist/memory/provenance-resolver.js.map +0 -1
- package/dist/memory/raw-backed-memory-ingest.d.ts +0 -26
- package/dist/memory/raw-backed-memory-ingest.d.ts.map +0 -1
- package/dist/memory/raw-backed-memory-ingest.js +0 -214
- package/dist/memory/raw-backed-memory-ingest.js.map +0 -1
- package/dist/memory/recall-bundle-formatter.d.ts +0 -26
- package/dist/memory/recall-bundle-formatter.d.ts.map +0 -1
- package/dist/memory/recall-bundle-formatter.js +0 -53
- package/dist/memory/recall-bundle-formatter.js.map +0 -1
- package/dist/memory/save-candidate-extractor.d.ts +0 -16
- package/dist/memory/save-candidate-extractor.d.ts.map +0 -1
- package/dist/memory/save-candidate-extractor.js +0 -127
- package/dist/memory/save-candidate-extractor.js.map +0 -1
- package/dist/memory/save-candidate-types.d.ts +0 -16
- package/dist/memory/save-candidate-types.d.ts.map +0 -1
- package/dist/memory/save-candidate-types.js +0 -3
- package/dist/memory/save-candidate-types.js.map +0 -1
- package/dist/memory/scope-context.d.ts +0 -12
- package/dist/memory/scope-context.d.ts.map +0 -1
- package/dist/memory/scope-context.js +0 -18
- package/dist/memory/scope-context.js.map +0 -1
- package/dist/memory/secret-filter.d.ts +0 -23
- package/dist/memory/secret-filter.d.ts.map +0 -1
- package/dist/memory/secret-filter.js +0 -90
- package/dist/memory/secret-filter.js.map +0 -1
- package/dist/multi-agent/agent-event-bus.d.ts +0 -50
- package/dist/multi-agent/agent-event-bus.d.ts.map +0 -1
- package/dist/multi-agent/agent-event-bus.js +0 -101
- package/dist/multi-agent/agent-event-bus.js.map +0 -1
- package/dist/multi-agent/agent-process-manager.d.ts +0 -205
- package/dist/multi-agent/agent-process-manager.d.ts.map +0 -1
- package/dist/multi-agent/agent-process-manager.js +0 -1191
- package/dist/multi-agent/agent-process-manager.js.map +0 -1
- package/dist/multi-agent/bmad-templates.d.ts +0 -49
- package/dist/multi-agent/bmad-templates.d.ts.map +0 -1
- package/dist/multi-agent/bmad-templates.js +0 -121
- package/dist/multi-agent/bmad-templates.js.map +0 -1
- package/dist/multi-agent/runtime-process.d.ts +0 -74
- package/dist/multi-agent/runtime-process.d.ts.map +0 -1
- package/dist/multi-agent/runtime-process.js +0 -160
- package/dist/multi-agent/runtime-process.js.map +0 -1
- package/dist/multi-agent/tool-permission-manager.d.ts +0 -70
- package/dist/multi-agent/tool-permission-manager.d.ts.map +0 -1
- package/dist/multi-agent/tool-permission-manager.js +0 -195
- package/dist/multi-agent/tool-permission-manager.js.map +0 -1
- package/dist/multi-agent/types.d.ts +0 -438
- package/dist/multi-agent/types.d.ts.map +0 -1
- package/dist/multi-agent/types.js +0 -27
- package/dist/multi-agent/types.js.map +0 -1
- package/dist/multi-agent/wiki-agent-persona.d.ts +0 -16
- package/dist/multi-agent/wiki-agent-persona.d.ts.map +0 -1
- package/dist/multi-agent/wiki-agent-persona.js +0 -23
- package/dist/multi-agent/wiki-agent-persona.js.map +0 -1
- package/dist/multi-agent/workflow-types.d.ts +0 -186
- package/dist/multi-agent/workflow-types.d.ts.map +0 -1
- package/dist/multi-agent/workflow-types.js +0 -9
- package/dist/multi-agent/workflow-types.js.map +0 -1
- package/dist/observability/code-audit.d.ts +0 -87
- package/dist/observability/code-audit.d.ts.map +0 -1
- package/dist/observability/code-audit.js +0 -414
- package/dist/observability/code-audit.js.map +0 -1
- package/dist/observability/health-check.d.ts +0 -102
- package/dist/observability/health-check.d.ts.map +0 -1
- package/dist/observability/health-check.js +0 -422
- package/dist/observability/health-check.js.map +0 -1
- package/dist/observability/health-score.d.ts +0 -29
- package/dist/observability/health-score.d.ts.map +0 -1
- package/dist/observability/health-score.js +0 -83
- package/dist/observability/health-score.js.map +0 -1
- package/dist/observability/metrics-cleanup.d.ts +0 -24
- package/dist/observability/metrics-cleanup.d.ts.map +0 -1
- package/dist/observability/metrics-cleanup.js +0 -51
- package/dist/observability/metrics-cleanup.js.map +0 -1
- package/dist/observability/metrics-store.d.ts +0 -52
- package/dist/observability/metrics-store.d.ts.map +0 -1
- package/dist/observability/metrics-store.js +0 -186
- package/dist/observability/metrics-store.js.map +0 -1
- package/dist/observability/operational-issues.d.ts +0 -55
- package/dist/observability/operational-issues.d.ts.map +0 -1
- package/dist/observability/operational-issues.js +0 -170
- package/dist/observability/operational-issues.js.map +0 -1
- package/dist/onboarding/agent-contract.d.ts +0 -42
- package/dist/onboarding/agent-contract.d.ts.map +0 -1
- package/dist/onboarding/agent-contract.js +0 -129
- package/dist/onboarding/agent-contract.js.map +0 -1
- package/dist/onboarding/assess-live.d.ts +0 -22
- package/dist/onboarding/assess-live.d.ts.map +0 -1
- package/dist/onboarding/assess-live.js +0 -200
- package/dist/onboarding/assess-live.js.map +0 -1
- package/dist/onboarding/bootstrap-template.d.ts +0 -5
- package/dist/onboarding/bootstrap-template.d.ts.map +0 -1
- package/dist/onboarding/bootstrap-template.js +0 -34
- package/dist/onboarding/bootstrap-template.js.map +0 -1
- package/dist/operator/action-verifier.d.ts +0 -75
- package/dist/operator/action-verifier.d.ts.map +0 -1
- package/dist/operator/action-verifier.js +0 -149
- package/dist/operator/action-verifier.js.map +0 -1
- package/dist/operator/board-delta-gate.d.ts +0 -131
- package/dist/operator/board-delta-gate.d.ts.map +0 -1
- package/dist/operator/board-delta-gate.js +0 -181
- package/dist/operator/board-delta-gate.js.map +0 -1
- package/dist/operator/board-pipeline-render.d.ts +0 -16
- package/dist/operator/board-pipeline-render.d.ts.map +0 -1
- package/dist/operator/board-pipeline-render.js +0 -69
- package/dist/operator/board-pipeline-render.js.map +0 -1
- package/dist/operator/board-reconcile.d.ts +0 -61
- package/dist/operator/board-reconcile.d.ts.map +0 -1
- package/dist/operator/board-reconcile.js +0 -157
- package/dist/operator/board-reconcile.js.map +0 -1
- package/dist/operator/board-refresh-gate.d.ts +0 -39
- package/dist/operator/board-refresh-gate.d.ts.map +0 -1
- package/dist/operator/board-refresh-gate.js +0 -83
- package/dist/operator/board-refresh-gate.js.map +0 -1
- package/dist/operator/changes-projection.d.ts +0 -72
- package/dist/operator/changes-projection.d.ts.map +0 -1
- package/dist/operator/changes-projection.js +0 -110
- package/dist/operator/changes-projection.js.map +0 -1
- package/dist/operator/connector-delta-repo.d.ts +0 -33
- package/dist/operator/connector-delta-repo.d.ts.map +0 -1
- package/dist/operator/connector-delta-repo.js +0 -0
- package/dist/operator/connector-delta-repo.js.map +0 -1
- package/dist/operator/console-brief.d.ts +0 -40
- package/dist/operator/console-brief.d.ts.map +0 -1
- package/dist/operator/console-brief.js +0 -246
- package/dist/operator/console-brief.js.map +0 -1
- package/dist/operator/experience-evidence.d.ts +0 -18
- package/dist/operator/experience-evidence.d.ts.map +0 -1
- package/dist/operator/experience-evidence.js +0 -82
- package/dist/operator/experience-evidence.js.map +0 -1
- package/dist/operator/experience-hints.d.ts +0 -44
- package/dist/operator/experience-hints.d.ts.map +0 -1
- package/dist/operator/experience-hints.js +0 -98
- package/dist/operator/experience-hints.js.map +0 -1
- package/dist/operator/external-correlation.d.ts +0 -94
- package/dist/operator/external-correlation.d.ts.map +0 -1
- package/dist/operator/external-correlation.js +0 -177
- package/dist/operator/external-correlation.js.map +0 -1
- package/dist/operator/external-lifecycle-candidates.d.ts +0 -70
- package/dist/operator/external-lifecycle-candidates.d.ts.map +0 -1
- package/dist/operator/external-lifecycle-candidates.js +0 -579
- package/dist/operator/external-lifecycle-candidates.js.map +0 -1
- package/dist/operator/external-lifecycle-discovery.d.ts +0 -61
- package/dist/operator/external-lifecycle-discovery.d.ts.map +0 -1
- package/dist/operator/external-lifecycle-discovery.js +0 -103
- package/dist/operator/external-lifecycle-discovery.js.map +0 -1
- package/dist/operator/external-lifecycle.d.ts +0 -105
- package/dist/operator/external-lifecycle.d.ts.map +0 -1
- package/dist/operator/external-lifecycle.js +0 -27
- package/dist/operator/external-lifecycle.js.map +0 -1
- package/dist/operator/file-coordination.d.ts +0 -7
- package/dist/operator/file-coordination.d.ts.map +0 -1
- package/dist/operator/file-coordination.js +0 -84
- package/dist/operator/file-coordination.js.map +0 -1
- package/dist/operator/file-export.d.ts +0 -22
- package/dist/operator/file-export.d.ts.map +0 -1
- package/dist/operator/file-export.js +0 -115
- package/dist/operator/file-export.js.map +0 -1
- package/dist/operator/leg-cadence.d.ts +0 -72
- package/dist/operator/leg-cadence.d.ts.map +0 -1
- package/dist/operator/leg-cadence.js +0 -122
- package/dist/operator/leg-cadence.js.map +0 -1
- package/dist/operator/mama-memory-port.d.ts +0 -13
- package/dist/operator/mama-memory-port.d.ts.map +0 -1
- package/dist/operator/mama-memory-port.js +0 -33
- package/dist/operator/mama-memory-port.js.map +0 -1
- package/dist/operator/operator-interfaces.d.ts +0 -136
- package/dist/operator/operator-interfaces.d.ts.map +0 -1
- package/dist/operator/operator-interfaces.js +0 -15
- package/dist/operator/operator-interfaces.js.map +0 -1
- package/dist/operator/operator-trigger-loop.d.ts +0 -203
- package/dist/operator/operator-trigger-loop.d.ts.map +0 -1
- package/dist/operator/operator-trigger-loop.js +0 -827
- package/dist/operator/operator-trigger-loop.js.map +0 -1
- package/dist/operator/owner-action-effects.d.ts +0 -112
- package/dist/operator/owner-action-effects.d.ts.map +0 -1
- package/dist/operator/owner-action-effects.js +0 -375
- package/dist/operator/owner-action-effects.js.map +0 -1
- package/dist/operator/owner-event-effects.d.ts +0 -65
- package/dist/operator/owner-event-effects.d.ts.map +0 -1
- package/dist/operator/owner-event-effects.js +0 -249
- package/dist/operator/owner-event-effects.js.map +0 -1
- package/dist/operator/owner-event-inbox.d.ts +0 -124
- package/dist/operator/owner-event-inbox.d.ts.map +0 -1
- package/dist/operator/owner-event-inbox.js +0 -440
- package/dist/operator/owner-event-inbox.js.map +0 -1
- package/dist/operator/owner-event-loop.d.ts +0 -99
- package/dist/operator/owner-event-loop.d.ts.map +0 -1
- package/dist/operator/owner-event-loop.js +0 -253
- package/dist/operator/owner-event-loop.js.map +0 -1
- package/dist/operator/owner-event-outcome.d.ts +0 -36
- package/dist/operator/owner-event-outcome.d.ts.map +0 -1
- package/dist/operator/owner-event-outcome.js +0 -174
- package/dist/operator/owner-event-outcome.js.map +0 -1
- package/dist/operator/owner-event-policy.d.ts +0 -40
- package/dist/operator/owner-event-policy.d.ts.map +0 -1
- package/dist/operator/owner-event-policy.js +0 -75
- package/dist/operator/owner-event-policy.js.map +0 -1
- package/dist/operator/owner-event-prompt.d.ts +0 -21
- package/dist/operator/owner-event-prompt.d.ts.map +0 -1
- package/dist/operator/owner-event-prompt.js +0 -69
- package/dist/operator/owner-event-prompt.js.map +0 -1
- package/dist/operator/owner-runtime-journal.d.ts +0 -21
- package/dist/operator/owner-runtime-journal.d.ts.map +0 -1
- package/dist/operator/owner-runtime-journal.js +0 -135
- package/dist/operator/owner-runtime-journal.js.map +0 -1
- package/dist/operator/owner-runtime.d.ts +0 -48
- package/dist/operator/owner-runtime.d.ts.map +0 -1
- package/dist/operator/owner-runtime.js +0 -99
- package/dist/operator/owner-runtime.js.map +0 -1
- package/dist/operator/pending-report-store.d.ts +0 -99
- package/dist/operator/pending-report-store.d.ts.map +0 -1
- package/dist/operator/pending-report-store.js +0 -554
- package/dist/operator/pending-report-store.js.map +0 -1
- package/dist/operator/procedure-activation.d.ts +0 -7
- package/dist/operator/procedure-activation.d.ts.map +0 -1
- package/dist/operator/procedure-activation.js +0 -132
- package/dist/operator/procedure-activation.js.map +0 -1
- package/dist/operator/procedure-projection.d.ts +0 -25
- package/dist/operator/procedure-projection.d.ts.map +0 -1
- package/dist/operator/procedure-projection.js +0 -80
- package/dist/operator/procedure-projection.js.map +0 -1
- package/dist/operator/procedure-runtime.d.ts +0 -45
- package/dist/operator/procedure-runtime.d.ts.map +0 -1
- package/dist/operator/procedure-runtime.js +0 -496
- package/dist/operator/procedure-runtime.js.map +0 -1
- package/dist/operator/procedure-store.d.ts +0 -97
- package/dist/operator/procedure-store.d.ts.map +0 -1
- package/dist/operator/procedure-store.js +0 -368
- package/dist/operator/procedure-store.js.map +0 -1
- package/dist/operator/provenance-lookup.d.ts +0 -18
- package/dist/operator/provenance-lookup.d.ts.map +0 -1
- package/dist/operator/provenance-lookup.js +0 -54
- package/dist/operator/provenance-lookup.js.map +0 -1
- package/dist/operator/repair-request.d.ts +0 -29
- package/dist/operator/repair-request.d.ts.map +0 -1
- package/dist/operator/repair-request.js +0 -115
- package/dist/operator/repair-request.js.map +0 -1
- package/dist/operator/report-carry-delivery.d.ts +0 -35
- package/dist/operator/report-carry-delivery.d.ts.map +0 -1
- package/dist/operator/report-carry-delivery.js +0 -55
- package/dist/operator/report-carry-delivery.js.map +0 -1
- package/dist/operator/report-carry.d.ts +0 -66
- package/dist/operator/report-carry.d.ts.map +0 -1
- package/dist/operator/report-carry.js +0 -352
- package/dist/operator/report-carry.js.map +0 -1
- package/dist/operator/report-delivery-coordinator.d.ts +0 -84
- package/dist/operator/report-delivery-coordinator.d.ts.map +0 -1
- package/dist/operator/report-delivery-coordinator.js +0 -146
- package/dist/operator/report-delivery-coordinator.js.map +0 -1
- package/dist/operator/report-run.d.ts +0 -52
- package/dist/operator/report-run.d.ts.map +0 -1
- package/dist/operator/report-run.js +0 -32
- package/dist/operator/report-run.js.map +0 -1
- package/dist/operator/report-scheduler.d.ts +0 -66
- package/dist/operator/report-scheduler.d.ts.map +0 -1
- package/dist/operator/report-scheduler.js +0 -135
- package/dist/operator/report-scheduler.js.map +0 -1
- package/dist/operator/runtime-config.d.ts +0 -10
- package/dist/operator/runtime-config.d.ts.map +0 -1
- package/dist/operator/runtime-config.js +0 -21
- package/dist/operator/runtime-config.js.map +0 -1
- package/dist/operator/situation-report.d.ts +0 -197
- package/dist/operator/situation-report.d.ts.map +0 -1
- package/dist/operator/situation-report.js +0 -462
- package/dist/operator/situation-report.js.map +0 -1
- package/dist/operator/subagent-stimulus.d.ts +0 -34
- package/dist/operator/subagent-stimulus.d.ts.map +0 -1
- package/dist/operator/subagent-stimulus.js +0 -145
- package/dist/operator/subagent-stimulus.js.map +0 -1
- package/dist/operator/task-ledger.d.ts +0 -879
- package/dist/operator/task-ledger.d.ts.map +0 -1
- package/dist/operator/task-ledger.js +0 -3601
- package/dist/operator/task-ledger.js.map +0 -1
- package/dist/operator/task-list-views.d.ts +0 -91
- package/dist/operator/task-list-views.d.ts.map +0 -1
- package/dist/operator/task-list-views.js +0 -532
- package/dist/operator/task-list-views.js.map +0 -1
- package/dist/operator/task-temporal.d.ts +0 -24
- package/dist/operator/task-temporal.d.ts.map +0 -1
- package/dist/operator/task-temporal.js +0 -123
- package/dist/operator/task-temporal.js.map +0 -1
- package/dist/operator/temporal-effect.d.ts +0 -65
- package/dist/operator/temporal-effect.d.ts.map +0 -1
- package/dist/operator/temporal-effect.js +0 -71
- package/dist/operator/temporal-effect.js.map +0 -1
- package/dist/operator/temporal-reconcile.d.ts +0 -49
- package/dist/operator/temporal-reconcile.d.ts.map +0 -1
- package/dist/operator/temporal-reconcile.js +0 -231
- package/dist/operator/temporal-reconcile.js.map +0 -1
- package/dist/operator/temporal-runtime.d.ts +0 -51
- package/dist/operator/temporal-runtime.d.ts.map +0 -1
- package/dist/operator/temporal-runtime.js +0 -104
- package/dist/operator/temporal-runtime.js.map +0 -1
- package/dist/operator/temporal-worker.d.ts +0 -18
- package/dist/operator/temporal-worker.d.ts.map +0 -1
- package/dist/operator/temporal-worker.js +0 -82
- package/dist/operator/temporal-worker.js.map +0 -1
- package/dist/operator/thread-brief-memory.d.ts +0 -29
- package/dist/operator/thread-brief-memory.d.ts.map +0 -1
- package/dist/operator/thread-brief-memory.js +0 -61
- package/dist/operator/thread-brief-memory.js.map +0 -1
- package/dist/operator/trigger-author.d.ts +0 -63
- package/dist/operator/trigger-author.d.ts.map +0 -1
- package/dist/operator/trigger-author.js +0 -384
- package/dist/operator/trigger-author.js.map +0 -1
- package/dist/operator/trigger-evolve.d.ts +0 -31
- package/dist/operator/trigger-evolve.d.ts.map +0 -1
- package/dist/operator/trigger-evolve.js +0 -51
- package/dist/operator/trigger-evolve.js.map +0 -1
- package/dist/operator/trigger-fire.d.ts +0 -29
- package/dist/operator/trigger-fire.d.ts.map +0 -1
- package/dist/operator/trigger-fire.js +0 -41
- package/dist/operator/trigger-fire.js.map +0 -1
- package/dist/operator/trigger-matcher.d.ts +0 -19
- package/dist/operator/trigger-matcher.d.ts.map +0 -1
- package/dist/operator/trigger-matcher.js +0 -65
- package/dist/operator/trigger-matcher.js.map +0 -1
- package/dist/operator/trigger-registry.d.ts +0 -58
- package/dist/operator/trigger-registry.d.ts.map +0 -1
- package/dist/operator/trigger-registry.js +0 -349
- package/dist/operator/trigger-registry.js.map +0 -1
- package/dist/operator/trigger-review.d.ts +0 -23
- package/dist/operator/trigger-review.d.ts.map +0 -1
- package/dist/operator/trigger-review.js +0 -193
- package/dist/operator/trigger-review.js.map +0 -1
- package/dist/operator/trigger-types.d.ts +0 -95
- package/dist/operator/trigger-types.d.ts.map +0 -1
- package/dist/operator/trigger-types.js +0 -14
- package/dist/operator/trigger-types.js.map +0 -1
- package/dist/operator/wiki-continuity.d.ts +0 -153
- package/dist/operator/wiki-continuity.d.ts.map +0 -1
- package/dist/operator/wiki-continuity.js +0 -221
- package/dist/operator/wiki-continuity.js.map +0 -1
- package/dist/operator/worker-run.d.ts +0 -109
- package/dist/operator/worker-run.d.ts.map +0 -1
- package/dist/operator/worker-run.js +0 -131
- package/dist/operator/worker-run.js.map +0 -1
- package/dist/operator/workorder-consumer.d.ts +0 -294
- package/dist/operator/workorder-consumer.d.ts.map +0 -1
- package/dist/operator/workorder-consumer.js +0 -1108
- package/dist/operator/workorder-consumer.js.map +0 -1
- package/dist/operator/workorder-hooks.d.ts +0 -162
- package/dist/operator/workorder-hooks.d.ts.map +0 -1
- package/dist/operator/workorder-hooks.js +0 -342
- package/dist/operator/workorder-hooks.js.map +0 -1
- package/dist/operator/workorder-publishers.d.ts +0 -117
- package/dist/operator/workorder-publishers.d.ts.map +0 -1
- package/dist/operator/workorder-publishers.js +0 -544
- package/dist/operator/workorder-publishers.js.map +0 -1
- package/dist/runners/cli-runner.d.ts +0 -59
- package/dist/runners/cli-runner.d.ts.map +0 -1
- package/dist/runners/cli-runner.js +0 -191
- package/dist/runners/cli-runner.js.map +0 -1
- package/dist/runners/index.d.ts +0 -11
- package/dist/runners/index.d.ts.map +0 -1
- package/dist/runners/index.js +0 -15
- package/dist/runners/index.js.map +0 -1
- package/dist/runners/types.d.ts +0 -81
- package/dist/runners/types.d.ts.map +0 -1
- package/dist/runners/types.js +0 -31
- package/dist/runners/types.js.map +0 -1
- package/dist/scheduler/cron-result-router.d.ts +0 -24
- package/dist/scheduler/cron-result-router.d.ts.map +0 -1
- package/dist/scheduler/cron-result-router.js +0 -63
- package/dist/scheduler/cron-result-router.js.map +0 -1
- package/dist/scheduler/cron-scheduler.d.ts +0 -115
- package/dist/scheduler/cron-scheduler.d.ts.map +0 -1
- package/dist/scheduler/cron-scheduler.js +0 -336
- package/dist/scheduler/cron-scheduler.js.map +0 -1
- package/dist/scheduler/cron-worker.d.ts +0 -39
- package/dist/scheduler/cron-worker.d.ts.map +0 -1
- package/dist/scheduler/cron-worker.js +0 -94
- package/dist/scheduler/cron-worker.js.map +0 -1
- package/dist/scheduler/heartbeat.d.ts +0 -64
- package/dist/scheduler/heartbeat.d.ts.map +0 -1
- package/dist/scheduler/heartbeat.js +0 -197
- package/dist/scheduler/heartbeat.js.map +0 -1
- package/dist/scheduler/index.d.ts +0 -26
- package/dist/scheduler/index.d.ts.map +0 -1
- package/dist/scheduler/index.js +0 -37
- package/dist/scheduler/index.js.map +0 -1
- package/dist/scheduler/job-lock.d.ts +0 -85
- package/dist/scheduler/job-lock.d.ts.map +0 -1
- package/dist/scheduler/job-lock.js +0 -137
- package/dist/scheduler/job-lock.js.map +0 -1
- package/dist/scheduler/recovery.d.ts +0 -78
- package/dist/scheduler/recovery.d.ts.map +0 -1
- package/dist/scheduler/recovery.js +0 -124
- package/dist/scheduler/recovery.js.map +0 -1
- package/dist/scheduler/schedule-store.d.ts +0 -112
- package/dist/scheduler/schedule-store.d.ts.map +0 -1
- package/dist/scheduler/schedule-store.js +0 -259
- package/dist/scheduler/schedule-store.js.map +0 -1
- package/dist/scheduler/token-keep-alive.d.ts +0 -49
- package/dist/scheduler/token-keep-alive.d.ts.map +0 -1
- package/dist/scheduler/token-keep-alive.js +0 -102
- package/dist/scheduler/token-keep-alive.js.map +0 -1
- package/dist/scheduler/types.d.ts +0 -98
- package/dist/scheduler/types.d.ts.map +0 -1
- package/dist/scheduler/types.js +0 -21
- package/dist/scheduler/types.js.map +0 -1
- package/dist/security/security-monitor.d.ts +0 -56
- package/dist/security/security-monitor.d.ts.map +0 -1
- package/dist/security/security-monitor.js +0 -779
- package/dist/security/security-monitor.js.map +0 -1
- package/dist/security/trusted-proxy.d.ts +0 -9
- package/dist/security/trusted-proxy.d.ts.map +0 -1
- package/dist/security/trusted-proxy.js +0 -36
- package/dist/security/trusted-proxy.js.map +0 -1
- package/dist/skills/index.d.ts +0 -10
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js +0 -26
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/skill-executor.d.ts +0 -48
- package/dist/skills/skill-executor.d.ts.map +0 -1
- package/dist/skills/skill-executor.js +0 -483
- package/dist/skills/skill-executor.js.map +0 -1
- package/dist/skills/skill-loader.d.ts +0 -40
- package/dist/skills/skill-loader.d.ts.map +0 -1
- package/dist/skills/skill-loader.js +0 -233
- package/dist/skills/skill-loader.js.map +0 -1
- package/dist/skills/skill-matcher.d.ts +0 -33
- package/dist/skills/skill-matcher.d.ts.map +0 -1
- package/dist/skills/skill-matcher.js +0 -190
- package/dist/skills/skill-matcher.js.map +0 -1
- package/dist/skills/skill-registry.d.ts +0 -117
- package/dist/skills/skill-registry.d.ts.map +0 -1
- package/dist/skills/skill-registry.js +0 -627
- package/dist/skills/skill-registry.js.map +0 -1
- package/dist/skills/types.d.ts +0 -131
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -12
- package/dist/skills/types.js.map +0 -1
- package/dist/utils/log-sanitizer.d.ts +0 -79
- package/dist/utils/log-sanitizer.d.ts.map +0 -1
- package/dist/utils/log-sanitizer.js +0 -215
- package/dist/utils/log-sanitizer.js.map +0 -1
- package/dist/validation/session-service.d.ts +0 -72
- package/dist/validation/session-service.d.ts.map +0 -1
- package/dist/validation/session-service.js +0 -298
- package/dist/validation/session-service.js.map +0 -1
- package/dist/validation/store.d.ts +0 -25
- package/dist/validation/store.d.ts.map +0 -1
- package/dist/validation/store.js +0 -200
- package/dist/validation/store.js.map +0 -1
- package/dist/validation/types.d.ts +0 -119
- package/dist/validation/types.d.ts.map +0 -1
- package/dist/validation/types.js +0 -57
- package/dist/validation/types.js.map +0 -1
- package/dist/wiki/wiki-turn-contract.d.ts +0 -19
- package/dist/wiki/wiki-turn-contract.d.ts.map +0 -1
- package/dist/wiki/wiki-turn-contract.js +0 -60
- package/dist/wiki/wiki-turn-contract.js.map +0 -1
- package/public/viewer/js/utils/ui-commands.js +0 -88
- package/public/viewer/src/utils/ui-commands.ts +0 -114
- package/scripts/attachment/extract-office-text.js +0 -179
- package/scripts/attachment/extract-pdf-text.swift +0 -36
- package/scripts/backfill-channel-keys.ts +0 -509
- package/scripts/crack-failure-digests.ts +0 -55
- package/scripts/generate-gateway-tools.ts +0 -131
- package/scripts/image/fb-overlay.py +0 -128
- package/scripts/image/ocr-image.py +0 -38
- package/scripts/postinstall.js +0 -161
- package/scripts/setup-ocr.js +0 -120
- package/templates/AGENTS.claude.md +0 -23
- package/templates/AGENTS.codex.md +0 -11
- package/templates/bmad/LICENSE +0 -28
- package/templates/bmad/architecture.md +0 -343
- package/templates/bmad/bmm-workflow-status.template.yaml +0 -66
- package/templates/bmad/prd.md +0 -198
- package/templates/bmad/product-brief.md +0 -149
- package/templates/bmad/sprint-status.template.yaml +0 -35
- package/templates/bmad/tech-spec.md +0 -151
- package/templates/entity-audit-fixtures/cross-language-aliases.json +0 -28
- package/templates/entity-audit-fixtures/gold-canonical-identities.json +0 -46
- package/templates/skills/danggeun-monitor.md +0 -88
- package/templates/skills/document-analyze.md +0 -63
- package/templates/skills/frontend-design.md +0 -71
- package/templates/skills/image-translate.md +0 -62
- package/templates/skills/multi-agent-collab.md +0 -145
- package/templates/skills/scheduling.md +0 -107
- package/templates/workspace/skill-forge/DESIGN.md +0 -115
- package/templates/workspace/skill-forge/agents/architect.ts +0 -295
- package/templates/workspace/skill-forge/agents/developer.ts +0 -364
- package/templates/workspace/skill-forge/agents/qa.ts +0 -313
- package/templates/workspace/skill-forge/claude-api.ts +0 -353
- package/templates/workspace/skill-forge/discord-ui.ts +0 -580
- package/templates/workspace/skill-forge/error-handler.ts +0 -354
- package/templates/workspace/skill-forge/mama-integration.ts +0 -357
- package/templates/workspace/skill-forge/orchestrator.ts +0 -495
- package/templates/workspace/skill-forge/output/generated-skills/skills/hello-world/README.md +0 -24
- package/templates/workspace/skill-forge/output/generated-skills/skills/hello-world/index.ts +0 -79
- package/templates/workspace/skill-forge/output/generated-skills/skills/hello-world/types.ts +0 -17
- package/templates/workspace/skill-forge/package.json +0 -21
- package/templates/workspace/skill-forge/state/session.json +0 -132
- package/templates/workspace/skill-forge/test-e2e.ts +0 -139
- package/templates/workspace/skill-forge/tsconfig.json +0 -20
- package/templates/workspace/skill-forge/types.ts +0 -159
|
@@ -1,879 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TaskLedger - the operator-owned native work-item ledger (M8 Task 0.1).
|
|
3
|
-
*
|
|
4
|
-
* Extends the shape of Kagemusha's proven task store with assignment,
|
|
5
|
-
* idempotency, temporal scheduling, durable generation, effect receipt, and
|
|
6
|
-
* workorder state. Implements the pre-existing `TaskSource` interface
|
|
7
|
-
* (operator-interfaces.ts) so the board projects one task model, not two.
|
|
8
|
-
*
|
|
9
|
-
* Owner conversations create rows through task_create. Reconcile runs update or
|
|
10
|
-
* reclassify existing rows through the task_update/task_reclassify gateway
|
|
11
|
-
* tools; the pipeline board slot is a projection of `list({order:
|
|
12
|
-
* 'deadline_priority'})`. The agent proposes task changes, while this ledger
|
|
13
|
-
* enforces revisions, temporal ownership, idempotency, and atomic receipts.
|
|
14
|
-
*
|
|
15
|
-
* Schema-extension note: CREATE TABLE IF NOT EXISTS is a no-op on existing
|
|
16
|
-
* tables. Any post-ship column addition needs an explicit ALTER TABLE guarded
|
|
17
|
-
* by a PRAGMA table_info check, added to runMigration().
|
|
18
|
-
*
|
|
19
|
-
* The db handle is SHARED with TriggerRegistry and owned by the caller
|
|
20
|
-
* (start.ts opens and closes it once) - deliberately no close() here.
|
|
21
|
-
*/
|
|
22
|
-
import type { OwnerActionContext } from './owner-action-effects.js';
|
|
23
|
-
import { type ChangeCoverage, type EffectQuery, type EffectRecord, type EffectTarget } from '../evidence/effects.js';
|
|
24
|
-
import type { SQLiteDatabase } from '../sqlite.js';
|
|
25
|
-
import type { OperatorTask, TaskSource } from './operator-interfaces.js';
|
|
26
|
-
import { type TemporalEffectReceipt, type TemporalEvidenceAttestation, type TemporalReconcileInput, type TemporalWorkContext } from './temporal-effect.js';
|
|
27
|
-
import { type TemporalState, type DueBucket } from './task-temporal.js';
|
|
28
|
-
import type { BindingCandidate, CandidateTaskSnapshot, ExistingExternalBindingSnapshot, ExternalCandidateSource, ExternalLifecycleCandidateSet, LifecycleCandidate, OwnerAttestedCandidateSummary, TaskHintLookup } from './external-lifecycle.js';
|
|
29
|
-
export declare const TASK_STATUSES: readonly ["pending", "in_progress", "review", "blocked", "done", "cancelled", "failed"];
|
|
30
|
-
export type TaskStatus = (typeof TASK_STATUSES)[number];
|
|
31
|
-
export declare const TASK_PRIORITIES: readonly ["high", "normal", "low"];
|
|
32
|
-
export type TaskPriority = (typeof TASK_PRIORITIES)[number];
|
|
33
|
-
export declare const TASK_KINDS: readonly ["owner", "system"];
|
|
34
|
-
export type TaskKind = (typeof TASK_KINDS)[number];
|
|
35
|
-
export declare const WORKORDER_KINDS: readonly ["board", "wiki", "memory-curation", "temporal", "self-check"];
|
|
36
|
-
export type WorkOrderKind = (typeof WORKORDER_KINDS)[number];
|
|
37
|
-
/**
|
|
38
|
-
* Ledger-managed payload key holding the delegation timestamp. Like `attempts`, it is never
|
|
39
|
-
* valid publisher input (validateWorkOrderPayload rejects unknown fields at enqueue) and it
|
|
40
|
-
* is stripped from a requeued replacement, which has delegated nothing.
|
|
41
|
-
*/
|
|
42
|
-
export declare const WORKORDER_DELEGATED_AT_KEY = "delegated_at";
|
|
43
|
-
/**
|
|
44
|
-
* Publisher-shaped view of a STORED workorder payload.
|
|
45
|
-
*
|
|
46
|
-
* Stored rows carry ledger-managed keys (`attempts`, `delegated_at`) that the enqueue
|
|
47
|
-
* validator rejects by design. Revalidating a stored row must therefore check only what a
|
|
48
|
-
* publisher could have supplied; validating the raw stored payload turned a
|
|
49
|
-
* delegated-and-verified board attempt into a permanently "unresolved" receipt state
|
|
50
|
-
* (live, 2026-09-09, workorder #4765). Enqueue input is still rejected loudly.
|
|
51
|
-
*/
|
|
52
|
-
export declare function publisherPayloadOfStoredWorkOrder(payload: Record<string, unknown>): Record<string, unknown>;
|
|
53
|
-
export declare const TEMPORAL_WORKORDER_MAX_ATTEMPTS = 3;
|
|
54
|
-
/** source_channel namespace for workorder rows: 'workorder:<workKind>'. */
|
|
55
|
-
export declare const WORKORDER_CHANNEL_PREFIX = "workorder:";
|
|
56
|
-
export interface EnqueueWorkOrderInput {
|
|
57
|
-
workKind: WorkOrderKind;
|
|
58
|
-
/** Per-occurrence idempotency key (schedule slot / event batch / manual ts). */
|
|
59
|
-
idempotencyKey: string;
|
|
60
|
-
/** Kind-specific payload; `attempts` is managed by the ledger (starts at 1). */
|
|
61
|
-
input: Record<string, unknown>;
|
|
62
|
-
priority?: TaskPriority;
|
|
63
|
-
}
|
|
64
|
-
export interface EnqueueTemporalGenerationInput {
|
|
65
|
-
generationKey: string;
|
|
66
|
-
taskId: number;
|
|
67
|
-
temporalEpoch: number;
|
|
68
|
-
occurrenceKey: string;
|
|
69
|
-
checkAt: number;
|
|
70
|
-
sourceChannel: string | null;
|
|
71
|
-
sourceEventId: string | null;
|
|
72
|
-
priority?: TaskPriority;
|
|
73
|
-
}
|
|
74
|
-
export interface WorkOrderRecord {
|
|
75
|
-
id: number;
|
|
76
|
-
workKind: WorkOrderKind;
|
|
77
|
-
status: TaskStatus;
|
|
78
|
-
priority: TaskPriority;
|
|
79
|
-
idempotencyKey: string;
|
|
80
|
-
/** Parsed payload; always carries `attempts` (>= 1). */
|
|
81
|
-
payload: Record<string, unknown> & {
|
|
82
|
-
attempts: number;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* When this attempt handed its remaining work to a native subagent, or null.
|
|
86
|
-
*
|
|
87
|
-
* `delegated` is a WORK-ORDER state, not a task status: the row stays `in_progress`
|
|
88
|
-
* (it IS still claimed and open) and this timestamp is what distinguishes an attempt
|
|
89
|
-
* waiting on a child from one still inside its own run. It deliberately does not enter
|
|
90
|
-
* the shared `status` CHECK, which owner tasks share - a new owner-visible status would
|
|
91
|
-
* ripple through every board projection to record something only the work-order consumer
|
|
92
|
-
* can act on.
|
|
93
|
-
*/
|
|
94
|
-
delegatedAt: number | null;
|
|
95
|
-
createdAt: number;
|
|
96
|
-
updatedAt: number;
|
|
97
|
-
}
|
|
98
|
-
/** Extended record: satisfies OperatorTask (numeric deadline) and carries the ISO original. */
|
|
99
|
-
export interface TaskRecord extends OperatorTask {
|
|
100
|
-
status: TaskStatus;
|
|
101
|
-
priority: TaskPriority;
|
|
102
|
-
kind: TaskKind;
|
|
103
|
-
/** ISO YYYY-MM-DD as stored; `deadline` (OperatorTask) is its UTC-midnight epoch ms. */
|
|
104
|
-
deadlineIso: string | null;
|
|
105
|
-
assignee: string | null;
|
|
106
|
-
sourceChannel: string | null;
|
|
107
|
-
sourceEventId: string | null;
|
|
108
|
-
latestEvent: string | null;
|
|
109
|
-
autoCreated: boolean;
|
|
110
|
-
confirmed: boolean;
|
|
111
|
-
dueAt: number | null;
|
|
112
|
-
deadlineOffsetMinutes: number | null;
|
|
113
|
-
revision: number;
|
|
114
|
-
temporalEpoch: number;
|
|
115
|
-
temporalReconciledOccurrenceKey: string | null;
|
|
116
|
-
lastTemporalCheckedAt: number | null;
|
|
117
|
-
nextTemporalCheckAt: number | null;
|
|
118
|
-
lastTemporalAttemptId: number | null;
|
|
119
|
-
temporalState: TemporalState;
|
|
120
|
-
reviewStartedAt: number | null;
|
|
121
|
-
reviewAnchorEventId: string | null;
|
|
122
|
-
reviewAnchorSourceChannel?: string | null;
|
|
123
|
-
/**
|
|
124
|
-
* The concrete, finite condition under which this row is finished. What makes a
|
|
125
|
-
* row a TASK rather than a record; null on rows that predate the policy and on
|
|
126
|
-
* internal/system seeding.
|
|
127
|
-
*/
|
|
128
|
-
completionCriteria: string | null;
|
|
129
|
-
/** Semantic terminal reason, set by task_reclassify; null while open. */
|
|
130
|
-
resolutionKind: TaskResolutionKind | null;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Why a row reached its terminal state. Without this the agent cannot tell
|
|
134
|
-
* completed work from an item that was never a task, which is how connector
|
|
135
|
-
* observations, principles and open questions accumulated as owner rows.
|
|
136
|
-
*/
|
|
137
|
-
export declare const TASK_RESOLUTION_KINDS: readonly ["completed_evidence", "completed_no_issue", "non_task_record", "non_task_memory"];
|
|
138
|
-
export type TaskResolutionKind = (typeof TASK_RESOLUTION_KINDS)[number];
|
|
139
|
-
/** The recorrection an agent may apply to an existing owner row. */
|
|
140
|
-
export declare const TASK_RECLASSIFY_DISPOSITIONS: readonly ["completed_evidence", "completed_no_issue", "non_task_record", "non_task_memory", "reopen"];
|
|
141
|
-
export type TaskReclassifyDisposition = (typeof TASK_RECLASSIFY_DISPOSITIONS)[number];
|
|
142
|
-
/** Upper bound on the preserved reason, matching latest_event's practical size. */
|
|
143
|
-
export declare const TASK_RECLASSIFY_REASON_MAX_LENGTH = 2000;
|
|
144
|
-
export declare const TASK_COMPLETION_CRITERIA_MAX_LENGTH = 500;
|
|
145
|
-
export interface ReclassifyTaskInput {
|
|
146
|
-
disposition: TaskReclassifyDisposition;
|
|
147
|
-
/** Non-empty, bounded; preserved as the row's latest_event. */
|
|
148
|
-
reason: string;
|
|
149
|
-
/** Always required: a reclassification is a lifecycle judgment. */
|
|
150
|
-
expected_revision: number;
|
|
151
|
-
}
|
|
152
|
-
export interface TaskLedgerOptions {
|
|
153
|
-
now?: () => number;
|
|
154
|
-
timeZone?: string;
|
|
155
|
-
onOwnerTaskChangeCommitted?: (generation: string) => void;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Who is making a change, supplied by the host rather than by the caller's arguments.
|
|
159
|
-
*
|
|
160
|
-
* Kept out of CreateTaskInput/UpdateTaskInput on purpose: those are agent-authored, and an
|
|
161
|
-
* agent that can write its own run id into the effect ledger can attribute its work to
|
|
162
|
-
* someone else's run. Same reason the temporal path takes its identity from trusted runtime
|
|
163
|
-
* context instead of from the tool call.
|
|
164
|
-
*/
|
|
165
|
-
export interface ChangeOrigin {
|
|
166
|
-
/** The model run behind this write, or null when the host itself made it. */
|
|
167
|
-
runId?: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Host-issued work-order attempt (any kind). This is deliberately separate
|
|
170
|
-
* from agent-authored update input: it lets the ledger verify that a carried
|
|
171
|
-
* attempt is still current for direct and nested gateway execution alike, and
|
|
172
|
-
* keeps receipted external binding/lifecycle decisions candidate-scoped. A
|
|
173
|
-
* scheduler's reclassificationCandidates page is a bounded-read SELECTION
|
|
174
|
-
* hint, not the owner's authorization: an ordinary owner decision on a row
|
|
175
|
-
* discovered outside that page is still the owner's decision.
|
|
176
|
-
*/
|
|
177
|
-
workOrderAttemptId?: number;
|
|
178
|
-
/** Direct task_update ABI guard; internal receipted lifecycle primitives validate separately. */
|
|
179
|
-
requiresExpectedRevision?: boolean;
|
|
180
|
-
/**
|
|
181
|
-
* WHY an id-less change happened (S2 closed set). Ignored when
|
|
182
|
-
* causeEventIds carry - ids always mean 'event'. Callers state it;
|
|
183
|
-
* the ledger's only fallback is 'owner_message' (the human-adjacent
|
|
184
|
-
* bucket - a wrong 'clock' fabricates a schedule that never fired).
|
|
185
|
-
*/
|
|
186
|
-
causeKind?: import('../evidence/effects.js').UnattributedCauseKind;
|
|
187
|
-
/**
|
|
188
|
-
* The events this write responds to.
|
|
189
|
-
*
|
|
190
|
-
* A SET, because a cause is one: a reconcile run is handed a channel's delta batch and
|
|
191
|
-
* everything it changes rests on that batch. The system knows the batch before the run
|
|
192
|
-
* starts, so it does not have to ask the agent to restate it - which is what a single
|
|
193
|
-
* agent-supplied id was, and why 375 of 381 unattributed changes were updates.
|
|
194
|
-
*/
|
|
195
|
-
causeEventIds?: readonly string[];
|
|
196
|
-
/**
|
|
197
|
-
* Owner-event task reclassification must rest on real causal events: every
|
|
198
|
-
* id in causeEventIds has to be carried by a durable owner-event inbox batch,
|
|
199
|
-
* so the effect receipt's provenance is host-attested rather than invented
|
|
200
|
-
* from connector text. Which channel the batch arrived on is host selection
|
|
201
|
-
* context, not the owner's authorization; visibility of the target row is the
|
|
202
|
-
* authenticated gateway's boundary.
|
|
203
|
-
*/
|
|
204
|
-
reclassificationCauseBound?: boolean;
|
|
205
|
-
/** Internal marker: a duplicate-source task_create is using update semantics. */
|
|
206
|
-
taskCreateUpsert?: boolean;
|
|
207
|
-
/** Host-verified raw submission/delivery evidence. Never populated from model timestamps. */
|
|
208
|
-
verifiedReviewEvidence?: {
|
|
209
|
-
contextPacketId: string;
|
|
210
|
-
contextPacketSha256: string;
|
|
211
|
-
eventIndexId: string;
|
|
212
|
-
sourceTimestampMs: number;
|
|
213
|
-
sourceChannel: string;
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
export interface ExternalTaskBinding {
|
|
217
|
-
id: number;
|
|
218
|
-
revision: number;
|
|
219
|
-
taskId: number;
|
|
220
|
-
connector: 'kagemusha';
|
|
221
|
-
sourceType: 'kanban_card';
|
|
222
|
-
externalSourceId: string;
|
|
223
|
-
lastObservationSeq: number;
|
|
224
|
-
/** Board attempt that bound it, or null when a verified owner run did. */
|
|
225
|
-
createdByAttemptId: number | null;
|
|
226
|
-
createdByRunId: string | null;
|
|
227
|
-
createdByOwnerScope: string | null;
|
|
228
|
-
createdAt: number;
|
|
229
|
-
}
|
|
230
|
-
export interface ExternalBindingReceipt {
|
|
231
|
-
kind: 'binding';
|
|
232
|
-
candidateId: string;
|
|
233
|
-
/** Null when the decision was settled by a verified owner run (Task B2). */
|
|
234
|
-
workOrderAttemptId: number | null;
|
|
235
|
-
originRunId: string | null;
|
|
236
|
-
originOwnerScope: string | null;
|
|
237
|
-
taskId: number;
|
|
238
|
-
outcome: 'bound' | 'declined' | 'superseded';
|
|
239
|
-
reason: string;
|
|
240
|
-
bindingId?: number;
|
|
241
|
-
}
|
|
242
|
-
export interface ExternalLifecycleReceipt {
|
|
243
|
-
kind: 'lifecycle';
|
|
244
|
-
candidateId: string;
|
|
245
|
-
/** Null when the decision was settled by a verified owner run (Task B2). */
|
|
246
|
-
workOrderAttemptId: number | null;
|
|
247
|
-
originRunId: string | null;
|
|
248
|
-
originOwnerScope: string | null;
|
|
249
|
-
taskId: number;
|
|
250
|
-
outcome: 'applied' | 'retained' | 'superseded';
|
|
251
|
-
reason: string;
|
|
252
|
-
taskRevisionBefore: number;
|
|
253
|
-
taskRevisionAfter: number;
|
|
254
|
-
}
|
|
255
|
-
export type TemporalGenerationDisposition = 'active' | 'resolved' | 'final_no_update' | 'deferred' | 'exhausted' | 'superseded';
|
|
256
|
-
export interface TemporalGenerationRecord {
|
|
257
|
-
generationKey: string;
|
|
258
|
-
taskId: number;
|
|
259
|
-
temporalEpoch: number;
|
|
260
|
-
occurrenceKey: string;
|
|
261
|
-
checkAt: number;
|
|
262
|
-
disposition: TemporalGenerationDisposition;
|
|
263
|
-
lastWorkOrderId: number | null;
|
|
264
|
-
reason: string | null;
|
|
265
|
-
createdAt: number;
|
|
266
|
-
updatedAt: number;
|
|
267
|
-
}
|
|
268
|
-
export type { TemporalWorkContext } from './temporal-effect.js';
|
|
269
|
-
export interface TemporalGenerationEnqueueResult {
|
|
270
|
-
generation: TemporalGenerationRecord;
|
|
271
|
-
workOrder: WorkOrderRecord;
|
|
272
|
-
created: boolean;
|
|
273
|
-
}
|
|
274
|
-
/** Authoritative terminal-arbitration view for one temporal attempt. */
|
|
275
|
-
export interface TemporalAttemptState {
|
|
276
|
-
workOrder: WorkOrderRecord;
|
|
277
|
-
generation: TemporalGenerationRecord;
|
|
278
|
-
receipt: TemporalEffectReceipt | null;
|
|
279
|
-
}
|
|
280
|
-
export type TemporalWorkFailureResult = {
|
|
281
|
-
disposition: 'requeued';
|
|
282
|
-
replacement: WorkOrderRecord;
|
|
283
|
-
attempt: number;
|
|
284
|
-
maxAttempts: number;
|
|
285
|
-
} | {
|
|
286
|
-
disposition: 'exhausted';
|
|
287
|
-
attempt: number;
|
|
288
|
-
maxAttempts: number;
|
|
289
|
-
retrySuppressed?: boolean;
|
|
290
|
-
} | {
|
|
291
|
-
disposition: 'superseded';
|
|
292
|
-
attempt: number;
|
|
293
|
-
maxAttempts: number;
|
|
294
|
-
};
|
|
295
|
-
/** Durable receipt view for one candidate-bearing board attempt. */
|
|
296
|
-
export type BoardCandidateAttemptState = {
|
|
297
|
-
disposition: 'none';
|
|
298
|
-
} | {
|
|
299
|
-
disposition: 'complete';
|
|
300
|
-
outcomes: readonly string[];
|
|
301
|
-
} | {
|
|
302
|
-
disposition: 'partial';
|
|
303
|
-
missingCandidateIds: readonly string[];
|
|
304
|
-
} | {
|
|
305
|
-
disposition: 'zero';
|
|
306
|
-
};
|
|
307
|
-
export interface CreateTaskInput {
|
|
308
|
-
title: string;
|
|
309
|
-
status?: TaskStatus;
|
|
310
|
-
priority?: TaskPriority;
|
|
311
|
-
assignee?: string;
|
|
312
|
-
/** ISO YYYY-MM-DD */
|
|
313
|
-
deadline?: string;
|
|
314
|
-
/** RFC 3339 with an explicit Z or numeric offset. */
|
|
315
|
-
due_at?: string;
|
|
316
|
-
/** channelKey: "<connector>:<channelId>" */
|
|
317
|
-
source_channel?: string;
|
|
318
|
-
/** Idempotency key from the connector event; duplicate (channel, event) UPSERTS. */
|
|
319
|
-
source_event_id?: string;
|
|
320
|
-
latest_event?: string;
|
|
321
|
-
confirmed?: boolean;
|
|
322
|
-
/** Required only when a Board workorder uses a duplicate source key as an update. */
|
|
323
|
-
expected_revision?: number;
|
|
324
|
-
/**
|
|
325
|
-
* The concrete, finite condition under which this row is finished. The PUBLIC
|
|
326
|
-
* task_create boundary requires it (gateway-tool-executor); the ledger keeps it
|
|
327
|
-
* optional so internal/system seeding stays backward compatible.
|
|
328
|
-
*/
|
|
329
|
-
completion_criteria?: string;
|
|
330
|
-
}
|
|
331
|
-
export interface UpdateTaskInput {
|
|
332
|
-
status?: TaskStatus;
|
|
333
|
-
priority?: TaskPriority;
|
|
334
|
-
assignee?: string | null;
|
|
335
|
-
deadline?: string | null;
|
|
336
|
-
/** RFC 3339 with an explicit Z or numeric offset. */
|
|
337
|
-
due_at?: string | null;
|
|
338
|
-
latest_event?: string;
|
|
339
|
-
confirmed?: boolean;
|
|
340
|
-
title?: string;
|
|
341
|
-
expected_revision?: number;
|
|
342
|
-
/** Concrete finite exit condition; lets legacy rows become qualified tasks. */
|
|
343
|
-
completion_criteria?: string | null;
|
|
344
|
-
/**
|
|
345
|
-
* HOST-INTERNAL: written only by reclassify(). The public task_update surface
|
|
346
|
-
* rejects it (TASK_UPDATE_PUBLIC_FIELDS), so an agent cannot stamp a semantic
|
|
347
|
-
* terminal reason without going through the reclassification rules.
|
|
348
|
-
*/
|
|
349
|
-
resolution_kind?: TaskResolutionKind | null;
|
|
350
|
-
}
|
|
351
|
-
export interface ListTasksFilter {
|
|
352
|
-
status?: TaskStatus;
|
|
353
|
-
/** False narrows the result to active owner work; explicit status still wins. */
|
|
354
|
-
includeTerminal?: boolean;
|
|
355
|
-
channel?: string;
|
|
356
|
-
search?: string;
|
|
357
|
-
/** Exact assignee match (progressive overview/items filter). */
|
|
358
|
-
assignee?: string;
|
|
359
|
-
/** Exact priority match (progressive overview/items filter). */
|
|
360
|
-
priority?: TaskPriority;
|
|
361
|
-
/** Derived temporal partition. date_due belongs to upcoming. */
|
|
362
|
-
dueBucket?: DueBucket;
|
|
363
|
-
/** Internal snapshot instant used to keep derived membership stable across cursor pages. */
|
|
364
|
-
temporalAsOfMs?: number;
|
|
365
|
-
/** Exact due_at strictly before this epoch ms. Date-only-deadline rows (no due_at)
|
|
366
|
-
* are NOT matched: an exact-time filter never invents a clock for a date-only row. */
|
|
367
|
-
dueBeforeMs?: number;
|
|
368
|
-
/** Exact due_at at or after this epoch ms. Same date-only exclusion as dueBeforeMs. */
|
|
369
|
-
dueAfterMs?: number;
|
|
370
|
-
/** updated_at at or after this epoch ms. */
|
|
371
|
-
updatedSinceMs?: number;
|
|
372
|
-
/** updated_at strictly before this epoch ms. */
|
|
373
|
-
updatedBeforeMs?: number;
|
|
374
|
-
/** Progressive migration filter for rows created before completion criteria existed. */
|
|
375
|
-
qualification?: 'qualified' | 'legacy_unqualified';
|
|
376
|
-
limit?: number;
|
|
377
|
-
/** 'deadline_priority' = deadline asc NULLS LAST, then high>normal>low, then id. */
|
|
378
|
-
order?: 'deadline_priority' | 'updated';
|
|
379
|
-
}
|
|
380
|
-
export interface ListTasksPageFilter extends ListTasksFilter {
|
|
381
|
-
/** Opaque keyset cursor from a previous page's nextCursor. */
|
|
382
|
-
cursor?: string;
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* One page plus the numbers a caller needs to PROVE it read everything.
|
|
386
|
-
*
|
|
387
|
-
* `list()` alone cannot support a whole-situation claim: it clamps to 200 and
|
|
388
|
-
* defaults to 50, so a caller reading a 150-row board saw a third of it and could
|
|
389
|
-
* not tell. Accumulating pages until nextCursor is null, with the unique ids
|
|
390
|
-
* collected equal to total, is that proof.
|
|
391
|
-
*/
|
|
392
|
-
export interface ListTasksPage {
|
|
393
|
-
tasks: TaskRecord[];
|
|
394
|
-
/** Rows matching the filter, ignoring limit and cursor. */
|
|
395
|
-
total: number;
|
|
396
|
-
returned: number;
|
|
397
|
-
/** Cursor for the next page, or null when this page ends the set. */
|
|
398
|
-
nextCursor: string | null;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* Aggregate counts over the SAME owner predicate a page would return, plus the
|
|
402
|
-
* due buckets derived from the identical temporal classification `items` uses,
|
|
403
|
-
* under one captured `now`. Every facet partitions `total`, so a caller can add
|
|
404
|
-
* up any facet and check it against the number it drew the page from.
|
|
405
|
-
*/
|
|
406
|
-
export interface OverviewResult {
|
|
407
|
-
total: number;
|
|
408
|
-
/** Snapshot instant (ms) captured once for every bucket in this result. */
|
|
409
|
-
observedAt: number;
|
|
410
|
-
/** Conservative change signature; a cursor pinned to it is rejected after any owner write. */
|
|
411
|
-
readVersion: string;
|
|
412
|
-
status: Record<string, number>;
|
|
413
|
-
priority: Record<string, number>;
|
|
414
|
-
/** An unassigned source_channel is reported as a real null `channel`, not the string "null". */
|
|
415
|
-
channels: Array<{
|
|
416
|
-
channel: string | null;
|
|
417
|
-
count: number;
|
|
418
|
-
}>;
|
|
419
|
-
/** null assignee (unassigned) is reported with assignee: null. */
|
|
420
|
-
assignees: Array<{
|
|
421
|
-
assignee: string | null;
|
|
422
|
-
count: number;
|
|
423
|
-
}>;
|
|
424
|
-
/**
|
|
425
|
-
* Partition of `total` by temporal disposition under `observedAt`:
|
|
426
|
-
* missing = no due_at and no deadline; overdue/upcoming from the same
|
|
427
|
-
* deriveTemporalState `items` uses (date_due counts as upcoming); closed =
|
|
428
|
-
* done/cancelled. The four sum to `total`.
|
|
429
|
-
*/
|
|
430
|
-
due: {
|
|
431
|
-
missing: number;
|
|
432
|
-
overdue: number;
|
|
433
|
-
upcoming: number;
|
|
434
|
-
closed: number;
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
export declare class TaskLedger implements TaskSource {
|
|
438
|
-
private db;
|
|
439
|
-
private now;
|
|
440
|
-
private timeZone;
|
|
441
|
-
private onOwnerTaskChangeCommitted?;
|
|
442
|
-
private pendingOwnerTaskGeneration;
|
|
443
|
-
private ownerTaskNotificationScheduled;
|
|
444
|
-
constructor(db: SQLiteDatabase, options?: TaskLedgerOptions);
|
|
445
|
-
private toRecord;
|
|
446
|
-
private toRecordAt;
|
|
447
|
-
temporalStateAt(task: TaskRecord, observedAt: number): TemporalState;
|
|
448
|
-
private runMigration;
|
|
449
|
-
/** Full current column set - single source for CREATE and the rebuild copy. */
|
|
450
|
-
private static readonly TABLE_COLUMNS_SQL;
|
|
451
|
-
private static readonly INDEXES_SQL;
|
|
452
|
-
/**
|
|
453
|
-
* Stage-2 in-place upgrade for pre-existing tables. Guards are re-checked
|
|
454
|
-
* INSIDE `BEGIN IMMEDIATE`: two connections construct TaskLedger (boot +
|
|
455
|
-
* lazy API handler) and both run this - the loser must see the winner's
|
|
456
|
-
* finished work, not rebuild an already-migrated table.
|
|
457
|
-
*/
|
|
458
|
-
private upgradeSchema;
|
|
459
|
-
/** TaskSource conformance: open items in canonical board order. */
|
|
460
|
-
getTasks(): OperatorTask[];
|
|
461
|
-
countOpenUnconfirmed(): number;
|
|
462
|
-
list(filter?: ListTasksFilter): TaskRecord[];
|
|
463
|
-
private temporalAsOf;
|
|
464
|
-
/** Shared filter predicate. Owner surface only - system workorder rows never appear in
|
|
465
|
-
* board/REST/gateway listings (Stage-2 kind filter; workorders have dedicated readers). */
|
|
466
|
-
private buildListPredicate;
|
|
467
|
-
/** ORDER BY for both list() and listPage(); the trailing id makes it a TOTAL order,
|
|
468
|
-
* which is what lets a keyset cursor resume without skipping or repeating a row.
|
|
469
|
-
* LIMIT applies AFTER ordering, so a bounded read still returns the true top-N. */
|
|
470
|
-
private static orderSql;
|
|
471
|
-
private static cursorFor;
|
|
472
|
-
/**
|
|
473
|
-
* One page of the same ordered set, with the totals that make completeness provable.
|
|
474
|
-
*
|
|
475
|
-
* Keyset, not OFFSET: an offset page silently skips or repeats rows when the set
|
|
476
|
-
* changes between pages, which would leave a "whole situation" claim resting on a
|
|
477
|
-
* read that quietly lost items.
|
|
478
|
-
*/
|
|
479
|
-
listPage(filter?: ListTasksPageFilter): ListTasksPage;
|
|
480
|
-
/**
|
|
481
|
-
* One `listPage`, with the read generation and observation instant captured
|
|
482
|
-
* in the SAME synchronous call so total/rows/version cannot straddle a write
|
|
483
|
-
* from this process. The progressive `items` view pins its cursor to this
|
|
484
|
-
* readVersion and restarts if a later page observes a different one.
|
|
485
|
-
*/
|
|
486
|
-
itemsPage(filter?: ListTasksPageFilter): ListTasksPage & {
|
|
487
|
-
readVersion: string;
|
|
488
|
-
observedAt: number;
|
|
489
|
-
};
|
|
490
|
-
/** The ledger's clock (injected in tests); progressive views stamp observedAt with it. */
|
|
491
|
-
nowMs(): number;
|
|
492
|
-
/**
|
|
493
|
-
* Run a read-only body inside a single DEFERRED transaction so every statement
|
|
494
|
-
* shares one snapshot. better-sqlite3 nests via SAVEPOINT, so this is safe even
|
|
495
|
-
* if a caller is already inside a transaction.
|
|
496
|
-
*/
|
|
497
|
-
private readSnapshot;
|
|
498
|
-
/**
|
|
499
|
-
* A conservative change signature for the whole owner board, derived from
|
|
500
|
-
* existing columns - no snapshot table. COUNT catches inserts/deletes,
|
|
501
|
-
* SUM(revision) catches every owner update (each bumps revision), MAX(id)
|
|
502
|
-
* catches inserts, MAX(updated_at) is a coarse tie-breaker. It is NOT an
|
|
503
|
-
* immutable snapshot id: it only lets a paged read reject its own cursor once
|
|
504
|
-
* ANY owner row has changed, so a "whole board" claim never spans a write.
|
|
505
|
-
* System workorder churn is deliberately excluded (kind='owner').
|
|
506
|
-
*/
|
|
507
|
-
readGeneration(): string;
|
|
508
|
-
private notifyOwnerTaskCommit;
|
|
509
|
-
private flushOwnerTaskNotification;
|
|
510
|
-
/**
|
|
511
|
-
* Aggregate counts over the same owner predicate `listPage` filters by. Facets
|
|
512
|
-
* come from SQL GROUP BY (each partitions total); due buckets are computed in
|
|
513
|
-
* one JS pass over minimal rows using the SAME deriveTemporalState `items`
|
|
514
|
-
* uses, so an overview bucket and an item's temporal_state never disagree.
|
|
515
|
-
* readGeneration is captured in the same synchronous call as the counts.
|
|
516
|
-
*/
|
|
517
|
-
overview(filter?: ListTasksFilter): OverviewResult;
|
|
518
|
-
private overviewInSnapshot;
|
|
519
|
-
/** Internal bounded page for temporal reconciliation; excludes rows that can never be candidates. */
|
|
520
|
-
listTemporalScanPage(input: {
|
|
521
|
-
limit: number;
|
|
522
|
-
afterId: number;
|
|
523
|
-
}): TaskRecord[];
|
|
524
|
-
/** Owner rows only - system workorder rows are invisible to external reads. */
|
|
525
|
-
getById(id: number): TaskRecord | null;
|
|
526
|
-
/** Internal fetch without the kind filter (guards and workorder paths). */
|
|
527
|
-
private getRowById;
|
|
528
|
-
/** Returns one active, explicitly receipted external identity for an owner task. */
|
|
529
|
-
getExternalBinding(taskId: number): ExternalTaskBinding | null;
|
|
530
|
-
/**
|
|
531
|
-
* Host-only lookup material for immutable external-lifecycle candidates.
|
|
532
|
-
* The caller supplies exact event/source ids obtained from the connector index;
|
|
533
|
-
* no connector prose is read through this ledger surface.
|
|
534
|
-
*/
|
|
535
|
-
getExternalLifecycleCandidateSupport(eventIds: readonly string[], externalSourceIds: readonly string[]): {
|
|
536
|
-
taskHints: TaskHintLookup;
|
|
537
|
-
tasksById: ReadonlyMap<number, CandidateTaskSnapshot>;
|
|
538
|
-
bindings: readonly ExistingExternalBindingSnapshot[];
|
|
539
|
-
};
|
|
540
|
-
getReceiptedExternalCandidateIds(candidateIds: readonly string[]): ReadonlySet<string>;
|
|
541
|
-
/**
|
|
542
|
-
* Recover a candidate only from the payload of the exact currently claimed
|
|
543
|
-
* board attempt. Revalidate the serialized payload: database bytes are not
|
|
544
|
-
* a capability merely because they originated in a previous host process.
|
|
545
|
-
*/
|
|
546
|
-
loadBoardCandidate(attemptId: number, candidateId: string, kind: 'binding' | 'lifecycle'): BindingCandidate | LifecycleCandidate;
|
|
547
|
-
/**
|
|
548
|
-
* Read the complete, immutable candidate set for a board attempt against
|
|
549
|
-
* its durable decision receipts. This deliberately works for stale claims
|
|
550
|
-
* as well as live in-progress attempts: recovery must never infer effects
|
|
551
|
-
* from a runner result when the database can answer exactly.
|
|
552
|
-
*/
|
|
553
|
-
inspectBoardCandidateAttempt(attemptId: number): BoardCandidateAttemptState;
|
|
554
|
-
/**
|
|
555
|
-
* Resolve one candidate decision's authority (Task B2).
|
|
556
|
-
*
|
|
557
|
-
* A plain attempt id is the legacy Board wrapper. A discriminated source is
|
|
558
|
-
* either that same Board path or a verified owner run whose host-attested
|
|
559
|
-
* snapshot must match the caller's scope, run and envelope exactly. Both
|
|
560
|
-
* return the SAME decision inputs; the receipt records which one settled it.
|
|
561
|
-
*/
|
|
562
|
-
private resolveExternalCandidateAuthority;
|
|
563
|
-
/** Same contract as loadBoardCandidate, for either authority source. */
|
|
564
|
-
loadExternalCandidate(source: number | ExternalCandidateSource, candidateId: string, kind: 'binding' | 'lifecycle'): BindingCandidate | LifecycleCandidate;
|
|
565
|
-
/**
|
|
566
|
-
* Persist host-built candidate snapshots under a verified owner run.
|
|
567
|
-
*
|
|
568
|
-
* Every snapshot is re-validated as host-built (exact shape, Kagemusha
|
|
569
|
-
* mapping, fixed evidence summary, content-derived id) before it is stored;
|
|
570
|
-
* model-authored bytes never enter this table. Rows are immutable. The same
|
|
571
|
-
* run attesting the same candidate again with identical bytes is a no-op;
|
|
572
|
-
* different bytes under the same id are a conflict, not a second row.
|
|
573
|
-
*/
|
|
574
|
-
attestOwnerActionCandidates(context: OwnerActionContext, candidates: Pick<ExternalLifecycleCandidateSet, 'bindingCandidates' | 'lifecycleCandidates'>): {
|
|
575
|
-
attested: number;
|
|
576
|
-
alreadyAttested: number;
|
|
577
|
-
};
|
|
578
|
-
/** Bounded, intent-free listing of what one owner run attested. */
|
|
579
|
-
listOwnerActionCandidates(context: OwnerActionContext): OwnerAttestedCandidateSummary[];
|
|
580
|
-
/**
|
|
581
|
-
* Receipt view of one owner run's attested candidates, in the same shape as
|
|
582
|
-
* inspectBoardCandidateAttempt so recovery can treat both sources alike.
|
|
583
|
-
*/
|
|
584
|
-
inspectOwnerActionCandidateRun(context: OwnerActionContext): BoardCandidateAttemptState;
|
|
585
|
-
loadOwnerActionCandidate(context: OwnerActionContext, candidateId: string, kind: 'binding' | 'lifecycle'): BindingCandidate | LifecycleCandidate;
|
|
586
|
-
/**
|
|
587
|
-
* Recover a candidate only from the attestation the exact owner run made.
|
|
588
|
-
* Stored bytes are revalidated: sha256 over the canonical JSON, exact shape,
|
|
589
|
-
* and the content-derived candidate id must all still agree.
|
|
590
|
-
*/
|
|
591
|
-
private loadOwnerAttestedCandidate;
|
|
592
|
-
private candidateReceiptDisposition;
|
|
593
|
-
applyExternalBindingDecision(source: number | ExternalCandidateSource, input: {
|
|
594
|
-
candidate_id: string;
|
|
595
|
-
decision: 'bind' | 'decline';
|
|
596
|
-
reason: string;
|
|
597
|
-
expected_revision: number;
|
|
598
|
-
}, origin: ChangeOrigin): ExternalBindingReceipt;
|
|
599
|
-
applyExternalLifecycleDecision(source: number | ExternalCandidateSource, input: {
|
|
600
|
-
candidate_id: string;
|
|
601
|
-
decision: 'apply' | 'retain';
|
|
602
|
-
reason: string;
|
|
603
|
-
expected_revision: number;
|
|
604
|
-
}, origin: ChangeOrigin): ExternalLifecycleReceipt;
|
|
605
|
-
getExternalCandidateReceipt(candidateId: string): ExternalBindingReceipt | ExternalLifecycleReceipt | null;
|
|
606
|
-
private externalBindingFromRow;
|
|
607
|
-
private assertBindingReplayMatches;
|
|
608
|
-
private insertBindingReceipt;
|
|
609
|
-
private assertLifecycleReplayMatches;
|
|
610
|
-
private insertLifecycleReceipt;
|
|
611
|
-
/**
|
|
612
|
-
* Create a task. Idempotent under at-least-once delivery: a duplicate
|
|
613
|
-
* (source_channel, source_event_id) UPSERTS - the existing row gets the new
|
|
614
|
-
* latest_event (and title stays) instead of a near-duplicate row appearing.
|
|
615
|
-
*/
|
|
616
|
-
create(input: CreateTaskInput, origin?: ChangeOrigin): TaskRecord;
|
|
617
|
-
/**
|
|
618
|
-
* Write the effect row for a task change.
|
|
619
|
-
*
|
|
620
|
-
* Called from inside the same transaction as the write it describes. The cause is the
|
|
621
|
-
* event the caller already recorded on the row - the tool has always accepted it, and
|
|
622
|
-
* 178 of the 179 owner tasks that carry one resolve to a real indexed event, so this is
|
|
623
|
-
* attribution that already exists rather than a new burden on the agent.
|
|
624
|
-
*
|
|
625
|
-
* When there is no cause the change is still recorded, marked unattributed. That is the
|
|
626
|
-
* honest reading of `task_update`, which has never had a cause field at all: the system
|
|
627
|
-
* has been changing owner work items without recording why, and the ledger's job is to
|
|
628
|
-
* show how often, not to pretend otherwise or to start refusing writes.
|
|
629
|
-
*/
|
|
630
|
-
private recordTaskChange;
|
|
631
|
-
update(id: number, patch: UpdateTaskInput, origin?: ChangeOrigin): TaskRecord;
|
|
632
|
-
/**
|
|
633
|
-
* Recorrect an existing owner row with a NAMED disposition.
|
|
634
|
-
*
|
|
635
|
-
* Records and tasks are separate. Without a semantic terminal reason the agent
|
|
636
|
-
* could not distinguish completed work from an item that was never a task, so
|
|
637
|
-
* connector observations, principles, lessons and open questions accumulated as
|
|
638
|
-
* owner rows and could only be "closed" as if they had been done.
|
|
639
|
-
*
|
|
640
|
-
* Every path requires the exact current revision, a non-empty bounded reason
|
|
641
|
-
* preserved as `latest_event`, an OWNER row, and the same workorder-attempt
|
|
642
|
-
* currency and causal-provenance checks as task_update (TG-03/TG-04/TG-06) -
|
|
643
|
-
* a terminal attempt of any kind cannot mutate a row, and an owner-event
|
|
644
|
-
* decision cannot rest on a fabricated cause. Scheduler hint pages and the
|
|
645
|
-
* causal batch's channel select what the host READS; they do not narrow the
|
|
646
|
-
* authenticated owner's decisions. The whole transition, its
|
|
647
|
-
* `resolution_kind` and its effect receipt commit as ONE transaction.
|
|
648
|
-
*/
|
|
649
|
-
reclassify(id: number, input: ReclassifyTaskInput, origin?: ChangeOrigin): TaskRecord;
|
|
650
|
-
private assertTaskReclassificationAuthorized;
|
|
651
|
-
/**
|
|
652
|
-
* A retained attempt context outlives its workorder: a late direct or nested
|
|
653
|
-
* tool call can still carry it after the row reached a terminal status. Any
|
|
654
|
-
* lifecycle judgment made under a carried attempt requires that attempt to be
|
|
655
|
-
* the claimed, in-progress one, whatever its work kind.
|
|
656
|
-
*/
|
|
657
|
-
private assertWorkOrderAttemptActive;
|
|
658
|
-
private findCausalEventsWithoutInboxBatch;
|
|
659
|
-
private buildReclassifyPatch;
|
|
660
|
-
/** True when the row carries a deadline/due_at that has already passed. */
|
|
661
|
-
private isDeadlineInThePast;
|
|
662
|
-
/**
|
|
663
|
-
* The one mutation primitive for owner-task state. Callers own the outer
|
|
664
|
-
* transaction so lifecycle receipts, effects, generation ownership, and the
|
|
665
|
-
* row revision can commit or roll back as one unit.
|
|
666
|
-
*/
|
|
667
|
-
private transitionTaskInTransaction;
|
|
668
|
-
private validateTaskUpdatePatch;
|
|
669
|
-
private transitionOwnerTaskRowInTransaction;
|
|
670
|
-
private assertCandidateTaskMutationAllowed;
|
|
671
|
-
private supersedeTemporalGenerationsInTransaction;
|
|
672
|
-
private supersedeAllActiveTemporalGenerationsInTransaction;
|
|
673
|
-
/**
|
|
674
|
-
* Stable hash over ordered OWNER rows - the Phase-2 verifier's ledger
|
|
675
|
-
* snapshot. kind filter keeps concurrent system enqueues from shaking the
|
|
676
|
-
* hash mid-bracket (evidence-only signal, but noise is noise).
|
|
677
|
-
*/
|
|
678
|
-
payloadHash(): string;
|
|
679
|
-
/**
|
|
680
|
-
* Enqueue a workorder. Idempotent per occurrence key: an open (pending or
|
|
681
|
-
* in_progress) keyed row dedups. Completed owner-event occurrences and
|
|
682
|
-
* scheduled promotion slots also dedup; other terminal rows free the key
|
|
683
|
-
* and a fresh row is inserted.
|
|
684
|
-
*/
|
|
685
|
-
enqueueWorkOrder(order: EnqueueWorkOrderInput): WorkOrderRecord;
|
|
686
|
-
/** Read a durable workorder acceptance by its host-issued occurrence key. */
|
|
687
|
-
findWorkOrderByOccurrence(workKind: Exclude<WorkOrderKind, 'temporal'>, idempotencyKey: string): WorkOrderRecord | null;
|
|
688
|
-
/**
|
|
689
|
-
* The newest COMPLETED full-board-class run - the baseline the scheduled full-board producer
|
|
690
|
-
* gates against (board-delta-gate.ts). A `delta` run counts too: it publishes the same three
|
|
691
|
-
* judgment slots from the same accumulated state, so excluding it would leave the previous
|
|
692
|
-
* full run as the baseline forever and re-trigger a delta on every tick.
|
|
693
|
-
*
|
|
694
|
-
* Only `status='done'` full/delta rows count: an open or failed run has not
|
|
695
|
-
* discharged its interval. `watermark` is null when the run captured none
|
|
696
|
-
* (an owner-forced refresh), which makes the next scheduled tick enqueue
|
|
697
|
-
* rather than skip.
|
|
698
|
-
*/
|
|
699
|
-
lastCompletedBoardFullRun(): {
|
|
700
|
-
watermark: string | null;
|
|
701
|
-
createdAt: number;
|
|
702
|
-
completedAt: number;
|
|
703
|
-
} | null;
|
|
704
|
-
/**
|
|
705
|
-
* The newest COMPLETED wiki run - the baseline the wiki daily-continuity
|
|
706
|
-
* planner gates against (wiki-continuity.ts). Only `status='done'` rows count.
|
|
707
|
-
*
|
|
708
|
-
* `ownerDate`/`sourceWatermark` are read straight from the completed run's
|
|
709
|
-
* payload and are null for a LEGACY row (one enqueued before the continuity
|
|
710
|
-
* fields existed): the planner treats a null-field baseline as "no baseline"
|
|
711
|
-
* and re-runs from the owner day's start rather than fabricating a boundary.
|
|
712
|
-
*/
|
|
713
|
-
lastCompletedWikiRun(): {
|
|
714
|
-
ownerDate: string | null;
|
|
715
|
-
sourceWatermark: string | null;
|
|
716
|
-
coveredThroughMs: number | null;
|
|
717
|
-
completedAt: number;
|
|
718
|
-
} | null;
|
|
719
|
-
/**
|
|
720
|
-
* Board-input term for the NATIVE owner task ledger - the pipeline slot's
|
|
721
|
-
* projection source. Reuses payloadHash(): it already digests exactly the
|
|
722
|
-
* owner-row fields the pipeline slot renders, so a status or assignee edit
|
|
723
|
-
* moves the term even within the same millisecond as the row's creation,
|
|
724
|
-
* which a MAX(updated_at) marker would miss. System workorder rows are
|
|
725
|
-
* excluded by that same query - they are pipeline plumbing, not board truth.
|
|
726
|
-
*/
|
|
727
|
-
ownerTaskTerm(): string;
|
|
728
|
-
private insertWorkOrder;
|
|
729
|
-
enqueueTemporalGeneration(input: EnqueueTemporalGenerationInput): TemporalGenerationEnqueueResult;
|
|
730
|
-
getTemporalGeneration(generationKey: string): TemporalGenerationRecord | null;
|
|
731
|
-
loadTemporalWorkContext(attemptId: number): TemporalWorkContext;
|
|
732
|
-
assertTemporalWorkContextActive(suppliedContext: TemporalWorkContext): TemporalWorkContext;
|
|
733
|
-
/**
|
|
734
|
-
* What this system changed, and what it changed it for.
|
|
735
|
-
*
|
|
736
|
-
* Reads live beside the writes because the effect ledger shares the tasks database on
|
|
737
|
-
* purpose. Exposed here rather than by handing out the connection: the ledger owns both
|
|
738
|
-
* halves, so a change and its account of itself cannot drift apart.
|
|
739
|
-
*/
|
|
740
|
-
listChanges(query?: EffectQuery): EffectRecord[];
|
|
741
|
-
/** Owner rows created since `sinceMs` (the ledger stagnation probe's numerator). */
|
|
742
|
-
countOwnerTasksCreatedSince(sinceMs: number): number;
|
|
743
|
-
/** Receipt for a run the host stopped on its token budget; target is the run id. */
|
|
744
|
-
recordBudgetStop(input: {
|
|
745
|
-
modelRunId: string | null;
|
|
746
|
-
budgetTokens: number;
|
|
747
|
-
runTokenBudget: number;
|
|
748
|
-
}): void;
|
|
749
|
-
/** Receipt for a repair request filed by the self-check turn; target is the issue id. */
|
|
750
|
-
recordRepairRequest(input: {
|
|
751
|
-
issueId: string;
|
|
752
|
-
repairId: string;
|
|
753
|
-
runId: string | null;
|
|
754
|
-
causeEventIds: readonly string[] | undefined;
|
|
755
|
-
}): void;
|
|
756
|
-
/** Receipt for a deliverable file the owner can receive; target is the content hash. */
|
|
757
|
-
recordFileExport(input: {
|
|
758
|
-
sha256: string;
|
|
759
|
-
runId: string | null;
|
|
760
|
-
causeEventIds: readonly string[] | undefined;
|
|
761
|
-
channelId?: string | null;
|
|
762
|
-
payload: unknown;
|
|
763
|
-
}): void;
|
|
764
|
-
/**
|
|
765
|
-
* Receipt for a memory write made inside a bounded run. Without it a crash between
|
|
766
|
-
* mama_save and the batch ACK re-runs the batch and saves the decision twice; with it
|
|
767
|
-
* the crash-recovery resolver (effectsCausedBy) sees the write and ACKs without a run.
|
|
768
|
-
* Unattributed when the run had no cause: the count of those stays visible.
|
|
769
|
-
*/
|
|
770
|
-
recordMemoryWrite(input: {
|
|
771
|
-
memoryRef: string;
|
|
772
|
-
runId: string | null;
|
|
773
|
-
causeEventIds: readonly string[] | undefined;
|
|
774
|
-
channelId?: string | null;
|
|
775
|
-
payload: unknown;
|
|
776
|
-
}): void;
|
|
777
|
-
/**
|
|
778
|
-
* Effect kinds this system recorded with ANY of the given events as cause.
|
|
779
|
-
* The owner-event crash-recovery receipt reads it: a ledger write that named
|
|
780
|
-
* the batch's events is a durable outcome even when the run died afterwards.
|
|
781
|
-
*/
|
|
782
|
-
effectsCausedBy(eventIds: readonly string[], sinceMs?: number): string[];
|
|
783
|
-
/** Of what this system changed, how much rests on evidence. */
|
|
784
|
-
changeCoverage(sinceMs?: number, targetType?: EffectTarget): ChangeCoverage;
|
|
785
|
-
getTemporalEffect(attemptId: number): TemporalEffectReceipt | null;
|
|
786
|
-
/**
|
|
787
|
-
* Read and validate the durable state that decides a temporal attempt's
|
|
788
|
-
* terminal outcome. This intentionally does not require an active attempt:
|
|
789
|
-
* consumers must be able to arbitrate committed, superseded, and exhausted
|
|
790
|
-
* attempts after runner/auditor failures and daemon restarts.
|
|
791
|
-
*/
|
|
792
|
-
inspectTemporalAttempt(attemptId: number): TemporalAttemptState;
|
|
793
|
-
applyTemporalEffect(suppliedContext: TemporalWorkContext, input: TemporalReconcileInput, evidence: TemporalEvidenceAttestation, now?: number): TemporalEffectReceipt;
|
|
794
|
-
requeueTemporalWorkOrder(attemptId: number, reason: string): WorkOrderRecord;
|
|
795
|
-
exhaustTemporalWorkOrder(attemptId: number, reason: string): void;
|
|
796
|
-
failTemporalWorkOrder(attemptId: number, reason: string, allowRetry?: boolean): TemporalWorkFailureResult;
|
|
797
|
-
private repairClosedTemporalOwnershipInTransaction;
|
|
798
|
-
/** Repair pre-fix databases where a terminal owner still has active temporal ownership. */
|
|
799
|
-
repairClosedTemporalGenerations(): number;
|
|
800
|
-
/** Control-plane pause: cancel open attempts but keep generations resumable. */
|
|
801
|
-
pauseActiveTemporalWork(reason: string): number;
|
|
802
|
-
/** Resume paused active generations without spending another model attempt. */
|
|
803
|
-
resumePausedTemporalWork(): WorkOrderRecord[];
|
|
804
|
-
private requeueTemporalWorkOrderInTransaction;
|
|
805
|
-
private exhaustTemporalWorkOrderInTransaction;
|
|
806
|
-
supersedeTemporalGenerations(taskId: number, currentEpoch: number, excludeGenerationKey?: string): void;
|
|
807
|
-
private validateTemporalGenerationInput;
|
|
808
|
-
/**
|
|
809
|
-
* Workorder payloads carry only bounded references to owner-source identifiers.
|
|
810
|
-
* Owner rows created by older releases may contain empty or arbitrarily long
|
|
811
|
-
* connector identifiers; hashing preserves exact identity without making one
|
|
812
|
-
* legacy row able to abort temporal boot or inflate every retry payload.
|
|
813
|
-
*/
|
|
814
|
-
private temporalSourceIdentifierRef;
|
|
815
|
-
private validateTemporalEffectInput;
|
|
816
|
-
private assertTemporalContextMatches;
|
|
817
|
-
private loadTemporalWorkContextInternal;
|
|
818
|
-
private assertTemporalPayloadMatches;
|
|
819
|
-
private requirePayloadString;
|
|
820
|
-
private requireNullablePayloadString;
|
|
821
|
-
private requirePayloadInteger;
|
|
822
|
-
private assertTemporalReason;
|
|
823
|
-
private temporalAuditText;
|
|
824
|
-
/**
|
|
825
|
-
* Claim the next pending workorder: priority high>normal>low, then id ASC
|
|
826
|
-
* (plan D2/E2 - CASE mapping, never lexicographic on the TEXT enum).
|
|
827
|
-
* pending -> in_progress. Single serial consumer; transaction for atomicity.
|
|
828
|
-
*/
|
|
829
|
-
claimNextWorkOrder(): WorkOrderRecord | null;
|
|
830
|
-
/**
|
|
831
|
-
* Atomic fail-and-requeue (PR bot round): the failure mark and the
|
|
832
|
-
* replacement row commit together - a crash between the two would lose
|
|
833
|
-
* the retry (the old row terminal, the new one never inserted). The
|
|
834
|
-
* replacement can only be inserted AFTER the old row leaves the partial
|
|
835
|
-
* unique index, hence one transaction, not two calls.
|
|
836
|
-
*/
|
|
837
|
-
requeueWorkOrder(wo: WorkOrderRecord, reason: string): WorkOrderRecord;
|
|
838
|
-
/**
|
|
839
|
-
* Record that a claimed attempt is waiting on a native subagent.
|
|
840
|
-
*
|
|
841
|
-
* The status stays `in_progress`, which is the truth: the attempt is open and its
|
|
842
|
-
* idempotency slot is still held, so nothing re-enqueues the same occurrence underneath
|
|
843
|
-
* the child. Only the durable verification (or the consumer's timeout) moves it on.
|
|
844
|
-
*/
|
|
845
|
-
markWorkOrderDelegated(id: number, delegatedAt: number): void;
|
|
846
|
-
completeWorkOrder(id: number): void;
|
|
847
|
-
failWorkOrder(id: number, reason: string): void;
|
|
848
|
-
countPendingWorkOrders(): number;
|
|
849
|
-
countOpenWorkOrders(kind?: WorkOrderKind): number;
|
|
850
|
-
findTemporalGenerationKeys(generationKeys: readonly string[]): Set<string>;
|
|
851
|
-
/** In-progress system rows at boot = crash artifacts (single serial consumer). */
|
|
852
|
-
listStaleClaims(): WorkOrderRecord[];
|
|
853
|
-
/**
|
|
854
|
-
* Boot cleanup (plan D3 + review N4): open system rows -> cancelled. A
|
|
855
|
-
* rollback is not a failure - excluded from failed counters/alarms; caller
|
|
856
|
-
* logs ONE summary line with the returned count. `onlyKinds` scopes the
|
|
857
|
-
* cancellation.
|
|
858
|
-
*/
|
|
859
|
-
cancelOpenWorkOrders(reason: string, onlyKinds?: WorkOrderKind[]): number;
|
|
860
|
-
/** Per-kind last run and failure counts of the system lanes (operator UI and tests). */
|
|
861
|
-
workOrderStats(): Array<{
|
|
862
|
-
workKind: WorkOrderKind;
|
|
863
|
-
lastRunAt: number | null;
|
|
864
|
-
lastStatus: TaskStatus | null;
|
|
865
|
-
failedCount: number;
|
|
866
|
-
lastFailureReason: string | null;
|
|
867
|
-
}>;
|
|
868
|
-
getWorkOrderById(id: number): WorkOrderRecord | null;
|
|
869
|
-
private transitionWorkOrder;
|
|
870
|
-
private rowToWorkOrder;
|
|
871
|
-
/** contract_no_update: silence as a verifiable judgment, scoped to one reconcile run. */
|
|
872
|
-
recordNoUpdate(scope: string, reason: string): {
|
|
873
|
-
id: number;
|
|
874
|
-
};
|
|
875
|
-
private insertNoUpdateNote;
|
|
876
|
-
/** Max no-update note id, optionally scoped - the verifier's note snapshot. */
|
|
877
|
-
maxNoUpdateId(scope?: string): number;
|
|
878
|
-
}
|
|
879
|
-
//# sourceMappingURL=task-ledger.d.ts.map
|