@spooky-sync/cli 0.0.1-canary.351 → 0.0.1-canary.352

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 +7 -0
  2. package/package.json +6 -6
package/AGENTS.md CHANGED
@@ -174,6 +174,13 @@ paths in `expose` are public, on `https://<slug>.<domain>`. Keys: `entry` (requi
174
174
  strings), `cpuMs` (1..300000), `ai` (env binding for Workers AI), `workflows: [{binding, class}]`
175
175
  (Cloudflare Workflows; the class is exported from the entry), `expose` (trailing `*` = prefix).
176
176
 
177
+ A backend's own `workflows: [{binding, class}]` (not under `worker`) declares durable workflows on
178
+ sp00ky's engine (`@spooky-sync/backend`, every host). `AppConfig::validate_durable_workflows`
179
+ requires an outbox `method` with a `table` and identifier-shaped, unique bindings (also against
180
+ `worker.ai` / `worker.workflows`); it runs for `devOnly` backends too. `AppConfig::spky_app_vars`
181
+ injects `SPKY_OUTBOX_TABLE` into the backend's env in `spky dev`, VM deploys and Worker backends.
182
+ The `_00_wf_instance` / `_00_wf_step` / `_00_wf_event` tables ship in `src/schedule_tables.surql`.
183
+
177
184
  - Validation (`WorkerDeployConfig::validate`, `AppConfig::validate_worker` in `src/backend.rs`):
178
185
  `hosting: external` and `runOn` are refused; bindings must not repeat. `spky lint`
179
186
  (`Sp00kyConfig::worker_lint`) errors on a missing `entry` and warns on `baseUrl` (unused on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/cli",
3
- "version": "0.0.1-canary.351",
3
+ "version": "0.0.1-canary.352",
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": "0.0.1-canary.351",
66
- "@spooky-sync/cli-darwin-x64": "0.0.1-canary.351",
67
- "@spooky-sync/cli-linux-arm64": "0.0.1-canary.351",
68
- "@spooky-sync/cli-linux-x64": "0.0.1-canary.351",
69
- "@spooky-sync/cli-win32-x64": "0.0.1-canary.351"
65
+ "@spooky-sync/cli-darwin-arm64": "0.0.1-canary.352",
66
+ "@spooky-sync/cli-darwin-x64": "0.0.1-canary.352",
67
+ "@spooky-sync/cli-linux-arm64": "0.0.1-canary.352",
68
+ "@spooky-sync/cli-linux-x64": "0.0.1-canary.352",
69
+ "@spooky-sync/cli-win32-x64": "0.0.1-canary.352"
70
70
  }
71
71
  }