@yadsh/dsh-qa-surface 0.6.0 → 0.6.1

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.
@@ -723,7 +723,7 @@ export const TYPERT_REMOTE = {
723
723
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaClaimResult',
724
724
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema,
725
725
  },
726
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":396,"column":3},
726
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":399,"column":3},
727
727
  },
728
728
  {
729
729
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership',
@@ -748,7 +748,7 @@ export const TYPERT_REMOTE = {
748
748
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:result',
749
749
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema,
750
750
  },
751
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":415,"column":3},
751
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":418,"column":3},
752
752
  },
753
753
  {
754
754
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin',
@@ -783,7 +783,7 @@ export const TYPERT_REMOTE = {
783
783
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
784
784
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema,
785
785
  },
786
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":384,"column":3},
786
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":387,"column":3},
787
787
  },
788
788
  {
789
789
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions',
@@ -808,7 +808,7 @@ export const TYPERT_REMOTE = {
808
808
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:result',
809
809
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema,
810
810
  },
811
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":405,"column":3},
811
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":408,"column":3},
812
812
  },
813
813
  {
814
814
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister',
@@ -843,7 +843,7 @@ export const TYPERT_REMOTE = {
843
843
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
844
844
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema,
845
845
  },
846
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":379,"column":3},
846
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":382,"column":3},
847
847
  },
848
848
  {
849
849
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateProfile',
@@ -878,7 +878,7 @@ export const TYPERT_REMOTE = {
878
878
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountUserPublic',
879
879
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_result$schema,
880
880
  },
881
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":428,"column":3},
881
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":431,"column":3},
882
882
  },
883
883
  {
884
884
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateStarters',
@@ -913,7 +913,7 @@ export const TYPERT_REMOTE = {
913
913
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountUserPublic',
914
914
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateStarters_result$schema,
915
915
  },
916
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":441,"column":3},
916
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":444,"column":3},
917
917
  },
918
918
  {
919
919
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami',
@@ -938,7 +938,7 @@ export const TYPERT_REMOTE = {
938
938
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaWhoamiResult',
939
939
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema,
940
940
  },
941
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":390,"column":3},
941
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":393,"column":3},
942
942
  },
943
943
  {
944
944
  id: '@yadsh/dsh-qa-surface#qaSurface/answerApproval',
@@ -993,7 +993,7 @@ export const TYPERT_REMOTE = {
993
993
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerApproval:result',
994
994
  schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_result$schema,
995
995
  },
996
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":609,"column":9},
996
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":619,"column":9},
997
997
  },
998
998
  {
999
999
  id: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion',
@@ -1048,7 +1048,7 @@ export const TYPERT_REMOTE = {
1048
1048
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:result',
1049
1049
  schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_result$schema,
1050
1050
  },
1051
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":638,"column":9},
1051
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":648,"column":9},
1052
1052
  },
1053
1053
  {
1054
1054
  id: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion',
@@ -1093,7 +1093,7 @@ export const TYPERT_REMOTE = {
1093
1093
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion:result',
1094
1094
  schema: _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_result$schema,
1095
1095
  },
1096
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":650,"column":9},
1096
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":660,"column":9},
1097
1097
  },
1098
1098
  {
1099
1099
  id: '@yadsh/dsh-qa-surface#qaSurface/createSession',
@@ -1118,7 +1118,7 @@ export const TYPERT_REMOTE = {
1118
1118
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/createSession:result',
1119
1119
  schema: _yadsh_dsh_qa_surface_qaSurface_createSession_result$schema,
1120
1120
  },
1121
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":466,"column":9},
1121
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":469,"column":9},
1122
1122
  },
1123
1123
  {
1124
1124
  id: '@yadsh/dsh-qa-surface#qaSurface/describe',
@@ -1133,7 +1133,7 @@ export const TYPERT_REMOTE = {
1133
1133
  typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
1134
1134
  schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
1135
1135
  },
1136
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":456,"column":3},
1136
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":459,"column":3},
1137
1137
  },
1138
1138
  {
1139
1139
  id: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals',
@@ -1168,7 +1168,7 @@ export const TYPERT_REMOTE = {
1168
1168
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals:result',
1169
1169
  schema: _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_result$schema,
1170
1170
  },
1171
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":595,"column":9},
1171
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":605,"column":9},
1172
1172
  },
1173
1173
  {
1174
1174
  id: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions',
@@ -1203,7 +1203,7 @@ export const TYPERT_REMOTE = {
1203
1203
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions:result',
1204
1204
  schema: _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_result$schema,
1205
1205
  },
1206
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":624,"column":9},
1206
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":634,"column":9},
1207
1207
  },
1208
1208
  {
1209
1209
  id: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile',
@@ -1248,7 +1248,7 @@ export const TYPERT_REMOTE = {
1248
1248
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSourceFilePreview',
1249
1249
  schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema,
1250
1250
  },
1251
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":669,"column":9},
1251
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":679,"column":9},
1252
1252
  },
1253
1253
  {
1254
1254
  id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
@@ -1283,7 +1283,7 @@ export const TYPERT_REMOTE = {
1283
1283
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
1284
1284
  schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
1285
1285
  },
1286
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":546,"column":9},
1286
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":556,"column":9},
1287
1287
  },
1288
1288
  {
1289
1289
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsCreate',
@@ -1318,7 +1318,7 @@ export const TYPERT_REMOTE = {
1318
1318
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSkillDocument',
1319
1319
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsCreate_result$schema,
1320
1320
  },
1321
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":723,"column":3},
1321
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":733,"column":3},
1322
1322
  },
1323
1323
  {
1324
1324
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsGet',
@@ -1353,7 +1353,7 @@ export const TYPERT_REMOTE = {
1353
1353
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSkillDocument',
1354
1354
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsGet_result$schema,
1355
1355
  },
1356
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":717,"column":3},
1356
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":727,"column":3},
1357
1357
  },
1358
1358
  {
1359
1359
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsList',
@@ -1378,7 +1378,7 @@ export const TYPERT_REMOTE = {
1378
1378
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/skillsList:result',
1379
1379
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsList_result$schema,
1380
1380
  },
1381
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":711,"column":3},
1381
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":721,"column":3},
1382
1382
  },
1383
1383
  {
1384
1384
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsRemove',
@@ -1423,7 +1423,7 @@ export const TYPERT_REMOTE = {
1423
1423
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSkillRemoval',
1424
1424
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsRemove_result$schema,
1425
1425
  },
1426
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":742,"column":3},
1426
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":752,"column":3},
1427
1427
  },
1428
1428
  {
1429
1429
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsTools',
@@ -1448,7 +1448,7 @@ export const TYPERT_REMOTE = {
1448
1448
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/skillsTools:result',
1449
1449
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsTools_result$schema,
1450
1450
  },
1451
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":768,"column":3},
1451
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":778,"column":3},
1452
1452
  },
1453
1453
  {
1454
1454
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsUpdate',
@@ -1493,7 +1493,7 @@ export const TYPERT_REMOTE = {
1493
1493
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSkillDocument',
1494
1494
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsUpdate_result$schema,
1495
1495
  },
1496
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":732,"column":3},
1496
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":742,"column":3},
1497
1497
  },
1498
1498
  {
1499
1499
  id: '@yadsh/dsh-qa-surface#qaSurface/skillsValidate',
@@ -1538,7 +1538,7 @@ export const TYPERT_REMOTE = {
1538
1538
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSkillValidation',
1539
1539
  schema: _yadsh_dsh_qa_surface_qaSurface_skillsValidate_result$schema,
1540
1540
  },
1541
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":755,"column":3},
1541
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":765,"column":3},
1542
1542
  },
1543
1543
  {
1544
1544
  id: '@yadsh/dsh-qa-surface#qaSurface/sources',
@@ -1573,7 +1573,7 @@ export const TYPERT_REMOTE = {
1573
1573
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:result',
1574
1574
  schema: _yadsh_dsh_qa_surface_qaSurface_sources_result$schema,
1575
1575
  },
1576
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":582,"column":9},
1576
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":592,"column":9},
1577
1577
  },
1578
1578
  ],
1579
1579
  }
@@ -14,4 +14,6 @@ export declare class QaAttestationError extends Error {
14
14
  readonly reason: QaAttestationReason;
15
15
  constructor(reason: QaAttestationReason, message: string);
16
16
  }
17
+ /** Keep deployment details in Host logs while preserving a stable wire hint. */
18
+ export declare function qaAttestationFailureMessage(message: string, error: unknown): string;
17
19
  //# sourceMappingURL=attestation.d.ts.map
@@ -91,6 +91,8 @@ export declare class QaSessionController {
91
91
  private pendingSubmission;
92
92
  private pendingSequence;
93
93
  private policyReady;
94
+ /** Historical transcript retained after the Host classifies policy drift. */
95
+ private compatibilityReadOnly;
94
96
  private drafting;
95
97
  /** The chat session to return to when a subagent view closes. */
96
98
  private chatSessionId;
@@ -6,8 +6,15 @@ import type { QaLockdownProof, ResolvedQaSurfaceConfig } from "../types.js";
6
6
  * reason class and an operator hint.
7
7
  */
8
8
  export declare class QaPolicyAttestationError extends Error {
9
- constructor();
9
+ readonly reason: string | null;
10
+ constructor(reason?: string | null);
10
11
  }
12
+ /**
13
+ * Refusals that classify an existing chat as belonging to an older deployment
14
+ * composition. Keeping only its transcript is safe: policyReady stays false,
15
+ * so no prompt, cancel, approval or question reaches the Host.
16
+ */
17
+ export declare function canOpenAsCompatibilityReadOnly(reason: string | null): boolean;
11
18
  /**
12
19
  * Extract the coarse attestation reason code from a Host wire failure, if the
13
20
  * failure carries the marker.
@@ -18,6 +18,8 @@ export interface QaBoundProjectionInput {
18
18
  readonly questions: readonly QaPendingQuestion[];
19
19
  readonly operationError: string | null;
20
20
  readonly policyReady: boolean;
21
+ /** Historical binding retained for transcript access after policy drift. */
22
+ readonly compatibilityReadOnly?: boolean;
21
23
  readonly admissionPending: boolean;
22
24
  readonly chatsRevision: number;
23
25
  readonly viewingSubagent: QaSubagentView | null;
@@ -56,6 +56,13 @@ export declare class QaPolicyAdmission {
56
56
  * still cannot select an owner. The returned disposer mirrors tool lifetime.
57
57
  */
58
58
  registerPrincipalScopedTools(names: readonly string[]): () => void;
59
+ /**
60
+ * Validate deployment-owned facts before a Host session is materialized.
61
+ * Agent-scoped facts (preset composition and tools) remain in secureSession,
62
+ * but a missing Workspace or mismatched permission preset must not leave a
63
+ * newly-created, permanently unusable chat behind.
64
+ */
65
+ preflightDeployment(): void;
59
66
  /**
60
67
  * The mounted attachment store's verbatim root, when the backend exposes
61
68
  * one. It sits outside every workspace, so the per-user fence would
@@ -85,6 +92,8 @@ export declare class QaPolicyAdmission {
85
92
  */
86
93
  private liveAgent;
87
94
  secureSession(token: string, sessionId: string): Promise<QaLockdownProof>;
95
+ /** Resolve the deployment facts shared by creation and full attestation. */
96
+ private deploymentPins;
88
97
  /**
89
98
  * Whether one session went through this boundary. The provenance note is
90
99
  * written only for attested sessions, which is what keeps a deployment's
@@ -788,6 +788,12 @@ export interface QaSessionState {
788
788
  /** Immediate send feedback, kept outside the durable transcript. */
789
789
  readonly pendingMessage: QaPendingUserMessage | null;
790
790
  readonly error: string | null;
791
+ /**
792
+ * An owner-authorized historical chat whose recorded composition no longer
793
+ * matches the deployment. Its transcript remains visible, but no Host
794
+ * operation may be issued through this binding.
795
+ */
796
+ readonly compatibilityReadOnly?: boolean;
791
797
  readonly canSend: boolean;
792
798
  readonly canStop: boolean;
793
799
  /** Bumped whenever this browser's chat index changes (add/forget). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yadsh/dsh-qa-surface",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A focused end-user QA surface backed by native DeepSeek Harness sessions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -175,8 +175,8 @@
175
175
  "typescript": "^7.0.2",
176
176
  "vitest": "^4.1.11",
177
177
  "@yadsh/dsh-config": "^0.0.0",
178
- "@yadsh/dsh-plugin-scripts": "^0.0.0",
179
- "@yadsh/dsh-plugin-kit": "^0.1.0"
178
+ "@yadsh/dsh-plugin-kit": "^0.1.0",
179
+ "@yadsh/dsh-plugin-scripts": "^0.0.0"
180
180
  },
181
181
  "publishConfig": {
182
182
  "access": "public",