internal/

directory
v0.0.0-...-a60c815 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0

Directories

Path Synopsis
Package agents finds the AI agents on this computer and adds Pinky to them as an MCP server, when the person asks for it in Settings › Agents: with an agent's own command where it has one (claude mcp add), or by changing its settings file, which Pinky backs up first and changes only in Pinky's entry, refusing a file it cannot read.
Package agents finds the AI agents on this computer and adds Pinky to them as an MCP server, when the person asks for it in Settings › Agents: with an agent's own command where it has one (claude mcp add), or by changing its settings file, which Pinky backs up first and changes only in Pinky's entry, refusing a file it cannot read.
Package api is the gateway's local API: a Unix socket (a named pipe on Windows) that only the current user can reach.
Package api is the gateway's local API: a Unix socket (a named pipe on Windows) that only the current user can reach.
Package apppkg reads app packages on the computer, for the approval to install them: an Android APK's package name, version, label and signer, and an iPhone app's bundle id, version, name and provisioning profile.
Package apppkg reads app packages on the computer, for the approval to install them: an Android APK's package name, version, label and signer, and an iPhone app's bundle id, version, name and provisioning profile.
Package approval holds the calls that wait for the person: Ask actions, an agent's first connection, phone_request_approval and phone_handoff.
Package approval holds the calls that wait for the person: Ask actions, an agent's first connection, phone_request_approval and phone_handoff.
Package awake keeps the computer from sleeping when idle, for a Pinky that runs without its window (pinky daemon): an IOKit power assertion on macOS, a power request on Windows, a systemd inhibitor lock on Linux.
Package awake keeps the computer from sleeping when idle, for a Pinky that runs without its window (pinky daemon): an IOKit power assertion on macOS, a power request on Windows, a systemd inhibitor lock on Linux.
Package demo provides scripted fake phones for `pinky daemon --fake` and for tests: a home screen, a food-ordering app with a payment, a chat app, Settings and a wallet app that the default rules block.
Package demo provides scripted fake phones for `pinky daemon --fake` and for tests: a home screen, a food-ordering app with a payment, a chat app, Settings and a wallet app that the default rules block.
Package driver defines what a platform driver provides: device discovery, observation, input and a video stream.
Package driver defines what a platform driver provides: device discovery, observation, input and a video stream.
android
Package android is Pinky's Android driver.
Package android is Pinky's Android driver.
android/adb
Package adb is a small client for the adb server protocol.
Package adb is a small client for the adb server protocol.
android/cmd/androidctl command
Command androidctl exercises Pinky's Android driver from a terminal, for development and acceptance tests.
Command androidctl exercises Pinky's Android driver from a terminal, for development and acceptance tests.
android/companion
Package companion is the Go client for Pinky's Android app (android/companion), which Pinky on a computer uses as its companion on the phone and which runs tasks on the phone by itself too (docs/notes/android-app.md).
Package companion is the Go client for Pinky's Android app (android/companion), which Pinky on a computer uses as its companion on the phone and which runs tasks on the phone by itself too (docs/notes/android-app.md).
android/companion/cmd/companionctl command
Command companionctl drives the Android companion app by hand: install it, turn its accessibility service on and off, and read trees, set text and watch events.
Command companionctl drives the Android companion app by hand: install it, turn its accessibility service on and off, and read trees, set text and watch events.
android/companion/companiontest
Package companiontest writes companion APKs for tests: a zip with the version file Pinky reads and, when given a certificate, an APK Signing Block whose v2 signer holds it, laid out as apksigner does.
Package companiontest writes companion APKs for tests: a zip with the version file Pinky reads and, when given a certificate, an APK Signing Block whose v2 signer holds it, laid out as apksigner does.
android/local
Package local drives the Android phone Pinky itself runs on, through the Android app's accessibility service (android/companion) over its local socket: no adb and no computer.
Package local drives the Android phone Pinky itself runs on, through the Android app's accessibility service (android/companion) over its local socket: no adb and no computer.
android/local/cmd/bgcheck command
Command bgcheck tries the core's background display on the phone it runs on (docs/notes/android-wadb.md): it connects to the phone's own adbd with a key Wireless debugging already paired (wadbctl pair), opens a virtual display through the local driver, starts an app there, reads it, taps it, counts its video and closes it.
Command bgcheck tries the core's background display on the phone it runs on (docs/notes/android-wadb.md): it connects to the phone's own adbd with a key Wireless debugging already paired (wadbctl pair), opens a virtual display through the local driver, starts an app there, reads it, taps it, counts its video and closes it.
android/local/cmd/localbench command
Command localbench measures the actions Pinky's core takes on the phone it runs on, through the Android app's local socket only: no adb input, no screencap.
Command localbench measures the actions Pinky's core takes on the phone it runs on, through the Android app's local socket only: no adb input, no screencap.
android/mdns
Package mdns finds DNS-SD services on the local network with multicast DNS (RFC 6762 and RFC 6763).
Package mdns finds DNS-SD services on the local network with multicast DNS (RFC 6762 and RFC 6763).
android/scrcpy
Package scrcpy runs the bundled scrcpy server on an Android phone and speaks its protocol directly: key=value options at start, the video stream with its packet headers, control messages to the phone and device messages back.
Package scrcpy runs the bundled scrcpy server on an Android phone and speaks its protocol directly: key=value options at start, the video stream with its packet headers, control messages to the phone and device messages back.
android/wadb
Package wadb connects Pinky's app to the adbd of the phone it runs on, through Wireless debugging: it pairs with the six-digit code (pair.go), then opens adb's TLS transport to the phone itself, the way `adb pair` and `adb connect` do from a computer.
Package wadb connects Pinky's app to the adbd of the phone it runs on, through Wireless debugging: it pairs with the six-digit code (pair.go), then opens adb's TLS transport to the phone itself, the way `adb pair` and `adb connect` do from a computer.
android/wadb/cmd/wadbctl command
Command wadbctl pairs with and talks to an adbd over Wireless debugging with the wadb package, for checks during development.
Command wadbctl pairs with and talks to an adbd over Wireless debugging with the wadb package, for checks during development.
fake
Package fake is an in-memory driver for tests and UI development.
Package fake is an in-memory driver for tests and UI development.
ios
Package ios is Pinky's iOS driver.
Package ios is Pinky's iOS driver.
ios/cmd/iosctl command
Command iosctl drives Pinky's iOS driver by hand, for debugging.
Command iosctl drives Pinky's iOS driver by hand, for debugging.
ios/netmux
Package netmux is a usbmuxd of Pinky's own for iPhones and iPads over Wi-Fi, for systems whose usbmuxd does not list them there by itself: Linux, where libimobiledevice's usbmuxd has no network support, and Windows, where Apple's lists a phone on Wi-Fi only while it is on a cable too.
Package netmux is a usbmuxd of Pinky's own for iPhones and iPads over Wi-Fi, for systems whose usbmuxd does not list them there by itself: Linux, where libimobiledevice's usbmuxd has no network support, and Windows, where Apple's lists a phone on Wi-Fi only while it is on a cable too.
Package gateway is the core of Pinky.
Package gateway is the core of Pinky.
Package gwtext says the gateway's English words in the language the app shows (i18n.Locale, with the catalogs of cmd/pinky/locales): steps, approvals and status lines.
Package gwtext says the gateway's English words in the language the app shows (i18n.Locale, with the catalogs of cmd/pinky/locales): steps, approvals and status lines.
Package h264enc encodes NV12 pictures to H.264 with the encoder the computer has, called without cgo: VideoToolbox on macOS, and FFmpeg's OpenH264 or Media Foundation encoder on Windows.
Package h264enc encodes NV12 pictures to H.264 with the encoder the computer has, called without cgo: VideoToolbox on macOS, and FFmpeg's OpenH264 or Media Foundation encoder on Windows.
Package history keeps what agents did: sessions, tasks, steps with before and after screenshots, and approvals.
Package history keeps what agents did: sessions, tasks, steps with before and after screenshots, and approvals.
Package mcp is Pinky's MCP server: the phone_* tools agents call.
Package mcp is Pinky's MCP server: the phone_* tools agents call.
Package ocr reads text from pictures of a phone's screen, for screens whose element tree misses it: web views and canvases on Android, and iPhones read without frames.
Package ocr reads text from pictures of a phone's screen, for screens whose element tree misses it: web views and canvases on Android, and iPhones read without frames.
Package pilot is Ask Pinky: Pinky's own agent, which does one task on one phone with a model the person chose.
Package pilot is Ask Pinky: Pinky's own agent, which does one task on one phone with a model the person chose.
genservices command
Command genservices writes pilot.ServicesJSON into the phone apps, which read the services Settings offers from it: `go generate ./internal/pilot`.
Command genservices writes pilot.ServicesJSON into the phone apps, which read the services Settings offers from it: `go generate ./internal/pilot`.
Package policy decides whether an agent's action may run (Allow), needs the person's approval (Ask) or is refused (Deny).
Package policy decides whether an agent's action may run (Allow), needs the person's approval (Ask) or is refused (Deny).
Package recording writes a phone's video stream to MP4 files without re-encoding, and plays them back as a driver.Stream, so the client shows a recording with the same decoder and view as the live mirror.
Package recording writes a phone's video stream to MP4 files without re-encoding, and plays them back as a driver.Stream, so the client shows a recording with the same decoder and view as the live mirror.
recordingtest
Package recordingtest holds short synthetic video streams for tests: ffmpeg's test patterns, not captures of any screen.
Package recordingtest holds short synthetic video streams for tests: ffmpeg's test patterns, not captures of any screen.
Package schedule is scheduled tasks for Pinky's own agent (internal/pilot): a task the person sets to run at a time, once or again and again, optionally telling them only when a condition holds ("every day at 8, check the weather; tell me only if it will rain").
Package schedule is scheduled tasks for Pinky's own agent (internal/pilot): a task the person sets to run at a time, once or again and again, optionally telling them only when a condition holds ("every day at 8, check the weather; tell me only if it will rain").
Package screen defines the screen model that every driver produces and every agent reads: one element per line, with refs that stay the same while an element keeps its identity.
Package screen defines the screen model that every driver produces and every agent reads: one element per line, with refs that stay the same while an element keeps its identity.
Package secret keeps phone PINs in the operating system's keychain and hands one out only after the person confirms with Touch ID (or the Mac's password), Windows Hello, or the system's equivalent.
Package secret keeps phone PINs in the operating system's keychain and hands one out only after the person confirms with Touch ID (or the Mac's password), Windows Hello, or the system's equivalent.
Package standalone is Pinky's core on the phone it drives, with no computer (docs/notes/android-app.md, docs/notes/standalone-phone.md).
Package standalone is Pinky's core on the phone it drives, with no computer (docs/notes/android-app.md, docs/notes/standalone-phone.md).
cmd/corectl command
Command corectl talks to Pinky's core on an Android phone over its control socket, as Pinky's own screens do, for checks from a shell.
Command corectl talks to Pinky's core on an Android phone over its control socket, as Pinky's own screens do, for checks from a shell.
cmd/fakemodel command
Command fakemodel is a scripted stand-in for the Messages API, for checking the standalone prototype end to end without a model or a key.
Command fakemodel is a scripted stand-in for the Messages API, for checking the standalone prototype end to end without a model or a key.
libcore command
Command libcore is Pinky's Go core as a shared library (libpinkycore.so), which the Android app's accessibility service loads through JNI (Core.kt) to run tasks on the phone itself (docs/notes/android-app.md).
Command libcore is Pinky's Go core as a shared library (libpinkycore.so), which the Android app's accessibility service loads through JNI (Core.kt) to run tasks on the phone itself (docs/notes/android-app.md).
Package tailnet reads what Tailscale on this computer knows about its tailnet, the private network of the person's own devices that Tailscale keeps reachable wherever each of them is: whether Tailscale runs here, and the devices on the tailnet with their addresses.
Package tailnet reads what Tailscale on this computer knows about its tailnet, the private network of the person's own devices that Tailscale keeps reachable wherever each of them is: whether Tailscale runs here, and the devices on the tailnet with their addresses.
Package telemetry is Pinky's usage statistics, crash reports and feedback.
Package telemetry is Pinky's usage statistics, crash reports and feedback.
Package traffic is Pinky's own capture of a phone's web requests (docs/notes/traffic-capture.md): an HTTP proxy on the computer (Proxy) that the phone sends its HTTP and HTTPS through, which decrypts HTTPS with a certificate authority Pinky makes for this computer (CA), and keeps what it saw in memory (Store) for the gateway's phone_traffic tool.
Package traffic is Pinky's own capture of a phone's web requests (docs/notes/traffic-capture.md): an HTTP proxy on the computer (Proxy) that the phone sends its HTTP and HTTPS through, which decrypts HTTPS with a certificate authority Pinky makes for this computer (CA), and keeps what it saw in memory (Store) for the gateway's phone_traffic tool.
Package update keeps Pinky current: it reads the release feed, downloads and verifies a newer build, swaps it in where Pinky is installed and starts it, and tells the person what changed (the changelog).
Package update keeps Pinky current: it reads the release feed, downloads and verifies a newer build, swaps it in where Pinky is installed and starts it, and tells the person what changed (the changelog).
Package video decodes the phones' H.264 and HEVC streams for the desktop client.
Package video decodes the phones' H.264 and HEVC streams for the desktop client.
Package webapproval lets the person answer Pinky's approvals in a web browser on their phone, away from the computer: a page served next to the web mirror (internal/webmirror), reached through `tailscale serve`.
Package webapproval lets the person answer Pinky's approvals in a web browser on their phone, away from the computer: a page served next to the web mirror (internal/webmirror), reached through `tailscale serve`.
Package webmirror shows a phone's live screen in a web browser, on this computer or, through `tailscale serve`, on the person's other devices, and, while the person allows it, lets the browser use the phone (input.go).
Package webmirror shows a phone's live screen in a web browser, on this computer or, through `tailscale serve`, on the person's other devices, and, while the person allows it, lets the browser use the phone (input.go).

Jump to

Keyboard shortcuts

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