{"version":3,"file":"help.mjs","names":[],"sources":["../../src/cli/help.ts"],"sourcesContent":["import { COMPATIBILITY_MATRIX_OPTIONS } from './commands/compat/help';\nexport { initHelp } from './commands/init/help';\nexport { syncHelp } from './commands/sync/help';\nexport { compatHelp } from './commands/compat/help';\nexport { doctorHelp } from './commands/doctor/help';\nexport { historyExportHelp } from './commands/history-export/help';\nexport { historyImportHelp } from './commands/history-import/help';\nimport { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist. The\n// package self-reference resolves the same published manifest from either tree.\nconst require = createRequire(import.meta.url);\nconst PACKAGE_MANIFEST = '@agimon-ai/doompi/package.json';\n\nexport const HARNESS_VERSION = (require(PACKAGE_MANIFEST) as { version: string }).version;\n\nexport function printHelp(): void {\n  process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n       doompi init\n       doompi sync [matrix options] [--check]\n       doompi api-export --out <directory> [--major-mode <name>] [--strict]\n       doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n       doompi history-export <v4-source> <v3-destination> [options]\n       doompi history-import <v3-source> <v4-destination> --confirm-offline\n\nInitialization:\n  doompi init              Fill missing files in ~/.pi/.doom\n  doompi sync              Update packages, build, resolve, and register DoomPi\n                            in Pi user settings\n  doompi sync --check      Exit non-zero when the synced config is out of date\n                            or report legacy repository-local state to migrate\n\nSync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific\nnamespace. Linked worktrees isolate state, dist, manifests, resources, and run\nfiles while sharing immutable repository build objects. A legacy <repo>/.pi/doom\nstate is read only when no global state exists; run doompi sync to migrate it.\nDoomPi never removes old or orphaned generated directories automatically.\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\n${COMPATIBILITY_MATRIX_OPTIONS}\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n  --major-mode <name>       Named major mode from .doom/modes.yaml\n                            (default: copilot). Not --mode: Pi owns that one.\n  --profile <name>          Persona and env from .doom/profiles.yaml\n  --domains <names>         Comma-separated domains (content: plugins, skills)\n  --no-domains              Load no content domains\n  --explain                 Print the resolved matrix and exit\n  --emit-mcp <dir>          Write the resolved MCP config to a directory and exit\n  --plugin-dir <path>       Load an explicit plugin directory, repeatable\n  --add-dir <path>          Add an accessible directory, repeatable\n  --preset <name>           default, kimi, or ollama\n  --cwd <path>              Run Pi in this directory\n  --automation              Use print mode, JSON output, and project approval\n  --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n  --mute                    Disable the notification extension for this run\n  --auto-stop               Exit interactive Pi when the agent settles\n  --sandbox                 Run the agent in the sandbox container a layer provides\n  --allow-protected-writes  Allow writes to protected repository paths\n  --hooks, --no-hooks       Enable or disable repository and plugin hooks\n  --mcp, --no-mcp           Enable or disable MCP configuration\n  --agents, --no-agents     Enable or disable spawnable agents\n  -h, --help                Show harness help\n  -v, --version             Show harness version\n\nInteractive commands:\n  /loop                     Open the loop launcher picker\n  /loops                    List active loops and stop future scheduling\n  /effort <level>           Set and persist the thinking effort\n  /mode                     Pick a named major mode\n  /domains [names]          Show the selected domains or pick a different set\n  /profile                  List or switch persona and environment profiles\n\nMinor modes are toggled from the Leader menu, not by a slash command:\n  SPC p e                   Plan mode (repository read-only)\n  SPC w e                   Workflow tools for the agent\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":";;;;;;;AAeA,MAAa,kBAHG,cAAc,YAAY,GAGV,CAAA,CAAQ,gCAAgB,CAAC,CAAyB;AAElF,SAAgB,YAAkB;CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B;AACD"}