@zykeco/sync-server 0.4.0 → 0.6.0

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 (69) hide show
  1. package/dist/app.d.ts +4 -0
  2. package/dist/app.js +56 -0
  3. package/dist/app.js.map +1 -0
  4. package/dist/db/schema.d.ts +1009 -0
  5. package/dist/db/schema.js +80 -1
  6. package/dist/db/schema.js.map +1 -1
  7. package/dist/env.d.ts +6 -0
  8. package/dist/env.js +9 -1
  9. package/dist/env.js.map +1 -1
  10. package/dist/index.js +2 -23
  11. package/dist/index.js.map +1 -1
  12. package/dist/mcp/metric-types.d.ts +2 -0
  13. package/dist/mcp/metric-types.js +42 -0
  14. package/dist/mcp/metric-types.js.map +1 -0
  15. package/dist/mcp/oauth.d.ts +41 -0
  16. package/dist/mcp/oauth.js +90 -0
  17. package/dist/mcp/oauth.js.map +1 -0
  18. package/dist/mcp/server.d.ts +35 -0
  19. package/dist/mcp/server.js +94 -0
  20. package/dist/mcp/server.js.map +1 -0
  21. package/dist/mcp/timezones.d.ts +17 -0
  22. package/dist/mcp/timezones.js +32 -0
  23. package/dist/mcp/timezones.js.map +1 -0
  24. package/dist/mcp/tools.d.ts +4 -0
  25. package/dist/mcp/tools.js +236 -0
  26. package/dist/mcp/tools.js.map +1 -0
  27. package/dist/mcp/transforms.d.ts +14 -0
  28. package/dist/mcp/transforms.js +45 -0
  29. package/dist/mcp/transforms.js.map +1 -0
  30. package/dist/routes/daily-stress-burden.d.ts +3 -0
  31. package/dist/routes/daily-stress-burden.js +24 -0
  32. package/dist/routes/daily-stress-burden.js.map +1 -0
  33. package/dist/routes/heart-rate-minute.d.ts +3 -0
  34. package/dist/routes/heart-rate-minute.js +24 -0
  35. package/dist/routes/heart-rate-minute.js.map +1 -0
  36. package/dist/routes/hr-zone-history.d.ts +3 -0
  37. package/dist/routes/hr-zone-history.js +24 -0
  38. package/dist/routes/hr-zone-history.js.map +1 -0
  39. package/dist/routes/mcp.d.ts +9 -0
  40. package/dist/routes/mcp.js +96 -0
  41. package/dist/routes/mcp.js.map +1 -0
  42. package/dist/routes/user-profile.d.ts +3 -0
  43. package/dist/routes/user-profile.js +24 -0
  44. package/dist/routes/user-profile.js.map +1 -0
  45. package/dist/routes/user-timezones.d.ts +3 -0
  46. package/dist/routes/user-timezones.js +24 -0
  47. package/dist/routes/user-timezones.js.map +1 -0
  48. package/dist/routes/wipe.d.ts +6 -1
  49. package/dist/routes/wipe.js +16 -2
  50. package/dist/routes/wipe.js.map +1 -1
  51. package/dist/stores/daily-stress-burden.d.ts +3 -0
  52. package/dist/stores/daily-stress-burden.js +58 -0
  53. package/dist/stores/daily-stress-burden.js.map +1 -0
  54. package/dist/stores/heart-rate-minute.d.ts +3 -0
  55. package/dist/stores/heart-rate-minute.js +48 -0
  56. package/dist/stores/heart-rate-minute.js.map +1 -0
  57. package/dist/stores/hr-zone-history.d.ts +3 -0
  58. package/dist/stores/hr-zone-history.js +49 -0
  59. package/dist/stores/hr-zone-history.js.map +1 -0
  60. package/dist/stores/user-profile.d.ts +3 -0
  61. package/dist/stores/user-profile.js +76 -0
  62. package/dist/stores/user-profile.js.map +1 -0
  63. package/dist/stores/user-timezones.d.ts +3 -0
  64. package/dist/stores/user-timezones.js +43 -0
  65. package/dist/stores/user-timezones.js.map +1 -0
  66. package/drizzle/0001_sweet_firebird.sql +78 -0
  67. package/drizzle/meta/0001_snapshot.json +733 -0
  68. package/drizzle/meta/_journal.json +7 -0
  69. package/package.json +4 -4
@@ -8,6 +8,13 @@
8
8
  "when": 1779181277132,
9
9
  "tag": "0000_parallel_juggernaut",
10
10
  "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1779290742275,
16
+ "tag": "0001_sweet_firebird",
17
+ "breakpoints": true
11
18
  }
12
19
  ]
13
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykeco/sync-server",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Self-hosted Zyke sync server (Hono + Drizzle + libsql). Imports to auto-start; ships a migrate CLI.",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "author": "P2LS9K GmbH <office@p2ls9k.com>",
@@ -43,7 +43,7 @@
43
43
  "scripts": {
44
44
  "build": "tsc -p tsconfig.json && chmod +x dist/migrate-cli.js dist/startup-cli.js dist/upgrade-cli.js",
45
45
  "typecheck": "tsc -p tsconfig.json --noEmit",
46
- "test": "node --test",
46
+ "test": "node --import tsx --test 'test/**/*.test.ts'",
47
47
  "dev": "tsx --watch src/index.ts",
48
48
  "start": "node dist/index.js",
49
49
  "clean": "rm -rf dist .tsbuildinfo",
@@ -54,8 +54,8 @@
54
54
  "dependencies": {
55
55
  "@hono/node-server": "^2.0.2",
56
56
  "@libsql/client": "^0.17.3",
57
- "@zykeco/server-core": "^0.4.0",
58
- "@zykeco/sync-protocol": "^0.4.0",
57
+ "@zykeco/server-core": "^0.5.0",
58
+ "@zykeco/sync-protocol": "^0.5.0",
59
59
  "dotenv": "^17.4.2",
60
60
  "drizzle-orm": "^0.45.2",
61
61
  "hono": "^4.6.0"