@getpaseo/cli 0.7.2 → 0.8.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.
- package/dist/cli.js +4 -3
- package/dist/commands/agent/attach.js +10 -8
- package/dist/commands/agent/index.js +3 -3
- package/dist/commands/agent/logs.js +6 -6
- package/dist/commands/agent/run.js +2 -0
- package/dist/commands/hub/deploy-triggers.d.ts +6 -0
- package/dist/commands/hub/deploy-triggers.js +116 -0
- package/dist/commands/hub/deploy.d.ts +15 -5
- package/dist/commands/hub/deploy.js +73 -4
- package/dist/commands/hub/hub-client/index.d.ts +4 -3
- package/dist/commands/hub/hub-client/index.js +23 -10
- package/dist/commands/hub/hub-client/internal/contracts.d.ts +15 -15
- package/dist/commands/hub/hub-client/internal/contracts.js +13 -14
- package/dist/commands/hub/init-plan.d.ts +5 -25
- package/dist/commands/hub/init-plan.js +39 -85
- package/dist/commands/hub/init.js +81 -112
- package/dist/commands/hub/starter-trigger.d.ts +2 -2
- package/dist/commands/hub/starter-trigger.js +11 -9
- package/dist/commands/plugin/index.d.ts +1 -1
- package/dist/commands/plugin/index.js +11 -20
- package/dist/commands/plugin/scaffold.js +92 -14
- package/dist/commands/schedule/shared.js +2 -2
- package/dist/commands/terminal/capture.js +3 -3
- package/dist/commands/terminal/create.d.ts +1 -0
- package/dist/commands/terminal/create.js +13 -22
- package/dist/commands/terminal/index.js +9 -7
- package/dist/commands/terminal/kill.js +5 -5
- package/dist/commands/terminal/ls.d.ts +1 -0
- package/dist/commands/terminal/ls.js +6 -6
- package/dist/commands/terminal/schema.d.ts +2 -10
- package/dist/commands/terminal/schema.js +1 -7
- package/dist/commands/terminal/send-keys.js +5 -36
- package/dist/commands/terminal/shared.d.ts +3 -3
- package/dist/commands/terminal/shared.js +4 -3
- package/dist/commands/workspace/index.js +5 -0
- package/dist/commands/workspace/setup.d.ts +11 -0
- package/dist/commands/workspace/setup.js +41 -0
- package/dist/output/render.js +2 -1
- package/dist/output/with-output.js +4 -6
- package/dist/utils/client.d.ts +1 -0
- package/dist/utils/client.js +6 -2
- package/dist/utils/command-options.d.ts +1 -0
- package/dist/utils/command-options.js +8 -0
- package/package.json +4 -4
package/dist/utils/client.js
CHANGED
|
@@ -131,12 +131,16 @@ export function resolveDefaultDaemonHosts(env = process.env) {
|
|
|
131
131
|
return Array.from(new Set(candidates));
|
|
132
132
|
}
|
|
133
133
|
function resolveDaemonHostCandidates(options) {
|
|
134
|
-
const explicitHost = options?.host
|
|
134
|
+
const explicitHost = getExplicitDaemonHost(options?.host);
|
|
135
135
|
if (explicitHost) {
|
|
136
136
|
return [explicitHost];
|
|
137
137
|
}
|
|
138
138
|
return resolveDefaultDaemonHosts();
|
|
139
139
|
}
|
|
140
|
+
export function getExplicitDaemonHost(host, env = process.env) {
|
|
141
|
+
const explicitHost = host ?? env.PASEO_HOST;
|
|
142
|
+
return explicitHost?.trim() ? explicitHost : undefined;
|
|
143
|
+
}
|
|
140
144
|
function stripIpcPrefix(trimmed) {
|
|
141
145
|
if (trimmed.startsWith("unix://"))
|
|
142
146
|
return trimmed.slice("unix://".length).trim();
|
|
@@ -269,7 +273,7 @@ export async function connectToDaemon(options) {
|
|
|
269
273
|
const timeout = options?.timeout ?? DEFAULT_TIMEOUT;
|
|
270
274
|
const clientId = await getOrCreateCliClientId();
|
|
271
275
|
const nodeWebSocketFactory = createNodeWebSocketFactory();
|
|
272
|
-
const explicitHost = options?.host
|
|
276
|
+
const explicitHost = getExplicitDaemonHost(options?.host);
|
|
273
277
|
if (explicitHost?.trim().startsWith("ssh://")) {
|
|
274
278
|
const target = parseSshTransportUri(explicitHost.trim());
|
|
275
279
|
const tunnel = await createSshTunnel(target);
|
|
@@ -3,4 +3,5 @@ export declare function collectMultiple(value: string, previous: string[]): stri
|
|
|
3
3
|
export declare function addJsonOption<T extends Command>(command: T): T;
|
|
4
4
|
export declare function addDaemonHostOption<T extends Command>(command: T): T;
|
|
5
5
|
export declare function addJsonAndDaemonHostOptions<T extends Command>(command: T): T;
|
|
6
|
+
export declare function withGlobalOptions<Args extends unknown[], Result>(handler: (...args: Args) => Result): (...args: Args) => Result;
|
|
6
7
|
//# sourceMappingURL=command-options.d.ts.map
|
|
@@ -14,4 +14,12 @@ export function addDaemonHostOption(command) {
|
|
|
14
14
|
export function addJsonAndDaemonHostOptions(command) {
|
|
15
15
|
return addDaemonHostOption(addJsonOption(command));
|
|
16
16
|
}
|
|
17
|
+
export function withGlobalOptions(handler) {
|
|
18
|
+
return (...args) => {
|
|
19
|
+
const command = args.at(-1);
|
|
20
|
+
const mergedArgs = [...args];
|
|
21
|
+
mergedArgs[mergedArgs.length - 2] = command.optsWithGlobals();
|
|
22
|
+
return handler(...mergedArgs);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
17
25
|
//# sourceMappingURL=command-options.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Paseo CLI - control your AI coding agents from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"paseo": "bin/paseo"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^1.0.0",
|
|
31
|
-
"@getpaseo/client": "0.
|
|
32
|
-
"@getpaseo/protocol": "0.
|
|
33
|
-
"@getpaseo/server": "0.
|
|
31
|
+
"@getpaseo/client": "0.8.0",
|
|
32
|
+
"@getpaseo/protocol": "0.8.0",
|
|
33
|
+
"@getpaseo/server": "0.8.0",
|
|
34
34
|
"chalk": "^5.3.0",
|
|
35
35
|
"commander": "^12.0.0",
|
|
36
36
|
"mime-types": "^2.1.35",
|