@getpaseo/cli 0.12.0-beta.1 → 0.12.0-beta.2

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.
@@ -1,4 +1,5 @@
1
1
  import { type Command } from "commander";
2
+ import type { ActiveTurnBehavior } from "@getpaseo/protocol/messages";
2
3
  import type { CommandOptions, SingleResult, OutputSchema } from "../../output/index.js";
3
4
  /** Result type for agent send command */
4
5
  export interface AgentSendResult {
@@ -9,6 +10,7 @@ export interface AgentSendResult {
9
10
  /** Schema for agent send output */
10
11
  export declare const agentSendSchema: OutputSchema<AgentSendResult>;
11
12
  export interface AgentSendOptions extends CommandOptions {
13
+ behavior?: ActiveTurnBehavior;
12
14
  wait?: boolean;
13
15
  image?: string[];
14
16
  prompt?: string;
@@ -1,3 +1,4 @@
1
+ import { Option } from "commander";
1
2
  import { collectMultiple } from "../../utils/command-options.js";
2
3
  import { connectToDaemon } from "../../utils/client.js";
3
4
  import { readFile } from "node:fs/promises";
@@ -19,6 +20,7 @@ export function addSendOptions(cmd) {
19
20
  .option("--prompt <text>", "Provide the message inline as a flag")
20
21
  .option("--prompt-file <path>", "Read the message from a UTF-8 text file")
21
22
  .option("--image <path>", "Attach image(s) to the message", collectMultiple, [])
23
+ .addOption(new Option("--behavior <behavior>", "Active-turn behavior (agent default: steer; otherwise: interrupt)").choices(["interrupt", "steer"]))
22
24
  .option("--no-wait", "Return immediately without waiting for completion");
23
25
  }
24
26
  /**
@@ -138,10 +140,12 @@ export async function runSendCommand(agentIdArg, prompt, options, _command) {
138
140
  try {
139
141
  // Read image files if provided
140
142
  const images = options.image && options.image.length > 0 ? await readImageFiles(options.image) : undefined;
143
+ const sourceAgentId = process.env.PASEO_AGENT_ID?.trim() || undefined;
141
144
  // Send the message
142
145
  await client.sendAgentMessage(agentIdArg, promptInput, {
143
146
  images,
144
- sourceAgentId: process.env.PASEO_AGENT_ID?.trim() || undefined,
147
+ sourceAgentId,
148
+ activeTurnBehavior: options.behavior ?? (sourceAgentId ? "steer" : "interrupt"),
145
149
  });
146
150
  // If --no-wait, return immediately
147
151
  if (options.wait === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/cli",
3
- "version": "0.12.0-beta.1",
3
+ "version": "0.12.0-beta.2",
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.12.0-beta.1",
32
- "@getpaseo/protocol": "0.12.0-beta.1",
33
- "@getpaseo/server": "0.12.0-beta.1",
31
+ "@getpaseo/client": "0.12.0-beta.2",
32
+ "@getpaseo/protocol": "0.12.0-beta.2",
33
+ "@getpaseo/server": "0.12.0-beta.2",
34
34
  "chalk": "^5.3.0",
35
35
  "commander": "^12.0.0",
36
36
  "mime-types": "^2.1.35",