@vibecontrols/vibe-plugin-storage 2026.429.4 → 2026.508.2

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.
@@ -45,4 +45,3 @@ export interface AgentDatabaseCreateOptions {
45
45
  * Throws if no encryption key is supplied (storage is always encrypted).
46
46
  */
47
47
  export declare function createAgentDatabase(options: AgentDatabaseCreateOptions): Promise<AgentDatabase>;
48
- //# sourceMappingURL=database.d.ts.map
package/dist/index.d.ts CHANGED
@@ -15,4 +15,3 @@ export { AgentDatabase, type AgentStorageAdapterFactory, type AgentStorageAdapte
15
15
  export { registerAdapter, getAdapter, listAdapters } from "./registry.js";
16
16
  export { createAgentDatabase, type AgentDatabaseCreateOptions, } from "./database.js";
17
17
  export type { StorageProvider } from "./provider.js";
18
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,17 +1,2 @@
1
- /**
2
- * @vibecontrols/vibe-plugin-storage
3
- *
4
- * Storage meta plugin. Owns:
5
- * - StorageProvider interface (plugin KV store contract)
6
- * - AgentDatabase abstract class (45-method storage contract)
7
- * - Adapter registry (registerAdapter / getAdapter / listAdapters)
8
- * - createAgentDatabase() factory (resolves the concrete adapter at runtime)
9
- *
10
- * Concrete storage providers (e.g. @vibecontrols/vibe-plugin-storage-skalex)
11
- * call `registerAdapter("name", factory)` on import. The agent then calls
12
- * `createAgentDatabase({ dbPath, encryptionKey })` to get an adapter instance.
13
- */
14
- export { AgentDatabase, } from "./types.js";
15
- export { registerAdapter, getAdapter, listAdapters } from "./registry.js";
16
- export { createAgentDatabase, } from "./database.js";
17
- //# sourceMappingURL=index.js.map
1
+ // @bun
2
+ class AgentDatabase{}var registry=new Map;function registerAdapter(name,factory){registry.set(name,factory)}function getAdapter(name){return registry.get(name)}function listAdapters(){return Array.from(registry.keys())}async function resolveFactory(options){if(options.adapterFactory)return options.adapterFactory;let name=options.adapterName??process.env.VIBE_STORAGE_ADAPTER??"skalex";if(name.startsWith("custom:")){let modPath=name.slice(7);if(!modPath)throw Error("VIBE_STORAGE_ADAPTER=custom: requires a module path after the colon");let mod=await import(modPath),factory2=mod.default??mod.createAdapter;if(typeof factory2!=="function")throw Error(`Custom storage adapter at ${modPath} must export a default function (or \`createAdapter\`) of type AgentStorageAdapterFactory`);return factory2}let factory=getAdapter(name);if(!factory){let candidate={skalex:"@vibecontrols/vibe-plugin-storage-skalex",postgres:"@vibecontrols/vibe-plugin-storage-postgres",postgresql:"@vibecontrols/vibe-plugin-storage-postgres"}[name];if(candidate)try{await import(candidate),factory=getAdapter(name)}catch{}}if(!factory)throw Error(`Unknown storage adapter: "${name}". Registered adapters: ${listAdapters().join(", ")||`(none \u2014 did you install @vibecontrols/vibe-plugin-storage-${name})?`}`);return factory}async function createAgentDatabase(options){if(!options.encryptionKey)throw Error("createAgentDatabase(): encryptionKey is required. Storage is always encrypted at rest.");if(!options.dbPath)throw Error("createAgentDatabase(): dbPath is required.");return(await resolveFactory(options))({dataDir:options.dbPath,encryptionKey:options.encryptionKey,adapterOptions:options.adapterOptions})}export{registerAdapter,listAdapters,getAdapter,createAgentDatabase,AgentDatabase};
@@ -36,4 +36,3 @@ export interface StorageProvider {
36
36
  */
37
37
  deleteAll(namespace: string): Promise<number>;
38
38
  }
39
- //# sourceMappingURL=provider.d.ts.map
@@ -11,4 +11,3 @@ import type { AgentStorageAdapterFactory } from "./types.js";
11
11
  export declare function registerAdapter(name: string, factory: AgentStorageAdapterFactory): void;
12
12
  export declare function getAdapter(name: string): AgentStorageAdapterFactory | undefined;
13
13
  export declare function listAdapters(): string[];
14
- //# sourceMappingURL=registry.d.ts.map
package/dist/types.d.ts CHANGED
@@ -138,4 +138,3 @@ export declare abstract class AgentDatabase {
138
138
  abstract getAllPluginState(pluginName: string): Promise<StorageEntry[]>;
139
139
  abstract deleteAllPluginState(pluginName: string): Promise<number>;
140
140
  }
141
- //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vibecontrols/vibe-plugin-storage",
3
- "version": "2026.429.4",
3
+ "version": "2026.508.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "description": "Storage meta plugin \u2014 owns the AgentDatabase contract and StorageProvider interface, and provides the adapter registry for concrete storage providers.",
7
+ "description": "Storage meta plugin — owns the AgentDatabase contract and StorageProvider interface, and provides the adapter registry for concrete storage providers.",
8
8
  "engines": {
9
9
  "bun": ">=1.3.0"
10
10
  },
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "license": "SEE LICENSE IN LICENSE",
17
17
  "scripts": {
18
- "build": "tsc",
18
+ "build": "bun build ./src/index.ts --outdir ./dist --target bun --minify-syntax --minify-whitespace --external elysia && tsc --emitDeclarationOnly --declaration --outDir ./dist",
19
19
  "dev": "tsc --watch",
20
20
  "lint": "eslint ./src",
21
21
  "format": "bunx prettier . --write",
@@ -67,6 +67,7 @@
67
67
  },
68
68
  "files": [
69
69
  "dist/**/*",
70
+ "!dist/**/*.map",
70
71
  "README.md",
71
72
  "LICENSE"
72
73
  ]
@@ -1 +0,0 @@
1
- {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAG5E,MAAM,WAAW,0BAA0B;IACzC,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAC5C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACnD;AA4DD;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC,CAiBxB"}
package/dist/database.js DELETED
@@ -1,81 +0,0 @@
1
- /**
2
- * Agent Database (pluggable adapter façade)
3
- *
4
- * The public import surface for all storage operations:
5
- *
6
- * import { createAgentDatabase } from "@vibecontrols/vibe-plugin-storage";
7
- * const db = await createAgentDatabase({ encryptionKey, dbPath });
8
- *
9
- * `createAgentDatabase` resolves the concrete adapter at runtime:
10
- * 1. options.adapterFactory (explicit override; tests use this)
11
- * 2. options.adapterName (e.g. "skalex" or "custom:/path/to/mod.js")
12
- * 3. process.env.VIBE_STORAGE_ADAPTER
13
- * 4. "skalex" (default — provided by @vibecontrols/vibe-plugin-storage-skalex)
14
- *
15
- * Encryption is mandatory. If no encryption key is supplied, startup fails.
16
- */
17
- import { getAdapter, listAdapters } from "./registry.js";
18
- async function resolveFactory(options) {
19
- if (options.adapterFactory)
20
- return options.adapterFactory;
21
- const name = options.adapterName ?? process.env.VIBE_STORAGE_ADAPTER ?? "skalex";
22
- if (name.startsWith("custom:")) {
23
- const modPath = name.slice("custom:".length);
24
- if (!modPath) {
25
- throw new Error("VIBE_STORAGE_ADAPTER=custom: requires a module path after the colon");
26
- }
27
- const mod = (await import(modPath));
28
- const factory = mod.default ?? mod.createAdapter;
29
- if (typeof factory !== "function") {
30
- throw new Error(`Custom storage adapter at ${modPath} must export a default function (or \`createAdapter\`) of type AgentStorageAdapterFactory`);
31
- }
32
- return factory;
33
- }
34
- let factory = getAdapter(name);
35
- if (!factory) {
36
- // Lazy-load known well-known adapter packages by name, so the host
37
- // (the agent) doesn't need to statically import any specific
38
- // provider — it only depends on this meta plugin. Anything else
39
- // requires the operator to install + import the adapter package
40
- // before calling createAgentDatabase().
41
- const wellKnown = {
42
- skalex: "@vibecontrols/vibe-plugin-storage-skalex",
43
- postgres: "@vibecontrols/vibe-plugin-storage-postgres",
44
- postgresql: "@vibecontrols/vibe-plugin-storage-postgres",
45
- };
46
- const candidate = wellKnown[name];
47
- if (candidate) {
48
- try {
49
- await import(candidate);
50
- factory = getAdapter(name);
51
- }
52
- catch {
53
- /* fall through to the descriptive error below */
54
- }
55
- }
56
- }
57
- if (!factory) {
58
- throw new Error(`Unknown storage adapter: "${name}". Registered adapters: ${listAdapters().join(", ") || `(none — did you install @vibecontrols/vibe-plugin-storage-${name})?`}`);
59
- }
60
- return factory;
61
- }
62
- /**
63
- * Create an AgentDatabase instance. Picks the concrete adapter at
64
- * runtime, initialises it, and returns the ready-to-use instance.
65
- * Throws if no encryption key is supplied (storage is always encrypted).
66
- */
67
- export async function createAgentDatabase(options) {
68
- if (!options.encryptionKey) {
69
- throw new Error("createAgentDatabase(): encryptionKey is required. Storage is always encrypted at rest.");
70
- }
71
- if (!options.dbPath) {
72
- throw new Error("createAgentDatabase(): dbPath is required.");
73
- }
74
- const factory = await resolveFactory(options);
75
- return factory({
76
- dataDir: options.dbPath,
77
- encryptionKey: options.encryptionKey,
78
- adapterOptions: options.adapterOptions,
79
- });
80
- }
81
- //# sourceMappingURL=database.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"database.js","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA2BzD,KAAK,UAAU,cAAc,CAC3B,OAAmC;IAEnC,IAAI,OAAO,CAAC,cAAc;QAAE,OAAO,OAAO,CAAC,cAAc,CAAC;IAE1D,MAAM,IAAI,GACR,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,QAAQ,CAAC;IAEtE,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI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AC3B,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,4CAA4C,CAC7C,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,OAAO,CAAC;QACb,OAAO,EAAE,OAAO,CAAC,MAAM;QACvB,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,IAAI,EACT,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,aAAa,GAQd,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EACL,mBAAmB,GAEpB,MAAM,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE5D;;OAEG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzD;;OAEG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAEjD;;;OAGG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/C"}
package/dist/provider.js DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * StorageProvider Interface
3
- *
4
- * KV store abstraction for plugin data. Plugins use this interface
5
- * to persist key-value data without coupling to a specific database.
6
- *
7
- * Values are JSON strings — plugins serialize/deserialize as needed.
8
- * Each plugin gets its own namespace for isolation.
9
- *
10
- * Default implementation: encrypted Skalex-backed agent storage,
11
- * provided by @vibecontrols/vibe-plugin-storage-skalex.
12
- */
13
- export {};
14
- //# sourceMappingURL=provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAI7D,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI,CAEN;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GACX,0BAA0B,GAAG,SAAS,CAExC;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC"}
package/dist/registry.js DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Storage Adapter Registry
3
- *
4
- * In-process registry keyed by adapter name. Concrete storage providers
5
- * (e.g. @vibecontrols/vibe-plugin-storage-skalex) call `registerAdapter`
6
- * on import. Users can register custom adapters before calling
7
- * `createAgentDatabase()`, or pass `adapterName: "custom:/abs/path/to/mod.js"`
8
- * at runtime for zero-build pluggability.
9
- */
10
- const registry = new Map();
11
- export function registerAdapter(name, factory) {
12
- registry.set(name, factory);
13
- }
14
- export function getAdapter(name) {
15
- return registry.get(name);
16
- }
17
- export function listAdapters() {
18
- return Array.from(registry.keys());
19
- }
20
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAsC,CAAC;AAE/D,MAAM,UAAU,eAAe,CAC7B,IAAY,EACZ,OAAmC;IAEnC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,IAAY;IAEZ,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACrC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAA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I,OAAO,CAAC,YAAY,EAAE,CAAC;IAC1D,QAAQ,CAAC,sBAAsB,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAC1D,QAAQ,CAAC,wBAAwB,CAC/B,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,QAAQ,GAAG,MAAM,GACxB,OAAO,CAAC,IAAI,CAAC;IAChB,QAAQ,CAAC,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC;IACpD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IACzD,QAAQ,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvE,QAAQ,CAAC,cAAc,CACrB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,cAAc,CACrB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC;IAChB,QAAQ,CAAC,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7E,QAAQ,CAAC,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IACvE,QAAQ,CAAC,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CACnE"}
package/dist/types.js DELETED
@@ -1,24 +0,0 @@
1
- /**
2
- * Storage Adapter Contract
3
- *
4
- * Defines the 45-method interface every concrete storage adapter must
5
- * implement. Callers import the abstract `AgentDatabase` class — the
6
- * concrete adapter (e.g. Skalex via @vibecontrols/vibe-plugin-storage-skalex)
7
- * is resolved at startup via the adapter registry and returned by
8
- * `createAgentDatabase()`.
9
- *
10
- * Any third-party storage layer can be plugged in by implementing this
11
- * class and either registering it with a name (see ./registry.ts) or
12
- * passing a factory directly to createAgentDatabase().
13
- *
14
- * Encryption at rest is MANDATORY for any adapter that persists data.
15
- * Every adapter MUST use the provided encryption key.
16
- */
17
- // ── Abstract storage contract ───────────────────────────────────────────
18
- /**
19
- * Abstract storage contract. This is both the public type callers import
20
- * and the base class every adapter extends. All methods are async.
21
- */
22
- export class AgentDatabase {
23
- }
24
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAoFH,2EAA2E;AAE3E;;;GAGG;AACH,MAAM,OAAgB,aAAa;CAwGlC"}