draftgo-cli 2.0.9 → 3.0.1
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 +6 -0
- package/package.json +1 -1
- package/resources/skill/SKILL.md +74 -1378
- package/resources/skill/core/architecture.md +91 -0
- package/resources/skill/core/modules.md +54 -0
- package/resources/skill/practices/anti-patterns.md +70 -0
- package/resources/skill/practices/best-practices.md +41 -0
- package/resources/skill/practices/dev-declaration.md +94 -0
- package/resources/skill/push/SKILL.md +32 -1
- package/resources/skill/quickref/api-endpoints.md +130 -0
- package/resources/skill/quickref/api.json +17675 -0
- package/resources/skill/quickref/app-api.md +110 -0
- package/resources/skill/quickref/dg-components.md +198 -0
- package/resources/skill/rules/frontend.md +129 -596
- package/resources/skill/scripts/draftgo_delete.py +151 -0
- package/resources/skill/scripts/draftgo_push.py +80 -6
- package/resources/skill/specs/data.md +108 -0
- package/resources/skill/specs/runtime.md +98 -0
- package/resources/skill/specs/security.md +74 -0
- package/resources/skill/specs/ui-protocol.md +68 -0
- package/src/commands/delete.js +86 -0
- package/src/commands/help.js +7 -0
- package/src/commands/new.js +183 -0
- package/src/commands/sync.js +4 -1
- package/src/index.js +6 -0
package/README.md
CHANGED
|
@@ -110,6 +110,12 @@ CLI 随包分发的 DraftGo skill 会同步基座 API 约定。集合写入统
|
|
|
110
110
|
- 批量更新:`PATCH /api/<resource>/batch`,请求体为带 `id` 的对象数组。
|
|
111
111
|
- 动态 DB 因为资源带 `type`,批量更新路径是 `PATCH /api/db/{type}/batch`。
|
|
112
112
|
|
|
113
|
+
前端资源约定:
|
|
114
|
+
|
|
115
|
+
- DraftGo 基座内置 SVG 图标库,运行时路径为 `/assets/icons/{name}.svg`。
|
|
116
|
+
- 图标文件统一使用 `kebab-case.svg` 命名;完整映射见 `/assets/icons/manifest.json`。
|
|
117
|
+
- 页面或导航栏需要单色图标时,优先用 CSS mask + `currentColor`,可自动适配深浅主题。
|
|
118
|
+
|
|
113
119
|
动态 DB SDK 也提供 `sdk.db.create_many(...)` 与 `sdk.db.update_many(...)`,用于脚本内批量写入。
|
|
114
120
|
|
|
115
121
|
AIHub Agent 用户选模型约定:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "draftgo-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Install and manage the DraftGo skill across AI coding agents (Claude Code, Codex, Cursor, Windsurf, Antigravity, Copilot, Gemini, Kiro).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"draftgo": "bin/draftgo.js"
|