@evalops/maestro 0.10.8 → 0.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/agent/action-approval.d.ts +6 -0
- package/dist/agent/action-approval.d.ts.map +1 -1
- package/dist/agent/action-approval.js.map +1 -1
- package/dist/agent/agent.d.ts +13 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +368 -1
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/auto-compaction.d.ts +4 -4
- package/dist/agent/auto-compaction.d.ts.map +1 -1
- package/dist/agent/auto-compaction.js.map +1 -1
- package/dist/agent/compaction-cleanup.d.ts +2 -0
- package/dist/agent/compaction-cleanup.d.ts.map +1 -1
- package/dist/agent/compaction-cleanup.js +17 -2
- package/dist/agent/compaction-cleanup.js.map +1 -1
- package/dist/agent/compaction.d.ts +3 -1
- package/dist/agent/compaction.d.ts.map +1 -1
- package/dist/agent/compaction.js +10 -2
- package/dist/agent/compaction.js.map +1 -1
- package/dist/agent/context-manager.d.ts +4 -0
- package/dist/agent/context-manager.d.ts.map +1 -1
- package/dist/agent/context-manager.js +8 -0
- package/dist/agent/context-manager.js.map +1 -1
- package/dist/agent/context-providers.d.ts +2 -0
- package/dist/agent/context-providers.d.ts.map +1 -1
- package/dist/agent/context-providers.js +3 -2
- package/dist/agent/context-providers.js.map +1 -1
- package/dist/agent/providers/google-gemini-cli.js +17 -5
- package/dist/agent/providers/google.js +174 -144
- package/dist/agent/providers/openai-codex-responses.d.ts +4 -0
- package/dist/agent/providers/openai-codex-responses.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-responses.js +637 -0
- package/dist/agent/providers/openai-codex-responses.js.map +1 -0
- package/dist/agent/providers/openai-codex-session.d.ts +18 -0
- package/dist/agent/providers/openai-codex-session.d.ts.map +1 -0
- package/dist/agent/providers/openai-codex-session.js +53 -0
- package/dist/agent/providers/openai-codex-session.js.map +1 -0
- package/dist/agent/providers/openai-responses-sdk.d.ts.map +1 -1
- package/dist/agent/providers/openai-responses-sdk.js +16 -6
- package/dist/agent/providers/openai-responses-sdk.js.map +1 -1
- package/dist/agent/providers/openai-shared.d.ts +12 -5
- package/dist/agent/providers/openai-shared.d.ts.map +1 -1
- package/dist/agent/providers/openai-shared.js +291 -2
- package/dist/agent/providers/openai-shared.js.map +1 -1
- package/dist/agent/providers/openai.d.ts +1 -1
- package/dist/agent/providers/openai.d.ts.map +1 -1
- package/dist/agent/providers/openai.js +48 -20
- package/dist/agent/providers/openai.js.map +1 -1
- package/dist/agent/providers/vertex.js +7 -0
- package/dist/agent/tracing.d.ts +16 -5
- package/dist/agent/tracing.d.ts.map +1 -1
- package/dist/agent/tracing.js +44 -2
- package/dist/agent/tracing.js.map +1 -1
- package/dist/agent/transport/create-provider-stream.d.ts.map +1 -1
- package/dist/agent/transport/create-provider-stream.js +9 -0
- package/dist/agent/transport/create-provider-stream.js.map +1 -1
- package/dist/agent/transport/tool-execution-bridge.d.ts +86 -0
- package/dist/agent/transport/tool-execution-bridge.d.ts.map +1 -0
- package/dist/agent/transport/tool-execution-bridge.js +665 -0
- package/dist/agent/transport/tool-execution-bridge.js.map +1 -0
- package/dist/agent/transport/tool-execution.d.ts +3 -0
- package/dist/agent/transport/tool-execution.d.ts.map +1 -1
- package/dist/agent/transport/tool-execution.js +16 -1
- package/dist/agent/transport/tool-execution.js.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts +7 -1
- package/dist/agent/transport/tool-safety-pipeline.d.ts.map +1 -1
- package/dist/agent/transport/tool-safety-pipeline.js +207 -40
- package/dist/agent/transport/tool-safety-pipeline.js.map +1 -1
- package/dist/agent/transport/tool-update-queue.d.ts +2 -0
- package/dist/agent/transport/tool-update-queue.d.ts.map +1 -1
- package/dist/agent/transport/tool-update-queue.js.map +1 -1
- package/dist/agent/transport.d.ts +3 -0
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +96 -16
- package/dist/agent/transport.js.map +1 -1
- package/dist/agent/types.d.ts +50 -2
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/approvals/platform-action-approval.d.ts +32 -0
- package/dist/approvals/platform-action-approval.d.ts.map +1 -0
- package/dist/approvals/platform-action-approval.js +210 -0
- package/dist/approvals/platform-action-approval.js.map +1 -0
- package/dist/approvals/service-client.d.ts +56 -0
- package/dist/approvals/service-client.d.ts.map +1 -0
- package/dist/approvals/service-client.js +316 -0
- package/dist/approvals/service-client.js.map +1 -0
- package/dist/audit/logger.d.ts +4 -4
- package/dist/bootstrap/auth-setup.d.ts +2 -2
- package/dist/bootstrap/auth-setup.d.ts.map +1 -1
- package/dist/bootstrap/auth-setup.js +4 -7
- package/dist/bootstrap/auth-setup.js.map +1 -1
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +29 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/commands/codex.d.ts +2 -0
- package/dist/cli/commands/codex.d.ts.map +1 -0
- package/dist/cli/commands/codex.js +65 -0
- package/dist/cli/commands/codex.js.map +1 -0
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/evalops.d.ts +2 -0
- package/dist/cli/commands/evalops.d.ts.map +1 -0
- package/dist/cli/commands/evalops.js +74 -0
- package/dist/cli/commands/evalops.js.map +1 -0
- package/dist/cli/commands/hosted-runner.d.ts +23 -0
- package/dist/cli/commands/hosted-runner.d.ts.map +1 -0
- package/dist/cli/commands/hosted-runner.js +241 -0
- package/dist/cli/commands/hosted-runner.js.map +1 -0
- package/dist/cli/commands/init.d.ts +4 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +140 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +23 -30
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/remote.d.ts +3 -0
- package/dist/cli/commands/remote.d.ts.map +1 -0
- package/dist/cli/commands/remote.js +631 -0
- package/dist/cli/commands/remote.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +7 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +167 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/headless-protocol.d.ts +16 -1
- package/dist/cli/headless-protocol.d.ts.map +1 -1
- package/dist/cli/headless-protocol.js +60 -4
- package/dist/cli/headless-protocol.js.map +1 -1
- package/dist/cli/headless.d.ts.map +1 -1
- package/dist/cli/headless.js +1 -0
- package/dist/cli/headless.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +44 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/jsonl-writer.d.ts.map +1 -1
- package/dist/cli/jsonl-writer.js +19 -6
- package/dist/cli/jsonl-writer.js.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.d.ts.map +1 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js +17 -1
- package/dist/cli-tui/client-tools/client-tool-controller.js.map +1 -1
- package/dist/cli-tui/commands/access-command.js +1 -1
- package/dist/cli-tui/commands/access-command.js.map +1 -1
- package/dist/cli-tui/commands/audit-command.js +1 -1
- package/dist/cli-tui/commands/audit-command.js.map +1 -1
- package/dist/cli-tui/commands/command-catalog.d.ts +29 -0
- package/dist/cli-tui/commands/command-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-catalog.js +645 -0
- package/dist/cli-tui/commands/command-catalog.js.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts +12 -0
- package/dist/cli-tui/commands/command-registry-adapter.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-registry-adapter.js +120 -0
- package/dist/cli-tui/commands/command-registry-adapter.js.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts +14 -0
- package/dist/cli-tui/commands/command-suite-catalog.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-catalog.js +147 -0
- package/dist/cli-tui/commands/command-suite-catalog.js.map +1 -0
- package/dist/cli-tui/commands/{grouped-command-handlers.d.ts → command-suite-handlers.d.ts} +27 -26
- package/dist/cli-tui/commands/command-suite-handlers.d.ts.map +1 -0
- package/dist/cli-tui/commands/command-suite-handlers.js +110 -0
- package/dist/cli-tui/commands/command-suite-handlers.js.map +1 -0
- package/dist/cli-tui/commands/hotkeys-command.d.ts +1 -1
- package/dist/cli-tui/commands/hotkeys-command.d.ts.map +1 -1
- package/dist/cli-tui/commands/hotkeys-command.js +2 -2
- package/dist/cli-tui/commands/hotkeys-command.js.map +1 -1
- package/dist/cli-tui/commands/limits-command.js +1 -1
- package/dist/cli-tui/commands/limits-command.js.map +1 -1
- package/dist/cli-tui/commands/pii-command.js +1 -1
- package/dist/cli-tui/commands/pii-command.js.map +1 -1
- package/dist/cli-tui/commands/registry.d.ts +1 -1
- package/dist/cli-tui/commands/registry.d.ts.map +1 -1
- package/dist/cli-tui/commands/registry.js +29 -921
- package/dist/cli-tui/commands/registry.js.map +1 -1
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.d.ts +2 -1
- package/dist/cli-tui/commands/subcommands/auth-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/auth-commands.js +22 -6
- package/dist/cli-tui/commands/subcommands/auth-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/config-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/config-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/config-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/diag-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/diag-commands.js +5 -7
- package/dist/cli-tui/commands/subcommands/diag-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.d.ts +0 -2
- package/dist/cli-tui/commands/subcommands/git-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/git-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/git-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.d.ts +2 -2
- package/dist/cli-tui/commands/subcommands/index.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/index.js +2 -2
- package/dist/cli-tui/commands/subcommands/index.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/safety-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/safety-commands.js +12 -12
- package/dist/cli-tui/commands/subcommands/safety-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/session-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/session-commands.js +3 -3
- package/dist/cli-tui/commands/subcommands/session-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/tools-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/tools-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/tools-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.d.ts +0 -1
- package/dist/cli-tui/commands/subcommands/ui-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/ui-commands.js +5 -5
- package/dist/cli-tui/commands/subcommands/ui-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.d.ts +1 -2
- package/dist/cli-tui/commands/subcommands/undo-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/undo-commands.js +6 -6
- package/dist/cli-tui/commands/subcommands/undo-commands.js.map +1 -0
- package/dist/cli-tui/commands/subcommands/usage-commands.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.js +2 -2
- package/dist/cli-tui/commands/subcommands/usage-commands.js.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.d.ts +15 -15
- package/dist/cli-tui/commands/subcommands/utils.d.ts.map +1 -0
- package/dist/cli-tui/commands/{grouped → subcommands}/utils.js +13 -8
- package/dist/cli-tui/commands/subcommands/utils.js.map +1 -0
- package/dist/cli-tui/commands/types.d.ts +3 -3
- package/dist/cli-tui/commands/types.d.ts.map +1 -1
- package/dist/cli-tui/commands/types.js.map +1 -1
- package/dist/cli-tui/editor-view.d.ts +1 -1
- package/dist/cli-tui/editor-view.d.ts.map +1 -1
- package/dist/cli-tui/editor-view.js +1 -1
- package/dist/cli-tui/editor-view.js.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts +4 -0
- package/dist/cli-tui/oauth/oauth-flow-controller.d.ts.map +1 -1
- package/dist/cli-tui/oauth/oauth-flow-controller.js +76 -5
- package/dist/cli-tui/oauth/oauth-flow-controller.js.map +1 -1
- package/dist/cli-tui/run/run-controller.d.ts +2 -2
- package/dist/cli-tui/run/run-controller.d.ts.map +1 -1
- package/dist/cli-tui/run/run-controller.js +3 -2
- package/dist/cli-tui/run/run-controller.js.map +1 -1
- package/dist/cli-tui/run/run-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/run-shell-command.js +11 -3
- package/dist/cli-tui/run/run-shell-command.js.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.d.ts.map +1 -1
- package/dist/cli-tui/run/streaming-shell-command.js +11 -3
- package/dist/cli-tui/run/streaming-shell-command.js.map +1 -1
- package/dist/cli-tui/selectors/model-selector.d.ts.map +1 -1
- package/dist/cli-tui/selectors/model-selector.js +1 -0
- package/dist/cli-tui/selectors/model-selector.js.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts +8 -0
- package/dist/cli-tui/tui-renderer/agent-event-bridge.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js +23 -2
- package/dist/cli-tui/tui-renderer/agent-event-bridge.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts +3 -3
- package/dist/cli-tui/tui-renderer/command-registry-options.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/command-registry-options.js +12 -2
- package/dist/cli-tui/tui-renderer/command-registry-options.js.map +1 -1
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts +32 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.d.ts.map +1 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js +108 -0
- package/dist/cli-tui/tui-renderer/command-suite-wiring.js.map +1 -0
- package/dist/cli-tui/tui-renderer/input-controller.d.ts +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer/input-controller.js +2 -2
- package/dist/cli-tui/tui-renderer/input-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.d.ts +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js +1 -1
- package/dist/cli-tui/tui-renderer/ui-state-controller.js.map +1 -1
- package/dist/cli-tui/tui-renderer.d.ts +1 -3
- package/dist/cli-tui/tui-renderer.d.ts.map +1 -1
- package/dist/cli-tui/tui-renderer.js +37 -83
- package/dist/cli-tui/tui-renderer.js.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.d.ts +8 -0
- package/dist/cli-tui/utils/runtime-badges.d.ts.map +1 -1
- package/dist/cli-tui/utils/runtime-badges.js +58 -0
- package/dist/cli-tui/utils/runtime-badges.js.map +1 -1
- package/dist/cli.js +42555 -23133
- package/dist/cli.js.map +1 -1
- package/dist/config/env-vars.d.ts +4 -0
- package/dist/config/env-vars.d.ts.map +1 -1
- package/dist/config/env-vars.js +4 -0
- package/dist/config/env-vars.js.map +1 -1
- package/dist/config/feature-flags.d.ts +44 -0
- package/dist/config/feature-flags.d.ts.map +1 -1
- package/dist/config/feature-flags.js +214 -0
- package/dist/config/feature-flags.js.map +1 -1
- package/dist/connectors/service-client.d.ts +98 -0
- package/dist/connectors/service-client.d.ts.map +1 -0
- package/dist/connectors/service-client.js +459 -0
- package/dist/connectors/service-client.js.map +1 -0
- package/dist/conversation/render-model.d.ts.map +1 -1
- package/dist/conversation/render-model.js +53 -3
- package/dist/conversation/render-model.js.map +1 -1
- package/dist/db/health.d.ts +8 -0
- package/dist/db/health.d.ts.map +1 -0
- package/dist/db/health.js +64 -0
- package/dist/db/health.js.map +1 -0
- package/dist/db/migrate.d.ts +301 -0
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +186 -0
- package/dist/db/migrate.js.map +1 -1
- package/dist/db/migrations/0000_initial.sql +308 -0
- package/dist/db/migrations/0001_shared_sessions.sql +18 -0
- package/dist/db/migrations/0002_usage_metrics.sql +28 -0
- package/dist/db/migrations/0003_execution_traces.sql +18 -0
- package/dist/db/migrations/0004_workspace_config.sql +11 -0
- package/dist/db/migrations/0005_revenue_attribution.sql +31 -0
- package/dist/db/migrations/0006_hosted_session_storage.sql +51 -0
- package/dist/db/migrations/0007_reconcile_legacy_audit_hash_cache.sql +24 -0
- package/dist/db/migrations/0008_reconcile_legacy_webhook_deliveries.sql +290 -0
- package/dist/db/migrations/meta/0000_snapshot.json +2438 -0
- package/dist/db/migrations/meta/_journal.json +69 -0
- package/dist/db/schema.d.ts +2232 -844
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +187 -1
- package/dist/db/schema.js.map +1 -1
- package/dist/evalops/agent-bootstrap.d.ts +73 -0
- package/dist/evalops/agent-bootstrap.d.ts.map +1 -0
- package/dist/evalops/agent-bootstrap.js +380 -0
- package/dist/evalops/agent-bootstrap.js.map +1 -0
- package/dist/export-html.d.ts.map +1 -1
- package/dist/export-html.js +7 -4
- package/dist/export-html.js.map +1 -1
- package/dist/headless/utility-command-manager.d.ts +2 -1
- package/dist/headless/utility-command-manager.d.ts.map +1 -1
- package/dist/headless/utility-command-manager.js +12 -6
- package/dist/headless/utility-command-manager.js.map +1 -1
- package/dist/headless/utility-file-read.d.ts +1 -0
- package/dist/headless/utility-file-read.d.ts.map +1 -1
- package/dist/headless/utility-file-read.js +5 -1
- package/dist/headless/utility-file-read.js.map +1 -1
- package/dist/headless/utility-file-search.d.ts +1 -0
- package/dist/headless/utility-file-search.d.ts.map +1 -1
- package/dist/headless/utility-file-search.js +4 -1
- package/dist/headless/utility-file-search.js.map +1 -1
- package/dist/headless/utility-file-watch-manager.d.ts +2 -1
- package/dist/headless/utility-file-watch-manager.d.ts.map +1 -1
- package/dist/headless/utility-file-watch-manager.js +6 -2
- package/dist/headless/utility-file-watch-manager.js.map +1 -1
- package/dist/headless/workspace-root.d.ts +8 -0
- package/dist/headless/workspace-root.d.ts.map +1 -0
- package/dist/headless/workspace-root.js +74 -0
- package/dist/headless/workspace-root.js.map +1 -0
- package/dist/hooks/notification-hooks.d.ts +5 -0
- package/dist/hooks/notification-hooks.d.ts.map +1 -1
- package/dist/hooks/notification-hooks.js +4 -0
- package/dist/hooks/notification-hooks.js.map +1 -1
- package/dist/lsp/diagnostic-deltas.d.ts +20 -0
- package/dist/lsp/diagnostic-deltas.d.ts.map +1 -0
- package/dist/lsp/diagnostic-deltas.js +92 -0
- package/dist/lsp/diagnostic-deltas.js.map +1 -0
- package/dist/lsp/diagnostic-repair.d.ts +48 -0
- package/dist/lsp/diagnostic-repair.d.ts.map +1 -0
- package/dist/lsp/diagnostic-repair.js +143 -0
- package/dist/lsp/diagnostic-repair.js.map +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +127 -37
- package/dist/main.js.map +1 -1
- package/dist/mcp/config.d.ts +4 -2
- package/dist/mcp/config.d.ts.map +1 -1
- package/dist/mcp/config.js +58 -14
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/manager.d.ts +1 -0
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +1 -0
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/platform-plugin.d.ts +3 -0
- package/dist/mcp/platform-plugin.d.ts.map +1 -0
- package/dist/mcp/platform-plugin.js +117 -0
- package/dist/mcp/platform-plugin.js.map +1 -0
- package/dist/mcp/tool-bridge.d.ts +15 -0
- package/dist/mcp/tool-bridge.d.ts.map +1 -1
- package/dist/mcp/tool-bridge.js +194 -6
- package/dist/mcp/tool-bridge.js.map +1 -1
- package/dist/memory/platform-memory-client.d.ts +130 -0
- package/dist/memory/platform-memory-client.d.ts.map +1 -0
- package/dist/memory/platform-memory-client.js +330 -0
- package/dist/memory/platform-memory-client.js.map +1 -0
- package/dist/memory/service-client.d.ts.map +1 -1
- package/dist/memory/service-client.js +1 -2
- package/dist/memory/service-client.js.map +1 -1
- package/dist/models/builtin.d.ts.map +1 -1
- package/dist/models/builtin.js +137 -0
- package/dist/models/builtin.js.map +1 -1
- package/dist/models/config-loader.d.ts +10 -10
- package/dist/models/config-loader.d.ts.map +1 -1
- package/dist/models/config-loader.js +1 -0
- package/dist/models/config-loader.js.map +1 -1
- package/dist/models/registry.d.ts +1 -0
- package/dist/models/registry.d.ts.map +1 -1
- package/dist/models/registry.js +1 -0
- package/dist/models/registry.js.map +1 -1
- package/dist/oauth/connectors.d.ts +25 -0
- package/dist/oauth/connectors.d.ts.map +1 -0
- package/dist/oauth/connectors.js +253 -0
- package/dist/oauth/connectors.js.map +1 -0
- package/dist/oauth/device-identity.d.ts +18 -0
- package/dist/oauth/device-identity.d.ts.map +1 -0
- package/dist/oauth/device-identity.js +193 -0
- package/dist/oauth/device-identity.js.map +1 -0
- package/dist/oauth/evalops.d.ts.map +1 -1
- package/dist/oauth/evalops.js +74 -15
- package/dist/oauth/evalops.js.map +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/index.d.ts.map +1 -1
- package/dist/oauth/index.js +31 -1
- package/dist/oauth/index.js.map +1 -1
- package/dist/oauth/openai-codex.d.ts +16 -0
- package/dist/oauth/openai-codex.d.ts.map +1 -0
- package/dist/oauth/openai-codex.js +300 -0
- package/dist/oauth/openai-codex.js.map +1 -0
- package/dist/opentelemetry.d.ts.map +1 -1
- package/dist/opentelemetry.js +9 -2
- package/dist/opentelemetry.js.map +1 -1
- package/dist/platform/agent-runtime-client.d.ts +279 -0
- package/dist/platform/agent-runtime-client.d.ts.map +1 -0
- package/dist/platform/agent-runtime-client.js +515 -0
- package/dist/platform/agent-runtime-client.js.map +1 -0
- package/dist/platform/cerebro-facts-client.d.ts +56 -0
- package/dist/platform/cerebro-facts-client.d.ts.map +1 -0
- package/dist/platform/cerebro-facts-client.js +297 -0
- package/dist/platform/cerebro-facts-client.js.map +1 -0
- package/dist/platform/client.d.ts +2 -1
- package/dist/platform/client.d.ts.map +1 -1
- package/dist/platform/client.js +9 -26
- package/dist/platform/client.js.map +1 -1
- package/dist/platform/core-services.d.ts +128 -0
- package/dist/platform/core-services.d.ts.map +1 -1
- package/dist/platform/core-services.js +128 -0
- package/dist/platform/core-services.js.map +1 -1
- package/dist/platform/maestro-timeline-client.d.ts +22 -0
- package/dist/platform/maestro-timeline-client.d.ts.map +1 -0
- package/dist/platform/maestro-timeline-client.js +373 -0
- package/dist/platform/maestro-timeline-client.js.map +1 -0
- package/dist/platform/tool-execution-client.d.ts +104 -0
- package/dist/platform/tool-execution-client.d.ts.map +1 -0
- package/dist/platform/tool-execution-client.js +284 -0
- package/dist/platform/tool-execution-client.js.map +1 -0
- package/dist/prompts/service-client.d.ts.map +1 -1
- package/dist/prompts/service-client.js +5 -2
- package/dist/prompts/service-client.js.map +1 -1
- package/dist/providers/anthropic-auth.d.ts.map +1 -1
- package/dist/providers/anthropic-auth.js +8 -6
- package/dist/providers/anthropic-auth.js.map +1 -1
- package/dist/providers/api-keys.d.ts +1 -0
- package/dist/providers/api-keys.d.ts.map +1 -1
- package/dist/providers/api-keys.js +5 -0
- package/dist/providers/api-keys.js.map +1 -1
- package/dist/providers/auth.d.ts +2 -1
- package/dist/providers/auth.d.ts.map +1 -1
- package/dist/providers/auth.js +26 -3
- package/dist/providers/auth.js.map +1 -1
- package/dist/remote-runner/attach-client.d.ts +41 -0
- package/dist/remote-runner/attach-client.d.ts.map +1 -0
- package/dist/remote-runner/attach-client.js +692 -0
- package/dist/remote-runner/attach-client.js.map +1 -0
- package/dist/remote-runner/client.d.ts +205 -0
- package/dist/remote-runner/client.d.ts.map +1 -0
- package/dist/remote-runner/client.js +633 -0
- package/dist/remote-runner/client.js.map +1 -0
- package/dist/safety/action-firewall.d.ts +6 -1
- package/dist/safety/action-firewall.d.ts.map +1 -1
- package/dist/safety/action-firewall.js +62 -26
- package/dist/safety/action-firewall.js.map +1 -1
- package/dist/safety/governance-service-client.d.ts +36 -0
- package/dist/safety/governance-service-client.d.ts.map +1 -0
- package/dist/safety/governance-service-client.js +279 -0
- package/dist/safety/governance-service-client.js.map +1 -0
- package/dist/safety/policy.d.ts +13 -2
- package/dist/safety/policy.d.ts.map +1 -1
- package/dist/safety/policy.js +474 -52
- package/dist/safety/policy.js.map +1 -1
- package/dist/sdk-tools.d.ts +21 -0
- package/dist/sdk-tools.d.ts.map +1 -1
- package/dist/sdk-tools.js +16 -0
- package/dist/sdk-tools.js.map +1 -1
- package/dist/server/app-context.d.ts +25 -0
- package/dist/server/app-context.d.ts.map +1 -1
- package/dist/server/app-context.js.map +1 -1
- package/dist/server/approval-service.d.ts +7 -8
- package/dist/server/approval-service.d.ts.map +1 -1
- package/dist/server/approval-service.js +12 -24
- package/dist/server/approval-service.js.map +1 -1
- package/dist/server/authz.d.ts +23 -2
- package/dist/server/authz.d.ts.map +1 -1
- package/dist/server/authz.js +153 -17
- package/dist/server/authz.js.map +1 -1
- package/dist/server/handlers/approvals.d.ts.map +1 -1
- package/dist/server/handlers/approvals.js +3 -10
- package/dist/server/handlers/approvals.js.map +1 -1
- package/dist/server/handlers/branch.d.ts.map +1 -1
- package/dist/server/handlers/branch.js +29 -20
- package/dist/server/handlers/branch.js.map +1 -1
- package/dist/server/handlers/bridge.d.ts.map +1 -1
- package/dist/server/handlers/bridge.js +3 -2
- package/dist/server/handlers/bridge.js.map +1 -1
- package/dist/server/handlers/chat-ws.d.ts.map +1 -1
- package/dist/server/handlers/chat-ws.js +23 -31
- package/dist/server/handlers/chat-ws.js.map +1 -1
- package/dist/server/handlers/chat.d.ts.map +1 -1
- package/dist/server/handlers/chat.js +105 -46
- package/dist/server/handlers/chat.js.map +1 -1
- package/dist/server/handlers/compliance.d.ts +3 -0
- package/dist/server/handlers/compliance.d.ts.map +1 -0
- package/dist/server/handlers/compliance.js +53 -0
- package/dist/server/handlers/compliance.js.map +1 -0
- package/dist/server/handlers/context.d.ts.map +1 -1
- package/dist/server/handlers/context.js +3 -8
- package/dist/server/handlers/context.js.map +1 -1
- package/dist/server/handlers/fleet.d.ts +4 -0
- package/dist/server/handlers/fleet.d.ts.map +1 -0
- package/dist/server/handlers/fleet.js +9 -0
- package/dist/server/handlers/fleet.js.map +1 -0
- package/dist/server/handlers/headless-sessions.d.ts +4 -0
- package/dist/server/handlers/headless-sessions.d.ts.map +1 -1
- package/dist/server/handlers/headless-sessions.js +168 -3
- package/dist/server/handlers/headless-sessions.js.map +1 -1
- package/dist/server/handlers/health.d.ts +31 -2
- package/dist/server/handlers/health.d.ts.map +1 -1
- package/dist/server/handlers/health.js +82 -8
- package/dist/server/handlers/health.js.map +1 -1
- package/dist/server/handlers/hosted-runner-drain.d.ts +128 -0
- package/dist/server/handlers/hosted-runner-drain.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-drain.js +373 -0
- package/dist/server/handlers/hosted-runner-drain.js.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts +17 -0
- package/dist/server/handlers/hosted-runner-identity.d.ts.map +1 -0
- package/dist/server/handlers/hosted-runner-identity.js +39 -0
- package/dist/server/handlers/hosted-runner-identity.js.map +1 -0
- package/dist/server/handlers/intelligent-router.d.ts +3 -0
- package/dist/server/handlers/intelligent-router.d.ts.map +1 -0
- package/dist/server/handlers/intelligent-router.js +141 -0
- package/dist/server/handlers/intelligent-router.js.map +1 -0
- package/dist/server/handlers/models.d.ts.map +1 -1
- package/dist/server/handlers/models.js +14 -0
- package/dist/server/handlers/models.js.map +1 -1
- package/dist/server/handlers/pending-requests.d.ts +8 -0
- package/dist/server/handlers/pending-requests.d.ts.map +1 -0
- package/dist/server/handlers/pending-requests.js +149 -0
- package/dist/server/handlers/pending-requests.js.map +1 -0
- package/dist/server/handlers/revenue-attribution.d.ts +3 -0
- package/dist/server/handlers/revenue-attribution.d.ts.map +1 -0
- package/dist/server/handlers/revenue-attribution.js +45 -0
- package/dist/server/handlers/revenue-attribution.js.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts +10 -0
- package/dist/server/handlers/runtime-app-server-ws.d.ts.map +1 -0
- package/dist/server/handlers/runtime-app-server-ws.js +206 -0
- package/dist/server/handlers/runtime-app-server-ws.js.map +1 -0
- package/dist/server/handlers/session-artifacts.js +2 -2
- package/dist/server/handlers/session-artifacts.js.map +1 -1
- package/dist/server/handlers/session-attachments.js +3 -3
- package/dist/server/handlers/session-attachments.js.map +1 -1
- package/dist/server/handlers/session-timeline.d.ts +11 -0
- package/dist/server/handlers/session-timeline.d.ts.map +1 -0
- package/dist/server/handlers/session-timeline.js +77 -0
- package/dist/server/handlers/session-timeline.js.map +1 -0
- package/dist/server/handlers/sessions.d.ts +11 -0
- package/dist/server/handlers/sessions.d.ts.map +1 -1
- package/dist/server/handlers/sessions.js +68 -100
- package/dist/server/handlers/sessions.js.map +1 -1
- package/dist/server/handlers/traces.d.ts +3 -0
- package/dist/server/handlers/traces.d.ts.map +1 -0
- package/dist/server/handlers/traces.js +60 -0
- package/dist/server/handlers/traces.js.map +1 -0
- package/dist/server/handlers/usage-analytics.d.ts +3 -0
- package/dist/server/handlers/usage-analytics.d.ts.map +1 -0
- package/dist/server/handlers/usage-analytics.js +40 -0
- package/dist/server/handlers/usage-analytics.js.map +1 -0
- package/dist/server/handlers/workspace-config.d.ts +3 -0
- package/dist/server/handlers/workspace-config.d.ts.map +1 -0
- package/dist/server/handlers/workspace-config.js +62 -0
- package/dist/server/handlers/workspace-config.js.map +1 -0
- package/dist/server/headless-in-process-host.d.ts +8 -1
- package/dist/server/headless-in-process-host.d.ts.map +1 -1
- package/dist/server/headless-in-process-host.js +6 -0
- package/dist/server/headless-in-process-host.js.map +1 -1
- package/dist/server/headless-runtime-service.d.ts +99 -1
- package/dist/server/headless-runtime-service.d.ts.map +1 -1
- package/dist/server/headless-runtime-service.js +286 -23
- package/dist/server/headless-runtime-service.js.map +1 -1
- package/dist/server/hosted-session-manager.d.ts +103 -0
- package/dist/server/hosted-session-manager.d.ts.map +1 -0
- package/dist/server/hosted-session-manager.js +629 -0
- package/dist/server/hosted-session-manager.js.map +1 -0
- package/dist/server/pending-request-payload.d.ts +4 -0
- package/dist/server/pending-request-payload.d.ts.map +1 -0
- package/dist/server/pending-request-payload.js +107 -0
- package/dist/server/pending-request-payload.js.map +1 -0
- package/dist/server/request-context.d.ts +4 -0
- package/dist/server/request-context.d.ts.map +1 -1
- package/dist/server/request-context.js +9 -0
- package/dist/server/request-context.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +149 -1
- package/dist/server/routes.js.map +1 -1
- package/dist/server/runtime-ws-access.d.ts +16 -0
- package/dist/server/runtime-ws-access.d.ts.map +1 -0
- package/dist/server/runtime-ws-access.js +21 -0
- package/dist/server/runtime-ws-access.js.map +1 -0
- package/dist/server/server-middlewares.d.ts +1 -1
- package/dist/server/server-middlewares.d.ts.map +1 -1
- package/dist/server/server-middlewares.js +35 -27
- package/dist/server/server-middlewares.js.map +1 -1
- package/dist/server/server-request-manager.d.ts +8 -27
- package/dist/server/server-request-manager.d.ts.map +1 -1
- package/dist/server/server-request-manager.js +7 -0
- package/dist/server/server-request-manager.js.map +1 -1
- package/dist/server/server-utils.d.ts +2 -1
- package/dist/server/server-utils.d.ts.map +1 -1
- package/dist/server/server-utils.js +11 -1
- package/dist/server/server-utils.js.map +1 -1
- package/dist/server/session-event-env.d.ts +2 -0
- package/dist/server/session-event-env.d.ts.map +1 -0
- package/dist/server/session-event-env.js +8 -0
- package/dist/server/session-event-env.js.map +1 -0
- package/dist/server/session-initialization.d.ts +25 -4
- package/dist/server/session-initialization.d.ts.map +1 -1
- package/dist/server/session-initialization.js +22 -5
- package/dist/server/session-initialization.js.map +1 -1
- package/dist/server/session-scope.d.ts +4 -0
- package/dist/server/session-scope.d.ts.map +1 -1
- package/dist/server/session-scope.js +44 -4
- package/dist/server/session-scope.js.map +1 -1
- package/dist/server/session-timeline.d.ts +13 -0
- package/dist/server/session-timeline.d.ts.map +1 -0
- package/dist/server/session-timeline.js +566 -0
- package/dist/server/session-timeline.js.map +1 -0
- package/dist/services/compliance/controls.d.ts +6 -0
- package/dist/services/compliance/controls.d.ts.map +1 -0
- package/dist/services/compliance/controls.js +113 -0
- package/dist/services/compliance/controls.js.map +1 -0
- package/dist/services/compliance/index.d.ts +6 -0
- package/dist/services/compliance/index.d.ts.map +1 -0
- package/dist/services/compliance/index.js +5 -0
- package/dist/services/compliance/index.js.map +1 -0
- package/dist/services/compliance/normalize.d.ts +23 -0
- package/dist/services/compliance/normalize.d.ts.map +1 -0
- package/dist/services/compliance/normalize.js +226 -0
- package/dist/services/compliance/normalize.js.map +1 -0
- package/dist/services/compliance/recorder.d.ts +22 -0
- package/dist/services/compliance/recorder.d.ts.map +1 -0
- package/dist/services/compliance/recorder.js +89 -0
- package/dist/services/compliance/recorder.js.map +1 -0
- package/dist/services/compliance/service.d.ts +24 -0
- package/dist/services/compliance/service.d.ts.map +1 -0
- package/dist/services/compliance/service.js +426 -0
- package/dist/services/compliance/service.js.map +1 -0
- package/dist/services/compliance/types.d.ts +185 -0
- package/dist/services/compliance/types.d.ts.map +1 -0
- package/dist/services/compliance/types.js +2 -0
- package/dist/services/compliance/types.js.map +1 -0
- package/dist/services/intelligent-router/index.d.ts +5 -0
- package/dist/services/intelligent-router/index.d.ts.map +1 -0
- package/dist/services/intelligent-router/index.js +5 -0
- package/dist/services/intelligent-router/index.js.map +1 -0
- package/dist/services/intelligent-router/normalize.d.ts +9 -0
- package/dist/services/intelligent-router/normalize.d.ts.map +1 -0
- package/dist/services/intelligent-router/normalize.js +169 -0
- package/dist/services/intelligent-router/normalize.js.map +1 -0
- package/dist/services/intelligent-router/recorder.d.ts +24 -0
- package/dist/services/intelligent-router/recorder.d.ts.map +1 -0
- package/dist/services/intelligent-router/recorder.js +98 -0
- package/dist/services/intelligent-router/recorder.js.map +1 -0
- package/dist/services/intelligent-router/service.d.ts +22 -0
- package/dist/services/intelligent-router/service.d.ts.map +1 -0
- package/dist/services/intelligent-router/service.js +328 -0
- package/dist/services/intelligent-router/service.js.map +1 -0
- package/dist/services/intelligent-router/types.d.ts +98 -0
- package/dist/services/intelligent-router/types.d.ts.map +1 -0
- package/dist/services/intelligent-router/types.js +7 -0
- package/dist/services/intelligent-router/types.js.map +1 -0
- package/dist/services/revenue-attribution/index.d.ts +4 -0
- package/dist/services/revenue-attribution/index.d.ts.map +1 -0
- package/dist/services/revenue-attribution/index.js +4 -0
- package/dist/services/revenue-attribution/index.js.map +1 -0
- package/dist/services/revenue-attribution/normalize.d.ts +13 -0
- package/dist/services/revenue-attribution/normalize.d.ts.map +1 -0
- package/dist/services/revenue-attribution/normalize.js +155 -0
- package/dist/services/revenue-attribution/normalize.js.map +1 -0
- package/dist/services/revenue-attribution/service.d.ts +21 -0
- package/dist/services/revenue-attribution/service.d.ts.map +1 -0
- package/dist/services/revenue-attribution/service.js +248 -0
- package/dist/services/revenue-attribution/service.js.map +1 -0
- package/dist/services/revenue-attribution/types.d.ts +96 -0
- package/dist/services/revenue-attribution/types.d.ts.map +1 -0
- package/dist/services/revenue-attribution/types.js +7 -0
- package/dist/services/revenue-attribution/types.js.map +1 -0
- package/dist/services/traces/index.d.ts +5 -0
- package/dist/services/traces/index.d.ts.map +1 -0
- package/dist/services/traces/index.js +4 -0
- package/dist/services/traces/index.js.map +1 -0
- package/dist/services/traces/normalize.d.ts +20 -0
- package/dist/services/traces/normalize.d.ts.map +1 -0
- package/dist/services/traces/normalize.js +261 -0
- package/dist/services/traces/normalize.js.map +1 -0
- package/dist/services/traces/otel.d.ts +3 -0
- package/dist/services/traces/otel.d.ts.map +1 -0
- package/dist/services/traces/otel.js +173 -0
- package/dist/services/traces/otel.js.map +1 -0
- package/dist/services/traces/service.d.ts +17 -0
- package/dist/services/traces/service.d.ts.map +1 -0
- package/dist/services/traces/service.js +197 -0
- package/dist/services/traces/service.js.map +1 -0
- package/dist/services/traces/types.d.ts +130 -0
- package/dist/services/traces/types.d.ts.map +1 -0
- package/dist/services/traces/types.js +8 -0
- package/dist/services/traces/types.js.map +1 -0
- package/dist/services/usage-analytics/aggregation.d.ts +18 -0
- package/dist/services/usage-analytics/aggregation.d.ts.map +1 -0
- package/dist/services/usage-analytics/aggregation.js +130 -0
- package/dist/services/usage-analytics/aggregation.js.map +1 -0
- package/dist/services/usage-analytics/index.d.ts +5 -0
- package/dist/services/usage-analytics/index.d.ts.map +1 -0
- package/dist/services/usage-analytics/index.js +4 -0
- package/dist/services/usage-analytics/index.js.map +1 -0
- package/dist/services/usage-analytics/recorder.d.ts +16 -0
- package/dist/services/usage-analytics/recorder.d.ts.map +1 -0
- package/dist/services/usage-analytics/recorder.js +128 -0
- package/dist/services/usage-analytics/recorder.js.map +1 -0
- package/dist/services/usage-analytics/service.d.ts +15 -0
- package/dist/services/usage-analytics/service.d.ts.map +1 -0
- package/dist/services/usage-analytics/service.js +210 -0
- package/dist/services/usage-analytics/service.js.map +1 -0
- package/dist/services/usage-analytics/types.d.ts +80 -0
- package/dist/services/usage-analytics/types.d.ts.map +1 -0
- package/dist/services/usage-analytics/types.js +2 -0
- package/dist/services/usage-analytics/types.js.map +1 -0
- package/dist/services/workspace-config/index.d.ts +6 -0
- package/dist/services/workspace-config/index.d.ts.map +1 -0
- package/dist/services/workspace-config/index.js +5 -0
- package/dist/services/workspace-config/index.js.map +1 -0
- package/dist/services/workspace-config/middleware.d.ts +5 -0
- package/dist/services/workspace-config/middleware.d.ts.map +1 -0
- package/dist/services/workspace-config/middleware.js +98 -0
- package/dist/services/workspace-config/middleware.js.map +1 -0
- package/dist/services/workspace-config/normalize.d.ts +17 -0
- package/dist/services/workspace-config/normalize.d.ts.map +1 -0
- package/dist/services/workspace-config/normalize.js +148 -0
- package/dist/services/workspace-config/normalize.js.map +1 -0
- package/dist/services/workspace-config/policy.d.ts +16 -0
- package/dist/services/workspace-config/policy.d.ts.map +1 -0
- package/dist/services/workspace-config/policy.js +77 -0
- package/dist/services/workspace-config/policy.js.map +1 -0
- package/dist/services/workspace-config/service.d.ts +20 -0
- package/dist/services/workspace-config/service.d.ts.map +1 -0
- package/dist/services/workspace-config/service.js +162 -0
- package/dist/services/workspace-config/service.js.map +1 -0
- package/dist/services/workspace-config/types.d.ts +71 -0
- package/dist/services/workspace-config/types.d.ts.map +1 -0
- package/dist/services/workspace-config/types.js +2 -0
- package/dist/services/workspace-config/types.js.map +1 -0
- package/dist/session/manager.d.ts.map +1 -1
- package/dist/session/manager.js +10 -0
- package/dist/session/manager.js.map +1 -1
- package/dist/session/migration.d.ts.map +1 -1
- package/dist/session/migration.js +2 -1
- package/dist/session/migration.js.map +1 -1
- package/dist/session/session-memory.d.ts.map +1 -1
- package/dist/session/session-memory.js +7 -1
- package/dist/session/session-memory.js.map +1 -1
- package/dist/session/types.d.ts +1 -2
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/types.js +1 -22
- package/dist/session/types.js.map +1 -1
- package/dist/session/wire-format.d.ts +7 -0
- package/dist/session/wire-format.d.ts.map +1 -0
- package/dist/session/wire-format.generated.d.ts +95 -0
- package/dist/session/wire-format.generated.d.ts.map +1 -0
- package/dist/session/wire-format.generated.js +111 -0
- package/dist/session/wire-format.generated.js.map +1 -0
- package/dist/session/wire-format.js +145 -0
- package/dist/session/wire-format.js.map +1 -0
- package/dist/shared-memory/client.d.ts.map +1 -1
- package/dist/shared-memory/client.js +22 -22
- package/dist/shared-memory/client.js.map +1 -1
- package/dist/skills/artifact-metadata.d.ts +16 -0
- package/dist/skills/artifact-metadata.d.ts.map +1 -0
- package/dist/skills/artifact-metadata.js +86 -0
- package/dist/skills/artifact-metadata.js.map +1 -0
- package/dist/skills/loader.d.ts +2 -2
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +1 -0
- package/dist/skills/loader.js.map +1 -1
- package/dist/skills/service-client.d.ts +42 -0
- package/dist/skills/service-client.d.ts.map +1 -0
- package/dist/skills/service-client.js +258 -0
- package/dist/skills/service-client.js.map +1 -0
- package/dist/skills/tool.d.ts +3 -0
- package/dist/skills/tool.d.ts.map +1 -1
- package/dist/skills/tool.js +67 -5
- package/dist/skills/tool.js.map +1 -1
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.d.ts.map +1 -1
- package/dist/telemetry/index.js +5 -0
- package/dist/telemetry/index.js.map +1 -1
- package/dist/telemetry/maestro-event-bus.d.ts +440 -0
- package/dist/telemetry/maestro-event-bus.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-bus.js +784 -0
- package/dist/telemetry/maestro-event-bus.js.map +1 -0
- package/dist/telemetry/maestro-event-catalog.d.ts +48 -0
- package/dist/telemetry/maestro-event-catalog.d.ts.map +1 -0
- package/dist/telemetry/maestro-event-catalog.js +69 -0
- package/dist/telemetry/maestro-event-catalog.js.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts +24 -0
- package/dist/telemetry/maestro-platform-replay-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js +400 -0
- package/dist/telemetry/maestro-platform-replay-fixture.js.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts +29 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.d.ts.map +1 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js +240 -0
- package/dist/telemetry/maestro-publisher-conformance-fixture.js.map +1 -0
- package/dist/telemetry/meter-service-client.d.ts +0 -33
- package/dist/telemetry/meter-service-client.d.ts.map +1 -1
- package/dist/telemetry/meter-service-client.js +22 -50
- package/dist/telemetry/meter-service-client.js.map +1 -1
- package/dist/telemetry/turn-tracker.d.ts.map +1 -1
- package/dist/telemetry/turn-tracker.js +5 -5
- package/dist/telemetry/turn-tracker.js.map +1 -1
- package/dist/telemetry/wide-events.d.ts +8 -0
- package/dist/telemetry/wide-events.d.ts.map +1 -1
- package/dist/telemetry/wide-events.js +28 -0
- package/dist/telemetry/wide-events.js.map +1 -1
- package/dist/telemetry.d.ts +1 -1
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +14 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/timeline/redaction.d.ts +5 -0
- package/dist/timeline/redaction.d.ts.map +1 -0
- package/dist/timeline/redaction.js +119 -0
- package/dist/timeline/redaction.js.map +1 -0
- package/dist/tools/ask-user.d.ts +26 -0
- package/dist/tools/ask-user.d.ts.map +1 -1
- package/dist/tools/ask-user.js +33 -1
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/background/task-types.d.ts +1 -1
- package/dist/tools/edit.d.ts +2 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +27 -7
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/pipeline.d.ts.map +1 -1
- package/dist/tools/pipeline.js +16 -7
- package/dist/tools/pipeline.js.map +1 -1
- package/dist/tools/write.d.ts +2 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +24 -6
- package/dist/tools/write.js.map +1 -1
- package/dist/tracking/cost-tracker.d.ts +15 -12
- package/dist/tracking/cost-tracker.d.ts.map +1 -1
- package/dist/tracking/cost-tracker.js +29 -40
- package/dist/tracking/cost-tracker.js.map +1 -1
- package/dist/utils/checkpoint-profiler.d.ts +29 -0
- package/dist/utils/checkpoint-profiler.d.ts.map +1 -0
- package/dist/utils/checkpoint-profiler.js +118 -0
- package/dist/utils/checkpoint-profiler.js.map +1 -0
- package/dist/utils/downstream-http.d.ts +21 -0
- package/dist/utils/downstream-http.d.ts.map +1 -0
- package/dist/utils/downstream-http.js +151 -0
- package/dist/utils/downstream-http.js.map +1 -0
- package/dist/utils/downstream.d.ts +18 -0
- package/dist/utils/downstream.d.ts.map +1 -0
- package/dist/utils/downstream.js +47 -0
- package/dist/utils/downstream.js.map +1 -0
- package/dist/utils/logger.d.ts +3 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +12 -1
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/oauth-http.d.ts +8 -0
- package/dist/utils/oauth-http.d.ts.map +1 -0
- package/dist/utils/oauth-http.js +41 -0
- package/dist/utils/oauth-http.js.map +1 -0
- package/dist/utils/path-utils.d.ts +2 -0
- package/dist/utils/path-utils.d.ts.map +1 -0
- package/dist/utils/path-utils.js +12 -0
- package/dist/utils/path-utils.js.map +1 -0
- package/dist/utils/path-validation.d.ts +1 -1
- package/dist/utils/path-validation.d.ts.map +1 -1
- package/dist/utils/path-validation.js +3 -3
- package/dist/utils/path-validation.js.map +1 -1
- package/dist/version.json +2 -2
- package/dist/web-server.d.ts +7 -1
- package/dist/web-server.d.ts.map +1 -1
- package/dist/web-server.js +117 -15
- package/dist/web-server.js.map +1 -1
- package/dist/webhooks/delivery.d.ts.map +1 -1
- package/dist/webhooks/delivery.js +9 -12
- package/dist/webhooks/delivery.js.map +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/from-json.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/to-json.js +9 -10
- package/node_modules/@bufbuild/protobuf/dist/cjs/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +38 -2
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/cjs/wkt/wrappers.js +24 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.d.ts +12 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +7 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +24 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +10 -11
- package/node_modules/@bufbuild/protobuf/dist/esm/types.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.d.ts +9 -7
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +18 -8
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.d.ts +4 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +8 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +2 -2
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +37 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +1 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +32 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +65 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +37 -1
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +5 -5
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +3 -3
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +10 -0
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +23 -0
- package/node_modules/@bufbuild/protobuf/package.json +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts +305 -2
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js +34 -4
- package/node_modules/@evalops/contracts/dist/headless-protocol-schemas.generated.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.d.ts +88 -0
- package/node_modules/@evalops/contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/index.js +2 -0
- package/node_modules/@evalops/contracts/dist/index.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts +77 -77
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js +1 -1
- package/node_modules/@evalops/contracts/dist/proto/maestro/v1/headless_pb.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts +182 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js +83 -0
- package/node_modules/@evalops/contracts/dist/runtime-app-server.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts +133 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js +68 -0
- package/node_modules/@evalops/contracts/dist/runtime-server-request.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts +178 -0
- package/node_modules/@evalops/contracts/dist/schemas.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/schemas.js +165 -0
- package/node_modules/@evalops/contracts/dist/schemas.js.map +1 -1
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts +2 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.d.ts.map +1 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js +5 -0
- package/node_modules/@evalops/contracts/dist/typebox-utils.js.map +1 -0
- package/node_modules/@evalops/contracts/dist/validators.d.ts +4 -1
- package/node_modules/@evalops/contracts/dist/validators.d.ts.map +1 -1
- package/node_modules/@evalops/contracts/dist/validators.js +4 -1
- package/node_modules/@evalops/contracts/dist/validators.js.map +1 -1
- package/node_modules/@evalops/contracts/package.json +1 -1
- package/node_modules/@evalops/tui/package.json +1 -1
- package/node_modules/string-width/index.js +93 -9
- package/node_modules/string-width/package.json +1 -1
- package/package.json +32 -25
- package/dist/cli-tui/commands/grouped/auth-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/auth-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/config-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/diag-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/git-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/index.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/index.js.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/safety-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/session-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/tools-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/ui-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/undo-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/usage-commands.js.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped/utils.js.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.d.ts.map +0 -1
- package/dist/cli-tui/commands/grouped-command-handlers.js +0 -135
- package/dist/cli-tui/commands/grouped-command-handlers.js.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts +0 -78
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.d.ts.map +0 -1
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js +0 -129
- package/dist/cli-tui/tui-renderer/grouped-handlers-wiring.js.map +0 -1
- package/node_modules/@evalops/memory/dist/client.d.ts +0 -94
- package/node_modules/@evalops/memory/dist/client.js +0 -503
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.d.ts +0 -608
- package/node_modules/@evalops/memory/gen/proto/dist/memory/v1/memory_pb.js +0 -187
- package/node_modules/@evalops/memory/package.json +0 -26
- /package/dist/cli-tui/commands/{grouped → subcommands}/usage-commands.d.ts +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { isDatabaseConfigured } from "../../db/client.js";
|
|
2
|
+
import { createAuthCommandHandler, createConfigCommandHandler, createDiagCommandHandler, createGitCommandHandler, createSafetyCommandHandler, createSessionCommandHandler, createToolsCommandHandler, createUiCommandHandler, createUndoCommandHandler, createUsageCommandHandler, } from "./subcommands/index.js";
|
|
3
|
+
export var CommandSuiteKey;
|
|
4
|
+
(function (CommandSuiteKey) {
|
|
5
|
+
CommandSuiteKey["Session"] = "session";
|
|
6
|
+
CommandSuiteKey["Diag"] = "diag";
|
|
7
|
+
CommandSuiteKey["Ui"] = "ui";
|
|
8
|
+
CommandSuiteKey["Safety"] = "safety";
|
|
9
|
+
CommandSuiteKey["Git"] = "git";
|
|
10
|
+
CommandSuiteKey["Auth"] = "auth";
|
|
11
|
+
CommandSuiteKey["Usage"] = "usage";
|
|
12
|
+
CommandSuiteKey["Undo"] = "undo";
|
|
13
|
+
CommandSuiteKey["Config"] = "config";
|
|
14
|
+
CommandSuiteKey["Tools"] = "tools";
|
|
15
|
+
})(CommandSuiteKey || (CommandSuiteKey = {}));
|
|
16
|
+
export function createCommandSuiteHandlers(deps) {
|
|
17
|
+
const session = deps[CommandSuiteKey.Session];
|
|
18
|
+
const diag = deps[CommandSuiteKey.Diag];
|
|
19
|
+
const ui = deps[CommandSuiteKey.Ui];
|
|
20
|
+
const safety = deps[CommandSuiteKey.Safety];
|
|
21
|
+
const git = deps[CommandSuiteKey.Git];
|
|
22
|
+
const auth = deps[CommandSuiteKey.Auth];
|
|
23
|
+
const usage = deps[CommandSuiteKey.Usage];
|
|
24
|
+
const undo = deps[CommandSuiteKey.Undo];
|
|
25
|
+
const config = deps[CommandSuiteKey.Config];
|
|
26
|
+
const tools = deps[CommandSuiteKey.Tools];
|
|
27
|
+
return {
|
|
28
|
+
[CommandSuiteKey.Session]: createSessionCommandHandler({
|
|
29
|
+
handleNewChat: (ctx) => session.handleNewChat(ctx),
|
|
30
|
+
handleClear: () => session.handleClear(),
|
|
31
|
+
handleSessionInfo: (ctx) => session.handleSessionInfo(ctx),
|
|
32
|
+
handleSessionsList: (ctx) => session.handleSessionsList(ctx),
|
|
33
|
+
handleBranch: (ctx) => session.handleBranch(ctx),
|
|
34
|
+
handleTree: (ctx) => session.handleTree(ctx),
|
|
35
|
+
handleQueue: (ctx) => session.handleQueue(ctx),
|
|
36
|
+
handleExport: (ctx) => session.handleExport(ctx),
|
|
37
|
+
handleShare: (ctx) => session.handleShare(ctx),
|
|
38
|
+
handleRecover: (ctx) => session.handleRecover(ctx),
|
|
39
|
+
handleCleanup: (ctx) => session.handleCleanup(ctx),
|
|
40
|
+
}),
|
|
41
|
+
[CommandSuiteKey.Diag]: createDiagCommandHandler({
|
|
42
|
+
handleStatus: () => diag.handleStatus(),
|
|
43
|
+
handleAbout: () => diag.handleAbout(),
|
|
44
|
+
handleContext: (ctx) => diag.handleContext(ctx),
|
|
45
|
+
handleStats: (ctx) => diag.handleStats(ctx),
|
|
46
|
+
handleBackground: (ctx) => diag.handleBackground(ctx),
|
|
47
|
+
handleDiagnostics: (ctx) => diag.handleDiagnostics(ctx),
|
|
48
|
+
handleTelemetry: (ctx) => diag.handleTelemetry(ctx),
|
|
49
|
+
handleTraining: (ctx) => diag.handleTraining(ctx),
|
|
50
|
+
handleOtel: (ctx) => diag.handleOtel(ctx),
|
|
51
|
+
handleConfig: (ctx) => diag.handleConfig(ctx),
|
|
52
|
+
handleLsp: (ctx) => diag.handleLsp(ctx),
|
|
53
|
+
handleMcp: (ctx) => diag.handleMcp(ctx),
|
|
54
|
+
handleSources: (ctx) => diag.handleSources(ctx),
|
|
55
|
+
handlePerf: () => diag.handlePerf(),
|
|
56
|
+
isDatabaseConfigured: () => isDatabaseConfigured(),
|
|
57
|
+
}),
|
|
58
|
+
[CommandSuiteKey.Ui]: createUiCommandHandler({
|
|
59
|
+
handleTheme: () => ui.showTheme(),
|
|
60
|
+
handleClean: (ctx) => ui.handleClean(ctx),
|
|
61
|
+
handleFooter: (ctx) => ui.handleFooter(ctx),
|
|
62
|
+
handleZen: (ctx) => ui.handleZen(ctx),
|
|
63
|
+
handleCompactTools: (ctx) => ui.handleCompactTools(ctx),
|
|
64
|
+
getUiState: () => ui.getUiState(),
|
|
65
|
+
}),
|
|
66
|
+
[CommandSuiteKey.Safety]: createSafetyCommandHandler({
|
|
67
|
+
handleApprovals: (ctx) => safety.handleApprovals(ctx),
|
|
68
|
+
handlePlanMode: (ctx) => safety.handlePlanMode(ctx),
|
|
69
|
+
handleGuardian: (ctx) => safety.handleGuardian(ctx),
|
|
70
|
+
getSafetyState: () => safety.getSafetyState(),
|
|
71
|
+
}),
|
|
72
|
+
[CommandSuiteKey.Git]: createGitCommandHandler({
|
|
73
|
+
handleDiff: (ctx) => git.handleDiff(ctx),
|
|
74
|
+
handleReview: (ctx) => git.handleReview(ctx),
|
|
75
|
+
}),
|
|
76
|
+
[CommandSuiteKey.Auth]: createAuthCommandHandler({
|
|
77
|
+
handleLogin: (ctx) => auth.handleLogin(ctx),
|
|
78
|
+
handleLogout: (ctx) => auth.handleLogout(ctx),
|
|
79
|
+
handleSourceOfTruthPolicy: (ctx) => auth.handleSourceOfTruthPolicy(ctx),
|
|
80
|
+
getAuthState: () => auth.getAuthState(),
|
|
81
|
+
}),
|
|
82
|
+
[CommandSuiteKey.Usage]: createUsageCommandHandler({
|
|
83
|
+
handleCost: (ctx) => usage.handleCost(ctx),
|
|
84
|
+
handleQuota: (ctx) => usage.handleQuota(ctx),
|
|
85
|
+
handleStats: (ctx) => usage.handleStats(ctx),
|
|
86
|
+
}),
|
|
87
|
+
[CommandSuiteKey.Undo]: createUndoCommandHandler({
|
|
88
|
+
handleUndo: (ctx) => undo.handleUndo(ctx),
|
|
89
|
+
handleCheckpoint: (ctx) => undo.handleCheckpoint(ctx),
|
|
90
|
+
handleChanges: (ctx) => undo.handleChanges(ctx),
|
|
91
|
+
getUndoState: () => undo.getUndoState(),
|
|
92
|
+
}),
|
|
93
|
+
[CommandSuiteKey.Config]: createConfigCommandHandler({
|
|
94
|
+
handleConfig: (ctx) => config.handleConfig(ctx),
|
|
95
|
+
handleImport: (ctx) => config.handleImport(ctx),
|
|
96
|
+
handleFramework: (ctx) => config.handleFramework(ctx),
|
|
97
|
+
handleComposer: (ctx) => config.handleComposer(ctx),
|
|
98
|
+
handleInit: (ctx) => config.handleInit(ctx),
|
|
99
|
+
}),
|
|
100
|
+
[CommandSuiteKey.Tools]: createToolsCommandHandler({
|
|
101
|
+
handleTools: (ctx) => tools.handleTools(ctx),
|
|
102
|
+
handleMcp: (ctx) => tools.handleMcp(ctx),
|
|
103
|
+
handleLsp: (ctx) => tools.handleLsp(ctx),
|
|
104
|
+
handleWorkflow: (ctx) => tools.handleWorkflow(ctx),
|
|
105
|
+
handleRun: (ctx) => tools.handleRun(ctx),
|
|
106
|
+
handleCommands: (ctx) => tools.handleCommands(ctx),
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=command-suite-handlers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-suite-handlers.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/command-suite-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GACzB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,CAAN,IAAY,eAWX;AAXD,WAAY,eAAe;IAC1B,sCAAmB,CAAA;IACnB,gCAAa,CAAA;IACb,4BAAS,CAAA;IACT,oCAAiB,CAAA;IACjB,8BAAW,CAAA;IACX,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,oCAAiB,CAAA;IACjB,kCAAe,CAAA;AAChB,CAAC,EAXW,eAAe,KAAf,eAAe,QAW1B;AA4GD,MAAM,UAAU,0BAA0B,CACzC,IAAsB;IAEtB,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IACpC,MAAM,MAAM,GA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,CAAC;QACF,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,0BAA0B,CAAC;YACpD,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;YAC/C,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;YAC/C,eAAe,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC;YACrD,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC;YACnD,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;SAC3C,CAAC;QACF,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,yBAAyB,CAAC;YAClD,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC;YAC5C,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;YACxC,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;YACxC,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC;YAClD,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;YACxC,cAAc,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC;SAClD,CAAC;KACF,CAAC;AACH,CAAC","sourcesContent":["import { isDatabaseConfigured } from \"../../db/client.js\";\nimport {\n\tcreateAuthCommandHandler,\n\tcreateConfigCommandHandler,\n\tcreateDiagCommandHandler,\n\tcreateGitCommandHandler,\n\tcreateSafetyCommandHandler,\n\tcreateSessionCommandHandler,\n\tcreateToolsCommandHandler,\n\tcreateUiCommandHandler,\n\tcreateUndoCommandHandler,\n\tcreateUsageCommandHandler,\n} from \"./subcommands/index.js\";\nimport type { CommandExecutionContext } from \"./types.js\";\n\nexport enum CommandSuiteKey {\n\tSession = \"session\",\n\tDiag = \"diag\",\n\tUi = \"ui\",\n\tSafety = \"safety\",\n\tGit = \"git\",\n\tAuth = \"auth\",\n\tUsage = \"usage\",\n\tUndo = \"undo\",\n\tConfig = \"config\",\n\tTools = \"tools\",\n}\n\nexport type CommandSuiteHandlers = Record<\n\tCommandSuiteKey,\n\t(context: CommandExecutionContext) => Promise<void>\n>;\n\nexport type CommandSuiteDeps = {\n\t[CommandSuiteKey.Session]: {\n\t\thandleNewChat: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleClear: () => void | Promise<void>;\n\t\thandleSessionInfo: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleSessionsList: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleBranch: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleTree: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleQueue: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleExport: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleShare: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleRecover: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleCleanup: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t};\n\t[CommandSuiteKey.Diag]: {\n\t\thandleStatus: () => void | Promise<void>;\n\t\thandleAbout: () => void | Promise<void>;\n\t\thandleContext: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleStats: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleBackground: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleDiagnostics: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleTelemetry: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleTraining: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleOtel: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleConfig: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleLsp: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleMcp: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleSources: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandlePerf: () => void | Promise<void>;\n\t};\n\t[CommandSuiteKey.Ui]: {\n\t\tshowTheme: () => void | Promise<void>;\n\t\thandleClean: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleFooter: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleZen: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleCompactTools: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\tgetUiState: () => {\n\t\t\tzenMode: boolean;\n\t\t\tcleanMode: string;\n\t\t\tfooterMode: string;\n\t\t\tcompactTools: boolean;\n\t\t};\n\t};\n\t[CommandSuiteKey.Safety]: {\n\t\thandleApprovals: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandlePlanMode: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleGuardian: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\tgetSafetyState: () => {\n\t\t\tapprovalMode: string;\n\t\t\tplanMode: boolean;\n\t\t\tguardianEnabled: boolean;\n\t\t};\n\t};\n\t[CommandSuiteKey.Git]: {\n\t\thandleDiff: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleReview: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t};\n\t[CommandSuiteKey.Auth]: {\n\t\thandleLogin: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleLogout: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleSourceOfTruthPolicy: (\n\t\t\tctx: CommandExecutionContext,\n\t\t) => void | Promise<void>;\n\t\tgetAuthState: () => {\n\t\t\tauthenticated: boolean;\n\t\t\tprovider?: string;\n\t\t\tmode?: string;\n\t\t};\n\t};\n\t[CommandSuiteKey.Usage]: {\n\t\thandleCost: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleQuota: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleStats: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t};\n\t[CommandSuiteKey.Undo]: {\n\t\thandleUndo: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleCheckpoint: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleChanges: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\tgetUndoState: () => {\n\t\t\tcanUndo: boolean;\n\t\t\tundoCount: number;\n\t\t\tcheckpoints: string[];\n\t\t};\n\t};\n\t[CommandSuiteKey.Config]: {\n\t\thandleConfig: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleImport: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleFramework: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleComposer: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleInit: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t};\n\t[CommandSuiteKey.Tools]: {\n\t\thandleTools: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleMcp: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleLsp: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleWorkflow: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleRun: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t\thandleCommands: (ctx: CommandExecutionContext) => void | Promise<void>;\n\t};\n};\n\nexport function createCommandSuiteHandlers(\n\tdeps: CommandSuiteDeps,\n): CommandSuiteHandlers {\n\tconst session = deps[CommandSuiteKey.Session];\n\tconst diag = deps[CommandSuiteKey.Diag];\n\tconst ui = deps[CommandSuiteKey.Ui];\n\tconst safety = deps[CommandSuiteKey.Safety];\n\tconst git = deps[CommandSuiteKey.Git];\n\tconst auth = deps[CommandSuiteKey.Auth];\n\tconst usage = deps[CommandSuiteKey.Usage];\n\tconst undo = deps[CommandSuiteKey.Undo];\n\tconst config = deps[CommandSuiteKey.Config];\n\tconst tools = deps[CommandSuiteKey.Tools];\n\n\treturn {\n\t\t[CommandSuiteKey.Session]: createSessionCommandHandler({\n\t\t\thandleNewChat: (ctx) => session.handleNewChat(ctx),\n\t\t\thandleClear: () => session.handleClear(),\n\t\t\thandleSessionInfo: (ctx) => session.handleSessionInfo(ctx),\n\t\t\thandleSessionsList: (ctx) => session.handleSessionsList(ctx),\n\t\t\thandleBranch: (ctx) => session.handleBranch(ctx),\n\t\t\thandleTree: (ctx) => session.handleTree(ctx),\n\t\t\thandleQueue: (ctx) => session.handleQueue(ctx),\n\t\t\thandleExport: (ctx) => session.handleExport(ctx),\n\t\t\thandleShare: (ctx) => session.handleShare(ctx),\n\t\t\thandleRecover: (ctx) => session.handleRecover(ctx),\n\t\t\thandleCleanup: (ctx) => session.handleCleanup(ctx),\n\t\t}),\n\t\t[CommandSuiteKey.Diag]: createDiagCommandHandler({\n\t\t\thandleStatus: () => diag.handleStatus(),\n\t\t\thandleAbout: () => diag.handleAbout(),\n\t\t\thandleContext: (ctx) => diag.handleContext(ctx),\n\t\t\thandleStats: (ctx) => diag.handleStats(ctx),\n\t\t\thandleBackground: (ctx) => diag.handleBackground(ctx),\n\t\t\thandleDiagnostics: (ctx) => diag.handleDiagnostics(ctx),\n\t\t\thandleTelemetry: (ctx) => diag.handleTelemetry(ctx),\n\t\t\thandleTraining: (ctx) => diag.handleTraining(ctx),\n\t\t\thandleOtel: (ctx) => diag.handleOtel(ctx),\n\t\t\thandleConfig: (ctx) => diag.handleConfig(ctx),\n\t\t\thandleLsp: (ctx) => diag.handleLsp(ctx),\n\t\t\thandleMcp: (ctx) => diag.handleMcp(ctx),\n\t\t\thandleSources: (ctx) => diag.handleSources(ctx),\n\t\t\thandlePerf: () => diag.handlePerf(),\n\t\t\tisDatabaseConfigured: () => isDatabaseConfigured(),\n\t\t}),\n\t\t[CommandSuiteKey.Ui]: createUiCommandHandler({\n\t\t\thandleTheme: () => ui.showTheme(),\n\t\t\thandleClean: (ctx) => ui.handleClean(ctx),\n\t\t\thandleFooter: (ctx) => ui.handleFooter(ctx),\n\t\t\thandleZen: (ctx) => ui.handleZen(ctx),\n\t\t\thandleCompactTools: (ctx) => ui.handleCompactTools(ctx),\n\t\t\tgetUiState: () => ui.getUiState(),\n\t\t}),\n\t\t[CommandSuiteKey.Safety]: createSafetyCommandHandler({\n\t\t\thandleApprovals: (ctx) => safety.handleApprovals(ctx),\n\t\t\thandlePlanMode: (ctx) => safety.handlePlanMode(ctx),\n\t\t\thandleGuardian: (ctx) => safety.handleGuardian(ctx),\n\t\t\tgetSafetyState: () => safety.getSafetyState(),\n\t\t}),\n\t\t[CommandSuiteKey.Git]: createGitCommandHandler({\n\t\t\thandleDiff: (ctx) => git.handleDiff(ctx),\n\t\t\thandleReview: (ctx) => git.handleReview(ctx),\n\t\t}),\n\t\t[CommandSuiteKey.Auth]: createAuthCommandHandler({\n\t\t\thandleLogin: (ctx) => auth.handleLogin(ctx),\n\t\t\thandleLogout: (ctx) => auth.handleLogout(ctx),\n\t\t\thandleSourceOfTruthPolicy: (ctx) => auth.handleSourceOfTruthPolicy(ctx),\n\t\t\tgetAuthState: () => auth.getAuthState(),\n\t\t}),\n\t\t[CommandSuiteKey.Usage]: createUsageCommandHandler({\n\t\t\thandleCost: (ctx) => usage.handleCost(ctx),\n\t\t\thandleQuota: (ctx) => usage.handleQuota(ctx),\n\t\t\thandleStats: (ctx) => usage.handleStats(ctx),\n\t\t}),\n\t\t[CommandSuiteKey.Undo]: createUndoCommandHandler({\n\t\t\thandleUndo: (ctx) => undo.handleUndo(ctx),\n\t\t\thandleCheckpoint: (ctx) => undo.handleCheckpoint(ctx),\n\t\t\thandleChanges: (ctx) => undo.handleChanges(ctx),\n\t\t\tgetUndoState: () => undo.getUndoState(),\n\t\t}),\n\t\t[CommandSuiteKey.Config]: createConfigCommandHandler({\n\t\t\thandleConfig: (ctx) => config.handleConfig(ctx),\n\t\t\thandleImport: (ctx) => config.handleImport(ctx),\n\t\t\thandleFramework: (ctx) => config.handleFramework(ctx),\n\t\t\thandleComposer: (ctx) => config.handleComposer(ctx),\n\t\t\thandleInit: (ctx) => config.handleInit(ctx),\n\t\t}),\n\t\t[CommandSuiteKey.Tools]: createToolsCommandHandler({\n\t\t\thandleTools: (ctx) => tools.handleTools(ctx),\n\t\t\thandleMcp: (ctx) => tools.handleMcp(ctx),\n\t\t\thandleLsp: (ctx) => tools.handleLsp(ctx),\n\t\t\thandleWorkflow: (ctx) => tools.handleWorkflow(ctx),\n\t\t\thandleRun: (ctx) => tools.handleRun(ctx),\n\t\t\thandleCommands: (ctx) => tools.handleCommands(ctx),\n\t\t}),\n\t};\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SubcommandDef } from "./
|
|
1
|
+
import { type SubcommandDef } from "./subcommands/utils.js";
|
|
2
2
|
import type { CommandExecutionContext } from "./types.js";
|
|
3
3
|
export declare const HOTKEYS_SUBCOMMANDS: SubcommandDef[];
|
|
4
4
|
export interface HotkeysCommandDeps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkeys-command.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/commands/hotkeys-command.ts"],"names":[],"mappings":"AAMA,OAAO,EACN,KAAK,aAAa,EAElB,MAAM,
|
|
1
|
+
{"version":3,"file":"hotkeys-command.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/commands/hotkeys-command.ts"],"names":[],"mappings":"AAMA,OAAO,EACN,KAAK,aAAa,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAK9C,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,WAAW,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kBAAkB,mDA+CnE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatKeybindingConfigReport, initializeKeybindingsFile, inspectKeybindingConfig, } from "../keybindings-config.js";
|
|
2
2
|
import { resetTuiKeybindingConfigCache } from "../keybindings.js";
|
|
3
|
-
import {
|
|
3
|
+
import { createSubcommandHandler, } from "./subcommands/utils.js";
|
|
4
4
|
export const HOTKEYS_SUBCOMMANDS = [
|
|
5
5
|
{ name: "show", description: "Show current keyboard shortcuts" },
|
|
6
6
|
{ name: "path", description: "Show the keybindings config file path" },
|
|
@@ -8,7 +8,7 @@ export const HOTKEYS_SUBCOMMANDS = [
|
|
|
8
8
|
{ name: "validate", description: "Validate the current keybindings config" },
|
|
9
9
|
];
|
|
10
10
|
export function createHotkeysCommandHandler(deps) {
|
|
11
|
-
return
|
|
11
|
+
return createSubcommandHandler({
|
|
12
12
|
defaultSubcommand: "show",
|
|
13
13
|
showHelp: showHotkeysHelp,
|
|
14
14
|
routes: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotkeys-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/hotkeys-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAEN,
|
|
1
|
+
{"version":3,"file":"hotkeys-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/hotkeys-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AA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;oBACpD,6BAA6B,EAAE,CAAC;oBAChC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;wBACpB,GAAG,CAAC,QAAQ,CACX,wCAAwC,MAAM,CAAC,IAAI,2DAA2D,CAC9G,CAAC;wBACF,OAAO;oBACR,CAAC;oBACD,GAAG,CAAC,SAAS,CACZ,wCAAwC,MAAM,CAAC,IAAI,sDAAsD,CACzG,CAAC;gBACH,CAAC;aACD;YACD;gBACC,KAAK,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC;gBAChD,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;oBACpB,GAAG,CAAC,QAAQ,CAAC,4BAA4B,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC;gBACvE,CAAC;aACD;SACD;QACD,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE;YAClC,GAAG,CAAC,SAAS,CAAC,uBAAuB,UAAU,EAAE,CAAC,CAAC;YACnD,eAAe,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,GAA4B;IACpD,GAAG,CAAC,QAAQ,CAAC;;;;;;2BAMa,CAAC,CAAC;AAC7B,CAAC","sourcesContent":["import {\n\tformatKeybindingConfigReport,\n\tinitializeKeybindingsFile,\n\tinspectKeybindingConfig,\n} from \"../keybindings-config.js\";\nimport { resetTuiKeybindingConfigCache } from \"../keybindings.js\";\nimport {\n\ttype SubcommandDef,\n\tcreateSubcommandHandler,\n} from \"./subcommands/utils.js\";\nimport type { CommandExecutionContext } from \"./types.js\";\n\nexport const HOTKEYS_SUBCOMMANDS: SubcommandDef[] = [\n\t{ name: \"show\", description: \"Show current keyboard shortcuts\" },\n\t{ name: \"path\", description: \"Show the keybindings config file path\" },\n\t{ name: \"init\", description: \"Create a starter keybindings.json file\" },\n\t{ name: \"validate\", description: \"Validate the current keybindings config\" },\n];\n\nexport interface HotkeysCommandDeps {\n\tshowHotkeys: () => void;\n}\n\nexport function createHotkeysCommandHandler(deps: HotkeysCommandDeps) {\n\treturn createSubcommandHandler({\n\t\tdefaultSubcommand: \"show\",\n\t\tshowHelp: showHotkeysHelp,\n\t\troutes: [\n\t\t\t{\n\t\t\t\tmatch: [\"show\", \"list\", \"help\"],\n\t\t\t\texecute: () => deps.showHotkeys(),\n\t\t\t},\n\t\t\t{\n\t\t\t\tmatch: [\"path\", \"where\", \"file\"],\n\t\t\t\texecute: ({ ctx }) => {\n\t\t\t\t\tconst report = inspectKeybindingConfig();\n\t\t\t\t\tctx.showInfo(\n\t\t\t\t\t\t`Keyboard shortcuts config:\\n Path: ${report.path}\\n Status: ${report.exists ? \"present\" : \"missing\"}`,\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tmatch: [\"init\", \"create\", \"setup\"],\n\t\t\t\texecute: ({ ctx, restArgs }) => {\n\t\t\t\t\tconst force = restArgs.includes(\"--force\");\n\t\t\t\t\tconst result = initializeKeybindingsFile({ force });\n\t\t\t\t\tresetTuiKeybindingConfigCache();\n\t\t\t\t\tif (result.created) {\n\t\t\t\t\t\tctx.showInfo(\n\t\t\t\t\t\t\t`Created keyboard shortcuts config at ${result.path}\\nRun /hotkeys validate to verify the file after editing.`,\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tctx.showError(\n\t\t\t\t\t\t`Keybindings config already exists at ${result.path}. Re-run with /hotkeys init --force to overwrite it.`,\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tmatch: [\"validate\", \"check\", \"doctor\", \"status\"],\n\t\t\t\texecute: ({ ctx }) => {\n\t\t\t\t\tctx.showInfo(formatKeybindingConfigReport(inspectKeybindingConfig()));\n\t\t\t\t},\n\t\t\t},\n\t\t],\n\t\tonUnknown: ({ ctx, subcommand }) => {\n\t\t\tctx.showError(`Unknown subcommand: ${subcommand}`);\n\t\t\tshowHotkeysHelp(ctx);\n\t\t},\n\t});\n}\n\nfunction showHotkeysHelp(ctx: CommandExecutionContext): void {\n\tctx.showInfo(`Hotkeys Commands:\n /hotkeys Show current keyboard shortcuts\n /hotkeys path Show the keybindings config file path\n /hotkeys init [--force] Create or overwrite a starter keybindings.json\n /hotkeys validate Validate current TUI and Rust TUI overrides\n\nAliases: /keys, /shortcuts`);\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API_CONFIG, LIMITS, SESSION_CONFIG, TOOL_CONFIG, } from "../../config/constants.js";
|
|
2
2
|
import { getToolOutputLimits } from "../utils/tool-text-utils.js";
|
|
3
|
-
import { isHelpRequest } from "./
|
|
3
|
+
import { isHelpRequest } from "./subcommands/utils.js";
|
|
4
4
|
const LIMITS_USAGE = [
|
|
5
5
|
"Usage: /limits [all|tool|tui|api|session|runtime|help]",
|
|
6
6
|
"",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/limits-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,MAAM,EACN,cAAc,EACd,WAAW,GACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"limits-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/limits-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,UAAU,EACV,MAAM,EACN,cAAc,EACd,WAAW,GACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AASvD,MAAM,YAAY,GAAG;IACpB,wDAAwD;IACxD,EAAE;IACF,aAAa;IACb,qCAAqC;IACr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AAC,EAAE,CAAC;QACnC,OAAO,CAAC,SAAS,CAAC,4BAA4B,UAAU,EAAE,CAAC,CAAC;QAC5D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAC/B,OAAO;IACR,CAAC;IAED,MAAM,KAAK,GAAa,CAAC,2CAA2C,CAAC,CAAC;IACtE,KAAK,MAAM,OAAO,IAAI,gBAAgB,EAAE,CAAC;QACxC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import {\n\tAPI_CONFIG,\n\tLIMITS,\n\tSESSION_CONFIG,\n\tTOOL_CONFIG,\n} from \"../../config/constants.js\";\nimport { getToolOutputLimits } from \"../utils/tool-text-utils.js\";\nimport { isHelpRequest } from \"./subcommands/utils.js\";\nimport type { CommandExecutionContext } from \"./types.js\";\n\ntype LimitSection = {\n\tkey: string;\n\ttitle: string;\n\tlines: string[];\n};\n\nconst LIMITS_USAGE = [\n\t\"Usage: /limits [all|tool|tui|api|session|runtime|help]\",\n\t\"\",\n\t\"Categories:\",\n\t\" tool Tool execution defaults\",\n\t\" tui TUI tool output limits\",\n\t\" api API/network timeouts\",\n\t\" session Session persistence limits\",\n\t\" runtime File/search/output limits\",\n].join(\"\\n\");\n\nfunction formatLimitLine(\n\tlabel: string,\n\tvalue: string | number,\n\tenvVar?: string,\n): string {\n\tif (!envVar) {\n\t\treturn ` ${label}: ${value}`;\n\t}\n\tconst envValue = process.env[envVar];\n\tconst envDisplay = envValue ? `${envVar}=${envValue}` : envVar;\n\treturn ` ${label}: ${value} (env: ${envDisplay})`;\n}\n\nexport function handleLimitsCommand(context: CommandExecutionContext): void {\n\tconst args = context.argumentText.trim().split(/\\s+/).filter(Boolean);\n\tconst subcommand = (args[0] || \"all\").toLowerCase();\n\n\tif (isHelpRequest(subcommand)) {\n\t\tcontext.showInfo(LIMITS_USAGE);\n\t\treturn;\n\t}\n\n\tconst toolOutputLimits = getToolOutputLimits();\n\tconst sections: LimitSection[] = [\n\t\t{\n\t\t\tkey: \"tool\",\n\t\t\ttitle: \"Tool execution defaults\",\n\t\t\tlines: [\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"BASH_DEFAULT_TIMEOUT_MS\",\n\t\t\t\t\tTOOL_CONFIG.BASH_DEFAULT_TIMEOUT_MS,\n\t\t\t\t\t\"MAESTRO_BASH_TIMEOUT_MS\",\n\t\t\t\t),\n\t\t\t\tformatLimitLine(\"READ_DEFAULT_LIMIT\", TOOL_CONFIG.READ_DEFAULT_LIMIT),\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"SEARCH_MAX_CONTEXT_LINES\",\n\t\t\t\t\t`${TOOL_CONFIG.SEARCH_MAX_CONTEXT_LINES} lines`,\n\t\t\t\t),\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tkey: \"tui\",\n\t\t\ttitle: \"TUI tool output limits\",\n\t\t\tlines: [\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"TUI_TOOL_MAX_CHARS\",\n\t\t\t\t\ttoolOutputLimits.maxChars,\n\t\t\t\t\t\"MAESTRO_TUI_TOOL_MAX_CHARS\",\n\t\t\t\t),\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"TUI_TOOL_MAX_LINES\",\n\t\t\t\t\ttoolOutputLimits.maxLines,\n\t\t\t\t\t\"MAESTRO_TUI_TOOL_MAX_LINES\",\n\t\t\t\t),\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tkey: \"runtime\",\n\t\t\ttitle: \"Runtime limits\",\n\t\t\tlines: [\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"MAX_FILE_SIZE_BYTES\",\n\t\t\t\t\tLIMITS.MAX_FILE_SIZE_BYTES,\n\t\t\t\t\t\"MAESTRO_MAX_FILE_SIZE\",\n\t\t\t\t),\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"MAX_SEARCH_RESULTS\",\n\t\t\t\t\tLIMITS.MAX_SEARCH_RESULTS,\n\t\t\t\t\t\"MAESTRO_MAX_SEARCH_RESULTS\",\n\t\t\t\t),\n\t\t\t\tformatLimitLine(\"MAX_COMMAND_OUTPUT\", LIMITS.MAX_COMMAND_OUTPUT),\n\t\t\t\tformatLimitLine(\"TEST_TIMEOUT_MS\", LIMITS.TEST_TIMEOUT_MS),\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tkey: \"api\",\n\t\t\ttitle: \"API & telemetry\",\n\t\t\tlines: [\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"REQUEST_TIMEOUT_MS\",\n\t\t\t\t\tAPI_CONFIG.REQUEST_TIMEOUT_MS,\n\t\t\t\t\t\"MAESTRO_API_TIMEOUT_MS\",\n\t\t\t\t),\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"TELEMETRY_SAMPLE_RATE\",\n\t\t\t\t\tAPI_CONFIG.TELEMETRY_SAMPLE_RATE,\n\t\t\t\t\t\"MAESTRO_TELEMETRY_SAMPLE\",\n\t\t\t\t),\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tkey: \"session\",\n\t\t\ttitle: \"Session persistence\",\n\t\t\tlines: [\n\t\t\t\tformatLimitLine(\n\t\t\t\t\t\"WRITE_BATCH_SIZE\",\n\t\t\t\t\tSESSION_CONFIG.WRITE_BATCH_SIZE,\n\t\t\t\t\t\"MAESTRO_SESSION_BATCH_SIZE\",\n\t\t\t\t),\n\t\t\t],\n\t\t},\n\t];\n\n\tconst selectedSections =\n\t\tsubcommand === \"all\" || subcommand === \"\"\n\t\t\t? sections\n\t\t\t: sections.filter((section) => section.key === subcommand);\n\n\tif (selectedSections.length === 0) {\n\t\tcontext.showError(`Unknown limits category: ${subcommand}`);\n\t\tcontext.showInfo(LIMITS_USAGE);\n\t\treturn;\n\t}\n\n\tconst lines: string[] = [\"Limits (restart after changing env vars):\"];\n\tfor (const section of selectedSections) {\n\t\tlines.push(\"\", `${section.title}:`, ...section.lines);\n\t}\n\n\tcontext.showInfo(lines.join(\"\\n\"));\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BUILT_IN_PII_PATTERNS, PiiDetector, } from "../../security/pii-detector.js";
|
|
2
|
-
import { isHelpRequest } from "./
|
|
2
|
+
import { isHelpRequest } from "./subcommands/utils.js";
|
|
3
3
|
const PII_USAGE = [
|
|
4
4
|
"PII detection:",
|
|
5
5
|
" /pii patterns List built-in patterns",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pii-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/pii-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,WAAW,GACX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pii-command.js","sourceRoot":"","sources":["../../../src/cli-tui/commands/pii-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,WAAW,GACX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,MAAM,SAAS,GAAG;IACjB,gBAAgB;IAChB,+CAA+C;IAC/C,sDAAsD;IACtD,uCAAuC;CACvC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAChE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtE,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAEjD,IAAI,CAAC,UAAU,IAAI,aAAa,C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AAC,QACJ,EAAE;gBACF,sBAAsB,MAAM,CAAC,cAAc,EAAE;gBAC7C,sBAAsB,MAAM,CAAC,cAAc,EAAE;gBAC7C,EAAE;gBACF,kBAAkB;gBAClB,MAAM,CAAC,eAAe;aACtB,CAAC;YACF,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACnC,MAAM;QACP,CAAC;QAED;YACC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;AACF,CAAC","sourcesContent":["import {\n\tBUILT_IN_PII_PATTERNS,\n\tPiiDetector,\n} from \"../../security/pii-detector.js\";\nimport { isHelpRequest } from \"./subcommands/utils.js\";\nimport type { CommandExecutionContext } from \"./types.js\";\n\nconst PII_USAGE = [\n\t\"PII detection:\",\n\t\" /pii patterns List built-in patterns\",\n\t\" /pii test <text> Detect and redact sample text\",\n\t\" /pii help Show this help\",\n].join(\"\\n\");\n\nexport function handlePiiCommand(context: CommandExecutionContext): void {\n\tconst args = context.argumentText.trim().split(/\\s+/).filter(Boolean);\n\tconst subcommand = (args[0] || \"\").toLowerCase();\n\n\tif (!subcommand || isHelpRequest(subcommand)) {\n\t\tcontext.showInfo(PII_USAGE);\n\t\treturn;\n\t}\n\n\tswitch (subcommand) {\n\t\tcase \"patterns\":\n\t\tcase \"list\": {\n\t\t\tconst lines = [\"Built-in PII patterns:\"];\n\t\t\tfor (const pattern of BUILT_IN_PII_PATTERNS) {\n\t\t\t\tlines.push(\n\t\t\t\t\t` - ${pattern.name}: ${pattern.description} (${pattern.replacement})`,\n\t\t\t\t);\n\t\t\t}\n\t\t\tlines.push(\"\", \"Use /pii test <text> to check sample content.\");\n\t\t\tcontext.showInfo(lines.join(\"\\n\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tcase \"test\": {\n\t\t\tconst sample = args.slice(1).join(\" \").trim();\n\t\t\tif (!sample) {\n\t\t\t\tcontext.showError(\"Usage: /pii test <text>\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst detector = new PiiDetector();\n\t\t\tconst result = detector.redact(sample);\n\t\t\tconst lines = [\n\t\t\t\t\"PII test results:\",\n\t\t\t\t` Detected: ${result.hasPii ? \"yes\" : \"no\"}`,\n\t\t\t\t` Patterns: ${\n\t\t\t\t\tresult.detectedPatterns.length > 0\n\t\t\t\t\t\t? result.detectedPatterns.join(\", \")\n\t\t\t\t\t\t: \"(none)\"\n\t\t\t\t}`,\n\t\t\t\t` Original length: ${result.originalLength}`,\n\t\t\t\t` Redacted length: ${result.redactedLength}`,\n\t\t\t\t\"\",\n\t\t\t\t\"Redacted output:\",\n\t\t\t\tresult.redactedContent,\n\t\t\t];\n\t\t\tcontext.showInfo(lines.join(\"\\n\"));\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault:\n\t\t\tcontext.showInfo(PII_USAGE);\n\t}\n}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CommandEntry, CommandRegistryOptions } from "./types.js";
|
|
2
|
-
export declare function createCommandRegistry({ getRunScriptCompletions, handlers,
|
|
2
|
+
export declare function createCommandRegistry({ getRunScriptCompletions, handlers, getCommandSuiteHandlers, createContext, }: CommandRegistryOptions): CommandEntry[];
|
|
3
3
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/commands/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/cli-tui/commands/registry.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACX,YAAY,EAEZ,sBAAsB,EACtB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,qBAAqB,CAAC,EACrC,uBAAuB,EACvB,QAAQ,EACR,uBAAuB,EACvB,aAAa,GACb,EAAE,sBAAsB,GAAG,YAAY,EAAE,CAYzC"}
|