@resolveio/server-lib 22.3.158 → 22.3.159
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/methods/ai-terminal.d.ts +1 -0
- package/methods/ai-terminal.js +133 -3
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +1 -1
- package/util/ai-run-evidence-adapters.d.ts +37 -0
- package/util/ai-run-evidence-adapters.js +988 -79
- package/util/ai-run-evidence-adapters.js.map +1 -1
- package/util/ai-run-evidence.d.ts +1 -1
- package/util/ai-run-evidence.js.map +1 -1
- package/util/ai-runner-manager-autopilot.d.ts +99 -1
- package/util/ai-runner-manager-autopilot.js +370 -41
- package/util/ai-runner-manager-autopilot.js.map +1 -1
- package/util/ai-runner-manager-policy.d.ts +159 -0
- package/util/ai-runner-manager-policy.js +782 -30
- package/util/ai-runner-manager-policy.js.map +1 -1
- package/util/aicoder-runner-v6.d.ts +93 -3
- package/util/aicoder-runner-v6.js +699 -27
- package/util/aicoder-runner-v6.js.map +1 -1
- package/util/support-runner-v5.d.ts +190 -2
- package/util/support-runner-v5.js +1131 -74
- package/util/support-runner-v5.js.map +1 -1
|
@@ -46,6 +46,16 @@ export interface ResolveIOAICoderV6WorkflowQaRow {
|
|
|
46
46
|
action?: string;
|
|
47
47
|
assertion?: string;
|
|
48
48
|
expectedState?: string;
|
|
49
|
+
expectedOutput?: string;
|
|
50
|
+
proofKind?: string;
|
|
51
|
+
acceptanceGate?: 'aiqa_business_assertion';
|
|
52
|
+
requiredArtifacts?: string[];
|
|
53
|
+
stateTransition?: {
|
|
54
|
+
before?: string;
|
|
55
|
+
action?: string;
|
|
56
|
+
after?: string;
|
|
57
|
+
assertion?: string;
|
|
58
|
+
};
|
|
49
59
|
status?: string;
|
|
50
60
|
artifactPaths?: string[];
|
|
51
61
|
}
|
|
@@ -72,6 +82,75 @@ export interface ResolveIOAICoderJourneyContractValidationResult {
|
|
|
72
82
|
workflowQaRows: ResolveIOAICoderV6WorkflowQaRow[];
|
|
73
83
|
primaryWorkflowId: string;
|
|
74
84
|
}
|
|
85
|
+
export type ResolveIOAICoderWorkflowProofReadinessStatus = 'ready' | 'missing_journey_contract' | 'journey_invalid' | 'route_only' | 'workflow_qa_missing' | 'workflow_qa_incomplete' | 'business_proof_missing' | 'business_proof_weak' | 'sample_data_missing' | 'release_blocked' | 'stale_workflow_proof' | 'blocked';
|
|
86
|
+
export interface ResolveIOAICoderWorkflowProofReadinessInput {
|
|
87
|
+
journeyContract?: any;
|
|
88
|
+
journeyContractMarkdown?: string;
|
|
89
|
+
workflowQaRows?: ResolveIOAICoderV6WorkflowQaRow[];
|
|
90
|
+
businessAssertions?: Array<Record<string, any>>;
|
|
91
|
+
routeProbes?: Array<Record<string, any>>;
|
|
92
|
+
artifactPaths?: string[];
|
|
93
|
+
scorecardPassed?: boolean;
|
|
94
|
+
deployStatus?: string;
|
|
95
|
+
publishStatus?: string;
|
|
96
|
+
sampleDataStatus?: string;
|
|
97
|
+
previousWorkflowProofFingerprint?: string;
|
|
98
|
+
previousArtifactFingerprint?: string;
|
|
99
|
+
previousWorkflowProofFingerprints?: string[];
|
|
100
|
+
previousArtifactFingerprints?: string[];
|
|
101
|
+
now?: Date | string;
|
|
102
|
+
}
|
|
103
|
+
export type ResolveIOAICoderWorkflowProofFreshness = 'fresh' | 'same_as_previous' | 'stale_artifact' | 'missing' | 'unknown';
|
|
104
|
+
export interface ResolveIOAICoderWorkflowProofReadiness {
|
|
105
|
+
ready: boolean;
|
|
106
|
+
status: ResolveIOAICoderWorkflowProofReadinessStatus;
|
|
107
|
+
reason: string;
|
|
108
|
+
blockers: string[];
|
|
109
|
+
journeyContractValid: boolean;
|
|
110
|
+
primaryWorkflowId: string;
|
|
111
|
+
passedWorkflowRows: string[];
|
|
112
|
+
missingWorkflowRows: string[];
|
|
113
|
+
failedWorkflowRows: string[];
|
|
114
|
+
passedBusinessAssertions: string[];
|
|
115
|
+
routeOnly: boolean;
|
|
116
|
+
scorecardOnly: boolean;
|
|
117
|
+
sampleDataReady: boolean;
|
|
118
|
+
releaseBlockers: string[];
|
|
119
|
+
artifactPaths: string[];
|
|
120
|
+
workflowProofFingerprint: string;
|
|
121
|
+
artifactFingerprint: string;
|
|
122
|
+
proofFreshness: ResolveIOAICoderWorkflowProofFreshness;
|
|
123
|
+
nextAction: string;
|
|
124
|
+
evaluatedAt: string;
|
|
125
|
+
}
|
|
126
|
+
export type ResolveIOAICoderV6ContinuationAction = 'continue' | 'retry_same_step' | 'switch_to_repair' | 'park' | 'budget_stop' | 'infra_retry' | 'ready_to_publish';
|
|
127
|
+
export type ResolveIOAICoderWorkflowReadinessStatus = 'journey_contract_required' | 'journey_contract_repair_required' | 'workflow_build_ready' | 'workflow_qa_required' | 'workflow_business_proof_ready' | 'release_repair_required' | 'infra_repair_only' | 'compile_repair_only' | 'collect_new_evidence' | 'budget_stopped' | 'parked';
|
|
128
|
+
export type ResolveIOAICoderWorkflowReadinessGate = 'journey_contract' | 'build' | 'workflow_qa' | 'release' | 'infra' | 'compile' | 'evidence' | 'manual';
|
|
129
|
+
export interface ResolveIOAICoderWorkflowReadiness {
|
|
130
|
+
status: ResolveIOAICoderWorkflowReadinessStatus;
|
|
131
|
+
nextGate: ResolveIOAICoderWorkflowReadinessGate;
|
|
132
|
+
nextLane: ResolveIOAICoderV6Lane;
|
|
133
|
+
nextStep: ResolveIOAICoderV6StepType;
|
|
134
|
+
nextCommand: string;
|
|
135
|
+
journeyContractReady: boolean;
|
|
136
|
+
workflowQaRowsReady: boolean;
|
|
137
|
+
businessProofReady: boolean;
|
|
138
|
+
routeOnlyBlocked: boolean;
|
|
139
|
+
releaseBlocked: boolean;
|
|
140
|
+
infraOnly: boolean;
|
|
141
|
+
compileOnly: boolean;
|
|
142
|
+
sameFailureParked: boolean;
|
|
143
|
+
canRunProductRepair: boolean;
|
|
144
|
+
canRunWorkflowQa: boolean;
|
|
145
|
+
canPublish: boolean;
|
|
146
|
+
canPolishWowUi: boolean;
|
|
147
|
+
requiresHumanDecision: boolean;
|
|
148
|
+
reason: string;
|
|
149
|
+
blockers: string[];
|
|
150
|
+
primaryWorkflowId: string;
|
|
151
|
+
activeWorkflowStep: string;
|
|
152
|
+
businessProofArtifacts: string[];
|
|
153
|
+
}
|
|
75
154
|
export interface ResolveIOAICoderV6SupervisorState {
|
|
76
155
|
version: 'v6';
|
|
77
156
|
runKind: ResolveIOAICoderV6RunKind;
|
|
@@ -115,7 +194,7 @@ export interface ResolveIOAICoderV6StepRecord {
|
|
|
115
194
|
evidenceHash?: string;
|
|
116
195
|
changedFiles?: string[];
|
|
117
196
|
artifactPaths?: string[];
|
|
118
|
-
nextAction?:
|
|
197
|
+
nextAction?: ResolveIOAICoderV6ContinuationAction;
|
|
119
198
|
recordedAt: string;
|
|
120
199
|
}
|
|
121
200
|
export interface ResolveIOAICoderV6RunnerIncident {
|
|
@@ -141,6 +220,7 @@ export interface ResolveIOAICoderV6StateBundle {
|
|
|
141
220
|
aiCoderV6RecoveryAction?: ResolveIOAIManagerRecoveryActionPacket;
|
|
142
221
|
aiCoderV6RecoveryDispatchHistory?: ResolveIOAIManagerRecoveryActionDispatchRecord[];
|
|
143
222
|
aiCoderV6RecoveryDirective?: ResolveIOAIManagerRecoveryExecutionDirective;
|
|
223
|
+
aiCoderV6WorkflowReadiness?: ResolveIOAICoderWorkflowReadiness;
|
|
144
224
|
}
|
|
145
225
|
export interface ResolveIOAICoderV6InitializeInput {
|
|
146
226
|
runKind: ResolveIOAICoderV6RunKind;
|
|
@@ -183,16 +263,17 @@ export interface ResolveIOAICoderV6StepInput {
|
|
|
183
263
|
changedFiles?: string[];
|
|
184
264
|
artifactPaths?: string[];
|
|
185
265
|
activeQaRow?: ResolveIOAICoderV6LaneMemory['activeQaRow'];
|
|
186
|
-
nextAction?:
|
|
266
|
+
nextAction?: ResolveIOAICoderV6ContinuationAction;
|
|
187
267
|
now?: Date | string;
|
|
188
268
|
}
|
|
189
269
|
export interface ResolveIOAICoderV6ContinuationDecision {
|
|
190
|
-
action:
|
|
270
|
+
action: ResolveIOAICoderV6ContinuationAction;
|
|
191
271
|
reason: string;
|
|
192
272
|
nextLane: ResolveIOAICoderV6Lane;
|
|
193
273
|
nextStep: ResolveIOAICoderV6StepType;
|
|
194
274
|
repeatedNoProgressCount: number;
|
|
195
275
|
budgetExceeded: boolean;
|
|
276
|
+
workflowReadiness: ResolveIOAICoderWorkflowReadiness;
|
|
196
277
|
recoveryPlan: ResolveIOAIManagerRecoveryPlan;
|
|
197
278
|
recoveryCheckpoint: ResolveIOAIManagerRecoveryCheckpoint;
|
|
198
279
|
recoveryEvidenceProbe: ResolveIOAIManagerRecoveryEvidenceProbe;
|
|
@@ -208,7 +289,16 @@ export declare function collectResolveIOAICoderJourneyContractIssues(input: any,
|
|
|
208
289
|
pathLabel?: string;
|
|
209
290
|
requireMarkdownEnvelope?: boolean;
|
|
210
291
|
}): string[];
|
|
292
|
+
export declare function evaluateResolveIOAICoderWorkflowProofReadiness(input?: ResolveIOAICoderWorkflowProofReadinessInput): ResolveIOAICoderWorkflowProofReadiness;
|
|
211
293
|
export declare function fingerprintResolveIOAICoderV6Blocker(value: any): string;
|
|
294
|
+
export declare function buildResolveIOAICoderV6WorkflowReadiness(bundle: ResolveIOAICoderV6StateBundle, context?: {
|
|
295
|
+
action?: ResolveIOAICoderV6ContinuationAction;
|
|
296
|
+
reason?: string;
|
|
297
|
+
nextLane?: ResolveIOAICoderV6Lane;
|
|
298
|
+
nextStep?: ResolveIOAICoderV6StepType;
|
|
299
|
+
budgetExceeded?: boolean;
|
|
300
|
+
repeatedNoProgressCount?: number;
|
|
301
|
+
}): ResolveIOAICoderWorkflowReadiness;
|
|
212
302
|
export declare function buildResolveIOAICoderV6Budget(existing?: Partial<ResolveIOAICoderV6Budget>): ResolveIOAICoderV6Budget;
|
|
213
303
|
export declare function initializeResolveIOAICoderV6State(input: ResolveIOAICoderV6InitializeInput): ResolveIOAICoderV6StateBundle;
|
|
214
304
|
export declare function recordResolveIOAICoderV6Step(bundle: ResolveIOAICoderV6StateBundle, step: ResolveIOAICoderV6StepInput): ResolveIOAICoderV6StateBundle;
|