diff --git a/.antigravity-plugin/plugin.json b/.antigravity-plugin/plugin.json index 40d8873..c9957ad 100644 --- a/.antigravity-plugin/plugin.json +++ b/.antigravity-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "back4app", "displayName": "Back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "suggestedPrompts": [ "Deploy this folder to Back4app", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index b761b28..71a56a3 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "back4app", "displayName": "Back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "author": { "name": "Back4app", diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index fac9735..e09d2e9 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "author": { "name": "Back4app", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index a9cdc45..318ea08 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "author": { "name": "Back4app" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a339085..104918a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: ".kimi-plugin/plugin.json", ".antigravity-plugin/plugin.json", "gemini-extension.json", + "package.json", ] versions = {f: json.loads(pathlib.Path(f).read_text())["version"] for f in manifests} if len(set(versions.values())) != 1: diff --git a/.kimi-plugin/plugin.json b/.kimi-plugin/plugin.json index 493fbac..4fae8ad 100644 --- a/.kimi-plugin/plugin.json +++ b/.kimi-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "keywords": [ "back4app", diff --git a/.plugin/plugin.json b/.plugin/plugin.json index cb1b27a..e65dc33 100644 --- a/.plugin/plugin.json +++ b/.plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "author": { "name": "Back4app", diff --git a/README.md b/README.md index 09dd40d..62fd160 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Deploy anything that runs in a container, from web apps and websites to APIs and ## Supported tools -Claude Code, Claude (claude.ai, desktop, Cowork), Cursor, Codex, GitHub Copilot CLI, VS Code, Gemini CLI, Grok Build, Kimi Code and Antigravity. +Claude Code, Claude (claude.ai, desktop, Cowork), Cursor, Codex, GitHub Copilot CLI, VS Code, Gemini CLI, Grok Build, Kimi Code, Antigravity and DeepSeek Harness. ## Install @@ -27,7 +27,7 @@ Claude Code, Claude (claude.ai, desktop, Cowork), Cursor, Codex, GitHub Copilot npx plugins add back4app/back4app-plugin ``` -That's it: the plugin installs the Back4app MCP server and the Web Deployment skill. For Gemini CLI, run `gemini extensions install https://github.com/back4app/back4app-plugin`. +That's it: the plugin installs the Back4app MCP server and the Web Deployment skill. For Gemini CLI, run `gemini extensions install https://github.com/back4app/back4app-plugin`. For DeepSeek Harness, run `dsh plugin --profile tui add github:back4app/back4app-plugin`: it installs the skill, which deploys with the Back4app CLI. ## Back4app MCP server diff --git a/cordis.patch.yml b/cordis.patch.yml new file mode 100644 index 0000000..8a06eac --- /dev/null +++ b/cordis.patch.yml @@ -0,0 +1,4 @@ +# DeepSeek Harness bundle: registers the back4app-web-deployment skill. +- insert: + - id: back4app + name: back4app diff --git a/gemini-extension.json b/gemini-extension.json index b8fea14..525a806 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "back4app", - "version": "0.1.22", + "version": "0.1.23", "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", "mcpServers": { "back4app": { diff --git a/index.js b/index.js new file mode 100644 index 0000000..1b4d36c --- /dev/null +++ b/index.js @@ -0,0 +1,58 @@ +// DeepSeek Harness plugin: registers the skills in ./skills on the harness skill registry. +import { readFileSync, readdirSync } from 'node:fs' +import { fileURLToPath } from 'node:url' +import { join } from 'node:path' + +const SKILLS_DIR = fileURLToPath(new URL('./skills/', import.meta.url)) +const PROVIDER = 'back4app' +const RANK = 600 +const INVOCATION = { modelInvocable: true, userInvocable: true } + +export const name = 'back4app' +export const inject = ['skills'] + +export function apply(ctx) { + readSkills() + ctx.skills.registerProvider(() => ({ + name: PROVIDER, + async list(options) { + options?.signal?.throwIfAborted() + return readSkills().map(({ content, ...candidate }) => ({ ...candidate, rank: RANK, locator: candidate.path })) + }, + async get(candidate, options) { + options?.signal?.throwIfAborted() + return readSkills().find((skill) => skill.name === candidate.name) + }, + })) +} + +function readSkills() { + return readdirSync(SKILLS_DIR, { withFileTypes: true }) + .filter((entry) => entry.isDirectory()) + .map((entry) => readSkill(join(SKILLS_DIR, entry.name))) +} + +function readSkill(dir) { + const path = join(dir, 'SKILL.md') + const raw = readFileSync(path, 'utf8').replace(/\r\n/g, '\n') + const match = /^---\n([\s\S]*?)\n---\n/.exec(raw) + if (!match) throw new Error(`back4app: ${path} has no frontmatter`) + const fields = {} + for (const line of match[1].split('\n')) { + const at = line.indexOf(': ') + if (at > 0) fields[line.slice(0, at).trim()] = line.slice(at + 2).trim() + } + if (!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(fields.name ?? '') || !fields.description) { + throw new Error(`back4app: ${path} needs a kebab-case name and a description`) + } + return { + name: fields.name, + description: fields.description, + invocation: INVOCATION, + provider: PROVIDER, + source: 'bundled', + resourceBase: { kind: 'directory', path: dir + '/' }, + path, + content: raw.slice(match[0].length).trim(), + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..1358842 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "back4app", + "version": "0.1.23", + "description": "Deploy anything that runs in a container, from web apps and websites to APIs and backends, and get a live HTTPS address. No account needed to start.", + "type": "module", + "main": "index.js", + "files": [ + "index.js", + "cordis.patch.yml", + "skills" + ], + "dsh": { + "bundle": { + "patch": "./cordis.patch.yml" + } + }, + "keywords": [ + "dsh-plugin", + "deepseek-harness", + "back4app", + "deploy", + "hosting", + "agent-skills" + ], + "homepage": "https://www.back4app.com", + "repository": "https://github.com/back4app/back4app-plugin", + "license": "MIT", + "author": "Back4app " +}