Scaffold LogicSRC and CommandBoard plugins

This commit is contained in:
Anthony Ettinger 2026-06-06 11:24:02 +00:00
parent 59927e140c
commit 5c9ea821f6
67 changed files with 5958 additions and 0 deletions

11
plugins/sh1pt/README.md Normal file
View file

@ -0,0 +1,11 @@
# sh1pt Plugin
sh1pt is the CommandBoard.run plugin for project delivery workflows: project sync, action import/publish, release tracking, deployment status, artifact sync, and delivery-backed reputation events.
Required environment:
```txt
SH1PT_API_URL
SH1PT_API_KEY
SH1PT_WEBHOOK_SECRET
```

View file

@ -0,0 +1,18 @@
{
"name": "@logicsrc/plugin-sh1pt",
"version": "0.1.0",
"description": "CommandBoard.run projects, actions, releases, and delivery plugin for sh1pt.",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json",
"test": "vitest run src --passWithNoTests"
},
"dependencies": {
"@logicsrc/plugin-core": "file:../../packages/plugin-core"
},
"devDependencies": {
"vitest": "^4.0.8"
}
}

View file

@ -0,0 +1,40 @@
import type { PluginDefinition } from "@logicsrc/plugin-core";
import { sh1ptManifest } from "./manifest.js";
export const sh1ptPlugin: PluginDefinition = {
manifest: sh1ptManifest,
configDefaults: {
enabled: true,
default_project_provider: true,
api_url: "${SH1PT_API_URL}",
api_key: "${SH1PT_API_KEY}",
webhook_secret: "${SH1PT_WEBHOOK_SECRET}",
default_board: "/projects/sh1pt"
},
routes: [
{ method: "GET", path: "/api/plugins/sh1pt/projects", capability: "projects.sync" },
{ method: "GET", path: "/api/plugins/sh1pt/actions", capability: "actions.import" },
{ method: "POST", path: "/api/plugins/sh1pt/actions/publish", capability: "actions.publish" },
{ method: "POST", path: "/api/plugins/sh1pt/deployments", capability: "deployments.create" },
{ method: "POST", path: "/api/plugins/sh1pt/webhooks/delivery-status", capability: "webhook.delivery_status" }
],
events: [
{ event: "task.created", capability: "tasks.create_from_action" },
{ event: "task.approved", capability: "reputation.delivery_event" },
{ event: "artifact.created", capability: "artifacts.sync" },
{ event: "deployment.completed", capability: "releases.sync" }
],
permissions: [
"projects:read",
"projects:sync",
"actions:read",
"actions:publish",
"deployments:create",
"deployments:read",
"artifacts:sync",
"reputation:sync"
],
tuiPanels: [{ id: "sh1pt-status", title: "sh1pt Projects" }]
};
export { sh1ptManifest };

View file

@ -0,0 +1,23 @@
import type { PluginManifest } from "@logicsrc/plugin-core";
export const sh1ptManifest: PluginManifest = {
id: "sh1pt",
name: "sh1pt",
version: "1.0.0",
type: ["projects", "actions", "releases", "delivery"],
default: true,
capabilities: [
"projects.sync",
"actions.import",
"actions.publish",
"tasks.create_from_action",
"releases.sync",
"deployments.create",
"deployments.status",
"artifacts.sync",
"webhook.delivery_status",
"reputation.delivery_event"
],
commands: ["sh1pt", "projects", "actions", "deploy", "releases"],
env: ["SH1PT_API_URL", "SH1PT_API_KEY", "SH1PT_WEBHOOK_SECRET"]
};

View file

@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*.ts"]
}