Compare commits

3 Commits

Author SHA1 Message Date
1df4ea1b72 fix(docs): correct install one-liner raw URL (Gitea, not GitLab) + v0.2.1
git.codelab.vc is Gitea/Forgejo: raw path is /raw/branch/<ref>/, the GitLab-style
/-/raw/main/ returned 404 so the one-command install was broken. The one-liner
now also fetches the script from the stable channel (vetted), not main.
2026-07-16 15:24:47 +03:00
de006ccf0c chore(release): v0.2.0 2026-07-16 15:17:05 +03:00
be2d445a09 fix(install): require git alongside Node (pi install git: needs it)
Found in a clean cps sandbox run: a machine without git passes the Node check
but fails later inside 'pi install git:...' with an unclear error. Now checked
up front with an actionable message. CHANGELOG updated.

Decision on optionalDependencies (@modelcontextprotocol/sdk): KEEP. The heavy
install observed in the sandbox (~317 packages) is dominated by npm>=7
auto-installing the Pi peerDependencies stack, not the MCP SDK; removing the
SDK saves little and would make MCP enablement fragile across pi updates.
2026-07-16 15:12:12 +03:00
4 changed files with 24 additions and 4 deletions

View File

@@ -4,6 +4,19 @@
## [Unreleased]
## [0.2.1] — 2026-07-16
### Fixed
- Установочный one-liner: `git.codelab.vc` — это Gitea/Forgejo, а не GitLab; правильный
raw-путь — `/raw/branch/stable/install.sh` (старый `/-/raw/main/` отдавал 404, «установка
одной командой» не работала). Скрипт теперь берётся с канала `stable` (vetted).
## [0.2.0] — 2026-07-16
### Fixed
- `install.sh` проверяет наличие `git` (нужен для `pi install git:...`) — на машине без git
установка падала позже с непонятной ошибкой. Найдено при прогоне в чистой cps-песочнице.
### Added
- Security guardrails: `secret-scanner` (блок записи секретов), `commit-guard`
(Conventional Commits + скан секретов в сообщении), `llm-redaction` (редакция

View File

@@ -13,7 +13,7 @@ guardrails и скиллы со знанием того, где у нас код
### Установка (одной командой)
```bash
curl -fsSL https://git.codelab.vc/ai/pi-kit/-/raw/main/install.sh | bash
curl -fsSL https://git.codelab.vc/ai/pi-kit/raw/branch/stable/install.sh | bash
```
Скрипт проверит Node.js (>= 20), поставит Pi (если нет), установит этот пакет, **спросит
@@ -29,7 +29,7 @@ Pi провайдер-агностичен — модель/провайдера
Профиль можно задать заранее (для CI/неинтерактивной установки):
```bash
PI_KIT_PROFILE=backend curl -fsSL https://git.codelab.vc/ai/pi-kit/-/raw/main/install.sh | bash
PI_KIT_PROFILE=backend curl -fsSL https://git.codelab.vc/ai/pi-kit/raw/branch/stable/install.sh | bash
```
### Профили и скилы

View File

@@ -3,7 +3,7 @@
# pi-kit bootstrap — one-shot setup for new engineers. Idempotent: safe to re-run.
#
# Usage:
# curl -fsSL https://git.codelab.vc/ai/pi-kit/-/raw/main/install.sh | bash
# curl -fsSL https://git.codelab.vc/ai/pi-kit/raw/branch/stable/install.sh | bash
# # or, from a checkout:
# ./install.sh
#
@@ -52,6 +52,13 @@ if [ "$NODE_MAJOR" -lt "$MIN_NODE_MAJOR" ]; then
fi
info "Node.js $(node -v) — ок."
# --- 1b. git (required by `pi install git:...`) ------------------------------
if ! command -v git >/dev/null 2>&1; then
err "git не найден. Установи git (macOS: xcode-select --install; Ubuntu: apt install git) и запусти скрипт снова."
exit 1
fi
info "git $(git --version | awk '{print $3}') — ок."
# --- 2. Pi ------------------------------------------------------------------
if command -v pi >/dev/null 2>&1; then
info "Pi уже установлен ($(pi --version 2>/dev/null || echo 'версия неизвестна'))."

View File

@@ -1,6 +1,6 @@
{
"name": "@mvideo/pi-kit",
"version": "0.1.0",
"version": "0.2.1",
"private": true,
"type": "module",
"description": "Корпоративный Pi-пакет: шаблоны задач, guardrails и скиллы для команды.",