@open-mercato/cache 0.11.1-develop.8593.1.50784dae35 → 0.11.1-develop.8687.1.adb16f62b3

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 (61) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/AGENTS.md +27 -21
  3. package/README.md +30 -0
  4. package/dist/codec.js +1 -74
  5. package/dist/codec.js.map +2 -2
  6. package/dist/defaults.js +1 -6
  7. package/dist/defaults.js.map +2 -2
  8. package/dist/errors.js +1 -12
  9. package/dist/errors.js.map +2 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/patterns.js +1 -35
  12. package/dist/patterns.js.map +2 -2
  13. package/dist/provider.js +440 -0
  14. package/dist/provider.js.map +7 -0
  15. package/dist/redisConnection.js +2 -0
  16. package/dist/redisConnection.js.map +7 -0
  17. package/dist/service.js +320 -80
  18. package/dist/service.js.map +3 -3
  19. package/dist/strategies/jsonfile.js +1 -186
  20. package/dist/strategies/jsonfile.js.map +3 -3
  21. package/dist/strategies/memory.js +1 -196
  22. package/dist/strategies/memory.js.map +3 -3
  23. package/dist/strategies/redis.js +1 -443
  24. package/dist/strategies/redis.js.map +3 -3
  25. package/dist/strategies/sqlite.js +1 -196
  26. package/dist/strategies/sqlite.js.map +3 -3
  27. package/dist/testing/conformance.js +448 -0
  28. package/dist/testing/conformance.js.map +7 -0
  29. package/dist/testing/index.js +12 -0
  30. package/dist/testing/index.js.map +7 -0
  31. package/dist/testing/remote.js +182 -0
  32. package/dist/testing/remote.js.map +7 -0
  33. package/fixtures/build-conformance-host.mjs +58 -0
  34. package/fixtures/cache-provider-fixture/index.d.ts +18 -0
  35. package/fixtures/cache-provider-fixture/index.js +307 -0
  36. package/fixtures/cache-provider-fixture/package.json +25 -0
  37. package/fixtures/conformance-child.mjs +41 -0
  38. package/jest.config.cjs +3 -1
  39. package/package.json +10 -2
  40. package/src/__tests__/cache-di-contract-docs.test.ts +2 -2
  41. package/src/__tests__/conformance.memory-provider.test.ts +77 -0
  42. package/src/__tests__/provider-fixture.packed.test.ts +178 -0
  43. package/src/__tests__/provider.test.ts +469 -0
  44. package/src/__tests__/service.provider.test.ts +513 -0
  45. package/src/__tests__/service.test.ts +94 -3
  46. package/src/codec.ts +1 -94
  47. package/src/defaults.ts +1 -2
  48. package/src/errors.ts +1 -14
  49. package/src/index.ts +4 -0
  50. package/src/patterns.ts +1 -40
  51. package/src/provider.ts +641 -0
  52. package/src/redisConnection.ts +1 -0
  53. package/src/service.ts +396 -89
  54. package/src/strategies/jsonfile.ts +1 -242
  55. package/src/strategies/memory.ts +1 -275
  56. package/src/strategies/redis.ts +1 -615
  57. package/src/strategies/sqlite.ts +1 -292
  58. package/src/testing/conformance.ts +569 -0
  59. package/src/testing/index.ts +11 -0
  60. package/src/testing/remote.ts +240 -0
  61. package/src/types.ts +8 -106
@@ -0,0 +1,182 @@
1
+ import { spawn } from "node:child_process";
2
+ import { runWithCacheTenant } from "../tenantContext.js";
3
+ function executeConformanceRemoteOp(service, operation) {
4
+ return runWithCacheTenant(operation.tenant, async () => {
5
+ switch (operation.op) {
6
+ case "get":
7
+ return service.get(operation.key, operation.returnExpired ? { returnExpired: true } : void 0);
8
+ case "set":
9
+ await service.set(operation.key, operation.value, {
10
+ ...operation.tags ? { tags: operation.tags } : {},
11
+ ...operation.ttl !== void 0 ? { ttl: operation.ttl } : {}
12
+ });
13
+ return null;
14
+ case "has":
15
+ return service.has(operation.key);
16
+ case "delete":
17
+ return service.delete(operation.key);
18
+ case "deleteByTags":
19
+ return service.deleteByTags(operation.tags);
20
+ case "clear":
21
+ return service.clear();
22
+ case "keys":
23
+ return service.keys(operation.pattern);
24
+ case "stats":
25
+ return service.stats();
26
+ default:
27
+ throw new Error("[internal] unknown conformance remote operation");
28
+ }
29
+ });
30
+ }
31
+ async function serveConformanceRemoteOps(service, input, write) {
32
+ let buffer = "";
33
+ const handleLine = async (line) => {
34
+ if (!line.trim()) return;
35
+ const request = JSON.parse(line);
36
+ let response;
37
+ try {
38
+ const result = await executeConformanceRemoteOp(service, request.operation);
39
+ response = { id: request.id, ok: true, result: result === void 0 ? null : result };
40
+ } catch (error) {
41
+ response = { id: request.id, ok: false, error: error instanceof Error ? error.message : String(error) };
42
+ }
43
+ write(`${JSON.stringify(response)}
44
+ `);
45
+ };
46
+ for await (const chunk of input) {
47
+ buffer += typeof chunk === "string" ? chunk : chunk.toString("utf8");
48
+ let newline = buffer.indexOf("\n");
49
+ while (newline >= 0) {
50
+ const line = buffer.slice(0, newline);
51
+ buffer = buffer.slice(newline + 1);
52
+ await handleLine(line);
53
+ newline = buffer.indexOf("\n");
54
+ }
55
+ }
56
+ if (buffer.trim()) await handleLine(buffer);
57
+ }
58
+ async function spawnConformanceRemoteProcess(options) {
59
+ const child = spawn(options.command, options.args, {
60
+ cwd: options.cwd,
61
+ env: options.env ? { ...process.env, ...options.env } : process.env,
62
+ stdio: ["pipe", "pipe", "pipe"]
63
+ });
64
+ const operationTimeoutMs = options.operationTimeoutMs ?? 3e4;
65
+ const pending = /* @__PURE__ */ new Map();
66
+ let stderr = "";
67
+ let stdoutBuffer = "";
68
+ let ready = false;
69
+ let exited = false;
70
+ let nextId = 1;
71
+ let settleReady = null;
72
+ const readyPromise = new Promise((resolve, reject) => {
73
+ settleReady = { resolve, reject };
74
+ });
75
+ const failAll = (error) => {
76
+ settleReady?.reject(error);
77
+ for (const entry of pending.values()) {
78
+ clearTimeout(entry.timer);
79
+ entry.reject(error);
80
+ }
81
+ pending.clear();
82
+ };
83
+ const handleLine = (line) => {
84
+ if (!line) return;
85
+ if (!ready) {
86
+ if (line === "ready") {
87
+ ready = true;
88
+ settleReady?.resolve();
89
+ }
90
+ return;
91
+ }
92
+ let response;
93
+ try {
94
+ response = JSON.parse(line);
95
+ } catch {
96
+ return;
97
+ }
98
+ const entry = pending.get(response.id);
99
+ if (!entry) return;
100
+ pending.delete(response.id);
101
+ clearTimeout(entry.timer);
102
+ if (response.ok) entry.resolve(response.result);
103
+ else entry.reject(new Error(`[internal] remote conformance operation failed: ${response.error}`));
104
+ };
105
+ child.stderr.setEncoding("utf8");
106
+ child.stderr.on("data", (chunk) => {
107
+ stderr = `${stderr}${chunk}`.slice(-4e3);
108
+ });
109
+ child.stdout.setEncoding("utf8");
110
+ child.stdout.on("data", (chunk) => {
111
+ stdoutBuffer += chunk;
112
+ let newline = stdoutBuffer.indexOf("\n");
113
+ while (newline >= 0) {
114
+ const line = stdoutBuffer.slice(0, newline).trim();
115
+ stdoutBuffer = stdoutBuffer.slice(newline + 1);
116
+ newline = stdoutBuffer.indexOf("\n");
117
+ handleLine(line);
118
+ }
119
+ });
120
+ child.on("exit", (code) => {
121
+ exited = true;
122
+ failAll(new Error(`[internal] conformance remote process exited with code ${code}: ${stderr.trim()}`));
123
+ });
124
+ child.on("error", (error) => {
125
+ exited = true;
126
+ failAll(error);
127
+ });
128
+ const readyTimeoutMs = options.readyTimeoutMs ?? 3e4;
129
+ let readyTimer = null;
130
+ try {
131
+ await Promise.race([
132
+ readyPromise,
133
+ new Promise((_, reject) => {
134
+ readyTimer = setTimeout(
135
+ () => reject(new Error(`[internal] conformance remote process not ready within ${readyTimeoutMs}ms: ${stderr.trim()}`)),
136
+ readyTimeoutMs
137
+ );
138
+ })
139
+ ]);
140
+ } catch (error) {
141
+ child.kill("SIGKILL");
142
+ throw error;
143
+ } finally {
144
+ if (readyTimer) clearTimeout(readyTimer);
145
+ }
146
+ let closing = null;
147
+ return {
148
+ run(operation) {
149
+ if (exited || closing) return Promise.reject(new Error("[internal] conformance remote process is closed"));
150
+ const id = nextId++;
151
+ return new Promise((resolve, reject) => {
152
+ const timer = setTimeout(() => {
153
+ pending.delete(id);
154
+ reject(new Error(`[internal] conformance remote operation "${operation.op}" timed out after ${operationTimeoutMs}ms`));
155
+ }, operationTimeoutMs);
156
+ pending.set(id, { resolve, reject, timer });
157
+ const request = { id, operation };
158
+ child.stdin.write(`${JSON.stringify(request)}
159
+ `);
160
+ });
161
+ },
162
+ close() {
163
+ if (!closing) {
164
+ closing = exited ? Promise.resolve() : new Promise((resolve) => {
165
+ const killTimer = setTimeout(() => child.kill("SIGKILL"), 5e3);
166
+ child.once("exit", () => {
167
+ clearTimeout(killTimer);
168
+ resolve();
169
+ });
170
+ child.stdin.end();
171
+ });
172
+ }
173
+ return closing;
174
+ }
175
+ };
176
+ }
177
+ export {
178
+ executeConformanceRemoteOp,
179
+ serveConformanceRemoteOps,
180
+ spawnConformanceRemoteProcess
181
+ };
182
+ //# sourceMappingURL=remote.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/testing/remote.ts"],
4
+ "sourcesContent": ["import { spawn } from 'node:child_process'\nimport type { CacheStrategy } from '../types'\nimport { runWithCacheTenant } from '../tenantContext'\n\nexport type ConformanceRemoteOp =\n | { op: 'get'; tenant: string | null; key: string; returnExpired?: boolean }\n | { op: 'set'; tenant: string | null; key: string; value: unknown; tags?: string[]; ttl?: number }\n | { op: 'has'; tenant: string | null; key: string }\n | { op: 'delete'; tenant: string | null; key: string }\n | { op: 'deleteByTags'; tenant: string | null; tags: string[] }\n | { op: 'clear'; tenant: string | null }\n | { op: 'keys'; tenant: string | null; pattern?: string }\n | { op: 'stats'; tenant: string | null }\n\nexport type ConformanceRemoteProcess = {\n run(operation: ConformanceRemoteOp): Promise<unknown>\n close(): Promise<void>\n}\n\nexport type ConformanceRemoteRequest = { id: number; operation: ConformanceRemoteOp }\n\nexport type ConformanceRemoteResponse =\n | { id: number; ok: true; result: unknown }\n | { id: number; ok: false; error: string }\n\n/**\n * Execute one serializable conformance operation against a cache service inside\n * the operation's tenant scope. Child-process runners use this so the parent\n * suite can drive an independent process with the same semantics.\n */\nexport function executeConformanceRemoteOp(service: CacheStrategy, operation: ConformanceRemoteOp): Promise<unknown> {\n return runWithCacheTenant(operation.tenant, async (): Promise<unknown> => {\n switch (operation.op) {\n case 'get':\n return service.get(operation.key, operation.returnExpired ? { returnExpired: true } : undefined)\n case 'set':\n await service.set(operation.key, operation.value, {\n ...(operation.tags ? { tags: operation.tags } : {}),\n ...(operation.ttl !== undefined ? { ttl: operation.ttl } : {}),\n })\n return null\n case 'has':\n return service.has(operation.key)\n case 'delete':\n return service.delete(operation.key)\n case 'deleteByTags':\n return service.deleteByTags(operation.tags)\n case 'clear':\n return service.clear()\n case 'keys':\n return service.keys(operation.pattern)\n case 'stats':\n return service.stats()\n default:\n throw new Error('[internal] unknown conformance remote operation')\n }\n })\n}\n\n/**\n * Serve conformance operations over newline-delimited JSON (one request per\n * line on `input`, one response per line on `output`). Resolves when `input`\n * ends. Used by independent-process runners.\n */\nexport async function serveConformanceRemoteOps(\n service: CacheStrategy,\n input: AsyncIterable<string | Buffer>,\n write: (line: string) => void,\n): Promise<void> {\n let buffer = ''\n const handleLine = async (line: string) => {\n if (!line.trim()) return\n const request = JSON.parse(line) as ConformanceRemoteRequest\n let response: ConformanceRemoteResponse\n try {\n const result = await executeConformanceRemoteOp(service, request.operation)\n response = { id: request.id, ok: true, result: result === undefined ? null : result }\n } catch (error) {\n response = { id: request.id, ok: false, error: error instanceof Error ? error.message : String(error) }\n }\n write(`${JSON.stringify(response)}\\n`)\n }\n for await (const chunk of input) {\n buffer += typeof chunk === 'string' ? chunk : chunk.toString('utf8')\n let newline = buffer.indexOf('\\n')\n while (newline >= 0) {\n const line = buffer.slice(0, newline)\n buffer = buffer.slice(newline + 1)\n await handleLine(line)\n newline = buffer.indexOf('\\n')\n }\n }\n if (buffer.trim()) await handleLine(buffer)\n}\n\nexport type SpawnConformanceRemoteOptions = {\n command: string\n args: string[]\n env?: Record<string, string | undefined>\n cwd?: string\n readyTimeoutMs?: number\n operationTimeoutMs?: number\n}\n\ntype PendingRemoteCall = {\n resolve(value: unknown): void\n reject(error: Error): void\n timer: ReturnType<typeof setTimeout>\n}\n\n/**\n * Spawn a child process that serves `serveConformanceRemoteOps` over stdio and\n * return a `ConformanceRemoteProcess` handle for `createIndependentProcess`.\n * The child must print the line `ready` on stdout once its service is built.\n */\nexport async function spawnConformanceRemoteProcess(options: SpawnConformanceRemoteOptions): Promise<ConformanceRemoteProcess> {\n const child = spawn(options.command, options.args, {\n cwd: options.cwd,\n env: options.env ? { ...process.env, ...options.env } : process.env,\n stdio: ['pipe', 'pipe', 'pipe'],\n })\n const operationTimeoutMs = options.operationTimeoutMs ?? 30_000\n const pending = new Map<number, PendingRemoteCall>()\n let stderr = ''\n let stdoutBuffer = ''\n let ready = false\n let exited = false\n let nextId = 1\n let settleReady: { resolve(): void; reject(error: Error): void } | null = null\n const readyPromise = new Promise<void>((resolve, reject) => {\n settleReady = { resolve, reject }\n })\n\n const failAll = (error: Error) => {\n settleReady?.reject(error)\n for (const entry of pending.values()) {\n clearTimeout(entry.timer)\n entry.reject(error)\n }\n pending.clear()\n }\n\n const handleLine = (line: string) => {\n if (!line) return\n if (!ready) {\n if (line === 'ready') {\n ready = true\n settleReady?.resolve()\n }\n return\n }\n let response: ConformanceRemoteResponse\n try {\n response = JSON.parse(line) as ConformanceRemoteResponse\n } catch {\n return\n }\n const entry = pending.get(response.id)\n if (!entry) return\n pending.delete(response.id)\n clearTimeout(entry.timer)\n if (response.ok) entry.resolve(response.result)\n else entry.reject(new Error(`[internal] remote conformance operation failed: ${response.error}`))\n }\n\n child.stderr.setEncoding('utf8')\n child.stderr.on('data', (chunk: string) => {\n stderr = `${stderr}${chunk}`.slice(-4000)\n })\n child.stdout.setEncoding('utf8')\n child.stdout.on('data', (chunk: string) => {\n stdoutBuffer += chunk\n let newline = stdoutBuffer.indexOf('\\n')\n while (newline >= 0) {\n const line = stdoutBuffer.slice(0, newline).trim()\n stdoutBuffer = stdoutBuffer.slice(newline + 1)\n newline = stdoutBuffer.indexOf('\\n')\n handleLine(line)\n }\n })\n child.on('exit', (code) => {\n exited = true\n failAll(new Error(`[internal] conformance remote process exited with code ${code}: ${stderr.trim()}`))\n })\n child.on('error', (error) => {\n exited = true\n failAll(error)\n })\n\n const readyTimeoutMs = options.readyTimeoutMs ?? 30_000\n let readyTimer: ReturnType<typeof setTimeout> | null = null\n try {\n await Promise.race([\n readyPromise,\n new Promise<never>((_, reject) => {\n readyTimer = setTimeout(\n () => reject(new Error(`[internal] conformance remote process not ready within ${readyTimeoutMs}ms: ${stderr.trim()}`)),\n readyTimeoutMs,\n )\n }),\n ])\n } catch (error) {\n child.kill('SIGKILL')\n throw error\n } finally {\n if (readyTimer) clearTimeout(readyTimer)\n }\n\n let closing: Promise<void> | null = null\n return {\n run(operation) {\n if (exited || closing) return Promise.reject(new Error('[internal] conformance remote process is closed'))\n const id = nextId++\n return new Promise<unknown>((resolve, reject) => {\n const timer = setTimeout(() => {\n pending.delete(id)\n reject(new Error(`[internal] conformance remote operation \"${operation.op}\" timed out after ${operationTimeoutMs}ms`))\n }, operationTimeoutMs)\n pending.set(id, { resolve, reject, timer })\n const request: ConformanceRemoteRequest = { id, operation }\n child.stdin.write(`${JSON.stringify(request)}\\n`)\n })\n },\n close() {\n if (!closing) {\n closing = exited\n ? Promise.resolve()\n : new Promise<void>((resolve) => {\n const killTimer = setTimeout(() => child.kill('SIGKILL'), 5_000)\n child.once('exit', () => {\n clearTimeout(killTimer)\n resolve()\n })\n child.stdin.end()\n })\n }\n return closing\n },\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,aAAa;AAEtB,SAAS,0BAA0B;AA4B5B,SAAS,2BAA2B,SAAwB,WAAkD;AACnH,SAAO,mBAAmB,UAAU,QAAQ,YAA8B;AACxE,YAAQ,UAAU,IAAI;AAAA,MACpB,KAAK;AACH,eAAO,QAAQ,IAAI,UAAU,KAAK,UAAU,gBAAgB,EAAE,eAAe,KAAK,IAAI,MAAS;AAAA,MACjG,KAAK;AACH,cAAM,QAAQ,IAAI,UAAU,KAAK,UAAU,OAAO;AAAA,UAChD,GAAI,UAAU,OAAO,EAAE,MAAM,UAAU,KAAK,IAAI,CAAC;AAAA,UACjD,GAAI,UAAU,QAAQ,SAAY,EAAE,KAAK,UAAU,IAAI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U,QAAS,QAAO,QAAQ,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACzG,YAAM,KAAK;AACX,aAAO,IAAI,QAAiB,CAAC,SAAS,WAAW;AAC/C,cAAM,QAAQ,WAAW,MAAM;AAC7B,kBAAQ,OAAO,EAAE;AACjB,iBAAO,IAAI,MAAM,4CAA4C,UAAU,EAAE,qBAAqB,kBAAkB,IAAI,CAAC;AAAA,QACvH,GAAG,kBAAkB;AACrB,gBAAQ,IAAI,IAAI,EAAE,SAAS,QAAQ,MAAM,CAAC;AAC1C,cAAM,UAAoC,EAAE,IAAI,UAAU;AAC1D,cAAM,MAAM,MAAM,GAAG,KAAK,UAAU,OAAO,CAAC;AAAA,CAAI;AAAA,MAClD,CAAC;AAAA,IACH;AAAA,IACA,QAAQ;AACN,UAAI,CAAC,SAAS;AACZ,kBAAU,SACN,QAAQ,QAAQ,IAChB,IAAI,QAAc,CAAC,YAAY;AAC/B,gBAAM,YAAY,WAAW,MAAM,MAAM,KAAK,SAAS,GAAG,GAAK;AAC/D,gBAAM,KAAK,QAAQ,MAAM;AACvB,yBAAa,SAAS;AACtB,oBAAQ;AAAA,UACV,CAAC;AACD,gBAAM,MAAM,IAAI;AAAA,QAClB,CAAC;AAAA,MACL;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,58 @@
1
+ // Bundles the @open-mercato/cache host (service, provider contract, conformance
2
+ // remote server) from source into one ESM file for the independent-process
3
+ // conformance runner. Workspace packages resolve to their sources so the
4
+ // runner does not depend on any package's dist being built.
5
+ // Usage: node build-conformance-host.mjs <outfile>
6
+ import { existsSync } from 'node:fs'
7
+ import path from 'node:path'
8
+ import { fileURLToPath } from 'node:url'
9
+ import { build } from 'esbuild'
10
+
11
+ const outfile = process.argv[2]
12
+ if (!outfile) {
13
+ process.stderr.write('[internal] usage: build-conformance-host.mjs <outfile>\n')
14
+ process.exit(2)
15
+ }
16
+
17
+ const fixturesDir = path.dirname(fileURLToPath(import.meta.url))
18
+ const cacheSrc = path.resolve(fixturesDir, '../src')
19
+ const packagesDir = path.resolve(fixturesDir, '../..')
20
+
21
+ function resolveSource(base) {
22
+ for (const candidate of [`${base}.ts`, `${base}.tsx`, path.join(base, 'index.ts')]) {
23
+ if (existsSync(candidate)) return candidate
24
+ }
25
+ return null
26
+ }
27
+
28
+ const workspaceSources = {
29
+ name: 'workspace-sources',
30
+ setup(context) {
31
+ context.onResolve({ filter: /^@open-mercato\/[^/]+(?:\/.+)?$/ }, (args) => {
32
+ const [, scopeName, ...rest] = args.path.split('/')
33
+ const resolved = resolveSource(path.join(packagesDir, scopeName, 'src', ...(rest.length ? rest : ['index'])))
34
+ return resolved ? { path: resolved } : { path: args.path, external: true }
35
+ })
36
+ context.onResolve({ filter: /^[^./]/ }, (args) => (path.isAbsolute(args.path) ? undefined : { path: args.path, external: true }))
37
+ },
38
+ }
39
+
40
+ await build({
41
+ stdin: {
42
+ contents: [
43
+ "export { createCacheService } from './service'",
44
+ "export { defineCacheProviderRegistration, resolveCacheProvider } from './provider'",
45
+ "export { serveConformanceRemoteOps } from './testing/remote'",
46
+ ].join('\n'),
47
+ resolveDir: cacheSrc,
48
+ loader: 'ts',
49
+ sourcefile: 'conformance-host.ts',
50
+ },
51
+ outfile,
52
+ bundle: true,
53
+ format: 'esm',
54
+ platform: 'node',
55
+ target: 'node20',
56
+ logLevel: 'error',
57
+ plugins: [workspaceSources],
58
+ })
@@ -0,0 +1,18 @@
1
+ import type { CacheProviderDefinition, CacheProviderSettingsSchema } from '@open-mercato/cache/provider'
2
+
3
+ export type FixtureFsSettingsInput = {
4
+ directory: string
5
+ maxBatch?: number
6
+ }
7
+
8
+ export type FixtureFsConfig = {
9
+ directory: string
10
+ maxBatch: number
11
+ }
12
+
13
+ export declare const PROVIDER_ID: 'acme/fixture-fs'
14
+ export declare const DEFAULT_MAX_BATCH: number
15
+ export declare const settings: CacheProviderSettingsSchema<FixtureFsConfig>
16
+ export declare const provider: CacheProviderDefinition<FixtureFsConfig>
17
+ export declare function fixtureEntryPath(directory: string, namespace: string, physicalKey: string): string
18
+ export default provider
@@ -0,0 +1,307 @@
1
+ import { promises as fs, constants as fsConstants } from 'node:fs'
2
+ import path from 'node:path'
3
+ import { createHash, randomUUID } from 'node:crypto'
4
+
5
+ export const PROVIDER_ID = 'acme/fixture-fs'
6
+ export const DEFAULT_MAX_BATCH = 256
7
+ const MAX_BATCH_LIMIT = 10000
8
+ const ENTRY_FORMAT_VERSION = 1
9
+ const ENTRY_PREFIX = 'e-'
10
+ const HASHED_PREFIX = 'h-'
11
+ const ENTRY_SUFFIX = '.json'
12
+ const MAX_ENCODED_NAME_LENGTH = 200
13
+ const KNOWN_SETTINGS = new Set(['directory', 'maxBatch'])
14
+
15
+ function fail(issues) {
16
+ return { success: false, error: { issues } }
17
+ }
18
+
19
+ export const settings = {
20
+ safeParse(input) {
21
+ if (typeof input !== 'object' || input === null || Array.isArray(input)) {
22
+ return fail([{ path: [], message: 'Expected an object', code: 'invalid_type' }])
23
+ }
24
+ const issues = []
25
+ for (const key of Object.keys(input)) {
26
+ if (!KNOWN_SETTINGS.has(key)) issues.push({ path: [key], message: 'Unrecognized setting', code: 'unrecognized_keys' })
27
+ }
28
+ const { directory, maxBatch } = input
29
+ if (typeof directory !== 'string' || directory.trim().length === 0) {
30
+ issues.push({ path: ['directory'], message: 'Expected a non-empty directory path', code: 'invalid_type' })
31
+ } else if (!path.isAbsolute(directory)) {
32
+ issues.push({ path: ['directory'], message: 'Expected an absolute directory path', code: 'invalid_string' })
33
+ }
34
+ if (maxBatch !== undefined && (!Number.isInteger(maxBatch) || maxBatch < 1 || maxBatch > MAX_BATCH_LIMIT)) {
35
+ issues.push({ path: ['maxBatch'], message: `Expected an integer between 1 and ${MAX_BATCH_LIMIT}`, code: 'invalid_number' })
36
+ }
37
+ if (issues.length > 0) return fail(issues)
38
+ return { success: true, data: { directory: path.resolve(directory), maxBatch: maxBatch ?? DEFAULT_MAX_BATCH } }
39
+ },
40
+ }
41
+
42
+ function namespaceDirectoryName(namespace) {
43
+ return `ns-${String(namespace).replace(/[^a-zA-Z0-9._-]/g, '_')}`
44
+ }
45
+
46
+ function entryFileName(key) {
47
+ const encoded = Buffer.from(key, 'utf8').toString('base64url')
48
+ if (encoded.length <= MAX_ENCODED_NAME_LENGTH) return `${ENTRY_PREFIX}${encoded}${ENTRY_SUFFIX}`
49
+ return `${HASHED_PREFIX}${createHash('sha256').update(key).digest('hex')}${ENTRY_SUFFIX}`
50
+ }
51
+
52
+ function isEntryFileName(name) {
53
+ return (name.startsWith(ENTRY_PREFIX) || name.startsWith(HASHED_PREFIX)) && name.endsWith(ENTRY_SUFFIX)
54
+ }
55
+
56
+ /** Absolute path of the file that stores `physicalKey` for `namespace`. Exposed for corruption tests. */
57
+ export function fixtureEntryPath(directory, namespace, physicalKey) {
58
+ return path.join(directory, namespaceDirectoryName(namespace), entryFileName(physicalKey))
59
+ }
60
+
61
+ function isMissing(error) {
62
+ return Boolean(error) && typeof error === 'object' && (error.code === 'ENOENT' || error.code === 'ENOTDIR')
63
+ }
64
+
65
+ function isEntryRecord(value) {
66
+ return typeof value === 'object'
67
+ && value !== null
68
+ && value.v === ENTRY_FORMAT_VERSION
69
+ && typeof value.key === 'string'
70
+ && Array.isArray(value.tags)
71
+ && (value.expiresAt === null || typeof value.expiresAt === 'number')
72
+ && (value.encoding === 'text' || value.encoding === 'base64')
73
+ && typeof value.payload === 'string'
74
+ }
75
+
76
+ function isExpired(entry, now = Date.now()) {
77
+ return entry.expiresAt !== null && entry.expiresAt <= now
78
+ }
79
+
80
+ function chunk(items, size) {
81
+ const chunks = []
82
+ for (let index = 0; index < items.length; index += size) chunks.push(items.slice(index, index + size))
83
+ return chunks
84
+ }
85
+
86
+ function createFixtureStrategy(config, context) {
87
+ const root = config.directory
88
+ const directory = path.join(root, namespaceDirectoryName(context.namespace))
89
+ const maxBatch = config.maxBatch
90
+ const { helpers, logger } = context
91
+
92
+ const filePath = (key) => path.join(directory, entryFileName(key))
93
+
94
+ async function ensureDirectory() {
95
+ await fs.mkdir(directory, { recursive: true })
96
+ }
97
+
98
+ async function readRecord(file) {
99
+ let raw
100
+ try {
101
+ raw = await fs.readFile(file, 'utf8')
102
+ } catch (error) {
103
+ if (isMissing(error)) return { state: 'missing' }
104
+ throw error
105
+ }
106
+ try {
107
+ const parsed = JSON.parse(raw)
108
+ if (!isEntryRecord(parsed)) return { state: 'corrupt' }
109
+ return { state: 'ok', entry: parsed }
110
+ } catch {
111
+ return { state: 'corrupt' }
112
+ }
113
+ }
114
+
115
+ function decodeValue(entry) {
116
+ const raw = entry.encoding === 'base64' ? Buffer.from(entry.payload, 'base64') : entry.payload
117
+ return JSON.parse(helpers.decode(raw))
118
+ }
119
+
120
+ async function discardCorrupt(file) {
121
+ logger.warn('dropping undecodable cache entry')
122
+ await fs.unlink(file).catch(() => undefined)
123
+ }
124
+
125
+ async function readValue(key, returnExpired) {
126
+ const file = filePath(key)
127
+ const record = await readRecord(file)
128
+ if (record.state === 'missing') return { found: false }
129
+ if (record.state === 'corrupt' || record.entry.key !== key) {
130
+ await discardCorrupt(file)
131
+ return { found: false }
132
+ }
133
+ if (isExpired(record.entry) && !returnExpired) return { found: false }
134
+ try {
135
+ return { found: true, value: decodeValue(record.entry) }
136
+ } catch {
137
+ await discardCorrupt(file)
138
+ return { found: false }
139
+ }
140
+ }
141
+
142
+ async function writeAtomically(file, contents) {
143
+ const temp = path.join(directory, `.tmp-${randomUUID()}`)
144
+ try {
145
+ await fs.writeFile(temp, contents, 'utf8')
146
+ } catch (error) {
147
+ if (!isMissing(error)) throw error
148
+ await ensureDirectory()
149
+ await fs.writeFile(temp, contents, 'utf8')
150
+ }
151
+ try {
152
+ await fs.rename(temp, file)
153
+ } catch (error) {
154
+ await fs.unlink(temp).catch(() => undefined)
155
+ throw error
156
+ }
157
+ }
158
+
159
+ async function listEntryFiles() {
160
+ let names
161
+ try {
162
+ names = await fs.readdir(directory)
163
+ } catch (error) {
164
+ if (isMissing(error)) return []
165
+ throw error
166
+ }
167
+ return names.filter(isEntryFileName).map((name) => path.join(directory, name))
168
+ }
169
+
170
+ async function scanEntries(visit) {
171
+ const files = await listEntryFiles()
172
+ for (const batch of chunk(files, maxBatch)) {
173
+ await Promise.all(batch.map(async (file) => {
174
+ const record = await readRecord(file)
175
+ if (record.state === 'missing') return
176
+ await visit(file, record.state === 'ok' ? record.entry : null)
177
+ }))
178
+ }
179
+ }
180
+
181
+ // Compare-and-delete: claim the file by renaming it, re-check the claimed
182
+ // record, and put it back (without clobbering a newer write) when it no
183
+ // longer matches. Returns true only for a confirmed removal.
184
+ async function removeIfStillMatching(file, predicate) {
185
+ const claimed = path.join(directory, `.del-${randomUUID()}`)
186
+ try {
187
+ await fs.rename(file, claimed)
188
+ } catch (error) {
189
+ if (isMissing(error)) return false
190
+ throw error
191
+ }
192
+ const record = await readRecord(claimed)
193
+ const matches = record.state !== 'ok' || predicate(record.entry)
194
+ if (!matches) {
195
+ try {
196
+ await fs.link(claimed, file)
197
+ } catch (error) {
198
+ if (!error || error.code !== 'EEXIST') {
199
+ await fs.unlink(claimed).catch(() => undefined)
200
+ throw error
201
+ }
202
+ }
203
+ }
204
+ await fs.unlink(claimed).catch(() => undefined)
205
+ return matches && record.state === 'ok'
206
+ }
207
+
208
+ async function removeMatching(predicate) {
209
+ let removed = 0
210
+ await scanEntries(async (file, entry) => {
211
+ if (entry && !predicate(entry)) return
212
+ if (await removeIfStillMatching(file, predicate)) removed += 1
213
+ })
214
+ return removed
215
+ }
216
+
217
+ return {
218
+ async get(key, options) {
219
+ const result = await readValue(key, options?.returnExpired === true)
220
+ return result.found ? result.value : null
221
+ },
222
+ async set(key, value, options) {
223
+ const ttl = options?.ttl ?? context.defaultTtl
224
+ const json = JSON.stringify(value === undefined ? null : value)
225
+ const encoded = helpers.encode(json)
226
+ const now = Date.now()
227
+ const entry = {
228
+ v: ENTRY_FORMAT_VERSION,
229
+ key,
230
+ tags: Array.from(new Set(Array.isArray(options?.tags) ? options.tags : [])),
231
+ expiresAt: typeof ttl === 'number' && ttl > 0 ? now + ttl : null,
232
+ createdAt: now,
233
+ encoding: typeof encoded === 'string' ? 'text' : 'base64',
234
+ payload: typeof encoded === 'string' ? encoded : Buffer.from(encoded).toString('base64'),
235
+ }
236
+ await writeAtomically(filePath(key), JSON.stringify(entry))
237
+ },
238
+ async has(key) {
239
+ return (await readValue(key, false)).found
240
+ },
241
+ async delete(key) {
242
+ try {
243
+ await fs.unlink(filePath(key))
244
+ return true
245
+ } catch (error) {
246
+ if (isMissing(error)) return false
247
+ throw error
248
+ }
249
+ },
250
+ async deleteByTags(tags) {
251
+ const wanted = new Set(Array.isArray(tags) ? tags : [])
252
+ if (wanted.size === 0) return 0
253
+ return removeMatching((entry) => entry.tags.some((tag) => wanted.has(tag)))
254
+ },
255
+ async clear() {
256
+ return removeMatching(() => true)
257
+ },
258
+ async keys(pattern) {
259
+ const found = []
260
+ await scanEntries(async (_file, entry) => {
261
+ if (!entry) return
262
+ if (pattern && !helpers.matchPattern(entry.key, pattern)) return
263
+ found.push(entry.key)
264
+ })
265
+ return found
266
+ },
267
+ async stats() {
268
+ let size = 0
269
+ let expired = 0
270
+ const now = Date.now()
271
+ await scanEntries(async (_file, entry) => {
272
+ if (!entry) return
273
+ size += 1
274
+ if (isExpired(entry, now)) expired += 1
275
+ })
276
+ return { size, expired }
277
+ },
278
+ async cleanup() {
279
+ const now = Date.now()
280
+ return removeMatching((entry) => isExpired(entry, now))
281
+ },
282
+ async healthcheck() {
283
+ await ensureDirectory()
284
+ await fs.access(directory, fsConstants.R_OK | fsConstants.W_OK)
285
+ },
286
+ async close() {},
287
+ }
288
+ }
289
+
290
+ export const provider = {
291
+ apiVersion: 1,
292
+ id: PROVIDER_ID,
293
+ settings,
294
+ capability() {
295
+ return { placement: 'shared' }
296
+ },
297
+ async create(config, context) {
298
+ const strategy = createFixtureStrategy(config, context)
299
+ await fs.mkdir(path.join(config.directory, namespaceDirectoryName(context.namespace)), { recursive: true })
300
+ return strategy
301
+ },
302
+ redact(config) {
303
+ return { directory: config.directory, maxBatch: config.maxBatch }
304
+ },
305
+ }
306
+
307
+ export default provider
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@acme/cache-provider-fixture",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "Test fixture: a directory-backed Open Mercato cache provider packaged independently of the platform",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./index.js",
9
+ "types": "./index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./index.d.ts",
13
+ "default": "./index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "index.js",
19
+ "index.d.ts"
20
+ ],
21
+ "sideEffects": false,
22
+ "peerDependencies": {
23
+ "@open-mercato/cache": ">=0.11.0"
24
+ }
25
+ }
@@ -0,0 +1,41 @@
1
+ // Independent-process runner for the cache provider conformance kit.
2
+ // CACHE_CONFORMANCE_HOST: ESM module exporting createCacheService,
3
+ // defineCacheProviderRegistration, resolveCacheProvider and
4
+ // serveConformanceRemoteOps (see build-conformance-host.mjs).
5
+ // CACHE_CONFORMANCE_PROVIDER_ENTRY: installed entry of the packed fixture provider.
6
+ // CACHE_CONFORMANCE_DIRECTORY: backing directory shared with the parent process.
7
+ // CACHE_PROVIDER / CACHE_PROVIDER_NAMESPACE: normal provider selection.
8
+ // Serves newline-delimited conformance operations on stdin/stdout.
9
+ import { pathToFileURL } from 'node:url'
10
+
11
+ const hostModule = process.env.CACHE_CONFORMANCE_HOST
12
+ const providerEntry = process.env.CACHE_CONFORMANCE_PROVIDER_ENTRY
13
+ const directory = process.env.CACHE_CONFORMANCE_DIRECTORY
14
+ if (!hostModule || !providerEntry || !directory) {
15
+ process.stderr.write('[internal] missing CACHE_CONFORMANCE_HOST, CACHE_CONFORMANCE_PROVIDER_ENTRY or CACHE_CONFORMANCE_DIRECTORY\n')
16
+ process.exit(2)
17
+ }
18
+
19
+ const {
20
+ createCacheService,
21
+ defineCacheProviderRegistration,
22
+ resolveCacheProvider,
23
+ serveConformanceRemoteOps,
24
+ } = await import(pathToFileURL(hostModule).href)
25
+
26
+ const registration = defineCacheProviderRegistration({
27
+ id: 'acme/fixture-fs',
28
+ load: () => import(pathToFileURL(providerEntry).href).then((module) => module.provider),
29
+ settings: () => ({ directory, maxBatch: 64 }),
30
+ })
31
+ const provider = await resolveCacheProvider([registration], { env: process.env })
32
+ if (!provider) {
33
+ process.stderr.write('[internal] CACHE_PROVIDER did not select the fixture provider\n')
34
+ process.exit(2)
35
+ }
36
+ const service = createCacheService({ provider })
37
+ await service.healthcheck()
38
+ process.stdout.write('ready\n')
39
+ process.stdin.setEncoding('utf8')
40
+ await serveConformanceRemoteOps(service, process.stdin, (line) => process.stdout.write(line))
41
+ await service.close()
package/jest.config.cjs CHANGED
@@ -8,6 +8,8 @@ module.exports = {
8
8
  rootDir: '.',
9
9
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
10
10
  moduleNameMapper: {
11
+ '^@open-mercato/(cache-provider-(memory|sqlite|redis-legacy|jsonfile|kit))$': '<rootDir>/../$1/src/index',
12
+ '^@open-mercato/cache-provider-kit/(.*)$': '<rootDir>/../cache-provider-kit/src/$1',
11
13
  '^@open-mercato/cache/(.*)$': '<rootDir>/src/$1',
12
14
  '^@open-mercato/shared/(.*)$': '<rootDir>/../shared/src/$1',
13
15
  },
@@ -24,7 +26,7 @@ module.exports = {
24
26
  ],
25
27
  },
26
28
  transformIgnorePatterns: [
27
- 'node_modules/(?!(sanitize-html|htmlparser2|domhandler|domutils|dom-serializer|domelementtype|entities|@mikro-orm|kysely|ai|@ai-sdk|ai-sdk-ollama|@workflow|@standard-schema|@tanstack/react-table|@tanstack/table-core|@tanstack/react-store|@tanstack/store)/)',
29
+ 'node_modules/(?!(sanitize-html|htmlparser2|domhandler|domutils|dom-serializer|domelementtype|entities|@mikro-orm|kysely|ai|@ai-sdk|ai-sdk-ollama|@workflow|@standard-schema|@tanstack/react-table|@tanstack/table-core|@tanstack/react-store|@tanstack/store|@acme/cache-provider-fixture)/)',
28
30
  ],
29
31
  testMatch: ['<rootDir>/src/**/__tests__/**/*.test.(ts|tsx)'],
30
32
  passWithNoTests: true,