@actiondock/builder 2.12.0 → 2.13.0

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.
@@ -141,6 +141,8 @@ if (argv.includes("-h") || argv.includes("--help") || argv[0] === "help") {
141
141
  console.log(" <cmd> list [--json] List available actions");
142
142
  console.log(" <cmd> describe <id> [--json] Show action details and schemas");
143
143
  console.log(" <cmd> run <id> [--input '<json>'] Execute action with JSON input");
144
+ console.log(" <cmd> run <id> [--stdin-field <field>] [-- <assignments...>]");
145
+ console.log(" Bind raw stdin text to an input field");
144
146
  console.log(" <cmd> config list/get/set/delete Manage package configuration");
145
147
  console.log(" <cmd> state list/get/set/delete Manage shared state store");
146
148
  console.log("\\nGlobal options:");
@@ -67,12 +67,16 @@ ${describeCmd}
67
67
 
68
68
  # 调用语法格式(其中 ASSIGNMENT 根据 describe 查阅的参数契约提供)
69
69
  ${runCmd} -- ASSIGNMENT...
70
+
71
+ # 管道原始文本绑定(FIELD 为 describe 查阅的字符串字段名)
72
+ printf '整段原始文本' | ${runCmd} --stdin-field FIELD
70
73
  \`\`\`
71
74
 
72
- 输入模式选择(三种输入模式严格互斥,仅选其一):
75
+ 输入模式选择(原有三种输入方式严格互斥,仅选其一;\`--stdin-field\` 原始文本绑定可与扁平赋值组合):
73
76
 
74
77
  - 扁平赋值为默认首选:参数项少且结构简单时,直接以 \`-- key="value" count:=10\` 形式内联传递。
75
78
  - 文件输入用于复杂参数:当参数含深层嵌套结构、大段文本或内容易被终端引号转义破坏时,将完整 JSON 写入文件并通过 \`--input-file input.json\` 传递。
79
+ - 管道原始文本绑定:当只需向单个字符串字段(如 text、content、csv、diff)传入整段原始文本时,使用 \`--stdin-field <field>\` 绑定 stdin 正文,正文保持原样不解析类型,可与扁平赋值补充其他字段。
76
80
 
77
81
  输出模式选择(避免浪费上下文 token):
78
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actiondock/builder",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "ActionDock Build Planner, distribution packaging, and Skill exporter",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "test": "node ../../scripts/run-tests.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@actiondock/core": "^2.12.0",
33
- "@actiondock/sdk": "^2.12.0"
32
+ "@actiondock/core": "^2.13.0",
33
+ "@actiondock/sdk": "^2.13.0"
34
34
  },
35
35
  "keywords": [
36
36
  "actiondock",