@plume-canvas/server 0.1.8 → 0.1.9
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 +2 -2
package/dist/cli.js
CHANGED
|
@@ -69,7 +69,7 @@ pnpm build</code></pre>
|
|
|
69
69
|
POST /api/jobs \xB7 GET /api/jobs/:id \xB7 POST /api/jobs/:id/cancel \u4EFB\u52A1\u4E0B\u5355 / \u67E5\u5355 / \u64A4\u5355
|
|
70
70
|
GET /api/history \u751F\u6210\u5386\u53F2\uFF08\u5206\u9875 + \u6C47\u603B\uFF09
|
|
71
71
|
GET /plugin-manifest.json \u5916\u90E8\u63D2\u4EF6\u6E05\u5355
|
|
72
|
-
`;async function of(n){let e=n.slice(2),t,r={port:Number(process.env.PLUME_PORT??"")||Xn,portExplicit:!1,dir:er,hostname:"127.0.0.1",open:!1,offline:!1,mcp:!0,noAdminAuth:!1,trustedHosts:[],trustedOrigins:[]};for(let s=0;s<e.length;s++){let o=e[s],i=a=>{let c=e[++s];if(c===void 0||c.startsWith("-"))throw new Error(`${a} \u540E\u9762\u7F3A\u5C11\u503C`);return c};if(o!=="serve")if(o==="-p"||o==="--port"){let a=Number(i(o));if(!Number.isInteger(a)||a<0||a>65535)throw new Error(`\u7AEF\u53E3\u4E0D\u5408\u6CD5: ${a}`);r.port=a,r.portExplicit=!0}else if(o==="-d"||o==="--dir")r.dir=i(o);else if(o==="--host"||o==="--hostname")r.hostname=i(o);else if(o==="--ui")r.ui=i(o);else if(o==="--plugins")r.plugins=i(o);else if(o==="--providers")r.providers=i(o);else if(o==="--mcp")r.mcp=!0;else if(o==="--no-mcp")r.mcp=!1;else if(o==="--no-admin-auth")r.noAdminAuth=!0;else if(o==="--trusted-host")r.trustedHosts.push(i(o));else if(o==="--trusted-origin")r.trustedOrigins.push(i(o));else if(o==="--open")r.open=!0;else if(o==="--no-open")r.open=!1;else if(o==="--offline")r.offline=!0;else
|
|
72
|
+
`;async function of(n){let e=n.slice(2),t,r={port:Number(process.env.PLUME_PORT??"")||Xn,portExplicit:!1,dir:er,hostname:"127.0.0.1",open:!1,offline:!1,mcp:!0,noAdminAuth:!1,trustedHosts:[],trustedOrigins:[]};for(let s=0;s<e.length;s++){let o=e[s],i=a=>{let c=e[++s];if(c===void 0||c.startsWith("-"))throw new Error(`${a} \u540E\u9762\u7F3A\u5C11\u503C`);return c};if(o!=="serve")if(o==="-p"||o==="--port"){let a=Number(i(o));if(!Number.isInteger(a)||a<0||a>65535)throw new Error(`\u7AEF\u53E3\u4E0D\u5408\u6CD5: ${a}`);r.port=a,r.portExplicit=!0}else if(o==="-d"||o==="--dir")r.dir=i(o);else if(o==="--host"||o==="--hostname")r.hostname=i(o);else if(o==="--ui")r.ui=i(o);else if(o==="--plugins")r.plugins=i(o);else if(o==="--providers")r.providers=i(o);else if(o==="--mcp")r.mcp=!0;else if(o==="--no-mcp")r.mcp=!1;else if(o==="--no-admin-auth")r.noAdminAuth=!0;else if(o==="--trusted-host")r.trustedHosts.push(i(o));else if(o==="--trusted-origin")r.trustedOrigins.push(i(o));else if(o==="--open")r.open=!0;else if(o==="--no-open")r.open=!1;else if(o==="--offline")r.offline=!0;else{if(o==="-y"||o==="--yes")continue;if(o==="-h"||o==="--help")console.log(sf),process.exit(0);else if(o==="-v"||o==="--version")console.log(await Ca()),process.exit(0);else if(o==="audit-verify"||o==="list-tools"){if(t&&t!==o)throw new Error(`\u5B50\u547D\u4EE4 ${t} \u4E0E ${o} \u4E0D\u80FD\u540C\u65F6\u4F7F\u7528\uFF08\u4E00\u6B21\u53EA\u505A\u4E00\u4EF6\u4E8B\uFF09`);t=o}else throw new Error(`\u672A\u77E5\u53C2\u6570: ${o}\uFF08--help \u770B\u7528\u6CD5\uFF09`)}}if(t==="audit-verify"){let{createAuditLog:s}=await Promise.resolve().then(()=>(cs(),la)),o=qe.join(qe.resolve(r.dir),"audit.log"),i=await s(o).verify();i.ok&&(console.log("\u5BA1\u8BA1\u94FE\u5B8C\u6574\uFF1A"+o),process.exit(0)),console.error("\u5BA1\u8BA1\u94FE\u5728\u7B2C "+i.line+" \u884C\u65AD\u88C2\uFF1A"+i.reason),console.error(o),process.exit(1)}if(t==="list-tools"){let{listTools:s}=await Promise.resolve().then(()=>(pn(),ro)),o=s();console.log("MCP \u66B4\u9732\u7684\u5DE5\u5177\uFF08**\u53EA\u542B\u5185\u7F6E**\uFF09:");for(let i of o)console.log(` - ${i.name}: ${i.description}`);console.log(`
|
|
73
73
|
\u5171 ${o.length} \u4E2A\u5185\u7F6E\u5DE5\u5177\u3002
|
|
74
74
|
\u63D2\u4EF6\u6CE8\u518C\u7684\u5DE5\u5177\uFF08\u5982 canvas_ui_* / canvas_fn_*\uFF09**\u4E0D\u5728\u8FD9\u91CC**\uFF1A\u5B83\u4EEC\u662F\u8FD0\u884C\u671F\u624D\u6CE8\u518C\u7684\u3002
|
|
75
75
|
\u8981\u6838\u5BF9\u5168\u91CF\uFF0C\u67E5\u8FD0\u884C\u4E2D\u7684\u670D\u52A1\uFF08\u4E0B\u9762\u7684 <\u7AEF\u53E3> \u6362\u6210\u5B9E\u9645\u7AEF\u53E3\uFF09\uFF1A
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plume-canvas/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"plume-canvas": "./dist/cli.js"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@hono/node-server": "^2.1.1",
|
|
27
|
-
"@modelcontextprotocol/sdk": "
|
|
27
|
+
"@modelcontextprotocol/sdk": "1.20.0",
|
|
28
28
|
"@prismshadow/penguin-core": "0.2.13",
|
|
29
29
|
"hono": "^4.6.0",
|
|
30
30
|
"yaml": "^2.9.1",
|