@falling-ts/pi-start-command 1.0.0 → 1.1.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 (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -54,6 +54,19 @@ $env:PI_START_COMMAND_QUIET = "1"
54
54
  - 成功:`[start-command] "git fetch --all --quiet" exit=0 812ms`
55
55
  - 失败:`[start-command] "npm test" exit=1 4503ms stdout=… stderr=…`
56
56
 
57
+ ## pi 包规范
58
+
59
+ - `package.json` 用 `pi.extensions` 显式声明入口;
60
+ - 宿主包 `@earendil-works/pi-coding-agent` 只出现在 `peerDependencies`(`">=1.3.0"`,即不低于上游最新发布),**不得**放进 `dependencies`;
61
+ - `keywords` 含 `pi-package`,满足 [Pi 包画廊](https://pi.dev/packages) 收录条件。
62
+
63
+ 发布为 **scoped 包** `@falling-ts/pi-start-command`,公开包需带 `publishConfig.access: "public"`。
64
+ 发布命令(本机默认 registry 是淘宝镜像,必须显式指定 npmjs):
65
+
66
+ ```bash
67
+ npm publish --registry=https://registry.npmjs.org/
68
+ ```
69
+
57
70
  ## License
58
71
 
59
72
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@falling-ts/pi-start-command",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "会话开始前运行一条配置好的启动命令(PI_START_COMMAND)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,6 +37,6 @@
37
37
  "LICENSE"
38
38
  ],
39
39
  "peerDependencies": {
40
- "@earendil-works/pi-coding-agent": "*"
40
+ "@earendil-works/pi-coding-agent": ">=1.3.0"
41
41
  }
42
42
  }