apps 0.0.1-beta.70 → 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.
@@ -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
- /** Build the framework's own policy prompt after native input decoding. Includes no account credentials. */
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";