archgraph-argo 0.16.1 → 0.16.2
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.
|
@@ -2317,7 +2317,9 @@ async function callTool(name, args = {}, dependencies = undefined) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
2319
|
|
|
2320
|
-
const journey = await resolveSemanticOperatorJourney(dependencies
|
|
2320
|
+
const journey = await resolveSemanticOperatorJourney(dependencies, {
|
|
2321
|
+
repositoryRoot: context.workspaceRoot,
|
|
2322
|
+
});
|
|
2321
2323
|
return applySemanticResponseProfile(await journey.query(query), query, contractOptions);
|
|
2322
2324
|
}
|
|
2323
2325
|
|
|
@@ -2433,7 +2435,9 @@ async function memorySearchTool(args = {}, dependencies = undefined) {
|
|
|
2433
2435
|
const context = await loadContext(args);
|
|
2434
2436
|
let retrieved;
|
|
2435
2437
|
try {
|
|
2436
|
-
const journey = await resolveSemanticOperatorJourney(dependencies
|
|
2438
|
+
const journey = await resolveSemanticOperatorJourney(dependencies, {
|
|
2439
|
+
repositoryRoot: context.workspaceRoot,
|
|
2440
|
+
});
|
|
2437
2441
|
retrieved = await journey.query({ purpose: 'general', intent: query });
|
|
2438
2442
|
} catch (error) {
|
|
2439
2443
|
return {
|
|
@@ -2585,10 +2589,21 @@ function queryNeo4jGraphSchemaResult(architecturePath, workspaceRoot) {
|
|
|
2585
2589
|
});
|
|
2586
2590
|
}
|
|
2587
2591
|
|
|
2588
|
-
async function resolveSemanticOperatorJourney(dependencies) {
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
+
async function resolveSemanticOperatorJourney(dependencies, options = {}) {
|
|
2593
|
+
if (dependencies && dependencies.semanticOperatorJourney) {
|
|
2594
|
+
return dependencies.semanticOperatorJourney;
|
|
2595
|
+
}
|
|
2596
|
+
// Thread the caller's already-resolved workspace root into the journey: the
|
|
2597
|
+
// no-arg resolveWorkspaceRoot() fallback is process.cwd(), i.e. whatever
|
|
2598
|
+
// directory the host launched this server from (a global ~/.argo installation
|
|
2599
|
+
// started by the host process resolves to that host's cwd, e.g.
|
|
2600
|
+
// C:\Windows\System32), never the workspace the caller asked for.
|
|
2601
|
+
const repositoryRoot = options && typeof options.repositoryRoot === 'string'
|
|
2602
|
+
? options.repositoryRoot
|
|
2603
|
+
: '';
|
|
2604
|
+
return createDefaultProductionSemanticOperatorJourney(
|
|
2605
|
+
repositoryRoot ? { repositoryRoot } : {},
|
|
2606
|
+
);
|
|
2592
2607
|
}
|
|
2593
2608
|
|
|
2594
2609
|
async function executeSemanticSystemArchitectureQuery(args, dependencies) {
|
package/package.json
CHANGED