@manehorizons/cadence-types 1.4.0 → 1.5.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/handoff.d.ts +144 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +32 -0
- package/dist/handoff.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +41 -41
- package/dist/summary.d.ts +9 -9
- package/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Read-only git facts captured for a handoff. Best-effort: a non-repo or a
|
|
3
|
+
* missing git binary yields the `{ available: false }` variant. */
|
|
4
|
+
export declare const GitFactsZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
available: z.ZodLiteral<false>;
|
|
6
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7
|
+
available: z.ZodLiteral<true>;
|
|
8
|
+
branch: z.ZodString;
|
|
9
|
+
dirty: z.ZodBoolean;
|
|
10
|
+
ahead: z.ZodNumber;
|
|
11
|
+
behind: z.ZodNumber;
|
|
12
|
+
head: z.ZodString;
|
|
13
|
+
recentCommits: z.ZodString;
|
|
14
|
+
diffStat: z.ZodString;
|
|
15
|
+
}, z.core.$strip>]>;
|
|
16
|
+
export type GitFacts = z.infer<typeof GitFactsZ>;
|
|
17
|
+
/** Structured machine facts pre-filled into a SESSION doc. Rendered to flat
|
|
18
|
+
* snake_case frontmatter keys by render-session.ts. */
|
|
19
|
+
export interface HandoffFrontmatter {
|
|
20
|
+
schemaVersion: 1;
|
|
21
|
+
generatedAt: string;
|
|
22
|
+
label: string | null;
|
|
23
|
+
loop: {
|
|
24
|
+
position: string;
|
|
25
|
+
activePhase: string | null;
|
|
26
|
+
activeDraft: string | null;
|
|
27
|
+
tier: string | null;
|
|
28
|
+
};
|
|
29
|
+
git: GitFacts;
|
|
30
|
+
contextPacketPath: string;
|
|
31
|
+
}
|
|
32
|
+
/** `cadence resume --json` payload. */
|
|
33
|
+
export declare const ResumeResultZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
34
|
+
found: z.ZodLiteral<false>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
found: z.ZodLiteral<true>;
|
|
37
|
+
handoffPath: z.ZodString;
|
|
38
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
doc: z.ZodString;
|
|
40
|
+
context: z.ZodObject<{
|
|
41
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
42
|
+
scope: z.ZodEnum<{
|
|
43
|
+
phase: "phase";
|
|
44
|
+
handoff: "handoff";
|
|
45
|
+
review: "review";
|
|
46
|
+
agent: "agent";
|
|
47
|
+
}>;
|
|
48
|
+
generatedAt: z.ZodString;
|
|
49
|
+
loop: z.ZodObject<{
|
|
50
|
+
present: z.ZodBoolean;
|
|
51
|
+
loopPosition: z.ZodOptional<z.ZodString>;
|
|
52
|
+
activePhase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
activeDraft: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
nextAction: z.ZodOptional<z.ZodString>;
|
|
57
|
+
stateError: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
recommendations: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
score: z.ZodNumber;
|
|
63
|
+
status: z.ZodEnum<{
|
|
64
|
+
candidate: "candidate";
|
|
65
|
+
accepted: "accepted";
|
|
66
|
+
deferred: "deferred";
|
|
67
|
+
rejected: "rejected";
|
|
68
|
+
converted: "converted";
|
|
69
|
+
}>;
|
|
70
|
+
readiness: z.ZodEnum<{
|
|
71
|
+
"raw-idea": "raw-idea";
|
|
72
|
+
"needs-evidence": "needs-evidence";
|
|
73
|
+
"needs-decision": "needs-decision";
|
|
74
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
75
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
76
|
+
blocked: "blocked";
|
|
77
|
+
}>;
|
|
78
|
+
priority: z.ZodEnum<{
|
|
79
|
+
low: "low";
|
|
80
|
+
medium: "medium";
|
|
81
|
+
high: "high";
|
|
82
|
+
critical: "critical";
|
|
83
|
+
}>;
|
|
84
|
+
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
assumptions: z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
recommendationId: z.ZodString;
|
|
89
|
+
text: z.ZodString;
|
|
90
|
+
status: z.ZodLiteral<"open">;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
decisions: z.ZodArray<z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
title: z.ZodString;
|
|
95
|
+
rationale: z.ZodString;
|
|
96
|
+
recommendationId: z.ZodOptional<z.ZodString>;
|
|
97
|
+
status: z.ZodLiteral<"active">;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
files: z.ZodArray<z.ZodObject<{
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
why: z.ZodString;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
needsAttention: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
score: z.ZodNumber;
|
|
107
|
+
status: z.ZodEnum<{
|
|
108
|
+
candidate: "candidate";
|
|
109
|
+
accepted: "accepted";
|
|
110
|
+
deferred: "deferred";
|
|
111
|
+
rejected: "rejected";
|
|
112
|
+
converted: "converted";
|
|
113
|
+
}>;
|
|
114
|
+
readiness: z.ZodEnum<{
|
|
115
|
+
"raw-idea": "raw-idea";
|
|
116
|
+
"needs-evidence": "needs-evidence";
|
|
117
|
+
"needs-decision": "needs-decision";
|
|
118
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
119
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
120
|
+
blocked: "blocked";
|
|
121
|
+
}>;
|
|
122
|
+
priority: z.ZodEnum<{
|
|
123
|
+
low: "low";
|
|
124
|
+
medium: "medium";
|
|
125
|
+
high: "high";
|
|
126
|
+
critical: "critical";
|
|
127
|
+
}>;
|
|
128
|
+
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
totals: z.ZodObject<{
|
|
131
|
+
recommendations: z.ZodNumber;
|
|
132
|
+
assumptions: z.ZodNumber;
|
|
133
|
+
decisions: z.ZodNumber;
|
|
134
|
+
files: z.ZodNumber;
|
|
135
|
+
recommendationsOmitted: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
drift: z.ZodNullable<z.ZodObject<{
|
|
139
|
+
docLoopPosition: z.ZodString;
|
|
140
|
+
liveLoopPosition: z.ZodString;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
}, z.core.$strip>]>;
|
|
143
|
+
export type ResumeResult = z.infer<typeof ResumeResultZ>;
|
|
144
|
+
//# sourceMappingURL=handoff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;oEACoE;AACpE,eAAO,MAAM,SAAS;;;;;;;;;;;mBAYpB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD;wDACwD;AACxD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,CAAC,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,CAAC;IACF,GAAG,EAAE,QAAQ,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAYxB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/handoff.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ContextPacketZ } from './intelligence.js';
|
|
3
|
+
/** Read-only git facts captured for a handoff. Best-effort: a non-repo or a
|
|
4
|
+
* missing git binary yields the `{ available: false }` variant. */
|
|
5
|
+
export const GitFactsZ = z.union([
|
|
6
|
+
z.object({ available: z.literal(false) }),
|
|
7
|
+
z.object({
|
|
8
|
+
available: z.literal(true),
|
|
9
|
+
branch: z.string(),
|
|
10
|
+
dirty: z.boolean(),
|
|
11
|
+
ahead: z.number().int().nonnegative(),
|
|
12
|
+
behind: z.number().int().nonnegative(),
|
|
13
|
+
head: z.string(),
|
|
14
|
+
recentCommits: z.string(),
|
|
15
|
+
diffStat: z.string(),
|
|
16
|
+
}),
|
|
17
|
+
]);
|
|
18
|
+
/** `cadence resume --json` payload. */
|
|
19
|
+
export const ResumeResultZ = z.union([
|
|
20
|
+
z.object({ found: z.literal(false) }),
|
|
21
|
+
z.object({
|
|
22
|
+
found: z.literal(true),
|
|
23
|
+
handoffPath: z.string(),
|
|
24
|
+
generatedAt: z.string().nullable(),
|
|
25
|
+
doc: z.string(),
|
|
26
|
+
context: ContextPacketZ,
|
|
27
|
+
drift: z
|
|
28
|
+
.object({ docLoopPosition: z.string(), liveLoopPosition: z.string() })
|
|
29
|
+
.nullable(),
|
|
30
|
+
}),
|
|
31
|
+
]);
|
|
32
|
+
//# sourceMappingURL=handoff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handoff.js","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;oEACoE;AACpE,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/B,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IACzC,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;QAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;KACrB,CAAC;CACH,CAAC,CAAC;AAmBH,uCAAuC;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC;IACnC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IACrC,CAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;QACf,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,CAAC;aACL,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;aACrE,QAAQ,EAAE;KACd,CAAC;CACH,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const RecommendationSourceZ: z.ZodEnum<{
|
|
3
3
|
manual: "manual";
|
|
4
|
-
session: "session";
|
|
5
4
|
"code-analysis": "code-analysis";
|
|
6
5
|
impact: "impact";
|
|
7
6
|
cadence: "cadence";
|
|
7
|
+
session: "session";
|
|
8
8
|
}>;
|
|
9
9
|
export type RecommendationSource = z.infer<typeof RecommendationSourceZ>;
|
|
10
10
|
export declare const RecommendationStatusZ: z.ZodEnum<{
|
|
11
|
-
deferred: "deferred";
|
|
12
11
|
candidate: "candidate";
|
|
13
12
|
accepted: "accepted";
|
|
13
|
+
deferred: "deferred";
|
|
14
14
|
rejected: "rejected";
|
|
15
15
|
converted: "converted";
|
|
16
16
|
}>;
|
|
@@ -25,10 +25,10 @@ export declare const RecommendationReadinessZ: z.ZodEnum<{
|
|
|
25
25
|
}>;
|
|
26
26
|
export type RecommendationReadiness = z.infer<typeof RecommendationReadinessZ>;
|
|
27
27
|
export declare const RecommendationPriorityZ: z.ZodEnum<{
|
|
28
|
-
critical: "critical";
|
|
29
|
-
high: "high";
|
|
30
|
-
medium: "medium";
|
|
31
28
|
low: "low";
|
|
29
|
+
medium: "medium";
|
|
30
|
+
high: "high";
|
|
31
|
+
critical: "critical";
|
|
32
32
|
}>;
|
|
33
33
|
export type RecommendationPriority = z.infer<typeof RecommendationPriorityZ>;
|
|
34
34
|
export declare const RecommendationDecayStateZ: z.ZodEnum<{
|
|
@@ -46,15 +46,15 @@ export declare const RecommendationZ: z.ZodObject<{
|
|
|
46
46
|
summary: z.ZodString;
|
|
47
47
|
source: z.ZodEnum<{
|
|
48
48
|
manual: "manual";
|
|
49
|
-
session: "session";
|
|
50
49
|
"code-analysis": "code-analysis";
|
|
51
50
|
impact: "impact";
|
|
52
51
|
cadence: "cadence";
|
|
52
|
+
session: "session";
|
|
53
53
|
}>;
|
|
54
54
|
status: z.ZodEnum<{
|
|
55
|
-
deferred: "deferred";
|
|
56
55
|
candidate: "candidate";
|
|
57
56
|
accepted: "accepted";
|
|
57
|
+
deferred: "deferred";
|
|
58
58
|
rejected: "rejected";
|
|
59
59
|
converted: "converted";
|
|
60
60
|
}>;
|
|
@@ -67,10 +67,10 @@ export declare const RecommendationZ: z.ZodObject<{
|
|
|
67
67
|
blocked: "blocked";
|
|
68
68
|
}>;
|
|
69
69
|
priority: z.ZodEnum<{
|
|
70
|
-
critical: "critical";
|
|
71
|
-
high: "high";
|
|
72
|
-
medium: "medium";
|
|
73
70
|
low: "low";
|
|
71
|
+
medium: "medium";
|
|
72
|
+
high: "high";
|
|
73
|
+
critical: "critical";
|
|
74
74
|
}>;
|
|
75
75
|
leverageScore: z.ZodNumber;
|
|
76
76
|
riskScore: z.ZodNumber;
|
|
@@ -100,9 +100,9 @@ export declare const EvidenceZ: z.ZodObject<{
|
|
|
100
100
|
recommendationId: z.ZodString;
|
|
101
101
|
kind: z.ZodEnum<{
|
|
102
102
|
file: "file";
|
|
103
|
-
note: "note";
|
|
104
103
|
command: "command";
|
|
105
104
|
"cadence-artifact": "cadence-artifact";
|
|
105
|
+
note: "note";
|
|
106
106
|
}>;
|
|
107
107
|
summary: z.ZodString;
|
|
108
108
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -145,15 +145,15 @@ export declare const RecommendationLedgerZ: z.ZodObject<{
|
|
|
145
145
|
summary: z.ZodString;
|
|
146
146
|
source: z.ZodEnum<{
|
|
147
147
|
manual: "manual";
|
|
148
|
-
session: "session";
|
|
149
148
|
"code-analysis": "code-analysis";
|
|
150
149
|
impact: "impact";
|
|
151
150
|
cadence: "cadence";
|
|
151
|
+
session: "session";
|
|
152
152
|
}>;
|
|
153
153
|
status: z.ZodEnum<{
|
|
154
|
-
deferred: "deferred";
|
|
155
154
|
candidate: "candidate";
|
|
156
155
|
accepted: "accepted";
|
|
156
|
+
deferred: "deferred";
|
|
157
157
|
rejected: "rejected";
|
|
158
158
|
converted: "converted";
|
|
159
159
|
}>;
|
|
@@ -166,10 +166,10 @@ export declare const RecommendationLedgerZ: z.ZodObject<{
|
|
|
166
166
|
blocked: "blocked";
|
|
167
167
|
}>;
|
|
168
168
|
priority: z.ZodEnum<{
|
|
169
|
-
critical: "critical";
|
|
170
|
-
high: "high";
|
|
171
|
-
medium: "medium";
|
|
172
169
|
low: "low";
|
|
170
|
+
medium: "medium";
|
|
171
|
+
high: "high";
|
|
172
|
+
critical: "critical";
|
|
173
173
|
}>;
|
|
174
174
|
leverageScore: z.ZodNumber;
|
|
175
175
|
riskScore: z.ZodNumber;
|
|
@@ -202,9 +202,9 @@ export declare const EvidenceLedgerZ: z.ZodObject<{
|
|
|
202
202
|
recommendationId: z.ZodString;
|
|
203
203
|
kind: z.ZodEnum<{
|
|
204
204
|
file: "file";
|
|
205
|
-
note: "note";
|
|
206
205
|
command: "command";
|
|
207
206
|
"cadence-artifact": "cadence-artifact";
|
|
207
|
+
note: "note";
|
|
208
208
|
}>;
|
|
209
209
|
summary: z.ZodString;
|
|
210
210
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -415,9 +415,9 @@ export declare const RecommendationRankZ: z.ZodObject<{
|
|
|
415
415
|
raw: z.ZodNumber;
|
|
416
416
|
score: z.ZodNumber;
|
|
417
417
|
status: z.ZodEnum<{
|
|
418
|
-
deferred: "deferred";
|
|
419
418
|
candidate: "candidate";
|
|
420
419
|
accepted: "accepted";
|
|
420
|
+
deferred: "deferred";
|
|
421
421
|
rejected: "rejected";
|
|
422
422
|
converted: "converted";
|
|
423
423
|
}>;
|
|
@@ -430,10 +430,10 @@ export declare const RecommendationRankZ: z.ZodObject<{
|
|
|
430
430
|
blocked: "blocked";
|
|
431
431
|
}>;
|
|
432
432
|
priority: z.ZodEnum<{
|
|
433
|
-
critical: "critical";
|
|
434
|
-
high: "high";
|
|
435
|
-
medium: "medium";
|
|
436
433
|
low: "low";
|
|
434
|
+
medium: "medium";
|
|
435
|
+
high: "high";
|
|
436
|
+
critical: "critical";
|
|
437
437
|
}>;
|
|
438
438
|
decayState: z.ZodEnum<{
|
|
439
439
|
fresh: "fresh";
|
|
@@ -470,9 +470,9 @@ export declare const RecommendationReportZ: z.ZodObject<{
|
|
|
470
470
|
raw: z.ZodNumber;
|
|
471
471
|
score: z.ZodNumber;
|
|
472
472
|
status: z.ZodEnum<{
|
|
473
|
-
deferred: "deferred";
|
|
474
473
|
candidate: "candidate";
|
|
475
474
|
accepted: "accepted";
|
|
475
|
+
deferred: "deferred";
|
|
476
476
|
rejected: "rejected";
|
|
477
477
|
converted: "converted";
|
|
478
478
|
}>;
|
|
@@ -485,10 +485,10 @@ export declare const RecommendationReportZ: z.ZodObject<{
|
|
|
485
485
|
blocked: "blocked";
|
|
486
486
|
}>;
|
|
487
487
|
priority: z.ZodEnum<{
|
|
488
|
-
critical: "critical";
|
|
489
|
-
high: "high";
|
|
490
|
-
medium: "medium";
|
|
491
488
|
low: "low";
|
|
489
|
+
medium: "medium";
|
|
490
|
+
high: "high";
|
|
491
|
+
critical: "critical";
|
|
492
492
|
}>;
|
|
493
493
|
decayState: z.ZodEnum<{
|
|
494
494
|
fresh: "fresh";
|
|
@@ -508,9 +508,9 @@ export declare const RecommendationReportZ: z.ZodObject<{
|
|
|
508
508
|
id: z.ZodString;
|
|
509
509
|
title: z.ZodString;
|
|
510
510
|
status: z.ZodEnum<{
|
|
511
|
-
deferred: "deferred";
|
|
512
511
|
candidate: "candidate";
|
|
513
512
|
accepted: "accepted";
|
|
513
|
+
deferred: "deferred";
|
|
514
514
|
rejected: "rejected";
|
|
515
515
|
converted: "converted";
|
|
516
516
|
}>;
|
|
@@ -555,8 +555,8 @@ export declare const RecommendationReportZ: z.ZodObject<{
|
|
|
555
555
|
}, z.core.$strip>;
|
|
556
556
|
export type RecommendationReport = z.infer<typeof RecommendationReportZ>;
|
|
557
557
|
export declare const MilestoneStatusZ: z.ZodEnum<{
|
|
558
|
-
deferred: "deferred";
|
|
559
558
|
accepted: "accepted";
|
|
559
|
+
deferred: "deferred";
|
|
560
560
|
proposed: "proposed";
|
|
561
561
|
exported: "exported";
|
|
562
562
|
closed: "closed";
|
|
@@ -574,8 +574,8 @@ export declare const IntelligenceMilestoneZ: z.ZodObject<{
|
|
|
574
574
|
name: z.ZodString;
|
|
575
575
|
objective: z.ZodString;
|
|
576
576
|
status: z.ZodEnum<{
|
|
577
|
-
deferred: "deferred";
|
|
578
577
|
accepted: "accepted";
|
|
578
|
+
deferred: "deferred";
|
|
579
579
|
proposed: "proposed";
|
|
580
580
|
exported: "exported";
|
|
581
581
|
closed: "closed";
|
|
@@ -603,8 +603,8 @@ export declare const MilestoneLedgerZ: z.ZodObject<{
|
|
|
603
603
|
name: z.ZodString;
|
|
604
604
|
objective: z.ZodString;
|
|
605
605
|
status: z.ZodEnum<{
|
|
606
|
-
deferred: "deferred";
|
|
607
606
|
accepted: "accepted";
|
|
607
|
+
deferred: "deferred";
|
|
608
608
|
proposed: "proposed";
|
|
609
609
|
exported: "exported";
|
|
610
610
|
closed: "closed";
|
|
@@ -639,9 +639,9 @@ export declare const ContextRecZ: z.ZodObject<{
|
|
|
639
639
|
title: z.ZodString;
|
|
640
640
|
score: z.ZodNumber;
|
|
641
641
|
status: z.ZodEnum<{
|
|
642
|
-
deferred: "deferred";
|
|
643
642
|
candidate: "candidate";
|
|
644
643
|
accepted: "accepted";
|
|
644
|
+
deferred: "deferred";
|
|
645
645
|
rejected: "rejected";
|
|
646
646
|
converted: "converted";
|
|
647
647
|
}>;
|
|
@@ -654,10 +654,10 @@ export declare const ContextRecZ: z.ZodObject<{
|
|
|
654
654
|
blocked: "blocked";
|
|
655
655
|
}>;
|
|
656
656
|
priority: z.ZodEnum<{
|
|
657
|
-
critical: "critical";
|
|
658
|
-
high: "high";
|
|
659
|
-
medium: "medium";
|
|
660
657
|
low: "low";
|
|
658
|
+
medium: "medium";
|
|
659
|
+
high: "high";
|
|
660
|
+
critical: "critical";
|
|
661
661
|
}>;
|
|
662
662
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
663
663
|
}, z.core.$strip>;
|
|
@@ -686,9 +686,9 @@ export declare const ContextPacketZ: z.ZodObject<{
|
|
|
686
686
|
title: z.ZodString;
|
|
687
687
|
score: z.ZodNumber;
|
|
688
688
|
status: z.ZodEnum<{
|
|
689
|
-
deferred: "deferred";
|
|
690
689
|
candidate: "candidate";
|
|
691
690
|
accepted: "accepted";
|
|
691
|
+
deferred: "deferred";
|
|
692
692
|
rejected: "rejected";
|
|
693
693
|
converted: "converted";
|
|
694
694
|
}>;
|
|
@@ -701,10 +701,10 @@ export declare const ContextPacketZ: z.ZodObject<{
|
|
|
701
701
|
blocked: "blocked";
|
|
702
702
|
}>;
|
|
703
703
|
priority: z.ZodEnum<{
|
|
704
|
-
critical: "critical";
|
|
705
|
-
high: "high";
|
|
706
|
-
medium: "medium";
|
|
707
704
|
low: "low";
|
|
705
|
+
medium: "medium";
|
|
706
|
+
high: "high";
|
|
707
|
+
critical: "critical";
|
|
708
708
|
}>;
|
|
709
709
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
710
710
|
}, z.core.$strip>>;
|
|
@@ -730,9 +730,9 @@ export declare const ContextPacketZ: z.ZodObject<{
|
|
|
730
730
|
title: z.ZodString;
|
|
731
731
|
score: z.ZodNumber;
|
|
732
732
|
status: z.ZodEnum<{
|
|
733
|
-
deferred: "deferred";
|
|
734
733
|
candidate: "candidate";
|
|
735
734
|
accepted: "accepted";
|
|
735
|
+
deferred: "deferred";
|
|
736
736
|
rejected: "rejected";
|
|
737
737
|
converted: "converted";
|
|
738
738
|
}>;
|
|
@@ -745,10 +745,10 @@ export declare const ContextPacketZ: z.ZodObject<{
|
|
|
745
745
|
blocked: "blocked";
|
|
746
746
|
}>;
|
|
747
747
|
priority: z.ZodEnum<{
|
|
748
|
-
critical: "critical";
|
|
749
|
-
high: "high";
|
|
750
|
-
medium: "medium";
|
|
751
748
|
low: "low";
|
|
749
|
+
medium: "medium";
|
|
750
|
+
high: "high";
|
|
751
|
+
critical: "critical";
|
|
752
752
|
}>;
|
|
753
753
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
754
754
|
}, z.core.$strip>>>;
|
package/dist/summary.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export type DeepVerdict = z.infer<typeof DeepVerdictZ>;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const FindingZ: z.ZodObject<{
|
|
15
15
|
severity: z.ZodEnum<{
|
|
16
|
-
critical: "critical";
|
|
17
|
-
high: "high";
|
|
18
|
-
medium: "medium";
|
|
19
16
|
low: "low";
|
|
17
|
+
medium: "medium";
|
|
18
|
+
high: "high";
|
|
19
|
+
critical: "critical";
|
|
20
20
|
}>;
|
|
21
21
|
message: z.ZodString;
|
|
22
22
|
line: z.ZodOptional<z.ZodNumber>;
|
|
@@ -77,20 +77,20 @@ export declare const SummaryZ: z.ZodObject<{
|
|
|
77
77
|
}, z.core.$strip>>>;
|
|
78
78
|
codeReview: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
79
79
|
severity: z.ZodEnum<{
|
|
80
|
-
critical: "critical";
|
|
81
|
-
high: "high";
|
|
82
|
-
medium: "medium";
|
|
83
80
|
low: "low";
|
|
81
|
+
medium: "medium";
|
|
82
|
+
high: "high";
|
|
83
|
+
critical: "critical";
|
|
84
84
|
}>;
|
|
85
85
|
message: z.ZodString;
|
|
86
86
|
line: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
}, z.core.$strip>>>>;
|
|
88
88
|
securityAudit: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
89
|
severity: z.ZodEnum<{
|
|
90
|
-
critical: "critical";
|
|
91
|
-
high: "high";
|
|
92
|
-
medium: "medium";
|
|
93
90
|
low: "low";
|
|
91
|
+
medium: "medium";
|
|
92
|
+
high: "high";
|
|
93
|
+
critical: "critical";
|
|
94
94
|
}>;
|
|
95
95
|
message: z.ZodString;
|
|
96
96
|
line: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED