@ai-dev-orchestrator/schemas 0.1.2 → 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.
@@ -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();
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod/v4';
2
2
  export declare const runStatusSchema: z.ZodEnum<{
3
+ completed: "completed";
4
+ aborted: "aborted";
3
5
  running: "running";
4
6
  paused: "paused";
5
- completed: "completed";
6
7
  failed: "failed";
7
- aborted: "aborted";
8
8
  waiting: "waiting";
9
9
  interrupted: "interrupted";
10
10
  }>;
@@ -99,11 +99,11 @@ export type DashboardSessionView = z.infer<typeof dashboardSessionViewSchema>;
99
99
  export declare const runStateViewSchema: z.ZodObject<{
100
100
  runId: z.ZodString;
101
101
  status: z.ZodEnum<{
102
+ completed: "completed";
103
+ aborted: "aborted";
102
104
  running: "running";
103
105
  paused: "paused";
104
- completed: "completed";
105
106
  failed: "failed";
106
- aborted: "aborted";
107
107
  waiting: "waiting";
108
108
  interrupted: "interrupted";
109
109
  }>;
@@ -1,3 +1,4 @@
1
1
  export * from './governance';
2
2
  export * from './policy-engine';
3
3
  export * from './review-resolution';
4
+ export * from './iteration-state-mapping';
@@ -1,3 +1,4 @@
1
1
  export * from './governance';
2
2
  export * from './policy-engine';
3
3
  export * from './review-resolution';
4
+ export * from './iteration-state-mapping';
@@ -0,0 +1,5 @@
1
+ /** Built-in contract membership and the states that start a counted round. */
2
+ export declare const ITERATION_STATE_MAPPING: Readonly<Partial<Record<string, {
3
+ contractId: string;
4
+ counter?: 'iteration' | 'judge';
5
+ }>>>;
@@ -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
+ };
@@ -56,8 +56,8 @@ export declare const runHistoryEntrySchema: z.ZodObject<{
56
56
  outcome: z.ZodEnum<{
57
57
  escalated: "escalated";
58
58
  completed: "completed";
59
- failed: "failed";
60
59
  aborted: "aborted";
60
+ failed: "failed";
61
61
  }>;
62
62
  compressed: z.ZodBoolean;
63
63
  keyFindings: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -75,8 +75,8 @@ export declare const runHistorySchema: z.ZodObject<{
75
75
  outcome: z.ZodEnum<{
76
76
  escalated: "escalated";
77
77
  completed: "completed";
78
- failed: "failed";
79
78
  aborted: "aborted";
79
+ failed: "failed";
80
80
  }>;
81
81
  compressed: z.ZodBoolean;
82
82
  keyFindings: z.ZodOptional<z.ZodArray<z.ZodString>>;