{
  "name": "pi-subagentura",
  "version": "4.5.1",
  "description": "Reusable agent workflows and observable, attachable sub-agents for the Pi coding agent",
  "author": "lmn451",
  "license": "MIT",
  "main": "src/subagent.ts",
  "exports": {
    ".": "./src/subagent.ts",
    "./workflow": {
      "types": "./types/workflow.d.ts"
    }
  },
  "type": "module",
  "keywords": [
    "pi-package",
    "pi",
    "pi-coding-agent",
    "subagent",
    "interactive-subagents",
    "agent",
    "multi-agent",
    "orchestrator",
    "orchestration",
    "agent-workflows",
    "agent-observability",
    "tmux",
    "zellij",
    "herdr",
    "orca",
    "rex",
    "wezterm",
    "cmux",
    "swarm",
    "crew"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/lmn451/pi-subagentura"
  },
  "homepage": "https://subagentura.tech",
  "bugs": {
    "url": "https://github.com/lmn451/pi-subagentura/issues"
  },
  "files": [
    "LICENSE",
    "CHANGELOG.md",
    "ORCHESTRATOR_SYSTEM_PROMPT.md",
    "ORCHESTRATOR_V2_SYSTEM_PROMPT.md",
    "ORCHESTRATOR_V2_SPLIT_SYSTEM_PROMPT.md",
    "ORCHESTRATOR_V2_RECURSIVE_SPLIT_SYSTEM_PROMPT.md",
    "CHILD_COORDINATION_SYSTEM_PROMPT.md",
    "ORCA_INTERACTIVE_SYSTEM_PROMPT.md",
    "REX_INTERACTIVE_SYSTEM_PROMPT.md",
    "INTERACTIVE_SUBAGENT_SYSTEM_PROMPT.md",
    "docs/workflows.md",
    "docs/jev-routing.md",
    "docs/telemetry.md",
    "docs/rex-multiplexer.md",
    "docs/ownership.md",
    "docs/protocol-v1-compatibility.md",
    "examples/workflows/README.md",
    "examples/workflows/*.mjs",
    "skills/pi-subagentura-debug",
    "types/workflow.d.ts",
    "src/notifications.ts",
    "src/rendering.ts",
    "src/schemas.ts",
    "src/tool-guidance.ts",
    "src/artifact.ts",
    "src/assert-never.ts",
    "src/artifact-read.ts",
    "src/artifact-read-model.ts",
    "src/artifact-read-rendering.ts",
    "src/identifier-types.ts",
    "src/json-input.ts",
    "src/artifact-poller.ts",
    "src/child-artifact-ownership.ts",
    "src/child-protocol.ts",
    "src/completion-turn.ts",
    "src/completion-presentation.ts",
    "src/delivery.ts",
    "src/completion-coordinator.ts",
    "src/completion-contracts.ts",
    "src/completion-manifest.ts",
    "src/completion-ledger.ts",
    "src/helpers.ts",
    "src/job-settlement.ts",
    "src/usage.ts",
    "src/orchestrator-routing.ts",
    "src/routing-engine.ts",
    "src/routing-factory.ts",
    "src/system-one-choice.ts",
    "src/jev-routing.ts",
    "src/orchestration-context.ts",
    "src/tools/in-process.ts",
    "src/tools/interactive.ts",
    "src/tools/orchestrator.ts",
    "src/tools/orchestrator-router.ts",
    "src/interactive-tmux.ts",
    "src/interactive-supervisor-registration.ts",
    "src/interactive-supervisor-ui.ts",
    "src/interactive-lineage.ts",
    "src/spawn-tree-context.ts",
    "src/multiplexer.ts",
    "src/multiplexer-cmux.ts",
    "src/multiplexer-core-inspection-queue.ts",
    "src/multiplexer-current-context.ts",
    "src/multiplexer-live-probes.ts",
    "src/multiplexer-process-context.ts",
    "src/multiplexer-probe-io.ts",
    "src/multiplexer-contracts.ts",
    "src/multiplexer-tmux.ts",
    "src/multiplexer-zellij.ts",
    "src/multiplexer-herdr.ts",
    "src/multiplexer-herdr-core.ts",
    "src/multiplexer-rex.ts",
    "src/multiplexer-wezterm.ts",
    "src/rehydrate.ts",
    "src/session-handlers.ts",
    "src/environment.ts",
    "src/session-scope.ts",
    "src/settings.ts",
    "src/telemetry.ts",
    "src/telemetry-operations.ts",
    "src/telemetry-launch.ts",
    "src/telemetry-runtime.ts",
    "src/subagent.ts",
    "src/subagent-artifact-cli.ts",
    "src/workflow.ts",
    "src/workflow-core.ts",
    "src/workflow-script.ts",
    "src/workflow-script.mjs",
    "src/workflow-script.d.mts",
    "src/workflow-rpc.ts",
    "src/workflow-rpc.mjs",
    "src/workflow-rpc.d.mts",
    "src/workflow-worker.ts",
    "src/workflow-structured-output.ts",
    "src/workflow-worker-thread.mjs",
    "src/workflow-jobs.ts",
    "src/workflow-ui.ts",
    "src/workflow-tree-ui.ts",
    "src/workflow-picker-ui.ts",
    "src/workflow-tool.ts",
    "src/abortable-wait.ts",
    "src/cancel-all-flows.ts",
    "src/cancel-all-flows-registration.ts",
    "src/cancellation-snapshots.ts"
  ],
  "engines": {
    "node": ">=22.23.2"
  },
  "publishConfig": {
    "access": "public"
  },
  "pi": {
    "changelogPath": "CHANGELOG.md",
    "extensions": [
      "./src/subagent.ts"
    ],
    "skills": [
      "./skills/pi-subagentura-debug"
    ]
  },
  "scripts": {
    "test": "vitest run --exclude tests/tmux.integration.test.ts --exclude tests/zellij.integration.test.ts --exclude tests/herdr.integration.test.ts --exclude 'tests/terminal-e2e/**'",
    "test:random": "npm test -- --sequence.shuffle --sequence.seed=424242",
    "test:unit": "vitest run --exclude tests/tmux.integration.test.ts --exclude tests/zellij.integration.test.ts --exclude tests/herdr.integration.test.ts --exclude tests/pi-session-delivery.integration.test.ts --exclude tests/published-tarball.test.ts --exclude 'tests/property/**' --exclude 'tests/terminal-e2e/**'",
    "test:property": "vitest run tests/property",
    "test:pi": "vitest run tests/pi-session-delivery.integration.test.ts",
    "test:tmux": "vitest run tests/tmux.integration.test.ts",
    "test:zellij": "vitest run tests/zellij.integration.test.ts",
    "test:herdr": "vitest run tests/herdr.integration.test.ts",
    "test:herdr-core": "PI_SUBAGENTURA_HERDR_CORE_TEST=1 vitest run tests/herdr-core.integration.test.ts",
    "test:cmux": "vitest run tests/multiplexer-cmux.test.ts tests/cmux-package-first-turn.integration.test.ts",
    "test:herdr:headless": "node --experimental-strip-types tests/helpers/herdr-headless.ts",
    "coverage:check": "vitest run --coverage --exclude tests/tmux.integration.test.ts --exclude tests/zellij.integration.test.ts --exclude tests/herdr.integration.test.ts --exclude tests/published-tarball.test.ts --exclude tests/performance-regression.test.ts --exclude 'tests/terminal-e2e/**'",
    "mutation:pilot": "stryker run",
    "typecheck": "tsc --noEmit && npm run typecheck:core && npm run typecheck:worker",
    "typecheck:core": "tsc -p tsconfig.core.json",
    "typecheck:worker": "tsc -p tsconfig.worker.json",
    "format": "oxfmt",
    "format:check": "oxfmt --check",
    "hooks:install": "simple-git-hooks",
    "pack:check": "npm pack --dry-run",
    "test:tui": "vitest run --testTimeout=60000 tests/terminal-e2e/",
    "demo:tui": "bash tests/terminal-e2e/recording/demo.sh",
    "record:tui": "bash tests/terminal-e2e/recording/record-webm.sh"
  },
  "simple-git-hooks": {
    "pre-commit": "npx lint-staged",
    "pre-push": "npm run format:check"
  },
  "lint-staged": {
    "*.{ts,tsx,js,jsx,mjs,cjs,json,md,yml,yaml,css,html}": "oxfmt --no-error-on-unmatched-pattern"
  },
  "peerDependencies": {
    "@earendil-works/pi-agent-core": ">=1.2.0",
    "@earendil-works/pi-ai": ">=1.2.0",
    "@earendil-works/pi-coding-agent": ">=1.2.0",
    "@earendil-works/pi-tui": ">=1.2.0",
    "typebox": ">=1.1.38 <2"
  },
  "devDependencies": {
    "@earendil-works/pi-agent-core": "1.5.0",
    "@earendil-works/pi-ai": "1.5.0",
    "@earendil-works/pi-coding-agent": "1.5.0",
    "@earendil-works/pi-tui": "1.5.0",
    "@stryker-mutator/core": "^10.1.1",
    "@types/node": "^26.6.6",
    "@vitest/coverage-v8": "^5.1.0",
    "fast-check": "^4.10.2",
    "lint-staged": "^17.6.0",
    "oxfmt": "^0.77.0",
    "simple-git-hooks": "^2.14.0",
    "typescript": "^7.0.2",
    "vitest": "^5.1.0",
    "yaml": "^2.9.1"
  },
  "dependencies": {
    "@juanibiapina/pi-extension-settings": "^0.10.0",
    "acorn": "^8.19.0",
    "is-path-inside": "^4.0.0"
  },
  "overrides": {
    "@earendil-works/pi-coding-agent@1.5.0": {
      "minimatch": "11.0.5",
      "undici": "8.12.4"
    },
    "@stryker-mutator/core@^10.1.1": {
      "minimatch": "11.0.5",
      "typed-rest-client": {
        "qs": "6.17.1"
      }
    }
  }
}
