yepanywhere 0.5.2 → 0.6.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 +21 -5
- package/bundled/@yep-anywhere/shared/dist/agent-context.d.ts +9 -0
- package/bundled/@yep-anywhere/shared/dist/agent-context.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/agent-context.js +18 -0
- package/bundled/@yep-anywhere/shared/dist/agent-context.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts +104 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.js +4 -0
- package/bundled/@yep-anywhere/shared/dist/app-types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/binary-framing.d.ts +4 -1
- package/bundled/@yep-anywhere/shared/dist/binary-framing.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/binary-framing.js +8 -3
- package/bundled/@yep-anywhere/shared/dist/binary-framing.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/AssistantEntrySchema.d.ts +4 -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/BaseEntrySchema.d.ts +4 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.js +7 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/BaseEntrySchema.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.d.ts +4 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/ProgressEntrySchema.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/SystemEntrySchema.d.ts +64 -1
- 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 +9 -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/entry/UserEntrySchema.d.ts +4 -0
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/entry/UserEntrySchema.d.ts.map +1 -1
- 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 +45 -1
- 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 +144 -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/tool/ToolResultSchemas.d.ts +6 -4
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.js +8 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.d.ts +3 -2
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.js +3 -2
- package/bundled/@yep-anywhere/shared/dist/codex-schema/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts +87 -3
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js +39 -1
- package/bundled/@yep-anywhere/shared/dist/codex-schema/session.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/dag.d.ts +31 -11
- package/bundled/@yep-anywhere/shared/dist/dag.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/dag.js +77 -33
- package/bundled/@yep-anywhere/shared/dist/dag.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.d.ts +70 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.js +6 -1
- package/bundled/@yep-anywhere/shared/dist/git-status.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.js +1 -1
- package/bundled/@yep-anywhere/shared/dist/ideMetadata.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/index.d.ts +20 -11
- package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/index.js +8 -3
- package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/local-resource.d.ts +1 -0
- package/bundled/@yep-anywhere/shared/dist/local-resource.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/local-resource.js +4 -0
- package/bundled/@yep-anywhere/shared/dist/local-resource.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.d.ts +136 -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 +65 -3
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/events.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.d.ts +1 -1
- package/bundled/@yep-anywhere/shared/dist/opencode-schema/types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/project-queue.d.ts +153 -0
- package/bundled/@yep-anywhere/shared/dist/project-queue.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/project-queue.js +8 -0
- package/bundled/@yep-anywhere/shared/dist/project-queue.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/relay-protocol.d.ts +26 -2
- package/bundled/@yep-anywhere/shared/dist/relay-protocol.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/relay-protocol.js +33 -0
- package/bundled/@yep-anywhere/shared/dist/relay-protocol.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/relay.d.ts +45 -5
- package/bundled/@yep-anywhere/shared/dist/relay.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/relay.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/safe-restart.d.ts +25 -0
- package/bundled/@yep-anywhere/shared/dist/safe-restart.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/safe-restart.js +2 -0
- package/bundled/@yep-anywhere/shared/dist/safe-restart.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.d.ts +2 -2
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.js +3 -3
- package/bundled/@yep-anywhere/shared/dist/session/SessionView.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts +10 -0
- package/bundled/@yep-anywhere/shared/dist/session/UnifiedSession.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/session-liveness.d.ts +18 -0
- package/bundled/@yep-anywhere/shared/dist/session-liveness.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.d.ts +253 -8
- package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.js +48 -5
- package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/upload.d.ts +34 -2
- package/bundled/@yep-anywhere/shared/dist/upload.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.d.ts +47 -0
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.js +59 -1
- package/bundled/@yep-anywhere/shared/dist/user-message-metadata.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/workstreams.d.ts +54 -0
- package/bundled/@yep-anywhere/shared/dist/workstreams.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/workstreams.js +8 -0
- package/bundled/@yep-anywhere/shared/dist/workstreams.js.map +1 -0
- package/bundled/@yep-anywhere/shared/package.json +1 -1
- package/client-dist/assets/alegreya-sans-latin-400-italic-BQIUBrX-.woff2 +0 -0
- package/client-dist/assets/alegreya-sans-latin-400-normal-BxeZdXas.woff2 +0 -0
- package/client-dist/assets/alegreya-sans-latin-500-normal-uodOEoAl.woff2 +0 -0
- package/client-dist/assets/alegreya-sans-latin-700-normal-DFYOGfC8.woff2 +0 -0
- package/client-dist/assets/de-CHMDbVD5.js +6 -0
- package/client-dist/assets/es-CK8MPF_C.js +6 -0
- package/client-dist/assets/fira-mono-latin-400-normal-DVTTRLHv.woff2 +0 -0
- package/client-dist/assets/fira-mono-latin-ext-400-normal-B2gPvaNr.woff2 +0 -0
- package/client-dist/assets/fira-mono-symbols2-400-normal-C6JptOil.woff2 +0 -0
- package/client-dist/assets/fr-49PXQiUL.js +6 -0
- package/client-dist/assets/index-B-09fVut.js +557 -0
- package/client-dist/assets/index-uJnfvD1f.css +1 -0
- package/client-dist/assets/inter-latin-400-italic-D1l0FflY.woff2 +0 -0
- package/client-dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/client-dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
- package/client-dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
- package/client-dist/assets/ja-CrCGPmoH.js +6 -0
- package/client-dist/assets/zh-CN-AFJxv5ke.js +6 -0
- package/client-dist/index.html +3 -3
- package/client-dist/sw.js +96 -9
- package/dist/app.d.ts +25 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +350 -35
- 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 +2 -2
- package/dist/augments/augment-generator.js.map +1 -1
- package/dist/augments/markdown-augments.d.ts +1 -1
- package/dist/augments/markdown-augments.d.ts.map +1 -1
- package/dist/augments/markdown-augments.js +5 -5
- package/dist/augments/markdown-augments.js.map +1 -1
- package/dist/augments/safe-markdown.d.ts +10 -0
- package/dist/augments/safe-markdown.d.ts.map +1 -1
- package/dist/augments/safe-markdown.js +146 -3
- package/dist/augments/safe-markdown.js.map +1 -1
- package/dist/augments/stream-augmenter.d.ts +3 -0
- package/dist/augments/stream-augmenter.d.ts.map +1 -1
- package/dist/augments/stream-augmenter.js +6 -3
- package/dist/augments/stream-augmenter.js.map +1 -1
- package/dist/augments/stream-coordinator.d.ts +5 -1
- package/dist/augments/stream-coordinator.d.ts.map +1 -1
- package/dist/augments/stream-coordinator.js +6 -4
- package/dist/augments/stream-coordinator.js.map +1 -1
- package/dist/augments/task-list-augments.d.ts +27 -0
- package/dist/augments/task-list-augments.d.ts.map +1 -0
- package/dist/augments/task-list-augments.js +360 -0
- package/dist/augments/task-list-augments.js.map +1 -0
- package/dist/cli.d.ts +1 -17
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +22 -8
- package/dist/cli.js.map +1 -1
- package/dist/codex/correlationDebugLogger.d.ts.map +1 -1
- package/dist/codex/correlationDebugLogger.js +36 -8
- package/dist/codex/correlationDebugLogger.js.map +1 -1
- package/dist/codex/normalization.d.ts +1 -0
- package/dist/codex/normalization.d.ts.map +1 -1
- package/dist/codex/normalization.js +262 -7
- package/dist/codex/normalization.js.map +1 -1
- package/dist/config.d.ts +49 -6
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +55 -14
- package/dist/config.js.map +1 -1
- package/dist/defaults.d.ts +3 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/defaults.js +3 -0
- package/dist/defaults.js.map +1 -0
- package/dist/device/DeviceBridgeService.js +1 -1
- package/dist/device/DeviceBridgeService.js.map +1 -1
- package/dist/envSettings.d.ts +64 -0
- package/dist/envSettings.d.ts.map +1 -0
- package/dist/envSettings.js +553 -0
- package/dist/envSettings.js.map +1 -0
- package/dist/frontend/static.d.ts.map +1 -1
- package/dist/frontend/static.js +3 -1
- package/dist/frontend/static.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +190 -14
- package/dist/index.js.map +1 -1
- package/dist/indexes/SessionDiscoveryIndex.d.ts +78 -0
- package/dist/indexes/SessionDiscoveryIndex.d.ts.map +1 -0
- package/dist/indexes/SessionDiscoveryIndex.js +223 -0
- package/dist/indexes/SessionDiscoveryIndex.js.map +1 -0
- package/dist/indexes/SessionIndexService.d.ts +114 -1
- package/dist/indexes/SessionIndexService.d.ts.map +1 -1
- package/dist/indexes/SessionIndexService.js +875 -105
- package/dist/indexes/SessionIndexService.js.map +1 -1
- package/dist/indexes/index.d.ts +2 -1
- package/dist/indexes/index.d.ts.map +1 -1
- package/dist/indexes/index.js +1 -0
- package/dist/indexes/index.js.map +1 -1
- package/dist/indexes/types.d.ts +26 -0
- package/dist/indexes/types.d.ts.map +1 -1
- package/dist/logging/logger.d.ts.map +1 -1
- package/dist/logging/logger.js +2 -3
- package/dist/logging/logger.js.map +1 -1
- package/dist/maintenance/server.d.ts.map +1 -1
- package/dist/maintenance/server.js +8 -11
- package/dist/maintenance/server.js.map +1 -1
- package/dist/metadata/ProjectMetadataService.d.ts +7 -0
- package/dist/metadata/ProjectMetadataService.d.ts.map +1 -1
- package/dist/metadata/ProjectMetadataService.js +63 -19
- package/dist/metadata/ProjectMetadataService.js.map +1 -1
- package/dist/metadata/SessionMetadataService.d.ts +82 -3
- package/dist/metadata/SessionMetadataService.d.ts.map +1 -1
- package/dist/metadata/SessionMetadataService.js +233 -17
- package/dist/metadata/SessionMetadataService.js.map +1 -1
- package/dist/middleware/file-access.d.ts +66 -0
- package/dist/middleware/file-access.d.ts.map +1 -0
- package/dist/middleware/file-access.js +112 -0
- package/dist/middleware/file-access.js.map +1 -0
- package/dist/projects/codex-scanner.d.ts +28 -1
- package/dist/projects/codex-scanner.d.ts.map +1 -1
- package/dist/projects/codex-scanner.js +149 -39
- package/dist/projects/codex-scanner.js.map +1 -1
- package/dist/projects/gemini-scanner.d.ts.map +1 -1
- package/dist/projects/gemini-scanner.js +59 -6
- package/dist/projects/gemini-scanner.js.map +1 -1
- package/dist/projects/paths.d.ts +15 -1
- package/dist/projects/paths.d.ts.map +1 -1
- package/dist/projects/paths.js +69 -23
- package/dist/projects/paths.js.map +1 -1
- package/dist/projects/scanner.d.ts +5 -0
- package/dist/projects/scanner.d.ts.map +1 -1
- package/dist/projects/scanner.js +136 -28
- package/dist/projects/scanner.js.map +1 -1
- package/dist/push/InactivityPushNotifier.d.ts +61 -0
- package/dist/push/InactivityPushNotifier.d.ts.map +1 -0
- package/dist/push/InactivityPushNotifier.js +305 -0
- package/dist/push/InactivityPushNotifier.js.map +1 -0
- package/dist/push/PushNotifier.d.ts.map +1 -1
- package/dist/push/PushNotifier.js.map +1 -1
- package/dist/push/PushService.d.ts +7 -4
- package/dist/push/PushService.d.ts.map +1 -1
- package/dist/push/PushService.js +27 -7
- package/dist/push/PushService.js.map +1 -1
- package/dist/push/index.d.ts +2 -1
- package/dist/push/index.d.ts.map +1 -1
- package/dist/push/index.js +1 -0
- package/dist/push/index.js.map +1 -1
- package/dist/push/routes.d.ts.map +1 -1
- package/dist/push/routes.js +28 -1
- package/dist/push/routes.js.map +1 -1
- package/dist/push/types.d.ts +21 -3
- package/dist/push/types.d.ts.map +1 -1
- package/dist/push/types.js +2 -0
- package/dist/push/types.js.map +1 -1
- package/dist/routes/dev.d.ts +2 -0
- package/dist/routes/dev.d.ts.map +1 -1
- package/dist/routes/dev.js +25 -0
- package/dist/routes/dev.js.map +1 -1
- package/dist/routes/env-settings.d.ts +20 -0
- package/dist/routes/env-settings.d.ts.map +1 -0
- package/dist/routes/env-settings.js +25 -0
- package/dist/routes/env-settings.js.map +1 -0
- package/dist/routes/files.d.ts +9 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/files.js +98 -10
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/git-status.d.ts.map +1 -1
- package/dist/routes/git-status.js +621 -23
- package/dist/routes/git-status.js.map +1 -1
- package/dist/routes/global-sessions.d.ts +11 -1
- package/dist/routes/global-sessions.d.ts.map +1 -1
- package/dist/routes/global-sessions.js +53 -33
- package/dist/routes/global-sessions.js.map +1 -1
- package/dist/routes/inbox.d.ts +10 -1
- package/dist/routes/inbox.d.ts.map +1 -1
- package/dist/routes/inbox.js +30 -3
- package/dist/routes/inbox.js.map +1 -1
- package/dist/routes/local-file.d.ts +6 -2
- package/dist/routes/local-file.d.ts.map +1 -1
- package/dist/routes/local-file.js +13 -4
- package/dist/routes/local-file.js.map +1 -1
- package/dist/routes/local-image.d.ts +2 -1
- package/dist/routes/local-image.d.ts.map +1 -1
- package/dist/routes/local-image.js.map +1 -1
- package/dist/routes/local-resource-policy.d.ts +7 -1
- 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/processes.d.ts.map +1 -1
- package/dist/routes/processes.js +49 -11
- package/dist/routes/processes.js.map +1 -1
- package/dist/routes/project-queue-response.d.ts +26 -0
- package/dist/routes/project-queue-response.d.ts.map +1 -0
- package/dist/routes/project-queue-response.js +188 -0
- package/dist/routes/project-queue-response.js.map +1 -0
- package/dist/routes/project-queue.d.ts +5 -0
- package/dist/routes/project-queue.d.ts.map +1 -0
- package/dist/routes/project-queue.js +219 -0
- package/dist/routes/project-queue.js.map +1 -0
- package/dist/routes/projects.d.ts +6 -0
- package/dist/routes/projects.d.ts.map +1 -1
- package/dist/routes/projects.js +116 -28
- package/dist/routes/projects.js.map +1 -1
- package/dist/routes/providers.d.ts +5 -0
- package/dist/routes/providers.d.ts.map +1 -1
- package/dist/routes/providers.js +52 -33
- package/dist/routes/providers.js.map +1 -1
- package/dist/routes/public-shares.d.ts.map +1 -1
- package/dist/routes/public-shares.js +46 -17
- package/dist/routes/public-shares.js.map +1 -1
- package/dist/routes/recents.d.ts +3 -0
- package/dist/routes/recents.d.ts.map +1 -1
- package/dist/routes/recents.js +3 -1
- package/dist/routes/recents.js.map +1 -1
- package/dist/routes/server-admin.d.ts +9 -0
- package/dist/routes/server-admin.d.ts.map +1 -1
- package/dist/routes/server-admin.js +45 -7
- package/dist/routes/server-admin.js.map +1 -1
- package/dist/routes/session-claude-resume-guard.d.ts +16 -0
- package/dist/routes/session-claude-resume-guard.d.ts.map +1 -0
- package/dist/routes/session-claude-resume-guard.js +50 -0
- package/dist/routes/session-claude-resume-guard.js.map +1 -0
- package/dist/routes/session-compact-thresholds.d.ts +22 -0
- package/dist/routes/session-compact-thresholds.d.ts.map +1 -0
- package/dist/routes/session-compact-thresholds.js +35 -0
- package/dist/routes/session-compact-thresholds.js.map +1 -0
- package/dist/routes/session-index.d.ts +7 -0
- package/dist/routes/session-index.d.ts.map +1 -0
- package/dist/routes/session-index.js +9 -0
- package/dist/routes/session-index.js.map +1 -0
- package/dist/routes/session-list-options.d.ts +1 -1
- package/dist/routes/session-list-options.d.ts.map +1 -1
- package/dist/routes/session-list-options.js +1 -1
- package/dist/routes/session-list-options.js.map +1 -1
- package/dist/routes/session-request-helpers.d.ts +31 -0
- package/dist/routes/session-request-helpers.d.ts.map +1 -0
- package/dist/routes/session-request-helpers.js +212 -0
- package/dist/routes/session-request-helpers.js.map +1 -0
- package/dist/routes/sessions.d.ts +14 -1
- package/dist/routes/sessions.d.ts.map +1 -1
- package/dist/routes/sessions.js +2141 -551
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +7 -1
- package/dist/routes/settings.d.ts.map +1 -1
- package/dist/routes/settings.js +771 -25
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/speech.d.ts +24 -2
- package/dist/routes/speech.d.ts.map +1 -1
- package/dist/routes/speech.js +539 -10
- package/dist/routes/speech.js.map +1 -1
- package/dist/routes/supervisor-queue.d.ts +6 -0
- package/dist/routes/supervisor-queue.d.ts.map +1 -0
- package/dist/routes/supervisor-queue.js +35 -0
- package/dist/routes/supervisor-queue.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 +190 -38
- package/dist/routes/upload.js.map +1 -1
- package/dist/routes/version.d.ts +18 -1
- package/dist/routes/version.d.ts.map +1 -1
- package/dist/routes/version.js +22 -1
- package/dist/routes/version.js.map +1 -1
- package/dist/routes/workstreams.d.ts +11 -0
- package/dist/routes/workstreams.d.ts.map +1 -0
- package/dist/routes/workstreams.js +144 -0
- package/dist/routes/workstreams.js.map +1 -0
- package/dist/routes/ws-message-router.d.ts +10 -1
- package/dist/routes/ws-message-router.d.ts.map +1 -1
- package/dist/routes/ws-message-router.js +43 -4
- package/dist/routes/ws-message-router.js.map +1 -1
- package/dist/routes/ws-relay-handlers.d.ts +27 -5
- package/dist/routes/ws-relay-handlers.d.ts.map +1 -1
- package/dist/routes/ws-relay-handlers.js +177 -19
- package/dist/routes/ws-relay-handlers.js.map +1 -1
- package/dist/routes/ws-relay.d.ts +19 -0
- package/dist/routes/ws-relay.d.ts.map +1 -1
- package/dist/routes/ws-relay.js +21 -7
- package/dist/routes/ws-relay.js.map +1 -1
- package/dist/sdk/cli-detection.d.ts +1 -1
- package/dist/sdk/cli-detection.d.ts.map +1 -1
- package/dist/sdk/cli-detection.js +47 -7
- package/dist/sdk/cli-detection.js.map +1 -1
- package/dist/sdk/messageLogger.d.ts.map +1 -1
- package/dist/sdk/messageLogger.js +38 -10
- package/dist/sdk/messageLogger.js.map +1 -1
- package/dist/sdk/messageQueue.d.ts.map +1 -1
- package/dist/sdk/messageQueue.js +26 -0
- package/dist/sdk/messageQueue.js.map +1 -1
- package/dist/sdk/providers/__mocks__/grok.d.ts +1 -1
- package/dist/sdk/providers/__mocks__/grok.d.ts.map +1 -1
- package/dist/sdk/providers/__mocks__/grok.js +1 -1
- package/dist/sdk/providers/__mocks__/grok.js.map +1 -1
- package/dist/sdk/providers/agentctl-session-env.d.ts +8 -0
- package/dist/sdk/providers/agentctl-session-env.d.ts.map +1 -0
- package/dist/sdk/providers/agentctl-session-env.js +52 -0
- package/dist/sdk/providers/agentctl-session-env.js.map +1 -0
- package/dist/sdk/providers/claude-ollama.d.ts +2 -1
- package/dist/sdk/providers/claude-ollama.d.ts.map +1 -1
- package/dist/sdk/providers/claude-ollama.js +1 -0
- package/dist/sdk/providers/claude-ollama.js.map +1 -1
- package/dist/sdk/providers/claude-retention.d.ts +19 -0
- package/dist/sdk/providers/claude-retention.d.ts.map +1 -0
- package/dist/sdk/providers/claude-retention.js +169 -0
- package/dist/sdk/providers/claude-retention.js.map +1 -0
- package/dist/sdk/providers/claude.d.ts +52 -5
- package/dist/sdk/providers/claude.d.ts.map +1 -1
- package/dist/sdk/providers/claude.js +593 -71
- package/dist/sdk/providers/claude.js.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/AgentMessageInputContent.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/AgentMessageInputContent.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/AgentMessageInputContent.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/AgentMessageInputContent.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/InternalChatMessageMetadataPassthrough.d.ts +10 -0
- package/dist/sdk/providers/codex-protocol/generated/InternalChatMessageMetadataPassthrough.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/InternalChatMessageMetadataPassthrough.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/InternalChatMessageMetadataPassthrough.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.d.ts +23 -0
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/LegacyAppPathString.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/MultiAgentMode.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/MultiAgentMode.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/MultiAgentMode.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/MultiAgentMode.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/ReasoningEffort.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ReasoningEffort.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ResponseItem.d.ts +38 -1
- package/dist/sdk/providers/codex-protocol/generated/ResponseItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/AdditionalFileSystemPermissions.d.ts +3 -3
- package/dist/sdk/providers/codex-protocol/generated/v2/AdditionalFileSystemPermissions.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/CapabilityRootLocation.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CapabilityRootLocation.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CapabilityRootLocation.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CapabilityRootLocation.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionRequestApprovalParams.d.ts +6 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/CommandExecutionRequestApprovalParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolFunctionSpec.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolFunctionSpec.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolFunctionSpec.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolFunctionSpec.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceSpec.d.ts +7 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceSpec.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceSpec.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceSpec.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceTool.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceTool.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceTool.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolNamespaceTool.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolSpec.d.ts +6 -7
- package/dist/sdk/providers/codex-protocol/generated/v2/DynamicToolSpec.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/FileSystemPath.d.ts +2 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/FileSystemPath.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.d.ts +6 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpToolCallAppContext.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/PermissionsRequestApprovalParams.d.ts +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/PermissionsRequestApprovalParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/SelectedCapabilityRoot.d.ts +15 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SelectedCapabilityRoot.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SelectedCapabilityRoot.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SelectedCapabilityRoot.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SortDirection.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SortDirection.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SortDirection.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SortDirection.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/SubAgentActivityKind.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts +8 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartParams.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartResponse.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadCompactStartResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.d.ts +64 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts +46 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts +19 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadResponse.d.ts +5 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadReadResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts +17 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeInitialTurnsPageParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeInitialTurnsPageParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts +7 -7
- 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 +13 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts +11 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts +12 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSource.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadSource.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts +13 -9
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts +8 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ToolRequestUserInputParams.d.ts +1 -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 +2 -2
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnEnvironmentParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts +17 -5
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSteerParams.d.ts +8 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnSteerParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnsPage.d.ts +7 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnsPage.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnsPage.js +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnsPage.js.map +1 -0
- 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.d.ts +26 -4
- package/dist/sdk/providers/codex.d.ts.map +1 -1
- package/dist/sdk/providers/codex.js +457 -37
- package/dist/sdk/providers/codex.js.map +1 -1
- package/dist/sdk/providers/env-filter.d.ts.map +1 -1
- package/dist/sdk/providers/env-filter.js +19 -1
- package/dist/sdk/providers/env-filter.js.map +1 -1
- package/dist/sdk/providers/gemini-tools.d.ts +28 -0
- package/dist/sdk/providers/gemini-tools.d.ts.map +1 -0
- package/dist/sdk/providers/gemini-tools.js +57 -0
- package/dist/sdk/providers/gemini-tools.js.map +1 -0
- package/dist/sdk/providers/gemini.d.ts.map +1 -1
- package/dist/sdk/providers/gemini.js +4 -2
- package/dist/sdk/providers/gemini.js.map +1 -1
- package/dist/sdk/providers/grok-acp.d.ts +1 -1
- package/dist/sdk/providers/grok-acp.d.ts.map +1 -1
- package/dist/sdk/providers/grok-acp.js +1 -1
- package/dist/sdk/providers/grok-acp.js.map +1 -1
- package/dist/sdk/providers/index.d.ts +1 -0
- package/dist/sdk/providers/index.d.ts.map +1 -1
- package/dist/sdk/providers/index.js +6 -0
- package/dist/sdk/providers/index.js.map +1 -1
- package/dist/sdk/providers/opencode-tools.d.ts +36 -0
- package/dist/sdk/providers/opencode-tools.d.ts.map +1 -0
- package/dist/sdk/providers/opencode-tools.js +78 -0
- package/dist/sdk/providers/opencode-tools.js.map +1 -0
- package/dist/sdk/providers/opencode.d.ts +53 -5
- package/dist/sdk/providers/opencode.d.ts.map +1 -1
- package/dist/sdk/providers/opencode.js +379 -71
- package/dist/sdk/providers/opencode.js.map +1 -1
- package/dist/sdk/providers/pi-rpc-client.d.ts +90 -0
- package/dist/sdk/providers/pi-rpc-client.d.ts.map +1 -0
- package/dist/sdk/providers/pi-rpc-client.js +168 -0
- package/dist/sdk/providers/pi-rpc-client.js.map +1 -0
- package/dist/sdk/providers/pi-tools.d.ts +38 -0
- package/dist/sdk/providers/pi-tools.d.ts.map +1 -0
- package/dist/sdk/providers/pi-tools.js +214 -0
- package/dist/sdk/providers/pi-tools.js.map +1 -0
- package/dist/sdk/providers/pi.d.ts +84 -0
- package/dist/sdk/providers/pi.d.ts.map +1 -0
- package/dist/sdk/providers/pi.js +686 -0
- package/dist/sdk/providers/pi.js.map +1 -0
- package/dist/sdk/providers/staticSlashCommands.d.ts +4 -0
- package/dist/sdk/providers/staticSlashCommands.d.ts.map +1 -0
- package/dist/sdk/providers/staticSlashCommands.js +14 -0
- package/dist/sdk/providers/staticSlashCommands.js.map +1 -0
- package/dist/sdk/providers/types.d.ts +144 -17
- package/dist/sdk/providers/types.d.ts.map +1 -1
- package/dist/sdk/remote-spawn.d.ts.map +1 -1
- package/dist/sdk/remote-spawn.js.map +1 -1
- package/dist/sdk/slashCommandEmulation.d.ts +9 -0
- package/dist/sdk/slashCommandEmulation.d.ts.map +1 -1
- package/dist/sdk/slashCommandEmulation.js +15 -0
- package/dist/sdk/slashCommandEmulation.js.map +1 -1
- package/dist/sdk/types.d.ts +40 -0
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/security/approvalAuditLog.d.ts +3 -2
- package/dist/security/approvalAuditLog.d.ts.map +1 -1
- package/dist/security/approvalAuditLog.js +62 -2
- package/dist/security/approvalAuditLog.js.map +1 -1
- package/dist/services/BrowserProfileService.d.ts +21 -0
- package/dist/services/BrowserProfileService.d.ts.map +1 -1
- package/dist/services/BrowserProfileService.js +74 -1
- package/dist/services/BrowserProfileService.js.map +1 -1
- package/dist/services/CacheMissBillingMonitor.d.ts +25 -0
- package/dist/services/CacheMissBillingMonitor.d.ts.map +1 -0
- package/dist/services/CacheMissBillingMonitor.js +179 -0
- package/dist/services/CacheMissBillingMonitor.js.map +1 -0
- package/dist/services/CodexUpdateChecker.d.ts.map +1 -1
- package/dist/services/CodexUpdateChecker.js +3 -2
- package/dist/services/CodexUpdateChecker.js.map +1 -1
- package/dist/services/ModelInfoService.d.ts +58 -9
- package/dist/services/ModelInfoService.d.ts.map +1 -1
- package/dist/services/ModelInfoService.js +127 -14
- package/dist/services/ModelInfoService.js.map +1 -1
- package/dist/services/ProjectQueueScheduler.d.ts +91 -0
- package/dist/services/ProjectQueueScheduler.d.ts.map +1 -0
- package/dist/services/ProjectQueueScheduler.js +404 -0
- package/dist/services/ProjectQueueScheduler.js.map +1 -0
- package/dist/services/ProjectQueueService.d.ts +60 -0
- package/dist/services/ProjectQueueService.d.ts.map +1 -0
- package/dist/services/ProjectQueueService.js +804 -0
- package/dist/services/ProjectQueueService.js.map +1 -0
- package/dist/services/RelayClientService.d.ts +5 -0
- package/dist/services/RelayClientService.d.ts.map +1 -1
- package/dist/services/RelayClientService.js +26 -12
- package/dist/services/RelayClientService.js.map +1 -1
- package/dist/services/SafeRestartService.d.ts +48 -0
- package/dist/services/SafeRestartService.d.ts.map +1 -0
- package/dist/services/SafeRestartService.js +173 -0
- package/dist/services/SafeRestartService.js.map +1 -0
- package/dist/services/ServerSettingsService.d.ts +41 -1
- package/dist/services/ServerSettingsService.d.ts.map +1 -1
- package/dist/services/ServerSettingsService.js +110 -1
- package/dist/services/ServerSettingsService.js.map +1 -1
- package/dist/services/SessionQueuePersistenceService.d.ts +55 -0
- package/dist/services/SessionQueuePersistenceService.d.ts.map +1 -0
- package/dist/services/SessionQueuePersistenceService.js +264 -0
- package/dist/services/SessionQueuePersistenceService.js.map +1 -0
- package/dist/services/WorkstreamService.d.ts +92 -0
- package/dist/services/WorkstreamService.d.ts.map +1 -0
- package/dist/services/WorkstreamService.js +627 -0
- package/dist/services/WorkstreamService.js.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +4 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/projectWorkIdle.d.ts +42 -0
- package/dist/services/projectWorkIdle.d.ts.map +1 -0
- package/dist/services/projectWorkIdle.js +50 -0
- package/dist/services/projectWorkIdle.js.map +1 -0
- package/dist/services/voice/SpeechBackend.d.ts +18 -1
- package/dist/services/voice/SpeechBackend.d.ts.map +1 -1
- package/dist/services/voice/SpeechBackend.js +3 -0
- package/dist/services/voice/SpeechBackend.js.map +1 -1
- package/dist/services/voice/audioRetention.d.ts +20 -0
- package/dist/services/voice/audioRetention.d.ts.map +1 -1
- package/dist/services/voice/audioRetention.js +2 -0
- package/dist/services/voice/audioRetention.js.map +1 -1
- package/dist/services/voice/deepgramBackend.d.ts.map +1 -1
- package/dist/services/voice/deepgramBackend.js +4 -1
- package/dist/services/voice/deepgramBackend.js.map +1 -1
- package/dist/services/voice/localNemoBackend.d.ts +31 -0
- package/dist/services/voice/localNemoBackend.d.ts.map +1 -0
- package/dist/services/voice/localNemoBackend.js +181 -0
- package/dist/services/voice/localNemoBackend.js.map +1 -0
- package/dist/services/voice/localParakeetBackend.d.ts +31 -0
- package/dist/services/voice/localParakeetBackend.d.ts.map +1 -0
- package/dist/services/voice/localParakeetBackend.js +180 -0
- package/dist/services/voice/localParakeetBackend.js.map +1 -0
- package/dist/services/voice/localSttRuntime.d.ts +21 -0
- package/dist/services/voice/localSttRuntime.d.ts.map +1 -0
- package/dist/services/voice/localSttRuntime.js +87 -0
- package/dist/services/voice/localSttRuntime.js.map +1 -0
- package/dist/services/voice/localWhisperBackend.d.ts +2 -1
- package/dist/services/voice/localWhisperBackend.d.ts.map +1 -1
- package/dist/services/voice/localWhisperBackend.js +47 -34
- package/dist/services/voice/localWhisperBackend.js.map +1 -1
- package/dist/services/voice/nemo_worker.py +232 -0
- package/dist/services/voice/parakeet_worker.py +151 -0
- package/dist/services/voice/registry.d.ts +19 -4
- package/dist/services/voice/registry.d.ts.map +1 -1
- package/dist/services/voice/registry.js +72 -22
- package/dist/services/voice/registry.js.map +1 -1
- package/dist/services/voice/serialQueue.d.ts +17 -0
- package/dist/services/voice/serialQueue.d.ts.map +1 -0
- package/dist/services/voice/serialQueue.js +24 -0
- package/dist/services/voice/serialQueue.js.map +1 -0
- package/dist/services/voice/whisper_worker.py +94 -0
- package/dist/services/voice/xaiSttBackend.d.ts +1 -1
- package/dist/services/voice/xaiSttBackend.d.ts.map +1 -1
- package/dist/services/voice/xaiSttBackend.js +15 -3
- package/dist/services/voice/xaiSttBackend.js.map +1 -1
- package/dist/sessions/agent-excerpt.d.ts +29 -0
- package/dist/sessions/agent-excerpt.d.ts.map +1 -0
- package/dist/sessions/agent-excerpt.js +128 -0
- package/dist/sessions/agent-excerpt.js.map +1 -0
- package/dist/sessions/claude-messages.d.ts.map +1 -1
- package/dist/sessions/claude-messages.js +75 -4
- package/dist/sessions/claude-messages.js.map +1 -1
- package/dist/sessions/claude-summary.d.ts +33 -0
- package/dist/sessions/claude-summary.d.ts.map +1 -0
- package/dist/sessions/claude-summary.js +461 -0
- package/dist/sessions/claude-summary.js.map +1 -0
- package/dist/sessions/codex-discovery.d.ts +46 -0
- package/dist/sessions/codex-discovery.d.ts.map +1 -0
- package/dist/sessions/codex-discovery.js +269 -0
- package/dist/sessions/codex-discovery.js.map +1 -0
- package/dist/sessions/codex-reader.d.ts +96 -13
- package/dist/sessions/codex-reader.d.ts.map +1 -1
- package/dist/sessions/codex-reader.js +1069 -141
- package/dist/sessions/codex-reader.js.map +1 -1
- package/dist/sessions/dag.d.ts +25 -4
- package/dist/sessions/dag.d.ts.map +1 -1
- package/dist/sessions/dag.js +37 -4
- package/dist/sessions/dag.js.map +1 -1
- package/dist/sessions/gemini-reader.d.ts +3 -1
- package/dist/sessions/gemini-reader.d.ts.map +1 -1
- package/dist/sessions/gemini-reader.js +17 -8
- package/dist/sessions/gemini-reader.js.map +1 -1
- package/dist/sessions/grok-reader.d.ts +1 -0
- package/dist/sessions/grok-reader.d.ts.map +1 -1
- package/dist/sessions/grok-reader.js +11 -5
- package/dist/sessions/grok-reader.js.map +1 -1
- package/dist/sessions/normalization.d.ts +3 -1
- package/dist/sessions/normalization.d.ts.map +1 -1
- package/dist/sessions/normalization.js +72 -16
- package/dist/sessions/normalization.js.map +1 -1
- package/dist/sessions/null-reader.d.ts +31 -0
- package/dist/sessions/null-reader.d.ts.map +1 -0
- package/dist/sessions/null-reader.js +30 -0
- package/dist/sessions/null-reader.js.map +1 -0
- package/dist/sessions/opencode-db-reader.d.ts +66 -0
- package/dist/sessions/opencode-db-reader.d.ts.map +1 -0
- package/dist/sessions/opencode-db-reader.js +333 -0
- package/dist/sessions/opencode-db-reader.js.map +1 -0
- package/dist/sessions/opencode-reader.d.ts +50 -0
- package/dist/sessions/opencode-reader.d.ts.map +1 -1
- package/dist/sessions/opencode-reader.js +375 -71
- package/dist/sessions/opencode-reader.js.map +1 -1
- package/dist/sessions/pagination.d.ts.map +1 -1
- package/dist/sessions/pagination.js +119 -3
- package/dist/sessions/pagination.js.map +1 -1
- package/dist/sessions/persisted-augments.d.ts +2 -1
- package/dist/sessions/persisted-augments.d.ts.map +1 -1
- package/dist/sessions/persisted-augments.js +2 -2
- package/dist/sessions/persisted-augments.js.map +1 -1
- package/dist/sessions/pi-fork.d.ts +12 -0
- package/dist/sessions/pi-fork.d.ts.map +1 -0
- package/dist/sessions/pi-fork.js +125 -0
- package/dist/sessions/pi-fork.js.map +1 -0
- package/dist/sessions/pi-reader.d.ts +81 -0
- package/dist/sessions/pi-reader.d.ts.map +1 -0
- package/dist/sessions/pi-reader.js +413 -0
- package/dist/sessions/pi-reader.js.map +1 -0
- package/dist/sessions/provider-resolution.d.ts +10 -3
- package/dist/sessions/provider-resolution.d.ts.map +1 -1
- package/dist/sessions/provider-resolution.js +62 -6
- package/dist/sessions/provider-resolution.js.map +1 -1
- package/dist/sessions/reader.d.ts +17 -24
- package/dist/sessions/reader.d.ts.map +1 -1
- package/dist/sessions/reader.js +86 -157
- package/dist/sessions/reader.js.map +1 -1
- package/dist/sessions/recap-overlays.d.ts +38 -0
- package/dist/sessions/recap-overlays.d.ts.map +1 -0
- package/dist/sessions/recap-overlays.js +176 -0
- package/dist/sessions/recap-overlays.js.map +1 -0
- package/dist/sessions/summary-parser-worker-client.d.ts +80 -0
- package/dist/sessions/summary-parser-worker-client.d.ts.map +1 -0
- package/dist/sessions/summary-parser-worker-client.js +539 -0
- package/dist/sessions/summary-parser-worker-client.js.map +1 -0
- package/dist/sessions/summary-parser-worker-entry.d.ts +2 -0
- package/dist/sessions/summary-parser-worker-entry.d.ts.map +1 -0
- package/dist/sessions/summary-parser-worker-entry.js +29 -0
- package/dist/sessions/summary-parser-worker-entry.js.map +1 -0
- package/dist/sessions/summary-parser-worker-protocol.d.ts +105 -0
- package/dist/sessions/summary-parser-worker-protocol.d.ts.map +1 -0
- package/dist/sessions/summary-parser-worker-protocol.js +35 -0
- package/dist/sessions/summary-parser-worker-protocol.js.map +1 -0
- package/dist/sessions/summary-parser-worker-runner.d.ts +3 -0
- package/dist/sessions/summary-parser-worker-runner.d.ts.map +1 -0
- package/dist/sessions/summary-parser-worker-runner.js +158 -0
- package/dist/sessions/summary-parser-worker-runner.js.map +1 -0
- package/dist/sessions/types.d.ts +30 -1
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/startupEnv.d.ts +2 -0
- package/dist/startupEnv.d.ts.map +1 -0
- package/dist/startupEnv.js +97 -0
- package/dist/startupEnv.js.map +1 -0
- package/dist/subscriptions.d.ts.map +1 -1
- package/dist/subscriptions.js +28 -18
- package/dist/subscriptions.js.map +1 -1
- package/dist/supervisor/ExternalSessionTracker.d.ts +5 -1
- package/dist/supervisor/ExternalSessionTracker.d.ts.map +1 -1
- package/dist/supervisor/ExternalSessionTracker.js +98 -6
- package/dist/supervisor/ExternalSessionTracker.js.map +1 -1
- package/dist/supervisor/Process.d.ts +252 -32
- package/dist/supervisor/Process.d.ts.map +1 -1
- package/dist/supervisor/Process.js +1233 -219
- package/dist/supervisor/Process.js.map +1 -1
- package/dist/supervisor/Supervisor.d.ts +201 -5
- package/dist/supervisor/Supervisor.d.ts.map +1 -1
- package/dist/supervisor/Supervisor.js +1074 -55
- package/dist/supervisor/Supervisor.js.map +1 -1
- package/dist/supervisor/WorkerQueue.d.ts +3 -1
- package/dist/supervisor/WorkerQueue.d.ts.map +1 -1
- package/dist/supervisor/WorkerQueue.js +1 -0
- package/dist/supervisor/WorkerQueue.js.map +1 -1
- package/dist/supervisor/composeTimeAnchor.d.ts +36 -0
- package/dist/supervisor/composeTimeAnchor.d.ts.map +1 -0
- package/dist/supervisor/composeTimeAnchor.js +51 -0
- package/dist/supervisor/composeTimeAnchor.js.map +1 -0
- package/dist/supervisor/deferredDeliverySettings.d.ts +23 -0
- package/dist/supervisor/deferredDeliverySettings.d.ts.map +1 -0
- package/dist/supervisor/deferredDeliverySettings.js +40 -0
- package/dist/supervisor/deferredDeliverySettings.js.map +1 -0
- package/dist/supervisor/liveness.d.ts +5 -2
- package/dist/supervisor/liveness.d.ts.map +1 -1
- package/dist/supervisor/liveness.js +40 -2
- package/dist/supervisor/liveness.js.map +1 -1
- package/dist/supervisor/types.d.ts +56 -5
- package/dist/supervisor/types.d.ts.map +1 -1
- package/dist/supervisor/types.js +0 -2
- package/dist/supervisor/types.js.map +1 -1
- package/dist/uploads/AttachmentStagingService.d.ts +94 -0
- package/dist/uploads/AttachmentStagingService.d.ts.map +1 -0
- package/dist/uploads/AttachmentStagingService.js +673 -0
- package/dist/uploads/AttachmentStagingService.js.map +1 -0
- package/dist/uploads/index.d.ts +2 -0
- package/dist/uploads/index.d.ts.map +1 -1
- package/dist/uploads/index.js +1 -0
- package/dist/uploads/index.js.map +1 -1
- package/dist/uploads/manager.d.ts +1 -0
- package/dist/uploads/manager.d.ts.map +1 -1
- package/dist/uploads/manager.js +72 -12
- package/dist/uploads/manager.js.map +1 -1
- package/dist/utils/codexRolloutFiles.d.ts +16 -0
- package/dist/utils/codexRolloutFiles.d.ts.map +1 -0
- package/dist/utils/codexRolloutFiles.js +45 -0
- package/dist/utils/codexRolloutFiles.js.map +1 -0
- package/dist/utils/jsonl.d.ts +8 -0
- package/dist/utils/jsonl.d.ts.map +1 -1
- package/dist/utils/jsonl.js +158 -5
- package/dist/utils/jsonl.js.map +1 -1
- package/dist/utils/publicShareViewerUrl.d.ts.map +1 -1
- package/dist/utils/publicShareViewerUrl.js +2 -15
- package/dist/utils/publicShareViewerUrl.js.map +1 -1
- package/dist/watcher/EventBus.d.ts +42 -4
- package/dist/watcher/EventBus.d.ts.map +1 -1
- package/dist/watcher/EventBus.js.map +1 -1
- package/dist/watcher/FileWatcher.d.ts +47 -0
- package/dist/watcher/FileWatcher.d.ts.map +1 -1
- package/dist/watcher/FileWatcher.js +185 -14
- package/dist/watcher/FileWatcher.js.map +1 -1
- package/dist/watcher/index.d.ts +2 -2
- package/dist/watcher/index.d.ts.map +1 -1
- package/dist/watcher/index.js.map +1 -1
- package/dist/yaModuleEnv.d.ts +6 -6
- package/dist/yaModuleEnv.d.ts.map +1 -1
- package/dist/yaModuleEnv.js +12 -12
- package/dist/yaModuleEnv.js.map +1 -1
- package/package.json +5 -6
- package/client-dist/assets/de-BuEb60Yc.js +0 -6
- package/client-dist/assets/es-CRlmPKnE.js +0 -6
- package/client-dist/assets/fr-Cglgjc2X.js +0 -6
- package/client-dist/assets/index-BNj7ibmq.js +0 -524
- package/client-dist/assets/index-CAmsUazi.css +0 -1
- package/client-dist/assets/ja-DMb9mFPv.js +0 -6
- package/client-dist/assets/zh-CN-D1tbfamz.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
|
-
import { readFile } from "node:fs/promises";
|
|
1
|
+
import { execFile, spawn } from "node:child_process";
|
|
2
|
+
import { readFile, stat } from "node:fs/promises";
|
|
3
3
|
import { extname, resolve } from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
5
|
import { isUrlProjectId, } from "../../bundled/@yep-anywhere/shared/dist/index.js";
|
|
@@ -15,7 +15,13 @@ const NOT_A_GIT_REPO = {
|
|
|
15
15
|
behind: 0,
|
|
16
16
|
isClean: true,
|
|
17
17
|
files: [],
|
|
18
|
+
recentCommits: [],
|
|
19
|
+
checkedRemoteAt: null,
|
|
18
20
|
};
|
|
21
|
+
const remoteCheckedAtByProjectPath = new Map();
|
|
22
|
+
const gitOperationsByProjectPath = new Set();
|
|
23
|
+
const UNTRACKED_FOLDER_FILE_LIMIT = 500;
|
|
24
|
+
const GIT_DECODE_PATHS_ARGS = ["-c", "core.quotePath=false"];
|
|
19
25
|
export function createGitStatusRoutes(deps) {
|
|
20
26
|
const routes = new Hono();
|
|
21
27
|
routes.get("/:projectId/git", async (c) => {
|
|
@@ -28,7 +34,7 @@ export function createGitStatusRoutes(deps) {
|
|
|
28
34
|
return c.json({ error: "Project not found" }, 404);
|
|
29
35
|
}
|
|
30
36
|
try {
|
|
31
|
-
const result = await
|
|
37
|
+
const result = await getGitStatusWithRemoteCheckTime(project.path);
|
|
32
38
|
return c.json(result);
|
|
33
39
|
}
|
|
34
40
|
catch (err) {
|
|
@@ -38,6 +44,291 @@ export function createGitStatusRoutes(deps) {
|
|
|
38
44
|
return c.json({ error: "Failed to get git status" }, 500);
|
|
39
45
|
}
|
|
40
46
|
});
|
|
47
|
+
/**
|
|
48
|
+
* GET /:projectId/git/untracked-folder?path=dir/
|
|
49
|
+
* Expand one compact untracked directory on demand.
|
|
50
|
+
*/
|
|
51
|
+
routes.get("/:projectId/git/untracked-folder", async (c) => {
|
|
52
|
+
const projectId = c.req.param("projectId");
|
|
53
|
+
if (!isUrlProjectId(projectId)) {
|
|
54
|
+
return c.json({ error: "Invalid project ID format" }, 400);
|
|
55
|
+
}
|
|
56
|
+
const project = await deps.scanner.getProject(projectId);
|
|
57
|
+
if (!project) {
|
|
58
|
+
return c.json({ error: "Project not found" }, 404);
|
|
59
|
+
}
|
|
60
|
+
const path = c.req.query("path");
|
|
61
|
+
if (!path || !isValidUntrackedFolderPath(path)) {
|
|
62
|
+
return c.json({ error: "Invalid untracked folder path" }, 400);
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
return c.json(await getUntrackedFolderInfo(project.path, path));
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
if (isNotGitRepoError(err)) {
|
|
69
|
+
return c.json({ error: "Not a git repository" }, 400);
|
|
70
|
+
}
|
|
71
|
+
return c.json({ error: "Failed to expand untracked folder" }, 500);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* POST /:projectId/git/check-remote
|
|
76
|
+
* Explicitly fetch remote refs and update the last-checked timestamp.
|
|
77
|
+
*/
|
|
78
|
+
routes.post("/:projectId/git/check-remote", async (c) => {
|
|
79
|
+
const projectId = c.req.param("projectId");
|
|
80
|
+
if (!isUrlProjectId(projectId)) {
|
|
81
|
+
return c.json({ error: "Invalid project ID format" }, 400);
|
|
82
|
+
}
|
|
83
|
+
const project = await deps.scanner.getProject(projectId);
|
|
84
|
+
if (!project) {
|
|
85
|
+
return c.json({ error: "Project not found" }, 404);
|
|
86
|
+
}
|
|
87
|
+
const checkedRemoteAt = await getCheckedRemoteAt(project.path);
|
|
88
|
+
if (gitOperationsByProjectPath.has(project.path)) {
|
|
89
|
+
const result = {
|
|
90
|
+
status: "busy",
|
|
91
|
+
checkedRemoteAt,
|
|
92
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
93
|
+
};
|
|
94
|
+
return c.json(result);
|
|
95
|
+
}
|
|
96
|
+
gitOperationsByProjectPath.add(project.path);
|
|
97
|
+
try {
|
|
98
|
+
await runGit(project.path, ["fetch"], {
|
|
99
|
+
timeout: 30_000,
|
|
100
|
+
disableTerminalPrompt: true,
|
|
101
|
+
});
|
|
102
|
+
const nextCheckedRemoteAt = new Date().toISOString();
|
|
103
|
+
remoteCheckedAtByProjectPath.set(project.path, nextCheckedRemoteAt);
|
|
104
|
+
const result = {
|
|
105
|
+
status: "checked",
|
|
106
|
+
checkedRemoteAt: nextCheckedRemoteAt,
|
|
107
|
+
gitStatus: await getGitStatusWithRemoteCheckTime(project.path),
|
|
108
|
+
};
|
|
109
|
+
return c.json(result);
|
|
110
|
+
}
|
|
111
|
+
catch (err) {
|
|
112
|
+
if (isNotGitRepoError(err)) {
|
|
113
|
+
const result = {
|
|
114
|
+
status: "not-a-git-repo",
|
|
115
|
+
checkedRemoteAt: null,
|
|
116
|
+
gitStatus: NOT_A_GIT_REPO,
|
|
117
|
+
};
|
|
118
|
+
return c.json(result);
|
|
119
|
+
}
|
|
120
|
+
const result = {
|
|
121
|
+
status: "failed",
|
|
122
|
+
checkedRemoteAt: await getCheckedRemoteAt(project.path),
|
|
123
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
124
|
+
detail: getGitErrorDetail(err),
|
|
125
|
+
};
|
|
126
|
+
return c.json(result);
|
|
127
|
+
}
|
|
128
|
+
finally {
|
|
129
|
+
gitOperationsByProjectPath.delete(project.path);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* GET /:projectId/git/integration-options
|
|
134
|
+
* Inspect whether automatic diverged-branch options can be offered.
|
|
135
|
+
*
|
|
136
|
+
* This is intentionally read-only: it does not fetch, rebase, merge, stash, or
|
|
137
|
+
* otherwise mutate the repository.
|
|
138
|
+
*/
|
|
139
|
+
routes.get("/:projectId/git/integration-options", async (c) => {
|
|
140
|
+
const projectId = c.req.param("projectId");
|
|
141
|
+
if (!isUrlProjectId(projectId)) {
|
|
142
|
+
return c.json({ error: "Invalid project ID format" }, 400);
|
|
143
|
+
}
|
|
144
|
+
const project = await deps.scanner.getProject(projectId);
|
|
145
|
+
if (!project) {
|
|
146
|
+
return c.json({ error: "Project not found" }, 404);
|
|
147
|
+
}
|
|
148
|
+
const checkedRemoteAt = await getCheckedRemoteAt(project.path);
|
|
149
|
+
if (gitOperationsByProjectPath.has(project.path)) {
|
|
150
|
+
const status = await getGitStatusSnapshot(project.path);
|
|
151
|
+
const result = {
|
|
152
|
+
...buildGitIntegrationOptionsResult(status, checkedRemoteAt, false),
|
|
153
|
+
status: "busy",
|
|
154
|
+
canAutoRebase: false,
|
|
155
|
+
canAutoMerge: false,
|
|
156
|
+
reasons: ["operation-running"],
|
|
157
|
+
};
|
|
158
|
+
return c.json(result);
|
|
159
|
+
}
|
|
160
|
+
try {
|
|
161
|
+
const status = await getGitStatusWithRemoteCheckTime(project.path);
|
|
162
|
+
const hasSequencerState = await hasGitSequencerState(project.path);
|
|
163
|
+
return c.json(buildGitIntegrationOptionsResult(status, checkedRemoteAt, hasSequencerState));
|
|
164
|
+
}
|
|
165
|
+
catch (err) {
|
|
166
|
+
if (isNotGitRepoError(err)) {
|
|
167
|
+
const result = {
|
|
168
|
+
status: "not-a-git-repo",
|
|
169
|
+
checkedRemoteAt: null,
|
|
170
|
+
gitStatus: NOT_A_GIT_REPO,
|
|
171
|
+
canAutoRebase: false,
|
|
172
|
+
canAutoMerge: false,
|
|
173
|
+
reasons: ["not-a-git-repo"],
|
|
174
|
+
ahead: 0,
|
|
175
|
+
behind: 0,
|
|
176
|
+
upstream: null,
|
|
177
|
+
isClean: true,
|
|
178
|
+
hasSequencerState: false,
|
|
179
|
+
};
|
|
180
|
+
return c.json(result);
|
|
181
|
+
}
|
|
182
|
+
const snapshot = await getGitStatusSnapshot(project.path);
|
|
183
|
+
const result = {
|
|
184
|
+
status: "failed",
|
|
185
|
+
checkedRemoteAt: await getCheckedRemoteAt(project.path),
|
|
186
|
+
gitStatus: snapshot,
|
|
187
|
+
canAutoRebase: false,
|
|
188
|
+
canAutoMerge: false,
|
|
189
|
+
reasons: ["status-unavailable"],
|
|
190
|
+
ahead: snapshot.ahead,
|
|
191
|
+
behind: snapshot.behind,
|
|
192
|
+
upstream: snapshot.upstream,
|
|
193
|
+
isClean: snapshot.isClean,
|
|
194
|
+
hasSequencerState: false,
|
|
195
|
+
detail: getGitErrorDetail(err),
|
|
196
|
+
};
|
|
197
|
+
return c.json(result);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
/**
|
|
201
|
+
* POST /:projectId/git/pull
|
|
202
|
+
* Try a safe fast-forward pull without opening interactive prompts.
|
|
203
|
+
*/
|
|
204
|
+
routes.post("/:projectId/git/pull", async (c) => {
|
|
205
|
+
const projectId = c.req.param("projectId");
|
|
206
|
+
if (!isUrlProjectId(projectId)) {
|
|
207
|
+
return c.json({ error: "Invalid project ID format" }, 400);
|
|
208
|
+
}
|
|
209
|
+
const project = await deps.scanner.getProject(projectId);
|
|
210
|
+
if (!project) {
|
|
211
|
+
return c.json({ error: "Project not found" }, 404);
|
|
212
|
+
}
|
|
213
|
+
const checkedRemoteAt = await getCheckedRemoteAt(project.path);
|
|
214
|
+
if (gitOperationsByProjectPath.has(project.path)) {
|
|
215
|
+
const result = {
|
|
216
|
+
status: "busy",
|
|
217
|
+
checkedRemoteAt,
|
|
218
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
219
|
+
};
|
|
220
|
+
return c.json(result);
|
|
221
|
+
}
|
|
222
|
+
gitOperationsByProjectPath.add(project.path);
|
|
223
|
+
try {
|
|
224
|
+
await runGit(project.path, ["pull", "--ff-only"], {
|
|
225
|
+
timeout: 60_000,
|
|
226
|
+
disableTerminalPrompt: true,
|
|
227
|
+
});
|
|
228
|
+
const nextCheckedRemoteAt = new Date().toISOString();
|
|
229
|
+
remoteCheckedAtByProjectPath.set(project.path, nextCheckedRemoteAt);
|
|
230
|
+
const result = {
|
|
231
|
+
status: "pulled",
|
|
232
|
+
checkedRemoteAt: nextCheckedRemoteAt,
|
|
233
|
+
gitStatus: await getGitStatusWithRemoteCheckTime(project.path),
|
|
234
|
+
};
|
|
235
|
+
return c.json(result);
|
|
236
|
+
}
|
|
237
|
+
catch (err) {
|
|
238
|
+
if (isNotGitRepoError(err)) {
|
|
239
|
+
const result = {
|
|
240
|
+
status: "not-a-git-repo",
|
|
241
|
+
checkedRemoteAt: null,
|
|
242
|
+
gitStatus: NOT_A_GIT_REPO,
|
|
243
|
+
};
|
|
244
|
+
return c.json(result);
|
|
245
|
+
}
|
|
246
|
+
const result = {
|
|
247
|
+
status: "failed",
|
|
248
|
+
checkedRemoteAt: await getCheckedRemoteAt(project.path),
|
|
249
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
250
|
+
detail: getGitErrorDetail(err),
|
|
251
|
+
};
|
|
252
|
+
return c.json(result);
|
|
253
|
+
}
|
|
254
|
+
finally {
|
|
255
|
+
gitOperationsByProjectPath.delete(project.path);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
/**
|
|
259
|
+
* POST /:projectId/git/push
|
|
260
|
+
* Push the current branch, publishing to origin for simple no-upstream cases.
|
|
261
|
+
*/
|
|
262
|
+
routes.post("/:projectId/git/push", async (c) => {
|
|
263
|
+
const projectId = c.req.param("projectId");
|
|
264
|
+
if (!isUrlProjectId(projectId)) {
|
|
265
|
+
return c.json({ error: "Invalid project ID format" }, 400);
|
|
266
|
+
}
|
|
267
|
+
const project = await deps.scanner.getProject(projectId);
|
|
268
|
+
if (!project) {
|
|
269
|
+
return c.json({ error: "Project not found" }, 404);
|
|
270
|
+
}
|
|
271
|
+
const checkedRemoteAt = await getCheckedRemoteAt(project.path);
|
|
272
|
+
if (gitOperationsByProjectPath.has(project.path)) {
|
|
273
|
+
const result = {
|
|
274
|
+
status: "busy",
|
|
275
|
+
checkedRemoteAt,
|
|
276
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
277
|
+
};
|
|
278
|
+
return c.json(result);
|
|
279
|
+
}
|
|
280
|
+
gitOperationsByProjectPath.add(project.path);
|
|
281
|
+
try {
|
|
282
|
+
const status = await getGitStatusWithRemoteCheckTime(project.path);
|
|
283
|
+
const pushArgs = status.upstream
|
|
284
|
+
? ["push"]
|
|
285
|
+
: status.branch && (await hasGitRemote(project.path, "origin"))
|
|
286
|
+
? ["push", "-u", "origin", "HEAD"]
|
|
287
|
+
: null;
|
|
288
|
+
if (!pushArgs) {
|
|
289
|
+
const result = {
|
|
290
|
+
status: "no-upstream",
|
|
291
|
+
checkedRemoteAt,
|
|
292
|
+
gitStatus: status,
|
|
293
|
+
};
|
|
294
|
+
return c.json(result);
|
|
295
|
+
}
|
|
296
|
+
const pushResult = await runGit(project.path, pushArgs, {
|
|
297
|
+
timeout: 60_000,
|
|
298
|
+
disableTerminalPrompt: true,
|
|
299
|
+
});
|
|
300
|
+
const result = {
|
|
301
|
+
status: status.upstream
|
|
302
|
+
? isPushAlreadyUpToDateOutput(pushResult)
|
|
303
|
+
? "up-to-date"
|
|
304
|
+
: "pushed"
|
|
305
|
+
: "published",
|
|
306
|
+
checkedRemoteAt: await getCheckedRemoteAt(project.path),
|
|
307
|
+
gitStatus: await getGitStatusWithRemoteCheckTime(project.path),
|
|
308
|
+
};
|
|
309
|
+
return c.json(result);
|
|
310
|
+
}
|
|
311
|
+
catch (err) {
|
|
312
|
+
if (isNotGitRepoError(err)) {
|
|
313
|
+
const result = {
|
|
314
|
+
status: "not-a-git-repo",
|
|
315
|
+
checkedRemoteAt: null,
|
|
316
|
+
gitStatus: NOT_A_GIT_REPO,
|
|
317
|
+
};
|
|
318
|
+
return c.json(result);
|
|
319
|
+
}
|
|
320
|
+
const result = {
|
|
321
|
+
status: isPushRejectedError(err) ? "rejected" : "failed",
|
|
322
|
+
checkedRemoteAt: await getCheckedRemoteAt(project.path),
|
|
323
|
+
gitStatus: await getGitStatusSnapshot(project.path),
|
|
324
|
+
detail: getGitErrorDetail(err),
|
|
325
|
+
};
|
|
326
|
+
return c.json(result);
|
|
327
|
+
}
|
|
328
|
+
finally {
|
|
329
|
+
gitOperationsByProjectPath.delete(project.path);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
41
332
|
/**
|
|
42
333
|
* POST /:projectId/git/diff
|
|
43
334
|
* Get syntax-highlighted diff for a specific file.
|
|
@@ -63,6 +354,9 @@ export function createGitStatusRoutes(deps) {
|
|
|
63
354
|
if (!path || typeof staged !== "boolean" || !status) {
|
|
64
355
|
return c.json({ error: "Missing required fields: path, staged, status" }, 400);
|
|
65
356
|
}
|
|
357
|
+
if (status === "?" && path.endsWith("/")) {
|
|
358
|
+
return c.json({ error: "Diff preview is not available for untracked folders" }, 400);
|
|
359
|
+
}
|
|
66
360
|
try {
|
|
67
361
|
const { oldContent, newContent } = await getFileVersions(project.path, path, staged, status);
|
|
68
362
|
const contextLines = fullContext ? 999999 : 3;
|
|
@@ -138,23 +432,173 @@ async function getFileVersions(cwd, path, staged, status) {
|
|
|
138
432
|
]);
|
|
139
433
|
return { oldContent: oldResult.stdout, newContent };
|
|
140
434
|
}
|
|
141
|
-
async function runGit(cwd, args) {
|
|
435
|
+
async function runGit(cwd, args, options) {
|
|
142
436
|
return execFileAsync("git", ["-C", cwd, ...args], {
|
|
143
437
|
maxBuffer: 1024 * 1024,
|
|
144
|
-
timeout: 10_000,
|
|
438
|
+
timeout: options?.timeout ?? 10_000,
|
|
439
|
+
...(options?.disableTerminalPrompt
|
|
440
|
+
? { env: { ...process.env, GIT_TERMINAL_PROMPT: "0" } }
|
|
441
|
+
: {}),
|
|
145
442
|
});
|
|
146
443
|
}
|
|
444
|
+
async function getCheckedRemoteAt(projectPath) {
|
|
445
|
+
return latestIsoTimestamp(remoteCheckedAtByProjectPath.get(projectPath) ?? null, await getRecordedFetchAt(projectPath));
|
|
446
|
+
}
|
|
447
|
+
async function getGitStatusWithRemoteCheckTime(projectPath) {
|
|
448
|
+
return getGitStatus(projectPath, await getCheckedRemoteAt(projectPath));
|
|
449
|
+
}
|
|
450
|
+
async function getGitStatusSnapshot(projectPath) {
|
|
451
|
+
try {
|
|
452
|
+
return await getGitStatusWithRemoteCheckTime(projectPath);
|
|
453
|
+
}
|
|
454
|
+
catch (err) {
|
|
455
|
+
if (isNotGitRepoError(err)) {
|
|
456
|
+
return NOT_A_GIT_REPO;
|
|
457
|
+
}
|
|
458
|
+
return {
|
|
459
|
+
...NOT_A_GIT_REPO,
|
|
460
|
+
checkedRemoteAt: await getCheckedRemoteAt(projectPath),
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
function buildGitIntegrationOptionsResult(status, checkedRemoteAt, hasSequencerState) {
|
|
465
|
+
const reasons = [];
|
|
466
|
+
if (!status.isGitRepo) {
|
|
467
|
+
reasons.push("not-a-git-repo");
|
|
468
|
+
}
|
|
469
|
+
if (!status.branch) {
|
|
470
|
+
reasons.push("detached-head");
|
|
471
|
+
}
|
|
472
|
+
if (!status.upstream) {
|
|
473
|
+
reasons.push("missing-upstream");
|
|
474
|
+
}
|
|
475
|
+
if (!(status.ahead > 0 && status.behind > 0)) {
|
|
476
|
+
reasons.push("not-diverged");
|
|
477
|
+
}
|
|
478
|
+
if (!status.isClean) {
|
|
479
|
+
reasons.push("dirty-worktree");
|
|
480
|
+
}
|
|
481
|
+
if (hasSequencerState) {
|
|
482
|
+
reasons.push("sequencer-in-progress");
|
|
483
|
+
}
|
|
484
|
+
const available = reasons.length === 0;
|
|
485
|
+
return {
|
|
486
|
+
status: available ? "available" : "unavailable",
|
|
487
|
+
checkedRemoteAt,
|
|
488
|
+
gitStatus: status,
|
|
489
|
+
canAutoRebase: available,
|
|
490
|
+
canAutoMerge: available,
|
|
491
|
+
reasons,
|
|
492
|
+
ahead: status.ahead,
|
|
493
|
+
behind: status.behind,
|
|
494
|
+
upstream: status.upstream,
|
|
495
|
+
isClean: status.isClean,
|
|
496
|
+
hasSequencerState,
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
async function hasGitSequencerState(projectPath) {
|
|
500
|
+
const gitStatePaths = [
|
|
501
|
+
"MERGE_HEAD",
|
|
502
|
+
"CHERRY_PICK_HEAD",
|
|
503
|
+
"REVERT_HEAD",
|
|
504
|
+
"rebase-merge",
|
|
505
|
+
"rebase-apply",
|
|
506
|
+
"sequencer",
|
|
507
|
+
];
|
|
508
|
+
const checks = await Promise.all(gitStatePaths.map((gitPath) => gitPathExists(projectPath, gitPath)));
|
|
509
|
+
return checks.some(Boolean);
|
|
510
|
+
}
|
|
511
|
+
async function gitPathExists(projectPath, gitPath) {
|
|
512
|
+
try {
|
|
513
|
+
const { stdout } = await runGit(projectPath, [
|
|
514
|
+
"rev-parse",
|
|
515
|
+
"--git-path",
|
|
516
|
+
gitPath,
|
|
517
|
+
]);
|
|
518
|
+
const resolvedPath = stdout.trim();
|
|
519
|
+
if (!resolvedPath) {
|
|
520
|
+
return false;
|
|
521
|
+
}
|
|
522
|
+
await stat(resolve(projectPath, resolvedPath));
|
|
523
|
+
return true;
|
|
524
|
+
}
|
|
525
|
+
catch {
|
|
526
|
+
return false;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
async function getRecordedFetchAt(projectPath) {
|
|
530
|
+
try {
|
|
531
|
+
const { stdout } = await runGit(projectPath, [
|
|
532
|
+
"rev-parse",
|
|
533
|
+
"--git-path",
|
|
534
|
+
"FETCH_HEAD",
|
|
535
|
+
]);
|
|
536
|
+
const fetchHeadPath = stdout.trim();
|
|
537
|
+
if (!fetchHeadPath) {
|
|
538
|
+
return null;
|
|
539
|
+
}
|
|
540
|
+
const fetchHeadStat = await stat(resolve(projectPath, fetchHeadPath));
|
|
541
|
+
if (!fetchHeadStat.isFile() || !Number.isFinite(fetchHeadStat.mtimeMs)) {
|
|
542
|
+
return null;
|
|
543
|
+
}
|
|
544
|
+
return fetchHeadStat.mtime.toISOString();
|
|
545
|
+
}
|
|
546
|
+
catch {
|
|
547
|
+
return null;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
function latestIsoTimestamp(first, second) {
|
|
551
|
+
if (!first)
|
|
552
|
+
return second;
|
|
553
|
+
if (!second)
|
|
554
|
+
return first;
|
|
555
|
+
const firstTime = Date.parse(first);
|
|
556
|
+
const secondTime = Date.parse(second);
|
|
557
|
+
if (!Number.isFinite(firstTime))
|
|
558
|
+
return second;
|
|
559
|
+
if (!Number.isFinite(secondTime))
|
|
560
|
+
return first;
|
|
561
|
+
return secondTime > firstTime ? second : first;
|
|
562
|
+
}
|
|
563
|
+
function getGitErrorDetail(err) {
|
|
564
|
+
if (!err || typeof err !== "object") {
|
|
565
|
+
return undefined;
|
|
566
|
+
}
|
|
567
|
+
const gitError = err;
|
|
568
|
+
const detail = gitError.stderr || gitError.stdout || gitError.message;
|
|
569
|
+
return detail?.trim().slice(0, 1200) || undefined;
|
|
570
|
+
}
|
|
571
|
+
async function hasGitRemote(projectPath, remoteName) {
|
|
572
|
+
try {
|
|
573
|
+
await runGit(projectPath, ["remote", "get-url", remoteName]);
|
|
574
|
+
return true;
|
|
575
|
+
}
|
|
576
|
+
catch {
|
|
577
|
+
return false;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
147
580
|
function isNotGitRepoError(err) {
|
|
148
581
|
if (err && typeof err === "object") {
|
|
149
582
|
const e = err;
|
|
150
|
-
if (e.code === 128)
|
|
151
|
-
return true;
|
|
152
583
|
if (typeof e.stderr === "string" &&
|
|
153
584
|
e.stderr.includes("not a git repository"))
|
|
154
585
|
return true;
|
|
155
586
|
}
|
|
156
587
|
return false;
|
|
157
588
|
}
|
|
589
|
+
function isPushRejectedError(err) {
|
|
590
|
+
if (!err || typeof err !== "object") {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
const gitError = err;
|
|
594
|
+
const output = `${gitError.stderr ?? ""}\n${gitError.stdout ?? ""}`;
|
|
595
|
+
return (output.includes("[rejected]") ||
|
|
596
|
+
output.includes("non-fast-forward") ||
|
|
597
|
+
output.includes("fetch first"));
|
|
598
|
+
}
|
|
599
|
+
function isPushAlreadyUpToDateOutput(result) {
|
|
600
|
+
return `${result.stdout}\n${result.stderr}`.includes("Everything up-to-date");
|
|
601
|
+
}
|
|
158
602
|
/** Parse `git diff --numstat` output into a map of path → {added, deleted} */
|
|
159
603
|
function parseNumstat(output) {
|
|
160
604
|
const map = new Map();
|
|
@@ -173,6 +617,114 @@ function parseNumstat(output) {
|
|
|
173
617
|
}
|
|
174
618
|
return map;
|
|
175
619
|
}
|
|
620
|
+
function isValidUntrackedFolderPath(path) {
|
|
621
|
+
if (!path.endsWith("/") || path.includes("\0")) {
|
|
622
|
+
return false;
|
|
623
|
+
}
|
|
624
|
+
if (path.startsWith("/") || /^[A-Za-z]:/.test(path)) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
const segments = path.slice(0, -1).split("/");
|
|
628
|
+
return (segments.length > 0 &&
|
|
629
|
+
segments.every((segment) => segment !== "" && segment !== ".."));
|
|
630
|
+
}
|
|
631
|
+
async function getUntrackedFolderInfo(projectPath, folderPath) {
|
|
632
|
+
const { files, truncated } = await collectUntrackedFolderFiles(projectPath, folderPath, UNTRACKED_FOLDER_FILE_LIMIT);
|
|
633
|
+
files.sort((a, b) => a.localeCompare(b));
|
|
634
|
+
return {
|
|
635
|
+
path: folderPath,
|
|
636
|
+
files,
|
|
637
|
+
truncated,
|
|
638
|
+
limit: UNTRACKED_FOLDER_FILE_LIMIT,
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
async function collectUntrackedFolderFiles(projectPath, folderPath, limit) {
|
|
642
|
+
return new Promise((resolvePromise, rejectPromise) => {
|
|
643
|
+
const child = spawn("git", [
|
|
644
|
+
"-C",
|
|
645
|
+
projectPath,
|
|
646
|
+
...GIT_DECODE_PATHS_ARGS,
|
|
647
|
+
"status",
|
|
648
|
+
"--porcelain=v2",
|
|
649
|
+
"--untracked-files=all",
|
|
650
|
+
"--",
|
|
651
|
+
folderPath,
|
|
652
|
+
]);
|
|
653
|
+
const files = [];
|
|
654
|
+
let stdoutRemainder = "";
|
|
655
|
+
let stderr = "";
|
|
656
|
+
let truncated = false;
|
|
657
|
+
let settled = false;
|
|
658
|
+
let stdoutBytes = 0;
|
|
659
|
+
let timeout;
|
|
660
|
+
const settle = (resolve, value) => {
|
|
661
|
+
if (settled)
|
|
662
|
+
return;
|
|
663
|
+
settled = true;
|
|
664
|
+
clearTimeout(timeout);
|
|
665
|
+
if (resolve) {
|
|
666
|
+
resolvePromise(value);
|
|
667
|
+
}
|
|
668
|
+
else {
|
|
669
|
+
rejectPromise(value);
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
const stopAsTruncated = () => {
|
|
673
|
+
if (truncated)
|
|
674
|
+
return;
|
|
675
|
+
truncated = true;
|
|
676
|
+
child.kill("SIGTERM");
|
|
677
|
+
};
|
|
678
|
+
const readStatusLine = (line) => {
|
|
679
|
+
if (!line.startsWith("? "))
|
|
680
|
+
return;
|
|
681
|
+
const path = line.slice(2);
|
|
682
|
+
if (!path.startsWith(folderPath) || path.endsWith("/"))
|
|
683
|
+
return;
|
|
684
|
+
if (files.length >= limit) {
|
|
685
|
+
stopAsTruncated();
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
files.push(path);
|
|
689
|
+
if (files.length >= limit) {
|
|
690
|
+
stopAsTruncated();
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
timeout = setTimeout(stopAsTruncated, 10_000);
|
|
694
|
+
child.stdout.setEncoding("utf8");
|
|
695
|
+
child.stdout.on("data", (chunk) => {
|
|
696
|
+
stdoutBytes += Buffer.byteLength(chunk);
|
|
697
|
+
stdoutRemainder += chunk;
|
|
698
|
+
const lines = stdoutRemainder.split("\n");
|
|
699
|
+
stdoutRemainder = lines.pop() ?? "";
|
|
700
|
+
for (const line of lines) {
|
|
701
|
+
readStatusLine(line);
|
|
702
|
+
}
|
|
703
|
+
if (stdoutBytes > 1024 * 1024) {
|
|
704
|
+
stopAsTruncated();
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
child.stderr.setEncoding("utf8");
|
|
708
|
+
child.stderr.on("data", (chunk) => {
|
|
709
|
+
stderr += chunk;
|
|
710
|
+
});
|
|
711
|
+
child.on("error", (err) => {
|
|
712
|
+
settle(false, err);
|
|
713
|
+
});
|
|
714
|
+
child.on("close", (code) => {
|
|
715
|
+
if (stdoutRemainder) {
|
|
716
|
+
readStatusLine(stdoutRemainder);
|
|
717
|
+
}
|
|
718
|
+
if (code === 0 || truncated) {
|
|
719
|
+
settle(true, { files, truncated });
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
const err = new Error(stderr.trim() || `git exited with code ${code}`);
|
|
723
|
+
Object.assign(err, { stderr });
|
|
724
|
+
settle(false, err);
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
}
|
|
176
728
|
/** Status letter from the XY field for a given position */
|
|
177
729
|
function statusChar(xy, index) {
|
|
178
730
|
if (!xy)
|
|
@@ -180,21 +732,45 @@ function statusChar(xy, index) {
|
|
|
180
732
|
const ch = xy[index];
|
|
181
733
|
return ch && ch !== "." ? ch : null;
|
|
182
734
|
}
|
|
183
|
-
async function getGitStatus(projectPath) {
|
|
184
|
-
// Run
|
|
185
|
-
const [statusResult, numstatUnstaged, numstatStaged] = await Promise.all([
|
|
186
|
-
runGit(projectPath, [
|
|
187
|
-
|
|
735
|
+
async function getGitStatus(projectPath, checkedRemoteAt) {
|
|
736
|
+
// Run local read-only commands in parallel.
|
|
737
|
+
const [statusResult, numstatUnstaged, numstatStaged, logResult] = await Promise.all([
|
|
738
|
+
runGit(projectPath, [
|
|
739
|
+
...GIT_DECODE_PATHS_ARGS,
|
|
740
|
+
"status",
|
|
741
|
+
"--porcelain=v2",
|
|
742
|
+
"--branch",
|
|
743
|
+
]),
|
|
744
|
+
runGit(projectPath, [
|
|
745
|
+
...GIT_DECODE_PATHS_ARGS,
|
|
746
|
+
"diff",
|
|
747
|
+
"--numstat",
|
|
748
|
+
]).catch(() => ({
|
|
188
749
|
stdout: "",
|
|
189
750
|
stderr: "",
|
|
190
751
|
})),
|
|
191
|
-
runGit(projectPath, [
|
|
752
|
+
runGit(projectPath, [
|
|
753
|
+
...GIT_DECODE_PATHS_ARGS,
|
|
754
|
+
"diff",
|
|
755
|
+
"--cached",
|
|
756
|
+
"--numstat",
|
|
757
|
+
]).catch(() => ({
|
|
758
|
+
stdout: "",
|
|
759
|
+
stderr: "",
|
|
760
|
+
})),
|
|
761
|
+
runGit(projectPath, [
|
|
762
|
+
"log",
|
|
763
|
+
"-n",
|
|
764
|
+
"5",
|
|
765
|
+
"--format=%H%x1f%h%x1f%an%x1f%aI%x1f%s%x1e",
|
|
766
|
+
]).catch(() => ({
|
|
192
767
|
stdout: "",
|
|
193
768
|
stderr: "",
|
|
194
769
|
})),
|
|
195
770
|
]);
|
|
196
771
|
const unstagedStats = parseNumstat(numstatUnstaged.stdout);
|
|
197
772
|
const stagedStats = parseNumstat(numstatStaged.stdout);
|
|
773
|
+
const recentCommits = parseRecentCommits(logResult.stdout);
|
|
198
774
|
let branch = null;
|
|
199
775
|
let upstream = null;
|
|
200
776
|
let ahead = 0;
|
|
@@ -279,18 +855,17 @@ async function getGitStatus(projectPath) {
|
|
|
279
855
|
});
|
|
280
856
|
}
|
|
281
857
|
}
|
|
282
|
-
// Untracked: "? path"
|
|
858
|
+
// Untracked: "? path". Git reports a whole untracked directory as
|
|
859
|
+
// "path/" until the caller explicitly asks for --untracked-files=all.
|
|
283
860
|
else if (line.startsWith("? ")) {
|
|
284
861
|
const path = line.slice(2);
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
});
|
|
293
|
-
}
|
|
862
|
+
files.push({
|
|
863
|
+
path,
|
|
864
|
+
status: "?",
|
|
865
|
+
staged: false,
|
|
866
|
+
linesAdded: null,
|
|
867
|
+
linesDeleted: null,
|
|
868
|
+
});
|
|
294
869
|
}
|
|
295
870
|
// Unmerged: "u XY sub m1 m2 m3 mW h1 h2 h3 path"
|
|
296
871
|
else if (line.startsWith("u ")) {
|
|
@@ -313,6 +888,29 @@ async function getGitStatus(projectPath) {
|
|
|
313
888
|
behind,
|
|
314
889
|
isClean: files.length === 0,
|
|
315
890
|
files,
|
|
891
|
+
recentCommits,
|
|
892
|
+
checkedRemoteAt,
|
|
316
893
|
};
|
|
317
894
|
}
|
|
895
|
+
function parseRecentCommits(output) {
|
|
896
|
+
const commits = [];
|
|
897
|
+
for (const rawRecord of output.split("\x1e")) {
|
|
898
|
+
const record = rawRecord.replace(/^\n/, "").replace(/\n$/, "");
|
|
899
|
+
if (!record)
|
|
900
|
+
continue;
|
|
901
|
+
const [hash, shortHash, authorName, authorDate, ...subjectParts] = record.split("\x1f");
|
|
902
|
+
const subject = subjectParts.join("\x1f");
|
|
903
|
+
if (!hash || !shortHash || !authorName || !authorDate) {
|
|
904
|
+
continue;
|
|
905
|
+
}
|
|
906
|
+
commits.push({
|
|
907
|
+
hash,
|
|
908
|
+
shortHash,
|
|
909
|
+
authorName,
|
|
910
|
+
authorDate,
|
|
911
|
+
subject,
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
return commits;
|
|
915
|
+
}
|
|
318
916
|
//# sourceMappingURL=git-status.js.map
|