@qduc/term2 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +9 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +151 -93
- package/dist/agent.js.map +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +62 -36
- package/dist/app.js.map +1 -1
- package/dist/cli.js +122 -41
- package/dist/cli.js.map +1 -1
- package/dist/commands/guarded-settings-command.d.ts.map +1 -1
- package/dist/commands/guarded-settings-command.js +33 -5
- package/dist/commands/guarded-settings-command.js.map +1 -1
- package/dist/commands/mode-commands.d.ts +17 -12
- package/dist/commands/mode-commands.d.ts.map +1 -1
- package/dist/commands/mode-commands.js +68 -44
- package/dist/commands/mode-commands.js.map +1 -1
- package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -1
- package/dist/components/input/ApplicationInputSurface.js +4 -0
- package/dist/components/input/ApplicationInputSurface.js.map +1 -1
- package/dist/components/input/MenuSurface.d.ts.map +1 -1
- package/dist/components/input/MenuSurface.js +1 -0
- package/dist/components/input/MenuSurface.js.map +1 -1
- package/dist/components/input/ProfileMenuSession.d.ts +16 -0
- package/dist/components/input/ProfileMenuSession.d.ts.map +1 -0
- package/dist/components/input/ProfileMenuSession.js +64 -0
- package/dist/components/input/ProfileMenuSession.js.map +1 -0
- package/dist/components/input/determine-active-menu.d.ts +3 -0
- package/dist/components/input/determine-active-menu.d.ts.map +1 -1
- package/dist/components/input/determine-active-menu.js +6 -1
- package/dist/components/input/determine-active-menu.js.map +1 -1
- package/dist/components/input/menu-registry.d.ts.map +1 -1
- package/dist/components/input/menu-registry.js +2 -0
- package/dist/components/input/menu-registry.js.map +1 -1
- package/dist/components/input/menu-types.d.ts +4 -0
- package/dist/components/input/menu-types.d.ts.map +1 -1
- package/dist/components/input/triggers.d.ts +1 -0
- package/dist/components/input/triggers.d.ts.map +1 -1
- package/dist/components/input/triggers.js +26 -0
- package/dist/components/input/triggers.js.map +1 -1
- package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -1
- package/dist/components/layout/BackgroundTaskManager.js +6 -2
- package/dist/components/layout/BackgroundTaskManager.js.map +1 -1
- package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
- package/dist/components/layout/BackgroundTasksPanel.js +16 -8
- package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
- package/dist/components/layout/Banner.d.ts.map +1 -1
- package/dist/components/layout/Banner.js +10 -5
- package/dist/components/layout/Banner.js.map +1 -1
- package/dist/components/layout/BottomArea.d.ts.map +1 -1
- package/dist/components/layout/BottomArea.js +4 -3
- package/dist/components/layout/BottomArea.js.map +1 -1
- package/dist/components/layout/StatusBar.d.ts.map +1 -1
- package/dist/components/layout/StatusBar.js +28 -13
- package/dist/components/layout/StatusBar.js.map +1 -1
- package/dist/components/menu/ProfileSelectionMenu.d.ts +12 -0
- package/dist/components/menu/ProfileSelectionMenu.d.ts.map +1 -0
- package/dist/components/menu/ProfileSelectionMenu.js +48 -0
- package/dist/components/menu/ProfileSelectionMenu.js.map +1 -0
- package/dist/components/menu/ResumeSelectionMenu.d.ts.map +1 -1
- package/dist/components/menu/ResumeSelectionMenu.js +6 -14
- package/dist/components/menu/ResumeSelectionMenu.js.map +1 -1
- package/dist/components/message/ChatMessage.js +1 -1
- package/dist/components/message/ChatMessage.js.map +1 -1
- package/dist/components/message/MessageList.d.ts.map +1 -1
- package/dist/components/message/MessageList.js +32 -16
- package/dist/components/message/MessageList.js.map +1 -1
- package/dist/components/message/command-grouping.d.ts +6 -6
- package/dist/components/message/command-grouping.d.ts.map +1 -1
- package/dist/components/message/command-grouping.js +21 -8
- package/dist/components/message/command-grouping.js.map +1 -1
- package/dist/context/InputContext.d.ts +1 -1
- package/dist/context/InputContext.d.ts.map +1 -1
- package/dist/context/InputContext.js +8 -0
- package/dist/context/InputContext.js.map +1 -1
- package/dist/contracts/session-rollover.d.ts +9 -1
- package/dist/contracts/session-rollover.d.ts.map +1 -1
- package/dist/contracts/streamed-model-turn.d.ts +20 -2
- package/dist/contracts/streamed-model-turn.d.ts.map +1 -1
- package/dist/gateway/gateway.d.ts.map +1 -1
- package/dist/gateway/gateway.js +19 -23
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/launcher-seam.d.ts.map +1 -1
- package/dist/gateway/launcher-seam.js +2 -19
- package/dist/gateway/launcher-seam.js.map +1 -1
- package/dist/gateway/settings-rpc.d.ts +1 -1
- package/dist/gateway/settings-rpc.d.ts.map +1 -1
- package/dist/gateway/settings-rpc.js +2 -0
- package/dist/gateway/settings-rpc.js.map +1 -1
- package/dist/hooks/settings-completion-config.d.ts.map +1 -1
- package/dist/hooks/settings-completion-config.js +25 -3
- package/dist/hooks/settings-completion-config.js.map +1 -1
- package/dist/hooks/use-app-commands.d.ts +3 -1
- package/dist/hooks/use-app-commands.d.ts.map +1 -1
- package/dist/hooks/use-app-commands.js +21 -14
- package/dist/hooks/use-app-commands.js.map +1 -1
- package/dist/hooks/use-conversation.d.ts +2 -2
- package/dist/hooks/use-conversation.d.ts.map +1 -1
- package/dist/hooks/use-conversation.js +1 -1
- package/dist/hooks/use-conversation.js.map +1 -1
- package/dist/hooks/use-handoff-flow.d.ts +1 -0
- package/dist/hooks/use-handoff-flow.d.ts.map +1 -1
- package/dist/hooks/use-handoff-flow.js +19 -12
- package/dist/hooks/use-handoff-flow.js.map +1 -1
- package/dist/hooks/use-profile-selection.d.ts +34 -0
- package/dist/hooks/use-profile-selection.d.ts.map +1 -0
- package/dist/hooks/use-profile-selection.js +103 -0
- package/dist/hooks/use-profile-selection.js.map +1 -0
- package/dist/hooks/use-resume-selection.d.ts +2 -0
- package/dist/hooks/use-resume-selection.d.ts.map +1 -1
- package/dist/hooks/use-resume-selection.js +11 -9
- package/dist/hooks/use-resume-selection.js.map +1 -1
- package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
- package/dist/hooks/use-settings-value-completion.js +16 -0
- package/dist/hooks/use-settings-value-completion.js.map +1 -1
- package/dist/hooks/use-skill-selection.d.ts +5 -3
- package/dist/hooks/use-skill-selection.d.ts.map +1 -1
- package/dist/hooks/use-skill-selection.js +8 -6
- package/dist/hooks/use-skill-selection.js.map +1 -1
- package/dist/lib/agent-client.d.ts +18 -0
- package/dist/lib/agent-client.d.ts.map +1 -1
- package/dist/lib/agent-client.js +69 -14
- package/dist/lib/agent-client.js.map +1 -1
- package/dist/lib/agent-configuration.d.ts +8 -0
- package/dist/lib/agent-configuration.d.ts.map +1 -1
- package/dist/lib/agent-configuration.js +7 -4
- package/dist/lib/agent-configuration.js.map +1 -1
- package/dist/lib/agent-factory.d.ts +8 -0
- package/dist/lib/agent-factory.d.ts.map +1 -1
- package/dist/lib/agent-factory.js +65 -41
- package/dist/lib/agent-factory.js.map +1 -1
- package/dist/lib/harness-input-idle.d.ts +10 -0
- package/dist/lib/harness-input-idle.d.ts.map +1 -1
- package/dist/lib/harness-input-idle.js +47 -5
- package/dist/lib/harness-input-idle.js.map +1 -1
- package/dist/non-interactive.d.ts.map +1 -1
- package/dist/non-interactive.js +6 -6
- package/dist/non-interactive.js.map +1 -1
- package/dist/prompts/memory.md +1 -1
- package/dist/prompts/prefix-quality.test.ts +8 -5
- package/dist/prompts/prompt-constructor.d.ts +5 -6
- package/dist/prompts/prompt-constructor.d.ts.map +1 -1
- package/dist/prompts/prompt-constructor.js +15 -7
- package/dist/prompts/prompt-constructor.js.map +1 -1
- package/dist/prompts/prompt-constructor.test.ts +73 -48
- package/dist/prompts/prompt-constructor.ts +21 -13
- package/dist/prompts/session-browser.md +2 -0
- package/dist/prompts/shell-auto-approval.d.ts +2 -2
- package/dist/prompts/shell-auto-approval.d.ts.map +1 -1
- package/dist/prompts/shell-auto-approval.js +19 -16
- package/dist/prompts/shell-auto-approval.js.map +1 -1
- package/dist/prompts/shell-auto-approval.ts +19 -16
- package/dist/providers/aborted-stream-recorder.js +2 -1
- package/dist/providers/aborted-stream-recorder.js.map +1 -1
- package/dist/providers/ai-sdk-streamed-model.d.ts.map +1 -1
- package/dist/providers/ai-sdk-streamed-model.js +7 -0
- package/dist/providers/ai-sdk-streamed-model.js.map +1 -1
- package/dist/providers/codex-responses-model.d.ts.map +1 -1
- package/dist/providers/codex-responses-model.js +75 -14
- package/dist/providers/codex-responses-model.js.map +1 -1
- package/dist/providers/codex-turn-converter.d.ts.map +1 -1
- package/dist/providers/codex-turn-converter.js +21 -4
- package/dist/providers/codex-turn-converter.js.map +1 -1
- package/dist/providers/codex.provider.d.ts.map +1 -1
- package/dist/providers/codex.provider.js +1 -0
- package/dist/providers/codex.provider.js.map +1 -1
- package/dist/providers/fetch/logging-middleware.d.ts.map +1 -1
- package/dist/providers/fetch/logging-middleware.js +22 -2
- package/dist/providers/fetch/logging-middleware.js.map +1 -1
- package/dist/providers/openai-chat-completions-model.js +119 -50
- package/dist/providers/openai-chat-completions-model.js.map +1 -1
- package/dist/providers/openai-responses-model.d.ts.map +1 -1
- package/dist/providers/openai-responses-model.js +131 -15
- package/dist/providers/openai-responses-model.js.map +1 -1
- package/dist/providers/registry.d.ts +1 -1
- package/dist/providers/registry.d.ts.map +1 -1
- package/dist/providers/retrying-model.d.ts.map +1 -1
- package/dist/providers/retrying-model.js +11 -2
- package/dist/providers/retrying-model.js.map +1 -1
- package/dist/services/agent-runtime/application-run-loop.d.ts +3 -1
- package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -1
- package/dist/services/agent-runtime/application-run-loop.js +99 -19
- package/dist/services/agent-runtime/application-run-loop.js.map +1 -1
- package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.d.ts +2 -3
- package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.d.ts.map +1 -1
- package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.js +18 -9
- package/dist/services/agent-runtime/context-compaction/context-milestone-reminder.js.map +1 -1
- package/dist/services/agent-runtime/generation-guard.d.ts +25 -1
- package/dist/services/agent-runtime/generation-guard.d.ts.map +1 -1
- package/dist/services/agent-runtime/generation-guard.js +105 -1
- package/dist/services/agent-runtime/generation-guard.js.map +1 -1
- package/dist/services/agent-stream.d.ts +2 -0
- package/dist/services/agent-stream.d.ts.map +1 -1
- package/dist/services/agent-stream.js.map +1 -1
- package/dist/services/approval/approval-decision-policy.js +2 -2
- package/dist/services/approval/approval-decision-policy.js.map +1 -1
- package/dist/services/approval/shell-auto-approval-evaluator.d.ts +5 -1
- package/dist/services/approval/shell-auto-approval-evaluator.d.ts.map +1 -1
- package/dist/services/approval/shell-auto-approval-evaluator.js +42 -18
- package/dist/services/approval/shell-auto-approval-evaluator.js.map +1 -1
- package/dist/services/approval/shell-auto-approval-resolver.d.ts +5 -0
- package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
- package/dist/services/approval/shell-auto-approval-resolver.js +117 -20
- package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
- package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
- package/dist/services/approval/tool-approval-batch-coordinator.js +20 -3
- package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
- package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
- package/dist/services/conversation/conversation-adapter.js +2 -9
- package/dist/services/conversation/conversation-adapter.js.map +1 -1
- package/dist/services/conversation/conversation-decoder.d.ts.map +1 -1
- package/dist/services/conversation/conversation-decoder.js +6 -2
- package/dist/services/conversation/conversation-decoder.js.map +1 -1
- package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
- package/dist/services/conversation/conversation-orchestrator.js +22 -2
- package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
- package/dist/services/conversation/conversation-persistence.d.ts +30 -0
- package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
- package/dist/services/conversation/conversation-persistence.js +101 -7
- package/dist/services/conversation/conversation-persistence.js.map +1 -1
- package/dist/services/conversation/conversation-replay.d.ts +2 -0
- package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
- package/dist/services/conversation/conversation-replay.js +71 -57
- package/dist/services/conversation/conversation-replay.js.map +1 -1
- package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
- package/dist/services/conversation/conversation-result-builder.js +21 -4
- package/dist/services/conversation/conversation-result-builder.js.map +1 -1
- package/dist/services/conversation/conversation-service.d.ts +3 -2
- package/dist/services/conversation/conversation-service.d.ts.map +1 -1
- package/dist/services/conversation/conversation-service.js +36 -15
- package/dist/services/conversation/conversation-service.js.map +1 -1
- package/dist/services/conversation/session-browser.d.ts +8 -1
- package/dist/services/conversation/session-browser.d.ts.map +1 -1
- package/dist/services/conversation/session-browser.js +134 -16
- package/dist/services/conversation/session-browser.js.map +1 -1
- package/dist/services/handoff/handoff-session.d.ts +2 -0
- package/dist/services/handoff/handoff-session.d.ts.map +1 -1
- package/dist/services/handoff/handoff-session.js +19 -3
- package/dist/services/handoff/handoff-session.js.map +1 -1
- package/dist/services/logging/conversation-log-events.d.ts +30 -3
- package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
- package/dist/services/logging/conversation-log-events.js +1 -4
- package/dist/services/logging/conversation-log-events.js.map +1 -1
- package/dist/services/logging/logging-service.d.ts +1 -0
- package/dist/services/logging/logging-service.d.ts.map +1 -1
- package/dist/services/logging/logging-service.js +5 -2
- package/dist/services/logging/logging-service.js.map +1 -1
- package/dist/services/logging/provider-traffic.d.ts +8 -1
- package/dist/services/logging/provider-traffic.d.ts.map +1 -1
- package/dist/services/logging/provider-traffic.js +105 -10
- package/dist/services/logging/provider-traffic.js.map +1 -1
- package/dist/services/memory/memory-capabilities.d.ts.map +1 -1
- package/dist/services/memory/memory-capabilities.js +17 -5
- package/dist/services/memory/memory-capabilities.js.map +1 -1
- package/dist/services/memory/memory-store.d.ts +17 -0
- package/dist/services/memory/memory-store.d.ts.map +1 -1
- package/dist/services/memory/memory-store.js +74 -27
- package/dist/services/memory/memory-store.js.map +1 -1
- package/dist/services/mode-notices.d.ts +12 -9
- package/dist/services/mode-notices.d.ts.map +1 -1
- package/dist/services/mode-notices.js +83 -54
- package/dist/services/mode-notices.js.map +1 -1
- package/dist/services/model-service.d.ts +22 -4
- package/dist/services/model-service.d.ts.map +1 -1
- package/dist/services/model-service.js +148 -1
- package/dist/services/model-service.js.map +1 -1
- package/dist/services/models/model-catalog-session.d.ts +6 -0
- package/dist/services/models/model-catalog-session.d.ts.map +1 -1
- package/dist/services/models/model-catalog-session.js +7 -3
- package/dist/services/models/model-catalog-session.js.map +1 -1
- package/dist/services/models/model-listing.d.ts +57 -0
- package/dist/services/models/model-listing.d.ts.map +1 -0
- package/dist/services/models/model-listing.js +96 -0
- package/dist/services/models/model-listing.js.map +1 -0
- package/dist/services/models/model-resolution.d.ts +88 -0
- package/dist/services/models/model-resolution.d.ts.map +1 -0
- package/dist/services/models/model-resolution.js +292 -0
- package/dist/services/models/model-resolution.js.map +1 -0
- package/dist/services/plan-mode-interceptor.d.ts.map +1 -1
- package/dist/services/plan-mode-interceptor.js +5 -6
- package/dist/services/plan-mode-interceptor.js.map +1 -1
- package/dist/services/profiles/active-profile.d.ts +5 -0
- package/dist/services/profiles/active-profile.d.ts.map +1 -0
- package/dist/services/profiles/active-profile.js +33 -0
- package/dist/services/profiles/active-profile.js.map +1 -0
- package/dist/services/profiles/index.d.ts +9 -0
- package/dist/services/profiles/index.d.ts.map +1 -0
- package/dist/services/profiles/index.js +9 -0
- package/dist/services/profiles/index.js.map +1 -0
- package/dist/services/profiles/labels.d.ts +7 -0
- package/dist/services/profiles/labels.d.ts.map +1 -0
- package/dist/services/profiles/labels.js +22 -0
- package/dist/services/profiles/labels.js.map +1 -0
- package/dist/services/profiles/legacy-adapter.d.ts +28 -0
- package/dist/services/profiles/legacy-adapter.d.ts.map +1 -0
- package/dist/services/profiles/legacy-adapter.js +69 -0
- package/dist/services/profiles/legacy-adapter.js.map +1 -0
- package/dist/services/profiles/profile-transition.d.ts +48 -0
- package/dist/services/profiles/profile-transition.d.ts.map +1 -0
- package/dist/services/profiles/profile-transition.js +109 -0
- package/dist/services/profiles/profile-transition.js.map +1 -0
- package/dist/services/profiles/registry.d.ts +17 -0
- package/dist/services/profiles/registry.d.ts.map +1 -0
- package/dist/services/profiles/registry.js +147 -0
- package/dist/services/profiles/registry.js.map +1 -0
- package/dist/services/profiles/resolver.d.ts +10 -0
- package/dist/services/profiles/resolver.d.ts.map +1 -0
- package/dist/services/profiles/resolver.js +573 -0
- package/dist/services/profiles/resolver.js.map +1 -0
- package/dist/services/profiles/schema.d.ts +960 -0
- package/dist/services/profiles/schema.d.ts.map +1 -0
- package/dist/services/profiles/schema.js +196 -0
- package/dist/services/profiles/schema.js.map +1 -0
- package/dist/services/profiles/types.d.ts +224 -0
- package/dist/services/profiles/types.d.ts.map +1 -0
- package/dist/services/profiles/types.js +9 -0
- package/dist/services/profiles/types.js.map +1 -0
- package/dist/services/retry/committed-tool-continuation.d.ts +5 -0
- package/dist/services/retry/committed-tool-continuation.d.ts.map +1 -1
- package/dist/services/retry/committed-tool-continuation.js +6 -3
- package/dist/services/retry/committed-tool-continuation.js.map +1 -1
- package/dist/services/retry/retry-classifier.d.ts.map +1 -1
- package/dist/services/retry/retry-classifier.js +13 -10
- package/dist/services/retry/retry-classifier.js.map +1 -1
- package/dist/services/retry/retry-error-classification.d.ts +7 -0
- package/dist/services/retry/retry-error-classification.d.ts.map +1 -1
- package/dist/services/retry/retry-error-classification.js +32 -9
- package/dist/services/retry/retry-error-classification.js.map +1 -1
- package/dist/services/runtime-setting-router.d.ts.map +1 -1
- package/dist/services/runtime-setting-router.js +76 -23
- package/dist/services/runtime-setting-router.js.map +1 -1
- package/dist/services/session/background-check-in-scheduler.d.ts +20 -4
- package/dist/services/session/background-check-in-scheduler.d.ts.map +1 -1
- package/dist/services/session/background-check-in-scheduler.js +73 -6
- package/dist/services/session/background-check-in-scheduler.js.map +1 -1
- package/dist/services/session/initial-turn-recovery-handler.js +4 -4
- package/dist/services/session/initial-turn-recovery-handler.js.map +1 -1
- package/dist/services/session/session-composition.d.ts.map +1 -1
- package/dist/services/session/session-composition.js +2 -1
- package/dist/services/session/session-composition.js.map +1 -1
- package/dist/services/session/session-input-planner.d.ts.map +1 -1
- package/dist/services/session/session-input-planner.js +2 -9
- package/dist/services/session/session-input-planner.js.map +1 -1
- package/dist/services/session/session-manager.d.ts.map +1 -1
- package/dist/services/session/session-manager.js +4 -1
- package/dist/services/session/session-manager.js.map +1 -1
- package/dist/services/session-rollover/session-rollover-brief.d.ts +2 -1
- package/dist/services/session-rollover/session-rollover-brief.d.ts.map +1 -1
- package/dist/services/session-rollover/session-rollover-brief.js +5 -3
- package/dist/services/session-rollover/session-rollover-brief.js.map +1 -1
- package/dist/services/settings/settings-persistence.js +1 -1
- package/dist/services/settings/settings-persistence.js.map +1 -1
- package/dist/services/settings/settings-schema.d.ts +124 -19
- package/dist/services/settings/settings-schema.d.ts.map +1 -1
- package/dist/services/settings/settings-schema.js +111 -31
- package/dist/services/settings/settings-schema.js.map +1 -1
- package/dist/services/settings/settings-service.d.ts +3 -1
- package/dist/services/settings/settings-service.d.ts.map +1 -1
- package/dist/services/settings/settings-service.js +88 -91
- package/dist/services/settings/settings-service.js.map +1 -1
- package/dist/services/settings/settings-sources.d.ts.map +1 -1
- package/dist/services/settings/settings-sources.js +13 -1
- package/dist/services/settings/settings-sources.js.map +1 -1
- package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts +3 -3
- package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts.map +1 -1
- package/dist/services/settings/test-helpers/settings-consumer-inventory.js +15 -1
- package/dist/services/settings/test-helpers/settings-consumer-inventory.js.map +1 -1
- package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
- package/dist/services/subagents/mentor-runner.js +5 -2
- package/dist/services/subagents/mentor-runner.js.map +1 -1
- package/dist/services/subagents/subagent-notification-store.d.ts +10 -2
- package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
- package/dist/services/subagents/subagent-notification-store.js +10 -5
- package/dist/services/subagents/subagent-notification-store.js.map +1 -1
- package/dist/services/subagents/tool-policy.d.ts.map +1 -1
- package/dist/services/subagents/tool-policy.js +10 -15
- package/dist/services/subagents/tool-policy.js.map +1 -1
- package/dist/services/tool-toggles.d.ts +20 -0
- package/dist/services/tool-toggles.d.ts.map +1 -0
- package/dist/services/tool-toggles.js +115 -0
- package/dist/services/tool-toggles.js.map +1 -0
- package/dist/slash-commands.d.ts +3 -0
- package/dist/slash-commands.d.ts.map +1 -1
- package/dist/slash-commands.js.map +1 -1
- package/dist/tools/agent/configure-task-check-in.d.ts +19 -0
- package/dist/tools/agent/configure-task-check-in.d.ts.map +1 -0
- package/dist/tools/agent/configure-task-check-in.js +82 -0
- package/dist/tools/agent/configure-task-check-in.js.map +1 -0
- package/dist/tools/agent/run-subagent-async.d.ts +11 -1
- package/dist/tools/agent/run-subagent-async.d.ts.map +1 -1
- package/dist/tools/agent/run-subagent-async.js +22 -1
- package/dist/tools/agent/run-subagent-async.js.map +1 -1
- package/dist/tools/agent/run-subagent.d.ts +15 -0
- package/dist/tools/agent/run-subagent.d.ts.map +1 -1
- package/dist/tools/agent/run-subagent.js +24 -2
- package/dist/tools/agent/run-subagent.js.map +1 -1
- package/dist/tools/file/apply-patch.d.ts +2 -15
- package/dist/tools/file/apply-patch.d.ts.map +1 -1
- package/dist/tools/file/apply-patch.js +163 -98
- package/dist/tools/file/apply-patch.js.map +1 -1
- package/dist/tools/file/read-file.d.ts.map +1 -1
- package/dist/tools/file/read-file.js +48 -0
- package/dist/tools/file/read-file.js.map +1 -1
- package/dist/tools/file/upstream-apply-patch.d.ts +31 -0
- package/dist/tools/file/upstream-apply-patch.d.ts.map +1 -0
- package/dist/tools/file/upstream-apply-patch.js +123 -0
- package/dist/tools/file/upstream-apply-patch.js.map +1 -0
- package/dist/tools/format-helpers.d.ts +2 -0
- package/dist/tools/format-helpers.d.ts.map +1 -1
- package/dist/tools/format-helpers.js +7 -0
- package/dist/tools/format-helpers.js.map +1 -1
- package/dist/tools/memory/memory-tools.js +1 -1
- package/dist/tools/memory/memory-tools.js.map +1 -1
- package/dist/tools/session-browser/session-browser-tools.d.ts.map +1 -1
- package/dist/tools/session-browser/session-browser-tools.js +11 -1
- package/dist/tools/session-browser/session-browser-tools.js.map +1 -1
- package/dist/tools/session-rollover/session-rollover-tool.d.ts.map +1 -1
- package/dist/tools/session-rollover/session-rollover-tool.js +10 -1
- package/dist/tools/session-rollover/session-rollover-tool.js.map +1 -1
- package/dist/tools/system/shell.d.ts +12 -0
- package/dist/tools/system/shell.d.ts.map +1 -1
- package/dist/tools/system/shell.js +30 -4
- package/dist/tools/system/shell.js.map +1 -1
- package/dist/tools/types.d.ts +15 -2
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/dist/utils/ai/token-usage.d.ts +9 -0
- package/dist/utils/ai/token-usage.d.ts.map +1 -1
- package/dist/utils/ai/token-usage.js +15 -3
- package/dist/utils/ai/token-usage.js.map +1 -1
- package/dist/utils/conversation/conversation-utils.d.ts.map +1 -1
- package/dist/utils/conversation/conversation-utils.js +40 -1
- package/dist/utils/conversation/conversation-utils.js.map +1 -1
- package/dist/utils/conversation/message-buffer.d.ts +16 -0
- package/dist/utils/conversation/message-buffer.d.ts.map +1 -1
- package/dist/utils/conversation/message-buffer.js +33 -0
- package/dist/utils/conversation/message-buffer.js.map +1 -1
- package/dist/utils/output/trim-tool-output.d.ts +1 -1
- package/dist/utils/output/trim-tool-output.d.ts.map +1 -1
- package/dist/utils/output/trim-tool-output.js +20 -0
- package/dist/utils/output/trim-tool-output.js.map +1 -1
- package/dist/utils/resume-list.d.ts +2 -0
- package/dist/utils/resume-list.d.ts.map +1 -1
- package/dist/utils/resume-list.js +7 -14
- package/dist/utils/resume-list.js.map +1 -1
- package/dist/utils/settings-command.d.ts.map +1 -1
- package/dist/utils/settings-command.js +95 -14
- package/dist/utils/settings-command.js.map +1 -1
- package/dist/utils/streaming/streaming-session-factory.d.ts +3 -0
- package/dist/utils/streaming/streaming-session-factory.d.ts.map +1 -1
- package/dist/utils/streaming/streaming-session-factory.js +35 -17
- package/dist/utils/streaming/streaming-session-factory.js.map +1 -1
- package/dist/utils/streaming/streaming-speed-tracker.d.ts +47 -6
- package/dist/utils/streaming/streaming-speed-tracker.d.ts.map +1 -1
- package/dist/utils/streaming/streaming-speed-tracker.js +91 -23
- package/dist/utils/streaming/streaming-speed-tracker.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-transition.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/profile-transition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAMjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,YAAY,GAAG,aAAa,GAAG,eAAe,CAAC;AAE7F,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,sBAAsB,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,6BAA6B,GAAG;IAClE,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,wDAAwD;IACxD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,0EAA0E;IAC1E,2BAA2B,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,CAAC;IACxD,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAEvE,CAAC;AAQF;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAkBnH;AAOD,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,gBAAgB,EACjC,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,6BAAkC,GACvC,qBAAqB,CAiBvB;AAED,gFAAgF;AAChF,qBAAa,wBAAwB;;IAInC,YAAY,eAAe,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,qBAAqB,EAAE;IAC7E,YAAY,IAAI,EAAE,qBAAqB,GAAG;QAAE,eAAe,EAAE,gBAAgB,CAAA;KAAE,EAAE;IAejF,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAE5C;IAED,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAMhD;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAsBxC;CACF"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { isLiteProfile } from '../../prompts/prompt-constructor.js';
|
|
2
|
+
import { profileEnterNotice, profileExitNotice } from '../mode-notices.js';
|
|
3
|
+
import { resolveActiveProfile } from './active-profile.js';
|
|
4
|
+
import { BUILTIN_INTEGRATIONS } from './registry.js';
|
|
5
|
+
import { resolveProfile } from './resolver.js';
|
|
6
|
+
/** The interactive runtime exposes all built-in integration points. */
|
|
7
|
+
export const DEFAULT_AVAILABLE_INTEGRATIONS = new Map(BUILTIN_INTEGRATIONS.map((id) => [id, true]));
|
|
8
|
+
const resolveOptions = (deps) => ({
|
|
9
|
+
availableIntegrations: deps.availableIntegrations ?? DEFAULT_AVAILABLE_INTEGRATIONS,
|
|
10
|
+
});
|
|
11
|
+
const isProfile = (profile, id) => profile.identity.id === id;
|
|
12
|
+
/**
|
|
13
|
+
* Classify the runtime impact of changing between two resolved Profiles.
|
|
14
|
+
* Identity equality intentionally wins: re-selecting a Profile has no effects,
|
|
15
|
+
* even when that Profile itself carries a workflow notice.
|
|
16
|
+
*/
|
|
17
|
+
export function classifyProfileTransition(current, target) {
|
|
18
|
+
if (current.identity.id === target.identity.id)
|
|
19
|
+
return 'noop';
|
|
20
|
+
if (isLiteProfile(current) !== isLiteProfile(target))
|
|
21
|
+
return 'structural';
|
|
22
|
+
const agentWorkflowInvolved = isProfile(current, 'builtin:mentor') ||
|
|
23
|
+
isProfile(target, 'builtin:mentor') ||
|
|
24
|
+
isProfile(current, 'builtin:orchestrator') ||
|
|
25
|
+
isProfile(target, 'builtin:orchestrator');
|
|
26
|
+
if (agentWorkflowInvolved)
|
|
27
|
+
return 'agent-rebuild';
|
|
28
|
+
const planInvolved = isProfile(current, 'builtin:plan') || isProfile(target, 'builtin:plan');
|
|
29
|
+
if (planInvolved)
|
|
30
|
+
return 'notice-only';
|
|
31
|
+
// A non-built-in Profile cannot be assumed to have a stable prompt/tool
|
|
32
|
+
// shape. Rebuild it conservatively rather than allowing stale composition.
|
|
33
|
+
return 'agent-rebuild';
|
|
34
|
+
}
|
|
35
|
+
const composeNotice = (exitNotice, enterNotice) => {
|
|
36
|
+
if (exitNotice && enterNotice)
|
|
37
|
+
return `${exitNotice}\n\n${enterNotice}`;
|
|
38
|
+
return exitNotice ?? enterNotice;
|
|
39
|
+
};
|
|
40
|
+
export function planProfileTransition(settingsService, targetId, deps = {}) {
|
|
41
|
+
const options = resolveOptions(deps);
|
|
42
|
+
// Resolve both sides before constructing the plan. In particular, do not
|
|
43
|
+
// write activeProfileId before an unavailable required integration fails.
|
|
44
|
+
const current = resolveActiveProfile(settingsService, options);
|
|
45
|
+
const target = resolveProfile(targetId, options);
|
|
46
|
+
const transitionClass = classifyProfileTransition(current, target);
|
|
47
|
+
const exitNotice = transitionClass === 'noop' ? null : profileExitNotice(current);
|
|
48
|
+
const enterNotice = transitionClass === 'noop' ? null : profileEnterNotice(target);
|
|
49
|
+
return {
|
|
50
|
+
targetId: target.identity.id,
|
|
51
|
+
class: transitionClass,
|
|
52
|
+
exitNotice,
|
|
53
|
+
enterNotice,
|
|
54
|
+
composedNotice: composeNotice(exitNotice, enterNotice),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** Owns Profile activation effects after pure resolution and classification. */
|
|
58
|
+
export class ProfileTransitionService {
|
|
59
|
+
#settingsService;
|
|
60
|
+
#deps;
|
|
61
|
+
constructor(settingsServiceOrDeps, deps = {}) {
|
|
62
|
+
if ('settingsService' in settingsServiceOrDeps) {
|
|
63
|
+
this.#settingsService = settingsServiceOrDeps.settingsService;
|
|
64
|
+
const { settingsService: _settingsService, ...transitionDeps } = settingsServiceOrDeps;
|
|
65
|
+
this.#deps = transitionDeps;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.#settingsService = settingsServiceOrDeps;
|
|
69
|
+
this.#deps = deps;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
plan(targetId) {
|
|
73
|
+
return planProfileTransition(this.#settingsService, targetId, this.#deps);
|
|
74
|
+
}
|
|
75
|
+
activate(targetId) {
|
|
76
|
+
const plan = this.plan(targetId);
|
|
77
|
+
if (plan.class === 'noop')
|
|
78
|
+
return plan;
|
|
79
|
+
this.commit(plan);
|
|
80
|
+
return plan;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Apply the runtime effects of a plan whose canonical selection has already
|
|
84
|
+
* been committed by a surrounding settings transaction.
|
|
85
|
+
*/
|
|
86
|
+
commit(plan) {
|
|
87
|
+
if (plan.class === 'noop')
|
|
88
|
+
return;
|
|
89
|
+
if (plan.class === 'structural') {
|
|
90
|
+
const confirmationRequired = typeof this.#deps.requiresHistoryConfirmation === 'function'
|
|
91
|
+
? this.#deps.requiresHistoryConfirmation()
|
|
92
|
+
: this.#deps.requiresHistoryConfirmation ?? this.#deps.clearConversation !== undefined;
|
|
93
|
+
if (confirmationRequired)
|
|
94
|
+
this.#deps.clearConversation?.();
|
|
95
|
+
}
|
|
96
|
+
// SettingsService's canonical normalization updates the compatibility
|
|
97
|
+
// flags and emits the active-profile change that rebuild subscribers use.
|
|
98
|
+
// A caller using commit() has already performed that write atomically.
|
|
99
|
+
if (this.#settingsService.get('app.activeProfileId') !== plan.targetId) {
|
|
100
|
+
this.#settingsService.set('app.activeProfileId', plan.targetId);
|
|
101
|
+
}
|
|
102
|
+
if (plan.class === 'structural' || plan.class === 'agent-rebuild') {
|
|
103
|
+
this.#deps.rebuildAgent?.();
|
|
104
|
+
}
|
|
105
|
+
if (plan.composedNotice)
|
|
106
|
+
this.#deps.queueModeNotice?.(plan.composedNotice);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=profile-transition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-transition.js","sourceRoot":"","sources":["../../../source/services/profiles/profile-transition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AA4B/C,uEAAuE;AACvE,MAAM,CAAC,MAAM,8BAA8B,GAAiC,IAAI,GAAG,CACjF,oBAAoB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAC7C,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAmC,EAAE,EAAE,CAAC,CAAC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AC,cAAc;YAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BlockKind, EnforcementPolicyDefinition, IntegrationDefinition, ProfileDefinition, ProfileRegistry, RegisteredBlock } from './types.js';
|
|
2
|
+
/** Stable source kinds owned by the application. Profile data cannot invent one. */
|
|
3
|
+
export declare const BUILTIN_CONTEXT_SOURCES: readonly ['environment', 'workspace', 'project-instructions', 'skills-catalog', 'memory', 'session-browser', 'repository-guidance', 'profile-document'];
|
|
4
|
+
export declare const BUILTIN_TOOL_CAPABILITIES: readonly ['filesystem-read-workspace', 'filesystem-read-external', 'filesystem-write', 'shell', 'web', 'memory', 'sessions', 'skills', 'mentor', 'subagents', 'background-tasks', 'user-interaction', 'code-context'];
|
|
5
|
+
export declare const BUILTIN_ENFORCEMENT_POLICIES: readonly ['builtin:enforcement/normal', 'builtin:enforcement/plan-read-only'];
|
|
6
|
+
export declare const BUILTIN_INTEGRATIONS: readonly ['builtin:integration/mentor', 'builtin:integration/async-subagents', 'builtin:integration/background-task-control'];
|
|
7
|
+
export declare const builtinBlocks: readonly RegisteredBlock[];
|
|
8
|
+
export declare const builtinPolicies: readonly EnforcementPolicyDefinition[];
|
|
9
|
+
export declare const builtinIntegrations: readonly IntegrationDefinition[];
|
|
10
|
+
export declare const builtinProfiles: readonly ProfileDefinition[];
|
|
11
|
+
export declare const builtinProfileRegistry: ProfileRegistry;
|
|
12
|
+
/** Convenience lookup for consumers that only need reusable built-in blocks. */
|
|
13
|
+
export declare const builtinBlockRegistry: ReadonlyMap<string, RegisteredBlock>;
|
|
14
|
+
export declare const isBuiltinContextSource: (value: string) => boolean;
|
|
15
|
+
export declare const isBuiltinToolCapability: (value: string) => boolean;
|
|
16
|
+
export declare const isBuiltinBlockKind: (value: string) => value is BlockKind;
|
|
17
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/registry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EAET,2BAA2B,EAC3B,qBAAqB,EAErB,iBAAiB,EACjB,eAAe,EACf,eAAe,EAEhB,MAAM,YAAY,CAAC;AAKpB,oFAAoF;AACpF,eAAO,MAAM,uBAAuB,YAClC,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,CACV,CAAC;AAEX,eAAO,MAAM,yBAAyB,YACpC,2BAA2B,EAC3B,0BAA0B,EAC1B,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,CACN,CAAC;AAEX,eAAO,MAAM,4BAA4B,YACvC,4BAA4B,EAC5B,oCAAoC,CAC5B,CAAC;AAEX,eAAO,MAAM,oBAAoB,YAC/B,4BAA4B,EAC5B,qCAAqC,EACrC,6CAA6C,CACrC,CAAC;AA4BX,eAAO,MAAM,aAAa,EAAE,SAAS,eAAe,EAqBnD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SAAS,2BAA2B,EAQjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,SAAS,qBAAqB,EAI/D,CAAC;AAWF,eAAO,MAAM,eAAe,EAAE,SAAS,iBAAiB,EA6CvD,CAAC;AAKF,eAAO,MAAM,sBAAsB,EAAE,eAKpC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,sCAAgC,CAAC;AAElE,eAAO,MAAM,sBAAsB,UAAW,MAAM,KAAG,OACS,CAAC;AACjE,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,OACU,CAAC;AACnE,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,KAAK,IAAI,SACyD,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
const prompt = (name) => fs.readFileSync(path.join(import.meta.dirname, '../../prompts', name), 'utf8').trim();
|
|
4
|
+
/** Stable source kinds owned by the application. Profile data cannot invent one. */
|
|
5
|
+
export const BUILTIN_CONTEXT_SOURCES = [
|
|
6
|
+
'environment',
|
|
7
|
+
'workspace',
|
|
8
|
+
'project-instructions',
|
|
9
|
+
'skills-catalog',
|
|
10
|
+
'memory',
|
|
11
|
+
'session-browser',
|
|
12
|
+
'repository-guidance',
|
|
13
|
+
'profile-document',
|
|
14
|
+
];
|
|
15
|
+
export const BUILTIN_TOOL_CAPABILITIES = [
|
|
16
|
+
'filesystem-read-workspace',
|
|
17
|
+
'filesystem-read-external',
|
|
18
|
+
'filesystem-write',
|
|
19
|
+
'shell',
|
|
20
|
+
'web',
|
|
21
|
+
'memory',
|
|
22
|
+
'sessions',
|
|
23
|
+
'skills',
|
|
24
|
+
'mentor',
|
|
25
|
+
'subagents',
|
|
26
|
+
'background-tasks',
|
|
27
|
+
'user-interaction',
|
|
28
|
+
'code-context',
|
|
29
|
+
];
|
|
30
|
+
export const BUILTIN_ENFORCEMENT_POLICIES = [
|
|
31
|
+
'builtin:enforcement/normal',
|
|
32
|
+
'builtin:enforcement/plan-read-only',
|
|
33
|
+
];
|
|
34
|
+
export const BUILTIN_INTEGRATIONS = [
|
|
35
|
+
'builtin:integration/mentor',
|
|
36
|
+
'builtin:integration/async-subagents',
|
|
37
|
+
'builtin:integration/background-task-control',
|
|
38
|
+
];
|
|
39
|
+
const standardContext = {
|
|
40
|
+
kind: 'context',
|
|
41
|
+
sources: BUILTIN_CONTEXT_SOURCES.filter((source) => source !== 'profile-document').map((source) => ({
|
|
42
|
+
id: source,
|
|
43
|
+
source,
|
|
44
|
+
})),
|
|
45
|
+
};
|
|
46
|
+
const liteContext = {
|
|
47
|
+
kind: 'context',
|
|
48
|
+
sources: standardContext.sources.map((source) => source.source === 'project-instructions' ? { ...source, enabled: false } : source),
|
|
49
|
+
};
|
|
50
|
+
const standardTools = { kind: 'tools', include: [...BUILTIN_TOOL_CAPABILITIES] };
|
|
51
|
+
const liteTools = {
|
|
52
|
+
kind: 'tools',
|
|
53
|
+
include: [...BUILTIN_TOOL_CAPABILITIES],
|
|
54
|
+
exclude: ['mentor', 'subagents'],
|
|
55
|
+
};
|
|
56
|
+
const builtinInstructionBlock = (id, entry) => ({
|
|
57
|
+
id,
|
|
58
|
+
kind: 'instructions',
|
|
59
|
+
definition: entry,
|
|
60
|
+
});
|
|
61
|
+
export const builtinBlocks = [
|
|
62
|
+
builtinInstructionBlock('builtin:instructions/lite', {
|
|
63
|
+
kind: 'instructions',
|
|
64
|
+
identity: { content: prompt('lite.md') },
|
|
65
|
+
}),
|
|
66
|
+
builtinInstructionBlock('builtin:instructions/plan', {
|
|
67
|
+
kind: 'instructions',
|
|
68
|
+
workflow: { content: prompt('plan-mode-info.md') },
|
|
69
|
+
}),
|
|
70
|
+
builtinInstructionBlock('builtin:instructions/mentor', {
|
|
71
|
+
kind: 'instructions',
|
|
72
|
+
workflow: { content: prompt('mentor-addon.md') },
|
|
73
|
+
}),
|
|
74
|
+
builtinInstructionBlock('builtin:instructions/orchestrator', {
|
|
75
|
+
kind: 'instructions',
|
|
76
|
+
workflow: { content: prompt('orchestrator.md') },
|
|
77
|
+
}),
|
|
78
|
+
{ id: 'builtin:context/standard', kind: 'context', definition: standardContext },
|
|
79
|
+
{ id: 'builtin:context/lite', kind: 'context', definition: liteContext },
|
|
80
|
+
{ id: 'builtin:tools/standard', kind: 'tools', definition: standardTools },
|
|
81
|
+
{ id: 'builtin:tools/lite', kind: 'tools', definition: liteTools },
|
|
82
|
+
];
|
|
83
|
+
export const builtinPolicies = [
|
|
84
|
+
{ id: BUILTIN_ENFORCEMENT_POLICIES[0], kind: 'enforcement', denials: [] },
|
|
85
|
+
{
|
|
86
|
+
id: BUILTIN_ENFORCEMENT_POLICIES[1],
|
|
87
|
+
kind: 'enforcement',
|
|
88
|
+
denials: ['filesystem-mutation', 'shell-mutation', 'delegated-write', 'unknown-delegated-role'],
|
|
89
|
+
handoffRestriction: 'plan-read-only',
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
export const builtinIntegrations = [
|
|
93
|
+
{ id: BUILTIN_INTEGRATIONS[0], kind: 'integrations', availableByDefault: false },
|
|
94
|
+
{ id: BUILTIN_INTEGRATIONS[1], kind: 'integrations', availableByDefault: true },
|
|
95
|
+
{ id: BUILTIN_INTEGRATIONS[2], kind: 'integrations', availableByDefault: true },
|
|
96
|
+
];
|
|
97
|
+
const builtinProfile = (id, blocks, extendsId) => ({
|
|
98
|
+
schemaVersion: 1,
|
|
99
|
+
id,
|
|
100
|
+
version: '1.0.0',
|
|
101
|
+
name: id[0].toUpperCase() + id.slice(1),
|
|
102
|
+
blocks,
|
|
103
|
+
...(extendsId ? { extends: extendsId } : {}),
|
|
104
|
+
});
|
|
105
|
+
export const builtinProfiles = [
|
|
106
|
+
builtinProfile('standard', {
|
|
107
|
+
instructions: { kind: 'instructions', identity: { systemOwned: 'model-family-base' } },
|
|
108
|
+
context: { use: 'builtin:context/standard', kind: 'context' },
|
|
109
|
+
tools: { use: 'builtin:tools/standard', kind: 'tools' },
|
|
110
|
+
enforcement: { kind: 'enforcement', policies: [BUILTIN_ENFORCEMENT_POLICIES[0]] },
|
|
111
|
+
presentation: { kind: 'presentation', displayName: 'Standard', label: 'STD', color: 'white' },
|
|
112
|
+
}),
|
|
113
|
+
builtinProfile('lite', {
|
|
114
|
+
instructions: { kind: 'instructions', identity: { use: 'builtin:instructions/lite' } },
|
|
115
|
+
context: { use: 'builtin:context/lite', kind: 'context' },
|
|
116
|
+
tools: { use: 'builtin:tools/lite', kind: 'tools' },
|
|
117
|
+
presentation: { kind: 'presentation', displayName: 'Lite', label: 'LITE', color: 'cyan' },
|
|
118
|
+
}, 'builtin:standard'),
|
|
119
|
+
builtinProfile('plan', {
|
|
120
|
+
instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/plan' } },
|
|
121
|
+
enforcement: { kind: 'enforcement', policies: [BUILTIN_ENFORCEMENT_POLICIES[1]] },
|
|
122
|
+
presentation: { kind: 'presentation', displayName: 'Plan', label: 'PLAN', color: 'yellow' },
|
|
123
|
+
}, 'builtin:standard'),
|
|
124
|
+
builtinProfile('mentor', {
|
|
125
|
+
instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/mentor' } },
|
|
126
|
+
integrations: { kind: 'integrations', integrations: [{ use: BUILTIN_INTEGRATIONS[0], required: false }] },
|
|
127
|
+
presentation: { kind: 'presentation', displayName: 'Mentor', label: 'MENTOR', color: 'magenta' },
|
|
128
|
+
}, 'builtin:standard'),
|
|
129
|
+
builtinProfile('orchestrator', {
|
|
130
|
+
instructions: { kind: 'instructions', workflow: { use: 'builtin:instructions/orchestrator' } },
|
|
131
|
+
integrations: { kind: 'integrations', integrations: [{ use: BUILTIN_INTEGRATIONS[1], required: true }] },
|
|
132
|
+
presentation: { kind: 'presentation', displayName: 'Orchestrator', label: 'ORCH', color: 'blue' },
|
|
133
|
+
}, 'builtin:standard'),
|
|
134
|
+
];
|
|
135
|
+
const mapById = (values) => new Map(values.map((value) => [value.id, value]));
|
|
136
|
+
export const builtinProfileRegistry = {
|
|
137
|
+
profiles: new Map(builtinProfiles.map((profile) => [`builtin:${profile.id}`, profile])),
|
|
138
|
+
blocks: mapById(builtinBlocks),
|
|
139
|
+
policies: mapById(builtinPolicies),
|
|
140
|
+
integrations: mapById(builtinIntegrations),
|
|
141
|
+
};
|
|
142
|
+
/** Convenience lookup for consumers that only need reusable built-in blocks. */
|
|
143
|
+
export const builtinBlockRegistry = builtinProfileRegistry.blocks;
|
|
144
|
+
export const isBuiltinContextSource = (value) => BUILTIN_CONTEXT_SOURCES.includes(value);
|
|
145
|
+
export const isBuiltinToolCapability = (value) => BUILTIN_TOOL_CAPABILITIES.includes(value);
|
|
146
|
+
export const isBuiltinBlockKind = (value) => ['instructions', 'context', 'tools', 'enforcement', 'integrations', 'presentation', 'requirements'].includes(value);
|
|
147
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../source/services/profiles/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAa7B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAU,EAAE,CACtC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;AAExF,oFAAoF;AACpF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,aAAa;IACb,WAAW;IACX,sBAAsB;IACtB,gBAAgB;IAChB,QAAQ;IACR,iBAAiB;IACjB,qBAAqB;IACrB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,2BAA2B;IAC3B,0BAA0B;IAC1B,kBAAkB;IAClB,OAAO;IACP,KAAK;IACL,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,4BAA4B;IAC5B,oCAAoC;CAC5B,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,4BAA4B;IAC5B,qCAAqC;IACrC,6CAA6C;CACrC,CAAC;AAEX,MAAM,eAAe,GAAiB;IACpC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,kBAAkB,CAAC,C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
|
+
import type { ProfileDefinition, ProfileRegistry, ResolvedProfile, ResolveOptions } from './types.js';
|
|
2
|
+
export declare function resolveProfile(profileId: string, registry?: ProfileRegistry, options?: ResolveOptions): ResolvedProfile;
|
|
3
|
+
export declare function resolveProfile(profileId: string, options?: ResolveOptions): ResolvedProfile;
|
|
4
|
+
export declare const createProfileRegistry: (input: {
|
|
5
|
+
profiles: Iterable<ProfileDefinition> | ReadonlyMap<string, ProfileDefinition>;
|
|
6
|
+
blocks?: Iterable<unknown> | ReadonlyMap<string, unknown>;
|
|
7
|
+
policies?: Iterable<unknown> | ReadonlyMap<string, unknown>;
|
|
8
|
+
integrations?: Iterable<unknown> | ReadonlyMap<string, unknown>;
|
|
9
|
+
}) => ProfileRegistry;
|
|
10
|
+
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../source/services/profiles/resolver.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAQV,iBAAiB,EACjB,eAAe,EAIf,eAAe,EAGf,cAAc,EAEf,MAAM,YAAY,CAAC;AA0rBpB,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,eAAe,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,eAAe,CAAC;AACnB,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,eAAe,CAAC;AAW7F,eAAO,MAAM,qBAAqB,UAAW;IAC3C,QAAQ,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/E,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1D,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjE,KAAG,eA6CH,CAAC"}
|