@agentorg/cli 0.0.6 → 0.0.7
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 +10 -7
- package/dist/node_modules/@agentorg/computer/LICENSE +201 -0
- package/dist/node_modules/@agentorg/computer/NOTICE +2 -0
- package/dist/node_modules/@agentorg/computer/dist/THIRD_PARTY_LICENSES.txt +1321 -0
- package/dist/node_modules/@agentorg/computer/dist/sdk.js +24909 -0
- package/dist/node_modules/@agentorg/computer/dist/types/generated/schema.d.ts +860 -0
- package/dist/node_modules/@agentorg/computer/dist/types/sdk.d.ts +242 -0
- package/dist/node_modules/@agentorg/computer/package.json +12 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/index.d.ts +1 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/index.js +1 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/provider.d.ts +24 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/provider.js +482 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/unit.d.ts +19 -0
- package/dist/node_modules/@agentorg/computer-connector/dist/src/unit.js +149 -0
- package/dist/node_modules/@agentorg/computer-connector/package.json +33 -0
- package/dist/node_modules/@agentorg/computer-connector/skills/browser/SKILL.md +31 -0
- package/dist/node_modules/@agentorg/computer-connector/skills/computer/SKILL.md +30 -0
- package/dist/node_modules/@agentorg/computer-connector/skills/files/SKILL.md +28 -0
- package/dist/node_modules/@agentorg/computer-connector/skills/terminal/SKILL.md +39 -0
- package/dist/node_modules/@agentorg/computer-connector/skills/web-research/SKILL.md +29 -0
- package/dist/node_modules/@agentorg/hub/dist/src/router.d.ts +4 -2
- package/dist/node_modules/@agentorg/hub/dist/src/router.js +3 -1
- package/dist/node_modules/@agentorg/hub/dist/src/validate.js +16 -2
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-provider.d.ts +34 -47
- package/dist/node_modules/@agentorg/interfaces/dist/src/agent-provider.js +25 -34
- package/dist/node_modules/@agentorg/interfaces/dist/src/chat.d.ts +90 -50
- package/dist/node_modules/@agentorg/interfaces/dist/src/chat.js +69 -34
- package/dist/node_modules/@agentorg/interfaces/dist/src/connection.d.ts +36 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/connection.js +31 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/folders.d.ts +19 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/folders.js +25 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/index.d.ts +6 -4
- package/dist/node_modules/@agentorg/interfaces/dist/src/index.js +6 -4
- package/dist/node_modules/@agentorg/interfaces/dist/src/llm-session.d.ts +2 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/llm-session.js +2 -1
- package/dist/node_modules/@agentorg/interfaces/dist/src/manager.d.ts +381 -27
- package/dist/node_modules/@agentorg/interfaces/dist/src/manager.js +179 -15
- package/dist/node_modules/@agentorg/interfaces/dist/src/units.d.ts +460 -0
- package/dist/node_modules/@agentorg/interfaces/dist/src/units.js +204 -0
- package/dist/node_modules/@agentorg/looper/dist/src/index.d.ts +5 -0
- package/dist/node_modules/@agentorg/looper/dist/src/index.js +5 -0
- package/dist/node_modules/@agentorg/looper/dist/src/loop.d.ts +75 -0
- package/dist/node_modules/@agentorg/looper/dist/src/loop.js +332 -0
- package/dist/node_modules/@agentorg/looper/dist/src/looper.d.ts +71 -0
- package/dist/node_modules/@agentorg/looper/dist/src/looper.js +282 -0
- package/dist/node_modules/@agentorg/looper/dist/src/record.d.ts +99 -0
- package/dist/node_modules/{assistant/dist/src/history.js → @agentorg/looper/dist/src/record.js} +89 -46
- package/dist/node_modules/@agentorg/looper/dist/src/tools.d.ts +11 -0
- package/dist/node_modules/@agentorg/looper/dist/src/tools.js +42 -0
- package/dist/node_modules/@agentorg/looper/dist/src/types.d.ts +147 -0
- package/dist/node_modules/@agentorg/looper/dist/src/types.js +32 -0
- package/dist/node_modules/@agentorg/looper/package.json +24 -0
- package/dist/node_modules/@agentorg/manager/dist/src/activity.d.ts +18 -0
- package/dist/node_modules/@agentorg/manager/dist/src/activity.js +65 -0
- package/dist/node_modules/@agentorg/manager/dist/src/control.d.ts +134 -0
- package/dist/node_modules/@agentorg/manager/dist/src/control.js +1115 -0
- package/dist/node_modules/@agentorg/manager/dist/src/form.d.ts +40 -0
- package/dist/node_modules/@agentorg/manager/dist/src/form.js +191 -0
- package/dist/node_modules/@agentorg/manager/dist/src/manager.d.ts +4 -0
- package/dist/node_modules/@agentorg/manager/dist/src/manager.js +341 -189
- package/dist/node_modules/@agentorg/manager/dist/src/skills.d.ts +2 -0
- package/dist/node_modules/@agentorg/manager/dist/src/skills.js +7 -0
- package/dist/node_modules/@agentorg/manager/dist/src/stack.d.ts +454 -0
- package/dist/node_modules/@agentorg/manager/dist/src/stack.js +917 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/connection.d.ts +2 -1
- package/dist/node_modules/@agentorg/mcp/dist/src/connection.js +8 -2
- package/dist/node_modules/@agentorg/mcp/dist/src/index.d.ts +3 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/index.js +3 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/kinds.d.ts +108 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/kinds.js +95 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/provider.d.ts +2 -2
- package/dist/node_modules/@agentorg/mcp/dist/src/provider.js +48 -18
- package/dist/node_modules/@agentorg/mcp/dist/src/public.d.ts +6 -0
- package/dist/node_modules/@agentorg/mcp/dist/src/public.js +72 -0
- package/dist/node_modules/@agentorg/sdk/dist/src/filled.d.ts +21 -0
- package/dist/node_modules/@agentorg/sdk/dist/src/filled.js +24 -0
- package/dist/node_modules/@agentorg/sdk/dist/src/index.d.ts +1 -0
- package/dist/node_modules/@agentorg/sdk/dist/src/index.js +1 -0
- package/dist/node_modules/@agentorg/shell/dist/app.css +1289 -100
- package/dist/node_modules/@agentorg/shell/dist/app.js +207 -166
- package/dist/node_modules/@agentorg/shell/package.json +6 -1
- package/dist/node_modules/assistant/dist/src/chats.d.ts +92 -0
- package/dist/node_modules/assistant/dist/src/chats.js +357 -0
- package/dist/node_modules/assistant/dist/src/engine.d.ts +26 -7
- package/dist/node_modules/assistant/dist/src/engine.js +107 -35
- package/dist/node_modules/assistant/dist/src/local-store.js +1 -1
- package/dist/node_modules/assistant/dist/src/provider.d.ts +1 -1
- package/dist/node_modules/assistant/dist/src/provider.js +47 -19
- package/dist/node_modules/assistant/dist/src/tools.d.ts +11 -28
- package/dist/node_modules/assistant/dist/src/tools.js +19 -40
- package/dist/node_modules/assistant/package.json +1 -0
- package/dist/src/api.js +4 -0
- package/dist/src/folders.d.ts +2 -0
- package/dist/src/folders.js +45 -0
- package/dist/src/gateway.d.ts +7 -1
- package/dist/src/gateway.js +81 -12
- package/dist/src/live.d.ts +17 -0
- package/dist/src/live.js +109 -0
- package/dist/src/programs.d.ts +7 -0
- package/dist/src/programs.js +29 -2
- package/dist/src/signin.d.ts +12 -3
- package/dist/src/signin.js +30 -6
- package/package.json +2 -1
- package/dist/node_modules/@agentorg/interfaces/dist/src/mcp-provider.d.ts +0 -88
- package/dist/node_modules/@agentorg/interfaces/dist/src/mcp-provider.js +0 -78
- package/dist/node_modules/assistant/dist/src/agent.d.ts +0 -62
- package/dist/node_modules/assistant/dist/src/agent.js +0 -226
- package/dist/node_modules/assistant/dist/src/history.d.ts +0 -97
|
@@ -1,4 +1,61 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** A template's id. */
|
|
3
|
+
export declare const TemplateId: z.ZodString;
|
|
4
|
+
/** What a stack starts on: one base from an agent provider, with what it asks. */
|
|
5
|
+
export declare const StackBase: z.ZodObject<{
|
|
6
|
+
provider: z.ZodString;
|
|
7
|
+
creatable: z.ZodString;
|
|
8
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
/**
|
|
11
|
+
* One unit of a stack, top to bottom. `needs` picks, by kind, which earlier unit (its position in
|
|
12
|
+
* `units`) gives what this one needs; a kind exactly one earlier unit gives needs no pick.
|
|
13
|
+
*/
|
|
14
|
+
export declare const StackUnit: z.ZodObject<{
|
|
15
|
+
provider: z.ZodString;
|
|
16
|
+
unit: z.ZodString;
|
|
17
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
18
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
/** `template` notes the template it started from, for display only. */
|
|
21
|
+
export declare const Stack: z.ZodObject<{
|
|
22
|
+
base: z.ZodObject<{
|
|
23
|
+
provider: z.ZodString;
|
|
24
|
+
creatable: z.ZodString;
|
|
25
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
units: z.ZodArray<z.ZodObject<{
|
|
28
|
+
provider: z.ZodString;
|
|
29
|
+
unit: z.ZodString;
|
|
30
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
31
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
32
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
template: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
/**
|
|
37
|
+
* A saved stack of prefills: nothing in it is locked, and no secret is in it; management refuses a
|
|
38
|
+
* value for a secret field. A required field with no value must still be filled at creation.
|
|
39
|
+
* `from` notes the template it was copied from, for display only: later changes to that one don't
|
|
40
|
+
* reach this one.
|
|
41
|
+
*/
|
|
42
|
+
export declare const Template: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
description: z.ZodString;
|
|
46
|
+
from: z.ZodOptional<z.ZodString>;
|
|
47
|
+
base: z.ZodObject<{
|
|
48
|
+
creatable: z.ZodString;
|
|
49
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
50
|
+
provider: z.ZodString;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
units: z.ZodArray<z.ZodObject<{
|
|
53
|
+
unit: z.ZodString;
|
|
54
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
55
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
56
|
+
provider: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
}, z.core.$strict>;
|
|
2
59
|
/** Where a connection came from, written once when it was made. */
|
|
3
60
|
export declare const ConnectionOrigin: z.ZodObject<{
|
|
4
61
|
provider: z.ZodString;
|
|
@@ -26,22 +83,6 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
26
83
|
description: z.ZodOptional<z.ZodString>;
|
|
27
84
|
optional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
28
85
|
}, z.core.$strip>>;
|
|
29
|
-
skills: z.ZodArray<z.ZodObject<{
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
files: z.ZodArray<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>>;
|
|
33
|
-
mcp: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
-
how: z.ZodLiteral<"pick">;
|
|
35
|
-
slot: z.ZodString;
|
|
36
|
-
title: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
how: z.ZodLiteral<"create">;
|
|
39
|
-
slot: z.ZodString;
|
|
40
|
-
title: z.ZodString;
|
|
41
|
-
kind: z.ZodString;
|
|
42
|
-
params: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
43
|
-
fromAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
|
-
}, z.core.$strip>], "how">>;
|
|
45
86
|
provider: z.ZodString;
|
|
46
87
|
}, z.core.$strip>>;
|
|
47
88
|
}, z.core.$strip>>;
|
|
@@ -52,18 +93,214 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
52
93
|
name: z.ZodString;
|
|
53
94
|
}, z.core.$strip>>;
|
|
54
95
|
}, z.core.$strip>>;
|
|
96
|
+
/** Every base and unit the connected providers offer, each naming its provider. */
|
|
97
|
+
units: import("@agentorg/sdk").MethodSpec<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
bases: z.ZodArray<z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
title: z.ZodString;
|
|
101
|
+
description: z.ZodString;
|
|
102
|
+
instructions: z.ZodString;
|
|
103
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
optional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
provider: z.ZodString;
|
|
110
|
+
providerName: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
units: z.ZodArray<z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodString;
|
|
116
|
+
form: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
type: z.ZodString;
|
|
119
|
+
value: z.ZodEnum<{
|
|
120
|
+
boolean: "boolean";
|
|
121
|
+
number: "number";
|
|
122
|
+
secret: "secret";
|
|
123
|
+
string: "string";
|
|
124
|
+
strings: "strings";
|
|
125
|
+
}>;
|
|
126
|
+
title: z.ZodString;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
required: z.ZodOptional<z.ZodLiteral<true>>;
|
|
129
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
130
|
+
authority: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
contacts: "contacts";
|
|
132
|
+
holds: "holds";
|
|
133
|
+
instructs: "instructs";
|
|
134
|
+
runs: "runs";
|
|
135
|
+
setting: "setting";
|
|
136
|
+
}>>;
|
|
137
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
138
|
+
visible: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
field: z.ZodString;
|
|
140
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
value: z.ZodString;
|
|
144
|
+
title: z.ZodString;
|
|
145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
adds: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
slots: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
150
|
+
field: z.ZodString;
|
|
151
|
+
}, z.core.$strict>]>>;
|
|
152
|
+
skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
files: z.ZodArray<z.ZodString>;
|
|
155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
156
|
+
field: z.ZodString;
|
|
157
|
+
}, z.core.$strict>]>>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
}, z.core.$strip>>>;
|
|
160
|
+
adds: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
slots: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
field: z.ZodString;
|
|
165
|
+
}, z.core.$strict>]>>;
|
|
166
|
+
skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
167
|
+
name: z.ZodString;
|
|
168
|
+
files: z.ZodArray<z.ZodString>;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
field: z.ZodString;
|
|
171
|
+
}, z.core.$strict>]>>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
175
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
needs: z.ZodArray<z.ZodString>;
|
|
179
|
+
gives: z.ZodObject<{
|
|
180
|
+
slots: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
field: z.ZodString;
|
|
184
|
+
}, z.core.$strict>]>>;
|
|
185
|
+
skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
files: z.ZodArray<z.ZodString>;
|
|
188
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
189
|
+
field: z.ZodString;
|
|
190
|
+
}, z.core.$strict>]>>;
|
|
191
|
+
results: z.ZodArray<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
provider: z.ZodString;
|
|
194
|
+
providerName: z.ZodString;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
/** The templates: what the app ships and what the person saved. */
|
|
198
|
+
templates: import("@agentorg/sdk").MethodSpec<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
200
|
+
id: z.ZodString;
|
|
201
|
+
title: z.ZodString;
|
|
202
|
+
description: z.ZodString;
|
|
203
|
+
from: z.ZodOptional<z.ZodString>;
|
|
204
|
+
base: z.ZodObject<{
|
|
205
|
+
creatable: z.ZodString;
|
|
206
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
207
|
+
provider: z.ZodString;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
units: z.ZodArray<z.ZodObject<{
|
|
210
|
+
unit: z.ZodString;
|
|
211
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
212
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
213
|
+
provider: z.ZodString;
|
|
214
|
+
}, z.core.$strict>>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
/** Save a template, replacing the one of its id. A saved template holds no secret. */
|
|
218
|
+
saveTemplate: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
title: z.ZodString;
|
|
221
|
+
description: z.ZodString;
|
|
222
|
+
from: z.ZodOptional<z.ZodString>;
|
|
223
|
+
base: z.ZodObject<{
|
|
224
|
+
creatable: z.ZodString;
|
|
225
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
226
|
+
provider: z.ZodString;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
units: z.ZodArray<z.ZodObject<{
|
|
229
|
+
unit: z.ZodString;
|
|
230
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
231
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
232
|
+
provider: z.ZodString;
|
|
233
|
+
}, z.core.$strict>>;
|
|
234
|
+
}, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
|
|
235
|
+
removeTemplate: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
238
|
+
/** Check a stack, or a unit to add to a living agent, before anything runs. It changes nothing. */
|
|
239
|
+
check: import("@agentorg/sdk").MethodSpec<z.ZodUnion<readonly [z.ZodObject<{
|
|
240
|
+
stack: z.ZodObject<{
|
|
241
|
+
base: z.ZodObject<{
|
|
242
|
+
provider: z.ZodString;
|
|
243
|
+
creatable: z.ZodString;
|
|
244
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
units: z.ZodArray<z.ZodObject<{
|
|
247
|
+
provider: z.ZodString;
|
|
248
|
+
unit: z.ZodString;
|
|
249
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
250
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
251
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
252
|
+
}, z.core.$strict>>;
|
|
253
|
+
template: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
256
|
+
agent: z.ZodString;
|
|
257
|
+
unit: z.ZodObject<{
|
|
258
|
+
provider: z.ZodString;
|
|
259
|
+
unit: z.ZodString;
|
|
260
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
261
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
264
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
265
|
+
problems: z.ZodArray<z.ZodObject<{
|
|
266
|
+
field: z.ZodOptional<z.ZodString>;
|
|
267
|
+
message: z.ZodString;
|
|
268
|
+
unit: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
55
271
|
/**
|
|
56
|
-
* Make an agent
|
|
57
|
-
*
|
|
58
|
-
*
|
|
272
|
+
* Make an agent, from a stack, or from a template with what is filled in for each of its units
|
|
273
|
+
* by position; nothing in a template is locked, so a caller changing more sends the stack. All
|
|
274
|
+
* or none: if any step fails, what this creation made is removed, last first.
|
|
59
275
|
*/
|
|
60
|
-
create: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
61
|
-
|
|
62
|
-
|
|
276
|
+
create: import("@agentorg/sdk").MethodSpec<z.ZodUnion<readonly [z.ZodObject<{
|
|
277
|
+
stack: z.ZodObject<{
|
|
278
|
+
base: z.ZodObject<{
|
|
279
|
+
provider: z.ZodString;
|
|
280
|
+
creatable: z.ZodString;
|
|
281
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
units: z.ZodArray<z.ZodObject<{
|
|
284
|
+
provider: z.ZodString;
|
|
285
|
+
unit: z.ZodString;
|
|
286
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
287
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
288
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
289
|
+
}, z.core.$strict>>;
|
|
290
|
+
template: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strict>;
|
|
63
292
|
name: z.ZodString;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
293
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
template: z.ZodString;
|
|
296
|
+
fill: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
298
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
|
+
}, z.core.$strict>>>;
|
|
300
|
+
answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
301
|
+
name: z.ZodString;
|
|
302
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
67
304
|
agent: z.ZodString;
|
|
68
305
|
}, z.core.$strip>>;
|
|
69
306
|
list: import("@agentorg/sdk").MethodSpec<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
@@ -81,6 +318,13 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
81
318
|
}, z.core.$strip>;
|
|
82
319
|
provider: z.ZodString;
|
|
83
320
|
creatable: z.ZodString;
|
|
321
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
322
|
+
template: z.ZodOptional<z.ZodString>;
|
|
323
|
+
parent: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
agent: z.ZodString;
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
gone: z.ZodOptional<z.ZodLiteral<true>>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
84
328
|
}, z.core.$strip>>;
|
|
85
329
|
}, z.core.$strip>>;
|
|
86
330
|
/** What the agent is made of, in one read. */
|
|
@@ -100,10 +344,18 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
100
344
|
}, z.core.$strip>;
|
|
101
345
|
provider: z.ZodString;
|
|
102
346
|
creatable: z.ZodString;
|
|
347
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
348
|
+
template: z.ZodOptional<z.ZodString>;
|
|
349
|
+
parent: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
agent: z.ZodString;
|
|
351
|
+
name: z.ZodString;
|
|
352
|
+
gone: z.ZodOptional<z.ZodLiteral<true>>;
|
|
353
|
+
}, z.core.$strip>>;
|
|
103
354
|
instructions: z.ZodString;
|
|
104
355
|
skills: z.ZodArray<z.ZodObject<{
|
|
105
356
|
name: z.ZodString;
|
|
106
357
|
description: z.ZodString;
|
|
358
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
107
359
|
}, z.core.$strip>>;
|
|
108
360
|
mcp: z.ZodArray<z.ZodObject<{
|
|
109
361
|
slot: z.ZodString;
|
|
@@ -128,15 +380,59 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
128
380
|
description: z.ZodOptional<z.ZodString>;
|
|
129
381
|
}, z.core.$strip>>;
|
|
130
382
|
}, z.core.$strip>;
|
|
383
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
units: z.ZodArray<z.ZodObject<{
|
|
386
|
+
instance: z.ZodString;
|
|
387
|
+
provider: z.ZodString;
|
|
388
|
+
unit: z.ZodString;
|
|
389
|
+
title: z.ZodString;
|
|
390
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
391
|
+
needs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
392
|
+
status: z.ZodObject<{
|
|
393
|
+
state: z.ZodEnum<{
|
|
394
|
+
connected: "connected";
|
|
395
|
+
connecting: "connecting";
|
|
396
|
+
down: "down";
|
|
397
|
+
}>;
|
|
398
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
399
|
+
surfaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
400
|
+
surface: z.ZodString;
|
|
401
|
+
protocol: z.ZodString;
|
|
402
|
+
operate: z.ZodBoolean;
|
|
403
|
+
unavailable: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
405
|
+
}, z.core.$strip>;
|
|
131
406
|
}, z.core.$strip>>;
|
|
132
407
|
}, z.core.$strip>>;
|
|
133
408
|
start: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
134
409
|
agent: z.ZodString;
|
|
135
410
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
136
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* Stops the agent: whatever it was doing ends, and it does nothing until started; all else
|
|
413
|
+
* stays. This is the one way to stop an agent's work.
|
|
414
|
+
*/
|
|
137
415
|
stop: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
138
416
|
agent: z.ZodString;
|
|
139
417
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
418
|
+
/** The models the agent can use, and the one chosen, as its provider says. */
|
|
419
|
+
models: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
420
|
+
agent: z.ZodString;
|
|
421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
+
models: z.ZodArray<z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
current: z.ZodOptional<z.ZodString>;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
/**
|
|
429
|
+
* Choose the model for the agent's next requests; with no `model`, go back to its provider's
|
|
430
|
+
* default. Refused `unknown` when the model isn't one of `models`.
|
|
431
|
+
*/
|
|
432
|
+
setModel: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
433
|
+
agent: z.ZodString;
|
|
434
|
+
model: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
140
436
|
/** Expose a skill or a connection to the agent; `as` names a connection's slot. */
|
|
141
437
|
expose: import("@agentorg/sdk").MethodSpec<z.ZodUnion<readonly [z.ZodObject<{
|
|
142
438
|
agent: z.ZodString;
|
|
@@ -155,7 +451,65 @@ export declare const agents: import("@agentorg/sdk").RpcInterface<"agents", {
|
|
|
155
451
|
agent: z.ZodString;
|
|
156
452
|
slot: z.ZodString;
|
|
157
453
|
}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strip>>;
|
|
158
|
-
/**
|
|
454
|
+
/** Add a unit to a living agent, below those it has; it takes effect at the next request. */
|
|
455
|
+
addUnit: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
456
|
+
agent: z.ZodString;
|
|
457
|
+
unit: z.ZodObject<{
|
|
458
|
+
provider: z.ZodString;
|
|
459
|
+
unit: z.ZodString;
|
|
460
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
461
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
needs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
464
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
465
|
+
instance: z.ZodString;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
/** Remove a unit from a living agent: what it made goes. Refused `state` while another needs it. */
|
|
468
|
+
removeUnit: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
469
|
+
agent: z.ZodString;
|
|
470
|
+
instance: z.ZodString;
|
|
471
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
472
|
+
/**
|
|
473
|
+
* What agents did through their control units, newest first: each call that changed something,
|
|
474
|
+
* and each refusal. With `agent`, those it made or that were about it.
|
|
475
|
+
*/
|
|
476
|
+
activity: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
477
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
478
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
482
|
+
seq: z.ZodNumber;
|
|
483
|
+
at: z.ZodString;
|
|
484
|
+
caller: z.ZodString;
|
|
485
|
+
tool: z.ZodString;
|
|
486
|
+
target: z.ZodOptional<z.ZodString>;
|
|
487
|
+
outcome: z.ZodEnum<{
|
|
488
|
+
done: "done";
|
|
489
|
+
refused: "refused";
|
|
490
|
+
}>;
|
|
491
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
more: z.ZodBoolean;
|
|
494
|
+
}, z.core.$strip>>;
|
|
495
|
+
/**
|
|
496
|
+
* A one-time ticket to open one of a unit's surfaces live. For the person's gateway, which dials
|
|
497
|
+
* it and pipes the bytes to a page; it never reaches a page itself. No agent can ask for one.
|
|
498
|
+
*/
|
|
499
|
+
live: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
500
|
+
agent: z.ZodString;
|
|
501
|
+
instance: z.ZodString;
|
|
502
|
+
surface: z.ZodString;
|
|
503
|
+
mode: z.ZodEnum<{
|
|
504
|
+
operate: "operate";
|
|
505
|
+
watch: "watch";
|
|
506
|
+
}>;
|
|
507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
url: z.ZodString;
|
|
509
|
+
protocol: z.ZodString;
|
|
510
|
+
expiresAt: z.ZodString;
|
|
511
|
+
}, z.core.$strip>>;
|
|
512
|
+
/** Final: removes the units, last first, then the agent, and the connections made for it. */
|
|
159
513
|
remove: import("@agentorg/sdk").MethodSpec<z.ZodObject<{
|
|
160
514
|
agent: z.ZodString;
|
|
161
515
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|