neonctl 2.26.4 → 2.26.6

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/commands/init.js +8 -13
  2. package/package.json +2 -2
package/commands/init.js CHANGED
@@ -9,17 +9,13 @@ 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',
17
18
  describe: 'JSON object with a "step" field to route to a specific phase and phase-specific options.',
18
- })
19
- .option('skip-neon-auth', {
20
- type: 'boolean',
21
- default: false,
22
- describe: 'Skip the Neon Auth setup phase.',
23
19
  })
24
20
  .option('skip-migrations', {
25
21
  type: 'boolean',
@@ -34,11 +30,11 @@ export const builder = (yargs) => yargs
34
30
  .strict(false);
35
31
  export const handler = async (argv) => {
36
32
  try {
37
- // Auto-detect agent from environment if --agent not explicitly provided.
38
- // For IDE-based detection (Cursor, VS Code, Windsurf), require non-TTY stdin
39
- // to distinguish "agent spawned this" from "human typed this in terminal".
40
- const agent = argv.agent || (!process.stdin.isTTY ? detectAgent() : null) || undefined;
41
- 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;
42
38
  // --data with a "step" field routes to the appropriate phase
43
39
  if (argv.data && isAgentMode) {
44
40
  let data;
@@ -59,7 +55,6 @@ export const handler = async (argv) => {
59
55
  if (isAgentMode) {
60
56
  const result = await orchestrate({
61
57
  agent,
62
- skipNeonAuth: argv.skipNeonAuth,
63
58
  skipMigrations: argv.skipMigrations,
64
59
  preview: argv.preview,
65
60
  });
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.4",
8
+ "version": "2.26.6",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",
@@ -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.0",
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",