@crypto512/jicon-mcp 2.3.0 → 2.3.19

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 (181) hide show
  1. package/PROMPT.md +10 -28
  2. package/README.md +35 -7
  3. package/TOOL_LIST.md +206 -136
  4. package/dist/config/constants.d.ts +17 -4
  5. package/dist/config/constants.d.ts.map +1 -1
  6. package/dist/config/constants.js +20 -5
  7. package/dist/config/constants.js.map +1 -1
  8. package/dist/config/loader.d.ts.map +1 -1
  9. package/dist/config/loader.js +6 -2
  10. package/dist/config/loader.js.map +1 -1
  11. package/dist/config/types.d.ts +19 -8
  12. package/dist/config/types.d.ts.map +1 -1
  13. package/dist/config/types.js +10 -8
  14. package/dist/config/types.js.map +1 -1
  15. package/dist/confluence/client.d.ts.map +1 -1
  16. package/dist/confluence/client.js +7 -2
  17. package/dist/confluence/client.js.map +1 -1
  18. package/dist/confluence/tools.d.ts +8 -13
  19. package/dist/confluence/tools.d.ts.map +1 -1
  20. package/dist/confluence/tools.js +19 -37
  21. package/dist/confluence/tools.js.map +1 -1
  22. package/dist/credentials/extractor.d.ts +14 -3
  23. package/dist/credentials/extractor.d.ts.map +1 -1
  24. package/dist/credentials/extractor.js +83 -13
  25. package/dist/credentials/extractor.js.map +1 -1
  26. package/dist/credentials/index.d.ts +1 -1
  27. package/dist/credentials/index.d.ts.map +1 -1
  28. package/dist/credentials/index.js.map +1 -1
  29. package/dist/credentials/types.d.ts +22 -0
  30. package/dist/credentials/types.d.ts.map +1 -1
  31. package/dist/credentials/types.js.map +1 -1
  32. package/dist/index.js +196 -184
  33. package/dist/index.js.map +1 -1
  34. package/dist/jira/activity-tools.d.ts +0 -4
  35. package/dist/jira/activity-tools.d.ts.map +1 -1
  36. package/dist/jira/activity-tools.js +42 -65
  37. package/dist/jira/activity-tools.js.map +1 -1
  38. package/dist/jira/client.d.ts +12 -0
  39. package/dist/jira/client.d.ts.map +1 -1
  40. package/dist/jira/client.js +30 -6
  41. package/dist/jira/client.js.map +1 -1
  42. package/dist/jira/formatters.d.ts +4 -1
  43. package/dist/jira/formatters.d.ts.map +1 -1
  44. package/dist/jira/formatters.js +9 -6
  45. package/dist/jira/formatters.js.map +1 -1
  46. package/dist/jira/tools.d.ts +48 -14
  47. package/dist/jira/tools.d.ts.map +1 -1
  48. package/dist/jira/tools.js +174 -101
  49. package/dist/jira/tools.js.map +1 -1
  50. package/dist/permissions/filter.d.ts.map +1 -1
  51. package/dist/permissions/filter.js +8 -4
  52. package/dist/permissions/filter.js.map +1 -1
  53. package/dist/permissions/tool-registry.d.ts +15 -13
  54. package/dist/permissions/tool-registry.d.ts.map +1 -1
  55. package/dist/permissions/tool-registry.js +16 -8
  56. package/dist/permissions/tool-registry.js.map +1 -1
  57. package/dist/session/context.d.ts +3 -3
  58. package/dist/session/context.d.ts.map +1 -1
  59. package/dist/session/manager.d.ts +58 -27
  60. package/dist/session/manager.d.ts.map +1 -1
  61. package/dist/session/manager.js +177 -79
  62. package/dist/session/manager.js.map +1 -1
  63. package/dist/tempo/client.d.ts.map +1 -1
  64. package/dist/tempo/client.js +3 -1
  65. package/dist/tempo/client.js.map +1 -1
  66. package/dist/tempo/tools.d.ts +4 -4
  67. package/dist/tempo/tools.d.ts.map +1 -1
  68. package/dist/tempo/tools.js +15 -0
  69. package/dist/tempo/tools.js.map +1 -1
  70. package/dist/transport/http.d.ts +17 -18
  71. package/dist/transport/http.d.ts.map +1 -1
  72. package/dist/transport/http.js +135 -120
  73. package/dist/transport/http.js.map +1 -1
  74. package/dist/transport/index.d.ts +7 -2
  75. package/dist/transport/index.d.ts.map +1 -1
  76. package/dist/transport/index.js +10 -4
  77. package/dist/transport/index.js.map +1 -1
  78. package/dist/transport/types.d.ts +0 -2
  79. package/dist/transport/types.d.ts.map +1 -1
  80. package/dist/transport/types.js.map +1 -1
  81. package/dist/utils/buffer-tools.d.ts +2 -2
  82. package/dist/utils/buffer-tools.d.ts.map +1 -1
  83. package/dist/utils/buffer-tools.js +41 -19
  84. package/dist/utils/buffer-tools.js.map +1 -1
  85. package/dist/utils/http-client.d.ts.map +1 -1
  86. package/dist/utils/http-client.js +99 -2
  87. package/dist/utils/http-client.js.map +1 -1
  88. package/dist/utils/jicon-help.d.ts +1 -1
  89. package/dist/utils/jicon-help.d.ts.map +1 -1
  90. package/dist/utils/jicon-help.js +126 -336
  91. package/dist/utils/jicon-help.js.map +1 -1
  92. package/dist/utils/logger.d.ts +43 -0
  93. package/dist/utils/logger.d.ts.map +1 -0
  94. package/dist/utils/logger.js +102 -0
  95. package/dist/utils/logger.js.map +1 -0
  96. package/dist/utils/plantuml/tools.js +2 -2
  97. package/dist/utils/plantuml/tools.js.map +1 -1
  98. package/dist/utils/response-formatter.d.ts +8 -0
  99. package/dist/utils/response-formatter.d.ts.map +1 -1
  100. package/dist/utils/response-formatter.js +65 -7
  101. package/dist/utils/response-formatter.js.map +1 -1
  102. package/dist/utils/schemas/confluence.js +11 -11
  103. package/dist/utils/schemas/confluence.js.map +1 -1
  104. package/dist/utils/schemas/index.d.ts +11 -0
  105. package/dist/utils/schemas/index.d.ts.map +1 -1
  106. package/dist/utils/schemas/index.js.map +1 -1
  107. package/dist/utils/schemas/jira.d.ts +1 -1
  108. package/dist/utils/schemas/jira.d.ts.map +1 -1
  109. package/dist/utils/schemas/jira.js +37 -35
  110. package/dist/utils/schemas/jira.js.map +1 -1
  111. package/dist/utils/schemas/tempo.js +13 -13
  112. package/dist/utils/schemas/tempo.js.map +1 -1
  113. package/dist/utils/whoami-tools.d.ts +17 -0
  114. package/dist/utils/whoami-tools.d.ts.map +1 -0
  115. package/dist/utils/whoami-tools.js +90 -0
  116. package/dist/utils/whoami-tools.js.map +1 -0
  117. package/package.json +3 -3
  118. package/dist/credentials/client-factory.d.ts +0 -64
  119. package/dist/credentials/client-factory.d.ts.map +0 -1
  120. package/dist/credentials/client-factory.js +0 -110
  121. package/dist/credentials/client-factory.js.map +0 -1
  122. package/dist/credentials/context.d.ts +0 -25
  123. package/dist/credentials/context.d.ts.map +0 -1
  124. package/dist/credentials/context.js +0 -35
  125. package/dist/credentials/context.js.map +0 -1
  126. package/dist/utils/buffer-pipeline/index.d.ts +0 -30
  127. package/dist/utils/buffer-pipeline/index.d.ts.map +0 -1
  128. package/dist/utils/buffer-pipeline/index.js +0 -317
  129. package/dist/utils/buffer-pipeline/index.js.map +0 -1
  130. package/dist/utils/buffer-pipeline/output/csv.d.ts +0 -20
  131. package/dist/utils/buffer-pipeline/output/csv.d.ts.map +0 -1
  132. package/dist/utils/buffer-pipeline/output/csv.js +0 -117
  133. package/dist/utils/buffer-pipeline/output/csv.js.map +0 -1
  134. package/dist/utils/buffer-pipeline/output/json.d.ts +0 -16
  135. package/dist/utils/buffer-pipeline/output/json.d.ts.map +0 -1
  136. package/dist/utils/buffer-pipeline/output/json.js +0 -48
  137. package/dist/utils/buffer-pipeline/output/json.js.map +0 -1
  138. package/dist/utils/buffer-pipeline/output/markdown.d.ts +0 -15
  139. package/dist/utils/buffer-pipeline/output/markdown.d.ts.map +0 -1
  140. package/dist/utils/buffer-pipeline/output/markdown.js +0 -105
  141. package/dist/utils/buffer-pipeline/output/markdown.js.map +0 -1
  142. package/dist/utils/buffer-pipeline/output/xhtml-list.d.ts +0 -16
  143. package/dist/utils/buffer-pipeline/output/xhtml-list.d.ts.map +0 -1
  144. package/dist/utils/buffer-pipeline/output/xhtml-list.js +0 -81
  145. package/dist/utils/buffer-pipeline/output/xhtml-list.js.map +0 -1
  146. package/dist/utils/buffer-pipeline/output/xhtml-table.d.ts +0 -15
  147. package/dist/utils/buffer-pipeline/output/xhtml-table.d.ts.map +0 -1
  148. package/dist/utils/buffer-pipeline/output/xhtml-table.js +0 -176
  149. package/dist/utils/buffer-pipeline/output/xhtml-table.js.map +0 -1
  150. package/dist/utils/buffer-pipeline/schema.d.ts +0 -1878
  151. package/dist/utils/buffer-pipeline/schema.d.ts.map +0 -1
  152. package/dist/utils/buffer-pipeline/schema.js +0 -168
  153. package/dist/utils/buffer-pipeline/schema.js.map +0 -1
  154. package/dist/utils/buffer-pipeline/stages/filter.d.ts +0 -32
  155. package/dist/utils/buffer-pipeline/stages/filter.d.ts.map +0 -1
  156. package/dist/utils/buffer-pipeline/stages/filter.js +0 -208
  157. package/dist/utils/buffer-pipeline/stages/filter.js.map +0 -1
  158. package/dist/utils/buffer-pipeline/stages/format.d.ts +0 -45
  159. package/dist/utils/buffer-pipeline/stages/format.d.ts.map +0 -1
  160. package/dist/utils/buffer-pipeline/stages/format.js +0 -160
  161. package/dist/utils/buffer-pipeline/stages/format.js.map +0 -1
  162. package/dist/utils/buffer-pipeline/stages/group-by.d.ts +0 -25
  163. package/dist/utils/buffer-pipeline/stages/group-by.d.ts.map +0 -1
  164. package/dist/utils/buffer-pipeline/stages/group-by.js +0 -190
  165. package/dist/utils/buffer-pipeline/stages/group-by.js.map +0 -1
  166. package/dist/utils/buffer-pipeline/stages/select.d.ts +0 -54
  167. package/dist/utils/buffer-pipeline/stages/select.d.ts.map +0 -1
  168. package/dist/utils/buffer-pipeline/stages/select.js +0 -228
  169. package/dist/utils/buffer-pipeline/stages/select.js.map +0 -1
  170. package/dist/utils/buffer-pipeline/stages/sort.d.ts +0 -20
  171. package/dist/utils/buffer-pipeline/stages/sort.d.ts.map +0 -1
  172. package/dist/utils/buffer-pipeline/stages/sort.js +0 -96
  173. package/dist/utils/buffer-pipeline/stages/sort.js.map +0 -1
  174. package/dist/utils/buffer-pipeline/types.d.ts +0 -277
  175. package/dist/utils/buffer-pipeline/types.d.ts.map +0 -1
  176. package/dist/utils/buffer-pipeline/types.js +0 -8
  177. package/dist/utils/buffer-pipeline/types.js.map +0 -1
  178. package/dist/utils/plantuml/docker-manager.d.ts +0 -37
  179. package/dist/utils/plantuml/docker-manager.d.ts.map +0 -1
  180. package/dist/utils/plantuml/docker-manager.js +0 -284
  181. package/dist/utils/plantuml/docker-manager.js.map +0 -1
@@ -1,32 +1,33 @@
1
1
  /**
2
2
  * Tool registry with virtual actions
3
3
  */
4
- export declare const JIRA_READ_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint"];
4
+ export declare const JIRA_READ_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issues", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_get_fields", "jira_search_users", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint"];
5
5
  export declare const JIRA_WRITE_TOOLS: readonly ["jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
6
- export declare const CONFLUENCE_READ_TOOLS: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_get_current_user_space", "confluence_draft_list", "confluence_draft_open", "confluence_review_list"];
6
+ export declare const CONFLUENCE_READ_TOOLS: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_draft_list", "confluence_draft_open", "confluence_review_list"];
7
7
  export declare const CONFLUENCE_WRITE_TOOLS: readonly ["confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
8
- export declare const CONFLUENCE_DRAFT_TOOLS: readonly ["confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_get_current_user_space", "confluence_list_spaces"];
8
+ export declare const CONFLUENCE_DRAFT_TOOLS: readonly ["confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_list_spaces"];
9
9
  export declare const TEMPO_READ_TOOLS: readonly ["tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs"];
10
10
  export declare const TEMPO_WRITE_TOOLS: readonly ["tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog"];
11
- export declare const BUFFER_TOOLS: readonly ["buffer_create", "buffer_get_items", "buffer_set_items", "buffer_get_structure", "buffer_get_element", "buffer_list", "buffer_clear", "buffer_grep", "buffer_edit", "buffer_validate_xhtml", "buffer_transform"];
11
+ export declare const BUFFER_TOOLS: readonly ["buffer_create", "buffer_get_items", "buffer_set_items", "buffer_get_structure", "buffer_get_element", "buffer_list", "buffer_get_schema", "buffer_clear", "buffer_grep", "buffer_edit", "buffer_validate_xhtml", "buffer_transform"];
12
12
  export declare const WORKLOAD_TOOLS: readonly ["workload_convert", "workload_sum"];
13
13
  export declare const URL_TOOLS: readonly ["fullurl", "parseurl"];
14
14
  export declare const JICON_HELP_TOOLS: readonly ["help"];
15
15
  export declare const DATE_TOOLS: readonly ["date_resolve"];
16
+ export declare const WHOAMI_TOOLS: readonly ["whoami"];
16
17
  export declare const PLANTUML_TOOLS: readonly ["plantuml_validate", "plantuml_render", "plantuml_status"];
17
- export declare const ALL_JIRA_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
18
- export declare const ALL_CONFLUENCE_TOOLS: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_get_current_user_space", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
18
+ export declare const ALL_JIRA_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issues", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_get_fields", "jira_search_users", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
19
+ export declare const ALL_CONFLUENCE_TOOLS: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
19
20
  export declare const ALL_TEMPO_TOOLS: readonly ["tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs", "tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog"];
20
- export declare const ALL_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues", "confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_get_current_user_space", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard", "tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs", "tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog", "buffer_create", "buffer_get_items", "buffer_set_items", "buffer_get_structure", "buffer_get_element", "buffer_list", "buffer_clear", "buffer_grep", "buffer_edit", "buffer_validate_xhtml", "buffer_transform", "workload_convert", "workload_sum", "fullurl", "parseurl", "help", "date_resolve", "plantuml_validate", "plantuml_render", "plantuml_status"];
21
+ export declare const ALL_TOOLS: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issues", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_get_fields", "jira_search_users", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues", "confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard", "tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs", "tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog", "buffer_create", "buffer_get_items", "buffer_set_items", "buffer_get_structure", "buffer_get_element", "buffer_list", "buffer_get_schema", "buffer_clear", "buffer_grep", "buffer_edit", "buffer_validate_xhtml", "buffer_transform", "workload_convert", "workload_sum", "fullurl", "parseurl", "help", "date_resolve", "whoami", "plantuml_validate", "plantuml_render", "plantuml_status"];
21
22
  export declare const VIRTUAL_ACTIONS: {
22
- readonly jira_read: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint"];
23
+ readonly jira_read: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issues", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_get_fields", "jira_search_users", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint"];
23
24
  readonly jira_write: readonly ["jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
24
- readonly jira_all: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
25
- readonly confluence_read: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_get_current_user_space", "confluence_draft_list", "confluence_draft_open", "confluence_review_list"];
25
+ readonly jira_all: readonly ["jira_search_issues", "jira_get_issue", "jira_get_issues", "jira_get_issue_comments", "jira_get_issue_worklogs", "jira_get_total_worklogs", "jira_list_epic_children", "jira_get_issue_types", "jira_get_fields", "jira_search_users", "jira_list_projects", "jira_get_project", "jira_get_transitions", "jira_list_boards", "jira_get_board", "jira_get_sprints", "jira_get_sprint_issues", "jira_get_issue_watchers", "jira_get_activity_digest", "jira_get_recent_comments", "jira_get_changelog", "jira_analyze_epic", "jira_epic_summary", "jira_analyze_sprint", "jira_create_issue", "jira_update_issue", "jira_transition_issue", "jira_add_comment", "jira_link_issues"];
26
+ readonly confluence_read: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_draft_list", "confluence_draft_open", "confluence_review_list"];
26
27
  readonly confluence_write: readonly ["confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
27
28
  readonly confluence_write_home: readonly ["confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
28
- readonly confluence_draft: readonly ["confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_get_current_user_space", "confluence_list_spaces"];
29
- readonly confluence_all: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_get_current_user_space", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
29
+ readonly confluence_draft: readonly ["confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_list_spaces"];
30
+ readonly confluence_all: readonly ["confluence_search_content", "confluence_get_page", "confluence_get_page_by_title", "confluence_edit", "confluence_list_spaces", "confluence_get_space", "confluence_get_page_children", "confluence_get_comments", "confluence_list_attachments", "confluence_draft_list", "confluence_draft_open", "confluence_review_list", "confluence_delete_page", "confluence_add_comment", "confluence_upload_attachment", "confluence_draft_create", "confluence_draft_save", "confluence_draft_delete", "confluence_review_publish", "confluence_review_discard"];
30
31
  readonly tempo_read: readonly ["tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs"];
31
32
  readonly tempo_write: readonly ["tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog"];
32
33
  readonly tempo_all: readonly ["tempo_get_worklogs", "tempo_get_worklog", "tempo_get_accounts", "tempo_get_account", "tempo_get_teams", "tempo_get_team", "tempo_get_team_worklogs", "tempo_get_user_info", "tempo_get_epic_worklogs", "tempo_get_top_worklogs", "tempo_log_work", "tempo_update_worklog", "tempo_delete_worklog"];
@@ -42,11 +43,12 @@ export type WorkloadTool = (typeof WORKLOAD_TOOLS)[number];
42
43
  export type UrlTool = (typeof URL_TOOLS)[number];
43
44
  export type JiconHelpTool = (typeof JICON_HELP_TOOLS)[number];
44
45
  export type DateTool = (typeof DATE_TOOLS)[number];
46
+ export type WhoamiTool = (typeof WHOAMI_TOOLS)[number];
45
47
  export type PlantUmlTool = (typeof PLANTUML_TOOLS)[number];
46
48
  export type JiraTool = JiraReadTool | JiraWriteTool;
47
49
  export type ConfluenceTool = ConfluenceReadTool | ConfluenceWriteTool;
48
50
  export type TempoTool = TempoReadTool | TempoWriteTool;
49
- export type RealToolName = JiraTool | ConfluenceTool | TempoTool | BufferTool | WorkloadTool | UrlTool | JiconHelpTool | DateTool | PlantUmlTool;
51
+ export type RealToolName = JiraTool | ConfluenceTool | TempoTool | BufferTool | WorkloadTool | UrlTool | JiconHelpTool | DateTool | WhoamiTool | PlantUmlTool;
50
52
  export type VirtualAction = keyof typeof VIRTUAL_ACTIONS;
51
53
  export type ToolName = RealToolName | VirtualAction;
52
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../../src/permissions/tool-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,eAAe,ufAuBlB,CAA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AAI,YAAY,CAE7D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAehE;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA4BhF"}
@@ -1,15 +1,18 @@
1
1
  /**
2
2
  * Tool registry with virtual actions
3
3
  */
4
- // Jira read-only tools (21 tools)
4
+ // Jira read-only tools (24 tools)
5
5
  export const JIRA_READ_TOOLS = [
6
6
  "jira_search_issues",
7
7
  "jira_get_issue",
8
+ "jira_get_issues",
8
9
  "jira_get_issue_comments",
9
10
  "jira_get_issue_worklogs",
10
11
  "jira_get_total_worklogs",
11
12
  "jira_list_epic_children",
12
13
  "jira_get_issue_types",
14
+ "jira_get_fields",
15
+ "jira_search_users",
13
16
  "jira_list_projects",
14
17
  "jira_get_project",
15
18
  "jira_get_transitions",
@@ -34,7 +37,7 @@ export const JIRA_WRITE_TOOLS = [
34
37
  "jira_add_comment",
35
38
  "jira_link_issues",
36
39
  ];
37
- // Confluence read-only tools (13 tools)
40
+ // Confluence read-only tools (12 tools)
38
41
  export const CONFLUENCE_READ_TOOLS = [
39
42
  "confluence_search_content",
40
43
  "confluence_get_page",
@@ -45,7 +48,6 @@ export const CONFLUENCE_READ_TOOLS = [
45
48
  "confluence_get_page_children",
46
49
  "confluence_get_comments",
47
50
  "confluence_list_attachments",
48
- "confluence_get_current_user_space",
49
51
  // Draft read tools
50
52
  "confluence_draft_list",
51
53
  "confluence_draft_open",
@@ -65,14 +67,14 @@ export const CONFLUENCE_WRITE_TOOLS = [
65
67
  "confluence_review_publish",
66
68
  "confluence_review_discard",
67
69
  ];
68
- // Confluence draft-only tools (5 tools)
70
+ // Confluence draft-only tools (4 tools)
69
71
  // For creating new content without reading existing pages - no information leakage
70
72
  // Includes space discovery (no page content) to know WHERE to create drafts
73
+ // Note: whoami tool provides personal space info, no separate tool needed
71
74
  export const CONFLUENCE_DRAFT_TOOLS = [
72
75
  "confluence_draft_create",
73
76
  "confluence_draft_save",
74
77
  "confluence_draft_delete",
75
- "confluence_get_current_user_space", // Returns user's personal space key only
76
78
  "confluence_list_spaces", // Returns space names/keys, no page content
77
79
  ];
78
80
  // Tempo read-only tools (10 tools)
@@ -94,7 +96,7 @@ export const TEMPO_WRITE_TOOLS = [
94
96
  "tempo_update_worklog",
95
97
  "tempo_delete_worklog",
96
98
  ];
97
- // Buffer tools (11 tools) - all local operations, write enforcement is on Jira/Confluence/Tempo
99
+ // Buffer tools (12 tools) - all local operations, write enforcement is on Jira/Confluence/Tempo
98
100
  export const BUFFER_TOOLS = [
99
101
  "buffer_create",
100
102
  "buffer_get_items",
@@ -102,6 +104,7 @@ export const BUFFER_TOOLS = [
102
104
  "buffer_get_structure",
103
105
  "buffer_get_element",
104
106
  "buffer_list",
107
+ "buffer_get_schema",
105
108
  "buffer_clear",
106
109
  "buffer_grep",
107
110
  "buffer_edit",
@@ -127,6 +130,10 @@ export const JICON_HELP_TOOLS = [
127
130
  export const DATE_TOOLS = [
128
131
  "date_resolve",
129
132
  ];
133
+ // Whoami tools (1 tool) - unified user identity across all services
134
+ export const WHOAMI_TOOLS = [
135
+ "whoami",
136
+ ];
130
137
  // PlantUML tools (3 tools) - External server validation and rendering, read-only
131
138
  export const PLANTUML_TOOLS = [
132
139
  "plantuml_validate",
@@ -140,7 +147,7 @@ export const ALL_CONFLUENCE_TOOLS = [
140
147
  ...CONFLUENCE_WRITE_TOOLS,
141
148
  ];
142
149
  export const ALL_TEMPO_TOOLS = [...TEMPO_READ_TOOLS, ...TEMPO_WRITE_TOOLS];
143
- export const ALL_TOOLS = [...ALL_JIRA_TOOLS, ...ALL_CONFLUENCE_TOOLS, ...ALL_TEMPO_TOOLS, ...BUFFER_TOOLS, ...WORKLOAD_TOOLS, ...URL_TOOLS, ...JICON_HELP_TOOLS, ...DATE_TOOLS, ...PLANTUML_TOOLS];
150
+ export const ALL_TOOLS = [...ALL_JIRA_TOOLS, ...ALL_CONFLUENCE_TOOLS, ...ALL_TEMPO_TOOLS, ...BUFFER_TOOLS, ...WORKLOAD_TOOLS, ...URL_TOOLS, ...JICON_HELP_TOOLS, ...DATE_TOOLS, ...WHOAMI_TOOLS, ...PLANTUML_TOOLS];
144
151
  // Virtual actions mapping (buffer tools are NOT virtual actions - they are auto-dependencies)
145
152
  // Note: confluence_write_home maps to same tools as confluence_write, but enables runtime restriction
146
153
  export const VIRTUAL_ACTIONS = {
@@ -203,7 +210,7 @@ export function expandVirtualActionsWithDependencies(actions) {
203
210
  expanded.add(action);
204
211
  }
205
212
  }
206
- // Auto-include buffer, workload, URL, help, date, and plantuml tools with any Jira, Confluence, or Tempo tool
213
+ // Auto-include buffer, workload, URL, help, date, whoami, and plantuml tools with any Jira, Confluence, or Tempo tool
207
214
  const hasJiraConfluenceOrTempo = Array.from(expanded).some((tool) => tool.startsWith("jira_") || tool.startsWith("confluence_") || tool.startsWith("tempo_"));
208
215
  if (hasJiraConfluenceOrTempo) {
209
216
  BUFFER_TOOLS.forEach((tool) => expanded.add(tool));
@@ -211,6 +218,7 @@ export function expandVirtualActionsWithDependencies(actions) {
211
218
  URL_TOOLS.forEach((tool) => expanded.add(tool));
212
219
  JICON_HELP_TOOLS.forEach((tool) => expanded.add(tool));
213
220
  DATE_TOOLS.forEach((tool) => expanded.add(tool));
221
+ WHOAMI_TOOLS.forEach((tool) => expanded.add(tool));
214
222
  PLANTUML_TOOLS.forEach((tool) => expanded.add(tool));
215
223
  }
216
224
  return Array.from(expanded);
@@ -1 +1 @@
1
- {"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["../../src/permissions/tool-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oBAAoB;IACpB,gBAAgB;IAChB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,sBAAsB;IACtB,oBAA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ACvD,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["../../src/permissions/tool-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kCAAkC;AAClC,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oBAAoB;IACpB,gBAAgB;IAChB,iBAAiB;IACjB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,sBAAsB;IACtB,iBAAiB;IACjB,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,wBAAwB;IACxB,yBAAyB;IACzB,wDAAwD;IACxD,0BAA0B;IAC1B,0BAA0B;IAC1B,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;CACb,CAAC;AAEX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,mBAAmB;IACnB,uBAAuB;IACvB,kBAAkB;IAClB,kBAAkB;CACV,CAAC;AAEX,wCAAwC;AACxC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,2BAA2B;IAC3B,qBAAqB;IACrB,8BAA8B;IAC9B,iBAAiB,EAAE,6DAA6D;IAChF,wBAAwB;IACxB,sBAAsB;IACtB,8BAA8B;IAC9B,yBAAyB;IACzB,6BAA6B;IAC7B,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,6BAA6B;IAC7B,wBAAwB;CA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CAAC,QAAQ,CAAC,CAAC,IAAI,CACxD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAClG,CAAC;IACF,IAAI,wBAAwB,EAAE,CAAC;QAC7B,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QAChD,gBAAgB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACvD,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,YAAY,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * them explicitly through function parameters.
7
7
  */
8
8
  import type { ContentBuffer } from "../utils/content-buffer.js";
9
- import type { RequestCredentials } from "../credentials/types.js";
9
+ import type { PartialRequestCredentials } from "../credentials/types.js";
10
10
  import type { JiraClient } from "../jira/client.js";
11
11
  import type { ConfluenceClient } from "../confluence/client.js";
12
12
  import type { TempoClient } from "../tempo/client.js";
@@ -16,7 +16,7 @@ import type { WriteHomeValidator } from "../permissions/write-home-validator.js"
16
16
  */
17
17
  export interface SessionContext {
18
18
  sessionId: string;
19
- credentials: RequestCredentials;
19
+ credentials: PartialRequestCredentials;
20
20
  buffer: ContentBuffer;
21
21
  jiraClient: JiraClient | null;
22
22
  confluenceClient: ConfluenceClient | null;
@@ -72,7 +72,7 @@ export declare function getSessionWriteHomeValidator(): WriteHomeValidator | nul
72
72
  * Get credentials from the current session context
73
73
  * Returns empty object if no session context
74
74
  */
75
- export declare function getSessionCredentials(): RequestCredentials;
75
+ export declare function getSessionCredentials(): PartialRequestCredentials;
76
76
  /**
77
77
  * Get the session ID for the current context
78
78
  * Returns undefined if no session context
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/session/context.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,kBAAkB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,WAAW,EAAE,WA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10 +7,10 @@
7
7
  * - Write-home validators
8
8
  *
9
9
  * Sessions are created on first request with credentials and automatically
10
- * cleaned up after 30 minutes of inactivity.
10
+ * cleaned up after 1 hour of inactivity.
11
11
  */
12
12
  import { ContentBuffer } from "../utils/content-buffer.js";
13
- import type { RequestCredentials } from "../credentials/types.js";
13
+ import type { PartialRequestCredentials } from "../credentials/types.js";
14
14
  import { JiraClient } from "../jira/client.js";
15
15
  import { ConfluenceClient } from "../confluence/client.js";
16
16
  import { TempoClient } from "../tempo/client.js";
@@ -29,7 +29,7 @@ export interface SessionClients {
29
29
  */
30
30
  export interface SessionData {
31
31
  sessionId: string;
32
- credentials: RequestCredentials;
32
+ credentials: PartialRequestCredentials;
33
33
  buffer: ContentBuffer;
34
34
  clients: SessionClients;
35
35
  writeHomeValidator: WriteHomeValidator | null;
@@ -46,14 +46,12 @@ export interface SessionManagerConfig {
46
46
  defaultConfluenceConfig: ApiConfig | null;
47
47
  /** Whether write-home restriction is enabled */
48
48
  writeHomeEnabled: boolean;
49
- /** Session timeout in milliseconds (default: 30 minutes) */
50
- sessionTimeoutMs?: number;
51
- /** Cleanup interval in milliseconds (default: 5 minutes) */
52
- cleanupIntervalMs?: number;
53
- /** Maximum buffers per session (default: 50) */
49
+ /** Maximum buffers per session (default: 10) */
54
50
  maxBuffersPerSession?: number;
55
51
  /** Maximum concurrent sessions (default: 1000, DoS protection) */
56
52
  maxSessions?: number;
53
+ /** Session timeout in milliseconds (default: 15 minutes) */
54
+ sessionTimeoutMs?: number;
57
55
  /** Callback when a session is destroyed (for transport cleanup coordination) */
58
56
  onSessionDestroyed?: (sessionId: string) => void;
59
57
  }
@@ -64,21 +62,32 @@ export interface SessionManagerConfig {
64
62
  * - ContentBuffer instances (isolated per session)
65
63
  * - API clients with their caches
66
64
  * - WriteHomeValidator instances
67
- * - Automatic cleanup of stale sessions
65
+ *
66
+ * Sessions are cleaned up after a configurable timeout of inactivity (default: 1 hour).
67
+ * The timeout is reset on actual tool calls.
68
68
  */
69
69
  export declare class SessionManager {
70
70
  private sessions;
71
- private cleanupInterval;
72
71
  private config;
73
- private sessionTimeoutMs;
74
72
  private maxSessions;
73
+ private sessionTimeoutMs;
74
+ private cleanupInterval;
75
75
  private onSessionDestroyed?;
76
76
  constructor(config: SessionManagerConfig);
77
+ /**
78
+ * Start the session cleanup interval
79
+ * Checks every minute for sessions that have exceeded the timeout
80
+ */
81
+ private startCleanupInterval;
82
+ /**
83
+ * Clean up sessions that have exceeded the inactivity timeout
84
+ */
85
+ private cleanupTimedOutSessions;
77
86
  /**
78
87
  * Create a new session with the given credentials
79
88
  * @throws Error if maximum sessions limit reached (DoS protection)
80
89
  */
81
- createSession(sessionId: string, credentials: RequestCredentials): SessionData;
90
+ createSession(sessionId: string, credentials: PartialRequestCredentials): SessionData;
82
91
  /**
83
92
  * Get an existing session by ID
84
93
  * Updates the lastActivity timestamp on access
@@ -89,13 +98,18 @@ export declare class SessionManager {
89
98
  * If session exists, returns it (and updates lastActivity)
90
99
  * If session doesn't exist, creates it with the given credentials
91
100
  *
92
- * If existing session has no clients but new credentials are provided,
93
- * updates the clients in-place (preserving session/transport).
101
+ * If existing session has different credentials than the request,
102
+ * recreates the affected clients to use the new credentials.
103
+ * This ensures per-request credential isolation in multi-user scenarios.
94
104
  */
95
- getOrCreateSession(sessionId: string, credentials: RequestCredentials): SessionData;
105
+ getOrCreateSession(sessionId: string, credentials: PartialRequestCredentials): SessionData;
96
106
  /**
97
- * Update session clients in-place when new credentials are provided
98
- * This preserves the session and its transport connection
107
+ * Update session clients in-place when credentials change
108
+ * This preserves the session and its transport connection while updating API clients
109
+ *
110
+ * @param session - The existing session to update
111
+ * @param credentials - New credentials from the request
112
+ * @param options - Flags indicating which credentials changed
99
113
  */
100
114
  private updateSessionClients;
101
115
  /**
@@ -103,10 +117,6 @@ export declare class SessionManager {
103
117
  * Also triggers onSessionDestroyed callback for transport cleanup
104
118
  */
105
119
  destroySession(sessionId: string): void;
106
- /**
107
- * Clean up sessions that have been inactive for longer than the timeout
108
- */
109
- private cleanupStaleSessions;
110
120
  /**
111
121
  * Get the number of active sessions
112
122
  */
@@ -115,6 +125,17 @@ export declare class SessionManager {
115
125
  * Get the maximum sessions limit
116
126
  */
117
127
  getMaxSessions(): number;
128
+ /**
129
+ * Check if a session exists without updating its activity timestamp
130
+ */
131
+ hasSession(sessionId: string): boolean;
132
+ /**
133
+ * Update session activity timestamp without returning full session data
134
+ * Used to extend session lifetime when real activity occurs (tool calls)
135
+ *
136
+ * @returns true if session was found, false otherwise
137
+ */
138
+ touchSession(sessionId: string): boolean;
118
139
  /**
119
140
  * Set the callback for when a session is destroyed
120
141
  * Used by HTTP transport for coordinated transport cleanup
@@ -126,17 +147,27 @@ export declare class SessionManager {
126
147
  */
127
148
  shutdown(): void;
128
149
  /**
129
- * Resolve Jira configuration from credentials or defaults
150
+ * Get the session timeout in milliseconds
130
151
  */
131
- private resolveJiraConfig;
152
+ getSessionTimeoutMs(): number;
132
153
  /**
133
- * Resolve Confluence configuration from credentials or defaults
154
+ * Resolve Jira configuration by merging partial per-request credentials with defaults
155
+ *
156
+ * Priority: per-request > environment defaults
157
+ * - URL from header OR URL from env
158
+ * - Token from header OR token from env
159
+ * - Both must be present for a valid config
134
160
  */
135
- private resolveConfluenceConfig;
161
+ private resolveJiraConfig;
136
162
  /**
137
- * Convert service credentials to ApiConfig format
163
+ * Resolve Confluence configuration by merging partial per-request credentials with defaults
164
+ *
165
+ * Priority: per-request > environment defaults
166
+ * - URL from header OR URL from env
167
+ * - Token from header OR token from env
168
+ * - Both must be present for a valid config
138
169
  */
139
- private toApiConfig;
170
+ private resolveConfluenceConfig;
140
171
  }
141
172
  /**
142
173
  * Initialize the session manager singleton
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/session/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,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