@agentic-sdlc-kit/contracts 1.2.0 → 1.3.0
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/capability.d.ts +12 -1
- package/dist/agent/capability.d.ts.map +1 -1
- package/dist/agent/errors.d.ts +29 -11
- package/dist/agent/errors.d.ts.map +1 -1
- package/dist/agent/events.d.ts +42 -153
- package/dist/agent/events.d.ts.map +1 -1
- package/dist/agent/execution.d.ts +151 -415
- package/dist/agent/execution.d.ts.map +1 -1
- package/dist/agent/policy.d.ts +30 -92
- package/dist/agent/policy.d.ts.map +1 -1
- package/dist/agent/session.d.ts +1 -7
- package/dist/agent/session.d.ts.map +1 -1
- package/dist/agent-tools/index.d.ts +20 -58
- package/dist/agent-tools/index.d.ts.map +1 -1
- package/dist/application/application-context.d.ts +80 -582
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +161 -924
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +94 -70
- package/dist/application/application-state.d.ts.map +1 -1
- package/dist/architecture/api-contract.d.ts +56 -208
- package/dist/architecture/api-contract.d.ts.map +1 -1
- package/dist/architecture/architecture-approval.d.ts +2 -26
- package/dist/architecture/architecture-approval.d.ts.map +1 -1
- package/dist/architecture/architecture-options.d.ts +30 -82
- package/dist/architecture/architecture-options.d.ts.map +1 -1
- package/dist/architecture/component-map.d.ts +34 -60
- package/dist/architecture/component-map.d.ts.map +1 -1
- package/dist/architecture/data-model.d.ts +91 -205
- package/dist/architecture/data-model.d.ts.map +1 -1
- package/dist/architecture/operational-design.d.ts +48 -115
- package/dist/architecture/operational-design.d.ts.map +1 -1
- package/dist/architecture/security-design.d.ts +40 -90
- package/dist/architecture/security-design.d.ts.map +1 -1
- package/dist/benchmark/bench.d.ts +44 -263
- package/dist/benchmark/bench.d.ts.map +1 -1
- package/dist/common/identifier.d.ts +1 -1
- package/dist/common/identifier.d.ts.map +1 -1
- package/dist/constitution/cli-output.d.ts +58 -618
- package/dist/constitution/cli-output.d.ts.map +1 -1
- package/dist/constitution/result.d.ts +31 -84
- package/dist/constitution/result.d.ts.map +1 -1
- package/dist/constitution/rule.d.ts +97 -408
- package/dist/constitution/rule.d.ts.map +1 -1
- package/dist/context/project-context.d.ts +57 -227
- package/dist/context/project-context.d.ts.map +1 -1
- package/dist/evaluation/benchmark.d.ts +26 -66
- package/dist/evaluation/benchmark.d.ts.map +1 -1
- package/dist/evaluation/metrics.d.ts +15 -120
- package/dist/evaluation/metrics.d.ts.map +1 -1
- package/dist/evolution/experiment.d.ts +29 -51
- package/dist/evolution/experiment.d.ts.map +1 -1
- package/dist/evolution/improvement-hypothesis.d.ts +56 -78
- package/dist/evolution/improvement-hypothesis.d.ts.map +1 -1
- package/dist/execution/execution-profile.d.ts +25 -111
- package/dist/execution/execution-profile.d.ts.map +1 -1
- package/dist/improvement/config.d.ts +3 -17
- package/dist/improvement/config.d.ts.map +1 -1
- package/dist/improvement/config.js +1 -1
- package/dist/improvement/config.js.map +1 -1
- package/dist/improvement/finding.d.ts +24 -71
- package/dist/improvement/finding.d.ts.map +1 -1
- package/dist/improvement/issue.d.ts +10 -39
- package/dist/improvement/issue.d.ts.map +1 -1
- package/dist/improvement/kit-feedback.d.ts +45 -29
- package/dist/improvement/kit-feedback.d.ts.map +1 -1
- package/dist/improvement/review.d.ts +22 -28
- package/dist/improvement/review.d.ts.map +1 -1
- package/dist/installer/install-plan.d.ts +52 -137
- package/dist/installer/install-plan.d.ts.map +1 -1
- package/dist/installer/ownership-manifest.d.ts +7 -62
- package/dist/installer/ownership-manifest.d.ts.map +1 -1
- package/dist/installer/package-manifest.d.ts +25 -40
- package/dist/installer/package-manifest.d.ts.map +1 -1
- package/dist/learning/engineering-lesson.d.ts +19 -65
- package/dist/learning/engineering-lesson.d.ts.map +1 -1
- package/dist/learning/engineering-memory.d.ts +32 -64
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/experience-episode.d.ts +33 -141
- package/dist/learning/experience-episode.d.ts.map +1 -1
- package/dist/learning/experience.d.ts +16 -50
- package/dist/learning/experience.d.ts.map +1 -1
- package/dist/learning/hypothesis.d.ts +14 -39
- package/dist/learning/hypothesis.d.ts.map +1 -1
- package/dist/learning/learning-event.d.ts +32 -62
- package/dist/learning/learning-event.d.ts.map +1 -1
- package/dist/learning/memory.d.ts +12 -28
- package/dist/learning/memory.d.ts.map +1 -1
- package/dist/learning/promotion.d.ts +7 -20
- package/dist/learning/promotion.d.ts.map +1 -1
- package/dist/maintenance/bug-fix-workflow.d.ts +49 -30
- package/dist/maintenance/bug-fix-workflow.d.ts.map +1 -1
- package/dist/maintenance/bug-report.d.ts +39 -46
- package/dist/maintenance/bug-report.d.ts.map +1 -1
- package/dist/maintenance/performance-baseline.d.ts +18 -64
- package/dist/maintenance/performance-baseline.d.ts.map +1 -1
- package/dist/maintenance/refactor-contract.d.ts +47 -133
- package/dist/maintenance/refactor-contract.d.ts.map +1 -1
- package/dist/maintenance/refactor-workflow.d.ts +50 -51
- package/dist/maintenance/refactor-workflow.d.ts.map +1 -1
- package/dist/observer/event-schema.d.ts +31 -31
- package/dist/observer/event-schema.d.ts.map +1 -1
- package/dist/observer/journal.d.ts +32 -57
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +1 -1
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/retention.d.ts +2 -16
- package/dist/observer/retention.d.ts.map +1 -1
- package/dist/observer/run-summary.d.ts +45 -213
- package/dist/observer/run-summary.d.ts.map +1 -1
- package/dist/onboard/onboard-report.d.ts +85 -279
- package/dist/onboard/onboard-report.d.ts.map +1 -1
- package/dist/patterns/pattern.d.ts +28 -74
- package/dist/patterns/pattern.d.ts.map +1 -1
- package/dist/planning/task.d.ts +70 -149
- package/dist/planning/task.d.ts.map +1 -1
- package/dist/policy/policy.d.ts +61 -56
- package/dist/policy/policy.d.ts.map +1 -1
- package/dist/product/mvp-scope.d.ts +8 -18
- package/dist/product/mvp-scope.d.ts.map +1 -1
- package/dist/product/product-brief.d.ts +6 -74
- package/dist/product/product-brief.d.ts.map +1 -1
- package/dist/product/requirements.d.ts +99 -215
- package/dist/product/requirements.d.ts.map +1 -1
- package/dist/product/traceability.d.ts +7 -39
- package/dist/product/traceability.d.ts.map +1 -1
- package/dist/project/project-profile.d.ts +34 -146
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/repository-scan.d.ts +8 -64
- package/dist/project/repository-scan.d.ts.map +1 -1
- package/dist/routing/capability-registry.d.ts +15 -67
- package/dist/routing/capability-registry.d.ts.map +1 -1
- package/dist/routing/escalation.d.ts +10 -17
- package/dist/routing/escalation.d.ts.map +1 -1
- package/dist/routing/measured-routing.d.ts +18 -28
- package/dist/routing/measured-routing.d.ts.map +1 -1
- package/dist/routing/routing-policy.d.ts +56 -84
- package/dist/routing/routing-policy.d.ts.map +1 -1
- package/dist/routing/routing-request.d.ts +50 -46
- package/dist/routing/routing-request.d.ts.map +1 -1
- package/dist/runtime-guard/action-classification.d.ts +66 -36
- package/dist/runtime-guard/action-classification.d.ts.map +1 -1
- package/dist/runtime-guard/action-classification.js +1 -1
- package/dist/runtime-guard/action-classification.js.map +1 -1
- package/dist/runtime-guard/audit-event.d.ts +45 -77
- package/dist/runtime-guard/audit-event.d.ts.map +1 -1
- package/dist/runtime-guard/policy-schema.d.ts +100 -116
- package/dist/runtime-guard/policy-schema.d.ts.map +1 -1
- package/dist/scaffolding/scaffold-contract.d.ts +46 -450
- package/dist/scaffolding/scaffold-contract.d.ts.map +1 -1
- package/dist/scaffolding/template-manifest.d.ts +5 -77
- package/dist/scaffolding/template-manifest.d.ts.map +1 -1
- package/dist/secret-guard/detection-rule.d.ts +25 -19
- package/dist/secret-guard/detection-rule.d.ts.map +1 -1
- package/dist/secret-guard/finding.d.ts +70 -69
- package/dist/secret-guard/finding.d.ts.map +1 -1
- package/dist/secret-guard/redaction-policy.d.ts +7 -17
- package/dist/secret-guard/redaction-policy.d.ts.map +1 -1
- package/dist/secret-guard/scanner-failure.d.ts +17 -45
- package/dist/secret-guard/scanner-failure.d.ts.map +1 -1
- package/dist/specification/specification.d.ts +48 -184
- package/dist/specification/specification.d.ts.map +1 -1
- package/dist/stack-pack/manifest.d.ts +19 -90
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/verification/report.d.ts +49 -164
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/strength.d.ts +62 -188
- package/dist/verification/strength.d.ts.map +1 -1
- package/dist/workflow/next-action.d.ts +55 -137
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/workflow.d.ts +50 -50
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/improvement/config.ts +1 -1
- package/src/observer/journal.ts +1 -1
- package/src/runtime-guard/action-classification.ts +1 -1
- package/src/zod-defaults.test.ts +28 -0
|
@@ -1,349 +1,155 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ONBOARD_REPORT_SCHEMA_VERSION: 1;
|
|
3
|
-
export declare const DeclaredSourceKindSchema: z.ZodEnum<
|
|
3
|
+
export declare const DeclaredSourceKindSchema: z.ZodEnum<{
|
|
4
|
+
"agent-instruction": "agent-instruction";
|
|
5
|
+
"lint-config": "lint-config";
|
|
6
|
+
"formatter-config": "formatter-config";
|
|
7
|
+
"type-config": "type-config";
|
|
8
|
+
ownership: "ownership";
|
|
9
|
+
"tooling-config": "tooling-config";
|
|
10
|
+
}>;
|
|
4
11
|
export type DeclaredSourceKind = z.infer<typeof DeclaredSourceKindSchema>;
|
|
5
12
|
export declare const DeclaredSourceSchema: z.ZodObject<{
|
|
6
|
-
kind: z.ZodEnum<
|
|
13
|
+
kind: z.ZodEnum<{
|
|
14
|
+
"agent-instruction": "agent-instruction";
|
|
15
|
+
"lint-config": "lint-config";
|
|
16
|
+
"formatter-config": "formatter-config";
|
|
17
|
+
"type-config": "type-config";
|
|
18
|
+
ownership: "ownership";
|
|
19
|
+
"tooling-config": "tooling-config";
|
|
20
|
+
}>;
|
|
7
21
|
path: z.ZodString;
|
|
8
22
|
parsed: z.ZodBoolean;
|
|
9
23
|
note: z.ZodOptional<z.ZodString>;
|
|
10
|
-
},
|
|
11
|
-
path: string;
|
|
12
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
13
|
-
parsed: boolean;
|
|
14
|
-
note?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
path: string;
|
|
17
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
18
|
-
parsed: boolean;
|
|
19
|
-
note?: string | undefined;
|
|
20
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
21
25
|
export type DeclaredSource = z.infer<typeof DeclaredSourceSchema>;
|
|
22
26
|
export declare const CandidateStandardSchema: z.ZodObject<{
|
|
23
27
|
id: z.ZodString;
|
|
24
|
-
kind: z.ZodEnum<
|
|
28
|
+
kind: z.ZodEnum<{
|
|
29
|
+
"agent-instruction": "agent-instruction";
|
|
30
|
+
"lint-config": "lint-config";
|
|
31
|
+
"formatter-config": "formatter-config";
|
|
32
|
+
"type-config": "type-config";
|
|
33
|
+
ownership: "ownership";
|
|
34
|
+
"tooling-config": "tooling-config";
|
|
35
|
+
}>;
|
|
25
36
|
statement: z.ZodString;
|
|
26
37
|
source: z.ZodObject<{
|
|
27
38
|
path: z.ZodString;
|
|
28
39
|
line: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
},
|
|
30
|
-
path: string;
|
|
31
|
-
line?: number | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
path: string;
|
|
34
|
-
line?: number | undefined;
|
|
35
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
36
41
|
status: z.ZodLiteral<"proposed">;
|
|
37
|
-
},
|
|
38
|
-
status: "proposed";
|
|
39
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
40
|
-
id: string;
|
|
41
|
-
statement: string;
|
|
42
|
-
source: {
|
|
43
|
-
path: string;
|
|
44
|
-
line?: number | undefined;
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
status: "proposed";
|
|
48
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
49
|
-
id: string;
|
|
50
|
-
statement: string;
|
|
51
|
-
source: {
|
|
52
|
-
path: string;
|
|
53
|
-
line?: number | undefined;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
56
43
|
export type CandidateStandard = z.infer<typeof CandidateStandardSchema>;
|
|
57
44
|
export declare const DecisionRecordSchema: z.ZodObject<{
|
|
58
45
|
id: z.ZodString;
|
|
59
46
|
title: z.ZodString;
|
|
60
47
|
path: z.ZodString;
|
|
61
|
-
},
|
|
62
|
-
path: string;
|
|
63
|
-
id: string;
|
|
64
|
-
title: string;
|
|
65
|
-
}, {
|
|
66
|
-
path: string;
|
|
67
|
-
id: string;
|
|
68
|
-
title: string;
|
|
69
|
-
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
70
49
|
export type DecisionRecord = z.infer<typeof DecisionRecordSchema>;
|
|
71
50
|
export declare const DeclarationConflictSchema: z.ZodObject<{
|
|
72
|
-
kind: z.ZodEnum<
|
|
51
|
+
kind: z.ZodEnum<{
|
|
52
|
+
"multiple-config-files": "multiple-config-files";
|
|
53
|
+
"duplicate-statement": "duplicate-statement";
|
|
54
|
+
}>;
|
|
73
55
|
subject: z.ZodString;
|
|
74
|
-
paths: z.ZodArray<z.ZodString
|
|
56
|
+
paths: z.ZodArray<z.ZodString>;
|
|
75
57
|
detail: z.ZodString;
|
|
76
|
-
},
|
|
77
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
78
|
-
paths: string[];
|
|
79
|
-
detail: string;
|
|
80
|
-
subject: string;
|
|
81
|
-
}, {
|
|
82
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
83
|
-
paths: string[];
|
|
84
|
-
detail: string;
|
|
85
|
-
subject: string;
|
|
86
|
-
}>;
|
|
58
|
+
}, z.core.$strip>;
|
|
87
59
|
export type DeclarationConflict = z.infer<typeof DeclarationConflictSchema>;
|
|
88
60
|
export declare const MissingToolSchema: z.ZodObject<{
|
|
89
61
|
tool: z.ZodString;
|
|
90
62
|
declaredIn: z.ZodString;
|
|
91
|
-
},
|
|
92
|
-
tool: string;
|
|
93
|
-
declaredIn: string;
|
|
94
|
-
}, {
|
|
95
|
-
tool: string;
|
|
96
|
-
declaredIn: string;
|
|
97
|
-
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
98
64
|
export type MissingTool = z.infer<typeof MissingToolSchema>;
|
|
99
65
|
export declare const OnboardNoteSchema: z.ZodObject<{
|
|
100
|
-
severity: z.ZodEnum<
|
|
66
|
+
severity: z.ZodEnum<{
|
|
67
|
+
info: "info";
|
|
68
|
+
warning: "warning";
|
|
69
|
+
}>;
|
|
101
70
|
message: z.ZodString;
|
|
102
|
-
},
|
|
103
|
-
message: string;
|
|
104
|
-
severity: "info" | "warning";
|
|
105
|
-
}, {
|
|
106
|
-
message: string;
|
|
107
|
-
severity: "info" | "warning";
|
|
108
|
-
}>;
|
|
71
|
+
}, z.core.$strip>;
|
|
109
72
|
export type OnboardNote = z.infer<typeof OnboardNoteSchema>;
|
|
110
73
|
export declare const OnboardReportSchema: z.ZodObject<{
|
|
111
74
|
schemaVersion: z.ZodLiteral<1>;
|
|
112
75
|
mode: z.ZodLiteral<"dry-run">;
|
|
113
76
|
filesWritten: z.ZodLiteral<0>;
|
|
114
77
|
revision: z.ZodNullable<z.ZodString>;
|
|
115
|
-
stacks: z.ZodArray<z.ZodString
|
|
116
|
-
packageManagers: z.ZodArray<z.ZodString
|
|
117
|
-
testFrameworks: z.ZodArray<z.ZodString
|
|
78
|
+
stacks: z.ZodArray<z.ZodString>;
|
|
79
|
+
packageManagers: z.ZodArray<z.ZodString>;
|
|
80
|
+
testFrameworks: z.ZodArray<z.ZodString>;
|
|
118
81
|
hasCi: z.ZodBoolean;
|
|
119
82
|
sources: z.ZodArray<z.ZodObject<{
|
|
120
|
-
kind: z.ZodEnum<
|
|
83
|
+
kind: z.ZodEnum<{
|
|
84
|
+
"agent-instruction": "agent-instruction";
|
|
85
|
+
"lint-config": "lint-config";
|
|
86
|
+
"formatter-config": "formatter-config";
|
|
87
|
+
"type-config": "type-config";
|
|
88
|
+
ownership: "ownership";
|
|
89
|
+
"tooling-config": "tooling-config";
|
|
90
|
+
}>;
|
|
121
91
|
path: z.ZodString;
|
|
122
92
|
parsed: z.ZodBoolean;
|
|
123
93
|
note: z.ZodOptional<z.ZodString>;
|
|
124
|
-
},
|
|
125
|
-
path: string;
|
|
126
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
127
|
-
parsed: boolean;
|
|
128
|
-
note?: string | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
path: string;
|
|
131
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
132
|
-
parsed: boolean;
|
|
133
|
-
note?: string | undefined;
|
|
134
|
-
}>, "many">;
|
|
94
|
+
}, z.core.$strip>>;
|
|
135
95
|
candidates: z.ZodArray<z.ZodObject<{
|
|
136
96
|
id: z.ZodString;
|
|
137
|
-
kind: z.ZodEnum<
|
|
97
|
+
kind: z.ZodEnum<{
|
|
98
|
+
"agent-instruction": "agent-instruction";
|
|
99
|
+
"lint-config": "lint-config";
|
|
100
|
+
"formatter-config": "formatter-config";
|
|
101
|
+
"type-config": "type-config";
|
|
102
|
+
ownership: "ownership";
|
|
103
|
+
"tooling-config": "tooling-config";
|
|
104
|
+
}>;
|
|
138
105
|
statement: z.ZodString;
|
|
139
106
|
source: z.ZodObject<{
|
|
140
107
|
path: z.ZodString;
|
|
141
108
|
line: z.ZodOptional<z.ZodNumber>;
|
|
142
|
-
},
|
|
143
|
-
path: string;
|
|
144
|
-
line?: number | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
path: string;
|
|
147
|
-
line?: number | undefined;
|
|
148
|
-
}>;
|
|
109
|
+
}, z.core.$strip>;
|
|
149
110
|
status: z.ZodLiteral<"proposed">;
|
|
150
|
-
},
|
|
151
|
-
status: "proposed";
|
|
152
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
153
|
-
id: string;
|
|
154
|
-
statement: string;
|
|
155
|
-
source: {
|
|
156
|
-
path: string;
|
|
157
|
-
line?: number | undefined;
|
|
158
|
-
};
|
|
159
|
-
}, {
|
|
160
|
-
status: "proposed";
|
|
161
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
162
|
-
id: string;
|
|
163
|
-
statement: string;
|
|
164
|
-
source: {
|
|
165
|
-
path: string;
|
|
166
|
-
line?: number | undefined;
|
|
167
|
-
};
|
|
168
|
-
}>, "many">;
|
|
111
|
+
}, z.core.$strip>>;
|
|
169
112
|
decisions: z.ZodArray<z.ZodObject<{
|
|
170
113
|
id: z.ZodString;
|
|
171
114
|
title: z.ZodString;
|
|
172
115
|
path: z.ZodString;
|
|
173
|
-
},
|
|
174
|
-
path: string;
|
|
175
|
-
id: string;
|
|
176
|
-
title: string;
|
|
177
|
-
}, {
|
|
178
|
-
path: string;
|
|
179
|
-
id: string;
|
|
180
|
-
title: string;
|
|
181
|
-
}>, "many">;
|
|
116
|
+
}, z.core.$strip>>;
|
|
182
117
|
notes: z.ZodArray<z.ZodObject<{
|
|
183
|
-
severity: z.ZodEnum<
|
|
118
|
+
severity: z.ZodEnum<{
|
|
119
|
+
info: "info";
|
|
120
|
+
warning: "warning";
|
|
121
|
+
}>;
|
|
184
122
|
message: z.ZodString;
|
|
185
|
-
},
|
|
186
|
-
message: string;
|
|
187
|
-
severity: "info" | "warning";
|
|
188
|
-
}, {
|
|
189
|
-
message: string;
|
|
190
|
-
severity: "info" | "warning";
|
|
191
|
-
}>, "many">;
|
|
123
|
+
}, z.core.$strip>>;
|
|
192
124
|
conflicts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
193
|
-
kind: z.ZodEnum<
|
|
125
|
+
kind: z.ZodEnum<{
|
|
126
|
+
"multiple-config-files": "multiple-config-files";
|
|
127
|
+
"duplicate-statement": "duplicate-statement";
|
|
128
|
+
}>;
|
|
194
129
|
subject: z.ZodString;
|
|
195
|
-
paths: z.ZodArray<z.ZodString
|
|
130
|
+
paths: z.ZodArray<z.ZodString>;
|
|
196
131
|
detail: z.ZodString;
|
|
197
|
-
},
|
|
198
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
199
|
-
paths: string[];
|
|
200
|
-
detail: string;
|
|
201
|
-
subject: string;
|
|
202
|
-
}, {
|
|
203
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
204
|
-
paths: string[];
|
|
205
|
-
detail: string;
|
|
206
|
-
subject: string;
|
|
207
|
-
}>, "many">>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
208
133
|
missingTools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
209
134
|
tool: z.ZodString;
|
|
210
135
|
declaredIn: z.ZodString;
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
declaredIn: string;
|
|
214
|
-
}, {
|
|
215
|
-
tool: string;
|
|
216
|
-
declaredIn: string;
|
|
217
|
-
}>, "many">>;
|
|
218
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
schemaVersion: 1;
|
|
220
|
-
packageManagers: string[];
|
|
221
|
-
testFrameworks: string[];
|
|
222
|
-
hasCi: boolean;
|
|
223
|
-
revision: string | null;
|
|
224
|
-
stacks: string[];
|
|
225
|
-
mode: "dry-run";
|
|
226
|
-
filesWritten: 0;
|
|
227
|
-
sources: {
|
|
228
|
-
path: string;
|
|
229
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
230
|
-
parsed: boolean;
|
|
231
|
-
note?: string | undefined;
|
|
232
|
-
}[];
|
|
233
|
-
candidates: {
|
|
234
|
-
status: "proposed";
|
|
235
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
236
|
-
id: string;
|
|
237
|
-
statement: string;
|
|
238
|
-
source: {
|
|
239
|
-
path: string;
|
|
240
|
-
line?: number | undefined;
|
|
241
|
-
};
|
|
242
|
-
}[];
|
|
243
|
-
decisions: {
|
|
244
|
-
path: string;
|
|
245
|
-
id: string;
|
|
246
|
-
title: string;
|
|
247
|
-
}[];
|
|
248
|
-
notes: {
|
|
249
|
-
message: string;
|
|
250
|
-
severity: "info" | "warning";
|
|
251
|
-
}[];
|
|
252
|
-
conflicts: {
|
|
253
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
254
|
-
paths: string[];
|
|
255
|
-
detail: string;
|
|
256
|
-
subject: string;
|
|
257
|
-
}[];
|
|
258
|
-
missingTools: {
|
|
259
|
-
tool: string;
|
|
260
|
-
declaredIn: string;
|
|
261
|
-
}[];
|
|
262
|
-
}, {
|
|
263
|
-
schemaVersion: 1;
|
|
264
|
-
packageManagers: string[];
|
|
265
|
-
testFrameworks: string[];
|
|
266
|
-
hasCi: boolean;
|
|
267
|
-
revision: string | null;
|
|
268
|
-
stacks: string[];
|
|
269
|
-
mode: "dry-run";
|
|
270
|
-
filesWritten: 0;
|
|
271
|
-
sources: {
|
|
272
|
-
path: string;
|
|
273
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
274
|
-
parsed: boolean;
|
|
275
|
-
note?: string | undefined;
|
|
276
|
-
}[];
|
|
277
|
-
candidates: {
|
|
278
|
-
status: "proposed";
|
|
279
|
-
kind: "agent-instruction" | "lint-config" | "formatter-config" | "type-config" | "ownership" | "tooling-config";
|
|
280
|
-
id: string;
|
|
281
|
-
statement: string;
|
|
282
|
-
source: {
|
|
283
|
-
path: string;
|
|
284
|
-
line?: number | undefined;
|
|
285
|
-
};
|
|
286
|
-
}[];
|
|
287
|
-
decisions: {
|
|
288
|
-
path: string;
|
|
289
|
-
id: string;
|
|
290
|
-
title: string;
|
|
291
|
-
}[];
|
|
292
|
-
notes: {
|
|
293
|
-
message: string;
|
|
294
|
-
severity: "info" | "warning";
|
|
295
|
-
}[];
|
|
296
|
-
conflicts?: {
|
|
297
|
-
kind: "multiple-config-files" | "duplicate-statement";
|
|
298
|
-
paths: string[];
|
|
299
|
-
detail: string;
|
|
300
|
-
subject: string;
|
|
301
|
-
}[] | undefined;
|
|
302
|
-
missingTools?: {
|
|
303
|
-
tool: string;
|
|
304
|
-
declaredIn: string;
|
|
305
|
-
}[] | undefined;
|
|
306
|
-
}>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
307
138
|
export type OnboardReport = z.infer<typeof OnboardReportSchema>;
|
|
308
139
|
export declare const OnboardWriteResultSchema: z.ZodObject<{
|
|
309
140
|
schemaVersion: z.ZodLiteral<1>;
|
|
310
141
|
mode: z.ZodLiteral<"write">;
|
|
311
142
|
revision: z.ZodString;
|
|
312
|
-
rulesWritten: z.ZodArray<z.ZodString
|
|
313
|
-
rulesAlreadyProposed: z.ZodArray<z.ZodString
|
|
314
|
-
staleProposals: z.ZodArray<z.ZodString
|
|
143
|
+
rulesWritten: z.ZodArray<z.ZodString>;
|
|
144
|
+
rulesAlreadyProposed: z.ZodArray<z.ZodString>;
|
|
145
|
+
staleProposals: z.ZodArray<z.ZodString>;
|
|
315
146
|
baseline: z.ZodObject<{
|
|
316
|
-
status: z.ZodEnum<
|
|
147
|
+
status: z.ZodEnum<{
|
|
148
|
+
written: "written";
|
|
149
|
+
"kept-existing": "kept-existing";
|
|
150
|
+
}>;
|
|
317
151
|
entries: z.ZodNumber;
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
status: "written" | "kept-existing";
|
|
321
|
-
}, {
|
|
322
|
-
entries: number;
|
|
323
|
-
status: "written" | "kept-existing";
|
|
324
|
-
}>;
|
|
325
|
-
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
schemaVersion: 1;
|
|
327
|
-
revision: string;
|
|
328
|
-
mode: "write";
|
|
329
|
-
baseline: {
|
|
330
|
-
entries: number;
|
|
331
|
-
status: "written" | "kept-existing";
|
|
332
|
-
};
|
|
333
|
-
rulesWritten: string[];
|
|
334
|
-
rulesAlreadyProposed: string[];
|
|
335
|
-
staleProposals: string[];
|
|
336
|
-
}, {
|
|
337
|
-
schemaVersion: 1;
|
|
338
|
-
revision: string;
|
|
339
|
-
mode: "write";
|
|
340
|
-
baseline: {
|
|
341
|
-
entries: number;
|
|
342
|
-
status: "written" | "kept-existing";
|
|
343
|
-
};
|
|
344
|
-
rulesWritten: string[];
|
|
345
|
-
rulesAlreadyProposed: string[];
|
|
346
|
-
staleProposals: string[];
|
|
347
|
-
}>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
}, z.core.$strip>;
|
|
348
154
|
export type OnboardWriteResult = z.infer<typeof OnboardWriteResultSchema>;
|
|
349
155
|
//# sourceMappingURL=onboard-report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboard-report.d.ts","sourceRoot":"","sources":["../../src/onboard/onboard-report.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAExD,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"onboard-report.d.ts","sourceRoot":"","sources":["../../src/onboard/onboard-report.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAExD,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;iBAUlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,yBAAyB;;;;;;;;iBAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;iBAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;iBAcnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,77 +1,45 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PATTERN_SCHEMA_VERSION: 1;
|
|
3
|
-
export declare const PatternCategorySchema: z.ZodEnum<
|
|
3
|
+
export declare const PatternCategorySchema: z.ZodEnum<{
|
|
4
|
+
architecture: "architecture";
|
|
5
|
+
data: "data";
|
|
6
|
+
structural: "structural";
|
|
7
|
+
creational: "creational";
|
|
8
|
+
behavioral: "behavioral";
|
|
9
|
+
resilience: "resilience";
|
|
10
|
+
testing: "testing";
|
|
11
|
+
}>;
|
|
4
12
|
export declare const PatternExampleSchema: z.ZodObject<{
|
|
5
13
|
stack: z.ZodString;
|
|
6
14
|
path: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
path: string;
|
|
9
|
-
stack: string;
|
|
10
|
-
}, {
|
|
11
|
-
path: string;
|
|
12
|
-
stack: string;
|
|
13
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
14
16
|
export declare const PatternSchema: z.ZodObject<{
|
|
15
17
|
schemaVersion: z.ZodLiteral<1>;
|
|
16
18
|
id: z.ZodString;
|
|
17
19
|
name: z.ZodString;
|
|
18
|
-
category: z.ZodEnum<
|
|
20
|
+
category: z.ZodEnum<{
|
|
21
|
+
architecture: "architecture";
|
|
22
|
+
data: "data";
|
|
23
|
+
structural: "structural";
|
|
24
|
+
creational: "creational";
|
|
25
|
+
behavioral: "behavioral";
|
|
26
|
+
resilience: "resilience";
|
|
27
|
+
testing: "testing";
|
|
28
|
+
}>;
|
|
19
29
|
problem: z.ZodString;
|
|
20
|
-
whenToUse: z.ZodArray<z.ZodString
|
|
21
|
-
whenNotToUse: z.ZodArray<z.ZodString
|
|
22
|
-
simplerAlternatives: z.ZodArray<z.ZodString
|
|
30
|
+
whenToUse: z.ZodArray<z.ZodString>;
|
|
31
|
+
whenNotToUse: z.ZodArray<z.ZodString>;
|
|
32
|
+
simplerAlternatives: z.ZodArray<z.ZodString>;
|
|
23
33
|
structure: z.ZodString;
|
|
24
|
-
tradeOffs: z.ZodArray<z.ZodString
|
|
34
|
+
tradeOffs: z.ZodArray<z.ZodString>;
|
|
25
35
|
examples: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
36
|
stack: z.ZodString;
|
|
27
37
|
path: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
path: string;
|
|
30
|
-
stack: string;
|
|
31
|
-
}, {
|
|
32
|
-
path: string;
|
|
33
|
-
stack: string;
|
|
34
|
-
}>, "many">>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
35
39
|
testingStrategy: z.ZodString;
|
|
36
|
-
relatedPatterns: z.ZodDefault<z.ZodArray<z.ZodString
|
|
37
|
-
antiPatterns: z.ZodDefault<z.ZodArray<z.ZodString
|
|
38
|
-
},
|
|
39
|
-
schemaVersion: 1;
|
|
40
|
-
name: string;
|
|
41
|
-
id: string;
|
|
42
|
-
problem: string;
|
|
43
|
-
category: "architecture" | "data" | "structural" | "creational" | "behavioral" | "resilience" | "testing";
|
|
44
|
-
whenNotToUse: string[];
|
|
45
|
-
whenToUse: string[];
|
|
46
|
-
simplerAlternatives: string[];
|
|
47
|
-
structure: string;
|
|
48
|
-
tradeOffs: string[];
|
|
49
|
-
examples: {
|
|
50
|
-
path: string;
|
|
51
|
-
stack: string;
|
|
52
|
-
}[];
|
|
53
|
-
testingStrategy: string;
|
|
54
|
-
relatedPatterns: string[];
|
|
55
|
-
antiPatterns: string[];
|
|
56
|
-
}, {
|
|
57
|
-
schemaVersion: 1;
|
|
58
|
-
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
problem: string;
|
|
61
|
-
category: "architecture" | "data" | "structural" | "creational" | "behavioral" | "resilience" | "testing";
|
|
62
|
-
whenNotToUse: string[];
|
|
63
|
-
whenToUse: string[];
|
|
64
|
-
simplerAlternatives: string[];
|
|
65
|
-
structure: string;
|
|
66
|
-
tradeOffs: string[];
|
|
67
|
-
testingStrategy: string;
|
|
68
|
-
examples?: {
|
|
69
|
-
path: string;
|
|
70
|
-
stack: string;
|
|
71
|
-
}[] | undefined;
|
|
72
|
-
relatedPatterns?: string[] | undefined;
|
|
73
|
-
antiPatterns?: string[] | undefined;
|
|
74
|
-
}>;
|
|
40
|
+
relatedPatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
+
antiPatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
75
43
|
export type PatternCategory = z.infer<typeof PatternCategorySchema>;
|
|
76
44
|
export type PatternExample = z.infer<typeof PatternExampleSchema>;
|
|
77
45
|
export type Pattern = z.infer<typeof PatternSchema>;
|
|
@@ -87,20 +55,6 @@ export declare const PatternSelectionQuestionSchema: z.ZodObject<{
|
|
|
87
55
|
simplerAlternativeConsidered: z.ZodString;
|
|
88
56
|
complexityIntroduced: z.ZodString;
|
|
89
57
|
testingApproach: z.ZodString;
|
|
90
|
-
},
|
|
91
|
-
patternId: string;
|
|
92
|
-
problem: string;
|
|
93
|
-
currentDesignInsufficiency: string;
|
|
94
|
-
simplerAlternativeConsidered: string;
|
|
95
|
-
complexityIntroduced: string;
|
|
96
|
-
testingApproach: string;
|
|
97
|
-
}, {
|
|
98
|
-
patternId: string;
|
|
99
|
-
problem: string;
|
|
100
|
-
currentDesignInsufficiency: string;
|
|
101
|
-
simplerAlternativeConsidered: string;
|
|
102
|
-
complexityIntroduced: string;
|
|
103
|
-
testingApproach: string;
|
|
104
|
-
}>;
|
|
58
|
+
}, z.core.$strip>;
|
|
105
59
|
export type PatternSelectionQuestion = z.infer<typeof PatternSelectionQuestionSchema>;
|
|
106
60
|
//# sourceMappingURL=pattern.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/patterns/pattern.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/patterns/pattern.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,eAAO,MAAM,qBAAqB;;;;;;;;EAQhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBxB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;;;iBAYzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|