@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.
- package/README.md +5 -4
- package/dist/dimple.d.ts +13 -0
- package/dist/errors.js +8330 -0
- package/dist/index.js +1936 -1688
- package/dist/internal/config/index.d.ts +1 -1
- package/dist/internal/config/service.d.ts +4 -0
- package/dist/internal/core/core.d.ts +8 -8
- package/dist/internal/core/hosted-embedding.d.ts +1 -1
- package/dist/internal/core/index.d.ts +6 -0
- package/dist/internal/core/layer.d.ts +17 -8
- package/dist/internal/embedder/auto-install.d.ts +23 -5
- package/dist/internal/embedder/index.d.ts +1 -1
- package/dist/internal/embedder/registry.d.ts +7 -0
- package/dist/internal/embedder/transformers.d.ts +6 -2
- package/dist/internal/extractor/code-extractor.d.ts +11 -1
- package/dist/internal/extractor/index.d.ts +1 -1
- package/dist/internal/extractor/languages/index.d.ts +1 -1
- package/dist/internal/extractor/languages/javascript.d.ts +1 -1
- package/dist/internal/extractor/languages/typescript.d.ts +1 -1
- package/dist/internal/installer/index.d.ts +11 -0
- package/dist/internal/llm/dream-classifier.d.ts +1 -1
- package/dist/internal/llm/index.d.ts +1 -1
- package/dist/internal/llm/service.d.ts +7 -1
- package/dist/internal/logger/index.d.ts +1 -1
- package/dist/internal/logger/service.d.ts +14 -3
- package/dist/internal/parser/code-parser.d.ts +12 -2
- package/dist/internal/parser/index.d.ts +3 -3
- package/dist/internal/parser/language-store.d.ts +3 -3
- package/dist/internal/parser/tree-sitter-engine.d.ts +1 -1
- package/dist/internal/retriever/hybrid.d.ts +21 -7
- package/dist/internal/retriever/index.d.ts +1 -1
- package/dist/internal/shared/effect/node.d.ts +155 -0
- package/dist/internal/shared/file-database.d.ts +17 -0
- package/dist/internal/shared/file-lock.d.ts +20 -0
- package/dist/internal/shared/schema/defaults.d.ts +13 -0
- package/dist/internal/store/audit.d.ts +1 -1
- package/dist/internal/store/db-backend.d.ts +2 -2
- package/dist/internal/store/graph/concepts.d.ts +2 -2
- package/dist/internal/store/graph/dream.d.ts +2 -2
- package/dist/internal/store/graph/errors.d.ts +1 -1
- package/dist/internal/store/graph/repair.d.ts +2 -2
- package/dist/internal/store/index.d.ts +3 -3
- package/dist/internal/store/libsql-backend.d.ts +1 -1
- package/dist/internal/store/schema/topics.d.ts +0 -12
- package/dist/internal/store/service.d.ts +6 -5
- package/dist/internal/store/store.d.ts +24 -5
- package/dist/internal/store/topics/errors.d.ts +1 -1
- package/dist/internal/store/topics/index.d.ts +2 -2
- package/dist/internal/store/topics/jobs.d.ts +2 -2
- package/dist/internal/store/topics/lifecycle.d.ts +27 -2
- package/dist/internal/store/topics/maintenance.d.ts +2 -2
- package/dist/internal/store/topics/query.d.ts +1 -1
- package/dist/internal/store/topics/routing.d.ts +1 -1
- package/dist/internal/store/topics/topic-vectors.d.ts +1 -1
- package/dist/internal/workflow/engine.d.ts +27 -3
- package/dist/internal/workflow/executor.d.ts +19 -5
- package/dist/internal/workflow/index.d.ts +5 -5
- package/dist/internal/workflow/persistence.d.ts +2 -2
- package/dist/internal/workflow/queue.d.ts +23 -2
- package/dist/internal/workflow/registry.d.ts +10 -0
- package/dist/internal/workflow/runtime.d.ts +22 -4
- package/package.json +23 -7
- package/dist/internal/wasm/grammar-store.d.ts +0 -14
- package/dist/internal/wasm/index.d.ts +0 -5
- package/dist/internal/wasm/wasm-cache.d.ts +0 -17
- package/dist/internal/wasm/wasm-downloader.d.ts +0 -10
- package/dist/internal/wasm/wasm-registry.d.ts +0 -16
- package/dist/internal/workflow/queue-store.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponraaj/dimple-sdk",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.12",
|
|
4
4
|
"private": false,
|
|
5
|
+
"description": "Local-first memory for AI agents: durable text and code memories with hybrid semantic and lexical retrieval.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"ai-agents",
|
|
8
|
+
"embeddings",
|
|
9
|
+
"libsql",
|
|
10
|
+
"local-first",
|
|
11
|
+
"memory",
|
|
12
|
+
"semantic-search"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://dimple.ponraaj.me",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/Ponraaj/dimple/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/Ponraaj/dimple.git",
|
|
21
|
+
"directory": "packages/sdk"
|
|
22
|
+
},
|
|
5
23
|
"files": [
|
|
6
24
|
"dist"
|
|
7
25
|
],
|
|
@@ -23,11 +41,6 @@
|
|
|
23
41
|
"publishConfig": {
|
|
24
42
|
"access": "public"
|
|
25
43
|
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "rm -rf dist && bun build ./src/index.ts --outdir ./dist --target node --format esm --external effect --external zod --external ai --external \"@ai-sdk/*\" --external @libsql/client --external drizzle-orm --external jsonc-parser --external \"@huggingface/transformers\" --external web-tree-sitter && tsgo -p tsconfig.build.json --outDir dist/.raw && bun scripts/internalize-dts.ts",
|
|
28
|
-
"prepack": "bun run build",
|
|
29
|
-
"typecheck": "tsgo --noEmit"
|
|
30
|
-
},
|
|
31
44
|
"dependencies": {
|
|
32
45
|
"@ai-sdk/amazon-bedrock": "^5.0.46",
|
|
33
46
|
"@ai-sdk/cohere": "^3",
|
|
@@ -36,7 +49,7 @@
|
|
|
36
49
|
"@libsql/client": "^0.17.4",
|
|
37
50
|
"ai": "^7.0.50",
|
|
38
51
|
"drizzle-orm": "^1.0.0-rc.4",
|
|
39
|
-
"effect": "4.0.0
|
|
52
|
+
"effect": "4.0.0",
|
|
40
53
|
"jsonc-parser": "^3.3.1",
|
|
41
54
|
"web-tree-sitter": "^0.26.9",
|
|
42
55
|
"zod": "^4.4.3"
|
|
@@ -49,5 +62,8 @@
|
|
|
49
62
|
"@huggingface/transformers": {
|
|
50
63
|
"optional": true
|
|
51
64
|
}
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=22"
|
|
52
68
|
}
|
|
53
69
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Context, Effect, Layer } from "effect";
|
|
2
|
-
import { GrammarProvisionError } from "@dimple/shared/errors";
|
|
3
|
-
import { Service as TreeSitterRegistry } from "./wasm-registry";
|
|
4
|
-
import { Service as WasmDownloader } from "./wasm-downloader";
|
|
5
|
-
import { Service as WasmCache } from "./wasm-cache";
|
|
6
|
-
export interface Interface {
|
|
7
|
-
readonly ensure: (lang: string) => Effect.Effect<string, GrammarProvisionError>;
|
|
8
|
-
}
|
|
9
|
-
declare const Service_base: Context.ServiceClass<Service, "@dimple/wasm/GrammarStore", Interface>;
|
|
10
|
-
export declare class Service extends Service_base {
|
|
11
|
-
}
|
|
12
|
-
export declare const layer: Layer.Layer<Service, never, TreeSitterRegistry | WasmDownloader | WasmCache>;
|
|
13
|
-
export declare const allLive: Layer.Layer<TreeSitterRegistry | WasmDownloader | WasmCache | Service, never, never>;
|
|
14
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Service as TreeSitterRegistry } from "./wasm-registry";
|
|
2
|
-
export type { GrammarMetaData } from "./wasm-registry";
|
|
3
|
-
export { Service as WasmDownloader } from "./wasm-downloader";
|
|
4
|
-
export { Service as WasmCache, layer as wasmCacheLayer } from "./wasm-cache";
|
|
5
|
-
export { Service as GrammarStore, layer as grammarStoreLayer, allLive as GrammarStoreAllLive, } from "./grammar-store";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Context, Effect, Layer } from "effect";
|
|
2
|
-
import { WasmCacheError } from "@dimple/shared/errors";
|
|
3
|
-
/**
|
|
4
|
-
* Grammar WASM cache — downloads are staged to a temp file and renamed
|
|
5
|
-
* into place (an interrupted download never leaves a corrupt parser).
|
|
6
|
-
* Plain `node:fs` (NOT @effect/platform-bun): the bundled SDK runs on
|
|
7
|
-
* Node too (the CLI's shebang spawns node), so Bun-specific filesystem
|
|
8
|
-
* layers are off the table.
|
|
9
|
-
*/
|
|
10
|
-
export interface Interface {
|
|
11
|
-
readonly ensure: (lang: string, version: string, download: Effect.Effect<Uint8Array>) => Effect.Effect<string, WasmCacheError>;
|
|
12
|
-
}
|
|
13
|
-
declare const Service_base: Context.ServiceClass<Service, "@dimple/wasm/WasmCache", Interface>;
|
|
14
|
-
export declare class Service extends Service_base {
|
|
15
|
-
}
|
|
16
|
-
export declare const layer: Layer.Layer<Service, never, never>;
|
|
17
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Context, Effect, Layer } from "effect";
|
|
2
|
-
import { WasmDownloadError } from "@dimple/shared/errors";
|
|
3
|
-
export interface Interface {
|
|
4
|
-
readonly download: (url: string) => Effect.Effect<Uint8Array, WasmDownloadError>;
|
|
5
|
-
}
|
|
6
|
-
declare const Service_base: Context.ServiceClass<Service, "@dimple/wasm/WasmDownloader", Interface>;
|
|
7
|
-
export declare class Service extends Service_base {
|
|
8
|
-
static readonly layer: Layer.Layer<Service, never, never>;
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
2
|
-
import { RegistryError } from "@dimple/shared/errors";
|
|
3
|
-
declare const GrammarMetaDataSchema: Schema.Struct<{
|
|
4
|
-
readonly lang: Schema.String;
|
|
5
|
-
readonly version: Schema.String;
|
|
6
|
-
readonly url: Schema.String;
|
|
7
|
-
}>;
|
|
8
|
-
export type GrammarMetaData = typeof GrammarMetaDataSchema.Type;
|
|
9
|
-
export interface Interface {
|
|
10
|
-
readonly resolve: (lang: string) => Effect.Effect<GrammarMetaData, RegistryError>;
|
|
11
|
-
}
|
|
12
|
-
declare const Service_base: Context.ServiceClass<Service, "@dimple/wasm/TreeSitterRegistry", Interface>;
|
|
13
|
-
export declare class Service extends Service_base {
|
|
14
|
-
static readonly layer: Layer.Layer<Service, never, never>;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Layer } from "effect";
|
|
2
|
-
import { PersistedQueue } from "effect/unstable/persistence";
|
|
3
|
-
import { SqlClient, SqlError } from "effect/unstable/sql";
|
|
4
|
-
/** Provide the FIXED store to effect's `PersistedQueue.layer`. */
|
|
5
|
-
export declare const storeSqliteLayer: Layer.Layer<PersistedQueue.PersistedQueueStore, SqlError.SqlError, SqlClient.SqlClient>;
|