overlord-cli 0.2606041635.0 → 0.2606050717.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.
Files changed (2) hide show
  1. package/bin/_cli/setup.mjs +11 -5
  2. package/package.json +1 -1
@@ -1945,7 +1945,10 @@ function installCodexPermissions() {
1945
1945
  // ---------------------------------------------------------------------------
1946
1946
 
1947
1947
  export async function runSetupCommand(args) {
1948
- const agent = args[0];
1948
+ const yesFlag = args.includes('--yes') || args.includes('-y') ||
1949
+ /^(1|true|yes|on)$/i.test(String(process.env.AGENT_POD_OVERLORD ?? '').trim());
1950
+ const filteredArgs = args.filter(a => a !== '--yes' && a !== '-y');
1951
+ const agent = filteredArgs[0];
1949
1952
 
1950
1953
  if (agent === '--help' || agent === '-h' || agent === 'help') {
1951
1954
  console.log(`Usage:
@@ -1956,7 +1959,10 @@ export async function runSetupCommand(args) {
1956
1959
  ovld setup antigravity Install Overlord Antigravity plugin (agy) and protocol policy rules
1957
1960
  ovld setup opencode Install Overlord connector for OpenCode
1958
1961
  ovld setup all Prepare all supported agents
1959
- ovld doctor Validate installed connectors and check for CLI updates`);
1962
+ ovld doctor Validate installed connectors and check for CLI updates
1963
+
1964
+ Options:
1965
+ --yes, -y Auto-approve all prompts (for non-interactive / pod environments)`);
1960
1966
  return;
1961
1967
  }
1962
1968
 
@@ -2025,7 +2031,7 @@ export async function runSetupCommand(args) {
2025
2031
  console.log('Agent plugins/connectors prepared successfully!\n');
2026
2032
 
2027
2033
  printAgentPermissionsDescription();
2028
- const shouldInstallPermissions = await askYesNo(
2034
+ const shouldInstallPermissions = yesFlag || await askYesNo(
2029
2035
  'Would you like to configure agent permissions for Overlord protocol access?',
2030
2036
  true
2031
2037
  );
@@ -2072,7 +2078,7 @@ export async function runSetupCommand(args) {
2072
2078
  if (agentsThatNeedPermissions.length > 0) {
2073
2079
  console.log();
2074
2080
  printAgentPermissionsDescription();
2075
- const shouldInstallPermissions = await askYesNo(
2081
+ const shouldInstallPermissions = yesFlag || await askYesNo(
2076
2082
  'Would you like to configure agent permissions for Overlord protocol access?',
2077
2083
  true
2078
2084
  );
@@ -2107,7 +2113,7 @@ export async function runSetupCommand(args) {
2107
2113
  if (['claude', 'codex', 'opencode'].includes(agent)) {
2108
2114
  console.log();
2109
2115
  printAgentPermissionsDescription();
2110
- const shouldInstallPermissions = await askYesNo(
2116
+ const shouldInstallPermissions = yesFlag || await askYesNo(
2111
2117
  'Would you like to configure agent permissions for Overlord protocol access?',
2112
2118
  true
2113
2119
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord-cli",
3
- "version": "0.2606041635.0",
3
+ "version": "0.2606050717.0",
4
4
  "description": "Overlord CLI — launch AI agents on tickets from anywhere",
5
5
  "homepage": "https://www.ovld.ai/docs/",
6
6
  "type": "module",