@viewportai/daemon 0.31.0 → 0.32.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/LICENSE +25 -0
- package/README.md +339 -242
- package/dist/chunk-33YDFYW2.js +355 -0
- package/dist/chunk-5MLJY3NS.js +182 -0
- package/dist/chunk-62D4ICYA.js +634 -0
- package/dist/chunk-76ISR4QO.js +5045 -0
- package/dist/chunk-BFV7PIQD.js +639 -0
- package/dist/chunk-EACFI34X.js +2307 -0
- package/dist/chunk-FXZH5JGQ.js +599 -0
- package/dist/chunk-K2WDCPZB.js +377 -0
- package/dist/chunk-NBLB22VR.js +70 -0
- package/dist/chunk-YJFNBSD3.js +229 -0
- package/dist/cli/bin.d.ts +1 -0
- package/dist/cli/bin.js +2311 -0
- package/dist/client/index.d.ts +294 -0
- package/dist/client/index.js +708 -0
- package/dist/identity-CH_omX_I.d.ts +20 -0
- package/dist/index.d.ts +109 -26
- package/dist/index.js +34 -223
- package/dist/info-aU2-5A8G.d.ts +602 -0
- package/dist/pipe-BlqIy51a.d.ts +19 -0
- package/dist/protocol/index.d.ts +113 -0
- package/dist/protocol/index.js +222 -0
- package/dist/pushes-B1v3BF2N.d.ts +659 -0
- package/dist/relay/index.d.ts +122 -0
- package/dist/relay/index.js +26 -0
- package/dist/results-Ct1ZVYOZ.d.ts +716 -0
- package/dist/serve-MuBojIIs.d.ts +155 -0
- package/dist/server/index.d.ts +165 -0
- package/dist/server/index.js +31 -0
- package/dist/supervisor-CZ_i_hSc.d.ts +791 -0
- package/dist/testing/index.d.ts +163 -0
- package/dist/testing/index.js +445 -0
- package/dist/testing/vitest.d.ts +12 -0
- package/dist/testing/vitest.js +58 -0
- package/package.json +88 -87
- package/spec/schemas/daemon/channel/v1.json +176 -0
- package/spec/schemas/daemon/event/v1.json +551 -0
- package/spec/schemas/daemon/protocol/v1.json +1557 -0
- package/bin/vpd.js +0 -2
- package/dist/adapters/claude-message-normalizer.d.ts +0 -24
- package/dist/adapters/claude-message-normalizer.d.ts.map +0 -1
- package/dist/adapters/claude-message-normalizer.js +0 -192
- package/dist/adapters/claude-message-normalizer.js.map +0 -1
- package/dist/adapters/claude.d.ts +0 -104
- package/dist/adapters/claude.d.ts.map +0 -1
- package/dist/adapters/claude.js +0 -503
- package/dist/adapters/claude.js.map +0 -1
- package/dist/adapters/codex-event-normalizers.d.ts +0 -10
- package/dist/adapters/codex-event-normalizers.d.ts.map +0 -1
- package/dist/adapters/codex-event-normalizers.js +0 -261
- package/dist/adapters/codex-event-normalizers.js.map +0 -1
- package/dist/adapters/codex-sdk-loader.d.ts +0 -48
- package/dist/adapters/codex-sdk-loader.d.ts.map +0 -1
- package/dist/adapters/codex-sdk-loader.js +0 -19
- package/dist/adapters/codex-sdk-loader.js.map +0 -1
- package/dist/adapters/codex.d.ts +0 -65
- package/dist/adapters/codex.d.ts.map +0 -1
- package/dist/adapters/codex.js +0 -606
- package/dist/adapters/codex.js.map +0 -1
- package/dist/adapters/gemini-cli.d.ts +0 -50
- package/dist/adapters/gemini-cli.d.ts.map +0 -1
- package/dist/adapters/gemini-cli.js +0 -205
- package/dist/adapters/gemini-cli.js.map +0 -1
- package/dist/adapters/pty.d.ts +0 -57
- package/dist/adapters/pty.d.ts.map +0 -1
- package/dist/adapters/pty.js +0 -250
- package/dist/adapters/pty.js.map +0 -1
- package/dist/agents/aider.d.ts +0 -9
- package/dist/agents/aider.d.ts.map +0 -1
- package/dist/agents/aider.js +0 -37
- package/dist/agents/aider.js.map +0 -1
- package/dist/agents/built-in.d.ts +0 -4
- package/dist/agents/built-in.d.ts.map +0 -1
- package/dist/agents/built-in.js +0 -6
- package/dist/agents/built-in.js.map +0 -1
- package/dist/agents/claude.d.ts +0 -12
- package/dist/agents/claude.d.ts.map +0 -1
- package/dist/agents/claude.js +0 -93
- package/dist/agents/claude.js.map +0 -1
- package/dist/agents/codex-defaults.d.ts +0 -2
- package/dist/agents/codex-defaults.d.ts.map +0 -1
- package/dist/agents/codex-defaults.js +0 -2
- package/dist/agents/codex-defaults.js.map +0 -1
- package/dist/agents/codex.d.ts +0 -6
- package/dist/agents/codex.d.ts.map +0 -1
- package/dist/agents/codex.js +0 -82
- package/dist/agents/codex.js.map +0 -1
- package/dist/agents/command-detection.d.ts +0 -6
- package/dist/agents/command-detection.d.ts.map +0 -1
- package/dist/agents/command-detection.js +0 -12
- package/dist/agents/command-detection.js.map +0 -1
- package/dist/agents/custom-command.d.ts +0 -3
- package/dist/agents/custom-command.d.ts.map +0 -1
- package/dist/agents/custom-command.js +0 -58
- package/dist/agents/custom-command.js.map +0 -1
- package/dist/agents/gemini.d.ts +0 -6
- package/dist/agents/gemini.d.ts.map +0 -1
- package/dist/agents/gemini.js +0 -36
- package/dist/agents/gemini.js.map +0 -1
- package/dist/cli/agent-commands.d.ts +0 -2
- package/dist/cli/agent-commands.d.ts.map +0 -1
- package/dist/cli/agent-commands.js +0 -97
- package/dist/cli/agent-commands.js.map +0 -1
- package/dist/cli/args.d.ts +0 -9
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js +0 -96
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/bind-command.d.ts +0 -2
- package/dist/cli/bind-command.d.ts.map +0 -1
- package/dist/cli/bind-command.js +0 -61
- package/dist/cli/bind-command.js.map +0 -1
- package/dist/cli/check-command.d.ts +0 -2
- package/dist/cli/check-command.d.ts.map +0 -1
- package/dist/cli/check-command.js +0 -168
- package/dist/cli/check-command.js.map +0 -1
- package/dist/cli/command-shared.d.ts +0 -81
- package/dist/cli/command-shared.d.ts.map +0 -1
- package/dist/cli/command-shared.js +0 -237
- package/dist/cli/command-shared.js.map +0 -1
- package/dist/cli/commands.d.ts +0 -36
- package/dist/cli/commands.d.ts.map +0 -1
- package/dist/cli/commands.js +0 -36
- package/dist/cli/commands.js.map +0 -1
- package/dist/cli/context-access-command.d.ts +0 -3
- package/dist/cli/context-access-command.d.ts.map +0 -1
- package/dist/cli/context-access-command.js +0 -63
- package/dist/cli/context-access-command.js.map +0 -1
- package/dist/cli/context-add-command.d.ts +0 -2
- package/dist/cli/context-add-command.d.ts.map +0 -1
- package/dist/cli/context-add-command.js +0 -74
- package/dist/cli/context-add-command.js.map +0 -1
- package/dist/cli/context-candidate-preview-command.d.ts +0 -2
- package/dist/cli/context-candidate-preview-command.d.ts.map +0 -1
- package/dist/cli/context-candidate-preview-command.js +0 -52
- package/dist/cli/context-candidate-preview-command.js.map +0 -1
- package/dist/cli/context-command-parsers.d.ts +0 -4
- package/dist/cli/context-command-parsers.d.ts.map +0 -1
- package/dist/cli/context-command-parsers.js +0 -32
- package/dist/cli/context-command-parsers.js.map +0 -1
- package/dist/cli/context-command.d.ts +0 -2
- package/dist/cli/context-command.d.ts.map +0 -1
- package/dist/cli/context-command.js +0 -950
- package/dist/cli/context-command.js.map +0 -1
- package/dist/cli/context-github-use-command.d.ts +0 -2
- package/dist/cli/context-github-use-command.d.ts.map +0 -1
- package/dist/cli/context-github-use-command.js +0 -68
- package/dist/cli/context-github-use-command.js.map +0 -1
- package/dist/cli/context-provider-command.d.ts +0 -4
- package/dist/cli/context-provider-command.d.ts.map +0 -1
- package/dist/cli/context-provider-command.js +0 -277
- package/dist/cli/context-provider-command.js.map +0 -1
- package/dist/cli/context-provider-propose.d.ts +0 -27
- package/dist/cli/context-provider-propose.d.ts.map +0 -1
- package/dist/cli/context-provider-propose.js +0 -31
- package/dist/cli/context-provider-propose.js.map +0 -1
- package/dist/cli/context-provider-resolve.d.ts +0 -11
- package/dist/cli/context-provider-resolve.d.ts.map +0 -1
- package/dist/cli/context-provider-resolve.js +0 -22
- package/dist/cli/context-provider-resolve.js.map +0 -1
- package/dist/cli/context-rules-command.d.ts +0 -2
- package/dist/cli/context-rules-command.d.ts.map +0 -1
- package/dist/cli/context-rules-command.js +0 -93
- package/dist/cli/context-rules-command.js.map +0 -1
- package/dist/cli/context-sync-target.d.ts +0 -37
- package/dist/cli/context-sync-target.d.ts.map +0 -1
- package/dist/cli/context-sync-target.js +0 -180
- package/dist/cli/context-sync-target.js.map +0 -1
- package/dist/cli/context-vault-metadata-command.d.ts +0 -36
- package/dist/cli/context-vault-metadata-command.d.ts.map +0 -1
- package/dist/cli/context-vault-metadata-command.js +0 -250
- package/dist/cli/context-vault-metadata-command.js.map +0 -1
- package/dist/cli/context-vault-use-command.d.ts +0 -2
- package/dist/cli/context-vault-use-command.d.ts.map +0 -1
- package/dist/cli/context-vault-use-command.js +0 -55
- package/dist/cli/context-vault-use-command.js.map +0 -1
- package/dist/cli/contract-authorization.d.ts +0 -25
- package/dist/cli/contract-authorization.d.ts.map +0 -1
- package/dist/cli/contract-authorization.js +0 -97
- package/dist/cli/contract-authorization.js.map +0 -1
- package/dist/cli/daemon-client.d.ts +0 -31
- package/dist/cli/daemon-client.d.ts.map +0 -1
- package/dist/cli/daemon-client.js +0 -208
- package/dist/cli/daemon-client.js.map +0 -1
- package/dist/cli/daemon-lifecycle.d.ts +0 -19
- package/dist/cli/daemon-lifecycle.d.ts.map +0 -1
- package/dist/cli/daemon-lifecycle.js +0 -298
- package/dist/cli/daemon-lifecycle.js.map +0 -1
- package/dist/cli/daemon-runtime-state.d.ts +0 -47
- package/dist/cli/daemon-runtime-state.d.ts.map +0 -1
- package/dist/cli/daemon-runtime-state.js +0 -2
- package/dist/cli/daemon-runtime-state.js.map +0 -1
- package/dist/cli/daemon-settings.d.ts +0 -9
- package/dist/cli/daemon-settings.d.ts.map +0 -1
- package/dist/cli/daemon-settings.js +0 -321
- package/dist/cli/daemon-settings.js.map +0 -1
- package/dist/cli/diagnostic-command.d.ts +0 -2
- package/dist/cli/diagnostic-command.d.ts.map +0 -1
- package/dist/cli/diagnostic-command.js +0 -102
- package/dist/cli/diagnostic-command.js.map +0 -1
- package/dist/cli/directory-commands.d.ts +0 -4
- package/dist/cli/directory-commands.d.ts.map +0 -1
- package/dist/cli/directory-commands.js +0 -198
- package/dist/cli/directory-commands.js.map +0 -1
- package/dist/cli/global-flags.d.ts +0 -2
- package/dist/cli/global-flags.d.ts.map +0 -1
- package/dist/cli/global-flags.js +0 -9
- package/dist/cli/global-flags.js.map +0 -1
- package/dist/cli/guard-command.d.ts +0 -34
- package/dist/cli/guard-command.d.ts.map +0 -1
- package/dist/cli/guard-command.js +0 -161
- package/dist/cli/guard-command.js.map +0 -1
- package/dist/cli/hook-command.d.ts +0 -23
- package/dist/cli/hook-command.d.ts.map +0 -1
- package/dist/cli/hook-command.js +0 -169
- package/dist/cli/hook-command.js.map +0 -1
- package/dist/cli/install-command.d.ts +0 -6
- package/dist/cli/install-command.d.ts.map +0 -1
- package/dist/cli/install-command.js +0 -125
- package/dist/cli/install-command.js.map +0 -1
- package/dist/cli/lifecycle-commands.d.ts +0 -15
- package/dist/cli/lifecycle-commands.d.ts.map +0 -1
- package/dist/cli/lifecycle-commands.js +0 -369
- package/dist/cli/lifecycle-commands.js.map +0 -1
- package/dist/cli/lifecycle-doctor-command.d.ts +0 -2
- package/dist/cli/lifecycle-doctor-command.d.ts.map +0 -1
- package/dist/cli/lifecycle-doctor-command.js +0 -100
- package/dist/cli/lifecycle-doctor-command.js.map +0 -1
- package/dist/cli/lifecycle-pair-command.d.ts +0 -6
- package/dist/cli/lifecycle-pair-command.d.ts.map +0 -1
- package/dist/cli/lifecycle-pair-command.js +0 -358
- package/dist/cli/lifecycle-pair-command.js.map +0 -1
- package/dist/cli/lifecycle-pair-server.d.ts +0 -29
- package/dist/cli/lifecycle-pair-server.d.ts.map +0 -1
- package/dist/cli/lifecycle-pair-server.js +0 -208
- package/dist/cli/lifecycle-pair-server.js.map +0 -1
- package/dist/cli/lifecycle-status-command.d.ts +0 -2
- package/dist/cli/lifecycle-status-command.d.ts.map +0 -1
- package/dist/cli/lifecycle-status-command.js +0 -340
- package/dist/cli/lifecycle-status-command.js.map +0 -1
- package/dist/cli/lifecycle-update-command.d.ts +0 -2
- package/dist/cli/lifecycle-update-command.d.ts.map +0 -1
- package/dist/cli/lifecycle-update-command.js +0 -92
- package/dist/cli/lifecycle-update-command.js.map +0 -1
- package/dist/cli/listen-target.d.ts +0 -13
- package/dist/cli/listen-target.d.ts.map +0 -1
- package/dist/cli/listen-target.js +0 -102
- package/dist/cli/listen-target.js.map +0 -1
- package/dist/cli/local-tls.d.ts +0 -9
- package/dist/cli/local-tls.d.ts.map +0 -1
- package/dist/cli/local-tls.js +0 -84
- package/dist/cli/local-tls.js.map +0 -1
- package/dist/cli/managed-session-verification-contract.d.ts +0 -46
- package/dist/cli/managed-session-verification-contract.d.ts.map +0 -1
- package/dist/cli/managed-session-verification-contract.js +0 -2
- package/dist/cli/managed-session-verification-contract.js.map +0 -1
- package/dist/cli/network.d.ts +0 -11
- package/dist/cli/network.d.ts.map +0 -1
- package/dist/cli/network.js +0 -173
- package/dist/cli/network.js.map +0 -1
- package/dist/cli/open-url.d.ts +0 -2
- package/dist/cli/open-url.d.ts.map +0 -1
- package/dist/cli/open-url.js +0 -21
- package/dist/cli/open-url.js.map +0 -1
- package/dist/cli/orchestration-commands.d.ts +0 -8
- package/dist/cli/orchestration-commands.d.ts.map +0 -1
- package/dist/cli/orchestration-commands.js +0 -340
- package/dist/cli/orchestration-commands.js.map +0 -1
- package/dist/cli/org-binding.d.ts +0 -41
- package/dist/cli/org-binding.d.ts.map +0 -1
- package/dist/cli/org-binding.js +0 -211
- package/dist/cli/org-binding.js.map +0 -1
- package/dist/cli/pairing-name-resolver.d.ts +0 -2
- package/dist/cli/pairing-name-resolver.d.ts.map +0 -1
- package/dist/cli/pairing-name-resolver.js +0 -48
- package/dist/cli/pairing-name-resolver.js.map +0 -1
- package/dist/cli/permission-commands.d.ts +0 -2
- package/dist/cli/permission-commands.d.ts.map +0 -1
- package/dist/cli/permission-commands.js +0 -148
- package/dist/cli/permission-commands.js.map +0 -1
- package/dist/cli/policy-schema-validator.d.ts +0 -240
- package/dist/cli/policy-schema-validator.d.ts.map +0 -1
- package/dist/cli/policy-schema-validator.js +0 -315
- package/dist/cli/policy-schema-validator.js.map +0 -1
- package/dist/cli/profile-command.d.ts +0 -3
- package/dist/cli/profile-command.d.ts.map +0 -1
- package/dist/cli/profile-command.js +0 -320
- package/dist/cli/profile-command.js.map +0 -1
- package/dist/cli/profile-runtime-commands.d.ts +0 -6
- package/dist/cli/profile-runtime-commands.d.ts.map +0 -1
- package/dist/cli/profile-runtime-commands.js +0 -127
- package/dist/cli/profile-runtime-commands.js.map +0 -1
- package/dist/cli/relay-binding-config.d.ts +0 -8
- package/dist/cli/relay-binding-config.d.ts.map +0 -1
- package/dist/cli/relay-binding-config.js +0 -62
- package/dist/cli/relay-binding-config.js.map +0 -1
- package/dist/cli/relay-diagnostics.d.ts +0 -8
- package/dist/cli/relay-diagnostics.d.ts.map +0 -1
- package/dist/cli/relay-diagnostics.js +0 -45
- package/dist/cli/relay-diagnostics.js.map +0 -1
- package/dist/cli/relay-launch-bindings.d.ts +0 -22
- package/dist/cli/relay-launch-bindings.d.ts.map +0 -1
- package/dist/cli/relay-launch-bindings.js +0 -36
- package/dist/cli/relay-launch-bindings.js.map +0 -1
- package/dist/cli/remote-commands.d.ts +0 -3
- package/dist/cli/remote-commands.d.ts.map +0 -1
- package/dist/cli/remote-commands.js +0 -312
- package/dist/cli/remote-commands.js.map +0 -1
- package/dist/cli/remote-decision-keys.d.ts +0 -8
- package/dist/cli/remote-decision-keys.d.ts.map +0 -1
- package/dist/cli/remote-decision-keys.js +0 -59
- package/dist/cli/remote-decision-keys.js.map +0 -1
- package/dist/cli/resource-config-command.d.ts +0 -9
- package/dist/cli/resource-config-command.d.ts.map +0 -1
- package/dist/cli/resource-config-command.js +0 -295
- package/dist/cli/resource-config-command.js.map +0 -1
- package/dist/cli/runtime-toolchain.d.ts +0 -35
- package/dist/cli/runtime-toolchain.d.ts.map +0 -1
- package/dist/cli/runtime-toolchain.js +0 -184
- package/dist/cli/runtime-toolchain.js.map +0 -1
- package/dist/cli/service-commands.d.ts +0 -21
- package/dist/cli/service-commands.d.ts.map +0 -1
- package/dist/cli/service-commands.js +0 -295
- package/dist/cli/service-commands.js.map +0 -1
- package/dist/cli/session-commands.d.ts +0 -5
- package/dist/cli/session-commands.d.ts.map +0 -1
- package/dist/cli/session-commands.js +0 -237
- package/dist/cli/session-commands.js.map +0 -1
- package/dist/cli/setup-command.d.ts +0 -17
- package/dist/cli/setup-command.d.ts.map +0 -1
- package/dist/cli/setup-command.js +0 -278
- package/dist/cli/setup-command.js.map +0 -1
- package/dist/cli/signal-command.d.ts +0 -2
- package/dist/cli/signal-command.d.ts.map +0 -1
- package/dist/cli/signal-command.js +0 -258
- package/dist/cli/signal-command.js.map +0 -1
- package/dist/cli/skills-command.d.ts +0 -2
- package/dist/cli/skills-command.d.ts.map +0 -1
- package/dist/cli/skills-command.js +0 -208
- package/dist/cli/skills-command.js.map +0 -1
- package/dist/cli/supervisor-protocol.d.ts +0 -55
- package/dist/cli/supervisor-protocol.d.ts.map +0 -1
- package/dist/cli/supervisor-protocol.js +0 -5
- package/dist/cli/supervisor-protocol.js.map +0 -1
- package/dist/cli/supervisor-runtime-config.d.ts +0 -4
- package/dist/cli/supervisor-runtime-config.d.ts.map +0 -1
- package/dist/cli/supervisor-runtime-config.js +0 -112
- package/dist/cli/supervisor-runtime-config.js.map +0 -1
- package/dist/cli/supervisor.d.ts +0 -10
- package/dist/cli/supervisor.d.ts.map +0 -1
- package/dist/cli/supervisor.js +0 -252
- package/dist/cli/supervisor.js.map +0 -1
- package/dist/cli/support-packet.d.ts +0 -7
- package/dist/cli/support-packet.d.ts.map +0 -1
- package/dist/cli/support-packet.js +0 -19
- package/dist/cli/support-packet.js.map +0 -1
- package/dist/cli/team-resource-command.d.ts +0 -2
- package/dist/cli/team-resource-command.d.ts.map +0 -1
- package/dist/cli/team-resource-command.js +0 -364
- package/dist/cli/team-resource-command.js.map +0 -1
- package/dist/cli/uninstall-command.d.ts +0 -2
- package/dist/cli/uninstall-command.d.ts.map +0 -1
- package/dist/cli/uninstall-command.js +0 -111
- package/dist/cli/uninstall-command.js.map +0 -1
- package/dist/cli/unlock-command.d.ts +0 -2
- package/dist/cli/unlock-command.d.ts.map +0 -1
- package/dist/cli/unlock-command.js +0 -35
- package/dist/cli/unlock-command.js.map +0 -1
- package/dist/cli/watch-command.d.ts +0 -3
- package/dist/cli/watch-command.d.ts.map +0 -1
- package/dist/cli/watch-command.js +0 -42
- package/dist/cli/watch-command.js.map +0 -1
- package/dist/cli/worker-command.d.ts +0 -3
- package/dist/cli/worker-command.d.ts.map +0 -1
- package/dist/cli/worker-command.js +0 -518
- package/dist/cli/worker-command.js.map +0 -1
- package/dist/cli/worker-process-lock.d.ts +0 -27
- package/dist/cli/worker-process-lock.d.ts.map +0 -1
- package/dist/cli/worker-process-lock.js +0 -150
- package/dist/cli/worker-process-lock.js.map +0 -1
- package/dist/cli/worker-profile.d.ts +0 -90
- package/dist/cli/worker-profile.d.ts.map +0 -1
- package/dist/cli/worker-profile.js +0 -302
- package/dist/cli/worker-profile.js.map +0 -1
- package/dist/cli/worker-runtime.d.ts +0 -83
- package/dist/cli/worker-runtime.d.ts.map +0 -1
- package/dist/cli/worker-runtime.js +0 -1825
- package/dist/cli/worker-runtime.js.map +0 -1
- package/dist/cli/workflow-commands.d.ts +0 -3
- package/dist/cli/workflow-commands.d.ts.map +0 -1
- package/dist/cli/workflow-commands.js +0 -404
- package/dist/cli/workflow-commands.js.map +0 -1
- package/dist/cli/workflow-contract-resolver.d.ts +0 -13
- package/dist/cli/workflow-contract-resolver.d.ts.map +0 -1
- package/dist/cli/workflow-contract-resolver.js +0 -68
- package/dist/cli/workflow-contract-resolver.js.map +0 -1
- package/dist/cli/workflow-run-json.d.ts +0 -34
- package/dist/cli/workflow-run-json.d.ts.map +0 -1
- package/dist/cli/workflow-run-json.js +0 -118
- package/dist/cli/workflow-run-json.js.map +0 -1
- package/dist/cli/worktree-commands.d.ts +0 -2
- package/dist/cli/worktree-commands.d.ts.map +0 -1
- package/dist/cli/worktree-commands.js +0 -260
- package/dist/cli/worktree-commands.js.map +0 -1
- package/dist/cli/ws-client.d.ts +0 -20
- package/dist/cli/ws-client.d.ts.map +0 -1
- package/dist/cli/ws-client.js +0 -128
- package/dist/cli/ws-client.js.map +0 -1
- package/dist/config-resolution/approval-rules.d.ts +0 -5
- package/dist/config-resolution/approval-rules.d.ts.map +0 -1
- package/dist/config-resolution/approval-rules.js +0 -14
- package/dist/config-resolution/approval-rules.js.map +0 -1
- package/dist/config-resolution/config-writer.d.ts +0 -51
- package/dist/config-resolution/config-writer.d.ts.map +0 -1
- package/dist/config-resolution/config-writer.js +0 -164
- package/dist/config-resolution/config-writer.js.map +0 -1
- package/dist/config-resolution/context-package-manifest.d.ts +0 -3
- package/dist/config-resolution/context-package-manifest.d.ts.map +0 -1
- package/dist/config-resolution/context-package-manifest.js +0 -23
- package/dist/config-resolution/context-package-manifest.js.map +0 -1
- package/dist/config-resolution/discovery.d.ts +0 -18
- package/dist/config-resolution/discovery.d.ts.map +0 -1
- package/dist/config-resolution/discovery.js +0 -225
- package/dist/config-resolution/discovery.js.map +0 -1
- package/dist/config-resolution/index.d.ts +0 -4
- package/dist/config-resolution/index.d.ts.map +0 -1
- package/dist/config-resolution/index.js +0 -4
- package/dist/config-resolution/index.js.map +0 -1
- package/dist/config-resolution/provider-defaults.d.ts +0 -4
- package/dist/config-resolution/provider-defaults.d.ts.map +0 -1
- package/dist/config-resolution/provider-defaults.js +0 -27
- package/dist/config-resolution/provider-defaults.js.map +0 -1
- package/dist/config-resolution/resolver.d.ts +0 -16
- package/dist/config-resolution/resolver.d.ts.map +0 -1
- package/dist/config-resolution/resolver.js +0 -329
- package/dist/config-resolution/resolver.js.map +0 -1
- package/dist/config-resolution/schema.d.ts +0 -127
- package/dist/config-resolution/schema.d.ts.map +0 -1
- package/dist/config-resolution/schema.js +0 -189
- package/dist/config-resolution/schema.js.map +0 -1
- package/dist/config-resolution/stable-json.d.ts +0 -3
- package/dist/config-resolution/stable-json.d.ts.map +0 -1
- package/dist/config-resolution/stable-json.js +0 -18
- package/dist/config-resolution/stable-json.js.map +0 -1
- package/dist/config-resolution/types.d.ts +0 -134
- package/dist/config-resolution/types.d.ts.map +0 -1
- package/dist/config-resolution/types.js +0 -5
- package/dist/config-resolution/types.js.map +0 -1
- package/dist/context/local-edge-auto-sync.d.ts +0 -17
- package/dist/context/local-edge-auto-sync.d.ts.map +0 -1
- package/dist/context/local-edge-auto-sync.js +0 -94
- package/dist/context/local-edge-auto-sync.js.map +0 -1
- package/dist/context/local-edge-candidates.d.ts +0 -58
- package/dist/context/local-edge-candidates.d.ts.map +0 -1
- package/dist/context/local-edge-candidates.js +0 -276
- package/dist/context/local-edge-candidates.js.map +0 -1
- package/dist/context/local-edge-crypto.d.ts +0 -28
- package/dist/context/local-edge-crypto.d.ts.map +0 -1
- package/dist/context/local-edge-crypto.js +0 -76
- package/dist/context/local-edge-crypto.js.map +0 -1
- package/dist/context/local-edge-decision-applications.d.ts +0 -13
- package/dist/context/local-edge-decision-applications.d.ts.map +0 -1
- package/dist/context/local-edge-decision-applications.js +0 -78
- package/dist/context/local-edge-decision-applications.js.map +0 -1
- package/dist/context/local-edge-decision-signature.d.ts +0 -3
- package/dist/context/local-edge-decision-signature.d.ts.map +0 -1
- package/dist/context/local-edge-decision-signature.js +0 -67
- package/dist/context/local-edge-decision-signature.js.map +0 -1
- package/dist/context/local-edge-engine.d.ts +0 -38
- package/dist/context/local-edge-engine.d.ts.map +0 -1
- package/dist/context/local-edge-engine.js +0 -138
- package/dist/context/local-edge-engine.js.map +0 -1
- package/dist/context/local-edge-key-store.d.ts +0 -4
- package/dist/context/local-edge-key-store.d.ts.map +0 -1
- package/dist/context/local-edge-key-store.js +0 -21
- package/dist/context/local-edge-key-store.js.map +0 -1
- package/dist/context/local-edge-metadata.d.ts +0 -8
- package/dist/context/local-edge-metadata.d.ts.map +0 -1
- package/dist/context/local-edge-metadata.js +0 -105
- package/dist/context/local-edge-metadata.js.map +0 -1
- package/dist/context/local-edge-paths.d.ts +0 -4
- package/dist/context/local-edge-paths.d.ts.map +0 -1
- package/dist/context/local-edge-paths.js +0 -11
- package/dist/context/local-edge-paths.js.map +0 -1
- package/dist/context/local-edge-store.d.ts +0 -137
- package/dist/context/local-edge-store.d.ts.map +0 -1
- package/dist/context/local-edge-store.js +0 -284
- package/dist/context/local-edge-store.js.map +0 -1
- package/dist/context/local-edge-sync.d.ts +0 -104
- package/dist/context/local-edge-sync.d.ts.map +0 -1
- package/dist/context/local-edge-sync.js +0 -716
- package/dist/context/local-edge-sync.js.map +0 -1
- package/dist/context/local-edge-types.d.ts +0 -330
- package/dist/context/local-edge-types.d.ts.map +0 -1
- package/dist/context/local-edge-types.js +0 -5
- package/dist/context/local-edge-types.js.map +0 -1
- package/dist/context-providers/confluence-provider.d.ts +0 -3
- package/dist/context-providers/confluence-provider.d.ts.map +0 -1
- package/dist/context-providers/confluence-provider.js +0 -170
- package/dist/context-providers/confluence-provider.js.map +0 -1
- package/dist/context-providers/github-repo-provider.d.ts +0 -3
- package/dist/context-providers/github-repo-provider.d.ts.map +0 -1
- package/dist/context-providers/github-repo-provider.js +0 -313
- package/dist/context-providers/github-repo-provider.js.map +0 -1
- package/dist/context-providers/notion-provider.d.ts +0 -3
- package/dist/context-providers/notion-provider.d.ts.map +0 -1
- package/dist/context-providers/notion-provider.js +0 -157
- package/dist/context-providers/notion-provider.js.map +0 -1
- package/dist/context-providers/registry.d.ts +0 -5
- package/dist/context-providers/registry.d.ts.map +0 -1
- package/dist/context-providers/registry.js +0 -19
- package/dist/context-providers/registry.js.map +0 -1
- package/dist/context-providers/repo-docs-provider.d.ts +0 -19
- package/dist/context-providers/repo-docs-provider.d.ts.map +0 -1
- package/dist/context-providers/repo-docs-provider.js +0 -188
- package/dist/context-providers/repo-docs-provider.js.map +0 -1
- package/dist/context-providers/types.d.ts +0 -75
- package/dist/context-providers/types.d.ts.map +0 -1
- package/dist/context-providers/types.js +0 -2
- package/dist/context-providers/types.js.map +0 -1
- package/dist/context-providers/viewport-vault-provider.d.ts +0 -3
- package/dist/context-providers/viewport-vault-provider.d.ts.map +0 -1
- package/dist/context-providers/viewport-vault-provider.js +0 -84
- package/dist/context-providers/viewport-vault-provider.js.map +0 -1
- package/dist/core/agent-registry.d.ts +0 -130
- package/dist/core/agent-registry.d.ts.map +0 -1
- package/dist/core/agent-registry.js +0 -131
- package/dist/core/agent-registry.js.map +0 -1
- package/dist/core/config-schema.d.ts +0 -230
- package/dist/core/config-schema.d.ts.map +0 -1
- package/dist/core/config-schema.js +0 -175
- package/dist/core/config-schema.js.map +0 -1
- package/dist/core/config.d.ts +0 -305
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -453
- package/dist/core/config.js.map +0 -1
- package/dist/core/daemon.d.ts +0 -147
- package/dist/core/daemon.d.ts.map +0 -1
- package/dist/core/daemon.js +0 -275
- package/dist/core/daemon.js.map +0 -1
- package/dist/core/discovered-sessions.d.ts +0 -7
- package/dist/core/discovered-sessions.d.ts.map +0 -1
- package/dist/core/discovered-sessions.js +0 -44
- package/dist/core/discovered-sessions.js.map +0 -1
- package/dist/core/error-codes.d.ts +0 -32
- package/dist/core/error-codes.d.ts.map +0 -1
- package/dist/core/error-codes.js +0 -31
- package/dist/core/error-codes.js.map +0 -1
- package/dist/core/errors.d.ts +0 -16
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -45
- package/dist/core/errors.js.map +0 -1
- package/dist/core/events.d.ts +0 -213
- package/dist/core/events.d.ts.map +0 -1
- package/dist/core/events.js +0 -61
- package/dist/core/events.js.map +0 -1
- package/dist/core/interfaces.d.ts +0 -304
- package/dist/core/interfaces.d.ts.map +0 -1
- package/dist/core/interfaces.js +0 -9
- package/dist/core/interfaces.js.map +0 -1
- package/dist/core/logger.d.ts +0 -11
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -23
- package/dist/core/logger.js.map +0 -1
- package/dist/core/machine-name.d.ts +0 -3
- package/dist/core/machine-name.d.ts.map +0 -1
- package/dist/core/machine-name.js +0 -11
- package/dist/core/machine-name.js.map +0 -1
- package/dist/core/metrics.d.ts +0 -24
- package/dist/core/metrics.d.ts.map +0 -1
- package/dist/core/metrics.js +0 -32
- package/dist/core/metrics.js.map +0 -1
- package/dist/core/output.d.ts +0 -13
- package/dist/core/output.d.ts.map +0 -1
- package/dist/core/output.js +0 -23
- package/dist/core/output.js.map +0 -1
- package/dist/core/package-meta.d.ts +0 -12
- package/dist/core/package-meta.d.ts.map +0 -1
- package/dist/core/package-meta.js +0 -87
- package/dist/core/package-meta.js.map +0 -1
- package/dist/core/permission-coordinator.d.ts +0 -67
- package/dist/core/permission-coordinator.d.ts.map +0 -1
- package/dist/core/permission-coordinator.js +0 -211
- package/dist/core/permission-coordinator.js.map +0 -1
- package/dist/core/profiles.d.ts +0 -43
- package/dist/core/profiles.d.ts.map +0 -1
- package/dist/core/profiles.js +0 -181
- package/dist/core/profiles.js.map +0 -1
- package/dist/core/redaction.d.ts +0 -4
- package/dist/core/redaction.d.ts.map +0 -1
- package/dist/core/redaction.js +0 -76
- package/dist/core/redaction.js.map +0 -1
- package/dist/core/runtime-identity.d.ts +0 -45
- package/dist/core/runtime-identity.d.ts.map +0 -1
- package/dist/core/runtime-identity.js +0 -130
- package/dist/core/runtime-identity.js.map +0 -1
- package/dist/core/session-context-prompt.d.ts +0 -22
- package/dist/core/session-context-prompt.d.ts.map +0 -1
- package/dist/core/session-context-prompt.js +0 -213
- package/dist/core/session-context-prompt.js.map +0 -1
- package/dist/core/session-discovery-runner.d.ts +0 -11
- package/dist/core/session-discovery-runner.d.ts.map +0 -1
- package/dist/core/session-discovery-runner.js +0 -37
- package/dist/core/session-discovery-runner.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -130
- package/dist/core/session-manager.d.ts.map +0 -1
- package/dist/core/session-manager.js +0 -434
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/session-state-file.d.ts +0 -20
- package/dist/core/session-state-file.d.ts.map +0 -1
- package/dist/core/session-state-file.js +0 -51
- package/dist/core/session-state-file.js.map +0 -1
- package/dist/core/types.d.ts +0 -290
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -88
- package/dist/core/types.js.map +0 -1
- package/dist/core/workflow-linked-discovery.d.ts +0 -17
- package/dist/core/workflow-linked-discovery.d.ts.map +0 -1
- package/dist/core/workflow-linked-discovery.js +0 -53
- package/dist/core/workflow-linked-discovery.js.map +0 -1
- package/dist/directories/manager.d.ts +0 -33
- package/dist/directories/manager.d.ts.map +0 -1
- package/dist/directories/manager.js +0 -129
- package/dist/directories/manager.js.map +0 -1
- package/dist/discovery/claude.d.ts +0 -29
- package/dist/discovery/claude.d.ts.map +0 -1
- package/dist/discovery/claude.js +0 -66
- package/dist/discovery/claude.js.map +0 -1
- package/dist/discovery/codex-parser.d.ts +0 -20
- package/dist/discovery/codex-parser.d.ts.map +0 -1
- package/dist/discovery/codex-parser.js +0 -378
- package/dist/discovery/codex-parser.js.map +0 -1
- package/dist/discovery/codex-summary.d.ts +0 -6
- package/dist/discovery/codex-summary.d.ts.map +0 -1
- package/dist/discovery/codex-summary.js +0 -27
- package/dist/discovery/codex-summary.js.map +0 -1
- package/dist/discovery/codex.d.ts +0 -32
- package/dist/discovery/codex.d.ts.map +0 -1
- package/dist/discovery/codex.js +0 -206
- package/dist/discovery/codex.js.map +0 -1
- package/dist/discovery/dedupe.d.ts +0 -3
- package/dist/discovery/dedupe.d.ts.map +0 -1
- package/dist/discovery/dedupe.js +0 -13
- package/dist/discovery/dedupe.js.map +0 -1
- package/dist/discovery/gemini.d.ts +0 -15
- package/dist/discovery/gemini.d.ts.map +0 -1
- package/dist/discovery/gemini.js +0 -151
- package/dist/discovery/gemini.js.map +0 -1
- package/dist/discovery/jsonl-entry-parser.d.ts +0 -74
- package/dist/discovery/jsonl-entry-parser.d.ts.map +0 -1
- package/dist/discovery/jsonl-entry-parser.js +0 -1034
- package/dist/discovery/jsonl-entry-parser.js.map +0 -1
- package/dist/discovery/jsonl-paths.d.ts +0 -17
- package/dist/discovery/jsonl-paths.d.ts.map +0 -1
- package/dist/discovery/jsonl-paths.js +0 -56
- package/dist/discovery/jsonl-paths.js.map +0 -1
- package/dist/discovery/jsonl-reader.d.ts +0 -121
- package/dist/discovery/jsonl-reader.d.ts.map +0 -1
- package/dist/discovery/jsonl-reader.js +0 -458
- package/dist/discovery/jsonl-reader.js.map +0 -1
- package/dist/discovery/watcher.d.ts +0 -29
- package/dist/discovery/watcher.d.ts.map +0 -1
- package/dist/discovery/watcher.js +0 -426
- package/dist/discovery/watcher.js.map +0 -1
- package/dist/hooks/capabilities.d.ts +0 -17
- package/dist/hooks/capabilities.d.ts.map +0 -1
- package/dist/hooks/capabilities.js +0 -114
- package/dist/hooks/capabilities.js.map +0 -1
- package/dist/hooks/context-injector.d.ts +0 -7
- package/dist/hooks/context-injector.d.ts.map +0 -1
- package/dist/hooks/context-injector.js +0 -91
- package/dist/hooks/context-injector.js.map +0 -1
- package/dist/hooks/ephemeral-plan-drafts.d.ts +0 -34
- package/dist/hooks/ephemeral-plan-drafts.d.ts.map +0 -1
- package/dist/hooks/ephemeral-plan-drafts.js +0 -62
- package/dist/hooks/ephemeral-plan-drafts.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -12
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -9
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/installers/base.d.ts +0 -27
- package/dist/hooks/installers/base.d.ts.map +0 -1
- package/dist/hooks/installers/base.js +0 -9
- package/dist/hooks/installers/base.js.map +0 -1
- package/dist/hooks/installers/claude.d.ts +0 -18
- package/dist/hooks/installers/claude.d.ts.map +0 -1
- package/dist/hooks/installers/claude.js +0 -146
- package/dist/hooks/installers/claude.js.map +0 -1
- package/dist/hooks/plan-extractor.d.ts +0 -20
- package/dist/hooks/plan-extractor.d.ts.map +0 -1
- package/dist/hooks/plan-extractor.js +0 -128
- package/dist/hooks/plan-extractor.js.map +0 -1
- package/dist/hooks/platform-plan-sync.d.ts +0 -24
- package/dist/hooks/platform-plan-sync.d.ts.map +0 -1
- package/dist/hooks/platform-plan-sync.js +0 -115
- package/dist/hooks/platform-plan-sync.js.map +0 -1
- package/dist/hooks/router.d.ts +0 -64
- package/dist/hooks/router.d.ts.map +0 -1
- package/dist/hooks/router.js +0 -245
- package/dist/hooks/router.js.map +0 -1
- package/dist/hooks/specific-events.d.ts +0 -11
- package/dist/hooks/specific-events.d.ts.map +0 -1
- package/dist/hooks/specific-events.js +0 -201
- package/dist/hooks/specific-events.js.map +0 -1
- package/dist/hooks/supervision.d.ts +0 -29
- package/dist/hooks/supervision.d.ts.map +0 -1
- package/dist/hooks/supervision.js +0 -79
- package/dist/hooks/supervision.js.map +0 -1
- package/dist/hooks/trusted-edge-plan-artifacts.d.ts +0 -118
- package/dist/hooks/trusted-edge-plan-artifacts.d.ts.map +0 -1
- package/dist/hooks/trusted-edge-plan-artifacts.js +0 -386
- package/dist/hooks/trusted-edge-plan-artifacts.js.map +0 -1
- package/dist/hooks/types.d.ts +0 -204
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks/types.js +0 -184
- package/dist/hooks/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/permissions/engine.d.ts +0 -23
- package/dist/permissions/engine.d.ts.map +0 -1
- package/dist/permissions/engine.js +0 -43
- package/dist/permissions/engine.js.map +0 -1
- package/dist/plugins/loader.d.ts +0 -44
- package/dist/plugins/loader.d.ts.map +0 -1
- package/dist/plugins/loader.js +0 -200
- package/dist/plugins/loader.js.map +0 -1
- package/dist/relay/bridge-backoff.d.ts +0 -3
- package/dist/relay/bridge-backoff.d.ts.map +0 -1
- package/dist/relay/bridge-backoff.js +0 -10
- package/dist/relay/bridge-backoff.js.map +0 -1
- package/dist/relay/bridge-connections.d.ts +0 -26
- package/dist/relay/bridge-connections.d.ts.map +0 -1
- package/dist/relay/bridge-connections.js +0 -34
- package/dist/relay/bridge-connections.js.map +0 -1
- package/dist/relay/bridge-constants.d.ts +0 -12
- package/dist/relay/bridge-constants.d.ts.map +0 -1
- package/dist/relay/bridge-constants.js +0 -12
- package/dist/relay/bridge-constants.js.map +0 -1
- package/dist/relay/bridge-crypto.d.ts +0 -19
- package/dist/relay/bridge-crypto.d.ts.map +0 -1
- package/dist/relay/bridge-crypto.js +0 -72
- package/dist/relay/bridge-crypto.js.map +0 -1
- package/dist/relay/bridge-daemon-key-registration.d.ts +0 -18
- package/dist/relay/bridge-daemon-key-registration.d.ts.map +0 -1
- package/dist/relay/bridge-daemon-key-registration.js +0 -94
- package/dist/relay/bridge-daemon-key-registration.js.map +0 -1
- package/dist/relay/bridge-errors.d.ts +0 -8
- package/dist/relay/bridge-errors.d.ts.map +0 -1
- package/dist/relay/bridge-errors.js +0 -23
- package/dist/relay/bridge-errors.js.map +0 -1
- package/dist/relay/bridge-frame-logger.d.ts +0 -2
- package/dist/relay/bridge-frame-logger.d.ts.map +0 -1
- package/dist/relay/bridge-frame-logger.js +0 -37
- package/dist/relay/bridge-frame-logger.js.map +0 -1
- package/dist/relay/bridge-handshake-profile.d.ts +0 -3
- package/dist/relay/bridge-handshake-profile.d.ts.map +0 -1
- package/dist/relay/bridge-handshake-profile.js +0 -7
- package/dist/relay/bridge-handshake-profile.js.map +0 -1
- package/dist/relay/bridge-identity-store.d.ts +0 -9
- package/dist/relay/bridge-identity-store.d.ts.map +0 -1
- package/dist/relay/bridge-identity-store.js +0 -77
- package/dist/relay/bridge-identity-store.js.map +0 -1
- package/dist/relay/bridge-jwt.d.ts +0 -18
- package/dist/relay/bridge-jwt.d.ts.map +0 -1
- package/dist/relay/bridge-jwt.js +0 -130
- package/dist/relay/bridge-jwt.js.map +0 -1
- package/dist/relay/bridge-key-exchange.d.ts +0 -46
- package/dist/relay/bridge-key-exchange.d.ts.map +0 -1
- package/dist/relay/bridge-key-exchange.js +0 -186
- package/dist/relay/bridge-key-exchange.js.map +0 -1
- package/dist/relay/bridge-network.d.ts +0 -12
- package/dist/relay/bridge-network.d.ts.map +0 -1
- package/dist/relay/bridge-network.js +0 -90
- package/dist/relay/bridge-network.js.map +0 -1
- package/dist/relay/bridge-noise-v3.d.ts +0 -74
- package/dist/relay/bridge-noise-v3.d.ts.map +0 -1
- package/dist/relay/bridge-noise-v3.js +0 -406
- package/dist/relay/bridge-noise-v3.js.map +0 -1
- package/dist/relay/bridge-org-routing-filter.d.ts +0 -8
- package/dist/relay/bridge-org-routing-filter.d.ts.map +0 -1
- package/dist/relay/bridge-org-routing-filter.js +0 -129
- package/dist/relay/bridge-org-routing-filter.js.map +0 -1
- package/dist/relay/bridge-pairing-channel.d.ts +0 -12
- package/dist/relay/bridge-pairing-channel.d.ts.map +0 -1
- package/dist/relay/bridge-pairing-channel.js +0 -30
- package/dist/relay/bridge-pairing-channel.js.map +0 -1
- package/dist/relay/bridge-pairing-control-handler.d.ts +0 -26
- package/dist/relay/bridge-pairing-control-handler.d.ts.map +0 -1
- package/dist/relay/bridge-pairing-control-handler.js +0 -136
- package/dist/relay/bridge-pairing-control-handler.js.map +0 -1
- package/dist/relay/bridge-relay-sessions.d.ts +0 -45
- package/dist/relay/bridge-relay-sessions.d.ts.map +0 -1
- package/dist/relay/bridge-relay-sessions.js +0 -88
- package/dist/relay/bridge-relay-sessions.js.map +0 -1
- package/dist/relay/bridge-token-issuer.d.ts +0 -33
- package/dist/relay/bridge-token-issuer.d.ts.map +0 -1
- package/dist/relay/bridge-token-issuer.js +0 -173
- package/dist/relay/bridge-token-issuer.js.map +0 -1
- package/dist/relay/daemon-relay-bridge.d.ts +0 -92
- package/dist/relay/daemon-relay-bridge.d.ts.map +0 -1
- package/dist/relay/daemon-relay-bridge.js +0 -549
- package/dist/relay/daemon-relay-bridge.js.map +0 -1
- package/dist/relay/relay-control-frames.d.ts +0 -31
- package/dist/relay/relay-control-frames.d.ts.map +0 -1
- package/dist/relay/relay-control-frames.js +0 -65
- package/dist/relay/relay-control-frames.js.map +0 -1
- package/dist/security/child-env.d.ts +0 -3
- package/dist/security/child-env.d.ts.map +0 -1
- package/dist/security/child-env.js +0 -44
- package/dist/security/child-env.js.map +0 -1
- package/dist/security/epoch-enrollment.d.ts +0 -48
- package/dist/security/epoch-enrollment.d.ts.map +0 -1
- package/dist/security/epoch-enrollment.js +0 -290
- package/dist/security/epoch-enrollment.js.map +0 -1
- package/dist/security/epoch-protocol.d.ts +0 -181
- package/dist/security/epoch-protocol.d.ts.map +0 -1
- package/dist/security/epoch-protocol.js +0 -285
- package/dist/security/epoch-protocol.js.map +0 -1
- package/dist/security/epoch-public-pins.d.ts +0 -19
- package/dist/security/epoch-public-pins.d.ts.map +0 -1
- package/dist/security/epoch-public-pins.js +0 -129
- package/dist/security/epoch-public-pins.js.map +0 -1
- package/dist/security/epoch-recovery.d.ts +0 -56
- package/dist/security/epoch-recovery.d.ts.map +0 -1
- package/dist/security/epoch-recovery.js +0 -314
- package/dist/security/epoch-recovery.js.map +0 -1
- package/dist/security/epoch-store.d.ts +0 -111
- package/dist/security/epoch-store.d.ts.map +0 -1
- package/dist/security/epoch-store.js +0 -224
- package/dist/security/epoch-store.js.map +0 -1
- package/dist/security/epoch-sync.d.ts +0 -47
- package/dist/security/epoch-sync.d.ts.map +0 -1
- package/dist/security/epoch-sync.js +0 -371
- package/dist/security/epoch-sync.js.map +0 -1
- package/dist/security/team-epoch-grant-payloads.d.ts +0 -44
- package/dist/security/team-epoch-grant-payloads.d.ts.map +0 -1
- package/dist/security/team-epoch-grant-payloads.js +0 -100
- package/dist/security/team-epoch-grant-payloads.js.map +0 -1
- package/dist/security/team-epoch-grants.d.ts +0 -31
- package/dist/security/team-epoch-grants.d.ts.map +0 -1
- package/dist/security/team-epoch-grants.js +0 -194
- package/dist/security/team-epoch-grants.js.map +0 -1
- package/dist/server/auth.d.ts +0 -33
- package/dist/server/auth.d.ts.map +0 -1
- package/dist/server/auth.js +0 -82
- package/dist/server/auth.js.map +0 -1
- package/dist/server/context-preview-service.d.ts +0 -26
- package/dist/server/context-preview-service.d.ts.map +0 -1
- package/dist/server/context-preview-service.js +0 -71
- package/dist/server/context-preview-service.js.map +0 -1
- package/dist/server/discovered-session-window.d.ts +0 -4
- package/dist/server/discovered-session-window.d.ts.map +0 -1
- package/dist/server/discovered-session-window.js +0 -5
- package/dist/server/discovered-session-window.js.map +0 -1
- package/dist/server/discovered-watch-key.d.ts +0 -5
- package/dist/server/discovered-watch-key.d.ts.map +0 -1
- package/dist/server/discovered-watch-key.js +0 -31
- package/dist/server/discovered-watch-key.js.map +0 -1
- package/dist/server/hello-builder.d.ts +0 -102
- package/dist/server/hello-builder.d.ts.map +0 -1
- package/dist/server/hello-builder.js +0 -227
- package/dist/server/hello-builder.js.map +0 -1
- package/dist/server/http-context-routes.d.ts +0 -4
- package/dist/server/http-context-routes.d.ts.map +0 -1
- package/dist/server/http-context-routes.js +0 -283
- package/dist/server/http-context-routes.js.map +0 -1
- package/dist/server/http-health-routes.d.ts +0 -11
- package/dist/server/http-health-routes.d.ts.map +0 -1
- package/dist/server/http-health-routes.js +0 -69
- package/dist/server/http-health-routes.js.map +0 -1
- package/dist/server/http-lifecycle-routes.d.ts +0 -6
- package/dist/server/http-lifecycle-routes.d.ts.map +0 -1
- package/dist/server/http-lifecycle-routes.js +0 -17
- package/dist/server/http-lifecycle-routes.js.map +0 -1
- package/dist/server/http-pairing-routes.d.ts +0 -14
- package/dist/server/http-pairing-routes.d.ts.map +0 -1
- package/dist/server/http-pairing-routes.js +0 -110
- package/dist/server/http-pairing-routes.js.map +0 -1
- package/dist/server/http-request-schemas.d.ts +0 -152
- package/dist/server/http-request-schemas.d.ts.map +0 -1
- package/dist/server/http-request-schemas.js +0 -183
- package/dist/server/http-request-schemas.js.map +0 -1
- package/dist/server/http-route-types.d.ts +0 -11
- package/dist/server/http-route-types.d.ts.map +0 -1
- package/dist/server/http-route-types.js +0 -2
- package/dist/server/http-route-types.js.map +0 -1
- package/dist/server/http-server.d.ts +0 -26
- package/dist/server/http-server.d.ts.map +0 -1
- package/dist/server/http-server.js +0 -400
- package/dist/server/http-server.js.map +0 -1
- package/dist/server/http-session-routes.d.ts +0 -4
- package/dist/server/http-session-routes.d.ts.map +0 -1
- package/dist/server/http-session-routes.js +0 -234
- package/dist/server/http-session-routes.js.map +0 -1
- package/dist/server/message-normalizers.d.ts +0 -11
- package/dist/server/message-normalizers.d.ts.map +0 -1
- package/dist/server/message-normalizers.js +0 -104
- package/dist/server/message-normalizers.js.map +0 -1
- package/dist/server/pairing-file-store.d.ts +0 -10
- package/dist/server/pairing-file-store.d.ts.map +0 -1
- package/dist/server/pairing-file-store.js +0 -69
- package/dist/server/pairing-file-store.js.map +0 -1
- package/dist/server/pairing-identity-store.d.ts +0 -5
- package/dist/server/pairing-identity-store.d.ts.map +0 -1
- package/dist/server/pairing-identity-store.js +0 -121
- package/dist/server/pairing-identity-store.js.map +0 -1
- package/dist/server/pairing-offer-types.d.ts +0 -98
- package/dist/server/pairing-offer-types.d.ts.map +0 -1
- package/dist/server/pairing-offer-types.js +0 -2
- package/dist/server/pairing-offer-types.js.map +0 -1
- package/dist/server/pairing-offers.d.ts +0 -29
- package/dist/server/pairing-offers.d.ts.map +0 -1
- package/dist/server/pairing-offers.js +0 -351
- package/dist/server/pairing-offers.js.map +0 -1
- package/dist/server/pairing-peer-bindings.d.ts +0 -18
- package/dist/server/pairing-peer-bindings.d.ts.map +0 -1
- package/dist/server/pairing-peer-bindings.js +0 -198
- package/dist/server/pairing-peer-bindings.js.map +0 -1
- package/dist/server/rate-limiter.d.ts +0 -21
- package/dist/server/rate-limiter.d.ts.map +0 -1
- package/dist/server/rate-limiter.js +0 -70
- package/dist/server/rate-limiter.js.map +0 -1
- package/dist/server/replay-events.d.ts +0 -6
- package/dist/server/replay-events.d.ts.map +0 -1
- package/dist/server/replay-events.js +0 -104
- package/dist/server/replay-events.js.map +0 -1
- package/dist/server/replay-persistence.d.ts +0 -18
- package/dist/server/replay-persistence.d.ts.map +0 -1
- package/dist/server/replay-persistence.js +0 -123
- package/dist/server/replay-persistence.js.map +0 -1
- package/dist/server/replay-types.d.ts +0 -25
- package/dist/server/replay-types.d.ts.map +0 -1
- package/dist/server/replay-types.js +0 -2
- package/dist/server/replay-types.js.map +0 -1
- package/dist/server/ring-buffer.d.ts +0 -48
- package/dist/server/ring-buffer.d.ts.map +0 -1
- package/dist/server/ring-buffer.js +0 -235
- package/dist/server/ring-buffer.js.map +0 -1
- package/dist/server/security.d.ts +0 -22
- package/dist/server/security.d.ts.map +0 -1
- package/dist/server/security.js +0 -127
- package/dist/server/security.js.map +0 -1
- package/dist/server/session-message-reader.d.ts +0 -15
- package/dist/server/session-message-reader.d.ts.map +0 -1
- package/dist/server/session-message-reader.js +0 -107
- package/dist/server/session-message-reader.js.map +0 -1
- package/dist/server/trusted-edge-command-capability.d.ts +0 -15
- package/dist/server/trusted-edge-command-capability.d.ts.map +0 -1
- package/dist/server/trusted-edge-command-capability.js +0 -118
- package/dist/server/trusted-edge-command-capability.js.map +0 -1
- package/dist/server/ws-command-handlers.d.ts +0 -28
- package/dist/server/ws-command-handlers.d.ts.map +0 -1
- package/dist/server/ws-command-handlers.js +0 -489
- package/dist/server/ws-command-handlers.js.map +0 -1
- package/dist/server/ws-daemon-event-bridge.d.ts +0 -22
- package/dist/server/ws-daemon-event-bridge.d.ts.map +0 -1
- package/dist/server/ws-daemon-event-bridge.js +0 -392
- package/dist/server/ws-daemon-event-bridge.js.map +0 -1
- package/dist/server/ws-limits.d.ts +0 -2
- package/dist/server/ws-limits.d.ts.map +0 -1
- package/dist/server/ws-limits.js +0 -12
- package/dist/server/ws-limits.js.map +0 -1
- package/dist/server/ws-protocol.d.ts +0 -858
- package/dist/server/ws-protocol.d.ts.map +0 -1
- package/dist/server/ws-protocol.js +0 -417
- package/dist/server/ws-protocol.js.map +0 -1
- package/dist/server/ws-server.d.ts +0 -26
- package/dist/server/ws-server.d.ts.map +0 -1
- package/dist/server/ws-server.js +0 -314
- package/dist/server/ws-server.js.map +0 -1
- package/dist/server/ws-session-command-handlers.d.ts +0 -29
- package/dist/server/ws-session-command-handlers.d.ts.map +0 -1
- package/dist/server/ws-session-command-handlers.js +0 -320
- package/dist/server/ws-session-command-handlers.js.map +0 -1
- package/dist/server/ws-workflow-command-handlers.d.ts +0 -17
- package/dist/server/ws-workflow-command-handlers.d.ts.map +0 -1
- package/dist/server/ws-workflow-command-handlers.js +0 -68
- package/dist/server/ws-workflow-command-handlers.js.map +0 -1
- package/dist/session-enrichment/git.d.ts +0 -9
- package/dist/session-enrichment/git.d.ts.map +0 -1
- package/dist/session-enrichment/git.js +0 -48
- package/dist/session-enrichment/git.js.map +0 -1
- package/dist/startup-agents.d.ts +0 -6
- package/dist/startup-agents.d.ts.map +0 -1
- package/dist/startup-agents.js +0 -102
- package/dist/startup-agents.js.map +0 -1
- package/dist/startup-prereqs.d.ts +0 -29
- package/dist/startup-prereqs.d.ts.map +0 -1
- package/dist/startup-prereqs.js +0 -209
- package/dist/startup-prereqs.js.map +0 -1
- package/dist/startup-relay-security.d.ts +0 -3
- package/dist/startup-relay-security.d.ts.map +0 -1
- package/dist/startup-relay-security.js +0 -61
- package/dist/startup-relay-security.js.map +0 -1
- package/dist/startup-session-persistence.d.ts +0 -7
- package/dist/startup-session-persistence.d.ts.map +0 -1
- package/dist/startup-session-persistence.js +0 -72
- package/dist/startup-session-persistence.js.map +0 -1
- package/dist/startup-watchers.d.ts +0 -7
- package/dist/startup-watchers.d.ts.map +0 -1
- package/dist/startup-watchers.js +0 -196
- package/dist/startup-watchers.js.map +0 -1
- package/dist/startup.d.ts +0 -29
- package/dist/startup.d.ts.map +0 -1
- package/dist/startup.js +0 -549
- package/dist/startup.js.map +0 -1
- package/dist/tracking/git-tracker.d.ts +0 -56
- package/dist/tracking/git-tracker.d.ts.map +0 -1
- package/dist/tracking/git-tracker.js +0 -342
- package/dist/tracking/git-tracker.js.map +0 -1
- package/dist/tracking/noop-tracker.d.ts +0 -27
- package/dist/tracking/noop-tracker.d.ts.map +0 -1
- package/dist/tracking/noop-tracker.js +0 -42
- package/dist/tracking/noop-tracker.js.map +0 -1
- package/dist/workflows/action-adapters.d.ts +0 -10
- package/dist/workflows/action-adapters.d.ts.map +0 -1
- package/dist/workflows/action-adapters.js +0 -203
- package/dist/workflows/action-adapters.js.map +0 -1
- package/dist/workflows/action-digest.d.ts +0 -8
- package/dist/workflows/action-digest.d.ts.map +0 -1
- package/dist/workflows/action-digest.js +0 -36
- package/dist/workflows/action-digest.js.map +0 -1
- package/dist/workflows/action-execution-ledger.d.ts +0 -8
- package/dist/workflows/action-execution-ledger.d.ts.map +0 -1
- package/dist/workflows/action-execution-ledger.js +0 -64
- package/dist/workflows/action-execution-ledger.js.map +0 -1
- package/dist/workflows/action-policy.d.ts +0 -3
- package/dist/workflows/action-policy.d.ts.map +0 -1
- package/dist/workflows/action-policy.js +0 -13
- package/dist/workflows/action-policy.js.map +0 -1
- package/dist/workflows/action-provider-adapters.d.ts +0 -17
- package/dist/workflows/action-provider-adapters.d.ts.map +0 -1
- package/dist/workflows/action-provider-adapters.js +0 -674
- package/dist/workflows/action-provider-adapters.js.map +0 -1
- package/dist/workflows/action-provider-utils.d.ts +0 -25
- package/dist/workflows/action-provider-utils.d.ts.map +0 -1
- package/dist/workflows/action-provider-utils.js +0 -121
- package/dist/workflows/action-provider-utils.js.map +0 -1
- package/dist/workflows/approval-actor.d.ts +0 -6
- package/dist/workflows/approval-actor.d.ts.map +0 -1
- package/dist/workflows/approval-actor.js +0 -27
- package/dist/workflows/approval-actor.js.map +0 -1
- package/dist/workflows/approval-on-reject.d.ts +0 -17
- package/dist/workflows/approval-on-reject.d.ts.map +0 -1
- package/dist/workflows/approval-on-reject.js +0 -64
- package/dist/workflows/approval-on-reject.js.map +0 -1
- package/dist/workflows/artifact-collector.d.ts +0 -11
- package/dist/workflows/artifact-collector.d.ts.map +0 -1
- package/dist/workflows/artifact-collector.js +0 -59
- package/dist/workflows/artifact-collector.js.map +0 -1
- package/dist/workflows/checkout-node.d.ts +0 -22
- package/dist/workflows/checkout-node.d.ts.map +0 -1
- package/dist/workflows/checkout-node.js +0 -201
- package/dist/workflows/checkout-node.js.map +0 -1
- package/dist/workflows/context-node-resolver.d.ts +0 -51
- package/dist/workflows/context-node-resolver.d.ts.map +0 -1
- package/dist/workflows/context-node-resolver.js +0 -932
- package/dist/workflows/context-node-resolver.js.map +0 -1
- package/dist/workflows/context-update-targets.d.ts +0 -12
- package/dist/workflows/context-update-targets.d.ts.map +0 -1
- package/dist/workflows/context-update-targets.js +0 -52
- package/dist/workflows/context-update-targets.js.map +0 -1
- package/dist/workflows/contract-binding.d.ts +0 -3
- package/dist/workflows/contract-binding.d.ts.map +0 -1
- package/dist/workflows/contract-binding.js +0 -19
- package/dist/workflows/contract-binding.js.map +0 -1
- package/dist/workflows/daemon-session.d.ts +0 -47
- package/dist/workflows/daemon-session.d.ts.map +0 -1
- package/dist/workflows/daemon-session.js +0 -320
- package/dist/workflows/daemon-session.js.map +0 -1
- package/dist/workflows/event-types.d.ts +0 -10
- package/dist/workflows/event-types.d.ts.map +0 -1
- package/dist/workflows/event-types.js +0 -2
- package/dist/workflows/event-types.js.map +0 -1
- package/dist/workflows/expression.d.ts +0 -81
- package/dist/workflows/expression.d.ts.map +0 -1
- package/dist/workflows/expression.js +0 -149
- package/dist/workflows/expression.js.map +0 -1
- package/dist/workflows/git-publish-node.d.ts +0 -43
- package/dist/workflows/git-publish-node.d.ts.map +0 -1
- package/dist/workflows/git-publish-node.js +0 -322
- package/dist/workflows/git-publish-node.js.map +0 -1
- package/dist/workflows/hook-registry.d.ts +0 -24
- package/dist/workflows/hook-registry.d.ts.map +0 -1
- package/dist/workflows/hook-registry.js +0 -52
- package/dist/workflows/hook-registry.js.map +0 -1
- package/dist/workflows/hook-types.d.ts +0 -21
- package/dist/workflows/hook-types.d.ts.map +0 -1
- package/dist/workflows/hook-types.js +0 -2
- package/dist/workflows/hook-types.js.map +0 -1
- package/dist/workflows/inline-agent-types.d.ts +0 -28
- package/dist/workflows/inline-agent-types.d.ts.map +0 -1
- package/dist/workflows/inline-agent-types.js +0 -2
- package/dist/workflows/inline-agent-types.js.map +0 -1
- package/dist/workflows/inline-agents.d.ts +0 -8
- package/dist/workflows/inline-agents.d.ts.map +0 -1
- package/dist/workflows/inline-agents.js +0 -108
- package/dist/workflows/inline-agents.js.map +0 -1
- package/dist/workflows/loop-executor.d.ts +0 -17
- package/dist/workflows/loop-executor.d.ts.map +0 -1
- package/dist/workflows/loop-executor.js +0 -175
- package/dist/workflows/loop-executor.js.map +0 -1
- package/dist/workflows/node-executor.d.ts +0 -31
- package/dist/workflows/node-executor.d.ts.map +0 -1
- package/dist/workflows/node-executor.js +0 -405
- package/dist/workflows/node-executor.js.map +0 -1
- package/dist/workflows/node-registry.d.ts +0 -42
- package/dist/workflows/node-registry.d.ts.map +0 -1
- package/dist/workflows/node-registry.js +0 -931
- package/dist/workflows/node-registry.js.map +0 -1
- package/dist/workflows/parser.d.ts +0 -17
- package/dist/workflows/parser.d.ts.map +0 -1
- package/dist/workflows/parser.js +0 -361
- package/dist/workflows/parser.js.map +0 -1
- package/dist/workflows/platform-command-applier.d.ts +0 -17
- package/dist/workflows/platform-command-applier.d.ts.map +0 -1
- package/dist/workflows/platform-command-applier.js +0 -264
- package/dist/workflows/platform-command-applier.js.map +0 -1
- package/dist/workflows/platform-context-client.d.ts +0 -59
- package/dist/workflows/platform-context-client.d.ts.map +0 -1
- package/dist/workflows/platform-context-client.internal.d.ts +0 -23
- package/dist/workflows/platform-context-client.internal.d.ts.map +0 -1
- package/dist/workflows/platform-context-client.internal.js +0 -124
- package/dist/workflows/platform-context-client.internal.js.map +0 -1
- package/dist/workflows/platform-context-client.js +0 -272
- package/dist/workflows/platform-context-client.js.map +0 -1
- package/dist/workflows/platform-context-client.types.d.ts +0 -41
- package/dist/workflows/platform-context-client.types.d.ts.map +0 -1
- package/dist/workflows/platform-context-client.types.js +0 -2
- package/dist/workflows/platform-context-client.types.js.map +0 -1
- package/dist/workflows/platform-runtime-command.d.ts +0 -40
- package/dist/workflows/platform-runtime-command.d.ts.map +0 -1
- package/dist/workflows/platform-runtime-command.js +0 -104
- package/dist/workflows/platform-runtime-command.js.map +0 -1
- package/dist/workflows/platform-sync-format.d.ts +0 -12
- package/dist/workflows/platform-sync-format.d.ts.map +0 -1
- package/dist/workflows/platform-sync-format.js +0 -60
- package/dist/workflows/platform-sync-format.js.map +0 -1
- package/dist/workflows/platform-sync-payload.d.ts +0 -9
- package/dist/workflows/platform-sync-payload.d.ts.map +0 -1
- package/dist/workflows/platform-sync-payload.js +0 -530
- package/dist/workflows/platform-sync-payload.js.map +0 -1
- package/dist/workflows/platform-sync.d.ts +0 -37
- package/dist/workflows/platform-sync.d.ts.map +0 -1
- package/dist/workflows/platform-sync.js +0 -243
- package/dist/workflows/platform-sync.js.map +0 -1
- package/dist/workflows/plugin-loader.d.ts +0 -28
- package/dist/workflows/plugin-loader.d.ts.map +0 -1
- package/dist/workflows/plugin-loader.js +0 -143
- package/dist/workflows/plugin-loader.js.map +0 -1
- package/dist/workflows/policy-enforcement.d.ts +0 -43
- package/dist/workflows/policy-enforcement.d.ts.map +0 -1
- package/dist/workflows/policy-enforcement.js +0 -0
- package/dist/workflows/policy-enforcement.js.map +0 -1
- package/dist/workflows/preflight.d.ts +0 -9
- package/dist/workflows/preflight.d.ts.map +0 -1
- package/dist/workflows/preflight.js +0 -171
- package/dist/workflows/preflight.js.map +0 -1
- package/dist/workflows/prompt-output.d.ts +0 -10
- package/dist/workflows/prompt-output.d.ts.map +0 -1
- package/dist/workflows/prompt-output.js +0 -93
- package/dist/workflows/prompt-output.js.map +0 -1
- package/dist/workflows/provider-reconciliation.d.ts +0 -28
- package/dist/workflows/provider-reconciliation.d.ts.map +0 -1
- package/dist/workflows/provider-reconciliation.js +0 -218
- package/dist/workflows/provider-reconciliation.js.map +0 -1
- package/dist/workflows/retry-classifier.d.ts +0 -18
- package/dist/workflows/retry-classifier.d.ts.map +0 -1
- package/dist/workflows/retry-classifier.js +0 -30
- package/dist/workflows/retry-classifier.js.map +0 -1
- package/dist/workflows/review-packet.d.ts +0 -3
- package/dist/workflows/review-packet.d.ts.map +0 -1
- package/dist/workflows/review-packet.js +0 -155
- package/dist/workflows/review-packet.js.map +0 -1
- package/dist/workflows/run-preparation.d.ts +0 -24
- package/dist/workflows/run-preparation.d.ts.map +0 -1
- package/dist/workflows/run-preparation.js +0 -258
- package/dist/workflows/run-preparation.js.map +0 -1
- package/dist/workflows/run-receipt-validation.d.ts +0 -29
- package/dist/workflows/run-receipt-validation.d.ts.map +0 -1
- package/dist/workflows/run-receipt-validation.js +0 -106
- package/dist/workflows/run-receipt-validation.js.map +0 -1
- package/dist/workflows/run-types.d.ts +0 -261
- package/dist/workflows/run-types.d.ts.map +0 -1
- package/dist/workflows/run-types.js +0 -2
- package/dist/workflows/run-types.js.map +0 -1
- package/dist/workflows/runner-canceler.d.ts +0 -22
- package/dist/workflows/runner-canceler.d.ts.map +0 -1
- package/dist/workflows/runner-canceler.js +0 -91
- package/dist/workflows/runner-canceler.js.map +0 -1
- package/dist/workflows/runner-hook-events.d.ts +0 -19
- package/dist/workflows/runner-hook-events.d.ts.map +0 -1
- package/dist/workflows/runner-hook-events.js +0 -16
- package/dist/workflows/runner-hook-events.js.map +0 -1
- package/dist/workflows/runner-reconciler.d.ts +0 -19
- package/dist/workflows/runner-reconciler.d.ts.map +0 -1
- package/dist/workflows/runner-reconciler.js +0 -109
- package/dist/workflows/runner-reconciler.js.map +0 -1
- package/dist/workflows/runner-resumer.d.ts +0 -33
- package/dist/workflows/runner-resumer.d.ts.map +0 -1
- package/dist/workflows/runner-resumer.js +0 -81
- package/dist/workflows/runner-resumer.js.map +0 -1
- package/dist/workflows/runner-scheduler.d.ts +0 -38
- package/dist/workflows/runner-scheduler.d.ts.map +0 -1
- package/dist/workflows/runner-scheduler.js +0 -243
- package/dist/workflows/runner-scheduler.js.map +0 -1
- package/dist/workflows/runner-shared.d.ts +0 -21
- package/dist/workflows/runner-shared.d.ts.map +0 -1
- package/dist/workflows/runner-shared.js +0 -92
- package/dist/workflows/runner-shared.js.map +0 -1
- package/dist/workflows/runner.d.ts +0 -49
- package/dist/workflows/runner.d.ts.map +0 -1
- package/dist/workflows/runner.js +0 -661
- package/dist/workflows/runner.js.map +0 -1
- package/dist/workflows/runtime-helpers.d.ts +0 -60
- package/dist/workflows/runtime-helpers.d.ts.map +0 -1
- package/dist/workflows/runtime-helpers.js +0 -267
- package/dist/workflows/runtime-helpers.js.map +0 -1
- package/dist/workflows/session-completion.d.ts +0 -7
- package/dist/workflows/session-completion.d.ts.map +0 -1
- package/dist/workflows/session-completion.js +0 -117
- package/dist/workflows/session-completion.js.map +0 -1
- package/dist/workflows/session-links.d.ts +0 -21
- package/dist/workflows/session-links.d.ts.map +0 -1
- package/dist/workflows/session-links.js +0 -77
- package/dist/workflows/session-links.js.map +0 -1
- package/dist/workflows/session-output.d.ts +0 -30
- package/dist/workflows/session-output.d.ts.map +0 -1
- package/dist/workflows/session-output.js +0 -231
- package/dist/workflows/session-output.js.map +0 -1
- package/dist/workflows/session-policy.d.ts +0 -39
- package/dist/workflows/session-policy.d.ts.map +0 -1
- package/dist/workflows/session-policy.js +0 -93
- package/dist/workflows/session-policy.js.map +0 -1
- package/dist/workflows/shell-abort-registry.d.ts +0 -11
- package/dist/workflows/shell-abort-registry.d.ts.map +0 -1
- package/dist/workflows/shell-abort-registry.js +0 -35
- package/dist/workflows/shell-abort-registry.js.map +0 -1
- package/dist/workflows/store.d.ts +0 -14
- package/dist/workflows/store.d.ts.map +0 -1
- package/dist/workflows/store.js +0 -160
- package/dist/workflows/store.js.map +0 -1
- package/dist/workflows/structured-outputs.d.ts +0 -24
- package/dist/workflows/structured-outputs.d.ts.map +0 -1
- package/dist/workflows/structured-outputs.js +0 -174
- package/dist/workflows/structured-outputs.js.map +0 -1
- package/dist/workflows/subflow-executor.d.ts +0 -15
- package/dist/workflows/subflow-executor.d.ts.map +0 -1
- package/dist/workflows/subflow-executor.js +0 -181
- package/dist/workflows/subflow-executor.js.map +0 -1
- package/dist/workflows/trigger-rule.d.ts +0 -22
- package/dist/workflows/trigger-rule.d.ts.map +0 -1
- package/dist/workflows/trigger-rule.js +0 -57
- package/dist/workflows/trigger-rule.js.map +0 -1
- package/dist/workflows/types.d.ts +0 -418
- package/dist/workflows/types.d.ts.map +0 -1
- package/dist/workflows/types.js +0 -2
- package/dist/workflows/types.js.map +0 -1
- package/dist/workflows/workflow-authority-contract.d.ts +0 -25
- package/dist/workflows/workflow-authority-contract.d.ts.map +0 -1
- package/dist/workflows/workflow-authority-contract.js +0 -389
- package/dist/workflows/workflow-authority-contract.js.map +0 -1
- package/dist/workflows/workflow-executor-schema.d.ts +0 -51
- package/dist/workflows/workflow-executor-schema.d.ts.map +0 -1
- package/dist/workflows/workflow-executor-schema.js +0 -81
- package/dist/workflows/workflow-executor-schema.js.map +0 -1
- package/dist/workflows/workflow-production-schema.d.ts +0 -178
- package/dist/workflows/workflow-production-schema.d.ts.map +0 -1
- package/dist/workflows/workflow-production-schema.js +0 -202
- package/dist/workflows/workflow-production-schema.js.map +0 -1
- package/dist/workflows/workflow-production-types.d.ts +0 -123
- package/dist/workflows/workflow-production-types.d.ts.map +0 -1
- package/dist/workflows/workflow-production-types.js +0 -2
- package/dist/workflows/workflow-production-types.js.map +0 -1
- package/dist/workflows/workflow-schema-common.d.ts +0 -332
- package/dist/workflows/workflow-schema-common.d.ts.map +0 -1
- package/dist/workflows/workflow-schema-common.js +0 -135
- package/dist/workflows/workflow-schema-common.js.map +0 -1
- package/dist/workflows/workflow-schema.d.ts +0 -3037
- package/dist/workflows/workflow-schema.d.ts.map +0 -1
- package/dist/workflows/workflow-schema.js +0 -415
- package/dist/workflows/workflow-schema.js.map +0 -1
- package/dist/workflows/workflow-source.d.ts +0 -3
- package/dist/workflows/workflow-source.d.ts.map +0 -1
- package/dist/workflows/workflow-source.js +0 -29
- package/dist/workflows/workflow-source.js.map +0 -1
- package/docs/README.md +0 -18
- package/docs/configuration.md +0 -248
- package/docs/developer-workflows.md +0 -123
- package/docs/protocol-contract.json +0 -20
- package/docs/protocol-matrix.json +0 -375
- package/docs/protocol-pin.json +0 -5
- package/docs/releasing.md +0 -36
- package/docs/security.md +0 -49
- package/docs/test-vectors/relay-noise-v2.json +0 -42
- package/docs/test-vectors/relay-noise-v3.json +0 -51
- package/docs/testing.md +0 -112
- package/node_modules/@viewportai/context-engine/README.md +0 -33
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/README.md +0 -37
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/bundle-manifest.json +0 -50
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/erase-receipt.json +0 -10
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/event.json +0 -29
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/hpke-key-grant.json +0 -24
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/key-grant.json +0 -21
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/profile.json +0 -12
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/signed-event.json +0 -28
- package/node_modules/@viewportai/context-engine/fixtures/protocol-vectors/standalone-decoder.mjs +0 -124
- package/node_modules/@viewportai/context-engine/package.json +0 -11
- package/node_modules/@viewportai/context-engine/schemas/context_bundle_manifest_v1.schema.json +0 -134
- package/node_modules/@viewportai/context-engine/schemas/context_erase_receipt_v1.schema.json +0 -27
- package/node_modules/@viewportai/context-engine/schemas/context_event_v1.schema.json +0 -216
- package/node_modules/@viewportai/context-engine/schemas/context_key_grant_hpke_draft_01.schema.json +0 -27
- package/node_modules/@viewportai/context-engine/schemas/context_key_grant_v1.schema.json +0 -24
- package/node_modules/@viewportai/context-engine/schemas/context_profile_v1.schema.json +0 -24
- package/node_modules/@viewportai/context-engine/src/cli.js +0 -177
- package/node_modules/@viewportai/context-engine/src/crypto/canonical.js +0 -21
- package/node_modules/@viewportai/context-engine/src/crypto/envelope.js +0 -37
- package/node_modules/@viewportai/context-engine/src/crypto/hpke-grants.js +0 -298
- package/node_modules/@viewportai/context-engine/src/crypto/keys.js +0 -122
- package/node_modules/@viewportai/context-engine/src/crypto/signatures.js +0 -23
- package/node_modules/@viewportai/context-engine/src/index.js +0 -12
- package/node_modules/@viewportai/context-engine/src/protocol/schemas.js +0 -50
- package/node_modules/@viewportai/context-engine/src/repo/access-model.js +0 -170
- package/node_modules/@viewportai/context-engine/src/repo/bundles.js +0 -180
- package/node_modules/@viewportai/context-engine/src/repo/candidates.js +0 -207
- package/node_modules/@viewportai/context-engine/src/repo/devices.js +0 -141
- package/node_modules/@viewportai/context-engine/src/repo/events.js +0 -101
- package/node_modules/@viewportai/context-engine/src/repo/files.js +0 -33
- package/node_modules/@viewportai/context-engine/src/repo/identities.js +0 -132
- package/node_modules/@viewportai/context-engine/src/repo/key-store.js +0 -126
- package/node_modules/@viewportai/context-engine/src/repo/materializer.js +0 -314
- package/node_modules/@viewportai/context-engine/src/repo/membership.js +0 -192
- package/node_modules/@viewportai/context-engine/src/repo/paths.js +0 -25
- package/node_modules/@viewportai/context-engine/src/repo/profiles.js +0 -54
- package/node_modules/@viewportai/context-engine/src/repo/receipts.js +0 -68
- package/node_modules/@viewportai/context-engine/src/repo/sync.js +0 -163
- package/node_modules/@viewportai/context-engine/src/repo/users.js +0 -134
- package/node_modules/@viewportai/context-engine/src/repo/vault.js +0 -548
- package/node_modules/@viewportai/context-engine/src/store/local-semantic.js +0 -69
- package/node_modules/@viewportai/context-engine/src/store/search.js +0 -25
- package/node_modules/@viewportai/context-engine/src/store/sqlite.js +0 -76
- package/schemas/viewport-config-v1.schema.json +0 -213
- package/schemas/workflow-v1.schema.json +0 -510
|
@@ -1,1034 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Single-entry parser (used by both readSessionMessagesRich and tail events)
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
/**
|
|
5
|
-
* Parse a single JSONL entry (already JSON.parsed) into RichSessionMessage blocks.
|
|
6
|
-
* A single entry may produce 0, 1, or many blocks (e.g. an assistant message
|
|
7
|
-
* with text + tool_use + thinking blocks).
|
|
8
|
-
*
|
|
9
|
-
* Extracted from readSessionMessagesRich() so both the full-file reader
|
|
10
|
-
* and the incremental tailer can share the same parsing logic.
|
|
11
|
-
*/
|
|
12
|
-
export function parseJSONLEntry(entry) {
|
|
13
|
-
if (typeof entry !== 'object' || entry === null)
|
|
14
|
-
return [];
|
|
15
|
-
const e = entry;
|
|
16
|
-
return (parseClaudeEntry(e) ??
|
|
17
|
-
parseCodexEventMsgEntry(e) ??
|
|
18
|
-
parseCodexEntry(e) ??
|
|
19
|
-
parseCodexCompactedEntry(e) ??
|
|
20
|
-
parseProviderMetadataEntry(e) ??
|
|
21
|
-
[]);
|
|
22
|
-
}
|
|
23
|
-
function parseClaudeEntry(e) {
|
|
24
|
-
const type = e.type;
|
|
25
|
-
if (type !== 'user' && type !== 'assistant')
|
|
26
|
-
return null;
|
|
27
|
-
const ts = e.timestamp || new Date().toISOString();
|
|
28
|
-
const uuid = e.uuid || '';
|
|
29
|
-
const message = e.message;
|
|
30
|
-
if (!message)
|
|
31
|
-
return [];
|
|
32
|
-
const content = message.content;
|
|
33
|
-
const blocks = [];
|
|
34
|
-
// Simple string content → single text block
|
|
35
|
-
if (typeof content === 'string') {
|
|
36
|
-
if (content) {
|
|
37
|
-
blocks.push(...mapClaudeTextToRichBlocks(type, content, ts, uuid));
|
|
38
|
-
}
|
|
39
|
-
return blocks;
|
|
40
|
-
}
|
|
41
|
-
if (!Array.isArray(content))
|
|
42
|
-
return blocks;
|
|
43
|
-
for (const block of content) {
|
|
44
|
-
if (typeof block === 'string') {
|
|
45
|
-
if (block) {
|
|
46
|
-
blocks.push(...mapClaudeTextToRichBlocks(type, block, ts, uuid));
|
|
47
|
-
}
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
if (typeof block !== 'object' || block === null)
|
|
51
|
-
continue;
|
|
52
|
-
const b = block;
|
|
53
|
-
const blockType = b.type;
|
|
54
|
-
switch (blockType) {
|
|
55
|
-
case 'text':
|
|
56
|
-
if (typeof b.text === 'string' && b.text) {
|
|
57
|
-
blocks.push(...mapClaudeTextToRichBlocks(type, b.text, ts, uuid));
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
case 'thinking':
|
|
61
|
-
if (typeof b.thinking === 'string' && b.thinking) {
|
|
62
|
-
blocks.push({ kind: 'thinking', text: b.thinking, ts, uuid });
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
case 'tool_use':
|
|
66
|
-
blocks.push(...mapClaudeToolUseToRichBlocks({
|
|
67
|
-
toolName: b.name || 'unknown',
|
|
68
|
-
toolId: b.id || '',
|
|
69
|
-
input: typeof b.input === 'object' && b.input !== null
|
|
70
|
-
? b.input
|
|
71
|
-
: {},
|
|
72
|
-
ts,
|
|
73
|
-
uuid,
|
|
74
|
-
}));
|
|
75
|
-
break;
|
|
76
|
-
case 'tool_result': {
|
|
77
|
-
const toolId = b.tool_use_id || '';
|
|
78
|
-
const isError = b.is_error === true;
|
|
79
|
-
const output = extractToolResultContent(b.content);
|
|
80
|
-
blocks.push({ kind: 'tool_result', toolId, output, isError, ts, uuid });
|
|
81
|
-
blocks.push(...viewportCliEventsFromOutput(output, ts, `${uuid || toolId}-viewport-cli`));
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return blocks;
|
|
87
|
-
}
|
|
88
|
-
function mapClaudeTextToRichBlocks(role, text, ts, uuid) {
|
|
89
|
-
if (role === 'user') {
|
|
90
|
-
const localCommandBlocks = claudeLocalCommandEventsFromText(text, ts, uuid);
|
|
91
|
-
if (localCommandBlocks)
|
|
92
|
-
return localCommandBlocks;
|
|
93
|
-
}
|
|
94
|
-
return [
|
|
95
|
-
{ kind: 'text', role, text, ts, uuid },
|
|
96
|
-
...viewportPlanEventsFromText(text, ts, `${uuid}-viewport-plan`),
|
|
97
|
-
];
|
|
98
|
-
}
|
|
99
|
-
function claudeLocalCommandEventsFromText(text, ts, uuid) {
|
|
100
|
-
if (!isClaudeLocalCommandText(text))
|
|
101
|
-
return null;
|
|
102
|
-
if (/<local-command-caveat>[\s\S]*?<\/local-command-caveat>/i.test(text))
|
|
103
|
-
return [];
|
|
104
|
-
const commandName = taggedText(text, 'command-name');
|
|
105
|
-
if (commandName) {
|
|
106
|
-
const slashCommand = commandName.startsWith('/') ? commandName : `/${commandName}`;
|
|
107
|
-
const commandMessage = taggedText(text, 'command-message') || commandName;
|
|
108
|
-
const commandArgs = taggedText(text, 'command-args');
|
|
109
|
-
return [
|
|
110
|
-
{
|
|
111
|
-
kind: 'event',
|
|
112
|
-
title: `Claude command: ${slashCommand}`,
|
|
113
|
-
body: [commandMessage, commandArgs ? `args ${commandArgs}` : null]
|
|
114
|
-
.filter(Boolean)
|
|
115
|
-
.join('\n'),
|
|
116
|
-
tone: 'muted',
|
|
117
|
-
ts,
|
|
118
|
-
uuid: `${uuid}:local-command:${commandName}`,
|
|
119
|
-
},
|
|
120
|
-
];
|
|
121
|
-
}
|
|
122
|
-
const stdout = taggedText(text, 'local-command-stdout');
|
|
123
|
-
if (stdout) {
|
|
124
|
-
return [
|
|
125
|
-
{
|
|
126
|
-
kind: 'event',
|
|
127
|
-
title: 'Claude command output',
|
|
128
|
-
body: stdout,
|
|
129
|
-
tone: 'muted',
|
|
130
|
-
ts,
|
|
131
|
-
uuid: `${uuid}:local-command-stdout`,
|
|
132
|
-
},
|
|
133
|
-
];
|
|
134
|
-
}
|
|
135
|
-
const stderr = taggedText(text, 'local-command-stderr');
|
|
136
|
-
if (stderr) {
|
|
137
|
-
return [
|
|
138
|
-
{
|
|
139
|
-
kind: 'event',
|
|
140
|
-
title: 'Claude command warning',
|
|
141
|
-
body: stderr,
|
|
142
|
-
tone: 'warning',
|
|
143
|
-
ts,
|
|
144
|
-
uuid: `${uuid}:local-command-stderr`,
|
|
145
|
-
},
|
|
146
|
-
];
|
|
147
|
-
}
|
|
148
|
-
const taskNotification = taggedText(text, 'task-notification');
|
|
149
|
-
if (taskNotification) {
|
|
150
|
-
return [
|
|
151
|
-
{
|
|
152
|
-
kind: 'event',
|
|
153
|
-
title: 'Claude task notification',
|
|
154
|
-
body: taskNotification,
|
|
155
|
-
tone: 'muted',
|
|
156
|
-
ts,
|
|
157
|
-
uuid: `${uuid}:task-notification`,
|
|
158
|
-
},
|
|
159
|
-
];
|
|
160
|
-
}
|
|
161
|
-
const teammateMessage = taggedText(text, 'teammate-message');
|
|
162
|
-
if (teammateMessage) {
|
|
163
|
-
return [
|
|
164
|
-
{
|
|
165
|
-
kind: 'event',
|
|
166
|
-
title: 'Teammate message',
|
|
167
|
-
body: teammateMessage,
|
|
168
|
-
tone: 'muted',
|
|
169
|
-
ts,
|
|
170
|
-
uuid: `${uuid}:teammate-message`,
|
|
171
|
-
},
|
|
172
|
-
];
|
|
173
|
-
}
|
|
174
|
-
return [];
|
|
175
|
-
}
|
|
176
|
-
function mapClaudeToolUseToRichBlocks(input) {
|
|
177
|
-
if (input.toolName === 'Bash') {
|
|
178
|
-
const command = typeof input.input.command === 'string' ? input.input.command.trim() : '';
|
|
179
|
-
if (command) {
|
|
180
|
-
return [
|
|
181
|
-
{
|
|
182
|
-
kind: 'command',
|
|
183
|
-
command,
|
|
184
|
-
cwd: typeof input.input.cwd === 'string' ? input.input.cwd : undefined,
|
|
185
|
-
status: 'started',
|
|
186
|
-
ts: input.ts,
|
|
187
|
-
uuid: input.toolId || input.uuid,
|
|
188
|
-
},
|
|
189
|
-
];
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if (input.toolName === 'Agent') {
|
|
193
|
-
const subagentType = typeof input.input.subagent_type === 'string' ? input.input.subagent_type.trim() : '';
|
|
194
|
-
const description = typeof input.input.description === 'string' ? input.input.description.trim() : '';
|
|
195
|
-
const prompt = typeof input.input.prompt === 'string' ? input.input.prompt.trim() : '';
|
|
196
|
-
return [
|
|
197
|
-
{
|
|
198
|
-
kind: 'event',
|
|
199
|
-
title: `Subagent started${subagentType ? `: ${subagentType}` : ''}`,
|
|
200
|
-
body: [description, prompt ? firstLine(prompt) : null].filter(Boolean).join('\n'),
|
|
201
|
-
tone: 'muted',
|
|
202
|
-
ts: input.ts,
|
|
203
|
-
uuid: input.toolId || input.uuid,
|
|
204
|
-
},
|
|
205
|
-
];
|
|
206
|
-
}
|
|
207
|
-
if (input.toolName.startsWith('Task')) {
|
|
208
|
-
const subject = typeof input.input.task_subject === 'string'
|
|
209
|
-
? input.input.task_subject.trim()
|
|
210
|
-
: typeof input.input.subject === 'string'
|
|
211
|
-
? input.input.subject.trim()
|
|
212
|
-
: '';
|
|
213
|
-
const description = typeof input.input.task_description === 'string'
|
|
214
|
-
? input.input.task_description.trim()
|
|
215
|
-
: typeof input.input.description === 'string'
|
|
216
|
-
? input.input.description.trim()
|
|
217
|
-
: '';
|
|
218
|
-
return [
|
|
219
|
-
{
|
|
220
|
-
kind: 'event',
|
|
221
|
-
title: subject ? `${input.toolName}: ${subject}` : `Claude task: ${input.toolName}`,
|
|
222
|
-
body: description || safeJsonPreview(input.input),
|
|
223
|
-
tone: input.toolName === 'TaskCompleted' ? 'success' : 'muted',
|
|
224
|
-
ts: input.ts,
|
|
225
|
-
uuid: input.toolId || input.uuid,
|
|
226
|
-
},
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
|
-
if (isClaudeFileMutationTool(input.toolName)) {
|
|
230
|
-
const filePath = typeof input.input.file_path === 'string'
|
|
231
|
-
? input.input.file_path
|
|
232
|
-
: typeof input.input.path === 'string'
|
|
233
|
-
? input.input.path
|
|
234
|
-
: undefined;
|
|
235
|
-
return [
|
|
236
|
-
{
|
|
237
|
-
kind: 'file_change',
|
|
238
|
-
path: filePath,
|
|
239
|
-
operation: input.toolName,
|
|
240
|
-
ts: input.ts,
|
|
241
|
-
uuid: input.toolId || input.uuid,
|
|
242
|
-
},
|
|
243
|
-
];
|
|
244
|
-
}
|
|
245
|
-
return [
|
|
246
|
-
{
|
|
247
|
-
kind: 'tool_use',
|
|
248
|
-
toolName: input.toolName,
|
|
249
|
-
toolId: input.toolId,
|
|
250
|
-
input: input.input,
|
|
251
|
-
ts: input.ts,
|
|
252
|
-
uuid: input.uuid,
|
|
253
|
-
},
|
|
254
|
-
];
|
|
255
|
-
}
|
|
256
|
-
function isClaudeFileMutationTool(toolName) {
|
|
257
|
-
return (toolName === 'Edit' ||
|
|
258
|
-
toolName === 'Write' ||
|
|
259
|
-
toolName === 'MultiEdit' ||
|
|
260
|
-
toolName === 'NotebookEdit');
|
|
261
|
-
}
|
|
262
|
-
function parseCodexEntry(e) {
|
|
263
|
-
const envelopeType = e.type;
|
|
264
|
-
if (envelopeType !== 'response_item')
|
|
265
|
-
return null;
|
|
266
|
-
const payload = typeof e.payload === 'object' && e.payload !== null
|
|
267
|
-
? e.payload
|
|
268
|
-
: null;
|
|
269
|
-
if (!payload)
|
|
270
|
-
return [];
|
|
271
|
-
const ts = timestampFromEntry(e, payload);
|
|
272
|
-
const itemType = payload.type;
|
|
273
|
-
if (itemType === 'message') {
|
|
274
|
-
const role = normalizeCodexRole(payload.role);
|
|
275
|
-
if (!role)
|
|
276
|
-
return [];
|
|
277
|
-
const messageBlocks = [];
|
|
278
|
-
const content = payload.content;
|
|
279
|
-
const baseUuid = codexUuid(payload, ts, 'message');
|
|
280
|
-
if (typeof content === 'string') {
|
|
281
|
-
const text = content.trim();
|
|
282
|
-
if (text) {
|
|
283
|
-
messageBlocks.push({ kind: 'text', role, text, ts, uuid: baseUuid });
|
|
284
|
-
messageBlocks.push(...viewportPlanEventsFromText(text, ts, `${baseUuid}-viewport-plan`));
|
|
285
|
-
}
|
|
286
|
-
return messageBlocks;
|
|
287
|
-
}
|
|
288
|
-
if (!Array.isArray(content))
|
|
289
|
-
return messageBlocks;
|
|
290
|
-
for (let i = 0; i < content.length; i += 1) {
|
|
291
|
-
const item = content[i];
|
|
292
|
-
const itemRec = typeof item === 'object' && item !== null ? item : null;
|
|
293
|
-
const text = extractCodexContentText(itemRec ?? item);
|
|
294
|
-
if (!text)
|
|
295
|
-
continue;
|
|
296
|
-
messageBlocks.push({
|
|
297
|
-
kind: 'text',
|
|
298
|
-
role,
|
|
299
|
-
text,
|
|
300
|
-
ts,
|
|
301
|
-
uuid: `${baseUuid}-${i}`,
|
|
302
|
-
});
|
|
303
|
-
messageBlocks.push(...viewportPlanEventsFromText(text, ts, `${baseUuid}-${i}-viewport-plan`));
|
|
304
|
-
}
|
|
305
|
-
return messageBlocks;
|
|
306
|
-
}
|
|
307
|
-
if (itemType === 'function_call') {
|
|
308
|
-
const toolId = codexToolId(payload);
|
|
309
|
-
const toolName = (typeof payload.name === 'string' && payload.name) ||
|
|
310
|
-
(typeof payload.tool_name === 'string' && payload.tool_name) ||
|
|
311
|
-
'tool';
|
|
312
|
-
return [
|
|
313
|
-
{
|
|
314
|
-
kind: 'tool_use',
|
|
315
|
-
toolName,
|
|
316
|
-
toolId,
|
|
317
|
-
input: parseCodexFunctionCallInput(payload.arguments),
|
|
318
|
-
ts,
|
|
319
|
-
uuid: codexUuid(payload, ts, 'tool-use'),
|
|
320
|
-
},
|
|
321
|
-
];
|
|
322
|
-
}
|
|
323
|
-
if (itemType === 'function_call_output') {
|
|
324
|
-
const output = (typeof payload.output === 'string' && payload.output) ||
|
|
325
|
-
(typeof payload.result === 'string' && payload.result) ||
|
|
326
|
-
'';
|
|
327
|
-
return [
|
|
328
|
-
{
|
|
329
|
-
kind: 'tool_result',
|
|
330
|
-
toolId: codexToolId(payload),
|
|
331
|
-
output,
|
|
332
|
-
isError: payload.is_error === true || payload.isError === true,
|
|
333
|
-
ts,
|
|
334
|
-
uuid: codexUuid(payload, ts, 'tool-result'),
|
|
335
|
-
},
|
|
336
|
-
...viewportCliEventsFromOutput(output, ts, `${codexUuid(payload, ts, 'tool-result')}-viewport-cli`),
|
|
337
|
-
];
|
|
338
|
-
}
|
|
339
|
-
if (itemType === 'reasoning') {
|
|
340
|
-
const thinking = extractCodexReasoning(payload);
|
|
341
|
-
if (!thinking)
|
|
342
|
-
return [];
|
|
343
|
-
return [
|
|
344
|
-
{
|
|
345
|
-
kind: 'thinking',
|
|
346
|
-
text: thinking,
|
|
347
|
-
ts,
|
|
348
|
-
uuid: codexUuid(payload, ts, 'thinking'),
|
|
349
|
-
},
|
|
350
|
-
];
|
|
351
|
-
}
|
|
352
|
-
return [
|
|
353
|
-
{
|
|
354
|
-
kind: 'event',
|
|
355
|
-
title: `Provider item: ${itemType || 'unknown'}`,
|
|
356
|
-
body: safeJsonPreview(payload),
|
|
357
|
-
tone: 'muted',
|
|
358
|
-
ts,
|
|
359
|
-
uuid: codexUuid(payload, ts, 'item'),
|
|
360
|
-
},
|
|
361
|
-
];
|
|
362
|
-
}
|
|
363
|
-
function parseCodexEventMsgEntry(e) {
|
|
364
|
-
if (e.type !== 'event_msg')
|
|
365
|
-
return null;
|
|
366
|
-
const payload = typeof e.payload === 'object' && e.payload !== null
|
|
367
|
-
? e.payload
|
|
368
|
-
: null;
|
|
369
|
-
if (!payload)
|
|
370
|
-
return [];
|
|
371
|
-
const ts = timestampFromEntry(e, payload);
|
|
372
|
-
const itemType = payload.type;
|
|
373
|
-
const uuid = codexUuid(payload, ts, itemType || 'event');
|
|
374
|
-
if (itemType === 'user_message') {
|
|
375
|
-
const text = extractText(payload.message ?? payload.text);
|
|
376
|
-
return text ? [{ kind: 'text', role: 'user', text, ts, uuid }] : [];
|
|
377
|
-
}
|
|
378
|
-
if (itemType === 'agent_message' || itemType === 'assistant_message') {
|
|
379
|
-
const text = extractText(payload.message ?? payload.text);
|
|
380
|
-
return text
|
|
381
|
-
? [
|
|
382
|
-
{ kind: 'text', role: 'assistant', text, ts, uuid },
|
|
383
|
-
...viewportPlanEventsFromText(text, ts, `${uuid}-viewport-plan`),
|
|
384
|
-
]
|
|
385
|
-
: [];
|
|
386
|
-
}
|
|
387
|
-
if (itemType === 'agent_message_delta' || itemType === 'agent_message_content_delta') {
|
|
388
|
-
const text = extractText(payload.delta ?? payload.text ?? payload.content);
|
|
389
|
-
return text ? [{ kind: 'text', role: 'assistant', text, ts, uuid }] : [];
|
|
390
|
-
}
|
|
391
|
-
if (itemType === 'exec_command_begin') {
|
|
392
|
-
return [
|
|
393
|
-
{
|
|
394
|
-
kind: 'command',
|
|
395
|
-
command: commandToString(payload.command),
|
|
396
|
-
cwd: typeof payload.cwd === 'string' ? payload.cwd : undefined,
|
|
397
|
-
status: 'started',
|
|
398
|
-
ts,
|
|
399
|
-
uuid,
|
|
400
|
-
},
|
|
401
|
-
];
|
|
402
|
-
}
|
|
403
|
-
if (itemType === 'exec_command_end') {
|
|
404
|
-
return [
|
|
405
|
-
{
|
|
406
|
-
kind: 'command',
|
|
407
|
-
command: commandToString(payload.command),
|
|
408
|
-
cwd: typeof payload.cwd === 'string' ? payload.cwd : undefined,
|
|
409
|
-
status: 'completed',
|
|
410
|
-
exitCode: numberOrNull(payload.exit_code),
|
|
411
|
-
output: extractText(payload.aggregated_output ?? payload.formatted_output ?? payload.stdout),
|
|
412
|
-
durationMs: durationToMs(payload.duration),
|
|
413
|
-
ts,
|
|
414
|
-
uuid,
|
|
415
|
-
},
|
|
416
|
-
];
|
|
417
|
-
}
|
|
418
|
-
if (itemType === 'exec_approval_request') {
|
|
419
|
-
const command = commandToString(payload.command);
|
|
420
|
-
const reason = typeof payload.reason === 'string' ? payload.reason : '';
|
|
421
|
-
return [
|
|
422
|
-
{
|
|
423
|
-
kind: 'approval',
|
|
424
|
-
title: 'Command approval needed',
|
|
425
|
-
body: [reason, command].filter(Boolean).join('\n'),
|
|
426
|
-
input: payload,
|
|
427
|
-
ts,
|
|
428
|
-
uuid,
|
|
429
|
-
},
|
|
430
|
-
];
|
|
431
|
-
}
|
|
432
|
-
if (itemType === 'turn_diff') {
|
|
433
|
-
return [
|
|
434
|
-
{
|
|
435
|
-
kind: 'file_change',
|
|
436
|
-
diff: typeof payload.unified_diff === 'string' ? payload.unified_diff : undefined,
|
|
437
|
-
operation: 'diff',
|
|
438
|
-
ts,
|
|
439
|
-
uuid,
|
|
440
|
-
},
|
|
441
|
-
];
|
|
442
|
-
}
|
|
443
|
-
if (itemType === 'turn_aborted' || itemType === 'turn_failed') {
|
|
444
|
-
return [
|
|
445
|
-
{
|
|
446
|
-
kind: 'event',
|
|
447
|
-
title: itemType === 'turn_aborted' ? 'Turn aborted' : 'Turn failed',
|
|
448
|
-
body: extractText(payload.error ?? payload.message) || itemType,
|
|
449
|
-
tone: 'danger',
|
|
450
|
-
ts,
|
|
451
|
-
uuid,
|
|
452
|
-
},
|
|
453
|
-
];
|
|
454
|
-
}
|
|
455
|
-
if (itemType === 'thread_name_updated') {
|
|
456
|
-
const title = typeof payload.thread_name === 'string' ? payload.thread_name : '';
|
|
457
|
-
return title
|
|
458
|
-
? [{ kind: 'event', title: 'Session renamed', body: title, tone: 'muted', ts, uuid }]
|
|
459
|
-
: [];
|
|
460
|
-
}
|
|
461
|
-
if (itemType === 'token_count') {
|
|
462
|
-
return [
|
|
463
|
-
{
|
|
464
|
-
kind: 'usage',
|
|
465
|
-
inputTokens: numberOrUndefined(payload.input_tokens ?? payload.inputTokens),
|
|
466
|
-
outputTokens: numberOrUndefined(payload.output_tokens ?? payload.outputTokens),
|
|
467
|
-
totalTokens: numberOrUndefined(payload.total_tokens ?? payload.totalTokens),
|
|
468
|
-
ts,
|
|
469
|
-
uuid,
|
|
470
|
-
},
|
|
471
|
-
];
|
|
472
|
-
}
|
|
473
|
-
if (itemType === 'task_complete') {
|
|
474
|
-
const message = extractText(payload.last_agent_message ?? payload.lastAgentMessage);
|
|
475
|
-
const durationMs = numberOrUndefined(payload.duration_ms ?? payload.durationMs);
|
|
476
|
-
return [
|
|
477
|
-
{
|
|
478
|
-
kind: 'event',
|
|
479
|
-
title: 'Task completed',
|
|
480
|
-
body: [
|
|
481
|
-
message,
|
|
482
|
-
durationMs !== undefined ? `Completed in ${formatDuration(durationMs)}` : null,
|
|
483
|
-
]
|
|
484
|
-
.filter(Boolean)
|
|
485
|
-
.join('\n\n'),
|
|
486
|
-
tone: 'success',
|
|
487
|
-
ts,
|
|
488
|
-
uuid,
|
|
489
|
-
},
|
|
490
|
-
];
|
|
491
|
-
}
|
|
492
|
-
return [
|
|
493
|
-
{
|
|
494
|
-
kind: 'event',
|
|
495
|
-
title: `Provider event: ${itemType || 'unknown'}`,
|
|
496
|
-
body: safeJsonPreview(payload),
|
|
497
|
-
tone: 'muted',
|
|
498
|
-
ts,
|
|
499
|
-
uuid,
|
|
500
|
-
},
|
|
501
|
-
];
|
|
502
|
-
}
|
|
503
|
-
function parseCodexCompactedEntry(e) {
|
|
504
|
-
if (e.type !== 'compacted')
|
|
505
|
-
return null;
|
|
506
|
-
const payload = typeof e.payload === 'object' && e.payload !== null
|
|
507
|
-
? e.payload
|
|
508
|
-
: null;
|
|
509
|
-
const replacementHistory = payload?.replacement_history;
|
|
510
|
-
if (!Array.isArray(replacementHistory))
|
|
511
|
-
return [];
|
|
512
|
-
const ts = timestampFromEntry(e, payload ?? undefined);
|
|
513
|
-
const blocks = [];
|
|
514
|
-
for (let index = 0; index < replacementHistory.length; index += 1) {
|
|
515
|
-
const item = replacementHistory[index];
|
|
516
|
-
if (typeof item !== 'object' || item === null)
|
|
517
|
-
continue;
|
|
518
|
-
const record = item;
|
|
519
|
-
if (record.type !== 'message')
|
|
520
|
-
continue;
|
|
521
|
-
const role = normalizeCodexRole(record.role);
|
|
522
|
-
if (!role)
|
|
523
|
-
continue;
|
|
524
|
-
const text = extractCodexCompactedMessageText(record.content);
|
|
525
|
-
if (!text)
|
|
526
|
-
continue;
|
|
527
|
-
blocks.push({
|
|
528
|
-
kind: 'text',
|
|
529
|
-
role,
|
|
530
|
-
text,
|
|
531
|
-
ts,
|
|
532
|
-
uuid: `codex-compacted-${ts}-${index}`,
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
return blocks;
|
|
536
|
-
}
|
|
537
|
-
function parseProviderMetadataEntry(e) {
|
|
538
|
-
const type = typeof e.type === 'string' ? e.type : '';
|
|
539
|
-
if (!type)
|
|
540
|
-
return null;
|
|
541
|
-
const ts = timestampFromEntry(e);
|
|
542
|
-
const uuid = typeof e.uuid === 'string' && e.uuid ? e.uuid : `provider-${type}-${ts}`;
|
|
543
|
-
if (type === 'custom-title') {
|
|
544
|
-
const title = stringField(e, 'customTitle') || stringField(e, 'custom_title') || stringField(e, 'title');
|
|
545
|
-
return title
|
|
546
|
-
? [{ kind: 'event', title: 'Session renamed', body: title, tone: 'muted', ts, uuid }]
|
|
547
|
-
: [];
|
|
548
|
-
}
|
|
549
|
-
if (type === 'ai-title') {
|
|
550
|
-
return [];
|
|
551
|
-
}
|
|
552
|
-
if (type === 'permission-mode') {
|
|
553
|
-
const mode = stringField(e, 'permissionMode') || stringField(e, 'permission_mode');
|
|
554
|
-
return mode
|
|
555
|
-
? [{ kind: 'event', title: 'Permission mode changed', body: mode, tone: 'muted', ts, uuid }]
|
|
556
|
-
: [];
|
|
557
|
-
}
|
|
558
|
-
if (type === 'file-history-snapshot') {
|
|
559
|
-
const snapshot = e.snapshot;
|
|
560
|
-
const count = snapshot && typeof snapshot === 'object' && !Array.isArray(snapshot)
|
|
561
|
-
? Object.keys(snapshot).length
|
|
562
|
-
: 0;
|
|
563
|
-
return [
|
|
564
|
-
{
|
|
565
|
-
kind: 'event',
|
|
566
|
-
title: 'File snapshot captured',
|
|
567
|
-
body: count > 0 ? `${count} tracked file${count === 1 ? '' : 's'}` : 'Tracked files captured',
|
|
568
|
-
tone: 'muted',
|
|
569
|
-
ts,
|
|
570
|
-
uuid,
|
|
571
|
-
},
|
|
572
|
-
];
|
|
573
|
-
}
|
|
574
|
-
if (type === 'last-prompt') {
|
|
575
|
-
const prompt = stringField(e, 'lastPrompt') || stringField(e, 'last_prompt');
|
|
576
|
-
return prompt
|
|
577
|
-
? [{ kind: 'event', title: 'Prompt updated', body: prompt, tone: 'muted', ts, uuid }]
|
|
578
|
-
: [];
|
|
579
|
-
}
|
|
580
|
-
if (type === 'task_complete') {
|
|
581
|
-
const message = stringField(e, 'last_agent_message') || stringField(e, 'lastAgentMessage');
|
|
582
|
-
const durationMs = numberOrUndefined(e.duration_ms ?? e.durationMs);
|
|
583
|
-
return [
|
|
584
|
-
{
|
|
585
|
-
kind: 'event',
|
|
586
|
-
title: 'Task completed',
|
|
587
|
-
body: [
|
|
588
|
-
message,
|
|
589
|
-
durationMs !== undefined ? `Completed in ${formatDuration(durationMs)}` : null,
|
|
590
|
-
]
|
|
591
|
-
.filter(Boolean)
|
|
592
|
-
.join('\n\n'),
|
|
593
|
-
tone: 'success',
|
|
594
|
-
ts,
|
|
595
|
-
uuid,
|
|
596
|
-
},
|
|
597
|
-
];
|
|
598
|
-
}
|
|
599
|
-
if (type === 'summary' || type === 'compact' || type === 'compaction') {
|
|
600
|
-
const summary = extractText(e.summary ?? e.message ?? e.content);
|
|
601
|
-
return [
|
|
602
|
-
{
|
|
603
|
-
kind: 'event',
|
|
604
|
-
title: 'Conversation compacted',
|
|
605
|
-
body: summary || safeJsonPreview(e),
|
|
606
|
-
tone: 'muted',
|
|
607
|
-
ts,
|
|
608
|
-
uuid,
|
|
609
|
-
},
|
|
610
|
-
];
|
|
611
|
-
}
|
|
612
|
-
if (type === 'system' && isInjectedEnvironmentEntry(e))
|
|
613
|
-
return [];
|
|
614
|
-
return [
|
|
615
|
-
{
|
|
616
|
-
kind: 'event',
|
|
617
|
-
title: `Provider event: ${type}`,
|
|
618
|
-
body: safeJsonPreview(e),
|
|
619
|
-
tone: 'muted',
|
|
620
|
-
ts,
|
|
621
|
-
uuid,
|
|
622
|
-
},
|
|
623
|
-
];
|
|
624
|
-
}
|
|
625
|
-
// ---------------------------------------------------------------------------
|
|
626
|
-
// Helpers
|
|
627
|
-
// ---------------------------------------------------------------------------
|
|
628
|
-
/**
|
|
629
|
-
* Extract text from a tool_result content field.
|
|
630
|
-
* Content can be a string, an array of text blocks, or absent.
|
|
631
|
-
*/
|
|
632
|
-
function extractToolResultContent(content) {
|
|
633
|
-
if (typeof content === 'string')
|
|
634
|
-
return content;
|
|
635
|
-
if (Array.isArray(content)) {
|
|
636
|
-
const parts = [];
|
|
637
|
-
for (const item of content) {
|
|
638
|
-
if (typeof item === 'string') {
|
|
639
|
-
parts.push(item);
|
|
640
|
-
}
|
|
641
|
-
else if (typeof item === 'object' && item !== null) {
|
|
642
|
-
const c = item;
|
|
643
|
-
if (c.type === 'text' && typeof c.text === 'string') {
|
|
644
|
-
parts.push(c.text);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
return parts.join('\n');
|
|
649
|
-
}
|
|
650
|
-
return '';
|
|
651
|
-
}
|
|
652
|
-
function viewportCliEventsFromOutput(output, ts, uuidPrefix) {
|
|
653
|
-
const payload = parseViewportCliJson(output);
|
|
654
|
-
if (!payload)
|
|
655
|
-
return [];
|
|
656
|
-
const schemaVersion = typeof payload.schema_version === 'string' ? payload.schema_version : '';
|
|
657
|
-
const ok = payload.ok !== false;
|
|
658
|
-
if (schemaVersion === 'viewport.cli.context_propose/v1') {
|
|
659
|
-
const candidateId = stringField(payload, 'candidate_id');
|
|
660
|
-
const providerId = stringField(payload, 'provider_id');
|
|
661
|
-
const status = stringField(payload, 'status') || (ok ? 'pending_review' : 'not_queued');
|
|
662
|
-
const digest = stringField(payload, 'payload_digest');
|
|
663
|
-
return [
|
|
664
|
-
{
|
|
665
|
-
kind: 'event',
|
|
666
|
-
title: ok ? 'Context candidate proposed' : 'Context proposal did not queue',
|
|
667
|
-
body: [
|
|
668
|
-
candidateId ? `candidate ${candidateId}` : null,
|
|
669
|
-
providerId ? `provider ${providerId}` : null,
|
|
670
|
-
status ? `status ${status}` : null,
|
|
671
|
-
digest ? digest : null,
|
|
672
|
-
]
|
|
673
|
-
.filter(Boolean)
|
|
674
|
-
.join('\n'),
|
|
675
|
-
tone: ok ? 'warning' : 'muted',
|
|
676
|
-
ts,
|
|
677
|
-
uuid: `${uuidPrefix}:context-propose:${candidateId || status || schemaVersion}`,
|
|
678
|
-
},
|
|
679
|
-
];
|
|
680
|
-
}
|
|
681
|
-
if (schemaVersion === 'viewport.cli.context_search/v1') {
|
|
682
|
-
const count = numberOrUndefined(payload.result_count ?? payload.count);
|
|
683
|
-
return [
|
|
684
|
-
{
|
|
685
|
-
kind: 'event',
|
|
686
|
-
title: 'Context searched',
|
|
687
|
-
body: typeof count === 'number'
|
|
688
|
-
? `${count.toLocaleString()} result${count === 1 ? '' : 's'}`
|
|
689
|
-
: 'Context search completed',
|
|
690
|
-
tone: 'muted',
|
|
691
|
-
ts,
|
|
692
|
-
uuid: `${uuidPrefix}:context-search`,
|
|
693
|
-
},
|
|
694
|
-
];
|
|
695
|
-
}
|
|
696
|
-
if (schemaVersion === 'viewport.cli.context_get/v1') {
|
|
697
|
-
return [
|
|
698
|
-
{
|
|
699
|
-
kind: 'event',
|
|
700
|
-
title: 'Context loaded',
|
|
701
|
-
body: stringField(payload, 'provider_id') || 'Context item loaded',
|
|
702
|
-
tone: 'muted',
|
|
703
|
-
ts,
|
|
704
|
-
uuid: `${uuidPrefix}:context-get`,
|
|
705
|
-
},
|
|
706
|
-
];
|
|
707
|
-
}
|
|
708
|
-
if (schemaVersion === 'viewport.cli.context_use/v1') {
|
|
709
|
-
const providerId = stringField(payload, 'provider_id');
|
|
710
|
-
return [
|
|
711
|
-
{
|
|
712
|
-
kind: 'event',
|
|
713
|
-
title: 'Context attached to repo',
|
|
714
|
-
body: providerId ? `provider ${providerId}` : 'Context provider attached',
|
|
715
|
-
tone: ok ? 'success' : 'warning',
|
|
716
|
-
ts,
|
|
717
|
-
uuid: `${uuidPrefix}:context-use:${providerId || schemaVersion}`,
|
|
718
|
-
},
|
|
719
|
-
];
|
|
720
|
-
}
|
|
721
|
-
if (schemaVersion === 'viewport.cli.context_create/v1') {
|
|
722
|
-
const vaultId = stringField(payload, 'vault_id') || stringField(payload, 'id');
|
|
723
|
-
return [
|
|
724
|
-
{
|
|
725
|
-
kind: 'event',
|
|
726
|
-
title: 'Context vault created',
|
|
727
|
-
body: vaultId ? `vault ${vaultId}` : 'Context vault created',
|
|
728
|
-
tone: ok ? 'success' : 'warning',
|
|
729
|
-
ts,
|
|
730
|
-
uuid: `${uuidPrefix}:context-create:${vaultId || schemaVersion}`,
|
|
731
|
-
},
|
|
732
|
-
];
|
|
733
|
-
}
|
|
734
|
-
if (schemaVersion === 'viewport.cli.session_manifest/v1') {
|
|
735
|
-
return [
|
|
736
|
-
{
|
|
737
|
-
kind: 'event',
|
|
738
|
-
title: 'Viewport repo config read',
|
|
739
|
-
body: stringField(payload, 'manifest_digest') || 'Session manifest resolved',
|
|
740
|
-
tone: 'muted',
|
|
741
|
-
ts,
|
|
742
|
-
uuid: `${uuidPrefix}:session-manifest`,
|
|
743
|
-
},
|
|
744
|
-
];
|
|
745
|
-
}
|
|
746
|
-
return [];
|
|
747
|
-
}
|
|
748
|
-
function viewportPlanEventsFromText(text, ts, uuidPrefix) {
|
|
749
|
-
const payload = parseViewportPlanPayload(text);
|
|
750
|
-
if (!payload)
|
|
751
|
-
return [];
|
|
752
|
-
const schema = stringField(payload, 'schema');
|
|
753
|
-
if (schema !== 'viewport.plan_proposal/v1')
|
|
754
|
-
return [];
|
|
755
|
-
const title = stringField(payload, 'title') || 'Plan proposal';
|
|
756
|
-
const summary = stringField(payload, 'summary');
|
|
757
|
-
const source = stringField(payload, 'source');
|
|
758
|
-
const body = [summary, source ? `source ${source}` : null].filter(Boolean).join('\n');
|
|
759
|
-
return [
|
|
760
|
-
{
|
|
761
|
-
kind: 'event',
|
|
762
|
-
title: `Plan draft emitted: ${title}`,
|
|
763
|
-
body: body || 'A Viewport plan proposal block was emitted for trusted-edge capture.',
|
|
764
|
-
tone: 'warning',
|
|
765
|
-
ts,
|
|
766
|
-
uuid: `${uuidPrefix}:${title}`,
|
|
767
|
-
},
|
|
768
|
-
];
|
|
769
|
-
}
|
|
770
|
-
function parseViewportPlanPayload(text) {
|
|
771
|
-
const fence = /```viewport-plan\s*\n([\s\S]*?)```/i.exec(text);
|
|
772
|
-
const comment = /<!--\s*viewport-plan\s*\n([\s\S]*?)-->/i.exec(text);
|
|
773
|
-
const raw = fence?.[1] ?? comment?.[1];
|
|
774
|
-
if (!raw)
|
|
775
|
-
return null;
|
|
776
|
-
const trimmed = raw.trim();
|
|
777
|
-
if (!trimmed.includes('viewport.plan_proposal/v1'))
|
|
778
|
-
return null;
|
|
779
|
-
try {
|
|
780
|
-
const parsed = JSON.parse(trimmed);
|
|
781
|
-
if (typeof parsed === 'object' && parsed !== null)
|
|
782
|
-
return parsed;
|
|
783
|
-
}
|
|
784
|
-
catch {
|
|
785
|
-
// YAML-frontmatter style plan blocks are allowed elsewhere. The session
|
|
786
|
-
// reader keeps them as normal transcript text until a structured parser is
|
|
787
|
-
// needed for timeline links.
|
|
788
|
-
}
|
|
789
|
-
return null;
|
|
790
|
-
}
|
|
791
|
-
function isInjectedEnvironmentEntry(entry) {
|
|
792
|
-
const content = extractText(entry.content ?? entry.message);
|
|
793
|
-
return content.includes('<environment_context>') || content.includes('<system-reminder>');
|
|
794
|
-
}
|
|
795
|
-
function parseViewportCliJson(output) {
|
|
796
|
-
const trimmed = output.trim();
|
|
797
|
-
if (!trimmed.includes('schema_version'))
|
|
798
|
-
return null;
|
|
799
|
-
const candidates = [trimmed];
|
|
800
|
-
const firstBrace = trimmed.indexOf('{');
|
|
801
|
-
const lastBrace = trimmed.lastIndexOf('}');
|
|
802
|
-
if (firstBrace >= 0 && lastBrace > firstBrace) {
|
|
803
|
-
candidates.push(trimmed.slice(firstBrace, lastBrace + 1));
|
|
804
|
-
}
|
|
805
|
-
for (const candidate of candidates) {
|
|
806
|
-
try {
|
|
807
|
-
const parsed = JSON.parse(candidate);
|
|
808
|
-
if (typeof parsed === 'object' && parsed !== null) {
|
|
809
|
-
return parsed;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
catch {
|
|
813
|
-
// Keep trying the next candidate.
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
return null;
|
|
817
|
-
}
|
|
818
|
-
function stringField(record, field) {
|
|
819
|
-
const value = record[field];
|
|
820
|
-
return typeof value === 'string' ? value.trim() : '';
|
|
821
|
-
}
|
|
822
|
-
function timestampFromEntry(entry, payload) {
|
|
823
|
-
const fromPayload = payload?.timestamp;
|
|
824
|
-
if (typeof fromPayload === 'string' && fromPayload)
|
|
825
|
-
return fromPayload;
|
|
826
|
-
const fromEntry = entry.timestamp;
|
|
827
|
-
if (typeof fromEntry === 'string' && fromEntry)
|
|
828
|
-
return fromEntry;
|
|
829
|
-
return new Date().toISOString();
|
|
830
|
-
}
|
|
831
|
-
function normalizeCodexRole(value) {
|
|
832
|
-
if (value === 'user')
|
|
833
|
-
return 'user';
|
|
834
|
-
if (value === 'assistant')
|
|
835
|
-
return 'assistant';
|
|
836
|
-
return null;
|
|
837
|
-
}
|
|
838
|
-
function codexToolId(payload) {
|
|
839
|
-
const candidates = [payload.call_id, payload.callId, payload.id];
|
|
840
|
-
for (const candidate of candidates) {
|
|
841
|
-
if (typeof candidate === 'string' && candidate)
|
|
842
|
-
return candidate;
|
|
843
|
-
}
|
|
844
|
-
return '';
|
|
845
|
-
}
|
|
846
|
-
function codexUuid(payload, ts, suffix) {
|
|
847
|
-
const candidates = [payload.id, payload.call_id, payload.callId];
|
|
848
|
-
for (const candidate of candidates) {
|
|
849
|
-
if (typeof candidate === 'string' && candidate)
|
|
850
|
-
return candidate;
|
|
851
|
-
}
|
|
852
|
-
return `codex-${suffix}-${ts}`;
|
|
853
|
-
}
|
|
854
|
-
function parseCodexFunctionCallInput(value) {
|
|
855
|
-
if (typeof value === 'object' && value !== null) {
|
|
856
|
-
return value;
|
|
857
|
-
}
|
|
858
|
-
if (typeof value === 'string') {
|
|
859
|
-
try {
|
|
860
|
-
const parsed = JSON.parse(value);
|
|
861
|
-
if (typeof parsed === 'object' && parsed !== null) {
|
|
862
|
-
return parsed;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
catch {
|
|
866
|
-
return {};
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
return {};
|
|
870
|
-
}
|
|
871
|
-
function extractCodexContentText(value) {
|
|
872
|
-
if (typeof value === 'string') {
|
|
873
|
-
const trimmed = value.trim();
|
|
874
|
-
return trimmed;
|
|
875
|
-
}
|
|
876
|
-
if (typeof value !== 'object' || value === null)
|
|
877
|
-
return '';
|
|
878
|
-
const rec = value;
|
|
879
|
-
const candidates = [rec.text, rec.output_text, rec.input_text, rec.value, rec.content];
|
|
880
|
-
for (const candidate of candidates) {
|
|
881
|
-
if (typeof candidate === 'string' && candidate.trim())
|
|
882
|
-
return candidate.trim();
|
|
883
|
-
}
|
|
884
|
-
return '';
|
|
885
|
-
}
|
|
886
|
-
function extractCodexCompactedMessageText(content) {
|
|
887
|
-
if (typeof content === 'string')
|
|
888
|
-
return content.trim();
|
|
889
|
-
if (!Array.isArray(content))
|
|
890
|
-
return '';
|
|
891
|
-
const parts = [];
|
|
892
|
-
for (const item of content) {
|
|
893
|
-
const text = extractCodexContentText(item);
|
|
894
|
-
if (text)
|
|
895
|
-
parts.push(text);
|
|
896
|
-
}
|
|
897
|
-
return parts.join('\n').trim();
|
|
898
|
-
}
|
|
899
|
-
function extractCodexReasoning(payload) {
|
|
900
|
-
const summary = payload.summary;
|
|
901
|
-
if (Array.isArray(summary)) {
|
|
902
|
-
const pieces = [];
|
|
903
|
-
for (const item of summary) {
|
|
904
|
-
if (typeof item === 'string' && item.trim()) {
|
|
905
|
-
pieces.push(item.trim());
|
|
906
|
-
continue;
|
|
907
|
-
}
|
|
908
|
-
if (typeof item !== 'object' || item === null)
|
|
909
|
-
continue;
|
|
910
|
-
const rec = item;
|
|
911
|
-
const text = extractCodexContentText(rec);
|
|
912
|
-
if (text)
|
|
913
|
-
pieces.push(text);
|
|
914
|
-
}
|
|
915
|
-
if (pieces.length > 0)
|
|
916
|
-
return pieces.join('\n');
|
|
917
|
-
}
|
|
918
|
-
const fallback = extractCodexContentText(payload);
|
|
919
|
-
return fallback;
|
|
920
|
-
}
|
|
921
|
-
function extractText(value) {
|
|
922
|
-
if (typeof value === 'string')
|
|
923
|
-
return value.trim();
|
|
924
|
-
if (Array.isArray(value)) {
|
|
925
|
-
return value
|
|
926
|
-
.map((item) => extractText(item))
|
|
927
|
-
.filter(Boolean)
|
|
928
|
-
.join('\n')
|
|
929
|
-
.trim();
|
|
930
|
-
}
|
|
931
|
-
if (!value || typeof value !== 'object')
|
|
932
|
-
return '';
|
|
933
|
-
const rec = value;
|
|
934
|
-
const candidates = [
|
|
935
|
-
rec.text,
|
|
936
|
-
rec.output_text,
|
|
937
|
-
rec.input_text,
|
|
938
|
-
rec.value,
|
|
939
|
-
rec.content,
|
|
940
|
-
rec.message,
|
|
941
|
-
];
|
|
942
|
-
for (const candidate of candidates) {
|
|
943
|
-
const text = extractText(candidate);
|
|
944
|
-
if (text)
|
|
945
|
-
return text;
|
|
946
|
-
}
|
|
947
|
-
return '';
|
|
948
|
-
}
|
|
949
|
-
function isClaudeLocalCommandText(text) {
|
|
950
|
-
return /<(?:local-command-caveat|local-command-std(?:out|err)|command-name|command-message|command-args|task-notification|teammate-message)>/i.test(text);
|
|
951
|
-
}
|
|
952
|
-
function firstLine(text) {
|
|
953
|
-
return (text
|
|
954
|
-
.split(/\r?\n/)
|
|
955
|
-
.find((line) => line.trim())
|
|
956
|
-
?.trim() ?? '');
|
|
957
|
-
}
|
|
958
|
-
function taggedText(text, tag) {
|
|
959
|
-
const escaped = tag.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
960
|
-
const match = new RegExp(`<${escaped}>([\\s\\S]*?)<\\/${escaped}>`, 'i').exec(text);
|
|
961
|
-
return match
|
|
962
|
-
? stripAnsi(match[1] ?? '')
|
|
963
|
-
.replace(/\s+/g, ' ')
|
|
964
|
-
.trim()
|
|
965
|
-
: '';
|
|
966
|
-
}
|
|
967
|
-
function stripAnsi(text) {
|
|
968
|
-
// ANSI CSI escape sequences emitted by Claude local command status lines.
|
|
969
|
-
return text.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, '');
|
|
970
|
-
}
|
|
971
|
-
function commandToString(value) {
|
|
972
|
-
if (Array.isArray(value)) {
|
|
973
|
-
return value
|
|
974
|
-
.map((part) => String(part))
|
|
975
|
-
.join(' ')
|
|
976
|
-
.trim();
|
|
977
|
-
}
|
|
978
|
-
if (typeof value === 'string')
|
|
979
|
-
return value.trim();
|
|
980
|
-
return '';
|
|
981
|
-
}
|
|
982
|
-
function numberOrNull(value) {
|
|
983
|
-
if (typeof value === 'number' && Number.isFinite(value))
|
|
984
|
-
return value;
|
|
985
|
-
if (typeof value === 'string') {
|
|
986
|
-
const parsed = Number(value);
|
|
987
|
-
if (Number.isFinite(parsed))
|
|
988
|
-
return parsed;
|
|
989
|
-
}
|
|
990
|
-
return null;
|
|
991
|
-
}
|
|
992
|
-
function numberOrUndefined(value) {
|
|
993
|
-
const n = numberOrNull(value);
|
|
994
|
-
return n === null ? undefined : n;
|
|
995
|
-
}
|
|
996
|
-
function formatDuration(ms) {
|
|
997
|
-
const totalSeconds = Math.max(0, Math.round(ms / 1000));
|
|
998
|
-
const hours = Math.floor(totalSeconds / 3600);
|
|
999
|
-
const minutes = Math.floor((totalSeconds % 3600) / 60);
|
|
1000
|
-
const seconds = totalSeconds % 60;
|
|
1001
|
-
const parts = [];
|
|
1002
|
-
if (hours > 0)
|
|
1003
|
-
parts.push(`${hours}h`);
|
|
1004
|
-
if (minutes > 0 || hours > 0)
|
|
1005
|
-
parts.push(`${minutes}m`);
|
|
1006
|
-
parts.push(`${seconds}s`);
|
|
1007
|
-
return parts.join(' ');
|
|
1008
|
-
}
|
|
1009
|
-
function durationToMs(value) {
|
|
1010
|
-
if (typeof value === 'number' && Number.isFinite(value))
|
|
1011
|
-
return value;
|
|
1012
|
-
if (typeof value === 'string') {
|
|
1013
|
-
const parsed = Number(value);
|
|
1014
|
-
if (Number.isFinite(parsed))
|
|
1015
|
-
return parsed;
|
|
1016
|
-
}
|
|
1017
|
-
if (!value || typeof value !== 'object')
|
|
1018
|
-
return null;
|
|
1019
|
-
const rec = value;
|
|
1020
|
-
return (numberOrNull(rec.ms) ??
|
|
1021
|
-
numberOrNull(rec.millis) ??
|
|
1022
|
-
numberOrNull(rec.milliseconds) ??
|
|
1023
|
-
(typeof rec.secs === 'number' ? rec.secs * 1000 : null));
|
|
1024
|
-
}
|
|
1025
|
-
function safeJsonPreview(value) {
|
|
1026
|
-
try {
|
|
1027
|
-
const json = JSON.stringify(value);
|
|
1028
|
-
return json.length > 2_000 ? `${json.slice(0, 2_000)}…` : json;
|
|
1029
|
-
}
|
|
1030
|
-
catch {
|
|
1031
|
-
return String(value);
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
//# sourceMappingURL=jsonl-entry-parser.js.map
|