@getmagical/cli 0.9.0 → 0.9.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/index.js CHANGED
@@ -13232,7 +13232,7 @@ var magicalBaseModels = [
13232
13232
  ];
13233
13233
  var DEFAULT_MODEL = "gemini-2.5-flash";
13234
13234
  var modelOptionsSchema = z11.object({
13235
- reasoningEffort: z11.enum(["low", "medium", "high"]).optional().describe("Reasoning effort level for models that support it (e.g., o1, o3). Higher effort may produce better results but takes longer."),
13235
+ reasoningEffort: z11.enum(["low", "medium", "high", "xhigh"]).optional().describe("Reasoning effort level for models that support it. Higher effort may produce better results but takes longer. The xhigh level is available on supported OpenAI models."),
13236
13236
  temperature: z11.number().min(0).max(2).optional().describe("Controls randomness in model output. 0 is deterministic, higher values (up to 2) increase creativity and randomness."),
13237
13237
  timeoutMs: z11.number().int().min(1).optional().describe("Maximum time to wait for an LLM provider request before failing through the normal result path.")
13238
13238
  });
@@ -15581,6 +15581,7 @@ var automationRunSlaSchema = z27.object({
15581
15581
  type: automationRunSlaTypeSchema.optional().default("all").describe("SLA policy type that applies to this automation run.")
15582
15582
  }).superRefine(refineAutomationRunSlaTimestampOrder).describe("Optional service-level timing metadata for queueing and runtime consumers of this automation run.");
15583
15583
  var automationRunConfigBaseSchema = z27.object({
15584
+ branchId: z27.uuid().nullable().default(null).describe("Infrastructure-owned originating draft branch ID. Null and omitted legacy values identify main. Branch identity remains fixed for the lifetime of the run."),
15584
15585
  approvalMode: z27.enum(["HUMAN_APPROVAL", "OFF"]).default("OFF"),
15585
15586
  consistencyCheckCount: z27.number().int().nonnegative().max(CONSISTENCY_CHECK_COUNT_MAX).nullable().default(null),
15586
15587
  settingsSourceAgentId: z27.uuid().nullable().optional().describe("Optional provenance/debug field recording which top-level agent supplied canonical run settings when the run started. Runtime consumers must not use this as a live pointer once resolvedRunSettingsSource has been decided."),
@@ -15613,6 +15614,7 @@ var automationRunConfigSchema = automationRunConfigBaseSchema.superRefine((confi
15613
15614
  var automationRunStartConfigSchema = automationRunConfigBaseSchema.omit({
15614
15615
  allowPointOfNoReturnOverride: true,
15615
15616
  automationVersionPinned: true,
15617
+ branchId: true,
15616
15618
  credentialVariableResourcePools: true,
15617
15619
  implicitNetworkTrafficRecordingDecision: true,
15618
15620
  networkTrafficCapture: true,
@@ -20076,7 +20078,7 @@ mutation ApplyAutomationPatch(
20076
20078
  branchContext: "optional",
20077
20079
  name: "update-automation-by-id",
20078
20080
  path: ["automations", "update"],
20079
- description: "Update an automation. Inspect publishChecks and repair blocking failures before completing the task. Changing agent types is not supported. Do not attempt type changes or replacement workarounds.",
20081
+ description: "Update an automation. Inspect publishChecks and repair blocking failures before completing the task. Changing an existing agent's type in place is not supported. To change its type, create a replacement agent, update references to the replacement, and remove the original agent.",
20080
20082
  resultKey: "updateAutomation",
20081
20083
  options: [
20082
20084
  stringOption({
@@ -20894,15 +20896,15 @@ var agentRunPathwaySignatureResponseSchema = z29.union([
20894
20896
  var pathwayRegressionRunStatusSchema = z29.enum([
20895
20897
  "queued",
20896
20898
  "running",
20897
- "passed",
20898
- "failed",
20899
+ "matched",
20900
+ "deviated",
20899
20901
  "inconclusive",
20900
20902
  "errored"
20901
20903
  ]);
20902
20904
  var pathwayRegressionReplayIterationStatusSchema = z29.enum([
20903
20905
  "running",
20904
- "passed",
20905
- "failed",
20906
+ "matched",
20907
+ "deviated",
20906
20908
  "inconclusive",
20907
20909
  "errored"
20908
20910
  ]);
@@ -20940,8 +20942,8 @@ var pathwayRegressionAgentVersionRunPathStatusSchema = z29.enum([
20940
20942
  var pathwayRegressionAgentVersionRunStatusSchema = z29.enum([
20941
20943
  "queued",
20942
20944
  "running",
20943
- "passed",
20944
- "failed",
20945
+ "matched",
20946
+ "deviated",
20945
20947
  "inconclusive",
20946
20948
  "errored",
20947
20949
  "not_started"
@@ -21025,10 +21027,10 @@ var pathwayRegressionAgentVersionRunResponseSchema = z29.union([
21025
21027
  pathwayRegressionAgentVersionRegressionRunResponseSchema
21026
21028
  ]);
21027
21029
  var pathwayRegressionCheckSummarySchema = z29.object({
21030
+ deviated: z29.number(),
21028
21031
  errored: z29.number(),
21029
- failed: z29.number(),
21030
21032
  inconclusive: z29.number(),
21031
- passed: z29.number(),
21033
+ matched: z29.number(),
21032
21034
  plannedTotal: z29.number(),
21033
21035
  total: z29.number()
21034
21036
  });
@@ -21054,7 +21056,7 @@ var pathwayRegressionReplayCheckResultSchema = z29.object({
21054
21056
  llmRequestId: z29.string().min(1).nullable(),
21055
21057
  modelId: z29.string().min(1).nullable(),
21056
21058
  outputResult: z29.unknown().nullable(),
21057
- status: z29.enum(["passed", "failed", "errored"]),
21059
+ status: z29.enum(["matched", "deviated", "errored"]),
21058
21060
  strictExactMatch: z29.boolean().nullable()
21059
21061
  });
21060
21062
  var pathwayRegressionReplayIterationCheckResultsResponseSchema = z29.object({
@@ -21102,16 +21104,16 @@ var regressionTestPathwayStatusSchema = z29.enum([
21102
21104
  "no_matching_runs",
21103
21105
  "queued",
21104
21106
  "running",
21105
- "passed",
21106
- "failed",
21107
+ "matched",
21108
+ "deviated",
21107
21109
  "inconclusive",
21108
21110
  "errored"
21109
21111
  ]);
21110
21112
  var regressionTestStatusSchema = z29.enum([
21111
21113
  "queued",
21112
21114
  "running",
21113
- "passed",
21114
- "failed",
21115
+ "matched",
21116
+ "deviated",
21115
21117
  "inconclusive",
21116
21118
  "errored"
21117
21119
  ]);
@@ -21130,9 +21132,9 @@ var regressionTestKickoffResponseSchema = z29.object({
21130
21132
  status: regressionTestStatusSchema
21131
21133
  });
21132
21134
  var regressionTestIterationCountsSchema = z29.object({
21135
+ deviated: z29.number(),
21133
21136
  errored: z29.number(),
21134
- failed: z29.number(),
21135
- passed: z29.number(),
21137
+ matched: z29.number(),
21136
21138
  total: z29.number()
21137
21139
  });
21138
21140
  var regressionTestBaselineRunSummarySchema = z29.object({
@@ -21161,23 +21163,23 @@ var regressionTestBaselineStepSchema = z29.object({
21161
21163
  id: z29.string().min(1),
21162
21164
  iterationIndex: z29.number()
21163
21165
  });
21164
- var regressionTestFailedToolCallSchema = z29.object({
21166
+ var regressionTestDeviatedToolCallSchema = z29.object({
21165
21167
  count: z29.number(),
21166
21168
  observedToolCall: z29.unknown()
21167
21169
  });
21168
- var regressionTestFailedIterationSchema = z29.object({
21170
+ var regressionTestDeviatedIterationSchema = z29.object({
21169
21171
  baselineIterationId: z29.string().min(1),
21170
- failedToolCalls: z29.array(regressionTestFailedToolCallSchema)
21172
+ deviatedToolCalls: z29.array(regressionTestDeviatedToolCallSchema)
21171
21173
  });
21172
21174
  var regressionTestReplayCountsSchema = z29.object({
21175
+ deviated: z29.number(),
21173
21176
  errored: z29.number(),
21174
- failed: z29.number(),
21175
- passed: z29.number()
21177
+ matched: z29.number()
21176
21178
  });
21177
21179
  var regressionTestBaselineRunSchema = z29.object({
21178
21180
  baselineAgentRunId: z29.string().min(1),
21179
21181
  baselineIterations: z29.array(regressionTestBaselineStepSchema),
21180
- failedIterations: z29.array(regressionTestFailedIterationSchema),
21182
+ deviatedIterations: z29.array(regressionTestDeviatedIterationSchema),
21181
21183
  replayCounts: regressionTestReplayCountsSchema
21182
21184
  });
21183
21185
  var regressionTestPathwayDetailSchema = z29.object({
@@ -28977,8 +28979,8 @@ var SESSION_ONLY_API_KEY_MANAGEMENT_COMMANDS = /* @__PURE__ */ new Set([
28977
28979
  import { setTimeout as sleep } from "node:timers/promises";
28978
28980
  import { Command as Command4, Option as Option4 } from "commander";
28979
28981
  var REGRESSION_TEST_TERMINAL_STATUSES = /* @__PURE__ */ new Set([
28980
- "passed",
28981
- "failed",
28982
+ "matched",
28983
+ "deviated",
28982
28984
  "inconclusive",
28983
28985
  "errored"
28984
28986
  ]);
@@ -29024,11 +29026,11 @@ function summarizeRegressionTestPathway(result) {
29024
29026
  baselineAgentRunId: run.baselineAgentRunId,
29025
29027
  replayCounts: run.replayCounts,
29026
29028
  baselineIterationCount: run.baselineIterations.length,
29027
- failedIterations: run.failedIterations.map((fi) => ({
29028
- baselineIterationId: fi.baselineIterationId,
29029
- failedToolCalls: fi.failedToolCalls.map((ftc) => ({
29030
- observedToolCall: ftc.observedToolCall,
29031
- count: ftc.count
29029
+ deviatedIterations: run.deviatedIterations.map((iteration) => ({
29030
+ baselineIterationId: iteration.baselineIterationId,
29031
+ deviatedToolCalls: iteration.deviatedToolCalls.map((toolCall) => ({
29032
+ observedToolCall: toolCall.observedToolCall,
29033
+ count: toolCall.count
29032
29034
  }))
29033
29035
  }))
29034
29036
  }))
@@ -31712,7 +31714,7 @@ function summarizePathwayRegressionResult(result) {
31712
31714
  baselineAutomationRunId: replay.baselineAutomationRunId,
31713
31715
  status: replay.status,
31714
31716
  checks: replay.checks,
31715
- nonPassingIterations: replay.iterations.filter((iteration) => iteration.status !== "passed").map((iteration) => ({
31717
+ nonMatchingIterations: replay.iterations.filter((iteration) => iteration.status !== "matched").map((iteration) => ({
31716
31718
  regressionReplayIterationId: iteration.id,
31717
31719
  sequence: iteration.sequence,
31718
31720
  status: iteration.status,