@tangle-network/agent-app 0.45.20 → 0.45.22
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/DesignCanvas-ZG7DJS7C.js +10 -0
- package/dist/DesignCanvasEditor-SLFMHOII.js +13 -0
- package/dist/app-auth/index.js +2 -2
- package/dist/assistant/index.d.ts +1 -1
- package/dist/assistant/index.js +5 -5
- package/dist/{attachment-validation-CsmUzuI3.d.ts → attachment-validation-BfJDBU1g.d.ts} +41 -5
- package/dist/{auth-DJjJBtYw.d.ts → auth-BYtiazA4.d.ts} +1 -1
- package/dist/chat-react/index.js +2 -2
- package/dist/chat-routes/index.d.ts +8 -4
- package/dist/chat-routes/index.js +22 -5
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/{chunk-KPRBFNGT.js → chunk-3IHYJIDJ.js} +3 -3
- package/dist/{chunk-MYS7DHMM.js → chunk-4QVG4WJQ.js} +2 -2
- package/dist/{chunk-RMHZKMQ4.js → chunk-73CQJOIU.js} +5 -5
- package/dist/{chunk-PAB253MA.js → chunk-7V2I3JGZ.js} +19 -3
- package/dist/chunk-7V2I3JGZ.js.map +1 -0
- package/dist/chunk-CCVG2TL6.js +327 -0
- package/dist/chunk-CCVG2TL6.js.map +1 -0
- package/dist/{chunk-U4BXAZCN.js → chunk-DRB77FYL.js} +2 -2
- package/dist/{chunk-6MUJROBT.js → chunk-E4DHYENH.js} +2 -2
- package/dist/chunk-F7VH4G5C.js +283 -0
- package/dist/chunk-F7VH4G5C.js.map +1 -0
- package/dist/chunk-I24YIKHO.js +183 -0
- package/dist/chunk-I24YIKHO.js.map +1 -0
- package/dist/{chunk-AH3IOSWF.js → chunk-NZVBJM73.js} +1432 -187
- package/dist/chunk-NZVBJM73.js.map +1 -0
- package/dist/{chunk-OO4DROKM.js → chunk-OASVAPRL.js} +3 -3
- package/dist/{chunk-ZSGTG6PK.js → chunk-P5PIAQVS.js} +2 -2
- package/dist/chunk-PC2WYTK7.js +405 -0
- package/dist/chunk-PC2WYTK7.js.map +1 -0
- package/dist/{chunk-YEFFHORB.js → chunk-TX6S7XXU.js} +8 -2
- package/dist/chunk-TX6S7XXU.js.map +1 -0
- package/dist/chunk-UGWQLQDS.js +35 -0
- package/dist/chunk-UGWQLQDS.js.map +1 -0
- package/dist/{chunk-O22STZ3P.js → chunk-X5DQ5QOP.js} +2 -2
- package/dist/{chunk-PCJHEZA7.js → chunk-YABHE2QY.js} +2 -2
- package/dist/design-canvas/index.d.ts +3 -3
- package/dist/design-canvas/index.js +2 -2
- package/dist/design-canvas-react/engine.js +4 -4
- package/dist/design-canvas-react/index.js +7 -7
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/documents/index.d.ts +233 -0
- package/dist/documents/index.js +495 -0
- package/dist/documents/index.js.map +1 -0
- package/dist/documents/pdf-inspector.d.ts +60 -0
- package/dist/documents/pdf-inspector.js +100 -0
- package/dist/documents/pdf-inspector.js.map +1 -0
- package/dist/eval/index.d.ts +1 -1
- package/dist/fold-DACU7gtf.d.ts +320 -0
- package/dist/{mcp-BiKqnsJV.d.ts → mcp-xxoZZfor.d.ts} +2 -2
- package/dist/openui/index.d.ts +208 -0
- package/dist/openui/index.js +350 -0
- package/dist/openui/index.js.map +1 -0
- package/dist/openui-react/index.d.ts +119 -0
- package/dist/openui-react/index.js +149 -0
- package/dist/openui-react/index.js.map +1 -0
- package/dist/platform/index.js +2 -2
- package/dist/preset-cloudflare/index.d.ts +2 -2
- package/dist/rate-limit-BOVmJRXZ.d.ts +35 -0
- package/dist/record/drizzle.d.ts +682 -0
- package/dist/record/drizzle.js +579 -0
- package/dist/record/drizzle.js.map +1 -0
- package/dist/record/index.d.ts +16 -0
- package/dist/record/index.js +35 -0
- package/dist/record/index.js.map +1 -0
- package/dist/runtime/index.d.ts +3 -3
- package/dist/sandbox/index.d.ts +13 -4
- package/dist/sandbox/index.js +6 -3
- package/dist/sequences/index.d.ts +3 -3
- package/dist/sequences/index.js +1 -1
- package/dist/session-shell/index.d.ts +173 -1
- package/dist/session-shell/index.js +13 -1
- package/dist/teams/index.js +9 -9
- package/dist/teams/invitations-api.js +3 -3
- package/dist/tools/index.d.ts +5 -5
- package/dist/tools/index.js +3 -2
- package/dist/{types-DbU-oO5h.d.ts → types-B25Mib1r.d.ts} +11 -0
- package/dist/types-DrBidf3O.d.ts +123 -0
- package/dist/values-C7RidJuI.d.ts +156 -0
- package/dist/web/index.d.ts +197 -31
- package/dist/web/index.js +15 -3
- package/dist/web-react/async/index.d.ts +309 -0
- package/dist/web-react/async/index.js +327 -0
- package/dist/web-react/async/index.js.map +1 -0
- package/dist/web-react/index.d.ts +338 -2
- package/dist/web-react/index.js +52 -6
- package/dist/work-product/index.d.ts +1 -1
- package/dist/work-product/index.js +2 -1
- package/dist/work-product/index.js.map +1 -1
- package/dist/workspace-react/index.js +1 -1
- package/package.json +43 -3
- package/dist/DesignCanvas-NEIW3AER.js +0 -10
- package/dist/DesignCanvasEditor-QD33OI2W.js +0 -13
- package/dist/chunk-AH3IOSWF.js.map +0 -1
- package/dist/chunk-GINKOZFD.js +0 -214
- package/dist/chunk-GINKOZFD.js.map +0 -1
- package/dist/chunk-J25RST7G.js +0 -126
- package/dist/chunk-J25RST7G.js.map +0 -1
- package/dist/chunk-PAB253MA.js.map +0 -1
- package/dist/chunk-WBHPN5DY.js +0 -158
- package/dist/chunk-WBHPN5DY.js.map +0 -1
- package/dist/chunk-YEFFHORB.js.map +0 -1
- /package/dist/{DesignCanvas-NEIW3AER.js.map → DesignCanvas-ZG7DJS7C.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-QD33OI2W.js.map → DesignCanvasEditor-SLFMHOII.js.map} +0 -0
- /package/dist/{chunk-KPRBFNGT.js.map → chunk-3IHYJIDJ.js.map} +0 -0
- /package/dist/{chunk-MYS7DHMM.js.map → chunk-4QVG4WJQ.js.map} +0 -0
- /package/dist/{chunk-RMHZKMQ4.js.map → chunk-73CQJOIU.js.map} +0 -0
- /package/dist/{chunk-U4BXAZCN.js.map → chunk-DRB77FYL.js.map} +0 -0
- /package/dist/{chunk-6MUJROBT.js.map → chunk-E4DHYENH.js.map} +0 -0
- /package/dist/{chunk-OO4DROKM.js.map → chunk-OASVAPRL.js.map} +0 -0
- /package/dist/{chunk-ZSGTG6PK.js.map → chunk-P5PIAQVS.js.map} +0 -0
- /package/dist/{chunk-O22STZ3P.js.map → chunk-X5DQ5QOP.js.map} +0 -0
- /package/dist/{chunk-PCJHEZA7.js.map → chunk-YABHE2QY.js.map} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DesignCanvasEditor
|
|
3
|
+
} from "./chunk-73CQJOIU.js";
|
|
4
|
+
import "./chunk-3IHYJIDJ.js";
|
|
5
|
+
import "./chunk-TZO3SOUL.js";
|
|
6
|
+
import "./chunk-4QVG4WJQ.js";
|
|
7
|
+
import "./chunk-X5DQ5QOP.js";
|
|
8
|
+
import "./chunk-DRB77FYL.js";
|
|
9
|
+
import "./chunk-F7VH4G5C.js";
|
|
10
|
+
export {
|
|
11
|
+
DesignCanvasEditor
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=DesignCanvasEditor-SLFMHOII.js.map
|
package/dist/app-auth/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createAuthGuard,
|
|
3
3
|
createBetterAuthSessionCookieMinter,
|
|
4
4
|
createTangleSsoHandlers
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-YABHE2QY.js";
|
|
6
|
+
import "../chunk-F7VH4G5C.js";
|
|
7
7
|
import "../chunk-JML7WKWU.js";
|
|
8
8
|
|
|
9
9
|
// src/app-auth/index.ts
|
|
@@ -17,7 +17,7 @@ import '../billing/index.js';
|
|
|
17
17
|
import '../session-shell/index.js';
|
|
18
18
|
import '../catalog/index.js';
|
|
19
19
|
import '../harness/index.js';
|
|
20
|
-
import '../attachment-validation-
|
|
20
|
+
import '../attachment-validation-BfJDBU1g.js';
|
|
21
21
|
import '../stream-normalizer-DKRxyVlZ.js';
|
|
22
22
|
|
|
23
23
|
/**
|
package/dist/assistant/index.js
CHANGED
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
ChatMessages,
|
|
4
4
|
ModelPicker,
|
|
5
5
|
ProviderLogo
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-6MUJROBT.js";
|
|
8
|
-
import "../chunk-BATKJP3P.js";
|
|
6
|
+
} from "../chunk-NZVBJM73.js";
|
|
9
7
|
import "../chunk-FBVLEGEG.js";
|
|
10
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-E4DHYENH.js";
|
|
9
|
+
import "../chunk-BATKJP3P.js";
|
|
10
|
+
import "../chunk-PC2WYTK7.js";
|
|
11
11
|
import "../chunk-YTMKRL3L.js";
|
|
12
12
|
import "../chunk-GEYACSFW.js";
|
|
13
13
|
import "../chunk-QY4BRKRJ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-CCVG2TL6.js";
|
|
15
15
|
import "../chunk-B2UEW62O.js";
|
|
16
16
|
import "../chunk-KWXUBMXU.js";
|
|
17
17
|
import "../chunk-ZVEEWGDK.js";
|
|
@@ -123,7 +123,10 @@ declare function createSandboxFileIndexRoute(options: CreateSandboxFileIndexRout
|
|
|
123
123
|
* the client. Extension-based allowlists lie (a renamed `.docx`, a PNG saved
|
|
124
124
|
* as `.txt`), so classification reads the actual bytes: a magic-byte table
|
|
125
125
|
* for common binary formats first, then a UTF-8 decode attempt for
|
|
126
|
-
* everything else.
|
|
126
|
+
* everything else. Two families need more than a fixed-offset signature and
|
|
127
|
+
* get a reader of their own — ISO-BMFF brands (`sniffFtyp`) and OOXML Office
|
|
128
|
+
* packages, whose PKZIP container is shared with every other `.zip`
|
|
129
|
+
* (`sniffOoxml`).
|
|
127
130
|
*
|
|
128
131
|
* Lifted near-verbatim from gtm-agent's `src/lib/binary-sniff.ts` (the
|
|
129
132
|
* source PRs hardened this against real corruption/gate bugs: gtm#584,
|
|
@@ -135,6 +138,21 @@ interface SniffResult {
|
|
|
135
138
|
binary: boolean;
|
|
136
139
|
mime: string | null;
|
|
137
140
|
}
|
|
141
|
+
/** Sniffed mime for a Word OOXML package (`.docx`). */
|
|
142
|
+
declare const OOXML_WORD_MIME = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
143
|
+
/** Sniffed mime for an Excel OOXML package (`.xlsx`). */
|
|
144
|
+
declare const OOXML_SPREADSHEET_MIME = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
145
|
+
/** Sniffed mime for a PowerPoint OOXML package (`.pptx`). */
|
|
146
|
+
declare const OOXML_PRESENTATION_MIME = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
147
|
+
/** Sniffed mime for a macro-enabled Word package (`.docm`). Reported
|
|
148
|
+
* separately from {@link OOXML_WORD_MIME} so a package carrying a VBA project
|
|
149
|
+
* can never be admitted under the plain-document mime: a route that wants
|
|
150
|
+
* macro-enabled files opts in explicitly through its allowed-mime seam. */
|
|
151
|
+
declare const OOXML_WORD_MACRO_ENABLED_MIME = "application/vnd.ms-word.document.macroEnabled.12";
|
|
152
|
+
/** Sniffed mime for a macro-enabled Excel package (`.xlsm`). */
|
|
153
|
+
declare const OOXML_SPREADSHEET_MACRO_ENABLED_MIME = "application/vnd.ms-excel.sheet.macroEnabled.12";
|
|
154
|
+
/** Sniffed mime for a macro-enabled PowerPoint package (`.pptm`). */
|
|
155
|
+
declare const OOXML_PRESENTATION_MACRO_ENABLED_MIME = "application/vnd.ms-powerpoint.presentation.macroEnabled.12";
|
|
138
156
|
/** Decide whether uploaded bytes are binary or text, and identify the mime
|
|
139
157
|
* type when it can be determined from content. Magic bytes are checked
|
|
140
158
|
* first; anything unmatched falls back to a fatal UTF-8 decode. A NUL byte
|
|
@@ -176,12 +194,30 @@ declare const MAX_ATTACHMENT_TOTAL_BYTES: number;
|
|
|
176
194
|
* Accept list for the composer file picker + type validation, same grammar as
|
|
177
195
|
* the native `<input accept>` attribute. Images plus the text/doc types a
|
|
178
196
|
* product's store actually reads.
|
|
197
|
+
*
|
|
198
|
+
* Every extension here is one the default {@link ALLOWED_ATTACHMENT_SNIFFED_MIMES}
|
|
199
|
+
* actually admits — a picker that offers a format the gate then rejects is a
|
|
200
|
+
* defect, so `tests/chat-routes/attachment-validation.test.ts` walks this
|
|
201
|
+
* string and proves each entry uploads.
|
|
179
202
|
*/
|
|
180
|
-
declare const ATTACHMENT_ACCEPT = "image/*,.pdf,.txt,.md,.csv,.json,.yaml,.yml,.html";
|
|
203
|
+
declare const ATTACHMENT_ACCEPT = "image/*,.pdf,.docx,.xlsx,.pptx,.txt,.md,.csv,.json,.yaml,.yml,.html";
|
|
204
|
+
/** The Office (OOXML) package mimes the default allow-list admits — the
|
|
205
|
+
* formats professionals actually send: Word contracts, Excel workpapers,
|
|
206
|
+
* PowerPoint decks. Admitting the format is a gate decision only; whether a
|
|
207
|
+
* product can EXTRACT text from one is that product's concern. */
|
|
208
|
+
declare const OOXML_SNIFFED_MIMES: ReadonlySet<string>;
|
|
209
|
+
/** Macro-enabled Office package mimes (`.docm`/`.xlsm`/`.pptm`), reported by
|
|
210
|
+
* `sniffBinary` but deliberately NOT in the default allow-list: a package
|
|
211
|
+
* carrying a VBA project is a different risk decision than a plain document,
|
|
212
|
+
* and it is the product's to make. Opt in by widening the allow-list at the
|
|
213
|
+
* route's `allowedSniffedMimes` seam:
|
|
214
|
+
* `new Set([...ALLOWED_ATTACHMENT_SNIFFED_MIMES, ...MACRO_ENABLED_OOXML_SNIFFED_MIMES])`. */
|
|
215
|
+
declare const MACRO_ENABLED_OOXML_SNIFFED_MIMES: ReadonlySet<string>;
|
|
181
216
|
/** Sniffed-mime counterpart of `ATTACHMENT_ACCEPT`: the binary formats
|
|
182
|
-
* `sniffBinary` can identify from
|
|
217
|
+
* `sniffBinary` can identify from content among the accepted types.
|
|
183
218
|
* Values must match `sniffBinary`'s output strings verbatim, or every
|
|
184
|
-
* upload of that format fails the type gate
|
|
219
|
+
* upload of that format fails the type gate — locked by the round-trip test
|
|
220
|
+
* that sniffs real bytes of every mime listed here. */
|
|
185
221
|
declare const ALLOWED_ATTACHMENT_SNIFFED_MIMES: ReadonlySet<string>;
|
|
186
222
|
/** Represent the result of checking an attachment's type with success or specific failure details */
|
|
187
223
|
type AttachmentTypeCheckResult = {
|
|
@@ -222,4 +258,4 @@ declare function attachmentSizeErrorMessage(name: string, actualBytes: number, l
|
|
|
222
258
|
* the aggregate raw-byte ceiling. */
|
|
223
259
|
declare function attachmentTotalSizeErrorMessage(totalBytes: number, limitBytes: number): string;
|
|
224
260
|
|
|
225
|
-
export { ALLOWED_ATTACHMENT_SNIFFED_MIMES as A, type CreateSandboxFileIndexRouteOptions as C, type FileIndexAuthorization as F,
|
|
261
|
+
export { ALLOWED_ATTACHMENT_SNIFFED_MIMES as A, type CreateSandboxFileIndexRouteOptions as C, type FileIndexAuthorization as F, MACRO_ENABLED_OOXML_SNIFFED_MIMES as M, OOXML_PRESENTATION_MACRO_ENABLED_MIME as O, type SandboxFileTreeSource as S, ATTACHMENT_ACCEPT as a, ATTACHMENT_MAX_COUNT as b, type AttachmentTypeCheckResult as c, type FileIndexCache as d, type FileIndexReadyResponse as e, type FileIndexResponse as f, type FileIndexWarmingResponse as g, MAX_ATTACHMENT_TOTAL_BYTES as h, MAX_BINARY_ATTACHMENT_BYTES as i, MAX_TEXT_ATTACHMENT_BYTES as j, OOXML_PRESENTATION_MIME as k, OOXML_SNIFFED_MIMES as l, OOXML_SPREADSHEET_MACRO_ENABLED_MIME as m, OOXML_SPREADSHEET_MIME as n, OOXML_WORD_MACRO_ENABLED_MIME as o, OOXML_WORD_MIME as p, type SandboxTreeFile as q, type SandboxTreeResult as r, type SniffResult as s, attachmentSizeErrorMessage as t, attachmentTotalSizeErrorMessage as u, checkAttachmentType as v, createSandboxFileIndexRoute as w, sanitizeAttachmentFileName as x, sniffBinary as y };
|
package/dist/chat-react/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useComposerAttachments
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-E4DHYENH.js";
|
|
4
4
|
import {
|
|
5
5
|
ATTACHMENT_ACCEPT
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-CCVG2TL6.js";
|
|
7
7
|
import "../chunk-KWXUBMXU.js";
|
|
8
8
|
import {
|
|
9
9
|
isChatCapableModel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as ChatTurnRequestPayload, d as ChatTurnPartInput, e as ChatTurnFilePartInput, a as ChatAttachmentKind } from '../wire-DOZ-O6hD.js';
|
|
2
2
|
export { b as ChatAttachmentInput, C as ChatMentionKind, f as ChatReasoningEffort, g as ChatTurnInputError, h as ChatTurnTextPartInput, D as DISPATCH_MAX_MEDIA_PARTS, i as DISPATCH_MAX_PARTS, j as DISPATCH_REQUEST_MAX_BYTES, k as DISPATCH_STRUCTURAL_RESERVE_BYTES, F as FileMention, l as FileMentionsToPartsOptions, I as INLINE_PARTS_MAX_BYTES, M as MENTION_MAX_COUNT, P as ProducerErrorEvent, m as ProducerNoticeEvent, n as ProducerPassthroughEvent, o as ProducerPassthroughEventType, p as ProducerReasoningEvent, q as ProducerTextEvent, r as ProducerToolCallEvent, s as ProducerToolResultEvent, t as ProducerUsageEvent, u as ProducerWireEvent, S as SandboxMentionPathCheck, v as assertPromptPartsWithinCap, w as base64WireLen, x as buildMentionPromptBlock, y as chatTurnRequestInit, z as fileMentionsToParts, A as formatBytes, B as mediaTypeForMentionPath, E as mentionKindForPath, G as parseChatTurnParts, H as parseFileMentions, J as promptPartsByteSize, K as validateSandboxMentionPath } from '../wire-DOZ-O6hD.js';
|
|
3
|
-
export { A as ALLOWED_ATTACHMENT_SNIFFED_MIMES, a as ATTACHMENT_ACCEPT, b as ATTACHMENT_MAX_COUNT, c as AttachmentTypeCheckResult, C as CreateSandboxFileIndexRouteOptions, F as FileIndexAuthorization, d as FileIndexCache, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse, M as
|
|
3
|
+
export { A as ALLOWED_ATTACHMENT_SNIFFED_MIMES, a as ATTACHMENT_ACCEPT, b as ATTACHMENT_MAX_COUNT, c as AttachmentTypeCheckResult, C as CreateSandboxFileIndexRouteOptions, F as FileIndexAuthorization, d as FileIndexCache, e as FileIndexReadyResponse, f as FileIndexResponse, g as FileIndexWarmingResponse, M as MACRO_ENABLED_OOXML_SNIFFED_MIMES, h as MAX_ATTACHMENT_TOTAL_BYTES, i as MAX_BINARY_ATTACHMENT_BYTES, j as MAX_TEXT_ATTACHMENT_BYTES, O as OOXML_PRESENTATION_MACRO_ENABLED_MIME, k as OOXML_PRESENTATION_MIME, l as OOXML_SNIFFED_MIMES, m as OOXML_SPREADSHEET_MACRO_ENABLED_MIME, n as OOXML_SPREADSHEET_MIME, o as OOXML_WORD_MACRO_ENABLED_MIME, p as OOXML_WORD_MIME, S as SandboxFileTreeSource, q as SandboxTreeFile, r as SandboxTreeResult, s as SniffResult, t as attachmentSizeErrorMessage, u as attachmentTotalSizeErrorMessage, v as checkAttachmentType, w as createSandboxFileIndexRoute, x as sanitizeAttachmentFileName, y as sniffBinary } from '../attachment-validation-BfJDBU1g.js';
|
|
4
4
|
import { ChatTurnIdentity, ChatTurnProducer } from '@tangle-network/agent-runtime/durable';
|
|
5
5
|
import { C as ChatMessagePart, a as ChatAttachmentPart, e as ChatMentionPart } from '../parts-BqIHMdyu.js';
|
|
6
6
|
import { InteractionAnswerRoute, InteractionAnswerRouteOptions } from '../interactions/index.js';
|
|
@@ -16,8 +16,8 @@ import '../contract-OxG_jVMx.js';
|
|
|
16
16
|
import '../types-CCeYywdS.js';
|
|
17
17
|
import '../plans/index.js';
|
|
18
18
|
import '@tangle-network/sandbox/core';
|
|
19
|
-
import '../auth-
|
|
20
|
-
import '../types-
|
|
19
|
+
import '../auth-BYtiazA4.js';
|
|
20
|
+
import '../types-B25Mib1r.js';
|
|
21
21
|
import '../harness/index.js';
|
|
22
22
|
import '../model-CdCDfBA9.js';
|
|
23
23
|
import '../budget-BOucfcb_.js';
|
|
@@ -1588,7 +1588,11 @@ interface CreateAttachmentUploadRouteOptions {
|
|
|
1588
1588
|
/** Attachment kinds this route accepts. Default `['image', 'file']`. */
|
|
1589
1589
|
allowedKinds?: ChatAttachmentKind[];
|
|
1590
1590
|
/** Sniffed-mime allowlist fed to `checkAttachmentType`. Default
|
|
1591
|
-
* {@link ALLOWED_ATTACHMENT_SNIFFED_MIMES}.
|
|
1591
|
+
* {@link ALLOWED_ATTACHMENT_SNIFFED_MIMES}. Narrow it to accept less than
|
|
1592
|
+
* the default (`new Set(['application/pdf'])`), or widen it to accept a
|
|
1593
|
+
* format the default refuses — macro-enabled Office packages are the
|
|
1594
|
+
* shipped case:
|
|
1595
|
+
* `new Set([...ALLOWED_ATTACHMENT_SNIFFED_MIMES, ...MACRO_ENABLED_OOXML_SNIFFED_MIMES])`. */
|
|
1592
1596
|
allowedSniffedMimes?: ReadonlySet<string>;
|
|
1593
1597
|
/** Sanitized-name → store path. Default identity (the sanitized name IS
|
|
1594
1598
|
* the path); gtm passes `vaultFolderForFileName`, a tenant product a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseJsonObjectBody
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-F7VH4G5C.js";
|
|
4
4
|
import {
|
|
5
5
|
createSandboxFileIndexRoute
|
|
6
6
|
} from "../chunk-QY4BRKRJ.js";
|
|
@@ -8,15 +8,23 @@ import {
|
|
|
8
8
|
ALLOWED_ATTACHMENT_SNIFFED_MIMES,
|
|
9
9
|
ATTACHMENT_ACCEPT,
|
|
10
10
|
ATTACHMENT_MAX_COUNT,
|
|
11
|
+
MACRO_ENABLED_OOXML_SNIFFED_MIMES,
|
|
11
12
|
MAX_ATTACHMENT_TOTAL_BYTES,
|
|
12
13
|
MAX_BINARY_ATTACHMENT_BYTES,
|
|
13
14
|
MAX_TEXT_ATTACHMENT_BYTES,
|
|
15
|
+
OOXML_PRESENTATION_MACRO_ENABLED_MIME,
|
|
16
|
+
OOXML_PRESENTATION_MIME,
|
|
17
|
+
OOXML_SNIFFED_MIMES,
|
|
18
|
+
OOXML_SPREADSHEET_MACRO_ENABLED_MIME,
|
|
19
|
+
OOXML_SPREADSHEET_MIME,
|
|
20
|
+
OOXML_WORD_MACRO_ENABLED_MIME,
|
|
21
|
+
OOXML_WORD_MIME,
|
|
14
22
|
attachmentSizeErrorMessage,
|
|
15
23
|
attachmentTotalSizeErrorMessage,
|
|
16
24
|
checkAttachmentType,
|
|
17
25
|
sanitizeAttachmentFileName,
|
|
18
26
|
sniffBinary
|
|
19
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-CCVG2TL6.js";
|
|
20
28
|
import {
|
|
21
29
|
normalizeClientTurnId,
|
|
22
30
|
resolveChatTurn
|
|
@@ -100,12 +108,13 @@ import {
|
|
|
100
108
|
flattenHistory,
|
|
101
109
|
readSandboxBinaryBytes,
|
|
102
110
|
statSandboxFileSize
|
|
103
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-7V2I3JGZ.js";
|
|
104
112
|
import "../chunk-TH7L265V.js";
|
|
105
113
|
import "../chunk-LWSJK546.js";
|
|
106
|
-
import "../chunk-
|
|
114
|
+
import "../chunk-P5PIAQVS.js";
|
|
107
115
|
import "../chunk-KBJL6LIW.js";
|
|
108
|
-
import "../chunk-
|
|
116
|
+
import "../chunk-TX6S7XXU.js";
|
|
117
|
+
import "../chunk-UGWQLQDS.js";
|
|
109
118
|
import "../chunk-S5SRJJQG.js";
|
|
110
119
|
import "../chunk-JML7WKWU.js";
|
|
111
120
|
|
|
@@ -2668,11 +2677,19 @@ export {
|
|
|
2668
2677
|
DISPATCH_REQUEST_MAX_BYTES,
|
|
2669
2678
|
DISPATCH_STRUCTURAL_RESERVE_BYTES,
|
|
2670
2679
|
INLINE_PARTS_MAX_BYTES,
|
|
2680
|
+
MACRO_ENABLED_OOXML_SNIFFED_MIMES,
|
|
2671
2681
|
MAX_ATTACHMENT_TOTAL_BYTES,
|
|
2672
2682
|
MAX_BINARY_ATTACHMENT_BYTES,
|
|
2673
2683
|
MAX_EMPTY_TURN_RETRIES,
|
|
2674
2684
|
MAX_TEXT_ATTACHMENT_BYTES,
|
|
2675
2685
|
MENTION_MAX_COUNT,
|
|
2686
|
+
OOXML_PRESENTATION_MACRO_ENABLED_MIME,
|
|
2687
|
+
OOXML_PRESENTATION_MIME,
|
|
2688
|
+
OOXML_SNIFFED_MIMES,
|
|
2689
|
+
OOXML_SPREADSHEET_MACRO_ENABLED_MIME,
|
|
2690
|
+
OOXML_SPREADSHEET_MIME,
|
|
2691
|
+
OOXML_WORD_MACRO_ENABLED_MIME,
|
|
2692
|
+
OOXML_WORD_MIME,
|
|
2676
2693
|
PROMOTE_MAX_FILE_BYTES,
|
|
2677
2694
|
UPLOAD_INLINE_MAX_BYTES,
|
|
2678
2695
|
UPLOAD_MAX_FILE_BYTES,
|