@minus-ai/create-skill 0.1.0-beta.14 → 0.1.0-beta.15
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/index.mjs +7 -5
- package/package.json +1 -1
- package/templates/root-package.json.tpl +3 -6
package/index.mjs
CHANGED
|
@@ -601,9 +601,11 @@ ${templateDocs[inputType] || templateDocs.custom}
|
|
|
601
601
|
|
|
602
602
|
写代码前必须先了解 SDK 提供的能力,优先使用 SDK 已有的组件和方法,不要手写。
|
|
603
603
|
|
|
604
|
+
⛔ 下面凡是 \`${platformUrl}/runtime/...\` 的远程文档,**一律用 \`curl -sSL '<url>'\` 抓取,不要用 WebFetch**:平台文档是 http + 非标准端口地址,WebFetch 连不上(TCP 层 ECONNREFUSED,与 http/https 无关),会把可达的文档误判成"读不到"而停止写代码。\`curl -sSL\` 走系统网络栈并自动跟随重定向,是唯一可靠取法;只有 \`curl\` 真的失败(连不上 / 非 2xx)才说明文档不可达。
|
|
605
|
+
|
|
604
606
|
### 开发手册
|
|
605
|
-
|
|
606
|
-
-
|
|
607
|
+
写前端代码前,用 curl 抓取以下开发手册:
|
|
608
|
+
- \`curl -sSL '${platformUrl}/runtime/frontend-guide/doc.md'\`
|
|
607
609
|
- 手册包含:前后端数据契约(StepOutcome → StepRenderCtx)、Widget 选型与用法(defineWidgetStep、内置 Interactive/Display Widget)、自定义 Widget 开发、多语言接入。
|
|
608
610
|
|
|
609
611
|
### 后端 SDK 参考
|
|
@@ -612,9 +614,9 @@ ${templateDocs[inputType] || templateDocs.custom}
|
|
|
612
614
|
- \`PipelineContext\`:读 \`.venv/**/minus_ai_sdk/pipeline/context.py\`
|
|
613
615
|
|
|
614
616
|
### 前端 SDK 参考
|
|
615
|
-
@minus/* 包通过平台 CDN
|
|
616
|
-
- Widget
|
|
617
|
-
-
|
|
617
|
+
@minus/* 包通过平台 CDN 加载,本地无源码。写前端代码前,用 curl 抓取以下文档了解可用 API:
|
|
618
|
+
- Widget 框架:\`curl -sSL '${platformUrl}/runtime/widget-framework/docs.md'\`
|
|
619
|
+
- 平台组件:\`curl -sSL '${platformUrl}/runtime/platform-widgets/docs.md'\`
|
|
618
620
|
|
|
619
621
|
修改前端代码后,同步更新 \`frontend/src/locales/\` 下的多语言文件。
|
|
620
622
|
|
package/package.json
CHANGED
|
@@ -12,15 +12,12 @@
|
|
|
12
12
|
},
|
|
13
13
|
"workspaces": ["frontend"],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"dev": "minus-dev
|
|
16
|
-
"dev:backend": "minus-dev
|
|
17
|
-
"dev:win": "minus-dev --port {{port}}",
|
|
18
|
-
"dev:win:backend": "minus-dev --port {{port}} --backend-only",
|
|
15
|
+
"dev": "minus-dev --port {{port}}",
|
|
16
|
+
"dev:backend": "minus-dev --port {{port}} --backend-only",
|
|
19
17
|
"build": "cd frontend && pnpm run build",
|
|
20
18
|
"test": ".venv/bin/pytest tests"
|
|
21
19
|
},
|
|
22
20
|
"devDependencies": {
|
|
23
|
-
"@minus-ai/dev-vite-plugin": "^0.1.0-beta.14"
|
|
24
|
-
"concurrently": "^9.1.2"
|
|
21
|
+
"@minus-ai/dev-vite-plugin": "^0.1.0-beta.14"
|
|
25
22
|
}
|
|
26
23
|
}
|