@case-framework/survey-assistant 0.6.0 → 0.7.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/README.md +9 -4
- package/dist/{authoring-references-CW38pYzK.mjs → authoring-references-BJQ_1nMX.mjs} +2 -2
- package/dist/authoring-references-BJQ_1nMX.mjs.map +1 -0
- package/dist/capabilities-1KNnNO1_.mjs +73 -0
- package/dist/capabilities-1KNnNO1_.mjs.map +1 -0
- package/dist/capabilities-default.d.mts +1 -1
- package/dist/capabilities-default.d.mts.map +1 -1
- package/dist/capabilities-default.mjs +22 -25
- package/dist/capabilities-default.mjs.map +1 -1
- package/dist/{constants-BMGTgfjv.d.mts → constants-Be91Gay9.d.mts} +3 -3
- package/dist/{constants-BMGTgfjv.d.mts.map → constants-Be91Gay9.d.mts.map} +1 -1
- package/dist/{controller-proxy-DMTqer6T.mjs → controller-proxy-BH05e-C2.mjs} +21 -8
- package/dist/controller-proxy-BH05e-C2.mjs.map +1 -0
- package/dist/{controller-proxy-mRvez2qw.d.mts → controller-proxy-Bd0ZHBPF.d.mts} +11 -11
- package/dist/controller-proxy-Bd0ZHBPF.d.mts.map +1 -0
- package/dist/{engine-CQwOAcwK.mjs → engine-Bo85Oyj0.mjs} +2985 -2347
- package/dist/engine-Bo85Oyj0.mjs.map +1 -0
- package/dist/engine.d.mts +2 -2
- package/dist/engine.mjs +3 -3
- package/dist/{index-D6nqkz0O.d.mts → index-Tnqv-yKW.d.mts} +56 -71
- package/dist/index-Tnqv-yKW.d.mts.map +1 -0
- package/dist/index-l_EK4yK7.d.mts +404 -0
- package/dist/index-l_EK4yK7.d.mts.map +1 -0
- package/dist/{index-DvTqML-0.d.mts → index-nhrgbgO5.d.mts} +19 -5
- package/dist/index-nhrgbgO5.d.mts.map +1 -0
- package/dist/{index-B0lxsAzx.d.mts → index-x0qprHgK.d.mts} +19 -7
- package/dist/index-x0qprHgK.d.mts.map +1 -0
- package/dist/{lifecycle-BmGAIUlv.d.mts → lifecycle-Bx0aq_4S.d.mts} +7 -1
- package/dist/{lifecycle-BmGAIUlv.d.mts.map → lifecycle-Bx0aq_4S.d.mts.map} +1 -1
- package/dist/{memory-thread-repository-CjFGVNZh.mjs → memory-thread-repository-KWHQWFEW.mjs} +43 -12
- package/dist/memory-thread-repository-KWHQWFEW.mjs.map +1 -0
- package/dist/{protocol-DJUP4gc0.mjs → protocol-BhzQbx81.mjs} +66 -16
- package/dist/protocol-BhzQbx81.mjs.map +1 -0
- package/dist/protocol.d.mts +3 -3
- package/dist/protocol.mjs +2 -2
- package/dist/react-B3ybjJ-X.mjs +1620 -0
- package/dist/react-B3ybjJ-X.mjs.map +1 -0
- package/dist/react-integration.d.mts +1 -1
- package/dist/react-integration.mjs +1 -1
- package/dist/react.d.mts +3 -3
- package/dist/react.mjs +3 -3
- package/dist/references/assistant-operations.md +45 -39
- package/dist/references/expressions.md +28 -0
- package/dist/references/item-types.md +1 -1
- package/dist/references/localization.md +5 -4
- package/dist/references/rich-text-content.md +60 -27
- package/dist/references/source-material-surveys.md +9 -2
- package/dist/references/survey-data-model.md +9 -1
- package/dist/{request-context-BjTHNcDd.mjs → request-context-CG4SWijt.mjs} +3 -3
- package/dist/{request-context-BjTHNcDd.mjs.map → request-context-CG4SWijt.mjs.map} +1 -1
- package/dist/server-agent.d.mts +19 -8
- package/dist/server-agent.d.mts.map +1 -1
- package/dist/server-agent.mjs +7 -11
- package/dist/server-agent.mjs.map +1 -1
- package/dist/server-runtime.d.mts +19 -13
- package/dist/server-runtime.d.mts.map +1 -1
- package/dist/server-runtime.mjs +7 -2
- package/dist/server-runtime.mjs.map +1 -1
- package/dist/server-tasks.d.mts +1 -1
- package/dist/server-tasks.mjs +2 -2
- package/dist/server-tools.d.mts +1 -1
- package/dist/server-tools.mjs +1 -1
- package/dist/server.d.mts +5 -5
- package/dist/server.mjs +3 -3
- package/dist/{tasks-DxzD25Zc.d.mts → tasks-CYqrcaRO.d.mts} +4 -4
- package/dist/{tasks-DxzD25Zc.d.mts.map → tasks-CYqrcaRO.d.mts.map} +1 -1
- package/dist/{thread-handlers-AbQbt4sX.d.mts → thread-handlers-DBAaU7BA.d.mts} +6 -4
- package/dist/thread-handlers-DBAaU7BA.d.mts.map +1 -0
- package/dist/{tools-CFh35R4d.mjs → tools-BvSovehT.mjs} +431 -495
- package/dist/tools-BvSovehT.mjs.map +1 -0
- package/dist/ui.css +1 -1
- package/dist/ui.d.mts +5 -4
- package/dist/ui.d.mts.map +1 -1
- package/dist/ui.mjs +619 -66
- package/dist/ui.mjs.map +1 -1
- package/docs/integration.md +40 -0
- package/package.json +21 -19
- package/dist/authoring-references-CW38pYzK.mjs.map +0 -1
- package/dist/controller-proxy-DMTqer6T.mjs.map +0 -1
- package/dist/controller-proxy-mRvez2qw.d.mts.map +0 -1
- package/dist/engine-CQwOAcwK.mjs.map +0 -1
- package/dist/form-authoring-kQDgC5oz.mjs +0 -155
- package/dist/form-authoring-kQDgC5oz.mjs.map +0 -1
- package/dist/index-B0lxsAzx.d.mts.map +0 -1
- package/dist/index-BS-Xjk1h.d.mts +0 -224
- package/dist/index-BS-Xjk1h.d.mts.map +0 -1
- package/dist/index-D6nqkz0O.d.mts.map +0 -1
- package/dist/index-DvTqML-0.d.mts.map +0 -1
- package/dist/memory-thread-repository-CjFGVNZh.mjs.map +0 -1
- package/dist/protocol-DJUP4gc0.mjs.map +0 -1
- package/dist/react-Dqlmasrs.mjs +0 -768
- package/dist/react-Dqlmasrs.mjs.map +0 -1
- package/dist/thread-handlers-AbQbt4sX.d.mts.map +0 -1
- package/dist/tools-CFh35R4d.mjs.map +0 -1
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { B as SurveyAssistantThreadTranscript, I as SurveyAssistantAttachmentReference, L as SurveyAssistantThread, R as SurveyAssistantThreadList, n as SurveyAssistantModelOption, nt as SurveyAssistantErrorInfo, t as SurveyAssistantModelCatalog, tt as SurveyAssistantErrorCode } from "./index-nhrgbgO5.mjs";
|
|
2
|
+
import { f as SurveyAssistantTurnFinal, h as SurveyChangeSet, i as SurveyApplyResult, o as SurveyAssistantApplyOutcome, s as SurveyAssistantApplyPolicy, t as ApplyReceipt, wt as SurveyDocumentVersion, xt as SurveyAssistantSnapshot } from "./lifecycle-Bx0aq_4S.mjs";
|
|
3
|
+
import { m as SurveyAssistantLaunchUIContext, p as SurveyAssistantController } from "./controller-proxy-Bd0ZHBPF.mjs";
|
|
4
|
+
import * as _$ai from "ai";
|
|
5
|
+
import { ChatStatus, DefaultChatTransport, FileUIPart, UIMessage } from "ai";
|
|
6
|
+
|
|
7
|
+
//#region src/react/session-state.d.ts
|
|
8
|
+
type SurveyAssistantSessionState = "idle" | "submitting" | "streaming" | "completed" | "failed" | "aborted" | "applying" | "applied";
|
|
9
|
+
type SurveyAssistantSessionEvent = {
|
|
10
|
+
type: "submit";
|
|
11
|
+
} | {
|
|
12
|
+
type: "stream-started";
|
|
13
|
+
} | {
|
|
14
|
+
type: "completed";
|
|
15
|
+
} | {
|
|
16
|
+
type: "apply-started";
|
|
17
|
+
} | {
|
|
18
|
+
type: "applied";
|
|
19
|
+
} | {
|
|
20
|
+
type: "failed";
|
|
21
|
+
} | {
|
|
22
|
+
type: "aborted";
|
|
23
|
+
} | {
|
|
24
|
+
type: "reset";
|
|
25
|
+
hasTranscript: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare const isSurveyAssistantTurnActive: ({
|
|
28
|
+
isStreaming,
|
|
29
|
+
state
|
|
30
|
+
}: {
|
|
31
|
+
isStreaming: boolean;
|
|
32
|
+
state: SurveyAssistantSessionState;
|
|
33
|
+
}) => boolean;
|
|
34
|
+
declare const reduceSurveyAssistantSessionState: (_state: SurveyAssistantSessionState, event: SurveyAssistantSessionEvent) => SurveyAssistantSessionState;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/react/turn-authorization.d.ts
|
|
37
|
+
declare const unwrapSurveyAssistantToolOutput: (output: unknown) => unknown;
|
|
38
|
+
declare const parseSurveyChangeSet: (output: unknown) => SurveyChangeSet | null;
|
|
39
|
+
declare const collectSurveyChangeSets: (messages: UIMessage[]) => SurveyChangeSet[];
|
|
40
|
+
type SurveyTurnAuthorization = {
|
|
41
|
+
status: "pending";
|
|
42
|
+
} | {
|
|
43
|
+
status: "invalid";
|
|
44
|
+
reason: string;
|
|
45
|
+
turnId?: string;
|
|
46
|
+
} | {
|
|
47
|
+
status: "failed" | "aborted";
|
|
48
|
+
turnFinal: SurveyAssistantTurnFinal;
|
|
49
|
+
changeSets: [];
|
|
50
|
+
} | {
|
|
51
|
+
status: "completed";
|
|
52
|
+
turnFinal: SurveyAssistantTurnFinal;
|
|
53
|
+
changeSets: SurveyChangeSet[];
|
|
54
|
+
};
|
|
55
|
+
type SurveyTurnOutcome = {
|
|
56
|
+
status: "failed";
|
|
57
|
+
terminationReason?: SurveyAssistantTurnFinal["terminationReason"];
|
|
58
|
+
} | {
|
|
59
|
+
status: "aborted";
|
|
60
|
+
terminationReason?: SurveyAssistantTurnFinal["terminationReason"];
|
|
61
|
+
} | {
|
|
62
|
+
status: "blocked";
|
|
63
|
+
blockedChangeSetCount: number;
|
|
64
|
+
} | {
|
|
65
|
+
status: "apply-failed";
|
|
66
|
+
appliedChangeSetCount: number;
|
|
67
|
+
failedChangeSetCount: number;
|
|
68
|
+
};
|
|
69
|
+
declare const resolveLatestSurveyTurnAuthorization: (messages: UIMessage[]) => SurveyTurnAuthorization;
|
|
70
|
+
declare const resolveSurveyTurnOutcome: ({
|
|
71
|
+
applyResultsByChangeId,
|
|
72
|
+
authorization
|
|
73
|
+
}: {
|
|
74
|
+
applyResultsByChangeId: Record<string, SurveyApplyResult>;
|
|
75
|
+
authorization: SurveyTurnAuthorization;
|
|
76
|
+
}) => SurveyTurnOutcome | null;
|
|
77
|
+
declare const getSurveyDocumentVersionFromSnapshot: (snapshot: SurveyAssistantSnapshot) => SurveyDocumentVersion;
|
|
78
|
+
declare const createApplyReceipts: ({
|
|
79
|
+
afterSnapshot,
|
|
80
|
+
beforeSnapshot,
|
|
81
|
+
changeSets,
|
|
82
|
+
results,
|
|
83
|
+
turnFinal,
|
|
84
|
+
createdAt
|
|
85
|
+
}: {
|
|
86
|
+
afterSnapshot: SurveyAssistantSnapshot | null;
|
|
87
|
+
beforeSnapshot: SurveyAssistantSnapshot;
|
|
88
|
+
changeSets: SurveyChangeSet[];
|
|
89
|
+
results: SurveyApplyResult[];
|
|
90
|
+
turnFinal: SurveyAssistantTurnFinal;
|
|
91
|
+
createdAt?: string;
|
|
92
|
+
}) => ApplyReceipt[];
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/react/transport.d.ts
|
|
95
|
+
declare const createSurveyAssistantTransport: ({
|
|
96
|
+
api,
|
|
97
|
+
resourceId,
|
|
98
|
+
surveyId,
|
|
99
|
+
threadId
|
|
100
|
+
}: {
|
|
101
|
+
api?: string;
|
|
102
|
+
resourceId: string;
|
|
103
|
+
surveyId?: string;
|
|
104
|
+
threadId: string;
|
|
105
|
+
}) => DefaultChatTransport<UIMessage<unknown, _$ai.UIDataTypes, _$ai.UITools>>;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/react/thread-client.d.ts
|
|
108
|
+
interface SurveyAssistantThreadClient {
|
|
109
|
+
delete(threadId: string): Promise<void>;
|
|
110
|
+
create(title?: string): Promise<SurveyAssistantThread>;
|
|
111
|
+
list(): Promise<SurveyAssistantThread[]>;
|
|
112
|
+
/** Paged history capability. Older custom clients may omit this method. */
|
|
113
|
+
listPage?(options?: {
|
|
114
|
+
cursor?: string;
|
|
115
|
+
}): Promise<SurveyAssistantThreadList>;
|
|
116
|
+
read(threadId: string, cursor?: string, options?: {
|
|
117
|
+
signal?: AbortSignal;
|
|
118
|
+
}): Promise<SurveyAssistantThreadTranscript>;
|
|
119
|
+
rename(threadId: string, title: string): Promise<SurveyAssistantThread>;
|
|
120
|
+
setAutomaticTitle(threadId: string, title?: string): Promise<SurveyAssistantThread>;
|
|
121
|
+
}
|
|
122
|
+
declare const createSurveyAssistantThreadClient: (api?: string) => SurveyAssistantThreadClient;
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/react/client-error.d.ts
|
|
125
|
+
declare class SurveyAssistantClientError extends Error {
|
|
126
|
+
readonly code: SurveyAssistantErrorCode;
|
|
127
|
+
readonly retryable: boolean;
|
|
128
|
+
readonly upstreamStatus?: number;
|
|
129
|
+
readonly providerRequestId?: string;
|
|
130
|
+
readonly providerMessage?: string;
|
|
131
|
+
constructor(code: SurveyAssistantErrorCode, message: string, retryable?: boolean, diagnostics?: Pick<SurveyAssistantErrorInfo, "providerMessage" | "providerRequestId" | "upstreamStatus">);
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/react/support-bundle-limits.d.ts
|
|
135
|
+
interface SurveyAssistantSupportBundleLimits {
|
|
136
|
+
attemptEvents: number;
|
|
137
|
+
attemptStoreBytes: number;
|
|
138
|
+
bundleBytes: number;
|
|
139
|
+
emailWarningBytes: number;
|
|
140
|
+
retainedAttempts: number;
|
|
141
|
+
transcriptBytes: number;
|
|
142
|
+
transcriptMessages: number;
|
|
143
|
+
transcriptPages: number;
|
|
144
|
+
zipEntryBytes: number;
|
|
145
|
+
}
|
|
146
|
+
declare const SURVEY_ASSISTANT_DEFAULT_SUPPORT_BUNDLE_LIMITS: {
|
|
147
|
+
readonly attemptEvents: 200;
|
|
148
|
+
readonly attemptStoreBytes: number;
|
|
149
|
+
readonly bundleBytes: number;
|
|
150
|
+
readonly emailWarningBytes: number;
|
|
151
|
+
readonly retainedAttempts: 5;
|
|
152
|
+
readonly transcriptBytes: number;
|
|
153
|
+
readonly transcriptMessages: 2000;
|
|
154
|
+
readonly transcriptPages: 20;
|
|
155
|
+
readonly zipEntryBytes: number;
|
|
156
|
+
};
|
|
157
|
+
declare const resolveSurveyAssistantSupportBundleLimits: (overrides?: Partial<SurveyAssistantSupportBundleLimits>) => SurveyAssistantSupportBundleLimits;
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/react/diagnostic-store.d.ts
|
|
160
|
+
type SurveyAssistantDiagnosticEventFields = Record<string, boolean | number | string | null | undefined>;
|
|
161
|
+
interface SurveyAssistantDiagnosticEvent {
|
|
162
|
+
at: string;
|
|
163
|
+
event: string;
|
|
164
|
+
fields?: SurveyAssistantDiagnosticEventFields;
|
|
165
|
+
}
|
|
166
|
+
interface SurveyAssistantDiagnosticAttachmentReference {
|
|
167
|
+
bytes: number;
|
|
168
|
+
filename: string;
|
|
169
|
+
mediaType: string;
|
|
170
|
+
sessionContentDigest: string;
|
|
171
|
+
storeKey: string;
|
|
172
|
+
}
|
|
173
|
+
interface SurveyAssistantDiagnosticAttempt {
|
|
174
|
+
applyOutcome?: SurveyAssistantApplyOutcome;
|
|
175
|
+
applyReceipts?: ApplyReceipt[];
|
|
176
|
+
attachments: SurveyAssistantDiagnosticAttachmentReference[];
|
|
177
|
+
captureFailure?: string;
|
|
178
|
+
error?: SurveyAssistantErrorInfo;
|
|
179
|
+
events: SurveyAssistantDiagnosticEvent[];
|
|
180
|
+
messages?: unknown[];
|
|
181
|
+
modelId?: string;
|
|
182
|
+
requestId: string;
|
|
183
|
+
resourceId: string;
|
|
184
|
+
submittedAt: string;
|
|
185
|
+
submittedSurvey?: SurveyAssistantSnapshot | null;
|
|
186
|
+
threadId: string;
|
|
187
|
+
turnFinal?: SurveyAssistantTurnFinal;
|
|
188
|
+
}
|
|
189
|
+
interface StoredAttachment extends SurveyAssistantDiagnosticAttachmentReference {
|
|
190
|
+
dataUrl?: string;
|
|
191
|
+
retainedBytes: number;
|
|
192
|
+
}
|
|
193
|
+
interface SurveyAssistantDiagnosticStore {
|
|
194
|
+
beginAttempt(input: {
|
|
195
|
+
attachmentReferences?: SurveyAssistantAttachmentReference[];
|
|
196
|
+
files: FileUIPart[];
|
|
197
|
+
modelId?: string;
|
|
198
|
+
requestId?: string;
|
|
199
|
+
resourceId: string;
|
|
200
|
+
submittedSurvey: SurveyAssistantSnapshot | null;
|
|
201
|
+
threadId: string;
|
|
202
|
+
}): string;
|
|
203
|
+
deleteThread(threadId: string): void;
|
|
204
|
+
getAttachment(storeKey: string): StoredAttachment | undefined;
|
|
205
|
+
getExportAttempt(threadId: string): SurveyAssistantDiagnosticAttempt | undefined;
|
|
206
|
+
recordApplyOutcome(threadId: string, outcome: SurveyAssistantApplyOutcome): void;
|
|
207
|
+
recordApplyReceipts(threadId: string, receipts: ApplyReceipt[]): void;
|
|
208
|
+
recordEvent(threadId: string, event: string, fields?: SurveyAssistantDiagnosticEventFields): void;
|
|
209
|
+
recordFailure(threadId: string, messages: unknown[], error: SurveyAssistantErrorInfo): void;
|
|
210
|
+
recordTurnFinal(threadId: string, turnFinal: SurveyAssistantTurnFinal): void;
|
|
211
|
+
}
|
|
212
|
+
declare const createSurveyAssistantDiagnosticId: (prefix?: string) => string;
|
|
213
|
+
declare const createSurveyAssistantDiagnosticStore: (overrides?: Partial<SurveyAssistantSupportBundleLimits>) => SurveyAssistantDiagnosticStore;
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/react/support-bundle.d.ts
|
|
216
|
+
type SurveyAssistantSupportBundleCategory = "attachments" | "conversation" | "survey";
|
|
217
|
+
type SurveyAssistantSupportBundleSelection = Record<SurveyAssistantSupportBundleCategory, boolean>;
|
|
218
|
+
declare const SURVEY_ASSISTANT_DEFAULT_SUPPORT_BUNDLE_SELECTION: {
|
|
219
|
+
readonly attachments: true;
|
|
220
|
+
readonly conversation: true;
|
|
221
|
+
readonly survey: true;
|
|
222
|
+
};
|
|
223
|
+
interface SurveyAssistantSupportBundleConfig {
|
|
224
|
+
/** Set to false to disable support-bundle preparation and generation. Defaults to true. */
|
|
225
|
+
enabled?: boolean;
|
|
226
|
+
hostBuildVersion?: string;
|
|
227
|
+
limits?: Partial<SurveyAssistantSupportBundleLimits>;
|
|
228
|
+
packageVersion?: string;
|
|
229
|
+
subjectPrefix?: string;
|
|
230
|
+
supportEmail?: string;
|
|
231
|
+
}
|
|
232
|
+
declare const isSurveyAssistantSupportBundleEnabled: (config?: SurveyAssistantSupportBundleConfig) => boolean;
|
|
233
|
+
interface PreparedEntry {
|
|
234
|
+
bytes: Uint8Array;
|
|
235
|
+
category: SurveyAssistantSupportBundleCategory;
|
|
236
|
+
path: string;
|
|
237
|
+
source: "authorized-transcript" | "browser-session";
|
|
238
|
+
}
|
|
239
|
+
interface UnavailableComponent {
|
|
240
|
+
bytes?: number;
|
|
241
|
+
category: SurveyAssistantSupportBundleCategory;
|
|
242
|
+
filename?: string;
|
|
243
|
+
mediaType?: string;
|
|
244
|
+
reason: "capture-failed" | "no-attempt-retained" | "not-retained" | "too-large" | "unavailable";
|
|
245
|
+
path?: string;
|
|
246
|
+
}
|
|
247
|
+
interface PreparedSurveyAssistantSupportBundle {
|
|
248
|
+
attempt?: SurveyAssistantDiagnosticAttempt;
|
|
249
|
+
categoryBytes: Record<SurveyAssistantSupportBundleCategory, number>;
|
|
250
|
+
currentSurveyCapturedAt: string;
|
|
251
|
+
entries: PreparedEntry[];
|
|
252
|
+
limits: SurveyAssistantSupportBundleLimits;
|
|
253
|
+
resourceId: string;
|
|
254
|
+
threadId: string;
|
|
255
|
+
unavailable: UnavailableComponent[];
|
|
256
|
+
}
|
|
257
|
+
interface GeneratedSurveyAssistantSupportBundle {
|
|
258
|
+
blob: Blob;
|
|
259
|
+
filename: string;
|
|
260
|
+
generatedAt: string;
|
|
261
|
+
includedCategories: SurveyAssistantSupportBundleCategory[];
|
|
262
|
+
size: number;
|
|
263
|
+
}
|
|
264
|
+
declare const sanitizeSurveyAssistantSupportValue: (value: unknown) => {
|
|
265
|
+
redactions: number;
|
|
266
|
+
truncated: boolean;
|
|
267
|
+
value: unknown;
|
|
268
|
+
};
|
|
269
|
+
declare const prepareSurveyAssistantSupportBundle: ({
|
|
270
|
+
config,
|
|
271
|
+
controller,
|
|
272
|
+
diagnosticStore,
|
|
273
|
+
resourceId,
|
|
274
|
+
signal,
|
|
275
|
+
threadClient,
|
|
276
|
+
threadId
|
|
277
|
+
}: {
|
|
278
|
+
config?: SurveyAssistantSupportBundleConfig;
|
|
279
|
+
controller?: SurveyAssistantController | null;
|
|
280
|
+
diagnosticStore: SurveyAssistantDiagnosticStore;
|
|
281
|
+
resourceId: string;
|
|
282
|
+
signal?: AbortSignal;
|
|
283
|
+
threadClient: SurveyAssistantThreadClient;
|
|
284
|
+
threadId: string;
|
|
285
|
+
}) => Promise<PreparedSurveyAssistantSupportBundle>;
|
|
286
|
+
declare const estimateSurveyAssistantSupportBundleBytes: (prepared: PreparedSurveyAssistantSupportBundle, selection: SurveyAssistantSupportBundleSelection, config?: SurveyAssistantSupportBundleConfig) => number;
|
|
287
|
+
declare const generateSurveyAssistantSupportBundle: (prepared: PreparedSurveyAssistantSupportBundle, selection: SurveyAssistantSupportBundleSelection, config?: SurveyAssistantSupportBundleConfig) => Promise<GeneratedSurveyAssistantSupportBundle>;
|
|
288
|
+
declare const downloadSurveyAssistantSupportBundle: (bundle: GeneratedSurveyAssistantSupportBundle) => void;
|
|
289
|
+
declare const createSurveyAssistantSupportDetails: ({
|
|
290
|
+
bundle,
|
|
291
|
+
prepared
|
|
292
|
+
}: {
|
|
293
|
+
bundle: GeneratedSurveyAssistantSupportBundle;
|
|
294
|
+
prepared: PreparedSurveyAssistantSupportBundle;
|
|
295
|
+
}) => string;
|
|
296
|
+
declare const createSurveyAssistantSupportMailto: ({
|
|
297
|
+
bundle,
|
|
298
|
+
config,
|
|
299
|
+
prepared
|
|
300
|
+
}: {
|
|
301
|
+
bundle: GeneratedSurveyAssistantSupportBundle;
|
|
302
|
+
config: SurveyAssistantSupportBundleConfig;
|
|
303
|
+
prepared: PreparedSurveyAssistantSupportBundle;
|
|
304
|
+
}) => string | undefined;
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region src/react/model-catalog.d.ts
|
|
307
|
+
interface SurveyAssistantModelCatalogClient {
|
|
308
|
+
get(): Promise<SurveyAssistantModelCatalog>;
|
|
309
|
+
}
|
|
310
|
+
declare const createSurveyAssistantModelCatalogClient: (api?: string) => SurveyAssistantModelCatalogClient;
|
|
311
|
+
interface UseSurveyAssistantModelCatalogOptions {
|
|
312
|
+
api?: string;
|
|
313
|
+
client?: SurveyAssistantModelCatalogClient;
|
|
314
|
+
onModelChange?(modelId: string): void;
|
|
315
|
+
storageKey?: string | false;
|
|
316
|
+
}
|
|
317
|
+
interface SurveyAssistantModelCatalogState {
|
|
318
|
+
error: Error | null;
|
|
319
|
+
loading: boolean;
|
|
320
|
+
modelId?: string;
|
|
321
|
+
models: SurveyAssistantModelOption[];
|
|
322
|
+
reload(): void;
|
|
323
|
+
selectModel(modelId: string): void;
|
|
324
|
+
}
|
|
325
|
+
declare const useSurveyAssistantModelCatalog: ({
|
|
326
|
+
api,
|
|
327
|
+
client: providedClient,
|
|
328
|
+
onModelChange,
|
|
329
|
+
storageKey
|
|
330
|
+
}?: UseSurveyAssistantModelCatalogOptions) => SurveyAssistantModelCatalogState;
|
|
331
|
+
//#endregion
|
|
332
|
+
//#region src/react/use-survey-assistant-session.d.ts
|
|
333
|
+
interface SurveyAssistantSessionOptions {
|
|
334
|
+
api?: string;
|
|
335
|
+
/** Explicit host decision: apply immediately, present for review, or deny mutations. */
|
|
336
|
+
applyPolicy: SurveyAssistantApplyPolicy;
|
|
337
|
+
controller?: SurveyAssistantController | null;
|
|
338
|
+
/** Optional browser-session diagnostics sink used by the support-bundle UI. */
|
|
339
|
+
diagnosticStore?: SurveyAssistantDiagnosticStore;
|
|
340
|
+
initialMessages?: UIMessage[];
|
|
341
|
+
modelId?: string;
|
|
342
|
+
onApplyReceipts?: (receipts: ApplyReceipt[]) => void;
|
|
343
|
+
/**
|
|
344
|
+
* Production persistence/audit barrier. The turn remains active until this
|
|
345
|
+
* resolves; rejection leaves the settled baseline unchanged.
|
|
346
|
+
*/
|
|
347
|
+
onSettleApply?: (input: {
|
|
348
|
+
changeSets: SurveyChangeSet[];
|
|
349
|
+
receipts: ApplyReceipt[];
|
|
350
|
+
turnFinal: SurveyAssistantTurnFinal;
|
|
351
|
+
}) => void | Promise<void>;
|
|
352
|
+
/**
|
|
353
|
+
* Required for `review`. Resolve true to apply the authorized change sets,
|
|
354
|
+
* or false to leave the editor unchanged.
|
|
355
|
+
*/
|
|
356
|
+
onReviewChangeSets?: (changeSets: SurveyChangeSet[], turnFinal: SurveyAssistantTurnFinal) => boolean | Promise<boolean>;
|
|
357
|
+
/** Reports when a turn owns the editor state, including submission, streaming, and apply. */
|
|
358
|
+
onTurnActiveChange?: (active: boolean) => void;
|
|
359
|
+
resourceId?: string;
|
|
360
|
+
/** Host survey id sent as untrusted request context for server-side authorization. */
|
|
361
|
+
surveyId?: string;
|
|
362
|
+
threadId?: string;
|
|
363
|
+
}
|
|
364
|
+
interface SurveyAssistantSubmitMessage {
|
|
365
|
+
text: string;
|
|
366
|
+
files: FileUIPart[];
|
|
367
|
+
/** Optional model used for this turn instead of the session's selected model. */
|
|
368
|
+
modelId?: string;
|
|
369
|
+
/** Turn-local UI context layered over the controller snapshot for this submission. */
|
|
370
|
+
uiContext?: SurveyAssistantLaunchUIContext;
|
|
371
|
+
}
|
|
372
|
+
interface SurveyAssistantSession {
|
|
373
|
+
applyResultsByChangeId: Record<string, SurveyApplyResult>;
|
|
374
|
+
authorizationError: string | null;
|
|
375
|
+
dismissError(): void;
|
|
376
|
+
error: Error | undefined;
|
|
377
|
+
isStreaming: boolean;
|
|
378
|
+
latestTurnOutcome: SurveyTurnOutcome | null;
|
|
379
|
+
messages: UIMessage[];
|
|
380
|
+
prependMessages(messages: UIMessage[]): void;
|
|
381
|
+
state: SurveyAssistantSessionState;
|
|
382
|
+
status: ChatStatus;
|
|
383
|
+
stop(): void;
|
|
384
|
+
submit(message: SurveyAssistantSubmitMessage): boolean;
|
|
385
|
+
retry(): void;
|
|
386
|
+
}
|
|
387
|
+
declare const useSurveyAssistantSession: ({
|
|
388
|
+
api,
|
|
389
|
+
applyPolicy,
|
|
390
|
+
controller,
|
|
391
|
+
diagnosticStore,
|
|
392
|
+
initialMessages,
|
|
393
|
+
modelId,
|
|
394
|
+
onApplyReceipts,
|
|
395
|
+
onSettleApply,
|
|
396
|
+
onReviewChangeSets,
|
|
397
|
+
onTurnActiveChange,
|
|
398
|
+
resourceId: controlledResourceId,
|
|
399
|
+
surveyId,
|
|
400
|
+
threadId: controlledThreadId
|
|
401
|
+
}: SurveyAssistantSessionOptions) => SurveyAssistantSession;
|
|
402
|
+
//#endregion
|
|
403
|
+
export { SurveyAssistantSupportBundleLimits as A, getSurveyDocumentVersionFromSnapshot as B, sanitizeSurveyAssistantSupportValue as C, createSurveyAssistantDiagnosticId as D, SurveyAssistantDiagnosticStore as E, createSurveyAssistantTransport as F, SurveyAssistantSessionEvent as G, resolveLatestSurveyTurnAuthorization as H, SurveyTurnAuthorization as I, reduceSurveyAssistantSessionState as J, SurveyAssistantSessionState as K, SurveyTurnOutcome as L, SurveyAssistantClientError as M, SurveyAssistantThreadClient as N, createSurveyAssistantDiagnosticStore as O, createSurveyAssistantThreadClient as P, collectSurveyChangeSets as R, prepareSurveyAssistantSupportBundle as S, SurveyAssistantDiagnosticEvent as T, resolveSurveyTurnOutcome as U, parseSurveyChangeSet as V, unwrapSurveyAssistantToolOutput as W, createSurveyAssistantSupportMailto as _, SurveyAssistantModelCatalogClient as a, generateSurveyAssistantSupportBundle as b, createSurveyAssistantModelCatalogClient as c, PreparedSurveyAssistantSupportBundle as d, SURVEY_ASSISTANT_DEFAULT_SUPPORT_BUNDLE_SELECTION as f, createSurveyAssistantSupportDetails as g, SurveyAssistantSupportBundleSelection as h, useSurveyAssistantSession as i, resolveSurveyAssistantSupportBundleLimits as j, SURVEY_ASSISTANT_DEFAULT_SUPPORT_BUNDLE_LIMITS as k, useSurveyAssistantModelCatalog as l, SurveyAssistantSupportBundleConfig as m, SurveyAssistantSessionOptions as n, SurveyAssistantModelCatalogState as o, SurveyAssistantSupportBundleCategory as p, isSurveyAssistantTurnActive as q, SurveyAssistantSubmitMessage as r, UseSurveyAssistantModelCatalogOptions as s, SurveyAssistantSession as t, GeneratedSurveyAssistantSupportBundle as u, downloadSurveyAssistantSupportBundle as v, SurveyAssistantDiagnosticAttempt as w, isSurveyAssistantSupportBundleEnabled as x, estimateSurveyAssistantSupportBundleBytes as y, createApplyReceipts as z };
|
|
404
|
+
//# sourceMappingURL=index-l_EK4yK7.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-l_EK4yK7.d.mts","names":[],"sources":["../src/react/session-state.ts","../src/react/turn-authorization.ts","../src/react/transport.ts","../src/react/thread-client.ts","../src/react/client-error.ts","../src/react/support-bundle-limits.ts","../src/react/diagnostic-store.ts","../src/react/support-bundle.ts","../src/react/model-catalog.ts","../src/react/use-survey-assistant-session.ts"],"mappings":";;;;;;;KAAY,2BAAA;AAAA,KAUA,2BAAA;EACN,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;AAAA;EACA,IAAA;EAAe,aAAA;AAAA;AAAA,cAER,2BAAA;EAA+B,WAAA;EAAA;AAAA;EAI1C,WAAA;EACA,KAAA,EAAO,2BAAA;AAAA;AAAA,cAKI,iCAAA,GACX,MAAA,EAAQ,2BAAA,EACR,KAAA,EAAO,2BAAA,KACN,2BAAA;;;cCPU,+BAAA,GAAmC,MAAA;AAAA,cAOnC,oBAAA,GAAwB,MAAA,cAAkB,eAAA;AAAA,cAK1C,uBAAA,GAA2B,QAAA,EAAU,SAAA,OAAc,eAAA;AAAA,KAuBpD,uBAAA;EACN,MAAA;AAAA;EACA,MAAA;EAAmB,MAAA;EAAgB,MAAA;AAAA;EAEnC,MAAA;EACA,SAAA,EAAW,wBAAA;EACX,UAAA;AAAA;EAGA,MAAA;EACA,SAAA,EAAW,wBAAA;EACX,UAAA,EAAY,eAAA;AAAA;AAAA,KAGN,iBAAA;EAEN,MAAA;EACA,iBAAA,GAAoB,wBAAA;AAAA;EAGpB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
|
20
20
|
detail: z.ZodOptional<z.ZodString>;
|
|
21
21
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
upstreamStatus: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
providerRequestId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
providerMessage: z.ZodOptional<z.ZodString>;
|
|
22
25
|
}, z.core.$strip>;
|
|
23
26
|
type SurveyAssistantErrorInfo = z.infer<typeof surveyAssistantErrorInfoSchema>;
|
|
27
|
+
declare const isSurveyAssistantErrorRetryable: (error: Pick<SurveyAssistantErrorInfo, "code" | "retryable" | "upstreamStatus">, httpStatus?: number) => boolean;
|
|
24
28
|
declare const serializeSurveyAssistantError: (error: SurveyAssistantErrorInfo) => string;
|
|
25
29
|
declare const parseSurveyAssistantError: (value: unknown) => SurveyAssistantErrorInfo;
|
|
26
30
|
//#endregion
|
|
31
|
+
//#region src/protocol/sanitization.d.ts
|
|
32
|
+
declare const MAX_USER_ERROR_MESSAGE_LENGTH = 700;
|
|
33
|
+
declare const redactSurveyAssistantDiagnosticSecrets: (value: string) => string;
|
|
34
|
+
declare const sanitizeSurveyAssistantDiagnosticText: (value: string, maximum?: number) => string;
|
|
35
|
+
declare const isSurveyAssistantSensitiveMetadataKey: (key: string) => boolean;
|
|
36
|
+
declare const getSurveyAssistantEmbeddedBinaryMarker: (value: unknown, parent?: Record<string, unknown>, key?: string) => {
|
|
37
|
+
characters: number;
|
|
38
|
+
redacted: "base64" | "data-url";
|
|
39
|
+
} | undefined;
|
|
40
|
+
//#endregion
|
|
27
41
|
//#region src/protocol/attachments.d.ts
|
|
28
42
|
declare const SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES: readonly ["application/pdf", "image/png", "image/jpeg"];
|
|
29
43
|
type SurveyAssistantAttachmentMediaType = (typeof SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES)[number];
|
|
@@ -102,8 +116,8 @@ declare const surveyAssistantSuggestedTextSchema: z.ZodObject<{
|
|
|
102
116
|
}, z.core.$strip>;
|
|
103
117
|
type SurveyAssistantSuggestedText = z.infer<typeof surveyAssistantSuggestedTextSchema>;
|
|
104
118
|
declare const surveyAssistantKeySuggestionCategorySchema: z.ZodEnum<{
|
|
105
|
-
"survey-pattern": "survey-pattern";
|
|
106
119
|
compact: "compact";
|
|
120
|
+
"survey-pattern": "survey-pattern";
|
|
107
121
|
preferred: "preferred";
|
|
108
122
|
fair: "fair";
|
|
109
123
|
}>;
|
|
@@ -111,8 +125,8 @@ type SurveyAssistantKeySuggestionCategory = z.infer<typeof surveyAssistantKeySug
|
|
|
111
125
|
declare const surveyAssistantKeySuggestionSchema: z.ZodObject<{
|
|
112
126
|
text: z.ZodString;
|
|
113
127
|
category: z.ZodEnum<{
|
|
114
|
-
"survey-pattern": "survey-pattern";
|
|
115
128
|
compact: "compact";
|
|
129
|
+
"survey-pattern": "survey-pattern";
|
|
116
130
|
preferred: "preferred";
|
|
117
131
|
fair: "fair";
|
|
118
132
|
}>;
|
|
@@ -131,8 +145,8 @@ declare const surveyAssistantSuggestItemKeyResultSchema: z.ZodObject<{
|
|
|
131
145
|
suggestions: z.ZodArray<z.ZodObject<{
|
|
132
146
|
text: z.ZodString;
|
|
133
147
|
category: z.ZodEnum<{
|
|
134
|
-
"survey-pattern": "survey-pattern";
|
|
135
148
|
compact: "compact";
|
|
149
|
+
"survey-pattern": "survey-pattern";
|
|
136
150
|
preferred: "preferred";
|
|
137
151
|
fair: "fair";
|
|
138
152
|
}>;
|
|
@@ -742,5 +756,5 @@ declare const surveyAssistantModelCatalogSchema: z.ZodObject<{
|
|
|
742
756
|
type SurveyAssistantModelOption = z.infer<typeof surveyAssistantModelOptionSchema>;
|
|
743
757
|
type SurveyAssistantModelCatalog = z.infer<typeof surveyAssistantModelCatalogSchema>;
|
|
744
758
|
//#endregion
|
|
745
|
-
export {
|
|
746
|
-
//# sourceMappingURL=index-
|
|
759
|
+
export { redactSurveyAssistantDiagnosticSecrets as $, surveyAssistantTaskRequestSchema as A, SurveyAssistantThreadTranscript as B, surveyAssistantSuggestItemKeyResultSchema as C, surveyAssistantTaskContextSchema as D, surveyAssistantSuggestedTextSchema as E, SURVEY_ASSISTANT_ATTACHMENT_PART_TYPE as F, surveyAssistantThreadTranscriptSchema as G, createSurveyAssistantThreadInputSchema as H, SurveyAssistantAttachmentReference as I, SurveyAssistantAttachmentMediaType as J, updateSurveyAssistantThreadInputSchema as K, SurveyAssistantThread as L, surveyAssistantTranslateContentInputSchema as M, surveyAssistantTranslateContentResultSchema as N, surveyAssistantTaskInvocationModeSchema as O, CreateSurveyAssistantThreadInput as P, isSurveyAssistantSensitiveMetadataKey as Q, SurveyAssistantThreadList as R, surveyAssistantSuggestItemKeyInputSchema as S, surveyAssistantSuggestItemLabelResultSchema as T, surveyAssistantThreadListSchema as U, UpdateSurveyAssistantThreadInput as V, surveyAssistantThreadSchema as W, MAX_USER_ERROR_MESSAGE_LENGTH as X, isSurveyAssistantAttachmentMediaType as Y, getSurveyAssistantEmbeddedBinaryMarker as Z, SurveyAssistantTranslateContentEntry as _, SurveyAssistantKeySuggestion as a, serializeSurveyAssistantError as at, surveyAssistantKeySuggestionCategorySchema as b, SurveyAssistantSuggestItemKeyInput as c, SurveyAssistantSuggestItemLabelResult as d, sanitizeSurveyAssistantDiagnosticText as et, SurveyAssistantSuggestedText as f, SurveyAssistantTaskRequest as g, SurveyAssistantTaskItemSummary as h, surveyAssistantModelOptionSchema as i, parseSurveyAssistantError as it, surveyAssistantTranslateContentEntrySchema as j, surveyAssistantTaskItemSummarySchema as k, SurveyAssistantSuggestItemKeyResult as l, SurveyAssistantTaskInvocationMode as m, SurveyAssistantModelOption as n, SurveyAssistantErrorInfo as nt, SurveyAssistantKeySuggestionCategory as o, surveyAssistantErrorCodeSchema as ot, SurveyAssistantTaskContext as p, SURVEY_ASSISTANT_ATTACHMENT_MEDIA_TYPES as q, surveyAssistantModelCatalogSchema as r, isSurveyAssistantErrorRetryable as rt, SurveyAssistantLabelSuggestion as s, surveyAssistantErrorInfoSchema as st, SurveyAssistantModelCatalog as t, SurveyAssistantErrorCode as tt, SurveyAssistantSuggestItemLabelInput as u, SurveyAssistantTranslateContentInput as v, surveyAssistantSuggestItemLabelInputSchema as w, surveyAssistantKeySuggestionSchema as x, SurveyAssistantTranslateContentResult as y, SurveyAssistantThreadTitleMode as z };
|
|
760
|
+
//# sourceMappingURL=index-nhrgbgO5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-nhrgbgO5.d.mts","names":[],"sources":["../src/protocol/errors.ts","../src/protocol/sanitization.ts","../src/protocol/attachments.ts","../src/protocol/threads.ts","../src/protocol/tasks.ts","../src/protocol/models.ts"],"mappings":";;;cAMa,8BAAA,EAA8B,CAAA,CAAA,OAAA;;;;;;;KAQ/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;KAS/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA;AAAA,cAEzC,+BAAA,GACX,KAAA,EAAO,IAAA,CAAK,wBAAA,4CACZ,UAAA;AAAA,cAYW,6BAAA,GAAiC,KAAA,EAAO,wBAAA;AAAA,cAGxC,yBAAA,GAA6B,KAAA,cAAiB,wBAAA;;;cC5C9C,6BAAA;AAAA,cASA,sCAAA,GAA0C,KAAA;AAAA,cAS1C,qCAAA,GACX,KAAA,UACA,OAAA;AAAA,cAQW,qCAAA,GAAyC,GAAA;AAAA,cAiBzC,sCAAA,GACX,KAAA,WACA,MAAA,GAAS,MAAA,mBACT,GAAA;EACG,UAAA;EAAoB,QAAA;AAAA;;;cCjDZ,uCAAA;AAAA,KAMD,kCAAA,WACF,uCAAA;AAAA,cAEG,oCAAA,GACX,SAAA,aACC,SAAA,IAAa,kCAAA;;;cCTH,qCAAA;AAAA,UAEI,kCAAA;EACf,UAAA;EACA,QAAA;EACA,SAAA;EACA,KAAA;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBjC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAAa,gCAAA;;;cCpN3C,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;KAUlC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAAa,gCAAA;AAAA,KAC5C,2BAAA,GAA8B,CAAA,CAAE,KAAA,QAAa,iCAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as SurveyChangeSetShape } from "./lifecycle-
|
|
1
|
+
import { g as SurveyChangeSetShape } from "./lifecycle-Bx0aq_4S.mjs";
|
|
2
2
|
import * as _$_mastra_core_tools0 from "@mastra/core/tools";
|
|
3
3
|
|
|
4
4
|
//#region src/server/tools/survey-audit-tool.d.ts
|
|
@@ -19,6 +19,7 @@ declare const surveyAuditTool: _$_mastra_core_tools0.Tool<{
|
|
|
19
19
|
declare const surveyAssetTool: _$_mastra_core_tools0.Tool<{
|
|
20
20
|
action: "import-attachment" | "update-metadata" | "remove";
|
|
21
21
|
summary: string;
|
|
22
|
+
retryOfChangeIds?: string[] | undefined;
|
|
22
23
|
documentId?: string | undefined;
|
|
23
24
|
assetId?: string | undefined;
|
|
24
25
|
name?: string | null | undefined;
|
|
@@ -30,7 +31,7 @@ declare const surveyAssetTool: _$_mastra_core_tools0.Tool<{
|
|
|
30
31
|
declare const SURVEY_ASSISTANT_TOOL_IDS: readonly ["survey_inspect", "survey_change", "survey_expression", "survey_authoring_reference", "survey_attachment", "survey_audit", "survey_asset"];
|
|
31
32
|
declare const surveyAssistantTools: Readonly<{
|
|
32
33
|
survey_inspect: _$_mastra_core_tools0.Tool<{
|
|
33
|
-
action: "
|
|
34
|
+
action: "current-context" | "search-items" | "item-details" | "localization" | "assets" | "expression-diagnostics" | "raw-json";
|
|
34
35
|
reason?: string | undefined;
|
|
35
36
|
scopes?: ("summary" | "selected-item" | "outline" | "response-slots" | "ui-context" | "history")[] | undefined;
|
|
36
37
|
query?: string | undefined;
|
|
@@ -41,12 +42,13 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
41
42
|
cursor?: string | undefined;
|
|
42
43
|
outlineMode?: "full" | "focused" | "children" | undefined;
|
|
43
44
|
paths?: string[] | undefined;
|
|
45
|
+
textOffset?: number | undefined;
|
|
44
46
|
includeChildren?: boolean | undefined;
|
|
45
47
|
includeItemConfig?: boolean | undefined;
|
|
46
48
|
limit?: number | undefined;
|
|
47
49
|
}, {
|
|
48
50
|
ok: boolean;
|
|
49
|
-
action: "
|
|
51
|
+
action: "current-context" | "search-items" | "item-details" | "localization" | "assets" | "expression-diagnostics" | "raw-json";
|
|
50
52
|
modelSummary: string;
|
|
51
53
|
reason?: string | undefined;
|
|
52
54
|
result?: unknown;
|
|
@@ -54,12 +56,13 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
54
56
|
survey_change: _$_mastra_core_tools0.Tool<{
|
|
55
57
|
summary: string;
|
|
56
58
|
operations: unknown[];
|
|
59
|
+
retryOfChangeIds?: string[] | undefined;
|
|
57
60
|
}, SurveyChangeSetShape, unknown, unknown, _$_mastra_core_tools0.ToolExecutionContext<unknown, unknown, unknown>, "survey_change", unknown>;
|
|
58
61
|
survey_authoring_reference: _$_mastra_core_tools0.Tool<{
|
|
59
62
|
topic: string;
|
|
60
63
|
itemType?: string | undefined;
|
|
61
64
|
operationKind?: string | undefined;
|
|
62
|
-
detail?: "
|
|
65
|
+
detail?: "full" | "compact" | undefined;
|
|
63
66
|
reason?: string | undefined;
|
|
64
67
|
}, {
|
|
65
68
|
ok: boolean;
|
|
@@ -68,15 +71,18 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
68
71
|
content: string;
|
|
69
72
|
itemType?: string | undefined;
|
|
70
73
|
operationKind?: string | undefined;
|
|
71
|
-
detail?: "
|
|
74
|
+
detail?: "full" | "compact" | undefined;
|
|
72
75
|
}, unknown, unknown, _$_mastra_core_tools0.ToolExecutionContext<unknown, unknown, unknown>, "survey_authoring_reference", unknown>;
|
|
73
76
|
survey_expression: _$_mastra_core_tools0.Tool<{
|
|
74
77
|
action: "context" | "prepare";
|
|
78
|
+
retryOfChangeIds?: string[] | undefined;
|
|
75
79
|
reason?: string | undefined;
|
|
76
80
|
itemIds?: string[] | undefined;
|
|
81
|
+
cursor?: string | undefined;
|
|
82
|
+
limit?: number | undefined;
|
|
77
83
|
includeRawLocations?: boolean | undefined;
|
|
78
84
|
summary?: string | undefined;
|
|
79
|
-
mutations?:
|
|
85
|
+
mutations?: unknown[] | undefined;
|
|
80
86
|
}, SurveyChangeSetShape | {
|
|
81
87
|
ok: boolean;
|
|
82
88
|
action: "context";
|
|
@@ -86,6 +92,11 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
86
92
|
ref: string;
|
|
87
93
|
valueType?: string | undefined;
|
|
88
94
|
}[];
|
|
95
|
+
nextCursor?: string | undefined;
|
|
96
|
+
totalResponseSlots?: number | undefined;
|
|
97
|
+
surveyResponseSlotCount?: number | undefined;
|
|
98
|
+
totalExpressionLocations?: number | undefined;
|
|
99
|
+
unresolvedItemIds?: string[] | undefined;
|
|
89
100
|
expressionLocations?: {
|
|
90
101
|
itemId: string;
|
|
91
102
|
key: string;
|
|
@@ -132,6 +143,7 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
132
143
|
survey_asset: _$_mastra_core_tools0.Tool<{
|
|
133
144
|
action: "import-attachment" | "update-metadata" | "remove";
|
|
134
145
|
summary: string;
|
|
146
|
+
retryOfChangeIds?: string[] | undefined;
|
|
135
147
|
documentId?: string | undefined;
|
|
136
148
|
assetId?: string | undefined;
|
|
137
149
|
name?: string | null | undefined;
|
|
@@ -141,4 +153,4 @@ declare const surveyAssistantTools: Readonly<{
|
|
|
141
153
|
}>;
|
|
142
154
|
//#endregion
|
|
143
155
|
export { surveyAuditTool as i, surveyAssistantTools as n, surveyAssetTool as r, SURVEY_ASSISTANT_TOOL_IDS as t };
|
|
144
|
-
//# sourceMappingURL=index-
|
|
156
|
+
//# sourceMappingURL=index-x0qprHgK.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-x0qprHgK.d.mts","names":[],"sources":["../src/server/tools/survey-audit-tool.ts","../src/server/tools/survey-asset-tool.ts","../src/server/tools/index.ts"],"mappings":";;;;cAqIa,eAAA,EAwBX,qBAAA,CAxB0B,IAAA;;;;;;;;;;;qBAwB1B,qBAAA,CAAA,oBAAA;;;cCaW,eAAA,wBAAe,IAAA;;;;;;;;;GAiI1B,oBAAA;;;cChSW,yBAAA;AAAA,cAaA,oBAAA,EAAoB,QAAA;;;;;;;;;;;;;;;;;;;;;;;uBAQ/B,qBAAA,CAAA,oBAAA"}
|
|
@@ -367,6 +367,12 @@ interface SurveyChangeSetShape {
|
|
|
367
367
|
summary: string;
|
|
368
368
|
operations: SurveyOperation[];
|
|
369
369
|
supersedesChangeIds?: string[];
|
|
370
|
+
pendingRepairs?: Array<{
|
|
371
|
+
changeId: string;
|
|
372
|
+
targets: string[];
|
|
373
|
+
requiresExplicitRetry: boolean;
|
|
374
|
+
allowsAcknowledgment?: boolean;
|
|
375
|
+
}>;
|
|
370
376
|
precondition?: SurveyDocumentVersion;
|
|
371
377
|
postChange?: SurveyAssistantPostChangeProjectionShape;
|
|
372
378
|
verification?: SurveyAssistantChangeVerificationShape;
|
|
@@ -520,4 +526,4 @@ type SurveyAssistantApplyResult = SurveyApplyResult;
|
|
|
520
526
|
type SurveyAssistantBatchApplyResult = SurveyBatchApplyResult;
|
|
521
527
|
//#endregion
|
|
522
528
|
export { surveyAssistantUpdateItemKeyOperationSchema as $, SurveyAssistantSurveyJsonPatchOperation as A, surveyAssistantSnapshotSchema as At, patchItemConfigOperationSchema as B, surveyAssistantTurnFinalSchema as C, SurveyDocumentSnapshot as Ct, JsonPatchOperation$1 as D, surveyAssistantDraftChangePreconditionSchema as Dt, surveyChangeSetSchema as E, rawSurveyDocumentSchema as Et, SurveyValidationIssue as F, SurveyContent as Ft, surveyAssistantCreateItemOperationSchema as G, removeItemOperationSchema as H, SurveyValidationResult as I, jsonValueSchema as It, surveyAssistantRemoveItemOperationSchema as J, surveyAssistantOperationSchema as K, addChoiceOptionOperationSchema as L, surveyContentSchema as Lt, SurveyAssistantValidationResult as M, surveyDocumentVersionSchema as Mt, SurveyOperation as N, surveyEditorUIContextSchema as Nt, SURVEY_OPERATION_KINDS as O, surveyAssistantProtocolVersionSchema as Ot, SurveyOperationKind as P, JsonValue$1 as Pt, surveyAssistantUpdateItemColorOperationSchema as Q, createItemOperationSchema as R, surveyAssistantDraftChangeEventSchema as S, SurveyAssistantSnapshotPayload as St, surveyBatchApplyResultSchema as T, SurveyEditorUIContext as Tt, reorderChoiceOptionsOperationSchema as U, removeChoiceOptionOperationSchema as V, surveyAssistantAddChoiceOptionOperationSchema as W, surveyAssistantSurveyJsonPatchOperationSchema as X, surveyAssistantReorderChoiceOptionsOperationSchema as Y, surveyAssistantUpdateChoiceOptionLabelOperationSchema as Z, applyReceiptSchema as _, SurveyAssistantItemCreateStrategy as _t, SurveyApplyStatus as a, surveyOperationSchema as at, surveyAssistantApplyOutcomeSchema as b, SurveyAssistantProtocolVersion as bt, SurveyAssistantApplyResult as c, surveyValidationResultSchema as ct, SurveyAssistantDraftChangeEvent as d, updateItemKeyOperationSchema as dt, surveyAssistantUpdateItemLabelOperationSchema as et, SurveyAssistantTurnFinal as f, updateItemLabelOperationSchema as ft, SurveyChangeSetShape as g, SurveyAssistantDraftChangePrecondition as gt, SurveyChangeSet as h, SURVEY_ASSISTANT_PROTOCOL_VERSION as ht, SurveyApplyResult as i, surveyJsonPatchOperationSchema as it, SurveyAssistantValidationIssue as j, surveyDocumentSnapshotSchema as jt, SurveyAssistantOperation as k, surveyAssistantSnapshotPayloadSchema as kt, SurveyAssistantApplyStatus as l, updateChoiceOptionLabelOperationSchema as lt, SurveyBatchApplyResult as m, RawSurveyDocument as mt, SURVEY_ASSISTANT_TURN_FINAL_DATA_NAME as n, surveyAssistantValidationIssueSchema as nt, SurveyAssistantApplyOutcome as o, surveyPatchOperationSchema as ot, SurveyAssistantTurnTerminationReason as p, updateItemTranslationOperationSchema as pt, surveyAssistantRemoveChoiceOptionOperationSchema as q, SURVEY_ASSISTANT_TURN_FINAL_PART_TYPE as r, surveyAssistantValidationResultSchema as rt, SurveyAssistantApplyPolicy as s, surveyValidationIssueSchema as st, ApplyReceipt as t, surveyAssistantUpdateItemTranslationOperationSchema as tt, SurveyAssistantBatchApplyResult as u, updateItemColorOperationSchema as ut, surveyApplyResultSchema as v, SurveyAssistantItemRegistryManifest as vt, surveyAssistantTurnTerminationReasonSchema as w, SurveyDocumentVersion as wt, surveyAssistantApplyPolicySchema as x, SurveyAssistantSnapshot as xt, surveyApplyStatusSchema as y, SurveyAssistantItemTypeManifestEntry as yt, jsonPatchOperationSchema as z };
|
|
523
|
-
//# sourceMappingURL=lifecycle-
|
|
529
|
+
//# sourceMappingURL=lifecycle-Bx0aq_4S.d.mts.map
|