cyrus-edge-worker 0.2.44 → 0.2.45

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 (40) hide show
  1. package/dist/ConfigManager.d.ts.map +1 -1
  2. package/dist/ConfigManager.js +3 -0
  3. package/dist/ConfigManager.js.map +1 -1
  4. package/dist/EdgeWorker.d.ts +28 -0
  5. package/dist/EdgeWorker.d.ts.map +1 -1
  6. package/dist/EdgeWorker.js +189 -5
  7. package/dist/EdgeWorker.js.map +1 -1
  8. package/dist/EgressProxy.d.ts +158 -0
  9. package/dist/EgressProxy.d.ts.map +1 -0
  10. package/dist/EgressProxy.js +699 -0
  11. package/dist/EgressProxy.js.map +1 -0
  12. package/dist/GitService.d.ts +4 -6
  13. package/dist/GitService.d.ts.map +1 -1
  14. package/dist/GitService.js +16 -12
  15. package/dist/GitService.js.map +1 -1
  16. package/dist/McpConfigService.d.ts.map +1 -1
  17. package/dist/McpConfigService.js +8 -1
  18. package/dist/McpConfigService.js.map +1 -1
  19. package/dist/RunnerConfigBuilder.d.ts +12 -1
  20. package/dist/RunnerConfigBuilder.d.ts.map +1 -1
  21. package/dist/RunnerConfigBuilder.js +49 -0
  22. package/dist/RunnerConfigBuilder.js.map +1 -1
  23. package/dist/SharedApplicationServer.d.ts.map +1 -1
  24. package/dist/SharedApplicationServer.js +1 -0
  25. package/dist/SharedApplicationServer.js.map +1 -1
  26. package/dist/cyrus-skills-plugin/skills/verify-and-ship/SKILL.md +14 -2
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/prompts/builder.md +4 -4
  32. package/dist/prompts/debugger.md +4 -4
  33. package/dist/prompts/scoper.md +5 -5
  34. package/dist/prompts/todolist-system-prompt-extension.md +6 -6
  35. package/package.json +18 -16
  36. package/prompt-template.md +5 -5
  37. package/prompts/builder.md +4 -4
  38. package/prompts/debugger.md +4 -4
  39. package/prompts/scoper.md +5 -5
  40. package/prompts/todolist-system-prompt-extension.md +6 -6
@@ -58,11 +58,11 @@ Violation of these rules should be considered a failure.
58
58
  </task_first_workflow>
59
59
 
60
60
  <task_management_instructions>
61
- **Three-Tool Symphony: TodoWrite, TodoRead, and Task**
61
+ **Two-Tool Symphony: Task Tools and Task**
62
62
 
63
- 1. **TodoWrite/TodoRead (Planning & Tracking):**
64
- - Create task list FIRST THING
65
- - Track Task results and insights
63
+ 1. **Task Tools (Planning & Tracking):**
64
+ - Create task list FIRST THING using TaskCreate
65
+ - Update task status with TaskUpdate, check progress with TaskList
66
66
 
67
67
  2. **Task tool (EVERYTHING ELSE):**
68
68
  ```
@@ -56,11 +56,11 @@ Violation of these rules should be considered a failure.
56
56
  </task_first_workflow>
57
57
 
58
58
  <task_management_instructions>
59
- **Three-Tool Symphony: TodoWrite, TodoRead, and Task**
59
+ **Two-Tool Symphony: Task Tools and Task**
60
60
 
61
- 1. **TodoWrite/TodoRead (Planning & Tracking):**
62
- - Create debugging checklist FIRST THING
63
- - Track Task results and findings
61
+ 1. **Task Tools (Planning & Tracking):**
62
+ - Create debugging checklist FIRST THING using TaskCreate
63
+ - Update task status with TaskUpdate, check progress with TaskList
64
64
 
65
65
  2. **Task tool (EVERYTHING ELSE):**
66
66
  ```
@@ -1,14 +1,14 @@
1
1
  You are a masterful software engineer, specializing in requirement analysis and specification.
2
2
 
3
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
4
+ CRITICAL: You MUST use the Task tools (TaskCreate, TaskUpdate, TaskGet, TaskList) extensively:
5
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work using TaskCreate
6
6
  - Break down complex tasks into smaller, actionable items
7
- - Add new tasks as you discover them during your work
7
+ - Add new tasks as you discover them during your work using TaskCreate
8
8
  - Your first response should focus on creating a thorough task breakdown
9
9
 
10
10
  Remember: Begin with internal planning. Use this time to:
11
- 1. Create detailed todos using TodoWrite
11
+ 1. Create detailed tasks using TaskCreate
12
12
  2. Plan your approach systematically
13
13
  </task_management_instructions>
14
14
 
@@ -16,7 +16,7 @@ Remember: Begin with internal planning. Use this time to:
16
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
17
 
18
18
  **Your Approach:**
19
- 1. Use TodoWrite to create investigation tasks:
19
+ 1. Use TaskCreate to create investigation tasks:
20
20
  - Understand the high-level feature idea
21
21
  - Research existing codebase patterns
22
22
  - Identify stakeholders and use cases
@@ -1,15 +1,15 @@
1
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
2
+ CRITICAL: You MUST use the Task tools (TaskCreate, TaskUpdate, TaskGet, TaskList) extensively:
3
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work using TaskCreate
4
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
5
+ - Update tasks to 'in_progress' when you start them using TaskUpdate
6
+ - Update tasks to 'completed' immediately after finishing them using TaskUpdate
7
7
  - Only have ONE task 'in_progress' at a time
8
- - Add new tasks as you discover them during your work
8
+ - Add new tasks as you discover them during your work using TaskCreate
9
9
  - Your first response should focus on creating a thorough task breakdown
10
10
 
11
11
  Remember: Your first message is internal planning. Use this time to:
12
12
  1. Thoroughly analyze the issue and requirements
13
- 2. Create detailed todos using TodoWrite
13
+ 2. Create detailed tasks using TaskCreate
14
14
  3. Plan your approach systematically
15
15
  </task_management_instructions>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyrus-edge-worker",
3
- "version": "0.2.44",
3
+ "version": "0.2.45",
4
4
  "description": "Unified edge worker for processing Linear issues with Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,29 +16,31 @@
16
16
  "@linear/sdk": "^64.0.0",
17
17
  "@ngrok/ngrok": "^1.5.1",
18
18
  "chokidar": "^4.0.3",
19
- "fastify": "^5.8.3",
19
+ "fastify": "^5.8.5",
20
20
  "fastify-mcp": "^2.1.0",
21
21
  "file-type": "^21.3.2",
22
22
  "ignore": "^7.0.5",
23
+ "node-forge": "^1.4.0",
23
24
  "zod": "4.3.6",
24
- "cyrus-codex-runner": "0.2.44",
25
- "cyrus-cloudflare-tunnel-client": "0.2.44",
26
- "cyrus-claude-runner": "0.2.44",
27
- "cyrus-core": "0.2.44",
28
- "cyrus-config-updater": "0.2.44",
29
- "cyrus-cursor-runner": "0.2.44",
30
- "cyrus-github-event-transport": "0.2.44",
31
- "cyrus-gemini-runner": "0.2.44",
32
- "cyrus-gitlab-event-transport": "0.2.44",
33
- "cyrus-linear-event-transport": "0.2.44",
34
- "cyrus-mcp-tools": "0.2.44",
35
- "cyrus-slack-event-transport": "0.2.44",
36
- "cyrus-simple-agent-runner": "0.2.44"
25
+ "cyrus-claude-runner": "0.2.45",
26
+ "cyrus-codex-runner": "0.2.45",
27
+ "cyrus-cloudflare-tunnel-client": "0.2.45",
28
+ "cyrus-config-updater": "0.2.45",
29
+ "cyrus-core": "0.2.45",
30
+ "cyrus-cursor-runner": "0.2.45",
31
+ "cyrus-gemini-runner": "0.2.45",
32
+ "cyrus-gitlab-event-transport": "0.2.45",
33
+ "cyrus-linear-event-transport": "0.2.45",
34
+ "cyrus-github-event-transport": "0.2.45",
35
+ "cyrus-slack-event-transport": "0.2.45",
36
+ "cyrus-simple-agent-runner": "0.2.45",
37
+ "cyrus-mcp-tools": "0.2.45"
37
38
  },
38
39
  "devDependencies": {
39
40
  "@types/node": "^20.0.0",
41
+ "@types/node-forge": "^1.3.14",
40
42
  "@vitest/coverage-v8": "^3.1.4",
41
- "axios": "^1.13.5",
43
+ "axios": "^1.15.0",
42
44
  "typescript": "^5.3.3",
43
45
  "vitest": "^3.1.4",
44
46
  "vitest-mock-extended": "^3.1.0"
@@ -8,7 +8,7 @@ YOU ARE IN 1 OF 2 SITUATIONS AND YOUR FIRST JOB IS TO FIGURE OUT WHICH ONE:
8
8
  - Well-defined expected outcomes
9
9
 
10
10
  In this situation, your task is to:
11
- 1. Use the TodoWrite tool to create a comprehensive task list
11
+ 1. Use the TaskCreate tool to create a comprehensive task list
12
12
  2. Work through each task systematically, marking progress as you go
13
13
  3. Write the code following the project's conventions
14
14
  4. Run tests and fix any issues
@@ -17,7 +17,7 @@ In this situation, your task is to:
17
17
  **Situation 2 - Clarify**: The issue contains only a vague problem or lacks clear acceptance criteria. The requirements have significant gaps or ambiguities.
18
18
 
19
19
  In this situation, your task is to:
20
- 1. Use the TodoWrite tool to list investigation tasks
20
+ 1. Use the TaskCreate tool to list investigation tasks
21
21
  2. Explore the codebase to understand context
22
22
  3. Identify gaps in the requirements
23
23
  4. Ask clarifying questions
@@ -50,7 +50,7 @@ Base branch: {{base_branch}}
50
50
 
51
51
  ## Task Management
52
52
 
53
- IMPORTANT: Use the TodoWrite and TodoRead tools to track your progress:
53
+ IMPORTANT: Use the TaskCreate tool to track your progress:
54
54
  - Create a comprehensive task list at the beginning of your work
55
55
  - Break down complex tasks into smaller, actionable items
56
56
  - Mark tasks as 'in_progress' when you start them
@@ -61,7 +61,7 @@ IMPORTANT: Use the TodoWrite and TodoRead tools to track your progress:
61
61
  ## Instructions
62
62
 
63
63
  ### If Situation 1 (Execute):
64
- 1. First, use TodoWrite to create a task list that includes:
64
+ 1. First, use TaskCreate to create a task list that includes:
65
65
  - Checking current branch status
66
66
  - Understanding the codebase structure
67
67
  - Implementation tasks (broken down by component/feature)
@@ -88,7 +88,7 @@ IMPORTANT: Use the TodoWrite and TodoRead tools to track your progress:
88
88
  6. Create or update the pull request with adequate description
89
89
 
90
90
  ### If Situation 2 (Clarify):
91
- 1. First, use TodoWrite to create investigation tasks:
91
+ 1. First, use TaskCreate to create investigation tasks:
92
92
  - Areas of codebase to explore
93
93
  - Documentation to review
94
94
  - Questions to formulate
@@ -58,11 +58,11 @@ Violation of these rules should be considered a failure.
58
58
  </task_first_workflow>
59
59
 
60
60
  <task_management_instructions>
61
- **Three-Tool Symphony: TodoWrite, TodoRead, and Task**
61
+ **Two-Tool Symphony: Task Tools and Task**
62
62
 
63
- 1. **TodoWrite/TodoRead (Planning & Tracking):**
64
- - Create task list FIRST THING
65
- - Track Task results and insights
63
+ 1. **Task Tools (Planning & Tracking):**
64
+ - Create task list FIRST THING using TaskCreate
65
+ - Update task status with TaskUpdate, check progress with TaskList
66
66
 
67
67
  2. **Task tool (EVERYTHING ELSE):**
68
68
  ```
@@ -56,11 +56,11 @@ Violation of these rules should be considered a failure.
56
56
  </task_first_workflow>
57
57
 
58
58
  <task_management_instructions>
59
- **Three-Tool Symphony: TodoWrite, TodoRead, and Task**
59
+ **Two-Tool Symphony: Task Tools and Task**
60
60
 
61
- 1. **TodoWrite/TodoRead (Planning & Tracking):**
62
- - Create debugging checklist FIRST THING
63
- - Track Task results and findings
61
+ 1. **Task Tools (Planning & Tracking):**
62
+ - Create debugging checklist FIRST THING using TaskCreate
63
+ - Update task status with TaskUpdate, check progress with TaskList
64
64
 
65
65
  2. **Task tool (EVERYTHING ELSE):**
66
66
  ```
package/prompts/scoper.md CHANGED
@@ -1,14 +1,14 @@
1
1
  You are a masterful software engineer, specializing in requirement analysis and specification.
2
2
 
3
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
4
+ CRITICAL: You MUST use the Task tools (TaskCreate, TaskUpdate, TaskGet, TaskList) extensively:
5
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work using TaskCreate
6
6
  - Break down complex tasks into smaller, actionable items
7
- - Add new tasks as you discover them during your work
7
+ - Add new tasks as you discover them during your work using TaskCreate
8
8
  - Your first response should focus on creating a thorough task breakdown
9
9
 
10
10
  Remember: Begin with internal planning. Use this time to:
11
- 1. Create detailed todos using TodoWrite
11
+ 1. Create detailed tasks using TaskCreate
12
12
  2. Plan your approach systematically
13
13
  </task_management_instructions>
14
14
 
@@ -16,7 +16,7 @@ Remember: Begin with internal planning. Use this time to:
16
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
17
 
18
18
  **Your Approach:**
19
- 1. Use TodoWrite to create investigation tasks:
19
+ 1. Use TaskCreate to create investigation tasks:
20
20
  - Understand the high-level feature idea
21
21
  - Research existing codebase patterns
22
22
  - Identify stakeholders and use cases
@@ -1,15 +1,15 @@
1
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
2
+ CRITICAL: You MUST use the Task tools (TaskCreate, TaskUpdate, TaskGet, TaskList) extensively:
3
+ - IMMEDIATELY create a comprehensive task list at the beginning of your work using TaskCreate
4
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
5
+ - Update tasks to 'in_progress' when you start them using TaskUpdate
6
+ - Update tasks to 'completed' immediately after finishing them using TaskUpdate
7
7
  - Only have ONE task 'in_progress' at a time
8
- - Add new tasks as you discover them during your work
8
+ - Add new tasks as you discover them during your work using TaskCreate
9
9
  - Your first response should focus on creating a thorough task breakdown
10
10
 
11
11
  Remember: Your first message is internal planning. Use this time to:
12
12
  1. Thoroughly analyze the issue and requirements
13
- 2. Create detailed todos using TodoWrite
13
+ 2. Create detailed tasks using TaskCreate
14
14
  3. Plan your approach systematically
15
15
  </task_management_instructions>