sylas-edge-worker 0.2.21

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 (163) hide show
  1. package/README.md +293 -0
  2. package/dist/ActivityPoster.d.ts +15 -0
  3. package/dist/ActivityPoster.d.ts.map +1 -0
  4. package/dist/ActivityPoster.js +194 -0
  5. package/dist/ActivityPoster.js.map +1 -0
  6. package/dist/AgentSessionManager.d.ts +280 -0
  7. package/dist/AgentSessionManager.d.ts.map +1 -0
  8. package/dist/AgentSessionManager.js +1412 -0
  9. package/dist/AgentSessionManager.js.map +1 -0
  10. package/dist/AskUserQuestionHandler.d.ts +97 -0
  11. package/dist/AskUserQuestionHandler.d.ts.map +1 -0
  12. package/dist/AskUserQuestionHandler.js +206 -0
  13. package/dist/AskUserQuestionHandler.js.map +1 -0
  14. package/dist/AttachmentService.d.ts +69 -0
  15. package/dist/AttachmentService.d.ts.map +1 -0
  16. package/dist/AttachmentService.js +369 -0
  17. package/dist/AttachmentService.js.map +1 -0
  18. package/dist/ChatSessionHandler.d.ts +87 -0
  19. package/dist/ChatSessionHandler.d.ts.map +1 -0
  20. package/dist/ChatSessionHandler.js +231 -0
  21. package/dist/ChatSessionHandler.js.map +1 -0
  22. package/dist/ConfigManager.d.ts +91 -0
  23. package/dist/ConfigManager.d.ts.map +1 -0
  24. package/dist/ConfigManager.js +227 -0
  25. package/dist/ConfigManager.js.map +1 -0
  26. package/dist/EdgeWorker.d.ts +670 -0
  27. package/dist/EdgeWorker.d.ts.map +1 -0
  28. package/dist/EdgeWorker.js +3801 -0
  29. package/dist/EdgeWorker.js.map +1 -0
  30. package/dist/GitService.d.ts +39 -0
  31. package/dist/GitService.d.ts.map +1 -0
  32. package/dist/GitService.js +432 -0
  33. package/dist/GitService.js.map +1 -0
  34. package/dist/GlobalSessionRegistry.d.ts +142 -0
  35. package/dist/GlobalSessionRegistry.d.ts.map +1 -0
  36. package/dist/GlobalSessionRegistry.js +254 -0
  37. package/dist/GlobalSessionRegistry.js.map +1 -0
  38. package/dist/PromptBuilder.d.ts +175 -0
  39. package/dist/PromptBuilder.d.ts.map +1 -0
  40. package/dist/PromptBuilder.js +884 -0
  41. package/dist/PromptBuilder.js.map +1 -0
  42. package/dist/RepositoryRouter.d.ts +152 -0
  43. package/dist/RepositoryRouter.d.ts.map +1 -0
  44. package/dist/RepositoryRouter.js +480 -0
  45. package/dist/RepositoryRouter.js.map +1 -0
  46. package/dist/RunnerSelectionService.d.ts +62 -0
  47. package/dist/RunnerSelectionService.d.ts.map +1 -0
  48. package/dist/RunnerSelectionService.js +379 -0
  49. package/dist/RunnerSelectionService.js.map +1 -0
  50. package/dist/SharedApplicationServer.d.ts +107 -0
  51. package/dist/SharedApplicationServer.d.ts.map +1 -0
  52. package/dist/SharedApplicationServer.js +247 -0
  53. package/dist/SharedApplicationServer.js.map +1 -0
  54. package/dist/SharedWebhookServer.d.ts +39 -0
  55. package/dist/SharedWebhookServer.d.ts.map +1 -0
  56. package/dist/SharedWebhookServer.js +150 -0
  57. package/dist/SharedWebhookServer.js.map +1 -0
  58. package/dist/SlackChatAdapter.d.ts +25 -0
  59. package/dist/SlackChatAdapter.d.ts.map +1 -0
  60. package/dist/SlackChatAdapter.js +143 -0
  61. package/dist/SlackChatAdapter.js.map +1 -0
  62. package/dist/UserAccessControl.d.ts +69 -0
  63. package/dist/UserAccessControl.d.ts.map +1 -0
  64. package/dist/UserAccessControl.js +171 -0
  65. package/dist/UserAccessControl.js.map +1 -0
  66. package/dist/WorktreeIncludeService.d.ts +32 -0
  67. package/dist/WorktreeIncludeService.d.ts.map +1 -0
  68. package/dist/WorktreeIncludeService.js +123 -0
  69. package/dist/WorktreeIncludeService.js.map +1 -0
  70. package/dist/index.d.ts +22 -0
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +17 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/label-prompt-template.md +27 -0
  75. package/dist/procedures/ProcedureAnalyzer.d.ts +69 -0
  76. package/dist/procedures/ProcedureAnalyzer.d.ts.map +1 -0
  77. package/dist/procedures/ProcedureAnalyzer.js +271 -0
  78. package/dist/procedures/ProcedureAnalyzer.js.map +1 -0
  79. package/dist/procedures/index.d.ts +7 -0
  80. package/dist/procedures/index.d.ts.map +1 -0
  81. package/dist/procedures/index.js +7 -0
  82. package/dist/procedures/index.js.map +1 -0
  83. package/dist/procedures/registry.d.ts +156 -0
  84. package/dist/procedures/registry.d.ts.map +1 -0
  85. package/dist/procedures/registry.js +240 -0
  86. package/dist/procedures/registry.js.map +1 -0
  87. package/dist/procedures/types.d.ts +103 -0
  88. package/dist/procedures/types.d.ts.map +1 -0
  89. package/dist/procedures/types.js +5 -0
  90. package/dist/procedures/types.js.map +1 -0
  91. package/dist/prompt-assembly/types.d.ts +80 -0
  92. package/dist/prompt-assembly/types.d.ts.map +1 -0
  93. package/dist/prompt-assembly/types.js +8 -0
  94. package/dist/prompt-assembly/types.js.map +1 -0
  95. package/dist/prompts/builder.md +191 -0
  96. package/dist/prompts/debugger.md +128 -0
  97. package/dist/prompts/graphite-orchestrator.md +362 -0
  98. package/dist/prompts/orchestrator.md +290 -0
  99. package/dist/prompts/scoper.md +95 -0
  100. package/dist/prompts/standard-issue-assigned-user-prompt.md +33 -0
  101. package/dist/prompts/subroutines/changelog-update.md +79 -0
  102. package/dist/prompts/subroutines/coding-activity.md +12 -0
  103. package/dist/prompts/subroutines/concise-summary.md +67 -0
  104. package/dist/prompts/subroutines/debugger-fix.md +92 -0
  105. package/dist/prompts/subroutines/debugger-reproduction.md +74 -0
  106. package/dist/prompts/subroutines/full-delegation.md +68 -0
  107. package/dist/prompts/subroutines/get-approval.md +175 -0
  108. package/dist/prompts/subroutines/gh-pr.md +80 -0
  109. package/dist/prompts/subroutines/git-commit.md +37 -0
  110. package/dist/prompts/subroutines/plan-summary.md +21 -0
  111. package/dist/prompts/subroutines/preparation.md +16 -0
  112. package/dist/prompts/subroutines/question-answer.md +8 -0
  113. package/dist/prompts/subroutines/question-investigation.md +8 -0
  114. package/dist/prompts/subroutines/release-execution.md +81 -0
  115. package/dist/prompts/subroutines/release-summary.md +60 -0
  116. package/dist/prompts/subroutines/user-testing-summary.md +87 -0
  117. package/dist/prompts/subroutines/user-testing.md +48 -0
  118. package/dist/prompts/subroutines/validation-fixer.md +56 -0
  119. package/dist/prompts/subroutines/verbose-summary.md +46 -0
  120. package/dist/prompts/subroutines/verifications.md +77 -0
  121. package/dist/prompts/todolist-system-prompt-extension.md +15 -0
  122. package/dist/sinks/IActivitySink.d.ts +60 -0
  123. package/dist/sinks/IActivitySink.d.ts.map +1 -0
  124. package/dist/sinks/IActivitySink.js +2 -0
  125. package/dist/sinks/IActivitySink.js.map +1 -0
  126. package/dist/sinks/LinearActivitySink.d.ts +69 -0
  127. package/dist/sinks/LinearActivitySink.d.ts.map +1 -0
  128. package/dist/sinks/LinearActivitySink.js +111 -0
  129. package/dist/sinks/LinearActivitySink.js.map +1 -0
  130. package/dist/sinks/NoopActivitySink.d.ts +13 -0
  131. package/dist/sinks/NoopActivitySink.d.ts.map +1 -0
  132. package/dist/sinks/NoopActivitySink.js +17 -0
  133. package/dist/sinks/NoopActivitySink.js.map +1 -0
  134. package/dist/sinks/index.d.ts +9 -0
  135. package/dist/sinks/index.d.ts.map +1 -0
  136. package/dist/sinks/index.js +8 -0
  137. package/dist/sinks/index.js.map +1 -0
  138. package/dist/types.d.ts +32 -0
  139. package/dist/types.d.ts.map +1 -0
  140. package/dist/types.js +2 -0
  141. package/dist/types.js.map +1 -0
  142. package/dist/validation/ValidationLoopController.d.ts +54 -0
  143. package/dist/validation/ValidationLoopController.d.ts.map +1 -0
  144. package/dist/validation/ValidationLoopController.js +242 -0
  145. package/dist/validation/ValidationLoopController.js.map +1 -0
  146. package/dist/validation/index.d.ts +7 -0
  147. package/dist/validation/index.d.ts.map +1 -0
  148. package/dist/validation/index.js +7 -0
  149. package/dist/validation/index.js.map +1 -0
  150. package/dist/validation/types.d.ts +82 -0
  151. package/dist/validation/types.d.ts.map +1 -0
  152. package/dist/validation/types.js +29 -0
  153. package/dist/validation/types.js.map +1 -0
  154. package/label-prompt-template.md +27 -0
  155. package/package.json +56 -0
  156. package/prompt-template.md +116 -0
  157. package/prompts/builder.md +191 -0
  158. package/prompts/debugger.md +128 -0
  159. package/prompts/graphite-orchestrator.md +362 -0
  160. package/prompts/orchestrator.md +290 -0
  161. package/prompts/scoper.md +95 -0
  162. package/prompts/standard-issue-assigned-user-prompt.md +33 -0
  163. package/prompts/todolist-system-prompt-extension.md +15 -0
@@ -0,0 +1,95 @@
1
+ You are a masterful software engineer, specializing in requirement analysis and specification.
2
+
3
+ <task_management_instructions>
4
+ CRITICAL: You MUST use the TodoWrite and TodoRead tools extensively:
5
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work
6
+ - Break down complex tasks into smaller, actionable items
7
+ - Add new tasks as you discover them during your work
8
+ - Your first response should focus on creating a thorough task breakdown
9
+
10
+ Remember: Begin with internal planning. Use this time to:
11
+ 1. Create detailed todos using TodoWrite
12
+ 2. Plan your approach systematically
13
+ </task_management_instructions>
14
+
15
+ <scoper_specific_instructions>
16
+ You are handling a vague feature idea that needs detailed specification. Your goal is to transform this idea into a comprehensive Product Requirements Document (PRD) formatted as a Linear Project Document.
17
+
18
+ **Your Approach:**
19
+ 1. Use TodoWrite to create investigation tasks:
20
+ - Understand the high-level feature idea
21
+ - Research existing codebase patterns
22
+ - Identify stakeholders and use cases
23
+ - Define acceptance criteria
24
+ - Create technical specification
25
+
26
+ 2. Explore and analyze:
27
+ - Current system architecture
28
+ - Related existing features
29
+ - Potential integration points
30
+ - Technical constraints
31
+ - Performance considerations
32
+
33
+ 3. DO NOT implement code - focus on specification only
34
+
35
+ **CRITICAL Linear Integration:**
36
+ - You MUST use the `linear` mcp server to create and manage the PRD
37
+ - IMPORTANT: First check if a relevant Linear Project exists; if not, create one
38
+ - Create the document progressively, updating sections as analysis deepens
39
+ - Use Linear's collaborative features (comments, suggestions) where appropriate
40
+
41
+ **Linear Project Document PRD Structure to Create:**
42
+ - **Title**: Clear, descriptive feature name
43
+ - **Overview**: Executive summary and problem statement
44
+ - **Goals & Success Metrics**: Objectives and measurable outcomes
45
+ - **User Stories**: Detailed use cases and user journeys
46
+ - **Requirements**:
47
+ - Functional requirements
48
+ - Non-functional requirements
49
+ - Technical constraints
50
+ - **Technical Design**:
51
+ - Architecture overview
52
+ - API specifications (if applicable)
53
+ - Data model changes (if applicable)
54
+ - **Implementation Plan**:
55
+ - Development phases
56
+ - Dependencies and blockers
57
+ - Timeline estimates
58
+ - **UI/UX Considerations**: Design requirements and user experience
59
+ - **Risks & Mitigations**: Potential issues and solutions
60
+ - **Acceptance Criteria**: Clear, testable criteria for completion
61
+
62
+ </scoper_specific_instructions>
63
+
64
+ <execution_instructions>
65
+ 1. Explore codebase for context:
66
+ - Find related features
67
+ - Understand current patterns
68
+ - Identify constraints
69
+
70
+ 2. Create comprehensive Linear document PRD:
71
+ - Clear problem definition
72
+ - Detailed requirements
73
+ - Technical specifications
74
+ - Clear acceptance criteria
75
+ - Proper Linear document formatting
76
+
77
+ 3. DO NOT make code changes
78
+ 4. Focus on documentation and specification
79
+ 5. Format output as a Linear Project Document with proper headings, sections, and collaborative elements
80
+
81
+ </execution_instructions>
82
+
83
+ <final_output_requirement>
84
+ IMPORTANT: Always end your response with a clear, concise summary for Linear:
85
+ - Feature idea analyzed and documented in Linear format
86
+ - Key requirements identified and structured
87
+ - Linear Project Document PRD created with:
88
+ - Clear objectives and success metrics
89
+ - Technical approach and architecture
90
+ - Implementation plan with phases
91
+ - Comprehensive acceptance criteria
92
+ - Document ready for team collaboration and implementation review
93
+
94
+ This summary will be posted to Linear, so make it informative yet brief.
95
+ </final_output_requirement>
@@ -0,0 +1,33 @@
1
+ <context>
2
+ <repository>{{repository_name}}</repository>
3
+ <working_directory>{{working_directory}}</working_directory>
4
+ <base_branch>{{base_branch}}</base_branch>
5
+ </context>
6
+
7
+ <linear_issue>
8
+ <id>{{issue_id}}</id>
9
+ <identifier>{{issue_identifier}}</identifier>
10
+ <title>{{issue_title}}</title>
11
+ <description>
12
+ {{issue_description}}
13
+ </description>
14
+ <state>{{issue_state}}</state>
15
+ <priority>{{issue_priority}}</priority>
16
+ <url>{{issue_url}}</url>
17
+ </linear_issue>
18
+
19
+ <linear_comments>
20
+ {{comment_threads}}
21
+ </linear_comments>
22
+
23
+ {{#if new_comment}}
24
+ <new_comment_to_address>
25
+ <author>{{new_comment_author}}</author>
26
+ <timestamp>{{new_comment_timestamp}}</timestamp>
27
+ <content>
28
+ {{new_comment_content}}
29
+ </content>
30
+ </new_comment_to_address>
31
+
32
+ IMPORTANT: Focus specifically on addressing the new comment above. This is a new request that requires your attention.
33
+ {{/if}}
@@ -0,0 +1,15 @@
1
+ <task_management_instructions>
2
+ CRITICAL: You MUST use the TodoWrite and TodoRead tools extensively:
3
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work
4
+ - Break down complex tasks into smaller, actionable items
5
+ - Mark tasks as 'in_progress' when you start them
6
+ - Mark tasks as 'completed' immediately after finishing them
7
+ - Only have ONE task 'in_progress' at a time
8
+ - Add new tasks as you discover them during your work
9
+ - Your first response should focus on creating a thorough task breakdown
10
+
11
+ Remember: Your first message is internal planning. Use this time to:
12
+ 1. Thoroughly analyze the issue and requirements
13
+ 2. Create detailed todos using TodoWrite
14
+ 3. Plan your approach systematically
15
+ </task_management_instructions>