@pharn-dev/pharn 0.14.1 → 0.16.0
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 +12 -5
- package/dist/index.js +43 -38
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ catalog.
|
|
|
134
134
|
| Step | What happens |
|
|
135
135
|
| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
136
136
|
| Detect | Reads `package.json` dependency names and performs a bounded, symlink-safe file-tree scan to classify the project as `ssr`, `backend`, `spa`, `lib`, or a combination. |
|
|
137
|
-
| Fetch | Resolves the
|
|
137
|
+
| Fetch | Resolves the newest **verified release** of `pharn-dev/pharn-oss` (a tag pharn-oss creates only after its post-merge CI passed) to its commit, downloads that commit's codeload tarball, extracts it into a temp directory, and checks its `SKILLS_VERSION` matches the tag. With no release resolvable it exits 1 and names `--ref main`, never falling back to the tip ([details](docs/troubleshooting.md#no-verified-release-could-be-resolved)). `--ref main` installs the tip of `main` instead, for contributors. |
|
|
138
138
|
| Resolve | Selects capabilities whose `applies` value is `universal` or intersects your detected archetypes. Skipped capabilities are named with the reason. |
|
|
139
139
|
| Install | Copies the selected capabilities plus fixed PHARN product surfaces into your repo, mirroring the upstream layout. |
|
|
140
140
|
| Record | Writes `pharn.config.json` and `pharn.records.json` so future updates can tell PHARN-owned files from local edits. |
|
|
@@ -168,10 +168,17 @@ As you run the workflow, PHARN writes one directory per increment —
|
|
|
168
168
|
`RUN-REPORT.md`, and the machine-readable records beside them
|
|
169
169
|
(`AC-TESTS.lock.json`, `cost.json`, the `*-report.json` files). Those are the
|
|
170
170
|
durable record; commit them. `pharn/.run/` (runtime scratch; `.pharn/` before
|
|
171
|
-
pharn-oss 7.0.0)
|
|
172
|
-
`pharn
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
pharn-oss 7.0.0) and `pharn/.backup/` (see [Safety model](#safety-model)) are not:
|
|
172
|
+
`pharn init` and `pharn update` append them to your `.gitignore` (creating it if
|
|
173
|
+
needed) unless it already covers them — in any common spelling, such as
|
|
174
|
+
`/pharn/.run`, `pharn/.run/**` or a negation `!pharn/.run/` you wrote on purpose.
|
|
175
|
+
They only ever append: your lines are never reordered or rewritten, CRLF stays
|
|
176
|
+
CRLF, and a second run changes nothing. A symlinked `.gitignore` is never written
|
|
177
|
+
through (you get a warning naming the lines). Lines added to `.gitignore` do not
|
|
178
|
+
untrack files you already committed (`git rm -r --cached pharn/.run` does).
|
|
179
|
+
`pharn/.lock*` is a transient file — add it yourself if you like. When your
|
|
180
|
+
`.gitignore` still names the old `.pharn/`, `.pharn-backup` or `.pharn.lock`,
|
|
181
|
+
`pharn update` prints the replacement lines; it never rewrites yours.
|
|
175
182
|
|
|
176
183
|
Everything PHARN keeps in your project lives under `.claude/` and `pharn/`, plus
|
|
177
184
|
the two JSON files at the root. An install made from a pharn-oss older than 7.0.0
|