internal/

directory
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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.
Disk-based Node.js package discovery.
Disk-based Node.js package discovery.
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.
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 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 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 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:
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 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 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 directories 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 directories so filesystem walks can skip them and avoid triggering system permission prompts on a user's machine.
Package winproc adjusts the OS-process attributes attached to an *exec.Cmd.
Package winproc adjusts the OS-process attributes attached to an *exec.Cmd.

Jump to

Keyboard shortcuts

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