@wrongstack/core 0.273.1 → 0.274.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-bridge-DpKIxHhE.d.ts → agent-bridge-DFo21wmY.d.ts} +1 -1
- package/dist/{agent-subagent-runner-Dx7fZ1bE.d.ts → agent-subagent-runner-BwmkIDEd.d.ts} +7 -7
- package/dist/{brain-BDcQaku-.d.ts → brain-gfZX3the.d.ts} +1 -1
- package/dist/{provider-model-resolve-Cz6OlIOp.d.ts → codex-catalog-CooZ6mOl.d.ts} +47 -4
- package/dist/{compactor-BuSdj3fq.d.ts → compactor-riTOds0f.d.ts} +1 -1
- package/dist/{config-CR2yoG8c.d.ts → config-BxcrDzri.d.ts} +7 -1
- package/dist/{context-DulAr8Zo.d.ts → context-DERiLofu.d.ts} +36 -1
- package/dist/coordination/index.d.ts +20 -16
- package/dist/coordination/index.js +1622 -1479
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +26 -26
- package/dist/defaults/index.js +1832 -1541
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +15 -15
- package/dist/execution/index.js +2 -8
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/prompt-enhancer.d.ts +1 -1
- package/dist/extension/index.d.ts +6 -6
- package/dist/{global-mailbox-CwcubDkA.d.ts → global-mailbox-Cr8TW4t_.d.ts} +1 -1
- package/dist/{goal-preamble-Bu0a2uCG.d.ts → goal-preamble-CEhROp1e.d.ts} +9 -9
- package/dist/{goal-store-CTmFuZ8J.d.ts → goal-store-xNSVxmpV.d.ts} +1 -1
- package/dist/hq/index.d.ts +5 -5
- package/dist/{index-CTq5wU3m.d.ts → index-00KPKAlm.d.ts} +5 -5
- package/dist/{index-CxP-HBhX.d.ts → index-pDBSBE1r.d.ts} +2 -2
- package/dist/index.d.ts +49 -43
- package/dist/index.js +1973 -1444
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +6 -6
- package/dist/kernel/index.d.ts +11 -11
- package/dist/{mcp-servers-BQaOE71z.d.ts → mcp-servers-BIwRiOxe.d.ts} +3 -3
- package/dist/models/index.d.ts +5 -5
- package/dist/models/index.js +40 -2
- package/dist/models/index.js.map +1 -1
- package/dist/{models-registry-BEcny4kP.d.ts → models-registry-8OorW51H.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-Bx8EFkv2.d.ts → multi-agent-coordinator-CNx48Zoz.d.ts} +1 -1
- package/dist/{null-fleet-bus-BC5ZXCQw.d.ts → null-fleet-bus-B4ZUJYL6.d.ts} +6 -6
- package/dist/observability/index.d.ts +2 -2
- package/dist/{parallel-eternal-engine-C345TI3n.d.ts → parallel-eternal-engine-rsIclDqO.d.ts} +9 -9
- package/dist/{path-resolver-C-W_wzkF.d.ts → path-resolver-BqU-fwzD.d.ts} +3 -3
- package/dist/{permission-CsBGZkxp.d.ts → permission-Dgs3v-Xq.d.ts} +1 -1
- package/dist/{permission-policy-g3Sg0GdZ.d.ts → permission-policy-Dtht2k0e.d.ts} +2 -2
- package/dist/{pipeline-xnw_24Z8.d.ts → pipeline-B-dpCFYS.d.ts} +2 -2
- package/dist/{plan-templates-DGaiYEcS.d.ts → plan-templates-B7MxyY2o.d.ts} +32 -5
- package/dist/{provider-runner-7J0HqF6B.d.ts → provider-runner-DrmpBE5l.d.ts} +3 -3
- package/dist/{retry-policy-kqXJOVkX.d.ts → retry-policy-hYxsm10a.d.ts} +1 -1
- package/dist/sdd/index.d.ts +12 -10
- package/dist/sdd/index.js +7 -0
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-CMQUr-eB.d.ts → secret-vault-DnqIFhPF.d.ts} +1 -1
- package/dist/security/index.d.ts +5 -5
- package/dist/{selector-B4r34PWR.d.ts → selector-D21RjDIg.d.ts} +1 -1
- package/dist/{session-event-bridge-BD3LoyLC.d.ts → session-event-bridge-Dt54CTvq.d.ts} +1 -1
- package/dist/{session-reader-DjrKGD9c.d.ts → session-reader-CceH13Kq.d.ts} +5 -4
- package/dist/storage/index.d.ts +46 -12
- package/dist/storage/index.js +1987 -1548
- package/dist/storage/index.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/types/index.d.ts +19 -19
- package/dist/types/index.js +134 -42
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/{worktree-manager-DHdrWQ_7.d.ts → worktree-manager-DUfBbKzk.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ModelsRegistry, a as ModelsDevPayload, R as ResolvedProvider, b as ResolvedModel, W as WireFamily } from './config-
|
|
1
|
+
import { M as ModelsRegistry, a as ModelsDevPayload, R as ResolvedProvider, b as ResolvedModel, W as WireFamily } from './config-BxcrDzri.js';
|
|
2
2
|
|
|
3
3
|
interface DefaultModelsRegistryOptions {
|
|
4
4
|
cacheFile: string;
|
package/dist/{multi-agent-coordinator-Bx8EFkv2.d.ts → multi-agent-coordinator-CNx48Zoz.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SubagentConfig, M as MultiAgentCoordinator, c as MultiAgentConfig, d as SubagentRunner, F as FleetBus, e as SpawnResult, T as TaskSpec, a as BridgeMessage, A as AgentBridge, C as CoordinatorStatus, f as TaskResult } from './agent-subagent-runner-
|
|
1
|
+
import { S as SubagentConfig, M as MultiAgentCoordinator, c as MultiAgentConfig, d as SubagentRunner, F as FleetBus, e as SpawnResult, T as TaskSpec, a as BridgeMessage, A as AgentBridge, C as CoordinatorStatus, f as TaskResult } from './agent-subagent-runner-BwmkIDEd.js';
|
|
2
2
|
import { EventEmitter } from 'node:events';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AgentPhase, b as AgentDefinition, a as DefaultMultiAgentCoordinator, D as DispatchClassifier } from './multi-agent-coordinator-
|
|
2
|
-
import { F as FleetBus, i as FleetUsage, S as SubagentConfig, j as FleetUsageAggregator, f as TaskResult, C as CoordinatorStatus, T as TaskSpec, c as MultiAgentConfig, d as SubagentRunner } from './agent-subagent-runner-
|
|
3
|
-
import { b as SessionWriter, T as Tool, k as SessionStore } from './context-
|
|
4
|
-
import { B as BrainArbiter, E as EventBus } from './brain-
|
|
1
|
+
import { A as AgentPhase, b as AgentDefinition, a as DefaultMultiAgentCoordinator, D as DispatchClassifier } from './multi-agent-coordinator-CNx48Zoz.js';
|
|
2
|
+
import { F as FleetBus, i as FleetUsage, S as SubagentConfig, j as FleetUsageAggregator, f as TaskResult, C as CoordinatorStatus, T as TaskSpec, c as MultiAgentConfig, d as SubagentRunner } from './agent-subagent-runner-BwmkIDEd.js';
|
|
3
|
+
import { b as SessionWriter, T as Tool, k as SessionStore } from './context-DERiLofu.js';
|
|
4
|
+
import { B as BrainArbiter, E as EventBus } from './brain-gfZX3the.js';
|
|
5
5
|
import { EventEmitter } from 'node:events';
|
|
6
6
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
7
7
|
import { D as DirectorStateSnapshot } from './director-state-BfeCUbmk.js';
|
|
8
|
-
import { d as ModelMatrixEntry } from './config-
|
|
9
|
-
import { I as InMemoryAgentBridge } from './agent-bridge-
|
|
8
|
+
import { d as ModelMatrixEntry } from './config-BxcrDzri.js';
|
|
9
|
+
import { I as InMemoryAgentBridge } from './agent-bridge-DFo21wmY.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Alert levels the Director can emit when a collab session needs attention.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as MetricsSink, d as MetricLabels, f as MetricsSnapshot, H as HealthRegistry, a as HealthCheck, A as AggregateHealth, T as Tracer, S as Span } from '../observability-D-HZN_mF.js';
|
|
2
|
-
import { E as EventBus } from '../brain-
|
|
3
|
-
import '../context-
|
|
2
|
+
import { E as EventBus } from '../brain-gfZX3the.js';
|
|
3
|
+
import '../context-DERiLofu.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* In-memory metrics sink. Suitable for embedded use, tests, and /metrics
|
package/dist/{parallel-eternal-engine-C345TI3n.d.ts → parallel-eternal-engine-rsIclDqO.d.ts}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { g as ProviderError, C as Context, T as Tool, r as ToolUseBlock, s as ToolResultBlock } from './context-
|
|
2
|
-
import { R as RetryPolicy, E as ErrorHandler, a as RecoveryDecision } from './retry-policy-
|
|
3
|
-
import { C as Compactor, a as CompactReport } from './compactor-
|
|
4
|
-
import { M as ModelsRegistry, C as Config } from './config-
|
|
5
|
-
import { T as ToolExecutorOptions, a as ToolExecutorStrategy, b as ToolBatchResult } from './index-
|
|
6
|
-
import { g as Agent, h as AgentFactory } from './agent-subagent-runner-
|
|
7
|
-
import { B as BrainArbiter, E as EventBus } from './brain-
|
|
8
|
-
import { J as JournalEntry } from './goal-store-
|
|
9
|
-
import { D as DispatchClassifier, a as DefaultMultiAgentCoordinator } from './multi-agent-coordinator-
|
|
1
|
+
import { g as ProviderError, C as Context, T as Tool, r as ToolUseBlock, s as ToolResultBlock } from './context-DERiLofu.js';
|
|
2
|
+
import { R as RetryPolicy, E as ErrorHandler, a as RecoveryDecision } from './retry-policy-hYxsm10a.js';
|
|
3
|
+
import { C as Compactor, a as CompactReport } from './compactor-riTOds0f.js';
|
|
4
|
+
import { M as ModelsRegistry, C as Config } from './config-BxcrDzri.js';
|
|
5
|
+
import { T as ToolExecutorOptions, a as ToolExecutorStrategy, b as ToolBatchResult } from './index-00KPKAlm.js';
|
|
6
|
+
import { g as Agent, h as AgentFactory } from './agent-subagent-runner-BwmkIDEd.js';
|
|
7
|
+
import { B as BrainArbiter, E as EventBus } from './brain-gfZX3the.js';
|
|
8
|
+
import { J as JournalEntry } from './goal-store-xNSVxmpV.js';
|
|
9
|
+
import { D as DispatchClassifier, a as DefaultMultiAgentCoordinator } from './multi-agent-coordinator-CNx48Zoz.js';
|
|
10
10
|
|
|
11
11
|
declare class DefaultRetryPolicy implements RetryPolicy {
|
|
12
12
|
shouldRetry(err: Error | ProviderError, attempt: number): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
2
|
-
import { M as ModelsRegistry, b as ResolvedModel } from './config-
|
|
3
|
-
import { e as TokenCounter, U as Usage, f as CacheStats } from './context-
|
|
1
|
+
import { E as EventBus } from './brain-gfZX3the.js';
|
|
2
|
+
import { M as ModelsRegistry, b as ResolvedModel } from './config-BxcrDzri.js';
|
|
3
|
+
import { e as TokenCounter, U as Usage, f as CacheStats } from './context-DERiLofu.js';
|
|
4
4
|
import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Tool, C as Context } from './context-
|
|
1
|
+
import { T as Tool, C as Context } from './context-DERiLofu.js';
|
|
2
2
|
import { I as InputReader } from './input-reader-E-ffP2ee.js';
|
|
3
|
-
import { P as PermissionPolicy, a as PermissionDecision } from './permission-
|
|
3
|
+
import { P as PermissionPolicy, a as PermissionDecision } from './permission-Dgs3v-Xq.js';
|
|
4
4
|
|
|
5
5
|
interface PermissionPolicyOptions {
|
|
6
6
|
trustFile: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as Tool, q as TextBlock, i as ContentBlock } from './context-
|
|
1
|
+
import { T as Tool, q as TextBlock, i as ContentBlock } from './context-DERiLofu.js';
|
|
2
2
|
import { a as MailboxAgentStatus } from './mailbox-types-Ct2hJq0P.js';
|
|
3
|
-
import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry } from './config-
|
|
3
|
+
import { H as HookEvent, f as HookMatcher, I as InProcessHook, S as ShellHook, g as HookEntry } from './config-BxcrDzri.js';
|
|
4
4
|
|
|
5
5
|
/** Model capabilities relevant to prompt composition. */
|
|
6
6
|
interface ModelCapabilities {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './brain-
|
|
2
|
-
import { S as SecretScrubber } from './permission-
|
|
3
|
-
import { k as SessionStore, j as SessionMetadata, b as SessionWriter, u as ResumedSession, v as SessionData, S as SessionEvent, w as SessionSummary, i as ContentBlock, x as TodoItem, y as ConversationState } from './context-
|
|
4
|
-
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-
|
|
1
|
+
import { E as EventBus, M as MemoryScope, b as MemoryEntry, c as MemoryStore, d as MemoryRelevanceContext, S as ScoredEntry } from './brain-gfZX3the.js';
|
|
2
|
+
import { S as SecretScrubber } from './permission-Dgs3v-Xq.js';
|
|
3
|
+
import { k as SessionStore, j as SessionMetadata, b as SessionWriter, u as ResumedSession, v as SessionData, S as SessionEvent, w as SessionSummary, i as ContentBlock, x as TodoItem, y as ConversationState } from './context-DERiLofu.js';
|
|
4
|
+
import { A as AttachmentStore, a as AddAttachmentInput, b as AttachmentRef, c as Attachment } from './session-reader-CceH13Kq.js';
|
|
5
5
|
import { W as WstackPaths } from './wstack-paths-BqkDAkoh.js';
|
|
6
|
-
import { j as ConfigStore, C as Config, k as ConfigLoader, l as SyncConfig } from './config-
|
|
6
|
+
import { j as ConfigStore, C as Config, k as ConfigLoader, l as SyncConfig } from './config-BxcrDzri.js';
|
|
7
7
|
import { S as SecretVault } from './secret-vault-BAKpgFw_.js';
|
|
8
8
|
|
|
9
9
|
interface SessionStoreOptions {
|
|
@@ -36,6 +36,7 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
36
36
|
*/
|
|
37
37
|
private readonly _loadCache;
|
|
38
38
|
private _indexCache;
|
|
39
|
+
private readonly shardManifestCache;
|
|
39
40
|
private static readonly LOAD_CACHE_MAX_ENTRIES;
|
|
40
41
|
private static readonly LIST_SCAN_CONCURRENCY;
|
|
41
42
|
constructor(opts: SessionStoreOptions);
|
|
@@ -51,6 +52,9 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
51
52
|
private get indexFile();
|
|
52
53
|
/** Join session ID to its absolute path within the store directory. */
|
|
53
54
|
private sessionPath;
|
|
55
|
+
private shardManifestPath;
|
|
56
|
+
private shardKeyForSessionId;
|
|
57
|
+
private invalidateShardManifestBySessionId;
|
|
54
58
|
/**
|
|
55
59
|
* Ensure the directory implied by the session ID exists. When the ID
|
|
56
60
|
* contains a date prefix like `2026-06-06/...`, this creates the date
|
|
@@ -86,6 +90,25 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
86
90
|
ts: string;
|
|
87
91
|
}>>;
|
|
88
92
|
list(limit?: number): Promise<SessionSummary[]>;
|
|
93
|
+
/**
|
|
94
|
+
* List sessions matching filter criteria, using the cached index.
|
|
95
|
+
* Filters are applied BEFORE sorting and slicing, so the caller gets
|
|
96
|
+
* exactly `limit` matching sessions — not a slice of a larger fetch.
|
|
97
|
+
*
|
|
98
|
+
* This avoids the DefaultSessionReader pattern of fetching 1000 sessions
|
|
99
|
+
* then linear-filtering: the index is already in memory (readIndex
|
|
100
|
+
* caches it), and the filter runs over the cached array without any
|
|
101
|
+
* additional disk I/O.
|
|
102
|
+
*/
|
|
103
|
+
listFiltered(criteria: {
|
|
104
|
+
since?: string | undefined;
|
|
105
|
+
until?: string | undefined;
|
|
106
|
+
provider?: string | undefined;
|
|
107
|
+
model?: string | undefined;
|
|
108
|
+
minTokens?: number | undefined;
|
|
109
|
+
titleContains?: string | undefined;
|
|
110
|
+
limit?: number | undefined;
|
|
111
|
+
}): Promise<SessionSummary[]>;
|
|
89
112
|
private indexAppendCount;
|
|
90
113
|
private static readonly COMPACT_EVERY;
|
|
91
114
|
/** Append a session summary to the index. */
|
|
@@ -109,6 +132,9 @@ declare class DefaultSessionStore implements SessionStore {
|
|
|
109
132
|
*/
|
|
110
133
|
rebuildIndex(): Promise<number>;
|
|
111
134
|
private listFromDirectoryScan;
|
|
135
|
+
private collectShardKeys;
|
|
136
|
+
private readOrBuildShardManifest;
|
|
137
|
+
private collectSessionFilesInShard;
|
|
112
138
|
private collectSessionFiles;
|
|
113
139
|
/** Recursively collect session IDs from date-shard subdirectories.
|
|
114
140
|
* IDs include the date-prefix path (e.g. "2026-06-06/17-46-57Z_…").
|
|
@@ -390,6 +416,7 @@ declare class DefaultConfigLoader implements ConfigLoader {
|
|
|
390
416
|
private readonly extraSources;
|
|
391
417
|
private readonly events;
|
|
392
418
|
private readonly traceId;
|
|
419
|
+
private readonly jsonCache;
|
|
393
420
|
constructor(opts: ConfigLoaderOptions);
|
|
394
421
|
load(opts?: {
|
|
395
422
|
cliFlags?: Partial<Config> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as EventBus } from './brain-
|
|
1
|
+
import { E as EventBus } from './brain-gfZX3the.js';
|
|
2
2
|
import { L as Logger } from './logger-B63L5bTg.js';
|
|
3
3
|
import { T as Tracer } from './observability-D-HZN_mF.js';
|
|
4
|
-
import { P as Provider, c as Request, C as Context, d as Response } from './context-
|
|
5
|
-
import { R as RetryPolicy } from './retry-policy-
|
|
4
|
+
import { P as Provider, c as Request, C as Context, d as Response } from './context-DERiLofu.js';
|
|
5
|
+
import { R as RetryPolicy } from './retry-policy-hYxsm10a.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Options passed to a ProviderRunner when calling the provider.
|
package/dist/sdd/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { h as Specification, S as SpecAnalysis, g as SpecValidationResult, e as SpecStatus, f as SpecTemplate, b as SpecRequirement } from '../spec-TBi3Jr6T.js';
|
|
2
2
|
import { d as TaskGraph, e as TaskNode, i as TaskFilter, j as TaskSort, c as TaskProgress, T as TaskType, a as TaskPriority } from '../task-graph-u1q9Jkyk.js';
|
|
3
|
-
import { E as EventBus, B as BrainArbiter } from '../brain-
|
|
4
|
-
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-
|
|
5
|
-
import { W as WorktreeManager } from '../worktree-manager-
|
|
6
|
-
import '../context-
|
|
7
|
-
import '../index-
|
|
3
|
+
import { E as EventBus, B as BrainArbiter } from '../brain-gfZX3the.js';
|
|
4
|
+
import { D as DoneCondition, g as Agent, h as AgentFactory, f as TaskResult } from '../agent-subagent-runner-BwmkIDEd.js';
|
|
5
|
+
import { W as WorktreeManager } from '../worktree-manager-DUfBbKzk.js';
|
|
6
|
+
import '../context-DERiLofu.js';
|
|
7
|
+
import '../index-00KPKAlm.js';
|
|
8
8
|
import '../logger-B63L5bTg.js';
|
|
9
|
-
import '../pipeline-
|
|
9
|
+
import '../pipeline-B-dpCFYS.js';
|
|
10
10
|
import '../mailbox-types-Ct2hJq0P.js';
|
|
11
|
-
import '../config-
|
|
11
|
+
import '../config-BxcrDzri.js';
|
|
12
12
|
import '../observability-D-HZN_mF.js';
|
|
13
|
-
import '../permission-
|
|
14
|
-
import '../retry-policy-
|
|
13
|
+
import '../permission-Dgs3v-Xq.js';
|
|
14
|
+
import '../retry-policy-hYxsm10a.js';
|
|
15
15
|
|
|
16
16
|
declare class SpecParser {
|
|
17
17
|
parse(content: string): Specification;
|
|
@@ -1590,7 +1590,7 @@ declare class SddBoardProjector {
|
|
|
1590
1590
|
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Control surface over a live SDD run, exposed to every steering surface
|
|
1593
|
-
* (TUI, CLI-hosted
|
|
1593
|
+
* (TUI, CLI-hosted WebUI in-process; standalone WebUI via a control file the
|
|
1594
1594
|
* run drains). The run itself stays CLI-owned — this is the only sanctioned
|
|
1595
1595
|
* way to pause / retry / reassign from outside the run loop.
|
|
1596
1596
|
*/
|
|
@@ -1671,6 +1671,8 @@ interface SddInterviewSnapshot {
|
|
|
1671
1671
|
sessionId: string;
|
|
1672
1672
|
phase: AISpecPhase;
|
|
1673
1673
|
title: string;
|
|
1674
|
+
/** The operator's original goal prompt (verbatim). `title` is a short heading. */
|
|
1675
|
+
goal: string;
|
|
1674
1676
|
questionCount: number;
|
|
1675
1677
|
minQuestions: number;
|
|
1676
1678
|
maxQuestions: number;
|
package/dist/sdd/index.js
CHANGED
|
@@ -2139,6 +2139,9 @@ function buildQuestioningPrompt(session, min, max) {
|
|
|
2139
2139
|
"- Adapt based on previous answers",
|
|
2140
2140
|
"- Cover: scope, constraints, edge cases, integrations, security, performance as relevant",
|
|
2141
2141
|
"- When you have enough info, respond with the full specification in JSON format",
|
|
2142
|
+
"- This is a planning interview: respond with TEXT ONLY (a question, or the spec JSON).",
|
|
2143
|
+
" Do NOT write or edit files, and do NOT run shell/terminal commands \u2014 the code is",
|
|
2144
|
+
" written later, after the plan is approved.",
|
|
2142
2145
|
"",
|
|
2143
2146
|
`**Question budget:** ${budget}/${max} remaining`,
|
|
2144
2147
|
`**Minimum required:** ${remaining > 0 ? remaining : "met"}`
|
|
@@ -2206,6 +2209,9 @@ function buildImplementationPrompt(session) {
|
|
|
2206
2209
|
"",
|
|
2207
2210
|
"**Instructions for AI:**",
|
|
2208
2211
|
"Generate a detailed implementation plan for this specification.",
|
|
2212
|
+
"This is a PLANNING step \u2014 describe the plan and emit the task JSON as TEXT. Do NOT",
|
|
2213
|
+
"create or edit files and do NOT run shell/terminal commands here; the tasks you list",
|
|
2214
|
+
"are executed later, one by one, after you approve them.",
|
|
2209
2215
|
"Include:",
|
|
2210
2216
|
"1. Architecture decisions",
|
|
2211
2217
|
"2. File structure changes",
|
|
@@ -2791,6 +2797,7 @@ var SddInterviewDriver = class {
|
|
|
2791
2797
|
sessionId: s.id,
|
|
2792
2798
|
phase: s.phase,
|
|
2793
2799
|
title: s.title,
|
|
2800
|
+
goal: s.userIntent || s.title,
|
|
2794
2801
|
questionCount: s.questionCount,
|
|
2795
2802
|
minQuestions: this.minQuestions,
|
|
2796
2803
|
maxQuestions: this.maxQuestions,
|