@ponraaj/dimple-sdk 0.0.0-alpha.10 → 0.0.0-alpha.12

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 (68) hide show
  1. package/README.md +5 -4
  2. package/dist/dimple.d.ts +13 -0
  3. package/dist/errors.js +8330 -0
  4. package/dist/index.js +1936 -1688
  5. package/dist/internal/config/index.d.ts +1 -1
  6. package/dist/internal/config/service.d.ts +4 -0
  7. package/dist/internal/core/core.d.ts +8 -8
  8. package/dist/internal/core/hosted-embedding.d.ts +1 -1
  9. package/dist/internal/core/index.d.ts +6 -0
  10. package/dist/internal/core/layer.d.ts +17 -8
  11. package/dist/internal/embedder/auto-install.d.ts +23 -5
  12. package/dist/internal/embedder/index.d.ts +1 -1
  13. package/dist/internal/embedder/registry.d.ts +7 -0
  14. package/dist/internal/embedder/transformers.d.ts +6 -2
  15. package/dist/internal/extractor/code-extractor.d.ts +11 -1
  16. package/dist/internal/extractor/index.d.ts +1 -1
  17. package/dist/internal/extractor/languages/index.d.ts +1 -1
  18. package/dist/internal/extractor/languages/javascript.d.ts +1 -1
  19. package/dist/internal/extractor/languages/typescript.d.ts +1 -1
  20. package/dist/internal/installer/index.d.ts +11 -0
  21. package/dist/internal/llm/dream-classifier.d.ts +1 -1
  22. package/dist/internal/llm/index.d.ts +1 -1
  23. package/dist/internal/llm/service.d.ts +7 -1
  24. package/dist/internal/logger/index.d.ts +1 -1
  25. package/dist/internal/logger/service.d.ts +14 -3
  26. package/dist/internal/parser/code-parser.d.ts +12 -2
  27. package/dist/internal/parser/index.d.ts +3 -3
  28. package/dist/internal/parser/language-store.d.ts +3 -3
  29. package/dist/internal/parser/tree-sitter-engine.d.ts +1 -1
  30. package/dist/internal/retriever/hybrid.d.ts +21 -7
  31. package/dist/internal/retriever/index.d.ts +1 -1
  32. package/dist/internal/shared/effect/node.d.ts +155 -0
  33. package/dist/internal/shared/file-database.d.ts +17 -0
  34. package/dist/internal/shared/file-lock.d.ts +20 -0
  35. package/dist/internal/shared/schema/defaults.d.ts +13 -0
  36. package/dist/internal/store/audit.d.ts +1 -1
  37. package/dist/internal/store/db-backend.d.ts +2 -2
  38. package/dist/internal/store/graph/concepts.d.ts +2 -2
  39. package/dist/internal/store/graph/dream.d.ts +2 -2
  40. package/dist/internal/store/graph/errors.d.ts +1 -1
  41. package/dist/internal/store/graph/repair.d.ts +2 -2
  42. package/dist/internal/store/index.d.ts +3 -3
  43. package/dist/internal/store/libsql-backend.d.ts +1 -1
  44. package/dist/internal/store/schema/topics.d.ts +0 -12
  45. package/dist/internal/store/service.d.ts +6 -5
  46. package/dist/internal/store/store.d.ts +24 -5
  47. package/dist/internal/store/topics/errors.d.ts +1 -1
  48. package/dist/internal/store/topics/index.d.ts +2 -2
  49. package/dist/internal/store/topics/jobs.d.ts +2 -2
  50. package/dist/internal/store/topics/lifecycle.d.ts +27 -2
  51. package/dist/internal/store/topics/maintenance.d.ts +2 -2
  52. package/dist/internal/store/topics/query.d.ts +1 -1
  53. package/dist/internal/store/topics/routing.d.ts +1 -1
  54. package/dist/internal/store/topics/topic-vectors.d.ts +1 -1
  55. package/dist/internal/workflow/engine.d.ts +27 -3
  56. package/dist/internal/workflow/executor.d.ts +19 -5
  57. package/dist/internal/workflow/index.d.ts +5 -5
  58. package/dist/internal/workflow/persistence.d.ts +2 -2
  59. package/dist/internal/workflow/queue.d.ts +23 -2
  60. package/dist/internal/workflow/registry.d.ts +10 -0
  61. package/dist/internal/workflow/runtime.d.ts +22 -4
  62. package/package.json +23 -7
  63. package/dist/internal/wasm/grammar-store.d.ts +0 -14
  64. package/dist/internal/wasm/index.d.ts +0 -5
  65. package/dist/internal/wasm/wasm-cache.d.ts +0 -17
  66. package/dist/internal/wasm/wasm-downloader.d.ts +0 -10
  67. package/dist/internal/wasm/wasm-registry.d.ts +0 -16
  68. package/dist/internal/workflow/queue-store.d.ts +0 -5
package/README.md CHANGED
@@ -81,10 +81,11 @@ the docs site: [Configuration reference](https://dimple.ponraaj.me/reference/con
81
81
 
82
82
  ## MCP server
83
83
 
84
- `dimple mcp` (from the CLI package) exposes dimple to any MCP client over
85
- the 2026-07-28 protocol — API discovery plus sandboxed code execution with
86
- the whole API as a `dimple` namespace. Guide:
87
- [MCP server & code mode](https://dimple.ponraaj.me/guides/mcp/).
84
+ `dimple mcp` (from the CLI package) exposes dimple to any MCP client
85
+ (modern 2026-07-28 clients; 2025-era clients served too) as one transparent
86
+ tool per capability — memory, graph, maintenance, and docs (search + deep
87
+ links). Guide:
88
+ [MCP server](https://dimple.ponraaj.me/guides/mcp/).
88
89
 
89
90
  ## Agent integration patterns
90
91
 
package/dist/dimple.d.ts CHANGED
@@ -55,6 +55,12 @@ export interface IndexOptions {
55
55
  readonly namespace?: string;
56
56
  /** Embed + topic-route every unit (default true). */
57
57
  readonly embed?: boolean;
58
+ /** Write the units and hand every one that needs a vector to the durable
59
+ * `memory.embed.batch` job instead of embedding inline: units are stored
60
+ * (and lexically searchable) when `index` returns, vectors + topic routing
61
+ * land whenever a worker drains the queue. Ignored when `embed` is
62
+ * `false`. */
63
+ readonly deferEmbed?: boolean;
58
64
  /** Cap for the whole-file memory content (default 64 KiB). */
59
65
  readonly maxFileBytes?: number;
60
66
  /** Cap for each extracted chunk's content (default 8 KiB). */
@@ -83,6 +89,10 @@ export interface IndexResult {
83
89
  readonly skipped: number;
84
90
  /** Files skipped because the extension is not indexable. */
85
91
  readonly unsupported: number;
92
+ /** `memory.embed.batch` jobs enqueued by the deferred path (`deferEmbed`) —
93
+ * units stored without a vector, counted after the enqueue. Absent in the
94
+ * synchronous path, where every unit is embedded before returning. */
95
+ readonly pendingEmbeddings?: number;
86
96
  readonly commit: string | null;
87
97
  /** Files that could not be walked/read/parsed/extracted/written. */
88
98
  readonly failed: readonly {
@@ -128,6 +138,9 @@ export interface Dimple {
128
138
  * All-or-nothing: a duplicate logical key rejects the whole batch. */
129
139
  readonly writeMany: (units: readonly WriteMemoryInput[], options?: WriteOptions) => Promise<readonly MemoryUnit[]>;
130
140
  readonly get: (id: string) => Promise<MemoryUnit>;
141
+ /** Hybrid retrieval over the store. Results are ranked rows; graph
142
+ * context (`supersededBy` / `conflicts` / `supportedBy`) is not attached
143
+ * yet — the fused path does not run the store's post-pass. */
131
144
  readonly query: (text: string, options?: QueryOptions) => Promise<AugmentedMemory[]>;
132
145
  readonly forget: (id: string) => Promise<void>;
133
146
  /** Parse + extract a directory/files with tree-sitter and store the