@myagentroam/node 0.9.180 → 0.10.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/NOTICE CHANGED
@@ -2,3 +2,10 @@ MyAgentRoam
2
2
  Copyright 2026 MyAgentRoam contributors
3
3
 
4
4
  This product includes software developed by the MyAgentRoam project.
5
+
6
+ Enterprise implementation and product composition:
7
+ Copyright 2026 aCHAOS
8
+ Author and licensing contact: aCHAOS (achaosxyz@gmail.com)
9
+ Licensed under MyAgentRoam Enterprise Source-Available License 1.0; see
10
+ ee/LICENSE and LICENSING.md. Independent core and third-party notices remain
11
+ applicable; this attribution does not transfer any contributor's copyright.
@@ -1 +1 @@
1
- export const computerUseRuntimeVersion = '0.9.96';
1
+ export const computerUseRuntimeVersion = '0.10.1';
@@ -294,9 +294,6 @@ function safeRuntimePath(root, path) {
294
294
  throw new ComputerUseRuntimeError('COMPUTER_RUNTIME_MANIFEST_INVALID');
295
295
  return target;
296
296
  }
297
- function isMissing(error) {
298
- return (error instanceof Error && 'code' in error && error.code === 'ENOENT');
299
- }
300
297
  function isAlreadyExists(error) {
301
298
  return (error instanceof Error && 'code' in error && error.code === 'EEXIST');
302
299
  }
@@ -49,7 +49,7 @@ export class CodexRunner extends AbstractRunner {
49
49
  }).find((profile) => profile.runner === this.name);
50
50
  return { ...base, models: this.profileCache?.profile.models ?? [] };
51
51
  }
52
- cachedProfile(capabilities, environment = {}) {
52
+ cachedProfile(capabilities, _environment = {}) {
53
53
  const base = this.profile(capabilities);
54
54
  return this.profileCache === undefined ||
55
55
  this.profileCacheVersion !== capabilities.codex.version
@@ -43,7 +43,7 @@ export class OpenCodeRunner extends AbstractRunner {
43
43
  }).find((profile) => profile.runner === this.name);
44
44
  return { ...base, models: [] };
45
45
  }
46
- cachedProfile(capabilities, environment = {}) {
46
+ cachedProfile(capabilities, _environment = {}) {
47
47
  const cached = this.profileCache;
48
48
  return cached === undefined
49
49
  ? this.profile(capabilities)
@@ -70,10 +70,6 @@ function candidates(path) {
70
70
  ? [path]
71
71
  : [path, ...extensionlessSourceExtensions.map((extension) => `${path}${extension}`)];
72
72
  }
73
- function sourceFileStem(path) {
74
- const name = path.slice(path.lastIndexOf('/') + 1);
75
- return name.replace(/(?:\.d)?\.[^.]+$/u, '');
76
- }
77
73
  function unresolvedSpecifierScore(path, specifier) {
78
74
  const normalizedSpecifier = specifier.startsWith('@/') ? specifier.slice(2) : specifier;
79
75
  return trailingPathCandidateScore(path, unresolvedCandidates(normalizedSpecifier));
@@ -389,7 +389,10 @@ export class DirectTransferService {
389
389
  const complete = (error) => {
390
390
  channel.removeEventListener('bufferedamountlow', available);
391
391
  channel.removeEventListener('close', closed);
392
- error === undefined ? resolve() : reject(error);
392
+ if (error === undefined)
393
+ resolve();
394
+ else
395
+ reject(error);
393
396
  };
394
397
  const available = () => complete();
395
398
  const closed = () => complete(new Error('DIRECT_CHANNEL_CLOSED'));
@@ -1798,18 +1798,6 @@ function publishedTemplateEntry(value) {
1798
1798
  resolvedTarget
1799
1799
  };
1800
1800
  }
1801
- function publishedTemplateFiles(value) {
1802
- if (!Array.isArray(value))
1803
- throw new Error('CONVERSATION_TEMPLATE_VERSION_CORRUPTED');
1804
- const paths = new Set();
1805
- return value.map((candidate) => {
1806
- const file = publishedTemplateFile(candidate);
1807
- if (paths.has(file.relativePath))
1808
- throw new Error('CONVERSATION_TEMPLATE_VERSION_CORRUPTED');
1809
- paths.add(file.relativePath);
1810
- return file;
1811
- });
1812
- }
1813
1801
  function publishedTemplateFile(value, requireKind = false) {
1814
1802
  if (!record(value) ||
1815
1803
  (requireKind && value.kind !== 'FILE') ||
@@ -22,10 +22,6 @@ const MAX_TAGS_BYTES = 512 * 1024 * 1024;
22
22
  const MAX_CANDIDATES = 100;
23
23
  const MAX_RESULTS = 20;
24
24
  const MAX_REFERENCES = 100;
25
- const MAX_TAG_LINE_BYTES = 16 * 1024;
26
- const READ_BLOCK_BYTES = 4096;
27
- const MAX_TARGET_LINE_SCAN_BYTES = MAX_SOURCE_BYTES;
28
- const MAX_TARGET_PREVIEW_CHARACTERS = 512;
29
25
  /**
30
26
  * Builds a demand-driven, standard u-ctags declaration index. It never keeps
31
27
  * a complete symbol table, watcher, or idle child process in memory.
@@ -77,15 +77,15 @@ export class WorkspaceFileService {
77
77
  : readWorkspaceFileContentRange(workspacePath, path, offset, limit);
78
78
  }
79
79
  readDirect(workspace, input, workspacePath = workspace.path) {
80
- const service = this;
80
+ const readContent = this.readContent.bind(this);
81
81
  return (async function* () {
82
- const initial = (await service.readContent(workspace, { path: input.path, offset: input.range?.offset ?? 0, limit: 1 }, workspacePath));
82
+ const initial = (await readContent(workspace, { path: input.path, offset: input.range?.offset ?? 0, limit: 1 }, workspacePath));
83
83
  if (initial.size !== input.size || initial.sourceRevision !== input.revision)
84
84
  throw new Error('DIRECT_FILE_REVISION_CHANGED');
85
85
  let offset = input.range?.offset ?? 0;
86
86
  const endOffset = input.range === undefined ? input.size : input.range.offset + input.range.length;
87
87
  while (offset < endOffset) {
88
- const range = (await service.readContent(workspace, {
88
+ const range = (await readContent(workspace, {
89
89
  path: input.path,
90
90
  offset,
91
91
  limit: Math.min(512 * 1024, endOffset - offset)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.180",
3
+ "version": "0.10.1",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -36,10 +36,10 @@
36
36
  "playwright": "1.62.1",
37
37
  "ws": "^8.21.3",
38
38
  "zod": "4.4.3",
39
- "@myagentroam/agent": "0.9.180",
40
- "@myagentroam/protocol": "0.9.180",
41
- "@myagentroam/marctl": "0.9.123",
42
- "@myagentroam/code-navigation": "0.9.129"
39
+ "@myagentroam/agent": "0.10.1",
40
+ "@myagentroam/protocol": "0.10.1",
41
+ "@myagentroam/marctl": "0.10.1",
42
+ "@myagentroam/code-navigation": "0.10.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/ws": "^8.18.1"
@@ -51,7 +51,7 @@
51
51
  "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.tests.json --noEmit",
52
52
  "dev": "tsx watch src/main.ts",
53
53
  "start": "node dist/main.js",
54
- "test:unit": "vitest run --config vitest.config.mts",
54
+ "test:unit": "vitest run --config vitest.config.mts && node --test test/unit/*.test.mjs",
55
55
  "test:e2e:real": "vitest run --config vitest.e2e.config.mts"
56
56
  }
57
57
  }