mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
Scaffold LogicSRC and CommandBoard plugins
This commit is contained in:
parent
59927e140c
commit
5c9ea821f6
67 changed files with 5958 additions and 0 deletions
11
plugins/coinpay/README.md
Normal file
11
plugins/coinpay/README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# CoinPay Plugin
|
||||
|
||||
CoinPay is the default CommandBoard.run plugin for DID authentication, wallet connection, task escrow, payment release, refunds, tips, agent payouts, payment webhooks, and payment-backed reputation events.
|
||||
|
||||
Required environment:
|
||||
|
||||
```txt
|
||||
COINPAY_API_URL
|
||||
COINPAY_API_KEY
|
||||
COINPAY_WEBHOOK_SECRET
|
||||
```
|
||||
18
plugins/coinpay/package.json
Normal file
18
plugins/coinpay/package.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "@logicsrc/plugin-coinpay",
|
||||
"version": "0.1.0",
|
||||
"description": "Default CommandBoard.run DID, wallet, payment, and escrow plugin.",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
33
plugins/coinpay/src/index.ts
Normal file
33
plugins/coinpay/src/index.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import type { PluginDefinition } from "@logicsrc/plugin-core";
|
||||
import { coinPayManifest } from "./manifest.js";
|
||||
|
||||
export const coinPayPlugin: PluginDefinition = {
|
||||
manifest: coinPayManifest,
|
||||
configDefaults: {
|
||||
enabled: true,
|
||||
default_payment_provider: true,
|
||||
default_identity_provider: true,
|
||||
api_url: "${COINPAY_API_URL}",
|
||||
api_key: "${COINPAY_API_KEY}",
|
||||
webhook_secret: "${COINPAY_WEBHOOK_SECRET}"
|
||||
},
|
||||
routes: [
|
||||
{ method: "POST", path: "/api/plugins/coinpay/did/auth", capability: "did.auth" },
|
||||
{ method: "POST", path: "/api/plugins/coinpay/escrows", capability: "escrow.create" },
|
||||
{ method: "POST", path: "/api/plugins/coinpay/webhooks/payment-status", capability: "webhook.payment_status" }
|
||||
],
|
||||
events: [
|
||||
{ event: "task.approved", capability: "escrow.release" },
|
||||
{ event: "payment.released", capability: "reputation.payment_event" }
|
||||
],
|
||||
permissions: [
|
||||
"payments:read",
|
||||
"payments:request",
|
||||
"payments:release",
|
||||
"escrows:create",
|
||||
"escrows:refund"
|
||||
],
|
||||
tuiPanels: [{ id: "coinpay-status", title: "CoinPay" }]
|
||||
};
|
||||
|
||||
export { coinPayManifest };
|
||||
23
plugins/coinpay/src/manifest.ts
Normal file
23
plugins/coinpay/src/manifest.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import type { PluginManifest } from "@logicsrc/plugin-core";
|
||||
|
||||
export const coinPayManifest: PluginManifest = {
|
||||
id: "coinpay",
|
||||
name: "CoinPay",
|
||||
version: "1.0.0",
|
||||
type: ["payment", "identity", "escrow"],
|
||||
default: true,
|
||||
capabilities: [
|
||||
"did.auth",
|
||||
"wallet.connect",
|
||||
"payment.request",
|
||||
"payment.send",
|
||||
"escrow.create",
|
||||
"escrow.fund",
|
||||
"escrow.release",
|
||||
"escrow.refund",
|
||||
"webhook.payment_status",
|
||||
"reputation.payment_event"
|
||||
],
|
||||
commands: ["wallet", "escrow", "pay", "tip"],
|
||||
env: ["COINPAY_API_URL", "COINPAY_API_KEY", "COINPAY_WEBHOOK_SECRET"]
|
||||
};
|
||||
8
plugins/coinpay/tsconfig.json
Normal file
8
plugins/coinpay/tsconfig.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
11
plugins/sh1pt/README.md
Normal file
11
plugins/sh1pt/README.md
Normal 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
|
||||
```
|
||||
18
plugins/sh1pt/package.json
Normal file
18
plugins/sh1pt/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
40
plugins/sh1pt/src/index.ts
Normal file
40
plugins/sh1pt/src/index.ts
Normal 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 };
|
||||
23
plugins/sh1pt/src/manifest.ts
Normal file
23
plugins/sh1pt/src/manifest.ts
Normal 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"]
|
||||
};
|
||||
8
plugins/sh1pt/tsconfig.json
Normal file
8
plugins/sh1pt/tsconfig.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
11
plugins/ugig/README.md
Normal file
11
plugins/ugig/README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# uGig Plugin
|
||||
|
||||
uGig is the default CommandBoard.run plugin for jobs, gigs, candidates, agents, marketplace publishing, bid sync, and reputation sync.
|
||||
|
||||
Required environment:
|
||||
|
||||
```txt
|
||||
UGIG_API_URL
|
||||
UGIG_API_KEY
|
||||
UGIG_WEBHOOK_SECRET
|
||||
```
|
||||
18
plugins/ugig/package.json
Normal file
18
plugins/ugig/package.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "@logicsrc/plugin-ugig",
|
||||
"version": "0.1.0",
|
||||
"description": "Default CommandBoard.run jobs, gigs, talent, and marketplace plugin.",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
27
plugins/ugig/src/index.ts
Normal file
27
plugins/ugig/src/index.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import type { PluginDefinition } from "@logicsrc/plugin-core";
|
||||
import { uGigManifest } from "./manifest.js";
|
||||
|
||||
export const uGigPlugin: PluginDefinition = {
|
||||
manifest: uGigManifest,
|
||||
configDefaults: {
|
||||
enabled: true,
|
||||
default_jobs_provider: true,
|
||||
api_url: "${UGIG_API_URL}",
|
||||
api_key: "${UGIG_API_KEY}",
|
||||
webhook_secret: "${UGIG_WEBHOOK_SECRET}",
|
||||
default_board: "/gigs"
|
||||
},
|
||||
routes: [
|
||||
{ method: "GET", path: "/api/plugins/ugig/jobs", capability: "jobs.import" },
|
||||
{ method: "POST", path: "/api/plugins/ugig/gigs", capability: "jobs.publish" },
|
||||
{ method: "POST", path: "/api/plugins/ugig/webhooks/gigs-sync", capability: "gigs.sync" }
|
||||
],
|
||||
events: [
|
||||
{ event: "task.created", capability: "tasks.publish_to_marketplace" },
|
||||
{ event: "task.approved", capability: "reputation.sync" }
|
||||
],
|
||||
permissions: ["jobs:read", "jobs:publish", "gigs:sync", "reputation:sync"],
|
||||
tuiPanels: [{ id: "ugig-status", title: "uGig Jobs" }]
|
||||
};
|
||||
|
||||
export { uGigManifest };
|
||||
21
plugins/ugig/src/manifest.ts
Normal file
21
plugins/ugig/src/manifest.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { PluginManifest } from "@logicsrc/plugin-core";
|
||||
|
||||
export const uGigManifest: PluginManifest = {
|
||||
id: "ugig",
|
||||
name: "uGig",
|
||||
version: "1.0.0",
|
||||
type: ["jobs", "gigs", "marketplace"],
|
||||
default: true,
|
||||
capabilities: [
|
||||
"jobs.import",
|
||||
"jobs.publish",
|
||||
"gigs.sync",
|
||||
"candidates.link",
|
||||
"agents.link",
|
||||
"tasks.publish_to_marketplace",
|
||||
"bids.sync",
|
||||
"reputation.sync"
|
||||
],
|
||||
commands: ["jobs", "gigs", "publish"],
|
||||
env: ["UGIG_API_URL", "UGIG_API_KEY", "UGIG_WEBHOOK_SECRET"]
|
||||
};
|
||||
8
plugins/ugig/tsconfig.json
Normal file
8
plugins/ugig/tsconfig.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "dist"
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue