edsger 0.10.0 → 0.10.1
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.
|
@@ -5,7 +5,16 @@
|
|
|
5
5
|
"Bash(npm run build)",
|
|
6
6
|
"Bash(node:*)",
|
|
7
7
|
"Bash(git add:*)",
|
|
8
|
-
"Bash(git commit:*)"
|
|
8
|
+
"Bash(git commit:*)",
|
|
9
|
+
"Bash(ls:*)",
|
|
10
|
+
"Bash(cat:*)",
|
|
11
|
+
"Bash(npm run typecheck:*)",
|
|
12
|
+
"Bash(git diff:*)",
|
|
13
|
+
"WebSearch",
|
|
14
|
+
"WebFetch(domain:supabase.com)",
|
|
15
|
+
"Bash(npm install:*)",
|
|
16
|
+
"Bash(grep:*)",
|
|
17
|
+
"Bash(npx supabase gen types typescript --help:*)"
|
|
9
18
|
],
|
|
10
19
|
"deny": [],
|
|
11
20
|
"ask": []
|
|
@@ -21,12 +21,16 @@ export async function checkApprovalBeforePhaseExecution(featureId, verbose = fal
|
|
|
21
21
|
const productId = feature.product_id;
|
|
22
22
|
if (verbose) {
|
|
23
23
|
logInfo(`🔍 Checking approval for current status: ${currentStatus}`);
|
|
24
|
+
logInfo(`📦 Product ID: ${productId}`);
|
|
24
25
|
}
|
|
25
26
|
// 2. Check if current status requires approval
|
|
26
27
|
const requiresApprovalResult = (await callMcpEndpoint('approvals/requires_approval', {
|
|
27
28
|
product_id: productId,
|
|
28
29
|
feature_status: currentStatus,
|
|
29
30
|
}));
|
|
31
|
+
if (verbose) {
|
|
32
|
+
logInfo(`📋 MCP requires_approval response: ${JSON.stringify(requiresApprovalResult)}`);
|
|
33
|
+
}
|
|
30
34
|
const requiresApproval = requiresApprovalResult?.requires_approval === true;
|
|
31
35
|
if (!requiresApproval) {
|
|
32
36
|
if (verbose) {
|
package/dist/api/github.js
CHANGED
|
@@ -89,7 +89,8 @@ export async function getGitHubConfig(featureId, verbose) {
|
|
|
89
89
|
}
|
|
90
90
|
return {
|
|
91
91
|
configured: false,
|
|
92
|
-
message: result.message ||
|
|
92
|
+
message: result.message ||
|
|
93
|
+
'GitHub not configured for this product. Please configure a developer with GitHub App installation in the product settings.',
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
catch (error) {
|
|
@@ -74,7 +74,10 @@ export async function handlePullRequestCreation({ featureId, results, testingRes
|
|
|
74
74
|
}
|
|
75
75
|
// Get GitHub configuration from product developer settings
|
|
76
76
|
const githubConfig = await getGitHubConfig(featureId, verbose);
|
|
77
|
-
if (!githubConfig.configured ||
|
|
77
|
+
if (!githubConfig.configured ||
|
|
78
|
+
!githubConfig.token ||
|
|
79
|
+
!githubConfig.owner ||
|
|
80
|
+
!githubConfig.repo) {
|
|
78
81
|
if (verbose) {
|
|
79
82
|
console.log('⚠️ GitHub configuration not found. Skipping pull request creation.');
|
|
80
83
|
console.log(` ${githubConfig.message || 'Please configure a developer with GitHub App installation in the product settings.'}`);
|
|
@@ -92,7 +95,7 @@ export async function handlePullRequestCreation({ featureId, results, testingRes
|
|
|
92
95
|
}, verbose);
|
|
93
96
|
return false;
|
|
94
97
|
}
|
|
95
|
-
const { token: githubToken, owner: githubOwner, repo: githubRepo } = githubConfig;
|
|
98
|
+
const { token: githubToken, owner: githubOwner, repo: githubRepo, } = githubConfig;
|
|
96
99
|
if (verbose) {
|
|
97
100
|
console.log(`📌 Using GitHub config from product developer: ${githubOwner}/${githubRepo}`);
|
|
98
101
|
}
|