@getpaseo/cli 0.17.0-beta.1 → 0.17.1
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.
|
@@ -20,7 +20,7 @@ export function addSendOptions(cmd) {
|
|
|
20
20
|
.option("--prompt <text>", "Provide the message inline as a flag")
|
|
21
21
|
.option("--prompt-file <path>", "Read the message from a UTF-8 text file")
|
|
22
22
|
.option("--image <path>", "Attach image(s) to the message", collectMultiple, [])
|
|
23
|
-
.addOption(new Option("--behavior <behavior>", "Active-turn behavior (agent default: steer waits for turn end; otherwise: interrupt)").choices(["interrupt", "steer"]))
|
|
23
|
+
.addOption(new Option("--behavior <behavior>", "Active-turn behavior (agent default: steer waits for turn end; otherwise: interrupt). An agent's interrupt delivers the messages queued before it first").choices(["interrupt", "steer"]))
|
|
24
24
|
.option("--no-wait", "Return immediately without waiting for completion");
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
@@ -156,7 +156,7 @@ export async function runSendCommand(agentIdArg, prompt, options, _command) {
|
|
|
156
156
|
agentId: agentIdArg,
|
|
157
157
|
status: receipt.deliveryStatus ?? "sent",
|
|
158
158
|
message: receipt.deliveryStatus === "queued"
|
|
159
|
-
? "Message queued for delivery after two quiet seconds and the current turn ends
|
|
159
|
+
? "Message queued for delivery after two quiet seconds and the current turn ends. An interrupt replaces the turn now, after the messages queued before it"
|
|
160
160
|
: "Message sent, not waiting for completion",
|
|
161
161
|
},
|
|
162
162
|
schema: agentSendSchema,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Command } from "commander";
|
|
2
|
+
import { connectToDaemon } from "../../utils/client.js";
|
|
2
3
|
import type { OutputSchema, SingleResult } from "../../output/index.js";
|
|
3
4
|
import { type WorktreeCreateOptions } from "./create-input.js";
|
|
4
5
|
export interface WorktreeCreateResult {
|
|
@@ -8,4 +9,7 @@ export interface WorktreeCreateResult {
|
|
|
8
9
|
}
|
|
9
10
|
export declare const createSchema: OutputSchema<WorktreeCreateResult>;
|
|
10
11
|
export declare function runCreateCommand(options: WorktreeCreateOptions, _command: Command): Promise<SingleResult<WorktreeCreateResult>>;
|
|
12
|
+
export declare function runCreateCommandWithDeps(options: WorktreeCreateOptions, deps: {
|
|
13
|
+
connectToDaemon(options: Parameters<typeof connectToDaemon>[0]): Promise<Pick<Awaited<ReturnType<typeof connectToDaemon>>, "createPaseoWorktree" | "close">>;
|
|
14
|
+
}): Promise<SingleResult<WorktreeCreateResult>>;
|
|
11
15
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -13,9 +13,12 @@ function cmdError(code, message, details) {
|
|
|
13
13
|
return details ? { code, message, details } : { code, message };
|
|
14
14
|
}
|
|
15
15
|
export async function runCreateCommand(options, _command) {
|
|
16
|
+
return runCreateCommandWithDeps(options, { connectToDaemon });
|
|
17
|
+
}
|
|
18
|
+
export async function runCreateCommandWithDeps(options, deps) {
|
|
16
19
|
const cwd = options.cwd ?? process.cwd();
|
|
17
20
|
const request = buildCreateWorktreeRequest(options, cwd);
|
|
18
|
-
const client = await connectToDaemon({ target: options.daemonTarget });
|
|
21
|
+
const client = await deps.connectToDaemon({ target: options.daemonTarget });
|
|
19
22
|
try {
|
|
20
23
|
const response = await client.createPaseoWorktree(request);
|
|
21
24
|
const workspace = response.workspace;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Paseo CLI - control your AI coding agents from the command line",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^1.0.0",
|
|
32
|
-
"@getpaseo/client": "0.17.
|
|
33
|
-
"@getpaseo/protocol": "0.17.
|
|
34
|
-
"@getpaseo/server": "0.17.
|
|
32
|
+
"@getpaseo/client": "0.17.1",
|
|
33
|
+
"@getpaseo/protocol": "0.17.1",
|
|
34
|
+
"@getpaseo/server": "0.17.1",
|
|
35
35
|
"chalk": "^5.3.0",
|
|
36
36
|
"commander": "^12.0.0",
|
|
37
37
|
"mime-types": "^2.1.35",
|