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

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
@@ -173,6 +173,13 @@ export declare const KIT_UPLOAD_FINISH: z.ZodObject<{
173
173
  upload: z.ZodUUID;
174
174
  part_sha256: z.ZodArray<z.ZodString>;
175
175
  }, z.core.$strict>;
176
+ export declare const KIT_BINARY_CHANGE: z.ZodObject<{
177
+ path: z.ZodString;
178
+ revision: z.ZodString;
179
+ bytes: z.ZodInt;
180
+ sha256: z.ZodString;
181
+ }, z.core.$strip>;
182
+ export type KitBinaryChange = z.infer<typeof KIT_BINARY_CHANGE>;
176
183
  export declare const TRANSCRIPT: z.ZodObject<{
177
184
  path: z.ZodString;
178
185
  text: z.ZodString;
@@ -341,7 +348,9 @@ export declare const KIT_ACTS: {
341
348
  secret: z.ZodBoolean;
342
349
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
343
350
  'kits/report-idle': KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
344
- 'kits/report-restart': KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
351
+ 'kits/report-restart': KitActDeclaration<never, z.ZodObject<{
352
+ planned: z.ZodOptional<z.ZodLiteral<true>>;
353
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
345
354
  'conversations/credentials/issue': KitActDeclaration<"conversation", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
346
355
  credential: z.ZodString;
347
356
  }, z.core.$strict>>;
@@ -365,6 +374,6 @@ export type KitActRequest<Name extends KitActName> = {
365
374
  readonly [Id in Declared<Name>['ids'][number]]: string;
366
375
  } & Fields<z.input<Declared<Name>['body']>>;
367
376
  export type KitActAnswer<Name extends KitActName> = Declared<Name>['answer'] extends z.ZodType ? z.output<Declared<Name>['answer']> : unknown;
368
- export declare const KIT_DOOR_ACTS: readonly ['rooms/discover', 'room-chunks/list', 'changes/enumerate', 'files/revisions/list', 'files/batch'];
377
+ export declare const KIT_DOOR_ACTS: readonly ['rooms/discover', 'room-chunks/list', 'changes/enumerate', 'files/revisions/list', 'update'];
369
378
  export type KitDoorAct = (typeof KIT_DOOR_ACTS)[number];
370
379
  export {};
package/dist/acts.js CHANGED
@@ -158,6 +158,12 @@ export const KIT_TURN_IMAGE = z.strictObject({
158
158
  media_type: MEDIA_TYPE,
159
159
  });
160
160
  export const KIT_UPLOAD_FINISH = z.strictObject({ upload: z.uuid(), part_sha256: PART_SHA256 });
161
+ export const KIT_BINARY_CHANGE = z.object({
162
+ path: z.string().min(1),
163
+ revision: z.string().min(1),
164
+ bytes: FILE_BYTES,
165
+ sha256: SHA256,
166
+ });
161
167
  export const TRANSCRIPT = z.strictObject({
162
168
  path: z.string().regex(/^\/rooms\/[^/)\s]+\/[^)\s]+$/u),
163
169
  text: z.string().min(1),
@@ -169,6 +175,7 @@ export const KIT_QUESTION = z.strictObject({
169
175
  });
170
176
  export const LOCAL_COPY_ROOM = z.strictObject({ room_ref: z.string(), room_handle: z.string() });
171
177
  const NOTHING = z.strictObject({});
178
+ const KIT_RESTART = z.strictObject({ planned: z.literal(true).optional() });
172
179
  function act(ids, body, answer) {
173
180
  return { ids, body, answer };
174
181
  }
@@ -186,7 +193,7 @@ export const KIT_ACTS = {
186
193
  'uploads/finish': act([], KIT_UPLOAD_FINISH, { door: 'files/finish' }),
187
194
  'conversations/interaction/ask': act(CONVERSATION_TURN, KIT_QUESTION, NOTHING),
188
195
  'kits/report-idle': act([], NOTHING, NOTHING),
189
- 'kits/report-restart': act([], NOTHING, NOTHING),
196
+ 'kits/report-restart': act([], KIT_RESTART, NOTHING),
190
197
  'conversations/credentials/issue': act(['conversation'], NOTHING, z.strictObject({ credential: z.string().min(1) })),
191
198
  'kits/log-out': act([], NOTHING, z.strictObject({ environment: z.uuid(), revoked: z.literal(true) })),
192
199
  'local-copies/selection/read': act([], NOTHING, z.strictObject({ local_copy: z.strictObject({ rooms: z.array(LOCAL_COPY_ROOM) }) })),
@@ -196,5 +203,5 @@ export const KIT_DOOR_ACTS = [
196
203
  'room-chunks/list',
197
204
  'changes/enumerate',
198
205
  'files/revisions/list',
199
- 'files/batch',
206
+ 'update',
200
207
  ];
@@ -31,6 +31,7 @@ export declare const KIT_CALL_RESULT: z.ZodUnion<readonly [z.ZodObject<{
31
31
  }, z.core.$strict>;
32
32
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
33
33
  export type KitCallResult = z.infer<typeof KIT_CALL_RESULT>;
34
+ export declare const SESSION_CHOICE_BYTES_MAX = 128;
34
35
  export declare const KIT_CALLS: {
35
36
  open: z.ZodObject<{
36
37
  type: z.ZodLiteral<"input">;
@@ -39,6 +40,8 @@ export declare const KIT_CALLS: {
39
40
  agent_id: z.ZodUUID;
40
41
  provider_session_id: z.ZodNullable<z.ZodString>;
41
42
  kind: z.ZodLiteral<"open">;
43
+ model: z.ZodOptional<z.ZodString>;
44
+ effort: z.ZodOptional<z.ZodString>;
42
45
  afk: z.ZodOptional<z.ZodLiteral<true>>;
43
46
  }, z.core.$strict>;
44
47
  kill: z.ZodObject<{
@@ -64,6 +67,8 @@ export declare const KIT_CALLS: {
64
67
  agent_id: z.ZodUUID;
65
68
  provider_session_id: z.ZodNullable<z.ZodString>;
66
69
  kind: z.ZodLiteral<"message">;
70
+ model: z.ZodOptional<z.ZodString>;
71
+ effort: z.ZodOptional<z.ZodString>;
67
72
  message_id: z.ZodUUID;
68
73
  text: z.ZodString;
69
74
  first: z.ZodBoolean;
@@ -96,6 +101,8 @@ export declare const KIT_CALLS: {
96
101
  agent_id: z.ZodUUID;
97
102
  provider_session_id: z.ZodNullable<z.ZodString>;
98
103
  kind: z.ZodLiteral<"answer">;
104
+ model: z.ZodOptional<z.ZodString>;
105
+ effort: z.ZodOptional<z.ZodString>;
99
106
  interaction_id: z.ZodUUID;
100
107
  response: z.ZodUnknown;
101
108
  request: z.ZodUnknown;
@@ -107,8 +114,8 @@ export declare const KIT_CALLS: {
107
114
  agent_id: z.ZodUUID;
108
115
  provider_session_id: z.ZodNullable<z.ZodString>;
109
116
  kind: z.ZodLiteral<"option">;
110
- option: z.ZodString;
111
- value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
117
+ model: z.ZodOptional<z.ZodString>;
118
+ effort: z.ZodOptional<z.ZodString>;
112
119
  }, z.core.$strict>;
113
120
  sign_in: z.ZodObject<{
114
121
  type: z.ZodLiteral<"input">;
@@ -170,6 +177,8 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
177
  agent_id: z.ZodUUID;
171
178
  provider_session_id: z.ZodNullable<z.ZodString>;
172
179
  kind: z.ZodLiteral<"open">;
180
+ model: z.ZodOptional<z.ZodString>;
181
+ effort: z.ZodOptional<z.ZodString>;
173
182
  afk: z.ZodOptional<z.ZodLiteral<true>>;
174
183
  }, z.core.$strict>, z.ZodObject<{
175
184
  type: z.ZodLiteral<"input">;
@@ -192,6 +201,8 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
192
201
  agent_id: z.ZodUUID;
193
202
  provider_session_id: z.ZodNullable<z.ZodString>;
194
203
  kind: z.ZodLiteral<"message">;
204
+ model: z.ZodOptional<z.ZodString>;
205
+ effort: z.ZodOptional<z.ZodString>;
195
206
  message_id: z.ZodUUID;
196
207
  text: z.ZodString;
197
208
  first: z.ZodBoolean;
@@ -221,6 +232,8 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
232
  agent_id: z.ZodUUID;
222
233
  provider_session_id: z.ZodNullable<z.ZodString>;
223
234
  kind: z.ZodLiteral<"answer">;
235
+ model: z.ZodOptional<z.ZodString>;
236
+ effort: z.ZodOptional<z.ZodString>;
224
237
  interaction_id: z.ZodUUID;
225
238
  response: z.ZodUnknown;
226
239
  request: z.ZodUnknown;
@@ -231,8 +244,8 @@ export declare const KIT_CALL: z.ZodDiscriminatedUnion<[z.ZodObject<{
231
244
  agent_id: z.ZodUUID;
232
245
  provider_session_id: z.ZodNullable<z.ZodString>;
233
246
  kind: z.ZodLiteral<"option">;
234
- option: z.ZodString;
235
- value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
247
+ model: z.ZodOptional<z.ZodString>;
248
+ effort: z.ZodOptional<z.ZodString>;
236
249
  }, z.core.$strict>, z.ZodObject<{
237
250
  type: z.ZodLiteral<"input">;
238
251
  input_id: z.ZodUUID;
@@ -42,8 +42,21 @@ function environmentCall(kind, params) {
42
42
  return z.strictObject({ ...ENVIRONMENT_CALL, kind: z.literal(kind), ...params });
43
43
  }
44
44
  const AFK = z.literal(true).optional();
45
+ export const SESSION_CHOICE_BYTES_MAX = 128;
46
+ const SESSION_CHOICE = z
47
+ .string()
48
+ .min(1)
49
+ .refine((value) => new TextEncoder().encode(value).length <= SESSION_CHOICE_BYTES_MAX);
50
+ const STARTING_CHOICES = {
51
+ model: SESSION_CHOICE.optional().meta({
52
+ description: "Present only for a conversation with its own model: the model a session this call starts or resumes runs, in the Agent's place.",
53
+ }),
54
+ effort: SESSION_CHOICE.optional().meta({
55
+ description: "Present only for a conversation with its own effort: the effort a session this call starts or resumes runs, in the Agent's place.",
56
+ }),
57
+ };
45
58
  export const KIT_CALLS = {
46
- open: conversationCall('open', { afk: AFK }),
59
+ open: conversationCall('open', { afk: AFK, ...STARTING_CHOICES }),
47
60
  kill: conversationCall('kill', {}),
48
61
  done: conversationCall('done', {}),
49
62
  message: conversationCall('message', {
@@ -53,6 +66,7 @@ export const KIT_CALLS = {
53
66
  at_once: z.literal(true).optional(),
54
67
  recent: z.string().optional(),
55
68
  afk: AFK,
69
+ ...STARTING_CHOICES,
56
70
  }),
57
71
  take_out: conversationCall('take_out', { message_id: z.uuid() }),
58
72
  interrupt: conversationCall('interrupt', { turn_id: z.uuid() }),
@@ -60,10 +74,15 @@ export const KIT_CALLS = {
60
74
  interaction_id: z.uuid(),
61
75
  response: z.unknown(),
62
76
  request: z.unknown(),
77
+ ...STARTING_CHOICES,
63
78
  }),
64
79
  option: conversationCall('option', {
65
- option: z.string(),
66
- value: z.union([z.string(), z.boolean()]),
80
+ model: SESSION_CHOICE.optional().meta({
81
+ description: 'Present only for a change of the model: the model the running process takes.',
82
+ }),
83
+ effort: SESSION_CHOICE.optional().meta({
84
+ description: 'Present only for a change of the effort: the effort the running process takes.',
85
+ }),
67
86
  }),
68
87
  sign_in: environmentCall('sign_in', {
69
88
  cli: z.string(),
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
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';
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, 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
- export type { AgentCapabilityDeclaration, DeclaredSecretCeremony, DesiredAgentRoute, KitActAnswer, KitActDeclaration, KitActName, KitActRequest, 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, 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';
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
- 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';
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, 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';
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
@@ -26,6 +26,8 @@ export declare const KIT_DECLARATION: {
26
26
  agent_id: z.ZodUUID;
27
27
  provider_session_id: z.ZodNullable<z.ZodString>;
28
28
  kind: z.ZodLiteral<"open">;
29
+ model: z.ZodOptional<z.ZodString>;
30
+ effort: z.ZodOptional<z.ZodString>;
29
31
  afk: z.ZodOptional<z.ZodLiteral<true>>;
30
32
  }, z.core.$strict>;
31
33
  kill: z.ZodObject<{
@@ -51,6 +53,8 @@ export declare const KIT_DECLARATION: {
51
53
  agent_id: z.ZodUUID;
52
54
  provider_session_id: z.ZodNullable<z.ZodString>;
53
55
  kind: z.ZodLiteral<"message">;
56
+ model: z.ZodOptional<z.ZodString>;
57
+ effort: z.ZodOptional<z.ZodString>;
54
58
  message_id: z.ZodUUID;
55
59
  text: z.ZodString;
56
60
  first: z.ZodBoolean;
@@ -83,6 +87,8 @@ export declare const KIT_DECLARATION: {
83
87
  agent_id: z.ZodUUID;
84
88
  provider_session_id: z.ZodNullable<z.ZodString>;
85
89
  kind: z.ZodLiteral<"answer">;
90
+ model: z.ZodOptional<z.ZodString>;
91
+ effort: z.ZodOptional<z.ZodString>;
86
92
  interaction_id: z.ZodUUID;
87
93
  response: z.ZodUnknown;
88
94
  request: z.ZodUnknown;
@@ -94,8 +100,8 @@ export declare const KIT_DECLARATION: {
94
100
  agent_id: z.ZodUUID;
95
101
  provider_session_id: z.ZodNullable<z.ZodString>;
96
102
  kind: z.ZodLiteral<"option">;
97
- option: z.ZodString;
98
- value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
103
+ model: z.ZodOptional<z.ZodString>;
104
+ effort: z.ZodOptional<z.ZodString>;
99
105
  }, z.core.$strict>;
100
106
  sign_in: z.ZodObject<{
101
107
  type: z.ZodLiteral<"input">;
@@ -424,7 +430,9 @@ export declare const KIT_DECLARATION: {
424
430
  secret: z.ZodBoolean;
425
431
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
426
432
  'kits/report-idle': import("./acts.ts").KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
427
- 'kits/report-restart': import("./acts.ts").KitActDeclaration<never, z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
433
+ 'kits/report-restart': import("./acts.ts").KitActDeclaration<never, z.ZodObject<{
434
+ planned: z.ZodOptional<z.ZodLiteral<true>>;
435
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
428
436
  'conversations/credentials/issue': import("./acts.ts").KitActDeclaration<"conversation", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
429
437
  credential: z.ZodString;
430
438
  }, z.core.$strict>>;
@@ -441,7 +449,15 @@ export declare const KIT_DECLARATION: {
441
449
  }, z.core.$strict>;
442
450
  }, z.core.$strict>>;
443
451
  };
444
- door: readonly ["rooms/discover", "room-chunks/list", "changes/enumerate", "files/revisions/list", "files/batch"];
452
+ door: readonly ["rooms/discover", "room-chunks/list", "changes/enumerate", "files/revisions/list", "update"];
453
+ changes: {
454
+ binary: z.ZodObject<{
455
+ path: z.ZodString;
456
+ revision: z.ZodString;
457
+ bytes: z.ZodInt;
458
+ sha256: z.ZodString;
459
+ }, z.core.$strip>;
460
+ };
445
461
  login: {
446
462
  paths: {
447
463
  readonly start: '/kit';
package/dist/wire.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { z } from 'zod';
3
- import { KIT_ACTS, KIT_DOOR_ACTS } from './acts.js';
3
+ import { KIT_ACTS, KIT_BINARY_CHANGE, KIT_DOOR_ACTS } from './acts.js';
4
4
  import { HOUSE_ONE_WAY_CALLS, KIT_CALL_RESULT, KIT_CALLS, KIT_CONNECTION_PATH, KIT_CONNECTION_PROTOCOL_PREFIX, KIT_ONE_WAY_CALLS, } from './connection.js';
5
5
  import { KIT_LOGIN_ISSUED, KIT_LOGIN_PATHS, KIT_LOGIN_POLL, KIT_LOGIN_START, KIT_LOGIN_STARTED, } from './enrollment.js';
6
6
  const WIRE_HEX_LENGTH = 16;
@@ -22,6 +22,7 @@ export const KIT_DECLARATION = {
22
22
  },
23
23
  acts: KIT_ACTS,
24
24
  door: KIT_DOOR_ACTS,
25
+ changes: { binary: KIT_BINARY_CHANGE },
25
26
  login: {
26
27
  paths: KIT_LOGIN_PATHS,
27
28
  start: { request: KIT_LOGIN_START, answer: KIT_LOGIN_STARTED },
@@ -47,7 +48,7 @@ export function kitWire(declaration) {
47
48
  .digest('hex')
48
49
  .slice(0, WIRE_HEX_LENGTH);
49
50
  }
50
- export const KIT_WIRE = '1e652c409cd41061';
51
+ export const KIT_WIRE = '02392d1d009d74d4';
51
52
  export function kitWireRefusal(named) {
52
53
  if (typeof named !== 'string')
53
54
  return 'kit_declaration_invalid';
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@agentshouse/kit-wire",
3
- "version": "0.1.0-ca55846695d8c",
4
3
  "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
4
  "license": "MIT",
6
5
  "type": "module",
@@ -30,5 +29,6 @@
30
29
  "type": "git",
31
30
  "url": "git+https://github.com/agentshouse/core.git",
32
31
  "directory": "kit-wire"
33
- }
32
+ },
33
+ "version": "0.1.0-ca6732654921a"
34
34
  }