Files
TREK/plugin-sdk/package.json
T
jubnl d110b3bb6d Fix/plugin audit findings (#2031)
* fix(plugins): enforce manifest apiVersion at install and activation

* test(plugins): exercise the absent-apiVersion default

* feat(plugins): generate the core-event catalog into host-facts

* docs(plugins): explain the packing.listBags write-permission binding

* test(plugins): cover apiVersion upload refusal; tidy docblocks and generator header

* fix(plugin-sdk): validate settings options and oauth like the host

* fix(plugin-sdk): model the full manifest shape and stop dropping fields

* fix(plugin-sdk): drop non-string routeProfiles icons like the host

* docs(plugin-sdk): document host limits, oauth contract, and ignored asUserId

* feat(plugin-sdk): enforce daily budgets and meta quotas in the mock host

* feat(plugin-sdk): expose the generated core-event catalog

* feat(plugin-sdk): scaffold trek range >=3.4.0 <5.0.0 ahead of TREK 4.0

* feat(plugin-sdk): scaffold the oauth broker settings for oauth:client plugins

* chore(plugin-sdk): fix stale mirror docs and the colliding permissions export

* docs(plugin-sdk): add the rate-limit string; restore trek docblock; match host meta sizing

* feat(plugin-sdk): raise the scaffold trek floor to 4.0.0

* docs(wiki): bring the plugin pages in line with the current runtime

* docs: bring the workspace CLAUDE.md guides up to date and make them committable

* feat(plugin-sdk): roll back failed publishes, add unrelease, sync the fork, retro-sign updates

* docs(wiki): document the publish rollback, unrelease, fork sync, and retro-signing

* chore(plugin-sdk): 1.6.0
2026-08-24 23:48:36 +02:00

89 lines
2.1 KiB
JSON

{
"name": "trek-plugin-sdk",
"version": "1.6.0",
"description": "SDK for building TREK plugins: types, definePlugin, a mock host, manifest validation, and the create-trek-plugin / trek-plugin CLIs.",
"type": "module",
"license": "MIT",
"author": "mauriceboe",
"maintainers": [
{
"name": "mauriceboe",
"url": "https://github.com/mauriceboe"
},
{
"name": "jubnl",
"url": "https://github.com/jubnl"
}
],
"homepage": "https://github.com/liketrek/TREK/wiki/Plugin-Development",
"repository": {
"type": "git",
"url": "git+https://github.com/liketrek/TREK.git",
"directory": "plugin-sdk"
},
"bugs": {
"url": "https://github.com/liketrek/TREK/issues"
},
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./testing": {
"import": {
"types": "./dist/mock-host.d.ts",
"default": "./dist/mock-host.js"
},
"require": {
"types": "./dist/cjs/mock-host.d.ts",
"default": "./dist/cjs/mock-host.js"
}
}
},
"bin": {
"trek-plugin-sdk": "./dist/cli/trek-plugin.js",
"trek-plugin": "./dist/cli/trek-plugin.js",
"create-trek-plugin": "./dist/cli/create.js"
},
"files": [
"dist"
],
"dependencies": {
"@clack/prompts": "^1.7.0",
"semver": "^7.7.4",
"update-notifier": "^7.3.1"
},
"scripts": {
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && node scripts/finish-cjs.mjs",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"prepublishOnly": "npm run build && npm test"
},
"devDependencies": {
"@types/node": "^22.20.0",
"@types/semver": "^7.7.1",
"@types/update-notifier": "^6.0.8",
"typescript": "^5.9.3",
"vitest": "^4.1.9"
},
"keywords": [
"trek",
"plugin",
"sdk"
]
}