@ai-dev-orchestrator/schemas 0.1.1

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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/artifacts/agreement-artifacts.d.ts +311 -0
  4. package/dist/artifacts/agreement-artifacts.js +48 -0
  5. package/dist/artifacts/artifact-dependency-graph.d.ts +775 -0
  6. package/dist/artifacts/artifact-dependency-graph.js +57 -0
  7. package/dist/artifacts/artifact-system.d.ts +657 -0
  8. package/dist/artifacts/artifact-system.js +124 -0
  9. package/dist/artifacts/index.d.ts +3 -0
  10. package/dist/artifacts/index.js +3 -0
  11. package/dist/config/configuration.d.ts +324 -0
  12. package/dist/config/configuration.js +93 -0
  13. package/dist/config/event-bus-config.d.ts +153 -0
  14. package/dist/config/event-bus-config.js +27 -0
  15. package/dist/config/event-payloads.d.ts +919 -0
  16. package/dist/config/event-payloads.js +304 -0
  17. package/dist/config/event-system.d.ts +3231 -0
  18. package/dist/config/event-system.js +428 -0
  19. package/dist/config/event-types.d.ts +62 -0
  20. package/dist/config/event-types.js +66 -0
  21. package/dist/config/index.d.ts +5 -0
  22. package/dist/config/index.js +5 -0
  23. package/dist/dashboard/dashboard-api.d.ts +149 -0
  24. package/dist/dashboard/dashboard-api.js +80 -0
  25. package/dist/dashboard/dashboard-domain.d.ts +1076 -0
  26. package/dist/dashboard/dashboard-domain.js +305 -0
  27. package/dist/dashboard/index.d.ts +3 -0
  28. package/dist/dashboard/index.js +3 -0
  29. package/dist/dashboard/run-creation-params.d.ts +111 -0
  30. package/dist/dashboard/run-creation-params.js +14 -0
  31. package/dist/governance/governance.d.ts +1119 -0
  32. package/dist/governance/governance.js +111 -0
  33. package/dist/governance/index.d.ts +3 -0
  34. package/dist/governance/index.js +3 -0
  35. package/dist/governance/policy-engine.d.ts +634 -0
  36. package/dist/governance/policy-engine.js +214 -0
  37. package/dist/governance/review-resolution.d.ts +1053 -0
  38. package/dist/governance/review-resolution.js +67 -0
  39. package/dist/index.d.ts +10 -0
  40. package/dist/index.js +10 -0
  41. package/dist/observability/diagnostics.d.ts +185 -0
  42. package/dist/observability/diagnostics.js +63 -0
  43. package/dist/observability/index.d.ts +2 -0
  44. package/dist/observability/index.js +2 -0
  45. package/dist/observability/metrics.d.ts +187 -0
  46. package/dist/observability/metrics.js +67 -0
  47. package/dist/persistence/execution-analytics.d.ts +173 -0
  48. package/dist/persistence/execution-analytics.js +71 -0
  49. package/dist/persistence/index.d.ts +5 -0
  50. package/dist/persistence/index.js +5 -0
  51. package/dist/persistence/project-context.d.ts +164 -0
  52. package/dist/persistence/project-context.js +88 -0
  53. package/dist/persistence/repository-model.d.ts +27 -0
  54. package/dist/persistence/repository-model.js +16 -0
  55. package/dist/persistence/run-manifest.d.ts +422 -0
  56. package/dist/persistence/run-manifest.js +118 -0
  57. package/dist/persistence/state-persistence.d.ts +276 -0
  58. package/dist/persistence/state-persistence.js +83 -0
  59. package/dist/runner/built-in-runner-ids.d.ts +8 -0
  60. package/dist/runner/built-in-runner-ids.js +11 -0
  61. package/dist/runner/collaboration-model.d.ts +100 -0
  62. package/dist/runner/collaboration-model.js +19 -0
  63. package/dist/runner/confidence.d.ts +17 -0
  64. package/dist/runner/confidence.js +11 -0
  65. package/dist/runner/index.d.ts +8 -0
  66. package/dist/runner/index.js +8 -0
  67. package/dist/runner/permission-approval.d.ts +38 -0
  68. package/dist/runner/permission-approval.js +14 -0
  69. package/dist/runner/prompt-engine.d.ts +1467 -0
  70. package/dist/runner/prompt-engine.js +193 -0
  71. package/dist/runner/role-system.d.ts +458 -0
  72. package/dist/runner/role-system.js +94 -0
  73. package/dist/runner/runner-system.d.ts +1721 -0
  74. package/dist/runner/runner-system.js +268 -0
  75. package/dist/runner/task-brief.d.ts +18 -0
  76. package/dist/runner/task-brief.js +12 -0
  77. package/dist/shared/index.d.ts +3 -0
  78. package/dist/shared/index.js +3 -0
  79. package/dist/shared/shared.d.ts +30 -0
  80. package/dist/shared/shared.js +27 -0
  81. package/dist/shared/string-enums.d.ts +59 -0
  82. package/dist/shared/string-enums.js +24 -0
  83. package/dist/shared/utils.d.ts +25 -0
  84. package/dist/shared/utils.js +22 -0
  85. package/dist/specification/canonical-specification.d.ts +475 -0
  86. package/dist/specification/canonical-specification.js +151 -0
  87. package/dist/specification/index.d.ts +3 -0
  88. package/dist/specification/index.js +3 -0
  89. package/dist/specification/intake.d.ts +419 -0
  90. package/dist/specification/intake.js +70 -0
  91. package/dist/specification/iteration-contracts.d.ts +421 -0
  92. package/dist/specification/iteration-contracts.js +61 -0
  93. package/dist/workflow/index.d.ts +4 -0
  94. package/dist/workflow/index.js +4 -0
  95. package/dist/workflow/workflow-dsl.d.ts +81 -0
  96. package/dist/workflow/workflow-dsl.js +38 -0
  97. package/dist/workflow/workflow-engine.d.ts +5788 -0
  98. package/dist/workflow/workflow-engine.js +414 -0
  99. package/dist/workflow/workflow-file.d.ts +331 -0
  100. package/dist/workflow/workflow-file.js +41 -0
  101. package/dist/workflow/workflow-journal.d.ts +520 -0
  102. package/dist/workflow/workflow-journal.js +151 -0
  103. package/package.json +39 -0
@@ -0,0 +1,153 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const eventFilterSchema: z.ZodObject<{
3
+ types: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
4
+ "run.started": "run.started";
5
+ "run.completed": "run.completed";
6
+ "run.aborted": "run.aborted";
7
+ "run.resumed": "run.resumed";
8
+ "run.paused": "run.paused";
9
+ "state.entered": "state.entered";
10
+ "state.exited": "state.exited";
11
+ "transition.requested": "transition.requested";
12
+ "transition.completed": "transition.completed";
13
+ "transition.denied": "transition.denied";
14
+ "worker.dispatched": "worker.dispatched";
15
+ "worker.completed": "worker.completed";
16
+ "worker.failed": "worker.failed";
17
+ "worker.retried": "worker.retried";
18
+ "worker.cancelled": "worker.cancelled";
19
+ "worker.timeout": "worker.timeout";
20
+ "artifact.stored": "artifact.stored";
21
+ "artifact.verified": "artifact.verified";
22
+ "artifact.invalidated": "artifact.invalidated";
23
+ "governance.decision": "governance.decision";
24
+ "governance.agreement_produced": "governance.agreement_produced";
25
+ "governance.escalation_triggered": "governance.escalation_triggered";
26
+ "policy.evaluated": "policy.evaluated";
27
+ "policy.denied": "policy.denied";
28
+ "policy.escalated": "policy.escalated";
29
+ "finding.raised": "finding.raised";
30
+ "finding.addressed": "finding.addressed";
31
+ "finding.accepted": "finding.accepted";
32
+ "finding.rejected": "finding.rejected";
33
+ "finding.escalated": "finding.escalated";
34
+ "human.input_requested": "human.input_requested";
35
+ "human.input_received": "human.input_received";
36
+ "human.approval_granted": "human.approval_granted";
37
+ "human.approval_denied": "human.approval_denied";
38
+ "human.timeout": "human.timeout";
39
+ "human.permission_requested": "human.permission_requested";
40
+ "human.permission_granted": "human.permission_granted";
41
+ "human.permission_denied": "human.permission_denied";
42
+ "human.clarification_requested": "human.clarification_requested";
43
+ "human.clarification_answered": "human.clarification_answered";
44
+ "checkpoint.saved": "checkpoint.saved";
45
+ "checkpoint.restored": "checkpoint.restored";
46
+ "system.error": "system.error";
47
+ "system.warning": "system.warning";
48
+ }>>>>;
49
+ source: z.ZodOptional<z.ZodEnum<{
50
+ governance: "governance";
51
+ system: "system";
52
+ workflow_engine: "workflow_engine";
53
+ runner_system: "runner_system";
54
+ policy_engine: "policy_engine";
55
+ artifact_system: "artifact_system";
56
+ state_persistence: "state_persistence";
57
+ human_interaction: "human_interaction";
58
+ provider: "provider";
59
+ }>>;
60
+ correlationId: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strip>;
62
+ export type EventFilter = z.infer<typeof eventFilterSchema>;
63
+ export declare const subscriptionOptionsSchema: z.ZodObject<{
64
+ mode: z.ZodEnum<{
65
+ sync: "sync";
66
+ async: "async";
67
+ }>;
68
+ priority: z.ZodOptional<z.ZodNumber>;
69
+ name: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>;
71
+ export type SubscriptionOptions = z.infer<typeof subscriptionOptionsSchema>;
72
+ export declare const subscriptionSchema: z.ZodObject<{
73
+ id: z.ZodString;
74
+ filter: z.ZodObject<{
75
+ types: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
76
+ "run.started": "run.started";
77
+ "run.completed": "run.completed";
78
+ "run.aborted": "run.aborted";
79
+ "run.resumed": "run.resumed";
80
+ "run.paused": "run.paused";
81
+ "state.entered": "state.entered";
82
+ "state.exited": "state.exited";
83
+ "transition.requested": "transition.requested";
84
+ "transition.completed": "transition.completed";
85
+ "transition.denied": "transition.denied";
86
+ "worker.dispatched": "worker.dispatched";
87
+ "worker.completed": "worker.completed";
88
+ "worker.failed": "worker.failed";
89
+ "worker.retried": "worker.retried";
90
+ "worker.cancelled": "worker.cancelled";
91
+ "worker.timeout": "worker.timeout";
92
+ "artifact.stored": "artifact.stored";
93
+ "artifact.verified": "artifact.verified";
94
+ "artifact.invalidated": "artifact.invalidated";
95
+ "governance.decision": "governance.decision";
96
+ "governance.agreement_produced": "governance.agreement_produced";
97
+ "governance.escalation_triggered": "governance.escalation_triggered";
98
+ "policy.evaluated": "policy.evaluated";
99
+ "policy.denied": "policy.denied";
100
+ "policy.escalated": "policy.escalated";
101
+ "finding.raised": "finding.raised";
102
+ "finding.addressed": "finding.addressed";
103
+ "finding.accepted": "finding.accepted";
104
+ "finding.rejected": "finding.rejected";
105
+ "finding.escalated": "finding.escalated";
106
+ "human.input_requested": "human.input_requested";
107
+ "human.input_received": "human.input_received";
108
+ "human.approval_granted": "human.approval_granted";
109
+ "human.approval_denied": "human.approval_denied";
110
+ "human.timeout": "human.timeout";
111
+ "human.permission_requested": "human.permission_requested";
112
+ "human.permission_granted": "human.permission_granted";
113
+ "human.permission_denied": "human.permission_denied";
114
+ "human.clarification_requested": "human.clarification_requested";
115
+ "human.clarification_answered": "human.clarification_answered";
116
+ "checkpoint.saved": "checkpoint.saved";
117
+ "checkpoint.restored": "checkpoint.restored";
118
+ "system.error": "system.error";
119
+ "system.warning": "system.warning";
120
+ }>>>>;
121
+ source: z.ZodOptional<z.ZodEnum<{
122
+ governance: "governance";
123
+ system: "system";
124
+ workflow_engine: "workflow_engine";
125
+ runner_system: "runner_system";
126
+ policy_engine: "policy_engine";
127
+ artifact_system: "artifact_system";
128
+ state_persistence: "state_persistence";
129
+ human_interaction: "human_interaction";
130
+ provider: "provider";
131
+ }>>;
132
+ correlationId: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strip>;
134
+ options: z.ZodObject<{
135
+ mode: z.ZodEnum<{
136
+ sync: "sync";
137
+ async: "async";
138
+ }>;
139
+ priority: z.ZodOptional<z.ZodNumber>;
140
+ name: z.ZodOptional<z.ZodString>;
141
+ }, z.core.$strip>;
142
+ }, z.core.$strip>;
143
+ export type Subscription = z.infer<typeof subscriptionSchema>;
144
+ export declare const eventBusConfigSchema: z.ZodObject<{
145
+ syncTimeout: z.ZodOptional<z.ZodNumber>;
146
+ asyncTimeout: z.ZodOptional<z.ZodNumber>;
147
+ maxAsyncQueueSize: z.ZodOptional<z.ZodNumber>;
148
+ overflowStrategy: z.ZodOptional<z.ZodEnum<{
149
+ "drop-oldest": "drop-oldest";
150
+ }>>;
151
+ maxConsecutiveFailures: z.ZodOptional<z.ZodNumber>;
152
+ }, z.core.$strip>;
153
+ export type EventBusConfig = z.infer<typeof eventBusConfigSchema>;
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod/v4';
2
+ import { eventSourceSchema, eventTypeSchema } from './event-types';
3
+ // ---------------------------------------------------------------------------
4
+ // Event filter / subscription / config types
5
+ // ---------------------------------------------------------------------------
6
+ export const eventFilterSchema = z.object({
7
+ types: z.array(eventTypeSchema).readonly().optional(),
8
+ source: eventSourceSchema.optional(),
9
+ correlationId: z.string().optional(),
10
+ });
11
+ export const subscriptionOptionsSchema = z.object({
12
+ mode: z.enum(['sync', 'async']),
13
+ priority: z.number().optional(),
14
+ name: z.string().optional(),
15
+ });
16
+ export const subscriptionSchema = z.object({
17
+ id: z.string(),
18
+ filter: eventFilterSchema,
19
+ options: subscriptionOptionsSchema,
20
+ });
21
+ export const eventBusConfigSchema = z.object({
22
+ syncTimeout: z.number().optional(),
23
+ asyncTimeout: z.number().optional(),
24
+ maxAsyncQueueSize: z.number().optional(),
25
+ overflowStrategy: z.enum(['drop-oldest']).optional(),
26
+ maxConsecutiveFailures: z.number().optional(),
27
+ });