{
  "name": "@superdoc/cli",
  "version": "0.46.0",
  "description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
  "type": "module",
  "license": "AGPL-3.0",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/superdoc/docx-editor.git",
    "directory": "apps/cli"
  },
  "homepage": "https://github.com/superdoc/docx-editor/tree/main/apps/cli#readme",
  "bugs": {
    "url": "https://github.com/superdoc/docx-editor/issues"
  },
  "main": "./dist/index.js",
  "module": "./dist/index.js",
  "bin": {
    "superdoc": "./dist/index.js"
  },
  "files": [
    "dist",
    "skill"
  ],
  "dependencies": {
    "@hocuspocus/provider": "^2.13.6",
    "@liveblocks/client": "^3.15.5",
    "@liveblocks/yjs": "^3.15.5",
    "fast-glob": "^3.3.3",
    "happy-dom": "^20.3.4",
    "ws": "^8.18.0",
    "superdoc": "2.26.0",
    "y-websocket": "^3.0.0",
    "yjs": "13.6.31"
  },
  "devDependencies": {
    "@hocuspocus/server": "^2.13.6",
    "@superdoc/sdk": "2.23.0",
    "@superdoc/document-api": "0.1.0-alpha.0",
    "@superdoc/docx-engine": "0.25.0",
    "@types/bun": "^1.3.8",
    "@types/node": "22.19.2",
    "@types/ws": "^8.5.13",
    "jszip": "3.10.1",
    "lib0": "^0.2.114",
    "typescript": "^5.9.2",
    "vite-plus": "0.2.7",
    "y-protocols": "^1.0.6"
  },
  "publishConfig": {
    "access": "public"
  },
  "optionalDependencies": {
    "@superdoc/cli-darwin-arm64": "0.46.0",
    "@superdoc/cli-darwin-x64": "0.46.0",
    "@superdoc/cli-linux-x64": "0.46.0",
    "@superdoc/cli-linux-arm64": "0.46.0",
    "@superdoc/cli-windows-x64": "0.46.0"
  },
  "scripts": {
    "predev": "node scripts/ensure-superdoc-build.js --internal",
    "dev": "bun run src/index.ts",
    "prebuild": "node scripts/ensure-superdoc-build.js --internal",
    "build": "bun scripts/build-cli.mjs && node scripts/copy-runtime-assets.js && rm -rf dist/prompts && mkdir -p dist/prompts && cp ../../packages/sdk/langs/node/src/prompts/*.md dist/prompts/ && rm -rf dist/tools && mkdir -p dist/tools && cp ../../packages/sdk/tools/catalog.json ../../packages/sdk/tools/tools.openai.json ../../packages/sdk/tools/tools.anthropic.json ../../packages/sdk/tools/tools.vercel.json ../../packages/sdk/tools/tools.generic.json ../../packages/sdk/tools/system-prompt.md ../../packages/sdk/tools/system-prompt-mcp.md dist/tools/ && pnpm run audit:artifacts && pnpm run smoke:artifact",
    "audit:artifacts": "node scripts/audit-cli-artifacts.js",
    "smoke:artifact": "node scripts/smoke-built-cli.js",
    "prebuild:native": "node scripts/ensure-superdoc-build.js --publication-authoritative",
    "build:native": "bun scripts/compile-native-cli.mjs dist/superdoc && node scripts/copy-runtime-assets.js && rm -rf dist/tools && mkdir -p dist/tools && cp ../../packages/sdk/tools/catalog.json ../../packages/sdk/tools/tools.openai.json ../../packages/sdk/tools/tools.anthropic.json ../../packages/sdk/tools/tools.vercel.json ../../packages/sdk/tools/tools.generic.json ../../packages/sdk/tools/system-prompt.md ../../packages/sdk/tools/system-prompt-mcp.md dist/tools/ && pnpm run audit:artifacts",
    "build:native:all": "node scripts/build-native-cli.js --all",
    "build:native:host": "node scripts/build-native-cli.js",
    "build:stage": "node scripts/stage-artifacts.js",
    "build:sync-version": "node scripts/sync-version.js",
    "build:prepublish": "node scripts/build-and-stage.js",
    "publish:platforms": "node scripts/publish.js --tag latest",
    "publish:platforms:dry": "node scripts/publish.js --tag latest --dry-run",
    "pretest": "node scripts/ensure-superdoc-build.js --internal",
    "test": "pnpm run test:docx-reference-integrity && pnpm run test:sdk-collaborative-close && pnpm run test:sdk-internal-links && pnpm run test:sdk-agent-occurrence && NODE_ENV=test bun test --path-ignore-patterns='**/sdk-collaborative-close.e2e.test.ts' --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' --path-ignore-patterns='**/sdk-internal-links-projection.e2e.test.ts' --path-ignore-patterns='**/sdk-agent-occurrence-collaboration.e2e.test.ts' && pnpm run test:sdk-replace-file",
    "test:docx-reference-integrity": "node --test scripts/docx-reference-integrity.mjs",
    "test:sdk-collaborative-close": "NODE_ENV=test bun test src/__tests__/sdk-collaborative-close.e2e.test.ts",
    "test:sdk-internal-links": "NODE_ENV=test bun test src/__tests__/sdk-internal-links-projection.e2e.test.ts",
    "test:sdk-agent-occurrence": "NODE_ENV=test bun test src/__tests__/sdk-agent-occurrence-collaboration.e2e.test.ts",
    "test:sdk-replace-file": "NODE_ENV=test bun test src/__tests__/sdk-replace-file.e2e.test.ts",
    "eval:discovery": "bun run scripts/evaluate-discovery.ts",
    "lint": "pnpm -w exec vp lint apps/cli",
    "lint:fix": "pnpm -w exec vp lint --fix apps/cli",
    "format": "pnpm -w exec vp fmt apps/cli",
    "pretypecheck": "node scripts/ensure-superdoc-build.js --types --internal",
    "typecheck": "tsc --noEmit -p tsconfig.check.json",
    "release": "pnpx semantic-release",
    "release:dry-run": "pnpx semantic-release --dry-run"
  }
}