@wrongstack/core 0.281.1 → 0.282.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-DyOSK2Wy.d.ts → agent-subagent-runner-Dksf0QVU.d.ts} +15 -4
- package/dist/{config-CN-vdDEI.d.ts → config-BCAEJicb.d.ts} +33 -1
- package/dist/coordination/index.d.ts +147 -48
- package/dist/coordination/index.js +1244 -274
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +18 -18
- package/dist/defaults/index.js +991 -173
- package/dist/defaults/index.js.map +1 -1
- package/dist/{director-state-BfeCUbmk.d.ts → director-state-B_GPa78Q.d.ts} +14 -0
- package/dist/{events-C5hLU0AT.d.ts → events-CovDylaH.d.ts} +2 -1
- package/dist/execution/index.d.ts +10 -10
- package/dist/execution/index.js +69 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +4 -4
- package/dist/{global-mailbox-CHM1QkCi.d.ts → global-mailbox-CNfgvRw3.d.ts} +1 -1
- package/dist/{goal-store-BLGZq16t.d.ts → goal-store-CBd749M4.d.ts} +1 -1
- package/dist/hq/index.d.ts +4 -4
- package/dist/{index-C1E-_71T.d.ts → index-D5HB7WkV.d.ts} +4 -3
- package/dist/index.d.ts +3005 -2704
- package/dist/index.js +51869 -49930
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +3 -3
- package/dist/kernel/index.d.ts +7 -7
- package/dist/kernel/index.js.map +1 -1
- package/dist/{mcp-servers-EKRAcJDi.d.ts → mcp-servers-DJYwZXyH.d.ts} +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +111 -21
- package/dist/models/index.js.map +1 -1
- package/dist/{multi-agent-coordinator-IpHCuHUa.d.ts → multi-agent-coordinator-4DC31QWu.d.ts} +1 -1
- package/dist/{null-fleet-bus-ZBkKGR9j.d.ts → null-fleet-bus-DuvA8PIR.d.ts} +74 -6
- package/dist/observability/index.d.ts +1 -1
- package/dist/{parallel-eternal-engine-Cc2CNgmv.d.ts → parallel-eternal-engine-BwcA0bAt.d.ts} +4 -4
- package/dist/{pipeline-E7_jqGyV.d.ts → pipeline-DM-CPTUs.d.ts} +1 -1
- package/dist/{provider-model-resolve-KgIdiEQ6.d.ts → provider-model-resolve-hNUbewMd.d.ts} +1 -1
- package/dist/{provider-runner-DxWXNHL1.d.ts → provider-runner-Bz4GyUqo.d.ts} +1 -1
- package/dist/sdd/index.d.ts +6 -6
- package/dist/sdd/index.js +76 -2
- package/dist/sdd/index.js.map +1 -1
- package/dist/{session-event-bridge-vA2fLV58.d.ts → session-event-bridge-Bkp7ORfc.d.ts} +2 -2
- package/dist/skills/index.d.ts +84 -84
- package/dist/storage/index.d.ts +168 -168
- package/dist/storage/index.js +19 -7
- package/dist/storage/index.js.map +1 -1
- package/dist/{todos-checkpoint-B1QVkoa8.d.ts → todos-checkpoint-addCdQ9f.d.ts} +2 -2
- package/dist/{tool-executor-BWtYwuPI.d.ts → tool-executor-B3spV_Q6.d.ts} +7 -7
- package/dist/tools/index.d.ts +1 -1
- package/dist/types/index.d.ts +33 -33
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +113 -113
- package/dist/{worktree-manager-C6CIilTT.d.ts → worktree-manager-BBXdJq-Y.d.ts} +1 -1
- package/instructions/agents/reviewer.md +25 -0
- package/instructions/agents/verifier.md +24 -0
- package/instructions/coordination/director-preamble.md +24 -2
- package/instructions/coordination/subagent-baseline.md +8 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import { C as Config, i as ConfigLoader, j as SyncConfig, k as ConfigStore } from './config-
|
|
3
|
+
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './events-CovDylaH.js';
|
|
4
|
+
import { C as Config, i as ConfigLoader, j as SyncConfig, k as ConfigStore } from './config-BCAEJicb.js';
|
|
5
5
|
import { S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
6
6
|
import { W as WstackPaths } from './wstack-paths-C3K40Qst.js';
|
|
7
7
|
import { S as SecretScrubber } from './secret-scrubber-3MHDDAtm.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-
|
|
3
|
-
import { M as MiddlewareHandler, b as Middleware } from './pipeline-
|
|
4
|
-
import { S as SessionEventBridge } from './session-event-bridge-
|
|
2
|
+
import { E as EventBus } from './events-CovDylaH.js';
|
|
3
|
+
import { M as MiddlewareHandler, b as Middleware } from './pipeline-DM-CPTUs.js';
|
|
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
|
-
import { l as ContextWindowAggressiveOn, m as ContextWindowPolicy, M as ModelsRegistry, C as Config } from './config-
|
|
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-
|
|
6
|
+
import { l as ContextWindowAggressiveOn, m as ContextWindowPolicy, M as ModelsRegistry, C as Config } from './config-BCAEJicb.js';
|
|
7
|
+
import { A as Agent, D as DoneCondition } from './agent-subagent-runner-Dksf0QVU.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-D5HB7WkV.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-BwcA0bAt.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/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as Tool } from '../tool-LVSLiE1s.js';
|
|
2
|
-
import { b as MCPServerConfig, C as Config } from '../config-
|
|
2
|
+
import { b as MCPServerConfig, C as Config } from '../config-BCAEJicb.js';
|
|
3
3
|
import '../dispatcher-types.d-BBeXBQgS.js';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'undici';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,56 +1,33 @@
|
|
|
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-
|
|
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,
|
|
2
|
+
export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-Bz4GyUqo.js';
|
|
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-BCAEJicb.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-azFprTB3.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-CovDylaH.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-
|
|
15
|
-
export { B as BuildContext, c as ModelCapabilities, a as Renderer, S as SystemPromptBuilder } from '../pipeline-
|
|
13
|
+
import { I as IterationStage, l as ParallelIterationStage } from '../parallel-eternal-engine-BwcA0bAt.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-BwcA0bAt.js';
|
|
15
|
+
export { B as BuildContext, c as ModelCapabilities, a as Renderer, S as SystemPromptBuilder } from '../pipeline-DM-CPTUs.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-Dksf0QVU.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, f as TaskAssignment, g as TaskDependency, h as TaskEdge, i as TaskFilter, d as TaskGraph, e as TaskNode, a as TaskPriority, c as TaskProgress, j as TaskSort, b as TaskStatus, T as TaskType, k as computeTaskProgress, l as findCriticalPath, t as topologicalSort } from '../task-graph-u1q9Jkyk.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-D5HB7WkV.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-CBd749M4.js';
|
|
26
|
+
import '../multi-agent-coordinator-4DC31QWu.js';
|
|
27
27
|
import 'node:events';
|
|
28
28
|
import '../mailbox-types-BGZWrYTJ.js';
|
|
29
29
|
import '../secret-scrubber-3MHDDAtm.js';
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Sentinel keys provider adapters use to wrap tool-call arguments that could
|
|
33
|
-
* not be parsed into a proper JSON object. Single source of truth — the core
|
|
34
|
-
* tool executor (which DETECTS these markers to surface a friendly error)
|
|
35
|
-
* defines them here, and the providers package (which PRODUCES them when
|
|
36
|
-
* wrapping) imports from `@wrongstack/core`.
|
|
37
|
-
*
|
|
38
|
-
* P3 #14 (before-release.md): the list was duplicated in tool-executor.ts with
|
|
39
|
-
* a "Keep this list in sync" comment — a manual rule that will eventually be
|
|
40
|
-
* forgotten. Centralizing it removes the sync burden.
|
|
41
|
-
*
|
|
42
|
-
* Layering note: this lives in core (not providers) because the dependency
|
|
43
|
-
* direction is providers → core, not the reverse. Putting it in providers
|
|
44
|
-
* would force core into a forbidden upward dependency.
|
|
45
|
-
*
|
|
46
|
-
* Current markers:
|
|
47
|
-
* - `__raw` — produced by `parseToolInput` (Anthropic / shared)
|
|
48
|
-
* - `__raw_arguments` — produced by `contentFromOpenAI` (OpenAI / compatible)
|
|
49
|
-
* - `_raw` — produced by the streaming response builder's
|
|
50
|
-
* `safeJsonOrRaw` (legacy fallback)
|
|
51
|
-
*/
|
|
52
|
-
declare const MALFORMED_ARG_MARKERS: readonly ["__raw", "__raw_arguments", "_raw"];
|
|
53
|
-
|
|
54
31
|
/**
|
|
55
32
|
* Prompt registry / sync types — the contract for a remote prompt hub
|
|
56
33
|
* (e.g. prompts.wrongstack.com) and the local installed-prompts manifest.
|
|
@@ -132,6 +109,29 @@ declare function diffRegistry(local: {
|
|
|
132
109
|
checksum?: string | undefined;
|
|
133
110
|
}[], manifest: PromptRegistryManifest): RegistryDiff;
|
|
134
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Sentinel keys provider adapters use to wrap tool-call arguments that could
|
|
114
|
+
* not be parsed into a proper JSON object. Single source of truth — the core
|
|
115
|
+
* tool executor (which DETECTS these markers to surface a friendly error)
|
|
116
|
+
* defines them here, and the providers package (which PRODUCES them when
|
|
117
|
+
* wrapping) imports from `@wrongstack/core`.
|
|
118
|
+
*
|
|
119
|
+
* P3 #14 (before-release.md): the list was duplicated in tool-executor.ts with
|
|
120
|
+
* a "Keep this list in sync" comment — a manual rule that will eventually be
|
|
121
|
+
* forgotten. Centralizing it removes the sync burden.
|
|
122
|
+
*
|
|
123
|
+
* Layering note: this lives in core (not providers) because the dependency
|
|
124
|
+
* direction is providers → core, not the reverse. Putting it in providers
|
|
125
|
+
* would force core into a forbidden upward dependency.
|
|
126
|
+
*
|
|
127
|
+
* Current markers:
|
|
128
|
+
* - `__raw` — produced by `parseToolInput` (Anthropic / shared)
|
|
129
|
+
* - `__raw_arguments` — produced by `contentFromOpenAI` (OpenAI / compatible)
|
|
130
|
+
* - `_raw` — produced by the streaming response builder's
|
|
131
|
+
* `safeJsonOrRaw` (legacy fallback)
|
|
132
|
+
*/
|
|
133
|
+
declare const MALFORMED_ARG_MARKERS: readonly ["__raw", "__raw_arguments", "_raw"];
|
|
134
|
+
|
|
135
135
|
/** Union of serial and parallel autonomy engine stage types (from EternalAutonomyEngine / ParallelEternalEngine). */
|
|
136
136
|
type AutonomyStage = IterationStage | ParallelIterationStage;
|
|
137
137
|
|