zinkee 0.1.12 → 0.1.17

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.
package/AGENTS.md CHANGED
@@ -50,3 +50,45 @@ Use this order when reasoning about behavior:
50
50
  ## Testing
51
51
 
52
52
  Prefer focused command tests and parser/client unit tests.
53
+
54
+ > **Unit tests use `fetchMock` and never hit the real API.** When changing the
55
+ > shape of a payload (enum values, property names, structure), unit tests will
56
+ > still pass even if the real API would reject the request with `400`. For
57
+ > shape-sensitive changes — especially edits to strings in `src/utils/examples.ts`
58
+ > — also run the resulting command against a real workspace and confirm the API
59
+ > accepts it.
60
+
61
+ ## Contributing
62
+
63
+ ### Branches
64
+
65
+ - `feature/eng-<ticket>-<slug>` for Linear-tracked work
66
+ - `fix/<slug>` / `chore/<slug>` / `docs/<slug>` for untracked work
67
+ - Never push to `main` directly; always open a PR
68
+
69
+ ### Commits
70
+
71
+ - Conventional Commits format: `<type>(<scope>): <subject>` (e.g.
72
+ `fix(displays): correct chart-type values in widget examples`)
73
+ - Subject in imperative mood, under ~72 chars, no trailing period
74
+ - Body explains the *why*, not the *what* — the diff already shows what changed
75
+ - Stage files explicitly (`git add <path>`); never `git add -A`
76
+ - Don't add `Co-Authored-By:` trailers; existing history doesn't use them
77
+
78
+ ### Before committing
79
+
80
+ 1. `npm run typecheck` — must pass
81
+ 2. `npm test` — must pass
82
+ 3. For changes that affect runtime behaviour or `--example` output, also
83
+ exercise the affected commands against a live workspace (see Testing note
84
+ above).
85
+
86
+ ### Versioning
87
+
88
+ - Versioning is patch-only today (`0.1.x`). Bump the patch number unless the
89
+ team decides to move to a different scheme.
90
+ - Every PR that ships user-visible changes (new commands, fixed examples,
91
+ behaviour changes) bumps `package.json` version in the same PR — not in a
92
+ separate "release" PR.
93
+ - Before bumping, fetch `origin/main` to make sure the version you pick isn't
94
+ already taken by another PR that merged ahead of yours.
package/README.md CHANGED
@@ -273,10 +273,17 @@ zinkee records update projects <record-uuid> --set status=2
273
273
 
274
274
  # Delete
275
275
  zinkee records delete projects <record-uuid>
276
+
277
+ # Clear all records from a schema (destructive — irreversible)
278
+ zinkee records clear projects
276
279
  ```
277
280
 
278
281
  Option values are written as numbers (`--set status=1`) but returned as strings (`"1"`). Number values are stored and returned as strings.
279
282
 
283
+ `records clear` removes every record from the schema's table. Heritage rules
284
+ (`CASCADE` / `SET NULL`) propagate to child schemas asynchronously through the
285
+ CDC pipeline, so related tables converge eventually. Blocked by `--read-only`.
286
+
280
287
  ---
281
288
 
282
289
  ## Files