@harnesspm/cli 0.0.0-stage → 0.17.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +269 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -2
  4. package/dist/added.d.ts +51 -0
  5. package/dist/added.js +192 -0
  6. package/dist/check.d.ts +14 -0
  7. package/dist/check.js +263 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.js +218 -0
  10. package/dist/commands.d.ts +58 -0
  11. package/dist/commands.js +1299 -0
  12. package/dist/config.d.ts +15 -0
  13. package/dist/config.js +45 -0
  14. package/dist/deliver.d.ts +1 -0
  15. package/dist/deliver.js +31 -0
  16. package/dist/doctor.d.ts +18 -0
  17. package/dist/doctor.js +99 -0
  18. package/dist/exec-outputs.d.ts +75 -0
  19. package/dist/exec-outputs.js +425 -0
  20. package/dist/exec-units.d.ts +68 -0
  21. package/dist/exec-units.js +151 -0
  22. package/dist/fetch.d.ts +16 -0
  23. package/dist/fetch.js +145 -0
  24. package/dist/frontmatter.d.ts +16 -0
  25. package/dist/frontmatter.js +49 -0
  26. package/dist/homes.d.ts +7 -0
  27. package/dist/homes.js +21 -0
  28. package/dist/lock.d.ts +47 -0
  29. package/dist/lock.js +245 -0
  30. package/dist/manifest.d.ts +78 -0
  31. package/dist/manifest.js +169 -0
  32. package/dist/new.d.ts +33 -0
  33. package/dist/new.js +228 -0
  34. package/dist/outputs.d.ts +124 -0
  35. package/dist/outputs.js +875 -0
  36. package/dist/parent.d.ts +41 -0
  37. package/dist/parent.js +182 -0
  38. package/dist/render.d.ts +91 -0
  39. package/dist/render.js +221 -0
  40. package/dist/resolve.d.ts +132 -0
  41. package/dist/resolve.js +522 -0
  42. package/dist/reviewed.d.ts +15 -0
  43. package/dist/reviewed.js +41 -0
  44. package/dist/run.d.ts +18 -0
  45. package/dist/run.js +133 -0
  46. package/dist/sections.d.ts +32 -0
  47. package/dist/sections.js +121 -0
  48. package/dist/telemetry-api.d.ts +26 -0
  49. package/dist/telemetry-api.js +60 -0
  50. package/dist/telemetry.d.ts +119 -0
  51. package/dist/telemetry.js +401 -0
  52. package/dist/user-outputs.d.ts +30 -0
  53. package/dist/user-outputs.js +239 -0
  54. package/dist/util.d.ts +137 -0
  55. package/dist/util.js +370 -0
  56. package/dist/workspaces.d.ts +2 -0
  57. package/dist/workspaces.js +62 -0
  58. package/docs/spec/01-overview.md +149 -0
  59. package/docs/spec/02-package-format.md +252 -0
  60. package/docs/spec/03-resolution.md +108 -0
  61. package/docs/spec/04-outputs.md +194 -0
  62. package/docs/spec/05-executables.md +170 -0
  63. package/docs/spec/06-trust.md +88 -0
  64. package/docs/spec/07-added.md +109 -0
  65. package/docs/spec/08-improving.md +79 -0
  66. package/docs/spec/09-cloud.md +68 -0
  67. package/docs/spec/10-cli.md +187 -0
  68. package/docs/spec/11-standards.md +52 -0
  69. package/docs/spec/12-dogfooding.md +51 -0
  70. package/docs/spec/13-open-questions.md +97 -0
  71. package/docs/spec/14-telemetry.md +199 -0
  72. package/docs/spec/README.md +33 -0
  73. package/harness/dev.harnesspm/rules/generated-files.md +9 -0
  74. package/harness/dev.harnesspm/rules/harnesspm-config.md +12 -0
  75. package/harness/plugin.json +13 -0
  76. package/harness/skills/harnesspm-export/SKILL.md +43 -0
  77. package/harness/skills/harnesspm-import/SKILL.md +40 -0
  78. package/harness/skills/harnesspm-improve/SKILL.md +38 -0
  79. package/package.json +71 -4
  80. package/schema/harnesspm.schema.json +58 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,269 @@
1
+ # Changelog
2
+
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#90](https://github.com/tenphi/harnesspm/pull/90) [`581562b`](https://github.com/tenphi/harnesspm/commit/581562b204c2d843fdf7f68ff581f1f739138995) Thanks [@tenphi](https://github.com/tenphi)! - harnesspm moved to the npm package `@harnesspm/cli`. The command is still `harnesspm`. To move a project, run `npm i -D @harnesspm/cli && npm rm @tenphi/harnesspm`, then `npx -y @harnesspm/cli init`; `doctor` reminds you. On each machine with an added harness, run `npx -y @harnesspm/cli update` once: the user-level `SessionStart` hook still runs `@tenphi/harnesspm`, which cannot rewrite itself. Every text, message, managed block and hook now uses one form, `npx -y @harnesspm/cli`, never the bare `npx harnesspm`, also as the fallback of hooks and MCP servers. The block's first line changes, so `sync --check` fails once in CI: run `sync` and commit `AGENTS.md`. Until harnesspm 1.0, the earlier name and the bare form keep working: the installed `@tenphi/harnesspm`, its hooks and allow rules, and the install script carry over at the next sync, and nothing needs approving again.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#92](https://github.com/tenphi/harnesspm/pull/92) [`bc9525d`](https://github.com/tenphi/harnesspm/commit/bc9525de219341080e5d9a4f8532fa6feec54d12) Thanks [@tenphi](https://github.com/tenphi)! - The docs site has one guide for people and their agents, in place of a part for each. Get started, Share a harness from your library and Add your own harness each open with the prompt for your agent and then have every step. The README links to them, and the old `/getting-started`, `/share` and `/bring-your-own` pages redirect there.
12
+
13
+ ## 0.16.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#88](https://github.com/tenphi/harnesspm/pull/88) [`9d9cfea`](https://github.com/tenphi/harnesspm/commit/9d9cfeac534f5106abcbf05639e420dba8fa79b9) Thanks [@tenphi](https://github.com/tenphi)! - `why <ID>` finds a unit of a project entry from any folder, such as another repository or a folder above the clones, where an agent may meet the IDs that a repository's `CLAUDE.local.md` lists. It searches the entries of the harnesses you added with user scope, and its owner line names the remotes the entry is for.
18
+
19
+ `check` validates a harness's project entries too: the rules and skills in each entry folder, and the `name` in the entry's `plugin.json`, which `sync` refuses when it differs from the harness's. It checks each folder once, also when several remotes map to it, and prints each entry's always-on size next to the harness's.
20
+
21
+ When `run` refuses a script because the installed version differs from the lock, the message now names both remedies: reinstall the project's dependencies when the install is out of date, as in a cached cloud environment, or run `npx -y @tenphi/harnesspm sync` when the lock is. It named only `sync` before, which on an old install writes the old versions into the lock.
22
+
23
+ harnesspm is no longer labeled experimental: the README, the docs site and the spec drop the "experimental" note.
24
+
25
+ ## 0.15.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#84](https://github.com/tenphi/harnesspm/pull/84) [`609f227`](https://github.com/tenphi/harnesspm/commit/609f227f1271bbde1eff40c22d903b78e233ffe4) Thanks [@tenphi](https://github.com/tenphi)! - A sync in a folder above git repositories, such as `/home/user` in a Claude Code cloud session with several repositories, now applies your added harnesses in each repository right below it, so their project entries work there too. The `SessionStart` hook runs it at the start of such a session. Each repository gets only the per-machine outputs of your added harnesses; its own files, committed or per machine, stay as its install wrote them. A session that starts above the repositories reads the entries' rules and skills; their hooks and permissions still need a session that starts in the repository. Without added harnesses, and with `CI=true`, nothing changes.
30
+
31
+ - [#84](https://github.com/tenphi/harnesspm/pull/84) [`631a06e`](https://github.com/tenphi/harnesspm/commit/631a06e291fe60ccd241b033c3ab282e0f428e3b) Thanks [@tenphi](https://github.com/tenphi)! - The `SessionStart` hook that `add` installs now runs `update`, so each session starts with the newest commits of your added harnesses, also in a cloud session that starts from a days-old snapshot. In the hook, git never prompts, a fetch stops after 30 seconds, and a fetch that fails only warns: the session starts with what is on the machine. Working copies with uncommitted or unpushed work are left as they are. Your next `sync` turns the old hook, which ran `sync`, into the new one. `update` now prints what changed, such as `updated a1b2c3d → e4f5a6b`, instead of "up to date". New commits apply their hooks and permissions too: for a harness whose pushes you do not control, use an npm source with a fixed version, or `--no-hook`.
32
+
33
+ ### Patch Changes
34
+
35
+ - [#84](https://github.com/tenphi/harnesspm/pull/84) [`121baa4`](https://github.com/tenphi/harnesspm/commit/121baa4745e57730535e648a953fa272f16a34d5) Thanks [@tenphi](https://github.com/tenphi)! - The user-level blocks in `~/.claude/CLAUDE.md` and `~/.codex/AGENTS.md` show absolute paths for the on-demand rules, file-scoped rules and docs of added harnesses from git and npm sources, as the spec says. They showed paths such as `harnesses/<name>/harness/…`, relative to `~/.harnesspm`, which an agent could not open from a repository. Run `npx -y @tenphi/harnesspm sync` once to rewrite them.
36
+
37
+ ## 0.14.0
38
+
39
+ ### Minor Changes
40
+
41
+ - [#82](https://github.com/tenphi/harnesspm/pull/82) [`d18418b`](https://github.com/tenphi/harnesspm/commit/d18418b3c88aeee62608dedc217c90e55818edcc) Thanks [@tenphi](https://github.com/tenphi)! - The copies of dependencies' docs move out of `node_modules`, to `.harnesspm/docs/` at the project root. After upgrading, run `sync` and commit `AGENTS.md`, whose `Docs:` lines change, and add `/.harnesspm/` to `.gitignore` so formatters such as Prettier skip the copies: `sync` warns until it is there. A `.rgignore` of your own needs the lines `!/.harnesspm/`, `/.harnesspm/*` and `!/.harnesspm/docs/` instead of the `node_modules` ones. `sync` removes the old copies, and both `sync` and `fetch` write the copies only where git ignores them.
42
+
43
+ ## 0.13.2
44
+
45
+ ### Patch Changes
46
+
47
+ - [#80](https://github.com/tenphi/harnesspm/pull/80) [`4e76974`](https://github.com/tenphi/harnesspm/commit/4e76974bf1e5fc02d889db73299f66c8e8442af6) Thanks [@tenphi](https://github.com/tenphi)! - The docs copy points a link that leaves the docs folder, such as `../README.md`, at that file in the installed package, so it leads somewhere. `check` no longer warns on such links: a docs page keeps the links its own website needs.
48
+
49
+ ## 0.13.1
50
+
51
+ ### Patch Changes
52
+
53
+ - [#78](https://github.com/tenphi/harnesspm/pull/78) [`f4a64da`](https://github.com/tenphi/harnesspm/commit/f4a64da614caa6b8ea5aa7955235c61e595e27d8) Thanks [@tenphi](https://github.com/tenphi)! - `check` warns when a docs page links to a file outside the docs folder, such as `../README.md`, because that link leads nowhere in the docs copy that projects search. It does not fail the check.
54
+
55
+ ## 0.13.0
56
+
57
+ ### Minor Changes
58
+
59
+ - [#76](https://github.com/tenphi/harnesspm/pull/76) [`f05605c`](https://github.com/tenphi/harnesspm/commit/f05605c59ad7b7e02838a0d096a6dd28ff7de5fd) Thanks [@tenphi](https://github.com/tenphi)! - `sync` and `fetch` copy every dependency's docs into `node_modules/.harnesspm/docs/`, and write a `.rgignore` that lets agents' search tools, such as Claude Code's Grep and `rg`, into that one folder. Search skipped a dependency's docs before, because they sit in `node_modules`. Git ignores the copies and the `.rgignore`, and formatters skip `node_modules`. The `Docs:` lines in the managed block now point at the copies: run `npx harnesspm sync` after upgrading and commit `AGENTS.md`.
60
+
61
+ ## 0.12.1
62
+
63
+ ### Patch Changes
64
+
65
+ - [#74](https://github.com/tenphi/harnesspm/pull/74) [`3d44214`](https://github.com/tenphi/harnesspm/commit/3d442145867bf59ee65cb2de32fcfd849383f2b3) Thanks [@tenphi](https://github.com/tenphi)! - A `sync` event names what differs from the reviewed state `reason`, not `why`, which is already an event type, and its `held` entries leave out the `-C <path>` of a hook above the project, so events carry no local paths.
66
+
67
+ ## 0.12.0
68
+
69
+ ### Minor Changes
70
+
71
+ - [#72](https://github.com/tenphi/harnesspm/pull/72) [`c14bc7d`](https://github.com/tenphi/harnesspm/commit/c14bc7d07e1ff39b841795a544bd61f7518a9816) Thanks [@tenphi](https://github.com/tenphi)! - Telemetry events from a git worktree carry `worktree: true`, such as those of a Claude Code desktop app session that runs in one, and a `sync` event lists the entries an agent's sync held back, with `held` and `why`.
72
+
73
+ ## 0.11.0
74
+
75
+ ### Minor Changes
76
+
77
+ - [#70](https://github.com/tenphi/harnesspm/pull/70) [`9ffd4cb`](https://github.com/tenphi/harnesspm/commit/9ffd4cb016ba7121d26a72f9f9360e642f675f84) Thanks [@tenphi](https://github.com/tenphi)! - Sessions that start in a folder above your repositories, such as a Claude Code cloud session with several repositories or your folder of clones, now get each repository's hooks: run `npx -y @tenphi/harnesspm sync` in that folder once, after the installs. It writes the hooks with `-C <repository>` into that folder's agent settings, and a block in its `AGENTS.md` that names each repository, its rules and its `help` command; each repository's own sync keeps its entries there current, and a sync there removes the entries of repositories that are gone. Such a hook runs in its repository and skips edits in the others. An agent's own sync never adds hooks there. Telemetry hook events now use the session ID that Claude Code's commands see, so a session's hook and command events no longer split into two sessions, and events from such a folder carry `outside: true`.
78
+
79
+ ## 0.10.1
80
+
81
+ ### Patch Changes
82
+
83
+ - [#66](https://github.com/tenphi/harnesspm/pull/66) [`690bd5e`](https://github.com/tenphi/harnesspm/commit/690bd5ed1a0d6207ba767d20c45026e305f528f8) Thanks [@tenphi](https://github.com/tenphi)! - Keep monorepo rule patches and replacements scoped to the workspaces that use them, and keep the original skill when consumers disagree.
84
+
85
+ ## 0.10.0
86
+
87
+ ### Minor Changes
88
+
89
+ - [#63](https://github.com/tenphi/harnesspm/pull/63) [`38b7d55`](https://github.com/tenphi/harnesspm/commit/38b7d55bc8eb663ae91ef597f828e8c76cb91690) Thanks [@tenphi](https://github.com/tenphi)! - `replace` now works on skills: map a skill ID to a folder with its own `SKILL.md`, which keeps the skill's name, ID and place. A package that passes on another package's harness can adapt an upstream skill for its users, and the folder is not a skill of its own, so nothing warns about two skills with one name. A replaced skill gets the trust of the package that replaced it. For other units, such as tools and hooks, `replace` warns and points to `exclude`, and `check` fails on it; the spec now says so.
90
+
91
+ ### Patch Changes
92
+
93
+ - [#63](https://github.com/tenphi/harnesspm/pull/63) [`38b7d55`](https://github.com/tenphi/harnesspm/commit/38b7d55bc8eb663ae91ef597f828e8c76cb91690) Thanks [@tenphi](https://github.com/tenphi)! - A docs folder of your own harness that your build writes and git ignores no longer makes the lock and the `AGENTS.md` blocks depend on whether a build ran: `sync` leaves it out, built or not, and `check` still reads the built pages. An `exclude` of that docs unit no longer warns that it does not exist.
94
+
95
+ - [#63](https://github.com/tenphi/harnesspm/pull/63) [`38b7d55`](https://github.com/tenphi/harnesspm/commit/38b7d55bc8eb663ae91ef597f828e8c76cb91690) Thanks [@tenphi](https://github.com/tenphi)! - A project in a subfolder of a git repository, such as `docs-site/`, now keeps its per-machine files out of git: `sync` writes its entries in `.git/info/exclude` from the git root (`/docs-site/.claude/skills/…`), in a section named after its folder, and keeps its own state file, so two projects in one repository never touch each other's entries. The next sync moves the entries an older version wrote into the root's section. A hook already in a settings file is not added a second time. `doctor` names the `!` pattern and file that bring a file back, and asks for a sync when no pattern matches.
96
+
97
+ ## 0.9.2
98
+
99
+ ### Patch Changes
100
+
101
+ - [#60](https://github.com/tenphi/harnesspm/pull/60) [`9d6b32f`](https://github.com/tenphi/harnesspm/commit/9d6b32fb711fa79bcc280b83a938c62dbf7253d1) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm check` no longer checks links in code samples (fenced code blocks and code spans), so a sample link no longer fails the check. A link in an indented code block still counts: put a sample link in a fence.
102
+
103
+ ## 0.9.1
104
+
105
+ ### Patch Changes
106
+
107
+ - [#58](https://github.com/tenphi/harnesspm/pull/58) [`3fa6145`](https://github.com/tenphi/harnesspm/commit/3fa61450bfe449e4e7d53a7b4dbda5624db650d1) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm check` judges a package by what its tarball would hold, read from `files` in `package.json`. It now checks docs pages built at `prepack`, which git ignores but npm packs, and reports a link to a file the package does not ship. Links in `.mdx` pages are checked too. The private-key warning now needs a key body, so a `-----BEGIN PRIVATE KEY-----` placeholder in docs no longer triggers it. The spec's links to `docs/research/`, which doesn't ship, now lead to GitHub.
108
+
109
+ ## 0.9.0
110
+
111
+ ### Minor Changes
112
+
113
+ - [#50](https://github.com/tenphi/harnesspm/pull/50) [`5c97e3a`](https://github.com/tenphi/harnesspm/commit/5c97e3acfa89a50db4ef8a6d7e34b619279e3679) Thanks [@tenphi](https://github.com/tenphi)! - Scripts can list their `answers` exit codes (such as `[1]` for a lint that found problems): `run` events get an `outcome` of `ok`, `answer` or `failed`, `reportRun` takes `answers` too, and `help <tool>` prints them. `run`, `help` and `why` events from a folder outside the project, such as with `-C`, carry `outside: true`.
114
+
115
+ ## 0.8.0
116
+
117
+ ### Minor Changes
118
+
119
+ - [#44](https://github.com/tenphi/harnesspm/pull/44) [`d9b558f`](https://github.com/tenphi/harnesspm/commit/d9b558fb73a8d914437d8f0a34a66e189ed24701) Thanks [@tenphi](https://github.com/tenphi)! - Use a cloned repository's harness from another folder: `harnesspm -C <dir> <command>` acts on the project in `<dir>`, `help` lists the project's scripts, MCP servers, rules, docs and skills (fetching its harness packages first when it has no install), `run` and `mcp` use fetched packages and say what is missing instead of `No script`, and the managed block starts with a line for agents outside the folder and gives tools as `npx -y @tenphi/harnesspm run <unit>`.
120
+
121
+ - [#47](https://github.com/tenphi/harnesspm/pull/47) [`c300231`](https://github.com/tenphi/harnesspm/commit/c30023153ced717ec184ed2b94358a9bcdf1ff47) Thanks [@tenphi](https://github.com/tenphi)! - Rules are no longer inlined in AGENTS.md; agents get them with `help <package>`. The managed block now starts with the commands that reach the harness, then names each always-on rule in one line (its title and section headings), and lists tools by name without repeating the run command. `harnesspm help <package>` prints a package's rules in full with your patches, its docs, tools, MCP servers, skills and hooks; `help <rule ID>` prints one rule; `help <tool>` prints a tool's usage and run command without running it, from a new optional `usage` field in the script's manifest entry. All work with `-C` and without an install, and `help` with a target is a new telemetry event.
122
+
123
+ ## 0.7.0
124
+
125
+ ### Minor Changes
126
+
127
+ - [#39](https://github.com/tenphi/harnesspm/pull/39) [`9968789`](https://github.com/tenphi/harnesspm/commit/996878997b6fbb1f2467c9353d3772c78473583d) Thanks [@tenphi](https://github.com/tenphi)! - Until a package is trusted, its sub-agents are written without Claude Code's `hooks` and `mcpServers`, as `permissionMode` already was, and a skill of its that sets `allowed-tools` or `hooks` is linked as a copy without them. Claude Code ignores the same sub-agent keys in plugins for security. `sync` names each key it leaves out.
128
+
129
+ - [#39](https://github.com/tenphi/harnesspm/pull/39) [`9968789`](https://github.com/tenphi/harnesspm/commit/996878997b6fbb1f2467c9353d3772c78473583d) Thanks [@tenphi](https://github.com/tenphi)! - Package headings in the managed block no longer name the version, so an upgrade that keeps a package's harness the same changes only `harnesspm.lock.json`. Run `npx harnesspm sync` once and commit the updated `AGENTS.md` files.
130
+
131
+ ## 0.6.0
132
+
133
+ ### Minor Changes
134
+
135
+ - [#37](https://github.com/tenphi/harnesspm/pull/37) [`d95e966`](https://github.com/tenphi/harnesspm/commit/d95e96674973bf2ef0fab4c04fc1abd810ff9b99) Thanks [@tenphi](https://github.com/tenphi)! - When an agent runs the install, harnesspm now writes the hooks, MCP servers and allow rules that the default branch already records, so a teammate's merged change reaches every machine with no step. The agent's own edits still wait for a person, and the held-back line now says what differs, such as `harnesspm.json differs from origin/main`.
136
+
137
+ ## 0.5.2
138
+
139
+ ### Patch Changes
140
+
141
+ - [#34](https://github.com/tenphi/harnesspm/pull/34) [`c0f7a2b`](https://github.com/tenphi/harnesspm/commit/c0f7a2ba0a78d424d8af708c40a802b327b54d9f) Thanks [@tenphi](https://github.com/tenphi)! - In a Claude Code cloud session, `sync`, `status` and `doctor` now print the exact line for the environment's setup script when they hold entries back, such as `cd /home/user/app && npm ci`, and the cloud docs give a setup script that works.
142
+
143
+ ## 0.5.1
144
+
145
+ ### Patch Changes
146
+
147
+ - [#31](https://github.com/tenphi/harnesspm/pull/31) [`8449c71`](https://github.com/tenphi/harnesspm/commit/8449c71afddb966d5f26d4e0d6602414ef6ff9ea) Thanks [@tenphi](https://github.com/tenphi)! - Hooks and MCP servers start harnesspm as `node <project>/node_modules/@tenphi/harnesspm/dist/cli.js`, and the package ships `dist/cli.js` as executable, so hooks keep working after Yarn 4 upgrades harnesspm in place.
148
+
149
+ ## 0.5.0
150
+
151
+ ### Minor Changes
152
+
153
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - `status` and `doctor` name each managed block that Codex never reads, or reads only in part, such as a workspace block below a long root `AGENTS.md`.
154
+
155
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - The root block of a monorepo names the workspaces that have harness rules of their own, and a trusted hook that checks file edits gets a line asking agents to edit with their file tools.
156
+
157
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - New `@tenphi/harnesspm/telemetry` entry with `reportRun`, so a project's own tools send `run` events to the same handler. The package now has an `exports` field, so deep imports of internal files no longer resolve.
158
+
159
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - Telemetry: loading a workspace's rules sends `read` events, events carry a `repository` field from the `origin` remote, and a sync in CI sends no `sync` event.
160
+
161
+ ### Patch Changes
162
+
163
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - In a Claude Code cloud session, held-back entries point to the environment's setup script instead of asking for a terminal the person does not have.
164
+
165
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - `status` and `doctor` list the same held-back entries as `sync`, now with Codex allow rules and a held telemetry handler, so the counts match.
166
+
167
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`8febc83`](https://github.com/tenphi/harnesspm/commit/8febc8398ce14be9066b78a8292710a90468b1bb) Thanks [@tenphi](https://github.com/tenphi)! - Hooks and stdio MCP servers start through the project's own `node_modules/.bin/harnesspm` when it exists, not through npx, which saves about 0.4 s on every hooked tool call. Allow rules keep the npx form.
168
+
169
+ - [#28](https://github.com/tenphi/harnesspm/pull/28) [`7830b5c`](https://github.com/tenphi/harnesspm/commit/7830b5c760f2211bc17a4cebfd069fb2bb9668f4) Thanks [@tenphi](https://github.com/tenphi)! - `status` and `doctor` count the `AGENTS.md` files above a project that sits below the git root, a workspace's rules count once per load, one hook run starts one telemetry handler process, and the edit-hook line reads Codex matchers as regular expressions.
170
+
171
+ ## 0.4.4
172
+
173
+ ### Patch Changes
174
+
175
+ - [#19](https://github.com/tenphi/harnesspm/pull/19) [`d9f9fdc`](https://github.com/tenphi/harnesspm/commit/d9f9fdc8dbf2a61168f0164b1b70e5ae88c8bfda) Thanks [@tenphi](https://github.com/tenphi)! - Docs leave out the files git ignores. A local file next to the pages, such as an agent's plan, no longer changes the lock, the docs index or `check` on one machine only, so `sync --check` in CI agrees with a local sync.
176
+
177
+ ## 0.4.3
178
+
179
+ ### Patch Changes
180
+
181
+ - [#18](https://github.com/tenphi/harnesspm/pull/18) [`16ec137`](https://github.com/tenphi/harnesspm/commit/16ec1374e9eb1b01591b98bef57ca34f85582c96) Thanks [@tenphi](https://github.com/tenphi)! - Clearer CLI messages. A pending tool's reason now says that a person turns it on, so agents do not take it as their next step. `init` ends with the files to commit. `new` lists every file it wrote, `plugin.json` included, and a next step that works where it wrote. `harnesspm <command> --help` shows that command's usage and options.
182
+
183
+ - [#16](https://github.com/tenphi/harnesspm/pull/16) [`08c0f45`](https://github.com/tenphi/harnesspm/commit/08c0f452244c1bd124e2c11ce167990dc99a6e13) Thanks [@tenphi](https://github.com/tenphi)! - The install script that `harnesspm init` writes skips `harnesspm sync` when harnesspm is not installed, so an install without dev dependencies, such as `npm ci --omit=dev`, no longer fails with "harnesspm: not found". In a project that is already set up, run `npx harnesspm init` again to update the script; `harnesspm doctor` warns until you do.
184
+
185
+ ## 0.4.2
186
+
187
+ ### Patch Changes
188
+
189
+ - [#15](https://github.com/tenphi/harnesspm/pull/15) [`1c6d5b4`](https://github.com/tenphi/harnesspm/commit/1c6d5b4e3c26a44699fc57b1ab97e59831729048) Thanks [@tenphi](https://github.com/tenphi)! - A docs unit's hash in `harnesspm.lock.json` now covers only its `llms.txt` and its `.md` and `.mdx` pages. A package that points `docs` at its source folder, with pages next to the code, no longer gets a stale lock from every change to a source or test file. The next `sync` rewrites the hash of a docs folder that holds other files.
190
+
191
+ - [#13](https://github.com/tenphi/harnesspm/pull/13) [`8acfdf3`](https://github.com/tenphi/harnesspm/commit/8acfdf372af46d908710ba1401786e646b776e3c) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm init` stops when `@tenphi/harnesspm` is not a dependency of the project, changes nothing, and names the command that installs it. Before, it added an install script that failed the next install with "harnesspm: not found".
192
+
193
+ - [#13](https://github.com/tenphi/harnesspm/pull/13) [`71e2aab`](https://github.com/tenphi/harnesspm/commit/71e2aabc193953fc3c5c3f9440594d1426a75579) Thanks [@tenphi](https://github.com/tenphi)! - The `harnesspm-import` and `harnesspm-export` skills name every file to commit, say where to find what a pending tool does, show the `docs` field in full, and add a README note for the package's users.
194
+
195
+ ## 0.4.1
196
+
197
+ ### Patch Changes
198
+
199
+ - [#10](https://github.com/tenphi/harnesspm/pull/10) [`f4a5899`](https://github.com/tenphi/harnesspm/commit/f4a5899c50aebc18e0c9d6cf18669723c11f29e6) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm sync` no longer fails when a docs page of a package has invalid frontmatter: it warns and lists the page by its heading or file name. `harnesspm check` reports such a page, so the author fixes it before publishing.
200
+
201
+ - [#10](https://github.com/tenphi/harnesspm/pull/10) [`d8df8e9`](https://github.com/tenphi/harnesspm/commit/d8df8e97f9c554fb6beb6a50082c97e75eb05be2) Thanks [@tenphi](https://github.com/tenphi)! - The specification, which ships as the docs of harnesspm's own harness, shows the managed block as `sync` writes it and calls harnesspm experimental.
202
+
203
+ ## 0.4.0
204
+
205
+ ### Minor Changes
206
+
207
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - With `CI=true`, `harnesspm sync` writes only per-machine files and leaves `AGENTS.md`, `CLAUDE.md` and the lock as they are, so `sync --check` after an install catches a missed sync. `sync --write` writes them anyway, for jobs that commit the result.
208
+
209
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm sync` makes Claude Code read nested `AGENTS.md` files again: each one that git tracks gets a `CLAUDE.md` next to it with `@AGENTS.md`, because the root `CLAUDE.md` silenced them. `sync --check` and `doctor` report a missing import.
210
+
211
+ ### Patch Changes
212
+
213
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm status` says `AGENTS.md` is over Codex's 32 KiB limit, instead of close to it, once it is past 32 KiB, and `harnesspm doctor` warns about it under Outputs: Codex reads only the first 32 KiB.
214
+
215
+ - [#7](https://github.com/tenphi/harnesspm/pull/7) [`b58879e`](https://github.com/tenphi/harnesspm/commit/b58879e0850c56658c4bc5b59d7fec8e2b3331e0) Thanks [@tenphi](https://github.com/tenphi)! - The package's homepage is now the docs site, https://harnesspm.tenphi.me. The specification's links to files of this repository that are not in the package point at GitHub.
216
+
217
+ - [#7](https://github.com/tenphi/harnesspm/pull/7) [`b58879e`](https://github.com/tenphi/harnesspm/commit/b58879e0850c56658c4bc5b59d7fec8e2b3331e0) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm doctor` says how to turn on an untrusted package's units once per line, not twice.
218
+
219
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm.lock.json` no longer records the project's own version, so a release that raises `version` in `package.json` no longer makes the lock out of date. A lock that has it still passes `sync --check`, and the next `sync` drops it.
220
+
221
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm.lock.json` now takes each harness package's integrity and tarball URL from `pnpm-lock.yaml` and Yarn 1's `yarn.lock` too, so `harnesspm fetch` checks its downloads in pnpm and Yarn projects. For a lock without them, `fetch` reads the package manager's lockfile, and it names each package it cannot check.
222
+
223
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - The managed block now has a blank line after its BEGIN marker and before its END marker, so Prettier no longer changes it and breaks `sync --check`. A block in the old form still passes `--check`, and the next `sync` rewrites it once.
224
+
225
+ - [#9](https://github.com/tenphi/harnesspm/pull/9) [`2d69197`](https://github.com/tenphi/harnesspm/commit/2d69197802d6ab483ac8b72143c2b500f2d7fc6d) Thanks [@tenphi](https://github.com/tenphi)! - Outside a git repository, `harnesspm sync` no longer creates `.git/harnesspm/state.json`. It keeps that per-machine state in `~/.harnesspm/state/` instead.
226
+
227
+ ## 0.3.0
228
+
229
+ ### Minor Changes
230
+
231
+ - [#5](https://github.com/tenphi/harnesspm/pull/5) [`40154b6`](https://github.com/tenphi/harnesspm/commit/40154b6fd8430324f883fcd73ba80085f47c6e5e) Thanks [@tenphi](https://github.com/tenphi)! - New `harnesspm doctor`: checks that a repository is ready for harnesses, its own and a person's. Every per-machine file on disk must be ignored by git and not tracked, so no commit can include it. It also checks that added harnesses are on this machine, that outputs are in place, and what waits for trust. Each problem names the command that fixes it. `status` points to it when a per-machine file has a problem.
232
+
233
+ ### Patch Changes
234
+
235
+ - [#5](https://github.com/tenphi/harnesspm/pull/5) [`40154b6`](https://github.com/tenphi/harnesspm/commit/40154b6fd8430324f883fcd73ba80085f47c6e5e) Thanks [@tenphi](https://github.com/tenphi)! - A telemetry command handler that exits without reading its event is now logged with its exit code, not as `EPIPE`.
236
+
237
+ ## 0.2.0
238
+
239
+ ### Minor Changes
240
+
241
+ - [#3](https://github.com/tenphi/harnesspm/pull/3) [`0aa47d8`](https://github.com/tenphi/harnesspm/commit/0aa47d8eca675a4de1f70b7ba8b5ace1515127ea) Thanks [@tenphi](https://github.com/tenphi)! - Opt-in telemetry: with `telemetry` in `harnesspm.json`, harnesspm sends events about script runs, MCP server starts, `sync` and `why` to the team's own handler, a command or a JSON Lines file. With agent events on, its own async hooks also report when Claude Code reads a harness file or loads a skill, and when a Claude Code or Codex session starts. Events never hold arguments, file contents or prompts. A handler gets events only after a person's `sync` records it in the lock, and a person opts out with `DO_NOT_TRACK=1` or `"telemetry": false` in `harnesspm.local.json`.
242
+
243
+ ### Patch Changes
244
+
245
+ - [#3](https://github.com/tenphi/harnesspm/pull/3) [`0aa47d8`](https://github.com/tenphi/harnesspm/commit/0aa47d8eca675a4de1f70b7ba8b5ace1515127ea) Thanks [@tenphi](https://github.com/tenphi)! - harnesspm's own config rule loads only for the project's `harnesspm.json` and `harness/`, no longer when Claude Code reads a dependency's harness files.
246
+
247
+ - [#3](https://github.com/tenphi/harnesspm/pull/3) [`0aa47d8`](https://github.com/tenphi/harnesspm/commit/0aa47d8eca675a4de1f70b7ba8b5ace1515127ea) Thanks [@tenphi](https://github.com/tenphi)! - An `extends` entry that is an optional peer dependency of its package (`optional: true` in `peerDependenciesMeta`) is skipped without a warning when it is not installed.
248
+
249
+ - [#3](https://github.com/tenphi/harnesspm/pull/3) [`0aa47d8`](https://github.com/tenphi/harnesspm/commit/0aa47d8eca675a4de1f70b7ba8b5ace1515127ea) Thanks [@tenphi](https://github.com/tenphi)! - `harnesspm why` explains every unit ID: scripts, hooks, MCP servers, sub-agents and permissions too, not only rules, skills and docs. For a script it also shows the command that runs it, and for an executable unit of a dependency whether its package is trusted.
250
+
251
+ ## 0.1.1
252
+
253
+ ### Patch Changes
254
+
255
+ - [#1](https://github.com/tenphi/harnesspm/pull/1) [`67528c5`](https://github.com/tenphi/harnesspm/commit/67528c50345a909066448fa0eba4c272b3f73aeb) Thanks [@tenphi](https://github.com/tenphi)! - Releases are now published from GitHub Actions through npm trusted publishing, with provenance.
256
+
257
+ ## 0.1.0
258
+
259
+ The first release: a proof of concept that covers every scenario of the [specification](docs/spec/README.md) (version 0.7 draft).
260
+
261
+ - **Team harness:** `init`, `sync`, `sync --check`, `status`, `why` and `check`. Discovery from dependencies, `extends`, one version per package, `exclude`, `replace` and `patch`, the managed block in `AGENTS.md`, skill and rule links, a docs index and `harnesspm.lock.json`.
262
+ - **Added harnesses:** `add`, `remove` and `update`, for a team's or a person's own harness on top of a repository, with user and local scope, project entries and a `SessionStart` hook.
263
+ - **Executables and trust:** scripts, hooks, MCP servers, permissions and sub-agents for Claude Code and Codex; `trust` with `true` or `"pin"`; `run`, `mcp` and `approve`. Nothing that widens an agent's permissions is written when the agent's model runs harnesspm.
264
+ - **Monorepos, `fetch` and `new`:** a block per workspace; downloading the locked harness packages for jobs without an install; templates for every unit kind and for patches.
265
+ - **Package:** published as `@tenphi/harnesspm`; the command is `harnesspm`. Commands that may run without an install use `npx -y @tenphi/harnesspm`, and allow rules for an added harness's scripts match those commands.
266
+ - **Docs index:** built from `.md` and `.mdx` pages, titled by frontmatter `title`, else the first heading. Found by the first pilot, `@tenphi/glaze`.
267
+ - **`check`:** `files` may list entries inside the docs folder, such as `docs/components` or `docs/*.md`, so a package can leave contributor docs out. Found by the `@cube-dev/ui-kit` pilot.
268
+
269
+ Known limits: `npm install <pkg>` and `pnpm add` do not run the install hook, so run `npx harnesspm sync` after them; Codex outputs are checked against its source and docs only; Yarn Plug'n'Play and Windows are not tested.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tenphi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
- # Temporary Holding Version
1
+ # harnesspm
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Harness management for npm packages.**
4
+
5
+ A **harness** is everything a coding agent needs to use a library well: rules, docs, skills, sub-agents, scripts, hooks, MCP servers and permissions. A library ships it in its npm package. harnesspm gives it to Claude Code and Codex on every install, for the version you installed.
6
+
7
+ 📚 Docs: **[harnesspm.tenphi.me](https://harnesspm.tenphi.me)**. One guide for people and their agents, and a reference.
8
+
9
+ ## How it works
10
+
11
+ | Flow | Who | What they do |
12
+ | --- | --- | --- |
13
+ | 📤 **Share** | A library | Adds a `harness/` folder to its npm package. It can pass on the harness of the libraries it builds on (`extends`). |
14
+ | 📥 **Use** | A project | `npm i -D @harnesspm/cli` and `npx -y @harnesspm/cli init`. After every install, Claude Code and Codex see the harness of the installed versions. |
15
+ | ➕ **Add on top** | A person | `npx -y @harnesspm/cli add github:me/harness`. A team's or their own workflow, context and tools apply on top, without changing the project's repository. |
16
+ | 🛠️ **Improve** | An agent | `npx -y @harnesspm/cli why <unit>` finds the source. The agent edits it and saves the change the way the owner's rules say, by default with a pull request. |
17
+
18
+ ```
19
+ dependencies (harness/ in node_modules, through extends)
20
+ ▼
21
+ project (harnesspm.json, the project's own harness/) → AGENTS.md block + harnesspm.lock.json, committed
22
+ ▼
23
+ added (harnesses you add: your team's, your own) → per-machine files, never committed
24
+ ```
25
+
26
+ ## Quick start
27
+
28
+ In a project:
29
+
30
+ ```bash
31
+ npm i -D @harnesspm/cli
32
+ npx -y @harnesspm/cli init
33
+ ```
34
+
35
+ `init` creates `harnesspm.json` and runs `harnesspm sync` after every full install. Commit `AGENTS.md`, `CLAUDE.md`, `harnesspm.json` and `harnesspm.lock.json`. Or ask your agent to do it: [Get started](https://harnesspm.tenphi.me/guides/setup/) has the prompt.
36
+
37
+ In a library, to share its harness:
38
+
39
+ ```bash
40
+ npm i -D @harnesspm/cli
41
+ npx -y @harnesspm/cli new rule usage
42
+ npx -y @harnesspm/cli check
43
+ ```
44
+
45
+ Add `"harness"` to the `files` field of `package.json`. [Share a harness from your library](https://harnesspm.tenphi.me/guides/share/) has the prompt for your agent. To add your own or your team's harness on top of every repository on your machine:
46
+
47
+ ```bash
48
+ npx -y @harnesspm/cli add github:<owner>/<repo>
49
+ ```
50
+
51
+ To see how agents use the harness, a team can turn on telemetry in `harnesspm.json`. It is off by default, sends events only to the team's own handler (a command or a file), and never sends arguments or file contents. See [chapter 14](docs/spec/14-telemetry.md).
52
+
53
+ `npx -y @harnesspm/cli help` lists every command, and `npx -y @harnesspm/cli <command> --help` shows one. [CHANGELOG.md](CHANGELOG.md) lists the changes.
54
+
55
+ ## Requirements
56
+
57
+ - **Node.js** 20 or later.
58
+ - **Package managers:** npm, pnpm, Yarn 1 and Yarn 4 (node-modules linker).
59
+ - **Agents:** Claude Code and Codex. Other agents that read `AGENTS.md` and `.agents/skills` get the portable parts.
60
+
61
+ ## Learn more
62
+
63
+ - 📚 [The docs site](https://harnesspm.tenphi.me): a guide for each task, with prompts for your agent, and a reference.
64
+ - 📐 [The specification](docs/spec/README.md): every format, rule and command. Each chapter opens with a short summary. It ships in the npm package, so agents read the version you installed.
65
+ - 🔬 [The research notes](docs/research/): the sources behind every statement about the agents.
66
+ - 🧩 [Projects that ship a harness](https://harnesspm.tenphi.me/#in-real-projects), as working examples.
67
+
68
+ ## Name
69
+
70
+ **harnesspm** stands for *harness package manager*, in the line of npm and pnpm. It is written in lowercase. The npm package is `@harnesspm/cli` (`@tenphi/harnesspm` up to 0.16), and the command is `harnesspm`. The extension namespace is `dev.harnesspm`.
@@ -0,0 +1,51 @@
1
+ import { type HarnessPackage } from './manifest.ts';
2
+ import { normalizeRemote, remoteKey } from './util.ts';
3
+ export type Scope = 'user' | 'local';
4
+ export type SourceKind = 'git' | 'folder' | 'npm';
5
+ export declare const LOCAL_FILE = "harnesspm.local.json";
6
+ export declare function userConfigFile(): string;
7
+ export declare function configFileFor(scope: Scope, projectDir: string): string;
8
+ export declare function readList(file: string): string[];
9
+ export declare function writeList(file: string, list: string[]): void;
10
+ export interface Source {
11
+ /** As the person wrote it, normalized for folders to an absolute path. */
12
+ spec: string;
13
+ kind: SourceKind;
14
+ /** Git URL or npm package name. */
15
+ location: string;
16
+ /** The harness package root on this machine. */
17
+ dir: string;
18
+ editable: boolean;
19
+ }
20
+ export declare function parseSource(spec: string, cwd?: string): Source;
21
+ /** How long a fetch may take when nobody can answer a prompt, as in the `SessionStart` hook (spec 7.5). */
22
+ export declare const QUIET_FETCH_SECONDS = 30;
23
+ /** Puts the source on this machine. Returns a note for the person. */
24
+ export declare function fetchSource(source: Source, quiet?: boolean): string | undefined;
25
+ /**
26
+ * Brings a source up to date and says what changed. Never changes a working copy with local work (spec 8.7). A pull
27
+ * that fails keeps the working copy as it is. A clone or npm fetch that fails throws.
28
+ */
29
+ export declare function updateSource(source: Source, options?: {
30
+ quiet?: boolean;
31
+ }): string;
32
+ export { normalizeRemote, remoteKey };
33
+ export interface AddedHarness {
34
+ source: Source;
35
+ scope: Scope;
36
+ pkg: HarnessPackage;
37
+ /** This harness's entry for the current repository, as a package with the harness's plugin name. */
38
+ entry?: HarnessPackage;
39
+ }
40
+ /** A harness's project entries, one per folder, with the remotes that map to it (spec 7.2). */
41
+ export declare function entryFolders(pkg: HarnessPackage): {
42
+ dir: string;
43
+ remotes: string[];
44
+ }[];
45
+ /** The entry in `dir` as a package with the harness's plugin name, or undefined when the folder does not exist. */
46
+ export declare function entryPackage(pkg: HarnessPackage, dir: string, key: string): HarnessPackage | undefined;
47
+ /** Added harnesses in order: user scope first, then local scope, each as listed. */
48
+ export declare function loadAdded(projectDir: string | undefined, warnings: string[]): AddedHarness[];
49
+ export { harnesspmHome } from './homes.ts';
50
+ export { caller, type Caller } from './util.ts';
51
+ export declare const RULES_DIR: string;