fix: keep AgentRun output flags local
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { stripAgentRunResourceWrapperArgs } from "./agentrun";
|
||||
|
||||
describe("AgentRun resource bridge argv", () => {
|
||||
test("does not forward UniDesk output flags to create task prompt argv", () => {
|
||||
expect(stripAgentRunResourceWrapperArgs([
|
||||
"--aipod",
|
||||
"Artificer",
|
||||
"--prompt-stdin",
|
||||
"-o",
|
||||
"json",
|
||||
"--idempotency-key",
|
||||
"case-262",
|
||||
"--dry-run",
|
||||
])).toEqual([
|
||||
"--aipod",
|
||||
"Artificer",
|
||||
"--prompt-stdin",
|
||||
"--idempotency-key",
|
||||
"case-262",
|
||||
"--dry-run",
|
||||
]);
|
||||
});
|
||||
|
||||
test("strips wrapper display flags while preserving official apply arguments", () => {
|
||||
expect(stripAgentRunResourceWrapperArgs([
|
||||
"-f",
|
||||
"-",
|
||||
"--output=yaml",
|
||||
"--raw",
|
||||
"--full",
|
||||
"--full-text",
|
||||
"--dry-run",
|
||||
])).toEqual([
|
||||
"-f",
|
||||
"-",
|
||||
"--dry-run",
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user