kibi-runtime 1.0.1
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/engine-daemon.js +2402 -0
- package/dist/engine.d.ts +65 -0
- package/dist/engine.js +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +279965 -0
- package/dist/skill-operations.d.ts +69 -0
- package/dist/skill-operations.js +105 -0
- package/dist/skill-system/errors.d.ts +18 -0
- package/dist/skill-system/errors.js +36 -0
- package/dist/skill-system/loader.d.ts +8 -0
- package/dist/skill-system/loader.js +81 -0
- package/dist/skill-system/paths.d.ts +5 -0
- package/dist/skill-system/paths.js +25 -0
- package/dist/skill-system/types.d.ts +14 -0
- package/dist/skill-system/types.js +1 -0
- package/dist/skill-system/validation.d.ts +9 -0
- package/dist/skill-system/validation.js +119 -0
- package/dist/skills/kibi-bootstrap/SKILL.md +58 -0
- package/dist/skills/kibi-bootstrap/resources/bootstrap.md +11 -0
- package/dist/skills/kibi-bootstrap/resources/branch-lifecycle.md +7 -0
- package/dist/skills/kibi-bootstrap/resources/operation-access.md +5 -0
- package/dist/skills/kibi-bootstrap/resources/source-authoring.md +8 -0
- package/dist/skills/kibi-freshness/SKILL.md +74 -0
- package/dist/skills/kibi-freshness/resources/branch-lifecycle.md +7 -0
- package/dist/skills/kibi-freshness/resources/operation-access.md +6 -0
- package/dist/skills/kibi-freshness/resources/source-authoring.md +7 -0
- package/dist/skills/kibi-traceability/SKILL.md +60 -0
- package/dist/skills/kibi-traceability/resources/branch-lifecycle.md +7 -0
- package/dist/skills/kibi-traceability/resources/operation-access.md +5 -0
- package/dist/skills/kibi-traceability/resources/source-authoring.md +6 -0
- package/dist/skills/kibi-traceability/resources/traceability.md +8 -0
- package/dist/skills/kibi-usage/SKILL.md +152 -0
- package/dist/skills/kibi-usage/resources/branch-lifecycle.md +31 -0
- package/dist/skills/kibi-usage/resources/fact-lanes.md +235 -0
- package/dist/skills/kibi-usage/resources/kb-improvement.md +38 -0
- package/dist/skills/kibi-usage/resources/logic-ir.md +43 -0
- package/dist/skills/kibi-usage/resources/operation-access.md +42 -0
- package/dist/skills/kibi-usage/resources/relationship-directions.md +119 -0
- package/dist/skills/kibi-usage/resources/source-authoring.md +31 -0
- package/dist/skills/kibi-usage/resources/ui-requirements.md +96 -0
- package/dist/skills/kibi-usage/resources/workflows.md +150 -0
- package/dist/skills.d.ts +3 -0
- package/dist/skills.js +2 -0
- package/package.json +37 -0
package/dist/engine.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime-owned engine boundary. Adapters receive commands, never Prolog
|
|
3
|
+
* goals; the implementation remains free to translate these commands into
|
|
4
|
+
* its private reasoning language.
|
|
5
|
+
*/
|
|
6
|
+
export type EngineCommandV1 = Readonly<{
|
|
7
|
+
version: 1;
|
|
8
|
+
kind: "status";
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
version: 1;
|
|
11
|
+
kind: "entities";
|
|
12
|
+
type?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
tags?: readonly string[];
|
|
15
|
+
sourceFile?: string;
|
|
16
|
+
limit: number;
|
|
17
|
+
offset: number;
|
|
18
|
+
}> | Readonly<{
|
|
19
|
+
version: 1;
|
|
20
|
+
kind: "search";
|
|
21
|
+
query: string;
|
|
22
|
+
type?: string;
|
|
23
|
+
limit: number;
|
|
24
|
+
offset: number;
|
|
25
|
+
}> | Readonly<{
|
|
26
|
+
version: 1;
|
|
27
|
+
kind: "checkpoint";
|
|
28
|
+
}> | Readonly<{
|
|
29
|
+
version: 1;
|
|
30
|
+
kind: "compact";
|
|
31
|
+
}> | Readonly<{
|
|
32
|
+
version: 1;
|
|
33
|
+
kind: "save";
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
version: 1;
|
|
36
|
+
kind: "check";
|
|
37
|
+
rule?: string;
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
version: 1;
|
|
40
|
+
kind: "relationship";
|
|
41
|
+
action: "assert" | "retract";
|
|
42
|
+
type: string;
|
|
43
|
+
from: string;
|
|
44
|
+
to: string;
|
|
45
|
+
}> | Readonly<{
|
|
46
|
+
version: 1;
|
|
47
|
+
kind: "persistence";
|
|
48
|
+
action: "checkpoint" | "compact" | "save" | "export";
|
|
49
|
+
targetDirectory?: string;
|
|
50
|
+
}> | Readonly<{
|
|
51
|
+
version: 1;
|
|
52
|
+
kind: "lifecycle";
|
|
53
|
+
action: "stop" | "cancel";
|
|
54
|
+
requestId?: number;
|
|
55
|
+
}> | Readonly<{
|
|
56
|
+
version: 1;
|
|
57
|
+
kind: "stop";
|
|
58
|
+
}> | Readonly<{
|
|
59
|
+
version: 1;
|
|
60
|
+
kind: "cancel";
|
|
61
|
+
requestId: number;
|
|
62
|
+
}>;
|
|
63
|
+
export interface EnginePort {
|
|
64
|
+
execute<T = unknown>(command: EngineCommandV1, signal?: AbortSignal): Promise<T>;
|
|
65
|
+
}
|
package/dist/engine.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical first-party runtime surface. Adapters import this package rather
|
|
3
|
+
* than reaching through CLI implementation paths. The exports below are
|
|
4
|
+
* intentionally explicit: adding a CLI module does not silently widen the
|
|
5
|
+
* runtime package contract.
|
|
6
|
+
*/
|
|
7
|
+
export type { Clock, OperationContext, OperationRuntime, RuntimeOptions, RuntimeOperationSpec, PrologPort, PrologQueryResult, FilesystemPort, GitPort, NetworkPort, EngineCommandV1 as CliEngineCommandV1, EnginePort as CliEnginePort, } from "kibi-cli/operations/runtime-types";
|
|
8
|
+
export type { EngineCommandV1, EnginePort } from "./engine.js";
|
|
9
|
+
export { executeOperation } from "kibi-cli/operations/runtime-types";
|
|
10
|
+
export type { KibiResult, KibiResultStatus, OperationContent, OperationEffect, OperationName, OperationResult, OperationSpec, } from "kibi-cli/operations";
|
|
11
|
+
export { VALID_ENTITY_TYPES, OPERATION_CATALOG, applyPlanSpec, planBootstrapSpec, checkSpec, compileIntentSpec, coverageSpec, deleteSpec, dedupeEntities, executeApplyPlan, executePlanBootstrap, executeCompileIntent, executeCoverage, executeIngestVerification, executeFindGaps, executeGraph, executeIntentSearch, executeQuery, executeSearch, executeSemanticAdvisor, executeStatus, buildEntityGoal, findGapsSpec, getSpec, graphSpec, ingestVerificationSpec, loadEntities, listSpecs, modelRequirementSpec, nodeFilesystem, nodeGit, nodeNetwork, paginateResults, presentBootstrap, querySpec, searchSpec, selectBootstrapCandidates, semanticAdvisorSpec, sparqlRemoteSpec, statusSpec, suggestPredicatesSpec, upsertSpec, validateEntityType, validateUpsertSpec, withContractDefaults, } from "kibi-cli/operations";
|
|
12
|
+
export type { BootstrapAction, BootstrapPlanV1 } from "kibi-cli/operations";
|
|
13
|
+
export { skillsListSpec, skillsLoadSpec, skillsReadSpec, } from "./skill-operations.js";
|
|
14
|
+
export type { ActivationPolicy, BootstrapContext, PlanBootstrapArgs, PlanBootstrapResult, Candidate, DiscoverySummary, SourceOnlySignal, CoverageInput, LegacyMigrationPlan, MigrationPlan, RepairPlan, EntityQueryInput, } from "kibi-cli/operations";
|
|
15
|
+
export type { QueryInput, QueryPayload, SearchInput, SearchPayload, StatusInput, StatusPayload, } from "kibi-cli/operations";
|
|
16
|
+
export type { ModelRequirementArgs, ModelRequirementResult, } from "kibi-cli/operations/modeling/model-requirement";
|
|
17
|
+
export { estimateNormativeSignalConfidence, extractRequirementClaim, getWorkspaceMigrationWarning, strictWriteSetToApplyPlan, writeSetPrimaryEntityId, } from "kibi-cli/operations/modeling/model-requirement";
|
|
18
|
+
export type { SemanticAdvisorArgs, SemanticAdvisorOperationResult, } from "kibi-cli/operations/semantic-advisor/types";
|
|
19
|
+
export type { BindingProvenance, PredicateScoreComponents, PredicateSuggestion, RecommendedPredicateSchema, SuggestPredicatesArgs, SuggestPredicatesResult, } from "kibi-cli/operations/modeling/suggest-predicates";
|
|
20
|
+
export type { DeleteInput, DeletePayload, UpsertInput, UpsertPayload, ValidateUpsertPayload, ValidatedUpsert, } from "kibi-cli/operations/mutation/types";
|
|
21
|
+
export { executeDelete } from "kibi-cli/operations/mutation/delete";
|
|
22
|
+
export { executeUpsert } from "kibi-cli/operations/mutation/upsert";
|
|
23
|
+
export { validateUpsertInput } from "kibi-cli/operations/mutation/validation";
|
|
24
|
+
export { formatInvalidRelationshipError, formatInvalidRelationshipTuple, formatRelationshipSourceMismatch, validateLiveRelationshipTargets, } from "kibi-cli/operations/mutation/relationships";
|
|
25
|
+
export { setSymbolRefreshForTests } from "kibi-cli/operations/mutation/symbol-refresh";
|
|
26
|
+
export { acquireSymbolCompilerLock, releaseSymbolCompilerLock, withSymbolCompilerLock, } from "kibi-cli/operations/mutation/symbol-compiler-lock";
|
|
27
|
+
export { modelRequirementClaims, buildStrictWriteSet, } from "kibi-cli/public/check-types";
|
|
28
|
+
export { analyzeChangedFileImpact } from "kibi-cli/public/impact-diagnostics";
|
|
29
|
+
export { RULE_NAMES, RULES, getCanonicalRules, getDefaultRules, getEffectiveRules, getRuleDefinition, getRuleEnforcementClass, isCanonicalRule, ruleRunsByDefault, } from "kibi-cli/public/check-types";
|
|
30
|
+
export type { RuleDefinition, RuleEnforcementClass, StrictWriteSet, Violation, } from "kibi-cli/public/check-types";
|
|
31
|
+
export type { ChangedFileImpactResult, QualityDiagnostic, } from "kibi-cli/public/impact-diagnostics";
|
|
32
|
+
export { branchStorePath, branchStoreManifestPath, branchStoresRoot, branchStoreKey, resolveActiveBranch, resolveBranchAttachment, isValidBranchName, copyCleanSnapshot, ensureBranchStoreManifest, getBranchDiagnostic, } from "kibi-cli/public/branch-resolver";
|
|
33
|
+
export { KIBI_PROTOCOL_VERSION, operationData, resultVersion, toKibiResult, } from "kibi-cli/operations/result-envelope";
|
|
34
|
+
export * from "kibi-cli/public/branch-resolver";
|
|
35
|
+
export { EngineClient, engineSocketPath } from "kibi-cli/engine";
|
|
36
|
+
export { PrologProcess, resolveKbPlPath } from "kibi-cli/prolog";
|
|
37
|
+
export { escapeAtomContent, splitTopLevel, } from "kibi-cli/prolog/codec";
|
|
38
|
+
export { createCliRuntime } from "kibi-cli/runtime/cli-runtime";
|
|
39
|
+
export { createRepoIgnorePolicy } from "kibi-cli/ignore-policy";
|
|
40
|
+
export type { IgnorePolicy } from "kibi-cli/ignore-policy";
|
|
41
|
+
export { extractFromManifest, extractFromManifestString, readManifestWithCoordinateOverlay, } from "kibi-cli/extractors/manifest";
|
|
42
|
+
export type { ExtractionResult as ManifestExtractionResult } from "kibi-cli/extractors/manifest";
|
|
43
|
+
export { extractFromMarkdown, extractFromMarkdownString, inferTypeFromPath, } from "kibi-cli/extractors/markdown";
|
|
44
|
+
export type { ExtractionResult as MarkdownExtractionResult } from "kibi-cli/extractors/markdown";
|
|
45
|
+
export { analyzeSourceText, enrichSymbolCoordinates, } from "kibi-cli/extractors/symbols-coordinator";
|
|
46
|
+
export type { ManifestSymbolEntry, SourceAnalysisResult, SourceModuleAnalysis, SourceSymbolAnalysis, } from "kibi-cli/extractors/symbols-coordinator";
|
|
47
|
+
/** Canonical bundled-skill registry used by first-party adapters. */
|
|
48
|
+
export { listBundledSkills, loadBundledSkill, readBundledSkillResource, loadBundledSkillFrom, readBundledSkillResourceFrom, resetBundledSkillsDir, setBundledSkillsDir, validateSkillBundle, } from "./skills.js";
|
|
49
|
+
export type { SkillBundle, SkillManifest } from "./skills.js";
|