@jungjaehoon/mama-os 0.53.0 → 0.57.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 +64 -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 +278 -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/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/report-actions.d.ts +22 -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 +55 -0
- package/dist/api/viewer-server.d.ts.map +1 -0
- package/dist/api/viewer-server.js +933 -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 +109 -0
- package/dist/api/work-actions.d.ts.map +1 -0
- package/dist/api/work-actions.js +987 -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 +620 -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 +227 -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 +9 -1
- 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 +4 -13
- package/dist/operator/board-read-views.js.map +1 -1
- package/dist/operator/board-slot-instructions.d.ts +10 -11
- package/dist/operator/board-slot-instructions.d.ts.map +1 -1
- package/dist/operator/board-slot-instructions.js +22 -21
- 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 +179 -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 +182 -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 +80 -0
- package/dist/runtime/native-session.d.ts.map +1 -0
- package/dist/runtime/native-session.js +284 -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 +78 -0
- package/dist/runtime/owner-runtime.d.ts.map +1 -0
- package/dist/runtime/owner-runtime.js +255 -0
- package/dist/runtime/owner-runtime.js.map +1 -0
- package/dist/runtime/owner-system-prompt.d.ts +17 -0
- package/dist/runtime/owner-system-prompt.d.ts.map +1 -0
- package/dist/runtime/owner-system-prompt.js +122 -0
- package/dist/runtime/owner-system-prompt.js.map +1 -0
- package/dist/runtime/recent-owner-exchanges.d.ts +10 -0
- package/dist/runtime/recent-owner-exchanges.d.ts.map +1 -0
- package/dist/runtime/recent-owner-exchanges.js +53 -0
- package/dist/runtime/recent-owner-exchanges.js.map +1 -0
- package/dist/runtime/report-prompts.d.ts +14 -0
- package/dist/runtime/report-prompts.d.ts.map +1 -0
- package/dist/runtime/report-prompts.js +69 -0
- package/dist/runtime/report-prompts.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 +97 -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 +85 -0
- package/dist/runtime/stimulus-delivery.d.ts.map +1 -0
- package/dist/runtime/stimulus-delivery.js +590 -0
- package/dist/runtime/stimulus-delivery.js.map +1 -0
- package/dist/runtime/timezone.d.ts +13 -0
- package/dist/runtime/timezone.d.ts.map +1 -0
- package/dist/runtime/timezone.js +119 -0
- package/dist/runtime/timezone.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 -467
- 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
|
@@ -0,0 +1,987 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runTaskListView = void 0;
|
|
4
|
+
exports.workListTitleTextScore = workListTitleTextScore;
|
|
5
|
+
exports.readOpenWorkCandidates = readOpenWorkCandidates;
|
|
6
|
+
exports.runWorkListView = runWorkListView;
|
|
7
|
+
exports.workListActionRegistrations = workListActionRegistrations;
|
|
8
|
+
exports.assertReplayEventDatetime = assertReplayEventDatetime;
|
|
9
|
+
exports.minimalWorkActionRegistrations = minimalWorkActionRegistrations;
|
|
10
|
+
const node_crypto_1 = require("node:crypto");
|
|
11
|
+
const timezone_js_1 = require("../runtime/timezone.js");
|
|
12
|
+
const catalog_1 = require("@jungjaehoon/mama-core/api/catalog");
|
|
13
|
+
const knowledge_1 = require("@jungjaehoon/mama-core/knowledge");
|
|
14
|
+
const WORK_LIST_DEFAULT_LIMIT = 25;
|
|
15
|
+
const WORK_LIST_MAX_LIMIT = 50;
|
|
16
|
+
const WORK_LIST_MAX_DETAIL_IDS = 4;
|
|
17
|
+
const WORK_LIST_DEFAULT_TEXT_LIMIT = 1_000;
|
|
18
|
+
const WORK_LIST_MAX_TEXT_LIMIT = 2_000;
|
|
19
|
+
const WORK_LIST_STATUSES = [
|
|
20
|
+
'pending',
|
|
21
|
+
'in_progress',
|
|
22
|
+
'review',
|
|
23
|
+
'blocked',
|
|
24
|
+
'done',
|
|
25
|
+
'cancelled',
|
|
26
|
+
];
|
|
27
|
+
const WORK_LIST_PRIORITIES = ['high', 'normal', 'low'];
|
|
28
|
+
function workListObject(value) {
|
|
29
|
+
if (value === undefined)
|
|
30
|
+
return {};
|
|
31
|
+
if (value === null || typeof value !== 'object' || Array.isArray(value)) {
|
|
32
|
+
throw new Error('work.list input must be an object');
|
|
33
|
+
}
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
function workListString(value, field) {
|
|
37
|
+
if (value === undefined)
|
|
38
|
+
return undefined;
|
|
39
|
+
if (typeof value !== 'string')
|
|
40
|
+
throw new Error(`work.list ${field} must be a string`);
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
function workListStatuses(value) {
|
|
44
|
+
if (value === undefined)
|
|
45
|
+
return undefined;
|
|
46
|
+
const values = Array.isArray(value) ? value : [value];
|
|
47
|
+
if (values.length === 0) {
|
|
48
|
+
throw new Error('work.list status must contain at least one status');
|
|
49
|
+
}
|
|
50
|
+
const statuses = values.map((candidate) => {
|
|
51
|
+
if (typeof candidate !== 'string') {
|
|
52
|
+
throw new Error('work.list status must be a string or an array of strings');
|
|
53
|
+
}
|
|
54
|
+
if (!WORK_LIST_STATUSES.includes(candidate)) {
|
|
55
|
+
throw new Error(`work.list status must be one of ${WORK_LIST_STATUSES.join('|')}`);
|
|
56
|
+
}
|
|
57
|
+
return candidate;
|
|
58
|
+
});
|
|
59
|
+
return [...new Set(statuses)];
|
|
60
|
+
}
|
|
61
|
+
function workListInteger(value, field, fallback, minimum, maximum) {
|
|
62
|
+
if (value === undefined)
|
|
63
|
+
return fallback;
|
|
64
|
+
if (!Number.isSafeInteger(value) || value < minimum || value > maximum) {
|
|
65
|
+
throw new Error(`work.list ${field} must be an integer from ${minimum} to ${maximum}`);
|
|
66
|
+
}
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
function workListNonNegativeInteger(value, field, fallback) {
|
|
70
|
+
if (value === undefined)
|
|
71
|
+
return fallback;
|
|
72
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
73
|
+
throw new Error(`work.list ${field} must be a non-negative integer`);
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
function workListAsOf(value) {
|
|
78
|
+
if (value === undefined)
|
|
79
|
+
return undefined;
|
|
80
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
81
|
+
throw new Error('work.list asOf must be a non-negative epoch-millisecond integer');
|
|
82
|
+
}
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
function workListFilter(input) {
|
|
86
|
+
const status = workListStatuses(input.status);
|
|
87
|
+
return {
|
|
88
|
+
...(status === undefined ? {} : { status }),
|
|
89
|
+
...(input.stage === undefined ? {} : { stage: workListString(input.stage, 'stage') }),
|
|
90
|
+
...(input.project === undefined ? {} : { project: workListString(input.project, 'project') }),
|
|
91
|
+
...(input.text === undefined ? {} : { text: workListString(input.text, 'text') }),
|
|
92
|
+
...(input.asOf === undefined ? {} : { asOf: workListAsOf(input.asOf) }),
|
|
93
|
+
...(input.changedSince === undefined ? {} : { changedSince: workListAsOf(input.changedSince) }),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function workListValueObject(value) {
|
|
97
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
98
|
+
? value
|
|
99
|
+
: {};
|
|
100
|
+
}
|
|
101
|
+
function workListText(value) {
|
|
102
|
+
return typeof value === 'string' ? value : null;
|
|
103
|
+
}
|
|
104
|
+
function workListNormalizedText(value) {
|
|
105
|
+
return value.normalize('NFKC').toLowerCase();
|
|
106
|
+
}
|
|
107
|
+
function workListTokens(value) {
|
|
108
|
+
const normalized = workListNormalizedText(value)
|
|
109
|
+
.replace(/([\p{L}])([\p{N}])/gu, '$1 $2')
|
|
110
|
+
.replace(/([\p{N}])([\p{L}])/gu, '$1 $2');
|
|
111
|
+
return normalized.split(/[^\p{L}\p{N}]+/gu).filter((token) => token.length > 0);
|
|
112
|
+
}
|
|
113
|
+
function workListSearchFields(item) {
|
|
114
|
+
const values = workListValueObject(item.values);
|
|
115
|
+
return {
|
|
116
|
+
title: workListText(values.title) ?? '',
|
|
117
|
+
description: workListText(values.description) ?? '',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function workListLexicalScore(query, fields) {
|
|
121
|
+
const queryTokens = [...new Set(workListTokens(query))];
|
|
122
|
+
if (queryTokens.length === 0) {
|
|
123
|
+
throw new Error('work.list text must contain searchable text');
|
|
124
|
+
}
|
|
125
|
+
const fieldText = `${fields.title}\n${fields.description}`;
|
|
126
|
+
const fieldTokens = new Set(workListTokens(fieldText));
|
|
127
|
+
const overlap = queryTokens.filter((token) => fieldTokens.has(token)).length / queryTokens.length;
|
|
128
|
+
const compactQuery = workListNormalizedText(query).replace(/[^\p{L}\p{N}]+/gu, '');
|
|
129
|
+
const exactSubstringBonus = compactQuery.length > 0 &&
|
|
130
|
+
[fields.title, fields.description].some((field) => workListNormalizedText(field)
|
|
131
|
+
.replace(/[^\p{L}\p{N}]+/gu, '')
|
|
132
|
+
.includes(compactQuery))
|
|
133
|
+
? 0.2
|
|
134
|
+
: 0;
|
|
135
|
+
return Math.min(1, overlap * 0.8 + exactSubstringBonus);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The title-only form of the same lexical rank used by work.list text search. A delta whose text
|
|
139
|
+
* has no searchable tokens (only attachments or symbols) overlaps no title.
|
|
140
|
+
*/
|
|
141
|
+
function workListTitleTextScore(query, title) {
|
|
142
|
+
if (workListTokens(query).length === 0)
|
|
143
|
+
return 0;
|
|
144
|
+
return workListLexicalScore(query, { title, description: '' });
|
|
145
|
+
}
|
|
146
|
+
function workListStatus(item) {
|
|
147
|
+
const value = workListValueObject(item.values).status;
|
|
148
|
+
if (typeof value === 'string' && WORK_LIST_STATUSES.includes(value)) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
if (value !== undefined && value !== null) {
|
|
152
|
+
throw new Error(`work.list encountered a status outside the contract: ${JSON.stringify(value)}`);
|
|
153
|
+
}
|
|
154
|
+
return item.withdrawn ? 'cancelled' : 'pending';
|
|
155
|
+
}
|
|
156
|
+
function workListPriority(item) {
|
|
157
|
+
const value = workListText(workListValueObject(item.values).priority);
|
|
158
|
+
return value !== null &&
|
|
159
|
+
WORK_LIST_PRIORITIES.includes(value)
|
|
160
|
+
? value
|
|
161
|
+
: 'normal';
|
|
162
|
+
}
|
|
163
|
+
function workListEventTime(value) {
|
|
164
|
+
if (typeof value === 'number' && Number.isSafeInteger(value) && value >= 0)
|
|
165
|
+
return value;
|
|
166
|
+
if (typeof value === 'string' && Number.isFinite(Date.parse(value)))
|
|
167
|
+
return Date.parse(value);
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
function workListIso(value) {
|
|
171
|
+
const ms = workListEventTime(value);
|
|
172
|
+
return ms === null ? null : new Date(ms).toISOString();
|
|
173
|
+
}
|
|
174
|
+
function workListDueState(item, now, timeZone) {
|
|
175
|
+
const status = workListStatus(item);
|
|
176
|
+
if (status === 'done' || status === 'cancelled')
|
|
177
|
+
return 'closed';
|
|
178
|
+
const values = workListValueObject(item.values);
|
|
179
|
+
const exact = workListEventTime(values.dueAt ?? values.due_at);
|
|
180
|
+
if (exact !== null)
|
|
181
|
+
return exact > now ? 'exact_upcoming' : 'exact_overdue';
|
|
182
|
+
const deadline = workListText(values.deadline ?? values.due_date);
|
|
183
|
+
if (deadline === null || !/^\d{4}-\d{2}-\d{2}$/.test(deadline))
|
|
184
|
+
return 'unscheduled';
|
|
185
|
+
const deadlineMs = (0, timezone_js_1.epochAtLocalDateTime)(`${deadline}T00:00:00`, timeZone);
|
|
186
|
+
if (!Number.isFinite(deadlineMs))
|
|
187
|
+
return 'unscheduled';
|
|
188
|
+
const today = (0, timezone_js_1.localDateKey)(now, timeZone);
|
|
189
|
+
if (deadline > today)
|
|
190
|
+
return 'date_upcoming';
|
|
191
|
+
if (deadline === today)
|
|
192
|
+
return 'date_due';
|
|
193
|
+
return 'date_overdue';
|
|
194
|
+
}
|
|
195
|
+
function workListCompact(item, now, score, timeZone) {
|
|
196
|
+
const values = workListValueObject(item.values);
|
|
197
|
+
const status = workListStatus(item);
|
|
198
|
+
const assignee = workListText(values.assignee ?? values.assigneeText ?? values.assignee_text);
|
|
199
|
+
const deadline = workListText(values.deadline ?? values.due_date);
|
|
200
|
+
const sourceChannel = workListText(values.sourceChannel ?? values.source_channel);
|
|
201
|
+
const sourceEventId = workListText(values.sourceEventId ?? values.source_event_id);
|
|
202
|
+
const latestEvent = workListText(values.latestEvent ?? values.latest_event);
|
|
203
|
+
const compact = {
|
|
204
|
+
id: item.rowId,
|
|
205
|
+
commitmentId: item.commitmentId,
|
|
206
|
+
revision: item.revision,
|
|
207
|
+
title: workListText(values.title),
|
|
208
|
+
status,
|
|
209
|
+
stage: workListText(values.stage),
|
|
210
|
+
project: workListText(values.project),
|
|
211
|
+
temporal_state: workListDueState(item, now, timeZone),
|
|
212
|
+
createdAt: item.createdAt,
|
|
213
|
+
updatedAt: item.updatedAt,
|
|
214
|
+
};
|
|
215
|
+
const priority = workListPriority(item);
|
|
216
|
+
if (priority !== 'normal')
|
|
217
|
+
compact.priority = priority;
|
|
218
|
+
const optional = [
|
|
219
|
+
['assignee', assignee],
|
|
220
|
+
['deadline', deadline],
|
|
221
|
+
['due_at', workListIso(values.dueAt ?? values.due_at)],
|
|
222
|
+
[
|
|
223
|
+
'deadline_offset_minutes',
|
|
224
|
+
typeof values.deadlineOffsetMinutes === 'number'
|
|
225
|
+
? values.deadlineOffsetMinutes
|
|
226
|
+
: typeof values.deadline_offset_minutes === 'number'
|
|
227
|
+
? values.deadline_offset_minutes
|
|
228
|
+
: null,
|
|
229
|
+
],
|
|
230
|
+
['sourceChannel', sourceChannel],
|
|
231
|
+
['sourceEventId', sourceEventId],
|
|
232
|
+
['completion_criteria', workListText(values.completionCriteria ?? values.completion_criteria)],
|
|
233
|
+
['resolution_kind', workListText(values.resolutionKind ?? values.resolution_kind)],
|
|
234
|
+
['latest_event', latestEvent?.replace(/\s+/g, ' ').trim() ?? null],
|
|
235
|
+
['lastEventTime', values.lastEventTime ?? values.last_event_time],
|
|
236
|
+
];
|
|
237
|
+
for (const [key, value] of optional) {
|
|
238
|
+
if (value !== null && value !== undefined)
|
|
239
|
+
compact[key] = value;
|
|
240
|
+
}
|
|
241
|
+
if (values.autoCreated === true || values.auto_created === true)
|
|
242
|
+
compact.auto_created = true;
|
|
243
|
+
if (values.confirmed === true)
|
|
244
|
+
compact.confirmed = true;
|
|
245
|
+
if (item.withdrawn)
|
|
246
|
+
compact.withdrawn = true;
|
|
247
|
+
if (score !== undefined)
|
|
248
|
+
compact.score = score;
|
|
249
|
+
return compact;
|
|
250
|
+
}
|
|
251
|
+
function workListMatches(item, filter) {
|
|
252
|
+
const values = workListValueObject(item.values);
|
|
253
|
+
if (filter.status !== undefined && !filter.status.includes(workListStatus(item)))
|
|
254
|
+
return false;
|
|
255
|
+
if (filter.stage !== undefined && workListText(values.stage) !== filter.stage)
|
|
256
|
+
return false;
|
|
257
|
+
if (filter.project !== undefined && workListText(values.project) !== filter.project)
|
|
258
|
+
return false;
|
|
259
|
+
if (filter.changedSince !== undefined && item.updatedAt < filter.changedSince)
|
|
260
|
+
return false;
|
|
261
|
+
return true;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Rank by the owner's words, not by substring: token overlap after NFKC and
|
|
265
|
+
* splitting on spaces, underscores, punctuation and letter/number boundaries,
|
|
266
|
+
* plus a bonus when the query is contained with separators removed. An item
|
|
267
|
+
* sharing no token is not a match. Embeddings were measured and dropped: on
|
|
268
|
+
* the live ledger e5 gave every title ~0.8 cosine (no separation, a
|
|
269
|
+
* transliterated Korean name ranked a different item first) and the first
|
|
270
|
+
* query embedded all items for 80 s.
|
|
271
|
+
*/
|
|
272
|
+
function workListRankedItems(items, filter) {
|
|
273
|
+
const filtered = items.filter((item) => workListMatches(item, filter));
|
|
274
|
+
if (filter.text === undefined)
|
|
275
|
+
return filtered.map((item) => ({ item }));
|
|
276
|
+
const query = filter.text;
|
|
277
|
+
return filtered
|
|
278
|
+
.map((item) => ({ item, score: workListLexicalScore(query, workListSearchFields(item)) }))
|
|
279
|
+
.filter((candidate) => candidate.score > 0)
|
|
280
|
+
.sort((left, right) => right.score - left.score || right.item.updatedAt - left.item.updatedAt);
|
|
281
|
+
}
|
|
282
|
+
function workListFingerprint(filter) {
|
|
283
|
+
return (0, node_crypto_1.createHash)('sha256')
|
|
284
|
+
.update(JSON.stringify([
|
|
285
|
+
filter.status === undefined ? null : [...filter.status].sort(),
|
|
286
|
+
filter.stage ?? null,
|
|
287
|
+
filter.project ?? null,
|
|
288
|
+
filter.text ?? null,
|
|
289
|
+
filter.asOf ?? null,
|
|
290
|
+
filter.changedSince ?? null,
|
|
291
|
+
]))
|
|
292
|
+
.digest('base64url')
|
|
293
|
+
.slice(0, 22);
|
|
294
|
+
}
|
|
295
|
+
function workListReadVersion(items) {
|
|
296
|
+
const state = items.map((item) => ({
|
|
297
|
+
commitmentId: item.commitmentId,
|
|
298
|
+
rowId: item.rowId,
|
|
299
|
+
revision: item.revision,
|
|
300
|
+
latestJudgmentRef: item.latestJudgmentRef,
|
|
301
|
+
values: item.values,
|
|
302
|
+
withdrawn: item.withdrawn,
|
|
303
|
+
createdAt: item.createdAt,
|
|
304
|
+
updatedAt: item.updatedAt,
|
|
305
|
+
}));
|
|
306
|
+
return (0, node_crypto_1.createHash)('sha256').update(JSON.stringify(state)).digest('base64url');
|
|
307
|
+
}
|
|
308
|
+
function workListReadSnapshot(ctx, filter) {
|
|
309
|
+
const items = [];
|
|
310
|
+
const incompleteReasons = [];
|
|
311
|
+
let cursor;
|
|
312
|
+
for (;;) {
|
|
313
|
+
const query = {
|
|
314
|
+
history: 'current',
|
|
315
|
+
limit: 100,
|
|
316
|
+
...(filter.asOf === undefined ? {} : { asOf: filter.asOf }),
|
|
317
|
+
...(cursor === undefined ? {} : { cursor }),
|
|
318
|
+
};
|
|
319
|
+
const page = ctx.knowledge.readWork(query, ctx.access);
|
|
320
|
+
items.push(...page.items);
|
|
321
|
+
incompleteReasons.push(...page.coverage.reasons.filter((reason) => reason !== 'more commitments follow this page'));
|
|
322
|
+
if (incompleteReasons.length > 0) {
|
|
323
|
+
throw new Error(`work.list read is incomplete: ${incompleteReasons.join('; ')}`);
|
|
324
|
+
}
|
|
325
|
+
if (page.nextCursor === null) {
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
cursor = page.nextCursor;
|
|
329
|
+
}
|
|
330
|
+
const observedAt = ctx.now?.() ?? Date.now();
|
|
331
|
+
if (!Number.isSafeInteger(observedAt) || observedAt < 0) {
|
|
332
|
+
throw new Error('work.list observed time must be a non-negative epoch-millisecond integer');
|
|
333
|
+
}
|
|
334
|
+
return { items: Object.freeze(items), readVersion: workListReadVersion(items), observedAt };
|
|
335
|
+
}
|
|
336
|
+
function readOpenWorkCandidates(ctx) {
|
|
337
|
+
const snapshot = workListReadSnapshot(ctx, {});
|
|
338
|
+
return snapshot.items.flatMap((item) => {
|
|
339
|
+
if (['done', 'cancelled'].includes(workListStatus(item)))
|
|
340
|
+
return [];
|
|
341
|
+
const values = workListValueObject(item.values);
|
|
342
|
+
const title = workListText(values.title);
|
|
343
|
+
if (!title)
|
|
344
|
+
return [];
|
|
345
|
+
return [
|
|
346
|
+
{
|
|
347
|
+
commitmentId: item.commitmentId,
|
|
348
|
+
title,
|
|
349
|
+
stage: workListText(values.stage) ?? 'Unstaged',
|
|
350
|
+
assignee: workListText(values.assignee ?? values.assigneeText ?? values.assignee_text) ?? '',
|
|
351
|
+
sourceChannel: workListText(values.sourceChannel ?? values.source_channel ?? values.channel) ?? '',
|
|
352
|
+
updatedAt: typeof item.updatedAt === 'number' ? item.updatedAt : Date.parse(item.updatedAt),
|
|
353
|
+
},
|
|
354
|
+
];
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
function encodeWorkListCursor(cursor) {
|
|
358
|
+
return Buffer.from(JSON.stringify(cursor), 'utf8').toString('base64url');
|
|
359
|
+
}
|
|
360
|
+
/** The filter a cursor carries; malformed cursors are rejected by decodeWorkListCursor. */
|
|
361
|
+
function workListCursorQuery(value) {
|
|
362
|
+
if (typeof value !== 'string' || value === '' || value.length > 4_096)
|
|
363
|
+
return undefined;
|
|
364
|
+
let parsed;
|
|
365
|
+
try {
|
|
366
|
+
parsed = JSON.parse(Buffer.from(value, 'base64url').toString('utf8'));
|
|
367
|
+
}
|
|
368
|
+
catch {
|
|
369
|
+
return undefined;
|
|
370
|
+
}
|
|
371
|
+
const query = parsed?.query;
|
|
372
|
+
return query !== null && typeof query === 'object' && !Array.isArray(query)
|
|
373
|
+
? workListFilter(query)
|
|
374
|
+
: undefined;
|
|
375
|
+
}
|
|
376
|
+
function decodeWorkListCursor(value, filter) {
|
|
377
|
+
if (value === '') {
|
|
378
|
+
throw new Error('work.list cursor is empty; omit cursor to start from the first page');
|
|
379
|
+
}
|
|
380
|
+
if (typeof value !== 'string' || value.length > 4_096) {
|
|
381
|
+
throw new Error('work.list cursor is malformed; restart the items read from the first page');
|
|
382
|
+
}
|
|
383
|
+
let parsed;
|
|
384
|
+
try {
|
|
385
|
+
parsed = JSON.parse(Buffer.from(value, 'base64url').toString('utf8'));
|
|
386
|
+
}
|
|
387
|
+
catch {
|
|
388
|
+
throw new Error('work.list cursor is malformed; restart the items read from the first page');
|
|
389
|
+
}
|
|
390
|
+
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
391
|
+
throw new Error('work.list cursor is malformed; restart the items read from the first page');
|
|
392
|
+
}
|
|
393
|
+
const candidate = parsed;
|
|
394
|
+
if (candidate.v !== 1 ||
|
|
395
|
+
typeof candidate.filter !== 'string' ||
|
|
396
|
+
typeof candidate.readVersion !== 'string' ||
|
|
397
|
+
!Number.isSafeInteger(candidate.offset) ||
|
|
398
|
+
candidate.offset < 0) {
|
|
399
|
+
throw new Error('work.list cursor is malformed; restart the items read from the first page');
|
|
400
|
+
}
|
|
401
|
+
if (candidate.filter !== workListFingerprint(filter)) {
|
|
402
|
+
throw new Error('work.list cursor belongs to a different query; restart the items read from the first page');
|
|
403
|
+
}
|
|
404
|
+
return candidate;
|
|
405
|
+
}
|
|
406
|
+
function workListTextWindow(value, offset, limit) {
|
|
407
|
+
const points = Array.from(value);
|
|
408
|
+
const start = Math.min(offset, points.length);
|
|
409
|
+
const slice = points.slice(start, start + limit);
|
|
410
|
+
const end = start + slice.length;
|
|
411
|
+
const nextOffset = end < points.length ? end : null;
|
|
412
|
+
return {
|
|
413
|
+
value: slice.join(''),
|
|
414
|
+
offset,
|
|
415
|
+
limit,
|
|
416
|
+
total: points.length,
|
|
417
|
+
nextOffset,
|
|
418
|
+
complete: nextOffset === null,
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
function workListDetailIds(value) {
|
|
422
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > WORK_LIST_MAX_DETAIL_IDS) {
|
|
423
|
+
throw new Error(`work.list detail ids must contain 1 to ${WORK_LIST_MAX_DETAIL_IDS} ids`);
|
|
424
|
+
}
|
|
425
|
+
const ids = value.map((id) => {
|
|
426
|
+
if ((typeof id !== 'string' && typeof id !== 'number') ||
|
|
427
|
+
(typeof id === 'string' && id.trim() === '') ||
|
|
428
|
+
(typeof id === 'number' && (!Number.isSafeInteger(id) || id < 1))) {
|
|
429
|
+
throw new Error('work.list detail ids must be nonblank commitment ids or positive row ids');
|
|
430
|
+
}
|
|
431
|
+
return id;
|
|
432
|
+
});
|
|
433
|
+
if (new Set(ids).size !== ids.length)
|
|
434
|
+
throw new Error('work.list detail ids must be distinct');
|
|
435
|
+
return ids;
|
|
436
|
+
}
|
|
437
|
+
function workListDetailRecord(item, textOffset, textLimit, now, timeZone) {
|
|
438
|
+
if (item.history === undefined)
|
|
439
|
+
throw new Error('work.list detail did not return revision history');
|
|
440
|
+
const values = workListValueObject(item.values);
|
|
441
|
+
const detailedValues = { ...values };
|
|
442
|
+
for (const field of ['title', 'description', 'latestEvent']) {
|
|
443
|
+
const value = values[field];
|
|
444
|
+
if (typeof value === 'string')
|
|
445
|
+
detailedValues[field] = workListTextWindow(value, textOffset, textLimit);
|
|
446
|
+
}
|
|
447
|
+
const compact = workListCompact(item, now, undefined, timeZone);
|
|
448
|
+
return {
|
|
449
|
+
...compact,
|
|
450
|
+
title: typeof values.title === 'string'
|
|
451
|
+
? workListTextWindow(values.title, textOffset, textLimit)
|
|
452
|
+
: null,
|
|
453
|
+
description: typeof values.description === 'string'
|
|
454
|
+
? workListTextWindow(values.description, textOffset, textLimit)
|
|
455
|
+
: null,
|
|
456
|
+
latestEvent: typeof values.latestEvent === 'string'
|
|
457
|
+
? workListTextWindow(values.latestEvent, textOffset, textLimit)
|
|
458
|
+
: null,
|
|
459
|
+
values: detailedValues,
|
|
460
|
+
basis: item.basis,
|
|
461
|
+
history: item.history,
|
|
462
|
+
latestJudgmentRef: item.latestJudgmentRef,
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function workListDetail(input, ctx) {
|
|
466
|
+
const ids = workListDetailIds(input.ids);
|
|
467
|
+
const textOffset = workListNonNegativeInteger(input.text_offset, 'text_offset', 0);
|
|
468
|
+
const textLimit = workListInteger(input.text_limit, 'text_limit', WORK_LIST_DEFAULT_TEXT_LIMIT, 1, WORK_LIST_MAX_TEXT_LIMIT);
|
|
469
|
+
const asOf = workListAsOf(input.asOf);
|
|
470
|
+
const now = ctx.now?.() ?? Date.now();
|
|
471
|
+
const tasks = [];
|
|
472
|
+
const missingIds = [];
|
|
473
|
+
for (const id of ids) {
|
|
474
|
+
const query = {
|
|
475
|
+
history: 'all',
|
|
476
|
+
...(asOf === undefined ? {} : { asOf }),
|
|
477
|
+
...(typeof id === 'number' ? { rowId: id } : { commitmentId: id }),
|
|
478
|
+
};
|
|
479
|
+
const page = ctx.knowledge.readWork(query, ctx.access);
|
|
480
|
+
const item = page.items[0];
|
|
481
|
+
if (item === undefined) {
|
|
482
|
+
missingIds.push(id);
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
tasks.push(workListDetailRecord(item, textOffset, textLimit, now, ctx.timeZone));
|
|
486
|
+
}
|
|
487
|
+
return {
|
|
488
|
+
success: true,
|
|
489
|
+
view: 'detail',
|
|
490
|
+
tasks,
|
|
491
|
+
missingIds,
|
|
492
|
+
observedAt: new Date(now).toISOString(),
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
function workListOverview(snapshot, rankedItems, now, timeZone) {
|
|
496
|
+
const items = rankedItems.map(({ item }) => item);
|
|
497
|
+
const status = Object.fromEntries(WORK_LIST_STATUSES.map((name) => [name, 0]));
|
|
498
|
+
const priority = Object.fromEntries(WORK_LIST_PRIORITIES.map((name) => [name, 0]));
|
|
499
|
+
const channels = new Map();
|
|
500
|
+
const assignees = new Map();
|
|
501
|
+
const due = { missing: 0, overdue: 0, upcoming: 0, closed: 0 };
|
|
502
|
+
for (const item of items) {
|
|
503
|
+
const values = workListValueObject(item.values);
|
|
504
|
+
const itemStatus = workListStatus(item);
|
|
505
|
+
status[itemStatus] += 1;
|
|
506
|
+
const itemPriority = workListPriority(item);
|
|
507
|
+
priority[itemPriority] = (priority[itemPriority] ?? 0) + 1;
|
|
508
|
+
const channel = workListText(values.sourceChannel ?? values.source_channel);
|
|
509
|
+
channels.set(channel, (channels.get(channel) ?? 0) + 1);
|
|
510
|
+
const assignee = workListText(values.assignee ?? values.assigneeText ?? values.assignee_text);
|
|
511
|
+
assignees.set(assignee, (assignees.get(assignee) ?? 0) + 1);
|
|
512
|
+
const temporal = workListDueState(item, now, timeZone);
|
|
513
|
+
if (temporal === 'closed')
|
|
514
|
+
due.closed += 1;
|
|
515
|
+
else if (temporal === 'unscheduled')
|
|
516
|
+
due.missing += 1;
|
|
517
|
+
else if (temporal.endsWith('overdue'))
|
|
518
|
+
due.overdue += 1;
|
|
519
|
+
else
|
|
520
|
+
due.upcoming += 1;
|
|
521
|
+
}
|
|
522
|
+
const sortedFacet = (values) => [...values.entries()]
|
|
523
|
+
.sort((left, right) => String(left[0] ?? '').localeCompare(String(right[0] ?? '')))
|
|
524
|
+
.map(([value, count]) => ({
|
|
525
|
+
[values === channels ? 'channel' : 'assignee']: value,
|
|
526
|
+
count,
|
|
527
|
+
}));
|
|
528
|
+
const channelRows = sortedFacet(channels).map((row) => ({
|
|
529
|
+
channel: row.channel,
|
|
530
|
+
count: row.count,
|
|
531
|
+
}));
|
|
532
|
+
const assigneeRows = sortedFacet(assignees).map((row) => ({
|
|
533
|
+
assignee: row.assignee,
|
|
534
|
+
count: row.count,
|
|
535
|
+
}));
|
|
536
|
+
return {
|
|
537
|
+
success: true,
|
|
538
|
+
view: 'overview',
|
|
539
|
+
total: items.length,
|
|
540
|
+
observedAt: new Date(snapshot.observedAt).toISOString(),
|
|
541
|
+
readVersion: snapshot.readVersion,
|
|
542
|
+
status,
|
|
543
|
+
priority,
|
|
544
|
+
channels: channelRows,
|
|
545
|
+
assignees: assigneeRows,
|
|
546
|
+
due,
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
async function runWorkListView(rawInput, ctx) {
|
|
550
|
+
const input = workListObject(rawInput);
|
|
551
|
+
const view = input.view === undefined ? 'items' : input.view;
|
|
552
|
+
if (view !== 'overview' && view !== 'items' && view !== 'detail' && view !== 'pipeline') {
|
|
553
|
+
throw new Error('work.list view must be one of overview|items|detail|pipeline');
|
|
554
|
+
}
|
|
555
|
+
if (input.ids !== undefined && view !== 'detail') {
|
|
556
|
+
throw new Error('work.list ids are only valid with view=detail');
|
|
557
|
+
}
|
|
558
|
+
if (view === 'detail')
|
|
559
|
+
return workListDetail(input, ctx);
|
|
560
|
+
const requested = workListFilter(input);
|
|
561
|
+
const filter = input.cursor !== undefined && Object.keys(requested).length === 0
|
|
562
|
+
? (workListCursorQuery(input.cursor) ?? requested)
|
|
563
|
+
: requested;
|
|
564
|
+
const snapshot = workListReadSnapshot(ctx, filter);
|
|
565
|
+
const now = ctx.now?.() ?? snapshot.observedAt;
|
|
566
|
+
if (input.readVersion !== undefined && input.readVersion !== snapshot.readVersion) {
|
|
567
|
+
throw new Error('work.list readVersion changed; restart the items read from the first page');
|
|
568
|
+
}
|
|
569
|
+
if (view === 'pipeline') {
|
|
570
|
+
const open = snapshot.items.filter((item) => !['done', 'cancelled'].includes(workListStatus(item)));
|
|
571
|
+
const groups = new Map();
|
|
572
|
+
const fields = [
|
|
573
|
+
'commitmentId',
|
|
574
|
+
'title',
|
|
575
|
+
'status',
|
|
576
|
+
'assignee',
|
|
577
|
+
'deadline',
|
|
578
|
+
'latest_change',
|
|
579
|
+
'latest_event',
|
|
580
|
+
];
|
|
581
|
+
for (const item of open) {
|
|
582
|
+
const values = workListValueObject(item.values);
|
|
583
|
+
const stage = workListText(values.stage) ?? 'Unstaged';
|
|
584
|
+
const group = groups.get(stage) ?? [];
|
|
585
|
+
const latestEvent = workListText(values.latestEvent ?? values.latest_event);
|
|
586
|
+
group.push([
|
|
587
|
+
item.commitmentId,
|
|
588
|
+
workListText(values.title),
|
|
589
|
+
workListStatus(item),
|
|
590
|
+
workListText(values.assignee ?? values.assigneeText ?? values.assignee_text),
|
|
591
|
+
workListText(values.deadline ?? values.due_date),
|
|
592
|
+
Math.trunc(typeof item.updatedAt === 'number'
|
|
593
|
+
? item.updatedAt / 1_000
|
|
594
|
+
: Date.parse(item.updatedAt) / 1_000),
|
|
595
|
+
latestEvent?.replace(/\s+/g, ' ').trim() ?? null,
|
|
596
|
+
]);
|
|
597
|
+
groups.set(stage, group);
|
|
598
|
+
}
|
|
599
|
+
return {
|
|
600
|
+
success: true,
|
|
601
|
+
view: 'pipeline',
|
|
602
|
+
fields,
|
|
603
|
+
stages: [...groups.entries()]
|
|
604
|
+
.sort(([a], [b]) => a.localeCompare(b))
|
|
605
|
+
.map(([stage, rows]) => ({ stage, count: rows.length, rows })),
|
|
606
|
+
total: open.length,
|
|
607
|
+
observedAt: new Date(snapshot.observedAt).toISOString(),
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
if (view === 'overview') {
|
|
611
|
+
const rankedItems = workListRankedItems(snapshot.items, filter);
|
|
612
|
+
return workListOverview(snapshot, rankedItems, now, ctx.timeZone);
|
|
613
|
+
}
|
|
614
|
+
const limit = workListInteger(input.limit, 'limit', WORK_LIST_DEFAULT_LIMIT, 1, WORK_LIST_MAX_LIMIT);
|
|
615
|
+
const decoded = input.cursor === undefined ? null : decodeWorkListCursor(input.cursor, filter);
|
|
616
|
+
if (decoded !== null && decoded.readVersion !== snapshot.readVersion) {
|
|
617
|
+
throw new Error('work.list board changed since this cursor was issued; restart the items read from the first page');
|
|
618
|
+
}
|
|
619
|
+
const rankedItems = workListRankedItems(snapshot.items, filter);
|
|
620
|
+
const offset = decoded?.offset ?? 0;
|
|
621
|
+
const page = rankedItems.slice(offset, offset + limit);
|
|
622
|
+
const nextOffset = offset + page.length < rankedItems.length ? offset + page.length : null;
|
|
623
|
+
return {
|
|
624
|
+
success: true,
|
|
625
|
+
view: 'items',
|
|
626
|
+
tasks: page.map(({ item, score }) => workListCompact(item, now, score, ctx.timeZone)),
|
|
627
|
+
total: rankedItems.length,
|
|
628
|
+
returned: page.length,
|
|
629
|
+
nextCursor: nextOffset === null
|
|
630
|
+
? null
|
|
631
|
+
: encodeWorkListCursor({
|
|
632
|
+
v: 1,
|
|
633
|
+
filter: workListFingerprint(filter),
|
|
634
|
+
query: filter,
|
|
635
|
+
readVersion: snapshot.readVersion,
|
|
636
|
+
offset: nextOffset,
|
|
637
|
+
}),
|
|
638
|
+
observedAt: new Date(snapshot.observedAt).toISOString(),
|
|
639
|
+
readVersion: snapshot.readVersion,
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
/** Archive callers used this name; keep the carried view contract name at the action boundary. */
|
|
643
|
+
exports.runTaskListView = runWorkListView;
|
|
644
|
+
function workListActionRegistrations(ports) {
|
|
645
|
+
return [
|
|
646
|
+
{
|
|
647
|
+
contract: {
|
|
648
|
+
name: 'work.list',
|
|
649
|
+
summary: 'Read owner work progressively: overview counts, a compact open-work pipeline grouped by stage. Each pipeline row is an array using the top-level fields order (commitmentId, title, status, assignee, deadline, latest_change in epoch seconds, latest_event). Pipeline returns the whole open ledger and ignores limit; bounded items pages are capped at 50. Use detail for evidence and revision history.',
|
|
650
|
+
inputSchema: {
|
|
651
|
+
type: 'object',
|
|
652
|
+
additionalProperties: false,
|
|
653
|
+
properties: {
|
|
654
|
+
view: { type: 'string', enum: ['overview', 'items', 'detail', 'pipeline'] },
|
|
655
|
+
ids: {
|
|
656
|
+
type: 'array',
|
|
657
|
+
minItems: 1,
|
|
658
|
+
maxItems: WORK_LIST_MAX_DETAIL_IDS,
|
|
659
|
+
items: {
|
|
660
|
+
oneOf: [
|
|
661
|
+
{ type: 'string', minLength: 1 },
|
|
662
|
+
{ type: 'integer', minimum: 1 },
|
|
663
|
+
],
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
limit: { type: 'integer', minimum: 1, maximum: WORK_LIST_MAX_LIMIT },
|
|
667
|
+
cursor: { type: 'string', minLength: 0 },
|
|
668
|
+
readVersion: {
|
|
669
|
+
type: 'string',
|
|
670
|
+
minLength: 1,
|
|
671
|
+
description: 'Optional echoed read version; must match the current read.',
|
|
672
|
+
},
|
|
673
|
+
status: {
|
|
674
|
+
oneOf: [
|
|
675
|
+
{ type: 'string', enum: WORK_LIST_STATUSES },
|
|
676
|
+
{ type: 'array', minItems: 1, items: { type: 'string', enum: WORK_LIST_STATUSES } },
|
|
677
|
+
],
|
|
678
|
+
},
|
|
679
|
+
stage: { type: 'string' },
|
|
680
|
+
project: { type: 'string' },
|
|
681
|
+
text: { type: 'string' },
|
|
682
|
+
asOf: { type: 'integer', minimum: 0 },
|
|
683
|
+
changedSince: {
|
|
684
|
+
type: 'integer',
|
|
685
|
+
minimum: 0,
|
|
686
|
+
description: 'Only items written at or after this epoch-ms time, e.g. the start of your turn.',
|
|
687
|
+
},
|
|
688
|
+
text_offset: { type: 'integer', minimum: 0 },
|
|
689
|
+
text_limit: { type: 'integer', minimum: 1, maximum: WORK_LIST_MAX_TEXT_LIMIT },
|
|
690
|
+
history: { type: 'string', enum: ['current', 'all'] },
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
examples: [
|
|
694
|
+
{ title: 'Work overview', input: { view: 'overview' } },
|
|
695
|
+
{ title: 'Open work pipeline', input: { view: 'pipeline' } },
|
|
696
|
+
{ title: 'First work page', input: { view: 'items', limit: WORK_LIST_DEFAULT_LIMIT } },
|
|
697
|
+
{ title: 'Work detail', input: { view: 'detail', ids: ['commitment-reference'] } },
|
|
698
|
+
],
|
|
699
|
+
},
|
|
700
|
+
exec: (input, context) => runWorkListView(input, {
|
|
701
|
+
knowledge: ports.knowledge,
|
|
702
|
+
access: context.access,
|
|
703
|
+
timeZone: ports.timeZone.get(),
|
|
704
|
+
}),
|
|
705
|
+
},
|
|
706
|
+
];
|
|
707
|
+
}
|
|
708
|
+
const nullableText = {
|
|
709
|
+
description: 'Optional text value; null clears the field, e.g. "reviewed" or null.',
|
|
710
|
+
oneOf: [{ type: 'string' }, { type: 'null' }],
|
|
711
|
+
};
|
|
712
|
+
const workFileSchema = {
|
|
713
|
+
type: 'object',
|
|
714
|
+
additionalProperties: false,
|
|
715
|
+
properties: {
|
|
716
|
+
locator: { type: 'string', minLength: 1, description: 'Relevant file locator.' },
|
|
717
|
+
version: { type: 'string', minLength: 1, description: 'Relevant file version.' },
|
|
718
|
+
hash: { type: 'string', minLength: 1, description: 'Relevant file content hash.' },
|
|
719
|
+
},
|
|
720
|
+
required: ['locator', 'version', 'hash'],
|
|
721
|
+
};
|
|
722
|
+
const workRoleSchema = {
|
|
723
|
+
type: 'object',
|
|
724
|
+
additionalProperties: true,
|
|
725
|
+
properties: {
|
|
726
|
+
personRef: { type: 'string', minLength: 1, description: 'Person reference for the role.' },
|
|
727
|
+
role: { type: 'string', minLength: 1, description: 'Role judged from evidence.' },
|
|
728
|
+
evidenceRefs: {
|
|
729
|
+
type: 'array',
|
|
730
|
+
description: 'Stable observationRef handles supporting the role.',
|
|
731
|
+
items: { type: 'string', minLength: 1 },
|
|
732
|
+
},
|
|
733
|
+
confirmed: {
|
|
734
|
+
type: 'boolean',
|
|
735
|
+
description: 'True when evidence confirms the role; false is the explicit unconfirmed status.',
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
};
|
|
739
|
+
const workPatchSchema = {
|
|
740
|
+
type: 'object',
|
|
741
|
+
additionalProperties: false,
|
|
742
|
+
properties: {
|
|
743
|
+
title: { ...nullableText, description: 'Work title, e.g. "Prepare release" or null.' },
|
|
744
|
+
description: {
|
|
745
|
+
...nullableText,
|
|
746
|
+
description: 'Work description, e.g. "Collect review" or null.',
|
|
747
|
+
},
|
|
748
|
+
status: {
|
|
749
|
+
description: 'Work status: pending, in_progress, review, blocked, done or cancelled; or null. The owner stage stays in stage.',
|
|
750
|
+
oneOf: [
|
|
751
|
+
{
|
|
752
|
+
type: 'string',
|
|
753
|
+
enum: ['pending', 'in_progress', 'review', 'blocked', 'done', 'cancelled'],
|
|
754
|
+
},
|
|
755
|
+
{ type: 'null' },
|
|
756
|
+
],
|
|
757
|
+
},
|
|
758
|
+
priority: { ...nullableText, description: 'Work priority, e.g. "high" or null.' },
|
|
759
|
+
dueAt: { ...nullableText, description: 'Due-time text, e.g. "2026-09-30" or null.' },
|
|
760
|
+
deadline: { ...nullableText, description: 'Deadline text, e.g. "Friday" or null.' },
|
|
761
|
+
deadlineOffsetMinutes: {
|
|
762
|
+
description: 'Deadline offset from the stated event, e.g. 60 or null.',
|
|
763
|
+
oneOf: [{ type: 'integer', minimum: -840, maximum: 840 }, { type: 'null' }],
|
|
764
|
+
},
|
|
765
|
+
stage: { ...nullableText, description: 'Current work stage, or null to clear it.' },
|
|
766
|
+
project: {
|
|
767
|
+
...nullableText,
|
|
768
|
+
description: 'project associated with the work, or null to clear it.',
|
|
769
|
+
},
|
|
770
|
+
lastEventTime: {
|
|
771
|
+
...nullableText,
|
|
772
|
+
description: 'Timezone-qualified ISO timestamp for the source event time, not replay time, or null.',
|
|
773
|
+
},
|
|
774
|
+
files: {
|
|
775
|
+
description: 'Relevant file locator/version/hash entries preserved with the work, or null.',
|
|
776
|
+
oneOf: [{ type: 'array', items: workFileSchema }, { type: 'null' }],
|
|
777
|
+
},
|
|
778
|
+
completionCriteria: {
|
|
779
|
+
type: 'string',
|
|
780
|
+
pattern: '\\S',
|
|
781
|
+
description: 'Evidence-based completion rule, e.g. "Owner approves".',
|
|
782
|
+
},
|
|
783
|
+
assignee: { ...nullableText, description: 'Assigned person text, e.g. "person_123" or null.' },
|
|
784
|
+
assigneeText: {
|
|
785
|
+
...nullableText,
|
|
786
|
+
description: 'Unresolved assignee text, e.g. "reviewer" or null.',
|
|
787
|
+
},
|
|
788
|
+
latestEvent: {
|
|
789
|
+
...nullableText,
|
|
790
|
+
description: 'Latest work event text, e.g. "review requested" or null.',
|
|
791
|
+
},
|
|
792
|
+
confirmed: {
|
|
793
|
+
description: 'Whether the patch is confirmed, e.g. true or null.',
|
|
794
|
+
oneOf: [{ type: 'boolean' }, { type: 'null' }],
|
|
795
|
+
},
|
|
796
|
+
roles: {
|
|
797
|
+
description: 'Evidence-backed role entries with personRef, role, evidenceRefs and confirmed; use false for an explicit unconfirmed status, or null.',
|
|
798
|
+
oneOf: [{ type: 'array', items: workRoleSchema }, { type: 'null' }],
|
|
799
|
+
},
|
|
800
|
+
data: {
|
|
801
|
+
description: 'Product-specific structured fields, e.g. {"stage":"review"} or null.',
|
|
802
|
+
oneOf: [{ type: 'object' }, { type: 'null' }],
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
};
|
|
806
|
+
const commandFields = {
|
|
807
|
+
topic: { type: 'string', minLength: 1, description: 'Work topic key, e.g. "release".' },
|
|
808
|
+
summary: {
|
|
809
|
+
type: 'string',
|
|
810
|
+
minLength: 1,
|
|
811
|
+
description: 'What changed and why, e.g. "Review is requested".',
|
|
812
|
+
},
|
|
813
|
+
reasoning: {
|
|
814
|
+
type: 'string',
|
|
815
|
+
minLength: 1,
|
|
816
|
+
description: 'Decision reasoning, e.g. "The source confirms the handoff".',
|
|
817
|
+
},
|
|
818
|
+
scopes: {
|
|
819
|
+
type: 'array',
|
|
820
|
+
description: 'Work visibility scopes, e.g. [{"kind":"project","id":"project_123"}].',
|
|
821
|
+
items: catalog_1.scopeRefSchema,
|
|
822
|
+
},
|
|
823
|
+
sourceRefs: {
|
|
824
|
+
type: 'array',
|
|
825
|
+
description: 'Stable observationRef citation handles, e.g. ["obs_123"].',
|
|
826
|
+
items: { type: 'string', minLength: 1 },
|
|
827
|
+
},
|
|
828
|
+
links: {
|
|
829
|
+
type: 'array',
|
|
830
|
+
description: 'Graph links from this revision: derived_from an observation it rests on; supersedes, amends or refines an earlier record it replaces or corrects; contradicts one it reverses; builds_on or synthesizes records it extends or combines; blocks or next_action_for another work item. E.g. [{"relation":"derived_from","target":{"kind":"observation","id":"obs_123"}}].',
|
|
831
|
+
items: catalog_1.recordLinkSchema,
|
|
832
|
+
},
|
|
833
|
+
eventDatetime: {
|
|
834
|
+
description: 'Source event time as epoch milliseconds, not replay time, or null, e.g. 1760000000000.',
|
|
835
|
+
oneOf: [{ type: 'number' }, { type: 'null' }],
|
|
836
|
+
},
|
|
837
|
+
recordedAt: {
|
|
838
|
+
type: 'number',
|
|
839
|
+
description: 'Record time as epoch milliseconds, e.g. 1760000000000.',
|
|
840
|
+
},
|
|
841
|
+
event: { type: 'object', description: 'Structured event details, e.g. {"kind":"review"}.' },
|
|
842
|
+
};
|
|
843
|
+
const createSchema = {
|
|
844
|
+
type: 'object',
|
|
845
|
+
required: ['topic', 'summary', 'set'],
|
|
846
|
+
additionalProperties: false,
|
|
847
|
+
properties: {
|
|
848
|
+
...commandFields,
|
|
849
|
+
set: {
|
|
850
|
+
...workPatchSchema,
|
|
851
|
+
description: 'Fields to set on the new work item, e.g. {"title":"Prepare release"}.',
|
|
852
|
+
},
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
const reviseSchema = {
|
|
856
|
+
type: 'object',
|
|
857
|
+
required: ['commitmentId', 'topic', 'summary'],
|
|
858
|
+
additionalProperties: false,
|
|
859
|
+
properties: {
|
|
860
|
+
...commandFields,
|
|
861
|
+
commitmentId: {
|
|
862
|
+
type: 'string',
|
|
863
|
+
minLength: 1,
|
|
864
|
+
description: 'stable commitmentId citation handle to revise, e.g. "commitment_123".',
|
|
865
|
+
},
|
|
866
|
+
expectedRevision: {
|
|
867
|
+
type: 'integer',
|
|
868
|
+
minimum: 0,
|
|
869
|
+
description: 'Optional revision read before editing; when omitted, the latest owner revision is appended.',
|
|
870
|
+
},
|
|
871
|
+
set: {
|
|
872
|
+
...workPatchSchema,
|
|
873
|
+
description: 'Fields to update on the existing work item, e.g. {"assignee":null}.',
|
|
874
|
+
},
|
|
875
|
+
clear: {
|
|
876
|
+
type: 'array',
|
|
877
|
+
description: 'Patch fields to clear, e.g. ["assignee"].',
|
|
878
|
+
items: { type: 'string' },
|
|
879
|
+
},
|
|
880
|
+
},
|
|
881
|
+
};
|
|
882
|
+
function operationId(context, action) {
|
|
883
|
+
if (typeof context.operationId !== 'string' || context.operationId.trim() === '') {
|
|
884
|
+
throw new knowledge_1.JudgmentError('INVALID_COMMAND', `${action} requires operationId`);
|
|
885
|
+
}
|
|
886
|
+
return context.operationId;
|
|
887
|
+
}
|
|
888
|
+
function assertSourceRefsExist(body, ports) {
|
|
889
|
+
if (!Array.isArray(body.sourceRefs))
|
|
890
|
+
return;
|
|
891
|
+
for (const ref of body.sourceRefs) {
|
|
892
|
+
if (typeof ref === 'string' && !ports.observationExists(ref)) {
|
|
893
|
+
// Echo only the caller's own input, as the core reference refusal does.
|
|
894
|
+
throw new knowledge_1.JudgmentError('REFERENCE_NOT_FOUND', `sourceRefs names an unavailable observation: ${ref}`);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
function commandFieldsFrom(body) {
|
|
899
|
+
const { commitmentId: _commitmentId, expectedRevision: _expectedRevision, ...fields } = body;
|
|
900
|
+
return fields;
|
|
901
|
+
}
|
|
902
|
+
function assertReplayEventDatetime(body, context, action) {
|
|
903
|
+
const ceiling = context.session?.replaySourceEndMs;
|
|
904
|
+
if (ceiling === undefined)
|
|
905
|
+
return;
|
|
906
|
+
if (!Number.isSafeInteger(ceiling) || ceiling < 0) {
|
|
907
|
+
throw new knowledge_1.JudgmentError('REPLAY_SOURCE_CEILING_INVALID', 'Replay source ceiling must be a nonnegative epoch millisecond integer');
|
|
908
|
+
}
|
|
909
|
+
const eventDatetime = body.eventDatetime;
|
|
910
|
+
if (typeof eventDatetime !== 'number' ||
|
|
911
|
+
!Number.isSafeInteger(eventDatetime) ||
|
|
912
|
+
eventDatetime <= 0) {
|
|
913
|
+
throw new knowledge_1.JudgmentError('REPLAY_EVENT_TIME_REQUIRED', `${action} requires eventDatetime during replay`);
|
|
914
|
+
}
|
|
915
|
+
if (eventDatetime > ceiling) {
|
|
916
|
+
throw new knowledge_1.JudgmentError('REPLAY_EVENT_TIME_AFTER_CEILING', `${action} eventDatetime is later than the active replay source ceiling`);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
function minimalWorkActionRegistrations(ports) {
|
|
920
|
+
return [
|
|
921
|
+
{
|
|
922
|
+
contract: {
|
|
923
|
+
name: 'work.create',
|
|
924
|
+
recallableWrite: true,
|
|
925
|
+
summary: 'Create one owner-work commitment. Product fields such as assignee and roles remain part of the revision patch; links with relation derived_from cite the observations the work rests on.',
|
|
926
|
+
inputSchema: createSchema,
|
|
927
|
+
examples: [
|
|
928
|
+
{
|
|
929
|
+
title: 'Create owner work',
|
|
930
|
+
input: {
|
|
931
|
+
topic: 'work topic',
|
|
932
|
+
summary: 'what the work means',
|
|
933
|
+
set: { title: 'work title', assignee: 'assignee', roles: [] },
|
|
934
|
+
},
|
|
935
|
+
},
|
|
936
|
+
],
|
|
937
|
+
},
|
|
938
|
+
exec: (input, context) => {
|
|
939
|
+
const body = input;
|
|
940
|
+
assertReplayEventDatetime(body, context, 'work.create');
|
|
941
|
+
assertSourceRefsExist(body, ports);
|
|
942
|
+
return ports.knowledge.createWork({
|
|
943
|
+
...body,
|
|
944
|
+
...commandFieldsFrom(body),
|
|
945
|
+
commandId: operationId(context, 'work.create'),
|
|
946
|
+
modelRunId: context.session?.modelRunId,
|
|
947
|
+
}, context.access);
|
|
948
|
+
},
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
contract: {
|
|
952
|
+
name: 'work.revise',
|
|
953
|
+
recallableWrite: true,
|
|
954
|
+
summary: 'Append a revision to owner work. expectedRevision is optional for the single owner writer; when supplied it rejects a stale write. The required summary states what changed and why. Links with relation derived_from cite the observations the revision rests on.',
|
|
955
|
+
inputSchema: reviseSchema,
|
|
956
|
+
examples: [
|
|
957
|
+
{
|
|
958
|
+
title: 'Revise assignee and roles',
|
|
959
|
+
input: {
|
|
960
|
+
commitmentId: 'commitment-reference',
|
|
961
|
+
expectedRevision: 1,
|
|
962
|
+
topic: 'work topic',
|
|
963
|
+
summary: 'what changed and why',
|
|
964
|
+
set: { assignee: null, roles: [] },
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
],
|
|
968
|
+
},
|
|
969
|
+
exec: (input, context) => {
|
|
970
|
+
const body = input;
|
|
971
|
+
assertReplayEventDatetime(body, context, 'work.revise');
|
|
972
|
+
assertSourceRefsExist(body, ports);
|
|
973
|
+
const commitmentId = body.commitmentId;
|
|
974
|
+
return ports.knowledge.reviseWork({
|
|
975
|
+
...commandFieldsFrom(body),
|
|
976
|
+
commitmentId,
|
|
977
|
+
...(body.expectedRevision === undefined
|
|
978
|
+
? {}
|
|
979
|
+
: { expectedRevision: body.expectedRevision }),
|
|
980
|
+
commandId: operationId(context, 'work.revise'),
|
|
981
|
+
modelRunId: context.session?.modelRunId,
|
|
982
|
+
}, context.access);
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
];
|
|
986
|
+
}
|
|
987
|
+
//# sourceMappingURL=work-actions.js.map
|