Distribute gitea-axi's ambient context via explicit user actions (ADRs 0009, 0013), with no postinstall script: - Bundle the Agent Skill markdown at skills/gitea-axi/SKILL.md (a minimal pointer, not a command reference) and ship it via package.json files. - Add `setup`, which installs the skill into ~/.claude/skills/ idempotently (installed/updated/unchanged). - Add `setup hooks`, which registers a SessionStart hook running the bare dashboard for Claude Code, Codex, and OpenCode via the SDK's installSessionStartHooks(), updating managed entries in place. - Shadow the SDK's built-in `update` so it fails with VALIDATION_ERROR and points at the npm update command, keeping the ten-code error list intact. Integration tests drive all three at the CLI seam against a temporary HOME; these commands make no Gitea API calls, so there is no live-Gitea e2e case.
38 lines
848 B
JSON
38 lines
848 B
JSON
{
|
|
"name": "gitea-axi",
|
|
"version": "0.1.0",
|
|
"description": "Agent-ergonomic CLI for Gitea issues and pull requests",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"bin": {
|
|
"gitea-axi": "dist/main.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"skills"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"prepublishOnly": "npm run build",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "vitest run --config vitest.e2e.config.ts"
|
|
},
|
|
"dependencies": {
|
|
"@toon-format/toon": "^2.3.0",
|
|
"axi-sdk-js": "^0.1.8",
|
|
"gitea-js": "^1.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.19.0",
|
|
"@vitest/coverage-v8": "^3.2.7",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^3.2.0"
|
|
}
|
|
}
|