@eigenpal/cli 0.4.10 → 0.4.11

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.
@@ -118,7 +118,7 @@ fall back to `workflow execution run` against the server.
118
118
 
119
119
  ```bash
120
120
  eigenpal workflow step exec transform.script \
121
- --config-json '{"code":"return items.reduce((s,i)=>s+i.v,0)"}' \
121
+ --config-json '{"function":"function script(items) { return items.reduce((s,i)=>s+i.v,0); }"}' \
122
122
  --inputs items=@items.json
123
123
  # 3
124
124
  ```
@@ -15,8 +15,10 @@ steps:
15
15
  with:
16
16
  inputs:
17
17
  text: '{{ input.text }}'
18
- code: |
19
- return { length: text.length, original: text };
18
+ function: |
19
+ function script(text) {
20
+ return { length: text.length, original: text };
21
+ }
20
22
  outputSchema:
21
23
  type: object
22
24
  properties: