@codemem/server 0.47.0-beta.2 → 0.47.0-beta.4

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 (35) hide show
  1. package/dist/account/context.d.ts +2 -0
  2. package/dist/account/context.d.ts.map +1 -1
  3. package/dist/account/link-registry.d.ts +5 -0
  4. package/dist/account/link-registry.d.ts.map +1 -1
  5. package/dist/account/owner-recovery-context.d.ts +20 -0
  6. package/dist/account/owner-recovery-context.d.ts.map +1 -0
  7. package/dist/account/owner-recovery-evidence.d.ts +24 -0
  8. package/dist/account/owner-recovery-evidence.d.ts.map +1 -0
  9. package/dist/account/owner-recovery-service.d.ts +38 -0
  10. package/dist/account/owner-recovery-service.d.ts.map +1 -0
  11. package/dist/account/owner-recovery-types.d.ts +65 -0
  12. package/dist/account/owner-recovery-types.d.ts.map +1 -0
  13. package/dist/account/owner-status.d.ts +8 -0
  14. package/dist/account/owner-status.d.ts.map +1 -0
  15. package/dist/account/status.d.ts +17 -2
  16. package/dist/account/status.d.ts.map +1 -1
  17. package/dist/index.d.ts +9 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +2890 -259
  20. package/dist/index.js.map +1 -1
  21. package/dist/routes/account-owner-recovery.d.ts +7 -0
  22. package/dist/routes/account-owner-recovery.d.ts.map +1 -0
  23. package/dist/routes/device-rename.d.ts +7 -7
  24. package/dist/routes/device-rename.d.ts.map +1 -1
  25. package/dist/routes/file-context.d.ts +4 -0
  26. package/dist/routes/file-context.d.ts.map +1 -0
  27. package/dist/routes/memory-tools.d.ts +1 -2
  28. package/dist/routes/memory-tools.d.ts.map +1 -1
  29. package/dist/routes/memory.d.ts.map +1 -1
  30. package/dist/routes/pack.d.ts.map +1 -1
  31. package/package.json +3 -3
  32. package/static/app.js +43 -43
  33. package/static/app.js.br +0 -0
  34. package/static/app.js.gz +0 -0
  35. package/static/index.html +24 -2
@@ -0,0 +1,7 @@
1
+ import { Hono } from "hono";
2
+ import type { createAccountOwnerRecoveryService } from "../account/owner-recovery-service.js";
3
+ type Service = ReturnType<typeof createAccountOwnerRecoveryService>;
4
+ /** Mount only after createAccountGuard: this router grants no independent authority. */
5
+ export declare function accountOwnerRecoveryRoutes(service: Service): Hono;
6
+ export {};
7
+ //# sourceMappingURL=account-owner-recovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-owner-recovery.d.ts","sourceRoot":"","sources":["../../src/routes/account-owner-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAQ1C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AAG9F,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAiJpE,wFAAwF;AACxF,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAWjE"}
@@ -6,7 +6,7 @@ export declare function deviceRenameRoutes(getStore: () => MemoryStore): import(
6
6
  error: string;
7
7
  };
8
8
  outputFormat: "json";
9
- status: 400;
9
+ status: 404;
10
10
  input: {
11
11
  param: {
12
12
  device_id: string;
@@ -17,7 +17,7 @@ export declare function deviceRenameRoutes(getStore: () => MemoryStore): import(
17
17
  error: string;
18
18
  };
19
19
  outputFormat: "json";
20
- status: 404;
20
+ status: 400;
21
21
  input: {
22
22
  param: {
23
23
  device_id: string;
@@ -36,10 +36,13 @@ export declare function deviceRenameRoutes(getStore: () => MemoryStore): import(
36
36
  };
37
37
  } | {
38
38
  output: {
39
+ ok: false;
39
40
  error: string;
41
+ status: 409 | 503;
42
+ renamedGroupCount?: number;
40
43
  };
41
44
  outputFormat: "json";
42
- status: 503;
45
+ status: 409 | 503;
43
46
  input: {
44
47
  param: {
45
48
  device_id: string;
@@ -59,13 +62,10 @@ export declare function deviceRenameRoutes(getStore: () => MemoryStore): import(
59
62
  };
60
63
  } | {
61
64
  output: {
62
- ok: false;
63
65
  error: string;
64
- status: 409 | 503;
65
- renamedGroupCount?: number;
66
66
  };
67
67
  outputFormat: "json";
68
- status: 409 | 503;
68
+ status: 503;
69
69
  input: {
70
70
  param: {
71
71
  device_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"device-rename.d.ts","sourceRoot":"","sources":["../../src/routes/device-rename.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,eAAe,CAAC;AA6GvB,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBArDrD,IAAI;8BAAgB,MAAM;;;;;;;;;;;oBAC1B,KAAK;uBAAS,MAAM;wBAAU,GAAG,GAAG,GAAG;oCAAsB,MAAM;;;;;;;;;;;mEAqF3E"}
1
+ {"version":3,"file":"device-rename.d.ts","sourceRoot":"","sources":["../../src/routes/device-rename.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,eAAe,CAAC;AA6GvB,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBApDrD,KAAK;uBAAS,MAAM;wBAAU,GAAG,GAAG,GAAG;oCAAsB,MAAM;;;;;;;;;;;oBADnE,IAAI;8BAAgB,MAAM;;;;;;;;;;;;;;;;;;;;;;mEAsFlC"}
@@ -0,0 +1,4 @@
1
+ import { type MemoryStore } from "@codemem/core";
2
+ import { Hono } from "hono";
3
+ export declare function fileContextRoutes(getStore: () => MemoryStore): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
4
+ //# sourceMappingURL=file-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-context.d.ts","sourceRoot":"","sources":["../../src/routes/file-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,WAAW,EAEhB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAI5B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,WAAW,8EAkC5D"}
@@ -8,8 +8,7 @@
8
8
  * same @codemem/core MemoryStore APIs. No dependency on @codemem/mcp.
9
9
  */
10
10
  import type { MemoryStore } from "@codemem/core";
11
- import { Hono } from "hono";
12
11
  type StoreFactory = () => MemoryStore;
13
- export declare function memoryToolRoutes(getStore: StoreFactory): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
12
+ export declare function memoryToolRoutes(getStore: StoreFactory): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema, "/">, "/", "/">;
14
13
  export {};
15
14
  //# sourceMappingURL=memory-tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory-tools.d.ts","sourceRoot":"","sources":["../../src/routes/memory-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAMX,WAAW,EACX,MAAM,eAAe,CAAC;AAiBvB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAwatC,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,8EA2QtD"}
1
+ {"version":3,"file":"memory-tools.d.ts","sourceRoot":"","sources":["../../src/routes/memory-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAMX,WAAW,EACX,MAAM,eAAe,CAAC;AAqBvB,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAictC,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,8LA2QtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/routes/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAahE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAsbtC,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,8EA2YlD"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/routes/memory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAchE,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1C,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAwdtC,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,8EAyXlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/routes/pack.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIX,WAAW,EAMX,MAAM,eAAe,CAAC;AAYvB,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAI1C,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAkgBtC,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,8EAkEzD"}
1
+ {"version":3,"file":"pack.d.ts","sourceRoot":"","sources":["../../src/routes/pack.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIX,WAAW,EAMX,MAAM,eAAe,CAAC;AAYvB,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAI1C,KAAK,YAAY,GAAG,MAAM,WAAW,CAAC;AAmgBtC,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,8EAkEzD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemem/server",
3
- "version": "0.47.0-beta.2",
3
+ "version": "0.47.0-beta.4",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -15,12 +15,12 @@
15
15
  "static/"
16
16
  ],
17
17
  "dependencies": {
18
- "@codemem/core": "^0.47.0-beta.2",
18
+ "@codemem/core": "^0.47.0-beta.4",
19
19
  "@hono/node-server": "^2.1.1",
20
20
  "drizzle-orm": "^0.45.2",
21
21
  "hono": "^4.13.5",
22
22
  "limiter": "^3.0.0",
23
- "zod": "4.5.4"
23
+ "zod": "4.6.6"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/better-sqlite3": "^9.6.0",