From 76b3d713406b2faca9820e9bc0f2ac65918fb881 Mon Sep 17 00:00:00 2001 From: Aleksey Shakhmatov Date: Thu, 16 Jul 2026 10:53:55 +0300 Subject: [PATCH] chore: add package manifest, config source-of-truth and tsconfig - package.json with pi section (extensions/skills/prompts) and Pi libs as peerDependencies (*) - config/company.json as the single source of truth (values are TODO, gitHost set) - tsconfig.json for optional local typecheck --- .gitignore | 3 +++ config/company.json | 12 ++++++++++++ package.json | 41 +++++++++++++++++++++++++++++++++++++++++ tsconfig.json | 18 ++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 config/company.json create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c45938 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +*.log +.DS_Store diff --git a/config/company.json b/config/company.json new file mode 100644 index 0000000..b5aa2a7 --- /dev/null +++ b/config/company.json @@ -0,0 +1,12 @@ +{ + "gitHost": "git.codelab.vc", + "trackerUrl": "TODO", + "docsUrl": "TODO", + "repoMap": "TODO: где какой код лежит", + "rules": [ + "не коммитить секреты", + "не пушить в main", + "MR обязателен" + ], + "remoteConfigUrl": null +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..6381257 --- /dev/null +++ b/package.json @@ -0,0 +1,41 @@ +{ + "name": "@mvideo/pi-kit", + "version": "0.1.0", + "private": true, + "description": "Корпоративный Pi-пакет: шаблоны задач, guardrails и скиллы для команды.", + "keywords": [ + "pi-package", + "pi", + "coding-agent", + "internal" + ], + "license": "UNLICENSED", + "repository": { + "type": "git", + "url": "git@git.codelab.vc:ai/pi-kit.git" + }, + "pi": { + "extensions": [ + "./extensions" + ], + "skills": [ + "./skills" + ], + "prompts": [ + "./prompts" + ] + }, + "scripts": { + "typecheck": "tsc --noEmit" + }, + "peerDependencies": { + "@earendil-works/pi-coding-agent": "*", + "@earendil-works/pi-ai": "*", + "@earendil-works/pi-tui": "*", + "typebox": "*" + }, + "dependencies": {}, + "devDependencies": { + "typescript": "^5" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..c1f9704 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,18 @@ +{ + "//": "Only for local typecheck of extensions (`npm install` peers first, then `npm run typecheck`). Pi itself runs extensions via jiti and needs no build step.", + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["ES2023"], + "types": ["node"], + "strict": true, + "noEmit": true, + "skipLibCheck": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": false + }, + "include": ["extensions/**/*.ts"] +}