@vpxa/kb 0.1.28 → 0.1.30

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.
Files changed (78) hide show
  1. package/package.json +1 -1
  2. package/packages/chunker/dist/chunker.interface.d.ts +1 -1
  3. package/packages/chunker/dist/code-chunker.d.ts +1 -1
  4. package/packages/chunker/dist/generic-chunker.d.ts +1 -1
  5. package/packages/chunker/dist/markdown-chunker.d.ts +1 -1
  6. package/packages/chunker/dist/wasm-chunker.d.ts +1 -1
  7. package/packages/cli/dist/commands/upgrade.d.ts +6 -0
  8. package/packages/cli/dist/commands/upgrade.js +1 -0
  9. package/packages/cli/dist/helpers.d.ts +2 -2
  10. package/packages/cli/dist/index.js +2 -2
  11. package/packages/cli/dist/kb-init.d.ts +4 -4
  12. package/packages/elicitation/dist/index.d.ts +2 -2
  13. package/packages/elicitation/dist/index.js +2 -2
  14. package/packages/enterprise-bridge/dist/result-merger.d.ts +1 -1
  15. package/packages/indexer/dist/graph-extractor.d.ts +1 -1
  16. package/packages/indexer/dist/incremental-indexer.d.ts +3 -3
  17. package/packages/kb-client/dist/direct-client.d.ts +2 -2
  18. package/packages/present/dist/index.html +4 -4
  19. package/packages/server/dist/completions.d.ts +1 -1
  20. package/packages/server/dist/config.d.ts +1 -1
  21. package/packages/server/dist/cross-workspace.d.ts +2 -2
  22. package/packages/server/dist/curated-manager.d.ts +2 -2
  23. package/packages/server/dist/dashboard-static.d.ts +2 -2
  24. package/packages/server/dist/elicitor.d.ts +1 -1
  25. package/packages/server/dist/index.js +1 -1
  26. package/packages/server/dist/output-schemas.d.ts +3 -0
  27. package/packages/server/dist/output-schemas.js +1 -1
  28. package/packages/server/dist/prompts.d.ts +1 -1
  29. package/packages/server/dist/resources/resources.d.ts +1 -1
  30. package/packages/server/dist/server.d.ts +7 -7
  31. package/packages/server/dist/server.js +2 -2
  32. package/packages/server/dist/structured-content-guard.d.ts +26 -0
  33. package/packages/server/dist/structured-content-guard.js +1 -0
  34. package/packages/server/dist/tools/analyze.tools.d.ts +2 -2
  35. package/packages/server/dist/tools/audit.tool.d.ts +2 -2
  36. package/packages/server/dist/tools/brainstorm.tool.d.ts +1 -1
  37. package/packages/server/dist/tools/bridge.tools.d.ts +1 -1
  38. package/packages/server/dist/tools/context.tools.d.ts +3 -3
  39. package/packages/server/dist/tools/evolution.tools.d.ts +1 -1
  40. package/packages/server/dist/tools/execution.tools.d.ts +2 -2
  41. package/packages/server/dist/tools/forge.tools.d.ts +3 -3
  42. package/packages/server/dist/tools/graph.tool.d.ts +1 -1
  43. package/packages/server/dist/tools/lookup.tool.d.ts +1 -1
  44. package/packages/server/dist/tools/onboard.tool.d.ts +3 -3
  45. package/packages/server/dist/tools/policy.tools.d.ts +1 -1
  46. package/packages/server/dist/tools/present.tool.d.ts +1 -1
  47. package/packages/server/dist/tools/produce.tool.d.ts +1 -1
  48. package/packages/server/dist/tools/reindex.tool.d.ts +3 -3
  49. package/packages/server/dist/tools/remember.tool.d.ts +1 -1
  50. package/packages/server/dist/tools/search.tool.d.ts +3 -3
  51. package/packages/server/dist/tools/status.tool.d.ts +2 -2
  52. package/packages/server/dist/tools/status.tool.js +2 -2
  53. package/packages/server/dist/version-check.js +1 -1
  54. package/packages/store/dist/lance-store.d.ts +1 -1
  55. package/packages/store/dist/store.interface.d.ts +1 -1
  56. package/packages/tools/dist/audit.d.ts +2 -2
  57. package/packages/tools/dist/compact.d.ts +1 -1
  58. package/packages/tools/dist/dead-symbols.d.ts +2 -2
  59. package/packages/tools/dist/digest.d.ts +1 -1
  60. package/packages/tools/dist/find-examples.d.ts +3 -3
  61. package/packages/tools/dist/find.d.ts +3 -3
  62. package/packages/tools/dist/forge-ground.d.ts +2 -2
  63. package/packages/tools/dist/graph-query.d.ts +1 -1
  64. package/packages/tools/dist/scope-map.d.ts +3 -3
  65. package/packages/tools/dist/stratum-card.d.ts +1 -1
  66. package/packages/tools/dist/symbol.d.ts +2 -2
  67. package/packages/tools/dist/trace.d.ts +2 -2
  68. package/packages/tui/dist/App.d.ts +1 -1
  69. package/packages/tui/dist/hooks/useKBClient.d.ts +3 -3
  70. package/packages/tui/dist/index.d.ts +1 -1
  71. package/packages/elicitation/dist/__tests__/build.test.d.ts +0 -1
  72. package/packages/elicitation/dist/__tests__/fields.test.d.ts +0 -1
  73. package/packages/elicitation/dist/__tests__/normalize.test.d.ts +0 -1
  74. package/packages/elicitation/dist/build.d.ts +0 -13
  75. package/packages/elicitation/dist/fields.d.ts +0 -41
  76. package/packages/elicitation/dist/normalize.d.ts +0 -15
  77. package/packages/elicitation/dist/types.d.ts +0 -85
  78. /package/packages/tui/dist/{types-VcTHNV6s.d.ts → index-Cvx1a7S7.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpxa/kb",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "description": "Local-first AI developer toolkit — knowledge base, code analysis, context management, and developer tools for LLM agents",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { ChunkMetadata, RawChunk } from "@kb/core";
1
+ import { ChunkMetadata, RawChunk } from "../../core/dist/index.js";
2
2
 
3
3
  //#region packages/chunker/src/chunker.interface.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { IChunker } from "./chunker.interface.js";
2
- import { ChunkMetadata, RawChunk } from "@kb/core";
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 "@kb/core";
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 "@kb/core";
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 "@kb/core";
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,6 @@
1
+ import { Command } from "../types.js";
2
+
3
+ //#region packages/cli/src/commands/upgrade.d.ts
4
+ declare const upgradeCommands: Command[];
5
+ //#endregion
6
+ export { upgradeCommands };
@@ -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 "@kb/core";
3
- import { BatchOperation, ManagedProcess, check, checkpointSave, diffParse, fileSummary, findDeadSymbols, findExamples, gitContext, parseOutput, symbol, testRun, trace } from "@kb/tools";
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{workspaceCommands as l}from"./commands/workspace.js";import{readFileSync as u}from"node:fs";import{dirname as d,resolve as f}from"node:path";import{fileURLToPath as p}from"node:url";const m=[...s,...o,...t,...a,...c,...i,...n,...l,...r];m.push({name:`help`,description:`Show available commands`,run:async()=>{g()}});async function h(t){let n=[...t],r=n.shift();if(!r||r===`--help`||r===`-h`){g();return}if(r===`--version`||r===`-v`){let e=f(d(p(import.meta.url)),`..`,`..`,`..`,`package.json`),t=JSON.parse(u(e,`utf-8`));console.log(t.version);return}let i=m.find(e=>e.name===r);i||(console.error(`Unknown command: ${r}`),g(),process.exit(1));try{await i.run(n)}finally{let t=e();t&&await t.store.close()}}function g(){console.log(`@vpxa/kb — Local-first AI developer toolkit
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(...m.map(e=>e.name.length));for(let t of m)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{h as run};
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 "@kb/core";
2
- import { IEmbedder } from "@kb/embeddings";
3
- import { IncrementalIndexer } from "@kb/indexer";
4
- import { IGraphStore, IKnowledgeStore } from "@kb/store";
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 type { ElicitAction, ElicitContent, ElicitFormSchema, ElicitOptions, ElicitResponse, Elicitor, FieldSchema, TextFieldSchema, EnumFieldSchema, ArrayFieldSchema, BooleanFieldSchema, NumberFieldSchema, } from './types.js';
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,5 +1,5 @@
1
1
  import { ERSearchResult, MergedSearchResult } from "./types.js";
2
- import { SearchResult } from "@kb/core";
2
+ import { SearchResult } from "../../core/dist/index.js";
3
3
 
4
4
  //#region packages/enterprise-bridge/src/result-merger.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { GraphEdge, GraphNode } from "@kb/store";
1
+ import { GraphEdge, GraphNode } from "../../store/dist/index.js";
2
2
 
3
3
  //#region packages/indexer/src/graph-extractor.d.ts
4
4
  interface ExtractedGraph {
@@ -1,7 +1,7 @@
1
1
  import { FileHashCache } from "./hash-cache.js";
2
- import { IGraphStore, IKnowledgeStore } from "@kb/store";
3
- import { IndexStats, KBConfig } from "@kb/core";
4
- import { IEmbedder } from "@kb/embeddings";
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 "@kb/embeddings";
3
- import { IGraphStore, IKnowledgeStore } from "@kb/store";
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 {