frely-cli 0.7.1 → 0.8.3
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/README.md +25 -35
- package/README.zh-CN.md +25 -35
- package/dist/agent/agent-service.d.ts +77 -0
- package/dist/agent/agent-service.js +348 -0
- package/dist/agent/agent-service.js.map +1 -0
- package/dist/agent/app-install.d.ts +49 -0
- package/dist/agent/app-install.js +133 -0
- package/dist/agent/app-install.js.map +1 -0
- package/dist/agent/app-key.d.ts +14 -0
- package/dist/agent/app-key.js +46 -0
- package/dist/agent/app-key.js.map +1 -0
- package/dist/agent/compose.d.ts +23 -0
- package/dist/agent/compose.js +42 -0
- package/dist/agent/compose.js.map +1 -0
- package/dist/agent/ops-server.d.ts +18 -0
- package/dist/agent/ops-server.js +175 -0
- package/dist/agent/ops-server.js.map +1 -0
- package/dist/agent/ops-stdio.d.ts +5 -0
- package/dist/agent/ops-stdio.js +47 -0
- package/dist/agent/ops-stdio.js.map +1 -0
- package/dist/agent/ops.d.ts +25 -0
- package/dist/agent/ops.js +82 -0
- package/dist/agent/ops.js.map +1 -0
- package/dist/agent/protocol.d.ts +72 -0
- package/dist/agent/protocol.js +195 -0
- package/dist/agent/protocol.js.map +1 -0
- package/dist/agent/supervisor.d.ts +80 -0
- package/dist/agent/supervisor.js +278 -0
- package/dist/agent/supervisor.js.map +1 -0
- package/dist/agent/task-store.d.ts +82 -0
- package/dist/agent/task-store.js +220 -0
- package/dist/agent/task-store.js.map +1 -0
- package/dist/agent/tool-executor.d.ts +28 -0
- package/dist/agent/tool-executor.js +113 -0
- package/dist/agent/tool-executor.js.map +1 -0
- package/dist/agent/worktrees.d.ts +35 -0
- package/dist/agent/worktrees.js +143 -0
- package/dist/agent/worktrees.js.map +1 -0
- package/dist/agent-help.d.ts +198 -210
- package/dist/agent-help.js +47 -62
- package/dist/agent-help.js.map +1 -1
- package/dist/cloud.d.ts +1 -1
- package/dist/cloud.js +6 -13
- package/dist/cloud.js.map +1 -1
- package/dist/device/protocol.d.ts +11 -2
- package/dist/device/protocol.js +18 -2
- package/dist/device/protocol.js.map +1 -1
- package/dist/device/relay-client.d.ts +10 -1
- package/dist/device/relay-client.js +38 -11
- package/dist/device/relay-client.js.map +1 -1
- package/dist/diagnostics.js +12 -4
- package/dist/diagnostics.js.map +1 -1
- package/dist/index.js +195 -141
- package/dist/index.js.map +1 -1
- package/dist/key-budget.js +2 -2
- package/dist/key-budget.js.map +1 -1
- package/dist/mcp-authorization.js +9 -7
- package/dist/mcp-authorization.js.map +1 -1
- package/dist/mcp-command.d.ts +12 -4
- package/dist/mcp-command.js +54 -48
- package/dist/mcp-command.js.map +1 -1
- package/dist/provider/state.d.ts +2 -0
- package/dist/provider/state.js +1 -0
- package/dist/provider/state.js.map +1 -1
- package/dist/runtime/mcp-lease.js +1 -1
- package/dist/runtime/mcp-lease.js.map +1 -1
- package/dist/runtime/mcp.d.ts +139 -0
- package/dist/runtime/mcp.js +30 -0
- package/dist/runtime/mcp.js.map +1 -1
- package/dist/runtime/relay-agent.d.ts +25 -0
- package/dist/runtime/relay-agent.js +63 -0
- package/dist/runtime/relay-agent.js.map +1 -0
- package/dist/runtime/relay-mcp.d.ts +3 -1
- package/dist/runtime/relay-mcp.js +6 -1
- package/dist/runtime/relay-mcp.js.map +1 -1
- package/dist/runtime/relay-session.d.ts +2 -2
- package/dist/runtime/relay-session.js +1 -1
- package/dist/runtime/relay-session.js.map +1 -1
- package/dist/runtime/sandbox.d.ts +2 -0
- package/dist/runtime/sandbox.js +13 -0
- package/dist/runtime/sandbox.js.map +1 -1
- package/dist/runtime/workspace-registry.js +1 -1
- package/dist/skill/access.d.ts +4 -2
- package/dist/skill/access.js +7 -3
- package/dist/skill/access.js.map +1 -1
- package/dist/upgrade/installation.js +1 -1
- package/dist/upgrade/installation.js.map +1 -1
- package/dist/workspace-command.d.ts +1 -1
- package/dist/workspace-command.js +2 -2
- package/dist/workspace-command.js.map +1 -1
- package/package.json +1 -1
package/dist/agent-help.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
export declare const COMMANDS: readonly [{
|
|
2
|
-
readonly id: "
|
|
3
|
-
readonly usage: "frely
|
|
4
|
-
readonly auth: "
|
|
5
|
-
readonly effect: "
|
|
6
|
-
readonly purpose: "
|
|
2
|
+
readonly id: "login";
|
|
3
|
+
readonly usage: "frely login [--relay <url>] [--no-browser]";
|
|
4
|
+
readonly auth: "browser";
|
|
5
|
+
readonly effect: "authorization";
|
|
6
|
+
readonly purpose: "Authorize the CLI for the user's Frely account.";
|
|
7
|
+
}, {
|
|
8
|
+
readonly id: "logout";
|
|
9
|
+
readonly usage: "frely logout";
|
|
10
|
+
readonly auth: "none";
|
|
11
|
+
readonly effect: "local-write";
|
|
12
|
+
readonly purpose: "Remove login, revoke Cloud authorization and stop the MCP background service.";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "doctor";
|
|
15
|
+
readonly usage: "frely doctor [-v] [--json]";
|
|
16
|
+
readonly auth: "optional-account";
|
|
17
|
+
readonly effect: "diagnostic";
|
|
18
|
+
readonly purpose: "Show the signed-in account, installation, available upgrades, MCP and connection status; -v verifies the account online and runs detailed diagnostics.";
|
|
7
19
|
}, {
|
|
8
20
|
readonly id: "upgrade";
|
|
9
21
|
readonly usage: "frely upgrade";
|
|
@@ -17,65 +29,77 @@ export declare const COMMANDS: readonly [{
|
|
|
17
29
|
readonly effect: "read";
|
|
18
30
|
readonly purpose: "Read this installed CLI's current Agent instructions.";
|
|
19
31
|
}, {
|
|
20
|
-
readonly id: "
|
|
21
|
-
readonly usage: "frely
|
|
22
|
-
readonly auth: "
|
|
23
|
-
readonly effect: "
|
|
24
|
-
readonly purpose: "
|
|
32
|
+
readonly id: "mcp";
|
|
33
|
+
readonly usage: "frely mcp [--workspace <path>] [--days 1..180] [--json]";
|
|
34
|
+
readonly auth: "account-and-browser-if-needed";
|
|
35
|
+
readonly effect: "authorization-if-needed";
|
|
36
|
+
readonly purpose: "Enable, renew or read device MCP. Unconfigured: request browser approval for --workspace (default: current directory) and install the background service. Expired or --days given: renew with browser approval; the MCP URL stays the same. Otherwise print the MCP URL unchanged. Prompts go to stderr; stdout holds only the URL, or JSON with HTTP transport and OAuth details.";
|
|
25
37
|
}, {
|
|
26
|
-
readonly id: "
|
|
27
|
-
readonly usage: "frely
|
|
28
|
-
readonly auth: "
|
|
29
|
-
readonly effect: "
|
|
30
|
-
readonly purpose: "
|
|
38
|
+
readonly id: "mcp.workspace";
|
|
39
|
+
readonly usage: "frely mcp workspace [add|remove <path>] [--json]";
|
|
40
|
+
readonly auth: "mcp";
|
|
41
|
+
readonly effect: "subcommand-dependent";
|
|
42
|
+
readonly purpose: "List workspace directories for this device, or add/remove an additional one (the primary cannot be removed).";
|
|
31
43
|
}, {
|
|
32
|
-
readonly id: "
|
|
33
|
-
readonly usage: "frely
|
|
44
|
+
readonly id: "mcp.stop";
|
|
45
|
+
readonly usage: "frely mcp stop";
|
|
34
46
|
readonly auth: "none";
|
|
35
|
-
readonly effect: "
|
|
36
|
-
readonly purpose: "
|
|
47
|
+
readonly effect: "local-service";
|
|
48
|
+
readonly purpose: "Pause the local MCP background service. Supported upgrades restore running services without this command.";
|
|
37
49
|
}, {
|
|
38
|
-
readonly id: "
|
|
39
|
-
readonly usage: "frely
|
|
50
|
+
readonly id: "mcp.start";
|
|
51
|
+
readonly usage: "frely mcp start";
|
|
40
52
|
readonly auth: "none";
|
|
53
|
+
readonly effect: "local-service";
|
|
54
|
+
readonly purpose: "Resume the local MCP background service.";
|
|
55
|
+
}, {
|
|
56
|
+
readonly id: "mcp.remove";
|
|
57
|
+
readonly usage: "frely mcp remove";
|
|
58
|
+
readonly auth: "account";
|
|
59
|
+
readonly effect: "remote-write";
|
|
60
|
+
readonly purpose: "Revoke device MCP for every connected client and uninstall the background service (kept running provider-only when local Providers exist).";
|
|
61
|
+
}, {
|
|
62
|
+
readonly id: "mcp.stdio";
|
|
63
|
+
readonly usage: "frely mcp stdio [--workspace <path>]";
|
|
64
|
+
readonly auth: "mcp";
|
|
65
|
+
readonly effect: "local-execution";
|
|
66
|
+
readonly purpose: "Serve authorized local tools over stdio for a local MCP client.";
|
|
67
|
+
}, {
|
|
68
|
+
readonly id: "mcp.serve";
|
|
69
|
+
readonly usage: "frely mcp serve [--workspace <path>]";
|
|
70
|
+
readonly auth: "account-and-mcp";
|
|
71
|
+
readonly effect: "local-execution";
|
|
72
|
+
readonly purpose: "Foreground Device Relay client; the background service runs this. Not needed for normal use.";
|
|
73
|
+
}, {
|
|
74
|
+
readonly id: "agent.install";
|
|
75
|
+
readonly usage: "frely agent install <distribution-id|manifest-url> [--host chatgpt|codex|claude-code|pi|generic] [--scope global|project] [--api-key-stdin] [--json]";
|
|
76
|
+
readonly auth: "optional-api-key";
|
|
41
77
|
readonly effect: "local-write";
|
|
42
|
-
readonly purpose: "
|
|
78
|
+
readonly purpose: "Install the public Agent's trigger Skill; an API key goes only through stdin to secure storage.";
|
|
43
79
|
}, {
|
|
44
|
-
readonly id: "agent.
|
|
45
|
-
readonly usage: "frely agent
|
|
80
|
+
readonly id: "agent.run";
|
|
81
|
+
readonly usage: "frely agent run <distribution-id> (--input <text>|--input-stdin) [--json]";
|
|
46
82
|
readonly auth: "installed-api-key-or-account";
|
|
47
83
|
readonly effect: "remote-call";
|
|
48
84
|
readonly purpose: "Send the complete relevant user request to the installed Agent through model-scoped MCP. Usage may be billed.";
|
|
49
85
|
}, {
|
|
50
|
-
readonly id: "
|
|
51
|
-
readonly usage: "frely
|
|
52
|
-
readonly auth: "
|
|
53
|
-
readonly effect: "
|
|
54
|
-
readonly purpose: "
|
|
86
|
+
readonly id: "agent.status";
|
|
87
|
+
readonly usage: "frely agent status (<distribution-id>|--api-key-stdin [--relay <url>]) [--json]";
|
|
88
|
+
readonly auth: "none-or-api-key";
|
|
89
|
+
readonly effect: "read";
|
|
90
|
+
readonly purpose: "Inspect an installed Agent Skill and, for API-key installs, its Key budget. With --api-key-stdin, read that Key's budget without installing or logging in.";
|
|
55
91
|
}, {
|
|
56
|
-
readonly id: "
|
|
57
|
-
readonly usage: "frely
|
|
92
|
+
readonly id: "agent.remove";
|
|
93
|
+
readonly usage: "frely agent remove <distribution-id> [--json]";
|
|
58
94
|
readonly auth: "none";
|
|
59
95
|
readonly effect: "local-write";
|
|
60
|
-
readonly purpose: "Remove
|
|
61
|
-
}, {
|
|
62
|
-
readonly id: "whoami";
|
|
63
|
-
readonly usage: "frely whoami";
|
|
64
|
-
readonly auth: "account";
|
|
65
|
-
readonly effect: "read";
|
|
66
|
-
readonly purpose: "Read the signed-in account.";
|
|
67
|
-
}, {
|
|
68
|
-
readonly id: "doctor";
|
|
69
|
-
readonly usage: "frely doctor [-v] [--json]";
|
|
70
|
-
readonly auth: "optional-account";
|
|
71
|
-
readonly effect: "diagnostic";
|
|
72
|
-
readonly purpose: "Show installation, available upgrades, account, MCP and connection status; -v runs detailed diagnostics.";
|
|
96
|
+
readonly purpose: "Remove an installed Agent Skill and its saved API key.";
|
|
73
97
|
}, {
|
|
74
98
|
readonly id: "provider.share";
|
|
75
99
|
readonly usage: "frely provider share [ollama|openai-compatible] [--url <loopback-v1-url>] [--models <a,b>] [--slot <slot-id>] [--name <name>]";
|
|
76
100
|
readonly auth: "account";
|
|
77
101
|
readonly effect: "remote-write";
|
|
78
|
-
readonly purpose: "Publish a local model Provider.";
|
|
102
|
+
readonly purpose: "Publish a local model Provider. If a prepared Provider on this device is not finished, resume it instead.";
|
|
79
103
|
}, {
|
|
80
104
|
readonly id: "provider.list";
|
|
81
105
|
readonly usage: "frely provider list [--json]";
|
|
@@ -83,77 +107,47 @@ export declare const COMMANDS: readonly [{
|
|
|
83
107
|
readonly effect: "read";
|
|
84
108
|
readonly purpose: "List configured local Providers.";
|
|
85
109
|
}, {
|
|
86
|
-
readonly id: "
|
|
87
|
-
readonly usage: "frely
|
|
88
|
-
readonly auth: "
|
|
89
|
-
readonly effect: "
|
|
90
|
-
readonly purpose: "
|
|
91
|
-
}, {
|
|
92
|
-
readonly id: "mcp.setup";
|
|
93
|
-
readonly usage: "frely mcp [--workspace <path>] [--days 1..180]";
|
|
94
|
-
readonly auth: "account-and-browser";
|
|
95
|
-
readonly effect: "authorization";
|
|
96
|
-
readonly purpose: "Enable this computer as a device MCP service for remote HTTP MCP clients with OAuth; install its background service.";
|
|
97
|
-
}, {
|
|
98
|
-
readonly id: "mcp.renew";
|
|
99
|
-
readonly usage: "frely mcp renew [--days 1..180]";
|
|
100
|
-
readonly auth: "account-and-browser";
|
|
101
|
-
readonly effect: "authorization";
|
|
102
|
-
readonly purpose: "Renew this device's execution authorization without changing its MCP URL.";
|
|
103
|
-
}, {
|
|
104
|
-
readonly id: "mcp.url";
|
|
105
|
-
readonly usage: "frely mcp url [--json]";
|
|
106
|
-
readonly auth: "account-and-mcp-or-browser";
|
|
107
|
-
readonly effect: "authorization-if-unconfigured";
|
|
108
|
-
readonly purpose: "Read this device's stable MCP URL. If unconfigured, set up the user home directory with browser approval and install the background service. --json includes HTTP transport and OAuth connection details; setup prompts go to stderr.";
|
|
109
|
-
}, {
|
|
110
|
-
readonly id: "mcp.serve";
|
|
111
|
-
readonly usage: "frely mcp serve [--workspace <path>]";
|
|
112
|
-
readonly auth: "account-and-mcp";
|
|
113
|
-
readonly effect: "local-execution";
|
|
114
|
-
readonly purpose: "Serve authorized local workspace tools.";
|
|
110
|
+
readonly id: "cloud";
|
|
111
|
+
readonly usage: "frely cloud list|describe|call [--help]";
|
|
112
|
+
readonly auth: "cloud-oauth";
|
|
113
|
+
readonly effect: "subcommand-dependent";
|
|
114
|
+
readonly purpose: "Discover and call Frely cloud business operations at frely.cloud/mcp. The first call requests browser authorization. Use describe before call; parameters and results are JSON.";
|
|
115
115
|
}, {
|
|
116
|
-
readonly id: "
|
|
117
|
-
readonly usage: "frely
|
|
118
|
-
readonly auth: "
|
|
116
|
+
readonly id: "app.remote";
|
|
117
|
+
readonly usage: "frely app remote enable|disable|status [--json]";
|
|
118
|
+
readonly auth: "local";
|
|
119
119
|
readonly effect: "local-write";
|
|
120
|
-
readonly purpose: "
|
|
121
|
-
}, {
|
|
122
|
-
readonly id: "mcp.workspace.list";
|
|
123
|
-
readonly usage: "frely mcp workspace list [--json]";
|
|
124
|
-
readonly auth: "mcp";
|
|
125
|
-
readonly effect: "read";
|
|
126
|
-
readonly purpose: "List all registered workspace directories.";
|
|
120
|
+
readonly purpose: "Toggle agent remote control for the Frely web app (app.frely.cloud). Disabled by default; enable before starting tasks from a phone.";
|
|
127
121
|
}, {
|
|
128
|
-
readonly id: "
|
|
129
|
-
readonly usage: "frely
|
|
130
|
-
readonly auth: "
|
|
131
|
-
readonly effect: "
|
|
132
|
-
readonly purpose: "
|
|
122
|
+
readonly id: "app.ops";
|
|
123
|
+
readonly usage: "frely app ops";
|
|
124
|
+
readonly auth: "local";
|
|
125
|
+
readonly effect: "read-only";
|
|
126
|
+
readonly purpose: "Bridge the local agent ops socket to stdin/stdout (NDJSON, incl. tasks_changed pushes); used by the Frely App GUI task panel.";
|
|
133
127
|
}, {
|
|
134
|
-
readonly id: "
|
|
135
|
-
readonly usage: "frely
|
|
136
|
-
readonly auth: "
|
|
137
|
-
readonly effect: "
|
|
138
|
-
readonly purpose: "
|
|
128
|
+
readonly id: "app.connectInfo";
|
|
129
|
+
readonly usage: "frely app connect-info [--json]";
|
|
130
|
+
readonly auth: "local";
|
|
131
|
+
readonly effect: "read-only";
|
|
132
|
+
readonly purpose: "Report the local agent ops socket path and whether a serving process is reachable (used by the Frely App GUI to find task control).";
|
|
139
133
|
}, {
|
|
140
|
-
readonly id: "
|
|
141
|
-
readonly usage: "frely
|
|
142
|
-
readonly auth: "
|
|
143
|
-
readonly effect: "
|
|
144
|
-
readonly purpose: "
|
|
134
|
+
readonly id: "app.key";
|
|
135
|
+
readonly usage: "frely app key [--lifetime-usd N] [--json]";
|
|
136
|
+
readonly auth: "user";
|
|
137
|
+
readonly effect: "account-write";
|
|
138
|
+
readonly purpose: "Provision a device-scoped Frely API key for app agent tasks (shown once, capped at a lifetime spend limit; default $50, max $500).";
|
|
145
139
|
}, {
|
|
146
|
-
readonly id: "
|
|
147
|
-
readonly usage: "frely
|
|
148
|
-
readonly auth: "
|
|
149
|
-
readonly effect: "
|
|
150
|
-
readonly purpose: "
|
|
140
|
+
readonly id: "app.tasks";
|
|
141
|
+
readonly usage: "frely app tasks [--json]";
|
|
142
|
+
readonly auth: "local";
|
|
143
|
+
readonly effect: "read";
|
|
144
|
+
readonly purpose: "List local agent tasks with status, merge state and budget usage.";
|
|
151
145
|
}, {
|
|
152
146
|
readonly id: "network";
|
|
153
147
|
readonly usage: "frely network setup|status|find|use|logout [--json]";
|
|
154
148
|
readonly auth: "network";
|
|
155
149
|
readonly effect: "subcommand-dependent";
|
|
156
|
-
readonly purpose: "Access Frely Network using its separate setup and credentials.";
|
|
150
|
+
readonly purpose: "Access Frely Network (preview) using its separate setup and credentials.";
|
|
157
151
|
}];
|
|
158
152
|
export declare function agentHelp(): {
|
|
159
153
|
schemaVersion: string;
|
|
@@ -162,11 +156,23 @@ export declare function agentHelp(): {
|
|
|
162
156
|
skill_update_required: boolean;
|
|
163
157
|
instructions: string[];
|
|
164
158
|
commands: readonly [{
|
|
165
|
-
readonly id: "
|
|
166
|
-
readonly usage: "frely
|
|
167
|
-
readonly auth: "
|
|
168
|
-
readonly effect: "
|
|
169
|
-
readonly purpose: "
|
|
159
|
+
readonly id: "login";
|
|
160
|
+
readonly usage: "frely login [--relay <url>] [--no-browser]";
|
|
161
|
+
readonly auth: "browser";
|
|
162
|
+
readonly effect: "authorization";
|
|
163
|
+
readonly purpose: "Authorize the CLI for the user's Frely account.";
|
|
164
|
+
}, {
|
|
165
|
+
readonly id: "logout";
|
|
166
|
+
readonly usage: "frely logout";
|
|
167
|
+
readonly auth: "none";
|
|
168
|
+
readonly effect: "local-write";
|
|
169
|
+
readonly purpose: "Remove login, revoke Cloud authorization and stop the MCP background service.";
|
|
170
|
+
}, {
|
|
171
|
+
readonly id: "doctor";
|
|
172
|
+
readonly usage: "frely doctor [-v] [--json]";
|
|
173
|
+
readonly auth: "optional-account";
|
|
174
|
+
readonly effect: "diagnostic";
|
|
175
|
+
readonly purpose: "Show the signed-in account, installation, available upgrades, MCP and connection status; -v verifies the account online and runs detailed diagnostics.";
|
|
170
176
|
}, {
|
|
171
177
|
readonly id: "upgrade";
|
|
172
178
|
readonly usage: "frely upgrade";
|
|
@@ -180,65 +186,77 @@ export declare function agentHelp(): {
|
|
|
180
186
|
readonly effect: "read";
|
|
181
187
|
readonly purpose: "Read this installed CLI's current Agent instructions.";
|
|
182
188
|
}, {
|
|
183
|
-
readonly id: "
|
|
184
|
-
readonly usage: "frely
|
|
185
|
-
readonly auth: "
|
|
186
|
-
readonly effect: "
|
|
187
|
-
readonly purpose: "
|
|
189
|
+
readonly id: "mcp";
|
|
190
|
+
readonly usage: "frely mcp [--workspace <path>] [--days 1..180] [--json]";
|
|
191
|
+
readonly auth: "account-and-browser-if-needed";
|
|
192
|
+
readonly effect: "authorization-if-needed";
|
|
193
|
+
readonly purpose: "Enable, renew or read device MCP. Unconfigured: request browser approval for --workspace (default: current directory) and install the background service. Expired or --days given: renew with browser approval; the MCP URL stays the same. Otherwise print the MCP URL unchanged. Prompts go to stderr; stdout holds only the URL, or JSON with HTTP transport and OAuth details.";
|
|
188
194
|
}, {
|
|
189
|
-
readonly id: "
|
|
190
|
-
readonly usage: "frely
|
|
191
|
-
readonly auth: "
|
|
192
|
-
readonly effect: "
|
|
193
|
-
readonly purpose: "
|
|
195
|
+
readonly id: "mcp.workspace";
|
|
196
|
+
readonly usage: "frely mcp workspace [add|remove <path>] [--json]";
|
|
197
|
+
readonly auth: "mcp";
|
|
198
|
+
readonly effect: "subcommand-dependent";
|
|
199
|
+
readonly purpose: "List workspace directories for this device, or add/remove an additional one (the primary cannot be removed).";
|
|
194
200
|
}, {
|
|
195
|
-
readonly id: "
|
|
196
|
-
readonly usage: "frely
|
|
201
|
+
readonly id: "mcp.stop";
|
|
202
|
+
readonly usage: "frely mcp stop";
|
|
197
203
|
readonly auth: "none";
|
|
198
|
-
readonly effect: "
|
|
199
|
-
readonly purpose: "
|
|
204
|
+
readonly effect: "local-service";
|
|
205
|
+
readonly purpose: "Pause the local MCP background service. Supported upgrades restore running services without this command.";
|
|
200
206
|
}, {
|
|
201
|
-
readonly id: "
|
|
202
|
-
readonly usage: "frely
|
|
207
|
+
readonly id: "mcp.start";
|
|
208
|
+
readonly usage: "frely mcp start";
|
|
203
209
|
readonly auth: "none";
|
|
210
|
+
readonly effect: "local-service";
|
|
211
|
+
readonly purpose: "Resume the local MCP background service.";
|
|
212
|
+
}, {
|
|
213
|
+
readonly id: "mcp.remove";
|
|
214
|
+
readonly usage: "frely mcp remove";
|
|
215
|
+
readonly auth: "account";
|
|
216
|
+
readonly effect: "remote-write";
|
|
217
|
+
readonly purpose: "Revoke device MCP for every connected client and uninstall the background service (kept running provider-only when local Providers exist).";
|
|
218
|
+
}, {
|
|
219
|
+
readonly id: "mcp.stdio";
|
|
220
|
+
readonly usage: "frely mcp stdio [--workspace <path>]";
|
|
221
|
+
readonly auth: "mcp";
|
|
222
|
+
readonly effect: "local-execution";
|
|
223
|
+
readonly purpose: "Serve authorized local tools over stdio for a local MCP client.";
|
|
224
|
+
}, {
|
|
225
|
+
readonly id: "mcp.serve";
|
|
226
|
+
readonly usage: "frely mcp serve [--workspace <path>]";
|
|
227
|
+
readonly auth: "account-and-mcp";
|
|
228
|
+
readonly effect: "local-execution";
|
|
229
|
+
readonly purpose: "Foreground Device Relay client; the background service runs this. Not needed for normal use.";
|
|
230
|
+
}, {
|
|
231
|
+
readonly id: "agent.install";
|
|
232
|
+
readonly usage: "frely agent install <distribution-id|manifest-url> [--host chatgpt|codex|claude-code|pi|generic] [--scope global|project] [--api-key-stdin] [--json]";
|
|
233
|
+
readonly auth: "optional-api-key";
|
|
204
234
|
readonly effect: "local-write";
|
|
205
|
-
readonly purpose: "
|
|
235
|
+
readonly purpose: "Install the public Agent's trigger Skill; an API key goes only through stdin to secure storage.";
|
|
206
236
|
}, {
|
|
207
|
-
readonly id: "agent.
|
|
208
|
-
readonly usage: "frely agent
|
|
237
|
+
readonly id: "agent.run";
|
|
238
|
+
readonly usage: "frely agent run <distribution-id> (--input <text>|--input-stdin) [--json]";
|
|
209
239
|
readonly auth: "installed-api-key-or-account";
|
|
210
240
|
readonly effect: "remote-call";
|
|
211
241
|
readonly purpose: "Send the complete relevant user request to the installed Agent through model-scoped MCP. Usage may be billed.";
|
|
212
242
|
}, {
|
|
213
|
-
readonly id: "
|
|
214
|
-
readonly usage: "frely
|
|
215
|
-
readonly auth: "
|
|
216
|
-
readonly effect: "
|
|
217
|
-
readonly purpose: "
|
|
243
|
+
readonly id: "agent.status";
|
|
244
|
+
readonly usage: "frely agent status (<distribution-id>|--api-key-stdin [--relay <url>]) [--json]";
|
|
245
|
+
readonly auth: "none-or-api-key";
|
|
246
|
+
readonly effect: "read";
|
|
247
|
+
readonly purpose: "Inspect an installed Agent Skill and, for API-key installs, its Key budget. With --api-key-stdin, read that Key's budget without installing or logging in.";
|
|
218
248
|
}, {
|
|
219
|
-
readonly id: "
|
|
220
|
-
readonly usage: "frely
|
|
249
|
+
readonly id: "agent.remove";
|
|
250
|
+
readonly usage: "frely agent remove <distribution-id> [--json]";
|
|
221
251
|
readonly auth: "none";
|
|
222
252
|
readonly effect: "local-write";
|
|
223
|
-
readonly purpose: "Remove
|
|
224
|
-
}, {
|
|
225
|
-
readonly id: "whoami";
|
|
226
|
-
readonly usage: "frely whoami";
|
|
227
|
-
readonly auth: "account";
|
|
228
|
-
readonly effect: "read";
|
|
229
|
-
readonly purpose: "Read the signed-in account.";
|
|
230
|
-
}, {
|
|
231
|
-
readonly id: "doctor";
|
|
232
|
-
readonly usage: "frely doctor [-v] [--json]";
|
|
233
|
-
readonly auth: "optional-account";
|
|
234
|
-
readonly effect: "diagnostic";
|
|
235
|
-
readonly purpose: "Show installation, available upgrades, account, MCP and connection status; -v runs detailed diagnostics.";
|
|
253
|
+
readonly purpose: "Remove an installed Agent Skill and its saved API key.";
|
|
236
254
|
}, {
|
|
237
255
|
readonly id: "provider.share";
|
|
238
256
|
readonly usage: "frely provider share [ollama|openai-compatible] [--url <loopback-v1-url>] [--models <a,b>] [--slot <slot-id>] [--name <name>]";
|
|
239
257
|
readonly auth: "account";
|
|
240
258
|
readonly effect: "remote-write";
|
|
241
|
-
readonly purpose: "Publish a local model Provider.";
|
|
259
|
+
readonly purpose: "Publish a local model Provider. If a prepared Provider on this device is not finished, resume it instead.";
|
|
242
260
|
}, {
|
|
243
261
|
readonly id: "provider.list";
|
|
244
262
|
readonly usage: "frely provider list [--json]";
|
|
@@ -246,77 +264,47 @@ export declare function agentHelp(): {
|
|
|
246
264
|
readonly effect: "read";
|
|
247
265
|
readonly purpose: "List configured local Providers.";
|
|
248
266
|
}, {
|
|
249
|
-
readonly id: "
|
|
250
|
-
readonly usage: "frely
|
|
251
|
-
readonly auth: "
|
|
252
|
-
readonly effect: "
|
|
253
|
-
readonly purpose: "
|
|
254
|
-
}, {
|
|
255
|
-
readonly id: "mcp.setup";
|
|
256
|
-
readonly usage: "frely mcp [--workspace <path>] [--days 1..180]";
|
|
257
|
-
readonly auth: "account-and-browser";
|
|
258
|
-
readonly effect: "authorization";
|
|
259
|
-
readonly purpose: "Enable this computer as a device MCP service for remote HTTP MCP clients with OAuth; install its background service.";
|
|
260
|
-
}, {
|
|
261
|
-
readonly id: "mcp.renew";
|
|
262
|
-
readonly usage: "frely mcp renew [--days 1..180]";
|
|
263
|
-
readonly auth: "account-and-browser";
|
|
264
|
-
readonly effect: "authorization";
|
|
265
|
-
readonly purpose: "Renew this device's execution authorization without changing its MCP URL.";
|
|
266
|
-
}, {
|
|
267
|
-
readonly id: "mcp.url";
|
|
268
|
-
readonly usage: "frely mcp url [--json]";
|
|
269
|
-
readonly auth: "account-and-mcp-or-browser";
|
|
270
|
-
readonly effect: "authorization-if-unconfigured";
|
|
271
|
-
readonly purpose: "Read this device's stable MCP URL. If unconfigured, set up the user home directory with browser approval and install the background service. --json includes HTTP transport and OAuth connection details; setup prompts go to stderr.";
|
|
272
|
-
}, {
|
|
273
|
-
readonly id: "mcp.serve";
|
|
274
|
-
readonly usage: "frely mcp serve [--workspace <path>]";
|
|
275
|
-
readonly auth: "account-and-mcp";
|
|
276
|
-
readonly effect: "local-execution";
|
|
277
|
-
readonly purpose: "Serve authorized local workspace tools.";
|
|
267
|
+
readonly id: "cloud";
|
|
268
|
+
readonly usage: "frely cloud list|describe|call [--help]";
|
|
269
|
+
readonly auth: "cloud-oauth";
|
|
270
|
+
readonly effect: "subcommand-dependent";
|
|
271
|
+
readonly purpose: "Discover and call Frely cloud business operations at frely.cloud/mcp. The first call requests browser authorization. Use describe before call; parameters and results are JSON.";
|
|
278
272
|
}, {
|
|
279
|
-
readonly id: "
|
|
280
|
-
readonly usage: "frely
|
|
281
|
-
readonly auth: "
|
|
273
|
+
readonly id: "app.remote";
|
|
274
|
+
readonly usage: "frely app remote enable|disable|status [--json]";
|
|
275
|
+
readonly auth: "local";
|
|
282
276
|
readonly effect: "local-write";
|
|
283
|
-
readonly purpose: "
|
|
284
|
-
}, {
|
|
285
|
-
readonly id: "mcp.workspace.list";
|
|
286
|
-
readonly usage: "frely mcp workspace list [--json]";
|
|
287
|
-
readonly auth: "mcp";
|
|
288
|
-
readonly effect: "read";
|
|
289
|
-
readonly purpose: "List all registered workspace directories.";
|
|
277
|
+
readonly purpose: "Toggle agent remote control for the Frely web app (app.frely.cloud). Disabled by default; enable before starting tasks from a phone.";
|
|
290
278
|
}, {
|
|
291
|
-
readonly id: "
|
|
292
|
-
readonly usage: "frely
|
|
293
|
-
readonly auth: "
|
|
294
|
-
readonly effect: "
|
|
295
|
-
readonly purpose: "
|
|
279
|
+
readonly id: "app.ops";
|
|
280
|
+
readonly usage: "frely app ops";
|
|
281
|
+
readonly auth: "local";
|
|
282
|
+
readonly effect: "read-only";
|
|
283
|
+
readonly purpose: "Bridge the local agent ops socket to stdin/stdout (NDJSON, incl. tasks_changed pushes); used by the Frely App GUI task panel.";
|
|
296
284
|
}, {
|
|
297
|
-
readonly id: "
|
|
298
|
-
readonly usage: "frely
|
|
299
|
-
readonly auth: "
|
|
300
|
-
readonly effect: "
|
|
301
|
-
readonly purpose: "
|
|
285
|
+
readonly id: "app.connectInfo";
|
|
286
|
+
readonly usage: "frely app connect-info [--json]";
|
|
287
|
+
readonly auth: "local";
|
|
288
|
+
readonly effect: "read-only";
|
|
289
|
+
readonly purpose: "Report the local agent ops socket path and whether a serving process is reachable (used by the Frely App GUI to find task control).";
|
|
302
290
|
}, {
|
|
303
|
-
readonly id: "
|
|
304
|
-
readonly usage: "frely
|
|
305
|
-
readonly auth: "
|
|
306
|
-
readonly effect: "
|
|
307
|
-
readonly purpose: "
|
|
291
|
+
readonly id: "app.key";
|
|
292
|
+
readonly usage: "frely app key [--lifetime-usd N] [--json]";
|
|
293
|
+
readonly auth: "user";
|
|
294
|
+
readonly effect: "account-write";
|
|
295
|
+
readonly purpose: "Provision a device-scoped Frely API key for app agent tasks (shown once, capped at a lifetime spend limit; default $50, max $500).";
|
|
308
296
|
}, {
|
|
309
|
-
readonly id: "
|
|
310
|
-
readonly usage: "frely
|
|
311
|
-
readonly auth: "
|
|
312
|
-
readonly effect: "
|
|
313
|
-
readonly purpose: "
|
|
297
|
+
readonly id: "app.tasks";
|
|
298
|
+
readonly usage: "frely app tasks [--json]";
|
|
299
|
+
readonly auth: "local";
|
|
300
|
+
readonly effect: "read";
|
|
301
|
+
readonly purpose: "List local agent tasks with status, merge state and budget usage.";
|
|
314
302
|
}, {
|
|
315
303
|
readonly id: "network";
|
|
316
304
|
readonly usage: "frely network setup|status|find|use|logout [--json]";
|
|
317
305
|
readonly auth: "network";
|
|
318
306
|
readonly effect: "subcommand-dependent";
|
|
319
|
-
readonly purpose: "Access Frely Network using its separate setup and credentials.";
|
|
307
|
+
readonly purpose: "Access Frely Network (preview) using its separate setup and credentials.";
|
|
320
308
|
}];
|
|
321
309
|
};
|
|
322
310
|
export declare function cliUsage(): string;
|