Discover Packages
github.com/xhd2015/agent-pro
pkgs
agentdriver
package
Version:
v0.0.193
Opens a new window with list of versions in this module.
Published: Sep 9, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package agentdriver resolves the host process argv used to re-exec into
agent-run CLI (ForceNew follow-up and TTY __serve_* children).
Implementation lives in github.com/xhd2015/tty-watch/pkgs/agentdriver so that
agent-pro and standalone tty-watch share the same Driver type identity.
Command resolves d (if needed), builds argv with remainder, and returns *exec.Cmd.
CommandContext is like Command with a context.
MustArgv is Argv after Resolve; for tests and call sites that already handle Resolve.
Driver is the host re-exec configuration for agent-run embedding.
Type-aliased to tty-watch so values can be passed into ttywatch APIs.
DefaultSelf returns Driver{Binary: abs path of this process, Args: nil}.
Resolve returns a Driver with absolute Binary. Empty Binary uses DefaultSelf.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.