@parcha/agentrun-client 0.1.0-beta.37 → 0.1.0-beta.39
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/README.md +32 -0
- package/dist/claude.d.ts +19 -0
- package/dist/claude.js +210 -0
- package/dist/codex.d.ts +23 -0
- package/dist/codex.js +198 -0
- package/dist/learning.d.ts +154 -0
- package/dist/learning.js +407 -0
- package/dist/operations.generated.d.ts +1853 -136
- package/dist/operations.generated.js +126 -6
- package/dist/workflows.d.ts +106 -0
- package/dist/workflows.js +381 -0
- package/package.json +29 -2
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
/** Each operation as the runtime sends it, by operationId. */
|
|
2
2
|
export const OPERATIONS = {
|
|
3
3
|
archiveAgent: { "method": "POST", "path": "/agents/{agent_id}/archive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
4
|
+
connectNative: { "method": "POST", "path": "/native/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
4
5
|
createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
5
6
|
deleteAgentArchil: { "method": "DELETE", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
7
|
+
disconnectNative: { "method": "POST", "path": "/agents/{agent_id}/native/disconnect", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
8
|
+
discoverNative: { "method": "POST", "path": "/native/discover", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
6
9
|
forgetSignIn: { "method": "DELETE", "path": "/agents/{agent_id}/sign-ins/{key}", "pathParams": ["agent_id", "key"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
7
10
|
getAgent: { "method": "GET", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
|
|
8
11
|
getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
12
|
+
getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
13
|
+
getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
9
14
|
listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
15
|
+
listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
10
16
|
listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
11
17
|
unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
12
18
|
updateDefinition: { "method": "PUT", "path": "/agents/{agent_id}/definition", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
|
|
19
|
+
verifyNative: { "method": "POST", "path": "/agents/{agent_id}/native/verify", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
20
|
+
completeRemoteCommand: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/complete", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
21
|
+
enrollRemoteConnector: { "method": "POST", "path": "/connectors/enrollment", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
22
|
+
importRemoteHistory: { "method": "POST", "path": "/connectors/{connector_id}/targets/{target_id}/history", "pathParams": ["connector_id", "target_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
23
|
+
importRemoteTarget: { "method": "POST", "path": "/connectors/{connector_id}/import", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
24
|
+
listRemoteConnectors: { "method": "GET", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
25
|
+
pollRemoteConnector: { "method": "POST", "path": "/connectors/{connector_id}/poll", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
26
|
+
registerRemoteConnector: { "method": "POST", "path": "/connectors", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
27
|
+
remoteCommandEvents: { "method": "POST", "path": "/connectors/{connector_id}/commands/{command_id}/events", "pathParams": ["connector_id", "command_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
28
|
+
revokeRemoteConnector: { "method": "DELETE", "path": "/connectors/{connector_id}", "pathParams": ["connector_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
13
29
|
createFile: { "method": "POST", "path": "/files", "pathParams": [], "multiSegment": [], "query": ["path", "content_type", "sha256"], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json", "application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
14
30
|
deleteFile: { "method": "DELETE", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
15
31
|
getFile: { "method": "GET", "path": "/files/{file_id}", "pathParams": ["file_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -30,28 +46,42 @@ export const OPERATIONS = {
|
|
|
30
46
|
listLearningNotes: { "method": "GET", "path": "/agents/{agent_id}/learning/notes", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
31
47
|
readLearningFile: { "method": "GET", "path": "/agents/{agent_id}/learning/files/{file}", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": true },
|
|
32
48
|
recordLearningEval: { "method": "POST", "path": "/agents/{agent_id}/learning/evals", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
49
|
+
getLearnedWorkflowReplay: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}", "pathParams": ["agent_id", "name", "digest", "replay_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
33
50
|
retireLearningFile: { "method": "POST", "path": "/agents/{agent_id}/learning/files/{file}/retire", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": null, "answer": "text", "secret": false, "publicFields": [], "tagged": true },
|
|
34
51
|
listLearnedWorkflowRevisions: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions", "pathParams": ["agent_id", "name"], "multiSegment": [], "query": ["limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
35
52
|
writeLearningFile: { "method": "PUT", "path": "/agents/{agent_id}/learning/files/{file}", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": ["If-Match", "If-None-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "text", "secret": false, "publicFields": [], "tagged": true },
|
|
36
53
|
connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
37
54
|
createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
55
|
+
deleteComposioSubscription: { "method": "DELETE", "path": "/settings/mcp-servers/{name}/composio/subscription", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
38
56
|
deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
57
|
+
deleteEmailAccount: { "method": "DELETE", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
39
58
|
deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
40
59
|
disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
60
|
+
finishChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in/finish", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
61
|
+
getChatGPTSignIn: { "method": "GET", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
62
|
+
getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
41
63
|
getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
42
64
|
getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
43
65
|
gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
44
66
|
gitHubInstalled: { "method": "GET", "path": "/integrations/github/installed", "pathParams": [], "multiSegment": [], "query": ["installation_id", "setup_action", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
67
|
+
listComposioEvents: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/events", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
45
68
|
listComposioTools: { "method": "POST", "path": "/settings/mcp-servers/composio/tools", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit"], "tagged": false },
|
|
69
|
+
listComposioTriggers: { "method": "GET", "path": "/settings/mcp-servers/{name}/composio/triggers", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
46
70
|
listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
47
71
|
listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
48
72
|
putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
73
|
+
receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
74
|
+
rotateComposioSecret: { "method": "POST", "path": "/settings/mcp-servers/{name}/composio/rotate-secret", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
49
75
|
saveComposioServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}/composio", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit", "tools.[]", "user_id"], "tagged": false },
|
|
50
76
|
saveComputerKeys: { "method": "PUT", "path": "/computers/{provider}/keys", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
77
|
+
saveEmailAccount: { "method": "PUT", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
78
|
+
signOutChatGPT: { "method": "DELETE", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
79
|
+
startChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
51
80
|
startMcpOAuth: { "method": "POST", "path": "/settings/mcp-servers/{name}/oauth/start", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["url", "scopes.[]", "client_id"], "tagged": false },
|
|
52
81
|
testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
82
|
+
testEmailAccount: { "method": "POST", "path": "/settings/email/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
53
83
|
testWorkspaceArchil: { "method": "POST", "path": "/workspace/archil/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
54
|
-
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "
|
|
84
|
+
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
55
85
|
getMcpServer: { "method": "GET", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
56
86
|
listMcpServers: { "method": "GET", "path": "/settings/mcp-servers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
57
87
|
mcpOAuthClient: { "method": "GET", "path": "/settings/mcp-servers/oauth/client.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -59,6 +89,7 @@ export const OPERATIONS = {
|
|
|
59
89
|
getMcpPrivateHosts: { "method": "GET", "path": "/settings/mcp-servers/oauth/private-hosts", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
60
90
|
refreshMcpServer: { "method": "POST", "path": "/settings/mcp-servers/{name}/refresh", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
61
91
|
saveMcpServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["url", "auth.type"], "tagged": false },
|
|
92
|
+
getObservations: { "method": "GET", "path": "/observations", "pathParams": [], "multiSegment": [], "query": ["days", "session_id"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
62
93
|
listRevisions: { "method": "GET", "path": "/agents/{agent_id}/revisions", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
63
94
|
setCurrent: { "method": "POST", "path": "/agents/{agent_id}/current", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
64
95
|
archiveRun: { "method": "POST", "path": "/runs/{run_id}/archive", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -68,6 +99,7 @@ export const OPERATIONS = {
|
|
|
68
99
|
createInlineRun: { "method": "POST", "path": "/runs", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
69
100
|
listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
70
101
|
getRun: { "method": "GET", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
102
|
+
gradeRun: { "method": "PUT", "path": "/runs/{run_id}/grade", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
71
103
|
getRunGraph: { "method": "GET", "path": "/runs/{run_id}/graph", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
72
104
|
handBackRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/hand-back", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
73
105
|
getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -82,14 +114,20 @@ export const OPERATIONS = {
|
|
|
82
114
|
startRun: { "method": "POST", "path": "/runs/{run_id}/start", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
83
115
|
stopRun: { "method": "POST", "path": "/runs/{run_id}/stop", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
84
116
|
takeOverRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/take-over", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
85
|
-
getTimeline: { "method": "GET", "path": "/runs/{run_id}/timeline", "pathParams": ["run_id"], "multiSegment": [], "query": ["after", "wait_ms", "limit"], "headers": ["Last-Event-ID"], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
117
|
+
getTimeline: { "method": "GET", "path": "/runs/{run_id}/timeline", "pathParams": ["run_id"], "multiSegment": [], "query": ["after", "wait_ms", "limit", "calls"], "headers": ["Last-Event-ID"], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
86
118
|
unarchiveRun: { "method": "POST", "path": "/runs/{run_id}/unarchive", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
119
|
+
completeSdkRun: { "method": "POST", "path": "/sdk-runs/{run_id}/complete", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
120
|
+
sdkRunEvents: { "method": "POST", "path": "/sdk-runs/{run_id}/events", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
121
|
+
getSdkRun: { "method": "GET", "path": "/sdk-runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
122
|
+
startSdkRun: { "method": "POST", "path": "/agents/{agent_id}/sdk-runs", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
87
123
|
getCapabilities: { "method": "GET", "path": "/capabilities", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
88
124
|
getHealth: { "method": "GET", "path": "/health", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
89
125
|
callMcp: { "method": "POST", "path": "/mcp", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
90
126
|
getOpenapi: { "method": "GET", "path": "/openapi.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
91
127
|
getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
92
128
|
applyTemplate: { "method": "POST", "path": "/templates/{template}/apply", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
129
|
+
deleteTemplate: { "method": "DELETE", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
130
|
+
importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
93
131
|
listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
94
132
|
deleteToolKey: { "method": "DELETE", "path": "/settings/tool-keys/{key_id}", "pathParams": ["key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
95
133
|
listToolKeys: { "method": "GET", "path": "/settings/tool-keys", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -97,12 +135,12 @@ export const OPERATIONS = {
|
|
|
97
135
|
getToolSettings: { "method": "GET", "path": "/settings/tools", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
98
136
|
putToolSettings: { "method": "PUT", "path": "/settings/tools", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
99
137
|
createTrigger: { "method": "POST", "path": "/triggers", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
100
|
-
deleteTrigger: { "method": "DELETE", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "
|
|
138
|
+
deleteTrigger: { "method": "DELETE", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
101
139
|
fireTrigger: { "method": "POST", "path": "/triggers/{trigger_id}/fire", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
102
140
|
listTriggerFirings: { "method": "GET", "path": "/triggers/{trigger_id}/firings", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
103
141
|
getTrigger: { "method": "GET", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
104
142
|
listTriggers: { "method": "GET", "path": "/triggers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
105
|
-
rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body":
|
|
143
|
+
rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": true, "publicFields": [], "tagged": false },
|
|
106
144
|
updateTrigger: { "method": "PATCH", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
107
145
|
getUsage: { "method": "GET", "path": "/usage", "pathParams": [], "multiSegment": [], "query": ["from", "to", "group_by"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
108
146
|
deleteWebhook: { "method": "DELETE", "path": "/settings/webhook", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -119,24 +157,58 @@ export function resources(call) {
|
|
|
119
157
|
agents: {
|
|
120
158
|
/** Archive the agent: hidden from the lists, kept with its history (POST /agents/{agent_id}/archive). */
|
|
121
159
|
archive: (agentId, options) => call("archiveAgent", [agentId], undefined, undefined, options),
|
|
160
|
+
/** Connect a native project using ordinary agent and revision storage (POST /native/connect). */
|
|
161
|
+
connectNative: (body, options) => call("connectNative", [], body, undefined, options),
|
|
122
162
|
/** Create an agent home (POST /agents). */
|
|
123
163
|
create: (body, params, options) => call("createAgent", [], body, params, options),
|
|
124
164
|
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
125
165
|
deleteAgentArchil: (agentId, options) => call("deleteAgentArchil", [agentId], undefined, undefined, options),
|
|
166
|
+
/** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
|
|
167
|
+
disconnectNative: (agentId, options) => call("disconnectNative", [agentId], undefined, undefined, options),
|
|
168
|
+
/** Discover existing native projects on this source machine without running a model (POST /native/discover). */
|
|
169
|
+
discoverNative: (body, options) => call("discoverNative", [], body, undefined, options),
|
|
126
170
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
127
171
|
forgetSignIn: (agentId, key, options) => call("forgetSignIn", [agentId, key], undefined, undefined, options),
|
|
128
172
|
/** One agent (GET /agents/{agent_id}). */
|
|
129
173
|
get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
|
|
130
174
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
131
175
|
getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
|
|
176
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
177
|
+
getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
|
|
178
|
+
/** Read a native connection (GET /agents/{agent_id}/native). */
|
|
179
|
+
getNative: (agentId, options) => call("getNative", [agentId], undefined, undefined, options),
|
|
132
180
|
/** List agents (GET /agents). */
|
|
133
181
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
182
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
183
|
+
listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
|
|
134
184
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
135
185
|
runs: (agentId, params, options) => call("listRuns", [agentId], undefined, params, options),
|
|
136
186
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
137
187
|
unarchive: (agentId, options) => call("unarchiveAgent", [agentId], undefined, undefined, options),
|
|
138
188
|
/** Replace the agent's definition (PUT /agents/{agent_id}/definition). */
|
|
139
189
|
update: (agentId, body, params, options) => call("updateDefinition", [agentId], body, params, options),
|
|
190
|
+
/** Check native CLI and sign-in without a paid model call (POST /agents/{agent_id}/native/verify). */
|
|
191
|
+
verifyNative: (agentId, options) => call("verifyNative", [agentId], undefined, undefined, options),
|
|
192
|
+
},
|
|
193
|
+
connectors: {
|
|
194
|
+
/** Complete a source command once under its valid lease (POST /connectors/{connector_id}/commands/{command_id}/complete). */
|
|
195
|
+
completeRemoteCommand: (connectorId, commandId, body, options) => call("completeRemoteCommand", [connectorId, commandId], body, undefined, options),
|
|
196
|
+
/** Create a ten-minute one-use connection code (POST /connectors/enrollment). */
|
|
197
|
+
enrollRemoteConnector: (body, options) => call("enrollRemoteConnector", [], body, undefined, options),
|
|
198
|
+
/** Import explicitly selected, redacted past sessions without running or learning from them (POST /connectors/{connector_id}/targets/{target_id}/history). */
|
|
199
|
+
importRemoteHistory: (connectorId, targetId, body, options) => call("importRemoteHistory", [connectorId, targetId], body, undefined, options),
|
|
200
|
+
/** Import an explicitly selected source-native agent reference (POST /connectors/{connector_id}/import). */
|
|
201
|
+
importRemoteTarget: (connectorId, body, options) => call("importRemoteTarget", [connectorId], body, undefined, options),
|
|
202
|
+
/** List remote source machines and imported agent targets (GET /connectors). */
|
|
203
|
+
listRemoteConnectors: (options) => call("listRemoteConnectors", [], undefined, undefined, options),
|
|
204
|
+
/** Renew active source leases and claim one command without replay (POST /connectors/{connector_id}/poll). */
|
|
205
|
+
pollRemoteConnector: (connectorId, body, options) => call("pollRemoteConnector", [connectorId], body, undefined, options),
|
|
206
|
+
/** Exchange a one-use enrollment code for a connector-scoped credential (POST /connectors). */
|
|
207
|
+
registerRemoteConnector: (body, options) => call("registerRemoteConnector", [], body, undefined, options),
|
|
208
|
+
/** Append an ordered idempotent native event batch for a valid command lease (POST /connectors/{connector_id}/commands/{command_id}/events). */
|
|
209
|
+
remoteCommandEvents: (connectorId, commandId, body, options) => call("remoteCommandEvents", [connectorId, commandId], body, undefined, options),
|
|
210
|
+
/** Revoke a source connector and stop its outstanding commands (DELETE /connectors/{connector_id}). */
|
|
211
|
+
revokeRemoteConnector: (connectorId, options) => call("revokeRemoteConnector", [connectorId], undefined, undefined, options),
|
|
140
212
|
},
|
|
141
213
|
files: {
|
|
142
214
|
/** Reserve an upload (POST /files). */
|
|
@@ -183,6 +255,8 @@ export function resources(call) {
|
|
|
183
255
|
read: (agentId, file, options) => call("readLearningFile", [agentId, file], undefined, undefined, options),
|
|
184
256
|
/** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
|
|
185
257
|
recordEval: (agentId, body, params, options) => call("recordLearningEval", [agentId], body, params, options),
|
|
258
|
+
/** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
|
|
259
|
+
replay: (agentId, name, digest, replayId, options) => call("getLearnedWorkflowReplay", [agentId, name, digest, replayId], undefined, undefined, options),
|
|
186
260
|
/** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
|
|
187
261
|
retire: (agentId, file, params, options) => call("retireLearningFile", [agentId, file], undefined, params, options),
|
|
188
262
|
/** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
|
|
@@ -193,30 +267,56 @@ export function resources(call) {
|
|
|
193
267
|
local: {
|
|
194
268
|
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
195
269
|
createPairing: (options) => call("createPairing", [], undefined, undefined, options),
|
|
270
|
+
/** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
|
|
271
|
+
deleteComposioSubscription: (name, options) => call("deleteComposioSubscription", [name], undefined, undefined, options),
|
|
196
272
|
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
197
273
|
deleteComputer: (computerId, options) => call("deleteComputer", [computerId], undefined, undefined, options),
|
|
274
|
+
/** Forget this server's email account (DELETE /settings/email). */
|
|
275
|
+
deleteEmailAccount: (options) => call("deleteEmailAccount", [], undefined, undefined, options),
|
|
198
276
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
199
277
|
deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
|
|
200
278
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
201
279
|
disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
|
|
280
|
+
/** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
|
|
281
|
+
finishChatGptsignIn: (body, options) => call("finishChatGPTSignIn", [], body, undefined, options),
|
|
282
|
+
/** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
|
|
283
|
+
getChatGptsignIn: (options) => call("getChatGPTSignIn", [], undefined, undefined, options),
|
|
284
|
+
/** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
|
|
285
|
+
getEmailAccount: (options) => call("getEmailAccount", [], undefined, undefined, options),
|
|
202
286
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
203
287
|
getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
|
|
204
288
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
205
289
|
getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
|
|
290
|
+
/** List a saved Composio server's toolkit's events, for a composio trigger (GET /settings/mcp-servers/{name}/composio/events). */
|
|
291
|
+
listComposioEvents: (name, options) => call("listComposioEvents", [name], undefined, undefined, options),
|
|
206
292
|
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
|
|
207
293
|
listComposioTools: (body, options) => call("listComposioTools", [], body, undefined, options),
|
|
294
|
+
/** A saved Composio server's triggers, each with its instance's state on Composio (GET /settings/mcp-servers/{name}/composio/triggers). */
|
|
295
|
+
listComposioTriggers: (name, options) => call("listComposioTriggers", [name], undefined, undefined, options),
|
|
208
296
|
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
209
297
|
listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
|
|
210
298
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
211
299
|
listComputers: (options) => call("listComputers", [], undefined, undefined, options),
|
|
212
300
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
213
301
|
putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
|
|
302
|
+
/** Fire a Composio trigger: a request it checks, no token (POST /hooks/composio/{hook}). */
|
|
303
|
+
receiveHookComposio: (hook, body, options) => call("receiveHook_composio", [hook], body, undefined, options),
|
|
304
|
+
/** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
|
|
305
|
+
rotateComposioSecret: (name, options) => call("rotateComposioSecret", [name], undefined, undefined, options),
|
|
214
306
|
/** Have Composio make a managed MCP server for a toolkit's chosen actions, and save it as an MCP server (PUT /settings/mcp-servers/{name}/composio). */
|
|
215
307
|
saveComposioServer: (name, body, options) => call("saveComposioServer", [name], body, undefined, options),
|
|
216
308
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
217
309
|
saveComputerKeys: (provider, body, options) => call("saveComputerKeys", [provider], body, undefined, options),
|
|
310
|
+
/** Save this server's email account, its password sealed (PUT /settings/email). */
|
|
311
|
+
saveEmailAccount: (body, options) => call("saveEmailAccount", [], body, undefined, options),
|
|
312
|
+
/** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
|
|
313
|
+
signOutChatGpt: (options) => call("signOutChatGPT", [], undefined, undefined, options),
|
|
314
|
+
/** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
|
|
315
|
+
startChatGptsignIn: (options) => call("startChatGPTSignIn", [], undefined, undefined, options),
|
|
218
316
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
219
317
|
testComputer: (provider, options) => call("testComputer", [provider], undefined, undefined, options),
|
|
318
|
+
/** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
|
|
319
|
+
testEmailAccount: (body, options) => call("testEmailAccount", [], body, undefined, options),
|
|
220
320
|
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
221
321
|
testWorkspaceArchil: (options) => call("testWorkspaceArchil", [], undefined, undefined, options),
|
|
222
322
|
},
|
|
@@ -238,6 +338,10 @@ export function resources(call) {
|
|
|
238
338
|
/** Preview a remote MCP server, then save it with the tools listed and its credential sealed (PUT /settings/mcp-servers/{name}). */
|
|
239
339
|
save: (name, body, options) => call("saveMcpServer", [name], body, undefined, options),
|
|
240
340
|
},
|
|
341
|
+
Observations: {
|
|
342
|
+
/** Read activity and token usage reported by externally running agents (GET /observations). */
|
|
343
|
+
getObservations: (params, options) => call("getObservations", [], undefined, params, options),
|
|
344
|
+
},
|
|
241
345
|
revisions: {
|
|
242
346
|
/** The agent's revisions, newest first (GET /agents/{agent_id}/revisions). */
|
|
243
347
|
list: (agentId, params, options) => call("listRevisions", [agentId], undefined, params, options),
|
|
@@ -259,6 +363,8 @@ export function resources(call) {
|
|
|
259
363
|
files: (runId, options) => call("listRunFiles", [runId], undefined, undefined, options),
|
|
260
364
|
/** One run (GET /runs/{run_id}). */
|
|
261
365
|
get: (runId, options) => call("getRun", [runId], undefined, undefined, options),
|
|
366
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
367
|
+
gradeRun: (runId, body, options) => call("gradeRun", [runId], body, undefined, options),
|
|
262
368
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
263
369
|
graph: (runId, options) => call("getRunGraph", [runId], undefined, undefined, options),
|
|
264
370
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -292,6 +398,16 @@ export function resources(call) {
|
|
|
292
398
|
/** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
|
|
293
399
|
unarchive: (runId, options) => call("unarchiveRun", [runId], undefined, undefined, options),
|
|
294
400
|
},
|
|
401
|
+
sdkRuns: {
|
|
402
|
+
/** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
|
|
403
|
+
complete: (runId, body, params, options) => call("completeSdkRun", [runId], body, params, options),
|
|
404
|
+
/** Record bounded SDK execution evidence (POST /sdk-runs/{run_id}/events). */
|
|
405
|
+
events: (runId, body, params, options) => call("sdkRunEvents", [runId], body, params, options),
|
|
406
|
+
/** Read SDK run and learning state (GET /sdk-runs/{run_id}). */
|
|
407
|
+
get: (runId, options) => call("getSdkRun", [runId], undefined, undefined, options),
|
|
408
|
+
/** Register a task executed by an existing backend SDK (POST /agents/{agent_id}/sdk-runs). */
|
|
409
|
+
start: (agentId, body, params, options) => call("startSdkRun", [agentId], body, params, options),
|
|
410
|
+
},
|
|
295
411
|
server: {
|
|
296
412
|
/** What this backend offers (GET /capabilities). */
|
|
297
413
|
capabilities: (options) => call("getCapabilities", [], undefined, undefined, options),
|
|
@@ -309,7 +425,11 @@ export function resources(call) {
|
|
|
309
425
|
template: {
|
|
310
426
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
311
427
|
apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
|
|
312
|
-
/**
|
|
428
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
429
|
+
delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
|
|
430
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
431
|
+
import: (body, options) => call("importTemplate", [], body, undefined, options),
|
|
432
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
313
433
|
list: (options) => call("listTemplates", [], undefined, undefined, options),
|
|
314
434
|
},
|
|
315
435
|
toolKeys: {
|
|
@@ -340,7 +460,7 @@ export function resources(call) {
|
|
|
340
460
|
/** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
|
|
341
461
|
list: (options) => call("listTriggers", [], undefined, undefined, options),
|
|
342
462
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
343
|
-
rotateSecret: (triggerId,
|
|
463
|
+
rotateSecret: (triggerId, options) => call("rotateTriggerSecret", [triggerId], undefined, undefined, options),
|
|
344
464
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
345
465
|
update: (triggerId, body, options) => call("updateTrigger", [triggerId], body, undefined, options),
|
|
346
466
|
},
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { BackendWorkflowBridge, BackendWorkflowToolManifest } from './learning.js';
|
|
2
|
+
export interface WorkflowToolContext {
|
|
3
|
+
signal: AbortSignal;
|
|
4
|
+
runId: string;
|
|
5
|
+
workflow: string;
|
|
6
|
+
/** Stable within an admitted effect, unique across separate workflow invocations. */
|
|
7
|
+
idempotencyKey: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BackendWorkflowTool extends BackendWorkflowToolManifest {
|
|
10
|
+
/** Declare true only when this callback never changes external state. Local MCP metadata, not permission. */
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
execute(input: Record<string, unknown>, context: WorkflowToolContext): Promise<unknown> | unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkflowBridgeEvent {
|
|
15
|
+
type: 'workflow.start' | 'workflow.end' | 'tool.start' | 'tool.end';
|
|
16
|
+
runId: string;
|
|
17
|
+
workflow: string;
|
|
18
|
+
tool?: string;
|
|
19
|
+
status?: 'completed' | 'failed' | 'cancelled';
|
|
20
|
+
}
|
|
21
|
+
/** The small document view the transport needs; the injected engine owns its full workflow language. */
|
|
22
|
+
export interface WorkflowEngineDocument {
|
|
23
|
+
schemas: Record<string, Record<string, unknown>>;
|
|
24
|
+
input?: {
|
|
25
|
+
schemaId: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface WorkflowModelRequest {
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
tools?: string[];
|
|
31
|
+
context?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface WorkflowJudgeRequest {
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
}
|
|
36
|
+
export interface WorkflowEffectRequest {
|
|
37
|
+
node: {
|
|
38
|
+
via: string;
|
|
39
|
+
tool?: string;
|
|
40
|
+
};
|
|
41
|
+
input: Record<string, unknown>;
|
|
42
|
+
idempotencyKey: string;
|
|
43
|
+
signal: AbortSignal;
|
|
44
|
+
}
|
|
45
|
+
export interface WorkflowEngineDeps<NodeRequest extends WorkflowModelRequest, JudgeRequest extends WorkflowJudgeRequest, JudgeResult> {
|
|
46
|
+
signal: AbortSignal;
|
|
47
|
+
onEvent(event: {
|
|
48
|
+
type: string;
|
|
49
|
+
}): void;
|
|
50
|
+
runCode(): Promise<never>;
|
|
51
|
+
runNode?: (request: NodeRequest) => Promise<unknown>;
|
|
52
|
+
runJudge?: (request: JudgeRequest) => Promise<JudgeResult>;
|
|
53
|
+
runEffect(request: WorkflowEffectRequest): Promise<unknown>;
|
|
54
|
+
}
|
|
55
|
+
/** Trusted host-owned interpreter functions. The bridge supplies every guarded execution callback; the engine must
|
|
56
|
+
* use those callbacks for effects and model work. Generic requests preserve the host engine's own adapter types. */
|
|
57
|
+
export interface WorkflowEngine<Document extends WorkflowEngineDocument, NodeRequest extends WorkflowModelRequest, JudgeRequest extends WorkflowJudgeRequest, JudgeResult> {
|
|
58
|
+
inspectWorkflow(value: unknown): {
|
|
59
|
+
nodes: readonly {
|
|
60
|
+
path: string;
|
|
61
|
+
}[];
|
|
62
|
+
requires: {
|
|
63
|
+
adapters: readonly ('runNode' | 'runJudge' | 'runEffect')[];
|
|
64
|
+
tools: readonly string[];
|
|
65
|
+
sopSections: readonly string[];
|
|
66
|
+
executableCode: boolean;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
runWorkflow(workflow: Document, input: Record<string, unknown>, deps: WorkflowEngineDeps<NodeRequest, JudgeRequest, JudgeResult>): Promise<{
|
|
70
|
+
status: string;
|
|
71
|
+
output?: unknown;
|
|
72
|
+
}>;
|
|
73
|
+
resolveSchemaForWorkflow(workflow: Document, schema: Record<string, unknown>): Record<string, unknown>;
|
|
74
|
+
}
|
|
75
|
+
export interface WorkflowMcpBridgeOptions<Document extends WorkflowEngineDocument = WorkflowEngineDocument, NodeRequest extends WorkflowModelRequest = WorkflowModelRequest, JudgeRequest extends WorkflowJudgeRequest = WorkflowJudgeRequest, JudgeResult = unknown> {
|
|
76
|
+
/** Explicit workflow engine supplied by the backend. This transport imports no workflow interpreter. */
|
|
77
|
+
engine: WorkflowEngine<Document, NodeRequest, JudgeRequest, JudgeResult>;
|
|
78
|
+
/** The exact MCP server name the host configures on its native SDK. Enables receipt-based envelope correlation;
|
|
79
|
+
* omit when that identity is unavailable, in which case all native tool evidence is retained. */
|
|
80
|
+
nativeMcpServerName?: string;
|
|
81
|
+
tools: readonly BackendWorkflowTool[];
|
|
82
|
+
/** Checked immediately before every effect. An ask decision is refused; the host must approve outside this bridge. */
|
|
83
|
+
policy(name: string, input: Record<string, unknown>, context: WorkflowToolContext): 'allow' | 'ask' | 'deny' | Promise<'allow' | 'ask' | 'deny'>;
|
|
84
|
+
/** Explicit host adapters only. The host owns their model selection, credentials, permissions and spending limits. */
|
|
85
|
+
runNode?: (request: NodeRequest) => Promise<unknown>;
|
|
86
|
+
runJudge?: (request: JudgeRequest) => Promise<JudgeResult>;
|
|
87
|
+
/** Total calls across the entire native task (default 32, maximum 256). */
|
|
88
|
+
maxToolCalls?: number;
|
|
89
|
+
/** Total dynamic node starts across the entire native task (default 256, maximum 2048). */
|
|
90
|
+
maxNodeSteps?: number;
|
|
91
|
+
/** Per workflow invocation, including host callbacks (default 60000 ms, maximum 300000 ms). */
|
|
92
|
+
maxDurationMs?: number;
|
|
93
|
+
/** Capability lifetime; completed/cancelled native runs revoke it earlier (default one hour). */
|
|
94
|
+
leaseDurationMs?: number;
|
|
95
|
+
/** Local metadata only; callback inputs/results and capability tokens are never emitted. */
|
|
96
|
+
onEvent?(event: WorkflowBridgeEvent): void;
|
|
97
|
+
}
|
|
98
|
+
export interface WorkflowMcpBridge extends BackendWorkflowBridge {
|
|
99
|
+
readonly url: string;
|
|
100
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
101
|
+
close(): Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
/** Start once, explicitly configure this endpoint on the original native SDK, then pass the bridge to its wrapper.
|
|
104
|
+
* The endpoint never executes a workflow supplied by a model: only the server's checked, pinned run snapshot.
|
|
105
|
+
* Nothing is installed into the backend or executed through a new hidden native SDK session. */
|
|
106
|
+
export declare function createWorkflowMcpBridge<Document extends WorkflowEngineDocument, NodeRequest extends WorkflowModelRequest, JudgeRequest extends WorkflowJudgeRequest, JudgeResult>(options: WorkflowMcpBridgeOptions<Document, NodeRequest, JudgeRequest, JudgeResult>): Promise<WorkflowMcpBridge>;
|