cyrus-edge-worker 0.2.21 → 0.2.23
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/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 +63 -21
- package/dist/AgentSessionManager.d.ts.map +1 -1
- package/dist/AgentSessionManager.js +413 -404
- package/dist/AgentSessionManager.js.map +1 -1
- package/dist/AskUserQuestionHandler.d.ts +3 -2
- package/dist/AskUserQuestionHandler.d.ts.map +1 -1
- package/dist/AskUserQuestionHandler.js +15 -12
- package/dist/AskUserQuestionHandler.js.map +1 -1
- 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 +227 -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 +229 -0
- package/dist/ConfigManager.js.map +1 -0
- package/dist/EdgeWorker.d.ts +152 -120
- package/dist/EdgeWorker.d.ts.map +1 -1
- package/dist/EdgeWorker.js +1335 -2125
- package/dist/EdgeWorker.js.map +1 -1
- package/dist/GitService.d.ts +14 -10
- package/dist/GitService.d.ts.map +1 -1
- package/dist/GitService.js +91 -12
- package/dist/GitService.js.map +1 -1
- 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 +182 -0
- package/dist/PromptBuilder.d.ts.map +1 -0
- package/dist/PromptBuilder.js +963 -0
- package/dist/PromptBuilder.js.map +1 -0
- package/dist/RepositoryRouter.d.ts +3 -2
- package/dist/RepositoryRouter.d.ts.map +1 -1
- package/dist/RepositoryRouter.js +39 -37
- package/dist/RepositoryRouter.js.map +1 -1
- package/dist/RunnerSelectionService.d.ts +71 -0
- package/dist/RunnerSelectionService.d.ts.map +1 -0
- package/dist/RunnerSelectionService.js +392 -0
- package/dist/RunnerSelectionService.js.map +1 -0
- package/dist/SharedApplicationServer.d.ts +3 -1
- package/dist/SharedApplicationServer.d.ts.map +1 -1
- package/dist/SharedApplicationServer.js +21 -17
- package/dist/SharedApplicationServer.js.map +1 -1
- package/dist/SharedWebhookServer.d.ts +3 -1
- package/dist/SharedWebhookServer.d.ts.map +1 -1
- package/dist/SharedWebhookServer.js +19 -16
- package/dist/SharedWebhookServer.js.map +1 -1
- package/dist/SlackChatAdapter.d.ts +25 -0
- package/dist/SlackChatAdapter.d.ts.map +1 -0
- package/dist/SlackChatAdapter.js +163 -0
- package/dist/SlackChatAdapter.js.map +1 -0
- package/dist/WorktreeIncludeService.d.ts +2 -9
- package/dist/WorktreeIncludeService.d.ts.map +1 -1
- package/dist/WorktreeIncludeService.js +3 -9
- package/dist/WorktreeIncludeService.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/label-prompt-template.md +6 -2
- package/dist/procedures/ProcedureAnalyzer.d.ts +6 -4
- package/dist/procedures/ProcedureAnalyzer.d.ts.map +1 -1
- package/dist/procedures/ProcedureAnalyzer.js +32 -12
- package/dist/procedures/ProcedureAnalyzer.js.map +1 -1
- package/dist/procedures/registry.d.ts +19 -19
- package/dist/procedures/registry.d.ts.map +1 -1
- package/dist/procedures/registry.js +19 -19
- package/dist/procedures/registry.js.map +1 -1
- package/dist/procedures/types.d.ts +1 -0
- package/dist/procedures/types.d.ts.map +1 -1
- package/dist/prompt-assembly/types.d.ts +2 -0
- package/dist/prompt-assembly/types.d.ts.map +1 -1
- package/dist/prompts/graphite-orchestrator.md +4 -2
- package/dist/prompts/orchestrator.md +5 -3
- package/dist/prompts/standard-issue-assigned-user-prompt.md +7 -0
- package/dist/prompts/subroutines/gh-pr.md +12 -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/label-prompt-template.md +6 -2
- package/package.json +17 -11
- package/prompts/graphite-orchestrator.md +4 -2
- package/prompts/orchestrator.md +5 -3
- package/prompts/standard-issue-assigned-user-prompt.md +7 -0
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ProcedureAnalyzer - Intelligent analysis of agent sessions to determine procedures
|
|
3
3
|
*
|
|
4
|
-
* Uses a SimpleAgentRunner (Claude or
|
|
5
|
-
* which procedure (sequence of subroutines) should be executed.
|
|
4
|
+
* Uses a SimpleAgentRunner (Claude, Gemini, Codex, or Cursor) to analyze requests
|
|
5
|
+
* and determine which procedure (sequence of subroutines) should be executed.
|
|
6
6
|
*/
|
|
7
|
+
import { SimpleCodexRunner } from "cyrus-codex-runner";
|
|
8
|
+
import { createLogger, } from "cyrus-core";
|
|
9
|
+
import { SimpleCursorRunner } from "cyrus-cursor-runner";
|
|
7
10
|
import { SimpleGeminiRunner } from "cyrus-gemini-runner";
|
|
8
11
|
import { SimpleClaudeRunner } from "cyrus-simple-agent-runner";
|
|
9
12
|
import { getProcedureForClassification, PROCEDURES } from "./registry.js";
|
|
10
13
|
export class ProcedureAnalyzer {
|
|
11
14
|
analysisRunner;
|
|
12
15
|
procedures = new Map();
|
|
16
|
+
logger;
|
|
13
17
|
constructor(config) {
|
|
18
|
+
this.logger =
|
|
19
|
+
config.logger ?? createLogger({ component: "ProcedureAnalyzer" });
|
|
14
20
|
// Determine which runner to use
|
|
15
|
-
const runnerType = config.runnerType || "
|
|
21
|
+
const runnerType = config.runnerType || "claude";
|
|
16
22
|
// Use runner-specific default models if not provided
|
|
17
|
-
const
|
|
18
|
-
|
|
23
|
+
const defaultModels = {
|
|
24
|
+
claude: { model: "haiku", fallback: "sonnet" },
|
|
25
|
+
gemini: {
|
|
26
|
+
model: "gemini-2.5-flash-lite",
|
|
27
|
+
fallback: "gemini-2.0-flash-exp",
|
|
28
|
+
},
|
|
29
|
+
codex: { model: "gpt-5", fallback: "gpt-5" },
|
|
30
|
+
cursor: { model: "gpt-5", fallback: "gpt-5" },
|
|
31
|
+
};
|
|
32
|
+
const defaults = defaultModels[runnerType];
|
|
19
33
|
// Create runner configuration
|
|
20
34
|
const runnerConfig = {
|
|
21
35
|
validResponses: [
|
|
@@ -30,8 +44,8 @@ export class ProcedureAnalyzer {
|
|
|
30
44
|
"release",
|
|
31
45
|
],
|
|
32
46
|
cyrusHome: config.cyrusHome,
|
|
33
|
-
model: config.model ||
|
|
34
|
-
fallbackModel:
|
|
47
|
+
model: config.model || defaults.model,
|
|
48
|
+
fallbackModel: defaults.fallback,
|
|
35
49
|
systemPrompt: this.buildAnalysisSystemPrompt(),
|
|
36
50
|
maxTurns: 1,
|
|
37
51
|
timeoutMs: config.timeoutMs || 10000,
|
|
@@ -40,7 +54,11 @@ export class ProcedureAnalyzer {
|
|
|
40
54
|
this.analysisRunner =
|
|
41
55
|
runnerType === "claude"
|
|
42
56
|
? new SimpleClaudeRunner(runnerConfig)
|
|
43
|
-
:
|
|
57
|
+
: runnerType === "gemini"
|
|
58
|
+
? new SimpleGeminiRunner(runnerConfig)
|
|
59
|
+
: runnerType === "codex"
|
|
60
|
+
? new SimpleCodexRunner(runnerConfig)
|
|
61
|
+
: new SimpleCursorRunner(runnerConfig);
|
|
44
62
|
// Load all predefined procedures from registry
|
|
45
63
|
this.loadPredefinedProcedures();
|
|
46
64
|
}
|
|
@@ -128,7 +146,7 @@ IMPORTANT: Respond with ONLY the classification word, nothing else.`;
|
|
|
128
146
|
}
|
|
129
147
|
catch (error) {
|
|
130
148
|
// Fallback to full-development on error
|
|
131
|
-
|
|
149
|
+
this.logger.info("Error during analysis:", error);
|
|
132
150
|
const fallbackProcedure = this.procedures.get("full-development");
|
|
133
151
|
if (!fallbackProcedure) {
|
|
134
152
|
throw new Error("Fallback procedure 'full-development' not found");
|
|
@@ -152,7 +170,7 @@ IMPORTANT: Respond with ONLY the classification word, nothing else.`;
|
|
|
152
170
|
}
|
|
153
171
|
const procedure = this.procedures.get(procedureMetadata.procedureName);
|
|
154
172
|
if (!procedure) {
|
|
155
|
-
|
|
173
|
+
this.logger.error(`Procedure "${procedureMetadata.procedureName}" not found`);
|
|
156
174
|
return null;
|
|
157
175
|
}
|
|
158
176
|
const nextIndex = procedureMetadata.currentSubroutineIndex + 1;
|
|
@@ -204,13 +222,15 @@ IMPORTANT: Respond with ONLY the classification word, nothing else.`;
|
|
|
204
222
|
const currentSubroutine = this.getCurrentSubroutine(session);
|
|
205
223
|
if (currentSubroutine) {
|
|
206
224
|
// Determine which type of session ID this is
|
|
207
|
-
const
|
|
225
|
+
const isCodexSession = session.codexSessionId !== undefined;
|
|
226
|
+
const isGeminiSession = !isCodexSession && session.geminiSessionId !== undefined;
|
|
208
227
|
// Record completion with the appropriate session ID
|
|
209
228
|
procedureMetadata.subroutineHistory.push({
|
|
210
229
|
subroutine: currentSubroutine.name,
|
|
211
230
|
completedAt: Date.now(),
|
|
212
|
-
claudeSessionId: isGeminiSession ? null : sessionId,
|
|
231
|
+
claudeSessionId: isGeminiSession || isCodexSession ? null : sessionId,
|
|
213
232
|
geminiSessionId: isGeminiSession ? sessionId : null,
|
|
233
|
+
codexSessionId: isCodexSession ? sessionId : null,
|
|
214
234
|
...(result !== undefined && { result }),
|
|
215
235
|
});
|
|
216
236
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcedureAnalyzer.js","sourceRoot":"","sources":["../../src/procedures/ProcedureAnalyzer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"ProcedureAnalyzer.js","sourceRoot":"","sources":["../../src/procedures/ProcedureAnalyzer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAEN,YAAY,GAGZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAmB1E,MAAM,OAAO,iBAAiB;IACrB,cAAc,CAA4C;IAC1D,UAAU,GAAqC,IAAI,GAAG,EAAE,CAAC;IACzD,MAAM,CAAU;IAExB,YAAY,MAA+B;QAC1C,IAAI,CAAC,MAAM;YACV,MAAM,CAAC,MAAM,IAAI,YAAY,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAEnE,gCAAgC;QAChC,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC;QAEjD,qDAAqD;QACrD,MAAM,aAAa,GAGf;YACH,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,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E,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;gBACnD,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;gBACjD,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;aACvC,CAAC,CAAC;QACJ,CAAC;QAED,gBAAgB;QAChB,iBAAiB,CAAC,sBAAsB,EAAE,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,OAA0B;QACjD,MAAM,iBAAiB,GAAG,OAAO,CAAC,QAAQ,EAAE,SAEhC,CAAC;QAEb,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QACb,CAAC;QAED,MAAM,OAAO,GAAG,iBAAiB,CAAC,iBAAiB,CAAC;QACpD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,IAAI,CAAC;QACb,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,OAA0B;QAC7C,OAAO,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,SAA8B;QAC/C,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,IAAY;QACxB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACD"}
|
|
@@ -14,51 +14,51 @@ export declare const SUBROUTINES: {
|
|
|
14
14
|
readonly debuggerReproduction: {
|
|
15
15
|
readonly name: "debugger-reproduction";
|
|
16
16
|
readonly promptPath: "subroutines/debugger-reproduction.md";
|
|
17
|
-
readonly description: "
|
|
17
|
+
readonly description: "Reproducing bug and analyzing root cause";
|
|
18
18
|
};
|
|
19
19
|
readonly getApproval: {
|
|
20
20
|
readonly name: "get-approval";
|
|
21
21
|
readonly promptPath: "subroutines/get-approval.md";
|
|
22
|
-
readonly description: "
|
|
22
|
+
readonly description: "Requesting user approval before proceeding";
|
|
23
23
|
readonly singleTurn: true;
|
|
24
24
|
readonly requiresApproval: true;
|
|
25
25
|
};
|
|
26
26
|
readonly debuggerFix: {
|
|
27
27
|
readonly name: "debugger-fix";
|
|
28
28
|
readonly promptPath: "subroutines/debugger-fix.md";
|
|
29
|
-
readonly description: "
|
|
29
|
+
readonly description: "Implementing fix based on root cause analysis";
|
|
30
30
|
};
|
|
31
31
|
readonly verifications: {
|
|
32
32
|
readonly name: "verifications";
|
|
33
33
|
readonly promptPath: "subroutines/verifications.md";
|
|
34
|
-
readonly description: "
|
|
34
|
+
readonly description: "Running tests, linting, and type checking";
|
|
35
35
|
readonly usesValidationLoop: true;
|
|
36
36
|
};
|
|
37
37
|
readonly validationFixer: {
|
|
38
38
|
readonly name: "validation-fixer";
|
|
39
39
|
readonly promptPath: "subroutines/validation-fixer.md";
|
|
40
|
-
readonly description: "
|
|
40
|
+
readonly description: "Fixing validation failures";
|
|
41
41
|
};
|
|
42
42
|
readonly gitCommit: {
|
|
43
43
|
readonly name: "git-commit";
|
|
44
44
|
readonly promptPath: "subroutines/git-commit.md";
|
|
45
|
-
readonly description: "
|
|
45
|
+
readonly description: "Committing and pushing changes";
|
|
46
46
|
};
|
|
47
47
|
readonly ghPr: {
|
|
48
48
|
readonly name: "gh-pr";
|
|
49
49
|
readonly promptPath: "subroutines/gh-pr.md";
|
|
50
|
-
readonly description: "
|
|
50
|
+
readonly description: "Creating or updating pull request";
|
|
51
51
|
};
|
|
52
52
|
readonly changelogUpdate: {
|
|
53
53
|
readonly name: "changelog-update";
|
|
54
54
|
readonly promptPath: "subroutines/changelog-update.md";
|
|
55
|
-
readonly description: "
|
|
55
|
+
readonly description: "Updating changelog";
|
|
56
56
|
};
|
|
57
57
|
readonly conciseSummary: {
|
|
58
58
|
readonly name: "concise-summary";
|
|
59
59
|
readonly promptPath: "subroutines/concise-summary.md";
|
|
60
60
|
readonly singleTurn: true;
|
|
61
|
-
readonly description: "
|
|
61
|
+
readonly description: "Creating summary";
|
|
62
62
|
readonly suppressThoughtPosting: true;
|
|
63
63
|
readonly disallowAllTools: true;
|
|
64
64
|
};
|
|
@@ -66,64 +66,64 @@ export declare const SUBROUTINES: {
|
|
|
66
66
|
readonly name: "verbose-summary";
|
|
67
67
|
readonly promptPath: "subroutines/verbose-summary.md";
|
|
68
68
|
readonly singleTurn: true;
|
|
69
|
-
readonly description: "
|
|
69
|
+
readonly description: "Creating detailed summary";
|
|
70
70
|
readonly suppressThoughtPosting: true;
|
|
71
71
|
readonly disallowAllTools: true;
|
|
72
72
|
};
|
|
73
73
|
readonly questionInvestigation: {
|
|
74
74
|
readonly name: "question-investigation";
|
|
75
75
|
readonly promptPath: "subroutines/question-investigation.md";
|
|
76
|
-
readonly description: "
|
|
76
|
+
readonly description: "Investigating question";
|
|
77
77
|
};
|
|
78
78
|
readonly questionAnswer: {
|
|
79
79
|
readonly name: "question-answer";
|
|
80
80
|
readonly promptPath: "subroutines/question-answer.md";
|
|
81
81
|
readonly singleTurn: true;
|
|
82
|
-
readonly description: "
|
|
82
|
+
readonly description: "Formatting answer";
|
|
83
83
|
readonly suppressThoughtPosting: true;
|
|
84
84
|
readonly disallowAllTools: true;
|
|
85
85
|
};
|
|
86
86
|
readonly codingActivity: {
|
|
87
87
|
readonly name: "coding-activity";
|
|
88
88
|
readonly promptPath: "subroutines/coding-activity.md";
|
|
89
|
-
readonly description: "
|
|
89
|
+
readonly description: "Implementing code changes";
|
|
90
90
|
};
|
|
91
91
|
readonly preparation: {
|
|
92
92
|
readonly name: "preparation";
|
|
93
93
|
readonly promptPath: "subroutines/preparation.md";
|
|
94
|
-
readonly description: "
|
|
94
|
+
readonly description: "Analyzing request and planning approach";
|
|
95
95
|
};
|
|
96
96
|
readonly planSummary: {
|
|
97
97
|
readonly name: "plan-summary";
|
|
98
98
|
readonly promptPath: "subroutines/plan-summary.md";
|
|
99
99
|
readonly singleTurn: true;
|
|
100
|
-
readonly description: "
|
|
100
|
+
readonly description: "Presenting implementation plan";
|
|
101
101
|
readonly suppressThoughtPosting: true;
|
|
102
102
|
readonly disallowAllTools: true;
|
|
103
103
|
};
|
|
104
104
|
readonly userTesting: {
|
|
105
105
|
readonly name: "user-testing";
|
|
106
106
|
readonly promptPath: "subroutines/user-testing.md";
|
|
107
|
-
readonly description: "
|
|
107
|
+
readonly description: "Performing user-requested testing";
|
|
108
108
|
};
|
|
109
109
|
readonly userTestingSummary: {
|
|
110
110
|
readonly name: "user-testing-summary";
|
|
111
111
|
readonly promptPath: "subroutines/user-testing-summary.md";
|
|
112
112
|
readonly singleTurn: true;
|
|
113
|
-
readonly description: "
|
|
113
|
+
readonly description: "Creating test results summary";
|
|
114
114
|
readonly suppressThoughtPosting: true;
|
|
115
115
|
readonly disallowAllTools: true;
|
|
116
116
|
};
|
|
117
117
|
readonly releaseExecution: {
|
|
118
118
|
readonly name: "release-execution";
|
|
119
119
|
readonly promptPath: "subroutines/release-execution.md";
|
|
120
|
-
readonly description: "
|
|
120
|
+
readonly description: "Executing release process";
|
|
121
121
|
};
|
|
122
122
|
readonly releaseSummary: {
|
|
123
123
|
readonly name: "release-summary";
|
|
124
124
|
readonly promptPath: "subroutines/release-summary.md";
|
|
125
125
|
readonly singleTurn: true;
|
|
126
|
-
readonly description: "
|
|
126
|
+
readonly description: "Creating release summary";
|
|
127
127
|
readonly suppressThoughtPosting: true;
|
|
128
128
|
readonly disallowAllTools: true;
|
|
129
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/procedures/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/procedures/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Hd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CA4E1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC/C,qBAAqB,EACrB,MAAM,CAWN,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE1E;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAC5C,cAAc,EAAE,qBAAqB,GACnC,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAE/C"}
|
|
@@ -13,51 +13,51 @@ export const SUBROUTINES = {
|
|
|
13
13
|
debuggerReproduction: {
|
|
14
14
|
name: "debugger-reproduction",
|
|
15
15
|
promptPath: "subroutines/debugger-reproduction.md",
|
|
16
|
-
description: "
|
|
16
|
+
description: "Reproducing bug and analyzing root cause",
|
|
17
17
|
},
|
|
18
18
|
getApproval: {
|
|
19
19
|
name: "get-approval",
|
|
20
20
|
promptPath: "subroutines/get-approval.md",
|
|
21
|
-
description: "
|
|
21
|
+
description: "Requesting user approval before proceeding",
|
|
22
22
|
singleTurn: true,
|
|
23
23
|
requiresApproval: true, // Flag to trigger approval workflow
|
|
24
24
|
},
|
|
25
25
|
debuggerFix: {
|
|
26
26
|
name: "debugger-fix",
|
|
27
27
|
promptPath: "subroutines/debugger-fix.md",
|
|
28
|
-
description: "
|
|
28
|
+
description: "Implementing fix based on root cause analysis",
|
|
29
29
|
},
|
|
30
30
|
verifications: {
|
|
31
31
|
name: "verifications",
|
|
32
32
|
promptPath: "subroutines/verifications.md",
|
|
33
|
-
description: "
|
|
33
|
+
description: "Running tests, linting, and type checking",
|
|
34
34
|
usesValidationLoop: true, // Enable validation loop with retry logic
|
|
35
35
|
},
|
|
36
36
|
validationFixer: {
|
|
37
37
|
name: "validation-fixer",
|
|
38
38
|
promptPath: "subroutines/validation-fixer.md",
|
|
39
|
-
description: "
|
|
39
|
+
description: "Fixing validation failures",
|
|
40
40
|
},
|
|
41
41
|
gitCommit: {
|
|
42
42
|
name: "git-commit",
|
|
43
43
|
promptPath: "subroutines/git-commit.md",
|
|
44
|
-
description: "
|
|
44
|
+
description: "Committing and pushing changes",
|
|
45
45
|
},
|
|
46
46
|
ghPr: {
|
|
47
47
|
name: "gh-pr",
|
|
48
48
|
promptPath: "subroutines/gh-pr.md",
|
|
49
|
-
description: "
|
|
49
|
+
description: "Creating or updating pull request",
|
|
50
50
|
},
|
|
51
51
|
changelogUpdate: {
|
|
52
52
|
name: "changelog-update",
|
|
53
53
|
promptPath: "subroutines/changelog-update.md",
|
|
54
|
-
description: "
|
|
54
|
+
description: "Updating changelog",
|
|
55
55
|
},
|
|
56
56
|
conciseSummary: {
|
|
57
57
|
name: "concise-summary",
|
|
58
58
|
promptPath: "subroutines/concise-summary.md",
|
|
59
59
|
singleTurn: true,
|
|
60
|
-
description: "
|
|
60
|
+
description: "Creating summary",
|
|
61
61
|
suppressThoughtPosting: true,
|
|
62
62
|
disallowAllTools: true,
|
|
63
63
|
},
|
|
@@ -65,64 +65,64 @@ export const SUBROUTINES = {
|
|
|
65
65
|
name: "verbose-summary",
|
|
66
66
|
promptPath: "subroutines/verbose-summary.md",
|
|
67
67
|
singleTurn: true,
|
|
68
|
-
description: "
|
|
68
|
+
description: "Creating detailed summary",
|
|
69
69
|
suppressThoughtPosting: true,
|
|
70
70
|
disallowAllTools: true,
|
|
71
71
|
},
|
|
72
72
|
questionInvestigation: {
|
|
73
73
|
name: "question-investigation",
|
|
74
74
|
promptPath: "subroutines/question-investigation.md",
|
|
75
|
-
description: "
|
|
75
|
+
description: "Investigating question",
|
|
76
76
|
},
|
|
77
77
|
questionAnswer: {
|
|
78
78
|
name: "question-answer",
|
|
79
79
|
promptPath: "subroutines/question-answer.md",
|
|
80
80
|
singleTurn: true,
|
|
81
|
-
description: "
|
|
81
|
+
description: "Formatting answer",
|
|
82
82
|
suppressThoughtPosting: true,
|
|
83
83
|
disallowAllTools: true,
|
|
84
84
|
},
|
|
85
85
|
codingActivity: {
|
|
86
86
|
name: "coding-activity",
|
|
87
87
|
promptPath: "subroutines/coding-activity.md",
|
|
88
|
-
description: "
|
|
88
|
+
description: "Implementing code changes",
|
|
89
89
|
},
|
|
90
90
|
preparation: {
|
|
91
91
|
name: "preparation",
|
|
92
92
|
promptPath: "subroutines/preparation.md",
|
|
93
|
-
description: "
|
|
93
|
+
description: "Analyzing request and planning approach",
|
|
94
94
|
},
|
|
95
95
|
planSummary: {
|
|
96
96
|
name: "plan-summary",
|
|
97
97
|
promptPath: "subroutines/plan-summary.md",
|
|
98
98
|
singleTurn: true,
|
|
99
|
-
description: "
|
|
99
|
+
description: "Presenting implementation plan",
|
|
100
100
|
suppressThoughtPosting: true,
|
|
101
101
|
disallowAllTools: true,
|
|
102
102
|
},
|
|
103
103
|
userTesting: {
|
|
104
104
|
name: "user-testing",
|
|
105
105
|
promptPath: "subroutines/user-testing.md",
|
|
106
|
-
description: "
|
|
106
|
+
description: "Performing user-requested testing",
|
|
107
107
|
},
|
|
108
108
|
userTestingSummary: {
|
|
109
109
|
name: "user-testing-summary",
|
|
110
110
|
promptPath: "subroutines/user-testing-summary.md",
|
|
111
111
|
singleTurn: true,
|
|
112
|
-
description: "
|
|
112
|
+
description: "Creating test results summary",
|
|
113
113
|
suppressThoughtPosting: true,
|
|
114
114
|
disallowAllTools: true,
|
|
115
115
|
},
|
|
116
116
|
releaseExecution: {
|
|
117
117
|
name: "release-execution",
|
|
118
118
|
promptPath: "subroutines/release-execution.md",
|
|
119
|
-
description: "
|
|
119
|
+
description: "Executing release process",
|
|
120
120
|
},
|
|
121
121
|
releaseSummary: {
|
|
122
122
|
name: "release-summary",
|
|
123
123
|
promptPath: "subroutines/release-summary.md",
|
|
124
124
|
singleTurn: true,
|
|
125
|
-
description: "
|
|
125
|
+
description: "Creating release summary",
|
|
126
126
|
suppressThoughtPosting: true,
|
|
127
127
|
disallowAllTools: true,
|
|
128
128
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/procedures/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,OAAO,EAAE;QACR,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,SAAS,EAAE,0FAA0F;QACjH,WAAW,EAAE,2BAA2B;KACxC;IACD,oBAAoB,EAAE;QACrB,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,sCAAsC;QAClD,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/procedures/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,OAAO,EAAE;QACR,IAAI,EAAE,SAAS;QACf,UAAU,EAAE,SAAS,EAAE,0FAA0F;Q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AA6E;QAC9E,WAAW,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,WAAW,CAAC;KAC/D;IAED,cAAc,EAAE;QACf,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,0DAA0D;QACvE,WAAW,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,kBAAkB,CAAC;KACtE;IAED,OAAO,EAAE;QACR,IAAI,EAAE,SAAS;QACf,WAAW,EACV,mFAAmF;QACpF,WAAW,EAAE,CAAC,WAAW,CAAC,gBAAgB,EAAE,WAAW,CAAC,cAAc,CAAC;KACvE;CACD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAGpC;IACH,QAAQ,EAAE,iBAAiB;IAC3B,aAAa,EAAE,oBAAoB;IACnC,SAAS,EAAE,iBAAiB;IAC5B,QAAQ,EAAE,WAAW;IACrB,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,eAAe;IACzB,YAAY,EAAE,mBAAmB;IACjC,cAAc,EAAE,cAAc;IAC9B,OAAO,EAAE,SAAS;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACxC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAC5C,cAAqC;IAErC,OAAO,2BAA2B,CAAC,cAAc,CAAC,CAAC;AACpD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IACnC,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -76,6 +76,7 @@ export interface ProcedureMetadata {
|
|
|
76
76
|
completedAt: number;
|
|
77
77
|
claudeSessionId: string | null;
|
|
78
78
|
geminiSessionId: string | null;
|
|
79
|
+
codexSessionId?: string | null;
|
|
79
80
|
/** The result text from the completed subroutine (if available) */
|
|
80
81
|
result?: string;
|
|
81
82
|
}>;
|
|
@@ -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GACf,WAAW,GACX,UAAU,GACV,MAAM,GACN,UAAU,GACV,cAAc,GACd,cAAc,GACd,SAAS,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,oCAAoC;IACpC,cAAc,EAAE,qBAAqB,CAAC;IAEtC,oCAAoC;IACpC,SAAS,EAAE,mBAAmB,CAAC;IAE/B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -67,6 +67,8 @@ export interface PromptAssemblyInput {
|
|
|
67
67
|
agentSession?: WebhookAgentSession;
|
|
68
68
|
/** Labels on the issue (for system prompt determination) */
|
|
69
69
|
labels?: string[];
|
|
70
|
+
/** GitHub username of the issue assignee (resolved from Linear gitHubUserId) */
|
|
71
|
+
assigneeGitHubUsername?: string;
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
72
74
|
* Result from building issue context (intermediate step)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/prompt-assembly/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACX,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,gBAAgB,EAChB,mBAAmB,EACnB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,kFAAkF;IAClF,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,QAAQ,EAAE;QACT,gDAAgD;QAChD,UAAU,EAAE,eAAe,EAAE,CAAC;QAE9B,oDAAoD;QACpD,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB,kCAAkC;QAClC,UAAU,EAAE,UAAU,CAAC;QAEvB,qCAAqC;QACrC,YAAY,EAAE,OAAO,CAAC;QAEtB,gDAAgD;QAChD,WAAW,EAAE,OAAO,CAAC;KACrB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,MAA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,EAAE,mBAAmB,CAAC;IAEnC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,gFAAgF;IAChF,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<version-tag value="graphite-orchestrator-v1.
|
|
1
|
+
<version-tag value="graphite-orchestrator-v1.3.0" />
|
|
2
2
|
|
|
3
3
|
You are an expert software architect and designer responsible for decomposing complex issues into executable sub-tasks and orchestrating their completion through specialized agents using **Graphite stacked PRs**.
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ Each PR in the stack:
|
|
|
30
30
|
## Required Tools
|
|
31
31
|
|
|
32
32
|
### Linear MCP Tools
|
|
33
|
-
- `mcp__linear__create_issue` - Create sub-issues with proper context
|
|
33
|
+
- `mcp__linear__create_issue` - Create sub-issues with proper context. **CRITICAL: ALWAYS SET `state` TO `"To Do"` (NOT "Triage")**
|
|
34
34
|
- `mcp__linear__get_issue` - Retrieve issue details
|
|
35
35
|
- `mcp__linear__update_issue` - Update issue properties
|
|
36
36
|
|
|
@@ -59,6 +59,7 @@ gt track --parent main # Or the appropriate base branch
|
|
|
59
59
|
|
|
60
60
|
Create sub-issues with:
|
|
61
61
|
- **Clear title**: `[Type] Specific action and target`
|
|
62
|
+
- **Status**: **CRITICAL - Always set `state` to `"To Do"`** (NOT "Triage"). Issues must be ready for work, not in triage.
|
|
62
63
|
- **Parent assignee inheritance**: Use the `assigneeId` from the parent issue context (available as `{{assignee_id}}`)
|
|
63
64
|
- **Required labels**:
|
|
64
65
|
- **Agent Type Label**: `Bug`, `Feature`, `Improvement`, or `PRD`
|
|
@@ -259,6 +260,7 @@ Include in every sub-issue:
|
|
|
259
260
|
## Sub-Issue Creation Checklist
|
|
260
261
|
|
|
261
262
|
When creating a sub-issue, verify:
|
|
263
|
+
- [ ] **Status set to "To Do"** (`state` parameter set to `"To Do"`, NOT "Triage")
|
|
262
264
|
- [ ] `graphite` label added
|
|
263
265
|
- [ ] Agent type label added (`Bug`, `Feature`, `Improvement`, or `PRD`)
|
|
264
266
|
- [ ] Model selection label evaluated (`sonnet` for simple tasks)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<version-tag value="orchestrator-v2.
|
|
1
|
+
<version-tag value="orchestrator-v2.5.0" />
|
|
2
2
|
|
|
3
3
|
You are an expert software architect and designer responsible for decomposing complex issues into executable sub-tasks and orchestrating their completion through specialized agents.
|
|
4
4
|
|
|
@@ -12,8 +12,8 @@ You are an expert software architect and designer responsible for decomposing co
|
|
|
12
12
|
## Required Tools
|
|
13
13
|
|
|
14
14
|
### Linear MCP Tools
|
|
15
|
-
- `
|
|
16
|
-
- `
|
|
15
|
+
- `mcp__linear__create_issue` - Create sub-issues with proper context. **CRITICAL: ALWAYS INCLUDE THE `parentId` PARAMETER, `assigneeId` PARAMETER TO INHERIT THE PARENT'S ASSIGNEE, AND SET `state` TO `"To Do"` (NOT "Triage")**
|
|
16
|
+
- `mcp__linear__get_issue` - Retrieve issue details
|
|
17
17
|
|
|
18
18
|
### Cyrus MCP Tools
|
|
19
19
|
- `mcp__cyrus-tools__linear_agent_session_create` - Create agent sessions for issue tracking
|
|
@@ -26,6 +26,7 @@ You are an expert software architect and designer responsible for decomposing co
|
|
|
26
26
|
### 1. Decompose
|
|
27
27
|
Create sub-issues with:
|
|
28
28
|
- **Clear title**: `[Type] Specific action and target`
|
|
29
|
+
- **Status**: **CRITICAL - Always set `state` to `"To Do"`** (NOT "Triage"). Issues must be ready for work, not in triage.
|
|
29
30
|
- **Parent assignee inheritance**: Use the `assigneeId` from the parent issue context (available as `{{assignee_id}}`) to ensure all sub-issues are assigned to the same person
|
|
30
31
|
- **❌ DO NOT assign yourself (Cyrus) as a delegate**: Never use the `delegate` parameter when creating sub-issues.
|
|
31
32
|
- **Structured description** (include the exact text template below in the sub-issue description):
|
|
@@ -205,6 +206,7 @@ Include in every sub-issue:
|
|
|
205
206
|
## Sub-Issue Creation Checklist
|
|
206
207
|
|
|
207
208
|
When creating a sub-issue, verify:
|
|
209
|
+
- [ ] **Status set to "To Do"** (`state` parameter set to `"To Do"`, NOT "Triage")
|
|
208
210
|
- [ ] Agent type label added (`Bug`, `Feature`, `Improvement`, or `PRD`)
|
|
209
211
|
- [ ] Model selection label evaluated (`sonnet` for simple tasks)
|
|
210
212
|
- [ ] **Parent assignee inherited** (`assigneeId` parameter set to parent's `{{assignee_id}}`)
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
<state>{{issue_state}}</state>
|
|
15
15
|
<priority>{{issue_priority}}</priority>
|
|
16
16
|
<url>{{issue_url}}</url>
|
|
17
|
+
<assignee>
|
|
18
|
+
<linear_display_name>{{assignee_name}}</linear_display_name>
|
|
19
|
+
<linear_profile_url>{{assignee_linear_profile_url}}</linear_profile_url>
|
|
20
|
+
<github_username>{{assignee_github_username}}</github_username>
|
|
21
|
+
<github_user_id>{{assignee_github_user_id}}</github_user_id>
|
|
22
|
+
<github_noreply_email>{{assignee_github_noreply_email}}</github_noreply_email>
|
|
23
|
+
</assignee>
|
|
17
24
|
</linear_issue>
|
|
18
25
|
|
|
19
26
|
<linear_comments>
|
|
@@ -21,6 +21,14 @@ Update the PR with a comprehensive description:
|
|
|
21
21
|
gh pr edit --title "[descriptive title]" --body "[full description]"
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
**IMPORTANT: Assignee attribution**
|
|
25
|
+
Check the `<assignee>` section from the issue context and add assignee information at the **very top** of the PR description body, before the summary:
|
|
26
|
+
|
|
27
|
+
- If a `<github_username>` is available, format as: `Assignee: @username ([Display Name](linear_profile_url))` — the @mention triggers a GitHub notification and the Linear profile link provides an audit trail
|
|
28
|
+
- If only a `<linear_profile_url>` is available (no GitHub username), format as: `Assignee: [Display Name](linear_profile_url)` using the `<linear_display_name>` and `<linear_profile_url>` values
|
|
29
|
+
|
|
30
|
+
Follow this with a blank line, then the rest of the description. If no assignee information is available at all, skip this step.
|
|
31
|
+
|
|
24
32
|
The PR description should include:
|
|
25
33
|
- Summary of changes
|
|
26
34
|
- Implementation approach
|
|
@@ -78,3 +86,7 @@ Draft PR updated at [PR URL] (kept as draft per guidance).
|
|
|
78
86
|
|
|
79
87
|
Example: "PR ready at https://github.com/org/repo/pull/123."
|
|
80
88
|
Example: "Draft PR updated at https://github.com/org/repo/pull/123 (kept as draft per guidance)."
|
|
89
|
+
|
|
90
|
+
## Deploy Preview (Optional)
|
|
91
|
+
|
|
92
|
+
If a skill is available in your environment whose "use me when" description refers to creating deploy previews for a branch, you can invoke it to set up a preview environment for testing this PR. This is useful for validating changes in a live environment before the code is merged. Use the skill if you want to create a preview environment, set up infrastructure for testing, or deploy to a preview platform.
|