@wrongstack/core 0.282.1 → 0.283.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-subagent-runner-DCczSoQj.d.ts → agent-subagent-runner-BsuWhB28.d.ts} +2 -2
- package/dist/coordination/index.d.ts +12 -12
- package/dist/coordination/index.js +315 -41
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +12 -12
- package/dist/defaults/index.js +316 -53
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-BOv8h6I1.d.ts → events-KmxSmvho.d.ts} +5 -0
- package/dist/execution/index.d.ts +7 -7
- package/dist/extension/index.d.ts +2 -2
- package/dist/{global-mailbox-MDDFhLYh.d.ts → global-mailbox-rWVt8YlO.d.ts} +70 -7
- package/dist/{goal-store-BEmDmSKF.d.ts → goal-store-8owBXJT2.d.ts} +1 -1
- package/dist/hq/index.d.ts +3 -3
- package/dist/hq/index.js +106 -32
- package/dist/hq/index.js.map +1 -1
- package/dist/{index-Dd-PJJ8A.d.ts → index-BhCteHAF.d.ts} +1 -1
- package/dist/index.d.ts +289 -19
- package/dist/index.js +919 -110
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +1 -1
- package/dist/kernel/index.d.ts +4 -4
- package/dist/kernel/index.js.map +1 -1
- package/dist/models/index.js +105 -42
- package/dist/models/index.js.map +1 -1
- package/dist/{multi-agent-coordinator-BRqtpn-a.d.ts → multi-agent-coordinator-CrjeTB9i.d.ts} +1 -1
- package/dist/{null-fleet-bus-BkptvIVo.d.ts → null-fleet-bus-D4e9R7Qc.d.ts} +9 -4
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-BXECuOVG.d.ts → parallel-eternal-engine-iY2uxocj.d.ts} +4 -4
- package/dist/{provider-runner-CJtCs1Rw.d.ts → provider-runner-oQhDaZmH.d.ts} +1 -1
- package/dist/sdd/index.d.ts +4 -4
- package/dist/sdd/index.js.map +1 -1
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js.map +1 -1
- package/dist/{todos-checkpoint-Bw83WMh9.d.ts → todos-checkpoint-BwCrj4Cb.d.ts} +1 -1
- package/dist/{tool-executor-4mWN2vHW.d.ts → tool-executor-kElSEgO0.d.ts} +4 -4
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +105 -45
- package/dist/types/index.js.map +1 -1
- package/dist/{worktree-manager-BrtjUFYk.d.ts → worktree-manager-BjyAW30D.d.ts} +1 -1
- package/instructions/modes/audit-lite.md +13 -0
- package/instructions/modes/debug-lite.md +13 -0
- package/instructions/modes/plan-lite.md +14 -0
- package/instructions/modes/refactor-lite.md +13 -0
- package/instructions/modes/research-lite.md +13 -0
- package/instructions/modes/review-lite.md +14 -0
- package/instructions/modes/test-lite.md +13 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-B-Fi9L6I.js';
|
|
2
2
|
import { i as ContentBlock, u as ConversationState, k as SessionStore, S as SessionEvent, j as SessionMetadata, b as SessionWriter, v as ResumedSession, w as SessionData, x as SessionSummary, y as TodoItem } from './tool-LVSLiE1s.js';
|
|
3
|
-
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './events-
|
|
3
|
+
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './events-KmxSmvho.js';
|
|
4
4
|
import { C as Config, i as ConfigLoader, j as SyncConfig, k as ConfigStore } from './config-DkCbA3Bw.js';
|
|
5
5
|
import { S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
6
6
|
import { W as WstackPaths } from './wstack-paths-C3K40Qst.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { d as Context, c as Request, P as Provider, h as ProviderError, g as Tool, z as ToolUseBlock, A as ToolResultBlock } from './tool-LVSLiE1s.js';
|
|
2
|
-
import { E as EventBus } from './events-
|
|
2
|
+
import { E as EventBus } from './events-KmxSmvho.js';
|
|
3
3
|
import { M as MiddlewareHandler, b as Middleware } from './pipeline-ixSFe5jg.js';
|
|
4
4
|
import { S as SessionEventBridge } from './session-event-bridge-Bkp7ORfc.js';
|
|
5
5
|
import { C as Compactor, a as CompactReport } from './compactor-BxddyCFu.js';
|
|
6
6
|
import { l as ContextWindowAggressiveOn, m as ContextWindowPolicy, M as ModelsRegistry, C as Config } from './config-DkCbA3Bw.js';
|
|
7
|
-
import { A as Agent, D as DoneCondition } from './agent-subagent-runner-
|
|
8
|
-
import { R as RunResult, S as SystemPromptContributor, A as AgentPipelines, T as ToolCallPipelinePayload, U as UserInputPayload, f as ToolExecutorOptions, g as ToolExecutorStrategy, h as ToolBatchResult } from './index-
|
|
9
|
-
import { D as DesignStack, a as DesignStudioState, b as DesignKitLoader, c as DesignKitManifest, d as DesignKitEntry, e as DesignKitTokens } from './parallel-eternal-engine-
|
|
7
|
+
import { A as Agent, D as DoneCondition } from './agent-subagent-runner-BsuWhB28.js';
|
|
8
|
+
import { R as RunResult, S as SystemPromptContributor, A as AgentPipelines, T as ToolCallPipelinePayload, U as UserInputPayload, f as ToolExecutorOptions, g as ToolExecutorStrategy, h as ToolBatchResult } from './index-BhCteHAF.js';
|
|
9
|
+
import { D as DesignStack, a as DesignStudioState, b as DesignKitLoader, c as DesignKitManifest, d as DesignKitEntry, e as DesignKitTokens } from './parallel-eternal-engine-iY2uxocj.js';
|
|
10
10
|
import { E as ErrorHandler, a as RecoveryDecision, R as RetryPolicy } from './retry-policy-V67lBOJz.js';
|
|
11
11
|
import { M as MessageSelector } from './selector-Bx2HgUkU.js';
|
|
12
12
|
import { S as SkillLoader, a as SkillManifest, b as SkillEntry } from './skill-DHniprNl.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export { B as AgentError, q as CacheTtl, r as Capabilities, D as CompletedWorkEvidence, E as CompletedWorkSource, F as ConfigError, i as ContentBlock, G as ContextEvidenceState, H as ContextFileEvidence, K as ContextIntentEvidence, L as ContextRepeatedReadEvidence, N as ERROR_CODES, O as ErrorCode, Q as ErrorSeverity, V as ErrorSubsystem, W as FetchError, X as FileSnapshot, Y as FsError, Z as ImageBlock, J as JSONSchema, _ as JsonSchemaSpec, M as Message, $ as MessageRole, a0 as ParseError, f as Permission, a1 as PluginError, P as Provider, h as ProviderError, a2 as ProviderErrorBody, a as ReasoningConfig, p as ReasoningEffort, R as ReasoningRequest, c as Request, a4 as RequestCacheControl, e as Response, a5 as ResponseFormat, v as ResumedSession, n as RiskTier, a7 as SafetySetting, a8 as SddError, w as SessionData, a9 as SessionError, S as SessionEvent, j as SessionMetadata, k as SessionStore, x as SessionSummary, b as SessionWriter, aa as SideEffect, ab as SideEffectRisk, ae as StopReason, af as StreamEvent, ag as StreamHangError, s as TextBlock, ah as ThinkingBlock, g as Tool, ai as ToolCallContext, aj as ToolError, l as ToolErrorCategory, ak as ToolErrorInfo, al as ToolEvidenceStatus, am as ToolFinalEvent, an as ToolIconId, o as ToolOutputMetadata, m as ToolProgressEvent, A as ToolResultBlock, ao as ToolStreamEvent, z as ToolUseBlock, ap as ToolValidationError, U as Usage, aq as WrongStackError, as as isAgentError, at as isConfigError, au as isFetchError, av as isFsError, aw as isImageBlock, ax as isParseError, ay as isPluginError, az as isSddError, aA as isSessionError, aB as isTextBlock, aC as isToolError, aD as isToolResultBlock, aE as isToolUseBlock, aF as isToolValidationError, aG as isWrongStackError, aH as toWrongStackError } from '../tool-LVSLiE1s.js';
|
|
2
|
-
export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-
|
|
2
|
+
export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-oQhDaZmH.js';
|
|
3
3
|
export { A as AdaptiveConcurrencyConfig, q as AutonomyConfig, r as CONTEXT_WINDOW_MODES, s as CircuitBreakerRuntimeConfig, C as Config, i as ConfigLoader, k as ConfigStore, t as ContextConfig, l as ContextWindowAggressiveOn, u as ContextWindowConfigLike, v as ContextWindowMode, w as ContextWindowModeId, m as ContextWindowPolicy, x as ContextWindowThresholds, y as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, z as DEFAULT_TUI_THINKING_WORD, E as ExecDangerConfig, B as ExecToolConfig, G as FeaturesConfig, F as FleetConfig, J as FleetSupervisorConfig, g as HookEntry, H as HookEvent, o as HookInput, f as HookMatcher, p as HookOutcome, K as HqClientConfig, I as InProcessHook, L as IndexingConfig, N as InputHistoryConfig, O as LaunchConfig, Q as LogConfig, U as MAX_TUI_THINKING_WORD_LENGTH, b as MCPServerConfig, a as ModelMatrixEntry, V as ModelRuntimeCacheConfig, h as ModelRuntimeConfig, X as ModelRuntimeParametersConfig, Y as ModelRuntimeReasoningConfig, e as ModelsDevModel, c as ModelsDevPayload, Z as ModelsDevProvider, M as ModelsRegistry, _ as PluginConfig, $ as ProviderApiKey, P as ProviderConfig, R as ResolvedModel, d as ResolvedProvider, a0 as SessionLoggingConfig, S as ShellHook, a1 as SkillsConfig, a2 as SyncCategory, j as SyncConfig, n as TokenSavingTier, a3 as ToolDescriptionMode, a4 as ToolDescriptionModeConfig, T as ToolResultRenderMode, a5 as ToolResultRenderModeConfig, a6 as ToolsConfig, W as WireFamily, a7 as formatContextWindowModeList, a8 as getContextWindowMode, a9 as isContextWindowModeId, aa as listContextWindowModes, ab as normalizeTokenSavingTier, ac as normalizeTuiThinkingWord, ad as resolveContextWindowPolicy } from '../config-DkCbA3Bw.js';
|
|
4
4
|
export { a as CompactReport, C as Compactor } from '../compactor-BxddyCFu.js';
|
|
5
5
|
export { a as PermissionDecision, P as PermissionPolicy, T as TrustPolicy } from '../permission-B6YAtNFz.js';
|
|
6
6
|
export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from '../session-rewinder-C9HnMkhP.js';
|
|
7
7
|
export { a as AddAttachmentInput, c as Attachment, d as AttachmentKind, e as AttachmentMeta, b as AttachmentRef, A as AttachmentStore, D as DefaultSessionReader } from '../session-reader-B-Fi9L6I.js';
|
|
8
8
|
export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CIRCUIT_BREAKER_CONFIG, b as DEFAULT_CONTEXT_CONFIG, c as DEFAULT_SESSION_LOGGING_CONFIG, d as DEFAULT_SESSION_PRUNE_DAYS, e as DEFAULT_TOOLS_CONFIG } from '../default-config-Buho8yge.js';
|
|
9
|
-
export { o as MEMORY_TYPE_LABELS, p as MemoryClearedPayload, q as MemoryConsolidatedPayload, b as MemoryEntry, r as MemoryForgottenPayload, s as MemoryPriority, d as MemoryRelevanceContext, t as MemoryRememberedPayload, M as MemoryScope, c as MemoryStore, u as MemoryType, S as ScoredEntry } from '../events-
|
|
9
|
+
export { o as MEMORY_TYPE_LABELS, p as MemoryClearedPayload, q as MemoryConsolidatedPayload, b as MemoryEntry, r as MemoryForgottenPayload, s as MemoryPriority, d as MemoryRelevanceContext, t as MemoryRememberedPayload, M as MemoryScope, c as MemoryStore, u as MemoryType, S as ScoredEntry } from '../events-KmxSmvho.js';
|
|
10
10
|
export { b as SkillEntry, S as SkillLoader, a as SkillManifest } from '../skill-DHniprNl.js';
|
|
11
11
|
import { f as PromptCategory } from '../prompt-DLd35n4Q.js';
|
|
12
12
|
export { B as BUILTIN_PROMPT_CATEGORIES, d as BuiltinPromptCategory, e as PROMPT_CATEGORY_LABELS, c as PromptCategoryCount, a as PromptEntry, P as PromptLoader, g as PromptManifest, h as PromptManifestRef, b as PromptSearchOptions, i as PromptSource, j as PromptVariable, k as isBuiltinCategory } from '../prompt-DLd35n4Q.js';
|
|
13
|
-
import { I as IterationStage, l as ParallelIterationStage } from '../parallel-eternal-engine-
|
|
14
|
-
export { f as DESIGN_STACKS, d as DesignKitEntry, b as DesignKitLoader, c as DesignKitManifest, e as DesignKitTokens, D as DesignStack, a as DesignStudioState, g as DesignTokenSet, m as isDesignStack } from '../parallel-eternal-engine-
|
|
13
|
+
import { I as IterationStage, l as ParallelIterationStage } from '../parallel-eternal-engine-iY2uxocj.js';
|
|
14
|
+
export { f as DESIGN_STACKS, d as DesignKitEntry, b as DesignKitLoader, c as DesignKitManifest, e as DesignKitTokens, D as DesignStack, a as DesignStudioState, g as DesignTokenSet, m as isDesignStack } from '../parallel-eternal-engine-iY2uxocj.js';
|
|
15
15
|
export { B as BuildContext, c as ModelCapabilities, a as Renderer, S as SystemPromptBuilder } from '../pipeline-ixSFe5jg.js';
|
|
16
16
|
export { I as InputReader, P as PromptOption } from '../input-reader-E-ffP2ee.js';
|
|
17
|
-
export { h as AwaitAnyResult, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, q as MCPRegistryView, t as MetricsSinkView, b as MultiAgentConfig, M as MultiAgentCoordinator, x as Plugin, P as PluginAPI, v as PluginCapabilities, w as PluginDependency, u as PluginLLM, V as PluginLLMOptions, W as PluginLLMResult, n as PluginPipelines, a6 as ProviderFactory, p as ProviderRegistryView, s as SessionWriterView, m as SlashCommand, r as SlashCommandRegistryView, d as SpawnResult, S as SubagentConfig, Y as SubagentContext, Z as SubagentError, _ as SubagentErrorKind, $ as SubagentRunContext, a0 as SubagentRunOutcome, c as SubagentRunner, a3 as TaskDelegation, g as TaskResult, T as TaskSpec, o as ToolRegistryView } from '../agent-subagent-runner-
|
|
17
|
+
export { h as AwaitAnyResult, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, q as MCPRegistryView, t as MetricsSinkView, b as MultiAgentConfig, M as MultiAgentCoordinator, x as Plugin, P as PluginAPI, v as PluginCapabilities, w as PluginDependency, u as PluginLLM, V as PluginLLMOptions, W as PluginLLMResult, n as PluginPipelines, a6 as ProviderFactory, p as ProviderRegistryView, s as SessionWriterView, m as SlashCommand, r as SlashCommandRegistryView, d as SpawnResult, S as SubagentConfig, Y as SubagentContext, Z as SubagentError, _ as SubagentErrorKind, $ as SubagentRunContext, a0 as SubagentRunOutcome, c as SubagentRunner, a3 as TaskDelegation, g as TaskResult, T as TaskSpec, o as ToolRegistryView } from '../agent-subagent-runner-BsuWhB28.js';
|
|
18
18
|
export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest, M as ModeStore } from '../mode-CZlO9iU1.js';
|
|
19
19
|
export { D as DEFAULT_SPEC_TEMPLATE, S as SpecAnalysis, a as SpecApiEndpoint, b as SpecRequirement, c as SpecSection, d as SpecSectionType, e as SpecStatus, f as SpecTemplate, g as SpecValidationResult, h as Specification } from '../spec-TBi3Jr6T.js';
|
|
20
20
|
export { C as CriticalPathResult, S as SerializableTaskGraph, f as SerializableTaskGraphNodes, g as SerializedTaskGraph, h as TaskAssignment, i as TaskDependency, j as TaskEdge, k as TaskFilter, d as TaskGraph, e as TaskNode, a as TaskPriority, c as TaskProgress, l as TaskSort, b as TaskStatus, T as TaskType, m as computeTaskProgress, n as deserializeTaskGraph, o as findCriticalPath, s as serializeTaskGraph, t as topologicalSort } from '../task-graph-CH3acNQ7.js';
|
|
21
21
|
export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, H as HealthRegistry, c as HealthStatus, d as MetricLabels, e as MetricSeries, M as MetricsSink, f as MetricsSnapshot, S as Span, T as Tracer } from '../observability-D-HZN_mF.js';
|
|
22
|
-
export { S as SystemPromptContributor } from '../index-
|
|
22
|
+
export { S as SystemPromptContributor } from '../index-BhCteHAF.js';
|
|
23
23
|
import '../logger-B63L5bTg.js';
|
|
24
24
|
import '../retry-policy-V67lBOJz.js';
|
|
25
|
-
import '../goal-store-
|
|
26
|
-
import '../multi-agent-coordinator-
|
|
25
|
+
import '../goal-store-8owBXJT2.js';
|
|
26
|
+
import '../multi-agent-coordinator-CrjeTB9i.js';
|
|
27
27
|
import 'node:events';
|
|
28
28
|
import '../mailbox-types-BGZWrYTJ.js';
|
|
29
29
|
import '../secret-scrubber-3MHDDAtm.js';
|
package/dist/types/index.js
CHANGED
|
@@ -705,107 +705,170 @@ var DEFAULT_MODES = [
|
|
|
705
705
|
{
|
|
706
706
|
id: "default",
|
|
707
707
|
name: "Default",
|
|
708
|
-
description: "
|
|
708
|
+
description: "Balanced general-purpose mode; use when no special token/coverage trade-off is needed",
|
|
709
709
|
prompt: "",
|
|
710
|
-
tags: ["general"]
|
|
710
|
+
tags: ["general", "balanced"]
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
id: "brief",
|
|
714
|
+
name: "Brief",
|
|
715
|
+
description: "Ultra-compact responses for low-context, high-speed work",
|
|
716
|
+
prompt: modePrompt("brief"),
|
|
717
|
+
tags: ["lite", "fast", "concise", "token-saving"],
|
|
718
|
+
toolPreferences: ["read", "edit", "bash"],
|
|
719
|
+
suggestedSkills: []
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
id: "review-lite",
|
|
723
|
+
name: "Review Lite",
|
|
724
|
+
description: "Token-saving code review: changed files only, top correctness/security risks",
|
|
725
|
+
prompt: modePrompt("review-lite"),
|
|
726
|
+
tags: ["lite", "review", "quality", "token-saving"],
|
|
727
|
+
toolPreferences: ["git", "diff", "read", "grep"],
|
|
728
|
+
suggestedSkills: ["bug-hunter", "typescript-strict"]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
id: "audit-lite",
|
|
732
|
+
name: "Audit Lite",
|
|
733
|
+
description: "Token-saving security triage for a small diff or named file",
|
|
734
|
+
prompt: modePrompt("audit-lite"),
|
|
735
|
+
tags: ["lite", "security", "audit", "token-saving"],
|
|
736
|
+
toolPreferences: ["grep", "read", "git"],
|
|
737
|
+
suggestedSkills: ["security-scanner"]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
id: "plan-lite",
|
|
741
|
+
name: "Plan Lite",
|
|
742
|
+
description: "Token-saving planning: 3-6 actionable steps, minimal design debate",
|
|
743
|
+
prompt: modePrompt("plan-lite"),
|
|
744
|
+
tags: ["lite", "planning", "architecture", "token-saving"],
|
|
745
|
+
toolPreferences: ["tree", "glob", "read", "grep"],
|
|
746
|
+
suggestedSkills: ["refactor-planner"]
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
id: "debug-lite",
|
|
750
|
+
name: "Debug Lite",
|
|
751
|
+
description: "Token-saving bug triage: one hypothesis, nearest evidence, narrow check",
|
|
752
|
+
prompt: modePrompt("debug-lite"),
|
|
753
|
+
tags: ["lite", "debug", "triage", "token-saving"],
|
|
754
|
+
toolPreferences: ["read", "grep", "test", "logs"],
|
|
755
|
+
suggestedSkills: ["bug-hunter"]
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
id: "test-lite",
|
|
759
|
+
name: "Test Lite",
|
|
760
|
+
description: "Token-saving tests: one focused regression or narrow verification target",
|
|
761
|
+
prompt: modePrompt("test-lite"),
|
|
762
|
+
tags: ["lite", "testing", "qa", "token-saving"],
|
|
763
|
+
toolPreferences: ["test", "read", "grep"],
|
|
764
|
+
suggestedSkills: ["testing"]
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
id: "refactor-lite",
|
|
768
|
+
name: "Refactor Lite",
|
|
769
|
+
description: "Token-saving cleanup: small scoped behavior-preserving changes",
|
|
770
|
+
prompt: modePrompt("refactor-lite"),
|
|
771
|
+
tags: ["lite", "refactor", "token-saving"],
|
|
772
|
+
toolPreferences: ["read", "edit", "test"],
|
|
773
|
+
suggestedSkills: ["typescript-strict"]
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
id: "research-lite",
|
|
777
|
+
name: "Research Lite",
|
|
778
|
+
description: "Token-saving web research: one search, one authoritative fetch, short answer",
|
|
779
|
+
prompt: modePrompt("research-lite"),
|
|
780
|
+
tags: ["lite", "research", "web", "token-saving"],
|
|
781
|
+
toolPreferences: ["search", "fetch"],
|
|
782
|
+
suggestedSkills: ["research-web"]
|
|
711
783
|
},
|
|
712
784
|
{
|
|
713
785
|
id: "code-reviewer",
|
|
714
|
-
name: "
|
|
715
|
-
description: "
|
|
786
|
+
name: "Review Deep",
|
|
787
|
+
description: "Comprehensive code review across contracts, edge cases, lifecycle, errors, concurrency",
|
|
716
788
|
prompt: modePrompt("code-reviewer"),
|
|
717
|
-
tags: ["review", "quality", "security"],
|
|
789
|
+
tags: ["deep", "review", "quality", "security"],
|
|
718
790
|
toolPreferences: ["read", "grep", "git", "diff", "test"],
|
|
719
791
|
suggestedSkills: ["bug-hunter", "security-scanner", "typescript-strict", "testing"]
|
|
720
792
|
},
|
|
721
793
|
{
|
|
722
794
|
id: "code-auditor",
|
|
723
|
-
name: "
|
|
724
|
-
description: "
|
|
795
|
+
name: "Audit Deep",
|
|
796
|
+
description: "Comprehensive security audit with category coverage and exploitability notes",
|
|
725
797
|
prompt: modePrompt("code-auditor"),
|
|
726
|
-
tags: ["security", "audit", "compliance"],
|
|
798
|
+
tags: ["deep", "security", "audit", "compliance"],
|
|
727
799
|
toolPreferences: ["grep", "read", "audit", "bash"],
|
|
728
800
|
suggestedSkills: ["security-scanner", "bug-hunter", "audit-log"]
|
|
729
801
|
},
|
|
730
802
|
{
|
|
731
803
|
id: "architect",
|
|
732
|
-
name: "
|
|
733
|
-
description: "
|
|
804
|
+
name: "Architecture Deep",
|
|
805
|
+
description: "Comprehensive architecture and cross-module contract analysis",
|
|
734
806
|
prompt: modePrompt("architect"),
|
|
735
|
-
tags: ["architecture", "design", "scalability"],
|
|
807
|
+
tags: ["deep", "architecture", "design", "scalability"],
|
|
736
808
|
toolPreferences: ["read", "glob", "tree", "diff"],
|
|
737
809
|
suggestedSkills: ["api-design", "refactor-planner", "node-modern", "docker-deploy"]
|
|
738
810
|
},
|
|
739
811
|
{
|
|
740
812
|
id: "debugger",
|
|
741
|
-
name: "
|
|
742
|
-
description: "
|
|
813
|
+
name: "Debug Deep",
|
|
814
|
+
description: "Comprehensive root-cause analysis with traces, logs, assumptions, and verification",
|
|
743
815
|
prompt: modePrompt("debugger"),
|
|
744
|
-
tags: ["debug", "investigation", "error-resolution"],
|
|
816
|
+
tags: ["deep", "debug", "investigation", "error-resolution"],
|
|
745
817
|
toolPreferences: ["read", "grep", "bash", "logs", "test"],
|
|
746
818
|
suggestedSkills: ["bug-hunter", "audit-log", "observability"]
|
|
747
819
|
},
|
|
748
820
|
{
|
|
749
821
|
id: "tester",
|
|
750
|
-
name: "
|
|
751
|
-
description: "
|
|
822
|
+
name: "Test Deep",
|
|
823
|
+
description: "Comprehensive QA mode for coverage, boundaries, isolation, and integration gaps",
|
|
752
824
|
prompt: modePrompt("tester"),
|
|
753
|
-
tags: ["testing", "qa", "quality"],
|
|
825
|
+
tags: ["deep", "testing", "qa", "quality"],
|
|
754
826
|
toolPreferences: ["read", "grep", "test", "bash"],
|
|
755
827
|
suggestedSkills: ["testing", "bug-hunter", "typescript-strict"]
|
|
756
828
|
},
|
|
757
829
|
{
|
|
758
830
|
id: "devops",
|
|
759
|
-
name: "DevOps
|
|
760
|
-
description: "
|
|
831
|
+
name: "DevOps Deep",
|
|
832
|
+
description: "Comprehensive infrastructure, deployment, observability, and operations review",
|
|
761
833
|
prompt: modePrompt("devops"),
|
|
762
|
-
tags: ["devops", "infrastructure", "operations"],
|
|
834
|
+
tags: ["deep", "devops", "infrastructure", "operations"],
|
|
763
835
|
toolPreferences: ["read", "bash", "grep", "logs", "git"],
|
|
764
836
|
suggestedSkills: ["docker-deploy", "observability", "security-scanner"]
|
|
765
837
|
},
|
|
766
838
|
{
|
|
767
839
|
id: "refactorer",
|
|
768
|
-
name: "
|
|
769
|
-
description: "
|
|
840
|
+
name: "Refactor Deep",
|
|
841
|
+
description: "Comprehensive modernization/refactor mode with contracts and verification discipline",
|
|
770
842
|
prompt: modePrompt("refactorer"),
|
|
771
|
-
tags: ["refactor", "modernization", "improvement"],
|
|
843
|
+
tags: ["deep", "refactor", "modernization", "improvement"],
|
|
772
844
|
toolPreferences: ["read", "edit", "test", "git", "grep"],
|
|
773
845
|
suggestedSkills: ["refactor-planner", "typescript-strict", "node-modern", "testing"]
|
|
774
846
|
},
|
|
775
847
|
{
|
|
776
848
|
id: "ui-design",
|
|
777
|
-
name: "UI Design",
|
|
778
|
-
description: "
|
|
849
|
+
name: "UI Design Deep",
|
|
850
|
+
description: "Comprehensive design-first frontend/mobile UI work with kit, tokens, and accessibility",
|
|
779
851
|
prompt: modePrompt("ui-design"),
|
|
780
|
-
tags: ["ui", "frontend", "mobile", "design"],
|
|
852
|
+
tags: ["deep", "ui", "frontend", "mobile", "design"],
|
|
781
853
|
toolPreferences: ["design", "write", "edit", "read", "scaffold"],
|
|
782
854
|
suggestedSkills: ["react-modern"]
|
|
783
855
|
},
|
|
784
|
-
{
|
|
785
|
-
id: "brief",
|
|
786
|
-
name: "Brief",
|
|
787
|
-
description: "Fast, no-nonsense \u2014 get to the point",
|
|
788
|
-
prompt: modePrompt("brief"),
|
|
789
|
-
tags: ["fast", "concise", "direct"],
|
|
790
|
-
toolPreferences: ["read", "edit", "bash"],
|
|
791
|
-
suggestedSkills: []
|
|
792
|
-
},
|
|
793
856
|
{
|
|
794
857
|
id: "teach",
|
|
795
|
-
name: "Teach",
|
|
796
|
-
description: "Mentor mode
|
|
858
|
+
name: "Teach Deep",
|
|
859
|
+
description: "Mentor mode with explanations, mental models, trade-offs, and takeaways",
|
|
797
860
|
prompt: modePrompt("teach"),
|
|
798
|
-
tags: ["teaching", "mentor", "learning"],
|
|
861
|
+
tags: ["deep", "teaching", "mentor", "learning"],
|
|
799
862
|
toolPreferences: ["read", "edit", "explain"],
|
|
800
863
|
suggestedSkills: ["prompt-engineering", "skill-creator", "node-modern", "typescript-strict"]
|
|
801
864
|
},
|
|
802
865
|
{
|
|
803
866
|
id: "research-web",
|
|
804
|
-
name: "Research
|
|
805
|
-
description: "
|
|
867
|
+
name: "Research Deep",
|
|
868
|
+
description: "Comprehensive current-data research with cross-checking and reusable findings",
|
|
806
869
|
prompt: modePrompt("research-web"),
|
|
807
|
-
tags: ["research", "web", "current-data", "up-to-date"],
|
|
808
|
-
toolPreferences: ["search
|
|
870
|
+
tags: ["deep", "research", "web", "current-data", "up-to-date"],
|
|
871
|
+
toolPreferences: ["search", "fetch", "context_manager"],
|
|
809
872
|
suggestedSkills: ["research-web", "tech-stack", "node-modern", "security-scanner", "react-modern"]
|
|
810
873
|
}
|
|
811
874
|
];
|
|
@@ -868,9 +931,6 @@ function isContextWindowModeId(id) {
|
|
|
868
931
|
function resolveContextWindowPolicy(config = {}, overrideMode) {
|
|
869
932
|
const requested = overrideMode ?? config.mode ?? DEFAULT_CONTEXT_WINDOW_MODE_ID;
|
|
870
933
|
const mode = getContextWindowMode(requested) ?? expectDefined(getContextWindowMode(DEFAULT_CONTEXT_WINDOW_MODE_ID));
|
|
871
|
-
if (mode.id !== DEFAULT_CONTEXT_WINDOW_MODE_ID) {
|
|
872
|
-
return mode;
|
|
873
|
-
}
|
|
874
934
|
return {
|
|
875
935
|
...mode,
|
|
876
936
|
thresholds: {
|