kibi-cli 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-json-command.d.ts +1 -2
- package/dist/cli-json-command.d.ts.map +1 -1
- package/dist/cli-json-command.js +88 -44
- package/dist/cli-operation-loader.d.ts +3 -0
- package/dist/cli-operation-loader.d.ts.map +1 -0
- package/dist/cli-operation-loader.js +58 -0
- package/dist/cli-operation-metadata.d.ts +82 -0
- package/dist/cli-operation-metadata.d.ts.map +1 -0
- package/dist/cli-operation-metadata.js +106 -0
- package/dist/cli-protocol.d.ts +1 -1
- package/dist/cli-protocol.d.ts.map +1 -1
- package/dist/cli-protocol.js +4 -3
- package/dist/cli-register-foundation.d.ts.map +1 -1
- package/dist/cli-register-foundation.js +14 -17
- package/dist/cli-register-json.d.ts +3 -0
- package/dist/cli-register-json.d.ts.map +1 -0
- package/dist/cli-register-json.js +35 -0
- package/dist/cli-register-maintenance.d.ts.map +1 -1
- package/dist/cli-register-maintenance.js +41 -8
- package/dist/cli-register-reporting.d.ts.map +1 -1
- package/dist/cli-register-reporting.js +18 -14
- package/dist/cli-register-skills.d.ts.map +1 -1
- package/dist/cli-register-skills.js +8 -6
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -2
- package/dist/commands/aggregated-checks.d.ts.map +1 -1
- package/dist/commands/aggregated-checks.js +1 -0
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +30 -12
- package/dist/commands/coverage.d.ts +5 -0
- package/dist/commands/coverage.d.ts.map +1 -1
- package/dist/commands/coverage.js +6 -1
- package/dist/commands/discovery-shared.d.ts +2 -1
- package/dist/commands/discovery-shared.d.ts.map +1 -1
- package/dist/commands/discovery-shared.js +35 -13
- package/dist/commands/discovery-table.d.ts.map +1 -1
- package/dist/commands/discovery-table.js +96 -5
- package/dist/commands/engine.d.ts +8 -0
- package/dist/commands/engine.d.ts.map +1 -0
- package/dist/commands/engine.js +100 -0
- package/dist/commands/gaps.js +1 -1
- package/dist/commands/graph.js +1 -1
- package/dist/commands/query.d.ts.map +1 -1
- package/dist/commands/query.js +3 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +3 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +2 -1
- package/dist/commands/sync/cache.d.ts +12 -0
- package/dist/commands/sync/cache.d.ts.map +1 -1
- package/dist/commands/sync/cache.js +38 -1
- package/dist/commands/sync/persistence.d.ts +10 -1
- package/dist/commands/sync/persistence.d.ts.map +1 -1
- package/dist/commands/sync/persistence.js +276 -43
- package/dist/commands/sync/staging.d.ts +10 -1
- package/dist/commands/sync/staging.d.ts.map +1 -1
- package/dist/commands/sync/staging.js +84 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +521 -27
- package/dist/commands/usage-metrics.d.ts +66 -2
- package/dist/commands/usage-metrics.d.ts.map +1 -1
- package/dist/commands/usage-metrics.js +34 -24
- package/dist/commands/usage-remediation.d.ts +9 -0
- package/dist/commands/usage-remediation.d.ts.map +1 -0
- package/dist/commands/usage-remediation.js +52 -0
- package/dist/engine-daemon.d.ts +3 -0
- package/dist/engine-daemon.d.ts.map +1 -0
- package/dist/engine-daemon.js +34 -0
- package/dist/engine.d.ts +63 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +1256 -0
- package/dist/extractors/markdown.d.ts +8 -0
- package/dist/extractors/markdown.d.ts.map +1 -1
- package/dist/extractors/markdown.js +69 -2
- package/dist/extractors/relationships.d.ts +2 -0
- package/dist/extractors/relationships.d.ts.map +1 -1
- package/dist/extractors/relationships.js +15 -17
- package/dist/operations/modeling/logic-modeling.d.ts.map +1 -1
- package/dist/operations/modeling/logic-modeling.js +14 -5
- package/dist/operations/modeling/model-requirement.d.ts.map +1 -1
- package/dist/operations/modeling/model-requirement.js +27 -2
- package/dist/operations/modeling/predicate-applyplan.d.ts +1 -1
- package/dist/operations/modeling/predicate-applyplan.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applyplan.js +18 -6
- package/dist/operations/modeling/predicate-inference.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-inference.js +5 -17
- package/dist/operations/modeling/predicate-loader.js +1 -1
- package/dist/operations/modeling/predicate-types.d.ts +9 -1
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.d.ts.map +1 -1
- package/dist/operations/modeling/suggest-predicates.js +35 -11
- package/dist/operations/mutation/audit.js +1 -1
- package/dist/operations/mutation/contradictions.d.ts +1 -1
- package/dist/operations/mutation/contradictions.d.ts.map +1 -1
- package/dist/operations/mutation/contradictions.js +23 -18
- package/dist/operations/mutation/serialization.d.ts.map +1 -1
- package/dist/operations/mutation/serialization.js +6 -3
- package/dist/operations/mutation/upsert.d.ts +3 -1
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +51 -12
- package/dist/operations/mutation/validate-upsert.d.ts.map +1 -1
- package/dist/operations/mutation/validate-upsert.js +18 -2
- package/dist/operations/mutation/validation.d.ts.map +1 -1
- package/dist/operations/mutation/validation.js +8 -0
- package/dist/operations/semantic-advisor/analysis-receipt.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analysis-receipt.js +7 -1
- package/dist/operations/semantic-advisor/analyze-prose.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/analyze-prose.js +76 -61
- package/dist/operations/semantic-advisor/clauses.d.ts +1 -0
- package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/clauses.js +7 -7
- package/dist/operations/semantic-advisor/ingestion-boundary.d.ts +18 -0
- package/dist/operations/semantic-advisor/ingestion-boundary.d.ts.map +1 -0
- package/dist/operations/semantic-advisor/ingestion-boundary.js +167 -0
- package/dist/operations/semantic-advisor/shared.d.ts +8 -0
- package/dist/operations/semantic-advisor/shared.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/shared.js +37 -3
- package/dist/operations/semantic-advisor/types.d.ts +5 -0
- package/dist/operations/semantic-advisor/types.d.ts.map +1 -1
- package/dist/prolog/codec.d.ts.map +1 -1
- package/dist/prolog/codec.js +9 -2
- package/dist/prolog.d.ts +14 -0
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +279 -69
- package/dist/public/diagnostic-usage.d.ts +17 -0
- package/dist/public/diagnostic-usage.d.ts.map +1 -0
- package/dist/public/diagnostic-usage.js +152 -0
- package/dist/public/distribution-parity.d.ts +90 -0
- package/dist/public/distribution-parity.d.ts.map +1 -0
- package/dist/public/distribution-parity.js +367 -0
- package/dist/public/impact/full-kb-quality.d.ts +2 -0
- package/dist/public/impact/full-kb-quality.d.ts.map +1 -1
- package/dist/public/impact/full-kb-quality.js +53 -1
- package/dist/public/impact-diagnostics.d.ts +2 -0
- package/dist/public/impact-diagnostics.d.ts.map +1 -1
- package/dist/public/impact-diagnostics.js +1 -0
- package/dist/public/operations/catalog.d.ts +151 -6
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/check-executor.d.ts.map +1 -1
- package/dist/public/operations/check-executor.js +4 -0
- package/dist/public/operations/discovery-entities.d.ts.map +1 -1
- package/dist/public/operations/discovery-entities.js +3 -2
- package/dist/public/operations/discovery-executors.d.ts +6 -0
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +58 -5
- package/dist/public/operations/index.d.ts +4 -0
- package/dist/public/operations/index.d.ts.map +1 -1
- package/dist/public/operations/index.js +4 -0
- package/dist/public/operations/legacy-migration-plan.d.ts +113 -0
- package/dist/public/operations/legacy-migration-plan.d.ts.map +1 -0
- package/dist/public/operations/legacy-migration-plan.js +409 -0
- package/dist/public/operations/node-ports.d.ts.map +1 -1
- package/dist/public/operations/node-ports.js +90 -0
- package/dist/public/operations/prolog-json.d.ts.map +1 -1
- package/dist/public/operations/prolog-json.js +14 -4
- package/dist/public/operations/repair-plan.d.ts +184 -0
- package/dist/public/operations/repair-plan.d.ts.map +1 -0
- package/dist/public/operations/repair-plan.js +397 -0
- package/dist/public/operations/runtime-types.d.ts +38 -0
- package/dist/public/operations/runtime-types.d.ts.map +1 -1
- package/dist/public/operations/specs/check.d.ts +2 -2
- package/dist/public/operations/specs/check.js +2 -2
- package/dist/public/operations/specs/discovery.d.ts +1 -1
- package/dist/public/operations/specs/discovery.js +1 -1
- package/dist/public/operations/specs/modeling.d.ts +19 -1
- package/dist/public/operations/specs/modeling.d.ts.map +1 -1
- package/dist/public/operations/specs/modeling.js +16 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts +96 -1
- package/dist/public/operations/specs/mutation-schemas.d.ts.map +1 -1
- package/dist/public/operations/specs/mutation-schemas.js +40 -1
- package/dist/public/operations/specs/reporting.d.ts +42 -1
- package/dist/public/operations/specs/reporting.d.ts.map +1 -1
- package/dist/public/operations/specs/reporting.js +70 -6
- package/dist/public/operations/specs/semantic.js +1 -1
- package/dist/public/operations/specs/upsert.d.ts +96 -1
- package/dist/public/operations/specs/upsert.d.ts.map +1 -1
- package/dist/public/operations/workspace-snapshot.d.ts +10 -0
- package/dist/public/operations/workspace-snapshot.d.ts.map +1 -0
- package/dist/public/operations/workspace-snapshot.js +20 -0
- package/dist/public/schemas/entity.d.ts.map +1 -1
- package/dist/public/schemas/entity.js +43 -1
- package/dist/public/skills/init-kibi/SKILL.md +2 -2
- package/dist/public/skills/kibi-freshness/SKILL.md +2 -2
- package/dist/public/skills/kibi-traceability/SKILL.md +8 -2
- package/dist/public/skills/kibi-usage/SKILL.md +12 -6
- package/dist/public/skills/kibi-usage/resources/fact-lanes.md +1 -1
- package/dist/public/skills/kibi-usage/resources/logic-ir.md +1 -1
- package/dist/public/skills/kibi-usage/resources/operation-access.md +1 -1
- package/dist/public/skills/kibi-usage/resources/workflows.md +19 -2
- package/dist/public/telemetry-acceptance.d.ts +89 -0
- package/dist/public/telemetry-acceptance.d.ts.map +1 -0
- package/dist/public/telemetry-acceptance.js +597 -0
- package/dist/public/telemetry-remediation.d.ts +33 -0
- package/dist/public/telemetry-remediation.d.ts.map +1 -0
- package/dist/public/telemetry-remediation.js +257 -0
- package/dist/public/verification-receipt.d.ts +75 -0
- package/dist/public/verification-receipt.d.ts.map +1 -0
- package/dist/public/verification-receipt.js +129 -0
- package/dist/runtime/cli-runtime.d.ts.map +1 -1
- package/dist/runtime/cli-runtime.js +33 -37
- package/dist/schemas/entity.schema.json +96 -2
- package/dist/traceability/temp-kb.d.ts.map +1 -1
- package/dist/traceability/temp-kb.js +36 -3
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/utils/rule-registry.d.ts +2 -0
- package/dist/utils/rule-registry.d.ts.map +1 -1
- package/package.json +36 -4
- package/src/public/diagnostic-usage.ts +206 -0
- package/src/public/distribution-parity.ts +580 -0
- package/src/public/impact/full-kb-quality.ts +74 -1
- package/src/public/impact-diagnostics.ts +16 -0
- package/src/public/operations/check-executor.ts +4 -0
- package/src/public/operations/discovery-entities.ts +3 -2
- package/src/public/operations/discovery-executors.ts +68 -5
- package/src/public/operations/index.ts +4 -0
- package/src/public/operations/legacy-migration-plan.ts +688 -0
- package/src/public/operations/node-ports.ts +109 -0
- package/src/public/operations/prolog-json.ts +15 -3
- package/src/public/operations/repair-plan.ts +562 -0
- package/src/public/operations/runtime-types.ts +47 -0
- package/src/public/operations/specs/check.ts +2 -2
- package/src/public/operations/specs/discovery.ts +1 -1
- package/src/public/operations/specs/modeling.ts +19 -1
- package/src/public/operations/specs/mutation-schemas.ts +47 -1
- package/src/public/operations/specs/reporting.ts +91 -6
- package/src/public/operations/specs/semantic.ts +1 -1
- package/src/public/operations/workspace-snapshot.ts +28 -0
- package/src/public/schemas/entity.ts +44 -1
- package/src/public/skills/init-kibi/SKILL.md +2 -2
- package/src/public/skills/kibi-freshness/SKILL.md +2 -2
- package/src/public/skills/kibi-traceability/SKILL.md +8 -2
- package/src/public/skills/kibi-usage/SKILL.md +12 -6
- package/src/public/skills/kibi-usage/resources/fact-lanes.md +1 -1
- package/src/public/skills/kibi-usage/resources/logic-ir.md +1 -1
- package/src/public/skills/kibi-usage/resources/operation-access.md +1 -1
- package/src/public/skills/kibi-usage/resources/workflows.md +19 -2
- package/src/public/telemetry-acceptance.ts +859 -0
- package/src/public/telemetry-remediation.ts +462 -0
- package/src/public/verification-receipt.ts +170 -0
- package/src/schemas/entity.schema.json +96 -2
|
@@ -8,6 +8,13 @@ export {
|
|
|
8
8
|
} from "./impact/diagnostics.js";
|
|
9
9
|
export { createRequirementQualityDiagnostics } from "./impact/requirement-quality.js";
|
|
10
10
|
export { createSymbolQualityDiagnostics } from "./impact/symbol-quality.js";
|
|
11
|
+
export {
|
|
12
|
+
DEFAULT_TELEMETRY_ACCEPTANCE_POLICY,
|
|
13
|
+
TELEMETRY_ACCEPTANCE_VERSION,
|
|
14
|
+
analyzeTelemetryAcceptance,
|
|
15
|
+
createTelemetryAcceptanceDiagnostics,
|
|
16
|
+
parseTelemetryUsageLog,
|
|
17
|
+
} from "./telemetry-acceptance.js";
|
|
11
18
|
export type {
|
|
12
19
|
ChangedFileImpactOptions,
|
|
13
20
|
ChangedFileImpactResult,
|
|
@@ -20,3 +27,12 @@ export type {
|
|
|
20
27
|
SymbolGranularityDiagnosticsOptions,
|
|
21
28
|
SymbolQualityDiagnosticsOptions,
|
|
22
29
|
} from "./impact/types.js";
|
|
30
|
+
export type {
|
|
31
|
+
TelemetryAcceptanceMetric,
|
|
32
|
+
TelemetryAcceptancePolicy,
|
|
33
|
+
TelemetryAcceptanceReport,
|
|
34
|
+
TelemetryAcceptanceStatus,
|
|
35
|
+
TelemetryMetricId,
|
|
36
|
+
TelemetryMetricStatus,
|
|
37
|
+
TelemetryUsageEvent,
|
|
38
|
+
} from "./telemetry-acceptance.js";
|
|
@@ -102,6 +102,8 @@ export async function executeCheck(
|
|
|
102
102
|
? impactQualityDiagnostics
|
|
103
103
|
: await collectFullKbQualityDiagnostics({
|
|
104
104
|
prolog,
|
|
105
|
+
workspaceRoot,
|
|
106
|
+
now: context.clock(),
|
|
105
107
|
...maxDiagnosticsOption,
|
|
106
108
|
});
|
|
107
109
|
return {
|
|
@@ -157,6 +159,8 @@ export async function executeCheck(
|
|
|
157
159
|
: await collectFullKbQualityDiagnostics({
|
|
158
160
|
prolog,
|
|
159
161
|
hardViolationEntityIds: new Set(violations.map((v) => v.entityId)),
|
|
162
|
+
workspaceRoot,
|
|
163
|
+
now: context.clock(),
|
|
160
164
|
...maxDiagnosticsOption,
|
|
161
165
|
});
|
|
162
166
|
|
|
@@ -54,11 +54,12 @@ export function buildEntityGoal(input: EntityQueryInput): string {
|
|
|
54
54
|
return `findall(['${safeId}',Type,Props], kb_entity('${safeId}', Type, Props), Results)`;
|
|
55
55
|
}
|
|
56
56
|
if (tags && tags.length > 0) {
|
|
57
|
+
const tagTerms = tags.map((tag) => `'${escapeAtomContent(tag)}'`).join(",");
|
|
57
58
|
if (type) {
|
|
58
59
|
const safeType = escapeAtomContent(type);
|
|
59
|
-
return `findall([Id,'${safeType}',Props], kb_entity(Id, '${safeType}', Props), Results)`;
|
|
60
|
+
return `findall([Id,'${safeType}',Props], (member(Tag, [${tagTerms}]), kb_entities_by_tag(Tag, TagIds), member(Id, TagIds), kb_entity(Id, '${safeType}', Props)), Results)`;
|
|
60
61
|
}
|
|
61
|
-
return
|
|
62
|
+
return `findall([Id,Type,Props], (member(Tag, [${tagTerms}]), kb_entities_by_tag(Tag, TagIds), member(Id, TagIds), kb_entity(Id, Type, Props)), Results)`;
|
|
62
63
|
}
|
|
63
64
|
if (type) {
|
|
64
65
|
const safeType = escapeAtomContent(type);
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
import { runOperationJsonQuery } from "./prolog-json.js";
|
|
9
9
|
import type { OperationContext, PrologPort } from "./runtime-types.js";
|
|
10
10
|
import type { OperationResult } from "./types.js";
|
|
11
|
+
import { readWorkspaceSnapshot } from "./workspace-snapshot.js";
|
|
11
12
|
|
|
12
13
|
export type QueryInput = {
|
|
13
14
|
readonly type?: string;
|
|
@@ -45,6 +46,12 @@ export type StatusPayload = {
|
|
|
45
46
|
readonly syncState: string;
|
|
46
47
|
readonly kbPath?: string;
|
|
47
48
|
readonly lastSyncSource?: string;
|
|
49
|
+
readonly verificationSnapshot?: string;
|
|
50
|
+
readonly verificationSnapshotAvailable?: boolean;
|
|
51
|
+
readonly verificationSnapshotDirty?: boolean;
|
|
52
|
+
readonly verificationSnapshotFileCount?: number;
|
|
53
|
+
readonly verificationSnapshotVersion?: string;
|
|
54
|
+
readonly verificationSnapshotError?: string;
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
function requireProlog(context: OperationContext): PrologPort {
|
|
@@ -73,6 +80,36 @@ export async function executeQuery(
|
|
|
73
80
|
// implements REQ-kibi-operation-interface-parity
|
|
74
81
|
const { type, id, tags, sourceFile, limit = 100, offset = 0 } = input;
|
|
75
82
|
try {
|
|
83
|
+
const prolog = requireProlog(context);
|
|
84
|
+
const indexedPage = prolog.queryEntities
|
|
85
|
+
? await prolog.queryEntities({
|
|
86
|
+
...(type !== undefined ? { type } : {}),
|
|
87
|
+
...(id !== undefined ? { id } : {}),
|
|
88
|
+
...(tags !== undefined ? { tags } : {}),
|
|
89
|
+
...(sourceFile !== undefined ? { sourceFile } : {}),
|
|
90
|
+
limit,
|
|
91
|
+
offset,
|
|
92
|
+
})
|
|
93
|
+
: null;
|
|
94
|
+
if (indexedPage !== null) {
|
|
95
|
+
const paginated = indexedPage.entities;
|
|
96
|
+
const text =
|
|
97
|
+
indexedPage.count === 0
|
|
98
|
+
? `No entities found${type ? ` of type '${type}'` : ""}.`
|
|
99
|
+
: `Found ${indexedPage.count} entities${type ? ` of type '${type}'` : ""}. Showing ${paginated.length} (offset ${offset}, limit ${limit}): ${paginated
|
|
100
|
+
.map((entity) => {
|
|
101
|
+
const entityId = String(entity.id ?? "").replace(
|
|
102
|
+
/^file:\/\/.*\//,
|
|
103
|
+
"",
|
|
104
|
+
);
|
|
105
|
+
return `${entityId} (${String(entity.title ?? "")}, status=${String(entity.status ?? "")})`;
|
|
106
|
+
})
|
|
107
|
+
.join(", ")}`;
|
|
108
|
+
return {
|
|
109
|
+
content: [{ type: "text", text }],
|
|
110
|
+
structuredContent: { entities: paginated, count: indexedPage.count },
|
|
111
|
+
};
|
|
112
|
+
}
|
|
76
113
|
const entities = await loadEntities(requireProlog(context), {
|
|
77
114
|
...(type !== undefined ? { type } : {}),
|
|
78
115
|
...(id !== undefined ? { id } : {}),
|
|
@@ -116,9 +153,20 @@ export async function executeSearch(
|
|
|
116
153
|
}
|
|
117
154
|
validateEntityType(type);
|
|
118
155
|
try {
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
156
|
+
const prolog = requireProlog(context);
|
|
157
|
+
const indexedCandidates = prolog.searchEntities
|
|
158
|
+
? await prolog.searchEntities({
|
|
159
|
+
query: trimmedQuery,
|
|
160
|
+
...(type !== undefined ? { type } : {}),
|
|
161
|
+
limit: 100_000,
|
|
162
|
+
offset: 0,
|
|
163
|
+
})
|
|
164
|
+
: null;
|
|
165
|
+
const entities = indexedCandidates
|
|
166
|
+
? [...indexedCandidates.entities]
|
|
167
|
+
: await loadEntities(prolog, {
|
|
168
|
+
...(type !== undefined ? { type } : {}),
|
|
169
|
+
});
|
|
122
170
|
const matches = await rankEntities(
|
|
123
171
|
entities,
|
|
124
172
|
trimmedQuery,
|
|
@@ -160,14 +208,29 @@ export async function executeStatus(
|
|
|
160
208
|
if (!isStatusPayload(payload)) {
|
|
161
209
|
throw new Error("Status execution query returned an invalid payload");
|
|
162
210
|
}
|
|
211
|
+
const snapshotEvidence = await readWorkspaceSnapshot(context);
|
|
212
|
+
const enrichedPayload: StatusPayload = {
|
|
213
|
+
...payload,
|
|
214
|
+
verificationSnapshot: snapshotEvidence.available
|
|
215
|
+
? snapshotEvidence.snapshot.hash
|
|
216
|
+
: "unknown",
|
|
217
|
+
verificationSnapshotAvailable: snapshotEvidence.available,
|
|
218
|
+
...(snapshotEvidence.available
|
|
219
|
+
? {
|
|
220
|
+
verificationSnapshotDirty: snapshotEvidence.snapshot.dirty,
|
|
221
|
+
verificationSnapshotFileCount: snapshotEvidence.snapshot.fileCount,
|
|
222
|
+
verificationSnapshotVersion: snapshotEvidence.snapshot.version,
|
|
223
|
+
}
|
|
224
|
+
: { verificationSnapshotError: snapshotEvidence.error }),
|
|
225
|
+
};
|
|
163
226
|
return {
|
|
164
227
|
content: [
|
|
165
228
|
{
|
|
166
229
|
type: "text",
|
|
167
|
-
text: `Branch ${payload.branch} is ${payload.syncState} (snapshot ${payload.snapshotId}, dirty=${payload.dirty})`,
|
|
230
|
+
text: `Branch ${payload.branch} is ${payload.syncState} (snapshot ${payload.snapshotId}, dirty=${payload.dirty}, verificationSnapshot=${enrichedPayload.verificationSnapshot})`,
|
|
168
231
|
},
|
|
169
232
|
],
|
|
170
|
-
structuredContent:
|
|
233
|
+
structuredContent: enrichedPayload,
|
|
171
234
|
};
|
|
172
235
|
} catch (error) {
|
|
173
236
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -4,6 +4,8 @@ export * from "./discovery-entities.js";
|
|
|
4
4
|
export * from "./discovery-executors.js";
|
|
5
5
|
export * from "./runtime-types.js";
|
|
6
6
|
export * from "./node-ports.js";
|
|
7
|
+
export * from "./repair-plan.js";
|
|
8
|
+
export * from "./legacy-migration-plan.js";
|
|
7
9
|
export * from "./specs/autopilot.js";
|
|
8
10
|
export * from "./specs/check.js";
|
|
9
11
|
export * from "./specs/discovery.js";
|
|
@@ -14,6 +16,8 @@ export * from "./specs/semantic.js";
|
|
|
14
16
|
export * from "./specs/skills.js";
|
|
15
17
|
export * from "./specs/sparql.js";
|
|
16
18
|
export * from "./types.js";
|
|
19
|
+
export * from "../telemetry-acceptance.js";
|
|
20
|
+
export * from "../telemetry-remediation.js";
|
|
17
21
|
export * from "../../operations/autopilot/generate.js";
|
|
18
22
|
export * from "../../operations/autopilot/presentation.js";
|
|
19
23
|
export type * from "../../operations/autopilot/types.js";
|