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,2238 +0,0 @@
|
|
|
1
|
-
import { adoptTargetKey, adoptTargetLabel } from '../../core/session-discovery.js';
|
|
2
|
-
import { t } from '../../i18n/index.js';
|
|
3
|
-
import { cardUsageFooterSegment } from './md-card.js';
|
|
4
|
-
import { readGlobalConfig } from '../../global-config.js';
|
|
5
|
-
import { isLocalCliOpenEnabled } from '../../services/local-cli-opener.js';
|
|
6
|
-
import { clampGrantQuotaForCard, DEFAULT_GRANT_DURATION_MS, DEFAULT_GRANT_QUOTA, GRANT_DURATION_OPTIONS, } from '../../services/grant-policy.js';
|
|
7
|
-
/** select_static 里代表「清回默认 / 未设置」的哨兵值(model / lang 下拉用)。 */
|
|
8
|
-
export const CONFIG_UNSET = '__unset__';
|
|
9
|
-
/** 布尔字段按配置页的逻辑分组(与 dashboard 的 Bot Profiles 区块对应)。 */
|
|
10
|
-
const CONFIG_CARD_BOOLEAN_GROUPS = [
|
|
11
|
-
{ sec: 'card.config.sec.card', keys: ['disableStreamingCard', 'silentTurnReactions', 'writableTerminalLinkInCard', 'privateCard'] },
|
|
12
|
-
{ sec: 'card.config.sec.autostart', keys: ['autoStartOnGroupJoin', 'autoStartOnNewTopic'] },
|
|
13
|
-
{ sec: 'card.config.sec.security', keys: ['disableCliBypass', 'restrictGrantCommands'] },
|
|
14
|
-
];
|
|
15
|
-
function configSelect(placeholder, initial, options, value) {
|
|
16
|
-
return {
|
|
17
|
-
tag: 'select_static',
|
|
18
|
-
placeholder: { tag: 'plain_text', content: placeholder },
|
|
19
|
-
initial_option: initial,
|
|
20
|
-
options: options.map(o => ({ text: { tag: 'plain_text', content: o.text }, value: o.value })),
|
|
21
|
-
value,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function configSubheader(secKey, locale) {
|
|
25
|
-
return { tag: 'div', text: { tag: 'lark_md', content: `**${t(secKey, undefined, locale)}**` } };
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 交互配置卡片:`/botconfig`(裸)返回它。按配置页逻辑分区(运行 / 卡片行为 / 主动开工 /
|
|
29
|
-
* 安全·授权),cli·model·lang 用下拉,布尔字段用切换按钮(i18n 文案 + ✅/⬜️),消息额度
|
|
30
|
-
* 用下拉。点一下即改并就地刷新(见 card-handler 的 config_set / config_toggle / config_quota)。
|
|
31
|
-
* 只吃纯数据 {@link ConfigCardData},不反向依赖 store,避免循环依赖。
|
|
32
|
-
*/
|
|
33
|
-
export function buildConfigCard(data, locale) {
|
|
34
|
-
const def = t('card.config.default', undefined, locale);
|
|
35
|
-
// 把渲染语言带进每个 action value,使点按钮后的就地重渲染保持同一语言
|
|
36
|
-
// (`/botconfig en` 的覆盖不会因为一次 toggle 又退回 bot 默认语言)。
|
|
37
|
-
const locVal = locale ? { loc: locale } : {};
|
|
38
|
-
const elements = [];
|
|
39
|
-
elements.push({
|
|
40
|
-
tag: 'div',
|
|
41
|
-
text: {
|
|
42
|
-
tag: 'lark_md',
|
|
43
|
-
content: t('card.config.summary', {
|
|
44
|
-
cli: data.cliId, model: data.model ?? def, lang: data.lang ?? def, admins: data.admins,
|
|
45
|
-
}, locale),
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
// ── 🧠 运行: cli / model / lang ─────────────────────────────────────────
|
|
49
|
-
elements.push({ tag: 'hr' });
|
|
50
|
-
elements.push(configSubheader('card.config.sec.runtime', locale));
|
|
51
|
-
const runSelects = [
|
|
52
|
-
configSelect('CLI', data.cliId, data.cliOptions.map(o => ({ text: o.label, value: o.id })), { action: 'config_set', field: 'cli', ...locVal }),
|
|
53
|
-
];
|
|
54
|
-
if (data.modelChoices.length > 0) {
|
|
55
|
-
runSelects.push(configSelect('model', data.model ?? CONFIG_UNSET, [{ text: def, value: CONFIG_UNSET }, ...data.modelChoices.map(m => ({ text: m, value: m }))], { action: 'config_set', field: 'model', ...locVal }));
|
|
56
|
-
}
|
|
57
|
-
runSelects.push(configSelect('lang', data.lang ?? CONFIG_UNSET, [{ text: def, value: CONFIG_UNSET }, { text: '中文 (zh)', value: 'zh' }, { text: 'English (en)', value: 'en' }], { action: 'config_set', field: 'lang', ...locVal }));
|
|
58
|
-
// 私聊单聊模式:chat(默认,扁平连续会话)| thread(每条 DM 独立会话)。chat 与
|
|
59
|
-
// 未设等价,故 chat 选项用 unset 哨兵:选它即清字段、回默认(扁平连续 DM),
|
|
60
|
-
// 避免把字面 'chat' 写进 bots.json(与 dashboard 下拉一致,/botconfig get 重启
|
|
61
|
-
// 前后一致)。只有显式 'thread'(每条 DM 独立)才是需要落盘的值。
|
|
62
|
-
runSelects.push(configSelect(t('card.config.p2p.placeholder', undefined, locale), data.p2pMode === 'thread' ? 'thread' : CONFIG_UNSET, [{ text: t('card.config.p2p.chat', undefined, locale), value: CONFIG_UNSET }, { text: t('card.config.p2p.thread', undefined, locale), value: 'thread' }], { action: 'config_set', field: 'p2pMode', ...locVal }));
|
|
63
|
-
elements.push({ tag: 'action', actions: runSelects });
|
|
64
|
-
// ── 布尔开关分组 ─────────────────────────────────────────────────────────
|
|
65
|
-
const onMap = new Map(data.booleans.map(b => [b.key, b.on]));
|
|
66
|
-
for (const g of CONFIG_CARD_BOOLEAN_GROUPS) {
|
|
67
|
-
const btns = g.keys.filter(k => onMap.has(k)).map(k => {
|
|
68
|
-
const on = onMap.get(k) === true;
|
|
69
|
-
return {
|
|
70
|
-
tag: 'button',
|
|
71
|
-
text: { tag: 'plain_text', content: `${on ? '🟢' : '⚪'} ${t('config.label.' + k, undefined, locale)}` },
|
|
72
|
-
type: on ? 'primary' : 'default',
|
|
73
|
-
value: { action: 'config_toggle', field: k, ...locVal },
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
elements.push({ tag: 'hr' });
|
|
77
|
-
elements.push(configSubheader(g.sec, locale));
|
|
78
|
-
elements.push({ tag: 'action', actions: btns });
|
|
79
|
-
// 安全·授权区附带「消息额度」下拉。
|
|
80
|
-
if (g.sec === 'card.config.sec.security') {
|
|
81
|
-
const qOpts = [
|
|
82
|
-
{ text: t('card.config.quota_off', undefined, locale), value: 'off' },
|
|
83
|
-
...['5', '10', '20', '50', '100'].map(n => ({ text: n, value: n })),
|
|
84
|
-
];
|
|
85
|
-
elements.push({
|
|
86
|
-
tag: 'action',
|
|
87
|
-
actions: [configSelect(t('card.config.quota_label', undefined, locale), data.quota == null ? 'off' : String(data.quota), qOpts, { action: 'config_quota', ...locVal })],
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
// 自由文本字段(brandLabel / 入群首轮 prompt / 默认角色)不放主卡(v1 主卡只下拉+开关),
|
|
92
|
-
// 用一个按钮唤起带输入框的「文本设置」子卡(见 buildConfigTextCard / config_text_open)。
|
|
93
|
-
elements.push({ tag: 'hr' });
|
|
94
|
-
elements.push({
|
|
95
|
-
tag: 'action',
|
|
96
|
-
actions: [{
|
|
97
|
-
tag: 'button',
|
|
98
|
-
text: { tag: 'plain_text', content: t('card.config.text_btn', undefined, locale) },
|
|
99
|
-
type: 'default',
|
|
100
|
-
value: { action: 'config_text_open', ...locVal },
|
|
101
|
-
}],
|
|
102
|
-
});
|
|
103
|
-
elements.push({ tag: 'note', elements: [{ tag: 'lark_md', content: t('card.config.note', undefined, locale) }] });
|
|
104
|
-
return JSON.stringify({
|
|
105
|
-
config: { wide_screen_mode: true },
|
|
106
|
-
header: { template: 'blue', title: { tag: 'plain_text', content: t('card.config.title', { name: data.botName }, locale) } },
|
|
107
|
-
elements,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* 「文本设置」子卡:从主配置卡点「✏️ 文本设置」唤起。承载自由文本字段——卡片签名
|
|
112
|
-
* (brandLabel)、入群首轮 prompt(autoStartOnGroupJoinPrompt)、默认角色(team role)。
|
|
113
|
-
* v1 `form`+`input` 实现(仓库已验证),输入框预填当前值,一个「保存」提交全部
|
|
114
|
-
* (form_submit → config_text_save),留空=清除该项;「⬅ 返回」回主卡(config_back)。
|
|
115
|
-
*/
|
|
116
|
-
export function buildConfigTextCard(data, locale) {
|
|
117
|
-
const locVal = locale ? { loc: locale } : {};
|
|
118
|
-
// 每个字段 = 标签 div(在 form 外)+ 一个仅含 [input, 保存按钮] 的 form。
|
|
119
|
-
// form 内只放 input+button(与仓库已验证的 TUI 表单同构),label 放 form 外,
|
|
120
|
-
// 否则 form 里混入 div 会整卡渲染失败(空卡)。每字段独立保存。
|
|
121
|
-
const section = (lblKey, name, value) => ([
|
|
122
|
-
{ tag: 'div', text: { tag: 'lark_md', content: `**${t(lblKey, undefined, locale)}**` } },
|
|
123
|
-
{
|
|
124
|
-
tag: 'form',
|
|
125
|
-
name: `config_form_${name}`,
|
|
126
|
-
elements: [
|
|
127
|
-
{ tag: 'input', name, default_value: value ?? '', placeholder: { tag: 'plain_text', content: t(lblKey, undefined, locale) } },
|
|
128
|
-
{
|
|
129
|
-
tag: 'button',
|
|
130
|
-
text: { tag: 'plain_text', content: t('card.config.save', undefined, locale) },
|
|
131
|
-
type: 'primary',
|
|
132
|
-
name: `config_save_${name}`,
|
|
133
|
-
action_type: 'form_submit',
|
|
134
|
-
value: { action: 'config_text_save', field: name, ...locVal },
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
},
|
|
138
|
-
]);
|
|
139
|
-
const elements = [
|
|
140
|
-
{ tag: 'div', text: { tag: 'lark_md', content: t('card.config.text_note', undefined, locale) } },
|
|
141
|
-
{ tag: 'hr' },
|
|
142
|
-
...section('card.config.lbl_brand', 'brandLabel', data.brandLabel),
|
|
143
|
-
{ tag: 'hr' },
|
|
144
|
-
...section('card.config.lbl_prompt', 'autoStartPrompt', data.autoStartPrompt),
|
|
145
|
-
{ tag: 'hr' },
|
|
146
|
-
...section('card.config.lbl_passthrough', 'customPassthroughCommands', data.customPassthroughCommands),
|
|
147
|
-
{ tag: 'hr' },
|
|
148
|
-
...section('card.config.lbl_startup', 'startupCommands', data.startupCommands),
|
|
149
|
-
{ tag: 'hr' },
|
|
150
|
-
...section('card.config.lbl_role', 'teamRole', data.teamRole),
|
|
151
|
-
];
|
|
152
|
-
return JSON.stringify({
|
|
153
|
-
config: { wide_screen_mode: true },
|
|
154
|
-
header: { template: 'blue', title: { tag: 'plain_text', content: t('card.config.text_title', { name: data.botName }, locale) } },
|
|
155
|
-
elements,
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
const cliDisplayNames = {
|
|
159
|
-
'claude-code': 'Claude',
|
|
160
|
-
'seed': 'Seed',
|
|
161
|
-
'relay': 'Relay',
|
|
162
|
-
'aiden': 'Aiden',
|
|
163
|
-
'coco': 'CoCo',
|
|
164
|
-
'codex': 'Codex',
|
|
165
|
-
'codex-app': 'Codex App',
|
|
166
|
-
'cursor': 'Cursor',
|
|
167
|
-
'gemini': 'Gemini',
|
|
168
|
-
'genius': 'Genius',
|
|
169
|
-
'opencode': 'OpenCode',
|
|
170
|
-
'antigravity': 'Antigravity',
|
|
171
|
-
'mtr': 'MTR',
|
|
172
|
-
'hermes': 'Hermes',
|
|
173
|
-
'mira': 'Mira',
|
|
174
|
-
'mir': 'Mir CLI',
|
|
175
|
-
'traex': 'TRAE',
|
|
176
|
-
'pi': 'Pi',
|
|
177
|
-
'copilot': 'Copilot',
|
|
178
|
-
'oh-my-pi': 'Oh My Pi',
|
|
179
|
-
'kimi': 'Kimi',
|
|
180
|
-
'grok': 'Grok Build',
|
|
181
|
-
'kiro-cli': 'Kiro',
|
|
182
|
-
'riff': 'Riff',
|
|
183
|
-
'reasonix': 'Reasonix',
|
|
184
|
-
};
|
|
185
|
-
export function getCliDisplayName(cliId) {
|
|
186
|
-
return cliDisplayNames[cliId] ?? cliId;
|
|
187
|
-
}
|
|
188
|
-
/** Escape Lark markdown special characters in user-controlled strings.
|
|
189
|
-
* `<`/`>` are escaped too so an attacker-controlled name (e.g. a foreign
|
|
190
|
-
* bot's app name surfaced in the grant card) cannot inject a literal
|
|
191
|
-
* `<at id=…></at>` tag and spoof a mention in a `lark_md` body. */
|
|
192
|
-
function escapeMd(s) {
|
|
193
|
-
return s.replace(/[*_~`\[\]\\<>]/g, c => `\\${c}`);
|
|
194
|
-
}
|
|
195
|
-
function sidebarUrl(url) {
|
|
196
|
-
const qs = new URLSearchParams({
|
|
197
|
-
mode: 'sidebar-semi',
|
|
198
|
-
min_width: '350',
|
|
199
|
-
width: '800',
|
|
200
|
-
max_width: '1200',
|
|
201
|
-
reload: 'false',
|
|
202
|
-
url,
|
|
203
|
-
});
|
|
204
|
-
return `https://applink.feishu.cn/client/web_url/open?${qs.toString()}`;
|
|
205
|
-
}
|
|
206
|
-
function sidebarMultiUrl(url) {
|
|
207
|
-
const pcUrl = sidebarUrl(url);
|
|
208
|
-
return {
|
|
209
|
-
url: pcUrl,
|
|
210
|
-
pc_url: pcUrl,
|
|
211
|
-
android_url: url,
|
|
212
|
-
ios_url: url,
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function directMultiUrl(url) {
|
|
216
|
-
return {
|
|
217
|
-
url,
|
|
218
|
-
pc_url: url,
|
|
219
|
-
android_url: url,
|
|
220
|
-
ios_url: url,
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
/** Shared terminal multi-url behavior for streaming and dashboard cards. */
|
|
224
|
-
export function terminalMultiUrl(url) {
|
|
225
|
-
return readGlobalConfig().dashboard?.openTerminalInFeishu === true
|
|
226
|
-
? sidebarMultiUrl(url)
|
|
227
|
-
: directMultiUrl(url);
|
|
228
|
-
}
|
|
229
|
-
/** 💻「打开 <CLI>」默认隐藏,通过 dashboard.enableLocalCliOpen 显式开启:
|
|
230
|
-
* 1) 当前 iTerm-first opener 只支持 macOS;生产 daemon 常跑在 headless Linux,
|
|
231
|
-
* 即使误开开关也不能生成一个必然失败的按钮。
|
|
232
|
-
* 2) `attach` 模式只在当前 backend 有精确 attach 目标时显示,尽量保持同一路 I/O/历史;
|
|
233
|
-
* `resume` 模式才要求 CLI direct resume readiness,且可能破坏飞书连续性。
|
|
234
|
-
*
|
|
235
|
-
* localCliReady 必须由调用方按当前配置模式计算;handler 也会重复校验,防止已发出的
|
|
236
|
-
* 旧卡片绕过开关或模式切换。 */
|
|
237
|
-
function localCliButton(cliId, actionBase, locale, localCliReady, runtimeDisplayName) {
|
|
238
|
-
if (!isLocalCliOpenEnabled() || !localCliReady)
|
|
239
|
-
return undefined;
|
|
240
|
-
const cliName = runtimeDisplayName?.trim() || getCliDisplayName(cliId);
|
|
241
|
-
// Keep existing official/legacy labels byte-for-byte. A configured runtime
|
|
242
|
-
// uses the generic interpolated label so the button names what it launches.
|
|
243
|
-
const labelKey = runtimeDisplayName?.trim()
|
|
244
|
-
? 'card.btn.open_local_cli'
|
|
245
|
-
: cliId === 'codex'
|
|
246
|
-
? 'card.btn.open_local_codex'
|
|
247
|
-
: cliId === 'traex'
|
|
248
|
-
? 'card.btn.open_local_trae'
|
|
249
|
-
: 'card.btn.open_local_cli';
|
|
250
|
-
return {
|
|
251
|
-
tag: 'button',
|
|
252
|
-
text: { tag: 'plain_text', content: t(labelKey, { cliName }, locale) },
|
|
253
|
-
type: 'default',
|
|
254
|
-
value: { action: 'open_local_cli', ...actionBase },
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Build a Feishu interactive card with terminal button + action buttons.
|
|
259
|
-
* @param showManageButtons - When true, include restart & close buttons (used in the private write-link card — delivered as a "visible-to-you" ephemeral card in plain groups, or DM'd as fallback).
|
|
260
|
-
* @param adoptMode - When true, the danger button reads "⏏ 断开" with action `disconnect` (only tears down botmux's bridge worker, leaves the user's tmux pane / Claude process alone). Mutually exclusive with `showManageButtons` (DM management isn't surfaced for adopt sessions). Without this flag the card uses the original "❌ 关闭会话" button which closes the underlying CLI — wrong for adopt where we never owned the CLI in the first place.
|
|
261
|
-
*/
|
|
262
|
-
export function buildSessionCard(sessionId, rootId, terminalUrl, title, cliId, showManageButtons, adoptMode, locale, localCliReady = false, runtimeDisplayName) {
|
|
263
|
-
const cliName = runtimeDisplayName?.trim() || getCliDisplayName(cliId ?? 'claude-code');
|
|
264
|
-
const effectiveCliId = cliId ?? 'claude-code';
|
|
265
|
-
const actionBase = { root_id: rootId, session_id: sessionId, cli_id: effectiveCliId };
|
|
266
|
-
const actions = [];
|
|
267
|
-
if (terminalUrl) {
|
|
268
|
-
actions.push({
|
|
269
|
-
tag: 'button',
|
|
270
|
-
text: { tag: 'plain_text', content: t(showManageButtons ? 'card.btn.open_writable_terminal' : 'card.btn.open_terminal', undefined, locale) },
|
|
271
|
-
type: 'primary',
|
|
272
|
-
multi_url: terminalMultiUrl(terminalUrl),
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
if (!showManageButtons) {
|
|
276
|
-
const localBtn = cliId ? localCliButton(effectiveCliId, actionBase, locale, localCliReady, runtimeDisplayName) : undefined;
|
|
277
|
-
if (localBtn)
|
|
278
|
-
actions.push(localBtn);
|
|
279
|
-
if (terminalUrl) {
|
|
280
|
-
actions.push({
|
|
281
|
-
tag: 'button',
|
|
282
|
-
text: { tag: 'plain_text', content: t('card.btn.get_write_link', undefined, locale) },
|
|
283
|
-
type: 'default',
|
|
284
|
-
value: { action: 'get_write_link', ...actionBase },
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
if (showManageButtons && !adoptMode) {
|
|
289
|
-
actions.push({
|
|
290
|
-
tag: 'button',
|
|
291
|
-
text: { tag: 'plain_text', content: t('card.btn.restart_cli', { cliName }, locale) },
|
|
292
|
-
type: 'default',
|
|
293
|
-
value: { action: 'restart', ...actionBase },
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
if (adoptMode) {
|
|
297
|
-
actions.push({
|
|
298
|
-
tag: 'button',
|
|
299
|
-
text: { tag: 'plain_text', content: t('card.btn.disconnect', undefined, locale) },
|
|
300
|
-
type: 'danger',
|
|
301
|
-
value: { action: 'disconnect', ...actionBase },
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
actions.push({
|
|
306
|
-
tag: 'button',
|
|
307
|
-
text: { tag: 'plain_text', content: t('card.btn.close_session', undefined, locale) },
|
|
308
|
-
type: 'danger',
|
|
309
|
-
value: { action: 'close', ...actionBase },
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
const card = {
|
|
313
|
-
config: { wide_screen_mode: true },
|
|
314
|
-
header: {
|
|
315
|
-
title: { tag: 'plain_text', content: `🖥️ ${cliName} · ${escapeMd(title)}` },
|
|
316
|
-
template: 'blue',
|
|
317
|
-
},
|
|
318
|
-
elements: [
|
|
319
|
-
{ tag: 'action', actions },
|
|
320
|
-
],
|
|
321
|
-
};
|
|
322
|
-
return JSON.stringify(card);
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Build the "session closed" card shown after `/close` (or the close button).
|
|
326
|
-
* Surfaces a Resume button + a copyable terminal command so the user has an
|
|
327
|
-
* obvious path back instead of just a dead-end status text.
|
|
328
|
-
*
|
|
329
|
-
* The terminal command is the *CLI's own* resume invocation (e.g.
|
|
330
|
-
* `claude --resume <id>`), built by the per-CLI adapter's
|
|
331
|
-
* `buildResumeCommand`. That keeps the conversation portable: users can
|
|
332
|
-
* pick it up locally without going through botmux. CLIs that can't resume
|
|
333
|
-
* a specific session from CLI args (gemini's "latest only") surface a
|
|
334
|
-
* fallback note instead of a fake command.
|
|
335
|
-
*
|
|
336
|
-
* The "▶️ 恢复会话" button still goes through botmux — it re-enables the
|
|
337
|
-
* Lark bridge so future replies route back into this topic.
|
|
338
|
-
*/
|
|
339
|
-
export function buildSessionClosedCard(sessionId, rootId, title, cliId, workingDir, cliResumeCommand, locale, runtimeDisplayName) {
|
|
340
|
-
const cliName = runtimeDisplayName?.trim() || getCliDisplayName(cliId ?? 'claude-code');
|
|
341
|
-
const actionBase = { root_id: rootId, session_id: sessionId, cli_id: cliId ?? 'claude-code' };
|
|
342
|
-
const dirLine = workingDir ? `\n${t('card.body.working_dir', undefined, locale)}\`${escapeMd(workingDir)}\`` : '';
|
|
343
|
-
const cmdBlock = cliResumeCommand
|
|
344
|
-
? `${t('card.body.click_resume_or_run', undefined, locale)}\n\`\`\`\n${cliResumeCommand}\n\`\`\``
|
|
345
|
-
: `${t('card.body.click_resume_only', undefined, locale)}\n${t('card.body.cli_no_cli_resume', { cliName: escapeMd(cliName) }, locale)}`;
|
|
346
|
-
const body = `**${escapeMd(title || cliName)}**\n` +
|
|
347
|
-
`${t('card.body.cli_terminated', { cliName: escapeMd(cliName) }, locale)}${cmdBlock}` +
|
|
348
|
-
dirLine;
|
|
349
|
-
const card = {
|
|
350
|
-
config: { wide_screen_mode: true },
|
|
351
|
-
header: {
|
|
352
|
-
title: { tag: 'plain_text', content: t('card.status.session_closed', undefined, locale) },
|
|
353
|
-
template: 'grey',
|
|
354
|
-
},
|
|
355
|
-
elements: [
|
|
356
|
-
{ tag: 'markdown', content: body },
|
|
357
|
-
{
|
|
358
|
-
tag: 'action',
|
|
359
|
-
actions: [
|
|
360
|
-
{
|
|
361
|
-
tag: 'button',
|
|
362
|
-
text: { tag: 'plain_text', content: t('card.btn.resume_session', undefined, locale) },
|
|
363
|
-
type: 'primary',
|
|
364
|
-
value: { action: 'resume', ...actionBase },
|
|
365
|
-
},
|
|
366
|
-
],
|
|
367
|
-
},
|
|
368
|
-
],
|
|
369
|
-
};
|
|
370
|
-
return JSON.stringify(card);
|
|
371
|
-
}
|
|
372
|
-
/** Parent-topic panel for `/fork <task>`. Links and live/closed state are
|
|
373
|
-
* resolved by the command layer; this function only renders the card. */
|
|
374
|
-
export function buildForkPanelCard(children, locale) {
|
|
375
|
-
if (children.length === 0) {
|
|
376
|
-
return JSON.stringify({
|
|
377
|
-
schema: '2.0',
|
|
378
|
-
config: { update_multi: true },
|
|
379
|
-
header: {
|
|
380
|
-
template: 'purple',
|
|
381
|
-
title: { tag: 'plain_text', content: t('card.fork_panel.title', undefined, locale) },
|
|
382
|
-
},
|
|
383
|
-
body: {
|
|
384
|
-
direction: 'vertical',
|
|
385
|
-
elements: [{ tag: 'markdown', content: t('card.fork_panel.empty', undefined, locale) }],
|
|
386
|
-
},
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
const rows = children.map(child => ({
|
|
390
|
-
instruction: child.instruction.replace(/\s*\n+\s*/g, ' ').slice(0, 300) || '—',
|
|
391
|
-
status: child.status === 'active'
|
|
392
|
-
? t('card.fork_panel.running', undefined, locale)
|
|
393
|
-
: t('card.fork_panel.done', undefined, locale),
|
|
394
|
-
link: `[${t('card.fork_panel.goto', undefined, locale)}](${child.link})`,
|
|
395
|
-
}));
|
|
396
|
-
return JSON.stringify({
|
|
397
|
-
schema: '2.0',
|
|
398
|
-
config: { update_multi: true },
|
|
399
|
-
header: {
|
|
400
|
-
template: 'purple',
|
|
401
|
-
title: { tag: 'plain_text', content: t('card.fork_panel.title', undefined, locale) },
|
|
402
|
-
},
|
|
403
|
-
body: {
|
|
404
|
-
direction: 'vertical',
|
|
405
|
-
elements: [{
|
|
406
|
-
tag: 'table',
|
|
407
|
-
page_size: 10,
|
|
408
|
-
row_height: 'low',
|
|
409
|
-
header_style: {
|
|
410
|
-
text_align: 'left',
|
|
411
|
-
text_size: 'normal',
|
|
412
|
-
background_style: 'grey',
|
|
413
|
-
text_color: 'default',
|
|
414
|
-
bold: true,
|
|
415
|
-
lines: 1,
|
|
416
|
-
},
|
|
417
|
-
columns: [
|
|
418
|
-
{ name: 'instruction', display_name: t('card.fork_panel.col_instruction', undefined, locale), data_type: 'text', width: 'auto' },
|
|
419
|
-
{ name: 'status', display_name: t('card.fork_panel.col_status', undefined, locale), data_type: 'text', width: '90px' },
|
|
420
|
-
{ name: 'link', display_name: t('card.fork_panel.col_link', undefined, locale), data_type: 'lark_md', width: '90px' },
|
|
421
|
-
],
|
|
422
|
-
rows,
|
|
423
|
-
}],
|
|
424
|
-
},
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
/** Collapse whitespace and clip a discovered-command description for a table cell. */
|
|
428
|
-
function clipDesc(desc) {
|
|
429
|
-
if (!desc)
|
|
430
|
-
return '—';
|
|
431
|
-
const flat = desc.replace(/\s+/g, ' ').trim();
|
|
432
|
-
return flat.length > 70 ? flat.slice(0, 69) + '…' : flat;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Build the `/list-slash-command` card (schema 2.0): a coloured header and four
|
|
436
|
-
* sections — ① fixed passthrough allowlist, ② adapter-default passthrough,
|
|
437
|
-
* ③ user-configured custom passthrough, ④ auto-discovered CLI commands/skills/plugins
|
|
438
|
-
* rendered as a paginated native table (command | description). An optional MCP
|
|
439
|
-
* servers note is appended.
|
|
440
|
-
*/
|
|
441
|
-
export function buildSlashListCard(params, locale) {
|
|
442
|
-
const { cliName, builtin, adapterDefaults = [], custom, discovered, workingDir, mcpServers, discoverySupported = true } = params;
|
|
443
|
-
const asCode = (cmds) => cmds.map((c) => `\`${c}\``).join(' ');
|
|
444
|
-
const elements = [];
|
|
445
|
-
// ① 固定放行(内置透传白名单)
|
|
446
|
-
elements.push({
|
|
447
|
-
tag: 'markdown',
|
|
448
|
-
content: `**${t('slashlist.part_builtin', undefined, locale)}**\n${builtin.length ? asCode(builtin) : '—'}`,
|
|
449
|
-
});
|
|
450
|
-
elements.push({ tag: 'hr' });
|
|
451
|
-
// ② 当前 CLI adapter 默认透传
|
|
452
|
-
elements.push({
|
|
453
|
-
tag: 'markdown',
|
|
454
|
-
content: `**${t('slashlist.part_adapter', undefined, locale)}**\n${adapterDefaults.length ? asCode(adapterDefaults) : '—'}`,
|
|
455
|
-
});
|
|
456
|
-
elements.push({ tag: 'hr' });
|
|
457
|
-
// ③ 用户自定义配置
|
|
458
|
-
elements.push({
|
|
459
|
-
tag: 'markdown',
|
|
460
|
-
content: `**${t('slashlist.part_custom', undefined, locale)}**\n${custom.length ? asCode(custom) : t('slashlist.part_custom_empty', undefined, locale)}`,
|
|
461
|
-
});
|
|
462
|
-
elements.push({ tag: 'hr' });
|
|
463
|
-
// ④ 自动发现(命令 / skill / 插件)
|
|
464
|
-
const markdownCliName = escapeMd(cliName);
|
|
465
|
-
const discHeading = `**${t('slashlist.part_discovered', { cliName: markdownCliName }, locale)}**`;
|
|
466
|
-
if (!discoverySupported) {
|
|
467
|
-
elements.push({
|
|
468
|
-
tag: 'markdown',
|
|
469
|
-
content: `${discHeading}\n${t('slashlist.part_discovered_unsupported', { cliName: markdownCliName }, locale)}`,
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
else if (discovered.length === 0) {
|
|
473
|
-
elements.push({
|
|
474
|
-
tag: 'markdown',
|
|
475
|
-
content: `${discHeading}\n${t('slashlist.part_discovered_empty', { dir: workingDir }, locale)}`,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
const MAX = 60;
|
|
480
|
-
const shown = discovered.slice(0, MAX);
|
|
481
|
-
elements.push({ tag: 'markdown', content: `${discHeading} · ${discovered.length}` });
|
|
482
|
-
elements.push({
|
|
483
|
-
tag: 'table',
|
|
484
|
-
page_size: 10,
|
|
485
|
-
row_height: 'low',
|
|
486
|
-
header_style: {
|
|
487
|
-
text_align: 'left',
|
|
488
|
-
text_size: 'normal',
|
|
489
|
-
background_style: 'grey',
|
|
490
|
-
text_color: 'default',
|
|
491
|
-
bold: true,
|
|
492
|
-
lines: 1,
|
|
493
|
-
},
|
|
494
|
-
columns: [
|
|
495
|
-
{ name: 'cmd', display_name: t('slashlist.col_cmd', undefined, locale), data_type: 'lark_md', width: '200px' },
|
|
496
|
-
{ name: 'desc', display_name: t('slashlist.col_desc', undefined, locale), data_type: 'text', width: 'auto' },
|
|
497
|
-
],
|
|
498
|
-
rows: shown.map((c) => ({ cmd: `\`${c.name}\``, desc: clipDesc(c.description) })),
|
|
499
|
-
});
|
|
500
|
-
if (discovered.length > MAX) {
|
|
501
|
-
// schema 2.0 卡片已不支持 note 标签(飞书 ErrCode 200861),改用 markdown 元素
|
|
502
|
-
elements.push({
|
|
503
|
-
tag: 'markdown',
|
|
504
|
-
content: t('slashlist.more', { n: String(discovered.length - MAX) }, locale),
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
// MCP 提示(server 名,prompt 需运行时握手不在此列)
|
|
509
|
-
if (mcpServers.length > 0) {
|
|
510
|
-
elements.push({ tag: 'hr' });
|
|
511
|
-
// schema 2.0 卡片已不支持 note 标签(飞书 ErrCode 200861),改用 markdown 元素
|
|
512
|
-
elements.push({
|
|
513
|
-
tag: 'markdown',
|
|
514
|
-
content: t('slashlist.mcp_note', { servers: mcpServers.join(', ') }, locale),
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
return JSON.stringify({
|
|
518
|
-
schema: '2.0',
|
|
519
|
-
config: { update_multi: true },
|
|
520
|
-
header: {
|
|
521
|
-
template: 'blue',
|
|
522
|
-
title: { tag: 'plain_text', content: t('slashlist.heading', { cliName }, locale) },
|
|
523
|
-
},
|
|
524
|
-
body: { direction: 'vertical', elements },
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
export function buildDetouredPendingResponseCard(locale) {
|
|
528
|
-
return JSON.stringify({
|
|
529
|
-
schema: '2.0',
|
|
530
|
-
config: { update_multi: true },
|
|
531
|
-
header: {
|
|
532
|
-
template: 'grey',
|
|
533
|
-
title: { tag: 'plain_text', content: t('card.pending.detoured_title', undefined, locale) },
|
|
534
|
-
},
|
|
535
|
-
body: {
|
|
536
|
-
direction: 'vertical',
|
|
537
|
-
elements: [
|
|
538
|
-
{ tag: 'markdown', content: t('card.pending.detoured_body', undefined, locale) },
|
|
539
|
-
],
|
|
540
|
-
},
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
/**
|
|
544
|
-
* Build a frozen-snapshot card to PATCH onto the source-chat streaming card
|
|
545
|
-
* after `/relay` moves the session elsewhere.
|
|
546
|
-
*
|
|
547
|
-
* Why this exists: a live streaming card carries action buttons (close /
|
|
548
|
-
* toggle display / get write link). Those buttons identify their session by
|
|
549
|
-
* `session_id` in the value payload, so clicking them after relay still
|
|
550
|
-
* reaches the now-relocated session — closing it, toggling its display
|
|
551
|
-
* mode, etc. — but the visible feedback all lands on the NEW card in the
|
|
552
|
-
* target chat, not this one. The source-chat card then looks like a "live
|
|
553
|
-
* console" while actually being a footgun. PATCH it to an inert snapshot
|
|
554
|
-
* so the user sees clearly it's historical.
|
|
555
|
-
*
|
|
556
|
-
* Last-frame rendering:
|
|
557
|
-
* - imageKey present (session was in 'screenshot' / expanded mode at
|
|
558
|
-
* relay time) → embed the same img element the live card had.
|
|
559
|
-
* img_key is a Lark server resource independent of the card it lived
|
|
560
|
-
* on, so the PATCHed card can still reference it.
|
|
561
|
-
* - imageKey absent (hidden / collapsed mode) → render nothing extra.
|
|
562
|
-
* The header + body notice already convey the state; raw tmux pane
|
|
563
|
-
* text as a code-block is too long and noisy (王皓 caught this in
|
|
564
|
-
* testing).
|
|
565
|
-
*
|
|
566
|
-
* No action buttons are rendered in either case.
|
|
567
|
-
*/
|
|
568
|
-
export function buildRelayedFrozenCard(title, cliId, imageKey, locale) {
|
|
569
|
-
const cliName = getCliDisplayName(cliId ?? 'claude-code');
|
|
570
|
-
const body = `**${escapeMd(title || cliName)}**\n` +
|
|
571
|
-
`${t('card.body.relay_frozen', undefined, locale)}`;
|
|
572
|
-
const elements = [
|
|
573
|
-
{ tag: 'markdown', content: body },
|
|
574
|
-
];
|
|
575
|
-
if (imageKey) {
|
|
576
|
-
elements.push({
|
|
577
|
-
tag: 'img',
|
|
578
|
-
img_key: imageKey,
|
|
579
|
-
alt: { tag: 'plain_text', content: '' },
|
|
580
|
-
mode: 'fit_horizontal',
|
|
581
|
-
preview: true,
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
const card = {
|
|
585
|
-
config: { wide_screen_mode: true },
|
|
586
|
-
header: {
|
|
587
|
-
title: { tag: 'plain_text', content: t('card.status.relay_frozen', undefined, locale) },
|
|
588
|
-
template: 'grey',
|
|
589
|
-
},
|
|
590
|
-
elements,
|
|
591
|
-
};
|
|
592
|
-
return JSON.stringify(card);
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Feishu card API rejects payloads exceeding ~109 KB (error 230025).
|
|
596
|
-
* Cap markdown content byte size with headroom for card JSON overhead.
|
|
597
|
-
*/
|
|
598
|
-
const MAX_CONTENT_BYTES = 100_000;
|
|
599
|
-
/**
|
|
600
|
-
* Truncate content to fit within `maxBytes`, keeping the tail (most recent
|
|
601
|
-
* output). Defaults to {@link MAX_CONTENT_BYTES}; callers that wrap the content
|
|
602
|
-
* in additional card JSON (e.g. the private snapshot's code fence) pass a
|
|
603
|
-
* tighter budget so the whole card stays under Feishu's ~109 KB hard limit.
|
|
604
|
-
*/
|
|
605
|
-
export function truncateContent(content, locale, maxBytes = MAX_CONTENT_BYTES) {
|
|
606
|
-
if (Buffer.byteLength(content, 'utf-8') <= maxBytes)
|
|
607
|
-
return content;
|
|
608
|
-
// Binary search for the longest suffix that fits
|
|
609
|
-
const lines = content.split('\n');
|
|
610
|
-
let lo = 0;
|
|
611
|
-
let hi = lines.length;
|
|
612
|
-
while (lo < hi) {
|
|
613
|
-
const mid = Math.floor((lo + hi) / 2);
|
|
614
|
-
const candidate = lines.slice(mid).join('\n');
|
|
615
|
-
if (Buffer.byteLength(candidate, 'utf-8') <= maxBytes - 30) {
|
|
616
|
-
hi = mid;
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
lo = mid + 1;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
return `${t('card.status.truncated_prefix', undefined, locale)}\n${lines.slice(lo).join('\n')}`;
|
|
623
|
-
}
|
|
624
|
-
/** Byte budget for the private snapshot's text fallback. Well under the ~109 KB
|
|
625
|
-
* card limit, leaving room for JSON escaping + the card's structural overhead. */
|
|
626
|
-
const PRIVATE_SNAPSHOT_TEXT_MAX = 50_000;
|
|
627
|
-
const STREAM_TEMPLATE_MAP = {
|
|
628
|
-
starting: 'yellow', working: 'blue', idle: 'green', analyzing: 'purple', limited: 'red', retry_ready: 'green',
|
|
629
|
-
};
|
|
630
|
-
/** Header status label for a streaming/snapshot card. Shared by the live card
|
|
631
|
-
* and the private snapshot so the two never drift. */
|
|
632
|
-
function streamStatusLabel(status, usageLimit, locale) {
|
|
633
|
-
switch (status) {
|
|
634
|
-
case 'starting': return t('card.status.starting', undefined, locale);
|
|
635
|
-
case 'working': return t('card.status.working', undefined, locale);
|
|
636
|
-
case 'idle': return t('card.status.idle', undefined, locale);
|
|
637
|
-
case 'analyzing': return t('card.status.analyzing', undefined, locale);
|
|
638
|
-
case 'limited': return usageLimit?.retryReady
|
|
639
|
-
? t('card.status.retry_ready', undefined, locale)
|
|
640
|
-
: t('card.status.limited', undefined, locale);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
/** Push the shared "output body" elements (usage-limit notice + screenshot) used
|
|
644
|
-
* by both {@link buildStreamingCard} and {@link buildPrivateSnapshotCard}. */
|
|
645
|
-
function pushStreamBody(elements, opts) {
|
|
646
|
-
const { status, usageLimit, displayMode, imageKey, cliName, locale, usage } = opts;
|
|
647
|
-
if (status === 'limited' && usageLimit) {
|
|
648
|
-
elements.push({
|
|
649
|
-
tag: 'markdown',
|
|
650
|
-
content: usageLimit.retryReady
|
|
651
|
-
? t('card.usage_limit.retry_ready', { cliName: escapeMd(cliName) }, locale)
|
|
652
|
-
: t('card.usage_limit.retry_at', { cliName: escapeMd(cliName), retryLabel: usageLimit.retryLabel }, locale),
|
|
653
|
-
});
|
|
654
|
-
elements.push({ tag: 'hr' });
|
|
655
|
-
}
|
|
656
|
-
if (displayMode === 'screenshot') {
|
|
657
|
-
if (imageKey) {
|
|
658
|
-
elements.push({ tag: 'img', img_key: imageKey, alt: { tag: 'plain_text', content: '' }, mode: 'fit_horizontal', preview: true });
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
elements.push({ tag: 'markdown', content: t('card.status.waiting_screenshot', undefined, locale) });
|
|
662
|
-
}
|
|
663
|
-
elements.push({ tag: 'hr' });
|
|
664
|
-
}
|
|
665
|
-
// Native Context / Token usage line (grey, small) when this bot displays usage
|
|
666
|
-
// on the streaming card. Missing metrics are omitted independently by
|
|
667
|
-
// cardUsageFooterSegment; a fully-empty snapshot renders nothing.
|
|
668
|
-
const usageSeg = usage ? cardUsageFooterSegment(usage, locale, 'streaming') : null;
|
|
669
|
-
if (usageSeg) {
|
|
670
|
-
elements.push({
|
|
671
|
-
tag: 'markdown',
|
|
672
|
-
text_size: 'notation_small_v2',
|
|
673
|
-
content: `<font color='grey'>${usageSeg}</font>`,
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* Build a Feishu streaming card that shows live terminal output + controls.
|
|
679
|
-
* This card is PATCHed in-place as the CLI works.
|
|
680
|
-
*
|
|
681
|
-
* displayMode:
|
|
682
|
-
* - 'hidden' — body collapsed; only header + main controls visible.
|
|
683
|
-
* - 'screenshot' — img element (rendered server-side, uploaded for img_key).
|
|
684
|
-
*
|
|
685
|
-
* Quick-action buttons (Esc, ^C, Tab, Space, Enter, ←↑↓→, ½屏 ↑/↓) appear
|
|
686
|
-
* whenever displayMode !== 'hidden'.
|
|
687
|
-
*/
|
|
688
|
-
export function buildStreamingCard(sessionId, rootId, terminalUrl, title, screenContent, status, cliId, displayMode = 'hidden', cardNonce, imageKey, adoptMode, showTakeover, locale, usageLimit, writableTerminalUrl, localCliReady = false, usage, runtimeDisplayName, serviceTierBadge) {
|
|
689
|
-
const effectiveCliId = cliId ?? 'claude-code';
|
|
690
|
-
const cliName = runtimeDisplayName?.trim() || getCliDisplayName(effectiveCliId);
|
|
691
|
-
const actionBase = { root_id: rootId, session_id: sessionId, cli_id: effectiveCliId, ...(cardNonce ? { card_nonce: cardNonce } : {}) };
|
|
692
|
-
const displayStatus = status === 'limited' && usageLimit?.retryReady ? 'retry_ready' : status;
|
|
693
|
-
const elements = [];
|
|
694
|
-
// ── Output body (shared with the private snapshot card) ──────────────────
|
|
695
|
-
pushStreamBody(elements, { status, usageLimit, displayMode, imageKey, cliName, locale, usage });
|
|
696
|
-
// ── Main control row: display toggle, mode toggle, terminal, manage ─────
|
|
697
|
-
const headerActions = [];
|
|
698
|
-
headerActions.push({
|
|
699
|
-
tag: 'button',
|
|
700
|
-
text: { tag: 'plain_text', content: t(displayMode === 'hidden' ? 'card.btn.show_output' : 'card.btn.hide_output', undefined, locale) },
|
|
701
|
-
type: 'default',
|
|
702
|
-
value: { action: 'toggle_display', ...actionBase },
|
|
703
|
-
});
|
|
704
|
-
if (displayMode !== 'hidden') {
|
|
705
|
-
headerActions.push({
|
|
706
|
-
tag: 'button',
|
|
707
|
-
text: { tag: 'plain_text', content: t('card.btn.export_text', undefined, locale) },
|
|
708
|
-
type: 'default',
|
|
709
|
-
value: { action: 'export_text', ...actionBase },
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
if (displayMode === 'screenshot') {
|
|
713
|
-
headerActions.push({
|
|
714
|
-
tag: 'button',
|
|
715
|
-
text: { tag: 'plain_text', content: t('card.btn.refresh', undefined, locale) },
|
|
716
|
-
type: 'default',
|
|
717
|
-
value: { action: 'refresh_screenshot', ...actionBase },
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
if (terminalUrl) {
|
|
721
|
-
headerActions.push({
|
|
722
|
-
tag: 'button',
|
|
723
|
-
text: { tag: 'plain_text', content: t('card.btn.open_terminal', undefined, locale) },
|
|
724
|
-
type: 'primary',
|
|
725
|
-
multi_url: terminalMultiUrl(terminalUrl),
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
const localBtn = cliId ? localCliButton(effectiveCliId, actionBase, locale, localCliReady, runtimeDisplayName) : undefined;
|
|
729
|
-
if (localBtn)
|
|
730
|
-
headerActions.push(localBtn);
|
|
731
|
-
if (status === 'limited' && usageLimit?.retryReady) {
|
|
732
|
-
headerActions.push({
|
|
733
|
-
tag: 'button',
|
|
734
|
-
text: { tag: 'plain_text', content: t('card.btn.retry_last_task', undefined, locale) },
|
|
735
|
-
type: 'primary',
|
|
736
|
-
value: { action: 'retry_last_task', ...actionBase },
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
if (terminalUrl) {
|
|
740
|
-
headerActions.push({
|
|
741
|
-
tag: 'button',
|
|
742
|
-
text: { tag: 'plain_text', content: t('card.btn.get_write_link', undefined, locale) },
|
|
743
|
-
type: 'default',
|
|
744
|
-
value: { action: 'get_write_link', ...actionBase },
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
if (adoptMode) {
|
|
748
|
-
if (showTakeover) {
|
|
749
|
-
headerActions.push({
|
|
750
|
-
tag: 'button',
|
|
751
|
-
text: { tag: 'plain_text', content: t('card.btn.takeover', undefined, locale) },
|
|
752
|
-
type: 'default',
|
|
753
|
-
value: { action: 'takeover', ...actionBase },
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
headerActions.push({
|
|
757
|
-
tag: 'button',
|
|
758
|
-
text: { tag: 'plain_text', content: t('card.btn.disconnect', undefined, locale) },
|
|
759
|
-
type: 'danger',
|
|
760
|
-
value: { action: 'disconnect', ...actionBase },
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
else {
|
|
764
|
-
headerActions.push({
|
|
765
|
-
tag: 'button',
|
|
766
|
-
text: { tag: 'plain_text', content: t('card.btn.close_session', undefined, locale) },
|
|
767
|
-
type: 'danger',
|
|
768
|
-
value: { action: 'close', ...actionBase },
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
elements.push({ tag: 'action', actions: headerActions });
|
|
772
|
-
// ── Writable terminal link (opt-in) ─────────────────────────────────────
|
|
773
|
-
// When the bot enables `writableTerminalLinkInCard`, embed the token-bearing
|
|
774
|
-
// link right in the card so anyone here can open a writable terminal without
|
|
775
|
-
// the get-write-link → DM round-trip. The link is intentionally group-visible.
|
|
776
|
-
if (writableTerminalUrl) {
|
|
777
|
-
elements.push({
|
|
778
|
-
tag: 'markdown',
|
|
779
|
-
content: t('card.writable_terminal_link', { url: writableTerminalUrl }, locale),
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
// ── Quick-action keys (only when the screenshot is visible — in text mode
|
|
783
|
-
// there's no visible cursor/input, so these keys would fire blindly) ──
|
|
784
|
-
// riff:远端任务后端没有可驱动的终端,PTY 快捷键只会变成内容为控制字符的
|
|
785
|
-
// follow-up 任务(worker 侧也有同款拒绝守卫),整排隐藏。
|
|
786
|
-
if (displayMode === 'screenshot' && cliId !== 'riff') {
|
|
787
|
-
const mkKey = (label, key) => ({
|
|
788
|
-
tag: 'button',
|
|
789
|
-
text: { tag: 'plain_text', content: label },
|
|
790
|
-
type: 'default',
|
|
791
|
-
value: { action: 'term_action', ...actionBase, key },
|
|
792
|
-
});
|
|
793
|
-
elements.push({
|
|
794
|
-
tag: 'action',
|
|
795
|
-
actions: [
|
|
796
|
-
mkKey('Esc', 'esc'),
|
|
797
|
-
mkKey('^C', 'ctrlc'),
|
|
798
|
-
mkKey('Tab', 'tab'),
|
|
799
|
-
mkKey('␣ Space', 'space'),
|
|
800
|
-
mkKey('↵ Enter', 'enter'),
|
|
801
|
-
],
|
|
802
|
-
});
|
|
803
|
-
elements.push({
|
|
804
|
-
tag: 'action',
|
|
805
|
-
actions: [
|
|
806
|
-
mkKey('←', 'left'),
|
|
807
|
-
mkKey('↑', 'up'),
|
|
808
|
-
mkKey('↓', 'down'),
|
|
809
|
-
mkKey('→', 'right'),
|
|
810
|
-
mkKey(t('card.btn.half_page_up', undefined, locale), 'half_page_up'),
|
|
811
|
-
mkKey(t('card.btn.half_page_down', undefined, locale), 'half_page_down'),
|
|
812
|
-
],
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
const card = {
|
|
816
|
-
config: { wide_screen_mode: true },
|
|
817
|
-
header: {
|
|
818
|
-
title: { tag: 'plain_text', content: `🖥️ ${cliName}${serviceTierBadge ? ` ${serviceTierBadge}` : ''} · ${escapeMd(title)} — ${streamStatusLabel(status, usageLimit, locale)}` },
|
|
819
|
-
template: STREAM_TEMPLATE_MAP[displayStatus],
|
|
820
|
-
},
|
|
821
|
-
elements,
|
|
822
|
-
};
|
|
823
|
-
return JSON.stringify(card);
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* Build a static "private snapshot" card for `/card` in private mode — sent via
|
|
827
|
-
* the ephemeral API to one user at a time. Unlike {@link buildStreamingCard} it
|
|
828
|
-
* is **never PATCH-updated** (ephemeral cards can't be), so it carries only a
|
|
829
|
-
* one-shot snapshot of the terminal screenshot plus controls:
|
|
830
|
-
* • when available, a read-only "open terminal" link and "get write link";
|
|
831
|
-
* • "close session", whose callback kills the session and (in private mode)
|
|
832
|
-
* sends the "closed" card ephemeral to the owner audience too — so the
|
|
833
|
-
* session title / CLI name / workingDir on it don't leak to the group.
|
|
834
|
-
* The last two have callbacks but neither patches THIS card (one DMs, the other
|
|
835
|
-
* sends a fresh card), so both work fine on an ephemeral card. Both are
|
|
836
|
-
* `canOperate`-gated in the handler — talk-only viewers who tap them are denied.
|
|
837
|
-
* The patch-driven controls (toggle/refresh/export/term keys) and the inline
|
|
838
|
-
* writable link are still omitted: those need to update this card, which
|
|
839
|
-
* ephemeral cards can't do.
|
|
840
|
-
*/
|
|
841
|
-
export function buildPrivateSnapshotCard(terminalUrl, title, status, cliId, imageKey, screenContent, sessionId, rootId, locale, usageLimit, runtimeDisplayName) {
|
|
842
|
-
const effectiveCliId = cliId ?? 'claude-code';
|
|
843
|
-
const cliName = runtimeDisplayName?.trim() || getCliDisplayName(effectiveCliId);
|
|
844
|
-
const displayStatus = status === 'limited' && usageLimit?.retryReady ? 'retry_ready' : status;
|
|
845
|
-
// `visibility: 'private'` pins this card's privacy intent onto the action
|
|
846
|
-
// itself, so a later callback (notably `close`) keeps sending ephemeral even
|
|
847
|
-
// if the bot's `privateCard` config is toggled off after the card was sent —
|
|
848
|
-
// otherwise the closed card (session title / workingDir / resume command)
|
|
849
|
-
// could leak to the group. See the `close` handler in card-handler.ts.
|
|
850
|
-
const actionBase = { root_id: rootId, session_id: sessionId, cli_id: effectiveCliId, visibility: 'private' };
|
|
851
|
-
const elements = [];
|
|
852
|
-
// Show the terminal once: prefer the rendered screenshot when present;
|
|
853
|
-
// otherwise fall back to a code-block of the latest screen text so the
|
|
854
|
-
// snapshot isn't empty (common when the bot has the streaming card disabled
|
|
855
|
-
// or display mode never flipped to screenshot — `lastScreenContent` is still
|
|
856
|
-
// kept up to date regardless). pushStreamBody also emits the usage-limit
|
|
857
|
-
// notice, which applies in either case.
|
|
858
|
-
pushStreamBody(elements, {
|
|
859
|
-
status, usageLimit, displayMode: imageKey ? 'screenshot' : 'hidden', imageKey, cliName, locale,
|
|
860
|
-
});
|
|
861
|
-
if (!imageKey) {
|
|
862
|
-
const text = (screenContent ?? '').replace(/[ \t\r\n]+$/, '');
|
|
863
|
-
if (text) {
|
|
864
|
-
const body = truncateContent(text, locale, PRIVATE_SNAPSHOT_TEXT_MAX);
|
|
865
|
-
// Fence must be longer than the longest backtick run in the body, else
|
|
866
|
-
// terminal output containing ``` would break out of the code block.
|
|
867
|
-
const maxRun = (body.match(/`+/g) ?? []).reduce((m, r) => Math.max(m, r.length), 0);
|
|
868
|
-
const fence = '`'.repeat(Math.max(3, maxRun + 1));
|
|
869
|
-
elements.push({ tag: 'markdown', content: `${fence}\n${body}\n${fence}` });
|
|
870
|
-
elements.push({ tag: 'hr' });
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
const actions = [];
|
|
874
|
-
if (terminalUrl) {
|
|
875
|
-
actions.push({
|
|
876
|
-
tag: 'button',
|
|
877
|
-
text: { tag: 'plain_text', content: t('card.btn.open_terminal', undefined, locale) },
|
|
878
|
-
type: 'primary',
|
|
879
|
-
multi_url: terminalMultiUrl(terminalUrl),
|
|
880
|
-
}, {
|
|
881
|
-
tag: 'button',
|
|
882
|
-
text: { tag: 'plain_text', content: t('card.btn.get_write_link', undefined, locale) },
|
|
883
|
-
type: 'default',
|
|
884
|
-
value: { action: 'get_write_link', ...actionBase },
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
actions.push({
|
|
888
|
-
tag: 'button',
|
|
889
|
-
text: { tag: 'plain_text', content: t('card.btn.close_session', undefined, locale) },
|
|
890
|
-
type: 'danger',
|
|
891
|
-
value: { action: 'close', ...actionBase },
|
|
892
|
-
});
|
|
893
|
-
elements.push({ tag: 'action', actions });
|
|
894
|
-
elements.push({
|
|
895
|
-
tag: 'note',
|
|
896
|
-
elements: [{
|
|
897
|
-
tag: 'lark_md',
|
|
898
|
-
content: t(terminalUrl ? 'card.private.snapshot_note' : 'card.private.snapshot_note_no_terminal', undefined, locale),
|
|
899
|
-
}],
|
|
900
|
-
});
|
|
901
|
-
const card = {
|
|
902
|
-
config: { wide_screen_mode: true },
|
|
903
|
-
header: {
|
|
904
|
-
title: { tag: 'plain_text', content: `🔒 ${cliName} · ${escapeMd(title)} — ${streamStatusLabel(status, usageLimit, locale)}` },
|
|
905
|
-
template: STREAM_TEMPLATE_MAP[displayStatus],
|
|
906
|
-
},
|
|
907
|
-
elements,
|
|
908
|
-
};
|
|
909
|
-
return JSON.stringify(card);
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* Build a Feishu interactive card with a dropdown selector for projects.
|
|
913
|
-
* Returns a JSON string suitable for msg_type: 'interactive'.
|
|
914
|
-
*/
|
|
915
|
-
/** The worktree multi-select form element (multi_select + branch input + submit),
|
|
916
|
-
* inlined into the repo card when the bot is in multi-repo-picker mode. */
|
|
917
|
-
function worktreeMultiForm(worktreeOptions, rootMessageId, locale) {
|
|
918
|
-
return {
|
|
919
|
-
tag: 'form',
|
|
920
|
-
name: 'repo_worktree_submit_form',
|
|
921
|
-
elements: [
|
|
922
|
-
{
|
|
923
|
-
tag: 'column_set',
|
|
924
|
-
flex_mode: 'none',
|
|
925
|
-
horizontal_spacing: 'default',
|
|
926
|
-
columns: [
|
|
927
|
-
{
|
|
928
|
-
tag: 'column', width: 'weighted', weight: 2, vertical_align: 'center',
|
|
929
|
-
elements: [{
|
|
930
|
-
tag: 'multi_select_static',
|
|
931
|
-
name: 'repo_worktree_paths',
|
|
932
|
-
required: true,
|
|
933
|
-
width: 'fill',
|
|
934
|
-
placeholder: { tag: 'plain_text', content: t('card.repo.placeholder_worktree_multi', undefined, locale) },
|
|
935
|
-
options: worktreeOptions,
|
|
936
|
-
}],
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
tag: 'column', width: 'weighted', weight: 1, vertical_align: 'center',
|
|
940
|
-
elements: [{
|
|
941
|
-
tag: 'input',
|
|
942
|
-
name: 'repo_worktree_branch',
|
|
943
|
-
placeholder: { tag: 'plain_text', content: t('card.repo.worktree_branch_placeholder', undefined, locale) },
|
|
944
|
-
}],
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
tag: 'column', width: 'auto', vertical_align: 'center',
|
|
948
|
-
elements: [{
|
|
949
|
-
tag: 'button',
|
|
950
|
-
name: 'repo_worktree_submit',
|
|
951
|
-
text: { tag: 'plain_text', content: t('card.btn.worktree_repo', undefined, locale) },
|
|
952
|
-
type: 'default',
|
|
953
|
-
action_type: 'form_submit',
|
|
954
|
-
value: { action: 'repo_worktree_submit', root_id: rootMessageId ?? '' },
|
|
955
|
-
}],
|
|
956
|
-
},
|
|
957
|
-
],
|
|
958
|
-
},
|
|
959
|
-
],
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
/** Repo selection card. `multiPicker` (persisted per-bot via worktreeMultiPicker)
|
|
963
|
-
* flips the worktree control between an instant single-select dropdown (false)
|
|
964
|
-
* and the inline multi-select form (true). */
|
|
965
|
-
export function buildRepoSelectCard(projects, currentPath, rootMessageId, locale, multiPicker) {
|
|
966
|
-
const currentMarker = t('card.repo.current_marker', undefined, locale);
|
|
967
|
-
const options = projects.map((p, i) => {
|
|
968
|
-
const currentTag = p.path === currentPath ? currentMarker : '';
|
|
969
|
-
const typeTag = p.type === 'worktree' ? ' [worktree]' : '';
|
|
970
|
-
return {
|
|
971
|
-
text: { tag: 'plain_text', content: `${i + 1}. ${p.name} (${p.branch})${typeTag}${currentTag}` },
|
|
972
|
-
value: p.path,
|
|
973
|
-
};
|
|
974
|
-
});
|
|
975
|
-
// Second dropdown: open a repo as a NEW worktree (branched off its remote
|
|
976
|
-
// default branch). Only main checkouts make sense as sources — existing
|
|
977
|
-
// worktrees of the same repo would just duplicate the list.
|
|
978
|
-
const worktreeOptions = projects
|
|
979
|
-
.filter(p => p.type === 'repo')
|
|
980
|
-
.map(p => ({
|
|
981
|
-
text: { tag: 'plain_text', content: `${p.name} (${p.branch})` },
|
|
982
|
-
value: p.path,
|
|
983
|
-
}));
|
|
984
|
-
const card = {
|
|
985
|
-
config: { wide_screen_mode: true },
|
|
986
|
-
header: {
|
|
987
|
-
template: 'blue',
|
|
988
|
-
title: { tag: 'plain_text', content: t('card.repo.title', undefined, locale) },
|
|
989
|
-
},
|
|
990
|
-
elements: [
|
|
991
|
-
// Current working directory + 「直接开启会话」on the same row: the skip
|
|
992
|
-
// button means "use this directory as-is, don't pick a repo", so it pairs
|
|
993
|
-
// with the current-dir line rather than the switch dropdown below.
|
|
994
|
-
{
|
|
995
|
-
tag: 'column_set',
|
|
996
|
-
// flow: columns sit side-by-side on desktop and reflow (button wraps
|
|
997
|
-
// below) on narrow mobile instead of squeezing the button until its
|
|
998
|
-
// label truncates. auto-width columns size to content, so the text and
|
|
999
|
-
// button hug each other (no wide desktop gap) and the button always
|
|
1000
|
-
// shows its full label.
|
|
1001
|
-
flex_mode: 'flow',
|
|
1002
|
-
horizontal_spacing: 'default',
|
|
1003
|
-
columns: [
|
|
1004
|
-
{
|
|
1005
|
-
tag: 'column',
|
|
1006
|
-
width: 'auto',
|
|
1007
|
-
vertical_align: 'center',
|
|
1008
|
-
elements: [
|
|
1009
|
-
{
|
|
1010
|
-
tag: 'div',
|
|
1011
|
-
text: {
|
|
1012
|
-
tag: 'lark_md',
|
|
1013
|
-
content: `${t('card.repo.current_active', undefined, locale)}**${escapeMd(currentPath ?? 'N/A')}**`,
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
|
-
],
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
tag: 'column',
|
|
1020
|
-
width: 'auto',
|
|
1021
|
-
vertical_align: 'center',
|
|
1022
|
-
elements: [
|
|
1023
|
-
{
|
|
1024
|
-
tag: 'button',
|
|
1025
|
-
text: { tag: 'plain_text', content: t('card.btn.skip_repo', undefined, locale) },
|
|
1026
|
-
type: 'primary',
|
|
1027
|
-
value: { action: 'skip_repo', root_id: rootMessageId ?? '' },
|
|
1028
|
-
},
|
|
1029
|
-
],
|
|
1030
|
-
},
|
|
1031
|
-
],
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
tag: 'hr',
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
tag: 'action',
|
|
1038
|
-
actions: [
|
|
1039
|
-
{
|
|
1040
|
-
tag: 'select_static',
|
|
1041
|
-
placeholder: { tag: 'plain_text', content: t('card.repo.placeholder_switch', undefined, locale) },
|
|
1042
|
-
options,
|
|
1043
|
-
value: { key: 'repo_switch', root_id: rootMessageId ?? '' },
|
|
1044
|
-
},
|
|
1045
|
-
],
|
|
1046
|
-
},
|
|
1047
|
-
// Worktree open. Two modes, persisted per-bot (worktreeMultiPicker):
|
|
1048
|
-
// • single (default) — instant single-select dropdown + a short 「🔀 多仓库」
|
|
1049
|
-
// button on the SAME action row (a select_static can't live in a
|
|
1050
|
-
// column_set, so it can't be weight-filled like the manual input; a short
|
|
1051
|
-
// a column_set so the dropdown weight-fills and the toggle button hugs
|
|
1052
|
-
// the right edge — same row, same alignment as the manual-entry row,
|
|
1053
|
-
// and it never wraps on mobile (the column_set forces one line). A
|
|
1054
|
-
// select_static CAN live in a column_set (it renders + fires); only the
|
|
1055
|
-
// `action` *container* tag is rejected inside a column.
|
|
1056
|
-
// • multi — the inline multi-select form, with a 「🔀 单仓库」toggle on its
|
|
1057
|
-
// own right-aligned row below (the form already fills its row).
|
|
1058
|
-
// The toggle flips the persisted mode for all of this bot's future sessions
|
|
1059
|
-
// (only shown with 2+ main repos — batching a single repo is pointless).
|
|
1060
|
-
...(worktreeOptions.length > 0 ? (multiPicker ? [
|
|
1061
|
-
worktreeMultiForm(worktreeOptions, rootMessageId, locale),
|
|
1062
|
-
...(worktreeOptions.length > 1 ? [{
|
|
1063
|
-
tag: 'column_set',
|
|
1064
|
-
flex_mode: 'none',
|
|
1065
|
-
horizontal_spacing: 'default',
|
|
1066
|
-
columns: [
|
|
1067
|
-
{
|
|
1068
|
-
tag: 'column', width: 'weighted', weight: 1, vertical_align: 'center',
|
|
1069
|
-
elements: [{ tag: 'div', text: { tag: 'lark_md', content: t('card.repo.worktree_now_multi', undefined, locale) } }],
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
tag: 'column', width: 'auto', vertical_align: 'center',
|
|
1073
|
-
elements: [{
|
|
1074
|
-
tag: 'button',
|
|
1075
|
-
text: { tag: 'plain_text', content: t('card.btn.worktree_to_single', undefined, locale) },
|
|
1076
|
-
type: 'default',
|
|
1077
|
-
value: { action: 'worktree_toggle_mode', root_id: rootMessageId ?? '' },
|
|
1078
|
-
}],
|
|
1079
|
-
},
|
|
1080
|
-
],
|
|
1081
|
-
}] : []),
|
|
1082
|
-
] : [{
|
|
1083
|
-
tag: 'column_set',
|
|
1084
|
-
flex_mode: 'none',
|
|
1085
|
-
horizontal_spacing: 'default',
|
|
1086
|
-
columns: [
|
|
1087
|
-
{
|
|
1088
|
-
tag: 'column', width: 'weighted', weight: 1, vertical_align: 'center',
|
|
1089
|
-
elements: [{
|
|
1090
|
-
tag: 'select_static',
|
|
1091
|
-
placeholder: { tag: 'plain_text', content: t('card.repo.placeholder_worktree', undefined, locale) },
|
|
1092
|
-
options: worktreeOptions,
|
|
1093
|
-
value: { key: 'repo_worktree', root_id: rootMessageId ?? '' },
|
|
1094
|
-
}],
|
|
1095
|
-
},
|
|
1096
|
-
...(worktreeOptions.length > 1 ? [{
|
|
1097
|
-
tag: 'column', width: 'auto', vertical_align: 'center',
|
|
1098
|
-
elements: [{
|
|
1099
|
-
tag: 'button',
|
|
1100
|
-
text: { tag: 'plain_text', content: t('card.btn.worktree_to_multi', undefined, locale) },
|
|
1101
|
-
type: 'default',
|
|
1102
|
-
value: { action: 'worktree_toggle_mode', root_id: rootMessageId ?? '' },
|
|
1103
|
-
}],
|
|
1104
|
-
}] : []),
|
|
1105
|
-
],
|
|
1106
|
-
}]) : []),
|
|
1107
|
-
// Manual entry: type any existing local directory the scan didn't surface
|
|
1108
|
-
// (mirrors `/repo <path>`). form_submit hands the input back under
|
|
1109
|
-
// value.action='repo_manual_submit' with form_value.repo_manual_path.
|
|
1110
|
-
{
|
|
1111
|
-
tag: 'form',
|
|
1112
|
-
name: 'repo_manual_form',
|
|
1113
|
-
elements: [
|
|
1114
|
-
// Input + 「使用此目录」on one row (column_set), mirroring the
|
|
1115
|
-
// dropdown+button rhythm above. form_submit still collects
|
|
1116
|
-
// form_value.repo_manual_path from the enclosing form.
|
|
1117
|
-
{
|
|
1118
|
-
tag: 'column_set',
|
|
1119
|
-
// flex_mode 'none' keeps the weighted input filling the row while
|
|
1120
|
-
// the auto-width button hugs its label — input stays usable on
|
|
1121
|
-
// mobile (not squeezed by a flow reflow) and the button never
|
|
1122
|
-
// truncates. (flow mode collapsed the input on narrow screens.)
|
|
1123
|
-
flex_mode: 'none',
|
|
1124
|
-
horizontal_spacing: 'default',
|
|
1125
|
-
columns: [
|
|
1126
|
-
{
|
|
1127
|
-
tag: 'column',
|
|
1128
|
-
width: 'weighted',
|
|
1129
|
-
weight: 1,
|
|
1130
|
-
vertical_align: 'center',
|
|
1131
|
-
elements: [
|
|
1132
|
-
{
|
|
1133
|
-
tag: 'input',
|
|
1134
|
-
name: 'repo_manual_path',
|
|
1135
|
-
placeholder: { tag: 'plain_text', content: t('card.repo.manual_placeholder', undefined, locale) },
|
|
1136
|
-
},
|
|
1137
|
-
],
|
|
1138
|
-
},
|
|
1139
|
-
{
|
|
1140
|
-
tag: 'column',
|
|
1141
|
-
width: 'auto',
|
|
1142
|
-
vertical_align: 'center',
|
|
1143
|
-
elements: [
|
|
1144
|
-
{
|
|
1145
|
-
tag: 'button',
|
|
1146
|
-
name: 'repo_manual_submit',
|
|
1147
|
-
text: { tag: 'plain_text', content: t('card.btn.manual_repo', undefined, locale) },
|
|
1148
|
-
type: 'default',
|
|
1149
|
-
action_type: 'form_submit',
|
|
1150
|
-
value: { action: 'repo_manual_submit', root_id: rootMessageId ?? '' },
|
|
1151
|
-
},
|
|
1152
|
-
],
|
|
1153
|
-
},
|
|
1154
|
-
],
|
|
1155
|
-
},
|
|
1156
|
-
],
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
tag: 'note',
|
|
1160
|
-
elements: [
|
|
1161
|
-
{
|
|
1162
|
-
tag: 'lark_md',
|
|
1163
|
-
content: t('card.repo.note', undefined, locale),
|
|
1164
|
-
},
|
|
1165
|
-
],
|
|
1166
|
-
},
|
|
1167
|
-
],
|
|
1168
|
-
};
|
|
1169
|
-
return JSON.stringify(card);
|
|
1170
|
-
}
|
|
1171
|
-
/** 授权卡片:有效期与消息额度并列展示,owner 一次提交两项限制。 */
|
|
1172
|
-
export function buildGrantCard(o, locale) {
|
|
1173
|
-
const names = o.targets.map(t => `**${escapeMd(t.name)}**`).join('、');
|
|
1174
|
-
const single = o.targets[0];
|
|
1175
|
-
const body = o.mode === 'request'
|
|
1176
|
-
? t('card.grant.body_request', { name: escapeMd(single?.name ?? ''), owner: o.ownerOpenId }, locale)
|
|
1177
|
-
: o.targets.length > 1
|
|
1178
|
-
? t('card.grant.body_owner_multi', { names, owner: o.ownerOpenId }, locale)
|
|
1179
|
-
: t('card.grant.body_owner', { name: escapeMd(single?.name ?? ''), owner: o.ownerOpenId }, locale);
|
|
1180
|
-
const durationMs = o.durationMs ?? DEFAULT_GRANT_DURATION_MS;
|
|
1181
|
-
// 夹取到卡片可提交区间:历史 messageQuota.defaultLimit(parser 无上限)若 >MAX,
|
|
1182
|
-
// 直接透传会让初值超过 normalize 上限 → owner 一点授权就报「参数无效」发不出。
|
|
1183
|
-
const quota = clampGrantQuotaForCard(o.quota ?? DEFAULT_GRANT_QUOTA);
|
|
1184
|
-
// target_names 与 target_open_ids 同序:授权成功后据此把目标登记进 observed 花名册。
|
|
1185
|
-
const v = {
|
|
1186
|
-
target_open_ids: o.targets.map(t => t.openId),
|
|
1187
|
-
target_names: o.targets.map(t => t.name),
|
|
1188
|
-
chat_id: o.chatId,
|
|
1189
|
-
nonce: o.nonce,
|
|
1190
|
-
mode: o.mode,
|
|
1191
|
-
};
|
|
1192
|
-
const button = (action, text, type) => ({
|
|
1193
|
-
tag: 'button',
|
|
1194
|
-
type,
|
|
1195
|
-
text: { tag: 'plain_text', content: text },
|
|
1196
|
-
name: action,
|
|
1197
|
-
// v2(schema 2.0)卡片的表单提交按钮用 action_type: 'form_submit'(与本文件其它 2.0 表单
|
|
1198
|
-
// 一致,也是本卡最初 live 验证过的写法)。曾一度改成 v2 的 form_action_type: 'submit'(见
|
|
1199
|
-
// 授权卡 UI 并排布局那次),实测点击授权按钮无任何反应——callback 不触发。故钉回 form_submit。
|
|
1200
|
-
action_type: 'form_submit',
|
|
1201
|
-
value: { action, ...v },
|
|
1202
|
-
});
|
|
1203
|
-
const grantButtons = [
|
|
1204
|
-
button('grant_chat', t('card.grant.btn_chat', undefined, locale), 'primary'),
|
|
1205
|
-
];
|
|
1206
|
-
if (o.mode === 'owner') {
|
|
1207
|
-
grantButtons.push(button('grant_global', t('card.grant.btn_global', undefined, locale), 'default'));
|
|
1208
|
-
}
|
|
1209
|
-
grantButtons.push(button('grant_deny', t('card.grant.btn_deny', undefined, locale), 'danger'));
|
|
1210
|
-
const card = {
|
|
1211
|
-
schema: '2.0',
|
|
1212
|
-
config: { update_multi: true, width_mode: 'default' },
|
|
1213
|
-
header: {
|
|
1214
|
-
template: 'orange',
|
|
1215
|
-
title: { tag: 'plain_text', content: t('card.grant.title', undefined, locale) },
|
|
1216
|
-
},
|
|
1217
|
-
body: {
|
|
1218
|
-
direction: 'vertical',
|
|
1219
|
-
padding: '12px 12px 20px 12px',
|
|
1220
|
-
vertical_spacing: 'medium',
|
|
1221
|
-
elements: [
|
|
1222
|
-
{ tag: 'markdown', content: body },
|
|
1223
|
-
{
|
|
1224
|
-
tag: 'form',
|
|
1225
|
-
name: 'grant_limits_form',
|
|
1226
|
-
vertical_spacing: 'large',
|
|
1227
|
-
elements: [
|
|
1228
|
-
{
|
|
1229
|
-
tag: 'column_set',
|
|
1230
|
-
flex_mode: 'bisect',
|
|
1231
|
-
horizontal_spacing: 'medium',
|
|
1232
|
-
columns: [
|
|
1233
|
-
{
|
|
1234
|
-
tag: 'column',
|
|
1235
|
-
width: 'weighted',
|
|
1236
|
-
weight: 1,
|
|
1237
|
-
vertical_spacing: 'small',
|
|
1238
|
-
elements: [
|
|
1239
|
-
{
|
|
1240
|
-
tag: 'markdown',
|
|
1241
|
-
content: `**${t('card.grant.duration_label', undefined, locale)}**`,
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
tag: 'select_static',
|
|
1245
|
-
name: 'grant_duration',
|
|
1246
|
-
width: 'fill',
|
|
1247
|
-
initial_option: String(durationMs),
|
|
1248
|
-
placeholder: { tag: 'plain_text', content: t('card.grant.duration_label', undefined, locale) },
|
|
1249
|
-
options: [
|
|
1250
|
-
...GRANT_DURATION_OPTIONS.map(ms => ({
|
|
1251
|
-
text: { tag: 'plain_text', content: t(`card.grant.duration_${ms}`, undefined, locale) },
|
|
1252
|
-
value: String(ms),
|
|
1253
|
-
})),
|
|
1254
|
-
{
|
|
1255
|
-
text: { tag: 'plain_text', content: t('card.grant.duration_permanent', undefined, locale) },
|
|
1256
|
-
value: 'permanent',
|
|
1257
|
-
},
|
|
1258
|
-
],
|
|
1259
|
-
},
|
|
1260
|
-
],
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
tag: 'column',
|
|
1264
|
-
width: 'weighted',
|
|
1265
|
-
weight: 1,
|
|
1266
|
-
vertical_spacing: 'small',
|
|
1267
|
-
elements: [
|
|
1268
|
-
{
|
|
1269
|
-
tag: 'markdown',
|
|
1270
|
-
content: `**${t('card.grant.quota_label', undefined, locale)}**`,
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
tag: 'input',
|
|
1274
|
-
name: 'grant_quota',
|
|
1275
|
-
width: 'fill',
|
|
1276
|
-
default_value: quota === undefined ? '' : String(quota),
|
|
1277
|
-
placeholder: { tag: 'plain_text', content: t('card.grant.quota_placeholder', undefined, locale) },
|
|
1278
|
-
},
|
|
1279
|
-
],
|
|
1280
|
-
},
|
|
1281
|
-
],
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
tag: 'column_set',
|
|
1285
|
-
flex_mode: 'none',
|
|
1286
|
-
horizontal_spacing: 'small',
|
|
1287
|
-
columns: grantButtons.map(action => ({
|
|
1288
|
-
tag: 'column',
|
|
1289
|
-
width: 'auto',
|
|
1290
|
-
vertical_align: 'center',
|
|
1291
|
-
elements: [action],
|
|
1292
|
-
})),
|
|
1293
|
-
},
|
|
1294
|
-
],
|
|
1295
|
-
},
|
|
1296
|
-
{
|
|
1297
|
-
tag: 'markdown',
|
|
1298
|
-
text_size: 'notation',
|
|
1299
|
-
content: `<font color="grey">${t('card.grant.note', undefined, locale)}</font>`,
|
|
1300
|
-
},
|
|
1301
|
-
],
|
|
1302
|
-
},
|
|
1303
|
-
};
|
|
1304
|
-
return JSON.stringify(card);
|
|
1305
|
-
}
|
|
1306
|
-
/** 授权成功后给被授权人的通知卡(独立消息)。支持一次通知多个被授权人;带额度时追加"(额度 N 条)"。
|
|
1307
|
-
*
|
|
1308
|
-
* **bot grantee 有名字就用纯文本名字、拿不到名字才 `<at>` 兜底;真人 grantee 一律 `<at>` 点名**:
|
|
1309
|
-
* 卡片里的 `<at id=botOpenId>` 会被对方 bot 的 daemon 当成一次「被 @」消息,凭新授权/同伴 peer
|
|
1310
|
-
* 关系在本群拉起一个空会话(实测:手动 /grant 后没有 prompt → 空会话「等待输入」)。所以能拿到
|
|
1311
|
-
* bot 名字时优先用纯文本(不产生 mention、不唤醒对方);只有名字缺失时才退回 `<at>`——此时飞书
|
|
1312
|
-
* 能据 open_id 展示对方身份(远比裸 open_id 可读),代价是可能偶尔触发一次空会话(产品上可接受,
|
|
1313
|
-
* 且名字缺失是少数边角情况)。真人被 `<at>` 不会自动开会话。传 string/string[](无 isBot 信息)
|
|
1314
|
-
* 时按真人处理(@ 全部),保持旧调用方/单测兼容。 */
|
|
1315
|
-
export function buildGrantNotifyCard(kind, target, locale, quota, expiresAt) {
|
|
1316
|
-
const entries = (Array.isArray(target) ? target : [target]).map(tt => typeof tt === 'string' ? { openId: tt, name: undefined, isBot: false } : tt);
|
|
1317
|
-
const at = renderGrantAtMentions(entries);
|
|
1318
|
-
let content = t(kind === 'chat' ? 'card.grant.notify_chat' : 'card.grant.notify_global', { at }, locale);
|
|
1319
|
-
if (quota !== undefined && quota > 0)
|
|
1320
|
-
content += t('card.grant.notify_quota_suffix', { n: quota }, locale);
|
|
1321
|
-
if (expiresAt !== undefined) {
|
|
1322
|
-
content += t('card.grant.notify_expiry_suffix', { time: formatGrantExpiry(expiresAt, locale) }, locale);
|
|
1323
|
-
}
|
|
1324
|
-
const card = {
|
|
1325
|
-
config: { wide_screen_mode: true },
|
|
1326
|
-
elements: [{ tag: 'div', text: { tag: 'lark_md', content } }],
|
|
1327
|
-
};
|
|
1328
|
-
return JSON.stringify(card);
|
|
1329
|
-
}
|
|
1330
|
-
/** 额度用尽通知卡(@被授权人):daemon 收回该 scope 授权后发到 session/线程。 */
|
|
1331
|
-
export function buildQuotaExhaustedCard(targetOpenId, limit, locale) {
|
|
1332
|
-
const at = `<at id=${targetOpenId}></at>`;
|
|
1333
|
-
const content = t('quota.exhausted_notify', { at, limit }, locale);
|
|
1334
|
-
const card = {
|
|
1335
|
-
config: { wide_screen_mode: true },
|
|
1336
|
-
elements: [{ tag: 'div', text: { tag: 'lark_md', content } }],
|
|
1337
|
-
};
|
|
1338
|
-
return JSON.stringify(card);
|
|
1339
|
-
}
|
|
1340
|
-
/**
|
|
1341
|
-
* Reject card for `/adopt` (and Codex App / resume import) attempted while the
|
|
1342
|
-
* session is still on the first-spawn repo-select gate (`pendingRepo`). Adopt
|
|
1343
|
-
* attaches to an already-running CLI, so it cannot double as a way to finish
|
|
1344
|
-
* that gate: the two states are mutually exclusive by design. Rather than fold
|
|
1345
|
-
* the buffered repo-card messages into the takeover (complex + leaks botmux
|
|
1346
|
-
* envelopes into the external CLI), we refuse and offer a one-tap "close
|
|
1347
|
-
* session" so the user can retire the pending session and re-issue `/adopt`
|
|
1348
|
-
* cleanly. The close button reuses the shared `action: 'close'` handler; the
|
|
1349
|
-
* resulting closed card honours privateCard on its own.
|
|
1350
|
-
*/
|
|
1351
|
-
export function buildAdoptBlockedCard(rootId, sessionId, cliId, locale) {
|
|
1352
|
-
const actionBase = { root_id: rootId, session_id: sessionId, cli_id: cliId ?? 'claude-code' };
|
|
1353
|
-
const card = {
|
|
1354
|
-
config: { wide_screen_mode: true },
|
|
1355
|
-
header: {
|
|
1356
|
-
title: { tag: 'plain_text', content: t('card.adopt_blocked.title', undefined, locale) },
|
|
1357
|
-
template: 'orange',
|
|
1358
|
-
},
|
|
1359
|
-
elements: [
|
|
1360
|
-
{ tag: 'markdown', content: t('card.adopt_blocked.body', undefined, locale) },
|
|
1361
|
-
{
|
|
1362
|
-
tag: 'action',
|
|
1363
|
-
actions: [
|
|
1364
|
-
{
|
|
1365
|
-
tag: 'button',
|
|
1366
|
-
text: { tag: 'plain_text', content: t('card.btn.close_session', undefined, locale) },
|
|
1367
|
-
type: 'danger',
|
|
1368
|
-
value: { action: 'close', ...actionBase },
|
|
1369
|
-
},
|
|
1370
|
-
],
|
|
1371
|
-
},
|
|
1372
|
-
],
|
|
1373
|
-
};
|
|
1374
|
-
return JSON.stringify(card);
|
|
1375
|
-
}
|
|
1376
|
-
/** 授权处置后的终态卡(无按钮,防重复点击)。 */
|
|
1377
|
-
function formatGrantExpiry(expiresAt, locale) {
|
|
1378
|
-
return new Date(expiresAt).toLocaleString(locale === 'en' ? 'en-US' : 'zh-CN', { hour12: false });
|
|
1379
|
-
}
|
|
1380
|
-
function renderGrantAtMentions(target) {
|
|
1381
|
-
const entries = (Array.isArray(target) ? target : [target]).map(tt => typeof tt === 'string' ? { openId: tt, name: undefined, isBot: false } : tt);
|
|
1382
|
-
return entries.map(e => e.isBot && e.name && e.name.length > 0
|
|
1383
|
-
? e.name
|
|
1384
|
-
: `<at id=${e.openId}></at>`).join(' ');
|
|
1385
|
-
}
|
|
1386
|
-
/** 授权处置后的终态卡(无按钮,防重复点击)。授权成功(chat/global)时**就地 patch 原卡**即为
|
|
1387
|
-
* 此卡:正文直接 @ 被授权人 + 额度/有效期,一张卡既是结果态又 ping 到 ta,无需再单独发通知卡或
|
|
1388
|
-
* 撤回原卡(见申晗 2026-07-31 反馈)。deny 或无 targets 时回落到不带 @ 的简单状态文案。 */
|
|
1389
|
-
export function buildGrantResultCard(kind, locale, quota, expiresAt, targets) {
|
|
1390
|
-
let content;
|
|
1391
|
-
const at = targets !== undefined ? renderGrantAtMentions(targets) : '';
|
|
1392
|
-
if (kind !== 'deny' && at) {
|
|
1393
|
-
// 授权成功且有被授权人:复用 notify 文案({at} 已获授权,发消息 @ 我即可 + 额度/有效期后缀),
|
|
1394
|
-
// 让就地 patch 的原卡直接把授权成功通知 + @ping 合为一张。
|
|
1395
|
-
content = t(kind === 'chat' ? 'card.grant.notify_chat' : 'card.grant.notify_global', { at }, locale);
|
|
1396
|
-
if (quota !== undefined && quota > 0)
|
|
1397
|
-
content += t('card.grant.notify_quota_suffix', { n: quota }, locale);
|
|
1398
|
-
if (expiresAt !== undefined)
|
|
1399
|
-
content += t('card.grant.notify_expiry_suffix', { time: formatGrantExpiry(expiresAt, locale) }, locale);
|
|
1400
|
-
}
|
|
1401
|
-
else {
|
|
1402
|
-
// deny / 无 targets 回落:简单状态态(无 @)。
|
|
1403
|
-
const key = kind === 'chat' ? 'card.grant.result_chat' : kind === 'global' ? 'card.grant.result_global' : 'card.grant.result_deny';
|
|
1404
|
-
content = t(key, undefined, locale);
|
|
1405
|
-
if (kind !== 'deny') {
|
|
1406
|
-
if (expiresAt !== undefined)
|
|
1407
|
-
content += `\n${t('card.grant.result_expiry', { time: formatGrantExpiry(expiresAt, locale) }, locale)}`;
|
|
1408
|
-
if (quota !== undefined)
|
|
1409
|
-
content += `\n${t('card.grant.result_quota', { n: quota }, locale)}`;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
const card = {
|
|
1413
|
-
schema: '2.0',
|
|
1414
|
-
config: { update_multi: true, width_mode: 'default' },
|
|
1415
|
-
header: { template: kind === 'deny' ? 'grey' : 'green', title: { tag: 'plain_text', content: t('card.grant.title', undefined, locale) } },
|
|
1416
|
-
body: { elements: [{ tag: 'markdown', content }] },
|
|
1417
|
-
};
|
|
1418
|
-
return JSON.stringify(card);
|
|
1419
|
-
}
|
|
1420
|
-
// ─── TUI Prompt cards ───────────────────────────────────────────────────────
|
|
1421
|
-
/**
|
|
1422
|
-
* Build a Feishu interactive card for a TUI prompt (ask-hook / CoCo picker).
|
|
1423
|
-
* Select-type options get buttons; input-type options shown in list with a note.
|
|
1424
|
-
*/
|
|
1425
|
-
export function buildTuiPromptCard(rootId, sessionId, description, options, multiSelect, toggledIndices, locale) {
|
|
1426
|
-
const hasInputOption = options.some(o => o.type === 'input');
|
|
1427
|
-
const toggled = new Set(toggledIndices ?? []);
|
|
1428
|
-
// Build option list — skip confirm-type (shown as button only)
|
|
1429
|
-
const optionLines = options
|
|
1430
|
-
.filter(o => o.type !== 'confirm')
|
|
1431
|
-
.map((opt) => {
|
|
1432
|
-
const i = options.indexOf(opt);
|
|
1433
|
-
const label = opt.label || String(i + 1);
|
|
1434
|
-
if (opt.type === 'toggle') {
|
|
1435
|
-
const check = toggled.has(i) ? '☑' : '☐';
|
|
1436
|
-
return `${check} ${label}. ${escapeMd(opt.text)}`;
|
|
1437
|
-
}
|
|
1438
|
-
return opt.selected
|
|
1439
|
-
? `**${label}. ${escapeMd(opt.text)}**`
|
|
1440
|
-
: `${label}. ${escapeMd(opt.text)}`;
|
|
1441
|
-
}).join('\n');
|
|
1442
|
-
// Build buttons — each carries its AI-provided key sequence
|
|
1443
|
-
const buttons = [];
|
|
1444
|
-
for (const opt of options) {
|
|
1445
|
-
const originalIndex = options.indexOf(opt);
|
|
1446
|
-
if (opt.type === 'input')
|
|
1447
|
-
continue;
|
|
1448
|
-
const isFinal = opt.type === 'select' || opt.type === 'confirm';
|
|
1449
|
-
const btnLabel = opt.type === 'confirm'
|
|
1450
|
-
? `✅ ${opt.text}`
|
|
1451
|
-
: (opt.label || String(originalIndex + 1));
|
|
1452
|
-
buttons.push({
|
|
1453
|
-
tag: 'button',
|
|
1454
|
-
text: { tag: 'plain_text', content: btnLabel },
|
|
1455
|
-
type: ((opt.type === 'confirm' || toggled.has(originalIndex)) ? 'primary' : opt.selected ? 'primary' : 'default'),
|
|
1456
|
-
value: {
|
|
1457
|
-
action: 'tui_keys',
|
|
1458
|
-
root_id: rootId,
|
|
1459
|
-
session_id: sessionId,
|
|
1460
|
-
keys: JSON.stringify(opt.keys ?? []),
|
|
1461
|
-
is_final: isFinal ? '1' : '0',
|
|
1462
|
-
selected_index: String(originalIndex),
|
|
1463
|
-
selected_text: opt.text,
|
|
1464
|
-
option_type: opt.type ?? 'select',
|
|
1465
|
-
},
|
|
1466
|
-
});
|
|
1467
|
-
}
|
|
1468
|
-
const elements = [
|
|
1469
|
-
{
|
|
1470
|
-
tag: 'div',
|
|
1471
|
-
text: { tag: 'lark_md', content: optionLines },
|
|
1472
|
-
},
|
|
1473
|
-
{ tag: 'hr' },
|
|
1474
|
-
{ tag: 'action', actions: buttons },
|
|
1475
|
-
];
|
|
1476
|
-
// Form with input field for "Type something" options
|
|
1477
|
-
if (hasInputOption) {
|
|
1478
|
-
const inputOpt = options.find(o => o.type === 'input');
|
|
1479
|
-
elements.push({ tag: 'hr' });
|
|
1480
|
-
elements.push({
|
|
1481
|
-
tag: 'form',
|
|
1482
|
-
name: 'tui_input_form',
|
|
1483
|
-
elements: [
|
|
1484
|
-
{
|
|
1485
|
-
tag: 'input',
|
|
1486
|
-
name: 'tui_custom_input',
|
|
1487
|
-
placeholder: { tag: 'plain_text', content: t('card.tui.input_placeholder', undefined, locale) },
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
tag: 'button',
|
|
1491
|
-
text: { tag: 'plain_text', content: t('card.btn.send_custom', undefined, locale) },
|
|
1492
|
-
type: 'primary',
|
|
1493
|
-
name: 'tui_input_submit',
|
|
1494
|
-
action_type: 'form_submit',
|
|
1495
|
-
value: {
|
|
1496
|
-
action: 'tui_text_input',
|
|
1497
|
-
root_id: rootId,
|
|
1498
|
-
session_id: sessionId,
|
|
1499
|
-
input_keys: JSON.stringify(inputOpt?.keys ?? []),
|
|
1500
|
-
},
|
|
1501
|
-
},
|
|
1502
|
-
],
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
const card = {
|
|
1506
|
-
config: { wide_screen_mode: true },
|
|
1507
|
-
header: {
|
|
1508
|
-
title: { tag: 'plain_text', content: escapeMd(description) },
|
|
1509
|
-
template: 'orange',
|
|
1510
|
-
},
|
|
1511
|
-
elements,
|
|
1512
|
-
};
|
|
1513
|
-
return JSON.stringify(card);
|
|
1514
|
-
}
|
|
1515
|
-
/**
|
|
1516
|
-
* Build a "processing" TUI prompt card — shown immediately when user clicks a button.
|
|
1517
|
-
*/
|
|
1518
|
-
export function buildTuiPromptProcessingCard(selectedText, locale) {
|
|
1519
|
-
const card = {
|
|
1520
|
-
config: { wide_screen_mode: true },
|
|
1521
|
-
header: {
|
|
1522
|
-
title: { tag: 'plain_text', content: t('card.status.executing', undefined, locale) },
|
|
1523
|
-
template: 'blue',
|
|
1524
|
-
},
|
|
1525
|
-
elements: [
|
|
1526
|
-
{
|
|
1527
|
-
tag: 'div',
|
|
1528
|
-
text: { tag: 'lark_md', content: `${t('card.body.choose_label', undefined, locale)} **${escapeMd(selectedText)}**` },
|
|
1529
|
-
},
|
|
1530
|
-
],
|
|
1531
|
-
};
|
|
1532
|
-
return JSON.stringify(card);
|
|
1533
|
-
}
|
|
1534
|
-
/**
|
|
1535
|
-
* Build a resolved TUI prompt card — shows which option was selected.
|
|
1536
|
-
*/
|
|
1537
|
-
export function buildTuiPromptResolvedCard(selectedText, locale) {
|
|
1538
|
-
const card = {
|
|
1539
|
-
config: { wide_screen_mode: true },
|
|
1540
|
-
header: {
|
|
1541
|
-
title: { tag: 'plain_text', content: t('card.status.selected', undefined, locale) },
|
|
1542
|
-
template: 'green',
|
|
1543
|
-
},
|
|
1544
|
-
elements: [
|
|
1545
|
-
{
|
|
1546
|
-
tag: 'div',
|
|
1547
|
-
text: { tag: 'lark_md', content: `**${escapeMd(selectedText)}**` },
|
|
1548
|
-
},
|
|
1549
|
-
],
|
|
1550
|
-
};
|
|
1551
|
-
return JSON.stringify(card);
|
|
1552
|
-
}
|
|
1553
|
-
/** Build a terminal failure state when worker/backend input was not confirmed. */
|
|
1554
|
-
export function buildTuiPromptFailedCard(message, locale) {
|
|
1555
|
-
const card = {
|
|
1556
|
-
config: { wide_screen_mode: true },
|
|
1557
|
-
header: {
|
|
1558
|
-
title: { tag: 'plain_text', content: t('card.status.failed', undefined, locale) },
|
|
1559
|
-
template: 'red',
|
|
1560
|
-
},
|
|
1561
|
-
elements: [
|
|
1562
|
-
{
|
|
1563
|
-
tag: 'div',
|
|
1564
|
-
text: { tag: 'lark_md', content: escapeMd(message) },
|
|
1565
|
-
},
|
|
1566
|
-
],
|
|
1567
|
-
};
|
|
1568
|
-
return JSON.stringify(card);
|
|
1569
|
-
}
|
|
1570
|
-
// ─── Adopt cards ─────────────────────────────────────────────────────────────
|
|
1571
|
-
function formatDuration(ms) {
|
|
1572
|
-
const s = Math.floor(ms / 1000);
|
|
1573
|
-
if (s < 60)
|
|
1574
|
-
return `${s}s`;
|
|
1575
|
-
const m = Math.floor(s / 60);
|
|
1576
|
-
if (m < 60)
|
|
1577
|
-
return `${m}m`;
|
|
1578
|
-
const h = Math.floor(m / 60);
|
|
1579
|
-
if (h < 24)
|
|
1580
|
-
return `${h}h${m % 60}m`;
|
|
1581
|
-
const d = Math.floor(h / 24);
|
|
1582
|
-
return `${d}d${h % 24}h`;
|
|
1583
|
-
}
|
|
1584
|
-
function relayPickerTypeTag(mode, locale) {
|
|
1585
|
-
switch (mode) {
|
|
1586
|
-
case 'p2p': return t('card.relay.type_p2p', undefined, locale);
|
|
1587
|
-
case 'topic': return t('card.relay.type_topic', undefined, locale);
|
|
1588
|
-
default: return t('card.relay.type_group', undefined, locale); // 'group' or undefined
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
const RELAY_PICKER_PAGE_SIZE = 5;
|
|
1592
|
-
const RELAY_SEARCH_FIELD = 'search';
|
|
1593
|
-
/** Search aliases appended to a p2p entry's haystack so searching by the
|
|
1594
|
-
* RENDERED location label finds it. A p2p entry's chatLabel carries the raw
|
|
1595
|
-
* DM chatId (an oc_ opaque id — never shown), while the card renders the
|
|
1596
|
-
* localized `card.relay.type_p2p` literal instead; without these aliases,
|
|
1597
|
-
* typing the label the user actually SEES (「单聊」) returned「没有匹配」.
|
|
1598
|
-
* Covers both locales' literals plus common synonyms so the filter stays
|
|
1599
|
-
* locale-agnostic. Keep in sync with the `card.relay.type_p2p` i18n values. */
|
|
1600
|
-
const RELAY_P2P_SEARCH_ALIASES = '单聊 私聊 p2p dm direct message';
|
|
1601
|
-
/**
|
|
1602
|
-
* Match against title / chatLabel / workingDir / cliId. Case-insensitive
|
|
1603
|
-
* substring. Empty / whitespace query matches everything. p2p entries also
|
|
1604
|
-
* match their rendered location label via RELAY_P2P_SEARCH_ALIASES.
|
|
1605
|
-
*/
|
|
1606
|
-
function relayPickerFilter(entries, query) {
|
|
1607
|
-
const q = (query ?? '').trim().toLowerCase();
|
|
1608
|
-
if (!q)
|
|
1609
|
-
return entries;
|
|
1610
|
-
return entries.filter((e) => {
|
|
1611
|
-
const haystack = [e.title, e.chatLabel, e.workingDir, e.cliId, e.chatMode === 'p2p' ? RELAY_P2P_SEARCH_ALIASES : undefined]
|
|
1612
|
-
.filter(Boolean)
|
|
1613
|
-
.join(' ')
|
|
1614
|
-
.toLowerCase();
|
|
1615
|
-
return haystack.includes(q);
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
/**
|
|
1619
|
-
* Card listing the operator's relayable sessions, paginated 5 per page with
|
|
1620
|
-
* a search box at the top and a confirm button at the bottom. Layout:
|
|
1621
|
-
*
|
|
1622
|
-
* ┌──────────────────────────────────────┐
|
|
1623
|
-
* │ 📋 选择要接力的会话 │ header
|
|
1624
|
-
* ├──────────────────────────────────────┤
|
|
1625
|
-
* │ 🔍 [______________] [搜索] │ form: input + submit button
|
|
1626
|
-
* ├──────────────────────────────────────┤
|
|
1627
|
-
* │ [interactive_container 1] │ current page (≤5 cards),
|
|
1628
|
-
* │ [interactive_container 2] │ each clickable for selection
|
|
1629
|
-
* │ ... │
|
|
1630
|
-
* ├──────────────────────────────────────┤
|
|
1631
|
-
* │ [← 上一页] 1 / 4 [下一页 →] │ paginator row
|
|
1632
|
-
* ├──────────────────────────────────────┤
|
|
1633
|
-
* │ [确认接力到本群] │ primary button (only when
|
|
1634
|
-
* │ │ a selected session is on
|
|
1635
|
-
* │ │ the current filtered set)
|
|
1636
|
-
* └──────────────────────────────────────┘
|
|
1637
|
-
*
|
|
1638
|
-
* State (search / page / selected) is propagated entirely via the value
|
|
1639
|
-
* objects on each button and container — Lark cards are stateless, so any
|
|
1640
|
-
* server-side re-render must reconstruct from what the click sent us.
|
|
1641
|
-
* That's why every interactive value here carries `search`, `page`,
|
|
1642
|
-
* `target_chat_id`, `root_id`.
|
|
1643
|
-
*
|
|
1644
|
-
* Note: typing into the search box without clicking 搜索 does NOT update
|
|
1645
|
-
* the in-callback state — container/paginator clicks use whatever search
|
|
1646
|
-
* was applied at card-render time. To apply a new filter, click 搜索.
|
|
1647
|
-
*/
|
|
1648
|
-
export function buildRelayPickerCard(entries, targetChatId, targetRootMessageId, invokerOpenId, locale, state,
|
|
1649
|
-
/** Target routing scope baked into every button value so the confirm /
|
|
1650
|
-
* re-render handlers know whether to land the relayed session as a 话题
|
|
1651
|
-
* (thread, reply_in_thread to `root_id`) or flat chat-scope. Default 'chat'
|
|
1652
|
-
* preserves the legacy普通群-flat behavior. */
|
|
1653
|
-
targetScope = 'chat',
|
|
1654
|
-
/** Target chat type baked into every button value so relay_confirm can pass
|
|
1655
|
-
* the right chatType to transferSession (a DM target must flip the session
|
|
1656
|
-
* to p2p, or post-relay inbound routing misclassifies it as a group).
|
|
1657
|
-
* Authoritative from the /relay command's session chatType. Default 'group'
|
|
1658
|
-
* covers legacy cards rendered before this field existed. */
|
|
1659
|
-
targetChatType = 'group',
|
|
1660
|
-
/** When 'private', the card is (or will be) delivered as an ephemeral card
|
|
1661
|
-
* visible only to the invoker — so the session title / source-chat name never
|
|
1662
|
-
* leak to other group members. Baked into every button value as `visibility`
|
|
1663
|
-
* so the re-render handlers (select / page / search) know they must delete +
|
|
1664
|
-
* resend an ephemeral card instead of returning a body for Lark to patch in
|
|
1665
|
-
* place (ephemeral cards can't be PATCH-updated). Default 'public' preserves
|
|
1666
|
-
* the legacy visible-to-all picker. Only ever set 'private' for flat chat-
|
|
1667
|
-
* scope 普通群 targets: ephemeral has no thread anchor, so command-handler
|
|
1668
|
-
* gates it on `targetScope === 'chat'` (thread-scope 话题群/话题 stay public
|
|
1669
|
-
* in-thread — see the gate comment there). p2p never goes ephemeral. */
|
|
1670
|
-
visibility = 'public') {
|
|
1671
|
-
const searchQuery = state?.searchQuery ?? '';
|
|
1672
|
-
const requestedPage = state?.page ?? 0;
|
|
1673
|
-
const selectedSessionId = state?.selectedSessionId;
|
|
1674
|
-
const elements = [];
|
|
1675
|
-
// ─── Filter & paginate ───────────────────────────────────────────────
|
|
1676
|
-
const filtered = relayPickerFilter(entries, searchQuery);
|
|
1677
|
-
const totalPages = Math.max(1, Math.ceil(filtered.length / RELAY_PICKER_PAGE_SIZE));
|
|
1678
|
-
const page = Math.min(Math.max(0, requestedPage), totalPages - 1);
|
|
1679
|
-
const start = page * RELAY_PICKER_PAGE_SIZE;
|
|
1680
|
-
const visible = filtered.slice(start, start + RELAY_PICKER_PAGE_SIZE);
|
|
1681
|
-
// Common state object carried by every interactive value so re-renders
|
|
1682
|
-
// can reconstruct what the user was looking at. `invoker_open_id` pins the
|
|
1683
|
-
// card to the user who originally summoned it — card-handler refuses
|
|
1684
|
-
// re-render / confirm clicks from anyone else, so the menu doesn't get
|
|
1685
|
-
// silently swapped to a passer-by's session list.
|
|
1686
|
-
const stateValue = {
|
|
1687
|
-
target_chat_id: targetChatId,
|
|
1688
|
-
root_id: targetRootMessageId,
|
|
1689
|
-
target_scope: targetScope,
|
|
1690
|
-
target_chat_type: targetChatType,
|
|
1691
|
-
invoker_open_id: invokerOpenId,
|
|
1692
|
-
visibility,
|
|
1693
|
-
search: searchQuery,
|
|
1694
|
-
page,
|
|
1695
|
-
selected: selectedSessionId ?? '',
|
|
1696
|
-
};
|
|
1697
|
-
// ─── Search box ─────────────────────────────────────────────────────
|
|
1698
|
-
// v2 input supports `behaviors` natively — pressing Enter or clicking
|
|
1699
|
-
// the built-in submit icon inside the input fires the callback. No
|
|
1700
|
-
// separate 搜索 button needed (王皓 reported that button rendered as
|
|
1701
|
-
// "..." due to cramped column width; the auto-submit input avoids the
|
|
1702
|
-
// problem entirely AND removes the manual click).
|
|
1703
|
-
//
|
|
1704
|
-
// On submit the callback delivers `action.input_value` (the typed
|
|
1705
|
-
// string) and `action.value` (our state object). card-handler reads
|
|
1706
|
-
// input_value to update search, resets page to 0 and clears selection.
|
|
1707
|
-
elements.push({
|
|
1708
|
-
tag: 'input',
|
|
1709
|
-
name: RELAY_SEARCH_FIELD,
|
|
1710
|
-
placeholder: { tag: 'plain_text', content: t('card.relay.search_placeholder', undefined, locale) },
|
|
1711
|
-
default_value: searchQuery,
|
|
1712
|
-
width: 'fill',
|
|
1713
|
-
behaviors: [
|
|
1714
|
-
{
|
|
1715
|
-
type: 'callback',
|
|
1716
|
-
value: { action: 'relay_search', ...stateValue, selected: '' /* new search → reset selection */ },
|
|
1717
|
-
},
|
|
1718
|
-
],
|
|
1719
|
-
});
|
|
1720
|
-
elements.push({ tag: 'hr' });
|
|
1721
|
-
// ─── Empty / no-match notice ────────────────────────────────────────
|
|
1722
|
-
if (entries.length === 0) {
|
|
1723
|
-
elements.push({ tag: 'markdown', content: t('card.relay.empty', undefined, locale) });
|
|
1724
|
-
return JSON.stringify(wrapCard(elements, locale, targetChatType));
|
|
1725
|
-
}
|
|
1726
|
-
if (filtered.length === 0) {
|
|
1727
|
-
elements.push({
|
|
1728
|
-
tag: 'markdown',
|
|
1729
|
-
content: t('card.relay.empty_filtered', { query: searchQuery }, locale),
|
|
1730
|
-
});
|
|
1731
|
-
return JSON.stringify(wrapCard(elements, locale, targetChatType));
|
|
1732
|
-
}
|
|
1733
|
-
// ─── Session cards (current page) ───────────────────────────────────
|
|
1734
|
-
const p2pLocationLabel = t('card.relay.type_p2p', undefined, locale);
|
|
1735
|
-
const labelType = t('card.relay.field_type', undefined, locale);
|
|
1736
|
-
const labelLocation = t('card.relay.field_location', undefined, locale);
|
|
1737
|
-
const labelTime = t('card.relay.field_time', undefined, locale);
|
|
1738
|
-
const labelStatus = t('card.relay.field_status', undefined, locale);
|
|
1739
|
-
const selectedTag = t('card.relay.selected_tag', undefined, locale);
|
|
1740
|
-
const selectedEntry = selectedSessionId ? filtered.find(e => e.sessionId === selectedSessionId) : undefined;
|
|
1741
|
-
const hasValidSelection = !!selectedEntry;
|
|
1742
|
-
// Selected session is mid-turn — confirm must be disabled (transferSession
|
|
1743
|
-
// would refuse a busy worker; catch it at the button so no M1 is sent).
|
|
1744
|
-
const selectionRunning = !!selectedEntry?.running;
|
|
1745
|
-
visible.forEach((e) => {
|
|
1746
|
-
const isSelected = e.sessionId === selectedSessionId;
|
|
1747
|
-
const typeTag = relayPickerTypeTag(e.chatMode, locale);
|
|
1748
|
-
const locationLine = e.chatMode === 'p2p' ? p2pLocationLabel : e.chatLabel;
|
|
1749
|
-
const titleLine = isSelected
|
|
1750
|
-
? `**✅ ${escapeMd(e.title)}** \`${selectedTag}\``
|
|
1751
|
-
: `**${escapeMd(e.title)}**`;
|
|
1752
|
-
const statusTag = e.running
|
|
1753
|
-
? t('card.relay.status_running', undefined, locale)
|
|
1754
|
-
: t('card.relay.status_idle', undefined, locale);
|
|
1755
|
-
const lines = [
|
|
1756
|
-
titleLine,
|
|
1757
|
-
`${labelStatus}: ${statusTag}`,
|
|
1758
|
-
`${labelType}: ${typeTag}`,
|
|
1759
|
-
`${labelLocation}: ${escapeMd(locationLine)}`,
|
|
1760
|
-
];
|
|
1761
|
-
if (e.lastMessageAt) {
|
|
1762
|
-
lines.push(`${labelTime}: ${formatDuration(Date.now() - e.lastMessageAt)}`);
|
|
1763
|
-
}
|
|
1764
|
-
elements.push({
|
|
1765
|
-
tag: 'interactive_container',
|
|
1766
|
-
width: 'fill',
|
|
1767
|
-
padding: '8px 12px',
|
|
1768
|
-
background_style: isSelected ? 'laser' : 'default',
|
|
1769
|
-
has_border: true,
|
|
1770
|
-
border_color: isSelected ? 'blue-500' : 'grey-200',
|
|
1771
|
-
corner_radius: '8px',
|
|
1772
|
-
behaviors: [
|
|
1773
|
-
{
|
|
1774
|
-
type: 'callback',
|
|
1775
|
-
value: { action: 'relay_select', session_id: e.sessionId, ...stateValue },
|
|
1776
|
-
},
|
|
1777
|
-
],
|
|
1778
|
-
elements: [{ tag: 'markdown', content: lines.join('\n') }],
|
|
1779
|
-
});
|
|
1780
|
-
});
|
|
1781
|
-
// ─── Paginator (only when more than one page) ───────────────────────
|
|
1782
|
-
if (totalPages > 1) {
|
|
1783
|
-
elements.push({
|
|
1784
|
-
tag: 'column_set',
|
|
1785
|
-
flex_mode: 'none',
|
|
1786
|
-
horizontal_spacing: 'default',
|
|
1787
|
-
columns: [
|
|
1788
|
-
{
|
|
1789
|
-
tag: 'column',
|
|
1790
|
-
width: 'weighted',
|
|
1791
|
-
weight: 1,
|
|
1792
|
-
vertical_align: 'center',
|
|
1793
|
-
elements: [
|
|
1794
|
-
{
|
|
1795
|
-
tag: 'button',
|
|
1796
|
-
text: { tag: 'plain_text', content: t('card.relay.btn_prev_page', undefined, locale) },
|
|
1797
|
-
type: 'default',
|
|
1798
|
-
disabled: page === 0,
|
|
1799
|
-
behaviors: [
|
|
1800
|
-
{
|
|
1801
|
-
type: 'callback',
|
|
1802
|
-
value: { action: 'relay_page', ...stateValue, page: Math.max(0, page - 1) },
|
|
1803
|
-
},
|
|
1804
|
-
],
|
|
1805
|
-
},
|
|
1806
|
-
],
|
|
1807
|
-
},
|
|
1808
|
-
{
|
|
1809
|
-
tag: 'column',
|
|
1810
|
-
width: 'weighted',
|
|
1811
|
-
weight: 2,
|
|
1812
|
-
vertical_align: 'center',
|
|
1813
|
-
elements: [
|
|
1814
|
-
{
|
|
1815
|
-
tag: 'markdown',
|
|
1816
|
-
text_align: 'center',
|
|
1817
|
-
content: t('card.relay.page_indicator', { current: page + 1, total: totalPages }, locale),
|
|
1818
|
-
},
|
|
1819
|
-
],
|
|
1820
|
-
},
|
|
1821
|
-
{
|
|
1822
|
-
tag: 'column',
|
|
1823
|
-
width: 'weighted',
|
|
1824
|
-
weight: 1,
|
|
1825
|
-
vertical_align: 'center',
|
|
1826
|
-
elements: [
|
|
1827
|
-
{
|
|
1828
|
-
tag: 'button',
|
|
1829
|
-
text: { tag: 'plain_text', content: t('card.relay.btn_next_page', undefined, locale) },
|
|
1830
|
-
type: 'default',
|
|
1831
|
-
disabled: page === totalPages - 1,
|
|
1832
|
-
behaviors: [
|
|
1833
|
-
{
|
|
1834
|
-
type: 'callback',
|
|
1835
|
-
value: { action: 'relay_page', ...stateValue, page: Math.min(totalPages - 1, page + 1) },
|
|
1836
|
-
},
|
|
1837
|
-
],
|
|
1838
|
-
},
|
|
1839
|
-
],
|
|
1840
|
-
},
|
|
1841
|
-
],
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
// ─── Confirm button or hint ─────────────────────────────────────────
|
|
1845
|
-
elements.push({ tag: 'hr' });
|
|
1846
|
-
if (hasValidSelection && selectionRunning) {
|
|
1847
|
-
// Selected session is mid-turn: render a disabled (grey, non-clickable)
|
|
1848
|
-
// button instead of the confirm action. Re-clicking the session entry
|
|
1849
|
-
// re-renders and recomputes `running`, so once the turn finishes the
|
|
1850
|
-
// user can click it again to get the live confirm button back.
|
|
1851
|
-
elements.push({
|
|
1852
|
-
tag: 'column_set',
|
|
1853
|
-
flex_mode: 'none',
|
|
1854
|
-
columns: [
|
|
1855
|
-
{
|
|
1856
|
-
tag: 'column',
|
|
1857
|
-
width: 'weighted',
|
|
1858
|
-
weight: 1,
|
|
1859
|
-
elements: [
|
|
1860
|
-
{
|
|
1861
|
-
tag: 'button',
|
|
1862
|
-
text: { tag: 'plain_text', content: t('card.relay.btn_confirm_running', undefined, locale) },
|
|
1863
|
-
type: 'default',
|
|
1864
|
-
disabled: true,
|
|
1865
|
-
},
|
|
1866
|
-
],
|
|
1867
|
-
},
|
|
1868
|
-
],
|
|
1869
|
-
});
|
|
1870
|
-
}
|
|
1871
|
-
else if (hasValidSelection) {
|
|
1872
|
-
elements.push({
|
|
1873
|
-
tag: 'column_set',
|
|
1874
|
-
flex_mode: 'none',
|
|
1875
|
-
columns: [
|
|
1876
|
-
{
|
|
1877
|
-
tag: 'column',
|
|
1878
|
-
width: 'weighted',
|
|
1879
|
-
weight: 1,
|
|
1880
|
-
elements: [
|
|
1881
|
-
{
|
|
1882
|
-
tag: 'button',
|
|
1883
|
-
text: { tag: 'plain_text', content: t(targetChatType === 'p2p' ? 'card.relay.btn_confirm_p2p' : 'card.relay.btn_confirm', undefined, locale) },
|
|
1884
|
-
type: 'primary',
|
|
1885
|
-
behaviors: [
|
|
1886
|
-
{
|
|
1887
|
-
type: 'callback',
|
|
1888
|
-
value: { action: 'relay_confirm', session_id: selectedSessionId, ...stateValue },
|
|
1889
|
-
},
|
|
1890
|
-
],
|
|
1891
|
-
},
|
|
1892
|
-
],
|
|
1893
|
-
},
|
|
1894
|
-
],
|
|
1895
|
-
});
|
|
1896
|
-
}
|
|
1897
|
-
else {
|
|
1898
|
-
elements.push({
|
|
1899
|
-
tag: 'markdown',
|
|
1900
|
-
content: `<font color='grey'>${t('card.relay.hint_pick_first', undefined, locale)}</font>`,
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
return JSON.stringify(wrapCard(elements, locale, targetChatType));
|
|
1904
|
-
}
|
|
1905
|
-
function wrapCard(elements, locale, targetChatType = 'group') {
|
|
1906
|
-
return {
|
|
1907
|
-
schema: '2.0',
|
|
1908
|
-
config: { update_multi: true },
|
|
1909
|
-
header: {
|
|
1910
|
-
title: { tag: 'plain_text', content: t(targetChatType === 'p2p' ? 'card.relay.title_p2p' : 'card.relay.title', undefined, locale) },
|
|
1911
|
-
template: 'blue',
|
|
1912
|
-
},
|
|
1913
|
-
body: { direction: 'vertical', elements },
|
|
1914
|
-
};
|
|
1915
|
-
}
|
|
1916
|
-
/** Deterministic key for a live adoptable session (tmux/herdr/zellij).
|
|
1917
|
-
* Exported so the card-handler's confirm path can match a clicked entry_key
|
|
1918
|
-
* back to a freshly-discovered session without re-deriving the format.
|
|
1919
|
-
*
|
|
1920
|
-
* ⚠️ zellij keys are pid-AGNOSTIC on purpose — do NOT add cliPid back.
|
|
1921
|
-
* Confirm re-discovers and matches `adoptLiveKey(fresh) === entryKey`; a
|
|
1922
|
-
* zellij pane's resolved CLI pid legitimately shifts between render and
|
|
1923
|
-
* confirm (wrapper⇄native collapse, re-fork), so baking pid into the key
|
|
1924
|
-
* makes that match spuriously fail → user sees a false "目标已退出". This
|
|
1925
|
-
* is exactly the bug fix 57dcbebbb removed ("点击候选改按 (session,paneId)
|
|
1926
|
-
* 匹配"): (zellijSession, zellijPaneId) already uniquely identifies the pane.
|
|
1927
|
-
* tmux/herdr keep adoptTargetKey (tmux includes pid, herdr does not) — tmux's
|
|
1928
|
-
* confirm fast-path parses the trailing pid, and that path is unchanged. */
|
|
1929
|
-
export function adoptLiveKey(s) {
|
|
1930
|
-
if ('zellijPaneId' in s)
|
|
1931
|
-
return `live:zellij:${s.zellijSession}/${s.zellijPaneId}`;
|
|
1932
|
-
return `live:${adoptTargetKey(s)}`;
|
|
1933
|
-
}
|
|
1934
|
-
/** Fold both adopt sources into one uniform entry list. Live entries come
|
|
1935
|
-
* first (they're the "act now" targets), resume entries after. Order is
|
|
1936
|
-
* stable so pagination is deterministic across re-renders.
|
|
1937
|
-
*
|
|
1938
|
-
* `resumeCliId` labels the resume (history) entries with the bot's own CLI —
|
|
1939
|
-
* ResumableSession carries no cliId (resume only ever offers the bot's own
|
|
1940
|
-
* CLI, so the caller knows it), and the user wants to see "Codex" on each
|
|
1941
|
-
* history row rather than a blank. */
|
|
1942
|
-
export function buildAdoptEntries(sessions, resumable, resumeCliId, runtimeDisplayName) {
|
|
1943
|
-
const customName = runtimeDisplayName?.trim();
|
|
1944
|
-
const live = sessions.map((s) => {
|
|
1945
|
-
const zellij = 'zellijPaneId' in s;
|
|
1946
|
-
const project = s.cwd.split('/').pop() || s.cwd;
|
|
1947
|
-
const target = zellij ? `${s.zellijSession}/${s.zellijPaneId}` : adoptTargetLabel(s);
|
|
1948
|
-
return {
|
|
1949
|
-
key: adoptLiveKey(s),
|
|
1950
|
-
kind: 'live',
|
|
1951
|
-
cliId: s.cliId,
|
|
1952
|
-
...(customName && s.cliId === resumeCliId ? { cliDisplayName: customName } : {}),
|
|
1953
|
-
title: project,
|
|
1954
|
-
project,
|
|
1955
|
-
cwd: s.cwd,
|
|
1956
|
-
sessionId: s.sessionId,
|
|
1957
|
-
target,
|
|
1958
|
-
timeMs: s.startedAt,
|
|
1959
|
-
};
|
|
1960
|
-
});
|
|
1961
|
-
const resume = resumable.map((r) => {
|
|
1962
|
-
const project = r.cwd.split('/').pop() || r.cwd;
|
|
1963
|
-
return {
|
|
1964
|
-
key: `resume:${r.cliSessionId}`,
|
|
1965
|
-
kind: 'resume',
|
|
1966
|
-
cliId: resumeCliId,
|
|
1967
|
-
...(customName ? { cliDisplayName: customName } : {}),
|
|
1968
|
-
title: r.title || r.cliSessionId.slice(0, 8),
|
|
1969
|
-
project,
|
|
1970
|
-
cwd: r.cwd,
|
|
1971
|
-
sessionId: r.cliSessionId,
|
|
1972
|
-
timeMs: r.lastActivityAt || undefined,
|
|
1973
|
-
};
|
|
1974
|
-
});
|
|
1975
|
-
return [...live, ...resume];
|
|
1976
|
-
}
|
|
1977
|
-
const ADOPT_PICKER_PAGE_SIZE = 5;
|
|
1978
|
-
const ADOPT_SEARCH_FIELD = 'adopt_search_q';
|
|
1979
|
-
/** Case-insensitive substring over title / project / cwd / cliId / sessionId.
|
|
1980
|
-
* Empty query matches everything. Includes sessionId so a user who knows the
|
|
1981
|
-
* id can type it and jump straight to the entry. */
|
|
1982
|
-
function adoptPickerFilter(entries, query) {
|
|
1983
|
-
const q = (query ?? '').trim().toLowerCase();
|
|
1984
|
-
if (!q)
|
|
1985
|
-
return entries;
|
|
1986
|
-
return entries.filter((e) => {
|
|
1987
|
-
const haystack = [e.title, e.project, e.cwd, e.cliId, e.cliDisplayName, e.sessionId, e.target]
|
|
1988
|
-
.filter(Boolean)
|
|
1989
|
-
.join(' ')
|
|
1990
|
-
.toLowerCase();
|
|
1991
|
-
return haystack.includes(q);
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
/**
|
|
1995
|
-
* V2 adopt picker card. Layout mirrors buildRelayPickerCard: search box →
|
|
1996
|
-
* ≤5 session cards (clickable, highlight on select) → paginator → confirm.
|
|
1997
|
-
* All state (search / page / selected / root_id / invoker) rides on the
|
|
1998
|
-
* value objects since Lark cards are stateless server-side.
|
|
1999
|
-
*
|
|
2000
|
-
* `truncated` renders a hint when the resume list was capped, so the user
|
|
2001
|
-
* knows to narrow via search instead of assuming they saw everything.
|
|
2002
|
-
*/
|
|
2003
|
-
export function buildAdoptSelectCard(sessions, rootMessageId, locale, resumable, state, invokerOpenId, resumeLimit, resumeCliId, runtimeDisplayName) {
|
|
2004
|
-
const entries = buildAdoptEntries(sessions, resumable ?? [], resumeCliId, runtimeDisplayName);
|
|
2005
|
-
const searchQuery = state?.searchQuery ?? '';
|
|
2006
|
-
const requestedPage = state?.page ?? 0;
|
|
2007
|
-
const selectedKey = state?.selectedKey;
|
|
2008
|
-
const elements = [];
|
|
2009
|
-
const unknownUptime = t('card.adopt.uptime_unknown', undefined, locale);
|
|
2010
|
-
const sessionUnknown = t('card.adopt.session_unknown', undefined, locale);
|
|
2011
|
-
// Truncation hint: resume discovery caps at resumeLimit; if it came back
|
|
2012
|
-
// full, the user is probably not seeing everything → tell them to search.
|
|
2013
|
-
const resumeCount = (resumable ?? []).length;
|
|
2014
|
-
const truncated = !!resumeLimit && resumeCount >= resumeLimit;
|
|
2015
|
-
// ─── Filter & paginate ───────────────────────────────────────────────
|
|
2016
|
-
const filtered = adoptPickerFilter(entries, searchQuery);
|
|
2017
|
-
const totalPages = Math.max(1, Math.ceil(filtered.length / ADOPT_PICKER_PAGE_SIZE));
|
|
2018
|
-
const page = Math.min(Math.max(0, requestedPage), totalPages - 1);
|
|
2019
|
-
const start = page * ADOPT_PICKER_PAGE_SIZE;
|
|
2020
|
-
const visible = filtered.slice(start, start + ADOPT_PICKER_PAGE_SIZE);
|
|
2021
|
-
// Common state carried by every interactive value so re-renders can
|
|
2022
|
-
// reconstruct the view. invoker_open_id pins the card to its summoner.
|
|
2023
|
-
const stateValue = {
|
|
2024
|
-
root_id: rootMessageId ?? '',
|
|
2025
|
-
invoker_open_id: invokerOpenId ?? '',
|
|
2026
|
-
search: searchQuery,
|
|
2027
|
-
page,
|
|
2028
|
-
selected: selectedKey ?? '',
|
|
2029
|
-
};
|
|
2030
|
-
// ─── Search box (auto-submit input, same as relay) ──────────────────
|
|
2031
|
-
elements.push({
|
|
2032
|
-
tag: 'input',
|
|
2033
|
-
name: ADOPT_SEARCH_FIELD,
|
|
2034
|
-
placeholder: { tag: 'plain_text', content: t('card.adopt.search_placeholder', undefined, locale) },
|
|
2035
|
-
default_value: searchQuery,
|
|
2036
|
-
width: 'fill',
|
|
2037
|
-
behaviors: [
|
|
2038
|
-
{
|
|
2039
|
-
type: 'callback',
|
|
2040
|
-
value: { action: 'adopt_search', ...stateValue, selected: '' /* new search → reset selection */ },
|
|
2041
|
-
},
|
|
2042
|
-
],
|
|
2043
|
-
});
|
|
2044
|
-
if (truncated) {
|
|
2045
|
-
elements.push({
|
|
2046
|
-
tag: 'markdown',
|
|
2047
|
-
content: `<font color='orange'>${t('card.adopt.truncated', { limit: resumeLimit }, locale)}</font>`,
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
elements.push({ tag: 'hr' });
|
|
2051
|
-
// ─── Empty / no-match ───────────────────────────────────────────────
|
|
2052
|
-
if (entries.length === 0) {
|
|
2053
|
-
elements.push({ tag: 'markdown', content: t('card.adopt.empty', undefined, locale) });
|
|
2054
|
-
return JSON.stringify(wrapAdoptCard(elements, locale));
|
|
2055
|
-
}
|
|
2056
|
-
if (filtered.length === 0) {
|
|
2057
|
-
// escapeMd the echoed query: it's raw operator input rendered into a
|
|
2058
|
-
// markdown element, so an unescaped `` would render as an
|
|
2059
|
-
// image (external fetch = tracking beacon / SSRF surface). Neutralising
|
|
2060
|
-
// [ ] ` etc. defuses that. (buildRelayPickerCard echoes its query the
|
|
2061
|
-
// same way and shares the same latent risk — tracked separately.)
|
|
2062
|
-
elements.push({ tag: 'markdown', content: t('card.adopt.empty_filtered', { query: escapeMd(searchQuery) }, locale) });
|
|
2063
|
-
return JSON.stringify(wrapAdoptCard(elements, locale));
|
|
2064
|
-
}
|
|
2065
|
-
const labelKind = t('card.adopt.field_kind', undefined, locale);
|
|
2066
|
-
const labelCli = t('card.adopt.field_cli', undefined, locale);
|
|
2067
|
-
const labelDir = t('card.adopt.field_dir', undefined, locale);
|
|
2068
|
-
const labelSession = t('card.adopt.field_session', undefined, locale);
|
|
2069
|
-
const labelTarget = t('card.adopt.field_target', undefined, locale);
|
|
2070
|
-
const selectedTag = t('card.adopt.selected_tag', undefined, locale);
|
|
2071
|
-
const selectedEntry = selectedKey ? filtered.find(e => e.key === selectedKey) : undefined;
|
|
2072
|
-
const hasValidSelection = !!selectedEntry;
|
|
2073
|
-
// ─── Session cards (current page) ───────────────────────────────────
|
|
2074
|
-
visible.forEach((e) => {
|
|
2075
|
-
const isSelected = e.key === selectedKey;
|
|
2076
|
-
const kindTag = e.kind === 'live'
|
|
2077
|
-
? t('card.adopt.kind_live', undefined, locale)
|
|
2078
|
-
: t('card.adopt.kind_resume', undefined, locale);
|
|
2079
|
-
const cliName = e.cliDisplayName ?? (e.cliId ? getCliDisplayName(e.cliId) : '—');
|
|
2080
|
-
const timeLabel = e.kind === 'live'
|
|
2081
|
-
? t('card.adopt.field_time_live', undefined, locale)
|
|
2082
|
-
: t('card.adopt.field_time_resume', undefined, locale);
|
|
2083
|
-
const timeVal = e.timeMs
|
|
2084
|
-
? (e.kind === 'live' ? formatDuration(Date.now() - e.timeMs) : formatThreadUpdatedAt(e.timeMs, locale))
|
|
2085
|
-
: unknownUptime;
|
|
2086
|
-
const titleLine = isSelected
|
|
2087
|
-
? `**✅ ${escapeMd(e.title)}** \`${selectedTag}\``
|
|
2088
|
-
: `**${escapeMd(e.title)}**`;
|
|
2089
|
-
const lines = [
|
|
2090
|
-
titleLine,
|
|
2091
|
-
`${labelKind}: ${kindTag}`,
|
|
2092
|
-
`${labelCli}: ${escapeMd(cliName)}`,
|
|
2093
|
-
`${labelDir}: \`${escapeMd(e.cwd)}\``,
|
|
2094
|
-
`${labelSession}: \`${escapeMd(e.sessionId || sessionUnknown)}\``,
|
|
2095
|
-
];
|
|
2096
|
-
if (e.kind === 'live' && e.target)
|
|
2097
|
-
lines.push(`${labelTarget}: \`${escapeMd(e.target)}\``);
|
|
2098
|
-
lines.push(`${timeLabel}: ${timeVal}`);
|
|
2099
|
-
elements.push({
|
|
2100
|
-
tag: 'interactive_container',
|
|
2101
|
-
width: 'fill',
|
|
2102
|
-
padding: '8px 12px',
|
|
2103
|
-
background_style: isSelected ? 'laser' : 'default',
|
|
2104
|
-
has_border: true,
|
|
2105
|
-
border_color: isSelected ? 'blue-500' : 'grey-200',
|
|
2106
|
-
corner_radius: '8px',
|
|
2107
|
-
behaviors: [
|
|
2108
|
-
{ type: 'callback', value: { action: 'adopt_pick', entry_key: e.key, ...stateValue } },
|
|
2109
|
-
],
|
|
2110
|
-
elements: [{ tag: 'markdown', content: lines.join('\n') }],
|
|
2111
|
-
});
|
|
2112
|
-
});
|
|
2113
|
-
// ─── Paginator ──────────────────────────────────────────────────────
|
|
2114
|
-
if (totalPages > 1) {
|
|
2115
|
-
elements.push({
|
|
2116
|
-
tag: 'column_set',
|
|
2117
|
-
flex_mode: 'none',
|
|
2118
|
-
horizontal_spacing: 'default',
|
|
2119
|
-
columns: [
|
|
2120
|
-
{
|
|
2121
|
-
tag: 'column', width: 'weighted', weight: 1, vertical_align: 'center',
|
|
2122
|
-
elements: [{
|
|
2123
|
-
tag: 'button',
|
|
2124
|
-
text: { tag: 'plain_text', content: t('card.relay.btn_prev_page', undefined, locale) },
|
|
2125
|
-
type: 'default',
|
|
2126
|
-
disabled: page === 0,
|
|
2127
|
-
behaviors: [{ type: 'callback', value: { action: 'adopt_page', ...stateValue, page: Math.max(0, page - 1) } }],
|
|
2128
|
-
}],
|
|
2129
|
-
},
|
|
2130
|
-
{
|
|
2131
|
-
tag: 'column', width: 'weighted', weight: 2, vertical_align: 'center',
|
|
2132
|
-
elements: [{
|
|
2133
|
-
tag: 'markdown', text_align: 'center',
|
|
2134
|
-
content: t('card.relay.page_indicator', { current: page + 1, total: totalPages }, locale),
|
|
2135
|
-
}],
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
tag: 'column', width: 'weighted', weight: 1, vertical_align: 'center',
|
|
2139
|
-
elements: [{
|
|
2140
|
-
tag: 'button',
|
|
2141
|
-
text: { tag: 'plain_text', content: t('card.relay.btn_next_page', undefined, locale) },
|
|
2142
|
-
type: 'default',
|
|
2143
|
-
disabled: page >= totalPages - 1,
|
|
2144
|
-
behaviors: [{ type: 'callback', value: { action: 'adopt_page', ...stateValue, page: Math.min(totalPages - 1, page + 1) } }],
|
|
2145
|
-
}],
|
|
2146
|
-
},
|
|
2147
|
-
],
|
|
2148
|
-
});
|
|
2149
|
-
}
|
|
2150
|
-
// ─── Confirm button or hint ─────────────────────────────────────────
|
|
2151
|
-
elements.push({ tag: 'hr' });
|
|
2152
|
-
if (hasValidSelection) {
|
|
2153
|
-
const btnKey = selectedEntry.kind === 'live' ? 'card.adopt.btn_confirm_live' : 'card.adopt.btn_confirm_resume';
|
|
2154
|
-
elements.push({
|
|
2155
|
-
tag: 'column_set',
|
|
2156
|
-
flex_mode: 'none',
|
|
2157
|
-
columns: [{
|
|
2158
|
-
tag: 'column', width: 'weighted', weight: 1,
|
|
2159
|
-
elements: [{
|
|
2160
|
-
tag: 'button',
|
|
2161
|
-
text: { tag: 'plain_text', content: t(btnKey, undefined, locale) },
|
|
2162
|
-
type: 'primary',
|
|
2163
|
-
behaviors: [{ type: 'callback', value: { action: 'adopt_confirm', entry_key: selectedEntry.key, ...stateValue } }],
|
|
2164
|
-
}],
|
|
2165
|
-
}],
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
else {
|
|
2169
|
-
elements.push({
|
|
2170
|
-
tag: 'markdown',
|
|
2171
|
-
content: `<font color='grey'>${t('card.adopt.hint_pick_first', undefined, locale)}</font>`,
|
|
2172
|
-
});
|
|
2173
|
-
}
|
|
2174
|
-
return JSON.stringify(wrapAdoptCard(elements, locale));
|
|
2175
|
-
}
|
|
2176
|
-
function wrapAdoptCard(elements, locale) {
|
|
2177
|
-
return {
|
|
2178
|
-
schema: '2.0',
|
|
2179
|
-
config: { update_multi: true, wide_screen_mode: true },
|
|
2180
|
-
header: {
|
|
2181
|
-
template: 'blue',
|
|
2182
|
-
title: { tag: 'plain_text', content: t('card.adopt.title', undefined, locale) },
|
|
2183
|
-
},
|
|
2184
|
-
body: { direction: 'vertical', elements },
|
|
2185
|
-
};
|
|
2186
|
-
}
|
|
2187
|
-
function compactPlainText(s, max = 72) {
|
|
2188
|
-
const oneLine = s.replace(/\s+/g, ' ').trim();
|
|
2189
|
-
return oneLine.length > max ? oneLine.slice(0, max - 1) + '…' : oneLine;
|
|
2190
|
-
}
|
|
2191
|
-
function formatThreadUpdatedAt(ms, locale) {
|
|
2192
|
-
if (!ms)
|
|
2193
|
-
return t('card.codex_app_thread.updated_unknown', undefined, locale);
|
|
2194
|
-
const loc = locale === 'en' ? 'en-US' : 'zh-CN';
|
|
2195
|
-
return new Date(ms).toLocaleString(loc, {
|
|
2196
|
-
month: '2-digit',
|
|
2197
|
-
day: '2-digit',
|
|
2198
|
-
hour: '2-digit',
|
|
2199
|
-
minute: '2-digit',
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
export function buildCodexAppThreadSelectCard(threads, rootMessageId, locale) {
|
|
2203
|
-
const options = threads.map((thread) => {
|
|
2204
|
-
const title = compactPlainText(thread.name || thread.preview || thread.threadId, 44);
|
|
2205
|
-
const project = compactPlainText(thread.cwd.split('/').pop() || thread.cwd, 18);
|
|
2206
|
-
const updated = formatThreadUpdatedAt(thread.updatedAtMs, locale);
|
|
2207
|
-
return {
|
|
2208
|
-
text: { tag: 'plain_text', content: `${title} · ${project} · ${updated}` },
|
|
2209
|
-
value: JSON.stringify({ threadId: thread.threadId }),
|
|
2210
|
-
};
|
|
2211
|
-
});
|
|
2212
|
-
const card = {
|
|
2213
|
-
config: { wide_screen_mode: true },
|
|
2214
|
-
header: {
|
|
2215
|
-
template: 'blue',
|
|
2216
|
-
title: { tag: 'plain_text', content: t('card.codex_app_thread.title', undefined, locale) },
|
|
2217
|
-
},
|
|
2218
|
-
elements: [
|
|
2219
|
-
{
|
|
2220
|
-
tag: 'div',
|
|
2221
|
-
text: { tag: 'lark_md', content: t('card.codex_app_thread.subtitle', undefined, locale) },
|
|
2222
|
-
},
|
|
2223
|
-
{
|
|
2224
|
-
tag: 'action',
|
|
2225
|
-
actions: [
|
|
2226
|
-
{
|
|
2227
|
-
tag: 'select_static',
|
|
2228
|
-
placeholder: { tag: 'plain_text', content: t('card.codex_app_thread.placeholder_select', undefined, locale) },
|
|
2229
|
-
options,
|
|
2230
|
-
value: { key: 'codex_app_thread_select', root_id: rootMessageId ?? '' },
|
|
2231
|
-
},
|
|
2232
|
-
],
|
|
2233
|
-
},
|
|
2234
|
-
],
|
|
2235
|
-
};
|
|
2236
|
-
return JSON.stringify(card);
|
|
2237
|
-
}
|
|
2238
|
-
//# sourceMappingURL=card-builder.js.map
|