apps 0.0.1-beta.73 → 0.0.1-beta.74
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/framework-reference.json +1 -1
- package/js/{chunk-G7L5DHQX.js → chunk-2QWOG4UJ.js} +2 -2
- package/js/{chunk-LTF4TLMO.js → chunk-AE45SVBH.js} +2 -2
- package/js/{chunk-JW5LYSER.js → chunk-F2OAC6GE.js} +86 -5
- package/js/{chunk-3R3KFCDU.js → chunk-JSWN4D6V.js} +2 -2
- package/js/{chunk-ZEJ3IKEC.js → chunk-OABWTKGG.js} +1 -1
- package/js/{chunk-QGHGYH5V.js → chunk-PZ535RJX.js} +2 -2
- package/js/{chunk-OBYMFSWA.js → chunk-TSPJFGA6.js} +2 -2
- package/js/{chunk-WCVV4PPS.js → chunk-UCQBJUA5.js} +4 -4
- package/js/contracts.js +3 -1
- package/js/effect.js +5 -5
- package/js/graphql.js +6 -6
- package/js/host.js +5 -5
- package/js/index.js +3 -3
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +8 -8
- package/js/openapi.js +4 -4
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/elicitation.d.ts +17 -1
- package/types/apps/src/contracts/host.d.ts +1 -1
|
@@ -81,6 +81,22 @@ export declare const ApprovalResponse: Schema.Union<readonly [Schema.Struct<{
|
|
|
81
81
|
readonly action: Schema.Literals<readonly ["cancel", "decline"]>;
|
|
82
82
|
}>]>;
|
|
83
83
|
export type ApprovalResponse = typeof ApprovalResponse.Type;
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* UTF-16 code units of pretty-printed arguments the saved consent prompt shows. Arguments within it
|
|
86
|
+
* are shown exactly; longer ones are shortened, so a pending request holds the arguments once and
|
|
87
|
+
* stays small however large the call. The saved call keeps the exact arguments, and surfaces with
|
|
88
|
+
* room for them show those instead; see `exactApprovalElicitation`.
|
|
89
|
+
*/
|
|
90
|
+
export declare const approvalPreviewChars = 4000;
|
|
91
|
+
/**
|
|
92
|
+
* The policy prompt with the exact arguments, or undefined when their pretty-printed JSON is longer
|
|
93
|
+
* than `maxChars` code units. Its work stops at that bound. Includes no account credentials.
|
|
94
|
+
*/
|
|
95
|
+
export declare const exactApprovalElicitation: (toolName: string, input: JsonValue, maxChars: number) => ApprovalElicitation | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* The policy prompt saved with a pending call: the exact arguments when they fit
|
|
98
|
+
* `approvalPreviewChars`, otherwise long strings shortened with their length stated. Hosts build it
|
|
99
|
+
* from the call they saved, so it always describes the exact call approval runs.
|
|
100
|
+
*/
|
|
85
101
|
export declare const approvalElicitation: (toolName: string, input: JsonValue) => ApprovalElicitation;
|
|
86
102
|
export {};
|
|
@@ -16,7 +16,7 @@ import type { AppSqlStorage } from "./sql.js";
|
|
|
16
16
|
import type { InvocationTelemetry } from "../../../telemetry/src/index.js";
|
|
17
17
|
export { type AppSqlStorage, type Sql, type SqlCursor, type SqlReader, type SqlRow, type SqlValue, } from "./sql.js";
|
|
18
18
|
import { ElicitationFailed, type ElicitationHandler } from "./elicitation.js";
|
|
19
|
-
export { ElicitationLimits, defaultElicitationLimits, FormElicitation, ElicitationResponse, ElicitationReply, ElicitationFailed, type ElicitationHandler, ApprovalElicitation, ApprovalResponse, approvalElicitation, } from "./elicitation.js";
|
|
19
|
+
export { ElicitationLimits, defaultElicitationLimits, FormElicitation, ElicitationResponse, ElicitationReply, ElicitationFailed, type ElicitationHandler, ApprovalElicitation, ApprovalResponse, approvalElicitation, exactApprovalElicitation, } from "./elicitation.js";
|
|
20
20
|
export { McpClientLimits, defaultMcpClientLimits } from "./mcp.js";
|
|
21
21
|
export * from "./webhook-protocol.js";
|
|
22
22
|
export * from "./events.js";
|