Skip to content

Commit de11de3

Browse files
test: consume corrected context roots
1 parent 55479ad commit de11de3

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎packages/rstack/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"@rsdoctor/agent-cli": "https://pkg.pr.new/@rsdoctor/agent-cli@8926633c",
8383
"@rslib/core": "catalog:",
8484
"@rslint/core": "catalog:",
85-
"@rstackjs/context": "https://pkg.pr.new/rstackjs/context/@rstackjs/context@711b987",
85+
"@rstackjs/context": "https://pkg.pr.new/rstackjs/context/@rstackjs/context@b52259e",
8686
"@rstest/core": "catalog:",
8787
"prettier": "catalog:",
8888
"tinypool": "catalog:",

‎packages/rstack/tests/context/mcp.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ test('returns structured results for each artifact-scoped module tool', async ()
465465
expect(productRoots.content).toEqual([
466466
{
467467
type: 'text',
468-
text: 'Rstack roots: modules=8, edges=4, roots=1/4. See structuredContent for bounded root details.',
468+
text: 'Rstack roots: modules=8, edges=4, roots=1/1. See structuredContent for bounded root details.',
469469
},
470470
]);
471471
expect(productRoots.structuredContent).toMatchObject({
@@ -475,7 +475,7 @@ test('returns structured results for each artifact-scoped module tool', async ()
475475
artifactBinding: 'explicit-unverified',
476476
},
477477
graph: { moduleCount: 8, edgeCount: 4 },
478-
rootSummary: { total: 4, returned: 1, truncated: true },
478+
rootSummary: { total: 1, returned: 1, truncated: false },
479479
product: { roots: [expect.any(Object)] },
480480
});
481481

@@ -491,17 +491,17 @@ test('returns structured results for each artifact-scoped module tool', async ()
491491
expect(candidates.content).toEqual([
492492
{
493493
type: 'text',
494-
text: 'Rstack result: total=1, returned=1, project=1, dependency=0. See structuredContent for complete data.',
494+
text: 'Rstack result: total=4, returned=1, project=4, dependency=0. See structuredContent for complete data.',
495495
},
496496
]);
497497
expect(candidates.structuredContent).toMatchObject({
498-
total: 1,
498+
total: 4,
499499
returned: 1,
500-
ownership: { project: 1, dependency: 0 },
500+
ownership: { project: 4, dependency: 0 },
501501
candidates: [
502502
{
503503
classification: 'unreachable-module-candidate',
504-
subject: { kind: 'module', id: '3', path: 'src/legacy.ts' },
504+
subject: { kind: 'module', id: '8', path: 'src/cjs.ts' },
505505
},
506506
],
507507
});

‎pnpm-lock.yaml‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ packages:
44
- website
55

66
allowBuilds:
7-
'@rstackjs/context@https://pkg.pr.new/rstackjs/context/@rstackjs/context@711b987': true
7+
'@rstackjs/context@https://pkg.pr.new/rstackjs/context/@rstackjs/context@b52259e': true
88
core-js: false
99
simple-git-hooks: false
1010

0 commit comments

Comments
 (0)