@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,157 +1,71 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RefactorGoalSchema: z.ZodEnum<
|
|
2
|
+
export declare const RefactorGoalSchema: z.ZodEnum<{
|
|
3
|
+
other: "other";
|
|
4
|
+
"reduce-coupling": "reduce-coupling";
|
|
5
|
+
"improve-testability": "improve-testability";
|
|
6
|
+
"improve-readability": "improve-readability";
|
|
7
|
+
"extract-module": "extract-module";
|
|
8
|
+
"extract-component": "extract-component";
|
|
9
|
+
"simplify-control-flow": "simplify-control-flow";
|
|
10
|
+
"introduce-pattern": "introduce-pattern";
|
|
11
|
+
"remove-dead-code": "remove-dead-code";
|
|
12
|
+
"modernize-syntax": "modernize-syntax";
|
|
13
|
+
}>;
|
|
3
14
|
export declare const PublicContractSchema: z.ZodObject<{
|
|
4
15
|
id: z.ZodString;
|
|
5
|
-
kind: z.ZodEnum<
|
|
16
|
+
kind: z.ZodEnum<{
|
|
17
|
+
"api-endpoint": "api-endpoint";
|
|
18
|
+
"function-signature": "function-signature";
|
|
19
|
+
"data-shape": "data-shape";
|
|
20
|
+
cli: "cli";
|
|
21
|
+
event: "event";
|
|
22
|
+
"side-effect": "side-effect";
|
|
23
|
+
}>;
|
|
6
24
|
description: z.ZodString;
|
|
7
25
|
characterizationTestPath: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
id: string;
|
|
11
|
-
description: string;
|
|
12
|
-
characterizationTestPath?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
15
|
-
id: string;
|
|
16
|
-
description: string;
|
|
17
|
-
characterizationTestPath?: string | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const RefactorContractSchema: z.ZodObject<{
|
|
20
28
|
id: z.ZodString;
|
|
21
29
|
title: z.ZodString;
|
|
22
30
|
targetModule: z.ZodString;
|
|
23
|
-
goal: z.ZodEnum<
|
|
31
|
+
goal: z.ZodEnum<{
|
|
32
|
+
other: "other";
|
|
33
|
+
"reduce-coupling": "reduce-coupling";
|
|
34
|
+
"improve-testability": "improve-testability";
|
|
35
|
+
"improve-readability": "improve-readability";
|
|
36
|
+
"extract-module": "extract-module";
|
|
37
|
+
"extract-component": "extract-component";
|
|
38
|
+
"simplify-control-flow": "simplify-control-flow";
|
|
39
|
+
"introduce-pattern": "introduce-pattern";
|
|
40
|
+
"remove-dead-code": "remove-dead-code";
|
|
41
|
+
"modernize-syntax": "modernize-syntax";
|
|
42
|
+
}>;
|
|
24
43
|
targetStructure: z.ZodString;
|
|
25
44
|
rationale: z.ZodString;
|
|
26
45
|
publicContracts: z.ZodArray<z.ZodObject<{
|
|
27
46
|
id: z.ZodString;
|
|
28
|
-
kind: z.ZodEnum<
|
|
47
|
+
kind: z.ZodEnum<{
|
|
48
|
+
"api-endpoint": "api-endpoint";
|
|
49
|
+
"function-signature": "function-signature";
|
|
50
|
+
"data-shape": "data-shape";
|
|
51
|
+
cli: "cli";
|
|
52
|
+
event: "event";
|
|
53
|
+
"side-effect": "side-effect";
|
|
54
|
+
}>;
|
|
29
55
|
description: z.ZodString;
|
|
30
56
|
characterizationTestPath: z.ZodOptional<z.ZodString>;
|
|
31
|
-
},
|
|
32
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
33
|
-
id: string;
|
|
34
|
-
description: string;
|
|
35
|
-
characterizationTestPath?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
38
|
-
id: string;
|
|
39
|
-
description: string;
|
|
40
|
-
characterizationTestPath?: string | undefined;
|
|
41
|
-
}>, "many">;
|
|
57
|
+
}, z.core.$strip>>;
|
|
42
58
|
candidatePatterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
59
|
pattern: z.ZodString;
|
|
44
60
|
whyItApplies: z.ZodString;
|
|
45
61
|
whenNotToUse: z.ZodString;
|
|
46
62
|
simplerAlternative: z.ZodString;
|
|
47
|
-
},
|
|
48
|
-
pattern: string;
|
|
49
|
-
whyItApplies: string;
|
|
50
|
-
whenNotToUse: string;
|
|
51
|
-
simplerAlternative: string;
|
|
52
|
-
}, {
|
|
53
|
-
pattern: string;
|
|
54
|
-
whyItApplies: string;
|
|
55
|
-
whenNotToUse: string;
|
|
56
|
-
simplerAlternative: string;
|
|
57
|
-
}>, "many">>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
58
64
|
behaviorChangeApproved: z.ZodDefault<z.ZodBoolean>;
|
|
59
65
|
behaviorChangeRationale: z.ZodOptional<z.ZodString>;
|
|
60
|
-
inScopePaths: z.ZodArray<z.ZodString
|
|
61
|
-
outOfScopePaths: z.ZodDefault<z.ZodArray<z.ZodString
|
|
62
|
-
},
|
|
63
|
-
id: string;
|
|
64
|
-
title: string;
|
|
65
|
-
rationale: string;
|
|
66
|
-
targetModule: string;
|
|
67
|
-
goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
|
|
68
|
-
targetStructure: string;
|
|
69
|
-
publicContracts: {
|
|
70
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
71
|
-
id: string;
|
|
72
|
-
description: string;
|
|
73
|
-
characterizationTestPath?: string | undefined;
|
|
74
|
-
}[];
|
|
75
|
-
candidatePatterns: {
|
|
76
|
-
pattern: string;
|
|
77
|
-
whyItApplies: string;
|
|
78
|
-
whenNotToUse: string;
|
|
79
|
-
simplerAlternative: string;
|
|
80
|
-
}[];
|
|
81
|
-
behaviorChangeApproved: boolean;
|
|
82
|
-
inScopePaths: string[];
|
|
83
|
-
outOfScopePaths: string[];
|
|
84
|
-
behaviorChangeRationale?: string | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
id: string;
|
|
87
|
-
title: string;
|
|
88
|
-
rationale: string;
|
|
89
|
-
targetModule: string;
|
|
90
|
-
goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
|
|
91
|
-
targetStructure: string;
|
|
92
|
-
publicContracts: {
|
|
93
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
94
|
-
id: string;
|
|
95
|
-
description: string;
|
|
96
|
-
characterizationTestPath?: string | undefined;
|
|
97
|
-
}[];
|
|
98
|
-
inScopePaths: string[];
|
|
99
|
-
candidatePatterns?: {
|
|
100
|
-
pattern: string;
|
|
101
|
-
whyItApplies: string;
|
|
102
|
-
whenNotToUse: string;
|
|
103
|
-
simplerAlternative: string;
|
|
104
|
-
}[] | undefined;
|
|
105
|
-
behaviorChangeApproved?: boolean | undefined;
|
|
106
|
-
behaviorChangeRationale?: string | undefined;
|
|
107
|
-
outOfScopePaths?: string[] | undefined;
|
|
108
|
-
}>, {
|
|
109
|
-
id: string;
|
|
110
|
-
title: string;
|
|
111
|
-
rationale: string;
|
|
112
|
-
targetModule: string;
|
|
113
|
-
goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
|
|
114
|
-
targetStructure: string;
|
|
115
|
-
publicContracts: {
|
|
116
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
117
|
-
id: string;
|
|
118
|
-
description: string;
|
|
119
|
-
characterizationTestPath?: string | undefined;
|
|
120
|
-
}[];
|
|
121
|
-
candidatePatterns: {
|
|
122
|
-
pattern: string;
|
|
123
|
-
whyItApplies: string;
|
|
124
|
-
whenNotToUse: string;
|
|
125
|
-
simplerAlternative: string;
|
|
126
|
-
}[];
|
|
127
|
-
behaviorChangeApproved: boolean;
|
|
128
|
-
inScopePaths: string[];
|
|
129
|
-
outOfScopePaths: string[];
|
|
130
|
-
behaviorChangeRationale?: string | undefined;
|
|
131
|
-
}, {
|
|
132
|
-
id: string;
|
|
133
|
-
title: string;
|
|
134
|
-
rationale: string;
|
|
135
|
-
targetModule: string;
|
|
136
|
-
goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
|
|
137
|
-
targetStructure: string;
|
|
138
|
-
publicContracts: {
|
|
139
|
-
kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
|
|
140
|
-
id: string;
|
|
141
|
-
description: string;
|
|
142
|
-
characterizationTestPath?: string | undefined;
|
|
143
|
-
}[];
|
|
144
|
-
inScopePaths: string[];
|
|
145
|
-
candidatePatterns?: {
|
|
146
|
-
pattern: string;
|
|
147
|
-
whyItApplies: string;
|
|
148
|
-
whenNotToUse: string;
|
|
149
|
-
simplerAlternative: string;
|
|
150
|
-
}[] | undefined;
|
|
151
|
-
behaviorChangeApproved?: boolean | undefined;
|
|
152
|
-
behaviorChangeRationale?: string | undefined;
|
|
153
|
-
outOfScopePaths?: string[] | undefined;
|
|
154
|
-
}>;
|
|
66
|
+
inScopePaths: z.ZodArray<z.ZodString>;
|
|
67
|
+
outOfScopePaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
|
+
}, z.core.$strict>;
|
|
155
69
|
export type RefactorGoal = z.infer<typeof RefactorGoalSchema>;
|
|
156
70
|
export type PublicContract = z.infer<typeof PublicContractSchema>;
|
|
157
71
|
export type RefactorContract = z.infer<typeof RefactorContractSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refactor-contract.d.ts","sourceRoot":"","sources":["../../src/maintenance/refactor-contract.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"refactor-contract.d.ts","sourceRoot":"","sources":["../../src/maintenance/refactor-contract.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;EAW7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAO/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmChC,CAAC;AAEJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,69 +1,68 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const REFACTOR_STAGE: z.ZodEnum<
|
|
2
|
+
export declare const REFACTOR_STAGE: z.ZodEnum<{
|
|
3
|
+
review: "review";
|
|
4
|
+
contract: "contract";
|
|
5
|
+
"discover-deps": "discover-deps";
|
|
6
|
+
"characterization-tests": "characterization-tests";
|
|
7
|
+
"target-structure": "target-structure";
|
|
8
|
+
"identify-patterns": "identify-patterns";
|
|
9
|
+
"incremental-refactor": "incremental-refactor";
|
|
10
|
+
"contract-validation": "contract-validation";
|
|
11
|
+
"regression-testing": "regression-testing";
|
|
12
|
+
"quality-comparison": "quality-comparison";
|
|
13
|
+
}>;
|
|
3
14
|
export type RefactorStage = z.infer<typeof REFACTOR_STAGE>;
|
|
4
|
-
export declare const REFACTOR_STATUS: z.ZodEnum<
|
|
15
|
+
export declare const REFACTOR_STATUS: z.ZodEnum<{
|
|
16
|
+
failed: "failed";
|
|
17
|
+
blocked: "blocked";
|
|
18
|
+
pending: "pending";
|
|
19
|
+
in_progress: "in_progress";
|
|
20
|
+
completed: "completed";
|
|
21
|
+
}>;
|
|
5
22
|
export type RefactorStatus = z.infer<typeof REFACTOR_STATUS>;
|
|
6
|
-
export declare const REFACTOR_TRANSITION: z.ZodEnum<
|
|
23
|
+
export declare const REFACTOR_TRANSITION: z.ZodEnum<{
|
|
24
|
+
start: "start";
|
|
25
|
+
block: "block";
|
|
26
|
+
resume: "resume";
|
|
27
|
+
complete: "complete";
|
|
28
|
+
fail: "fail";
|
|
29
|
+
advance: "advance";
|
|
30
|
+
}>;
|
|
7
31
|
export type RefactorTransition = z.infer<typeof REFACTOR_TRANSITION>;
|
|
8
32
|
export declare const RefactorStateSchema: z.ZodObject<{
|
|
9
33
|
schemaVersion: z.ZodLiteral<1>;
|
|
10
34
|
runId: z.ZodString;
|
|
11
35
|
refactorId: z.ZodString;
|
|
12
|
-
status: z.ZodEnum<
|
|
13
|
-
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
failed: "failed";
|
|
38
|
+
blocked: "blocked";
|
|
39
|
+
pending: "pending";
|
|
40
|
+
in_progress: "in_progress";
|
|
41
|
+
completed: "completed";
|
|
42
|
+
}>;
|
|
43
|
+
stage: z.ZodEnum<{
|
|
44
|
+
review: "review";
|
|
45
|
+
contract: "contract";
|
|
46
|
+
"discover-deps": "discover-deps";
|
|
47
|
+
"characterization-tests": "characterization-tests";
|
|
48
|
+
"target-structure": "target-structure";
|
|
49
|
+
"identify-patterns": "identify-patterns";
|
|
50
|
+
"incremental-refactor": "incremental-refactor";
|
|
51
|
+
"contract-validation": "contract-validation";
|
|
52
|
+
"regression-testing": "regression-testing";
|
|
53
|
+
"quality-comparison": "quality-comparison";
|
|
54
|
+
}>;
|
|
14
55
|
startedAt: z.ZodOptional<z.ZodString>;
|
|
15
56
|
dependencyMapPath: z.ZodOptional<z.ZodString>;
|
|
16
|
-
characterizationTestPaths: z.ZodDefault<z.ZodArray<z.ZodString
|
|
57
|
+
characterizationTestPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
58
|
incrementsApplied: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
18
59
|
id: z.ZodString;
|
|
19
60
|
summary: z.ZodString;
|
|
20
|
-
affectedFiles: z.ZodArray<z.ZodString
|
|
61
|
+
affectedFiles: z.ZodArray<z.ZodString>;
|
|
21
62
|
regressionPassed: z.ZodBoolean;
|
|
22
|
-
},
|
|
23
|
-
summary: string;
|
|
24
|
-
id: string;
|
|
25
|
-
affectedFiles: string[];
|
|
26
|
-
regressionPassed: boolean;
|
|
27
|
-
}, {
|
|
28
|
-
summary: string;
|
|
29
|
-
id: string;
|
|
30
|
-
affectedFiles: string[];
|
|
31
|
-
regressionPassed: boolean;
|
|
32
|
-
}>, "many">>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
33
64
|
beforeAfterReportPath: z.ZodOptional<z.ZodString>;
|
|
34
|
-
},
|
|
35
|
-
status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
|
|
36
|
-
schemaVersion: 1;
|
|
37
|
-
runId: string;
|
|
38
|
-
stage: "review" | "contract" | "discover-deps" | "characterization-tests" | "target-structure" | "identify-patterns" | "incremental-refactor" | "contract-validation" | "regression-testing" | "quality-comparison";
|
|
39
|
-
refactorId: string;
|
|
40
|
-
characterizationTestPaths: string[];
|
|
41
|
-
incrementsApplied: {
|
|
42
|
-
summary: string;
|
|
43
|
-
id: string;
|
|
44
|
-
affectedFiles: string[];
|
|
45
|
-
regressionPassed: boolean;
|
|
46
|
-
}[];
|
|
47
|
-
startedAt?: string | undefined;
|
|
48
|
-
dependencyMapPath?: string | undefined;
|
|
49
|
-
beforeAfterReportPath?: string | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
|
|
52
|
-
schemaVersion: 1;
|
|
53
|
-
runId: string;
|
|
54
|
-
stage: "review" | "contract" | "discover-deps" | "characterization-tests" | "target-structure" | "identify-patterns" | "incremental-refactor" | "contract-validation" | "regression-testing" | "quality-comparison";
|
|
55
|
-
refactorId: string;
|
|
56
|
-
startedAt?: string | undefined;
|
|
57
|
-
dependencyMapPath?: string | undefined;
|
|
58
|
-
characterizationTestPaths?: string[] | undefined;
|
|
59
|
-
incrementsApplied?: {
|
|
60
|
-
summary: string;
|
|
61
|
-
id: string;
|
|
62
|
-
affectedFiles: string[];
|
|
63
|
-
regressionPassed: boolean;
|
|
64
|
-
}[] | undefined;
|
|
65
|
-
beforeAfterReportPath?: string | undefined;
|
|
66
|
-
}>;
|
|
65
|
+
}, z.core.$strip>;
|
|
67
66
|
export type RefactorState = z.infer<typeof RefactorStateSchema>;
|
|
68
67
|
export declare const REFACTOR_STAGE_ORDER: ReadonlyArray<RefactorStage>;
|
|
69
68
|
export declare const REFACTOR_TRANSITIONS_BY_STATUS: Readonly<Record<RefactorStatus, ReadonlyArray<RefactorTransition>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refactor-workflow.d.ts","sourceRoot":"","sources":["../../src/maintenance/refactor-workflow.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"refactor-workflow.d.ts","sourceRoot":"","sources":["../../src/maintenance/refactor-workflow.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;EAWzB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D,eAAO,MAAM,eAAe;;;;;;EAAuE,CAAC;AACpG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;EAO9B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,aAAa,CAW7D,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CACnD,MAAM,CAAC,cAAc,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAO1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAOvF,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,aAAa,CAAc,CAAC;AAEpF;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAKT"}
|
|
@@ -1,13 +1,41 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const OBSERVER_EVENT_SCHEMA_VERSION: 1;
|
|
3
|
-
export declare const ObserverEventKindSchema: z.ZodEnum<
|
|
3
|
+
export declare const ObserverEventKindSchema: z.ZodEnum<{
|
|
4
|
+
verification: "verification";
|
|
5
|
+
"session-start": "session-start";
|
|
6
|
+
"session-end": "session-end";
|
|
7
|
+
"turn-start": "turn-start";
|
|
8
|
+
"turn-step": "turn-step";
|
|
9
|
+
"turn-complete": "turn-complete";
|
|
10
|
+
"agent-spawn": "agent-spawn";
|
|
11
|
+
"agent-complete": "agent-complete";
|
|
12
|
+
"tool-call": "tool-call";
|
|
13
|
+
"tool-result": "tool-result";
|
|
14
|
+
escalation: "escalation";
|
|
15
|
+
failure: "failure";
|
|
16
|
+
"blocked-action": "blocked-action";
|
|
17
|
+
}>;
|
|
4
18
|
export declare const ObserverEventSchema: z.ZodObject<{
|
|
5
19
|
schemaVersion: z.ZodLiteral<1>;
|
|
6
20
|
id: z.ZodString;
|
|
7
21
|
runId: z.ZodString;
|
|
8
22
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9
23
|
at: z.ZodString;
|
|
10
|
-
kind: z.ZodEnum<
|
|
24
|
+
kind: z.ZodEnum<{
|
|
25
|
+
verification: "verification";
|
|
26
|
+
"session-start": "session-start";
|
|
27
|
+
"session-end": "session-end";
|
|
28
|
+
"turn-start": "turn-start";
|
|
29
|
+
"turn-step": "turn-step";
|
|
30
|
+
"turn-complete": "turn-complete";
|
|
31
|
+
"agent-spawn": "agent-spawn";
|
|
32
|
+
"agent-complete": "agent-complete";
|
|
33
|
+
"tool-call": "tool-call";
|
|
34
|
+
"tool-result": "tool-result";
|
|
35
|
+
escalation: "escalation";
|
|
36
|
+
failure: "failure";
|
|
37
|
+
"blocked-action": "blocked-action";
|
|
38
|
+
}>;
|
|
11
39
|
model: z.ZodOptional<z.ZodString>;
|
|
12
40
|
effort: z.ZodOptional<z.ZodString>;
|
|
13
41
|
tokensIn: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15,35 +43,7 @@ export declare const ObserverEventSchema: z.ZodObject<{
|
|
|
15
43
|
estimatedCostUnits: z.ZodOptional<z.ZodNumber>;
|
|
16
44
|
summary: z.ZodString;
|
|
17
45
|
partial: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
-
},
|
|
19
|
-
at: string;
|
|
20
|
-
schemaVersion: 1;
|
|
21
|
-
summary: string;
|
|
22
|
-
kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
|
|
23
|
-
id: string;
|
|
24
|
-
runId: string;
|
|
25
|
-
partial: boolean;
|
|
26
|
-
model?: string | undefined;
|
|
27
|
-
effort?: string | undefined;
|
|
28
|
-
tokensIn?: number | undefined;
|
|
29
|
-
tokensOut?: number | undefined;
|
|
30
|
-
sessionId?: string | undefined;
|
|
31
|
-
estimatedCostUnits?: number | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
at: string;
|
|
34
|
-
schemaVersion: 1;
|
|
35
|
-
summary: string;
|
|
36
|
-
kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
|
|
37
|
-
id: string;
|
|
38
|
-
runId: string;
|
|
39
|
-
model?: string | undefined;
|
|
40
|
-
effort?: string | undefined;
|
|
41
|
-
tokensIn?: number | undefined;
|
|
42
|
-
tokensOut?: number | undefined;
|
|
43
|
-
sessionId?: string | undefined;
|
|
44
|
-
estimatedCostUnits?: number | undefined;
|
|
45
|
-
partial?: boolean | undefined;
|
|
46
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
47
|
export type ObserverEvent = z.infer<typeof ObserverEventSchema>;
|
|
48
48
|
export type ObserverEventKind = z.infer<typeof ObserverEventKindSchema>;
|
|
49
49
|
//# sourceMappingURL=event-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-schema.d.ts","sourceRoot":"","sources":["../../src/observer/event-schema.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAExD,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"event-schema.d.ts","sourceRoot":"","sources":["../../src/observer/event-schema.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAExD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EAclC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const JOURNAL_SCHEMA_VERSION: 1;
|
|
3
3
|
/** Semantic events in the life of a feature run. */
|
|
4
|
-
export declare const JournalEventKindSchema: z.ZodEnum<
|
|
4
|
+
export declare const JournalEventKindSchema: z.ZodEnum<{
|
|
5
|
+
"workflow.started": "workflow.started";
|
|
6
|
+
"phase.recorded": "phase.recorded";
|
|
7
|
+
"phase.rejected": "phase.rejected";
|
|
8
|
+
"phase.failed": "phase.failed";
|
|
9
|
+
"strength.recorded": "strength.recorded";
|
|
10
|
+
"workflow.finalized": "workflow.finalized";
|
|
11
|
+
"next.offered": "next.offered";
|
|
12
|
+
}>;
|
|
5
13
|
export type JournalEventKind = z.infer<typeof JournalEventKindSchema>;
|
|
6
14
|
/**
|
|
7
15
|
* Who invoked the kit. The kit CANNOT infer agent vs. human at the CLI
|
|
@@ -11,73 +19,40 @@ export type JournalEventKind = z.infer<typeof JournalEventKindSchema>;
|
|
|
11
19
|
* guessed.
|
|
12
20
|
*/
|
|
13
21
|
export declare const JournalActorSchema: z.ZodObject<{
|
|
14
|
-
kind: z.ZodEnum<
|
|
15
|
-
|
|
22
|
+
kind: z.ZodEnum<{
|
|
23
|
+
human: "human";
|
|
24
|
+
agent: "agent";
|
|
25
|
+
kit: "kit";
|
|
26
|
+
}>;
|
|
16
27
|
host: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
kind: "human" | "agent" | "kit";
|
|
19
|
-
host?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
kind: "human" | "agent" | "kit";
|
|
22
|
-
host?: string | undefined;
|
|
23
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
24
29
|
export type JournalActor = z.infer<typeof JournalActorSchema>;
|
|
25
30
|
export declare const JournalEventSchema: z.ZodObject<{
|
|
26
31
|
schemaVersion: z.ZodLiteral<1>;
|
|
27
|
-
/** 0-based position in the chain; strictly increasing, no gaps. */
|
|
28
32
|
seq: z.ZodNumber;
|
|
29
|
-
/** ISO 8601 timestamp. */
|
|
30
33
|
ts: z.ZodString;
|
|
31
|
-
/** The feature run this event belongs to (run id == feature id). */
|
|
32
34
|
featureId: z.ZodString;
|
|
33
|
-
/** Target task, when the event is task-scoped. */
|
|
34
35
|
taskId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
kind: z.ZodEnum<
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
"workflow.started": "workflow.started";
|
|
38
|
+
"phase.recorded": "phase.recorded";
|
|
39
|
+
"phase.rejected": "phase.rejected";
|
|
40
|
+
"phase.failed": "phase.failed";
|
|
41
|
+
"strength.recorded": "strength.recorded";
|
|
42
|
+
"workflow.finalized": "workflow.finalized";
|
|
43
|
+
"next.offered": "next.offered";
|
|
44
|
+
}>;
|
|
36
45
|
actor: z.ZodObject<{
|
|
37
|
-
kind: z.ZodEnum<
|
|
38
|
-
|
|
46
|
+
kind: z.ZodEnum<{
|
|
47
|
+
human: "human";
|
|
48
|
+
agent: "agent";
|
|
49
|
+
kit: "kit";
|
|
50
|
+
}>;
|
|
39
51
|
host: z.ZodOptional<z.ZodString>;
|
|
40
|
-
},
|
|
41
|
-
kind: "human" | "agent" | "kit";
|
|
42
|
-
host?: string | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
kind: "human" | "agent" | "kit";
|
|
45
|
-
host?: string | undefined;
|
|
46
|
-
}>;
|
|
47
|
-
/** Redacted, bounded event detail (evidence excerpts, statuses). */
|
|
52
|
+
}, z.core.$strip>;
|
|
48
53
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49
|
-
/** Hash of the previous event ('GENESIS' for seq 0). */
|
|
50
54
|
prevHash: z.ZodString;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
schemaVersion: 1;
|
|
55
|
-
kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "strength.recorded" | "workflow.finalized" | "next.offered";
|
|
56
|
-
featureId: string;
|
|
57
|
-
seq: number;
|
|
58
|
-
ts: string;
|
|
59
|
-
actor: {
|
|
60
|
-
kind: "human" | "agent" | "kit";
|
|
61
|
-
host?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
payload: Record<string, unknown>;
|
|
64
|
-
prevHash: string;
|
|
65
|
-
hash: string;
|
|
66
|
-
taskId?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
schemaVersion: 1;
|
|
69
|
-
kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "strength.recorded" | "workflow.finalized" | "next.offered";
|
|
70
|
-
featureId: string;
|
|
71
|
-
seq: number;
|
|
72
|
-
ts: string;
|
|
73
|
-
actor: {
|
|
74
|
-
kind: "human" | "agent" | "kit";
|
|
75
|
-
host?: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
payload: Record<string, unknown>;
|
|
78
|
-
prevHash: string;
|
|
79
|
-
hash: string;
|
|
80
|
-
taskId?: string | undefined;
|
|
81
|
-
}>;
|
|
55
|
+
hash: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
82
57
|
export type JournalEvent = z.infer<typeof JournalEventSchema>;
|
|
83
58
|
//# sourceMappingURL=journal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,eAAO,MAAM,sBAAsB;;;;;;;;EAkBjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;iBAI7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAK9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/observer/journal.js
CHANGED
|
@@ -74,7 +74,7 @@ export const JournalEventSchema = z.object({
|
|
|
74
74
|
kind: JournalEventKindSchema,
|
|
75
75
|
actor: JournalActorSchema,
|
|
76
76
|
/** Redacted, bounded event detail (evidence excerpts, statuses). */
|
|
77
|
-
payload: z.record(z.unknown()),
|
|
77
|
+
payload: z.record(z.string(), z.unknown()),
|
|
78
78
|
/** Hash of the previous event ('GENESIS' for seq 0). */
|
|
79
79
|
prevHash: HashSchema,
|
|
80
80
|
/** SHA-256 over the canonical serialization of this event without `hash`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journal.js","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,oDAAoD;AACpD,kDAAkD;AAClD,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,qEAAqE;AACrE,mEAAmE;AACnE,uDAAuD;AACvD,EAAE;AACF,iCAAiC;AACjC,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,wEAAwE;AACxE,sEAAsE;AACtE,oEAAoE;AACpE,sEAAsE;AACtE,wEAAwE;AACxE,sDAAsD;AACtD,kEAAkE;AAClE,4DAA4D;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,sDAAsD;IACtD,kBAAkB;IAClB,qEAAqE;IACrE,gBAAgB;IAChB,8GAA8G;IAC9G,gBAAgB;IAChB,0EAA0E;IAC1E,cAAc;IACd;;;OAGG;IACH,mBAAmB;IACnB,6EAA6E;IAC7E,oBAAoB;IACpB,qHAAqH;IACrH,cAAc;CACf,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,gFAAgF;IAChF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,2EAA2E;AAC3E,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,0BAA0B,EAAE,kCAAkC,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IAChD,mEAAmE;IACnE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACnC,0BAA0B;IAC1B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,kDAAkD;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,kBAAkB;IACzB,oEAAoE;IACpE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"journal.js","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,oDAAoD;AACpD,kDAAkD;AAClD,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,qEAAqE;AACrE,mEAAmE;AACnE,uDAAuD;AACvD,EAAE;AACF,iCAAiC;AACjC,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,wEAAwE;AACxE,sEAAsE;AACtE,oEAAoE;AACpE,sEAAsE;AACtE,wEAAwE;AACxE,sDAAsD;AACtD,kEAAkE;AAClE,4DAA4D;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,sDAAsD;IACtD,kBAAkB;IAClB,qEAAqE;IACrE,gBAAgB;IAChB,8GAA8G;IAC9G,gBAAgB;IAChB,0EAA0E;IAC1E,cAAc;IACd;;;OAGG;IACH,mBAAmB;IACnB,6EAA6E;IAC7E,oBAAoB;IACpB,qHAAqH;IACrH,cAAc;CACf,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,gFAAgF;IAChF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,2EAA2E;AAC3E,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,0BAA0B,EAAE,kCAAkC,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IAChD,mEAAmE;IACnE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACnC,0BAA0B;IAC1B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,kDAAkD;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,kBAAkB;IACzB,oEAAoE;IACpE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IAC1C,wDAAwD;IACxD,QAAQ,EAAE,UAAU;IACpB,6EAA6E;IAC7E,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,EAAE,gDAAgD,CAAC;CAClG,CAAC,CAAC"}
|
|
@@ -5,21 +5,7 @@ export declare const RetentionPolicySchema: z.ZodObject<{
|
|
|
5
5
|
maxEventsPerRun: z.ZodDefault<z.ZodNumber>;
|
|
6
6
|
redactSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
7
7
|
dropUsageData: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
-
redactPathPatterns: z.ZodDefault<z.ZodArray<z.ZodString
|
|
9
|
-
},
|
|
10
|
-
schemaVersion: 1;
|
|
11
|
-
retainDays: number;
|
|
12
|
-
maxEventsPerRun: number;
|
|
13
|
-
redactSummaries: boolean;
|
|
14
|
-
dropUsageData: boolean;
|
|
15
|
-
redactPathPatterns: string[];
|
|
16
|
-
}, {
|
|
17
|
-
schemaVersion: 1;
|
|
18
|
-
retainDays?: number | undefined;
|
|
19
|
-
maxEventsPerRun?: number | undefined;
|
|
20
|
-
redactSummaries?: boolean | undefined;
|
|
21
|
-
dropUsageData?: boolean | undefined;
|
|
22
|
-
redactPathPatterns?: string[] | undefined;
|
|
23
|
-
}>;
|
|
8
|
+
redactPathPatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
24
10
|
export type RetentionPolicy = z.infer<typeof RetentionPolicySchema>;
|
|
25
11
|
//# sourceMappingURL=retention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/observer/retention.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/observer/retention.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;iBAchC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|