bestony-pi-preset 0.0.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 ADDED
@@ -0,0 +1,130 @@
1
+ # bestony-pi-preset
2
+
3
+ Bestony 的 [Pi](https://pi.dev) coding agent preset。
4
+
5
+ 通过 Pi Package 打包并分发个人常用的 **extensions / skills / prompts / themes**,安装后即可在 Pi 中自动加载。
6
+
7
+ > **Security:** Pi packages 拥有完整系统权限。Extensions 可执行任意代码,skills 可指示模型执行任意操作。安装第三方包前请先审阅源码。
8
+
9
+ ## 安装
10
+
11
+ ```bash
12
+ # 从本地路径安装(开发中)
13
+ pi install /absolute/path/to/bestony-pi
14
+ pi install ./relative/path/to/bestony-pi
15
+
16
+ # 从 git 安装(发布后)
17
+ pi install git:github.com/bestony/bestony-pi
18
+ pi install https://github.com/bestony/bestony-pi
19
+
20
+ # 从 npm 安装(发布后)
21
+ pi install npm:bestony-pi-preset
22
+ ```
23
+
24
+ 仅当前会话试用(不写入 settings):
25
+
26
+ ```bash
27
+ pi -e /path/to/bestony-pi
28
+ pi -e git:github.com/bestony/bestony-pi
29
+ ```
30
+
31
+ 安装到项目级(写入 `.pi/settings.json`,可团队共享):
32
+
33
+ ```bash
34
+ pi install -l /path/to/bestony-pi
35
+ ```
36
+
37
+ ## 卸载 / 管理
38
+
39
+ ```bash
40
+ pi remove npm:bestony-pi-preset # 或对应 source
41
+ pi list
42
+ pi update --extensions
43
+ pi config # 启用/禁用具体资源
44
+ ```
45
+
46
+ ## 包结构
47
+
48
+ ```
49
+ bestony-pi/
50
+ ├── package.json # pi manifest + pi-package keyword
51
+ ├── README.md
52
+ ├── extensions/ # .ts / .js 扩展
53
+ ├── skills/ # SKILL.md 技能目录
54
+ ├── prompts/ # .md 提示词模板
55
+ └── themes/ # .json 主题
56
+ ```
57
+
58
+ `package.json` 中的 `pi` 字段声明资源路径:
59
+
60
+ ```json
61
+ {
62
+ "name": "bestony-pi-preset",
63
+ "keywords": ["pi-package"],
64
+ "pi": {
65
+ "extensions": ["./extensions"],
66
+ "skills": ["./skills"],
67
+ "prompts": ["./prompts"],
68
+ "themes": ["./themes"]
69
+ }
70
+ }
71
+ ```
72
+
73
+ 路径相对于包根目录;数组支持 glob 与 `!exclusions`。
74
+
75
+ 若省略 `pi` manifest,Pi 会从同名约定目录自动发现资源。
76
+
77
+ ## 开发
78
+
79
+ 1. 在对应目录添加资源:
80
+ - `extensions/*.ts` — 扩展
81
+ - `skills/<name>/SKILL.md` — 技能
82
+ - `prompts/*.md` — 提示词
83
+ - `themes/*.json` — 主题
84
+ 2. 本地加载验证:
85
+
86
+ ```bash
87
+ pi -e .
88
+ # 或
89
+ pi install .
90
+ ```
91
+
92
+ 3. 用 `pi config` 检查资源是否被加载。
93
+
94
+ ### 依赖约定
95
+
96
+ - 运行时第三方依赖放在 `dependencies`(`pi install` 会执行 `npm install`)
97
+ - 若 import Pi 核心包,放入 `peerDependencies` 且版本为 `"*"`,不要打包:
98
+ - `@earendil-works/pi-ai`
99
+ - `@earendil-works/pi-agent-core`
100
+ - `@earendil-works/pi-coding-agent`
101
+ - `@earendil-works/pi-tui`
102
+ - `typebox`
103
+
104
+ ## 内置依赖(bundled pi packages)
105
+
106
+ 安装本 preset 时会一并带上下列 Pi 包,并自动加载其 extensions / skills:
107
+
108
+ | 包 | 提供 |
109
+ |----|------|
110
+ | [pi-web-access](https://www.npmjs.com/package/pi-web-access) | Web 搜索 / URL 抓取 / GitHub / YouTube 等扩展 + librarian skill |
111
+ | [pi-init](https://www.npmjs.com/package/pi-init) | `init` skill(生成/更新 AGENTS.md) |
112
+ | [pi-xai](https://www.npmjs.com/package/pi-xai) | xAI Grok Build provider / Responses API |
113
+ | [pi-mcp-adapter](https://www.npmjs.com/package/pi-mcp-adapter) | MCP 协议适配扩展 |
114
+ | [pi-cache-optimizer](https://www.npmjs.com/package/pi-cache-optimizer) | Prompt/KV cache 命中优化 |
115
+ | [@tintinweb/pi-subagents](https://www.npmjs.com/package/@tintinweb/pi-subagents) | Claude Code 风格的自主 sub-agents |
116
+
117
+ 它们声明在 `dependencies` + `bundledDependencies` 中,资源通过 `pi.extensions` / `pi.skills` 的 `node_modules/...` 路径引用。
118
+
119
+ ## 当前本地资源
120
+
121
+ | 类型 | 状态 |
122
+ |------|------|
123
+ | Extensions | 待添加(`./extensions`) |
124
+ | Skills | 待添加(`./skills`) |
125
+ | Prompts | 待添加(`./prompts`) |
126
+ | Themes | 待添加(`./themes`) |
127
+
128
+ ## License
129
+
130
+ MIT
File without changes
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "bestony-pi-preset",
3
+ "version": "0.0.1",
4
+ "description": "Bestony's personal Pi coding agent preset — skills, extensions, prompts, and themes.",
5
+ "license": "MIT",
6
+ "author": "bestony",
7
+ "type": "module",
8
+ "keywords": [
9
+ "pi-package",
10
+ "pi",
11
+ "pi-agent",
12
+ "preset",
13
+ "skills",
14
+ "extensions",
15
+ "prompts",
16
+ "themes"
17
+ ],
18
+ "files": [
19
+ "extensions",
20
+ "skills",
21
+ "prompts",
22
+ "themes",
23
+ "README.md"
24
+ ],
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/bestony/bestony-pi.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/bestony/bestony-pi/issues"
31
+ },
32
+ "homepage": "https://github.com/bestony/bestony-pi#readme",
33
+ "dependencies": {
34
+ "@tintinweb/pi-subagents": "^0.14.1",
35
+ "pi-cache-optimizer": "^2.6.17",
36
+ "pi-init": "^1.0.0",
37
+ "pi-mcp-adapter": "^2.11.0",
38
+ "pi-web-access": "^0.13.0",
39
+ "pi-xai": "^0.15.1"
40
+ },
41
+ "bundledDependencies": [
42
+ "@tintinweb/pi-subagents",
43
+ "pi-cache-optimizer",
44
+ "pi-init",
45
+ "pi-mcp-adapter",
46
+ "pi-web-access",
47
+ "pi-xai"
48
+ ],
49
+ "pi": {
50
+ "extensions": [
51
+ "./extensions",
52
+ "node_modules/pi-web-access/index.ts",
53
+ "node_modules/pi-xai/index.ts",
54
+ "node_modules/pi-mcp-adapter/index.ts",
55
+ "node_modules/pi-cache-optimizer/index.ts",
56
+ "node_modules/@tintinweb/pi-subagents/src/index.ts"
57
+ ],
58
+ "skills": [
59
+ "./skills",
60
+ "node_modules/pi-web-access/skills",
61
+ "node_modules/pi-init/skills/init/SKILL.md"
62
+ ],
63
+ "prompts": ["./prompts"],
64
+ "themes": ["./themes"]
65
+ }
66
+ }
File without changes
File without changes
File without changes