@kelceyp/caw-server 1.0.85 → 1.0.86
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 +108 -33
- package/dist/main.js +307 -307
- package/dist/public_html/main.js +472 -472
- package/dist/public_html/styles.css +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9646,13 +9646,15 @@ var delete_def_default = Object.freeze({ create: create49 });
|
|
|
9646
9646
|
|
|
9647
9647
|
// src/commands/story/create.js
|
|
9648
9648
|
var create50 = ({ httpClient }) => {
|
|
9649
|
-
return createCommand("create").summary("Create a story").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("name").type("string").flag("name").required()).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("state").type("string").flag("state")).run(async (ctx) => {
|
|
9650
|
-
const { sid, name, store, state } = ctx.params;
|
|
9649
|
+
return createCommand("create").summary("Create a story").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("name").type("string").flag("name").required()).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("state").type("string").flag("state")).param((p) => p.name("workflow").type("string").flag("workflow")).run(async (ctx) => {
|
|
9650
|
+
const { sid, name, store, state, workflow } = ctx.params;
|
|
9651
9651
|
const args = { name };
|
|
9652
9652
|
if (store !== undefined)
|
|
9653
9653
|
args.store = store;
|
|
9654
9654
|
if (state !== undefined)
|
|
9655
9655
|
args.state = state;
|
|
9656
|
+
if (workflow !== undefined)
|
|
9657
|
+
args.workflow = workflow;
|
|
9656
9658
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9657
9659
|
cwd: process.cwd(),
|
|
9658
9660
|
tool: "create_story",
|
|
@@ -9760,8 +9762,81 @@ var create56 = ({ httpClient }) => {
|
|
|
9760
9762
|
};
|
|
9761
9763
|
var dec_jobs_default = Object.freeze({ create: create56 });
|
|
9762
9764
|
|
|
9763
|
-
// src/commands/
|
|
9765
|
+
// src/commands/workflow/list.js
|
|
9764
9766
|
var create57 = ({ httpClient }) => {
|
|
9767
|
+
return createCommand("list").summary("List all workflows").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9768
|
+
const { sid, store } = ctx.params;
|
|
9769
|
+
const args = {};
|
|
9770
|
+
if (store !== undefined)
|
|
9771
|
+
args.store = store;
|
|
9772
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9773
|
+
cwd: process.cwd(),
|
|
9774
|
+
tool: "list_workflows",
|
|
9775
|
+
args
|
|
9776
|
+
});
|
|
9777
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9778
|
+
`);
|
|
9779
|
+
}).onError({ exitCode: 1 }).build();
|
|
9780
|
+
};
|
|
9781
|
+
var list_default3 = Object.freeze({ create: create57 });
|
|
9782
|
+
|
|
9783
|
+
// src/commands/workflow/create.js
|
|
9784
|
+
var create58 = ({ httpClient }) => {
|
|
9785
|
+
return createCommand("create").summary("Create a workflow").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("name").type("string").flag("name").required()).param((p) => p.name("states").type("string").flag("states").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9786
|
+
const { sid, name, states, store } = ctx.params;
|
|
9787
|
+
const statesArray = states.split(",").map((s) => s.trim());
|
|
9788
|
+
const args = { name, states: statesArray };
|
|
9789
|
+
if (store !== undefined)
|
|
9790
|
+
args.store = store;
|
|
9791
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9792
|
+
cwd: process.cwd(),
|
|
9793
|
+
tool: "create_workflow",
|
|
9794
|
+
args
|
|
9795
|
+
});
|
|
9796
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9797
|
+
`);
|
|
9798
|
+
}).onError({ exitCode: 1 }).build();
|
|
9799
|
+
};
|
|
9800
|
+
var create_default4 = Object.freeze({ create: create58 });
|
|
9801
|
+
|
|
9802
|
+
// src/commands/workflow/update.js
|
|
9803
|
+
var create59 = ({ httpClient }) => {
|
|
9804
|
+
return createCommand("update").summary("Update a workflow").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).param((p) => p.name("name").type("string").flag("name")).param((p) => p.name("states").type("string").flag("states")).run(async (ctx) => {
|
|
9805
|
+
const { sid, id, name, states } = ctx.params;
|
|
9806
|
+
const args = { id };
|
|
9807
|
+
if (name !== undefined)
|
|
9808
|
+
args.name = name;
|
|
9809
|
+
if (states !== undefined) {
|
|
9810
|
+
args.states = states.split(",").map((s) => s.trim());
|
|
9811
|
+
}
|
|
9812
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9813
|
+
cwd: process.cwd(),
|
|
9814
|
+
tool: "update_workflow",
|
|
9815
|
+
args
|
|
9816
|
+
});
|
|
9817
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9818
|
+
`);
|
|
9819
|
+
}).onError({ exitCode: 1 }).build();
|
|
9820
|
+
};
|
|
9821
|
+
var update_default = Object.freeze({ create: create59 });
|
|
9822
|
+
|
|
9823
|
+
// src/commands/workflow/delete.js
|
|
9824
|
+
var create60 = ({ httpClient }) => {
|
|
9825
|
+
return createCommand("delete").summary("Delete a workflow").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9826
|
+
const { sid, id } = ctx.params;
|
|
9827
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9828
|
+
cwd: process.cwd(),
|
|
9829
|
+
tool: "delete_workflow",
|
|
9830
|
+
args: { id }
|
|
9831
|
+
});
|
|
9832
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9833
|
+
`);
|
|
9834
|
+
}).onError({ exitCode: 1 }).build();
|
|
9835
|
+
};
|
|
9836
|
+
var delete_default5 = Object.freeze({ create: create60 });
|
|
9837
|
+
|
|
9838
|
+
// src/commands/template/create.js
|
|
9839
|
+
var create61 = ({ httpClient }) => {
|
|
9765
9840
|
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
9841
|
if (ctx.stdin.available && ctx.argv.flags.content) {
|
|
9767
9842
|
return "Cannot use --content when piping stdin";
|
|
@@ -9793,10 +9868,10 @@ var create57 = ({ httpClient }) => {
|
|
|
9793
9868
|
`);
|
|
9794
9869
|
}).onError({ exitCode: 1 }).build();
|
|
9795
9870
|
};
|
|
9796
|
-
var
|
|
9871
|
+
var create_default5 = Object.freeze({ create: create61 });
|
|
9797
9872
|
|
|
9798
9873
|
// src/commands/template/render.js
|
|
9799
|
-
var
|
|
9874
|
+
var create62 = ({ httpClient }) => {
|
|
9800
9875
|
return createCommand("render").summary("Render a template").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).param((p) => p.name("params").type("string").flag("params")).param((p) => p.name("target").type("string").flag("target")).param((p) => p.name("path").type("string").flag("path")).param((p) => p.name("publish").type("boolean").flag("publish")).run(async (ctx) => {
|
|
9801
9876
|
const { sid, id, params, target, path, publish } = ctx.params;
|
|
9802
9877
|
const args = { id };
|
|
@@ -9825,10 +9900,10 @@ var create58 = ({ httpClient }) => {
|
|
|
9825
9900
|
`);
|
|
9826
9901
|
}).onError({ exitCode: 1 }).build();
|
|
9827
9902
|
};
|
|
9828
|
-
var render_default = Object.freeze({ create:
|
|
9903
|
+
var render_default = Object.freeze({ create: create62 });
|
|
9829
9904
|
|
|
9830
9905
|
// src/commands/template/params.js
|
|
9831
|
-
var
|
|
9906
|
+
var create63 = ({ httpClient }) => {
|
|
9832
9907
|
return createCommand("params").summary("Get template parameters").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9833
9908
|
const { sid, id } = ctx.params;
|
|
9834
9909
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9840,10 +9915,10 @@ var create59 = ({ httpClient }) => {
|
|
|
9840
9915
|
`);
|
|
9841
9916
|
}).onError({ exitCode: 1 }).build();
|
|
9842
9917
|
};
|
|
9843
|
-
var params_default = Object.freeze({ create:
|
|
9918
|
+
var params_default = Object.freeze({ create: create63 });
|
|
9844
9919
|
|
|
9845
9920
|
// src/commands/template/list-by-type.js
|
|
9846
|
-
var
|
|
9921
|
+
var create64 = ({ httpClient }) => {
|
|
9847
9922
|
return createCommand("list-by-type").summary("List templates by entity type code").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("typeCode").type("string").flag("type-code").required()).run(async (ctx) => {
|
|
9848
9923
|
const { sid, typeCode } = ctx.params;
|
|
9849
9924
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9855,10 +9930,10 @@ var create60 = ({ httpClient }) => {
|
|
|
9855
9930
|
`);
|
|
9856
9931
|
}).onError({ exitCode: 1 }).build();
|
|
9857
9932
|
};
|
|
9858
|
-
var list_by_type_default = Object.freeze({ create:
|
|
9933
|
+
var list_by_type_default = Object.freeze({ create: create64 });
|
|
9859
9934
|
|
|
9860
9935
|
// src/commands/job/list.js
|
|
9861
|
-
var
|
|
9936
|
+
var create65 = ({ httpClient }) => {
|
|
9862
9937
|
return createCommand("list").summary("List all jobs").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("status").type("string").flag("status")).run(async (ctx) => {
|
|
9863
9938
|
const { sid, store, status } = ctx.params;
|
|
9864
9939
|
const args = {};
|
|
@@ -9875,10 +9950,10 @@ var create61 = ({ httpClient }) => {
|
|
|
9875
9950
|
`);
|
|
9876
9951
|
}).onError({ exitCode: 1 }).build();
|
|
9877
9952
|
};
|
|
9878
|
-
var
|
|
9953
|
+
var list_default4 = Object.freeze({ create: create65 });
|
|
9879
9954
|
|
|
9880
9955
|
// src/commands/job/get.js
|
|
9881
|
-
var
|
|
9956
|
+
var create66 = ({ httpClient }) => {
|
|
9882
9957
|
return createCommand("get").summary("Get job details").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9883
9958
|
const { sid, id } = ctx.params;
|
|
9884
9959
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9890,10 +9965,10 @@ var create62 = ({ httpClient }) => {
|
|
|
9890
9965
|
`);
|
|
9891
9966
|
}).onError({ exitCode: 1 }).build();
|
|
9892
9967
|
};
|
|
9893
|
-
var get_default4 = Object.freeze({ create:
|
|
9968
|
+
var get_default4 = Object.freeze({ create: create66 });
|
|
9894
9969
|
|
|
9895
9970
|
// src/commands/job/create.js
|
|
9896
|
-
var
|
|
9971
|
+
var create67 = ({ httpClient }) => {
|
|
9897
9972
|
return createCommand("create").summary("Create and run a job").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("agent").type("string").flag("agent").required()).param((p) => p.name("prompt").type("string").flag("prompt").required()).param((p) => p.name("name").type("string").flag("name")).param((p) => p.name("model").type("string").flag("model")).param((p) => p.name("workingDirectory").type("string").flag("working-directory")).param((p) => p.name("objectId").type("string").flag("object-id")).param((p) => p.name("streaming").type("boolean").flag("streaming")).param((p) => p.name("blocking").type("boolean").flag("blocking")).run(async (ctx) => {
|
|
9898
9973
|
const { sid, agent, prompt, name, model, workingDirectory, objectId, streaming, blocking } = ctx.params;
|
|
9899
9974
|
const args = { agent, prompt };
|
|
@@ -9918,10 +9993,10 @@ var create63 = ({ httpClient }) => {
|
|
|
9918
9993
|
`);
|
|
9919
9994
|
}).onError({ exitCode: 1 }).build();
|
|
9920
9995
|
};
|
|
9921
|
-
var
|
|
9996
|
+
var create_default6 = Object.freeze({ create: create67 });
|
|
9922
9997
|
|
|
9923
9998
|
// src/commands/job/continue.js
|
|
9924
|
-
var
|
|
9999
|
+
var create68 = ({ httpClient }) => {
|
|
9925
10000
|
return createCommand("continue").summary("Continue a job with a follow-up prompt").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).param((p) => p.name("prompt").type("string").flag("prompt").required()).param((p) => p.name("model").type("string").flag("model")).param((p) => p.name("blocking").type("boolean").flag("blocking")).run(async (ctx) => {
|
|
9926
10001
|
const { sid, id, prompt, model, blocking } = ctx.params;
|
|
9927
10002
|
const args = { id, prompt };
|
|
@@ -9938,10 +10013,10 @@ var create64 = ({ httpClient }) => {
|
|
|
9938
10013
|
`);
|
|
9939
10014
|
}).onError({ exitCode: 1 }).build();
|
|
9940
10015
|
};
|
|
9941
|
-
var continue_default = Object.freeze({ create:
|
|
10016
|
+
var continue_default = Object.freeze({ create: create68 });
|
|
9942
10017
|
|
|
9943
10018
|
// src/commands/job/output.js
|
|
9944
|
-
var
|
|
10019
|
+
var create69 = ({ httpClient }) => {
|
|
9945
10020
|
return createCommand("output").summary("Read job output content").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9946
10021
|
const { sid, id } = ctx.params;
|
|
9947
10022
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9953,10 +10028,10 @@ var create65 = ({ httpClient }) => {
|
|
|
9953
10028
|
`);
|
|
9954
10029
|
}).onError({ exitCode: 1 }).build();
|
|
9955
10030
|
};
|
|
9956
|
-
var output_default = Object.freeze({ create:
|
|
10031
|
+
var output_default = Object.freeze({ create: create69 });
|
|
9957
10032
|
|
|
9958
10033
|
// src/commands/job/prompt.js
|
|
9959
|
-
var
|
|
10034
|
+
var create70 = ({ httpClient }) => {
|
|
9960
10035
|
return createCommand("prompt").summary("Read job prompt content").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9961
10036
|
const { sid, id } = ctx.params;
|
|
9962
10037
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9968,10 +10043,10 @@ var create66 = ({ httpClient }) => {
|
|
|
9968
10043
|
`);
|
|
9969
10044
|
}).onError({ exitCode: 1 }).build();
|
|
9970
10045
|
};
|
|
9971
|
-
var prompt_default = Object.freeze({ create:
|
|
10046
|
+
var prompt_default = Object.freeze({ create: create70 });
|
|
9972
10047
|
|
|
9973
10048
|
// src/commands/export/list.js
|
|
9974
|
-
var
|
|
10049
|
+
var create71 = ({ httpClient }) => {
|
|
9975
10050
|
return createCommand("list").summary("List available export files").param((p) => p.name("sid").type("string").flag("sid", "s").required()).run(async (ctx) => {
|
|
9976
10051
|
const { sid } = ctx.params;
|
|
9977
10052
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9983,10 +10058,10 @@ var create67 = ({ httpClient }) => {
|
|
|
9983
10058
|
`);
|
|
9984
10059
|
}).onError({ exitCode: 1 }).build();
|
|
9985
10060
|
};
|
|
9986
|
-
var
|
|
10061
|
+
var list_default5 = Object.freeze({ create: create71 });
|
|
9987
10062
|
|
|
9988
10063
|
// src/commands/export/preview.js
|
|
9989
|
-
var
|
|
10064
|
+
var create72 = ({ httpClient }) => {
|
|
9990
10065
|
return createCommand("preview").summary("Preview export").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9991
10066
|
const { sid, store } = ctx.params;
|
|
9992
10067
|
const args = {};
|
|
@@ -10001,10 +10076,10 @@ var create68 = ({ httpClient }) => {
|
|
|
10001
10076
|
`);
|
|
10002
10077
|
}).onError({ exitCode: 1 }).build();
|
|
10003
10078
|
};
|
|
10004
|
-
var preview_default = Object.freeze({ create:
|
|
10079
|
+
var preview_default = Object.freeze({ create: create72 });
|
|
10005
10080
|
|
|
10006
10081
|
// src/commands/export/export.js
|
|
10007
|
-
var
|
|
10082
|
+
var create73 = ({ httpClient }) => {
|
|
10008
10083
|
return createCommand("export").summary("Export documents and templates").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("confirm").type("boolean").flag("confirm")).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
10009
10084
|
const { sid, confirm, store } = ctx.params;
|
|
10010
10085
|
const args = {};
|
|
@@ -10021,10 +10096,10 @@ var create69 = ({ httpClient }) => {
|
|
|
10021
10096
|
`);
|
|
10022
10097
|
}).onError({ exitCode: 1 }).build();
|
|
10023
10098
|
};
|
|
10024
|
-
var export_default = Object.freeze({ create:
|
|
10099
|
+
var export_default = Object.freeze({ create: create73 });
|
|
10025
10100
|
|
|
10026
10101
|
// src/commands/export/import.js
|
|
10027
|
-
var
|
|
10102
|
+
var create74 = ({ httpClient }) => {
|
|
10028
10103
|
return createCommand("import").summary("Import documents and templates").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("filename").type("string").flag("filename").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
10029
10104
|
const { sid, filename, store } = ctx.params;
|
|
10030
10105
|
const args = { filename };
|
|
@@ -10039,10 +10114,10 @@ var create70 = ({ httpClient }) => {
|
|
|
10039
10114
|
`);
|
|
10040
10115
|
}).onError({ exitCode: 1 }).build();
|
|
10041
10116
|
};
|
|
10042
|
-
var import_default = Object.freeze({ create:
|
|
10117
|
+
var import_default = Object.freeze({ create: create74 });
|
|
10043
10118
|
|
|
10044
10119
|
// src/commands/asset/read.js
|
|
10045
|
-
var
|
|
10120
|
+
var create75 = ({ httpClient }) => {
|
|
10046
10121
|
return createCommand("read").summary("Read an asset").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
10047
10122
|
const { sid, id } = ctx.params;
|
|
10048
10123
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10054,13 +10129,13 @@ var create71 = ({ httpClient }) => {
|
|
|
10054
10129
|
`);
|
|
10055
10130
|
}).onError({ exitCode: 1 }).build();
|
|
10056
10131
|
};
|
|
10057
|
-
var read_default2 = Object.freeze({ create:
|
|
10132
|
+
var read_default2 = Object.freeze({ create: create75 });
|
|
10058
10133
|
|
|
10059
10134
|
// src/cli-main.js
|
|
10060
10135
|
var CAW_URL = process.env.CAW_URL || "https://caw.localhost";
|
|
10061
10136
|
try {
|
|
10062
10137
|
const httpClient = http_client_default.create({ baseUrl: CAW_URL });
|
|
10063
|
-
const app = create().name("caw").version("0.0.1").command(connect_default.create({ httpClient })).command(disconnect_default.create({ httpClient })).group(createCommandGroup("doc").summary("Document operations").command(read_default.create({ httpClient })).command(create_default.create({ httpClient })).command(save_default.create({ httpClient })).command(publish_default.create({ httpClient })).command(read_by_path_default.create({ httpClient })).command(update_path_default.create({ httpClient })).command(versions_default.create({ httpClient })).command(read_version_default.create({ httpClient })).command(discard_default.create({ httpClient })).command(delete_default.create({ httpClient })).command(read_lines_default.create({ httpClient })).command(read_head_default.create({ httpClient })).command(read_tail_default.create({ httpClient })).command(read_from_line_default.create({ httpClient })).command(read_to_line_default.create({ httpClient })).command(read_between_markers_default.create({ httpClient })).command(read_section_default.create({ httpClient })).command(headings_default.create({ httpClient })).command(checklist_default.create({ httpClient })).command(stats_default.create({ httpClient })).command(frontmatter_default.create({ httpClient })).command(edit_default.create({ httpClient })).command(batch_edit_default.create({ httpClient })).command(check_item_default.create({ httpClient })).command(toggle_item_default.create({ httpClient })).command(batch_check_items_default.create({ httpClient })).command(set_edit_state_default.create({ httpClient })).command(clear_edit_state_default.create({ httpClient })).command(get_edit_state_default.create({ httpClient })).command(check_includes_default.create({ httpClient })).command(update_includes_default.create({ httpClient })).build()).group(createCommandGroup("folder").summary("Folder operations").command(list_default.create({ httpClient })).command(create_default2.create({ httpClient })).command(get_default.create({ httpClient })).command(get_by_path_default.create({ httpClient })).command(rename_default.create({ httpClient })).command(move_default.create({ httpClient })).command(delete_default2.create({ httpClient })).build()).group(createCommandGroup("field").summary("Field operations").command(get_default2.create({ httpClient })).command(set_default.create({ httpClient })).command(delete_default3.create({ httpClient })).command(create_def_default.create({ httpClient })).command(list_defs_default.create({ httpClient })).command(get_type_fields_default.create({ httpClient })).command(delete_def_default.create({ httpClient })).build()).group(createCommandGroup("story").summary("Story operations").command(create_default3.create({ httpClient })).command(list_default2.create({ httpClient })).command(get_default3.create({ httpClient })).command(update_state_default.create({ httpClient })).command(delete_default4.create({ httpClient })).command(inc_jobs_default.create({ httpClient })).command(dec_jobs_default.create({ httpClient })).build()).group(createCommandGroup("template").summary("Template operations").command(
|
|
10138
|
+
const app = create().name("caw").version("0.0.1").command(connect_default.create({ httpClient })).command(disconnect_default.create({ httpClient })).group(createCommandGroup("doc").summary("Document operations").command(read_default.create({ httpClient })).command(create_default.create({ httpClient })).command(save_default.create({ httpClient })).command(publish_default.create({ httpClient })).command(read_by_path_default.create({ httpClient })).command(update_path_default.create({ httpClient })).command(versions_default.create({ httpClient })).command(read_version_default.create({ httpClient })).command(discard_default.create({ httpClient })).command(delete_default.create({ httpClient })).command(read_lines_default.create({ httpClient })).command(read_head_default.create({ httpClient })).command(read_tail_default.create({ httpClient })).command(read_from_line_default.create({ httpClient })).command(read_to_line_default.create({ httpClient })).command(read_between_markers_default.create({ httpClient })).command(read_section_default.create({ httpClient })).command(headings_default.create({ httpClient })).command(checklist_default.create({ httpClient })).command(stats_default.create({ httpClient })).command(frontmatter_default.create({ httpClient })).command(edit_default.create({ httpClient })).command(batch_edit_default.create({ httpClient })).command(check_item_default.create({ httpClient })).command(toggle_item_default.create({ httpClient })).command(batch_check_items_default.create({ httpClient })).command(set_edit_state_default.create({ httpClient })).command(clear_edit_state_default.create({ httpClient })).command(get_edit_state_default.create({ httpClient })).command(check_includes_default.create({ httpClient })).command(update_includes_default.create({ httpClient })).build()).group(createCommandGroup("folder").summary("Folder operations").command(list_default.create({ httpClient })).command(create_default2.create({ httpClient })).command(get_default.create({ httpClient })).command(get_by_path_default.create({ httpClient })).command(rename_default.create({ httpClient })).command(move_default.create({ httpClient })).command(delete_default2.create({ httpClient })).build()).group(createCommandGroup("field").summary("Field operations").command(get_default2.create({ httpClient })).command(set_default.create({ httpClient })).command(delete_default3.create({ httpClient })).command(create_def_default.create({ httpClient })).command(list_defs_default.create({ httpClient })).command(get_type_fields_default.create({ httpClient })).command(delete_def_default.create({ httpClient })).build()).group(createCommandGroup("story").summary("Story operations").command(create_default3.create({ httpClient })).command(list_default2.create({ httpClient })).command(get_default3.create({ httpClient })).command(update_state_default.create({ httpClient })).command(delete_default4.create({ httpClient })).command(inc_jobs_default.create({ httpClient })).command(dec_jobs_default.create({ httpClient })).build()).group(createCommandGroup("workflow").summary("Workflow operations").command(list_default3.create({ httpClient })).command(create_default4.create({ httpClient })).command(update_default.create({ httpClient })).command(delete_default5.create({ httpClient })).build()).group(createCommandGroup("template").summary("Template operations").command(create_default5.create({ httpClient })).command(render_default.create({ httpClient })).command(params_default.create({ httpClient })).command(list_by_type_default.create({ httpClient })).build()).group(createCommandGroup("job").summary("Job operations").command(list_default4.create({ httpClient })).command(get_default4.create({ httpClient })).command(create_default6.create({ httpClient })).command(continue_default.create({ httpClient })).command(output_default.create({ httpClient })).command(prompt_default.create({ httpClient })).build()).group(createCommandGroup("export").summary("Export operations").command(list_default5.create({ httpClient })).command(preview_default.create({ httpClient })).command(export_default.create({ httpClient })).command(import_default.create({ httpClient })).build()).group(createCommandGroup("asset").summary("Asset operations").command(read_default2.create({ httpClient })).build());
|
|
10064
10139
|
await app.run(process.argv.slice(2));
|
|
10065
10140
|
} catch (error) {
|
|
10066
10141
|
console.error(`Error: ${error.message}`);
|