@sentry/junior-plugin-api 0.308.0 → 0.310.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/dist/index.d.ts +103 -0
- package/dist/index.js +190 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2922,6 +2922,109 @@ type UserPromptContext = Pick<PluginContext, "db" | "log" | "plugin"> & {
|
|
|
2922
2922
|
} | undefined>;
|
|
2923
2923
|
};
|
|
2924
2924
|
};
|
|
2925
|
+
/**
|
|
2926
|
+
* The one writer, escape, and reader for tags in model-read text. Core and
|
|
2927
|
+
* plugins build every prompt tag here, so all tags fence untrusted text the
|
|
2928
|
+
* same way, and code reads stored history back with the same rules. Lint
|
|
2929
|
+
* rules ban tag literals, tag regexes, and entity escapes elsewhere.
|
|
2930
|
+
* `policies/prompt-markers.md` in getsentry/junior owns the tag rules.
|
|
2931
|
+
*/
|
|
2932
|
+
/** Attribute values of one tag. An undefined or empty value is left out. */
|
|
2933
|
+
export type PromptTagAttributes = Record<string, string | number | undefined>;
|
|
2934
|
+
/**
|
|
2935
|
+
* Escape text that a person, an agent, a model, or a provider wrote, for a
|
|
2936
|
+
* tag body. Escaping `<` also keeps it from imitating one of our tags.
|
|
2937
|
+
* Quotes stay as written.
|
|
2938
|
+
*/
|
|
2939
|
+
export declare function escapeTagText(value: string): string;
|
|
2940
|
+
/**
|
|
2941
|
+
* Escape text and both quote characters. Older tag kinds, such as
|
|
2942
|
+
* `<current-instruction>` and `<thread-context>`, still render this way, so
|
|
2943
|
+
* their bytes stay the same for the prompt cache. Each kind moves to
|
|
2944
|
+
* `escapeTagText` when it drops its attributes.
|
|
2945
|
+
*/
|
|
2946
|
+
export declare function escapeTagTextAndQuotes(value: string): string;
|
|
2947
|
+
/** Read back text escaped by any escape in this module. */
|
|
2948
|
+
export declare function unescapeTagText(value: string): string;
|
|
2949
|
+
/**
|
|
2950
|
+
* Escape each closing-tag start (`</`) in text that the runtime writes into a
|
|
2951
|
+
* job tag. Other markup, such as a Slack mention `<@U123>`, stays as written
|
|
2952
|
+
* so the model can copy it.
|
|
2953
|
+
*/
|
|
2954
|
+
export declare function escapeClosingTags(value: string): string;
|
|
2955
|
+
/** Read back text escaped by `escapeClosingTags`. */
|
|
2956
|
+
export declare function unescapeClosingTags(value: string): string;
|
|
2957
|
+
/**
|
|
2958
|
+
* Escape copies of one closing tag in raw text, such as `AGENTS.md` or tool
|
|
2959
|
+
* declarations, so the text cannot end the tag around it.
|
|
2960
|
+
*/
|
|
2961
|
+
export declare function escapeClosingTag(value: string, name: string): string;
|
|
2962
|
+
/** Read back text escaped by `escapeClosingTag`. */
|
|
2963
|
+
export declare function unescapeClosingTag(value: string, name: string): string;
|
|
2964
|
+
/**
|
|
2965
|
+
* Encode values that the model passes to tools unchanged. The JSON stays
|
|
2966
|
+
* valid with the same values, and it cannot close the tag around it.
|
|
2967
|
+
*/
|
|
2968
|
+
export declare function tagJson(value: unknown): string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Render the opening tag of one tag, such as the start of a block that
|
|
2971
|
+
* stored history or a database query looks for.
|
|
2972
|
+
*/
|
|
2973
|
+
export declare function openingTag(name: string, attributes?: PromptTagAttributes, escapeAttribute?: (value: string) => string): string;
|
|
2974
|
+
/**
|
|
2975
|
+
* Render one tag with the opening and closing tags on their own lines.
|
|
2976
|
+
* Attribute values are escaped. Body lines are joined as given, so the
|
|
2977
|
+
* caller escapes untrusted text. Only tag kinds in
|
|
2978
|
+
* `tools/oxlint/junior/prompt-tag-attributes.json` may pass attributes.
|
|
2979
|
+
*/
|
|
2980
|
+
export declare function renderTag(name: string, attributes: PromptTagAttributes, body: readonly string[], escapeAttribute?: (value: string) => string): string;
|
|
2981
|
+
/** Render one short tag on one line, such as `<summary>`, around escaped text. */
|
|
2982
|
+
export declare function renderInlineTag(name: string, text: string, attributes?: PromptTagAttributes): string;
|
|
2983
|
+
/** Render one tag with no body, such as a truncation marker. */
|
|
2984
|
+
export declare function renderEmptyTag(name: string, attributes: PromptTagAttributes): string;
|
|
2985
|
+
/**
|
|
2986
|
+
* Indent only the opening and closing lines of a rendered tag, for a child
|
|
2987
|
+
* tag in a list whose body text keeps its bytes.
|
|
2988
|
+
*/
|
|
2989
|
+
export declare function indentTagLines(block: string, prefix: string): string;
|
|
2990
|
+
/** One tag that `findTag` found, with offsets into the text. */
|
|
2991
|
+
export interface PromptTagBlock {
|
|
2992
|
+
/** Raw body between the opening and closing tags. */
|
|
2993
|
+
body: string;
|
|
2994
|
+
/** Offset just after the closing tag. */
|
|
2995
|
+
end: number;
|
|
2996
|
+
/** The opening tag, with its raw attributes. */
|
|
2997
|
+
opening: string;
|
|
2998
|
+
/** Offset of the opening tag. */
|
|
2999
|
+
start: number;
|
|
3000
|
+
}
|
|
3001
|
+
/**
|
|
3002
|
+
* Find the first tag of `name` whose opening tag starts a line, at or after
|
|
3003
|
+
* `from`. Its body ends at the next closing tag. Escaped bodies cannot hold
|
|
3004
|
+
* a copy of the closing tag, so that is the real end.
|
|
3005
|
+
*/
|
|
3006
|
+
export declare function findTag(text: string, name: string, from?: number): PromptTagBlock | undefined;
|
|
3007
|
+
/** Find every tag of `name`, in order. */
|
|
3008
|
+
export declare function findTags(text: string, name: string): PromptTagBlock[];
|
|
3009
|
+
/**
|
|
3010
|
+
* Return the raw body when the whole text is one tag of `name`, or
|
|
3011
|
+
* undefined. A prompt part that holds one runtime input has this shape.
|
|
3012
|
+
*/
|
|
3013
|
+
export declare function readTag(text: string, name: string): string | undefined;
|
|
3014
|
+
/** Return whether the text starts with an opening tag of one of `names`. */
|
|
3015
|
+
export declare function startsWithTag(text: string, names: readonly string[]): boolean;
|
|
3016
|
+
/**
|
|
3017
|
+
* Return whether the text holds an opening or closing tag of one of
|
|
3018
|
+
* `names` anywhere, even mid-line. Use it to keep runtime markers out of
|
|
3019
|
+
* text that the runtime stores, not to read a tag.
|
|
3020
|
+
*/
|
|
3021
|
+
export declare function mentionsTag(text: string, names: readonly string[]): boolean;
|
|
3022
|
+
/**
|
|
3023
|
+
* Remove each tag of `names` and the line breaks before it. The body runs to
|
|
3024
|
+
* the last closing tag of that name: older history has unescaped bodies, and
|
|
3025
|
+
* a copy of the closing tag in one of them must not end the block early.
|
|
3026
|
+
*/
|
|
3027
|
+
export declare function stripTags(text: string, names: readonly string[]): string;
|
|
2925
3028
|
export type DestinationVisibility = z.output<typeof destinationVisibilitySchema>;
|
|
2926
3029
|
export type DispatchOptions = z.output<typeof dispatchOptionsSchema>;
|
|
2927
3030
|
export type IdentityDispatchOptions = z.output<typeof identityDispatchOptionsSchema>;
|
package/dist/index.js
CHANGED
|
@@ -1360,6 +1360,195 @@ function definePromptContext(definition) {
|
|
|
1360
1360
|
};
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
+
// src/prompt-tags.ts
|
|
1364
|
+
/**
|
|
1365
|
+
* Escape text that a person, an agent, a model, or a provider wrote, for a
|
|
1366
|
+
* tag body. Escaping `<` also keeps it from imitating one of our tags.
|
|
1367
|
+
* Quotes stay as written.
|
|
1368
|
+
*/
|
|
1369
|
+
function escapeTagText(value) {
|
|
1370
|
+
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1371
|
+
}
|
|
1372
|
+
/** Escape free text, such as a name or a title, for an attribute value. */
|
|
1373
|
+
function escapeTagAttribute(value) {
|
|
1374
|
+
return escapeTagText(value).replaceAll("\"", """);
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Escape text and both quote characters. Older tag kinds, such as
|
|
1378
|
+
* `<current-instruction>` and `<thread-context>`, still render this way, so
|
|
1379
|
+
* their bytes stay the same for the prompt cache. Each kind moves to
|
|
1380
|
+
* `escapeTagText` when it drops its attributes.
|
|
1381
|
+
*/
|
|
1382
|
+
function escapeTagTextAndQuotes(value) {
|
|
1383
|
+
return escapeTagAttribute(value).replaceAll("'", "'");
|
|
1384
|
+
}
|
|
1385
|
+
/** Read back text escaped by any escape in this module. */
|
|
1386
|
+
function unescapeTagText(value) {
|
|
1387
|
+
return value.replaceAll(""", "\"").replaceAll("'", "'").replaceAll(">", ">").replaceAll("<", "<").replaceAll("&", "&");
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Escape each closing-tag start (`</`) in text that the runtime writes into a
|
|
1391
|
+
* job tag. Other markup, such as a Slack mention `<@U123>`, stays as written
|
|
1392
|
+
* so the model can copy it.
|
|
1393
|
+
*/
|
|
1394
|
+
function escapeClosingTags(value) {
|
|
1395
|
+
return value.replaceAll("</", "</");
|
|
1396
|
+
}
|
|
1397
|
+
/** Read back text escaped by `escapeClosingTags`. */
|
|
1398
|
+
function unescapeClosingTags(value) {
|
|
1399
|
+
return value.replaceAll("</", "</");
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* Escape copies of one closing tag in raw text, such as `AGENTS.md` or tool
|
|
1403
|
+
* declarations, so the text cannot end the tag around it.
|
|
1404
|
+
*/
|
|
1405
|
+
function escapeClosingTag(value, name) {
|
|
1406
|
+
return value.replaceAll(`</${name}>`, `</${name}>`);
|
|
1407
|
+
}
|
|
1408
|
+
/** Read back text escaped by `escapeClosingTag`. */
|
|
1409
|
+
function unescapeClosingTag(value, name) {
|
|
1410
|
+
return value.replaceAll(`</${name}>`, `</${name}>`);
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Encode values that the model passes to tools unchanged. The JSON stays
|
|
1414
|
+
* valid with the same values, and it cannot close the tag around it.
|
|
1415
|
+
*/
|
|
1416
|
+
function tagJson(value) {
|
|
1417
|
+
return JSON.stringify(value).replaceAll("&", "\\u0026").replaceAll("<", "\\u003c").replaceAll(">", "\\u003e");
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Render the opening tag of one tag, such as the start of a block that
|
|
1421
|
+
* stored history or a database query looks for.
|
|
1422
|
+
*/
|
|
1423
|
+
function openingTag(name, attributes = {}, escapeAttribute = escapeTagAttribute) {
|
|
1424
|
+
const rendered = Object.entries(attributes).flatMap(([key, value]) => value === void 0 || value === "" ? [] : [`${key}="${escapeAttribute(String(value))}"`]);
|
|
1425
|
+
return rendered.length ? `<${name} ${rendered.join(" ")}>` : `<${name}>`;
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Render one tag with the opening and closing tags on their own lines.
|
|
1429
|
+
* Attribute values are escaped. Body lines are joined as given, so the
|
|
1430
|
+
* caller escapes untrusted text. Only tag kinds in
|
|
1431
|
+
* `tools/oxlint/junior/prompt-tag-attributes.json` may pass attributes.
|
|
1432
|
+
*/
|
|
1433
|
+
function renderTag(name, attributes, body, escapeAttribute = escapeTagAttribute) {
|
|
1434
|
+
return [
|
|
1435
|
+
openingTag(name, attributes, escapeAttribute),
|
|
1436
|
+
...body,
|
|
1437
|
+
`</${name}>`
|
|
1438
|
+
].join("\n");
|
|
1439
|
+
}
|
|
1440
|
+
/** Render one short tag on one line, such as `<summary>`, around escaped text. */
|
|
1441
|
+
function renderInlineTag(name, text, attributes = {}) {
|
|
1442
|
+
return `${openingTag(name, attributes, escapeTagAttribute)}${text}</${name}>`;
|
|
1443
|
+
}
|
|
1444
|
+
/** Render one tag with no body, such as a truncation marker. */
|
|
1445
|
+
function renderEmptyTag(name, attributes) {
|
|
1446
|
+
return `${openingTag(name, attributes, escapeTagAttribute).slice(0, -1)} />`;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Indent only the opening and closing lines of a rendered tag, for a child
|
|
1450
|
+
* tag in a list whose body text keeps its bytes.
|
|
1451
|
+
*/
|
|
1452
|
+
function indentTagLines(block, prefix) {
|
|
1453
|
+
const lines = block.split("\n");
|
|
1454
|
+
const last = lines.length - 1;
|
|
1455
|
+
return lines.map((line, index) => index === 0 || index === last ? `${prefix}${line}` : line).join("\n");
|
|
1456
|
+
}
|
|
1457
|
+
function isLineStart(text, index) {
|
|
1458
|
+
for (let cursor = index - 1; cursor >= 0; cursor -= 1) {
|
|
1459
|
+
const char = text[cursor];
|
|
1460
|
+
if (char === "\n") return true;
|
|
1461
|
+
if (char !== " " && char !== " ") return false;
|
|
1462
|
+
}
|
|
1463
|
+
return true;
|
|
1464
|
+
}
|
|
1465
|
+
function openingTagIndex(text, name, from) {
|
|
1466
|
+
const prefix = `<${name}`;
|
|
1467
|
+
for (let index = text.indexOf(prefix, from); index >= 0; index = text.indexOf(prefix, index + 1)) {
|
|
1468
|
+
const next = text[index + prefix.length];
|
|
1469
|
+
if ((next === ">" || next === " " || next === "\n") && isLineStart(text, index)) return index;
|
|
1470
|
+
}
|
|
1471
|
+
return -1;
|
|
1472
|
+
}
|
|
1473
|
+
function blockAt(text, start, closeIndex, name) {
|
|
1474
|
+
const openingEnd = text.indexOf(">", start) + 1;
|
|
1475
|
+
let bodyStart = openingEnd;
|
|
1476
|
+
let bodyEnd = closeIndex;
|
|
1477
|
+
if (text[bodyStart] === "\n") bodyStart += 1;
|
|
1478
|
+
if (bodyEnd > bodyStart && text[bodyEnd - 1] === "\n") bodyEnd -= 1;
|
|
1479
|
+
return {
|
|
1480
|
+
body: text.slice(bodyStart, bodyEnd),
|
|
1481
|
+
end: closeIndex + `</${name}>`.length,
|
|
1482
|
+
opening: text.slice(start, openingEnd),
|
|
1483
|
+
start
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Find the first tag of `name` whose opening tag starts a line, at or after
|
|
1488
|
+
* `from`. Its body ends at the next closing tag. Escaped bodies cannot hold
|
|
1489
|
+
* a copy of the closing tag, so that is the real end.
|
|
1490
|
+
*/
|
|
1491
|
+
function findTag(text, name, from = 0) {
|
|
1492
|
+
const start = openingTagIndex(text, name, from);
|
|
1493
|
+
if (start < 0) return void 0;
|
|
1494
|
+
const openingEnd = text.indexOf(">", start);
|
|
1495
|
+
if (openingEnd < 0) return void 0;
|
|
1496
|
+
const closeIndex = text.indexOf(`</${name}>`, openingEnd + 1);
|
|
1497
|
+
if (closeIndex < 0) return void 0;
|
|
1498
|
+
return blockAt(text, start, closeIndex, name);
|
|
1499
|
+
}
|
|
1500
|
+
/** Find every tag of `name`, in order. */
|
|
1501
|
+
function findTags(text, name) {
|
|
1502
|
+
const blocks = [];
|
|
1503
|
+
for (let block = findTag(text, name); block; block = findTag(text, name, block.end)) blocks.push(block);
|
|
1504
|
+
return blocks;
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
* Return the raw body when the whole text is one tag of `name`, or
|
|
1508
|
+
* undefined. A prompt part that holds one runtime input has this shape.
|
|
1509
|
+
*/
|
|
1510
|
+
function readTag(text, name) {
|
|
1511
|
+
if (!startsWithTag(text, [name])) return void 0;
|
|
1512
|
+
const closing = `</${name}>`;
|
|
1513
|
+
if (!text.endsWith(closing)) return void 0;
|
|
1514
|
+
return blockAt(text, 0, text.length - closing.length, name).body;
|
|
1515
|
+
}
|
|
1516
|
+
/** Return whether the text starts with an opening tag of one of `names`. */
|
|
1517
|
+
function startsWithTag(text, names) {
|
|
1518
|
+
return names.some((name) => text.startsWith(`<${name}>`) || text.startsWith(`<${name} `));
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Return whether the text holds an opening or closing tag of one of
|
|
1522
|
+
* `names` anywhere, even mid-line. Use it to keep runtime markers out of
|
|
1523
|
+
* text that the runtime stores, not to read a tag.
|
|
1524
|
+
*/
|
|
1525
|
+
function mentionsTag(text, names) {
|
|
1526
|
+
return names.some((name) => [`<${name}`, `</${name}`].some((prefix) => {
|
|
1527
|
+
for (let index = text.indexOf(prefix); index >= 0; index = text.indexOf(prefix, index + 1)) {
|
|
1528
|
+
const next = text[index + prefix.length];
|
|
1529
|
+
if (next === void 0 || !/[\w-]/.test(next)) return true;
|
|
1530
|
+
}
|
|
1531
|
+
return false;
|
|
1532
|
+
}));
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Remove each tag of `names` and the line breaks before it. The body runs to
|
|
1536
|
+
* the last closing tag of that name: older history has unescaped bodies, and
|
|
1537
|
+
* a copy of the closing tag in one of them must not end the block early.
|
|
1538
|
+
*/
|
|
1539
|
+
function stripTags(text, names) {
|
|
1540
|
+
let result = text;
|
|
1541
|
+
for (const name of names) for (let start = openingTagIndex(result, name, 0); start >= 0; start = openingTagIndex(result, name, start)) {
|
|
1542
|
+
const closing = `</${name}>`;
|
|
1543
|
+
const closeIndex = result.lastIndexOf(closing);
|
|
1544
|
+
if (closeIndex < start) break;
|
|
1545
|
+
let cut = start;
|
|
1546
|
+
while (cut > 0 && result[cut - 1] === "\n") cut -= 1;
|
|
1547
|
+
result = result.slice(0, cut) + result.slice(closeIndex + closing.length);
|
|
1548
|
+
start = cut;
|
|
1549
|
+
}
|
|
1550
|
+
return result;
|
|
1551
|
+
}
|
|
1363
1552
|
// src/events.ts
|
|
1364
1553
|
const EVENT_SUMMARY_MAX_LENGTH = 4e3;
|
|
1365
1554
|
const EVENT_TEXT_MAX_LENGTH = 8e3;
|
|
@@ -2587,4 +2776,4 @@ const pluginUserPageInputSchema = z.object({
|
|
|
2587
2776
|
limit: z.number().int().min(1).max(50),
|
|
2588
2777
|
query: pluginUserPageQuerySchema
|
|
2589
2778
|
}).strict();
|
|
2590
|
-
export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, OBJECT_FACTS_MAX_BYTES, OBJECT_SUMMARY_MAX_LENGTH, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, decodeObjectImageRef, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, encodeObjectImageRef, enforceEgressPolicy, eventAuthorSchema, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, formatDuration, getSourceKey, identityDispatchOptionsSchema, identitySchema, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsBytes, objectFactsMatchType, objectFactsSchema, objectIconPath, objectIconPaths, objectLinkFilterMatches, objectLinkFilterSchema, objectLinkFilterSpecificity, objectPresentation, objectSummary, objectTypeSchema, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuditAttributesSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginToolReplySchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, subscribableResourceSchema, systemActorSchema, taskOutcomeSchema, toolApprovalModeSchema, userSchema, watchResultSchema, webActorSchema, webSourceSchema, withToolContext, zodTool };
|
|
2779
|
+
export { EVENT_DATA_MAX_JSON_BYTES, EVENT_DATA_MAX_KEYS, EVENT_GUIDANCE_MAX_LENGTH, EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, EgressAuthRequired, EgressPolicyDenied, OBJECT_FACTS_MAX_BYTES, OBJECT_SUMMARY_MAX_LENGTH, PluginToolInputError, REQUIRED_TOOL_ANNOTATION_KEYS, actorSchema, actorUserIdSchema, agentEventKeys, agentEventMatchKey, agentEventMatchSchema, agentInvocationSourceSchema, anyResourceEvents, anyResourceMatchFields, codeChangeInputSchema, codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventIconSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, conversationSidebarIconSchema, createEventSource, createLocalSource, createSlackSource, createWebSource, declaredEventKeys, decodeObjectImageRef, defineConversationEvent, defineJuniorPlugin, definePluginTool, definePromptContext, describeEventTrigger, destinationSchema, destinationVisibilitySchema, dispatchOptionsSchema, encodeObjectImageRef, enforceEgressPolicy, escapeClosingTag, escapeClosingTags, escapeTagText, escapeTagTextAndQuotes, eventAuthorSchema, eventAutomationSourceSchema, eventDataSchema, eventIdentifierSchema, eventInputSchema, eventMatchFieldSchema, eventMatchFieldsSchema, eventMatchFilterText, eventMatchSchema, eventMatches, eventPersonSchema, eventReachSchema, eventSchema, eventSourceSchema, eventTriggerChoices, eventTriggerFiltersText, eventTriggerProblems, eventTriggerText, eventTypeSchema, eventTypeText, eventsWithoutMatchField, findTag, findTags, formatDuration, getSourceKey, identityDispatchOptionsSchema, identitySchema, indentTagLines, isPluginModelCostEventName, isPrivateSource, isSlackDestination, localActorSchema, localDestinationSchema, localSourceSchema, locationSchema, mentionsTag, mergeEventMatchFields, missingToolAnnotationKeys, nonBlankStringSchema, normalizeEventIdentifier, normalizeEventMatch, objectAnnotationSchema, objectFactFields, objectFactsBytes, objectFactsMatchType, objectFactsSchema, objectIconPath, objectIconPaths, objectLinkFilterMatches, objectLinkFilterSchema, objectLinkFilterSpecificity, objectPresentation, objectSummary, objectTypeSchema, openingTag, ownedObjectAnnotationSchema, parseShellCommands, platformSchema, pluginApiRouteRequestContextSchema, pluginAuditAttributesSchema, pluginAuthorizationSchema, pluginCredentialHeaderTransformSchema, pluginCredentialLeaseSchema, pluginCredentialResultSchema, pluginCredentialSubjectSchema, pluginDispatchSourceSchema, pluginEventDeclarationSchema, pluginEventTypeSchema, pluginEventsSchema, pluginGrantSchema, pluginModelCostEventNames, pluginProviderAccountSchema, pluginRunContextSchema, pluginRunTranscriptEntrySchema, pluginRunTranscriptProvenanceSchema, pluginStoredTokensSchema, pluginToolContentSchema, pluginToolContinuationSchema, pluginToolOutputSchema, pluginToolReplySchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageInputSchema, pluginUserPageLinkSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema, promptContextSchema, promptMessageSchema, readTag, renderEmptyTag, renderInlineTag, renderTag, replyAttributionSchema, resourceLinkAnnotationSchema, resourceTypeSchema, scheduledAutomationSourceSchema, slackActorSchema, slackDestinationSchema, slackLocationSchema, slackSourceSchema, sourceSchema, sourceVisibilitySchema, stableEventMatchKey, startsWithTag, stripTags, subscribableResourceSchema, systemActorSchema, tagJson, taskOutcomeSchema, toolApprovalModeSchema, unescapeClosingTag, unescapeClosingTags, unescapeTagText, userSchema, watchResultSchema, webActorSchema, webSourceSchema, withToolContext, zodTool };
|