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
This commit is contained in:
2026-07-16 10:53:55 +03:00
commit 76b3d71340
4 changed files with 74 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
node_modules/
*.log
.DS_Store

12
config/company.json Normal file
View File

@@ -0,0 +1,12 @@
{
"gitHost": "git.codelab.vc",
"trackerUrl": "TODO",
"docsUrl": "TODO",
"repoMap": "TODO: где какой код лежит",
"rules": [
"не коммитить секреты",
"не пушить в main",
"MR обязателен"
],
"remoteConfigUrl": null
}

41
package.json Normal file
View File

@@ -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"
}
}

18
tsconfig.json Normal file
View File

@@ -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"]
}