@wrongstack/core 0.8.4 → 0.8.6
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-DPxcUVkn.d.ts → agent-bridge-Bad3ZGQ7.d.ts} +1 -1
- package/dist/{agent-subagent-runner-Cav3yEJM.d.ts → agent-subagent-runner-Cc8sRJOF.d.ts} +3 -3
- package/dist/coordination/index.d.ts +8 -8
- package/dist/coordination/index.js +8 -1
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +11 -11
- package/dist/defaults/index.js +41 -21
- package/dist/defaults/index.js.map +1 -1
- package/dist/{events-DyhxkstG.d.ts → events-yCpJD4wa.d.ts} +49 -0
- package/dist/execution/index.d.ts +7 -7
- package/dist/execution/index.js +22 -3
- package/dist/execution/index.js.map +1 -1
- package/dist/extension/index.d.ts +2 -2
- package/dist/index-BvZld4Dr.d.ts +200 -0
- package/dist/{index-oYZeWsuJ.d.ts → index-SxpnwRlJ.d.ts} +1 -1
- package/dist/index.d.ts +132 -21
- package/dist/index.js +862 -146
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +2 -2
- package/dist/kernel/index.d.ts +16 -88
- package/dist/kernel/index.js +3 -1
- package/dist/kernel/index.js.map +1 -1
- package/dist/{multi-agent-CRMznZmf.d.ts → multi-agent-C8uY45AY.d.ts} +9 -1
- package/dist/{multi-agent-coordinator-IQKrMfXz.d.ts → multi-agent-coordinator-C7YbZUY8.d.ts} +2 -2
- package/dist/{null-fleet-bus-sKnVwEd8.d.ts → null-fleet-bus-Bb2jVLKr.d.ts} +5 -5
- package/dist/observability/index.d.ts +1 -1
- package/dist/{path-resolver-1CIYbH2Q.d.ts → path-resolver-DnC1nOjb.d.ts} +1 -1
- package/dist/{plan-templates-BnlpEkX8.d.ts → plan-templates-Cqdy6rtM.d.ts} +2 -2
- package/dist/{provider-runner-BrA0XR-l.d.ts → provider-runner-C4ouU7--.d.ts} +1 -1
- package/dist/sdd/index.d.ts +11 -11
- package/dist/sdd/index.js +10 -14
- package/dist/sdd/index.js.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/skills/index.js +7 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +1 -3
- package/dist/storage/index.js.map +1 -1
- package/dist/{tool-executor-QwfWnQZ8.d.ts → tool-executor-Ch25BDwa.d.ts} +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +22 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +41 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/{wstack-paths-gCrJ631C.d.ts → wstack-paths-CJYrjQU8.d.ts} +4 -0
- package/package.json +1 -1
package/dist/sdd/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h as Specification, S as SpecAnalysis, g as SpecValidationResult, l as TaskGraph, m as TaskNode, k as TaskFilter, p as TaskSort, o as TaskProgress, r as TaskType, n as TaskPriority, e as SpecStatus, f as SpecTemplate, b as SpecRequirement } from '../task-graph-D1YQbpxF.js';
|
|
2
|
-
import { E as EventBus } from '../events-
|
|
3
|
-
import { D as DoneCondition, u as TaskResult } from '../multi-agent-
|
|
4
|
-
import { c as Agent } from '../index-
|
|
5
|
-
import { A as AgentFactory } from '../agent-subagent-runner-
|
|
2
|
+
import { E as EventBus } from '../events-yCpJD4wa.js';
|
|
3
|
+
import { D as DoneCondition, u as TaskResult } from '../multi-agent-C8uY45AY.js';
|
|
4
|
+
import { c as Agent } from '../index-SxpnwRlJ.js';
|
|
5
|
+
import { A as AgentFactory } from '../agent-subagent-runner-Cc8sRJOF.js';
|
|
6
6
|
import '../context-z2x5gv_V.js';
|
|
7
7
|
import '../logger-DDd5C--Z.js';
|
|
8
8
|
import '../system-prompt-CWA6ml-d.js';
|
|
@@ -55,15 +55,16 @@ declare class TaskTracker {
|
|
|
55
55
|
private graph;
|
|
56
56
|
private transitions;
|
|
57
57
|
constructor(opts: TaskTrackerOptions);
|
|
58
|
+
/**
|
|
59
|
+
* Attach an existing graph (used by PhaseOrchestrator to associate a tracker
|
|
60
|
+
* with a phase's pre-built task graph without re-creating it).
|
|
61
|
+
*/
|
|
62
|
+
setGraph(graph: TaskGraph): void;
|
|
58
63
|
createGraph(specId: string, title: string): Promise<TaskGraph>;
|
|
59
64
|
loadGraph(id: string): Promise<TaskGraph | null>;
|
|
60
65
|
addNode(node: Omit<TaskNode, 'id' | 'createdAt' | 'updatedAt'>): TaskNode;
|
|
61
66
|
addEdge(from: string, to: string, type?: TaskGraph['edges'][0]['type']): void;
|
|
62
67
|
updateNodeStatus(id: string, status: TaskNode['status'], reason?: string): void;
|
|
63
|
-
/**
|
|
64
|
-
* Update node fields (title, description, priority, estimateHours, tags).
|
|
65
|
-
* Does NOT change status. Use updateNodeStatus for status changes.
|
|
66
|
-
*/
|
|
67
68
|
updateNode(id: string, patch: Partial<Pick<TaskNode, 'title' | 'description' | 'priority' | 'estimateHours' | 'tags'>>): void;
|
|
68
69
|
getNode(id: string): TaskNode | undefined;
|
|
69
70
|
getAllNodes(filter?: TaskFilter, sort?: TaskSort): TaskNode[];
|
|
@@ -72,15 +73,14 @@ declare class TaskTracker {
|
|
|
72
73
|
getBlockers(taskId: string): string[];
|
|
73
74
|
canStart(taskId: string): boolean;
|
|
74
75
|
getProgress(): TaskProgress;
|
|
75
|
-
getTransitions(
|
|
76
|
+
getTransitions(_taskId?: string): TaskTransition[];
|
|
76
77
|
private unblockDependents;
|
|
77
78
|
private checkAndBlockIfNeeded;
|
|
78
79
|
/**
|
|
79
80
|
* Fire-and-forget persistence with attached error handler.
|
|
80
81
|
* Synchronous mutators (addNode/addEdge/updateNodeStatus) use this to
|
|
81
82
|
* avoid forcing an async cascade through every caller; if the store
|
|
82
|
-
*
|
|
83
|
-
* surfaced instead of swallowed by an unhandled promise rejection.
|
|
83
|
+
* is missing or throwing, the error is surfaced via onPersistError.
|
|
84
84
|
*/
|
|
85
85
|
private persist;
|
|
86
86
|
}
|
package/dist/sdd/index.js
CHANGED
|
@@ -581,6 +581,13 @@ var TaskTracker = class {
|
|
|
581
581
|
opts;
|
|
582
582
|
graph = null;
|
|
583
583
|
transitions = [];
|
|
584
|
+
/**
|
|
585
|
+
* Attach an existing graph (used by PhaseOrchestrator to associate a tracker
|
|
586
|
+
* with a phase's pre-built task graph without re-creating it).
|
|
587
|
+
*/
|
|
588
|
+
setGraph(graph) {
|
|
589
|
+
this.graph = graph;
|
|
590
|
+
}
|
|
584
591
|
async createGraph(specId, title) {
|
|
585
592
|
this.graph = {
|
|
586
593
|
id: crypto.randomUUID(),
|
|
@@ -653,10 +660,6 @@ var TaskTracker = class {
|
|
|
653
660
|
this.graph.updatedAt = now;
|
|
654
661
|
this.persist();
|
|
655
662
|
}
|
|
656
|
-
/**
|
|
657
|
-
* Update node fields (title, description, priority, estimateHours, tags).
|
|
658
|
-
* Does NOT change status. Use updateNodeStatus for status changes.
|
|
659
|
-
*/
|
|
660
663
|
updateNode(id, patch) {
|
|
661
664
|
if (!this.graph) throw new Error("No graph loaded");
|
|
662
665
|
const node = this.graph.nodes.get(id);
|
|
@@ -734,8 +737,7 @@ var TaskTracker = class {
|
|
|
734
737
|
}
|
|
735
738
|
return computeTaskProgress(this.graph);
|
|
736
739
|
}
|
|
737
|
-
getTransitions(
|
|
738
|
-
if (!taskId) return [...this.transitions];
|
|
740
|
+
getTransitions(_taskId) {
|
|
739
741
|
return [...this.transitions];
|
|
740
742
|
}
|
|
741
743
|
unblockDependents(completedId) {
|
|
@@ -775,18 +777,12 @@ var TaskTracker = class {
|
|
|
775
777
|
* Fire-and-forget persistence with attached error handler.
|
|
776
778
|
* Synchronous mutators (addNode/addEdge/updateNodeStatus) use this to
|
|
777
779
|
* avoid forcing an async cascade through every caller; if the store
|
|
778
|
-
*
|
|
779
|
-
* surfaced instead of swallowed by an unhandled promise rejection.
|
|
780
|
+
* is missing or throwing, the error is surfaced via onPersistError.
|
|
780
781
|
*/
|
|
781
782
|
persist() {
|
|
782
783
|
if (!this.graph) return;
|
|
783
784
|
this.opts.store.saveGraph(this.graph).catch((err) => {
|
|
784
|
-
|
|
785
|
-
else
|
|
786
|
-
console.warn(
|
|
787
|
-
"[task-tracker] saveGraph failed:",
|
|
788
|
-
err instanceof Error ? err.message : String(err)
|
|
789
|
-
);
|
|
785
|
+
this.opts.onPersistError ? this.opts.onPersistError(err) : console.warn("[task-tracker] saveGraph failed:", err instanceof Error ? err.message : String(err));
|
|
790
786
|
});
|
|
791
787
|
}
|
|
792
788
|
};
|