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.
- package/README.md +293 -0
- package/dist/ActivityPoster.d.ts +15 -0
- package/dist/ActivityPoster.d.ts.map +1 -0
- package/dist/ActivityPoster.js +194 -0
- package/dist/ActivityPoster.js.map +1 -0
- package/dist/AgentSessionManager.d.ts +280 -0
- package/dist/AgentSessionManager.d.ts.map +1 -0
- package/dist/AgentSessionManager.js +1412 -0
- package/dist/AgentSessionManager.js.map +1 -0
- package/dist/AskUserQuestionHandler.d.ts +97 -0
- package/dist/AskUserQuestionHandler.d.ts.map +1 -0
- package/dist/AskUserQuestionHandler.js +206 -0
- package/dist/AskUserQuestionHandler.js.map +1 -0
- package/dist/AttachmentService.d.ts +69 -0
- package/dist/AttachmentService.d.ts.map +1 -0
- package/dist/AttachmentService.js +369 -0
- package/dist/AttachmentService.js.map +1 -0
- package/dist/ChatSessionHandler.d.ts +87 -0
- package/dist/ChatSessionHandler.d.ts.map +1 -0
- package/dist/ChatSessionHandler.js +231 -0
- package/dist/ChatSessionHandler.js.map +1 -0
- package/dist/ConfigManager.d.ts +91 -0
- package/dist/ConfigManager.d.ts.map +1 -0
- package/dist/ConfigManager.js +227 -0
- package/dist/ConfigManager.js.map +1 -0
- package/dist/EdgeWorker.d.ts +670 -0
- package/dist/EdgeWorker.d.ts.map +1 -0
- package/dist/EdgeWorker.js +3801 -0
- package/dist/EdgeWorker.js.map +1 -0
- package/dist/GitService.d.ts +39 -0
- package/dist/GitService.d.ts.map +1 -0
- package/dist/GitService.js +432 -0
- package/dist/GitService.js.map +1 -0
- package/dist/GlobalSessionRegistry.d.ts +142 -0
- package/dist/GlobalSessionRegistry.d.ts.map +1 -0
- package/dist/GlobalSessionRegistry.js +254 -0
- package/dist/GlobalSessionRegistry.js.map +1 -0
- package/dist/PromptBuilder.d.ts +175 -0
- package/dist/PromptBuilder.d.ts.map +1 -0
- package/dist/PromptBuilder.js +884 -0
- package/dist/PromptBuilder.js.map +1 -0
- package/dist/RepositoryRouter.d.ts +152 -0
- package/dist/RepositoryRouter.d.ts.map +1 -0
- package/dist/RepositoryRouter.js +480 -0
- package/dist/RepositoryRouter.js.map +1 -0
- package/dist/RunnerSelectionService.d.ts +62 -0
- package/dist/RunnerSelectionService.d.ts.map +1 -0
- package/dist/RunnerSelectionService.js +379 -0
- package/dist/RunnerSelectionService.js.map +1 -0
- package/dist/SharedApplicationServer.d.ts +107 -0
- package/dist/SharedApplicationServer.d.ts.map +1 -0
- package/dist/SharedApplicationServer.js +247 -0
- package/dist/SharedApplicationServer.js.map +1 -0
- package/dist/SharedWebhookServer.d.ts +39 -0
- package/dist/SharedWebhookServer.d.ts.map +1 -0
- package/dist/SharedWebhookServer.js +150 -0
- package/dist/SharedWebhookServer.js.map +1 -0
- package/dist/SlackChatAdapter.d.ts +25 -0
- package/dist/SlackChatAdapter.d.ts.map +1 -0
- package/dist/SlackChatAdapter.js +143 -0
- package/dist/SlackChatAdapter.js.map +1 -0
- package/dist/UserAccessControl.d.ts +69 -0
- package/dist/UserAccessControl.d.ts.map +1 -0
- package/dist/UserAccessControl.js +171 -0
- package/dist/UserAccessControl.js.map +1 -0
- package/dist/WorktreeIncludeService.d.ts +32 -0
- package/dist/WorktreeIncludeService.d.ts.map +1 -0
- package/dist/WorktreeIncludeService.js +123 -0
- package/dist/WorktreeIncludeService.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/label-prompt-template.md +27 -0
- package/dist/procedures/ProcedureAnalyzer.d.ts +69 -0
- package/dist/procedures/ProcedureAnalyzer.d.ts.map +1 -0
- package/dist/procedures/ProcedureAnalyzer.js +271 -0
- package/dist/procedures/ProcedureAnalyzer.js.map +1 -0
- package/dist/procedures/index.d.ts +7 -0
- package/dist/procedures/index.d.ts.map +1 -0
- package/dist/procedures/index.js +7 -0
- package/dist/procedures/index.js.map +1 -0
- package/dist/procedures/registry.d.ts +156 -0
- package/dist/procedures/registry.d.ts.map +1 -0
- package/dist/procedures/registry.js +240 -0
- package/dist/procedures/registry.js.map +1 -0
- package/dist/procedures/types.d.ts +103 -0
- package/dist/procedures/types.d.ts.map +1 -0
- package/dist/procedures/types.js +5 -0
- package/dist/procedures/types.js.map +1 -0
- package/dist/prompt-assembly/types.d.ts +80 -0
- package/dist/prompt-assembly/types.d.ts.map +1 -0
- package/dist/prompt-assembly/types.js +8 -0
- package/dist/prompt-assembly/types.js.map +1 -0
- package/dist/prompts/builder.md +191 -0
- package/dist/prompts/debugger.md +128 -0
- package/dist/prompts/graphite-orchestrator.md +362 -0
- package/dist/prompts/orchestrator.md +290 -0
- package/dist/prompts/scoper.md +95 -0
- package/dist/prompts/standard-issue-assigned-user-prompt.md +33 -0
- package/dist/prompts/subroutines/changelog-update.md +79 -0
- package/dist/prompts/subroutines/coding-activity.md +12 -0
- package/dist/prompts/subroutines/concise-summary.md +67 -0
- package/dist/prompts/subroutines/debugger-fix.md +92 -0
- package/dist/prompts/subroutines/debugger-reproduction.md +74 -0
- package/dist/prompts/subroutines/full-delegation.md +68 -0
- package/dist/prompts/subroutines/get-approval.md +175 -0
- package/dist/prompts/subroutines/gh-pr.md +80 -0
- package/dist/prompts/subroutines/git-commit.md +37 -0
- package/dist/prompts/subroutines/plan-summary.md +21 -0
- package/dist/prompts/subroutines/preparation.md +16 -0
- package/dist/prompts/subroutines/question-answer.md +8 -0
- package/dist/prompts/subroutines/question-investigation.md +8 -0
- package/dist/prompts/subroutines/release-execution.md +81 -0
- package/dist/prompts/subroutines/release-summary.md +60 -0
- package/dist/prompts/subroutines/user-testing-summary.md +87 -0
- package/dist/prompts/subroutines/user-testing.md +48 -0
- package/dist/prompts/subroutines/validation-fixer.md +56 -0
- package/dist/prompts/subroutines/verbose-summary.md +46 -0
- package/dist/prompts/subroutines/verifications.md +77 -0
- package/dist/prompts/todolist-system-prompt-extension.md +15 -0
- package/dist/sinks/IActivitySink.d.ts +60 -0
- package/dist/sinks/IActivitySink.d.ts.map +1 -0
- package/dist/sinks/IActivitySink.js +2 -0
- package/dist/sinks/IActivitySink.js.map +1 -0
- package/dist/sinks/LinearActivitySink.d.ts +69 -0
- package/dist/sinks/LinearActivitySink.d.ts.map +1 -0
- package/dist/sinks/LinearActivitySink.js +111 -0
- package/dist/sinks/LinearActivitySink.js.map +1 -0
- package/dist/sinks/NoopActivitySink.d.ts +13 -0
- package/dist/sinks/NoopActivitySink.d.ts.map +1 -0
- package/dist/sinks/NoopActivitySink.js +17 -0
- package/dist/sinks/NoopActivitySink.js.map +1 -0
- package/dist/sinks/index.d.ts +9 -0
- package/dist/sinks/index.d.ts.map +1 -0
- package/dist/sinks/index.js +8 -0
- package/dist/sinks/index.js.map +1 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/validation/ValidationLoopController.d.ts +54 -0
- package/dist/validation/ValidationLoopController.d.ts.map +1 -0
- package/dist/validation/ValidationLoopController.js +242 -0
- package/dist/validation/ValidationLoopController.js.map +1 -0
- package/dist/validation/index.d.ts +7 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +7 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/types.d.ts +82 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +29 -0
- package/dist/validation/types.js.map +1 -0
- package/label-prompt-template.md +27 -0
- package/package.json +56 -0
- package/prompt-template.md +116 -0
- package/prompts/builder.md +191 -0
- package/prompts/debugger.md +128 -0
- package/prompts/graphite-orchestrator.md +362 -0
- package/prompts/orchestrator.md +290 -0
- package/prompts/scoper.md +95 -0
- package/prompts/standard-issue-assigned-user-prompt.md +33 -0
- 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>
|