@getmagical/cli 0.1.11 → 0.1.12
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 +155 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7130,6 +7130,161 @@ ${agentLimitationsSelection}
|
|
|
7130
7130
|
ignoreUnstableSessionState
|
|
7131
7131
|
}
|
|
7132
7132
|
childAgentIds
|
|
7133
|
+
}
|
|
7134
|
+
}`
|
|
7135
|
+
}),
|
|
7136
|
+
createOperationSpec({
|
|
7137
|
+
operationName: "GetAgentVersion",
|
|
7138
|
+
kind: "query",
|
|
7139
|
+
inputSchema: z.object({
|
|
7140
|
+
agentId: z.string().min(1),
|
|
7141
|
+
versionId: z.string().min(1)
|
|
7142
|
+
}),
|
|
7143
|
+
cli: {
|
|
7144
|
+
name: "get-agent-version",
|
|
7145
|
+
path: ["agents", "versions", "get"],
|
|
7146
|
+
description: "Fetch one saved version for an agent.",
|
|
7147
|
+
resultKey: "agentVersion",
|
|
7148
|
+
options: [
|
|
7149
|
+
stringOption({
|
|
7150
|
+
inputKey: "agentId",
|
|
7151
|
+
flagName: "agent-id",
|
|
7152
|
+
description: "Agent ID.",
|
|
7153
|
+
required: true
|
|
7154
|
+
}),
|
|
7155
|
+
stringOption({
|
|
7156
|
+
inputKey: "versionId",
|
|
7157
|
+
flagName: "version-id",
|
|
7158
|
+
description: "Agent version ID.",
|
|
7159
|
+
required: true
|
|
7160
|
+
})
|
|
7161
|
+
]
|
|
7162
|
+
},
|
|
7163
|
+
mcp: { fileName: "agentVersion.graphql" },
|
|
7164
|
+
document: `# Query to fetch a specific saved version for an agent
|
|
7165
|
+
query GetAgentVersion($agentId: ID!, $versionId: ID!) {
|
|
7166
|
+
agentVersion(agentId: $agentId, versionId: $versionId) {
|
|
7167
|
+
id
|
|
7168
|
+
agentId
|
|
7169
|
+
sequence
|
|
7170
|
+
name
|
|
7171
|
+
description
|
|
7172
|
+
instructions
|
|
7173
|
+
instructionsMode
|
|
7174
|
+
instructionsDoc
|
|
7175
|
+
updaterUserId
|
|
7176
|
+
createdAt
|
|
7177
|
+
updatedAt
|
|
7178
|
+
inputSchema
|
|
7179
|
+
outputSchema
|
|
7180
|
+
config {
|
|
7181
|
+
type
|
|
7182
|
+
language
|
|
7183
|
+
model
|
|
7184
|
+
tools
|
|
7185
|
+
maxSessionMessages
|
|
7186
|
+
${agentEnvironmentOptionsSelection}
|
|
7187
|
+
${agentLimitationsSelection}
|
|
7188
|
+
commonParametersSchema
|
|
7189
|
+
taskQueue
|
|
7190
|
+
waitUponQueueing
|
|
7191
|
+
queueableAgentIds
|
|
7192
|
+
additionalSystemPrompt
|
|
7193
|
+
ignoreUnstableSessionState
|
|
7194
|
+
}
|
|
7195
|
+
isCurrent
|
|
7196
|
+
}
|
|
7197
|
+
}`
|
|
7198
|
+
}),
|
|
7199
|
+
createOperationSpec({
|
|
7200
|
+
operationName: "GetAgentVersions",
|
|
7201
|
+
kind: "query",
|
|
7202
|
+
inputSchema: z.object({
|
|
7203
|
+
agentId: z.string().min(1)
|
|
7204
|
+
}),
|
|
7205
|
+
cli: {
|
|
7206
|
+
name: "get-agent-versions",
|
|
7207
|
+
path: ["agents", "versions", "list"],
|
|
7208
|
+
description: "Fetch version history for an agent.",
|
|
7209
|
+
resultKey: "agentVersions",
|
|
7210
|
+
options: [
|
|
7211
|
+
stringOption({
|
|
7212
|
+
inputKey: "agentId",
|
|
7213
|
+
flagName: "agent-id",
|
|
7214
|
+
description: "Agent ID.",
|
|
7215
|
+
required: true
|
|
7216
|
+
})
|
|
7217
|
+
]
|
|
7218
|
+
},
|
|
7219
|
+
mcp: { fileName: "agentVersions.graphql" },
|
|
7220
|
+
document: `# Query to fetch version history metadata for an agent
|
|
7221
|
+
query GetAgentVersions($agentId: ID!) {
|
|
7222
|
+
agentVersions(agentId: $agentId) {
|
|
7223
|
+
id
|
|
7224
|
+
sequence
|
|
7225
|
+
name
|
|
7226
|
+
description
|
|
7227
|
+
updaterUserId
|
|
7228
|
+
createdAt
|
|
7229
|
+
updatedAt
|
|
7230
|
+
isCurrent
|
|
7231
|
+
}
|
|
7232
|
+
}`
|
|
7233
|
+
}),
|
|
7234
|
+
createOperationSpec({
|
|
7235
|
+
operationName: "DiffAgentVersion",
|
|
7236
|
+
kind: "query",
|
|
7237
|
+
inputSchema: z.object({
|
|
7238
|
+
agentId: z.string().min(1),
|
|
7239
|
+
versionId: z.string().min(1),
|
|
7240
|
+
compareVersionId: z.string().min(1).optional()
|
|
7241
|
+
}),
|
|
7242
|
+
cli: {
|
|
7243
|
+
name: "diff-agent-version",
|
|
7244
|
+
path: ["agents", "versions", "diff"],
|
|
7245
|
+
description: "Diff one agent version against another version or the current latest version.",
|
|
7246
|
+
resultKey: "agentVersionDiff",
|
|
7247
|
+
options: [
|
|
7248
|
+
stringOption({
|
|
7249
|
+
inputKey: "agentId",
|
|
7250
|
+
flagName: "agent-id",
|
|
7251
|
+
description: "Agent ID.",
|
|
7252
|
+
required: true
|
|
7253
|
+
}),
|
|
7254
|
+
stringOption({
|
|
7255
|
+
inputKey: "versionId",
|
|
7256
|
+
flagName: "version-id",
|
|
7257
|
+
description: "Source agent version ID.",
|
|
7258
|
+
required: true
|
|
7259
|
+
}),
|
|
7260
|
+
stringOption({
|
|
7261
|
+
inputKey: "compareVersionId",
|
|
7262
|
+
flagName: "compare-version-id",
|
|
7263
|
+
description: "Optional target version ID. Defaults to the current latest version."
|
|
7264
|
+
})
|
|
7265
|
+
]
|
|
7266
|
+
},
|
|
7267
|
+
mcp: { fileName: "agentVersionDiff.graphql" },
|
|
7268
|
+
document: `# Query to diff one agent version against another or the current latest version
|
|
7269
|
+
query DiffAgentVersion(
|
|
7270
|
+
$agentId: ID!
|
|
7271
|
+
$versionId: ID!
|
|
7272
|
+
$compareVersionId: ID
|
|
7273
|
+
) {
|
|
7274
|
+
agentVersionDiff(
|
|
7275
|
+
agentId: $agentId
|
|
7276
|
+
versionId: $versionId
|
|
7277
|
+
compareVersionId: $compareVersionId
|
|
7278
|
+
) {
|
|
7279
|
+
agentId
|
|
7280
|
+
fromVersionId
|
|
7281
|
+
toVersionId
|
|
7282
|
+
hasChanges
|
|
7283
|
+
changes {
|
|
7284
|
+
field
|
|
7285
|
+
oldValue
|
|
7286
|
+
newValue
|
|
7287
|
+
}
|
|
7133
7288
|
}
|
|
7134
7289
|
}`
|
|
7135
7290
|
}),
|