@kelceyp/caw-server 1.0.108 → 1.0.110
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 +82 -67
- package/dist/main.js +329 -329
- package/dist/public_html/cog-original.svg +18 -0
- package/dist/public_html/main.js +301 -301
- package/dist/public_html/styles.css +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9511,8 +9511,23 @@ var create43 = ({ httpClient }) => {
|
|
|
9511
9511
|
};
|
|
9512
9512
|
var get_default2 = Object.freeze({ create: create43 });
|
|
9513
9513
|
|
|
9514
|
-
// src/commands/field/
|
|
9514
|
+
// src/commands/field/get-field.js
|
|
9515
9515
|
var create44 = ({ httpClient }) => {
|
|
9516
|
+
return createCommand("get-field").summary("Get a single field value for an entity by name").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("field").type("string").flag("field").required()).run(async (ctx) => {
|
|
9517
|
+
const { sid, id, field } = ctx.params;
|
|
9518
|
+
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
9519
|
+
cwd: process.cwd(),
|
|
9520
|
+
tool: "get_field",
|
|
9521
|
+
args: { id, field }
|
|
9522
|
+
});
|
|
9523
|
+
ctx.stdio.stdout.write(JSON.stringify(result, null, 2) + `
|
|
9524
|
+
`);
|
|
9525
|
+
}).onError({ exitCode: 1 }).build();
|
|
9526
|
+
};
|
|
9527
|
+
var get_field_default = Object.freeze({ create: create44 });
|
|
9528
|
+
|
|
9529
|
+
// src/commands/field/set.js
|
|
9530
|
+
var create45 = ({ httpClient }) => {
|
|
9516
9531
|
return createCommand("set").summary("Set a field value").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("fieldId").type("string").flag("field-id")).param((p) => p.name("fieldName").type("string").flag("field-name")).param((p) => p.name("value").type("string").flag("value")).param((p) => p.name("values").type("string").flag("values")).run(async (ctx) => {
|
|
9517
9532
|
const { sid, id, fieldId, fieldName, value, values } = ctx.params;
|
|
9518
9533
|
const args = { id };
|
|
@@ -9533,10 +9548,10 @@ var create44 = ({ httpClient }) => {
|
|
|
9533
9548
|
`);
|
|
9534
9549
|
}).onError({ exitCode: 1 }).build();
|
|
9535
9550
|
};
|
|
9536
|
-
var set_default = Object.freeze({ create:
|
|
9551
|
+
var set_default = Object.freeze({ create: create45 });
|
|
9537
9552
|
|
|
9538
9553
|
// src/commands/field/delete.js
|
|
9539
|
-
var
|
|
9554
|
+
var create46 = ({ httpClient }) => {
|
|
9540
9555
|
return createCommand("delete").summary("Remove a field from an entity").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("fieldId").type("string").flag("field-id")).param((p) => p.name("fieldName").type("string").flag("field-name")).run(async (ctx) => {
|
|
9541
9556
|
const { sid, id, fieldId, fieldName } = ctx.params;
|
|
9542
9557
|
const args = { id };
|
|
@@ -9553,10 +9568,10 @@ var create45 = ({ httpClient }) => {
|
|
|
9553
9568
|
`);
|
|
9554
9569
|
}).onError({ exitCode: 1 }).build();
|
|
9555
9570
|
};
|
|
9556
|
-
var delete_default3 = Object.freeze({ create:
|
|
9571
|
+
var delete_default3 = Object.freeze({ create: create46 });
|
|
9557
9572
|
|
|
9558
9573
|
// src/commands/field/create-def.js
|
|
9559
|
-
var
|
|
9574
|
+
var create47 = ({ httpClient }) => {
|
|
9560
9575
|
return createCommand("create-def").summary("Create a field definition").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("type").type("string").flag("type").required()).param((p) => p.name("owner").type("string").flag("owner")).param((p) => p.name("typeCode").type("string").flag("type-code")).param((p) => p.name("subtype").type("string").flag("subtype")).param((p) => p.name("label").type("string").flag("label")).param((p) => p.name("description").type("string").flag("description")).param((p) => p.name("required").type("boolean").flag("required")).param((p) => p.name("multiplicity").type("string").flag("multiplicity")).param((p) => p.name("system").type("boolean").flag("system")).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9561
9576
|
const { sid, name, type, owner, typeCode, subtype, label, description, required, multiplicity, system, store } = ctx.params;
|
|
9562
9577
|
const args = { name, primitiveType: type };
|
|
@@ -9587,10 +9602,10 @@ var create46 = ({ httpClient }) => {
|
|
|
9587
9602
|
`);
|
|
9588
9603
|
}).onError({ exitCode: 1 }).build();
|
|
9589
9604
|
};
|
|
9590
|
-
var create_def_default = Object.freeze({ create:
|
|
9605
|
+
var create_def_default = Object.freeze({ create: create47 });
|
|
9591
9606
|
|
|
9592
9607
|
// src/commands/field/list-defs.js
|
|
9593
|
-
var
|
|
9608
|
+
var create48 = ({ httpClient }) => {
|
|
9594
9609
|
return createCommand("list-defs").summary("List field definitions").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("owner").type("string").flag("owner")).param((p) => p.name("includeSystem").type("boolean").flag("include-system")).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9595
9610
|
const { sid, owner, includeSystem, store } = ctx.params;
|
|
9596
9611
|
const args = {};
|
|
@@ -9609,10 +9624,10 @@ var create47 = ({ httpClient }) => {
|
|
|
9609
9624
|
`);
|
|
9610
9625
|
}).onError({ exitCode: 1 }).build();
|
|
9611
9626
|
};
|
|
9612
|
-
var list_defs_default = Object.freeze({ create:
|
|
9627
|
+
var list_defs_default = Object.freeze({ create: create48 });
|
|
9613
9628
|
|
|
9614
9629
|
// src/commands/field/get-type-fields.js
|
|
9615
|
-
var
|
|
9630
|
+
var create49 = ({ httpClient }) => {
|
|
9616
9631
|
return createCommand("get-type-fields").summary("Get field definitions for an entity type/subtype").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("code").type("string").flag("code").required()).param((p) => p.name("subtype").type("string").flag("subtype")).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9617
9632
|
const { sid, code, subtype, store } = ctx.params;
|
|
9618
9633
|
const args = { code };
|
|
@@ -9629,10 +9644,10 @@ var create48 = ({ httpClient }) => {
|
|
|
9629
9644
|
`);
|
|
9630
9645
|
}).onError({ exitCode: 1 }).build();
|
|
9631
9646
|
};
|
|
9632
|
-
var get_type_fields_default = Object.freeze({ create:
|
|
9647
|
+
var get_type_fields_default = Object.freeze({ create: create49 });
|
|
9633
9648
|
|
|
9634
9649
|
// src/commands/field/delete-def.js
|
|
9635
|
-
var
|
|
9650
|
+
var create50 = ({ httpClient }) => {
|
|
9636
9651
|
return createCommand("delete-def").summary("Delete a field definition").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("id").type("string").flag("id").required()).run(async (ctx) => {
|
|
9637
9652
|
const { sid, id } = ctx.params;
|
|
9638
9653
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9644,10 +9659,10 @@ var create49 = ({ httpClient }) => {
|
|
|
9644
9659
|
`);
|
|
9645
9660
|
}).onError({ exitCode: 1 }).build();
|
|
9646
9661
|
};
|
|
9647
|
-
var delete_def_default = Object.freeze({ create:
|
|
9662
|
+
var delete_def_default = Object.freeze({ create: create50 });
|
|
9648
9663
|
|
|
9649
9664
|
// src/commands/story/create.js
|
|
9650
|
-
var
|
|
9665
|
+
var create51 = ({ httpClient }) => {
|
|
9651
9666
|
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("track").type("string").flag("track")).run(async (ctx) => {
|
|
9652
9667
|
const { sid, name, store, state, track } = ctx.params;
|
|
9653
9668
|
const args = { name };
|
|
@@ -9666,10 +9681,10 @@ var create50 = ({ httpClient }) => {
|
|
|
9666
9681
|
`);
|
|
9667
9682
|
}).onError({ exitCode: 1 }).build();
|
|
9668
9683
|
};
|
|
9669
|
-
var create_default3 = Object.freeze({ create:
|
|
9684
|
+
var create_default3 = Object.freeze({ create: create51 });
|
|
9670
9685
|
|
|
9671
9686
|
// src/commands/story/list.js
|
|
9672
|
-
var
|
|
9687
|
+
var create52 = ({ httpClient }) => {
|
|
9673
9688
|
return createCommand("list").summary("List all stories").param((p) => p.name("sid").type("string").flag("sid", "s").required()).param((p) => p.name("store").type("string").flag("store")).run(async (ctx) => {
|
|
9674
9689
|
const { sid, store } = ctx.params;
|
|
9675
9690
|
const args = {};
|
|
@@ -9684,10 +9699,10 @@ var create51 = ({ httpClient }) => {
|
|
|
9684
9699
|
`);
|
|
9685
9700
|
}).onError({ exitCode: 1 }).build();
|
|
9686
9701
|
};
|
|
9687
|
-
var list_default2 = Object.freeze({ create:
|
|
9702
|
+
var list_default2 = Object.freeze({ create: create52 });
|
|
9688
9703
|
|
|
9689
9704
|
// src/commands/story/get.js
|
|
9690
|
-
var
|
|
9705
|
+
var create53 = ({ httpClient }) => {
|
|
9691
9706
|
return createCommand("get").summary("Get story 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) => {
|
|
9692
9707
|
const { sid, id } = ctx.params;
|
|
9693
9708
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9699,10 +9714,10 @@ var create52 = ({ httpClient }) => {
|
|
|
9699
9714
|
`);
|
|
9700
9715
|
}).onError({ exitCode: 1 }).build();
|
|
9701
9716
|
};
|
|
9702
|
-
var get_default3 = Object.freeze({ create:
|
|
9717
|
+
var get_default3 = Object.freeze({ create: create53 });
|
|
9703
9718
|
|
|
9704
9719
|
// src/commands/story/update-state.js
|
|
9705
|
-
var
|
|
9720
|
+
var create54 = ({ httpClient }) => {
|
|
9706
9721
|
return createCommand("update-state").summary("Update story state").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("state").type("string").flag("state").required()).run(async (ctx) => {
|
|
9707
9722
|
const { sid, id, state } = ctx.params;
|
|
9708
9723
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9714,10 +9729,10 @@ var create53 = ({ httpClient }) => {
|
|
|
9714
9729
|
`);
|
|
9715
9730
|
}).onError({ exitCode: 1 }).build();
|
|
9716
9731
|
};
|
|
9717
|
-
var update_state_default = Object.freeze({ create:
|
|
9732
|
+
var update_state_default = Object.freeze({ create: create54 });
|
|
9718
9733
|
|
|
9719
9734
|
// src/commands/story/delete.js
|
|
9720
|
-
var
|
|
9735
|
+
var create55 = ({ httpClient }) => {
|
|
9721
9736
|
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) => {
|
|
9722
9737
|
const { sid, id, confirm } = ctx.params;
|
|
9723
9738
|
const args = { id };
|
|
@@ -9732,10 +9747,10 @@ var create54 = ({ httpClient }) => {
|
|
|
9732
9747
|
`);
|
|
9733
9748
|
}).onError({ exitCode: 1 }).build();
|
|
9734
9749
|
};
|
|
9735
|
-
var delete_default4 = Object.freeze({ create:
|
|
9750
|
+
var delete_default4 = Object.freeze({ create: create55 });
|
|
9736
9751
|
|
|
9737
9752
|
// src/commands/story/inc-jobs.js
|
|
9738
|
-
var
|
|
9753
|
+
var create56 = ({ httpClient }) => {
|
|
9739
9754
|
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) => {
|
|
9740
9755
|
const { sid, id } = ctx.params;
|
|
9741
9756
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9747,10 +9762,10 @@ var create55 = ({ httpClient }) => {
|
|
|
9747
9762
|
`);
|
|
9748
9763
|
}).onError({ exitCode: 1 }).build();
|
|
9749
9764
|
};
|
|
9750
|
-
var inc_jobs_default = Object.freeze({ create:
|
|
9765
|
+
var inc_jobs_default = Object.freeze({ create: create56 });
|
|
9751
9766
|
|
|
9752
9767
|
// src/commands/story/dec-jobs.js
|
|
9753
|
-
var
|
|
9768
|
+
var create57 = ({ httpClient }) => {
|
|
9754
9769
|
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) => {
|
|
9755
9770
|
const { sid, id } = ctx.params;
|
|
9756
9771
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9762,10 +9777,10 @@ var create56 = ({ httpClient }) => {
|
|
|
9762
9777
|
`);
|
|
9763
9778
|
}).onError({ exitCode: 1 }).build();
|
|
9764
9779
|
};
|
|
9765
|
-
var dec_jobs_default = Object.freeze({ create:
|
|
9780
|
+
var dec_jobs_default = Object.freeze({ create: create57 });
|
|
9766
9781
|
|
|
9767
9782
|
// src/commands/track/list.js
|
|
9768
|
-
var
|
|
9783
|
+
var create58 = ({ httpClient }) => {
|
|
9769
9784
|
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) => {
|
|
9770
9785
|
const { sid, store } = ctx.params;
|
|
9771
9786
|
const args = {};
|
|
@@ -9780,10 +9795,10 @@ var create57 = ({ httpClient }) => {
|
|
|
9780
9795
|
`);
|
|
9781
9796
|
}).onError({ exitCode: 1 }).build();
|
|
9782
9797
|
};
|
|
9783
|
-
var list_default3 = Object.freeze({ create:
|
|
9798
|
+
var list_default3 = Object.freeze({ create: create58 });
|
|
9784
9799
|
|
|
9785
9800
|
// src/commands/track/create.js
|
|
9786
|
-
var
|
|
9801
|
+
var create59 = ({ httpClient }) => {
|
|
9787
9802
|
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) => {
|
|
9788
9803
|
const { sid, name, states, store } = ctx.params;
|
|
9789
9804
|
const statesArray = states.split(",").map((s) => s.trim());
|
|
@@ -9799,10 +9814,10 @@ var create58 = ({ httpClient }) => {
|
|
|
9799
9814
|
`);
|
|
9800
9815
|
}).onError({ exitCode: 1 }).build();
|
|
9801
9816
|
};
|
|
9802
|
-
var create_default4 = Object.freeze({ create:
|
|
9817
|
+
var create_default4 = Object.freeze({ create: create59 });
|
|
9803
9818
|
|
|
9804
9819
|
// src/commands/track/update.js
|
|
9805
|
-
var
|
|
9820
|
+
var create60 = ({ httpClient }) => {
|
|
9806
9821
|
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) => {
|
|
9807
9822
|
const { sid, id, name, states } = ctx.params;
|
|
9808
9823
|
const args = { id };
|
|
@@ -9820,10 +9835,10 @@ var create59 = ({ httpClient }) => {
|
|
|
9820
9835
|
`);
|
|
9821
9836
|
}).onError({ exitCode: 1 }).build();
|
|
9822
9837
|
};
|
|
9823
|
-
var update_default = Object.freeze({ create:
|
|
9838
|
+
var update_default = Object.freeze({ create: create60 });
|
|
9824
9839
|
|
|
9825
9840
|
// src/commands/track/delete.js
|
|
9826
|
-
var
|
|
9841
|
+
var create61 = ({ httpClient }) => {
|
|
9827
9842
|
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) => {
|
|
9828
9843
|
const { sid, id } = ctx.params;
|
|
9829
9844
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9835,10 +9850,10 @@ var create60 = ({ httpClient }) => {
|
|
|
9835
9850
|
`);
|
|
9836
9851
|
}).onError({ exitCode: 1 }).build();
|
|
9837
9852
|
};
|
|
9838
|
-
var delete_default5 = Object.freeze({ create:
|
|
9853
|
+
var delete_default5 = Object.freeze({ create: create61 });
|
|
9839
9854
|
|
|
9840
9855
|
// src/commands/template/create.js
|
|
9841
|
-
var
|
|
9856
|
+
var create62 = ({ httpClient }) => {
|
|
9842
9857
|
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) => {
|
|
9843
9858
|
if (ctx.stdin.available && ctx.argv.flags.content) {
|
|
9844
9859
|
return "Cannot use --content when piping stdin";
|
|
@@ -9870,10 +9885,10 @@ var create61 = ({ httpClient }) => {
|
|
|
9870
9885
|
`);
|
|
9871
9886
|
}).onError({ exitCode: 1 }).build();
|
|
9872
9887
|
};
|
|
9873
|
-
var create_default5 = Object.freeze({ create:
|
|
9888
|
+
var create_default5 = Object.freeze({ create: create62 });
|
|
9874
9889
|
|
|
9875
9890
|
// src/commands/template/render.js
|
|
9876
|
-
var
|
|
9891
|
+
var create63 = ({ httpClient }) => {
|
|
9877
9892
|
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) => {
|
|
9878
9893
|
const { sid, id, params, target, path, publish, store } = ctx.params;
|
|
9879
9894
|
const args = { id };
|
|
@@ -9904,10 +9919,10 @@ var create62 = ({ httpClient }) => {
|
|
|
9904
9919
|
`);
|
|
9905
9920
|
}).onError({ exitCode: 1 }).build();
|
|
9906
9921
|
};
|
|
9907
|
-
var render_default = Object.freeze({ create:
|
|
9922
|
+
var render_default = Object.freeze({ create: create63 });
|
|
9908
9923
|
|
|
9909
9924
|
// src/commands/template/params.js
|
|
9910
|
-
var
|
|
9925
|
+
var create64 = ({ httpClient }) => {
|
|
9911
9926
|
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) => {
|
|
9912
9927
|
const { sid, id } = ctx.params;
|
|
9913
9928
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9919,10 +9934,10 @@ var create63 = ({ httpClient }) => {
|
|
|
9919
9934
|
`);
|
|
9920
9935
|
}).onError({ exitCode: 1 }).build();
|
|
9921
9936
|
};
|
|
9922
|
-
var params_default = Object.freeze({ create:
|
|
9937
|
+
var params_default = Object.freeze({ create: create64 });
|
|
9923
9938
|
|
|
9924
9939
|
// src/commands/template/list-by-type.js
|
|
9925
|
-
var
|
|
9940
|
+
var create65 = ({ httpClient }) => {
|
|
9926
9941
|
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) => {
|
|
9927
9942
|
const { sid, typeCode } = ctx.params;
|
|
9928
9943
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9934,10 +9949,10 @@ var create64 = ({ httpClient }) => {
|
|
|
9934
9949
|
`);
|
|
9935
9950
|
}).onError({ exitCode: 1 }).build();
|
|
9936
9951
|
};
|
|
9937
|
-
var list_by_type_default = Object.freeze({ create:
|
|
9952
|
+
var list_by_type_default = Object.freeze({ create: create65 });
|
|
9938
9953
|
|
|
9939
9954
|
// src/commands/job/list.js
|
|
9940
|
-
var
|
|
9955
|
+
var create66 = ({ httpClient }) => {
|
|
9941
9956
|
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) => {
|
|
9942
9957
|
const { sid, store, status } = ctx.params;
|
|
9943
9958
|
const args = {};
|
|
@@ -9954,10 +9969,10 @@ var create65 = ({ httpClient }) => {
|
|
|
9954
9969
|
`);
|
|
9955
9970
|
}).onError({ exitCode: 1 }).build();
|
|
9956
9971
|
};
|
|
9957
|
-
var list_default4 = Object.freeze({ create:
|
|
9972
|
+
var list_default4 = Object.freeze({ create: create66 });
|
|
9958
9973
|
|
|
9959
9974
|
// src/commands/job/get.js
|
|
9960
|
-
var
|
|
9975
|
+
var create67 = ({ httpClient }) => {
|
|
9961
9976
|
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) => {
|
|
9962
9977
|
const { sid, id } = ctx.params;
|
|
9963
9978
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -9969,10 +9984,10 @@ var create66 = ({ httpClient }) => {
|
|
|
9969
9984
|
`);
|
|
9970
9985
|
}).onError({ exitCode: 1 }).build();
|
|
9971
9986
|
};
|
|
9972
|
-
var get_default4 = Object.freeze({ create:
|
|
9987
|
+
var get_default4 = Object.freeze({ create: create67 });
|
|
9973
9988
|
|
|
9974
9989
|
// src/commands/job/create.js
|
|
9975
|
-
var
|
|
9990
|
+
var create68 = ({ httpClient }) => {
|
|
9976
9991
|
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) => {
|
|
9977
9992
|
const { sid, agent, prompt, name, model, workingDirectory, objectId, streaming, blocking } = ctx.params;
|
|
9978
9993
|
const args = { agent, prompt };
|
|
@@ -9997,10 +10012,10 @@ var create67 = ({ httpClient }) => {
|
|
|
9997
10012
|
`);
|
|
9998
10013
|
}).onError({ exitCode: 1 }).build();
|
|
9999
10014
|
};
|
|
10000
|
-
var create_default6 = Object.freeze({ create:
|
|
10015
|
+
var create_default6 = Object.freeze({ create: create68 });
|
|
10001
10016
|
|
|
10002
10017
|
// src/commands/job/continue.js
|
|
10003
|
-
var
|
|
10018
|
+
var create69 = ({ httpClient }) => {
|
|
10004
10019
|
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) => {
|
|
10005
10020
|
const { sid, id, prompt, model, blocking } = ctx.params;
|
|
10006
10021
|
const args = { id, prompt };
|
|
@@ -10017,10 +10032,10 @@ var create68 = ({ httpClient }) => {
|
|
|
10017
10032
|
`);
|
|
10018
10033
|
}).onError({ exitCode: 1 }).build();
|
|
10019
10034
|
};
|
|
10020
|
-
var continue_default = Object.freeze({ create:
|
|
10035
|
+
var continue_default = Object.freeze({ create: create69 });
|
|
10021
10036
|
|
|
10022
10037
|
// src/commands/job/output.js
|
|
10023
|
-
var
|
|
10038
|
+
var create70 = ({ httpClient }) => {
|
|
10024
10039
|
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) => {
|
|
10025
10040
|
const { sid, id } = ctx.params;
|
|
10026
10041
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10032,10 +10047,10 @@ var create69 = ({ httpClient }) => {
|
|
|
10032
10047
|
`);
|
|
10033
10048
|
}).onError({ exitCode: 1 }).build();
|
|
10034
10049
|
};
|
|
10035
|
-
var output_default = Object.freeze({ create:
|
|
10050
|
+
var output_default = Object.freeze({ create: create70 });
|
|
10036
10051
|
|
|
10037
10052
|
// src/commands/job/prompt.js
|
|
10038
|
-
var
|
|
10053
|
+
var create71 = ({ httpClient }) => {
|
|
10039
10054
|
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) => {
|
|
10040
10055
|
const { sid, id } = ctx.params;
|
|
10041
10056
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10047,10 +10062,10 @@ var create70 = ({ httpClient }) => {
|
|
|
10047
10062
|
`);
|
|
10048
10063
|
}).onError({ exitCode: 1 }).build();
|
|
10049
10064
|
};
|
|
10050
|
-
var prompt_default = Object.freeze({ create:
|
|
10065
|
+
var prompt_default = Object.freeze({ create: create71 });
|
|
10051
10066
|
|
|
10052
10067
|
// src/commands/export/list.js
|
|
10053
|
-
var
|
|
10068
|
+
var create72 = ({ httpClient }) => {
|
|
10054
10069
|
return createCommand("list").summary("List available export files").param((p) => p.name("sid").type("string").flag("sid", "s").required()).run(async (ctx) => {
|
|
10055
10070
|
const { sid } = ctx.params;
|
|
10056
10071
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10062,10 +10077,10 @@ var create71 = ({ httpClient }) => {
|
|
|
10062
10077
|
`);
|
|
10063
10078
|
}).onError({ exitCode: 1 }).build();
|
|
10064
10079
|
};
|
|
10065
|
-
var list_default5 = Object.freeze({ create:
|
|
10080
|
+
var list_default5 = Object.freeze({ create: create72 });
|
|
10066
10081
|
|
|
10067
10082
|
// src/commands/export/preview.js
|
|
10068
|
-
var
|
|
10083
|
+
var create73 = ({ httpClient }) => {
|
|
10069
10084
|
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) => {
|
|
10070
10085
|
const { sid, store } = ctx.params;
|
|
10071
10086
|
const args = {};
|
|
@@ -10080,10 +10095,10 @@ var create72 = ({ httpClient }) => {
|
|
|
10080
10095
|
`);
|
|
10081
10096
|
}).onError({ exitCode: 1 }).build();
|
|
10082
10097
|
};
|
|
10083
|
-
var preview_default = Object.freeze({ create:
|
|
10098
|
+
var preview_default = Object.freeze({ create: create73 });
|
|
10084
10099
|
|
|
10085
10100
|
// src/commands/export/export.js
|
|
10086
|
-
var
|
|
10101
|
+
var create74 = ({ httpClient }) => {
|
|
10087
10102
|
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) => {
|
|
10088
10103
|
const { sid, confirm, store } = ctx.params;
|
|
10089
10104
|
const args = {};
|
|
@@ -10100,10 +10115,10 @@ var create73 = ({ httpClient }) => {
|
|
|
10100
10115
|
`);
|
|
10101
10116
|
}).onError({ exitCode: 1 }).build();
|
|
10102
10117
|
};
|
|
10103
|
-
var export_default = Object.freeze({ create:
|
|
10118
|
+
var export_default = Object.freeze({ create: create74 });
|
|
10104
10119
|
|
|
10105
10120
|
// src/commands/export/import.js
|
|
10106
|
-
var
|
|
10121
|
+
var create75 = ({ httpClient }) => {
|
|
10107
10122
|
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) => {
|
|
10108
10123
|
const { sid, filename, store } = ctx.params;
|
|
10109
10124
|
const args = { filename };
|
|
@@ -10118,10 +10133,10 @@ var create74 = ({ httpClient }) => {
|
|
|
10118
10133
|
`);
|
|
10119
10134
|
}).onError({ exitCode: 1 }).build();
|
|
10120
10135
|
};
|
|
10121
|
-
var import_default = Object.freeze({ create:
|
|
10136
|
+
var import_default = Object.freeze({ create: create75 });
|
|
10122
10137
|
|
|
10123
10138
|
// src/commands/asset/read.js
|
|
10124
|
-
var
|
|
10139
|
+
var create76 = ({ httpClient }) => {
|
|
10125
10140
|
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) => {
|
|
10126
10141
|
const { sid, id } = ctx.params;
|
|
10127
10142
|
const result = await httpClient.post(`/cli/mcp-client/${sid}/dispatch`, {
|
|
@@ -10133,10 +10148,10 @@ var create75 = ({ httpClient }) => {
|
|
|
10133
10148
|
`);
|
|
10134
10149
|
}).onError({ exitCode: 1 }).build();
|
|
10135
10150
|
};
|
|
10136
|
-
var read_default2 = Object.freeze({ create:
|
|
10151
|
+
var read_default2 = Object.freeze({ create: create76 });
|
|
10137
10152
|
|
|
10138
10153
|
// src/commands/backfill/content-refs.js
|
|
10139
|
-
var
|
|
10154
|
+
var create77 = ({ httpClient }) => {
|
|
10140
10155
|
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) => {
|
|
10141
10156
|
const { sid, store, confirm, skipPopulated, batchSize } = ctx.params;
|
|
10142
10157
|
const args = {};
|
|
@@ -10157,13 +10172,13 @@ var create76 = ({ httpClient }) => {
|
|
|
10157
10172
|
`);
|
|
10158
10173
|
}).onError({ exitCode: 1 }).build();
|
|
10159
10174
|
};
|
|
10160
|
-
var content_refs_default = Object.freeze({ create:
|
|
10175
|
+
var content_refs_default = Object.freeze({ create: create77 });
|
|
10161
10176
|
|
|
10162
10177
|
// src/cli-main.js
|
|
10163
10178
|
var CAW_URL = process.env.CAW_URL || "https://caw.localhost";
|
|
10164
10179
|
try {
|
|
10165
10180
|
const httpClient = http_client_default.create({ baseUrl: CAW_URL });
|
|
10166
|
-
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("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());
|
|
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());
|
|
10167
10182
|
await app.run(process.argv.slice(2));
|
|
10168
10183
|
} catch (error) {
|
|
10169
10184
|
console.error(`Error: ${error.message}`);
|