@agentshouse/kit-wire 0.1.0-c2e87e570c808 → 0.1.0-caa55b2516c5d
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 +31 -0
- package/dist/acts.js +17 -2
- package/dist/connection.d.ts +29 -0
- package/dist/connection.js +10 -0
- package/dist/enrollment.d.ts +0 -1
- package/dist/enrollment.js +0 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/wire.d.ts +31 -10
- package/dist/wire.js +1 -4
- package/package.json +1 -1
package/dist/acts.d.ts
CHANGED
|
@@ -61,8 +61,11 @@ export declare const REPORTED_AGENT_KIND: z.ZodObject<{
|
|
|
61
61
|
signed_in: z.ZodBoolean;
|
|
62
62
|
models: z.ZodArray<z.ZodObject<{
|
|
63
63
|
model: z.ZodString;
|
|
64
|
+
name: z.ZodString;
|
|
64
65
|
efforts: z.ZodArray<z.ZodString>;
|
|
65
66
|
}, z.core.$strict>>;
|
|
67
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
68
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
66
69
|
modes: z.ZodArray<z.ZodObject<{
|
|
67
70
|
mode: z.ZodString;
|
|
68
71
|
name: z.ZodString;
|
|
@@ -71,6 +74,7 @@ export declare const REPORTED_AGENT_KIND: z.ZodObject<{
|
|
|
71
74
|
}, z.core.$strict>;
|
|
72
75
|
export type ReportedAgentKind = z.infer<typeof REPORTED_AGENT_KIND>;
|
|
73
76
|
export declare const ENVIRONMENT_FORMS: readonly ['laptop', 'desktop', 'server'];
|
|
77
|
+
export declare const KIT_REINSTALLS: readonly ['linux', 'windows'];
|
|
74
78
|
declare const TRANSCRIPTION_REPORT: z.ZodObject<{
|
|
75
79
|
installed: z.ZodBoolean;
|
|
76
80
|
failure: z.ZodNullable<z.ZodString>;
|
|
@@ -88,6 +92,14 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
|
|
|
88
92
|
}>>;
|
|
89
93
|
ssh_host_key: z.ZodOptional<z.ZodString>;
|
|
90
94
|
agent_base: z.ZodOptional<z.ZodString>;
|
|
95
|
+
reinstall: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
linux: "linux";
|
|
97
|
+
windows: "windows";
|
|
98
|
+
}>>;
|
|
99
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
skills: z.ZodBoolean;
|
|
101
|
+
workspace: z.ZodString;
|
|
102
|
+
}, z.core.$strict>>;
|
|
91
103
|
agents: z.ZodArray<z.ZodObject<{
|
|
92
104
|
kind: z.ZodString;
|
|
93
105
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -98,8 +110,11 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
|
|
|
98
110
|
signed_in: z.ZodBoolean;
|
|
99
111
|
models: z.ZodArray<z.ZodObject<{
|
|
100
112
|
model: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
101
114
|
efforts: z.ZodArray<z.ZodString>;
|
|
102
115
|
}, z.core.$strict>>;
|
|
116
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
117
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
103
118
|
modes: z.ZodArray<z.ZodObject<{
|
|
104
119
|
mode: z.ZodString;
|
|
105
120
|
name: z.ZodString;
|
|
@@ -214,6 +229,14 @@ export declare const KIT_ACTS: {
|
|
|
214
229
|
}>>;
|
|
215
230
|
ssh_host_key: z.ZodOptional<z.ZodString>;
|
|
216
231
|
agent_base: z.ZodOptional<z.ZodString>;
|
|
232
|
+
reinstall: z.ZodOptional<z.ZodEnum<{
|
|
233
|
+
linux: "linux";
|
|
234
|
+
windows: "windows";
|
|
235
|
+
}>>;
|
|
236
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
237
|
+
skills: z.ZodBoolean;
|
|
238
|
+
workspace: z.ZodString;
|
|
239
|
+
}, z.core.$strict>>;
|
|
217
240
|
agents: z.ZodArray<z.ZodObject<{
|
|
218
241
|
kind: z.ZodString;
|
|
219
242
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -224,8 +247,11 @@ export declare const KIT_ACTS: {
|
|
|
224
247
|
signed_in: z.ZodBoolean;
|
|
225
248
|
models: z.ZodArray<z.ZodObject<{
|
|
226
249
|
model: z.ZodString;
|
|
250
|
+
name: z.ZodString;
|
|
227
251
|
efforts: z.ZodArray<z.ZodString>;
|
|
228
252
|
}, z.core.$strict>>;
|
|
253
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
254
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
229
255
|
modes: z.ZodArray<z.ZodObject<{
|
|
230
256
|
mode: z.ZodString;
|
|
231
257
|
name: z.ZodString;
|
|
@@ -268,6 +294,11 @@ export declare const KIT_ACTS: {
|
|
|
268
294
|
timed_out: z.ZodLiteral<true>;
|
|
269
295
|
}, z.core.$strict>, z.ZodObject<{
|
|
270
296
|
started: z.ZodLiteral<true>;
|
|
297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
298
|
+
settings: z.ZodObject<{
|
|
299
|
+
skills: z.ZodBoolean;
|
|
300
|
+
workspace: z.ZodString;
|
|
301
|
+
}, z.core.$strict>;
|
|
271
302
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
|
|
272
303
|
'turns/start': KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
273
304
|
run: z.ZodOptional<z.ZodLiteral<true>>;
|
package/dist/acts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { KIT_CALL_RESULT, KIT_CAUSE } from './connection.js';
|
|
2
|
+
import { KIT_CALL_RESULT, KIT_CAUSE, KIT_SETTINGS } from './connection.js';
|
|
3
3
|
export const SHA256 = z
|
|
4
4
|
.string()
|
|
5
5
|
.regex(/^[0-9a-f]{64}$/u, "must be the file's SHA-256 as 64 lowercase hex digits");
|
|
@@ -64,7 +64,11 @@ const OFFERED_MODES_MAX = 32;
|
|
|
64
64
|
const MODE_NAME_MAX = 128;
|
|
65
65
|
const CHOICE = z.string().min(1);
|
|
66
66
|
const OFFERED_MODELS = z
|
|
67
|
-
.array(z.strictObject({
|
|
67
|
+
.array(z.strictObject({
|
|
68
|
+
model: CHOICE,
|
|
69
|
+
name: z.string().min(1),
|
|
70
|
+
efforts: z.array(CHOICE).max(MODEL_EFFORTS_MAX),
|
|
71
|
+
}))
|
|
68
72
|
.max(OFFERED_MODELS_MAX);
|
|
69
73
|
const OFFERED_MODES = z
|
|
70
74
|
.array(z.strictObject({ mode: CHOICE, name: z.string().min(1).max(MODE_NAME_MAX) }))
|
|
@@ -85,10 +89,17 @@ export const REPORTED_AGENT_KIND = z.strictObject({
|
|
|
85
89
|
}),
|
|
86
90
|
signed_in: z.boolean(),
|
|
87
91
|
models: OFFERED_MODELS,
|
|
92
|
+
default_model: CHOICE.optional().meta({
|
|
93
|
+
description: 'Present only where the Kit can name the model a fresh session of the CLI starts with: that model, as models lists it.',
|
|
94
|
+
}),
|
|
95
|
+
default_effort: CHOICE.optional().meta({
|
|
96
|
+
description: 'Present only where the Kit can name the effort a fresh session of the CLI starts with: that effort.',
|
|
97
|
+
}),
|
|
88
98
|
modes: OFFERED_MODES,
|
|
89
99
|
full_access: CHOICE.nullable(),
|
|
90
100
|
});
|
|
91
101
|
export const ENVIRONMENT_FORMS = ['laptop', 'desktop', 'server'];
|
|
102
|
+
export const KIT_REINSTALLS = ['linux', 'windows'];
|
|
92
103
|
const TRANSCRIPTION_REPORT = z.strictObject({
|
|
93
104
|
installed: z.boolean(),
|
|
94
105
|
failure: KIT_CAUSE.nullable(),
|
|
@@ -106,6 +117,10 @@ export const AGENT_CAPABILITY_DECLARATION = z.strictObject({
|
|
|
106
117
|
.regex(/^SHA256:[A-Za-z0-9+/]{43}$/)
|
|
107
118
|
.optional(),
|
|
108
119
|
agent_base: z.string().startsWith('/').optional(),
|
|
120
|
+
reinstall: z.enum(KIT_REINSTALLS).optional().meta({
|
|
121
|
+
description: 'Present only while this Kit runs where an earlier install placed it and only the install command run again on its computer moves it: that command.',
|
|
122
|
+
}),
|
|
123
|
+
settings: KIT_SETTINGS.optional(),
|
|
109
124
|
agents: z
|
|
110
125
|
.array(REPORTED_AGENT_KIND)
|
|
111
126
|
.refine((agents) => new Set(agents.map((agent) => agent.kind)).size === agents.length),
|
package/dist/connection.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const KIT_CONNECTION_PATH = "/kit/stream";
|
|
3
3
|
export declare const KIT_CONNECTION_PROTOCOL_PREFIX = "house.kit.stream.";
|
|
4
4
|
export declare const KIT_CAUSE: z.ZodString;
|
|
5
|
+
export declare const KIT_SETTINGS: z.ZodObject<{
|
|
6
|
+
skills: z.ZodBoolean;
|
|
7
|
+
workspace: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export type KitSettings = z.infer<typeof KIT_SETTINGS>;
|
|
5
10
|
export declare const KIT_CALL_RESULT: z.ZodUnion<readonly [z.ZodObject<{
|
|
6
11
|
provider_session_id: z.ZodString;
|
|
7
12
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -19,6 +24,11 @@ export declare const KIT_CALL_RESULT: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
19
24
|
timed_out: z.ZodLiteral<true>;
|
|
20
25
|
}, z.core.$strict>, z.ZodObject<{
|
|
21
26
|
started: z.ZodLiteral<true>;
|
|
27
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
28
|
+
settings: z.ZodObject<{
|
|
29
|
+
skills: z.ZodBoolean;
|
|
30
|
+
workspace: z.ZodString;
|
|
31
|
+
}, z.core.$strict>;
|
|
22
32
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
|
|
23
33
|
export type KitCallResult = z.infer<typeof KIT_CALL_RESULT>;
|
|
24
34
|
export declare const KIT_CALLS: {
|
|
@@ -119,6 +129,16 @@ export declare const KIT_CALLS: {
|
|
|
119
129
|
kind: z.ZodLiteral<"update">;
|
|
120
130
|
release: z.ZodString;
|
|
121
131
|
}, z.core.$strict>;
|
|
132
|
+
settings: z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"input">;
|
|
134
|
+
input_id: z.ZodUUID;
|
|
135
|
+
conversation_id: z.ZodNull;
|
|
136
|
+
agent_id: z.ZodNull;
|
|
137
|
+
provider_session_id: z.ZodNull;
|
|
138
|
+
kind: z.ZodLiteral<"settings">;
|
|
139
|
+
skills: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$strict>;
|
|
122
142
|
run_wizard: z.ZodObject<{
|
|
123
143
|
type: z.ZodLiteral<"input">;
|
|
124
144
|
input_id: z.ZodUUID;
|
|
@@ -229,6 +249,15 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
229
249
|
provider_session_id: z.ZodNull;
|
|
230
250
|
kind: z.ZodLiteral<"update">;
|
|
231
251
|
release: z.ZodString;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"input">;
|
|
254
|
+
input_id: z.ZodUUID;
|
|
255
|
+
conversation_id: z.ZodNull;
|
|
256
|
+
agent_id: z.ZodNull;
|
|
257
|
+
provider_session_id: z.ZodNull;
|
|
258
|
+
kind: z.ZodLiteral<"settings">;
|
|
259
|
+
skills: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
232
261
|
}, z.core.$strict>, z.ZodObject<{
|
|
233
262
|
type: z.ZodLiteral<"input">;
|
|
234
263
|
input_id: z.ZodUUID;
|
package/dist/connection.js
CHANGED
|
@@ -7,6 +7,10 @@ const TERMINAL_SIDE_MAX = 65_535;
|
|
|
7
7
|
export const KIT_CAUSE = z.string().min(1).max(4096);
|
|
8
8
|
const EXIT_CODE = z.int().min(0).max(EXIT_STATUS_MAX);
|
|
9
9
|
const KEPT_OUTPUT = { output: z.string(), cut: z.boolean() };
|
|
10
|
+
export const KIT_SETTINGS = z.strictObject({
|
|
11
|
+
skills: z.boolean(),
|
|
12
|
+
workspace: z.string().startsWith('/'),
|
|
13
|
+
});
|
|
10
14
|
export const KIT_CALL_RESULT = z.union([
|
|
11
15
|
z.strictObject({ provider_session_id: z.string().min(1).max(PROVIDER_SESSION_ID_MAX) }),
|
|
12
16
|
z.strictObject({ refused: KIT_CAUSE, resume_refused: z.literal(true).optional() }),
|
|
@@ -14,6 +18,7 @@ export const KIT_CALL_RESULT = z.union([
|
|
|
14
18
|
z.strictObject({ exit_code: EXIT_CODE, ...KEPT_OUTPUT }),
|
|
15
19
|
z.strictObject({ timed_out: z.literal(true), ...KEPT_OUTPUT }),
|
|
16
20
|
z.strictObject({ started: z.literal(true) }),
|
|
21
|
+
z.strictObject({ settings: KIT_SETTINGS }),
|
|
17
22
|
z.strictObject({}),
|
|
18
23
|
]);
|
|
19
24
|
const CONVERSATION_CALL = {
|
|
@@ -62,6 +67,10 @@ export const KIT_CALLS = {
|
|
|
62
67
|
}),
|
|
63
68
|
sign_in: environmentCall('sign_in', { cli: z.string(), ends_in: z.int().nonnegative() }),
|
|
64
69
|
update: environmentCall('update', { release: z.string() }),
|
|
70
|
+
settings: environmentCall('settings', {
|
|
71
|
+
skills: z.boolean().optional(),
|
|
72
|
+
workspace: z.string().optional(),
|
|
73
|
+
}),
|
|
65
74
|
run_wizard: environmentCall('run_wizard', { script: z.string() }),
|
|
66
75
|
run_function: environmentCall('run_function', {
|
|
67
76
|
script: z.string(),
|
|
@@ -82,6 +91,7 @@ export const KIT_CALL = z.discriminatedUnion('kind', [
|
|
|
82
91
|
KIT_CALLS.option,
|
|
83
92
|
KIT_CALLS.sign_in,
|
|
84
93
|
KIT_CALLS.update,
|
|
94
|
+
KIT_CALLS.settings,
|
|
85
95
|
KIT_CALLS.run_wizard,
|
|
86
96
|
KIT_CALLS.run_function,
|
|
87
97
|
]);
|
package/dist/enrollment.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export declare const KIT_LOGIN_START: z.ZodObject<{
|
|
|
20
20
|
new_environment: "new_environment";
|
|
21
21
|
}>;
|
|
22
22
|
environment_id: z.ZodOptional<z.ZodUUID>;
|
|
23
|
-
replaces: z.ZodOptional<z.ZodUUID>;
|
|
24
23
|
headless: z.ZodOptional<z.ZodLiteral<true>>;
|
|
25
24
|
rooms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
25
|
reach: z.ZodLiteral<"all">;
|
package/dist/enrollment.js
CHANGED
|
@@ -17,7 +17,6 @@ export const KIT_ENROLLMENT_ACTS = ['new_environment', 'existing_environment'];
|
|
|
17
17
|
export const KIT_LOGIN_START = z.strictObject({
|
|
18
18
|
act: z.enum(KIT_ENROLLMENT_ACTS),
|
|
19
19
|
environment_id: z.uuid().optional(),
|
|
20
|
-
replaces: z.uuid().optional(),
|
|
21
20
|
headless: z.literal(true).optional(),
|
|
22
21
|
rooms: ENVIRONMENT_ROOMS.optional(),
|
|
23
22
|
code_challenge: z.string().regex(/^[A-Za-z0-9_-]{43}$/),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, STARTING_STEPS, } from './connection.ts';
|
|
2
|
-
export type { HouseOneWayCall, HouseOneWayCallOf, KitCall, KitCallOf, KitCallResult, KitMethod, KitOneWayCall, KitOneWayCallOf, } 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, KIT_ACTS, KIT_DOOR_ACTS, KIT_QUESTION, 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';
|
|
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, STARTING_STEPS, } from './connection.ts';
|
|
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, KIT_ACTS, 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
4
|
export type { AgentCapabilityDeclaration, DeclaredSecretCeremony, DesiredAgentRoute, KitActAnswer, KitActDeclaration, KitActName, KitActRequest, 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';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, 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, KIT_ACTS, KIT_DOOR_ACTS, KIT_QUESTION, 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';
|
|
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, 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, KIT_ACTS, 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';
|
|
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
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const KIT_WIRE_HEADER = "x-house-kit-wire";
|
|
3
3
|
export declare const KIT_COMMANDS: z.ZodObject<{
|
|
4
|
-
macos: z.ZodString;
|
|
5
4
|
linux: z.ZodString;
|
|
6
|
-
container: z.ZodString;
|
|
7
|
-
server: z.ZodString;
|
|
8
5
|
windows: z.ZodString;
|
|
9
6
|
}, z.core.$strict>;
|
|
10
7
|
export type KitCommands = z.infer<typeof KIT_COMMANDS>;
|
|
11
8
|
export declare const BUILDING_KIT: z.ZodObject<{
|
|
12
9
|
release: z.ZodString;
|
|
13
10
|
commands: z.ZodObject<{
|
|
14
|
-
macos: z.ZodString;
|
|
15
11
|
linux: z.ZodString;
|
|
16
|
-
container: z.ZodString;
|
|
17
|
-
server: z.ZodString;
|
|
18
12
|
windows: z.ZodString;
|
|
19
13
|
}, z.core.$strict>;
|
|
20
14
|
}, z.core.$strict>;
|
|
@@ -122,6 +116,16 @@ export declare const KIT_DECLARATION: {
|
|
|
122
116
|
kind: z.ZodLiteral<"update">;
|
|
123
117
|
release: z.ZodString;
|
|
124
118
|
}, z.core.$strict>;
|
|
119
|
+
settings: z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"input">;
|
|
121
|
+
input_id: z.ZodUUID;
|
|
122
|
+
conversation_id: z.ZodNull;
|
|
123
|
+
agent_id: z.ZodNull;
|
|
124
|
+
provider_session_id: z.ZodNull;
|
|
125
|
+
kind: z.ZodLiteral<"settings">;
|
|
126
|
+
skills: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strict>;
|
|
125
129
|
run_wizard: z.ZodObject<{
|
|
126
130
|
type: z.ZodLiteral<"input">;
|
|
127
131
|
input_id: z.ZodUUID;
|
|
@@ -162,6 +166,11 @@ export declare const KIT_DECLARATION: {
|
|
|
162
166
|
timed_out: z.ZodLiteral<true>;
|
|
163
167
|
}, z.core.$strict>, z.ZodObject<{
|
|
164
168
|
started: z.ZodLiteral<true>;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
settings: z.ZodObject<{
|
|
171
|
+
skills: z.ZodBoolean;
|
|
172
|
+
workspace: z.ZodString;
|
|
173
|
+
}, z.core.$strict>;
|
|
165
174
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
|
|
166
175
|
house: {
|
|
167
176
|
beat: z.ZodObject<{
|
|
@@ -308,6 +317,14 @@ export declare const KIT_DECLARATION: {
|
|
|
308
317
|
}>>;
|
|
309
318
|
ssh_host_key: z.ZodOptional<z.ZodString>;
|
|
310
319
|
agent_base: z.ZodOptional<z.ZodString>;
|
|
320
|
+
reinstall: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
linux: "linux";
|
|
322
|
+
windows: "windows";
|
|
323
|
+
}>>;
|
|
324
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
325
|
+
skills: z.ZodBoolean;
|
|
326
|
+
workspace: z.ZodString;
|
|
327
|
+
}, z.core.$strict>>;
|
|
311
328
|
agents: z.ZodArray<z.ZodObject<{
|
|
312
329
|
kind: z.ZodString;
|
|
313
330
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -318,8 +335,11 @@ export declare const KIT_DECLARATION: {
|
|
|
318
335
|
signed_in: z.ZodBoolean;
|
|
319
336
|
models: z.ZodArray<z.ZodObject<{
|
|
320
337
|
model: z.ZodString;
|
|
338
|
+
name: z.ZodString;
|
|
321
339
|
efforts: z.ZodArray<z.ZodString>;
|
|
322
340
|
}, z.core.$strict>>;
|
|
341
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
342
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
323
343
|
modes: z.ZodArray<z.ZodObject<{
|
|
324
344
|
mode: z.ZodString;
|
|
325
345
|
name: z.ZodString;
|
|
@@ -362,6 +382,11 @@ export declare const KIT_DECLARATION: {
|
|
|
362
382
|
timed_out: z.ZodLiteral<true>;
|
|
363
383
|
}, z.core.$strict>, z.ZodObject<{
|
|
364
384
|
started: z.ZodLiteral<true>;
|
|
385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
+
settings: z.ZodObject<{
|
|
387
|
+
skills: z.ZodBoolean;
|
|
388
|
+
workspace: z.ZodString;
|
|
389
|
+
}, z.core.$strict>;
|
|
365
390
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
|
|
366
391
|
'turns/start': import("./acts.ts").KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
367
392
|
run: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -425,7 +450,6 @@ export declare const KIT_DECLARATION: {
|
|
|
425
450
|
new_environment: "new_environment";
|
|
426
451
|
}>;
|
|
427
452
|
environment_id: z.ZodOptional<z.ZodUUID>;
|
|
428
|
-
replaces: z.ZodOptional<z.ZodUUID>;
|
|
429
453
|
headless: z.ZodOptional<z.ZodLiteral<true>>;
|
|
430
454
|
rooms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
431
455
|
reach: z.ZodLiteral<"all">;
|
|
@@ -460,10 +484,7 @@ export declare const KIT_DECLARATION: {
|
|
|
460
484
|
refusal: z.ZodObject<{
|
|
461
485
|
release: z.ZodString;
|
|
462
486
|
commands: z.ZodObject<{
|
|
463
|
-
macos: z.ZodString;
|
|
464
487
|
linux: z.ZodString;
|
|
465
|
-
container: z.ZodString;
|
|
466
|
-
server: z.ZodString;
|
|
467
488
|
windows: z.ZodString;
|
|
468
489
|
}, z.core.$strict>;
|
|
469
490
|
}, z.core.$strict>;
|
package/dist/wire.js
CHANGED
|
@@ -6,10 +6,7 @@ import { KIT_LOGIN_ISSUED, KIT_LOGIN_PATHS, KIT_LOGIN_POLL, KIT_LOGIN_START, KIT
|
|
|
6
6
|
const WIRE_HEX_LENGTH = 16;
|
|
7
7
|
export const KIT_WIRE_HEADER = 'x-house-kit-wire';
|
|
8
8
|
export const KIT_COMMANDS = z.strictObject({
|
|
9
|
-
macos: z.string(),
|
|
10
9
|
linux: z.string(),
|
|
11
|
-
container: z.string(),
|
|
12
|
-
server: z.string(),
|
|
13
10
|
windows: z.string(),
|
|
14
11
|
});
|
|
15
12
|
export const BUILDING_KIT = z.strictObject({ release: z.string(), commands: KIT_COMMANDS });
|
|
@@ -50,7 +47,7 @@ export function kitWire(declaration) {
|
|
|
50
47
|
.digest('hex')
|
|
51
48
|
.slice(0, WIRE_HEX_LENGTH);
|
|
52
49
|
}
|
|
53
|
-
export const KIT_WIRE = '
|
|
50
|
+
export const KIT_WIRE = 'e1ec8094a33111a4';
|
|
54
51
|
export function kitWireRefusal(named) {
|
|
55
52
|
if (typeof named !== 'string')
|
|
56
53
|
return 'kit_declaration_invalid';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/kit-wire",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-caa55b2516c5d",
|
|
4
4
|
"description": "The Kit wire: every shape House and the Kit exchange, the Kit connection's frames and every /kit/ request and answer, and the wire computed from them",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|