@qwen-code/web-shell 0.27.2-preview.0 → 0.27.3-nightly.20261115.6e3b2dcc19

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 (176) hide show
  1. package/NOTICES.txt +2 -2
  2. package/README.md +143 -0
  3. package/dist/{PierreFilePreview-B4n5WCtp.js → PierreFilePreview-VU6ciucZ.js} +1 -1
  4. package/dist/{SpreadsheetPreview-Bbxqbb8z.js → SpreadsheetPreview-BorpWtXP.js} +11 -11
  5. package/dist/{WorkspaceFileBrowser-Bj4bedRP.js → WorkspaceFileBrowser-tSS17iaA.js} +2 -2
  6. package/dist/{abnfDiagram-VCTEODGH-DXK3iWaN.js → abnfDiagram-VCTEODGH-Bv0PY8t9.js} +3 -3
  7. package/dist/{abnfDiagram-VCTEODGH-CQWhk3bg.js → abnfDiagram-VCTEODGH-DtCQRLBn.js} +3 -3
  8. package/dist/{agents-route-CT-Zjn4s.js → agents-route-C04KyRLN.js} +2 -2
  9. package/dist/{arc-DkZAOzaU.js → arc-C9Fz3b3w.js} +1 -1
  10. package/dist/{arc-BcP3aO-G.js → arc-QRx-tRi9.js} +1 -1
  11. package/dist/{architectureDiagram-5GKGNRK7-DusU8ybk.js → architectureDiagram-5GKGNRK7-Cq2r75mE.js} +2 -2
  12. package/dist/{architectureDiagram-5GKGNRK7-DhcVEkLQ.js → architectureDiagram-5GKGNRK7-UM6LRJXg.js} +2 -2
  13. package/dist/{blockDiagram-NRAW4CY4-BMOuo5wl.js → blockDiagram-NRAW4CY4-8jzOft5T.js} +3 -3
  14. package/dist/{blockDiagram-NRAW4CY4-YciA8-8I.js → blockDiagram-NRAW4CY4-Cg0XJgiI.js} +3 -3
  15. package/dist/{c4Diagram-UCG6FXSJ-DNpq-cdF.js → c4Diagram-UCG6FXSJ-B13GwaU1.js} +2 -2
  16. package/dist/{c4Diagram-UCG6FXSJ-BJxpHO4v.js → c4Diagram-UCG6FXSJ-OLlWXJbv.js} +2 -2
  17. package/dist/{channel-CfhQTpjX.js → channel-DZupPnpU.js} +1 -1
  18. package/dist/{channel-QZAYPfF8.js → channel-OaMC7mHn.js} +1 -1
  19. package/dist/{chunk-2Q5K7J3B-EGbMOnEe.js → chunk-2Q5K7J3B-CtAmr6l0.js} +1 -1
  20. package/dist/{chunk-2Q5K7J3B-mtpkChaF.js → chunk-2Q5K7J3B-VYh2Z2EU.js} +1 -1
  21. package/dist/{chunk-5VM5RSS4-CP4Q2W8n.js → chunk-5VM5RSS4-CS08-akS.js} +1 -1
  22. package/dist/{chunk-5VM5RSS4-CucJ3wyB.js → chunk-5VM5RSS4-D6zF9hVH.js} +1 -1
  23. package/dist/{chunk-F27PBJKO-CS9kzvAx.js → chunk-F27PBJKO-CnRnHE8-.js} +1 -1
  24. package/dist/{chunk-F27PBJKO-Cfw_29T-.js → chunk-F27PBJKO-D70ioBbq.js} +1 -1
  25. package/dist/{chunk-G27WJ6UU-BZzmQ8FW.js → chunk-G27WJ6UU-CfPfcj_Q.js} +4 -4
  26. package/dist/{chunk-G27WJ6UU-DdeEiwmL.js → chunk-G27WJ6UU-oq9aNO3N.js} +4 -4
  27. package/dist/{chunk-JWPE2WC7-BL_hjRLf.js → chunk-JWPE2WC7-C8sFa4JA.js} +1 -1
  28. package/dist/{chunk-JWPE2WC7-C03UDQBx.js → chunk-JWPE2WC7-DWG2vaxW.js} +1 -1
  29. package/dist/{chunk-LCL6LL3I-CR-IGGIM.js → chunk-LCL6LL3I-BO1WHi1A.js} +5 -5
  30. package/dist/{chunk-LCL6LL3I-CNn3XyuL.js → chunk-LCL6LL3I-CeUEAKcc.js} +5 -5
  31. package/dist/{chunk-POPQ4Y6H-BVQbxVHz.js → chunk-POPQ4Y6H-0k1uCy9w.js} +1 -1
  32. package/dist/{chunk-POPQ4Y6H-UJK1fYGP.js → chunk-POPQ4Y6H-4u40N2Gl.js} +1 -1
  33. package/dist/{chunk-SVP7TREG-BUmyTmov.js → chunk-SVP7TREG-34lWdHk_.js} +1 -1
  34. package/dist/{chunk-SVP7TREG-B-E-xFG8.js → chunk-SVP7TREG-DDs3xrn_.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-BDcf4DQz.js → chunk-XXDRQBXY-CUHjo6qB.js} +1 -1
  36. package/dist/{chunk-XXDRQBXY-BHAq0mtL.js → chunk-XXDRQBXY-Ug95Mv8M.js} +1 -1
  37. package/dist/{classDiagram-DTDB5LWJ-CVA3J-EH.js → classDiagram-DTDB5LWJ-CtVOkCOx.js} +2 -2
  38. package/dist/{classDiagram-DTDB5LWJ-Dh121Rlt.js → classDiagram-DTDB5LWJ-DrnxKzn3.js} +2 -2
  39. package/dist/{classDiagram-v2-JRS7N3AN-CVA3J-EH.js → classDiagram-v2-JRS7N3AN-CtVOkCOx.js} +2 -2
  40. package/dist/{classDiagram-v2-JRS7N3AN-Dh121Rlt.js → classDiagram-v2-JRS7N3AN-DrnxKzn3.js} +2 -2
  41. package/dist/{cose-bilkent-JH36ORCC-CLe0kcHa.js → cose-bilkent-JH36ORCC-DdToriLo.js} +1 -1
  42. package/dist/{cose-bilkent-JH36ORCC-DpMM48hA.js → cose-bilkent-JH36ORCC-DwyNUx5U.js} +1 -1
  43. package/dist/{cynefinDiagram-5FMLGOSQ-mLaK-3R3.js → cynefinDiagram-5FMLGOSQ-CMVnYBto.js} +2 -2
  44. package/dist/{cynefinDiagram-5FMLGOSQ-C5xaWeuA.js → cynefinDiagram-5FMLGOSQ-Ct3Kw1RW.js} +2 -2
  45. package/dist/daemon-react-sdk.js +1 -1
  46. package/dist/{dagre-3AP2YEHR-CmNFrtW9.js → dagre-3AP2YEHR-CTYnAWpM.js} +2 -2
  47. package/dist/{dagre-3AP2YEHR-zDm3fBQq.js → dagre-3AP2YEHR-Dpv_LiCL.js} +2 -2
  48. package/dist/{diagram-S7CK7UJ4-Clojnf04.js → diagram-S7CK7UJ4-DQHeL6-s.js} +3 -3
  49. package/dist/{diagram-S7CK7UJ4-BQtgRcGU.js → diagram-S7CK7UJ4-DjeleT-0.js} +3 -3
  50. package/dist/{diagram-UQ7AKVKN-CTn4O0fd.js → diagram-UQ7AKVKN-BEBKTGDQ.js} +2 -2
  51. package/dist/{diagram-UQ7AKVKN-B3Ll3rB4.js → diagram-UQ7AKVKN-DtXjm2iL.js} +2 -2
  52. package/dist/{diagram-VSXAHHWV-mdxkNEZP.js → diagram-VSXAHHWV-DfbCHMm2.js} +2 -2
  53. package/dist/{diagram-VSXAHHWV-BeYXDVEh.js → diagram-VSXAHHWV-hbkOSX96.js} +2 -2
  54. package/dist/{diagram-VX7I27RA-DaPLIQOr.js → diagram-VX7I27RA--8imafs4.js} +3 -3
  55. package/dist/{diagram-VX7I27RA-C3bzQYLd.js → diagram-VX7I27RA-C8IxrKer.js} +3 -3
  56. package/dist/{diagram-Z3DM3KII-CkkdGhWO.js → diagram-Z3DM3KII-BV-k-SHd.js} +2 -2
  57. package/dist/{diagram-Z3DM3KII-BImvaL3c.js → diagram-Z3DM3KII-CHdV8r8y.js} +2 -2
  58. package/dist/{ebnfDiagram-PWID7BFC-C8RUggbp.js → ebnfDiagram-PWID7BFC-C3THC4i_.js} +3 -3
  59. package/dist/{ebnfDiagram-PWID7BFC-gJHJx-lt.js → ebnfDiagram-PWID7BFC-lYLcJq20.js} +3 -3
  60. package/dist/{erDiagram-SSCWMZ5O-DLJjXFG9.js → erDiagram-SSCWMZ5O-BLPb7gye.js} +4 -4
  61. package/dist/{erDiagram-SSCWMZ5O-CKFzjLCd.js → erDiagram-SSCWMZ5O-CbcO0mmG.js} +4 -4
  62. package/dist/{flowDiagram-A5DVABFB-BHAeEzG1.js → flowDiagram-A5DVABFB-R1z9XJ6w.js} +6 -6
  63. package/dist/{flowDiagram-A5DVABFB-BOdsfJ-4.js → flowDiagram-A5DVABFB-vckXB2YQ.js} +6 -6
  64. package/dist/{ganttDiagram-EL5Y4UJY-D0hNphpF.js → ganttDiagram-EL5Y4UJY-C8WN6e37.js} +2 -2
  65. package/dist/{ganttDiagram-EL5Y4UJY-CtL6LAbW.js → ganttDiagram-EL5Y4UJY-WeLoHtnc.js} +2 -2
  66. package/dist/{gitGraphDiagram-WWUBYQGX-DxHtQ0ba.js → gitGraphDiagram-WWUBYQGX-D-P5h6Lr.js} +3 -3
  67. package/dist/{gitGraphDiagram-WWUBYQGX-8XcPnT4w.js → gitGraphDiagram-WWUBYQGX-MFeLW7T-.js} +3 -3
  68. package/dist/{index-CULFv0Jj.js → index-X0w50D9I.js} +101720 -98921
  69. package/dist/index.js +3 -3
  70. package/dist/{infoDiagram-RXCK75RN-B-Ds06LN.js → infoDiagram-RXCK75RN-BNKeKO1s.js} +1 -1
  71. package/dist/{infoDiagram-RXCK75RN-Dhirg4if.js → infoDiagram-RXCK75RN-Dps8MUWi.js} +1 -1
  72. package/dist/{ishikawaDiagram-5VMMS53U-CsttzTkq.js → ishikawaDiagram-5VMMS53U-BEGNZ7_e.js} +1 -1
  73. package/dist/{ishikawaDiagram-5VMMS53U-BJPKneVd.js → ishikawaDiagram-5VMMS53U-DD-5xbYo.js} +1 -1
  74. package/dist/{journeyDiagram-EYS64GPL-BBAEhOQ9.js → journeyDiagram-EYS64GPL-CwoTwXxQ.js} +4 -4
  75. package/dist/{journeyDiagram-EYS64GPL-DfXS6tI_.js → journeyDiagram-EYS64GPL-D_CRU8vl.js} +4 -4
  76. package/dist/{kanban-definition-3QL26DDD-Bh1Jz01C.js → kanban-definition-3QL26DDD-CGfVH7-u.js} +2 -2
  77. package/dist/{kanban-definition-3QL26DDD-C8yOTG02.js → kanban-definition-3QL26DDD-gFZV4o3C.js} +2 -2
  78. package/dist/{layout-sTbo9v3C.js → layout-CAcWj7Kv.js} +1 -1
  79. package/dist/{layout-Dxab-q-T.js → layout-DZbn3kqO.js} +1 -1
  80. package/dist/{linear-BhTDfwHZ.js → linear-CIB8jUpO.js} +1 -1
  81. package/dist/{linear-CjDL9r_e.js → linear-DXD1YCMV.js} +1 -1
  82. package/dist/{mermaid.core-DBp8atac.js → mermaid.core-BK41FwyV.js} +7197 -6573
  83. package/dist/{mermaid.core-CFV16zMl.js → mermaid.core-BKgs-Htx.js} +7194 -6570
  84. package/dist/{mindmap-definition-FBJOCRG2-KPo1Z4it.js → mindmap-definition-FBJOCRG2-CNksARfZ.js} +3 -3
  85. package/dist/{mindmap-definition-FBJOCRG2-vau9OLMK.js → mindmap-definition-FBJOCRG2-O4Y3c493.js} +3 -3
  86. package/dist/{pegDiagram-XKGWAZYB-CFjH6RoO.js → pegDiagram-XKGWAZYB-C1-7KdxI.js} +3 -3
  87. package/dist/{pegDiagram-XKGWAZYB-EeXt14MX.js → pegDiagram-XKGWAZYB-CaQotQw4.js} +3 -3
  88. package/dist/{pieDiagram-E7YTZNPT-CJa9GbCV.js → pieDiagram-E7YTZNPT-CuVj0IA0.js} +3 -3
  89. package/dist/{pieDiagram-E7YTZNPT-JyO_8fWF.js → pieDiagram-E7YTZNPT-D0dXDdXT.js} +3 -3
  90. package/dist/{quadrantDiagram-AXDQQJYC-G9wAekw0.js → quadrantDiagram-AXDQQJYC-DRsuFMxM.js} +2 -2
  91. package/dist/{quadrantDiagram-AXDQQJYC-B7tyPD89.js → quadrantDiagram-AXDQQJYC-pqP_q82t.js} +2 -2
  92. package/dist/{railroadDiagram-O6MQD6OU-3-cuTnqH.js → railroadDiagram-O6MQD6OU-BwN8iv67.js} +3 -3
  93. package/dist/{railroadDiagram-O6MQD6OU-SyM4QCMp.js → railroadDiagram-O6MQD6OU-CUAntKim.js} +3 -3
  94. package/dist/{requirementDiagram-EFPCY7ZU-BJal3W63.js → requirementDiagram-EFPCY7ZU-G9huvmji.js} +3 -3
  95. package/dist/{requirementDiagram-EFPCY7ZU-bMW72Av_.js → requirementDiagram-EFPCY7ZU-mJ1dporl.js} +3 -3
  96. package/dist/{sankeyDiagram-P5KCCOFB-BKP8fccK.js → sankeyDiagram-P5KCCOFB-BCgAcSoR.js} +1 -1
  97. package/dist/{sankeyDiagram-P5KCCOFB-C4KDi8Ty.js → sankeyDiagram-P5KCCOFB-Cdc1x2zX.js} +1 -1
  98. package/dist/{sequenceDiagram-WJ2MYXX4-DvgRoXFL.js → sequenceDiagram-WJ2MYXX4-DdTTcHCq.js} +3 -3
  99. package/dist/{sequenceDiagram-WJ2MYXX4-DFvbPjPG.js → sequenceDiagram-WJ2MYXX4-J9jJ_PIj.js} +3 -3
  100. package/dist/{sizeCapture-X5ZJPWSS-DPkvpCxM.js → sizeCapture-X5ZJPWSS-14A9sXYR.js} +1 -1
  101. package/dist/{sizeCapture-X5ZJPWSS-DU4nf5aV.js → sizeCapture-X5ZJPWSS-D4qVP_Sa.js} +1 -1
  102. package/dist/{stateDiagram-HBIQ2CUA-CWp0mOcF.js → stateDiagram-HBIQ2CUA-4NneHSIC.js} +3 -3
  103. package/dist/{stateDiagram-HBIQ2CUA-DkN3hNFV.js → stateDiagram-HBIQ2CUA-DkNYgHbg.js} +3 -3
  104. package/dist/{stateDiagram-v2-4QOOHH4V-Bh7H2ZBJ.js → stateDiagram-v2-4QOOHH4V-BMgrYGU3.js} +2 -2
  105. package/dist/{stateDiagram-v2-4QOOHH4V-DX-OvV9U.js → stateDiagram-v2-4QOOHH4V-rkG8uy--.js} +2 -2
  106. package/dist/sw.js +1 -1
  107. package/dist/{swimlanes-XN3QIQJK-CI3ENZQA.js → swimlanes-XN3QIQJK-BH6gLXA3.js} +1 -1
  108. package/dist/{swimlanes-XN3QIQJK-2s4fbN8J.js → swimlanes-XN3QIQJK-DrNfUgyT.js} +1 -1
  109. package/dist/{swimlanesDiagram-VK2B7HYN-BEjeqDmx.js → swimlanesDiagram-VK2B7HYN-BlPGkTOD.js} +2 -2
  110. package/dist/{swimlanesDiagram-VK2B7HYN-DWJY6BGD.js → swimlanesDiagram-VK2B7HYN-CSVKUjI1.js} +2 -2
  111. package/dist/{timeline-definition-24CTP7MA-C_tZHri9.js → timeline-definition-24CTP7MA-CeK_Y-eQ.js} +2 -2
  112. package/dist/{timeline-definition-24CTP7MA-DYXEracn.js → timeline-definition-24CTP7MA-s9sNQrJl.js} +2 -2
  113. package/dist/transcript.js +9667 -9448
  114. package/dist/types/App.d.ts +4 -1
  115. package/dist/types/components/ChatEditor.d.ts +4 -1
  116. package/dist/types/components/ComposerTaskChips.d.ts +21 -0
  117. package/dist/types/components/LocalFilesControl.d.ts +40 -1
  118. package/dist/types/components/ManagedLocalFilesControl.d.ts +20 -0
  119. package/dist/types/components/ModelPickerContent.d.ts +13 -0
  120. package/dist/types/components/ReportedArtifactRegistration.d.ts +25 -0
  121. package/dist/types/components/ToastHost.d.ts +27 -1
  122. package/dist/types/components/TranscriptViewport.d.ts +4 -1
  123. package/dist/types/components/UnavailableModelTooltip.d.ts +2 -1
  124. package/dist/types/components/WorkspacePill.d.ts +14 -0
  125. package/dist/types/components/channels/ChannelEditorDialog.d.ts +2 -2
  126. package/dist/types/components/channels/ChannelQrLogin.d.ts +2 -2
  127. package/dist/types/components/channels/ChannelsManagerPage.d.ts +10 -1
  128. package/dist/types/components/channels/channel-editor-state.d.ts +5 -4
  129. package/dist/types/components/channels/channel-platform.d.ts +5 -1
  130. package/dist/types/components/channels/qr-login-contract.type-test.d.ts +55 -0
  131. package/dist/types/components/dialogs/BindSessionPrDialog.d.ts +27 -0
  132. package/dist/types/components/dialogs/GoalsDialog.d.ts +23 -6
  133. package/dist/types/components/managed/ManagedTerminalPanel.d.ts +17 -0
  134. package/dist/types/components/managed/generated/managed-agent-api.d.ts +382 -5
  135. package/dist/types/components/managed/java-managed-agent-client.d.ts +14 -0
  136. package/dist/types/components/managed/managed-agent-provider.d.ts +22 -0
  137. package/dist/types/components/managed/managed-terminal-protocol.d.ts +14 -0
  138. package/dist/types/components/managed/use-managed-model-change.d.ts +3 -11
  139. package/dist/types/components/messages/ToolGroup.d.ts +2 -0
  140. package/dist/types/components/sidebar/SessionSearchDialog.d.ts +14 -0
  141. package/dist/types/components/sidebar/SessionSortMenu.d.ts +9 -1
  142. package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
  143. package/dist/types/components/sidebar/use-session-search.d.ts +38 -0
  144. package/dist/types/components/terminal/terminal-protocol.d.ts +30 -0
  145. package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +1 -1
  146. package/dist/types/constants/sessions.d.ts +1 -0
  147. package/dist/types/customization.d.ts +2 -0
  148. package/dist/types/daemon/session/actions.d.ts +2 -1
  149. package/dist/types/daemon/session/types.d.ts +5 -2
  150. package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +9 -2
  151. package/dist/types/daemon/workspace/types.d.ts +29 -1
  152. package/dist/types/hooks/useComposerCore.d.ts +20 -0
  153. package/dist/types/hooks/useListboxKeyboard.d.ts +8 -1
  154. package/dist/types/hooks/useSessionArtifacts.d.ts +1 -2
  155. package/dist/types/i18n.d.ts +6 -0
  156. package/dist/types/index.d.ts +1 -0
  157. package/dist/types/local-files/managed-client-files-bridge.d.ts +87 -0
  158. package/dist/types/local-files/useLocalFilesBridge.d.ts +7 -1
  159. package/dist/types/local-files/useManagedLocalFilesBridge.d.ts +33 -0
  160. package/dist/types/model-picker.d.ts +32 -0
  161. package/dist/types/session-catalog/session-catalog-hooks.d.ts +3 -2
  162. package/dist/types/settings.d.ts +1 -0
  163. package/dist/types/toolRevealContext.d.ts +42 -0
  164. package/dist/types/utils/composerTasks.d.ts +15 -8
  165. package/dist/types/utils/random-uuid.d.ts +6 -0
  166. package/dist/types/voice/VoiceButton.d.ts +9 -1
  167. package/dist/types/voice/useVoiceCapture.d.ts +8 -0
  168. package/dist/{useDaemonMidTurnInjected-B7dPEdqk.js → useDaemonMidTurnInjected-3uO4tj-g.js} +5999 -5781
  169. package/dist/{vennDiagram-4TSXK5OY-DZCe1Ffi.js → vennDiagram-4TSXK5OY-Ugg_3Ng_.js} +1 -1
  170. package/dist/{vennDiagram-4TSXK5OY-Bi3e_aHN.js → vennDiagram-4TSXK5OY-lGXxi-Hh.js} +1 -1
  171. package/dist/{wardleyDiagram-VM6X3IG4-DqFJHRmt.js → wardleyDiagram-VM6X3IG4-CJ3EtuQM.js} +2 -2
  172. package/dist/{wardleyDiagram-VM6X3IG4-BNV5jzew.js → wardleyDiagram-VM6X3IG4-EJ4kWZKd.js} +2 -2
  173. package/dist/{xychartDiagram-S5SC5T6Z-J8xP-hcH.js → xychartDiagram-S5SC5T6Z-CWsXVaw1.js} +2 -2
  174. package/dist/{xychartDiagram-S5SC5T6Z-BVIJ86ch.js → xychartDiagram-S5SC5T6Z-aoVIM2Tw.js} +2 -2
  175. package/package.json +4 -2
  176. package/dist/types/components/StatusBar.d.ts +0 -26
@@ -1,5 +1,6 @@
1
1
  import { type WebShellModelManagementOptions } from './modelManagement';
2
2
  import type { WebShellUnavailableModel, WebShellUnavailableModelTooltipMount } from './unavailableModels';
3
+ import type { WebShellModelPickerOptions } from './model-picker';
3
4
  import './styles/globals.css';
4
5
  import { type WebShellMessageNavigationRequest, type WebShellMessageNavigationResult } from './hooks/useMessageNavigation';
5
6
  import { type DaemonProductSessionContext, type DaemonStreamingState } from '@qwen-code/web-shell/daemon-react-sdk';
@@ -106,6 +107,8 @@ export interface WebShellProps {
106
107
  settings?: WebShellSettingsOptions;
107
108
  /** Model add/delete interactions across WebShell. Not a backend permission policy. */
108
109
  modelManagement?: WebShellModelManagementOptions;
110
+ /** Host-owned header and per-model display content in composer pickers. */
111
+ modelPicker?: WebShellModelPickerOptions;
109
112
  /** Extra catalog models shown disabled in the composer picker. */
110
113
  unavailableModels?: readonly WebShellUnavailableModel[];
111
114
  /** Host-owned hint for a disabled model. DOM/Solid hosts mount into the container. */
@@ -480,4 +483,4 @@ export declare function canArchiveSideTaskSummary(session: Pick<DaemonSessionSum
480
483
  export declare function mergeSideTaskCatalog(catalog: SideTaskCatalogState, parentSessionId: string, listedItems: SideTaskListItem[], optimisticIds: ReadonlySet<string>): SideTaskCatalogState;
481
484
  export declare function getEnvironmentAgentTasks(messages: readonly Message[], sessionTasks: readonly DaemonSessionTaskWithWorkflowStatus[]): EnvironmentAgentTask[];
482
485
  export declare function mergeAgentTrace(liveAgents: readonly EnvironmentAgentTask[], trace: DaemonAgentTrace | undefined, now?: number): EnvironmentAgentTask[];
483
- export declare function App({ onRefreshModels, askUserFreeTextLabel, onSessionIdChange, onSessionInfoChange, onModelChange, onSessionCreated, managedAgentProvider, theme: providedTheme, onThemeChange, onThemeResolved, language: providedLanguage, onLanguageChange, onLanguageResolved, brand: providedBrand, onBrandResolved, className: externalClassName, style: externalStyle, shadowDom, onConnectionChange, onStreamingStateChange, onError, onBugReport, hiddenSlashCommands, slashCommandCategoryOrder, onSlashCommand, builtinAtProviders, atProviders, composerTagIcons, fileUploadEnabled, fileUploadDirectory, artifact, fileDropAction, renderToolHeaderExtra, alignManagedChatWithHost, showManagedSessionHeader, renderWelcomeHeader, renderWelcomeFooter, mobileWelcomeFooterMiddle, parseUserMessageContent, renderUserMessageContent, renderComposerTag, renderComposerTagTooltip, onComposerTagClick, renderAssistantTurnFooter, assistantFeedback, getAssistantSourcesIcon, sourceReferences, renderComposerToolbarStart, renderComposerToolbarEnd, renderComposerToolbarRight, renderComposerHeader, renderComposerFooter, renderChatHeader, renderFooter, bottomStatusItems, chatMaxWidth, sidebar, settings: settingsPresentation, modelManagement, unavailableModels, mountUnavailableModelTooltip, header, rightPanel, showToolCalls, environmentPanel, splitSessionIds: externalSplitSessionIds, onSplitSessionIdsChange, renderPaneHeaderActions, onRightPanelOpen, onFileReviewOpen, onWorkspaceFileOpen, onPickWorkspaceDirectory, onInsightReportOpen, onContextUsageOpen, messageTurnOutputs, filterArtifact, shellRef, composerToolbarActions, hostOwnsAddMenu, allowedApprovalModes: allowedApprovalModesProp, composerVariant, mainModelFilter, compactComposerOverlays, autoSubmitSlashCommands, additionalSlashCommands, contextUsageAlwaysVisible, userMessageEditing, onUserMessageEditRequest, cycleModeOnTab, sessionSourceType, subscriptionDraft, composerToolbarAdditionalActions, composerPlaceholders, compactThinking, hostOwnsEditDiffPreview, collapseCompletedTurns, markdownTableMode, virtualScrollThreshold, conversationSearchThreshold, markdown, loadingPhrases, onAgentTasksChange, onTranscriptChange, onSessionArtifactsChange, onToast, composerRef, onComposerReady, composerInput, composerInputVersion, onSessionChange, onAssistantTurnSettled, prepareSubmit, onSubmitBefore, restartSseOnPrompt, historyPageSize, initialSelectedWorkspaceCwd, lockedWorkspaceCwd, lockedWorkspaceCapability, }?: AppProps): import("react/jsx-runtime").JSX.Element;
486
+ export declare function App({ onRefreshModels, askUserFreeTextLabel, onSessionIdChange, onSessionInfoChange, onModelChange, onSessionCreated, managedAgentProvider, theme: providedTheme, onThemeChange, onThemeResolved, language: providedLanguage, onLanguageChange, onLanguageResolved, brand: providedBrand, onBrandResolved, className: externalClassName, style: externalStyle, shadowDom, onConnectionChange, onStreamingStateChange, onError, onBugReport, hiddenSlashCommands, slashCommandCategoryOrder, onSlashCommand, builtinAtProviders, atProviders, composerTagIcons, fileUploadEnabled, fileUploadDirectory, artifact, fileDropAction, renderToolHeaderExtra, alignManagedChatWithHost, showManagedSessionHeader, renderWelcomeHeader, renderWelcomeFooter, mobileWelcomeFooterMiddle, parseUserMessageContent, renderUserMessageContent, renderComposerTag, renderComposerTagTooltip, onComposerTagClick, renderAssistantTurnFooter, assistantFeedback, getAssistantSourcesIcon, sourceReferences, renderComposerToolbarStart, renderComposerToolbarEnd, renderComposerToolbarRight, renderComposerHeader, renderComposerFooter, renderChatHeader, renderFooter, bottomStatusItems, chatMaxWidth, sidebar, settings: settingsPresentation, modelManagement, modelPicker, unavailableModels, mountUnavailableModelTooltip, header, rightPanel, showToolCalls, environmentPanel, splitSessionIds: externalSplitSessionIds, onSplitSessionIdsChange, renderPaneHeaderActions, onRightPanelOpen, onFileReviewOpen, onWorkspaceFileOpen, onPickWorkspaceDirectory, onInsightReportOpen, onContextUsageOpen, messageTurnOutputs, filterArtifact, shellRef, composerToolbarActions, hostOwnsAddMenu, allowedApprovalModes: allowedApprovalModesProp, composerVariant, mainModelFilter, compactComposerOverlays, autoSubmitSlashCommands, additionalSlashCommands, contextUsageAlwaysVisible, userMessageEditing, onUserMessageEditRequest, cycleModeOnTab, sessionSourceType, subscriptionDraft, composerToolbarAdditionalActions, composerPlaceholders, compactThinking, hostOwnsEditDiffPreview, collapseCompletedTurns, markdownTableMode, virtualScrollThreshold, conversationSearchThreshold, markdown, loadingPhrases, onAgentTasksChange, onTranscriptChange, onSessionArtifactsChange, onToast, composerRef, onComposerReady, composerInput, composerInputVersion, onSessionChange, onAssistantTurnSettled, prepareSubmit, onSubmitBefore, restartSseOnPrompt, historyPageSize, initialSelectedWorkspaceCwd, lockedWorkspaceCwd, lockedWorkspaceCapability, }?: AppProps): import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,7 @@ import type { DaemonSessionGroupPresetColor, DaemonWorkspaceGitStatus, Reasoning
8
8
  import type { CommandDisplayCategoryOrder } from '../utils/commandDisplay';
9
9
  import type { SkillInfo } from '../completions/slashCompletion';
10
10
  import type { DaemonReasoningControls, DaemonWorkflowMode, DaemonWorkflowModeStatus } from '@qwen-code/web-shell/daemon-react-sdk';
11
+ import type { WebShellModelPickerContext } from '../model-picker';
11
12
  import { type WebShellComposerInput, type WebShellComposerTag, type WebShellComposerTagIconMap, type WebShellAtProvider, type WebShellBuiltinAtProvidersConfig } from '../customization';
12
13
  import { type ComposerSubmitMetadata, type EditorHandle } from '../hooks/useComposerCore';
13
14
  import { type UseFileUploadOptions } from '../hooks/useFileUpload';
@@ -31,6 +32,8 @@ interface ChatEditorProps {
31
32
  /** First Esc armed a cancel — the send button shows an "Esc to stop" hint. */
32
33
  cancelArmed?: boolean;
33
34
  disabled?: boolean;
35
+ /** Keep the editor editable but reject every submit path. */
36
+ submitDisabled?: boolean;
34
37
  placeholderText?: string;
35
38
  commands: CommandInfo[];
36
39
  skills?: SkillInfo[];
@@ -84,7 +87,6 @@ interface ChatEditorProps {
84
87
  workspaceColor?: DaemonSessionGroupPresetColor;
85
88
  chatWidthMode?: '1000' | 'wide';
86
89
  showChatWidthToggle?: boolean;
87
- chatWidthToggleMin?: number;
88
90
  visibleToolbarActions?: readonly ComposerToolbarAction[];
89
91
  liveVoicePortalContainer?: HTMLElement | null;
90
92
  /**
@@ -107,6 +109,7 @@ interface ChatEditorProps {
107
109
  onOpenContextUsage?: () => void;
108
110
  contextUsageControls?: ContextCompressionControls;
109
111
  modelRefresh?: ModelRefreshState;
112
+ modelPickerScope?: Pick<WebShellModelPickerContext, 'sessionId' | 'workspaceId' | 'workspaceCwd' | 'daemonBaseUrl'>;
110
113
  availableModels?: Array<{
111
114
  id: string;
112
115
  label?: string;
@@ -0,0 +1,21 @@
1
+ import type { DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
2
+ export interface ComposerTaskChipsHandle {
3
+ /** Focus the first chip; false when there is none to focus. */
4
+ focus(): boolean;
5
+ }
6
+ export interface ComposerTaskChipsProps {
7
+ tasks: readonly DaemonSessionTaskWithWorkflowStatus[];
8
+ /** Whether background agents get a chip (hosts without agent surfaces opt out). */
9
+ includeAgents: boolean;
10
+ /** Open the task: locate a workflow in the transcript, open a shell's output, … */
11
+ onSelectTask: (task: DaemonSessionTaskWithWorkflowStatus) => void;
12
+ /** Hand focus back to the composer, optionally with a typed character. */
13
+ onReturnToInput?: (text?: string) => void;
14
+ }
15
+ /**
16
+ * Chips above the composer for this session's unfinished background work —
17
+ * one per kind ("1 workflow", "2 shells"). A chip that stands for a single
18
+ * task opens it directly; one that stands for several opens a list above the
19
+ * row to pick from. Finished tasks have no chip, so the row clears itself.
20
+ */
21
+ export declare const ComposerTaskChips: import("react").ForwardRefExoticComponent<ComposerTaskChipsProps & import("react").RefAttributes<ComposerTaskChipsHandle>>;
@@ -6,17 +6,56 @@
6
6
  import type { DaemonCapabilities, DaemonClient, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
7
7
  import type { AcpWorkspaceSelector } from '../local-files/bridge-client';
8
8
  import { type LocalFilesStatus } from '../local-files/useLocalFilesBridge';
9
+ /** Concrete command that enables the reverse channel on the daemon. */
10
+ export declare const LOCAL_FILES_DAEMON_COMMAND = "QWEN_SERVE_CLIENT_MCP_OVER_WS=1 qwen serve";
11
+ /**
12
+ * The startup command in the user's shell syntax: the POSIX env-prefix form
13
+ * is not parseable by PowerShell, so on Windows the affordance must copy the
14
+ * `$env:` form or the one action the blocker offers cannot enable the feature.
15
+ * The variable name is the literal run-qwen-serve.ts reads.
16
+ */
17
+ export declare function deriveLocalFilesDaemonCommand(platform: string | undefined): string;
18
+ /**
19
+ * Trigger dot color per phase. `null` means no dot. Failed and needs-gesture
20
+ * get distinct colors so a broken or re-authorization-pending bridge is not
21
+ * invisible the way a plain busy dot made it. `held-elsewhere` stays muted
22
+ * (not primary): the bridge is live but owned by another tab, so this tab must
23
+ * not read the dot as "I have a working bridge here". The warning states use
24
+ * the theme-aware `--warning-color` token (App.module.css) rather than a fixed
25
+ * palette color, so the dot keeps contrast in the light theme too.
26
+ */
27
+ export declare function getLocalFilesDotClass(status: LocalFilesStatus): string | null;
28
+ /** Tooltip naming the state (and directory) instead of the static label. */
29
+ export declare function getLocalFilesTooltip(status: LocalFilesStatus, t: (key: string) => string): string;
30
+ /** Derive the SSH tunnel command for the insecure-context blocker. */
31
+ export declare function deriveLocalFilesTunnelCommand(baseUrl: string): string | undefined;
32
+ /** The local port the copied tunnel binds — the address the user must open. */
33
+ export declare function deriveLocalFilesTunnelLocalPort(baseUrl: string): number | undefined;
9
34
  export interface LocalFilesPanelProps {
10
35
  status: LocalFilesStatus;
11
36
  onConnect: () => void;
12
37
  onDisconnect: () => void;
13
38
  onOpenInNewTab: () => void;
39
+ /** Offered only while connected; re-opens the picker for a new grant. */
40
+ onChangeDirectory?: () => void;
41
+ /** Bound session title, shown while connected when known. */
42
+ sessionName?: string;
43
+ /** Offered in needs-session when the host can create a session. */
44
+ onNewSession?: () => void;
45
+ /** Copies a concrete fix command; absent hosts render no copy buttons. */
46
+ onCopyCommand?: (command: string) => void;
47
+ /** SSH tunnel command for the insecure-context blocker, when derivable. */
48
+ tunnelCommand?: string;
49
+ /** Local port the tunnel binds; the blocker copy names the address to open. */
50
+ tunnelLocalPort?: number;
51
+ /** Daemon startup command in the user's shell syntax; defaults to POSIX. */
52
+ daemonCommand?: string;
14
53
  }
15
54
  /**
16
55
  * The popover body, kept prop-driven and free of hooks/portals so the phase →
17
56
  * affordance mapping is testable without a Radix portal or a daemon provider.
18
57
  */
19
- export declare function LocalFilesPanel({ status, onConnect, onDisconnect, onOpenInNewTab, }: LocalFilesPanelProps): import("react/jsx-runtime").JSX.Element;
58
+ export declare function LocalFilesPanel({ status, onConnect, onDisconnect, onOpenInNewTab, onChangeDirectory, sessionName, onNewSession, onCopyCommand, tunnelCommand, tunnelLocalPort, daemonCommand, }: LocalFilesPanelProps): import("react/jsx-runtime").JSX.Element;
20
59
  interface LocalFilesControlProps {
21
60
  /**
22
61
  * Class for the trigger button. Required, and supplied by the host surface
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { ManagedAgentProvider } from './managed/managed-agent-provider';
7
+ export interface ManagedLocalFilesControlProps {
8
+ provider: ManagedAgentProvider;
9
+ sessionId: string | undefined;
10
+ triggerClassName: string;
11
+ /** Bound session title, shown while connected when known. */
12
+ sessionName?: string;
13
+ }
14
+ /**
15
+ * The Managed-mode local files entry. Unlike the daemon control it has no
16
+ * workspace route or ACP re-warm: the provider supplies an authenticated
17
+ * HTTP/SSE transport, and the entry is withheld entirely when the deployment
18
+ * does not expose client files.
19
+ */
20
+ export declare function ManagedLocalFilesControl({ provider, sessionId, triggerClassName, sessionName, }: ManagedLocalFilesControlProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { WebShellModelPickerContext, WebShellModelPickerMount } from '../model-picker';
3
+ export declare function isModelPickerOverlayEvent(root: HTMLElement | null, event: Event): boolean;
4
+ export declare function useModelPickerOverlays(open: boolean): HTMLElement | null;
5
+ export declare function ModelPickerContent<T extends WebShellModelPickerContext>({ mount, context, overlayRoot, revision, fallback, className, onActiveChange, }: {
6
+ mount?: WebShellModelPickerMount<T>;
7
+ context: Omit<T, 'overlayContainer'>;
8
+ overlayRoot: HTMLElement | null;
9
+ revision?: object;
10
+ fallback?: ReactNode;
11
+ className?: string;
12
+ onActiveChange?: (active: boolean) => void;
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
7
+ import { type RegistrationErrorTranslator } from '../hooks/useReportedArtifactRegistration';
8
+ /**
9
+ * Registers the files slash commands reported writing with the session
10
+ * artifact store. Rendered inside the shell's portal-root provider so the
11
+ * failure toast is scoped to this shell: App calls useSessionArtifacts in
12
+ * its own body, above the provider it returns, so the registration cannot
13
+ * ride along inside that hook without reading an unpopulated context.
14
+ *
15
+ * Mounted once per session consumer: App for the main session, ChatPane for
16
+ * split panes and side tasks, SubagentDetailContent for subagent sessions —
17
+ * each of those runs under its own DaemonSessionProvider, so a single mount
18
+ * in App would leave their reported artifacts unregistered.
19
+ */
20
+ export declare function ReportedArtifactRegistration({ registered, hydrated, refresh, translateError, }: {
21
+ registered: readonly DaemonSessionArtifact[];
22
+ hydrated: boolean;
23
+ refresh: () => Promise<void>;
24
+ translateError?: RegistrationErrorTranslator;
25
+ }): null;
@@ -1,4 +1,6 @@
1
1
  export type ToastTone = 'info' | 'warning' | 'error' | 'success';
2
+ export declare const MAX_TOASTS = 4;
3
+ export declare const TOAST_AUTO_DISMISS_MS = 5000;
2
4
  /** Window event that asks the app-level toast host to show a toast. Lets
3
5
  * deeply nested components (markdown links, artifact actions) report failures
4
6
  * without prop-drilling the toast callback. */
@@ -7,7 +9,7 @@ export interface ToastRequestDetail {
7
9
  tone: ToastTone;
8
10
  message: string;
9
11
  }
10
- export declare function requestToast(tone: ToastTone, message: string): void;
12
+ export declare function requestToast(tone: ToastTone, message: string, scope?: Element | null): void;
11
13
  export interface WebShellToast {
12
14
  id: string;
13
15
  tone: ToastTone;
@@ -15,6 +17,14 @@ export interface WebShellToast {
15
17
  /** Epoch ms when the toast auto-dismisses; survives host remounts. */
16
18
  dismissAt: number;
17
19
  }
20
+ /**
21
+ * The toast queue contract shared by App's listener and WindowToastHost, in
22
+ * one place so the two hosts cannot drift: deadline-based auto-dismiss and
23
+ * tone+message de-duplication with a capped stack (a repeat moves to the top
24
+ * instead of stacking twice; the oldest overflow drops).
25
+ */
26
+ export declare function createWebShellToast(tone: ToastTone, message: string, sequence: number): WebShellToast;
27
+ export declare function appendToastDeduped(current: readonly WebShellToast[], toast: WebShellToast): WebShellToast[];
18
28
  interface ToastHostProps {
19
29
  toasts: readonly WebShellToast[];
20
30
  onDismiss: (id: string) => void;
@@ -22,4 +32,20 @@ interface ToastHostProps {
22
32
  elevated?: boolean;
23
33
  }
24
34
  export declare function ToastHost({ toasts, onDismiss, elevated, }: ToastHostProps): import("react/jsx-runtime").JSX.Element | null;
35
+ /**
36
+ * Self-contained host for the window toast channel, for shells that do not
37
+ * carry App's toast state (the managed-only boot path). Same contract as
38
+ * App's listener: non-empty message guard, tone+message de-duplication, a
39
+ * capped stack, and deadline-based auto-dismiss. Without it, requestToast
40
+ * from a nested control dispatches into a document with no listener and the
41
+ * notice is silently dropped.
42
+ *
43
+ * `scope` narrows the listener to one shell's root element: requestToast
44
+ * dispatches on the acting shell's root (bubbling to window), so co-mounted
45
+ * shells do not show each other's notices. Omit it only for a single-shell
46
+ * document.
47
+ */
48
+ export declare function WindowToastHost({ scope }: {
49
+ scope?: HTMLElement | null;
50
+ }): import("react/jsx-runtime").JSX.Element;
25
51
  export {};
@@ -14,4 +14,7 @@ export declare function followRangeFromRows(rows: readonly {
14
14
  bottom: number;
15
15
  ordinal?: number;
16
16
  }[], viewportTop: number, viewportBottom: number): TurnFollowRange | undefined;
17
- export declare const TranscriptViewport: import("react").ForwardRefExoticComponent<MessageListProps & import("react").RefAttributes<MessageListHandle>>;
17
+ export interface TranscriptViewportProps extends MessageListProps {
18
+ approvalOverlayActive?: boolean;
19
+ }
20
+ export declare const TranscriptViewport: import("react").ForwardRefExoticComponent<TranscriptViewportProps & import("react").RefAttributes<MessageListHandle>>;
@@ -5,8 +5,9 @@
5
5
  */
6
6
  import { type ReactElement } from 'react';
7
7
  import type { WebShellUnavailableModel, WebShellUnavailableModelTooltipMount } from '../unavailableModels';
8
- export declare function UnavailableModelTooltip({ model, mount, children, }: {
8
+ export declare function UnavailableModelTooltip({ model, mount, enabled, children, }: {
9
9
  model: WebShellUnavailableModel;
10
10
  mount?: WebShellUnavailableModelTooltipMount;
11
+ enabled?: boolean;
11
12
  children: ReactElement;
12
13
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ interface WorkspacePillProps {
7
+ /** The workspace cwd, shown as the tooltip. */
8
+ cwd: string;
9
+ /** Display label (already disambiguated by the caller when needed). */
10
+ label: string;
11
+ }
12
+ /** Compact workspace badge shared by the Goals and Scheduled Tasks pages. */
13
+ export declare function WorkspacePill({ cwd, label }: WorkspacePillProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { DaemonChannelInstanceSnapshot, DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRequestsSnapshot, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult, DaemonChannelTypeDescriptor, DaemonChannelUpsertRequest, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
7
- import type { DaemonChannelQrLoginActions } from '../../daemon/workspace/types';
7
+ import type { DaemonChannelQrLoginHandlers } from '../../daemon/workspace/types';
8
8
  import { type WeixinLoginApi } from './WeixinLoginPanel';
9
9
  export interface ChannelEditorDialogProps {
10
10
  open: boolean;
@@ -19,7 +19,7 @@ export interface ChannelEditorDialogProps {
19
19
  onOpenChange: (open: boolean) => void;
20
20
  onSave: (name: string, request: DaemonChannelUpsertRequest) => Promise<unknown>;
21
21
  onReload: () => Promise<unknown>;
22
- qrLoginActions?: DaemonChannelQrLoginActions;
22
+ qrLoginActions?: DaemonChannelQrLoginHandlers;
23
23
  listPairingRequests: (name: string) => Promise<DaemonChannelPairingRequestsSnapshot>;
24
24
  approvePairingRequest: (name: string, code: string) => Promise<DaemonChannelPairingApprovalResult>;
25
25
  listPairingApprovals: (name: string) => Promise<DaemonChannelPairingApprovalsSnapshot>;
@@ -3,10 +3,10 @@
3
3
  * Copyright 2026 Qwen Team
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import type { DaemonChannelQrLoginActions } from '../../daemon/workspace/types';
6
+ import type { DaemonChannelQrLoginHandlers } from '../../daemon/workspace/types';
7
7
  export interface ChannelQrLoginProps {
8
8
  channelName: string;
9
- actions: DaemonChannelQrLoginActions;
9
+ actions: DaemonChannelQrLoginHandlers;
10
10
  /** Called once a bind succeeds so the editor can reload the channel. */
11
11
  onBound: () => void;
12
12
  }
@@ -7,6 +7,15 @@ import { type Ref } from 'react';
7
7
  interface ChannelsManagerPageProps {
8
8
  onClose?: () => void;
9
9
  initialFocusRef?: Ref<HTMLHeadingElement>;
10
+ /** This tab's daemon-registered client id, for QR-login attribution. */
11
+ clientId?: string;
12
+ /**
13
+ * The workspace this tab's session belongs to. The client id is registered
14
+ * with that workspace's bridge only, and the daemon validates the header
15
+ * against the *target* workspace's bridge — so sending it while managing a
16
+ * different workspace is a hard `400 invalid_client_id`.
17
+ */
18
+ sessionWorkspaceCwd?: string;
10
19
  }
11
- export declare function ChannelsManagerPage({ onClose, initialFocusRef, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function ChannelsManagerPage({ onClose, initialFocusRef, clientId, sessionWorkspaceCwd, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
12
21
  export {};
@@ -30,7 +30,7 @@ export interface ChannelGroupOverrideDraft {
30
30
  senders: '' | 'open' | 'allowlist';
31
31
  allowedUsers: string;
32
32
  }
33
- export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'invalidRepoId' | 'repoFilterRequired' | 'conflictingRepoAliases' | 'invalidGroupEntry' | 'number' | 'outOfRange' | 'policy' | 'requiresBoundDelivery' | 'requiresBoundDeliveryForWatchGate';
33
+ export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'invalidRepoId' | 'repoFilterRequired' | 'conflictingRepoAliases' | 'invalidGroupEntry' | 'number' | 'outOfRange' | 'policy' | 'requiresBoundDeliveryForWatchGate';
34
34
  export type ChannelEditorValidationErrors = Record<string, ChannelEditorValidationCode>;
35
35
  /** Access fields that only gate direct messages, which repository-only channels never receive. */
36
36
  export declare const PRIVATE_ONLY_FIELD_KEYS: Set<string>;
@@ -43,10 +43,11 @@ export declare const PRIVATE_ONLY_FIELD_KEYS: Set<string>;
43
43
  export declare const GROUP_ONLY_FIELD_KEYS: Set<string>;
44
44
  /**
45
45
  * Canonical repository IDs the allowlist currently names, in typing order.
46
- * Entries that are not `owner/repo` are left out: the save path rejects them,
47
- * and a row for a half-typed repository would only flicker.
46
+ * Entries that do not match the channel's repository shape are left out: the
47
+ * save path rejects them, and a row for a half-typed repository would only
48
+ * flicker.
48
49
  */
49
- export declare function repositoryAllowlistIds(value: string): string[];
50
+ export declare function repositoryAllowlistIds(value: string, type: unknown): string[];
50
51
  /** Whether the repository event filter processes a list at all. */
51
52
  export declare function isRepoFilterActive(mode: unknown): boolean;
52
53
  /**
@@ -4,8 +4,12 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { DaemonChannelTypeDescriptor } from '@qwen-code/sdk/daemon';
7
+ export declare const CHANNEL_METHOD_PLATFORMS: Record<string, {
8
+ type: string;
9
+ displayName: string;
10
+ } | undefined>;
7
11
  export declare const PLATFORM_MARKS: Record<string, string>;
8
- export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dws' | 'weixin' | 'wecom' | 'wecom-callback' | 'feishu' | 'github' | 'gitlab' | 'email' | 'qq';
12
+ export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dingtalk-webhook' | 'dws' | 'weixin' | 'wecom' | 'wecom-webhook' | 'wecom-callback' | 'feishu' | 'feishu-webhook' | 'github' | 'gitlab' | 'email' | 'qq';
9
13
  export declare function isChannelPlatformAvailable(descriptor: DaemonChannelTypeDescriptor): boolean;
10
14
  export declare function isRepositoryOnlyChannelType(type: unknown): boolean;
11
15
  export declare function isPrivateOnlyChannelType(type: unknown): boolean;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Type-level pins for the QR-login identity contract: the tab's own client id is
3
+ * not a per-call argument on anything the channels hook publishes.
4
+ *
5
+ * `tsc` is the runner — this file is never imported and never executed. Three
6
+ * layers, because no single one is sufficient:
7
+ *
8
+ * 1. Identity: every published surface must be exactly the narrow handler type,
9
+ * so re-declaring a prop or the hook's return to something wider fails here.
10
+ * 2. Arity of the contract itself: adding an *optional* parameter leaves the
11
+ * object types identical to the checker, so the contract's argument counts
12
+ * and first arguments are pinned too. An optional member makes the inferred
13
+ * tuple's length `1 | 2`.
14
+ * 3. Positive controls: real calls, so renaming a member reds the build instead
15
+ * of leaving the assertions comparing types that no longer describe it.
16
+ *
17
+ * Sampling call shapes with `@ts-expect-error` cannot do any of this: a
18
+ * suppression keeps swallowing an unrelated error (a renamed member, an excess
19
+ * property) and goes silent about the thing it names.
20
+ *
21
+ * The collectors below are deliberately not generic: an indexed access into a
22
+ * conditionally inferred tuple stays deferred inside a generic alias, so the
23
+ * comparison would never resolve to a concrete tuple.
24
+ *
25
+ * The name avoids `*.test.ts`: this package's tsconfig excludes test files from
26
+ * typechecking, which would make these pins inert.
27
+ */
28
+ import type { useDaemonChannels } from '../../daemon/workspace/hooks/useDaemonChannels';
29
+ import type { DaemonChannelQrLoginHandlers } from '../../daemon/workspace/types';
30
+ import type { ChannelEditorDialogProps } from './ChannelEditorDialog';
31
+ import type { ChannelQrLoginProps } from './ChannelQrLogin';
32
+ type Identical<A, B> = (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2 ? true : false;
33
+ type Assert<T extends true> = T;
34
+ type Args<F> = F extends (...args: infer A) => unknown ? A : never;
35
+ type HookQrLogin = ReturnType<typeof useDaemonChannels>['qrLogin'];
36
+ type PanelQrLogin = ChannelQrLoginProps['actions'];
37
+ type EditorQrLogin = NonNullable<ChannelEditorDialogProps['qrLoginActions']>;
38
+ export type HookIdentity = Assert<Identical<HookQrLogin, DaemonChannelQrLoginHandlers>>;
39
+ export type PanelIdentity = Assert<Identical<PanelQrLogin, DaemonChannelQrLoginHandlers>>;
40
+ export type EditorIdentity = Assert<Identical<EditorQrLogin, DaemonChannelQrLoginHandlers>>;
41
+ type ContractLengths = [
42
+ Args<DaemonChannelQrLoginHandlers['start']>['length'],
43
+ Args<DaemonChannelQrLoginHandlers['state']>['length'],
44
+ Args<DaemonChannelQrLoginHandlers['cancel']>['length'],
45
+ Args<DaemonChannelQrLoginHandlers['release']>['length']
46
+ ];
47
+ type ContractFirsts = [
48
+ Args<DaemonChannelQrLoginHandlers['start']>[0],
49
+ Args<DaemonChannelQrLoginHandlers['state']>[0],
50
+ Args<DaemonChannelQrLoginHandlers['cancel']>[0],
51
+ Args<DaemonChannelQrLoginHandlers['release']>[0]
52
+ ];
53
+ export type ContractArities = Assert<Identical<ContractLengths, [1, 1, 1, 1]>>;
54
+ export type ContractFirstArgs = Assert<Identical<ContractFirsts, [string, string, string, string]>>;
55
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export interface BindSessionPrPayload {
7
+ number: number;
8
+ url: string;
9
+ state?: 'open' | 'merged' | 'closed';
10
+ }
11
+ interface BindSessionPrDialogProps {
12
+ workspaceCwd: string;
13
+ busy: boolean;
14
+ /** Daemon-side failure surfaced by the panel; resolution errors are internal. */
15
+ error?: string;
16
+ onSubmit: (pr: BindSessionPrPayload) => void;
17
+ onClose: () => void;
18
+ }
19
+ /**
20
+ * Supplementary PR registration: binds an existing PR the automatic paths
21
+ * missed. A URL binds normalized to its canonical /pull/<N> spelling (the
22
+ * daemon's refresh sweep resolves its state); a bare number or #N resolves
23
+ * through the workspace's open-PR list, so a number outside that list
24
+ * (merged/closed or beyond the list cap) asks for the URL.
25
+ */
26
+ export declare function BindSessionPrDialog({ workspaceCwd, busy, error, onSubmit, onClose, }: BindSessionPrDialogProps): import("react/jsx-runtime").JSX.Element;
27
+ export {};
@@ -3,14 +3,31 @@
3
3
  * Copyright 2026 Qwen Team
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
+ import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
6
7
  interface GoalsDialogProps {
7
8
  /** Create a canonical Goal in a brand-new session and switch to it.
8
- * Return `false` when session setup failed and the error was already shown;
9
- * throw to render the control failure inline. */
10
- onCreateGoal: (condition: string) => boolean | void | Promise<boolean | void>;
11
- /** Open the session driving a goal — its transcript IS the goal's history. */
12
- onOpenSession: (sessionId: string) => void;
9
+ * `workspaceCwd` targets that workspace when the multi-workspace picker
10
+ * chose one; absent keeps the App's default target. Return `false` when
11
+ * session setup failed and the error was already shown; throw to render the
12
+ * control failure inline. */
13
+ onCreateGoal: (condition: string, workspaceCwd?: string) => boolean | void | Promise<boolean | void>;
14
+ /** Open the session driving a goal — its transcript IS the goal's history.
15
+ * `workspaceCwd` is the goal's own workspace when the aggregated view
16
+ * tagged it, so the App loads the session in that workspace's context. */
17
+ onOpenSession: (sessionId: string, workspaceCwd?: string) => void;
18
+ /** Registered workspaces on a multi-workspace daemon (from capabilities).
19
+ * When more than one is present the page aggregates every operable
20
+ * workspace's goals (each card tagged with its workspace) and the New form
21
+ * offers a workspace picker. Absent or a single entry → the plain
22
+ * primary-only view. */
23
+ workspaces?: DaemonWorkspaceCapability[];
24
+ /** Forces all goal listing through this workspace's route. */
25
+ lockedWorkspace?: DaemonWorkspaceCapability;
26
+ /** The workspace the create form defaults to (the App's currently selected
27
+ * workspace). Falls back to a creatable primary, else the first creatable
28
+ * entry, when absent or not creatable. */
29
+ defaultWorkspaceCwd?: string;
13
30
  onError: (error: unknown, fallback: string) => void;
14
31
  }
15
- export declare function GoalsDialog({ onCreateGoal, onOpenSession, onError, }: GoalsDialogProps): import("react/jsx-runtime").JSX.Element;
32
+ export declare function GoalsDialog({ onCreateGoal, onOpenSession, workspaces, lockedWorkspace, defaultWorkspaceCwd, onError, }: GoalsDialogProps): import("react/jsx-runtime").JSX.Element;
16
33
  export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import '@xterm/xterm/css/xterm.css';
7
+ import type { ManagedAgentTerminalProvider } from './managed-agent-provider';
8
+ interface ManagedTerminalPanelProps {
9
+ terminal: ManagedAgentTerminalProvider;
10
+ sessionId: string;
11
+ terminalId: string;
12
+ clientId: string;
13
+ onClose(): void;
14
+ restoreFocus(): void;
15
+ }
16
+ export declare function ManagedTerminalPanel({ terminal, sessionId, terminalId, clientId, onClose, restoreFocus, }: ManagedTerminalPanelProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};