botmux 3.10.0 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +57 -4
- package/README.md +89 -4
- package/package.json +47 -31
- package/scripts/install-path-entry.mjs +263 -0
- package/scripts/postinstall-bin.mjs +388 -0
- package/dist/.runtime-build-id +0 -1
- package/dist/adapters/adopt-route.d.ts +0 -63
- package/dist/adapters/adopt-route.d.ts.map +0 -1
- package/dist/adapters/adopt-route.js +0 -196
- package/dist/adapters/adopt-route.js.map +0 -1
- package/dist/adapters/backend/capabilities.d.ts +0 -17
- package/dist/adapters/backend/capabilities.d.ts.map +0 -1
- package/dist/adapters/backend/capabilities.js +0 -22
- package/dist/adapters/backend/capabilities.js.map +0 -1
- package/dist/adapters/backend/critical-control-key.d.ts +0 -19
- package/dist/adapters/backend/critical-control-key.d.ts.map +0 -1
- package/dist/adapters/backend/critical-control-key.js +0 -34
- package/dist/adapters/backend/critical-control-key.js.map +0 -1
- package/dist/adapters/backend/herdr-backend.d.ts +0 -164
- package/dist/adapters/backend/herdr-backend.d.ts.map +0 -1
- package/dist/adapters/backend/herdr-backend.js +0 -1073
- package/dist/adapters/backend/herdr-backend.js.map +0 -1
- package/dist/adapters/backend/liveness-gate.d.ts +0 -38
- package/dist/adapters/backend/liveness-gate.d.ts.map +0 -1
- package/dist/adapters/backend/liveness-gate.js +0 -53
- package/dist/adapters/backend/liveness-gate.js.map +0 -1
- package/dist/adapters/backend/pty-backend.d.ts +0 -23
- package/dist/adapters/backend/pty-backend.d.ts.map +0 -1
- package/dist/adapters/backend/pty-backend.js +0 -70
- package/dist/adapters/backend/pty-backend.js.map +0 -1
- package/dist/adapters/backend/reproduce-command.d.ts +0 -39
- package/dist/adapters/backend/reproduce-command.d.ts.map +0 -1
- package/dist/adapters/backend/reproduce-command.js +0 -63
- package/dist/adapters/backend/reproduce-command.js.map +0 -1
- package/dist/adapters/backend/riff-backend.d.ts +0 -272
- package/dist/adapters/backend/riff-backend.d.ts.map +0 -1
- package/dist/adapters/backend/riff-backend.js +0 -1017
- package/dist/adapters/backend/riff-backend.js.map +0 -1
- package/dist/adapters/backend/sandbox.d.ts +0 -298
- package/dist/adapters/backend/sandbox.d.ts.map +0 -1
- package/dist/adapters/backend/sandbox.js +0 -1196
- package/dist/adapters/backend/sandbox.js.map +0 -1
- package/dist/adapters/backend/session-backend-selector.d.ts +0 -113
- package/dist/adapters/backend/session-backend-selector.d.ts.map +0 -1
- package/dist/adapters/backend/session-backend-selector.js +0 -344
- package/dist/adapters/backend/session-backend-selector.js.map +0 -1
- package/dist/adapters/backend/tmux-backend.d.ts +0 -292
- package/dist/adapters/backend/tmux-backend.d.ts.map +0 -1
- package/dist/adapters/backend/tmux-backend.js +0 -821
- package/dist/adapters/backend/tmux-backend.js.map +0 -1
- package/dist/adapters/backend/tmux-pipe-backend.d.ts +0 -237
- package/dist/adapters/backend/tmux-pipe-backend.d.ts.map +0 -1
- package/dist/adapters/backend/tmux-pipe-backend.js +0 -786
- package/dist/adapters/backend/tmux-pipe-backend.js.map +0 -1
- package/dist/adapters/backend/types.d.ts +0 -183
- package/dist/adapters/backend/types.d.ts.map +0 -1
- package/dist/adapters/backend/types.js +0 -19
- package/dist/adapters/backend/types.js.map +0 -1
- package/dist/adapters/backend/zellij-backend.d.ts +0 -173
- package/dist/adapters/backend/zellij-backend.d.ts.map +0 -1
- package/dist/adapters/backend/zellij-backend.js +0 -466
- package/dist/adapters/backend/zellij-backend.js.map +0 -1
- package/dist/adapters/backend/zellij-observe-backend.d.ts +0 -95
- package/dist/adapters/backend/zellij-observe-backend.d.ts.map +0 -1
- package/dist/adapters/backend/zellij-observe-backend.js +0 -301
- package/dist/adapters/backend/zellij-observe-backend.js.map +0 -1
- package/dist/adapters/backend/zellij-socket-probe.d.ts +0 -18
- package/dist/adapters/backend/zellij-socket-probe.d.ts.map +0 -1
- package/dist/adapters/backend/zellij-socket-probe.js +0 -146
- package/dist/adapters/backend/zellij-socket-probe.js.map +0 -1
- package/dist/adapters/backend/zmx-backend.d.ts +0 -284
- package/dist/adapters/backend/zmx-backend.d.ts.map +0 -1
- package/dist/adapters/backend/zmx-backend.js +0 -2387
- package/dist/adapters/backend/zmx-backend.js.map +0 -1
- package/dist/adapters/cli/aiden.d.ts +0 -4
- package/dist/adapters/cli/aiden.d.ts.map +0 -1
- package/dist/adapters/cli/aiden.js +0 -46
- package/dist/adapters/cli/aiden.js.map +0 -1
- package/dist/adapters/cli/antigravity.d.ts +0 -4
- package/dist/adapters/cli/antigravity.d.ts.map +0 -1
- package/dist/adapters/cli/antigravity.js +0 -274
- package/dist/adapters/cli/antigravity.js.map +0 -1
- package/dist/adapters/cli/claude-code.d.ts +0 -121
- package/dist/adapters/cli/claude-code.d.ts.map +0 -1
- package/dist/adapters/cli/claude-code.js +0 -1128
- package/dist/adapters/cli/claude-code.js.map +0 -1
- package/dist/adapters/cli/coco.d.ts +0 -4
- package/dist/adapters/cli/coco.d.ts.map +0 -1
- package/dist/adapters/cli/coco.js +0 -315
- package/dist/adapters/cli/coco.js.map +0 -1
- package/dist/adapters/cli/codex-app-turn.d.ts +0 -59
- package/dist/adapters/cli/codex-app-turn.d.ts.map +0 -1
- package/dist/adapters/cli/codex-app-turn.js +0 -136
- package/dist/adapters/cli/codex-app-turn.js.map +0 -1
- package/dist/adapters/cli/codex-app.d.ts +0 -4
- package/dist/adapters/cli/codex-app.d.ts.map +0 -1
- package/dist/adapters/cli/codex-app.js +0 -88
- package/dist/adapters/cli/codex-app.js.map +0 -1
- package/dist/adapters/cli/codex.d.ts +0 -4
- package/dist/adapters/cli/codex.d.ts.map +0 -1
- package/dist/adapters/cli/codex.js +0 -439
- package/dist/adapters/cli/codex.js.map +0 -1
- package/dist/adapters/cli/copilot.d.ts +0 -10
- package/dist/adapters/cli/copilot.d.ts.map +0 -1
- package/dist/adapters/cli/copilot.js +0 -73
- package/dist/adapters/cli/copilot.js.map +0 -1
- package/dist/adapters/cli/cursor.d.ts +0 -4
- package/dist/adapters/cli/cursor.d.ts.map +0 -1
- package/dist/adapters/cli/cursor.js +0 -104
- package/dist/adapters/cli/cursor.js.map +0 -1
- package/dist/adapters/cli/fs-policy.d.ts +0 -385
- package/dist/adapters/cli/fs-policy.d.ts.map +0 -1
- package/dist/adapters/cli/fs-policy.js +0 -889
- package/dist/adapters/cli/fs-policy.js.map +0 -1
- package/dist/adapters/cli/gemini.d.ts +0 -4
- package/dist/adapters/cli/gemini.d.ts.map +0 -1
- package/dist/adapters/cli/gemini.js +0 -53
- package/dist/adapters/cli/gemini.js.map +0 -1
- package/dist/adapters/cli/genius.d.ts +0 -4
- package/dist/adapters/cli/genius.d.ts.map +0 -1
- package/dist/adapters/cli/genius.js +0 -230
- package/dist/adapters/cli/genius.js.map +0 -1
- package/dist/adapters/cli/grok.d.ts +0 -76
- package/dist/adapters/cli/grok.d.ts.map +0 -1
- package/dist/adapters/cli/grok.js +0 -310
- package/dist/adapters/cli/grok.js.map +0 -1
- package/dist/adapters/cli/hermes.d.ts +0 -4
- package/dist/adapters/cli/hermes.d.ts.map +0 -1
- package/dist/adapters/cli/hermes.js +0 -83
- package/dist/adapters/cli/hermes.js.map +0 -1
- package/dist/adapters/cli/kimi.d.ts +0 -4
- package/dist/adapters/cli/kimi.d.ts.map +0 -1
- package/dist/adapters/cli/kimi.js +0 -54
- package/dist/adapters/cli/kimi.js.map +0 -1
- package/dist/adapters/cli/kiro-cli.d.ts +0 -4
- package/dist/adapters/cli/kiro-cli.d.ts.map +0 -1
- package/dist/adapters/cli/kiro-cli.js +0 -73
- package/dist/adapters/cli/kiro-cli.js.map +0 -1
- package/dist/adapters/cli/mir.d.ts +0 -4
- package/dist/adapters/cli/mir.d.ts.map +0 -1
- package/dist/adapters/cli/mir.js +0 -81
- package/dist/adapters/cli/mir.js.map +0 -1
- package/dist/adapters/cli/mira.d.ts +0 -4
- package/dist/adapters/cli/mira.d.ts.map +0 -1
- package/dist/adapters/cli/mira.js +0 -54
- package/dist/adapters/cli/mira.js.map +0 -1
- package/dist/adapters/cli/mtr.d.ts +0 -5
- package/dist/adapters/cli/mtr.d.ts.map +0 -1
- package/dist/adapters/cli/mtr.js +0 -69
- package/dist/adapters/cli/mtr.js.map +0 -1
- package/dist/adapters/cli/oh-my-pi.d.ts +0 -5
- package/dist/adapters/cli/oh-my-pi.d.ts.map +0 -1
- package/dist/adapters/cli/oh-my-pi.js +0 -186
- package/dist/adapters/cli/oh-my-pi.js.map +0 -1
- package/dist/adapters/cli/opencode.d.ts +0 -4
- package/dist/adapters/cli/opencode.d.ts.map +0 -1
- package/dist/adapters/cli/opencode.js +0 -305
- package/dist/adapters/cli/opencode.js.map +0 -1
- package/dist/adapters/cli/pi-initial-prompt-extension.d.ts +0 -27
- package/dist/adapters/cli/pi-initial-prompt-extension.d.ts.map +0 -1
- package/dist/adapters/cli/pi-initial-prompt-extension.js +0 -38
- package/dist/adapters/cli/pi-initial-prompt-extension.js.map +0 -1
- package/dist/adapters/cli/pi-initial-prompt.d.ts +0 -21
- package/dist/adapters/cli/pi-initial-prompt.d.ts.map +0 -1
- package/dist/adapters/cli/pi-initial-prompt.js +0 -59
- package/dist/adapters/cli/pi-initial-prompt.js.map +0 -1
- package/dist/adapters/cli/pi.d.ts +0 -58
- package/dist/adapters/cli/pi.d.ts.map +0 -1
- package/dist/adapters/cli/pi.js +0 -121
- package/dist/adapters/cli/pi.js.map +0 -1
- package/dist/adapters/cli/read-isolation.d.ts +0 -198
- package/dist/adapters/cli/read-isolation.d.ts.map +0 -1
- package/dist/adapters/cli/read-isolation.js +0 -335
- package/dist/adapters/cli/read-isolation.js.map +0 -1
- package/dist/adapters/cli/reasonix.d.ts +0 -35
- package/dist/adapters/cli/reasonix.d.ts.map +0 -1
- package/dist/adapters/cli/reasonix.js +0 -236
- package/dist/adapters/cli/reasonix.js.map +0 -1
- package/dist/adapters/cli/registry.d.ts +0 -51
- package/dist/adapters/cli/registry.d.ts.map +0 -1
- package/dist/adapters/cli/registry.js +0 -192
- package/dist/adapters/cli/registry.js.map +0 -1
- package/dist/adapters/cli/relay.d.ts +0 -26
- package/dist/adapters/cli/relay.d.ts.map +0 -1
- package/dist/adapters/cli/relay.js +0 -55
- package/dist/adapters/cli/relay.js.map +0 -1
- package/dist/adapters/cli/riff.d.ts +0 -14
- package/dist/adapters/cli/riff.d.ts.map +0 -1
- package/dist/adapters/cli/riff.js +0 -35
- package/dist/adapters/cli/riff.js.map +0 -1
- package/dist/adapters/cli/runner-control-channel.d.ts +0 -32
- package/dist/adapters/cli/runner-control-channel.d.ts.map +0 -1
- package/dist/adapters/cli/runner-control-channel.js +0 -104
- package/dist/adapters/cli/runner-control-channel.js.map +0 -1
- package/dist/adapters/cli/runner-input.d.ts +0 -67
- package/dist/adapters/cli/runner-input.d.ts.map +0 -1
- package/dist/adapters/cli/runner-input.js +0 -131
- package/dist/adapters/cli/runner-input.js.map +0 -1
- package/dist/adapters/cli/runtime.d.ts +0 -81
- package/dist/adapters/cli/runtime.d.ts.map +0 -1
- package/dist/adapters/cli/runtime.js +0 -243
- package/dist/adapters/cli/runtime.js.map +0 -1
- package/dist/adapters/cli/seed.d.ts +0 -29
- package/dist/adapters/cli/seed.d.ts.map +0 -1
- package/dist/adapters/cli/seed.js +0 -68
- package/dist/adapters/cli/seed.js.map +0 -1
- package/dist/adapters/cli/shared-hints.d.ts +0 -45
- package/dist/adapters/cli/shared-hints.d.ts.map +0 -1
- package/dist/adapters/cli/shared-hints.js +0 -144
- package/dist/adapters/cli/shared-hints.js.map +0 -1
- package/dist/adapters/cli/strict-input-handle.d.ts +0 -13
- package/dist/adapters/cli/strict-input-handle.d.ts.map +0 -1
- package/dist/adapters/cli/strict-input-handle.js +0 -39
- package/dist/adapters/cli/strict-input-handle.js.map +0 -1
- package/dist/adapters/cli/traex.d.ts +0 -28
- package/dist/adapters/cli/traex.d.ts.map +0 -1
- package/dist/adapters/cli/traex.js +0 -343
- package/dist/adapters/cli/traex.js.map +0 -1
- package/dist/adapters/cli/types.d.ts +0 -460
- package/dist/adapters/cli/types.d.ts.map +0 -1
- package/dist/adapters/cli/types.js +0 -2
- package/dist/adapters/cli/types.js.map +0 -1
- package/dist/adapters/coco-ask-plugin.d.ts +0 -25
- package/dist/adapters/coco-ask-plugin.d.ts.map +0 -1
- package/dist/adapters/coco-ask-plugin.js +0 -73
- package/dist/adapters/coco-ask-plugin.js.map +0 -1
- package/dist/adapters/hook-command.d.ts +0 -27
- package/dist/adapters/hook-command.d.ts.map +0 -1
- package/dist/adapters/hook-command.js +0 -50
- package/dist/adapters/hook-command.js.map +0 -1
- package/dist/adapters/hook-installer.d.ts +0 -37
- package/dist/adapters/hook-installer.d.ts.map +0 -1
- package/dist/adapters/hook-installer.js +0 -494
- package/dist/adapters/hook-installer.js.map +0 -1
- package/dist/autostart.d.ts +0 -14
- package/dist/autostart.d.ts.map +0 -1
- package/dist/autostart.js +0 -516
- package/dist/autostart.js.map +0 -1
- package/dist/bot-registry.d.ts +0 -942
- package/dist/bot-registry.d.ts.map +0 -1
- package/dist/bot-registry.js +0 -1909
- package/dist/bot-registry.js.map +0 -1
- package/dist/cli/arg-utils.d.ts +0 -11
- package/dist/cli/arg-utils.d.ts.map +0 -1
- package/dist/cli/arg-utils.js +0 -25
- package/dist/cli/arg-utils.js.map +0 -1
- package/dist/cli/bots-list-output.d.ts +0 -29
- package/dist/cli/bots-list-output.d.ts.map +0 -1
- package/dist/cli/bots-list-output.js +0 -32
- package/dist/cli/bots-list-output.js.map +0 -1
- package/dist/cli/capabilities.d.ts +0 -24
- package/dist/cli/capabilities.d.ts.map +0 -1
- package/dist/cli/capabilities.js +0 -25
- package/dist/cli/capabilities.js.map +0 -1
- package/dist/cli/create-group-resolver.d.ts +0 -75
- package/dist/cli/create-group-resolver.d.ts.map +0 -1
- package/dist/cli/create-group-resolver.js +0 -123
- package/dist/cli/create-group-resolver.js.map +0 -1
- package/dist/cli/daemon-lifecycle-env.d.ts +0 -9
- package/dist/cli/daemon-lifecycle-env.d.ts.map +0 -1
- package/dist/cli/daemon-lifecycle-env.js +0 -43
- package/dist/cli/daemon-lifecycle-env.js.map +0 -1
- package/dist/cli/dashboard-endpoint.d.ts +0 -76
- package/dist/cli/dashboard-endpoint.d.ts.map +0 -1
- package/dist/cli/dashboard-endpoint.js +0 -161
- package/dist/cli/dashboard-endpoint.js.map +0 -1
- package/dist/cli/deferred-topic-send.d.ts +0 -48
- package/dist/cli/deferred-topic-send.d.ts.map +0 -1
- package/dist/cli/deferred-topic-send.js +0 -86
- package/dist/cli/deferred-topic-send.js.map +0 -1
- package/dist/cli/exact-chat-grant-client.d.ts +0 -48
- package/dist/cli/exact-chat-grant-client.d.ts.map +0 -1
- package/dist/cli/exact-chat-grant-client.js +0 -108
- package/dist/cli/exact-chat-grant-client.js.map +0 -1
- package/dist/cli/exact-chat-grant.d.ts +0 -18
- package/dist/cli/exact-chat-grant.d.ts.map +0 -1
- package/dist/cli/exact-chat-grant.js +0 -97
- package/dist/cli/exact-chat-grant.js.map +0 -1
- package/dist/cli/pm2-command.d.ts +0 -7
- package/dist/cli/pm2-command.d.ts.map +0 -1
- package/dist/cli/pm2-command.js +0 -25
- package/dist/cli/pm2-command.js.map +0 -1
- package/dist/cli/quoted-render.d.ts +0 -41
- package/dist/cli/quoted-render.d.ts.map +0 -1
- package/dist/cli/quoted-render.js +0 -44
- package/dist/cli/quoted-render.js.map +0 -1
- package/dist/cli/saved-workflow.d.ts +0 -25
- package/dist/cli/saved-workflow.d.ts.map +0 -1
- package/dist/cli/saved-workflow.js +0 -338
- package/dist/cli/saved-workflow.js.map +0 -1
- package/dist/cli/send-dispatch.d.ts +0 -125
- package/dist/cli/send-dispatch.d.ts.map +0 -1
- package/dist/cli/send-dispatch.js +0 -320
- package/dist/cli/send-dispatch.js.map +0 -1
- package/dist/cli/session-list-liveness.d.ts +0 -41
- package/dist/cli/session-list-liveness.d.ts.map +0 -1
- package/dist/cli/session-list-liveness.js +0 -48
- package/dist/cli/session-list-liveness.js.map +0 -1
- package/dist/cli/stdin-encoding.d.ts +0 -24
- package/dist/cli/stdin-encoding.d.ts.map +0 -1
- package/dist/cli/stdin-encoding.js +0 -56
- package/dist/cli/stdin-encoding.js.map +0 -1
- package/dist/cli/v3-run-cancel.d.ts +0 -47
- package/dist/cli/v3-run-cancel.d.ts.map +0 -1
- package/dist/cli/v3-run-cancel.js +0 -96
- package/dist/cli/v3-run-cancel.js.map +0 -1
- package/dist/cli/vc-agent.d.ts +0 -2
- package/dist/cli/vc-agent.d.ts.map +0 -1
- package/dist/cli/vc-agent.js +0 -384
- package/dist/cli/vc-agent.js.map +0 -1
- package/dist/cli/workflow-migration.d.ts +0 -39
- package/dist/cli/workflow-migration.d.ts.map +0 -1
- package/dist/cli/workflow-migration.js +0 -302
- package/dist/cli/workflow-migration.js.map +0 -1
- package/dist/cli/workflow-run-archive.d.ts +0 -29
- package/dist/cli/workflow-run-archive.d.ts.map +0 -1
- package/dist/cli/workflow-run-archive.js +0 -183
- package/dist/cli/workflow-run-archive.js.map +0 -1
- package/dist/cli/workflow.d.ts +0 -8
- package/dist/cli/workflow.d.ts.map +0 -1
- package/dist/cli/workflow.js +0 -109
- package/dist/cli/workflow.js.map +0 -1
- package/dist/cli/zmx-managed-attach.d.ts +0 -41
- package/dist/cli/zmx-managed-attach.d.ts.map +0 -1
- package/dist/cli/zmx-managed-attach.js +0 -72
- package/dist/cli/zmx-managed-attach.js.map +0 -1
- package/dist/cli.d.ts +0 -35
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -10769
- package/dist/cli.js.map +0 -1
- package/dist/codex-app-runner.d.ts +0 -3
- package/dist/codex-app-runner.d.ts.map +0 -1
- package/dist/codex-app-runner.js +0 -565
- package/dist/codex-app-runner.js.map +0 -1
- package/dist/codex-rpc-engine.d.ts +0 -136
- package/dist/codex-rpc-engine.d.ts.map +0 -1
- package/dist/codex-rpc-engine.js +0 -640
- package/dist/codex-rpc-engine.js.map +0 -1
- package/dist/codex-rpc-lifecycle.d.ts +0 -157
- package/dist/codex-rpc-lifecycle.d.ts.map +0 -1
- package/dist/codex-rpc-lifecycle.js +0 -238
- package/dist/codex-rpc-lifecycle.js.map +0 -1
- package/dist/config.d.ts +0 -146
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -293
- package/dist/config.js.map +0 -1
- package/dist/core/ask-api.d.ts +0 -29
- package/dist/core/ask-api.d.ts.map +0 -1
- package/dist/core/ask-api.js +0 -116
- package/dist/core/ask-api.js.map +0 -1
- package/dist/core/ask-args.d.ts +0 -53
- package/dist/core/ask-args.d.ts.map +0 -1
- package/dist/core/ask-args.js +0 -122
- package/dist/core/ask-args.js.map +0 -1
- package/dist/core/ask-broker.d.ts +0 -166
- package/dist/core/ask-broker.d.ts.map +0 -1
- package/dist/core/ask-broker.js +0 -451
- package/dist/core/ask-broker.js.map +0 -1
- package/dist/core/ask-hook/claude-code.d.ts +0 -50
- package/dist/core/ask-hook/claude-code.d.ts.map +0 -1
- package/dist/core/ask-hook/claude-code.js +0 -151
- package/dist/core/ask-hook/claude-code.js.map +0 -1
- package/dist/core/ask-hook/coco.d.ts +0 -22
- package/dist/core/ask-hook/coco.d.ts.map +0 -1
- package/dist/core/ask-hook/coco.js +0 -35
- package/dist/core/ask-hook/coco.js.map +0 -1
- package/dist/core/ask-hook/codex.d.ts +0 -43
- package/dist/core/ask-hook/codex.d.ts.map +0 -1
- package/dist/core/ask-hook/codex.js +0 -70
- package/dist/core/ask-hook/codex.js.map +0 -1
- package/dist/core/ask-hook/opencode.d.ts +0 -39
- package/dist/core/ask-hook/opencode.d.ts.map +0 -1
- package/dist/core/ask-hook/opencode.js +0 -109
- package/dist/core/ask-hook/opencode.js.map +0 -1
- package/dist/core/ask-hook/registry.d.ts +0 -3
- package/dist/core/ask-hook/registry.d.ts.map +0 -1
- package/dist/core/ask-hook/registry.js +0 -25
- package/dist/core/ask-hook/registry.js.map +0 -1
- package/dist/core/ask-hook/types.d.ts +0 -28
- package/dist/core/ask-hook/types.d.ts.map +0 -1
- package/dist/core/ask-hook/types.js +0 -2
- package/dist/core/ask-hook/types.js.map +0 -1
- package/dist/core/ask-types.d.ts +0 -157
- package/dist/core/ask-types.d.ts.map +0 -1
- package/dist/core/ask-types.js +0 -28
- package/dist/core/ask-types.js.map +0 -1
- package/dist/core/attachment-path.d.ts +0 -3
- package/dist/core/attachment-path.d.ts.map +0 -1
- package/dist/core/attachment-path.js +0 -8
- package/dist/core/attachment-path.js.map +0 -1
- package/dist/core/auto-start.d.ts +0 -84
- package/dist/core/auto-start.d.ts.map +0 -1
- package/dist/core/auto-start.js +0 -92
- package/dist/core/auto-start.js.map +0 -1
- package/dist/core/bot-live-control.d.ts +0 -41
- package/dist/core/bot-live-control.d.ts.map +0 -1
- package/dist/core/bot-live-control.js +0 -135
- package/dist/core/bot-live-control.js.map +0 -1
- package/dist/core/bot-turn-mutation-gate.d.ts +0 -24
- package/dist/core/bot-turn-mutation-gate.d.ts.map +0 -1
- package/dist/core/bot-turn-mutation-gate.js +0 -369
- package/dist/core/bot-turn-mutation-gate.js.map +0 -1
- package/dist/core/botmux-wrapper.d.ts +0 -41
- package/dist/core/botmux-wrapper.d.ts.map +0 -1
- package/dist/core/botmux-wrapper.js +0 -63
- package/dist/core/botmux-wrapper.js.map +0 -1
- package/dist/core/chat-rename.d.ts +0 -27
- package/dist/core/chat-rename.d.ts.map +0 -1
- package/dist/core/chat-rename.js +0 -53
- package/dist/core/chat-rename.js.map +0 -1
- package/dist/core/cli-runtime-display.d.ts +0 -19
- package/dist/core/cli-runtime-display.d.ts.map +0 -1
- package/dist/core/cli-runtime-display.js +0 -28
- package/dist/core/cli-runtime-display.js.map +0 -1
- package/dist/core/cli-runtime-update.d.ts +0 -129
- package/dist/core/cli-runtime-update.d.ts.map +0 -1
- package/dist/core/cli-runtime-update.js +0 -737
- package/dist/core/cli-runtime-update.js.map +0 -1
- package/dist/core/closed-session-card.d.ts +0 -16
- package/dist/core/closed-session-card.d.ts.map +0 -1
- package/dist/core/closed-session-card.js +0 -80
- package/dist/core/closed-session-card.js.map +0 -1
- package/dist/core/coco-picker-keys.d.ts +0 -31
- package/dist/core/coco-picker-keys.d.ts.map +0 -1
- package/dist/core/coco-picker-keys.js +0 -60
- package/dist/core/coco-picker-keys.js.map +0 -1
- package/dist/core/command-discovery.d.ts +0 -33
- package/dist/core/command-discovery.d.ts.map +0 -1
- package/dist/core/command-discovery.js +0 -261
- package/dist/core/command-discovery.js.map +0 -1
- package/dist/core/command-handler.d.ts +0 -163
- package/dist/core/command-handler.d.ts.map +0 -1
- package/dist/core/command-handler.js +0 -4108
- package/dist/core/command-handler.js.map +0 -1
- package/dist/core/cost-calculator.d.ts +0 -69
- package/dist/core/cost-calculator.d.ts.map +0 -1
- package/dist/core/cost-calculator.js +0 -603
- package/dist/core/cost-calculator.js.map +0 -1
- package/dist/core/current-turn-provenance.d.ts +0 -39
- package/dist/core/current-turn-provenance.d.ts.map +0 -1
- package/dist/core/current-turn-provenance.js +0 -122
- package/dist/core/current-turn-provenance.js.map +0 -1
- package/dist/core/daemon-config-fence.d.ts +0 -8
- package/dist/core/daemon-config-fence.d.ts.map +0 -1
- package/dist/core/daemon-config-fence.js +0 -13
- package/dist/core/daemon-config-fence.js.map +0 -1
- package/dist/core/daemon-heartbeat.d.ts +0 -15
- package/dist/core/daemon-heartbeat.d.ts.map +0 -1
- package/dist/core/daemon-heartbeat.js +0 -83
- package/dist/core/daemon-heartbeat.js.map +0 -1
- package/dist/core/daemon-ipc-auth.d.ts +0 -20
- package/dist/core/daemon-ipc-auth.d.ts.map +0 -1
- package/dist/core/daemon-ipc-auth.js +0 -44
- package/dist/core/daemon-ipc-auth.js.map +0 -1
- package/dist/core/daemon-ipc-session-auth.d.ts +0 -37
- package/dist/core/daemon-ipc-session-auth.d.ts.map +0 -1
- package/dist/core/daemon-ipc-session-auth.js +0 -35
- package/dist/core/daemon-ipc-session-auth.js.map +0 -1
- package/dist/core/dashboard-command/groups.d.ts +0 -20
- package/dist/core/dashboard-command/groups.d.ts.map +0 -1
- package/dist/core/dashboard-command/groups.js +0 -52
- package/dist/core/dashboard-command/groups.js.map +0 -1
- package/dist/core/dashboard-command/index.d.ts +0 -28
- package/dist/core/dashboard-command/index.d.ts.map +0 -1
- package/dist/core/dashboard-command/index.js +0 -81
- package/dist/core/dashboard-command/index.js.map +0 -1
- package/dist/core/dashboard-command/overview.d.ts +0 -29
- package/dist/core/dashboard-command/overview.d.ts.map +0 -1
- package/dist/core/dashboard-command/overview.js +0 -61
- package/dist/core/dashboard-command/overview.js.map +0 -1
- package/dist/core/dashboard-command/owner-gate.d.ts +0 -41
- package/dist/core/dashboard-command/owner-gate.d.ts.map +0 -1
- package/dist/core/dashboard-command/owner-gate.js +0 -40
- package/dist/core/dashboard-command/owner-gate.js.map +0 -1
- package/dist/core/dashboard-command/schedules.d.ts +0 -20
- package/dist/core/dashboard-command/schedules.d.ts.map +0 -1
- package/dist/core/dashboard-command/schedules.js +0 -47
- package/dist/core/dashboard-command/schedules.js.map +0 -1
- package/dist/core/dashboard-command/sessions.d.ts +0 -22
- package/dist/core/dashboard-command/sessions.d.ts.map +0 -1
- package/dist/core/dashboard-command/sessions.js +0 -43
- package/dist/core/dashboard-command/sessions.js.map +0 -1
- package/dist/core/dashboard-command/settings.d.ts +0 -21
- package/dist/core/dashboard-command/settings.d.ts.map +0 -1
- package/dist/core/dashboard-command/settings.js +0 -55
- package/dist/core/dashboard-command/settings.js.map +0 -1
- package/dist/core/dashboard-command/stub.d.ts +0 -16
- package/dist/core/dashboard-command/stub.d.ts.map +0 -1
- package/dist/core/dashboard-command/stub.js +0 -27
- package/dist/core/dashboard-command/stub.js.map +0 -1
- package/dist/core/dashboard-events.d.ts +0 -67
- package/dist/core/dashboard-events.d.ts.map +0 -1
- package/dist/core/dashboard-events.js +0 -23
- package/dist/core/dashboard-events.js.map +0 -1
- package/dist/core/dashboard-images.d.ts +0 -29
- package/dist/core/dashboard-images.d.ts.map +0 -1
- package/dist/core/dashboard-images.js +0 -113
- package/dist/core/dashboard-images.js.map +0 -1
- package/dist/core/dashboard-ipc-server.d.ts +0 -114
- package/dist/core/dashboard-ipc-server.d.ts.map +0 -1
- package/dist/core/dashboard-ipc-server.js +0 -4398
- package/dist/core/dashboard-ipc-server.js.map +0 -1
- package/dist/core/dashboard-locate.d.ts +0 -20
- package/dist/core/dashboard-locate.d.ts.map +0 -1
- package/dist/core/dashboard-locate.js +0 -26
- package/dist/core/dashboard-locate.js.map +0 -1
- package/dist/core/dashboard-rows.d.ts +0 -117
- package/dist/core/dashboard-rows.d.ts.map +0 -1
- package/dist/core/dashboard-rows.js +0 -206
- package/dist/core/dashboard-rows.js.map +0 -1
- package/dist/core/dashboard-secret.d.ts +0 -3
- package/dist/core/dashboard-secret.d.ts.map +0 -1
- package/dist/core/dashboard-secret.js +0 -7
- package/dist/core/dashboard-secret.js.map +0 -1
- package/dist/core/dashboard-url.d.ts +0 -79
- package/dist/core/dashboard-url.d.ts.map +0 -1
- package/dist/core/dashboard-url.js +0 -107
- package/dist/core/dashboard-url.js.map +0 -1
- package/dist/core/data-dir.d.ts +0 -24
- package/dist/core/data-dir.d.ts.map +0 -1
- package/dist/core/data-dir.js +0 -48
- package/dist/core/data-dir.js.map +0 -1
- package/dist/core/deferred-schedule-settlement.d.ts +0 -20
- package/dist/core/deferred-schedule-settlement.d.ts.map +0 -1
- package/dist/core/deferred-schedule-settlement.js +0 -18
- package/dist/core/deferred-schedule-settlement.js.map +0 -1
- package/dist/core/deferred-topic-binding.d.ts +0 -19
- package/dist/core/deferred-topic-binding.d.ts.map +0 -1
- package/dist/core/deferred-topic-binding.js +0 -55
- package/dist/core/deferred-topic-binding.js.map +0 -1
- package/dist/core/device-isolation-activation.d.ts +0 -56
- package/dist/core/device-isolation-activation.d.ts.map +0 -1
- package/dist/core/device-isolation-activation.js +0 -110
- package/dist/core/device-isolation-activation.js.map +0 -1
- package/dist/core/device-isolation-daemon.d.ts +0 -106
- package/dist/core/device-isolation-daemon.d.ts.map +0 -1
- package/dist/core/device-isolation-daemon.js +0 -674
- package/dist/core/device-isolation-daemon.js.map +0 -1
- package/dist/core/dispatch-registry.d.ts +0 -12
- package/dist/core/dispatch-registry.d.ts.map +0 -1
- package/dist/core/dispatch-registry.js +0 -33
- package/dist/core/dispatch-registry.js.map +0 -1
- package/dist/core/dispatch.d.ts +0 -364
- package/dist/core/dispatch.d.ts.map +0 -1
- package/dist/core/dispatch.js +0 -527
- package/dist/core/dispatch.js.map +0 -1
- package/dist/core/doc-comment-poller.d.ts +0 -36
- package/dist/core/doc-comment-poller.d.ts.map +0 -1
- package/dist/core/doc-comment-poller.js +0 -60
- package/dist/core/doc-comment-poller.js.map +0 -1
- package/dist/core/doc-comment-prompt.d.ts +0 -90
- package/dist/core/doc-comment-prompt.d.ts.map +0 -1
- package/dist/core/doc-comment-prompt.js +0 -252
- package/dist/core/doc-comment-prompt.js.map +0 -1
- package/dist/core/doc-watch-command.d.ts +0 -22
- package/dist/core/doc-watch-command.d.ts.map +0 -1
- package/dist/core/doc-watch-command.js +0 -41
- package/dist/core/doc-watch-command.js.map +0 -1
- package/dist/core/github-auth.d.ts +0 -13
- package/dist/core/github-auth.d.ts.map +0 -1
- package/dist/core/github-auth.js +0 -82
- package/dist/core/github-auth.js.map +0 -1
- package/dist/core/host-overload-alert.d.ts +0 -232
- package/dist/core/host-overload-alert.d.ts.map +0 -1
- package/dist/core/host-overload-alert.js +0 -354
- package/dist/core/host-overload-alert.js.map +0 -1
- package/dist/core/idle-worker-sweeper.d.ts +0 -39
- package/dist/core/idle-worker-sweeper.d.ts.map +0 -1
- package/dist/core/idle-worker-sweeper.js +0 -63
- package/dist/core/idle-worker-sweeper.js.map +0 -1
- package/dist/core/inflight-input-tracker.d.ts +0 -54
- package/dist/core/inflight-input-tracker.d.ts.map +0 -1
- package/dist/core/inflight-input-tracker.js +0 -64
- package/dist/core/inflight-input-tracker.js.map +0 -1
- package/dist/core/inherit-peer.d.ts +0 -19
- package/dist/core/inherit-peer.d.ts.map +0 -1
- package/dist/core/inherit-peer.js +0 -55
- package/dist/core/inherit-peer.js.map +0 -1
- package/dist/core/initial-user-turn.d.ts +0 -14
- package/dist/core/initial-user-turn.d.ts.map +0 -1
- package/dist/core/initial-user-turn.js +0 -65
- package/dist/core/initial-user-turn.js.map +0 -1
- package/dist/core/inject-queue-policy.d.ts +0 -70
- package/dist/core/inject-queue-policy.d.ts.map +0 -1
- package/dist/core/inject-queue-policy.js +0 -30
- package/dist/core/inject-queue-policy.js.map +0 -1
- package/dist/core/input-turn-dedupe.d.ts +0 -20
- package/dist/core/input-turn-dedupe.d.ts.map +0 -1
- package/dist/core/input-turn-dedupe.js +0 -57
- package/dist/core/input-turn-dedupe.js.map +0 -1
- package/dist/core/local-terminal-opener.d.ts +0 -43
- package/dist/core/local-terminal-opener.d.ts.map +0 -1
- package/dist/core/local-terminal-opener.js +0 -230
- package/dist/core/local-terminal-opener.js.map +0 -1
- package/dist/core/maintenance-schedule.d.ts +0 -34
- package/dist/core/maintenance-schedule.d.ts.map +0 -1
- package/dist/core/maintenance-schedule.js +0 -72
- package/dist/core/maintenance-schedule.js.map +0 -1
- package/dist/core/maintenance.d.ts +0 -114
- package/dist/core/maintenance.d.ts.map +0 -1
- package/dist/core/maintenance.js +0 -340
- package/dist/core/maintenance.js.map +0 -1
- package/dist/core/managed-origin-capability.d.ts +0 -37
- package/dist/core/managed-origin-capability.d.ts.map +0 -1
- package/dist/core/managed-origin-capability.js +0 -100
- package/dist/core/managed-origin-capability.js.map +0 -1
- package/dist/core/passthrough-commands.d.ts +0 -56
- package/dist/core/passthrough-commands.d.ts.map +0 -1
- package/dist/core/passthrough-commands.js +0 -120
- package/dist/core/passthrough-commands.js.map +0 -1
- package/dist/core/pending-response.d.ts +0 -4
- package/dist/core/pending-response.d.ts.map +0 -1
- package/dist/core/pending-response.js +0 -11
- package/dist/core/pending-response.js.map +0 -1
- package/dist/core/per-bot-env.d.ts +0 -38
- package/dist/core/per-bot-env.d.ts.map +0 -1
- package/dist/core/per-bot-env.js +0 -94
- package/dist/core/per-bot-env.js.map +0 -1
- package/dist/core/persistent-backend.d.ts +0 -107
- package/dist/core/persistent-backend.d.ts.map +0 -1
- package/dist/core/persistent-backend.js +0 -235
- package/dist/core/persistent-backend.js.map +0 -1
- package/dist/core/plugins/cli-generation.d.ts +0 -30
- package/dist/core/plugins/cli-generation.d.ts.map +0 -1
- package/dist/core/plugins/cli-generation.js +0 -62
- package/dist/core/plugins/cli-generation.js.map +0 -1
- package/dist/core/plugins/convention-scanner.d.ts +0 -4
- package/dist/core/plugins/convention-scanner.d.ts.map +0 -1
- package/dist/core/plugins/convention-scanner.js +0 -202
- package/dist/core/plugins/convention-scanner.js.map +0 -1
- package/dist/core/plugins/dependencies.d.ts +0 -5
- package/dist/core/plugins/dependencies.d.ts.map +0 -1
- package/dist/core/plugins/dependencies.js +0 -50
- package/dist/core/plugins/dependencies.js.map +0 -1
- package/dist/core/plugins/effective.d.ts +0 -5
- package/dist/core/plugins/effective.d.ts.map +0 -1
- package/dist/core/plugins/effective.js +0 -16
- package/dist/core/plugins/effective.js.map +0 -1
- package/dist/core/plugins/ids.d.ts +0 -4
- package/dist/core/plugins/ids.d.ts.map +0 -1
- package/dist/core/plugins/ids.js +0 -30
- package/dist/core/plugins/ids.js.map +0 -1
- package/dist/core/plugins/init.d.ts +0 -23
- package/dist/core/plugins/init.d.ts.map +0 -1
- package/dist/core/plugins/init.js +0 -332
- package/dist/core/plugins/init.js.map +0 -1
- package/dist/core/plugins/install.d.ts +0 -14
- package/dist/core/plugins/install.d.ts.map +0 -1
- package/dist/core/plugins/install.js +0 -234
- package/dist/core/plugins/install.js.map +0 -1
- package/dist/core/plugins/manifest.d.ts +0 -4
- package/dist/core/plugins/manifest.d.ts.map +0 -1
- package/dist/core/plugins/manifest.js +0 -78
- package/dist/core/plugins/manifest.js.map +0 -1
- package/dist/core/plugins/materializer.d.ts +0 -16
- package/dist/core/plugins/materializer.d.ts.map +0 -1
- package/dist/core/plugins/materializer.js +0 -73
- package/dist/core/plugins/materializer.js.map +0 -1
- package/dist/core/plugins/mcp/environment.d.ts +0 -12
- package/dist/core/plugins/mcp/environment.d.ts.map +0 -1
- package/dist/core/plugins/mcp/environment.js +0 -17
- package/dist/core/plugins/mcp/environment.js.map +0 -1
- package/dist/core/plugins/mcp/gateway-installer.d.ts +0 -16
- package/dist/core/plugins/mcp/gateway-installer.d.ts.map +0 -1
- package/dist/core/plugins/mcp/gateway-installer.js +0 -273
- package/dist/core/plugins/mcp/gateway-installer.js.map +0 -1
- package/dist/core/plugins/mcp/gateway.d.ts +0 -63
- package/dist/core/plugins/mcp/gateway.d.ts.map +0 -1
- package/dist/core/plugins/mcp/gateway.js +0 -620
- package/dist/core/plugins/mcp/gateway.js.map +0 -1
- package/dist/core/plugins/mcp/host.d.ts +0 -18
- package/dist/core/plugins/mcp/host.d.ts.map +0 -1
- package/dist/core/plugins/mcp/host.js +0 -126
- package/dist/core/plugins/mcp/host.js.map +0 -1
- package/dist/core/plugins/mcp/private-store.d.ts +0 -15
- package/dist/core/plugins/mcp/private-store.d.ts.map +0 -1
- package/dist/core/plugins/mcp/private-store.js +0 -162
- package/dist/core/plugins/mcp/private-store.js.map +0 -1
- package/dist/core/plugins/mcp/session-runtime.d.ts +0 -25
- package/dist/core/plugins/mcp/session-runtime.d.ts.map +0 -1
- package/dist/core/plugins/mcp/session-runtime.js +0 -76
- package/dist/core/plugins/mcp/session-runtime.js.map +0 -1
- package/dist/core/plugins/mcp/socket-auth.d.ts +0 -9
- package/dist/core/plugins/mcp/socket-auth.d.ts.map +0 -1
- package/dist/core/plugins/mcp/socket-auth.js +0 -94
- package/dist/core/plugins/mcp/socket-auth.js.map +0 -1
- package/dist/core/plugins/paths.d.ts +0 -17
- package/dist/core/plugins/paths.d.ts.map +0 -1
- package/dist/core/plugins/paths.js +0 -71
- package/dist/core/plugins/paths.js.map +0 -1
- package/dist/core/plugins/pm2.d.ts +0 -13
- package/dist/core/plugins/pm2.d.ts.map +0 -1
- package/dist/core/plugins/pm2.js +0 -73
- package/dist/core/plugins/pm2.js.map +0 -1
- package/dist/core/plugins/runtime.d.ts +0 -54
- package/dist/core/plugins/runtime.d.ts.map +0 -1
- package/dist/core/plugins/runtime.js +0 -158
- package/dist/core/plugins/runtime.js.map +0 -1
- package/dist/core/plugins/service-manager.d.ts +0 -46
- package/dist/core/plugins/service-manager.d.ts.map +0 -1
- package/dist/core/plugins/service-manager.js +0 -403
- package/dist/core/plugins/service-manager.js.map +0 -1
- package/dist/core/plugins/session-manifest.d.ts +0 -25
- package/dist/core/plugins/session-manifest.d.ts.map +0 -1
- package/dist/core/plugins/session-manifest.js +0 -58
- package/dist/core/plugins/session-manifest.js.map +0 -1
- package/dist/core/plugins/skills.d.ts +0 -7
- package/dist/core/plugins/skills.d.ts.map +0 -1
- package/dist/core/plugins/skills.js +0 -36
- package/dist/core/plugins/skills.js.map +0 -1
- package/dist/core/plugins/types.d.ts +0 -139
- package/dist/core/plugins/types.d.ts.map +0 -1
- package/dist/core/plugins/types.js +0 -2
- package/dist/core/plugins/types.js.map +0 -1
- package/dist/core/reply-target.d.ts +0 -62
- package/dist/core/reply-target.d.ts.map +0 -1
- package/dist/core/reply-target.js +0 -122
- package/dist/core/reply-target.js.map +0 -1
- package/dist/core/resource-monitor/attribution.d.ts +0 -70
- package/dist/core/resource-monitor/attribution.d.ts.map +0 -1
- package/dist/core/resource-monitor/attribution.js +0 -238
- package/dist/core/resource-monitor/attribution.js.map +0 -1
- package/dist/core/resource-monitor/darwin.d.ts +0 -145
- package/dist/core/resource-monitor/darwin.d.ts.map +0 -1
- package/dist/core/resource-monitor/darwin.js +0 -360
- package/dist/core/resource-monitor/darwin.js.map +0 -1
- package/dist/core/resource-monitor/procfs.d.ts +0 -22
- package/dist/core/resource-monitor/procfs.d.ts.map +0 -1
- package/dist/core/resource-monitor/procfs.js +0 -140
- package/dist/core/resource-monitor/procfs.js.map +0 -1
- package/dist/core/resource-monitor/ring-buffer.d.ts +0 -15
- package/dist/core/resource-monitor/ring-buffer.d.ts.map +0 -1
- package/dist/core/resource-monitor/ring-buffer.js +0 -61
- package/dist/core/resource-monitor/ring-buffer.js.map +0 -1
- package/dist/core/resource-monitor/runtime.d.ts +0 -31
- package/dist/core/resource-monitor/runtime.d.ts.map +0 -1
- package/dist/core/resource-monitor/runtime.js +0 -92
- package/dist/core/resource-monitor/runtime.js.map +0 -1
- package/dist/core/resource-monitor/top-selector.d.ts +0 -18
- package/dist/core/resource-monitor/top-selector.d.ts.map +0 -1
- package/dist/core/resource-monitor/top-selector.js +0 -57
- package/dist/core/resource-monitor/top-selector.js.map +0 -1
- package/dist/core/resource-monitor/types.d.ts +0 -181
- package/dist/core/resource-monitor/types.d.ts.map +0 -1
- package/dist/core/resource-monitor/types.js +0 -2
- package/dist/core/resource-monitor/types.js.map +0 -1
- package/dist/core/restart-coordinator.d.ts +0 -28
- package/dist/core/restart-coordinator.d.ts.map +0 -1
- package/dist/core/restart-coordinator.js +0 -82
- package/dist/core/restart-coordinator.js.map +0 -1
- package/dist/core/restart-followup-policy.d.ts +0 -112
- package/dist/core/restart-followup-policy.d.ts.map +0 -1
- package/dist/core/restart-followup-policy.js +0 -49
- package/dist/core/restart-followup-policy.js.map +0 -1
- package/dist/core/restart-report.d.ts +0 -63
- package/dist/core/restart-report.d.ts.map +0 -1
- package/dist/core/restart-report.js +0 -122
- package/dist/core/restart-report.js.map +0 -1
- package/dist/core/role-library.d.ts +0 -62
- package/dist/core/role-library.d.ts.map +0 -1
- package/dist/core/role-library.js +0 -183
- package/dist/core/role-library.js.map +0 -1
- package/dist/core/role-resolver.d.ts +0 -81
- package/dist/core/role-resolver.d.ts.map +0 -1
- package/dist/core/role-resolver.js +0 -306
- package/dist/core/role-resolver.js.map +0 -1
- package/dist/core/scheduler.d.ts +0 -173
- package/dist/core/scheduler.d.ts.map +0 -1
- package/dist/core/scheduler.js +0 -799
- package/dist/core/scheduler.js.map +0 -1
- package/dist/core/session-activity.d.ts +0 -43
- package/dist/core/session-activity.d.ts.map +0 -1
- package/dist/core/session-activity.js +0 -131
- package/dist/core/session-activity.js.map +0 -1
- package/dist/core/session-board.d.ts +0 -13
- package/dist/core/session-board.d.ts.map +0 -1
- package/dist/core/session-board.js +0 -28
- package/dist/core/session-board.js.map +0 -1
- package/dist/core/session-create.d.ts +0 -109
- package/dist/core/session-create.d.ts.map +0 -1
- package/dist/core/session-create.js +0 -183
- package/dist/core/session-create.js.map +0 -1
- package/dist/core/session-cwd.d.ts +0 -14
- package/dist/core/session-cwd.d.ts.map +0 -1
- package/dist/core/session-cwd.js +0 -25
- package/dist/core/session-cwd.js.map +0 -1
- package/dist/core/session-discovery.d.ts +0 -241
- package/dist/core/session-discovery.d.ts.map +0 -1
- package/dist/core/session-discovery.js +0 -1127
- package/dist/core/session-discovery.js.map +0 -1
- package/dist/core/session-liveness.d.ts +0 -41
- package/dist/core/session-liveness.d.ts.map +0 -1
- package/dist/core/session-liveness.js +0 -50
- package/dist/core/session-liveness.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -383
- package/dist/core/session-manager.d.ts.map +0 -1
- package/dist/core/session-manager.js +0 -2545
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/session-marker.d.ts +0 -56
- package/dist/core/session-marker.d.ts.map +0 -1
- package/dist/core/session-marker.js +0 -240
- package/dist/core/session-marker.js.map +0 -1
- package/dist/core/session-message-preview.d.ts +0 -20
- package/dist/core/session-message-preview.d.ts.map +0 -1
- package/dist/core/session-message-preview.js +0 -188
- package/dist/core/session-message-preview.js.map +0 -1
- package/dist/core/session-ready-handshake.d.ts +0 -11
- package/dist/core/session-ready-handshake.d.ts.map +0 -1
- package/dist/core/session-ready-handshake.js +0 -41
- package/dist/core/session-ready-handshake.js.map +0 -1
- package/dist/core/session-rename.d.ts +0 -25
- package/dist/core/session-rename.d.ts.map +0 -1
- package/dist/core/session-rename.js +0 -43
- package/dist/core/session-rename.js.map +0 -1
- package/dist/core/session-row-enrichment.d.ts +0 -15
- package/dist/core/session-row-enrichment.d.ts.map +0 -1
- package/dist/core/session-row-enrichment.js +0 -93
- package/dist/core/session-row-enrichment.js.map +0 -1
- package/dist/core/session-title.d.ts +0 -23
- package/dist/core/session-title.d.ts.map +0 -1
- package/dist/core/session-title.js +0 -88
- package/dist/core/session-title.js.map +0 -1
- package/dist/core/silent-schedule-turns.d.ts +0 -5
- package/dist/core/silent-schedule-turns.d.ts.map +0 -1
- package/dist/core/silent-schedule-turns.js +0 -47
- package/dist/core/silent-schedule-turns.js.map +0 -1
- package/dist/core/skills/claude-plugin-delivery.d.ts +0 -6
- package/dist/core/skills/claude-plugin-delivery.d.ts.map +0 -1
- package/dist/core/skills/claude-plugin-delivery.js +0 -21
- package/dist/core/skills/claude-plugin-delivery.js.map +0 -1
- package/dist/core/skills/cli-admin-command.d.ts +0 -7
- package/dist/core/skills/cli-admin-command.d.ts.map +0 -1
- package/dist/core/skills/cli-admin-command.js +0 -359
- package/dist/core/skills/cli-admin-command.js.map +0 -1
- package/dist/core/skills/cli-session-command.d.ts +0 -7
- package/dist/core/skills/cli-session-command.d.ts.map +0 -1
- package/dist/core/skills/cli-session-command.js +0 -72
- package/dist/core/skills/cli-session-command.js.map +0 -1
- package/dist/core/skills/delivery.d.ts +0 -11
- package/dist/core/skills/delivery.d.ts.map +0 -1
- package/dist/core/skills/delivery.js +0 -22
- package/dist/core/skills/delivery.js.map +0 -1
- package/dist/core/skills/discovery.d.ts +0 -26
- package/dist/core/skills/discovery.d.ts.map +0 -1
- package/dist/core/skills/discovery.js +0 -131
- package/dist/core/skills/discovery.js.map +0 -1
- package/dist/core/skills/frontmatter.d.ts +0 -9
- package/dist/core/skills/frontmatter.d.ts.map +0 -1
- package/dist/core/skills/frontmatter.js +0 -42
- package/dist/core/skills/frontmatter.js.map +0 -1
- package/dist/core/skills/im-command.d.ts +0 -9
- package/dist/core/skills/im-command.d.ts.map +0 -1
- package/dist/core/skills/im-command.js +0 -109
- package/dist/core/skills/im-command.js.map +0 -1
- package/dist/core/skills/manifest-store.d.ts +0 -5
- package/dist/core/skills/manifest-store.d.ts.map +0 -1
- package/dist/core/skills/manifest-store.js +0 -29
- package/dist/core/skills/manifest-store.js.map +0 -1
- package/dist/core/skills/package.d.ts +0 -13
- package/dist/core/skills/package.d.ts.map +0 -1
- package/dist/core/skills/package.js +0 -35
- package/dist/core/skills/package.js.map +0 -1
- package/dist/core/skills/policy.d.ts +0 -19
- package/dist/core/skills/policy.d.ts.map +0 -1
- package/dist/core/skills/policy.js +0 -73
- package/dist/core/skills/policy.js.map +0 -1
- package/dist/core/skills/prompt.d.ts +0 -3
- package/dist/core/skills/prompt.d.ts.map +0 -1
- package/dist/core/skills/prompt.js +0 -25
- package/dist/core/skills/prompt.js.map +0 -1
- package/dist/core/skills/references.d.ts +0 -21
- package/dist/core/skills/references.d.ts.map +0 -1
- package/dist/core/skills/references.js +0 -27
- package/dist/core/skills/references.js.map +0 -1
- package/dist/core/skills/registry-paths.d.ts +0 -5
- package/dist/core/skills/registry-paths.d.ts.map +0 -1
- package/dist/core/skills/registry-paths.js +0 -15
- package/dist/core/skills/registry-paths.js.map +0 -1
- package/dist/core/skills/resource-reader.d.ts +0 -9
- package/dist/core/skills/resource-reader.d.ts.map +0 -1
- package/dist/core/skills/resource-reader.js +0 -97
- package/dist/core/skills/resource-reader.js.map +0 -1
- package/dist/core/skills/session-resolver.d.ts +0 -15
- package/dist/core/skills/session-resolver.d.ts.map +0 -1
- package/dist/core/skills/session-resolver.js +0 -25
- package/dist/core/skills/session-resolver.js.map +0 -1
- package/dist/core/skills/session-runtime.d.ts +0 -15
- package/dist/core/skills/session-runtime.d.ts.map +0 -1
- package/dist/core/skills/session-runtime.js +0 -37
- package/dist/core/skills/session-runtime.js.map +0 -1
- package/dist/core/skills/sources.d.ts +0 -53
- package/dist/core/skills/sources.d.ts.map +0 -1
- package/dist/core/skills/sources.js +0 -257
- package/dist/core/skills/sources.js.map +0 -1
- package/dist/core/skills/types.d.ts +0 -83
- package/dist/core/skills/types.d.ts.map +0 -1
- package/dist/core/skills/types.js +0 -2
- package/dist/core/skills/types.js.map +0 -1
- package/dist/core/slash-inject.d.ts +0 -15
- package/dist/core/slash-inject.d.ts.map +0 -1
- package/dist/core/slash-inject.js +0 -25
- package/dist/core/slash-inject.js.map +0 -1
- package/dist/core/startup-commands.d.ts +0 -57
- package/dist/core/startup-commands.d.ts.map +0 -1
- package/dist/core/startup-commands.js +0 -85
- package/dist/core/startup-commands.js.map +0 -1
- package/dist/core/terminal-proxy.d.ts +0 -39
- package/dist/core/terminal-proxy.d.ts.map +0 -1
- package/dist/core/terminal-proxy.js +0 -160
- package/dist/core/terminal-proxy.js.map +0 -1
- package/dist/core/terminal-url.d.ts +0 -47
- package/dist/core/terminal-url.d.ts.map +0 -1
- package/dist/core/terminal-url.js +0 -87
- package/dist/core/terminal-url.js.map +0 -1
- package/dist/core/terminal-write-auth.d.ts +0 -75
- package/dist/core/terminal-write-auth.d.ts.map +0 -1
- package/dist/core/terminal-write-auth.js +0 -149
- package/dist/core/terminal-write-auth.js.map +0 -1
- package/dist/core/tmux-recovery.d.ts +0 -11
- package/dist/core/tmux-recovery.d.ts.map +0 -1
- package/dist/core/tmux-recovery.js +0 -19
- package/dist/core/tmux-recovery.js.map +0 -1
- package/dist/core/trigger-final-suppression.d.ts +0 -24
- package/dist/core/trigger-final-suppression.d.ts.map +0 -1
- package/dist/core/trigger-final-suppression.js +0 -97
- package/dist/core/trigger-final-suppression.js.map +0 -1
- package/dist/core/trigger-session.d.ts +0 -56
- package/dist/core/trigger-session.d.ts.map +0 -1
- package/dist/core/trigger-session.js +0 -637
- package/dist/core/trigger-session.js.map +0 -1
- package/dist/core/types.d.ts +0 -441
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -128
- package/dist/core/types.js.map +0 -1
- package/dist/core/update-check.d.ts +0 -94
- package/dist/core/update-check.d.ts.map +0 -1
- package/dist/core/update-check.js +0 -216
- package/dist/core/update-check.js.map +0 -1
- package/dist/core/vc-meeting-prepare-command.d.ts +0 -22
- package/dist/core/vc-meeting-prepare-command.d.ts.map +0 -1
- package/dist/core/vc-meeting-prepare-command.js +0 -50
- package/dist/core/vc-meeting-prepare-command.js.map +0 -1
- package/dist/core/worker-ipc.d.ts +0 -11
- package/dist/core/worker-ipc.d.ts.map +0 -1
- package/dist/core/worker-ipc.js +0 -26
- package/dist/core/worker-ipc.js.map +0 -1
- package/dist/core/worker-pool.d.ts +0 -788
- package/dist/core/worker-pool.d.ts.map +0 -1
- package/dist/core/worker-pool.js +0 -6914
- package/dist/core/worker-pool.js.map +0 -1
- package/dist/core/working-dir.d.ts +0 -27
- package/dist/core/working-dir.d.ts.map +0 -1
- package/dist/core/working-dir.js +0 -52
- package/dist/core/working-dir.js.map +0 -1
- package/dist/core/zellij-adopt-discovery.d.ts +0 -42
- package/dist/core/zellij-adopt-discovery.d.ts.map +0 -1
- package/dist/core/zellij-adopt-discovery.js +0 -259
- package/dist/core/zellij-adopt-discovery.js.map +0 -1
- package/dist/core/zellij-session-discovery.d.ts +0 -76
- package/dist/core/zellij-session-discovery.d.ts.map +0 -1
- package/dist/core/zellij-session-discovery.js +0 -260
- package/dist/core/zellij-session-discovery.js.map +0 -1
- package/dist/daemon-internal-client-wrapper.d.ts +0 -41
- package/dist/daemon-internal-client-wrapper.d.ts.map +0 -1
- package/dist/daemon-internal-client-wrapper.js +0 -65
- package/dist/daemon-internal-client-wrapper.js.map +0 -1
- package/dist/daemon.d.ts +0 -610
- package/dist/daemon.d.ts.map +0 -1
- package/dist/daemon.js +0 -16756
- package/dist/daemon.js.map +0 -1
- package/dist/dashboard/aggregator.d.ts +0 -59
- package/dist/dashboard/aggregator.d.ts.map +0 -1
- package/dist/dashboard/aggregator.js +0 -176
- package/dist/dashboard/aggregator.js.map +0 -1
- package/dist/dashboard/auth.d.ts +0 -106
- package/dist/dashboard/auth.d.ts.map +0 -1
- package/dist/dashboard/auth.js +0 -253
- package/dist/dashboard/auth.js.map +0 -1
- package/dist/dashboard/bot-onboarding.d.ts +0 -320
- package/dist/dashboard/bot-onboarding.d.ts.map +0 -1
- package/dist/dashboard/bot-onboarding.js +0 -1666
- package/dist/dashboard/bot-onboarding.js.map +0 -1
- package/dist/dashboard/bot-payload.d.ts +0 -94
- package/dist/dashboard/bot-payload.d.ts.map +0 -1
- package/dist/dashboard/bot-payload.js +0 -96
- package/dist/dashboard/bot-payload.js.map +0 -1
- package/dist/dashboard/card-model-types.d.ts +0 -50
- package/dist/dashboard/card-model-types.d.ts.map +0 -1
- package/dist/dashboard/card-model-types.js +0 -9
- package/dist/dashboard/card-model-types.js.map +0 -1
- package/dist/dashboard/compat.d.ts +0 -119
- package/dist/dashboard/compat.d.ts.map +0 -1
- package/dist/dashboard/compat.js +0 -102
- package/dist/dashboard/compat.js.map +0 -1
- package/dist/dashboard/connector-api.d.ts +0 -3
- package/dist/dashboard/connector-api.d.ts.map +0 -1
- package/dist/dashboard/connector-api.js +0 -453
- package/dist/dashboard/connector-api.js.map +0 -1
- package/dist/dashboard/daemon-internal-api.d.ts +0 -88
- package/dist/dashboard/daemon-internal-api.d.ts.map +0 -1
- package/dist/dashboard/daemon-internal-api.js +0 -476
- package/dist/dashboard/daemon-internal-api.js.map +0 -1
- package/dist/dashboard/daemon-internal-auth.d.ts +0 -124
- package/dist/dashboard/daemon-internal-auth.d.ts.map +0 -1
- package/dist/dashboard/daemon-internal-auth.js +0 -188
- package/dist/dashboard/daemon-internal-auth.js.map +0 -1
- package/dist/dashboard/daemon-internal-client.d.ts +0 -67
- package/dist/dashboard/daemon-internal-client.d.ts.map +0 -1
- package/dist/dashboard/daemon-internal-client.js +0 -156
- package/dist/dashboard/daemon-internal-client.js.map +0 -1
- package/dist/dashboard/dashboard-admins.d.ts +0 -8
- package/dist/dashboard/dashboard-admins.d.ts.map +0 -1
- package/dist/dashboard/dashboard-admins.js +0 -15
- package/dist/dashboard/dashboard-admins.js.map +0 -1
- package/dist/dashboard/debug-terminal.d.ts +0 -18
- package/dist/dashboard/debug-terminal.d.ts.map +0 -1
- package/dist/dashboard/debug-terminal.js +0 -338
- package/dist/dashboard/debug-terminal.js.map +0 -1
- package/dist/dashboard/desktop-asks.d.ts +0 -21
- package/dist/dashboard/desktop-asks.d.ts.map +0 -1
- package/dist/dashboard/desktop-asks.js +0 -49
- package/dist/dashboard/desktop-asks.js.map +0 -1
- package/dist/dashboard/federated-group-core.d.ts +0 -75
- package/dist/dashboard/federated-group-core.d.ts.map +0 -1
- package/dist/dashboard/federated-group-core.js +0 -236
- package/dist/dashboard/federated-group-core.js.map +0 -1
- package/dist/dashboard/federation-api.d.ts +0 -43
- package/dist/dashboard/federation-api.d.ts.map +0 -1
- package/dist/dashboard/federation-api.js +0 -580
- package/dist/dashboard/federation-api.js.map +0 -1
- package/dist/dashboard/federation-spoke-api.d.ts +0 -129
- package/dist/dashboard/federation-spoke-api.d.ts.map +0 -1
- package/dist/dashboard/federation-spoke-api.js +0 -809
- package/dist/dashboard/federation-spoke-api.js.map +0 -1
- package/dist/dashboard/feishu-login.d.ts +0 -64
- package/dist/dashboard/feishu-login.d.ts.map +0 -1
- package/dist/dashboard/feishu-login.js +0 -99
- package/dist/dashboard/feishu-login.js.map +0 -1
- package/dist/dashboard/groups-action-helpers.d.ts +0 -71
- package/dist/dashboard/groups-action-helpers.d.ts.map +0 -1
- package/dist/dashboard/groups-action-helpers.js +0 -150
- package/dist/dashboard/groups-action-helpers.js.map +0 -1
- package/dist/dashboard/groups-card-model.d.ts +0 -120
- package/dist/dashboard/groups-card-model.d.ts.map +0 -1
- package/dist/dashboard/groups-card-model.js +0 -175
- package/dist/dashboard/groups-card-model.js.map +0 -1
- package/dist/dashboard/groups-matrix-snapshot.d.ts +0 -56
- package/dist/dashboard/groups-matrix-snapshot.d.ts.map +0 -1
- package/dist/dashboard/groups-matrix-snapshot.js +0 -127
- package/dist/dashboard/groups-matrix-snapshot.js.map +0 -1
- package/dist/dashboard/hd2d-assets.d.ts +0 -20
- package/dist/dashboard/hd2d-assets.d.ts.map +0 -1
- package/dist/dashboard/hd2d-assets.js +0 -216
- package/dist/dashboard/hd2d-assets.js.map +0 -1
- package/dist/dashboard/history-senders.d.ts +0 -40
- package/dist/dashboard/history-senders.d.ts.map +0 -1
- package/dist/dashboard/history-senders.js +0 -60
- package/dist/dashboard/history-senders.js.map +0 -1
- package/dist/dashboard/http.d.ts +0 -4
- package/dist/dashboard/http.d.ts.map +0 -1
- package/dist/dashboard/http.js +0 -6
- package/dist/dashboard/http.js.map +0 -1
- package/dist/dashboard/operator-selector.d.ts +0 -20
- package/dist/dashboard/operator-selector.d.ts.map +0 -1
- package/dist/dashboard/operator-selector.js +0 -39
- package/dist/dashboard/operator-selector.js.map +0 -1
- package/dist/dashboard/public-redact.d.ts +0 -32
- package/dist/dashboard/public-redact.d.ts.map +0 -1
- package/dist/dashboard/public-redact.js +0 -137
- package/dist/dashboard/public-redact.js.map +0 -1
- package/dist/dashboard/registry.d.ts +0 -56
- package/dist/dashboard/registry.d.ts.map +0 -1
- package/dist/dashboard/registry.js +0 -99
- package/dist/dashboard/registry.js.map +0 -1
- package/dist/dashboard/resource-monitor-service.d.ts +0 -56
- package/dist/dashboard/resource-monitor-service.d.ts.map +0 -1
- package/dist/dashboard/resource-monitor-service.js +0 -462
- package/dist/dashboard/resource-monitor-service.js.map +0 -1
- package/dist/dashboard/roles-batch.d.ts +0 -31
- package/dist/dashboard/roles-batch.d.ts.map +0 -1
- package/dist/dashboard/roles-batch.js +0 -87
- package/dist/dashboard/roles-batch.js.map +0 -1
- package/dist/dashboard/schedule-card-model.d.ts +0 -185
- package/dist/dashboard/schedule-card-model.d.ts.map +0 -1
- package/dist/dashboard/schedule-card-model.js +0 -320
- package/dist/dashboard/schedule-card-model.js.map +0 -1
- package/dist/dashboard/session-card-model.d.ts +0 -83
- package/dist/dashboard/session-card-model.d.ts.map +0 -1
- package/dist/dashboard/session-card-model.js +0 -207
- package/dist/dashboard/session-card-model.js.map +0 -1
- package/dist/dashboard/session-cleanup.d.ts +0 -31
- package/dist/dashboard/session-cleanup.d.ts.map +0 -1
- package/dist/dashboard/session-cleanup.js +0 -49
- package/dist/dashboard/session-cleanup.js.map +0 -1
- package/dist/dashboard/session-presentation.d.ts +0 -16
- package/dist/dashboard/session-presentation.d.ts.map +0 -1
- package/dist/dashboard/session-presentation.js +0 -62
- package/dist/dashboard/session-presentation.js.map +0 -1
- package/dist/dashboard/settings-card-model.d.ts +0 -76
- package/dist/dashboard/settings-card-model.d.ts.map +0 -1
- package/dist/dashboard/settings-card-model.js +0 -109
- package/dist/dashboard/settings-card-model.js.map +0 -1
- package/dist/dashboard/settings-owner-resolver.d.ts +0 -32
- package/dist/dashboard/settings-owner-resolver.d.ts.map +0 -1
- package/dist/dashboard/settings-owner-resolver.js +0 -43
- package/dist/dashboard/settings-owner-resolver.js.map +0 -1
- package/dist/dashboard/settings-write-applier.d.ts +0 -219
- package/dist/dashboard/settings-write-applier.d.ts.map +0 -1
- package/dist/dashboard/settings-write-applier.js +0 -467
- package/dist/dashboard/settings-write-applier.js.map +0 -1
- package/dist/dashboard/skill-install-request.d.ts +0 -46
- package/dist/dashboard/skill-install-request.d.ts.map +0 -1
- package/dist/dashboard/skill-install-request.js +0 -150
- package/dist/dashboard/skill-install-request.js.map +0 -1
- package/dist/dashboard/stale-chunk-module.d.ts +0 -3
- package/dist/dashboard/stale-chunk-module.d.ts.map +0 -1
- package/dist/dashboard/stale-chunk-module.js +0 -55
- package/dist/dashboard/stale-chunk-module.js.map +0 -1
- package/dist/dashboard/team-group.d.ts +0 -39
- package/dist/dashboard/team-group.d.ts.map +0 -1
- package/dist/dashboard/team-group.js +0 -23
- package/dist/dashboard/team-group.js.map +0 -1
- package/dist/dashboard/trigger-api.d.ts +0 -25
- package/dist/dashboard/trigger-api.d.ts.map +0 -1
- package/dist/dashboard/trigger-api.js +0 -153
- package/dist/dashboard/trigger-api.js.map +0 -1
- package/dist/dashboard/v3-runs-api.d.ts +0 -29
- package/dist/dashboard/v3-runs-api.d.ts.map +0 -1
- package/dist/dashboard/v3-runs-api.js +0 -184
- package/dist/dashboard/v3-runs-api.js.map +0 -1
- package/dist/dashboard/vc-consumer-profiles-api.d.ts +0 -110
- package/dist/dashboard/vc-consumer-profiles-api.d.ts.map +0 -1
- package/dist/dashboard/vc-consumer-profiles-api.js +0 -325
- package/dist/dashboard/vc-consumer-profiles-api.js.map +0 -1
- package/dist/dashboard/web/app.d.ts +0 -3
- package/dist/dashboard/web/app.d.ts.map +0 -1
- package/dist/dashboard/web/app.js +0 -962
- package/dist/dashboard/web/app.js.map +0 -1
- package/dist/dashboard/web/auth-login.d.ts +0 -3
- package/dist/dashboard/web/auth-login.d.ts.map +0 -1
- package/dist/dashboard/web/auth-login.js +0 -19
- package/dist/dashboard/web/auth-login.js.map +0 -1
- package/dist/dashboard/web/bot-defaults-page.d.ts +0 -78
- package/dist/dashboard/web/bot-defaults-page.d.ts.map +0 -1
- package/dist/dashboard/web/bot-defaults-page.js +0 -2486
- package/dist/dashboard/web/bot-defaults-page.js.map +0 -1
- package/dist/dashboard/web/bot-defaults.d.ts +0 -163
- package/dist/dashboard/web/bot-defaults.d.ts.map +0 -1
- package/dist/dashboard/web/bot-defaults.js +0 -127
- package/dist/dashboard/web/bot-defaults.js.map +0 -1
- package/dist/dashboard/web/bot-onboarding.d.ts +0 -9
- package/dist/dashboard/web/bot-onboarding.d.ts.map +0 -1
- package/dist/dashboard/web/bot-onboarding.js +0 -421
- package/dist/dashboard/web/bot-onboarding.js.map +0 -1
- package/dist/dashboard/web/client-shell.d.ts +0 -29
- package/dist/dashboard/web/client-shell.d.ts.map +0 -1
- package/dist/dashboard/web/client-shell.js +0 -89
- package/dist/dashboard/web/client-shell.js.map +0 -1
- package/dist/dashboard/web/clipboard.d.ts +0 -2
- package/dist/dashboard/web/clipboard.d.ts.map +0 -1
- package/dist/dashboard/web/clipboard.js +0 -42
- package/dist/dashboard/web/clipboard.js.map +0 -1
- package/dist/dashboard/web/connectors-page.d.ts +0 -23
- package/dist/dashboard/web/connectors-page.d.ts.map +0 -1
- package/dist/dashboard/web/connectors-page.js +0 -516
- package/dist/dashboard/web/connectors-page.js.map +0 -1
- package/dist/dashboard/web/create-session-composer.d.ts +0 -35
- package/dist/dashboard/web/create-session-composer.d.ts.map +0 -1
- package/dist/dashboard/web/create-session-composer.js +0 -70
- package/dist/dashboard/web/create-session-composer.js.map +0 -1
- package/dist/dashboard/web/create-session-entry.d.ts +0 -4
- package/dist/dashboard/web/create-session-entry.d.ts.map +0 -1
- package/dist/dashboard/web/create-session-entry.js +0 -17
- package/dist/dashboard/web/create-session-entry.js.map +0 -1
- package/dist/dashboard/web/cyber-fx.d.ts +0 -6
- package/dist/dashboard/web/cyber-fx.d.ts.map +0 -1
- package/dist/dashboard/web/cyber-fx.js +0 -289
- package/dist/dashboard/web/cyber-fx.js.map +0 -1
- package/dist/dashboard/web/dashboard-api.d.ts +0 -9
- package/dist/dashboard/web/dashboard-api.d.ts.map +0 -1
- package/dist/dashboard/web/dashboard-api.js +0 -18
- package/dist/dashboard/web/dashboard-api.js.map +0 -1
- package/dist/dashboard/web/dashboard-components.d.ts +0 -105
- package/dist/dashboard/web/dashboard-components.d.ts.map +0 -1
- package/dist/dashboard/web/dashboard-components.js +0 -284
- package/dist/dashboard/web/dashboard-components.js.map +0 -1
- package/dist/dashboard/web/dashboard-routes.d.ts +0 -14
- package/dist/dashboard/web/dashboard-routes.d.ts.map +0 -1
- package/dist/dashboard/web/dashboard-routes.js +0 -49
- package/dist/dashboard/web/dashboard-routes.js.map +0 -1
- package/dist/dashboard/web/floating-scrollbars.d.ts +0 -2
- package/dist/dashboard/web/floating-scrollbars.d.ts.map +0 -1
- package/dist/dashboard/web/floating-scrollbars.js +0 -264
- package/dist/dashboard/web/floating-scrollbars.js.map +0 -1
- package/dist/dashboard/web/groups-api.d.ts +0 -36
- package/dist/dashboard/web/groups-api.d.ts.map +0 -1
- package/dist/dashboard/web/groups-api.js +0 -44
- package/dist/dashboard/web/groups-api.js.map +0 -1
- package/dist/dashboard/web/groups-page.d.ts +0 -3
- package/dist/dashboard/web/groups-page.d.ts.map +0 -1
- package/dist/dashboard/web/groups-page.js +0 -761
- package/dist/dashboard/web/groups-page.js.map +0 -1
- package/dist/dashboard/web/groups.d.ts +0 -58
- package/dist/dashboard/web/groups.d.ts.map +0 -1
- package/dist/dashboard/web/groups.js +0 -203
- package/dist/dashboard/web/groups.js.map +0 -1
- package/dist/dashboard/web/i18n.d.ts +0 -7
- package/dist/dashboard/web/i18n.d.ts.map +0 -1
- package/dist/dashboard/web/i18n.js +0 -4295
- package/dist/dashboard/web/i18n.js.map +0 -1
- package/dist/dashboard/web/icon-tooltip.d.ts +0 -3
- package/dist/dashboard/web/icon-tooltip.d.ts.map +0 -1
- package/dist/dashboard/web/icon-tooltip.js +0 -123
- package/dist/dashboard/web/icon-tooltip.js.map +0 -1
- package/dist/dashboard/web/insights-page.d.ts +0 -3
- package/dist/dashboard/web/insights-page.d.ts.map +0 -1
- package/dist/dashboard/web/insights-page.js +0 -1059
- package/dist/dashboard/web/insights-page.js.map +0 -1
- package/dist/dashboard/web/insights.d.ts +0 -189
- package/dist/dashboard/web/insights.d.ts.map +0 -1
- package/dist/dashboard/web/insights.js +0 -519
- package/dist/dashboard/web/insights.js.map +0 -1
- package/dist/dashboard/web/kanban-model.d.ts +0 -19
- package/dist/dashboard/web/kanban-model.d.ts.map +0 -1
- package/dist/dashboard/web/kanban-model.js +0 -40
- package/dist/dashboard/web/kanban-model.js.map +0 -1
- package/dist/dashboard/web/listener-filters.d.ts +0 -54
- package/dist/dashboard/web/listener-filters.d.ts.map +0 -1
- package/dist/dashboard/web/listener-filters.js +0 -94
- package/dist/dashboard/web/listener-filters.js.map +0 -1
- package/dist/dashboard/web/monitor-room-store.d.ts +0 -20
- package/dist/dashboard/web/monitor-room-store.d.ts.map +0 -1
- package/dist/dashboard/web/monitor-room-store.js +0 -80
- package/dist/dashboard/web/monitor-room-store.js.map +0 -1
- package/dist/dashboard/web/monitor-room.d.ts +0 -31
- package/dist/dashboard/web/monitor-room.d.ts.map +0 -1
- package/dist/dashboard/web/monitor-room.js +0 -395
- package/dist/dashboard/web/monitor-room.js.map +0 -1
- package/dist/dashboard/web/monitoring-page.d.ts +0 -155
- package/dist/dashboard/web/monitoring-page.d.ts.map +0 -1
- package/dist/dashboard/web/monitoring-page.js +0 -363
- package/dist/dashboard/web/monitoring-page.js.map +0 -1
- package/dist/dashboard/web/office-page.d.ts +0 -3
- package/dist/dashboard/web/office-page.d.ts.map +0 -1
- package/dist/dashboard/web/office-page.js +0 -137
- package/dist/dashboard/web/office-page.js.map +0 -1
- package/dist/dashboard/web/overview-page.d.ts +0 -3
- package/dist/dashboard/web/overview-page.d.ts.map +0 -1
- package/dist/dashboard/web/overview-page.js +0 -253
- package/dist/dashboard/web/overview-page.js.map +0 -1
- package/dist/dashboard/web/overview.d.ts +0 -23
- package/dist/dashboard/web/overview.d.ts.map +0 -1
- package/dist/dashboard/web/overview.js +0 -81
- package/dist/dashboard/web/overview.js.map +0 -1
- package/dist/dashboard/web/plugin-events.d.ts +0 -2
- package/dist/dashboard/web/plugin-events.d.ts.map +0 -1
- package/dist/dashboard/web/plugin-events.js +0 -2
- package/dist/dashboard/web/plugin-events.js.map +0 -1
- package/dist/dashboard/web/plugin-page.d.ts +0 -3
- package/dist/dashboard/web/plugin-page.d.ts.map +0 -1
- package/dist/dashboard/web/plugin-page.js +0 -467
- package/dist/dashboard/web/plugin-page.js.map +0 -1
- package/dist/dashboard/web/preferences.d.ts +0 -42
- package/dist/dashboard/web/preferences.d.ts.map +0 -1
- package/dist/dashboard/web/preferences.js +0 -162
- package/dist/dashboard/web/preferences.js.map +0 -1
- package/dist/dashboard/web/preview-markdown.d.ts +0 -5
- package/dist/dashboard/web/preview-markdown.d.ts.map +0 -1
- package/dist/dashboard/web/preview-markdown.js +0 -52
- package/dist/dashboard/web/preview-markdown.js.map +0 -1
- package/dist/dashboard/web/react-hooks.d.ts +0 -8
- package/dist/dashboard/web/react-hooks.d.ts.map +0 -1
- package/dist/dashboard/web/react-hooks.js +0 -43
- package/dist/dashboard/web/react-hooks.js.map +0 -1
- package/dist/dashboard/web/react-mount.d.ts +0 -4
- package/dist/dashboard/web/react-mount.d.ts.map +0 -1
- package/dist/dashboard/web/react-mount.js +0 -7
- package/dist/dashboard/web/react-mount.js.map +0 -1
- package/dist/dashboard/web/role-batch.d.ts +0 -9
- package/dist/dashboard/web/role-batch.d.ts.map +0 -1
- package/dist/dashboard/web/role-batch.js +0 -42
- package/dist/dashboard/web/role-batch.js.map +0 -1
- package/dist/dashboard/web/role-profile-match.d.ts +0 -31
- package/dist/dashboard/web/role-profile-match.d.ts.map +0 -1
- package/dist/dashboard/web/role-profile-match.js +0 -58
- package/dist/dashboard/web/role-profile-match.js.map +0 -1
- package/dist/dashboard/web/roles-page.d.ts +0 -4
- package/dist/dashboard/web/roles-page.d.ts.map +0 -1
- package/dist/dashboard/web/roles-page.js +0 -1120
- package/dist/dashboard/web/roles-page.js.map +0 -1
- package/dist/dashboard/web/roles.d.ts +0 -177
- package/dist/dashboard/web/roles.d.ts.map +0 -1
- package/dist/dashboard/web/roles.js +0 -272
- package/dist/dashboard/web/roles.js.map +0 -1
- package/dist/dashboard/web/route-lifecycle.d.ts +0 -14
- package/dist/dashboard/web/route-lifecycle.d.ts.map +0 -1
- package/dist/dashboard/web/route-lifecycle.js +0 -29
- package/dist/dashboard/web/route-lifecycle.js.map +0 -1
- package/dist/dashboard/web/schedules-page.d.ts +0 -16
- package/dist/dashboard/web/schedules-page.d.ts.map +0 -1
- package/dist/dashboard/web/schedules-page.js +0 -303
- package/dist/dashboard/web/schedules-page.js.map +0 -1
- package/dist/dashboard/web/session-terminal.d.ts +0 -7
- package/dist/dashboard/web/session-terminal.d.ts.map +0 -1
- package/dist/dashboard/web/session-terminal.js +0 -23
- package/dist/dashboard/web/session-terminal.js.map +0 -1
- package/dist/dashboard/web/sessions-kanban.d.ts +0 -70
- package/dist/dashboard/web/sessions-kanban.d.ts.map +0 -1
- package/dist/dashboard/web/sessions-kanban.js +0 -481
- package/dist/dashboard/web/sessions-kanban.js.map +0 -1
- package/dist/dashboard/web/sessions-page.d.ts +0 -27
- package/dist/dashboard/web/sessions-page.d.ts.map +0 -1
- package/dist/dashboard/web/sessions-page.js +0 -2085
- package/dist/dashboard/web/sessions-page.js.map +0 -1
- package/dist/dashboard/web/sessions.d.ts +0 -116
- package/dist/dashboard/web/sessions.d.ts.map +0 -1
- package/dist/dashboard/web/sessions.js +0 -390
- package/dist/dashboard/web/sessions.js.map +0 -1
- package/dist/dashboard/web/settings-page.d.ts +0 -119
- package/dist/dashboard/web/settings-page.d.ts.map +0 -1
- package/dist/dashboard/web/settings-page.js +0 -772
- package/dist/dashboard/web/settings-page.js.map +0 -1
- package/dist/dashboard/web/skills-page.d.ts +0 -90
- package/dist/dashboard/web/skills-page.d.ts.map +0 -1
- package/dist/dashboard/web/skills-page.js +0 -1004
- package/dist/dashboard/web/skills-page.js.map +0 -1
- package/dist/dashboard/web/stale-chunk-reload.d.ts +0 -16
- package/dist/dashboard/web/stale-chunk-reload.d.ts.map +0 -1
- package/dist/dashboard/web/stale-chunk-reload.js +0 -51
- package/dist/dashboard/web/stale-chunk-reload.js.map +0 -1
- package/dist/dashboard/web/store.d.ts +0 -39
- package/dist/dashboard/web/store.d.ts.map +0 -1
- package/dist/dashboard/web/store.js +0 -177
- package/dist/dashboard/web/store.js.map +0 -1
- package/dist/dashboard/web/substitute-targets.d.ts +0 -30
- package/dist/dashboard/web/substitute-targets.d.ts.map +0 -1
- package/dist/dashboard/web/substitute-targets.js +0 -99
- package/dist/dashboard/web/substitute-targets.js.map +0 -1
- package/dist/dashboard/web/team-federation-page.d.ts +0 -4
- package/dist/dashboard/web/team-federation-page.d.ts.map +0 -1
- package/dist/dashboard/web/team-federation-page.js +0 -465
- package/dist/dashboard/web/team-federation-page.js.map +0 -1
- package/dist/dashboard/web/team-federation.d.ts +0 -92
- package/dist/dashboard/web/team-federation.d.ts.map +0 -1
- package/dist/dashboard/web/team-federation.js +0 -106
- package/dist/dashboard/web/team-federation.js.map +0 -1
- package/dist/dashboard/web/theme-menu.d.ts +0 -4
- package/dist/dashboard/web/theme-menu.d.ts.map +0 -1
- package/dist/dashboard/web/theme-menu.js +0 -173
- package/dist/dashboard/web/theme-menu.js.map +0 -1
- package/dist/dashboard/web/ui.d.ts +0 -81
- package/dist/dashboard/web/ui.d.ts.map +0 -1
- package/dist/dashboard/web/ui.js +0 -330
- package/dist/dashboard/web/ui.js.map +0 -1
- package/dist/dashboard/web/update-action.d.ts +0 -16
- package/dist/dashboard/web/update-action.d.ts.map +0 -1
- package/dist/dashboard/web/update-action.js +0 -64
- package/dist/dashboard/web/update-action.js.map +0 -1
- package/dist/dashboard/web/v3-api.d.ts +0 -26
- package/dist/dashboard/web/v3-api.d.ts.map +0 -1
- package/dist/dashboard/web/v3-api.js +0 -49
- package/dist/dashboard/web/v3-api.js.map +0 -1
- package/dist/dashboard/web/v3-components.d.ts +0 -9
- package/dist/dashboard/web/v3-components.d.ts.map +0 -1
- package/dist/dashboard/web/v3-components.js +0 -333
- package/dist/dashboard/web/v3-components.js.map +0 -1
- package/dist/dashboard/web/v3-model.d.ts +0 -80
- package/dist/dashboard/web/v3-model.d.ts.map +0 -1
- package/dist/dashboard/web/v3-model.js +0 -240
- package/dist/dashboard/web/v3-model.js.map +0 -1
- package/dist/dashboard/web/v3-page.d.ts +0 -3
- package/dist/dashboard/web/v3-page.d.ts.map +0 -1
- package/dist/dashboard/web/v3-page.js +0 -7
- package/dist/dashboard/web/v3-page.js.map +0 -1
- package/dist/dashboard/web/v3-terminal.d.ts +0 -25
- package/dist/dashboard/web/v3-terminal.d.ts.map +0 -1
- package/dist/dashboard/web/v3-terminal.js +0 -155
- package/dist/dashboard/web/v3-terminal.js.map +0 -1
- package/dist/dashboard/web/vc-consumer-profiles-section.d.ts +0 -29
- package/dist/dashboard/web/vc-consumer-profiles-section.d.ts.map +0 -1
- package/dist/dashboard/web/vc-consumer-profiles-section.js +0 -459
- package/dist/dashboard/web/vc-consumer-profiles-section.js.map +0 -1
- package/dist/dashboard/web/webhook-logs-page.d.ts +0 -17
- package/dist/dashboard/web/webhook-logs-page.d.ts.map +0 -1
- package/dist/dashboard/web/webhook-logs-page.js +0 -198
- package/dist/dashboard/web/webhook-logs-page.js.map +0 -1
- package/dist/dashboard/web/whiteboards-page.d.ts +0 -3
- package/dist/dashboard/web/whiteboards-page.d.ts.map +0 -1
- package/dist/dashboard/web/whiteboards-page.js +0 -198
- package/dist/dashboard/web/whiteboards-page.js.map +0 -1
- package/dist/dashboard/webhook-routes.d.ts +0 -19
- package/dist/dashboard/webhook-routes.d.ts.map +0 -1
- package/dist/dashboard/webhook-routes.js +0 -618
- package/dist/dashboard/webhook-routes.js.map +0 -1
- package/dist/dashboard-web/app.js +0 -1
- package/dist/dashboard-web/apple-touch-icon.png +0 -0
- package/dist/dashboard-web/brand-logo.png +0 -0
- package/dist/dashboard-web/chunks/bot-defaults-page-LTVOUDIS.js +0 -10
- package/dist/dashboard-web/chunks/chunk-3UE7S77S.js +0 -1
- package/dist/dashboard-web/chunks/chunk-5CJMHTT4.js +0 -1
- package/dist/dashboard-web/chunks/chunk-5THX4DI2.js +0 -66
- package/dist/dashboard-web/chunks/chunk-7SZRL6FY.js +0 -1
- package/dist/dashboard-web/chunks/chunk-AGCPF6MT.js +0 -1
- package/dist/dashboard-web/chunks/chunk-BD3PZGH2.js +0 -1
- package/dist/dashboard-web/chunks/chunk-DCS35UMD.js +0 -1
- package/dist/dashboard-web/chunks/chunk-EVK77ASG.js +0 -1
- package/dist/dashboard-web/chunks/chunk-FDZ7WOBW.js +0 -16
- package/dist/dashboard-web/chunks/chunk-MFQPCVHY.js +0 -51
- package/dist/dashboard-web/chunks/chunk-R3FXBFQH.js +0 -1
- package/dist/dashboard-web/chunks/chunk-SYC6D5XU.js +0 -1
- package/dist/dashboard-web/chunks/chunk-XJ7BGPJH.js +0 -1
- package/dist/dashboard-web/chunks/chunk-ZJVTGU5X.js +0 -1
- package/dist/dashboard-web/chunks/chunk-ZU3UUKAR.js +0 -1
- package/dist/dashboard-web/chunks/connectors-page-5KWDIMKC.js +0 -1
- package/dist/dashboard-web/chunks/groups-page-FHOKYXMW.js +0 -8
- package/dist/dashboard-web/chunks/insights-page-T2ZX2RWL.js +0 -7
- package/dist/dashboard-web/chunks/monitor-room-YNVBAGR6.js +0 -53
- package/dist/dashboard-web/chunks/monitoring-page-LHM55YWN.js +0 -2
- package/dist/dashboard-web/chunks/office-page-ATXVP7PW.js +0 -1
- package/dist/dashboard-web/chunks/overview-page-QYI3KBDD.js +0 -1
- package/dist/dashboard-web/chunks/plugin-page-VEGTCEAS.js +0 -1
- package/dist/dashboard-web/chunks/roles-page-56VWM6CD.js +0 -1
- package/dist/dashboard-web/chunks/schedules-page-S5K6U4EO.js +0 -1
- package/dist/dashboard-web/chunks/sessions-page-WBP4N7D2.js +0 -6
- package/dist/dashboard-web/chunks/settings-page-QUZDQARR.js +0 -2
- package/dist/dashboard-web/chunks/skills-page-IFY7AEND.js +0 -4
- package/dist/dashboard-web/chunks/team-federation-page-C7FJQPFZ.js +0 -1
- package/dist/dashboard-web/chunks/v3-page-2LMF3WWR.js +0 -94
- package/dist/dashboard-web/chunks/whiteboards-page-3XC6QRMY.js +0 -1
- package/dist/dashboard-web/favicon.png +0 -0
- package/dist/dashboard-web/game/index.apple-touch-icon.png +0 -0
- package/dist/dashboard-web/game/index.audio.position.worklet.js +0 -66
- package/dist/dashboard-web/game/index.audio.worklet.js +0 -213
- package/dist/dashboard-web/game/index.html +0 -224
- package/dist/dashboard-web/game/index.icon.png +0 -0
- package/dist/dashboard-web/game/index.js +0 -909
- package/dist/dashboard-web/game/index.png +0 -0
- package/dist/dashboard-web/index.html +0 -17
- package/dist/dashboard-web/skins/fallout-vaultboy.webp +0 -0
- package/dist/dashboard-web/style.css +0 -25771
- package/dist/dashboard.d.ts +0 -2
- package/dist/dashboard.d.ts.map +0 -1
- package/dist/dashboard.js +0 -5487
- package/dist/dashboard.js.map +0 -1
- package/dist/desktop/main/auto-start.d.ts +0 -19
- package/dist/desktop/main/auto-start.d.ts.map +0 -1
- package/dist/desktop/main/auto-start.js +0 -41
- package/dist/desktop/main/auto-start.js.map +0 -1
- package/dist/desktop/main/bundled-runtime.d.ts +0 -12
- package/dist/desktop/main/bundled-runtime.d.ts.map +0 -1
- package/dist/desktop/main/bundled-runtime.js +0 -30
- package/dist/desktop/main/bundled-runtime.js.map +0 -1
- package/dist/desktop/main/dashboard-compat.d.ts +0 -25
- package/dist/desktop/main/dashboard-compat.d.ts.map +0 -1
- package/dist/desktop/main/dashboard-compat.js +0 -117
- package/dist/desktop/main/dashboard-compat.js.map +0 -1
- package/dist/desktop/main/device-status.d.ts +0 -15
- package/dist/desktop/main/device-status.d.ts.map +0 -1
- package/dist/desktop/main/device-status.js +0 -94
- package/dist/desktop/main/device-status.js.map +0 -1
- package/dist/desktop/main/external-runtime.d.ts +0 -38
- package/dist/desktop/main/external-runtime.d.ts.map +0 -1
- package/dist/desktop/main/external-runtime.js +0 -272
- package/dist/desktop/main/external-runtime.js.map +0 -1
- package/dist/desktop/main/ipc.d.ts +0 -20
- package/dist/desktop/main/ipc.d.ts.map +0 -1
- package/dist/desktop/main/ipc.js +0 -242
- package/dist/desktop/main/ipc.js.map +0 -1
- package/dist/desktop/main/log-service.d.ts +0 -4
- package/dist/desktop/main/log-service.d.ts.map +0 -1
- package/dist/desktop/main/log-service.js +0 -53
- package/dist/desktop/main/log-service.js.map +0 -1
- package/dist/desktop/main/login-item.d.ts +0 -10
- package/dist/desktop/main/login-item.d.ts.map +0 -1
- package/dist/desktop/main/login-item.js +0 -11
- package/dist/desktop/main/login-item.js.map +0 -1
- package/dist/desktop/main/node-command.d.ts +0 -43
- package/dist/desktop/main/node-command.d.ts.map +0 -1
- package/dist/desktop/main/node-command.js +0 -97
- package/dist/desktop/main/node-command.js.map +0 -1
- package/dist/desktop/main/paths.d.ts +0 -11
- package/dist/desktop/main/paths.d.ts.map +0 -1
- package/dist/desktop/main/paths.js +0 -13
- package/dist/desktop/main/paths.js.map +0 -1
- package/dist/desktop/main/pm2-apps.d.ts +0 -17
- package/dist/desktop/main/pm2-apps.d.ts.map +0 -1
- package/dist/desktop/main/pm2-apps.js +0 -105
- package/dist/desktop/main/pm2-apps.js.map +0 -1
- package/dist/desktop/main/runtime-service.d.ts +0 -65
- package/dist/desktop/main/runtime-service.d.ts.map +0 -1
- package/dist/desktop/main/runtime-service.js +0 -381
- package/dist/desktop/main/runtime-service.js.map +0 -1
- package/dist/desktop/main/runtime-source.d.ts +0 -19
- package/dist/desktop/main/runtime-source.d.ts.map +0 -1
- package/dist/desktop/main/runtime-source.js +0 -67
- package/dist/desktop/main/runtime-source.js.map +0 -1
- package/dist/desktop/main/tray.d.ts +0 -11
- package/dist/desktop/main/tray.d.ts.map +0 -1
- package/dist/desktop/main/tray.js +0 -27
- package/dist/desktop/main/tray.js.map +0 -1
- package/dist/desktop/main/window.d.ts +0 -16
- package/dist/desktop/main/window.d.ts.map +0 -1
- package/dist/desktop/main/window.js +0 -113
- package/dist/desktop/main/window.js.map +0 -1
- package/dist/desktop/main.d.ts +0 -2
- package/dist/desktop/main.d.ts.map +0 -1
- package/dist/desktop/main.js +0 -195
- package/dist/desktop/main.js.map +0 -1
- package/dist/desktop/preload.d.ts +0 -2
- package/dist/desktop/preload.d.ts.map +0 -1
- package/dist/desktop/preload.js +0 -27
- package/dist/desktop/preload.js.map +0 -1
- package/dist/desktop/renderer/app.d.ts +0 -36
- package/dist/desktop/renderer/app.d.ts.map +0 -1
- package/dist/desktop/renderer/app.js +0 -950
- package/dist/desktop/renderer/app.js.map +0 -1
- package/dist/desktop/renderer/dashboard-url.d.ts +0 -13
- package/dist/desktop/renderer/dashboard-url.d.ts.map +0 -1
- package/dist/desktop/renderer/dashboard-url.js +0 -98
- package/dist/desktop/renderer/dashboard-url.js.map +0 -1
- package/dist/desktop/renderer/runtime-state.d.ts +0 -8
- package/dist/desktop/renderer/runtime-state.d.ts.map +0 -1
- package/dist/desktop/renderer/runtime-state.js +0 -69
- package/dist/desktop/renderer/runtime-state.js.map +0 -1
- package/dist/desktop/shared/shell-path-probes.d.ts +0 -24
- package/dist/desktop/shared/shell-path-probes.d.ts.map +0 -1
- package/dist/desktop/shared/shell-path-probes.js +0 -38
- package/dist/desktop/shared/shell-path-probes.js.map +0 -1
- package/dist/desktop/shared/types.d.ts +0 -68
- package/dist/desktop/shared/types.d.ts.map +0 -1
- package/dist/desktop/shared/types.js +0 -2
- package/dist/desktop/shared/types.js.map +0 -1
- package/dist/desktop/smoke.d.ts +0 -29
- package/dist/desktop/smoke.d.ts.map +0 -1
- package/dist/desktop/smoke.js +0 -273
- package/dist/desktop/smoke.js.map +0 -1
- package/dist/features/codex-notifier/adoption.d.ts +0 -11
- package/dist/features/codex-notifier/adoption.d.ts.map +0 -1
- package/dist/features/codex-notifier/adoption.js +0 -11
- package/dist/features/codex-notifier/adoption.js.map +0 -1
- package/dist/features/codex-notifier/app-opener.d.ts +0 -21
- package/dist/features/codex-notifier/app-opener.d.ts.map +0 -1
- package/dist/features/codex-notifier/app-opener.js +0 -33
- package/dist/features/codex-notifier/app-opener.js.map +0 -1
- package/dist/features/codex-notifier/card-action.d.ts +0 -27
- package/dist/features/codex-notifier/card-action.d.ts.map +0 -1
- package/dist/features/codex-notifier/card-action.js +0 -84
- package/dist/features/codex-notifier/card-action.js.map +0 -1
- package/dist/features/codex-notifier/card.d.ts +0 -12
- package/dist/features/codex-notifier/card.d.ts.map +0 -1
- package/dist/features/codex-notifier/card.js +0 -150
- package/dist/features/codex-notifier/card.js.map +0 -1
- package/dist/features/codex-notifier/codex-context.d.ts +0 -12
- package/dist/features/codex-notifier/codex-context.d.ts.map +0 -1
- package/dist/features/codex-notifier/codex-context.js +0 -161
- package/dist/features/codex-notifier/codex-context.js.map +0 -1
- package/dist/features/codex-notifier/config.d.ts +0 -9
- package/dist/features/codex-notifier/config.d.ts.map +0 -1
- package/dist/features/codex-notifier/config.js +0 -11
- package/dist/features/codex-notifier/config.js.map +0 -1
- package/dist/features/codex-notifier/confirmed-turn.d.ts +0 -20
- package/dist/features/codex-notifier/confirmed-turn.d.ts.map +0 -1
- package/dist/features/codex-notifier/confirmed-turn.js +0 -130
- package/dist/features/codex-notifier/confirmed-turn.js.map +0 -1
- package/dist/features/codex-notifier/emitter.d.ts +0 -13
- package/dist/features/codex-notifier/emitter.d.ts.map +0 -1
- package/dist/features/codex-notifier/emitter.js +0 -33
- package/dist/features/codex-notifier/emitter.js.map +0 -1
- package/dist/features/codex-notifier/event-store.d.ts +0 -29
- package/dist/features/codex-notifier/event-store.d.ts.map +0 -1
- package/dist/features/codex-notifier/event-store.js +0 -217
- package/dist/features/codex-notifier/event-store.js.map +0 -1
- package/dist/features/codex-notifier/event.d.ts +0 -46
- package/dist/features/codex-notifier/event.d.ts.map +0 -1
- package/dist/features/codex-notifier/event.js +0 -188
- package/dist/features/codex-notifier/event.js.map +0 -1
- package/dist/features/codex-notifier/hook-cli.d.ts +0 -23
- package/dist/features/codex-notifier/hook-cli.d.ts.map +0 -1
- package/dist/features/codex-notifier/hook-cli.js +0 -130
- package/dist/features/codex-notifier/hook-cli.js.map +0 -1
- package/dist/features/codex-notifier/hook-installer.d.ts +0 -19
- package/dist/features/codex-notifier/hook-installer.d.ts.map +0 -1
- package/dist/features/codex-notifier/hook-installer.js +0 -158
- package/dist/features/codex-notifier/hook-installer.js.map +0 -1
- package/dist/features/codex-notifier/index.d.ts +0 -21
- package/dist/features/codex-notifier/index.d.ts.map +0 -1
- package/dist/features/codex-notifier/index.js +0 -19
- package/dist/features/codex-notifier/index.js.map +0 -1
- package/dist/features/codex-notifier/internal-turn.d.ts +0 -5
- package/dist/features/codex-notifier/internal-turn.d.ts.map +0 -1
- package/dist/features/codex-notifier/internal-turn.js +0 -43
- package/dist/features/codex-notifier/internal-turn.js.map +0 -1
- package/dist/features/codex-notifier/outbox-worker.d.ts +0 -71
- package/dist/features/codex-notifier/outbox-worker.d.ts.map +0 -1
- package/dist/features/codex-notifier/outbox-worker.js +0 -290
- package/dist/features/codex-notifier/outbox-worker.js.map +0 -1
- package/dist/features/codex-notifier/outbox.d.ts +0 -25
- package/dist/features/codex-notifier/outbox.d.ts.map +0 -1
- package/dist/features/codex-notifier/outbox.js +0 -225
- package/dist/features/codex-notifier/outbox.js.map +0 -1
- package/dist/features/codex-notifier/paths.d.ts +0 -7
- package/dist/features/codex-notifier/paths.d.ts.map +0 -1
- package/dist/features/codex-notifier/paths.js +0 -20
- package/dist/features/codex-notifier/paths.js.map +0 -1
- package/dist/features/codex-notifier/screen-lock.d.ts +0 -12
- package/dist/features/codex-notifier/screen-lock.d.ts.map +0 -1
- package/dist/features/codex-notifier/screen-lock.js +0 -47
- package/dist/features/codex-notifier/screen-lock.js.map +0 -1
- package/dist/features/codex-notifier/side-conversation-monitor.d.ts +0 -102
- package/dist/features/codex-notifier/side-conversation-monitor.d.ts.map +0 -1
- package/dist/features/codex-notifier/side-conversation-monitor.js +0 -774
- package/dist/features/codex-notifier/side-conversation-monitor.js.map +0 -1
- package/dist/features/codex-notifier/types.d.ts +0 -42
- package/dist/features/codex-notifier/types.d.ts.map +0 -1
- package/dist/features/codex-notifier/types.js +0 -2
- package/dist/features/codex-notifier/types.js.map +0 -1
- package/dist/features/codex-notifier/worker-lock.d.ts +0 -8
- package/dist/features/codex-notifier/worker-lock.d.ts.map +0 -1
- package/dist/features/codex-notifier/worker-lock.js +0 -108
- package/dist/features/codex-notifier/worker-lock.js.map +0 -1
- package/dist/global-config.d.ts +0 -264
- package/dist/global-config.d.ts.map +0 -1
- package/dist/global-config.js +0 -504
- package/dist/global-config.js.map +0 -1
- package/dist/i18n/en.d.ts +0 -3
- package/dist/i18n/en.d.ts.map +0 -1
- package/dist/i18n/en.js +0 -1211
- package/dist/i18n/en.js.map +0 -1
- package/dist/i18n/index.d.ts +0 -33
- package/dist/i18n/index.d.ts.map +0 -1
- package/dist/i18n/index.js +0 -74
- package/dist/i18n/index.js.map +0 -1
- package/dist/i18n/types.d.ts +0 -4
- package/dist/i18n/types.d.ts.map +0 -1
- package/dist/i18n/types.js +0 -5
- package/dist/i18n/types.js.map +0 -1
- package/dist/i18n/zh.d.ts +0 -6
- package/dist/i18n/zh.d.ts.map +0 -1
- package/dist/i18n/zh.js +0 -1212
- package/dist/i18n/zh.js.map +0 -1
- package/dist/im/lark/ask-card.d.ts +0 -55
- package/dist/im/lark/ask-card.d.ts.map +0 -1
- package/dist/im/lark/ask-card.js +0 -392
- package/dist/im/lark/ask-card.js.map +0 -1
- package/dist/im/lark/brand-template.d.ts +0 -15
- package/dist/im/lark/brand-template.d.ts.map +0 -1
- package/dist/im/lark/brand-template.js +0 -114
- package/dist/im/lark/brand-template.js.map +0 -1
- package/dist/im/lark/callback-button-marker.d.ts +0 -34
- package/dist/im/lark/callback-button-marker.d.ts.map +0 -1
- package/dist/im/lark/callback-button-marker.js +0 -99
- package/dist/im/lark/callback-button-marker.js.map +0 -1
- package/dist/im/lark/card-builder.d.ts +0 -367
- package/dist/im/lark/card-builder.d.ts.map +0 -1
- package/dist/im/lark/card-builder.js +0 -2238
- package/dist/im/lark/card-builder.js.map +0 -1
- package/dist/im/lark/card-handler.d.ts +0 -158
- package/dist/im/lark/card-handler.d.ts.map +0 -1
- package/dist/im/lark/card-handler.js +0 -2923
- package/dist/im/lark/card-handler.js.map +0 -1
- package/dist/im/lark/client.d.ts +0 -471
- package/dist/im/lark/client.d.ts.map +0 -1
- package/dist/im/lark/client.js +0 -1943
- package/dist/im/lark/client.js.map +0 -1
- package/dist/im/lark/doc-comment.d.ts +0 -164
- package/dist/im/lark/doc-comment.d.ts.map +0 -1
- package/dist/im/lark/doc-comment.js +0 -611
- package/dist/im/lark/doc-comment.js.map +0 -1
- package/dist/im/lark/event-dispatcher.d.ts +0 -420
- package/dist/im/lark/event-dispatcher.d.ts.map +0 -1
- package/dist/im/lark/event-dispatcher.js +0 -3274
- package/dist/im/lark/event-dispatcher.js.map +0 -1
- package/dist/im/lark/forward-followup-buffer.d.ts +0 -26
- package/dist/im/lark/forward-followup-buffer.d.ts.map +0 -1
- package/dist/im/lark/forward-followup-buffer.js +0 -48
- package/dist/im/lark/forward-followup-buffer.js.map +0 -1
- package/dist/im/lark/forward-followup-content.d.ts +0 -6
- package/dist/im/lark/forward-followup-content.d.ts.map +0 -1
- package/dist/im/lark/forward-followup-content.js +0 -46
- package/dist/im/lark/forward-followup-content.js.map +0 -1
- package/dist/im/lark/forward-followup-store.d.ts +0 -9
- package/dist/im/lark/forward-followup-store.d.ts.map +0 -1
- package/dist/im/lark/forward-followup-store.js +0 -48
- package/dist/im/lark/forward-followup-store.js.map +0 -1
- package/dist/im/lark/forwarded-renderer.d.ts +0 -23
- package/dist/im/lark/forwarded-renderer.d.ts.map +0 -1
- package/dist/im/lark/forwarded-renderer.js +0 -112
- package/dist/im/lark/forwarded-renderer.js.map +0 -1
- package/dist/im/lark/grant-command.d.ts +0 -51
- package/dist/im/lark/grant-command.d.ts.map +0 -1
- package/dist/im/lark/grant-command.js +0 -215
- package/dist/im/lark/grant-command.js.map +0 -1
- package/dist/im/lark/grant-pending.d.ts +0 -31
- package/dist/im/lark/grant-pending.d.ts.map +0 -1
- package/dist/im/lark/grant-pending.js +0 -122
- package/dist/im/lark/grant-pending.js.map +0 -1
- package/dist/im/lark/groups-card.d.ts +0 -90
- package/dist/im/lark/groups-card.d.ts.map +0 -1
- package/dist/im/lark/groups-card.js +0 -832
- package/dist/im/lark/groups-card.js.map +0 -1
- package/dist/im/lark/identity-cache.d.ts +0 -88
- package/dist/im/lark/identity-cache.d.ts.map +0 -1
- package/dist/im/lark/identity-cache.js +0 -310
- package/dist/im/lark/identity-cache.js.map +0 -1
- package/dist/im/lark/inline-mentions.d.ts +0 -42
- package/dist/im/lark/inline-mentions.d.ts.map +0 -1
- package/dist/im/lark/inline-mentions.js +0 -27
- package/dist/im/lark/inline-mentions.js.map +0 -1
- package/dist/im/lark/invite-command.d.ts +0 -20
- package/dist/im/lark/invite-command.d.ts.map +0 -1
- package/dist/im/lark/invite-command.js +0 -292
- package/dist/im/lark/invite-command.js.map +0 -1
- package/dist/im/lark/issue-card.d.ts +0 -223
- package/dist/im/lark/issue-card.d.ts.map +0 -1
- package/dist/im/lark/issue-card.js +0 -542
- package/dist/im/lark/issue-card.js.map +0 -1
- package/dist/im/lark/issue-command-deps.d.ts +0 -41
- package/dist/im/lark/issue-command-deps.d.ts.map +0 -1
- package/dist/im/lark/issue-command-deps.js +0 -195
- package/dist/im/lark/issue-command-deps.js.map +0 -1
- package/dist/im/lark/issue-command.d.ts +0 -137
- package/dist/im/lark/issue-command.d.ts.map +0 -1
- package/dist/im/lark/issue-command.js +0 -335
- package/dist/im/lark/issue-command.js.map +0 -1
- package/dist/im/lark/lark-hosts.d.ts +0 -49
- package/dist/im/lark/lark-hosts.d.ts.map +0 -1
- package/dist/im/lark/lark-hosts.js +0 -59
- package/dist/im/lark/lark-hosts.js.map +0 -1
- package/dist/im/lark/md-card.d.ts +0 -192
- package/dist/im/lark/md-card.d.ts.map +0 -1
- package/dist/im/lark/md-card.js +0 -872
- package/dist/im/lark/md-card.js.map +0 -1
- package/dist/im/lark/mention-targets.d.ts +0 -43
- package/dist/im/lark/mention-targets.d.ts.map +0 -1
- package/dist/im/lark/mention-targets.js +0 -190
- package/dist/im/lark/mention-targets.js.map +0 -1
- package/dist/im/lark/merge-forward.d.ts +0 -32
- package/dist/im/lark/merge-forward.d.ts.map +0 -1
- package/dist/im/lark/merge-forward.js +0 -140
- package/dist/im/lark/merge-forward.js.map +0 -1
- package/dist/im/lark/message-parser.d.ts +0 -272
- package/dist/im/lark/message-parser.d.ts.map +0 -1
- package/dist/im/lark/message-parser.js +0 -1261
- package/dist/im/lark/message-parser.js.map +0 -1
- package/dist/im/lark/overload-nonce.d.ts +0 -19
- package/dist/im/lark/overload-nonce.d.ts.map +0 -1
- package/dist/im/lark/overload-nonce.js +0 -72
- package/dist/im/lark/overload-nonce.js.map +0 -1
- package/dist/im/lark/overview-card.d.ts +0 -100
- package/dist/im/lark/overview-card.d.ts.map +0 -1
- package/dist/im/lark/overview-card.js +0 -428
- package/dist/im/lark/overview-card.js.map +0 -1
- package/dist/im/lark/quote-hint.d.ts +0 -19
- package/dist/im/lark/quote-hint.d.ts.map +0 -1
- package/dist/im/lark/quote-hint.js +0 -24
- package/dist/im/lark/quote-hint.js.map +0 -1
- package/dist/im/lark/relay-target-routing.d.ts +0 -17
- package/dist/im/lark/relay-target-routing.d.ts.map +0 -1
- package/dist/im/lark/relay-target-routing.js +0 -74
- package/dist/im/lark/relay-target-routing.js.map +0 -1
- package/dist/im/lark/reply-card-footer-signature.d.ts +0 -7
- package/dist/im/lark/reply-card-footer-signature.d.ts.map +0 -1
- package/dist/im/lark/reply-card-footer-signature.js +0 -7
- package/dist/im/lark/reply-card-footer-signature.js.map +0 -1
- package/dist/im/lark/reply-mode-command.d.ts +0 -2
- package/dist/im/lark/reply-mode-command.d.ts.map +0 -1
- package/dist/im/lark/reply-mode-command.js +0 -108
- package/dist/im/lark/reply-mode-command.js.map +0 -1
- package/dist/im/lark/schedules-card.d.ts +0 -96
- package/dist/im/lark/schedules-card.d.ts.map +0 -1
- package/dist/im/lark/schedules-card.js +0 -910
- package/dist/im/lark/schedules-card.js.map +0 -1
- package/dist/im/lark/sessions-card.d.ts +0 -117
- package/dist/im/lark/sessions-card.d.ts.map +0 -1
- package/dist/im/lark/sessions-card.js +0 -876
- package/dist/im/lark/sessions-card.js.map +0 -1
- package/dist/im/lark/settings-card.d.ts +0 -125
- package/dist/im/lark/settings-card.d.ts.map +0 -1
- package/dist/im/lark/settings-card.js +0 -434
- package/dist/im/lark/settings-card.js.map +0 -1
- package/dist/im/lark/substitute-command.d.ts +0 -2
- package/dist/im/lark/substitute-command.d.ts.map +0 -1
- package/dist/im/lark/substitute-command.js +0 -68
- package/dist/im/lark/substitute-command.js.map +0 -1
- package/dist/im/lark/summary-command.d.ts +0 -21
- package/dist/im/lark/summary-command.d.ts.map +0 -1
- package/dist/im/lark/summary-command.js +0 -335
- package/dist/im/lark/summary-command.js.map +0 -1
- package/dist/im/lark/topic-root-context.d.ts +0 -35
- package/dist/im/lark/topic-root-context.d.ts.map +0 -1
- package/dist/im/lark/topic-root-context.js +0 -37
- package/dist/im/lark/topic-root-context.js.map +0 -1
- package/dist/im/lark/v3-blocked-card-handler.d.ts +0 -28
- package/dist/im/lark/v3-blocked-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-blocked-card-handler.js +0 -134
- package/dist/im/lark/v3-blocked-card-handler.js.map +0 -1
- package/dist/im/lark/v3-blocked-card.d.ts +0 -76
- package/dist/im/lark/v3-blocked-card.d.ts.map +0 -1
- package/dist/im/lark/v3-blocked-card.js +0 -224
- package/dist/im/lark/v3-blocked-card.js.map +0 -1
- package/dist/im/lark/v3-distillation-card-handler.d.ts +0 -12
- package/dist/im/lark/v3-distillation-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-distillation-card-handler.js +0 -107
- package/dist/im/lark/v3-distillation-card-handler.js.map +0 -1
- package/dist/im/lark/v3-distillation-card.d.ts +0 -42
- package/dist/im/lark/v3-distillation-card.d.ts.map +0 -1
- package/dist/im/lark/v3-distillation-card.js +0 -206
- package/dist/im/lark/v3-distillation-card.js.map +0 -1
- package/dist/im/lark/v3-gate-card-handler.d.ts +0 -31
- package/dist/im/lark/v3-gate-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-gate-card-handler.js +0 -111
- package/dist/im/lark/v3-gate-card-handler.js.map +0 -1
- package/dist/im/lark/v3-gate-card.d.ts +0 -56
- package/dist/im/lark/v3-gate-card.d.ts.map +0 -1
- package/dist/im/lark/v3-gate-card.js +0 -153
- package/dist/im/lark/v3-gate-card.js.map +0 -1
- package/dist/im/lark/v3-loop-grant-card-handler.d.ts +0 -28
- package/dist/im/lark/v3-loop-grant-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-loop-grant-card-handler.js +0 -89
- package/dist/im/lark/v3-loop-grant-card-handler.js.map +0 -1
- package/dist/im/lark/v3-loop-grant-card.d.ts +0 -46
- package/dist/im/lark/v3-loop-grant-card.d.ts.map +0 -1
- package/dist/im/lark/v3-loop-grant-card.js +0 -120
- package/dist/im/lark/v3-loop-grant-card.js.map +0 -1
- package/dist/im/lark/v3-progress-card-manager.d.ts +0 -79
- package/dist/im/lark/v3-progress-card-manager.d.ts.map +0 -1
- package/dist/im/lark/v3-progress-card-manager.js +0 -444
- package/dist/im/lark/v3-progress-card-manager.js.map +0 -1
- package/dist/im/lark/v3-progress-card.d.ts +0 -26
- package/dist/im/lark/v3-progress-card.d.ts.map +0 -1
- package/dist/im/lark/v3-progress-card.js +0 -217
- package/dist/im/lark/v3-progress-card.js.map +0 -1
- package/dist/im/lark/v3-revisit-grant-card-handler.d.ts +0 -29
- package/dist/im/lark/v3-revisit-grant-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-revisit-grant-card-handler.js +0 -95
- package/dist/im/lark/v3-revisit-grant-card-handler.js.map +0 -1
- package/dist/im/lark/v3-revisit-grant-card.d.ts +0 -52
- package/dist/im/lark/v3-revisit-grant-card.d.ts.map +0 -1
- package/dist/im/lark/v3-revisit-grant-card.js +0 -124
- package/dist/im/lark/v3-revisit-grant-card.js.map +0 -1
- package/dist/im/lark/v3-run-save-card-handler.d.ts +0 -12
- package/dist/im/lark/v3-run-save-card-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-run-save-card-handler.js +0 -160
- package/dist/im/lark/v3-run-save-card-handler.js.map +0 -1
- package/dist/im/lark/v3-run-save-card.d.ts +0 -38
- package/dist/im/lark/v3-run-save-card.d.ts.map +0 -1
- package/dist/im/lark/v3-run-save-card.js +0 -125
- package/dist/im/lark/v3-run-save-card.js.map +0 -1
- package/dist/im/lark/v3-saved-workflow-command.d.ts +0 -36
- package/dist/im/lark/v3-saved-workflow-command.d.ts.map +0 -1
- package/dist/im/lark/v3-saved-workflow-command.js +0 -186
- package/dist/im/lark/v3-saved-workflow-command.js.map +0 -1
- package/dist/im/lark/v3-saved-workflow-handler.d.ts +0 -89
- package/dist/im/lark/v3-saved-workflow-handler.d.ts.map +0 -1
- package/dist/im/lark/v3-saved-workflow-handler.js +0 -212
- package/dist/im/lark/v3-saved-workflow-handler.js.map +0 -1
- package/dist/im/lark/workflow-slash-command.d.ts +0 -18
- package/dist/im/lark/workflow-slash-command.d.ts.map +0 -1
- package/dist/im/lark/workflow-slash-command.js +0 -36
- package/dist/im/lark/workflow-slash-command.js.map +0 -1
- package/dist/im/types.d.ts +0 -79
- package/dist/im/types.d.ts.map +0 -1
- package/dist/im/types.js +0 -2
- package/dist/im/types.js.map +0 -1
- package/dist/index-core-only.d.ts +0 -3
- package/dist/index-core-only.d.ts.map +0 -1
- package/dist/index-core-only.js +0 -118
- package/dist/index-core-only.js.map +0 -1
- package/dist/index-daemon.d.ts +0 -3
- package/dist/index-daemon.d.ts.map +0 -1
- package/dist/index-daemon.js +0 -64
- package/dist/index-daemon.js.map +0 -1
- package/dist/mir-local-runtime.d.ts +0 -60
- package/dist/mir-local-runtime.d.ts.map +0 -1
- package/dist/mir-local-runtime.js +0 -362
- package/dist/mir-local-runtime.js.map +0 -1
- package/dist/mir-prompt.d.ts +0 -16
- package/dist/mir-prompt.d.ts.map +0 -1
- package/dist/mir-prompt.js +0 -170
- package/dist/mir-prompt.js.map +0 -1
- package/dist/mir-runner.d.ts +0 -3
- package/dist/mir-runner.d.ts.map +0 -1
- package/dist/mir-runner.js +0 -369
- package/dist/mir-runner.js.map +0 -1
- package/dist/mira-output.d.ts +0 -3
- package/dist/mira-output.d.ts.map +0 -1
- package/dist/mira-output.js +0 -136
- package/dist/mira-output.js.map +0 -1
- package/dist/mira-runner.d.ts +0 -3
- package/dist/mira-runner.d.ts.map +0 -1
- package/dist/mira-runner.js +0 -530
- package/dist/mira-runner.js.map +0 -1
- package/dist/platform/bind.d.ts +0 -5
- package/dist/platform/bind.d.ts.map +0 -1
- package/dist/platform/bind.js +0 -157
- package/dist/platform/bind.js.map +0 -1
- package/dist/platform/binding.d.ts +0 -47
- package/dist/platform/binding.d.ts.map +0 -1
- package/dist/platform/binding.js +0 -84
- package/dist/platform/binding.js.map +0 -1
- package/dist/platform/device-command.d.ts +0 -35
- package/dist/platform/device-command.d.ts.map +0 -1
- package/dist/platform/device-command.js +0 -187
- package/dist/platform/device-command.js.map +0 -1
- package/dist/platform/device-enroll.d.ts +0 -156
- package/dist/platform/device-enroll.d.ts.map +0 -1
- package/dist/platform/device-enroll.js +0 -781
- package/dist/platform/device-enroll.js.map +0 -1
- package/dist/platform/device-isolation-activation-client.d.ts +0 -28
- package/dist/platform/device-isolation-activation-client.d.ts.map +0 -1
- package/dist/platform/device-isolation-activation-client.js +0 -279
- package/dist/platform/device-isolation-activation-client.js.map +0 -1
- package/dist/platform/device-isolation.d.ts +0 -35
- package/dist/platform/device-isolation.d.ts.map +0 -1
- package/dist/platform/device-isolation.js +0 -90
- package/dist/platform/device-isolation.js.map +0 -1
- package/dist/platform/device-paths.d.ts +0 -9
- package/dist/platform/device-paths.d.ts.map +0 -1
- package/dist/platform/device-paths.js +0 -14
- package/dist/platform/device-paths.js.map +0 -1
- package/dist/platform/device.d.ts +0 -77
- package/dist/platform/device.d.ts.map +0 -1
- package/dist/platform/device.js +0 -212
- package/dist/platform/device.js.map +0 -1
- package/dist/platform/host-command-context.d.ts +0 -15
- package/dist/platform/host-command-context.d.ts.map +0 -1
- package/dist/platform/host-command-context.js +0 -26
- package/dist/platform/host-command-context.js.map +0 -1
- package/dist/platform/issue-client.d.ts +0 -201
- package/dist/platform/issue-client.d.ts.map +0 -1
- package/dist/platform/issue-client.js +0 -142
- package/dist/platform/issue-client.js.map +0 -1
- package/dist/platform/platform-http.d.ts +0 -15
- package/dist/platform/platform-http.d.ts.map +0 -1
- package/dist/platform/platform-http.js +0 -77
- package/dist/platform/platform-http.js.map +0 -1
- package/dist/platform/secure-host-file.d.ts +0 -12
- package/dist/platform/secure-host-file.d.ts.map +0 -1
- package/dist/platform/secure-host-file.js +0 -301
- package/dist/platform/secure-host-file.js.map +0 -1
- package/dist/platform/tunnel-client.d.ts +0 -41
- package/dist/platform/tunnel-client.d.ts.map +0 -1
- package/dist/platform/tunnel-client.js +0 -493
- package/dist/platform/tunnel-client.js.map +0 -1
- package/dist/pm2-graceful-exit.d.ts +0 -28
- package/dist/pm2-graceful-exit.d.ts.map +0 -1
- package/dist/pm2-graceful-exit.js +0 -39
- package/dist/pm2-graceful-exit.js.map +0 -1
- package/dist/services/adopt-picker.d.ts +0 -41
- package/dist/services/adopt-picker.d.ts.map +0 -1
- package/dist/services/adopt-picker.js +0 -70
- package/dist/services/adopt-picker.js.map +0 -1
- package/dist/services/aiden-checkpoints.d.ts +0 -5
- package/dist/services/aiden-checkpoints.d.ts.map +0 -1
- package/dist/services/aiden-checkpoints.js +0 -91
- package/dist/services/aiden-checkpoints.js.map +0 -1
- package/dist/services/allowed-chat-groups.d.ts +0 -11
- package/dist/services/allowed-chat-groups.d.ts.map +0 -1
- package/dist/services/allowed-chat-groups.js +0 -20
- package/dist/services/allowed-chat-groups.js.map +0 -1
- package/dist/services/async-trigger-state.d.ts +0 -90
- package/dist/services/async-trigger-state.d.ts.map +0 -1
- package/dist/services/async-trigger-state.js +0 -96
- package/dist/services/async-trigger-state.js.map +0 -1
- package/dist/services/async-trigger-store.d.ts +0 -36
- package/dist/services/async-trigger-store.d.ts.map +0 -1
- package/dist/services/async-trigger-store.js +0 -121
- package/dist/services/async-trigger-store.js.map +0 -1
- package/dist/services/backend-availability.d.ts +0 -29
- package/dist/services/backend-availability.d.ts.map +0 -1
- package/dist/services/backend-availability.js +0 -55
- package/dist/services/backend-availability.js.map +0 -1
- package/dist/services/backend-type-store.d.ts +0 -33
- package/dist/services/backend-type-store.d.ts.map +0 -1
- package/dist/services/backend-type-store.js +0 -43
- package/dist/services/backend-type-store.js.map +0 -1
- package/dist/services/bot-config-store.d.ts +0 -155
- package/dist/services/bot-config-store.d.ts.map +0 -1
- package/dist/services/bot-config-store.js +0 -384
- package/dist/services/bot-config-store.js.map +0 -1
- package/dist/services/bot-owner-store.d.ts +0 -28
- package/dist/services/bot-owner-store.d.ts.map +0 -1
- package/dist/services/bot-owner-store.js +0 -82
- package/dist/services/bot-owner-store.js.map +0 -1
- package/dist/services/bot-profile-store.d.ts +0 -16
- package/dist/services/bot-profile-store.d.ts.map +0 -1
- package/dist/services/bot-profile-store.js +0 -98
- package/dist/services/bot-profile-store.js.map +0 -1
- package/dist/services/bot-union-ids-store.d.ts +0 -24
- package/dist/services/bot-union-ids-store.d.ts.map +0 -1
- package/dist/services/bot-union-ids-store.js +0 -79
- package/dist/services/bot-union-ids-store.js.map +0 -1
- package/dist/services/brand-store.d.ts +0 -15
- package/dist/services/brand-store.d.ts.map +0 -1
- package/dist/services/brand-store.js +0 -47
- package/dist/services/brand-store.js.map +0 -1
- package/dist/services/bridge-fallback-gate.d.ts +0 -72
- package/dist/services/bridge-fallback-gate.d.ts.map +0 -1
- package/dist/services/bridge-fallback-gate.js +0 -190
- package/dist/services/bridge-fallback-gate.js.map +0 -1
- package/dist/services/bridge-rotation-policy.d.ts +0 -179
- package/dist/services/bridge-rotation-policy.d.ts.map +0 -1
- package/dist/services/bridge-rotation-policy.js +0 -163
- package/dist/services/bridge-rotation-policy.js.map +0 -1
- package/dist/services/bridge-turn-queue.d.ts +0 -198
- package/dist/services/bridge-turn-queue.d.ts.map +0 -1
- package/dist/services/bridge-turn-queue.js +0 -430
- package/dist/services/bridge-turn-queue.js.map +0 -1
- package/dist/services/card-mode-store.d.ts +0 -13
- package/dist/services/card-mode-store.d.ts.map +0 -1
- package/dist/services/card-mode-store.js +0 -52
- package/dist/services/card-mode-store.js.map +0 -1
- package/dist/services/card-prefs-store.d.ts +0 -55
- package/dist/services/card-prefs-store.d.ts.map +0 -1
- package/dist/services/card-prefs-store.js +0 -269
- package/dist/services/card-prefs-store.js.map +0 -1
- package/dist/services/chat-first-seen-store.d.ts +0 -27
- package/dist/services/chat-first-seen-store.d.ts.map +0 -1
- package/dist/services/chat-first-seen-store.js +0 -114
- package/dist/services/chat-first-seen-store.js.map +0 -1
- package/dist/services/chat-reply-mode-store.d.ts +0 -30
- package/dist/services/chat-reply-mode-store.d.ts.map +0 -1
- package/dist/services/chat-reply-mode-store.js +0 -135
- package/dist/services/chat-reply-mode-store.js.map +0 -1
- package/dist/services/claude-transcript.d.ts +0 -323
- package/dist/services/claude-transcript.d.ts.map +0 -1
- package/dist/services/claude-transcript.js +0 -930
- package/dist/services/claude-transcript.js.map +0 -1
- package/dist/services/coco-paths.d.ts +0 -10
- package/dist/services/coco-paths.d.ts.map +0 -1
- package/dist/services/coco-paths.js +0 -16
- package/dist/services/coco-paths.js.map +0 -1
- package/dist/services/coco-transcript.d.ts +0 -35
- package/dist/services/coco-transcript.d.ts.map +0 -1
- package/dist/services/coco-transcript.js +0 -183
- package/dist/services/coco-transcript.js.map +0 -1
- package/dist/services/codex-app-runner-protocol.d.ts +0 -70
- package/dist/services/codex-app-runner-protocol.d.ts.map +0 -1
- package/dist/services/codex-app-runner-protocol.js +0 -187
- package/dist/services/codex-app-runner-protocol.js.map +0 -1
- package/dist/services/codex-app-threads.d.ts +0 -67
- package/dist/services/codex-app-threads.d.ts.map +0 -1
- package/dist/services/codex-app-threads.js +0 -657
- package/dist/services/codex-app-threads.js.map +0 -1
- package/dist/services/codex-app-token-usage.d.ts +0 -93
- package/dist/services/codex-app-token-usage.d.ts.map +0 -1
- package/dist/services/codex-app-token-usage.js +0 -190
- package/dist/services/codex-app-token-usage.js.map +0 -1
- package/dist/services/codex-app-turn-controller.d.ts +0 -72
- package/dist/services/codex-app-turn-controller.d.ts.map +0 -1
- package/dist/services/codex-app-turn-controller.js +0 -524
- package/dist/services/codex-app-turn-controller.js.map +0 -1
- package/dist/services/codex-bridge-queue.d.ts +0 -73
- package/dist/services/codex-bridge-queue.d.ts.map +0 -1
- package/dist/services/codex-bridge-queue.js +0 -273
- package/dist/services/codex-bridge-queue.js.map +0 -1
- package/dist/services/codex-composer-state.d.ts +0 -27
- package/dist/services/codex-composer-state.d.ts.map +0 -1
- package/dist/services/codex-composer-state.js +0 -53
- package/dist/services/codex-composer-state.js.map +0 -1
- package/dist/services/codex-paths.d.ts +0 -7
- package/dist/services/codex-paths.d.ts.map +0 -1
- package/dist/services/codex-paths.js +0 -19
- package/dist/services/codex-paths.js.map +0 -1
- package/dist/services/codex-runner-freshness.d.ts +0 -39
- package/dist/services/codex-runner-freshness.d.ts.map +0 -1
- package/dist/services/codex-runner-freshness.js +0 -78
- package/dist/services/codex-runner-freshness.js.map +0 -1
- package/dist/services/codex-service-tier.d.ts +0 -44
- package/dist/services/codex-service-tier.d.ts.map +0 -1
- package/dist/services/codex-service-tier.js +0 -63
- package/dist/services/codex-service-tier.js.map +0 -1
- package/dist/services/codex-transcript.d.ts +0 -140
- package/dist/services/codex-transcript.d.ts.map +0 -1
- package/dist/services/codex-transcript.js +0 -631
- package/dist/services/codex-transcript.js.map +0 -1
- package/dist/services/config-store.d.ts +0 -19
- package/dist/services/config-store.d.ts.map +0 -1
- package/dist/services/config-store.js +0 -52
- package/dist/services/config-store.js.map +0 -1
- package/dist/services/connector-store.d.ts +0 -71
- package/dist/services/connector-store.d.ts.map +0 -1
- package/dist/services/connector-store.js +0 -79
- package/dist/services/connector-store.js.map +0 -1
- package/dist/services/cursor-resume-policy.d.ts +0 -12
- package/dist/services/cursor-resume-policy.d.ts.map +0 -1
- package/dist/services/cursor-resume-policy.js +0 -15
- package/dist/services/cursor-resume-policy.js.map +0 -1
- package/dist/services/cursor-transcript.d.ts +0 -47
- package/dist/services/cursor-transcript.d.ts.map +0 -1
- package/dist/services/cursor-transcript.js +0 -324
- package/dist/services/cursor-transcript.js.map +0 -1
- package/dist/services/default-worktree.d.ts +0 -28
- package/dist/services/default-worktree.d.ts.map +0 -1
- package/dist/services/default-worktree.js +0 -102
- package/dist/services/default-worktree.js.map +0 -1
- package/dist/services/deployment-identity.d.ts +0 -22
- package/dist/services/deployment-identity.d.ts.map +0 -1
- package/dist/services/deployment-identity.js +0 -67
- package/dist/services/deployment-identity.js.map +0 -1
- package/dist/services/doc-subs-store.d.ts +0 -63
- package/dist/services/doc-subs-store.d.ts.map +0 -1
- package/dist/services/doc-subs-store.js +0 -95
- package/dist/services/doc-subs-store.js.map +0 -1
- package/dist/services/exact-chat-grant.d.ts +0 -83
- package/dist/services/exact-chat-grant.d.ts.map +0 -1
- package/dist/services/exact-chat-grant.js +0 -249
- package/dist/services/exact-chat-grant.js.map +0 -1
- package/dist/services/federation-membership-store.d.ts +0 -23
- package/dist/services/federation-membership-store.d.ts.map +0 -1
- package/dist/services/federation-membership-store.js +0 -66
- package/dist/services/federation-membership-store.js.map +0 -1
- package/dist/services/federation-roster.d.ts +0 -58
- package/dist/services/federation-roster.d.ts.map +0 -1
- package/dist/services/federation-roster.js +0 -59
- package/dist/services/federation-roster.js.map +0 -1
- package/dist/services/federation-store.d.ts +0 -87
- package/dist/services/federation-store.d.ts.map +0 -1
- package/dist/services/federation-store.js +0 -143
- package/dist/services/federation-store.js.map +0 -1
- package/dist/services/file-bridge-path.d.ts +0 -8
- package/dist/services/file-bridge-path.d.ts.map +0 -1
- package/dist/services/file-bridge-path.js +0 -75
- package/dist/services/file-bridge-path.js.map +0 -1
- package/dist/services/frozen-card-store.d.ts +0 -8
- package/dist/services/frozen-card-store.d.ts.map +0 -1
- package/dist/services/frozen-card-store.js +0 -66
- package/dist/services/frozen-card-store.js.map +0 -1
- package/dist/services/git-worktree.d.ts +0 -63
- package/dist/services/git-worktree.d.ts.map +0 -1
- package/dist/services/git-worktree.js +0 -246
- package/dist/services/git-worktree.js.map +0 -1
- package/dist/services/grant-policy.d.ts +0 -13
- package/dist/services/grant-policy.d.ts.map +0 -1
- package/dist/services/grant-policy.js +0 -40
- package/dist/services/grant-policy.js.map +0 -1
- package/dist/services/grant-prefs-store.d.ts +0 -26
- package/dist/services/grant-prefs-store.d.ts.map +0 -1
- package/dist/services/grant-prefs-store.js +0 -109
- package/dist/services/grant-prefs-store.js.map +0 -1
- package/dist/services/grant-store.d.ts +0 -103
- package/dist/services/grant-store.d.ts.map +0 -1
- package/dist/services/grant-store.js +0 -580
- package/dist/services/grant-store.js.map +0 -1
- package/dist/services/grok-paths.d.ts +0 -27
- package/dist/services/grok-paths.d.ts.map +0 -1
- package/dist/services/grok-paths.js +0 -106
- package/dist/services/grok-paths.js.map +0 -1
- package/dist/services/grok-transcript.d.ts +0 -68
- package/dist/services/grok-transcript.d.ts.map +0 -1
- package/dist/services/grok-transcript.js +0 -681
- package/dist/services/grok-transcript.js.map +0 -1
- package/dist/services/group-creator.d.ts +0 -87
- package/dist/services/group-creator.d.ts.map +0 -1
- package/dist/services/group-creator.js +0 -288
- package/dist/services/group-creator.js.map +0 -1
- package/dist/services/groups-store.d.ts +0 -194
- package/dist/services/groups-store.d.ts.map +0 -1
- package/dist/services/groups-store.js +0 -493
- package/dist/services/groups-store.js.map +0 -1
- package/dist/services/hermes-session-filter.d.ts +0 -28
- package/dist/services/hermes-session-filter.d.ts.map +0 -1
- package/dist/services/hermes-session-filter.js +0 -53
- package/dist/services/hermes-session-filter.js.map +0 -1
- package/dist/services/hermes-transcript.d.ts +0 -11
- package/dist/services/hermes-transcript.d.ts.map +0 -1
- package/dist/services/hermes-transcript.js +0 -184
- package/dist/services/hermes-transcript.js.map +0 -1
- package/dist/services/hook-runner.d.ts +0 -53
- package/dist/services/hook-runner.d.ts.map +0 -1
- package/dist/services/hook-runner.js +0 -451
- package/dist/services/hook-runner.js.map +0 -1
- package/dist/services/insight/antigravity-span-reader.d.ts +0 -3
- package/dist/services/insight/antigravity-span-reader.d.ts.map +0 -1
- package/dist/services/insight/antigravity-span-reader.js +0 -249
- package/dist/services/insight/antigravity-span-reader.js.map +0 -1
- package/dist/services/insight/classify.d.ts +0 -9
- package/dist/services/insight/classify.d.ts.map +0 -1
- package/dist/services/insight/classify.js +0 -71
- package/dist/services/insight/classify.js.map +0 -1
- package/dist/services/insight/claude-span-reader.d.ts +0 -3
- package/dist/services/insight/claude-span-reader.d.ts.map +0 -1
- package/dist/services/insight/claude-span-reader.js +0 -276
- package/dist/services/insight/claude-span-reader.js.map +0 -1
- package/dist/services/insight/codex-span-reader.d.ts +0 -3
- package/dist/services/insight/codex-span-reader.d.ts.map +0 -1
- package/dist/services/insight/codex-span-reader.js +0 -306
- package/dist/services/insight/codex-span-reader.js.map +0 -1
- package/dist/services/insight/intent.d.ts +0 -5
- package/dist/services/insight/intent.d.ts.map +0 -1
- package/dist/services/insight/intent.js +0 -145
- package/dist/services/insight/intent.js.map +0 -1
- package/dist/services/insight/jsonl.d.ts +0 -10
- package/dist/services/insight/jsonl.d.ts.map +0 -1
- package/dist/services/insight/jsonl.js +0 -36
- package/dist/services/insight/jsonl.js.map +0 -1
- package/dist/services/insight/prompt.d.ts +0 -3
- package/dist/services/insight/prompt.d.ts.map +0 -1
- package/dist/services/insight/prompt.js +0 -99
- package/dist/services/insight/prompt.js.map +0 -1
- package/dist/services/insight/redact.d.ts +0 -4
- package/dist/services/insight/redact.d.ts.map +0 -1
- package/dist/services/insight/redact.js +0 -67
- package/dist/services/insight/redact.js.map +0 -1
- package/dist/services/insight/report.d.ts +0 -29
- package/dist/services/insight/report.d.ts.map +0 -1
- package/dist/services/insight/report.js +0 -1247
- package/dist/services/insight/report.js.map +0 -1
- package/dist/services/insight/safe-detail.d.ts +0 -5
- package/dist/services/insight/safe-detail.d.ts.map +0 -1
- package/dist/services/insight/safe-detail.js +0 -59
- package/dist/services/insight/safe-detail.js.map +0 -1
- package/dist/services/insight/scrub.d.ts +0 -22
- package/dist/services/insight/scrub.d.ts.map +0 -1
- package/dist/services/insight/scrub.js +0 -70
- package/dist/services/insight/scrub.js.map +0 -1
- package/dist/services/insight/subagent-reader.d.ts +0 -19
- package/dist/services/insight/subagent-reader.d.ts.map +0 -1
- package/dist/services/insight/subagent-reader.js +0 -111
- package/dist/services/insight/subagent-reader.js.map +0 -1
- package/dist/services/insight/types.d.ts +0 -448
- package/dist/services/insight/types.d.ts.map +0 -1
- package/dist/services/insight/types.js +0 -2
- package/dist/services/insight/types.js.map +0 -1
- package/dist/services/invite-store.d.ts +0 -28
- package/dist/services/invite-store.d.ts.map +0 -1
- package/dist/services/invite-store.js +0 -85
- package/dist/services/invite-store.js.map +0 -1
- package/dist/services/issue-board-store.d.ts +0 -214
- package/dist/services/issue-board-store.d.ts.map +0 -1
- package/dist/services/issue-board-store.js +0 -472
- package/dist/services/issue-board-store.js.map +0 -1
- package/dist/services/issue-claim-flow.d.ts +0 -160
- package/dist/services/issue-claim-flow.d.ts.map +0 -1
- package/dist/services/issue-claim-flow.js +0 -222
- package/dist/services/issue-claim-flow.js.map +0 -1
- package/dist/services/issue-outbox-pump.d.ts +0 -25
- package/dist/services/issue-outbox-pump.d.ts.map +0 -1
- package/dist/services/issue-outbox-pump.js +0 -102
- package/dist/services/issue-outbox-pump.js.map +0 -1
- package/dist/services/issue-release.d.ts +0 -78
- package/dist/services/issue-release.d.ts.map +0 -1
- package/dist/services/issue-release.js +0 -89
- package/dist/services/issue-release.js.map +0 -1
- package/dist/services/issue-report.d.ts +0 -72
- package/dist/services/issue-report.d.ts.map +0 -1
- package/dist/services/issue-report.js +0 -84
- package/dist/services/issue-report.js.map +0 -1
- package/dist/services/issue-status-view.d.ts +0 -52
- package/dist/services/issue-status-view.d.ts.map +0 -1
- package/dist/services/issue-status-view.js +0 -42
- package/dist/services/issue-status-view.js.map +0 -1
- package/dist/services/issue-status-writer.d.ts +0 -98
- package/dist/services/issue-status-writer.d.ts.map +0 -1
- package/dist/services/issue-status-writer.js +0 -123
- package/dist/services/issue-status-writer.js.map +0 -1
- package/dist/services/jsonl-cursor.d.ts +0 -24
- package/dist/services/jsonl-cursor.d.ts.map +0 -1
- package/dist/services/jsonl-cursor.js +0 -110
- package/dist/services/jsonl-cursor.js.map +0 -1
- package/dist/services/kiro-session.d.ts +0 -2
- package/dist/services/kiro-session.d.ts.map +0 -1
- package/dist/services/kiro-session.js +0 -19
- package/dist/services/kiro-session.js.map +0 -1
- package/dist/services/local-cli-opener.d.ts +0 -65
- package/dist/services/local-cli-opener.d.ts.map +0 -1
- package/dist/services/local-cli-opener.js +0 -426
- package/dist/services/local-cli-opener.js.map +0 -1
- package/dist/services/message-listener-run-preview-store.d.ts +0 -43
- package/dist/services/message-listener-run-preview-store.d.ts.map +0 -1
- package/dist/services/message-listener-run-preview-store.js +0 -152
- package/dist/services/message-listener-run-preview-store.js.map +0 -1
- package/dist/services/message-listener-store.d.ts +0 -44
- package/dist/services/message-listener-store.d.ts.map +0 -1
- package/dist/services/message-listener-store.js +0 -179
- package/dist/services/message-listener-store.js.map +0 -1
- package/dist/services/message-listener.d.ts +0 -129
- package/dist/services/message-listener.d.ts.map +0 -1
- package/dist/services/message-listener.js +0 -441
- package/dist/services/message-listener.js.map +0 -1
- package/dist/services/message-queue.d.ts +0 -9
- package/dist/services/message-queue.d.ts.map +0 -1
- package/dist/services/message-queue.js +0 -79
- package/dist/services/message-queue.js.map +0 -1
- package/dist/services/mtr-transcript.d.ts +0 -14
- package/dist/services/mtr-transcript.d.ts.map +0 -1
- package/dist/services/mtr-transcript.js +0 -291
- package/dist/services/mtr-transcript.js.map +0 -1
- package/dist/services/observed-bots-store.d.ts +0 -33
- package/dist/services/observed-bots-store.d.ts.map +0 -1
- package/dist/services/observed-bots-store.js +0 -103
- package/dist/services/observed-bots-store.js.map +0 -1
- package/dist/services/oncall-store.d.ts +0 -140
- package/dist/services/oncall-store.d.ts.map +0 -1
- package/dist/services/oncall-store.js +0 -403
- package/dist/services/oncall-store.js.map +0 -1
- package/dist/services/open-platform-rename.d.ts +0 -73
- package/dist/services/open-platform-rename.d.ts.map +0 -1
- package/dist/services/open-platform-rename.js +0 -396
- package/dist/services/open-platform-rename.js.map +0 -1
- package/dist/services/opencode-paths.d.ts +0 -7
- package/dist/services/opencode-paths.d.ts.map +0 -1
- package/dist/services/opencode-paths.js +0 -18
- package/dist/services/opencode-paths.js.map +0 -1
- package/dist/services/overload-alert-migration.d.ts +0 -15
- package/dist/services/overload-alert-migration.d.ts.map +0 -1
- package/dist/services/overload-alert-migration.js +0 -115
- package/dist/services/overload-alert-migration.js.map +0 -1
- package/dist/services/pairing-store.d.ts +0 -47
- package/dist/services/pairing-store.d.ts.map +0 -1
- package/dist/services/pairing-store.js +0 -132
- package/dist/services/pairing-store.js.map +0 -1
- package/dist/services/pi-transcript.d.ts +0 -26
- package/dist/services/pi-transcript.d.ts.map +0 -1
- package/dist/services/pi-transcript.js +0 -327
- package/dist/services/pi-transcript.js.map +0 -1
- package/dist/services/platform-team-store.d.ts +0 -52
- package/dist/services/platform-team-store.d.ts.map +0 -1
- package/dist/services/platform-team-store.js +0 -159
- package/dist/services/platform-team-store.js.map +0 -1
- package/dist/services/plugin-registry-store.d.ts +0 -8
- package/dist/services/plugin-registry-store.d.ts.map +0 -1
- package/dist/services/plugin-registry-store.js +0 -153
- package/dist/services/plugin-registry-store.js.map +0 -1
- package/dist/services/project-scanner.d.ts +0 -28
- package/dist/services/project-scanner.d.ts.map +0 -1
- package/dist/services/project-scanner.js +0 -203
- package/dist/services/project-scanner.js.map +0 -1
- package/dist/services/quota-dedup.d.ts +0 -33
- package/dist/services/quota-dedup.d.ts.map +0 -1
- package/dist/services/quota-dedup.js +0 -67
- package/dist/services/quota-dedup.js.map +0 -1
- package/dist/services/relay-picker.d.ts +0 -27
- package/dist/services/relay-picker.d.ts.map +0 -1
- package/dist/services/relay-picker.js +0 -88
- package/dist/services/relay-picker.js.map +0 -1
- package/dist/services/restart-intent-store.d.ts +0 -41
- package/dist/services/restart-intent-store.d.ts.map +0 -1
- package/dist/services/restart-intent-store.js +0 -194
- package/dist/services/restart-intent-store.js.map +0 -1
- package/dist/services/resumable-session-discovery.d.ts +0 -15
- package/dist/services/resumable-session-discovery.d.ts.map +0 -1
- package/dist/services/resumable-session-discovery.js +0 -357
- package/dist/services/resumable-session-discovery.js.map +0 -1
- package/dist/services/role-profile-store.d.ts +0 -25
- package/dist/services/role-profile-store.d.ts.map +0 -1
- package/dist/services/role-profile-store.js +0 -176
- package/dist/services/role-profile-store.js.map +0 -1
- package/dist/services/sandbox-migration.d.ts +0 -14
- package/dist/services/sandbox-migration.d.ts.map +0 -1
- package/dist/services/sandbox-migration.js +0 -85
- package/dist/services/sandbox-migration.js.map +0 -1
- package/dist/services/sandbox-store.d.ts +0 -50
- package/dist/services/sandbox-store.d.ts.map +0 -1
- package/dist/services/sandbox-store.js +0 -155
- package/dist/services/sandbox-store.js.map +0 -1
- package/dist/services/schedule-split-migration.d.ts +0 -2
- package/dist/services/schedule-split-migration.d.ts.map +0 -1
- package/dist/services/schedule-split-migration.js +0 -159
- package/dist/services/schedule-split-migration.js.map +0 -1
- package/dist/services/schedule-store.d.ts +0 -138
- package/dist/services/schedule-store.d.ts.map +0 -1
- package/dist/services/schedule-store.js +0 -619
- package/dist/services/schedule-store.js.map +0 -1
- package/dist/services/seen-message-store.d.ts +0 -12
- package/dist/services/seen-message-store.d.ts.map +0 -1
- package/dist/services/seen-message-store.js +0 -119
- package/dist/services/seen-message-store.js.map +0 -1
- package/dist/services/send-policy.d.ts +0 -182
- package/dist/services/send-policy.d.ts.map +0 -1
- package/dist/services/send-policy.js +0 -189
- package/dist/services/send-policy.js.map +0 -1
- package/dist/services/session-lifecycle-hooks.d.ts +0 -10
- package/dist/services/session-lifecycle-hooks.d.ts.map +0 -1
- package/dist/services/session-lifecycle-hooks.js +0 -78
- package/dist/services/session-lifecycle-hooks.js.map +0 -1
- package/dist/services/session-store.d.ts +0 -68
- package/dist/services/session-store.d.ts.map +0 -1
- package/dist/services/session-store.js +0 -419
- package/dist/services/session-store.js.map +0 -1
- package/dist/services/skill-registry-store.d.ts +0 -121
- package/dist/services/skill-registry-store.d.ts.map +0 -1
- package/dist/services/skill-registry-store.js +0 -1240
- package/dist/services/skill-registry-store.js.map +0 -1
- package/dist/services/structured-bridge-clis.d.ts +0 -29
- package/dist/services/structured-bridge-clis.d.ts.map +0 -1
- package/dist/services/structured-bridge-clis.js +0 -76
- package/dist/services/structured-bridge-clis.js.map +0 -1
- package/dist/services/submit-confirmation.d.ts +0 -22
- package/dist/services/submit-confirmation.d.ts.map +0 -1
- package/dist/services/submit-confirmation.js +0 -12
- package/dist/services/submit-confirmation.js.map +0 -1
- package/dist/services/substitute-chat-toggle-store.d.ts +0 -3
- package/dist/services/substitute-chat-toggle-store.d.ts.map +0 -1
- package/dist/services/substitute-chat-toggle-store.js +0 -58
- package/dist/services/substitute-chat-toggle-store.js.map +0 -1
- package/dist/services/substitute-mode-normalize.d.ts +0 -25
- package/dist/services/substitute-mode-normalize.d.ts.map +0 -1
- package/dist/services/substitute-mode-normalize.js +0 -80
- package/dist/services/substitute-mode-normalize.js.map +0 -1
- package/dist/services/substitute-mode-store.d.ts +0 -69
- package/dist/services/substitute-mode-store.d.ts.map +0 -1
- package/dist/services/substitute-mode-store.js +0 -142
- package/dist/services/substitute-mode-store.js.map +0 -1
- package/dist/services/summary-range-store.d.ts +0 -21
- package/dist/services/summary-range-store.d.ts.map +0 -1
- package/dist/services/summary-range-store.js +0 -89
- package/dist/services/summary-range-store.js.map +0 -1
- package/dist/services/team-board-store.d.ts +0 -33
- package/dist/services/team-board-store.d.ts.map +0 -1
- package/dist/services/team-board-store.js +0 -88
- package/dist/services/team-board-store.js.map +0 -1
- package/dist/services/team-bot-directory.d.ts +0 -29
- package/dist/services/team-bot-directory.d.ts.map +0 -1
- package/dist/services/team-bot-directory.js +0 -118
- package/dist/services/team-bot-directory.js.map +0 -1
- package/dist/services/team-bots-store.d.ts +0 -34
- package/dist/services/team-bots-store.d.ts.map +0 -1
- package/dist/services/team-bots-store.js +0 -111
- package/dist/services/team-bots-store.js.map +0 -1
- package/dist/services/team-groups-store.d.ts +0 -29
- package/dist/services/team-groups-store.d.ts.map +0 -1
- package/dist/services/team-groups-store.js +0 -70
- package/dist/services/team-groups-store.js.map +0 -1
- package/dist/services/team-roster.d.ts +0 -64
- package/dist/services/team-roster.d.ts.map +0 -1
- package/dist/services/team-roster.js +0 -108
- package/dist/services/team-roster.js.map +0 -1
- package/dist/services/team-store.d.ts +0 -54
- package/dist/services/team-store.d.ts.map +0 -1
- package/dist/services/team-store.js +0 -156
- package/dist/services/team-store.js.map +0 -1
- package/dist/services/traex-paths.d.ts +0 -26
- package/dist/services/traex-paths.d.ts.map +0 -1
- package/dist/services/traex-paths.js +0 -40
- package/dist/services/traex-paths.js.map +0 -1
- package/dist/services/traex-transcript.d.ts +0 -59
- package/dist/services/traex-transcript.d.ts.map +0 -1
- package/dist/services/traex-transcript.js +0 -370
- package/dist/services/traex-transcript.js.map +0 -1
- package/dist/services/traex-user-input.d.ts +0 -19
- package/dist/services/traex-user-input.d.ts.map +0 -1
- package/dist/services/traex-user-input.js +0 -57
- package/dist/services/traex-user-input.js.map +0 -1
- package/dist/services/transcript-resolver.d.ts +0 -35
- package/dist/services/transcript-resolver.d.ts.map +0 -1
- package/dist/services/transcript-resolver.js +0 -297
- package/dist/services/transcript-resolver.js.map +0 -1
- package/dist/services/trigger-log-store.d.ts +0 -105
- package/dist/services/trigger-log-store.d.ts.map +0 -1
- package/dist/services/trigger-log-store.js +0 -203
- package/dist/services/trigger-log-store.js.map +0 -1
- package/dist/services/trigger-types.d.ts +0 -124
- package/dist/services/trigger-types.d.ts.map +0 -1
- package/dist/services/trigger-types.js +0 -72
- package/dist/services/trigger-types.js.map +0 -1
- package/dist/services/turn-terminal-deduper.d.ts +0 -14
- package/dist/services/turn-terminal-deduper.d.ts.map +0 -1
- package/dist/services/turn-terminal-deduper.js +0 -34
- package/dist/services/turn-terminal-deduper.js.map +0 -1
- package/dist/services/usage-ledger.d.ts +0 -112
- package/dist/services/usage-ledger.d.ts.map +0 -1
- package/dist/services/usage-ledger.js +0 -485
- package/dist/services/usage-ledger.js.map +0 -1
- package/dist/services/vc-meeting-action-gate.d.ts +0 -246
- package/dist/services/vc-meeting-action-gate.d.ts.map +0 -1
- package/dist/services/vc-meeting-action-gate.js +0 -756
- package/dist/services/vc-meeting-action-gate.js.map +0 -1
- package/dist/services/vc-meeting-action-store.d.ts +0 -222
- package/dist/services/vc-meeting-action-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-action-store.js +0 -806
- package/dist/services/vc-meeting-action-store.js.map +0 -1
- package/dist/services/vc-meeting-consumer-isolation.d.ts +0 -29
- package/dist/services/vc-meeting-consumer-isolation.d.ts.map +0 -1
- package/dist/services/vc-meeting-consumer-isolation.js +0 -39
- package/dist/services/vc-meeting-consumer-isolation.js.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts +0 -72
- package/dist/services/vc-meeting-consumer-profile-bootstrap.d.ts.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-bootstrap.js +0 -343
- package/dist/services/vc-meeting-consumer-profile-bootstrap.js.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-store.d.ts +0 -39
- package/dist/services/vc-meeting-consumer-profile-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-store.js +0 -191
- package/dist/services/vc-meeting-consumer-profile-store.js.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-templates.d.ts +0 -32
- package/dist/services/vc-meeting-consumer-profile-templates.d.ts.map +0 -1
- package/dist/services/vc-meeting-consumer-profile-templates.js +0 -106
- package/dist/services/vc-meeting-consumer-profile-templates.js.map +0 -1
- package/dist/services/vc-meeting-daemon-auth.d.ts +0 -29
- package/dist/services/vc-meeting-daemon-auth.d.ts.map +0 -1
- package/dist/services/vc-meeting-daemon-auth.js +0 -117
- package/dist/services/vc-meeting-daemon-auth.js.map +0 -1
- package/dist/services/vc-meeting-delivery-feed.d.ts +0 -52
- package/dist/services/vc-meeting-delivery-feed.d.ts.map +0 -1
- package/dist/services/vc-meeting-delivery-feed.js +0 -232
- package/dist/services/vc-meeting-delivery-feed.js.map +0 -1
- package/dist/services/vc-meeting-delivery-hub-store.d.ts +0 -215
- package/dist/services/vc-meeting-delivery-hub-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-delivery-hub-store.js +0 -1241
- package/dist/services/vc-meeting-delivery-hub-store.js.map +0 -1
- package/dist/services/vc-meeting-delivery-protocol.d.ts +0 -166
- package/dist/services/vc-meeting-delivery-protocol.d.ts.map +0 -1
- package/dist/services/vc-meeting-delivery-protocol.js +0 -452
- package/dist/services/vc-meeting-delivery-protocol.js.map +0 -1
- package/dist/services/vc-meeting-delivery-receiver.d.ts +0 -80
- package/dist/services/vc-meeting-delivery-receiver.d.ts.map +0 -1
- package/dist/services/vc-meeting-delivery-receiver.js +0 -552
- package/dist/services/vc-meeting-delivery-receiver.js.map +0 -1
- package/dist/services/vc-meeting-delivery-store.d.ts +0 -349
- package/dist/services/vc-meeting-delivery-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-delivery-store.js +0 -1036
- package/dist/services/vc-meeting-delivery-store.js.map +0 -1
- package/dist/services/vc-meeting-feed-metadata-store.d.ts +0 -58
- package/dist/services/vc-meeting-feed-metadata-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-feed-metadata-store.js +0 -356
- package/dist/services/vc-meeting-feed-metadata-store.js.map +0 -1
- package/dist/services/vc-meeting-im-reply.d.ts +0 -56
- package/dist/services/vc-meeting-im-reply.d.ts.map +0 -1
- package/dist/services/vc-meeting-im-reply.js +0 -295
- package/dist/services/vc-meeting-im-reply.js.map +0 -1
- package/dist/services/vc-meeting-im-routing.d.ts +0 -131
- package/dist/services/vc-meeting-im-routing.d.ts.map +0 -1
- package/dist/services/vc-meeting-im-routing.js +0 -449
- package/dist/services/vc-meeting-im-routing.js.map +0 -1
- package/dist/services/vc-meeting-listener-message-store.d.ts +0 -23
- package/dist/services/vc-meeting-listener-message-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-listener-message-store.js +0 -142
- package/dist/services/vc-meeting-listener-message-store.js.map +0 -1
- package/dist/services/vc-meeting-listener-output-protocol.d.ts +0 -27
- package/dist/services/vc-meeting-listener-output-protocol.d.ts.map +0 -1
- package/dist/services/vc-meeting-listener-output-protocol.js +0 -58
- package/dist/services/vc-meeting-listener-output-protocol.js.map +0 -1
- package/dist/services/vc-meeting-listener-topic-store.d.ts +0 -31
- package/dist/services/vc-meeting-listener-topic-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-listener-topic-store.js +0 -120
- package/dist/services/vc-meeting-listener-topic-store.js.map +0 -1
- package/dist/services/vc-meeting-member-policy.d.ts +0 -37
- package/dist/services/vc-meeting-member-policy.d.ts.map +0 -1
- package/dist/services/vc-meeting-member-policy.js +0 -102
- package/dist/services/vc-meeting-member-policy.js.map +0 -1
- package/dist/services/vc-meeting-preparations-store.d.ts +0 -22
- package/dist/services/vc-meeting-preparations-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-preparations-store.js +0 -131
- package/dist/services/vc-meeting-preparations-store.js.map +0 -1
- package/dist/services/vc-meeting-profile-instructions.d.ts +0 -22
- package/dist/services/vc-meeting-profile-instructions.d.ts.map +0 -1
- package/dist/services/vc-meeting-profile-instructions.js +0 -64
- package/dist/services/vc-meeting-profile-instructions.js.map +0 -1
- package/dist/services/vc-meeting-runtime-store.d.ts +0 -132
- package/dist/services/vc-meeting-runtime-store.d.ts.map +0 -1
- package/dist/services/vc-meeting-runtime-store.js +0 -852
- package/dist/services/vc-meeting-runtime-store.js.map +0 -1
- package/dist/services/vc-meeting-send-policy.d.ts +0 -96
- package/dist/services/vc-meeting-send-policy.d.ts.map +0 -1
- package/dist/services/vc-meeting-send-policy.js +0 -158
- package/dist/services/vc-meeting-send-policy.js.map +0 -1
- package/dist/services/vc-meeting-terminal-reconciler.d.ts +0 -93
- package/dist/services/vc-meeting-terminal-reconciler.d.ts.map +0 -1
- package/dist/services/vc-meeting-terminal-reconciler.js +0 -198
- package/dist/services/vc-meeting-terminal-reconciler.js.map +0 -1
- package/dist/services/voice/audio.d.ts +0 -32
- package/dist/services/voice/audio.d.ts.map +0 -1
- package/dist/services/voice/audio.js +0 -114
- package/dist/services/voice/audio.js.map +0 -1
- package/dist/services/voice/index.d.ts +0 -37
- package/dist/services/voice/index.d.ts.map +0 -1
- package/dist/services/voice/index.js +0 -105
- package/dist/services/voice/index.js.map +0 -1
- package/dist/services/voice/openai.d.ts +0 -24
- package/dist/services/voice/openai.d.ts.map +0 -1
- package/dist/services/voice/openai.js +0 -47
- package/dist/services/voice/openai.js.map +0 -1
- package/dist/services/voice/sami.d.ts +0 -22
- package/dist/services/voice/sami.d.ts.map +0 -1
- package/dist/services/voice/sami.js +0 -128
- package/dist/services/voice/sami.js.map +0 -1
- package/dist/services/voice/types.d.ts +0 -32
- package/dist/services/voice/types.d.ts.map +0 -1
- package/dist/services/voice/types.js +0 -2
- package/dist/services/voice/types.js.map +0 -1
- package/dist/services/webhook-audit.d.ts +0 -10
- package/dist/services/webhook-audit.d.ts.map +0 -1
- package/dist/services/webhook-audit.js +0 -116
- package/dist/services/webhook-audit.js.map +0 -1
- package/dist/services/webhook-key.d.ts +0 -16
- package/dist/services/webhook-key.d.ts.map +0 -1
- package/dist/services/webhook-key.js +0 -123
- package/dist/services/webhook-key.js.map +0 -1
- package/dist/services/webhook-lifecycle-extractors.d.ts +0 -6
- package/dist/services/webhook-lifecycle-extractors.d.ts.map +0 -1
- package/dist/services/webhook-lifecycle-extractors.js +0 -44
- package/dist/services/webhook-lifecycle-extractors.js.map +0 -1
- package/dist/services/webhook-lifecycle-store.d.ts +0 -45
- package/dist/services/webhook-lifecycle-store.d.ts.map +0 -1
- package/dist/services/webhook-lifecycle-store.js +0 -159
- package/dist/services/webhook-lifecycle-store.js.map +0 -1
- package/dist/services/whiteboard-store.d.ts +0 -67
- package/dist/services/whiteboard-store.d.ts.map +0 -1
- package/dist/services/whiteboard-store.js +0 -450
- package/dist/services/whiteboard-store.js.map +0 -1
- package/dist/services/worktree-slug-ai.d.ts +0 -3
- package/dist/services/worktree-slug-ai.d.ts.map +0 -1
- package/dist/services/worktree-slug-ai.js +0 -82
- package/dist/services/worktree-slug-ai.js.map +0 -1
- package/dist/setup/agent-preset.d.ts +0 -78
- package/dist/setup/agent-preset.d.ts.map +0 -1
- package/dist/setup/agent-preset.js +0 -127
- package/dist/setup/agent-preset.js.map +0 -1
- package/dist/setup/app-name.d.ts +0 -7
- package/dist/setup/app-name.d.ts.map +0 -1
- package/dist/setup/app-name.js +0 -10
- package/dist/setup/app-name.js.map +0 -1
- package/dist/setup/bot-config-editor.d.ts +0 -160
- package/dist/setup/bot-config-editor.d.ts.map +0 -1
- package/dist/setup/bot-config-editor.js +0 -459
- package/dist/setup/bot-config-editor.js.map +0 -1
- package/dist/setup/bots-store.d.ts +0 -3
- package/dist/setup/bots-store.d.ts.map +0 -1
- package/dist/setup/bots-store.js +0 -24
- package/dist/setup/bots-store.js.map +0 -1
- package/dist/setup/cli-availability.d.ts +0 -26
- package/dist/setup/cli-availability.d.ts.map +0 -1
- package/dist/setup/cli-availability.js +0 -77
- package/dist/setup/cli-availability.js.map +0 -1
- package/dist/setup/cli-selection.d.ts +0 -145
- package/dist/setup/cli-selection.d.ts.map +0 -1
- package/dist/setup/cli-selection.js +0 -402
- package/dist/setup/cli-selection.js.map +0 -1
- package/dist/setup/detect-platform.d.ts +0 -14
- package/dist/setup/detect-platform.d.ts.map +0 -1
- package/dist/setup/detect-platform.js +0 -139
- package/dist/setup/detect-platform.js.map +0 -1
- package/dist/setup/ensure-fonts.d.ts +0 -13
- package/dist/setup/ensure-fonts.d.ts.map +0 -1
- package/dist/setup/ensure-fonts.js +0 -225
- package/dist/setup/ensure-fonts.js.map +0 -1
- package/dist/setup/ensure-herdr-integrations.d.ts +0 -102
- package/dist/setup/ensure-herdr-integrations.d.ts.map +0 -1
- package/dist/setup/ensure-herdr-integrations.js +0 -432
- package/dist/setup/ensure-herdr-integrations.js.map +0 -1
- package/dist/setup/ensure-herdr.d.ts +0 -12
- package/dist/setup/ensure-herdr.d.ts.map +0 -1
- package/dist/setup/ensure-herdr.js +0 -70
- package/dist/setup/ensure-herdr.js.map +0 -1
- package/dist/setup/ensure-opus.d.ts +0 -13
- package/dist/setup/ensure-opus.d.ts.map +0 -1
- package/dist/setup/ensure-opus.js +0 -64
- package/dist/setup/ensure-opus.js.map +0 -1
- package/dist/setup/ensure-tmux.d.ts +0 -91
- package/dist/setup/ensure-tmux.d.ts.map +0 -1
- package/dist/setup/ensure-tmux.js +0 -418
- package/dist/setup/ensure-tmux.js.map +0 -1
- package/dist/setup/ensure-zellij.d.ts +0 -48
- package/dist/setup/ensure-zellij.d.ts.map +0 -1
- package/dist/setup/ensure-zellij.js +0 -94
- package/dist/setup/ensure-zellij.js.map +0 -1
- package/dist/setup/ensure-zmx.d.ts +0 -31
- package/dist/setup/ensure-zmx.d.ts.map +0 -1
- package/dist/setup/ensure-zmx.js +0 -161
- package/dist/setup/ensure-zmx.js.map +0 -1
- package/dist/setup/index.d.ts +0 -38
- package/dist/setup/index.d.ts.map +0 -1
- package/dist/setup/index.js +0 -194
- package/dist/setup/index.js.map +0 -1
- package/dist/setup/interactive-select.d.ts +0 -52
- package/dist/setup/interactive-select.d.ts.map +0 -1
- package/dist/setup/interactive-select.js +0 -271
- package/dist/setup/interactive-select.js.map +0 -1
- package/dist/setup/lark-scopes.json +0 -305
- package/dist/setup/open-platform-automation.d.ts +0 -417
- package/dist/setup/open-platform-automation.d.ts.map +0 -1
- package/dist/setup/open-platform-automation.js +0 -1610
- package/dist/setup/open-platform-automation.js.map +0 -1
- package/dist/setup/open-platform-outcome.d.ts +0 -50
- package/dist/setup/open-platform-outcome.d.ts.map +0 -1
- package/dist/setup/open-platform-outcome.js +0 -56
- package/dist/setup/open-platform-outcome.js.map +0 -1
- package/dist/setup/register-app.d.ts +0 -52
- package/dist/setup/register-app.d.ts.map +0 -1
- package/dist/setup/register-app.js +0 -91
- package/dist/setup/register-app.js.map +0 -1
- package/dist/setup/setup-args.d.ts +0 -89
- package/dist/setup/setup-args.d.ts.map +0 -1
- package/dist/setup/setup-args.js +0 -387
- package/dist/setup/setup-args.js.map +0 -1
- package/dist/setup/verify-permissions.d.ts +0 -150
- package/dist/setup/verify-permissions.d.ts.map +0 -1
- package/dist/setup/verify-permissions.js +0 -353
- package/dist/setup/verify-permissions.js.map +0 -1
- package/dist/skills/definitions.d.ts +0 -31
- package/dist/skills/definitions.d.ts.map +0 -1
- package/dist/skills/definitions.js +0 -1510
- package/dist/skills/definitions.js.map +0 -1
- package/dist/skills/injection-mode.d.ts +0 -93
- package/dist/skills/injection-mode.d.ts.map +0 -1
- package/dist/skills/injection-mode.js +0 -204
- package/dist/skills/injection-mode.js.map +0 -1
- package/dist/skills/installer.d.ts +0 -60
- package/dist/skills/installer.d.ts.map +0 -1
- package/dist/skills/installer.js +0 -217
- package/dist/skills/installer.js.map +0 -1
- package/dist/types.d.ts +0 -1131
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/allowed-users-apply.d.ts +0 -76
- package/dist/utils/allowed-users-apply.d.ts.map +0 -1
- package/dist/utils/allowed-users-apply.js +0 -124
- package/dist/utils/allowed-users-apply.js.map +0 -1
- package/dist/utils/allowed-users-cache.d.ts +0 -29
- package/dist/utils/allowed-users-cache.d.ts.map +0 -1
- package/dist/utils/allowed-users-cache.js +0 -82
- package/dist/utils/allowed-users-cache.js.map +0 -1
- package/dist/utils/anchor-serializer.d.ts +0 -12
- package/dist/utils/anchor-serializer.d.ts.map +0 -1
- package/dist/utils/anchor-serializer.js +0 -64
- package/dist/utils/anchor-serializer.js.map +0 -1
- package/dist/utils/atomic-write.d.ts +0 -34
- package/dist/utils/atomic-write.d.ts.map +0 -1
- package/dist/utils/atomic-write.js +0 -183
- package/dist/utils/atomic-write.js.map +0 -1
- package/dist/utils/bot-routing.d.ts +0 -80
- package/dist/utils/bot-routing.d.ts.map +0 -1
- package/dist/utils/bot-routing.js +0 -167
- package/dist/utils/bot-routing.js.map +0 -1
- package/dist/utils/bounded-map.d.ts +0 -15
- package/dist/utils/bounded-map.d.ts.map +0 -1
- package/dist/utils/bounded-map.js +0 -29
- package/dist/utils/bounded-map.js.map +0 -1
- package/dist/utils/canonical-input-hash.d.ts +0 -5
- package/dist/utils/canonical-input-hash.d.ts.map +0 -1
- package/dist/utils/canonical-input-hash.js +0 -43
- package/dist/utils/canonical-input-hash.js.map +0 -1
- package/dist/utils/canonical-json.d.ts +0 -10
- package/dist/utils/canonical-json.d.ts.map +0 -1
- package/dist/utils/canonical-json.js +0 -23
- package/dist/utils/canonical-json.js.map +0 -1
- package/dist/utils/child-env.d.ts +0 -147
- package/dist/utils/child-env.d.ts.map +0 -1
- package/dist/utils/child-env.js +0 -299
- package/dist/utils/child-env.js.map +0 -1
- package/dist/utils/cli-usage-limit.d.ts +0 -62
- package/dist/utils/cli-usage-limit.d.ts.map +0 -1
- package/dist/utils/cli-usage-limit.js +0 -169
- package/dist/utils/cli-usage-limit.js.map +0 -1
- package/dist/utils/codex-app-context.d.ts +0 -9
- package/dist/utils/codex-app-context.d.ts.map +0 -1
- package/dist/utils/codex-app-context.js +0 -47
- package/dist/utils/codex-app-context.js.map +0 -1
- package/dist/utils/codex-update-dialog.d.ts +0 -17
- package/dist/utils/codex-update-dialog.d.ts.map +0 -1
- package/dist/utils/codex-update-dialog.js +0 -33
- package/dist/utils/codex-update-dialog.js.map +0 -1
- package/dist/utils/crash-log.d.ts +0 -22
- package/dist/utils/crash-log.d.ts.map +0 -1
- package/dist/utils/crash-log.js +0 -37
- package/dist/utils/crash-log.js.map +0 -1
- package/dist/utils/daemon-discovery.d.ts +0 -25
- package/dist/utils/daemon-discovery.d.ts.map +0 -1
- package/dist/utils/daemon-discovery.js +0 -86
- package/dist/utils/daemon-discovery.js.map +0 -1
- package/dist/utils/effort-confirm-dialog.d.ts +0 -40
- package/dist/utils/effort-confirm-dialog.d.ts.map +0 -1
- package/dist/utils/effort-confirm-dialog.js +0 -74
- package/dist/utils/effort-confirm-dialog.js.map +0 -1
- package/dist/utils/executable.d.ts +0 -3
- package/dist/utils/executable.d.ts.map +0 -1
- package/dist/utils/executable.js +0 -24
- package/dist/utils/executable.js.map +0 -1
- package/dist/utils/file-lock.d.ts +0 -19
- package/dist/utils/file-lock.d.ts.map +0 -1
- package/dist/utils/file-lock.js +0 -1038
- package/dist/utils/file-lock.js.map +0 -1
- package/dist/utils/font-installer.d.ts +0 -2
- package/dist/utils/font-installer.d.ts.map +0 -1
- package/dist/utils/font-installer.js +0 -60
- package/dist/utils/font-installer.js.map +0 -1
- package/dist/utils/fs-durability.d.ts +0 -20
- package/dist/utils/fs-durability.d.ts.map +0 -1
- package/dist/utils/fs-durability.js +0 -84
- package/dist/utils/fs-durability.js.map +0 -1
- package/dist/utils/global-install.d.ts +0 -27
- package/dist/utils/global-install.d.ts.map +0 -1
- package/dist/utils/global-install.js +0 -184
- package/dist/utils/global-install.js.map +0 -1
- package/dist/utils/herdr-web-history.d.ts +0 -12
- package/dist/utils/herdr-web-history.d.ts.map +0 -1
- package/dist/utils/herdr-web-history.js +0 -74
- package/dist/utils/herdr-web-history.js.map +0 -1
- package/dist/utils/herdr-web-terminal-binding.d.ts +0 -39
- package/dist/utils/herdr-web-terminal-binding.d.ts.map +0 -1
- package/dist/utils/herdr-web-terminal-binding.js +0 -56
- package/dist/utils/herdr-web-terminal-binding.js.map +0 -1
- package/dist/utils/idle-detector.d.ts +0 -39
- package/dist/utils/idle-detector.d.ts.map +0 -1
- package/dist/utils/idle-detector.js +0 -159
- package/dist/utils/idle-detector.js.map +0 -1
- package/dist/utils/input-gate.d.ts +0 -103
- package/dist/utils/input-gate.d.ts.map +0 -1
- package/dist/utils/input-gate.js +0 -96
- package/dist/utils/input-gate.js.map +0 -1
- package/dist/utils/install-diagnostics.d.ts +0 -52
- package/dist/utils/install-diagnostics.d.ts.map +0 -1
- package/dist/utils/install-diagnostics.js +0 -157
- package/dist/utils/install-diagnostics.js.map +0 -1
- package/dist/utils/install-info.d.ts +0 -19
- package/dist/utils/install-info.d.ts.map +0 -1
- package/dist/utils/install-info.js +0 -68
- package/dist/utils/install-info.js.map +0 -1
- package/dist/utils/lark-upload.d.ts +0 -3
- package/dist/utils/lark-upload.d.ts.map +0 -1
- package/dist/utils/lark-upload.js +0 -31
- package/dist/utils/lark-upload.js.map +0 -1
- package/dist/utils/listen-with-probe.d.ts +0 -47
- package/dist/utils/listen-with-probe.d.ts.map +0 -1
- package/dist/utils/listen-with-probe.js +0 -142
- package/dist/utils/listen-with-probe.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -17
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -80
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/pending-input-queue.d.ts +0 -122
- package/dist/utils/pending-input-queue.d.ts.map +0 -1
- package/dist/utils/pending-input-queue.js +0 -170
- package/dist/utils/pending-input-queue.js.map +0 -1
- package/dist/utils/process-identity.d.ts +0 -7
- package/dist/utils/process-identity.d.ts.map +0 -1
- package/dist/utils/process-identity.js +0 -62
- package/dist/utils/process-identity.js.map +0 -1
- package/dist/utils/ready-gate.d.ts +0 -90
- package/dist/utils/ready-gate.d.ts.map +0 -1
- package/dist/utils/ready-gate.js +0 -104
- package/dist/utils/ready-gate.js.map +0 -1
- package/dist/utils/render-dimensions.d.ts +0 -56
- package/dist/utils/render-dimensions.d.ts.map +0 -1
- package/dist/utils/render-dimensions.js +0 -65
- package/dist/utils/render-dimensions.js.map +0 -1
- package/dist/utils/runtime-build-id.d.ts +0 -21
- package/dist/utils/runtime-build-id.d.ts.map +0 -1
- package/dist/utils/runtime-build-id.js +0 -83
- package/dist/utils/runtime-build-id.js.map +0 -1
- package/dist/utils/screenshot-renderer.d.ts +0 -11
- package/dist/utils/screenshot-renderer.d.ts.map +0 -1
- package/dist/utils/screenshot-renderer.js +0 -267
- package/dist/utils/screenshot-renderer.js.map +0 -1
- package/dist/utils/stdio-epipe-guard.d.ts +0 -39
- package/dist/utils/stdio-epipe-guard.d.ts.map +0 -1
- package/dist/utils/stdio-epipe-guard.js +0 -67
- package/dist/utils/stdio-epipe-guard.js.map +0 -1
- package/dist/utils/stuck-detector.d.ts +0 -45
- package/dist/utils/stuck-detector.d.ts.map +0 -1
- package/dist/utils/stuck-detector.js +0 -188
- package/dist/utils/stuck-detector.js.map +0 -1
- package/dist/utils/stuck-key-guard.d.ts +0 -76
- package/dist/utils/stuck-key-guard.d.ts.map +0 -1
- package/dist/utils/stuck-key-guard.js +0 -77
- package/dist/utils/stuck-key-guard.js.map +0 -1
- package/dist/utils/terminal-favicon.d.ts +0 -2
- package/dist/utils/terminal-favicon.d.ts.map +0 -1
- package/dist/utils/terminal-favicon.js +0 -5
- package/dist/utils/terminal-favicon.js.map +0 -1
- package/dist/utils/terminal-renderer.d.ts +0 -59
- package/dist/utils/terminal-renderer.d.ts.map +0 -1
- package/dist/utils/terminal-renderer.js +0 -121
- package/dist/utils/terminal-renderer.js.map +0 -1
- package/dist/utils/timezone.d.ts +0 -51
- package/dist/utils/timezone.d.ts.map +0 -1
- package/dist/utils/timezone.js +0 -110
- package/dist/utils/timezone.js.map +0 -1
- package/dist/utils/timing.d.ts +0 -30
- package/dist/utils/timing.d.ts.map +0 -1
- package/dist/utils/timing.js +0 -41
- package/dist/utils/timing.js.map +0 -1
- package/dist/utils/transient-snapshot.d.ts +0 -53
- package/dist/utils/transient-snapshot.d.ts.map +0 -1
- package/dist/utils/transient-snapshot.js +0 -123
- package/dist/utils/transient-snapshot.js.map +0 -1
- package/dist/utils/tui-input-delivery.d.ts +0 -32
- package/dist/utils/tui-input-delivery.d.ts.map +0 -1
- package/dist/utils/tui-input-delivery.js +0 -53
- package/dist/utils/tui-input-delivery.js.map +0 -1
- package/dist/utils/user-token.d.ts +0 -53
- package/dist/utils/user-token.d.ts.map +0 -1
- package/dist/utils/user-token.js +0 -296
- package/dist/utils/user-token.js.map +0 -1
- package/dist/utils/version-info.d.ts +0 -25
- package/dist/utils/version-info.d.ts.map +0 -1
- package/dist/utils/version-info.js +0 -48
- package/dist/utils/version-info.js.map +0 -1
- package/dist/utils/web-terminal-listen.d.ts +0 -30
- package/dist/utils/web-terminal-listen.d.ts.map +0 -1
- package/dist/utils/web-terminal-listen.js +0 -81
- package/dist/utils/web-terminal-listen.js.map +0 -1
- package/dist/utils/web-terminal-seed.d.ts +0 -40
- package/dist/utils/web-terminal-seed.d.ts.map +0 -1
- package/dist/utils/web-terminal-seed.js +0 -46
- package/dist/utils/web-terminal-seed.js.map +0 -1
- package/dist/utils/worker-http.d.ts +0 -7
- package/dist/utils/worker-http.d.ts.map +0 -1
- package/dist/utils/worker-http.js +0 -27
- package/dist/utils/worker-http.js.map +0 -1
- package/dist/utils/working-dir.d.ts +0 -11
- package/dist/utils/working-dir.d.ts.map +0 -1
- package/dist/utils/working-dir.js +0 -45
- package/dist/utils/working-dir.js.map +0 -1
- package/dist/utils/xml.d.ts +0 -19
- package/dist/utils/xml.d.ts.map +0 -1
- package/dist/utils/xml.js +0 -26
- package/dist/utils/xml.js.map +0 -1
- package/dist/vc-agent/cards.d.ts +0 -94
- package/dist/vc-agent/cards.d.ts.map +0 -1
- package/dist/vc-agent/cards.js +0 -927
- package/dist/vc-agent/cards.js.map +0 -1
- package/dist/vc-agent/meeting-state.d.ts +0 -39
- package/dist/vc-agent/meeting-state.d.ts.map +0 -1
- package/dist/vc-agent/meeting-state.js +0 -186
- package/dist/vc-agent/meeting-state.js.map +0 -1
- package/dist/vc-agent/normalizer.d.ts +0 -13
- package/dist/vc-agent/normalizer.d.ts.map +0 -1
- package/dist/vc-agent/normalizer.js +0 -470
- package/dist/vc-agent/normalizer.js.map +0 -1
- package/dist/vc-agent/polling-source.d.ts +0 -69
- package/dist/vc-agent/polling-source.d.ts.map +0 -1
- package/dist/vc-agent/polling-source.js +0 -194
- package/dist/vc-agent/polling-source.js.map +0 -1
- package/dist/vc-agent/push-source.d.ts +0 -13
- package/dist/vc-agent/push-source.d.ts.map +0 -1
- package/dist/vc-agent/push-source.js +0 -109
- package/dist/vc-agent/push-source.js.map +0 -1
- package/dist/vc-agent/realtime/audio-source.d.ts +0 -6
- package/dist/vc-agent/realtime/audio-source.d.ts.map +0 -1
- package/dist/vc-agent/realtime/audio-source.js +0 -17
- package/dist/vc-agent/realtime/audio-source.js.map +0 -1
- package/dist/vc-agent/realtime/endpoint.d.ts +0 -6
- package/dist/vc-agent/realtime/endpoint.d.ts.map +0 -1
- package/dist/vc-agent/realtime/endpoint.js +0 -25
- package/dist/vc-agent/realtime/endpoint.js.map +0 -1
- package/dist/vc-agent/realtime/errors.d.ts +0 -9
- package/dist/vc-agent/realtime/errors.d.ts.map +0 -1
- package/dist/vc-agent/realtime/errors.js +0 -17
- package/dist/vc-agent/realtime/errors.js.map +0 -1
- package/dist/vc-agent/realtime/events.d.ts +0 -24
- package/dist/vc-agent/realtime/events.d.ts.map +0 -1
- package/dist/vc-agent/realtime/events.js +0 -190
- package/dist/vc-agent/realtime/events.js.map +0 -1
- package/dist/vc-agent/realtime/frontier.d.ts +0 -34
- package/dist/vc-agent/realtime/frontier.d.ts.map +0 -1
- package/dist/vc-agent/realtime/frontier.js +0 -40
- package/dist/vc-agent/realtime/frontier.js.map +0 -1
- package/dist/vc-agent/realtime/index.d.ts +0 -11
- package/dist/vc-agent/realtime/index.d.ts.map +0 -1
- package/dist/vc-agent/realtime/index.js +0 -11
- package/dist/vc-agent/realtime/index.js.map +0 -1
- package/dist/vc-agent/realtime/pacer.d.ts +0 -21
- package/dist/vc-agent/realtime/pacer.d.ts.map +0 -1
- package/dist/vc-agent/realtime/pacer.js +0 -80
- package/dist/vc-agent/realtime/pacer.js.map +0 -1
- package/dist/vc-agent/realtime/protobuf.d.ts +0 -33
- package/dist/vc-agent/realtime/protobuf.d.ts.map +0 -1
- package/dist/vc-agent/realtime/protobuf.js +0 -159
- package/dist/vc-agent/realtime/protobuf.js.map +0 -1
- package/dist/vc-agent/realtime/protocol.d.ts +0 -4
- package/dist/vc-agent/realtime/protocol.d.ts.map +0 -1
- package/dist/vc-agent/realtime/protocol.js +0 -59
- package/dist/vc-agent/realtime/protocol.js.map +0 -1
- package/dist/vc-agent/realtime/session.d.ts +0 -39
- package/dist/vc-agent/realtime/session.d.ts.map +0 -1
- package/dist/vc-agent/realtime/session.js +0 -221
- package/dist/vc-agent/realtime/session.js.map +0 -1
- package/dist/vc-agent/realtime/transport.d.ts +0 -23
- package/dist/vc-agent/realtime/transport.d.ts.map +0 -1
- package/dist/vc-agent/realtime/transport.js +0 -112
- package/dist/vc-agent/realtime/transport.js.map +0 -1
- package/dist/vc-agent/realtime/types.d.ts +0 -84
- package/dist/vc-agent/realtime/types.d.ts.map +0 -1
- package/dist/vc-agent/realtime/types.js +0 -5
- package/dist/vc-agent/realtime/types.js.map +0 -1
- package/dist/vc-agent/types.d.ts +0 -143
- package/dist/vc-agent/types.d.ts.map +0 -1
- package/dist/vc-agent/types.js +0 -2
- package/dist/vc-agent/types.js.map +0 -1
- package/dist/worker.d.ts +0 -3
- package/dist/worker.d.ts.map +0 -1
- package/dist/worker.js +0 -12831
- package/dist/worker.js.map +0 -1
- package/dist/workflows/attempt-terminal.d.ts +0 -25
- package/dist/workflows/attempt-terminal.d.ts.map +0 -1
- package/dist/workflows/attempt-terminal.js +0 -7
- package/dist/workflows/attempt-terminal.js.map +0 -1
- package/dist/workflows/definition.d.ts +0 -1705
- package/dist/workflows/definition.d.ts.map +0 -1
- package/dist/workflows/definition.js +0 -552
- package/dist/workflows/definition.js.map +0 -1
- package/dist/workflows/events/payloads.d.ts +0 -1116
- package/dist/workflows/events/payloads.d.ts.map +0 -1
- package/dist/workflows/events/payloads.js +0 -397
- package/dist/workflows/events/payloads.js.map +0 -1
- package/dist/workflows/events/replay.d.ts +0 -265
- package/dist/workflows/events/replay.d.ts.map +0 -1
- package/dist/workflows/events/replay.js +0 -716
- package/dist/workflows/events/replay.js.map +0 -1
- package/dist/workflows/events/schema.d.ts +0 -6093
- package/dist/workflows/events/schema.d.ts.map +0 -1
- package/dist/workflows/events/schema.js +0 -328
- package/dist/workflows/events/schema.js.map +0 -1
- package/dist/workflows/events/types.d.ts +0 -38
- package/dist/workflows/events/types.d.ts.map +0 -1
- package/dist/workflows/events/types.js +0 -2
- package/dist/workflows/events/types.js.map +0 -1
- package/dist/workflows/hostExecutors/botmux-schedule.d.ts +0 -47
- package/dist/workflows/hostExecutors/botmux-schedule.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/botmux-schedule.js +0 -198
- package/dist/workflows/hostExecutors/botmux-schedule.js.map +0 -1
- package/dist/workflows/hostExecutors/feishu-im.d.ts +0 -12
- package/dist/workflows/hostExecutors/feishu-im.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/feishu-im.js +0 -49
- package/dist/workflows/hostExecutors/feishu-im.js.map +0 -1
- package/dist/workflows/hostExecutors/feishu-reply.d.ts +0 -24
- package/dist/workflows/hostExecutors/feishu-reply.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/feishu-reply.js +0 -88
- package/dist/workflows/hostExecutors/feishu-reply.js.map +0 -1
- package/dist/workflows/hostExecutors/feishu-send.d.ts +0 -23
- package/dist/workflows/hostExecutors/feishu-send.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/feishu-send.js +0 -124
- package/dist/workflows/hostExecutors/feishu-send.js.map +0 -1
- package/dist/workflows/hostExecutors/index.d.ts +0 -7
- package/dist/workflows/hostExecutors/index.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/index.js +0 -7
- package/dist/workflows/hostExecutors/index.js.map +0 -1
- package/dist/workflows/hostExecutors/registry.d.ts +0 -5
- package/dist/workflows/hostExecutors/registry.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/registry.js +0 -36
- package/dist/workflows/hostExecutors/registry.js.map +0 -1
- package/dist/workflows/hostExecutors/types.d.ts +0 -70
- package/dist/workflows/hostExecutors/types.d.ts.map +0 -1
- package/dist/workflows/hostExecutors/types.js +0 -2
- package/dist/workflows/hostExecutors/types.js.map +0 -1
- package/dist/workflows/migration/v2-definition-paths.d.ts +0 -3
- package/dist/workflows/migration/v2-definition-paths.d.ts.map +0 -1
- package/dist/workflows/migration/v2-definition-paths.js +0 -10
- package/dist/workflows/migration/v2-definition-paths.js.map +0 -1
- package/dist/workflows/migration/v2-ledger.d.ts +0 -138
- package/dist/workflows/migration/v2-ledger.d.ts.map +0 -1
- package/dist/workflows/migration/v2-ledger.js +0 -599
- package/dist/workflows/migration/v2-ledger.js.map +0 -1
- package/dist/workflows/migration/v2-migration-service.d.ts +0 -40
- package/dist/workflows/migration/v2-migration-service.d.ts.map +0 -1
- package/dist/workflows/migration/v2-migration-service.js +0 -454
- package/dist/workflows/migration/v2-migration-service.js.map +0 -1
- package/dist/workflows/migration/v2-read-only-ids.d.ts +0 -7
- package/dist/workflows/migration/v2-read-only-ids.d.ts.map +0 -1
- package/dist/workflows/migration/v2-read-only-ids.js +0 -9
- package/dist/workflows/migration/v2-read-only-ids.js.map +0 -1
- package/dist/workflows/migration/v2-run-archive-schema.d.ts +0 -976
- package/dist/workflows/migration/v2-run-archive-schema.d.ts.map +0 -1
- package/dist/workflows/migration/v2-run-archive-schema.js +0 -113
- package/dist/workflows/migration/v2-run-archive-schema.js.map +0 -1
- package/dist/workflows/migration/v2-run-archive.d.ts +0 -92
- package/dist/workflows/migration/v2-run-archive.d.ts.map +0 -1
- package/dist/workflows/migration/v2-run-archive.js +0 -1220
- package/dist/workflows/migration/v2-run-archive.js.map +0 -1
- package/dist/workflows/migration/v2-scanner.d.ts +0 -22
- package/dist/workflows/migration/v2-scanner.d.ts.map +0 -1
- package/dist/workflows/migration/v2-scanner.js +0 -114
- package/dist/workflows/migration/v2-scanner.js.map +0 -1
- package/dist/workflows/migration/v2-to-v3.d.ts +0 -32
- package/dist/workflows/migration/v2-to-v3.d.ts.map +0 -1
- package/dist/workflows/migration/v2-to-v3.js +0 -498
- package/dist/workflows/migration/v2-to-v3.js.map +0 -1
- package/dist/workflows/ops-projection.d.ts +0 -226
- package/dist/workflows/ops-projection.d.ts.map +0 -1
- package/dist/workflows/ops-projection.js +0 -804
- package/dist/workflows/ops-projection.js.map +0 -1
- package/dist/workflows/shared/idempotency-key.d.ts +0 -19
- package/dist/workflows/shared/idempotency-key.d.ts.map +0 -1
- package/dist/workflows/shared/idempotency-key.js +0 -23
- package/dist/workflows/shared/idempotency-key.js.map +0 -1
- package/dist/workflows/shared/params.d.ts +0 -97
- package/dist/workflows/shared/params.d.ts.map +0 -1
- package/dist/workflows/shared/params.js +0 -282
- package/dist/workflows/shared/params.js.map +0 -1
- package/dist/workflows/shared/provider-reconciler.d.ts +0 -18
- package/dist/workflows/shared/provider-reconciler.d.ts.map +0 -1
- package/dist/workflows/shared/provider-reconciler.js +0 -17
- package/dist/workflows/shared/provider-reconciler.js.map +0 -1
- package/dist/workflows/shared/sandbox-policy.d.ts +0 -23
- package/dist/workflows/shared/sandbox-policy.d.ts.map +0 -1
- package/dist/workflows/shared/sandbox-policy.js +0 -21
- package/dist/workflows/shared/sandbox-policy.js.map +0 -1
- package/dist/workflows/shared/worker-process.d.ts +0 -29
- package/dist/workflows/shared/worker-process.d.ts.map +0 -1
- package/dist/workflows/shared/worker-process.js +0 -56
- package/dist/workflows/shared/worker-process.js.map +0 -1
- package/dist/workflows/v3/architect.d.ts +0 -37
- package/dist/workflows/v3/architect.d.ts.map +0 -1
- package/dist/workflows/v3/architect.js +0 -239
- package/dist/workflows/v3/architect.js.map +0 -1
- package/dist/workflows/v3/artifact-contract.d.ts +0 -41
- package/dist/workflows/v3/artifact-contract.d.ts.map +0 -1
- package/dist/workflows/v3/artifact-contract.js +0 -20
- package/dist/workflows/v3/artifact-contract.js.map +0 -1
- package/dist/workflows/v3/attempt-ledger.d.ts +0 -23
- package/dist/workflows/v3/attempt-ledger.d.ts.map +0 -1
- package/dist/workflows/v3/attempt-ledger.js +0 -74
- package/dist/workflows/v3/attempt-ledger.js.map +0 -1
- package/dist/workflows/v3/bot-resolve.d.ts +0 -39
- package/dist/workflows/v3/bot-resolve.d.ts.map +0 -1
- package/dist/workflows/v3/bot-resolve.js +0 -214
- package/dist/workflows/v3/bot-resolve.js.map +0 -1
- package/dist/workflows/v3/botmux-attempt-lease.d.ts +0 -7
- package/dist/workflows/v3/botmux-attempt-lease.d.ts.map +0 -1
- package/dist/workflows/v3/botmux-attempt-lease.js +0 -189
- package/dist/workflows/v3/botmux-attempt-lease.js.map +0 -1
- package/dist/workflows/v3/botmux-host-policy.d.ts +0 -7
- package/dist/workflows/v3/botmux-host-policy.d.ts.map +0 -1
- package/dist/workflows/v3/botmux-host-policy.js +0 -34
- package/dist/workflows/v3/botmux-host-policy.js.map +0 -1
- package/dist/workflows/v3/cli-daemon-command-authority.d.ts +0 -59
- package/dist/workflows/v3/cli-daemon-command-authority.d.ts.map +0 -1
- package/dist/workflows/v3/cli-daemon-command-authority.js +0 -175
- package/dist/workflows/v3/cli-daemon-command-authority.js.map +0 -1
- package/dist/workflows/v3/cli-run.d.ts +0 -60
- package/dist/workflows/v3/cli-run.d.ts.map +0 -1
- package/dist/workflows/v3/cli-run.js +0 -368
- package/dist/workflows/v3/cli-run.js.map +0 -1
- package/dist/workflows/v3/contract.d.ts +0 -243
- package/dist/workflows/v3/contract.d.ts.map +0 -1
- package/dist/workflows/v3/contract.js +0 -89
- package/dist/workflows/v3/contract.js.map +0 -1
- package/dist/workflows/v3/core-control.d.ts +0 -16
- package/dist/workflows/v3/core-control.d.ts.map +0 -1
- package/dist/workflows/v3/core-control.js +0 -60
- package/dist/workflows/v3/core-control.js.map +0 -1
- package/dist/workflows/v3/daemon-ipc-auth.d.ts +0 -113
- package/dist/workflows/v3/daemon-ipc-auth.d.ts.map +0 -1
- package/dist/workflows/v3/daemon-ipc-auth.js +0 -294
- package/dist/workflows/v3/daemon-ipc-auth.js.map +0 -1
- package/dist/workflows/v3/daemon-ipc-body.d.ts +0 -30
- package/dist/workflows/v3/daemon-ipc-body.d.ts.map +0 -1
- package/dist/workflows/v3/daemon-ipc-body.js +0 -65
- package/dist/workflows/v3/daemon-ipc-body.js.map +0 -1
- package/dist/workflows/v3/daemon-ipc-client.d.ts +0 -32
- package/dist/workflows/v3/daemon-ipc-client.d.ts.map +0 -1
- package/dist/workflows/v3/daemon-ipc-client.js +0 -74
- package/dist/workflows/v3/daemon-ipc-client.js.map +0 -1
- package/dist/workflows/v3/daemon-run.d.ts +0 -396
- package/dist/workflows/v3/daemon-run.d.ts.map +0 -1
- package/dist/workflows/v3/daemon-run.js +0 -1573
- package/dist/workflows/v3/daemon-run.js.map +0 -1
- package/dist/workflows/v3/dag-loader.d.ts +0 -5
- package/dist/workflows/v3/dag-loader.d.ts.map +0 -1
- package/dist/workflows/v3/dag-loader.js +0 -22
- package/dist/workflows/v3/dag-loader.js.map +0 -1
- package/dist/workflows/v3/dag.d.ts +0 -342
- package/dist/workflows/v3/dag.d.ts.map +0 -1
- package/dist/workflows/v3/dag.js +0 -1210
- package/dist/workflows/v3/dag.js.map +0 -1
- package/dist/workflows/v3/distillation-compiler.d.ts +0 -36
- package/dist/workflows/v3/distillation-compiler.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-compiler.js +0 -704
- package/dist/workflows/v3/distillation-compiler.js.map +0 -1
- package/dist/workflows/v3/distillation-private-root.d.ts +0 -10
- package/dist/workflows/v3/distillation-private-root.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-private-root.js +0 -34
- package/dist/workflows/v3/distillation-private-root.js.map +0 -1
- package/dist/workflows/v3/distillation-runner.d.ts +0 -68
- package/dist/workflows/v3/distillation-runner.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-runner.js +0 -1030
- package/dist/workflows/v3/distillation-runner.js.map +0 -1
- package/dist/workflows/v3/distillation-schema.d.ts +0 -63
- package/dist/workflows/v3/distillation-schema.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-schema.js +0 -184
- package/dist/workflows/v3/distillation-schema.js.map +0 -1
- package/dist/workflows/v3/distillation-service.d.ts +0 -78
- package/dist/workflows/v3/distillation-service.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-service.js +0 -416
- package/dist/workflows/v3/distillation-service.js.map +0 -1
- package/dist/workflows/v3/distillation-source.d.ts +0 -35
- package/dist/workflows/v3/distillation-source.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-source.js +0 -118
- package/dist/workflows/v3/distillation-source.js.map +0 -1
- package/dist/workflows/v3/distillation-store.d.ts +0 -185
- package/dist/workflows/v3/distillation-store.d.ts.map +0 -1
- package/dist/workflows/v3/distillation-store.js +0 -1127
- package/dist/workflows/v3/distillation-store.js.map +0 -1
- package/dist/workflows/v3/drive-lease.d.ts +0 -7
- package/dist/workflows/v3/drive-lease.d.ts.map +0 -1
- package/dist/workflows/v3/drive-lease.js +0 -10
- package/dist/workflows/v3/drive-lease.js.map +0 -1
- package/dist/workflows/v3/ephemeral-pool.d.ts +0 -29
- package/dist/workflows/v3/ephemeral-pool.d.ts.map +0 -1
- package/dist/workflows/v3/ephemeral-pool.js +0 -536
- package/dist/workflows/v3/ephemeral-pool.js.map +0 -1
- package/dist/workflows/v3/event-contract.d.ts +0 -273
- package/dist/workflows/v3/event-contract.d.ts.map +0 -1
- package/dist/workflows/v3/event-contract.js +0 -8
- package/dist/workflows/v3/event-contract.js.map +0 -1
- package/dist/workflows/v3/gate-policy.d.ts +0 -12
- package/dist/workflows/v3/gate-policy.d.ts.map +0 -1
- package/dist/workflows/v3/gate-policy.js +0 -20
- package/dist/workflows/v3/gate-policy.js.map +0 -1
- package/dist/workflows/v3/gate-wait-store.d.ts +0 -99
- package/dist/workflows/v3/gate-wait-store.d.ts.map +0 -1
- package/dist/workflows/v3/gate-wait-store.js +0 -263
- package/dist/workflows/v3/gate-wait-store.js.map +0 -1
- package/dist/workflows/v3/goal-cli.d.ts +0 -58
- package/dist/workflows/v3/goal-cli.d.ts.map +0 -1
- package/dist/workflows/v3/goal-cli.js +0 -430
- package/dist/workflows/v3/goal-cli.js.map +0 -1
- package/dist/workflows/v3/grill-state.d.ts +0 -107
- package/dist/workflows/v3/grill-state.d.ts.map +0 -1
- package/dist/workflows/v3/grill-state.js +0 -168
- package/dist/workflows/v3/grill-state.js.map +0 -1
- package/dist/workflows/v3/host-bindings.d.ts +0 -40
- package/dist/workflows/v3/host-bindings.d.ts.map +0 -1
- package/dist/workflows/v3/host-bindings.js +0 -272
- package/dist/workflows/v3/host-bindings.js.map +0 -1
- package/dist/workflows/v3/host-effect-ledger.d.ts +0 -22
- package/dist/workflows/v3/host-effect-ledger.d.ts.map +0 -1
- package/dist/workflows/v3/host-effect-ledger.js +0 -110
- package/dist/workflows/v3/host-effect-ledger.js.map +0 -1
- package/dist/workflows/v3/host-execution.d.ts +0 -142
- package/dist/workflows/v3/host-execution.d.ts.map +0 -1
- package/dist/workflows/v3/host-execution.js +0 -424
- package/dist/workflows/v3/host-execution.js.map +0 -1
- package/dist/workflows/v3/host.d.ts +0 -124
- package/dist/workflows/v3/host.d.ts.map +0 -1
- package/dist/workflows/v3/host.js +0 -628
- package/dist/workflows/v3/host.js.map +0 -1
- package/dist/workflows/v3/human-gate.d.ts +0 -8
- package/dist/workflows/v3/human-gate.d.ts.map +0 -1
- package/dist/workflows/v3/human-gate.js +0 -8
- package/dist/workflows/v3/human-gate.js.map +0 -1
- package/dist/workflows/v3/in-process-attempt-lease.d.ts +0 -10
- package/dist/workflows/v3/in-process-attempt-lease.d.ts.map +0 -1
- package/dist/workflows/v3/in-process-attempt-lease.js +0 -47
- package/dist/workflows/v3/in-process-attempt-lease.js.map +0 -1
- package/dist/workflows/v3/journal.d.ts +0 -52
- package/dist/workflows/v3/journal.d.ts.map +0 -1
- package/dist/workflows/v3/journal.js +0 -190
- package/dist/workflows/v3/journal.js.map +0 -1
- package/dist/workflows/v3/library-materialize.d.ts +0 -88
- package/dist/workflows/v3/library-materialize.d.ts.map +0 -1
- package/dist/workflows/v3/library-materialize.js +0 -298
- package/dist/workflows/v3/library-materialize.js.map +0 -1
- package/dist/workflows/v3/library-schema.d.ts +0 -159
- package/dist/workflows/v3/library-schema.d.ts.map +0 -1
- package/dist/workflows/v3/library-schema.js +0 -667
- package/dist/workflows/v3/library-schema.js.map +0 -1
- package/dist/workflows/v3/library-service.d.ts +0 -126
- package/dist/workflows/v3/library-service.d.ts.map +0 -1
- package/dist/workflows/v3/library-service.js +0 -542
- package/dist/workflows/v3/library-service.js.map +0 -1
- package/dist/workflows/v3/library-store.d.ts +0 -124
- package/dist/workflows/v3/library-store.d.ts.map +0 -1
- package/dist/workflows/v3/library-store.js +0 -665
- package/dist/workflows/v3/library-store.js.map +0 -1
- package/dist/workflows/v3/manifest.d.ts +0 -17
- package/dist/workflows/v3/manifest.d.ts.map +0 -1
- package/dist/workflows/v3/manifest.js +0 -266
- package/dist/workflows/v3/manifest.js.map +0 -1
- package/dist/workflows/v3/ops-projection.d.ts +0 -110
- package/dist/workflows/v3/ops-projection.d.ts.map +0 -1
- package/dist/workflows/v3/ops-projection.js +0 -0
- package/dist/workflows/v3/ops-projection.js.map +0 -1
- package/dist/workflows/v3/orchestrator.d.ts +0 -175
- package/dist/workflows/v3/orchestrator.d.ts.map +0 -1
- package/dist/workflows/v3/orchestrator.js +0 -418
- package/dist/workflows/v3/orchestrator.js.map +0 -1
- package/dist/workflows/v3/portable-artifact-snapshot.d.ts +0 -15
- package/dist/workflows/v3/portable-artifact-snapshot.d.ts.map +0 -1
- package/dist/workflows/v3/portable-artifact-snapshot.js +0 -76
- package/dist/workflows/v3/portable-artifact-snapshot.js.map +0 -1
- package/dist/workflows/v3/portable-final-outputs.d.ts +0 -37
- package/dist/workflows/v3/portable-final-outputs.d.ts.map +0 -1
- package/dist/workflows/v3/portable-final-outputs.js +0 -137
- package/dist/workflows/v3/portable-final-outputs.js.map +0 -1
- package/dist/workflows/v3/portable-run-snapshot.d.ts +0 -14
- package/dist/workflows/v3/portable-run-snapshot.d.ts.map +0 -1
- package/dist/workflows/v3/portable-run-snapshot.js +0 -176
- package/dist/workflows/v3/portable-run-snapshot.js.map +0 -1
- package/dist/workflows/v3/portable-runtime.d.ts +0 -83
- package/dist/workflows/v3/portable-runtime.d.ts.map +0 -1
- package/dist/workflows/v3/portable-runtime.js +0 -135
- package/dist/workflows/v3/portable-runtime.js.map +0 -1
- package/dist/workflows/v3/progress-projection.d.ts +0 -102
- package/dist/workflows/v3/progress-projection.d.ts.map +0 -1
- package/dist/workflows/v3/progress-projection.js +0 -219
- package/dist/workflows/v3/progress-projection.js.map +0 -1
- package/dist/workflows/v3/run-envelope.d.ts +0 -1324
- package/dist/workflows/v3/run-envelope.d.ts.map +0 -1
- package/dist/workflows/v3/run-envelope.js +0 -712
- package/dist/workflows/v3/run-envelope.js.map +0 -1
- package/dist/workflows/v3/runtime-host-contract.d.ts +0 -182
- package/dist/workflows/v3/runtime-host-contract.d.ts.map +0 -1
- package/dist/workflows/v3/runtime-host-contract.js +0 -9
- package/dist/workflows/v3/runtime-host-contract.js.map +0 -1
- package/dist/workflows/v3/runtime.d.ts +0 -16
- package/dist/workflows/v3/runtime.d.ts.map +0 -1
- package/dist/workflows/v3/runtime.js +0 -18
- package/dist/workflows/v3/runtime.js.map +0 -1
- package/dist/workflows/v3/session-relay-client.d.ts +0 -61
- package/dist/workflows/v3/session-relay-client.d.ts.map +0 -1
- package/dist/workflows/v3/session-relay-client.js +0 -92
- package/dist/workflows/v3/session-relay-client.js.map +0 -1
- package/dist/workflows/v3/session-relay.d.ts +0 -66
- package/dist/workflows/v3/session-relay.d.ts.map +0 -1
- package/dist/workflows/v3/session-relay.js +0 -157
- package/dist/workflows/v3/session-relay.js.map +0 -1
- package/dist/workflows/v3/shared-node-runtime.d.ts +0 -203
- package/dist/workflows/v3/shared-node-runtime.d.ts.map +0 -1
- package/dist/workflows/v3/shared-node-runtime.js +0 -2978
- package/dist/workflows/v3/shared-node-runtime.js.map +0 -1
- package/dist/workflows/v3/shared-runtime.d.ts +0 -17
- package/dist/workflows/v3/shared-runtime.d.ts.map +0 -1
- package/dist/workflows/v3/shared-runtime.js +0 -12
- package/dist/workflows/v3/shared-runtime.js.map +0 -1
- package/dist/workflows/v3/spec.d.ts +0 -32
- package/dist/workflows/v3/spec.d.ts.map +0 -1
- package/dist/workflows/v3/spec.js +0 -173
- package/dist/workflows/v3/spec.js.map +0 -1
- package/dist/workflows/v3/start-intent.d.ts +0 -8
- package/dist/workflows/v3/start-intent.d.ts.map +0 -1
- package/dist/workflows/v3/start-intent.js +0 -34
- package/dist/workflows/v3/start-intent.js.map +0 -1
- package/dist/workflows/v3/state.d.ts +0 -83
- package/dist/workflows/v3/state.d.ts.map +0 -1
- package/dist/workflows/v3/state.js +0 -525
- package/dist/workflows/v3/state.js.map +0 -1
- package/dist/workflows/v3/template-bindings.d.ts +0 -22
- package/dist/workflows/v3/template-bindings.d.ts.map +0 -1
- package/dist/workflows/v3/template-bindings.js +0 -204
- package/dist/workflows/v3/template-bindings.js.map +0 -1
- package/dist/workflows/v3/worker-fence.d.ts +0 -158
- package/dist/workflows/v3/worker-fence.d.ts.map +0 -1
- package/dist/workflows/v3/worker-fence.js +0 -690
- package/dist/workflows/v3/worker-fence.js.map +0 -1
- package/ecosystem.config.cjs +0 -15
|
@@ -1,2387 +0,0 @@
|
|
|
1
|
-
import { execFile, execFileSync, spawn, spawnSync, } from 'node:child_process';
|
|
2
|
-
import { createHash, randomBytes } from 'node:crypto';
|
|
3
|
-
import { chmodSync, closeSync, existsSync, fstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, renameSync, rmSync, rmdirSync, writeFileSync, } from 'node:fs';
|
|
4
|
-
import { tmpdir } from 'node:os';
|
|
5
|
-
import { join } from 'node:path';
|
|
6
|
-
import { AmbiguousSubmissionBlockedError, } from './types.js';
|
|
7
|
-
import { zmxEnv, probeZmxFunctional } from '../../setup/ensure-zmx.js';
|
|
8
|
-
import { buildBotmuxEnvAssignments, buildDebugKeepShellScript, resolveUserShell, shellWrapperScript, } from './tmux-backend.js';
|
|
9
|
-
import { resolveBotmuxWrapperBinDir } from '../../core/botmux-wrapper.js';
|
|
10
|
-
import { TERMINAL_CANCEL_COOLDOWN_MS } from './critical-control-key.js';
|
|
11
|
-
import { logger } from '../../utils/logger.js';
|
|
12
|
-
import { atomicWriteFileSync } from '../../utils/atomic-write.js';
|
|
13
|
-
import { fsyncDirectorySyncPortable } from '../../utils/fs-durability.js';
|
|
14
|
-
const EARLY_BUFFER_MAX = 1024 * 1024;
|
|
15
|
-
const HISTORY_TAIL_DEBOUNCE_MS = 50;
|
|
16
|
-
const HISTORY_HOT_POLL_MS = 250;
|
|
17
|
-
// Keep the worst-case safety poll below IdleDetector's 2s quiescence window:
|
|
18
|
-
// otherwise a pure-Unicode burst (which broken upstream tail may not signal)
|
|
19
|
-
// could be observed only after the worker had already declared the turn idle.
|
|
20
|
-
const HISTORY_COLD_POLL_MS = 1250;
|
|
21
|
-
const HISTORY_COLD_JITTER_MAX_MS = 250;
|
|
22
|
-
const HISTORY_STABLE_POLLS_BEFORE_COLD = 3;
|
|
23
|
-
const ZMX_HISTORY_TIMEOUT_MS = 3000;
|
|
24
|
-
const ZMX_HISTORY_SETTLE_TIMEOUT_MS = 4000;
|
|
25
|
-
const TAIL_RECOVERY_DELAY_MAX_MS = 2000;
|
|
26
|
-
const FRESH_READY_TIMEOUT_MS = 5000;
|
|
27
|
-
const FRESH_RELEASE_TIMEOUT_MS = 12_000;
|
|
28
|
-
const FRESH_CLI_PID_TIMEOUT_MS = 3000;
|
|
29
|
-
const FRESH_RELEASE_ACK_TIMEOUT_MS = 3000;
|
|
30
|
-
// ZMX removes history as soon as the PTY root exits. Keep the private launch
|
|
31
|
-
// shell alive briefly after the real CLI finishes so the history-only output
|
|
32
|
-
// path can publish the final bytes before the daemon unlinks the session.
|
|
33
|
-
const ZMX_EXIT_HISTORY_GRACE_SECONDS = 3;
|
|
34
|
-
const TAIL_CONNECT_TIMEOUT_MS = 3000;
|
|
35
|
-
const MANAGED_KILL_TIMEOUT_MS = 5000;
|
|
36
|
-
const ZMX_COMMAND_TIMEOUT_MS = 5000;
|
|
37
|
-
const ZMX_HISTORY_MAX_BYTES = 16 * 1024 * 1024;
|
|
38
|
-
// ZMX's daemon reads one 4096-byte IPC frame at a time and may observe HUP from
|
|
39
|
-
// the short-lived `send` client in the same poll iteration. Keep header+payload
|
|
40
|
-
// comfortably below that boundary so it can parse the complete message before
|
|
41
|
-
// closing the client (`zmx send` has no ACK/drain handshake as of v0.7.0).
|
|
42
|
-
const ZMX_SEND_CHUNK_BYTES = 1024;
|
|
43
|
-
// v0.7.0's daemon queues send input into a 256 KiB pty_write_buf and silently
|
|
44
|
-
// DROPS any payload that would overflow it (daemon-side log only, no ACK, so
|
|
45
|
-
// `zmx send` still exits 0). Reject
|
|
46
|
-
// one-shot payloads well below that ceiling before writing any prefix; adapters
|
|
47
|
-
// that intentionally stream larger input already split and throttle their calls.
|
|
48
|
-
const ZMX_SEND_MAX_BYTES = 64 * 1024;
|
|
49
|
-
const BRACKETED_PASTE_START_BYTES = Buffer.from('\x1b[200~');
|
|
50
|
-
const BRACKETED_PASTE_END = '\x1b[201~';
|
|
51
|
-
const BRACKETED_PASTE_END_BYTES = Buffer.from(BRACKETED_PASTE_END);
|
|
52
|
-
const ZMX_TRANSPORT_LABEL = 'botmux.transport';
|
|
53
|
-
const ZMX_TRANSPORT = 'tail-send-v1';
|
|
54
|
-
const ZMX_SESSION_LABEL = 'botmux.session';
|
|
55
|
-
const ZMX_LAUNCH_PID_LABEL = 'botmux.launch_pid';
|
|
56
|
-
const ZMX_GATE_NONCE_LABEL = 'botmux.gate_nonce';
|
|
57
|
-
const ZMX_GATE_PROCESS_MARKER_PREFIX = 'botmux-zmx-private-release-gate-v1:';
|
|
58
|
-
function bytesMatchAt(bytes, marker, cursor, boundary) {
|
|
59
|
-
if (cursor + marker.length > boundary)
|
|
60
|
-
return false;
|
|
61
|
-
for (let i = 0; i < marker.length; i += 1) {
|
|
62
|
-
if (bytes[cursor + i] !== marker[i])
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
function bracketedPasteOpenStatesAtChunkBoundaries(bytes) {
|
|
68
|
-
const states = [false];
|
|
69
|
-
let openPastes = 0;
|
|
70
|
-
let cursor = 0;
|
|
71
|
-
const shortestMarkerLength = Math.min(BRACKETED_PASTE_START_BYTES.length, BRACKETED_PASTE_END_BYTES.length);
|
|
72
|
-
for (let boundary = Math.min(ZMX_SEND_CHUNK_BYTES, bytes.length); boundary > 0; boundary = Math.min(boundary + ZMX_SEND_CHUNK_BYTES, bytes.length)) {
|
|
73
|
-
while (cursor + shortestMarkerLength <= boundary) {
|
|
74
|
-
if (bytesMatchAt(bytes, BRACKETED_PASTE_START_BYTES, cursor, boundary)) {
|
|
75
|
-
openPastes += 1;
|
|
76
|
-
cursor += BRACKETED_PASTE_START_BYTES.length;
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
if (bytesMatchAt(bytes, BRACKETED_PASTE_END_BYTES, cursor, boundary)) {
|
|
80
|
-
if (openPastes > 0)
|
|
81
|
-
openPastes -= 1;
|
|
82
|
-
cursor += BRACKETED_PASTE_END_BYTES.length;
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
cursor += 1;
|
|
86
|
-
}
|
|
87
|
-
states.push(openPastes > 0);
|
|
88
|
-
if (boundary === bytes.length)
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
return states;
|
|
92
|
-
}
|
|
93
|
-
const syncSleepCell = new Int32Array(new SharedArrayBuffer(4));
|
|
94
|
-
function sleepSync(ms) {
|
|
95
|
-
Atomics.wait(syncSleepCell, 0, 0, ms);
|
|
96
|
-
}
|
|
97
|
-
/** Cross-platform direct-parent probe used only during the private fresh
|
|
98
|
-
* handshake and warm reattach. ZMX itself is Unix-only, so Linux `/proc` plus
|
|
99
|
-
* BSD-compatible `ps` covers its supported hosts without shell interpolation. */
|
|
100
|
-
function readProcessParentPid(pid) {
|
|
101
|
-
if (!Number.isSafeInteger(pid) || pid <= 0)
|
|
102
|
-
return null;
|
|
103
|
-
if (process.platform === 'linux') {
|
|
104
|
-
try {
|
|
105
|
-
const raw = readFileSync(`/proc/${pid}/stat`, 'utf8');
|
|
106
|
-
const closeParen = raw.lastIndexOf(')');
|
|
107
|
-
if (closeParen < 0)
|
|
108
|
-
return null;
|
|
109
|
-
const fields = raw.slice(closeParen + 2).trim().split(/\s+/);
|
|
110
|
-
const parent = Number(fields[1]);
|
|
111
|
-
return Number.isSafeInteger(parent) && parent > 0 ? parent : null;
|
|
112
|
-
}
|
|
113
|
-
catch {
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
for (const ps of ['/usr/bin/ps', '/bin/ps']) {
|
|
118
|
-
try {
|
|
119
|
-
const raw = execFileSync(ps, ['-o', 'ppid=', '-p', String(pid)], {
|
|
120
|
-
encoding: 'utf8',
|
|
121
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
122
|
-
timeout: 2000,
|
|
123
|
-
env: { PATH: '/usr/bin:/bin', LANG: 'C' },
|
|
124
|
-
}).trim();
|
|
125
|
-
const parent = Number(raw);
|
|
126
|
-
if (Number.isSafeInteger(parent) && parent > 0)
|
|
127
|
-
return parent;
|
|
128
|
-
}
|
|
129
|
-
catch { /* try the other standard BSD/GNU location */ }
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
/** Read one same-user process command line without a shell. The private gate
|
|
134
|
-
* marker is random per launch, so a substring check remains unambiguous on
|
|
135
|
-
* macOS where `ps` cannot preserve argv boundaries. */
|
|
136
|
-
function readProcessCommandLine(pid) {
|
|
137
|
-
if (!Number.isSafeInteger(pid) || pid <= 0)
|
|
138
|
-
return null;
|
|
139
|
-
if (process.platform === 'linux') {
|
|
140
|
-
try {
|
|
141
|
-
const raw = readFileSync(`/proc/${pid}/cmdline`);
|
|
142
|
-
if (raw.length === 0)
|
|
143
|
-
return null;
|
|
144
|
-
return raw.toString('utf8').replace(/\0/g, ' ');
|
|
145
|
-
}
|
|
146
|
-
catch {
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
for (const ps of ['/usr/bin/ps', '/bin/ps']) {
|
|
151
|
-
try {
|
|
152
|
-
const raw = execFileSync(ps, ['-ww', '-o', 'command=', '-p', String(pid)], {
|
|
153
|
-
encoding: 'utf8',
|
|
154
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
155
|
-
timeout: 2000,
|
|
156
|
-
env: { PATH: '/usr/bin:/bin', LANG: 'C' },
|
|
157
|
-
}).trim();
|
|
158
|
-
if (raw)
|
|
159
|
-
return raw;
|
|
160
|
-
}
|
|
161
|
-
catch { /* try the other standard BSD/GNU location */ }
|
|
162
|
-
}
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
/** Convert plain line feeds into terminal-safe CRLF without doubling CRLF. */
|
|
166
|
-
export function normaliseZmxHistory(text) {
|
|
167
|
-
// ZMX history emits LF while tail can expose CRLF, and high-throughput tail
|
|
168
|
-
// chunking can occasionally repeat the CR at a boundary. All represent the
|
|
169
|
-
// same terminal line break in this plain-text transport.
|
|
170
|
-
return text.replace(/\r*\n/g, '\r\n');
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Persistent ZMX backend built from three non-leader primitives:
|
|
174
|
-
*
|
|
175
|
-
* - `zmx tail` is a low-latency change/liveness signal (never a byte source);
|
|
176
|
-
* - `zmx send` injects input without taking client leadership or resizing;
|
|
177
|
-
* - `zmx history` is the sole authoritative plain-text screen source.
|
|
178
|
-
*
|
|
179
|
-
* A one-shot `zmx attach ... /bin/sh <private-bootstrap>` is used only as the
|
|
180
|
-
* race-safe create primitive. Its stdin is /dev/null, so the client exits
|
|
181
|
-
* immediately and never remains as a synthetic leader. The private bootstrap
|
|
182
|
-
* does not launch the CLI until botmux has proved ownership, stamped the
|
|
183
|
-
* transport protocol labels and observed the tail client connected.
|
|
184
|
-
*/
|
|
185
|
-
export class ZmxBackend {
|
|
186
|
-
sessionName;
|
|
187
|
-
opts;
|
|
188
|
-
tailProcess = null;
|
|
189
|
-
dataCbs = [];
|
|
190
|
-
screenResyncCbs = [];
|
|
191
|
-
exitCbs = [];
|
|
192
|
-
reattaching;
|
|
193
|
-
intentionalExit = false;
|
|
194
|
-
exited = false;
|
|
195
|
-
state = 'idle';
|
|
196
|
-
tailEpoch = 0;
|
|
197
|
-
reconnectAttempt = 0;
|
|
198
|
-
reconnectTimer = null;
|
|
199
|
-
stableTailTimer = null;
|
|
200
|
-
historyTimer = null;
|
|
201
|
-
historyTimerDueAt = 0;
|
|
202
|
-
historyProcess = null;
|
|
203
|
-
historyGeneration = 0;
|
|
204
|
-
historyCaptureSerial = 0;
|
|
205
|
-
historyInFlight = false;
|
|
206
|
-
historyAgain = false;
|
|
207
|
-
historyAgainActivity = false;
|
|
208
|
-
historyAgainForceResync = false;
|
|
209
|
-
tailActivitySinceCapture = false;
|
|
210
|
-
forceResyncOnNextSnapshot = false;
|
|
211
|
-
stableHistoryPolls = 0;
|
|
212
|
-
snapshotCache = '';
|
|
213
|
-
hasSnapshot = false;
|
|
214
|
-
pendingScreenResyncReplay = false;
|
|
215
|
-
historyColdJitterMs;
|
|
216
|
-
historySettleWaiters = [];
|
|
217
|
-
/** A same-name session failed ownership checks and must never be killed. */
|
|
218
|
-
preserveSessionOnDestroy = false;
|
|
219
|
-
pendingExit = null;
|
|
220
|
-
earlyBuffer = '';
|
|
221
|
-
lastOpts = null;
|
|
222
|
-
/** Frozen ZMX PTY-root PID for the session generation we may control. */
|
|
223
|
-
backingPid = null;
|
|
224
|
-
/** Stable direct child of the PTY root; wrapper resolution may refine cliPid. */
|
|
225
|
-
launchPid = null;
|
|
226
|
-
/** Monotonic generation of compatible, transport-ambiguous text writes. */
|
|
227
|
-
ambiguousTextFailureSequence = 0;
|
|
228
|
-
/** Highest ambiguous text generation confirmed covered by Ctrl+C. */
|
|
229
|
-
cancelledAmbiguousTextFailureSequence = 0;
|
|
230
|
-
/** Highest ambiguous text generation for which Ctrl+C was actually attempted. */
|
|
231
|
-
attemptedAmbiguousTextRecoverySequence = 0;
|
|
232
|
-
/** A recovery Ctrl+C may have landed, so retrying or appending is unsafe. */
|
|
233
|
-
ambiguousTextRecoveryUnconfirmed = false;
|
|
234
|
-
/** Recovery must leave bracketed-paste mode before injecting Ctrl+C. */
|
|
235
|
-
ambiguousTextRecoveryNeedsPasteClose = false;
|
|
236
|
-
/** Worker-level transaction spanning all adapter chunks and its submit key. */
|
|
237
|
-
activeSubmissionFence = null;
|
|
238
|
-
activeSubmissionGeneration = null;
|
|
239
|
-
activeSubmissionTextTouched = false;
|
|
240
|
-
activeSubmissionTransportFailed = false;
|
|
241
|
-
activeSubmissionControlAccepted = false;
|
|
242
|
-
/** Completion-time timestamp: a timed-out Ctrl+C may have landed just before return. */
|
|
243
|
-
lastInjectedCancelAtMs = 0;
|
|
244
|
-
claudeJsonlPath;
|
|
245
|
-
cliPid;
|
|
246
|
-
cliCwd;
|
|
247
|
-
constructor(sessionName, opts = {}) {
|
|
248
|
-
this.sessionName = sessionName;
|
|
249
|
-
this.opts = opts;
|
|
250
|
-
this.reattaching = opts.isReattach ?? false;
|
|
251
|
-
let hash = 0;
|
|
252
|
-
for (const char of sessionName)
|
|
253
|
-
hash = ((hash * 33) + char.charCodeAt(0)) >>> 0;
|
|
254
|
-
this.historyColdJitterMs = hash % (HISTORY_COLD_JITTER_MAX_MS + 1);
|
|
255
|
-
this.restoreAmbiguousRecoveryState();
|
|
256
|
-
}
|
|
257
|
-
static isAvailable() {
|
|
258
|
-
return probeZmxFunctional().ok;
|
|
259
|
-
}
|
|
260
|
-
static sessionName(sessionId) {
|
|
261
|
-
return `bmx-${sessionId.slice(0, 8)}`;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Pair the authoritative healthy-name surface (`list --short`) with the full
|
|
265
|
-
* list's `err=` rows. The full command field is not a line protocol (literal
|
|
266
|
-
* newlines in argv spill onto continuation lines), so it must never be the
|
|
267
|
-
* sole source of truth for a healthy session name.
|
|
268
|
-
*/
|
|
269
|
-
static probeSessions(env = zmxEnv()) {
|
|
270
|
-
try {
|
|
271
|
-
const shortOut = execFileSync('zmx', ['list', '--short'], {
|
|
272
|
-
encoding: 'utf-8',
|
|
273
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
274
|
-
timeout: 3000,
|
|
275
|
-
env,
|
|
276
|
-
});
|
|
277
|
-
const out = execFileSync('zmx', ['list'], {
|
|
278
|
-
encoding: 'utf-8',
|
|
279
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
280
|
-
timeout: 3000,
|
|
281
|
-
env,
|
|
282
|
-
});
|
|
283
|
-
const short = parseZmxShortList(shortOut);
|
|
284
|
-
const parsed = parseZmxList(out);
|
|
285
|
-
if (short.malformedLines.length > 0 || parsed.malformedLines.length > 0)
|
|
286
|
-
return { ok: false };
|
|
287
|
-
if (short.sessions.length > 0 && parsed.sessions.length + parsed.unhealthySessions.length === 0) {
|
|
288
|
-
return { ok: false };
|
|
289
|
-
}
|
|
290
|
-
const healthy = new Set(short.sessions);
|
|
291
|
-
// A healthy-looking full row absent from --short is ambiguous (the row
|
|
292
|
-
// can have been forged by a multiline cmd field). Preserve it as unknown,
|
|
293
|
-
// never as authoritative existence or absence. Conversely --short wins
|
|
294
|
-
// over a forged err= continuation for a genuinely healthy name.
|
|
295
|
-
const unhealthy = new Set([
|
|
296
|
-
...parsed.unhealthySessions.filter(name => !healthy.has(name)),
|
|
297
|
-
...parsed.sessions.filter(name => !healthy.has(name)),
|
|
298
|
-
]);
|
|
299
|
-
return {
|
|
300
|
-
ok: true,
|
|
301
|
-
sessions: short.sessions,
|
|
302
|
-
unhealthySessions: [...unhealthy],
|
|
303
|
-
raw: out,
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
catch {
|
|
307
|
-
return { ok: false };
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
static hasSession(name, env = zmxEnv()) {
|
|
311
|
-
return ZmxBackend.probeSession(name, env) === 'exists';
|
|
312
|
-
}
|
|
313
|
-
static probeSession(name, env = zmxEnv()) {
|
|
314
|
-
const probe = ZmxBackend.probeSessions(env);
|
|
315
|
-
if (!probe.ok)
|
|
316
|
-
return 'unknown';
|
|
317
|
-
if (probe.sessions.includes(name))
|
|
318
|
-
return 'exists';
|
|
319
|
-
if (probe.unhealthySessions.includes(name))
|
|
320
|
-
return 'unknown';
|
|
321
|
-
return 'missing';
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Verify that a name still resolves to the botmux-owned transport for the
|
|
325
|
-
* complete session UUID. The PTY-root PID is sampled on both sides of the label
|
|
326
|
-
* reads so a same-name replacement cannot be mistaken for the process whose
|
|
327
|
-
* labels we just inspected.
|
|
328
|
-
*/
|
|
329
|
-
static probeManagedSession(name, expectedSessionId, env = zmxEnv(), opts = {}) {
|
|
330
|
-
const beforeSnapshot = ZmxBackend.probeSessions(env);
|
|
331
|
-
if (!beforeSnapshot.ok) {
|
|
332
|
-
return { state: 'unknown', reason: `无法读取 ZMX 会话 ${name} 的进程信息` };
|
|
333
|
-
}
|
|
334
|
-
if (!beforeSnapshot.sessions.includes(name)) {
|
|
335
|
-
return beforeSnapshot.unhealthySessions.includes(name)
|
|
336
|
-
? { state: 'unknown', reason: `ZMX 会话 ${name} 当前无响应` }
|
|
337
|
-
: { state: 'missing' };
|
|
338
|
-
}
|
|
339
|
-
const before = sessionDetailsFromSnapshot(beforeSnapshot, name);
|
|
340
|
-
if (!before)
|
|
341
|
-
return { state: 'unknown', reason: `ZMX 会话 ${name} 的进程信息不唯一` };
|
|
342
|
-
let transport;
|
|
343
|
-
let sessionId = '';
|
|
344
|
-
let launchPidRaw;
|
|
345
|
-
let gateNonce;
|
|
346
|
-
try {
|
|
347
|
-
transport = execFileSync('zmx', ['get', name, ZMX_TRANSPORT_LABEL], {
|
|
348
|
-
encoding: 'utf8',
|
|
349
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
350
|
-
timeout: 3000,
|
|
351
|
-
env,
|
|
352
|
-
}).trim();
|
|
353
|
-
if (expectedSessionId) {
|
|
354
|
-
sessionId = execFileSync('zmx', ['get', name, ZMX_SESSION_LABEL], {
|
|
355
|
-
encoding: 'utf8',
|
|
356
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
357
|
-
timeout: 3000,
|
|
358
|
-
env,
|
|
359
|
-
}).trim();
|
|
360
|
-
}
|
|
361
|
-
launchPidRaw = execFileSync('zmx', ['get', name, ZMX_LAUNCH_PID_LABEL], {
|
|
362
|
-
encoding: 'utf8',
|
|
363
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
364
|
-
timeout: 3000,
|
|
365
|
-
env,
|
|
366
|
-
}).trim();
|
|
367
|
-
}
|
|
368
|
-
catch (err) {
|
|
369
|
-
return {
|
|
370
|
-
state: 'unknown',
|
|
371
|
-
reason: `无法读取 ZMX 会话 ${name} 的所有权标签:${err instanceof Error ? err.message : String(err)}`,
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
try {
|
|
375
|
-
gateNonce = execFileSync('zmx', ['get', name, ZMX_GATE_NONCE_LABEL], {
|
|
376
|
-
encoding: 'utf8',
|
|
377
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
378
|
-
timeout: 3000,
|
|
379
|
-
env,
|
|
380
|
-
}).trim();
|
|
381
|
-
}
|
|
382
|
-
catch (err) {
|
|
383
|
-
return {
|
|
384
|
-
state: 'unknown',
|
|
385
|
-
// Sessions created before the gated-generation protocol cannot prove
|
|
386
|
-
// whether their labelled launch child is still waiting for a private
|
|
387
|
-
// release file. Preserve them for one-time manual cleanup rather than
|
|
388
|
-
// reattaching or deleting by name.
|
|
389
|
-
reason: `ZMX 会话 ${name} 缺少启动门禁标签;已保留,请手动关闭旧会话后重试:${err instanceof Error ? err.message : String(err)}`,
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
const afterSnapshot = ZmxBackend.probeSessions(env);
|
|
393
|
-
const after = afterSnapshot.ok ? sessionDetailsFromSnapshot(afterSnapshot, name) : null;
|
|
394
|
-
if (!after || after.pid !== before.pid) {
|
|
395
|
-
return { state: 'unknown', reason: `ZMX 会话 ${name} 在所有权校验期间发生变化` };
|
|
396
|
-
}
|
|
397
|
-
if (transport !== ZMX_TRANSPORT) {
|
|
398
|
-
return {
|
|
399
|
-
state: 'incompatible',
|
|
400
|
-
pid: after.pid,
|
|
401
|
-
clients: after.clients,
|
|
402
|
-
reason: 'transport-label',
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
if (expectedSessionId && sessionId !== expectedSessionId) {
|
|
406
|
-
return {
|
|
407
|
-
state: 'incompatible',
|
|
408
|
-
pid: after.pid,
|
|
409
|
-
clients: after.clients,
|
|
410
|
-
reason: 'session-label',
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
const launchPid = Number(launchPidRaw);
|
|
414
|
-
if (!Number.isSafeInteger(launchPid)
|
|
415
|
-
|| launchPid <= 0
|
|
416
|
-
|| readProcessParentPid(launchPid) !== after.pid) {
|
|
417
|
-
return {
|
|
418
|
-
state: 'unknown',
|
|
419
|
-
reason: `ZMX 会话 ${name} 的 launch PID 标签无效或已脱离 PTY root`,
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
if (!/^[0-9a-f]{32}$/.test(gateNonce)) {
|
|
423
|
-
return {
|
|
424
|
-
state: 'unknown',
|
|
425
|
-
reason: `ZMX 会话 ${name} 的启动门禁标签无效`,
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
if (!opts.allowGated) {
|
|
429
|
-
const commandLine = readProcessCommandLine(launchPid);
|
|
430
|
-
if (!commandLine) {
|
|
431
|
-
return {
|
|
432
|
-
state: 'unknown',
|
|
433
|
-
reason: `无法确认 ZMX 会话 ${name} 的 launch 子进程状态`,
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
if (commandLine.includes(`${ZMX_GATE_PROCESS_MARKER_PREFIX}${gateNonce}`)) {
|
|
437
|
-
return {
|
|
438
|
-
state: 'unknown',
|
|
439
|
-
reason: `ZMX 会话 ${name} 仍在等待私有启动门禁放行`,
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
return { state: 'compatible', pid: after.pid, clients: after.clients };
|
|
444
|
-
}
|
|
445
|
-
static killSession(name) {
|
|
446
|
-
try {
|
|
447
|
-
execFileSync('zmx', ['kill', name, '--force'], {
|
|
448
|
-
stdio: 'ignore',
|
|
449
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
450
|
-
env: zmxEnv(),
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
catch { /* already gone or daemon unavailable */ }
|
|
454
|
-
}
|
|
455
|
-
/** Kill only a session whose full botmux identity is still authoritative. */
|
|
456
|
-
static killManagedSession(name, expectedSessionId, expectedPid, env = zmxEnv()) {
|
|
457
|
-
const allowGated = expectedPid !== undefined;
|
|
458
|
-
const probe = ZmxBackend.probeManagedSession(name, expectedSessionId, env, { allowGated });
|
|
459
|
-
if (probe.state === 'missing')
|
|
460
|
-
return;
|
|
461
|
-
if (probe.state !== 'compatible') {
|
|
462
|
-
throw new Error(probe.state === 'unknown'
|
|
463
|
-
? probe.reason
|
|
464
|
-
: `ZMX 会话 ${name} 的所有权标签不匹配,已拒绝删除`);
|
|
465
|
-
}
|
|
466
|
-
if (expectedPid !== undefined && probe.pid !== expectedPid) {
|
|
467
|
-
throw new Error(`ZMX 会话 ${name} 的 PTY root PID 已变化,已拒绝删除`);
|
|
468
|
-
}
|
|
469
|
-
execFileSync('zmx', ['kill', name, '--force'], {
|
|
470
|
-
encoding: 'utf8',
|
|
471
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
472
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
473
|
-
env,
|
|
474
|
-
});
|
|
475
|
-
// Successful ZMX kills print `killed session <name>` (and forced stale
|
|
476
|
-
// cleanup also prints a status line). The exit status plus the generation-
|
|
477
|
-
// aware convergence probe below are authoritative, not empty stdout.
|
|
478
|
-
const deadline = Date.now() + MANAGED_KILL_TIMEOUT_MS;
|
|
479
|
-
let lastUnknownReason = null;
|
|
480
|
-
while (Date.now() < deadline) {
|
|
481
|
-
const after = ZmxBackend.probeManagedSession(name, expectedSessionId, env, { allowGated });
|
|
482
|
-
if (after.state === 'missing')
|
|
483
|
-
return;
|
|
484
|
-
// A just-removed socket may briefly remain visible while its control
|
|
485
|
-
// endpoint already rejects get/list. Treat that as convergence, not as a
|
|
486
|
-
// replacement; an incompatible label or changed PID still fails at once.
|
|
487
|
-
if (after.state === 'unknown') {
|
|
488
|
-
lastUnknownReason = after.reason;
|
|
489
|
-
sleepSync(25);
|
|
490
|
-
continue;
|
|
491
|
-
}
|
|
492
|
-
if (after.state === 'incompatible' || after.pid !== probe.pid) {
|
|
493
|
-
throw new Error(`ZMX 会话 ${name} 在删除确认期间被同名会话替换`);
|
|
494
|
-
}
|
|
495
|
-
sleepSync(25);
|
|
496
|
-
}
|
|
497
|
-
throw new Error(`ZMX 会话 ${name} 删除确认超时` +
|
|
498
|
-
(lastUnknownReason ? `:${lastUnknownReason}` : ''));
|
|
499
|
-
}
|
|
500
|
-
static listBotmuxSessions() {
|
|
501
|
-
const probe = ZmxBackend.probeSessions();
|
|
502
|
-
return probe.ok ? probe.sessions.filter(s => s.startsWith('bmx-')) : [];
|
|
503
|
-
}
|
|
504
|
-
static listDetails() {
|
|
505
|
-
const probe = ZmxBackend.probeSessions();
|
|
506
|
-
return probe.ok ? probe.raw : '';
|
|
507
|
-
}
|
|
508
|
-
get isReattach() {
|
|
509
|
-
return this.reattaching;
|
|
510
|
-
}
|
|
511
|
-
get lastInjectedCancelAt() {
|
|
512
|
-
return this.lastInjectedCancelAtMs;
|
|
513
|
-
}
|
|
514
|
-
captureAmbiguousSubmissionFence() {
|
|
515
|
-
const fence = this.ambiguousTextFailureSequence;
|
|
516
|
-
if (this.ambiguousTextRecoveryUnconfirmed) {
|
|
517
|
-
throw new AmbiguousSubmissionBlockedError('recovery-unconfirmed');
|
|
518
|
-
}
|
|
519
|
-
if (this.hasAmbiguousRecoveryDebt()) {
|
|
520
|
-
throw new AmbiguousSubmissionBlockedError('recovery-pending');
|
|
521
|
-
}
|
|
522
|
-
if (this.activeSubmissionGeneration != null) {
|
|
523
|
-
this.markActiveSubmissionUnconfirmed();
|
|
524
|
-
throw new AmbiguousSubmissionBlockedError('recovery-unconfirmed');
|
|
525
|
-
}
|
|
526
|
-
const generation = this.armAmbiguousTextGeneration();
|
|
527
|
-
if (generation == null) {
|
|
528
|
-
throw new AmbiguousSubmissionBlockedError('recovery-unconfirmed');
|
|
529
|
-
}
|
|
530
|
-
this.activeSubmissionFence = fence;
|
|
531
|
-
this.activeSubmissionGeneration = generation;
|
|
532
|
-
this.activeSubmissionTextTouched = false;
|
|
533
|
-
this.activeSubmissionTransportFailed = false;
|
|
534
|
-
this.activeSubmissionControlAccepted = false;
|
|
535
|
-
return fence;
|
|
536
|
-
}
|
|
537
|
-
confirmAmbiguousSubmission(fence) {
|
|
538
|
-
if (this.ambiguousTextRecoveryUnconfirmed)
|
|
539
|
-
return 'recovery-unconfirmed';
|
|
540
|
-
if (this.activeSubmissionGeneration != null
|
|
541
|
-
&& this.activeSubmissionFence !== fence) {
|
|
542
|
-
// A stale caller must never commit another logical transaction. The
|
|
543
|
-
// worker mutex makes this unreachable in the normal path, but keeping the
|
|
544
|
-
// backend contract fail-closed prevents a future caller from silently
|
|
545
|
-
// leaving an armed generation writable.
|
|
546
|
-
this.markActiveSubmissionUnconfirmed();
|
|
547
|
-
return 'recovery-unconfirmed';
|
|
548
|
-
}
|
|
549
|
-
if (this.activeSubmissionFence !== fence
|
|
550
|
-
|| this.activeSubmissionGeneration == null) {
|
|
551
|
-
return this.hasAmbiguousRecoveryDebt() ? 'recovery-pending' : undefined;
|
|
552
|
-
}
|
|
553
|
-
if (this.activeSubmissionTransportFailed)
|
|
554
|
-
return 'recovery-pending';
|
|
555
|
-
return this.markAmbiguousGenerationCovered(this.activeSubmissionGeneration)
|
|
556
|
-
? undefined
|
|
557
|
-
: 'recovery-unconfirmed';
|
|
558
|
-
}
|
|
559
|
-
cancelAmbiguousSubmission(fence) {
|
|
560
|
-
if (this.ambiguousTextRecoveryUnconfirmed)
|
|
561
|
-
return 'recovery-unconfirmed';
|
|
562
|
-
if (this.activeSubmissionGeneration != null
|
|
563
|
-
&& this.activeSubmissionFence !== fence) {
|
|
564
|
-
// Do not let a stale cancellation abort a newer transaction or inject
|
|
565
|
-
// Ctrl+C into its composer. Freeze it for explicit fresh-generation
|
|
566
|
-
// recovery instead.
|
|
567
|
-
this.markActiveSubmissionUnconfirmed();
|
|
568
|
-
return 'recovery-unconfirmed';
|
|
569
|
-
}
|
|
570
|
-
if (this.activeSubmissionFence === fence
|
|
571
|
-
&& this.activeSubmissionGeneration != null) {
|
|
572
|
-
if (!this.activeSubmissionTextTouched) {
|
|
573
|
-
return this.markAmbiguousGenerationCovered(this.activeSubmissionGeneration)
|
|
574
|
-
? undefined
|
|
575
|
-
: 'recovery-unconfirmed';
|
|
576
|
-
}
|
|
577
|
-
// Once a control key was accepted, a later adapter exception cannot
|
|
578
|
-
// prove whether that key submitted the prompt. Never inject Ctrl+C into
|
|
579
|
-
// a possibly running turn; freeze until the user inspects/restarts it.
|
|
580
|
-
if (this.activeSubmissionControlAccepted) {
|
|
581
|
-
this.markActiveSubmissionUnconfirmed();
|
|
582
|
-
return 'recovery-unconfirmed';
|
|
583
|
-
}
|
|
584
|
-
return this.abortPartialSend(false);
|
|
585
|
-
}
|
|
586
|
-
const failedThrough = this.ambiguousTextFailureSequence;
|
|
587
|
-
if (failedThrough <= this.cancelledAmbiguousTextFailureSequence)
|
|
588
|
-
return undefined;
|
|
589
|
-
if (failedThrough <= fence)
|
|
590
|
-
return 'recovery-pending';
|
|
591
|
-
return this.abortPartialSend(false);
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Space terminal writes themselves so two valid cancellation debts cannot
|
|
595
|
-
* become OMP's double-Ctrl+C exit gesture.
|
|
596
|
-
*/
|
|
597
|
-
waitForInjectedCancelCooldown() {
|
|
598
|
-
if (this.lastInjectedCancelAtMs > 0) {
|
|
599
|
-
const elapsed = Math.max(0, Date.now() - this.lastInjectedCancelAtMs);
|
|
600
|
-
const waitMs = TERMINAL_CANCEL_COOLDOWN_MS - elapsed;
|
|
601
|
-
if (waitMs > 0)
|
|
602
|
-
sleepSync(waitMs);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
hasPendingAmbiguousTextRecovery() {
|
|
606
|
-
return this.ambiguousTextFailureSequence
|
|
607
|
-
> this.cancelledAmbiguousTextFailureSequence;
|
|
608
|
-
}
|
|
609
|
-
activeSubmissionCanWrite() {
|
|
610
|
-
return this.activeSubmissionGeneration != null
|
|
611
|
-
&& !this.activeSubmissionTransportFailed
|
|
612
|
-
&& !this.ambiguousTextRecoveryUnconfirmed;
|
|
613
|
-
}
|
|
614
|
-
hasAmbiguousRecoveryDebt() {
|
|
615
|
-
return this.hasPendingAmbiguousTextRecovery()
|
|
616
|
-
&& !this.activeSubmissionCanWrite();
|
|
617
|
-
}
|
|
618
|
-
composerRecoveryStatePath() {
|
|
619
|
-
if (!this.opts.recoveryStateDir || !this.opts.sessionId)
|
|
620
|
-
return null;
|
|
621
|
-
const key = createHash('sha256').update(this.opts.sessionId).digest('hex');
|
|
622
|
-
return join(this.opts.recoveryStateDir, 'zmx-composer-recovery', `${key}.json`);
|
|
623
|
-
}
|
|
624
|
-
readComposerRecoveryState() {
|
|
625
|
-
const path = this.composerRecoveryStatePath();
|
|
626
|
-
if (!path)
|
|
627
|
-
return 'clean';
|
|
628
|
-
try {
|
|
629
|
-
const parsed = JSON.parse(readFileSync(path, 'utf8'));
|
|
630
|
-
if (parsed.version !== 1
|
|
631
|
-
|| parsed.sessionId !== this.opts.sessionId
|
|
632
|
-
|| !['clean', 'pending', 'unconfirmed'].includes(String(parsed.state))) {
|
|
633
|
-
return 'unconfirmed';
|
|
634
|
-
}
|
|
635
|
-
return parsed.state;
|
|
636
|
-
}
|
|
637
|
-
catch (err) {
|
|
638
|
-
if (err
|
|
639
|
-
&& typeof err === 'object'
|
|
640
|
-
&& 'code' in err
|
|
641
|
-
&& err.code === 'ENOENT') {
|
|
642
|
-
return 'clean';
|
|
643
|
-
}
|
|
644
|
-
logger.error(`[zmx:${this.sessionName}] composer recovery journal unreadable; ` +
|
|
645
|
-
`failing closed: ${err instanceof Error ? err.message : String(err)}`);
|
|
646
|
-
return 'unconfirmed';
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
writeComposerRecoveryState(state) {
|
|
650
|
-
const path = this.composerRecoveryStatePath();
|
|
651
|
-
if (!path)
|
|
652
|
-
return true;
|
|
653
|
-
try {
|
|
654
|
-
const journalDir = join(this.opts.recoveryStateDir, 'zmx-composer-recovery');
|
|
655
|
-
const created = mkdirSync(journalDir, {
|
|
656
|
-
recursive: true,
|
|
657
|
-
mode: 0o700,
|
|
658
|
-
});
|
|
659
|
-
if (created !== undefined) {
|
|
660
|
-
// fsyncing the journal directory below makes its file entries durable,
|
|
661
|
-
// but a first-ever mkdir is itself an entry in recoveryStateDir. Publish
|
|
662
|
-
// that parent entry before arming the WAL, or a power loss could erase
|
|
663
|
-
// the entire pending journal and make reattach fail open as `clean`.
|
|
664
|
-
try {
|
|
665
|
-
fsyncDirectorySyncPortable(this.opts.recoveryStateDir);
|
|
666
|
-
}
|
|
667
|
-
catch (err) {
|
|
668
|
-
// Do not leave an empty, never-confirmed directory behind: a later
|
|
669
|
-
// retry would otherwise see mkdir as pre-existing, skip this parent
|
|
670
|
-
// durability barrier, and incorrectly trust it.
|
|
671
|
-
try {
|
|
672
|
-
rmdirSync(journalDir);
|
|
673
|
-
}
|
|
674
|
-
catch { /* fail-closed below */ }
|
|
675
|
-
throw err;
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
atomicWriteFileSync(path, `${JSON.stringify({ version: 1, sessionId: this.opts.sessionId, state })}\n`, {
|
|
679
|
-
mode: 0o600,
|
|
680
|
-
durable: true,
|
|
681
|
-
followTargetSymlink: false,
|
|
682
|
-
});
|
|
683
|
-
return true;
|
|
684
|
-
}
|
|
685
|
-
catch (err) {
|
|
686
|
-
logger.error(`[zmx:${this.sessionName}] unable to persist composer recovery state ` +
|
|
687
|
-
`${state}; failing closed: ${err instanceof Error ? err.message : String(err)}`);
|
|
688
|
-
return false;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
restoreAmbiguousRecoveryState() {
|
|
692
|
-
const state = this.readComposerRecoveryState();
|
|
693
|
-
if (state === 'clean')
|
|
694
|
-
return;
|
|
695
|
-
this.ambiguousTextFailureSequence = 1;
|
|
696
|
-
// A new worker cannot reconstruct whether bracketed-paste mode was open
|
|
697
|
-
// or whether a cleanup key landed before the old process died. Restore
|
|
698
|
-
// every non-clean journal entry as sticky poison, never as retryable debt.
|
|
699
|
-
this.attemptedAmbiguousTextRecoverySequence = 1;
|
|
700
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
701
|
-
logger.error(`[zmx:${this.sessionName}] restored ${state} composer recovery state; ` +
|
|
702
|
-
'automatic input remains blocked until a fresh backend generation');
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* Write-ahead arm one text transport generation before `zmx send` can touch
|
|
706
|
-
* the PTY. A worker killed after the daemon consumes stdin but before the
|
|
707
|
-
* synchronous client returns will therefore leave `pending` for reattach to
|
|
708
|
-
* restore as poison instead of trusting a stale `clean` marker.
|
|
709
|
-
*/
|
|
710
|
-
armAmbiguousTextGeneration() {
|
|
711
|
-
const generation = this.ambiguousTextFailureSequence + 1;
|
|
712
|
-
if (!this.writeComposerRecoveryState('pending')) {
|
|
713
|
-
// No bytes have been sent, but this worker can no longer uphold the
|
|
714
|
-
// recovery journal contract. Keep it fail-closed until a fresh process.
|
|
715
|
-
this.ambiguousTextFailureSequence = generation;
|
|
716
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
717
|
-
return null;
|
|
718
|
-
}
|
|
719
|
-
this.ambiguousTextFailureSequence = generation;
|
|
720
|
-
return generation;
|
|
721
|
-
}
|
|
722
|
-
markArmedTextFailure(closeOpenPaste) {
|
|
723
|
-
this.ambiguousTextRecoveryNeedsPasteClose ||= closeOpenPaste;
|
|
724
|
-
if (this.activeSubmissionGeneration != null) {
|
|
725
|
-
this.activeSubmissionTransportFailed = true;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
markActiveSubmissionUnconfirmed() {
|
|
729
|
-
// `pending` already survives a failed atomic replacement, so even a failed
|
|
730
|
-
// unconfirmed write remains fail-closed on the next worker.
|
|
731
|
-
this.writeComposerRecoveryState('unconfirmed');
|
|
732
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
733
|
-
}
|
|
734
|
-
/** Record that a recovery Ctrl+C is now transport-ambiguous itself. */
|
|
735
|
-
markAmbiguousRecoveryAttempted() {
|
|
736
|
-
if (!this.writeComposerRecoveryState('unconfirmed')) {
|
|
737
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
738
|
-
return null;
|
|
739
|
-
}
|
|
740
|
-
const generation = this.ambiguousTextFailureSequence;
|
|
741
|
-
this.attemptedAmbiguousTextRecoverySequence = Math.max(this.attemptedAmbiguousTextRecoverySequence, generation);
|
|
742
|
-
return generation;
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* Clear only the exact write-ahead generation whose send or recovery was
|
|
746
|
-
* accepted. Persistence is committed before the in-memory covered marker.
|
|
747
|
-
*/
|
|
748
|
-
markAmbiguousGenerationCovered(generation) {
|
|
749
|
-
if (!this.writeComposerRecoveryState('clean')) {
|
|
750
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
751
|
-
return false;
|
|
752
|
-
}
|
|
753
|
-
this.cancelledAmbiguousTextFailureSequence = Math.max(this.cancelledAmbiguousTextFailureSequence, generation);
|
|
754
|
-
this.ambiguousTextRecoveryUnconfirmed = false;
|
|
755
|
-
if (!this.hasPendingAmbiguousTextRecovery()) {
|
|
756
|
-
this.ambiguousTextRecoveryNeedsPasteClose = false;
|
|
757
|
-
}
|
|
758
|
-
if (this.activeSubmissionGeneration === generation) {
|
|
759
|
-
this.activeSubmissionFence = null;
|
|
760
|
-
this.activeSubmissionGeneration = null;
|
|
761
|
-
this.activeSubmissionTextTouched = false;
|
|
762
|
-
this.activeSubmissionTransportFailed = false;
|
|
763
|
-
this.activeSubmissionControlAccepted = false;
|
|
764
|
-
}
|
|
765
|
-
return true;
|
|
766
|
-
}
|
|
767
|
-
resetAmbiguousRecoveryForFreshSession() {
|
|
768
|
-
if (!this.writeComposerRecoveryState('clean')) {
|
|
769
|
-
throw new Error('ZMX composer recovery journal could not be reset');
|
|
770
|
-
}
|
|
771
|
-
this.ambiguousTextFailureSequence = 0;
|
|
772
|
-
this.cancelledAmbiguousTextFailureSequence = 0;
|
|
773
|
-
this.attemptedAmbiguousTextRecoverySequence = 0;
|
|
774
|
-
this.ambiguousTextRecoveryUnconfirmed = false;
|
|
775
|
-
this.ambiguousTextRecoveryNeedsPasteClose = false;
|
|
776
|
-
this.activeSubmissionFence = null;
|
|
777
|
-
this.activeSubmissionGeneration = null;
|
|
778
|
-
this.activeSubmissionTextTouched = false;
|
|
779
|
-
this.activeSubmissionTransportFailed = false;
|
|
780
|
-
this.activeSubmissionControlAccepted = false;
|
|
781
|
-
}
|
|
782
|
-
/** Start the next terminal-side cooldown after this attempt has settled. */
|
|
783
|
-
noteInjectedCancelAttemptSettled() {
|
|
784
|
-
this.lastInjectedCancelAtMs = Date.now();
|
|
785
|
-
}
|
|
786
|
-
spawn(bin, args, opts) {
|
|
787
|
-
const frozenOpts = {
|
|
788
|
-
...opts,
|
|
789
|
-
env: { ...opts.env },
|
|
790
|
-
injectEnv: opts.injectEnv ? { ...opts.injectEnv } : undefined,
|
|
791
|
-
};
|
|
792
|
-
const controlEnv = zmxControlEnv(frozenOpts);
|
|
793
|
-
const probe = ZmxBackend.probeManagedSession(this.sessionName, this.opts.sessionId, controlEnv);
|
|
794
|
-
if (probe.state === 'unknown')
|
|
795
|
-
throw new Error(probe.reason);
|
|
796
|
-
if (probe.state === 'incompatible') {
|
|
797
|
-
this.preserveSessionOnDestroy = true;
|
|
798
|
-
throw new Error(probe.reason === 'transport-label'
|
|
799
|
-
? `ZMX 会话 ${this.sessionName} 缺少 botmux 传输标签(tail 信号 + history 屏幕 + send 输入);已保留,请手动关闭旧会话后重试`
|
|
800
|
-
: `ZMX 会话 ${this.sessionName} 属于另一个完整 botmux session;已保留该会话`);
|
|
801
|
-
}
|
|
802
|
-
if (probe.state === 'compatible') {
|
|
803
|
-
// Reattach/fresh is frozen by worker before plugin, startup-command and
|
|
804
|
-
// isolation decisions. A late same-name winner must not silently turn a
|
|
805
|
-
// fresh launch into an attach to a process created under another policy.
|
|
806
|
-
if (!this.reattaching) {
|
|
807
|
-
this.preserveSessionOnDestroy = true;
|
|
808
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 在启动前已出现;已保留并拒绝改变 fresh 决策`);
|
|
809
|
-
}
|
|
810
|
-
this.backingPid = probe.pid;
|
|
811
|
-
this.lastOpts = frozenOpts;
|
|
812
|
-
this.launchPid = this.readManagedLaunchPid(frozenOpts, probe.pid);
|
|
813
|
-
this.cliPid = this.launchPid;
|
|
814
|
-
}
|
|
815
|
-
else if (this.reattaching) {
|
|
816
|
-
// The daemon selected reattach from an earlier probe. Never turn that
|
|
817
|
-
// stale decision into a new CLI after the backing session disappears.
|
|
818
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 在重连前已消失`);
|
|
819
|
-
}
|
|
820
|
-
else {
|
|
821
|
-
this.lastOpts = frozenOpts;
|
|
822
|
-
}
|
|
823
|
-
logger.debug(`[zmx:${this.sessionName}] spawn ${this.reattaching ? 'reattach' : 'fresh'} ` +
|
|
824
|
-
`bin=${bin} args=${JSON.stringify(args)} cwd=${opts.cwd}`);
|
|
825
|
-
if (this.reattaching) {
|
|
826
|
-
this.startTail();
|
|
827
|
-
if (!this.waitForTailClient()) {
|
|
828
|
-
this.stopTailAfterLaunchFailure();
|
|
829
|
-
this.preserveSessionOnDestroy = true;
|
|
830
|
-
throw new Error(`ZMX tail 未能连接会话 ${this.sessionName}`);
|
|
831
|
-
}
|
|
832
|
-
this.requestHistoryCapture(0, true, true);
|
|
833
|
-
return;
|
|
834
|
-
}
|
|
835
|
-
this.createFreshSession(bin, args, opts);
|
|
836
|
-
}
|
|
837
|
-
write(data) {
|
|
838
|
-
if (!this.sendText(data))
|
|
839
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 输入发送失败`);
|
|
840
|
-
}
|
|
841
|
-
sendText(text) {
|
|
842
|
-
return this.sendBytes(Buffer.from(text, 'utf8'), false, 'text');
|
|
843
|
-
}
|
|
844
|
-
sendSpecialKeys(...keys) {
|
|
845
|
-
return this.sendBytes(Buffer.from(keys.map(tmuxKeyToBytes).join(''), 'utf8'), false, 'control');
|
|
846
|
-
}
|
|
847
|
-
pasteText(text) {
|
|
848
|
-
if (!this.sendBytes(Buffer.from(`\x1b[200~${text}\x1b[201~`, 'utf8'), true, 'text')) {
|
|
849
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 粘贴发送失败`);
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* No-op by construction: zmx exposes no leaderless resize primitive. Size is
|
|
854
|
-
* set only by an attached client's TIOCGWINSZ, and `send` deliberately never
|
|
855
|
-
* becomes that client (upstream 8ba312d7). Since `createFreshSession` creates
|
|
856
|
-
* the session with a non-TTY stdio, zmx's `getTerminalSize` fallback applies
|
|
857
|
-
* and every botmux-owned session runs at a fixed 120x24 until a local
|
|
858
|
-
* `zmx attach` takes leadership. The CLI therefore wraps its TUI at 120
|
|
859
|
-
* columns, which is the width reflected in the history screen we relay.
|
|
860
|
-
*/
|
|
861
|
-
resize(_cols, _rows) { }
|
|
862
|
-
onData(cb) {
|
|
863
|
-
this.dataCbs.push(cb);
|
|
864
|
-
if (this.earlyBuffer) {
|
|
865
|
-
const buffered = this.earlyBuffer;
|
|
866
|
-
this.earlyBuffer = '';
|
|
867
|
-
try {
|
|
868
|
-
cb(buffered);
|
|
869
|
-
}
|
|
870
|
-
catch { /* listener failure must not kill transport */ }
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
onScreenResync(cb) {
|
|
874
|
-
this.screenResyncCbs.push(cb);
|
|
875
|
-
if (this.pendingScreenResyncReplay) {
|
|
876
|
-
this.pendingScreenResyncReplay = false;
|
|
877
|
-
try {
|
|
878
|
-
cb(this.snapshotCache);
|
|
879
|
-
}
|
|
880
|
-
catch { /* listener failure must not kill transport */ }
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
onExit(cb) {
|
|
884
|
-
this.exitCbs.push(cb);
|
|
885
|
-
if (this.pendingExit) {
|
|
886
|
-
const exit = this.pendingExit;
|
|
887
|
-
try {
|
|
888
|
-
cb(exit.code, exit.signal);
|
|
889
|
-
}
|
|
890
|
-
catch { /* listener failure must not block teardown */ }
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
getChildPid() {
|
|
894
|
-
if (this.cliPid)
|
|
895
|
-
return this.cliPid;
|
|
896
|
-
const pid = this.backingPid ?? findSessionPid(this.sessionName);
|
|
897
|
-
if (pid)
|
|
898
|
-
this.cliPid = pid;
|
|
899
|
-
return pid;
|
|
900
|
-
}
|
|
901
|
-
/** Best-effort plain-text terminal snapshot supplied by ZMX history. */
|
|
902
|
-
captureCurrentScreen() {
|
|
903
|
-
return this.hasSnapshot ? this.snapshotCache : '';
|
|
904
|
-
}
|
|
905
|
-
settleCurrentScreen() {
|
|
906
|
-
if (this.exited || this.intentionalExit || !this.lastOpts)
|
|
907
|
-
return Promise.resolve(false);
|
|
908
|
-
// If a capture is already in flight, wait for the dirty-latch follow-up,
|
|
909
|
-
// not the older sample that may have started before the final output.
|
|
910
|
-
const targetSerial = this.historyCaptureSerial + 1;
|
|
911
|
-
return new Promise(resolve => {
|
|
912
|
-
const timer = setTimeout(() => {
|
|
913
|
-
const index = this.historySettleWaiters.findIndex(waiter => waiter.resolve === resolve);
|
|
914
|
-
if (index >= 0)
|
|
915
|
-
this.historySettleWaiters.splice(index, 1);
|
|
916
|
-
resolve(false);
|
|
917
|
-
}, ZMX_HISTORY_SETTLE_TIMEOUT_MS);
|
|
918
|
-
timer.unref?.();
|
|
919
|
-
this.historySettleWaiters.push({ targetSerial, resolve, timer });
|
|
920
|
-
this.requestHistoryCapture(0);
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
captureViewport() {
|
|
924
|
-
return this.captureCurrentScreen();
|
|
925
|
-
}
|
|
926
|
-
getPaneSize() {
|
|
927
|
-
return null;
|
|
928
|
-
}
|
|
929
|
-
isPaneAlive() {
|
|
930
|
-
return this.verifyBackingGeneration('liveness').state === 'compatible';
|
|
931
|
-
}
|
|
932
|
-
/** Detach the read-only observer while leaving the ZMX daemon and CLI alive. */
|
|
933
|
-
kill() {
|
|
934
|
-
if (this.state === 'stopped' || this.state === 'exited')
|
|
935
|
-
return;
|
|
936
|
-
this.intentionalExit = true;
|
|
937
|
-
this.state = 'stopped';
|
|
938
|
-
this.tailEpoch += 1;
|
|
939
|
-
this.clearReconnectTimer();
|
|
940
|
-
this.clearStableTailTimer();
|
|
941
|
-
this.stopHistoryPolling();
|
|
942
|
-
const tail = this.tailProcess;
|
|
943
|
-
this.tailProcess = null;
|
|
944
|
-
try {
|
|
945
|
-
tail?.kill('SIGTERM');
|
|
946
|
-
}
|
|
947
|
-
catch { /* already gone */ }
|
|
948
|
-
}
|
|
949
|
-
destroySession() {
|
|
950
|
-
this.kill();
|
|
951
|
-
if (!(this.opts.ownsSession ?? true) || this.preserveSessionOnDestroy)
|
|
952
|
-
return;
|
|
953
|
-
if (!this.opts.sessionId || !this.lastOpts || this.backingPid == null)
|
|
954
|
-
return;
|
|
955
|
-
try {
|
|
956
|
-
ZmxBackend.killManagedSession(this.sessionName, this.opts.sessionId, this.backingPid, zmxControlEnv(this.lastOpts));
|
|
957
|
-
}
|
|
958
|
-
catch (err) {
|
|
959
|
-
this.preserveSessionOnDestroy = true;
|
|
960
|
-
logger.warn(`[zmx:${this.sessionName}] refused unsafe destroy: ` +
|
|
961
|
-
`${err instanceof Error ? err.message : String(err)}`);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
createFreshSession(bin, args, opts) {
|
|
965
|
-
const launch = createZmxLaunchPayload(bin, args, opts);
|
|
966
|
-
let managedIdentityVerified = false;
|
|
967
|
-
let protocolStampAttempted = false;
|
|
968
|
-
try {
|
|
969
|
-
const result = spawnSync('zmx', buildFreshAttachArgs(this.sessionName, launch.bootstrapPath), {
|
|
970
|
-
cwd: opts.cwd,
|
|
971
|
-
// /dev/null makes this a one-shot create client: it never remains as a
|
|
972
|
-
// fake terminal leader and never controls the backing PTY dimensions.
|
|
973
|
-
stdio: ['ignore', 'ignore', 'pipe'],
|
|
974
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
975
|
-
env: zmxControlEnv(opts),
|
|
976
|
-
});
|
|
977
|
-
const ready = this.waitForFreshReady(launch);
|
|
978
|
-
if (!ready) {
|
|
979
|
-
const details = sessionDetails(this.sessionName, zmxControlEnv(opts));
|
|
980
|
-
if (!details?.command?.includes(launch.bootstrapPath)) {
|
|
981
|
-
this.preserveSessionOnDestroy = true;
|
|
982
|
-
}
|
|
983
|
-
const stderr = result.stderr?.toString('utf8').trim();
|
|
984
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 启动握手超时` + (stderr ? `:${stderr}` : ''));
|
|
985
|
-
}
|
|
986
|
-
const created = sessionDetails(this.sessionName, zmxControlEnv(opts));
|
|
987
|
-
if (!created || !created.command?.includes(launch.bootstrapPath)) {
|
|
988
|
-
this.preserveSessionOnDestroy = true;
|
|
989
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 的 fresh 所有权握手失效;已保留同名会话`);
|
|
990
|
-
}
|
|
991
|
-
this.backingPid = created.pid;
|
|
992
|
-
const launchPid = this.waitForFreshLaunchPid(launch);
|
|
993
|
-
if (launchPid == null) {
|
|
994
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 未能确认稳定的 CLI launch 子进程`);
|
|
995
|
-
}
|
|
996
|
-
this.launchPid = launchPid;
|
|
997
|
-
this.cliPid = launchPid;
|
|
998
|
-
// `zmx set` is transport-ambiguous: the daemon may have committed every
|
|
999
|
-
// label even if the one-shot client times out or reports an error. From
|
|
1000
|
-
// this point onward, failure cleanup must attempt the same exact
|
|
1001
|
-
// UUID/PID-guarded kill used after an explicit verification.
|
|
1002
|
-
protocolStampAttempted = true;
|
|
1003
|
-
this.stampProtocolLabels(opts, launchPid, launch.readyNonce);
|
|
1004
|
-
const managed = ZmxBackend.probeManagedSession(this.sessionName, this.opts.sessionId, zmxControlEnv(opts), { allowGated: true });
|
|
1005
|
-
if (managed.state !== 'compatible' || managed.pid !== this.backingPid) {
|
|
1006
|
-
this.preserveSessionOnDestroy = true;
|
|
1007
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 在 release 前未通过完整身份校验`);
|
|
1008
|
-
}
|
|
1009
|
-
managedIdentityVerified = true;
|
|
1010
|
-
this.startTail();
|
|
1011
|
-
if (!this.waitForTailClient()) {
|
|
1012
|
-
throw new Error(`ZMX tail 未能连接会话 ${this.sessionName}`);
|
|
1013
|
-
}
|
|
1014
|
-
// Prove the fresh generation's clean journal can be persisted before the
|
|
1015
|
-
// bootstrap is allowed to exec the real CLI. Some adapters bake the first
|
|
1016
|
-
// prompt into argv; releasing first would let that prompt run before a
|
|
1017
|
-
// journal failure tears the session down, making an automatic retry
|
|
1018
|
-
// capable of repeating side effects. The full managed identity and tail
|
|
1019
|
-
// client are already verified above, so the old composer's debt belongs
|
|
1020
|
-
// to a generation that can no longer receive input.
|
|
1021
|
-
this.resetAmbiguousRecoveryForFreshSession();
|
|
1022
|
-
// The bootstrap performs one read after observing the release file. A
|
|
1023
|
-
// direct write has an open-before-content race, so publish a complete
|
|
1024
|
-
// token atomically within the same private directory.
|
|
1025
|
-
writeFileSync(launch.releaseTempPath, `${launch.releaseToken}\n`, { mode: 0o600, flag: 'wx' });
|
|
1026
|
-
renameSync(launch.releaseTempPath, launch.releasePath);
|
|
1027
|
-
if (!this.waitForFreshReleaseConsumption(launch, launchPid)) {
|
|
1028
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 的 CLI release 未被稳定 launch 子进程确认`);
|
|
1029
|
-
}
|
|
1030
|
-
// The bootstrap can now launch the CLI. Polling is required even when
|
|
1031
|
-
// tail emits no bytes: upstream currently drops pure UTF-8 output while
|
|
1032
|
-
// stripping ANSI, whereas history preserves it.
|
|
1033
|
-
this.requestHistoryCapture(0, true, true);
|
|
1034
|
-
}
|
|
1035
|
-
catch (err) {
|
|
1036
|
-
this.stopTailAfterLaunchFailure();
|
|
1037
|
-
// Before full identity verification, never kill by name: the bounded
|
|
1038
|
-
// private bootstrap exits on its own and a same-name race winner must be
|
|
1039
|
-
// preserved. Once the complete UUID + frozen PTY-root PID have both been
|
|
1040
|
-
// verified, tear down that exact generation even if release was never
|
|
1041
|
-
// published. Otherwise an automatic retry can mistake the still-gated
|
|
1042
|
-
// bootstrap for a healthy reattach target and lose input in its unread
|
|
1043
|
-
// PTY before the release timeout expires.
|
|
1044
|
-
if ((managedIdentityVerified || protocolStampAttempted)
|
|
1045
|
-
&& this.opts.sessionId
|
|
1046
|
-
&& this.backingPid != null) {
|
|
1047
|
-
try {
|
|
1048
|
-
ZmxBackend.killManagedSession(this.sessionName, this.opts.sessionId, this.backingPid, zmxControlEnv(opts));
|
|
1049
|
-
}
|
|
1050
|
-
catch (killErr) {
|
|
1051
|
-
this.preserveSessionOnDestroy = true;
|
|
1052
|
-
logger.warn(`[zmx:${this.sessionName}] failed to tear down verified fresh launch after handshake error: ` +
|
|
1053
|
-
`${killErr instanceof Error ? killErr.message : String(killErr)}`);
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
// Keep cli-pid available until the exact kill has signalled the PTY-root
|
|
1057
|
-
// bootstrap: its HUP trap uses that file to forward termination to the
|
|
1058
|
-
// gated/exec'd child. Cleanup before the kill could orphan that child.
|
|
1059
|
-
launch.cleanup();
|
|
1060
|
-
this.lastOpts = null;
|
|
1061
|
-
this.backingPid = null;
|
|
1062
|
-
this.launchPid = null;
|
|
1063
|
-
this.cliPid = undefined;
|
|
1064
|
-
throw err;
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
waitForFreshReady(launch) {
|
|
1068
|
-
const deadline = Date.now() + FRESH_READY_TIMEOUT_MS;
|
|
1069
|
-
while (Date.now() < deadline) {
|
|
1070
|
-
try {
|
|
1071
|
-
const value = readFileSync(launch.readyPath, 'utf8').trim();
|
|
1072
|
-
if (value === launch.readyNonce)
|
|
1073
|
-
return true;
|
|
1074
|
-
}
|
|
1075
|
-
catch { /* bootstrap has not reached the gate yet */ }
|
|
1076
|
-
sleepSync(25);
|
|
1077
|
-
}
|
|
1078
|
-
return false;
|
|
1079
|
-
}
|
|
1080
|
-
waitForFreshLaunchPid(launch) {
|
|
1081
|
-
const deadline = Date.now() + FRESH_CLI_PID_TIMEOUT_MS;
|
|
1082
|
-
while (Date.now() < deadline) {
|
|
1083
|
-
try {
|
|
1084
|
-
const pid = Number(readFileSync(launch.cliPidPath, 'utf8').trim());
|
|
1085
|
-
if (Number.isSafeInteger(pid)
|
|
1086
|
-
&& pid > 0
|
|
1087
|
-
&& this.backingPid != null
|
|
1088
|
-
&& readProcessParentPid(pid) === this.backingPid) {
|
|
1089
|
-
return pid;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
catch { /* bootstrap has not published a complete pid yet */ }
|
|
1093
|
-
sleepSync(25);
|
|
1094
|
-
}
|
|
1095
|
-
return null;
|
|
1096
|
-
}
|
|
1097
|
-
/**
|
|
1098
|
-
* Do not report a fresh spawn until the gate has consumed the atomically
|
|
1099
|
-
* published release token. The original child must remain attached to the
|
|
1100
|
-
* frozen PTY root throughout the wait; otherwise a dead gate can leave a
|
|
1101
|
-
* fully labelled, apparently compatible session that silently drops the
|
|
1102
|
-
* argv-baked first prompt on an automatic reattach.
|
|
1103
|
-
*/
|
|
1104
|
-
waitForFreshReleaseConsumption(launch, expectedLaunchPid) {
|
|
1105
|
-
const deadline = Date.now() + FRESH_RELEASE_ACK_TIMEOUT_MS;
|
|
1106
|
-
while (Date.now() < deadline) {
|
|
1107
|
-
const releasePending = existsSync(launch.releasePath);
|
|
1108
|
-
try {
|
|
1109
|
-
const observedLaunchPid = Number(readFileSync(launch.cliPidPath, 'utf8').trim());
|
|
1110
|
-
if (observedLaunchPid !== expectedLaunchPid
|
|
1111
|
-
|| this.backingPid == null
|
|
1112
|
-
|| readProcessParentPid(observedLaunchPid) !== this.backingPid) {
|
|
1113
|
-
return false;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
catch {
|
|
1117
|
-
return false;
|
|
1118
|
-
}
|
|
1119
|
-
if (!releasePending) {
|
|
1120
|
-
const commandLine = readProcessCommandLine(expectedLaunchPid);
|
|
1121
|
-
if (!commandLine)
|
|
1122
|
-
return false;
|
|
1123
|
-
if (!commandLine.includes(`${ZMX_GATE_PROCESS_MARKER_PREFIX}${launch.readyNonce}`)) {
|
|
1124
|
-
return true;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
sleepSync(25);
|
|
1128
|
-
}
|
|
1129
|
-
return false;
|
|
1130
|
-
}
|
|
1131
|
-
readManagedLaunchPid(opts, expectedBackingPid) {
|
|
1132
|
-
let raw;
|
|
1133
|
-
try {
|
|
1134
|
-
raw = execFileSync('zmx', ['get', this.sessionName, ZMX_LAUNCH_PID_LABEL], {
|
|
1135
|
-
encoding: 'utf8',
|
|
1136
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1137
|
-
timeout: 3000,
|
|
1138
|
-
env: zmxControlEnv(opts),
|
|
1139
|
-
}).trim();
|
|
1140
|
-
}
|
|
1141
|
-
catch (err) {
|
|
1142
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 缺少 launch PID 标签:` +
|
|
1143
|
-
`${err instanceof Error ? err.message : String(err)}`);
|
|
1144
|
-
}
|
|
1145
|
-
const pid = Number(raw);
|
|
1146
|
-
if (!Number.isSafeInteger(pid)
|
|
1147
|
-
|| pid <= 0
|
|
1148
|
-
|| readProcessParentPid(pid) !== expectedBackingPid) {
|
|
1149
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 的 launch PID 标签无效或已脱离 PTY root`);
|
|
1150
|
-
}
|
|
1151
|
-
const after = ZmxBackend.probeManagedSession(this.sessionName, this.opts.sessionId, zmxControlEnv(opts));
|
|
1152
|
-
if (after.state !== 'compatible' || after.pid !== expectedBackingPid) {
|
|
1153
|
-
throw new Error(`ZMX 会话 ${this.sessionName} 在 launch PID 校验期间发生变化`);
|
|
1154
|
-
}
|
|
1155
|
-
return pid;
|
|
1156
|
-
}
|
|
1157
|
-
/**
|
|
1158
|
-
* Wait until the session reports at least one connected client.
|
|
1159
|
-
*
|
|
1160
|
-
* Deliberately NOT a differential against a pre-tail baseline. zmx's
|
|
1161
|
-
* `clients=` is an aggregate — `main.zig` reports `clients.items.len - 1`,
|
|
1162
|
-
* subtracting only the `zmx list` connection that asked. A user's
|
|
1163
|
-
* `zmx attach` (which this integration actively encourages), and every
|
|
1164
|
-
* transient `zmx list`/`get`/`history`/`send` botmux itself issues, are all
|
|
1165
|
-
* counted identically to our `tail`. A differential therefore produces false
|
|
1166
|
-
* NEGATIVES: a user detaching inside this window keeps the net delta at 0 and
|
|
1167
|
-
* a perfectly healthy session fails to restore with "tail 未能连接".
|
|
1168
|
-
*
|
|
1169
|
-
* `>= 1` inverts the error direction. The residual false POSITIVE — someone
|
|
1170
|
-
* else holds a client while our tail failed — is cheap and self-correcting:
|
|
1171
|
-
* tail is only a wakeup signal (never a byte source), the authoritative
|
|
1172
|
-
* screen comes from `history` polling which does not need tail at all, and
|
|
1173
|
-
* `scheduleTailRecovery` reconnects a dead observer. Blocking a restore is
|
|
1174
|
-
* the far more expensive mistake.
|
|
1175
|
-
*
|
|
1176
|
-
* Note this cannot instead watch our own child: the wait is synchronous
|
|
1177
|
-
* (`sleepSync`), so the child's 'error'/'close' callbacks cannot run until it
|
|
1178
|
-
* returns. Session identity is still verified below.
|
|
1179
|
-
*/
|
|
1180
|
-
waitForTailClient() {
|
|
1181
|
-
const deadline = Date.now() + TAIL_CONNECT_TIMEOUT_MS;
|
|
1182
|
-
while (Date.now() < deadline) {
|
|
1183
|
-
const details = sessionDetails(this.sessionName, this.lastOpts ? zmxControlEnv(this.lastOpts) : zmxEnv());
|
|
1184
|
-
if (details && this.backingPid != null && details.pid !== this.backingPid) {
|
|
1185
|
-
this.preserveSessionOnDestroy = true;
|
|
1186
|
-
return false;
|
|
1187
|
-
}
|
|
1188
|
-
if (details?.clients != null && details.clients >= 1)
|
|
1189
|
-
return true;
|
|
1190
|
-
if (!details && ZmxBackend.probeSession(this.sessionName, this.lastOpts ? zmxControlEnv(this.lastOpts) : zmxEnv()) === 'missing')
|
|
1191
|
-
return false;
|
|
1192
|
-
sleepSync(25);
|
|
1193
|
-
}
|
|
1194
|
-
return false;
|
|
1195
|
-
}
|
|
1196
|
-
stampProtocolLabels(opts, launchPid, gateNonce) {
|
|
1197
|
-
const labels = [`${ZMX_TRANSPORT_LABEL}=${ZMX_TRANSPORT}`];
|
|
1198
|
-
if (this.opts.sessionId)
|
|
1199
|
-
labels.push(`${ZMX_SESSION_LABEL}=${this.opts.sessionId}`);
|
|
1200
|
-
labels.push(`${ZMX_LAUNCH_PID_LABEL}=${launchPid}`);
|
|
1201
|
-
labels.push(`${ZMX_GATE_NONCE_LABEL}=${gateNonce}`);
|
|
1202
|
-
const stdout = execFileSync('zmx', ['set', this.sessionName, ...labels], {
|
|
1203
|
-
encoding: 'utf8',
|
|
1204
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1205
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
1206
|
-
env: zmxControlEnv(opts),
|
|
1207
|
-
});
|
|
1208
|
-
if (stdout.trim()) {
|
|
1209
|
-
throw new Error(`ZMX 协议标签写入返回异常:${stdout.trim()}`);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
verifyBackingIdentity(context) {
|
|
1213
|
-
if (!this.lastOpts || !this.opts.sessionId || this.backingPid == null) {
|
|
1214
|
-
return { state: 'unknown', reason: `ZMX ${context} 缺少已冻结的会话身份` };
|
|
1215
|
-
}
|
|
1216
|
-
const wasAlive = this.isBackingProcessAlive();
|
|
1217
|
-
let transport;
|
|
1218
|
-
let sessionId;
|
|
1219
|
-
try {
|
|
1220
|
-
const env = zmxControlEnv(this.lastOpts);
|
|
1221
|
-
transport = execFileSync('zmx', ['get', this.sessionName, ZMX_TRANSPORT_LABEL], {
|
|
1222
|
-
encoding: 'utf8',
|
|
1223
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1224
|
-
timeout: 3000,
|
|
1225
|
-
env,
|
|
1226
|
-
}).trim();
|
|
1227
|
-
sessionId = execFileSync('zmx', ['get', this.sessionName, ZMX_SESSION_LABEL], {
|
|
1228
|
-
encoding: 'utf8',
|
|
1229
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1230
|
-
timeout: 3000,
|
|
1231
|
-
env,
|
|
1232
|
-
}).trim();
|
|
1233
|
-
}
|
|
1234
|
-
catch (err) {
|
|
1235
|
-
if (!wasAlive || !this.isBackingProcessAlive()) {
|
|
1236
|
-
this.fireExit(0, null);
|
|
1237
|
-
return { state: 'missing' };
|
|
1238
|
-
}
|
|
1239
|
-
return {
|
|
1240
|
-
state: 'unknown',
|
|
1241
|
-
reason: `无法读取 ZMX 会话 ${this.sessionName} 的所有权标签:` +
|
|
1242
|
-
`${err instanceof Error ? err.message : String(err)}`,
|
|
1243
|
-
};
|
|
1244
|
-
}
|
|
1245
|
-
if (transport !== ZMX_TRANSPORT || sessionId !== this.opts.sessionId) {
|
|
1246
|
-
return this.rejectBackingReplacement(context, '完整 session / transport 标签已变化');
|
|
1247
|
-
}
|
|
1248
|
-
if (!wasAlive || !this.isBackingProcessAlive()) {
|
|
1249
|
-
this.fireExit(0, null);
|
|
1250
|
-
return { state: 'missing' };
|
|
1251
|
-
}
|
|
1252
|
-
return { state: 'compatible', clients: null };
|
|
1253
|
-
}
|
|
1254
|
-
/** Full list sampling is reserved for lifecycle edges that need client count.
|
|
1255
|
-
* Hot send/history paths use target-scoped labels + the frozen PTY-root PID,
|
|
1256
|
-
* so one unrelated unhealthy ZMX socket cannot freeze every session. */
|
|
1257
|
-
verifyBackingIdentityWithClients(context) {
|
|
1258
|
-
if (!this.lastOpts || !this.opts.sessionId || this.backingPid == null) {
|
|
1259
|
-
return { state: 'unknown', reason: `ZMX ${context} 缺少已冻结的会话身份` };
|
|
1260
|
-
}
|
|
1261
|
-
const probe = ZmxBackend.probeManagedSession(this.sessionName, this.opts.sessionId, zmxControlEnv(this.lastOpts));
|
|
1262
|
-
if (probe.state === 'missing') {
|
|
1263
|
-
this.fireExit(0, null);
|
|
1264
|
-
return probe;
|
|
1265
|
-
}
|
|
1266
|
-
if (probe.state === 'unknown')
|
|
1267
|
-
return probe;
|
|
1268
|
-
if (probe.state === 'incompatible' || probe.pid !== this.backingPid) {
|
|
1269
|
-
const reason = probe.state === 'incompatible'
|
|
1270
|
-
? '完整 session / transport 标签已变化'
|
|
1271
|
-
: `PTY root PID 已从 ${this.backingPid} 变化为 ${probe.pid}`;
|
|
1272
|
-
return this.rejectBackingReplacement(context, reason);
|
|
1273
|
-
}
|
|
1274
|
-
return { state: 'compatible', clients: probe.clients };
|
|
1275
|
-
}
|
|
1276
|
-
/** Fast generation check for high-frequency read-only snapshots. */
|
|
1277
|
-
verifyBackingGeneration(context) {
|
|
1278
|
-
return this.verifyBackingIdentity(context);
|
|
1279
|
-
}
|
|
1280
|
-
isBackingProcessAlive() {
|
|
1281
|
-
if (this.backingPid == null)
|
|
1282
|
-
return false;
|
|
1283
|
-
try {
|
|
1284
|
-
process.kill(this.backingPid, 0);
|
|
1285
|
-
return true;
|
|
1286
|
-
}
|
|
1287
|
-
catch (err) {
|
|
1288
|
-
return !!err && typeof err === 'object' && 'code' in err && err.code === 'EPERM';
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
rejectBackingReplacement(context, reason) {
|
|
1292
|
-
this.preserveSessionOnDestroy = true;
|
|
1293
|
-
logger.error(`[zmx:${this.sessionName}] ${context} refused: ${reason}`);
|
|
1294
|
-
this.fireExit(75, null);
|
|
1295
|
-
return { state: 'replaced', reason };
|
|
1296
|
-
}
|
|
1297
|
-
labelsMatchBacking(raw) {
|
|
1298
|
-
const labels = new Map();
|
|
1299
|
-
for (const pair of raw.trim().split(/\s+/)) {
|
|
1300
|
-
if (!pair)
|
|
1301
|
-
continue;
|
|
1302
|
-
const equals = pair.indexOf('=');
|
|
1303
|
-
if (equals <= 0)
|
|
1304
|
-
continue;
|
|
1305
|
-
labels.set(pair.slice(0, equals), pair.slice(equals + 1));
|
|
1306
|
-
}
|
|
1307
|
-
return labels.get(ZMX_TRANSPORT_LABEL) === ZMX_TRANSPORT
|
|
1308
|
-
&& labels.get(ZMX_SESSION_LABEL) === this.opts.sessionId;
|
|
1309
|
-
}
|
|
1310
|
-
readLabelsAsync(generation) {
|
|
1311
|
-
return new Promise((resolve, reject) => {
|
|
1312
|
-
if (!this.lastOpts || generation !== this.historyGeneration) {
|
|
1313
|
-
reject(new Error('history capture generation changed'));
|
|
1314
|
-
return;
|
|
1315
|
-
}
|
|
1316
|
-
const child = execFile('zmx', ['get', this.sessionName], {
|
|
1317
|
-
encoding: 'utf8',
|
|
1318
|
-
timeout: ZMX_HISTORY_TIMEOUT_MS,
|
|
1319
|
-
maxBuffer: 64 * 1024,
|
|
1320
|
-
env: zmxControlEnv(this.lastOpts),
|
|
1321
|
-
}, (err, stdout, stderr) => {
|
|
1322
|
-
if (this.historyProcess === child)
|
|
1323
|
-
this.historyProcess = null;
|
|
1324
|
-
if (generation !== this.historyGeneration) {
|
|
1325
|
-
reject(new Error('history capture generation changed'));
|
|
1326
|
-
return;
|
|
1327
|
-
}
|
|
1328
|
-
const errorText = stderr?.toString().trim() ?? '';
|
|
1329
|
-
if (err || errorText) {
|
|
1330
|
-
reject(err ?? new Error(errorText));
|
|
1331
|
-
return;
|
|
1332
|
-
}
|
|
1333
|
-
resolve(stdout.toString());
|
|
1334
|
-
});
|
|
1335
|
-
this.historyProcess = child;
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
captureHistoryFileAsync(generation) {
|
|
1339
|
-
return new Promise((resolve, reject) => {
|
|
1340
|
-
if (!this.lastOpts || generation !== this.historyGeneration) {
|
|
1341
|
-
reject(new Error('history capture generation changed'));
|
|
1342
|
-
return;
|
|
1343
|
-
}
|
|
1344
|
-
let historyDir;
|
|
1345
|
-
let historyPath;
|
|
1346
|
-
let historyFd;
|
|
1347
|
-
let child = null;
|
|
1348
|
-
let timeout = null;
|
|
1349
|
-
let settled = false;
|
|
1350
|
-
let stderrTail = '';
|
|
1351
|
-
const cleanup = () => {
|
|
1352
|
-
if (timeout)
|
|
1353
|
-
clearTimeout(timeout);
|
|
1354
|
-
timeout = null;
|
|
1355
|
-
if (this.historyProcess === child)
|
|
1356
|
-
this.historyProcess = null;
|
|
1357
|
-
if (historyFd !== undefined) {
|
|
1358
|
-
try {
|
|
1359
|
-
closeSync(historyFd);
|
|
1360
|
-
}
|
|
1361
|
-
catch { /* best effort */ }
|
|
1362
|
-
}
|
|
1363
|
-
if (historyPath) {
|
|
1364
|
-
try {
|
|
1365
|
-
rmSync(historyPath, { force: true });
|
|
1366
|
-
}
|
|
1367
|
-
catch { /* best effort */ }
|
|
1368
|
-
}
|
|
1369
|
-
if (historyDir) {
|
|
1370
|
-
try {
|
|
1371
|
-
rmdirSync(historyDir);
|
|
1372
|
-
}
|
|
1373
|
-
catch { /* best effort */ }
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
const finish = (err) => {
|
|
1377
|
-
if (settled)
|
|
1378
|
-
return;
|
|
1379
|
-
settled = true;
|
|
1380
|
-
try {
|
|
1381
|
-
if (err)
|
|
1382
|
-
throw err;
|
|
1383
|
-
if (generation !== this.historyGeneration || historyFd === undefined) {
|
|
1384
|
-
throw new Error('history capture generation changed');
|
|
1385
|
-
}
|
|
1386
|
-
const size = fstatSync(historyFd).size;
|
|
1387
|
-
const length = Math.min(size, ZMX_HISTORY_MAX_BYTES);
|
|
1388
|
-
const data = Buffer.allocUnsafe(length);
|
|
1389
|
-
let bytesRead = 0;
|
|
1390
|
-
while (bytesRead < length) {
|
|
1391
|
-
const count = readSync(historyFd, data, bytesRead, length - bytesRead, size - length + bytesRead);
|
|
1392
|
-
if (count === 0)
|
|
1393
|
-
break;
|
|
1394
|
-
bytesRead += count;
|
|
1395
|
-
}
|
|
1396
|
-
let bounded = data.subarray(0, bytesRead);
|
|
1397
|
-
if (size > length) {
|
|
1398
|
-
const firstLf = bounded.indexOf(0x0a);
|
|
1399
|
-
if (firstLf >= 0)
|
|
1400
|
-
bounded = bounded.subarray(firstLf + 1);
|
|
1401
|
-
}
|
|
1402
|
-
resolve(normaliseZmxHistory(bounded.toString('utf8')));
|
|
1403
|
-
}
|
|
1404
|
-
catch (error) {
|
|
1405
|
-
reject(error);
|
|
1406
|
-
}
|
|
1407
|
-
finally {
|
|
1408
|
-
cleanup();
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
|
-
try {
|
|
1412
|
-
historyDir = mkdtempSync(join(tmpdir(), 'botmux-zmx-history-'));
|
|
1413
|
-
chmodSync(historyDir, 0o700);
|
|
1414
|
-
historyPath = join(historyDir, 'history.txt');
|
|
1415
|
-
historyFd = openSync(historyPath, 'wx+', 0o600);
|
|
1416
|
-
// Keep transcript bytes reachable only through the open fd. A private
|
|
1417
|
-
// regular file also avoids `zmx history`'s single-write pipe truncation.
|
|
1418
|
-
rmSync(historyPath);
|
|
1419
|
-
child = spawn('zmx', ['history', this.sessionName], {
|
|
1420
|
-
stdio: ['ignore', historyFd, 'pipe'],
|
|
1421
|
-
env: zmxControlEnv(this.lastOpts),
|
|
1422
|
-
});
|
|
1423
|
-
this.historyProcess = child;
|
|
1424
|
-
child.stderr?.on('data', (chunk) => {
|
|
1425
|
-
stderrTail = (stderrTail + chunk.toString()).slice(-4096);
|
|
1426
|
-
});
|
|
1427
|
-
child.once('error', error => finish(error));
|
|
1428
|
-
child.once('close', (code, signal) => {
|
|
1429
|
-
const stderr = stderrTail.trim();
|
|
1430
|
-
if (code !== 0 || signal || stderr) {
|
|
1431
|
-
finish(new Error(stderr || `zmx history exited status=${code} signal=${signal}`));
|
|
1432
|
-
return;
|
|
1433
|
-
}
|
|
1434
|
-
finish();
|
|
1435
|
-
});
|
|
1436
|
-
timeout = setTimeout(() => {
|
|
1437
|
-
try {
|
|
1438
|
-
child?.kill('SIGKILL');
|
|
1439
|
-
}
|
|
1440
|
-
catch { /* already gone */ }
|
|
1441
|
-
finish(new Error(`zmx history timed out after ${ZMX_HISTORY_TIMEOUT_MS}ms`));
|
|
1442
|
-
}, ZMX_HISTORY_TIMEOUT_MS);
|
|
1443
|
-
timeout.unref?.();
|
|
1444
|
-
}
|
|
1445
|
-
catch (err) {
|
|
1446
|
-
finish(err instanceof Error ? err : new Error(String(err)));
|
|
1447
|
-
}
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
async readHistorySnapshotAsync(generation) {
|
|
1451
|
-
if (this.exited || this.intentionalExit || !this.lastOpts)
|
|
1452
|
-
return null;
|
|
1453
|
-
try {
|
|
1454
|
-
if (!this.isBackingProcessAlive()) {
|
|
1455
|
-
this.fireExit(0, null);
|
|
1456
|
-
return null;
|
|
1457
|
-
}
|
|
1458
|
-
const before = await this.readLabelsAsync(generation);
|
|
1459
|
-
if (!this.labelsMatchBacking(before)) {
|
|
1460
|
-
this.rejectBackingReplacement('history', '完整 session / transport 标签已变化');
|
|
1461
|
-
return null;
|
|
1462
|
-
}
|
|
1463
|
-
const snapshot = await this.captureHistoryFileAsync(generation);
|
|
1464
|
-
const after = await this.readLabelsAsync(generation);
|
|
1465
|
-
if (!this.labelsMatchBacking(after) || !this.isBackingProcessAlive()) {
|
|
1466
|
-
if (!this.isBackingProcessAlive())
|
|
1467
|
-
this.fireExit(0, null);
|
|
1468
|
-
else
|
|
1469
|
-
this.rejectBackingReplacement('history completion', '完整 session / transport 标签已变化');
|
|
1470
|
-
return null;
|
|
1471
|
-
}
|
|
1472
|
-
return snapshot;
|
|
1473
|
-
}
|
|
1474
|
-
catch (err) {
|
|
1475
|
-
if (generation !== this.historyGeneration || this.intentionalExit || this.exited)
|
|
1476
|
-
return null;
|
|
1477
|
-
logger.warn(`[zmx:${this.sessionName}] history capture failed: ` +
|
|
1478
|
-
`${err instanceof Error ? err.message : String(err)}`);
|
|
1479
|
-
if (!this.isBackingProcessAlive())
|
|
1480
|
-
this.fireExit(0, null);
|
|
1481
|
-
return null;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
requestHistoryCapture(delayMs, activity = false, forceResync = false) {
|
|
1485
|
-
if (this.exited || this.intentionalExit || !this.lastOpts)
|
|
1486
|
-
return;
|
|
1487
|
-
if (activity) {
|
|
1488
|
-
this.tailActivitySinceCapture = true;
|
|
1489
|
-
this.stableHistoryPolls = 0;
|
|
1490
|
-
}
|
|
1491
|
-
if (forceResync)
|
|
1492
|
-
this.forceResyncOnNextSnapshot = true;
|
|
1493
|
-
if (this.historyInFlight) {
|
|
1494
|
-
this.historyAgain = true;
|
|
1495
|
-
this.historyAgainActivity ||= activity;
|
|
1496
|
-
this.historyAgainForceResync ||= forceResync;
|
|
1497
|
-
return;
|
|
1498
|
-
}
|
|
1499
|
-
const dueAt = Date.now() + Math.max(0, delayMs);
|
|
1500
|
-
if (this.historyTimer && this.historyTimerDueAt <= dueAt)
|
|
1501
|
-
return;
|
|
1502
|
-
if (this.historyTimer)
|
|
1503
|
-
clearTimeout(this.historyTimer);
|
|
1504
|
-
this.historyTimerDueAt = dueAt;
|
|
1505
|
-
this.historyTimer = setTimeout(() => {
|
|
1506
|
-
this.historyTimer = null;
|
|
1507
|
-
this.historyTimerDueAt = 0;
|
|
1508
|
-
void this.runHistoryCapture();
|
|
1509
|
-
}, Math.max(0, delayMs));
|
|
1510
|
-
this.historyTimer.unref?.();
|
|
1511
|
-
}
|
|
1512
|
-
async runHistoryCapture() {
|
|
1513
|
-
if (this.historyInFlight || this.exited || this.intentionalExit || !this.lastOpts)
|
|
1514
|
-
return;
|
|
1515
|
-
this.historyInFlight = true;
|
|
1516
|
-
const captureSerial = ++this.historyCaptureSerial;
|
|
1517
|
-
const generation = this.historyGeneration;
|
|
1518
|
-
const activity = this.tailActivitySinceCapture;
|
|
1519
|
-
const forceResync = this.forceResyncOnNextSnapshot;
|
|
1520
|
-
this.tailActivitySinceCapture = false;
|
|
1521
|
-
this.forceResyncOnNextSnapshot = false;
|
|
1522
|
-
let snapshot = null;
|
|
1523
|
-
let captureUsable = false;
|
|
1524
|
-
try {
|
|
1525
|
-
snapshot = await this.readHistorySnapshotAsync(generation);
|
|
1526
|
-
if (snapshot !== null && generation === this.historyGeneration) {
|
|
1527
|
-
captureUsable = this.publishHistorySnapshot(snapshot, activity, forceResync);
|
|
1528
|
-
}
|
|
1529
|
-
else {
|
|
1530
|
-
this.stableHistoryPolls = 0;
|
|
1531
|
-
}
|
|
1532
|
-
if (!captureUsable) {
|
|
1533
|
-
// A failed/ambiguous capture must not consume the wakeup that caused
|
|
1534
|
-
// it. Preserve both obligations for the next usable history sample.
|
|
1535
|
-
this.tailActivitySinceCapture ||= activity;
|
|
1536
|
-
this.forceResyncOnNextSnapshot ||= forceResync;
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
finally {
|
|
1540
|
-
if (generation !== this.historyGeneration)
|
|
1541
|
-
return;
|
|
1542
|
-
const again = this.historyAgain;
|
|
1543
|
-
const againActivity = this.historyAgainActivity;
|
|
1544
|
-
const againForceResync = this.historyAgainForceResync;
|
|
1545
|
-
this.historyAgain = false;
|
|
1546
|
-
this.historyAgainActivity = false;
|
|
1547
|
-
this.historyAgainForceResync = false;
|
|
1548
|
-
// A capture dirtied while in flight predates output that arrived after
|
|
1549
|
-
// it started. Settle waiters must remain pending for the latched follow-
|
|
1550
|
-
// up rather than finalizing from this stale-but-otherwise-usable sample.
|
|
1551
|
-
if (!again)
|
|
1552
|
-
this.resolveHistorySettleWaiters(captureSerial, captureUsable);
|
|
1553
|
-
this.historyInFlight = false;
|
|
1554
|
-
if (this.exited || this.intentionalExit || !this.lastOpts)
|
|
1555
|
-
return;
|
|
1556
|
-
if (again) {
|
|
1557
|
-
// Preserve the dirty-latch obligation, but give the single-threaded
|
|
1558
|
-
// daemon a short breathing window before serializing history again.
|
|
1559
|
-
// Continuous tail chunks otherwise turn a long transcript into a
|
|
1560
|
-
// back-to-back history loop that can starve concurrent `send` probes.
|
|
1561
|
-
this.requestHistoryCapture(HISTORY_TAIL_DEBOUNCE_MS, againActivity, againForceResync);
|
|
1562
|
-
return;
|
|
1563
|
-
}
|
|
1564
|
-
const nextDelay = this.stableHistoryPolls >= HISTORY_STABLE_POLLS_BEFORE_COLD
|
|
1565
|
-
? HISTORY_COLD_POLL_MS + this.historyColdJitterMs
|
|
1566
|
-
: HISTORY_HOT_POLL_MS;
|
|
1567
|
-
this.requestHistoryCapture(nextDelay);
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
publishHistorySnapshot(snapshot, activity, forceResync) {
|
|
1571
|
-
// Current ZMX history failures can exit 0 with empty stdout. Never let an
|
|
1572
|
-
// ambiguous empty capture erase a previously non-empty authoritative view.
|
|
1573
|
-
if (snapshot.length === 0 && this.hasSnapshot && this.snapshotCache.length > 0) {
|
|
1574
|
-
this.stableHistoryPolls = 0;
|
|
1575
|
-
return false;
|
|
1576
|
-
}
|
|
1577
|
-
if (!this.hasSnapshot) {
|
|
1578
|
-
this.hasSnapshot = true;
|
|
1579
|
-
this.snapshotCache = snapshot;
|
|
1580
|
-
this.stableHistoryPolls = snapshot.length === 0 ? 1 : 0;
|
|
1581
|
-
if (forceResync)
|
|
1582
|
-
this.emitScreenResync(snapshot);
|
|
1583
|
-
else if (snapshot)
|
|
1584
|
-
this.emitData(snapshot);
|
|
1585
|
-
return true;
|
|
1586
|
-
}
|
|
1587
|
-
const previous = this.snapshotCache;
|
|
1588
|
-
if (snapshot === previous) {
|
|
1589
|
-
this.stableHistoryPolls += 1;
|
|
1590
|
-
// Tail can signal a cursor-only redraw that leaves plain history equal.
|
|
1591
|
-
// Rebase derived state so idle detection observes the activity without
|
|
1592
|
-
// trusting any (possibly UTF-8-corrupted) tail payload bytes.
|
|
1593
|
-
if (activity)
|
|
1594
|
-
this.emitScreenResync(snapshot);
|
|
1595
|
-
return true;
|
|
1596
|
-
}
|
|
1597
|
-
this.snapshotCache = snapshot;
|
|
1598
|
-
this.stableHistoryPolls = 0;
|
|
1599
|
-
if (!forceResync && snapshot.startsWith(previous)) {
|
|
1600
|
-
const delta = snapshot.slice(previous.length);
|
|
1601
|
-
if (delta)
|
|
1602
|
-
this.emitData(delta);
|
|
1603
|
-
return true;
|
|
1604
|
-
}
|
|
1605
|
-
this.emitScreenResync(snapshot);
|
|
1606
|
-
return true;
|
|
1607
|
-
}
|
|
1608
|
-
stopHistoryPolling() {
|
|
1609
|
-
this.historyGeneration += 1;
|
|
1610
|
-
if (this.historyTimer)
|
|
1611
|
-
clearTimeout(this.historyTimer);
|
|
1612
|
-
this.historyTimer = null;
|
|
1613
|
-
this.historyTimerDueAt = 0;
|
|
1614
|
-
const child = this.historyProcess;
|
|
1615
|
-
this.historyProcess = null;
|
|
1616
|
-
try {
|
|
1617
|
-
child?.kill('SIGKILL');
|
|
1618
|
-
}
|
|
1619
|
-
catch { /* already gone */ }
|
|
1620
|
-
this.historyInFlight = false;
|
|
1621
|
-
this.historyAgain = false;
|
|
1622
|
-
this.historyAgainActivity = false;
|
|
1623
|
-
this.historyAgainForceResync = false;
|
|
1624
|
-
this.tailActivitySinceCapture = false;
|
|
1625
|
-
this.forceResyncOnNextSnapshot = false;
|
|
1626
|
-
for (const waiter of this.historySettleWaiters.splice(0)) {
|
|
1627
|
-
clearTimeout(waiter.timer);
|
|
1628
|
-
waiter.resolve(false);
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
resolveHistorySettleWaiters(captureSerial, success) {
|
|
1632
|
-
for (let i = this.historySettleWaiters.length - 1; i >= 0; i -= 1) {
|
|
1633
|
-
const waiter = this.historySettleWaiters[i];
|
|
1634
|
-
if (waiter.targetSerial > captureSerial)
|
|
1635
|
-
continue;
|
|
1636
|
-
this.historySettleWaiters.splice(i, 1);
|
|
1637
|
-
clearTimeout(waiter.timer);
|
|
1638
|
-
waiter.resolve(success);
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
emitScreenResync(snapshot) {
|
|
1642
|
-
if (this.screenResyncCbs.length === 0) {
|
|
1643
|
-
this.pendingScreenResyncReplay = true;
|
|
1644
|
-
return;
|
|
1645
|
-
}
|
|
1646
|
-
for (const cb of this.screenResyncCbs) {
|
|
1647
|
-
try {
|
|
1648
|
-
cb(snapshot);
|
|
1649
|
-
}
|
|
1650
|
-
catch { /* listener failure must not kill recovery */ }
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
sendBytes(bytes, bracketedPaste = false, intent = 'text') {
|
|
1654
|
-
if (bytes.length === 0)
|
|
1655
|
-
return true;
|
|
1656
|
-
if (this.exited || this.intentionalExit || !this.lastOpts)
|
|
1657
|
-
return false;
|
|
1658
|
-
if (bytes.length > ZMX_SEND_MAX_BYTES) {
|
|
1659
|
-
throw new Error(`ZMX 单次输入 ${bytes.length} 字节超过 ${ZMX_SEND_MAX_BYTES} 字节安全上限;` +
|
|
1660
|
-
'当前 send 协议没有 ACK/backpressure,已在写入任何前缀前拒绝');
|
|
1661
|
-
}
|
|
1662
|
-
const isRecoveryCtrlC = intent === 'control'
|
|
1663
|
-
&& bytes.length === 1
|
|
1664
|
-
&& bytes[0] === 0x03;
|
|
1665
|
-
if (this.hasAmbiguousRecoveryDebt()) {
|
|
1666
|
-
if (intent === 'text' || !isRecoveryCtrlC || this.ambiguousTextRecoveryUnconfirmed) {
|
|
1667
|
-
logger.error(`[zmx:${this.sessionName}] input blocked: ambiguous composer recovery is ` +
|
|
1668
|
-
`${this.ambiguousTextRecoveryUnconfirmed ? 'unconfirmed' : 'pending'}`);
|
|
1669
|
-
return false;
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
const ownsTextGeneration = intent === 'text'
|
|
1673
|
-
&& this.activeSubmissionGeneration == null;
|
|
1674
|
-
const textGeneration = intent === 'text'
|
|
1675
|
-
? (this.activeSubmissionGeneration ?? this.armAmbiguousTextGeneration())
|
|
1676
|
-
: 0;
|
|
1677
|
-
if (textGeneration == null)
|
|
1678
|
-
return false;
|
|
1679
|
-
// Arm first, then perform the one complete backing-identity probe nearest
|
|
1680
|
-
// the PTY write. A crash before the probe only leaves a conservative
|
|
1681
|
-
// pending marker; no replacement session can receive the bytes.
|
|
1682
|
-
const identity = this.verifyBackingIdentity('send');
|
|
1683
|
-
if (identity.state !== 'compatible') {
|
|
1684
|
-
if (identity.state === 'unknown') {
|
|
1685
|
-
logger.warn(`[zmx:${this.sessionName}] send blocked: ${identity.reason}`);
|
|
1686
|
-
}
|
|
1687
|
-
if (ownsTextGeneration && textGeneration > 0) {
|
|
1688
|
-
this.markAmbiguousGenerationCovered(textGeneration);
|
|
1689
|
-
}
|
|
1690
|
-
return false;
|
|
1691
|
-
}
|
|
1692
|
-
const explicitPasteOpenAtBoundary = bracketedPaste
|
|
1693
|
-
? null
|
|
1694
|
-
: bracketedPasteOpenStatesAtChunkBoundaries(bytes);
|
|
1695
|
-
for (let offset = 0; offset < bytes.length; offset += ZMX_SEND_CHUNK_BYTES) {
|
|
1696
|
-
const chunk = bytes.subarray(offset, Math.min(offset + ZMX_SEND_CHUNK_BYTES, bytes.length));
|
|
1697
|
-
// ZMX strips exactly one trailing LF from piped stdin. Appending our own
|
|
1698
|
-
// framing LF therefore preserves the caller's original bytes exactly,
|
|
1699
|
-
// including an original trailing LF, while keeping secrets out of argv.
|
|
1700
|
-
let input = Buffer.concat([chunk, Buffer.from('\n')]);
|
|
1701
|
-
// A failed send has no PTY-level ACK: the current chunk may or may not
|
|
1702
|
-
// have reached the CLI. Track both possible states. Looking only at the
|
|
1703
|
-
// confirmed prefix misses an opening marker in a first ambiguous frame;
|
|
1704
|
-
// looking only through the current frame misses an opening marker whose
|
|
1705
|
-
// matching close sits in that ambiguous frame.
|
|
1706
|
-
const chunkIndex = offset / ZMX_SEND_CHUNK_BYTES;
|
|
1707
|
-
const mayHaveOpenPasteAfterAmbiguousSend = bracketedPaste
|
|
1708
|
-
|| explicitPasteOpenAtBoundary?.[chunkIndex] === true
|
|
1709
|
-
|| explicitPasteOpenAtBoundary?.[chunkIndex + 1] === true;
|
|
1710
|
-
let injectedCancelAttempt = false;
|
|
1711
|
-
let recoveryGeneration = 0;
|
|
1712
|
-
try {
|
|
1713
|
-
if (intent === 'text' && this.activeSubmissionGeneration != null) {
|
|
1714
|
-
this.activeSubmissionTextTouched = true;
|
|
1715
|
-
}
|
|
1716
|
-
if (intent === 'control' && chunk.includes(0x03)) {
|
|
1717
|
-
this.waitForInjectedCancelCooldown();
|
|
1718
|
-
const postCooldownIdentity = this.verifyBackingIdentity('control-key cooldown');
|
|
1719
|
-
if (postCooldownIdentity.state !== 'compatible') {
|
|
1720
|
-
logger.warn(`[zmx:${this.sessionName}] skipped Ctrl+C after cooldown: ` +
|
|
1721
|
-
`backing identity is ${postCooldownIdentity.state}`);
|
|
1722
|
-
return false;
|
|
1723
|
-
}
|
|
1724
|
-
if (this.hasAmbiguousRecoveryDebt()) {
|
|
1725
|
-
if (this.attemptedAmbiguousTextRecoverySequence
|
|
1726
|
-
>= this.ambiguousTextFailureSequence) {
|
|
1727
|
-
logger.error(`[zmx:${this.sessionName}] refused duplicate ambiguous composer recovery`);
|
|
1728
|
-
return false;
|
|
1729
|
-
}
|
|
1730
|
-
const startedRecovery = this.markAmbiguousRecoveryAttempted();
|
|
1731
|
-
if (startedRecovery == null)
|
|
1732
|
-
return false;
|
|
1733
|
-
recoveryGeneration = startedRecovery;
|
|
1734
|
-
if (this.ambiguousTextRecoveryNeedsPasteClose) {
|
|
1735
|
-
input = Buffer.concat([
|
|
1736
|
-
Buffer.from(BRACKETED_PASTE_END),
|
|
1737
|
-
chunk,
|
|
1738
|
-
Buffer.from('\n'),
|
|
1739
|
-
]);
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
injectedCancelAttempt = true;
|
|
1743
|
-
}
|
|
1744
|
-
let stdout;
|
|
1745
|
-
try {
|
|
1746
|
-
stdout = execFileSync('zmx', ['send', this.sessionName], {
|
|
1747
|
-
input,
|
|
1748
|
-
encoding: 'utf8',
|
|
1749
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
1750
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
1751
|
-
maxBuffer: 1024 * 1024,
|
|
1752
|
-
env: zmxControlEnv(this.lastOpts),
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
finally {
|
|
1756
|
-
if (injectedCancelAttempt)
|
|
1757
|
-
this.noteInjectedCancelAttemptSettled();
|
|
1758
|
-
}
|
|
1759
|
-
// Several ZMX control-plane failures are reported on stdout with exit
|
|
1760
|
-
// status 0. Empty stdout is part of the transport contract.
|
|
1761
|
-
if (stdout.trim()) {
|
|
1762
|
-
if (recoveryGeneration > 0) {
|
|
1763
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1764
|
-
}
|
|
1765
|
-
else if (intent === 'control'
|
|
1766
|
-
&& this.activeSubmissionGeneration != null) {
|
|
1767
|
-
this.markActiveSubmissionUnconfirmed();
|
|
1768
|
-
}
|
|
1769
|
-
logger.warn(`[zmx:${this.sessionName}] send rejected: ${stdout.trim()}`);
|
|
1770
|
-
if (intent === 'text') {
|
|
1771
|
-
this.markArmedTextFailure(mayHaveOpenPasteAfterAmbiguousSend);
|
|
1772
|
-
}
|
|
1773
|
-
const probe = this.verifyBackingIdentity('send rejection');
|
|
1774
|
-
const closeOpenPaste = mayHaveOpenPasteAfterAmbiguousSend;
|
|
1775
|
-
if (closeOpenPaste || offset > 0) {
|
|
1776
|
-
if (probe.state === 'compatible') {
|
|
1777
|
-
this.abortPartialSend(closeOpenPaste);
|
|
1778
|
-
}
|
|
1779
|
-
else {
|
|
1780
|
-
logger.warn(`[zmx:${this.sessionName}] skipped partial-send recovery: ` +
|
|
1781
|
-
`backing identity is ${probe.state}`);
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
return false;
|
|
1785
|
-
}
|
|
1786
|
-
if (recoveryGeneration > 0) {
|
|
1787
|
-
// ZMX v0.7 reports only control-client acceptance, not a PTY ACK; it
|
|
1788
|
-
// may still drop a byte when its pty_write_buf is full. Keep the
|
|
1789
|
-
// durable state unconfirmed even after empty stdout so later prompts
|
|
1790
|
-
// cannot append to a composer that Ctrl+C may not have cleared.
|
|
1791
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1792
|
-
return false;
|
|
1793
|
-
}
|
|
1794
|
-
else if (intent === 'control'
|
|
1795
|
-
&& this.activeSubmissionGeneration != null
|
|
1796
|
-
&& this.activeSubmissionTextTouched) {
|
|
1797
|
-
this.activeSubmissionControlAccepted = true;
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
catch (err) {
|
|
1801
|
-
if (recoveryGeneration > 0) {
|
|
1802
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1803
|
-
}
|
|
1804
|
-
else if (intent === 'control'
|
|
1805
|
-
&& this.activeSubmissionGeneration != null) {
|
|
1806
|
-
this.markActiveSubmissionUnconfirmed();
|
|
1807
|
-
}
|
|
1808
|
-
if (intent === 'text') {
|
|
1809
|
-
this.markArmedTextFailure(mayHaveOpenPasteAfterAmbiguousSend);
|
|
1810
|
-
}
|
|
1811
|
-
const probe = this.verifyBackingIdentity('send failure');
|
|
1812
|
-
logger.warn(`[zmx:${this.sessionName}] send failed (${probe.state}): ` +
|
|
1813
|
-
`${err instanceof Error ? err.message : String(err)}`);
|
|
1814
|
-
// Never retry an ambiguous send: ZMX has no PTY-level ACK, so retrying
|
|
1815
|
-
// can duplicate a prompt that the daemon already queued.
|
|
1816
|
-
const closeOpenPaste = mayHaveOpenPasteAfterAmbiguousSend;
|
|
1817
|
-
if (closeOpenPaste || offset > 0) {
|
|
1818
|
-
if (probe.state === 'compatible') {
|
|
1819
|
-
this.abortPartialSend(closeOpenPaste);
|
|
1820
|
-
}
|
|
1821
|
-
else {
|
|
1822
|
-
logger.warn(`[zmx:${this.sessionName}] skipped partial-send recovery: ` +
|
|
1823
|
-
`backing identity is ${probe.state}`);
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
return false;
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
if (ownsTextGeneration
|
|
1830
|
-
&& textGeneration > 0
|
|
1831
|
-
&& !this.markAmbiguousGenerationCovered(textGeneration)) {
|
|
1832
|
-
return false;
|
|
1833
|
-
}
|
|
1834
|
-
this.requestHistoryCapture(HISTORY_TAIL_DEBOUNCE_MS, true);
|
|
1835
|
-
return true;
|
|
1836
|
-
}
|
|
1837
|
-
abortPartialSend(closeOpenPaste) {
|
|
1838
|
-
if (this.ambiguousTextRecoveryUnconfirmed)
|
|
1839
|
-
return 'recovery-unconfirmed';
|
|
1840
|
-
if (!this.hasPendingAmbiguousTextRecovery())
|
|
1841
|
-
return undefined;
|
|
1842
|
-
if (!this.lastOpts)
|
|
1843
|
-
return 'recovery-pending';
|
|
1844
|
-
if (this.attemptedAmbiguousTextRecoverySequence
|
|
1845
|
-
>= this.ambiguousTextFailureSequence) {
|
|
1846
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1847
|
-
return 'recovery-unconfirmed';
|
|
1848
|
-
}
|
|
1849
|
-
// A failed multi-frame paste may have delivered the opening marker but not
|
|
1850
|
-
// its close. Best-effort close it first, then cancel the partial composer
|
|
1851
|
-
// so a later retry cannot append to/trivially submit truncated input.
|
|
1852
|
-
const recovery = closeOpenPaste || this.ambiguousTextRecoveryNeedsPasteClose
|
|
1853
|
-
? `${BRACKETED_PASTE_END}\x03`
|
|
1854
|
-
: '\x03';
|
|
1855
|
-
this.waitForInjectedCancelCooldown();
|
|
1856
|
-
const postCooldownIdentity = this.verifyBackingIdentity('partial-send recovery cooldown');
|
|
1857
|
-
if (postCooldownIdentity.state !== 'compatible') {
|
|
1858
|
-
logger.warn(`[zmx:${this.sessionName}] skipped partial-send recovery after cooldown: ` +
|
|
1859
|
-
`backing identity is ${postCooldownIdentity.state}`);
|
|
1860
|
-
return 'recovery-pending';
|
|
1861
|
-
}
|
|
1862
|
-
const recoveryGeneration = this.markAmbiguousRecoveryAttempted();
|
|
1863
|
-
if (recoveryGeneration == null)
|
|
1864
|
-
return 'recovery-unconfirmed';
|
|
1865
|
-
try {
|
|
1866
|
-
let stdout;
|
|
1867
|
-
try {
|
|
1868
|
-
stdout = execFileSync('zmx', ['send', this.sessionName], {
|
|
1869
|
-
input: Buffer.concat([Buffer.from(recovery), Buffer.from('\n')]),
|
|
1870
|
-
encoding: 'utf8',
|
|
1871
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
1872
|
-
timeout: ZMX_COMMAND_TIMEOUT_MS,
|
|
1873
|
-
maxBuffer: 1024 * 1024,
|
|
1874
|
-
env: zmxControlEnv(this.lastOpts),
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
finally {
|
|
1878
|
-
// A timeout is ambiguous: the Ctrl+C may have landed at any point
|
|
1879
|
-
// before the command returned, so start downstream cooldown now.
|
|
1880
|
-
this.noteInjectedCancelAttemptSettled();
|
|
1881
|
-
}
|
|
1882
|
-
if (stdout.trim())
|
|
1883
|
-
throw new Error(stdout.trim());
|
|
1884
|
-
// Empty stdout confirms only that the one-shot client was accepted. ZMX
|
|
1885
|
-
// has no daemon→PTY ACK and can silently drop a full-buffer write, so the
|
|
1886
|
-
// recovery remains poisoned until a fresh backend generation.
|
|
1887
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1888
|
-
logger.warn(`[zmx:${this.sessionName}] attempted partial-input cancellation; ` +
|
|
1889
|
-
'PTY delivery remains unconfirmed and automatic input stays blocked');
|
|
1890
|
-
}
|
|
1891
|
-
catch (err) {
|
|
1892
|
-
this.ambiguousTextRecoveryUnconfirmed = true;
|
|
1893
|
-
logger.error(`[zmx:${this.sessionName}] unable to cancel partially delivered input; ` +
|
|
1894
|
-
`manual session recovery may be required: ${err instanceof Error ? err.message : String(err)}`);
|
|
1895
|
-
this.requestHistoryCapture(0, true, true);
|
|
1896
|
-
return 'recovery-unconfirmed';
|
|
1897
|
-
}
|
|
1898
|
-
this.requestHistoryCapture(0, true, true);
|
|
1899
|
-
return 'recovery-unconfirmed';
|
|
1900
|
-
}
|
|
1901
|
-
startTail() {
|
|
1902
|
-
this.clearReconnectTimer();
|
|
1903
|
-
const epoch = ++this.tailEpoch;
|
|
1904
|
-
const child = spawn('zmx', ['tail', this.sessionName], {
|
|
1905
|
-
cwd: this.lastOpts?.cwd,
|
|
1906
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1907
|
-
env: this.lastOpts ? zmxControlEnv(this.lastOpts) : zmxEnv(),
|
|
1908
|
-
});
|
|
1909
|
-
this.tailProcess = child;
|
|
1910
|
-
this.state = 'observing';
|
|
1911
|
-
this.clearStableTailTimer();
|
|
1912
|
-
this.stableTailTimer = setTimeout(() => {
|
|
1913
|
-
this.stableTailTimer = null;
|
|
1914
|
-
if (epoch === this.tailEpoch && this.tailProcess === child && this.state === 'observing') {
|
|
1915
|
-
this.reconnectAttempt = 0;
|
|
1916
|
-
}
|
|
1917
|
-
}, 5000);
|
|
1918
|
-
this.stableTailTimer.unref?.();
|
|
1919
|
-
let settled = false;
|
|
1920
|
-
let stderrTail = '';
|
|
1921
|
-
child.stdout?.on('data', (chunk) => {
|
|
1922
|
-
if (epoch !== this.tailEpoch || this.tailProcess !== child || this.intentionalExit || this.exited)
|
|
1923
|
-
return;
|
|
1924
|
-
// Drain the stream, but never expose its bytes. Upstream's ANSI stripper
|
|
1925
|
-
// currently deletes UTF-8 and can even consume following ASCII; only the
|
|
1926
|
-
// existence of a chunk is trustworthy enough to wake history capture.
|
|
1927
|
-
if ((typeof chunk === 'string' ? chunk.length : chunk.byteLength) > 0) {
|
|
1928
|
-
this.requestHistoryCapture(HISTORY_TAIL_DEBOUNCE_MS, true);
|
|
1929
|
-
}
|
|
1930
|
-
});
|
|
1931
|
-
child.stderr?.on('data', (chunk) => {
|
|
1932
|
-
stderrTail = (stderrTail + chunk.toString()).slice(-4096);
|
|
1933
|
-
});
|
|
1934
|
-
const finish = (code, signal, err) => {
|
|
1935
|
-
if (settled)
|
|
1936
|
-
return;
|
|
1937
|
-
settled = true;
|
|
1938
|
-
if (epoch !== this.tailEpoch || this.tailProcess !== child || this.intentionalExit || this.exited)
|
|
1939
|
-
return;
|
|
1940
|
-
this.tailProcess = null;
|
|
1941
|
-
this.state = 'recovering';
|
|
1942
|
-
this.clearStableTailTimer();
|
|
1943
|
-
if (err || stderrTail.trim()) {
|
|
1944
|
-
logger.warn(`[zmx:${this.sessionName}] tail ended: ` +
|
|
1945
|
-
`${err?.message ?? stderrTail.trim()}`);
|
|
1946
|
-
}
|
|
1947
|
-
this.scheduleTailRecovery(code, signal);
|
|
1948
|
-
};
|
|
1949
|
-
child.once('error', err => finish(null, null, err));
|
|
1950
|
-
child.once('close', (code, signal) => finish(code, signal));
|
|
1951
|
-
}
|
|
1952
|
-
scheduleTailRecovery(code, signal) {
|
|
1953
|
-
if (this.intentionalExit || this.exited || !this.lastOpts)
|
|
1954
|
-
return;
|
|
1955
|
-
const delay = Math.min(50 * (2 ** this.reconnectAttempt), TAIL_RECOVERY_DELAY_MAX_MS);
|
|
1956
|
-
this.reconnectAttempt += 1;
|
|
1957
|
-
this.clearReconnectTimer();
|
|
1958
|
-
this.reconnectTimer = setTimeout(() => {
|
|
1959
|
-
this.reconnectTimer = null;
|
|
1960
|
-
if (this.intentionalExit || this.exited || !this.lastOpts)
|
|
1961
|
-
return;
|
|
1962
|
-
const probe = this.verifyBackingIdentityWithClients('tail recovery');
|
|
1963
|
-
if (probe.state === 'missing' || probe.state === 'replaced')
|
|
1964
|
-
return;
|
|
1965
|
-
if (probe.state === 'unknown') {
|
|
1966
|
-
this.scheduleTailRecovery(code, signal);
|
|
1967
|
-
return;
|
|
1968
|
-
}
|
|
1969
|
-
try {
|
|
1970
|
-
logger.warn(`[zmx:${this.sessionName}] tail observer exited while session lives; reconnecting`);
|
|
1971
|
-
this.startTail();
|
|
1972
|
-
if (!this.waitForTailClient()) {
|
|
1973
|
-
throw new Error('replacement tail did not become a connected client');
|
|
1974
|
-
}
|
|
1975
|
-
this.requestHistoryCapture(0, true, true);
|
|
1976
|
-
}
|
|
1977
|
-
catch (err) {
|
|
1978
|
-
if (this.intentionalExit || this.exited)
|
|
1979
|
-
return;
|
|
1980
|
-
this.stopTailForRecovery();
|
|
1981
|
-
logger.warn(`[zmx:${this.sessionName}] tail restart failed: ` +
|
|
1982
|
-
`${err instanceof Error ? err.message : String(err)}`);
|
|
1983
|
-
this.scheduleTailRecovery(code, signal);
|
|
1984
|
-
}
|
|
1985
|
-
}, delay);
|
|
1986
|
-
this.reconnectTimer.unref?.();
|
|
1987
|
-
}
|
|
1988
|
-
stopTailAfterLaunchFailure() {
|
|
1989
|
-
this.tailEpoch += 1;
|
|
1990
|
-
this.clearStableTailTimer();
|
|
1991
|
-
this.stopHistoryPolling();
|
|
1992
|
-
const tail = this.tailProcess;
|
|
1993
|
-
this.tailProcess = null;
|
|
1994
|
-
this.state = 'idle';
|
|
1995
|
-
try {
|
|
1996
|
-
tail?.kill('SIGTERM');
|
|
1997
|
-
}
|
|
1998
|
-
catch { /* already gone */ }
|
|
1999
|
-
}
|
|
2000
|
-
stopTailForRecovery() {
|
|
2001
|
-
this.tailEpoch += 1;
|
|
2002
|
-
this.clearStableTailTimer();
|
|
2003
|
-
const tail = this.tailProcess;
|
|
2004
|
-
this.tailProcess = null;
|
|
2005
|
-
this.state = 'recovering';
|
|
2006
|
-
try {
|
|
2007
|
-
tail?.kill('SIGTERM');
|
|
2008
|
-
}
|
|
2009
|
-
catch { /* already gone */ }
|
|
2010
|
-
}
|
|
2011
|
-
clearReconnectTimer() {
|
|
2012
|
-
if (!this.reconnectTimer)
|
|
2013
|
-
return;
|
|
2014
|
-
clearTimeout(this.reconnectTimer);
|
|
2015
|
-
this.reconnectTimer = null;
|
|
2016
|
-
}
|
|
2017
|
-
clearStableTailTimer() {
|
|
2018
|
-
if (!this.stableTailTimer)
|
|
2019
|
-
return;
|
|
2020
|
-
clearTimeout(this.stableTailTimer);
|
|
2021
|
-
this.stableTailTimer = null;
|
|
2022
|
-
}
|
|
2023
|
-
emitData(data) {
|
|
2024
|
-
if (this.dataCbs.length === 0) {
|
|
2025
|
-
const next = this.earlyBuffer + data;
|
|
2026
|
-
if (next.length > EARLY_BUFFER_MAX && this.earlyBuffer.length <= EARLY_BUFFER_MAX) {
|
|
2027
|
-
logger.warn(`[zmx:${this.sessionName}] early output exceeded 1 MiB; keeping newest text`);
|
|
2028
|
-
}
|
|
2029
|
-
this.earlyBuffer = next.slice(-EARLY_BUFFER_MAX);
|
|
2030
|
-
return;
|
|
2031
|
-
}
|
|
2032
|
-
for (const cb of this.dataCbs) {
|
|
2033
|
-
try {
|
|
2034
|
-
cb(data);
|
|
2035
|
-
}
|
|
2036
|
-
catch { /* listener failure must not kill transport */ }
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
fireExit(code, signal) {
|
|
2040
|
-
if (this.exited)
|
|
2041
|
-
return;
|
|
2042
|
-
// Once the backing daemon is gone, history is no longer queryable. Never
|
|
2043
|
-
// fall back to tail payload bytes here: upstream may already have deleted
|
|
2044
|
-
// or corrupted their UTF-8 content.
|
|
2045
|
-
this.exited = true;
|
|
2046
|
-
this.state = 'exited';
|
|
2047
|
-
this.tailEpoch += 1;
|
|
2048
|
-
this.clearReconnectTimer();
|
|
2049
|
-
this.clearStableTailTimer();
|
|
2050
|
-
this.stopHistoryPolling();
|
|
2051
|
-
const tail = this.tailProcess;
|
|
2052
|
-
this.tailProcess = null;
|
|
2053
|
-
try {
|
|
2054
|
-
tail?.kill('SIGTERM');
|
|
2055
|
-
}
|
|
2056
|
-
catch { /* already gone */ }
|
|
2057
|
-
this.pendingExit = { code, signal };
|
|
2058
|
-
if (this.exitCbs.length === 0)
|
|
2059
|
-
return;
|
|
2060
|
-
for (const cb of this.exitCbs) {
|
|
2061
|
-
try {
|
|
2062
|
-
cb(code, signal);
|
|
2063
|
-
}
|
|
2064
|
-
catch { /* listener failure must not block teardown */ }
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
export function buildFreshAttachArgs(sessionName, bootstrapPath) {
|
|
2069
|
-
// An existing session ignores this command, which makes attach safer than
|
|
2070
|
-
// `zmx run` (run is an upsert that can inject into a foreign race winner).
|
|
2071
|
-
return ['attach', sessionName, '/bin/sh', bootstrapPath];
|
|
2072
|
-
}
|
|
2073
|
-
function shellSingleQuote(value) {
|
|
2074
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
2075
|
-
}
|
|
2076
|
-
/** Render the private bootstrap and payload used by a fresh session. */
|
|
2077
|
-
export function buildZmxLaunchFiles(bin, args, opts, payloadPath, readyPath, readyNonce, releasePath, releaseToken) {
|
|
2078
|
-
const shellSpec = resolveUserShell(process.env, opts.launchShell);
|
|
2079
|
-
const envAssignments = buildBotmuxEnvAssignments(opts.env, opts.injectEnv)
|
|
2080
|
-
.filter(assignment => !/^ZMX_(?:SESSION|SESSION_PREFIX)=/.test(assignment));
|
|
2081
|
-
const debugKeepShell = process.env.BOTMUX_DEBUG_KEEP_SHELL === '1';
|
|
2082
|
-
const wrapperBinDir = resolveBotmuxWrapperBinDir(opts.env ?? process.env);
|
|
2083
|
-
const wrapped = debugKeepShell
|
|
2084
|
-
? buildDebugKeepShellScript(shellSpec.shell, wrapperBinDir)
|
|
2085
|
-
: shellWrapperScript(wrapperBinDir);
|
|
2086
|
-
const payloadArgv = [opts.cwd, ...envAssignments, bin, ...args];
|
|
2087
|
-
const payload = `set -- ${payloadArgv.map(shellSingleQuote).join(' ')}\n`;
|
|
2088
|
-
const userScript = [
|
|
2089
|
-
'payload=$1',
|
|
2090
|
-
'if [ ! -r "$payload" ]; then printf "[botmux] ZMX launch payload unavailable\\n" >&2; exit 126; fi',
|
|
2091
|
-
'. "$payload" || exit 126',
|
|
2092
|
-
'rm -f -- "$payload"',
|
|
2093
|
-
'unset payload ZMX_SESSION ZMX_SESSION_PREFIX',
|
|
2094
|
-
wrapped,
|
|
2095
|
-
].join('\n');
|
|
2096
|
-
const shellCommand = [
|
|
2097
|
-
shellSingleQuote(shellSpec.shell),
|
|
2098
|
-
...shellSpec.flags.map(shellSingleQuote),
|
|
2099
|
-
'-c', shellSingleQuote(userScript),
|
|
2100
|
-
'_', shellSingleQuote(payloadPath),
|
|
2101
|
-
].join(' ');
|
|
2102
|
-
const launchDir = payloadPath.slice(0, payloadPath.lastIndexOf('/'));
|
|
2103
|
-
const cliPidPath = join(launchDir, 'cli-pid');
|
|
2104
|
-
const gateScript = [
|
|
2105
|
-
'payload_path=$1',
|
|
2106
|
-
'ready_path=$2',
|
|
2107
|
-
'release_path=$3',
|
|
2108
|
-
'cli_pid_path=$4',
|
|
2109
|
-
'ready_nonce=$5',
|
|
2110
|
-
'release_token=$6',
|
|
2111
|
-
'printf \'%s\\n\' "$$" > "$cli_pid_path" || exit 126',
|
|
2112
|
-
'printf \'%s\\n\' "$ready_nonce" > "$ready_path" || exit 126',
|
|
2113
|
-
'attempt=0',
|
|
2114
|
-
`while [ ! -r "$release_path" ] && [ "$attempt" -lt ${Math.ceil(FRESH_RELEASE_TIMEOUT_MS / 100)} ]; do`,
|
|
2115
|
-
' sleep 0.1',
|
|
2116
|
-
' attempt=$((attempt + 1))',
|
|
2117
|
-
'done',
|
|
2118
|
-
'[ -r "$release_path" ] || exit 75',
|
|
2119
|
-
'release_value=',
|
|
2120
|
-
'IFS= read -r release_value < "$release_path" || [ -n "$release_value" ]',
|
|
2121
|
-
'[ "$release_value" = "$release_token" ] || exit 75',
|
|
2122
|
-
'rm -f -- "$ready_path" "$release_path"',
|
|
2123
|
-
'unset ready_path release_path release_value attempt cli_pid_path ready_nonce release_token',
|
|
2124
|
-
'trap - 1 2 15',
|
|
2125
|
-
// Keep the ZMX forkpty slave inherited on fd 0. Reopening `/dev/tty`
|
|
2126
|
-
// produces a descriptor that Darwin kqueue rejects with EINVAL, so
|
|
2127
|
-
// crossterm/mio event readers fail to initialize even though isatty(0)
|
|
2128
|
-
// still reports true. The release-file read above redirects only that one
|
|
2129
|
-
// command and automatically restores the inherited PTY afterwards.
|
|
2130
|
-
`exec ${shellCommand}`,
|
|
2131
|
-
].join('\n');
|
|
2132
|
-
const gateCommand = [
|
|
2133
|
-
'/bin/sh',
|
|
2134
|
-
'-c', shellSingleQuote(gateScript),
|
|
2135
|
-
shellSingleQuote(`${ZMX_GATE_PROCESS_MARKER_PREFIX}${readyNonce}`),
|
|
2136
|
-
'"$payload_path"',
|
|
2137
|
-
'"$ready_path"',
|
|
2138
|
-
'"$release_path"',
|
|
2139
|
-
'"$cli_pid_path"',
|
|
2140
|
-
'"$ready_nonce"',
|
|
2141
|
-
'"$release_token"',
|
|
2142
|
-
].join(' ');
|
|
2143
|
-
const bootstrap = [
|
|
2144
|
-
'#!/bin/sh',
|
|
2145
|
-
'umask 077',
|
|
2146
|
-
'self=$0',
|
|
2147
|
-
'rm -f -- "$self"',
|
|
2148
|
-
'unset self ZMX_SESSION ZMX_SESSION_PREFIX',
|
|
2149
|
-
`payload_path=${shellSingleQuote(payloadPath)}`,
|
|
2150
|
-
`ready_path=${shellSingleQuote(readyPath)}`,
|
|
2151
|
-
`release_path=${shellSingleQuote(releasePath)}`,
|
|
2152
|
-
`cli_pid_path=${shellSingleQuote(cliPidPath)}`,
|
|
2153
|
-
`ready_nonce=${shellSingleQuote(readyNonce)}`,
|
|
2154
|
-
`release_token=${shellSingleQuote(releaseToken)}`,
|
|
2155
|
-
`launch_dir=${shellSingleQuote(launchDir)}`,
|
|
2156
|
-
'cleanup_launch() {',
|
|
2157
|
-
' rm -f -- "$ready_path" "$release_path" "$cli_pid_path" "$payload_path"',
|
|
2158
|
-
' rmdir -- "$launch_dir" 2>/dev/null || true',
|
|
2159
|
-
'}',
|
|
2160
|
-
// Do not exec away the PTY-root bootstrap. ZMX destroys history together
|
|
2161
|
-
// with that root process, so retaining it for a short bounded grace after
|
|
2162
|
-
// the real CLI exits gives the authoritative history poller time to read
|
|
2163
|
-
// final output (including pure Unicode that tail cannot signal reliably).
|
|
2164
|
-
// A foreground gate child keeps the normal SIGINT disposition (POSIX async
|
|
2165
|
-
// jobs may inherit SIGINT ignored), while retaining one stable PID through
|
|
2166
|
-
// gate -> user shell -> env -> CLI exec. The parent validates and labels
|
|
2167
|
-
// that PID before atomically publishing release.
|
|
2168
|
-
'is_direct_child() {',
|
|
2169
|
-
' for ps_bin in /usr/bin/ps /bin/ps; do',
|
|
2170
|
-
' [ -x "$ps_bin" ] || continue',
|
|
2171
|
-
' child_parent=$("$ps_bin" -o ppid= -p "$child_pid" 2>/dev/null) || continue',
|
|
2172
|
-
' [ "$child_parent" -eq "$$" ] 2>/dev/null && return 0',
|
|
2173
|
-
' done',
|
|
2174
|
-
' return 1',
|
|
2175
|
-
'}',
|
|
2176
|
-
'forward_stop() {',
|
|
2177
|
-
' trap - 1 15',
|
|
2178
|
-
' child_pid=',
|
|
2179
|
-
' IFS= read -r child_pid < "$cli_pid_path" 2>/dev/null || true',
|
|
2180
|
-
' if [ -n "$child_pid" ] && is_direct_child; then',
|
|
2181
|
-
' kill -HUP "$child_pid" 2>/dev/null || true',
|
|
2182
|
-
' kill -HUP -- "-$child_pid" 2>/dev/null || true',
|
|
2183
|
-
' sleep 0.15',
|
|
2184
|
-
' if is_direct_child; then',
|
|
2185
|
-
' kill -KILL "$child_pid" 2>/dev/null || true',
|
|
2186
|
-
' kill -KILL -- "-$child_pid" 2>/dev/null || true',
|
|
2187
|
-
' fi',
|
|
2188
|
-
' fi',
|
|
2189
|
-
' cleanup_launch',
|
|
2190
|
-
' exit 75',
|
|
2191
|
-
'}',
|
|
2192
|
-
"trap 'forward_stop' 1 15",
|
|
2193
|
-
"trap ':' 2",
|
|
2194
|
-
gateCommand,
|
|
2195
|
-
'cli_status=$?',
|
|
2196
|
-
// Do not retain a dead PID during the grace period: an external HUP must
|
|
2197
|
-
// never target an unrelated process that reused the numeric pid.
|
|
2198
|
-
'rm -f -- "$cli_pid_path"',
|
|
2199
|
-
`while ! sleep ${ZMX_EXIT_HISTORY_GRACE_SECONDS}; do :; done`,
|
|
2200
|
-
'cleanup_launch',
|
|
2201
|
-
'trap - 1 2 15',
|
|
2202
|
-
'exit "$cli_status"',
|
|
2203
|
-
'',
|
|
2204
|
-
].join('\n');
|
|
2205
|
-
return { bootstrap, payload };
|
|
2206
|
-
}
|
|
2207
|
-
function createZmxLaunchPayload(bin, args, opts) {
|
|
2208
|
-
const dir = mkdtempSync(join(tmpdir(), 'botmux-zmx-launch-'));
|
|
2209
|
-
chmodSync(dir, 0o700);
|
|
2210
|
-
const bootstrapPath = join(dir, 'bootstrap.sh');
|
|
2211
|
-
const payloadPath = join(dir, 'payload.sh');
|
|
2212
|
-
const readyPath = join(dir, 'ready');
|
|
2213
|
-
const releasePath = join(dir, 'release');
|
|
2214
|
-
const releaseTempPath = join(dir, 'release.tmp');
|
|
2215
|
-
const cliPidPath = join(dir, 'cli-pid');
|
|
2216
|
-
const readyNonce = randomBytes(16).toString('hex');
|
|
2217
|
-
const releaseToken = randomBytes(16).toString('hex');
|
|
2218
|
-
const cleanup = () => {
|
|
2219
|
-
for (const path of [readyPath, releasePath, releaseTempPath, cliPidPath, payloadPath, bootstrapPath]) {
|
|
2220
|
-
try {
|
|
2221
|
-
rmSync(path, { force: true });
|
|
2222
|
-
}
|
|
2223
|
-
catch { /* already consumed */ }
|
|
2224
|
-
}
|
|
2225
|
-
try {
|
|
2226
|
-
rmdirSync(dir);
|
|
2227
|
-
}
|
|
2228
|
-
catch { /* live bootstrap still owns the directory */ }
|
|
2229
|
-
};
|
|
2230
|
-
try {
|
|
2231
|
-
const files = buildZmxLaunchFiles(bin, args, opts, payloadPath, readyPath, readyNonce, releasePath, releaseToken);
|
|
2232
|
-
writeFileSync(payloadPath, files.payload, { mode: 0o600, flag: 'wx' });
|
|
2233
|
-
writeFileSync(bootstrapPath, files.bootstrap, { mode: 0o600, flag: 'wx' });
|
|
2234
|
-
return {
|
|
2235
|
-
dir,
|
|
2236
|
-
bootstrapPath,
|
|
2237
|
-
readyPath,
|
|
2238
|
-
readyNonce,
|
|
2239
|
-
releasePath,
|
|
2240
|
-
releaseTempPath,
|
|
2241
|
-
cliPidPath,
|
|
2242
|
-
releaseToken,
|
|
2243
|
-
cleanup,
|
|
2244
|
-
};
|
|
2245
|
-
}
|
|
2246
|
-
catch (err) {
|
|
2247
|
-
cleanup();
|
|
2248
|
-
throw err;
|
|
2249
|
-
}
|
|
2250
|
-
}
|
|
2251
|
-
/** Strip every payload-delivered key from ZMX control subprocesses. */
|
|
2252
|
-
export function zmxControlEnv(opts) {
|
|
2253
|
-
const env = zmxEnv(opts.env);
|
|
2254
|
-
for (const assignment of buildBotmuxEnvAssignments(opts.env, opts.injectEnv)) {
|
|
2255
|
-
const equals = assignment.indexOf('=');
|
|
2256
|
-
if (equals > 0)
|
|
2257
|
-
delete env[assignment.slice(0, equals)];
|
|
2258
|
-
}
|
|
2259
|
-
if (opts.injectEnv) {
|
|
2260
|
-
for (const key of Object.keys(opts.injectEnv))
|
|
2261
|
-
delete env[key];
|
|
2262
|
-
}
|
|
2263
|
-
return env;
|
|
2264
|
-
}
|
|
2265
|
-
export function parseZmxList(output) {
|
|
2266
|
-
const sessions = [];
|
|
2267
|
-
const unhealthySessions = [];
|
|
2268
|
-
const malformedLines = [];
|
|
2269
|
-
let sawRecord = false;
|
|
2270
|
-
for (const line of output.split('\n')) {
|
|
2271
|
-
if (!line.trim())
|
|
2272
|
-
continue;
|
|
2273
|
-
const looksLikeRecord = /^\s*name=[^\t]*\t(?:pid=\d+(?:\t|$)|err=)/.test(line);
|
|
2274
|
-
if (!looksLikeRecord) {
|
|
2275
|
-
// Full-list cmd= is verbatim and may contain literal newlines. Once a
|
|
2276
|
-
// record starts, continuation text is opaque even when it says name=.
|
|
2277
|
-
if (!sawRecord)
|
|
2278
|
-
malformedLines.push(line);
|
|
2279
|
-
continue;
|
|
2280
|
-
}
|
|
2281
|
-
sawRecord = true;
|
|
2282
|
-
const row = parseZmxListRow(line);
|
|
2283
|
-
if (!row)
|
|
2284
|
-
malformedLines.push(line);
|
|
2285
|
-
else if (row.state === 'unhealthy')
|
|
2286
|
-
unhealthySessions.push(row.name);
|
|
2287
|
-
else
|
|
2288
|
-
sessions.push(row.name);
|
|
2289
|
-
}
|
|
2290
|
-
return { sessions, unhealthySessions, malformedLines };
|
|
2291
|
-
}
|
|
2292
|
-
export function parseZmxShortList(output) {
|
|
2293
|
-
const sessions = [];
|
|
2294
|
-
const malformedLines = [];
|
|
2295
|
-
const seen = new Set();
|
|
2296
|
-
for (const raw of output.split('\n')) {
|
|
2297
|
-
const name = raw.endsWith('\r') ? raw.slice(0, -1) : raw;
|
|
2298
|
-
if (!name)
|
|
2299
|
-
continue;
|
|
2300
|
-
if (/[\t\x00-\x1f\x7f]/.test(name) || seen.has(name)) {
|
|
2301
|
-
malformedLines.push(raw);
|
|
2302
|
-
continue;
|
|
2303
|
-
}
|
|
2304
|
-
seen.add(name);
|
|
2305
|
-
sessions.push(name);
|
|
2306
|
-
}
|
|
2307
|
-
return { sessions, malformedLines };
|
|
2308
|
-
}
|
|
2309
|
-
function parseZmxListRow(line) {
|
|
2310
|
-
const fields = line.replace(/^\s*/, '').split('\t');
|
|
2311
|
-
const nameField = fields[0];
|
|
2312
|
-
const name = nameField?.startsWith('name=') ? nameField.slice('name='.length) : '';
|
|
2313
|
-
const status = fields[1];
|
|
2314
|
-
if (!name || /[\x00-\x1f\x7f]/.test(name) || !status)
|
|
2315
|
-
return null;
|
|
2316
|
-
const pid = status.match(/^pid=(\d+)$/)?.[1];
|
|
2317
|
-
if (pid) {
|
|
2318
|
-
const clients = fields.map(field => field.match(/^clients=(\d+)$/)?.[1]).find(Boolean);
|
|
2319
|
-
const command = fields.find(field => field.startsWith('cmd='))?.slice('cmd='.length);
|
|
2320
|
-
return {
|
|
2321
|
-
name,
|
|
2322
|
-
state: 'healthy',
|
|
2323
|
-
pid: Number(pid),
|
|
2324
|
-
clients: clients === undefined ? undefined : Number(clients),
|
|
2325
|
-
command,
|
|
2326
|
-
};
|
|
2327
|
-
}
|
|
2328
|
-
if (/^err=/.test(status))
|
|
2329
|
-
return { name, state: 'unhealthy' };
|
|
2330
|
-
return null;
|
|
2331
|
-
}
|
|
2332
|
-
function sessionDetails(sessionName, env = zmxEnv()) {
|
|
2333
|
-
const probe = ZmxBackend.probeSessions(env);
|
|
2334
|
-
return probe.ok ? sessionDetailsFromSnapshot(probe, sessionName) : null;
|
|
2335
|
-
}
|
|
2336
|
-
function sessionDetailsFromSnapshot(probe, sessionName) {
|
|
2337
|
-
if (!probe.sessions.includes(sessionName))
|
|
2338
|
-
return null;
|
|
2339
|
-
const rows = probe.raw
|
|
2340
|
-
.split('\n')
|
|
2341
|
-
.map(parseZmxListRow)
|
|
2342
|
-
.filter((row) => row?.name === sessionName && row.state === 'healthy' && !!row.pid);
|
|
2343
|
-
if (rows.length !== 1)
|
|
2344
|
-
return null;
|
|
2345
|
-
const row = rows[0];
|
|
2346
|
-
return {
|
|
2347
|
-
name: row.name,
|
|
2348
|
-
pid: row.pid,
|
|
2349
|
-
clients: row.clients ?? null,
|
|
2350
|
-
command: row.command ?? null,
|
|
2351
|
-
};
|
|
2352
|
-
}
|
|
2353
|
-
export function findSessionPid(sessionName) {
|
|
2354
|
-
return sessionDetails(sessionName)?.pid ?? null;
|
|
2355
|
-
}
|
|
2356
|
-
export function tmuxKeyToBytes(key) {
|
|
2357
|
-
const named = {
|
|
2358
|
-
Enter: '\r',
|
|
2359
|
-
Tab: '\t',
|
|
2360
|
-
Escape: '\x1b',
|
|
2361
|
-
Esc: '\x1b',
|
|
2362
|
-
Space: ' ',
|
|
2363
|
-
BSpace: '\x7f',
|
|
2364
|
-
Backspace: '\x7f',
|
|
2365
|
-
Up: '\x1b[A',
|
|
2366
|
-
Down: '\x1b[B',
|
|
2367
|
-
Right: '\x1b[C',
|
|
2368
|
-
Left: '\x1b[D',
|
|
2369
|
-
Home: '\x1b[H',
|
|
2370
|
-
End: '\x1b[F',
|
|
2371
|
-
PageUp: '\x1b[5~',
|
|
2372
|
-
PPage: '\x1b[5~',
|
|
2373
|
-
PageDown: '\x1b[6~',
|
|
2374
|
-
NPage: '\x1b[6~',
|
|
2375
|
-
'M-Enter': '\x1b\r',
|
|
2376
|
-
};
|
|
2377
|
-
if (key in named)
|
|
2378
|
-
return named[key];
|
|
2379
|
-
const ctrl = key.match(/^C-([A-Za-z])$/);
|
|
2380
|
-
if (ctrl)
|
|
2381
|
-
return String.fromCharCode(ctrl[1].toLowerCase().charCodeAt(0) - 96);
|
|
2382
|
-
const meta = key.match(/^M-(.)$/);
|
|
2383
|
-
if (meta)
|
|
2384
|
-
return `\x1b${meta[1]}`;
|
|
2385
|
-
return key;
|
|
2386
|
-
}
|
|
2387
|
-
//# sourceMappingURL=zmx-backend.js.map
|