@parcha/agentrun-client 0.1.0-beta.36 → 0.1.0-beta.38
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/operations.generated.d.ts +892 -37
- package/dist/operations.generated.js +64 -4
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@ export const OPERATIONS = {
|
|
|
6
6
|
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
7
|
getAgent: { "method": "GET", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
|
|
8
8
|
getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
9
|
+
getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
9
10
|
listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
11
|
+
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
12
|
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
13
|
unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
12
14
|
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,27 +21,39 @@ export const OPERATIONS = {
|
|
|
19
21
|
listHomeFiles: { "method": "GET", "path": "/agents/{agent_id}/home/files", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
20
22
|
readHomeFile: { "method": "GET", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": ["download"], "headers": [], "body": null, "answer": "bytes", "secret": false, "publicFields": [], "tagged": false },
|
|
21
23
|
writeHomeFile: { "method": "PUT", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": [], "headers": [], "body": { "required": true, "types": ["application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
24
|
+
getLearningBatch: { "method": "GET", "path": "/agents/{agent_id}/learning/batches/{batch_id}", "pathParams": ["agent_id", "batch_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
25
|
+
cancelLearningBatch: { "method": "POST", "path": "/agents/{agent_id}/learning/batches/{batch_id}/cancel", "pathParams": ["agent_id", "batch_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
26
|
+
createLearningBatch: { "method": "POST", "path": "/agents/{agent_id}/learning/batches", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
27
|
+
listLearningBatches: { "method": "GET", "path": "/agents/{agent_id}/learning/batches", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
22
28
|
getLearningCost: { "method": "GET", "path": "/agents/{agent_id}/learning/cost", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "format"], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": false },
|
|
29
|
+
listLearningEvals: { "method": "GET", "path": "/agents/{agent_id}/learning/evals", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
23
30
|
getAgentLearning: { "method": "GET", "path": "/agents/{agent_id}/learning", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
24
31
|
listLearningLog: { "method": "GET", "path": "/agents/{agent_id}/learning/log", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
25
32
|
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 },
|
|
26
33
|
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 },
|
|
34
|
+
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 },
|
|
27
35
|
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 },
|
|
36
|
+
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 },
|
|
28
37
|
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 },
|
|
29
38
|
connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
39
|
+
createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
40
|
+
deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
30
41
|
deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
31
42
|
disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
32
43
|
getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
33
44
|
getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
34
45
|
gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
35
46
|
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 },
|
|
47
|
+
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 },
|
|
48
|
+
listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
36
49
|
listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
37
50
|
putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
51
|
+
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 },
|
|
38
52
|
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 },
|
|
39
53
|
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 },
|
|
40
54
|
testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
41
55
|
testWorkspaceArchil: { "method": "POST", "path": "/workspace/archil/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
42
|
-
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "
|
|
56
|
+
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
43
57
|
getMcpServer: { "method": "GET", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
44
58
|
listMcpServers: { "method": "GET", "path": "/settings/mcp-servers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
45
59
|
mcpOAuthClient: { "method": "GET", "path": "/settings/mcp-servers/oauth/client.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -51,9 +65,12 @@ export const OPERATIONS = {
|
|
|
51
65
|
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 },
|
|
52
66
|
archiveRun: { "method": "POST", "path": "/runs/{run_id}/archive", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
53
67
|
cancelRun: { "method": "POST", "path": "/runs/{run_id}/cancel", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
68
|
+
callRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/call", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
69
|
+
releaseRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/release", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
54
70
|
createInlineRun: { "method": "POST", "path": "/runs", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
55
71
|
listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
56
72
|
getRun: { "method": "GET", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
73
|
+
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 },
|
|
57
74
|
getRunGraph: { "method": "GET", "path": "/runs/{run_id}/graph", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
58
75
|
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 },
|
|
59
76
|
getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -65,6 +82,7 @@ export const OPERATIONS = {
|
|
|
65
82
|
readRunFile: { "method": "GET", "path": "/runs/{run_id}/files/{path}", "pathParams": ["run_id", "path"], "multiSegment": ["path"], "query": ["download"], "headers": ["Range"], "body": null, "answer": "bytes", "secret": false, "publicFields": [], "tagged": false },
|
|
66
83
|
resumeRun: { "method": "POST", "path": "/runs/{run_id}/resume", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
67
84
|
createRun: { "method": "POST", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
85
|
+
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 },
|
|
68
86
|
stopRun: { "method": "POST", "path": "/runs/{run_id}/stop", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
69
87
|
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 },
|
|
70
88
|
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 },
|
|
@@ -75,6 +93,8 @@ export const OPERATIONS = {
|
|
|
75
93
|
getOpenapi: { "method": "GET", "path": "/openapi.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
76
94
|
getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
77
95
|
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 },
|
|
96
|
+
deleteTemplate: { "method": "DELETE", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
97
|
+
importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
78
98
|
listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
79
99
|
deleteToolKey: { "method": "DELETE", "path": "/settings/tool-keys/{key_id}", "pathParams": ["key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
80
100
|
listToolKeys: { "method": "GET", "path": "/settings/tool-keys", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -87,7 +107,7 @@ export const OPERATIONS = {
|
|
|
87
107
|
listTriggerFirings: { "method": "GET", "path": "/triggers/{trigger_id}/firings", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
88
108
|
getTrigger: { "method": "GET", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
89
109
|
listTriggers: { "method": "GET", "path": "/triggers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
90
|
-
rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body":
|
|
110
|
+
rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": [], "tagged": false },
|
|
91
111
|
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 },
|
|
92
112
|
getUsage: { "method": "GET", "path": "/usage", "pathParams": [], "multiSegment": [], "query": ["from", "to", "group_by"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
93
113
|
deleteWebhook: { "method": "DELETE", "path": "/settings/webhook", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -114,8 +134,12 @@ export function resources(call) {
|
|
|
114
134
|
get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
|
|
115
135
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
116
136
|
getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
|
|
137
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
138
|
+
getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
|
|
117
139
|
/** List agents (GET /agents). */
|
|
118
140
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
141
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
142
|
+
listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
|
|
119
143
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
120
144
|
runs: (agentId, params, options) => call("listRuns", [agentId], undefined, params, options),
|
|
121
145
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
@@ -146,8 +170,18 @@ export function resources(call) {
|
|
|
146
170
|
write: (agentId, path, body, options) => call("writeHomeFile", [agentId, path], body, undefined, options),
|
|
147
171
|
},
|
|
148
172
|
learning: {
|
|
173
|
+
/** A learning batch's progress: rows done, right or wrong, lessons, workflow revisions, cost, the path each run took (GET /agents/{agent_id}/learning/batches/{batch_id}). */
|
|
174
|
+
batch: (agentId, batchId, options) => call("getLearningBatch", [agentId, batchId], undefined, undefined, options),
|
|
175
|
+
/** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
|
|
176
|
+
batchCancel: (agentId, batchId, options) => call("cancelLearningBatch", [agentId, batchId], undefined, undefined, options),
|
|
177
|
+
/** Learn from rows: run the agent on each in order, with learning on, and tell it the reference answer after each (POST /agents/{agent_id}/learning/batches). */
|
|
178
|
+
batchStart: (agentId, body, options) => call("createLearningBatch", [agentId], body, undefined, options),
|
|
179
|
+
/** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
|
|
180
|
+
batches: (agentId, options) => call("listLearningBatches", [agentId], undefined, undefined, options),
|
|
149
181
|
/** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
|
|
150
182
|
cost: (agentId, params, options) => call("getLearningCost", [agentId], undefined, params, options),
|
|
183
|
+
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
184
|
+
evals: (agentId, options) => call("listLearningEvals", [agentId], undefined, undefined, options),
|
|
151
185
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
152
186
|
get: (agentId, options) => call("getAgentLearning", [agentId], undefined, undefined, options),
|
|
153
187
|
/** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
|
|
@@ -156,12 +190,20 @@ export function resources(call) {
|
|
|
156
190
|
notes: (agentId, params, options) => call("listLearningNotes", [agentId], undefined, params, options),
|
|
157
191
|
/** One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
|
|
158
192
|
read: (agentId, file, options) => call("readLearningFile", [agentId, file], undefined, undefined, options),
|
|
193
|
+
/** 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). */
|
|
194
|
+
recordEval: (agentId, body, params, options) => call("recordLearningEval", [agentId], body, params, options),
|
|
159
195
|
/** 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). */
|
|
160
196
|
retire: (agentId, file, params, options) => call("retireLearningFile", [agentId, file], undefined, params, options),
|
|
197
|
+
/** 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). */
|
|
198
|
+
workflowRevisions: (agentId, name, params, options) => call("listLearnedWorkflowRevisions", [agentId, name], undefined, params, options),
|
|
161
199
|
/** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
|
|
162
200
|
write: (agentId, file, body, params, options) => call("writeLearningFile", [agentId, file], body, params, options),
|
|
163
201
|
},
|
|
164
202
|
local: {
|
|
203
|
+
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
204
|
+
createPairing: (options) => call("createPairing", [], undefined, undefined, options),
|
|
205
|
+
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
206
|
+
deleteComputer: (computerId, options) => call("deleteComputer", [computerId], undefined, undefined, options),
|
|
165
207
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
166
208
|
deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
|
|
167
209
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
@@ -170,10 +212,16 @@ export function resources(call) {
|
|
|
170
212
|
getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
|
|
171
213
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
172
214
|
getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
|
|
215
|
+
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
|
|
216
|
+
listComposioTools: (body, options) => call("listComposioTools", [], body, undefined, options),
|
|
217
|
+
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
218
|
+
listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
|
|
173
219
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
174
220
|
listComputers: (options) => call("listComputers", [], undefined, undefined, options),
|
|
175
221
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
176
222
|
putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
|
|
223
|
+
/** 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). */
|
|
224
|
+
saveComposioServer: (name, body, options) => call("saveComposioServer", [name], body, undefined, options),
|
|
177
225
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
178
226
|
saveComputerKeys: (provider, body, options) => call("saveComputerKeys", [provider], body, undefined, options),
|
|
179
227
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
@@ -210,12 +258,18 @@ export function resources(call) {
|
|
|
210
258
|
archive: (runId, options) => call("archiveRun", [runId], undefined, undefined, options),
|
|
211
259
|
/** End the run (POST /runs/{run_id}/cancel). */
|
|
212
260
|
cancel: (runId, options) => call("cancelRun", [runId], undefined, undefined, options),
|
|
261
|
+
/** Send a run's computer one protocol call (POST /runs/{run_id}/computer/call). */
|
|
262
|
+
computerCall: (runId, body, options) => call("callRunComputer", [runId], body, undefined, options),
|
|
263
|
+
/** Let a held run's computer go (POST /runs/{run_id}/computer/release). */
|
|
264
|
+
computerRelease: (runId, body, options) => call("releaseRunComputer", [runId], body, undefined, options),
|
|
213
265
|
/** Start a run of an agent another system owns, given inline (POST /runs). */
|
|
214
266
|
createInlineRun: (body, params, options) => call("createInlineRun", [], body, params, options),
|
|
215
267
|
/** The files the run wrote (GET /runs/{run_id}/files). */
|
|
216
268
|
files: (runId, options) => call("listRunFiles", [runId], undefined, undefined, options),
|
|
217
269
|
/** One run (GET /runs/{run_id}). */
|
|
218
270
|
get: (runId, options) => call("getRun", [runId], undefined, undefined, options),
|
|
271
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
272
|
+
gradeRun: (runId, body, options) => call("gradeRun", [runId], body, undefined, options),
|
|
219
273
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
220
274
|
graph: (runId, options) => call("getRunGraph", [runId], undefined, undefined, options),
|
|
221
275
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -238,6 +292,8 @@ export function resources(call) {
|
|
|
238
292
|
resume: (runId, options) => call("resumeRun", [runId], undefined, undefined, options),
|
|
239
293
|
/** Start a run (POST /agents/{agent_id}/runs). */
|
|
240
294
|
start: (agentId, body, params, options) => call("createRun", [agentId], body, params, options),
|
|
295
|
+
/** Start a held run's agent (POST /runs/{run_id}/start). */
|
|
296
|
+
startHeld: (runId, body, options) => call("startRun", [runId], body, undefined, options),
|
|
241
297
|
/** End the current turn (POST /runs/{run_id}/stop). */
|
|
242
298
|
stop: (runId, options) => call("stopRun", [runId], undefined, undefined, options),
|
|
243
299
|
/** Take over the run's desktop or phone (POST /runs/{run_id}/computer/take-over). */
|
|
@@ -264,7 +320,11 @@ export function resources(call) {
|
|
|
264
320
|
template: {
|
|
265
321
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
266
322
|
apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
|
|
267
|
-
/**
|
|
323
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
324
|
+
delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
|
|
325
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
326
|
+
import: (body, options) => call("importTemplate", [], body, undefined, options),
|
|
327
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
268
328
|
list: (options) => call("listTemplates", [], undefined, undefined, options),
|
|
269
329
|
},
|
|
270
330
|
toolKeys: {
|
|
@@ -295,7 +355,7 @@ export function resources(call) {
|
|
|
295
355
|
/** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
|
|
296
356
|
list: (options) => call("listTriggers", [], undefined, undefined, options),
|
|
297
357
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
298
|
-
rotateSecret: (triggerId, options) => call("rotateTriggerSecret", [triggerId],
|
|
358
|
+
rotateSecret: (triggerId, body, options) => call("rotateTriggerSecret", [triggerId], body, undefined, options),
|
|
299
359
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
300
360
|
update: (triggerId, body, options) => call("updateTrigger", [triggerId], body, undefined, options),
|
|
301
361
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.38",
|
|
4
4
|
"description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|