@gravity-rail/cli 0.33.0 → 0.33.1

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/lib.js CHANGED
@@ -8624,6 +8624,12 @@ var qualificationsDomain = {
8624
8624
  required: false
8625
8625
  },
8626
8626
  { name: "goal", description: "Goal for the user simulator", required: false },
8627
+ { name: "channel", description: "Run channel: web-chat | web-voice", required: false },
8628
+ {
8629
+ name: "anonymous",
8630
+ description: "Use an anonymous caller: true | false; otherwise inherit scenario",
8631
+ required: false
8632
+ },
8627
8633
  { name: "driver", description: "Driver mode: auto | human", required: false },
8628
8634
  {
8629
8635
  name: "workflow-revision-id",
@@ -8656,7 +8662,17 @@ var qualificationsDomain = {
8656
8662
  required: false
8657
8663
  }
8658
8664
  ],
8659
- handler: async ({ ctx, workspace, args }) => {
8665
+ handler: async ({ ctx, workspace, args, data }) => {
8666
+ if (data !== void 0 || args["data"] !== void 0) {
8667
+ throw new CLIError(
8668
+ "runs start does not accept --data; use --channel, --anonymous and the named run flags"
8669
+ );
8670
+ }
8671
+ const channel = args["channel"];
8672
+ if (channel !== void 0 && channel !== "web-chat" && channel !== "web-voice") {
8673
+ throw new CLIError("--channel must be web-chat or web-voice");
8674
+ }
8675
+ const anonymous = optionalBool(args, "anonymous");
8660
8676
  const driver = args["driver"] === "human" ? DriverMode2.HUMAN : DriverMode2.AUTO;
8661
8677
  const scenarioId = args["scenario-id"] ? requireNumber(args, "scenario-id") : void 0;
8662
8678
  const personaId = args["persona-id"] ? requireNumber(args, "persona-id") : void 0;
@@ -8680,6 +8696,8 @@ var qualificationsDomain = {
8680
8696
  ...args["workflow-revision-id"] ? { workflowRevisionId: requireNumber(args, "workflow-revision-id") } : {},
8681
8697
  ...args["workflow-revision-uuid"] ? { workflowRevisionUuid: String(args["workflow-revision-uuid"]) } : {},
8682
8698
  ...args["goal"] ? { goal: String(args["goal"]) } : {},
8699
+ ...channel !== void 0 ? { channel } : {},
8700
+ ...anonymous !== void 0 ? { anonymous } : {},
8683
8701
  ...args["assistant-chat-model-id"] ? { assistantChatModelId: String(args["assistant-chat-model-id"]) } : {},
8684
8702
  ...args["assistant-realtime-model-id"] ? {
8685
8703
  assistantRealtimeModelId: String(args["assistant-realtime-model-id"])