harnesstap 1.2.0 → 1.3.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 -15
- package/dist/apply-2GRNKR5H.js +67 -0
- package/dist/apply-2GRNKR5H.js.map +1 -0
- package/dist/approve-KQNCNH2R.js +181 -0
- package/dist/approve-KQNCNH2R.js.map +1 -0
- package/dist/audit-SLYOZCMI.js +434 -0
- package/dist/audit-SLYOZCMI.js.map +1 -0
- package/dist/auth-3IEVICFT.js +220 -0
- package/dist/auth-3IEVICFT.js.map +1 -0
- package/dist/bin.js +166 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-2EIJYDNI.js +10945 -0
- package/dist/chunk-2EIJYDNI.js.map +1 -0
- package/dist/chunk-2H7UOFLK.js +11 -0
- package/dist/chunk-2H7UOFLK.js.map +1 -0
- package/dist/chunk-37E5M4JX.js +34 -0
- package/dist/chunk-37E5M4JX.js.map +1 -0
- package/dist/chunk-3FIWOI3H.js +98 -0
- package/dist/chunk-3FIWOI3H.js.map +1 -0
- package/dist/chunk-3IWTJCPA.js +6448 -0
- package/dist/chunk-3IWTJCPA.js.map +1 -0
- package/dist/chunk-3IZ7SEGT.js +346 -0
- package/dist/chunk-3IZ7SEGT.js.map +1 -0
- package/dist/chunk-3RBYT7QN.js +540 -0
- package/dist/chunk-3RBYT7QN.js.map +1 -0
- package/dist/chunk-4KNQZDZC.js +115 -0
- package/dist/chunk-4KNQZDZC.js.map +1 -0
- package/dist/chunk-5F3LNDZG.js +9 -0
- package/dist/chunk-5F3LNDZG.js.map +1 -0
- package/dist/chunk-63U7QWNY.js +364 -0
- package/dist/chunk-63U7QWNY.js.map +1 -0
- package/dist/chunk-6BY4BV5G.js +998 -0
- package/dist/chunk-6BY4BV5G.js.map +1 -0
- package/dist/chunk-7L2K4N25.js +610 -0
- package/dist/chunk-7L2K4N25.js.map +1 -0
- package/dist/chunk-7LWH5SWH.js +18 -0
- package/dist/chunk-7LWH5SWH.js.map +1 -0
- package/dist/chunk-BIBUCC2E.js +696 -0
- package/dist/chunk-BIBUCC2E.js.map +1 -0
- package/dist/chunk-BSOBXLYI.js +172 -0
- package/dist/chunk-BSOBXLYI.js.map +1 -0
- package/dist/chunk-C4QBVVEH.js +32 -0
- package/dist/chunk-C4QBVVEH.js.map +1 -0
- package/dist/chunk-CHQGE2HF.js +283 -0
- package/dist/chunk-CHQGE2HF.js.map +1 -0
- package/dist/chunk-DV74UZJI.js +87 -0
- package/dist/chunk-DV74UZJI.js.map +1 -0
- package/dist/chunk-DWVAR4BP.js +656 -0
- package/dist/chunk-DWVAR4BP.js.map +1 -0
- package/dist/chunk-DXKAKKLP.js +302 -0
- package/dist/chunk-DXKAKKLP.js.map +1 -0
- package/dist/chunk-EIWXS4RM.js +235 -0
- package/dist/chunk-EIWXS4RM.js.map +1 -0
- package/dist/chunk-EWBCFAF3.js +681 -0
- package/dist/chunk-EWBCFAF3.js.map +1 -0
- package/dist/chunk-F2L4VNQK.js +1759 -0
- package/dist/chunk-F2L4VNQK.js.map +1 -0
- package/dist/chunk-G26HZZDJ.js +1359 -0
- package/dist/chunk-G26HZZDJ.js.map +1 -0
- package/dist/chunk-GQKKX7OE.js +818 -0
- package/dist/chunk-GQKKX7OE.js.map +1 -0
- package/dist/chunk-GRJY22U6.js +691 -0
- package/dist/chunk-GRJY22U6.js.map +1 -0
- package/dist/chunk-H6DVP2SI.js +682 -0
- package/dist/chunk-H6DVP2SI.js.map +1 -0
- package/dist/chunk-HVVPTCKR.js +1173 -0
- package/dist/chunk-HVVPTCKR.js.map +1 -0
- package/dist/chunk-I6XFZLTJ.js +9 -0
- package/dist/chunk-I6XFZLTJ.js.map +1 -0
- package/dist/chunk-IBOABSIA.js +17 -0
- package/dist/chunk-IBOABSIA.js.map +1 -0
- package/dist/chunk-IK524ZDW.js +691 -0
- package/dist/chunk-IK524ZDW.js.map +1 -0
- package/dist/chunk-IRU7NBOT.js +141 -0
- package/dist/chunk-IRU7NBOT.js.map +1 -0
- package/dist/chunk-J4CKQXQ6.js +806 -0
- package/dist/chunk-J4CKQXQ6.js.map +1 -0
- package/dist/chunk-JKGSJGCC.js +311 -0
- package/dist/chunk-JKGSJGCC.js.map +1 -0
- package/dist/chunk-JQOKQKQT.js +158 -0
- package/dist/chunk-JQOKQKQT.js.map +1 -0
- package/dist/chunk-JRFUTIEH.js +426 -0
- package/dist/chunk-JRFUTIEH.js.map +1 -0
- package/dist/chunk-K2BPYEH5.js +491 -0
- package/dist/chunk-K2BPYEH5.js.map +1 -0
- package/dist/chunk-KCQC7YBK.js +7795 -0
- package/dist/chunk-KCQC7YBK.js.map +1 -0
- package/dist/chunk-KDAV2GUT.js +1357 -0
- package/dist/chunk-KDAV2GUT.js.map +1 -0
- package/dist/chunk-KDDXZBMC.js +583 -0
- package/dist/chunk-KDDXZBMC.js.map +1 -0
- package/dist/chunk-KMWHZSEG.js +41 -0
- package/dist/chunk-KMWHZSEG.js.map +1 -0
- package/dist/chunk-KRI4R7EM.js +25 -0
- package/dist/chunk-KRI4R7EM.js.map +1 -0
- package/dist/chunk-LNJ3WZZX.js +186 -0
- package/dist/chunk-LNJ3WZZX.js.map +1 -0
- package/dist/chunk-MWXA4PFE.js +103 -0
- package/dist/chunk-MWXA4PFE.js.map +1 -0
- package/dist/chunk-MY62SSKC.js +183 -0
- package/dist/chunk-MY62SSKC.js.map +1 -0
- package/dist/chunk-NAGAJ5UM.js +145 -0
- package/dist/chunk-NAGAJ5UM.js.map +1 -0
- package/dist/chunk-NJ7WRKIQ.js +532 -0
- package/dist/chunk-NJ7WRKIQ.js.map +1 -0
- package/dist/chunk-OS6NUIBJ.js +38 -0
- package/dist/chunk-OS6NUIBJ.js.map +1 -0
- package/dist/chunk-PXU2OS26.js +238 -0
- package/dist/chunk-PXU2OS26.js.map +1 -0
- package/dist/chunk-QO4LBDVI.js +496 -0
- package/dist/chunk-QO4LBDVI.js.map +1 -0
- package/dist/chunk-QRZPQNLX.js +65 -0
- package/dist/chunk-QRZPQNLX.js.map +1 -0
- package/dist/chunk-SNVAMWB7.js +40 -0
- package/dist/chunk-SNVAMWB7.js.map +1 -0
- package/dist/chunk-SPRVUATR.js +430 -0
- package/dist/chunk-SPRVUATR.js.map +1 -0
- package/dist/chunk-SY7G5QEI.js +35 -0
- package/dist/chunk-SY7G5QEI.js.map +1 -0
- package/dist/chunk-SZNBUIDR.js +6438 -0
- package/dist/chunk-SZNBUIDR.js.map +1 -0
- package/dist/chunk-TQ2NA4Z4.js +24 -0
- package/dist/chunk-TQ2NA4Z4.js.map +1 -0
- package/dist/chunk-TYULB6ZY.js +2959 -0
- package/dist/chunk-TYULB6ZY.js.map +1 -0
- package/dist/chunk-UJYFTXHV.js +296 -0
- package/dist/chunk-UJYFTXHV.js.map +1 -0
- package/dist/chunk-VC6OKCJF.js +184 -0
- package/dist/chunk-VC6OKCJF.js.map +1 -0
- package/dist/chunk-VL2NWCZV.js +118 -0
- package/dist/chunk-VL2NWCZV.js.map +1 -0
- package/dist/chunk-VL7BGD47.js +514 -0
- package/dist/chunk-VL7BGD47.js.map +1 -0
- package/dist/chunk-VQVUJYYY.js +244 -0
- package/dist/chunk-VQVUJYYY.js.map +1 -0
- package/dist/chunk-VZQG2JDV.js +9 -0
- package/dist/chunk-VZQG2JDV.js.map +1 -0
- package/dist/chunk-XFZQVYIN.js +115 -0
- package/dist/chunk-XFZQVYIN.js.map +1 -0
- package/dist/chunk-XGTTOO4R.js +84 -0
- package/dist/chunk-XGTTOO4R.js.map +1 -0
- package/dist/chunk-XQFT4PEP.js +60 -0
- package/dist/chunk-XQFT4PEP.js.map +1 -0
- package/dist/chunk-YDD3ES2K.js +571 -0
- package/dist/chunk-YDD3ES2K.js.map +1 -0
- package/dist/chunk-ZY2MZ2KQ.js +1140 -0
- package/dist/chunk-ZY2MZ2KQ.js.map +1 -0
- package/dist/compile-57EEIUMB.js +161 -0
- package/dist/compile-57EEIUMB.js.map +1 -0
- package/dist/config-4EJ3D7QJ.js +438 -0
- package/dist/config-4EJ3D7QJ.js.map +1 -0
- package/dist/doctor-EEV6P5CH.js +111 -0
- package/dist/doctor-EEV6P5CH.js.map +1 -0
- package/dist/environment-WFEG4DAT.js +2745 -0
- package/dist/environment-WFEG4DAT.js.map +1 -0
- package/dist/github-BSMQD72A.js +114 -0
- package/dist/github-BSMQD72A.js.map +1 -0
- package/dist/harness-VX3PNVQW.js +746 -0
- package/dist/harness-VX3PNVQW.js.map +1 -0
- package/dist/help-AW2HKX63.js +2079 -0
- package/dist/help-AW2HKX63.js.map +1 -0
- package/dist/help-BVFOZD7E.js +1892 -0
- package/dist/help-BVFOZD7E.js.map +1 -0
- package/dist/index.d.ts +164 -1
- package/dist/index.js +50 -59246
- package/dist/index.js.map +1 -1
- package/dist/init-SPN2GEZ4.js +873 -0
- package/dist/init-SPN2GEZ4.js.map +1 -0
- package/dist/lock-K2LLUU7H.js +455 -0
- package/dist/lock-K2LLUU7H.js.map +1 -0
- package/dist/marketplace-VEKSWGX3.js +495 -0
- package/dist/marketplace-VEKSWGX3.js.map +1 -0
- package/dist/mcp-T6DKIKSF.js +202 -0
- package/dist/mcp-T6DKIKSF.js.map +1 -0
- package/dist/migrate-OO37WSB2.js +1043 -0
- package/dist/migrate-OO37WSB2.js.map +1 -0
- package/dist/open-3V3QK5RK.js +32 -0
- package/dist/open-3V3QK5RK.js.map +1 -0
- package/dist/pack-V32UPC7W.js +99 -0
- package/dist/pack-V32UPC7W.js.map +1 -0
- package/dist/plugin-KOBNQ7GT.js +64 -0
- package/dist/plugin-KOBNQ7GT.js.map +1 -0
- package/dist/plugin-from-project-X3VO3MB6.js +16 -0
- package/dist/plugin-from-project-X3VO3MB6.js.map +1 -0
- package/dist/policy-F5MKZNOC.js +105 -0
- package/dist/policy-F5MKZNOC.js.map +1 -0
- package/dist/profile-H4PMH4XT.js +1886 -0
- package/dist/profile-H4PMH4XT.js.map +1 -0
- package/dist/project-QVNEJJGH.js +1392 -0
- package/dist/project-QVNEJJGH.js.map +1 -0
- package/dist/resource-GL4RLSGI.js +555 -0
- package/dist/resource-GL4RLSGI.js.map +1 -0
- package/dist/version-PBHZK44K.js +17 -0
- package/dist/version-PBHZK44K.js.map +1 -0
- package/package.json +21 -14
- package/schemas/ap-package.v1.json +36 -0
- package/schemas/fixtures/catalog-missing-schema.ap.json +13 -0
- package/schemas/fixtures/confidence.ap.json +13 -0
- package/schemas/fixtures/context7.ap.json +13 -0
- package/schemas/fixtures/minimal-with-schema.ap.json +13 -0
- package/schemas/fixtures/superpowers.ap.json +13 -0
- package/schemas/fixtures/third-party-skills.ap.json +13 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Scan existing setup → store canonical resources → compose **plugins** → share offline or via catalog → materialize into any supported harness.
|
|
10
10
|
|
|
11
|
-
Use the **CLI** (`ht`) or **Desktop
|
|
11
|
+
Use the **CLI** (`ht`) or **Desktop**. Both talk to the same local library at `~/.harnesstap`.
|
|
12
12
|
|
|
13
13
|
<br />
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@ Use the **CLI** (`ht`) or **Desktop** — both talk to the same local library at
|
|
|
16
16
|
[](https://harnesstap.com/docs)
|
|
17
17
|
[](LICENSE)
|
|
18
18
|
[](https://www.npmjs.com/package/harnesstap)
|
|
19
|
-
[](https://nodejs.org)
|
|
20
20
|
|
|
21
21
|
<br />
|
|
22
22
|
|
|
@@ -67,7 +67,7 @@ Use the **CLI** (`ht`) or **Desktop** — both talk to the same local library at
|
|
|
67
67
|
|
|
68
68
|
## Install
|
|
69
69
|
|
|
70
|
-
**Requirements:** Node.js
|
|
70
|
+
**Requirements:** Node.js 22.12+ or 24 to run the published CLI.
|
|
71
71
|
|
|
72
72
|
### Recommended: npx (no global install)
|
|
73
73
|
|
|
@@ -92,7 +92,7 @@ bun install -g harnesstap
|
|
|
92
92
|
ht init
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
Or without a global install: `
|
|
95
|
+
Or without a global install: `bun x harnesstap@latest init`.
|
|
96
96
|
|
|
97
97
|
</details>
|
|
98
98
|
|
|
@@ -132,7 +132,7 @@ Default onboarding in a repo that already has `apm.yml`. Same loop as `ht apply`
|
|
|
132
132
|
### Project: scan and apply
|
|
133
133
|
|
|
134
134
|
```bash
|
|
135
|
-
ht init --
|
|
135
|
+
ht init --harnesses codex,claude-code,cursor
|
|
136
136
|
ht scan .
|
|
137
137
|
ht resource list
|
|
138
138
|
ht apply engineering-foundation --project .
|
|
@@ -144,7 +144,7 @@ ht status .
|
|
|
144
144
|
### Machine: profile switch
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
|
-
ht init --
|
|
147
|
+
ht init --harnesses claude-code,cursor,codex
|
|
148
148
|
ht profile use "global default"
|
|
149
149
|
# after you compose a `work` profile:
|
|
150
150
|
ht work
|
|
@@ -184,14 +184,14 @@ Details, sidecar notes, and e2e: [apps/desktop/README.md](apps/desktop/README.md
|
|
|
184
184
|
|
|
185
185
|
## Demo
|
|
186
186
|
|
|
187
|
-
Initialise HarnessTap, scan an existing repository, browse catalog plugins, apply one, and confirm the final state
|
|
187
|
+
Initialise HarnessTap, scan an existing repository, browse catalog plugins, apply one, and confirm the final state, all in about a minute.
|
|
188
188
|
|
|
189
189
|
[](docs/scenarios/vhs/walkthroughs/01-existing-repo-adoption.md)
|
|
190
190
|
|
|
191
191
|
[Full walkthrough →](docs/scenarios/vhs/walkthroughs/01-existing-repo-adoption.md)
|
|
192
192
|
|
|
193
193
|
```bash
|
|
194
|
-
ht init --
|
|
194
|
+
ht init --harnesses codex,claude-code,cursor
|
|
195
195
|
ht scan . # detect existing resources
|
|
196
196
|
ht resource list # review discovered resources
|
|
197
197
|
ht plugin list --search foundation --remote-only
|
|
@@ -203,13 +203,13 @@ ht status . # confirm the final state
|
|
|
203
203
|
|
|
204
204
|
## Concept model
|
|
205
205
|
|
|
206
|
-
HarnessTap keeps one library of **resources
|
|
206
|
+
HarnessTap keeps one library of **resources**: skills, rules, MCP servers, hooks, agents, commands. You group them into **plugins**. `ht apply <plugin>` (project) or `ht profile use <plugin>` (home) resolves the dependency graph and writes harness files. When two plugins disagree, the one closest to what you applied wins; genuine ambiguity is an error you fix with an override. An **environment** fills in the values a plugin needs: model, permissions, tokens by reference. Secrets are never stored in a plugin.
|
|
207
207
|
|
|
208
208
|
| Concept | Role |
|
|
209
209
|
| --- | --- |
|
|
210
210
|
| **Resource** | Atomic instruction, skill, rule, MCP, hook, etc. |
|
|
211
211
|
| **Plugin** | Versioned package of resources, optional dependencies, and a `needs` contract |
|
|
212
|
-
| **Environment** | Named *how* values (and secret refs)
|
|
212
|
+
| **Environment** | Named *how* values (and secret refs): prod, staging, personal |
|
|
213
213
|
| **Profile** | A plugin tagged for machine-wide switching (`ht work`, `profile use`) |
|
|
214
214
|
| **Workspace** | Local library at `~/.harnesstap` |
|
|
215
215
|
|
|
@@ -256,7 +256,7 @@ flowchart TB
|
|
|
256
256
|
|
|
257
257
|
## Catalog and Cloud
|
|
258
258
|
|
|
259
|
-
Starter plugins such as `engineering-foundation` live in the **HarnessTap Cloud** public catalog
|
|
259
|
+
Starter plugins such as `engineering-foundation` live in the **HarnessTap Cloud** public catalog: not inside the npm package. Bare names on `ht apply` resolve against that catalog (and any orgs you have connected).
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
262
|
ht plugin list --search foundation --remote-only
|
|
@@ -273,6 +273,8 @@ CLI and Desktop can send anonymous product analytics (install, Cloud connect, pl
|
|
|
273
273
|
|
|
274
274
|
Auth, orgs, pull, and publish: [HarnessTap Cloud](docs/cli/cloud.md).
|
|
275
275
|
|
|
276
|
+
Private GitHub marketplaces: `ht github login`.
|
|
277
|
+
|
|
276
278
|
---
|
|
277
279
|
|
|
278
280
|
## Supported harnesses
|
|
@@ -280,10 +282,19 @@ Auth, orgs, pull, and publish: [HarnessTap Cloud](docs/cli/cloud.md).
|
|
|
280
282
|
```bash
|
|
281
283
|
ht harness list
|
|
282
284
|
ht harness list --supported # native serializers only
|
|
283
|
-
ht harness set --
|
|
285
|
+
ht harness set --harnesses claude-code,cursor,codex
|
|
284
286
|
```
|
|
285
287
|
|
|
286
|
-
See the full matrix
|
|
288
|
+
See the full matrix (resource types, skill emission, plugin support, and paths) in **[Supported harnesses](docs/supported-harnesses.md)**.
|
|
289
|
+
|
|
290
|
+
Warp and Jules share the generic `.agents/skills/` / `AGENTS.md` layout with many other harnesses. A plain `~/.agents` directory is not evidence that either is installed.
|
|
291
|
+
|
|
292
|
+
| Harness | Distinctive markers |
|
|
293
|
+
| ------- | ------------------- |
|
|
294
|
+
| **warp** | `~/.warp` (home), `.warp/` (project) |
|
|
295
|
+
| **jules** | `~/.jules` or `~/JULES.md` (home), `JULES.md` (project) |
|
|
296
|
+
|
|
297
|
+
Skills and instructions still emit to the shared `.agents` paths when those harnesses are registered. Detection and apply targeting stay separate: global apply uses the registered set, not filesystem guesses.
|
|
287
298
|
|
|
288
299
|
---
|
|
289
300
|
|
|
@@ -297,13 +308,15 @@ Anonymous telemetry state (distinct id and first-run stamps) lives in `~/.harnes
|
|
|
297
308
|
|
|
298
309
|
`ht init` also checks registered home folders (e.g. `~/.claude/`, `~/.codex/`) and imports supported resources it finds.
|
|
299
310
|
|
|
300
|
-
Move a library between machines with `ht migrate export` / `import`. Older databases that cannot upgrade in place still open read-only for export
|
|
311
|
+
Move a library between machines with `ht migrate export` / `import`. Older databases that cannot upgrade in place still open read-only for export: see [machine migration](docs/scenarios/details/28-machine-migration.md).
|
|
312
|
+
|
|
313
|
+
GitHub session: `~/.harnesstap/github-session.json`.
|
|
301
314
|
|
|
302
315
|
---
|
|
303
316
|
|
|
304
317
|
## Next steps
|
|
305
318
|
|
|
306
|
-
| I want to
|
|
319
|
+
| I want to... | Start here |
|
|
307
320
|
| --- | --- |
|
|
308
321
|
| Learn every command | [CLI reference](docs/cli/command-reference.md) |
|
|
309
322
|
| Compose, doctor, or diff plugins | [Plugin concepts](docs/cli/concepts/plugins.md) · `ht plugin doctor` · `ht plugin from-project` |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleApplyCommand,
|
|
3
|
+
handleInstallCommand,
|
|
4
|
+
registerApplyCommand,
|
|
5
|
+
registerInstallCommand
|
|
6
|
+
} from "./chunk-63U7QWNY.js";
|
|
7
|
+
import "./chunk-SZNBUIDR.js";
|
|
8
|
+
import "./chunk-3RBYT7QN.js";
|
|
9
|
+
import "./chunk-BIBUCC2E.js";
|
|
10
|
+
import "./chunk-TYULB6ZY.js";
|
|
11
|
+
import "./chunk-VL7BGD47.js";
|
|
12
|
+
import "./chunk-MY62SSKC.js";
|
|
13
|
+
import "./chunk-4KNQZDZC.js";
|
|
14
|
+
import "./chunk-GRJY22U6.js";
|
|
15
|
+
import "./chunk-KDAV2GUT.js";
|
|
16
|
+
import "./chunk-J4CKQXQ6.js";
|
|
17
|
+
import "./chunk-IRU7NBOT.js";
|
|
18
|
+
import "./chunk-VZQG2JDV.js";
|
|
19
|
+
import "./chunk-VL2NWCZV.js";
|
|
20
|
+
import "./chunk-IBOABSIA.js";
|
|
21
|
+
import "./chunk-NJ7WRKIQ.js";
|
|
22
|
+
import "./chunk-KRI4R7EM.js";
|
|
23
|
+
import "./chunk-H6DVP2SI.js";
|
|
24
|
+
import "./chunk-EIWXS4RM.js";
|
|
25
|
+
import "./chunk-JKGSJGCC.js";
|
|
26
|
+
import "./chunk-KMWHZSEG.js";
|
|
27
|
+
import "./chunk-XGTTOO4R.js";
|
|
28
|
+
import "./chunk-37E5M4JX.js";
|
|
29
|
+
import "./chunk-JQOKQKQT.js";
|
|
30
|
+
import "./chunk-3FIWOI3H.js";
|
|
31
|
+
import "./chunk-CHQGE2HF.js";
|
|
32
|
+
import "./chunk-QO4LBDVI.js";
|
|
33
|
+
import "./chunk-KCQC7YBK.js";
|
|
34
|
+
import "./chunk-PXU2OS26.js";
|
|
35
|
+
import "./chunk-NAGAJ5UM.js";
|
|
36
|
+
import "./chunk-IK524ZDW.js";
|
|
37
|
+
import "./chunk-SY7G5QEI.js";
|
|
38
|
+
import "./chunk-XQFT4PEP.js";
|
|
39
|
+
import "./chunk-MWXA4PFE.js";
|
|
40
|
+
import "./chunk-3IZ7SEGT.js";
|
|
41
|
+
import "./chunk-I6XFZLTJ.js";
|
|
42
|
+
import "./chunk-7L2K4N25.js";
|
|
43
|
+
import "./chunk-JRFUTIEH.js";
|
|
44
|
+
import "./chunk-UJYFTXHV.js";
|
|
45
|
+
import "./chunk-3IWTJCPA.js";
|
|
46
|
+
import "./chunk-KDDXZBMC.js";
|
|
47
|
+
import "./chunk-HVVPTCKR.js";
|
|
48
|
+
import "./chunk-SPRVUATR.js";
|
|
49
|
+
import "./chunk-EWBCFAF3.js";
|
|
50
|
+
import "./chunk-2EIJYDNI.js";
|
|
51
|
+
import "./chunk-6BY4BV5G.js";
|
|
52
|
+
import "./chunk-GQKKX7OE.js";
|
|
53
|
+
import "./chunk-K2BPYEH5.js";
|
|
54
|
+
import "./chunk-G26HZZDJ.js";
|
|
55
|
+
import "./chunk-TQ2NA4Z4.js";
|
|
56
|
+
import "./chunk-DXKAKKLP.js";
|
|
57
|
+
import "./chunk-YDD3ES2K.js";
|
|
58
|
+
import "./chunk-ZY2MZ2KQ.js";
|
|
59
|
+
import "./chunk-VQVUJYYY.js";
|
|
60
|
+
import "./chunk-DWVAR4BP.js";
|
|
61
|
+
export {
|
|
62
|
+
handleApplyCommand,
|
|
63
|
+
handleInstallCommand,
|
|
64
|
+
registerApplyCommand,
|
|
65
|
+
registerInstallCommand
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=apply-2GRNKR5H.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buildExecutableTrustContext,
|
|
3
|
+
formatApproveRemedy,
|
|
4
|
+
installedTrustReports,
|
|
5
|
+
pendingRefs,
|
|
6
|
+
recommendRefs,
|
|
7
|
+
writeProjectExecutableGrant,
|
|
8
|
+
writeUserExecutableGrant
|
|
9
|
+
} from "./chunk-KDDXZBMC.js";
|
|
10
|
+
import "./chunk-HVVPTCKR.js";
|
|
11
|
+
import {
|
|
12
|
+
readLockfile
|
|
13
|
+
} from "./chunk-SPRVUATR.js";
|
|
14
|
+
import "./chunk-EWBCFAF3.js";
|
|
15
|
+
import "./chunk-2EIJYDNI.js";
|
|
16
|
+
import "./chunk-6BY4BV5G.js";
|
|
17
|
+
import "./chunk-GQKKX7OE.js";
|
|
18
|
+
import {
|
|
19
|
+
parseOutputFormat,
|
|
20
|
+
printJson
|
|
21
|
+
} from "./chunk-TQ2NA4Z4.js";
|
|
22
|
+
import {
|
|
23
|
+
fail,
|
|
24
|
+
formatCommand
|
|
25
|
+
} from "./chunk-DXKAKKLP.js";
|
|
26
|
+
import {
|
|
27
|
+
ui
|
|
28
|
+
} from "./chunk-YDD3ES2K.js";
|
|
29
|
+
import "./chunk-ZY2MZ2KQ.js";
|
|
30
|
+
import "./chunk-VQVUJYYY.js";
|
|
31
|
+
import "./chunk-DWVAR4BP.js";
|
|
32
|
+
|
|
33
|
+
// src/cli/commands/approve.ts
|
|
34
|
+
import { resolve } from "path";
|
|
35
|
+
function layerLabel(report) {
|
|
36
|
+
const deciding = report.decisions.filter((decision) => report.gatedTypes.includes(decision.type)).map((decision) => decision.layer);
|
|
37
|
+
return deciding[0] ?? "none";
|
|
38
|
+
}
|
|
39
|
+
function printReports(reports) {
|
|
40
|
+
if (reports.length === 0) {
|
|
41
|
+
ui.info("No installed dependency packages");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
for (const report of reports) {
|
|
45
|
+
const types = report.gatedTypes.length > 0 ? report.gatedTypes.join(", ") : "none";
|
|
46
|
+
ui.info(
|
|
47
|
+
`${report.ref} ${report.execStatus} ${types} layer ${layerLabel(report)}`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function exclusiveFlags(opts) {
|
|
52
|
+
return [
|
|
53
|
+
opts.pending ? "--pending" : void 0,
|
|
54
|
+
opts.all ? "--all" : void 0,
|
|
55
|
+
opts.recommended ? "--recommended" : void 0,
|
|
56
|
+
opts.list ? "--list" : void 0
|
|
57
|
+
].filter((value) => value !== void 0);
|
|
58
|
+
}
|
|
59
|
+
function handleApproveCommand(refs, opts) {
|
|
60
|
+
const format = parseOutputFormat(opts.format);
|
|
61
|
+
const projectRoot = resolve(opts.project ?? ".");
|
|
62
|
+
const flags = exclusiveFlags(opts);
|
|
63
|
+
if (flags.length > 1) {
|
|
64
|
+
process.exitCode = 1;
|
|
65
|
+
fail(`Use only one of ${flags.join(", ")}`);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const context = buildExecutableTrustContext({ projectRoot });
|
|
69
|
+
const lock = readLockfile(projectRoot);
|
|
70
|
+
const reports = installedTrustReports(context, { ...lock ? { lock } : {} });
|
|
71
|
+
if (opts.list) {
|
|
72
|
+
if (format === "json") {
|
|
73
|
+
printJson({ packages: reports });
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
printReports(reports);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (opts.pending) {
|
|
80
|
+
const pending = reports.filter((report) => report.execStatus === "gated_pending_approval");
|
|
81
|
+
if (format === "json") {
|
|
82
|
+
printJson({ pending: pending.map((report) => report.ref) });
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (pending.length === 0) {
|
|
86
|
+
ui.success("No packages awaiting approval");
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
for (const report of pending) {
|
|
90
|
+
ui.info(`${report.ref} ${report.gatedTypes.join(", ")}`);
|
|
91
|
+
}
|
|
92
|
+
ui.hint(formatApproveRemedy(pending.map((report) => report.ref)));
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
let targets = refs;
|
|
96
|
+
if (opts.all) {
|
|
97
|
+
targets = pendingRefs(reports);
|
|
98
|
+
if (targets.length === 0) {
|
|
99
|
+
ui.success("No packages awaiting approval");
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
} else if (opts.recommended) {
|
|
103
|
+
targets = recommendRefs(context.org);
|
|
104
|
+
if (targets.length === 0) {
|
|
105
|
+
ui.info("No org-recommended packages");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (targets.length === 0) {
|
|
110
|
+
process.exitCode = 1;
|
|
111
|
+
fail("Provide a package ref, or use --pending, --all, --recommended, or --list", {
|
|
112
|
+
hints: [formatCommand("approve --pending"), formatCommand("approve owner/repo")]
|
|
113
|
+
});
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (opts.user) {
|
|
117
|
+
writeUserExecutableGrant({ side: "allow", refs: targets });
|
|
118
|
+
} else {
|
|
119
|
+
writeProjectExecutableGrant({ projectRoot, side: "allow", refs: targets });
|
|
120
|
+
}
|
|
121
|
+
if (format === "json") {
|
|
122
|
+
printJson({
|
|
123
|
+
written: opts.user ? "user" : "project",
|
|
124
|
+
side: "allow",
|
|
125
|
+
refs: targets
|
|
126
|
+
});
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
ui.success(
|
|
130
|
+
`Approved ${targets.join(", ")} in ${opts.user ? "~/.harnesstap/config.jsonc" : "apm.yml"}`
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
function registerApproveCommand(root) {
|
|
134
|
+
root.command("approve").description("Approve executable primitives from dependency packages").argument("[PACKAGE_REF...]", "Packages to approve (owner/repo)").option("--project <path>", "Project directory", ".").option("--user", "Write ~/.harnesstap/config.jsonc instead of apm.yml").option("--pending", "List packages with unapproved executables").option("--all", "Approve all currently pending packages").option("--recommended", "Approve the org executables.recommend set").option("--list", "Show effective trust decision per installed package").option("--format <mode>", "Output format: human or json", "human").action((refs, opts) => {
|
|
135
|
+
handleApproveCommand(refs, opts);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function handleDenyCommand(refs, opts) {
|
|
139
|
+
const format = parseOutputFormat(opts.format);
|
|
140
|
+
const projectRoot = resolve(opts.project ?? ".");
|
|
141
|
+
if (opts.pending || opts.all || opts.recommended || opts.list) {
|
|
142
|
+
process.exitCode = 1;
|
|
143
|
+
fail("ht deny writes a deny grant; use ht approve --pending/--list to inspect");
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (refs.length === 0) {
|
|
147
|
+
process.exitCode = 1;
|
|
148
|
+
fail("Provide one or more package refs to deny", {
|
|
149
|
+
hints: [formatCommand("deny owner/repo"), formatCommand("deny --user owner/repo")]
|
|
150
|
+
});
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (opts.user) {
|
|
154
|
+
writeUserExecutableGrant({ side: "deny", refs });
|
|
155
|
+
} else {
|
|
156
|
+
writeProjectExecutableGrant({ projectRoot, side: "deny", refs });
|
|
157
|
+
}
|
|
158
|
+
if (format === "json") {
|
|
159
|
+
printJson({
|
|
160
|
+
written: opts.user ? "user" : "project",
|
|
161
|
+
side: "deny",
|
|
162
|
+
refs
|
|
163
|
+
});
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
ui.success(
|
|
167
|
+
`Denied ${refs.join(", ")} in ${opts.user ? "~/.harnesstap/config.jsonc" : "apm.yml"}`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
function registerDenyCommand(root) {
|
|
171
|
+
root.command("deny").description("Deny executable primitives from dependency packages").argument("[PACKAGE_REF...]", "Packages to deny (owner/repo)").option("--project <path>", "Project directory", ".").option("--user", "Write ~/.harnesstap/config.jsonc instead of apm.yml").option("--format <mode>", "Output format: human or json", "human").action((refs, opts) => {
|
|
172
|
+
handleDenyCommand(refs, opts);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
export {
|
|
176
|
+
handleApproveCommand,
|
|
177
|
+
handleDenyCommand,
|
|
178
|
+
registerApproveCommand,
|
|
179
|
+
registerDenyCommand
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=approve-KQNCNH2R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/commands/approve.ts"],"sourcesContent":["import type { Command } from \"commander\";\nimport { resolve } from \"node:path\";\nimport {\n buildExecutableTrustContext,\n formatApproveRemedy,\n installedTrustReports,\n pendingRefs,\n recommendRefs,\n writeProjectExecutableGrant,\n writeUserExecutableGrant,\n type PackageTrustReport,\n} from \"../../services/executable-trust.js\";\nimport { readLockfile } from \"../../services/lockfile.js\";\nimport { parseOutputFormat, printJson } from \"../../utils/output-format.js\";\nimport { ui } from \"../../ui/index.js\";\nimport {\n fail,\n formatCommand,\n} from \"../shared.js\";\n\nexport interface ApproveCommandOpts {\n project?: string;\n user?: boolean;\n pending?: boolean;\n all?: boolean;\n recommended?: boolean;\n list?: boolean;\n format?: string;\n}\n\nfunction layerLabel(report: PackageTrustReport): string {\n const deciding = report.decisions\n .filter((decision) => report.gatedTypes.includes(decision.type))\n .map((decision) => decision.layer);\n return deciding[0] ?? \"none\";\n}\n\nfunction printReports(reports: PackageTrustReport[]): void {\n if (reports.length === 0) {\n ui.info(\"No installed dependency packages\");\n return;\n }\n for (const report of reports) {\n const types = report.gatedTypes.length > 0 ? report.gatedTypes.join(\", \") : \"none\";\n ui.info(\n `${report.ref} ${report.execStatus} ${types} layer ${layerLabel(report)}`,\n );\n }\n}\n\nfunction exclusiveFlags(opts: ApproveCommandOpts): string[] {\n return [\n opts.pending ? \"--pending\" : undefined,\n opts.all ? \"--all\" : undefined,\n opts.recommended ? \"--recommended\" : undefined,\n opts.list ? \"--list\" : undefined,\n ].filter((value): value is string => value !== undefined);\n}\n\nexport function handleApproveCommand(refs: string[], opts: ApproveCommandOpts): void {\n const format = parseOutputFormat(opts.format);\n const projectRoot = resolve(opts.project ?? \".\");\n const flags = exclusiveFlags(opts);\n if (flags.length > 1) {\n process.exitCode = 1;\n fail(`Use only one of ${flags.join(\", \")}`);\n return;\n }\n\n const context = buildExecutableTrustContext({ projectRoot });\n const lock = readLockfile(projectRoot);\n const reports = installedTrustReports(context, { ...(lock ? { lock } : {}) });\n\n if (opts.list) {\n if (format === \"json\") {\n printJson({ packages: reports });\n return;\n }\n printReports(reports);\n return;\n }\n\n if (opts.pending) {\n const pending = reports.filter((report) => report.execStatus === \"gated_pending_approval\");\n if (format === \"json\") {\n printJson({ pending: pending.map((report) => report.ref) });\n return;\n }\n if (pending.length === 0) {\n ui.success(\"No packages awaiting approval\");\n return;\n }\n for (const report of pending) {\n ui.info(`${report.ref} ${report.gatedTypes.join(\", \")}`);\n }\n ui.hint(formatApproveRemedy(pending.map((report) => report.ref)));\n return;\n }\n\n let targets = refs;\n if (opts.all) {\n targets = pendingRefs(reports);\n if (targets.length === 0) {\n ui.success(\"No packages awaiting approval\");\n return;\n }\n } else if (opts.recommended) {\n targets = recommendRefs(context.org);\n if (targets.length === 0) {\n ui.info(\"No org-recommended packages\");\n return;\n }\n }\n\n if (targets.length === 0) {\n process.exitCode = 1;\n fail(\"Provide a package ref, or use --pending, --all, --recommended, or --list\", {\n hints: [formatCommand(\"approve --pending\"), formatCommand(\"approve owner/repo\")],\n });\n return;\n }\n\n if (opts.user) {\n writeUserExecutableGrant({ side: \"allow\", refs: targets });\n } else {\n writeProjectExecutableGrant({ projectRoot, side: \"allow\", refs: targets });\n }\n\n if (format === \"json\") {\n printJson({\n written: opts.user ? \"user\" : \"project\",\n side: \"allow\",\n refs: targets,\n });\n return;\n }\n ui.success(\n `Approved ${targets.join(\", \")} in ${opts.user ? \"~/.harnesstap/config.jsonc\" : \"apm.yml\"}`,\n );\n}\n\nexport function registerApproveCommand(root: Command): void {\n root\n .command(\"approve\")\n .description(\"Approve executable primitives from dependency packages\")\n .argument(\"[PACKAGE_REF...]\", \"Packages to approve (owner/repo)\")\n .option(\"--project <path>\", \"Project directory\", \".\")\n .option(\"--user\", \"Write ~/.harnesstap/config.jsonc instead of apm.yml\")\n .option(\"--pending\", \"List packages with unapproved executables\")\n .option(\"--all\", \"Approve all currently pending packages\")\n .option(\"--recommended\", \"Approve the org executables.recommend set\")\n .option(\"--list\", \"Show effective trust decision per installed package\")\n .option(\"--format <mode>\", \"Output format: human or json\", \"human\")\n .action((refs: string[], opts: ApproveCommandOpts) => {\n handleApproveCommand(refs, opts);\n });\n}\n\nexport function handleDenyCommand(refs: string[], opts: ApproveCommandOpts): void {\n const format = parseOutputFormat(opts.format);\n const projectRoot = resolve(opts.project ?? \".\");\n if (opts.pending || opts.all || opts.recommended || opts.list) {\n process.exitCode = 1;\n fail(\"ht deny writes a deny grant; use ht approve --pending/--list to inspect\");\n return;\n }\n if (refs.length === 0) {\n process.exitCode = 1;\n fail(\"Provide one or more package refs to deny\", {\n hints: [formatCommand(\"deny owner/repo\"), formatCommand(\"deny --user owner/repo\")],\n });\n return;\n }\n\n if (opts.user) {\n writeUserExecutableGrant({ side: \"deny\", refs });\n } else {\n writeProjectExecutableGrant({ projectRoot, side: \"deny\", refs });\n }\n\n if (format === \"json\") {\n printJson({\n written: opts.user ? \"user\" : \"project\",\n side: \"deny\",\n refs,\n });\n return;\n }\n ui.success(\n `Denied ${refs.join(\", \")} in ${opts.user ? \"~/.harnesstap/config.jsonc\" : \"apm.yml\"}`,\n );\n}\n\nexport function registerDenyCommand(root: Command): void {\n root\n .command(\"deny\")\n .description(\"Deny executable primitives from dependency packages\")\n .argument(\"[PACKAGE_REF...]\", \"Packages to deny (owner/repo)\")\n .option(\"--project <path>\", \"Project directory\", \".\")\n .option(\"--user\", \"Write ~/.harnesstap/config.jsonc instead of apm.yml\")\n .option(\"--format <mode>\", \"Output format: human or json\", \"human\")\n .action((refs: string[], opts: ApproveCommandOpts) => {\n handleDenyCommand(refs, opts);\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,eAAe;AA6BxB,SAAS,WAAW,QAAoC;AACtD,QAAM,WAAW,OAAO,UACrB,OAAO,CAAC,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