@hoardodile/cli 0.0.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/LICENSE +18 -0
- package/README.md +37 -0
- package/bin/hoardodile.mjs +7 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.js +1684 -0
- package/dist/main.js.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wooloo <ayan0312000@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @hoardodile/cli
|
|
2
|
+
|
|
3
|
+
The hoardodile developer CLI — one command for building, testing and
|
|
4
|
+
benchmarking content plugins against the real host implementation:
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
hoardodile plugin create # scaffold a new plugin (via create-hoardodile-plugin)
|
|
8
|
+
hoardodile plugin build # build a plugin into dist/ (--watch to rebuild)
|
|
9
|
+
hoardodile plugin run detect . # run a hook through the capability sandbox
|
|
10
|
+
hoardodile plugin bench detect . # measure hook latency, compare vs a baseline
|
|
11
|
+
hoardodile plugin dev # watch-build + workbench at http://127.0.0.1:5199
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`run`/`bench` execute hooks through `@hoardodile/host`'s capability
|
|
15
|
+
sandbox (restricted child process + module policy), hook strategy and
|
|
16
|
+
real probe implementations — the exact execution path
|
|
17
|
+
the server uses — so what you test is what runs in production.
|
|
18
|
+
`bench` writes JSON reports (machine fingerprint, peak RSS, warmup
|
|
19
|
+
count); `--warmup N` tunes the discarded warmup runs, `--compare`
|
|
20
|
+
exits 1 on regression and warns when the baseline came from another
|
|
21
|
+
machine.
|
|
22
|
+
|
|
23
|
+
`hoardodile plugin create` is a facade over
|
|
24
|
+
`create-hoardodile-plugin` (which stays a separate package for npm's
|
|
25
|
+
`create-*` convention): it runs the scaffolder via `pnpm dlx` and
|
|
26
|
+
forwards `<name>` / `--tarballs <dir>`.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm add -D @hoardodile/cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Licensing
|
|
35
|
+
|
|
36
|
+
MIT. Terminal dev tooling — not part of the SDK closure and never
|
|
37
|
+
imported by plugin code.
|