Repository navigation
feat(patchy): ship CLI and SDK as one release - #219
Conversation
Astra reviewReviewed StandardsNo separate merge-blocking method or YAGNI findings. Spec1. [P1 · intent/extra] Keep SDK routing from hiding an existing company's patches
#203 asks for “the server serves it at Using the actual 2. [P2 · intent] Preserve JSON nullability in insert/update types
#203 requires “defaulted is not nullable” and “update is partial with Keep JSON reads Verification: 98 tests passed across the seven focused CLI/config/client/transport/release/Postgres-generation suites. Additional isolated router and strict TypeScript probes reproduced the gaps above. No live instance or Clerk calls. Summary: Standards: 0 blockers. Spec: 2 blockers; worst is existing |
Code review (issue #203)Two-axis review of The package cut itself is the right ticket. Config builders, child-process execution, exact-current CLI check with recovery first, ADR-0011, and the immutable tarball path are the thing #203 was buying. The extra public surface is where it stops being beautiful. Intent vs #203#203 is the cut where Patchy becomes one installable unit: rename The PR delivered that unit. Where it drifts: public An agent that hits SpecChecked against #203’s “What to build” / “Done when”, plus §7 of #193 only where this ticket owns it. Init/refresh/catalog/dev runtime were not treated as missing. (a) Missing or partial
(b) Scope creep
(c) Implemented but wrong
Port tests do what the done-when asked: correlation, error decoding, MethodThe real constraint is: one pinned package, bytes the instance actually serves, config never executed on the server, latest-only tooling that does not eat a pending publish.
YAGNIDelete or hide:
Keep:
StandardsEffect services — no findings.
ui-consistency: N/A. Smells (judgement)
SurfacesWire, CLI contract, skill lock hash, vocabulary, ADR-0011, and the rename are hit. Partial:
Summary
The package-and-release story is real. Trim the public surface to Reviewed with |
|
Addressed both review comments in a4b5ad5. Fixed
Kept, with reasons
Verification and readiness
No unresolved blockers for #219. It remains stacked on #218; no merge performed. |
27de001 to
791da59
Compare
a4b5ad5 to
5f90993
Compare
Starting a patch repo still required manual setup, and refreshing its release could leave the installed CLI, generated clients and project skills out of sync. Add authenticated `init`, `refresh`, `catalog`, `add` and `remove` commands, backed by instance-served generation and five canonical project skills. Refresh installs and re-executes the pinned release, then activates the managed files together or rolls back. Declaration edits preserve user code and fixtures; initialization preserves the caller's working directory. Stacked on `sdk/203-patchy-package` (#219), which is this PR's base rather than `main`. Local `patchy dev` runtime execution remains in the next dev-runtime ticket. Closes #204. Validation: - `pnpm lint` and `pnpm typecheck` pass. - `pnpm test`: 70 files, 613 tests pass. - Real CLI smoke covers default init, generated-project typechecking, unusual connection handles, pin-only refresh and fixture preservation. Regression tests cover the caller directory and concurrent package edits. Implemented with GPT-6 Astra in the Oh My Pi harness.
Patch repos need matching tooling and browser types, but the CLI was a separate package and release discovery did not provide an installable artifact.
Ship the CLI, config builders and browser client together as the private
patchypackage. The instance serves its immutable tarball with verified SHA-512 integrity, and shared release checks reject outdated tooling without disrupting pending publish recovery. Rename mirrors, ADRs and the skill lock follow the package.Stacked on #218 (
sdk/202-postgres). This PR targets that branch and contains only the #203 implementation; merge after its dependency.Closes #203.
Verification
Implemented with OpenAI GPT-6 Astra (
openai-codex/gpt-6-astra) in the Oh My Pi harness.