@harness-gw/sdk 0.5.0 → 0.5.1
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/README.md +5 -4
- package/dist/client/acp-workspace-client-composer.d.ts +9 -9
- package/dist/client/acp-workspace-client-sessions.d.ts +2 -2
- package/dist/client/acp-workspace-client.d.ts +23 -23
- package/dist/client/connection.d.ts +26 -26
- package/dist/client/hgw-client.d.ts +64 -64
- package/dist/client/log.d.ts +4 -4
- package/dist/protocol/acp.d.ts +45 -45
- package/dist/protocol/index.d.ts +76 -76
- package/dist/protocol/push.d.ts +4 -4
- package/package.json +8 -9
package/dist/protocol/index.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export declare const RuntimeInfoSchema: z.ZodObject<{
|
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
}, z.core.$strict>;
|
|
24
24
|
status: z.ZodEnum<{
|
|
25
|
-
unavailable: "unavailable";
|
|
26
|
-
ready: "ready";
|
|
27
25
|
degraded: "degraded";
|
|
26
|
+
ready: "ready";
|
|
27
|
+
unavailable: "unavailable";
|
|
28
28
|
}>;
|
|
29
29
|
capabilities: z.ZodObject<{
|
|
30
30
|
agentCatalog: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -150,27 +150,27 @@ export declare const AgentCatalogEntrySchema: z.ZodObject<{
|
|
|
150
150
|
description: z.ZodOptional<z.ZodString>;
|
|
151
151
|
status: z.ZodOptional<z.ZodEnum<{
|
|
152
152
|
active: "active";
|
|
153
|
-
|
|
153
|
+
attention: "attention";
|
|
154
154
|
idle: "idle";
|
|
155
155
|
running: "running";
|
|
156
|
-
|
|
156
|
+
unknown: "unknown";
|
|
157
157
|
}>>;
|
|
158
158
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
159
159
|
active: "active";
|
|
160
|
-
unknown: "unknown";
|
|
161
160
|
idle: "idle";
|
|
161
|
+
unknown: "unknown";
|
|
162
162
|
}>>;
|
|
163
163
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
164
|
-
visible: "visible";
|
|
165
164
|
hidden: "hidden";
|
|
165
|
+
visible: "visible";
|
|
166
166
|
}>>;
|
|
167
167
|
role: z.ZodOptional<z.ZodLiteral<"creator">>;
|
|
168
168
|
avatar: z.ZodOptional<z.ZodString>;
|
|
169
169
|
muted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
170
170
|
}, z.core.$strict>;
|
|
171
171
|
visibility: z.ZodEnum<{
|
|
172
|
-
visible: "visible";
|
|
173
172
|
hidden: "hidden";
|
|
173
|
+
visible: "visible";
|
|
174
174
|
}>;
|
|
175
175
|
selectable: z.ZodBoolean;
|
|
176
176
|
editable: z.ZodBoolean;
|
|
@@ -189,27 +189,27 @@ export declare const AgentCatalogResponseSchema: z.ZodObject<{
|
|
|
189
189
|
description: z.ZodOptional<z.ZodString>;
|
|
190
190
|
status: z.ZodOptional<z.ZodEnum<{
|
|
191
191
|
active: "active";
|
|
192
|
-
|
|
192
|
+
attention: "attention";
|
|
193
193
|
idle: "idle";
|
|
194
194
|
running: "running";
|
|
195
|
-
|
|
195
|
+
unknown: "unknown";
|
|
196
196
|
}>>;
|
|
197
197
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
198
198
|
active: "active";
|
|
199
|
-
unknown: "unknown";
|
|
200
199
|
idle: "idle";
|
|
200
|
+
unknown: "unknown";
|
|
201
201
|
}>>;
|
|
202
202
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
203
|
-
visible: "visible";
|
|
204
203
|
hidden: "hidden";
|
|
204
|
+
visible: "visible";
|
|
205
205
|
}>>;
|
|
206
206
|
role: z.ZodOptional<z.ZodLiteral<"creator">>;
|
|
207
207
|
avatar: z.ZodOptional<z.ZodString>;
|
|
208
208
|
muted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
209
209
|
}, z.core.$strict>;
|
|
210
210
|
visibility: z.ZodEnum<{
|
|
211
|
-
visible: "visible";
|
|
212
211
|
hidden: "hidden";
|
|
212
|
+
visible: "visible";
|
|
213
213
|
}>;
|
|
214
214
|
selectable: z.ZodBoolean;
|
|
215
215
|
editable: z.ZodBoolean;
|
|
@@ -222,8 +222,8 @@ export type AgentCatalogResponse = z.infer<typeof AgentCatalogResponseSchema>;
|
|
|
222
222
|
/** The fields an Agent update may write, with the revision it observed. */
|
|
223
223
|
export declare const AgentUpdateFields: {
|
|
224
224
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
225
|
-
visible: "visible";
|
|
226
225
|
hidden: "hidden";
|
|
226
|
+
visible: "visible";
|
|
227
227
|
}>>;
|
|
228
228
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
229
|
/** Mutes the Agent's notifications, or with `false` unmutes them. */
|
|
@@ -238,8 +238,8 @@ export declare function writesAgentField(value: {
|
|
|
238
238
|
}): boolean;
|
|
239
239
|
export declare const AgentUpdateRequestSchema: z.ZodObject<{
|
|
240
240
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
241
|
-
visible: "visible";
|
|
242
241
|
hidden: "hidden";
|
|
242
|
+
visible: "visible";
|
|
243
243
|
}>>;
|
|
244
244
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
245
|
muted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -258,27 +258,27 @@ export declare const AgentUpdateResponseSchema: z.ZodObject<{
|
|
|
258
258
|
description: z.ZodOptional<z.ZodString>;
|
|
259
259
|
status: z.ZodOptional<z.ZodEnum<{
|
|
260
260
|
active: "active";
|
|
261
|
-
|
|
261
|
+
attention: "attention";
|
|
262
262
|
idle: "idle";
|
|
263
263
|
running: "running";
|
|
264
|
-
|
|
264
|
+
unknown: "unknown";
|
|
265
265
|
}>>;
|
|
266
266
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
267
267
|
active: "active";
|
|
268
|
-
unknown: "unknown";
|
|
269
268
|
idle: "idle";
|
|
269
|
+
unknown: "unknown";
|
|
270
270
|
}>>;
|
|
271
271
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
272
|
-
visible: "visible";
|
|
273
272
|
hidden: "hidden";
|
|
273
|
+
visible: "visible";
|
|
274
274
|
}>>;
|
|
275
275
|
role: z.ZodOptional<z.ZodLiteral<"creator">>;
|
|
276
276
|
avatar: z.ZodOptional<z.ZodString>;
|
|
277
277
|
muted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
278
278
|
}, z.core.$strict>;
|
|
279
279
|
visibility: z.ZodEnum<{
|
|
280
|
-
visible: "visible";
|
|
281
280
|
hidden: "hidden";
|
|
281
|
+
visible: "visible";
|
|
282
282
|
}>;
|
|
283
283
|
selectable: z.ZodBoolean;
|
|
284
284
|
editable: z.ZodBoolean;
|
|
@@ -289,20 +289,20 @@ export declare const AgentUpdateResponseSchema: z.ZodObject<{
|
|
|
289
289
|
}, z.core.$strict>;
|
|
290
290
|
export type AgentUpdateResponse = z.infer<typeof AgentUpdateResponseSchema>;
|
|
291
291
|
export declare const SessionStatusSchema: z.ZodEnum<{
|
|
292
|
-
|
|
292
|
+
failed: "failed";
|
|
293
293
|
idle: "idle";
|
|
294
294
|
running: "running";
|
|
295
|
+
unknown: "unknown";
|
|
295
296
|
"waiting-for-input": "waiting-for-input";
|
|
296
|
-
failed: "failed";
|
|
297
297
|
}>;
|
|
298
298
|
/** The external platform a Session originated from, when the provider reports it. */
|
|
299
299
|
export declare const SessionPlatformSchema: z.ZodEnum<{
|
|
300
300
|
buzz: "buzz";
|
|
301
|
-
|
|
301
|
+
discord: "discord";
|
|
302
|
+
email: "email";
|
|
302
303
|
slack: "slack";
|
|
303
304
|
telegram: "telegram";
|
|
304
|
-
|
|
305
|
-
discord: "discord";
|
|
305
|
+
whatsapp: "whatsapp";
|
|
306
306
|
}>;
|
|
307
307
|
export type SessionPlatform = z.infer<typeof SessionPlatformSchema>;
|
|
308
308
|
export declare const SessionSchema: z.ZodObject<{
|
|
@@ -313,21 +313,21 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
313
313
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
314
314
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
315
315
|
status: z.ZodEnum<{
|
|
316
|
-
|
|
316
|
+
failed: "failed";
|
|
317
317
|
idle: "idle";
|
|
318
318
|
running: "running";
|
|
319
|
+
unknown: "unknown";
|
|
319
320
|
"waiting-for-input": "waiting-for-input";
|
|
320
|
-
failed: "failed";
|
|
321
321
|
}>;
|
|
322
322
|
unread: z.ZodOptional<z.ZodBoolean>;
|
|
323
323
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
324
324
|
platform: z.ZodOptional<z.ZodEnum<{
|
|
325
325
|
buzz: "buzz";
|
|
326
|
-
|
|
326
|
+
discord: "discord";
|
|
327
|
+
email: "email";
|
|
327
328
|
slack: "slack";
|
|
328
329
|
telegram: "telegram";
|
|
329
|
-
|
|
330
|
-
discord: "discord";
|
|
330
|
+
whatsapp: "whatsapp";
|
|
331
331
|
}>>;
|
|
332
332
|
}, z.core.$strict>;
|
|
333
333
|
export type Session = z.infer<typeof SessionSchema>;
|
|
@@ -342,21 +342,21 @@ export declare const SessionCatalogResponseSchema: z.ZodObject<{
|
|
|
342
342
|
createdAt: z.ZodOptional<z.ZodISODateTime>;
|
|
343
343
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
344
344
|
status: z.ZodEnum<{
|
|
345
|
-
|
|
345
|
+
failed: "failed";
|
|
346
346
|
idle: "idle";
|
|
347
347
|
running: "running";
|
|
348
|
+
unknown: "unknown";
|
|
348
349
|
"waiting-for-input": "waiting-for-input";
|
|
349
|
-
failed: "failed";
|
|
350
350
|
}>;
|
|
351
351
|
unread: z.ZodOptional<z.ZodBoolean>;
|
|
352
352
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
353
353
|
platform: z.ZodOptional<z.ZodEnum<{
|
|
354
354
|
buzz: "buzz";
|
|
355
|
-
|
|
355
|
+
discord: "discord";
|
|
356
|
+
email: "email";
|
|
356
357
|
slack: "slack";
|
|
357
358
|
telegram: "telegram";
|
|
358
|
-
|
|
359
|
-
discord: "discord";
|
|
359
|
+
whatsapp: "whatsapp";
|
|
360
360
|
}>>;
|
|
361
361
|
}, z.core.$strict>>;
|
|
362
362
|
total: z.ZodNumber;
|
|
@@ -406,15 +406,15 @@ export type DiffOperation = (typeof DiffOperation)[keyof typeof DiffOperation];
|
|
|
406
406
|
/** One changed file; a move or copy also names where it came from. */
|
|
407
407
|
export declare const DiffChangeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
408
408
|
operation: z.ZodEnum<{
|
|
409
|
-
delete: "delete";
|
|
410
409
|
add: "add";
|
|
410
|
+
delete: "delete";
|
|
411
411
|
modify: "modify";
|
|
412
412
|
}>;
|
|
413
413
|
path: z.ZodString;
|
|
414
414
|
}, z.core.$strict>, z.ZodObject<{
|
|
415
415
|
operation: z.ZodEnum<{
|
|
416
|
-
move: "move";
|
|
417
416
|
copy: "copy";
|
|
417
|
+
move: "move";
|
|
418
418
|
}>;
|
|
419
419
|
oldPath: z.ZodString;
|
|
420
420
|
path: z.ZodString;
|
|
@@ -423,15 +423,15 @@ export declare const DiffChangeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
423
423
|
export declare const ToolDiffSchema: z.ZodObject<{
|
|
424
424
|
changes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
425
425
|
operation: z.ZodEnum<{
|
|
426
|
-
delete: "delete";
|
|
427
426
|
add: "add";
|
|
427
|
+
delete: "delete";
|
|
428
428
|
modify: "modify";
|
|
429
429
|
}>;
|
|
430
430
|
path: z.ZodString;
|
|
431
431
|
}, z.core.$strict>, z.ZodObject<{
|
|
432
432
|
operation: z.ZodEnum<{
|
|
433
|
-
move: "move";
|
|
434
433
|
copy: "copy";
|
|
434
|
+
move: "move";
|
|
435
435
|
}>;
|
|
436
436
|
oldPath: z.ZodString;
|
|
437
437
|
path: z.ZodString;
|
|
@@ -451,9 +451,9 @@ export declare const SessionMessageErrorStatusSchema: z.ZodObject<{
|
|
|
451
451
|
export declare const SessionMessageSchema: z.ZodObject<{
|
|
452
452
|
id: z.ZodString;
|
|
453
453
|
role: z.ZodEnum<{
|
|
454
|
-
user: "user";
|
|
455
454
|
assistant: "assistant";
|
|
456
455
|
system: "system";
|
|
456
|
+
user: "user";
|
|
457
457
|
}>;
|
|
458
458
|
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
459
459
|
type: z.ZodLiteral<"text">;
|
|
@@ -474,15 +474,15 @@ export declare const SessionMessageSchema: z.ZodObject<{
|
|
|
474
474
|
result: z.ZodOptional<z.ZodJSONSchema>;
|
|
475
475
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
476
476
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
477
|
-
search: "search";
|
|
478
|
-
read: "read";
|
|
479
|
-
edit: "edit";
|
|
480
477
|
delete: "delete";
|
|
481
|
-
|
|
478
|
+
edit: "edit";
|
|
482
479
|
execute: "execute";
|
|
483
|
-
think: "think";
|
|
484
480
|
fetch: "fetch";
|
|
481
|
+
move: "move";
|
|
485
482
|
other: "other";
|
|
483
|
+
read: "read";
|
|
484
|
+
search: "search";
|
|
485
|
+
think: "think";
|
|
486
486
|
}>>;
|
|
487
487
|
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
488
488
|
path: z.ZodString;
|
|
@@ -491,15 +491,15 @@ export declare const SessionMessageSchema: z.ZodObject<{
|
|
|
491
491
|
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
492
492
|
changes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
493
493
|
operation: z.ZodEnum<{
|
|
494
|
-
delete: "delete";
|
|
495
494
|
add: "add";
|
|
495
|
+
delete: "delete";
|
|
496
496
|
modify: "modify";
|
|
497
497
|
}>;
|
|
498
498
|
path: z.ZodString;
|
|
499
499
|
}, z.core.$strict>, z.ZodObject<{
|
|
500
500
|
operation: z.ZodEnum<{
|
|
501
|
-
move: "move";
|
|
502
501
|
copy: "copy";
|
|
502
|
+
move: "move";
|
|
503
503
|
}>;
|
|
504
504
|
oldPath: z.ZodString;
|
|
505
505
|
path: z.ZodString;
|
|
@@ -536,11 +536,11 @@ export declare const SessionMessageSchema: z.ZodObject<{
|
|
|
536
536
|
error: z.ZodString;
|
|
537
537
|
}, z.core.$strict>]>>;
|
|
538
538
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
539
|
+
cancelled: "cancelled";
|
|
539
540
|
"end-turn": "end-turn";
|
|
540
541
|
"max-tokens": "max-tokens";
|
|
541
542
|
"max-turn-requests": "max-turn-requests";
|
|
542
543
|
refusal: "refusal";
|
|
543
|
-
cancelled: "cancelled";
|
|
544
544
|
}>>;
|
|
545
545
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
546
546
|
custom: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
@@ -560,9 +560,9 @@ export declare const SessionPlanActivityMessageSchema: z.ZodObject<{
|
|
|
560
560
|
label: z.ZodString;
|
|
561
561
|
status: z.ZodEnum<{
|
|
562
562
|
active: "active";
|
|
563
|
+
completed: "completed";
|
|
563
564
|
failed: "failed";
|
|
564
565
|
pending: "pending";
|
|
565
|
-
completed: "completed";
|
|
566
566
|
}>;
|
|
567
567
|
}, z.core.$strict>>;
|
|
568
568
|
}, z.core.$strict>;
|
|
@@ -573,9 +573,9 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
573
573
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
574
574
|
id: z.ZodString;
|
|
575
575
|
role: z.ZodEnum<{
|
|
576
|
-
user: "user";
|
|
577
576
|
assistant: "assistant";
|
|
578
577
|
system: "system";
|
|
578
|
+
user: "user";
|
|
579
579
|
}>;
|
|
580
580
|
content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
581
581
|
type: z.ZodLiteral<"text">;
|
|
@@ -596,15 +596,15 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
596
596
|
result: z.ZodOptional<z.ZodJSONSchema>;
|
|
597
597
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
598
598
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
599
|
-
search: "search";
|
|
600
|
-
read: "read";
|
|
601
|
-
edit: "edit";
|
|
602
599
|
delete: "delete";
|
|
603
|
-
|
|
600
|
+
edit: "edit";
|
|
604
601
|
execute: "execute";
|
|
605
|
-
think: "think";
|
|
606
602
|
fetch: "fetch";
|
|
603
|
+
move: "move";
|
|
607
604
|
other: "other";
|
|
605
|
+
read: "read";
|
|
606
|
+
search: "search";
|
|
607
|
+
think: "think";
|
|
608
608
|
}>>;
|
|
609
609
|
locations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
610
610
|
path: z.ZodString;
|
|
@@ -613,15 +613,15 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
613
613
|
diffs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
614
614
|
changes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
615
615
|
operation: z.ZodEnum<{
|
|
616
|
-
delete: "delete";
|
|
617
616
|
add: "add";
|
|
617
|
+
delete: "delete";
|
|
618
618
|
modify: "modify";
|
|
619
619
|
}>;
|
|
620
620
|
path: z.ZodString;
|
|
621
621
|
}, z.core.$strict>, z.ZodObject<{
|
|
622
622
|
operation: z.ZodEnum<{
|
|
623
|
-
move: "move";
|
|
624
623
|
copy: "copy";
|
|
624
|
+
move: "move";
|
|
625
625
|
}>;
|
|
626
626
|
oldPath: z.ZodString;
|
|
627
627
|
path: z.ZodString;
|
|
@@ -658,11 +658,11 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
658
658
|
error: z.ZodString;
|
|
659
659
|
}, z.core.$strict>]>>;
|
|
660
660
|
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
cancelled: "cancelled";
|
|
661
662
|
"end-turn": "end-turn";
|
|
662
663
|
"max-tokens": "max-tokens";
|
|
663
664
|
"max-turn-requests": "max-turn-requests";
|
|
664
665
|
refusal: "refusal";
|
|
665
|
-
cancelled: "cancelled";
|
|
666
666
|
}>>;
|
|
667
667
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
668
668
|
custom: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
@@ -680,9 +680,9 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
680
680
|
label: z.ZodString;
|
|
681
681
|
status: z.ZodEnum<{
|
|
682
682
|
active: "active";
|
|
683
|
+
completed: "completed";
|
|
683
684
|
failed: "failed";
|
|
684
685
|
pending: "pending";
|
|
685
|
-
completed: "completed";
|
|
686
686
|
}>;
|
|
687
687
|
}, z.core.$strict>>;
|
|
688
688
|
}, z.core.$strict>;
|
|
@@ -694,11 +694,11 @@ export declare const SessionHistoryResponseSchema: z.ZodObject<{
|
|
|
694
694
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
695
695
|
execution: z.ZodOptional<z.ZodObject<{
|
|
696
696
|
status: z.ZodEnum<{
|
|
697
|
-
|
|
697
|
+
failed: "failed";
|
|
698
698
|
idle: "idle";
|
|
699
699
|
running: "running";
|
|
700
|
+
unknown: "unknown";
|
|
700
701
|
"waiting-for-input": "waiting-for-input";
|
|
701
|
-
failed: "failed";
|
|
702
702
|
}>;
|
|
703
703
|
turnId: z.ZodOptional<z.ZodString>;
|
|
704
704
|
}, z.core.$strict>>;
|
|
@@ -734,8 +734,8 @@ export declare const TurnSteerRequestSchema: z.ZodObject<{
|
|
|
734
734
|
export type TurnSteerRequest = z.infer<typeof TurnSteerRequestSchema>;
|
|
735
735
|
export declare const TurnSteerResponseSchema: z.ZodObject<{
|
|
736
736
|
status: z.ZodEnum<{
|
|
737
|
-
steered: "steered";
|
|
738
737
|
queued: "queued";
|
|
738
|
+
steered: "steered";
|
|
739
739
|
}>;
|
|
740
740
|
}, z.core.$strict>;
|
|
741
741
|
export type TurnSteerResponse = z.infer<typeof TurnSteerResponseSchema>;
|
|
@@ -836,9 +836,9 @@ export declare const SessionWorkspaceCapabilitiesResponseSchema: z.ZodObject<{
|
|
|
836
836
|
scope: z.ZodLiteral<"turn">;
|
|
837
837
|
answerModes: z.ZodTuple<[z.ZodLiteral<"single">, z.ZodLiteral<"multiple">, z.ZodLiteral<"free-text">], null>;
|
|
838
838
|
cancellation: z.ZodEnum<{
|
|
839
|
+
"native-cancel": "native-cancel";
|
|
839
840
|
"native-empty-answer": "native-empty-answer";
|
|
840
841
|
"native-reject": "native-reject";
|
|
841
|
-
"native-cancel": "native-cancel";
|
|
842
842
|
}>;
|
|
843
843
|
maxQuestions: z.ZodNumber;
|
|
844
844
|
maxChoicesPerQuestion: z.ZodNumber;
|
|
@@ -994,9 +994,9 @@ export declare const GuestRuntimeCapabilitiesResponseSchema: z.ZodObject<{
|
|
|
994
994
|
scope: z.ZodLiteral<"turn">;
|
|
995
995
|
answerModes: z.ZodTuple<[z.ZodLiteral<"single">, z.ZodLiteral<"multiple">, z.ZodLiteral<"free-text">], null>;
|
|
996
996
|
cancellation: z.ZodEnum<{
|
|
997
|
+
"native-cancel": "native-cancel";
|
|
997
998
|
"native-empty-answer": "native-empty-answer";
|
|
998
999
|
"native-reject": "native-reject";
|
|
999
|
-
"native-cancel": "native-cancel";
|
|
1000
1000
|
}>;
|
|
1001
1001
|
maxQuestions: z.ZodNumber;
|
|
1002
1002
|
maxChoicesPerQuestion: z.ZodNumber;
|
|
@@ -1018,13 +1018,13 @@ export declare const GuestRuntimeCapabilitiesResponseSchema: z.ZodObject<{
|
|
|
1018
1018
|
maxPending: z.ZodNumber;
|
|
1019
1019
|
choices: z.ZodArray<z.ZodObject<{
|
|
1020
1020
|
value: z.ZodEnum<{
|
|
1021
|
+
deny: "deny";
|
|
1021
1022
|
once: "once";
|
|
1022
1023
|
session: "session";
|
|
1023
|
-
deny: "deny";
|
|
1024
1024
|
}>;
|
|
1025
1025
|
scope: z.ZodEnum<{
|
|
1026
|
-
session: "session";
|
|
1027
1026
|
request: "request";
|
|
1027
|
+
session: "session";
|
|
1028
1028
|
}>;
|
|
1029
1029
|
}, z.core.$strict>>;
|
|
1030
1030
|
}, z.core.$strict>;
|
|
@@ -1069,9 +1069,9 @@ export declare const SessionContextResponseSchema: z.ZodObject<{
|
|
|
1069
1069
|
maxTokens: z.ZodNumber;
|
|
1070
1070
|
estimated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1071
1071
|
source: z.ZodEnum<{
|
|
1072
|
+
"local-estimate": "local-estimate";
|
|
1072
1073
|
"provider-usage": "provider-usage";
|
|
1073
1074
|
"provider-usage-plus-estimate": "provider-usage-plus-estimate";
|
|
1074
|
-
"local-estimate": "local-estimate";
|
|
1075
1075
|
}>;
|
|
1076
1076
|
breakdown: z.ZodOptional<z.ZodObject<{
|
|
1077
1077
|
systemTokens: z.ZodNumber;
|
|
@@ -1097,8 +1097,8 @@ export declare const ArtifactDescriptorSchema: z.ZodObject<{
|
|
|
1097
1097
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1098
1098
|
type: z.ZodLiteral<"inline">;
|
|
1099
1099
|
encoding: z.ZodEnum<{
|
|
1100
|
-
utf8: "utf8";
|
|
1101
1100
|
base64: "base64";
|
|
1101
|
+
utf8: "utf8";
|
|
1102
1102
|
}>;
|
|
1103
1103
|
data: z.ZodString;
|
|
1104
1104
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1116,9 +1116,9 @@ export declare const SessionTodosResponseSchema: z.ZodObject<{
|
|
|
1116
1116
|
label: z.ZodString;
|
|
1117
1117
|
status: z.ZodEnum<{
|
|
1118
1118
|
active: "active";
|
|
1119
|
+
completed: "completed";
|
|
1119
1120
|
failed: "failed";
|
|
1120
1121
|
pending: "pending";
|
|
1121
|
-
completed: "completed";
|
|
1122
1122
|
}>;
|
|
1123
1123
|
}, z.core.$strict>>;
|
|
1124
1124
|
}, z.core.$strict>;
|
|
@@ -1126,8 +1126,8 @@ export type SessionTodosResponse = z.infer<typeof SessionTodosResponseSchema>;
|
|
|
1126
1126
|
export declare const SessionActivityResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1127
1127
|
status: z.ZodLiteral<"unavailable">;
|
|
1128
1128
|
reason: z.ZodEnum<{
|
|
1129
|
-
"session-not-resumed": "session-not-resumed";
|
|
1130
1129
|
"session-idle": "session-idle";
|
|
1130
|
+
"session-not-resumed": "session-not-resumed";
|
|
1131
1131
|
"session-state-unavailable": "session-state-unavailable";
|
|
1132
1132
|
}>;
|
|
1133
1133
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -1135,9 +1135,9 @@ export declare const SessionActivityResponseSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1135
1135
|
scope: z.ZodLiteral<"active-session">;
|
|
1136
1136
|
coverage: z.ZodLiteral<"active-session-only">;
|
|
1137
1137
|
state: z.ZodEnum<{
|
|
1138
|
-
unknown: "unknown";
|
|
1139
1138
|
idle: "idle";
|
|
1140
1139
|
running: "running";
|
|
1140
|
+
unknown: "unknown";
|
|
1141
1141
|
"waiting-for-input": "waiting-for-input";
|
|
1142
1142
|
}>;
|
|
1143
1143
|
}, z.core.$strict>], "status">;
|
|
@@ -1201,19 +1201,19 @@ export declare const SessionSpeechRequestSchema: z.ZodObject<{
|
|
|
1201
1201
|
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
1202
1202
|
error: z.ZodObject<{
|
|
1203
1203
|
code: z.ZodEnum<{
|
|
1204
|
-
unauthenticated: "unauthenticated";
|
|
1205
1204
|
forbidden: "forbidden";
|
|
1205
|
+
internal_error: "internal_error";
|
|
1206
1206
|
invalid_request: "invalid_request";
|
|
1207
1207
|
not_found: "not_found";
|
|
1208
|
-
revision_conflict: "revision_conflict";
|
|
1209
|
-
unsupported: "unsupported";
|
|
1210
|
-
turn_conflict: "turn_conflict";
|
|
1211
|
-
turn_capacity_exceeded: "turn_capacity_exceeded";
|
|
1212
1208
|
registration_limit_exceeded: "registration_limit_exceeded";
|
|
1209
|
+
revision_conflict: "revision_conflict";
|
|
1213
1210
|
runtime_authentication_required: "runtime_authentication_required";
|
|
1214
1211
|
temporarily_unavailable: "temporarily_unavailable";
|
|
1212
|
+
turn_capacity_exceeded: "turn_capacity_exceeded";
|
|
1213
|
+
turn_conflict: "turn_conflict";
|
|
1214
|
+
unauthenticated: "unauthenticated";
|
|
1215
1215
|
uncertain_mutation: "uncertain_mutation";
|
|
1216
|
-
|
|
1216
|
+
unsupported: "unsupported";
|
|
1217
1217
|
}>;
|
|
1218
1218
|
description: z.ZodString;
|
|
1219
1219
|
}, z.core.$strict>;
|
package/dist/protocol/push.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import { z } from "zod";
|
|
|
9
9
|
* encrypted message is padded to one size.
|
|
10
10
|
*/
|
|
11
11
|
export declare const PushCategorySchema: z.ZodEnum<{
|
|
12
|
-
input: "input";
|
|
13
|
-
failure: "failure";
|
|
14
12
|
completion: "completion";
|
|
13
|
+
failure: "failure";
|
|
14
|
+
input: "input";
|
|
15
15
|
}>;
|
|
16
16
|
export type PushCategory = z.infer<typeof PushCategorySchema>;
|
|
17
17
|
/** Which category, if any, an execution or Agent lifecycle event notifies as. */
|
|
@@ -54,9 +54,9 @@ export declare const PUSH_TEXT_LIMITS: {
|
|
|
54
54
|
export declare const PushMessageSchema: z.ZodObject<{
|
|
55
55
|
v: z.ZodLiteral<2>;
|
|
56
56
|
category: z.ZodEnum<{
|
|
57
|
-
input: "input";
|
|
58
|
-
failure: "failure";
|
|
59
57
|
completion: "completion";
|
|
58
|
+
failure: "failure";
|
|
59
|
+
input: "input";
|
|
60
60
|
}>;
|
|
61
61
|
agentId: z.ZodString;
|
|
62
62
|
sessionId: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-gw/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A gateway that puts Hermes, OpenClaw, and OpenCode behind one ACP WebSocket, and the browser client and protocol SDK for it.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"gateway": "bun run src/cli.ts",
|
|
29
29
|
"serve": "bun run src/cli.ts serve",
|
|
30
|
-
"lint": "
|
|
31
|
-
"format": "
|
|
30
|
+
"lint": "oxlint",
|
|
31
|
+
"format": "oxfmt \"**/*.ts\"",
|
|
32
|
+
"format:check": "oxfmt --check \"**/*.ts\"",
|
|
32
33
|
"typecheck": "tsc -p tsconfig.gateway.json && tsc -p tsconfig.gateway-tests.json && tsc -p tsconfig.lifecycle.json && tsc -p tsconfig.client.json && tsc -p tsconfig.client-tests.json",
|
|
33
34
|
"test": "vitest run --project !gate",
|
|
34
35
|
"test:gate": "vitest run --project gate",
|
|
@@ -49,7 +50,6 @@
|
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@agentclientprotocol/sdk": "1.8.0",
|
|
51
52
|
"@block65/webcrypto-web-push": "^2.0.0",
|
|
52
|
-
"@eslint/js": "10",
|
|
53
53
|
"@modelcontextprotocol/client": "2.3.1",
|
|
54
54
|
"@modelcontextprotocol/core": "2.3.1",
|
|
55
55
|
"@modelcontextprotocol/server": "2.3.1",
|
|
@@ -61,15 +61,14 @@
|
|
|
61
61
|
"@types/ms": "2.1.0",
|
|
62
62
|
"@types/node": "^26",
|
|
63
63
|
"commander": "15.0.0",
|
|
64
|
-
"eslint": "^10",
|
|
65
|
-
"globals": "^17.12.0",
|
|
66
64
|
"hono": "4.13.13",
|
|
67
65
|
"ipaddr.js": "^2.5.0",
|
|
68
66
|
"jose": "6.2.12",
|
|
69
67
|
"ms": "2.1.3",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
68
|
+
"oxfmt": "^0.72.0",
|
|
69
|
+
"oxlint": "^1.87.0",
|
|
70
|
+
"oxlint-tsgolint": "^7.0.2004",
|
|
71
|
+
"typescript": "^7.0.2",
|
|
73
72
|
"vitest": "^5.0.4",
|
|
74
73
|
"yaml": "2.9.1",
|
|
75
74
|
"zod": "4.6.6"
|