@yadsh/dsh-qa-surface 0.16.0 → 0.17.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 (185) hide show
  1. package/README.md +19 -2
  2. package/lib/account-remotes.js +9 -0
  3. package/lib/account-remotes.js.map +1 -1
  4. package/lib/accounts/database.js +34 -3
  5. package/lib/accounts/database.js.map +1 -1
  6. package/lib/accounts/store.js +20 -0
  7. package/lib/accounts/store.js.map +1 -1
  8. package/lib/chat-sharing/native-fence.js +11 -2
  9. package/lib/chat-sharing/native-fence.js.map +1 -1
  10. package/lib/chat-sharing/store.js +9 -3
  11. package/lib/chat-sharing/store.js.map +1 -1
  12. package/lib/chat-sharing/transport.js +66 -11
  13. package/lib/chat-sharing/transport.js.map +1 -1
  14. package/lib/client/QaAccountsController.js +18 -0
  15. package/lib/client/QaAccountsController.js.map +1 -1
  16. package/lib/client/QaSessionController.js +12 -3
  17. package/lib/client/QaSessionController.js.map +1 -1
  18. package/lib/client/QaSurface.js +49 -8
  19. package/lib/client/QaSurface.js.map +1 -1
  20. package/lib/client/QaTranscriptAdapter.js +15 -2
  21. package/lib/client/QaTranscriptAdapter.js.map +1 -1
  22. package/lib/client/answer-review.js +89 -0
  23. package/lib/client/answer-review.js.map +1 -0
  24. package/lib/client/chat-artifacts.js +1 -0
  25. package/lib/client/chat-artifacts.js.map +1 -1
  26. package/lib/client/components/QaAnswerReviewStatus.js +45 -0
  27. package/lib/client/components/QaAnswerReviewStatus.js.map +1 -0
  28. package/lib/client/components/QaChangelog.js +35 -0
  29. package/lib/client/components/QaChangelog.js.map +1 -1
  30. package/lib/client/components/QaChatActions.js +52 -0
  31. package/lib/client/components/QaChatActions.js.map +1 -0
  32. package/lib/client/components/QaChatSharing.js +22 -19
  33. package/lib/client/components/QaChatSharing.js.map +1 -1
  34. package/lib/client/components/QaMarkdownPreview.js +86 -0
  35. package/lib/client/components/QaMarkdownPreview.js.map +1 -0
  36. package/lib/client/components/QaMessage.js +8 -2
  37. package/lib/client/components/QaMessage.js.map +1 -1
  38. package/lib/client/components/QaModal.js +17 -0
  39. package/lib/client/components/QaModal.js.map +1 -1
  40. package/lib/client/components/QaRightRail.js +6 -4
  41. package/lib/client/components/QaRightRail.js.map +1 -1
  42. package/lib/client/components/QaRightRailResize.js +129 -0
  43. package/lib/client/components/QaRightRailResize.js.map +1 -0
  44. package/lib/client/components/QaSidebar.js +10 -1
  45. package/lib/client/components/QaSidebar.js.map +1 -1
  46. package/lib/client/components/QaSourceFilters.js +22 -0
  47. package/lib/client/components/QaSourceFilters.js.map +1 -0
  48. package/lib/client/components/QaSourcesPanel.js +57 -13
  49. package/lib/client/components/QaSourcesPanel.js.map +1 -1
  50. package/lib/client/components/QaSpreadsheetPreview.js +56 -0
  51. package/lib/client/components/QaSpreadsheetPreview.js.map +1 -0
  52. package/lib/client/components/QaWelcomeNotice.js +2 -2
  53. package/lib/client/components/QaWelcomeNotice.js.map +1 -1
  54. package/lib/client/components/QaWorkspaceBrowser.js +22 -9
  55. package/lib/client/components/QaWorkspaceBrowser.js.map +1 -1
  56. package/lib/client/components/QaZoomImage.js +56 -0
  57. package/lib/client/components/QaZoomImage.js.map +1 -0
  58. package/lib/client/components/source-refs.js +18 -4
  59. package/lib/client/components/source-refs.js.map +1 -1
  60. package/lib/client/index.js +16 -2
  61. package/lib/client/index.js.map +1 -1
  62. package/lib/client/markdown/SourceImage.js +52 -0
  63. package/lib/client/markdown/SourceImage.js.map +1 -0
  64. package/lib/client/markdown/blocks.js +150 -115
  65. package/lib/client/markdown/blocks.js.map +1 -1
  66. package/lib/client/markdown/render.js +23 -5
  67. package/lib/client/markdown/render.js.map +1 -1
  68. package/lib/client/markdown/source-chip.js +2 -1
  69. package/lib/client/markdown/source-chip.js.map +1 -1
  70. package/lib/client/settings/sections/sources.js +1 -1
  71. package/lib/client/settings/sections/sources.js.map +1 -1
  72. package/lib/client/settings/styles.js +18 -28
  73. package/lib/client/settings/styles.js.map +1 -1
  74. package/lib/client/source-filters-styles.js +11 -0
  75. package/lib/client/source-filters-styles.js.map +1 -0
  76. package/lib/client/styles.js +53 -2
  77. package/lib/client/styles.js.map +1 -1
  78. package/lib/client/types.js.map +1 -1
  79. package/lib/client/use-right-rail.js +1 -1
  80. package/lib/client/use-right-rail.js.map +1 -1
  81. package/lib/client/user-settings/IntegrationTokensPage.js +30 -6
  82. package/lib/client/user-settings/IntegrationTokensPage.js.map +1 -1
  83. package/lib/client.js +2820 -955
  84. package/lib/client.js.map +1 -1
  85. package/lib/config-resolvers/defaults.js +4 -3
  86. package/lib/config-resolvers/defaults.js.map +1 -1
  87. package/lib/config-resolvers/sources.js +2 -0
  88. package/lib/config-resolvers/sources.js.map +1 -1
  89. package/lib/config.js +3 -0
  90. package/lib/config.js.map +1 -1
  91. package/lib/index.js +50 -3
  92. package/lib/index.js.map +1 -1
  93. package/lib/integration/host-runner.js +1 -0
  94. package/lib/integration/host-runner.js.map +1 -1
  95. package/lib/integration/question-policy.js +126 -0
  96. package/lib/integration/question-policy.js.map +1 -0
  97. package/lib/integration/service.js +2 -0
  98. package/lib/integration/service.js.map +1 -1
  99. package/lib/llm-identity.js +27 -0
  100. package/lib/llm-identity.js.map +1 -0
  101. package/lib/markdown-frontmatter.js +47 -0
  102. package/lib/markdown-frontmatter.js.map +1 -0
  103. package/lib/markdown-images.js +33 -0
  104. package/lib/markdown-images.js.map +1 -0
  105. package/lib/prompt-notes.js +1 -1
  106. package/lib/prompt-notes.js.map +1 -1
  107. package/lib/provenance/collector.js +2 -0
  108. package/lib/provenance/collector.js.map +1 -1
  109. package/lib/provenance/connectors.js +25 -19
  110. package/lib/provenance/connectors.js.map +1 -1
  111. package/lib/provenance/dedupe.js +17 -0
  112. package/lib/provenance/dedupe.js.map +1 -1
  113. package/lib/provenance/document-preview.js +12 -2
  114. package/lib/provenance/document-preview.js.map +1 -1
  115. package/lib/provenance/extractors.js +23 -5
  116. package/lib/provenance/extractors.js.map +1 -1
  117. package/lib/provenance/file-preview.js +9 -2
  118. package/lib/provenance/file-preview.js.map +1 -1
  119. package/lib/provenance/integration-extractor.js +5 -6
  120. package/lib/provenance/integration-extractor.js.map +1 -1
  121. package/lib/provenance/snapshot-store.js +2 -0
  122. package/lib/provenance/snapshot-store.js.map +1 -1
  123. package/lib/provenance/source-content.js +103 -0
  124. package/lib/provenance/source-content.js.map +1 -0
  125. package/lib/provenance/source-image.js +57 -0
  126. package/lib/provenance/source-image.js.map +1 -0
  127. package/lib/provenance/spreadsheet-preview.js +52 -0
  128. package/lib/provenance/spreadsheet-preview.js.map +1 -0
  129. package/lib/questions.js +6 -1
  130. package/lib/questions.js.map +1 -1
  131. package/lib/shared/documents.js +12 -0
  132. package/lib/shared/documents.js.map +1 -1
  133. package/lib/typert.host.js +419 -110
  134. package/lib/typert.remote-client.d.ts +9 -5
  135. package/lib/typert.remote-client.js +383 -102
  136. package/lib/types/account-remotes.d.ts +3 -0
  137. package/lib/types/accounts/database.d.ts +5 -0
  138. package/lib/types/accounts/store.d.ts +6 -1
  139. package/lib/types/answer-review.js +2 -0
  140. package/lib/types/answer-review.js.map +1 -0
  141. package/lib/types/chat-sharing/store.d.ts +1 -0
  142. package/lib/types/chat-sharing/transport.d.ts +1 -0
  143. package/lib/types/client/QaAccountsController.d.ts +1 -0
  144. package/lib/types/client/answer-review.d.ts +16 -0
  145. package/lib/types/client/components/QaAnswerReviewStatus.d.ts +8 -0
  146. package/lib/types/client/components/QaChatActions.d.ts +7 -0
  147. package/lib/types/client/components/QaChatSharing.d.ts +4 -2
  148. package/lib/types/client/components/QaMarkdownPreview.d.ts +13 -0
  149. package/lib/types/client/components/QaModal.d.ts +9 -0
  150. package/lib/types/client/components/QaRightRail.d.ts +3 -2
  151. package/lib/types/client/components/QaRightRailResize.d.ts +9 -0
  152. package/lib/types/client/components/QaSidebar.d.ts +2 -0
  153. package/lib/types/client/components/QaSourceFilters.d.ts +12 -0
  154. package/lib/types/client/components/QaSpreadsheetPreview.d.ts +8 -0
  155. package/lib/types/client/components/QaWelcomeNotice.d.ts +1 -1
  156. package/lib/types/client/components/QaZoomImage.d.ts +38 -0
  157. package/lib/types/client/markdown/SourceImage.d.ts +7 -0
  158. package/lib/types/client/markdown/blocks.d.ts +8 -1
  159. package/lib/types/client/markdown/render.d.ts +5 -1
  160. package/lib/types/client/markdown/source-chip.d.ts +1 -0
  161. package/lib/types/client/settings/styles.d.ts +2 -5
  162. package/lib/types/client/source-filters-styles.d.ts +2 -0
  163. package/lib/types/client/types.d.ts +11 -5
  164. package/lib/types/index.d.ts +8 -3
  165. package/lib/types/integration/contract.d.ts +1 -0
  166. package/lib/types/integration/question-policy.d.ts +20 -0
  167. package/lib/types/integration/service.d.ts +1 -0
  168. package/lib/types/llm-identity.d.ts +20 -0
  169. package/lib/types/markdown-frontmatter.d.ts +10 -0
  170. package/lib/types/markdown-images.d.ts +3 -0
  171. package/lib/types/prompt-notes.d.ts +1 -1
  172. package/lib/types/provenance/document-preview.d.ts +3 -2
  173. package/lib/types/provenance/file-preview.d.ts +2 -1
  174. package/lib/types/provenance/source-content.d.ts +19 -0
  175. package/lib/types/provenance/source-image.d.ts +4 -0
  176. package/lib/types/provenance/spreadsheet-preview.d.ts +5 -0
  177. package/lib/types/provenance/types.d.ts +3 -0
  178. package/lib/types/questions.d.ts +2 -1
  179. package/lib/types/shared/documents.d.ts +2 -0
  180. package/lib/types/types/accounts.d.ts +5 -1
  181. package/lib/types/types/answer-review.d.ts +11 -0
  182. package/lib/types/types/config.d.ts +3 -0
  183. package/lib/types/types/session.d.ts +18 -3
  184. package/lib/types/types.d.ts +1 -0
  185. package/package.json +3 -3
@@ -4,7 +4,7 @@ import type {
4
4
  RemoteStreamHandle,
5
5
  TypertRemoteContribution,
6
6
  } from '@deepseek-ai/dsh-typert-protocol'
7
- import type { QaAccessAdminSnapshot, QaAccountNotificationsInput, QaAccountProfileInput, QaAccountSession, QaAccountStartersInput, QaAccountUserPublic, QaAdminAuditEvent, QaAdminOverview, QaAdminPage, QaAdminSkillScope, QaAdminSkillsView, QaAdminUserDetail, QaAdminUserRow, QaAdminUserUpdate, QaApprovalDecision, QaAuditQuery, QaCapabilitySelection, QaChatAccess, QaChatAuthor, QaChatGrant, QaChatJson, QaChatMode, QaClaimResult, QaConversationDeletion, QaConversationDetail, QaConversationQuery, QaConversationReview, QaConversationReviewInput, QaConversationSummary, QaCurrentAccess, QaDocumentPreview, QaDocumentWorkflowStatus, QaExpertMemoryDraft, QaExpertMemoryPage, QaExpertMemoryRecord, QaExpertMemoryScope, QaFeedbackHarvestEntry, QaFeedbackHarvestResult, QaFeedbackQuery, QaFeedbackRow, QaIssuedServiceToken, QaLockdownProof, QaMessageFeedback, QaMessageFeedbackInput, QaModelCatalogEntry, QaOwnershipEntry, QaPasswordResetRequest, QaPendingApproval, QaPendingQuestion, QaQualityMetrics, QaQuestionAnswerItem, QaQueueStatus, QaReviewQueueItem, QaReviewQueueRow, QaServiceTokenCreateInput, QaServiceTokenSummary, QaSessionAccess, QaSkillActivationRecord, QaSkillAssignmentOverride, QaSkillDocument, QaSkillDraftInput, QaSkillRemoval, QaSkillSummary, QaSkillToolDescriptor, QaSkillValidation, QaSlashCatalog, QaSlashExecution, QaSlashSubmitAttachment, QaSourceFilePreview, QaSubrole, QaTurnSources, QaUserAccess, QaUserQuery, QaWhoamiResult, QaWorkspaceFile, QaWorkspaceFileChunk, QaWorkspaceListing, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
7
+ import type { QaAccessAdminSnapshot, QaAccountNotificationsInput, QaAccountProfileInput, QaAccountSession, QaAccountStartersInput, QaAccountUserPublic, QaAdminAuditEvent, QaAdminOverview, QaAdminPage, QaAdminSkillScope, QaAdminSkillsView, QaAdminUserDetail, QaAdminUserRow, QaAdminUserUpdate, QaApprovalDecision, QaAuditQuery, QaCapabilitySelection, QaChatAccess, QaChatAuthor, QaChatGrant, QaChatJson, QaChatMode, QaClaimResult, QaConversationDeletion, QaConversationDetail, QaConversationQuery, QaConversationReview, QaConversationReviewInput, QaConversationSummary, QaCurrentAccess, QaDocumentPreview, QaDocumentWorkflowStatus, QaExpertMemoryDraft, QaExpertMemoryPage, QaExpertMemoryRecord, QaExpertMemoryScope, QaFeedbackHarvestEntry, QaFeedbackHarvestResult, QaFeedbackQuery, QaFeedbackRow, QaIssuedServiceToken, QaLockdownProof, QaMessageFeedback, QaMessageFeedbackInput, QaModelCatalogEntry, QaOwnershipEntry, QaPasswordResetRequest, QaPendingApproval, QaPendingQuestion, QaQualityMetrics, QaQuestionAnswerItem, QaQueueStatus, QaReviewQueueItem, QaReviewQueueRow, QaServiceTokenCreateInput, QaServiceTokenSummary, QaSessionAccess, QaSkillActivationRecord, QaSkillAssignmentOverride, QaSkillDocument, QaSkillDraftInput, QaSkillRemoval, QaSkillSummary, QaSkillToolDescriptor, QaSkillValidation, QaSlashCatalog, QaSlashExecution, QaSlashSubmitAttachment, QaSourceFilePreview, QaSpreadsheetPreviewSelection, QaSubrole, QaTurnSources, QaUserAccess, QaUserQuery, QaWhoamiResult, QaWorkspaceFile, QaWorkspaceFileChunk, QaWorkspaceListing, ResolvedQaSurfaceConfig } from '@yadsh/dsh-qa-surface/types'
8
8
 
9
9
  declare module '@deepseek-ai/dsh-typert-protocol' {
10
10
  interface TypertRemoteNamespace$716153757266616365 {
@@ -29,6 +29,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
29
29
  accountsRegister: (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
30
30
  accountsRequestPasswordReset: (email: string) => Promise<RemoteResult<{ readonly accepted: true; }>>
31
31
  accountsRevokeServiceToken: (token: string, tokenId: string) => Promise<RemoteResult<{ readonly revoked: boolean; }>>
32
+ accountsSetServiceTokenClarifications: (token: string, tokenId: string, allowed: boolean) => Promise<RemoteResult<{ readonly updated: boolean; }>>
32
33
  accountsUpdateNotifications: (token: string, input: QaAccountNotificationsInput) => Promise<RemoteResult<QaAccountUserPublic>>
33
34
  accountsUpdateProfile: (token: string, input: QaAccountProfileInput) => Promise<RemoteResult<QaAccountUserPublic>>
34
35
  accountsUpdateStarters: (token: string, input: QaAccountStartersInput) => Promise<RemoteResult<QaAccountUserPublic>>
@@ -91,9 +92,10 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
91
92
  listWorkspaceFiles: (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaWorkspaceListing>>
92
93
  pendingApprovals: (token: string, sessionId: string) => Promise<RemoteResult<readonly QaPendingApproval[]>>
93
94
  pendingQuestions: (token: string, sessionId: string) => Promise<RemoteResult<readonly QaPendingQuestion[]>>
94
- previewWorkspaceDocument: (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaDocumentPreview>>
95
+ previewWorkspaceDocument: (token: string, sessionId: string, path: string, selection?: QaSpreadsheetPreviewSelection) => Promise<RemoteResult<QaDocumentPreview>>
95
96
  queueStatus: () => Promise<RemoteResult<QaQueueStatus>>
96
- readSourceFile: (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
97
+ readSourceFile: (token: string, sessionId: string, sourcePath: string, selection?: QaSpreadsheetPreviewSelection) => Promise<RemoteResult<QaSourceFilePreview>>
98
+ readSourceImage: (token: string, sessionId: string, sourcePath: string, imagePath: string) => Promise<RemoteResult<string>>
97
99
  readWorkspaceFile: (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaWorkspaceFile>>
98
100
  readWorkspaceFileChunk: (token: string, sessionId: string, path: string, offset: number, version: string | null) => Promise<RemoteResult<QaWorkspaceFileChunk>>
99
101
  secureSession: (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>
@@ -130,6 +132,7 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
130
132
  'qaSurface/accountsRegister': (email: string, password: string) => Promise<RemoteResult<QaAccountSession>>
131
133
  'qaSurface/accountsRequestPasswordReset': (email: string) => Promise<RemoteResult<{ readonly accepted: true; }>>
132
134
  'qaSurface/accountsRevokeServiceToken': (token: string, tokenId: string) => Promise<RemoteResult<{ readonly revoked: boolean; }>>
135
+ 'qaSurface/accountsSetServiceTokenClarifications': (token: string, tokenId: string, allowed: boolean) => Promise<RemoteResult<{ readonly updated: boolean; }>>
133
136
  'qaSurface/accountsUpdateNotifications': (token: string, input: QaAccountNotificationsInput) => Promise<RemoteResult<QaAccountUserPublic>>
134
137
  'qaSurface/accountsUpdateProfile': (token: string, input: QaAccountProfileInput) => Promise<RemoteResult<QaAccountUserPublic>>
135
138
  'qaSurface/accountsUpdateStarters': (token: string, input: QaAccountStartersInput) => Promise<RemoteResult<QaAccountUserPublic>>
@@ -192,9 +195,10 @@ declare module '@deepseek-ai/dsh-typert-protocol' {
192
195
  'qaSurface/listWorkspaceFiles': (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaWorkspaceListing>>
193
196
  'qaSurface/pendingApprovals': (token: string, sessionId: string) => Promise<RemoteResult<readonly QaPendingApproval[]>>
194
197
  'qaSurface/pendingQuestions': (token: string, sessionId: string) => Promise<RemoteResult<readonly QaPendingQuestion[]>>
195
- 'qaSurface/previewWorkspaceDocument': (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaDocumentPreview>>
198
+ 'qaSurface/previewWorkspaceDocument': (token: string, sessionId: string, path: string, selection?: QaSpreadsheetPreviewSelection) => Promise<RemoteResult<QaDocumentPreview>>
196
199
  'qaSurface/queueStatus': () => Promise<RemoteResult<QaQueueStatus>>
197
- 'qaSurface/readSourceFile': (token: string, sessionId: string, sourcePath: string) => Promise<RemoteResult<QaSourceFilePreview>>
200
+ 'qaSurface/readSourceFile': (token: string, sessionId: string, sourcePath: string, selection?: QaSpreadsheetPreviewSelection) => Promise<RemoteResult<QaSourceFilePreview>>
201
+ 'qaSurface/readSourceImage': (token: string, sessionId: string, sourcePath: string, imagePath: string) => Promise<RemoteResult<string>>
198
202
  'qaSurface/readWorkspaceFile': (token: string, sessionId: string, path: string) => Promise<RemoteResult<QaWorkspaceFile>>
199
203
  'qaSurface/readWorkspaceFileChunk': (token: string, sessionId: string, path: string, offset: number, version: string | null) => Promise<RemoteResult<QaWorkspaceFileChunk>>
200
204
  'qaSurface/secureSession': (token: string, sessionId: string) => Promise<RemoteResult<QaLockdownProof>>