kibi-cli 2.17.0 → 2.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-operation-metadata.d.ts +1 -1
- package/dist/cli-operation-metadata.js +1 -1
- package/dist/cli-register-proof.js +9 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -6
- package/dist/commands/sync/manifest.d.ts +10 -0
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +27 -0
- package/dist/commands/sync/untracked-targets.d.ts +17 -0
- package/dist/commands/sync/untracked-targets.d.ts.map +1 -1
- package/dist/commands/sync/untracked-targets.js +81 -9
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +76 -6
- package/dist/engine.d.ts +4 -0
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +56 -33
- package/dist/operations/modeling/predicate-applicability.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-applicability.js +5 -2
- package/dist/operations/modeling/predicate-catalog-4.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-catalog-4.js +4 -0
- package/dist/operations/modeling/predicate-loader.d.ts.map +1 -1
- package/dist/operations/modeling/predicate-loader.js +3 -0
- package/dist/operations/modeling/predicate-score-3.js +1 -1
- package/dist/operations/modeling/predicate-types.d.ts +5 -0
- package/dist/operations/modeling/predicate-types.d.ts.map +1 -1
- package/dist/operations/mutation/source-authoring.d.ts +9 -0
- package/dist/operations/mutation/source-authoring.d.ts.map +1 -1
- package/dist/operations/mutation/source-authoring.js +30 -1
- package/dist/operations/planning/apply-plan.d.ts.map +1 -1
- package/dist/operations/planning/apply-plan.js +10 -1
- package/dist/operations/semantic-advisor/clauses.d.ts.map +1 -1
- package/dist/operations/semantic-advisor/clauses.js +7 -1
- package/dist/prolog/store-lock.d.ts +41 -0
- package/dist/prolog/store-lock.d.ts.map +1 -1
- package/dist/prolog/store-lock.js +91 -1
- package/dist/prolog.d.ts +7 -1
- package/dist/prolog.d.ts.map +1 -1
- package/dist/prolog.js +21 -3
- package/dist/proof/inspect.d.ts +8 -1
- package/dist/proof/inspect.d.ts.map +1 -1
- package/dist/proof/inspect.js +19 -2
- package/dist/public/operations/catalog.d.ts +50 -1
- package/dist/public/operations/catalog.d.ts.map +1 -1
- package/dist/public/operations/contracts.d.ts.map +1 -1
- package/dist/public/operations/contracts.js +4 -4
- package/dist/public/operations/discovery-executors.d.ts +50 -1
- package/dist/public/operations/discovery-executors.d.ts.map +1 -1
- package/dist/public/operations/discovery-executors.js +418 -8
- package/dist/public/operations/migration-plan.d.ts +2 -0
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +31 -0
- package/dist/public/operations/source-relationship-parity.d.ts.map +1 -1
- package/dist/public/operations/source-relationship-parity.js +55 -1
- package/dist/public/operations/specs/discovery.d.ts +50 -1
- package/dist/public/operations/specs/discovery.d.ts.map +1 -1
- package/dist/public/operations/specs/discovery.js +56 -1
- package/dist/public/skills/kibi-usage/SKILL.md +20 -3
- package/dist/public/skills/kibi-usage/resources/proof.md +23 -0
- package/dist/runtime/cli-runtime.d.ts.map +1 -1
- package/dist/runtime/cli-runtime.js +7 -2
- package/dist/search-answer.d.ts +12 -3
- package/dist/search-answer.d.ts.map +1 -1
- package/dist/search-answer.js +51 -4
- package/dist/utils/branch-store.d.ts +8 -0
- package/dist/utils/branch-store.d.ts.map +1 -1
- package/dist/utils/branch-store.js +27 -1
- package/dist/utils/content-freshness.d.ts +13 -0
- package/dist/utils/content-freshness.d.ts.map +1 -0
- package/dist/utils/content-freshness.js +171 -0
- package/dist/utils/symbol-manifest-layout.d.ts +9 -0
- package/dist/utils/symbol-manifest-layout.d.ts.map +1 -0
- package/dist/utils/symbol-manifest-layout.js +18 -0
- package/package.json +2 -2
- package/src/public/operations/contracts.ts +7 -4
- package/src/public/operations/discovery-executors.ts +556 -6
- package/src/public/operations/migration-plan.ts +44 -0
- package/src/public/operations/source-relationship-parity.ts +60 -3
- package/src/public/operations/specs/discovery.ts +67 -1
- package/src/public/skills/kibi-usage/SKILL.md +20 -3
- package/src/public/skills/kibi-usage/resources/proof.md +23 -0
package/dist/prolog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prolog.d.ts","sourceRoot":"","sources":["../src/prolog.ts"],"names":[],"mappings":"AA2BA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,4BAA4B,CAAC;AAUpC,wBAAgB,eAAe,IAAI,MAAM,CAsCxC;AACD,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,IAAI,+BAA+B;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM;CAO3B;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAGD,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,EAC5B,OAAO,EAAE,MAAM,IAAI,EACnB,EAAE,GAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAChB,G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OAAO,CAAC,iBAAiB;YAkBX,oBAAoB;IAwClC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,eAAe;IAmCvB,sEAAsE;IACtE,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,cAAc;IAoGtB,SAAS,IAAI,OAAO;IASpB,MAAM,IAAI,MAAM;IAIhB,OAAO,CAAC,gBAAgB;IASxB;;;OAGG;IACG,SAAS,CAAC,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAqCnE"}
|
package/dist/prolog.js
CHANGED
|
@@ -826,7 +826,7 @@ export class PrologProcess {
|
|
|
826
826
|
// The child may have exited between the group and direct kill attempts.
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
async terminateProcessTree(child) {
|
|
829
|
+
async terminateProcessTree(child, graceMs = 0) {
|
|
830
830
|
let closed = false;
|
|
831
831
|
const exited = new Promise((resolve) => {
|
|
832
832
|
const markExited = () => {
|
|
@@ -836,6 +836,20 @@ export class PrologProcess {
|
|
|
836
836
|
child.once("close", markExited);
|
|
837
837
|
child.once("error", markExited);
|
|
838
838
|
});
|
|
839
|
+
if (graceMs > 0 && child.exitCode === null && child.signalCode === null) {
|
|
840
|
+
// implements REQ-core-journaled-engine-persistence
|
|
841
|
+
let graceTimer;
|
|
842
|
+
await Promise.race([
|
|
843
|
+
exited,
|
|
844
|
+
new Promise((resolve) => {
|
|
845
|
+
graceTimer = setTimeout(resolve, graceMs);
|
|
846
|
+
}),
|
|
847
|
+
]);
|
|
848
|
+
if (graceTimer)
|
|
849
|
+
clearTimeout(graceTimer);
|
|
850
|
+
if (closed)
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
839
853
|
if (child.exitCode === null)
|
|
840
854
|
this.signalProcessTree(child, "SIGTERM");
|
|
841
855
|
await Promise.race([
|
|
@@ -992,7 +1006,11 @@ export class PrologProcess {
|
|
|
992
1006
|
}
|
|
993
1007
|
return new PrologProcessTerminatedError(this.terminationReason ?? "process exited");
|
|
994
1008
|
}
|
|
995
|
-
|
|
1009
|
+
/**
|
|
1010
|
+
* Stop the Prolog child. `graceMs` lets the interactive toplevel halt on
|
|
1011
|
+
* stdin EOF (running its at_halt hooks) before it is signalled.
|
|
1012
|
+
*/
|
|
1013
|
+
async terminate(options = {}) {
|
|
996
1014
|
if (this.interactiveStarted) {
|
|
997
1015
|
this.terminationReason ??= "terminated";
|
|
998
1016
|
}
|
|
@@ -1012,7 +1030,7 @@ export class PrologProcess {
|
|
|
1012
1030
|
this.terminationPromise = (async () => {
|
|
1013
1031
|
if (current) {
|
|
1014
1032
|
current.stdin?.end();
|
|
1015
|
-
await this.terminateProcessTree(current);
|
|
1033
|
+
await this.terminateProcessTree(current, options.graceMs ?? 0);
|
|
1016
1034
|
}
|
|
1017
1035
|
await Promise.all(oneShots.map((child) => this.terminateProcessTree(child)));
|
|
1018
1036
|
})();
|
package/dist/proof/inspect.d.ts
CHANGED
|
@@ -5,7 +5,14 @@ export type ProofInspection = Readonly<{
|
|
|
5
5
|
buildSystems: readonly string[];
|
|
6
6
|
detectedRunners: readonly string[];
|
|
7
7
|
ciWorkflows: readonly string[];
|
|
8
|
+
/** Comma-joined ids of the configured integrations (kept for compatibility). */
|
|
8
9
|
currentIntegration: string | null;
|
|
10
|
+
/** Each configured integration with the producer and command it runs. */
|
|
11
|
+
currentIntegrations: readonly Readonly<{
|
|
12
|
+
id: string;
|
|
13
|
+
producer: string;
|
|
14
|
+
command: readonly string[];
|
|
15
|
+
}>[];
|
|
9
16
|
recommendation: string;
|
|
10
17
|
missing: readonly string[];
|
|
11
18
|
/** The integration Kibi proposes for the detected runner, if any. */
|
|
@@ -21,7 +28,7 @@ export type ProofInspection = Readonly<{
|
|
|
21
28
|
integrationPlanReason: string;
|
|
22
29
|
}>;
|
|
23
30
|
export type ProofInspectionOptions = Readonly<{
|
|
24
|
-
/** Plan
|
|
31
|
+
/** Plan adding this integration id, or replacing it when it exists. */
|
|
25
32
|
update?: string;
|
|
26
33
|
/** Command (argv) the proposed integration runs instead of the detected one. */
|
|
27
34
|
command?: readonly string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/proof/inspect.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,uBAAuB,CAAC;AAM/B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,qEAAqE;IACrE,mBAAmB,EAAE,mBAAmB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAC/D,6EAA6E;IAC7E,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IACjE;;;OAGG;IACH,eAAe,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,sDAAsD;IACtD,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/proof/inspect.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,uBAAuB,CAAC;AAM/B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,gFAAgF;IAChF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,yEAAyE;IACzE,mBAAmB,EAAE,SAAS,QAAQ,CAAC;QACrC,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;KAC5B,CAAC,EAAE,CAAC;IACL,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,qEAAqE;IACrE,mBAAmB,EAAE,mBAAmB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAC/D,6EAA6E;IAC7E,gBAAgB,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IACjE;;;OAGG;IACH,eAAe,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,sDAAsD;IACtD,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAC;AAwIH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAMT;AA2BD,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAiHjB"}
|
package/dist/proof/inspect.js
CHANGED
|
@@ -208,11 +208,27 @@ export function inspectProofEnvironment(root, options = {}) {
|
|
|
208
208
|
const currentIntegration = integrations.available
|
|
209
209
|
? integrations.integrations.integrations.map((entry) => entry.id).join(", ")
|
|
210
210
|
: null;
|
|
211
|
+
// implements REQ-kibi-verification-evidence-contract
|
|
212
|
+
// The id alone does not say what `kibi prove` will run; expose the command.
|
|
213
|
+
const currentIntegrations = integrations.available
|
|
214
|
+
? integrations.integrations.integrations.map((entry) => ({
|
|
215
|
+
id: entry.id,
|
|
216
|
+
producer: entry.producer,
|
|
217
|
+
command: [...entry.command],
|
|
218
|
+
}))
|
|
219
|
+
: [];
|
|
211
220
|
const planned = buildProofIntegrationPlan(root, options);
|
|
212
221
|
const applyHint = "review integrationPlan, then apply it with kb_apply_plan (or `kibi apply-plan --input -`) passing plan, approvedPlanHash = plan.planHash and approvedActionIds";
|
|
222
|
+
const updateId = options.update?.trim() || undefined;
|
|
213
223
|
let recommendation;
|
|
214
|
-
if (planned.plan !== null &&
|
|
215
|
-
|
|
224
|
+
if (planned.plan !== null && updateId !== undefined) {
|
|
225
|
+
// implements REQ-kibi-verification-evidence-contract
|
|
226
|
+
// The plan adds an id the file does not have yet; only an existing one is
|
|
227
|
+
// replaced.
|
|
228
|
+
const verb = currentIntegrations.some((entry) => entry.id === updateId)
|
|
229
|
+
? "replace"
|
|
230
|
+
: "add";
|
|
231
|
+
recommendation = `To ${verb} integration '${updateId}', ${applyHint}.`;
|
|
216
232
|
}
|
|
217
233
|
else if (!integrations.available) {
|
|
218
234
|
if (planned.plan === null) {
|
|
@@ -235,6 +251,7 @@ export function inspectProofEnvironment(root, options = {}) {
|
|
|
235
251
|
detectedRunners: runners,
|
|
236
252
|
ciWorkflows,
|
|
237
253
|
currentIntegration,
|
|
254
|
+
currentIntegrations,
|
|
238
255
|
recommendation,
|
|
239
256
|
missing,
|
|
240
257
|
proposedIntegration: planned.proposal?.integration ?? null,
|
|
@@ -79,7 +79,7 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
79
79
|
}, {
|
|
80
80
|
readonly name: "kb_query";
|
|
81
81
|
readonly cliName: "query";
|
|
82
|
-
readonly description: "Read entities from the KB with filters. Use for
|
|
82
|
+
readonly description: "Read entities from the KB with exact filters, or ask typed fact questions. Use for lookup by id, type, tags or sourceFile, and for precise questions about modeled facts: predicate facts by name with named arguments (predicate + where), property facts of a subject (subjectKey + propertyKey), or the catalog of facts of one kind (factKind; 'predicate_schema' lists the predicates you can ask about with their argument names and constants). Typed answers return matching fact rows plus factQuery: the schema used, distinct counts, values that do exist when nothing matched, warnings about the question and the next call to make. Read-only. Tags filter by metadata tags only, not entity IDs.";
|
|
83
83
|
readonly businessInputSchema: {
|
|
84
84
|
readonly type: "object";
|
|
85
85
|
readonly properties: {
|
|
@@ -103,6 +103,55 @@ export declare const OPERATION_CATALOG: readonly [{
|
|
|
103
103
|
readonly type: "string";
|
|
104
104
|
readonly description: "Optional source-file substring filter. Example: 'src/auth/login.ts'. Uses KB source linkage, not file-system scanning.";
|
|
105
105
|
};
|
|
106
|
+
readonly factKind: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly enum: readonly ["subject", "property_value", "predicate", "predicate_schema", "observation", "meta", "rule", "rule_schema"];
|
|
109
|
+
readonly description: "Typed fact filter: list facts of one kind with their typed fields. 'predicate_schema' returns the catalog of askable predicates (argument names, constants, fact counts). Example: 'predicate_schema'.";
|
|
110
|
+
};
|
|
111
|
+
readonly predicate: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
readonly description: "Typed fact filter: predicate name to ask about, e.g. 'has_role' or 'permission_rule'. Combine with where for named arguments. Returns every stored fact of that predicate with its arguments, polarity and allow/deny effect.";
|
|
114
|
+
};
|
|
115
|
+
readonly namespace: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly description: "Optional predicate namespace when the same name exists in several. Default: any namespace.";
|
|
118
|
+
};
|
|
119
|
+
readonly where: {
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly additionalProperties: {
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
};
|
|
124
|
+
readonly description: "Named argument values for predicate, order-free, using the argument names from the predicate's schema. Example: {actor: 'admin', decision: 'allow'}. An unknown name returns a warning with the declared names; no match returns the values that do exist.";
|
|
125
|
+
};
|
|
126
|
+
readonly args: {
|
|
127
|
+
readonly type: "array";
|
|
128
|
+
readonly items: {
|
|
129
|
+
readonly type: readonly ["string", "null"];
|
|
130
|
+
};
|
|
131
|
+
readonly description: "Positional argument values for predicate when it has no schema; null matches any value. Example: ['admin', null, null, 'allow']. Prefer where.";
|
|
132
|
+
};
|
|
133
|
+
readonly polarity: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly enum: readonly ["assert", "deny"];
|
|
136
|
+
readonly description: "Optional polarity filter for predicate facts. Default: both.";
|
|
137
|
+
};
|
|
138
|
+
readonly scope: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly enum: readonly ["all", "current_requirements"];
|
|
141
|
+
readonly description: "Optional: 'current_requirements' keeps only facts a current (not superseded or retired) requirement requires.";
|
|
142
|
+
};
|
|
143
|
+
readonly distinct: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly description: "Optional argument name to count distinct values of across the matching predicate facts, e.g. distinct: 'role' with predicate 'has_role' and where {user: 'alice'} answers how many roles alice has.";
|
|
146
|
+
};
|
|
147
|
+
readonly subjectKey: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly description: "Typed fact filter: dotted subject key whose property facts to list, e.g. 'user.role_assignment'. Combine with propertyKey for one property.";
|
|
150
|
+
};
|
|
151
|
+
readonly propertyKey: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly description: "Optional property key under subjectKey, e.g. 'max_roles'. Returns operator, value and unit of each fact.";
|
|
154
|
+
};
|
|
106
155
|
readonly limit: {
|
|
107
156
|
readonly type: "number";
|
|
108
157
|
readonly default: 100;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/public/operations/catalog.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK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,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAsZpE;;uEAEuE;AACvE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,GAC1B,mBAAmB,CAMrB;
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/public/operations/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,aAAa,EACd,MAAM,YAAY,CAAC;AAEpB,oEAAoE;AACpE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAsZpE;;uEAEuE;AACvE,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,mBAAmB,GAC1B,mBAAmB,CAMrB;AAoXD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAa3C,CAAC;AAmDF,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,EAClD,YAAY,EAAE,MAAM,GACnB,IAAI,CAIN;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,SAAS,eAAe,EAAE,GAClC,SAAS,0BAA0B,EAAE,CAoBvC"}
|
|
@@ -345,16 +345,15 @@ const BASE_DATA_SCHEMAS = {
|
|
|
345
345
|
sourceType: stringValue,
|
|
346
346
|
}),
|
|
347
347
|
kb_skills_read: objectData({ content: stringValue }, ["content"]),
|
|
348
|
-
kb_query: objectData({ entities: recordArray, count: integerValue }, [
|
|
349
|
-
"entities",
|
|
350
|
-
"count",
|
|
351
|
-
]),
|
|
348
|
+
kb_query: objectData({ entities: recordArray, count: integerValue, factQuery: recordValue }, ["entities", "count"]),
|
|
352
349
|
kb_search: objectData({
|
|
353
350
|
results: valueArray,
|
|
354
351
|
count: integerValue,
|
|
355
352
|
truncated: booleanValue,
|
|
356
353
|
queryAnalysis: recordValue,
|
|
357
354
|
answer: recordValue,
|
|
355
|
+
branch: { type: ["string", "null"] },
|
|
356
|
+
branchStore: recordValue,
|
|
358
357
|
}, ["results", "count"]),
|
|
359
358
|
kb_status: objectData({
|
|
360
359
|
branch: stringValue,
|
|
@@ -377,6 +376,7 @@ const BASE_DATA_SCHEMAS = {
|
|
|
377
376
|
staleReasons: recordArray,
|
|
378
377
|
staleReasonCount: integerValue,
|
|
379
378
|
staleReasonsTruncated: booleanValue,
|
|
379
|
+
notices: recordArray,
|
|
380
380
|
branchAttachment: recordValue,
|
|
381
381
|
proofSnapshotChanges: recordArray,
|
|
382
382
|
proofSnapshotChangeCount: integerValue,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IntentSearchAnalysis, type IntentSearchFacets, type IntentSearchMatch, type SourceLocation } from "../../intent-search.js";
|
|
2
2
|
import { type SearchAnswer } from "../../search-answer.js";
|
|
3
3
|
import type { SearchMatch } from "../../search-ranking.js";
|
|
4
|
-
import { type BranchStoreInspection } from "../../utils/branch-store.js";
|
|
4
|
+
import { BRANCH_STORE_NOT_COMPILED, type BranchStoreInspection } from "../../utils/branch-store.js";
|
|
5
5
|
import { type MigrationConfigStatus, type MigrationPlan } from "./migration-plan.js";
|
|
6
6
|
import type { OperationContext } from "./runtime-types.js";
|
|
7
7
|
import type { OperationResult } from "./types.js";
|
|
@@ -12,11 +12,47 @@ export type QueryInput = {
|
|
|
12
12
|
readonly sourceFile?: string;
|
|
13
13
|
readonly limit?: number;
|
|
14
14
|
readonly offset?: number;
|
|
15
|
+
/** Typed fact filters (fact entities only); see `FACT_KINDS`. */
|
|
16
|
+
readonly factKind?: string;
|
|
17
|
+
readonly predicate?: string;
|
|
18
|
+
readonly namespace?: string;
|
|
19
|
+
readonly where?: Readonly<Record<string, string>>;
|
|
20
|
+
readonly args?: readonly (string | null)[];
|
|
21
|
+
readonly polarity?: "assert" | "deny";
|
|
22
|
+
readonly scope?: "all" | "current_requirements";
|
|
23
|
+
readonly distinct?: string;
|
|
24
|
+
readonly subjectKey?: string;
|
|
25
|
+
readonly propertyKey?: string;
|
|
15
26
|
};
|
|
27
|
+
/** A ready-to-run follow-up call the query suggests. */
|
|
28
|
+
export type QueryNextCall = Readonly<{
|
|
29
|
+
call: string;
|
|
30
|
+
why: string;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Typed-fact view of a kb_query answer: which predicate, property or fact
|
|
34
|
+
* kind was asked, the schema that names its arguments, distinct value counts,
|
|
35
|
+
* the values that do exist when nothing matched, warnings about the question
|
|
36
|
+
* itself and the follow-up calls that make sense next.
|
|
37
|
+
*/
|
|
38
|
+
export type FactQueryPayload = Readonly<{
|
|
39
|
+
mode: "predicate" | "property" | "schemas" | "fact_kind";
|
|
40
|
+
predicate?: Record<string, unknown>;
|
|
41
|
+
property?: Record<string, unknown>;
|
|
42
|
+
factKind?: string;
|
|
43
|
+
schema?: Record<string, unknown> | null;
|
|
44
|
+
subjectFacts?: readonly string[];
|
|
45
|
+
distinct?: Record<string, unknown> | null;
|
|
46
|
+
suggestions?: Record<string, unknown> | null;
|
|
47
|
+
warnings: readonly string[];
|
|
48
|
+
next: readonly QueryNextCall[];
|
|
49
|
+
}>;
|
|
16
50
|
export type QueryPayload = {
|
|
17
51
|
readonly entities: readonly Record<string, unknown>[];
|
|
18
52
|
readonly count: number;
|
|
53
|
+
readonly factQuery?: FactQueryPayload;
|
|
19
54
|
};
|
|
55
|
+
export declare const FACT_KINDS: readonly ["subject", "property_value", "predicate", "predicate_schema", "observation", "meta", "rule", "rule_schema"];
|
|
20
56
|
export type SearchInput = {
|
|
21
57
|
readonly query: string;
|
|
22
58
|
readonly type?: string;
|
|
@@ -35,6 +71,17 @@ export type SearchPayload = {
|
|
|
35
71
|
readonly truncated?: boolean;
|
|
36
72
|
readonly queryAnalysis?: IntentSearchAnalysis;
|
|
37
73
|
readonly answer?: SearchAnswer;
|
|
74
|
+
/** The Kibi branch whose store was searched, when the runtime attached one. */
|
|
75
|
+
readonly branch?: string | null;
|
|
76
|
+
/** Present when the searched store was never compiled for this branch. */
|
|
77
|
+
readonly branchStore?: SearchBranchStoreNotice;
|
|
78
|
+
};
|
|
79
|
+
export type SearchBranchStoreNotice = {
|
|
80
|
+
readonly state: "not_compiled";
|
|
81
|
+
readonly code: typeof BRANCH_STORE_NOT_COMPILED;
|
|
82
|
+
readonly path: string;
|
|
83
|
+
readonly detail: string;
|
|
84
|
+
readonly remediation: Readonly<Record<string, unknown>>;
|
|
38
85
|
};
|
|
39
86
|
export type StatusInput = Readonly<Record<string, never>>;
|
|
40
87
|
export type StatusPayload = {
|
|
@@ -54,6 +101,8 @@ export type StatusPayload = {
|
|
|
54
101
|
readonly staleReasons?: readonly Record<string, unknown>[];
|
|
55
102
|
readonly staleReasonCount?: number;
|
|
56
103
|
readonly staleReasonsTruncated?: boolean;
|
|
104
|
+
/** Informational, non-blocking observations (never make the KB stale). */
|
|
105
|
+
readonly notices?: readonly Record<string, unknown>[];
|
|
57
106
|
readonly branchAttachment?: {
|
|
58
107
|
readonly gitBranch: string;
|
|
59
108
|
readonly kbBranch: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery-executors.d.ts","sourceRoot":"","sources":["../../../src/public/operations/discovery-executors.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGpB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,wBAAwB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"discovery-executors.d.ts","sourceRoot":"","sources":["../../../src/public/operations/discovery-executors.ts"],"names":[],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