paintress 0.3.0 → 0.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 +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/cli.js +5 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ You are an agent asked to install paintress on this machine. Work through the st
|
|
|
128
128
|
Rules:
|
|
129
129
|
|
|
130
130
|
- **Any hit means reuse.** Do not install again; go to step 2.
|
|
131
|
-
- Report the resolved path and version
|
|
131
|
+
- Report the resolved path and version: `paintress --version` prints the package version (or `npm ls -g --depth=0 paintress`).
|
|
132
132
|
- Only when every check is empty do you install (step 1).
|
|
133
133
|
|
|
134
134
|
If the install succeeded but `command -v paintress` still finds nothing (some version managers need a new shell), call it by full path — do not install a second copy:
|
package/README.zh-CN.md
CHANGED
|
@@ -128,7 +128,7 @@ MIT
|
|
|
128
128
|
规则:
|
|
129
129
|
|
|
130
130
|
- **命中任意一项就复用**,不要重装,直接进入第 2 步。
|
|
131
|
-
-
|
|
131
|
+
- 向用户报告解析到的路径与版本:`paintress --version` 打印包版本(或用 `npm ls -g --depth=0 paintress`)。
|
|
132
132
|
- 只有在全部检查都为空时,才执行第 1 步。
|
|
133
133
|
|
|
134
134
|
如果安装成功但 `command -v paintress` 仍然找不到(某些版本管理器需要新开 shell),用完整路径调用,**不要因此再装一份**:
|
package/dist/cli.js
CHANGED
|
@@ -1213,9 +1213,13 @@ async function call(tool, args) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
/** 入口:返回退出码(可单测) */
|
|
1215
1215
|
async function main(argv) {
|
|
1216
|
+
if (argv[0] === "--version" || argv[0] === "-v" || argv[0] === "version") {
|
|
1217
|
+
console.log(`paintress ${VERSION}`);
|
|
1218
|
+
return 0;
|
|
1219
|
+
}
|
|
1216
1220
|
const parsed = parseArgv(argv);
|
|
1217
1221
|
if (!parsed) {
|
|
1218
|
-
console.error("用法:paintress <mcp|web|ping|status|watch|unwatch|attach|stop|info|query|get|update|insert|delete|move|batch|render|shot|validate|install|doctor|mcp-config>
|
|
1222
|
+
console.error("用法:paintress <mcp|web|ping|status|watch|unwatch|attach|stop|info|query|get|update|insert|delete|move|batch|render|shot|validate|install|doctor|mcp-config> ...(版本:paintress --version)");
|
|
1219
1223
|
return 2;
|
|
1220
1224
|
}
|
|
1221
1225
|
const { cmd, positionals, flags } = parsed;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paintress",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Design-document operation layer for AI agents: read, query, edit, render",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"bin": {
|
|
25
|
-
"paintress": "
|
|
25
|
+
"paintress": "dist/cli.js"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|