@pharn-dev/pharn 0.7.0 → 0.7.1
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/README.md +28 -10
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -186,13 +186,27 @@ your project already had that file, PHARN preserved it and printed a warning
|
|
|
186
186
|
instead of overwriting it — so until you copy the hook wiring across, every
|
|
187
187
|
guarantee that depends on a `PreToolUse` hook is inactive.
|
|
188
188
|
|
|
189
|
-
**Once wired, the
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
`
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
**Once wired, the default depends on your tree (pharn-oss 6.24.0+).** With no
|
|
190
|
+
active scope, `enforce-writes-scope.cjs` applies that default.
|
|
191
|
+
|
|
192
|
+
In an **installed** project (`pharn.config.json` carries a non-empty
|
|
193
|
+
`skillsVersion`), you can edit ordinary application source **outside** an open
|
|
194
|
+
PHARN run. The narrow fail-closed posture — Claude Code's
|
|
195
|
+
Write/Edit/MultiEdit/NotebookEdit tools restricted to `pharn/features/**` and
|
|
196
|
+
`.pharn/**` — applies **only while** `/pharn-ship`, `/pharn-loop`, or
|
|
197
|
+
`/pharn-review` has an open marker (`.pharn/<command>/<name>/active.json`; ship
|
|
198
|
+
and review via `pharn/floor/run-marker.mjs`, loop via
|
|
199
|
+
`require-loop-record.cjs`). Outside those runs the guard **denies** PHARN's
|
|
200
|
+
installed surface (`pharn/**` except `pharn/features/**`, `.claude/**`,
|
|
201
|
+
`pharn.config.json`, and `.pharn/writes-scope.json`) and **allows** the rest of
|
|
202
|
+
your project, including app source. While a stage is running it still sets
|
|
203
|
+
explicit scope from the concrete paths your `PLAN.md` declared.
|
|
204
|
+
|
|
205
|
+
In PHARN's own dev repo or an unsignalled tree, the pre-6.24.0 posture
|
|
206
|
+
remains: fail-closed everywhere with no active scope. Clearing the scope
|
|
207
|
+
(`set-writes-scope.cjs --clear`, or deleting `.pharn/writes-scope.json`)
|
|
208
|
+
returns to whichever default your tree and open-run state compute; it does not
|
|
209
|
+
by itself re-open source in those postures, or during an open install run.
|
|
196
210
|
|
|
197
211
|
Writes issued through Bash bypass both write guards entirely.
|
|
198
212
|
|
|
@@ -312,9 +326,13 @@ PHARN is intentionally scoped:
|
|
|
312
326
|
|
|
313
327
|
- It targets **Claude Code today**. Codex and Cursor support are planned, not
|
|
314
328
|
shipped.
|
|
315
|
-
- It requires a git-initialized project
|
|
316
|
-
|
|
317
|
-
CLI on exactly
|
|
329
|
+
- It requires a git-initialized project. The **CLI** (`@pharn-dev/pharn`) needs
|
|
330
|
+
Node **>= 20.13.0** (`engines.node`; CI runs on Node 24, and a smoke job
|
|
331
|
+
starts the packed CLI on exactly 20.13.0). The **installed floor**
|
|
332
|
+
(`pharn/floor/*.mjs`) needs **Node 24.2+** for reliable checker runs
|
|
333
|
+
(`import.meta.main`; on older Node a guarded tool can exit 0 without running
|
|
334
|
+
its checks). Use 24.2+ locally for `/pharn-build`, `/pharn-verify`, and the
|
|
335
|
+
rest of the pipeline.
|
|
318
336
|
- **Archetype detection is JS/TS-shaped.** The signals are `package.json`
|
|
319
337
|
dependency names plus `next.config.*`, `app/` route handlers, `.tsx`/`.jsx`,
|
|
320
338
|
`migrations/` and `.sql`. A Python, Go or Rust repo produces no signal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pharn-dev/pharn",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Audit-grade AI development methodology for Claude Code — spec, plan, grill, build, regress, verify, ship.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"vitest": "^5.0.0"
|
|
71
71
|
},
|
|
72
72
|
"overrides": {
|
|
73
|
-
"smol-toml": "~1.
|
|
73
|
+
"smol-toml": "~1.9.0",
|
|
74
|
+
"katex": "~0.18.2"
|
|
74
75
|
}
|
|
75
76
|
}
|