aitable-workflow-cli 0.1.19 → 0.1.20-beta.1787822136094
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/dist/cli.js +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -90,4 +90,4 @@ ${l} Agent: ${a.agent}`),console.log(` Server: ${a.serverUrl}`),console.l
|
|
|
90
90
|
\u72B6\u6001\u6587\u4EF6: ${o}`),i&&!r.refresh&&(i.phase==="publish_pending"||i.phase==="version_created")&&console.log(" \u63D0\u793A: \u52A0 --refresh \u5B9E\u65F6\u67E5\u8BE2\u5BA1\u6279\u72B6\u6001\u4E0E\u5019\u9009\u3002"),i?0:1}c(_r,"runStatus");function Qt(r){return r instanceof Zt?`${r.message}\uFF08${r.guidance}\uFF09`:r instanceof Error?r.message:String(r)}c(Qt,"describeError");async function Or(r,e,t,n){let o=e.scope??"robot";if(o!=="robot"&&o!=="app")return console.error(`\u274C --scope \u53EA\u652F\u6301 robot | app\uFF0C\u6536\u5230: ${o}`),1;let i=e.unifiedAppId?.trim();if(!i){let d=we.dirname(await Be(e.config??t.defaultConfig)),g=e.stateFile??Fe(d);if(i=(await en(g))?.unifiedAppId??void 0,!i)return console.error(`\u274C \u65E0\u6CD5\u786E\u5B9A\u76EE\u6807\u5E94\u7528\uFF1A\u72B6\u6001\u6587\u4EF6\u65E0 unifiedAppId\uFF08${g}\uFF09\uFF0C\u8BF7\u7528 --unified-app-id \u663E\u5F0F\u6307\u5B9A\u3002`),1}let s=r==="disable"?"\u505C\u7528":"\u542F\u7528",a=n.createRunner?.()??new Me,l=o==="app"?"\u6574\u4E2A\u5E94\u7528":"\u673A\u5668\u4EBA\u80FD\u529B";return console.log(`\u{1F916} ${s}${l}\uFF08unifiedAppId=${i}\uFF09`),o==="app"&&r==="disable"&&console.log("\u2139 --scope app \u4F1A\u505C\u7528\u6574\u4E2A\u5E94\u7528\uFF08\u673A\u5668\u4EBA/\u7F51\u9875\u5E94\u7528\u7B49\u5168\u90E8\u4E0D\u53EF\u7528\uFF09\uFF1B\u53EA\u60F3\u505C\u673A\u5668\u4EBA\u7528\u9ED8\u8BA4 --scope robot\u3002"),await{disable:{robot:a.disableRobot.bind(a),app:a.disableApp.bind(a)},enable:{robot:a.enableRobot.bind(a),app:a.enableApp.bind(a)}}[r][o](i),console.log(`
|
|
91
91
|
\u2705 \u5DF2${s}${l}\u3002`),r==="disable"&&(console.log(` \u6062\u590D: ${o==="app"?"aitable-workflow bot enable --scope app":"aitable-workflow bot enable"}\uFF08\u542F\u505C\u53EF\u9006\uFF1B.env \u51ED\u636E\u4E0E\u72B6\u6001\u6587\u4EF6\u4E0D\u53D7\u5F71\u54CD\uFF09`),console.log(" \u26A0\uFE0F \u505C\u7528\u540E Stream \u5EFA\u8054/\u6D88\u606F\u6536\u53D1\u4F1A\u5931\u8D25\uFF1B\u8FD0\u884C\u4E2D\u7684\u5F15\u64CE\u4F1A\u6301\u7EED\u62A5\u9519\u76F4\u5230\u6062\u590D\u3002")),0}c(Or,"runToggle");function Le(r){if(r instanceof Zt)Xt.error("cli","bot \u547D\u4EE4\u5931\u8D25",{kind:r.kind}),console.error(`
|
|
92
92
|
\u274C ${r.message}`),console.error(` \u21B3 ${r.guidance}`);else{let e=r instanceof Error?r.message:String(r);Xt.error("cli","bot \u547D\u4EE4\u5931\u8D25",{error:e}),console.error(`
|
|
93
|
-
\u274C ${e}`)}}c(Le,"failWithDiagnostics");var sn=rn.dirname(Br(import.meta.url));on({override:!1,quiet:!0});on({path:rn.resolve(sn,"..",".env"),override:!1,quiet:!0});var an=Ve(),Ue=ke(an),Ur=Ye(an);Fr({version:Ue});var f=new Lr().name("aitable-workflow").description("\u901A\u7528\u4E1A\u52A1\u6D41\u7A0B\u5F15\u64CE \u2014 \u914D\u7F6E\u9A71\u52A8\u7684 AI \u8868\u683C\u5DE5\u4F5C\u6D41\u81EA\u52A8\u5316").version(Ue).enablePositionalOptions().option("-d, --debug","\u8F93\u51FA debug \u7EA7\u522B\u65E5\u5FD7\uFF08\u542B recipe \u5185\u90E8 log\uFF09\uFF1B\u9700\u5199\u5728\u547D\u4EE4\u540D\u4E4B\u524D").hook("preAction",
|
|
93
|
+
\u274C ${e}`)}}c(Le,"failWithDiagnostics");var sn=rn.dirname(Br(import.meta.url));on({override:!1,quiet:!0});on({path:rn.resolve(sn,"..",".env"),override:!1,quiet:!0});var an=Ve(),Ue=ke(an),Ur=Ye(an);Fr({version:Ue});var f=new Lr().name("aitable-workflow").description("\u901A\u7528\u4E1A\u52A1\u6D41\u7A0B\u5F15\u64CE \u2014 \u914D\u7F6E\u9A71\u52A8\u7684 AI \u8868\u683C\u5DE5\u4F5C\u6D41\u81EA\u52A8\u5316").version(Ue).enablePositionalOptions().option("-d, --debug","\u8F93\u51FA debug \u7EA7\u522B\u65E5\u5FD7\uFF08\u542B recipe \u5185\u90E8 log\uFF09\uFF1B\u9700\u5199\u5728\u547D\u4EE4\u540D\u4E4B\u524D").hook("preAction",(r,e)=>{r.opts().debug?nn.setLevel("debug"):(e.name()==="config"||e.parent?.name()==="config")&&nn.setLevel("warn")}).hook("preAction",async(r,e)=>{e.name()!=="init"&&await Mr()}),h={cliDir:sn,version:Ue,packageVersions:Ur,defaultConfig:Je};ze(f,h);Xe(f,h);Qe(f,h);tt(f,h);rt(f,h);st(f,h);lt(f,h);mt(f,h);Ne(f,h);pt(f,h);dt(f,h);gt(f,h);ft(f,h);Wt(f,h);Gt(f,h);Kt(f,h);Nt(f,h);Vt(f,h);Jt(f,h);zt(f,h);tn(f,h);await f.parseAsync();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aitable-workflow-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20-beta.1787822136094",
|
|
4
4
|
"description": "aitable-workflow 命令行工具(cli):init/design/setup/run/serve 等命令;含 relay 本地反连客户端与 daemon 进程管理。bin: aitable-workflow。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"aitable-workflow-core": "0.1.
|
|
23
|
-
"aitable-workflow-server": "0.1.
|
|
22
|
+
"aitable-workflow-core": "0.1.20-beta.1787822136094",
|
|
23
|
+
"aitable-workflow-server": "0.1.20-beta.1787822136094",
|
|
24
24
|
"@inquirer/prompts": "^8.5.2",
|
|
25
25
|
"commander": "^14.0.2",
|
|
26
26
|
"dotenv": "^17.4.2",
|