internal/

directory
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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 bytesize parses the byte sizes PiG commands accept, such as 5GiB.
Package bytesize parses the byte sizes PiG commands accept, such as 5GiB.
Waiting for a child's output pipes after it exits.
Waiting for a child's output pipes after it exits.
Package chord ports Pi 1.0.0's packages/chord: replicated state, the remote service provider and its endpoint, the operation-stream replica binding, facet hosts and JSON-copy transports.
Package chord ports Pi 1.0.0's packages/chord: replicated state, the remote service provider and its endpoint, the operation-stream replica binding, facet hosts and JSON-copy transports.
chordctx
Package chordctx ports packages/chord/src/context/index.ts onto context.Context.
Package chordctx ports packages/chord/src/context/index.ts onto context.Context.
chordjson
Package chordjson ports packages/chord/src/json.ts: strict-JSON checking and alias-free copying.
Package chordjson ports packages/chord/src/json.ts: strict-JSON checking and alias-free copying.
delta
Package delta ports @earendil-works/chord/delta (packages/chord/src/delta): immutable JSON revisions, exact operation batches for ordered replicas, the operation applier, the path-interning wire codec, revision diffing, and the revision tracker.
Package delta ports @earendil-works/chord/delta (packages/chord/src/delta): immutable JSON revisions, exact operation batches for ordered replicas, the operation applier, the path-interning wire codec, revision diffing, and the revision tracker.
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 ctxowner joins the lifetime of one context with the request values of another.
Package ctxowner joins the lifetime of one context with the request values of another.
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
Package ecmascript preserves JavaScript JSON and string semantics at native boundaries.
Package evals ports Pi's documentation eval tooling: the task plan, the paired comparison report, the harness's prompt and environment helpers, and the fixtures the evals use.
Package evals ports Pi's documentation eval tooling: the task plan, the paired comparison report, the harness's prompt and environment helpers, and the fixtures the evals use.
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.
durableadapter
Package durableadapter adapts the pi-durable Harness (durable/harness) to the consumer-owned boundaries of the experimental worker services.
Package durableadapter adapts the pi-durable Harness (durable/harness) to the consumer-owned boundaries of the experimental worker services.
durableagent
Package durableagent holds the pi setup of a coding agent over the pi-durable Harness: the coding registry, the Harness settings, the execution environments, the HTTP setup and the initial model.
Package durableagent holds the pi setup of a coding agent over the pi-durable Harness: the coding registry, the Harness settings, the execution environments, the HTTP setup and the initial model.
durableagent/main command
Command main runs the durable coding agent: pi's coding tools on the pi-durable Harness, with its own TUI.
Command main runs the durable coding agent: pi's coding tools on the pi-durable Harness, with its own TUI.
durabletest
Package durabletest opens pi-durable Harnesses for the experimental tests: an in-memory one over the faux provider (packages/coding-agent/test/experimental-durable-support.ts openFauxConversation), and a file-backed SQLite one for worker processes.
Package durabletest opens pi-durable Harnesses for the experimental tests: an in-memory one over the faux provider (packages/coding-agent/test/experimental-durable-support.ts openFauxConversation), and a file-backed SQLite one for worker processes.
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.
routing/routingtest
Package routingtest ports the server package's testing subpath (packages/server/src/testing): a scripted Session host, a protocol test client, and an unstarted test server for transport and routing conformance tests.
Package routingtest ports the server package's testing subpath (packages/server/src/testing): a scripted Session host, a protocol test client, and an unstarted test server for transport and routing conformance tests.
services
Package services contains the opt-in experimental presentation service contracts.
Package services contains the opt-in experimental presentation service contracts.
vacation
Package vacation is a durable vacation planning agent on the pi-durable Harness: the coding agent of internal/experimental/durableagent with the coding tools and pi's coding prompt replaced by a vacation planner.
Package vacation is a durable vacation planning agent on the pi-durable Harness: the coding agent of internal/experimental/durableagent with the coding tools and pi's coding prompt replaced by a vacation planner.
vacation/main command
Command main runs the durable vacation planner: a research subagent that reports back, on the pi-durable Harness, with the durable agent's TUI.
Command main runs the durable vacation planner: a research subagent that reports back, on the pi-durable Harness, with the durable agent's TUI.
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 installchange tells a running pig that the files it runs from changed on disk.
Package installchange tells a running pig that the files it runs from changed on disk.
Package jsarray implements JavaScript Array semantics that ported code observes.
Package jsarray implements JavaScript Array semantics that ported code observes.
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 linkerexec starts programs on Android builds that forbid executing files in an app's data directory.
Package linkerexec starts programs on Android builds that forbid executing files in an app's data directory.
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, descriptions and errnos Node reports for them.
Package nodeerrno maps operating-system errors to the error codes, descriptions and errnos 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 orderedjson holds JSON objects that keep their keys in the order they were read or set, the way a JavaScript object does.
Package orderedjson holds JSON objects that keep their keys in the order they were read or set, the way a JavaScript object does.
Package outputfiles creates the files pi writes so the model can use output it was not shown in full: the full text of truncated tool output, binary MCP resources and images shown by codemode scripts.
Package outputfiles creates the files pi writes so the model can use output it was not shown in full: the full text of truncated tool output, binary MCP resources and images shown by codemode scripts.
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 termuxenv prepares a PiG process for Termux on Android.
Package termuxenv prepares a PiG process for Termux on Android.
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 usagetotals sums model usage records.
Package usagetotals sums model usage records.
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