@yadsh/dsh-qa-surface 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -12
- package/lib/account-remotes.js +100 -0
- package/lib/account-remotes.js.map +1 -0
- package/lib/accounts/credentials.js +27 -0
- package/lib/accounts/credentials.js.map +1 -0
- package/lib/accounts/errors.js +9 -0
- package/lib/accounts/errors.js.map +1 -0
- package/lib/accounts/file.js +101 -0
- package/lib/accounts/file.js.map +1 -0
- package/lib/accounts/store.js +144 -161
- package/lib/accounts/store.js.map +1 -1
- package/lib/accounts/token.js +61 -0
- package/lib/accounts/token.js.map +1 -0
- package/lib/attachment-rules.js +111 -0
- package/lib/attachment-rules.js.map +1 -0
- package/lib/cli.js +122 -9
- package/lib/cli.js.map +1 -1
- package/lib/client/QaAccountsController.js +32 -2
- package/lib/client/QaAccountsController.js.map +1 -1
- package/lib/client/QaSessionController.js +47 -65
- package/lib/client/QaSessionController.js.map +1 -1
- package/lib/client/QaSurface.js +121 -107
- package/lib/client/QaSurface.js.map +1 -1
- package/lib/client/QaTranscriptAdapter.js +71 -6
- package/lib/client/QaTranscriptAdapter.js.map +1 -1
- package/lib/client/attachments.js +150 -0
- package/lib/client/attachments.js.map +1 -0
- package/lib/client/attestation.js +1 -1
- package/lib/client/attestation.js.map +1 -1
- package/lib/client/base64.js +16 -0
- package/lib/client/base64.js.map +1 -0
- package/lib/client/chat-files.js +48 -0
- package/lib/client/chat-files.js.map +1 -0
- package/lib/client/components/Markdown.js +1 -1
- package/lib/client/components/Markdown.js.map +1 -1
- package/lib/client/components/QaChangelog.js +38 -19
- package/lib/client/components/QaChangelog.js.map +1 -1
- package/lib/client/components/QaComposer.js +56 -74
- package/lib/client/components/QaComposer.js.map +1 -1
- package/lib/client/components/QaFileAttachment.js +19 -0
- package/lib/client/components/QaFileAttachment.js.map +1 -0
- package/lib/client/components/QaFilesPanel.js +45 -0
- package/lib/client/components/QaFilesPanel.js.map +1 -0
- package/lib/client/components/QaHeader.js +34 -0
- package/lib/client/components/QaHeader.js.map +1 -0
- package/lib/client/components/QaMessage.js +17 -4
- package/lib/client/components/QaMessage.js.map +1 -1
- package/lib/client/components/QaModal.js +31 -0
- package/lib/client/components/QaModal.js.map +1 -0
- package/lib/client/components/QaProfile.js +64 -0
- package/lib/client/components/QaProfile.js.map +1 -0
- package/lib/client/components/QaRightRail.js +15 -0
- package/lib/client/components/QaRightRail.js.map +1 -0
- package/lib/client/components/QaSidebar.js +6 -1
- package/lib/client/components/QaSidebar.js.map +1 -1
- package/lib/client/components/{QaSourcesDrawer.js → QaSourcesPanel.js} +3 -3
- package/lib/client/components/QaSourcesPanel.js.map +1 -0
- package/lib/client/components/QaTurnRail.js +15 -0
- package/lib/client/components/QaTurnRail.js.map +1 -1
- package/lib/client/components/QaWidthHandle.js +25 -20
- package/lib/client/components/QaWidthHandle.js.map +1 -1
- package/lib/client/components/QaWorkGroup.js +19 -20
- package/lib/client/components/QaWorkGroup.js.map +1 -1
- package/lib/client/components/surface-utils.js +28 -0
- package/lib/client/components/surface-utils.js.map +1 -0
- package/lib/client/components/thinking-phrases.js +24 -0
- package/lib/client/components/thinking-phrases.js.map +1 -0
- package/lib/client/create-session.js +7 -32
- package/lib/client/create-session.js.map +1 -1
- package/lib/client/failure-copy.js +63 -0
- package/lib/client/failure-copy.js.map +1 -0
- package/lib/client/index.js +38 -7
- package/lib/client/index.js.map +1 -1
- package/lib/client/prompt-content.js +54 -0
- package/lib/client/prompt-content.js.map +1 -0
- package/lib/client/settings/card.js +143 -0
- package/lib/client/settings/card.js.map +1 -0
- package/lib/client/settings/fields.js +145 -0
- package/lib/client/settings/fields.js.map +1 -0
- package/lib/client/settings/format.js +255 -0
- package/lib/client/settings/format.js.map +1 -0
- package/lib/client/settings/sections/access.js +25 -0
- package/lib/client/settings/sections/access.js.map +1 -0
- package/lib/client/settings/sections/accounts.js +47 -0
- package/lib/client/settings/sections/accounts.js.map +1 -0
- package/lib/client/settings/sections/attachments.js +46 -0
- package/lib/client/settings/sections/attachments.js.map +1 -0
- package/lib/client/settings/sections/branding.js +28 -0
- package/lib/client/settings/sections/branding.js.map +1 -0
- package/lib/client/settings/sections/common.js +20 -0
- package/lib/client/settings/sections/common.js.map +1 -0
- package/lib/client/settings/sections/embedding.js +19 -0
- package/lib/client/settings/sections/embedding.js.map +1 -0
- package/lib/client/settings/sections/interface.js +60 -0
- package/lib/client/settings/sections/interface.js.map +1 -0
- package/lib/client/settings/sections/lockdown.js +82 -0
- package/lib/client/settings/sections/lockdown.js.map +1 -0
- package/lib/client/settings/sections/session.js +53 -0
- package/lib/client/settings/sections/session.js.map +1 -0
- package/lib/client/settings/sections/sources.js +72 -0
- package/lib/client/settings/sections/sources.js.map +1 -0
- package/lib/client/settings/sections/status.js +37 -0
- package/lib/client/settings/sections/status.js.map +1 -0
- package/lib/client/settings/sections.js +23 -0
- package/lib/client/settings/sections.js.map +1 -0
- package/lib/client/settings/styles.js +57 -0
- package/lib/client/settings/styles.js.map +1 -0
- package/lib/client/stream-publisher.js +47 -0
- package/lib/client/stream-publisher.js.map +1 -0
- package/lib/client/styles.js +85 -19
- package/lib/client/styles.js.map +1 -1
- package/lib/client/types.js.map +1 -1
- package/lib/client/use-right-rail.js +96 -0
- package/lib/client/use-right-rail.js.map +1 -0
- package/lib/client/use-session-ui-state.js +26 -19
- package/lib/client/use-session-ui-state.js.map +1 -1
- package/lib/client.js +4788 -869
- package/lib/client.js.map +1 -1
- package/lib/config-resolvers/accounts.js +60 -0
- package/lib/config-resolvers/accounts.js.map +1 -0
- package/lib/config-resolvers/attachments.js +28 -0
- package/lib/config-resolvers/attachments.js.map +1 -0
- package/lib/config-resolvers/basics.js +59 -0
- package/lib/config-resolvers/basics.js.map +1 -0
- package/lib/config-resolvers/defaults.js +132 -0
- package/lib/config-resolvers/defaults.js.map +1 -0
- package/lib/config-resolvers/lockdown.js +79 -0
- package/lib/config-resolvers/lockdown.js.map +1 -0
- package/lib/config-resolvers/session.js +42 -0
- package/lib/config-resolvers/session.js.map +1 -0
- package/lib/config-resolvers/shared.js +42 -0
- package/lib/config-resolvers/shared.js.map +1 -0
- package/lib/config-resolvers/sources.js +81 -0
- package/lib/config-resolvers/sources.js.map +1 -0
- package/lib/config-resolvers/ui.js +20 -0
- package/lib/config-resolvers/ui.js.map +1 -0
- package/lib/config.js +65 -4
- package/lib/config.js.map +1 -1
- package/lib/entry-redirect.js +2 -1
- package/lib/entry-redirect.js.map +1 -1
- package/lib/index.js +123 -74
- package/lib/index.js.map +1 -1
- package/lib/profile.js +214 -0
- package/lib/profile.js.map +1 -0
- package/lib/prompt-notes.js +231 -0
- package/lib/prompt-notes.js.map +1 -0
- package/lib/resolve-config.js +35 -410
- package/lib/resolve-config.js.map +1 -1
- package/lib/secure-session.js +82 -16
- package/lib/secure-session.js.map +1 -1
- package/lib/shared/session-key.js +18 -0
- package/lib/shared/session-key.js.map +1 -0
- package/lib/shared/settings.js +10 -0
- package/lib/shared/settings.js.map +1 -0
- package/lib/thinking-phrases.js +68 -0
- package/lib/thinking-phrases.js.map +1 -0
- package/lib/typert.host.js +162 -17
- package/lib/typert.remote-client.d.ts +5 -1
- package/lib/typert.remote-client.js +132 -13
- package/lib/types/account-remotes.d.ts +42 -0
- package/lib/types/accounts/credentials.d.ts +14 -0
- package/lib/types/accounts/errors.d.ts +11 -0
- package/lib/types/accounts/file.d.ts +82 -0
- package/lib/types/accounts/store.d.ts +66 -43
- package/lib/types/accounts/token.d.ts +31 -0
- package/lib/types/attachment-rules.d.ts +44 -0
- package/lib/types/cli.d.ts +2 -2
- package/lib/types/client/QaAccountsController.d.ts +8 -1
- package/lib/types/client/QaSessionController.d.ts +16 -16
- package/lib/types/client/QaSurface.d.ts +7 -1
- package/lib/types/client/attachments.d.ts +54 -0
- package/lib/types/client/base64.d.ts +10 -0
- package/lib/types/client/chat-files.d.ts +30 -0
- package/lib/types/client/components/QaChangelog.d.ts +1 -1
- package/lib/types/client/components/QaComposer.d.ts +8 -4
- package/lib/types/client/components/QaFileAttachment.d.ts +14 -0
- package/lib/types/client/components/QaFilesPanel.d.ts +15 -0
- package/lib/types/client/components/QaHeader.d.ts +41 -0
- package/lib/types/client/components/QaMessage.d.ts +3 -1
- package/lib/types/client/components/QaModal.d.ts +26 -0
- package/lib/types/client/components/QaProfile.d.ts +25 -0
- package/lib/types/client/components/QaRightRail.d.ts +23 -0
- package/lib/types/client/components/QaSidebar.d.ts +14 -0
- package/lib/types/client/components/{QaSourcesDrawer.d.ts → QaSourcesPanel.d.ts} +7 -4
- package/lib/types/client/components/QaTurnRail.d.ts +6 -0
- package/lib/types/client/components/QaWidthHandle.d.ts +14 -7
- package/lib/types/client/components/QaWorkGroup.d.ts +5 -3
- package/lib/types/client/components/surface-utils.d.ts +11 -0
- package/lib/types/client/components/thinking-phrases.d.ts +9 -0
- package/lib/types/client/create-session.d.ts +6 -9
- package/lib/types/client/failure-copy.d.ts +19 -0
- package/lib/types/client/prompt-content.d.ts +30 -0
- package/lib/types/client/settings/card.d.ts +23 -0
- package/lib/types/client/settings/fields.d.ts +139 -0
- package/lib/types/client/settings/format.d.ts +108 -0
- package/lib/types/client/settings/sections/access.d.ts +9 -0
- package/lib/types/client/settings/sections/accounts.d.ts +9 -0
- package/lib/types/client/settings/sections/attachments.d.ts +15 -0
- package/lib/types/client/settings/sections/branding.d.ts +8 -0
- package/lib/types/client/settings/sections/common.d.ts +28 -0
- package/lib/types/client/settings/sections/embedding.d.ts +8 -0
- package/lib/types/client/settings/sections/interface.d.ts +9 -0
- package/lib/types/client/settings/sections/lockdown.d.ts +9 -0
- package/lib/types/client/settings/sections/session.d.ts +9 -0
- package/lib/types/client/settings/sections/sources.d.ts +9 -0
- package/lib/types/client/settings/sections/status.d.ts +22 -0
- package/lib/types/client/settings/sections.d.ts +25 -0
- package/lib/types/client/settings/styles.d.ts +8 -0
- package/lib/types/client/stream-publisher.d.ts +28 -0
- package/lib/types/client/types.d.ts +29 -1
- package/lib/types/client/use-right-rail.d.ts +56 -0
- package/lib/types/client/use-session-ui-state.d.ts +13 -7
- package/lib/types/config-resolvers/accounts.d.ts +15 -0
- package/lib/types/config-resolvers/attachments.d.ts +6 -0
- package/lib/types/config-resolvers/basics.d.ts +8 -0
- package/lib/types/config-resolvers/defaults.d.ts +4 -0
- package/lib/types/config-resolvers/lockdown.d.ts +10 -0
- package/lib/types/config-resolvers/session.d.ts +6 -0
- package/lib/types/config-resolvers/shared.d.ts +16 -0
- package/lib/types/config-resolvers/sources.d.ts +6 -0
- package/lib/types/config-resolvers/ui.d.ts +6 -0
- package/lib/types/index.d.ts +20 -13
- package/lib/types/profile.d.ts +76 -0
- package/lib/types/prompt-notes.d.ts +110 -0
- package/lib/types/resolve-config.d.ts +8 -3
- package/lib/types/secure-session.d.ts +26 -1
- package/lib/types/shared/session-key.d.ts +23 -0
- package/lib/types/shared/settings.d.ts +10 -0
- package/lib/types/thinking-phrases.d.ts +17 -0
- package/lib/types/types.d.ts +123 -5
- package/lib/types/user-workspace.d.ts +38 -0
- package/lib/user-workspace.js +231 -0
- package/lib/user-workspace.js.map +1 -0
- package/package.json +14 -7
- package/CHANGELOG.md +0 -176
- package/SPEC-dsh-qa-surface.md +0 -2425
- package/docs/ARCHITECTURE.md +0 -66
- package/docs/COMPATIBILITY.md +0 -14
- package/docs/CONFIGURATION.md +0 -199
- package/docs/EMBEDDING.md +0 -13
- package/docs/SOURCES-MIGRATION.md +0 -28
- package/docs/SOURCES-PROVENANCE-AUDIT.md +0 -88
- package/docs/SPEC-dsh-qa-surface-accounts.md +0 -219
- package/docs/SPEC-dsh-qa-surface-sources-provenance.md +0 -1692
- package/lib/client/components/QaSourcesDrawer.js.map +0 -1
package/lib/typert.host.js
CHANGED
|
@@ -29,6 +29,12 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema = z.object({
|
|
|
29
29
|
'createdAt': z.string().readonly(),
|
|
30
30
|
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
31
31
|
'disabled': z.boolean().readonly(),
|
|
32
|
+
'profile': z.object({
|
|
33
|
+
'fullName': z.string().readonly(),
|
|
34
|
+
'identities': z.record(z.string(), z.string()).readonly().readonly(),
|
|
35
|
+
'instructions': z.string().readonly(),
|
|
36
|
+
'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
37
|
+
}).readonly(),
|
|
32
38
|
}).readonly(),
|
|
33
39
|
})
|
|
34
40
|
const _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_parameter_0$schema = z.string()
|
|
@@ -47,6 +53,33 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema = z.object(
|
|
|
47
53
|
'createdAt': z.string().readonly(),
|
|
48
54
|
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
49
55
|
'disabled': z.boolean().readonly(),
|
|
56
|
+
'profile': z.object({
|
|
57
|
+
'fullName': z.string().readonly(),
|
|
58
|
+
'identities': z.record(z.string(), z.string()).readonly().readonly(),
|
|
59
|
+
'instructions': z.string().readonly(),
|
|
60
|
+
'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
61
|
+
}).readonly(),
|
|
62
|
+
}).readonly(),
|
|
63
|
+
})
|
|
64
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_0$schema = z.string()
|
|
65
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_1$schema = z.object({
|
|
66
|
+
'fullName': z.string().readonly(),
|
|
67
|
+
'identities': z.record(z.string(), z.string()).readonly().readonly(),
|
|
68
|
+
'instructions': z.string().readonly(),
|
|
69
|
+
})
|
|
70
|
+
const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_result$schema = z.object({
|
|
71
|
+
'id': z.string().readonly(),
|
|
72
|
+
'email': z.string().readonly(),
|
|
73
|
+
'displayName': z.string().readonly(),
|
|
74
|
+
'role': z.union([z.literal("user"), z.literal("admin")]).readonly(),
|
|
75
|
+
'createdAt': z.string().readonly(),
|
|
76
|
+
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
77
|
+
'disabled': z.boolean().readonly(),
|
|
78
|
+
'profile': z.object({
|
|
79
|
+
'fullName': z.string().readonly(),
|
|
80
|
+
'identities': z.record(z.string(), z.string()).readonly().readonly(),
|
|
81
|
+
'instructions': z.string().readonly(),
|
|
82
|
+
'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
50
83
|
}).readonly(),
|
|
51
84
|
})
|
|
52
85
|
const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_parameter_0$schema = z.string()
|
|
@@ -62,8 +95,16 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema = z.union([z.
|
|
|
62
95
|
'createdAt': z.string().readonly(),
|
|
63
96
|
'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
64
97
|
'disabled': z.boolean().readonly(),
|
|
98
|
+
'profile': z.object({
|
|
99
|
+
'fullName': z.string().readonly(),
|
|
100
|
+
'identities': z.record(z.string(), z.string()).readonly().readonly(),
|
|
101
|
+
'instructions': z.string().readonly(),
|
|
102
|
+
'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
|
|
103
|
+
}).readonly(),
|
|
65
104
|
}).readonly(),
|
|
66
105
|
})])
|
|
106
|
+
const _yadsh_dsh_qa_surface_qaSurface_createSession_parameter_0$schema = z.string()
|
|
107
|
+
const _yadsh_dsh_qa_surface_qaSurface_createSession_result$schema = z.string()
|
|
67
108
|
const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
68
109
|
'enabled': z.boolean().readonly(),
|
|
69
110
|
'route': z.object({
|
|
@@ -97,10 +138,11 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
97
138
|
'showToolActivity': z.boolean().readonly(),
|
|
98
139
|
'showReasoning': z.boolean().readonly(),
|
|
99
140
|
'renderMarkdown': z.boolean().readonly(),
|
|
100
|
-
'
|
|
141
|
+
'minContentWidth': z.number().readonly(),
|
|
101
142
|
'showSessionList': z.boolean().readonly(),
|
|
102
143
|
}).readonly(),
|
|
103
144
|
'suggestedQuestions': z.array(z.string()).readonly(),
|
|
145
|
+
'thinkingPhrases': z.array(z.string()).readonly(),
|
|
104
146
|
'interaction': z.object({
|
|
105
147
|
'approvals': z.literal("blocked").readonly(),
|
|
106
148
|
'questions': z.literal("unsupported").readonly(),
|
|
@@ -110,7 +152,7 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
110
152
|
'enforceFixedAgentPreset': z.boolean().readonly(),
|
|
111
153
|
'enforceFixedWorkspace': z.boolean().readonly(),
|
|
112
154
|
'enforceFixedModel': z.boolean().readonly(),
|
|
113
|
-
'sandboxMode': z.literal("read-only").readonly(),
|
|
155
|
+
'sandboxMode': z.union([z.literal("read-only"), z.literal("workspace-write")]).readonly(),
|
|
114
156
|
'approvalPolicy': z.literal("never").readonly(),
|
|
115
157
|
'permissionPreset': z.string().readonly(),
|
|
116
158
|
'allowPermissionChanges': z.literal(false).readonly(),
|
|
@@ -133,6 +175,16 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
133
175
|
'allowRegistration': z.boolean().readonly(),
|
|
134
176
|
'sessionTtlDays': z.number().readonly(),
|
|
135
177
|
'showOtherUsersChats': z.boolean().readonly(),
|
|
178
|
+
'perUserWorkspace': z.boolean().readonly(),
|
|
179
|
+
'profile': z.object({
|
|
180
|
+
'enabled': z.boolean().readonly(),
|
|
181
|
+
'inject': z.boolean().readonly(),
|
|
182
|
+
'identities': z.array(z.object({
|
|
183
|
+
'key': z.string().readonly(),
|
|
184
|
+
'label': z.string().readonly(),
|
|
185
|
+
})).readonly(),
|
|
186
|
+
'instructionsMaxLength': z.number().readonly(),
|
|
187
|
+
}).readonly(),
|
|
136
188
|
}).readonly(),
|
|
137
189
|
'entry': z.object({
|
|
138
190
|
'redirectNonLoopback': z.boolean().readonly(),
|
|
@@ -177,6 +229,13 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
|
|
|
177
229
|
'legacy': z.object({
|
|
178
230
|
'parseAssistantSourcesBlock': z.boolean().readonly(),
|
|
179
231
|
}).readonly(),
|
|
232
|
+
}).readonly(),
|
|
233
|
+
'attachments': z.object({
|
|
234
|
+
'textFiles': z.boolean().readonly(),
|
|
235
|
+
'pastedTextLines': z.number().readonly(),
|
|
236
|
+
'maxFileBytes': z.number().readonly(),
|
|
237
|
+
'maxPending': z.number().readonly(),
|
|
238
|
+
'extensions': z.array(z.string()).readonly(),
|
|
180
239
|
}).readonly(),
|
|
181
240
|
})
|
|
182
241
|
const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_0$schema = z.string()
|
|
@@ -198,7 +257,7 @@ const _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema = z.object({
|
|
|
198
257
|
'agentPresetMatches': z.boolean().readonly(),
|
|
199
258
|
'workspaceMatches': z.boolean().readonly(),
|
|
200
259
|
'modelMatches': z.boolean().readonly(),
|
|
201
|
-
'
|
|
260
|
+
'sandboxModeMatches': z.boolean().readonly(),
|
|
202
261
|
'approvalIsNever': z.boolean().readonly(),
|
|
203
262
|
'permissionPreset': z.string().readonly(),
|
|
204
263
|
'toolPolicyLoaded': z.boolean().readonly(),
|
|
@@ -317,7 +376,7 @@ export const TYPERT = {
|
|
|
317
376
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaClaimResult',
|
|
318
377
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema,
|
|
319
378
|
},
|
|
320
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
379
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":230,"column":3},
|
|
321
380
|
},
|
|
322
381
|
{
|
|
323
382
|
id: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership',
|
|
@@ -342,7 +401,7 @@ export const TYPERT = {
|
|
|
342
401
|
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:result',
|
|
343
402
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema,
|
|
344
403
|
},
|
|
345
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
404
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":249,"column":3},
|
|
346
405
|
},
|
|
347
406
|
{
|
|
348
407
|
id: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin',
|
|
@@ -377,7 +436,7 @@ export const TYPERT = {
|
|
|
377
436
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
378
437
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema,
|
|
379
438
|
},
|
|
380
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
439
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":218,"column":3},
|
|
381
440
|
},
|
|
382
441
|
{
|
|
383
442
|
id: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions',
|
|
@@ -402,7 +461,7 @@ export const TYPERT = {
|
|
|
402
461
|
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:result',
|
|
403
462
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema,
|
|
404
463
|
},
|
|
405
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
464
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":239,"column":3},
|
|
406
465
|
},
|
|
407
466
|
{
|
|
408
467
|
id: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister',
|
|
@@ -437,7 +496,42 @@ export const TYPERT = {
|
|
|
437
496
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
|
|
438
497
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema,
|
|
439
498
|
},
|
|
440
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
499
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":213,"column":3},
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateProfile',
|
|
503
|
+
service: 'qaSurface',
|
|
504
|
+
namespace: 'qaSurface',
|
|
505
|
+
method: 'accountsUpdateProfile',
|
|
506
|
+
invocation: { kind: 'direct' },
|
|
507
|
+
parameters: [
|
|
508
|
+
{
|
|
509
|
+
name: 'token',
|
|
510
|
+
wire: 'token',
|
|
511
|
+
source: 'json',
|
|
512
|
+
codec: {
|
|
513
|
+
mode: 'strict',
|
|
514
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateProfile:token',
|
|
515
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_0$schema,
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: 'input',
|
|
520
|
+
wire: 'input',
|
|
521
|
+
source: 'json',
|
|
522
|
+
codec: {
|
|
523
|
+
mode: 'strict',
|
|
524
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountProfileInput',
|
|
525
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_1$schema,
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
result: {
|
|
530
|
+
mode: 'strict',
|
|
531
|
+
typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountUserPublic',
|
|
532
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_result$schema,
|
|
533
|
+
},
|
|
534
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":262,"column":3},
|
|
441
535
|
},
|
|
442
536
|
{
|
|
443
537
|
id: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami',
|
|
@@ -462,7 +556,32 @@ export const TYPERT = {
|
|
|
462
556
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaWhoamiResult',
|
|
463
557
|
schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema,
|
|
464
558
|
},
|
|
465
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
559
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":224,"column":3},
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
id: '@yadsh/dsh-qa-surface#qaSurface/createSession',
|
|
563
|
+
service: 'qaSurface',
|
|
564
|
+
namespace: 'qaSurface',
|
|
565
|
+
method: 'createSession',
|
|
566
|
+
invocation: { kind: 'direct' },
|
|
567
|
+
parameters: [
|
|
568
|
+
{
|
|
569
|
+
name: 'token',
|
|
570
|
+
wire: 'token',
|
|
571
|
+
source: 'json',
|
|
572
|
+
codec: {
|
|
573
|
+
mode: 'strict',
|
|
574
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/createSession:token',
|
|
575
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_createSession_parameter_0$schema,
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
result: {
|
|
580
|
+
mode: 'strict',
|
|
581
|
+
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/createSession:result',
|
|
582
|
+
schema: _yadsh_dsh_qa_surface_qaSurface_createSession_result$schema,
|
|
583
|
+
},
|
|
584
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":287,"column":9},
|
|
466
585
|
},
|
|
467
586
|
{
|
|
468
587
|
id: '@yadsh/dsh-qa-surface#qaSurface/describe',
|
|
@@ -477,7 +596,7 @@ export const TYPERT = {
|
|
|
477
596
|
typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
|
|
478
597
|
schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
|
|
479
598
|
},
|
|
480
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
599
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":277,"column":3},
|
|
481
600
|
},
|
|
482
601
|
{
|
|
483
602
|
id: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile',
|
|
@@ -522,7 +641,7 @@ export const TYPERT = {
|
|
|
522
641
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaSourceFilePreview',
|
|
523
642
|
schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema,
|
|
524
643
|
},
|
|
525
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
644
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":394,"column":9},
|
|
526
645
|
},
|
|
527
646
|
{
|
|
528
647
|
id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
|
|
@@ -557,7 +676,7 @@ export const TYPERT = {
|
|
|
557
676
|
typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
|
|
558
677
|
schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
|
|
559
678
|
},
|
|
560
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
679
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":361,"column":3},
|
|
561
680
|
},
|
|
562
681
|
{
|
|
563
682
|
id: '@yadsh/dsh-qa-surface#qaSurface/sources',
|
|
@@ -592,7 +711,7 @@ export const TYPERT = {
|
|
|
592
711
|
typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:result',
|
|
593
712
|
schema: _yadsh_dsh_qa_surface_qaSurface_sources_result$schema,
|
|
594
713
|
},
|
|
595
|
-
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":
|
|
714
|
+
sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":387,"column":3},
|
|
596
715
|
},
|
|
597
716
|
],
|
|
598
717
|
model: {
|
|
@@ -650,6 +769,13 @@ export const TYPERT = {
|
|
|
650
769
|
"summary": "Every chat-ownership entry with owner display names; the cross-user view admin browsers group the sidebar by.",
|
|
651
770
|
"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
771
|
},
|
|
772
|
+
{
|
|
773
|
+
"kind": "method",
|
|
774
|
+
"name": "accountsUpdateProfile",
|
|
775
|
+
"signature": "@Remote(\"accountsUpdateProfile\") accountsUpdateProfile( token: string, input: QaAccountProfileInput, ): QaAccountUserPublic",
|
|
776
|
+
"summary": "Replace the caller's own self-declared profile.",
|
|
777
|
+
"jsDoc": "/**\n * Replace the caller's own self-declared profile. The token is the only\n * identity the wire carries: a browser can never name a profile but its own,\n * and the deployment's declared fields and length limits are enforced in the\n * store before anything is written.\n */"
|
|
778
|
+
},
|
|
653
779
|
{
|
|
654
780
|
"kind": "method",
|
|
655
781
|
"name": "describe",
|
|
@@ -657,6 +783,13 @@ export const TYPERT = {
|
|
|
657
783
|
"summary": "Serve the effective QA configuration to the browser.",
|
|
658
784
|
"jsDoc": "/**\n * Serve the effective QA configuration to the browser. The DSH gateway pins\n * settings RPCs to loopback, so a browser served over the LAN always sees\n * the settings namespace as unavailable; this method is the config channel\n * such a browser falls back to. It is read-only projection — the admission\n * boundary stays in {@link secureSession}.\n */"
|
|
659
785
|
},
|
|
786
|
+
{
|
|
787
|
+
"kind": "method",
|
|
788
|
+
"name": "createSession",
|
|
789
|
+
"signature": "@Remote(\"createSession\") async createSession(token: string): Promise<string>",
|
|
790
|
+
"summary": "Create a QA session from Host-owned inputs.",
|
|
791
|
+
"jsDoc": "/**\n * Create a QA session from Host-owned inputs. With account workspaces on,\n * cwd is `<configured workspace>/.qa-users/<account UUID>` and the child is\n * intentionally not registered or attached as another DSH workspace.\n */"
|
|
792
|
+
},
|
|
660
793
|
{
|
|
661
794
|
"kind": "method",
|
|
662
795
|
"name": "secureSession",
|
|
@@ -680,6 +813,18 @@ export const TYPERT = {
|
|
|
680
813
|
}
|
|
681
814
|
],
|
|
682
815
|
"types": [
|
|
816
|
+
{
|
|
817
|
+
"name": "QaAccountIdentityField",
|
|
818
|
+
"declaration": "export interface QaAccountIdentityField {\n readonly key: string;\n readonly label: string;\n}"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "QaAccountProfile",
|
|
822
|
+
"declaration": "export interface QaAccountProfile {\n readonly fullName: string;\n readonly identities: Readonly<Record<string, string>>;\n readonly instructions: string;\n readonly updatedAt: string | null;\n}"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "QaAccountProfileInput",
|
|
826
|
+
"declaration": "export interface QaAccountProfileInput {\n readonly fullName: string;\n readonly identities: Readonly<Record<string, string>>;\n readonly instructions: string;\n}"
|
|
827
|
+
},
|
|
683
828
|
{
|
|
684
829
|
"name": "QaAccountRole",
|
|
685
830
|
"declaration": "export type QaAccountRole = \"user\" | \"admin\";"
|
|
@@ -690,7 +835,7 @@ export const TYPERT = {
|
|
|
690
835
|
},
|
|
691
836
|
{
|
|
692
837
|
"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}"
|
|
838
|
+
"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 readonly profile: QaAccountProfile;\n}"
|
|
694
839
|
},
|
|
695
840
|
{
|
|
696
841
|
"name": "QaApprovalPolicy",
|
|
@@ -702,7 +847,7 @@ export const TYPERT = {
|
|
|
702
847
|
},
|
|
703
848
|
{
|
|
704
849
|
"name": "QaLockdownProof",
|
|
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
|
|
850
|
+
"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 sandboxModeMatches: boolean;\n readonly approvalIsNever: boolean;\n readonly permissionPreset: string;\n readonly toolPolicyLoaded: boolean;\n readonly toolAllowList: readonly string[];\n}"
|
|
706
851
|
},
|
|
707
852
|
{
|
|
708
853
|
"name": "QaOwnershipEntry",
|
|
@@ -710,7 +855,7 @@ export const TYPERT = {
|
|
|
710
855
|
},
|
|
711
856
|
{
|
|
712
857
|
"name": "QaSandboxMode",
|
|
713
|
-
"declaration": "export type QaSandboxMode = \"read-only\";"
|
|
858
|
+
"declaration": "export type QaSandboxMode = \"read-only\" | \"workspace-write\";"
|
|
714
859
|
},
|
|
715
860
|
{
|
|
716
861
|
"name": "QaSessionPolicy",
|
|
@@ -762,7 +907,7 @@ export const TYPERT = {
|
|
|
762
907
|
},
|
|
763
908
|
{
|
|
764
909
|
"name": "ResolvedQaSurfaceConfig",
|
|
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
|
|
910
|
+
"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 minContentWidth: number; readonly showSessionList: boolean; };\n readonly suggestedQuestions: readonly string[];\n readonly thinkingPhrases: 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; readonly perUserWorkspace: boolean; readonly profile: { readonly enabled: boolean; readonly inject: boolean; readonly identities: readonly QaAccountIdentityField[]; readonly instructionsMaxLength: number; }; };\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 readonly attachments: { readonly textFiles: boolean; readonly pastedTextLines: number; readonly maxFileBytes: number; readonly maxPending: number; readonly extensions: readonly string[]; };\n}"
|
|
766
911
|
}
|
|
767
912
|
]
|
|
768
913
|
}
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
RemoteResult,
|
|
4
4
|
TypertRemoteContribution,
|
|
5
5
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
-
import type { QaAccountSession, QaClaimResult, QaLockdownProof, QaOwnershipEntry, QaSourceFilePreview, QaTurnSources, QaWhoamiResult, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
|
|
6
|
+
import type { QaAccountProfileInput, QaAccountSession, QaAccountUserPublic, 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 {
|
|
@@ -12,7 +12,9 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
12
12
|
accountsLogin: (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
13
13
|
accountsOwnedSessions: (token: string) => Promise<RemoteResult<{ readonly ids: readonly string[]; }>>
|
|
14
14
|
accountsRegister: (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
15
|
+
accountsUpdateProfile: (token: string, input: QaAccountProfileInput) => Promise<RemoteResult<QaAccountUserPublic>>
|
|
15
16
|
accountsWhoami: (token: string) => Promise<RemoteResult<QaWhoamiResult>>
|
|
17
|
+
createSession: (token: string) => Promise<RemoteResult<string>>
|
|
16
18
|
describe: () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
|
|
17
19
|
readSourceFile: (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
|
|
18
20
|
secureSession: (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>
|
|
@@ -24,7 +26,9 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
|
24
26
|
'qaSurface/accountsLogin': (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
25
27
|
'qaSurface/accountsOwnedSessions': (token: string) => Promise<RemoteResult<{ readonly ids: readonly string[]; }>>
|
|
26
28
|
'qaSurface/accountsRegister': (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
|
|
29
|
+
'qaSurface/accountsUpdateProfile': (token: string, input: QaAccountProfileInput) => Promise<RemoteResult<QaAccountUserPublic>>
|
|
27
30
|
'qaSurface/accountsWhoami': (token: string) => Promise<RemoteResult<QaWhoamiResult>>
|
|
31
|
+
'qaSurface/createSession': (token: string) => Promise<RemoteResult<string>>
|
|
28
32
|
'qaSurface/describe': () => Promise<RemoteResult<ResolvedQaSurfaceConfig>>
|
|
29
33
|
'qaSurface/readSourceFile': (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
|
|
30
34
|
'qaSurface/secureSession': (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>
|