@constal/sdk 6.9.1 → 6.11.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.
- package/package.json +1 -1
- package/publish/api.json +42 -26
- package/publish/chat-format.d.ts +24 -4
- package/publish/index.d.ts +525 -347
- package/publish/index.js +430 -317
package/package.json
CHANGED
package/publish/api.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@constal/sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"exports": [
|
|
5
5
|
"AGENT_UI_DEFAULTS",
|
|
6
6
|
"Action",
|
|
@@ -65,9 +65,14 @@
|
|
|
65
65
|
"ChannelDeliveryOutcome",
|
|
66
66
|
"ChannelDeliveryReport",
|
|
67
67
|
"ChannelFailure",
|
|
68
|
+
"ChannelFetchRequest",
|
|
69
|
+
"ChannelFetchResult",
|
|
68
70
|
"ChannelIngressEvent",
|
|
69
71
|
"ChannelIngressSource",
|
|
70
72
|
"ChannelMessage",
|
|
73
|
+
"ChannelObject",
|
|
74
|
+
"ChannelPresence",
|
|
75
|
+
"ChannelPresenceReceipt",
|
|
71
76
|
"ChannelProtocol",
|
|
72
77
|
"ChannelReceiveResult",
|
|
73
78
|
"ChannelRequest",
|
|
@@ -118,8 +123,7 @@
|
|
|
118
123
|
"ContainerRegistryResponse",
|
|
119
124
|
"ControlEvent",
|
|
120
125
|
"Cost",
|
|
121
|
-
"
|
|
122
|
-
"CreateSandboxOptions",
|
|
126
|
+
"CreatedSandbox",
|
|
123
127
|
"CredentialCRN",
|
|
124
128
|
"CredentialDestination",
|
|
125
129
|
"CredentialDestroyResult",
|
|
@@ -279,7 +283,9 @@
|
|
|
279
283
|
"ModelAdvertisedPricing",
|
|
280
284
|
"ModelCacheHint",
|
|
281
285
|
"ModelCompletion",
|
|
286
|
+
"ModelContentPart",
|
|
282
287
|
"ModelCredentialHeader",
|
|
288
|
+
"ModelFilePart",
|
|
283
289
|
"ModelGatewayBinding",
|
|
284
290
|
"ModelGatewayConfig",
|
|
285
291
|
"ModelGatewayProtocol",
|
|
@@ -292,6 +298,7 @@
|
|
|
292
298
|
"ModelInvocationResult",
|
|
293
299
|
"ModelProtocolRequestOptions",
|
|
294
300
|
"ModelTechnicalCapabilities",
|
|
301
|
+
"ModelTextPart",
|
|
295
302
|
"ModelTool",
|
|
296
303
|
"NondeterministicReplay",
|
|
297
304
|
"NormalizedModelGatewayConfig",
|
|
@@ -344,38 +351,47 @@
|
|
|
344
351
|
"RunReport",
|
|
345
352
|
"RunStatusDetail",
|
|
346
353
|
"RunSuiteRequest",
|
|
354
|
+
"SANDBOX_DOOR_MAX_WAIT_MS",
|
|
347
355
|
"SANDBOX_EGRESS_LIMITS",
|
|
356
|
+
"SANDBOX_POOL_OPERATIONS",
|
|
357
|
+
"SANDBOX_PROVIDER_FAILURE_CLASSES",
|
|
358
|
+
"SANDBOX_PROVIDER_UNAVAILABLE",
|
|
348
359
|
"Sandbox",
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
360
|
+
"SandboxCapabilities",
|
|
361
|
+
"SandboxCreateRequest",
|
|
362
|
+
"SandboxEgress",
|
|
363
|
+
"SandboxEgressCapabilities",
|
|
364
|
+
"SandboxEgressDestination",
|
|
352
365
|
"SandboxEgressPolicy",
|
|
353
366
|
"SandboxEgressRule",
|
|
354
|
-
"
|
|
355
|
-
"
|
|
367
|
+
"SandboxExecCapabilities",
|
|
368
|
+
"SandboxExecRequest",
|
|
369
|
+
"SandboxExecution",
|
|
370
|
+
"SandboxExecutionState",
|
|
371
|
+
"SandboxFile",
|
|
372
|
+
"SandboxFileBody",
|
|
373
|
+
"SandboxFileCapabilities",
|
|
374
|
+
"SandboxFileContent",
|
|
375
|
+
"SandboxFileScope",
|
|
356
376
|
"SandboxGovernanceControls",
|
|
357
377
|
"SandboxGovernanceMeter",
|
|
358
|
-
"SandboxImage",
|
|
359
378
|
"SandboxLabels",
|
|
360
|
-
"SandboxMutationResult",
|
|
361
379
|
"SandboxNetworkMode",
|
|
362
380
|
"SandboxNetworkPolicy",
|
|
381
|
+
"SandboxPersistence",
|
|
363
382
|
"SandboxPool",
|
|
364
|
-
"
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
"
|
|
368
|
-
"
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
376
|
-
"SandboxWorkspacePreparation",
|
|
377
|
-
"SandboxWorkspaceReceipt",
|
|
378
|
-
"SandboxWriteFileResult",
|
|
383
|
+
"SandboxPoolCreateRequest",
|
|
384
|
+
"SandboxPoolOperation",
|
|
385
|
+
"SandboxPortCapabilities",
|
|
386
|
+
"SandboxProviderFailureClass",
|
|
387
|
+
"SandboxProviderUnavailable",
|
|
388
|
+
"SandboxSecretsRoute",
|
|
389
|
+
"SandboxSnapshot",
|
|
390
|
+
"SandboxSnapshotCapabilities",
|
|
391
|
+
"SandboxState",
|
|
392
|
+
"SandboxUpdateRequest",
|
|
393
|
+
"SandboxView",
|
|
394
|
+
"SandboxWaitOptions",
|
|
379
395
|
"Schedule",
|
|
380
396
|
"ScheduleCancellation",
|
|
381
397
|
"ScheduleDuration",
|
|
@@ -609,7 +625,6 @@
|
|
|
609
625
|
"normalizeSandboxEgressPolicy",
|
|
610
626
|
"normalizeSandboxLabels",
|
|
611
627
|
"normalizeSandboxNetworkPolicy",
|
|
612
|
-
"normalizeSandboxWorkspacePath",
|
|
613
628
|
"noulDecision",
|
|
614
629
|
"opTool",
|
|
615
630
|
"opTools",
|
|
@@ -636,6 +651,7 @@
|
|
|
636
651
|
"sandboxEgressDecision",
|
|
637
652
|
"sandboxEgressHostMatches",
|
|
638
653
|
"sandboxLimit",
|
|
654
|
+
"sandboxProviderUnavailable",
|
|
639
655
|
"scopedBindingKey",
|
|
640
656
|
"scopedCredentialRef",
|
|
641
657
|
"scopedResourceRef",
|
package/publish/chat-format.d.ts
CHANGED
|
@@ -15,12 +15,32 @@ interface ModelHistoryToolCall {
|
|
|
15
15
|
name: string;
|
|
16
16
|
args: unknown;
|
|
17
17
|
}
|
|
18
|
+
/** Text a user or tool message carries among its parts. */
|
|
19
|
+
interface ModelTextPart {
|
|
20
|
+
type: "text";
|
|
21
|
+
text: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A stored file a user or tool message carries, by its ref: the history and the journal hold only this, and the model's
|
|
25
|
+
* connection sends the file's bytes, or the provider's id of them, when it sends the request.
|
|
26
|
+
*/
|
|
27
|
+
interface ModelFilePart {
|
|
28
|
+
type: "file";
|
|
29
|
+
ref: Ref;
|
|
30
|
+
bytes: number;
|
|
31
|
+
mediaType: string;
|
|
32
|
+
name?: string;
|
|
33
|
+
/** The object the value came from, which remembers provider file ids. */
|
|
34
|
+
object?: string;
|
|
35
|
+
}
|
|
36
|
+
type ModelContentPart = ModelTextPart | ModelFilePart;
|
|
18
37
|
/** One earlier message, oldest first. User and assistant text is as it always was; an assistant message may also carry the
|
|
19
|
-
* Tool calls it made, and a tool message returns one call's result to the model.
|
|
20
|
-
*
|
|
38
|
+
* Tool calls it made, and a tool message returns one call's result to the model. A user or tool message may carry content
|
|
39
|
+
* parts instead of text: text and stored files, in order. The tool messages right after an assistant message answer each of
|
|
40
|
+
* its calls once, before any other message. */
|
|
21
41
|
type ModelHistoryMessage = {
|
|
22
42
|
role: "user";
|
|
23
|
-
content: string;
|
|
43
|
+
content: string | ModelContentPart[];
|
|
24
44
|
} | {
|
|
25
45
|
role: "assistant";
|
|
26
46
|
content: string;
|
|
@@ -28,7 +48,7 @@ type ModelHistoryMessage = {
|
|
|
28
48
|
} | {
|
|
29
49
|
role: "tool";
|
|
30
50
|
toolCallId: string;
|
|
31
|
-
content: string;
|
|
51
|
+
content: string | ModelContentPart[];
|
|
32
52
|
isError?: boolean;
|
|
33
53
|
};
|
|
34
54
|
|