@runtypelabs/sdk 4.12.0 → 4.13.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/dist/index.cjs +32 -3
- package/dist/index.d.cts +176 -8
- package/dist/index.d.ts +176 -8
- package/dist/index.mjs +32 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1535,6 +1535,7 @@ function collectStepNonPortableToolRefs(config, path) {
|
|
|
1535
1535
|
const found = [];
|
|
1536
1536
|
const tools = config.tools;
|
|
1537
1537
|
const isAccountScoped = (ref) => typeof ref === "string" && ref.startsWith("tool_");
|
|
1538
|
+
const isRawId = (ref, prefix) => typeof ref === "string" && ref.startsWith(prefix);
|
|
1538
1539
|
const scanArray = (value, subPath) => {
|
|
1539
1540
|
if (!Array.isArray(value)) return;
|
|
1540
1541
|
value.forEach((ref, i) => {
|
|
@@ -1560,10 +1561,25 @@ function collectStepNonPortableToolRefs(config, path) {
|
|
|
1560
1561
|
if (isPlainObject(tools.codeModeConfig)) {
|
|
1561
1562
|
scanArray(tools.codeModeConfig.toolPool, `${path}.tools.codeModeConfig.toolPool`);
|
|
1562
1563
|
}
|
|
1564
|
+
if (Array.isArray(tools.runtimeTools)) {
|
|
1565
|
+
tools.runtimeTools.forEach((runtimeTool, i) => {
|
|
1566
|
+
if (!isPlainObject(runtimeTool) || !isPlainObject(runtimeTool.config)) return;
|
|
1567
|
+
const base = `${path}.tools.runtimeTools[${i}].config`;
|
|
1568
|
+
const rtConfig = runtimeTool.config;
|
|
1569
|
+
if (runtimeTool.toolType === "subagent" && isRawId(rtConfig.agentId, "agent_")) {
|
|
1570
|
+
found.push(`${base}.agentId`);
|
|
1571
|
+
} else if (runtimeTool.toolType === "flow" && isRawId(rtConfig.flowId, "flow_")) {
|
|
1572
|
+
found.push(`${base}.flowId`);
|
|
1573
|
+
}
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1563
1576
|
}
|
|
1564
1577
|
if (isAccountScoped(config.toolId)) {
|
|
1565
1578
|
found.push(`${path}.toolId`);
|
|
1566
1579
|
}
|
|
1580
|
+
if (isRawId(config.agentId, "agent_")) {
|
|
1581
|
+
found.push(`${path}.agentId`);
|
|
1582
|
+
}
|
|
1567
1583
|
for (const branch of ["trueSteps", "falseSteps"]) {
|
|
1568
1584
|
const nested = config[branch];
|
|
1569
1585
|
if (!Array.isArray(nested)) continue;
|
|
@@ -1617,7 +1633,7 @@ function defineFlow(input) {
|
|
|
1617
1633
|
const nonPortable = collectStepNonPortableToolRefs(config, `steps[${index}].config`);
|
|
1618
1634
|
if (nonPortable.length > 0) {
|
|
1619
1635
|
throw new Error(
|
|
1620
|
-
`defineFlow: account-scoped
|
|
1636
|
+
`defineFlow: account-scoped reference(s) at ${nonPortable.join(", ")}. Definitions must be environment-portable \u2014 tool_\u2026/agent_\u2026/flow_\u2026 IDs belong to one account/environment. Use builtin:/platform:/mcp: references, or reference a saved resource by name \u2014 tool:<name>, agent:<name>, or flow:<name> instead.`
|
|
1621
1637
|
);
|
|
1622
1638
|
}
|
|
1623
1639
|
}
|
|
@@ -3510,6 +3526,18 @@ function collectNonPortableToolRefs(config) {
|
|
|
3510
3526
|
if (isPlainObject2(tools.codeModeConfig)) {
|
|
3511
3527
|
scanArray(tools.codeModeConfig.toolPool, "tools.codeModeConfig.toolPool");
|
|
3512
3528
|
}
|
|
3529
|
+
if (Array.isArray(tools.runtimeTools)) {
|
|
3530
|
+
tools.runtimeTools.forEach((runtimeTool, i) => {
|
|
3531
|
+
if (!isPlainObject2(runtimeTool) || !isPlainObject2(runtimeTool.config)) return;
|
|
3532
|
+
const base = `tools.runtimeTools[${i}].config`;
|
|
3533
|
+
const rtConfig = runtimeTool.config;
|
|
3534
|
+
if (runtimeTool.toolType === "subagent" && typeof rtConfig.agentId === "string" && rtConfig.agentId.startsWith("agent_")) {
|
|
3535
|
+
found.push(`${base}.agentId`);
|
|
3536
|
+
} else if (runtimeTool.toolType === "flow" && typeof rtConfig.flowId === "string" && rtConfig.flowId.startsWith("flow_")) {
|
|
3537
|
+
found.push(`${base}.flowId`);
|
|
3538
|
+
}
|
|
3539
|
+
});
|
|
3540
|
+
}
|
|
3513
3541
|
return found;
|
|
3514
3542
|
}
|
|
3515
3543
|
function defineAgent(input) {
|
|
@@ -3533,7 +3561,7 @@ function defineAgent(input) {
|
|
|
3533
3561
|
const nonPortable = collectNonPortableToolRefs(config);
|
|
3534
3562
|
if (nonPortable.length > 0) {
|
|
3535
3563
|
throw new Error(
|
|
3536
|
-
`defineAgent: account-scoped
|
|
3564
|
+
`defineAgent: account-scoped reference(s) at ${nonPortable.join(", ")}. Definitions must be environment-portable \u2014 tool_\u2026/agent_\u2026/flow_\u2026 IDs belong to one account/environment. Use builtin:/platform:/mcp: references, or reference a saved resource by name \u2014 tool:<name>, agent:<name>, or flow:<name> instead.`
|
|
3537
3565
|
);
|
|
3538
3566
|
}
|
|
3539
3567
|
return {
|
|
@@ -9877,7 +9905,8 @@ Do NOT redo any of the above work.`
|
|
|
9877
9905
|
});
|
|
9878
9906
|
};
|
|
9879
9907
|
const buildNativeCompactionEvent = (mode, breakdown) => {
|
|
9880
|
-
|
|
9908
|
+
const gateTokens = breakdown.sendEstimatedInputTokens ?? breakdown.estimatedInputTokens;
|
|
9909
|
+
if (resolvedStrategy !== "provider_native" || typeof compactionOptions?.autoCompactTokenThreshold !== "number" || compactionOptions.autoCompactTokenThreshold <= 0 || gateTokens < compactionOptions.autoCompactTokenThreshold) {
|
|
9881
9910
|
return void 0;
|
|
9882
9911
|
}
|
|
9883
9912
|
return {
|
package/dist/index.d.cts
CHANGED
|
@@ -6535,7 +6535,7 @@ interface paths {
|
|
|
6535
6535
|
put?: never;
|
|
6536
6536
|
/**
|
|
6537
6537
|
* Submit feedback on a message
|
|
6538
|
-
* @description Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.
|
|
6538
|
+
* @description Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Requires the client `token` (authenticated like `/init` and `/chat`): the token is verified, its origin allowlist is enforced, and the session lookup is scoped to the token. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.
|
|
6539
6539
|
*/
|
|
6540
6540
|
post: {
|
|
6541
6541
|
parameters: {
|
|
@@ -6554,6 +6554,7 @@ interface paths {
|
|
|
6554
6554
|
};
|
|
6555
6555
|
rating?: number;
|
|
6556
6556
|
sessionId: string;
|
|
6557
|
+
token: string;
|
|
6557
6558
|
/** @enum {string} */
|
|
6558
6559
|
type: "upvote" | "downvote" | "copy" | "csat" | "nps";
|
|
6559
6560
|
};
|
|
@@ -6597,7 +6598,16 @@ interface paths {
|
|
|
6597
6598
|
"application/json": components["schemas"]["Error"];
|
|
6598
6599
|
};
|
|
6599
6600
|
};
|
|
6600
|
-
/** @description
|
|
6601
|
+
/** @description Invalid client token (when a `token` is supplied) */
|
|
6602
|
+
401: {
|
|
6603
|
+
headers: {
|
|
6604
|
+
[name: string]: unknown;
|
|
6605
|
+
};
|
|
6606
|
+
content: {
|
|
6607
|
+
"application/json": components["schemas"]["Error"];
|
|
6608
|
+
};
|
|
6609
|
+
};
|
|
6610
|
+
/** @description Session deactivated, client token inactive, or origin not allowed */
|
|
6601
6611
|
403: {
|
|
6602
6612
|
headers: {
|
|
6603
6613
|
[name: string]: unknown;
|
|
@@ -6606,7 +6616,7 @@ interface paths {
|
|
|
6606
6616
|
"application/json": components["schemas"]["Error"];
|
|
6607
6617
|
};
|
|
6608
6618
|
};
|
|
6609
|
-
/** @description Session not found */
|
|
6619
|
+
/** @description Session not found (or not owned by the supplied token) */
|
|
6610
6620
|
404: {
|
|
6611
6621
|
headers: {
|
|
6612
6622
|
[name: string]: unknown;
|
|
@@ -7568,7 +7578,38 @@ interface paths {
|
|
|
7568
7578
|
content: {
|
|
7569
7579
|
"application/json": {
|
|
7570
7580
|
messages?: {
|
|
7571
|
-
content: string
|
|
7581
|
+
content: string | (({
|
|
7582
|
+
text: string;
|
|
7583
|
+
/** @enum {string} */
|
|
7584
|
+
type: "text";
|
|
7585
|
+
} & {
|
|
7586
|
+
[key: string]: unknown;
|
|
7587
|
+
}) | ({
|
|
7588
|
+
image: string;
|
|
7589
|
+
mimeType?: string;
|
|
7590
|
+
/** @enum {string} */
|
|
7591
|
+
type: "image";
|
|
7592
|
+
} & {
|
|
7593
|
+
[key: string]: unknown;
|
|
7594
|
+
}) | ({
|
|
7595
|
+
data: string;
|
|
7596
|
+
filename: string;
|
|
7597
|
+
mimeType: string;
|
|
7598
|
+
/** @enum {string} */
|
|
7599
|
+
type: "file";
|
|
7600
|
+
} & {
|
|
7601
|
+
[key: string]: unknown;
|
|
7602
|
+
}) | {
|
|
7603
|
+
assetId: string;
|
|
7604
|
+
filename?: string;
|
|
7605
|
+
mimeType: string;
|
|
7606
|
+
orgKey: string;
|
|
7607
|
+
/** @enum {string} */
|
|
7608
|
+
refKind: "image" | "file";
|
|
7609
|
+
sizeBytes: number;
|
|
7610
|
+
/** @enum {string} */
|
|
7611
|
+
type: "asset_ref";
|
|
7612
|
+
})[];
|
|
7572
7613
|
createdAt?: string;
|
|
7573
7614
|
id: string;
|
|
7574
7615
|
/** @enum {string} */
|
|
@@ -15480,6 +15521,84 @@ interface paths {
|
|
|
15480
15521
|
patch?: never;
|
|
15481
15522
|
trace?: never;
|
|
15482
15523
|
};
|
|
15524
|
+
"/v1/internal-assets/{assetId}": {
|
|
15525
|
+
parameters: {
|
|
15526
|
+
query?: never;
|
|
15527
|
+
header?: never;
|
|
15528
|
+
path?: never;
|
|
15529
|
+
cookie?: never;
|
|
15530
|
+
};
|
|
15531
|
+
/**
|
|
15532
|
+
* Get internal asset
|
|
15533
|
+
* @description Stream the bytes of an `internal`-visibility asset (offloaded inbound media). Authenticated and scoped to the caller's tenant — internal assets have no public or signed URL and are only readable by their owner.
|
|
15534
|
+
*/
|
|
15535
|
+
get: {
|
|
15536
|
+
parameters: {
|
|
15537
|
+
query?: never;
|
|
15538
|
+
header?: never;
|
|
15539
|
+
path: {
|
|
15540
|
+
/** @description Asset ID (e.g. "asset_01k…"). A trailing file extension is ignored. */
|
|
15541
|
+
assetId: string;
|
|
15542
|
+
};
|
|
15543
|
+
cookie?: never;
|
|
15544
|
+
};
|
|
15545
|
+
requestBody?: never;
|
|
15546
|
+
responses: {
|
|
15547
|
+
/** @description Asset content. Content-Type reflects the stored asset, defaulting to application/octet-stream. */
|
|
15548
|
+
200: {
|
|
15549
|
+
headers: {
|
|
15550
|
+
[name: string]: unknown;
|
|
15551
|
+
};
|
|
15552
|
+
content: {
|
|
15553
|
+
"application/octet-stream": string;
|
|
15554
|
+
};
|
|
15555
|
+
};
|
|
15556
|
+
/** @description Unauthorized */
|
|
15557
|
+
401: {
|
|
15558
|
+
headers: {
|
|
15559
|
+
[name: string]: unknown;
|
|
15560
|
+
};
|
|
15561
|
+
content: {
|
|
15562
|
+
"application/json": components["schemas"]["Error"];
|
|
15563
|
+
};
|
|
15564
|
+
};
|
|
15565
|
+
/** @description Insufficient permissions */
|
|
15566
|
+
403: {
|
|
15567
|
+
headers: {
|
|
15568
|
+
[name: string]: unknown;
|
|
15569
|
+
};
|
|
15570
|
+
content: {
|
|
15571
|
+
"application/json": components["schemas"]["Error"];
|
|
15572
|
+
};
|
|
15573
|
+
};
|
|
15574
|
+
/** @description Asset not found */
|
|
15575
|
+
404: {
|
|
15576
|
+
headers: {
|
|
15577
|
+
[name: string]: unknown;
|
|
15578
|
+
};
|
|
15579
|
+
content: {
|
|
15580
|
+
"application/json": components["schemas"]["Error"];
|
|
15581
|
+
};
|
|
15582
|
+
};
|
|
15583
|
+
/** @description Asset storage not configured */
|
|
15584
|
+
503: {
|
|
15585
|
+
headers: {
|
|
15586
|
+
[name: string]: unknown;
|
|
15587
|
+
};
|
|
15588
|
+
content: {
|
|
15589
|
+
"application/json": components["schemas"]["Error"];
|
|
15590
|
+
};
|
|
15591
|
+
};
|
|
15592
|
+
};
|
|
15593
|
+
};
|
|
15594
|
+
put?: never;
|
|
15595
|
+
post?: never;
|
|
15596
|
+
delete?: never;
|
|
15597
|
+
options?: never;
|
|
15598
|
+
head?: never;
|
|
15599
|
+
patch?: never;
|
|
15600
|
+
trace?: never;
|
|
15601
|
+
};
|
|
15483
15602
|
"/v1/logs": {
|
|
15484
15603
|
parameters: {
|
|
15485
15604
|
query?: never;
|
|
@@ -27156,6 +27275,12 @@ interface paths {
|
|
|
27156
27275
|
type: string;
|
|
27157
27276
|
updatedAt: string;
|
|
27158
27277
|
userId: string;
|
|
27278
|
+
warnings?: {
|
|
27279
|
+
/** @enum {string} */
|
|
27280
|
+
code: "KEY_RENAMED";
|
|
27281
|
+
from: string;
|
|
27282
|
+
to: string;
|
|
27283
|
+
}[];
|
|
27159
27284
|
};
|
|
27160
27285
|
};
|
|
27161
27286
|
};
|
|
@@ -27372,6 +27497,12 @@ interface paths {
|
|
|
27372
27497
|
id: string;
|
|
27373
27498
|
}[];
|
|
27374
27499
|
recordIds: string[];
|
|
27500
|
+
warnings?: {
|
|
27501
|
+
/** @enum {string} */
|
|
27502
|
+
code: "KEY_RENAMED";
|
|
27503
|
+
from: string;
|
|
27504
|
+
to: string;
|
|
27505
|
+
}[];
|
|
27375
27506
|
};
|
|
27376
27507
|
};
|
|
27377
27508
|
};
|
|
@@ -27841,6 +27972,12 @@ interface paths {
|
|
|
27841
27972
|
type: string;
|
|
27842
27973
|
}[];
|
|
27843
27974
|
success: boolean;
|
|
27975
|
+
warnings?: {
|
|
27976
|
+
/** @enum {string} */
|
|
27977
|
+
code: "KEY_RENAMED";
|
|
27978
|
+
from: string;
|
|
27979
|
+
to: string;
|
|
27980
|
+
}[];
|
|
27844
27981
|
};
|
|
27845
27982
|
};
|
|
27846
27983
|
};
|
|
@@ -28045,6 +28182,12 @@ interface paths {
|
|
|
28045
28182
|
type: string;
|
|
28046
28183
|
updatedAt: string;
|
|
28047
28184
|
userId: string;
|
|
28185
|
+
warnings?: {
|
|
28186
|
+
/** @enum {string} */
|
|
28187
|
+
code: "KEY_RENAMED";
|
|
28188
|
+
from: string;
|
|
28189
|
+
to: string;
|
|
28190
|
+
}[];
|
|
28048
28191
|
};
|
|
28049
28192
|
};
|
|
28050
28193
|
};
|
|
@@ -35374,6 +35517,7 @@ interface components {
|
|
|
35374
35517
|
};
|
|
35375
35518
|
/** @enum {string} */
|
|
35376
35519
|
type: "step_complete";
|
|
35520
|
+
unresolvedVariables?: string[];
|
|
35377
35521
|
} | {
|
|
35378
35522
|
error: string;
|
|
35379
35523
|
executionId?: string;
|
|
@@ -35857,6 +36001,7 @@ interface components {
|
|
|
35857
36001
|
};
|
|
35858
36002
|
/** @enum {string} */
|
|
35859
36003
|
type: "step_complete";
|
|
36004
|
+
unresolvedVariables?: string[];
|
|
35860
36005
|
} | {
|
|
35861
36006
|
error: string;
|
|
35862
36007
|
executionId?: string;
|
|
@@ -37460,6 +37605,7 @@ interface FlowAttachment {
|
|
|
37460
37605
|
order: number;
|
|
37461
37606
|
}
|
|
37462
37607
|
type RuntypeRecord = paths['/v1/records/{id}']['get']['responses'][200]['content']['application/json'];
|
|
37608
|
+
type RecordWriteResponse = paths['/v1/records']['post']['responses'][201]['content']['application/json'];
|
|
37463
37609
|
type RecordListItem = paths['/v1/records']['get']['responses'][200]['content']['application/json']['data'][number];
|
|
37464
37610
|
interface ApiKey {
|
|
37465
37611
|
id: string;
|
|
@@ -37564,6 +37710,12 @@ interface BulkEditResult {
|
|
|
37564
37710
|
interface BulkEditResponse {
|
|
37565
37711
|
data: BulkEditResult[];
|
|
37566
37712
|
recordIds?: number[];
|
|
37713
|
+
/** Deduplicated metadata key-rename notices across the edited records. */
|
|
37714
|
+
warnings?: {
|
|
37715
|
+
code: 'KEY_RENAMED';
|
|
37716
|
+
from: string;
|
|
37717
|
+
to: string;
|
|
37718
|
+
}[];
|
|
37567
37719
|
}
|
|
37568
37720
|
/** A single unified step-level execution result for a record. */
|
|
37569
37721
|
interface RecordStepResult {
|
|
@@ -37726,7 +37878,23 @@ interface ReasoningContentPart {
|
|
|
37726
37878
|
text: string;
|
|
37727
37879
|
providerOptions?: Record<string, unknown>;
|
|
37728
37880
|
}
|
|
37729
|
-
|
|
37881
|
+
/**
|
|
37882
|
+
* Reference to large media offloaded to internal, tenant-scoped storage (when
|
|
37883
|
+
* the `enable-asset-offload` feature is active for the account). Persisted in
|
|
37884
|
+
* place of inline base64 and resolved back to bytes server-side at
|
|
37885
|
+
* model-execution time. Read-side code that switches on `part.type` should treat
|
|
37886
|
+
* `asset_ref` as opaque — its bytes are not inline.
|
|
37887
|
+
*/
|
|
37888
|
+
interface AssetReferenceContentPart {
|
|
37889
|
+
type: 'asset_ref';
|
|
37890
|
+
assetId: string;
|
|
37891
|
+
orgKey?: string;
|
|
37892
|
+
refKind?: 'image' | 'file';
|
|
37893
|
+
mimeType?: string;
|
|
37894
|
+
sizeBytes?: number;
|
|
37895
|
+
filename?: string;
|
|
37896
|
+
}
|
|
37897
|
+
type MessageContent = string | Array<TextContentPart | ImageContentPart | FileContentPart | ReasoningContentPart | AssetReferenceContentPart>;
|
|
37730
37898
|
/**
|
|
37731
37899
|
* Options for upsert mode - controls conflict detection and versioning
|
|
37732
37900
|
*/
|
|
@@ -41155,11 +41323,11 @@ declare class RecordsEndpoint {
|
|
|
41155
41323
|
/**
|
|
41156
41324
|
* Create a new record
|
|
41157
41325
|
*/
|
|
41158
|
-
create(data: CreateRecordRequest): Promise<
|
|
41326
|
+
create(data: CreateRecordRequest): Promise<RecordWriteResponse>;
|
|
41159
41327
|
/**
|
|
41160
41328
|
* Update an existing record
|
|
41161
41329
|
*/
|
|
41162
|
-
update(id: string, data: Partial<CreateRecordRequest>): Promise<
|
|
41330
|
+
update(id: string, data: Partial<CreateRecordRequest>): Promise<RecordWriteResponse>;
|
|
41163
41331
|
/**
|
|
41164
41332
|
* Delete a record
|
|
41165
41333
|
*/
|
|
@@ -45039,4 +45207,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
45039
45207
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
45040
45208
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
45041
45209
|
|
|
45042
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
|
45210
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
package/dist/index.d.ts
CHANGED
|
@@ -6535,7 +6535,7 @@ interface paths {
|
|
|
6535
6535
|
put?: never;
|
|
6536
6536
|
/**
|
|
6537
6537
|
* Submit feedback on a message
|
|
6538
|
-
* @description Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.
|
|
6538
|
+
* @description Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Requires the client `token` (authenticated like `/init` and `/chat`): the token is verified, its origin allowlist is enforced, and the session lookup is scoped to the token. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.
|
|
6539
6539
|
*/
|
|
6540
6540
|
post: {
|
|
6541
6541
|
parameters: {
|
|
@@ -6554,6 +6554,7 @@ interface paths {
|
|
|
6554
6554
|
};
|
|
6555
6555
|
rating?: number;
|
|
6556
6556
|
sessionId: string;
|
|
6557
|
+
token: string;
|
|
6557
6558
|
/** @enum {string} */
|
|
6558
6559
|
type: "upvote" | "downvote" | "copy" | "csat" | "nps";
|
|
6559
6560
|
};
|
|
@@ -6597,7 +6598,16 @@ interface paths {
|
|
|
6597
6598
|
"application/json": components["schemas"]["Error"];
|
|
6598
6599
|
};
|
|
6599
6600
|
};
|
|
6600
|
-
/** @description
|
|
6601
|
+
/** @description Invalid client token (when a `token` is supplied) */
|
|
6602
|
+
401: {
|
|
6603
|
+
headers: {
|
|
6604
|
+
[name: string]: unknown;
|
|
6605
|
+
};
|
|
6606
|
+
content: {
|
|
6607
|
+
"application/json": components["schemas"]["Error"];
|
|
6608
|
+
};
|
|
6609
|
+
};
|
|
6610
|
+
/** @description Session deactivated, client token inactive, or origin not allowed */
|
|
6601
6611
|
403: {
|
|
6602
6612
|
headers: {
|
|
6603
6613
|
[name: string]: unknown;
|
|
@@ -6606,7 +6616,7 @@ interface paths {
|
|
|
6606
6616
|
"application/json": components["schemas"]["Error"];
|
|
6607
6617
|
};
|
|
6608
6618
|
};
|
|
6609
|
-
/** @description Session not found */
|
|
6619
|
+
/** @description Session not found (or not owned by the supplied token) */
|
|
6610
6620
|
404: {
|
|
6611
6621
|
headers: {
|
|
6612
6622
|
[name: string]: unknown;
|
|
@@ -7568,7 +7578,38 @@ interface paths {
|
|
|
7568
7578
|
content: {
|
|
7569
7579
|
"application/json": {
|
|
7570
7580
|
messages?: {
|
|
7571
|
-
content: string
|
|
7581
|
+
content: string | (({
|
|
7582
|
+
text: string;
|
|
7583
|
+
/** @enum {string} */
|
|
7584
|
+
type: "text";
|
|
7585
|
+
} & {
|
|
7586
|
+
[key: string]: unknown;
|
|
7587
|
+
}) | ({
|
|
7588
|
+
image: string;
|
|
7589
|
+
mimeType?: string;
|
|
7590
|
+
/** @enum {string} */
|
|
7591
|
+
type: "image";
|
|
7592
|
+
} & {
|
|
7593
|
+
[key: string]: unknown;
|
|
7594
|
+
}) | ({
|
|
7595
|
+
data: string;
|
|
7596
|
+
filename: string;
|
|
7597
|
+
mimeType: string;
|
|
7598
|
+
/** @enum {string} */
|
|
7599
|
+
type: "file";
|
|
7600
|
+
} & {
|
|
7601
|
+
[key: string]: unknown;
|
|
7602
|
+
}) | {
|
|
7603
|
+
assetId: string;
|
|
7604
|
+
filename?: string;
|
|
7605
|
+
mimeType: string;
|
|
7606
|
+
orgKey: string;
|
|
7607
|
+
/** @enum {string} */
|
|
7608
|
+
refKind: "image" | "file";
|
|
7609
|
+
sizeBytes: number;
|
|
7610
|
+
/** @enum {string} */
|
|
7611
|
+
type: "asset_ref";
|
|
7612
|
+
})[];
|
|
7572
7613
|
createdAt?: string;
|
|
7573
7614
|
id: string;
|
|
7574
7615
|
/** @enum {string} */
|
|
@@ -15480,6 +15521,84 @@ interface paths {
|
|
|
15480
15521
|
patch?: never;
|
|
15481
15522
|
trace?: never;
|
|
15482
15523
|
};
|
|
15524
|
+
"/v1/internal-assets/{assetId}": {
|
|
15525
|
+
parameters: {
|
|
15526
|
+
query?: never;
|
|
15527
|
+
header?: never;
|
|
15528
|
+
path?: never;
|
|
15529
|
+
cookie?: never;
|
|
15530
|
+
};
|
|
15531
|
+
/**
|
|
15532
|
+
* Get internal asset
|
|
15533
|
+
* @description Stream the bytes of an `internal`-visibility asset (offloaded inbound media). Authenticated and scoped to the caller's tenant — internal assets have no public or signed URL and are only readable by their owner.
|
|
15534
|
+
*/
|
|
15535
|
+
get: {
|
|
15536
|
+
parameters: {
|
|
15537
|
+
query?: never;
|
|
15538
|
+
header?: never;
|
|
15539
|
+
path: {
|
|
15540
|
+
/** @description Asset ID (e.g. "asset_01k…"). A trailing file extension is ignored. */
|
|
15541
|
+
assetId: string;
|
|
15542
|
+
};
|
|
15543
|
+
cookie?: never;
|
|
15544
|
+
};
|
|
15545
|
+
requestBody?: never;
|
|
15546
|
+
responses: {
|
|
15547
|
+
/** @description Asset content. Content-Type reflects the stored asset, defaulting to application/octet-stream. */
|
|
15548
|
+
200: {
|
|
15549
|
+
headers: {
|
|
15550
|
+
[name: string]: unknown;
|
|
15551
|
+
};
|
|
15552
|
+
content: {
|
|
15553
|
+
"application/octet-stream": string;
|
|
15554
|
+
};
|
|
15555
|
+
};
|
|
15556
|
+
/** @description Unauthorized */
|
|
15557
|
+
401: {
|
|
15558
|
+
headers: {
|
|
15559
|
+
[name: string]: unknown;
|
|
15560
|
+
};
|
|
15561
|
+
content: {
|
|
15562
|
+
"application/json": components["schemas"]["Error"];
|
|
15563
|
+
};
|
|
15564
|
+
};
|
|
15565
|
+
/** @description Insufficient permissions */
|
|
15566
|
+
403: {
|
|
15567
|
+
headers: {
|
|
15568
|
+
[name: string]: unknown;
|
|
15569
|
+
};
|
|
15570
|
+
content: {
|
|
15571
|
+
"application/json": components["schemas"]["Error"];
|
|
15572
|
+
};
|
|
15573
|
+
};
|
|
15574
|
+
/** @description Asset not found */
|
|
15575
|
+
404: {
|
|
15576
|
+
headers: {
|
|
15577
|
+
[name: string]: unknown;
|
|
15578
|
+
};
|
|
15579
|
+
content: {
|
|
15580
|
+
"application/json": components["schemas"]["Error"];
|
|
15581
|
+
};
|
|
15582
|
+
};
|
|
15583
|
+
/** @description Asset storage not configured */
|
|
15584
|
+
503: {
|
|
15585
|
+
headers: {
|
|
15586
|
+
[name: string]: unknown;
|
|
15587
|
+
};
|
|
15588
|
+
content: {
|
|
15589
|
+
"application/json": components["schemas"]["Error"];
|
|
15590
|
+
};
|
|
15591
|
+
};
|
|
15592
|
+
};
|
|
15593
|
+
};
|
|
15594
|
+
put?: never;
|
|
15595
|
+
post?: never;
|
|
15596
|
+
delete?: never;
|
|
15597
|
+
options?: never;
|
|
15598
|
+
head?: never;
|
|
15599
|
+
patch?: never;
|
|
15600
|
+
trace?: never;
|
|
15601
|
+
};
|
|
15483
15602
|
"/v1/logs": {
|
|
15484
15603
|
parameters: {
|
|
15485
15604
|
query?: never;
|
|
@@ -27156,6 +27275,12 @@ interface paths {
|
|
|
27156
27275
|
type: string;
|
|
27157
27276
|
updatedAt: string;
|
|
27158
27277
|
userId: string;
|
|
27278
|
+
warnings?: {
|
|
27279
|
+
/** @enum {string} */
|
|
27280
|
+
code: "KEY_RENAMED";
|
|
27281
|
+
from: string;
|
|
27282
|
+
to: string;
|
|
27283
|
+
}[];
|
|
27159
27284
|
};
|
|
27160
27285
|
};
|
|
27161
27286
|
};
|
|
@@ -27372,6 +27497,12 @@ interface paths {
|
|
|
27372
27497
|
id: string;
|
|
27373
27498
|
}[];
|
|
27374
27499
|
recordIds: string[];
|
|
27500
|
+
warnings?: {
|
|
27501
|
+
/** @enum {string} */
|
|
27502
|
+
code: "KEY_RENAMED";
|
|
27503
|
+
from: string;
|
|
27504
|
+
to: string;
|
|
27505
|
+
}[];
|
|
27375
27506
|
};
|
|
27376
27507
|
};
|
|
27377
27508
|
};
|
|
@@ -27841,6 +27972,12 @@ interface paths {
|
|
|
27841
27972
|
type: string;
|
|
27842
27973
|
}[];
|
|
27843
27974
|
success: boolean;
|
|
27975
|
+
warnings?: {
|
|
27976
|
+
/** @enum {string} */
|
|
27977
|
+
code: "KEY_RENAMED";
|
|
27978
|
+
from: string;
|
|
27979
|
+
to: string;
|
|
27980
|
+
}[];
|
|
27844
27981
|
};
|
|
27845
27982
|
};
|
|
27846
27983
|
};
|
|
@@ -28045,6 +28182,12 @@ interface paths {
|
|
|
28045
28182
|
type: string;
|
|
28046
28183
|
updatedAt: string;
|
|
28047
28184
|
userId: string;
|
|
28185
|
+
warnings?: {
|
|
28186
|
+
/** @enum {string} */
|
|
28187
|
+
code: "KEY_RENAMED";
|
|
28188
|
+
from: string;
|
|
28189
|
+
to: string;
|
|
28190
|
+
}[];
|
|
28048
28191
|
};
|
|
28049
28192
|
};
|
|
28050
28193
|
};
|
|
@@ -35374,6 +35517,7 @@ interface components {
|
|
|
35374
35517
|
};
|
|
35375
35518
|
/** @enum {string} */
|
|
35376
35519
|
type: "step_complete";
|
|
35520
|
+
unresolvedVariables?: string[];
|
|
35377
35521
|
} | {
|
|
35378
35522
|
error: string;
|
|
35379
35523
|
executionId?: string;
|
|
@@ -35857,6 +36001,7 @@ interface components {
|
|
|
35857
36001
|
};
|
|
35858
36002
|
/** @enum {string} */
|
|
35859
36003
|
type: "step_complete";
|
|
36004
|
+
unresolvedVariables?: string[];
|
|
35860
36005
|
} | {
|
|
35861
36006
|
error: string;
|
|
35862
36007
|
executionId?: string;
|
|
@@ -37460,6 +37605,7 @@ interface FlowAttachment {
|
|
|
37460
37605
|
order: number;
|
|
37461
37606
|
}
|
|
37462
37607
|
type RuntypeRecord = paths['/v1/records/{id}']['get']['responses'][200]['content']['application/json'];
|
|
37608
|
+
type RecordWriteResponse = paths['/v1/records']['post']['responses'][201]['content']['application/json'];
|
|
37463
37609
|
type RecordListItem = paths['/v1/records']['get']['responses'][200]['content']['application/json']['data'][number];
|
|
37464
37610
|
interface ApiKey {
|
|
37465
37611
|
id: string;
|
|
@@ -37564,6 +37710,12 @@ interface BulkEditResult {
|
|
|
37564
37710
|
interface BulkEditResponse {
|
|
37565
37711
|
data: BulkEditResult[];
|
|
37566
37712
|
recordIds?: number[];
|
|
37713
|
+
/** Deduplicated metadata key-rename notices across the edited records. */
|
|
37714
|
+
warnings?: {
|
|
37715
|
+
code: 'KEY_RENAMED';
|
|
37716
|
+
from: string;
|
|
37717
|
+
to: string;
|
|
37718
|
+
}[];
|
|
37567
37719
|
}
|
|
37568
37720
|
/** A single unified step-level execution result for a record. */
|
|
37569
37721
|
interface RecordStepResult {
|
|
@@ -37726,7 +37878,23 @@ interface ReasoningContentPart {
|
|
|
37726
37878
|
text: string;
|
|
37727
37879
|
providerOptions?: Record<string, unknown>;
|
|
37728
37880
|
}
|
|
37729
|
-
|
|
37881
|
+
/**
|
|
37882
|
+
* Reference to large media offloaded to internal, tenant-scoped storage (when
|
|
37883
|
+
* the `enable-asset-offload` feature is active for the account). Persisted in
|
|
37884
|
+
* place of inline base64 and resolved back to bytes server-side at
|
|
37885
|
+
* model-execution time. Read-side code that switches on `part.type` should treat
|
|
37886
|
+
* `asset_ref` as opaque — its bytes are not inline.
|
|
37887
|
+
*/
|
|
37888
|
+
interface AssetReferenceContentPart {
|
|
37889
|
+
type: 'asset_ref';
|
|
37890
|
+
assetId: string;
|
|
37891
|
+
orgKey?: string;
|
|
37892
|
+
refKind?: 'image' | 'file';
|
|
37893
|
+
mimeType?: string;
|
|
37894
|
+
sizeBytes?: number;
|
|
37895
|
+
filename?: string;
|
|
37896
|
+
}
|
|
37897
|
+
type MessageContent = string | Array<TextContentPart | ImageContentPart | FileContentPart | ReasoningContentPart | AssetReferenceContentPart>;
|
|
37730
37898
|
/**
|
|
37731
37899
|
* Options for upsert mode - controls conflict detection and versioning
|
|
37732
37900
|
*/
|
|
@@ -41155,11 +41323,11 @@ declare class RecordsEndpoint {
|
|
|
41155
41323
|
/**
|
|
41156
41324
|
* Create a new record
|
|
41157
41325
|
*/
|
|
41158
|
-
create(data: CreateRecordRequest): Promise<
|
|
41326
|
+
create(data: CreateRecordRequest): Promise<RecordWriteResponse>;
|
|
41159
41327
|
/**
|
|
41160
41328
|
* Update an existing record
|
|
41161
41329
|
*/
|
|
41162
|
-
update(id: string, data: Partial<CreateRecordRequest>): Promise<
|
|
41330
|
+
update(id: string, data: Partial<CreateRecordRequest>): Promise<RecordWriteResponse>;
|
|
41163
41331
|
/**
|
|
41164
41332
|
* Delete a record
|
|
41165
41333
|
*/
|
|
@@ -45039,4 +45207,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
45039
45207
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
45040
45208
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
45041
45209
|
|
|
45042
|
-
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
|
45210
|
+
export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
|
package/dist/index.mjs
CHANGED
|
@@ -1404,6 +1404,7 @@ function collectStepNonPortableToolRefs(config, path) {
|
|
|
1404
1404
|
const found = [];
|
|
1405
1405
|
const tools = config.tools;
|
|
1406
1406
|
const isAccountScoped = (ref) => typeof ref === "string" && ref.startsWith("tool_");
|
|
1407
|
+
const isRawId = (ref, prefix) => typeof ref === "string" && ref.startsWith(prefix);
|
|
1407
1408
|
const scanArray = (value, subPath) => {
|
|
1408
1409
|
if (!Array.isArray(value)) return;
|
|
1409
1410
|
value.forEach((ref, i) => {
|
|
@@ -1429,10 +1430,25 @@ function collectStepNonPortableToolRefs(config, path) {
|
|
|
1429
1430
|
if (isPlainObject(tools.codeModeConfig)) {
|
|
1430
1431
|
scanArray(tools.codeModeConfig.toolPool, `${path}.tools.codeModeConfig.toolPool`);
|
|
1431
1432
|
}
|
|
1433
|
+
if (Array.isArray(tools.runtimeTools)) {
|
|
1434
|
+
tools.runtimeTools.forEach((runtimeTool, i) => {
|
|
1435
|
+
if (!isPlainObject(runtimeTool) || !isPlainObject(runtimeTool.config)) return;
|
|
1436
|
+
const base = `${path}.tools.runtimeTools[${i}].config`;
|
|
1437
|
+
const rtConfig = runtimeTool.config;
|
|
1438
|
+
if (runtimeTool.toolType === "subagent" && isRawId(rtConfig.agentId, "agent_")) {
|
|
1439
|
+
found.push(`${base}.agentId`);
|
|
1440
|
+
} else if (runtimeTool.toolType === "flow" && isRawId(rtConfig.flowId, "flow_")) {
|
|
1441
|
+
found.push(`${base}.flowId`);
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1432
1445
|
}
|
|
1433
1446
|
if (isAccountScoped(config.toolId)) {
|
|
1434
1447
|
found.push(`${path}.toolId`);
|
|
1435
1448
|
}
|
|
1449
|
+
if (isRawId(config.agentId, "agent_")) {
|
|
1450
|
+
found.push(`${path}.agentId`);
|
|
1451
|
+
}
|
|
1436
1452
|
for (const branch of ["trueSteps", "falseSteps"]) {
|
|
1437
1453
|
const nested = config[branch];
|
|
1438
1454
|
if (!Array.isArray(nested)) continue;
|
|
@@ -1486,7 +1502,7 @@ function defineFlow(input) {
|
|
|
1486
1502
|
const nonPortable = collectStepNonPortableToolRefs(config, `steps[${index}].config`);
|
|
1487
1503
|
if (nonPortable.length > 0) {
|
|
1488
1504
|
throw new Error(
|
|
1489
|
-
`defineFlow: account-scoped
|
|
1505
|
+
`defineFlow: account-scoped reference(s) at ${nonPortable.join(", ")}. Definitions must be environment-portable \u2014 tool_\u2026/agent_\u2026/flow_\u2026 IDs belong to one account/environment. Use builtin:/platform:/mcp: references, or reference a saved resource by name \u2014 tool:<name>, agent:<name>, or flow:<name> instead.`
|
|
1490
1506
|
);
|
|
1491
1507
|
}
|
|
1492
1508
|
}
|
|
@@ -3379,6 +3395,18 @@ function collectNonPortableToolRefs(config) {
|
|
|
3379
3395
|
if (isPlainObject2(tools.codeModeConfig)) {
|
|
3380
3396
|
scanArray(tools.codeModeConfig.toolPool, "tools.codeModeConfig.toolPool");
|
|
3381
3397
|
}
|
|
3398
|
+
if (Array.isArray(tools.runtimeTools)) {
|
|
3399
|
+
tools.runtimeTools.forEach((runtimeTool, i) => {
|
|
3400
|
+
if (!isPlainObject2(runtimeTool) || !isPlainObject2(runtimeTool.config)) return;
|
|
3401
|
+
const base = `tools.runtimeTools[${i}].config`;
|
|
3402
|
+
const rtConfig = runtimeTool.config;
|
|
3403
|
+
if (runtimeTool.toolType === "subagent" && typeof rtConfig.agentId === "string" && rtConfig.agentId.startsWith("agent_")) {
|
|
3404
|
+
found.push(`${base}.agentId`);
|
|
3405
|
+
} else if (runtimeTool.toolType === "flow" && typeof rtConfig.flowId === "string" && rtConfig.flowId.startsWith("flow_")) {
|
|
3406
|
+
found.push(`${base}.flowId`);
|
|
3407
|
+
}
|
|
3408
|
+
});
|
|
3409
|
+
}
|
|
3382
3410
|
return found;
|
|
3383
3411
|
}
|
|
3384
3412
|
function defineAgent(input) {
|
|
@@ -3402,7 +3430,7 @@ function defineAgent(input) {
|
|
|
3402
3430
|
const nonPortable = collectNonPortableToolRefs(config);
|
|
3403
3431
|
if (nonPortable.length > 0) {
|
|
3404
3432
|
throw new Error(
|
|
3405
|
-
`defineAgent: account-scoped
|
|
3433
|
+
`defineAgent: account-scoped reference(s) at ${nonPortable.join(", ")}. Definitions must be environment-portable \u2014 tool_\u2026/agent_\u2026/flow_\u2026 IDs belong to one account/environment. Use builtin:/platform:/mcp: references, or reference a saved resource by name \u2014 tool:<name>, agent:<name>, or flow:<name> instead.`
|
|
3406
3434
|
);
|
|
3407
3435
|
}
|
|
3408
3436
|
return {
|
|
@@ -9746,7 +9774,8 @@ Do NOT redo any of the above work.`
|
|
|
9746
9774
|
});
|
|
9747
9775
|
};
|
|
9748
9776
|
const buildNativeCompactionEvent = (mode, breakdown) => {
|
|
9749
|
-
|
|
9777
|
+
const gateTokens = breakdown.sendEstimatedInputTokens ?? breakdown.estimatedInputTokens;
|
|
9778
|
+
if (resolvedStrategy !== "provider_native" || typeof compactionOptions?.autoCompactTokenThreshold !== "number" || compactionOptions.autoCompactTokenThreshold <= 0 || gateTokens < compactionOptions.autoCompactTokenThreshold) {
|
|
9750
9779
|
return void 0;
|
|
9751
9780
|
}
|
|
9752
9781
|
return {
|
package/package.json
CHANGED