@ai-dev-orchestrator/schemas 0.1.3 → 0.1.4
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/config/event-payloads.d.ts +1 -1
- package/dist/config/event-system.d.ts +2 -2
- package/dist/dashboard/dashboard-api.d.ts +6 -0
- package/dist/dashboard/dashboard-api.js +2 -0
- package/dist/governance/index.d.ts +1 -0
- package/dist/governance/index.js +1 -0
- package/dist/governance/iteration-state-mapping.d.ts +5 -0
- package/dist/governance/iteration-state-mapping.js +13 -0
- package/dist/persistence/state-persistence.d.ts +1804 -0
- package/dist/persistence/state-persistence.js +26 -0
- package/dist/runner/runner-system.d.ts +13 -5
- package/dist/runner/runner-system.js +11 -4
- package/dist/workflow/workflow-engine.d.ts +234 -7
- package/dist/workflow/workflow-engine.js +14 -0
- package/dist/workflow/workflow-file.d.ts +1 -1
- package/dist/workflow/workflow-journal.d.ts +4618 -3
- package/dist/workflow/workflow-journal.js +15 -0
- package/package.json +2 -2
|
@@ -742,8 +742,8 @@ export type FindingEscalatedData = z.infer<typeof findingEscalatedDataSchema>;
|
|
|
742
742
|
export declare const humanInputRequestedDataSchema: z.ZodObject<{
|
|
743
743
|
requestType: z.ZodEnum<{
|
|
744
744
|
clarification: "clarification";
|
|
745
|
-
review: "review";
|
|
746
745
|
approval: "approval";
|
|
746
|
+
review: "review";
|
|
747
747
|
decision: "decision";
|
|
748
748
|
}>;
|
|
749
749
|
context: z.ZodString;
|
|
@@ -1139,8 +1139,8 @@ export declare const eventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1139
1139
|
data: z.ZodObject<{
|
|
1140
1140
|
requestType: z.ZodEnum<{
|
|
1141
1141
|
clarification: "clarification";
|
|
1142
|
-
review: "review";
|
|
1143
1142
|
approval: "approval";
|
|
1143
|
+
review: "review";
|
|
1144
1144
|
decision: "decision";
|
|
1145
1145
|
}>;
|
|
1146
1146
|
context: z.ZodString;
|
|
@@ -2757,8 +2757,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2757
2757
|
data: z.ZodObject<{
|
|
2758
2758
|
requestType: z.ZodEnum<{
|
|
2759
2759
|
clarification: "clarification";
|
|
2760
|
-
review: "review";
|
|
2761
2760
|
approval: "approval";
|
|
2761
|
+
review: "review";
|
|
2762
2762
|
decision: "decision";
|
|
2763
2763
|
}>;
|
|
2764
2764
|
context: z.ZodString;
|
|
@@ -2,6 +2,12 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
export declare const dashboardActionResultSchema: z.ZodObject<{
|
|
3
3
|
success: z.ZodBoolean;
|
|
4
4
|
error: z.ZodOptional<z.ZodString>;
|
|
5
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
aborted: "aborted";
|
|
7
|
+
started: "started";
|
|
8
|
+
already_terminal: "already_terminal";
|
|
9
|
+
}>>;
|
|
10
|
+
finalState: z.ZodOptional<z.ZodString>;
|
|
5
11
|
runId: z.ZodOptional<z.ZodString>;
|
|
6
12
|
}, z.core.$loose>;
|
|
7
13
|
export type DashboardActionResult = z.infer<typeof dashboardActionResultSchema>;
|
|
@@ -9,6 +9,8 @@ export const dashboardActionResultSchema = z
|
|
|
9
9
|
.object({
|
|
10
10
|
success: z.boolean(),
|
|
11
11
|
error: z.string().optional(),
|
|
12
|
+
outcome: z.enum(['started', 'aborted', 'already_terminal']).optional(),
|
|
13
|
+
finalState: z.string().optional(),
|
|
12
14
|
runId: z.string().optional(),
|
|
13
15
|
})
|
|
14
16
|
.loose();
|
package/dist/governance/index.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Built-in contract membership and the states that start a counted round. */
|
|
2
|
+
export const ITERATION_STATE_MAPPING = {
|
|
3
|
+
PLAN_REVIEW: { contractId: 'plan_review_loop', counter: 'iteration' },
|
|
4
|
+
CODE_REVIEW: { contractId: 'implementation_review_loop', counter: 'iteration' },
|
|
5
|
+
REVIEW_SYNTHESIS: { contractId: 'implementation_review_loop' },
|
|
6
|
+
IMPLEMENTATION: { contractId: 'implementation_review_loop' },
|
|
7
|
+
TEST_AUTHORING: { contractId: 'implementation_review_loop' },
|
|
8
|
+
JUDGE_REVIEW: { contractId: 'implementation_review_loop', counter: 'judge' },
|
|
9
|
+
REFINEMENT: { contractId: 'clarification_loop', counter: 'iteration' },
|
|
10
|
+
WAITING_FOR_HUMAN: { contractId: 'clarification_loop' },
|
|
11
|
+
ACCEPTANCE_VALIDATION: { contractId: 'acceptance_validation_loop', counter: 'iteration' },
|
|
12
|
+
DECOMPOSITION_REVIEW: { contractId: 'decomposition_review_loop', counter: 'iteration' },
|
|
13
|
+
};
|