@nervekit/desktop 0.40.2 → 0.41.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 (234) hide show
  1. package/README.md +5 -2
  2. package/THIRD-PARTY-LICENSES.txt +964 -4
  3. package/dist/bin.js +1 -0
  4. package/dist/{chunk-YJT4NXMV.js → chunk-2ICPO4UM.js} +5 -5
  5. package/dist/{chunk-EX63VKXY.js → chunk-3CZXUKLG.js} +1 -1
  6. package/dist/{chunk-KTGSBL6T.js → chunk-4OCDR4DU.js} +11 -11
  7. package/dist/{chunk-BNVMNV4O.js → chunk-62DQXVPO.js} +2 -2
  8. package/dist/{chunk-K2J2VZXO.js → chunk-6GUJQURI.js} +2 -2
  9. package/dist/{chunk-VBM7TD3X.js → chunk-6IHXVT5H.js} +1 -1
  10. package/dist/{chunk-KBNEZR7T.js → chunk-6ZS7TA6E.js} +2 -2
  11. package/dist/{chunk-O6U226AI.js → chunk-7FSH3ABG.js} +4 -4
  12. package/dist/{chunk-RPLBWENJ.js → chunk-7HGFEQSD.js} +5 -5
  13. package/dist/{chunk-XZYFB566.js → chunk-7RPHIJT3.js} +4 -4
  14. package/dist/{chunk-WRTA5G57.js → chunk-APY4TUR3.js} +188 -1
  15. package/dist/{chunk-YUO5V75X.js → chunk-BACYVEE6.js} +2 -2
  16. package/dist/{chunk-H2G55ZPG.js → chunk-BG2KGLIA.js} +2 -2
  17. package/dist/{chunk-7JQBECUL.js → chunk-BN5YDZUZ.js} +1205 -326
  18. package/dist/chunk-BUD4JHBZ.js +7017 -0
  19. package/dist/{chunk-TSV3PFU2.js → chunk-DDBE2VLT.js} +2 -2
  20. package/dist/{chunk-WJULIJOU.js → chunk-EF7ZZKA3.js} +3 -3
  21. package/dist/{chunk-HOCODVKL.js → chunk-EUT45AKW.js} +16 -16
  22. package/dist/{chunk-C6RO4LP3.js → chunk-FCAIYPDJ.js} +2 -2
  23. package/dist/{chunk-6FSDDGFZ.js → chunk-FZ557YWE.js} +47478 -52993
  24. package/dist/{chunk-VC6TX2Y2.js → chunk-HPINJGBO.js} +5 -5
  25. package/dist/{chunk-ANI6J75M.js → chunk-IRRR3PWN.js} +7 -7
  26. package/dist/{chunk-S62LLS4I.js → chunk-IVBMHEPK.js} +12 -12
  27. package/dist/{chunk-SU2USXTD.js → chunk-JBEWFFOK.js} +1 -1
  28. package/dist/{chunk-3VZR3ZUY.js → chunk-KEXKZKN4.js} +6 -6
  29. package/dist/{chunk-ODS5QROC.js → chunk-KUFIFCB4.js} +1 -1
  30. package/dist/{chunk-L2DHKP5C.js → chunk-L5WGVYXM.js} +2 -2
  31. package/dist/{chunk-WIN7KHMV.js → chunk-LGIIT2NF.js} +12 -12
  32. package/dist/{chunk-2BKMOJYJ.js → chunk-LP4APBBQ.js} +1 -1
  33. package/dist/{chunk-6PACEIUY.js → chunk-MI6L5CEA.js} +2 -2
  34. package/dist/{chunk-HDBDYGJQ.js → chunk-N4OXAS3A.js} +1 -1
  35. package/dist/{chunk-KSSM6LUI.js → chunk-N6BUYKF3.js} +5 -5
  36. package/dist/{chunk-MWIKZIAI.js → chunk-NVVW3MWJ.js} +9 -9
  37. package/dist/{chunk-VTDI5KP7.js → chunk-O5JHHRFN.js} +19 -19
  38. package/dist/{chunk-F3MHINI6.js → chunk-O6FDXE54.js} +16 -16
  39. package/dist/{chunk-E4JNHQGT.js → chunk-OMCM3MHS.js} +7 -7
  40. package/dist/{chunk-7FLZA2BD.js → chunk-P72Y5ZBH.js} +7 -7
  41. package/dist/{chunk-O2652RWY.js → chunk-PVPJAGWR.js} +2 -2
  42. package/dist/{chunk-UDC7NPQJ.js → chunk-Q3C7TQ2M.js} +3 -3
  43. package/dist/{chunk-B4IE2GAM.js → chunk-Q5E4ZL2R.js} +1 -1
  44. package/dist/{chunk-5NN7JAJ2.js → chunk-QFK2SWD2.js} +7 -7
  45. package/dist/{chunk-SHEU5KLD.js → chunk-RJR7DJJK.js} +3 -3
  46. package/dist/{chunk-4H3WR7IT.js → chunk-RL52LSTV.js} +1 -1
  47. package/dist/{chunk-FGZX4Q7W.js → chunk-RTB6CF7F.js} +15 -15
  48. package/dist/{chunk-PST63OUS.js → chunk-SDDKYMIP.js} +18313 -4317
  49. package/dist/{chunk-QBAIDKF6.js → chunk-TQURLRHD.js} +1 -1
  50. package/dist/{chunk-3SSNDIQT.js → chunk-TSAUBRRU.js} +1 -1
  51. package/dist/{chunk-ER2ES2RH.js → chunk-U3TEC52G.js} +1 -1
  52. package/dist/{chunk-XY53EFK3.js → chunk-U5KGV63C.js} +1 -1
  53. package/dist/{chunk-WYPVD3HW.js → chunk-UVRULOOP.js} +10 -10
  54. package/dist/{chunk-4VPX67B7.js → chunk-VOATSLRG.js} +3 -1
  55. package/dist/{chunk-TGKIV3F4.js → chunk-W7LEYYFH.js} +18 -18
  56. package/dist/{chunk-T6NRMNLQ.js → chunk-WC5HHPPM.js} +1 -1
  57. package/dist/{chunk-YQFENES6.js → chunk-WG62RHZ2.js} +3 -3
  58. package/dist/{chunk-XE2E2KBP.js → chunk-WIQEPAUG.js} +10 -10
  59. package/dist/{chunk-DTGL5P2V.js → chunk-XM27UVWN.js} +3 -3
  60. package/dist/{chunk-3JJN36GV.js → chunk-XTUSLUQ7.js} +16 -16
  61. package/dist/{chunk-OAEV22IW.js → chunk-Z6AY5VOZ.js} +6 -6
  62. package/dist/{chunk-FZ5N6WXF.js → chunk-ZGWXLG5X.js} +18 -18
  63. package/dist/{chunk-6TAN6WG6.js → chunk-ZUWBEV2O.js} +1 -1
  64. package/dist/{chunk-OANTMDXI.js → chunk-ZVH6EB7S.js} +1 -1
  65. package/dist/daemon.js +65 -31
  66. package/dist/extension-assets/atlassian/docs/confluence-raw.md +31 -0
  67. package/dist/extension-assets/atlassian/docs/confluence-writing.md +101 -0
  68. package/dist/extension-assets/atlassian/docs/jira-raw.md +16 -0
  69. package/dist/extension-assets/atlassian/docs/jira-workflows.md +77 -0
  70. package/dist/extension-assets/atlassian/docs/project-knowledge.md +25 -0
  71. package/dist/extension-assets/atlassian/docs/storage.md +58 -0
  72. package/dist/extension-assets/atlassian/icon.svg +20 -0
  73. package/dist/extension-assets/diagram/docs/diagrams.md +12 -0
  74. package/dist/extension-assets/imagegen/docs/imagegen.md +17 -0
  75. package/dist/extension-assets/web-search/icon.svg +1 -0
  76. package/dist/git-isolated-reader-helper.js +1 -1
  77. package/dist/html-to-markdown.worker.js +6 -7028
  78. package/dist/main.js +583 -169
  79. package/dist/preload.cjs +45 -2
  80. package/dist/quick-script-docs/runtime/documents.md +54 -0
  81. package/dist/quick-script-docs/runtime/files.md +11 -0
  82. package/dist/quick-script-docs/runtime/images.md +10 -0
  83. package/dist/sandbox-libraries/docx.LICENSE +21 -0
  84. package/dist/sandbox-libraries/docx.min.js +9 -0
  85. package/dist/sandbox-libraries/jszip.LICENSE +651 -0
  86. package/dist/sandbox-libraries/jszip.min.js +13 -0
  87. package/dist/sandbox-libraries/mammoth.LICENSE +22 -0
  88. package/dist/sandbox-libraries/mammoth.browser.min.js +13 -0
  89. package/dist/sandbox-libraries/papaparse.LICENSE +20 -0
  90. package/dist/sandbox-libraries/papaparse.min.js +7 -0
  91. package/dist/sandbox-libraries/pptxgen.bundle.js +96 -0
  92. package/dist/sandbox-libraries/pptxgenjs.LICENSE +21 -0
  93. package/dist/sandbox-libraries/xlsx.LICENSE +201 -0
  94. package/dist/sandbox-libraries/xlsx.full.min.js +24 -0
  95. package/dist/web/assets/{AsyncBashCenterHost-BvXKoCVr.js → AsyncBashCenterHost-D2Sy43Ub.js} +1 -1
  96. package/dist/web/assets/ConversationListItem-DvxCcAYm.js +3 -0
  97. package/dist/web/assets/ConversationsWorkbenchPanel-YeNq9LRn.js +1 -0
  98. package/dist/web/assets/DiscoverCenterHost-B6K-QnBF.js +1 -0
  99. package/dist/web/assets/{FileCenterHost-C_7XZAFZ.js → FileCenterHost-Dlk53K5G.js} +1 -1
  100. package/dist/web/assets/FilesWorkbenchPanel-PeCu12oU.js +12 -0
  101. package/dist/web/assets/{GitDiffCenterHost-Cr7lqGI_.js → GitDiffCenterHost-3_Ea0RyG.js} +1 -1
  102. package/dist/web/assets/{GitWorkbenchPanel-BFbwUgIN.js → GitWorkbenchPanel-CYvCkOAW.js} +1 -1
  103. package/dist/web/assets/{LaunchCenterHost-CIu7bcoZ.js → LaunchCenterHost-CP773N_3.js} +1 -1
  104. package/dist/web/assets/LaunchConfigurationNotice-CtmZ1uIQ.js +1 -0
  105. package/dist/web/assets/{LaunchesWorkbenchPanel-BqzJvsrj.js → LaunchesWorkbenchPanel-DP3yVfkO.js} +1 -1
  106. package/dist/web/assets/LogsCenterHost-BFP0doQf.js +1 -0
  107. package/dist/web/assets/{MermaidCenterHost-DVsZB8nB.js → MermaidCenterHost-Bjl6Dvrq.js} +1 -1
  108. package/dist/web/assets/MobileFilesBody-CDp21MGZ.js +1 -0
  109. package/dist/web/assets/{MobileFilesHost-D843vkDF.js → MobileFilesHost-DlJI_yau.js} +1 -1
  110. package/dist/web/assets/MobileLaunchOutputHost-y3TehLWF.js +1 -0
  111. package/dist/web/assets/MobileLaunchesHost-CBNtDTrs.js +2 -0
  112. package/dist/web/assets/MobileLogsHost-BSb2lydK.js +1 -0
  113. package/dist/web/assets/MobileNoteEditorHost-7yW7hIC2.js +1 -0
  114. package/dist/web/assets/{MobileNotesHost-meLV39Yw.js → MobileNotesHost-CvDHzpAh.js} +1 -1
  115. package/dist/web/assets/{MobileProjectSettingsHost-A49Fdn54.js → MobileProjectSettingsHost-CjtPfyKT.js} +1 -1
  116. package/dist/web/assets/{MobileProjectSettingsPageHost-BXpUqS_N.js → MobileProjectSettingsPageHost-j_7N-B9L.js} +1 -1
  117. package/dist/web/assets/{MobileSettingsHost-DPKPajzI.js → MobileSettingsHost-DXIKNF01.js} +1 -1
  118. package/dist/web/assets/{MobileSettingsPageHost-izNWGN0i.js → MobileSettingsPageHost-CEzo7J9p.js} +1 -1
  119. package/dist/web/assets/MobileSettingsPageScreen-99wMLRsn.js +1 -0
  120. package/dist/web/assets/NotesWorkbenchPanel-DqTwXBBv.js +1 -0
  121. package/dist/web/assets/ProjectSettingsCenterHost-D96cL0uH.js +1 -0
  122. package/dist/web/assets/{PullRequestCenterHost-BYkWxXQe.js → PullRequestCenterHost-DY0yPDK2.js} +1 -1
  123. package/dist/web/assets/PullRequestsWorkbenchPanel-D07LE8vJ.js +1 -0
  124. package/dist/web/assets/{SearchWorkbenchPanel-DaC0smfe.js → SearchWorkbenchPanel-D2_3iXo8.js} +1 -1
  125. package/dist/web/assets/SettingsCenter-BQWc24di.js +1 -0
  126. package/dist/web/assets/SettingsCenterHost-BvgNfeZN.js +1 -0
  127. package/dist/web/assets/{SystemPromptCenterHost-B1hfsfAn.js → SystemPromptCenterHost-BLHkB7lp.js} +1 -1
  128. package/dist/web/assets/activity-notices-C9aphS1s.js +1 -0
  129. package/dist/web/assets/adapters-DNU88KT0.js +1 -0
  130. package/dist/web/assets/agent-profiles.svelte-DgI8wSS2.js +1 -0
  131. package/dist/web/assets/api-CHNbLvvY.js +1 -0
  132. package/dist/web/assets/center-tabs.svelte-CyhCD_6b.js +1 -0
  133. package/dist/web/assets/channel-6wGoOwGx.js +57 -0
  134. package/dist/web/assets/circle-question-mark-C7NgqbLL.js +1 -0
  135. package/dist/web/assets/code-DJR0pnqV.js +7 -0
  136. package/dist/web/assets/{confirm-dialog-Bw_IxcZD.js → confirm-dialog-BDjzMiC4.js} +1 -1
  137. package/dist/web/assets/{conversation-connection-3GxIuhbS.js → conversation-connection-mLNyfV2d.js} +1 -1
  138. package/dist/web/assets/dialog-CkRcLEJT.js +1 -0
  139. package/dist/web/assets/discover-Dh4m7djO.js +4 -0
  140. package/dist/web/assets/dist-DSApqEag.js +1 -0
  141. package/dist/web/assets/file-tabs.svelte-cX3MMyG6.js +2 -0
  142. package/dist/web/assets/filesystem-BbIXrkGB.js +1 -0
  143. package/dist/web/assets/{git-store.svelte-CM5k7yRU.js → git-store.svelte-D3uwRVnj.js} +1 -1
  144. package/dist/web/assets/{git.api-D2CfUXZW.js → git.api-CTu-tG8A.js} +1 -1
  145. package/dist/web/assets/index-BrxjAwg0.js +46 -0
  146. package/dist/web/assets/index-yEOHI1Z7.css +1 -0
  147. package/dist/web/assets/launches-CC4gLnSa.js +5 -0
  148. package/dist/web/assets/{launches.api-BZxyWF8t.js → launches.api-CaotSs6l.js} +1 -1
  149. package/dist/web/assets/launches.svelte-DDA5J-RZ.js +2 -0
  150. package/dist/web/assets/{message-square-CqLxHJuW.js → list-checks-zV9Dp7Cu.js} +1 -1
  151. package/dist/web/assets/{logs.api-Coi8HJuy.js → logs.api-DMmVlkSz.js} +1 -1
  152. package/dist/web/assets/{maintenance-state.svelte-CDO9i4dk.js → maintenance-state.svelte-l9v7Hg3i.js} +2 -2
  153. package/dist/web/assets/notify.svelte-BTEXJZ8P.js +1 -0
  154. package/dist/web/assets/popover-panel-C-weKOk3.js +5 -0
  155. package/dist/web/assets/pr-view-loader.svelte-C0NClMS6.js +1 -0
  156. package/dist/web/assets/progress-CKEsTSOk.js +1 -0
  157. package/dist/web/assets/scratch-notes-state.svelte-B_rY_-9q.js +1 -0
  158. package/dist/web/assets/{scratch-notes.api-Cbvag3bv.js → scratch-notes.api-B2gOOK6Z.js} +1 -1
  159. package/dist/web/assets/search-input-CEr0SmAB.js +1 -0
  160. package/dist/web/assets/settings-2-CWd8Y06n.js +1 -0
  161. package/dist/web/assets/settings-CRmC19nG.js +1 -0
  162. package/dist/web/assets/settings-CXoAzSmm.js +1 -0
  163. package/dist/web/assets/settings-actions.svelte-BB6u_lQ0.js +1 -0
  164. package/dist/web/assets/settings-page-controllers.svelte-al78EDTL.js +29 -0
  165. package/dist/web/assets/sheet-content-DauQ7hPL.js +1 -0
  166. package/dist/web/assets/shell-CYbWnH52.js +4 -0
  167. package/dist/web/assets/shell-layout.svelte-CmEWk428.js +2 -0
  168. package/dist/web/assets/textarea-BEZ65po_.js +1 -0
  169. package/dist/web/assets/views-BumCSQ3W.js +2 -0
  170. package/dist/web/assets/{workbench-connection-gGGv4o8i.js → workbench-connection-CGHdORw3.js} +1 -1
  171. package/dist/web/assets/{workspace-Cc47dGjw.js → workspace-CW738NJG.js} +1 -1
  172. package/dist/web/assets/{workspace-actions.svelte-B3oum_9S.js → workspace-actions.svelte-DL9xv7lJ.js} +1 -1
  173. package/dist/web/assets/workspace-selectors.svelte-BRJvPEBh.js +105 -0
  174. package/dist/web/index.html +142 -83
  175. package/dist/web/sw.js +1 -1
  176. package/dist/worker.js +14 -14
  177. package/package.json +7 -7
  178. package/dist/guides/confluence/SKILL.md +0 -36
  179. package/dist/guides/jira/SKILL.md +0 -34
  180. package/dist/web/assets/ConversationListItem-Caz2KiJH.js +0 -3
  181. package/dist/web/assets/ConversationsWorkbenchPanel-CIfK_e3I.js +0 -1
  182. package/dist/web/assets/DiscoverCenterHost-Ep8EN9iJ.js +0 -1
  183. package/dist/web/assets/FilesWorkbenchPanel-CtXo7ywG.js +0 -12
  184. package/dist/web/assets/LaunchConfigurationNotice-CJjWkMhv.js +0 -1
  185. package/dist/web/assets/LogsCenterHost-BI1fSxFW.js +0 -1
  186. package/dist/web/assets/MobileFilesBody-BJMoaP9I.js +0 -1
  187. package/dist/web/assets/MobileLaunchOutputHost-vpltMcar.js +0 -1
  188. package/dist/web/assets/MobileLaunchesHost-CdDrKASg.js +0 -2
  189. package/dist/web/assets/MobileLogsHost-qK7N-C1y.js +0 -1
  190. package/dist/web/assets/MobileNoteEditorHost-Bg1N8o54.js +0 -1
  191. package/dist/web/assets/MobileSettingsPageScreen-DWMg4fDo.js +0 -1
  192. package/dist/web/assets/NotesWorkbenchPanel-Bf6rySTL.js +0 -1
  193. package/dist/web/assets/ProjectSettingsCenterHost-DHeb274m.js +0 -1
  194. package/dist/web/assets/PullRequestsWorkbenchPanel-ZvGbi1Cr.js +0 -1
  195. package/dist/web/assets/SettingsCenter-C_NLBsi6.js +0 -1
  196. package/dist/web/assets/SettingsCenterHost-jP8MULEj.js +0 -1
  197. package/dist/web/assets/adapters-DxJoo6Za.js +0 -1
  198. package/dist/web/assets/agent-profiles.svelte-D5YHPc90.js +0 -1
  199. package/dist/web/assets/api-eaGLre0q.js +0 -1
  200. package/dist/web/assets/center-tabs.svelte-JJGozG_H.js +0 -1
  201. package/dist/web/assets/channel-B503YLZR.js +0 -57
  202. package/dist/web/assets/chevron-left-DPEFG6UJ.js +0 -1
  203. package/dist/web/assets/circle-alert-Cp2l2jcj.js +0 -5
  204. package/dist/web/assets/clock-Db6f9HtS.js +0 -1
  205. package/dist/web/assets/code-BRQC0Tpn.js +0 -7
  206. package/dist/web/assets/dialog-DU4gXD1J.js +0 -1
  207. package/dist/web/assets/discover-B-aZ504j.js +0 -4
  208. package/dist/web/assets/dist-B_NFPhKV.js +0 -1
  209. package/dist/web/assets/file-tabs.svelte-DKtVVVCq.js +0 -2
  210. package/dist/web/assets/filesystem-ReGivxAC.js +0 -1
  211. package/dist/web/assets/index-DIQuyMVT.css +0 -1
  212. package/dist/web/assets/index-TZ1KAAsX.js +0 -48
  213. package/dist/web/assets/launches-DiAl56ED.js +0 -5
  214. package/dist/web/assets/launches.svelte-BVs1pAhl.js +0 -2
  215. package/dist/web/assets/notebook-pen-lVsLYSe4.js +0 -1
  216. package/dist/web/assets/notify.svelte-BKVBraTJ.js +0 -1
  217. package/dist/web/assets/pencil-BrlypebI.js +0 -1
  218. package/dist/web/assets/pr-view-loader.svelte-DcIwqDJV.js +0 -1
  219. package/dist/web/assets/progress-DBCSpVPn.js +0 -1
  220. package/dist/web/assets/scratch-notes-state.svelte-Br_WiMEp.js +0 -1
  221. package/dist/web/assets/search-input-zU4WCZiz.js +0 -1
  222. package/dist/web/assets/settings-2-8MSBUGAl.js +0 -1
  223. package/dist/web/assets/settings-9LBrw4Nv.js +0 -1
  224. package/dist/web/assets/settings-B7uXsflY.js +0 -1
  225. package/dist/web/assets/settings-actions.svelte-B8psX3cj.js +0 -1
  226. package/dist/web/assets/settings-page-controllers.svelte-D_ydJF8u.js +0 -30
  227. package/dist/web/assets/shell-DB5Db5-E.js +0 -4
  228. package/dist/web/assets/shell-layout.svelte-OoLFwzzJ.js +0 -2
  229. package/dist/web/assets/textarea-CeoFJ0-t.js +0 -1
  230. package/dist/web/assets/views-ByPCKDiZ.js +0 -2
  231. package/dist/web/assets/workspace-selectors.svelte-DLUlSgEE.js +0 -131
  232. /package/dist/{html-to-markdown.worker.js.LEGAL.txt → chunk-BUD4JHBZ.js.LEGAL.txt} +0 -0
  233. /package/dist/{chunk-3VZR3ZUY.js.LEGAL.txt → chunk-KEXKZKN4.js.LEGAL.txt} +0 -0
  234. /package/dist/{chunk-PST63OUS.js.LEGAL.txt → chunk-SDDKYMIP.js.LEGAL.txt} +0 -0
package/dist/daemon.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  writeCrashReportSync,
68
68
  writeDevicesFile,
69
69
  writeNodeDiagnosticReport
70
- } from "./chunk-PST63OUS.js";
70
+ } from "./chunk-SDDKYMIP.js";
71
71
  import {
72
72
  firstEnvValue,
73
73
  isLoopbackHost,
@@ -77,12 +77,13 @@ import {
77
77
  mergeNoProxy,
78
78
  mergeNoProxySources
79
79
  } from "./chunk-QF5GNBAB.js";
80
+ import "./chunk-BUD4JHBZ.js";
80
81
  import "./chunk-RLN3MFAK.js";
81
82
  import {
82
83
  discardFailedItems,
83
84
  readMigrationFailureReport,
84
85
  rollbackFailedMigration
85
- } from "./chunk-7JQBECUL.js";
86
+ } from "./chunk-BN5YDZUZ.js";
86
87
  import {
87
88
  MIGRATION_ROLLED_BACK,
88
89
  MissingAssetError,
@@ -101,22 +102,22 @@ import {
101
102
  storagePaths,
102
103
  transferConversationEvent,
103
104
  transferredConversationEventSchema
104
- } from "./chunk-6FSDDGFZ.js";
105
- import "./chunk-BNVMNV4O.js";
106
- import "./chunk-SHEU5KLD.js";
107
- import "./chunk-4H3WR7IT.js";
108
- import "./chunk-OANTMDXI.js";
109
- import "./chunk-C6RO4LP3.js";
105
+ } from "./chunk-FZ557YWE.js";
106
+ import "./chunk-62DQXVPO.js";
107
+ import "./chunk-RJR7DJJK.js";
108
+ import "./chunk-RL52LSTV.js";
109
+ import "./chunk-ZVH6EB7S.js";
110
+ import "./chunk-FCAIYPDJ.js";
110
111
  import {
111
112
  configureManagedProcessRuntime,
112
113
  initializeManagedProcessHost
113
- } from "./chunk-WRTA5G57.js";
114
- import "./chunk-SU2USXTD.js";
115
- import "./chunk-H2G55ZPG.js";
116
- import "./chunk-TGKIV3F4.js";
117
- import "./chunk-TSV3PFU2.js";
118
- import "./chunk-UDC7NPQJ.js";
119
- import "./chunk-XY53EFK3.js";
114
+ } from "./chunk-APY4TUR3.js";
115
+ import "./chunk-JBEWFFOK.js";
116
+ import "./chunk-BG2KGLIA.js";
117
+ import "./chunk-W7LEYYFH.js";
118
+ import "./chunk-DDBE2VLT.js";
119
+ import "./chunk-Q3C7TQ2M.js";
120
+ import "./chunk-U5KGV63C.js";
120
121
  import {
121
122
  __toESM
122
123
  } from "./chunk-CWESUMYQ.js";
@@ -127,10 +128,10 @@ import { createServer as createHttpsServer } from "node:https";
127
128
  import { networkInterfaces } from "node:os";
128
129
  import { dirname, join as join2 } from "node:path";
129
130
 
130
- // node_modules/.pnpm/@hono+node-server@2.1.5_hono@4.13.16/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs
131
+ // node_modules/.pnpm/@hono+node-server@2.1.8_hono@4.13.16/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs
131
132
  var X_ALREADY_SENT = "x-hono-already-sent";
132
133
 
133
- // node_modules/.pnpm/@hono+node-server@2.1.5_hono@4.13.16/node_modules/@hono/node-server/dist/index.mjs
134
+ // node_modules/.pnpm/@hono+node-server@2.1.8_hono@4.13.16/node_modules/@hono/node-server/dist/index.mjs
134
135
  import { STATUS_CODES, ServerResponse, createServer } from "node:http";
135
136
  import { Http2ServerRequest, constants } from "node:http2";
136
137
  import { Readable } from "node:stream";
@@ -156,7 +157,7 @@ var defineWebSocketHelper = (handler) => {
156
157
  });
157
158
  };
158
159
 
159
- // node_modules/.pnpm/@hono+node-server@2.1.5_hono@4.13.16/node_modules/@hono/node-server/dist/index.mjs
160
+ // node_modules/.pnpm/@hono+node-server@2.1.8_hono@4.13.16/node_modules/@hono/node-server/dist/index.mjs
160
161
  var RequestError = class extends Error {
161
162
  constructor(message, options) {
162
163
  super(message, options);
@@ -314,16 +315,27 @@ var newHeadersFromIncoming = (incoming) => globalThis.Headers === GlobalHeaders
314
315
  var reValidRequestUrl = /^\/[!#$&-;=?-\[\]_a-z~]*$/;
315
316
  var reDotSegment = /\/\.\.?(?:[/?#]|$)/;
316
317
  var reValidHost = /^[a-z0-9._-]+(?::(?:[1-5]\d{3,4}|[6-9]\d{3}))?$/;
318
+ var validateRequestTarget = (target) => {
319
+ const backslash = target.indexOf("\\");
320
+ if (backslash !== -1) {
321
+ const query = target.indexOf("?");
322
+ if (query === -1 || backslash < query) throw new RequestError("Backslash in request path");
323
+ }
324
+ };
317
325
  var buildUrl = (scheme, host, incomingUrl) => {
318
326
  const url = `${scheme}://${host}${incomingUrl}`;
319
327
  if (!reValidHost.test(host)) {
328
+ validateRequestTarget(incomingUrl);
320
329
  const urlObj = new URL(url);
321
330
  if (urlObj.hostname.length !== host.length && urlObj.hostname !== (host.includes(":") ? host.replace(/:\d+$/, "") : host).toLowerCase()) throw new RequestError("Invalid host header");
322
331
  return urlObj.href;
323
332
  } else if (incomingUrl.length === 0) return url + "/";
324
333
  else {
325
334
  if (incomingUrl.charCodeAt(0) !== 47) throw new RequestError("Invalid URL");
326
- if (!reValidRequestUrl.test(incomingUrl) || reDotSegment.test(incomingUrl)) return new URL(url).href;
335
+ if (!reValidRequestUrl.test(incomingUrl) || reDotSegment.test(incomingUrl)) {
336
+ validateRequestTarget(incomingUrl);
337
+ return new URL(url).href;
338
+ }
327
339
  return url;
328
340
  }
329
341
  };
@@ -679,6 +691,7 @@ Object.defineProperty(requestPrototype, "signal", { get() {
679
691
  "cache",
680
692
  "credentials",
681
693
  "destination",
694
+ "duplex",
682
695
  "integrity",
683
696
  "mode",
684
697
  "redirect",
@@ -736,6 +749,7 @@ var newRequest = (incoming, defaultHostname) => {
736
749
  if (incomingUrl[0] !== "/" && (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) {
737
750
  if (incoming instanceof Http2ServerRequest) throw new RequestError("Absolute URL for :path is not allowed in HTTP/2");
738
751
  try {
752
+ validateRequestTarget(incomingUrl);
739
753
  req[urlKey] = new URL(incomingUrl).href;
740
754
  } catch (e) {
741
755
  throw new RequestError("Invalid absolute URL", { cause: e });
@@ -899,6 +913,11 @@ function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromi
899
913
  reader.cancel(error).catch(() => {
900
914
  });
901
915
  };
916
+ const stream = writable.stream;
917
+ if (writable.destroyed || stream?.closed || stream?.destroyed) {
918
+ cancel();
919
+ return reader.closed;
920
+ }
902
921
  writable.on("close", cancel);
903
922
  writable.on("error", cancel);
904
923
  (currentReadPromise ?? reader.read()).then(flow, handleStreamError);
@@ -916,7 +935,7 @@ function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromi
916
935
  try {
917
936
  if (done) writable.end();
918
937
  else if (!writable.write(value)) writable.once("drain", onDrain);
919
- else return reader.read().then(flow, handleStreamError);
938
+ else reader.read().then(flow, handleStreamError);
920
939
  } catch (e) {
921
940
  handleStreamError(e);
922
941
  }
@@ -924,7 +943,11 @@ function writeFromReadableStreamDefaultReader(reader, writable, currentReadPromi
924
943
  }
925
944
  function writeFromReadableStream(stream, writable) {
926
945
  if (stream.locked) throw new TypeError("ReadableStream is locked.");
927
- else if (writable.destroyed) return;
946
+ else if (writable.destroyed) {
947
+ stream.cancel().catch(() => {
948
+ });
949
+ return;
950
+ }
928
951
  return writeFromReadableStreamDefaultReader(stream.getReader(), writable);
929
952
  }
930
953
  var buildOutgoingHttpHeaders = (headers, defaultContentType2) => {
@@ -1116,10 +1139,7 @@ var responseViaResponseObject = async (res, outgoing, options = {}) => {
1116
1139
  let maxReadCount = 2;
1117
1140
  for (let i = 0; i < maxReadCount; i++) {
1118
1141
  currentReadPromise ||= reader.read();
1119
- const chunk = await readWithoutBlocking(currentReadPromise).catch((e) => {
1120
- console.error(e);
1121
- done = true;
1122
- });
1142
+ const chunk = await readWithoutBlocking(currentReadPromise);
1123
1143
  if (!chunk) {
1124
1144
  if (i === 1) {
1125
1145
  await new Promise((resolve) => setTimeout(resolve));
@@ -1272,6 +1292,7 @@ var appendResponseHeaders = (headers, responseHeaders) => {
1272
1292
  });
1273
1293
  };
1274
1294
  var rejectUpgradeRequest = (socket, status, responseHeaders) => {
1295
+ if (socket.destroyed) return;
1275
1296
  const responseLines = ["Connection: close", "Content-Length: 0"];
1276
1297
  appendResponseHeaders(responseLines, responseHeaders);
1277
1298
  socket.end(`HTTP/1.1 ${status.toString()} ${STATUS_CODES[status] ?? ""}\r
@@ -1281,7 +1302,12 @@ ${responseLines.join("\r\n")}\r
1281
1302
  };
1282
1303
  var createUpgradeRequest = (request) => {
1283
1304
  const protocol = request.socket.encrypted ? "https" : "http";
1284
- const url = new URL(request.url ?? "/", `${protocol}://${request.headers.host ?? "localhost"}`);
1305
+ const incomingUrl = request.url ?? "/";
1306
+ let url;
1307
+ if (incomingUrl[0] !== "/" && (incomingUrl.startsWith("http://") || incomingUrl.startsWith("https://"))) {
1308
+ validateRequestTarget(incomingUrl);
1309
+ url = new URL(incomingUrl).href;
1310
+ } else url = buildUrl(protocol, request.headers.host ?? "localhost", incomingUrl);
1285
1311
  const headers = new Headers();
1286
1312
  for (const key in request.headers) {
1287
1313
  const value = request.headers[key];
@@ -1318,6 +1344,11 @@ var setupWebSocket = (options) => {
1318
1344
  };
1319
1345
  server.on("upgrade", async (request, socket, head) => {
1320
1346
  if (request.headers.upgrade?.toLowerCase() !== "websocket") return;
1347
+ const ignoreSocketError = () => {
1348
+ };
1349
+ const reclaimWaiterOnClose = () => rejectWaiter(request);
1350
+ socket.on("error", ignoreSocketError);
1351
+ socket.once("close", reclaimWaiterOnClose);
1321
1352
  const env = {
1322
1353
  incoming: request,
1323
1354
  outgoing: void 0,
@@ -1332,8 +1363,12 @@ var setupWebSocket = (options) => {
1332
1363
  status = response.status;
1333
1364
  responseHeaders = response.headers;
1334
1365
  }
1335
- } catch {
1336
- if (server.listenerCount("upgrade") === 1) rejectUpgradeRequest(socket, 500);
1366
+ } catch (error) {
1367
+ if (server.listenerCount("upgrade") === 1) rejectUpgradeRequest(socket, error instanceof RequestError ? 400 : 500);
1368
+ return;
1369
+ }
1370
+ if (socket.destroyed) {
1371
+ rejectWaiter(request);
1337
1372
  return;
1338
1373
  }
1339
1374
  const waiter = waiterMap.get(request);
@@ -1345,12 +1380,11 @@ var setupWebSocket = (options) => {
1345
1380
  const addResponseHeaders = (headers) => {
1346
1381
  appendResponseHeaders(headers, responseHeaders);
1347
1382
  };
1348
- const reclaimWaiterOnClose = () => rejectWaiter(request);
1349
- socket.once("close", reclaimWaiterOnClose);
1350
1383
  wss.on("headers", addResponseHeaders);
1351
1384
  try {
1352
1385
  wss.handleUpgrade(request, socket, head, (ws) => {
1353
1386
  socket.off("close", reclaimWaiterOnClose);
1387
+ socket.off("error", ignoreSocketError);
1354
1388
  wss.emit("connection", ws, request);
1355
1389
  });
1356
1390
  } finally {
@@ -3576,7 +3610,7 @@ function createConversationProtocolSession(ws, state, onDispose) {
3576
3610
  agentBrowserSkills: platform.agentBrowserSkills.skills
3577
3611
  });
3578
3612
  },
3579
- "tool.list": () => ({ tools: allToolDescriptors }),
3613
+ "tool.list": () => ({ tools: allToolDescriptors() }),
3580
3614
  "completion.slash.list": () => ({ items: slashCommandCompletionItems })
3581
3615
  };
3582
3616
  const session = new ProtocolServerSession({
@@ -0,0 +1,31 @@
1
+ # Confluence requests for what has no method
2
+
3
+ `confluence.request(method, path, body?, query?)`: the path is the full REST path (`/wiki/api/v2/…` or `/wiki/rest/api/…`); `query` is `{ name: value | value[] }`, the 4th argument. Bodies: `{ representation: "storage", value: storageXhtml }`.
4
+
5
+ Typed methods cover pages, comments (footer and inline), labels and attachments; use raw only for the rest:
6
+
7
+ | Task | Request |
8
+ | -------------------- | -------------------------------------------------------------------------------------------------------------------- |
9
+ | Page restrictions | `GET /wiki/rest/api/content/{id}/restriction/byOperation` |
10
+ | Rename an attachment | `PUT /wiki/rest/api/content/{attachmentId}` `{ id, type: "attachment", title: newName, version: { number: n + 1 } }` |
11
+ | Page versions | `GET /wiki/api/v2/pages/{id}/versions` |
12
+
13
+ ## Restrictions recipe
14
+
15
+ Operations are `read` and `update`; users are addressed by `accountId` (find it with `atlassian.users.search` or from a comment `author`).
16
+
17
+ ```ts
18
+ const id = "123";
19
+ const base = `/wiki/rest/api/content/${id}/restriction/byOperation`;
20
+ const current = await confluence.request("GET", base); // who is restricted now
21
+ await confluence.request("PUT", `${base}/update/user`, undefined, {
22
+ accountId: "…",
23
+ }); // add a user
24
+ await confluence.request("DELETE", `${base}/update/user`, undefined, {
25
+ accountId: "…",
26
+ }); // remove a user
27
+ await confluence.request("PUT", `${base}/read/byGroupId/${groupId}`); // add a group
28
+ await confluence.request("DELETE", `${base}/update`); // clear_operation: lift every `update` restriction
29
+ ```
30
+
31
+ A restricted operation with no subjects left is unrestricted again.
@@ -0,0 +1,101 @@
1
+ # Writing Confluence pages people can read
2
+
3
+ A page body is RichText (`sdk.docs("storage/builders")`): Markdown for prose, `storage.*` builders for structure, arrays to combine. Write with `confluence.pages.create/update`. Every write is linted.
4
+
5
+ ## Editing an existing page
6
+
7
+ `const page = await confluence.pages.get({ id, body: "storage" })` (the default Markdown body is a read-only view), then pass `version: page.version` to `pages.update`.
8
+
9
+ | Change | How |
10
+ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
11
+ | Append / prepend | `body: [page.body, "## New\n\ntext"]` |
12
+ | Rewrite one section | `body: storage.replaceSection(page.body, "Risks", "- new risk")` |
13
+ | Larger or surgical edits | `const d = await confluence.pages.download({ id })`, edit `d.file` with the Edit tool or `files.edit`, then `pages.update({ id, version: d.version, bodyFile: d.file })` |
14
+
15
+ `body` and `bodyFile` are exclusive. Rewrites that drop macros, layouts, images or mentions throw unless `allowRemoving: true`; add-on macros (drawio, gliffy, ...) survive only if their storage stays in the body. Never rebuild a page from the Markdown view; use an array, not `page.body + "..."`.
16
+
17
+ ## Plan first
18
+
19
+ Outline first: one-line purpose, 3-7 sections, what goes in tables, Jira macros, diagrams. Gather data (and count empty lists) before assembling the parts array.
20
+
21
+ ## Structure
22
+
23
+ - The page title is a separate field. Sections start at `#` (H1), subsections at `##`/`###`; never skip a level and do not repeat the title as a first heading.
24
+ - Open with a 2-4 line overview (or one `info` panel) on what the page is and its status, without an "Overview" heading.
25
+ - Only long pages (about 600+ words or 6+ sections) get `storage.toc()` right after the overview; short pages get none.
26
+ - Short paragraphs (1-3 sentences). Put raw output, reference material and long tails in `storage.expand`; code in `storage.code` with a language.
27
+ - Pluralise in code ("1 issue", "3 issues"), never "issue(s)". Keep inline items (dates, lozenges, links) in one `storage.p([...])` array: `storage.p(["Due ", storage.date(d), " ", storage.status("Open")])`.
28
+
29
+ ## Tables
30
+
31
+ Use a table (Markdown for plain text cells, `storage.table` for lozenges, links, widths or merged cells) for lists with several attributes. Narrow columns for key, type, status and date, wide for text. Set `columns: [{ key, title, width }]` yourself (px; content width 760, `layout: "wide"` 960) or let the linter compute them; a `SCRUM-123` key needs about 100 px. Show statuses with `storage.status`.
32
+
33
+ ## Panels
34
+
35
+ | Type | Colour | Use for |
36
+ | ----------------------- | ------ | ----------------------------------- |
37
+ | `info` | blue | context, the page overview |
38
+ | `success` (alias `tip`) | green | good news: done, on track |
39
+ | `warning` | yellow | risks, things to watch |
40
+ | `error` | red | blocking problems and failures only |
41
+ | `note` | purple | side remarks, definitions |
42
+
43
+ No neutral information in `warning`/`error`; none directly under a same-titled heading, stacked, or holding long content. An overview panel plus a few others is plenty.
44
+
45
+ ## Jira content
46
+
47
+ For a list of issues use one `storage.jiraIssues(jql, { columns })` macro (`["key","summary","status","assignee"]`) instead of a `storage.jiraIssue` per row or a heading per issue. Use `storage.jiraIssue(key)` inline for a single reference. A macro whose JQL matches nothing renders a bare header row: count first (reuse search results) and write a sentence ("No open blockers.") for sections that may be empty.
48
+
49
+ ## Images and diagrams
50
+
51
+ Attach PNG or JPEG files via `attachments` (GIF/WebP are converted to PNG, SVG is rejected), then reference them with `storage.image(filename)`; the linter sets the width from the real size, capped at 760 px, so aim for about 760 px natural width. Add `alt`/`caption` when the image carries information. An image scaled below 80% (a 1100 px diagram shown at 760) gets a warning because its text turns small: shrink or simplify the source instead (diagrams: `sdk.docs("diagram/render")`). Use `storage.layout` sparingly (two columns, never nested).
52
+
53
+ ## The linter
54
+
55
+ `pages.create/update` return `fixes` (applied) and `warnings` (not applied); the result footer prints both. Fix the cause of warnings with `pages.update`.
56
+
57
+ - **Rejected before any request:** malformed XML, with line and element (`Closing tag </div> at line 2 does not match <p>`). Plain strings are Markdown or literal text; use `storage.escape` only inside `storage.raw`.
58
+ - **Fixed automatically:** headings promoted so the top level is H1; a leading H1 equal to the title removed; a TOC for long pages (`toc: false` opts out); computed column widths and image widths; loose inline content under a panel, expand, layout cell or the page root wrapped in `<p>`; Jira list macros given `data-layout="default"` (760 px).
59
+ - **Warnings:** an explicit column width too narrow for its longest word (`Column "Key" is 90px; "SCRUM-4" needs about 100px`: widen it or drop the width); images scaled below 80%; skipped heading levels; SVG/WebP images; images of unknown size; a panel repeating the heading above it; a heading that only repeats an embedded issue key; empty sections; a body referencing an attachment that is neither passed in `attachments` nor already on the page (existing attachments keep their real size).
60
+
61
+ ## Worked example
62
+
63
+ ```ts
64
+ const issues = await jira.issues.search({
65
+ jql: 'project = APP AND fixVersion = "2.1" ORDER BY status',
66
+ fields: ["summary", "status", "assignee"],
67
+ });
68
+ const open = issues.filter((i) => i.statusCategory !== "Done");
69
+ const flow = await diagram.render({
70
+ type: "mermaid",
71
+ source: "flowchart TB\n A[Freeze] --> B[QA] --> C[Release]",
72
+ name: "release-flow.png",
73
+ });
74
+ const body = [
75
+ storage.panel(
76
+ "info",
77
+ `${issues.length} issues in 2.1; ${open.length} still open.`,
78
+ ),
79
+ storage.toc(),
80
+ "# Release flow",
81
+ storage.image("release-flow.png", { alt: "Release flow" }),
82
+ "# Open work",
83
+ open.length
84
+ ? storage.jiraIssues(
85
+ 'project = APP AND fixVersion = "2.1" AND statusCategory != Done',
86
+ {
87
+ columns: ["type", "key", "summary", "status", "assignee"],
88
+ },
89
+ )
90
+ : "Nothing is open.",
91
+ "# Risks",
92
+ storage.panel("warning", "QA environment is shared until Friday."),
93
+ ];
94
+ const page = await confluence.pages.create({
95
+ space: "ENG",
96
+ title: "Release 2.1 status",
97
+ body,
98
+ attachments: [flow],
99
+ });
100
+ return { url: page.url, warnings: page.warnings };
101
+ ```
@@ -0,0 +1,16 @@
1
+ # Jira requests for what has no method
2
+
3
+ `jira.request(method, path, body?, query?)`: the path is the full REST path (`/rest/api/3/…` or `/rest/agile/1.0/…`); `query` is `{ name: value | value[] }`, the 4th argument, not part of the path (GET: `jira.request("GET", "/rest/api/3/issue/APP-1/changelog", undefined, { maxResults: 20 })`). Rich-text bodies are ADF: build them with `await jira.adf.fromMarkdown(md)`.
4
+
5
+ Typed methods cover issues, comments, worklogs, links, attachments, sprints and ranking; use raw requests only for the rest:
6
+
7
+ | Task | Request |
8
+ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | Changelog | `GET /rest/api/3/issue/{key}/changelog` |
10
+ | Editable fields of an issue | `GET /rest/api/3/issue/{key}/editmeta` |
11
+ | Remote links | `GET` / `POST` `/rest/api/3/issue/{key}/remotelink`, `DELETE …/remotelink/{linkId}` |
12
+ | Priorities / resolutions / link types | `GET /rest/api/3/priority`, `/rest/api/3/resolution`, `/rest/api/3/issueLinkType` |
13
+ | Find boards | `GET /rest/agile/1.0/board` with query `{ name, projectKeyOrId, type: "scrum" \| "kanban", startAt, maxResults }`; boards of one project: `projects.get({ include: ["boards"] })` |
14
+ | Board by id / its configuration | `GET /rest/agile/1.0/board/{boardId}`; `GET …/board/{boardId}/configuration` (columns, status mapping, estimation field, filter) |
15
+ | Board backlog | `GET /rest/agile/1.0/board/{boardId}/backlog` |
16
+ | Comment visibility | `PUT /rest/api/3/issue/{key}/comment/{id}` `{ body: adf, visibility: { type: "role", value: "Administrators" } }` |
@@ -0,0 +1,77 @@
1
+ # Creating and updating Jira tickets
2
+
3
+ Projects differ in issue types, workflows, required fields and naming. Learn the conventions first, confirm them with the user, then write. Use one script per step and print compact results.
4
+
5
+ ## 1. Discover
6
+
7
+ One call (`issueType` limits `fields` to one type):
8
+
9
+ ```ts
10
+ const p = await jira.projects.get({
11
+ key: "APP",
12
+ include: ["fields", "statuses", "releases", "sprints", "epics"],
13
+ });
14
+ return {
15
+ types: p.issueTypes,
16
+ components: p.components,
17
+ create: p.createFields,
18
+ statuses: p.statuses,
19
+ releases: p.releases?.slice(0, 8),
20
+ sprints: p.sprints,
21
+ epics: p.epics,
22
+ };
23
+ ```
24
+
25
+ `createFields` lists each type's fields with `required` and `allowed` values; `jira.fields.list()` shows all fields.
26
+
27
+ Practice, from recent tickets per issue type:
28
+
29
+ ```ts
30
+ const sample = await jira.issues.search({
31
+ jql: 'project = APP AND issuetype = "Bug" ORDER BY created DESC',
32
+ fields: [
33
+ "summary",
34
+ "description",
35
+ "labels",
36
+ "components",
37
+ "fixVersions",
38
+ "parent",
39
+ "priority",
40
+ ],
41
+ limit: 10,
42
+ });
43
+ ```
44
+
45
+ Look at title style, description structure, labels, components, fix version use, parent epic, and how many tickets a sprint holds. For workflows, `jira.issues.get({ key, transitions: true })` on a few tickets in different statuses shows reachable statuses and their `requiredFields`; `statuses` shows the full set per type.
46
+
47
+ ## 2. Summarise and confirm
48
+
49
+ Tell the user the conventions you found (types and when to use them, required fields, labels/components/epics/versions, sprint rules, status flow) and anything ambiguous. Ask before creating anything. Offer to save them: `sdk.docs("atlassian/project-knowledge")`.
50
+
51
+ ## 3. Write
52
+
53
+ ```ts
54
+ const t = await jira.issues.create({
55
+ project: "APP",
56
+ type: "Bug",
57
+ summary: "Export fails for empty reports",
58
+ description: "## Steps\n\n1. Open a report\n2. Export",
59
+ fields: {
60
+ Severity: "S2",
61
+ Components: ["Export"],
62
+ Assignee: "ann@example.com",
63
+ "Fix versions": ["2.4"],
64
+ },
65
+ });
66
+ await jira.issues.move({ keys: [t.key], sprint: 42 });
67
+ ```
68
+
69
+ - `fields` take field names and plain values; wrong ones throw and list the valid values. `issues.update` replaces the given fields; to add one label or similar use `jira.request` (`sdk.docs("jira/raw")`).
70
+ - `issues.transition({ key, to: "Done", fields: { Resolution: "Done" } })`; the error lists reachable statuses and required fields.
71
+ - Images: `![](shot.png)` on its own line in a description or comment embeds the issue's attachment of that name (the newest if names repeat; Jira keeps duplicates, so check `attachments.list`). In `create`, pass the files too: `attachments: ["artifact:shot.png"]`. Reading returns `![](shot.png)` again.
72
+ - Sprints: `sprints.create/start/close/issues/delete`, ids from `projects.get` with `include: ["sprints"]`; close with `moveOpenTo: "backlog"` or open issues stay in the closed sprint.
73
+ - `sprints.issues` and `issues.search` can lag a few seconds behind `issues.move` (Jira indexing); retry before concluding a move failed.
74
+ - The issue's Sprint field keeps closed sprints as history; the current sprint is the one with state `active` (or `future`).
75
+ - Anything else (epic changes, bulk edits, remote links): `sdk.docs("jira/raw")`.
76
+
77
+ Create a few tickets per script, print the keys and URLs, and check with `issues.get` when the fields matter.
@@ -0,0 +1,25 @@
1
+ # Saving project knowledge as a skill
2
+
3
+ After exploring a Jira project or Confluence space, offer to save what you learned as a skill so later conversations skip the exploration.
4
+
5
+ **First step, before writing anything: read the built-in `skill-creator` skill.** Every skill you save must follow it.
6
+
7
+ ## When and how to offer
8
+
9
+ 1. Only after a discovery pass that produced durable conventions, and only once per project per conversation.
10
+ 2. Ask the user, in one message: whether to save it, and where. Recommend the project-level `./.nerve/skills/<name>/SKILL.md` (shared with the repository); the alternative is a user skill under `${NERVE_HOME:-$HOME/.nerve}/agent/skills/<name>/`. Write nothing until the user agrees.
11
+ 3. Create it following `skill-creator` (read first, see above): the directory name equals the frontmatter `name` (lowercase letters, digits, single hyphens, e.g. `jira-app-conventions`), a task-focused `description` saying when to use it ("Use when creating or updating APP Jira tickets or Confluence pages"), and a short `SKILL.md`. Put longer lists in files beside it and link them with relative paths. Do not overwrite an existing skill without confirmation.
12
+
13
+ ## What to record
14
+
15
+ Short and factual, only what you verified:
16
+
17
+ - Jira: project keys; issue types and what each is for; workflow status names per issue type and the transitions that need a field; required and commonly used custom fields (name and accepted values); naming and labelling conventions; components; sprint cadence and board; versioning and release naming; epic usage.
18
+ - Confluence: spaces and the parent pages for each kind of page; page templates and title patterns; labels in use.
19
+ - How to find things: the JQL/CQL that worked for common questions.
20
+
21
+ Do not record secrets, personal data, or volatile data (current assignees, sprint contents).
22
+
23
+ ## Updating
24
+
25
+ When a later conversation finds the saved skill out of date (a status was renamed, a field is gone), tell the user what changed and, with their agreement, edit the skill in place instead of creating another one.
@@ -0,0 +1,58 @@
1
+ # `storage.*` builders and RichText
2
+
3
+ Pure functions (no host calls) returning Confluence storage markup. Page and comment bodies and every body argument below are **RichText**: a Markdown string (HTML in it is escaped, so Jira/user text is safe), builder output, or an array of those joined in order. Markdown covers headings, lists, `- [ ]` tasks, tables, fenced code, quotes, `---`, emphasis, links, `![alt](https://url)`; builders cover the rest. Style and linting: `sdk.docs("confluence/writing")`.
4
+
5
+ ```ts
6
+ const page = await confluence.pages.get({ id, body: "storage" }); // page.body is trusted markup
7
+ await confluence.pages.update({
8
+ id,
9
+ version: page.version,
10
+ body: [
11
+ page.body, // existing content incl. drawio/gliffy/any macro, lossless
12
+ "## Update\n\nShipped **2.1**; owner next.",
13
+ storage.panel("info", [
14
+ "Due ",
15
+ storage.date("2026-05-01"),
16
+ " ",
17
+ storage.status("On track", "green"),
18
+ ]),
19
+ storage.raw(
20
+ '<ac:structured-macro ac:name="drawio"><ac:parameter ac:name="diagramName">arch</ac:parameter></ac:structured-macro>',
21
+ ),
22
+ ],
23
+ });
24
+ ```
25
+
26
+ Trust: only builder output, `storage.raw(xhtml)` and `pages.get({ body: "storage" })` bodies are markup, matched by exact string (per run). `page.body + "<p>x</p>"` or `.replace(...)` loses trust, and a plain string that is really storage XHTML is **rejected**, never escaped silently. Combine with an array, `storage.replaceSection` or `storage.raw`.
27
+
28
+ ## Edit
29
+
30
+ - `storage.replaceSection(body, heading, content)`: `body` is `page.body`; replaces what follows the first heading whose text equals `heading` up to the next heading of the same or higher level (the heading stays). Throws listing the headings if absent.
31
+ - `storage.raw(xhtml)`: hand-written storage (add-on macros, anything else), embedded as is. Never pass untrusted text; `storage.escape(text)` escapes it inside raw markup.
32
+
33
+ ## Text
34
+
35
+ - `storage.heading(level, text)`: literal-text heading 1-6 (Markdown `#` headings interpret `*`, `_`, `#` in the text).
36
+ - `storage.p(body)`: paragraph of inline parts; a string is literal text, builder output is embedded: `storage.p(["Due ", storage.date(d), " ", storage.status("Open")])`. Keep inline items in one `p`.
37
+ - `storage.link(target, text?)`: target is a URL (http(s), mailto, relative, `#anchor`; others throw), `{ page, space?, anchor? }` (page by title), `{ attachment }` or `{ anchor }`.
38
+ - `storage.anchor(name)`: link target for `{ anchor }` links.
39
+ - `storage.date(isoDate)`: `YYYY-MM-DD`. `storage.mention(accountId)` (ids from `jira.users.search`). Unicode emoji work in plain text.
40
+ - `storage.tasks(items)`: strings or `{ text, done? }` (Markdown `- [ ]` lists work too). `storage.decisions(items)`: decision list, same items (`done: false` = undecided; read back as `- [decided]` / `- [undecided]`).
41
+
42
+ ## Blocks
43
+
44
+ - `storage.panel(type, body, { title? })`: `"info" | "success" | "warning" | "error" | "note"`.
45
+ - `storage.expand(title, body)`: collapsible. `storage.excerpt(body, { hidden? })`; `storage.excerptInclude(pageTitle, { space?, noPanel? })`.
46
+ - `storage.code(code, { language?, title?, lineNumbers?, collapse? })`.
47
+ - `storage.status(text, colour?)`: lozenge; `"grey"` (default), `"red"`, `"yellow"`, `"green"`, `"blue"`, `"purple"`.
48
+ - `storage.table(rows, { columns?, layout?, headerRow?, headerColumn? })`: `rows` are objects or arrays (first array row is the header unless `columns` is given or `headerRow: false`). `columns` are keys or `{ key, title?, width? }` (px; none given: the linter sizes them). A cell is a string (literal), builder output, an array of parts, or `{ text, colspan?, rowspan? }`. `layout`: `"default"` (760 px), `"wide"` (960), `"full-width"`.
49
+ - `storage.layout(cells, { type? })`: `"two_equal"` (default for 2 cells), `"two_left_sidebar"`, `"two_right_sidebar"`, `"three_equal"` (default for 3), `"three_with_sidebars"`; each cell RichText. Do not nest.
50
+ - `storage.image(source, { width?, alt?, caption?, align?, border?, link? })`: an attachment filename (PNG/JPEG; width defaults to the real size capped at 760) or an `https://` URL.
51
+ - `storage.viewFile(filename, { height? })`: inline preview of an attached PDF/Office file.
52
+
53
+ ## Macros
54
+
55
+ - `storage.toc({ minLevel?, maxLevel? })`, `storage.children({ depth?, all? })` (child pages), `storage.attachments()`.
56
+ - `storage.pageProperties({ Label: value, ... }, { hidden? })` (page properties table); `storage.propertiesReport(label, { space?, headings?, limit? })` lists pages carrying that properties label.
57
+ - `storage.jiraIssue(key)`: one issue inline.
58
+ - `storage.jiraIssues(jql, { columns?, limit?, layout?, serverId? })`: issue list. `columns`: `["type","key","summary","status"]` (also assignee, reporter, priority, resolution, created, updated, due, custom field names). Omit `serverId` unless the site has several Jira links.
@@ -0,0 +1,20 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <g id="icon-gradient-blue-atlassian">
3
+ <g id="Group">
4
+ <g id="Group_2">
5
+ <path id="Vector" d="M11.1286 15.0811C10.7647 14.6808 10.2189 14.7172 9.96413 15.1903L4.06875 26.981C3.85041 27.4541 4.17793 28 4.6874 28H12.8754C13.1302 28 13.3849 27.8544 13.4941 27.5997C15.2772 23.9606 14.2219 18.3927 11.1286 15.0811Z" fill="url(#paint0_linear)">
6
+ </path>
7
+ <path id="Vector_2" d="M15.4233 4.38211C12.1481 9.58605 12.3665 15.3723 14.5135 19.7028C16.697 24.0334 18.3346 27.3813 18.4802 27.5997C18.5894 27.8544 18.8441 28 19.0988 28H27.2869C27.7963 28 28.1602 27.4541 27.9055 26.981C27.9055 26.981 16.879 4.92798 16.5878 4.38211C16.3695 3.87263 15.7508 3.87263 15.4233 4.38211Z" fill="#2684FF">
8
+ </path>
9
+ </g>
10
+ </g>
11
+ </g>
12
+ <defs>
13
+ <linearGradient id="paint0_linear" x1="14.3456" y1="16.905" x2="8.13249" y2="27.6665" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#0052CC">
15
+ </stop>
16
+ <stop offset="0.9228" stop-color="#2684FF">
17
+ </stop>
18
+ </linearGradient>
19
+ </defs>
20
+ </svg>
@@ -0,0 +1,12 @@
1
+ # Diagrams
2
+
3
+ `diagram.render` sends the source (max {{limit:diagram.source}}) to the configured Kroki server and returns a PNG artifact. `type` must be a Kroki engine that supports PNG output (mermaid, plantuml, graphviz…); svg-only engines such as d2 fail. Use short labels and vertical layouts (`flowchart TB`) with few nodes per row, so the PNG stays readable at page width. Page image rules: `sdk.docs("confluence/writing")`.
4
+
5
+ ```ts
6
+ const flow = await diagram.render({
7
+ type: "mermaid",
8
+ source: "flowchart TB\n A[Plan] --> B[Ship]",
9
+ name: "flow.png",
10
+ });
11
+ const { width } = await image(flow).info();
12
+ ```
@@ -0,0 +1,17 @@
1
+ # Image generation
2
+
3
+ `imagegen.generate` creates one new image and returns an artifact handle; the extension (`.png`, `.jpg`, `.webp`) follows what the backend returned. It spends the user's credit at the backend: generate once, check the result, and do not loop. `sdk.describe("imagegen")` shows the configured backend, its defaults and its `backendOptions`.
4
+
5
+ ```ts
6
+ const hero = await imagegen.generate({
7
+ prompt: "Isometric server rack, flat colours",
8
+ size: "1536x1024",
9
+ name: "hero.png",
10
+ });
11
+ await image(hero).resize({ width: 760 }).save("hero-760.png");
12
+ ```
13
+
14
+ - `size`: `"auto"` or `"<width>x<height>"`; the limits are in the error when a size is refused.
15
+ - `inputs`: reference images as file handles, for backends that take them. The error names the backend when it does not.
16
+ - `backendOptions`: options only the configured backend has; unknown ones are rejected with the valid names.
17
+ - To look at the result, `read` the artifact path or, when enabled, use `explain_image`. Image rules for pages: `sdk.docs("confluence/writing")`.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M3.44126 9.95573C1.51763 11.8794 1.51763 14.9982 3.44126 16.9218C5.13601 18.6166 7.75847 18.8182 9.67398 17.5267L13.9304 21.7831C14.2324 22.0851 14.7219 22.0851 15.0239 21.7831C15.2984 21.5086 15.3234 21.079 15.0988 20.7763L15.0239 20.6896L10.8066 16.4713C12.3202 14.5385 12.1871 11.7355 10.4073 9.95573C8.4837 8.0321 5.36488 8.0321 3.44126 9.95573ZM12.0258 1.99844C7.27034 1.99844 3.29007 5.3173 2.27486 9.76511C2.41594 9.5859 2.56916 9.41361 2.73415 9.24862C3.26249 8.72028 3.86577 8.31257 4.50978 8.02548C5.45281 6.24299 7.01307 4.83629 8.90577 4.08921L8.79893 4.2633C8.2614 5.15688 7.8278 6.2746 7.52377 7.54246C8.02265 7.59377 8.51502 7.70697 8.98938 7.88295C9.6212 5.25539 10.8123 3.49844 12.0258 3.49844L12.1414 3.50374C13.4069 3.6195 14.6293 5.62147 15.1971 8.49969L10.1994 8.49896C10.5227 8.71375 10.8295 8.96364 11.1144 9.24862C11.3499 9.48411 11.5617 9.7349 11.7495 9.99791L15.4227 9.99941C15.4907 10.6397 15.5273 11.3094 15.5273 12C15.5273 13.0595 15.4412 14.0698 15.2876 15.0001L12.6422 15.0002C12.5645 15.2859 12.4648 15.5671 12.3432 15.8413L12.2143 16.113L12.0917 16.3423L12.2503 16.4994L14.9647 16.4997C14.7625 17.2482 14.5141 17.9173 14.2331 18.4842L15.3386 19.5919C15.8305 18.7339 16.2305 17.6833 16.5175 16.5007L19.2401 16.4999C18.3502 17.9236 17.0505 19.0649 15.5063 19.7588L15.7311 19.9826L15.8557 20.1229C16.0761 20.4181 16.2006 20.7471 16.2338 21.0756C19.6547 19.4875 22.0273 16.0208 22.0273 12C22.0273 6.47629 17.5495 1.99844 12.0258 1.99844ZM9.31383 11.0492C10.6335 12.3689 10.6335 14.5086 9.31383 15.8283C7.99412 17.148 5.85446 17.148 4.53476 15.8283C3.21506 14.5086 3.21506 12.3689 4.53476 11.0492C5.85446 9.72953 7.99412 9.72953 9.31383 11.0492ZM16.9324 10L20.29 9.99934L20.2978 10.0295C20.4479 10.6619 20.5273 11.3217 20.5273 12C20.5273 13.056 20.3348 14.0671 19.9829 15L16.8095 15.0009C16.9518 14.0516 17.0273 13.043 17.0273 12C17.0273 11.3162 16.9949 10.6473 16.9324 10ZM15.1447 4.08915L15.1676 4.09787C17.215 4.91259 18.871 6.49994 19.7757 8.49984L16.7274 8.49928C16.414 6.74684 15.8672 5.22122 15.1447 4.08915Z" fill="#C8643B"/></svg>
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  discoverGitRepositories,
13
13
  readGitSnapshot
14
- } from "./chunk-WRTA5G57.js";
14
+ } from "./chunk-APY4TUR3.js";
15
15
  import "./chunk-CWESUMYQ.js";
16
16
 
17
17
  // packages/tools/dist/git/read/git-isolated-reader-helper.js