pig

command
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 23 Imported by: ? modules, 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.

Documentation

Overview

pi: src/main.ts + src/cli.ts — the coding agent CLI entry points. cli.ts sets process.title/env and configures the undici dispatcher (no pig counterpart: os env is set in Main, and net/http needs no dispatcher installation); main.ts handles CLI argument parsing and translates them into createAgentSession() options, with the SDK doing the heavy lifting. for the coding agent CLI. Handles CLI argument parsing and translates them into createAgentSession() options; the SDK does the heavy lifting.

Batch scope (print CLI 第 7 批): the print/json runtime path, auth commands, --list-models, --help/--version, and the session resolution paths reachable without a TUI. Deferred segments, each marked inline:

  • handlePackageCommand / handleConfigCommand (Phase 7 package manager)
  • runMigrations (Phase 8 migrations batch)
  • exportFromFile (--export, Phase 8 export-html batch)
  • runRpcMode (Phase 5 RPC batch)
  • InteractiveMode: the T5b shell subset is wired (regular mode, transcript/footer/submit chain); selectors, showLoadedResources, fullscreen mode, extension UI, and the session picker (--resume) remain deferred (T5b-2/T6 batches)
  • first-time setup / startup TUI (codingagent/cli startup-ui) are delivered but not yet wired into main (first-run flow lands with T6)
  • builtInExtensions / InlineExtension factories (Phase 7 extensions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL