yepanywhere 0.6.2 → 0.8.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/README.md +63 -67
- package/bundled/@yep-anywhere/shared/dist/__tests__/relay-mux.test.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/relay-mux.test.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/relay-mux.test.js +43 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/relay-mux.test.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/server-capabilities.test.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/server-capabilities.test.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/server-capabilities.test.js +220 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/server-capabilities.test.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/agent-context.d.ts +1 -1
- package/bundled/@yep-anywhere/shared/dist/agent-context.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/agent-context.js +1 -1
- package/bundled/@yep-anywhere/shared/dist/agent-context.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts +88 -4
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.js +340 -2
- package/bundled/@yep-anywhere/shared/dist/app-types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/binary-framing.d.ts +36 -2
- package/bundled/@yep-anywhere/shared/dist/binary-framing.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/binary-framing.js +155 -4
- package/bundled/@yep-anywhere/shared/dist/binary-framing.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/browser-settings-backup.d.ts +12 -0
- package/bundled/@yep-anywhere/shared/dist/browser-settings-backup.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/browser-settings-backup.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/browser-settings-backup.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts +344 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js +368 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-additional-models.d.ts +19 -0
- package/bundled/@yep-anywhere/shared/dist/claude-additional-models.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-additional-models.js +58 -0
- package/bundled/@yep-anywhere/shared/dist/claude-additional-models.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.d.ts +8 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AttachmentEntrySchema.d.ts +30 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AttachmentEntrySchema.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AttachmentEntrySchema.js +12 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AttachmentEntrySchema.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/MetadataEntrySchema.d.ts +9 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/MetadataEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/MetadataEntrySchema.js +16 -3
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/MetadataEntrySchema.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.d.ts +57 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.js +12 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/QueueOperationEntrySchema.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts +161 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js +53 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.d.ts +29 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.js +63 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/guards.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts +513 -2
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js +3 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.d.ts +16 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/message/AssistantMessageSchema.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-steering.d.ts +10 -0
- package/bundled/@yep-anywhere/shared/dist/claude-steering.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/claude-steering.js +51 -0
- package/bundled/@yep-anywhere/shared/dist/claude-steering.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.d.ts +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.js +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts +189 -4
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js +66 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-tool-correlation.d.ts +3 -3
- package/bundled/@yep-anywhere/shared/dist/codex-tool-correlation.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-tool-correlation.js +7 -3
- package/bundled/@yep-anywhere/shared/dist/codex-tool-correlation.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.js +1 -0
- package/bundled/@yep-anywhere/shared/dist/filePathDetection.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.d.ts +302 -7
- package/bundled/@yep-anywhere/shared/dist/git-status.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.js +1 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/glossary/compiler.d.ts +3 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/compiler.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/compiler.js +308 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/compiler.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/index.d.ts +6 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/index.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/index.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/index.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/markdown.d.ts +16 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/markdown.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/markdown.js +434 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/markdown.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/matcher.d.ts +4 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/matcher.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/matcher.js +124 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/matcher.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/normalization.d.ts +10 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/normalization.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/normalization.js +155 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/normalization.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/types.d.ts +142 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/types.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/types.js +14 -0
- package/bundled/@yep-anywhere/shared/dist/glossary/types.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/heartbeat.d.ts +19 -0
- package/bundled/@yep-anywhere/shared/dist/heartbeat.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/heartbeat.js +5 -0
- package/bundled/@yep-anywhere/shared/dist/heartbeat.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-agent-processes.d.ts +36 -0
- package/bundled/@yep-anywhere/shared/dist/host-agent-processes.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-agent-processes.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/host-agent-processes.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-awake.d.ts +27 -0
- package/bundled/@yep-anywhere/shared/dist/host-awake.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-awake.js +19 -0
- package/bundled/@yep-anywhere/shared/dist/host-awake.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-identity.d.ts +12 -0
- package/bundled/@yep-anywhere/shared/dist/host-identity.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/host-identity.js +26 -0
- package/bundled/@yep-anywhere/shared/dist/host-identity.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/idle-reap.d.ts +8 -0
- package/bundled/@yep-anywhere/shared/dist/idle-reap.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/idle-reap.js +18 -0
- package/bundled/@yep-anywhere/shared/dist/idle-reap.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/index.d.ts +36 -10
- package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/index.js +33 -8
- package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/jsonlTable.d.ts +17 -0
- package/bundled/@yep-anywhere/shared/dist/jsonlTable.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/jsonlTable.js +90 -0
- package/bundled/@yep-anywhere/shared/dist/jsonlTable.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/linear-regex.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/linear-regex.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/linear-regex.js +362 -0
- package/bundled/@yep-anywhere/shared/dist/linear-regex.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/markdown-files.d.ts +5 -0
- package/bundled/@yep-anywhere/shared/dist/markdown-files.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/markdown-files.js +26 -0
- package/bundled/@yep-anywhere/shared/dist/markdown-files.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/nested-harness-launch.d.ts +29 -0
- package/bundled/@yep-anywhere/shared/dist/nested-harness-launch.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/nested-harness-launch.js +243 -0
- package/bundled/@yep-anywhere/shared/dist/nested-harness-launch.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.d.ts +41 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.js +14 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.d.ts +9 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/session.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/project-code-names.d.ts +15 -0
- package/bundled/@yep-anywhere/shared/dist/project-code-names.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/project-code-names.js +78 -0
- package/bundled/@yep-anywhere/shared/dist/project-code-names.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/project-path-links.d.ts +19 -0
- package/bundled/@yep-anywhere/shared/dist/project-path-links.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/project-path-links.js +50 -0
- package/bundled/@yep-anywhere/shared/dist/project-path-links.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/project-queue.d.ts +5 -1
- package/bundled/@yep-anywhere/shared/dist/project-queue.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/project-queue.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/provider-subscription-usage.d.ts +39 -0
- package/bundled/@yep-anywhere/shared/dist/provider-subscription-usage.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/provider-subscription-usage.js +21 -0
- package/bundled/@yep-anywhere/shared/dist/provider-subscription-usage.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/public-shares.d.ts +100 -2
- package/bundled/@yep-anywhere/shared/dist/public-shares.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/public-shares.js +94 -1
- package/bundled/@yep-anywhere/shared/dist/public-shares.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/relay-mux.d.ts +58 -0
- package/bundled/@yep-anywhere/shared/dist/relay-mux.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/relay-mux.js +116 -0
- package/bundled/@yep-anywhere/shared/dist/relay-mux.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/relay.d.ts +11 -3
- package/bundled/@yep-anywhere/shared/dist/relay.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/relay.js +7 -1
- package/bundled/@yep-anywhere/shared/dist/relay.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/review-comments.d.ts +355 -0
- package/bundled/@yep-anywhere/shared/dist/review-comments.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/review-comments.js +857 -0
- package/bundled/@yep-anywhere/shared/dist/review-comments.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/security-clients.d.ts +1070 -0
- package/bundled/@yep-anywhere/shared/dist/security-clients.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/security-clients.js +330 -0
- package/bundled/@yep-anywhere/shared/dist/security-clients.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts +1365 -1
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js +1798 -57
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts +3 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.d.ts +56 -0
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js +179 -0
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/subagent-depth.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/subagent-depth.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/subagent-depth.js +11 -0
- package/bundled/@yep-anywhere/shared/dist/subagent-depth.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/tool-result-media.d.ts +21 -0
- package/bundled/@yep-anywhere/shared/dist/tool-result-media.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/tool-result-media.js +8 -0
- package/bundled/@yep-anywhere/shared/dist/tool-result-media.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/toon.d.ts +22 -0
- package/bundled/@yep-anywhere/shared/dist/toon.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/toon.js +128 -0
- package/bundled/@yep-anywhere/shared/dist/toon.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/types.d.ts +178 -31
- package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.js +38 -2
- package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/package.json +1 -1
- package/client-dist/_headers +17 -0
- package/client-dist/assets/ActivityPage-B9q2bxQG.js +1 -0
- package/client-dist/assets/AgentsPage-BJQFd1Lq.css +1 -0
- package/client-dist/assets/AgentsPage-D2BeReoU.js +2 -0
- package/client-dist/assets/App-BCuhyupw.js +2 -0
- package/client-dist/assets/App-D0_8DZ_p.css +1 -0
- package/client-dist/assets/AttachmentChip-CXZaCUv_.css +1 -0
- package/client-dist/assets/AttachmentChip-DeFRfm3S.js +1 -0
- package/client-dist/assets/AuthContext-ttH_RHyv.js +1 -0
- package/client-dist/assets/BangCommandDisplayObject-Csd_4G38.js +2 -0
- package/client-dist/assets/BangCommandDisplayObject-DDvXHqkT.css +1 -0
- package/client-dist/assets/BangCommandsPage-4tAg1P-B.js +1 -0
- package/client-dist/assets/BangCommandsPage-Bo6q40bU.css +1 -0
- package/client-dist/assets/BrowserDebugToolbarButton-d5UWhDkL.js +1 -0
- package/client-dist/assets/CodexUpdatePrompt-C0NYRpC1.js +1 -0
- package/client-dist/assets/EmulatorPage-B_SHr-YK.css +1 -0
- package/client-dist/assets/EmulatorPage-CaGjOU02.js +1 -0
- package/client-dist/assets/FilePage-CFYA8Jmz.js +1 -0
- package/client-dist/assets/FileViewer-4aDxZNTu.js +326 -0
- package/client-dist/assets/FileViewer-CzrwiYp4.css +1 -0
- package/client-dist/assets/FilterDropdown-CB_tRt6g.css +1 -0
- package/client-dist/assets/FilterDropdown-DefBPgy4.js +1 -0
- package/client-dist/assets/FloatingActionButton-CPVF8aGh.js +1 -0
- package/client-dist/assets/GitStatusPage-BMAX1XtQ.js +15 -0
- package/client-dist/assets/GitStatusPage-DiqFcPhe.css +1 -0
- package/client-dist/assets/GlobalSessionsPage-1KH8bdTH.css +1 -0
- package/client-dist/assets/GlobalSessionsPage-BhQXZsnZ.js +1 -0
- package/client-dist/assets/GlossaryContext-C4ZqYUH9.css +1 -0
- package/client-dist/assets/GlossaryContext-Cp_4G9df.js +1 -0
- package/client-dist/assets/HeartbeatTextArea-CjOFU5D8.js +1 -0
- package/client-dist/assets/HeartbeatTextArea-Dr6VozUp.css +1 -0
- package/client-dist/assets/HostIdentityContext-BuhXEIrO.js +1 -0
- package/client-dist/assets/HostIdentityMarker-DKxUjPEf.js +1 -0
- package/client-dist/assets/HostsPage--bWNVMY2.js +1 -0
- package/client-dist/assets/HostsPage-Da-F6Wx_.css +1 -0
- package/client-dist/assets/InboxContext-BKyIY7qc.js +1 -0
- package/client-dist/assets/InboxPage-DafjmvUl.css +1 -0
- package/client-dist/assets/InboxPage-wbKwNVKg.js +1 -0
- package/client-dist/assets/KaTeX_Size3-Regular-gV2CO0n9.woff2 +0 -0
- package/client-dist/assets/LoginPage-GYi_XEnG.js +1 -0
- package/client-dist/assets/MarkdownPreview-AEv1dNzV.js +1 -0
- package/client-dist/assets/MarkdownPreview-D0wBwpSu.css +1 -0
- package/client-dist/assets/MessageInput-C2p_cEHF.css +1 -0
- package/client-dist/assets/MessageInput-COCoVatC.js +3 -0
- package/client-dist/assets/MessageList-BHFVgfnL.js +6 -0
- package/client-dist/assets/MessageList-C9Z7aFHx.css +1 -0
- package/client-dist/assets/Modal-C59BcdHD.js +15 -0
- package/client-dist/assets/Modal-DydQGLdZ.css +1 -0
- package/client-dist/assets/NavigationLayout-BNRJ1SpX.js +2 -0
- package/client-dist/assets/NavigationLayout-ChjNahB_.css +1 -0
- package/client-dist/assets/NewSessionPage-CNO3t_Zi.js +1 -0
- package/client-dist/assets/PageHeader-DLhedAPm.js +1 -0
- package/client-dist/assets/ProjectSessionDefaultsModal-C5tcoqx_.css +1 -0
- package/client-dist/assets/ProjectSessionDefaultsModal-D7s41P9z.js +1 -0
- package/client-dist/assets/ProjectsPage-8yEzRoSP.css +1 -0
- package/client-dist/assets/ProjectsPage-D2-mjMXS.js +1 -0
- package/client-dist/assets/ProviderBadge-C8td51kV.js +1 -0
- package/client-dist/assets/ProviderChildSessionDetail-B9xcZcb6.js +129 -0
- package/client-dist/assets/ProviderChildSessionDetail-rZPKSfqF.css +1 -0
- package/client-dist/assets/ProviderChildSessionPage-BjoskULT.css +1 -0
- package/client-dist/assets/ProviderChildSessionPage-DuJN7uHD.js +1 -0
- package/client-dist/assets/SchemaValidationContext-CiLezKRZ.css +1 -0
- package/client-dist/assets/SchemaValidationContext-oxtR_d_G.js +1 -0
- package/client-dist/assets/SessionPage-BVeMOC--.css +1 -0
- package/client-dist/assets/SessionPage-UUYKBNUl.js +36 -0
- package/client-dist/assets/SourceFileHeaderActions-czvC1JKL.js +1 -0
- package/client-dist/assets/ThinkingControls-CmOG-fOQ.css +1 -0
- package/client-dist/assets/ThinkingControls-Yv0aTXJC.js +1 -0
- package/client-dist/assets/VoiceInputButton-COdV4sNA.js +1 -0
- package/client-dist/assets/VoiceInputButton-CTd6zXtZ.css +1 -0
- package/client-dist/assets/WorkstreamsPage-BCC_7j6h.js +1 -0
- package/client-dist/assets/WorkstreamsPage-kESwpARF.css +1 -0
- package/client-dist/assets/YepAnywhereLogo-B15FCqEj.js +1 -0
- package/client-dist/assets/activityBus-VjgeGPMB.js +42 -0
- package/client-dist/assets/appHref-ByaEnJGJ.js +1 -0
- package/client-dist/assets/de-DKHK9Tu3.js +6 -0
- package/client-dist/assets/deviceDetection-BVPclkty.js +1 -0
- package/client-dist/assets/es-XSkBrKBg.js +6 -0
- package/client-dist/assets/fr-DKUJaPhN.js +6 -0
- package/client-dist/assets/frontendReload-t1MBqojn.js +1 -0
- package/client-dist/assets/index-8yMgG4-w.css +1 -0
- package/client-dist/assets/index-BlfKG1Oa.js +16 -0
- package/client-dist/assets/index-CRz1GJAq.css +1 -0
- package/client-dist/assets/index-CgkTqljR.js +2 -0
- package/client-dist/assets/index-D47M-JMk.js +33 -0
- package/client-dist/assets/index-DnwFOiB5.js +1 -0
- package/client-dist/assets/index-YFIFpYSg.js +1 -0
- package/client-dist/assets/ja-BDnQUlyD.js +6 -0
- package/client-dist/assets/newSessionPrefill-B03klTbN.js +1 -0
- package/client-dist/assets/react-runtime-Dw4bUKEF.js +41 -0
- package/client-dist/assets/registerServiceWorker-DkTc70d4.js +1 -0
- package/client-dist/assets/sessionHistorySearch.worker-3xcA03g5.js +60 -0
- package/client-dist/assets/sessionNavigationState-B0NurMU6.js +1 -0
- package/client-dist/assets/sourceControlNavigationState-w3TYNwib.js +1 -0
- package/client-dist/assets/sourceRuntime-Dzap6qZX.js +11 -0
- package/client-dist/assets/sourceTransportPaths-CbOCoJJb.js +1 -0
- package/client-dist/assets/speechDraftTransaction-B6k3bStO.js +1 -0
- package/client-dist/assets/text-BehwCDu9.js +1 -0
- package/client-dist/assets/types-Cm98CR-a.js +1 -0
- package/client-dist/assets/useActivityBusState-DemwlSNp.js +1 -0
- package/client-dist/assets/useCodexUpdateStatus-bHHkvK4K.js +1 -0
- package/client-dist/assets/useDocumentTitle-rx41kKWp.js +1 -0
- package/client-dist/assets/useEmulators-CpDUcdfL.js +1 -0
- package/client-dist/assets/useFileActivity-C70dzD5U.js +1 -0
- package/client-dist/assets/useFloatingActionButtonEnabled-sLWhUZYo.js +1 -0
- package/client-dist/assets/useKeepMobileKeyboardOpenAfterDelivery-BMDI-BSY.js +1 -0
- package/client-dist/assets/useProviders-BWp3tEXv.js +1 -0
- package/client-dist/assets/useRecentSessions-BeuekUHb.js +1 -0
- package/client-dist/assets/useRecentSessions-Bks9U2oh.css +1 -0
- package/client-dist/assets/useRelativeNow-B6kyvcmL.js +1 -0
- package/client-dist/assets/useReloadNotifications-B1Gip4qS.js +1 -0
- package/client-dist/assets/useSidebarWidth-CNuw7NNf.js +1 -0
- package/client-dist/assets/useSourceControlCleanLanding-BSY1vDSq.js +1 -0
- package/client-dist/assets/useStableToolPreviewRendering-BQc8-VNa.css +1 -0
- package/client-dist/assets/useStableToolPreviewRendering-RDapEGRz.js +9 -0
- package/client-dist/assets/useStreamingEnabled-CiYhaw0s.js +59 -0
- package/client-dist/assets/useStreamingEnabled-DkWnufW2.css +1 -0
- package/client-dist/assets/useWiderConversationActivityPreviews-D-57jNSG.js +1 -0
- package/client-dist/assets/zh-CN-D56LyPRG.js +7 -0
- package/client-dist/badge.svg +1 -0
- package/client-dist/debug-streaming.html +2 -2
- package/client-dist/icon.svg +1 -0
- package/client-dist/index.html +10 -4
- package/client-dist/manifest.json +13 -0
- package/client-dist/sw.js +245 -61
- package/dist/app.d.ts +58 -2
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +761 -132
- package/dist/app.js.map +1 -1
- package/dist/augments/augment-generator.d.ts +1 -1
- package/dist/augments/augment-generator.d.ts.map +1 -1
- package/dist/augments/augment-generator.js +12 -3
- package/dist/augments/augment-generator.js.map +1 -1
- package/dist/augments/edit-augments.d.ts +21 -1
- package/dist/augments/edit-augments.d.ts.map +1 -1
- package/dist/augments/edit-augments.js +222 -32
- package/dist/augments/edit-augments.js.map +1 -1
- package/dist/augments/edit-raw-patch.d.ts +6 -0
- package/dist/augments/edit-raw-patch.d.ts.map +1 -1
- package/dist/augments/edit-raw-patch.js +29 -1
- package/dist/augments/edit-raw-patch.js.map +1 -1
- package/dist/augments/finalized-message-augmenter.d.ts +18 -0
- package/dist/augments/finalized-message-augmenter.d.ts.map +1 -0
- package/dist/augments/finalized-message-augmenter.js +306 -0
- package/dist/augments/finalized-message-augmenter.js.map +1 -0
- package/dist/augments/index.d.ts +1 -1
- package/dist/augments/index.d.ts.map +1 -1
- package/dist/augments/index.js +1 -1
- package/dist/augments/index.js.map +1 -1
- package/dist/augments/markdown-augments.d.ts +6 -9
- package/dist/augments/markdown-augments.d.ts.map +1 -1
- package/dist/augments/markdown-augments.js +145 -4
- package/dist/augments/markdown-augments.js.map +1 -1
- package/dist/augments/markdown-file-preview.d.ts +16 -0
- package/dist/augments/markdown-file-preview.d.ts.map +1 -0
- package/dist/augments/markdown-file-preview.js +122 -0
- package/dist/augments/markdown-file-preview.js.map +1 -0
- package/dist/augments/message-utils.d.ts +0 -5
- package/dist/augments/message-utils.d.ts.map +1 -1
- package/dist/augments/message-utils.js +0 -20
- package/dist/augments/message-utils.js.map +1 -1
- package/dist/augments/project-path-links.d.ts +47 -0
- package/dist/augments/project-path-links.d.ts.map +1 -0
- package/dist/augments/project-path-links.js +478 -0
- package/dist/augments/project-path-links.js.map +1 -0
- package/dist/augments/read-augments.d.ts +1 -1
- package/dist/augments/read-augments.d.ts.map +1 -1
- package/dist/augments/read-augments.js +8 -4
- package/dist/augments/read-augments.js.map +1 -1
- package/dist/augments/safe-markdown.d.ts +39 -1
- package/dist/augments/safe-markdown.d.ts.map +1 -1
- package/dist/augments/safe-markdown.js +592 -158
- package/dist/augments/safe-markdown.js.map +1 -1
- package/dist/augments/stream-augmenter.d.ts +13 -3
- package/dist/augments/stream-augmenter.d.ts.map +1 -1
- package/dist/augments/stream-augmenter.js +39 -241
- package/dist/augments/stream-augmenter.js.map +1 -1
- package/dist/augments/task-list-augments.d.ts +8 -0
- package/dist/augments/task-list-augments.d.ts.map +1 -1
- package/dist/augments/task-list-augments.js +44 -2
- package/dist/augments/task-list-augments.js.map +1 -1
- package/dist/augments/write-augments.d.ts +1 -1
- package/dist/augments/write-augments.d.ts.map +1 -1
- package/dist/augments/write-augments.js +7 -4
- package/dist/augments/write-augments.js.map +1 -1
- package/dist/auth/AuthService.d.ts +5 -7
- package/dist/auth/AuthService.d.ts.map +1 -1
- package/dist/auth/AuthService.js +35 -25
- package/dist/auth/AuthService.js.map +1 -1
- package/dist/auth/routes.d.ts +5 -0
- package/dist/auth/routes.d.ts.map +1 -1
- package/dist/auth/routes.js +26 -3
- package/dist/auth/routes.js.map +1 -1
- package/dist/cli.js +212 -1
- package/dist/cli.js.map +1 -1
- package/dist/codex/normalization.d.ts +2 -0
- package/dist/codex/normalization.d.ts.map +1 -1
- package/dist/codex/normalization.js +76 -84
- package/dist/codex/normalization.js.map +1 -1
- package/dist/codex/subagentActivity.d.ts +3 -0
- package/dist/codex/subagentActivity.d.ts.map +1 -0
- package/dist/codex/subagentActivity.js +15 -0
- package/dist/codex/subagentActivity.js.map +1 -0
- package/dist/codex/webRun.d.ts.map +1 -1
- package/dist/codex/webRun.js +2 -4
- package/dist/codex/webRun.js.map +1 -1
- package/dist/config.d.ts +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +37 -2
- package/dist/config.js.map +1 -1
- package/dist/crypto/index.d.ts +1 -1
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js +1 -1
- package/dist/crypto/index.js.map +1 -1
- package/dist/crypto/nacl-wrapper.d.ts +2 -0
- package/dist/crypto/nacl-wrapper.d.ts.map +1 -1
- package/dist/crypto/nacl-wrapper.js +10 -19
- package/dist/crypto/nacl-wrapper.js.map +1 -1
- package/dist/crypto/srp-server.js +2 -2
- package/dist/defaults.d.ts.map +1 -1
- package/dist/defaults.js +1 -1
- package/dist/defaults.js.map +1 -1
- package/dist/desktop/DesktopBootstrapService.d.ts +43 -0
- package/dist/desktop/DesktopBootstrapService.d.ts.map +1 -0
- package/dist/desktop/DesktopBootstrapService.js +126 -0
- package/dist/desktop/DesktopBootstrapService.js.map +1 -0
- package/dist/desktop/providerDetection.d.ts +15 -0
- package/dist/desktop/providerDetection.d.ts.map +1 -0
- package/dist/desktop/providerDetection.js +54 -0
- package/dist/desktop/providerDetection.js.map +1 -0
- package/dist/desktop/startup.d.ts +3 -0
- package/dist/desktop/startup.d.ts.map +1 -0
- package/dist/desktop/startup.js +52 -0
- package/dist/desktop/startup.js.map +1 -0
- package/dist/dev-wrapper-client.d.ts +14 -0
- package/dist/dev-wrapper-client.d.ts.map +1 -0
- package/dist/dev-wrapper-client.js +87 -0
- package/dist/dev-wrapper-client.js.map +1 -0
- package/dist/envSettings.d.ts +5 -4
- package/dist/envSettings.d.ts.map +1 -1
- package/dist/envSettings.js +41 -7
- package/dist/envSettings.js.map +1 -1
- package/dist/frontend/static.d.ts +2 -0
- package/dist/frontend/static.d.ts.map +1 -1
- package/dist/frontend/static.js +25 -13
- package/dist/frontend/static.js.map +1 -1
- package/dist/git/authorPalette.d.ts +15 -0
- package/dist/git/authorPalette.d.ts.map +1 -0
- package/dist/git/authorPalette.js +222 -0
- package/dist/git/authorPalette.js.map +1 -0
- package/dist/git/authorPalette.test.d.ts +2 -0
- package/dist/git/authorPalette.test.d.ts.map +1 -0
- package/dist/git/authorPalette.test.js +127 -0
- package/dist/git/authorPalette.test.js.map +1 -0
- package/dist/git/binaryDiff.d.ts +10 -0
- package/dist/git/binaryDiff.d.ts.map +1 -0
- package/dist/git/binaryDiff.js +33 -0
- package/dist/git/binaryDiff.js.map +1 -0
- package/dist/git/blame.d.ts +14 -0
- package/dist/git/blame.d.ts.map +1 -0
- package/dist/git/blame.js +276 -0
- package/dist/git/blame.js.map +1 -0
- package/dist/git/diffPreviewGuards.d.ts +52 -0
- package/dist/git/diffPreviewGuards.d.ts.map +1 -0
- package/dist/git/diffPreviewGuards.js +116 -0
- package/dist/git/diffPreviewGuards.js.map +1 -0
- package/dist/git/diffResult.d.ts +32 -0
- package/dist/git/diffResult.d.ts.map +1 -0
- package/dist/git/diffResult.js +89 -0
- package/dist/git/diffResult.js.map +1 -0
- package/dist/git/fileChanges.d.ts +13 -0
- package/dist/git/fileChanges.d.ts.map +1 -0
- package/dist/git/fileChanges.js +95 -0
- package/dist/git/fileChanges.js.map +1 -0
- package/dist/git/gitExec.d.ts +42 -0
- package/dist/git/gitExec.d.ts.map +1 -0
- package/dist/git/gitExec.js +53 -0
- package/dist/git/gitExec.js.map +1 -0
- package/dist/highlighting/index.d.ts +17 -0
- package/dist/highlighting/index.d.ts.map +1 -1
- package/dist/highlighting/index.js +130 -9
- package/dist/highlighting/index.js.map +1 -1
- package/dist/highlighting/index.test.d.ts +2 -0
- package/dist/highlighting/index.test.d.ts.map +1 -0
- package/dist/highlighting/index.test.js +57 -0
- package/dist/highlighting/index.test.js.map +1 -0
- package/dist/index.js +383 -43
- package/dist/index.js.map +1 -1
- package/dist/indexes/SessionDiscoveryIndex.d.ts +11 -0
- package/dist/indexes/SessionDiscoveryIndex.d.ts.map +1 -1
- package/dist/indexes/SessionDiscoveryIndex.js +43 -11
- package/dist/indexes/SessionDiscoveryIndex.js.map +1 -1
- package/dist/indexes/SessionIndexService.d.ts +15 -3
- package/dist/indexes/SessionIndexService.d.ts.map +1 -1
- package/dist/indexes/SessionIndexService.js +100 -25
- package/dist/indexes/SessionIndexService.js.map +1 -1
- package/dist/indexes/index.d.ts +1 -1
- package/dist/indexes/index.d.ts.map +1 -1
- package/dist/indexes/index.js +1 -1
- package/dist/indexes/index.js.map +1 -1
- package/dist/lib/coalescingSaver.d.ts +32 -0
- package/dist/lib/coalescingSaver.d.ts.map +1 -0
- package/dist/lib/coalescingSaver.js +68 -0
- package/dist/lib/coalescingSaver.js.map +1 -0
- package/dist/lib/lruCollections.d.ts +14 -0
- package/dist/lib/lruCollections.d.ts.map +1 -0
- package/dist/lib/lruCollections.js +21 -0
- package/dist/lib/lruCollections.js.map +1 -0
- package/dist/lib/sourceVersionedSingleFlight.d.ts +90 -0
- package/dist/lib/sourceVersionedSingleFlight.d.ts.map +1 -0
- package/dist/lib/sourceVersionedSingleFlight.js +256 -0
- package/dist/lib/sourceVersionedSingleFlight.js.map +1 -0
- package/dist/logging/logger.d.ts.map +1 -1
- package/dist/logging/logger.js +23 -20
- package/dist/logging/logger.js.map +1 -1
- package/dist/maintenance/server.d.ts +2 -0
- package/dist/maintenance/server.d.ts.map +1 -1
- package/dist/maintenance/server.js +51 -8
- package/dist/maintenance/server.js.map +1 -1
- package/dist/media/ToolResultMediaMessageMaterializer.d.ts +11 -0
- package/dist/media/ToolResultMediaMessageMaterializer.d.ts.map +1 -0
- package/dist/media/ToolResultMediaMessageMaterializer.js +155 -0
- package/dist/media/ToolResultMediaMessageMaterializer.js.map +1 -0
- package/dist/media/ToolResultMediaStore.d.ts +64 -0
- package/dist/media/ToolResultMediaStore.d.ts.map +1 -0
- package/dist/media/ToolResultMediaStore.js +624 -0
- package/dist/media/ToolResultMediaStore.js.map +1 -0
- package/dist/media/inlineImageData.d.ts +24 -0
- package/dist/media/inlineImageData.d.ts.map +1 -0
- package/dist/media/inlineImageData.js +159 -0
- package/dist/media/inlineImageData.js.map +1 -0
- package/dist/metadata/ProjectCodeNameRegistry.d.ts +26 -0
- package/dist/metadata/ProjectCodeNameRegistry.d.ts.map +1 -0
- package/dist/metadata/ProjectCodeNameRegistry.js +156 -0
- package/dist/metadata/ProjectCodeNameRegistry.js.map +1 -0
- package/dist/metadata/ProjectMetadataService.d.ts +29 -6
- package/dist/metadata/ProjectMetadataService.d.ts.map +1 -1
- package/dist/metadata/ProjectMetadataService.js +205 -23
- package/dist/metadata/ProjectMetadataService.js.map +1 -1
- package/dist/metadata/SessionMetadataService.d.ts +105 -10
- package/dist/metadata/SessionMetadataService.d.ts.map +1 -1
- package/dist/metadata/SessionMetadataService.js +286 -41
- package/dist/metadata/SessionMetadataService.js.map +1 -1
- package/dist/metadata/index.d.ts +2 -2
- package/dist/metadata/index.d.ts.map +1 -1
- package/dist/metadata/index.js.map +1 -1
- package/dist/middleware/auth.d.ts +3 -0
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +15 -6
- package/dist/middleware/auth.js.map +1 -1
- package/dist/middleware/authenticated-transport.d.ts +21 -0
- package/dist/middleware/authenticated-transport.d.ts.map +1 -0
- package/dist/middleware/authenticated-transport.js +12 -0
- package/dist/middleware/authenticated-transport.js.map +1 -0
- package/dist/middleware/error-handler.d.ts +14 -0
- package/dist/middleware/error-handler.d.ts.map +1 -0
- package/dist/middleware/error-handler.js +40 -0
- package/dist/middleware/error-handler.js.map +1 -0
- package/dist/middleware/file-access.d.ts +5 -0
- package/dist/middleware/file-access.d.ts.map +1 -1
- package/dist/middleware/file-access.js +5 -2
- package/dist/middleware/file-access.js.map +1 -1
- package/dist/notifications/NotificationService.d.ts.map +1 -1
- package/dist/notifications/NotificationService.js +2 -1
- package/dist/notifications/NotificationService.js.map +1 -1
- package/dist/projects/codex-scanner.d.ts +1 -0
- package/dist/projects/codex-scanner.d.ts.map +1 -1
- package/dist/projects/codex-scanner.js +5 -2
- package/dist/projects/codex-scanner.js.map +1 -1
- package/dist/projects/gemini-project-map.d.ts +7 -1
- package/dist/projects/gemini-project-map.d.ts.map +1 -1
- package/dist/projects/gemini-project-map.js +68 -27
- package/dist/projects/gemini-project-map.js.map +1 -1
- package/dist/projects/gemini-scanner.d.ts.map +1 -1
- package/dist/projects/gemini-scanner.js.map +1 -1
- package/dist/projects/glossaryIndexService.d.ts +77 -0
- package/dist/projects/glossaryIndexService.d.ts.map +1 -0
- package/dist/projects/glossaryIndexService.js +547 -0
- package/dist/projects/glossaryIndexService.js.map +1 -0
- package/dist/projects/managedProjectDir.d.ts +25 -0
- package/dist/projects/managedProjectDir.d.ts.map +1 -0
- package/dist/projects/managedProjectDir.js +77 -0
- package/dist/projects/managedProjectDir.js.map +1 -0
- package/dist/projects/paths.d.ts +2 -0
- package/dist/projects/paths.d.ts.map +1 -1
- package/dist/projects/paths.js +9 -4
- package/dist/projects/paths.js.map +1 -1
- package/dist/projects/projectGlossarySubscriptionManager.d.ts +87 -0
- package/dist/projects/projectGlossarySubscriptionManager.d.ts.map +1 -0
- package/dist/projects/projectGlossarySubscriptionManager.js +622 -0
- package/dist/projects/projectGlossarySubscriptionManager.js.map +1 -0
- package/dist/projects/projectPathIndex.d.ts +224 -0
- package/dist/projects/projectPathIndex.d.ts.map +1 -0
- package/dist/projects/projectPathIndex.js +1087 -0
- package/dist/projects/projectPathIndex.js.map +1 -0
- package/dist/projects/projectStoragePolicy.d.ts +41 -0
- package/dist/projects/projectStoragePolicy.d.ts.map +1 -0
- package/dist/projects/projectStoragePolicy.js +285 -0
- package/dist/projects/projectStoragePolicy.js.map +1 -0
- package/dist/projects/projectWorktreeCoverage.d.ts +14 -0
- package/dist/projects/projectWorktreeCoverage.d.ts.map +1 -0
- package/dist/projects/projectWorktreeCoverage.js +94 -0
- package/dist/projects/projectWorktreeCoverage.js.map +1 -0
- package/dist/projects/projectWorktreeProjection.d.ts +46 -0
- package/dist/projects/projectWorktreeProjection.d.ts.map +1 -0
- package/dist/projects/projectWorktreeProjection.js +275 -0
- package/dist/projects/projectWorktreeProjection.js.map +1 -0
- package/dist/projects/projectWorktreeScan.d.ts +23 -0
- package/dist/projects/projectWorktreeScan.d.ts.map +1 -0
- package/dist/projects/projectWorktreeScan.js +378 -0
- package/dist/projects/projectWorktreeScan.js.map +1 -0
- package/dist/projects/projectWorktreeSubscriptionManager.d.ts +131 -0
- package/dist/projects/projectWorktreeSubscriptionManager.d.ts.map +1 -0
- package/dist/projects/projectWorktreeSubscriptionManager.js +1314 -0
- package/dist/projects/projectWorktreeSubscriptionManager.js.map +1 -0
- package/dist/projects/scanner.d.ts +16 -2
- package/dist/projects/scanner.d.ts.map +1 -1
- package/dist/projects/scanner.js +85 -24
- package/dist/projects/scanner.js.map +1 -1
- package/dist/push/InactivityPushNotifier.d.ts +0 -5
- package/dist/push/InactivityPushNotifier.d.ts.map +1 -1
- package/dist/push/InactivityPushNotifier.js +2 -17
- package/dist/push/InactivityPushNotifier.js.map +1 -1
- package/dist/push/PushNotifier.d.ts +0 -4
- package/dist/push/PushNotifier.d.ts.map +1 -1
- package/dist/push/PushNotifier.js +2 -17
- package/dist/push/PushNotifier.js.map +1 -1
- package/dist/push/PushService.d.ts +2 -8
- package/dist/push/PushService.d.ts.map +1 -1
- package/dist/push/PushService.js +8 -22
- package/dist/push/PushService.js.map +1 -1
- package/dist/push/routes.d.ts.map +1 -1
- package/dist/push/routes.js +8 -0
- package/dist/push/routes.js.map +1 -1
- package/dist/recents/RecentsService.d.ts +1 -6
- package/dist/recents/RecentsService.d.ts.map +1 -1
- package/dist/recents/RecentsService.js +2 -20
- package/dist/recents/RecentsService.js.map +1 -1
- package/dist/remote-access/RemoteAccessService.d.ts +1 -6
- package/dist/remote-access/RemoteAccessService.d.ts.map +1 -1
- package/dist/remote-access/RemoteAccessService.js +2 -18
- package/dist/remote-access/RemoteAccessService.js.map +1 -1
- package/dist/remote-access/RemoteSessionService.d.ts +12 -7
- package/dist/remote-access/RemoteSessionService.d.ts.map +1 -1
- package/dist/remote-access/RemoteSessionService.js +65 -40
- package/dist/remote-access/RemoteSessionService.js.map +1 -1
- package/dist/review/ReviewCaptureService.d.ts +20 -0
- package/dist/review/ReviewCaptureService.d.ts.map +1 -0
- package/dist/review/ReviewCaptureService.js +441 -0
- package/dist/review/ReviewCaptureService.js.map +1 -0
- package/dist/review/ReviewCommentService.d.ts +171 -0
- package/dist/review/ReviewCommentService.d.ts.map +1 -0
- package/dist/review/ReviewCommentService.js +1240 -0
- package/dist/review/ReviewCommentService.js.map +1 -0
- package/dist/review/ReviewResponseObserver.d.ts +21 -0
- package/dist/review/ReviewResponseObserver.d.ts.map +1 -0
- package/dist/review/ReviewResponseObserver.js +29 -0
- package/dist/review/ReviewResponseObserver.js.map +1 -0
- package/dist/review/composeReviewTurn.d.ts +37 -0
- package/dist/review/composeReviewTurn.d.ts.map +1 -0
- package/dist/review/composeReviewTurn.js +128 -0
- package/dist/review/composeReviewTurn.js.map +1 -0
- package/dist/review/relocateAnchors.d.ts +41 -0
- package/dist/review/relocateAnchors.d.ts.map +1 -0
- package/dist/review/relocateAnchors.js +136 -0
- package/dist/review/relocateAnchors.js.map +1 -0
- package/dist/review/repositoryPath.d.ts +7 -0
- package/dist/review/repositoryPath.d.ts.map +1 -0
- package/dist/review/repositoryPath.js +54 -0
- package/dist/review/repositoryPath.js.map +1 -0
- package/dist/review/reviewSessionLauncher.d.ts +43 -0
- package/dist/review/reviewSessionLauncher.d.ts.map +1 -0
- package/dist/review/reviewSessionLauncher.js +143 -0
- package/dist/review/reviewSessionLauncher.js.map +1 -0
- package/dist/routes/bang-commands.d.ts +33 -0
- package/dist/routes/bang-commands.d.ts.map +1 -0
- package/dist/routes/bang-commands.js +292 -0
- package/dist/routes/bang-commands.js.map +1 -0
- package/dist/routes/browser-debug.d.ts +5 -0
- package/dist/routes/browser-debug.d.ts.map +1 -0
- package/dist/routes/browser-debug.js +182 -0
- package/dist/routes/browser-debug.js.map +1 -0
- package/dist/routes/browser-settings-backup.d.ts +7 -0
- package/dist/routes/browser-settings-backup.d.ts.map +1 -0
- package/dist/routes/browser-settings-backup.js +35 -0
- package/dist/routes/browser-settings-backup.js.map +1 -0
- package/dist/routes/desktop-bootstrap.d.ts +11 -0
- package/dist/routes/desktop-bootstrap.d.ts.map +1 -0
- package/dist/routes/desktop-bootstrap.js +84 -0
- package/dist/routes/desktop-bootstrap.js.map +1 -0
- package/dist/routes/files.d.ts +5 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/files.js +318 -305
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/git-browse.d.ts +21 -0
- package/dist/routes/git-browse.d.ts.map +1 -0
- package/dist/routes/git-browse.js +490 -0
- package/dist/routes/git-browse.js.map +1 -0
- package/dist/routes/git-file-projections.d.ts +21 -0
- package/dist/routes/git-file-projections.d.ts.map +1 -0
- package/dist/routes/git-file-projections.js +256 -0
- package/dist/routes/git-file-projections.js.map +1 -0
- package/dist/routes/git-file-revision.d.ts +10 -0
- package/dist/routes/git-file-revision.d.ts.map +1 -0
- package/dist/routes/git-file-revision.js +164 -0
- package/dist/routes/git-file-revision.js.map +1 -0
- package/dist/routes/git-inclusive-to-head.d.ts +5 -0
- package/dist/routes/git-inclusive-to-head.d.ts.map +1 -0
- package/dist/routes/git-inclusive-to-head.js +36 -0
- package/dist/routes/git-inclusive-to-head.js.map +1 -0
- package/dist/routes/git-incoming-commits.d.ts +13 -0
- package/dist/routes/git-incoming-commits.d.ts.map +1 -0
- package/dist/routes/git-incoming-commits.js +94 -0
- package/dist/routes/git-incoming-commits.js.map +1 -0
- package/dist/routes/git-projection-diff.d.ts +12 -0
- package/dist/routes/git-projection-diff.d.ts.map +1 -0
- package/dist/routes/git-projection-diff.js +158 -0
- package/dist/routes/git-projection-diff.js.map +1 -0
- package/dist/routes/git-projections.d.ts +5 -0
- package/dist/routes/git-projections.d.ts.map +1 -0
- package/dist/routes/git-projections.js +34 -0
- package/dist/routes/git-projections.js.map +1 -0
- package/dist/routes/git-status.d.ts +4 -0
- package/dist/routes/git-status.d.ts.map +1 -1
- package/dist/routes/git-status.js +267 -133
- package/dist/routes/git-status.js.map +1 -1
- package/dist/routes/git-working-tree-files.d.ts +22 -0
- package/dist/routes/git-working-tree-files.d.ts.map +1 -0
- package/dist/routes/git-working-tree-files.js +143 -0
- package/dist/routes/git-working-tree-files.js.map +1 -0
- package/dist/routes/global-sessions.d.ts +23 -2
- package/dist/routes/global-sessions.d.ts.map +1 -1
- package/dist/routes/global-sessions.js +129 -6
- package/dist/routes/global-sessions.js.map +1 -1
- package/dist/routes/glossary-artifacts.d.ts +9 -0
- package/dist/routes/glossary-artifacts.d.ts.map +1 -0
- package/dist/routes/glossary-artifacts.js +23 -0
- package/dist/routes/glossary-artifacts.js.map +1 -0
- package/dist/routes/host-agent-processes.d.ts +11 -0
- package/dist/routes/host-agent-processes.d.ts.map +1 -0
- package/dist/routes/host-agent-processes.js +44 -0
- package/dist/routes/host-agent-processes.js.map +1 -0
- package/dist/routes/inbox.d.ts +2 -0
- package/dist/routes/inbox.d.ts.map +1 -1
- package/dist/routes/inbox.js +62 -11
- package/dist/routes/inbox.js.map +1 -1
- package/dist/routes/limited-json-body.d.ts +7 -0
- package/dist/routes/limited-json-body.d.ts.map +1 -0
- package/dist/routes/limited-json-body.js +71 -0
- package/dist/routes/limited-json-body.js.map +1 -0
- package/dist/routes/local-file.d.ts +2 -0
- package/dist/routes/local-file.d.ts.map +1 -1
- package/dist/routes/local-file.js +225 -99
- package/dist/routes/local-file.js.map +1 -1
- package/dist/routes/local-image.d.ts +2 -0
- package/dist/routes/local-image.d.ts.map +1 -1
- package/dist/routes/local-image.js +34 -11
- package/dist/routes/local-image.js.map +1 -1
- package/dist/routes/local-resource-policy.d.ts +2 -0
- package/dist/routes/local-resource-policy.d.ts.map +1 -1
- package/dist/routes/local-resource-policy.js +0 -0
- package/dist/routes/local-resource-policy.js.map +1 -1
- package/dist/routes/mutable-file-cache.d.ts +28 -0
- package/dist/routes/mutable-file-cache.d.ts.map +1 -0
- package/dist/routes/mutable-file-cache.js +73 -0
- package/dist/routes/mutable-file-cache.js.map +1 -0
- package/dist/routes/onboarding.d.ts +1 -0
- package/dist/routes/onboarding.d.ts.map +1 -1
- package/dist/routes/onboarding.js +3 -0
- package/dist/routes/onboarding.js.map +1 -1
- package/dist/routes/processes.d.ts +10 -1
- package/dist/routes/processes.d.ts.map +1 -1
- package/dist/routes/processes.js +84 -14
- package/dist/routes/processes.js.map +1 -1
- package/dist/routes/project-queue-response.d.ts.map +1 -1
- package/dist/routes/project-queue-response.js +4 -3
- package/dist/routes/project-queue-response.js.map +1 -1
- package/dist/routes/project-queue.d.ts.map +1 -1
- package/dist/routes/project-queue.js +3 -0
- package/dist/routes/project-queue.js.map +1 -1
- package/dist/routes/project-session-defaults.d.ts +9 -0
- package/dist/routes/project-session-defaults.d.ts.map +1 -0
- package/dist/routes/project-session-defaults.js +104 -0
- package/dist/routes/project-session-defaults.js.map +1 -0
- package/dist/routes/projectParam.d.ts +9 -0
- package/dist/routes/projectParam.d.ts.map +1 -0
- package/dist/routes/projectParam.js +19 -0
- package/dist/routes/projectParam.js.map +1 -0
- package/dist/routes/projects.d.ts +4 -0
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/projects.js +81 -2
- package/dist/routes/projects.js.map +1 -1
- package/dist/routes/provider-host.d.ts +12 -0
- package/dist/routes/provider-host.d.ts.map +1 -0
- package/dist/routes/provider-host.js +184 -0
- package/dist/routes/provider-host.js.map +1 -0
- package/dist/routes/providers.d.ts +10 -1
- package/dist/routes/providers.d.ts.map +1 -1
- package/dist/routes/providers.js +161 -42
- package/dist/routes/providers.js.map +1 -1
- package/dist/routes/public-file-shares.d.ts +18 -0
- package/dist/routes/public-file-shares.d.ts.map +1 -0
- package/dist/routes/public-file-shares.js +163 -0
- package/dist/routes/public-file-shares.js.map +1 -0
- package/dist/routes/public-share-json-stream.d.ts +5 -0
- package/dist/routes/public-share-json-stream.d.ts.map +1 -0
- package/dist/routes/public-share-json-stream.js +159 -0
- package/dist/routes/public-share-json-stream.js.map +1 -0
- package/dist/routes/public-share-management-freeze.d.ts +5 -0
- package/dist/routes/public-share-management-freeze.d.ts.map +1 -0
- package/dist/routes/public-share-management-freeze.js +89 -0
- package/dist/routes/public-share-management-freeze.js.map +1 -0
- package/dist/routes/public-share-management.d.ts +7 -0
- package/dist/routes/public-share-management.d.ts.map +1 -0
- package/dist/routes/public-share-management.js +136 -0
- package/dist/routes/public-share-management.js.map +1 -0
- package/dist/routes/public-shares.d.ts +15 -3
- package/dist/routes/public-shares.d.ts.map +1 -1
- package/dist/routes/public-shares.js +483 -143
- package/dist/routes/public-shares.js.map +1 -1
- package/dist/routes/recents.d.ts.map +1 -1
- package/dist/routes/recents.js +3 -3
- package/dist/routes/recents.js.map +1 -1
- package/dist/routes/review-comments.d.ts +27 -0
- package/dist/routes/review-comments.d.ts.map +1 -0
- package/dist/routes/review-comments.js +443 -0
- package/dist/routes/review-comments.js.map +1 -0
- package/dist/routes/review-inbox.d.ts +13 -0
- package/dist/routes/review-inbox.d.ts.map +1 -0
- package/dist/routes/review-inbox.js +102 -0
- package/dist/routes/review-inbox.js.map +1 -0
- package/dist/routes/review-submissions.d.ts +13 -0
- package/dist/routes/review-submissions.d.ts.map +1 -0
- package/dist/routes/review-submissions.js +248 -0
- package/dist/routes/review-submissions.js.map +1 -0
- package/dist/routes/security-clients.d.ts +4 -0
- package/dist/routes/security-clients.d.ts.map +1 -0
- package/dist/routes/security-clients.js +118 -0
- package/dist/routes/security-clients.js.map +1 -0
- package/dist/routes/server-admin.d.ts +2 -1
- package/dist/routes/server-admin.d.ts.map +1 -1
- package/dist/routes/server-admin.js +4 -1
- package/dist/routes/server-admin.js.map +1 -1
- package/dist/routes/server-info.d.ts +2 -1
- package/dist/routes/server-info.d.ts.map +1 -1
- package/dist/routes/server-info.js +2 -1
- package/dist/routes/server-info.js.map +1 -1
- package/dist/routes/session-archive.d.ts +13 -0
- package/dist/routes/session-archive.d.ts.map +1 -0
- package/dist/routes/session-archive.js +26 -0
- package/dist/routes/session-archive.js.map +1 -0
- package/dist/routes/session-claude-resume-guard.d.ts.map +1 -1
- package/dist/routes/session-claude-resume-guard.js +7 -4
- package/dist/routes/session-claude-resume-guard.js.map +1 -1
- package/dist/routes/session-done.d.ts +11 -0
- package/dist/routes/session-done.d.ts.map +1 -0
- package/dist/routes/session-done.js +20 -0
- package/dist/routes/session-done.js.map +1 -0
- package/dist/routes/session-existing-identity.d.ts +23 -0
- package/dist/routes/session-existing-identity.d.ts.map +1 -0
- package/dist/routes/session-existing-identity.js +73 -0
- package/dist/routes/session-existing-identity.js.map +1 -0
- package/dist/routes/session-index.d.ts.map +1 -1
- package/dist/routes/session-index.js.map +1 -1
- package/dist/routes/session-metadata-patch.d.ts +1 -0
- package/dist/routes/session-metadata-patch.d.ts.map +1 -1
- package/dist/routes/session-metadata-patch.js +9 -2
- package/dist/routes/session-metadata-patch.js.map +1 -1
- package/dist/routes/session-provider-resolution.d.ts +4 -2
- package/dist/routes/session-provider-resolution.d.ts.map +1 -1
- package/dist/routes/session-provider-resolution.js +3 -1
- package/dist/routes/session-provider-resolution.js.map +1 -1
- package/dist/routes/session-queue-summaries.d.ts +2 -0
- package/dist/routes/session-queue-summaries.d.ts.map +1 -1
- package/dist/routes/session-queue-summaries.js +24 -11
- package/dist/routes/session-queue-summaries.js.map +1 -1
- package/dist/routes/session-recovered-queue.d.ts +1 -1
- package/dist/routes/session-recovered-queue.d.ts.map +1 -1
- package/dist/routes/session-recovered-queue.js +1 -0
- package/dist/routes/session-recovered-queue.js.map +1 -1
- package/dist/routes/session-terminate.d.ts +13 -0
- package/dist/routes/session-terminate.d.ts.map +1 -0
- package/dist/routes/session-terminate.js +24 -0
- package/dist/routes/session-terminate.js.map +1 -0
- package/dist/routes/session-wake.d.ts +4 -0
- package/dist/routes/session-wake.d.ts.map +1 -0
- package/dist/routes/session-wake.js +54 -0
- package/dist/routes/session-wake.js.map +1 -0
- package/dist/routes/sessions.d.ts +11 -0
- package/dist/routes/sessions.d.ts.map +1 -1
- package/dist/routes/sessions.js +1566 -460
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings-parsers.d.ts +5 -1
- package/dist/routes/settings-parsers.d.ts.map +1 -1
- package/dist/routes/settings-parsers.js +193 -13
- package/dist/routes/settings-parsers.js.map +1 -1
- package/dist/routes/settings.d.ts +19 -0
- package/dist/routes/settings.d.ts.map +1 -1
- package/dist/routes/settings.js +284 -22
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tool-result-media.d.ts +10 -0
- package/dist/routes/tool-result-media.d.ts.map +1 -0
- package/dist/routes/tool-result-media.js +40 -0
- package/dist/routes/tool-result-media.js.map +1 -0
- package/dist/routes/untrusted-file-response.d.ts +18 -0
- package/dist/routes/untrusted-file-response.d.ts.map +1 -0
- package/dist/routes/untrusted-file-response.js +95 -0
- package/dist/routes/untrusted-file-response.js.map +1 -0
- package/dist/routes/upload.d.ts +2 -0
- package/dist/routes/upload.d.ts.map +1 -1
- package/dist/routes/upload.js +63 -31
- package/dist/routes/upload.js.map +1 -1
- package/dist/routes/version.d.ts +45 -3
- package/dist/routes/version.d.ts.map +1 -1
- package/dist/routes/version.js +126 -13
- package/dist/routes/version.js.map +1 -1
- package/dist/routes/workstreams.d.ts.map +1 -1
- package/dist/routes/workstreams.js.map +1 -1
- package/dist/routes/ws-message-router.d.ts +2 -1
- package/dist/routes/ws-message-router.d.ts.map +1 -1
- package/dist/routes/ws-message-router.js +12 -9
- package/dist/routes/ws-message-router.js.map +1 -1
- package/dist/routes/ws-relay-handlers.d.ts +95 -17
- package/dist/routes/ws-relay-handlers.d.ts.map +1 -1
- package/dist/routes/ws-relay-handlers.js +813 -71
- package/dist/routes/ws-relay-handlers.js.map +1 -1
- package/dist/routes/ws-relay.d.ts +24 -0
- package/dist/routes/ws-relay.d.ts.map +1 -1
- package/dist/routes/ws-relay.js +27 -6
- package/dist/routes/ws-relay.js.map +1 -1
- package/dist/routes/ws-srp-handlers.d.ts +2 -1
- package/dist/routes/ws-srp-handlers.d.ts.map +1 -1
- package/dist/routes/ws-srp-handlers.js +45 -2
- package/dist/routes/ws-srp-handlers.js.map +1 -1
- package/dist/routes/ws-transport-auth.d.ts +7 -0
- package/dist/routes/ws-transport-auth.d.ts.map +1 -1
- package/dist/routes/ws-transport-auth.js +7 -0
- package/dist/routes/ws-transport-auth.js.map +1 -1
- package/dist/routes/ws-transport-message-auth.d.ts.map +1 -1
- package/dist/routes/ws-transport-message-auth.js +54 -19
- package/dist/routes/ws-transport-message-auth.js.map +1 -1
- package/dist/sdk/cli-detection.d.ts +34 -4
- package/dist/sdk/cli-detection.d.ts.map +1 -1
- package/dist/sdk/cli-detection.js +134 -31
- package/dist/sdk/cli-detection.js.map +1 -1
- package/dist/sdk/messageQueue.d.ts +22 -1
- package/dist/sdk/messageQueue.d.ts.map +1 -1
- package/dist/sdk/messageQueue.js +63 -3
- package/dist/sdk/messageQueue.js.map +1 -1
- package/dist/sdk/mock.d.ts +24 -1
- package/dist/sdk/mock.d.ts.map +1 -1
- package/dist/sdk/mock.js +71 -0
- package/dist/sdk/mock.js.map +1 -1
- package/dist/sdk/providers/__mocks__/claude.d.ts +6 -0
- package/dist/sdk/providers/__mocks__/claude.d.ts.map +1 -1
- package/dist/sdk/providers/__mocks__/claude.js +9 -0
- package/dist/sdk/providers/__mocks__/claude.js.map +1 -1
- package/dist/sdk/providers/__mocks__/factory.d.ts.map +1 -1
- package/dist/sdk/providers/__mocks__/factory.js +5 -1
- package/dist/sdk/providers/__mocks__/factory.js.map +1 -1
- package/dist/sdk/providers/__mocks__/index.d.ts +1 -1
- package/dist/sdk/providers/__mocks__/index.d.ts.map +1 -1
- package/dist/sdk/providers/__mocks__/index.js +1 -1
- package/dist/sdk/providers/__mocks__/index.js.map +1 -1
- package/dist/sdk/providers/acp/client.d.ts +26 -3
- package/dist/sdk/providers/acp/client.d.ts.map +1 -1
- package/dist/sdk/providers/acp/client.js +47 -8
- package/dist/sdk/providers/acp/client.js.map +1 -1
- package/dist/sdk/providers/agentctl-session-env.d.ts +3 -2
- package/dist/sdk/providers/agentctl-session-env.d.ts.map +1 -1
- package/dist/sdk/providers/agentctl-session-env.js +35 -9
- package/dist/sdk/providers/agentctl-session-env.js.map +1 -1
- package/dist/sdk/providers/claude-additional-models.d.ts +5 -0
- package/dist/sdk/providers/claude-additional-models.d.ts.map +1 -0
- package/dist/sdk/providers/claude-additional-models.js +55 -0
- package/dist/sdk/providers/claude-additional-models.js.map +1 -0
- package/dist/sdk/providers/claude-gateway-launcher.d.ts +74 -0
- package/dist/sdk/providers/claude-gateway-launcher.d.ts.map +1 -0
- package/dist/sdk/providers/claude-gateway-launcher.js +338 -0
- package/dist/sdk/providers/claude-gateway-launcher.js.map +1 -0
- package/dist/sdk/providers/claude-gateway.d.ts +67 -0
- package/dist/sdk/providers/claude-gateway.d.ts.map +1 -0
- package/dist/sdk/providers/claude-gateway.js +354 -0
- package/dist/sdk/providers/claude-gateway.js.map +1 -0
- package/dist/sdk/providers/claude-ollama.d.ts +3 -1
- package/dist/sdk/providers/claude-ollama.d.ts.map +1 -1
- package/dist/sdk/providers/claude-ollama.js +7 -4
- package/dist/sdk/providers/claude-ollama.js.map +1 -1
- package/dist/sdk/providers/claude-retention.d.ts +2 -0
- package/dist/sdk/providers/claude-retention.d.ts.map +1 -1
- package/dist/sdk/providers/claude-retention.js +55 -2
- package/dist/sdk/providers/claude-retention.js.map +1 -1
- package/dist/sdk/providers/claude-steer-background.d.ts +30 -0
- package/dist/sdk/providers/claude-steer-background.d.ts.map +1 -0
- package/dist/sdk/providers/claude-steer-background.js +102 -0
- package/dist/sdk/providers/claude-steer-background.js.map +1 -0
- package/dist/sdk/providers/claude.d.ts +53 -8
- package/dist/sdk/providers/claude.d.ts.map +1 -1
- package/dist/sdk/providers/claude.js +517 -111
- package/dist/sdk/providers/claude.js.map +1 -1
- package/dist/sdk/providers/codex-account-commands.d.ts +24 -0
- package/dist/sdk/providers/codex-account-commands.d.ts.map +1 -0
- package/dist/sdk/providers/codex-account-commands.js +261 -0
- package/dist/sdk/providers/codex-account-commands.js.map +1 -0
- package/dist/sdk/providers/codex-model-catalog.d.ts +4 -1
- package/dist/sdk/providers/codex-model-catalog.d.ts.map +1 -1
- package/dist/sdk/providers/codex-model-catalog.js +149 -100
- package/dist/sdk/providers/codex-model-catalog.js.map +1 -1
- package/dist/sdk/providers/codex-notification-guards.d.ts +16 -1
- package/dist/sdk/providers/codex-notification-guards.d.ts.map +1 -1
- package/dist/sdk/providers/codex-notification-guards.js +50 -0
- package/dist/sdk/providers/codex-notification-guards.js.map +1 -1
- package/dist/sdk/providers/codex-oss.d.ts +5 -0
- package/dist/sdk/providers/codex-oss.d.ts.map +1 -1
- package/dist/sdk/providers/codex-oss.js +25 -3
- package/dist/sdk/providers/codex-oss.js.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationFailure.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationFailure.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationFailure.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationFailure.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationItem.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/ImageGenerationItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.d.ts +7 -6
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ResponseItem.d.ts +19 -15
- package/dist/sdk/providers/codex-protocol/generated/ResponseItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ResponseItemId.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/ResponseItemId.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/ResponseItemId.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/ResponseItemId.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/SleepItem.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/SleepItem.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/SleepItem.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/SleepItem.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/WebSearchItem.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/WebSearchItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/AgentMessageDelivery.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/AgentMessageDelivery.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/AgentMessageDelivery.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/AgentMessageDelivery.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CodexErrorInfo.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CodexErrorInfo.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CollabAgentTool.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CollabAgentTool.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CollabAgentToolCallStatus.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CollabAgentToolCallStatus.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandAction.d.ts +2 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandAction.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionApprovalKind.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionApprovalKind.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionApprovalKind.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionApprovalKind.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionRequestApprovalParams.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionRequestApprovalParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CyberAccessProgram.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CyberAccessProgram.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CyberAccessProgram.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CyberAccessProgram.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolCallOutputContentItem.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolCallOutputContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/FileSystemSpecialPath.d.ts +3 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/FileSystemSpecialPath.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.d.ts +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentErrorDetails.d.ts +16 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentErrorDetails.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentErrorDetails.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentErrorDetails.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentSteer.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentSteer.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentSteer.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/MisalignmentSteer.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillDependencies.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillDependencies.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillDependencies.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillDependencies.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillErrorInfo.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillErrorInfo.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillErrorInfo.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillErrorInfo.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillInterface.d.ts +18 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillInterface.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillInterface.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillInterface.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillMetadata.d.ts +22 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillMetadata.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillMetadata.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillMetadata.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillScope.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillScope.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillScope.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillScope.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillToolDependency.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillToolDependency.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillToolDependency.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillToolDependency.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListEntry.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListEntry.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListEntry.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListEntry.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListParams.d.ts +11 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListResponse.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SkillsListResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts +18 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.d.ts +14 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts +20 -3
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadParams.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts +3 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts +14 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSection.d.ts +19 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSection.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSection.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSection.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSectionAppearance.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSectionAppearance.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSectionAppearance.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSectionAppearance.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TokenUsageBreakdown.d.ts +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TokenUsageBreakdown.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ToolRequestUserInputParams.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ToolRequestUserInputParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnEnvironmentParams.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnEnvironmentParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnError.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnError.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStep.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStep.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStep.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStep.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStepStatus.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStepStatus.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStepStatus.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanStepStatus.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanUpdatedNotification.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanUpdatedNotification.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanUpdatedNotification.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnPlanUpdatedNotification.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateParams.d.ts +29 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateResponse.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateStatus.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateStatus.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateStatus.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSettingsUpdateStatus.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts +19 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnToolOutput.d.ts +7 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnToolOutput.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnToolOutput.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnToolOutput.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/index.d.ts +7 -0
- package/dist/sdk/providers/codex-protocol/index.d.ts.map +1 -1
- package/dist/sdk/providers/codex-summary-helpers.d.ts.map +1 -1
- package/dist/sdk/providers/codex-summary-helpers.js +1 -1
- package/dist/sdk/providers/codex-summary-helpers.js.map +1 -1
- package/dist/sdk/providers/codex.d.ts +50 -3
- package/dist/sdk/providers/codex.d.ts.map +1 -1
- package/dist/sdk/providers/codex.js +1277 -230
- package/dist/sdk/providers/codex.js.map +1 -1
- package/dist/sdk/providers/env-filter.d.ts +7 -0
- package/dist/sdk/providers/env-filter.d.ts.map +1 -1
- package/dist/sdk/providers/env-filter.js +21 -0
- package/dist/sdk/providers/env-filter.js.map +1 -1
- package/dist/sdk/providers/gemini-acp.d.ts.map +1 -1
- package/dist/sdk/providers/gemini-acp.js +5 -4
- package/dist/sdk/providers/gemini-acp.js.map +1 -1
- package/dist/sdk/providers/gemini.d.ts.map +1 -1
- package/dist/sdk/providers/gemini.js +6 -7
- package/dist/sdk/providers/gemini.js.map +1 -1
- package/dist/sdk/providers/grok-acp.d.ts +57 -29
- package/dist/sdk/providers/grok-acp.d.ts.map +1 -1
- package/dist/sdk/providers/grok-acp.js +458 -214
- package/dist/sdk/providers/grok-acp.js.map +1 -1
- package/dist/sdk/providers/grok-interject-text.d.ts +19 -0
- package/dist/sdk/providers/grok-interject-text.d.ts.map +1 -0
- package/dist/sdk/providers/grok-interject-text.js +43 -0
- package/dist/sdk/providers/grok-interject-text.js.map +1 -0
- package/dist/sdk/providers/grok-tool-normalization.d.ts +38 -0
- package/dist/sdk/providers/grok-tool-normalization.d.ts.map +1 -0
- package/dist/sdk/providers/grok-tool-normalization.js +938 -0
- package/dist/sdk/providers/grok-tool-normalization.js.map +1 -0
- package/dist/sdk/providers/index.d.ts +26 -0
- package/dist/sdk/providers/index.d.ts.map +1 -1
- package/dist/sdk/providers/index.js +70 -3
- package/dist/sdk/providers/index.js.map +1 -1
- package/dist/sdk/providers/managed-codex-auth.d.ts +45 -0
- package/dist/sdk/providers/managed-codex-auth.d.ts.map +1 -0
- package/dist/sdk/providers/managed-codex-auth.js +407 -0
- package/dist/sdk/providers/managed-codex-auth.js.map +1 -0
- package/dist/sdk/providers/managed-codex-transcript-mirror.d.ts +84 -0
- package/dist/sdk/providers/managed-codex-transcript-mirror.d.ts.map +1 -0
- package/dist/sdk/providers/managed-codex-transcript-mirror.js +505 -0
- package/dist/sdk/providers/managed-codex-transcript-mirror.js.map +1 -0
- package/dist/sdk/providers/managed-runner-entry.d.ts +3 -0
- package/dist/sdk/providers/managed-runner-entry.d.ts.map +1 -0
- package/dist/sdk/providers/managed-runner-entry.js +222 -0
- package/dist/sdk/providers/managed-runner-entry.js.map +1 -0
- package/dist/sdk/providers/managed-ssh-agent-session.d.ts +36 -0
- package/dist/sdk/providers/managed-ssh-agent-session.d.ts.map +1 -0
- package/dist/sdk/providers/managed-ssh-agent-session.js +771 -0
- package/dist/sdk/providers/managed-ssh-agent-session.js.map +1 -0
- package/dist/sdk/providers/managed-ssh-diagnostic-provider.d.ts +29 -0
- package/dist/sdk/providers/managed-ssh-diagnostic-provider.d.ts.map +1 -0
- package/dist/sdk/providers/managed-ssh-diagnostic-provider.js +85 -0
- package/dist/sdk/providers/managed-ssh-diagnostic-provider.js.map +1 -0
- package/dist/sdk/providers/managed-ssh-target.d.ts +169 -0
- package/dist/sdk/providers/managed-ssh-target.d.ts.map +1 -0
- package/dist/sdk/providers/managed-ssh-target.js +1067 -0
- package/dist/sdk/providers/managed-ssh-target.js.map +1 -0
- package/dist/sdk/providers/managed-ssh-workspace.d.ts +63 -0
- package/dist/sdk/providers/managed-ssh-workspace.d.ts.map +1 -0
- package/dist/sdk/providers/managed-ssh-workspace.js +458 -0
- package/dist/sdk/providers/managed-ssh-workspace.js.map +1 -0
- package/dist/sdk/providers/opencode-binary-selection.d.ts +14 -0
- package/dist/sdk/providers/opencode-binary-selection.d.ts.map +1 -0
- package/dist/sdk/providers/opencode-binary-selection.js +37 -0
- package/dist/sdk/providers/opencode-binary-selection.js.map +1 -0
- package/dist/sdk/providers/opencode-models.d.ts +12 -4
- package/dist/sdk/providers/opencode-models.d.ts.map +1 -1
- package/dist/sdk/providers/opencode-models.js +21 -8
- package/dist/sdk/providers/opencode-models.js.map +1 -1
- package/dist/sdk/providers/opencode-tools.d.ts +10 -0
- package/dist/sdk/providers/opencode-tools.d.ts.map +1 -1
- package/dist/sdk/providers/opencode-tools.js +47 -18
- package/dist/sdk/providers/opencode-tools.js.map +1 -1
- package/dist/sdk/providers/opencode.d.ts +6 -4
- package/dist/sdk/providers/opencode.d.ts.map +1 -1
- package/dist/sdk/providers/opencode.js +94 -44
- package/dist/sdk/providers/opencode.js.map +1 -1
- package/dist/sdk/providers/pi-launch-target.d.ts +20 -0
- package/dist/sdk/providers/pi-launch-target.d.ts.map +1 -0
- package/dist/sdk/providers/pi-launch-target.js +68 -0
- package/dist/sdk/providers/pi-launch-target.js.map +1 -0
- package/dist/sdk/providers/pi-tools.d.ts.map +1 -1
- package/dist/sdk/providers/pi-tools.js +26 -0
- package/dist/sdk/providers/pi-tools.js.map +1 -1
- package/dist/sdk/providers/pi.d.ts +13 -6
- package/dist/sdk/providers/pi.d.ts.map +1 -1
- package/dist/sdk/providers/pi.js +84 -31
- package/dist/sdk/providers/pi.js.map +1 -1
- package/dist/sdk/providers/provider-runtime-fake.d.ts +10 -0
- package/dist/sdk/providers/provider-runtime-fake.d.ts.map +1 -0
- package/dist/sdk/providers/provider-runtime-fake.js +154 -0
- package/dist/sdk/providers/provider-runtime-fake.js.map +1 -0
- package/dist/sdk/providers/provider-runtime-host.d.ts +104 -0
- package/dist/sdk/providers/provider-runtime-host.d.ts.map +1 -0
- package/dist/sdk/providers/provider-runtime-host.js +888 -0
- package/dist/sdk/providers/provider-runtime-host.js.map +1 -0
- package/dist/sdk/providers/provider-runtime-socket-adapter.d.ts +15 -0
- package/dist/sdk/providers/provider-runtime-socket-adapter.d.ts.map +1 -0
- package/dist/sdk/providers/provider-runtime-socket-adapter.js +106 -0
- package/dist/sdk/providers/provider-runtime-socket-adapter.js.map +1 -0
- package/dist/sdk/providers/provider-runtime-stdio.d.ts +61 -0
- package/dist/sdk/providers/provider-runtime-stdio.d.ts.map +1 -0
- package/dist/sdk/providers/provider-runtime-stdio.js +527 -0
- package/dist/sdk/providers/provider-runtime-stdio.js.map +1 -0
- package/dist/sdk/providers/provider-runtime-worker.d.ts +2 -0
- package/dist/sdk/providers/provider-runtime-worker.d.ts.map +1 -0
- package/dist/sdk/providers/provider-runtime-worker.js +182 -0
- package/dist/sdk/providers/provider-runtime-worker.js.map +1 -0
- package/dist/sdk/providers/provider-session-owner.d.ts +126 -0
- package/dist/sdk/providers/provider-session-owner.d.ts.map +1 -0
- package/dist/sdk/providers/provider-session-owner.js +677 -0
- package/dist/sdk/providers/provider-session-owner.js.map +1 -0
- package/dist/sdk/providers/provider-subscription-usage.d.ts +4 -0
- package/dist/sdk/providers/provider-subscription-usage.d.ts.map +1 -0
- package/dist/sdk/providers/provider-subscription-usage.js +204 -0
- package/dist/sdk/providers/provider-subscription-usage.js.map +1 -0
- package/dist/sdk/providers/staticSlashCommands.d.ts.map +1 -1
- package/dist/sdk/providers/staticSlashCommands.js +13 -0
- package/dist/sdk/providers/staticSlashCommands.js.map +1 -1
- package/dist/sdk/providers/types.d.ts +168 -12
- package/dist/sdk/providers/types.d.ts.map +1 -1
- package/dist/sdk/providers/types.js +66 -1
- package/dist/sdk/providers/types.js.map +1 -1
- package/dist/sdk/remote-shell.d.ts +6 -0
- package/dist/sdk/remote-shell.d.ts.map +1 -0
- package/dist/sdk/remote-shell.js +15 -0
- package/dist/sdk/remote-shell.js.map +1 -0
- package/dist/sdk/remote-spawn.d.ts +22 -0
- package/dist/sdk/remote-spawn.d.ts.map +1 -1
- package/dist/sdk/remote-spawn.js +54 -27
- package/dist/sdk/remote-spawn.js.map +1 -1
- package/dist/sdk/session-sync.d.ts +5 -0
- package/dist/sdk/session-sync.d.ts.map +1 -1
- package/dist/sdk/session-sync.js +51 -12
- package/dist/sdk/session-sync.js.map +1 -1
- package/dist/sdk/slashCommandEmulation.d.ts +2 -6
- package/dist/sdk/slashCommandEmulation.d.ts.map +1 -1
- package/dist/sdk/slashCommandEmulation.js +12 -19
- package/dist/sdk/slashCommandEmulation.js.map +1 -1
- package/dist/sdk/types.d.ts +58 -7
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/security/approvalAuditLog.js.map +1 -1
- package/dist/services/BangCommandService.d.ts +86 -0
- package/dist/services/BangCommandService.d.ts.map +1 -0
- package/dist/services/BangCommandService.js +463 -0
- package/dist/services/BangCommandService.js.map +1 -0
- package/dist/services/BrowserDebugService.d.ts +71 -0
- package/dist/services/BrowserDebugService.d.ts.map +1 -0
- package/dist/services/BrowserDebugService.js +285 -0
- package/dist/services/BrowserDebugService.js.map +1 -0
- package/dist/services/BrowserProfileService.d.ts +1 -6
- package/dist/services/BrowserProfileService.d.ts.map +1 -1
- package/dist/services/BrowserProfileService.js +2 -18
- package/dist/services/BrowserProfileService.js.map +1 -1
- package/dist/services/BrowserSettingsBackupService.d.ts +30 -0
- package/dist/services/BrowserSettingsBackupService.d.ts.map +1 -0
- package/dist/services/BrowserSettingsBackupService.js +136 -0
- package/dist/services/BrowserSettingsBackupService.js.map +1 -0
- package/dist/services/CacheMissBillingMonitor.d.ts +4 -0
- package/dist/services/CacheMissBillingMonitor.d.ts.map +1 -1
- package/dist/services/CacheMissBillingMonitor.js +161 -24
- package/dist/services/CacheMissBillingMonitor.js.map +1 -1
- package/dist/services/CodexUpdateChecker.d.ts +22 -6
- package/dist/services/CodexUpdateChecker.d.ts.map +1 -1
- package/dist/services/CodexUpdateChecker.js +128 -15
- package/dist/services/CodexUpdateChecker.js.map +1 -1
- package/dist/services/ConnectedBrowsersService.d.ts +5 -1
- package/dist/services/ConnectedBrowsersService.d.ts.map +1 -1
- package/dist/services/ConnectedBrowsersService.js +18 -1
- package/dist/services/ConnectedBrowsersService.js.map +1 -1
- package/dist/services/DirtyFileEditorService.d.ts +47 -0
- package/dist/services/DirtyFileEditorService.d.ts.map +1 -0
- package/dist/services/DirtyFileEditorService.js +382 -0
- package/dist/services/DirtyFileEditorService.js.map +1 -0
- package/dist/services/GitUntrackedCacheService.d.ts +44 -0
- package/dist/services/GitUntrackedCacheService.d.ts.map +1 -0
- package/dist/services/GitUntrackedCacheService.js +420 -0
- package/dist/services/GitUntrackedCacheService.js.map +1 -0
- package/dist/services/HeartbeatCandidateRegistry.d.ts +114 -0
- package/dist/services/HeartbeatCandidateRegistry.d.ts.map +1 -0
- package/dist/services/HeartbeatCandidateRegistry.js +215 -0
- package/dist/services/HeartbeatCandidateRegistry.js.map +1 -0
- package/dist/services/HostAgentProcessService.d.ts +40 -0
- package/dist/services/HostAgentProcessService.d.ts.map +1 -0
- package/dist/services/HostAgentProcessService.js +392 -0
- package/dist/services/HostAgentProcessService.js.map +1 -0
- package/dist/services/InstallService.d.ts +13 -0
- package/dist/services/InstallService.d.ts.map +1 -1
- package/dist/services/InstallService.js +86 -12
- package/dist/services/InstallService.js.map +1 -1
- package/dist/services/LegacyPublicShareReader.d.ts +27 -0
- package/dist/services/LegacyPublicShareReader.d.ts.map +1 -0
- package/dist/services/LegacyPublicShareReader.js +684 -0
- package/dist/services/LegacyPublicShareReader.js.map +1 -0
- package/dist/services/ModelInfoService.d.ts +2 -3
- package/dist/services/ModelInfoService.d.ts.map +1 -1
- package/dist/services/ModelInfoService.js +7 -19
- package/dist/services/ModelInfoService.js.map +1 -1
- package/dist/services/NetworkBindingService.d.ts +1 -6
- package/dist/services/NetworkBindingService.d.ts.map +1 -1
- package/dist/services/NetworkBindingService.js +2 -18
- package/dist/services/NetworkBindingService.js.map +1 -1
- package/dist/services/ProjectQueueScheduler.d.ts +16 -4
- package/dist/services/ProjectQueueScheduler.d.ts.map +1 -1
- package/dist/services/ProjectQueueScheduler.js +183 -17
- package/dist/services/ProjectQueueScheduler.js.map +1 -1
- package/dist/services/ProjectQueueService.d.ts +3 -0
- package/dist/services/ProjectQueueService.d.ts.map +1 -1
- package/dist/services/ProjectQueueService.js +97 -5
- package/dist/services/ProjectQueueService.js.map +1 -1
- package/dist/services/ProviderInstallationCoordinator.d.ts +136 -0
- package/dist/services/ProviderInstallationCoordinator.d.ts.map +1 -0
- package/dist/services/ProviderInstallationCoordinator.js +636 -0
- package/dist/services/ProviderInstallationCoordinator.js.map +1 -0
- package/dist/services/PublicFileShareStore.d.ts +53 -0
- package/dist/services/PublicFileShareStore.d.ts.map +1 -0
- package/dist/services/PublicFileShareStore.js +297 -0
- package/dist/services/PublicFileShareStore.js.map +1 -0
- package/dist/services/PublicSharePrivateStorage.d.ts +15 -0
- package/dist/services/PublicSharePrivateStorage.d.ts.map +1 -0
- package/dist/services/PublicSharePrivateStorage.js +82 -0
- package/dist/services/PublicSharePrivateStorage.js.map +1 -0
- package/dist/services/PublicShareRevisionRepository.d.ts +87 -0
- package/dist/services/PublicShareRevisionRepository.d.ts.map +1 -0
- package/dist/services/PublicShareRevisionRepository.js +809 -0
- package/dist/services/PublicShareRevisionRepository.js.map +1 -0
- package/dist/services/PublicShareService.d.ts +93 -33
- package/dist/services/PublicShareService.d.ts.map +1 -1
- package/dist/services/PublicShareService.js +545 -296
- package/dist/services/PublicShareService.js.map +1 -1
- package/dist/services/PublicShareStore.d.ts +132 -0
- package/dist/services/PublicShareStore.d.ts.map +1 -0
- package/dist/services/PublicShareStore.js +973 -0
- package/dist/services/PublicShareStore.js.map +1 -0
- package/dist/services/RelayClientService.d.ts.map +1 -1
- package/dist/services/RelayClientService.js +24 -10
- package/dist/services/RelayClientService.js.map +1 -1
- package/dist/services/SecurityClientService.d.ts +88 -0
- package/dist/services/SecurityClientService.d.ts.map +1 -0
- package/dist/services/SecurityClientService.js +1036 -0
- package/dist/services/SecurityClientService.js.map +1 -0
- package/dist/services/ServerSettingsService.d.ts +78 -7
- package/dist/services/ServerSettingsService.d.ts.map +1 -1
- package/dist/services/ServerSettingsService.js +194 -35
- package/dist/services/ServerSettingsService.js.map +1 -1
- package/dist/services/SessionCatalogService.d.ts +203 -0
- package/dist/services/SessionCatalogService.d.ts.map +1 -0
- package/dist/services/SessionCatalogService.js +931 -0
- package/dist/services/SessionCatalogService.js.map +1 -0
- package/dist/services/SessionQueuePersistenceService.d.ts.map +1 -1
- package/dist/services/SessionQueuePersistenceService.js +1 -2
- package/dist/services/SessionQueuePersistenceService.js.map +1 -1
- package/dist/services/SessionWakeService.d.ts +55 -0
- package/dist/services/SessionWakeService.d.ts.map +1 -0
- package/dist/services/SessionWakeService.js +139 -0
- package/dist/services/SessionWakeService.js.map +1 -0
- package/dist/services/WorkstreamService.d.ts.map +1 -1
- package/dist/services/WorkstreamService.js +18 -4
- package/dist/services/WorkstreamService.js.map +1 -1
- package/dist/services/bangCompletions.d.ts +60 -0
- package/dist/services/bangCompletions.d.ts.map +1 -0
- package/dist/services/bangCompletions.js +253 -0
- package/dist/services/bangCompletions.js.map +1 -0
- package/dist/services/host-awake/HostAwakeBackend.d.ts +30 -0
- package/dist/services/host-awake/HostAwakeBackend.d.ts.map +1 -0
- package/dist/services/host-awake/HostAwakeBackend.js +12 -0
- package/dist/services/host-awake/HostAwakeBackend.js.map +1 -0
- package/dist/services/host-awake/HostAwakeService.d.ts +44 -0
- package/dist/services/host-awake/HostAwakeService.d.ts.map +1 -0
- package/dist/services/host-awake/HostAwakeService.js +288 -0
- package/dist/services/host-awake/HostAwakeService.js.map +1 -0
- package/dist/services/host-awake/MacHostAwakeBackend.d.ts +36 -0
- package/dist/services/host-awake/MacHostAwakeBackend.d.ts.map +1 -0
- package/dist/services/host-awake/MacHostAwakeBackend.js +279 -0
- package/dist/services/host-awake/MacHostAwakeBackend.js.map +1 -0
- package/dist/services/host-awake/WindowsHostAwakeBackend.d.ts +23 -0
- package/dist/services/host-awake/WindowsHostAwakeBackend.d.ts.map +1 -0
- package/dist/services/host-awake/WindowsHostAwakeBackend.js +496 -0
- package/dist/services/host-awake/WindowsHostAwakeBackend.js.map +1 -0
- package/dist/services/index.d.ts +6 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +6 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/installationOwnerProbe.d.ts +20 -0
- package/dist/services/installationOwnerProbe.d.ts.map +1 -0
- package/dist/services/installationOwnerProbe.js +67 -0
- package/dist/services/installationOwnerProbe.js.map +1 -0
- package/dist/services/projectWorkIdle.d.ts +10 -0
- package/dist/services/projectWorkIdle.d.ts.map +1 -1
- package/dist/services/projectWorkIdle.js +6 -1
- package/dist/services/projectWorkIdle.js.map +1 -1
- package/dist/services/providerProcessClassifier.d.ts +18 -0
- package/dist/services/providerProcessClassifier.d.ts.map +1 -0
- package/dist/services/providerProcessClassifier.js +64 -0
- package/dist/services/providerProcessClassifier.js.map +1 -0
- package/dist/services/sessionHeartbeatDefaults.d.ts +11 -0
- package/dist/services/sessionHeartbeatDefaults.d.ts.map +1 -0
- package/dist/services/sessionHeartbeatDefaults.js +29 -0
- package/dist/services/sessionHeartbeatDefaults.js.map +1 -0
- package/dist/session-sandbox-network-launcher.mjs +279 -0
- package/dist/session-sandbox.d.ts +81 -0
- package/dist/session-sandbox.d.ts.map +1 -0
- package/dist/session-sandbox.js +770 -0
- package/dist/session-sandbox.js.map +1 -0
- package/dist/sessions/agent-excerpt.d.ts.map +1 -1
- package/dist/sessions/agent-excerpt.js +5 -1
- package/dist/sessions/agent-excerpt.js.map +1 -1
- package/dist/sessions/catalog-adapters/grok-catalog-adapter.d.ts +19 -0
- package/dist/sessions/catalog-adapters/grok-catalog-adapter.d.ts.map +1 -0
- package/dist/sessions/catalog-adapters/grok-catalog-adapter.js +140 -0
- package/dist/sessions/catalog-adapters/grok-catalog-adapter.js.map +1 -0
- package/dist/sessions/catalog-adapters/opencode-catalog-adapter.d.ts +29 -0
- package/dist/sessions/catalog-adapters/opencode-catalog-adapter.d.ts.map +1 -0
- package/dist/sessions/catalog-adapters/opencode-catalog-adapter.js +168 -0
- package/dist/sessions/catalog-adapters/opencode-catalog-adapter.js.map +1 -0
- package/dist/sessions/catalog-adapters/pi-catalog-adapter.d.ts +24 -0
- package/dist/sessions/catalog-adapters/pi-catalog-adapter.d.ts.map +1 -0
- package/dist/sessions/catalog-adapters/pi-catalog-adapter.js +114 -0
- package/dist/sessions/catalog-adapters/pi-catalog-adapter.js.map +1 -0
- package/dist/sessions/catalog-adapters/row.d.ts +37 -0
- package/dist/sessions/catalog-adapters/row.d.ts.map +1 -0
- package/dist/sessions/catalog-adapters/row.js +39 -0
- package/dist/sessions/catalog-adapters/row.js.map +1 -0
- package/dist/sessions/catalog-types.d.ts +66 -0
- package/dist/sessions/catalog-types.d.ts.map +1 -0
- package/dist/sessions/catalog-types.js +4 -0
- package/dist/sessions/catalog-types.js.map +1 -0
- package/dist/sessions/claude-summary.d.ts +41 -1
- package/dist/sessions/claude-summary.d.ts.map +1 -1
- package/dist/sessions/claude-summary.js +54 -21
- package/dist/sessions/claude-summary.js.map +1 -1
- package/dist/sessions/claude-transcript-cache.d.ts +54 -0
- package/dist/sessions/claude-transcript-cache.d.ts.map +1 -0
- package/dist/sessions/claude-transcript-cache.js +359 -0
- package/dist/sessions/claude-transcript-cache.js.map +1 -0
- package/dist/sessions/codex-discovery.d.ts +2 -2
- package/dist/sessions/codex-discovery.d.ts.map +1 -1
- package/dist/sessions/codex-discovery.js +10 -6
- package/dist/sessions/codex-discovery.js.map +1 -1
- package/dist/sessions/codex-provider-child-projection.d.ts +47 -0
- package/dist/sessions/codex-provider-child-projection.d.ts.map +1 -0
- package/dist/sessions/codex-provider-child-projection.js +289 -0
- package/dist/sessions/codex-provider-child-projection.js.map +1 -0
- package/dist/sessions/codex-reader.d.ts +45 -3
- package/dist/sessions/codex-reader.d.ts.map +1 -1
- package/dist/sessions/codex-reader.js +586 -246
- package/dist/sessions/codex-reader.js.map +1 -1
- package/dist/sessions/codex-user-turn-provenance.d.ts +21 -2
- package/dist/sessions/codex-user-turn-provenance.d.ts.map +1 -1
- package/dist/sessions/codex-user-turn-provenance.js +55 -15
- package/dist/sessions/codex-user-turn-provenance.js.map +1 -1
- package/dist/sessions/dag.d.ts +0 -11
- package/dist/sessions/dag.d.ts.map +1 -1
- package/dist/sessions/dag.js +37 -36
- package/dist/sessions/dag.js.map +1 -1
- package/dist/sessions/gemini-reader.d.ts.map +1 -1
- package/dist/sessions/gemini-reader.js +2 -2
- package/dist/sessions/gemini-reader.js.map +1 -1
- package/dist/sessions/grok-reader.d.ts +11 -27
- package/dist/sessions/grok-reader.d.ts.map +1 -1
- package/dist/sessions/grok-reader.js +204 -417
- package/dist/sessions/grok-reader.js.map +1 -1
- package/dist/sessions/merged-reader.d.ts +46 -0
- package/dist/sessions/merged-reader.d.ts.map +1 -0
- package/dist/sessions/merged-reader.js +157 -0
- package/dist/sessions/merged-reader.js.map +1 -0
- package/dist/sessions/normalization.d.ts +14 -2
- package/dist/sessions/normalization.d.ts.map +1 -1
- package/dist/sessions/normalization.js +474 -75
- package/dist/sessions/normalization.js.map +1 -1
- package/dist/sessions/opencode-db-reader.d.ts +44 -0
- package/dist/sessions/opencode-db-reader.d.ts.map +1 -1
- package/dist/sessions/opencode-db-reader.js +158 -0
- package/dist/sessions/opencode-db-reader.js.map +1 -1
- package/dist/sessions/opencode-reader.d.ts +9 -11
- package/dist/sessions/opencode-reader.d.ts.map +1 -1
- package/dist/sessions/opencode-reader.js +196 -14
- package/dist/sessions/opencode-reader.js.map +1 -1
- package/dist/sessions/pagination.d.ts.map +1 -1
- package/dist/sessions/pagination.js.map +1 -1
- package/dist/sessions/persisted-augments.d.ts +12 -1
- package/dist/sessions/persisted-augments.d.ts.map +1 -1
- package/dist/sessions/persisted-augments.js +69 -190
- package/dist/sessions/persisted-augments.js.map +1 -1
- package/dist/sessions/pi-reader.d.ts +6 -1
- package/dist/sessions/pi-reader.d.ts.map +1 -1
- package/dist/sessions/pi-reader.js +22 -6
- package/dist/sessions/pi-reader.js.map +1 -1
- package/dist/sessions/provider-catalog-family.d.ts +7 -0
- package/dist/sessions/provider-catalog-family.d.ts.map +1 -0
- package/dist/sessions/provider-catalog-family.js +40 -0
- package/dist/sessions/provider-catalog-family.js.map +1 -0
- package/dist/sessions/provider-child-sessions.d.ts +15 -0
- package/dist/sessions/provider-child-sessions.d.ts.map +1 -0
- package/dist/sessions/provider-child-sessions.js +40 -0
- package/dist/sessions/provider-child-sessions.js.map +1 -0
- package/dist/sessions/provider-resolution.d.ts +15 -2
- package/dist/sessions/provider-resolution.d.ts.map +1 -1
- package/dist/sessions/provider-resolution.js +128 -1
- package/dist/sessions/provider-resolution.js.map +1 -1
- package/dist/sessions/reader.d.ts +31 -8
- package/dist/sessions/reader.d.ts.map +1 -1
- package/dist/sessions/reader.js +199 -91
- package/dist/sessions/reader.js.map +1 -1
- package/dist/sessions/recap-overlays.d.ts +13 -1
- package/dist/sessions/recap-overlays.d.ts.map +1 -1
- package/dist/sessions/recap-overlays.js +56 -0
- package/dist/sessions/recap-overlays.js.map +1 -1
- package/dist/sessions/resume-exemption.d.ts +31 -0
- package/dist/sessions/resume-exemption.d.ts.map +1 -0
- package/dist/sessions/resume-exemption.js +28 -0
- package/dist/sessions/resume-exemption.js.map +1 -0
- package/dist/sessions/sessionCollectionGeneration.d.ts +49 -0
- package/dist/sessions/sessionCollectionGeneration.d.ts.map +1 -0
- package/dist/sessions/sessionCollectionGeneration.js +64 -0
- package/dist/sessions/sessionCollectionGeneration.js.map +1 -0
- package/dist/sessions/summary-parser-worker-client.d.ts.map +1 -1
- package/dist/sessions/summary-parser-worker-client.js +4 -3
- package/dist/sessions/summary-parser-worker-client.js.map +1 -1
- package/dist/sessions/types.d.ts +67 -3
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/sessions/types.js +27 -1
- package/dist/sessions/types.js.map +1 -1
- package/dist/subscriptions.d.ts +7 -1
- package/dist/subscriptions.d.ts.map +1 -1
- package/dist/subscriptions.js +236 -46
- package/dist/subscriptions.js.map +1 -1
- package/dist/supervisor/ExternalSessionTracker.d.ts +12 -2
- package/dist/supervisor/ExternalSessionTracker.d.ts.map +1 -1
- package/dist/supervisor/ExternalSessionTracker.js +107 -93
- package/dist/supervisor/ExternalSessionTracker.js.map +1 -1
- package/dist/supervisor/Process.d.ts +220 -43
- package/dist/supervisor/Process.d.ts.map +1 -1
- package/dist/supervisor/Process.js +1169 -306
- package/dist/supervisor/Process.js.map +1 -1
- package/dist/supervisor/ProcessViewerLifecycle.d.ts +72 -0
- package/dist/supervisor/ProcessViewerLifecycle.d.ts.map +1 -0
- package/dist/supervisor/ProcessViewerLifecycle.js +358 -0
- package/dist/supervisor/ProcessViewerLifecycle.js.map +1 -0
- package/dist/supervisor/SessionActivationCoordinator.d.ts +132 -0
- package/dist/supervisor/SessionActivationCoordinator.d.ts.map +1 -0
- package/dist/supervisor/SessionActivationCoordinator.js +603 -0
- package/dist/supervisor/SessionActivationCoordinator.js.map +1 -0
- package/dist/supervisor/SessionDoneCoordinator.d.ts +43 -0
- package/dist/supervisor/SessionDoneCoordinator.d.ts.map +1 -0
- package/dist/supervisor/SessionDoneCoordinator.js +293 -0
- package/dist/supervisor/SessionDoneCoordinator.js.map +1 -0
- package/dist/supervisor/SessionViewerPresence.d.ts +19 -0
- package/dist/supervisor/SessionViewerPresence.d.ts.map +1 -0
- package/dist/supervisor/SessionViewerPresence.js +45 -0
- package/dist/supervisor/SessionViewerPresence.js.map +1 -0
- package/dist/supervisor/Supervisor.d.ts +182 -94
- package/dist/supervisor/Supervisor.d.ts.map +1 -1
- package/dist/supervisor/Supervisor.js +1333 -346
- package/dist/supervisor/Supervisor.js.map +1 -1
- package/dist/supervisor/WorkerQueue.d.ts +15 -0
- package/dist/supervisor/WorkerQueue.d.ts.map +1 -1
- package/dist/supervisor/WorkerQueue.js +18 -1
- package/dist/supervisor/WorkerQueue.js.map +1 -1
- package/dist/supervisor/composeTimeAnchor.d.ts +20 -4
- package/dist/supervisor/composeTimeAnchor.d.ts.map +1 -1
- package/dist/supervisor/composeTimeAnchor.js +35 -6
- package/dist/supervisor/composeTimeAnchor.js.map +1 -1
- package/dist/supervisor/deferredDeliverySettings.d.ts +7 -0
- package/dist/supervisor/deferredDeliverySettings.d.ts.map +1 -1
- package/dist/supervisor/deferredDeliverySettings.js +6 -0
- package/dist/supervisor/deferredDeliverySettings.js.map +1 -1
- package/dist/supervisor/heartbeatSchedule.d.ts +73 -0
- package/dist/supervisor/heartbeatSchedule.d.ts.map +1 -0
- package/dist/supervisor/heartbeatSchedule.js +134 -0
- package/dist/supervisor/heartbeatSchedule.js.map +1 -0
- package/dist/supervisor/sessionSandboxMetadata.d.ts +23 -0
- package/dist/supervisor/sessionSandboxMetadata.d.ts.map +1 -0
- package/dist/supervisor/sessionSandboxMetadata.js +11 -0
- package/dist/supervisor/sessionSandboxMetadata.js.map +1 -0
- package/dist/supervisor/types.d.ts +69 -9
- package/dist/supervisor/types.d.ts.map +1 -1
- package/dist/supervisor/types.js.map +1 -1
- package/dist/uploads/AttachmentStagingService.d.ts +3 -0
- package/dist/uploads/AttachmentStagingService.d.ts.map +1 -1
- package/dist/uploads/AttachmentStagingService.js +13 -2
- package/dist/uploads/AttachmentStagingService.js.map +1 -1
- package/dist/uploads/attachmentAccess.d.ts +8 -0
- package/dist/uploads/attachmentAccess.d.ts.map +1 -0
- package/dist/uploads/attachmentAccess.js +50 -0
- package/dist/uploads/attachmentAccess.js.map +1 -0
- package/dist/uploads/index.d.ts +1 -1
- package/dist/uploads/index.d.ts.map +1 -1
- package/dist/uploads/index.js +1 -1
- package/dist/uploads/index.js.map +1 -1
- package/dist/uploads/manager.d.ts +5 -1
- package/dist/uploads/manager.d.ts.map +1 -1
- package/dist/uploads/manager.js +16 -7
- package/dist/uploads/manager.js.map +1 -1
- package/dist/utils/codexRolloutFiles.d.ts +10 -0
- package/dist/utils/codexRolloutFiles.d.ts.map +1 -1
- package/dist/utils/codexRolloutFiles.js +14 -0
- package/dist/utils/codexRolloutFiles.js.map +1 -1
- package/dist/utils/filePermissions.d.ts +22 -1
- package/dist/utils/filePermissions.d.ts.map +1 -1
- package/dist/utils/filePermissions.js +186 -5
- package/dist/utils/filePermissions.js.map +1 -1
- package/dist/utils/npmCommand.d.ts +14 -0
- package/dist/utils/npmCommand.d.ts.map +1 -0
- package/dist/utils/npmCommand.js +19 -0
- package/dist/utils/npmCommand.js.map +1 -0
- package/dist/utils/posixShell.d.ts +10 -0
- package/dist/utils/posixShell.d.ts.map +1 -0
- package/dist/utils/posixShell.js +12 -0
- package/dist/utils/posixShell.js.map +1 -0
- package/dist/utils/projectFileAccess.d.ts +13 -0
- package/dist/utils/projectFileAccess.d.ts.map +1 -0
- package/dist/utils/projectFileAccess.js +89 -0
- package/dist/utils/projectFileAccess.js.map +1 -0
- package/dist/utils/utf8Text.d.ts +10 -0
- package/dist/utils/utf8Text.d.ts.map +1 -0
- package/dist/utils/utf8Text.js +52 -0
- package/dist/utils/utf8Text.js.map +1 -0
- package/dist/watcher/BatchProcessor.d.ts +55 -0
- package/dist/watcher/BatchProcessor.d.ts.map +1 -1
- package/dist/watcher/BatchProcessor.js +130 -16
- package/dist/watcher/BatchProcessor.js.map +1 -1
- package/dist/watcher/EventBus.d.ts +29 -4
- package/dist/watcher/EventBus.d.ts.map +1 -1
- package/dist/watcher/EventBus.js.map +1 -1
- package/dist/watcher/FileWatcher.d.ts +33 -4
- package/dist/watcher/FileWatcher.d.ts.map +1 -1
- package/dist/watcher/FileWatcher.js +278 -70
- package/dist/watcher/FileWatcher.js.map +1 -1
- package/dist/watcher/FocusedSessionWatchManager.d.ts +13 -1
- package/dist/watcher/FocusedSessionWatchManager.d.ts.map +1 -1
- package/dist/watcher/FocusedSessionWatchManager.js +110 -31
- package/dist/watcher/FocusedSessionWatchManager.js.map +1 -1
- package/dist/watcher/ProviderSessionWatcherRegistry.d.ts +52 -0
- package/dist/watcher/ProviderSessionWatcherRegistry.d.ts.map +1 -0
- package/dist/watcher/ProviderSessionWatcherRegistry.js +108 -0
- package/dist/watcher/ProviderSessionWatcherRegistry.js.map +1 -0
- package/dist/watcher/index.d.ts +4 -2
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js +1 -0
- package/dist/watcher/index.js.map +1 -1
- package/dist/websocketLimits.d.ts +4 -0
- package/dist/websocketLimits.d.ts.map +1 -0
- package/dist/websocketLimits.js +5 -0
- package/dist/websocketLimits.js.map +1 -0
- package/dist/yaModuleEnv.d.ts.map +1 -1
- package/dist/yaModuleEnv.js +7 -1
- package/dist/yaModuleEnv.js.map +1 -1
- package/package.json +7 -6
- package/client-dist/assets/de-BNhVdIq4.js +0 -6
- package/client-dist/assets/es-Csn9n24J.js +0 -6
- package/client-dist/assets/fr-DKx4tSpo.js +0 -6
- package/client-dist/assets/index-1y2h7U7U.js +0 -582
- package/client-dist/assets/index-Cn_ZDP6u.css +0 -1
- package/client-dist/assets/ja-DAkhkwQZ.js +0 -6
- package/client-dist/assets/zh-CN-B7lY0cc6.js +0 -6
|
@@ -0,0 +1,1240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ReviewCommentService — canonical source-review sites, entries, and drafts.
|
|
3
|
+
*
|
|
4
|
+
* Disk state is version 2 even though the established comments endpoint still
|
|
5
|
+
* receives a version-1 projection. Version-1 files migrate before any later
|
|
6
|
+
* write, preserving all comments and batches while marking their unavailable
|
|
7
|
+
* comment-time source captures honestly.
|
|
8
|
+
*/
|
|
9
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
10
|
+
import * as fs from "node:fs/promises";
|
|
11
|
+
import * as path from "node:path";
|
|
12
|
+
import { MAX_REVIEW_COMMENTS, MAX_REVIEW_RESPONSE_FILE_BYTES, MAX_REVIEW_SUBMISSION_NAME_LENGTH, REVIEW_SUBMISSION_REQUEST_VERSION, emptyReviewStoreFile, parseReviewStoreFile, parseReviewSubmissionRequest, parseReviewSubmissionResponse, projectLegacyReviewComments, } from "../../bundled/@yep-anywhere/shared/dist/index.js";
|
|
13
|
+
import { createCoalescingSaver } from "../lib/coalescingSaver.js";
|
|
14
|
+
import { HttpError } from "../middleware/error-handler.js";
|
|
15
|
+
import { getDataDir } from "../config.js";
|
|
16
|
+
import { ProjectStoragePolicy, } from "../projects/projectStoragePolicy.js";
|
|
17
|
+
const REVIEW_COMMENTS_FILENAME = "review-comments.json";
|
|
18
|
+
const SOURCE_REVIEW_DIR = "source-review";
|
|
19
|
+
const REQUEST_FILENAME = "request.json";
|
|
20
|
+
const RESPONSE_FILENAME = "response.json";
|
|
21
|
+
const DEFAULT_MAX_RETAINED_STORE_BYTES = 8 * 1024 * 1024;
|
|
22
|
+
const DEFAULT_MAX_RETAINED_STORE_AGE_MS = 10 * 60 * 1000;
|
|
23
|
+
const REVIEW_STORAGE_METADATA_VERSION = 1;
|
|
24
|
+
const REVIEW_STORAGE_METADATA_KEY = "yaStorage";
|
|
25
|
+
class InvalidSubmissionRequestError extends HttpError {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(409, "Submission request manifest is invalid");
|
|
28
|
+
this.name = "InvalidSubmissionRequestError";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
class ReviewStorageConflictError extends HttpError {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(409, "Source Review state has conflicting copies at the same logical revision");
|
|
34
|
+
this.name = "ReviewStorageConflictError";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class ReviewCommentService {
|
|
38
|
+
stores = new Map();
|
|
39
|
+
now;
|
|
40
|
+
newId;
|
|
41
|
+
captureWriter;
|
|
42
|
+
storagePolicy;
|
|
43
|
+
listProjectPaths;
|
|
44
|
+
maxRetainedStoreBytes;
|
|
45
|
+
maxRetainedStoreAgeMs;
|
|
46
|
+
monotonicNowMs;
|
|
47
|
+
retainedBytes = 0;
|
|
48
|
+
stateRevision = 0;
|
|
49
|
+
releases = 0;
|
|
50
|
+
releasesByAge = 0;
|
|
51
|
+
protectedSkips = 0;
|
|
52
|
+
reloadsAfterRelease = 0;
|
|
53
|
+
releasedKeys = new Set();
|
|
54
|
+
activeStorageOperations = 0;
|
|
55
|
+
storageOperationsDrained = Promise.resolve();
|
|
56
|
+
resolveStorageOperationsDrained = null;
|
|
57
|
+
storageTransitionBarrier = null;
|
|
58
|
+
constructor(options = {}) {
|
|
59
|
+
this.now = options.now ?? (() => new Date().toISOString());
|
|
60
|
+
this.newId = options.newId ?? (() => randomUUID());
|
|
61
|
+
this.captureWriter = options.captureWriter;
|
|
62
|
+
this.maxRetainedStoreBytes = Math.max(0, options.maxRetainedStoreBytes ?? DEFAULT_MAX_RETAINED_STORE_BYTES);
|
|
63
|
+
this.maxRetainedStoreAgeMs = Math.max(0, options.maxRetainedStoreAgeMs ?? DEFAULT_MAX_RETAINED_STORE_AGE_MS);
|
|
64
|
+
this.monotonicNowMs = options.monotonicNowMs ?? Date.now;
|
|
65
|
+
this.storagePolicy =
|
|
66
|
+
options.storagePolicy ??
|
|
67
|
+
new ProjectStoragePolicy({
|
|
68
|
+
dataDir: getDataDir(),
|
|
69
|
+
getMode: () => "app-data",
|
|
70
|
+
});
|
|
71
|
+
this.listProjectPaths = options.listProjectPaths ?? (async () => []);
|
|
72
|
+
}
|
|
73
|
+
/** Stable version-1 projection for established clients. */
|
|
74
|
+
async getFile(projectPath) {
|
|
75
|
+
return this.withStorageOperation(async () => {
|
|
76
|
+
const store = await this.getStore(projectPath);
|
|
77
|
+
return cloneLegacyFile(projectLegacyReviewComments(store.state));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/** Canonical site/entry/submission state for new routes. */
|
|
81
|
+
async getStoreFile(projectPath) {
|
|
82
|
+
return this.withStorageOperation(async () => {
|
|
83
|
+
const store = await this.getStore(projectPath);
|
|
84
|
+
return cloneStoreFile(store.state);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
async listComments(projectPath) {
|
|
88
|
+
return (await this.getFile(projectPath)).comments;
|
|
89
|
+
}
|
|
90
|
+
async listPending(projectPath) {
|
|
91
|
+
return (await this.listComments(projectPath)).filter((comment) => comment.status === "pending");
|
|
92
|
+
}
|
|
93
|
+
async getComment(projectPath, id) {
|
|
94
|
+
return ((await this.listComments(projectPath)).find((item) => item.id === id) ??
|
|
95
|
+
null);
|
|
96
|
+
}
|
|
97
|
+
async addComment(projectPath, input) {
|
|
98
|
+
return this.withMutation(projectPath, async (store) => {
|
|
99
|
+
if (store.state.drafts.length >= MAX_REVIEW_COMMENTS) {
|
|
100
|
+
throw new HttpError(413, `Review comment limit reached (${MAX_REVIEW_COMMENTS}); submit or delete drafts first.`);
|
|
101
|
+
}
|
|
102
|
+
const entryId = this.newId();
|
|
103
|
+
const siteId = `site-${entryId}`;
|
|
104
|
+
const createdAt = this.now();
|
|
105
|
+
const entry = {
|
|
106
|
+
id: entryId,
|
|
107
|
+
anchor: cloneAnchor(input.anchor),
|
|
108
|
+
text: input.text,
|
|
109
|
+
capture: await this.capture(projectPath, input.anchor),
|
|
110
|
+
createdAt,
|
|
111
|
+
};
|
|
112
|
+
store.state.sites.push({
|
|
113
|
+
id: siteId,
|
|
114
|
+
path: input.anchor.path,
|
|
115
|
+
createdAt,
|
|
116
|
+
entries: [entry],
|
|
117
|
+
outcomes: [],
|
|
118
|
+
});
|
|
119
|
+
store.state.drafts.push({ siteId, entryId });
|
|
120
|
+
await store.save();
|
|
121
|
+
return canonicalEntryToComment(entry, true);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/** Edit an active draft. Submitted reviewer entries are immutable. */
|
|
125
|
+
async updateComment(projectPath, id, patch) {
|
|
126
|
+
return this.withMutation(projectPath, async (store) => {
|
|
127
|
+
const found = findDraftEntry(store.state, id);
|
|
128
|
+
if (!found)
|
|
129
|
+
return null;
|
|
130
|
+
const nextCapture = patch.anchor
|
|
131
|
+
? await this.capture(projectPath, patch.anchor)
|
|
132
|
+
: undefined;
|
|
133
|
+
if (patch.text !== undefined)
|
|
134
|
+
found.entry.text = patch.text;
|
|
135
|
+
if (patch.anchor !== undefined && nextCapture) {
|
|
136
|
+
found.entry.anchor = cloneAnchor(patch.anchor);
|
|
137
|
+
found.entry.capture = nextCapture;
|
|
138
|
+
found.site.path = patch.anchor.path;
|
|
139
|
+
}
|
|
140
|
+
await store.save();
|
|
141
|
+
return canonicalEntryToComment(found.entry, true);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/** Discard an active draft. Historical submitted entries are retained. */
|
|
145
|
+
async deleteComment(projectPath, id) {
|
|
146
|
+
return this.withMutation(projectPath, async (store) => {
|
|
147
|
+
const draftIndex = store.state.drafts.findIndex((ref) => ref.entryId === id);
|
|
148
|
+
if (draftIndex === -1)
|
|
149
|
+
return false;
|
|
150
|
+
const [draft] = store.state.drafts.splice(draftIndex, 1);
|
|
151
|
+
const site = store.state.sites.find((item) => item.id === draft?.siteId);
|
|
152
|
+
if (site) {
|
|
153
|
+
site.entries = site.entries.filter((entry) => entry.id !== id);
|
|
154
|
+
if (site.entries.length === 0 && site.outcomes.length === 0) {
|
|
155
|
+
store.state.sites = store.state.sites.filter((item) => item.id !== site.id);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
await store.save();
|
|
159
|
+
return true;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Compatibility archive path. New transactional acceptance builds the same
|
|
164
|
+
* canonical summary with a client-supplied id in the next stage.
|
|
165
|
+
*/
|
|
166
|
+
async archiveComments(projectPath, input) {
|
|
167
|
+
return this.withMutation(projectPath, async (store) => {
|
|
168
|
+
const submittedAt = input.submittedAt ?? this.now();
|
|
169
|
+
const batchId = this.newId();
|
|
170
|
+
const requested = new Set(input.commentIds);
|
|
171
|
+
const consumed = [];
|
|
172
|
+
const entryRefs = [];
|
|
173
|
+
for (let index = store.state.drafts.length - 1; index >= 0; index--) {
|
|
174
|
+
const ref = store.state.drafts[index];
|
|
175
|
+
if (!ref || !requested.has(ref.entryId))
|
|
176
|
+
continue;
|
|
177
|
+
const found = findEntry(store.state, ref);
|
|
178
|
+
if (!found)
|
|
179
|
+
continue;
|
|
180
|
+
found.entry.submittedAt = submittedAt;
|
|
181
|
+
found.entry.submissionId = batchId;
|
|
182
|
+
consumed.unshift(ref.entryId);
|
|
183
|
+
entryRefs.unshift({ ...ref });
|
|
184
|
+
store.state.drafts.splice(index, 1);
|
|
185
|
+
}
|
|
186
|
+
const summary = {
|
|
187
|
+
id: batchId,
|
|
188
|
+
submittedAt,
|
|
189
|
+
requestedTarget: input.targetSessionId,
|
|
190
|
+
targetSessionId: input.targetSessionId,
|
|
191
|
+
entryRefs,
|
|
192
|
+
status: "legacy",
|
|
193
|
+
responseRevision: 0,
|
|
194
|
+
acknowledgedRevision: 0,
|
|
195
|
+
};
|
|
196
|
+
store.state.submissions.push(summary);
|
|
197
|
+
await store.save();
|
|
198
|
+
return {
|
|
199
|
+
id: batchId,
|
|
200
|
+
submittedAt,
|
|
201
|
+
targetSessionId: input.targetSessionId,
|
|
202
|
+
commentIds: consumed,
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Reserve draft entries and freeze their immutable request manifest. Existing
|
|
208
|
+
* manifests bind an id to the same request, so a retry cannot retarget it.
|
|
209
|
+
*/
|
|
210
|
+
async prepareSubmission(projectPath, input) {
|
|
211
|
+
validateSubmissionInput(input);
|
|
212
|
+
return this.withMutation(projectPath, async (store) => {
|
|
213
|
+
let existingSummary = store.state.submissions.find((item) => item.id === input.submissionId);
|
|
214
|
+
let existingRequest;
|
|
215
|
+
try {
|
|
216
|
+
existingRequest = await this.readSubmissionRequest(projectPath, input.submissionId);
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
if (!(error instanceof InvalidSubmissionRequestError) ||
|
|
220
|
+
(existingSummary && existingSummary.status !== "prepared")) {
|
|
221
|
+
throw error;
|
|
222
|
+
}
|
|
223
|
+
await this.removeSubmissionRequest(projectPath, input.submissionId);
|
|
224
|
+
if (existingSummary) {
|
|
225
|
+
store.state.submissions = store.state.submissions.filter((item) => item.id !== input.submissionId);
|
|
226
|
+
await store.save();
|
|
227
|
+
existingSummary = undefined;
|
|
228
|
+
}
|
|
229
|
+
existingRequest = null;
|
|
230
|
+
}
|
|
231
|
+
if (existingRequest) {
|
|
232
|
+
assertSameSubmissionRequest(existingRequest, input);
|
|
233
|
+
if (!existingSummary) {
|
|
234
|
+
this.reserveRequestEntries(store.state, existingRequest);
|
|
235
|
+
store.state.submissions.push(summaryFromRequest(existingRequest));
|
|
236
|
+
await store.save();
|
|
237
|
+
}
|
|
238
|
+
return cloneSubmissionRequest(existingRequest);
|
|
239
|
+
}
|
|
240
|
+
if (existingSummary) {
|
|
241
|
+
// Startup recovery rolls back this incomplete durable reservation. The
|
|
242
|
+
// caller can immediately prepare the same id again from still-live drafts.
|
|
243
|
+
store.state.submissions = store.state.submissions.filter((item) => item.id !== input.submissionId);
|
|
244
|
+
await store.save();
|
|
245
|
+
}
|
|
246
|
+
const requested = new Set(input.commentIds);
|
|
247
|
+
const reservedElsewhere = new Set(store.state.submissions
|
|
248
|
+
.filter((item) => item.status === "prepared")
|
|
249
|
+
.flatMap((item) => item.entryRefs.map((ref) => entryRefKey(ref))));
|
|
250
|
+
const refs = store.state.drafts.filter((ref) => requested.has(ref.entryId) &&
|
|
251
|
+
!reservedElsewhere.has(entryRefKey(ref)));
|
|
252
|
+
if (refs.length !== requested.size) {
|
|
253
|
+
throw new HttpError(409, "One or more review comments are no longer pending or are being submitted");
|
|
254
|
+
}
|
|
255
|
+
const submittedAt = this.now();
|
|
256
|
+
const request = {
|
|
257
|
+
version: REVIEW_SUBMISSION_REQUEST_VERSION,
|
|
258
|
+
submissionId: input.submissionId,
|
|
259
|
+
submittedAt,
|
|
260
|
+
requestedTarget: input.requestedTarget,
|
|
261
|
+
entries: refs.map((ref) => {
|
|
262
|
+
const found = findEntry(store.state, ref);
|
|
263
|
+
const relocation = input.relocations.get(ref.entryId);
|
|
264
|
+
if (!found || !relocation) {
|
|
265
|
+
throw new HttpError(409, "Review comment changed before submission");
|
|
266
|
+
}
|
|
267
|
+
return {
|
|
268
|
+
...ref,
|
|
269
|
+
text: found.entry.text,
|
|
270
|
+
anchor: cloneAnchor(found.entry.anchor),
|
|
271
|
+
capture: cloneCapture(found.entry.capture),
|
|
272
|
+
relocation: cloneRelocation(relocation),
|
|
273
|
+
};
|
|
274
|
+
}),
|
|
275
|
+
...(input.name ? { name: input.name } : {}),
|
|
276
|
+
};
|
|
277
|
+
store.state.submissions.push(summaryFromRequest(request));
|
|
278
|
+
await store.save();
|
|
279
|
+
try {
|
|
280
|
+
await this.writeSubmissionRequest(projectPath, request);
|
|
281
|
+
}
|
|
282
|
+
catch (error) {
|
|
283
|
+
store.state.submissions = store.state.submissions.filter((item) => item.id !== input.submissionId);
|
|
284
|
+
await store.save();
|
|
285
|
+
throw error;
|
|
286
|
+
}
|
|
287
|
+
return cloneSubmissionRequest(request);
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/** Archive a prepared submission after the launcher accepted its keyed turn. */
|
|
291
|
+
async acceptSubmission(projectPath, input) {
|
|
292
|
+
return this.withMutation(projectPath, async (store) => {
|
|
293
|
+
const summary = store.state.submissions.find((item) => item.id === input.submissionId);
|
|
294
|
+
if (!summary)
|
|
295
|
+
return null;
|
|
296
|
+
if (summary.status === "accepted") {
|
|
297
|
+
let changed = false;
|
|
298
|
+
if (input.deliveryStatus === "delivered" &&
|
|
299
|
+
summary.deliveryStatus !== "delivered") {
|
|
300
|
+
summary.deliveryStatus = "delivered";
|
|
301
|
+
changed = true;
|
|
302
|
+
}
|
|
303
|
+
if (input.targetSessionId &&
|
|
304
|
+
summary.targetSessionId !== input.targetSessionId) {
|
|
305
|
+
summary.targetSessionId = input.targetSessionId;
|
|
306
|
+
setOutcomeSession(store.state, summary.id, input.targetSessionId);
|
|
307
|
+
changed = true;
|
|
308
|
+
}
|
|
309
|
+
if (changed)
|
|
310
|
+
await store.save();
|
|
311
|
+
return cloneSubmission(summary);
|
|
312
|
+
}
|
|
313
|
+
const request = await this.readSubmissionRequest(projectPath, input.submissionId);
|
|
314
|
+
if (!request) {
|
|
315
|
+
throw new HttpError(409, "Submission request manifest is missing");
|
|
316
|
+
}
|
|
317
|
+
summary.status = "accepted";
|
|
318
|
+
summary.deliveryStatus = input.deliveryStatus;
|
|
319
|
+
summary.responseTurnsObserved = 0;
|
|
320
|
+
summary.responseTurnLimit = input.responseTurnLimit;
|
|
321
|
+
if (input.targetSessionId)
|
|
322
|
+
summary.targetSessionId = input.targetSessionId;
|
|
323
|
+
const acceptedKeys = new Set(summary.entryRefs.map(entryRefKey));
|
|
324
|
+
store.state.drafts = store.state.drafts.filter((ref) => !acceptedKeys.has(entryRefKey(ref)));
|
|
325
|
+
for (const ref of summary.entryRefs) {
|
|
326
|
+
const found = findEntry(store.state, ref);
|
|
327
|
+
if (!found)
|
|
328
|
+
continue;
|
|
329
|
+
found.entry.submittedAt = summary.submittedAt;
|
|
330
|
+
found.entry.submissionId = summary.id;
|
|
331
|
+
}
|
|
332
|
+
await store.save();
|
|
333
|
+
return cloneSubmission(summary);
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/** Release a reservation after the launcher rejects before acceptance. */
|
|
337
|
+
async releaseSubmission(projectPath, submissionId) {
|
|
338
|
+
return this.withMutation(projectPath, async (store) => {
|
|
339
|
+
const summary = store.state.submissions.find((item) => item.id === submissionId);
|
|
340
|
+
if (summary?.status !== "prepared")
|
|
341
|
+
return false;
|
|
342
|
+
store.state.submissions = store.state.submissions.filter((item) => item.id !== submissionId);
|
|
343
|
+
await store.save();
|
|
344
|
+
return true;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/** Attach the eventual canonical YA id to a previously queued submission. */
|
|
348
|
+
async associateSubmissionSession(projectPath, submissionId, sessionId) {
|
|
349
|
+
return this.withMutation(projectPath, async (store) => {
|
|
350
|
+
const summary = store.state.submissions.find((item) => item.id === submissionId);
|
|
351
|
+
if (!summary || summary.status === "legacy")
|
|
352
|
+
return null;
|
|
353
|
+
summary.targetSessionId = sessionId;
|
|
354
|
+
setOutcomeSession(store.state, submissionId, sessionId);
|
|
355
|
+
await store.save();
|
|
356
|
+
return cloneSubmission(summary);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/** Check every still-bounded submission associated with this YA session. */
|
|
360
|
+
async observeAssistantTurn(projectPath, sessionId) {
|
|
361
|
+
return this.withMutation(projectPath, async (store) => {
|
|
362
|
+
const submissions = store.state.submissions.filter((submission) => submission.status === "accepted" &&
|
|
363
|
+
submission.deliveryStatus === "delivered" &&
|
|
364
|
+
submission.targetSessionId === sessionId &&
|
|
365
|
+
submission.responseTurnsObserved !== undefined &&
|
|
366
|
+
submission.responseTurnLimit !== undefined &&
|
|
367
|
+
submission.responseTurnsObserved < submission.responseTurnLimit);
|
|
368
|
+
const results = [];
|
|
369
|
+
for (const submission of submissions) {
|
|
370
|
+
submission.responseTurnsObserved =
|
|
371
|
+
(submission.responseTurnsObserved ?? 0) + 1;
|
|
372
|
+
results.push({
|
|
373
|
+
submissionId: submission.id,
|
|
374
|
+
status: await this.ingestSubmissionResponse(projectPath, store.state, submission),
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
if (submissions.length > 0)
|
|
378
|
+
await store.save();
|
|
379
|
+
return results;
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/** User-triggered response check, including after the automatic window. */
|
|
383
|
+
async refreshSubmissionResponse(projectPath, submissionId) {
|
|
384
|
+
return this.withMutation(projectPath, async (store) => {
|
|
385
|
+
const submission = store.state.submissions.find((item) => item.id === submissionId);
|
|
386
|
+
if (!submission)
|
|
387
|
+
return null;
|
|
388
|
+
const status = await this.ingestSubmissionResponse(projectPath, store.state, submission);
|
|
389
|
+
if (status === "ingested")
|
|
390
|
+
await store.save();
|
|
391
|
+
return status;
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/** Move persisted delivery associations from a provisional YA id. */
|
|
395
|
+
async remapSubmissionSession(projectPath, oldSessionId, newSessionId) {
|
|
396
|
+
return this.withMutation(projectPath, async (store) => {
|
|
397
|
+
let changed = 0;
|
|
398
|
+
const remappedSubmissionIds = new Set();
|
|
399
|
+
for (const submission of store.state.submissions) {
|
|
400
|
+
if (submission.targetSessionId !== oldSessionId)
|
|
401
|
+
continue;
|
|
402
|
+
submission.targetSessionId = newSessionId;
|
|
403
|
+
remappedSubmissionIds.add(submission.id);
|
|
404
|
+
changed++;
|
|
405
|
+
}
|
|
406
|
+
for (const site of store.state.sites) {
|
|
407
|
+
for (const outcome of site.outcomes) {
|
|
408
|
+
if (outcome.sessionId === oldSessionId &&
|
|
409
|
+
remappedSubmissionIds.has(outcome.submissionId)) {
|
|
410
|
+
outcome.sessionId = newSessionId;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
if (changed > 0)
|
|
415
|
+
await store.save();
|
|
416
|
+
return changed;
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
/** Create a fresh active entry at an existing discussion site. */
|
|
420
|
+
async addFollowUp(projectPath, siteId, input) {
|
|
421
|
+
return this.withMutation(projectPath, async (store) => {
|
|
422
|
+
if (store.state.drafts.length >= MAX_REVIEW_COMMENTS) {
|
|
423
|
+
throw new HttpError(413, `Review comment limit reached (${MAX_REVIEW_COMMENTS}); submit or delete drafts first.`);
|
|
424
|
+
}
|
|
425
|
+
const site = store.state.sites.find((item) => item.id === siteId);
|
|
426
|
+
if (!site)
|
|
427
|
+
return null;
|
|
428
|
+
if (store.state.drafts.some((draft) => draft.siteId === siteId)) {
|
|
429
|
+
throw new HttpError(409, "This review site already has an active draft");
|
|
430
|
+
}
|
|
431
|
+
const entryId = this.newId();
|
|
432
|
+
const entry = {
|
|
433
|
+
id: entryId,
|
|
434
|
+
anchor: cloneAnchor(input.anchor),
|
|
435
|
+
text: input.text,
|
|
436
|
+
capture: await this.capture(projectPath, input.anchor),
|
|
437
|
+
createdAt: this.now(),
|
|
438
|
+
};
|
|
439
|
+
site.entries.push(entry);
|
|
440
|
+
site.path = input.anchor.path;
|
|
441
|
+
delete site.resolvedAt;
|
|
442
|
+
store.state.drafts.push({ siteId, entryId });
|
|
443
|
+
await store.save();
|
|
444
|
+
return cloneReviewerEntry(entry);
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
async resolveSite(projectPath, siteId) {
|
|
448
|
+
return this.withMutation(projectPath, async (store) => {
|
|
449
|
+
const site = store.state.sites.find((item) => item.id === siteId);
|
|
450
|
+
if (!site)
|
|
451
|
+
return false;
|
|
452
|
+
if (store.state.drafts.some((draft) => draft.siteId === siteId)) {
|
|
453
|
+
throw new HttpError(409, "Submit or discard the pending follow-up before resolving this site");
|
|
454
|
+
}
|
|
455
|
+
site.resolvedAt = this.now();
|
|
456
|
+
await store.save();
|
|
457
|
+
return true;
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
async acknowledgeSubmission(projectPath, submissionId) {
|
|
461
|
+
return this.withMutation(projectPath, async (store) => {
|
|
462
|
+
const submission = store.state.submissions.find((item) => item.id === submissionId);
|
|
463
|
+
if (!submission)
|
|
464
|
+
return null;
|
|
465
|
+
submission.acknowledgedRevision = submission.responseRevision;
|
|
466
|
+
await store.save();
|
|
467
|
+
return cloneSubmission(submission);
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
filePathFor(projectPath) {
|
|
471
|
+
return this.storagePolicy.writePath(projectPath, REVIEW_COMMENTS_FILENAME);
|
|
472
|
+
}
|
|
473
|
+
submissionDirectoryFor(projectPath, submissionId) {
|
|
474
|
+
validateSubmissionId(submissionId);
|
|
475
|
+
return this.storagePolicy.writePath(projectPath, SOURCE_REVIEW_DIR, submissionId);
|
|
476
|
+
}
|
|
477
|
+
async existingSubmissionDirectoryFor(projectPath, submissionId) {
|
|
478
|
+
return this.withStorageOperation(async () => {
|
|
479
|
+
const request = await this.readSubmissionRequestRecord(projectPath, submissionId);
|
|
480
|
+
return request
|
|
481
|
+
? path.dirname(request.sourcePath)
|
|
482
|
+
: this.submissionDirectoryFor(projectPath, submissionId);
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
requestPathFor(projectPath, submissionId) {
|
|
486
|
+
return path.join(this.submissionDirectoryFor(projectPath, submissionId), REQUEST_FILENAME);
|
|
487
|
+
}
|
|
488
|
+
responsePathFor(projectPath, submissionId) {
|
|
489
|
+
return path.join(this.submissionDirectoryFor(projectPath, submissionId), RESPONSE_FILENAME);
|
|
490
|
+
}
|
|
491
|
+
reset() {
|
|
492
|
+
this.stores.clear();
|
|
493
|
+
this.releasedKeys.clear();
|
|
494
|
+
this.retainedBytes = 0;
|
|
495
|
+
}
|
|
496
|
+
async capture(projectPath, anchor) {
|
|
497
|
+
return anchor.projection && this.captureWriter
|
|
498
|
+
? this.captureWriter.capture(projectPath, anchor.projection)
|
|
499
|
+
: { status: "legacy-missing" };
|
|
500
|
+
}
|
|
501
|
+
async ingestSubmissionResponse(projectPath, state, submission) {
|
|
502
|
+
let requestRecord;
|
|
503
|
+
try {
|
|
504
|
+
requestRecord = await this.readSubmissionRequestRecord(projectPath, submission.id);
|
|
505
|
+
}
|
|
506
|
+
catch {
|
|
507
|
+
return "invalid";
|
|
508
|
+
}
|
|
509
|
+
if (!requestRecord)
|
|
510
|
+
return "invalid";
|
|
511
|
+
let bytes;
|
|
512
|
+
try {
|
|
513
|
+
const bounded = await readFileBounded(path.join(path.dirname(requestRecord.sourcePath), RESPONSE_FILENAME), MAX_REVIEW_RESPONSE_FILE_BYTES);
|
|
514
|
+
if (!bounded)
|
|
515
|
+
return "invalid";
|
|
516
|
+
bytes = bounded;
|
|
517
|
+
}
|
|
518
|
+
catch (error) {
|
|
519
|
+
return error.code === "ENOENT"
|
|
520
|
+
? "missing"
|
|
521
|
+
: "invalid";
|
|
522
|
+
}
|
|
523
|
+
let response;
|
|
524
|
+
try {
|
|
525
|
+
response = parseReviewSubmissionResponse(JSON.parse(bytes.toString("utf-8")));
|
|
526
|
+
}
|
|
527
|
+
catch {
|
|
528
|
+
return "invalid";
|
|
529
|
+
}
|
|
530
|
+
if (!response || response.submissionId !== submission.id)
|
|
531
|
+
return "invalid";
|
|
532
|
+
const request = requestRecord.request;
|
|
533
|
+
const expected = new Set(request.entries.map(entryRefKey));
|
|
534
|
+
if (expected.size !== request.entries.length)
|
|
535
|
+
return "invalid";
|
|
536
|
+
const actual = new Set(response.outcomes.map(entryRefKey));
|
|
537
|
+
if (response.outcomes.length !== expected.size ||
|
|
538
|
+
actual.size !== expected.size ||
|
|
539
|
+
[...actual].some((key) => !expected.has(key))) {
|
|
540
|
+
return "invalid";
|
|
541
|
+
}
|
|
542
|
+
const resolved = response.outcomes.map((outcome) => ({
|
|
543
|
+
outcome,
|
|
544
|
+
found: findEntry(state, outcome),
|
|
545
|
+
}));
|
|
546
|
+
if (resolved.some((item) => !item.found))
|
|
547
|
+
return "invalid";
|
|
548
|
+
const responseHash = createHash("sha256").update(bytes).digest("hex");
|
|
549
|
+
if (responseHash === submission.lastResponseHash)
|
|
550
|
+
return "unchanged";
|
|
551
|
+
const observedAt = this.now();
|
|
552
|
+
for (const { outcome, found } of resolved) {
|
|
553
|
+
if (!found)
|
|
554
|
+
continue;
|
|
555
|
+
const previous = found.site.outcomes
|
|
556
|
+
.filter((item) => item.entryId === outcome.entryId)
|
|
557
|
+
.at(-1);
|
|
558
|
+
if (previous?.disposition === outcome.disposition &&
|
|
559
|
+
previous.text === outcome.text) {
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
found.site.outcomes.push({
|
|
563
|
+
submissionId: submission.id,
|
|
564
|
+
entryId: outcome.entryId,
|
|
565
|
+
disposition: outcome.disposition,
|
|
566
|
+
text: outcome.text,
|
|
567
|
+
observedAt,
|
|
568
|
+
responseHash,
|
|
569
|
+
...(submission.targetSessionId
|
|
570
|
+
? { sessionId: submission.targetSessionId }
|
|
571
|
+
: {}),
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
submission.lastResponseHash = responseHash;
|
|
575
|
+
submission.responseRevision += 1;
|
|
576
|
+
return "ingested";
|
|
577
|
+
}
|
|
578
|
+
reserveRequestEntries(state, request) {
|
|
579
|
+
const draftKeys = new Set(state.drafts.map(entryRefKey));
|
|
580
|
+
for (const entry of request.entries) {
|
|
581
|
+
if (!draftKeys.has(entryRefKey(entry))) {
|
|
582
|
+
throw new HttpError(409, "Submission entries are no longer pending");
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
async readSubmissionRequest(projectPath, submissionId) {
|
|
587
|
+
return ((await this.readSubmissionRequestRecord(projectPath, submissionId))
|
|
588
|
+
?.request ?? null);
|
|
589
|
+
}
|
|
590
|
+
async readSubmissionRequestRecord(projectPath, submissionId) {
|
|
591
|
+
const records = [];
|
|
592
|
+
for (const sourcePath of this.storagePolicy.readPaths(projectPath, SOURCE_REVIEW_DIR, submissionId, REQUEST_FILENAME)) {
|
|
593
|
+
let bytes;
|
|
594
|
+
try {
|
|
595
|
+
bytes = await fs.readFile(sourcePath);
|
|
596
|
+
}
|
|
597
|
+
catch (error) {
|
|
598
|
+
if (error.code === "ENOENT")
|
|
599
|
+
continue;
|
|
600
|
+
throw error;
|
|
601
|
+
}
|
|
602
|
+
let value;
|
|
603
|
+
try {
|
|
604
|
+
value = JSON.parse(bytes.toString("utf-8"));
|
|
605
|
+
}
|
|
606
|
+
catch {
|
|
607
|
+
throw new InvalidSubmissionRequestError();
|
|
608
|
+
}
|
|
609
|
+
const request = parseReviewSubmissionRequest(value);
|
|
610
|
+
if (!request || request.submissionId !== submissionId) {
|
|
611
|
+
throw new InvalidSubmissionRequestError();
|
|
612
|
+
}
|
|
613
|
+
records.push({ request, sourcePath, bytes });
|
|
614
|
+
}
|
|
615
|
+
const selected = records[0];
|
|
616
|
+
if (!selected)
|
|
617
|
+
return null;
|
|
618
|
+
if (records.some((record) => !record.bytes.equals(selected.bytes))) {
|
|
619
|
+
throw new InvalidSubmissionRequestError();
|
|
620
|
+
}
|
|
621
|
+
return selected;
|
|
622
|
+
}
|
|
623
|
+
async hasSubmissionRequest(projectPath, submissionId) {
|
|
624
|
+
for (const requestPath of this.storagePolicy.readPaths(projectPath, SOURCE_REVIEW_DIR, submissionId, REQUEST_FILENAME)) {
|
|
625
|
+
try {
|
|
626
|
+
await fs.access(requestPath);
|
|
627
|
+
return true;
|
|
628
|
+
}
|
|
629
|
+
catch (error) {
|
|
630
|
+
if (error.code !== "ENOENT")
|
|
631
|
+
throw error;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return false;
|
|
635
|
+
}
|
|
636
|
+
async writeSubmissionRequest(projectPath, request) {
|
|
637
|
+
await this.storagePolicy.ensureWriteDirectory(projectPath);
|
|
638
|
+
const directory = this.submissionDirectoryFor(projectPath, request.submissionId);
|
|
639
|
+
await fs.mkdir(directory, { recursive: true });
|
|
640
|
+
const requestPath = this.requestPathFor(projectPath, request.submissionId);
|
|
641
|
+
const temporaryPath = `${requestPath}.${randomUUID()}.tmp`;
|
|
642
|
+
const file = await fs.open(temporaryPath, "wx");
|
|
643
|
+
try {
|
|
644
|
+
await file.writeFile(`${JSON.stringify(request, null, 2)}\n`, "utf-8");
|
|
645
|
+
await file.sync();
|
|
646
|
+
}
|
|
647
|
+
finally {
|
|
648
|
+
await file.close();
|
|
649
|
+
}
|
|
650
|
+
let publicationError;
|
|
651
|
+
try {
|
|
652
|
+
await fs.link(temporaryPath, requestPath);
|
|
653
|
+
}
|
|
654
|
+
catch (error) {
|
|
655
|
+
publicationError = error;
|
|
656
|
+
}
|
|
657
|
+
let cleanupError;
|
|
658
|
+
try {
|
|
659
|
+
await fs.unlink(temporaryPath);
|
|
660
|
+
}
|
|
661
|
+
catch (error) {
|
|
662
|
+
if (error.code !== "ENOENT") {
|
|
663
|
+
cleanupError = error;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (publicationError && cleanupError) {
|
|
667
|
+
throw new AggregateError([publicationError, cleanupError], "Failed to publish and clean up submission request manifest");
|
|
668
|
+
}
|
|
669
|
+
if (publicationError)
|
|
670
|
+
throw publicationError;
|
|
671
|
+
if (cleanupError)
|
|
672
|
+
throw cleanupError;
|
|
673
|
+
const directoryHandle = await fs.open(directory, "r");
|
|
674
|
+
try {
|
|
675
|
+
await directoryHandle.sync();
|
|
676
|
+
}
|
|
677
|
+
finally {
|
|
678
|
+
await directoryHandle.close();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
async removeSubmissionRequest(projectPath, submissionId) {
|
|
682
|
+
for (const requestPath of this.storagePolicy.readPaths(projectPath, SOURCE_REVIEW_DIR, submissionId, REQUEST_FILENAME)) {
|
|
683
|
+
try {
|
|
684
|
+
await fs.unlink(requestPath);
|
|
685
|
+
}
|
|
686
|
+
catch (error) {
|
|
687
|
+
if (error.code !== "ENOENT")
|
|
688
|
+
throw error;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
async getStore(projectPath, pinOperation = false) {
|
|
693
|
+
const storeKey = this.filePathFor(projectPath);
|
|
694
|
+
let store = this.stores.get(storeKey);
|
|
695
|
+
if (store?.writeFailed) {
|
|
696
|
+
if (store.activeOperations > 0)
|
|
697
|
+
throw store.writeFailure;
|
|
698
|
+
this.releaseStore(storeKey, store);
|
|
699
|
+
store = undefined;
|
|
700
|
+
}
|
|
701
|
+
if (!store) {
|
|
702
|
+
if (this.releasedKeys.has(storeKey))
|
|
703
|
+
this.reloadsAfterRelease += 1;
|
|
704
|
+
const created = {
|
|
705
|
+
projectPath,
|
|
706
|
+
state: emptyReviewStoreFile(),
|
|
707
|
+
logicalRevision: 0,
|
|
708
|
+
hasPersistedState: false,
|
|
709
|
+
loadPromise: null,
|
|
710
|
+
loaded: false,
|
|
711
|
+
save: () => Promise.resolve(),
|
|
712
|
+
mutationTail: Promise.resolve(),
|
|
713
|
+
activeOperations: 0,
|
|
714
|
+
writeFailed: false,
|
|
715
|
+
writeFailure: undefined,
|
|
716
|
+
lastAccessMs: this.monotonicNowMs(),
|
|
717
|
+
estimatedBytes: 0,
|
|
718
|
+
};
|
|
719
|
+
const saver = createCoalescingSaver(() => this.doSave(projectPath, created));
|
|
720
|
+
// A save in flight pins the store: releasing it would strand the only
|
|
721
|
+
// copy of state the writer has not yet reached disk with.
|
|
722
|
+
created.save = () => {
|
|
723
|
+
created.activeOperations += 1;
|
|
724
|
+
// In-memory state has already changed by the time a save is issued, and
|
|
725
|
+
// getStoreFile reads that state, so retained projections go stale here
|
|
726
|
+
// rather than when the write lands.
|
|
727
|
+
this.stateRevision += 1;
|
|
728
|
+
created.logicalRevision += 1;
|
|
729
|
+
return saver
|
|
730
|
+
.save()
|
|
731
|
+
.catch((error) => {
|
|
732
|
+
created.writeFailed = true;
|
|
733
|
+
created.writeFailure = error;
|
|
734
|
+
throw error;
|
|
735
|
+
})
|
|
736
|
+
.finally(() => {
|
|
737
|
+
created.activeOperations -= 1;
|
|
738
|
+
this.measureStore(created);
|
|
739
|
+
this.releaseFailedStore(storeKey, created);
|
|
740
|
+
});
|
|
741
|
+
};
|
|
742
|
+
this.stores.set(storeKey, created);
|
|
743
|
+
store = created;
|
|
744
|
+
}
|
|
745
|
+
store.lastAccessMs = this.monotonicNowMs();
|
|
746
|
+
if (pinOperation)
|
|
747
|
+
store.activeOperations += 1;
|
|
748
|
+
try {
|
|
749
|
+
if (!store.loaded) {
|
|
750
|
+
if (!store.loadPromise)
|
|
751
|
+
store.loadPromise = this.load(projectPath, store);
|
|
752
|
+
await store.loadPromise;
|
|
753
|
+
this.measureStore(store);
|
|
754
|
+
}
|
|
755
|
+
this.releaseIdleStores(storeKey);
|
|
756
|
+
return store;
|
|
757
|
+
}
|
|
758
|
+
catch (error) {
|
|
759
|
+
if (pinOperation)
|
|
760
|
+
store.activeOperations -= 1;
|
|
761
|
+
this.releaseFailedStore(storeKey, store);
|
|
762
|
+
throw error;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
async withMutation(projectPath, mutate) {
|
|
766
|
+
const releaseStorageOperation = await this.acquireStorageOperation();
|
|
767
|
+
try {
|
|
768
|
+
// Pin synchronously with store acquisition, before loading or another
|
|
769
|
+
// project's budget enforcement can release this operation's owner.
|
|
770
|
+
const storeKey = this.filePathFor(projectPath);
|
|
771
|
+
const store = await this.getStore(projectPath, true);
|
|
772
|
+
const runMutation = () => {
|
|
773
|
+
if (store.writeFailed)
|
|
774
|
+
return Promise.reject(store.writeFailure);
|
|
775
|
+
return mutate(store);
|
|
776
|
+
};
|
|
777
|
+
const run = store.mutationTail.then(runMutation, runMutation);
|
|
778
|
+
store.mutationTail = run.then(() => undefined, () => undefined);
|
|
779
|
+
return await run.finally(() => {
|
|
780
|
+
store.activeOperations -= 1;
|
|
781
|
+
if (this.stores.get(storeKey) === store) {
|
|
782
|
+
this.measureStore(store);
|
|
783
|
+
this.releaseFailedStore(storeKey, store);
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
finally {
|
|
788
|
+
releaseStorageOperation();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
async withStorageOperation(operation) {
|
|
792
|
+
const release = await this.acquireStorageOperation();
|
|
793
|
+
try {
|
|
794
|
+
return await operation();
|
|
795
|
+
}
|
|
796
|
+
finally {
|
|
797
|
+
release();
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
async acquireStorageOperation() {
|
|
801
|
+
while (this.storageTransitionBarrier) {
|
|
802
|
+
await this.storageTransitionBarrier;
|
|
803
|
+
}
|
|
804
|
+
if (this.activeStorageOperations === 0) {
|
|
805
|
+
this.storageOperationsDrained = new Promise((resolve) => {
|
|
806
|
+
this.resolveStorageOperationsDrained = resolve;
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
this.activeStorageOperations += 1;
|
|
810
|
+
let released = false;
|
|
811
|
+
return () => {
|
|
812
|
+
if (released)
|
|
813
|
+
return;
|
|
814
|
+
released = true;
|
|
815
|
+
this.activeStorageOperations -= 1;
|
|
816
|
+
if (this.activeStorageOperations === 0) {
|
|
817
|
+
this.resolveStorageOperationsDrained?.();
|
|
818
|
+
this.resolveStorageOperationsDrained = null;
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
async withStorageTransition(targetMode, commit) {
|
|
823
|
+
let releaseBarrier;
|
|
824
|
+
const gate = new Promise((resolve) => {
|
|
825
|
+
releaseBarrier = resolve;
|
|
826
|
+
});
|
|
827
|
+
const previousBarrier = this.storageTransitionBarrier ?? Promise.resolve();
|
|
828
|
+
const currentBarrier = previousBarrier.then(() => gate);
|
|
829
|
+
this.storageTransitionBarrier = currentBarrier;
|
|
830
|
+
await previousBarrier;
|
|
831
|
+
if (this.activeStorageOperations > 0) {
|
|
832
|
+
await this.storageOperationsDrained;
|
|
833
|
+
}
|
|
834
|
+
try {
|
|
835
|
+
const storesByProject = new Map([...this.stores.values()].map((store) => [store.projectPath, store]));
|
|
836
|
+
const projectPaths = new Set([
|
|
837
|
+
...storesByProject.keys(),
|
|
838
|
+
...(await this.listProjectPaths()),
|
|
839
|
+
]);
|
|
840
|
+
for (const projectPath of projectPaths) {
|
|
841
|
+
const retained = storesByProject.get(projectPath);
|
|
842
|
+
const store = retained?.loaded && !retained.writeFailed
|
|
843
|
+
? retained
|
|
844
|
+
: await this.getStore(projectPath);
|
|
845
|
+
if (!store.hasPersistedState)
|
|
846
|
+
continue;
|
|
847
|
+
await this.writeStoreToMode(store, targetMode);
|
|
848
|
+
}
|
|
849
|
+
const result = await commit();
|
|
850
|
+
if (this.storagePolicy.mode !== targetMode) {
|
|
851
|
+
throw new Error("Review storage transition did not change modes");
|
|
852
|
+
}
|
|
853
|
+
this.releaseAllStores();
|
|
854
|
+
return result;
|
|
855
|
+
}
|
|
856
|
+
finally {
|
|
857
|
+
releaseBarrier();
|
|
858
|
+
if (this.storageTransitionBarrier === currentBarrier) {
|
|
859
|
+
this.storageTransitionBarrier = null;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
/** Monotonic marker every retained review projection can key against. */
|
|
864
|
+
getStateRevision() {
|
|
865
|
+
return this.stateRevision;
|
|
866
|
+
}
|
|
867
|
+
getRetentionMetrics() {
|
|
868
|
+
return {
|
|
869
|
+
retainedStores: this.stores.size,
|
|
870
|
+
retainedBytes: this.retainedBytes,
|
|
871
|
+
releases: this.releases,
|
|
872
|
+
releasesByAge: this.releasesByAge,
|
|
873
|
+
protectedSkips: this.protectedSkips,
|
|
874
|
+
reloadsAfterRelease: this.reloadsAfterRelease,
|
|
875
|
+
stateRevision: this.stateRevision,
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
measureStore(store) {
|
|
879
|
+
const bytes = Buffer.byteLength(JSON.stringify(store.state));
|
|
880
|
+
this.retainedBytes += bytes - store.estimatedBytes;
|
|
881
|
+
store.estimatedBytes = bytes;
|
|
882
|
+
}
|
|
883
|
+
isReleasable(store) {
|
|
884
|
+
return store.loaded && store.activeOperations === 0;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Release clean, inactive project stores. One Inbox pass must not keep every
|
|
888
|
+
* project's sites, entries, and outcomes resident for the server's lifetime.
|
|
889
|
+
*/
|
|
890
|
+
releaseIdleStores(keepKey) {
|
|
891
|
+
const now = this.monotonicNowMs();
|
|
892
|
+
if (this.maxRetainedStoreAgeMs > 0) {
|
|
893
|
+
for (const [key, store] of this.stores) {
|
|
894
|
+
if (key === keepKey)
|
|
895
|
+
continue;
|
|
896
|
+
if (now - store.lastAccessMs < this.maxRetainedStoreAgeMs)
|
|
897
|
+
continue;
|
|
898
|
+
if (!this.isReleasable(store)) {
|
|
899
|
+
this.protectedSkips += 1;
|
|
900
|
+
continue;
|
|
901
|
+
}
|
|
902
|
+
this.releaseStore(key, store);
|
|
903
|
+
this.releasesByAge += 1;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
if (this.retainedBytes <= this.maxRetainedStoreBytes)
|
|
907
|
+
return;
|
|
908
|
+
const releasable = [...this.stores]
|
|
909
|
+
.filter(([key, store]) => key !== keepKey && this.isReleasable(store))
|
|
910
|
+
.sort(([, left], [, right]) => left.lastAccessMs - right.lastAccessMs);
|
|
911
|
+
for (const [key, store] of releasable) {
|
|
912
|
+
if (this.retainedBytes <= this.maxRetainedStoreBytes)
|
|
913
|
+
return;
|
|
914
|
+
this.releaseStore(key, store);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
releaseStore(key, store) {
|
|
918
|
+
this.retainedBytes -= store.estimatedBytes;
|
|
919
|
+
this.stores.delete(key);
|
|
920
|
+
this.releasedKeys.add(key);
|
|
921
|
+
this.releases += 1;
|
|
922
|
+
}
|
|
923
|
+
releaseAllStores() {
|
|
924
|
+
for (const [key, store] of this.stores) {
|
|
925
|
+
this.releaseStore(key, store);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
releaseFailedStore(key, store) {
|
|
929
|
+
if (!store.writeFailed ||
|
|
930
|
+
store.activeOperations !== 0 ||
|
|
931
|
+
this.stores.get(key) !== store) {
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
this.releaseStore(key, store);
|
|
935
|
+
}
|
|
936
|
+
async load(projectPath, store) {
|
|
937
|
+
let needsSave = false;
|
|
938
|
+
const candidates = [];
|
|
939
|
+
for (const sourcePath of this.storagePolicy.readPaths(projectPath, REVIEW_COMMENTS_FILENAME)) {
|
|
940
|
+
try {
|
|
941
|
+
candidates.push(await readPersistedReviewStore(sourcePath));
|
|
942
|
+
}
|
|
943
|
+
catch (error) {
|
|
944
|
+
if (error.code !== "ENOENT") {
|
|
945
|
+
console.warn(`[ReviewCommentService] Failed to read review state at ${sourcePath}:`, error);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
if (candidates.length === 0)
|
|
950
|
+
return this.finishEmptyLoad(store);
|
|
951
|
+
candidates.sort((left, right) => right.logicalRevision - left.logicalRevision);
|
|
952
|
+
const selected = candidates[0];
|
|
953
|
+
if (!selected)
|
|
954
|
+
return this.finishEmptyLoad(store);
|
|
955
|
+
const conflicting = candidates.find((candidate) => candidate.logicalRevision === selected.logicalRevision &&
|
|
956
|
+
candidate.stateSha256 !== selected.stateSha256);
|
|
957
|
+
if (conflicting)
|
|
958
|
+
throw new ReviewStorageConflictError();
|
|
959
|
+
store.state = selected.state;
|
|
960
|
+
store.logicalRevision = selected.logicalRevision;
|
|
961
|
+
store.hasPersistedState = true;
|
|
962
|
+
const recovered = [];
|
|
963
|
+
for (const submission of store.state.submissions) {
|
|
964
|
+
if (submission.status !== "prepared") {
|
|
965
|
+
recovered.push(submission);
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
if (await this.hasSubmissionRequest(projectPath, submission.id)) {
|
|
969
|
+
recovered.push(submission);
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
needsSave = true;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
store.state.submissions = recovered;
|
|
976
|
+
store.loaded = true;
|
|
977
|
+
if (needsSave)
|
|
978
|
+
await store.save();
|
|
979
|
+
}
|
|
980
|
+
async doSave(_projectPath, store) {
|
|
981
|
+
await this.writeStoreToMode(store, this.storagePolicy.mode);
|
|
982
|
+
}
|
|
983
|
+
async writeStoreToMode(store, mode) {
|
|
984
|
+
const filePath = await this.storagePolicy.ensureParentForWriteFor(mode, store.projectPath, REVIEW_COMMENTS_FILENAME);
|
|
985
|
+
await writePersistedReviewStore(filePath, store.state, store.logicalRevision);
|
|
986
|
+
const verified = await readPersistedReviewStore(filePath);
|
|
987
|
+
const expectedSha256 = reviewStoreSha256(store.state);
|
|
988
|
+
if (verified.logicalRevision !== store.logicalRevision ||
|
|
989
|
+
verified.stateSha256 !== expectedSha256) {
|
|
990
|
+
throw new Error("Source Review state verification failed after write");
|
|
991
|
+
}
|
|
992
|
+
store.hasPersistedState = true;
|
|
993
|
+
}
|
|
994
|
+
finishEmptyLoad(store) {
|
|
995
|
+
store.state = emptyReviewStoreFile();
|
|
996
|
+
store.logicalRevision = 0;
|
|
997
|
+
store.hasPersistedState = false;
|
|
998
|
+
store.loaded = true;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
function reviewStoreSha256(state) {
|
|
1002
|
+
return createHash("sha256").update(JSON.stringify(state)).digest("hex");
|
|
1003
|
+
}
|
|
1004
|
+
async function readPersistedReviewStore(sourcePath) {
|
|
1005
|
+
const content = await fs.readFile(sourcePath, "utf-8");
|
|
1006
|
+
const value = JSON.parse(content);
|
|
1007
|
+
const persistedRecord = value && typeof value === "object" && !Array.isArray(value)
|
|
1008
|
+
? value
|
|
1009
|
+
: undefined;
|
|
1010
|
+
const metadata = persistedRecord?.[REVIEW_STORAGE_METADATA_KEY];
|
|
1011
|
+
let stateValue = value;
|
|
1012
|
+
if (persistedRecord) {
|
|
1013
|
+
const storedState = { ...persistedRecord };
|
|
1014
|
+
delete storedState[REVIEW_STORAGE_METADATA_KEY];
|
|
1015
|
+
stateValue = storedState;
|
|
1016
|
+
}
|
|
1017
|
+
const stateSha256 = reviewStoreSha256(stateValue);
|
|
1018
|
+
const state = parseReviewStoreFile(stateValue);
|
|
1019
|
+
if (metadata === undefined) {
|
|
1020
|
+
return { state, logicalRevision: 0, stateSha256, sourcePath };
|
|
1021
|
+
}
|
|
1022
|
+
if (!metadata || typeof metadata !== "object" || Array.isArray(metadata)) {
|
|
1023
|
+
throw new Error("Source Review storage metadata is invalid");
|
|
1024
|
+
}
|
|
1025
|
+
const record = metadata;
|
|
1026
|
+
if (record.version !== REVIEW_STORAGE_METADATA_VERSION ||
|
|
1027
|
+
typeof record.logicalRevision !== "number" ||
|
|
1028
|
+
!Number.isSafeInteger(record.logicalRevision) ||
|
|
1029
|
+
record.logicalRevision < 0 ||
|
|
1030
|
+
typeof record.stateSha256 !== "string" ||
|
|
1031
|
+
record.stateSha256 !== stateSha256) {
|
|
1032
|
+
throw new Error("Source Review storage metadata is invalid");
|
|
1033
|
+
}
|
|
1034
|
+
return {
|
|
1035
|
+
state,
|
|
1036
|
+
logicalRevision: record.logicalRevision,
|
|
1037
|
+
stateSha256,
|
|
1038
|
+
sourcePath,
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
async function writePersistedReviewStore(filePath, state, logicalRevision) {
|
|
1042
|
+
const persisted = {
|
|
1043
|
+
...state,
|
|
1044
|
+
[REVIEW_STORAGE_METADATA_KEY]: {
|
|
1045
|
+
version: REVIEW_STORAGE_METADATA_VERSION,
|
|
1046
|
+
logicalRevision,
|
|
1047
|
+
stateSha256: reviewStoreSha256(state),
|
|
1048
|
+
},
|
|
1049
|
+
};
|
|
1050
|
+
const temporaryPath = `${filePath}.${randomUUID()}.tmp`;
|
|
1051
|
+
let published = false;
|
|
1052
|
+
try {
|
|
1053
|
+
const file = await fs.open(temporaryPath, "wx", 0o600);
|
|
1054
|
+
try {
|
|
1055
|
+
await file.writeFile(`${JSON.stringify(persisted, null, 2)}\n`, "utf-8");
|
|
1056
|
+
await file.sync();
|
|
1057
|
+
}
|
|
1058
|
+
finally {
|
|
1059
|
+
await file.close();
|
|
1060
|
+
}
|
|
1061
|
+
await fs.rename(temporaryPath, filePath);
|
|
1062
|
+
published = true;
|
|
1063
|
+
const directory = await fs.open(path.dirname(filePath), "r");
|
|
1064
|
+
try {
|
|
1065
|
+
await directory.sync();
|
|
1066
|
+
}
|
|
1067
|
+
finally {
|
|
1068
|
+
await directory.close();
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
finally {
|
|
1072
|
+
if (!published) {
|
|
1073
|
+
await fs.unlink(temporaryPath).catch((error) => {
|
|
1074
|
+
if (error.code !== "ENOENT")
|
|
1075
|
+
throw error;
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
async function readFileBounded(filePath, maxBytes) {
|
|
1081
|
+
const handle = await fs.open(filePath, "r");
|
|
1082
|
+
try {
|
|
1083
|
+
const stats = await handle.stat();
|
|
1084
|
+
if (stats.size > maxBytes)
|
|
1085
|
+
return null;
|
|
1086
|
+
const bytes = Buffer.alloc(stats.size);
|
|
1087
|
+
let offset = 0;
|
|
1088
|
+
while (offset < bytes.length) {
|
|
1089
|
+
const result = await handle.read(bytes, offset, bytes.length - offset, offset);
|
|
1090
|
+
if (result.bytesRead === 0)
|
|
1091
|
+
break;
|
|
1092
|
+
offset += result.bytesRead;
|
|
1093
|
+
}
|
|
1094
|
+
return bytes.subarray(0, offset);
|
|
1095
|
+
}
|
|
1096
|
+
finally {
|
|
1097
|
+
await handle.close();
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
function findEntry(store, ref) {
|
|
1101
|
+
const site = store.sites.find((item) => item.id === ref.siteId);
|
|
1102
|
+
const entry = site?.entries.find((item) => item.id === ref.entryId);
|
|
1103
|
+
return site && entry ? { site, entry } : null;
|
|
1104
|
+
}
|
|
1105
|
+
function setOutcomeSession(store, submissionId, sessionId) {
|
|
1106
|
+
for (const site of store.sites) {
|
|
1107
|
+
for (const outcome of site.outcomes) {
|
|
1108
|
+
if (outcome.submissionId === submissionId) {
|
|
1109
|
+
outcome.sessionId = sessionId;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
function validateSubmissionId(submissionId) {
|
|
1115
|
+
if (submissionId.length === 0 ||
|
|
1116
|
+
submissionId.length > 128 ||
|
|
1117
|
+
!/^[A-Za-z0-9][A-Za-z0-9_-]*$/u.test(submissionId)) {
|
|
1118
|
+
throw new HttpError(400, "Invalid review submission id");
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
function validateSubmissionInput(input) {
|
|
1122
|
+
validateSubmissionId(input.submissionId);
|
|
1123
|
+
if (input.name !== undefined &&
|
|
1124
|
+
(input.name.trim().length === 0 ||
|
|
1125
|
+
input.name.length > MAX_REVIEW_SUBMISSION_NAME_LENGTH)) {
|
|
1126
|
+
throw new HttpError(400, "Invalid review submission name");
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
function entryRefKey(ref) {
|
|
1130
|
+
return `${ref.siteId}\0${ref.entryId}`;
|
|
1131
|
+
}
|
|
1132
|
+
function summaryFromRequest(request) {
|
|
1133
|
+
return {
|
|
1134
|
+
id: request.submissionId,
|
|
1135
|
+
submittedAt: request.submittedAt,
|
|
1136
|
+
requestedTarget: request.requestedTarget,
|
|
1137
|
+
entryRefs: request.entries.map(({ siteId, entryId }) => ({
|
|
1138
|
+
siteId,
|
|
1139
|
+
entryId,
|
|
1140
|
+
})),
|
|
1141
|
+
status: "prepared",
|
|
1142
|
+
responseRevision: 0,
|
|
1143
|
+
acknowledgedRevision: 0,
|
|
1144
|
+
...(request.name ? { name: request.name } : {}),
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function assertSameSubmissionRequest(request, input) {
|
|
1148
|
+
const requestedIds = [...new Set(input.commentIds)].sort();
|
|
1149
|
+
const frozenIds = request.entries.map((entry) => entry.entryId).sort();
|
|
1150
|
+
if (request.requestedTarget !== input.requestedTarget ||
|
|
1151
|
+
(request.name ?? "") !== (input.name ?? "") ||
|
|
1152
|
+
JSON.stringify(requestedIds) !== JSON.stringify(frozenIds)) {
|
|
1153
|
+
throw new HttpError(409, "Submission id is already bound to another request");
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
function cloneCapture(capture) {
|
|
1157
|
+
return capture.status === "captured"
|
|
1158
|
+
? { ...capture, projection: { ...capture.projection } }
|
|
1159
|
+
: { status: "legacy-missing" };
|
|
1160
|
+
}
|
|
1161
|
+
function cloneRelocation(relocation) {
|
|
1162
|
+
return { ...relocation };
|
|
1163
|
+
}
|
|
1164
|
+
function cloneSubmissionRequest(request) {
|
|
1165
|
+
return {
|
|
1166
|
+
...request,
|
|
1167
|
+
entries: request.entries.map((entry) => ({
|
|
1168
|
+
...entry,
|
|
1169
|
+
anchor: cloneAnchor(entry.anchor),
|
|
1170
|
+
capture: cloneCapture(entry.capture),
|
|
1171
|
+
relocation: cloneRelocation(entry.relocation),
|
|
1172
|
+
})),
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
function findDraftEntry(store, entryId) {
|
|
1176
|
+
const ref = store.drafts.find((item) => item.entryId === entryId);
|
|
1177
|
+
return ref ? findEntry(store, ref) : null;
|
|
1178
|
+
}
|
|
1179
|
+
function cloneAnchor(anchor) {
|
|
1180
|
+
return {
|
|
1181
|
+
...anchor,
|
|
1182
|
+
revision: { ...anchor.revision },
|
|
1183
|
+
...(anchor.projection ? { projection: { ...anchor.projection } } : {}),
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
function canonicalEntryToComment(entry, pending) {
|
|
1187
|
+
return {
|
|
1188
|
+
id: entry.id,
|
|
1189
|
+
anchor: cloneAnchor(entry.anchor),
|
|
1190
|
+
text: entry.text,
|
|
1191
|
+
status: pending ? "pending" : "archived",
|
|
1192
|
+
createdAt: entry.createdAt,
|
|
1193
|
+
...(!pending && entry.submittedAt ? { archivedAt: entry.submittedAt } : {}),
|
|
1194
|
+
...(!pending && entry.submissionId ? { batchId: entry.submissionId } : {}),
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
function cloneReviewerEntry(entry) {
|
|
1198
|
+
return {
|
|
1199
|
+
...entry,
|
|
1200
|
+
anchor: cloneAnchor(entry.anchor),
|
|
1201
|
+
capture: entry.capture.status === "captured"
|
|
1202
|
+
? {
|
|
1203
|
+
...entry.capture,
|
|
1204
|
+
projection: { ...entry.capture.projection },
|
|
1205
|
+
}
|
|
1206
|
+
: { status: "legacy-missing" },
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
function cloneSubmission(submission) {
|
|
1210
|
+
return {
|
|
1211
|
+
...submission,
|
|
1212
|
+
entryRefs: submission.entryRefs.map((ref) => ({ ...ref })),
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
function cloneLegacyFile(file) {
|
|
1216
|
+
return {
|
|
1217
|
+
version: file.version,
|
|
1218
|
+
comments: file.comments.map((comment) => ({
|
|
1219
|
+
...comment,
|
|
1220
|
+
anchor: cloneAnchor(comment.anchor),
|
|
1221
|
+
})),
|
|
1222
|
+
batches: file.batches.map((batch) => ({
|
|
1223
|
+
...batch,
|
|
1224
|
+
commentIds: [...batch.commentIds],
|
|
1225
|
+
})),
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
function cloneStoreFile(file) {
|
|
1229
|
+
return {
|
|
1230
|
+
version: file.version,
|
|
1231
|
+
sites: file.sites.map((site) => ({
|
|
1232
|
+
...site,
|
|
1233
|
+
entries: site.entries.map(cloneReviewerEntry),
|
|
1234
|
+
outcomes: site.outcomes.map((outcome) => ({ ...outcome })),
|
|
1235
|
+
})),
|
|
1236
|
+
drafts: file.drafts.map((draft) => ({ ...draft })),
|
|
1237
|
+
submissions: file.submissions.map(cloneSubmission),
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
//# sourceMappingURL=ReviewCommentService.js.map
|