@powerformer/refly-cli 0.1.18 → 0.1.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/dist/bin/refly.js +220 -146
- package/dist/bin/refly.js.map +1 -1
- package/package.json +2 -1
- package/skill/references/node.md +2 -2
- package/skill/references/workflow.md +8 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerformer/refly-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Refly CLI - Command-line interface for Refly workflow orchestration",
|
|
5
5
|
"bin": {
|
|
6
6
|
"refly": "./dist/bin/refly.js"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"author": "Refly AI",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@refly/utils": "workspace:*",
|
|
26
27
|
"commander": "^12.1.0",
|
|
27
28
|
"form-data": "^4.0.1",
|
|
28
29
|
"gray-matter": "^4.0.3",
|
package/skill/references/node.md
CHANGED
|
@@ -48,7 +48,7 @@ Note: Use `--run-id` when you already have a specific run context; use `--workfl
|
|
|
48
48
|
## List Nodes in Workflow
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
refly workflow
|
|
51
|
+
refly workflow node list <workflowId> [options]
|
|
52
52
|
--include-edges # Include edge/connection info
|
|
53
53
|
--include-position # Include node coordinates
|
|
54
54
|
--include-metadata # Include full node metadata
|
|
@@ -57,7 +57,7 @@ refly workflow nodes <workflowId> [options]
|
|
|
57
57
|
## Get Single Node Information
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
refly workflow node <id> <nodeId> [options]
|
|
60
|
+
refly workflow node get <id> <nodeId> [options]
|
|
61
61
|
--include-connections # Include incoming/outgoing connections
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
### Management
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# Create workflow
|
|
9
|
-
refly workflow create [options]
|
|
10
|
-
--name <name> # Workflow name
|
|
11
|
-
--spec <json> # Workflow spec JSON
|
|
12
|
-
--description <desc> # Description
|
|
13
|
-
|
|
14
8
|
# Generate workflow from natural language
|
|
15
9
|
refly workflow generate [options]
|
|
16
10
|
--query <query> # Natural language description
|
|
@@ -30,14 +24,6 @@ refly workflow edit <workflowId> [options]
|
|
|
30
24
|
--toolsets <keys> # Toolset keys (comma-separated)
|
|
31
25
|
--auto-layout # Auto-layout nodes
|
|
32
26
|
|
|
33
|
-
# Patch workflow plan
|
|
34
|
-
refly workflow patch <planId> [options]
|
|
35
|
-
--ops <json> # Operations array
|
|
36
|
-
--ops-file <path> # Read ops from file
|
|
37
|
-
--update-title <title> # Shortcut: update title
|
|
38
|
-
--delete-task <taskId> # Shortcut: delete task
|
|
39
|
-
--delete-variable <varId> # Shortcut: delete variable
|
|
40
|
-
|
|
41
27
|
# Other management
|
|
42
28
|
refly workflow get <workflowId>
|
|
43
29
|
refly workflow delete <workflowId>
|
|
@@ -67,9 +53,9 @@ refly workflow abort <workflowId>
|
|
|
67
53
|
|
|
68
54
|
```bash
|
|
69
55
|
# List/get nodes
|
|
70
|
-
refly workflow
|
|
71
|
-
refly workflow node <id> <nodeId> [--include-connections]
|
|
72
|
-
refly workflow node
|
|
56
|
+
refly workflow node list <workflowId> [--include-edges] [--include-position] [--include-metadata]
|
|
57
|
+
refly workflow node get <id> <nodeId> [--include-connections]
|
|
58
|
+
refly workflow node output <id> <nodeId> [--include-tool-calls] [--raw]
|
|
73
59
|
|
|
74
60
|
# Run from node
|
|
75
61
|
refly workflow run node-start [options]
|
|
@@ -111,7 +97,7 @@ refly workflow run node-toolcall <callId> [--raw]
|
|
|
111
97
|
|
|
112
98
|
- `workflow run start` returns `runId` used by `workflow run get` and `workflow run node-detail`.
|
|
113
99
|
- `workflow run node-detail` returns `resultId` for action/tool lookups (see `node.md`).
|
|
114
|
-
- `workflow node
|
|
100
|
+
- `workflow node output` retrieves the actual execution output content of a node.
|
|
115
101
|
- Action results may include file IDs; use `file.md` to fetch/download.
|
|
116
102
|
|
|
117
103
|
## Node Output Command
|
|
@@ -120,16 +106,16 @@ Get the execution output content of a specific node:
|
|
|
120
106
|
|
|
121
107
|
```bash
|
|
122
108
|
# Using workflowId (gets output from latest run)
|
|
123
|
-
refly workflow node
|
|
109
|
+
refly workflow node output c-xxx <nodeId>
|
|
124
110
|
|
|
125
111
|
# Using runId (gets output from specific run)
|
|
126
|
-
refly workflow node
|
|
112
|
+
refly workflow node output we-xxx <nodeId>
|
|
127
113
|
|
|
128
114
|
# Include tool call details
|
|
129
|
-
refly workflow node
|
|
115
|
+
refly workflow node output <id> <nodeId> --include-tool-calls
|
|
130
116
|
|
|
131
117
|
# Get full content without truncation (default: 10KB limit)
|
|
132
|
-
refly workflow node
|
|
118
|
+
refly workflow node output <id> <nodeId> --raw
|
|
133
119
|
```
|
|
134
120
|
|
|
135
121
|
**ID Type Detection:**
|
|
@@ -144,35 +130,8 @@ refly workflow node-output <id> <nodeId> --raw
|
|
|
144
130
|
refly workflow generate --query "Parse PDF, summarize content, translate to Chinese"
|
|
145
131
|
```
|
|
146
132
|
|
|
147
|
-
```bash
|
|
148
|
-
refly workflow generate \
|
|
149
|
-
--query "Research topic, write article, export to markdown" \
|
|
150
|
-
--model-id <modelId> \
|
|
151
|
-
--locale en \
|
|
152
|
-
--timeout 300000
|
|
153
|
-
```
|
|
154
|
-
|
|
155
133
|
```bash
|
|
156
134
|
refly workflow generate \
|
|
157
135
|
--query "Process documents from input folder" \
|
|
158
136
|
--variables '[{"variableId":"v1","name":"inputFolder","variableType":"string"}]'
|
|
159
137
|
```
|
|
160
|
-
|
|
161
|
-
## Workflow Spec Schema (Simplified)
|
|
162
|
-
|
|
163
|
-
`workflow create` expects a simplified spec (no `version` or `metadata`).
|
|
164
|
-
Supported node types: `skill`, `agent` (start node is auto-created).
|
|
165
|
-
|
|
166
|
-
```json
|
|
167
|
-
{
|
|
168
|
-
"nodes": [
|
|
169
|
-
{
|
|
170
|
-
"id": "string",
|
|
171
|
-
"type": "skill",
|
|
172
|
-
"query": "string",
|
|
173
|
-
"toolsetKeys": ["string"],
|
|
174
|
-
"dependsOn": ["string"]
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
```
|