@getmagical/cli 0.7.0 → 0.8.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 +42 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16544,7 +16544,8 @@ var automationRunsInputSchema = z28.object({
|
|
|
16544
16544
|
limit: z28.number().int().positive().optional(),
|
|
16545
16545
|
orderBy: z28.enum(["createdAtAsc", "createdAtDesc", "random"]).optional(),
|
|
16546
16546
|
page: z28.number().int().nonnegative().optional(),
|
|
16547
|
-
to: z28.string().min(1).optional()
|
|
16547
|
+
to: z28.string().min(1).optional(),
|
|
16548
|
+
workflowIds: z28.array(z28.string().min(1)).optional()
|
|
16548
16549
|
}).refine(({ orderBy, page }) => orderBy !== "random" || (page ?? 0) === 0, {
|
|
16549
16550
|
message: "Random ordering reshuffles on every call, so --page cannot be combined with --order-by random."
|
|
16550
16551
|
});
|
|
@@ -16588,6 +16589,11 @@ var automationRunsCliOptions = [
|
|
|
16588
16589
|
inputKey: "to",
|
|
16589
16590
|
flagName: "to",
|
|
16590
16591
|
description: "Optional inclusive createdAt upper bound ISO timestamp."
|
|
16592
|
+
}),
|
|
16593
|
+
stringArrayOption({
|
|
16594
|
+
inputKey: "workflowIds",
|
|
16595
|
+
flagName: "workflow-ids",
|
|
16596
|
+
description: "Optional workflow IDs. Find them with `mgcl workflows list`."
|
|
16591
16597
|
})
|
|
16592
16598
|
];
|
|
16593
16599
|
var operationSpecs = [
|
|
@@ -17767,7 +17773,7 @@ query InspectPausedAutomationStep($runId: ID!) {
|
|
|
17767
17773
|
options: automationRunsCliOptions
|
|
17768
17774
|
},
|
|
17769
17775
|
mcp: { fileName: "automationRuns.graphql" },
|
|
17770
|
-
document: `# Query automation run history with optional automation and time-window filters
|
|
17776
|
+
document: `# Query automation run history with optional automation, workflow, and time-window filters
|
|
17771
17777
|
query GetAutomationRuns(
|
|
17772
17778
|
$automationId: ID
|
|
17773
17779
|
$from: String
|
|
@@ -17777,6 +17783,7 @@ query GetAutomationRuns(
|
|
|
17777
17783
|
$orderBy: AutomationRunOrderBy
|
|
17778
17784
|
$page: Int
|
|
17779
17785
|
$to: String
|
|
17786
|
+
$workflowIds: [ID!]
|
|
17780
17787
|
) {
|
|
17781
17788
|
automationRuns(
|
|
17782
17789
|
automationId: $automationId
|
|
@@ -17787,6 +17794,7 @@ query GetAutomationRuns(
|
|
|
17787
17794
|
orderBy: $orderBy
|
|
17788
17795
|
page: $page
|
|
17789
17796
|
to: $to
|
|
17797
|
+
workflowIds: $workflowIds
|
|
17790
17798
|
) {
|
|
17791
17799
|
id
|
|
17792
17800
|
automationId
|
|
@@ -17826,6 +17834,7 @@ query GetAutomationRunsPage(
|
|
|
17826
17834
|
$orderBy: AutomationRunOrderBy
|
|
17827
17835
|
$page: Int
|
|
17828
17836
|
$to: String
|
|
17837
|
+
$workflowIds: [ID!]
|
|
17829
17838
|
) {
|
|
17830
17839
|
automationRunsPage(
|
|
17831
17840
|
automationId: $automationId
|
|
@@ -17836,6 +17845,7 @@ query GetAutomationRunsPage(
|
|
|
17836
17845
|
orderBy: $orderBy
|
|
17837
17846
|
page: $page
|
|
17838
17847
|
to: $to
|
|
17848
|
+
workflowIds: $workflowIds
|
|
17839
17849
|
) {
|
|
17840
17850
|
items {
|
|
17841
17851
|
id
|
|
@@ -17856,6 +17866,27 @@ query GetAutomationRunsPage(
|
|
|
17856
17866
|
pageSize
|
|
17857
17867
|
isTotalTruncated
|
|
17858
17868
|
}
|
|
17869
|
+
}`
|
|
17870
|
+
}),
|
|
17871
|
+
createOperationSpec({
|
|
17872
|
+
operationName: "ListWorkflows",
|
|
17873
|
+
apiKeyAccess: apiKeyAccessPolicies.automationRead,
|
|
17874
|
+
kind: "query",
|
|
17875
|
+
inputSchema: z28.object({}),
|
|
17876
|
+
cli: {
|
|
17877
|
+
name: "list-workflows",
|
|
17878
|
+
path: ["workflows", "list"],
|
|
17879
|
+
description: "List workflows. Pass their IDs to `mgcl automation-runs list --workflow-ids`.",
|
|
17880
|
+
resultKey: "workflows",
|
|
17881
|
+
options: []
|
|
17882
|
+
},
|
|
17883
|
+
mcp: { fileName: "workflows.graphql" },
|
|
17884
|
+
document: `# List workflows so their IDs can filter automation runs
|
|
17885
|
+
query ListWorkflows {
|
|
17886
|
+
workflows {
|
|
17887
|
+
id
|
|
17888
|
+
name
|
|
17889
|
+
}
|
|
17859
17890
|
}`
|
|
17860
17891
|
}),
|
|
17861
17892
|
createOperationSpec({
|
|
@@ -17891,7 +17922,7 @@ query GetAutomationRunsPage(
|
|
|
17891
17922
|
]
|
|
17892
17923
|
},
|
|
17893
17924
|
mcp: { fileName: "listAutomations.graphql" },
|
|
17894
|
-
document: `# Query to list automations with flat fields
|
|
17925
|
+
document: `# Query to list automations with flat fields plus the workflow reference
|
|
17895
17926
|
# Excludes config and agents for MCP tool simplicity
|
|
17896
17927
|
query ListAutomations(
|
|
17897
17928
|
$limit: Int
|
|
@@ -17908,6 +17939,10 @@ query ListAutomations(
|
|
|
17908
17939
|
lastSavedAt
|
|
17909
17940
|
publishedVersionId
|
|
17910
17941
|
draftVersionId
|
|
17942
|
+
workflow {
|
|
17943
|
+
id
|
|
17944
|
+
name
|
|
17945
|
+
}
|
|
17911
17946
|
}
|
|
17912
17947
|
}`
|
|
17913
17948
|
}),
|
|
@@ -17948,6 +17983,10 @@ query GetAutomations($ids: [ID!]!) {
|
|
|
17948
17983
|
lastSavedAt
|
|
17949
17984
|
publishedVersionId
|
|
17950
17985
|
draftVersionId
|
|
17986
|
+
workflow {
|
|
17987
|
+
id
|
|
17988
|
+
name
|
|
17989
|
+
}
|
|
17951
17990
|
config {
|
|
17952
17991
|
sharedInputSchema {
|
|
17953
17992
|
key
|