@agentshouse/kit-wire 0.1.0-c2e87e570c808 → 0.1.0-c3e145f6aa97e
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 +18 -0
- package/dist/acts.js +15 -1
- package/dist/enrollment.d.ts +0 -1
- package/dist/enrollment.js +0 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/wire.d.ts +7 -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,10 @@ 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
|
+
}>>;
|
|
91
99
|
agents: z.ZodArray<z.ZodObject<{
|
|
92
100
|
kind: z.ZodString;
|
|
93
101
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -98,8 +106,11 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
|
|
|
98
106
|
signed_in: z.ZodBoolean;
|
|
99
107
|
models: z.ZodArray<z.ZodObject<{
|
|
100
108
|
model: z.ZodString;
|
|
109
|
+
name: z.ZodString;
|
|
101
110
|
efforts: z.ZodArray<z.ZodString>;
|
|
102
111
|
}, z.core.$strict>>;
|
|
112
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
113
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
103
114
|
modes: z.ZodArray<z.ZodObject<{
|
|
104
115
|
mode: z.ZodString;
|
|
105
116
|
name: z.ZodString;
|
|
@@ -214,6 +225,10 @@ export declare const KIT_ACTS: {
|
|
|
214
225
|
}>>;
|
|
215
226
|
ssh_host_key: z.ZodOptional<z.ZodString>;
|
|
216
227
|
agent_base: z.ZodOptional<z.ZodString>;
|
|
228
|
+
reinstall: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
linux: "linux";
|
|
230
|
+
windows: "windows";
|
|
231
|
+
}>>;
|
|
217
232
|
agents: z.ZodArray<z.ZodObject<{
|
|
218
233
|
kind: z.ZodString;
|
|
219
234
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -224,8 +239,11 @@ export declare const KIT_ACTS: {
|
|
|
224
239
|
signed_in: z.ZodBoolean;
|
|
225
240
|
models: z.ZodArray<z.ZodObject<{
|
|
226
241
|
model: z.ZodString;
|
|
242
|
+
name: z.ZodString;
|
|
227
243
|
efforts: z.ZodArray<z.ZodString>;
|
|
228
244
|
}, z.core.$strict>>;
|
|
245
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
246
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
229
247
|
modes: z.ZodArray<z.ZodObject<{
|
|
230
248
|
mode: z.ZodString;
|
|
231
249
|
name: z.ZodString;
|
package/dist/acts.js
CHANGED
|
@@ -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,9 @@ 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
|
+
}),
|
|
109
123
|
agents: z
|
|
110
124
|
.array(REPORTED_AGENT_KIND)
|
|
111
125
|
.refine((agents) => new Set(agents.map((agent) => agent.kind)).size === agents.length),
|
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
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
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';
|
|
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
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';
|
|
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>;
|
|
@@ -308,6 +302,10 @@ export declare const KIT_DECLARATION: {
|
|
|
308
302
|
}>>;
|
|
309
303
|
ssh_host_key: z.ZodOptional<z.ZodString>;
|
|
310
304
|
agent_base: z.ZodOptional<z.ZodString>;
|
|
305
|
+
reinstall: z.ZodOptional<z.ZodEnum<{
|
|
306
|
+
linux: "linux";
|
|
307
|
+
windows: "windows";
|
|
308
|
+
}>>;
|
|
311
309
|
agents: z.ZodArray<z.ZodObject<{
|
|
312
310
|
kind: z.ZodString;
|
|
313
311
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -318,8 +316,11 @@ export declare const KIT_DECLARATION: {
|
|
|
318
316
|
signed_in: z.ZodBoolean;
|
|
319
317
|
models: z.ZodArray<z.ZodObject<{
|
|
320
318
|
model: z.ZodString;
|
|
319
|
+
name: z.ZodString;
|
|
321
320
|
efforts: z.ZodArray<z.ZodString>;
|
|
322
321
|
}, z.core.$strict>>;
|
|
322
|
+
default_model: z.ZodOptional<z.ZodString>;
|
|
323
|
+
default_effort: z.ZodOptional<z.ZodString>;
|
|
323
324
|
modes: z.ZodArray<z.ZodObject<{
|
|
324
325
|
mode: z.ZodString;
|
|
325
326
|
name: z.ZodString;
|
|
@@ -425,7 +426,6 @@ export declare const KIT_DECLARATION: {
|
|
|
425
426
|
new_environment: "new_environment";
|
|
426
427
|
}>;
|
|
427
428
|
environment_id: z.ZodOptional<z.ZodUUID>;
|
|
428
|
-
replaces: z.ZodOptional<z.ZodUUID>;
|
|
429
429
|
headless: z.ZodOptional<z.ZodLiteral<true>>;
|
|
430
430
|
rooms: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
431
431
|
reach: z.ZodLiteral<"all">;
|
|
@@ -460,10 +460,7 @@ export declare const KIT_DECLARATION: {
|
|
|
460
460
|
refusal: z.ZodObject<{
|
|
461
461
|
release: z.ZodString;
|
|
462
462
|
commands: z.ZodObject<{
|
|
463
|
-
macos: z.ZodString;
|
|
464
463
|
linux: z.ZodString;
|
|
465
|
-
container: z.ZodString;
|
|
466
|
-
server: z.ZodString;
|
|
467
464
|
windows: z.ZodString;
|
|
468
465
|
}, z.core.$strict>;
|
|
469
466
|
}, 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 = 'edc5265562bfc73c';
|
|
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-c3e145f6aa97e",
|
|
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",
|