@kelceyp/caw-server 1.0.12 → 1.0.14
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 +4 -2
- package/dist/main.js +221 -220
- package/dist/public_html/main.js +396 -396
- package/dist/public_html/styles.css +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9762,13 +9762,13 @@ var dec_jobs_default = Object.freeze({ create: create56 });
|
|
|
9762
9762
|
|
|
9763
9763
|
// src/commands/template/create.js
|
|
9764
9764
|
var create57 = ({ httpClient }) => {
|
|
9765
|
-
return createCommand("create").summary("Create a template").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("path").type("string").flag("path")).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("root").type("string").flag("root")).param((p) => p.name("parent").type("string").flag("parent")).param((p) => p.name("name").type("string").flag("name")).param((p) => p.name("content").type("string").flag("content").stdin()).preValidate((ctx) => {
|
|
9765
|
+
return createCommand("create").summary("Create a template").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("path").type("string").flag("path")).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("root").type("string").flag("root")).param((p) => p.name("parent").type("string").flag("parent")).param((p) => p.name("name").type("string").flag("name")).param((p) => p.name("content").type("string").flag("content").stdin()).param((p) => p.name("subtype").type("string").flag("subtype")).preValidate((ctx) => {
|
|
9766
9766
|
if (ctx.stdin.available && ctx.argv.flags.content) {
|
|
9767
9767
|
return "Cannot use --content when piping stdin";
|
|
9768
9768
|
}
|
|
9769
9769
|
return true;
|
|
9770
9770
|
}).run(async (ctx) => {
|
|
9771
|
-
const { sid, path, store, root, parent, name, content } = ctx.params;
|
|
9771
|
+
const { sid, path, store, root, parent, name, content, subtype } = ctx.params;
|
|
9772
9772
|
const args = {};
|
|
9773
9773
|
if (path !== undefined)
|
|
9774
9774
|
args.path = path;
|
|
@@ -9782,6 +9782,8 @@ var create57 = ({ httpClient }) => {
|
|
|
9782
9782
|
args.name = name;
|
|
9783
9783
|
if (content !== undefined)
|
|
9784
9784
|
args.content = content;
|
|
9785
|
+
if (subtype !== undefined)
|
|
9786
|
+
args.subtype = subtype;
|
|
9785
9787
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9786
9788
|
cwd: process.cwd(),
|
|
9787
9789
|
tool: "create_template",
|