@nervekit/desktop 0.40.2 → 0.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-PST63OUS.js → chunk-OO2KD2L2.js} +18295 -4318
  41. package/dist/{chunk-7FLZA2BD.js → chunk-P72Y5ZBH.js} +7 -7
  42. package/dist/{chunk-O2652RWY.js → chunk-PVPJAGWR.js} +2 -2
  43. package/dist/{chunk-UDC7NPQJ.js → chunk-Q3C7TQ2M.js} +3 -3
  44. package/dist/{chunk-B4IE2GAM.js → chunk-Q5E4ZL2R.js} +1 -1
  45. package/dist/{chunk-5NN7JAJ2.js → chunk-QFK2SWD2.js} +7 -7
  46. package/dist/{chunk-SHEU5KLD.js → chunk-RJR7DJJK.js} +3 -3
  47. package/dist/{chunk-4H3WR7IT.js → chunk-RL52LSTV.js} +1 -1
  48. package/dist/{chunk-FGZX4Q7W.js → chunk-RTB6CF7F.js} +15 -15
  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-OO2KD2L2.js.LEGAL.txt} +0 -0
@@ -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