Documente la règle publique menu -> command handler -> tâche de fond optionnelle -> feedback (docs/commands-and-feedback.md + README), clarifie via JSDoc les invariants de runCommand/recordOnly/ownerAgentId dans runtime.ts, et met à jour l'exemple hello-plugin (feedback structuré launched/skipped, watch non-fatal) pour qu'il illustre fidèlement le contrat documenté. Publie docs/ dans le package npm. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
36 lines
925 B
JSON
36 lines
925 B
JSON
{
|
|
"name": "@idea/plugin-sdk",
|
|
"version": "0.1.0",
|
|
"description": "Minimal public TypeScript SDK for IdeA plugins.",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"docs",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"build:hello-plugin": "tsc -p examples/hello-plugin/tsconfig.build.json",
|
|
"package:hello-plugin": "npm run build && npm run build:hello-plugin && node scripts/package-hello-plugin.mjs",
|
|
"typecheck:examples": "tsc -p examples/hello-plugin/tsconfig.json --noEmit",
|
|
"check": "npm run build && npm run typecheck:examples && npm run package:hello-plugin"
|
|
},
|
|
"keywords": [
|
|
"idea",
|
|
"plugins",
|
|
"sdk"
|
|
],
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"typescript": "^5.5.0"
|
|
}
|
|
}
|