@abloatai/ablo 0.9.2 → 0.9.3

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 (57) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +6 -0
  3. package/README.md +40 -22
  4. package/dist/BaseSyncedStore.d.ts +2 -36
  5. package/dist/BaseSyncedStore.js +5 -53
  6. package/dist/NetworkMonitor.js +4 -1
  7. package/dist/SyncClient.d.ts +10 -5
  8. package/dist/SyncClient.js +63 -1
  9. package/dist/SyncEngineContext.js +5 -1
  10. package/dist/auth/index.js +3 -1
  11. package/dist/cli.cjs +302645 -0
  12. package/dist/client/Ablo.d.ts +12 -3
  13. package/dist/client/Ablo.js +28 -2
  14. package/dist/client/ApiClient.js +39 -6
  15. package/dist/client/createInternalComponents.js +1 -1
  16. package/dist/client/createModelProxy.d.ts +9 -0
  17. package/dist/client/createModelProxy.js +34 -10
  18. package/dist/client/persistence.d.ts +6 -1
  19. package/dist/client/persistence.js +1 -1
  20. package/dist/client/registerDataSource.d.ts +4 -4
  21. package/dist/client/registerDataSource.js +39 -31
  22. package/dist/client/writeOptionsSchema.d.ts +50 -0
  23. package/dist/client/writeOptionsSchema.js +57 -0
  24. package/dist/core/index.d.ts +18 -26
  25. package/dist/core/index.js +22 -46
  26. package/dist/errorCodes.d.ts +13 -0
  27. package/dist/errorCodes.js +16 -1
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.js +7 -0
  30. package/dist/interfaces/index.d.ts +10 -0
  31. package/dist/mutators/UndoManager.d.ts +31 -5
  32. package/dist/mutators/UndoManager.js +113 -1
  33. package/dist/schema/ddl.js +2 -1
  34. package/dist/schema/field.js +2 -1
  35. package/dist/schema/serialize.js +2 -1
  36. package/dist/server/storage-mode.d.ts +7 -0
  37. package/dist/server/storage-mode.js +6 -0
  38. package/dist/source/adapters/drizzle.js +3 -2
  39. package/dist/source/adapters/kysely.d.ts +68 -0
  40. package/dist/source/adapters/kysely.js +210 -0
  41. package/dist/source/adapters/memory.js +2 -1
  42. package/dist/source/adapters/prisma.js +3 -2
  43. package/dist/source/index.js +2 -1
  44. package/dist/transactions/TransactionQueue.d.ts +6 -7
  45. package/dist/transactions/TransactionQueue.js +33 -9
  46. package/dist/utils/duration.js +3 -2
  47. package/docs/client-behavior.md +1 -1
  48. package/docs/data-sources.md +61 -42
  49. package/docs/guarantees.md +2 -2
  50. package/docs/index.md +2 -2
  51. package/docs/integration-guide.md +4 -7
  52. package/docs/mcp.md +1 -1
  53. package/docs/quickstart.md +84 -37
  54. package/docs/schema-contract.md +2 -4
  55. package/llms-full.txt +360 -0
  56. package/llms.txt +14 -9
  57. package/package.json +22 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abloatai/ablo",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "State control API for AI agents and collaborative apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -9,6 +9,9 @@
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts",
12
+ "bin": {
13
+ "ablo": "./dist/cli.cjs"
14
+ },
12
15
  "exports": {
13
16
  ".": {
14
17
  "types": "./dist/index.d.ts",
@@ -65,6 +68,11 @@
65
68
  "import": "./dist/source/adapters/drizzle.js",
66
69
  "default": "./dist/source/adapters/drizzle.js"
67
70
  },
71
+ "./source/kysely": {
72
+ "types": "./dist/source/adapters/kysely.d.ts",
73
+ "import": "./dist/source/adapters/kysely.js",
74
+ "default": "./dist/source/adapters/kysely.js"
75
+ },
68
76
  "./source/next": {
69
77
  "types": "./dist/source/next.d.ts",
70
78
  "import": "./dist/source/next.js",
@@ -106,6 +114,7 @@
106
114
  "examples",
107
115
  "AGENTS.md",
108
116
  "llms.txt",
117
+ "llms-full.txt",
109
118
  "LICENSE",
110
119
  "NOTICE",
111
120
  "README.md",
@@ -113,13 +122,17 @@
113
122
  ],
114
123
  "scripts": {
115
124
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
116
- "build": "npm run clean && tsc -p tsconfig.build.json",
125
+ "build": "npm run clean && tsc -p tsconfig.build.json && npm run build:cli",
126
+ "build:cli": "tsup --config tsup.cli.config.ts",
127
+ "typecheck:cli": "tsc -p tsconfig.cli.json",
117
128
  "pack:check": "npm_config_cache=${TMPDIR:-/tmp}/ablo-npm-cache npm pack --dry-run",
118
129
  "lint:imports": "node scripts/check-js-extensions.mjs",
119
130
  "generate:errors": "tsx scripts/generate-error-docs.mts",
120
131
  "lint:errors": "tsx scripts/check-error-docs.mts",
121
132
  "lint:pkg": "publint",
122
133
  "prepublishOnly": "npm run build && npm run lint:pkg",
134
+ "check:dist": "node scripts/check-dist-fresh.mjs",
135
+ "pretest": "node scripts/check-dist-fresh.mjs",
123
136
  "test": "jest",
124
137
  "test:unit": "jest --testPathPattern=__tests__/unit",
125
138
  "test:integration": "jest --testPathPattern=__tests__/integration",
@@ -177,6 +190,8 @@
177
190
  },
178
191
  "devDependencies": {
179
192
  "@ai-sdk/provider": "^3.0.0",
193
+ "@clack/prompts": "^0.11.0",
194
+ "@prisma/client": "^7.3.0",
180
195
  "@types/jest": "^29.5.0",
181
196
  "@types/node": "^22.0.0",
182
197
  "@types/react": "^19.0.0",
@@ -189,10 +204,15 @@
189
204
  "fast-check": "^3.0.0",
190
205
  "jest": "^29.7.0",
191
206
  "jest-environment-jsdom": "^29.7.0",
207
+ "jiti": "^2.7.0",
192
208
  "mobx": "^6.13.7",
209
+ "picocolors": "^1.1.0",
210
+ "postgres": "^3.4.0",
193
211
  "react": "^19.0.0",
194
212
  "react-dom": "^19.0.0",
195
213
  "ts-jest": "^29.4.0",
214
+ "ts-morph": "^26.0.0",
215
+ "tsup": "^8.0.0",
196
216
  "typescript": "^5.8.3",
197
217
  "publint": "^0.3.21"
198
218
  }