agent-yes 1.64.0 → 1.65.0

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.
@@ -1059,7 +1059,7 @@ function tryCatch(catchFn, fn) {
1059
1059
  //#endregion
1060
1060
  //#region package.json
1061
1061
  var name = "agent-yes";
1062
- var version = "1.64.0";
1062
+ var version = "1.65.0";
1063
1063
 
1064
1064
  //#endregion
1065
1065
  //#region ts/pty-fix.ts
@@ -2112,4 +2112,4 @@ const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
2112
2112
 
2113
2113
  //#endregion
2114
2114
  export { AgentContext as a, PidStore as c, config as i, removeControlCharacters as l, CLIS_CONFIG as n, name as o, agentYes as r, version as s, SUPPORTED_CLIS as t };
2115
- //# sourceMappingURL=SUPPORTED_CLIS-DXou-_yV.js.map
2115
+ //# sourceMappingURL=SUPPORTED_CLIS-CWEfLDO6.js.map
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
- import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DXou-_yV.js";
2
+ import { c as PidStore, o as name, s as version, t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-CWEfLDO6.js";
3
3
  import { t as logger } from "./logger-CX77vJDA.js";
4
4
  import { argv } from "process";
5
5
  import { spawn } from "child_process";
@@ -83,6 +83,11 @@ function parseCliArgs(argv) {
83
83
  description: "Control auto-yes mode: 'yes' to auto-approve prompts (default), 'no' to start in manual mode. Press Ctrl+Y during the session to toggle at any time.",
84
84
  choices: ["yes", "no"],
85
85
  default: "yes"
86
+ }).option("yes", {
87
+ type: "boolean",
88
+ description: "Pass --dangerously-skip-permissions to the CLI (claude shortcut)",
89
+ default: false,
90
+ alias: "y"
86
91
  }).option("rust", {
87
92
  type: "boolean",
88
93
  description: "Use the Rust implementation (enabled by default, use --no-rust for TypeScript)",
@@ -140,6 +145,7 @@ function parseCliArgs(argv) {
140
145
  if (key === "robust") yargsConsumed.add("-r");
141
146
  if (key === "idle") yargsConsumed.add("-i");
142
147
  if (key === "exitOnIdle") yargsConsumed.add("-e");
148
+ if (key === "yes") yargsConsumed.add("-y");
143
149
  if (key === "continue") yargsConsumed.add("-c");
144
150
  }
145
151
  });
@@ -169,7 +175,7 @@ function parseCliArgs(argv) {
169
175
  cwd: process.cwd(),
170
176
  env: process.env,
171
177
  cli: cliName || parsedArgv.cli || (dashIndex !== 0 ? parsedArgv._[0]?.toString()?.replace?.(/-yes$/, "") : void 0),
172
- cliArgs: cliArgsForSpawn,
178
+ cliArgs: [...cliArgsForSpawn, ...parsedArgv.yes ? ["--dangerously-skip-permissions"] : []],
173
179
  prompt: [parsedArgv.prompt, dashPrompt].filter(Boolean).join(" ") || void 0,
174
180
  install: parsedArgv.install,
175
181
  exitOnIdle: Number((parsedArgv.timeout || parsedArgv.idle || parsedArgv.exitOnIdle)?.replace(/.*/, (e) => String(ms(e))) || 0),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-DXou-_yV.js";
1
+ import { a as AgentContext, i as config, l as removeControlCharacters, n as CLIS_CONFIG, r as agentYes } from "./SUPPORTED_CLIS-CWEfLDO6.js";
2
2
  import "./logger-CX77vJDA.js";
3
3
 
4
4
  export { AgentContext, CLIS_CONFIG, config, agentYes as default, removeControlCharacters };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.64.0",
3
+ "version": "1.65.0",
4
4
  "description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
5
5
  "keywords": [
6
6
  "ai",
@@ -119,6 +119,12 @@ export function parseCliArgs(argv: string[]) {
119
119
  choices: ["yes", "no"] as const,
120
120
  default: "yes",
121
121
  })
122
+ .option("yes", {
123
+ type: "boolean",
124
+ description: "Pass --dangerously-skip-permissions to the CLI (claude shortcut)",
125
+ default: false,
126
+ alias: "y",
127
+ })
122
128
  .option("rust", {
123
129
  type: "boolean",
124
130
  description: "Use the Rust implementation (enabled by default, use --no-rust for TypeScript)",
@@ -194,6 +200,7 @@ export function parseCliArgs(argv: string[]) {
194
200
  if (key === "robust") yargsConsumed.add("-r");
195
201
  if (key === "idle") yargsConsumed.add("-i");
196
202
  if (key === "exitOnIdle") yargsConsumed.add("-e");
203
+ if (key === "yes") yargsConsumed.add("-y");
197
204
  if (key === "continue") yargsConsumed.add("-c");
198
205
  }
199
206
  });
@@ -248,7 +255,7 @@ export function parseCliArgs(argv: string[]) {
248
255
  (dashIndex !== 0
249
256
  ? parsedArgv._[0]?.toString()?.replace?.(/-yes$/, "")
250
257
  : undefined)) as (typeof SUPPORTED_CLIS)[number],
251
- cliArgs: cliArgsForSpawn,
258
+ cliArgs: [...cliArgsForSpawn, ...(parsedArgv.yes ? ["--dangerously-skip-permissions"] : [])],
252
259
  prompt: [parsedArgv.prompt, dashPrompt].filter(Boolean).join(" ") || undefined,
253
260
  install: parsedArgv.install,
254
261
  exitOnIdle: Number(