hexel-sdk 0.1.0
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/LICENSE +21 -0
- package/Makefile +28 -0
- package/README.md +123 -0
- package/dist/_internal/auth.d.ts +17 -0
- package/dist/_internal/auth.d.ts.map +1 -0
- package/dist/_internal/auth.js +50 -0
- package/dist/_internal/auth.js.map +1 -0
- package/dist/_internal/client.d.ts +15 -0
- package/dist/_internal/client.d.ts.map +1 -0
- package/dist/_internal/client.js +22 -0
- package/dist/_internal/client.js.map +1 -0
- package/dist/_internal/http.d.ts +15 -0
- package/dist/_internal/http.d.ts.map +1 -0
- package/dist/_internal/http.js +59 -0
- package/dist/_internal/http.js.map +1 -0
- package/dist/compute/agent.d.ts +18 -0
- package/dist/compute/agent.d.ts.map +1 -0
- package/dist/compute/agent.js +40 -0
- package/dist/compute/agent.js.map +1 -0
- package/dist/compute/index.d.ts +13 -0
- package/dist/compute/index.d.ts.map +1 -0
- package/dist/compute/index.js +36 -0
- package/dist/compute/index.js.map +1 -0
- package/dist/compute/instance.d.ts +18 -0
- package/dist/compute/instance.d.ts.map +1 -0
- package/dist/compute/instance.js +40 -0
- package/dist/compute/instance.js.map +1 -0
- package/dist/compute/sandbox.d.ts +20 -0
- package/dist/compute/sandbox.d.ts.map +1 -0
- package/dist/compute/sandbox.js +44 -0
- package/dist/compute/sandbox.js.map +1 -0
- package/dist/compute/types.d.ts +272 -0
- package/dist/compute/types.d.ts.map +1 -0
- package/dist/compute/types.js +4 -0
- package/dist/compute/types.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/generator/generate.py +180 -0
- package/generator/ir.json +1545 -0
- package/generator/overrides.json +66 -0
- package/generator/parser.py +180 -0
- package/package.json +21 -0
- package/specs/agent-registry-api.json +1 -0
- package/specs/agentd-api.json +1364 -0
- package/specs/compute-api.json +1 -0
- package/src/_internal/auth.ts +56 -0
- package/src/_internal/client.ts +33 -0
- package/src/_internal/http.ts +61 -0
- package/src/compute/agent.ts +41 -0
- package/src/compute/index.ts +20 -0
- package/src/compute/instance.ts +41 -0
- package/src/compute/sandbox.ts +46 -0
- package/src/compute/types.ts +310 -0
- package/src/index.ts +3 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
// Generated by hexel-sdk-generator. Do not edit manually.
|
|
2
|
+
|
|
3
|
+
export interface OAuthClient {
|
|
4
|
+
client_id?: string;
|
|
5
|
+
created_at?: string;
|
|
6
|
+
is_active?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface OAuthClientResponse {
|
|
11
|
+
client_id?: string;
|
|
12
|
+
client_secret?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface InstanceInfo {
|
|
17
|
+
allowed_org_ids?: string[];
|
|
18
|
+
author?: string;
|
|
19
|
+
capabilities?: string[];
|
|
20
|
+
created_at?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
endpoint?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
image?: string;
|
|
25
|
+
image_pull_secret?: ImagePullSecret;
|
|
26
|
+
manifest?: AgentManifest;
|
|
27
|
+
metadata?: Record<string, string>;
|
|
28
|
+
name?: string;
|
|
29
|
+
org_id?: string;
|
|
30
|
+
public_key?: string;
|
|
31
|
+
state?: string;
|
|
32
|
+
updated_at?: string;
|
|
33
|
+
version?: string;
|
|
34
|
+
visibility?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface SandboxInfo {
|
|
38
|
+
allocated_at?: string;
|
|
39
|
+
created_at?: string;
|
|
40
|
+
expires_at?: string;
|
|
41
|
+
id?: string;
|
|
42
|
+
metadata?: Record<string, string>;
|
|
43
|
+
released_at?: string;
|
|
44
|
+
skills?: string[];
|
|
45
|
+
state?: string;
|
|
46
|
+
tier?: string;
|
|
47
|
+
token?: string;
|
|
48
|
+
ttl_seconds?: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface CreateSandboxRequest {
|
|
52
|
+
env?: Record<string, string>;
|
|
53
|
+
metadata?: Record<string, string>;
|
|
54
|
+
org_id?: string;
|
|
55
|
+
secure_runtime?: string;
|
|
56
|
+
skills?: string[];
|
|
57
|
+
tier: string;
|
|
58
|
+
ttl_seconds?: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface SandboxResponse {
|
|
62
|
+
endpoint?: string;
|
|
63
|
+
expires_at?: string;
|
|
64
|
+
skills_loaded?: string[];
|
|
65
|
+
state?: string;
|
|
66
|
+
tier?: string;
|
|
67
|
+
token?: string;
|
|
68
|
+
vm_id?: string;
|
|
69
|
+
ws_url?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface CreateSkillRequest {
|
|
73
|
+
content: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
name: string;
|
|
76
|
+
resources?: Record<string, string>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ErrorResponse {
|
|
80
|
+
code?: number;
|
|
81
|
+
message?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface PoolConfig {
|
|
85
|
+
default_skills?: string[];
|
|
86
|
+
default_tier?: string;
|
|
87
|
+
idle_ttl_seconds?: number;
|
|
88
|
+
max_total?: number;
|
|
89
|
+
max_vm_ttl_seconds?: number;
|
|
90
|
+
max_warm?: number;
|
|
91
|
+
min_warm?: number;
|
|
92
|
+
recycle?: boolean;
|
|
93
|
+
scale_up_threshold?: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface PoolStatus {
|
|
97
|
+
allocated?: number;
|
|
98
|
+
by_tier?: Record<string, number>;
|
|
99
|
+
total?: number;
|
|
100
|
+
warm?: number;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface ReleaseRequest {
|
|
104
|
+
recycle?: boolean;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface RenewRequest {
|
|
108
|
+
ttl_seconds: number;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface Skill {
|
|
112
|
+
content?: string;
|
|
113
|
+
content_hash?: string;
|
|
114
|
+
created_at?: string;
|
|
115
|
+
description?: string;
|
|
116
|
+
name?: string;
|
|
117
|
+
resources?: Record<string, string>;
|
|
118
|
+
updated_at?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface UsageRecord {
|
|
122
|
+
duration_seconds?: number;
|
|
123
|
+
ended_at?: string;
|
|
124
|
+
reason?: string;
|
|
125
|
+
started_at?: string;
|
|
126
|
+
tier?: string;
|
|
127
|
+
vm_id?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface UsageSummary {
|
|
131
|
+
by_tier?: Record<string, number>;
|
|
132
|
+
period_end?: string;
|
|
133
|
+
period_start?: string;
|
|
134
|
+
total_seconds?: number;
|
|
135
|
+
vm_count?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface AgentManifest {
|
|
139
|
+
authentication?: Record<string, unknown>;
|
|
140
|
+
capabilities?: Record<string, unknown>;
|
|
141
|
+
description?: string;
|
|
142
|
+
input_schema?: Record<string, unknown>;
|
|
143
|
+
name?: string;
|
|
144
|
+
output_schema?: Record<string, unknown>;
|
|
145
|
+
runtime?: Record<string, unknown>;
|
|
146
|
+
skills?: ManifestSkill[];
|
|
147
|
+
url?: string;
|
|
148
|
+
version?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface Agent {
|
|
152
|
+
id?: string;
|
|
153
|
+
name?: string;
|
|
154
|
+
image?: string;
|
|
155
|
+
description?: string;
|
|
156
|
+
author?: string;
|
|
157
|
+
version?: string;
|
|
158
|
+
state?: string;
|
|
159
|
+
visibility?: string;
|
|
160
|
+
capabilities?: string[];
|
|
161
|
+
endpoint?: string;
|
|
162
|
+
metadata?: Record<string, string>;
|
|
163
|
+
image_pull_secret?: ImagePullSecret;
|
|
164
|
+
manifest?: AgentManifest;
|
|
165
|
+
created_at?: string;
|
|
166
|
+
updated_at?: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface AgentResponse {
|
|
170
|
+
agent?: Agent;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface AgentsListResponse {
|
|
174
|
+
agents?: Agent[];
|
|
175
|
+
total?: number;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface CreateAgentRequest {
|
|
179
|
+
author?: string;
|
|
180
|
+
capabilities?: string[];
|
|
181
|
+
description?: string;
|
|
182
|
+
endpoint?: string;
|
|
183
|
+
image: string;
|
|
184
|
+
image_pull_secret?: ImagePullSecret;
|
|
185
|
+
manifest?: AgentManifest;
|
|
186
|
+
metadata?: Record<string, string>;
|
|
187
|
+
name: string;
|
|
188
|
+
org_id: string;
|
|
189
|
+
version?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface CreateToolRequest {
|
|
193
|
+
category?: string;
|
|
194
|
+
description?: string;
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface ImagePullSecret {
|
|
200
|
+
password?: string;
|
|
201
|
+
registry?: string;
|
|
202
|
+
username?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface ManifestSkill {
|
|
206
|
+
id?: string;
|
|
207
|
+
inputModes?: string[];
|
|
208
|
+
outputModes?: string[];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface Tool {
|
|
212
|
+
category?: string;
|
|
213
|
+
created_at?: string;
|
|
214
|
+
description?: string;
|
|
215
|
+
id?: string;
|
|
216
|
+
name?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface ToolResponse {
|
|
220
|
+
tool?: Tool;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface ToolsListResponse {
|
|
224
|
+
tools?: Tool[];
|
|
225
|
+
total?: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface UpdateAgentRequest {
|
|
229
|
+
capabilities?: string[];
|
|
230
|
+
description?: string;
|
|
231
|
+
endpoint?: string;
|
|
232
|
+
image?: string;
|
|
233
|
+
manifest?: AgentManifest;
|
|
234
|
+
metadata?: Record<string, string>;
|
|
235
|
+
name?: string;
|
|
236
|
+
public_key?: string;
|
|
237
|
+
state?: string;
|
|
238
|
+
version?: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export interface CodeContext {
|
|
242
|
+
created_at?: string;
|
|
243
|
+
id?: string;
|
|
244
|
+
kernel_id?: string;
|
|
245
|
+
language?: string;
|
|
246
|
+
session_id?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface CommandStatus {
|
|
250
|
+
exit_code?: number;
|
|
251
|
+
finished_at?: string;
|
|
252
|
+
id?: string;
|
|
253
|
+
running?: boolean;
|
|
254
|
+
started_at?: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface CreateContextRequest {
|
|
258
|
+
language: string;
|
|
259
|
+
session_id: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface ExecuteCodeRequest {
|
|
263
|
+
code: string;
|
|
264
|
+
context_id: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface ExecuteRequest {
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface FileInfo {
|
|
271
|
+
group?: string;
|
|
272
|
+
is_dir?: boolean;
|
|
273
|
+
mod_time?: string;
|
|
274
|
+
mode?: string;
|
|
275
|
+
owner?: string;
|
|
276
|
+
path?: string;
|
|
277
|
+
size?: number;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface LoadSkillsRequest {
|
|
281
|
+
skills: string[];
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface MetricsSnapshot {
|
|
285
|
+
cpu_percent?: number;
|
|
286
|
+
mem_total_bytes?: number;
|
|
287
|
+
mem_used_bytes?: number;
|
|
288
|
+
tokens_total?: number;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface RunCommandRequest {
|
|
292
|
+
background?: boolean;
|
|
293
|
+
command: string;
|
|
294
|
+
cwd?: string;
|
|
295
|
+
envs?: Record<string, string>;
|
|
296
|
+
gid?: number;
|
|
297
|
+
timeout_ms?: number;
|
|
298
|
+
uid?: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface SSEEvent {
|
|
302
|
+
data?: string;
|
|
303
|
+
event?: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface SkillInfo {
|
|
307
|
+
loaded?: boolean;
|
|
308
|
+
name?: string;
|
|
309
|
+
path?: string;
|
|
310
|
+
}
|
package/src/index.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"rootDir": "src",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"skipLibCheck": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src"],
|
|
16
|
+
"exclude": ["node_modules", "dist", "generator"]
|
|
17
|
+
}
|