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.
- package/dist/commands/run.js +1 -3
- package/package.json +1 -1
- package/src/commands/run.ts +1 -3
package/dist/commands/run.js
CHANGED
|
@@ -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,
|
|
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
package/src/commands/run.ts
CHANGED
|
@@ -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,
|
|
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
|
}
|