@getmagical/cli 0.1.15 → 0.1.16
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 +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7694,6 +7694,8 @@ var operationSpecs = [
|
|
|
7694
7694
|
query GetAgents($ids: [ID!]!) {
|
|
7695
7695
|
agents(ids: $ids) {
|
|
7696
7696
|
id
|
|
7697
|
+
agentVersionId
|
|
7698
|
+
automationVersionId
|
|
7697
7699
|
name
|
|
7698
7700
|
description
|
|
7699
7701
|
instructions
|
|
@@ -7942,7 +7944,9 @@ query GetAgentRun($id: ID!) {
|
|
|
7942
7944
|
query GetAutomationAgents($ids: [ID!]!) {
|
|
7943
7945
|
automationAgents(ids: $ids) {
|
|
7944
7946
|
automationId
|
|
7947
|
+
automationVersionId
|
|
7945
7948
|
agentId
|
|
7949
|
+
agentVersionId
|
|
7946
7950
|
isTrigger
|
|
7947
7951
|
agent {
|
|
7948
7952
|
id
|
|
@@ -8667,13 +8671,15 @@ mutation StopAutomationRun($automationRunId: ID!) {
|
|
|
8667
8671
|
jsonOption({
|
|
8668
8672
|
inputKey: "input",
|
|
8669
8673
|
flagName: "input-json",
|
|
8670
|
-
description: "UpdateAutomationInput payload.",
|
|
8674
|
+
description: "UpdateAutomationInput payload. Must include baseVersionId from a fresh automations get/list call.",
|
|
8671
8675
|
required: true
|
|
8672
8676
|
})
|
|
8673
8677
|
]
|
|
8674
8678
|
},
|
|
8675
8679
|
mcp: { fileName: "updateAutomation.graphql" },
|
|
8676
8680
|
document: `# Mutation to update an automation
|
|
8681
|
+
# Before calling, fetch the automation and agents again. Pass the fetched draftVersionId as input.baseVersionId.
|
|
8682
|
+
# If this mutation returns a draft-automation-version-conflict, discard the generated update, refetch the automation and agents, inspect what changed, then regenerate the update on top of the latest version.
|
|
8677
8683
|
# Returns only id and lastSavedAt for MCP tool simplicity
|
|
8678
8684
|
mutation UpdateAutomationById($id: ID!, $input: UpdateAutomationInput!) {
|
|
8679
8685
|
updateAutomation(id: $id, input: $input) {
|