@agentknight/sdk 0.9.69 → 0.9.72
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/chunks/{acp-adapter-VJ2OUSBS.js → acp-adapter-PCNN2NAJ.js} +7 -7
- package/dist/chunks/{chunk-LA6A4TUM.js → chunk-23BKGY5J.js} +4 -4
- package/dist/chunks/{chunk-J63A5OLO.js → chunk-2UHBY25U.js} +1 -1
- package/dist/chunks/{chunk-IRYEOV62.js → chunk-36KL4FSH.js} +2 -2
- package/dist/chunks/{chunk-2D34UDII.js → chunk-5BDFZ3AS.js} +4 -4
- package/dist/chunks/{chunk-F5YCEWE4.js → chunk-5FJJZCP6.js} +680 -629
- package/dist/chunks/{chunk-ES2N66EH.js → chunk-DXHAKWGO.js} +2 -2
- package/dist/chunks/{chunk-35OF2ZNS.js → chunk-E5VHBC55.js} +14 -0
- package/dist/chunks/{chunk-Q5NNNSU2.js → chunk-FQ26TSDG.js} +2 -2
- package/dist/chunks/{chunk-MH7FDSTY.js → chunk-GRUDMHEJ.js} +1 -1
- package/dist/chunks/{chunk-5QYL6NKJ.js → chunk-I42IONUU.js} +1 -1
- package/dist/chunks/{chunk-WAPJZKUK.js → chunk-KPHWVNKP.js} +1 -1
- package/dist/chunks/{chunk-LU73CEHE.js → chunk-PAJZL5ST.js} +7 -2
- package/dist/chunks/{chunk-ZAU2MYQI.js → chunk-TFUSRA2B.js} +2 -2
- package/dist/chunks/chunk-VEJLENEQ.js +174 -0
- package/dist/chunks/{chunk-MB34W52S.js → chunk-VOR4AECB.js} +3 -3
- package/dist/chunks/{claude-adapter-FZNLF5XN.js → claude-adapter-A4LPYQ2Z.js} +71 -211
- package/dist/chunks/{codex-adapter-5ZVOAT6O.js → codex-adapter-AFGS7MPX.js} +7 -7
- package/dist/chunks/{copilot-adapter-V6RAQ4WK.js → copilot-adapter-NXJTI2HY.js} +24 -68
- package/dist/chunks/{managed-agent-adapter-THUSTKRW.js → managed-agent-adapter-4C2PWD4V.js} +6 -6
- package/dist/chunks/{pi-adapter-EHCSR5I2.js → pi-adapter-EZOIK5RA.js} +6 -6
- package/dist/configuration.js +4 -4
- package/dist/index.d.ts +138 -0
- package/dist/index.js +163 -50
- package/dist/runtime.js +2 -2
- package/dist/session-analytics-worker.js +6 -6
- package/package.json +4 -5
- package/dist/chunks/chunk-T6226JFS.js +0 -55
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentSelectionSchema,
|
|
3
3
|
assertSelectionSnapshotFits
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TFUSRA2B.js";
|
|
5
5
|
import {
|
|
6
6
|
isResearchSessionId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I42IONUU.js";
|
|
8
8
|
import {
|
|
9
9
|
GroupChatError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FQ26TSDG.js";
|
|
11
11
|
import {
|
|
12
12
|
AgentModelListingError,
|
|
13
13
|
AgentSessionRenameError,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
UnsupportedAgentOperationError,
|
|
17
17
|
captureWorkbenchAccess,
|
|
18
18
|
validateSessionName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-36KL4FSH.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionOperationError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2UHBY25U.js";
|
|
23
23
|
import {
|
|
24
24
|
InteractionResponseSchema,
|
|
25
25
|
SessionSummarySchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5FJJZCP6.js";
|
|
27
27
|
|
|
28
28
|
// src/managed-agent-adapter.ts
|
|
29
29
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
stagePromptAttachments,
|
|
3
3
|
validatePromptAttachments
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-DXHAKWGO.js";
|
|
5
|
+
import "./chunk-E5VHBC55.js";
|
|
6
6
|
import {
|
|
7
7
|
decodeTimelineImage,
|
|
8
8
|
latestPreviewItems,
|
|
9
9
|
normalizeImageMimeType,
|
|
10
10
|
splitTimelineImages
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KPHWVNKP.js";
|
|
12
12
|
import {
|
|
13
13
|
AgentSessionRenameError,
|
|
14
14
|
SessionDeletionRejectedError,
|
|
15
15
|
UnsupportedAgentOperationError,
|
|
16
16
|
validateSessionName
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-36KL4FSH.js";
|
|
18
|
+
import "./chunk-2UHBY25U.js";
|
|
19
19
|
import {
|
|
20
20
|
ConversationAttachmentSchema,
|
|
21
21
|
InteractionRequestSchema,
|
|
22
22
|
REASONING_EFFORTS,
|
|
23
23
|
SESSION_TIMELINE_PAGE_SIZE
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5FJJZCP6.js";
|
|
25
25
|
|
|
26
26
|
// src/pi-adapter.ts
|
|
27
27
|
import { createHash as createHash2, randomUUID } from "node:crypto";
|
package/dist/configuration.js
CHANGED
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
} from "./chunks/chunk-VIWTNPVC.js";
|
|
6
6
|
import {
|
|
7
7
|
AgentSelectionSchema
|
|
8
|
-
} from "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-TFUSRA2B.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionImageRelayUrlSchema,
|
|
11
11
|
SessionImagesConfigSchema
|
|
12
12
|
} from "./chunks/chunk-IJPJQF7S.js";
|
|
13
13
|
import {
|
|
14
14
|
CODING_AGENT_IDS
|
|
15
|
-
} from "./chunks/chunk-
|
|
16
|
-
import "./chunks/chunk-
|
|
17
|
-
import "./chunks/chunk-
|
|
15
|
+
} from "./chunks/chunk-36KL4FSH.js";
|
|
16
|
+
import "./chunks/chunk-2UHBY25U.js";
|
|
17
|
+
import "./chunks/chunk-5FJJZCP6.js";
|
|
18
18
|
export {
|
|
19
19
|
AgentSelectionSchema,
|
|
20
20
|
CODING_AGENT_IDS,
|
package/dist/index.d.ts
CHANGED
|
@@ -204,6 +204,141 @@ declare const SecureDeliveryErrorSchema: z.ZodObject<{
|
|
|
204
204
|
}, z.core.$strict>;
|
|
205
205
|
type SecureDeliveryError = z.infer<typeof SecureDeliveryErrorSchema>;
|
|
206
206
|
|
|
207
|
+
declare const InventoryPublishSchema: z.ZodObject<{
|
|
208
|
+
requestMessageId: z.ZodString;
|
|
209
|
+
objectId: z.ZodUUID;
|
|
210
|
+
ticket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
version: z.ZodLiteral<1>;
|
|
212
|
+
algorithm: z.ZodLiteral<"A256GCM">;
|
|
213
|
+
messageId: z.ZodString;
|
|
214
|
+
machineId: z.ZodString;
|
|
215
|
+
clientId: z.ZodString;
|
|
216
|
+
recipientClientId: z.ZodOptional<z.ZodString>;
|
|
217
|
+
keyId: z.ZodString;
|
|
218
|
+
sentAt: z.ZodNumber;
|
|
219
|
+
nonce: z.ZodString;
|
|
220
|
+
ciphertext: z.ZodString;
|
|
221
|
+
sender: z.ZodLiteral<"pc">;
|
|
222
|
+
event: z.ZodEnum<{
|
|
223
|
+
"conversation.activity.step.upsert": "conversation.activity.step.upsert";
|
|
224
|
+
"conversation.item.upsert": "conversation.item.upsert";
|
|
225
|
+
"interaction.request": "interaction.request";
|
|
226
|
+
"interaction.respond.result": "interaction.respond.result";
|
|
227
|
+
"permission.request": "permission.request";
|
|
228
|
+
"permission.respond.result": "permission.respond.result";
|
|
229
|
+
"session.abort.result": "session.abort.result";
|
|
230
|
+
"session.activity": "session.activity";
|
|
231
|
+
"session.communication": "session.communication";
|
|
232
|
+
"session.configure.result": "session.configure.result";
|
|
233
|
+
"session.create.result": "session.create.result";
|
|
234
|
+
"session.delete.result": "session.delete.result";
|
|
235
|
+
"session.list.result": "session.list.result";
|
|
236
|
+
"session.options.result": "session.options.result";
|
|
237
|
+
"session.prompt.result": "session.prompt.result";
|
|
238
|
+
"session.remote.result": "session.remote.result";
|
|
239
|
+
"session.timeline.invalidated": "session.timeline.invalidated";
|
|
240
|
+
"session.timeline.page.result": "session.timeline.page.result";
|
|
241
|
+
"session.watch.result": "session.watch.result";
|
|
242
|
+
"sessions.snapshot": "sessions.snapshot";
|
|
243
|
+
}>;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
version: z.ZodLiteral<1>;
|
|
246
|
+
algorithm: z.ZodLiteral<"A256GCM">;
|
|
247
|
+
messageId: z.ZodString;
|
|
248
|
+
machineId: z.ZodString;
|
|
249
|
+
clientId: z.ZodString;
|
|
250
|
+
recipientClientId: z.ZodOptional<z.ZodString>;
|
|
251
|
+
keyId: z.ZodString;
|
|
252
|
+
sentAt: z.ZodNumber;
|
|
253
|
+
nonce: z.ZodString;
|
|
254
|
+
ciphertext: z.ZodString;
|
|
255
|
+
sender: z.ZodLiteral<"mobile">;
|
|
256
|
+
event: z.ZodEnum<{
|
|
257
|
+
"interaction.respond": "interaction.respond";
|
|
258
|
+
"permission.respond": "permission.respond";
|
|
259
|
+
"session.abort": "session.abort";
|
|
260
|
+
"session.communication": "session.communication";
|
|
261
|
+
"session.configure": "session.configure";
|
|
262
|
+
"session.create": "session.create";
|
|
263
|
+
"session.delete": "session.delete";
|
|
264
|
+
"session.list": "session.list";
|
|
265
|
+
"session.options": "session.options";
|
|
266
|
+
"session.prompt": "session.prompt";
|
|
267
|
+
"session.remote": "session.remote";
|
|
268
|
+
"session.timeline.page": "session.timeline.page";
|
|
269
|
+
"session.watch": "session.watch";
|
|
270
|
+
}>;
|
|
271
|
+
}, z.core.$strict>], "sender">;
|
|
272
|
+
ciphertext: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strict>;
|
|
274
|
+
type InventoryPublish = z.infer<typeof InventoryPublishSchema>;
|
|
275
|
+
declare const InventoryDeliverySchema: z.ZodObject<{
|
|
276
|
+
ticket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
|
+
version: z.ZodLiteral<1>;
|
|
278
|
+
algorithm: z.ZodLiteral<"A256GCM">;
|
|
279
|
+
messageId: z.ZodString;
|
|
280
|
+
machineId: z.ZodString;
|
|
281
|
+
clientId: z.ZodString;
|
|
282
|
+
recipientClientId: z.ZodOptional<z.ZodString>;
|
|
283
|
+
keyId: z.ZodString;
|
|
284
|
+
sentAt: z.ZodNumber;
|
|
285
|
+
nonce: z.ZodString;
|
|
286
|
+
ciphertext: z.ZodString;
|
|
287
|
+
sender: z.ZodLiteral<"pc">;
|
|
288
|
+
event: z.ZodEnum<{
|
|
289
|
+
"conversation.activity.step.upsert": "conversation.activity.step.upsert";
|
|
290
|
+
"conversation.item.upsert": "conversation.item.upsert";
|
|
291
|
+
"interaction.request": "interaction.request";
|
|
292
|
+
"interaction.respond.result": "interaction.respond.result";
|
|
293
|
+
"permission.request": "permission.request";
|
|
294
|
+
"permission.respond.result": "permission.respond.result";
|
|
295
|
+
"session.abort.result": "session.abort.result";
|
|
296
|
+
"session.activity": "session.activity";
|
|
297
|
+
"session.communication": "session.communication";
|
|
298
|
+
"session.configure.result": "session.configure.result";
|
|
299
|
+
"session.create.result": "session.create.result";
|
|
300
|
+
"session.delete.result": "session.delete.result";
|
|
301
|
+
"session.list.result": "session.list.result";
|
|
302
|
+
"session.options.result": "session.options.result";
|
|
303
|
+
"session.prompt.result": "session.prompt.result";
|
|
304
|
+
"session.remote.result": "session.remote.result";
|
|
305
|
+
"session.timeline.invalidated": "session.timeline.invalidated";
|
|
306
|
+
"session.timeline.page.result": "session.timeline.page.result";
|
|
307
|
+
"session.watch.result": "session.watch.result";
|
|
308
|
+
"sessions.snapshot": "sessions.snapshot";
|
|
309
|
+
}>;
|
|
310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
311
|
+
version: z.ZodLiteral<1>;
|
|
312
|
+
algorithm: z.ZodLiteral<"A256GCM">;
|
|
313
|
+
messageId: z.ZodString;
|
|
314
|
+
machineId: z.ZodString;
|
|
315
|
+
clientId: z.ZodString;
|
|
316
|
+
recipientClientId: z.ZodOptional<z.ZodString>;
|
|
317
|
+
keyId: z.ZodString;
|
|
318
|
+
sentAt: z.ZodNumber;
|
|
319
|
+
nonce: z.ZodString;
|
|
320
|
+
ciphertext: z.ZodString;
|
|
321
|
+
sender: z.ZodLiteral<"mobile">;
|
|
322
|
+
event: z.ZodEnum<{
|
|
323
|
+
"interaction.respond": "interaction.respond";
|
|
324
|
+
"permission.respond": "permission.respond";
|
|
325
|
+
"session.abort": "session.abort";
|
|
326
|
+
"session.communication": "session.communication";
|
|
327
|
+
"session.configure": "session.configure";
|
|
328
|
+
"session.create": "session.create";
|
|
329
|
+
"session.delete": "session.delete";
|
|
330
|
+
"session.list": "session.list";
|
|
331
|
+
"session.options": "session.options";
|
|
332
|
+
"session.prompt": "session.prompt";
|
|
333
|
+
"session.remote": "session.remote";
|
|
334
|
+
"session.timeline.page": "session.timeline.page";
|
|
335
|
+
"session.watch": "session.watch";
|
|
336
|
+
}>;
|
|
337
|
+
}, z.core.$strict>], "sender">;
|
|
338
|
+
ciphertext: z.ZodString;
|
|
339
|
+
}, z.core.$strict>;
|
|
340
|
+
type InventoryDelivery = z.infer<typeof InventoryDeliverySchema>;
|
|
341
|
+
|
|
207
342
|
declare const V2MachineHelloSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
208
343
|
userId: z.ZodString;
|
|
209
344
|
machineId: z.ZodString;
|
|
@@ -465,6 +600,8 @@ type A2aRelayResponse = z.infer<typeof A2aRelayResponseSchema>;
|
|
|
465
600
|
|
|
466
601
|
type Ack = (ack: OperationAck) => void;
|
|
467
602
|
interface V2ClientToServerEvents {
|
|
603
|
+
"inventory.publish": (payload: InventoryPublish, ack: Ack) => void;
|
|
604
|
+
"inventory.invalidate": () => void;
|
|
468
605
|
"machine.hello": (payload: V2MachineHello, ack: Ack) => void;
|
|
469
606
|
"machine.heartbeat": (payload: MachineHeartbeat) => void;
|
|
470
607
|
"machine.list": (payload: MachineListRequest) => void;
|
|
@@ -472,6 +609,7 @@ interface V2ClientToServerEvents {
|
|
|
472
609
|
"peer.message": (payload: PeerMessage, ack?: Ack) => void;
|
|
473
610
|
}
|
|
474
611
|
interface V2ServerToClientEvents {
|
|
612
|
+
"inventory.delivery": (payload: InventoryDelivery) => void;
|
|
475
613
|
"a2a.request": (payload: A2aRelayRequest, ack: (response: A2aRelayResponse) => void) => void;
|
|
476
614
|
"machine.list.result": (payload: MachineListResult) => void;
|
|
477
615
|
"machine.online": (payload: MachinePresence) => void;
|