@getmagical/cli 0.3.2 → 0.4.0
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 +52 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15340,6 +15340,7 @@ query DiffAgentVersion(
|
|
|
15340
15340
|
query GetAgentRun($id: ID!) {
|
|
15341
15341
|
agentRun(id: $id) {
|
|
15342
15342
|
id
|
|
15343
|
+
agentId
|
|
15343
15344
|
agentVersionId
|
|
15344
15345
|
agentName
|
|
15345
15346
|
status
|
|
@@ -15566,12 +15567,15 @@ query GetAutomationRun($id: ID!) {
|
|
|
15566
15567
|
automationRun(id: $id) {
|
|
15567
15568
|
id
|
|
15568
15569
|
automationId
|
|
15570
|
+
automationVersionId
|
|
15569
15571
|
parentAutomationRunId
|
|
15570
15572
|
status
|
|
15571
15573
|
statusDetail
|
|
15572
15574
|
summary
|
|
15573
15575
|
invocationType
|
|
15574
15576
|
input
|
|
15577
|
+
initialStore
|
|
15578
|
+
currentStore
|
|
15575
15579
|
additionalPrompt
|
|
15576
15580
|
debugUrl
|
|
15577
15581
|
createdAt
|
|
@@ -15606,6 +15610,7 @@ query GetAutomationRun($id: ID!) {
|
|
|
15606
15610
|
query GetAutomationRunAgentRuns($automationRunId: ID!) {
|
|
15607
15611
|
automationRunAgentRuns(automationRunId: $automationRunId) {
|
|
15608
15612
|
id
|
|
15613
|
+
agentId
|
|
15609
15614
|
agentVersionId
|
|
15610
15615
|
agentName
|
|
15611
15616
|
status
|
|
@@ -15625,6 +15630,7 @@ query GetAutomationRunAgentRuns($automationRunId: ID!) {
|
|
|
15625
15630
|
automationRunId: z27.string().min(1),
|
|
15626
15631
|
agentRunId: z27.string().min(1).optional(),
|
|
15627
15632
|
limit: z27.number().int().positive().optional(),
|
|
15633
|
+
page: z27.number().int().nonnegative().optional(),
|
|
15628
15634
|
reverse: z27.boolean().optional()
|
|
15629
15635
|
}),
|
|
15630
15636
|
cli: {
|
|
@@ -15649,6 +15655,11 @@ query GetAutomationRunAgentRuns($automationRunId: ID!) {
|
|
|
15649
15655
|
flagName: "limit",
|
|
15650
15656
|
description: "Maximum number of iterations to return."
|
|
15651
15657
|
}),
|
|
15658
|
+
numberOption({
|
|
15659
|
+
inputKey: "page",
|
|
15660
|
+
flagName: "page",
|
|
15661
|
+
description: "Zero-based page number."
|
|
15662
|
+
}),
|
|
15652
15663
|
booleanOption({
|
|
15653
15664
|
inputKey: "reverse",
|
|
15654
15665
|
flagName: "reverse",
|
|
@@ -15662,18 +15673,21 @@ query GetAutomationRunIterations(
|
|
|
15662
15673
|
$automationRunId: ID!
|
|
15663
15674
|
$agentRunId: ID
|
|
15664
15675
|
$limit: Int
|
|
15676
|
+
$page: Int
|
|
15665
15677
|
$reverse: Boolean
|
|
15666
15678
|
) {
|
|
15667
15679
|
automationRunIterations(
|
|
15668
15680
|
automationRunId: $automationRunId
|
|
15669
15681
|
agentRunId: $agentRunId
|
|
15670
15682
|
limit: $limit
|
|
15683
|
+
page: $page
|
|
15671
15684
|
reverse: $reverse
|
|
15672
15685
|
) {
|
|
15673
15686
|
id
|
|
15674
15687
|
sequence
|
|
15675
15688
|
agentRunId
|
|
15676
15689
|
metadata
|
|
15690
|
+
store
|
|
15677
15691
|
startedAt
|
|
15678
15692
|
finishedAt
|
|
15679
15693
|
totalDurationMs
|
|
@@ -15689,6 +15703,42 @@ query GetAutomationRunIterations(
|
|
|
15689
15703
|
screenshotMimeType
|
|
15690
15704
|
}
|
|
15691
15705
|
}
|
|
15706
|
+
}`
|
|
15707
|
+
}),
|
|
15708
|
+
createOperationSpec({
|
|
15709
|
+
operationName: "GetIterationScreenshot",
|
|
15710
|
+
kind: "query",
|
|
15711
|
+
inputSchema: z27.object({
|
|
15712
|
+
iterationId: z27.string().min(1),
|
|
15713
|
+
hasMarks: z27.boolean().default(false)
|
|
15714
|
+
}),
|
|
15715
|
+
cli: {
|
|
15716
|
+
name: "get-iteration-screenshot",
|
|
15717
|
+
path: ["automation-runs", "iteration-screenshot"],
|
|
15718
|
+
description: "Fetch a fresh screenshot URL for an iteration.",
|
|
15719
|
+
resultKey: "iterationScreenshot",
|
|
15720
|
+
options: [
|
|
15721
|
+
stringOption({
|
|
15722
|
+
inputKey: "iterationId",
|
|
15723
|
+
flagName: "iteration-id",
|
|
15724
|
+
description: "Automation run iteration ID.",
|
|
15725
|
+
required: true
|
|
15726
|
+
}),
|
|
15727
|
+
booleanOption({
|
|
15728
|
+
inputKey: "hasMarks",
|
|
15729
|
+
flagName: "with-marks",
|
|
15730
|
+
description: "Fetch the marked screenshot instead of the base screenshot."
|
|
15731
|
+
})
|
|
15732
|
+
]
|
|
15733
|
+
},
|
|
15734
|
+
mcp: { fileName: "iterationScreenshot.graphql" },
|
|
15735
|
+
document: `# Fetch a fresh screenshot URL for an automation run iteration
|
|
15736
|
+
query GetIterationScreenshot($iterationId: ID!, $hasMarks: Boolean = false) {
|
|
15737
|
+
iterationScreenshot(iterationId: $iterationId, hasMarks: $hasMarks) {
|
|
15738
|
+
status
|
|
15739
|
+
url
|
|
15740
|
+
mimeType
|
|
15741
|
+
}
|
|
15692
15742
|
}`
|
|
15693
15743
|
}),
|
|
15694
15744
|
createOperationSpec({
|
|
@@ -15777,6 +15827,7 @@ query GetAutomationRuns(
|
|
|
15777
15827
|
) {
|
|
15778
15828
|
id
|
|
15779
15829
|
automationId
|
|
15830
|
+
automationVersionId
|
|
15780
15831
|
parentAutomationRunId
|
|
15781
15832
|
status
|
|
15782
15833
|
statusDetail
|
|
@@ -15825,6 +15876,7 @@ query GetAutomationRunsPage(
|
|
|
15825
15876
|
items {
|
|
15826
15877
|
id
|
|
15827
15878
|
automationId
|
|
15879
|
+
automationVersionId
|
|
15828
15880
|
parentAutomationRunId
|
|
15829
15881
|
status
|
|
15830
15882
|
statusDetail
|