jumbo-cli 3.4.0 → 3.6.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 (230) hide show
  1. package/assets/agent-files/json/claude-settings.fragment.json +41 -0
  2. package/assets/agent-files/json/codex-hooks.fragment.json +36 -0
  3. package/assets/agent-files/json/copilot-hooks.fragment.json +14 -0
  4. package/assets/agent-files/json/cursor-hooks.fragment.json +11 -0
  5. package/assets/agent-files/json/gemini-settings.fragment.json +41 -0
  6. package/assets/agent-files/markdown/AGENTS.md +6 -0
  7. package/assets/agent-files/markdown/CLAUDE.md +6 -0
  8. package/assets/agent-files/markdown/GEMINI.md +6 -0
  9. package/assets/agent-files/markdown/JUMBO.md +7 -0
  10. package/assets/agent-files/markdown/copilot-instructions.md +6 -0
  11. package/assets/agent-files/markdown/cursor-rules.mdc +10 -0
  12. package/assets/skills/jumbo-bootstrap-session/SKILL.md +11 -0
  13. package/assets/skills/jumbo-command-discovery/SKILL.md +11 -0
  14. package/assets/skills/jumbo-context-maintenance/SKILL.md +11 -0
  15. package/assets/skills/jumbo-correction-capture/SKILL.md +11 -0
  16. package/dist/application/context/search/ISearchDocumentProjector.d.ts +10 -0
  17. package/dist/application/context/search/ISearchDocumentProjector.d.ts.map +1 -0
  18. package/dist/application/context/search/ISearchDocumentProjector.js +2 -0
  19. package/dist/application/context/search/ISearchDocumentProjector.js.map +1 -0
  20. package/dist/application/context/search/ISearchGateway.d.ts +6 -0
  21. package/dist/application/context/search/ISearchGateway.d.ts.map +1 -0
  22. package/dist/application/context/search/ISearchGateway.js +2 -0
  23. package/dist/application/context/search/ISearchGateway.js.map +1 -0
  24. package/dist/application/context/search/ISearchIndexReader.d.ts +9 -0
  25. package/dist/application/context/search/ISearchIndexReader.d.ts.map +1 -0
  26. package/dist/application/context/search/ISearchIndexReader.js +2 -0
  27. package/dist/application/context/search/ISearchIndexReader.js.map +1 -0
  28. package/dist/application/context/search/ISearchIndexRebuildGateway.d.ts +6 -0
  29. package/dist/application/context/search/ISearchIndexRebuildGateway.d.ts.map +1 -0
  30. package/dist/application/context/search/ISearchIndexRebuildGateway.js +2 -0
  31. package/dist/application/context/search/ISearchIndexRebuildGateway.js.map +1 -0
  32. package/dist/application/context/search/ISearchIndexRebuildStore.d.ts +6 -0
  33. package/dist/application/context/search/ISearchIndexRebuildStore.d.ts.map +1 -0
  34. package/dist/application/context/search/ISearchIndexRebuildStore.js +2 -0
  35. package/dist/application/context/search/ISearchIndexRebuildStore.js.map +1 -0
  36. package/dist/application/context/search/ISearchIndexWriter.d.ts +7 -0
  37. package/dist/application/context/search/ISearchIndexWriter.d.ts.map +1 -0
  38. package/dist/application/context/search/ISearchIndexWriter.js +2 -0
  39. package/dist/application/context/search/ISearchIndexWriter.js.map +1 -0
  40. package/dist/application/context/search/ISearchProvider.d.ts +6 -0
  41. package/dist/application/context/search/ISearchProvider.d.ts.map +1 -0
  42. package/dist/application/context/search/ISearchProvider.js +2 -0
  43. package/dist/application/context/search/ISearchProvider.js.map +1 -0
  44. package/dist/application/context/search/LocalSearchGateway.d.ts +14 -0
  45. package/dist/application/context/search/LocalSearchGateway.d.ts.map +1 -0
  46. package/dist/application/context/search/LocalSearchGateway.js +40 -0
  47. package/dist/application/context/search/LocalSearchGateway.js.map +1 -0
  48. package/dist/application/context/search/SearchCategory.d.ts +10 -0
  49. package/dist/application/context/search/SearchCategory.d.ts.map +1 -0
  50. package/dist/application/context/search/SearchCategory.js +8 -0
  51. package/dist/application/context/search/SearchCategory.js.map +1 -0
  52. package/dist/application/context/search/SearchController.d.ts +9 -0
  53. package/dist/application/context/search/SearchController.d.ts.map +1 -0
  54. package/dist/application/context/search/SearchController.js +9 -0
  55. package/dist/application/context/search/SearchController.js.map +1 -0
  56. package/dist/application/context/search/SearchCriteria.d.ts +8 -0
  57. package/dist/application/context/search/SearchCriteria.d.ts.map +1 -0
  58. package/dist/application/context/search/SearchCriteria.js +2 -0
  59. package/dist/application/context/search/SearchCriteria.js.map +1 -0
  60. package/dist/application/context/search/SearchDocument.d.ts +16 -0
  61. package/dist/application/context/search/SearchDocument.d.ts.map +1 -0
  62. package/dist/application/context/search/SearchDocument.js +2 -0
  63. package/dist/application/context/search/SearchDocument.js.map +1 -0
  64. package/dist/application/context/search/SearchDocumentChange.d.ts +10 -0
  65. package/dist/application/context/search/SearchDocumentChange.d.ts.map +1 -0
  66. package/dist/application/context/search/SearchDocumentChange.js +2 -0
  67. package/dist/application/context/search/SearchDocumentChange.js.map +1 -0
  68. package/dist/application/context/search/SearchDocumentProjectorRegistry.d.ts +9 -0
  69. package/dist/application/context/search/SearchDocumentProjectorRegistry.d.ts.map +1 -0
  70. package/dist/application/context/search/SearchDocumentProjectorRegistry.js +17 -0
  71. package/dist/application/context/search/SearchDocumentProjectorRegistry.js.map +1 -0
  72. package/dist/application/context/search/SearchDocumentSource.d.ts +5 -0
  73. package/dist/application/context/search/SearchDocumentSource.d.ts.map +1 -0
  74. package/dist/application/context/search/SearchDocumentSource.js +2 -0
  75. package/dist/application/context/search/SearchDocumentSource.js.map +1 -0
  76. package/dist/application/context/search/SearchFacetValue.d.ts +2 -0
  77. package/dist/application/context/search/SearchFacetValue.d.ts.map +1 -0
  78. package/dist/application/context/search/SearchFacetValue.js +2 -0
  79. package/dist/application/context/search/SearchFacetValue.js.map +1 -0
  80. package/dist/application/context/search/SearchHit.d.ts +13 -0
  81. package/dist/application/context/search/SearchHit.d.ts.map +1 -0
  82. package/dist/application/context/search/SearchHit.js +2 -0
  83. package/dist/application/context/search/SearchHit.js.map +1 -0
  84. package/dist/application/context/search/SearchHitGroup.d.ts +7 -0
  85. package/dist/application/context/search/SearchHitGroup.d.ts.map +1 -0
  86. package/dist/application/context/search/SearchHitGroup.js +2 -0
  87. package/dist/application/context/search/SearchHitGroup.js.map +1 -0
  88. package/dist/application/context/search/SearchIndexEventHandler.d.ts +14 -0
  89. package/dist/application/context/search/SearchIndexEventHandler.d.ts.map +1 -0
  90. package/dist/application/context/search/SearchIndexEventHandler.js +24 -0
  91. package/dist/application/context/search/SearchIndexEventHandler.js.map +1 -0
  92. package/dist/application/context/search/SearchIndexRebuildController.d.ts +9 -0
  93. package/dist/application/context/search/SearchIndexRebuildController.d.ts.map +1 -0
  94. package/dist/application/context/search/SearchIndexRebuildController.js +9 -0
  95. package/dist/application/context/search/SearchIndexRebuildController.js.map +1 -0
  96. package/dist/application/context/search/SearchIndexRebuildRequest.d.ts +3 -0
  97. package/dist/application/context/search/SearchIndexRebuildRequest.d.ts.map +1 -0
  98. package/dist/application/context/search/SearchIndexRebuildRequest.js +2 -0
  99. package/dist/application/context/search/SearchIndexRebuildRequest.js.map +1 -0
  100. package/dist/application/context/search/SearchIndexRebuildResponse.d.ts +9 -0
  101. package/dist/application/context/search/SearchIndexRebuildResponse.d.ts.map +1 -0
  102. package/dist/application/context/search/SearchIndexRebuildResponse.js +2 -0
  103. package/dist/application/context/search/SearchIndexRebuildResponse.js.map +1 -0
  104. package/dist/application/context/search/SearchRequest.d.ts +5 -0
  105. package/dist/application/context/search/SearchRequest.d.ts.map +1 -0
  106. package/dist/application/context/search/SearchRequest.js +2 -0
  107. package/dist/application/context/search/SearchRequest.js.map +1 -0
  108. package/dist/application/context/search/SearchResponse.d.ts +7 -0
  109. package/dist/application/context/search/SearchResponse.d.ts.map +1 -0
  110. package/dist/application/context/search/SearchResponse.js +2 -0
  111. package/dist/application/context/search/SearchResponse.js.map +1 -0
  112. package/dist/application/context/search/SearchResultLimit.d.ts +6 -0
  113. package/dist/application/context/search/SearchResultLimit.d.ts.map +1 -0
  114. package/dist/application/context/search/SearchResultLimit.js +6 -0
  115. package/dist/application/context/search/SearchResultLimit.js.map +1 -0
  116. package/dist/application/context/search/projectors/ComponentSearchDocumentProjector.d.ts +14 -0
  117. package/dist/application/context/search/projectors/ComponentSearchDocumentProjector.d.ts.map +1 -0
  118. package/dist/application/context/search/projectors/ComponentSearchDocumentProjector.js +93 -0
  119. package/dist/application/context/search/projectors/ComponentSearchDocumentProjector.js.map +1 -0
  120. package/dist/application/context/search/projectors/DecisionSearchDocumentProjector.d.ts +14 -0
  121. package/dist/application/context/search/projectors/DecisionSearchDocumentProjector.d.ts.map +1 -0
  122. package/dist/application/context/search/projectors/DecisionSearchDocumentProjector.js +92 -0
  123. package/dist/application/context/search/projectors/DecisionSearchDocumentProjector.js.map +1 -0
  124. package/dist/application/context/search/projectors/DependencySearchDocumentProjector.d.ts +14 -0
  125. package/dist/application/context/search/projectors/DependencySearchDocumentProjector.d.ts.map +1 -0
  126. package/dist/application/context/search/projectors/DependencySearchDocumentProjector.js +89 -0
  127. package/dist/application/context/search/projectors/DependencySearchDocumentProjector.js.map +1 -0
  128. package/dist/application/context/search/projectors/GuidelineSearchDocumentProjector.d.ts +14 -0
  129. package/dist/application/context/search/projectors/GuidelineSearchDocumentProjector.d.ts.map +1 -0
  130. package/dist/application/context/search/projectors/GuidelineSearchDocumentProjector.js +71 -0
  131. package/dist/application/context/search/projectors/GuidelineSearchDocumentProjector.js.map +1 -0
  132. package/dist/application/context/search/projectors/InvariantSearchDocumentProjector.d.ts +14 -0
  133. package/dist/application/context/search/projectors/InvariantSearchDocumentProjector.d.ts.map +1 -0
  134. package/dist/application/context/search/projectors/InvariantSearchDocumentProjector.js +61 -0
  135. package/dist/application/context/search/projectors/InvariantSearchDocumentProjector.js.map +1 -0
  136. package/dist/application/host/IApplicationContainer.d.ts +6 -0
  137. package/dist/application/host/IApplicationContainer.d.ts.map +1 -1
  138. package/dist/domain/project/AgentFileAssetContent.d.ts +7 -0
  139. package/dist/domain/project/AgentFileAssetContent.d.ts.map +1 -0
  140. package/dist/domain/project/AgentFileAssetContent.js +24 -0
  141. package/dist/domain/project/AgentFileAssetContent.js.map +1 -0
  142. package/dist/domain/project/AgentFileReferenceContent.d.ts +1 -6
  143. package/dist/domain/project/AgentFileReferenceContent.d.ts.map +1 -1
  144. package/dist/domain/project/AgentFileReferenceContent.js +3 -12
  145. package/dist/domain/project/AgentFileReferenceContent.js.map +1 -1
  146. package/dist/domain/project/AgentsMdContent.d.ts +1 -7
  147. package/dist/domain/project/AgentsMdContent.d.ts.map +1 -1
  148. package/dist/domain/project/AgentsMdContent.js +4 -14
  149. package/dist/domain/project/AgentsMdContent.js.map +1 -1
  150. package/dist/domain/project/CopilotInstructionsContent.d.ts +5 -6
  151. package/dist/domain/project/CopilotInstructionsContent.d.ts.map +1 -1
  152. package/dist/domain/project/CopilotInstructionsContent.js +10 -17
  153. package/dist/domain/project/CopilotInstructionsContent.js.map +1 -1
  154. package/dist/domain/project/CursorRulesContent.d.ts +1 -7
  155. package/dist/domain/project/CursorRulesContent.d.ts.map +1 -1
  156. package/dist/domain/project/CursorRulesContent.js +4 -23
  157. package/dist/domain/project/CursorRulesContent.js.map +1 -1
  158. package/dist/domain/project/JumboMdContent.d.ts +1 -10
  159. package/dist/domain/project/JumboMdContent.d.ts.map +1 -1
  160. package/dist/domain/project/JumboMdContent.js +4 -117
  161. package/dist/domain/project/JumboMdContent.js.map +1 -1
  162. package/dist/infrastructure/context/project/init/ClaudeConfigurer.d.ts.map +1 -1
  163. package/dist/infrastructure/context/project/init/ClaudeConfigurer.js +2 -40
  164. package/dist/infrastructure/context/project/init/ClaudeConfigurer.js.map +1 -1
  165. package/dist/infrastructure/context/project/init/CodexConfigurer.d.ts.map +1 -1
  166. package/dist/infrastructure/context/project/init/CodexConfigurer.js +2 -35
  167. package/dist/infrastructure/context/project/init/CodexConfigurer.js.map +1 -1
  168. package/dist/infrastructure/context/project/init/CopilotConfigurer.d.ts.map +1 -1
  169. package/dist/infrastructure/context/project/init/CopilotConfigurer.js +4 -26
  170. package/dist/infrastructure/context/project/init/CopilotConfigurer.js.map +1 -1
  171. package/dist/infrastructure/context/project/init/CursorConfigurer.d.ts.map +1 -1
  172. package/dist/infrastructure/context/project/init/CursorConfigurer.js +2 -10
  173. package/dist/infrastructure/context/project/init/CursorConfigurer.js.map +1 -1
  174. package/dist/infrastructure/context/project/init/GeminiConfigurer.d.ts.map +1 -1
  175. package/dist/infrastructure/context/project/init/GeminiConfigurer.js +2 -40
  176. package/dist/infrastructure/context/project/init/GeminiConfigurer.js.map +1 -1
  177. package/dist/infrastructure/context/search/LocalSearchIndexRebuildGateway.d.ts +18 -0
  178. package/dist/infrastructure/context/search/LocalSearchIndexRebuildGateway.d.ts.map +1 -0
  179. package/dist/infrastructure/context/search/LocalSearchIndexRebuildGateway.js +28 -0
  180. package/dist/infrastructure/context/search/LocalSearchIndexRebuildGateway.js.map +1 -0
  181. package/dist/infrastructure/context/search/ProjectedSearchIndexProvider.d.ts +10 -0
  182. package/dist/infrastructure/context/search/ProjectedSearchIndexProvider.d.ts.map +1 -0
  183. package/dist/infrastructure/context/search/ProjectedSearchIndexProvider.js +9 -0
  184. package/dist/infrastructure/context/search/ProjectedSearchIndexProvider.js.map +1 -0
  185. package/dist/infrastructure/context/search/SearchIndexRecord.d.ts +14 -0
  186. package/dist/infrastructure/context/search/SearchIndexRecord.d.ts.map +1 -0
  187. package/dist/infrastructure/context/search/SearchIndexRecord.js +2 -0
  188. package/dist/infrastructure/context/search/SearchIndexRecord.js.map +1 -0
  189. package/dist/infrastructure/context/search/SearchIndexRecordMapper.d.ts +10 -0
  190. package/dist/infrastructure/context/search/SearchIndexRecordMapper.d.ts.map +1 -0
  191. package/dist/infrastructure/context/search/SearchIndexRecordMapper.js +44 -0
  192. package/dist/infrastructure/context/search/SearchIndexRecordMapper.js.map +1 -0
  193. package/dist/infrastructure/context/search/SqliteSearchIndexStore.d.ts +21 -0
  194. package/dist/infrastructure/context/search/SqliteSearchIndexStore.d.ts.map +1 -0
  195. package/dist/infrastructure/context/search/SqliteSearchIndexStore.js +94 -0
  196. package/dist/infrastructure/context/search/SqliteSearchIndexStore.js.map +1 -0
  197. package/dist/infrastructure/context/search/migrations/001-create-search-index-entries.sql +26 -0
  198. package/dist/infrastructure/host/HostBuilder.d.ts.map +1 -1
  199. package/dist/infrastructure/host/HostBuilder.js +19 -0
  200. package/dist/infrastructure/host/HostBuilder.js.map +1 -1
  201. package/dist/infrastructure/messaging/ProjectionBusFactory.d.ts +1 -0
  202. package/dist/infrastructure/messaging/ProjectionBusFactory.d.ts.map +1 -1
  203. package/dist/infrastructure/messaging/ProjectionBusFactory.js +13 -0
  204. package/dist/infrastructure/messaging/ProjectionBusFactory.js.map +1 -1
  205. package/dist/infrastructure/persistence/migrations.config.d.ts.map +1 -1
  206. package/dist/infrastructure/persistence/migrations.config.js +1 -0
  207. package/dist/infrastructure/persistence/migrations.config.js.map +1 -1
  208. package/dist/presentation/cli/commands/index/rebuild/IndexRebuildOutputBuilder.d.ts +20 -0
  209. package/dist/presentation/cli/commands/index/rebuild/IndexRebuildOutputBuilder.d.ts.map +1 -0
  210. package/dist/presentation/cli/commands/index/rebuild/IndexRebuildOutputBuilder.js +54 -0
  211. package/dist/presentation/cli/commands/index/rebuild/IndexRebuildOutputBuilder.js.map +1 -0
  212. package/dist/presentation/cli/commands/index/rebuild/index.rebuild.d.ts +8 -0
  213. package/dist/presentation/cli/commands/index/rebuild/index.rebuild.d.ts.map +1 -0
  214. package/dist/presentation/cli/commands/index/rebuild/index.rebuild.js +45 -0
  215. package/dist/presentation/cli/commands/index/rebuild/index.rebuild.js.map +1 -0
  216. package/dist/presentation/cli/commands/registry/generated-commands.d.ts.map +1 -1
  217. package/dist/presentation/cli/commands/registry/generated-commands.js +12 -0
  218. package/dist/presentation/cli/commands/registry/generated-commands.js.map +1 -1
  219. package/dist/presentation/cli/commands/search/SearchOutputBuilder.d.ts +17 -0
  220. package/dist/presentation/cli/commands/search/SearchOutputBuilder.d.ts.map +1 -0
  221. package/dist/presentation/cli/commands/search/SearchOutputBuilder.js +111 -0
  222. package/dist/presentation/cli/commands/search/SearchOutputBuilder.js.map +1 -0
  223. package/dist/presentation/cli/commands/search/search.d.ts +12 -0
  224. package/dist/presentation/cli/commands/search/search.d.ts.map +1 -0
  225. package/dist/presentation/cli/commands/search/search.js +119 -0
  226. package/dist/presentation/cli/commands/search/search.js.map +1 -0
  227. package/dist/presentation/cli/help/SubcommandHelpFormatter.d.ts.map +1 -1
  228. package/dist/presentation/cli/help/SubcommandHelpFormatter.js +3 -4
  229. package/dist/presentation/cli/help/SubcommandHelpFormatter.js.map +1 -1
  230. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "jumbo session start"
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ "matcher": "compact",
15
+ "hooks": [
16
+ {
17
+ "type": "command",
18
+ "command": "jumbo work resume"
19
+ }
20
+ ]
21
+ }
22
+ ],
23
+ "PreCompact": [
24
+ {
25
+ "matcher": "auto",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "jumbo work pause"
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ },
35
+ "permissions": {
36
+ "allow": [
37
+ "Bash(jumbo --help)"
38
+ ]
39
+ }
40
+ }
41
+
@@ -0,0 +1,36 @@
1
+ {
2
+ "hooks": {
3
+ "PreCompact": [
4
+ {
5
+ "matcher": "auto",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "jumbo work pause --format text"
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "SessionStart": [
15
+ {
16
+ "matcher": "startup",
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "jumbo session start --format text"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "matcher": "compact",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "jumbo work resume --format text"
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ }
35
+ }
36
+
@@ -0,0 +1,14 @@
1
+ {
2
+ "version": 1,
3
+ "hooks": {
4
+ "sessionStart": [
5
+ {
6
+ "type": "command",
7
+ "bash": "jumbo session start",
8
+ "cwd": ".",
9
+ "timeoutSec": 10
10
+ }
11
+ ]
12
+ }
13
+ }
14
+
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": 1,
3
+ "hooks": {
4
+ "sessionStart": [
5
+ {
6
+ "command": "jumbo session start"
7
+ }
8
+ ]
9
+ }
10
+ }
11
+
@@ -0,0 +1,41 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "jumbo session start"
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ "matcher": "compress",
15
+ "hooks": [
16
+ {
17
+ "type": "command",
18
+ "command": "jumbo work resume"
19
+ }
20
+ ]
21
+ }
22
+ ],
23
+ "PreCompress": [
24
+ {
25
+ "matcher": "auto",
26
+ "hooks": [
27
+ {
28
+ "type": "command",
29
+ "command": "jumbo work pause"
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ },
35
+ "tools": {
36
+ "allowed": [
37
+ "run_shell_command(jumbo --help)"
38
+ ]
39
+ }
40
+ }
41
+
@@ -0,0 +1,6 @@
1
+ # AGENTS.md
2
+
3
+ ## Instructions for Agents on how to collaborate with Jumbo
4
+
5
+ See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
6
+
@@ -0,0 +1,6 @@
1
+ # CLAUDE.md
2
+
3
+ ## Instructions for Agents on how to collaborate with Jumbo
4
+
5
+ See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
6
+
@@ -0,0 +1,6 @@
1
+ # GEMINI.md
2
+
3
+ ## Instructions for Agents on how to collaborate with Jumbo
4
+
5
+ See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
6
+
@@ -0,0 +1,7 @@
1
+ # JUMBO.md
2
+
3
+ ## Instructions for Agents on how to collaborate with Jumbo
4
+
5
+ Follow all prompts returned by `jumbo` commands.
6
+
7
+ If you have not already been routed by a Jumbo command for the current task, run `jumbo session start`, unless it was already run from a configured hook.
@@ -0,0 +1,6 @@
1
+ # copilot-instructions.md
2
+
3
+ ## Instructions for Agents on how to collaborate with Jumbo
4
+
5
+ See ../JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
6
+
@@ -0,0 +1,10 @@
1
+ ---
2
+ alwaysApply: true
3
+ ---
4
+
5
+ <!-- jumbo:cursor-rules -->
6
+
7
+ # Jumbo
8
+
9
+ See JUMBO.md and follow all instructions. If the file does not exist, then ignore this instruction.
10
+
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: jumbo-bootstrap-session
3
+ description: Use when a Jumbo-managed agent file tells the agent to bootstrap the session. Runs Jumbo's session router only when the agent has not already received a routed Jumbo command.
4
+ ---
5
+
6
+ # Jumbo Bootstrap Session
7
+
8
+ Run `jumbo session start` when no Jumbo command has already routed the current task.
9
+
10
+ Follow the prompt returned by the command. Do not load project context from static managed files.
11
+
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: jumbo-command-discovery
3
+ description: Use when an agent needs to discover Jumbo command syntax after session routing. Directs command discovery through CLI help instead of static command catalogs.
4
+ ---
5
+
6
+ # Jumbo Command Discovery
7
+
8
+ Use `jumbo --help` and command-specific `--help` output for command syntax.
9
+
10
+ Do not rely on managed instruction files for command catalogs.
11
+
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: jumbo-context-maintenance
3
+ description: Use when implementation discovers durable project context that must be recorded in Jumbo. Captures decisions, components, dependencies, relations, guidelines, and invariants during the work.
4
+ ---
5
+
6
+ # Jumbo Context Maintenance
7
+
8
+ Record durable context while it is discovered.
9
+
10
+ Use the specific Jumbo command for the context type, then link it to the active goal when a relation exists.
11
+
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: jumbo-correction-capture
3
+ description: Use when the user corrects an approach, constraint, workflow, or style. Converts corrections into Jumbo guidelines or invariants so future sessions receive the constraint.
4
+ ---
5
+
6
+ # Jumbo Correction Capture
7
+
8
+ When user feedback establishes a repeatable practice, record it as a guideline.
9
+
10
+ When user feedback establishes a non-negotiable constraint, record it as an invariant.
11
+
@@ -0,0 +1,10 @@
1
+ import { BaseEvent } from "../../../domain/BaseEvent.js";
2
+ import { SearchDocument } from "./SearchDocument.js";
3
+ import { SearchDocumentChange } from "./SearchDocumentChange.js";
4
+ import { SearchDocumentSource } from "./SearchDocumentSource.js";
5
+ export interface ISearchDocumentProjector {
6
+ readonly eventTypes: readonly string[];
7
+ getSource(event: BaseEvent): SearchDocumentSource;
8
+ project(event: BaseEvent, current: SearchDocument | null): SearchDocumentChange | null;
9
+ }
10
+ //# sourceMappingURL=ISearchDocumentProjector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchDocumentProjector.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchDocumentProjector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,oBAAoB,CAAC;IAClD,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,oBAAoB,GAAG,IAAI,CAAC;CACxF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchDocumentProjector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchDocumentProjector.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchDocumentProjector.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { SearchRequest } from "./SearchRequest.js";
2
+ import { SearchResponse } from "./SearchResponse.js";
3
+ export interface ISearchGateway {
4
+ search(request: SearchRequest): Promise<SearchResponse>;
5
+ }
6
+ //# sourceMappingURL=ISearchGateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchGateway.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchGateway.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchGateway.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { SearchCriteria } from "./SearchCriteria.js";
2
+ import { SearchDocument } from "./SearchDocument.js";
3
+ import { SearchDocumentSource } from "./SearchDocumentSource.js";
4
+ import { SearchHit } from "./SearchHit.js";
5
+ export interface ISearchIndexReader {
6
+ findBySource(source: SearchDocumentSource): Promise<SearchDocument | null>;
7
+ search(criteria: SearchCriteria): Promise<SearchHit[]>;
8
+ }
9
+ //# sourceMappingURL=ISearchIndexReader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexReader.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexReader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC3E,MAAM,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;CACxD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchIndexReader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexReader.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexReader.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { SearchIndexRebuildRequest } from "./SearchIndexRebuildRequest.js";
2
+ import { SearchIndexRebuildResponse } from "./SearchIndexRebuildResponse.js";
3
+ export interface ISearchIndexRebuildGateway {
4
+ rebuildSearchIndex(request: SearchIndexRebuildRequest): Promise<SearchIndexRebuildResponse>;
5
+ }
6
+ //# sourceMappingURL=ISearchIndexRebuildGateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexRebuildGateway.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexRebuildGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC7F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchIndexRebuildGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexRebuildGateway.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexRebuildGateway.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { SearchCategory } from "./SearchCategory.js";
2
+ export interface ISearchIndexRebuildStore {
3
+ clear(): Promise<number>;
4
+ countByCategory(): Promise<Readonly<Partial<Record<SearchCategory, number>>>>;
5
+ }
6
+ //# sourceMappingURL=ISearchIndexRebuildStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexRebuildStore.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexRebuildStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,wBAAwB;IACvC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,eAAe,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchIndexRebuildStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexRebuildStore.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexRebuildStore.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { SearchDocument } from "./SearchDocument.js";
2
+ import { SearchDocumentSource } from "./SearchDocumentSource.js";
3
+ export interface ISearchIndexWriter {
4
+ upsert(document: SearchDocument): Promise<void>;
5
+ remove(source: SearchDocumentSource): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=ISearchIndexWriter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexWriter.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchIndexWriter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchIndexWriter.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchIndexWriter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { SearchCriteria } from "./SearchCriteria.js";
2
+ import { SearchHit } from "./SearchHit.js";
3
+ export interface ISearchProvider {
4
+ search(criteria: SearchCriteria): Promise<readonly SearchHit[]>;
5
+ }
6
+ //# sourceMappingURL=ISearchProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchProvider.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,SAAS,EAAE,CAAC,CAAC;CACjE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISearchProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISearchProvider.js","sourceRoot":"","sources":["../../../../src/application/context/search/ISearchProvider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { ISearchGateway } from "./ISearchGateway.js";
2
+ import { ISearchProvider } from "./ISearchProvider.js";
3
+ import { SearchRequest } from "./SearchRequest.js";
4
+ import { SearchResponse } from "./SearchResponse.js";
5
+ export declare class LocalSearchGateway implements ISearchGateway {
6
+ private readonly providers;
7
+ constructor(providers: readonly ISearchProvider[]);
8
+ search(request: SearchRequest): Promise<SearchResponse>;
9
+ private filterHits;
10
+ private sortHits;
11
+ private limitHits;
12
+ private groupByCategory;
13
+ }
14
+ //# sourceMappingURL=LocalSearchGateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalSearchGateway.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/LocalSearchGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,qBAAa,kBAAmB,YAAW,cAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS,eAAe,EAAE;IAE5D,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;IAW7D,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,eAAe;CAcxB"}
@@ -0,0 +1,40 @@
1
+ import { SearchResultLimit } from "./SearchResultLimit.js";
2
+ export class LocalSearchGateway {
3
+ constructor(providers) {
4
+ this.providers = providers;
5
+ }
6
+ async search(request) {
7
+ const providerHits = await Promise.all(this.providers.map((provider) => provider.search(request.criteria)));
8
+ const hits = this.limitHits(this.sortHits(this.filterHits(providerHits.flat(), request)), request);
9
+ if (!request.criteria.groupByCategory) {
10
+ return { hits };
11
+ }
12
+ return { hits, groups: this.groupByCategory(hits) };
13
+ }
14
+ filterHits(hits, request) {
15
+ if (!request.criteria.category) {
16
+ return [...hits];
17
+ }
18
+ return hits.filter((hit) => hit.category === request.criteria.category);
19
+ }
20
+ sortHits(hits) {
21
+ return [...hits].sort((left, right) => right.score - left.score);
22
+ }
23
+ limitHits(hits, request) {
24
+ const limit = Math.min(Math.max(request.criteria.limit ?? SearchResultLimit.DEFAULT, SearchResultLimit.MIN), SearchResultLimit.MAX);
25
+ return hits.slice(0, limit);
26
+ }
27
+ groupByCategory(hits) {
28
+ const groups = new Map();
29
+ for (const hit of hits) {
30
+ const group = groups.get(hit.category) ?? [];
31
+ group.push(hit);
32
+ groups.set(hit.category, group);
33
+ }
34
+ return [...groups.entries()].map(([category, groupedHits]) => ({
35
+ category,
36
+ hits: groupedHits,
37
+ }));
38
+ }
39
+ }
40
+ //# sourceMappingURL=LocalSearchGateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalSearchGateway.js","sourceRoot":"","sources":["../../../../src/application/context/search/LocalSearchGateway.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,OAAO,kBAAkB;IAC7B,YAA6B,SAAqC;QAArC,cAAS,GAAT,SAAS,CAA4B;IAAG,CAAC;IAEtE,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5G,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAEnG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC;YACtC,OAAO,EAAE,IAAI,EAAE,CAAC;QAClB,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;IACtD,CAAC;IAEO,UAAU,CAAC,IAA0B,EAAE,OAAsB;QACnE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;YAC/B,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1E,CAAC;IAEO,QAAQ,CAAC,IAA0B;QACzC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IACnE,CAAC;IAEO,SAAS,CAAC,IAA0B,EAAE,OAAsB;QAClE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,CAAC,GAAG,CAAC,EACpF,iBAAiB,CAAC,GAAG,CACtB,CAAC;QAEF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAEO,eAAe,CAAC,IAA0B;QAChD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;QAE9C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YAC7C,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAChB,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7D,QAAQ;YACR,IAAI,EAAE,WAAW;SAClB,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ export declare const SearchCategory: {
2
+ readonly COMPONENT: "component";
3
+ readonly DEPENDENCY: "dependency";
4
+ readonly DECISION: "decision";
5
+ readonly GUIDELINE: "guideline";
6
+ readonly INVARIANT: "invariant";
7
+ };
8
+ export type KnownSearchCategory = (typeof SearchCategory)[keyof typeof SearchCategory];
9
+ export type SearchCategory = KnownSearchCategory | (string & {});
10
+ //# sourceMappingURL=SearchCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchCategory.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchCategory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvF,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export const SearchCategory = {
2
+ COMPONENT: "component",
3
+ DEPENDENCY: "dependency",
4
+ DECISION: "decision",
5
+ GUIDELINE: "guideline",
6
+ INVARIANT: "invariant",
7
+ };
8
+ //# sourceMappingURL=SearchCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchCategory.js","sourceRoot":"","sources":["../../../../src/application/context/search/SearchCategory.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;CACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ISearchGateway } from "./ISearchGateway.js";
2
+ import { SearchRequest } from "./SearchRequest.js";
3
+ import { SearchResponse } from "./SearchResponse.js";
4
+ export declare class SearchController {
5
+ private readonly gateway;
6
+ constructor(gateway: ISearchGateway);
7
+ handle(request: SearchRequest): Promise<SearchResponse>;
8
+ }
9
+ //# sourceMappingURL=SearchController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchController.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,cAAc;IAE9C,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC;CAG9D"}
@@ -0,0 +1,9 @@
1
+ export class SearchController {
2
+ constructor(gateway) {
3
+ this.gateway = gateway;
4
+ }
5
+ async handle(request) {
6
+ return this.gateway.search(request);
7
+ }
8
+ }
9
+ //# sourceMappingURL=SearchController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchController.js","sourceRoot":"","sources":["../../../../src/application/context/search/SearchController.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,gBAAgB;IAC3B,YAA6B,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;IAAG,CAAC;IAExD,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ import { SearchCategory } from "./SearchCategory.js";
2
+ export interface SearchCriteria {
3
+ readonly query?: string;
4
+ readonly category?: SearchCategory;
5
+ readonly limit?: number;
6
+ readonly groupByCategory?: boolean;
7
+ }
8
+ //# sourceMappingURL=SearchCriteria.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchCriteria.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchCriteria.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SearchCriteria.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchCriteria.js","sourceRoot":"","sources":["../../../../src/application/context/search/SearchCriteria.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { SearchCategory } from "./SearchCategory.js";
2
+ import { SearchDocumentSource } from "./SearchDocumentSource.js";
3
+ import { SearchFacetValue } from "./SearchFacetValue.js";
4
+ export interface SearchDocument {
5
+ readonly source: SearchDocumentSource;
6
+ readonly category: SearchCategory;
7
+ readonly title: string;
8
+ readonly summary: string | null;
9
+ readonly content: string;
10
+ readonly facets: Readonly<Record<string, SearchFacetValue>>;
11
+ readonly metadata: Readonly<Record<string, SearchFacetValue>>;
12
+ readonly version: number;
13
+ readonly createdAt: string;
14
+ readonly updatedAt: string;
15
+ }
16
+ //# sourceMappingURL=SearchDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDocument.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SearchDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDocument.js","sourceRoot":"","sources":["../../../../src/application/context/search/SearchDocument.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { SearchDocument } from "./SearchDocument.js";
2
+ import { SearchDocumentSource } from "./SearchDocumentSource.js";
3
+ export type SearchDocumentChange = {
4
+ readonly operation: "upsert";
5
+ readonly document: SearchDocument;
6
+ } | {
7
+ readonly operation: "remove";
8
+ readonly source: SearchDocumentSource;
9
+ };
10
+ //# sourceMappingURL=SearchDocumentChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDocumentChange.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchDocumentChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SearchDocumentChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDocumentChange.js","sourceRoot":"","sources":["../../../../src/application/context/search/SearchDocumentChange.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { ComponentSearchDocumentProjector } from "./projectors/ComponentSearchDocumentProjector.js";
2
+ import { DecisionSearchDocumentProjector } from "./projectors/DecisionSearchDocumentProjector.js";
3
+ import { DependencySearchDocumentProjector } from "./projectors/DependencySearchDocumentProjector.js";
4
+ import { GuidelineSearchDocumentProjector } from "./projectors/GuidelineSearchDocumentProjector.js";
5
+ import { InvariantSearchDocumentProjector } from "./projectors/InvariantSearchDocumentProjector.js";
6
+ export declare class SearchDocumentProjectorRegistry {
7
+ createMemoryProjectors(): readonly [ComponentSearchDocumentProjector, DependencySearchDocumentProjector, DecisionSearchDocumentProjector, GuidelineSearchDocumentProjector, InvariantSearchDocumentProjector];
8
+ }
9
+ //# sourceMappingURL=SearchDocumentProjectorRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDocumentProjectorRegistry.d.ts","sourceRoot":"","sources":["../../../../src/application/context/search/SearchDocumentProjectorRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AAEpG,qBAAa,+BAA+B;IAC1C,sBAAsB;CASvB"}