@myagentroam/node 0.11.26 → 0.11.28

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 WorkspaceChangeService {
88
88
  repositoryPath,
89
89
  repositoryName: repositoryPath === '' ? basename(repository) : posix.basename(repositoryPath),
90
90
  branch: summary.branch,
91
+ ...(summary.head === undefined ? {} : { head: summary.head }),
91
92
  ...(summary.tracking === undefined ? {} : { tracking: summary.tracking }),
92
93
  dirty: summary.changes.length > 0,
93
94
  status: summary.changes.length > 0 ? 'DIRTY' : 'CLEAN',
package/dist/workspace.js CHANGED
@@ -1426,8 +1426,13 @@ export async function readCurrentChangesSummary(workspacePath, isolateSubmoduleF
1426
1426
  index += 1;
1427
1427
  }
1428
1428
  const tracking = trackingFromStatusHeader(header);
1429
+ const branch = header.startsWith('## ') ? currentBranchFromStatusHeader(header) : null;
1430
+ const head = branch === null
1431
+ ? (await runReadOnlyGit(workspacePath, ['rev-parse', '--verify', 'HEAD'])).text.trim()
1432
+ : undefined;
1429
1433
  return {
1430
- branch: header.startsWith('## ') ? currentBranchFromStatusHeader(header) : null,
1434
+ branch,
1435
+ ...(head === undefined ? {} : { head }),
1431
1436
  ...(tracking === undefined ? {} : { tracking }),
1432
1437
  changes: output
1433
1438
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.11.26",
3
+ "version": "0.11.28",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -38,10 +38,10 @@
38
38
  "sharp": "0.35.5",
39
39
  "ws": "^8.21.3",
40
40
  "zod": "4.4.3",
41
- "@myagentroam/agent": "0.11.26",
41
+ "@myagentroam/agent": "0.11.28",
42
42
  "@myagentroam/code-navigation": "0.11.0",
43
- "@myagentroam/marctl": "0.11.1",
44
- "@myagentroam/protocol": "0.11.26"
43
+ "@myagentroam/protocol": "0.11.28",
44
+ "@myagentroam/marctl": "0.11.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/ws": "^8.18.1"