@dola-dev/cli 0.0.0-stage → 1.0.0-canary-cda689bea-20261203083131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2
- package/bin/run.js +11 -0
- package/dist/648.js +1 -0
- package/dist/995.js +75 -0
- package/dist/995.js.LICENSE.txt +13 -0
- package/dist/archive.js +1 -0
- package/dist/categories.js +1 -0
- package/dist/command.js +1 -0
- package/dist/command~1.js +1 -0
- package/dist/command~2.js +1 -0
- package/dist/command~3.js +29 -0
- package/dist/command~4.js +1 -0
- package/dist/command~5.js +2 -0
- package/dist/command~6.js +1 -0
- package/dist/draft.js +1 -0
- package/dist/files.js +2 -0
- package/dist/index.d.ts +1198 -0
- package/dist/index.js +1 -0
- package/dist/list.js +1 -0
- package/dist/main.d.ts +1188 -0
- package/dist/main.js +1 -0
- package/dist/mcp-apps-inspector.js +20 -0
- package/dist/multipart-parser.js +2 -0
- package/dist/open.js +2 -0
- package/dist/personal.js +2 -0
- package/dist/plugin.js +3 -0
- package/dist/plugin.js.LICENSE.txt +58 -0
- package/dist/progress.js +3 -0
- package/dist/project-config.js +1 -0
- package/dist/publication.js +1 -0
- package/dist/remote.js +1 -0
- package/dist/resources.js +1 -0
- package/dist/rslib-runtime.js +1 -0
- package/dist/session.js +2 -0
- package/dist/session.js.LICENSE.txt +1 -0
- package/dist/skills/dola-plugin-creator/SKILL.md +59 -0
- package/dist/skills/dola-plugin-creator/examples/todo-plugin.md +96 -0
- package/dist/skills/dola-plugin-creator/references/cli/development.md +55 -0
- package/dist/skills/dola-plugin-creator/references/cli/project.md +99 -0
- package/dist/skills/dola-plugin-creator/references/cli/release.md +135 -0
- package/dist/skills/dola-plugin-creator/references/guides/mcp-apps-ui.md +21 -0
- package/dist/skills/dola-plugin-creator/references/protocols/business-skills.md +35 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-apps-integration.md +35 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-apps-runtime.md +15 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-auth.md +17 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-events.md +10 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-json.md +23 -0
- package/dist/skills/dola-plugin-creator/references/protocols/mcp-profile-search.md +14 -0
- package/dist/skills/dola-plugin-creator/references/protocols/plugin-json.md +52 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/mcp-apps.LICENSE +216 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/mcp-apps.mdx +1679 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/mcp-events.LICENSE +216 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/mcp-events.md +1231 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/standard-webhooks.LICENSE +201 -0
- package/dist/skills/dola-plugin-creator/references/protocols/specs/standard-webhooks.md +349 -0
- package/dist/status.js +1 -0
- package/dist/storage.js +2 -0
- package/dist/templates/personal/README.md.template +9 -0
- package/dist/templates/standard/AGENTS.md +5 -0
- package/dist/templates/standard/README.md.template +9 -0
- package/dist/templates/standard/com.doubao/assets/icon.png +0 -0
- package/dist/templates/standard/plugin.json.template +10 -0
- package/dist/uninstall.js +1 -0
- package/dist/versions.js +1 -0
- package/dist/versions~1.js +1 -0
- package/dist/web/index.html +1 -0
- package/dist/web/sandbox-proxy.html +101 -0
- package/dist/web/static/css/index.08fbe1ddcc.css +1 -0
- package/dist/web/static/js/155.747f5232dc.js +69 -0
- package/dist/web/static/js/async/970.86106314b5.js +1 -0
- package/dist/web/static/js/index.718a11f092.js +5 -0
- package/dist/web/static/js/lib-react.00514652bf.js +2 -0
- package/dist/web/static/js/lib-react.00514652bf.js.LICENSE.txt +39 -0
- package/dist/xdg-open +1267 -0
- package/package.json +55 -3
package/README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dola-dev/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI for developing, testing, syncing, and publishing Dola Standard Protocol Plugins (Skills, MCP Servers, and MCP Apps). Requires Node.js >=22.13.0.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install -g @dola-dev/cli
|
|
7
|
+
dbx auth login
|
|
8
|
+
dbx init my-plugin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Development Skill
|
|
12
|
+
|
|
13
|
+
`@dola-dev/cli` bundles the `dola-plugin-creator` Skill for AI coding agents.
|
|
14
|
+
|
|
15
|
+
After global installation, locate `@dola-dev/cli/dist/skills/dola-plugin-creator/SKILL.md` under `npm root -g`. Inside an existing plugin project, run `dbx skills` to configure `.agents/skills/dola-plugin-creator/SKILL.md`.
|
|
16
|
+
|
|
17
|
+
## Plugin Development
|
|
18
|
+
|
|
19
|
+
- `dbx init my-plugin`: create a Standard Protocol Plugin project (`--source personal|store|enterprise` in scripts or CI).
|
|
20
|
+
- `dbx list --source <personal|store|enterprise>`: list plugins you created (`--json` for machine-readable output).
|
|
21
|
+
- `dbx pull --id <id> --source <personal|store|enterprise>`: pull an existing plugin into an empty directory, or sync a personal plugin incrementally.
|
|
22
|
+
- **Store / Enterprise**: pulls the latest published version by default; pass `--draft` to pull the most recently saved version (including unpublished drafts), or `--force` to overwrite an existing directory.
|
|
23
|
+
- **Personal**: supports initial pull and incremental sync (without `--draft`). Only plugin protocol paths (`plugin.json`, `mcp.json`, `skills/`, `com.dola/`) are managed. Local edits trigger `.dbx/remote` snapshot protection; confirm overwrite with `dbx pull --force` or keep local merged files with `dbx pull --resolved`.
|
|
24
|
+
- `dbx config list`: inspect the project's publication scope, resource type, and `resourceId`.
|
|
25
|
+
- `dbx dev` / `dbx dev --once`: package and sync a Store or Enterprise plugin's Skill / MCP development bundle to your Dola account. (Personal plugins use `dbx upload` directly.)
|
|
26
|
+
- `dbx inspect --mcp-server [endpoint]`: launch the built-in Inspector UI for debugging MCP Servers and MCP Apps.
|
|
27
|
+
- `dbx uninstall`: uninstall the Store or Enterprise development bundle from your Dola account.
|
|
28
|
+
- `dbx upload`: save a new version (Personal) or upload and save a draft version (Store / Enterprise).
|
|
29
|
+
- `dbx status`: check project binding, local/remote versions, and review status.
|
|
30
|
+
- `dbx versions`: list Store / Enterprise version history and review states.
|
|
31
|
+
- `dbx audit` / `dbx cancel-audit` / `dbx categories`: submit a Store or Enterprise draft for review, withdraw a pending review, or query review categories.
|
|
32
|
+
- `dbx auth login` / `dbx auth status` / `dbx auth logout`: manage Dola Open Platform authentication (`--begin` and `--complete <device-code>` for non-interactive device login).
|
|
33
|
+
|
|
34
|
+
Run `dbx --help` or `dbx <command> --help` for full usage details.
|
package/bin/run.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
4
|
+
|
|
5
|
+
import('../dist/main.js')
|
|
6
|
+
.then(({ main }) => main())
|
|
7
|
+
.catch((error) => {
|
|
8
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
9
|
+
process.stderr.write(`${stripVTControlCharacters(message)}\n`);
|
|
10
|
+
process.exitCode = 1;
|
|
11
|
+
});
|
package/dist/648.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t;import e from"node:process";function i(){let{env:t}=e,{TERM:i,TERM_PROGRAM:s}=t;return"win32"!==e.platform?"linux"!==i:!!t.WT_SESSION||!!t.TERMINUS_SUBLIME||"{cmd::Cmder}"===t.ConEmuTask||"Terminus-Sublime"===s||"vscode"===s||"xterm-256color"===i||"alacritty"===i||"rxvt-unicode"===i||"rxvt-unicode-256color"===i||"JetBrains-JediTerm"===t.TERMINAL_EMULATOR}let s=[];s.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&s.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&s.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");let r=t=>!!t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on,o=Symbol.for("signal-exit emitter"),l=globalThis,n=Object.defineProperty.bind(Object);class c{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(l[o])return l[o];n(l,o,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,e){this.listeners[t].push(e)}removeListener(t,e){let i=this.listeners[t],s=i.indexOf(e);-1!==s&&(0===s&&1===i.length?i.length=0:i.splice(s,1))}emit(t,e,i){if(this.emitted[t])return!1;this.emitted[t]=!0;let s=!1;for(let r of this.listeners[t])s=!0===r(e,i)||s;return"exit"===t&&(s=this.emit("afterExit",e,i)||s),s}}class h{}let a=globalThis.process,{onExit:p,load:m,unload:u}=(t=r(a)?new class extends h{#t="win32"===a.platform?"SIGINT":"SIGHUP";#e=new c;#i;#s;#r;#o={};#l=!1;constructor(t){for(let e of(super(),this.#i=t,this.#o={},s))this.#o[e]=()=>{let i=this.#i.listeners(e),{count:s}=this.#e;if("object"==typeof t.__signal_exit_emitter__&&"number"==typeof t.__signal_exit_emitter__.count&&(s+=t.__signal_exit_emitter__.count),i.length===s){this.unload();let i=this.#e.emit("exit",null,e),s="SIGHUP"===e?this.#t:e;i||t.kill(t.pid,s)}};this.#r=t.reallyExit,this.#s=t.emit}onExit(t,e){if(!r(this.#i))return()=>{};!1===this.#l&&this.load();let i=e?.alwaysLast?"afterExit":"exit";return this.#e.on(i,t),()=>{this.#e.removeListener(i,t),0===this.#e.listeners.exit.length&&0===this.#e.listeners.afterExit.length&&this.unload()}}load(){if(!this.#l){for(let t of(this.#l=!0,this.#e.count+=1,s))try{let e=this.#o[t];e&&this.#i.on(t,e)}catch(t){}this.#i.emit=(t,...e)=>this.#n(t,...e),this.#i.reallyExit=t=>this.#c(t)}}unload(){this.#l&&(this.#l=!1,s.forEach(t=>{let e=this.#o[t];if(!e)throw Error("Listener not defined for signal: "+t);try{this.#i.removeListener(t,e)}catch(t){}}),this.#i.emit=this.#s,this.#i.reallyExit=this.#r,this.#e.count-=1)}#c(t){return r(this.#i)?(this.#i.exitCode=t||0,this.#e.emit("exit",this.#i.exitCode,null),this.#r.call(this.#i,this.#i.exitCode)):0}#n(t,...e){let i=this.#s;if(!("exit"===t&&r(this.#i)))return i.call(this.#i,t,...e);{"number"==typeof e[0]&&(this.#i.exitCode=e[0]);let s=i.call(this.#i,t,...e);return this.#e.emit("exit",this.#i.exitCode,null),s}}}(a):new class extends h{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,i)=>t.onExit(e,i),load:()=>t.load(),unload:()=>t.unload()});export{i as isUnicodeSupported,p as onExit};
|