@agentic-sdlc-kit/contracts 0.8.0 → 1.0.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.
- package/dist/agent/events.d.ts +18 -18
- package/dist/agent/execution.d.ts +22 -22
- package/dist/agent-tools/index.d.ts +85 -0
- package/dist/agent-tools/index.d.ts.map +1 -0
- package/dist/agent-tools/index.js +60 -0
- package/dist/agent-tools/index.js.map +1 -0
- package/dist/application/application-context.d.ts +194 -60
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +276 -114
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +18 -18
- package/dist/architecture/api-contract.d.ts +18 -18
- package/dist/architecture/architecture-options.d.ts +6 -6
- package/dist/architecture/component-map.d.ts +6 -6
- package/dist/architecture/data-model.d.ts +6 -6
- package/dist/architecture/operational-design.d.ts +6 -6
- package/dist/benchmark/bench.d.ts +330 -0
- package/dist/benchmark/bench.d.ts.map +1 -0
- package/dist/benchmark/bench.js +69 -0
- package/dist/benchmark/bench.js.map +1 -0
- package/dist/benchmark/index.d.ts +2 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +2 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/constitution/cli-output.d.ts +706 -0
- package/dist/constitution/cli-output.d.ts.map +1 -0
- package/dist/constitution/cli-output.js +37 -0
- package/dist/constitution/cli-output.js.map +1 -0
- package/dist/constitution/index.d.ts +4 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +4 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/result.d.ts +112 -0
- package/dist/constitution/result.d.ts.map +1 -0
- package/dist/constitution/result.js +67 -0
- package/dist/constitution/result.js.map +1 -0
- package/dist/constitution/rule.d.ts +488 -0
- package/dist/constitution/rule.d.ts.map +1 -0
- package/dist/constitution/rule.js +164 -0
- package/dist/constitution/rule.js.map +1 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/project-context.d.ts +275 -0
- package/dist/context/project-context.d.ts.map +1 -0
- package/dist/context/project-context.js +56 -0
- package/dist/context/project-context.js.map +1 -0
- package/dist/evaluation/benchmark.d.ts +12 -12
- package/dist/evaluation/metrics.d.ts +4 -4
- package/dist/evolution/improvement-hypothesis.d.ts +10 -10
- package/dist/execution/execution-profile.d.ts +130 -0
- package/dist/execution/execution-profile.d.ts.map +1 -0
- package/dist/execution/execution-profile.js +44 -0
- package/dist/execution/execution-profile.js.map +1 -0
- package/dist/execution/index.d.ts +2 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +2 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer/install-plan.d.ts +16 -16
- package/dist/installer/ownership-manifest.d.ts +10 -2
- package/dist/installer/ownership-manifest.d.ts.map +1 -1
- package/dist/installer/ownership-manifest.js +4 -0
- package/dist/installer/ownership-manifest.js.map +1 -1
- package/dist/installer/package-manifest.d.ts +6 -6
- package/dist/learning/engineering-lesson.d.ts +14 -14
- package/dist/learning/engineering-memory.d.ts +20 -2
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/engineering-memory.js +2 -0
- package/dist/learning/engineering-memory.js.map +1 -1
- package/dist/learning/experience-episode.d.ts +14 -14
- package/dist/learning/experience.d.ts +8 -8
- package/dist/learning/index.d.ts +1 -0
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/learning-event.d.ts +78 -0
- package/dist/learning/learning-event.d.ts.map +1 -0
- package/dist/learning/learning-event.js +37 -0
- package/dist/learning/learning-event.js.map +1 -0
- package/dist/learning/memory.d.ts +2 -2
- package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
- package/dist/maintenance/bug-report.d.ts +6 -6
- package/dist/maintenance/refactor-contract.d.ts +8 -8
- package/dist/maintenance/refactor-workflow.d.ts +4 -4
- package/dist/observer/event-schema.d.ts +6 -6
- package/dist/observer/journal.d.ts +10 -10
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +7 -0
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/run-summary.d.ts +12 -12
- package/dist/onboard/index.d.ts +2 -0
- package/dist/onboard/index.d.ts.map +1 -0
- package/dist/onboard/index.js +2 -0
- package/dist/onboard/index.js.map +1 -0
- package/dist/onboard/onboard-report.d.ts +349 -0
- package/dist/onboard/onboard-report.d.ts.map +1 -0
- package/dist/onboard/onboard-report.js +96 -0
- package/dist/onboard/onboard-report.js.map +1 -0
- package/dist/patterns/pattern.d.ts +2 -2
- package/dist/planning/task.d.ts +36 -36
- package/dist/policy/policy.d.ts +8 -8
- package/dist/product/product-brief.d.ts +6 -6
- package/dist/product/requirements.d.ts +48 -48
- package/dist/project/project-profile.d.ts +113 -2
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/project-profile.js +17 -2
- package/dist/project/project-profile.js.map +1 -1
- package/dist/routing/index.d.ts +1 -0
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -0
- package/dist/routing/index.js.map +1 -1
- package/dist/routing/measured-routing.d.ts +41 -0
- package/dist/routing/measured-routing.d.ts.map +1 -0
- package/dist/routing/measured-routing.js +24 -0
- package/dist/routing/measured-routing.js.map +1 -0
- package/dist/routing/routing-policy.d.ts +20 -20
- package/dist/routing/routing-request.d.ts +2 -2
- package/dist/runtime-guard/action-classification.d.ts +2 -2
- package/dist/runtime-guard/audit-event.d.ts +8 -8
- package/dist/runtime-guard/policy-schema.d.ts +4 -4
- package/dist/scaffolding/scaffold-contract.d.ts +59 -59
- package/dist/scaffolding/template-manifest.d.ts +15 -15
- package/dist/secret-guard/detection-rule.d.ts +5 -5
- package/dist/secret-guard/detection-rule.d.ts.map +1 -1
- package/dist/secret-guard/detection-rule.js +44 -0
- package/dist/secret-guard/detection-rule.js.map +1 -1
- package/dist/secret-guard/finding.d.ts +12 -12
- package/dist/secret-guard/finding.d.ts.map +1 -1
- package/dist/secret-guard/finding.js +2 -0
- package/dist/secret-guard/finding.js.map +1 -1
- package/dist/secret-guard/scanner-failure.d.ts +4 -4
- package/dist/specification/specification.d.ts +8 -8
- package/dist/stack-pack/manifest.d.ts +33 -4
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/stack-pack/manifest.js +22 -2
- package/dist/stack-pack/manifest.js.map +1 -1
- package/dist/verification/index.d.ts +1 -0
- package/dist/verification/index.d.ts.map +1 -1
- package/dist/verification/index.js +1 -0
- package/dist/verification/index.js.map +1 -1
- package/dist/verification/report.d.ts +118 -12
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/report.js +4 -0
- package/dist/verification/report.js.map +1 -1
- package/dist/verification/strength.d.ts +270 -0
- package/dist/verification/strength.d.ts.map +1 -0
- package/dist/verification/strength.js +168 -0
- package/dist/verification/strength.js.map +1 -0
- package/dist/workflow/next-action.d.ts +67 -6
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/next-action.js +23 -0
- package/dist/workflow/next-action.js.map +1 -1
- package/dist/workflow/workflow.d.ts +9 -8
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agent-tools/index.ts +81 -0
- package/src/benchmark/bench.ts +83 -0
- package/src/benchmark/index.ts +1 -0
- package/src/constitution/cli-output.ts +44 -0
- package/src/constitution/index.ts +3 -0
- package/src/constitution/result.test.ts +69 -0
- package/src/constitution/result.ts +74 -0
- package/src/constitution/rule-origin.test.ts +36 -0
- package/src/constitution/rule-path.test.ts +15 -0
- package/src/constitution/rule.test.ts +209 -0
- package/src/constitution/rule.ts +192 -0
- package/src/context/index.ts +1 -0
- package/src/context/project-context.ts +63 -0
- package/src/execution/execution-profile.ts +50 -0
- package/src/execution/index.ts +1 -0
- package/src/index.ts +16 -0
- package/src/installer/ownership-manifest.ts +4 -0
- package/src/learning/engineering-memory.ts +2 -0
- package/src/learning/index.ts +1 -0
- package/src/learning/learning-event.ts +42 -0
- package/src/observer/journal.ts +7 -0
- package/src/onboard/index.ts +1 -0
- package/src/onboard/onboard-report.test.ts +92 -0
- package/src/onboard/onboard-report.ts +115 -0
- package/src/project/project-profile.ts +19 -2
- package/src/routing/index.ts +1 -0
- package/src/routing/measured-routing.ts +27 -0
- package/src/secret-guard/detection-rule.ts +53 -0
- package/src/secret-guard/finding.ts +2 -0
- package/src/stack-pack/manifest.test.ts +45 -0
- package/src/stack-pack/manifest.ts +24 -2
- package/src/verification/index.ts +1 -0
- package/src/verification/report.ts +4 -0
- package/src/verification/strength.test.ts +160 -0
- package/src/verification/strength.ts +189 -0
- package/src/workflow/next-action.test.ts +25 -0
- package/src/workflow/next-action.ts +25 -0
- package/src/workflow/workflow.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measured-routing.d.ts","sourceRoot":"","sources":["../../src/routing/measured-routing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kCAAkC,EAAG,CAAU,CAAC;AAE7D,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAclC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// packages/contracts/src/routing/measured-routing.ts
|
|
2
|
+
//
|
|
3
|
+
// Empirical routing (roadmap Phase 7, issue #48). One observed run, with no free text: a prompt, a
|
|
4
|
+
// model reply or a source excerpt cannot be represented. Measured evidence can only refine the
|
|
5
|
+
// static M12 policy, never replace an explicit user model.
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
import { LearningTaskTypeSchema } from '../learning/learning-event.js';
|
|
8
|
+
export const ROUTING_OBSERVATION_SCHEMA_VERSION = 1;
|
|
9
|
+
export const MeasuredRoutingObservationSchema = z
|
|
10
|
+
.object({
|
|
11
|
+
schemaVersion: z.literal(ROUTING_OBSERVATION_SCHEMA_VERSION),
|
|
12
|
+
id: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_.-]{0,95}$/),
|
|
13
|
+
occurredAt: z.string().datetime(),
|
|
14
|
+
taskType: LearningTaskTypeSchema,
|
|
15
|
+
model: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,79}$/, 'model must be an identifier'),
|
|
16
|
+
effort: z.enum(['low', 'medium', 'high']),
|
|
17
|
+
verdict: z.enum(['passed', 'failed', 'blocked']),
|
|
18
|
+
tokensIn: z.number().int().nonnegative(),
|
|
19
|
+
tokensOut: z.number().int().nonnegative(),
|
|
20
|
+
costUnits: z.number().nonnegative(),
|
|
21
|
+
latencyMs: z.number().int().nonnegative(),
|
|
22
|
+
})
|
|
23
|
+
.strict();
|
|
24
|
+
//# sourceMappingURL=measured-routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measured-routing.js","sourceRoot":"","sources":["../../src/routing/measured-routing.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,mGAAmG;AACnG,+FAA+F;AAC/F,2DAA2D;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAU,CAAC;AAE7D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;IAC5D,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mCAAmC,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,sBAAsB;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qCAAqC,EAAE,6BAA6B,CAAC;IAC7F,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC1C,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -10,21 +10,21 @@ export declare const RoutingRuleSchema: z.ZodObject<{
|
|
|
10
10
|
verification: z.ZodEnum<["none", "structural", "tests", "independent-review", "mandatory-security"]>;
|
|
11
11
|
reason: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
id: string;
|
|
14
13
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
15
|
-
|
|
14
|
+
id: string;
|
|
16
15
|
reason: string;
|
|
17
|
-
model: string;
|
|
18
16
|
taskType: string;
|
|
17
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
18
|
+
model: string;
|
|
19
19
|
complexity: "low" | "medium" | "high" | "*";
|
|
20
20
|
effort: "low" | "medium" | "high";
|
|
21
21
|
}, {
|
|
22
|
-
id: string;
|
|
23
22
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
24
|
-
|
|
23
|
+
id: string;
|
|
25
24
|
reason: string;
|
|
26
|
-
model: string;
|
|
27
25
|
taskType: string;
|
|
26
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
27
|
+
model: string;
|
|
28
28
|
complexity: "low" | "medium" | "high" | "*";
|
|
29
29
|
effort: "low" | "medium" | "high";
|
|
30
30
|
}>;
|
|
@@ -42,21 +42,21 @@ export declare const RoutingPolicySchema: z.ZodObject<{
|
|
|
42
42
|
verification: z.ZodEnum<["none", "structural", "tests", "independent-review", "mandatory-security"]>;
|
|
43
43
|
reason: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
id: string;
|
|
46
45
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
47
|
-
|
|
46
|
+
id: string;
|
|
48
47
|
reason: string;
|
|
49
|
-
model: string;
|
|
50
48
|
taskType: string;
|
|
49
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
50
|
+
model: string;
|
|
51
51
|
complexity: "low" | "medium" | "high" | "*";
|
|
52
52
|
effort: "low" | "medium" | "high";
|
|
53
53
|
}, {
|
|
54
|
-
id: string;
|
|
55
54
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
56
|
-
|
|
55
|
+
id: string;
|
|
57
56
|
reason: string;
|
|
58
|
-
model: string;
|
|
59
57
|
taskType: string;
|
|
58
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
59
|
+
model: string;
|
|
60
60
|
complexity: "low" | "medium" | "high" | "*";
|
|
61
61
|
effort: "low" | "medium" | "high";
|
|
62
62
|
}>, "many">;
|
|
@@ -66,34 +66,34 @@ export declare const RoutingPolicySchema: z.ZodObject<{
|
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
schemaVersion: 1;
|
|
68
68
|
id: string;
|
|
69
|
-
version: string;
|
|
70
69
|
rules: {
|
|
71
|
-
id: string;
|
|
72
70
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
73
|
-
|
|
71
|
+
id: string;
|
|
74
72
|
reason: string;
|
|
75
|
-
model: string;
|
|
76
73
|
taskType: string;
|
|
74
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
75
|
+
model: string;
|
|
77
76
|
complexity: "low" | "medium" | "high" | "*";
|
|
78
77
|
effort: "low" | "medium" | "high";
|
|
79
78
|
}[];
|
|
79
|
+
version: string;
|
|
80
80
|
defaultModel: string;
|
|
81
81
|
defaultEffort: "low" | "medium" | "high";
|
|
82
82
|
suggestOnly: boolean;
|
|
83
83
|
}, {
|
|
84
84
|
schemaVersion: 1;
|
|
85
85
|
id: string;
|
|
86
|
-
version: string;
|
|
87
86
|
rules: {
|
|
88
|
-
id: string;
|
|
89
87
|
verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
|
|
90
|
-
|
|
88
|
+
id: string;
|
|
91
89
|
reason: string;
|
|
92
|
-
model: string;
|
|
93
90
|
taskType: string;
|
|
91
|
+
risk: "low" | "medium" | "high" | "critical" | "*";
|
|
92
|
+
model: string;
|
|
94
93
|
complexity: "low" | "medium" | "high" | "*";
|
|
95
94
|
effort: "low" | "medium" | "high";
|
|
96
95
|
}[];
|
|
96
|
+
version: string;
|
|
97
97
|
defaultModel: string;
|
|
98
98
|
defaultEffort: "low" | "medium" | "high";
|
|
99
99
|
suggestOnly?: boolean | undefined;
|
|
@@ -14,8 +14,8 @@ export declare const RoutingContextSchema: z.ZodObject<{
|
|
|
14
14
|
previousOutcome: z.ZodDefault<z.ZodEnum<["none", "passed", "failed-verification", "failed-review"]>>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
scope: "main-turn" | "subagent";
|
|
17
|
-
risk: "low" | "medium" | "high" | "critical";
|
|
18
17
|
taskType: string;
|
|
18
|
+
risk: "low" | "medium" | "high" | "critical";
|
|
19
19
|
complexity: "low" | "medium" | "high";
|
|
20
20
|
requiredCapabilities: string[];
|
|
21
21
|
previousOutcome: "passed" | "none" | "failed-verification" | "failed-review";
|
|
@@ -24,8 +24,8 @@ export declare const RoutingContextSchema: z.ZodObject<{
|
|
|
24
24
|
explicitUserEffort?: "low" | "medium" | "high" | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
scope: "main-turn" | "subagent";
|
|
27
|
-
risk: "low" | "medium" | "high" | "critical";
|
|
28
27
|
taskType: string;
|
|
28
|
+
risk: "low" | "medium" | "high" | "critical";
|
|
29
29
|
complexity: "low" | "medium" | "high";
|
|
30
30
|
contextTokens?: number | undefined;
|
|
31
31
|
requiredCapabilities?: string[] | undefined;
|
|
@@ -16,9 +16,9 @@ export declare const ClassifiedActionSchema: z.ZodObject<{
|
|
|
16
16
|
fileCount?: number | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
branch?: string | undefined;
|
|
19
|
+
paths?: string[] | undefined;
|
|
19
20
|
environment?: string | undefined;
|
|
20
21
|
fileCount?: number | undefined;
|
|
21
|
-
paths?: string[] | undefined;
|
|
22
22
|
}>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
scope: {
|
|
@@ -34,9 +34,9 @@ export declare const ClassifiedActionSchema: z.ZodObject<{
|
|
|
34
34
|
impact: "none" | "local" | "shared-branch" | "production";
|
|
35
35
|
scope?: {
|
|
36
36
|
branch?: string | undefined;
|
|
37
|
+
paths?: string[] | undefined;
|
|
37
38
|
environment?: string | undefined;
|
|
38
39
|
fileCount?: number | undefined;
|
|
39
|
-
paths?: string[] | undefined;
|
|
40
40
|
} | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type ActionCategory = z.infer<typeof ActionCategorySchema>;
|
|
@@ -25,13 +25,13 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
25
25
|
grantedAt: z.ZodString;
|
|
26
26
|
rationale: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
rationale: string;
|
|
28
29
|
approver: string;
|
|
29
30
|
grantedAt: string;
|
|
30
|
-
rationale: string;
|
|
31
31
|
}, {
|
|
32
|
+
rationale: string;
|
|
32
33
|
approver: string;
|
|
33
34
|
grantedAt: string;
|
|
34
|
-
rationale: string;
|
|
35
35
|
}>>;
|
|
36
36
|
bypass: z.ZodOptional<z.ZodObject<{
|
|
37
37
|
flag: z.ZodString;
|
|
@@ -51,19 +51,19 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
51
51
|
at: string;
|
|
52
52
|
schemaVersion: 1;
|
|
53
53
|
id: string;
|
|
54
|
-
|
|
54
|
+
outcome: "interrupted" | "executed" | "denied" | "deferred";
|
|
55
55
|
action: {
|
|
56
56
|
category: "file.delete" | "file.bulk-modify" | "db.migrate" | "git.force-push" | "release.deploy" | "dependency.remove" | "file.read" | "file.create" | "file.modify" | "file.sensitive-modify" | "db.read" | "db.mutate-dev" | "db.mutate-production" | "git.read" | "git.commit" | "git.push" | "git.rebase" | "dependency.add" | "dependency.upgrade" | "release.tag" | "release.publish" | "network.fetch" | "network.mcp-call";
|
|
57
57
|
impact: "none" | "local" | "shared-branch" | "production";
|
|
58
58
|
scopeSummary: string;
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
verdict: "allow" | "deny" | "require-approval";
|
|
61
61
|
runId?: string | undefined;
|
|
62
62
|
matchedRuleId?: string | undefined;
|
|
63
63
|
approval?: {
|
|
64
|
+
rationale: string;
|
|
64
65
|
approver: string;
|
|
65
66
|
grantedAt: string;
|
|
66
|
-
rationale: string;
|
|
67
67
|
} | undefined;
|
|
68
68
|
bypass?: {
|
|
69
69
|
scope: string;
|
|
@@ -74,19 +74,19 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
74
74
|
at: string;
|
|
75
75
|
schemaVersion: 1;
|
|
76
76
|
id: string;
|
|
77
|
-
|
|
77
|
+
outcome: "interrupted" | "executed" | "denied" | "deferred";
|
|
78
78
|
action: {
|
|
79
79
|
category: "file.delete" | "file.bulk-modify" | "db.migrate" | "git.force-push" | "release.deploy" | "dependency.remove" | "file.read" | "file.create" | "file.modify" | "file.sensitive-modify" | "db.read" | "db.mutate-dev" | "db.mutate-production" | "git.read" | "git.commit" | "git.push" | "git.rebase" | "dependency.add" | "dependency.upgrade" | "release.tag" | "release.publish" | "network.fetch" | "network.mcp-call";
|
|
80
80
|
impact: "none" | "local" | "shared-branch" | "production";
|
|
81
81
|
scopeSummary: string;
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
verdict: "allow" | "deny" | "require-approval";
|
|
84
84
|
runId?: string | undefined;
|
|
85
85
|
matchedRuleId?: string | undefined;
|
|
86
86
|
approval?: {
|
|
87
|
+
rationale: string;
|
|
87
88
|
approver: string;
|
|
88
89
|
grantedAt: string;
|
|
89
|
-
rationale: string;
|
|
90
90
|
} | undefined;
|
|
91
91
|
bypass?: {
|
|
92
92
|
scope: string;
|
|
@@ -97,8 +97,6 @@ export declare const PolicyPackSchema: z.ZodObject<{
|
|
|
97
97
|
schemaVersion: 1;
|
|
98
98
|
name: string;
|
|
99
99
|
id: string;
|
|
100
|
-
description: string;
|
|
101
|
-
version: string;
|
|
102
100
|
rules: {
|
|
103
101
|
id: string;
|
|
104
102
|
reason: string;
|
|
@@ -111,14 +109,14 @@ export declare const PolicyPackSchema: z.ZodObject<{
|
|
|
111
109
|
op: "gt" | "gte" | "lt" | "lte";
|
|
112
110
|
} | undefined;
|
|
113
111
|
}[];
|
|
112
|
+
description: string;
|
|
113
|
+
version: string;
|
|
114
114
|
defaultVerdict: "allow" | "deny" | "require-approval";
|
|
115
115
|
appliesNonInteractive: boolean;
|
|
116
116
|
}, {
|
|
117
117
|
schemaVersion: 1;
|
|
118
118
|
name: string;
|
|
119
119
|
id: string;
|
|
120
|
-
description: string;
|
|
121
|
-
version: string;
|
|
122
120
|
rules: {
|
|
123
121
|
id: string;
|
|
124
122
|
reason: string;
|
|
@@ -131,6 +129,8 @@ export declare const PolicyPackSchema: z.ZodObject<{
|
|
|
131
129
|
op: "gt" | "gte" | "lt" | "lte";
|
|
132
130
|
} | undefined;
|
|
133
131
|
}[];
|
|
132
|
+
description: string;
|
|
133
|
+
version: string;
|
|
134
134
|
defaultVerdict?: "allow" | "deny" | "require-approval" | undefined;
|
|
135
135
|
appliesNonInteractive?: boolean | undefined;
|
|
136
136
|
}>;
|
|
@@ -68,14 +68,14 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
|
|
|
68
68
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
name: string;
|
|
71
|
-
description: string;
|
|
72
71
|
required: boolean;
|
|
72
|
+
description: string;
|
|
73
73
|
defaultValue?: string | undefined;
|
|
74
74
|
pattern?: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
name: string;
|
|
77
|
-
description: string;
|
|
78
77
|
required: boolean;
|
|
78
|
+
description: string;
|
|
79
79
|
defaultValue?: string | undefined;
|
|
80
80
|
pattern?: string | undefined;
|
|
81
81
|
}>, "many">>;
|
|
@@ -96,40 +96,40 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
|
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
schemaVersion: 1;
|
|
98
98
|
name: string;
|
|
99
|
+
stacks: string[];
|
|
99
100
|
id: string;
|
|
101
|
+
files: {
|
|
102
|
+
path: string;
|
|
103
|
+
templated: boolean;
|
|
104
|
+
preserve: boolean;
|
|
105
|
+
}[];
|
|
100
106
|
description: string;
|
|
101
107
|
variables: {
|
|
102
108
|
name: string;
|
|
103
|
-
description: string;
|
|
104
109
|
required: boolean;
|
|
110
|
+
description: string;
|
|
105
111
|
defaultValue?: string | undefined;
|
|
106
112
|
pattern?: string | undefined;
|
|
107
113
|
}[];
|
|
108
114
|
version: string;
|
|
109
|
-
stacks: string[];
|
|
110
|
-
files: {
|
|
111
|
-
path: string;
|
|
112
|
-
templated: boolean;
|
|
113
|
-
preserve: boolean;
|
|
114
|
-
}[];
|
|
115
115
|
kitCompatibility: string;
|
|
116
116
|
}, {
|
|
117
117
|
schemaVersion: 1;
|
|
118
118
|
name: string;
|
|
119
|
-
id: string;
|
|
120
|
-
description: string;
|
|
121
|
-
version: string;
|
|
122
119
|
stacks: string[];
|
|
120
|
+
id: string;
|
|
123
121
|
files: {
|
|
124
122
|
path: string;
|
|
125
123
|
templated: boolean;
|
|
126
124
|
preserve?: boolean | undefined;
|
|
127
125
|
}[];
|
|
126
|
+
description: string;
|
|
127
|
+
version: string;
|
|
128
128
|
kitCompatibility: string;
|
|
129
129
|
variables?: {
|
|
130
130
|
name: string;
|
|
131
|
-
description: string;
|
|
132
131
|
required: boolean;
|
|
132
|
+
description: string;
|
|
133
133
|
defaultValue?: string | undefined;
|
|
134
134
|
pattern?: string | undefined;
|
|
135
135
|
}[] | undefined;
|
|
@@ -160,22 +160,22 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
|
|
|
160
160
|
template: {
|
|
161
161
|
schemaVersion: 1;
|
|
162
162
|
name: string;
|
|
163
|
+
stacks: string[];
|
|
163
164
|
id: string;
|
|
165
|
+
files: {
|
|
166
|
+
path: string;
|
|
167
|
+
templated: boolean;
|
|
168
|
+
preserve: boolean;
|
|
169
|
+
}[];
|
|
164
170
|
description: string;
|
|
165
171
|
variables: {
|
|
166
172
|
name: string;
|
|
167
|
-
description: string;
|
|
168
173
|
required: boolean;
|
|
174
|
+
description: string;
|
|
169
175
|
defaultValue?: string | undefined;
|
|
170
176
|
pattern?: string | undefined;
|
|
171
177
|
}[];
|
|
172
178
|
version: string;
|
|
173
|
-
stacks: string[];
|
|
174
|
-
files: {
|
|
175
|
-
path: string;
|
|
176
|
-
templated: boolean;
|
|
177
|
-
preserve: boolean;
|
|
178
|
-
}[];
|
|
179
179
|
kitCompatibility: string;
|
|
180
180
|
};
|
|
181
181
|
plannedOperations: {
|
|
@@ -196,20 +196,20 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
|
|
|
196
196
|
template: {
|
|
197
197
|
schemaVersion: 1;
|
|
198
198
|
name: string;
|
|
199
|
-
id: string;
|
|
200
|
-
description: string;
|
|
201
|
-
version: string;
|
|
202
199
|
stacks: string[];
|
|
200
|
+
id: string;
|
|
203
201
|
files: {
|
|
204
202
|
path: string;
|
|
205
203
|
templated: boolean;
|
|
206
204
|
preserve?: boolean | undefined;
|
|
207
205
|
}[];
|
|
206
|
+
description: string;
|
|
207
|
+
version: string;
|
|
208
208
|
kitCompatibility: string;
|
|
209
209
|
variables?: {
|
|
210
210
|
name: string;
|
|
211
|
-
description: string;
|
|
212
211
|
required: boolean;
|
|
212
|
+
description: string;
|
|
213
213
|
defaultValue?: string | undefined;
|
|
214
214
|
pattern?: string | undefined;
|
|
215
215
|
}[] | undefined;
|
|
@@ -259,14 +259,14 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
259
259
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
name: string;
|
|
262
|
-
description: string;
|
|
263
262
|
required: boolean;
|
|
263
|
+
description: string;
|
|
264
264
|
defaultValue?: string | undefined;
|
|
265
265
|
pattern?: string | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
name: string;
|
|
268
|
-
description: string;
|
|
269
268
|
required: boolean;
|
|
269
|
+
description: string;
|
|
270
270
|
defaultValue?: string | undefined;
|
|
271
271
|
pattern?: string | undefined;
|
|
272
272
|
}>, "many">>;
|
|
@@ -287,40 +287,40 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
288
288
|
schemaVersion: 1;
|
|
289
289
|
name: string;
|
|
290
|
+
stacks: string[];
|
|
290
291
|
id: string;
|
|
292
|
+
files: {
|
|
293
|
+
path: string;
|
|
294
|
+
templated: boolean;
|
|
295
|
+
preserve: boolean;
|
|
296
|
+
}[];
|
|
291
297
|
description: string;
|
|
292
298
|
variables: {
|
|
293
299
|
name: string;
|
|
294
|
-
description: string;
|
|
295
300
|
required: boolean;
|
|
301
|
+
description: string;
|
|
296
302
|
defaultValue?: string | undefined;
|
|
297
303
|
pattern?: string | undefined;
|
|
298
304
|
}[];
|
|
299
305
|
version: string;
|
|
300
|
-
stacks: string[];
|
|
301
|
-
files: {
|
|
302
|
-
path: string;
|
|
303
|
-
templated: boolean;
|
|
304
|
-
preserve: boolean;
|
|
305
|
-
}[];
|
|
306
306
|
kitCompatibility: string;
|
|
307
307
|
}, {
|
|
308
308
|
schemaVersion: 1;
|
|
309
309
|
name: string;
|
|
310
|
-
id: string;
|
|
311
|
-
description: string;
|
|
312
|
-
version: string;
|
|
313
310
|
stacks: string[];
|
|
311
|
+
id: string;
|
|
314
312
|
files: {
|
|
315
313
|
path: string;
|
|
316
314
|
templated: boolean;
|
|
317
315
|
preserve?: boolean | undefined;
|
|
318
316
|
}[];
|
|
317
|
+
description: string;
|
|
318
|
+
version: string;
|
|
319
319
|
kitCompatibility: string;
|
|
320
320
|
variables?: {
|
|
321
321
|
name: string;
|
|
322
|
-
description: string;
|
|
323
322
|
required: boolean;
|
|
323
|
+
description: string;
|
|
324
324
|
defaultValue?: string | undefined;
|
|
325
325
|
pattern?: string | undefined;
|
|
326
326
|
}[] | undefined;
|
|
@@ -351,22 +351,22 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
351
351
|
template: {
|
|
352
352
|
schemaVersion: 1;
|
|
353
353
|
name: string;
|
|
354
|
+
stacks: string[];
|
|
354
355
|
id: string;
|
|
356
|
+
files: {
|
|
357
|
+
path: string;
|
|
358
|
+
templated: boolean;
|
|
359
|
+
preserve: boolean;
|
|
360
|
+
}[];
|
|
355
361
|
description: string;
|
|
356
362
|
variables: {
|
|
357
363
|
name: string;
|
|
358
|
-
description: string;
|
|
359
364
|
required: boolean;
|
|
365
|
+
description: string;
|
|
360
366
|
defaultValue?: string | undefined;
|
|
361
367
|
pattern?: string | undefined;
|
|
362
368
|
}[];
|
|
363
369
|
version: string;
|
|
364
|
-
stacks: string[];
|
|
365
|
-
files: {
|
|
366
|
-
path: string;
|
|
367
|
-
templated: boolean;
|
|
368
|
-
preserve: boolean;
|
|
369
|
-
}[];
|
|
370
370
|
kitCompatibility: string;
|
|
371
371
|
};
|
|
372
372
|
plannedOperations: {
|
|
@@ -387,20 +387,20 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
387
387
|
template: {
|
|
388
388
|
schemaVersion: 1;
|
|
389
389
|
name: string;
|
|
390
|
-
id: string;
|
|
391
|
-
description: string;
|
|
392
|
-
version: string;
|
|
393
390
|
stacks: string[];
|
|
391
|
+
id: string;
|
|
394
392
|
files: {
|
|
395
393
|
path: string;
|
|
396
394
|
templated: boolean;
|
|
397
395
|
preserve?: boolean | undefined;
|
|
398
396
|
}[];
|
|
397
|
+
description: string;
|
|
398
|
+
version: string;
|
|
399
399
|
kitCompatibility: string;
|
|
400
400
|
variables?: {
|
|
401
401
|
name: string;
|
|
402
|
-
description: string;
|
|
403
402
|
required: boolean;
|
|
403
|
+
description: string;
|
|
404
404
|
defaultValue?: string | undefined;
|
|
405
405
|
pattern?: string | undefined;
|
|
406
406
|
}[] | undefined;
|
|
@@ -441,22 +441,22 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
441
441
|
template: {
|
|
442
442
|
schemaVersion: 1;
|
|
443
443
|
name: string;
|
|
444
|
+
stacks: string[];
|
|
444
445
|
id: string;
|
|
446
|
+
files: {
|
|
447
|
+
path: string;
|
|
448
|
+
templated: boolean;
|
|
449
|
+
preserve: boolean;
|
|
450
|
+
}[];
|
|
445
451
|
description: string;
|
|
446
452
|
variables: {
|
|
447
453
|
name: string;
|
|
448
|
-
description: string;
|
|
449
454
|
required: boolean;
|
|
455
|
+
description: string;
|
|
450
456
|
defaultValue?: string | undefined;
|
|
451
457
|
pattern?: string | undefined;
|
|
452
458
|
}[];
|
|
453
459
|
version: string;
|
|
454
|
-
stacks: string[];
|
|
455
|
-
files: {
|
|
456
|
-
path: string;
|
|
457
|
-
templated: boolean;
|
|
458
|
-
preserve: boolean;
|
|
459
|
-
}[];
|
|
460
460
|
kitCompatibility: string;
|
|
461
461
|
};
|
|
462
462
|
plannedOperations: {
|
|
@@ -487,20 +487,20 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
|
|
|
487
487
|
template: {
|
|
488
488
|
schemaVersion: 1;
|
|
489
489
|
name: string;
|
|
490
|
-
id: string;
|
|
491
|
-
description: string;
|
|
492
|
-
version: string;
|
|
493
490
|
stacks: string[];
|
|
491
|
+
id: string;
|
|
494
492
|
files: {
|
|
495
493
|
path: string;
|
|
496
494
|
templated: boolean;
|
|
497
495
|
preserve?: boolean | undefined;
|
|
498
496
|
}[];
|
|
497
|
+
description: string;
|
|
498
|
+
version: string;
|
|
499
499
|
kitCompatibility: string;
|
|
500
500
|
variables?: {
|
|
501
501
|
name: string;
|
|
502
|
-
description: string;
|
|
503
502
|
required: boolean;
|
|
503
|
+
description: string;
|
|
504
504
|
defaultValue?: string | undefined;
|
|
505
505
|
pattern?: string | undefined;
|
|
506
506
|
}[] | undefined;
|
|
@@ -8,14 +8,14 @@ export declare const TemplateVariableSchema: z.ZodObject<{
|
|
|
8
8
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
|
-
description: string;
|
|
12
11
|
required: boolean;
|
|
12
|
+
description: string;
|
|
13
13
|
defaultValue?: string | undefined;
|
|
14
14
|
pattern?: string | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
name: string;
|
|
17
|
-
description: string;
|
|
18
17
|
required: boolean;
|
|
18
|
+
description: string;
|
|
19
19
|
defaultValue?: string | undefined;
|
|
20
20
|
pattern?: string | undefined;
|
|
21
21
|
}>;
|
|
@@ -34,14 +34,14 @@ export declare const TemplateManifestSchema: z.ZodObject<{
|
|
|
34
34
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
name: string;
|
|
37
|
-
description: string;
|
|
38
37
|
required: boolean;
|
|
38
|
+
description: string;
|
|
39
39
|
defaultValue?: string | undefined;
|
|
40
40
|
pattern?: string | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
name: string;
|
|
43
|
-
description: string;
|
|
44
43
|
required: boolean;
|
|
44
|
+
description: string;
|
|
45
45
|
defaultValue?: string | undefined;
|
|
46
46
|
pattern?: string | undefined;
|
|
47
47
|
}>, "many">>;
|
|
@@ -62,40 +62,40 @@ export declare const TemplateManifestSchema: z.ZodObject<{
|
|
|
62
62
|
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
schemaVersion: 1;
|
|
64
64
|
name: string;
|
|
65
|
+
stacks: string[];
|
|
65
66
|
id: string;
|
|
67
|
+
files: {
|
|
68
|
+
path: string;
|
|
69
|
+
templated: boolean;
|
|
70
|
+
preserve: boolean;
|
|
71
|
+
}[];
|
|
66
72
|
description: string;
|
|
67
73
|
variables: {
|
|
68
74
|
name: string;
|
|
69
|
-
description: string;
|
|
70
75
|
required: boolean;
|
|
76
|
+
description: string;
|
|
71
77
|
defaultValue?: string | undefined;
|
|
72
78
|
pattern?: string | undefined;
|
|
73
79
|
}[];
|
|
74
80
|
version: string;
|
|
75
|
-
stacks: string[];
|
|
76
|
-
files: {
|
|
77
|
-
path: string;
|
|
78
|
-
templated: boolean;
|
|
79
|
-
preserve: boolean;
|
|
80
|
-
}[];
|
|
81
81
|
kitCompatibility: string;
|
|
82
82
|
}, {
|
|
83
83
|
schemaVersion: 1;
|
|
84
84
|
name: string;
|
|
85
|
-
id: string;
|
|
86
|
-
description: string;
|
|
87
|
-
version: string;
|
|
88
85
|
stacks: string[];
|
|
86
|
+
id: string;
|
|
89
87
|
files: {
|
|
90
88
|
path: string;
|
|
91
89
|
templated: boolean;
|
|
92
90
|
preserve?: boolean | undefined;
|
|
93
91
|
}[];
|
|
92
|
+
description: string;
|
|
93
|
+
version: string;
|
|
94
94
|
kitCompatibility: string;
|
|
95
95
|
variables?: {
|
|
96
96
|
name: string;
|
|
97
|
-
description: string;
|
|
98
97
|
required: boolean;
|
|
98
|
+
description: string;
|
|
99
99
|
defaultValue?: string | undefined;
|
|
100
100
|
pattern?: string | undefined;
|
|
101
101
|
}[] | undefined;
|