@arnavpisces/sutra 1.0.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 (288) hide show
  1. package/LICENSE +203 -0
  2. package/NOTICE +6 -0
  3. package/README.md +181 -0
  4. package/dist/api/client.d.ts +24 -0
  5. package/dist/api/client.d.ts.map +1 -0
  6. package/dist/api/client.js +168 -0
  7. package/dist/api/client.js.map +1 -0
  8. package/dist/api/confluence-client.d.ts +133 -0
  9. package/dist/api/confluence-client.d.ts.map +1 -0
  10. package/dist/api/confluence-client.js +224 -0
  11. package/dist/api/confluence-client.js.map +1 -0
  12. package/dist/api/jira-client.d.ts +94 -0
  13. package/dist/api/jira-client.d.ts.map +1 -0
  14. package/dist/api/jira-client.js +151 -0
  15. package/dist/api/jira-client.js.map +1 -0
  16. package/dist/app.d.ts +2 -0
  17. package/dist/app.d.ts.map +1 -0
  18. package/dist/app.js +135 -0
  19. package/dist/app.js.map +1 -0
  20. package/dist/components/common/Badge.d.ts +7 -0
  21. package/dist/components/common/Badge.d.ts.map +1 -0
  22. package/dist/components/common/Badge.js +15 -0
  23. package/dist/components/common/Badge.js.map +1 -0
  24. package/dist/components/common/Breadcrumbs.d.ts +5 -0
  25. package/dist/components/common/Breadcrumbs.d.ts.map +1 -0
  26. package/dist/components/common/Breadcrumbs.js +9 -0
  27. package/dist/components/common/Breadcrumbs.js.map +1 -0
  28. package/dist/components/common/Divider.d.ts +7 -0
  29. package/dist/components/common/Divider.d.ts.map +1 -0
  30. package/dist/components/common/Divider.js +13 -0
  31. package/dist/components/common/Divider.js.map +1 -0
  32. package/dist/components/common/EditableTextBox.d.ts +30 -0
  33. package/dist/components/common/EditableTextBox.d.ts.map +1 -0
  34. package/dist/components/common/EditableTextBox.js +512 -0
  35. package/dist/components/common/EditableTextBox.js.map +1 -0
  36. package/dist/components/common/Footer.d.ts +9 -0
  37. package/dist/components/common/Footer.d.ts.map +1 -0
  38. package/dist/components/common/Footer.js +7 -0
  39. package/dist/components/common/Footer.js.map +1 -0
  40. package/dist/components/common/FuzzySelect.d.ts +17 -0
  41. package/dist/components/common/FuzzySelect.d.ts.map +1 -0
  42. package/dist/components/common/FuzzySelect.js +72 -0
  43. package/dist/components/common/FuzzySelect.js.map +1 -0
  44. package/dist/components/common/Header.d.ts +7 -0
  45. package/dist/components/common/Header.d.ts.map +1 -0
  46. package/dist/components/common/Header.js +18 -0
  47. package/dist/components/common/Header.js.map +1 -0
  48. package/dist/components/common/HelpModal.d.ts +13 -0
  49. package/dist/components/common/HelpModal.d.ts.map +1 -0
  50. package/dist/components/common/HelpModal.js +9 -0
  51. package/dist/components/common/HelpModal.js.map +1 -0
  52. package/dist/components/common/KeyHint.d.ts +15 -0
  53. package/dist/components/common/KeyHint.d.ts.map +1 -0
  54. package/dist/components/common/KeyHint.js +10 -0
  55. package/dist/components/common/KeyHint.js.map +1 -0
  56. package/dist/components/common/MenuList.d.ts +15 -0
  57. package/dist/components/common/MenuList.d.ts.map +1 -0
  58. package/dist/components/common/MenuList.js +31 -0
  59. package/dist/components/common/MenuList.js.map +1 -0
  60. package/dist/components/common/Panel.d.ts +12 -0
  61. package/dist/components/common/Panel.d.ts.map +1 -0
  62. package/dist/components/common/Panel.js +6 -0
  63. package/dist/components/common/Panel.js.map +1 -0
  64. package/dist/components/common/ProgressBar.d.ts +11 -0
  65. package/dist/components/common/ProgressBar.d.ts.map +1 -0
  66. package/dist/components/common/ProgressBar.js +11 -0
  67. package/dist/components/common/ProgressBar.js.map +1 -0
  68. package/dist/components/common/SavedList.d.ts +16 -0
  69. package/dist/components/common/SavedList.d.ts.map +1 -0
  70. package/dist/components/common/SavedList.js +37 -0
  71. package/dist/components/common/SavedList.js.map +1 -0
  72. package/dist/components/common/ScrollBox.d.ts +9 -0
  73. package/dist/components/common/ScrollBox.d.ts.map +1 -0
  74. package/dist/components/common/ScrollBox.js +105 -0
  75. package/dist/components/common/ScrollBox.js.map +1 -0
  76. package/dist/components/common/SearchBar.d.ts +10 -0
  77. package/dist/components/common/SearchBar.d.ts.map +1 -0
  78. package/dist/components/common/SearchBar.js +7 -0
  79. package/dist/components/common/SearchBar.js.map +1 -0
  80. package/dist/components/common/SelectableItem.d.ts +14 -0
  81. package/dist/components/common/SelectableItem.d.ts.map +1 -0
  82. package/dist/components/common/SelectableItem.js +14 -0
  83. package/dist/components/common/SelectableItem.js.map +1 -0
  84. package/dist/components/common/Spinner.d.ts +7 -0
  85. package/dist/components/common/Spinner.d.ts.map +1 -0
  86. package/dist/components/common/Spinner.js +23 -0
  87. package/dist/components/common/Spinner.js.map +1 -0
  88. package/dist/components/common/SplitPane.d.ts +8 -0
  89. package/dist/components/common/SplitPane.d.ts.map +1 -0
  90. package/dist/components/common/SplitPane.js +10 -0
  91. package/dist/components/common/SplitPane.js.map +1 -0
  92. package/dist/components/common/StatusBar.d.ts +9 -0
  93. package/dist/components/common/StatusBar.d.ts.map +1 -0
  94. package/dist/components/common/StatusBar.js +6 -0
  95. package/dist/components/common/StatusBar.js.map +1 -0
  96. package/dist/components/common/TabBar.d.ts +9 -0
  97. package/dist/components/common/TabBar.d.ts.map +1 -0
  98. package/dist/components/common/TabBar.js +12 -0
  99. package/dist/components/common/TabBar.js.map +1 -0
  100. package/dist/components/common/Table.d.ts +19 -0
  101. package/dist/components/common/Table.d.ts.map +1 -0
  102. package/dist/components/common/Table.js +24 -0
  103. package/dist/components/common/Table.js.map +1 -0
  104. package/dist/components/common/TextEditor.d.ts +10 -0
  105. package/dist/components/common/TextEditor.d.ts.map +1 -0
  106. package/dist/components/common/TextEditor.js +17 -0
  107. package/dist/components/common/TextEditor.js.map +1 -0
  108. package/dist/components/common/Toast.d.ts +8 -0
  109. package/dist/components/common/Toast.d.ts.map +1 -0
  110. package/dist/components/common/Toast.js +32 -0
  111. package/dist/components/common/Toast.js.map +1 -0
  112. package/dist/components/common/index.d.ts +38 -0
  113. package/dist/components/common/index.d.ts.map +1 -0
  114. package/dist/components/common/index.js +22 -0
  115. package/dist/components/common/index.js.map +1 -0
  116. package/dist/components/confluence/ConfluenceView.d.ts +6 -0
  117. package/dist/components/confluence/ConfluenceView.d.ts.map +1 -0
  118. package/dist/components/confluence/ConfluenceView.js +184 -0
  119. package/dist/components/confluence/ConfluenceView.js.map +1 -0
  120. package/dist/components/confluence/DocTree.d.ts +10 -0
  121. package/dist/components/confluence/DocTree.d.ts.map +1 -0
  122. package/dist/components/confluence/DocTree.js +125 -0
  123. package/dist/components/confluence/DocTree.js.map +1 -0
  124. package/dist/components/confluence/PageAttachments.d.ts +8 -0
  125. package/dist/components/confluence/PageAttachments.d.ts.map +1 -0
  126. package/dist/components/confluence/PageAttachments.js +108 -0
  127. package/dist/components/confluence/PageAttachments.js.map +1 -0
  128. package/dist/components/confluence/PageBrowser.d.ts +8 -0
  129. package/dist/components/confluence/PageBrowser.d.ts.map +1 -0
  130. package/dist/components/confluence/PageBrowser.js +93 -0
  131. package/dist/components/confluence/PageBrowser.js.map +1 -0
  132. package/dist/components/confluence/PageComments.d.ts +8 -0
  133. package/dist/components/confluence/PageComments.d.ts.map +1 -0
  134. package/dist/components/confluence/PageComments.js +75 -0
  135. package/dist/components/confluence/PageComments.js.map +1 -0
  136. package/dist/components/confluence/PageEditor.d.ts +13 -0
  137. package/dist/components/confluence/PageEditor.d.ts.map +1 -0
  138. package/dist/components/confluence/PageEditor.js +37 -0
  139. package/dist/components/confluence/PageEditor.js.map +1 -0
  140. package/dist/components/confluence/PageLabels.d.ts +8 -0
  141. package/dist/components/confluence/PageLabels.d.ts.map +1 -0
  142. package/dist/components/confluence/PageLabels.js +92 -0
  143. package/dist/components/confluence/PageLabels.js.map +1 -0
  144. package/dist/components/confluence/PageList.d.ts +8 -0
  145. package/dist/components/confluence/PageList.d.ts.map +1 -0
  146. package/dist/components/confluence/PageList.js +95 -0
  147. package/dist/components/confluence/PageList.js.map +1 -0
  148. package/dist/components/confluence/PageViewer.d.ts +14 -0
  149. package/dist/components/confluence/PageViewer.d.ts.map +1 -0
  150. package/dist/components/confluence/PageViewer.js +160 -0
  151. package/dist/components/confluence/PageViewer.js.map +1 -0
  152. package/dist/components/confluence/SpaceTree.d.ts +10 -0
  153. package/dist/components/confluence/SpaceTree.d.ts.map +1 -0
  154. package/dist/components/confluence/SpaceTree.js +220 -0
  155. package/dist/components/confluence/SpaceTree.js.map +1 -0
  156. package/dist/components/jira/CommentForm.d.ts +7 -0
  157. package/dist/components/jira/CommentForm.d.ts.map +1 -0
  158. package/dist/components/jira/CommentForm.js +24 -0
  159. package/dist/components/jira/CommentForm.js.map +1 -0
  160. package/dist/components/jira/CreateTicket.d.ts +9 -0
  161. package/dist/components/jira/CreateTicket.d.ts.map +1 -0
  162. package/dist/components/jira/CreateTicket.js +106 -0
  163. package/dist/components/jira/CreateTicket.js.map +1 -0
  164. package/dist/components/jira/IssueList.d.ts +9 -0
  165. package/dist/components/jira/IssueList.d.ts.map +1 -0
  166. package/dist/components/jira/IssueList.js +43 -0
  167. package/dist/components/jira/IssueList.js.map +1 -0
  168. package/dist/components/jira/JiraIssueRow.d.ts +7 -0
  169. package/dist/components/jira/JiraIssueRow.d.ts.map +1 -0
  170. package/dist/components/jira/JiraIssueRow.js +49 -0
  171. package/dist/components/jira/JiraIssueRow.js.map +1 -0
  172. package/dist/components/jira/JiraView.d.ts +7 -0
  173. package/dist/components/jira/JiraView.d.ts.map +1 -0
  174. package/dist/components/jira/JiraView.js +283 -0
  175. package/dist/components/jira/JiraView.js.map +1 -0
  176. package/dist/components/jira/JqlSearch.d.ts +8 -0
  177. package/dist/components/jira/JqlSearch.d.ts.map +1 -0
  178. package/dist/components/jira/JqlSearch.js +51 -0
  179. package/dist/components/jira/JqlSearch.js.map +1 -0
  180. package/dist/components/jira/QuickFilters.d.ts +8 -0
  181. package/dist/components/jira/QuickFilters.d.ts.map +1 -0
  182. package/dist/components/jira/QuickFilters.js +61 -0
  183. package/dist/components/jira/QuickFilters.js.map +1 -0
  184. package/dist/components/jira/StatusSelector.d.ts +9 -0
  185. package/dist/components/jira/StatusSelector.d.ts.map +1 -0
  186. package/dist/components/jira/StatusSelector.js +11 -0
  187. package/dist/components/jira/StatusSelector.js.map +1 -0
  188. package/dist/components/jira/TicketDetail.d.ts +23 -0
  189. package/dist/components/jira/TicketDetail.d.ts.map +1 -0
  190. package/dist/components/jira/TicketDetail.js +409 -0
  191. package/dist/components/jira/TicketDetail.js.map +1 -0
  192. package/dist/components/jira/TicketEditor.d.ts +9 -0
  193. package/dist/components/jira/TicketEditor.d.ts.map +1 -0
  194. package/dist/components/jira/TicketEditor.js +21 -0
  195. package/dist/components/jira/TicketEditor.js.map +1 -0
  196. package/dist/components/jira/TicketList.d.ts +8 -0
  197. package/dist/components/jira/TicketList.d.ts.map +1 -0
  198. package/dist/components/jira/TicketList.js +89 -0
  199. package/dist/components/jira/TicketList.js.map +1 -0
  200. package/dist/config/config-manager.d.ts +11 -0
  201. package/dist/config/config-manager.d.ts.map +1 -0
  202. package/dist/config/config-manager.js +65 -0
  203. package/dist/config/config-manager.js.map +1 -0
  204. package/dist/config/types.d.ts +81 -0
  205. package/dist/config/types.d.ts.map +1 -0
  206. package/dist/config/types.js +16 -0
  207. package/dist/config/types.js.map +1 -0
  208. package/dist/formatters/adf-converter.d.ts +21 -0
  209. package/dist/formatters/adf-converter.d.ts.map +1 -0
  210. package/dist/formatters/adf-converter.js +73 -0
  211. package/dist/formatters/adf-converter.js.map +1 -0
  212. package/dist/formatters/confluence-converter.d.ts +25 -0
  213. package/dist/formatters/confluence-converter.d.ts.map +1 -0
  214. package/dist/formatters/confluence-converter.js +77 -0
  215. package/dist/formatters/confluence-converter.js.map +1 -0
  216. package/dist/formatters/glow-renderer.d.ts +39 -0
  217. package/dist/formatters/glow-renderer.d.ts.map +1 -0
  218. package/dist/formatters/glow-renderer.js +136 -0
  219. package/dist/formatters/glow-renderer.js.map +1 -0
  220. package/dist/formatters/markdown-ansi-renderer.d.ts +24 -0
  221. package/dist/formatters/markdown-ansi-renderer.d.ts.map +1 -0
  222. package/dist/formatters/markdown-ansi-renderer.js +240 -0
  223. package/dist/formatters/markdown-ansi-renderer.js.map +1 -0
  224. package/dist/formatters/mdcat-renderer.d.ts +29 -0
  225. package/dist/formatters/mdcat-renderer.d.ts.map +1 -0
  226. package/dist/formatters/mdcat-renderer.js +106 -0
  227. package/dist/formatters/mdcat-renderer.js.map +1 -0
  228. package/dist/hooks/useConfluencePage.d.ts +9 -0
  229. package/dist/hooks/useConfluencePage.d.ts.map +1 -0
  230. package/dist/hooks/useConfluencePage.js +53 -0
  231. package/dist/hooks/useConfluencePage.js.map +1 -0
  232. package/dist/hooks/useJiraIssue.d.ts +9 -0
  233. package/dist/hooks/useJiraIssue.d.ts.map +1 -0
  234. package/dist/hooks/useJiraIssue.js +52 -0
  235. package/dist/hooks/useJiraIssue.js.map +1 -0
  236. package/dist/index.d.ts +3 -0
  237. package/dist/index.d.ts.map +1 -0
  238. package/dist/index.js +214 -0
  239. package/dist/index.js.map +1 -0
  240. package/dist/storage/bookmarks.d.ts +16 -0
  241. package/dist/storage/bookmarks.d.ts.map +1 -0
  242. package/dist/storage/bookmarks.js +49 -0
  243. package/dist/storage/bookmarks.js.map +1 -0
  244. package/dist/storage/cache.d.ts +12 -0
  245. package/dist/storage/cache.d.ts.map +1 -0
  246. package/dist/storage/cache.js +57 -0
  247. package/dist/storage/cache.js.map +1 -0
  248. package/dist/storage/db.d.ts +4 -0
  249. package/dist/storage/db.d.ts.map +1 -0
  250. package/dist/storage/db.js +63 -0
  251. package/dist/storage/db.js.map +1 -0
  252. package/dist/storage/recents.d.ts +13 -0
  253. package/dist/storage/recents.d.ts.map +1 -0
  254. package/dist/storage/recents.js +40 -0
  255. package/dist/storage/recents.js.map +1 -0
  256. package/dist/theme/te.d.ts +12 -0
  257. package/dist/theme/te.d.ts.map +1 -0
  258. package/dist/theme/te.js +13 -0
  259. package/dist/theme/te.js.map +1 -0
  260. package/dist/utils/cache.d.ts +15 -0
  261. package/dist/utils/cache.d.ts.map +1 -0
  262. package/dist/utils/cache.js +34 -0
  263. package/dist/utils/cache.js.map +1 -0
  264. package/dist/utils/errors.d.ts +16 -0
  265. package/dist/utils/errors.d.ts.map +1 -0
  266. package/dist/utils/errors.js +32 -0
  267. package/dist/utils/errors.js.map +1 -0
  268. package/dist/utils/external-editor.d.ts +32 -0
  269. package/dist/utils/external-editor.d.ts.map +1 -0
  270. package/dist/utils/external-editor.js +173 -0
  271. package/dist/utils/external-editor.js.map +1 -0
  272. package/dist/utils/jira-colors.d.ts +4 -0
  273. package/dist/utils/jira-colors.d.ts.map +1 -0
  274. package/dist/utils/jira-colors.js +47 -0
  275. package/dist/utils/jira-colors.js.map +1 -0
  276. package/dist/utils/links.d.ts +5 -0
  277. package/dist/utils/links.d.ts.map +1 -0
  278. package/dist/utils/links.js +43 -0
  279. package/dist/utils/links.js.map +1 -0
  280. package/dist/utils/markdown-highlighter.d.ts +49 -0
  281. package/dist/utils/markdown-highlighter.d.ts.map +1 -0
  282. package/dist/utils/markdown-highlighter.js +282 -0
  283. package/dist/utils/markdown-highlighter.js.map +1 -0
  284. package/dist/utils/paths.d.ts +3 -0
  285. package/dist/utils/paths.d.ts.map +1 -0
  286. package/dist/utils/paths.js +15 -0
  287. package/dist/utils/paths.js.map +1 -0
  288. package/package.json +74 -0
package/LICENSE ADDED
@@ -0,0 +1,203 @@
1
+ Copyright 2026 Arnav Kumar
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "[]"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright [yyyy] [name of copyright owner]
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ sutra
2
+ Copyright 2026 Arnav Kumar
3
+
4
+ Licensed under the Apache License, Version 2.0.
5
+ You may obtain a copy of the License at:
6
+ http://www.apache.org/licenses/LICENSE-2.0
package/README.md ADDED
@@ -0,0 +1,181 @@
1
+ # sutra
2
+
3
+ > A terminal TUI for Jira tickets and Confluence docs.
4
+
5
+ `sutra` is an open-source terminal TUI for teams who want to work with Jira tickets and Confluence docs without leaving the keyboard.
6
+
7
+ Repository:
8
+
9
+ - Issues: https://github.com/arnavpisces/sutra/issues
10
+ - Pull Requests: https://github.com/arnavpisces/sutra/pulls
11
+
12
+ ## Why This Exists (10-second pitch)
13
+
14
+ - Run Jira and Confluence from one app, without leaving terminal.
15
+ - Search, create, edit, comment, and manage attachments with keyboard flows.
16
+ - Keep data local-first: config, cache, bookmarks, and recents live on your machine.
17
+
18
+ ## What Works Today
19
+
20
+ ### Jira
21
+
22
+ - Browse assigned/reported issues with pagination.
23
+ - Search issues with:
24
+ - fuzzy query mode
25
+ - quick filters
26
+ - custom JQL
27
+ - Open full issue detail views.
28
+ - Create new issues (project + issue type + summary + description).
29
+ - Edit issue title and description.
30
+ - Add and edit comments.
31
+ - Transition issue status.
32
+ - Upload/download attachments.
33
+ - Open issue in browser and copy issue URL/key.
34
+ - Bookmark issues and revisit from recents.
35
+
36
+ ### Confluence
37
+
38
+ - Browse recent pages with pagination.
39
+ - Search pages using CQL-backed query flow.
40
+ - Browse pages by space tree.
41
+ - Open page viewer with markdown + mdcat rendering modes.
42
+ - Edit page content and save back to Confluence storage format.
43
+ - Open external editor (`$EDITOR`/Cursor/VS Code fallback) for long-form edits.
44
+ - View and add comments.
45
+ - View/add/remove labels.
46
+ - View/upload/download/open attachments.
47
+ - Open page in browser and copy page URL.
48
+ - Bookmark pages and revisit from recents.
49
+
50
+ ### Core UX + Storage
51
+
52
+ - Tab-based Jira/Confluence navigation.
53
+ - Global help modal and keyboard-first interaction model.
54
+ - Local persistent cache (SQLite) for faster repeated views.
55
+ - Local persistent bookmarks and recent history.
56
+ - Setup wizard for Jira + Confluence credentials.
57
+
58
+ ## Install And Run (30 seconds)
59
+
60
+ ### Global install
61
+
62
+ ```bash
63
+ npm install -g @arnavpisces/sutra
64
+ sutra setup
65
+ sutra
66
+ ```
67
+
68
+ `sutra setup` asks for:
69
+ - site username (for example `your-team`)
70
+ - email
71
+ - Atlassian API token (input is hidden)
72
+
73
+ Jira and Confluence base URLs are derived automatically.
74
+ Sutra validates both Jira and Confluence credentials before opening control panels.
75
+
76
+ ### Run from source
77
+
78
+ ```bash
79
+ cd sutra
80
+ npm install
81
+ npm run build
82
+ npm start -- setup
83
+ npm start
84
+ ```
85
+
86
+ ## Core Commands
87
+
88
+ ```bash
89
+ sutra setup # configure Jira + Confluence credentials
90
+ sutra # start the TUI (default command)
91
+ sutra start # explicit start command
92
+ ```
93
+
94
+ ## Production Release
95
+
96
+ Maintainer flow:
97
+
98
+ ```bash
99
+ npm ci
100
+ npm run build
101
+ npm run check:pack
102
+ npm version patch # or minor/major
103
+ git push --follow-tags
104
+ ```
105
+
106
+ Automation:
107
+
108
+ - `.github/workflows/ci.yml` runs on `push` to `main` only (no `pull_request` trigger).
109
+ - `.github/workflows/release.yml` runs on `v*` tags and publishes to npm.
110
+ - Set repository secret `NPM_TOKEN` before creating release tags.
111
+
112
+ ## Keyboard Model
113
+
114
+ ### Global
115
+
116
+ - `Tab`: switch Jira/Confluence tabs
117
+ - `?`: toggle help
118
+ - `Esc`: close overlays / go back
119
+ - `Ctrl+Q` or `Ctrl+C`: quit
120
+
121
+ ### Common in detail views
122
+
123
+ - `Ctrl+O`: open current item in browser
124
+ - `Ctrl+Y`: copy URL
125
+ - `Ctrl+B`: toggle bookmark
126
+ - `Ctrl+E`: open external editor when editable
127
+
128
+ ## Configuration And Data
129
+
130
+ Configuration path:
131
+
132
+ - `~/.sutra/config.json`
133
+
134
+ Local cache/bookmarks/recents database:
135
+
136
+ - `~/.sutra/cache.db`
137
+
138
+ Security note:
139
+
140
+ - API tokens are stored locally.
141
+ - Treat local config files as secrets and never commit/export them.
142
+
143
+ ## Open Source Strategy
144
+
145
+ This project is intentionally open-source-first.
146
+
147
+ - The core single-user CLI experience stays open.
148
+ - No paywall inside current local Jira/Confluence workflows.
149
+ - Product quality and speed come before monetization.
150
+
151
+ ## Future Pro Boundary
152
+
153
+ The Pro boundary is documented here:
154
+
155
+ - [`FUTURE_PRO_BOUNDARY.md`](./FUTURE_PRO_BOUNDARY.md)
156
+
157
+ Short version:
158
+
159
+ - **OSS forever**: local single-user workflows (all current core features).
160
+ - **Potential Pro (later)**: hosted/team capabilities such as SSO/SAML, shared workspaces, org-level policy, audit logs, and managed cloud sync.
161
+
162
+ ## Contributing
163
+
164
+ PRs and issues are welcome. Focus areas:
165
+
166
+ - UX speed and terminal ergonomics
167
+ - reliability across Jira/Confluence API edge cases
168
+ - keyboard flow consistency
169
+ - docs and onboarding quality
170
+
171
+ Contribution guidelines:
172
+
173
+ - [`CONTRIBUTING.md`](./CONTRIBUTING.md)
174
+ - [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md)
175
+ - [`SECURITY.md`](./SECURITY.md)
176
+
177
+ ## License
178
+
179
+ Apache-2.0. See [`LICENSE`](./LICENSE).
180
+
181
+ Copyright 2026 Arnav Kumar.
@@ -0,0 +1,24 @@
1
+ export interface ApiClientConfig {
2
+ baseUrl: string;
3
+ email: string;
4
+ apiToken: string;
5
+ }
6
+ export declare class ApiClient {
7
+ private baseUrl;
8
+ private auth;
9
+ private client;
10
+ private rawClient;
11
+ constructor(config: ApiClientConfig);
12
+ private encodeBasicAuth;
13
+ private normalizeUrl;
14
+ private isAbsoluteUrl;
15
+ private getClient;
16
+ get<T = any>(url: string, options?: any): Promise<T>;
17
+ post<T = any>(url: string, data?: any, options?: any): Promise<T>;
18
+ put<T = any>(url: string, data?: any, options?: any): Promise<T>;
19
+ delete<T = any>(url: string, options?: any): Promise<T>;
20
+ getBuffer(url: string, options?: any): Promise<Buffer>;
21
+ postFormData<T = any>(url: string, formData: FormData, options?: any): Promise<T>;
22
+ private handleError;
23
+ }
24
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,M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Token);
6
+ this.client = ky.create({
7
+ prefixUrl: this.baseUrl,
8
+ headers: {
9
+ Authorization: `Basic ${this.auth}`,
10
+ },
11
+ timeout: 30000,
12
+ retry: {
13
+ limit: 2,
14
+ methods: ['get', 'head', 'put', 'delete'],
15
+ statusCodes: [408, 429, 500, 502, 503, 504],
16
+ },
17
+ });
18
+ // Raw client without prefixUrl for absolute URLs
19
+ this.rawClient = ky.create({
20
+ headers: {
21
+ Authorization: `Basic ${this.auth}`,
22
+ },
23
+ timeout: 30000,
24
+ retry: {
25
+ limit: 2,
26
+ methods: ['get', 'head', 'put', 'delete'],
27
+ statusCodes: [408, 429, 500, 502, 503, 504],
28
+ },
29
+ });
30
+ }
31
+ encodeBasicAuth(email, token) {
32
+ return Buffer.from(`${email}:${token}`).toString('base64');
33
+ }
34
+ normalizeUrl(url) {
35
+ // Remove leading slash since prefixUrl doesn't allow it
36
+ return url.startsWith('/') ? url.slice(1) : url;
37
+ }
38
+ isAbsoluteUrl(url) {
39
+ return /^https?:\/\//i.test(url);
40
+ }
41
+ getClient(url) {
42
+ return this.isAbsoluteUrl(url) ? this.rawClient : this.client;
43
+ }
44
+ async get(url, options) {
45
+ try {
46
+ const client = this.getClient(url);
47
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
48
+ const response = await client.get(target, options);
49
+ return response.json();
50
+ }
51
+ catch (error) {
52
+ return await this.handleError(error);
53
+ }
54
+ }
55
+ async post(url, data, options) {
56
+ try {
57
+ const client = this.getClient(url);
58
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
59
+ const response = await client.post(target, {
60
+ json: data,
61
+ ...options,
62
+ });
63
+ // Handle 204 No Content (common for some Jira POST operations like transitions)
64
+ if (response.status === 204 || response.headers.get('content-length') === '0') {
65
+ return {};
66
+ }
67
+ return response.json();
68
+ }
69
+ catch (error) {
70
+ return await this.handleError(error);
71
+ }
72
+ }
73
+ async put(url, data, options) {
74
+ try {
75
+ const client = this.getClient(url);
76
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
77
+ const response = await client.put(target, {
78
+ json: data,
79
+ ...options,
80
+ });
81
+ // Handle 204 No Content (common for Jira PUT responses)
82
+ if (response.status === 204 || response.headers.get('content-length') === '0') {
83
+ return {};
84
+ }
85
+ return response.json();
86
+ }
87
+ catch (error) {
88
+ return await this.handleError(error);
89
+ }
90
+ }
91
+ async delete(url, options) {
92
+ try {
93
+ const client = this.getClient(url);
94
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
95
+ const response = await client.delete(target, options);
96
+ if (response.status === 204) {
97
+ return {};
98
+ }
99
+ return response.json();
100
+ }
101
+ catch (error) {
102
+ return await this.handleError(error);
103
+ }
104
+ }
105
+ async getBuffer(url, options) {
106
+ try {
107
+ const client = this.getClient(url);
108
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
109
+ const response = await client.get(target, options);
110
+ const arrayBuffer = await response.arrayBuffer();
111
+ return Buffer.from(arrayBuffer);
112
+ }
113
+ catch (error) {
114
+ return await this.handleError(error);
115
+ }
116
+ }
117
+ async postFormData(url, formData, options) {
118
+ try {
119
+ const client = this.getClient(url);
120
+ const target = this.isAbsoluteUrl(url) ? url : this.normalizeUrl(url);
121
+ const response = await client.post(target, {
122
+ body: formData,
123
+ ...options,
124
+ });
125
+ if (response.status === 204 || response.headers.get('content-length') === '0') {
126
+ return {};
127
+ }
128
+ return response.json();
129
+ }
130
+ catch (error) {
131
+ return await this.handleError(error);
132
+ }
133
+ }
134
+ async handleError(error) {
135
+ // Check if it's an HTTP error from ky
136
+ if (error.response && error.response.status) {
137
+ const status = error.response.status;
138
+ let errorBody = '';
139
+ // Try to get the error body for more context
140
+ try {
141
+ errorBody = await error.response.text();
142
+ }
143
+ catch (e) {
144
+ // Ignore if we can't read the body
145
+ }
146
+ if (status === 401) {
147
+ throw new Error('Authentication failed. Check your email and API token.');
148
+ }
149
+ if (status === 404) {
150
+ throw new Error('Resource not found.');
151
+ }
152
+ if (status >= 500) {
153
+ throw new Error(`Server error: ${status}. Please try again later.`);
154
+ }
155
+ if (status === 429) {
156
+ throw new Error('Rate limited. Please wait before trying again.');
157
+ }
158
+ if (status === 400 && errorBody) {
159
+ // For 400 errors, include the API response for debugging
160
+ const msg = errorBody.length > 200 ? errorBody.substring(0, 200) : errorBody;
161
+ throw new Error(`HTTP ${status}: ${msg}`);
162
+ }
163
+ throw new Error(`HTTP ${status}: ${error.response.statusText}`);
164
+ }
165
+ throw error;
166
+ }
167
+ }
168
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,IAAI,CAAC;AAQpC,MAAM,OAAO,SAAS;IAMpB,YAAY,MAAuB;QACjC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEhE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC;YACtB,SAAS,EAAE,IAAI,CAAC,OAAO;YACvB,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,IAAI,CAAC,IAAI,EAAE;aACpC;YACD,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACL,KAAK,EAAE,CAAC;gBACR,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC;gBACzC,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;aAC5C;SACF,CAAC,CAAC;QAEH,iDAAiD;QACjD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,MAAM,CAAC;YACzB,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,IAAI,CAAC,IAAI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