@myagentroam/node 0.10.20 → 0.10.21
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/capabilities.js +3 -0
- package/dist/connector.js +59 -1
- package/dist/service/model-usage-service.js +29 -1
- package/dist/service/native-session-watch-service.js +10 -0
- package/dist/service/prompt-completion-attention.js +66 -0
- package/dist/service/prompt-completion-cache.js +312 -0
- package/dist/service/prompt-completion-context.js +87 -0
- package/dist/service/prompt-completion-generator.js +404 -0
- package/dist/service/prompt-completion-journal.js +65 -0
- package/dist/service/prompt-completion-node-service.js +241 -0
- package/dist/service/prompt-completion-service.js +311 -0
- package/dist/service/prompt-completion-task-context.js +51 -0
- package/dist/service/prompt-completion-workspace-source.js +62 -0
- package/dist/service/session-catalog-service.js +1 -1
- package/dist/service/workspace-watch-service.js +4 -0
- package/dist/service/workspace-workbench-service.js +6 -0
- package/package.json +4 -4
|
@@ -94,6 +94,10 @@ export class WorkspaceWatchService {
|
|
|
94
94
|
const watch = this.state.watches.get(workspaceId)?.get(key);
|
|
95
95
|
return watch !== undefined && watch.watchId === watchId && watch.expiresAt > Date.now();
|
|
96
96
|
}
|
|
97
|
+
observes(workspaceId, sessionHash, connectionId) {
|
|
98
|
+
const watch = this.state.watches.get(workspaceId)?.get(`${sessionHash}:${connectionId}`);
|
|
99
|
+
return watch !== undefined && watch.expiresAt > Date.now();
|
|
100
|
+
}
|
|
97
101
|
existing(workspaceId, key) {
|
|
98
102
|
const watch = this.state.watches.get(workspaceId)?.get(key);
|
|
99
103
|
return watch !== undefined && watch.expiresAt > Date.now() ? watch : undefined;
|
|
@@ -96,6 +96,12 @@ export class WorkspaceWorkbenchService {
|
|
|
96
96
|
workspace: await this.options.commitWorkspace(workspace, inspection)
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
+
async readPredictionFile(workspaceId, path, worktreePath) {
|
|
100
|
+
const workspace = this.options.requireWorkspace(workspaceId);
|
|
101
|
+
const repository = await this.fileRepository(workspace, worktreePath ? { worktreePath } : {});
|
|
102
|
+
const { readWorkspaceTextFile } = await import('../workspace.js');
|
|
103
|
+
return readWorkspaceTextFile(repository, path, 0, 64 * 1024);
|
|
104
|
+
}
|
|
99
105
|
async readFile(input) {
|
|
100
106
|
const workspace = this.options.requireWorkspace(input.workspaceId);
|
|
101
107
|
const repository = await this.fileRepository(workspace, input);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.21",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"playwright": "1.62.1",
|
|
38
38
|
"ws": "^8.21.3",
|
|
39
39
|
"zod": "4.4.3",
|
|
40
|
-
"@myagentroam/agent": "0.10.
|
|
41
|
-
"@myagentroam/protocol": "0.10.20",
|
|
40
|
+
"@myagentroam/agent": "0.10.21",
|
|
42
41
|
"@myagentroam/code-navigation": "0.10.1",
|
|
43
|
-
"@myagentroam/marctl": "0.10.2"
|
|
42
|
+
"@myagentroam/marctl": "0.10.2",
|
|
43
|
+
"@myagentroam/protocol": "0.10.21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/ws": "^8.18.1"
|