@burdenoff/fe-libs 2026.928.2 → 2026.929.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.
Files changed (142) hide show
  1. package/dist/shared/assistant/adminModeSendGate.d.ts +6 -5
  2. package/dist/shared/assistant/adminModeSendGate.d.ts.map +1 -1
  3. package/dist/shared/assistant/adminModeSendGate.js +11 -11
  4. package/dist/shared/assistant/api.d.ts +291 -28
  5. package/dist/shared/assistant/api.d.ts.map +1 -1
  6. package/dist/shared/assistant/api.js +351 -147
  7. package/dist/shared/assistant/autoRouting.d.ts +11 -3
  8. package/dist/shared/assistant/autoRouting.d.ts.map +1 -1
  9. package/dist/shared/assistant/autoRouting.js +7 -7
  10. package/dist/shared/assistant/capabilities.d.ts +28 -0
  11. package/dist/shared/assistant/capabilities.d.ts.map +1 -1
  12. package/dist/shared/assistant/capabilities.js +19 -10
  13. package/dist/shared/assistant/conversation.d.ts +24 -2
  14. package/dist/shared/assistant/conversation.d.ts.map +1 -1
  15. package/dist/shared/assistant/createSandboxAssistantTransport.d.ts.map +1 -1
  16. package/dist/shared/assistant/createSandboxAssistantTransport.js +67 -54
  17. package/dist/shared/assistant/history/historyList.js +1 -1
  18. package/dist/shared/assistant/history/historyMapping.d.ts.map +1 -1
  19. package/dist/shared/assistant/history/historyMapping.js +5 -1
  20. package/dist/shared/assistant/history/historyResume.js +7 -7
  21. package/dist/shared/assistant/i18nManifest.d.ts +53 -0
  22. package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
  23. package/dist/shared/assistant/i18nManifest.js +75 -16
  24. package/dist/shared/assistant/index.d.ts +15 -0
  25. package/dist/shared/assistant/index.d.ts.map +1 -1
  26. package/dist/shared/assistant/modeCapabilities.js +1 -1
  27. package/dist/shared/assistant/operations.d.ts +22 -0
  28. package/dist/shared/assistant/operations.d.ts.map +1 -1
  29. package/dist/shared/assistant/operations.js +2 -2
  30. package/dist/shared/assistant/prewarm.d.ts +7 -0
  31. package/dist/shared/assistant/prewarm.d.ts.map +1 -1
  32. package/dist/shared/assistant/prewarm.js +1 -1
  33. package/dist/shared/assistant/product.d.ts +80 -2
  34. package/dist/shared/assistant/product.d.ts.map +1 -1
  35. package/dist/shared/assistant/product.js +10 -6
  36. package/dist/shared/assistant/proposalWriteRules.d.ts +40 -0
  37. package/dist/shared/assistant/proposalWriteRules.d.ts.map +1 -0
  38. package/dist/shared/assistant/proposalWriteRules.js +14 -0
  39. package/dist/shared/assistant/store.d.ts +17 -0
  40. package/dist/shared/assistant/store.d.ts.map +1 -1
  41. package/dist/shared/assistant/store.js +50 -43
  42. package/dist/shared/assistant/turnOutcome.d.ts +34 -2
  43. package/dist/shared/assistant/turnOutcome.d.ts.map +1 -1
  44. package/dist/shared/assistant/turnOutcome.js +28 -17
  45. package/dist/shared/assistant/turnOutcomeCopy.d.ts +29 -7
  46. package/dist/shared/assistant/turnOutcomeCopy.d.ts.map +1 -1
  47. package/dist/shared/assistant/turnOutcomeCopy.js +18 -6
  48. package/dist/shared/assistant/types.d.ts +5 -1
  49. package/dist/shared/assistant/types.d.ts.map +1 -1
  50. package/dist/shared/assistant/ui/AssistantApiCallsConsentDialog.js +4 -4
  51. package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
  52. package/dist/shared/assistant/ui/AssistantChatArea.js +989 -718
  53. package/dist/shared/assistant/ui/AssistantConversationList.js +6 -6
  54. package/dist/shared/assistant/ui/AssistantLanguageMenu.js +6 -6
  55. package/dist/shared/assistant/ui/AssistantMessageItem.d.ts +8 -1
  56. package/dist/shared/assistant/ui/AssistantMessageItem.d.ts.map +1 -1
  57. package/dist/shared/assistant/ui/AssistantMessageItem.js +77 -76
  58. package/dist/shared/assistant/ui/AssistantMessageList.d.ts +13 -1
  59. package/dist/shared/assistant/ui/AssistantMessageList.d.ts.map +1 -1
  60. package/dist/shared/assistant/ui/AssistantMessageList.js +15 -13
  61. package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +5 -5
  62. package/dist/shared/assistant/ui/AssistantSpeechProvider.js +209 -209
  63. package/dist/shared/assistant/ui/AssistantWriteConfirmDialog.d.ts +62 -0
  64. package/dist/shared/assistant/ui/AssistantWriteConfirmDialog.d.ts.map +1 -0
  65. package/dist/shared/assistant/ui/AssistantWriteConfirmDialog.js +253 -0
  66. package/dist/shared/assistant/ui/AssistantWriteProposalCard.d.ts +72 -0
  67. package/dist/shared/assistant/ui/AssistantWriteProposalCard.d.ts.map +1 -0
  68. package/dist/shared/assistant/ui/AssistantWriteProposalCard.js +439 -0
  69. package/dist/shared/assistant/ui/AssistantWriteProposalSlot.d.ts +40 -0
  70. package/dist/shared/assistant/ui/AssistantWriteProposalSlot.d.ts.map +1 -0
  71. package/dist/shared/assistant/ui/AssistantWriteProposalSlot.js +35 -0
  72. package/dist/shared/assistant/ui/composer/AssistantComposer.js +8 -8
  73. package/dist/shared/assistant/ui/useVoiceSession.d.ts +28 -0
  74. package/dist/shared/assistant/ui/useVoiceSession.d.ts.map +1 -1
  75. package/dist/shared/assistant/ui/useVoiceSession.js +159 -110
  76. package/dist/shared/assistant/ui/useWriteProposalConfirm.d.ts +61 -0
  77. package/dist/shared/assistant/ui/useWriteProposalConfirm.d.ts.map +1 -0
  78. package/dist/shared/assistant/ui/useWriteProposalConfirm.js +109 -0
  79. package/dist/shared/assistant/ui/useWriteProposals.d.ts +102 -0
  80. package/dist/shared/assistant/ui/useWriteProposals.d.ts.map +1 -0
  81. package/dist/shared/assistant/ui/useWriteProposals.js +230 -0
  82. package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +17 -1
  83. package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts.map +1 -1
  84. package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +141 -109
  85. package/dist/shared/assistant/ui/writeProposalPresentation.d.ts +76 -0
  86. package/dist/shared/assistant/ui/writeProposalPresentation.d.ts.map +1 -0
  87. package/dist/shared/assistant/ui/writeProposalPresentation.js +110 -0
  88. package/dist/shared/assistant/usageReporting.d.ts +108 -0
  89. package/dist/shared/assistant/usageReporting.d.ts.map +1 -0
  90. package/dist/shared/assistant/usageReporting.js +155 -0
  91. package/dist/shared/assistant/useAssistantApiAccess.d.ts +49 -14
  92. package/dist/shared/assistant/useAssistantApiAccess.d.ts.map +1 -1
  93. package/dist/shared/assistant/useAssistantApiAccess.js +43 -25
  94. package/dist/shared/assistant/useAssistantHeartbeat.d.ts.map +1 -1
  95. package/dist/shared/assistant/useAssistantHeartbeat.js +5 -5
  96. package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts +5 -6
  97. package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts.map +1 -1
  98. package/dist/shared/assistant/voice/voiceSession.d.ts +46 -0
  99. package/dist/shared/assistant/voice/voiceSession.d.ts.map +1 -1
  100. package/dist/shared/assistant/voice/voiceSession.js +35 -2
  101. package/dist/shared/assistant/writeConfirmSeam.d.ts +32 -0
  102. package/dist/shared/assistant/writeConfirmSeam.d.ts.map +1 -0
  103. package/dist/shared/assistant/writeConfirmSeam.js +23 -0
  104. package/dist/shared/assistant/writeModeConsent.d.ts +16 -8
  105. package/dist/shared/assistant/writeModeConsent.d.ts.map +1 -1
  106. package/dist/shared/assistant/writeModeConsent.js +2 -2
  107. package/dist/shared/assistant/writeProposalDiscovery.d.ts +123 -0
  108. package/dist/shared/assistant/writeProposalDiscovery.d.ts.map +1 -0
  109. package/dist/shared/assistant/writeProposalDiscovery.js +210 -0
  110. package/dist/shared/assistant/writeProposalErrorCopy.d.ts +135 -0
  111. package/dist/shared/assistant/writeProposalErrorCopy.d.ts.map +1 -0
  112. package/dist/shared/assistant/writeProposalErrorCopy.js +135 -0
  113. package/dist/shared/assistant/writeProposalVoice.d.ts +133 -0
  114. package/dist/shared/assistant/writeProposalVoice.d.ts.map +1 -0
  115. package/dist/shared/assistant/writeProposalVoice.js +66 -0
  116. package/dist/shared/assistant/writeProposals.d.ts +268 -0
  117. package/dist/shared/assistant/writeProposals.d.ts.map +1 -0
  118. package/dist/shared/assistant/writeProposals.js +445 -0
  119. package/dist/shared/assistant/writeReplyBinder.d.ts +166 -0
  120. package/dist/shared/assistant/writeReplyBinder.d.ts.map +1 -0
  121. package/dist/shared/assistant/writeReplyBinder.js +233 -0
  122. package/dist/shared/assistant/writeReplySend.d.ts +110 -0
  123. package/dist/shared/assistant/writeReplySend.d.ts.map +1 -0
  124. package/dist/shared/assistant/writeReplySend.js +93 -0
  125. package/dist/shared/graphql/fetch.d.ts +12 -1
  126. package/dist/shared/graphql/fetch.d.ts.map +1 -1
  127. package/dist/shared/graphql/fetch.js +101 -80
  128. package/dist/shared/providers/shell/ActiveContextProvider.d.ts.map +1 -1
  129. package/dist/shared/providers/shell/ActiveContextProvider.js +28 -26
  130. package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts.map +1 -1
  131. package/dist/shared/providers/shell/PersonaSurfaceProvider.js +165 -193
  132. package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +8 -2
  133. package/dist/shared/providers/shell/personaSurfaceRemote.d.ts.map +1 -1
  134. package/dist/shared/providers/shell/personaSurfaceRemote.js +37 -15
  135. package/dist/shared/providers/shell/useRemoteNavPreferences.d.ts +30 -0
  136. package/dist/shared/providers/shell/useRemoteNavPreferences.d.ts.map +1 -0
  137. package/dist/shared/providers/shell/useRemoteNavPreferences.js +43 -0
  138. package/dist/shared-assistant.js +167 -152
  139. package/dist/ui/modal-shell.d.ts +14 -1
  140. package/dist/ui/modal-shell.d.ts.map +1 -1
  141. package/dist/ui/modal-shell.js +8 -6
  142. package/package.json +2 -2
@@ -0,0 +1,268 @@
1
+ import { AssistantMode, AssistantSandboxAuthContext } from './types';
2
+ /** Which write flow a sandbox enforces (`/health.capabilities.writeApprovalMode`). */
3
+ export type WriteApprovalMode = "legacy" | "proposal-v1";
4
+ /** Whether an approved proposal may run in that sandbox (`fenced` = never, until 5b). */
5
+ export type WriteExecutionState = "enabled" | "fenced";
6
+ /** The sandbox's gateway auth path (`/health.capabilities.sessionCredentials`). */
7
+ export type SandboxSessionCredentials = "relay" | "delegated" | "direct" | "unconfigured";
8
+ /**
9
+ * What ONE sandbox's own `/health` says about writes.
10
+ *
11
+ * ★★ The panel's write UI (card, preamble, voice) follows this, per sandbox,
12
+ * and never the product flag: the flag decides what the panel ASKS for at
13
+ * provisioning, the sandbox's `/health` says what it actually enforces.
14
+ */
15
+ export interface SandboxWriteCapabilities {
16
+ /** The image speaks the v1 proposal protocol (`writeProposals: "v1"`). */
17
+ proposals: boolean;
18
+ writeApprovalMode: WriteApprovalMode;
19
+ writeExecution: WriteExecutionState;
20
+ /** A typed or spoken reply never approves a write in 5a. */
21
+ replyApproval: "off";
22
+ writeRiskVersion?: string;
23
+ sessionCredentials?: SandboxSessionCredentials;
24
+ }
25
+ export type WriteProposalStatus = "pending" | "executing" | "succeeded" | "failed" | "outcome_unknown" | "declined" | "superseded" | "expired";
26
+ export type WriteProposalStatusReason = "user_declined" | "corrected" | "redirected" | "not_chosen" | "user_replied" | "conversation_closed" | "mode_switched" | "sandbox_replaced" | "ttl" | "evicted" | "context_changed" | "stale_execution";
27
+ /** Reasons the panel may give for declining. */
28
+ export type WriteProposalDeclineReason = Extract<WriteProposalStatusReason, "user_declined" | "corrected" | "redirected" | "not_chosen" | "conversation_closed" | "mode_switched" | "sandbox_replaced">;
29
+ export type WriteProposalGateway = "workspace" | "global";
30
+ /** How a decision was made. Only `button` approves in 5a. */
31
+ export type WriteProposalMethod = "button" | "typed" | "spoken";
32
+ /** A decline may also come from the panel's lifecycle (close, mode switch). */
33
+ export type WriteProposalDeclineMethod = WriteProposalMethod | "system";
34
+ export type WriteProposalDecisionSurface = "card" | "assistant_modal" | "host_modal" | "voice";
35
+ /** Where an approval can be pressed. Voice never approves. */
36
+ export type WriteProposalApproveSurface = Exclude<WriteProposalDecisionSurface, "voice">;
37
+ export type WriteProposalPresentationSurface = "card" | "modal" | "voice_readback";
38
+ export type WriteProposalExecutionOutcome = "succeeded" | "failed" | "outcome_unknown";
39
+ export type WriteProposalRiskKind = "destructive" | "financial" | "bulk" | "permission" | "credential" | "irreversible" | "unclassified";
40
+ export interface WriteProposalArgument {
41
+ name: string;
42
+ /** The value that will be sent: inline literals and variables resolved. */
43
+ value: unknown;
44
+ source: "literal" | "variable";
45
+ /** Masked on the card and never spoken. */
46
+ sensitive: boolean;
47
+ }
48
+ export interface WriteProposalRootField {
49
+ alias: string | null;
50
+ field: string;
51
+ args: WriteProposalArgument[];
52
+ }
53
+ export interface WriteProposalVariable {
54
+ /** e.g. `input.title`, `ids`, `items[0].name`. */
55
+ path: string;
56
+ value: unknown;
57
+ sensitive: boolean;
58
+ }
59
+ export interface WriteProposalReadbackField {
60
+ label: string;
61
+ /** null when the value is sensitive (never shown or spoken). */
62
+ value: string | null;
63
+ sensitive: boolean;
64
+ }
65
+ export interface WriteProposalReadbackParts {
66
+ verb: string;
67
+ noun: string;
68
+ count?: number;
69
+ fields: WriteProposalReadbackField[];
70
+ fieldsOmitted?: number;
71
+ }
72
+ export interface WriteProposalConfirmSurface {
73
+ /** `dialog` for the OD-12 kinds; everything else confirms on the card. */
74
+ kind: "card" | "dialog";
75
+ key: string | null;
76
+ }
77
+ export interface WriteProposalDescription {
78
+ /** Root field name(s). Never the model-authored operation name. */
79
+ label: string;
80
+ /** The operation name the model gave; secondary text only. */
81
+ operationNameClaimed: string | null;
82
+ rootFields: WriteProposalRootField[];
83
+ variables: WriteProposalVariable[];
84
+ variablesOmitted?: number;
85
+ targetCount: number;
86
+ noun: string;
87
+ readback: string;
88
+ readbackPast: string;
89
+ readbackParts: WriteProposalReadbackParts;
90
+ confirmLabel: string;
91
+ consequences: string[];
92
+ /** false for destructive or irreversible kinds; null when unknown. */
93
+ reversible: boolean | null;
94
+ confirmSurface: WriteProposalConfirmSurface;
95
+ }
96
+ export interface WriteProposalRisk {
97
+ /** Always HIGH in 5a. */
98
+ level: "high";
99
+ kinds: WriteProposalRiskKind[];
100
+ reasons: string[];
101
+ source: string;
102
+ }
103
+ /** Whether this sandbox may run the proposal once approved. */
104
+ export interface WriteProposalExecutionAvailability {
105
+ enabled: boolean;
106
+ /** e.g. `fenced` for a member's Take action before 5b. */
107
+ reason?: string;
108
+ }
109
+ export interface WriteProposalDecisionView {
110
+ outcome: "approved" | "declined";
111
+ method: WriteProposalDeclineMethod;
112
+ surface: string | null;
113
+ reason: string | null;
114
+ at: number;
115
+ }
116
+ export interface WriteProposalResult {
117
+ summary: string;
118
+ dataPreview?: unknown;
119
+ errors?: {
120
+ message: string;
121
+ code?: string;
122
+ }[];
123
+ }
124
+ /**
125
+ * One proposal as the issuing sandbox derives it on every read. It never
126
+ * carries the raw query document.
127
+ */
128
+ export interface WriteProposalView {
129
+ proposalId: string;
130
+ lineageId: string;
131
+ revision: number;
132
+ status: WriteProposalStatus;
133
+ statusReason: WriteProposalStatusReason | null;
134
+ sessionId: string | null;
135
+ conversationId: string | null;
136
+ /** Echoed back on presented and approve; the sandbox recomputes it. */
137
+ payloadHash: string;
138
+ gateway: WriteProposalGateway;
139
+ description: WriteProposalDescription;
140
+ risk: WriteProposalRisk;
141
+ allowedMethods: WriteProposalMethod[];
142
+ execution: WriteProposalExecutionAvailability;
143
+ /** false while unclaimed or while any binding field is null. */
144
+ approvable: boolean;
145
+ createdAt: number;
146
+ /** Set once at mint and never extended. */
147
+ expiresAt: number;
148
+ supersedes: string | null;
149
+ supersededBy: string | null;
150
+ repeatOf: string | null;
151
+ decision: WriteProposalDecisionView | null;
152
+ result: WriteProposalResult | null;
153
+ }
154
+ /** Everything needed to address a proposal: the sandbox that issued it, first. */
155
+ export interface WriteProposalRef {
156
+ proposalId: string;
157
+ sandboxId: string;
158
+ sessionId: string;
159
+ conversationId: string;
160
+ }
161
+ /** A session in the issuing sandbox (list, decline all). */
162
+ export type WriteProposalSessionRef = Omit<WriteProposalRef, "proposalId">;
163
+ /** Codes the sandbox and wspace-sandbox-svc answer with (design §4.4, §5.6). */
164
+ export declare const WRITE_PROPOSAL_ERROR_CODES: readonly ["NOT_FOUND", "SESSION_MISMATCH", "CONVERSATION_MISMATCH", "ACTOR_MISMATCH", "HASH_MISMATCH", "METHOD_NOT_ALLOWED", "SUPERSEDED", "DECLINED", "NOT_PENDING", "EXPIRED", "EVICTED", "EXECUTION_NOT_ENABLED", "READ_ONLY", "TURN_IN_PROGRESS", "CONTEXT_CHANGED", "STORE_UNAVAILABLE", "APPROVAL_MODE_MISMATCH", "PANEL_UPGRADE_REQUIRED", "NOT_PROPOSAL_OWNER", "INVALID_REQUEST", "MALFORMED_RESPONSE", "UNKNOWN"];
165
+ export type WriteProposalErrorCode = (typeof WRITE_PROPOSAL_ERROR_CODES)[number];
166
+ /**
167
+ * A refused, failed or unreadable proposal request.
168
+ *
169
+ * `status` is the HTTP status the sandbox or svc answered with, or 0 when no
170
+ * answer arrived. `code` is the answer's `code` (upper-cased; anything not in
171
+ * `WRITE_PROPOSAL_ERROR_CODES` becomes `UNKNOWN`). `reason` is the answer's
172
+ * `reason`, e.g. `fenced` or `admin_required` for `EXECUTION_NOT_ENABLED`.
173
+ * `current` is the proposal as it stands now, when the answer carried one.
174
+ */
175
+ export declare class WriteProposalError extends Error {
176
+ readonly status: number;
177
+ readonly code: WriteProposalErrorCode;
178
+ readonly reason?: string;
179
+ readonly current?: WriteProposalView;
180
+ /**
181
+ * Approve only: the change MAY have run (no answer, a timeout, a 5xx, or a
182
+ * success that could not be read). Never show this as failed and never
183
+ * re-send the approve; re-list and let the record decide.
184
+ */
185
+ readonly indeterminate: boolean;
186
+ constructor(init: {
187
+ status: number;
188
+ code: WriteProposalErrorCode;
189
+ message: string;
190
+ reason?: string;
191
+ current?: WriteProposalView;
192
+ indeterminate?: boolean;
193
+ });
194
+ }
195
+ export declare function isWriteProposalError(error: unknown): error is WriteProposalError;
196
+ export interface WriteProposalList {
197
+ serverNow: number;
198
+ mode: WriteApprovalMode;
199
+ execution: WriteExecutionState;
200
+ proposals: WriteProposalView[];
201
+ }
202
+ export type WriteProposalApproveResult =
203
+ /** It ran (or had already run: `replayed`); the record holds the outcome. */
204
+ {
205
+ kind: "settled";
206
+ proposal: WriteProposalView;
207
+ outcome: WriteProposalExecutionOutcome;
208
+ replayed: boolean;
209
+ }
210
+ /** 202: still running after the sandbox's wait. Poll `list`. */
211
+ | {
212
+ kind: "executing";
213
+ proposal: WriteProposalView | null;
214
+ };
215
+ export interface WriteProposalDeclineAllResult {
216
+ declined: number;
217
+ proposalIds: string[];
218
+ }
219
+ export interface WriteProposalClient {
220
+ list(ref: WriteProposalSessionRef, options?: {
221
+ status?: "live" | "all";
222
+ since?: number;
223
+ }): Promise<WriteProposalList>;
224
+ presented(ref: WriteProposalRef, options: {
225
+ payloadHash: string;
226
+ surface: WriteProposalPresentationSurface;
227
+ clientRequestId: string;
228
+ }): Promise<WriteProposalView>;
229
+ /** Always `method: "button"`: the only approval method in 5a. */
230
+ approve(ref: WriteProposalRef, options: {
231
+ payloadHash: string;
232
+ surface: WriteProposalApproveSurface;
233
+ clientRequestId: string;
234
+ }): Promise<WriteProposalApproveResult>;
235
+ decline(ref: WriteProposalRef, options: {
236
+ reason: WriteProposalDeclineReason;
237
+ method: WriteProposalDeclineMethod;
238
+ surface?: WriteProposalDecisionSurface;
239
+ clientRequestId: string;
240
+ }): Promise<WriteProposalView>;
241
+ declineAll(ref: WriteProposalSessionRef, options: {
242
+ reason: WriteProposalDeclineReason;
243
+ method: WriteProposalDeclineMethod;
244
+ clientRequestId: string;
245
+ }): Promise<WriteProposalDeclineAllResult>;
246
+ }
247
+ export interface SandboxWriteProposalClientDeps {
248
+ /** The workspace the issuing sandbox belongs to. */
249
+ getWorkspaceId: () => string | null | undefined;
250
+ /** The signed-in user's CURRENT auth context, read per call. */
251
+ getAuthContext: () => AssistantSandboxAuthContext;
252
+ }
253
+ /**
254
+ * ★ Proposals are minted only by the Take-action helper, so the issuing
255
+ * sandbox is always an `api-calls` sandbox. The mode decides whether the
256
+ * user's own tokens ride the proxy input to wspace-sandbox-svc
257
+ * (`forwardsUserTokensToSandbox`); it is fixed here so it cannot be taken
258
+ * from the panel's current mode, which may be another sandbox's.
259
+ */
260
+ export declare const WRITE_PROPOSAL_SANDBOX_MODE: AssistantMode;
261
+ export declare function createSandboxWriteProposalClient(deps: SandboxWriteProposalClientDeps): WriteProposalClient;
262
+ /**
263
+ * A proposal view read from the wire, or null when it is not the documented
264
+ * shape. The result is REBUILT from the known fields only, so nothing the
265
+ * server added (a raw query document, say) reaches the card.
266
+ */
267
+ export declare function parseWriteProposalView(value: unknown): WriteProposalView | null;
268
+ //# sourceMappingURL=writeProposals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeProposals.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/writeProposals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAM1E,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEzD,yFAAyF;AACzF,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEvD,mFAAmF;AACnF,MAAM,MAAM,yBAAyB,GACjC,OAAO,GACP,WAAW,GACX,QAAQ,GACR,cAAc,CAAC;AAEnB;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE,mBAAmB,CAAC;IACpC,4DAA4D;IAC5D,aAAa,EAAE,KAAK,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;CAChD;AAMD,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,WAAW,GACX,WAAW,GACX,QAAQ,GACR,iBAAiB,GACjB,UAAU,GACV,YAAY,GACZ,SAAS,CAAC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