@arhen/pi-toolset 1.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 +22 -0
- package/README.md +19 -0
- package/package.json +16 -0
- package/pi-toolset +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 minimalist-subagents contributors
|
|
4
|
+
Forked from @ghoulm370/pi-subagent-ui (MIT, Copyright (c) 2026 ghoulm370)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @arhen/pi — minimalist pi packages
|
|
2
|
+
|
|
3
|
+
Minimalist [pi coding agent](https://github.com/earendil-works/pi) extensions that just solve problems. One package, one problem. No config surfaces, minimal context footprint.
|
|
4
|
+
|
|
5
|
+
## Install / update / remove the whole family
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pi-toolset install # install every @arhen/pi-* package (discovered live from npm)
|
|
9
|
+
pi-toolset update # update all installed ones
|
|
10
|
+
pi-toolset remove # remove all installed ones
|
|
11
|
+
pi-toolset list # list the family
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The family is discovered from the npm registry at runtime — adding a new package needs no changes here. (Script: `pi-toolset` in this repo.)
|
|
15
|
+
|
|
16
|
+
## Browse the family
|
|
17
|
+
|
|
18
|
+
- npm: [search @arhen/pi](https://www.npmjs.com/search?q=%40arhen%2Fpi)
|
|
19
|
+
- GitHub: [repos starting with pi](https://github.com/arhen?tab=repositories&q=pi)
|
package/package.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arhen/pi-toolset",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Manage all @arhen/pi-* extensions dynamically: install the core set, add additional ones, update, remove.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bin": {
|
|
8
|
+
"pi-toolset": "./pi-toolset"
|
|
9
|
+
},
|
|
10
|
+
"files": ["pi-toolset", "README.md", "LICENSE"],
|
|
11
|
+
"keywords": ["pi", "pi-coding-agent", "toolset", "extension-manager"],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/pi-toolset
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# pi-toolset — manage all @arhen/pi-* extensions dynamically.
|
|
3
|
+
# Discovers the family from the npm registry at runtime (never a static list):
|
|
4
|
+
# pi-toolset install install every @arhen/pi-* package
|
|
5
|
+
# pi-toolset update update every installed @arhen/pi-* package
|
|
6
|
+
# pi-toolset remove remove every installed @arhen/pi-* package
|
|
7
|
+
# pi-toolset list list the family
|
|
8
|
+
set -euo pipefail
|
|
9
|
+
|
|
10
|
+
SCOPE="@arhen"
|
|
11
|
+
PREFIX="pi-"
|
|
12
|
+
|
|
13
|
+
family() {
|
|
14
|
+
npm search --json "${SCOPE}" 2>/dev/null | python3 -c "
|
|
15
|
+
import json, sys
|
|
16
|
+
for r in json.load(sys.stdin):
|
|
17
|
+
name = r['name']
|
|
18
|
+
if name.startswith('$SCOPE/$PREFIX') and not name.endswith('toolset'):
|
|
19
|
+
print(name)
|
|
20
|
+
"
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
installed() {
|
|
24
|
+
pi list 2>/dev/null | grep -o "npm:${SCOPE}/${PREFIX}[a-z0-9-]*" | sed 's/^npm://' || true
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
case "${1:-}" in
|
|
28
|
+
install)
|
|
29
|
+
for p in $(family); do
|
|
30
|
+
echo "→ pi install npm:${p}"
|
|
31
|
+
pi install "npm:${p}"
|
|
32
|
+
done
|
|
33
|
+
;;
|
|
34
|
+
update)
|
|
35
|
+
for p in $(installed); do
|
|
36
|
+
echo "→ pi update npm:${p}"
|
|
37
|
+
pi update "npm:${p}"
|
|
38
|
+
done
|
|
39
|
+
;;
|
|
40
|
+
remove)
|
|
41
|
+
for p in $(installed); do
|
|
42
|
+
echo "→ pi remove npm:${p}"
|
|
43
|
+
pi remove "npm:${p}"
|
|
44
|
+
done
|
|
45
|
+
;;
|
|
46
|
+
list)
|
|
47
|
+
family
|
|
48
|
+
;;
|
|
49
|
+
*)
|
|
50
|
+
echo "usage: pi-toolset {install|update|remove|list}" >&2
|
|
51
|
+
exit 1
|
|
52
|
+
;;
|
|
53
|
+
esac
|