@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
|
@@ -3,16 +3,32 @@ import type {
|
|
|
3
3
|
RemoteResult,
|
|
4
4
|
TypertRemoteContribution,
|
|
5
5
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
-
import type { QaLockdownProof, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
|
|
6
|
+
import type { QaAccountSession, QaClaimResult, QaLockdownProof, QaOwnershipEntry, QaSourceFilePreview, QaTurnSources, QaWhoamiResult, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
|
|
7
7
|
|
|
8
8
|
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
9
9
|
interface TypertRemoteNamespace$716153757266616365 {
|
|
10
|
+
accountsClaimSessions: (token: string, sessionIds: readonly string[]) => Promise<RemoteResult<QaClaimResult>>
|
|
11
|
+
accountsListOwnership: (token: string) => Promise<RemoteResult<{ readonly entries: readonly QaOwnershipEntry[]; }>>
|
|
12
|
+
accountsLogin: (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
13
|
+
accountsOwnedSessions: (token: string) => Promise<RemoteResult<{ readonly ids: readonly string[]; }>>
|
|
14
|
+
accountsRegister: (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
15
|
+
accountsWhoami: (token: string) => Promise<RemoteResult<QaWhoamiResult>>
|
|
10
16
|
describe: () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
|
|
11
|
-
|
|
17
|
+
readSourceFile: (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
|
|
18
|
+
secureSession: (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>
|
|
19
|
+
sources: (token: string, sessionId: string) => Promise<RemoteResult<readonly QaTurnSources[]>>
|
|
12
20
|
}
|
|
13
21
|
interface TypertRemoteMap {
|
|
22
|
+
'qaSurface/accountsClaimSessions': (token: string, sessionIds: readonly string[]) => Promise<RemoteResult<QaClaimResult>>
|
|
23
|
+
'qaSurface/accountsListOwnership': (token: string) => Promise<RemoteResult<{ readonly entries: readonly QaOwnershipEntry[]; }>>
|
|
24
|
+
'qaSurface/accountsLogin': (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
25
|
+
'qaSurface/accountsOwnedSessions': (token: string) => Promise<RemoteResult<{ readonly ids: readonly string[]; }>>
|
|
26
|
+
'qaSurface/accountsRegister': (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
27
|
+
'qaSurface/accountsWhoami': (token: string) => Promise<RemoteResult<QaWhoamiResult>>
|
|
14
28
|
'qaSurface/describe': () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
|
|
15
|
-
'qaSurface/
|
|
29
|
+
'qaSurface/readSourceFile': (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
|
|
30
|
+
'qaSurface/secureSession': (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>
|
|
31
|
+
'qaSurface/sources': (token: string, sessionId: string) => Promise<RemoteResult<readonly QaTurnSources[]>>
|
|
16
32
|
}
|
|
17
33
|
interface TypertRemoteNamespaceMap {
|
|
18
34
|
'qaSurface': TypertRemoteNamespace$716153757266616365
|
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
/* Generated by @deepseek-ai/dsh-typert-generator from the Host 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({
|
|
@@ -65,8 +128,70 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
65
128
|
'embedding': z.object({
|
|
66
129
|
'frameAncestors': z.union([z.literal(null), z.string()]).readonly(),
|
|
67
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(),
|
|
180
|
+
}).readonly(),
|
|
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(),
|
|
68
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,10 +204,263 @@ 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_REMOTE = {
|
|
84
282
|
package: '@yadsh/dsh-qa-surface',
|
|
85
283
|
descriptors: [
|
|
284
|
+
{
|
|
285
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions',
|
|
286
|
+
service: 'qaSurface',
|
|
287
|
+
namespace: 'qaSurface',
|
|
288
|
+
method: 'accountsClaimSessions',
|
|
289
|
+
invocation: { kind: 'direct' },
|
|
290
|
+
parameters: [
|
|
291
|
+
{
|
|
292
|
+
name: 'token',
|
|
293
|
+
wire: 'token',
|
|
294
|
+
source: 'json',
|
|
295
|
+
codec: {
|
|
296
|
+
mode: 'strict',
|
|
297
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions:token',
|
|
298
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_0$schema,
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: 'sessionIds',
|
|
303
|
+
wire: 'sessionIds',
|
|
304
|
+
source: 'json',
|
|
305
|
+
codec: {
|
|
306
|
+
mode: 'strict',
|
|
307
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsClaimSessions:sessionIds',
|
|
308
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_parameter_1$schema,
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
result: {
|
|
313
|
+
mode: 'strict',
|
|
314
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaClaimResult',
|
|
315
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema,
|
|
316
|
+
},
|
|
317
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":256,"column":3},
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership',
|
|
321
|
+
service: 'qaSurface',
|
|
322
|
+
namespace: 'qaSurface',
|
|
323
|
+
method: 'accountsListOwnership',
|
|
324
|
+
invocation: { kind: 'direct' },
|
|
325
|
+
parameters: [
|
|
326
|
+
{
|
|
327
|
+
name: 'token',
|
|
328
|
+
wire: 'token',
|
|
329
|
+
source: 'json',
|
|
330
|
+
codec: {
|
|
331
|
+
mode: 'strict',
|
|
332
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:token',
|
|
333
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_parameter_0$schema,
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
],
|
|
337
|
+
result: {
|
|
338
|
+
mode: 'strict',
|
|
339
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:result',
|
|
340
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema,
|
|
341
|
+
},
|
|
342
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":280,"column":3},
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin',
|
|
346
|
+
service: 'qaSurface',
|
|
347
|
+
namespace: 'qaSurface',
|
|
348
|
+
method: 'accountsLogin',
|
|
349
|
+
invocation: { kind: 'direct' },
|
|
350
|
+
parameters: [
|
|
351
|
+
{
|
|
352
|
+
name: 'email',
|
|
353
|
+
wire: 'email',
|
|
354
|
+
source: 'json',
|
|
355
|
+
codec: {
|
|
356
|
+
mode: 'strict',
|
|
357
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin:email',
|
|
358
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_0$schema,
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: 'password',
|
|
363
|
+
wire: 'password',
|
|
364
|
+
source: 'json',
|
|
365
|
+
codec: {
|
|
366
|
+
mode: 'strict',
|
|
367
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin:password',
|
|
368
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_parameter_1$schema,
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
],
|
|
372
|
+
result: {
|
|
373
|
+
mode: 'strict',
|
|
374
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
375
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema,
|
|
376
|
+
},
|
|
377
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":241,"column":3},
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions',
|
|
381
|
+
service: 'qaSurface',
|
|
382
|
+
namespace: 'qaSurface',
|
|
383
|
+
method: 'accountsOwnedSessions',
|
|
384
|
+
invocation: { kind: 'direct' },
|
|
385
|
+
parameters: [
|
|
386
|
+
{
|
|
387
|
+
name: 'token',
|
|
388
|
+
wire: 'token',
|
|
389
|
+
source: 'json',
|
|
390
|
+
codec: {
|
|
391
|
+
mode: 'strict',
|
|
392
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:token',
|
|
393
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_parameter_0$schema,
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
],
|
|
397
|
+
result: {
|
|
398
|
+
mode: 'strict',
|
|
399
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:result',
|
|
400
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema,
|
|
401
|
+
},
|
|
402
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":266,"column":3},
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister',
|
|
406
|
+
service: 'qaSurface',
|
|
407
|
+
namespace: 'qaSurface',
|
|
408
|
+
method: 'accountsRegister',
|
|
409
|
+
invocation: { kind: 'direct' },
|
|
410
|
+
parameters: [
|
|
411
|
+
{
|
|
412
|
+
name: 'email',
|
|
413
|
+
wire: 'email',
|
|
414
|
+
source: 'json',
|
|
415
|
+
codec: {
|
|
416
|
+
mode: 'strict',
|
|
417
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister:email',
|
|
418
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_0$schema,
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: 'password',
|
|
423
|
+
wire: 'password',
|
|
424
|
+
source: 'json',
|
|
425
|
+
codec: {
|
|
426
|
+
mode: 'strict',
|
|
427
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister:password',
|
|
428
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_parameter_1$schema,
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
result: {
|
|
433
|
+
mode: 'strict',
|
|
434
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
435
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema,
|
|
436
|
+
},
|
|
437
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":235,"column":3},
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami',
|
|
441
|
+
service: 'qaSurface',
|
|
442
|
+
namespace: 'qaSurface',
|
|
443
|
+
method: 'accountsWhoami',
|
|
444
|
+
invocation: { kind: 'direct' },
|
|
445
|
+
parameters: [
|
|
446
|
+
{
|
|
447
|
+
name: 'token',
|
|
448
|
+
wire: 'token',
|
|
449
|
+
source: 'json',
|
|
450
|
+
codec: {
|
|
451
|
+
mode: 'strict',
|
|
452
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami:token',
|
|
453
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_parameter_0$schema,
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
result: {
|
|
458
|
+
mode: 'strict',
|
|
459
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaWhoamiResult',
|
|
460
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema,
|
|
461
|
+
},
|
|
462
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":248,"column":3},
|
|
463
|
+
},
|
|
86
464
|
{
|
|
87
465
|
id: '@yadsh/dsh-qa-surface#qaSurface/describe',
|
|
88
466
|
service: 'qaSurface',
|
|
@@ -96,7 +474,52 @@ export const TYPERT_REMOTE = {
|
|
|
96
474
|
typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
|
|
97
475
|
schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
|
|
98
476
|
},
|
|
99
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
477
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":298,"column":3},
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile',
|
|
481
|
+
service: 'qaSurface',
|
|
482
|
+
namespace: 'qaSurface',
|
|
483
|
+
method: 'readSourceFile',
|
|
484
|
+
invocation: { kind: 'direct' },
|
|
485
|
+
parameters: [
|
|
486
|
+
{
|
|
487
|
+
name: 'token',
|
|
488
|
+
wire: 'token',
|
|
489
|
+
source: 'json',
|
|
490
|
+
codec: {
|
|
491
|
+
mode: 'strict',
|
|
492
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:token',
|
|
493
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_0$schema,
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: 'sessionId',
|
|
498
|
+
wire: 'sessionId',
|
|
499
|
+
source: 'json',
|
|
500
|
+
codec: {
|
|
501
|
+
mode: 'strict',
|
|
502
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:sessionId',
|
|
503
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_1$schema,
|
|
504
|
+
},
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
name: 'sourcePath',
|
|
508
|
+
wire: 'sourcePath',
|
|
509
|
+
source: 'json',
|
|
510
|
+
codec: {
|
|
511
|
+
mode: 'strict',
|
|
512
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile:sourcePath',
|
|
513
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_2$schema,
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
result: {
|
|
518
|
+
mode: 'strict',
|
|
519
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaSourceFilePreview',
|
|
520
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema,
|
|
521
|
+
},
|
|
522
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":337,"column":9},
|
|
100
523
|
},
|
|
101
524
|
{
|
|
102
525
|
id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
|
|
@@ -105,6 +528,16 @@ export const TYPERT_REMOTE = {
|
|
|
105
528
|
method: 'secureSession',
|
|
106
529
|
invocation: { kind: 'direct' },
|
|
107
530
|
parameters: [
|
|
531
|
+
{
|
|
532
|
+
name: 'token',
|
|
533
|
+
wire: 'token',
|
|
534
|
+
source: 'json',
|
|
535
|
+
codec: {
|
|
536
|
+
mode: 'strict',
|
|
537
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/secureSession:token',
|
|
538
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_0$schema,
|
|
539
|
+
},
|
|
540
|
+
},
|
|
108
541
|
{
|
|
109
542
|
name: 'sessionId',
|
|
110
543
|
wire: 'sessionId',
|
|
@@ -112,7 +545,7 @@ export const TYPERT_REMOTE = {
|
|
|
112
545
|
codec: {
|
|
113
546
|
mode: 'strict',
|
|
114
547
|
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/secureSession:sessionId',
|
|
115
|
-
schema:
|
|
548
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_1$schema,
|
|
116
549
|
},
|
|
117
550
|
},
|
|
118
551
|
],
|
|
@@ -121,7 +554,42 @@ export const TYPERT_REMOTE = {
|
|
|
121
554
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
|
|
122
555
|
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
|
|
123
556
|
},
|
|
124
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
557
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":304,"column":3},
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/sources',
|
|
561
|
+
service: 'qaSurface',
|
|
562
|
+
namespace: 'qaSurface',
|
|
563
|
+
method: 'sources',
|
|
564
|
+
invocation: { kind: 'direct' },
|
|
565
|
+
parameters: [
|
|
566
|
+
{
|
|
567
|
+
name: 'token',
|
|
568
|
+
wire: 'token',
|
|
569
|
+
source: 'json',
|
|
570
|
+
codec: {
|
|
571
|
+
mode: 'strict',
|
|
572
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:token',
|
|
573
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_parameter_0$schema,
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: 'sessionId',
|
|
578
|
+
wire: 'sessionId',
|
|
579
|
+
source: 'json',
|
|
580
|
+
codec: {
|
|
581
|
+
mode: 'strict',
|
|
582
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:sessionId',
|
|
583
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_parameter_1$schema,
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
],
|
|
587
|
+
result: {
|
|
588
|
+
mode: 'strict',
|
|
589
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:result',
|
|
590
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_sources_result$schema,
|
|
591
|
+
},
|
|
592
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":330,"column":3},
|
|
125
593
|
},
|
|
126
594
|
],
|
|
127
595
|
}
|