palmier 0.4.7 → 0.4.8

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.
@@ -17,10 +17,9 @@ import { publishHostEvent } from "../events.js";
17
17
  * (for command-triggered mode this is the per-line augmented task).
18
18
  */
19
19
  async function invokeAgentWithContinuation(ctx, invokeTask) {
20
- let followupPrompt;
21
20
  // eslint-disable-next-line no-constant-condition
22
21
  while (true) {
23
- const { command, args, stdin } = ctx.agent.getTaskRunCommandLine(invokeTask, followupPrompt, ctx.transientPermissions);
22
+ const { command, args, stdin } = ctx.agent.getTaskRunCommandLine(invokeTask, undefined, ctx.transientPermissions);
24
23
  const result = await spawnCommand(command, args, {
25
24
  cwd: getRunDir(ctx.taskDir, ctx.runId),
26
25
  env: { ...ctx.guiEnv, PALMIER_TASK_ID: ctx.task.frontmatter.id, PALMIER_RUN_DIR: getRunDir(ctx.taskDir, ctx.runId), PALMIER_HTTP_PORT: String(ctx.config.httpPort ?? 7400) },
@@ -69,7 +68,6 @@ async function invokeAgentWithContinuation(ctx, invokeTask) {
69
68
  }
70
69
  // If the agent actually failed, retry with the new permissions
71
70
  if (outcome === "failed") {
72
- followupPrompt = "Permissions granted, please continue.";
73
71
  continue;
74
72
  }
75
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palmier",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Palmier host CLI - provisions, executes tasks, and serves NATS RPC",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hongxu Cai",
@@ -45,10 +45,9 @@ async function invokeAgentWithContinuation(
45
45
  ctx: InvocationContext,
46
46
  invokeTask: ParsedTask,
47
47
  ): Promise<InvocationResult> {
48
- let followupPrompt: string | undefined;
49
48
  // eslint-disable-next-line no-constant-condition
50
49
  while (true) {
51
- const { command, args, stdin } = ctx.agent.getTaskRunCommandLine(invokeTask, followupPrompt, ctx.transientPermissions);
50
+ const { command, args, stdin } = ctx.agent.getTaskRunCommandLine(invokeTask, undefined, ctx.transientPermissions);
52
51
  const result = await spawnCommand(command, args, {
53
52
  cwd: getRunDir(ctx.taskDir, ctx.runId),
54
53
  env: { ...ctx.guiEnv, PALMIER_TASK_ID: ctx.task.frontmatter.id, PALMIER_RUN_DIR: getRunDir(ctx.taskDir, ctx.runId), PALMIER_HTTP_PORT: String(ctx.config.httpPort ?? 7400) },
@@ -106,7 +105,6 @@ async function invokeAgentWithContinuation(
106
105
 
107
106
  // If the agent actually failed, retry with the new permissions
108
107
  if (outcome === "failed") {
109
- followupPrompt = "Permissions granted, please continue.";
110
108
  continue;
111
109
  }
112
110
  }