{
  "name": "@zhushanwen/pi-subagent-workflow",
  "version": "8.8.0",
  "type": "module",
  "main": "index.ts",
  "description": "Unified subagent execution and multi-agent workflow orchestration for Pi — spawned-process agent runtime with sync/background modes, stateful workflow management with persistence, state machine, and execution tracing.",
  "keywords": [
    "pi-package",
    "extension",
    "subagent",
    "agent-runtime",
    "workflow",
    "orchestration",
    "multi-agent"
  ],
  "license": "MIT",
  "engines": {
    "node": ">=18"
  },
  "files": [
    "index.ts",
    "skills/",
    "scripts/",
    "relay/",
    "src/index.ts",
    "src/jsonl-run-store.ts",
    "src/host/",
    "src/injectors/",
    "src/interface/"
  ],
  "xyz-agent": {
    "role": "universal",
    "subagentEngines": [
      "pi",
      "zcode"
    ],
    "startupConfig": [
      {
        "path": "subagents/config.json",
        "content": {
          "version": 1,
          "maxConcurrent": 6
        }
      }
    ]
  },
  "pi": {
    "extensions": [
      "./index.ts"
    ],
    "skills": [
      "./skills"
    ]
  },
  "dependencies": {
    "@xyz-agent/session-delivery": "0.3.0",
    "@zhushanwen/pi-ext-guards": "0.2.0",
    "@zhushanwen/pi-extension-logger": "0.4.0",
    "@xyz-agent/extension-protocol": "0.8.0",
    "@zhushanwen/subagent-core": "0.4.0"
  },
  "peerDependencies": {
    "@earendil-works/pi-ai": "^0.84.4",
    "@earendil-works/pi-coding-agent": "^0.84.4",
    "@earendil-works/pi-tui": "^0.84.4",
    "typebox": "*",
    "@zhushanwen/pi-structured-output": "5.1.2",
    "@zhushanwen/pi-pending-notifications": "0.5.2"
  },
  "peerDependenciesMeta": {
    "@earendil-works/pi-coding-agent": {
      "optional": true
    },
    "@zhushanwen/pi-structured-output": {
      "optional": true
    }
  },
  "devDependencies": {
    "@types/node": "^24.0.0",
    "@vitest/coverage-v8": "^4.1.9",
    "vitest": "^4.1.8"
  },
  "scripts": {
    "typecheck": "npx tsc --noEmit",
    "test": "vitest run",
    "test:isolated": "env $(env | grep -o '^PI_SUBAGENT_[A-Z_]*' | sed 's/^/-u /' | tr '\n' ' ') vitest run"
  }
}