{
	"name": "@code-yeongyu/senpi",
	"version": "2026.11.21-2",
	"description": "Coding agent CLI with read, bash, edit, write tools and session management",
	"type": "module",
	"piConfig": {
		"configDir": ".senpi",
		"name": "senpi"
	},
	"senpiCapabilities": {
		"configReferenceObjects": 1
	},
	"bin": {
		"pi": "dist/bundle/cli.js",
		"senpi": "dist/bundle/cli.js"
	},
	"main": "./dist/index.js",
	"types": "./dist/index.d.ts",
	"exports": {
		".": {
			"types": "./dist/index.d.ts",
			"import": "./dist/index.js"
		},
		"./bun-runtime": {
			"types": "./dist/bun/runtime-modules.d.ts",
			"import": "./dist/bun/runtime-modules.js"
		},
		"./rpc-entry": {
			"import": "./dist/rpc-entry.js"
		},
		"./client": {
			"types": "./dist/client/index.d.ts",
			"import": "./dist/client/index.js"
		},
		"./pending-input": {
			"types": "./dist/core/pending-input-public.d.ts",
			"import": "./dist/core/pending-input-public.js"
		},
		"./session-worker-data": {
			"types": "./dist/modes/rpc/session-worker-data.d.ts",
			"import": "./dist/modes/rpc/session-worker-data.js"
		},
		"./private-fds": {
			"types": "./dist/private-fds.d.ts",
			"import": "./dist/private-fds.js"
		},
		"./mcp-env-grants": {
			"types": "./dist/core/extensions/builtin/mcp/env-grants-store.d.ts",
			"import": "./dist/core/extensions/builtin/mcp/env-grants-store.js"
		},
		"./prompt-presets": {
			"types": "./dist/core/extensions/builtin/prompt-preset/public.d.ts",
			"import": "./dist/core/extensions/builtin/prompt-preset/public.js"
		},
		"./engine-trust": {
			"types": "./dist/engine-trust/index.d.ts",
			"import": "./dist/engine-trust/index.js"
		},
		"./subscription-egress": {
			"types": "./dist/subscription-egress/index.d.ts",
			"import": "./dist/subscription-egress/index.js"
		},
		"./presenter-authority": {
			"types": "./dist/presenter-authority-slot.d.ts",
			"import": "./dist/presenter-authority-slot.js"
		},
		"./tools-core": {
			"types": "./dist/tools-core.d.ts",
			"import": "./dist/tools-core.js"
		}
	},
	"files": [
		"dist",
		"!dist/**/*.map",
		"!dist/experimental",
		"!dist/cli/experimental",
		"docs",
		"examples",
		"native/socket-secret",
		"containerization.md",
		"CHANGELOG.md",
		"vendor"
	],
	"scripts": {
		"check:provider-defaults": "vitest run test/model-resolver.test.ts -t \"default model selection\"",
		"clean": "shx rm -rf dist",
		"build": "tsgo -p tsconfig.build.json && npm run copy-assets && shx chmod +x dist/cli.js dist/rpc-entry.js && shx cp dist/cli.js dist/senpi && shx chmod +x dist/senpi && npm run build:bundle",
		"build:bundle": "node ../../scripts/build-coding-agent-bundle.mjs",
		"build:unbundled": "tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js dist/rpc-entry.js && npm run copy-assets",
		"build:binary": "npm --prefix ../tui run build && npm --prefix ../telemetry run build && npm --prefix ../ai run build && npm --prefix ../agent run build && npm --prefix ../protocol run build && npm --prefix ../client run build && npm --prefix ../pty run build && npm --prefix ../machine-ops run build && npm run build && node ../../scripts/prepare-bun-compile-assets.mjs && bun build --compile --splitting --compile-autoload-package-json --no-compile-autoload-dotenv --no-compile-autoload-bunfig --minify --keep-names --external canvas ./dist/bun/cli.js ./src/modes/rpc/session-worker.ts ./src/modes/rpc/loopless-worker.ts ./src/utils/image-resize-worker.ts ./src/core/extensions/builtin/permission-system/path-identity-worker.ts ./src/core/kill-guard/index.ts --outfile dist/pi && npm run copy-binary-assets",
		"copy-assets": "shx mkdir -p dist/modes/interactive/theme && shx cp src/modes/interactive/theme/*.json dist/modes/interactive/theme/ && shx mkdir -p dist/modes/interactive/assets && shx cp src/modes/interactive/assets/*.png dist/modes/interactive/assets/ && shx mkdir -p dist/core/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/core/export-html/ && shx cp src/core/export-html/vendor/*.js dist/core/export-html/vendor/ && shx mkdir -p dist/core/extensions/builtin/imagegen/skill && shx cp src/core/extensions/builtin/imagegen/skill/SKILL.md dist/core/extensions/builtin/imagegen/skill/",
		"copy-binary-assets": "shx mkdir -p dist && shx rm -f dist/package.json && shx cp README.md dist/ && shx cp CHANGELOG.md dist/ && shx mkdir -p dist/theme && shx cp src/modes/interactive/theme/*.json dist/theme/ && shx mkdir -p dist/assets && shx cp src/modes/interactive/assets/*.png dist/assets/ && shx mkdir -p dist/export-html/vendor && shx cp src/core/export-html/template.html src/core/export-html/template.css src/core/export-html/template.js dist/export-html/ && shx cp -r docs dist/ && shx cp -r examples dist/ && node ../../scripts/copy-codemode-sidecar.mjs dist && shx cp package.json dist/ && shx cp ../../node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm dist/ && shx mkdir -p dist/native/darwin dist/native/win32 && shx cp -r ../../packages/tui/native/darwin/prebuilds dist/native/darwin/ && shx cp -r ../../packages/tui/native/win32/prebuilds dist/native/win32/ && shx mkdir -p dist/core/extensions/builtin/imagegen/skill && shx cp src/core/extensions/builtin/imagegen/skill/SKILL.md dist/core/extensions/builtin/imagegen/skill/ && node ../../scripts/copy-pty-native.mjs",
		"test": "node ../../scripts/run-tests.mjs vitest --run",
		"prepublishOnly": "npm run clean && npm run build",
		"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput"
	},
	"dependencies": {
		"@earendil-works/chord": "0.99.1",
		"@earendil-works/pi-agent-core": "npm:@code-yeongyu/senpi-agent-core@2026.11.21-2",
		"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.21-2",
		"@earendil-works/pi-realm-registry": "npm:@code-yeongyu/senpi-realm-registry@2026.11.21-2",
		"@earendil-works/pi-tui": "npm:@code-yeongyu/senpi-tui@2026.11.21-2",
		"@silvia-odwyer/photon-node": "0.3.4",
		"ajv": "8.20.0",
		"chalk": "6.0.0",
		"cross-spawn": "7.0.6",
		"diff": "9.0.0",
		"es-module-lexer": "3.0.2",
		"grok-mermaid": "0.2.3",
		"highlight.js": "11.12.0",
		"hosted-git-info": "10.1.1",
		"ignore": "7.0.9",
		"jiti": "2.7.0",
		"minimatch": "11.0.5",
		"proper-lockfile": "4.1.2",
		"re2js": "2.8.8",
		"semver": "7.8.5",
		"typebox": "1.3.34",
		"undici": "8.12.4",
		"yaml": "2.9.1",
		"@anthropic-ai/claude-agent-sdk": "0.3.321",
		"@anthropic-ai/sdk": "0.127.0",
		"@code-yeongyu/senpi-codemode": "2026.11.21-2",
		"@earendil-works/pi-pty": "npm:@code-yeongyu/senpi-pty@2026.11.21-2",
		"@modelcontextprotocol/sdk": "1.32.1",
		"@mozilla/readability": "0.6.0",
		"linkedom": "0.18.13",
		"marked": "18.0.13",
		"picomatch": "4.0.7",
		"signal-exit": "3.0.7",
		"turndown": "7.2.4",
		"zod": "4.6.7"
	},
	"overrides": {
		"protobufjs": "7.6.5",
		"rimraf": "6.1.3",
		"gaxios": {
			"rimraf": "6.1.3"
		},
		"@hono/node-server": "2.1.8"
	},
	"devDependencies": {
		"@types/cross-spawn": "6.0.6",
		"@types/hosted-git-info": "3.0.5",
		"@types/node": "26.6.2",
		"@types/proper-lockfile": "4.1.4",
		"@types/semver": "7.8.0",
		"shx": "0.4.0",
		"typescript": "7.0.2",
		"vitest": "5.0.1",
		"@types/picomatch": "4.0.3",
		"@types/turndown": "5.0.6"
	},
	"keywords": [
		"coding-agent",
		"ai",
		"llm",
		"cli",
		"tui",
		"agent"
	],
	"author": "Mario Zechner",
	"license": "MIT",
	"repository": {
		"type": "git",
		"url": "git+https://github.com/code-yeongyu/senpi.git",
		"directory": "packages/coding-agent"
	},
	"engines": {
		"node": ">=24.0.0"
	}
}
