{
  "name": "kiokuko-dsh",
  "version": "0.2.68",
  "description": "Kiokuko plugin for DeepSeek Harness",
  "type": "module",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/askdkc/kiokuko-dsh.git"
  },
  "homepage": "https://github.com/askdkc/kiokuko-dsh#readme",
  "bugs": {
    "url": "https://github.com/askdkc/kiokuko-dsh/issues"
  },
  "engines": {
    "node": ">=24.16.0"
  },
  "publishConfig": {
    "access": "public"
  },
  "files": [
    "dist/",
    "migrations/",
    "skills/",
    "dsh/",
    "docs/",
    "scripts/prepare-build.mjs",
    "scripts/install-lisp.mjs",
    "scripts/backfill-akinator-memory.mjs",
    "scripts/setup-dsh.mjs",
    "scripts/repair-session-log.mjs",
    "scripts/repair-continuation-source.mjs",
    "scripts/session-history-codec.mjs",
    "scripts/session-history-codec.d.mts",
    "README.md",
    "README.ja.md",
    "README.zh-CN.md",
    "README.ko.md",
    "PERMISSIONS.md",
    "LICENSE",
    "THIRD_PARTY_NOTICES.md",
    "lisp/",
    "!lisp/.native/",
    "!lisp/.native-build-*/",
    "scripts/verify-lisp-vendor.mjs",
    "scripts/smoke-typesafe.mjs",
    "scripts/laya-worker.py",
    "scripts/smoke-laya-coreml.mjs",
    "scripts/evaluate-answer-review.mjs",
    "scripts/answer-review-evaluation.mjs",
    "scripts/answer-review-evaluation.d.mts",
    "scripts/verification-completion.mjs",
    "guardrail/",
    "micro-judge/",
    "scripts/verify-micro-judge.mjs",
    "scripts/guardrail-artifacts.mjs",
    "scripts/guardrail-artifacts.d.mts"
  ],
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "default": "./dist/index.js"
    },
    "./client": {
      "types": "./dist/client.d.ts",
      "default": "./dist/client.cjs"
    },
    "./dsh": {
      "types": "./dist/dsh/index.d.ts",
      "default": "./dist/dsh/index.js"
    },
    "./core": {
      "types": "./dist/dsh/core/index.d.ts",
      "default": "./dist/dsh/core/index.js"
    },
    "./harness": {
      "types": "./dist/dsh/harness/index.d.ts",
      "default": "./dist/dsh/harness/index.js"
    },
    "./modules/lisp": {
      "types": "./dist/dsh/modules/lisp.d.ts",
      "default": "./dist/dsh/modules/lisp.js"
    },
    "./package.json": "./package.json",
    "./locale/*.json": "./dist/locale/*.json",
    "./models": {
      "types": "./dist/dsh/models/index.d.ts",
      "default": "./dist/dsh/models/index.js"
    }
  },
  "dsh": {
    "displayName": "Kiokuko DSH",
    "pluginType": "suite",
    "client": {
      "inject": [
        "@deepseek-ai/dsh-client-locale",
        "@deepseek-ai/dsh-client-ui-commands",
        "@deepseek-ai/dsh-client-ui-conversation",
        "@deepseek-ai/dsh-client-ui-renderer",
        "@deepseek-ai/dsh-client-ui-session",
        "@deepseek-ai/dsh-client-ui-settings"
      ],
      "platform": "web"
    },
    "bundle": {
      "patch": "./dsh/cordis.patch.yml"
    },
    "compatibility": {
      "dsh": "*",
      "dshReleases": {
        "0.2.1-alpha.2": "compatible",
        "0.2.1-alpha.3": "compatible"
      },
      "profiles": [
        "web",
        "dsh-cli",
        "dsh-tui"
      ]
    },
    "permissions": {
      "summary": "Kiokuko-owned local development execution, candidate memory and host receipts; normal user environment, PATH commands and child processes. Changes within the working project directory, including deletion, replacement and project DB updates, need no extra user permission. Outside-project changes require concrete confirmation.",
      "readPaths": [
        "Configured Kiokuko SQLite database and embedding assets",
        "Registered project roots and their repository metadata",
        "Selected session repository status, staged and working-tree diffs, and explicitly selected untracked files for Diff review",
        "AgenticReplay traces belonging to the exact native DSH session",
        "Stored native DSH session IDs and histories for startup validation and legacy Kiokuko compatibility",
        "Bundled Rust guardrail manifests, bounded protocol and exact precompiled host artifact for explicitly enrolled TDD units",
        "Bundled finite-domain micro-judge manifest, native verification receipt and exact platform artifact"
      ],
      "writePaths": [
        "Seventeen bundled managed Skills and references under ~/.agents/skills on enabled plugin load",
        "Existing kiokuko-dsh managed block in startup-directory AGENTS.md, including explicitly DSH-owned legacy blocks; other instructions are preserved",
        "Configured Kiokuko database and pre-migration backups",
        "DSH run, lease, receipt, retrieval, Deep inputs/artifacts/budgets/reports, post-completion memory-finalization, and embedding state inside that database",
        ".agenticreplay/runs and .agenticreplay/exports inside verified session workspaces, or the configured Kiokuko data directory",
        "Legacy history compatibility under DSH's native write lease: exact rejected v3 file or validated new v3 generation from retained v0, identical .bak, disposable validation artifacts, and automatic deletion of confirmed identity-mismatched native logs",
        "Opt-in Lisp scratch, input snapshots, verified compiled bundle cache, durable operation journal, and approved file changes with host backups",
        "Installation-built standalone Lisp executable under the package lisp/.native directory",
        "Project files through owned native tools; private execution outbox beside the configured Kiokuko database"
      ],
      "commands": [
        "Restricted repository-relative verifier and backup subprocesses when explicitly requested",
        "Read-only fixed-argument Git commands for an explicitly captured Diff review",
        "Owned bash/zsh, PATH commands, builds/tests and Lisp with the normal user environment; explicit protected Lisp compatibility mode remains available",
        "Bundled Rust guardrail check/validate and the host-owned Node test runner for explicitly enrolled bounded TDD units; no download, Cargo, SBCL or PATH engine fallback",
        "Bundled finite-domain micro judge for resolved request candidates through bounded stdin/stdout with deadlines; no automatic compiler, download or PATH fallback"
      ],
      "externalServices": [
        "GitHub or skills.sh for optional Skill discovery and source retrieval",
        "User-configured embedding endpoint when remote embeddings are enabled",
        "DSH-configured model providers for explicitly started Deep planning and its budgeted memory extraction",
        "The explicitly selected DSH model provider for a user-started Diff review without tools",
        "DSH-configured model provider for automatic memory review (active by default, up to 12 worker dispatches per project per UTC day), ordinary finalization and configured memory evolution",
        "Configured TypeSafe or explicitly selected OpenAI Decisions fixed endpoint, or explicit Nimble HTTPS/loopback endpoint, for automatic task/Skill/draft decisions and independent original-source/candidate comparison, projected memory reuse after a synthetic readiness probe, and Lisp; no redirects, retries or provider substitution; exact roles.check no-tool fallback for complete draft review",
        "Explicit Laya-CoreML Unix socket for local finite decisions using the existing v1 worker or optional strict operations; no subprocess client, automatic worker startup, model downloads or provider substitution",
        "DSH-configured admitted provider/model for default-active source-backed index reasoning: up to 8 worker dispatches per workspace per UTC day; no retrieval-time generation or automatic resend of uncertain dispatches",
        "User-configured AI API endpoints and vendored provider OAuth flows through Kiokuko Models"
      ],
      "credentials": [
        "Optional user-provided GitHub or embedding credentials; never bundled or persisted by the plugin",
        "TYPESAFE_API_KEY resolved per explicit call; optional DSH-managed set/unset via /kioku-typesafe-key, inherited environment precedence, no worker or Kiokuko storage exposure; input visible while typing",
        "OPENAI_API_KEY resolved separately through DSH credentials, or inherited environment only without a credentials service; never stored in decision records or substituted with a TypeSafe key",
        "Optional separate Nimble bearer credential reference through DSH; TYPESAFE_API_KEY is prohibited for Nimble; credentials are never persisted in decision records",
        "Shared dsh-auth credentials: human Web login/key replacement/logout; logout also affects dsh-cli"
      ],
      "failureBoundaries": [
        "Repository identity, run identity, lease, revision, and integrity mismatches fail closed",
        "Remote embedding is disabled by default and unavailable services do not become normal success",
        "Ordinary memory finalization failures are retryable; uncertain Deep requests are never automatically resent. Neither can veto completion or session-log export",
        "AgenticReplay is configured by default; capture requires a session choice or start command, adds no network transmission, and cannot veto native outcomes",
        "Explicitly enrolled bounded TDD units fail closed on absent/invalid guardrail artifacts or stale authority/receipt bindings; only Linux x64 has native engine verification, other bundled targets are cross-built",
        "Enabled source-candidate assessment distinguishes unavailable and incomplete checks from proof; the micro judge is native-verified on Apple Silicon macOS only, unsupported platforms report unavailable, and explicit typed-decision OFF records no assessment"
      ],
      "lifecycleEvidence": [
        "prepare builds by default; selected CI installs defer to the verifier clean build",
        "postinstall builds and verifies a standalone Lisp executable using local SBCL; runtime use needs no external SBCL; missing build prerequisites leave Lisp unbuilt with a diagnostic",
        "Git installs use repository-scoped pnpm allowBuilds approval on a supporting pnpm version; source revision pinning is optional and separate",
        "Disposable-profile install, Web start, and uninstall evidence is recorded by CI"
      ]
    }
  },
  "scripts": {
    "clean:dist": "node --input-type=module --eval \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
    "build": "npm run clean:dist && tsc -p tsconfig.build.json && node scripts/build-model-transports.mjs && node scripts/compile-skill-prompts.mjs && node scripts/build-dsh-client.mjs && node scripts/build-history-codecs.mjs && node scripts/build-plugin-entry.mjs && node scripts/guardrail-artifacts.mjs --verify-bundled --quiet && node scripts/verify-micro-judge.mjs && node scripts/build-runtime-manifest.mjs",
    "typecheck": "tsc -p tsconfig.json --noEmit",
    "test": "node scripts/run-tests.mjs tests/dsh",
    "test:harness": "node --import tsx scripts/run-harness-evaluation.mjs",
    "test:unit": "node scripts/run-tests.mjs tests/dsh/unit",
    "test:intake:queued": "node scripts/run-ci-native.mjs queued-intent",
    "test:memory-reuse": "node scripts/run-tests.mjs tests/dsh/unit/decisions/memory-reuse.test.ts tests/dsh/integration/memory-reuse.test.ts",
    "test:evaluation:memory-reuse": "node --import tsx scripts/run-memory-reuse-evaluation.mjs",
    "probe:lisp:p0": "node --import tsx scripts/probe-lisp-p0.ts",
    "test:integration": "node scripts/run-tests.mjs tests/dsh/integration",
    "test:integration:tool-exposure": "node scripts/run-tests.mjs tests/dsh/integration/tool-exposure-native.test.ts",
    "test:sqlite-vec": "node --import tsx tests/ci/sqlite-vec-package-smoke.ts",
    "test:evaluation": "npm run build && node scripts/run-retrieval-evaluation.mjs",
    "test:benchmark": "npm run build && node scripts/run-retrieval-benchmark.mjs",
    "test:benchmark:dsh-log": "npm run build && node scripts/run-dsh-million-event-benchmark.mjs",
    "test:efficiency": "node --import tsx scripts/run-token-efficiency-evaluation.mjs",
    "test:cli-profile": "node scripts/verify-cli-profile.mjs",
    "verify:prepare": "node scripts/verify-prepare-reproducibility.mjs",
    "sampledb:generate": "node --import tsx tests/fixtures/sample-database.ts tests/sampledb/kiokuko-dsh.sqlite3",
    "test:sampledb": "npm run build && node --import tsx tests/ci/verify-sample-database.ts",
    "publint": "publint",
    "pack:check": "node scripts/pack-check.mjs",
    "prepublishOnly": "node scripts/prepublish.mjs",
    "prepare": "node scripts/prepare-build.mjs",
    "postinstall": "node scripts/install-lisp.mjs --optional",
    "lisp:build": "node scripts/install-lisp.mjs",
    "test:agenticreplay:package": "npm run build && node scripts/verify-agenticreplay-consumer.mjs && node scripts/verify-agenticreplay-consumer.mjs --pnpm",
    "test:memory-review": "node scripts/run-tests.mjs tests/dsh/unit/memory-review tests/dsh/integration/memory-review",
    "test:evolution": "node scripts/run-tests.mjs tests/dsh/unit/evolution tests/dsh/integration/evolution",
    "test:evaluation:evolution": "node --import tsx scripts/run-evolution-evaluation.mjs",
    "test:evaluation:evolution:tasks": "node --import tsx scripts/run-evolution-task-evaluation.mjs",
    "setup:dsh": "node scripts/setup-dsh.mjs",
    "memory:backfill:akinator": "node scripts/backfill-akinator-memory.mjs",
    "test:evaluation:akinator": "npm run build && node scripts/run-akinator-memory-evaluation.mjs",
    "test:benchmark:akinator": "npm run build && node scripts/run-akinator-memory-benchmark.mjs",
    "test:continuity": "node scripts/run-tests.mjs tests/dsh/unit/continuity tests/dsh/integration/continuity",
    "test:evaluation:continuity": "node --import tsx scripts/run-continuity-evaluation.mjs",
    "verify:lisp:vendor": "node scripts/verify-lisp-vendor.mjs",
    "test:packages:live": "KIOKUKO_REQUIRE_LISP_RUNTIME=1 KIOKUKO_PACKAGE_LIVE=1 node scripts/run-tests.mjs tests/dsh/integration/lisp/packages-live.test.ts",
    "test:packages": "KIOKUKO_REQUIRE_LISP_RUNTIME=1 node scripts/run-tests.mjs tests/dsh/unit/lisp/packages.test.ts tests/dsh/integration/lisp/packages-runtime.test.ts tests/dsh/integration/lisp/packages-update.test.ts",
    "test:lisp": "node scripts/run-tests.mjs tests/dsh/unit/lisp tests/dsh/integration/lisp",
    "test:lisp:defaults": "node scripts/run-tests.mjs tests/dsh/unit/lisp/approval-config.test.ts tests/dsh/unit/lisp/approval-policy.test.ts tests/dsh/unit/lisp/coding-choice.test.ts tests/dsh/unit/lisp/approval-client.test.ts",
    "test:lisp:prototype-planning": "node --import tsx scripts/run-lisp-prototype-planning.mjs",
    "test:lisp:efficiency": "node --import tsx scripts/run-lisp-efficiency.mjs",
    "test:lisp:web": "node scripts/verify-lisp-web.mjs",
    "test:lisp:plan:web": "npm run build && node scripts/verify-lisp-plan-web.mjs",
    "test:diff-review:web": "node scripts/verify-diff-review-web.mjs",
    "test:skill-prompts": "node scripts/run-tests.mjs tests/dsh/unit/skill-compiler.test.ts tests/dsh/unit/skill-snapshot.test.ts",
    "test:skill-delivery": "npm run build && node scripts/run-skill-delivery.mjs",
    "test:skill-efficiency": "node scripts/run-skill-efficiency.mjs",
    "test:skill-quality": "node scripts/run-skill-quality.mjs",
    "test:benchmark:memory-review": "node --import tsx tests/dsh/integration/memory-review/performance.ts",
    "build:modules": "npm run build && node scripts/stage-modules.mjs",
    "test:modules": "node scripts/run-tests.mjs tests/dsh/unit/core-modules.test.ts tests/dsh/integration/core-host.test.ts && node scripts/verify-module-packages.mjs",
    "test:laya-worker": "python3 -B -m unittest discover -s tests/laya -v",
    "test:answer-review": "node scripts/run-tests.mjs tests/dsh/unit/decisions/answer-review.test.ts tests/dsh/unit/decisions/grounding.test.ts tests/dsh/unit/decisions/answer-review-evaluation.test.ts tests/dsh/e2e/answer-review-loop.test.ts",
    "test:evaluation:answer-review": "npm run build && node scripts/evaluate-answer-review.mjs",
    "test:evaluation:decisions": "node --import tsx scripts/run-decision-evaluation.mjs",
    "test:evaluation:request-intent": "node --import tsx scripts/run-request-intent-evaluation.mjs",
    "test:evaluation:model-routing": "node --import tsx scripts/run-model-routing-evaluation.mjs",
    "test:index-reasoning": "node scripts/run-tests.mjs tests/dsh/integration/index-reasoning.test.ts tests/dsh/integration/index-reasoning-native.test.ts tests/dsh/integration/index-reasoning-evaluation.test.ts",
    "test:evaluation:index-reasoning": "node --import tsx scripts/run-index-reasoning-evaluation.mjs",
    "test:skill-coding:offline": "node --test tests/fixtures/skill-coding/offline.test.mjs",
    "test:skill-coding": "node scripts/run-skill-coding.mjs",
    "test:shortcuts:web": "npm run build && node scripts/verify-shortcuts-web.mjs",
    "test:lisp:approval:web": "npm run build && node scripts/verify-lisp-approval-web.mjs",
    "test:ci:unit": "node scripts/run-ci-native.mjs unit",
    "test:ci:integration": "node scripts/run-ci-native.mjs integration",
    "test:ci:e2e": "node scripts/run-ci-native.mjs e2e",
    "test:ci:metadata": "npm run publint",
    "test:ci:e2e:core": "node scripts/run-ci-native.mjs e2e-core",
    "test:ci:e2e:repeated": "node scripts/run-ci-native.mjs e2e-repeated",
    "test:ci:repeated:deep": "node scripts/run-ci-native.mjs e2e-repeated-deep",
    "test:ci:repeated:normal": "node scripts/run-ci-native.mjs e2e-repeated-normal",
    "test:ci:lisp": "node scripts/run-ci-native.mjs lisp",
    "test:ci:prepare": "npm run verify:prepare",
    "test:ci:embedding": "node scripts/run-local-embedding-smoke.mjs --offline",
    "test:ci:approval:web": "npm run build && node scripts/run-ci-native.mjs browser-approval",
    "test:ci:coding:web": "npm run build && node scripts/run-ci-native.mjs browser-coding",
    "test:ci:shortcuts:web": "npm run build && node scripts/run-ci-native.mjs browser-shortcuts",
    "test:models:web": "npm run build && node scripts/verify-models-web.mjs",
    "test:code-intelligence": "node scripts/run-code-intelligence.mjs",
    "test:code-intelligence:packed": "node scripts/run-code-intelligence.mjs --packed",
    "test:code-intelligence:benchmark": "node scripts/benchmark-code-intelligence.mjs",
    "verify": "node scripts/verify.mjs",
    "verify:plan": "node scripts/verify.mjs --plan",
    "test:verification": "node --test scripts/verification-contract.test.mjs",
    "verify:guardrail": "node scripts/guardrail-artifacts.mjs --verify-bundled",
    "check:guardrail": "node scripts/guardrail-artifacts.mjs --check-host"
  },
  "dependencies": {
    "@deepseek-ai/cosmokit": "~1.8.6-alpha.2",
    "@deepseek-ai/schemastery": "~3.18.5-alpha.2",
    "agenticreplay": "latest",
    "jsonc-parser": "3.3.1",
    "semver": "7.8.5",
    "yaml": "2.9.0",
    "zod": "4.6.6"
  },
  "overrides": {
    "adm-zip": "0.6.1",
    "sharp": "0.35.5",
    "global-agent": "4.1.3",
    "zod": "4.6.6"
  },
  "peerDependencies": {
    "@ai-sdk/provider": "^4.0.21",
    "@deepseek-ai/cordis": "*",
    "@deepseek-ai/dsh-agent": "*",
    "@deepseek-ai/dsh-attachment": "*",
    "@deepseek-ai/dsh-llm": "*",
    "@deepseek-ai/dsh-llm-pi-ai": "*",
    "@deepseek-ai/dsh-session": "*",
    "@deepseek-ai/dsh-tools": "*",
    "@huggingface/hub": "^2.16.1",
    "@huggingface/transformers": "^4.2.0",
    "sqlite-vec": "^0.1.9"
  },
  "peerDependenciesMeta": {
    "@deepseek-ai/dsh-session": {
      "optional": true
    },
    "@huggingface/hub": {
      "optional": true
    },
    "@huggingface/transformers": {
      "optional": true
    },
    "sqlite-vec": {
      "optional": true
    },
    "@deepseek-ai/dsh-llm": {
      "optional": true
    },
    "@deepseek-ai/dsh-llm-pi-ai": {
      "optional": true
    },
    "@deepseek-ai/dsh-agent": {
      "optional": true
    },
    "@deepseek-ai/dsh-attachment": {
      "optional": true
    },
    "@ai-sdk/provider": {
      "optional": true
    },
    "@deepseek-ai/dsh-tools": {
      "optional": true
    }
  },
  "devDependencies": {
    "@ai-sdk/anthropic": "4.0.71",
    "@ai-sdk/google": "4.0.87",
    "@ai-sdk/openai": "4.0.83",
    "@ai-sdk/openai-compatible": "3.0.62",
    "@ai-sdk/provider": "4.0.21",
    "@deepseek-ai/cordis": "latest",
    "@deepseek-ai/dsh-agent": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-attachment": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-session-format": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-session-format-v1-to-v2": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-session-format-v2-to-v3": "0.2.1-alpha.3",
    "@deepseek-ai/dsh-tools": "0.2.1-alpha.3",
    "@huggingface/hub": "2.16.1",
    "@huggingface/transformers": "4.2.0",
    "@types/node": "24.13.3",
    "@types/semver": "7.8.0",
    "esbuild": "0.28.2",
    "playwright": "1.63.0",
    "publint": "0.3.24",
    "sqlite-vec": "0.1.9",
    "tsx": "4.23.13",
    "typescript": "5.9.3"
  },
  "guardrail": {
    "manifest": "guardrail/manifest.json",
    "manifestSha256": "d001ddccda7a8c47abcb6ea2f5b67c1fd4452593e3750c3bd20ffa087a773297",
    "availability": "Bundled Linux x64/arm64 static musl and macOS Apple Silicon (ARM64). Intel Mac is unsupported. Only Linux x64 native smoke was recorded for the bundled release. Missing or invalid host artifact blocks protocol enrollment.",
    "verification": "npm run verify:guardrail validates bundled identities without executing cross-built binaries; npm run check:guardrail checks current host availability."
  }
}
