@powerformer/refly-cli 0.1.13 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerformer/refly-cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
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,9 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "commander": "^12.1.0",
26
+ "form-data": "^4.0.1",
27
+ "gray-matter": "^4.0.3",
28
+ "mime": "^4.0.4",
26
29
  "zod": "^3.23.8",
27
30
  "open": "^10.1.0"
28
31
  },
package/skill/SKILL.md CHANGED
@@ -24,34 +24,37 @@ description: |
24
24
  refly status
25
25
  refly login
26
26
  refly skill list
27
- refly skill run <name> --input '<json>'
27
+ refly skill installations
28
+ refly skill run <installationId> --input '<json>'
28
29
  ```
29
30
 
31
+ Tip: Get `installationId` from `refly skill installations` after installing a skill.
32
+
30
33
  ## Directory Structure
31
34
 
32
35
  ```
33
36
  ~/.claude/skills/refly/
34
- ├── SKILL.md # Base skill (this file)
35
- ├── registry.json # Routing registry
36
- ├── references/ # Core CLI docs
37
- ├── workflow.md
38
- ├── node.md
39
- ├── file.md
40
- └── skill.md
41
- └── domain-skills/ # Domain skills (one directory per skill)
42
- └── <skill-name>/
43
- ├── skill.md # Entry file
44
- └── ... # Additional docs
37
+ |-- SKILL.md # Base skill (this file)
38
+ |-- registry.json # Routing registry
39
+ |-- references/ # Core CLI docs
40
+ | |-- workflow.md
41
+ | |-- node.md
42
+ | |-- file.md
43
+ | `-- skill.md
44
+ `-- domain-skills/ # Domain skills (one directory per skill)
45
+ `-- <skill-name>/
46
+ |-- skill.md # Entry file
47
+ `-- ... # Additional docs
45
48
  ```
46
49
 
47
50
  ## Routing
48
51
 
49
- User intent match domain skill (name/trigger/description) read domain skill `.md`
50
- execute via `refly skill run` return CLI-verified result.
52
+ User intent -> match domain skill (name/trigger/description) -> read domain skill `.md`
53
+ -> execute via `refly skill run` -> return CLI-verified result.
51
54
 
52
55
  ## References
53
56
 
54
- - `references/workflow.md`
55
- - `references/node.md`
56
- - `references/file.md`
57
- - `references/skill.md`
57
+ - `references/workflow.md` - Workflow command reference
58
+ - `references/node.md` - Node command reference
59
+ - `references/file.md` - File command reference
60
+ - `references/skill.md` - Customized Skill command reference
@@ -3,18 +3,30 @@
3
3
  ## File Commands
4
4
 
5
5
  ```bash
6
- refly file list
7
- refly file list --canvas-id <id>
8
- refly file get <fileId>
9
- refly file download <fileId> -o ./output.txt
6
+ # List files
7
+ refly file list [options]
8
+ --page <n> # Page number (default: 1)
9
+ --page-size <n> # Files per page (default: 20)
10
+ --canvas-id <id> # Filter by canvas ID
11
+ --result-id <id> # Filter by action result ID
12
+ --include-content # Include file content in response
13
+
14
+ # Get file details
15
+ refly file get <fileId> [options]
16
+ --no-content # Exclude file content
17
+
18
+ # Download file
19
+ refly file download <fileId> [options]
20
+ -o, --output <path> # Output path (defaults to original filename)
21
+
22
+ # Upload file(s)
23
+ refly file upload <path> [options]
24
+ --canvas-id <id> # Canvas ID (required)
25
+ --filter <ext> # Filter by extensions (e.g., pdf,docx,png)
10
26
  ```
11
27
 
12
28
  ## Interaction
13
29
 
14
30
  - File IDs typically come from action results (`node.md`) or workflow outputs (`workflow.md`).
15
31
  - Use file commands to retrieve content produced by workflow runs.
16
-
17
- ## Backend API (File)
18
-
19
- - GET /v1/cli/file list files
20
- - GET /v1/cli/file/:id get file
32
+ - Use `--result-id` or `--canvas-id` to narrow file listings to a specific run context.
@@ -1,63 +1,87 @@
1
1
  # Node Reference
2
2
 
3
- ## Node Commands
3
+ ## Node Types
4
+
5
+ Examples below use two common node types:
6
+ - `start` - Workflow entry point that captures user input
7
+ - `skillResponse` - AI-powered response node that can use tools
8
+
9
+ ## Node Execution Commands
10
+
11
+ Node execution commands are now under `refly workflow run`:
4
12
 
5
13
  ```bash
6
- refly node types
7
- refly node run --type "<nodeType>" --input '<json>'
8
- refly node result <resultId>
9
- refly node result <resultId> --include-tool-calls
10
- refly node result <resultId> --include-steps
11
- refly node result <resultId> --include-messages
12
- refly node abort <resultId>
14
+ # Run From Here (from this node + downstream nodes)
15
+ refly workflow run node-start [options]
16
+ --from <nodeId> # Node to run from (includes downstream)
17
+ --run-id <runId> # Existing run context
18
+ --workflow-id <id> # Start new run from workflow
19
+
20
+ # Abort running node
21
+ refly workflow run node-abort <resultId> [options]
22
+ --version <number> # Specific version to abort
23
+
24
+ # Get node execution result
25
+ refly workflow run node-result <resultId> [options]
26
+ --include-steps # Include step details
27
+ --include-messages # Include chat messages
28
+ --include-tool-calls # Include tool call details
29
+
30
+ # Get node detail within a workflow run
31
+ refly workflow run node-detail <runId> <nodeId> [options]
32
+ --include-messages # Include AI messages
33
+ --raw # Disable output sanitization
34
+
35
+ # List tool calls from node execution
36
+ refly workflow run node-toolcalls <resultId> [options]
37
+ --status <status> # Filter: executing, completed, failed
38
+ --tool-name <name> # Filter by tool name
39
+ --toolset-id <id> # Filter by toolset ID
40
+
41
+ # Single tool call detail
42
+ refly workflow run node-toolcall <callId> [options]
43
+ --raw # Full output without sanitization
13
44
  ```
14
45
 
46
+ Note: Use `--run-id` when you already have a specific run context; use `--workflow-id` to start a new run from a node.
47
+
15
48
  ## List Nodes in Workflow
16
49
 
17
50
  ```bash
18
- refly workflow nodes <workflowId>
19
- refly workflow nodes <workflowId> --include-edges
20
- refly workflow nodes <workflowId> --include-metadata
51
+ refly workflow nodes <workflowId> [options]
52
+ --include-edges # Include edge/connection info
53
+ --include-position # Include node coordinates
54
+ --include-metadata # Include full node metadata
21
55
  ```
22
56
 
23
57
  ## Get Single Node Information
24
58
 
25
59
  ```bash
26
- refly workflow node <workflowId> <nodeId>
27
- refly workflow node <workflowId> <nodeId> --include-connections
60
+ refly workflow node <id> <nodeId> [options]
61
+ --include-connections # Include incoming/outgoing connections
28
62
  ```
29
63
 
64
+ Note: `<id>` can be workflow ID (`c-xxx`) or run ID (`we-xxx`).
65
+
30
66
  ## Interaction
31
67
 
32
- - `workflow run node <runId> <nodeId>` yields `resultId` used by node/tool commands.
33
- - Use `node result` to fetch node output and optional file IDs.
34
- - Use `tool calls` to inspect tool executions tied to a result.
68
+ - `workflow run node-detail <runId> <nodeId>` yields `resultId` used by node/tool commands.
69
+ - Use `workflow run node-result` to fetch node output and optional file IDs.
70
+ - Use `workflow run node-toolcalls` to inspect tool execution details.
35
71
  - File IDs from node results should be handled via `file.md`.
36
72
 
37
- ## Node Result Commands
38
-
39
- ```bash
40
- refly node result <resultId>
41
- refly node result <resultId> --include-steps
42
- refly node result <resultId> --include-messages
43
- refly node result <resultId> --include-tool-calls
44
- ```
45
-
46
- ## Tool Commands
47
-
48
- ```bash
49
- refly tool calls --result-id <resultId>
50
- refly tool get <callId>
51
- ```
52
-
53
- ## Backend API (Node)
73
+ ## Migration Note
54
74
 
55
- - GET /v1/cli/node/types list node types
56
- - POST /v1/cli/node/run run a single node (not implemented yet)
57
- - GET /v1/cli/action/result?resultId=<id> get node execution result
58
- - POST /v1/cli/action/abort abort node execution
75
+ The following commands have been migrated:
59
76
 
60
- ## Backend API (Tool)
77
+ | Old Command | New Command |
78
+ |-------------|-------------|
79
+ | `refly node run --type <t>` | **REMOVED** - Use `refly workflow run node-start --type <t>` |
80
+ | `refly node result <id>` | `refly workflow run node-result <id>` |
81
+ | `refly node abort <id>` | `refly workflow run node-abort <resultId>` |
82
+ | `refly workflow run node <runId> <nodeId>` | `refly workflow run node-detail <runId> <nodeId>` |
61
83
 
62
- - GET /v1/cli/toolcall?resultId=<id>&version=<n> tool calls for action result
63
- - GET /v1/cli/toolcall/:callId single tool call detail
84
+ **Breaking Change:** The standalone `refly node` command group has been removed.
85
+ Node execution is now under `refly workflow run node-*`. For single-node debugging, use:
86
+ 1. `refly workflow run node-start --type <t>`
87
+ 2. Use `node-start --from <nodeId> --run-id <runId>` to run from node + downstream