@yadsh/dsh-qa-surface 0.2.0 → 0.3.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/CHANGELOG.md +84 -1
- package/README.md +87 -12
- package/compatibility.json +11 -3
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/COMPATIBILITY.md +1 -1
- package/docs/CONFIGURATION.md +88 -1
- package/docs/SOURCES-MIGRATION.md +28 -0
- package/docs/SOURCES-PROVENANCE-AUDIT.md +88 -0
- package/docs/SPEC-dsh-qa-surface-accounts.md +219 -0
- package/docs/SPEC-dsh-qa-surface-sources-provenance.md +1692 -0
- package/lib/accounts/index.js +2 -0
- package/lib/accounts/index.js.map +1 -0
- package/lib/accounts/store.js +478 -0
- package/lib/accounts/store.js.map +1 -0
- package/lib/attestation.js.map +1 -1
- package/lib/cli.js +143 -0
- package/lib/cli.js.map +1 -0
- package/lib/client/QaAccountsController.js +329 -0
- package/lib/client/QaAccountsController.js.map +1 -0
- package/lib/client/QaSessionController.js +203 -127
- package/lib/client/QaSessionController.js.map +1 -1
- package/lib/client/QaSurface.js +234 -72
- package/lib/client/QaSurface.js.map +1 -1
- package/lib/client/QaTranscriptAdapter.js +27 -241
- package/lib/client/QaTranscriptAdapter.js.map +1 -1
- package/lib/client/attestation.js +6 -0
- package/lib/client/attestation.js.map +1 -1
- package/lib/client/components/Markdown.js +54 -13
- package/lib/client/components/Markdown.js.map +1 -1
- package/lib/client/components/QaAuthGate.js +40 -0
- package/lib/client/components/QaAuthGate.js.map +1 -0
- package/lib/client/components/QaChangelog.js +112 -0
- package/lib/client/components/QaChangelog.js.map +1 -0
- package/lib/client/components/QaMessage.js +47 -17
- package/lib/client/components/QaMessage.js.map +1 -1
- package/lib/client/components/QaSidebar.js +63 -20
- package/lib/client/components/QaSidebar.js.map +1 -1
- package/lib/client/components/QaSourcesDrawer.js +113 -32
- package/lib/client/components/QaSourcesDrawer.js.map +1 -1
- package/lib/client/components/QaTurnRail.js +281 -0
- package/lib/client/components/QaTurnRail.js.map +1 -0
- package/lib/client/components/QaWelcomeNotice.js +125 -0
- package/lib/client/components/QaWelcomeNotice.js.map +1 -0
- package/lib/client/components/QaWidthHandle.js +142 -0
- package/lib/client/components/QaWidthHandle.js.map +1 -0
- package/lib/client/components/source-refs.js +78 -0
- package/lib/client/components/source-refs.js.map +1 -0
- package/lib/client/create-session.js +51 -0
- package/lib/client/create-session.js.map +1 -0
- package/lib/client/index.js +100 -12
- package/lib/client/index.js.map +1 -1
- package/lib/client/project-session-state.js +78 -0
- package/lib/client/project-session-state.js.map +1 -0
- package/lib/client/session-admission.js +38 -0
- package/lib/client/session-admission.js.map +1 -0
- package/lib/client/session-assets.js +52 -0
- package/lib/client/session-assets.js.map +1 -0
- package/lib/client/session-sources.js +61 -0
- package/lib/client/session-sources.js.map +1 -0
- package/lib/client/settlement.js +24 -0
- package/lib/client/settlement.js.map +1 -0
- package/lib/client/styles.js +151 -9
- package/lib/client/styles.js.map +1 -1
- package/lib/client/tool-presentation.js +102 -0
- package/lib/client/tool-presentation.js.map +1 -0
- package/lib/client/turn-sources.js +98 -0
- package/lib/client/turn-sources.js.map +1 -0
- package/lib/client/types.js +2 -0
- package/lib/client/types.js.map +1 -1
- package/lib/client/use-session-ui-state.js +68 -0
- package/lib/client/use-session-ui-state.js.map +1 -0
- package/lib/client/use-transcript-view.js +44 -0
- package/lib/client/use-transcript-view.js.map +1 -0
- package/lib/client.js +4649 -861
- package/lib/client.js.map +1 -1
- package/lib/config.js +218 -102
- package/lib/config.js.map +1 -1
- package/lib/entry-redirect.js +44 -0
- package/lib/entry-redirect.js.map +1 -0
- package/lib/host-route.js +25 -1
- package/lib/host-route.js.map +1 -1
- package/lib/index.js +209 -23
- package/lib/index.js.map +1 -1
- package/lib/launch-token.js +42 -0
- package/lib/launch-token.js.map +1 -0
- package/lib/provenance/collector.js +40 -0
- package/lib/provenance/collector.js.map +1 -0
- package/lib/provenance/connectors.js +147 -0
- package/lib/provenance/connectors.js.map +1 -0
- package/lib/provenance/dedupe.js +89 -0
- package/lib/provenance/dedupe.js.map +1 -0
- package/lib/provenance/extractors.js +340 -0
- package/lib/provenance/extractors.js.map +1 -0
- package/lib/provenance/file-preview.js +39 -0
- package/lib/provenance/file-preview.js.map +1 -0
- package/lib/provenance/host-store.js +387 -0
- package/lib/provenance/host-store.js.map +1 -0
- package/lib/provenance/index.js +9 -0
- package/lib/provenance/index.js.map +1 -0
- package/lib/provenance/normalize.js +128 -0
- package/lib/provenance/normalize.js.map +1 -0
- package/lib/provenance/reported.js +53 -0
- package/lib/provenance/reported.js.map +1 -0
- package/lib/provenance/types.js +2 -0
- package/lib/provenance/types.js.map +1 -0
- package/lib/resolve-config.js +161 -0
- package/lib/resolve-config.js.map +1 -1
- package/lib/secure-session.js +50 -8
- package/lib/secure-session.js.map +1 -1
- package/lib/typert.host.js +599 -6
- package/lib/typert.remote-client.d.ts +19 -3
- package/lib/typert.remote-client.js +471 -3
- package/lib/types/accounts/index.d.ts +2 -0
- package/lib/types/accounts/store.d.ts +121 -0
- package/lib/types/attestation.d.ts +1 -1
- package/lib/types/cli.d.ts +9 -0
- package/lib/types/client/QaAccountsController.d.ts +95 -0
- package/lib/types/client/QaConfigController.d.ts +1 -1
- package/lib/types/client/QaSessionController.d.ts +46 -7
- package/lib/types/client/QaSurface.d.ts +8 -3
- package/lib/types/client/QaTranscriptAdapter.d.ts +5 -10
- package/lib/types/client/components/Markdown.d.ts +11 -1
- package/lib/types/client/components/QaAgentsDrawer.d.ts +1 -1
- package/lib/types/client/components/QaAuthGate.d.ts +15 -0
- package/lib/types/client/components/QaChangelog.d.ts +21 -0
- package/lib/types/client/components/QaMessage.d.ts +10 -3
- package/lib/types/client/components/QaSidebar.d.ts +30 -2
- package/lib/types/client/components/QaSourcesDrawer.d.ts +15 -3
- package/lib/types/client/components/QaTurnRail.d.ts +59 -0
- package/lib/types/client/components/QaWelcomeNotice.d.ts +27 -0
- package/lib/types/client/components/QaWidthHandle.d.ts +36 -0
- package/lib/types/client/components/source-refs.d.ts +16 -0
- package/lib/types/client/create-session.d.ts +16 -0
- package/lib/types/client/index.d.ts +1 -0
- package/lib/types/client/project-session-state.d.ts +30 -0
- package/lib/types/client/session-admission.d.ts +23 -0
- package/lib/types/client/session-assets.d.ts +20 -0
- package/lib/types/client/session-sources.d.ts +28 -0
- package/lib/types/client/settlement.d.ts +6 -0
- package/lib/types/client/tool-presentation.d.ts +6 -0
- package/lib/types/client/turn-sources.d.ts +14 -0
- package/lib/types/client/types.d.ts +73 -9
- package/lib/types/client/use-session-ui-state.d.ts +35 -0
- package/lib/types/client/use-transcript-view.d.ts +20 -0
- package/lib/types/entry-redirect.d.ts +20 -0
- package/lib/types/host-route.d.ts +14 -1
- package/lib/types/index.d.ts +47 -3
- package/lib/types/launch-token.d.ts +21 -0
- package/lib/types/provenance/collector.d.ts +26 -0
- package/lib/types/provenance/connectors.d.ts +11 -0
- package/lib/types/provenance/dedupe.d.ts +6 -0
- package/lib/types/provenance/extractors.d.ts +14 -0
- package/lib/types/provenance/file-preview.d.ts +10 -0
- package/lib/types/provenance/host-store.d.ts +54 -0
- package/lib/types/provenance/index.d.ts +10 -0
- package/lib/types/provenance/normalize.d.ts +13 -0
- package/lib/types/provenance/reported.d.ts +5 -0
- package/lib/types/provenance/types.d.ts +78 -0
- package/lib/types/secure-session.d.ts +11 -2
- package/lib/types/types.d.ts +167 -11
- package/package.json +58 -41
package/lib/typert.host.js
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
const QaSourceMetadataValueRemoteCodec$schema = z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)).readonly()])
|
|
5
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_0$schema = z.string()
|
|
6
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_1$schema = z.array(z.string())
|
|
7
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema = z.object({
|
|
8
|
+
'claimed': z.number().readonly(),
|
|
9
|
+
'conflicts': z.array(z.string()).readonly(),
|
|
10
|
+
})
|
|
11
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_parameter_0$schema = z.string()
|
|
12
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema = z.object({
|
|
13
|
+
'entries': z.array(z.object({
|
|
14
|
+
'sessionId': z.string().readonly(),
|
|
15
|
+
'userId': z.string().readonly(),
|
|
16
|
+
'displayName': z.string().readonly(),
|
|
17
|
+
'claimedAt': z.string().readonly(),
|
|
18
|
+
})).readonly(),
|
|
19
|
+
})
|
|
20
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_0$schema = z.string()
|
|
21
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_1$schema = z.string()
|
|
22
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema = z.object({
|
|
23
|
+
'token': z.string().readonly(),
|
|
24
|
+
'user': z.object({
|
|
25
|
+
'id': z.string().readonly(),
|
|
26
|
+
'email': z.string().readonly(),
|
|
27
|
+
'displayName': z.string().readonly(),
|
|
28
|
+
'role': z.union([z.literal("user"), z.literal("admin")]).readonly(),
|
|
29
|
+
'createdAt': z.string().readonly(),
|
|
30
|
+
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
31
|
+
'disabled': z.boolean().readonly(),
|
|
32
|
+
}).readonly(),
|
|
33
|
+
})
|
|
34
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_parameter_0$schema = z.string()
|
|
35
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema = z.object({
|
|
36
|
+
'ids': z.array(z.string()).readonly(),
|
|
37
|
+
})
|
|
38
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_0$schema = z.string()
|
|
39
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_1$schema = z.string()
|
|
40
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema = z.object({
|
|
41
|
+
'token': z.string().readonly(),
|
|
42
|
+
'user': z.object({
|
|
43
|
+
'id': z.string().readonly(),
|
|
44
|
+
'email': z.string().readonly(),
|
|
45
|
+
'displayName': z.string().readonly(),
|
|
46
|
+
'role': z.union([z.literal("user"), z.literal("admin")]).readonly(),
|
|
47
|
+
'createdAt': z.string().readonly(),
|
|
48
|
+
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
49
|
+
'disabled': z.boolean().readonly(),
|
|
50
|
+
}).readonly(),
|
|
51
|
+
})
|
|
52
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_parameter_0$schema = z.string()
|
|
53
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema = z.union([z.object({
|
|
54
|
+
'authenticated': z.literal(false).readonly(),
|
|
55
|
+
}), z.object({
|
|
56
|
+
'authenticated': z.literal(true).readonly(),
|
|
57
|
+
'user': z.object({
|
|
58
|
+
'id': z.string().readonly(),
|
|
59
|
+
'email': z.string().readonly(),
|
|
60
|
+
'displayName': z.string().readonly(),
|
|
61
|
+
'role': z.union([z.literal("user"), z.literal("admin")]).readonly(),
|
|
62
|
+
'createdAt': z.string().readonly(),
|
|
63
|
+
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
64
|
+
'disabled': z.boolean().readonly(),
|
|
65
|
+
}).readonly(),
|
|
66
|
+
})])
|
|
4
67
|
const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
5
68
|
'enabled': z.boolean().readonly(),
|
|
6
69
|
'route': z.object({
|
|
@@ -64,9 +127,71 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
64
127
|
}).readonly(),
|
|
65
128
|
'embedding': z.object({
|
|
66
129
|
'frameAncestors': z.union([z.literal(null), z.string()]).readonly(),
|
|
130
|
+
}).readonly(),
|
|
131
|
+
'accounts': z.object({
|
|
132
|
+
'enabled': z.boolean().readonly(),
|
|
133
|
+
'allowRegistration': z.boolean().readonly(),
|
|
134
|
+
'sessionTtlDays': z.number().readonly(),
|
|
135
|
+
'showOtherUsersChats': z.boolean().readonly(),
|
|
136
|
+
}).readonly(),
|
|
137
|
+
'entry': z.object({
|
|
138
|
+
'redirectNonLoopback': z.boolean().readonly(),
|
|
139
|
+
'cookieBootstrap': z.boolean().readonly(),
|
|
140
|
+
}).readonly(),
|
|
141
|
+
'sources': z.object({
|
|
142
|
+
'enabled': z.boolean().readonly(),
|
|
143
|
+
'collect': z.object({
|
|
144
|
+
'parentAgent': z.boolean().readonly(),
|
|
145
|
+
'subagents': z.boolean().readonly(),
|
|
146
|
+
'persistTurnEvent': z.boolean().readonly(),
|
|
147
|
+
}).readonly(),
|
|
148
|
+
'display': z.object({
|
|
149
|
+
'sidebar': z.boolean().readonly(),
|
|
150
|
+
'footer': z.boolean().readonly(),
|
|
151
|
+
'groupByKind': z.boolean().readonly(),
|
|
152
|
+
'showDiscovered': z.boolean().readonly(),
|
|
153
|
+
'showOriginBadges': z.boolean().readonly(),
|
|
154
|
+
'maxInitiallyVisiblePerGroup': z.number().readonly(),
|
|
155
|
+
}).readonly(),
|
|
156
|
+
'webSearch': z.object({
|
|
157
|
+
'promoteSearchResultsWithoutFetch': z.boolean().readonly(),
|
|
158
|
+
'maxPromotedPerSearch': z.number().readonly(),
|
|
159
|
+
}).readonly(),
|
|
160
|
+
'dedupe': z.object({
|
|
161
|
+
'normalizeUrls': z.boolean().readonly(),
|
|
162
|
+
'stripTrackingParams': z.boolean().readonly(),
|
|
163
|
+
'mergeFileRanges': z.boolean().readonly(),
|
|
164
|
+
}).readonly(),
|
|
165
|
+
'filePreview': z.object({
|
|
166
|
+
'enabled': z.boolean().readonly(),
|
|
167
|
+
'markdownRenderedByDefault': z.boolean().readonly(),
|
|
168
|
+
'allowRawToggle': z.boolean().readonly(),
|
|
169
|
+
'maxBytes': z.number().readonly(),
|
|
170
|
+
'maxMarkdownRenderBytes': z.number().readonly(),
|
|
171
|
+
}).readonly(),
|
|
172
|
+
'subagents': z.object({
|
|
173
|
+
'inheritSources': z.boolean().readonly(),
|
|
174
|
+
'enableReportToolFallback': z.boolean().readonly(),
|
|
175
|
+
'markIncompleteOpaqueRuns': z.boolean().readonly(),
|
|
176
|
+
}).readonly(),
|
|
177
|
+
'legacy': z.object({
|
|
178
|
+
'parseAssistantSourcesBlock': z.boolean().readonly(),
|
|
179
|
+
}).readonly(),
|
|
67
180
|
}).readonly(),
|
|
68
181
|
})
|
|
182
|
+
const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_0$schema = z.string()
|
|
183
|
+
const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_1$schema = z.string()
|
|
184
|
+
const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_2$schema = z.string()
|
|
185
|
+
const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema = z.object({
|
|
186
|
+
'path': z.string().readonly(),
|
|
187
|
+
'content': z.string().readonly(),
|
|
188
|
+
'size': z.number().readonly(),
|
|
189
|
+
'truncated': z.boolean().readonly(),
|
|
190
|
+
'markdown': z.boolean().readonly(),
|
|
191
|
+
'renderableMarkdown': z.boolean().readonly(),
|
|
192
|
+
})
|
|
69
193
|
const _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_0$schema = z.string()
|
|
194
|
+
const _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_1$schema = z.string()
|
|
70
195
|
const _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema = z.object({
|
|
71
196
|
'sessionId': z.string().readonly(),
|
|
72
197
|
'enabled': z.boolean().readonly(),
|
|
@@ -79,6 +204,79 @@ const _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema = z.object({
|
|
|
79
204
|
'toolPolicyLoaded': z.boolean().readonly(),
|
|
80
205
|
'toolAllowList': z.array(z.string()).readonly(),
|
|
81
206
|
})
|
|
207
|
+
const _yadsh_dsh_qa_surface_qaSurface_sources_parameter_0$schema = z.string()
|
|
208
|
+
const _yadsh_dsh_qa_surface_qaSurface_sources_parameter_1$schema = z.string()
|
|
209
|
+
const _yadsh_dsh_qa_surface_qaSurface_sources_result$schema = z.array(z.object({
|
|
210
|
+
'version': z.literal(1).readonly(),
|
|
211
|
+
'sessionId': z.string().readonly(),
|
|
212
|
+
'turn': z.number().readonly(),
|
|
213
|
+
'sources': z.array(z.object({
|
|
214
|
+
'id': z.string().readonly(),
|
|
215
|
+
'kind': z.union([z.literal("file"), z.literal("code"), z.literal("web"), z.literal("jira"), z.literal("confluence"), z.literal("knowledge"), z.literal("other")]).readonly(),
|
|
216
|
+
'title': z.string().readonly(),
|
|
217
|
+
'uri': z.string().readonly().optional(),
|
|
218
|
+
'path': z.string().readonly().optional(),
|
|
219
|
+
'snippet': z.string().readonly().optional(),
|
|
220
|
+
'locations': z.array(z.object({
|
|
221
|
+
'path': z.string().readonly().optional(),
|
|
222
|
+
'lineStart': z.number().readonly().optional(),
|
|
223
|
+
'lineEnd': z.number().readonly().optional(),
|
|
224
|
+
'anchor': z.string().readonly().optional(),
|
|
225
|
+
'jiraKey': z.string().readonly().optional(),
|
|
226
|
+
'confluencePageId': z.string().readonly().optional(),
|
|
227
|
+
})).readonly(),
|
|
228
|
+
'evidence': z.union([z.literal("read"), z.literal("fetched"), z.literal("queried"), z.literal("reported"), z.literal("inherited"), z.literal("discovered")]).readonly(),
|
|
229
|
+
'origins': z.array(z.object({
|
|
230
|
+
'sessionId': z.string().readonly(),
|
|
231
|
+
'turn': z.number().readonly(),
|
|
232
|
+
'step': z.number().readonly().optional(),
|
|
233
|
+
'toolCallId': z.string().readonly().optional(),
|
|
234
|
+
'toolName': z.string().readonly().optional(),
|
|
235
|
+
'agentId': z.string().readonly().optional(),
|
|
236
|
+
'role': z.union([z.literal("parent"), z.literal("subagent")]).readonly(),
|
|
237
|
+
'subagentRunId': z.string().readonly().optional(),
|
|
238
|
+
'subagentSessionId': z.string().readonly().optional(),
|
|
239
|
+
})).readonly(),
|
|
240
|
+
'score': z.number().readonly(),
|
|
241
|
+
'metadata': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)).readonly()])).readonly().readonly().optional(),
|
|
242
|
+
})).readonly(),
|
|
243
|
+
'discovered': z.array(z.object({
|
|
244
|
+
'id': z.string().readonly(),
|
|
245
|
+
'kind': z.union([z.literal("file"), z.literal("code"), z.literal("web"), z.literal("jira"), z.literal("confluence"), z.literal("knowledge"), z.literal("other")]).readonly(),
|
|
246
|
+
'title': z.string().readonly(),
|
|
247
|
+
'uri': z.string().readonly().optional(),
|
|
248
|
+
'path': z.string().readonly().optional(),
|
|
249
|
+
'snippet': z.string().readonly().optional(),
|
|
250
|
+
'locations': z.array(z.object({
|
|
251
|
+
'path': z.string().readonly().optional(),
|
|
252
|
+
'lineStart': z.number().readonly().optional(),
|
|
253
|
+
'lineEnd': z.number().readonly().optional(),
|
|
254
|
+
'anchor': z.string().readonly().optional(),
|
|
255
|
+
'jiraKey': z.string().readonly().optional(),
|
|
256
|
+
'confluencePageId': z.string().readonly().optional(),
|
|
257
|
+
})).readonly(),
|
|
258
|
+
'evidence': z.union([z.literal("read"), z.literal("fetched"), z.literal("queried"), z.literal("reported"), z.literal("inherited"), z.literal("discovered")]).readonly(),
|
|
259
|
+
'origins': z.array(z.object({
|
|
260
|
+
'sessionId': z.string().readonly(),
|
|
261
|
+
'turn': z.number().readonly(),
|
|
262
|
+
'step': z.number().readonly().optional(),
|
|
263
|
+
'toolCallId': z.string().readonly().optional(),
|
|
264
|
+
'toolName': z.string().readonly().optional(),
|
|
265
|
+
'agentId': z.string().readonly().optional(),
|
|
266
|
+
'role': z.union([z.literal("parent"), z.literal("subagent")]).readonly(),
|
|
267
|
+
'subagentRunId': z.string().readonly().optional(),
|
|
268
|
+
'subagentSessionId': z.string().readonly().optional(),
|
|
269
|
+
})).readonly(),
|
|
270
|
+
'score': z.number().readonly(),
|
|
271
|
+
'metadata': z.record(z.string(), z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)), z.record(z.string(), z.lazy(() => QaSourceMetadataValueRemoteCodec$schema)).readonly()])).readonly().readonly().optional(),
|
|
272
|
+
})).readonly().optional(),
|
|
273
|
+
'complete': z.boolean().readonly(),
|
|
274
|
+
'incompleteOrigins': z.array(z.object({
|
|
275
|
+
'subagentRunId': z.string().readonly().optional(),
|
|
276
|
+
'provider': z.string().readonly().optional(),
|
|
277
|
+
'reason': z.string().readonly(),
|
|
278
|
+
})).readonly().optional(),
|
|
279
|
+
}))
|
|
82
280
|
|
|
83
281
|
export const TYPERT = {
|
|
84
282
|
package: '@yadsh/dsh-qa-surface',
|
|
@@ -86,6 +284,186 @@ export const TYPERT = {
|
|
|
86
284
|
schemas: [
|
|
87
285
|
],
|
|
88
286
|
invocations: [
|
|
287
|
+
{
|
|
288
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions',
|
|
289
|
+
service: 'qaSurface',
|
|
290
|
+
namespace: 'qaSurface',
|
|
291
|
+
method: 'accountsClaimSessions',
|
|
292
|
+
invocation: { kind: 'direct' },
|
|
293
|
+
parameters: [
|
|
294
|
+
{
|
|
295
|
+
name: 'token',
|
|
296
|
+
wire: 'token',
|
|
297
|
+
source: 'json',
|
|
298
|
+
codec: {
|
|
299
|
+
mode: 'strict',
|
|
300
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions:token',
|
|
301
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_0$schema,
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: 'sessionIds',
|
|
306
|
+
wire: 'sessionIds',
|
|
307
|
+
source: 'json',
|
|
308
|
+
codec: {
|
|
309
|
+
mode: 'strict',
|
|
310
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions:sessionIds',
|
|
311
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_1$schema,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
result: {
|
|
316
|
+
mode: 'strict',
|
|
317
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaClaimResult',
|
|
318
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema,
|
|
319
|
+
},
|
|
320
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":256,"column":3},
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership',
|
|
324
|
+
service: 'qaSurface',
|
|
325
|
+
namespace: 'qaSurface',
|
|
326
|
+
method: 'accountsListOwnership',
|
|
327
|
+
invocation: { kind: 'direct' },
|
|
328
|
+
parameters: [
|
|
329
|
+
{
|
|
330
|
+
name: 'token',
|
|
331
|
+
wire: 'token',
|
|
332
|
+
source: 'json',
|
|
333
|
+
codec: {
|
|
334
|
+
mode: 'strict',
|
|
335
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:token',
|
|
336
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_parameter_0$schema,
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
result: {
|
|
341
|
+
mode: 'strict',
|
|
342
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:result',
|
|
343
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema,
|
|
344
|
+
},
|
|
345
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":280,"column":3},
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin',
|
|
349
|
+
service: 'qaSurface',
|
|
350
|
+
namespace: 'qaSurface',
|
|
351
|
+
method: 'accountsLogin',
|
|
352
|
+
invocation: { kind: 'direct' },
|
|
353
|
+
parameters: [
|
|
354
|
+
{
|
|
355
|
+
name: 'email',
|
|
356
|
+
wire: 'email',
|
|
357
|
+
source: 'json',
|
|
358
|
+
codec: {
|
|
359
|
+
mode: 'strict',
|
|
360
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin:email',
|
|
361
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_0$schema,
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'password',
|
|
366
|
+
wire: 'password',
|
|
367
|
+
source: 'json',
|
|
368
|
+
codec: {
|
|
369
|
+
mode: 'strict',
|
|
370
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin:password',
|
|
371
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_1$schema,
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
result: {
|
|
376
|
+
mode: 'strict',
|
|
377
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
378
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema,
|
|
379
|
+
},
|
|
380
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":241,"column":3},
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions',
|
|
384
|
+
service: 'qaSurface',
|
|
385
|
+
namespace: 'qaSurface',
|
|
386
|
+
method: 'accountsOwnedSessions',
|
|
387
|
+
invocation: { kind: 'direct' },
|
|
388
|
+
parameters: [
|
|
389
|
+
{
|
|
390
|
+
name: 'token',
|
|
391
|
+
wire: 'token',
|
|
392
|
+
source: 'json',
|
|
393
|
+
codec: {
|
|
394
|
+
mode: 'strict',
|
|
395
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:token',
|
|
396
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_parameter_0$schema,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
result: {
|
|
401
|
+
mode: 'strict',
|
|
402
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:result',
|
|
403
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema,
|
|
404
|
+
},
|
|
405
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":266,"column":3},
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister',
|
|
409
|
+
service: 'qaSurface',
|
|
410
|
+
namespace: 'qaSurface',
|
|
411
|
+
method: 'accountsRegister',
|
|
412
|
+
invocation: { kind: 'direct' },
|
|
413
|
+
parameters: [
|
|
414
|
+
{
|
|
415
|
+
name: 'email',
|
|
416
|
+
wire: 'email',
|
|
417
|
+
source: 'json',
|
|
418
|
+
codec: {
|
|
419
|
+
mode: 'strict',
|
|
420
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister:email',
|
|
421
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_0$schema,
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'password',
|
|
426
|
+
wire: 'password',
|
|
427
|
+
source: 'json',
|
|
428
|
+
codec: {
|
|
429
|
+
mode: 'strict',
|
|
430
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister:password',
|
|
431
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_1$schema,
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
result: {
|
|
436
|
+
mode: 'strict',
|
|
437
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
438
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema,
|
|
439
|
+
},
|
|
440
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":235,"column":3},
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami',
|
|
444
|
+
service: 'qaSurface',
|
|
445
|
+
namespace: 'qaSurface',
|
|
446
|
+
method: 'accountsWhoami',
|
|
447
|
+
invocation: { kind: 'direct' },
|
|
448
|
+
parameters: [
|
|
449
|
+
{
|
|
450
|
+
name: 'token',
|
|
451
|
+
wire: 'token',
|
|
452
|
+
source: 'json',
|
|
453
|
+
codec: {
|
|
454
|
+
mode: 'strict',
|
|
455
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami:token',
|
|
456
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_parameter_0$schema,
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
result: {
|
|
461
|
+
mode: 'strict',
|
|
462
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaWhoamiResult',
|
|
463
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema,
|
|
464
|
+
},
|
|
465
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":248,"column":3},
|
|
466
|
+
},
|
|
89
467
|
{
|
|
90
468
|
id: '@yadsh/dsh-qa-surface#qaSurface/describe',
|
|
91
469
|
service: 'qaSurface',
|
|
@@ -99,7 +477,52 @@ export const TYPERT = {
|
|
|
99
477
|
typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
|
|
100
478
|
schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
|
|
101
479
|
},
|
|
102
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
480
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":298,"column":3},
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile',
|
|
484
|
+
service: 'qaSurface',
|
|
485
|
+
namespace: 'qaSurface',
|
|
486
|
+
method: 'readSourceFile',
|
|
487
|
+
invocation: { kind: 'direct' },
|
|
488
|
+
parameters: [
|
|
489
|
+
{
|
|
490
|
+
name: 'token',
|
|
491
|
+
wire: 'token',
|
|
492
|
+
source: 'json',
|
|
493
|
+
codec: {
|
|
494
|
+
mode: 'strict',
|
|
495
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:token',
|
|
496
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_0$schema,
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: 'sessionId',
|
|
501
|
+
wire: 'sessionId',
|
|
502
|
+
source: 'json',
|
|
503
|
+
codec: {
|
|
504
|
+
mode: 'strict',
|
|
505
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:sessionId',
|
|
506
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_1$schema,
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: 'sourcePath',
|
|
511
|
+
wire: 'sourcePath',
|
|
512
|
+
source: 'json',
|
|
513
|
+
codec: {
|
|
514
|
+
mode: 'strict',
|
|
515
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:sourcePath',
|
|
516
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_2$schema,
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
result: {
|
|
521
|
+
mode: 'strict',
|
|
522
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaSourceFilePreview',
|
|
523
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema,
|
|
524
|
+
},
|
|
525
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":337,"column":9},
|
|
103
526
|
},
|
|
104
527
|
{
|
|
105
528
|
id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
|
|
@@ -108,6 +531,16 @@ export const TYPERT = {
|
|
|
108
531
|
method: 'secureSession',
|
|
109
532
|
invocation: { kind: 'direct' },
|
|
110
533
|
parameters: [
|
|
534
|
+
{
|
|
535
|
+
name: 'token',
|
|
536
|
+
wire: 'token',
|
|
537
|
+
source: 'json',
|
|
538
|
+
codec: {
|
|
539
|
+
mode: 'strict',
|
|
540
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/secureSession:token',
|
|
541
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_0$schema,
|
|
542
|
+
},
|
|
543
|
+
},
|
|
111
544
|
{
|
|
112
545
|
name: 'sessionId',
|
|
113
546
|
wire: 'sessionId',
|
|
@@ -115,7 +548,7 @@ export const TYPERT = {
|
|
|
115
548
|
codec: {
|
|
116
549
|
mode: 'strict',
|
|
117
550
|
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/secureSession:sessionId',
|
|
118
|
-
schema:
|
|
551
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_1$schema,
|
|
119
552
|
},
|
|
120
553
|
},
|
|
121
554
|
],
|
|
@@ -124,7 +557,42 @@ export const TYPERT = {
|
|
|
124
557
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
|
|
125
558
|
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
|
|
126
559
|
},
|
|
127
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
560
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":304,"column":3},
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/sources',
|
|
564
|
+
service: 'qaSurface',
|
|
565
|
+
namespace: 'qaSurface',
|
|
566
|
+
method: 'sources',
|
|
567
|
+
invocation: { kind: 'direct' },
|
|
568
|
+
parameters: [
|
|
569
|
+
{
|
|
570
|
+
name: 'token',
|
|
571
|
+
wire: 'token',
|
|
572
|
+
source: 'json',
|
|
573
|
+
codec: {
|
|
574
|
+
mode: 'strict',
|
|
575
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:token',
|
|
576
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_parameter_0$schema,
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
name: 'sessionId',
|
|
581
|
+
wire: 'sessionId',
|
|
582
|
+
source: 'json',
|
|
583
|
+
codec: {
|
|
584
|
+
mode: 'strict',
|
|
585
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:sessionId',
|
|
586
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_parameter_1$schema,
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
],
|
|
590
|
+
result: {
|
|
591
|
+
mode: 'strict',
|
|
592
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:result',
|
|
593
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_result$schema,
|
|
594
|
+
},
|
|
595
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":330,"column":3},
|
|
128
596
|
},
|
|
129
597
|
],
|
|
130
598
|
model: {
|
|
@@ -142,6 +610,46 @@ export const TYPERT = {
|
|
|
142
610
|
"name": "getConfig",
|
|
143
611
|
"signature": "getConfig(): ResolvedQaSurfaceConfig"
|
|
144
612
|
},
|
|
613
|
+
{
|
|
614
|
+
"kind": "method",
|
|
615
|
+
"name": "accountsRegister",
|
|
616
|
+
"signature": "@Remote(\"accountsRegister\") accountsRegister(email: string, password: string): QaAccountSession",
|
|
617
|
+
"summary": "Self-service signup; the first account ever created becomes admin.",
|
|
618
|
+
"jsDoc": "/**\n * Self-service signup; the first account ever created becomes admin. The\n * display name derives from the email: the generated client enforces exact\n * wire arity, so an optional name parameter would still be required.\n */"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "method",
|
|
622
|
+
"name": "accountsLogin",
|
|
623
|
+
"signature": "@Remote(\"accountsLogin\") accountsLogin(email: string, password: string): QaAccountSession"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"kind": "method",
|
|
627
|
+
"name": "accountsWhoami",
|
|
628
|
+
"signature": "@Remote(\"accountsWhoami\") accountsWhoami(token: string): QaWhoamiResult",
|
|
629
|
+
"summary": "Identity probe; safe to call with an empty or expired token.",
|
|
630
|
+
"jsDoc": "/** Identity probe; safe to call with an empty or expired token. */"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"kind": "method",
|
|
634
|
+
"name": "accountsClaimSessions",
|
|
635
|
+
"signature": "@Remote(\"accountsClaimSessions\") accountsClaimSessions( token: string, sessionIds: readonly string[], ): QaClaimResult",
|
|
636
|
+
"summary": "Migrate a browser's local chat index into server-side ownership.",
|
|
637
|
+
"jsDoc": "/** Migrate a browser's local chat index into server-side ownership. */"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"kind": "method",
|
|
641
|
+
"name": "accountsOwnedSessions",
|
|
642
|
+
"signature": "@Remote(\"accountsOwnedSessions\") accountsOwnedSessions(token: string): { readonly ids: readonly string[] }",
|
|
643
|
+
"summary": "The token user's owned session ids; the sidebar list authority.",
|
|
644
|
+
"jsDoc": "/** The token user's owned session ids; the sidebar list authority. */"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"kind": "method",
|
|
648
|
+
"name": "accountsListOwnership",
|
|
649
|
+
"signature": "@Remote(\"accountsListOwnership\") accountsListOwnership(token: string): { readonly entries: readonly QaOwnershipEntry[]; }",
|
|
650
|
+
"summary": "Every chat-ownership entry with owner display names; the cross-user view admin browsers group the sidebar by.",
|
|
651
|
+
"jsDoc": "/**\n * Every chat-ownership entry with owner display names; the cross-user view\n * admin browsers group the sidebar by. Ordinary accounts are refused with\n * the dedicated reason, anonymous ones with auth-required.\n */"
|
|
652
|
+
},
|
|
145
653
|
{
|
|
146
654
|
"kind": "method",
|
|
147
655
|
"name": "describe",
|
|
@@ -152,20 +660,54 @@ export const TYPERT = {
|
|
|
152
660
|
{
|
|
153
661
|
"kind": "method",
|
|
154
662
|
"name": "secureSession",
|
|
155
|
-
"signature": "@Remote(\"secureSession\") secureSession(sessionId: string): QaLockdownProof",
|
|
663
|
+
"signature": "@Remote(\"secureSession\") secureSession(token: string, sessionId: string): QaLockdownProof",
|
|
156
664
|
"summary": "Pin and attest the effective policy.",
|
|
157
665
|
"jsDoc": "/** Pin and attest the effective policy. The browser supplies identity only. */"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"kind": "method",
|
|
669
|
+
"name": "sources",
|
|
670
|
+
"signature": "@Remote(\"sources\") sources(token: string, sessionId: string): readonly QaTurnSources[]",
|
|
671
|
+
"summary": "Return canonical Host snapshots; replay is rebuilt from qa/sources events.",
|
|
672
|
+
"jsDoc": "/** Return canonical Host snapshots; replay is rebuilt from qa/sources events. */"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"kind": "method",
|
|
676
|
+
"name": "readSourceFile",
|
|
677
|
+
"signature": "@Remote(\"readSourceFile\") async readSourceFile( token: string, sessionId: string, sourcePath: string, ): Promise<QaSourceFilePreview>",
|
|
678
|
+
"summary": "Narrow read-only preview capability for files already present as sources.",
|
|
679
|
+
"jsDoc": "/** Narrow read-only preview capability for files already present as sources. */"
|
|
158
680
|
}
|
|
159
681
|
],
|
|
160
682
|
"types": [
|
|
683
|
+
{
|
|
684
|
+
"name": "QaAccountRole",
|
|
685
|
+
"declaration": "export type QaAccountRole = \"user\" | \"admin\";"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "QaAccountSession",
|
|
689
|
+
"declaration": "export interface QaAccountSession {\n readonly token: string;\n readonly user: QaAccountUserPublic;\n}"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "QaAccountUserPublic",
|
|
693
|
+
"declaration": "export interface QaAccountUserPublic {\n readonly id: string;\n readonly email: string;\n readonly displayName: string;\n readonly role: QaAccountRole;\n readonly createdAt: string;\n readonly lastLoginAt: string | null;\n readonly disabled: boolean;\n}"
|
|
694
|
+
},
|
|
161
695
|
{
|
|
162
696
|
"name": "QaApprovalPolicy",
|
|
163
697
|
"declaration": "export type QaApprovalPolicy = \"never\";"
|
|
164
698
|
},
|
|
699
|
+
{
|
|
700
|
+
"name": "QaClaimResult",
|
|
701
|
+
"declaration": "export interface QaClaimResult {\n readonly claimed: number;\n readonly conflicts: readonly string[];\n}"
|
|
702
|
+
},
|
|
165
703
|
{
|
|
166
704
|
"name": "QaLockdownProof",
|
|
167
705
|
"declaration": "export interface QaLockdownProof {\n readonly sessionId: string;\n readonly enabled: boolean;\n readonly agentPresetMatches: boolean;\n readonly workspaceMatches: boolean;\n readonly modelMatches: boolean;\n readonly sandboxIsReadOnly: boolean;\n readonly approvalIsNever: boolean;\n readonly permissionPreset: string;\n readonly toolPolicyLoaded: boolean;\n readonly toolAllowList: readonly string[];\n}"
|
|
168
706
|
},
|
|
707
|
+
{
|
|
708
|
+
"name": "QaOwnershipEntry",
|
|
709
|
+
"declaration": "export interface QaOwnershipEntry {\n readonly sessionId: string;\n readonly userId: string;\n readonly displayName: string;\n readonly claimedAt: string;\n}"
|
|
710
|
+
},
|
|
169
711
|
{
|
|
170
712
|
"name": "QaSandboxMode",
|
|
171
713
|
"declaration": "export type QaSandboxMode = \"read-only\";"
|
|
@@ -174,18 +716,69 @@ export const TYPERT = {
|
|
|
174
716
|
"name": "QaSessionPolicy",
|
|
175
717
|
"declaration": "export type QaSessionPolicy = \"browser-persistent\" | \"new-on-load\" | \"fixed\";"
|
|
176
718
|
},
|
|
719
|
+
{
|
|
720
|
+
"name": "QaSourceEvidence",
|
|
721
|
+
"declaration": "export type QaSourceEvidence = \"read\" | \"fetched\" | \"queried\" | \"reported\" | \"inherited\" | \"discovered\";"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "QaSourceFilePreview",
|
|
725
|
+
"declaration": "export interface QaSourceFilePreview {\n readonly path: string;\n readonly content: string;\n readonly size: number;\n readonly truncated: boolean;\n readonly markdown: boolean;\n readonly renderableMarkdown: boolean;\n}"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "QaSourceKind",
|
|
729
|
+
"declaration": "export type QaSourceKind = \"file\" | \"code\" | \"web\" | \"jira\" | \"confluence\" | \"knowledge\" | \"other\";"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "QaSourceLocation",
|
|
733
|
+
"declaration": "export interface QaSourceLocation {\n readonly path?: string;\n readonly lineStart?: number;\n readonly lineEnd?: number;\n readonly anchor?: string;\n readonly jiraKey?: string;\n readonly confluencePageId?: string;\n}"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "QaSourceMetadata",
|
|
737
|
+
"declaration": "export interface QaSourceMetadata {\n readonly [key: string]: QaSourceMetadataValue;\n}"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "QaSourceMetadataValue",
|
|
741
|
+
"declaration": "export type QaSourceMetadataValue = string | number | boolean | null | readonly QaSourceMetadataValue[] | { readonly [key: string]: QaSourceMetadataValue; };"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "QaSourceOrigin",
|
|
745
|
+
"declaration": "export interface QaSourceOrigin {\n readonly sessionId: string;\n readonly turn: number;\n readonly step?: number;\n readonly toolCallId?: string;\n readonly toolName?: string;\n readonly agentId?: string;\n readonly role: \"parent\" | \"subagent\";\n readonly subagentRunId?: string;\n readonly subagentSessionId?: string;\n}"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "QaSourceReference",
|
|
749
|
+
"declaration": "export interface QaSourceReference {\n readonly id: string;\n readonly kind: QaSourceKind;\n readonly title: string;\n readonly uri?: string;\n readonly path?: string;\n readonly snippet?: string;\n readonly locations: readonly QaSourceLocation[];\n readonly evidence: QaSourceEvidence;\n readonly origins: readonly QaSourceOrigin[];\n readonly score: number;\n readonly metadata?: QaSourceMetadata;\n}"
|
|
750
|
+
},
|
|
177
751
|
{
|
|
178
752
|
"name": "QaToolPolicyMode",
|
|
179
753
|
"declaration": "export type QaToolPolicyMode = \"allow-list\";"
|
|
180
754
|
},
|
|
755
|
+
{
|
|
756
|
+
"name": "QaTurnSources",
|
|
757
|
+
"declaration": "export interface QaTurnSources {\n readonly version: 1;\n readonly sessionId: string;\n readonly turn: number;\n readonly sources: readonly QaSourceReference[];\n readonly discovered?: readonly QaSourceReference[];\n readonly complete: boolean;\n readonly incompleteOrigins?: readonly { readonly subagentRunId?: string; readonly provider?: string; readonly reason: string; }[];\n}"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "QaWhoamiResult",
|
|
761
|
+
"declaration": "export type QaWhoamiResult = { readonly authenticated: false; } | { readonly authenticated: true; readonly user: QaAccountUserPublic; };"
|
|
762
|
+
},
|
|
181
763
|
{
|
|
182
764
|
"name": "ResolvedQaSurfaceConfig",
|
|
183
|
-
"declaration": "export interface ResolvedQaSurfaceConfig {\n readonly enabled: boolean;\n readonly route: { readonly path: string; readonly matchChildren: boolean; };\n readonly branding: { readonly title: string; readonly subtitle: string; readonly welcomeMessage: string; readonly placeholder: string; readonly logoUrl: string | null; readonly disclaimer: string; };\n readonly session: { readonly policy: QaSessionPolicy; readonly storageKey: string; readonly cwd: string | null; readonly workspaceId: string | null; readonly fixedSessionId: string | null; readonly agentPreset: string | null; readonly provider: string | null; readonly model: string | null; readonly reasoningEffort: string | null; };\n readonly ui: { readonly showHeader: boolean; readonly showReset: boolean; readonly showStop: boolean; readonly showTimestamps: boolean; readonly showToolActivity: boolean; readonly showReasoning: boolean; readonly renderMarkdown: boolean; readonly maxContentWidth: number; readonly showSessionList: boolean; };\n readonly suggestedQuestions: readonly string[];\n readonly interaction: { readonly approvals: \"blocked\"; readonly questions: \"unsupported\"; };\n readonly lockdown: { readonly enabled: boolean; readonly enforceFixedAgentPreset: boolean; readonly enforceFixedWorkspace: boolean; readonly enforceFixedModel: boolean; readonly sandboxMode: QaSandboxMode; readonly approvalPolicy: QaApprovalPolicy; readonly permissionPreset: string; readonly allowPermissionChanges: false; readonly allowSlashCommands: false; readonly allowSettingsMutation: false; readonly allowSessionReset: boolean; readonly allowSessionRename: false; readonly allowSessionDelete: false; readonly allowArbitrarySessionOpen: false; readonly toolPolicy: { readonly mode: QaToolPolicyMode; readonly allow: readonly string[]; }; };\n readonly embedding: { readonly frameAncestors: string | null; };\n}"
|
|
765
|
+
"declaration": "export interface ResolvedQaSurfaceConfig {\n readonly enabled: boolean;\n readonly route: { readonly path: string; readonly matchChildren: boolean; };\n readonly branding: { readonly title: string; readonly subtitle: string; readonly welcomeMessage: string; readonly placeholder: string; readonly logoUrl: string | null; readonly disclaimer: string; };\n readonly session: { readonly policy: QaSessionPolicy; readonly storageKey: string; readonly cwd: string | null; readonly workspaceId: string | null; readonly fixedSessionId: string | null; readonly agentPreset: string | null; readonly provider: string | null; readonly model: string | null; readonly reasoningEffort: string | null; };\n readonly ui: { readonly showHeader: boolean; readonly showReset: boolean; readonly showStop: boolean; readonly showTimestamps: boolean; readonly showToolActivity: boolean; readonly showReasoning: boolean; readonly renderMarkdown: boolean; readonly maxContentWidth: number; readonly showSessionList: boolean; };\n readonly suggestedQuestions: readonly string[];\n readonly interaction: { readonly approvals: \"blocked\"; readonly questions: \"unsupported\"; };\n readonly lockdown: { readonly enabled: boolean; readonly enforceFixedAgentPreset: boolean; readonly enforceFixedWorkspace: boolean; readonly enforceFixedModel: boolean; readonly sandboxMode: QaSandboxMode; readonly approvalPolicy: QaApprovalPolicy; readonly permissionPreset: string; readonly allowPermissionChanges: false; readonly allowSlashCommands: false; readonly allowSettingsMutation: false; readonly allowSessionReset: boolean; readonly allowSessionRename: false; readonly allowSessionDelete: false; readonly allowArbitrarySessionOpen: false; readonly toolPolicy: { readonly mode: QaToolPolicyMode; readonly allow: readonly string[]; }; };\n readonly embedding: { readonly frameAncestors: string | null; };\n readonly accounts: { readonly enabled: boolean; readonly allowRegistration: boolean; readonly sessionTtlDays: number; readonly showOtherUsersChats: boolean; };\n readonly entry: { readonly redirectNonLoopback: boolean; readonly cookieBootstrap: boolean; };\n readonly sources: { readonly enabled: boolean; readonly collect: { readonly parentAgent: boolean; readonly subagents: boolean; readonly persistTurnEvent: boolean; }; readonly display: { readonly sidebar: boolean; readonly footer: boolean; readonly groupByKind: boolean; readonly showDiscovered: boolean; readonly showOriginBadges: boolean; readonly maxInitiallyVisiblePerGroup: number; }; readonly webSearch: { readonly promoteSearchResultsWithoutFetch: boolean; readonly maxPromotedPerSearch: number; }; readonly dedupe: { readonly normalizeUrls: boolean; readonly stripTrackingParams: boolean; readonly mergeFileRanges: boolean; }; readonly filePreview: { readonly enabled: boolean; readonly markdownRenderedByDefault: boolean; readonly allowRawToggle: boolean; readonly maxBytes: number; readonly maxMarkdownRenderBytes: number; }; readonly subagents: { readonly inheritSources: boolean; readonly enableReportToolFallback: boolean; readonly markIncompleteOpaqueRuns: boolean; }; readonly legacy: { readonly parseAssistantSourcesBlock: boolean; }; };\n}"
|
|
184
766
|
}
|
|
185
767
|
]
|
|
186
768
|
}
|
|
187
769
|
],
|
|
188
|
-
"events": [
|
|
770
|
+
"events": [
|
|
771
|
+
{
|
|
772
|
+
"tags": [],
|
|
773
|
+
"name": "subagent/end",
|
|
774
|
+
"signature": "'subagent/end'(info: SubagentInfo): void"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"tags": [],
|
|
778
|
+
"name": "subagent/start",
|
|
779
|
+
"signature": "'subagent/start'(info: SubagentInfo): void"
|
|
780
|
+
}
|
|
781
|
+
],
|
|
189
782
|
"objects": []
|
|
190
783
|
},
|
|
191
784
|
}
|