{"_id":"@eduard-shubin/bkpi","name":"@eduard-shubin/bkpi","dist-tags":{"latest":"0.6.2"},"versions":{"0.6.2":{"name":"@eduard-shubin/bkpi","version":"0.6.2","description":"Install the local BKPI Rust runtime and coding-agent integrations","type":"module","bin":{"bkpi":"dist/index.js"},"engines":{"node":">=22"},"license":"MIT","scripts":{"typecheck":"tsc --noEmit","lint":"eslint src test","test":"tsx --test test/*.test.ts","build":"tsc && node scripts/bundle.mjs","prepack":"npm run build"},"dependencies":{"@clack/prompts":"^1.0.0","cross-spawn":"^7.0.6"},"devDependencies":{"@types/cross-spawn":"^6.0.6","@types/node":"^22.0.0","eslint":"^10.10.0","tsx":"^4.20.0","typescript":"^5.9.0","typescript-eslint":"^8.0.0"},"bkpi":{"releaseRepository":"EduardShubin867/bkpi"},"gitHead":"d5ed1e1d9b00ef2316f99eed3ae92bcb21be1e5c","_id":"@eduard-shubin/bkpi@0.6.2","_nodeVersion":"24.21.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-6SAwXz3RsejIdH5fnVd8UuehGTfLM/vFn4VXecDyFLJZJos+4tPHTT1Q/7ChXYnLkQJJiml84LwAlHg4HXvqoA==","shasum":"8f176a3ccb9a14f2c255e4853832e4f2a13b6be1","tarball":"https://registry.npmjs.org/@eduard-shubin/bkpi/-/bkpi-0.6.2.tgz","fileCount":16,"unpackedSize":56261,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCaqCZvfh18M4b4Eyg/gNz58+6m6Ukxs13Wc88P7F8Q3QIgYeKYl9j6qGEk2mCtLTMqDTxN7sLMJ8ej2ffAw6iv8eI="}]},"_npmUser":{"name":"eduard-shubin","email":"eduard.schubin55@gmail.com"},"directories":{},"maintainers":[{"name":"eduard-shubin","email":"eduard.schubin55@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bkpi_0.6.2_1789032638996_0.6493575684395045"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-10T09:30:38.780Z","0.6.2":"2026-09-10T09:30:39.155Z","modified":"2026-09-10T09:30:39.383Z"},"maintainers":[{"name":"eduard-shubin","email":"eduard.schubin55@gmail.com"}],"description":"Install the local BKPI Rust runtime and coding-agent integrations","license":"MIT","readme":"# BKPI\n\nLocal installer for the BKPI Rust runtime and coding-agent integrations.\n\n**KPI + plan + Bitrix data → agent assessment → deterministic calculation in Rust.**\n\nRequires Node.js 22+. Rust is not required on the user's machine.\n\n## Install\n\n```sh\nnpx bkpi\n```\n\nThe installer downloads the native BKPI runtime for the current platform from the GitHub Release, verifies its SHA256 checksum and guides you through Bitrix24 and agent setup.\n\nSupported platforms:\n\n- macOS Apple Silicon\n- macOS Intel\n- Linux x64\n- Linux ARM64\n- Windows x64\n\nUseful commands:\n\n```sh\nnpx bkpi doctor\nnpx bkpi targets\nnpx bkpi@latest update\nnpx bkpi uninstall\n```\n\n## Setup\n\nThe setup wizard can:\n\n- add or update Bitrix24 integrations;\n- choose local file, OS keychain or environment-variable credential storage;\n- configure Codex and/or Claude Code;\n- install the shared BKPI skill and MCP registration.\n\nWebhook input is masked and passed to the native runtime through stdin. Credentials are not placed in shell argv.\n\nThe default credential backend is a private local file outside the workspace. OS keychain and environment variables are explicit alternatives.\n\n## Workspace\n\nRun initialization inside the project where you want to use BKPI:\n\n```sh\nbkpi init\n```\n\nChoose the integration, people and optional KPI documents. Then open a new Codex or Claude Code session in that project and ask the agent to analyze the KPI.\n\nExamples:\n\n```text\nПосмотри, как у меня идёт KPI за сентябрь.\nРазбери KPI Ивана подробно.\nПо каким KPI у команды не хватает evidence?\n```\n\n## Updating\n\n`update` installs the runtime matching the version of the npm installer that launched it.\n\nTo upgrade to the newest release:\n\n```sh\nnpx bkpi@latest update\n```\n\nThen refresh agent integrations if needed:\n\n```sh\nnpx bkpi@latest targets\n```\n\n## Agent targets\n\nBKPI supports Codex and Claude Code through their official CLIs.\n\n```sh\nnpx bkpi targets\n```\n\nThe installer registers the BKPI MCP server and installs the shared skill. Existing unrelated agent configuration is preserved.\n\n## Development\n\n```sh\nnpm ci\nnpm run typecheck\nnpm run lint\nnpm run build\nnpm test\nnpm pack --dry-run\n```\n\nFor local installer testing with a locally built runtime:\n\n```sh\nBKPI_RUNTIME_SOURCE=/absolute/path/to/bkpi node dist/index.js update\n```\n\n`BKPI_INSTALL_DIR` can be used to isolate the runtime installation directory during tests.\n\n## Security\n\n- release binaries are verified with SHA256 before installation;\n- webhook values are not passed through argv;\n- credentials live outside the workspace;\n- Unix credential files use private permissions;\n- local state writes are atomic;\n- installer failures redact credential material from captured output.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-ba52a1c301865e9f75a04a6ce27ffe7b"}