Skip to content

fix(deps): update dependency @cyberuni/agent-harness to ^0.6.0 - #161

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/cyberuni-agent-harness-0.x
Oct 7, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/cyberuni-agent-harness-0.x

Conversation

@renovate

@renovate renovate Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@cyberuni/agent-harness (source) ^0.5.0 → ^0.6.0 age confidence

Release Notes

cyberuni/agent-harness (@​cyberuni/agent-harness)

v0.6.0

Compare Source

Minor Changes
  • f8913de: Add acquire, release, and explain to @cyberuni/agent-harness/worktrees. acquire({ holder, branch?, base?, available?, max? }) leases an idle worktree of ours and recycles it (read-tree --reset -u <base>, then clean -fd, which keeps node_modules), or creates one at the next free <parent>/<repo>.worktrees/<repo>-<n> slot through an injectable creator. The lease is an exclusive-created git worktree lock, read back after the claim. release(lease) gives it back only when the lease id still matches and never recycles. explain() gives the skip reason for every worktree. A worktree with a live agent session is skipped; when the probe cannot read processes, reuse proceeds and is reported unverified unless strict is set. An unlocked worktree at a library slot now classifies as self.

  • 3f2a9d4: Add the @cyberuni/agent-harness/worktrees subpath. It has three entry points:

    • primaryRoot finds the primary checkout from any folder in a repository, including a linked worktree.
    • listWorktrees lists every worktree with its branch, HEAD, detached, prunable and lock reason, plus whether its work has landed on the default branch and whether it is dirty.
    • readDirty checks a worktree for uncommitted changes, can ignore paths you name, and counts untracked files even when a repo hides them.

    Landed detection tries, in order: ancestry, a deleted upstream, a squash merge matched by patch id, and an opt-in forge probe (ghForgeMergedProbe).

  • adc4d95: Add a process probe to @cyberuni/agent-harness/worktrees that finds live agent sessions inside a worktree. It never kills anything.

    • probeProcesses reads the process table once. Its occupancy(root) reports busy, the occupants (every live session, with no limit on how many), the lingering processes, and the unlinked ones. Lingering means no live session launched the process, so a caller can reclaim it. Unlinked means the probe cannot tell.
    • occupants(root) lists the sessions working in one worktree.
    • A session is recognised by its executable, so tool subprocesses such as a vite started from Claude Code are not sessions. 14 harnesses are covered: Claude Code, Codex, Copilot CLI, Cursor, opencode, Kilo, Qwen Code, Crush, Gemini CLI, Goose, OpenHands, Cline, Auggie, and the Antigravity CLI.
    • The process source can be swapped out. procfsProcessSource reads Linux /proc. On any other platform the probe is unverified and reports not busy, unless you pass strict: true.
  • ffdc416: Add classifyOwner to @cyberuni/agent-harness/worktrees. It tells who owns a worktree: self (this library's lease), claude-code, codex, user (the primary checkout), or unknown. Each answer lists the research evidence it rests on. Only a self worktree may be reused or removed. parseLeaseReason reads the lease from a lock reason.

  • 8bcef77: Add pruneWorktrees to @cyberuni/agent-harness/worktrees. It removes the worktrees this library owns that nothing needs any more (unleased, idle, clean, and landed), then runs git worktree prune. It is a dry run unless apply is set, and returns an outcome per worktree with a skip reason. It never touches the primary checkout, a foreign or locked worktree, a leased one, or one with a live agent session; when the process probe cannot read the platform it skips unless strict: false. It never kills a process: lingering dev services are reported so the caller can reclaim them.

  • 654ac52: Add seedWorktree to @cyberuni/agent-harness/worktrees. It copies the gitignored files a .worktreeinclude names from the primary checkout into a new or recycled worktree, following Claude Code's semantics, and returns an inventory of what it copied and what it skipped and why. It reads the include file as data and runs no command but git; file operations go through an injectable SeedFs.

Patch Changes
  • 5d67d18: agent-harness reference now writes its --format output through @clibuilder/axi instead of a local copy of the same contract, and no longer depends on @toon-format/toon directly. TOON, JSON, and text output are byte-identical: axi's text renderer is the one this package carried. An unknown --format value is now rejected by clibuilder before the command runs, as a usage error (exit code 2) with clibuilder's message and the command's help, where it used to exit 1 with error: --format must be toon, json, or text.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) October 7, 2026 09:04
@changeset-bot

changeset-bot Bot commented Oct 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6fcc0e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot merged commit fe1edd8 into main Oct 7, 2026
7 checks passed
@renovate
renovate Bot deleted the renovate/cyberuni-agent-harness-0.x branch October 7, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants