@agentskit/doc-bridge 1.7.44 → 1.7.45
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/CHANGELOG.md +6 -0
- package/CONTRIBUTING.md +6 -4
- package/action.yml +1 -1
- package/dist/cli/program.js +378 -189
- package/dist/cli/program.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +5 -3
- package/dist/config/index.js.map +1 -1
- package/dist/index-BUL0q7s8.d.ts +660 -0
- package/dist/index.d.ts +637 -2724
- package/dist/index.js +328 -149
- package/dist/index.js.map +1 -1
- package/docs/RELEASE.md +22 -8
- package/docs/agent-corpus/INDEX.md +2 -2
- package/docs/agent-corpus/chat.md +2 -2
- package/docs/agent-corpus/cli.md +2 -2
- package/docs/agent-corpus/conformance.md +2 -2
- package/docs/agent-corpus/doc-bridge.md +1 -1
- package/docs/agent-corpus/doctor.md +2 -2
- package/docs/agent-corpus/gates.md +2 -2
- package/docs/agent-corpus/mcp.md +2 -2
- package/docs/agent-corpus/memory.md +2 -2
- package/docs/agent-corpus/query.md +2 -2
- package/docs/knowledge-engine-runbook.md +13 -1
- package/docs/spec/benchmark-v1.md +6 -0
- package/docs/spec/config-v1.md +45 -0
- package/docs/validation-cycle-plan.md +19 -0
- package/docs/verification-harness.md +4 -0
- package/mcpb/manifest.json +1 -1
- package/package.json +68 -70
- package/scripts/check-ecosystem-upstream.mjs +3 -2
- package/scripts/report-visual-check.mjs +20 -3
- package/scripts/verification-harness.mjs +0 -1
- package/skills/doc-bridge-handoff/scripts/resolve-handoff.mjs +1 -1
- package/src/cli/demo.ts +2 -2
- package/src/cli/program.ts +15 -5
- package/src/config/load-config.ts +7 -1
- package/src/config/schema.ts +4 -2
- package/src/conformance/documentation-standard-v1.ts +14 -8
- package/src/discovery/documentation.ts +44 -18
- package/src/discovery/repository.ts +77 -28
- package/src/doctor/run-doctor.ts +2 -15
- package/src/federation/llms.ts +72 -20
- package/src/fixes/proposals.ts +4 -3
- package/src/index-builder/human-adapters/fumadocs.ts +1 -1
- package/src/index-builder/watch-index.ts +1 -1
- package/src/lib/bounded-text.ts +15 -10
- package/src/reconciliation/reconcile.ts +47 -5
- package/src/report/html.ts +21 -15
- package/src/rules/engine.ts +15 -2
- package/src/safety/repository.ts +1 -1
- package/src/schemas/knowledge.ts +5 -2
- package/src/validate.ts +7 -1
- package/src/version.ts +1 -1
- package/dist/index-C2PCQSrB.d.ts +0 -2251
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
import { D as DocBridgeConfigV1, R as RulesConfig, a as RuleId, b as RuleSeverity, c as DocumentationStandardRuleId } from './index-
|
|
2
|
-
export { A as AgentCorpusConfig, C as ConfigNotFoundError, d as DocBridgeConfigV1Schema, e as DocumentationStandardRuleIdSchema, f as DocumentationStandardV1Config, g as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, h as LoadConfigResult, i as ReportConfig, j as ReportConfigSchema, k as RepositorySafetyConfig, l as RepositorySafetyConfigSchema, m as RuleIdSchema, n as RuleSeveritySchema, o as RulesConfigSchema, W as WorkflowConfig, p as WorkflowConfigSchema, q as applyConfigDefaults, r as defineConfig, s as loadConfig, t as projectRootFromConfigPath, u as resolveProjectRoot } from './index-
|
|
1
|
+
import { D as DocBridgeConfigV1, R as RulesConfig, a as RuleId, b as RuleSeverity, c as DocumentationStandardRuleId } from './index-BUL0q7s8.js';
|
|
2
|
+
export { A as AgentCorpusConfig, C as ConfigNotFoundError, d as DocBridgeConfigV1Schema, e as DocumentationStandardRuleIdSchema, f as DocumentationStandardV1Config, g as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, h as LoadConfigResult, i as ReportConfig, j as ReportConfigSchema, k as RepositorySafetyConfig, l as RepositorySafetyConfigSchema, m as RuleIdSchema, n as RuleSeveritySchema, o as RulesConfigSchema, W as WorkflowConfig, p as WorkflowConfigSchema, q as applyConfigDefaults, r as defineConfig, s as loadConfig, t as projectRootFromConfigPath, u as resolveProjectRoot } from './index-BUL0q7s8.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const HANDOFF_SCHEMA_VERSION: 1;
|
|
6
|
-
declare const HandoffTargetTypeSchema: z.ZodEnum<
|
|
6
|
+
declare const HandoffTargetTypeSchema: z.ZodEnum<{
|
|
7
|
+
module: "module";
|
|
8
|
+
package: "package";
|
|
9
|
+
search: "search";
|
|
10
|
+
app: "app";
|
|
11
|
+
screen: "screen";
|
|
12
|
+
flow: "flow";
|
|
13
|
+
component: "component";
|
|
14
|
+
intent: "intent";
|
|
15
|
+
change: "change";
|
|
16
|
+
}>;
|
|
7
17
|
type HandoffTargetType = z.infer<typeof HandoffTargetTypeSchema>;
|
|
8
18
|
declare const HandoffTargetSchema: z.ZodObject<{
|
|
9
|
-
type: z.ZodEnum<
|
|
19
|
+
type: z.ZodEnum<{
|
|
20
|
+
module: "module";
|
|
21
|
+
package: "package";
|
|
22
|
+
search: "search";
|
|
23
|
+
app: "app";
|
|
24
|
+
screen: "screen";
|
|
25
|
+
flow: "flow";
|
|
26
|
+
component: "component";
|
|
27
|
+
intent: "intent";
|
|
28
|
+
change: "change";
|
|
29
|
+
}>;
|
|
10
30
|
id: z.ZodString;
|
|
11
31
|
path: z.ZodOptional<z.ZodString>;
|
|
12
32
|
group: z.ZodOptional<z.ZodString>;
|
|
13
33
|
layer: z.ZodOptional<z.ZodString>;
|
|
14
|
-
},
|
|
15
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
16
|
-
id: string;
|
|
17
|
-
path?: string | undefined;
|
|
18
|
-
group?: string | undefined;
|
|
19
|
-
layer?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
22
|
-
id: string;
|
|
23
|
-
path?: string | undefined;
|
|
24
|
-
group?: string | undefined;
|
|
25
|
-
layer?: string | undefined;
|
|
26
|
-
}>;
|
|
34
|
+
}, z.core.$strict>;
|
|
27
35
|
type HandoffTarget = z.infer<typeof HandoffTargetSchema>;
|
|
28
36
|
declare const HandoffBridgeSchema: z.ZodObject<{
|
|
29
|
-
humanDoc: z.ZodEnum<
|
|
37
|
+
humanDoc: z.ZodEnum<{
|
|
38
|
+
linked: "linked";
|
|
39
|
+
missing: "missing";
|
|
40
|
+
external: "external";
|
|
41
|
+
}>;
|
|
30
42
|
action: z.ZodOptional<z.ZodString>;
|
|
31
43
|
bootstrap: z.ZodOptional<z.ZodString>;
|
|
32
|
-
},
|
|
33
|
-
humanDoc: "linked" | "missing" | "external";
|
|
34
|
-
action?: string | undefined;
|
|
35
|
-
bootstrap?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
humanDoc: "linked" | "missing" | "external";
|
|
38
|
-
action?: string | undefined;
|
|
39
|
-
bootstrap?: string | undefined;
|
|
40
|
-
}>;
|
|
44
|
+
}, z.core.$strict>;
|
|
41
45
|
type HandoffBridge = z.infer<typeof HandoffBridgeSchema>;
|
|
42
46
|
/** v1 — canonical AgentHandoff. Legacy payloads may omit schemaVersion. */
|
|
43
47
|
declare const AgentHandoffV1Schema: z.ZodObject<{
|
|
@@ -45,185 +49,79 @@ declare const AgentHandoffV1Schema: z.ZodObject<{
|
|
|
45
49
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
46
50
|
source: z.ZodString;
|
|
47
51
|
target: z.ZodObject<{
|
|
48
|
-
type: z.ZodEnum<
|
|
52
|
+
type: z.ZodEnum<{
|
|
53
|
+
module: "module";
|
|
54
|
+
package: "package";
|
|
55
|
+
search: "search";
|
|
56
|
+
app: "app";
|
|
57
|
+
screen: "screen";
|
|
58
|
+
flow: "flow";
|
|
59
|
+
component: "component";
|
|
60
|
+
intent: "intent";
|
|
61
|
+
change: "change";
|
|
62
|
+
}>;
|
|
49
63
|
id: z.ZodString;
|
|
50
64
|
path: z.ZodOptional<z.ZodString>;
|
|
51
65
|
group: z.ZodOptional<z.ZodString>;
|
|
52
66
|
layer: z.ZodOptional<z.ZodString>;
|
|
53
|
-
},
|
|
54
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
55
|
-
id: string;
|
|
56
|
-
path?: string | undefined;
|
|
57
|
-
group?: string | undefined;
|
|
58
|
-
layer?: string | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
61
|
-
id: string;
|
|
62
|
-
path?: string | undefined;
|
|
63
|
-
group?: string | undefined;
|
|
64
|
-
layer?: string | undefined;
|
|
65
|
-
}>;
|
|
67
|
+
}, z.core.$strict>;
|
|
66
68
|
startHere: z.ZodString;
|
|
67
|
-
readBeforeEditing: z.ZodArray<z.ZodString
|
|
68
|
-
editRoots: z.ZodArray<z.ZodString
|
|
69
|
-
checks: z.ZodArray<z.ZodString
|
|
69
|
+
readBeforeEditing: z.ZodArray<z.ZodString>;
|
|
70
|
+
editRoots: z.ZodArray<z.ZodString>;
|
|
71
|
+
checks: z.ZodArray<z.ZodString>;
|
|
70
72
|
humanDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
73
|
bridge: z.ZodOptional<z.ZodObject<{
|
|
72
|
-
humanDoc: z.ZodEnum<
|
|
74
|
+
humanDoc: z.ZodEnum<{
|
|
75
|
+
linked: "linked";
|
|
76
|
+
missing: "missing";
|
|
77
|
+
external: "external";
|
|
78
|
+
}>;
|
|
73
79
|
action: z.ZodOptional<z.ZodString>;
|
|
74
80
|
bootstrap: z.ZodOptional<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}, {
|
|
80
|
-
humanDoc: "linked" | "missing" | "external";
|
|
81
|
-
action?: string | undefined;
|
|
82
|
-
bootstrap?: string | undefined;
|
|
83
|
-
}>>;
|
|
84
|
-
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
-
notes: z.ZodArray<z.ZodString, "many">;
|
|
86
|
-
}, "strict", z.ZodTypeAny, {
|
|
87
|
-
type: "agent-handoff";
|
|
88
|
-
checks: string[];
|
|
89
|
-
startHere: string;
|
|
90
|
-
schemaVersion: 1;
|
|
91
|
-
source: string;
|
|
92
|
-
target: {
|
|
93
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
94
|
-
id: string;
|
|
95
|
-
path?: string | undefined;
|
|
96
|
-
group?: string | undefined;
|
|
97
|
-
layer?: string | undefined;
|
|
98
|
-
};
|
|
99
|
-
readBeforeEditing: string[];
|
|
100
|
-
editRoots: string[];
|
|
101
|
-
notes: string[];
|
|
102
|
-
humanDoc?: string | null | undefined;
|
|
103
|
-
bridge?: {
|
|
104
|
-
humanDoc: "linked" | "missing" | "external";
|
|
105
|
-
action?: string | undefined;
|
|
106
|
-
bootstrap?: string | undefined;
|
|
107
|
-
} | undefined;
|
|
108
|
-
playbookPatterns?: string[] | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
type: "agent-handoff";
|
|
111
|
-
checks: string[];
|
|
112
|
-
startHere: string;
|
|
113
|
-
source: string;
|
|
114
|
-
target: {
|
|
115
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
116
|
-
id: string;
|
|
117
|
-
path?: string | undefined;
|
|
118
|
-
group?: string | undefined;
|
|
119
|
-
layer?: string | undefined;
|
|
120
|
-
};
|
|
121
|
-
readBeforeEditing: string[];
|
|
122
|
-
editRoots: string[];
|
|
123
|
-
notes: string[];
|
|
124
|
-
humanDoc?: string | null | undefined;
|
|
125
|
-
schemaVersion?: 1 | undefined;
|
|
126
|
-
bridge?: {
|
|
127
|
-
humanDoc: "linked" | "missing" | "external";
|
|
128
|
-
action?: string | undefined;
|
|
129
|
-
bootstrap?: string | undefined;
|
|
130
|
-
} | undefined;
|
|
131
|
-
playbookPatterns?: string[] | undefined;
|
|
132
|
-
}>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
notes: z.ZodArray<z.ZodString>;
|
|
84
|
+
}, z.core.$strict>;
|
|
133
85
|
type AgentHandoffV1 = z.infer<typeof AgentHandoffV1Schema>;
|
|
134
86
|
/** Accept legacy handoffs without schemaVersion. */
|
|
135
|
-
declare const AgentHandoffLegacySchema: z.ZodObject<
|
|
87
|
+
declare const AgentHandoffLegacySchema: z.ZodObject<{
|
|
136
88
|
type: z.ZodLiteral<"agent-handoff">;
|
|
137
|
-
|
|
138
|
-
|
|
89
|
+
checks: z.ZodArray<z.ZodString>;
|
|
90
|
+
humanDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
startHere: z.ZodString;
|
|
139
92
|
target: z.ZodObject<{
|
|
140
|
-
type: z.ZodEnum<
|
|
93
|
+
type: z.ZodEnum<{
|
|
94
|
+
module: "module";
|
|
95
|
+
package: "package";
|
|
96
|
+
search: "search";
|
|
97
|
+
app: "app";
|
|
98
|
+
screen: "screen";
|
|
99
|
+
flow: "flow";
|
|
100
|
+
component: "component";
|
|
101
|
+
intent: "intent";
|
|
102
|
+
change: "change";
|
|
103
|
+
}>;
|
|
141
104
|
id: z.ZodString;
|
|
142
105
|
path: z.ZodOptional<z.ZodString>;
|
|
143
106
|
group: z.ZodOptional<z.ZodString>;
|
|
144
107
|
layer: z.ZodOptional<z.ZodString>;
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
group?: string | undefined;
|
|
150
|
-
layer?: string | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
153
|
-
id: string;
|
|
154
|
-
path?: string | undefined;
|
|
155
|
-
group?: string | undefined;
|
|
156
|
-
layer?: string | undefined;
|
|
157
|
-
}>;
|
|
158
|
-
startHere: z.ZodString;
|
|
159
|
-
readBeforeEditing: z.ZodArray<z.ZodString, "many">;
|
|
160
|
-
editRoots: z.ZodArray<z.ZodString, "many">;
|
|
161
|
-
checks: z.ZodArray<z.ZodString, "many">;
|
|
162
|
-
humanDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
source: z.ZodString;
|
|
110
|
+
readBeforeEditing: z.ZodArray<z.ZodString>;
|
|
111
|
+
editRoots: z.ZodArray<z.ZodString>;
|
|
163
112
|
bridge: z.ZodOptional<z.ZodObject<{
|
|
164
|
-
humanDoc: z.ZodEnum<
|
|
113
|
+
humanDoc: z.ZodEnum<{
|
|
114
|
+
linked: "linked";
|
|
115
|
+
missing: "missing";
|
|
116
|
+
external: "external";
|
|
117
|
+
}>;
|
|
165
118
|
action: z.ZodOptional<z.ZodString>;
|
|
166
119
|
bootstrap: z.ZodOptional<z.ZodString>;
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
bootstrap?: string | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
humanDoc: "linked" | "missing" | "external";
|
|
173
|
-
action?: string | undefined;
|
|
174
|
-
bootstrap?: string | undefined;
|
|
175
|
-
}>>;
|
|
176
|
-
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
177
|
-
notes: z.ZodArray<z.ZodString, "many">;
|
|
178
|
-
}, "schemaVersion"> & {
|
|
120
|
+
}, z.core.$strict>>;
|
|
121
|
+
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
notes: z.ZodArray<z.ZodString>;
|
|
179
123
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
180
|
-
},
|
|
181
|
-
type: "agent-handoff";
|
|
182
|
-
checks: string[];
|
|
183
|
-
startHere: string;
|
|
184
|
-
source: string;
|
|
185
|
-
target: {
|
|
186
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
187
|
-
id: string;
|
|
188
|
-
path?: string | undefined;
|
|
189
|
-
group?: string | undefined;
|
|
190
|
-
layer?: string | undefined;
|
|
191
|
-
};
|
|
192
|
-
readBeforeEditing: string[];
|
|
193
|
-
editRoots: string[];
|
|
194
|
-
notes: string[];
|
|
195
|
-
humanDoc?: string | null | undefined;
|
|
196
|
-
schemaVersion?: 1 | undefined;
|
|
197
|
-
bridge?: {
|
|
198
|
-
humanDoc: "linked" | "missing" | "external";
|
|
199
|
-
action?: string | undefined;
|
|
200
|
-
bootstrap?: string | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
playbookPatterns?: string[] | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
type: "agent-handoff";
|
|
205
|
-
checks: string[];
|
|
206
|
-
startHere: string;
|
|
207
|
-
source: string;
|
|
208
|
-
target: {
|
|
209
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
210
|
-
id: string;
|
|
211
|
-
path?: string | undefined;
|
|
212
|
-
group?: string | undefined;
|
|
213
|
-
layer?: string | undefined;
|
|
214
|
-
};
|
|
215
|
-
readBeforeEditing: string[];
|
|
216
|
-
editRoots: string[];
|
|
217
|
-
notes: string[];
|
|
218
|
-
humanDoc?: string | null | undefined;
|
|
219
|
-
schemaVersion?: 1 | undefined;
|
|
220
|
-
bridge?: {
|
|
221
|
-
humanDoc: "linked" | "missing" | "external";
|
|
222
|
-
action?: string | undefined;
|
|
223
|
-
bootstrap?: string | undefined;
|
|
224
|
-
} | undefined;
|
|
225
|
-
playbookPatterns?: string[] | undefined;
|
|
226
|
-
}>;
|
|
124
|
+
}, z.core.$strict>;
|
|
227
125
|
declare const AgentSearchV1Schema: z.ZodObject<{
|
|
228
126
|
type: z.ZodLiteral<"agent-search">;
|
|
229
127
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -237,21 +135,7 @@ declare const AgentSearchV1Schema: z.ZodObject<{
|
|
|
237
135
|
summary: z.ZodOptional<z.ZodString>;
|
|
238
136
|
score: z.ZodOptional<z.ZodNumber>;
|
|
239
137
|
refs: z.ZodOptional<z.ZodNumber>;
|
|
240
|
-
},
|
|
241
|
-
path: string;
|
|
242
|
-
type: string;
|
|
243
|
-
id: string;
|
|
244
|
-
summary?: string | undefined;
|
|
245
|
-
score?: number | undefined;
|
|
246
|
-
refs?: number | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
path: string;
|
|
249
|
-
type: string;
|
|
250
|
-
id: string;
|
|
251
|
-
summary?: string | undefined;
|
|
252
|
-
score?: number | undefined;
|
|
253
|
-
refs?: number | undefined;
|
|
254
|
-
}>>;
|
|
138
|
+
}, z.core.$strict>>;
|
|
255
139
|
matches: z.ZodArray<z.ZodObject<{
|
|
256
140
|
type: z.ZodString;
|
|
257
141
|
id: z.ZodString;
|
|
@@ -259,69 +143,9 @@ declare const AgentSearchV1Schema: z.ZodObject<{
|
|
|
259
143
|
summary: z.ZodOptional<z.ZodString>;
|
|
260
144
|
score: z.ZodOptional<z.ZodNumber>;
|
|
261
145
|
refs: z.ZodOptional<z.ZodNumber>;
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
id: string;
|
|
266
|
-
summary?: string | undefined;
|
|
267
|
-
score?: number | undefined;
|
|
268
|
-
refs?: number | undefined;
|
|
269
|
-
}, {
|
|
270
|
-
path: string;
|
|
271
|
-
type: string;
|
|
272
|
-
id: string;
|
|
273
|
-
summary?: string | undefined;
|
|
274
|
-
score?: number | undefined;
|
|
275
|
-
refs?: number | undefined;
|
|
276
|
-
}>, "many">;
|
|
277
|
-
nextCommands: z.ZodArray<z.ZodString, "many">;
|
|
278
|
-
}, "strict", z.ZodTypeAny, {
|
|
279
|
-
type: "agent-search";
|
|
280
|
-
schemaVersion: 1;
|
|
281
|
-
source: string;
|
|
282
|
-
term: string;
|
|
283
|
-
count: number;
|
|
284
|
-
bestMatch: {
|
|
285
|
-
path: string;
|
|
286
|
-
type: string;
|
|
287
|
-
id: string;
|
|
288
|
-
summary?: string | undefined;
|
|
289
|
-
score?: number | undefined;
|
|
290
|
-
refs?: number | undefined;
|
|
291
|
-
} | null;
|
|
292
|
-
matches: {
|
|
293
|
-
path: string;
|
|
294
|
-
type: string;
|
|
295
|
-
id: string;
|
|
296
|
-
summary?: string | undefined;
|
|
297
|
-
score?: number | undefined;
|
|
298
|
-
refs?: number | undefined;
|
|
299
|
-
}[];
|
|
300
|
-
nextCommands: string[];
|
|
301
|
-
}, {
|
|
302
|
-
type: "agent-search";
|
|
303
|
-
source: string;
|
|
304
|
-
term: string;
|
|
305
|
-
count: number;
|
|
306
|
-
bestMatch: {
|
|
307
|
-
path: string;
|
|
308
|
-
type: string;
|
|
309
|
-
id: string;
|
|
310
|
-
summary?: string | undefined;
|
|
311
|
-
score?: number | undefined;
|
|
312
|
-
refs?: number | undefined;
|
|
313
|
-
} | null;
|
|
314
|
-
matches: {
|
|
315
|
-
path: string;
|
|
316
|
-
type: string;
|
|
317
|
-
id: string;
|
|
318
|
-
summary?: string | undefined;
|
|
319
|
-
score?: number | undefined;
|
|
320
|
-
refs?: number | undefined;
|
|
321
|
-
}[];
|
|
322
|
-
nextCommands: string[];
|
|
323
|
-
schemaVersion?: 1 | undefined;
|
|
324
|
-
}>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
nextCommands: z.ZodArray<z.ZodString>;
|
|
148
|
+
}, z.core.$strict>;
|
|
325
149
|
type AgentSearchV1 = z.infer<typeof AgentSearchV1Schema>;
|
|
326
150
|
declare const normalizeAgentHandoff: (input: unknown) => AgentHandoffV1;
|
|
327
151
|
|
|
@@ -332,29 +156,10 @@ declare const KnowledgeEntrySchema: z.ZodObject<{
|
|
|
332
156
|
title: z.ZodString;
|
|
333
157
|
path: z.ZodString;
|
|
334
158
|
description: z.ZodOptional<z.ZodString>;
|
|
335
|
-
/** Flattened body excerpt for full-text search (not for display). */
|
|
336
159
|
body: z.ZodOptional<z.ZodString>;
|
|
337
|
-
links: z.ZodOptional<z.ZodArray<z.ZodString
|
|
338
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
339
|
-
},
|
|
340
|
-
path: string;
|
|
341
|
-
type: string;
|
|
342
|
-
id: string;
|
|
343
|
-
title: string;
|
|
344
|
-
links?: string[] | undefined;
|
|
345
|
-
description?: string | undefined;
|
|
346
|
-
body?: string | undefined;
|
|
347
|
-
tags?: string[] | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
path: string;
|
|
350
|
-
type: string;
|
|
351
|
-
id: string;
|
|
352
|
-
title: string;
|
|
353
|
-
links?: string[] | undefined;
|
|
354
|
-
description?: string | undefined;
|
|
355
|
-
body?: string | undefined;
|
|
356
|
-
tags?: string[] | undefined;
|
|
357
|
-
}>;
|
|
160
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
}, z.core.$strict>;
|
|
358
163
|
declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
359
164
|
schemaVersion: z.ZodLiteral<1>;
|
|
360
165
|
contentHash: z.ZodString;
|
|
@@ -363,433 +168,92 @@ declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
|
363
168
|
project: z.ZodOptional<z.ZodObject<{
|
|
364
169
|
name: z.ZodString;
|
|
365
170
|
root: z.ZodOptional<z.ZodString>;
|
|
366
|
-
},
|
|
367
|
-
name: string;
|
|
368
|
-
root?: string | undefined;
|
|
369
|
-
}, {
|
|
370
|
-
name: string;
|
|
371
|
-
root?: string | undefined;
|
|
372
|
-
}>>;
|
|
171
|
+
}, z.core.$strict>>;
|
|
373
172
|
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
374
173
|
id: z.ZodString;
|
|
375
174
|
name: z.ZodString;
|
|
376
175
|
url: z.ZodOptional<z.ZodString>;
|
|
377
176
|
llms: z.ZodOptional<z.ZodString>;
|
|
378
|
-
},
|
|
379
|
-
id: string;
|
|
380
|
-
name: string;
|
|
381
|
-
url?: string | undefined;
|
|
382
|
-
llms?: string | undefined;
|
|
383
|
-
}, {
|
|
384
|
-
id: string;
|
|
385
|
-
name: string;
|
|
386
|
-
url?: string | undefined;
|
|
387
|
-
llms?: string | undefined;
|
|
388
|
-
}>, "many">>;
|
|
177
|
+
}, z.core.$strict>>>;
|
|
389
178
|
knowledge: z.ZodArray<z.ZodObject<{
|
|
390
179
|
id: z.ZodString;
|
|
391
180
|
type: z.ZodString;
|
|
392
181
|
title: z.ZodString;
|
|
393
182
|
path: z.ZodString;
|
|
394
183
|
description: z.ZodOptional<z.ZodString>;
|
|
395
|
-
/** Flattened body excerpt for full-text search (not for display). */
|
|
396
184
|
body: z.ZodOptional<z.ZodString>;
|
|
397
|
-
links: z.ZodOptional<z.ZodArray<z.ZodString
|
|
398
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
399
|
-
},
|
|
400
|
-
path: string;
|
|
401
|
-
type: string;
|
|
402
|
-
id: string;
|
|
403
|
-
title: string;
|
|
404
|
-
links?: string[] | undefined;
|
|
405
|
-
description?: string | undefined;
|
|
406
|
-
body?: string | undefined;
|
|
407
|
-
tags?: string[] | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
path: string;
|
|
410
|
-
type: string;
|
|
411
|
-
id: string;
|
|
412
|
-
title: string;
|
|
413
|
-
links?: string[] | undefined;
|
|
414
|
-
description?: string | undefined;
|
|
415
|
-
body?: string | undefined;
|
|
416
|
-
tags?: string[] | undefined;
|
|
417
|
-
}>, "many">;
|
|
185
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
186
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
418
188
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
419
189
|
id: z.ZodString;
|
|
420
190
|
kind: z.ZodString;
|
|
421
191
|
description: z.ZodOptional<z.ZodString>;
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
kind: string;
|
|
425
|
-
description?: string | undefined;
|
|
426
|
-
}, {
|
|
427
|
-
id: string;
|
|
428
|
-
kind: string;
|
|
429
|
-
description?: string | undefined;
|
|
430
|
-
}>, "many">>;
|
|
431
|
-
handoffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<Omit<{
|
|
192
|
+
}, z.core.$strict>>>;
|
|
193
|
+
handoffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
432
194
|
type: z.ZodLiteral<"agent-handoff">;
|
|
433
|
-
|
|
434
|
-
|
|
195
|
+
checks: z.ZodArray<z.ZodString>;
|
|
196
|
+
humanDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
startHere: z.ZodString;
|
|
435
198
|
target: z.ZodObject<{
|
|
436
|
-
type: z.ZodEnum<
|
|
199
|
+
type: z.ZodEnum<{
|
|
200
|
+
module: "module";
|
|
201
|
+
package: "package";
|
|
202
|
+
search: "search";
|
|
203
|
+
app: "app";
|
|
204
|
+
screen: "screen";
|
|
205
|
+
flow: "flow";
|
|
206
|
+
component: "component";
|
|
207
|
+
intent: "intent";
|
|
208
|
+
change: "change";
|
|
209
|
+
}>;
|
|
437
210
|
id: z.ZodString;
|
|
438
211
|
path: z.ZodOptional<z.ZodString>;
|
|
439
212
|
group: z.ZodOptional<z.ZodString>;
|
|
440
213
|
layer: z.ZodOptional<z.ZodString>;
|
|
441
|
-
},
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
group?: string | undefined;
|
|
446
|
-
layer?: string | undefined;
|
|
447
|
-
}, {
|
|
448
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
449
|
-
id: string;
|
|
450
|
-
path?: string | undefined;
|
|
451
|
-
group?: string | undefined;
|
|
452
|
-
layer?: string | undefined;
|
|
453
|
-
}>;
|
|
454
|
-
startHere: z.ZodString;
|
|
455
|
-
readBeforeEditing: z.ZodArray<z.ZodString, "many">;
|
|
456
|
-
editRoots: z.ZodArray<z.ZodString, "many">;
|
|
457
|
-
checks: z.ZodArray<z.ZodString, "many">;
|
|
458
|
-
humanDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
source: z.ZodString;
|
|
216
|
+
readBeforeEditing: z.ZodArray<z.ZodString>;
|
|
217
|
+
editRoots: z.ZodArray<z.ZodString>;
|
|
459
218
|
bridge: z.ZodOptional<z.ZodObject<{
|
|
460
|
-
humanDoc: z.ZodEnum<
|
|
219
|
+
humanDoc: z.ZodEnum<{
|
|
220
|
+
linked: "linked";
|
|
221
|
+
missing: "missing";
|
|
222
|
+
external: "external";
|
|
223
|
+
}>;
|
|
461
224
|
action: z.ZodOptional<z.ZodString>;
|
|
462
225
|
bootstrap: z.ZodOptional<z.ZodString>;
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
bootstrap?: string | undefined;
|
|
467
|
-
}, {
|
|
468
|
-
humanDoc: "linked" | "missing" | "external";
|
|
469
|
-
action?: string | undefined;
|
|
470
|
-
bootstrap?: string | undefined;
|
|
471
|
-
}>>;
|
|
472
|
-
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
473
|
-
notes: z.ZodArray<z.ZodString, "many">;
|
|
474
|
-
}, "schemaVersion"> & {
|
|
226
|
+
}, z.core.$strict>>;
|
|
227
|
+
playbookPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
|
+
notes: z.ZodArray<z.ZodString>;
|
|
475
229
|
schemaVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
476
|
-
},
|
|
477
|
-
type: "agent-handoff";
|
|
478
|
-
checks: string[];
|
|
479
|
-
startHere: string;
|
|
480
|
-
source: string;
|
|
481
|
-
target: {
|
|
482
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
483
|
-
id: string;
|
|
484
|
-
path?: string | undefined;
|
|
485
|
-
group?: string | undefined;
|
|
486
|
-
layer?: string | undefined;
|
|
487
|
-
};
|
|
488
|
-
readBeforeEditing: string[];
|
|
489
|
-
editRoots: string[];
|
|
490
|
-
notes: string[];
|
|
491
|
-
humanDoc?: string | null | undefined;
|
|
492
|
-
schemaVersion?: 1 | undefined;
|
|
493
|
-
bridge?: {
|
|
494
|
-
humanDoc: "linked" | "missing" | "external";
|
|
495
|
-
action?: string | undefined;
|
|
496
|
-
bootstrap?: string | undefined;
|
|
497
|
-
} | undefined;
|
|
498
|
-
playbookPatterns?: string[] | undefined;
|
|
499
|
-
}, {
|
|
500
|
-
type: "agent-handoff";
|
|
501
|
-
checks: string[];
|
|
502
|
-
startHere: string;
|
|
503
|
-
source: string;
|
|
504
|
-
target: {
|
|
505
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
506
|
-
id: string;
|
|
507
|
-
path?: string | undefined;
|
|
508
|
-
group?: string | undefined;
|
|
509
|
-
layer?: string | undefined;
|
|
510
|
-
};
|
|
511
|
-
readBeforeEditing: string[];
|
|
512
|
-
editRoots: string[];
|
|
513
|
-
notes: string[];
|
|
514
|
-
humanDoc?: string | null | undefined;
|
|
515
|
-
schemaVersion?: 1 | undefined;
|
|
516
|
-
bridge?: {
|
|
517
|
-
humanDoc: "linked" | "missing" | "external";
|
|
518
|
-
action?: string | undefined;
|
|
519
|
-
bootstrap?: string | undefined;
|
|
520
|
-
} | undefined;
|
|
521
|
-
playbookPatterns?: string[] | undefined;
|
|
522
|
-
}>>>;
|
|
230
|
+
}, z.core.$strict>>>;
|
|
523
231
|
lookup: z.ZodOptional<z.ZodObject<{
|
|
524
|
-
packages: z.ZodArray<z.ZodString
|
|
232
|
+
packages: z.ZodArray<z.ZodString>;
|
|
525
233
|
ownership: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
526
234
|
id: z.ZodString;
|
|
527
235
|
path: z.ZodString;
|
|
528
236
|
group: z.ZodOptional<z.ZodString>;
|
|
529
237
|
layer: z.ZodOptional<z.ZodString>;
|
|
530
238
|
purpose: z.ZodOptional<z.ZodString>;
|
|
531
|
-
checks: z.ZodArray<z.ZodString
|
|
239
|
+
checks: z.ZodArray<z.ZodString>;
|
|
532
240
|
agentDoc: z.ZodOptional<z.ZodString>;
|
|
533
241
|
humanDoc: z.ZodOptional<z.ZodString>;
|
|
534
242
|
readme: z.ZodOptional<z.ZodString>;
|
|
535
|
-
},
|
|
536
|
-
path: string;
|
|
537
|
-
checks: string[];
|
|
538
|
-
id: string;
|
|
539
|
-
group?: string | undefined;
|
|
540
|
-
layer?: string | undefined;
|
|
541
|
-
purpose?: string | undefined;
|
|
542
|
-
agentDoc?: string | undefined;
|
|
543
|
-
humanDoc?: string | undefined;
|
|
544
|
-
readme?: string | undefined;
|
|
545
|
-
}, {
|
|
546
|
-
path: string;
|
|
547
|
-
checks: string[];
|
|
548
|
-
id: string;
|
|
549
|
-
group?: string | undefined;
|
|
550
|
-
layer?: string | undefined;
|
|
551
|
-
purpose?: string | undefined;
|
|
552
|
-
agentDoc?: string | undefined;
|
|
553
|
-
humanDoc?: string | undefined;
|
|
554
|
-
readme?: string | undefined;
|
|
555
|
-
}>>>;
|
|
243
|
+
}, z.core.$strict>>>;
|
|
556
244
|
intents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
557
245
|
id: z.ZodString;
|
|
558
246
|
title: z.ZodString;
|
|
559
|
-
paths: z.ZodArray<z.ZodString
|
|
560
|
-
},
|
|
561
|
-
id: string;
|
|
562
|
-
title: string;
|
|
563
|
-
paths: string[];
|
|
564
|
-
}, {
|
|
565
|
-
id: string;
|
|
566
|
-
title: string;
|
|
567
|
-
paths: string[];
|
|
568
|
-
}>>>;
|
|
247
|
+
paths: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>>>;
|
|
569
249
|
changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
570
250
|
id: z.ZodString;
|
|
571
251
|
title: z.ZodString;
|
|
572
252
|
startHere: z.ZodString;
|
|
573
|
-
relatedPackages: z.ZodOptional<z.ZodArray<z.ZodString
|
|
574
|
-
},
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
startHere: string;
|
|
578
|
-
relatedPackages?: string[] | undefined;
|
|
579
|
-
}, {
|
|
580
|
-
id: string;
|
|
581
|
-
title: string;
|
|
582
|
-
startHere: string;
|
|
583
|
-
relatedPackages?: string[] | undefined;
|
|
584
|
-
}>>>;
|
|
585
|
-
}, "strict", z.ZodTypeAny, {
|
|
586
|
-
packages: string[];
|
|
587
|
-
ownership?: Record<string, {
|
|
588
|
-
path: string;
|
|
589
|
-
checks: string[];
|
|
590
|
-
id: string;
|
|
591
|
-
group?: string | undefined;
|
|
592
|
-
layer?: string | undefined;
|
|
593
|
-
purpose?: string | undefined;
|
|
594
|
-
agentDoc?: string | undefined;
|
|
595
|
-
humanDoc?: string | undefined;
|
|
596
|
-
readme?: string | undefined;
|
|
597
|
-
}> | undefined;
|
|
598
|
-
intents?: Record<string, {
|
|
599
|
-
id: string;
|
|
600
|
-
title: string;
|
|
601
|
-
paths: string[];
|
|
602
|
-
}> | undefined;
|
|
603
|
-
changes?: Record<string, {
|
|
604
|
-
id: string;
|
|
605
|
-
title: string;
|
|
606
|
-
startHere: string;
|
|
607
|
-
relatedPackages?: string[] | undefined;
|
|
608
|
-
}> | undefined;
|
|
609
|
-
}, {
|
|
610
|
-
packages: string[];
|
|
611
|
-
ownership?: Record<string, {
|
|
612
|
-
path: string;
|
|
613
|
-
checks: string[];
|
|
614
|
-
id: string;
|
|
615
|
-
group?: string | undefined;
|
|
616
|
-
layer?: string | undefined;
|
|
617
|
-
purpose?: string | undefined;
|
|
618
|
-
agentDoc?: string | undefined;
|
|
619
|
-
humanDoc?: string | undefined;
|
|
620
|
-
readme?: string | undefined;
|
|
621
|
-
}> | undefined;
|
|
622
|
-
intents?: Record<string, {
|
|
623
|
-
id: string;
|
|
624
|
-
title: string;
|
|
625
|
-
paths: string[];
|
|
626
|
-
}> | undefined;
|
|
627
|
-
changes?: Record<string, {
|
|
628
|
-
id: string;
|
|
629
|
-
title: string;
|
|
630
|
-
startHere: string;
|
|
631
|
-
relatedPackages?: string[] | undefined;
|
|
632
|
-
}> | undefined;
|
|
633
|
-
}>>;
|
|
634
|
-
}, "strict", z.ZodTypeAny, {
|
|
635
|
-
contentHash: string;
|
|
636
|
-
schemaVersion: 1;
|
|
637
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
638
|
-
knowledge: {
|
|
639
|
-
path: string;
|
|
640
|
-
type: string;
|
|
641
|
-
id: string;
|
|
642
|
-
title: string;
|
|
643
|
-
links?: string[] | undefined;
|
|
644
|
-
description?: string | undefined;
|
|
645
|
-
body?: string | undefined;
|
|
646
|
-
tags?: string[] | undefined;
|
|
647
|
-
}[];
|
|
648
|
-
capabilities?: {
|
|
649
|
-
id: string;
|
|
650
|
-
kind: string;
|
|
651
|
-
description?: string | undefined;
|
|
652
|
-
}[] | undefined;
|
|
653
|
-
project?: {
|
|
654
|
-
name: string;
|
|
655
|
-
root?: string | undefined;
|
|
656
|
-
} | undefined;
|
|
657
|
-
generatedAt?: string | undefined;
|
|
658
|
-
properties?: {
|
|
659
|
-
id: string;
|
|
660
|
-
name: string;
|
|
661
|
-
url?: string | undefined;
|
|
662
|
-
llms?: string | undefined;
|
|
663
|
-
}[] | undefined;
|
|
664
|
-
handoffs?: Record<string, {
|
|
665
|
-
type: "agent-handoff";
|
|
666
|
-
checks: string[];
|
|
667
|
-
startHere: string;
|
|
668
|
-
source: string;
|
|
669
|
-
target: {
|
|
670
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
671
|
-
id: string;
|
|
672
|
-
path?: string | undefined;
|
|
673
|
-
group?: string | undefined;
|
|
674
|
-
layer?: string | undefined;
|
|
675
|
-
};
|
|
676
|
-
readBeforeEditing: string[];
|
|
677
|
-
editRoots: string[];
|
|
678
|
-
notes: string[];
|
|
679
|
-
humanDoc?: string | null | undefined;
|
|
680
|
-
schemaVersion?: 1 | undefined;
|
|
681
|
-
bridge?: {
|
|
682
|
-
humanDoc: "linked" | "missing" | "external";
|
|
683
|
-
action?: string | undefined;
|
|
684
|
-
bootstrap?: string | undefined;
|
|
685
|
-
} | undefined;
|
|
686
|
-
playbookPatterns?: string[] | undefined;
|
|
687
|
-
}> | undefined;
|
|
688
|
-
lookup?: {
|
|
689
|
-
packages: string[];
|
|
690
|
-
ownership?: Record<string, {
|
|
691
|
-
path: string;
|
|
692
|
-
checks: string[];
|
|
693
|
-
id: string;
|
|
694
|
-
group?: string | undefined;
|
|
695
|
-
layer?: string | undefined;
|
|
696
|
-
purpose?: string | undefined;
|
|
697
|
-
agentDoc?: string | undefined;
|
|
698
|
-
humanDoc?: string | undefined;
|
|
699
|
-
readme?: string | undefined;
|
|
700
|
-
}> | undefined;
|
|
701
|
-
intents?: Record<string, {
|
|
702
|
-
id: string;
|
|
703
|
-
title: string;
|
|
704
|
-
paths: string[];
|
|
705
|
-
}> | undefined;
|
|
706
|
-
changes?: Record<string, {
|
|
707
|
-
id: string;
|
|
708
|
-
title: string;
|
|
709
|
-
startHere: string;
|
|
710
|
-
relatedPackages?: string[] | undefined;
|
|
711
|
-
}> | undefined;
|
|
712
|
-
} | undefined;
|
|
713
|
-
}, {
|
|
714
|
-
contentHash: string;
|
|
715
|
-
schemaVersion: 1;
|
|
716
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
717
|
-
knowledge: {
|
|
718
|
-
path: string;
|
|
719
|
-
type: string;
|
|
720
|
-
id: string;
|
|
721
|
-
title: string;
|
|
722
|
-
links?: string[] | undefined;
|
|
723
|
-
description?: string | undefined;
|
|
724
|
-
body?: string | undefined;
|
|
725
|
-
tags?: string[] | undefined;
|
|
726
|
-
}[];
|
|
727
|
-
capabilities?: {
|
|
728
|
-
id: string;
|
|
729
|
-
kind: string;
|
|
730
|
-
description?: string | undefined;
|
|
731
|
-
}[] | undefined;
|
|
732
|
-
project?: {
|
|
733
|
-
name: string;
|
|
734
|
-
root?: string | undefined;
|
|
735
|
-
} | undefined;
|
|
736
|
-
generatedAt?: string | undefined;
|
|
737
|
-
properties?: {
|
|
738
|
-
id: string;
|
|
739
|
-
name: string;
|
|
740
|
-
url?: string | undefined;
|
|
741
|
-
llms?: string | undefined;
|
|
742
|
-
}[] | undefined;
|
|
743
|
-
handoffs?: Record<string, {
|
|
744
|
-
type: "agent-handoff";
|
|
745
|
-
checks: string[];
|
|
746
|
-
startHere: string;
|
|
747
|
-
source: string;
|
|
748
|
-
target: {
|
|
749
|
-
type: "module" | "package" | "search" | "app" | "screen" | "flow" | "component" | "intent" | "change";
|
|
750
|
-
id: string;
|
|
751
|
-
path?: string | undefined;
|
|
752
|
-
group?: string | undefined;
|
|
753
|
-
layer?: string | undefined;
|
|
754
|
-
};
|
|
755
|
-
readBeforeEditing: string[];
|
|
756
|
-
editRoots: string[];
|
|
757
|
-
notes: string[];
|
|
758
|
-
humanDoc?: string | null | undefined;
|
|
759
|
-
schemaVersion?: 1 | undefined;
|
|
760
|
-
bridge?: {
|
|
761
|
-
humanDoc: "linked" | "missing" | "external";
|
|
762
|
-
action?: string | undefined;
|
|
763
|
-
bootstrap?: string | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
playbookPatterns?: string[] | undefined;
|
|
766
|
-
}> | undefined;
|
|
767
|
-
lookup?: {
|
|
768
|
-
packages: string[];
|
|
769
|
-
ownership?: Record<string, {
|
|
770
|
-
path: string;
|
|
771
|
-
checks: string[];
|
|
772
|
-
id: string;
|
|
773
|
-
group?: string | undefined;
|
|
774
|
-
layer?: string | undefined;
|
|
775
|
-
purpose?: string | undefined;
|
|
776
|
-
agentDoc?: string | undefined;
|
|
777
|
-
humanDoc?: string | undefined;
|
|
778
|
-
readme?: string | undefined;
|
|
779
|
-
}> | undefined;
|
|
780
|
-
intents?: Record<string, {
|
|
781
|
-
id: string;
|
|
782
|
-
title: string;
|
|
783
|
-
paths: string[];
|
|
784
|
-
}> | undefined;
|
|
785
|
-
changes?: Record<string, {
|
|
786
|
-
id: string;
|
|
787
|
-
title: string;
|
|
788
|
-
startHere: string;
|
|
789
|
-
relatedPackages?: string[] | undefined;
|
|
790
|
-
}> | undefined;
|
|
791
|
-
} | undefined;
|
|
792
|
-
}>;
|
|
253
|
+
relatedPackages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
254
|
+
}, z.core.$strict>>>;
|
|
255
|
+
}, z.core.$strict>>;
|
|
256
|
+
}, z.core.$strict>;
|
|
793
257
|
type DocBridgeIndexV1 = z.infer<typeof DocBridgeIndexV1Schema>;
|
|
794
258
|
type KnowledgeEntry = z.infer<typeof KnowledgeEntrySchema>;
|
|
795
259
|
|
|
@@ -797,37 +261,28 @@ declare const MEMORY_CANDIDATE_SCHEMA_VERSION: 1;
|
|
|
797
261
|
declare const MemoryCandidateV1Schema: z.ZodObject<{
|
|
798
262
|
schemaVersion: z.ZodLiteral<1>;
|
|
799
263
|
id: z.ZodString;
|
|
800
|
-
source: z.ZodEnum<
|
|
264
|
+
source: z.ZodEnum<{
|
|
265
|
+
cursor: "cursor";
|
|
266
|
+
claude: "claude";
|
|
267
|
+
codex: "codex";
|
|
268
|
+
copilot: "copilot";
|
|
269
|
+
"agent-memory": "agent-memory";
|
|
270
|
+
manual: "manual";
|
|
271
|
+
}>;
|
|
801
272
|
rawPath: z.ZodOptional<z.ZodString>;
|
|
802
273
|
fact: z.ZodString;
|
|
803
274
|
why: z.ZodOptional<z.ZodString>;
|
|
804
275
|
howToApply: z.ZodOptional<z.ZodString>;
|
|
805
|
-
suggestedType: z.ZodEnum<
|
|
276
|
+
suggestedType: z.ZodEnum<{
|
|
277
|
+
unknown: "unknown";
|
|
278
|
+
project: "project";
|
|
279
|
+
user: "user";
|
|
280
|
+
feedback: "feedback";
|
|
281
|
+
reference: "reference";
|
|
282
|
+
}>;
|
|
806
283
|
confidence: z.ZodNumber;
|
|
807
|
-
references: z.ZodArray<z.ZodString
|
|
808
|
-
},
|
|
809
|
-
id: string;
|
|
810
|
-
schemaVersion: 1;
|
|
811
|
-
source: "cursor" | "claude" | "codex" | "copilot" | "agent-memory" | "manual";
|
|
812
|
-
fact: string;
|
|
813
|
-
suggestedType: "unknown" | "project" | "user" | "feedback" | "reference";
|
|
814
|
-
confidence: number;
|
|
815
|
-
references: string[];
|
|
816
|
-
rawPath?: string | undefined;
|
|
817
|
-
why?: string | undefined;
|
|
818
|
-
howToApply?: string | undefined;
|
|
819
|
-
}, {
|
|
820
|
-
id: string;
|
|
821
|
-
schemaVersion: 1;
|
|
822
|
-
source: "cursor" | "claude" | "codex" | "copilot" | "agent-memory" | "manual";
|
|
823
|
-
fact: string;
|
|
824
|
-
suggestedType: "unknown" | "project" | "user" | "feedback" | "reference";
|
|
825
|
-
confidence: number;
|
|
826
|
-
references: string[];
|
|
827
|
-
rawPath?: string | undefined;
|
|
828
|
-
why?: string | undefined;
|
|
829
|
-
howToApply?: string | undefined;
|
|
830
|
-
}>;
|
|
284
|
+
references: z.ZodArray<z.ZodString>;
|
|
285
|
+
}, z.core.$strict>;
|
|
831
286
|
type MemoryCandidateV1 = z.infer<typeof MemoryCandidateV1Schema>;
|
|
832
287
|
|
|
833
288
|
type JsonSchema = {
|
|
@@ -1376,208 +831,107 @@ declare const DocBridgeJsonSchemas: {
|
|
|
1376
831
|
|
|
1377
832
|
declare const KNOWLEDGE_SCHEMA_VERSION: 1;
|
|
1378
833
|
declare const KNOWLEDGE_CONTENT_HASH_ALGO: "sha256-normalized-v1";
|
|
1379
|
-
declare const ProvenanceSchema: z.ZodEnum<
|
|
834
|
+
declare const ProvenanceSchema: z.ZodEnum<{
|
|
835
|
+
observed: "observed";
|
|
836
|
+
declared: "declared";
|
|
837
|
+
proposed: "proposed";
|
|
838
|
+
}>;
|
|
1380
839
|
type Provenance = z.infer<typeof ProvenanceSchema>;
|
|
1381
|
-
declare const FindingStatusSchema: z.ZodEnum<
|
|
840
|
+
declare const FindingStatusSchema: z.ZodEnum<{
|
|
841
|
+
confirmed: "confirmed";
|
|
842
|
+
undocumented: "undocumented";
|
|
843
|
+
"stale-or-unverified": "stale-or-unverified";
|
|
844
|
+
conflict: "conflict";
|
|
845
|
+
unresolved: "unresolved";
|
|
846
|
+
"not-analyzed": "not-analyzed";
|
|
847
|
+
}>;
|
|
1382
848
|
type FindingStatus = z.infer<typeof FindingStatusSchema>;
|
|
1383
|
-
declare const DiagnosticSeveritySchema: z.ZodEnum<
|
|
849
|
+
declare const DiagnosticSeveritySchema: z.ZodEnum<{
|
|
850
|
+
error: "error";
|
|
851
|
+
off: "off";
|
|
852
|
+
info: "info";
|
|
853
|
+
warn: "warn";
|
|
854
|
+
}>;
|
|
1384
855
|
type DiagnosticSeverity = z.infer<typeof DiagnosticSeveritySchema>;
|
|
1385
|
-
declare const EvidenceSourceSchema: z.ZodEnum<
|
|
1386
|
-
|
|
1387
|
-
|
|
856
|
+
declare const EvidenceSourceSchema: z.ZodEnum<{
|
|
857
|
+
agent: "agent";
|
|
858
|
+
code: "code";
|
|
859
|
+
configuration: "configuration";
|
|
860
|
+
documentation: "documentation";
|
|
861
|
+
derived: "derived";
|
|
862
|
+
}>;
|
|
863
|
+
declare const EvidenceSchema: z.ZodObject<{
|
|
864
|
+
source: z.ZodEnum<{
|
|
865
|
+
agent: "agent";
|
|
866
|
+
code: "code";
|
|
867
|
+
configuration: "configuration";
|
|
868
|
+
documentation: "documentation";
|
|
869
|
+
derived: "derived";
|
|
870
|
+
}>;
|
|
1388
871
|
path: z.ZodString;
|
|
1389
872
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1390
873
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1391
874
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1392
875
|
context: z.ZodOptional<z.ZodString>;
|
|
1393
|
-
},
|
|
1394
|
-
path: string;
|
|
1395
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1396
|
-
contentHash?: string | undefined;
|
|
1397
|
-
lineStart?: number | undefined;
|
|
1398
|
-
lineEnd?: number | undefined;
|
|
1399
|
-
context?: string | undefined;
|
|
1400
|
-
}, {
|
|
1401
|
-
path: string;
|
|
1402
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1403
|
-
contentHash?: string | undefined;
|
|
1404
|
-
lineStart?: number | undefined;
|
|
1405
|
-
lineEnd?: number | undefined;
|
|
1406
|
-
context?: string | undefined;
|
|
1407
|
-
}>, {
|
|
1408
|
-
path: string;
|
|
1409
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1410
|
-
contentHash?: string | undefined;
|
|
1411
|
-
lineStart?: number | undefined;
|
|
1412
|
-
lineEnd?: number | undefined;
|
|
1413
|
-
context?: string | undefined;
|
|
1414
|
-
}, {
|
|
1415
|
-
path: string;
|
|
1416
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1417
|
-
contentHash?: string | undefined;
|
|
1418
|
-
lineStart?: number | undefined;
|
|
1419
|
-
lineEnd?: number | undefined;
|
|
1420
|
-
context?: string | undefined;
|
|
1421
|
-
}>;
|
|
876
|
+
}, z.core.$strict>;
|
|
1422
877
|
type Evidence = z.infer<typeof EvidenceSchema>;
|
|
1423
878
|
declare const CoverageSchema: z.ZodObject<{
|
|
1424
879
|
analyzer: z.ZodString;
|
|
1425
880
|
analyzerVersion: z.ZodOptional<z.ZodString>;
|
|
1426
881
|
scope: z.ZodString;
|
|
1427
|
-
status: z.ZodEnum<
|
|
882
|
+
status: z.ZodEnum<{
|
|
883
|
+
"not-analyzed": "not-analyzed";
|
|
884
|
+
complete: "complete";
|
|
885
|
+
partial: "partial";
|
|
886
|
+
"not-applicable": "not-applicable";
|
|
887
|
+
}>;
|
|
1428
888
|
reason: z.ZodOptional<z.ZodString>;
|
|
1429
|
-
evidence: z.ZodOptional<z.ZodArray<z.
|
|
1430
|
-
source: z.ZodEnum<
|
|
889
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
890
|
+
source: z.ZodEnum<{
|
|
891
|
+
agent: "agent";
|
|
892
|
+
code: "code";
|
|
893
|
+
configuration: "configuration";
|
|
894
|
+
documentation: "documentation";
|
|
895
|
+
derived: "derived";
|
|
896
|
+
}>;
|
|
1431
897
|
path: z.ZodString;
|
|
1432
898
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1433
899
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1434
900
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1435
901
|
context: z.ZodOptional<z.ZodString>;
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1438
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1439
|
-
contentHash?: string | undefined;
|
|
1440
|
-
lineStart?: number | undefined;
|
|
1441
|
-
lineEnd?: number | undefined;
|
|
1442
|
-
context?: string | undefined;
|
|
1443
|
-
}, {
|
|
1444
|
-
path: string;
|
|
1445
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1446
|
-
contentHash?: string | undefined;
|
|
1447
|
-
lineStart?: number | undefined;
|
|
1448
|
-
lineEnd?: number | undefined;
|
|
1449
|
-
context?: string | undefined;
|
|
1450
|
-
}>, {
|
|
1451
|
-
path: string;
|
|
1452
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1453
|
-
contentHash?: string | undefined;
|
|
1454
|
-
lineStart?: number | undefined;
|
|
1455
|
-
lineEnd?: number | undefined;
|
|
1456
|
-
context?: string | undefined;
|
|
1457
|
-
}, {
|
|
1458
|
-
path: string;
|
|
1459
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1460
|
-
contentHash?: string | undefined;
|
|
1461
|
-
lineStart?: number | undefined;
|
|
1462
|
-
lineEnd?: number | undefined;
|
|
1463
|
-
context?: string | undefined;
|
|
1464
|
-
}>, "many">>;
|
|
1465
|
-
}, "strict", z.ZodTypeAny, {
|
|
1466
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
1467
|
-
scope: string;
|
|
1468
|
-
analyzer: string;
|
|
1469
|
-
reason?: string | undefined;
|
|
1470
|
-
analyzerVersion?: string | undefined;
|
|
1471
|
-
evidence?: {
|
|
1472
|
-
path: string;
|
|
1473
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1474
|
-
contentHash?: string | undefined;
|
|
1475
|
-
lineStart?: number | undefined;
|
|
1476
|
-
lineEnd?: number | undefined;
|
|
1477
|
-
context?: string | undefined;
|
|
1478
|
-
}[] | undefined;
|
|
1479
|
-
}, {
|
|
1480
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
1481
|
-
scope: string;
|
|
1482
|
-
analyzer: string;
|
|
1483
|
-
reason?: string | undefined;
|
|
1484
|
-
analyzerVersion?: string | undefined;
|
|
1485
|
-
evidence?: {
|
|
1486
|
-
path: string;
|
|
1487
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1488
|
-
contentHash?: string | undefined;
|
|
1489
|
-
lineStart?: number | undefined;
|
|
1490
|
-
lineEnd?: number | undefined;
|
|
1491
|
-
context?: string | undefined;
|
|
1492
|
-
}[] | undefined;
|
|
1493
|
-
}>;
|
|
902
|
+
}, z.core.$strict>>>;
|
|
903
|
+
}, z.core.$strict>;
|
|
1494
904
|
declare const ProjectIdentitySchema: z.ZodObject<{
|
|
1495
905
|
name: z.ZodString;
|
|
1496
906
|
root: z.ZodOptional<z.ZodString>;
|
|
1497
|
-
},
|
|
1498
|
-
name: string;
|
|
1499
|
-
root?: string | undefined;
|
|
1500
|
-
}, {
|
|
1501
|
-
name: string;
|
|
1502
|
-
root?: string | undefined;
|
|
1503
|
-
}>;
|
|
907
|
+
}, z.core.$strict>;
|
|
1504
908
|
declare const EntitySchema: z.ZodObject<{
|
|
1505
909
|
id: z.ZodString;
|
|
1506
910
|
kind: z.ZodString;
|
|
1507
911
|
name: z.ZodString;
|
|
1508
912
|
path: z.ZodOptional<z.ZodString>;
|
|
1509
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1510
|
-
provenance: z.ZodEnum<
|
|
1511
|
-
|
|
1512
|
-
|
|
913
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
914
|
+
provenance: z.ZodEnum<{
|
|
915
|
+
observed: "observed";
|
|
916
|
+
declared: "declared";
|
|
917
|
+
proposed: "proposed";
|
|
918
|
+
}>;
|
|
919
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
920
|
+
source: z.ZodEnum<{
|
|
921
|
+
agent: "agent";
|
|
922
|
+
code: "code";
|
|
923
|
+
configuration: "configuration";
|
|
924
|
+
documentation: "documentation";
|
|
925
|
+
derived: "derived";
|
|
926
|
+
}>;
|
|
1513
927
|
path: z.ZodString;
|
|
1514
928
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1515
929
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1516
930
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1517
931
|
context: z.ZodOptional<z.ZodString>;
|
|
1518
|
-
},
|
|
1519
|
-
path: string;
|
|
1520
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1521
|
-
contentHash?: string | undefined;
|
|
1522
|
-
lineStart?: number | undefined;
|
|
1523
|
-
lineEnd?: number | undefined;
|
|
1524
|
-
context?: string | undefined;
|
|
1525
|
-
}, {
|
|
1526
|
-
path: string;
|
|
1527
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1528
|
-
contentHash?: string | undefined;
|
|
1529
|
-
lineStart?: number | undefined;
|
|
1530
|
-
lineEnd?: number | undefined;
|
|
1531
|
-
context?: string | undefined;
|
|
1532
|
-
}>, {
|
|
1533
|
-
path: string;
|
|
1534
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1535
|
-
contentHash?: string | undefined;
|
|
1536
|
-
lineStart?: number | undefined;
|
|
1537
|
-
lineEnd?: number | undefined;
|
|
1538
|
-
context?: string | undefined;
|
|
1539
|
-
}, {
|
|
1540
|
-
path: string;
|
|
1541
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1542
|
-
contentHash?: string | undefined;
|
|
1543
|
-
lineStart?: number | undefined;
|
|
1544
|
-
lineEnd?: number | undefined;
|
|
1545
|
-
context?: string | undefined;
|
|
1546
|
-
}>, "many">;
|
|
932
|
+
}, z.core.$strict>>;
|
|
1547
933
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1548
|
-
},
|
|
1549
|
-
id: string;
|
|
1550
|
-
name: string;
|
|
1551
|
-
kind: string;
|
|
1552
|
-
evidence: {
|
|
1553
|
-
path: string;
|
|
1554
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1555
|
-
contentHash?: string | undefined;
|
|
1556
|
-
lineStart?: number | undefined;
|
|
1557
|
-
lineEnd?: number | undefined;
|
|
1558
|
-
context?: string | undefined;
|
|
1559
|
-
}[];
|
|
1560
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1561
|
-
path?: string | undefined;
|
|
1562
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1563
|
-
aliases?: string[] | undefined;
|
|
1564
|
-
}, {
|
|
1565
|
-
id: string;
|
|
1566
|
-
name: string;
|
|
1567
|
-
kind: string;
|
|
1568
|
-
evidence: {
|
|
1569
|
-
path: string;
|
|
1570
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1571
|
-
contentHash?: string | undefined;
|
|
1572
|
-
lineStart?: number | undefined;
|
|
1573
|
-
lineEnd?: number | undefined;
|
|
1574
|
-
context?: string | undefined;
|
|
1575
|
-
}[];
|
|
1576
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1577
|
-
path?: string | undefined;
|
|
1578
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1579
|
-
aliases?: string[] | undefined;
|
|
1580
|
-
}>;
|
|
934
|
+
}, z.core.$strict>;
|
|
1581
935
|
type KnowledgeEntity = z.infer<typeof EntitySchema>;
|
|
1582
936
|
declare const RelationSchema: z.ZodObject<{
|
|
1583
937
|
id: z.ZodString;
|
|
@@ -1585,1550 +939,524 @@ declare const RelationSchema: z.ZodObject<{
|
|
|
1585
939
|
from: z.ZodString;
|
|
1586
940
|
to: z.ZodString;
|
|
1587
941
|
discriminator: z.ZodOptional<z.ZodString>;
|
|
1588
|
-
provenance: z.ZodEnum<
|
|
1589
|
-
|
|
1590
|
-
|
|
942
|
+
provenance: z.ZodEnum<{
|
|
943
|
+
observed: "observed";
|
|
944
|
+
declared: "declared";
|
|
945
|
+
proposed: "proposed";
|
|
946
|
+
}>;
|
|
947
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
948
|
+
source: z.ZodEnum<{
|
|
949
|
+
agent: "agent";
|
|
950
|
+
code: "code";
|
|
951
|
+
configuration: "configuration";
|
|
952
|
+
documentation: "documentation";
|
|
953
|
+
derived: "derived";
|
|
954
|
+
}>;
|
|
1591
955
|
path: z.ZodString;
|
|
1592
956
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1593
957
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1594
958
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1595
959
|
context: z.ZodOptional<z.ZodString>;
|
|
1596
|
-
},
|
|
1597
|
-
path: string;
|
|
1598
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1599
|
-
contentHash?: string | undefined;
|
|
1600
|
-
lineStart?: number | undefined;
|
|
1601
|
-
lineEnd?: number | undefined;
|
|
1602
|
-
context?: string | undefined;
|
|
1603
|
-
}, {
|
|
1604
|
-
path: string;
|
|
1605
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1606
|
-
contentHash?: string | undefined;
|
|
1607
|
-
lineStart?: number | undefined;
|
|
1608
|
-
lineEnd?: number | undefined;
|
|
1609
|
-
context?: string | undefined;
|
|
1610
|
-
}>, {
|
|
1611
|
-
path: string;
|
|
1612
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1613
|
-
contentHash?: string | undefined;
|
|
1614
|
-
lineStart?: number | undefined;
|
|
1615
|
-
lineEnd?: number | undefined;
|
|
1616
|
-
context?: string | undefined;
|
|
1617
|
-
}, {
|
|
1618
|
-
path: string;
|
|
1619
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1620
|
-
contentHash?: string | undefined;
|
|
1621
|
-
lineStart?: number | undefined;
|
|
1622
|
-
lineEnd?: number | undefined;
|
|
1623
|
-
context?: string | undefined;
|
|
1624
|
-
}>, "many">;
|
|
960
|
+
}, z.core.$strict>>;
|
|
1625
961
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1626
|
-
},
|
|
1627
|
-
id: string;
|
|
1628
|
-
kind: string;
|
|
1629
|
-
evidence: {
|
|
1630
|
-
path: string;
|
|
1631
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1632
|
-
contentHash?: string | undefined;
|
|
1633
|
-
lineStart?: number | undefined;
|
|
1634
|
-
lineEnd?: number | undefined;
|
|
1635
|
-
context?: string | undefined;
|
|
1636
|
-
}[];
|
|
1637
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1638
|
-
from: string;
|
|
1639
|
-
to: string;
|
|
1640
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1641
|
-
discriminator?: string | undefined;
|
|
1642
|
-
}, {
|
|
1643
|
-
id: string;
|
|
1644
|
-
kind: string;
|
|
1645
|
-
evidence: {
|
|
1646
|
-
path: string;
|
|
1647
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1648
|
-
contentHash?: string | undefined;
|
|
1649
|
-
lineStart?: number | undefined;
|
|
1650
|
-
lineEnd?: number | undefined;
|
|
1651
|
-
context?: string | undefined;
|
|
1652
|
-
}[];
|
|
1653
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1654
|
-
from: string;
|
|
1655
|
-
to: string;
|
|
1656
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1657
|
-
discriminator?: string | undefined;
|
|
1658
|
-
}>;
|
|
962
|
+
}, z.core.$strict>;
|
|
1659
963
|
type KnowledgeRelation = z.infer<typeof RelationSchema>;
|
|
1660
|
-
declare const DiscoverySnapshotV1Schema: z.
|
|
964
|
+
declare const DiscoverySnapshotV1Schema: z.ZodObject<{
|
|
1661
965
|
entities: z.ZodArray<z.ZodObject<{
|
|
1662
966
|
id: z.ZodString;
|
|
1663
967
|
kind: z.ZodString;
|
|
1664
968
|
name: z.ZodString;
|
|
1665
969
|
path: z.ZodOptional<z.ZodString>;
|
|
1666
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1667
|
-
provenance: z.ZodEnum<
|
|
1668
|
-
|
|
1669
|
-
|
|
970
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
971
|
+
provenance: z.ZodEnum<{
|
|
972
|
+
observed: "observed";
|
|
973
|
+
declared: "declared";
|
|
974
|
+
proposed: "proposed";
|
|
975
|
+
}>;
|
|
976
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
977
|
+
source: z.ZodEnum<{
|
|
978
|
+
agent: "agent";
|
|
979
|
+
code: "code";
|
|
980
|
+
configuration: "configuration";
|
|
981
|
+
documentation: "documentation";
|
|
982
|
+
derived: "derived";
|
|
983
|
+
}>;
|
|
1670
984
|
path: z.ZodString;
|
|
1671
985
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1672
986
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1673
987
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1674
988
|
context: z.ZodOptional<z.ZodString>;
|
|
1675
|
-
},
|
|
1676
|
-
path: string;
|
|
1677
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1678
|
-
contentHash?: string | undefined;
|
|
1679
|
-
lineStart?: number | undefined;
|
|
1680
|
-
lineEnd?: number | undefined;
|
|
1681
|
-
context?: string | undefined;
|
|
1682
|
-
}, {
|
|
1683
|
-
path: string;
|
|
1684
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1685
|
-
contentHash?: string | undefined;
|
|
1686
|
-
lineStart?: number | undefined;
|
|
1687
|
-
lineEnd?: number | undefined;
|
|
1688
|
-
context?: string | undefined;
|
|
1689
|
-
}>, {
|
|
1690
|
-
path: string;
|
|
1691
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1692
|
-
contentHash?: string | undefined;
|
|
1693
|
-
lineStart?: number | undefined;
|
|
1694
|
-
lineEnd?: number | undefined;
|
|
1695
|
-
context?: string | undefined;
|
|
1696
|
-
}, {
|
|
1697
|
-
path: string;
|
|
1698
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1699
|
-
contentHash?: string | undefined;
|
|
1700
|
-
lineStart?: number | undefined;
|
|
1701
|
-
lineEnd?: number | undefined;
|
|
1702
|
-
context?: string | undefined;
|
|
1703
|
-
}>, "many">;
|
|
989
|
+
}, z.core.$strict>>;
|
|
1704
990
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1705
|
-
},
|
|
1706
|
-
id: string;
|
|
1707
|
-
name: string;
|
|
1708
|
-
kind: string;
|
|
1709
|
-
evidence: {
|
|
1710
|
-
path: string;
|
|
1711
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1712
|
-
contentHash?: string | undefined;
|
|
1713
|
-
lineStart?: number | undefined;
|
|
1714
|
-
lineEnd?: number | undefined;
|
|
1715
|
-
context?: string | undefined;
|
|
1716
|
-
}[];
|
|
1717
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1718
|
-
path?: string | undefined;
|
|
1719
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1720
|
-
aliases?: string[] | undefined;
|
|
1721
|
-
}, {
|
|
1722
|
-
id: string;
|
|
1723
|
-
name: string;
|
|
1724
|
-
kind: string;
|
|
1725
|
-
evidence: {
|
|
1726
|
-
path: string;
|
|
1727
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1728
|
-
contentHash?: string | undefined;
|
|
1729
|
-
lineStart?: number | undefined;
|
|
1730
|
-
lineEnd?: number | undefined;
|
|
1731
|
-
context?: string | undefined;
|
|
1732
|
-
}[];
|
|
1733
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1734
|
-
path?: string | undefined;
|
|
1735
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1736
|
-
aliases?: string[] | undefined;
|
|
1737
|
-
}>, "many">;
|
|
991
|
+
}, z.core.$strict>>;
|
|
1738
992
|
relations: z.ZodArray<z.ZodObject<{
|
|
1739
993
|
id: z.ZodString;
|
|
1740
994
|
kind: z.ZodString;
|
|
1741
995
|
from: z.ZodString;
|
|
1742
996
|
to: z.ZodString;
|
|
1743
997
|
discriminator: z.ZodOptional<z.ZodString>;
|
|
1744
|
-
provenance: z.ZodEnum<
|
|
1745
|
-
|
|
1746
|
-
|
|
998
|
+
provenance: z.ZodEnum<{
|
|
999
|
+
observed: "observed";
|
|
1000
|
+
declared: "declared";
|
|
1001
|
+
proposed: "proposed";
|
|
1002
|
+
}>;
|
|
1003
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1004
|
+
source: z.ZodEnum<{
|
|
1005
|
+
agent: "agent";
|
|
1006
|
+
code: "code";
|
|
1007
|
+
configuration: "configuration";
|
|
1008
|
+
documentation: "documentation";
|
|
1009
|
+
derived: "derived";
|
|
1010
|
+
}>;
|
|
1747
1011
|
path: z.ZodString;
|
|
1748
1012
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1749
1013
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1750
1014
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1751
1015
|
context: z.ZodOptional<z.ZodString>;
|
|
1752
|
-
},
|
|
1753
|
-
path: string;
|
|
1754
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1755
|
-
contentHash?: string | undefined;
|
|
1756
|
-
lineStart?: number | undefined;
|
|
1757
|
-
lineEnd?: number | undefined;
|
|
1758
|
-
context?: string | undefined;
|
|
1759
|
-
}, {
|
|
1760
|
-
path: string;
|
|
1761
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1762
|
-
contentHash?: string | undefined;
|
|
1763
|
-
lineStart?: number | undefined;
|
|
1764
|
-
lineEnd?: number | undefined;
|
|
1765
|
-
context?: string | undefined;
|
|
1766
|
-
}>, {
|
|
1767
|
-
path: string;
|
|
1768
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1769
|
-
contentHash?: string | undefined;
|
|
1770
|
-
lineStart?: number | undefined;
|
|
1771
|
-
lineEnd?: number | undefined;
|
|
1772
|
-
context?: string | undefined;
|
|
1773
|
-
}, {
|
|
1774
|
-
path: string;
|
|
1775
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1776
|
-
contentHash?: string | undefined;
|
|
1777
|
-
lineStart?: number | undefined;
|
|
1778
|
-
lineEnd?: number | undefined;
|
|
1779
|
-
context?: string | undefined;
|
|
1780
|
-
}>, "many">;
|
|
1016
|
+
}, z.core.$strict>>;
|
|
1781
1017
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1782
|
-
},
|
|
1783
|
-
id: string;
|
|
1784
|
-
kind: string;
|
|
1785
|
-
evidence: {
|
|
1786
|
-
path: string;
|
|
1787
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1788
|
-
contentHash?: string | undefined;
|
|
1789
|
-
lineStart?: number | undefined;
|
|
1790
|
-
lineEnd?: number | undefined;
|
|
1791
|
-
context?: string | undefined;
|
|
1792
|
-
}[];
|
|
1793
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1794
|
-
from: string;
|
|
1795
|
-
to: string;
|
|
1796
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1797
|
-
discriminator?: string | undefined;
|
|
1798
|
-
}, {
|
|
1799
|
-
id: string;
|
|
1800
|
-
kind: string;
|
|
1801
|
-
evidence: {
|
|
1802
|
-
path: string;
|
|
1803
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1804
|
-
contentHash?: string | undefined;
|
|
1805
|
-
lineStart?: number | undefined;
|
|
1806
|
-
lineEnd?: number | undefined;
|
|
1807
|
-
context?: string | undefined;
|
|
1808
|
-
}[];
|
|
1809
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1810
|
-
from: string;
|
|
1811
|
-
to: string;
|
|
1812
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1813
|
-
discriminator?: string | undefined;
|
|
1814
|
-
}>, "many">;
|
|
1018
|
+
}, z.core.$strict>>;
|
|
1815
1019
|
coverage: z.ZodArray<z.ZodObject<{
|
|
1816
1020
|
analyzer: z.ZodString;
|
|
1817
1021
|
analyzerVersion: z.ZodOptional<z.ZodString>;
|
|
1818
1022
|
scope: z.ZodString;
|
|
1819
|
-
status: z.ZodEnum<
|
|
1023
|
+
status: z.ZodEnum<{
|
|
1024
|
+
"not-analyzed": "not-analyzed";
|
|
1025
|
+
complete: "complete";
|
|
1026
|
+
partial: "partial";
|
|
1027
|
+
"not-applicable": "not-applicable";
|
|
1028
|
+
}>;
|
|
1820
1029
|
reason: z.ZodOptional<z.ZodString>;
|
|
1821
|
-
evidence: z.ZodOptional<z.ZodArray<z.
|
|
1822
|
-
source: z.ZodEnum<
|
|
1030
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1031
|
+
source: z.ZodEnum<{
|
|
1032
|
+
agent: "agent";
|
|
1033
|
+
code: "code";
|
|
1034
|
+
configuration: "configuration";
|
|
1035
|
+
documentation: "documentation";
|
|
1036
|
+
derived: "derived";
|
|
1037
|
+
}>;
|
|
1823
1038
|
path: z.ZodString;
|
|
1824
1039
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1825
1040
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1826
1041
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
1827
1042
|
context: z.ZodOptional<z.ZodString>;
|
|
1828
|
-
},
|
|
1829
|
-
|
|
1830
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1831
|
-
contentHash?: string | undefined;
|
|
1832
|
-
lineStart?: number | undefined;
|
|
1833
|
-
lineEnd?: number | undefined;
|
|
1834
|
-
context?: string | undefined;
|
|
1835
|
-
}, {
|
|
1836
|
-
path: string;
|
|
1837
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1838
|
-
contentHash?: string | undefined;
|
|
1839
|
-
lineStart?: number | undefined;
|
|
1840
|
-
lineEnd?: number | undefined;
|
|
1841
|
-
context?: string | undefined;
|
|
1842
|
-
}>, {
|
|
1843
|
-
path: string;
|
|
1844
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1845
|
-
contentHash?: string | undefined;
|
|
1846
|
-
lineStart?: number | undefined;
|
|
1847
|
-
lineEnd?: number | undefined;
|
|
1848
|
-
context?: string | undefined;
|
|
1849
|
-
}, {
|
|
1850
|
-
path: string;
|
|
1851
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1852
|
-
contentHash?: string | undefined;
|
|
1853
|
-
lineStart?: number | undefined;
|
|
1854
|
-
lineEnd?: number | undefined;
|
|
1855
|
-
context?: string | undefined;
|
|
1856
|
-
}>, "many">>;
|
|
1857
|
-
}, "strict", z.ZodTypeAny, {
|
|
1858
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
1859
|
-
scope: string;
|
|
1860
|
-
analyzer: string;
|
|
1861
|
-
reason?: string | undefined;
|
|
1862
|
-
analyzerVersion?: string | undefined;
|
|
1863
|
-
evidence?: {
|
|
1864
|
-
path: string;
|
|
1865
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1866
|
-
contentHash?: string | undefined;
|
|
1867
|
-
lineStart?: number | undefined;
|
|
1868
|
-
lineEnd?: number | undefined;
|
|
1869
|
-
context?: string | undefined;
|
|
1870
|
-
}[] | undefined;
|
|
1871
|
-
}, {
|
|
1872
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
1873
|
-
scope: string;
|
|
1874
|
-
analyzer: string;
|
|
1875
|
-
reason?: string | undefined;
|
|
1876
|
-
analyzerVersion?: string | undefined;
|
|
1877
|
-
evidence?: {
|
|
1878
|
-
path: string;
|
|
1879
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1880
|
-
contentHash?: string | undefined;
|
|
1881
|
-
lineStart?: number | undefined;
|
|
1882
|
-
lineEnd?: number | undefined;
|
|
1883
|
-
context?: string | undefined;
|
|
1884
|
-
}[] | undefined;
|
|
1885
|
-
}>, "many">;
|
|
1043
|
+
}, z.core.$strict>>>;
|
|
1044
|
+
}, z.core.$strict>>;
|
|
1886
1045
|
schemaVersion: z.ZodLiteral<1>;
|
|
1887
1046
|
contentHash: z.ZodString;
|
|
1888
1047
|
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
1889
1048
|
project: z.ZodObject<{
|
|
1890
1049
|
name: z.ZodString;
|
|
1891
1050
|
root: z.ZodOptional<z.ZodString>;
|
|
1892
|
-
},
|
|
1893
|
-
name: string;
|
|
1894
|
-
root?: string | undefined;
|
|
1895
|
-
}, {
|
|
1896
|
-
name: string;
|
|
1897
|
-
root?: string | undefined;
|
|
1898
|
-
}>;
|
|
1051
|
+
}, z.core.$strict>;
|
|
1899
1052
|
sourceRevision: z.ZodString;
|
|
1900
|
-
sourceRevisionKind: z.ZodEnum<
|
|
1053
|
+
sourceRevisionKind: z.ZodEnum<{
|
|
1054
|
+
git: "git";
|
|
1055
|
+
content: "content";
|
|
1056
|
+
}>;
|
|
1901
1057
|
configurationHash: z.ZodString;
|
|
1902
1058
|
pipelineVersion: z.ZodString;
|
|
1903
1059
|
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1904
1060
|
type: z.ZodLiteral<"discovery-snapshot">;
|
|
1905
|
-
},
|
|
1906
|
-
type: "discovery-snapshot";
|
|
1907
|
-
contentHash: string;
|
|
1908
|
-
schemaVersion: 1;
|
|
1909
|
-
project: {
|
|
1910
|
-
name: string;
|
|
1911
|
-
root?: string | undefined;
|
|
1912
|
-
};
|
|
1913
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
1914
|
-
entities: {
|
|
1915
|
-
id: string;
|
|
1916
|
-
name: string;
|
|
1917
|
-
kind: string;
|
|
1918
|
-
evidence: {
|
|
1919
|
-
path: string;
|
|
1920
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1921
|
-
contentHash?: string | undefined;
|
|
1922
|
-
lineStart?: number | undefined;
|
|
1923
|
-
lineEnd?: number | undefined;
|
|
1924
|
-
context?: string | undefined;
|
|
1925
|
-
}[];
|
|
1926
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1927
|
-
path?: string | undefined;
|
|
1928
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1929
|
-
aliases?: string[] | undefined;
|
|
1930
|
-
}[];
|
|
1931
|
-
relations: {
|
|
1932
|
-
id: string;
|
|
1933
|
-
kind: string;
|
|
1934
|
-
evidence: {
|
|
1935
|
-
path: string;
|
|
1936
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1937
|
-
contentHash?: string | undefined;
|
|
1938
|
-
lineStart?: number | undefined;
|
|
1939
|
-
lineEnd?: number | undefined;
|
|
1940
|
-
context?: string | undefined;
|
|
1941
|
-
}[];
|
|
1942
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1943
|
-
from: string;
|
|
1944
|
-
to: string;
|
|
1945
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1946
|
-
discriminator?: string | undefined;
|
|
1947
|
-
}[];
|
|
1948
|
-
coverage: {
|
|
1949
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
1950
|
-
scope: string;
|
|
1951
|
-
analyzer: string;
|
|
1952
|
-
reason?: string | undefined;
|
|
1953
|
-
analyzerVersion?: string | undefined;
|
|
1954
|
-
evidence?: {
|
|
1955
|
-
path: string;
|
|
1956
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1957
|
-
contentHash?: string | undefined;
|
|
1958
|
-
lineStart?: number | undefined;
|
|
1959
|
-
lineEnd?: number | undefined;
|
|
1960
|
-
context?: string | undefined;
|
|
1961
|
-
}[] | undefined;
|
|
1962
|
-
}[];
|
|
1963
|
-
sourceRevision: string;
|
|
1964
|
-
sourceRevisionKind: "git" | "content";
|
|
1965
|
-
configurationHash: string;
|
|
1966
|
-
pipelineVersion: string;
|
|
1967
|
-
analyzerVersions: Record<string, string>;
|
|
1968
|
-
}, {
|
|
1969
|
-
type: "discovery-snapshot";
|
|
1970
|
-
contentHash: string;
|
|
1971
|
-
schemaVersion: 1;
|
|
1972
|
-
project: {
|
|
1973
|
-
name: string;
|
|
1974
|
-
root?: string | undefined;
|
|
1975
|
-
};
|
|
1976
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
1977
|
-
entities: {
|
|
1978
|
-
id: string;
|
|
1979
|
-
name: string;
|
|
1980
|
-
kind: string;
|
|
1981
|
-
evidence: {
|
|
1982
|
-
path: string;
|
|
1983
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1984
|
-
contentHash?: string | undefined;
|
|
1985
|
-
lineStart?: number | undefined;
|
|
1986
|
-
lineEnd?: number | undefined;
|
|
1987
|
-
context?: string | undefined;
|
|
1988
|
-
}[];
|
|
1989
|
-
provenance: "observed" | "declared" | "proposed";
|
|
1990
|
-
path?: string | undefined;
|
|
1991
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1992
|
-
aliases?: string[] | undefined;
|
|
1993
|
-
}[];
|
|
1994
|
-
relations: {
|
|
1995
|
-
id: string;
|
|
1996
|
-
kind: string;
|
|
1997
|
-
evidence: {
|
|
1998
|
-
path: string;
|
|
1999
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2000
|
-
contentHash?: string | undefined;
|
|
2001
|
-
lineStart?: number | undefined;
|
|
2002
|
-
lineEnd?: number | undefined;
|
|
2003
|
-
context?: string | undefined;
|
|
2004
|
-
}[];
|
|
2005
|
-
provenance: "observed" | "declared" | "proposed";
|
|
2006
|
-
from: string;
|
|
2007
|
-
to: string;
|
|
2008
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2009
|
-
discriminator?: string | undefined;
|
|
2010
|
-
}[];
|
|
2011
|
-
coverage: {
|
|
2012
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
2013
|
-
scope: string;
|
|
2014
|
-
analyzer: string;
|
|
2015
|
-
reason?: string | undefined;
|
|
2016
|
-
analyzerVersion?: string | undefined;
|
|
2017
|
-
evidence?: {
|
|
2018
|
-
path: string;
|
|
2019
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2020
|
-
contentHash?: string | undefined;
|
|
2021
|
-
lineStart?: number | undefined;
|
|
2022
|
-
lineEnd?: number | undefined;
|
|
2023
|
-
context?: string | undefined;
|
|
2024
|
-
}[] | undefined;
|
|
2025
|
-
}[];
|
|
2026
|
-
sourceRevision: string;
|
|
2027
|
-
sourceRevisionKind: "git" | "content";
|
|
2028
|
-
configurationHash: string;
|
|
2029
|
-
pipelineVersion: string;
|
|
2030
|
-
analyzerVersions: Record<string, string>;
|
|
2031
|
-
}>, {
|
|
2032
|
-
type: "discovery-snapshot";
|
|
2033
|
-
contentHash: string;
|
|
2034
|
-
schemaVersion: 1;
|
|
2035
|
-
project: {
|
|
2036
|
-
name: string;
|
|
2037
|
-
root?: string | undefined;
|
|
2038
|
-
};
|
|
2039
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2040
|
-
entities: {
|
|
2041
|
-
id: string;
|
|
2042
|
-
name: string;
|
|
2043
|
-
kind: string;
|
|
2044
|
-
evidence: {
|
|
2045
|
-
path: string;
|
|
2046
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2047
|
-
contentHash?: string | undefined;
|
|
2048
|
-
lineStart?: number | undefined;
|
|
2049
|
-
lineEnd?: number | undefined;
|
|
2050
|
-
context?: string | undefined;
|
|
2051
|
-
}[];
|
|
2052
|
-
provenance: "observed" | "declared" | "proposed";
|
|
2053
|
-
path?: string | undefined;
|
|
2054
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2055
|
-
aliases?: string[] | undefined;
|
|
2056
|
-
}[];
|
|
2057
|
-
relations: {
|
|
2058
|
-
id: string;
|
|
2059
|
-
kind: string;
|
|
2060
|
-
evidence: {
|
|
2061
|
-
path: string;
|
|
2062
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2063
|
-
contentHash?: string | undefined;
|
|
2064
|
-
lineStart?: number | undefined;
|
|
2065
|
-
lineEnd?: number | undefined;
|
|
2066
|
-
context?: string | undefined;
|
|
2067
|
-
}[];
|
|
2068
|
-
provenance: "observed" | "declared" | "proposed";
|
|
2069
|
-
from: string;
|
|
2070
|
-
to: string;
|
|
2071
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2072
|
-
discriminator?: string | undefined;
|
|
2073
|
-
}[];
|
|
2074
|
-
coverage: {
|
|
2075
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
2076
|
-
scope: string;
|
|
2077
|
-
analyzer: string;
|
|
2078
|
-
reason?: string | undefined;
|
|
2079
|
-
analyzerVersion?: string | undefined;
|
|
2080
|
-
evidence?: {
|
|
2081
|
-
path: string;
|
|
2082
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2083
|
-
contentHash?: string | undefined;
|
|
2084
|
-
lineStart?: number | undefined;
|
|
2085
|
-
lineEnd?: number | undefined;
|
|
2086
|
-
context?: string | undefined;
|
|
2087
|
-
}[] | undefined;
|
|
2088
|
-
}[];
|
|
2089
|
-
sourceRevision: string;
|
|
2090
|
-
sourceRevisionKind: "git" | "content";
|
|
2091
|
-
configurationHash: string;
|
|
2092
|
-
pipelineVersion: string;
|
|
2093
|
-
analyzerVersions: Record<string, string>;
|
|
2094
|
-
}, {
|
|
2095
|
-
type: "discovery-snapshot";
|
|
2096
|
-
contentHash: string;
|
|
2097
|
-
schemaVersion: 1;
|
|
2098
|
-
project: {
|
|
2099
|
-
name: string;
|
|
2100
|
-
root?: string | undefined;
|
|
2101
|
-
};
|
|
2102
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2103
|
-
entities: {
|
|
2104
|
-
id: string;
|
|
2105
|
-
name: string;
|
|
2106
|
-
kind: string;
|
|
2107
|
-
evidence: {
|
|
2108
|
-
path: string;
|
|
2109
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2110
|
-
contentHash?: string | undefined;
|
|
2111
|
-
lineStart?: number | undefined;
|
|
2112
|
-
lineEnd?: number | undefined;
|
|
2113
|
-
context?: string | undefined;
|
|
2114
|
-
}[];
|
|
2115
|
-
provenance: "observed" | "declared" | "proposed";
|
|
2116
|
-
path?: string | undefined;
|
|
2117
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2118
|
-
aliases?: string[] | undefined;
|
|
2119
|
-
}[];
|
|
2120
|
-
relations: {
|
|
2121
|
-
id: string;
|
|
2122
|
-
kind: string;
|
|
2123
|
-
evidence: {
|
|
2124
|
-
path: string;
|
|
2125
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2126
|
-
contentHash?: string | undefined;
|
|
2127
|
-
lineStart?: number | undefined;
|
|
2128
|
-
lineEnd?: number | undefined;
|
|
2129
|
-
context?: string | undefined;
|
|
2130
|
-
}[];
|
|
2131
|
-
provenance: "observed" | "declared" | "proposed";
|
|
2132
|
-
from: string;
|
|
2133
|
-
to: string;
|
|
2134
|
-
metadata?: Record<string, unknown> | undefined;
|
|
2135
|
-
discriminator?: string | undefined;
|
|
2136
|
-
}[];
|
|
2137
|
-
coverage: {
|
|
2138
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
2139
|
-
scope: string;
|
|
2140
|
-
analyzer: string;
|
|
2141
|
-
reason?: string | undefined;
|
|
2142
|
-
analyzerVersion?: string | undefined;
|
|
2143
|
-
evidence?: {
|
|
2144
|
-
path: string;
|
|
2145
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2146
|
-
contentHash?: string | undefined;
|
|
2147
|
-
lineStart?: number | undefined;
|
|
2148
|
-
lineEnd?: number | undefined;
|
|
2149
|
-
context?: string | undefined;
|
|
2150
|
-
}[] | undefined;
|
|
2151
|
-
}[];
|
|
2152
|
-
sourceRevision: string;
|
|
2153
|
-
sourceRevisionKind: "git" | "content";
|
|
2154
|
-
configurationHash: string;
|
|
2155
|
-
pipelineVersion: string;
|
|
2156
|
-
analyzerVersions: Record<string, string>;
|
|
2157
|
-
}>;
|
|
1061
|
+
}, z.core.$strict>;
|
|
2158
1062
|
type DiscoverySnapshotV1 = z.infer<typeof DiscoverySnapshotV1Schema>;
|
|
2159
1063
|
declare const DiagnosticSchema: z.ZodObject<{
|
|
2160
1064
|
id: z.ZodString;
|
|
2161
1065
|
code: z.ZodString;
|
|
2162
|
-
status: z.ZodEnum<
|
|
2163
|
-
|
|
1066
|
+
status: z.ZodEnum<{
|
|
1067
|
+
confirmed: "confirmed";
|
|
1068
|
+
undocumented: "undocumented";
|
|
1069
|
+
"stale-or-unverified": "stale-or-unverified";
|
|
1070
|
+
conflict: "conflict";
|
|
1071
|
+
unresolved: "unresolved";
|
|
1072
|
+
"not-analyzed": "not-analyzed";
|
|
1073
|
+
}>;
|
|
1074
|
+
severity: z.ZodEnum<{
|
|
1075
|
+
error: "error";
|
|
1076
|
+
off: "off";
|
|
1077
|
+
info: "info";
|
|
1078
|
+
warn: "warn";
|
|
1079
|
+
}>;
|
|
2164
1080
|
message: z.ZodString;
|
|
2165
|
-
evidence: z.ZodArray<z.
|
|
2166
|
-
source: z.ZodEnum<
|
|
1081
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1082
|
+
source: z.ZodEnum<{
|
|
1083
|
+
agent: "agent";
|
|
1084
|
+
code: "code";
|
|
1085
|
+
configuration: "configuration";
|
|
1086
|
+
documentation: "documentation";
|
|
1087
|
+
derived: "derived";
|
|
1088
|
+
}>;
|
|
2167
1089
|
path: z.ZodString;
|
|
2168
1090
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2169
1091
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2170
1092
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
2171
1093
|
context: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
},
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
contentHash?: string | undefined;
|
|
2176
|
-
lineStart?: number | undefined;
|
|
2177
|
-
lineEnd?: number | undefined;
|
|
2178
|
-
context?: string | undefined;
|
|
2179
|
-
}, {
|
|
2180
|
-
path: string;
|
|
2181
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2182
|
-
contentHash?: string | undefined;
|
|
2183
|
-
lineStart?: number | undefined;
|
|
2184
|
-
lineEnd?: number | undefined;
|
|
2185
|
-
context?: string | undefined;
|
|
2186
|
-
}>, {
|
|
2187
|
-
path: string;
|
|
2188
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2189
|
-
contentHash?: string | undefined;
|
|
2190
|
-
lineStart?: number | undefined;
|
|
2191
|
-
lineEnd?: number | undefined;
|
|
2192
|
-
context?: string | undefined;
|
|
2193
|
-
}, {
|
|
2194
|
-
path: string;
|
|
2195
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2196
|
-
contentHash?: string | undefined;
|
|
2197
|
-
lineStart?: number | undefined;
|
|
2198
|
-
lineEnd?: number | undefined;
|
|
2199
|
-
context?: string | undefined;
|
|
2200
|
-
}>, "many">;
|
|
2201
|
-
entityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2202
|
-
relationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1094
|
+
}, z.core.$strict>>;
|
|
1095
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1096
|
+
relationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2203
1097
|
remediation: z.ZodOptional<z.ZodString>;
|
|
2204
|
-
},
|
|
2205
|
-
code: string;
|
|
2206
|
-
message: string;
|
|
2207
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2208
|
-
id: string;
|
|
2209
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2210
|
-
evidence: {
|
|
2211
|
-
path: string;
|
|
2212
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2213
|
-
contentHash?: string | undefined;
|
|
2214
|
-
lineStart?: number | undefined;
|
|
2215
|
-
lineEnd?: number | undefined;
|
|
2216
|
-
context?: string | undefined;
|
|
2217
|
-
}[];
|
|
2218
|
-
entityIds?: string[] | undefined;
|
|
2219
|
-
relationIds?: string[] | undefined;
|
|
2220
|
-
remediation?: string | undefined;
|
|
2221
|
-
}, {
|
|
2222
|
-
code: string;
|
|
2223
|
-
message: string;
|
|
2224
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2225
|
-
id: string;
|
|
2226
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2227
|
-
evidence: {
|
|
2228
|
-
path: string;
|
|
2229
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2230
|
-
contentHash?: string | undefined;
|
|
2231
|
-
lineStart?: number | undefined;
|
|
2232
|
-
lineEnd?: number | undefined;
|
|
2233
|
-
context?: string | undefined;
|
|
2234
|
-
}[];
|
|
2235
|
-
entityIds?: string[] | undefined;
|
|
2236
|
-
relationIds?: string[] | undefined;
|
|
2237
|
-
remediation?: string | undefined;
|
|
2238
|
-
}>;
|
|
1098
|
+
}, z.core.$strict>;
|
|
2239
1099
|
type KnowledgeDiagnostic = z.infer<typeof DiagnosticSchema>;
|
|
2240
1100
|
declare const ReconciliationReportV1Schema: z.ZodObject<{
|
|
2241
1101
|
snapshotHash: z.ZodString;
|
|
2242
1102
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2243
1103
|
id: z.ZodString;
|
|
2244
1104
|
code: z.ZodString;
|
|
2245
|
-
status: z.ZodEnum<
|
|
2246
|
-
|
|
1105
|
+
status: z.ZodEnum<{
|
|
1106
|
+
confirmed: "confirmed";
|
|
1107
|
+
undocumented: "undocumented";
|
|
1108
|
+
"stale-or-unverified": "stale-or-unverified";
|
|
1109
|
+
conflict: "conflict";
|
|
1110
|
+
unresolved: "unresolved";
|
|
1111
|
+
"not-analyzed": "not-analyzed";
|
|
1112
|
+
}>;
|
|
1113
|
+
severity: z.ZodEnum<{
|
|
1114
|
+
error: "error";
|
|
1115
|
+
off: "off";
|
|
1116
|
+
info: "info";
|
|
1117
|
+
warn: "warn";
|
|
1118
|
+
}>;
|
|
2247
1119
|
message: z.ZodString;
|
|
2248
|
-
evidence: z.ZodArray<z.
|
|
2249
|
-
source: z.ZodEnum<
|
|
1120
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1121
|
+
source: z.ZodEnum<{
|
|
1122
|
+
agent: "agent";
|
|
1123
|
+
code: "code";
|
|
1124
|
+
configuration: "configuration";
|
|
1125
|
+
documentation: "documentation";
|
|
1126
|
+
derived: "derived";
|
|
1127
|
+
}>;
|
|
2250
1128
|
path: z.ZodString;
|
|
2251
1129
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2252
1130
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2253
1131
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
2254
1132
|
context: z.ZodOptional<z.ZodString>;
|
|
2255
|
-
},
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
contentHash?: string | undefined;
|
|
2259
|
-
lineStart?: number | undefined;
|
|
2260
|
-
lineEnd?: number | undefined;
|
|
2261
|
-
context?: string | undefined;
|
|
2262
|
-
}, {
|
|
2263
|
-
path: string;
|
|
2264
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2265
|
-
contentHash?: string | undefined;
|
|
2266
|
-
lineStart?: number | undefined;
|
|
2267
|
-
lineEnd?: number | undefined;
|
|
2268
|
-
context?: string | undefined;
|
|
2269
|
-
}>, {
|
|
2270
|
-
path: string;
|
|
2271
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2272
|
-
contentHash?: string | undefined;
|
|
2273
|
-
lineStart?: number | undefined;
|
|
2274
|
-
lineEnd?: number | undefined;
|
|
2275
|
-
context?: string | undefined;
|
|
2276
|
-
}, {
|
|
2277
|
-
path: string;
|
|
2278
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2279
|
-
contentHash?: string | undefined;
|
|
2280
|
-
lineStart?: number | undefined;
|
|
2281
|
-
lineEnd?: number | undefined;
|
|
2282
|
-
context?: string | undefined;
|
|
2283
|
-
}>, "many">;
|
|
2284
|
-
entityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2285
|
-
relationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1133
|
+
}, z.core.$strict>>;
|
|
1134
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1135
|
+
relationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2286
1136
|
remediation: z.ZodOptional<z.ZodString>;
|
|
2287
|
-
},
|
|
2288
|
-
code: string;
|
|
2289
|
-
message: string;
|
|
2290
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2291
|
-
id: string;
|
|
2292
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2293
|
-
evidence: {
|
|
2294
|
-
path: string;
|
|
2295
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2296
|
-
contentHash?: string | undefined;
|
|
2297
|
-
lineStart?: number | undefined;
|
|
2298
|
-
lineEnd?: number | undefined;
|
|
2299
|
-
context?: string | undefined;
|
|
2300
|
-
}[];
|
|
2301
|
-
entityIds?: string[] | undefined;
|
|
2302
|
-
relationIds?: string[] | undefined;
|
|
2303
|
-
remediation?: string | undefined;
|
|
2304
|
-
}, {
|
|
2305
|
-
code: string;
|
|
2306
|
-
message: string;
|
|
2307
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2308
|
-
id: string;
|
|
2309
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2310
|
-
evidence: {
|
|
2311
|
-
path: string;
|
|
2312
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2313
|
-
contentHash?: string | undefined;
|
|
2314
|
-
lineStart?: number | undefined;
|
|
2315
|
-
lineEnd?: number | undefined;
|
|
2316
|
-
context?: string | undefined;
|
|
2317
|
-
}[];
|
|
2318
|
-
entityIds?: string[] | undefined;
|
|
2319
|
-
relationIds?: string[] | undefined;
|
|
2320
|
-
remediation?: string | undefined;
|
|
2321
|
-
}>, "many">;
|
|
1137
|
+
}, z.core.$strict>>;
|
|
2322
1138
|
summary: z.ZodObject<{
|
|
2323
1139
|
entityCount: z.ZodNumber;
|
|
2324
1140
|
relationCount: z.ZodNumber;
|
|
2325
1141
|
diagnosticCount: z.ZodNumber;
|
|
2326
|
-
scope: z.ZodOptional<z.ZodEnum<
|
|
2327
|
-
|
|
1142
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
1143
|
+
file: "file";
|
|
1144
|
+
module: "module";
|
|
1145
|
+
package: "package";
|
|
1146
|
+
}>>;
|
|
1147
|
+
requiredRelationKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1148
|
+
requiredRelationTargets: z.ZodOptional<z.ZodEnum<{
|
|
1149
|
+
all: "all";
|
|
1150
|
+
internal: "internal";
|
|
1151
|
+
}>>;
|
|
2328
1152
|
diagnosticsByCode: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2329
1153
|
diagnosticsByStatus: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2330
1154
|
documentation: z.ZodOptional<z.ZodObject<{
|
|
2331
1155
|
documentCount: z.ZodNumber;
|
|
2332
1156
|
documentedDocumentCount: z.ZodNumber;
|
|
1157
|
+
documentClassificationCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1158
|
+
documentedDocumentClassificationCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
2333
1159
|
packageCount: z.ZodNumber;
|
|
2334
1160
|
packageStatus: z.ZodObject<{
|
|
2335
1161
|
fresh: z.ZodNumber;
|
|
2336
1162
|
stale: z.ZodNumber;
|
|
2337
1163
|
missing: z.ZodNumber;
|
|
2338
1164
|
unverified: z.ZodNumber;
|
|
2339
|
-
},
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
stale: number;
|
|
2343
|
-
unverified: number;
|
|
2344
|
-
}, {
|
|
2345
|
-
missing: number;
|
|
2346
|
-
fresh: number;
|
|
2347
|
-
stale: number;
|
|
2348
|
-
unverified: number;
|
|
2349
|
-
}>;
|
|
2350
|
-
}, "strict", z.ZodTypeAny, {
|
|
2351
|
-
documentCount: number;
|
|
2352
|
-
documentedDocumentCount: number;
|
|
2353
|
-
packageCount: number;
|
|
2354
|
-
packageStatus: {
|
|
2355
|
-
missing: number;
|
|
2356
|
-
fresh: number;
|
|
2357
|
-
stale: number;
|
|
2358
|
-
unverified: number;
|
|
2359
|
-
};
|
|
2360
|
-
}, {
|
|
2361
|
-
documentCount: number;
|
|
2362
|
-
documentedDocumentCount: number;
|
|
2363
|
-
packageCount: number;
|
|
2364
|
-
packageStatus: {
|
|
2365
|
-
missing: number;
|
|
2366
|
-
fresh: number;
|
|
2367
|
-
stale: number;
|
|
2368
|
-
unverified: number;
|
|
2369
|
-
};
|
|
2370
|
-
}>>;
|
|
2371
|
-
}, "strict", z.ZodTypeAny, {
|
|
2372
|
-
entityCount: number;
|
|
2373
|
-
relationCount: number;
|
|
2374
|
-
diagnosticCount: number;
|
|
2375
|
-
scope?: "file" | "module" | "package" | undefined;
|
|
2376
|
-
requiredRelationKinds?: string[] | undefined;
|
|
2377
|
-
documentation?: {
|
|
2378
|
-
documentCount: number;
|
|
2379
|
-
documentedDocumentCount: number;
|
|
2380
|
-
packageCount: number;
|
|
2381
|
-
packageStatus: {
|
|
2382
|
-
missing: number;
|
|
2383
|
-
fresh: number;
|
|
2384
|
-
stale: number;
|
|
2385
|
-
unverified: number;
|
|
2386
|
-
};
|
|
2387
|
-
} | undefined;
|
|
2388
|
-
diagnosticsByCode?: Record<string, number> | undefined;
|
|
2389
|
-
diagnosticsByStatus?: Record<string, number> | undefined;
|
|
2390
|
-
}, {
|
|
2391
|
-
entityCount: number;
|
|
2392
|
-
relationCount: number;
|
|
2393
|
-
diagnosticCount: number;
|
|
2394
|
-
scope?: "file" | "module" | "package" | undefined;
|
|
2395
|
-
requiredRelationKinds?: string[] | undefined;
|
|
2396
|
-
documentation?: {
|
|
2397
|
-
documentCount: number;
|
|
2398
|
-
documentedDocumentCount: number;
|
|
2399
|
-
packageCount: number;
|
|
2400
|
-
packageStatus: {
|
|
2401
|
-
missing: number;
|
|
2402
|
-
fresh: number;
|
|
2403
|
-
stale: number;
|
|
2404
|
-
unverified: number;
|
|
2405
|
-
};
|
|
2406
|
-
} | undefined;
|
|
2407
|
-
diagnosticsByCode?: Record<string, number> | undefined;
|
|
2408
|
-
diagnosticsByStatus?: Record<string, number> | undefined;
|
|
2409
|
-
}>;
|
|
1165
|
+
}, z.core.$strict>;
|
|
1166
|
+
}, z.core.$strict>>;
|
|
1167
|
+
}, z.core.$strict>;
|
|
2410
1168
|
schemaVersion: z.ZodLiteral<1>;
|
|
2411
1169
|
contentHash: z.ZodString;
|
|
2412
1170
|
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2413
1171
|
project: z.ZodObject<{
|
|
2414
1172
|
name: z.ZodString;
|
|
2415
1173
|
root: z.ZodOptional<z.ZodString>;
|
|
2416
|
-
},
|
|
2417
|
-
name: string;
|
|
2418
|
-
root?: string | undefined;
|
|
2419
|
-
}, {
|
|
2420
|
-
name: string;
|
|
2421
|
-
root?: string | undefined;
|
|
2422
|
-
}>;
|
|
1174
|
+
}, z.core.$strict>;
|
|
2423
1175
|
sourceRevision: z.ZodString;
|
|
2424
|
-
sourceRevisionKind: z.ZodEnum<
|
|
1176
|
+
sourceRevisionKind: z.ZodEnum<{
|
|
1177
|
+
git: "git";
|
|
1178
|
+
content: "content";
|
|
1179
|
+
}>;
|
|
2425
1180
|
configurationHash: z.ZodString;
|
|
2426
1181
|
pipelineVersion: z.ZodString;
|
|
2427
1182
|
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2428
1183
|
type: z.ZodLiteral<"reconciliation-report">;
|
|
2429
|
-
},
|
|
2430
|
-
type: "reconciliation-report";
|
|
2431
|
-
contentHash: string;
|
|
2432
|
-
schemaVersion: 1;
|
|
2433
|
-
project: {
|
|
2434
|
-
name: string;
|
|
2435
|
-
root?: string | undefined;
|
|
2436
|
-
};
|
|
2437
|
-
summary: {
|
|
2438
|
-
entityCount: number;
|
|
2439
|
-
relationCount: number;
|
|
2440
|
-
diagnosticCount: number;
|
|
2441
|
-
scope?: "file" | "module" | "package" | undefined;
|
|
2442
|
-
requiredRelationKinds?: string[] | undefined;
|
|
2443
|
-
documentation?: {
|
|
2444
|
-
documentCount: number;
|
|
2445
|
-
documentedDocumentCount: number;
|
|
2446
|
-
packageCount: number;
|
|
2447
|
-
packageStatus: {
|
|
2448
|
-
missing: number;
|
|
2449
|
-
fresh: number;
|
|
2450
|
-
stale: number;
|
|
2451
|
-
unverified: number;
|
|
2452
|
-
};
|
|
2453
|
-
} | undefined;
|
|
2454
|
-
diagnosticsByCode?: Record<string, number> | undefined;
|
|
2455
|
-
diagnosticsByStatus?: Record<string, number> | undefined;
|
|
2456
|
-
};
|
|
2457
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2458
|
-
sourceRevision: string;
|
|
2459
|
-
sourceRevisionKind: "git" | "content";
|
|
2460
|
-
configurationHash: string;
|
|
2461
|
-
pipelineVersion: string;
|
|
2462
|
-
analyzerVersions: Record<string, string>;
|
|
2463
|
-
snapshotHash: string;
|
|
2464
|
-
diagnostics: {
|
|
2465
|
-
code: string;
|
|
2466
|
-
message: string;
|
|
2467
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2468
|
-
id: string;
|
|
2469
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2470
|
-
evidence: {
|
|
2471
|
-
path: string;
|
|
2472
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2473
|
-
contentHash?: string | undefined;
|
|
2474
|
-
lineStart?: number | undefined;
|
|
2475
|
-
lineEnd?: number | undefined;
|
|
2476
|
-
context?: string | undefined;
|
|
2477
|
-
}[];
|
|
2478
|
-
entityIds?: string[] | undefined;
|
|
2479
|
-
relationIds?: string[] | undefined;
|
|
2480
|
-
remediation?: string | undefined;
|
|
2481
|
-
}[];
|
|
2482
|
-
}, {
|
|
2483
|
-
type: "reconciliation-report";
|
|
2484
|
-
contentHash: string;
|
|
2485
|
-
schemaVersion: 1;
|
|
2486
|
-
project: {
|
|
2487
|
-
name: string;
|
|
2488
|
-
root?: string | undefined;
|
|
2489
|
-
};
|
|
2490
|
-
summary: {
|
|
2491
|
-
entityCount: number;
|
|
2492
|
-
relationCount: number;
|
|
2493
|
-
diagnosticCount: number;
|
|
2494
|
-
scope?: "file" | "module" | "package" | undefined;
|
|
2495
|
-
requiredRelationKinds?: string[] | undefined;
|
|
2496
|
-
documentation?: {
|
|
2497
|
-
documentCount: number;
|
|
2498
|
-
documentedDocumentCount: number;
|
|
2499
|
-
packageCount: number;
|
|
2500
|
-
packageStatus: {
|
|
2501
|
-
missing: number;
|
|
2502
|
-
fresh: number;
|
|
2503
|
-
stale: number;
|
|
2504
|
-
unverified: number;
|
|
2505
|
-
};
|
|
2506
|
-
} | undefined;
|
|
2507
|
-
diagnosticsByCode?: Record<string, number> | undefined;
|
|
2508
|
-
diagnosticsByStatus?: Record<string, number> | undefined;
|
|
2509
|
-
};
|
|
2510
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2511
|
-
sourceRevision: string;
|
|
2512
|
-
sourceRevisionKind: "git" | "content";
|
|
2513
|
-
configurationHash: string;
|
|
2514
|
-
pipelineVersion: string;
|
|
2515
|
-
analyzerVersions: Record<string, string>;
|
|
2516
|
-
snapshotHash: string;
|
|
2517
|
-
diagnostics: {
|
|
2518
|
-
code: string;
|
|
2519
|
-
message: string;
|
|
2520
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2521
|
-
id: string;
|
|
2522
|
-
severity: "off" | "info" | "warn" | "error";
|
|
2523
|
-
evidence: {
|
|
2524
|
-
path: string;
|
|
2525
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2526
|
-
contentHash?: string | undefined;
|
|
2527
|
-
lineStart?: number | undefined;
|
|
2528
|
-
lineEnd?: number | undefined;
|
|
2529
|
-
context?: string | undefined;
|
|
2530
|
-
}[];
|
|
2531
|
-
entityIds?: string[] | undefined;
|
|
2532
|
-
relationIds?: string[] | undefined;
|
|
2533
|
-
remediation?: string | undefined;
|
|
2534
|
-
}[];
|
|
2535
|
-
}>;
|
|
1184
|
+
}, z.core.$strict>;
|
|
2536
1185
|
type ReconciliationReportV1 = z.infer<typeof ReconciliationReportV1Schema>;
|
|
2537
|
-
declare const WorkflowStateSchema: z.ZodEnum<
|
|
1186
|
+
declare const WorkflowStateSchema: z.ZodEnum<{
|
|
1187
|
+
proposed: "proposed";
|
|
1188
|
+
stale: "stale";
|
|
1189
|
+
created: "created";
|
|
1190
|
+
discovering: "discovering";
|
|
1191
|
+
analyzed: "analyzed";
|
|
1192
|
+
compared: "compared";
|
|
1193
|
+
"awaiting-agent": "awaiting-agent";
|
|
1194
|
+
"awaiting-approval": "awaiting-approval";
|
|
1195
|
+
validating: "validating";
|
|
1196
|
+
delivered: "delivered";
|
|
1197
|
+
failed: "failed";
|
|
1198
|
+
cancelled: "cancelled";
|
|
1199
|
+
superseded: "superseded";
|
|
1200
|
+
}>;
|
|
2538
1201
|
type WorkflowState = z.infer<typeof WorkflowStateSchema>;
|
|
2539
1202
|
declare const WorkflowStepSchema: z.ZodObject<{
|
|
2540
1203
|
name: z.ZodString;
|
|
2541
|
-
status: z.ZodEnum<
|
|
1204
|
+
status: z.ZodEnum<{
|
|
1205
|
+
failed: "failed";
|
|
1206
|
+
pending: "pending";
|
|
1207
|
+
running: "running";
|
|
1208
|
+
completed: "completed";
|
|
1209
|
+
skipped: "skipped";
|
|
1210
|
+
}>;
|
|
2542
1211
|
inputHash: z.ZodString;
|
|
2543
1212
|
outputHash: z.ZodOptional<z.ZodString>;
|
|
2544
|
-
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2545
|
-
},
|
|
2546
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2547
|
-
name: string;
|
|
2548
|
-
inputHash: string;
|
|
2549
|
-
outputHash?: string | undefined;
|
|
2550
|
-
artifactRefs?: string[] | undefined;
|
|
2551
|
-
}, {
|
|
2552
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2553
|
-
name: string;
|
|
2554
|
-
inputHash: string;
|
|
2555
|
-
outputHash?: string | undefined;
|
|
2556
|
-
artifactRefs?: string[] | undefined;
|
|
2557
|
-
}>;
|
|
1213
|
+
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1214
|
+
}, z.core.$strict>;
|
|
2558
1215
|
declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
2559
|
-
from: z.ZodNullable<z.ZodEnum<
|
|
2560
|
-
|
|
1216
|
+
from: z.ZodNullable<z.ZodEnum<{
|
|
1217
|
+
proposed: "proposed";
|
|
1218
|
+
stale: "stale";
|
|
1219
|
+
created: "created";
|
|
1220
|
+
discovering: "discovering";
|
|
1221
|
+
analyzed: "analyzed";
|
|
1222
|
+
compared: "compared";
|
|
1223
|
+
"awaiting-agent": "awaiting-agent";
|
|
1224
|
+
"awaiting-approval": "awaiting-approval";
|
|
1225
|
+
validating: "validating";
|
|
1226
|
+
delivered: "delivered";
|
|
1227
|
+
failed: "failed";
|
|
1228
|
+
cancelled: "cancelled";
|
|
1229
|
+
superseded: "superseded";
|
|
1230
|
+
}>>;
|
|
1231
|
+
to: z.ZodEnum<{
|
|
1232
|
+
proposed: "proposed";
|
|
1233
|
+
stale: "stale";
|
|
1234
|
+
created: "created";
|
|
1235
|
+
discovering: "discovering";
|
|
1236
|
+
analyzed: "analyzed";
|
|
1237
|
+
compared: "compared";
|
|
1238
|
+
"awaiting-agent": "awaiting-agent";
|
|
1239
|
+
"awaiting-approval": "awaiting-approval";
|
|
1240
|
+
validating: "validating";
|
|
1241
|
+
delivered: "delivered";
|
|
1242
|
+
failed: "failed";
|
|
1243
|
+
cancelled: "cancelled";
|
|
1244
|
+
superseded: "superseded";
|
|
1245
|
+
}>;
|
|
2561
1246
|
at: z.ZodString;
|
|
2562
1247
|
reason: z.ZodOptional<z.ZodString>;
|
|
2563
|
-
},
|
|
2564
|
-
at: string;
|
|
2565
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2566
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2567
|
-
reason?: string | undefined;
|
|
2568
|
-
}, {
|
|
2569
|
-
at: string;
|
|
2570
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2571
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2572
|
-
reason?: string | undefined;
|
|
2573
|
-
}>;
|
|
1248
|
+
}, z.core.$strict>;
|
|
2574
1249
|
declare const WorkflowRunV1Schema: z.ZodObject<{
|
|
2575
1250
|
runId: z.ZodString;
|
|
2576
|
-
state: z.ZodEnum<
|
|
1251
|
+
state: z.ZodEnum<{
|
|
1252
|
+
proposed: "proposed";
|
|
1253
|
+
stale: "stale";
|
|
1254
|
+
created: "created";
|
|
1255
|
+
discovering: "discovering";
|
|
1256
|
+
analyzed: "analyzed";
|
|
1257
|
+
compared: "compared";
|
|
1258
|
+
"awaiting-agent": "awaiting-agent";
|
|
1259
|
+
"awaiting-approval": "awaiting-approval";
|
|
1260
|
+
validating: "validating";
|
|
1261
|
+
delivered: "delivered";
|
|
1262
|
+
failed: "failed";
|
|
1263
|
+
cancelled: "cancelled";
|
|
1264
|
+
superseded: "superseded";
|
|
1265
|
+
}>;
|
|
2577
1266
|
steps: z.ZodArray<z.ZodObject<{
|
|
2578
1267
|
name: z.ZodString;
|
|
2579
|
-
status: z.ZodEnum<
|
|
1268
|
+
status: z.ZodEnum<{
|
|
1269
|
+
failed: "failed";
|
|
1270
|
+
pending: "pending";
|
|
1271
|
+
running: "running";
|
|
1272
|
+
completed: "completed";
|
|
1273
|
+
skipped: "skipped";
|
|
1274
|
+
}>;
|
|
2580
1275
|
inputHash: z.ZodString;
|
|
2581
1276
|
outputHash: z.ZodOptional<z.ZodString>;
|
|
2582
|
-
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2583
|
-
},
|
|
2584
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2585
|
-
name: string;
|
|
2586
|
-
inputHash: string;
|
|
2587
|
-
outputHash?: string | undefined;
|
|
2588
|
-
artifactRefs?: string[] | undefined;
|
|
2589
|
-
}, {
|
|
2590
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2591
|
-
name: string;
|
|
2592
|
-
inputHash: string;
|
|
2593
|
-
outputHash?: string | undefined;
|
|
2594
|
-
artifactRefs?: string[] | undefined;
|
|
2595
|
-
}>, "many">;
|
|
1277
|
+
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1278
|
+
}, z.core.$strict>>;
|
|
2596
1279
|
transitions: z.ZodArray<z.ZodObject<{
|
|
2597
|
-
from: z.ZodNullable<z.ZodEnum<
|
|
2598
|
-
|
|
1280
|
+
from: z.ZodNullable<z.ZodEnum<{
|
|
1281
|
+
proposed: "proposed";
|
|
1282
|
+
stale: "stale";
|
|
1283
|
+
created: "created";
|
|
1284
|
+
discovering: "discovering";
|
|
1285
|
+
analyzed: "analyzed";
|
|
1286
|
+
compared: "compared";
|
|
1287
|
+
"awaiting-agent": "awaiting-agent";
|
|
1288
|
+
"awaiting-approval": "awaiting-approval";
|
|
1289
|
+
validating: "validating";
|
|
1290
|
+
delivered: "delivered";
|
|
1291
|
+
failed: "failed";
|
|
1292
|
+
cancelled: "cancelled";
|
|
1293
|
+
superseded: "superseded";
|
|
1294
|
+
}>>;
|
|
1295
|
+
to: z.ZodEnum<{
|
|
1296
|
+
proposed: "proposed";
|
|
1297
|
+
stale: "stale";
|
|
1298
|
+
created: "created";
|
|
1299
|
+
discovering: "discovering";
|
|
1300
|
+
analyzed: "analyzed";
|
|
1301
|
+
compared: "compared";
|
|
1302
|
+
"awaiting-agent": "awaiting-agent";
|
|
1303
|
+
"awaiting-approval": "awaiting-approval";
|
|
1304
|
+
validating: "validating";
|
|
1305
|
+
delivered: "delivered";
|
|
1306
|
+
failed: "failed";
|
|
1307
|
+
cancelled: "cancelled";
|
|
1308
|
+
superseded: "superseded";
|
|
1309
|
+
}>;
|
|
2599
1310
|
at: z.ZodString;
|
|
2600
1311
|
reason: z.ZodOptional<z.ZodString>;
|
|
2601
|
-
},
|
|
2602
|
-
|
|
2603
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2604
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2605
|
-
reason?: string | undefined;
|
|
2606
|
-
}, {
|
|
2607
|
-
at: string;
|
|
2608
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2609
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2610
|
-
reason?: string | undefined;
|
|
2611
|
-
}>, "many">;
|
|
2612
|
-
artifactRefs: z.ZodArray<z.ZodString, "many">;
|
|
1312
|
+
}, z.core.$strict>>;
|
|
1313
|
+
artifactRefs: z.ZodArray<z.ZodString>;
|
|
2613
1314
|
schemaVersion: z.ZodLiteral<1>;
|
|
2614
1315
|
contentHash: z.ZodString;
|
|
2615
1316
|
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2616
1317
|
project: z.ZodObject<{
|
|
2617
1318
|
name: z.ZodString;
|
|
2618
1319
|
root: z.ZodOptional<z.ZodString>;
|
|
2619
|
-
},
|
|
2620
|
-
name: string;
|
|
2621
|
-
root?: string | undefined;
|
|
2622
|
-
}, {
|
|
2623
|
-
name: string;
|
|
2624
|
-
root?: string | undefined;
|
|
2625
|
-
}>;
|
|
1320
|
+
}, z.core.$strict>;
|
|
2626
1321
|
sourceRevision: z.ZodString;
|
|
2627
|
-
sourceRevisionKind: z.ZodEnum<
|
|
1322
|
+
sourceRevisionKind: z.ZodEnum<{
|
|
1323
|
+
git: "git";
|
|
1324
|
+
content: "content";
|
|
1325
|
+
}>;
|
|
2628
1326
|
configurationHash: z.ZodString;
|
|
2629
1327
|
pipelineVersion: z.ZodString;
|
|
2630
1328
|
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2631
1329
|
type: z.ZodLiteral<"workflow-run">;
|
|
2632
|
-
},
|
|
2633
|
-
type: "workflow-run";
|
|
2634
|
-
contentHash: string;
|
|
2635
|
-
schemaVersion: 1;
|
|
2636
|
-
project: {
|
|
2637
|
-
name: string;
|
|
2638
|
-
root?: string | undefined;
|
|
2639
|
-
};
|
|
2640
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2641
|
-
sourceRevision: string;
|
|
2642
|
-
sourceRevisionKind: "git" | "content";
|
|
2643
|
-
configurationHash: string;
|
|
2644
|
-
pipelineVersion: string;
|
|
2645
|
-
analyzerVersions: Record<string, string>;
|
|
2646
|
-
artifactRefs: string[];
|
|
2647
|
-
runId: string;
|
|
2648
|
-
state: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2649
|
-
steps: {
|
|
2650
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2651
|
-
name: string;
|
|
2652
|
-
inputHash: string;
|
|
2653
|
-
outputHash?: string | undefined;
|
|
2654
|
-
artifactRefs?: string[] | undefined;
|
|
2655
|
-
}[];
|
|
2656
|
-
transitions: {
|
|
2657
|
-
at: string;
|
|
2658
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2659
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2660
|
-
reason?: string | undefined;
|
|
2661
|
-
}[];
|
|
2662
|
-
}, {
|
|
2663
|
-
type: "workflow-run";
|
|
2664
|
-
contentHash: string;
|
|
2665
|
-
schemaVersion: 1;
|
|
2666
|
-
project: {
|
|
2667
|
-
name: string;
|
|
2668
|
-
root?: string | undefined;
|
|
2669
|
-
};
|
|
2670
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2671
|
-
sourceRevision: string;
|
|
2672
|
-
sourceRevisionKind: "git" | "content";
|
|
2673
|
-
configurationHash: string;
|
|
2674
|
-
pipelineVersion: string;
|
|
2675
|
-
analyzerVersions: Record<string, string>;
|
|
2676
|
-
artifactRefs: string[];
|
|
2677
|
-
runId: string;
|
|
2678
|
-
state: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2679
|
-
steps: {
|
|
2680
|
-
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2681
|
-
name: string;
|
|
2682
|
-
inputHash: string;
|
|
2683
|
-
outputHash?: string | undefined;
|
|
2684
|
-
artifactRefs?: string[] | undefined;
|
|
2685
|
-
}[];
|
|
2686
|
-
transitions: {
|
|
2687
|
-
at: string;
|
|
2688
|
-
from: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded" | null;
|
|
2689
|
-
to: "proposed" | "stale" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "superseded";
|
|
2690
|
-
reason?: string | undefined;
|
|
2691
|
-
}[];
|
|
2692
|
-
}>;
|
|
1330
|
+
}, z.core.$strict>;
|
|
2693
1331
|
type WorkflowRunV1 = z.infer<typeof WorkflowRunV1Schema>;
|
|
2694
|
-
declare const ProposalOriginSchema: z.
|
|
2695
|
-
kind: z.ZodEnum<
|
|
1332
|
+
declare const ProposalOriginSchema: z.ZodObject<{
|
|
1333
|
+
kind: z.ZodEnum<{
|
|
1334
|
+
deterministic: "deterministic";
|
|
1335
|
+
manual: "manual";
|
|
1336
|
+
"registry-agent": "registry-agent";
|
|
1337
|
+
}>;
|
|
2696
1338
|
id: z.ZodOptional<z.ZodString>;
|
|
2697
1339
|
version: z.ZodOptional<z.ZodString>;
|
|
2698
1340
|
provider: z.ZodOptional<z.ZodString>;
|
|
2699
1341
|
model: z.ZodOptional<z.ZodString>;
|
|
2700
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2701
|
-
},
|
|
2702
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2703
|
-
capabilities?: string[] | undefined;
|
|
2704
|
-
id?: string | undefined;
|
|
2705
|
-
provider?: string | undefined;
|
|
2706
|
-
model?: string | undefined;
|
|
2707
|
-
version?: string | undefined;
|
|
2708
|
-
}, {
|
|
2709
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2710
|
-
capabilities?: string[] | undefined;
|
|
2711
|
-
id?: string | undefined;
|
|
2712
|
-
provider?: string | undefined;
|
|
2713
|
-
model?: string | undefined;
|
|
2714
|
-
version?: string | undefined;
|
|
2715
|
-
}>, {
|
|
2716
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2717
|
-
capabilities?: string[] | undefined;
|
|
2718
|
-
id?: string | undefined;
|
|
2719
|
-
provider?: string | undefined;
|
|
2720
|
-
model?: string | undefined;
|
|
2721
|
-
version?: string | undefined;
|
|
2722
|
-
}, {
|
|
2723
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2724
|
-
capabilities?: string[] | undefined;
|
|
2725
|
-
id?: string | undefined;
|
|
2726
|
-
provider?: string | undefined;
|
|
2727
|
-
model?: string | undefined;
|
|
2728
|
-
version?: string | undefined;
|
|
2729
|
-
}>;
|
|
1342
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1343
|
+
}, z.core.$strict>;
|
|
2730
1344
|
declare const AgentProposalV1Schema: z.ZodObject<{
|
|
2731
1345
|
proposalId: z.ZodString;
|
|
2732
1346
|
baseSnapshotHash: z.ZodString;
|
|
2733
1347
|
baseReportHash: z.ZodString;
|
|
2734
|
-
relatedDiagnosticIds: z.ZodArray<z.ZodString
|
|
1348
|
+
relatedDiagnosticIds: z.ZodArray<z.ZodString>;
|
|
2735
1349
|
rationale: z.ZodString;
|
|
2736
1350
|
confidence: z.ZodNumber;
|
|
2737
|
-
evidence: z.ZodArray<z.
|
|
2738
|
-
source: z.ZodEnum<
|
|
1351
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
1352
|
+
source: z.ZodEnum<{
|
|
1353
|
+
agent: "agent";
|
|
1354
|
+
code: "code";
|
|
1355
|
+
configuration: "configuration";
|
|
1356
|
+
documentation: "documentation";
|
|
1357
|
+
derived: "derived";
|
|
1358
|
+
}>;
|
|
2739
1359
|
path: z.ZodString;
|
|
2740
1360
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2741
1361
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2742
1362
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
2743
1363
|
context: z.ZodOptional<z.ZodString>;
|
|
2744
|
-
},
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
path: string;
|
|
2753
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2754
|
-
contentHash?: string | undefined;
|
|
2755
|
-
lineStart?: number | undefined;
|
|
2756
|
-
lineEnd?: number | undefined;
|
|
2757
|
-
context?: string | undefined;
|
|
2758
|
-
}>, {
|
|
2759
|
-
path: string;
|
|
2760
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2761
|
-
contentHash?: string | undefined;
|
|
2762
|
-
lineStart?: number | undefined;
|
|
2763
|
-
lineEnd?: number | undefined;
|
|
2764
|
-
context?: string | undefined;
|
|
2765
|
-
}, {
|
|
2766
|
-
path: string;
|
|
2767
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2768
|
-
contentHash?: string | undefined;
|
|
2769
|
-
lineStart?: number | undefined;
|
|
2770
|
-
lineEnd?: number | undefined;
|
|
2771
|
-
context?: string | undefined;
|
|
2772
|
-
}>, "many">;
|
|
2773
|
-
intendedChanges: z.ZodArray<z.ZodString, "many">;
|
|
2774
|
-
origin: z.ZodEffects<z.ZodObject<{
|
|
2775
|
-
kind: z.ZodEnum<["registry-agent", "manual", "deterministic"]>;
|
|
1364
|
+
}, z.core.$strict>>;
|
|
1365
|
+
intendedChanges: z.ZodArray<z.ZodString>;
|
|
1366
|
+
origin: z.ZodObject<{
|
|
1367
|
+
kind: z.ZodEnum<{
|
|
1368
|
+
deterministic: "deterministic";
|
|
1369
|
+
manual: "manual";
|
|
1370
|
+
"registry-agent": "registry-agent";
|
|
1371
|
+
}>;
|
|
2776
1372
|
id: z.ZodOptional<z.ZodString>;
|
|
2777
1373
|
version: z.ZodOptional<z.ZodString>;
|
|
2778
1374
|
provider: z.ZodOptional<z.ZodString>;
|
|
2779
1375
|
model: z.ZodOptional<z.ZodString>;
|
|
2780
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2781
|
-
},
|
|
2782
|
-
|
|
2783
|
-
capabilities?: string[] | undefined;
|
|
2784
|
-
id?: string | undefined;
|
|
2785
|
-
provider?: string | undefined;
|
|
2786
|
-
model?: string | undefined;
|
|
2787
|
-
version?: string | undefined;
|
|
2788
|
-
}, {
|
|
2789
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2790
|
-
capabilities?: string[] | undefined;
|
|
2791
|
-
id?: string | undefined;
|
|
2792
|
-
provider?: string | undefined;
|
|
2793
|
-
model?: string | undefined;
|
|
2794
|
-
version?: string | undefined;
|
|
2795
|
-
}>, {
|
|
2796
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2797
|
-
capabilities?: string[] | undefined;
|
|
2798
|
-
id?: string | undefined;
|
|
2799
|
-
provider?: string | undefined;
|
|
2800
|
-
model?: string | undefined;
|
|
2801
|
-
version?: string | undefined;
|
|
2802
|
-
}, {
|
|
2803
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2804
|
-
capabilities?: string[] | undefined;
|
|
2805
|
-
id?: string | undefined;
|
|
2806
|
-
provider?: string | undefined;
|
|
2807
|
-
model?: string | undefined;
|
|
2808
|
-
version?: string | undefined;
|
|
2809
|
-
}>;
|
|
2810
|
-
checks: z.ZodArray<z.ZodString, "many">;
|
|
1376
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1377
|
+
}, z.core.$strict>;
|
|
1378
|
+
checks: z.ZodArray<z.ZodString>;
|
|
2811
1379
|
schemaVersion: z.ZodLiteral<1>;
|
|
2812
1380
|
contentHash: z.ZodString;
|
|
2813
1381
|
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2814
1382
|
project: z.ZodObject<{
|
|
2815
1383
|
name: z.ZodString;
|
|
2816
1384
|
root: z.ZodOptional<z.ZodString>;
|
|
2817
|
-
},
|
|
2818
|
-
name: string;
|
|
2819
|
-
root?: string | undefined;
|
|
2820
|
-
}, {
|
|
2821
|
-
name: string;
|
|
2822
|
-
root?: string | undefined;
|
|
2823
|
-
}>;
|
|
1385
|
+
}, z.core.$strict>;
|
|
2824
1386
|
sourceRevision: z.ZodString;
|
|
2825
|
-
sourceRevisionKind: z.ZodEnum<
|
|
1387
|
+
sourceRevisionKind: z.ZodEnum<{
|
|
1388
|
+
git: "git";
|
|
1389
|
+
content: "content";
|
|
1390
|
+
}>;
|
|
2826
1391
|
configurationHash: z.ZodString;
|
|
2827
1392
|
pipelineVersion: z.ZodString;
|
|
2828
1393
|
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2829
1394
|
type: z.ZodLiteral<"agent-proposal">;
|
|
2830
|
-
},
|
|
2831
|
-
type: "agent-proposal";
|
|
2832
|
-
contentHash: string;
|
|
2833
|
-
checks: string[];
|
|
2834
|
-
schemaVersion: 1;
|
|
2835
|
-
project: {
|
|
2836
|
-
name: string;
|
|
2837
|
-
root?: string | undefined;
|
|
2838
|
-
};
|
|
2839
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2840
|
-
confidence: number;
|
|
2841
|
-
evidence: {
|
|
2842
|
-
path: string;
|
|
2843
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2844
|
-
contentHash?: string | undefined;
|
|
2845
|
-
lineStart?: number | undefined;
|
|
2846
|
-
lineEnd?: number | undefined;
|
|
2847
|
-
context?: string | undefined;
|
|
2848
|
-
}[];
|
|
2849
|
-
sourceRevision: string;
|
|
2850
|
-
sourceRevisionKind: "git" | "content";
|
|
2851
|
-
configurationHash: string;
|
|
2852
|
-
pipelineVersion: string;
|
|
2853
|
-
analyzerVersions: Record<string, string>;
|
|
2854
|
-
proposalId: string;
|
|
2855
|
-
baseSnapshotHash: string;
|
|
2856
|
-
baseReportHash: string;
|
|
2857
|
-
relatedDiagnosticIds: string[];
|
|
2858
|
-
rationale: string;
|
|
2859
|
-
intendedChanges: string[];
|
|
2860
|
-
origin: {
|
|
2861
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2862
|
-
capabilities?: string[] | undefined;
|
|
2863
|
-
id?: string | undefined;
|
|
2864
|
-
provider?: string | undefined;
|
|
2865
|
-
model?: string | undefined;
|
|
2866
|
-
version?: string | undefined;
|
|
2867
|
-
};
|
|
2868
|
-
}, {
|
|
2869
|
-
type: "agent-proposal";
|
|
2870
|
-
contentHash: string;
|
|
2871
|
-
checks: string[];
|
|
2872
|
-
schemaVersion: 1;
|
|
2873
|
-
project: {
|
|
2874
|
-
name: string;
|
|
2875
|
-
root?: string | undefined;
|
|
2876
|
-
};
|
|
2877
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
2878
|
-
confidence: number;
|
|
2879
|
-
evidence: {
|
|
2880
|
-
path: string;
|
|
2881
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2882
|
-
contentHash?: string | undefined;
|
|
2883
|
-
lineStart?: number | undefined;
|
|
2884
|
-
lineEnd?: number | undefined;
|
|
2885
|
-
context?: string | undefined;
|
|
2886
|
-
}[];
|
|
2887
|
-
sourceRevision: string;
|
|
2888
|
-
sourceRevisionKind: "git" | "content";
|
|
2889
|
-
configurationHash: string;
|
|
2890
|
-
pipelineVersion: string;
|
|
2891
|
-
analyzerVersions: Record<string, string>;
|
|
2892
|
-
proposalId: string;
|
|
2893
|
-
baseSnapshotHash: string;
|
|
2894
|
-
baseReportHash: string;
|
|
2895
|
-
relatedDiagnosticIds: string[];
|
|
2896
|
-
rationale: string;
|
|
2897
|
-
intendedChanges: string[];
|
|
2898
|
-
origin: {
|
|
2899
|
-
kind: "deterministic" | "manual" | "registry-agent";
|
|
2900
|
-
capabilities?: string[] | undefined;
|
|
2901
|
-
id?: string | undefined;
|
|
2902
|
-
provider?: string | undefined;
|
|
2903
|
-
model?: string | undefined;
|
|
2904
|
-
version?: string | undefined;
|
|
2905
|
-
};
|
|
2906
|
-
}>;
|
|
1395
|
+
}, z.core.$strict>;
|
|
2907
1396
|
type AgentProposalV1 = z.infer<typeof AgentProposalV1Schema>;
|
|
2908
|
-
declare const FixProposalStatusSchema: z.ZodEnum<
|
|
1397
|
+
declare const FixProposalStatusSchema: z.ZodEnum<{
|
|
1398
|
+
proposed: "proposed";
|
|
1399
|
+
stale: "stale";
|
|
1400
|
+
failed: "failed";
|
|
1401
|
+
approved: "approved";
|
|
1402
|
+
rejected: "rejected";
|
|
1403
|
+
applied: "applied";
|
|
1404
|
+
}>;
|
|
2909
1405
|
declare const AffectedFileSchema: z.ZodObject<{
|
|
2910
1406
|
path: z.ZodString;
|
|
2911
1407
|
contentHash: z.ZodString;
|
|
2912
|
-
},
|
|
2913
|
-
path: string;
|
|
2914
|
-
contentHash: string;
|
|
2915
|
-
}, {
|
|
2916
|
-
path: string;
|
|
2917
|
-
contentHash: string;
|
|
2918
|
-
}>;
|
|
1408
|
+
}, z.core.$strict>;
|
|
2919
1409
|
declare const FixChangeSchema: z.ZodObject<{
|
|
2920
1410
|
path: z.ZodString;
|
|
2921
1411
|
before: z.ZodString;
|
|
2922
1412
|
after: z.ZodString;
|
|
2923
|
-
},
|
|
2924
|
-
path: string;
|
|
2925
|
-
before: string;
|
|
2926
|
-
after: string;
|
|
2927
|
-
}, {
|
|
2928
|
-
path: string;
|
|
2929
|
-
before: string;
|
|
2930
|
-
after: string;
|
|
2931
|
-
}>;
|
|
1413
|
+
}, z.core.$strict>;
|
|
2932
1414
|
type FixChange = z.infer<typeof FixChangeSchema>;
|
|
2933
|
-
declare const FixProposalV1Schema: z.
|
|
1415
|
+
declare const FixProposalV1Schema: z.ZodObject<{
|
|
2934
1416
|
proposalId: z.ZodString;
|
|
2935
1417
|
baseRevision: z.ZodString;
|
|
2936
1418
|
affectedFiles: z.ZodArray<z.ZodObject<{
|
|
2937
1419
|
path: z.ZodString;
|
|
2938
1420
|
contentHash: z.ZodString;
|
|
2939
|
-
},
|
|
2940
|
-
path: string;
|
|
2941
|
-
contentHash: string;
|
|
2942
|
-
}, {
|
|
2943
|
-
path: string;
|
|
2944
|
-
contentHash: string;
|
|
2945
|
-
}>, "many">;
|
|
1421
|
+
}, z.core.$strict>>;
|
|
2946
1422
|
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2947
1423
|
path: z.ZodString;
|
|
2948
1424
|
before: z.ZodString;
|
|
2949
1425
|
after: z.ZodString;
|
|
2950
|
-
},
|
|
2951
|
-
|
|
2952
|
-
before: string;
|
|
2953
|
-
after: string;
|
|
2954
|
-
}, {
|
|
2955
|
-
path: string;
|
|
2956
|
-
before: string;
|
|
2957
|
-
after: string;
|
|
2958
|
-
}>, "many">>;
|
|
2959
|
-
preconditions: z.ZodArray<z.ZodString, "many">;
|
|
1426
|
+
}, z.core.$strict>>>;
|
|
1427
|
+
preconditions: z.ZodArray<z.ZodString>;
|
|
2960
1428
|
diff: z.ZodString;
|
|
2961
|
-
postconditions: z.ZodArray<z.ZodString
|
|
1429
|
+
postconditions: z.ZodArray<z.ZodString>;
|
|
2962
1430
|
approval: z.ZodOptional<z.ZodObject<{
|
|
2963
1431
|
proposalHash: z.ZodString;
|
|
2964
1432
|
approvedAt: z.ZodString;
|
|
2965
1433
|
approvedBy: z.ZodString;
|
|
2966
|
-
},
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
}
|
|
2975
|
-
status: z.ZodEnum<["proposed", "approved", "rejected", "stale", "applied", "failed"]>;
|
|
1434
|
+
}, z.core.$strict>>;
|
|
1435
|
+
status: z.ZodEnum<{
|
|
1436
|
+
proposed: "proposed";
|
|
1437
|
+
stale: "stale";
|
|
1438
|
+
failed: "failed";
|
|
1439
|
+
approved: "approved";
|
|
1440
|
+
rejected: "rejected";
|
|
1441
|
+
applied: "applied";
|
|
1442
|
+
}>;
|
|
2976
1443
|
schemaVersion: z.ZodLiteral<1>;
|
|
2977
1444
|
contentHash: z.ZodString;
|
|
2978
1445
|
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2979
1446
|
project: z.ZodObject<{
|
|
2980
1447
|
name: z.ZodString;
|
|
2981
1448
|
root: z.ZodOptional<z.ZodString>;
|
|
2982
|
-
},
|
|
2983
|
-
name: string;
|
|
2984
|
-
root?: string | undefined;
|
|
2985
|
-
}, {
|
|
2986
|
-
name: string;
|
|
2987
|
-
root?: string | undefined;
|
|
2988
|
-
}>;
|
|
1449
|
+
}, z.core.$strict>;
|
|
2989
1450
|
sourceRevision: z.ZodString;
|
|
2990
|
-
sourceRevisionKind: z.ZodEnum<
|
|
1451
|
+
sourceRevisionKind: z.ZodEnum<{
|
|
1452
|
+
git: "git";
|
|
1453
|
+
content: "content";
|
|
1454
|
+
}>;
|
|
2991
1455
|
configurationHash: z.ZodString;
|
|
2992
1456
|
pipelineVersion: z.ZodString;
|
|
2993
1457
|
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2994
1458
|
type: z.ZodLiteral<"fix-proposal">;
|
|
2995
|
-
},
|
|
2996
|
-
type: "fix-proposal";
|
|
2997
|
-
status: "proposed" | "stale" | "failed" | "approved" | "rejected" | "applied";
|
|
2998
|
-
contentHash: string;
|
|
2999
|
-
schemaVersion: 1;
|
|
3000
|
-
project: {
|
|
3001
|
-
name: string;
|
|
3002
|
-
root?: string | undefined;
|
|
3003
|
-
};
|
|
3004
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
3005
|
-
sourceRevision: string;
|
|
3006
|
-
sourceRevisionKind: "git" | "content";
|
|
3007
|
-
configurationHash: string;
|
|
3008
|
-
pipelineVersion: string;
|
|
3009
|
-
analyzerVersions: Record<string, string>;
|
|
3010
|
-
proposalId: string;
|
|
3011
|
-
baseRevision: string;
|
|
3012
|
-
affectedFiles: {
|
|
3013
|
-
path: string;
|
|
3014
|
-
contentHash: string;
|
|
3015
|
-
}[];
|
|
3016
|
-
preconditions: string[];
|
|
3017
|
-
diff: string;
|
|
3018
|
-
postconditions: string[];
|
|
3019
|
-
changes?: {
|
|
3020
|
-
path: string;
|
|
3021
|
-
before: string;
|
|
3022
|
-
after: string;
|
|
3023
|
-
}[] | undefined;
|
|
3024
|
-
approval?: {
|
|
3025
|
-
approvedBy: string;
|
|
3026
|
-
proposalHash: string;
|
|
3027
|
-
approvedAt: string;
|
|
3028
|
-
} | undefined;
|
|
3029
|
-
}, {
|
|
3030
|
-
type: "fix-proposal";
|
|
3031
|
-
status: "proposed" | "stale" | "failed" | "approved" | "rejected" | "applied";
|
|
3032
|
-
contentHash: string;
|
|
3033
|
-
schemaVersion: 1;
|
|
3034
|
-
project: {
|
|
3035
|
-
name: string;
|
|
3036
|
-
root?: string | undefined;
|
|
3037
|
-
};
|
|
3038
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
3039
|
-
sourceRevision: string;
|
|
3040
|
-
sourceRevisionKind: "git" | "content";
|
|
3041
|
-
configurationHash: string;
|
|
3042
|
-
pipelineVersion: string;
|
|
3043
|
-
analyzerVersions: Record<string, string>;
|
|
3044
|
-
proposalId: string;
|
|
3045
|
-
baseRevision: string;
|
|
3046
|
-
affectedFiles: {
|
|
3047
|
-
path: string;
|
|
3048
|
-
contentHash: string;
|
|
3049
|
-
}[];
|
|
3050
|
-
preconditions: string[];
|
|
3051
|
-
diff: string;
|
|
3052
|
-
postconditions: string[];
|
|
3053
|
-
changes?: {
|
|
3054
|
-
path: string;
|
|
3055
|
-
before: string;
|
|
3056
|
-
after: string;
|
|
3057
|
-
}[] | undefined;
|
|
3058
|
-
approval?: {
|
|
3059
|
-
approvedBy: string;
|
|
3060
|
-
proposalHash: string;
|
|
3061
|
-
approvedAt: string;
|
|
3062
|
-
} | undefined;
|
|
3063
|
-
}>, {
|
|
3064
|
-
type: "fix-proposal";
|
|
3065
|
-
status: "proposed" | "stale" | "failed" | "approved" | "rejected" | "applied";
|
|
3066
|
-
contentHash: string;
|
|
3067
|
-
schemaVersion: 1;
|
|
3068
|
-
project: {
|
|
3069
|
-
name: string;
|
|
3070
|
-
root?: string | undefined;
|
|
3071
|
-
};
|
|
3072
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
3073
|
-
sourceRevision: string;
|
|
3074
|
-
sourceRevisionKind: "git" | "content";
|
|
3075
|
-
configurationHash: string;
|
|
3076
|
-
pipelineVersion: string;
|
|
3077
|
-
analyzerVersions: Record<string, string>;
|
|
3078
|
-
proposalId: string;
|
|
3079
|
-
baseRevision: string;
|
|
3080
|
-
affectedFiles: {
|
|
3081
|
-
path: string;
|
|
3082
|
-
contentHash: string;
|
|
3083
|
-
}[];
|
|
3084
|
-
preconditions: string[];
|
|
3085
|
-
diff: string;
|
|
3086
|
-
postconditions: string[];
|
|
3087
|
-
changes?: {
|
|
3088
|
-
path: string;
|
|
3089
|
-
before: string;
|
|
3090
|
-
after: string;
|
|
3091
|
-
}[] | undefined;
|
|
3092
|
-
approval?: {
|
|
3093
|
-
approvedBy: string;
|
|
3094
|
-
proposalHash: string;
|
|
3095
|
-
approvedAt: string;
|
|
3096
|
-
} | undefined;
|
|
3097
|
-
}, {
|
|
3098
|
-
type: "fix-proposal";
|
|
3099
|
-
status: "proposed" | "stale" | "failed" | "approved" | "rejected" | "applied";
|
|
3100
|
-
contentHash: string;
|
|
3101
|
-
schemaVersion: 1;
|
|
3102
|
-
project: {
|
|
3103
|
-
name: string;
|
|
3104
|
-
root?: string | undefined;
|
|
3105
|
-
};
|
|
3106
|
-
contentHashAlgo: "sha256-normalized-v1";
|
|
3107
|
-
sourceRevision: string;
|
|
3108
|
-
sourceRevisionKind: "git" | "content";
|
|
3109
|
-
configurationHash: string;
|
|
3110
|
-
pipelineVersion: string;
|
|
3111
|
-
analyzerVersions: Record<string, string>;
|
|
3112
|
-
proposalId: string;
|
|
3113
|
-
baseRevision: string;
|
|
3114
|
-
affectedFiles: {
|
|
3115
|
-
path: string;
|
|
3116
|
-
contentHash: string;
|
|
3117
|
-
}[];
|
|
3118
|
-
preconditions: string[];
|
|
3119
|
-
diff: string;
|
|
3120
|
-
postconditions: string[];
|
|
3121
|
-
changes?: {
|
|
3122
|
-
path: string;
|
|
3123
|
-
before: string;
|
|
3124
|
-
after: string;
|
|
3125
|
-
}[] | undefined;
|
|
3126
|
-
approval?: {
|
|
3127
|
-
approvedBy: string;
|
|
3128
|
-
proposalHash: string;
|
|
3129
|
-
approvedAt: string;
|
|
3130
|
-
} | undefined;
|
|
3131
|
-
}>;
|
|
1459
|
+
}, z.core.$strict>;
|
|
3132
1460
|
type FixProposalV1 = z.infer<typeof FixProposalV1Schema>;
|
|
3133
1461
|
type KnowledgeArtifactV1 = DiscoverySnapshotV1 | ReconciliationReportV1 | WorkflowRunV1 | AgentProposalV1 | FixProposalV1;
|
|
3134
1462
|
|
|
@@ -3176,7 +1504,7 @@ type DiscoveryOptions = {
|
|
|
3176
1504
|
};
|
|
3177
1505
|
declare const discoverRepository: (opts?: DiscoveryOptions) => DiscoverySnapshotV1;
|
|
3178
1506
|
|
|
3179
|
-
declare const DEFAULT_SAFETY_EXCLUDES: readonly ["**/.git/**", "**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.doc-bridge/**", "**/.turbo/**", "**/.env", "**/.env.*", "**/*secret*", "**/*credential*", "**/*.pem", "**/*.key"];
|
|
1507
|
+
declare const DEFAULT_SAFETY_EXCLUDES: readonly ["**/.git/**", "**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.doc-bridge/**", "**/.next/**", "**/out/**", "**/.turbo/**", "**/.svelte-kit/**", "**/.mcpb-build/**", "**/.mcpb-output/**", "**/.env", "**/.env.*", "**/*secret*", "**/*credential*", "**/*.pem", "**/*.key"];
|
|
3180
1508
|
type SafeWalkOptions = {
|
|
3181
1509
|
readonly extensions?: readonly string[];
|
|
3182
1510
|
readonly exclude?: readonly string[];
|
|
@@ -3201,20 +1529,8 @@ declare const RegistryAgentMetadataSchema: z.ZodObject<{
|
|
|
3201
1529
|
version: z.ZodString;
|
|
3202
1530
|
provider: z.ZodOptional<z.ZodString>;
|
|
3203
1531
|
model: z.ZodOptional<z.ZodString>;
|
|
3204
|
-
capabilities: z.ZodDefault<z.ZodArray<z.ZodString
|
|
3205
|
-
},
|
|
3206
|
-
capabilities: string[];
|
|
3207
|
-
id: string;
|
|
3208
|
-
version: string;
|
|
3209
|
-
provider?: string | undefined;
|
|
3210
|
-
model?: string | undefined;
|
|
3211
|
-
}, {
|
|
3212
|
-
id: string;
|
|
3213
|
-
version: string;
|
|
3214
|
-
capabilities?: string[] | undefined;
|
|
3215
|
-
provider?: string | undefined;
|
|
3216
|
-
model?: string | undefined;
|
|
3217
|
-
}>;
|
|
1532
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1533
|
+
}, z.core.$strict>;
|
|
3218
1534
|
type RegistryAgentMetadata = z.infer<typeof RegistryAgentMetadataSchema> & {
|
|
3219
1535
|
readonly root: string;
|
|
3220
1536
|
};
|
|
@@ -3271,6 +1587,8 @@ type ReconciliationOptions = {
|
|
|
3271
1587
|
readonly scope?: 'file' | 'module' | 'package';
|
|
3272
1588
|
/** Omit for backwards-compatible all-relation checking; [] disables missing-declaration findings. */
|
|
3273
1589
|
readonly requiredRelationKinds?: readonly string[];
|
|
1590
|
+
/** Limit missing-declaration findings to relations between internal project entities. */
|
|
1591
|
+
readonly requiredRelationTargets?: 'all' | 'internal';
|
|
3274
1592
|
/** Emit one bounded finding for each observed Markdown document without declarations. */
|
|
3275
1593
|
readonly includeOrphanedDocuments?: boolean;
|
|
3276
1594
|
};
|
|
@@ -3859,59 +2177,19 @@ declare const ANALYZER_PLUGIN_CONTRACT_VERSION: 1;
|
|
|
3859
2177
|
declare const AnalyzerPluginManifestSchema: z.ZodObject<{
|
|
3860
2178
|
id: z.ZodString;
|
|
3861
2179
|
version: z.ZodString;
|
|
3862
|
-
languages: z.ZodArray<z.ZodString
|
|
3863
|
-
frameworks: z.ZodDefault<z.ZodArray<z.ZodString
|
|
3864
|
-
capabilities: z.ZodArray<z.ZodString
|
|
2180
|
+
languages: z.ZodArray<z.ZodString>;
|
|
2181
|
+
frameworks: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2182
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
3865
2183
|
knowledgeSchemaVersion: z.ZodLiteral<1>;
|
|
3866
2184
|
compatibility: z.ZodObject<{
|
|
3867
2185
|
pipelineMajor: z.ZodNumber;
|
|
3868
|
-
},
|
|
3869
|
-
|
|
3870
|
-
}, {
|
|
3871
|
-
pipelineMajor: number;
|
|
3872
|
-
}>;
|
|
3873
|
-
unsupportedConstructs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2186
|
+
}, z.core.$strict>;
|
|
2187
|
+
unsupportedConstructs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3874
2188
|
resourceLimits: z.ZodDefault<z.ZodObject<{
|
|
3875
2189
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
3876
2190
|
maxBytes: z.ZodOptional<z.ZodNumber>;
|
|
3877
|
-
},
|
|
3878
|
-
|
|
3879
|
-
maxBytes?: number | undefined;
|
|
3880
|
-
}, {
|
|
3881
|
-
maxFiles?: number | undefined;
|
|
3882
|
-
maxBytes?: number | undefined;
|
|
3883
|
-
}>>;
|
|
3884
|
-
}, "strict", z.ZodTypeAny, {
|
|
3885
|
-
capabilities: string[];
|
|
3886
|
-
id: string;
|
|
3887
|
-
version: string;
|
|
3888
|
-
languages: string[];
|
|
3889
|
-
frameworks: string[];
|
|
3890
|
-
knowledgeSchemaVersion: 1;
|
|
3891
|
-
compatibility: {
|
|
3892
|
-
pipelineMajor: number;
|
|
3893
|
-
};
|
|
3894
|
-
unsupportedConstructs: string[];
|
|
3895
|
-
resourceLimits: {
|
|
3896
|
-
maxFiles?: number | undefined;
|
|
3897
|
-
maxBytes?: number | undefined;
|
|
3898
|
-
};
|
|
3899
|
-
}, {
|
|
3900
|
-
capabilities: string[];
|
|
3901
|
-
id: string;
|
|
3902
|
-
version: string;
|
|
3903
|
-
languages: string[];
|
|
3904
|
-
knowledgeSchemaVersion: 1;
|
|
3905
|
-
compatibility: {
|
|
3906
|
-
pipelineMajor: number;
|
|
3907
|
-
};
|
|
3908
|
-
frameworks?: string[] | undefined;
|
|
3909
|
-
unsupportedConstructs?: string[] | undefined;
|
|
3910
|
-
resourceLimits?: {
|
|
3911
|
-
maxFiles?: number | undefined;
|
|
3912
|
-
maxBytes?: number | undefined;
|
|
3913
|
-
} | undefined;
|
|
3914
|
-
}>;
|
|
2191
|
+
}, z.core.$strict>>;
|
|
2192
|
+
}, z.core.$strict>;
|
|
3915
2193
|
type AnalyzerPluginManifest = z.infer<typeof AnalyzerPluginManifestSchema>;
|
|
3916
2194
|
declare const AnalyzerPluginOutputSchema: z.ZodObject<{
|
|
3917
2195
|
entities: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -3919,443 +2197,118 @@ declare const AnalyzerPluginOutputSchema: z.ZodObject<{
|
|
|
3919
2197
|
kind: z.ZodString;
|
|
3920
2198
|
name: z.ZodString;
|
|
3921
2199
|
path: z.ZodOptional<z.ZodString>;
|
|
3922
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString
|
|
3923
|
-
provenance: z.ZodEnum<
|
|
3924
|
-
|
|
3925
|
-
|
|
2200
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2201
|
+
provenance: z.ZodEnum<{
|
|
2202
|
+
observed: "observed";
|
|
2203
|
+
declared: "declared";
|
|
2204
|
+
proposed: "proposed";
|
|
2205
|
+
}>;
|
|
2206
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2207
|
+
source: z.ZodEnum<{
|
|
2208
|
+
agent: "agent";
|
|
2209
|
+
code: "code";
|
|
2210
|
+
configuration: "configuration";
|
|
2211
|
+
documentation: "documentation";
|
|
2212
|
+
derived: "derived";
|
|
2213
|
+
}>;
|
|
3926
2214
|
path: z.ZodString;
|
|
3927
2215
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
3928
2216
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
3929
2217
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
3930
2218
|
context: z.ZodOptional<z.ZodString>;
|
|
3931
|
-
},
|
|
3932
|
-
path: string;
|
|
3933
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3934
|
-
contentHash?: string | undefined;
|
|
3935
|
-
lineStart?: number | undefined;
|
|
3936
|
-
lineEnd?: number | undefined;
|
|
3937
|
-
context?: string | undefined;
|
|
3938
|
-
}, {
|
|
3939
|
-
path: string;
|
|
3940
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3941
|
-
contentHash?: string | undefined;
|
|
3942
|
-
lineStart?: number | undefined;
|
|
3943
|
-
lineEnd?: number | undefined;
|
|
3944
|
-
context?: string | undefined;
|
|
3945
|
-
}>, {
|
|
3946
|
-
path: string;
|
|
3947
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3948
|
-
contentHash?: string | undefined;
|
|
3949
|
-
lineStart?: number | undefined;
|
|
3950
|
-
lineEnd?: number | undefined;
|
|
3951
|
-
context?: string | undefined;
|
|
3952
|
-
}, {
|
|
3953
|
-
path: string;
|
|
3954
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3955
|
-
contentHash?: string | undefined;
|
|
3956
|
-
lineStart?: number | undefined;
|
|
3957
|
-
lineEnd?: number | undefined;
|
|
3958
|
-
context?: string | undefined;
|
|
3959
|
-
}>, "many">;
|
|
2219
|
+
}, z.core.$strict>>;
|
|
3960
2220
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3961
|
-
},
|
|
3962
|
-
id: string;
|
|
3963
|
-
name: string;
|
|
3964
|
-
kind: string;
|
|
3965
|
-
evidence: {
|
|
3966
|
-
path: string;
|
|
3967
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3968
|
-
contentHash?: string | undefined;
|
|
3969
|
-
lineStart?: number | undefined;
|
|
3970
|
-
lineEnd?: number | undefined;
|
|
3971
|
-
context?: string | undefined;
|
|
3972
|
-
}[];
|
|
3973
|
-
provenance: "observed" | "declared" | "proposed";
|
|
3974
|
-
path?: string | undefined;
|
|
3975
|
-
metadata?: Record<string, unknown> | undefined;
|
|
3976
|
-
aliases?: string[] | undefined;
|
|
3977
|
-
}, {
|
|
3978
|
-
id: string;
|
|
3979
|
-
name: string;
|
|
3980
|
-
kind: string;
|
|
3981
|
-
evidence: {
|
|
3982
|
-
path: string;
|
|
3983
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
3984
|
-
contentHash?: string | undefined;
|
|
3985
|
-
lineStart?: number | undefined;
|
|
3986
|
-
lineEnd?: number | undefined;
|
|
3987
|
-
context?: string | undefined;
|
|
3988
|
-
}[];
|
|
3989
|
-
provenance: "observed" | "declared" | "proposed";
|
|
3990
|
-
path?: string | undefined;
|
|
3991
|
-
metadata?: Record<string, unknown> | undefined;
|
|
3992
|
-
aliases?: string[] | undefined;
|
|
3993
|
-
}>, "many">>;
|
|
2221
|
+
}, z.core.$strict>>>;
|
|
3994
2222
|
relations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3995
2223
|
id: z.ZodString;
|
|
3996
2224
|
kind: z.ZodString;
|
|
3997
2225
|
from: z.ZodString;
|
|
3998
2226
|
to: z.ZodString;
|
|
3999
2227
|
discriminator: z.ZodOptional<z.ZodString>;
|
|
4000
|
-
provenance: z.ZodEnum<
|
|
4001
|
-
|
|
4002
|
-
|
|
2228
|
+
provenance: z.ZodEnum<{
|
|
2229
|
+
observed: "observed";
|
|
2230
|
+
declared: "declared";
|
|
2231
|
+
proposed: "proposed";
|
|
2232
|
+
}>;
|
|
2233
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2234
|
+
source: z.ZodEnum<{
|
|
2235
|
+
agent: "agent";
|
|
2236
|
+
code: "code";
|
|
2237
|
+
configuration: "configuration";
|
|
2238
|
+
documentation: "documentation";
|
|
2239
|
+
derived: "derived";
|
|
2240
|
+
}>;
|
|
4003
2241
|
path: z.ZodString;
|
|
4004
2242
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
4005
2243
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
4006
2244
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
4007
2245
|
context: z.ZodOptional<z.ZodString>;
|
|
4008
|
-
},
|
|
4009
|
-
path: string;
|
|
4010
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4011
|
-
contentHash?: string | undefined;
|
|
4012
|
-
lineStart?: number | undefined;
|
|
4013
|
-
lineEnd?: number | undefined;
|
|
4014
|
-
context?: string | undefined;
|
|
4015
|
-
}, {
|
|
4016
|
-
path: string;
|
|
4017
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4018
|
-
contentHash?: string | undefined;
|
|
4019
|
-
lineStart?: number | undefined;
|
|
4020
|
-
lineEnd?: number | undefined;
|
|
4021
|
-
context?: string | undefined;
|
|
4022
|
-
}>, {
|
|
4023
|
-
path: string;
|
|
4024
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4025
|
-
contentHash?: string | undefined;
|
|
4026
|
-
lineStart?: number | undefined;
|
|
4027
|
-
lineEnd?: number | undefined;
|
|
4028
|
-
context?: string | undefined;
|
|
4029
|
-
}, {
|
|
4030
|
-
path: string;
|
|
4031
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4032
|
-
contentHash?: string | undefined;
|
|
4033
|
-
lineStart?: number | undefined;
|
|
4034
|
-
lineEnd?: number | undefined;
|
|
4035
|
-
context?: string | undefined;
|
|
4036
|
-
}>, "many">;
|
|
2246
|
+
}, z.core.$strict>>;
|
|
4037
2247
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4038
|
-
},
|
|
4039
|
-
id: string;
|
|
4040
|
-
kind: string;
|
|
4041
|
-
evidence: {
|
|
4042
|
-
path: string;
|
|
4043
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4044
|
-
contentHash?: string | undefined;
|
|
4045
|
-
lineStart?: number | undefined;
|
|
4046
|
-
lineEnd?: number | undefined;
|
|
4047
|
-
context?: string | undefined;
|
|
4048
|
-
}[];
|
|
4049
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4050
|
-
from: string;
|
|
4051
|
-
to: string;
|
|
4052
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4053
|
-
discriminator?: string | undefined;
|
|
4054
|
-
}, {
|
|
4055
|
-
id: string;
|
|
4056
|
-
kind: string;
|
|
4057
|
-
evidence: {
|
|
4058
|
-
path: string;
|
|
4059
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4060
|
-
contentHash?: string | undefined;
|
|
4061
|
-
lineStart?: number | undefined;
|
|
4062
|
-
lineEnd?: number | undefined;
|
|
4063
|
-
context?: string | undefined;
|
|
4064
|
-
}[];
|
|
4065
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4066
|
-
from: string;
|
|
4067
|
-
to: string;
|
|
4068
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4069
|
-
discriminator?: string | undefined;
|
|
4070
|
-
}>, "many">>;
|
|
2248
|
+
}, z.core.$strict>>>;
|
|
4071
2249
|
coverage: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4072
2250
|
analyzer: z.ZodString;
|
|
4073
2251
|
analyzerVersion: z.ZodOptional<z.ZodString>;
|
|
4074
2252
|
scope: z.ZodString;
|
|
4075
|
-
status: z.ZodEnum<
|
|
2253
|
+
status: z.ZodEnum<{
|
|
2254
|
+
"not-analyzed": "not-analyzed";
|
|
2255
|
+
complete: "complete";
|
|
2256
|
+
partial: "partial";
|
|
2257
|
+
"not-applicable": "not-applicable";
|
|
2258
|
+
}>;
|
|
4076
2259
|
reason: z.ZodOptional<z.ZodString>;
|
|
4077
|
-
evidence: z.ZodOptional<z.ZodArray<z.
|
|
4078
|
-
source: z.ZodEnum<
|
|
2260
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2261
|
+
source: z.ZodEnum<{
|
|
2262
|
+
agent: "agent";
|
|
2263
|
+
code: "code";
|
|
2264
|
+
configuration: "configuration";
|
|
2265
|
+
documentation: "documentation";
|
|
2266
|
+
derived: "derived";
|
|
2267
|
+
}>;
|
|
4079
2268
|
path: z.ZodString;
|
|
4080
2269
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
4081
2270
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
4082
2271
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
4083
2272
|
context: z.ZodOptional<z.ZodString>;
|
|
4084
|
-
},
|
|
4085
|
-
|
|
4086
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4087
|
-
contentHash?: string | undefined;
|
|
4088
|
-
lineStart?: number | undefined;
|
|
4089
|
-
lineEnd?: number | undefined;
|
|
4090
|
-
context?: string | undefined;
|
|
4091
|
-
}, {
|
|
4092
|
-
path: string;
|
|
4093
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4094
|
-
contentHash?: string | undefined;
|
|
4095
|
-
lineStart?: number | undefined;
|
|
4096
|
-
lineEnd?: number | undefined;
|
|
4097
|
-
context?: string | undefined;
|
|
4098
|
-
}>, {
|
|
4099
|
-
path: string;
|
|
4100
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4101
|
-
contentHash?: string | undefined;
|
|
4102
|
-
lineStart?: number | undefined;
|
|
4103
|
-
lineEnd?: number | undefined;
|
|
4104
|
-
context?: string | undefined;
|
|
4105
|
-
}, {
|
|
4106
|
-
path: string;
|
|
4107
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4108
|
-
contentHash?: string | undefined;
|
|
4109
|
-
lineStart?: number | undefined;
|
|
4110
|
-
lineEnd?: number | undefined;
|
|
4111
|
-
context?: string | undefined;
|
|
4112
|
-
}>, "many">>;
|
|
4113
|
-
}, "strict", z.ZodTypeAny, {
|
|
4114
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
4115
|
-
scope: string;
|
|
4116
|
-
analyzer: string;
|
|
4117
|
-
reason?: string | undefined;
|
|
4118
|
-
analyzerVersion?: string | undefined;
|
|
4119
|
-
evidence?: {
|
|
4120
|
-
path: string;
|
|
4121
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4122
|
-
contentHash?: string | undefined;
|
|
4123
|
-
lineStart?: number | undefined;
|
|
4124
|
-
lineEnd?: number | undefined;
|
|
4125
|
-
context?: string | undefined;
|
|
4126
|
-
}[] | undefined;
|
|
4127
|
-
}, {
|
|
4128
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
4129
|
-
scope: string;
|
|
4130
|
-
analyzer: string;
|
|
4131
|
-
reason?: string | undefined;
|
|
4132
|
-
analyzerVersion?: string | undefined;
|
|
4133
|
-
evidence?: {
|
|
4134
|
-
path: string;
|
|
4135
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4136
|
-
contentHash?: string | undefined;
|
|
4137
|
-
lineStart?: number | undefined;
|
|
4138
|
-
lineEnd?: number | undefined;
|
|
4139
|
-
context?: string | undefined;
|
|
4140
|
-
}[] | undefined;
|
|
4141
|
-
}>, "many">>;
|
|
2273
|
+
}, z.core.$strict>>>;
|
|
2274
|
+
}, z.core.$strict>>>;
|
|
4142
2275
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4143
2276
|
id: z.ZodString;
|
|
4144
2277
|
code: z.ZodString;
|
|
4145
|
-
status: z.ZodEnum<
|
|
4146
|
-
|
|
2278
|
+
status: z.ZodEnum<{
|
|
2279
|
+
confirmed: "confirmed";
|
|
2280
|
+
undocumented: "undocumented";
|
|
2281
|
+
"stale-or-unverified": "stale-or-unverified";
|
|
2282
|
+
conflict: "conflict";
|
|
2283
|
+
unresolved: "unresolved";
|
|
2284
|
+
"not-analyzed": "not-analyzed";
|
|
2285
|
+
}>;
|
|
2286
|
+
severity: z.ZodEnum<{
|
|
2287
|
+
error: "error";
|
|
2288
|
+
off: "off";
|
|
2289
|
+
info: "info";
|
|
2290
|
+
warn: "warn";
|
|
2291
|
+
}>;
|
|
4147
2292
|
message: z.ZodString;
|
|
4148
|
-
evidence: z.ZodArray<z.
|
|
4149
|
-
source: z.ZodEnum<
|
|
2293
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
2294
|
+
source: z.ZodEnum<{
|
|
2295
|
+
agent: "agent";
|
|
2296
|
+
code: "code";
|
|
2297
|
+
configuration: "configuration";
|
|
2298
|
+
documentation: "documentation";
|
|
2299
|
+
derived: "derived";
|
|
2300
|
+
}>;
|
|
4150
2301
|
path: z.ZodString;
|
|
4151
2302
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
4152
2303
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
4153
2304
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
4154
2305
|
context: z.ZodOptional<z.ZodString>;
|
|
4155
|
-
},
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
contentHash?: string | undefined;
|
|
4159
|
-
lineStart?: number | undefined;
|
|
4160
|
-
lineEnd?: number | undefined;
|
|
4161
|
-
context?: string | undefined;
|
|
4162
|
-
}, {
|
|
4163
|
-
path: string;
|
|
4164
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4165
|
-
contentHash?: string | undefined;
|
|
4166
|
-
lineStart?: number | undefined;
|
|
4167
|
-
lineEnd?: number | undefined;
|
|
4168
|
-
context?: string | undefined;
|
|
4169
|
-
}>, {
|
|
4170
|
-
path: string;
|
|
4171
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4172
|
-
contentHash?: string | undefined;
|
|
4173
|
-
lineStart?: number | undefined;
|
|
4174
|
-
lineEnd?: number | undefined;
|
|
4175
|
-
context?: string | undefined;
|
|
4176
|
-
}, {
|
|
4177
|
-
path: string;
|
|
4178
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4179
|
-
contentHash?: string | undefined;
|
|
4180
|
-
lineStart?: number | undefined;
|
|
4181
|
-
lineEnd?: number | undefined;
|
|
4182
|
-
context?: string | undefined;
|
|
4183
|
-
}>, "many">;
|
|
4184
|
-
entityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4185
|
-
relationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2306
|
+
}, z.core.$strict>>;
|
|
2307
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2308
|
+
relationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4186
2309
|
remediation: z.ZodOptional<z.ZodString>;
|
|
4187
|
-
},
|
|
4188
|
-
|
|
4189
|
-
message: string;
|
|
4190
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
4191
|
-
id: string;
|
|
4192
|
-
severity: "off" | "info" | "warn" | "error";
|
|
4193
|
-
evidence: {
|
|
4194
|
-
path: string;
|
|
4195
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4196
|
-
contentHash?: string | undefined;
|
|
4197
|
-
lineStart?: number | undefined;
|
|
4198
|
-
lineEnd?: number | undefined;
|
|
4199
|
-
context?: string | undefined;
|
|
4200
|
-
}[];
|
|
4201
|
-
entityIds?: string[] | undefined;
|
|
4202
|
-
relationIds?: string[] | undefined;
|
|
4203
|
-
remediation?: string | undefined;
|
|
4204
|
-
}, {
|
|
4205
|
-
code: string;
|
|
4206
|
-
message: string;
|
|
4207
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
4208
|
-
id: string;
|
|
4209
|
-
severity: "off" | "info" | "warn" | "error";
|
|
4210
|
-
evidence: {
|
|
4211
|
-
path: string;
|
|
4212
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4213
|
-
contentHash?: string | undefined;
|
|
4214
|
-
lineStart?: number | undefined;
|
|
4215
|
-
lineEnd?: number | undefined;
|
|
4216
|
-
context?: string | undefined;
|
|
4217
|
-
}[];
|
|
4218
|
-
entityIds?: string[] | undefined;
|
|
4219
|
-
relationIds?: string[] | undefined;
|
|
4220
|
-
remediation?: string | undefined;
|
|
4221
|
-
}>, "many">>;
|
|
4222
|
-
}, "strict", z.ZodTypeAny, {
|
|
4223
|
-
entities: {
|
|
4224
|
-
id: string;
|
|
4225
|
-
name: string;
|
|
4226
|
-
kind: string;
|
|
4227
|
-
evidence: {
|
|
4228
|
-
path: string;
|
|
4229
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4230
|
-
contentHash?: string | undefined;
|
|
4231
|
-
lineStart?: number | undefined;
|
|
4232
|
-
lineEnd?: number | undefined;
|
|
4233
|
-
context?: string | undefined;
|
|
4234
|
-
}[];
|
|
4235
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4236
|
-
path?: string | undefined;
|
|
4237
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4238
|
-
aliases?: string[] | undefined;
|
|
4239
|
-
}[];
|
|
4240
|
-
relations: {
|
|
4241
|
-
id: string;
|
|
4242
|
-
kind: string;
|
|
4243
|
-
evidence: {
|
|
4244
|
-
path: string;
|
|
4245
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4246
|
-
contentHash?: string | undefined;
|
|
4247
|
-
lineStart?: number | undefined;
|
|
4248
|
-
lineEnd?: number | undefined;
|
|
4249
|
-
context?: string | undefined;
|
|
4250
|
-
}[];
|
|
4251
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4252
|
-
from: string;
|
|
4253
|
-
to: string;
|
|
4254
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4255
|
-
discriminator?: string | undefined;
|
|
4256
|
-
}[];
|
|
4257
|
-
coverage: {
|
|
4258
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
4259
|
-
scope: string;
|
|
4260
|
-
analyzer: string;
|
|
4261
|
-
reason?: string | undefined;
|
|
4262
|
-
analyzerVersion?: string | undefined;
|
|
4263
|
-
evidence?: {
|
|
4264
|
-
path: string;
|
|
4265
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4266
|
-
contentHash?: string | undefined;
|
|
4267
|
-
lineStart?: number | undefined;
|
|
4268
|
-
lineEnd?: number | undefined;
|
|
4269
|
-
context?: string | undefined;
|
|
4270
|
-
}[] | undefined;
|
|
4271
|
-
}[];
|
|
4272
|
-
diagnostics: {
|
|
4273
|
-
code: string;
|
|
4274
|
-
message: string;
|
|
4275
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
4276
|
-
id: string;
|
|
4277
|
-
severity: "off" | "info" | "warn" | "error";
|
|
4278
|
-
evidence: {
|
|
4279
|
-
path: string;
|
|
4280
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4281
|
-
contentHash?: string | undefined;
|
|
4282
|
-
lineStart?: number | undefined;
|
|
4283
|
-
lineEnd?: number | undefined;
|
|
4284
|
-
context?: string | undefined;
|
|
4285
|
-
}[];
|
|
4286
|
-
entityIds?: string[] | undefined;
|
|
4287
|
-
relationIds?: string[] | undefined;
|
|
4288
|
-
remediation?: string | undefined;
|
|
4289
|
-
}[];
|
|
4290
|
-
}, {
|
|
4291
|
-
entities?: {
|
|
4292
|
-
id: string;
|
|
4293
|
-
name: string;
|
|
4294
|
-
kind: string;
|
|
4295
|
-
evidence: {
|
|
4296
|
-
path: string;
|
|
4297
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4298
|
-
contentHash?: string | undefined;
|
|
4299
|
-
lineStart?: number | undefined;
|
|
4300
|
-
lineEnd?: number | undefined;
|
|
4301
|
-
context?: string | undefined;
|
|
4302
|
-
}[];
|
|
4303
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4304
|
-
path?: string | undefined;
|
|
4305
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4306
|
-
aliases?: string[] | undefined;
|
|
4307
|
-
}[] | undefined;
|
|
4308
|
-
relations?: {
|
|
4309
|
-
id: string;
|
|
4310
|
-
kind: string;
|
|
4311
|
-
evidence: {
|
|
4312
|
-
path: string;
|
|
4313
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4314
|
-
contentHash?: string | undefined;
|
|
4315
|
-
lineStart?: number | undefined;
|
|
4316
|
-
lineEnd?: number | undefined;
|
|
4317
|
-
context?: string | undefined;
|
|
4318
|
-
}[];
|
|
4319
|
-
provenance: "observed" | "declared" | "proposed";
|
|
4320
|
-
from: string;
|
|
4321
|
-
to: string;
|
|
4322
|
-
metadata?: Record<string, unknown> | undefined;
|
|
4323
|
-
discriminator?: string | undefined;
|
|
4324
|
-
}[] | undefined;
|
|
4325
|
-
coverage?: {
|
|
4326
|
-
status: "partial" | "not-analyzed" | "complete" | "not-applicable";
|
|
4327
|
-
scope: string;
|
|
4328
|
-
analyzer: string;
|
|
4329
|
-
reason?: string | undefined;
|
|
4330
|
-
analyzerVersion?: string | undefined;
|
|
4331
|
-
evidence?: {
|
|
4332
|
-
path: string;
|
|
4333
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4334
|
-
contentHash?: string | undefined;
|
|
4335
|
-
lineStart?: number | undefined;
|
|
4336
|
-
lineEnd?: number | undefined;
|
|
4337
|
-
context?: string | undefined;
|
|
4338
|
-
}[] | undefined;
|
|
4339
|
-
}[] | undefined;
|
|
4340
|
-
diagnostics?: {
|
|
4341
|
-
code: string;
|
|
4342
|
-
message: string;
|
|
4343
|
-
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
4344
|
-
id: string;
|
|
4345
|
-
severity: "off" | "info" | "warn" | "error";
|
|
4346
|
-
evidence: {
|
|
4347
|
-
path: string;
|
|
4348
|
-
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
4349
|
-
contentHash?: string | undefined;
|
|
4350
|
-
lineStart?: number | undefined;
|
|
4351
|
-
lineEnd?: number | undefined;
|
|
4352
|
-
context?: string | undefined;
|
|
4353
|
-
}[];
|
|
4354
|
-
entityIds?: string[] | undefined;
|
|
4355
|
-
relationIds?: string[] | undefined;
|
|
4356
|
-
remediation?: string | undefined;
|
|
4357
|
-
}[] | undefined;
|
|
4358
|
-
}>;
|
|
2310
|
+
}, z.core.$strict>>>;
|
|
2311
|
+
}, z.core.$strict>;
|
|
4359
2312
|
type AnalyzerPluginOutput = z.infer<typeof AnalyzerPluginOutputSchema>;
|
|
4360
2313
|
type AnalyzerPluginInput = {
|
|
4361
2314
|
readonly language: string;
|
|
@@ -4384,56 +2337,16 @@ declare const BENCHMARK_SCHEMA_VERSION: 1;
|
|
|
4384
2337
|
declare const BenchmarkFixtureV1Schema: z.ZodObject<{
|
|
4385
2338
|
schemaVersion: z.ZodLiteral<1>;
|
|
4386
2339
|
supported: z.ZodObject<{
|
|
4387
|
-
entities: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4388
|
-
relations: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4389
|
-
findings: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4390
|
-
},
|
|
4391
|
-
entities: string[];
|
|
4392
|
-
relations: string[];
|
|
4393
|
-
findings: string[];
|
|
4394
|
-
}, {
|
|
4395
|
-
entities?: string[] | undefined;
|
|
4396
|
-
relations?: string[] | undefined;
|
|
4397
|
-
findings?: string[] | undefined;
|
|
4398
|
-
}>;
|
|
2340
|
+
entities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2341
|
+
relations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2342
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2343
|
+
}, z.core.$strict>;
|
|
4399
2344
|
excluded: z.ZodOptional<z.ZodObject<{
|
|
4400
|
-
entities: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4401
|
-
relations: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4402
|
-
findings: z.ZodDefault<z.ZodArray<z.ZodString
|
|
4403
|
-
},
|
|
4404
|
-
|
|
4405
|
-
relations: string[];
|
|
4406
|
-
findings: string[];
|
|
4407
|
-
}, {
|
|
4408
|
-
entities?: string[] | undefined;
|
|
4409
|
-
relations?: string[] | undefined;
|
|
4410
|
-
findings?: string[] | undefined;
|
|
4411
|
-
}>>;
|
|
4412
|
-
}, "strict", z.ZodTypeAny, {
|
|
4413
|
-
schemaVersion: 1;
|
|
4414
|
-
supported: {
|
|
4415
|
-
entities: string[];
|
|
4416
|
-
relations: string[];
|
|
4417
|
-
findings: string[];
|
|
4418
|
-
};
|
|
4419
|
-
excluded?: {
|
|
4420
|
-
entities: string[];
|
|
4421
|
-
relations: string[];
|
|
4422
|
-
findings: string[];
|
|
4423
|
-
} | undefined;
|
|
4424
|
-
}, {
|
|
4425
|
-
schemaVersion: 1;
|
|
4426
|
-
supported: {
|
|
4427
|
-
entities?: string[] | undefined;
|
|
4428
|
-
relations?: string[] | undefined;
|
|
4429
|
-
findings?: string[] | undefined;
|
|
4430
|
-
};
|
|
4431
|
-
excluded?: {
|
|
4432
|
-
entities?: string[] | undefined;
|
|
4433
|
-
relations?: string[] | undefined;
|
|
4434
|
-
findings?: string[] | undefined;
|
|
4435
|
-
} | undefined;
|
|
4436
|
-
}>;
|
|
2345
|
+
entities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2346
|
+
relations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2347
|
+
findings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
2348
|
+
}, z.core.$strict>>;
|
|
2349
|
+
}, z.core.$strict>;
|
|
4437
2350
|
type BenchmarkFixtureV1 = z.infer<typeof BenchmarkFixtureV1Schema>;
|
|
4438
2351
|
type BenchmarkObservation = {
|
|
4439
2352
|
readonly entities: readonly string[];
|
|
@@ -4572,7 +2485,7 @@ declare const chunksFromMarkdown: (property: string, raw: string, sourceUrl: str
|
|
|
4572
2485
|
declare const loadFederatedChunks: (root: string, config: DocBridgeConfigV1, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
4573
2486
|
declare const retrieveHybridChunks: (root: string, config: DocBridgeConfigV1, index: DocBridgeIndexV1, query: string, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
4574
2487
|
|
|
4575
|
-
declare const PACKAGE_VERSION = "1.7.
|
|
2488
|
+
declare const PACKAGE_VERSION = "1.7.45";
|
|
4576
2489
|
|
|
4577
2490
|
type FrontmatterValue = string | boolean | readonly string[];
|
|
4578
2491
|
type FrontmatterData = Record<string, FrontmatterValue>;
|