neonctl 2.26.5 → 2.26.7

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/commands/env.js CHANGED
@@ -61,8 +61,6 @@ const NEON_OWNED_ENV_KEYS = [
61
61
  ...Object.values(NEON_ENV_VAR_KEYS.postgres),
62
62
  ...Object.values(NEON_ENV_VAR_KEYS.auth),
63
63
  ...Object.values(NEON_ENV_VAR_KEYS.dataApi),
64
- NEON_ENV_VAR_KEYS.storage.regionNeon,
65
- NEON_ENV_VAR_KEYS.storage.forcePathStyle,
66
64
  NEON_ENV_VAR_KEYS.aiGateway.neonToken,
67
65
  NEON_ENV_VAR_KEYS.aiGateway.neonBaseUrl,
68
66
  ];
package/commands/init.js CHANGED
@@ -9,8 +9,9 @@ export const builder = (yargs) => yargs
9
9
  })
10
10
  .option('agent', {
11
11
  alias: 'a',
12
- type: 'string',
13
- describe: 'Agent to configure (cursor, copilot, claude, etc.).',
12
+ type: 'boolean',
13
+ default: false,
14
+ describe: 'Enable agent/JSON mode (agent type is auto-detected).',
14
15
  })
15
16
  .option('data', {
16
17
  type: 'string',
@@ -29,11 +30,11 @@ export const builder = (yargs) => yargs
29
30
  .strict(false);
30
31
  export const handler = async (argv) => {
31
32
  try {
32
- // Auto-detect agent from environment if --agent not explicitly provided.
33
- // For IDE-based detection (Cursor, VS Code, Windsurf), require non-TTY stdin
34
- // to distinguish "agent spawned this" from "human typed this in terminal".
35
- const agent = argv.agent || (!process.stdin.isTTY ? detectAgent() : null) || undefined;
36
- const isAgentMode = agent !== undefined;
33
+ // Auto-detect agent from environment. When --agent is explicitly passed,
34
+ // always detect (the user asked for agent mode). Otherwise, require
35
+ // non-TTY stdin to distinguish agent from human in terminal.
36
+ const agent = (argv.agent || !process.stdin.isTTY ? detectAgent() : null) || undefined;
37
+ const isAgentMode = argv.agent || agent !== undefined;
37
38
  // --data with a "step" field routes to the appropriate phase
38
39
  if (argv.data && isAgentMode) {
39
40
  let data;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+ssh://git@github.com/neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "2.26.5",
8
+ "version": "2.26.7",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",
@@ -61,7 +61,7 @@
61
61
  "@neondatabase/api-client": "2.7.1",
62
62
  "@neondatabase/config": "0.8.0",
63
63
  "@neondatabase/config-runtime": "0.8.0",
64
- "@neondatabase/env": "0.6.0",
64
+ "@neondatabase/env": "0.7.0",
65
65
  "@segment/analytics-node": "1.3.0",
66
66
  "axios": "1.7.2",
67
67
  "axios-debug-log": "1.0.0",
@@ -71,7 +71,7 @@
71
71
  "cliui": "8.0.1",
72
72
  "diff": "5.2.0",
73
73
  "fflate": "^0.8.3",
74
- "neon-init": "0.17.1",
74
+ "neon-init": "0.17.2",
75
75
  "open": "10.1.0",
76
76
  "openid-client": "6.8.1",
77
77
  "pg-protocol": "^1.14.0",