@vpxa/kb 0.1.28 → 0.1.29
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/package.json +1 -1
- package/packages/chunker/dist/chunker.interface.d.ts +1 -1
- package/packages/chunker/dist/code-chunker.d.ts +1 -1
- package/packages/chunker/dist/generic-chunker.d.ts +1 -1
- package/packages/chunker/dist/markdown-chunker.d.ts +1 -1
- package/packages/chunker/dist/wasm-chunker.d.ts +1 -1
- package/packages/cli/dist/commands/upgrade.d.ts +6 -0
- package/packages/cli/dist/commands/upgrade.js +1 -0
- package/packages/cli/dist/helpers.d.ts +2 -2
- package/packages/cli/dist/index.js +2 -2
- package/packages/cli/dist/kb-init.d.ts +4 -4
- package/packages/elicitation/dist/index.d.ts +2 -2
- package/packages/elicitation/dist/index.js +2 -2
- package/packages/enterprise-bridge/dist/result-merger.d.ts +1 -1
- package/packages/indexer/dist/graph-extractor.d.ts +1 -1
- package/packages/indexer/dist/incremental-indexer.d.ts +3 -3
- package/packages/kb-client/dist/direct-client.d.ts +2 -2
- package/packages/present/dist/index.html +4 -4
- package/packages/server/dist/completions.d.ts +1 -1
- package/packages/server/dist/config.d.ts +1 -1
- package/packages/server/dist/cross-workspace.d.ts +2 -2
- package/packages/server/dist/curated-manager.d.ts +2 -2
- package/packages/server/dist/dashboard-static.d.ts +2 -2
- package/packages/server/dist/elicitor.d.ts +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/output-schemas.d.ts +3 -0
- package/packages/server/dist/output-schemas.js +1 -1
- package/packages/server/dist/prompts.d.ts +1 -1
- package/packages/server/dist/resources/resources.d.ts +1 -1
- package/packages/server/dist/server.d.ts +7 -7
- package/packages/server/dist/server.js +2 -2
- package/packages/server/dist/structured-content-guard.d.ts +26 -0
- package/packages/server/dist/structured-content-guard.js +1 -0
- package/packages/server/dist/tools/analyze.tools.d.ts +2 -2
- package/packages/server/dist/tools/audit.tool.d.ts +2 -2
- package/packages/server/dist/tools/brainstorm.tool.d.ts +1 -1
- package/packages/server/dist/tools/bridge.tools.d.ts +1 -1
- package/packages/server/dist/tools/context.tools.d.ts +3 -3
- package/packages/server/dist/tools/evolution.tools.d.ts +1 -1
- package/packages/server/dist/tools/execution.tools.d.ts +2 -2
- package/packages/server/dist/tools/forge.tools.d.ts +3 -3
- package/packages/server/dist/tools/graph.tool.d.ts +1 -1
- package/packages/server/dist/tools/lookup.tool.d.ts +1 -1
- package/packages/server/dist/tools/onboard.tool.d.ts +3 -3
- package/packages/server/dist/tools/policy.tools.d.ts +1 -1
- package/packages/server/dist/tools/present.tool.d.ts +1 -1
- package/packages/server/dist/tools/produce.tool.d.ts +1 -1
- package/packages/server/dist/tools/reindex.tool.d.ts +3 -3
- package/packages/server/dist/tools/remember.tool.d.ts +1 -1
- package/packages/server/dist/tools/search.tool.d.ts +3 -3
- package/packages/server/dist/tools/status.tool.d.ts +2 -2
- package/packages/server/dist/tools/status.tool.js +2 -2
- package/packages/server/dist/version-check.js +1 -1
- package/packages/store/dist/lance-store.d.ts +1 -1
- package/packages/store/dist/store.interface.d.ts +1 -1
- package/packages/tools/dist/audit.d.ts +2 -2
- package/packages/tools/dist/compact.d.ts +1 -1
- package/packages/tools/dist/dead-symbols.d.ts +2 -2
- package/packages/tools/dist/digest.d.ts +1 -1
- package/packages/tools/dist/find-examples.d.ts +3 -3
- package/packages/tools/dist/find.d.ts +3 -3
- package/packages/tools/dist/forge-ground.d.ts +2 -2
- package/packages/tools/dist/graph-query.d.ts +1 -1
- package/packages/tools/dist/scope-map.d.ts +3 -3
- package/packages/tools/dist/stratum-card.d.ts +1 -1
- package/packages/tools/dist/symbol.d.ts +2 -2
- package/packages/tools/dist/trace.d.ts +2 -2
- package/packages/tui/dist/App.d.ts +1 -1
- package/packages/tui/dist/hooks/useKBClient.d.ts +3 -3
- package/packages/tui/dist/index.d.ts +1 -1
- package/packages/elicitation/dist/__tests__/build.test.d.ts +0 -1
- package/packages/elicitation/dist/__tests__/fields.test.d.ts +0 -1
- package/packages/elicitation/dist/__tests__/normalize.test.d.ts +0 -1
- package/packages/elicitation/dist/build.d.ts +0 -13
- package/packages/elicitation/dist/fields.d.ts +0 -41
- package/packages/elicitation/dist/normalize.d.ts +0 -15
- package/packages/elicitation/dist/types.d.ts +0 -85
- /package/packages/tui/dist/{types-VcTHNV6s.d.ts → index-Cvx1a7S7.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IChunker } from "./chunker.interface.js";
|
|
2
|
-
import { ChunkMetadata, RawChunk } from "
|
|
2
|
+
import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
|
|
3
3
|
|
|
4
4
|
//#region packages/chunker/src/code-chunker.d.ts
|
|
5
5
|
declare class CodeChunker implements IChunker {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IChunker } from "./chunker.interface.js";
|
|
2
|
-
import { ChunkMetadata, RawChunk } from "
|
|
2
|
+
import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
|
|
3
3
|
|
|
4
4
|
//#region packages/chunker/src/generic-chunker.d.ts
|
|
5
5
|
declare class GenericChunker implements IChunker {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IChunker } from "./chunker.interface.js";
|
|
2
|
-
import { ChunkMetadata, RawChunk } from "
|
|
2
|
+
import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
|
|
3
3
|
|
|
4
4
|
//#region packages/chunker/src/markdown-chunker.d.ts
|
|
5
5
|
declare class MarkdownChunker implements IChunker {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IChunker } from "./chunker.interface.js";
|
|
2
|
-
import { ChunkMetadata, RawChunk } from "
|
|
2
|
+
import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
|
|
3
3
|
|
|
4
4
|
//#region packages/chunker/src/wasm-chunker.d.ts
|
|
5
5
|
declare class WasmChunker implements IChunker {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{name:`upgrade`,description:`Upgrade KB agents, prompts, and skills to the latest version`,usage:`kb upgrade`,run:async()=>{let{initUser:e}=await import(`./init/user.js`);await e({force:!0})}}];export{e as upgradeCommands};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KBContext } from "./kb-init.js";
|
|
2
|
-
import { SearchResult } from "
|
|
3
|
-
import { BatchOperation, ManagedProcess, check, checkpointSave, diffParse, fileSummary, findDeadSymbols, findExamples, gitContext, parseOutput, symbol, testRun, trace } from "
|
|
2
|
+
import { SearchResult } from "../../core/dist/index.js";
|
|
3
|
+
import { BatchOperation, ManagedProcess, check, checkpointSave, diffParse, fileSummary, findDeadSymbols, findExamples, gitContext, parseOutput, symbol, testRun, trace } from "../../tools/dist/index.js";
|
|
4
4
|
|
|
5
5
|
//#region packages/cli/src/helpers.d.ts
|
|
6
6
|
declare function extractNumFlag(args: string[], flag: string, defaultValue: number): number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{getCtx as e}from"./context.js";import{analyzeCommands as t}from"./commands/analyze.js";import{contextCommands as n}from"./commands/context-cmds.js";import{environmentCommands as r}from"./commands/environment.js";import{executionCommands as i}from"./commands/execution.js";import{graphCommands as a}from"./commands/graph.js";import{knowledgeCommands as o}from"./commands/knowledge.js";import{searchCommands as s}from"./commands/search.js";import{systemCommands as c}from"./commands/system.js";import{
|
|
1
|
+
import{getCtx as e}from"./context.js";import{analyzeCommands as t}from"./commands/analyze.js";import{contextCommands as n}from"./commands/context-cmds.js";import{environmentCommands as r}from"./commands/environment.js";import{executionCommands as i}from"./commands/execution.js";import{graphCommands as a}from"./commands/graph.js";import{knowledgeCommands as o}from"./commands/knowledge.js";import{searchCommands as s}from"./commands/search.js";import{systemCommands as c}from"./commands/system.js";import{upgradeCommands as l}from"./commands/upgrade.js";import{workspaceCommands as u}from"./commands/workspace.js";import{readFileSync as d}from"node:fs";import{dirname as f,resolve as p}from"node:path";import{fileURLToPath as m}from"node:url";const h=[...s,...o,...t,...a,...c,...i,...n,...u,...r,...l];h.push({name:`help`,description:`Show available commands`,run:async()=>{_()}});async function g(t){let n=[...t],r=n.shift();if(!r||r===`--help`||r===`-h`){_();return}if(r===`--version`||r===`-v`){let e=p(f(m(import.meta.url)),`..`,`..`,`..`,`package.json`),t=JSON.parse(d(e,`utf-8`));console.log(t.version);return}let i=h.find(e=>e.name===r);i||(console.error(`Unknown command: ${r}`),_(),process.exit(1));try{await i.run(n)}finally{let t=e();t&&await t.store.close()}}function _(){console.log(`@vpxa/kb — Local-first AI developer toolkit
|
|
2
2
|
`),console.log(`Usage: kb <command> [options]
|
|
3
|
-
`),console.log(`Commands:`);let e=Math.max(...
|
|
3
|
+
`),console.log(`Commands:`);let e=Math.max(...h.map(e=>e.name.length));for(let t of h)console.log(` ${t.name.padEnd(e+2)}${t.description}`);console.log(``),console.log(`Options:`),console.log(` --help, -h Show this help`),console.log(` --version, -v Show version`)}export{g as run};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KBConfig } from "
|
|
2
|
-
import { IEmbedder } from "
|
|
3
|
-
import { IncrementalIndexer } from "
|
|
4
|
-
import { IGraphStore, IKnowledgeStore } from "
|
|
1
|
+
import { KBConfig } from "../../core/dist/index.js";
|
|
2
|
+
import { IEmbedder } from "../../embeddings/dist/index.js";
|
|
3
|
+
import { IncrementalIndexer } from "../../indexer/dist/index.js";
|
|
4
|
+
import { IGraphStore, IKnowledgeStore } from "../../store/dist/index.js";
|
|
5
5
|
|
|
6
6
|
//#region packages/cli/src/kb-init.d.ts
|
|
7
7
|
interface ICuratedManager {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides field builders, request construction, and response normalization
|
|
5
5
|
* for MCP elicitation (interactive user input during tool execution).
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export { buildElicitRequest, buildFormSchema } from './build.js';
|
|
8
8
|
export { field } from './fields.js';
|
|
9
|
-
export { buildFormSchema, buildElicitRequest } from './build.js';
|
|
10
9
|
export { normalizeResponse } from './normalize.js';
|
|
10
|
+
export type { ArrayFieldSchema, BooleanFieldSchema, ElicitAction, ElicitContent, ElicitFormSchema, ElicitOptions, Elicitor, ElicitResponse, EnumFieldSchema, FieldSchema, NumberFieldSchema, TextFieldSchema, } from './types.js';
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Provides field builders, request construction, and response normalization
|
|
5
5
|
* for MCP elicitation (interactive user input during tool execution).
|
|
6
6
|
*/
|
|
7
|
+
// Request construction
|
|
8
|
+
export { buildElicitRequest, buildFormSchema } from './build.js';
|
|
7
9
|
// Field builders
|
|
8
10
|
export { field } from './fields.js';
|
|
9
|
-
// Request construction
|
|
10
|
-
export { buildFormSchema, buildElicitRequest } from './build.js';
|
|
11
11
|
// Response normalization
|
|
12
12
|
export { normalizeResponse } from './normalize.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileHashCache } from "./hash-cache.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { IEmbedder } from "
|
|
2
|
+
import { IndexStats, KBConfig } from "../../core/dist/index.js";
|
|
3
|
+
import { IGraphStore, IKnowledgeStore } from "../../store/dist/index.js";
|
|
4
|
+
import { IEmbedder } from "../../embeddings/dist/index.js";
|
|
5
5
|
|
|
6
6
|
//#region packages/indexer/src/incremental-indexer.d.ts
|
|
7
7
|
interface IndexProgress {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IKBClient, KBGraphData, KBKnowledgeEntry, KBSearchResult, KBStatus } from "./types.js";
|
|
2
|
-
import { IEmbedder } from "
|
|
3
|
-
import { IGraphStore, IKnowledgeStore } from "
|
|
2
|
+
import { IEmbedder } from "../../embeddings/dist/index.js";
|
|
3
|
+
import { IGraphStore, IKnowledgeStore } from "../../store/dist/index.js";
|
|
4
4
|
|
|
5
5
|
//#region packages/kb-client/src/direct-client.d.ts
|
|
6
6
|
interface CuratedEntry {
|