@spooky-sync/cli 1.0.0-beta.2 → 1.0.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 (2) hide show
  1. package/AGENTS.md +1 -0
  2. package/package.json +6 -6
package/AGENTS.md CHANGED
@@ -237,6 +237,7 @@ is always the committed file's.
237
237
  - **Migrations are checksum-tracked.** Editing a previously-applied migration file won't silently re-run; `spky migrate status` flags it. Use `--fix-checksums` only when you're sure the change is semantically a no-op.
238
238
  - **`sp00ky.yml` is the entry point.** The CLI never crawls for `.surql`; everything is wired explicitly through the config.
239
239
  - **Generation modes matter.** The `--mode` flag (`singlenode`, `cluster`, `surrealism`) changes what the generated client connects to. Default is `singlenode` (HTTP to a single SSP). `surrealism` embeds the WASM stream processor in-browser.
240
+ - **Ledger accesses in generated events are key accesses.** `_00_version` rows are keyed by their record (`type::record('_00_version', [$after.id])`, see `docs/version-ledger.md`). Never add a `WHERE record_id = $after.id` (or any `UPDATE`/`DELETE ... WHERE` on a parameter) to an event body: SurrealDB 4.0.1 scans the table for it inside an event. `cargo test -p sp00ky-cli version_ledger` (plus `-- --include-ignored --test-threads=1` for the Docker 3.3.5/4.0.1 runs) fails if a write's cost grows with the ledger.
240
241
  - **Don't commit the bin output.** The Rust binary is built per-platform and shipped via the npm tarball under `dist/`.
241
242
 
242
243
  ## Pointers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/cli",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "Generate TypeScript/Dart types from SurrealDB schema files",
5
5
  "type": "module",
6
6
  "main": "./dist/syncgen.cjs",
@@ -62,10 +62,10 @@
62
62
  "vitest": "^1.0.0"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@spooky-sync/cli-darwin-arm64": "1.0.0-beta.2",
66
- "@spooky-sync/cli-darwin-x64": "1.0.0-beta.2",
67
- "@spooky-sync/cli-linux-arm64": "1.0.0-beta.2",
68
- "@spooky-sync/cli-linux-x64": "1.0.0-beta.2",
69
- "@spooky-sync/cli-win32-x64": "1.0.0-beta.2"
65
+ "@spooky-sync/cli-darwin-arm64": "1.0.0-beta.4",
66
+ "@spooky-sync/cli-darwin-x64": "1.0.0-beta.4",
67
+ "@spooky-sync/cli-linux-arm64": "1.0.0-beta.4",
68
+ "@spooky-sync/cli-linux-x64": "1.0.0-beta.4",
69
+ "@spooky-sync/cli-win32-x64": "1.0.0-beta.4"
70
70
  }
71
71
  }