@yadsh/dsh-qa-surface 0.1.1 → 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.
Files changed (192) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/README.md +239 -16
  3. package/SPEC-dsh-qa-surface.md +600 -96
  4. package/capability-policy.json +5 -0
  5. package/compatibility.json +18 -4
  6. package/cordis.patch.yml +11 -0
  7. package/docs/ARCHITECTURE.md +50 -8
  8. package/docs/COMPATIBILITY.md +5 -4
  9. package/docs/CONFIGURATION.md +184 -3
  10. package/docs/SOURCES-MIGRATION.md +28 -0
  11. package/docs/SOURCES-PROVENANCE-AUDIT.md +88 -0
  12. package/docs/SPEC-dsh-qa-surface-accounts.md +219 -0
  13. package/docs/SPEC-dsh-qa-surface-sources-provenance.md +1692 -0
  14. package/lib/accounts/index.js +2 -0
  15. package/lib/accounts/index.js.map +1 -0
  16. package/lib/accounts/store.js +478 -0
  17. package/lib/accounts/store.js.map +1 -0
  18. package/lib/attestation.js +10 -0
  19. package/lib/attestation.js.map +1 -0
  20. package/lib/cli.js +143 -0
  21. package/lib/cli.js.map +1 -0
  22. package/lib/client/QaAccountsController.js +329 -0
  23. package/lib/client/QaAccountsController.js.map +1 -0
  24. package/lib/client/QaConfigController.js +111 -4
  25. package/lib/client/QaConfigController.js.map +1 -1
  26. package/lib/client/QaSessionController.js +621 -163
  27. package/lib/client/QaSessionController.js.map +1 -1
  28. package/lib/client/QaSurface.js +303 -24
  29. package/lib/client/QaSurface.js.map +1 -1
  30. package/lib/client/QaTranscriptAdapter.js +324 -49
  31. package/lib/client/QaTranscriptAdapter.js.map +1 -1
  32. package/lib/client/attestation.js +66 -0
  33. package/lib/client/attestation.js.map +1 -0
  34. package/lib/client/chat-index.js +86 -0
  35. package/lib/client/chat-index.js.map +1 -0
  36. package/lib/client/components/Markdown.js +124 -13
  37. package/lib/client/components/Markdown.js.map +1 -1
  38. package/lib/client/components/QaAgentsDrawer.js +40 -0
  39. package/lib/client/components/QaAgentsDrawer.js.map +1 -0
  40. package/lib/client/components/QaAuthGate.js +40 -0
  41. package/lib/client/components/QaAuthGate.js.map +1 -0
  42. package/lib/client/components/QaChangelog.js +112 -0
  43. package/lib/client/components/QaChangelog.js.map +1 -0
  44. package/lib/client/components/QaComposer.js +132 -15
  45. package/lib/client/components/QaComposer.js.map +1 -1
  46. package/lib/client/components/QaMessage.js +214 -10
  47. package/lib/client/components/QaMessage.js.map +1 -1
  48. package/lib/client/components/QaSidebar.js +167 -0
  49. package/lib/client/components/QaSidebar.js.map +1 -0
  50. package/lib/client/components/QaSourcesDrawer.js +127 -0
  51. package/lib/client/components/QaSourcesDrawer.js.map +1 -0
  52. package/lib/client/components/QaTurnRail.js +281 -0
  53. package/lib/client/components/QaTurnRail.js.map +1 -0
  54. package/lib/client/components/QaWelcomeNotice.js +125 -0
  55. package/lib/client/components/QaWelcomeNotice.js.map +1 -0
  56. package/lib/client/components/QaWidthHandle.js +142 -0
  57. package/lib/client/components/QaWidthHandle.js.map +1 -0
  58. package/lib/client/components/QaWorkGroup.js +135 -0
  59. package/lib/client/components/QaWorkGroup.js.map +1 -0
  60. package/lib/client/components/VariantSwitcher.js +29 -0
  61. package/lib/client/components/VariantSwitcher.js.map +1 -0
  62. package/lib/client/components/format.js +48 -0
  63. package/lib/client/components/format.js.map +1 -0
  64. package/lib/client/components/source-refs.js +78 -0
  65. package/lib/client/components/source-refs.js.map +1 -0
  66. package/lib/client/create-session.js +51 -0
  67. package/lib/client/create-session.js.map +1 -0
  68. package/lib/client/index.js +166 -35
  69. package/lib/client/index.js.map +1 -1
  70. package/lib/client/project-session-state.js +78 -0
  71. package/lib/client/project-session-state.js.map +1 -0
  72. package/lib/client/session-admission.js +38 -0
  73. package/lib/client/session-admission.js.map +1 -0
  74. package/lib/client/session-assets.js +52 -0
  75. package/lib/client/session-assets.js.map +1 -0
  76. package/lib/client/session-sources.js +61 -0
  77. package/lib/client/session-sources.js.map +1 -0
  78. package/lib/client/settlement.js +24 -0
  79. package/lib/client/settlement.js.map +1 -0
  80. package/lib/client/styles.js +450 -43
  81. package/lib/client/styles.js.map +1 -1
  82. package/lib/client/tool-presentation.js +102 -0
  83. package/lib/client/tool-presentation.js.map +1 -0
  84. package/lib/client/turn-sources.js +98 -0
  85. package/lib/client/turn-sources.js.map +1 -0
  86. package/lib/client/types.js +15 -0
  87. package/lib/client/types.js.map +1 -0
  88. package/lib/client/use-session-ui-state.js +68 -0
  89. package/lib/client/use-session-ui-state.js.map +1 -0
  90. package/lib/client/use-transcript-view.js +44 -0
  91. package/lib/client/use-transcript-view.js.map +1 -0
  92. package/lib/client/wait-for.js +49 -0
  93. package/lib/client/wait-for.js.map +1 -0
  94. package/lib/client.js +12551 -918
  95. package/lib/client.js.map +1 -1
  96. package/lib/config.js +226 -58
  97. package/lib/config.js.map +1 -1
  98. package/lib/entry-redirect.js +44 -0
  99. package/lib/entry-redirect.js.map +1 -0
  100. package/lib/host-route.js +25 -1
  101. package/lib/host-route.js.map +1 -1
  102. package/lib/index.js +354 -72
  103. package/lib/index.js.map +1 -1
  104. package/lib/launch-token.js +42 -0
  105. package/lib/launch-token.js.map +1 -0
  106. package/lib/lockdown-policy.js +20 -0
  107. package/lib/lockdown-policy.js.map +1 -0
  108. package/lib/provenance/collector.js +40 -0
  109. package/lib/provenance/collector.js.map +1 -0
  110. package/lib/provenance/connectors.js +147 -0
  111. package/lib/provenance/connectors.js.map +1 -0
  112. package/lib/provenance/dedupe.js +89 -0
  113. package/lib/provenance/dedupe.js.map +1 -0
  114. package/lib/provenance/extractors.js +340 -0
  115. package/lib/provenance/extractors.js.map +1 -0
  116. package/lib/provenance/file-preview.js +39 -0
  117. package/lib/provenance/file-preview.js.map +1 -0
  118. package/lib/provenance/host-store.js +387 -0
  119. package/lib/provenance/host-store.js.map +1 -0
  120. package/lib/provenance/index.js +9 -0
  121. package/lib/provenance/index.js.map +1 -0
  122. package/lib/provenance/normalize.js +128 -0
  123. package/lib/provenance/normalize.js.map +1 -0
  124. package/lib/provenance/reported.js +53 -0
  125. package/lib/provenance/reported.js.map +1 -0
  126. package/lib/provenance/types.js +2 -0
  127. package/lib/provenance/types.js.map +1 -0
  128. package/lib/resolve-config.js +283 -10
  129. package/lib/resolve-config.js.map +1 -1
  130. package/lib/secure-session.js +212 -0
  131. package/lib/secure-session.js.map +1 -0
  132. package/lib/typert.host.d.ts +3 -0
  133. package/lib/typert.host.js +784 -0
  134. package/lib/typert.remote-client.d.ts +40 -0
  135. package/lib/typert.remote-client.js +597 -0
  136. package/lib/types/accounts/index.d.ts +2 -0
  137. package/lib/types/accounts/store.d.ts +121 -0
  138. package/lib/types/attestation.d.ts +17 -0
  139. package/lib/types/cli.d.ts +9 -0
  140. package/lib/types/client/QaAccountsController.d.ts +95 -0
  141. package/lib/types/client/QaConfigController.d.ts +35 -3
  142. package/lib/types/client/QaSessionController.d.ts +146 -20
  143. package/lib/types/client/QaSurface.d.ts +11 -5
  144. package/lib/types/client/QaTranscriptAdapter.d.ts +13 -3
  145. package/lib/types/client/attestation.d.ts +25 -0
  146. package/lib/types/client/chat-index.d.ts +28 -0
  147. package/lib/types/client/components/Markdown.d.ts +17 -3
  148. package/lib/types/client/components/QaAgentsDrawer.d.ts +25 -0
  149. package/lib/types/client/components/QaAuthGate.d.ts +15 -0
  150. package/lib/types/client/components/QaChangelog.d.ts +21 -0
  151. package/lib/types/client/components/QaComposer.d.ts +12 -2
  152. package/lib/types/client/components/QaMessage.d.ts +22 -2
  153. package/lib/types/client/components/QaSidebar.d.ts +69 -0
  154. package/lib/types/client/components/QaSourcesDrawer.d.ts +20 -0
  155. package/lib/types/client/components/QaTurnRail.d.ts +59 -0
  156. package/lib/types/client/components/QaWelcomeNotice.d.ts +27 -0
  157. package/lib/types/client/components/QaWidthHandle.d.ts +36 -0
  158. package/lib/types/client/components/QaWorkGroup.d.ts +19 -0
  159. package/lib/types/client/components/VariantSwitcher.d.ts +19 -0
  160. package/lib/types/client/components/format.d.ts +9 -0
  161. package/lib/types/client/components/source-refs.d.ts +16 -0
  162. package/lib/types/client/create-session.d.ts +16 -0
  163. package/lib/types/client/index.d.ts +2 -5
  164. package/lib/types/client/project-session-state.d.ts +30 -0
  165. package/lib/types/client/session-admission.d.ts +23 -0
  166. package/lib/types/client/session-assets.d.ts +20 -0
  167. package/lib/types/client/session-sources.d.ts +28 -0
  168. package/lib/types/client/settlement.d.ts +6 -0
  169. package/lib/types/client/tool-presentation.d.ts +6 -0
  170. package/lib/types/client/turn-sources.d.ts +14 -0
  171. package/lib/types/client/types.d.ts +93 -0
  172. package/lib/types/client/use-session-ui-state.d.ts +35 -0
  173. package/lib/types/client/use-transcript-view.d.ts +20 -0
  174. package/lib/types/client/wait-for.d.ts +11 -0
  175. package/lib/types/entry-redirect.d.ts +20 -0
  176. package/lib/types/host-route.d.ts +14 -1
  177. package/lib/types/index.d.ts +67 -7
  178. package/lib/types/launch-token.d.ts +21 -0
  179. package/lib/types/lockdown-policy.d.ts +18 -0
  180. package/lib/types/provenance/collector.d.ts +26 -0
  181. package/lib/types/provenance/connectors.d.ts +11 -0
  182. package/lib/types/provenance/dedupe.d.ts +6 -0
  183. package/lib/types/provenance/extractors.d.ts +14 -0
  184. package/lib/types/provenance/file-preview.d.ts +10 -0
  185. package/lib/types/provenance/host-store.d.ts +54 -0
  186. package/lib/types/provenance/index.d.ts +10 -0
  187. package/lib/types/provenance/normalize.d.ts +13 -0
  188. package/lib/types/provenance/reported.d.ts +5 -0
  189. package/lib/types/provenance/types.d.ts +78 -0
  190. package/lib/types/secure-session.d.ts +31 -0
  191. package/lib/types/types.d.ts +304 -1
  192. package/package.json +70 -27
@@ -0,0 +1,40 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import type {
3
+ RemoteResult,
4
+ TypertRemoteContribution,
5
+ } from '@deepseek-ai/dsh-typert-protocol'
6
+ import type { QaAccountSession, QaClaimResult, QaLockdownProof, QaOwnershipEntry, QaSourceFilePreview, QaTurnSources, QaWhoamiResult, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
7
+
8
+ declare module '@deepseek-ai/dsh-typert-protocol' {
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>>
16
+ describe: () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
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[]>>
20
+ }
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>>
28
+ 'qaSurface/describe': () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
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[]>>
32
+ }
33
+ interface TypertRemoteNamespaceMap {
34
+ 'qaSurface': TypertRemoteNamespace$716153757266616365
35
+ }
36
+ }
37
+
38
+ export declare const TYPERT_REMOTE: TypertRemoteContribution
39
+ export default TYPERT_REMOTE
40
+ //# sourceMappingURL=typert.remote-client.d.ts.map
@@ -0,0 +1,597 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import { z } from 'zod'
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
+ })])
67
+ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
68
+ 'enabled': z.boolean().readonly(),
69
+ 'route': z.object({
70
+ 'path': z.string().readonly(),
71
+ 'matchChildren': z.boolean().readonly(),
72
+ }).readonly(),
73
+ 'branding': z.object({
74
+ 'title': z.string().readonly(),
75
+ 'subtitle': z.string().readonly(),
76
+ 'welcomeMessage': z.string().readonly(),
77
+ 'placeholder': z.string().readonly(),
78
+ 'logoUrl': z.union([z.literal(null), z.string()]).readonly(),
79
+ 'disclaimer': z.string().readonly(),
80
+ }).readonly(),
81
+ 'session': z.object({
82
+ 'policy': z.union([z.literal("browser-persistent"), z.literal("new-on-load"), z.literal("fixed")]).readonly(),
83
+ 'storageKey': z.string().readonly(),
84
+ 'cwd': z.union([z.literal(null), z.string()]).readonly(),
85
+ 'workspaceId': z.union([z.literal(null), z.string()]).readonly(),
86
+ 'fixedSessionId': z.union([z.literal(null), z.string()]).readonly(),
87
+ 'agentPreset': z.union([z.literal(null), z.string()]).readonly(),
88
+ 'provider': z.union([z.literal(null), z.string()]).readonly(),
89
+ 'model': z.union([z.literal(null), z.string()]).readonly(),
90
+ 'reasoningEffort': z.union([z.literal(null), z.string()]).readonly(),
91
+ }).readonly(),
92
+ 'ui': z.object({
93
+ 'showHeader': z.boolean().readonly(),
94
+ 'showReset': z.boolean().readonly(),
95
+ 'showStop': z.boolean().readonly(),
96
+ 'showTimestamps': z.boolean().readonly(),
97
+ 'showToolActivity': z.boolean().readonly(),
98
+ 'showReasoning': z.boolean().readonly(),
99
+ 'renderMarkdown': z.boolean().readonly(),
100
+ 'maxContentWidth': z.number().readonly(),
101
+ 'showSessionList': z.boolean().readonly(),
102
+ }).readonly(),
103
+ 'suggestedQuestions': z.array(z.string()).readonly(),
104
+ 'interaction': z.object({
105
+ 'approvals': z.literal("blocked").readonly(),
106
+ 'questions': z.literal("unsupported").readonly(),
107
+ }).readonly(),
108
+ 'lockdown': z.object({
109
+ 'enabled': z.boolean().readonly(),
110
+ 'enforceFixedAgentPreset': z.boolean().readonly(),
111
+ 'enforceFixedWorkspace': z.boolean().readonly(),
112
+ 'enforceFixedModel': z.boolean().readonly(),
113
+ 'sandboxMode': z.literal("read-only").readonly(),
114
+ 'approvalPolicy': z.literal("never").readonly(),
115
+ 'permissionPreset': z.string().readonly(),
116
+ 'allowPermissionChanges': z.literal(false).readonly(),
117
+ 'allowSlashCommands': z.literal(false).readonly(),
118
+ 'allowSettingsMutation': z.literal(false).readonly(),
119
+ 'allowSessionReset': z.boolean().readonly(),
120
+ 'allowSessionRename': z.literal(false).readonly(),
121
+ 'allowSessionDelete': z.literal(false).readonly(),
122
+ 'allowArbitrarySessionOpen': z.literal(false).readonly(),
123
+ 'toolPolicy': z.object({
124
+ 'mode': z.literal("allow-list").readonly(),
125
+ 'allow': z.array(z.string()).readonly(),
126
+ }).readonly(),
127
+ }).readonly(),
128
+ 'embedding': z.object({
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(),
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(),
192
+ })
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()
195
+ const _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema = z.object({
196
+ 'sessionId': z.string().readonly(),
197
+ 'enabled': z.boolean().readonly(),
198
+ 'agentPresetMatches': z.boolean().readonly(),
199
+ 'workspaceMatches': z.boolean().readonly(),
200
+ 'modelMatches': z.boolean().readonly(),
201
+ 'sandboxIsReadOnly': z.boolean().readonly(),
202
+ 'approvalIsNever': z.boolean().readonly(),
203
+ 'permissionPreset': z.string().readonly(),
204
+ 'toolPolicyLoaded': z.boolean().readonly(),
205
+ 'toolAllowList': z.array(z.string()).readonly(),
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
+ }))
280
+
281
+ export const TYPERT_REMOTE = {
282
+ package: '@yadsh/dsh-qa-surface',
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
+ },
464
+ {
465
+ id: '@yadsh/dsh-qa-surface#qaSurface/describe',
466
+ service: 'qaSurface',
467
+ namespace: 'qaSurface',
468
+ method: 'describe',
469
+ invocation: { kind: 'direct' },
470
+ parameters: [
471
+ ],
472
+ result: {
473
+ mode: 'strict',
474
+ typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
475
+ schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
476
+ },
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},
523
+ },
524
+ {
525
+ id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
526
+ service: 'qaSurface',
527
+ namespace: 'qaSurface',
528
+ method: 'secureSession',
529
+ invocation: { kind: 'direct' },
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
+ },
541
+ {
542
+ name: 'sessionId',
543
+ wire: 'sessionId',
544
+ source: 'json',
545
+ codec: {
546
+ mode: 'strict',
547
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/secureSession:sessionId',
548
+ schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_parameter_1$schema,
549
+ },
550
+ },
551
+ ],
552
+ result: {
553
+ mode: 'strict',
554
+ typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
555
+ schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
556
+ },
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},
593
+ },
594
+ ],
595
+ }
596
+
597
+ export default TYPERT_REMOTE
@@ -0,0 +1,2 @@
1
+ export { QaAccounts, QaAccountsError, defaultAccountsFilePath, type QaAccountsErrorReason, type QaAccountsOptions, } from "./store.js";
2
+ //# sourceMappingURL=index.d.ts.map