internal/

directory
v1.19.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package aiagents is the root of the AI coding agent hooks domain.
Package aiagents is the root of the AI coding agent hooks domain.
adapter
Package adapter defines the contract every per-agent integration (Claude Code, Codex) implements.
Package adapter defines the contract every per-agent integration (Claude Code, Codex) implements.
adapter/claudecode
Package claudecode implements the Adapter interface for Claude Code.
Package claudecode implements the Adapter interface for Claude Code.
adapter/codex
Package codex implements the Adapter interface for OpenAI Codex.
Package codex implements the Adapter interface for OpenAI Codex.
cli
Package cli houses entry points for the AI-agent hooks domain: `hooks install`, `hooks uninstall`, and the hidden `_hook` runtime.
Package cli houses entry points for the AI-agent hooks domain: `hooks install`, `hooks uninstall`, and the hidden `_hook` runtime.
configedit
Package configedit provides byte-preserving edits of user-owned JSON and TOML settings files.
Package configedit provides byte-preserving edits of user-owned JSON and TOML settings files.
enrich/mcp
Package mcp classifies MCP-related shell-launched activity.
Package mcp classifies MCP-related shell-launched activity.
enrich/npm
Package npm classifies and enriches npm-ecosystem package manager activity observed in shell commands.
Package npm classifies and enriches npm-ecosystem package manager activity observed in shell commands.
enrich/secrets
Package secrets implements a self-contained transcript secret scanner.
Package secrets implements a self-contained transcript secret scanner.
event
Package event defines the canonical AI-agent event schema.
Package event defines the canonical AI-agent event schema.
hook
Package hook implements the bounded, fail-open hot path invoked by `stepsecurity-dev-machine-guard _hook <agent> <hookEvent>`.
Package hook implements the bounded, fail-open hot path invoked by `stepsecurity-dev-machine-guard _hook <agent> <hookEvent>`.
identity
Package identity computes AI-event identity for a hook invocation.
Package identity computes AI-event identity for a hook invocation.
ingest
Package ingest owns the AI-agent telemetry upload path: the stricter enterprise-config gate (this file) and the HTTP client that POSTs events to /v1/{customer_id}/ai-agents/events.
Package ingest owns the AI-agent telemetry upload path: the stricter enterprise-config gate (this file) and the HTTP client that POSTs events to /v1/{customer_id}/ai-agents/events.
policy
Package policy holds the policy data model and pure decision evaluator.
Package policy holds the policy data model and pure decision evaluator.
redact
Package redact removes likely secrets from strings and JSON-shaped values before they are written to disk or sent over the wire.
Package redact removes likely secrets from strings and JSON-shaped values before they are written to disk or sent over the wire.
state
Package state owns the server-driven hook enable/disable cache.
Package state owns the server-driven hook enable/disable cache.
Package atomicfile writes files using a temp-file + rename discipline so readers never observe a half-written state.
Package atomicfile writes files using a temp-file + rename discipline so readers never observe a half-written state.
Package authenticode checks Windows code signatures for the self-updater: the candidate must carry a valid, timestamped Authenticode signature whose leaf signer subject equals the running updater's own signer subject, so no publisher is hard-coded and a Trusted Signing certificate rotation (same subject, new key) keeps working.
Package authenticode checks Windows code signatures for the self-updater: the candidate must carry a valid, timestamped Authenticode signature whose leaf signer subject equals the running updater's own signer subject, so no publisher is hard-coded and a Trusted Signing certificate rotation (same subject, new key) keeps working.
Package awakeclock measures time the system was awake.
Package awakeclock measures time the system was awake.
Package consoleguard holds the tests that keep the agent from opening console windows on Windows.
Package consoleguard holds the tests that keep the agent from opening console windows on Windows.
Disk-based Node.js package discovery.
Disk-based Node.js package discovery.
browserext
Package browserext inventories the extensions installed in a developer's browsers.
Package browserext inventories the extensions installed in a developer's browsers.
credentials
Package credentials inventories the places a developer's tools keep credentials.
Package credentials inventories the places a developer's tools keep credentials.
rules
Package rules implements the malicious-file detection engine for the enterprise agent.
Package rules implements the malicious-file detection engine for the enterprise agent.
runtimeinv
Package runtimeinv inventories language runtime installs (node, python, php, java, go, ruby, deno, bun, dotnet) on disk, independent of how they were installed: version managers, package managers, installers, zips and runtimes bundled inside other apps.
Package runtimeinv inventories language runtime installs (node, python, php, java, go, ruby, deno, bun, dotnet) on disk, independent of how they were installed: version managers, package managers, installers, zips and runtimes bundled inside other apps.
Package devicepolicy implements the dev-machine-guard agent side of Developer MDM on-device policy enforcement (PRD: "Dev Machine Guard Agent: IDE Extension Enforcement").
Package devicepolicy implements the dev-machine-guard agent side of Developer MDM on-device policy enforcement (PRD: "Dev Machine Guard Agent: IDE Extension Enforcement").
Package execguard decides whether a detector may safely launch a third-party binary on this machine.
Package execguard decides whether a detector may safely launch a third-party binary on this machine.
Package faultinject provides named checkpoints for self-update fault tests.
Package faultinject provides named checkpoints for self-update fault tests.
Package featuregate gates capabilities whose corresponding backend support has not yet shipped.
Package featuregate gates capabilities whose corresponding backend support has not yet shipped.
Package heartbeat writes a small last-run.json "I started" breadcrumb to the install dir at the very top of a telemetry run — before the enterprise-config gate and before the singleton lock is acquired.
Package heartbeat writes a small last-run.json "I started" breadcrumb to the install dir at the very top of a telemetry run — before the enterprise-config gate and before the singleton lock is acquired.
Package identity defines configured ID validation and automatic user detection.
Package identity defines configured ID validation and automatic user detection.
Package launcher resolves the child process the GUI-subsystem launcher (cmd/stepsecurity-dev-machine-guard-task) should spawn for a given invocation.
Package launcher resolves the child process the GUI-subsystem launcher (cmd/stepsecurity-dev-machine-guard-task) should spawn for a given invocation.
Package lock provides the single-instance lock for agent runs.
Package lock provides the single-instance lock for agent runs.
Package paths owns the single source of truth for "where does the agent put its files." It resolves a base directory (the install dir) from a layered set of sources so callers can stop deriving ~/.stepsecurity independently:
Package paths owns the single source of truth for "where does the agent put its files." It resolves a base directory (the install dir) from a layered set of sources so callers can stop deriving ~/.stepsecurity independently:
Package proctest keeps the processes tests start from outliving them.
Package proctest keeps the processes tests start from outliving them.
Package procusage reports what a run cost this process in CPU and memory.
Package procusage reports what a run cost this process in CPU and memory.
filelog
Package filelog tees the agent's stderr stream to a file on disk so that when agent-api is unreachable (network failure, firewall, expired credentials), the customer can be asked to share the local log file with support.
Package filelog tees the agent's stderr stream to a file on disk so that when agent-api is unreachable (network failure, firewall, expired credentials), the customer can be asked to share the local log file with support.
Package releasesig verifies the signed checksums published with every dev-machine-guard release (`<asset>.sha256.sig`).
Package releasesig verifies the signed checksums published with every dev-machine-guard release (`<asset>.sha256.sig`).
Package retire tells the backend that this device is going away.
Package retire tells the backend that this device is going away.
Package rungate implements the server-driven run gate: on every invocation the agent asks the backend's run-directive endpoint whether a full scan is due and exits quietly when it isn't.
Package rungate implements the server-driven run gate: on every invocation the agent asks the backend's run-directive endpoint whether a full scan is due and exits quietly when it isn't.
Package safepath opens a file through a chain of path components it has verified itself, and refuses any target that resolves outside a declared set of roots.
Package safepath opens a file through a chain of path components it has verified itself, and refuses any target that resolves outside a declared set of roots.
Package schedinfo gathers and logs the agent's own scheduler state — launchd on macOS, Task Scheduler on Windows, systemd on Linux — for troubleshooting.
Package schedinfo gathers and logs the agent's own scheduler state — launchd on macOS, Task Scheduler on Windows, systemd on Linux — for troubleshooting.
Package selfupdate is the Windows MSI self-updater (`agent self-update --system`, run by the SYSTEM update task through the bootstrap).
Package selfupdate is the Windows MSI self-updater (`agent self-update --system`, run by the SYSTEM update task through the bootstrap).
Package state manages the device-side scan state used to skip re-uploading unchanged npm and Python project scans across telemetry runs.
Package state manages the device-side scan state used to skip re-uploading unchanged npm and Python project scans across telemetry runs.
Package tcc identifies macOS TCC (Transparency, Consent, and Control) protected locations so filesystem walks can skip them and avoid triggering system permission prompts on a user's machine.
Package tcc identifies macOS TCC (Transparency, Consent, and Control) protected locations so filesystem walks can skip them and avoid triggering system permission prompts on a user's machine.
Package updatestate owns the on-disk self-update layout: version directories, state.json, the updater lock and the bootstrap's run records.
Package updatestate owns the on-disk self-update layout: version directories, state.json, the updater lock and the bootstrap's run records.
Package versionmeta resolves installed-tool versions from on-disk metadata — npm package manifests, version-encoded install layouts (<tool>/versions/<v>, Homebrew Cellar/Caskroom), and macOS app bundles — so detectors can avoid launching third-party binaries.
Package versionmeta resolves installed-tool versions from on-disk metadata — npm package manifests, version-encoded install layouts (<tool>/versions/<v>, Homebrew Cellar/Caskroom), and macOS app bundles — so detectors can avoid launching third-party binaries.
Package winproc adjusts the OS-process attributes attached to an *exec.Cmd.
Package winproc adjusts the OS-process attributes attached to an *exec.Cmd.
Package wslagent keeps the Linux agent binary that the Windows agent runs inside WSL distributions next to the Windows agent.
Package wslagent keeps the Linux agent binary that the Windows agent runs inside WSL distributions next to the Windows agent.
Package wslguest derives the device identity of an agent running inside a WSL distribution.
Package wslguest derives the device identity of an agent running inside a WSL distribution.

Jump to

Keyboard shortcuts

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