@myagentroam/node 0.9.99 → 0.9.100
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.
|
@@ -88,6 +88,7 @@ export class WorkspaceCodeNavigationService {
|
|
|
88
88
|
async definition(workspace, input) {
|
|
89
89
|
const path = input.path;
|
|
90
90
|
const symbol = input.symbol;
|
|
91
|
+
const includeReferences = input.includeReferences;
|
|
91
92
|
const reference = input.reference === undefined
|
|
92
93
|
? undefined
|
|
93
94
|
: workspaceFileReferenceSchema.safeParse(input.reference);
|
|
@@ -97,6 +98,7 @@ export class WorkspaceCodeNavigationService {
|
|
|
97
98
|
(typeof symbol === 'string' && reference !== undefined) ||
|
|
98
99
|
(typeof symbol !== 'string' && reference === undefined) ||
|
|
99
100
|
(typeof symbol === 'string' && !isNavigationSymbol(path, symbol)) ||
|
|
101
|
+
(includeReferences !== undefined && typeof includeReferences !== 'boolean') ||
|
|
100
102
|
(reference !== undefined && !reference.success))
|
|
101
103
|
throw new Error('SYMBOL_DEFINITION_INVALID');
|
|
102
104
|
if (reference !== undefined) {
|
|
@@ -172,7 +174,9 @@ export class WorkspaceCodeNavigationService {
|
|
|
172
174
|
});
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
|
-
const references =
|
|
177
|
+
const references = includeReferences === false
|
|
178
|
+
? { matches: [], truncated: false }
|
|
179
|
+
: await this.findReferences(workspace, requestedSymbol, targets);
|
|
176
180
|
return {
|
|
177
181
|
state: fresh ? 'READY' : 'STALE',
|
|
178
182
|
targets: targets.slice(0, MAX_RESULTS),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.100",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"npm": "11.12.1",
|
|
31
31
|
"ws": "^8.21.3",
|
|
32
32
|
"zod": "4.4.3",
|
|
33
|
-
"@myagentroam/agent": "0.9.
|
|
34
|
-
"@myagentroam/code-navigation": "0.9.
|
|
35
|
-
"@myagentroam/protocol": "0.9.
|
|
33
|
+
"@myagentroam/agent": "0.9.100",
|
|
34
|
+
"@myagentroam/code-navigation": "0.9.100",
|
|
35
|
+
"@myagentroam/protocol": "0.9.100"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/ws": "^8.18.1"
|