@agentshouse/kit-wire 0.1.0-c3e145f6aa97e → 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 CHANGED
@@ -96,6 +96,10 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
96
96
  linux: "linux";
97
97
  windows: "windows";
98
98
  }>>;
99
+ settings: z.ZodOptional<z.ZodObject<{
100
+ skills: z.ZodBoolean;
101
+ workspace: z.ZodString;
102
+ }, z.core.$strict>>;
99
103
  agents: z.ZodArray<z.ZodObject<{
100
104
  kind: z.ZodString;
101
105
  release: z.ZodNullable<z.ZodString>;
@@ -229,6 +233,10 @@ export declare const KIT_ACTS: {
229
233
  linux: "linux";
230
234
  windows: "windows";
231
235
  }>>;
236
+ settings: z.ZodOptional<z.ZodObject<{
237
+ skills: z.ZodBoolean;
238
+ workspace: z.ZodString;
239
+ }, z.core.$strict>>;
232
240
  agents: z.ZodArray<z.ZodObject<{
233
241
  kind: z.ZodString;
234
242
  release: z.ZodNullable<z.ZodString>;
@@ -286,6 +294,11 @@ export declare const KIT_ACTS: {
286
294
  timed_out: z.ZodLiteral<true>;
287
295
  }, z.core.$strict>, z.ZodObject<{
288
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>;
289
302
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
290
303
  'turns/start': KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
291
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");
@@ -120,6 +120,7 @@ export const AGENT_CAPABILITY_DECLARATION = z.strictObject({
120
120
  reinstall: z.enum(KIT_REINSTALLS).optional().meta({
121
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
122
  }),
123
+ settings: KIT_SETTINGS.optional(),
123
124
  agents: z
124
125
  .array(REPORTED_AGENT_KIND)
125
126
  .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: {
@@ -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;
@@ -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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
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
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';
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';
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
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
@@ -116,6 +116,16 @@ export declare const KIT_DECLARATION: {
116
116
  kind: z.ZodLiteral<"update">;
117
117
  release: z.ZodString;
118
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>;
119
129
  run_wizard: z.ZodObject<{
120
130
  type: z.ZodLiteral<"input">;
121
131
  input_id: z.ZodUUID;
@@ -156,6 +166,11 @@ export declare const KIT_DECLARATION: {
156
166
  timed_out: z.ZodLiteral<true>;
157
167
  }, z.core.$strict>, z.ZodObject<{
158
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>;
159
174
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
160
175
  house: {
161
176
  beat: z.ZodObject<{
@@ -306,6 +321,10 @@ export declare const KIT_DECLARATION: {
306
321
  linux: "linux";
307
322
  windows: "windows";
308
323
  }>>;
324
+ settings: z.ZodOptional<z.ZodObject<{
325
+ skills: z.ZodBoolean;
326
+ workspace: z.ZodString;
327
+ }, z.core.$strict>>;
309
328
  agents: z.ZodArray<z.ZodObject<{
310
329
  kind: z.ZodString;
311
330
  release: z.ZodNullable<z.ZodString>;
@@ -363,6 +382,11 @@ export declare const KIT_DECLARATION: {
363
382
  timed_out: z.ZodLiteral<true>;
364
383
  }, z.core.$strict>, z.ZodObject<{
365
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>;
366
390
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
367
391
  'turns/start': import("./acts.ts").KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
368
392
  run: z.ZodOptional<z.ZodLiteral<true>>;
package/dist/wire.js CHANGED
@@ -47,7 +47,7 @@ export function kitWire(declaration) {
47
47
  .digest('hex')
48
48
  .slice(0, WIRE_HEX_LENGTH);
49
49
  }
50
- export const KIT_WIRE = 'edc5265562bfc73c';
50
+ export const KIT_WIRE = 'e1ec8094a33111a4';
51
51
  export function kitWireRefusal(named) {
52
52
  if (typeof named !== 'string')
53
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-c3e145f6aa97e",
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",