@agentshouse/kit-wire 0.1.0-c3e145f6aa97e → 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 +22 -0
- package/dist/acts.js +12 -1
- package/dist/connection.d.ts +31 -0
- package/dist/connection.js +17 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/wire.d.ts +28 -0
- package/dist/wire.js +1 -1
- package/package.json +1 -1
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,6 +61,8 @@ 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;
|
|
64
68
|
name: z.ZodString;
|
|
@@ -96,6 +100,10 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
|
|
|
96
100
|
linux: "linux";
|
|
97
101
|
windows: "windows";
|
|
98
102
|
}>>;
|
|
103
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
skills: z.ZodBoolean;
|
|
105
|
+
workspace: z.ZodString;
|
|
106
|
+
}, z.core.$strict>>;
|
|
99
107
|
agents: z.ZodArray<z.ZodObject<{
|
|
100
108
|
kind: z.ZodString;
|
|
101
109
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -104,6 +112,8 @@ export declare const AGENT_CAPABILITY_DECLARATION: z.ZodObject<{
|
|
|
104
112
|
failure: z.ZodNullable<z.ZodString>;
|
|
105
113
|
installing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
106
114
|
signed_in: z.ZodBoolean;
|
|
115
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
116
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
107
117
|
models: z.ZodArray<z.ZodObject<{
|
|
108
118
|
model: z.ZodString;
|
|
109
119
|
name: z.ZodString;
|
|
@@ -202,6 +212,7 @@ export declare const KIT_ACTS: {
|
|
|
202
212
|
label: z.ZodString;
|
|
203
213
|
name: z.ZodString;
|
|
204
214
|
description: z.ZodOptional<z.ZodString>;
|
|
215
|
+
optional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
205
216
|
}, z.core.$strict>], "kind">>;
|
|
206
217
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
207
218
|
outcome: z.ZodLiteral<"collected">;
|
|
@@ -229,6 +240,10 @@ export declare const KIT_ACTS: {
|
|
|
229
240
|
linux: "linux";
|
|
230
241
|
windows: "windows";
|
|
231
242
|
}>>;
|
|
243
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
skills: z.ZodBoolean;
|
|
245
|
+
workspace: z.ZodString;
|
|
246
|
+
}, z.core.$strict>>;
|
|
232
247
|
agents: z.ZodArray<z.ZodObject<{
|
|
233
248
|
kind: z.ZodString;
|
|
234
249
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -237,6 +252,8 @@ export declare const KIT_ACTS: {
|
|
|
237
252
|
failure: z.ZodNullable<z.ZodString>;
|
|
238
253
|
installing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
239
254
|
signed_in: z.ZodBoolean;
|
|
255
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
256
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
240
257
|
models: z.ZodArray<z.ZodObject<{
|
|
241
258
|
model: z.ZodString;
|
|
242
259
|
name: z.ZodString;
|
|
@@ -286,6 +303,11 @@ export declare const KIT_ACTS: {
|
|
|
286
303
|
timed_out: z.ZodLiteral<true>;
|
|
287
304
|
}, z.core.$strict>, z.ZodObject<{
|
|
288
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>;
|
|
289
311
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
|
|
290
312
|
'turns/start': KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
291
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;
|
|
@@ -88,6 +92,12 @@ export const REPORTED_AGENT_KIND = z.strictObject({
|
|
|
88
92
|
description: 'Present only while the Kit installs the CLI, whose release and failure are then null.',
|
|
89
93
|
}),
|
|
90
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
|
+
}),
|
|
91
101
|
models: OFFERED_MODELS,
|
|
92
102
|
default_model: CHOICE.optional().meta({
|
|
93
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.',
|
|
@@ -120,6 +130,7 @@ export const AGENT_CAPABILITY_DECLARATION = z.strictObject({
|
|
|
120
130
|
reinstall: z.enum(KIT_REINSTALLS).optional().meta({
|
|
121
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.',
|
|
122
132
|
}),
|
|
133
|
+
settings: KIT_SETTINGS.optional(),
|
|
123
134
|
agents: z
|
|
124
135
|
.array(REPORTED_AGENT_KIND)
|
|
125
136
|
.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: {
|
|
@@ -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;
|
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 = {
|
|
@@ -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', {
|
|
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
|
]);
|
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
|
@@ -106,6 +106,7 @@ export declare const KIT_DECLARATION: {
|
|
|
106
106
|
kind: z.ZodLiteral<"sign_in">;
|
|
107
107
|
cli: z.ZodString;
|
|
108
108
|
ends_in: z.ZodInt;
|
|
109
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
109
110
|
}, z.core.$strict>;
|
|
110
111
|
update: z.ZodObject<{
|
|
111
112
|
type: z.ZodLiteral<"input">;
|
|
@@ -116,6 +117,16 @@ export declare const KIT_DECLARATION: {
|
|
|
116
117
|
kind: z.ZodLiteral<"update">;
|
|
117
118
|
release: z.ZodString;
|
|
118
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>;
|
|
119
130
|
run_wizard: z.ZodObject<{
|
|
120
131
|
type: z.ZodLiteral<"input">;
|
|
121
132
|
input_id: z.ZodUUID;
|
|
@@ -156,6 +167,11 @@ export declare const KIT_DECLARATION: {
|
|
|
156
167
|
timed_out: z.ZodLiteral<true>;
|
|
157
168
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
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>;
|
|
159
175
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>;
|
|
160
176
|
house: {
|
|
161
177
|
beat: z.ZodObject<{
|
|
@@ -279,6 +295,7 @@ export declare const KIT_DECLARATION: {
|
|
|
279
295
|
label: z.ZodString;
|
|
280
296
|
name: z.ZodString;
|
|
281
297
|
description: z.ZodOptional<z.ZodString>;
|
|
298
|
+
optional: z.ZodOptional<z.ZodLiteral<true>>;
|
|
282
299
|
}, z.core.$strict>], "kind">>;
|
|
283
300
|
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
284
301
|
outcome: z.ZodLiteral<"collected">;
|
|
@@ -306,6 +323,10 @@ export declare const KIT_DECLARATION: {
|
|
|
306
323
|
linux: "linux";
|
|
307
324
|
windows: "windows";
|
|
308
325
|
}>>;
|
|
326
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
327
|
+
skills: z.ZodBoolean;
|
|
328
|
+
workspace: z.ZodString;
|
|
329
|
+
}, z.core.$strict>>;
|
|
309
330
|
agents: z.ZodArray<z.ZodObject<{
|
|
310
331
|
kind: z.ZodString;
|
|
311
332
|
release: z.ZodNullable<z.ZodString>;
|
|
@@ -314,6 +335,8 @@ export declare const KIT_DECLARATION: {
|
|
|
314
335
|
failure: z.ZodNullable<z.ZodString>;
|
|
315
336
|
installing: z.ZodOptional<z.ZodLiteral<true>>;
|
|
316
337
|
signed_in: z.ZodBoolean;
|
|
338
|
+
api_key: z.ZodOptional<z.ZodLiteral<true>>;
|
|
339
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
317
340
|
models: z.ZodArray<z.ZodObject<{
|
|
318
341
|
model: z.ZodString;
|
|
319
342
|
name: z.ZodString;
|
|
@@ -363,6 +386,11 @@ export declare const KIT_DECLARATION: {
|
|
|
363
386
|
timed_out: z.ZodLiteral<true>;
|
|
364
387
|
}, z.core.$strict>, z.ZodObject<{
|
|
365
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>;
|
|
366
394
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>]>, z.ZodObject<{}, z.core.$strict>>;
|
|
367
395
|
'turns/start': import("./acts.ts").KitActDeclaration<"conversation" | "turn", z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
368
396
|
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 = '
|
|
50
|
+
export const KIT_WIRE = '1e652c409cd41061';
|
|
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-
|
|
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",
|