@agentshouse/kit-wire 0.1.0-c2e87e570c808 → 0.1.0-ca55846695d8c

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 CHANGED
@@ -19,6 +19,7 @@ declare const CEREMONY_STEP: z.ZodDiscriminatedUnion<[z.ZodObject<{
19
19
  label: z.ZodString;
20
20
  name: z.ZodString;
21
21
  description: z.ZodOptional<z.ZodString>;
22
+ optional: z.ZodOptional<z.ZodLiteral<true>>;
22
23
  }, z.core.$strict>], "kind">;
23
24
  export type SecretCeremonyStep = z.infer<typeof CEREMONY_STEP>;
24
25
  export declare const DECLARED_SECRET_CEREMONY: z.ZodObject<{
@@ -35,6 +36,7 @@ export declare const DECLARED_SECRET_CEREMONY: z.ZodObject<{
35
36
  label: z.ZodString;
36
37
  name: z.ZodString;
37
38
  description: z.ZodOptional<z.ZodString>;
39
+ optional: z.ZodOptional<z.ZodLiteral<true>>;
38
40
  }, z.core.$strict>], "kind">>;
39
41
  }, z.core.$strict>;
40
42
  export type DeclaredSecretCeremony = z.infer<typeof DECLARED_SECRET_CEREMONY>;
@@ -59,10 +61,15 @@ export declare const REPORTED_AGENT_KIND: z.ZodObject<{
59
61
  failure: z.ZodNullable<z.ZodString>;
60
62
  installing: z.ZodOptional<z.ZodLiteral<true>>;
61
63
  signed_in: z.ZodBoolean;
64
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
65
+ provider: z.ZodOptional<z.ZodString>;
62
66
  models: z.ZodArray<z.ZodObject<{
63
67
  model: z.ZodString;
68
+ name: z.ZodString;
64
69
  efforts: z.ZodArray<z.ZodString>;
65
70
  }, z.core.$strict>>;
71
+ default_model: z.ZodOptional<z.ZodString>;
72
+ default_effort: z.ZodOptional<z.ZodString>;
66
73
  modes: z.ZodArray<z.ZodObject<{
67
74
  mode: z.ZodString;
68
75
  name: z.ZodString;
@@ -71,6 +78,7 @@ export declare const REPORTED_AGENT_KIND: z.ZodObject<{
71
78
  }, z.core.$strict>;
72
79
  export type ReportedAgentKind = z.infer<typeof REPORTED_AGENT_KIND>;
73
80
  export declare const ENVIRONMENT_FORMS: readonly ['laptop', 'desktop', 'server'];
81
+ export declare const KIT_REINSTALLS: readonly ['linux', 'windows'];
74
82
  declare const TRANSCRIPTION_REPORT: z.ZodObject<{
75
83
  installed: z.ZodBoolean;
76
84
  failure: z.ZodNullable<z.ZodString>;
@@ -88,6 +96,14 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
88
96
  }>>;
89
97
  ssh_host_key: z.ZodOptional<z.ZodString>;
90
98
  agent_base: z.ZodOptional<z.ZodString>;
99
+ reinstall: z.ZodOptional<z.ZodEnum<{
100
+ linux: "linux";
101
+ windows: "windows";
102
+ }>>;
103
+ settings: z.ZodOptional<z.ZodObject<{
104
+ skills: z.ZodBoolean;
105
+ workspace: z.ZodString;
106
+ }, z.core.$strict>>;
91
107
  agents: z.ZodArray<z.ZodObject<{
92
108
  kind: z.ZodString;
93
109
  release: z.ZodNullable<z.ZodString>;
@@ -96,10 +112,15 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
96
112
  failure: z.ZodNullable<z.ZodString>;
97
113
  installing: z.ZodOptional<z.ZodLiteral<true>>;
98
114
  signed_in: z.ZodBoolean;
115
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
116
+ provider: z.ZodOptional<z.ZodString>;
99
117
  models: z.ZodArray<z.ZodObject<{
100
118
  model: z.ZodString;
119
+ name: z.ZodString;
101
120
  efforts: z.ZodArray<z.ZodString>;
102
121
  }, z.core.$strict>>;
122
+ default_model: z.ZodOptional<z.ZodString>;
123
+ default_effort: z.ZodOptional<z.ZodString>;
103
124
  modes: z.ZodArray<z.ZodObject<{
104
125
  mode: z.ZodString;
105
126
  name: z.ZodString;
@@ -191,6 +212,7 @@ export declare const KIT_ACTS: {
191
212
  label: z.ZodString;
192
213
  name: z.ZodString;
193
214
  description: z.ZodOptional<z.ZodString>;
215
+ optional: z.ZodOptional<z.ZodLiteral<true>>;
194
216
  }, z.core.$strict>], "kind">>;
195
217
  }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
196
218
  outcome: z.ZodLiteral<"collected">;
@@ -214,6 +236,14 @@ export declare const KIT_ACTS: {
214
236
  }>>;
215
237
  ssh_host_key: z.ZodOptional<z.ZodString>;
216
238
  agent_base: z.ZodOptional<z.ZodString>;
239
+ reinstall: z.ZodOptional<z.ZodEnum<{
240
+ linux: "linux";
241
+ windows: "windows";
242
+ }>>;
243
+ settings: z.ZodOptional<z.ZodObject<{
244
+ skills: z.ZodBoolean;
245
+ workspace: z.ZodString;
246
+ }, z.core.$strict>>;
217
247
  agents: z.ZodArray<z.ZodObject<{
218
248
  kind: z.ZodString;
219
249
  release: z.ZodNullable<z.ZodString>;
@@ -222,10 +252,15 @@ export declare const KIT_ACTS: {
222
252
  failure: z.ZodNullable<z.ZodString>;
223
253
  installing: z.ZodOptional<z.ZodLiteral<true>>;
224
254
  signed_in: z.ZodBoolean;
255
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
256
+ provider: z.ZodOptional<z.ZodString>;
225
257
  models: z.ZodArray<z.ZodObject<{
226
258
  model: z.ZodString;
259
+ name: z.ZodString;
227
260
  efforts: z.ZodArray<z.ZodString>;
228
261
  }, z.core.$strict>>;
262
+ default_model: z.ZodOptional<z.ZodString>;
263
+ default_effort: z.ZodOptional<z.ZodString>;
229
264
  modes: z.ZodArray<z.ZodObject<{
230
265
  mode: z.ZodString;
231
266
  name: z.ZodString;
@@ -268,6 +303,11 @@ export declare const KIT_ACTS: {
268
303
  timed_out: z.ZodLiteral<true>;
269
304
  }, z.core.$strict>, z.ZodObject<{
270
305
  started: z.ZodLiteral<true>;
306
+ }, z.core.$strict>, z.ZodObject<{
307
+ settings: z.ZodObject<{
308
+ skills: z.ZodBoolean;
309
+ workspace: z.ZodString;
310
+ }, z.core.$strict>;
271
311
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
272
312
  'turns/start': KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
273
313
  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");
@@ -38,6 +38,9 @@ const CEREMONY_STEP = z.discriminatedUnion('kind', [
38
38
  label: LABEL,
39
39
  name: NAME.max(SECRET_STEP_NAME_MAX),
40
40
  description: z.string().max(SECRET_STEP_TEXT_MAX).optional(),
41
+ optional: z.literal(true).optional().meta({
42
+ description: 'Present only for a step whose value may be empty.',
43
+ }),
41
44
  }),
42
45
  ]);
43
46
  export const DECLARED_SECRET_CEREMONY = z
@@ -56,6 +59,7 @@ export const SECRET_RELAY_OUTCOME = z.discriminatedUnion('outcome', [
56
59
  const AGENT_KIND_MAX = 64;
57
60
  const AGENT_RELEASE_MAX = 64;
58
61
  const UPDATE_COMMAND_MAX = 256;
62
+ const PROVIDER_HOST_MAX = 255;
59
63
  const OPERATING_SYSTEM_MAX = 256;
60
64
  const KIT_RELEASE_MAX = 64;
61
65
  const OFFERED_MODELS_MAX = 256;
@@ -64,7 +68,11 @@ const OFFERED_MODES_MAX = 32;
64
68
  const MODE_NAME_MAX = 128;
65
69
  const CHOICE = z.string().min(1);
66
70
  const OFFERED_MODELS = z
67
- .array(z.strictObject({ model: CHOICE, efforts: z.array(CHOICE).max(MODEL_EFFORTS_MAX) }))
71
+ .array(z.strictObject({
72
+ model: CHOICE,
73
+ name: z.string().min(1),
74
+ efforts: z.array(CHOICE).max(MODEL_EFFORTS_MAX),
75
+ }))
68
76
  .max(OFFERED_MODELS_MAX);
69
77
  const OFFERED_MODES = z
70
78
  .array(z.strictObject({ mode: CHOICE, name: z.string().min(1).max(MODE_NAME_MAX) }))
@@ -84,11 +92,24 @@ export const REPORTED_AGENT_KIND = z.strictObject({
84
92
  description: 'Present only while the Kit installs the CLI, whose release and failure are then null.',
85
93
  }),
86
94
  signed_in: z.boolean(),
95
+ api_key: z.literal(true).optional().meta({
96
+ description: 'Present only while the CLI runs on an API key it found in its own settings.',
97
+ }),
98
+ provider: z.string().min(1).max(PROVIDER_HOST_MAX).optional().meta({
99
+ description: "Present only while the CLI's endpoint is not its maker's: that endpoint's host.",
100
+ }),
87
101
  models: OFFERED_MODELS,
102
+ default_model: CHOICE.optional().meta({
103
+ description: 'Present only where the Kit can name the model a fresh session of the CLI starts with: that model, as models lists it.',
104
+ }),
105
+ default_effort: CHOICE.optional().meta({
106
+ description: 'Present only where the Kit can name the effort a fresh session of the CLI starts with: that effort.',
107
+ }),
88
108
  modes: OFFERED_MODES,
89
109
  full_access: CHOICE.nullable(),
90
110
  });
91
111
  export const ENVIRONMENT_FORMS = ['laptop', 'desktop', 'server'];
112
+ export const KIT_REINSTALLS = ['linux', 'windows'];
92
113
  const TRANSCRIPTION_REPORT = z.strictObject({
93
114
  installed: z.boolean(),
94
115
  failure: KIT_CAUSE.nullable(),
@@ -106,6 +127,10 @@ export const AGENT_CAPABILITY_DECLARATION = z.strictObject({
106
127
  .regex(/^SHA256:[A-Za-z0-9+/]{43}$/)
107
128
  .optional(),
108
129
  agent_base: z.string().startsWith('/').optional(),
130
+ reinstall: z.enum(KIT_REINSTALLS).optional().meta({
131
+ 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.',
132
+ }),
133
+ settings: KIT_SETTINGS.optional(),
109
134
  agents: z
110
135
  .array(REPORTED_AGENT_KIND)
111
136
  .refine((agents) => new Set(agents.map((agent) => agent.kind)).size === agents.length),
@@ -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: {
@@ -109,6 +119,7 @@ export declare const KIT_CALLS: {
109
119
  kind: z.ZodLiteral<"sign_in">;
110
120
  cli: z.ZodString;
111
121
  ends_in: z.ZodInt;
122
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
112
123
  }, z.core.$strict>;
113
124
  update: z.ZodObject<{
114
125
  type: z.ZodLiteral<"input">;
@@ -119,6 +130,16 @@ export declare const KIT_CALLS: {
119
130
  kind: z.ZodLiteral<"update">;
120
131
  release: z.ZodString;
121
132
  }, z.core.$strict>;
133
+ settings: z.ZodObject<{
134
+ type: z.ZodLiteral<"input">;
135
+ input_id: z.ZodUUID;
136
+ conversation_id: z.ZodNull;
137
+ agent_id: z.ZodNull;
138
+ provider_session_id: z.ZodNull;
139
+ kind: z.ZodLiteral<"settings">;
140
+ skills: z.ZodOptional<z.ZodBoolean>;
141
+ workspace: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strict>;
122
143
  run_wizard: z.ZodObject<{
123
144
  type: z.ZodLiteral<"input">;
124
145
  input_id: z.ZodUUID;
@@ -221,6 +242,7 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
242
  kind: z.ZodLiteral<"sign_in">;
222
243
  cli: z.ZodString;
223
244
  ends_in: z.ZodInt;
245
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
224
246
  }, z.core.$strict>, z.ZodObject<{
225
247
  type: z.ZodLiteral<"input">;
226
248
  input_id: z.ZodUUID;
@@ -229,6 +251,15 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
229
251
  provider_session_id: z.ZodNull;
230
252
  kind: z.ZodLiteral<"update">;
231
253
  release: z.ZodString;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ type: z.ZodLiteral<"input">;
256
+ input_id: z.ZodUUID;
257
+ conversation_id: z.ZodNull;
258
+ agent_id: z.ZodNull;
259
+ provider_session_id: z.ZodNull;
260
+ kind: z.ZodLiteral<"settings">;
261
+ skills: z.ZodOptional<z.ZodBoolean>;
262
+ workspace: z.ZodOptional<z.ZodString>;
232
263
  }, z.core.$strict>, z.ZodObject<{
233
264
  type: z.ZodLiteral<"input">;
234
265
  input_id: z.ZodUUID;
@@ -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 = {
@@ -60,8 +65,18 @@ export const KIT_CALLS = {
60
65
  option: z.string(),
61
66
  value: z.union([z.string(), z.boolean()]),
62
67
  }),
63
- sign_in: environmentCall('sign_in', { cli: z.string(), ends_in: z.int().nonnegative() }),
68
+ sign_in: environmentCall('sign_in', {
69
+ cli: z.string(),
70
+ ends_in: z.int().nonnegative(),
71
+ api_key: z.literal(true).optional().meta({
72
+ description: "Present only for a sign-in by API key in place of the CLI's own login.",
73
+ }),
74
+ }),
64
75
  update: environmentCall('update', { release: z.string() }),
76
+ settings: environmentCall('settings', {
77
+ skills: z.boolean().optional(),
78
+ workspace: z.string().optional(),
79
+ }),
65
80
  run_wizard: environmentCall('run_wizard', { script: z.string() }),
66
81
  run_function: environmentCall('run_function', {
67
82
  script: z.string(),
@@ -82,6 +97,7 @@ export const KIT_CALL = z.discriminatedUnion('kind', [
82
97
  KIT_CALLS.option,
83
98
  KIT_CALLS.sign_in,
84
99
  KIT_CALLS.update,
100
+ KIT_CALLS.settings,
85
101
  KIT_CALLS.run_wizard,
86
102
  KIT_CALLS.run_function,
87
103
  ]);
@@ -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">;
@@ -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>;
@@ -112,6 +106,7 @@ export declare const KIT_DECLARATION: {
112
106
  kind: z.ZodLiteral<"sign_in">;
113
107
  cli: z.ZodString;
114
108
  ends_in: z.ZodInt;
109
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
115
110
  }, z.core.$strict>;
116
111
  update: z.ZodObject<{
117
112
  type: z.ZodLiteral<"input">;
@@ -122,6 +117,16 @@ export declare const KIT_DECLARATION: {
122
117
  kind: z.ZodLiteral<"update">;
123
118
  release: z.ZodString;
124
119
  }, z.core.$strict>;
120
+ settings: z.ZodObject<{
121
+ type: z.ZodLiteral<"input">;
122
+ input_id: z.ZodUUID;
123
+ conversation_id: z.ZodNull;
124
+ agent_id: z.ZodNull;
125
+ provider_session_id: z.ZodNull;
126
+ kind: z.ZodLiteral<"settings">;
127
+ skills: z.ZodOptional<z.ZodBoolean>;
128
+ workspace: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strict>;
125
130
  run_wizard: z.ZodObject<{
126
131
  type: z.ZodLiteral<"input">;
127
132
  input_id: z.ZodUUID;
@@ -162,6 +167,11 @@ export declare const KIT_DECLARATION: {
162
167
  timed_out: z.ZodLiteral<true>;
163
168
  }, z.core.$strict>, z.ZodObject<{
164
169
  started: z.ZodLiteral<true>;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ settings: z.ZodObject<{
172
+ skills: z.ZodBoolean;
173
+ workspace: z.ZodString;
174
+ }, z.core.$strict>;
165
175
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
166
176
  house: {
167
177
  beat: z.ZodObject<{
@@ -285,6 +295,7 @@ export declare const KIT_DECLARATION: {
285
295
  label: z.ZodString;
286
296
  name: z.ZodString;
287
297
  description: z.ZodOptional<z.ZodString>;
298
+ optional: z.ZodOptional<z.ZodLiteral<true>>;
288
299
  }, z.core.$strict>], "kind">>;
289
300
  }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
290
301
  outcome: z.ZodLiteral<"collected">;
@@ -308,6 +319,14 @@ export declare const KIT_DECLARATION: {
308
319
  }>>;
309
320
  ssh_host_key: z.ZodOptional<z.ZodString>;
310
321
  agent_base: z.ZodOptional<z.ZodString>;
322
+ reinstall: z.ZodOptional<z.ZodEnum<{
323
+ linux: "linux";
324
+ windows: "windows";
325
+ }>>;
326
+ settings: z.ZodOptional<z.ZodObject<{
327
+ skills: z.ZodBoolean;
328
+ workspace: z.ZodString;
329
+ }, z.core.$strict>>;
311
330
  agents: z.ZodArray<z.ZodObject<{
312
331
  kind: z.ZodString;
313
332
  release: z.ZodNullable<z.ZodString>;
@@ -316,10 +335,15 @@ export declare const KIT_DECLARATION: {
316
335
  failure: z.ZodNullable<z.ZodString>;
317
336
  installing: z.ZodOptional<z.ZodLiteral<true>>;
318
337
  signed_in: z.ZodBoolean;
338
+ api_key: z.ZodOptional<z.ZodLiteral<true>>;
339
+ provider: z.ZodOptional<z.ZodString>;
319
340
  models: z.ZodArray<z.ZodObject<{
320
341
  model: z.ZodString;
342
+ name: z.ZodString;
321
343
  efforts: z.ZodArray<z.ZodString>;
322
344
  }, z.core.$strict>>;
345
+ default_model: z.ZodOptional<z.ZodString>;
346
+ default_effort: z.ZodOptional<z.ZodString>;
323
347
  modes: z.ZodArray<z.ZodObject<{
324
348
  mode: z.ZodString;
325
349
  name: z.ZodString;
@@ -362,6 +386,11 @@ export declare const KIT_DECLARATION: {
362
386
  timed_out: z.ZodLiteral<true>;
363
387
  }, z.core.$strict>, z.ZodObject<{
364
388
  started: z.ZodLiteral<true>;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ settings: z.ZodObject<{
391
+ skills: z.ZodBoolean;
392
+ workspace: z.ZodString;
393
+ }, z.core.$strict>;
365
394
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
366
395
  'turns/start': import("./acts.ts").KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
367
396
  run: z.ZodOptional<z.ZodLiteral<true>>;
@@ -425,7 +454,6 @@ export declare const KIT_DECLARATION: {
425
454
  new_environment: "new_environment";
426
455
  }>;
427
456
  environment_id: z.ZodOptional<z.ZodUUID>;
428
- replaces: z.ZodOptional<z.ZodUUID>;
429
457
  headless: z.ZodOptional<z.ZodLiteral<true>>;
430
458
  rooms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
431
459
  reach: z.ZodLiteral<"all">;
@@ -460,10 +488,7 @@ export declare const KIT_DECLARATION: {
460
488
  refusal: z.ZodObject<{
461
489
  release: z.ZodString;
462
490
  commands: z.ZodObject<{
463
- macos: z.ZodString;
464
491
  linux: z.ZodString;
465
- container: z.ZodString;
466
- server: z.ZodString;
467
492
  windows: z.ZodString;
468
493
  }, z.core.$strict>;
469
494
  }, 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 = 'b83f3fc915c79a59';
50
+ export const KIT_WIRE = '1e652c409cd41061';
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-c2e87e570c808",
3
+ "version": "0.1.0-ca55846695d8c",
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",