@workbuddy/cli-edge 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +174 -136
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2141,6 +2141,9 @@ var {
2141
2141
  Help
2142
2142
  } = import__.default;
2143
2143
 
2144
+ // src/index.ts
2145
+ import * as readline from "readline";
2146
+
2144
2147
  // src/secure-store.ts
2145
2148
  import { execFileSync, spawnSync } from "node:child_process";
2146
2149
  import * as fs from "fs";
@@ -2485,10 +2488,10 @@ function buildRequestBody(operation, values) {
2485
2488
  return;
2486
2489
  }
2487
2490
  let body;
2488
- if (typeof values.body === "string" && values.body.length > 0) {
2489
- body = JSON.parse(values.body);
2491
+ if (typeof values.rawBody === "string" && values.rawBody.length > 0) {
2492
+ body = JSON.parse(values.rawBody);
2490
2493
  }
2491
- const bodyFields = operation.options.filter((option) => option.source === "body" && option.optionKey !== "body");
2494
+ const bodyFields = operation.options.filter((option) => option.source === "body" && option.name !== "raw-body");
2492
2495
  if (bodyFields.length === 0) {
2493
2496
  return body;
2494
2497
  }
@@ -2950,13 +2953,13 @@ var operations = [
2950
2953
  description: ""
2951
2954
  },
2952
2955
  {
2953
- name: "body",
2954
- cliName: "body",
2955
- optionKey: "body",
2956
+ name: "raw-body",
2957
+ cliName: "raw-body",
2958
+ optionKey: "rawBody",
2956
2959
  source: "body",
2957
2960
  type: "object",
2958
2961
  required: false,
2959
- description: "Raw request body JSON"
2962
+ description: "Raw request body JSON (overrides individual fields)"
2960
2963
  }
2961
2964
  ],
2962
2965
  hasRequestBody: true
@@ -3008,13 +3011,13 @@ var operations = [
3008
3011
  description: ""
3009
3012
  },
3010
3013
  {
3011
- name: "body",
3012
- cliName: "body",
3013
- optionKey: "body",
3014
+ name: "raw-body",
3015
+ cliName: "raw-body",
3016
+ optionKey: "rawBody",
3014
3017
  source: "body",
3015
3018
  type: "object",
3016
3019
  required: false,
3017
- description: "Raw request body JSON"
3020
+ description: "Raw request body JSON (overrides individual fields)"
3018
3021
  }
3019
3022
  ],
3020
3023
  hasRequestBody: true
@@ -3237,13 +3240,13 @@ var operations = [
3237
3240
  description: ""
3238
3241
  },
3239
3242
  {
3240
- name: "body",
3241
- cliName: "body",
3242
- optionKey: "body",
3243
+ name: "raw-body",
3244
+ cliName: "raw-body",
3245
+ optionKey: "rawBody",
3243
3246
  source: "body",
3244
3247
  type: "object",
3245
3248
  required: false,
3246
- description: "Raw request body JSON"
3249
+ description: "Raw request body JSON (overrides individual fields)"
3247
3250
  }
3248
3251
  ],
3249
3252
  hasRequestBody: true
@@ -3440,13 +3443,13 @@ var operations = [
3440
3443
  description: ""
3441
3444
  },
3442
3445
  {
3443
- name: "body",
3444
- cliName: "body",
3445
- optionKey: "body",
3446
+ name: "raw-body",
3447
+ cliName: "raw-body",
3448
+ optionKey: "rawBody",
3446
3449
  source: "body",
3447
3450
  type: "object",
3448
3451
  required: false,
3449
- description: "Raw request body JSON"
3452
+ description: "Raw request body JSON (overrides individual fields)"
3450
3453
  }
3451
3454
  ],
3452
3455
  hasRequestBody: true
@@ -3704,13 +3707,13 @@ var operations = [
3704
3707
  description: ""
3705
3708
  },
3706
3709
  {
3707
- name: "body",
3708
- cliName: "body",
3709
- optionKey: "body",
3710
+ name: "raw-body",
3711
+ cliName: "raw-body",
3712
+ optionKey: "rawBody",
3710
3713
  source: "body",
3711
3714
  type: "object",
3712
3715
  required: false,
3713
- description: "Raw request body JSON"
3716
+ description: "Raw request body JSON (overrides individual fields)"
3714
3717
  }
3715
3718
  ],
3716
3719
  hasRequestBody: true
@@ -3847,13 +3850,13 @@ var operations = [
3847
3850
  description: ""
3848
3851
  },
3849
3852
  {
3850
- name: "body",
3851
- cliName: "body",
3852
- optionKey: "body",
3853
+ name: "raw-body",
3854
+ cliName: "raw-body",
3855
+ optionKey: "rawBody",
3853
3856
  source: "body",
3854
3857
  type: "object",
3855
3858
  required: false,
3856
- description: "Raw request body JSON"
3859
+ description: "Raw request body JSON (overrides individual fields)"
3857
3860
  }
3858
3861
  ],
3859
3862
  hasRequestBody: true
@@ -3935,13 +3938,13 @@ var operations = [
3935
3938
  description: ""
3936
3939
  },
3937
3940
  {
3938
- name: "body",
3939
- cliName: "body",
3940
- optionKey: "body",
3941
+ name: "raw-body",
3942
+ cliName: "raw-body",
3943
+ optionKey: "rawBody",
3941
3944
  source: "body",
3942
3945
  type: "object",
3943
3946
  required: false,
3944
- description: "Raw request body JSON"
3947
+ description: "Raw request body JSON (overrides individual fields)"
3945
3948
  }
3946
3949
  ],
3947
3950
  hasRequestBody: true
@@ -3974,13 +3977,13 @@ var operations = [
3974
3977
  format: "date-time"
3975
3978
  },
3976
3979
  {
3977
- name: "body",
3978
- cliName: "body",
3979
- optionKey: "body",
3980
+ name: "raw-body",
3981
+ cliName: "raw-body",
3982
+ optionKey: "rawBody",
3980
3983
  source: "body",
3981
3984
  type: "object",
3982
3985
  required: false,
3983
- description: "Raw request body JSON"
3986
+ description: "Raw request body JSON (overrides individual fields)"
3984
3987
  }
3985
3988
  ],
3986
3989
  hasRequestBody: true
@@ -4012,13 +4015,13 @@ var operations = [
4012
4015
  description: ""
4013
4016
  },
4014
4017
  {
4015
- name: "body",
4016
- cliName: "body",
4017
- optionKey: "body",
4018
+ name: "raw-body",
4019
+ cliName: "raw-body",
4020
+ optionKey: "rawBody",
4018
4021
  source: "body",
4019
4022
  type: "object",
4020
4023
  required: false,
4021
- description: "Raw request body JSON"
4024
+ description: "Raw request body JSON (overrides individual fields)"
4022
4025
  }
4023
4026
  ],
4024
4027
  hasRequestBody: true
@@ -4060,13 +4063,13 @@ var operations = [
4060
4063
  description: ""
4061
4064
  },
4062
4065
  {
4063
- name: "body",
4064
- cliName: "body",
4065
- optionKey: "body",
4066
+ name: "raw-body",
4067
+ cliName: "raw-body",
4068
+ optionKey: "rawBody",
4066
4069
  source: "body",
4067
4070
  type: "object",
4068
4071
  required: false,
4069
- description: "Raw request body JSON"
4072
+ description: "Raw request body JSON (overrides individual fields)"
4070
4073
  }
4071
4074
  ],
4072
4075
  hasRequestBody: true
@@ -4183,13 +4186,13 @@ var operations = [
4183
4186
  description: ""
4184
4187
  },
4185
4188
  {
4186
- name: "body",
4187
- cliName: "body",
4188
- optionKey: "body",
4189
+ name: "raw-body",
4190
+ cliName: "raw-body",
4191
+ optionKey: "rawBody",
4189
4192
  source: "body",
4190
4193
  type: "object",
4191
4194
  required: false,
4192
- description: "Raw request body JSON"
4195
+ description: "Raw request body JSON (overrides individual fields)"
4193
4196
  }
4194
4197
  ],
4195
4198
  hasRequestBody: true
@@ -4372,13 +4375,13 @@ var operations = [
4372
4375
  description: ""
4373
4376
  },
4374
4377
  {
4375
- name: "body",
4376
- cliName: "body",
4377
- optionKey: "body",
4378
+ name: "raw-body",
4379
+ cliName: "raw-body",
4380
+ optionKey: "rawBody",
4378
4381
  source: "body",
4379
4382
  type: "object",
4380
4383
  required: false,
4381
- description: "Raw request body JSON"
4384
+ description: "Raw request body JSON (overrides individual fields)"
4382
4385
  }
4383
4386
  ],
4384
4387
  hasRequestBody: true
@@ -4563,13 +4566,13 @@ var operations = [
4563
4566
  description: ""
4564
4567
  },
4565
4568
  {
4566
- name: "body",
4567
- cliName: "body",
4568
- optionKey: "body",
4569
+ name: "raw-body",
4570
+ cliName: "raw-body",
4571
+ optionKey: "rawBody",
4569
4572
  source: "body",
4570
4573
  type: "object",
4571
4574
  required: false,
4572
- description: "Raw request body JSON"
4575
+ description: "Raw request body JSON (overrides individual fields)"
4573
4576
  }
4574
4577
  ],
4575
4578
  hasRequestBody: true
@@ -4732,13 +4735,13 @@ var operations = [
4732
4735
  description: ""
4733
4736
  },
4734
4737
  {
4735
- name: "body",
4736
- cliName: "body-body",
4737
- optionKey: "bodyBody",
4738
+ name: "raw-body",
4739
+ cliName: "raw-body",
4740
+ optionKey: "rawBody",
4738
4741
  source: "body",
4739
4742
  type: "object",
4740
4743
  required: false,
4741
- description: "Raw request body JSON"
4744
+ description: "Raw request body JSON (overrides individual fields)"
4742
4745
  }
4743
4746
  ],
4744
4747
  hasRequestBody: true
@@ -4842,13 +4845,13 @@ var operations = [
4842
4845
  description: ""
4843
4846
  },
4844
4847
  {
4845
- name: "body",
4846
- cliName: "body-body",
4847
- optionKey: "bodyBody",
4848
+ name: "raw-body",
4849
+ cliName: "raw-body",
4850
+ optionKey: "rawBody",
4848
4851
  source: "body",
4849
4852
  type: "object",
4850
4853
  required: false,
4851
- description: "Raw request body JSON"
4854
+ description: "Raw request body JSON (overrides individual fields)"
4852
4855
  }
4853
4856
  ],
4854
4857
  hasRequestBody: true
@@ -4916,13 +4919,13 @@ var operations = [
4916
4919
  description: ""
4917
4920
  },
4918
4921
  {
4919
- name: "body",
4920
- cliName: "body-body",
4921
- optionKey: "bodyBody",
4922
+ name: "raw-body",
4923
+ cliName: "raw-body",
4924
+ optionKey: "rawBody",
4922
4925
  source: "body",
4923
4926
  type: "object",
4924
4927
  required: false,
4925
- description: "Raw request body JSON"
4928
+ description: "Raw request body JSON (overrides individual fields)"
4926
4929
  }
4927
4930
  ],
4928
4931
  hasRequestBody: true
@@ -5019,13 +5022,13 @@ var operations = [
5019
5022
  description: ""
5020
5023
  },
5021
5024
  {
5022
- name: "body",
5023
- cliName: "body-body",
5024
- optionKey: "bodyBody",
5025
+ name: "raw-body",
5026
+ cliName: "raw-body",
5027
+ optionKey: "rawBody",
5025
5028
  source: "body",
5026
5029
  type: "object",
5027
5030
  required: false,
5028
- description: "Raw request body JSON"
5031
+ description: "Raw request body JSON (overrides individual fields)"
5029
5032
  }
5030
5033
  ],
5031
5034
  hasRequestBody: true
@@ -5075,13 +5078,13 @@ var operations = [
5075
5078
  description: ""
5076
5079
  },
5077
5080
  {
5078
- name: "body",
5079
- cliName: "body-body",
5080
- optionKey: "bodyBody",
5081
+ name: "raw-body",
5082
+ cliName: "raw-body",
5083
+ optionKey: "rawBody",
5081
5084
  source: "body",
5082
5085
  type: "object",
5083
5086
  required: false,
5084
- description: "Raw request body JSON"
5087
+ description: "Raw request body JSON (overrides individual fields)"
5085
5088
  }
5086
5089
  ],
5087
5090
  hasRequestBody: true
@@ -5254,13 +5257,13 @@ var operations = [
5254
5257
  description: ""
5255
5258
  },
5256
5259
  {
5257
- name: "body",
5258
- cliName: "body-body",
5259
- optionKey: "bodyBody",
5260
+ name: "raw-body",
5261
+ cliName: "raw-body",
5262
+ optionKey: "rawBody",
5260
5263
  source: "body",
5261
5264
  type: "object",
5262
5265
  required: false,
5263
- description: "Raw request body JSON"
5266
+ description: "Raw request body JSON (overrides individual fields)"
5264
5267
  }
5265
5268
  ],
5266
5269
  hasRequestBody: true
@@ -5373,13 +5376,13 @@ var operations = [
5373
5376
  description: ""
5374
5377
  },
5375
5378
  {
5376
- name: "body",
5377
- cliName: "body-body",
5378
- optionKey: "bodyBody",
5379
+ name: "raw-body",
5380
+ cliName: "raw-body",
5381
+ optionKey: "rawBody",
5379
5382
  source: "body",
5380
5383
  type: "object",
5381
5384
  required: false,
5382
- description: "Raw request body JSON"
5385
+ description: "Raw request body JSON (overrides individual fields)"
5383
5386
  }
5384
5387
  ],
5385
5388
  hasRequestBody: true
@@ -5456,13 +5459,13 @@ var operations = [
5456
5459
  description: ""
5457
5460
  },
5458
5461
  {
5459
- name: "body",
5460
- cliName: "body-body",
5461
- optionKey: "bodyBody",
5462
+ name: "raw-body",
5463
+ cliName: "raw-body",
5464
+ optionKey: "rawBody",
5462
5465
  source: "body",
5463
5466
  type: "object",
5464
5467
  required: false,
5465
- description: "Raw request body JSON"
5468
+ description: "Raw request body JSON (overrides individual fields)"
5466
5469
  }
5467
5470
  ],
5468
5471
  hasRequestBody: true
@@ -5568,13 +5571,13 @@ var operations = [
5568
5571
  description: ""
5569
5572
  },
5570
5573
  {
5571
- name: "body",
5572
- cliName: "body-body",
5573
- optionKey: "bodyBody",
5574
+ name: "raw-body",
5575
+ cliName: "raw-body",
5576
+ optionKey: "rawBody",
5574
5577
  source: "body",
5575
5578
  type: "object",
5576
5579
  required: false,
5577
- description: "Raw request body JSON"
5580
+ description: "Raw request body JSON (overrides individual fields)"
5578
5581
  }
5579
5582
  ],
5580
5583
  hasRequestBody: true
@@ -5633,13 +5636,13 @@ var operations = [
5633
5636
  description: ""
5634
5637
  },
5635
5638
  {
5636
- name: "body",
5637
- cliName: "body-body",
5638
- optionKey: "bodyBody",
5639
+ name: "raw-body",
5640
+ cliName: "raw-body",
5641
+ optionKey: "rawBody",
5639
5642
  source: "body",
5640
5643
  type: "object",
5641
5644
  required: false,
5642
- description: "Raw request body JSON"
5645
+ description: "Raw request body JSON (overrides individual fields)"
5643
5646
  }
5644
5647
  ],
5645
5648
  hasRequestBody: true
@@ -5988,13 +5991,13 @@ var operations = [
5988
5991
  description: ""
5989
5992
  },
5990
5993
  {
5991
- name: "body",
5992
- cliName: "body",
5993
- optionKey: "body",
5994
+ name: "raw-body",
5995
+ cliName: "raw-body",
5996
+ optionKey: "rawBody",
5994
5997
  source: "body",
5995
5998
  type: "object",
5996
5999
  required: false,
5997
- description: "Raw request body JSON"
6000
+ description: "Raw request body JSON (overrides individual fields)"
5998
6001
  }
5999
6002
  ],
6000
6003
  hasRequestBody: true
@@ -6147,13 +6150,13 @@ var operations = [
6147
6150
  description: ""
6148
6151
  },
6149
6152
  {
6150
- name: "body",
6151
- cliName: "body",
6152
- optionKey: "body",
6153
+ name: "raw-body",
6154
+ cliName: "raw-body",
6155
+ optionKey: "rawBody",
6153
6156
  source: "body",
6154
6157
  type: "object",
6155
6158
  required: false,
6156
- description: "Raw request body JSON"
6159
+ description: "Raw request body JSON (overrides individual fields)"
6157
6160
  }
6158
6161
  ],
6159
6162
  hasRequestBody: true
@@ -6304,13 +6307,13 @@ var operations = [
6304
6307
  description: ""
6305
6308
  },
6306
6309
  {
6307
- name: "body",
6308
- cliName: "body",
6309
- optionKey: "body",
6310
+ name: "raw-body",
6311
+ cliName: "raw-body",
6312
+ optionKey: "rawBody",
6310
6313
  source: "body",
6311
6314
  type: "object",
6312
6315
  required: false,
6313
- description: "Raw request body JSON"
6316
+ description: "Raw request body JSON (overrides individual fields)"
6314
6317
  }
6315
6318
  ],
6316
6319
  hasRequestBody: true
@@ -6445,13 +6448,13 @@ var operations = [
6445
6448
  description: ""
6446
6449
  },
6447
6450
  {
6448
- name: "body",
6449
- cliName: "body",
6450
- optionKey: "body",
6451
+ name: "raw-body",
6452
+ cliName: "raw-body",
6453
+ optionKey: "rawBody",
6451
6454
  source: "body",
6452
6455
  type: "object",
6453
6456
  required: false,
6454
- description: "Raw request body JSON"
6457
+ description: "Raw request body JSON (overrides individual fields)"
6455
6458
  }
6456
6459
  ],
6457
6460
  hasRequestBody: true
@@ -6622,13 +6625,13 @@ var operations = [
6622
6625
  description: ""
6623
6626
  },
6624
6627
  {
6625
- name: "body",
6626
- cliName: "body",
6627
- optionKey: "body",
6628
+ name: "raw-body",
6629
+ cliName: "raw-body",
6630
+ optionKey: "rawBody",
6628
6631
  source: "body",
6629
6632
  type: "object",
6630
6633
  required: false,
6631
- description: "Raw request body JSON"
6634
+ description: "Raw request body JSON (overrides individual fields)"
6632
6635
  }
6633
6636
  ],
6634
6637
  hasRequestBody: true
@@ -6797,13 +6800,13 @@ var operations = [
6797
6800
  description: ""
6798
6801
  },
6799
6802
  {
6800
- name: "body",
6801
- cliName: "body",
6802
- optionKey: "body",
6803
+ name: "raw-body",
6804
+ cliName: "raw-body",
6805
+ optionKey: "rawBody",
6803
6806
  source: "body",
6804
6807
  type: "object",
6805
6808
  required: false,
6806
- description: "Raw request body JSON"
6809
+ description: "Raw request body JSON (overrides individual fields)"
6807
6810
  }
6808
6811
  ],
6809
6812
  hasRequestBody: true
@@ -7748,13 +7751,13 @@ var operations = [
7748
7751
  description: "Opaque event payload supplied by the external agent"
7749
7752
  },
7750
7753
  {
7751
- name: "body",
7752
- cliName: "body",
7753
- optionKey: "body",
7754
+ name: "raw-body",
7755
+ cliName: "raw-body",
7756
+ optionKey: "rawBody",
7754
7757
  source: "body",
7755
7758
  type: "object",
7756
7759
  required: false,
7757
- description: "Raw request body JSON"
7760
+ description: "Raw request body JSON (overrides individual fields)"
7758
7761
  }
7759
7762
  ],
7760
7763
  hasRequestBody: true
@@ -7795,13 +7798,13 @@ var operations = [
7795
7798
  description: "Opaque action resolution payload supplied by the external agent"
7796
7799
  },
7797
7800
  {
7798
- name: "body",
7799
- cliName: "body",
7800
- optionKey: "body",
7801
+ name: "raw-body",
7802
+ cliName: "raw-body",
7803
+ optionKey: "rawBody",
7801
7804
  source: "body",
7802
7805
  type: "object",
7803
7806
  required: false,
7804
- description: "Raw request body JSON"
7807
+ description: "Raw request body JSON (overrides individual fields)"
7805
7808
  }
7806
7809
  ],
7807
7810
  hasRequestBody: true
@@ -7862,13 +7865,13 @@ var operations = [
7862
7865
  description: ""
7863
7866
  },
7864
7867
  {
7865
- name: "body",
7866
- cliName: "body",
7867
- optionKey: "body",
7868
+ name: "raw-body",
7869
+ cliName: "raw-body",
7870
+ optionKey: "rawBody",
7868
7871
  source: "body",
7869
7872
  type: "object",
7870
7873
  required: false,
7871
- description: "Raw request body JSON"
7874
+ description: "Raw request body JSON (overrides individual fields)"
7872
7875
  }
7873
7876
  ],
7874
7877
  hasRequestBody: true
@@ -7967,6 +7970,34 @@ function isPlainObject2(value) {
7967
7970
 
7968
7971
  // src/index.ts
7969
7972
  var OUTPUT_FORMATS = new Set(["json", "table", "raw"]);
7973
+ function prompt(question, mask = false) {
7974
+ return new Promise((resolve) => {
7975
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
7976
+ if (mask) {
7977
+ const stdout = process.stdout;
7978
+ const onData = (char) => {
7979
+ const c = char.toString();
7980
+ if (c === `
7981
+ ` || c === "\r" || c === "\x04")
7982
+ return;
7983
+ stdout.clearLine(0);
7984
+ stdout.cursorTo(0);
7985
+ stdout.write(question + "*".repeat(rl.line.length));
7986
+ };
7987
+ process.stdin.on("data", onData);
7988
+ rl.question(question, (answer) => {
7989
+ process.stdin.removeListener("data", onData);
7990
+ rl.close();
7991
+ resolve(answer.trim());
7992
+ });
7993
+ } else {
7994
+ rl.question(question, (answer) => {
7995
+ rl.close();
7996
+ resolve(answer.trim());
7997
+ });
7998
+ }
7999
+ });
8000
+ }
7970
8001
  async function main() {
7971
8002
  const program2 = new Command;
7972
8003
  program2.name("workbuddy").description("WorkBuddy CLI").version(packageVersion);
@@ -7976,12 +8007,19 @@ async function main() {
7976
8007
  }
7977
8008
  function registerAuthCommands(program2) {
7978
8009
  const auth = program2.command("auth").description("Manage WorkBuddy CLI credentials");
7979
- auth.command("login").description("Store WorkBuddy API credentials locally").requiredOption("--base-url <url>", "Tenant base URL").requiredOption("--client-id <id>", "OAuth2 client ID").requiredOption("--client-secret <secret>", "OAuth2 client secret").option("--api-version <version>", "WorkBuddy API version header", "2026-01").option("--profile <name>", "Profile name", getActiveProfileName()).action(async (options) => {
8010
+ auth.command("login").description("Store WorkBuddy API credentials locally").option("--base-url <url>", "Tenant base URL (required)").option("--client-id <id>", "OAuth2 client ID (required)").option("--client-secret <secret>", "OAuth2 client secret (required, prompted if omitted)").option("--api-version <version>", "WorkBuddy API version header", "2026-01").option("--profile <name>", "Profile name", getActiveProfileName()).action(async (options) => {
8011
+ const baseUrl = options.baseUrl || await prompt("Tenant URL (e.g. https://yourcompany.workbuddy.com): ");
8012
+ const clientId = options.clientId || await prompt("Client ID: ");
8013
+ const clientSecret = options.clientSecret || await prompt("Client Secret: ", true);
8014
+ if (!baseUrl || !clientId || !clientSecret) {
8015
+ throw new Error("base-url, client-id, and client-secret are required");
8016
+ }
8017
+ console.log("");
7980
8018
  const config = resolveConfig({
7981
8019
  profile: options.profile,
7982
- baseUrl: options.baseUrl,
7983
- clientId: options.clientId,
7984
- clientSecret: options.clientSecret,
8020
+ baseUrl,
8021
+ clientId,
8022
+ clientSecret,
7985
8023
  apiVersion: options.apiVersion,
7986
8024
  accessToken: undefined
7987
8025
  });
@@ -8108,7 +8146,7 @@ function buildOptionDescription(option) {
8108
8146
  return parts.join(" ");
8109
8147
  }
8110
8148
  function validateRequiredOptions(operation, values) {
8111
- const hasBody = typeof values.body === "string" && values.body.length > 0;
8149
+ const hasBody = typeof values.rawBody === "string" && values.rawBody.length > 0;
8112
8150
  const missing = operation.options.filter((option) => {
8113
8151
  if (!option.required) {
8114
8152
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workbuddy/cli-edge",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "WorkBuddy command line interface",
5
5
  "license": "MIT",
6
6
  "type": "module",