@harness-gw/sdk 0.16.1 → 0.18.0

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.
@@ -1,4 +1,4 @@
1
- import type { UnknownVariant } from "@agentclientprotocol/sdk/experimental/v2";
1
+ import type { UnknownVariant } from "@agentclientprotocol/sdk/experimental/v2/unstable";
2
2
  import { z } from "zod";
3
3
  import { type ArtifactDescriptor } from "./index.js";
4
4
  /**
@@ -263,10 +263,190 @@ export declare const HgwHistoryPageTagSchema: z.ZodObject<{
263
263
  cursor: z.ZodString;
264
264
  }, z.core.$strip>>;
265
265
  }, z.core.$strip>;
266
+ /**
267
+ * `_meta.hgw` of a `session/new`, `session/fork`, or `session/resume` answer:
268
+ * the Session's capabilities, beside the answer's own `availableCommands` as
269
+ * `available_commands_update._meta.hgw` carries them beside its commands
270
+ * (`HgwAvailableCommandsMetaSchema`), in the same shape. A client reads it
271
+ * apart from the rest of a resume's `_meta.hgw`, so a capability it cannot
272
+ * read costs only the capabilities, never the join.
273
+ */
274
+ export declare const HgwSessionSetupResponseMetaSchema: z.ZodObject<{
275
+ capabilities: z.ZodObject<{
276
+ workspace: z.ZodObject<{
277
+ slashCommands: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
278
+ status: z.ZodLiteral<"available">;
279
+ scope: z.ZodLiteral<"session">;
280
+ commands: z.ZodArray<z.ZodObject<{
281
+ name: z.ZodString;
282
+ description: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>>;
284
+ }, z.core.$strict>, z.ZodObject<{
285
+ status: z.ZodLiteral<"unavailable">;
286
+ reason: z.ZodString;
287
+ }, z.core.$strict>]>>>;
288
+ models: z.ZodUnion<readonly [z.ZodObject<{
289
+ status: z.ZodLiteral<"available">;
290
+ scope: z.ZodLiteral<"session">;
291
+ selection: z.ZodLiteral<"native-session">;
292
+ choices: z.ZodLiteral<"provider-reported">;
293
+ }, z.core.$strict>, z.ZodObject<{
294
+ status: z.ZodLiteral<"unavailable">;
295
+ reason: z.ZodString;
296
+ }, z.core.$strict>]>;
297
+ context: z.ZodUnion<readonly [z.ZodObject<{
298
+ status: z.ZodLiteral<"available">;
299
+ scope: z.ZodLiteral<"session">;
300
+ source: z.ZodLiteral<"provider-usage-or-estimate">;
301
+ breakdown: z.ZodLiteral<"provider-categories">;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ status: z.ZodLiteral<"unavailable">;
304
+ reason: z.ZodString;
305
+ }, z.core.$strict>]>;
306
+ todos: z.ZodUnion<readonly [z.ZodObject<{
307
+ status: z.ZodLiteral<"available">;
308
+ scope: z.ZodLiteral<"session">;
309
+ mode: z.ZodLiteral<"read-only-projection">;
310
+ source: z.ZodLiteral<"latest-completed-todo-tool-result">;
311
+ }, z.core.$strict>, z.ZodObject<{
312
+ status: z.ZodLiteral<"unavailable">;
313
+ reason: z.ZodString;
314
+ }, z.core.$strict>]>;
315
+ activity: z.ZodUnion<readonly [z.ZodObject<{
316
+ status: z.ZodLiteral<"available">;
317
+ scope: z.ZodLiteral<"active-session">;
318
+ coverage: z.ZodLiteral<"active-session-only">;
319
+ source: z.ZodLiteral<"provider-session-state">;
320
+ }, z.core.$strict>, z.ZodObject<{
321
+ status: z.ZodLiteral<"unavailable">;
322
+ reason: z.ZodString;
323
+ }, z.core.$strict>]>;
324
+ }, z.core.$strict>;
325
+ interactions: z.ZodObject<{
326
+ steering: z.ZodUnion<readonly [z.ZodObject<{
327
+ status: z.ZodLiteral<"available">;
328
+ scope: z.ZodLiteral<"active-turn">;
329
+ semantics: z.ZodLiteral<"visible-user-message">;
330
+ input: z.ZodLiteral<"text">;
331
+ fallback: z.ZodLiteral<"provider-queue">;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ status: z.ZodLiteral<"unavailable">;
334
+ reason: z.ZodString;
335
+ }, z.core.$strict>]>;
336
+ rewind: z.ZodUnion<readonly [z.ZodObject<{
337
+ status: z.ZodLiteral<"available">;
338
+ scope: z.ZodLiteral<"user-turn">;
339
+ }, z.core.$strict>, z.ZodObject<{
340
+ status: z.ZodLiteral<"unavailable">;
341
+ reason: z.ZodString;
342
+ }, z.core.$strict>]>;
343
+ approvals: z.ZodObject<{
344
+ status: z.ZodLiteral<"available">;
345
+ protocol: z.ZodLiteral<"acp-request">;
346
+ scope: z.ZodLiteral<"turn">;
347
+ choices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
348
+ value: z.ZodLiteral<"once">;
349
+ scope: z.ZodLiteral<"request">;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ value: z.ZodLiteral<"session">;
352
+ scope: z.ZodLiteral<"session">;
353
+ }, z.core.$strict>, z.ZodObject<{
354
+ value: z.ZodLiteral<"always">;
355
+ scope: z.ZodLiteral<"agent">;
356
+ }, z.core.$strict>, z.ZodObject<{
357
+ value: z.ZodLiteral<"deny">;
358
+ scope: z.ZodLiteral<"request">;
359
+ }, z.core.$strict>], "value">>;
360
+ maxPending: z.ZodNumber;
361
+ }, z.core.$strict>;
362
+ questions: z.ZodObject<{
363
+ status: z.ZodLiteral<"available">;
364
+ protocol: z.ZodLiteral<"acp-request">;
365
+ scope: z.ZodLiteral<"turn">;
366
+ answerModes: z.ZodTuple<[z.ZodLiteral<"single">, z.ZodLiteral<"multiple">, z.ZodLiteral<"free-text">], null>;
367
+ cancellation: z.ZodEnum<{
368
+ "native-cancel": "native-cancel";
369
+ "native-empty-answer": "native-empty-answer";
370
+ "native-reject": "native-reject";
371
+ }>;
372
+ maxQuestions: z.ZodNumber;
373
+ maxChoicesPerQuestion: z.ZodNumber;
374
+ maxAnswerValuesPerQuestion: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"complete-request">]>;
375
+ maxStringBytes: z.ZodNumber;
376
+ }, z.core.$strict>;
377
+ reactions: z.ZodObject<{
378
+ status: z.ZodLiteral<"unavailable">;
379
+ reason: z.ZodString;
380
+ }, z.core.$strict>;
381
+ }, z.core.$strict>;
382
+ content: z.ZodObject<{
383
+ attachments: z.ZodUnion<readonly [z.ZodObject<{
384
+ status: z.ZodLiteral<"available">;
385
+ scope: z.ZodLiteral<"session">;
386
+ inputs: z.ZodTuple<[z.ZodLiteral<"image">, z.ZodLiteral<"file">], null>;
387
+ imageMimeTypes: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"provider-dependent">]>;
388
+ fileMimeTypes: z.ZodEnum<{
389
+ "provider-dependent": "provider-dependent";
390
+ "valid-type/subtype": "valid-type/subtype";
391
+ }>;
392
+ maxMimeTypeBytes: z.ZodNumber;
393
+ maxFilenameBytes: z.ZodNumber;
394
+ maxCount: z.ZodNumber;
395
+ maxImageBytes: z.ZodNumber;
396
+ maxFileBytes: z.ZodNumber;
397
+ maxTotalBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"complete-request">]>;
398
+ maxEncodedRequestBytes: z.ZodOptional<z.ZodNumber>;
399
+ completeRequestValidation: z.ZodOptional<z.ZodLiteral<"native-run-input">>;
400
+ }, z.core.$strict>, z.ZodObject<{
401
+ status: z.ZodLiteral<"unavailable">;
402
+ reason: z.ZodString;
403
+ }, z.core.$strict>]>;
404
+ artifacts: z.ZodUnion<readonly [z.ZodObject<{
405
+ status: z.ZodLiteral<"available">;
406
+ scope: z.ZodLiteral<"session">;
407
+ maxBytes: z.ZodNumber;
408
+ }, z.core.$strict>, z.ZodObject<{
409
+ status: z.ZodLiteral<"unavailable">;
410
+ reason: z.ZodString;
411
+ }, z.core.$strict>]>;
412
+ mcpApps: z.ZodUnion<readonly [z.ZodObject<{
413
+ status: z.ZodLiteral<"available">;
414
+ scope: z.ZodLiteral<"session">;
415
+ maxBytes: z.ZodNumber;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ status: z.ZodLiteral<"unavailable">;
418
+ reason: z.ZodString;
419
+ }, z.core.$strict>]>;
420
+ transcription: z.ZodUnion<readonly [z.ZodObject<{
421
+ status: z.ZodLiteral<"available">;
422
+ scope: z.ZodLiteral<"agent">;
423
+ acceptedMimeTypes: z.ZodArray<z.ZodString>;
424
+ mimeParameter: z.ZodLiteral<"codecs">;
425
+ codecValues: z.ZodArray<z.ZodString>;
426
+ maxRecordingBytes: z.ZodNumber;
427
+ maxTranscriptBytes: z.ZodNumber;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ status: z.ZodLiteral<"unavailable">;
430
+ reason: z.ZodString;
431
+ }, z.core.$strict>]>;
432
+ speech: z.ZodUnion<readonly [z.ZodObject<{
433
+ status: z.ZodLiteral<"available">;
434
+ scope: z.ZodLiteral<"agent">;
435
+ acceptedMimeTypes: z.ZodArray<z.ZodString>;
436
+ maxTextBytes: z.ZodNumber;
437
+ maxAudioBytes: z.ZodNumber;
438
+ }, z.core.$strict>, z.ZodObject<{
439
+ status: z.ZodLiteral<"unavailable">;
440
+ reason: z.ZodString;
441
+ }, z.core.$strict>]>;
442
+ }, z.core.$strict>;
443
+ }, z.core.$strict>;
444
+ }, z.core.$strip>;
266
445
  /**
267
446
  * `ResumeSessionResponse._meta.hgw`. `position` is the turn and sequence the
268
447
  * joined Session's stream stands at, which a later resume continues from.
269
- * The Session's row, execution, models and capabilities follow the answer as
448
+ * The capabilities `HgwSessionSetupResponseMetaSchema` reads ride in the same
449
+ * `_meta.hgw`; the Session's row, execution and usage follow the answer as
270
450
  * updates.
271
451
  */
272
452
  export declare const HgwSessionResumeResponseMetaSchema: z.ZodObject<{
@@ -355,7 +355,7 @@ export declare const MCP_APP_SANDBOX_PATH = "/mcp-app-sandbox.html";
355
355
  export type McpAppSandboxPolicyInput = {
356
356
  /**
357
357
  * The exact origins of the host's own pages, the only ones that may frame
358
- * the sandbox page.
358
+ * the sandbox page (`isMcpAppFramingOrigin`).
359
359
  */
360
360
  frameAncestors: readonly string[];
361
361
  /** The exact origin the sandbox page is served from. */
@@ -366,18 +366,33 @@ export type McpAppSandboxPolicyInput = {
366
366
  fileLocations?: readonly string[] | undefined;
367
367
  };
368
368
  /**
369
- * Whether a sandbox policy can name `value` as a framing page or as the
370
- * sandbox: an `http(s)` origin exactly as `URL` writes it, whose host is a name
371
- * or an IPv4 address. `mcpAppSandboxPolicy` throws for any other, so a host
372
- * checks its settings with this once, before it serves a view.
369
+ * Whether a sandbox policy can name `value` as the sandbox, or as a framing
370
+ * page served from the network: an `http(s)` origin exactly as `URL` writes
371
+ * it, whose host is a name or an IPv4 address. `mcpAppSandboxPolicy` throws for
372
+ * any other sandbox origin, so a host checks its settings with this once,
373
+ * before it serves a view.
373
374
  */
374
375
  export declare function isMcpAppPolicyOrigin(value: string): boolean;
376
+ /**
377
+ * The origin of the pages an app bundles and serves itself, from no network
378
+ * origin: the one framing page a sandbox policy names that is no `http(s)`
379
+ * origin. `URL` reads it as the opaque origin `null`, so it is matched as this
380
+ * exact string. It is never the sandbox, never a file location, and names no
381
+ * host, so no declared domain is dropped for naming it.
382
+ */
383
+ export declare const MCP_APP_BUNDLED_PAGE_ORIGIN = "tauri://localhost";
384
+ /**
385
+ * Whether a sandbox policy can name `value` as a framing page: an origin
386
+ * `isMcpAppPolicyOrigin` admits, or exactly `MCP_APP_BUNDLED_PAGE_ORIGIN`.
387
+ * `mcpAppSandboxPolicy` throws for any other.
388
+ */
389
+ export declare function isMcpAppFramingOrigin(value: string): boolean;
375
390
  /**
376
391
  * The domains a view's sandbox policy applies, per `_meta.ui.csp` list, as a
377
392
  * host reports them in `hostCapabilities.sandbox.csp`: those
378
393
  * `isMcpAppCspDomain` admits, lowercased and once each, without any that names
379
- * the host and port of a framing page or of the sandbox itself, whatever its
380
- * scheme. `undefined` when it applies none. Throws as `mcpAppSandboxPolicy`
394
+ * the host and port of an `http(s)` framing page or of the sandbox itself,
395
+ * whatever its scheme. `undefined` when it applies none. Throws as `mcpAppSandboxPolicy`
381
396
  * does for the origins.
382
397
  */
383
398
  export declare function appliedMcpAppCsp({ csp, ...origins }: Omit<McpAppSandboxPolicyInput, "fileLocations">): McpUiCsp | undefined;
@@ -390,9 +405,10 @@ export declare function appliedMcpAppCsp({ csp, ...origins }: Omit<McpAppSandbox
390
405
  * document renderer's decoders do.
391
406
  *
392
407
  * Anyone can ask for a sandbox page with any query, so every value is checked
393
- * before it is written: an ancestor or a sandbox origin that is no exact
394
- * origin (`isMcpAppPolicyOrigin`) throws, as does a sandbox origin among the
408
+ * before it is written: an ancestor that is no framing origin
409
+ * (`isMcpAppFramingOrigin`) or a sandbox origin that is no exact origin
410
+ * (`isMcpAppPolicyOrigin`) throws, as does a sandbox origin among the
395
411
  * ancestors, and a domain or a file location its rule refuses is dropped. A
396
- * file location is kept only on a framing page's origin.
412
+ * file location is kept only on an `http(s)` framing page's origin.
397
413
  */
398
414
  export declare function mcpAppSandboxPolicy({ fileLocations, ...view }: McpAppSandboxPolicyInput): string;
@@ -1,8 +1,9 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * Web Push contract shared by the browser, the service worker, and the gateway.
4
- * One message is about one Session. It always carries the category, the Agent
5
- * and Session ids, when the Session's newest event happened, and the device
3
+ * Push contract shared by the browser, the service worker, and the gateway. A
4
+ * device registers through one transport, Web Push or APNs. One Web Push
5
+ * message is about one Session. It always carries the category, the Agent and
6
+ * Session ids, when the Session's newest event happened, and the device
6
7
  * locale. A device whose registration is under 30 days old may also get the
7
8
  * Agent's name, the Session's title, and a preview of what is asked: each one
8
9
  * line, cut to its `PUSH_TEXT_LIMITS` entry, with credentials masked. Every
@@ -87,16 +88,31 @@ export declare const PushSubscriptionJsonSchema: z.ZodObject<{
87
88
  }, z.core.$strict>;
88
89
  }, z.core.$strict>;
89
90
  export type PushSubscriptionJson = z.infer<typeof PushSubscriptionJsonSchema>;
90
- /** `GET /push` */
91
+ /**
92
+ * `GET /push`: `status` and `publicKey` are Web Push's, and `apns` says
93
+ * whether a device may register through APNs.
94
+ */
91
95
  export declare const PushInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ apns: z.ZodOptional<z.ZodLiteral<true>>;
92
97
  status: z.ZodLiteral<"not-configured">;
93
98
  }, z.core.$strict>, z.ZodObject<{
99
+ apns: z.ZodOptional<z.ZodLiteral<true>>;
94
100
  status: z.ZodLiteral<"available">;
95
101
  publicKey: z.ZodString;
96
102
  }, z.core.$strict>], "status">;
97
103
  export type PushInfo = z.infer<typeof PushInfoSchema>;
98
- /** `PUT /push/subscriptions` */
99
- export declare const PushRegistrationSchema: z.ZodObject<{
104
+ /** A browser's registration; one that names no `transport` is this one. */
105
+ export declare const WebPushRegistrationSchema: z.ZodObject<{
106
+ locale: z.ZodEnum<{
107
+ en: "en";
108
+ he: "he";
109
+ }>;
110
+ categories: z.ZodObject<{
111
+ input: z.ZodBoolean;
112
+ failure: z.ZodBoolean;
113
+ completion: z.ZodBoolean;
114
+ }, z.core.$strict>;
115
+ transport: z.ZodOptional<z.ZodLiteral<"web-push">>;
100
116
  subscription: z.ZodObject<{
101
117
  endpoint: z.ZodString;
102
118
  expirationTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -105,6 +121,16 @@ export declare const PushRegistrationSchema: z.ZodObject<{
105
121
  auth: z.ZodString;
106
122
  }, z.core.$strict>;
107
123
  }, z.core.$strict>;
124
+ }, z.core.$strict>;
125
+ export type WebPushRegistration = z.infer<typeof WebPushRegistrationSchema>;
126
+ /** An APNs device token: 32 to 100 bytes as hex, in either case, kept lowercase. */
127
+ export declare const ApnsDeviceTokenSchema: z.ZodString;
128
+ /**
129
+ * A device's APNs registration: its token, and the APNs environment that
130
+ * issued it. The topic and the credentials the gateway sends with are its own
131
+ * configuration, never a device's.
132
+ */
133
+ export declare const ApnsRegistrationSchema: z.ZodObject<{
108
134
  locale: z.ZodEnum<{
109
135
  en: "en";
110
136
  he: "he";
@@ -114,10 +140,58 @@ export declare const PushRegistrationSchema: z.ZodObject<{
114
140
  failure: z.ZodBoolean;
115
141
  completion: z.ZodBoolean;
116
142
  }, z.core.$strict>;
143
+ transport: z.ZodLiteral<"apns">;
144
+ token: z.ZodString;
145
+ environment: z.ZodEnum<{
146
+ production: "production";
147
+ sandbox: "sandbox";
148
+ }>;
117
149
  }, z.core.$strict>;
150
+ export type ApnsRegistration = z.infer<typeof ApnsRegistrationSchema>;
151
+ /** `PUT /push/subscriptions`: one device, by its transport. */
152
+ export declare const PushRegistrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
153
+ locale: z.ZodEnum<{
154
+ en: "en";
155
+ he: "he";
156
+ }>;
157
+ categories: z.ZodObject<{
158
+ input: z.ZodBoolean;
159
+ failure: z.ZodBoolean;
160
+ completion: z.ZodBoolean;
161
+ }, z.core.$strict>;
162
+ transport: z.ZodOptional<z.ZodLiteral<"web-push">>;
163
+ subscription: z.ZodObject<{
164
+ endpoint: z.ZodString;
165
+ expirationTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
166
+ keys: z.ZodObject<{
167
+ p256dh: z.ZodString;
168
+ auth: z.ZodString;
169
+ }, z.core.$strict>;
170
+ }, z.core.$strict>;
171
+ }, z.core.$strict>, z.ZodObject<{
172
+ locale: z.ZodEnum<{
173
+ en: "en";
174
+ he: "he";
175
+ }>;
176
+ categories: z.ZodObject<{
177
+ input: z.ZodBoolean;
178
+ failure: z.ZodBoolean;
179
+ completion: z.ZodBoolean;
180
+ }, z.core.$strict>;
181
+ transport: z.ZodLiteral<"apns">;
182
+ token: z.ZodString;
183
+ environment: z.ZodEnum<{
184
+ production: "production";
185
+ sandbox: "sandbox";
186
+ }>;
187
+ }, z.core.$strict>], "transport">;
118
188
  export type PushRegistration = z.infer<typeof PushRegistrationSchema>;
119
- /** `DELETE /push/subscriptions` */
120
- export declare const PushUnregistrationSchema: z.ZodObject<{
189
+ /** `DELETE /push/subscriptions`: one device, by its transport's own key. */
190
+ export declare const PushUnregistrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ transport: z.ZodOptional<z.ZodLiteral<"web-push">>;
121
192
  endpoint: z.ZodString;
122
- }, z.core.$strict>;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ transport: z.ZodLiteral<"apns">;
195
+ token: z.ZodString;
196
+ }, z.core.$strict>], "transport">;
123
197
  export type PushUnregistration = z.infer<typeof PushUnregistrationSchema>;
@@ -17,6 +17,8 @@ import {
17
17
  McpAppFileReadErrorDataSchema2,
18
18
  MCP_APP_SANDBOX_PATH2,
19
19
  isMcpAppPolicyOrigin2,
20
+ MCP_APP_BUNDLED_PAGE_ORIGIN2,
21
+ isMcpAppFramingOrigin2,
20
22
  appliedMcpAppCsp2,
21
23
  mcpAppSandboxPolicy2,
22
24
  SESSION_CATALOG_MAX_WINDOW2,
@@ -106,6 +108,7 @@ import {
106
108
  HgwHistoryCursorSchema2,
107
109
  HgwHistoryPageResponseMetaSchema2,
108
110
  HgwHistoryPageTagSchema2,
111
+ HgwSessionSetupResponseMetaSchema2,
109
112
  HgwSessionResumeResponseMetaSchema2,
110
113
  HgwPromptMetaSchema2,
111
114
  HgwSessionUpdateRequestSchema2,
@@ -151,6 +154,9 @@ import {
151
154
  PushCategoriesSchema2,
152
155
  PushSubscriptionJsonSchema2,
153
156
  PushInfoSchema2,
157
+ WebPushRegistrationSchema2,
158
+ ApnsDeviceTokenSchema2,
159
+ ApnsRegistrationSchema2,
154
160
  PushRegistrationSchema2,
155
161
  PushUnregistrationSchema2
156
162
  } from "../chunks/index.js";
@@ -212,6 +218,8 @@ export {
212
218
  AgentUpdateFields2 as AgentUpdateFields,
213
219
  AgentUpdateRequestSchema2 as AgentUpdateRequestSchema,
214
220
  AgentUpdateResponseSchema2 as AgentUpdateResponseSchema,
221
+ ApnsDeviceTokenSchema2 as ApnsDeviceTokenSchema,
222
+ ApnsRegistrationSchema2 as ApnsRegistrationSchema,
215
223
  ArtifactDescriptorSchema2 as ArtifactDescriptorSchema,
216
224
  COALESCE_WINDOW_MS2 as COALESCE_WINDOW_MS,
217
225
  CallToolResultSchema2 as CallToolResultSchema,
@@ -273,6 +281,7 @@ export {
273
281
  HgwSessionResumeResponseMetaSchema2 as HgwSessionResumeResponseMetaSchema,
274
282
  HgwSessionSearchMetaSchema2 as HgwSessionSearchMetaSchema,
275
283
  HgwSessionSearchResponseSchema2 as HgwSessionSearchResponseSchema,
284
+ HgwSessionSetupResponseMetaSchema2 as HgwSessionSetupResponseMetaSchema,
276
285
  HgwSessionUpdateRequestSchema2 as HgwSessionUpdateRequestSchema,
277
286
  HgwStateMetaSchema2 as HgwStateMetaSchema,
278
287
  HgwSteerRequestSchema2 as HgwSteerRequestSchema,
@@ -288,6 +297,7 @@ export {
288
297
  MAX_SPEECH_BYTES,
289
298
  MAX_SPEECH_TEXT_BYTES,
290
299
  MAX_TRANSCRIPT_BYTES,
300
+ MCP_APP_BUNDLED_PAGE_ORIGIN2 as MCP_APP_BUNDLED_PAGE_ORIGIN,
291
301
  MCP_APP_SANDBOX_PATH2 as MCP_APP_SANDBOX_PATH,
292
302
  McpAppFileReadErrorDataSchema2 as McpAppFileReadErrorDataSchema,
293
303
  McpAppFileReadFailureSchema2 as McpAppFileReadFailureSchema,
@@ -355,11 +365,13 @@ export {
355
365
  TurnSteerRequestSchema2 as TurnSteerRequestSchema,
356
366
  TurnSteerResponseSchema2 as TurnSteerResponseSchema,
357
367
  TurnStopResponseSchema2 as TurnStopResponseSchema,
368
+ WebPushRegistrationSchema2 as WebPushRegistrationSchema,
358
369
  appliedMcpAppCsp2 as appliedMcpAppCsp,
359
370
  categoryOf2 as categoryOf,
360
371
  formatArtifactUri2 as formatArtifactUri,
361
372
  hgwAcpAgentPath2 as hgwAcpAgentPath,
362
373
  isMcpAppCspDomain2 as isMcpAppCspDomain,
374
+ isMcpAppFramingOrigin2 as isMcpAppFramingOrigin,
363
375
  isMcpAppPolicyOrigin2 as isMcpAppPolicyOrigin,
364
376
  mcpAppSandboxPolicy2 as mcpAppSandboxPolicy,
365
377
  newestSessionFirst2 as newestSessionFirst,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-gw/sdk",
3
- "version": "0.16.1",
3
+ "version": "0.18.0",
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",
@@ -47,16 +47,16 @@
47
47
  "xstate": "5.33.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "@agentclientprotocol/sdk": "^1.5.0",
50
+ "@agentclientprotocol/sdk": "2.7.0",
51
51
  "@modelcontextprotocol/core": "^2.3.1",
52
52
  "zod": "^4.5.4"
53
53
  },
54
54
  "devDependencies": {
55
- "@agentclientprotocol/sdk": "1.8.0",
55
+ "@agentclientprotocol/sdk": "2.7.0",
56
56
  "@block65/webcrypto-web-push": "^2.0.0",
57
- "@modelcontextprotocol/client": "2.3.1",
58
- "@modelcontextprotocol/core": "2.3.1",
59
- "@modelcontextprotocol/server": "2.3.1",
57
+ "@modelcontextprotocol/client": "2.4.0",
58
+ "@modelcontextprotocol/core": "2.4.0",
59
+ "@modelcontextprotocol/server": "2.4.0",
60
60
  "@openclaw/gateway-client": "2026.10.2",
61
61
  "@openclaw/gateway-protocol": "2026.10.2",
62
62
  "@opencode-ai/sdk": "1.19.0",