@debugg-ai/debugg-ai-mcp 6.0.0 → 6.0.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.
|
@@ -320,6 +320,10 @@ async function testPageChangesHandlerInner(input, context, rawProgressCallback)
|
|
|
320
320
|
await progressCallback({ progress: 2, total: TOTAL_STEPS, message: 'Locating evaluation workflow template...' });
|
|
321
321
|
}
|
|
322
322
|
const repoName = input.repoName || detectRepoName();
|
|
323
|
+
// An environment belongs to one project, so naming one names the project:
|
|
324
|
+
// the backend files the run under it (platform-98fv.21). The working folder's
|
|
325
|
+
// repo name is only a guess, used when no environment is named.
|
|
326
|
+
const namedEnvironmentId = input.environmentId || input.auth?.environmentId;
|
|
323
327
|
const [templateUuid, projectUuid] = await Promise.all([
|
|
324
328
|
// Cache key = the dispatch slug so the cache key and the lookup can never
|
|
325
329
|
// drift apart (bug clka: the key used to be a decoupled 'app evaluation'
|
|
@@ -327,7 +331,7 @@ async function testPageChangesHandlerInner(input, context, rawProgressCallback)
|
|
|
327
331
|
getCachedTemplateUuid(getEvalTemplateSlug(), async () => {
|
|
328
332
|
return client.workflows.findEvaluationTemplate();
|
|
329
333
|
}),
|
|
330
|
-
repoName
|
|
334
|
+
!namedEnvironmentId && repoName
|
|
331
335
|
? getCachedProjectUuid(repoName, async (repo) => {
|
|
332
336
|
try {
|
|
333
337
|
return await client.findProjectByRepoName(repo);
|
|
@@ -346,7 +350,7 @@ async function testPageChangesHandlerInner(input, context, rawProgressCallback)
|
|
|
346
350
|
// semantics: project_id is required). Surfacing "link this repo to a
|
|
347
351
|
// project" now — before executeWorkflow — beats letting a backend workflow
|
|
348
352
|
// node fail mid-run several minutes into the evaluation.
|
|
349
|
-
if (!projectUuid) {
|
|
353
|
+
if (!projectUuid && !namedEnvironmentId) {
|
|
350
354
|
const payload = {
|
|
351
355
|
error: 'ProjectRequired',
|
|
352
356
|
message: repoName
|
package/dist/services/index.js
CHANGED
|
@@ -82,8 +82,9 @@ export class DebuggAIServerClient {
|
|
|
82
82
|
|| p.repo?.name?.endsWith(`/${short}`));
|
|
83
83
|
if (repoMatch)
|
|
84
84
|
return repoMatch;
|
|
85
|
-
//
|
|
86
|
-
|
|
85
|
+
// No match is no project. The first search hit is a different project whose
|
|
86
|
+
// name merely contains this one (platform-98fv.21).
|
|
87
|
+
return null;
|
|
87
88
|
}
|
|
88
89
|
/**
|
|
89
90
|
* Simplified project shape used by get/update tools — drops heavy internal
|