mindkeg-mcp 0.6.0 → 0.6.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.
- package/dist/cli/index.js +13 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +13 -9
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +13 -9
- package/dist/services/index.js.map +1 -1
- package/dist/storage/storage-adapter.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{index-Cq2hedvZ.d.ts → index-GC26W794.d.ts} +6 -6
package/dist/cli/index.js
CHANGED
|
@@ -3476,6 +3476,9 @@ var CompleteRunInputSchema = z6.object({
|
|
|
3476
3476
|
});
|
|
3477
3477
|
|
|
3478
3478
|
// src/services/entity-service.ts
|
|
3479
|
+
function normalizePath2(p) {
|
|
3480
|
+
return p.replace(/\\/g, "/");
|
|
3481
|
+
}
|
|
3479
3482
|
var GOTCHA_SIMILARITY_THRESHOLD = 0.85;
|
|
3480
3483
|
var BUDGET_LIMITS = {
|
|
3481
3484
|
compact: 2e3,
|
|
@@ -3576,7 +3579,7 @@ var EntityService = class {
|
|
|
3576
3579
|
const data = parsed.data;
|
|
3577
3580
|
return this.storage.createDecision({
|
|
3578
3581
|
id: randomUUID3(),
|
|
3579
|
-
repository: data.repository,
|
|
3582
|
+
repository: normalizePath2(data.repository),
|
|
3580
3583
|
category: data.category,
|
|
3581
3584
|
choice: data.choice,
|
|
3582
3585
|
rationale: data.rationale,
|
|
@@ -3591,7 +3594,7 @@ var EntityService = class {
|
|
|
3591
3594
|
if (!repository) {
|
|
3592
3595
|
throw new ValidationError("repository is required");
|
|
3593
3596
|
}
|
|
3594
|
-
return this.storage.getDecisions(repository, category);
|
|
3597
|
+
return this.storage.getDecisions(normalizePath2(repository), category);
|
|
3595
3598
|
}
|
|
3596
3599
|
/**
|
|
3597
3600
|
* Supersede an existing decision with a newer one (AMU-AC-8).
|
|
@@ -3633,7 +3636,7 @@ var EntityService = class {
|
|
|
3633
3636
|
const data = parsed.data;
|
|
3634
3637
|
return this.storage.createFinding({
|
|
3635
3638
|
id: randomUUID3(),
|
|
3636
|
-
repository: data.repository,
|
|
3639
|
+
repository: normalizePath2(data.repository),
|
|
3637
3640
|
file_path: data.file_path,
|
|
3638
3641
|
severity: data.severity,
|
|
3639
3642
|
issue: data.issue,
|
|
@@ -3669,7 +3672,7 @@ var EntityService = class {
|
|
|
3669
3672
|
if (!repository) {
|
|
3670
3673
|
throw new ValidationError("repository is required");
|
|
3671
3674
|
}
|
|
3672
|
-
return this.storage.getOpenFindings(repository, severity);
|
|
3675
|
+
return this.storage.getOpenFindings(normalizePath2(repository), severity);
|
|
3673
3676
|
}
|
|
3674
3677
|
// ---------------------------------------------------------------------------
|
|
3675
3678
|
// Gotchas (AMU-AC-12, AMU-AC-13, AMU-AC-30, AMU-AC-31)
|
|
@@ -3714,7 +3717,7 @@ var EntityService = class {
|
|
|
3714
3717
|
}
|
|
3715
3718
|
const gotcha2 = await this.storage.createGotcha({
|
|
3716
3719
|
id: randomUUID3(),
|
|
3717
|
-
repository: data.repository,
|
|
3720
|
+
repository: normalizePath2(data.repository),
|
|
3718
3721
|
description: data.description,
|
|
3719
3722
|
tags: data.tags,
|
|
3720
3723
|
technology: data.technology ?? null,
|
|
@@ -3738,7 +3741,7 @@ var EntityService = class {
|
|
|
3738
3741
|
}
|
|
3739
3742
|
const gotcha = await this.storage.createGotcha({
|
|
3740
3743
|
id: randomUUID3(),
|
|
3741
|
-
repository: data.repository,
|
|
3744
|
+
repository: normalizePath2(data.repository),
|
|
3742
3745
|
description: data.description,
|
|
3743
3746
|
tags: data.tags,
|
|
3744
3747
|
technology: data.technology ?? null,
|
|
@@ -3754,7 +3757,7 @@ var EntityService = class {
|
|
|
3754
3757
|
if (!repository) {
|
|
3755
3758
|
throw new ValidationError("repository is required");
|
|
3756
3759
|
}
|
|
3757
|
-
return this.storage.getGotchas(repository, technology);
|
|
3760
|
+
return this.storage.getGotchas(normalizePath2(repository), technology);
|
|
3758
3761
|
}
|
|
3759
3762
|
// ---------------------------------------------------------------------------
|
|
3760
3763
|
// Run Summaries (AMU-AC-14, AMU-AC-15)
|
|
@@ -3770,7 +3773,7 @@ var EntityService = class {
|
|
|
3770
3773
|
const data = parsed.data;
|
|
3771
3774
|
return this.storage.createRunSummary({
|
|
3772
3775
|
id: randomUUID3(),
|
|
3773
|
-
repository: data.repository,
|
|
3776
|
+
repository: normalizePath2(data.repository),
|
|
3774
3777
|
summary: data.summary,
|
|
3775
3778
|
files_changed: data.files_changed ?? [],
|
|
3776
3779
|
outcome: data.outcome,
|
|
@@ -3786,7 +3789,7 @@ var EntityService = class {
|
|
|
3786
3789
|
throw new ValidationError("repository is required");
|
|
3787
3790
|
}
|
|
3788
3791
|
const clampedLimit = Math.min(Math.max(1, limit), 50);
|
|
3789
|
-
return this.storage.getRunHistory(repository, clampedLimit);
|
|
3792
|
+
return this.storage.getRunHistory(normalizePath2(repository), clampedLimit);
|
|
3790
3793
|
}
|
|
3791
3794
|
// ---------------------------------------------------------------------------
|
|
3792
3795
|
// Relevant Context (AMU-AC-16, AMU-AC-17, AMU-AC-18)
|
|
@@ -3803,6 +3806,7 @@ var EntityService = class {
|
|
|
3803
3806
|
if (!taskDescription) {
|
|
3804
3807
|
throw new ValidationError("task_description is required");
|
|
3805
3808
|
}
|
|
3809
|
+
repository = repository.replace(/\\/g, "/");
|
|
3806
3810
|
const keywords = extractKeywords(taskDescription);
|
|
3807
3811
|
const budgetLimit = BUDGET_LIMITS[budget];
|
|
3808
3812
|
const [decisions, openFindings, gotchas, recentRuns] = await Promise.all([
|