@kelceyp/caw-server 1.0.114 → 1.0.116
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 +65 -47
- package/dist/main.js +339 -339
- package/dist/public_html/main.js +357 -357
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9731,8 +9731,26 @@ var create54 = ({ httpClient }) => {
|
|
|
9731
9731
|
};
|
|
9732
9732
|
var update_state_default = Object.freeze({ create: create54 });
|
|
9733
9733
|
|
|
9734
|
-
// src/commands/story/
|
|
9734
|
+
// src/commands/story/change-track.js
|
|
9735
9735
|
var create55 = ({ httpClient }) => {
|
|
9736
|
+
return createCommand("change-track").summary("Change story track").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("track").type("string").flag("track").required()).param((p) => p.name("targetState").type("string").flag("target-state").optional()).run(async (ctx) => {
|
|
9737
|
+
const { sid, id, track, targetState } = ctx.params;
|
|
9738
|
+
const args = { id, track };
|
|
9739
|
+
if (targetState)
|
|
9740
|
+
args.targetState = targetState;
|
|
9741
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9742
|
+
cwd: process.cwd(),
|
|
9743
|
+
tool: "change_story_track",
|
|
9744
|
+
args
|
|
9745
|
+
});
|
|
9746
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9747
|
+
`);
|
|
9748
|
+
}).onError({ exitCode: 1 }).build();
|
|
9749
|
+
};
|
|
9750
|
+
var change_track_default = Object.freeze({ create: create55 });
|
|
9751
|
+
|
|
9752
|
+
// src/commands/story/delete.js
|
|
9753
|
+
var create56 = ({ httpClient }) => {
|
|
9736
9754
|
return createCommand("delete").summary("Delete a story").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("confirm").type("boolean").flag("confirm")).run(async (ctx) => {
|
|
9737
9755
|
const { sid, id, confirm } = ctx.params;
|
|
9738
9756
|
const args = { id };
|
|
@@ -9747,10 +9765,10 @@ var create55 = ({ httpClient }) => {
|
|
|
9747
9765
|
`);
|
|
9748
9766
|
}).onError({ exitCode: 1 }).build();
|
|
9749
9767
|
};
|
|
9750
|
-
var delete_default4 = Object.freeze({ create:
|
|
9768
|
+
var delete_default4 = Object.freeze({ create: create56 });
|
|
9751
9769
|
|
|
9752
9770
|
// src/commands/story/inc-jobs.js
|
|
9753
|
-
var
|
|
9771
|
+
var create57 = ({ httpClient }) => {
|
|
9754
9772
|
return createCommand("inc-jobs").summary("Increment story job count").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9755
9773
|
const { sid, id } = ctx.params;
|
|
9756
9774
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9762,10 +9780,10 @@ var create56 = ({ httpClient }) => {
|
|
|
9762
9780
|
`);
|
|
9763
9781
|
}).onError({ exitCode: 1 }).build();
|
|
9764
9782
|
};
|
|
9765
|
-
var inc_jobs_default = Object.freeze({ create:
|
|
9783
|
+
var inc_jobs_default = Object.freeze({ create: create57 });
|
|
9766
9784
|
|
|
9767
9785
|
// src/commands/story/dec-jobs.js
|
|
9768
|
-
var
|
|
9786
|
+
var create58 = ({ httpClient }) => {
|
|
9769
9787
|
return createCommand("dec-jobs").summary("Decrement story job count").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9770
9788
|
const { sid, id } = ctx.params;
|
|
9771
9789
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9777,10 +9795,10 @@ var create57 = ({ httpClient }) => {
|
|
|
9777
9795
|
`);
|
|
9778
9796
|
}).onError({ exitCode: 1 }).build();
|
|
9779
9797
|
};
|
|
9780
|
-
var dec_jobs_default = Object.freeze({ create:
|
|
9798
|
+
var dec_jobs_default = Object.freeze({ create: create58 });
|
|
9781
9799
|
|
|
9782
9800
|
// src/commands/track/list.js
|
|
9783
|
-
var
|
|
9801
|
+
var create59 = ({ httpClient }) => {
|
|
9784
9802
|
return createCommand("list").summary("List all tracks").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9785
9803
|
const { sid, store } = ctx.params;
|
|
9786
9804
|
const args = {};
|
|
@@ -9795,10 +9813,10 @@ var create58 = ({ httpClient }) => {
|
|
|
9795
9813
|
`);
|
|
9796
9814
|
}).onError({ exitCode: 1 }).build();
|
|
9797
9815
|
};
|
|
9798
|
-
var list_default3 = Object.freeze({ create:
|
|
9816
|
+
var list_default3 = Object.freeze({ create: create59 });
|
|
9799
9817
|
|
|
9800
9818
|
// src/commands/track/create.js
|
|
9801
|
-
var
|
|
9819
|
+
var create60 = ({ httpClient }) => {
|
|
9802
9820
|
return createCommand("create").summary("Create a track").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) => {
|
|
9803
9821
|
const { sid, name, states, store } = ctx.params;
|
|
9804
9822
|
const statesArray = states.split(",").map((s) => s.trim());
|
|
@@ -9814,10 +9832,10 @@ var create59 = ({ httpClient }) => {
|
|
|
9814
9832
|
`);
|
|
9815
9833
|
}).onError({ exitCode: 1 }).build();
|
|
9816
9834
|
};
|
|
9817
|
-
var create_default4 = Object.freeze({ create:
|
|
9835
|
+
var create_default4 = Object.freeze({ create: create60 });
|
|
9818
9836
|
|
|
9819
9837
|
// src/commands/track/update.js
|
|
9820
|
-
var
|
|
9838
|
+
var create61 = ({ httpClient }) => {
|
|
9821
9839
|
return createCommand("update").summary("Update a track").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) => {
|
|
9822
9840
|
const { sid, id, name, states } = ctx.params;
|
|
9823
9841
|
const args = { id };
|
|
@@ -9835,10 +9853,10 @@ var create60 = ({ httpClient }) => {
|
|
|
9835
9853
|
`);
|
|
9836
9854
|
}).onError({ exitCode: 1 }).build();
|
|
9837
9855
|
};
|
|
9838
|
-
var update_default = Object.freeze({ create:
|
|
9856
|
+
var update_default = Object.freeze({ create: create61 });
|
|
9839
9857
|
|
|
9840
9858
|
// src/commands/track/delete.js
|
|
9841
|
-
var
|
|
9859
|
+
var create62 = ({ httpClient }) => {
|
|
9842
9860
|
return createCommand("delete").summary("Delete a track").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9843
9861
|
const { sid, id } = ctx.params;
|
|
9844
9862
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9850,10 +9868,10 @@ var create61 = ({ httpClient }) => {
|
|
|
9850
9868
|
`);
|
|
9851
9869
|
}).onError({ exitCode: 1 }).build();
|
|
9852
9870
|
};
|
|
9853
|
-
var delete_default5 = Object.freeze({ create:
|
|
9871
|
+
var delete_default5 = Object.freeze({ create: create62 });
|
|
9854
9872
|
|
|
9855
9873
|
// src/commands/template/create.js
|
|
9856
|
-
var
|
|
9874
|
+
var create63 = ({ httpClient }) => {
|
|
9857
9875
|
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) => {
|
|
9858
9876
|
if (ctx.stdin.available && ctx.argv.flags.content) {
|
|
9859
9877
|
return "Cannot use --content when piping stdin";
|
|
@@ -9885,10 +9903,10 @@ var create62 = ({ httpClient }) => {
|
|
|
9885
9903
|
`);
|
|
9886
9904
|
}).onError({ exitCode: 1 }).build();
|
|
9887
9905
|
};
|
|
9888
|
-
var create_default5 = Object.freeze({ create:
|
|
9906
|
+
var create_default5 = Object.freeze({ create: create63 });
|
|
9889
9907
|
|
|
9890
9908
|
// src/commands/template/render.js
|
|
9891
|
-
var
|
|
9909
|
+
var create64 = ({ httpClient }) => {
|
|
9892
9910
|
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")).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9893
9911
|
const { sid, id, params, target, path, publish, store } = ctx.params;
|
|
9894
9912
|
const args = { id };
|
|
@@ -9919,10 +9937,10 @@ var create63 = ({ httpClient }) => {
|
|
|
9919
9937
|
`);
|
|
9920
9938
|
}).onError({ exitCode: 1 }).build();
|
|
9921
9939
|
};
|
|
9922
|
-
var render_default = Object.freeze({ create:
|
|
9940
|
+
var render_default = Object.freeze({ create: create64 });
|
|
9923
9941
|
|
|
9924
9942
|
// src/commands/template/params.js
|
|
9925
|
-
var
|
|
9943
|
+
var create65 = ({ httpClient }) => {
|
|
9926
9944
|
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) => {
|
|
9927
9945
|
const { sid, id } = ctx.params;
|
|
9928
9946
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9934,10 +9952,10 @@ var create64 = ({ httpClient }) => {
|
|
|
9934
9952
|
`);
|
|
9935
9953
|
}).onError({ exitCode: 1 }).build();
|
|
9936
9954
|
};
|
|
9937
|
-
var params_default = Object.freeze({ create:
|
|
9955
|
+
var params_default = Object.freeze({ create: create65 });
|
|
9938
9956
|
|
|
9939
9957
|
// src/commands/template/list-by-type.js
|
|
9940
|
-
var
|
|
9958
|
+
var create66 = ({ httpClient }) => {
|
|
9941
9959
|
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) => {
|
|
9942
9960
|
const { sid, typeCode } = ctx.params;
|
|
9943
9961
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9949,10 +9967,10 @@ var create65 = ({ httpClient }) => {
|
|
|
9949
9967
|
`);
|
|
9950
9968
|
}).onError({ exitCode: 1 }).build();
|
|
9951
9969
|
};
|
|
9952
|
-
var list_by_type_default = Object.freeze({ create:
|
|
9970
|
+
var list_by_type_default = Object.freeze({ create: create66 });
|
|
9953
9971
|
|
|
9954
9972
|
// src/commands/job/list.js
|
|
9955
|
-
var
|
|
9973
|
+
var create67 = ({ httpClient }) => {
|
|
9956
9974
|
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) => {
|
|
9957
9975
|
const { sid, store, status } = ctx.params;
|
|
9958
9976
|
const args = {};
|
|
@@ -9969,10 +9987,10 @@ var create66 = ({ httpClient }) => {
|
|
|
9969
9987
|
`);
|
|
9970
9988
|
}).onError({ exitCode: 1 }).build();
|
|
9971
9989
|
};
|
|
9972
|
-
var list_default4 = Object.freeze({ create:
|
|
9990
|
+
var list_default4 = Object.freeze({ create: create67 });
|
|
9973
9991
|
|
|
9974
9992
|
// src/commands/job/get.js
|
|
9975
|
-
var
|
|
9993
|
+
var create68 = ({ httpClient }) => {
|
|
9976
9994
|
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) => {
|
|
9977
9995
|
const { sid, id } = ctx.params;
|
|
9978
9996
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9984,10 +10002,10 @@ var create67 = ({ httpClient }) => {
|
|
|
9984
10002
|
`);
|
|
9985
10003
|
}).onError({ exitCode: 1 }).build();
|
|
9986
10004
|
};
|
|
9987
|
-
var get_default4 = Object.freeze({ create:
|
|
10005
|
+
var get_default4 = Object.freeze({ create: create68 });
|
|
9988
10006
|
|
|
9989
10007
|
// src/commands/job/create.js
|
|
9990
|
-
var
|
|
10008
|
+
var create69 = ({ httpClient }) => {
|
|
9991
10009
|
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) => {
|
|
9992
10010
|
const { sid, agent, prompt, name, model, workingDirectory, objectId, streaming, blocking } = ctx.params;
|
|
9993
10011
|
const args = { agent, prompt };
|
|
@@ -10012,10 +10030,10 @@ var create68 = ({ httpClient }) => {
|
|
|
10012
10030
|
`);
|
|
10013
10031
|
}).onError({ exitCode: 1 }).build();
|
|
10014
10032
|
};
|
|
10015
|
-
var create_default6 = Object.freeze({ create:
|
|
10033
|
+
var create_default6 = Object.freeze({ create: create69 });
|
|
10016
10034
|
|
|
10017
10035
|
// src/commands/job/continue.js
|
|
10018
|
-
var
|
|
10036
|
+
var create70 = ({ httpClient }) => {
|
|
10019
10037
|
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) => {
|
|
10020
10038
|
const { sid, id, prompt, model, blocking } = ctx.params;
|
|
10021
10039
|
const args = { id, prompt };
|
|
@@ -10032,10 +10050,10 @@ var create69 = ({ httpClient }) => {
|
|
|
10032
10050
|
`);
|
|
10033
10051
|
}).onError({ exitCode: 1 }).build();
|
|
10034
10052
|
};
|
|
10035
|
-
var continue_default = Object.freeze({ create:
|
|
10053
|
+
var continue_default = Object.freeze({ create: create70 });
|
|
10036
10054
|
|
|
10037
10055
|
// src/commands/job/output.js
|
|
10038
|
-
var
|
|
10056
|
+
var create71 = ({ httpClient }) => {
|
|
10039
10057
|
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) => {
|
|
10040
10058
|
const { sid, id } = ctx.params;
|
|
10041
10059
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10047,10 +10065,10 @@ var create70 = ({ httpClient }) => {
|
|
|
10047
10065
|
`);
|
|
10048
10066
|
}).onError({ exitCode: 1 }).build();
|
|
10049
10067
|
};
|
|
10050
|
-
var output_default = Object.freeze({ create:
|
|
10068
|
+
var output_default = Object.freeze({ create: create71 });
|
|
10051
10069
|
|
|
10052
10070
|
// src/commands/job/prompt.js
|
|
10053
|
-
var
|
|
10071
|
+
var create72 = ({ httpClient }) => {
|
|
10054
10072
|
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) => {
|
|
10055
10073
|
const { sid, id } = ctx.params;
|
|
10056
10074
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10062,10 +10080,10 @@ var create71 = ({ httpClient }) => {
|
|
|
10062
10080
|
`);
|
|
10063
10081
|
}).onError({ exitCode: 1 }).build();
|
|
10064
10082
|
};
|
|
10065
|
-
var prompt_default = Object.freeze({ create:
|
|
10083
|
+
var prompt_default = Object.freeze({ create: create72 });
|
|
10066
10084
|
|
|
10067
10085
|
// src/commands/export/list.js
|
|
10068
|
-
var
|
|
10086
|
+
var create73 = ({ httpClient }) => {
|
|
10069
10087
|
return createCommand("list").summary("List available export files").param((p) => p.name("sid").type("string").flag("sid", "s").required()).run(async (ctx) => {
|
|
10070
10088
|
const { sid } = ctx.params;
|
|
10071
10089
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10077,10 +10095,10 @@ var create72 = ({ httpClient }) => {
|
|
|
10077
10095
|
`);
|
|
10078
10096
|
}).onError({ exitCode: 1 }).build();
|
|
10079
10097
|
};
|
|
10080
|
-
var list_default5 = Object.freeze({ create:
|
|
10098
|
+
var list_default5 = Object.freeze({ create: create73 });
|
|
10081
10099
|
|
|
10082
10100
|
// src/commands/export/preview.js
|
|
10083
|
-
var
|
|
10101
|
+
var create74 = ({ httpClient }) => {
|
|
10084
10102
|
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) => {
|
|
10085
10103
|
const { sid, store } = ctx.params;
|
|
10086
10104
|
const args = {};
|
|
@@ -10095,10 +10113,10 @@ var create73 = ({ httpClient }) => {
|
|
|
10095
10113
|
`);
|
|
10096
10114
|
}).onError({ exitCode: 1 }).build();
|
|
10097
10115
|
};
|
|
10098
|
-
var preview_default = Object.freeze({ create:
|
|
10116
|
+
var preview_default = Object.freeze({ create: create74 });
|
|
10099
10117
|
|
|
10100
10118
|
// src/commands/export/export.js
|
|
10101
|
-
var
|
|
10119
|
+
var create75 = ({ httpClient }) => {
|
|
10102
10120
|
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) => {
|
|
10103
10121
|
const { sid, confirm, store } = ctx.params;
|
|
10104
10122
|
const args = {};
|
|
@@ -10115,10 +10133,10 @@ var create74 = ({ httpClient }) => {
|
|
|
10115
10133
|
`);
|
|
10116
10134
|
}).onError({ exitCode: 1 }).build();
|
|
10117
10135
|
};
|
|
10118
|
-
var export_default = Object.freeze({ create:
|
|
10136
|
+
var export_default = Object.freeze({ create: create75 });
|
|
10119
10137
|
|
|
10120
10138
|
// src/commands/export/import.js
|
|
10121
|
-
var
|
|
10139
|
+
var create76 = ({ httpClient }) => {
|
|
10122
10140
|
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) => {
|
|
10123
10141
|
const { sid, filename, store } = ctx.params;
|
|
10124
10142
|
const args = { filename };
|
|
@@ -10133,10 +10151,10 @@ var create75 = ({ httpClient }) => {
|
|
|
10133
10151
|
`);
|
|
10134
10152
|
}).onError({ exitCode: 1 }).build();
|
|
10135
10153
|
};
|
|
10136
|
-
var import_default = Object.freeze({ create:
|
|
10154
|
+
var import_default = Object.freeze({ create: create76 });
|
|
10137
10155
|
|
|
10138
10156
|
// src/commands/asset/read.js
|
|
10139
|
-
var
|
|
10157
|
+
var create77 = ({ httpClient }) => {
|
|
10140
10158
|
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) => {
|
|
10141
10159
|
const { sid, id } = ctx.params;
|
|
10142
10160
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10148,10 +10166,10 @@ var create76 = ({ httpClient }) => {
|
|
|
10148
10166
|
`);
|
|
10149
10167
|
}).onError({ exitCode: 1 }).build();
|
|
10150
10168
|
};
|
|
10151
|
-
var read_default2 = Object.freeze({ create:
|
|
10169
|
+
var read_default2 = Object.freeze({ create: create77 });
|
|
10152
10170
|
|
|
10153
10171
|
// src/commands/backfill/content-refs.js
|
|
10154
|
-
var
|
|
10172
|
+
var create78 = ({ httpClient }) => {
|
|
10155
10173
|
return createCommand("content-refs").summary("Backfill content reference fields on existing versions").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).param((p) => p.name("confirm").type("boolean").flag("confirm")).param((p) => p.name("skipPopulated").type("boolean").flag("skip-populated")).param((p) => p.name("batchSize").type("number").flag("batch-size")).run(async (ctx) => {
|
|
10156
10174
|
const { sid, store, confirm, skipPopulated, batchSize } = ctx.params;
|
|
10157
10175
|
const args = {};
|
|
@@ -10172,13 +10190,13 @@ var create77 = ({ httpClient }) => {
|
|
|
10172
10190
|
`);
|
|
10173
10191
|
}).onError({ exitCode: 1 }).build();
|
|
10174
10192
|
};
|
|
10175
|
-
var content_refs_default = Object.freeze({ create:
|
|
10193
|
+
var content_refs_default = Object.freeze({ create: create78 });
|
|
10176
10194
|
|
|
10177
10195
|
// src/cli-main.js
|
|
10178
10196
|
var CAW_URL = process.env.CAW_URL || "https://caw.localhost";
|
|
10179
10197
|
try {
|
|
10180
10198
|
const httpClient = http_client_default.create({ baseUrl: CAW_URL });
|
|
10181
|
-
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(get_field_default.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("track").summary("Track 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()).group(createCommandGroup("backfill").summary("Backfill operations").command(content_refs_default.create({ httpClient })).build());
|
|
10199
|
+
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(get_field_default.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(change_track_default.create({ httpClient })).command(delete_default4.create({ httpClient })).command(inc_jobs_default.create({ httpClient })).command(dec_jobs_default.create({ httpClient })).build()).group(createCommandGroup("track").summary("Track 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()).group(createCommandGroup("backfill").summary("Backfill operations").command(content_refs_default.create({ httpClient })).build());
|
|
10182
10200
|
await app.run(process.argv.slice(2));
|
|
10183
10201
|
} catch (error) {
|
|
10184
10202
|
console.error(`Error: ${error.message}`);
|