@minus-ai/create-skill 0.1.0-beta.17 → 0.1.0-beta.19
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 +8 -4
- package/package.json +1 -1
- package/templates/asin/pipeline.py.tpl +1 -0
- package/templates/custom/pipeline.py.tpl +1 -0
- package/templates/default/pipeline.py.tpl +2 -2
- package/templates/file/pipeline.py.tpl +1 -0
- package/templates/keyword/pipeline.py.tpl +1 -0
- package/templates/pipeline.py.tpl +1 -0
- package/templates/.minus/session-counter +0 -1
- package/templates/custom/.minus/session-counter +0 -1
package/index.mjs
CHANGED
|
@@ -603,10 +603,10 @@ ${templateDocs[inputType] || templateDocs.custom}
|
|
|
603
603
|
|
|
604
604
|
⛔ 下面凡是 \`${platformUrl}/runtime/...\` 的远程文档,**一律用 \`curl -sSL '<url>'\` 抓取,不要用 WebFetch**:平台文档是 http + 非标准端口地址,WebFetch 连不上(TCP 层 ECONNREFUSED,与 http/https 无关),会把可达的文档误判成"读不到"而停止写代码。\`curl -sSL\` 走系统网络栈并自动跟随重定向,是唯一可靠取法;只有 \`curl\` 真的失败(连不上 / 非 2xx)才说明文档不可达。
|
|
605
605
|
|
|
606
|
-
###
|
|
606
|
+
### 开发手册(索引)
|
|
607
607
|
写前端代码前,用 curl 抓取以下开发手册:
|
|
608
608
|
- \`curl -sSL '${platformUrl}/runtime/frontend-guide/doc.md'\`
|
|
609
|
-
-
|
|
609
|
+
索引按任务场景列出子文档路径(如 \`contract.md\`、\`step-summary.md\`)。根据当前任务 curl 对应子文档,不要一次性加载全部。
|
|
610
610
|
|
|
611
611
|
### 后端 SDK 参考
|
|
612
612
|
写 pipeline.py 前,读以下本地文件了解可用 API:
|
|
@@ -615,8 +615,12 @@ ${templateDocs[inputType] || templateDocs.custom}
|
|
|
615
615
|
|
|
616
616
|
### 前端 SDK 参考
|
|
617
617
|
@minus/* 包通过平台 CDN 加载,本地无源码。写前端代码前,用 curl 抓取以下文档了解可用 API:
|
|
618
|
-
- Widget
|
|
619
|
-
|
|
618
|
+
- Widget 框架(索引):\`curl -sSL '${platformUrl}/runtime/widget-framework/docs.md'\`
|
|
619
|
+
索引按导出分类列出子文档路径(如 \`docs--step.md\`、\`docs--widget.md\`)。根据你要用的能力 curl 对应子文档,不要一次性加载全部。
|
|
620
|
+
- 平台组件(索引):\`curl -sSL '${platformUrl}/runtime/platform-widgets/docs.md'\`
|
|
621
|
+
索引列出所有组件摘要和子文档路径(如 \`docs--chart.md\`、\`docs--thumbgrid.md\`)。根据你要用的组件 curl 对应子文档,不要一次性加载全部。
|
|
622
|
+
- 工具函数(索引):\`curl -sSL '${platformUrl}/runtime/platform-utils/docs.md'\`
|
|
623
|
+
数值格式化工具(千分位、百分比、价格、评分等),直接 \`import { fmtNum, fmtPct, fmtPrice } from '@minus/platform-utils'\` 使用。函数增多后会拆为子文档,届时按索引 curl 对应子文档。
|
|
620
624
|
|
|
621
625
|
修改前端代码后,同步更新 \`frontend/src/locales/\` 下的多语言文件。
|
|
622
626
|
|
package/package.json
CHANGED
|
@@ -4,5 +4,5 @@ from minus_ai_sdk import Pipeline, PipelineContext, StepOutcome
|
|
|
4
4
|
class {{className}}(Pipeline):
|
|
5
5
|
|
|
6
6
|
async def step_1(self, ctx: PipelineContext) -> StepOutcome:
|
|
7
|
-
# TODO:
|
|
8
|
-
return StepOutcome.complete(payload={"text": "
|
|
7
|
+
# TODO: 实现「步骤1」的逻辑
|
|
8
|
+
return StepOutcome.complete(payload={"text": "步骤1完成"})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3
|