@agentshouse/kit-wire 0.1.0-c0f6ddeaad2f1 → 0.1.0-c29e71be8eca8
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/acts.d.ts +22 -6
- package/dist/acts.js +15 -5
- package/dist/arguments.js +1 -1
- package/dist/connection.d.ts +0 -15
- package/dist/connection.js +0 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/wire.d.ts +12 -14
- package/dist/wire.js +1 -1
- package/package.json +1 -1
package/dist/acts.d.ts
CHANGED
|
@@ -194,6 +194,11 @@ export type KitQuestion = z.infer<typeof KIT_QUESTION>;
|
|
|
194
194
|
export declare const LOCAL_COPY_ROOM: z.ZodObject<{
|
|
195
195
|
room_ref: z.ZodString;
|
|
196
196
|
room_handle: z.ZodString;
|
|
197
|
+
level: z.ZodEnum<{
|
|
198
|
+
keep: "keep";
|
|
199
|
+
open: "open";
|
|
200
|
+
search: "search";
|
|
201
|
+
}>;
|
|
197
202
|
}, z.core.$strict>;
|
|
198
203
|
export type LocalCopyRoom = z.infer<typeof LOCAL_COPY_ROOM>;
|
|
199
204
|
export interface KitActDeclaration<Id extends string, Body extends z.ZodType, Answer extends z.ZodType | KitDoorAnswer> {
|
|
@@ -332,7 +337,7 @@ export declare const KIT_ACTS: {
|
|
|
332
337
|
}, z.core.$strict>, {
|
|
333
338
|
door: string;
|
|
334
339
|
}>;
|
|
335
|
-
'
|
|
340
|
+
'agent_update.transcript_keep': KitActDeclaration<"conversation" | "message", z.ZodObject<{
|
|
336
341
|
path: z.ZodString;
|
|
337
342
|
text: z.ZodString;
|
|
338
343
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -342,7 +347,7 @@ export declare const KIT_ACTS: {
|
|
|
342
347
|
}, z.core.$strict>, {
|
|
343
348
|
door: string;
|
|
344
349
|
}>;
|
|
345
|
-
'
|
|
350
|
+
'agent_update.conversation_ask': KitActDeclaration<"conversation" | "turn", z.ZodObject<{
|
|
346
351
|
interaction_id: z.ZodUUID;
|
|
347
352
|
request: z.ZodJSONSchema;
|
|
348
353
|
secret: z.ZodBoolean;
|
|
@@ -351,7 +356,11 @@ export declare const KIT_ACTS: {
|
|
|
351
356
|
'kits/report-restart': KitActDeclaration<never, z.ZodObject<{
|
|
352
357
|
planned: z.ZodOptional<z.ZodLiteral<true>>;
|
|
353
358
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
354
|
-
'
|
|
359
|
+
'agent_update.credentials_issue': KitActDeclaration<never, z.ZodUnion<readonly [z.ZodObject<{
|
|
360
|
+
conversation: z.ZodString;
|
|
361
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
362
|
+
run: z.ZodString;
|
|
363
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
355
364
|
credential: z.ZodString;
|
|
356
365
|
}, z.core.$strict>>;
|
|
357
366
|
'kits/log-out': KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
@@ -363,13 +372,20 @@ export declare const KIT_ACTS: {
|
|
|
363
372
|
rooms: z.ZodArray<z.ZodObject<{
|
|
364
373
|
room_ref: z.ZodString;
|
|
365
374
|
room_handle: z.ZodString;
|
|
375
|
+
level: z.ZodEnum<{
|
|
376
|
+
keep: "keep";
|
|
377
|
+
open: "open";
|
|
378
|
+
search: "search";
|
|
379
|
+
}>;
|
|
366
380
|
}, z.core.$strict>>;
|
|
367
381
|
}, z.core.$strict>;
|
|
368
382
|
}, z.core.$strict>>;
|
|
369
|
-
'function-runs/credentials/issue': KitActDeclaration<"run", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
370
|
-
credential: z.ZodString;
|
|
371
|
-
}, z.core.$strict>>;
|
|
372
383
|
};
|
|
384
|
+
export interface KitActRoute {
|
|
385
|
+
readonly path: string;
|
|
386
|
+
readonly op: string | null;
|
|
387
|
+
}
|
|
388
|
+
export declare function kitActRoute(name: string): KitActRoute;
|
|
373
389
|
export declare const FUNCTION_RUN_META_KEY = "agents.house/function-run";
|
|
374
390
|
export type KitActName = keyof typeof KIT_ACTS;
|
|
375
391
|
type Declared<Name extends KitActName> = (typeof KIT_ACTS)[Name];
|
package/dist/acts.js
CHANGED
|
@@ -173,13 +173,18 @@ export const KIT_QUESTION = z.strictObject({
|
|
|
173
173
|
request: z.json(),
|
|
174
174
|
secret: z.boolean(),
|
|
175
175
|
});
|
|
176
|
-
export const LOCAL_COPY_ROOM = z.strictObject({
|
|
176
|
+
export const LOCAL_COPY_ROOM = z.strictObject({
|
|
177
|
+
room_ref: z.string(),
|
|
178
|
+
room_handle: z.string(),
|
|
179
|
+
level: z.enum(['search', 'open', 'keep']),
|
|
180
|
+
});
|
|
177
181
|
const NOTHING = z.strictObject({});
|
|
178
182
|
const KIT_RESTART = z.strictObject({ planned: z.literal(true).optional() });
|
|
179
183
|
function act(ids, body, answer) {
|
|
180
184
|
return { ids, body, answer };
|
|
181
185
|
}
|
|
182
186
|
const CONVERSATION_TURN = ['conversation', 'turn'];
|
|
187
|
+
const CREDENTIAL = z.strictObject({ credential: z.string().min(1) });
|
|
183
188
|
export const KIT_ACTS = {
|
|
184
189
|
'secret-inputs/await': act(['subject'], DECLARED_SECRET_CEREMONY, SECRET_RELAY_OUTCOME),
|
|
185
190
|
'agents/report': act([], AGENT_CAPABILITY_DECLARATION, NOTHING),
|
|
@@ -189,16 +194,21 @@ export const KIT_ACTS = {
|
|
|
189
194
|
'turns/activity/report': act(CONVERSATION_TURN, NOTHING, NOTHING),
|
|
190
195
|
'turns/end': act(CONVERSATION_TURN, KIT_TURN_END, NOTHING),
|
|
191
196
|
'turns/images/declare': act(CONVERSATION_TURN, KIT_TURN_IMAGE, { door: 'files/attach' }),
|
|
192
|
-
'
|
|
197
|
+
'agent_update.transcript_keep': act(['conversation', 'message'], TRANSCRIPT, NOTHING),
|
|
193
198
|
'uploads/finish': act([], KIT_UPLOAD_FINISH, { door: 'files/finish' }),
|
|
194
|
-
'
|
|
199
|
+
'agent_update.conversation_ask': act(CONVERSATION_TURN, KIT_QUESTION, NOTHING),
|
|
195
200
|
'kits/report-idle': act([], NOTHING, NOTHING),
|
|
196
201
|
'kits/report-restart': act([], KIT_RESTART, NOTHING),
|
|
197
|
-
'
|
|
202
|
+
'agent_update.credentials_issue': act([], z.union([z.strictObject({ conversation: z.string() }), z.strictObject({ run: z.string() })]), CREDENTIAL),
|
|
198
203
|
'kits/log-out': act([], NOTHING, z.strictObject({ environment: z.uuid(), revoked: z.literal(true) })),
|
|
199
204
|
'local-copies/selection/read': act([], NOTHING, z.strictObject({ local_copy: z.strictObject({ rooms: z.array(LOCAL_COPY_ROOM) }) })),
|
|
200
|
-
'function-runs/credentials/issue': act(['run'], NOTHING, z.strictObject({ credential: z.string().min(1) })),
|
|
201
205
|
};
|
|
206
|
+
export function kitActRoute(name) {
|
|
207
|
+
const dot = name.indexOf('.');
|
|
208
|
+
return dot < 0
|
|
209
|
+
? { path: `/kit/${name}`, op: null }
|
|
210
|
+
: { path: `/kit/${name.slice(0, dot)}`, op: name.slice(dot + 1) };
|
|
211
|
+
}
|
|
202
212
|
export const FUNCTION_RUN_META_KEY = 'agents.house/function-run';
|
|
203
213
|
export const KIT_DOOR_ACTS = [
|
|
204
214
|
'rooms/discover',
|
package/dist/arguments.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const KIT_TOOLS = ['upload', 'update', 'info'];
|
|
3
|
-
const HOUSE_ARGUMENTS = {"door":{"rooms/discover":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"room-chunks/list":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"changes/enumerate":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"positions":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","minLength":1,"maxLength":128},"position":{"type":"string"},"log_epoch":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"page":{"type":"object","properties":{"through":{"type":"string"},"read":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["through","read"],"additionalProperties":false}},"required":["authority","position","log_epoch"],"additionalProperties":false}},"operation_id":{"type":"string"}},"required":["prefixes","positions"],"additionalProperties":false},"files/revisions/list":{"type":"object","properties":{"path":{"type":"string","minLength":1},"revision":{"type":"string"},"before":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"limit":{"type":"integer","minimum":1,"maximum":200},"operation_id":{"type":"string"}},"required":["path"],"additionalProperties":false},"update":{"anyOf":[{"type":"object","properties":{"mount":{"type":"string","minLength":1},"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"set_field"},"path":{"type":"string","minLength":1},"field":{"type":"string","minLength":1,"maxLength":128},"base":{"$ref":"#/$defs/__schema0"},"value":{"$ref":"#/$defs/__schema1"}},"required":["op","path","field","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_section"},"path":{"type":"string","minLength":1},"section":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\r\\n]+$"},"base":{"type":["string","null"]},"content":{"type":"string"}},"required":["op","path","section","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_preamble"},"path":{"type":"string","minLength":1},"base":{"type":"string"},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create"},"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"patch"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"find":{"type":"string","minLength":1},"replace":{"type":"string"}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"rename"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","base"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_typed"},"path":{"type":"string","minLength":1},"type":{"type":"string","minLength":1,"maxLength":64},"fields":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":128},"additionalProperties":{"$ref":"#/$defs/__schema2"}}},"required":["op","path","type","fields"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path","name"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false}]}},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["changes"],"additionalProperties":false},{"type":"object","properties":{"mount":{"type":"string","minLength":1},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["paths","upload"],"additionalProperties":false}],"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]},"__schema2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema2"}}]}}}},"tools":{"upload":{"type":"object","properties":{"file":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"download_url":{"type":"string","format":"uri"},"file_id":{"type":"string","minLength":1},"mime_type":{"type":"string","minLength":1,"maxLength":255},"file_name":{"type":"string"}},"required":["download_url","file_id"],"additionalProperties":false}]},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255},"upload":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"part_sha256":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false},"update":{"type":"object","properties":{"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"set_field"},"path":{"type":"string","minLength":1},"field":{"type":"string","minLength":1,"maxLength":128},"base":{"$ref":"#/$defs/__schema0"},"value":{"$ref":"#/$defs/__schema1"}},"required":["op","path","field","value"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_section"},"path":{"type":"string","minLength":1},"section":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[^\\r\\n]+$"},"base":{"type":["string","null"]},"content":{"type":"string"}},"required":["op","path","section","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace_preamble"},"path":{"type":"string","minLength":1},"base":{"type":"string"},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create"},"path":{"type":"string","minLength":1},"content":{"type":"string"}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"patch"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"find":{"type":"string","minLength":1},"replace":{"type":"string"}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"replace"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"content":{"type":"string"}},"required":["op","path","base","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"rename"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","base"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"create_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"remove_folder"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path","name"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false}]}},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"mount":{"type":"string","minLength":1},"op":{"type":"string","const":"stage"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}},"info":{"type":"object","properties":{"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"app":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"environment":{"type":"string","minLength":1},"conversation":{"type":"string","minLength":1},"view":{"type":"string","enum":["sources","history"]},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"cursor":{"type":"string","minLength":1}},"additionalProperties":false}}};
|
|
3
|
+
const HOUSE_ARGUMENTS = {"door":{"rooms/discover":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"room-chunks/list":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"operation_id":{"type":"string"}},"required":["prefixes"],"additionalProperties":false},"changes/enumerate":{"type":"object","properties":{"prefixes":{"maxItems":256,"type":"array","items":{"type":"string"}},"positions":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"authority":{"type":"string","minLength":1,"maxLength":128},"position":{"type":"string"},"log_epoch":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"page":{"type":"object","properties":{"through":{"type":"string"},"read":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["through","read"],"additionalProperties":false}},"required":["authority","position","log_epoch"],"additionalProperties":false}},"operation_id":{"type":"string"}},"required":["prefixes","positions"],"additionalProperties":false},"files/revisions/list":{"type":"object","properties":{"path":{"type":"string","minLength":1},"revision":{"type":"string"},"before":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"limit":{"type":"integer","minimum":1,"maximum":200},"operation_id":{"type":"string"}},"required":["path"],"additionalProperties":false},"update":{"anyOf":[{"type":"object","properties":{"mount":{"type":"string","minLength":1},"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"write"},"path":{"type":"string","minLength":1},"content":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"edit"},"path":{"type":"string","minLength":1},"find":{"type":"string","minLength":1},"replace":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"record"},"path":{"type":"string","minLength":1},"body":{"type":"string"},"claimed":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"name":{"type":"string","minLength":1,"maxLength":200},"key":{"type":"string","minLength":1},"original":{"type":"string","minLength":1}},"required":["op","path","body","claimed"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_create"},"room":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"}},"required":["op","room","description","condition","actions"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_set"},"trigger":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"},"action":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["op","trigger"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_delete"},"trigger":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","trigger"],"additionalProperties":false}]}},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["changes"],"additionalProperties":false},{"type":"object","properties":{"mount":{"type":"string","minLength":1},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"runtime":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"app_ref":{"type":"string"},"release":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"operation_id":{"type":"string"}},"required":["paths","upload"],"additionalProperties":false}]}},"tools":{"upload":{"type":"object","properties":{"file":{"anyOf":[{"type":"string","minLength":1},{"type":"object","properties":{"download_url":{"type":"string","format":"uri"},"file_id":{"type":"string","minLength":1},"mime_type":{"type":"string","minLength":1,"maxLength":255},"file_name":{"type":"string"}},"required":["download_url","file_id"],"additionalProperties":false}]},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255},"upload":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"part_sha256":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false},"update":{"type":"object","properties":{"changes":{"minItems":1,"maxItems":10000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","const":"write"},"path":{"type":"string","minLength":1},"content":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","content"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"edit"},"path":{"type":"string","minLength":1},"find":{"type":"string","minLength":1},"replace":{"type":"string"},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path","find","replace"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"move"},"path":{"type":"string","minLength":1},"to":{"type":"string","minLength":1},"base":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string","minLength":1,"maxLength":64}}]}},"required":["op","path","to"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"delete"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"upload"},"path":{"type":"string","minLength":1},"base":{"type":"string","minLength":1,"maxLength":64},"local_id":{"type":"string","minLength":1,"maxLength":64},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":255}},"required":["op","path","bytes","sha256","media_type"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"record"},"path":{"type":"string","minLength":1},"body":{"type":"string"},"claimed":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"name":{"type":"string","minLength":1,"maxLength":200},"key":{"type":"string","minLength":1},"original":{"type":"string","minLength":1}},"required":["op","path","body","claimed"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"mkdir"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"from":{"type":"string","minLength":1,"maxLength":200},"content":{"type":"boolean"},"readme":{"type":"string"},"space":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"set"},"path":{"type":"string","minLength":1},"name":{"type":"string","maxLength":200},"time_zone":{"type":"string","maxLength":64},"public":{"type":"boolean"},"space":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"restore"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"erase"},"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1,"maxLength":200}},"required":["op","path"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trash_empty"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"versions_clear"},"room":{"type":"string","minLength":1,"maxLength":200}},"required":["op","room"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_create"},"room":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"}},"required":["op","room","description","condition","actions"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_set"},"trigger":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\r\\n\\u2028\\u2029]*$"},"condition":{"anyOf":[{"type":"object","properties":{"on":{"type":"string","const":"documents"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"pathPrefix":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false},"new_documents":{"type":"boolean"},"changes":{"anyOf":[{"type":"string","const":"text"},{"type":"object","properties":{"field":{"type":"string"},"from":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"new"}]},"to":{"anyOf":[{"type":"array","items":{"type":["string","number","boolean","null"]}},{"type":"string","const":"deleted"}]}},"required":["field"],"additionalProperties":false}]},"by":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"moved_between_rooms":{"type":"boolean"}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"items"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"notifications"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"messages"},"query":{"type":"object","properties":{"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}},"required":["on"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"cron":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","cron"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"clock"},"query":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"where":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["types"],"additionalProperties":false},"date":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"at":{"type":"string"},"time_zone":{"type":"string"}},"required":["on","query","date","days","at"],"additionalProperties":false}]},"actions":{"minItems":1,"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"notify"},"title":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":4000},"to":{"type":"object","properties":{"users":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"fields":{"default":[],"maxItems":16,"type":"array","items":{"type":"string"}},"roles":{"default":[],"maxItems":16,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"additionalProperties":false},"in_group":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","title","text","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"agent_function"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"message"},"card":{"type":"string","pattern":"^[^/]+$"},"model":{"type":"string","minLength":1},"effort":{"type":"string","minLength":1},"enabled":{"default":true,"type":"boolean"}},"required":["kind","card"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"app":{"type":"string","pattern":"^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"attached_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attach":{"default":false,"type":"boolean"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","app","function"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"function"},"function":{"type":"string","pattern":"^[^\\p{Cc}]{1,64}$"},"owner":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"}},"required":["kind","function","owner"],"additionalProperties":false}]}},"enabled":{"type":"boolean"},"action":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["op","trigger"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","const":"trigger_delete"},"trigger":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","trigger"],"additionalProperties":false}]}},"upload":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"operation":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["url","operation","bytes","sha256"],"additionalProperties":false},"mount":{"type":"string","minLength":1},"op":{"type":"string","const":"stage"},"paths":{"minItems":1,"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"bytes":{"type":"integer","minimum":3936001,"maximum":31999963},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"additionalProperties":false},"info":{"type":"object","properties":{"path":{"type":"string","minLength":1},"ref":{"type":"string","minLength":1},"app":{"type":"string","minLength":1},"agent":{"type":"string","minLength":1},"environment":{"type":"string","minLength":1},"conversation":{"type":"string","minLength":1},"history":{"type":"boolean"},"events":{"type":"boolean"},"errors":{"type":"boolean"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"cursor":{"type":"string","minLength":1}},"additionalProperties":false}}};
|
|
4
4
|
function declared(shapes) {
|
|
5
5
|
return Object.fromEntries(Object.entries(shapes ?? {}).map(([name, shape]) => [
|
|
6
6
|
name,
|
package/dist/connection.d.ts
CHANGED
|
@@ -52,14 +52,6 @@ export declare const KIT_CALLS: {
|
|
|
52
52
|
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
53
53
|
kind: z.ZodLiteral<"kill">;
|
|
54
54
|
}, z.core.$strict>;
|
|
55
|
-
done: z.ZodObject<{
|
|
56
|
-
type: z.ZodLiteral<"input">;
|
|
57
|
-
input_id: z.ZodUUID;
|
|
58
|
-
conversation_id: z.ZodUUID;
|
|
59
|
-
agent_id: z.ZodUUID;
|
|
60
|
-
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
61
|
-
kind: z.ZodLiteral<"done">;
|
|
62
|
-
}, z.core.$strict>;
|
|
63
55
|
message: z.ZodObject<{
|
|
64
56
|
type: z.ZodLiteral<"input">;
|
|
65
57
|
input_id: z.ZodUUID;
|
|
@@ -187,13 +179,6 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
187
179
|
agent_id: z.ZodUUID;
|
|
188
180
|
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
189
181
|
kind: z.ZodLiteral<"kill">;
|
|
190
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
-
type: z.ZodLiteral<"input">;
|
|
192
|
-
input_id: z.ZodUUID;
|
|
193
|
-
conversation_id: z.ZodUUID;
|
|
194
|
-
agent_id: z.ZodUUID;
|
|
195
|
-
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
196
|
-
kind: z.ZodLiteral<"done">;
|
|
197
182
|
}, z.core.$strict>, z.ZodObject<{
|
|
198
183
|
type: z.ZodLiteral<"input">;
|
|
199
184
|
input_id: z.ZodUUID;
|
package/dist/connection.js
CHANGED
|
@@ -58,7 +58,6 @@ const STARTING_CHOICES = {
|
|
|
58
58
|
export const KIT_CALLS = {
|
|
59
59
|
open: conversationCall('open', { afk: AFK, ...STARTING_CHOICES }),
|
|
60
60
|
kill: conversationCall('kill', {}),
|
|
61
|
-
done: conversationCall('done', {}),
|
|
62
61
|
message: conversationCall('message', {
|
|
63
62
|
message_id: z.uuid(),
|
|
64
63
|
text: z.string(),
|
|
@@ -108,7 +107,6 @@ export const KIT_CALLS = {
|
|
|
108
107
|
export const KIT_CALL = z.discriminatedUnion('kind', [
|
|
109
108
|
KIT_CALLS.open,
|
|
110
109
|
KIT_CALLS.kill,
|
|
111
|
-
KIT_CALLS.done,
|
|
112
110
|
KIT_CALLS.message,
|
|
113
111
|
KIT_CALLS.take_out,
|
|
114
112
|
KIT_CALLS.interrupt,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { HOUSE_ONE_WAY_CALLS, KIT_CALL, KIT_CALL_RESULT, KIT_CALLS, KIT_CAUSE, KIT_CONNECTION_PATH, KIT_CONNECTION_PROTOCOL_PREFIX, KIT_ONE_WAY_CALLS, KIT_SETTINGS, SESSION_CHOICE_BYTES_MAX, STARTING_STEPS, } from './connection.ts';
|
|
2
2
|
export type { HouseOneWayCall, HouseOneWayCallOf, KitCall, KitCallOf, KitCallResult, KitMethod, KitOneWayCall, KitOneWayCallOf, KitSettings, } from './connection.ts';
|
|
3
|
-
export { AGENT_CAPABILITY_DECLARATION, DECLARED_SECRET_CEREMONY, DESIRED_AGENT_ROUTE, DESIRED_AGENTS, ENVIRONMENT_FORMS, FILE_BYTES, FILE_NAME, FILE_NAME_MAX, FUNCTION_RUN_META_KEY, KIT_ACTS, KIT_BINARY_CHANGE, KIT_DOOR_ACTS, KIT_QUESTION, KIT_REINSTALLS, KIT_TURN_END, KIT_TURN_IMAGE, KIT_UPLOAD_FINISH, LOCAL_COPY_ROOM, MEDIA_TYPE, PART_SHA256, REPORTED_AGENT_KIND, SECRET_CEREMONY_STEPS_MAX, SECRET_RELAY_OUTCOME, SECRET_RELAY_RELEASES, SHA256, TRANSCRIPT, } from './acts.ts';
|
|
4
|
-
export type { AgentCapabilityDeclaration, DeclaredSecretCeremony, DesiredAgentRoute, KitActAnswer, KitActDeclaration, KitActName, KitActRequest, KitBinaryChange, KitDoorAct, KitDoorAnswer, KitQuestion, KitTurnEnd, KitTurnImage, LocalCopyRoom, ReportedAgentKind, SecretCeremonyStep, SecretRelayOutcome, Transcript, TranscriptionReport, } from './acts.ts';
|
|
3
|
+
export { AGENT_CAPABILITY_DECLARATION, DECLARED_SECRET_CEREMONY, DESIRED_AGENT_ROUTE, DESIRED_AGENTS, ENVIRONMENT_FORMS, FILE_BYTES, FILE_NAME, FILE_NAME_MAX, FUNCTION_RUN_META_KEY, KIT_ACTS, KIT_BINARY_CHANGE, KIT_DOOR_ACTS, KIT_QUESTION, KIT_REINSTALLS, KIT_TURN_END, KIT_TURN_IMAGE, KIT_UPLOAD_FINISH, kitActRoute, LOCAL_COPY_ROOM, MEDIA_TYPE, PART_SHA256, REPORTED_AGENT_KIND, SECRET_CEREMONY_STEPS_MAX, SECRET_RELAY_OUTCOME, SECRET_RELAY_RELEASES, SHA256, TRANSCRIPT, } from './acts.ts';
|
|
4
|
+
export type { AgentCapabilityDeclaration, DeclaredSecretCeremony, DesiredAgentRoute, KitActAnswer, KitActDeclaration, KitActName, KitActRequest, KitActRoute, KitBinaryChange, KitDoorAct, KitDoorAnswer, KitQuestion, KitTurnEnd, KitTurnImage, LocalCopyRoom, ReportedAgentKind, SecretCeremonyStep, SecretRelayOutcome, Transcript, TranscriptionReport, } from './acts.ts';
|
|
5
5
|
export { ENVIRONMENT_REACHES, ENVIRONMENT_ROOM_LIMIT, ENVIRONMENT_ROOM_REFS, ENVIRONMENT_ROOMS, KIT_ENROLLMENT_ACTS, KIT_LOGIN_ISSUED, KIT_LOGIN_PATHS, KIT_LOGIN_POLL, KIT_LOGIN_START, KIT_LOGIN_STARTED, } from './enrollment.ts';
|
|
6
6
|
export type { EnvironmentReach, EnvironmentRooms, KitEnrollmentAct } from './enrollment.ts';
|
|
7
7
|
export { BUILDING_KIT, KIT_COMMANDS, KIT_DECLARATION, KIT_WIRE, KIT_WIRE_HEADER, kitWire, kitWireRefusal, } from './wire.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { HOUSE_ONE_WAY_CALLS, KIT_CALL, KIT_CALL_RESULT, KIT_CALLS, KIT_CAUSE, KIT_CONNECTION_PATH, KIT_CONNECTION_PROTOCOL_PREFIX, KIT_ONE_WAY_CALLS, KIT_SETTINGS, SESSION_CHOICE_BYTES_MAX, STARTING_STEPS, } from './connection.js';
|
|
2
|
-
export { AGENT_CAPABILITY_DECLARATION, DECLARED_SECRET_CEREMONY, DESIRED_AGENT_ROUTE, DESIRED_AGENTS, ENVIRONMENT_FORMS, FILE_BYTES, FILE_NAME, FILE_NAME_MAX, FUNCTION_RUN_META_KEY, KIT_ACTS, KIT_BINARY_CHANGE, KIT_DOOR_ACTS, KIT_QUESTION, KIT_REINSTALLS, KIT_TURN_END, KIT_TURN_IMAGE, KIT_UPLOAD_FINISH, LOCAL_COPY_ROOM, MEDIA_TYPE, PART_SHA256, REPORTED_AGENT_KIND, SECRET_CEREMONY_STEPS_MAX, SECRET_RELAY_OUTCOME, SECRET_RELAY_RELEASES, SHA256, TRANSCRIPT, } from './acts.js';
|
|
2
|
+
export { AGENT_CAPABILITY_DECLARATION, DECLARED_SECRET_CEREMONY, DESIRED_AGENT_ROUTE, DESIRED_AGENTS, ENVIRONMENT_FORMS, FILE_BYTES, FILE_NAME, FILE_NAME_MAX, FUNCTION_RUN_META_KEY, KIT_ACTS, KIT_BINARY_CHANGE, KIT_DOOR_ACTS, KIT_QUESTION, KIT_REINSTALLS, KIT_TURN_END, KIT_TURN_IMAGE, KIT_UPLOAD_FINISH, kitActRoute, LOCAL_COPY_ROOM, MEDIA_TYPE, PART_SHA256, REPORTED_AGENT_KIND, SECRET_CEREMONY_STEPS_MAX, SECRET_RELAY_OUTCOME, SECRET_RELAY_RELEASES, SHA256, TRANSCRIPT, } from './acts.js';
|
|
3
3
|
export { ENVIRONMENT_REACHES, ENVIRONMENT_ROOM_LIMIT, ENVIRONMENT_ROOM_REFS, ENVIRONMENT_ROOMS, KIT_ENROLLMENT_ACTS, KIT_LOGIN_ISSUED, KIT_LOGIN_PATHS, KIT_LOGIN_POLL, KIT_LOGIN_START, KIT_LOGIN_STARTED, } from './enrollment.js';
|
|
4
4
|
export { BUILDING_KIT, KIT_COMMANDS, KIT_DECLARATION, KIT_WIRE, KIT_WIRE_HEADER, kitWire, kitWireRefusal, } from './wire.js';
|
package/dist/wire.d.ts
CHANGED
|
@@ -38,14 +38,6 @@ export declare const KIT_DECLARATION: {
|
|
|
38
38
|
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
39
39
|
kind: z.ZodLiteral<"kill">;
|
|
40
40
|
}, z.core.$strict>;
|
|
41
|
-
done: z.ZodObject<{
|
|
42
|
-
type: z.ZodLiteral<"input">;
|
|
43
|
-
input_id: z.ZodUUID;
|
|
44
|
-
conversation_id: z.ZodUUID;
|
|
45
|
-
agent_id: z.ZodUUID;
|
|
46
|
-
provider_session_id: z.ZodNullable<z.ZodString>;
|
|
47
|
-
kind: z.ZodLiteral<"done">;
|
|
48
|
-
}, z.core.$strict>;
|
|
49
41
|
message: z.ZodObject<{
|
|
50
42
|
type: z.ZodLiteral<"input">;
|
|
51
43
|
input_id: z.ZodUUID;
|
|
@@ -414,7 +406,7 @@ export declare const KIT_DECLARATION: {
|
|
|
414
406
|
}, z.core.$strict>, {
|
|
415
407
|
door: string;
|
|
416
408
|
}>;
|
|
417
|
-
'
|
|
409
|
+
'agent_update.transcript_keep': import("./acts.ts").KitActDeclaration<"conversation" | "message", z.ZodObject<{
|
|
418
410
|
path: z.ZodString;
|
|
419
411
|
text: z.ZodString;
|
|
420
412
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -424,7 +416,7 @@ export declare const KIT_DECLARATION: {
|
|
|
424
416
|
}, z.core.$strict>, {
|
|
425
417
|
door: string;
|
|
426
418
|
}>;
|
|
427
|
-
'
|
|
419
|
+
'agent_update.conversation_ask': import("./acts.ts").KitActDeclaration<"conversation" | "turn", z.ZodObject<{
|
|
428
420
|
interaction_id: z.ZodUUID;
|
|
429
421
|
request: z.ZodJSONSchema;
|
|
430
422
|
secret: z.ZodBoolean;
|
|
@@ -433,7 +425,11 @@ export declare const KIT_DECLARATION: {
|
|
|
433
425
|
'kits/report-restart': import("./acts.ts").KitActDeclaration<never, z.ZodObject<{
|
|
434
426
|
planned: z.ZodOptional<z.ZodLiteral<true>>;
|
|
435
427
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
436
|
-
'
|
|
428
|
+
'agent_update.credentials_issue': import("./acts.ts").KitActDeclaration<never, z.ZodUnion<readonly [z.ZodObject<{
|
|
429
|
+
conversation: z.ZodString;
|
|
430
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
431
|
+
run: z.ZodString;
|
|
432
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
437
433
|
credential: z.ZodString;
|
|
438
434
|
}, z.core.$strict>>;
|
|
439
435
|
'kits/log-out': import("./acts.ts").KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
@@ -445,12 +441,14 @@ export declare const KIT_DECLARATION: {
|
|
|
445
441
|
rooms: z.ZodArray<z.ZodObject<{
|
|
446
442
|
room_ref: z.ZodString;
|
|
447
443
|
room_handle: z.ZodString;
|
|
444
|
+
level: z.ZodEnum<{
|
|
445
|
+
keep: "keep";
|
|
446
|
+
open: "open";
|
|
447
|
+
search: "search";
|
|
448
|
+
}>;
|
|
448
449
|
}, z.core.$strict>>;
|
|
449
450
|
}, z.core.$strict>;
|
|
450
451
|
}, z.core.$strict>>;
|
|
451
|
-
'function-runs/credentials/issue': import("./acts.ts").KitActDeclaration<"run", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
452
|
-
credential: z.ZodString;
|
|
453
|
-
}, z.core.$strict>>;
|
|
454
452
|
};
|
|
455
453
|
door: readonly ["rooms/discover", "room-chunks/list", "changes/enumerate", "files/revisions/list", "update"];
|
|
456
454
|
changes: {
|
package/dist/wire.js
CHANGED
|
@@ -49,7 +49,7 @@ export function kitWire(declaration) {
|
|
|
49
49
|
.digest('hex')
|
|
50
50
|
.slice(0, WIRE_HEX_LENGTH);
|
|
51
51
|
}
|
|
52
|
-
export const KIT_WIRE = '
|
|
52
|
+
export const KIT_WIRE = 'de608b750f08f100';
|
|
53
53
|
export function kitWireRefusal(named) {
|
|
54
54
|
if (typeof named !== 'string')
|
|
55
55
|
return 'kit_declaration_invalid';
|
package/package.json
CHANGED