internal/

directory
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT

Directories

Path Synopsis
Package bodyreadhook lets a test fixture synchronize with a provider's HTTP connection reads.
Package bodyreadhook lets a test fixture synchronize with a provider's HTTP connection reads.
readbarrier
Package readbarrier synchronizes a test fixture server with the owned provider transport's socket reads.
Package readbarrier synchronizes a test fixture server with the owned provider transport's socket reads.
Package buildprogress reports product-neutral diagnostics for explicit builds.
Package buildprogress reports product-neutral diagnostics for explicit builds.
Package chord is the local Go runtime for the subset of Pi 0.87.1's packages/chord that the experimental service graph consumes: replicated state, the remote service provider and its endpoint, the operation-stream replica binding, and JSON-copy transports.
Package chord is the local Go runtime for the subset of Pi 0.87.1's packages/chord that the experimental service graph consumes: replicated state, the remote service provider and its endpoint, the operation-stream replica binding, and JSON-copy transports.
coding
pigidentity
Package pigidentity holds the product identity PiG sends to services in place of Pi's.
Package pigidentity holds the product identity PiG sends to services in place of Pi's.
pigversion
Package pigversion provides PiG and upstream Pi version pins to packages that cannot import coding.
Package pigversion provides PiG and upstream Pi version pins to packages that cannot import coding.
Model picker auth-filter scope toggle.
Model picker auth-filter scope toggle.
compaction
Ports packages/coding-agent/src/core/compaction/branch-summarization.ts Branch summarization for tree navigation.
Ports packages/coding-agent/src/core/compaction/branch-summarization.ts Branch summarization for tree navigation.
export
Ports packages/coding-agent/src/core/export-html/ansi-to-html.ts
Ports packages/coding-agent/src/core/export-html/ansi-to-html.ts
frontmatter
Ports packages/coding-agent/src/utils/frontmatter.ts.
Ports packages/coding-agent/src/utils/frontmatter.ts.
llama
Package llama ports Pi's built-in llama.cpp extension (packages/coding-agent/src/extensions/llama/): the router HTTP/SSE client, Hugging Face search and download, the dynamic provider, the manager UI, and the /llama command.
Package llama ports Pi's built-in llama.cpp extension (packages/coding-agent/src/extensions/llama/): the router HTTP/SSE client, Hugging Face search and download, the dynamic provider, the manager UI, and the /llama command.
prompts
Package prompts builds the default coding-agent system prompt.
Package prompts builds the default coding-agent system prompt.
tools
tools/bash_executor.go: user bash execution (!cmd, RPC bash, SDK ExecuteBash).
tools/bash_executor.go: user bash execution (!cmd, RPC bash, SDK ExecuteBash).
Package configvalue mirrors upstream pi's packages/coding-agent/src/core/resolve-config-value.ts (v0.78.1).
Package configvalue mirrors upstream pi's packages/coding-agent/src/core/resolve-config-value.ts (v0.78.1).
Package crossspawn starts a program the way upstream's spawnProcess does (coding-agent utils/child-process.ts): Node's spawn on Unix, and on Windows the cross-spawn package, which checks shebang interpreters before selecting direct execution or escaped cmd.exe execution for command shims.
Package crossspawn starts a program the way upstream's spawnProcess does (coding-agent utils/child-process.ts): Node's spawn on Unix, and on Windows the cross-spawn package, which checks shebang interpreters before selecting direct execution or escaped cmd.exe execution for command shims.
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
Ports packages/coding-agent/src/experimental/client-tui.ts.
Ports packages/coding-agent/src/experimental/client-tui.ts.
client
Package client implements the experimental Pi client over ordered byte transports.
Package client implements the experimental Pi client over ordered byte transports.
mini/shared
Package shared implements mini's local service protocol and transports.
Package shared implements mini's local service protocol and transports.
protocol
Package protocol implements the framed experimental Pi wire contract.
Package protocol implements the framed experimental Pi wire contract.
routing
Package routing hosts contract-agnostic experimental server and client routing.
Package routing hosts contract-agnostic experimental server and client routing.
services
Package services contains the opt-in experimental presentation service contracts.
Package services contains the opt-in experimental presentation service contracts.
Package ignorerules applies .gitignore, .ignore, and .fdignore files the way upstream Pi's package manager does when it discovers package resources.
Package ignorerules applies .gitignore, .ignore, and .fdignore files the way upstream Pi's package manager does when it discovers package resources.
Image resize + re-encode policy for CLI/LLM image attachments, plus the EXIF orientation reader (upstream exif-orientation.ts).
Image resize + re-encode policy for CLI/LLM image attachments, plus the EXIF orientation reader (upstream exif-orientation.ts).
Package jsnumber implements ECMAScript numeric conversion and serialization for values that arrive as JSON.
Package jsnumber implements ECMAScript numeric conversion and serialization for values that arrive as JSON.
Package jsonparse reports ECMAScript JSON.parse syntax errors for rejected JSON text.
Package jsonparse reports ECMAScript JSON.parse syntax errors for rejected JSON text.
Package jsonstringify implements ECMAScript serialization for parsed JSON data.
Package jsonstringify implements ECMAScript serialization for parsed JSON data.
Package jsstring preserves JavaScript UTF-16 units at Go string boundaries.
Package jsstring preserves JavaScript UTF-16 units at Go string boundaries.
Package latex renders a basic subset of LaTeX math as terminal-friendly Unicode text.
Package latex renders a basic subset of LaTeX math as terminal-friendly Unicode text.
gentables command
Command gentables extracts the static lookup tables from upstream pi's tui/src/latex.ts into Go source (symbols.go), so the LaTeX->Unicode port never hand-transcribes ~230 symbol rows.
Command gentables extracts the static lookup tables from upstream pi's tui/src/latex.ts into Go source (symbols.go), so the LaTeX->Unicode port never hand-transcribes ~230 symbol rows.
Package lazyregexp compiles a package-level regular expression when it is first used instead of when its package initializes.
Package lazyregexp compiles a package-level regular expression when it is first used instead of when its package initializes.
Package managementhttp ports upstream coding-agent utils/management-http.ts: a bounded immediate retry for idempotent management requests (tool downloads, release lookups).
Package managementhttp ports upstream coding-agent utils/management-http.ts: a bounded immediate retry for idempotent management requests (tool downloads, release lookups).
Package mermaid renders Mermaid diagrams as Unicode box-drawing art for terminals.
Package mermaid renders Mermaid diagrams as Unicode box-drawing art for terminals.
Package nativeplatform provides operating-system queries and native clipboard transfers.
Package nativeplatform provides operating-system queries and native clipboard transfers.
Package nodeerrno maps operating-system errors to the error codes and descriptions Node reports for them.
Package nodeerrno maps operating-system errors to the error codes and descriptions Node reports for them.
Package nodepath ports the parts of Node's path module Pi resolves file paths with.
Package nodepath ports the parts of Node's path module Pi resolves file paths with.
Package nodesemver translates the npm semver package (semver 7.8.5) calls Pi's package manager makes.
Package nodesemver translates the npm semver package (semver 7.8.5) calls Pi's package manager makes.
Package nodespawn builds the Windows command line that Node's child_process.spawn(file, args) passes to CreateProcessW when neither shell nor windowsVerbatimArguments is set.
Package nodespawn builds the Windows command line that Node's child_process.spawn(file, args) passes to CreateProcessW when neither shell nor windowsVerbatimArguments is set.
Package nodeurl ports the Node URL host/path handling and fileURLToPath semantics used by PiG.
Package nodeurl ports the Node URL host/path handling and fileURLToPath semantics used by PiG.
Package ownerfile makes files accessible to their owner only and checks that they are: mode 0600 and no group or other bits on POSIX, and on Windows, which has no mode bits, a DACL (D68).
Package ownerfile makes files accessible to their owner only and checks that they are: mode 0600 and no group or other bits on POSIX, and on Windows, which has no mode bits, a DACL (D68).
Package packagemanager resolves, installs and reads the Packages that settings configure.
Package packagemanager resolves, installs and reads the Packages that settings configure.
Package pigdocs materializes the reference documentation embedded in Stock Pig under the user's config root (`~/.pig/docs` by default).
Package pigdocs materializes the reference documentation embedded in Stock Pig under the user's config root (`~/.pig/docs` by default).
Package pigsdklock coordinates readers and writers of staged Pig extension SDKs within one configuration root.
Package pigsdklock coordinates readers and writers of staged Pig extension SDKs within one configuration root.
Package pilock implements Pi's proper-lockfile directory-lock protocol for shared stores.
Package pilock implements Pi's proper-lockfile directory-lock protocol for shared stores.
Package profiling writes Go runtime profiles when PIG_PROFILE names them.
Package profiling writes Go runtime profiles when PIG_PROFILE names them.
Package resolvepath resolves user-supplied resource paths the way Pi's resolvePath does.
Package resolvepath resolves user-supplied resource paths the way Pi's resolvePath does.
Package scalarjson supports JSON-normalized scalar copies without serialization.
Package scalarjson supports JSON-normalized scalar copies without serialization.
Package shellconfig resolves the bash shell PiG runs commands through, mirroring upstream packages/coding-agent/src/utils/shell.ts getShellConfig and getBashShellConfig.
Package shellconfig resolves the bash shell PiG runs commands through, mirroring upstream packages/coding-agent/src/utils/shell.ts getShellConfig and getBashShellConfig.
Package testbudget sizes the deadlines tests use to bound a hang.
Package testbudget sizes the deadlines tests use to bound a hang.
Package testenv checks host capabilities a test needs, so a test runs wherever the host provides them and says why it skipped where the host does not.
Package testenv checks host capabilities a test needs, so a test runs wherever the host provides them and says why it skipped where the host does not.
Package text ports upstream packages/coding-agent/src/utils/text.ts: the leading byte order mark helpers every Pi reader applies before parsing user-authored JSON, markdown, and text files.
Package text ports upstream packages/coding-agent/src/utils/text.ts: the leading byte order mark helpers every Pi reader applies before parsing user-authored JSON, markdown, and text files.
Package toolchain locates the build tools PiG uses for compiled extension cells and Piglet Binaries, and installs a PiG-managed Go toolchain for users who installed only the pig binary.
Package toolchain locates the build tools PiG uses for compiled extension cells and Piglet Binaries, and installs a PiG-managed Go toolchain for users who installed only the pig binary.
tui
parity
Package parity provides the test harness for TUI byte-level and visible-state parity against upstream pi-tui.
Package parity provides the test harness for TUI byte-level and visible-state parity against upstream pi-tui.
termsim
Package termsim is a headless ANSI terminal simulator for byte-level parity testing.
Package termsim is a headless ANSI terminal simulator for byte-level parity testing.
Package wordsegmenter implements word segments used by the terminal editor.
Package wordsegmenter implements word segments used by the terminal editor.

Jump to

Keyboard shortcuts

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