@pellux/goodvibes-sdk 0.33.17 → 0.33.19
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/contracts/artifacts/operator-contract.json +1 -1
- package/dist/events/workflows.d.ts +1 -1
- package/dist/events/workflows.d.ts.map +1 -1
- package/dist/platform/agents/completion-report.d.ts +3 -3
- package/dist/platform/agents/completion-report.d.ts.map +1 -1
- package/dist/platform/agents/completion-report.js +59 -11
- package/dist/platform/agents/index.d.ts +1 -0
- package/dist/platform/agents/index.d.ts.map +1 -1
- package/dist/platform/agents/index.js +1 -0
- package/dist/platform/agents/wrfc-controller.d.ts +14 -6
- package/dist/platform/agents/wrfc-controller.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-controller.js +316 -100
- package/dist/platform/agents/wrfc-external-adapter.d.ts +45 -0
- package/dist/platform/agents/wrfc-external-adapter.d.ts.map +1 -0
- package/dist/platform/agents/wrfc-external-adapter.js +18 -0
- package/dist/platform/agents/wrfc-prompt-addenda.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-prompt-addenda.js +27 -0
- package/dist/platform/agents/wrfc-reporting.d.ts +7 -3
- package/dist/platform/agents/wrfc-reporting.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-reporting.js +38 -14
- package/dist/platform/agents/wrfc-types.d.ts +35 -5
- package/dist/platform/agents/wrfc-types.d.ts.map +1 -1
- package/dist/platform/agents/wrfc-workmap.d.ts +7 -1
- package/dist/platform/agents/wrfc-workmap.d.ts.map +1 -1
- package/dist/platform/tools/agent/index.d.ts.map +1 -1
- package/dist/platform/tools/agent/index.js +6 -2
- package/dist/platform/tools/agent/manager.d.ts +3 -0
- package/dist/platform/tools/agent/manager.d.ts.map +1 -1
- package/dist/platform/tools/agent/manager.js +43 -6
- package/dist/platform/tools/agent/schema.d.ts +2 -0
- package/dist/platform/tools/agent/schema.d.ts.map +1 -1
- package/dist/platform/version.js +1 -1
- package/package.json +9 -9
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export interface Constraint {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly text: string;
|
|
7
|
-
readonly source: 'prompt'
|
|
7
|
+
readonly source: 'prompt';
|
|
8
8
|
}
|
|
9
9
|
export type WrfcState = 'pending' | 'engineering' | 'reviewing' | 'fixing' | 'awaiting_gates' | 'gating' | 'passed' | 'failed' | 'committing';
|
|
10
10
|
export type WorkflowEvent = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/events/workflows.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../src/events/workflows.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B;AAED,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,aAAa,GACb,WAAW,GACX,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAEjB,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,wBAAwB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,wBAAwB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,SAAS,CAAA;CAAE,GACnF;IACE,IAAI,EAAE,2BAA2B,C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
|
|
@@ -11,12 +11,12 @@ export interface BaseCompletionReport {
|
|
|
11
11
|
wrfcId?: string | undefined;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* A single constraint extracted from the task prompt
|
|
14
|
+
* A single constraint extracted from the task prompt.
|
|
15
15
|
*/
|
|
16
16
|
export interface Constraint {
|
|
17
17
|
id: string;
|
|
18
18
|
text: string;
|
|
19
|
-
source: 'prompt'
|
|
19
|
+
source: 'prompt';
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* A reviewer's finding about whether a specific constraint was satisfied.
|
|
@@ -42,7 +42,7 @@ export interface EngineerReport extends BaseCompletionReport {
|
|
|
42
42
|
}>;
|
|
43
43
|
issues: string[];
|
|
44
44
|
uncertainties: string[];
|
|
45
|
-
/** Constraints enumerated from the task prompt
|
|
45
|
+
/** Constraints enumerated from the task prompt. Defaults to [] when absent. */
|
|
46
46
|
constraints?: Constraint[] | undefined;
|
|
47
47
|
}
|
|
48
48
|
/** Reviewer agent completion report. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-report.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/completion-report.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAKrF;;;GAGG;AAEH,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"completion-report.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/completion-report.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAKrF;;;GAGG;AAEH,oDAAoD;AACpD,MAAM,WAAW,oBA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int(c) {
|
|
|
8
8
|
const obj = c;
|
|
9
9
|
return (typeof obj['id'] === 'string' && obj['id'].length > 0 &&
|
|
10
10
|
typeof obj['text'] === 'string' && obj['text'].length > 0 &&
|
|
11
|
-
|
|
11
|
+
obj['source'] === 'prompt');
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
function evidenceToString(evidence) {
|
|
14
|
+
if (typeof evidence === 'string') {
|
|
15
|
+
const trimmed = evidence.trim();
|
|
16
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
17
|
+
}
|
|
18
|
+
if (typeof evidence === 'number' || typeof evidence === 'boolean') {
|
|
19
|
+
return String(evidence);
|
|
20
|
+
}
|
|
21
|
+
if (Array.isArray(evidence) || (typeof evidence === 'object' && evidence !== null)) {
|
|
22
|
+
try {
|
|
23
|
+
const serialized = JSON.stringify(evidence);
|
|
24
|
+
return serialized.length > 0 && serialized !== 'null' ? serialized : null;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
/** Normalizes a ConstraintFinding entry, tolerating common model evidence shapes. */
|
|
33
|
+
function normalizeConstraintFinding(f) {
|
|
15
34
|
if (typeof f !== 'object' || f === null)
|
|
16
|
-
return
|
|
35
|
+
return null;
|
|
17
36
|
const obj = f;
|
|
18
37
|
const severity = obj['severity'];
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
typeof obj['
|
|
22
|
-
|
|
38
|
+
const evidence = evidenceToString(obj['evidence']);
|
|
39
|
+
if (typeof obj['constraintId'] !== 'string' || obj['constraintId'].length === 0 ||
|
|
40
|
+
typeof obj['satisfied'] !== 'boolean' ||
|
|
41
|
+
evidence === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const finding = {
|
|
45
|
+
constraintId: obj['constraintId'],
|
|
46
|
+
satisfied: obj['satisfied'],
|
|
47
|
+
evidence,
|
|
48
|
+
};
|
|
49
|
+
if (severity === 'critical' || severity === 'major' || severity === 'minor') {
|
|
50
|
+
finding.severity = severity;
|
|
51
|
+
}
|
|
52
|
+
return finding;
|
|
23
53
|
}
|
|
24
54
|
function filterWellFormed(raw, guard) {
|
|
25
55
|
if (raw === undefined)
|
|
@@ -38,6 +68,24 @@ function filterWellFormed(raw, guard) {
|
|
|
38
68
|
}
|
|
39
69
|
return { items, dropped, malformedContainer: false };
|
|
40
70
|
}
|
|
71
|
+
function normalizeConstraintFindingList(raw) {
|
|
72
|
+
if (raw === undefined)
|
|
73
|
+
return { items: [], dropped: 0, malformedContainer: false };
|
|
74
|
+
if (!Array.isArray(raw))
|
|
75
|
+
return { items: [], dropped: 0, malformedContainer: true };
|
|
76
|
+
const items = [];
|
|
77
|
+
let dropped = 0;
|
|
78
|
+
for (const item of raw) {
|
|
79
|
+
const normalized = normalizeConstraintFinding(item);
|
|
80
|
+
if (normalized) {
|
|
81
|
+
items.push(normalized);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
dropped += 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return { items, dropped, malformedContainer: false };
|
|
88
|
+
}
|
|
41
89
|
function appendEngineerIssue(report, issue) {
|
|
42
90
|
const existing = Array.isArray(report['issues'])
|
|
43
91
|
? report['issues'].filter((item) => typeof item === 'string')
|
|
@@ -136,13 +184,13 @@ function applyConstraintDefaults(parsed) {
|
|
|
136
184
|
}
|
|
137
185
|
}
|
|
138
186
|
if (next['archetype'] === 'reviewer') {
|
|
139
|
-
const normalized =
|
|
187
|
+
const normalized = normalizeConstraintFindingList(next['constraintFindings']);
|
|
140
188
|
next['constraintFindings'] = normalized.items;
|
|
141
189
|
if (normalized.malformedContainer) {
|
|
142
|
-
appendReviewerIssue(next, 'Malformed constraintFindings field ignored: expected an array.');
|
|
190
|
+
appendReviewerIssue(next, 'Malformed constraintFindings field ignored: expected an array of {constraintId:string,satisfied:boolean,evidence:string,severity?:critical|major|minor}.');
|
|
143
191
|
}
|
|
144
192
|
else if (normalized.dropped > 0) {
|
|
145
|
-
appendReviewerIssue(next, `Malformed constraintFindings ignored: ${normalized.dropped} entr${normalized.dropped === 1 ? 'y' : 'ies'}.`);
|
|
193
|
+
appendReviewerIssue(next, `Malformed constraintFindings ignored: ${normalized.dropped} entr${normalized.dropped === 1 ? 'y' : 'ies'}; expected {constraintId:string,satisfied:boolean,evidence:string,severity?:critical|major|minor}.`);
|
|
146
194
|
}
|
|
147
195
|
}
|
|
148
196
|
return next;
|
|
@@ -10,6 +10,7 @@ export * from './session.js';
|
|
|
10
10
|
export * from './worktree.js';
|
|
11
11
|
export * from './wrfc-config.js';
|
|
12
12
|
export * from './wrfc-controller.js';
|
|
13
|
+
export * from './wrfc-external-adapter.js';
|
|
13
14
|
export * from './wrfc-gate-runtime.js';
|
|
14
15
|
export * from './wrfc-gates.js';
|
|
15
16
|
export * from './wrfc-plan-sync.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
|
@@ -10,6 +10,7 @@ export * from './session.js';
|
|
|
10
10
|
export * from './worktree.js';
|
|
11
11
|
export * from './wrfc-config.js';
|
|
12
12
|
export * from './wrfc-controller.js';
|
|
13
|
+
export * from './wrfc-external-adapter.js';
|
|
13
14
|
export * from './wrfc-gate-runtime.js';
|
|
14
15
|
export * from './wrfc-gates.js';
|
|
15
16
|
export * from './wrfc-plan-sync.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentMessageBus } from './message-bus.js';
|
|
2
|
-
import type { WrfcChain } from './wrfc-types.js';
|
|
2
|
+
import type { WrfcChain, WrfcChildRouteSelector } from './wrfc-types.js';
|
|
3
3
|
import { WrfcWorkmap } from './wrfc-workmap.js';
|
|
4
4
|
import { AgentWorktree } from './worktree.js';
|
|
5
5
|
import type { ConfigManager } from '../config/manager.js';
|
|
@@ -14,9 +14,6 @@ export declare class WrfcController {
|
|
|
14
14
|
private chainQueue;
|
|
15
15
|
private unsubscribers;
|
|
16
16
|
private activeChainCount;
|
|
17
|
-
private readonly pendingParentChainIds;
|
|
18
|
-
/** Constraints to inherit when a gate-retry child chain is created via the pending path. */
|
|
19
|
-
private readonly pendingParentConstraints;
|
|
20
17
|
private readonly sessionId;
|
|
21
18
|
private readonly workmap;
|
|
22
19
|
private readonly projectRoot;
|
|
@@ -26,25 +23,30 @@ export declare class WrfcController {
|
|
|
26
23
|
private readonly agentManager;
|
|
27
24
|
private readonly configManager;
|
|
28
25
|
private readonly createWorktree;
|
|
26
|
+
private readonly selectChildRoute;
|
|
29
27
|
constructor(runtimeBus: RuntimeEventBus, messageBus: Pick<AgentMessageBus, 'registerAgent'>, deps: {
|
|
30
28
|
readonly agentManager: AgentManagerLike;
|
|
31
29
|
readonly configManager: Pick<ConfigManager, 'get' | 'getCategory'>;
|
|
32
30
|
readonly projectRoot: string;
|
|
33
31
|
readonly surfaceRoot?: string | undefined;
|
|
34
32
|
readonly createWorktree?: (() => WrfcWorktreeOps) | undefined;
|
|
33
|
+
readonly selectChildRoute?: WrfcChildRouteSelector | undefined;
|
|
35
34
|
});
|
|
36
|
-
createChain(
|
|
35
|
+
createChain(ownerRecord: AgentRecord): WrfcChain;
|
|
37
36
|
getSessionId(): string;
|
|
38
37
|
getWorkmap(): WrfcWorkmap;
|
|
39
38
|
setPlanManager(planManager: Pick<ExecutionPlanManager, 'getActive' | 'updateItem'>): void;
|
|
40
39
|
setRuntimeBus(runtimeBus: RuntimeEventBus): void;
|
|
41
40
|
getChain(chainId: string): WrfcChain | null;
|
|
42
41
|
listChains(): WrfcChain[];
|
|
42
|
+
resumeChain(chainId: string): boolean;
|
|
43
|
+
resumeAllActiveChains(): number;
|
|
43
44
|
dispose(): void;
|
|
44
45
|
private transition;
|
|
45
46
|
private setupListeners;
|
|
46
47
|
private onAgentComplete;
|
|
47
48
|
private onAgentFailed;
|
|
49
|
+
private onAgentCancelled;
|
|
48
50
|
private startReview;
|
|
49
51
|
private processReview;
|
|
50
52
|
private startFix;
|
|
@@ -55,17 +57,23 @@ export declare class WrfcController {
|
|
|
55
57
|
private checkAndRunGatesForAll;
|
|
56
58
|
private autoCommit;
|
|
57
59
|
private failChain;
|
|
60
|
+
private cancelRunningChildren;
|
|
61
|
+
private hasRunningChild;
|
|
62
|
+
private cancelChain;
|
|
58
63
|
private dequeueNext;
|
|
59
64
|
private findChainByAgentId;
|
|
60
65
|
private generateWrfcId;
|
|
66
|
+
private generateDecisionId;
|
|
67
|
+
private appendOwnerDecision;
|
|
61
68
|
private completeCurrentNode;
|
|
62
69
|
private failCurrentNode;
|
|
63
70
|
private createBaseChain;
|
|
64
|
-
private attachPendingParentChain;
|
|
65
71
|
private startEngineeringChain;
|
|
66
72
|
private handleEngineerCompletion;
|
|
67
73
|
private spawnWrfcAgent;
|
|
74
|
+
private withRouteReason;
|
|
68
75
|
private completeChainAsPassed;
|
|
76
|
+
private completeOwnerAgent;
|
|
69
77
|
private safeDequeueNext;
|
|
70
78
|
}
|
|
71
79
|
//# sourceMappingURL=wrfc-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrfc-controller.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/wrfc-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AASnD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"wrfc-controller.d.ts","sourceRoot":"","sources":["../../../src/platform/agents/wrfc-controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AASnD,OAAO,KAAK,EAGV,SAAS,EACT,sBAAsB,EAIvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,K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