borgmcp 2.7.1 → 2.7.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.
Files changed (41) hide show
  1. package/README.md +15 -10
  2. package/dist/assimilate-cmd.d.ts.map +1 -1
  3. package/dist/assimilate-cmd.js +72 -24
  4. package/dist/assimilate-cmd.js.map +1 -1
  5. package/dist/cubes.d.ts +10 -5
  6. package/dist/cubes.d.ts.map +1 -1
  7. package/dist/cubes.js +54 -3
  8. package/dist/cubes.js.map +1 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +60 -7
  11. package/dist/index.js.map +1 -1
  12. package/dist/log-stream.d.ts +3 -0
  13. package/dist/log-stream.d.ts.map +1 -1
  14. package/dist/log-stream.js +6 -1
  15. package/dist/log-stream.js.map +1 -1
  16. package/dist/opencode-seat-identity.d.ts +22 -0
  17. package/dist/opencode-seat-identity.d.ts.map +1 -0
  18. package/dist/opencode-seat-identity.js +69 -0
  19. package/dist/opencode-seat-identity.js.map +1 -0
  20. package/dist/startup-services.d.ts +3 -1
  21. package/dist/startup-services.d.ts.map +1 -1
  22. package/dist/startup-services.js +7 -2
  23. package/dist/startup-services.js.map +1 -1
  24. package/dist/stream-owner.d.ts +9 -0
  25. package/dist/stream-owner.d.ts.map +1 -1
  26. package/dist/stream-owner.js +14 -2
  27. package/dist/stream-owner.js.map +1 -1
  28. package/dist/stream-status.d.ts.map +1 -1
  29. package/dist/stream-status.js +8 -1
  30. package/dist/stream-status.js.map +1 -1
  31. package/docs/EXTRACTION_PROVENANCE.md +3 -3
  32. package/docs/RELEASING.md +6 -1
  33. package/package.json +1 -1
  34. package/src/assimilate-cmd.ts +81 -24
  35. package/src/cubes.ts +70 -3
  36. package/src/index.ts +66 -7
  37. package/src/log-stream.ts +9 -1
  38. package/src/opencode-seat-identity.ts +111 -0
  39. package/src/startup-services.ts +8 -2
  40. package/src/stream-owner.ts +23 -2
  41. package/src/stream-status.ts +8 -1
@@ -161,7 +161,10 @@ export function renderStreamStatus(inputs: RenderInputs): string {
161
161
  if (orphanedInitialization) {
162
162
  summary = '**Stream blocked by an orphaned initialization lock.**';
163
163
  } else if (ownedByOther) {
164
- summary = '**Stream owned by another Borg MCP process.**';
164
+ const owner = status.ownership!;
165
+ summary = owner.droneLabel && owner.worktree
166
+ ? `**Stream owned by seat ${owner.droneLabel} in \`${owner.worktree}\`.**`
167
+ : '**Stream owned by another Borg MCP process.**';
165
168
  } else if (isNotStarted) {
166
169
  summary = '**Stream not started.**';
167
170
  } else if (!status.connected) {
@@ -245,6 +248,8 @@ export function renderStreamStatus(inputs: RenderInputs): string {
245
248
 
246
249
  if (ownedByOther) {
247
250
  const owner = status.ownership!;
251
+ lines.push(`- **stream owner seat**: ${owner.droneLabel ?? '_(unknown)_'}`);
252
+ lines.push(`- **stream owner worktree**: ${owner.worktree ?? '_(unknown)_'}`);
248
253
  lines.push(`- **stream owner pid**: ${owner.pid ?? '_(unknown)_'}`);
249
254
  lines.push(`- **stream owner cwd**: ${owner.cwd ?? '_(unknown)_'}`);
250
255
  lines.push(
@@ -254,6 +259,8 @@ export function renderStreamStatus(inputs: RenderInputs): string {
254
259
  : '_(unknown)_'
255
260
  }`
256
261
  );
262
+ lines.push('');
263
+ lines.push('Continue in the owning seat, or close its duplicate agent session before relaunching from the intended worktree. The live owner releases this lock on exit; a stale lock is reclaimed automatically.');
257
264
  }
258
265
 
259
266
  if (wakePath.agentKind === 'opencode' && wakePath.openCode) {