neon 6.2.1 → 6.2.3

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/dist/env.js +9 -3
  2. package/package.json +5 -5
package/dist/env.js CHANGED
@@ -6,9 +6,15 @@ const isDebug = () => {
6
6
  return Boolean(process.env.DEBUG);
7
7
  };
8
8
  const getCliAgent = (env) => {
9
- const claudeCode = env.CLAUDE_CODE_CHILD_SESSION === "1";
10
- if (claudeCode === (env.CODEX_CI === "1" && (Boolean(env.CODEX_THREAD_ID?.trim()) || Boolean(env.CODEX_SESSION_ID?.trim())))) return void 0;
11
- return claudeCode ? "claude-code" : "codex";
9
+ const active = [
10
+ ["claude-code", env.CLAUDE_CODE_CHILD_SESSION === "1"],
11
+ ["codex", env.CODEX_CI === "1" && (Boolean(env.CODEX_THREAD_ID?.trim()) || Boolean(env.CODEX_SESSION_ID?.trim()))],
12
+ ["cursor", env.CURSOR_AGENT === "1"],
13
+ ["opencode", env.OPENCODE === "1"],
14
+ ["gemini-cli", env.GEMINI_CLI === "1"],
15
+ ["github-copilot-cli", env.COPILOT_CLI === "1"]
16
+ ].filter(([, present]) => present);
17
+ return active.length === 1 ? active[0][0] : void 0;
12
18
  };
13
19
  const getGithubEnvVars = (env) => {
14
20
  const vars = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "6.2.1",
3
+ "version": "6.2.3",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -64,9 +64,9 @@
64
64
  "yaml": "^2.9.0",
65
65
  "yargs": "17.7.2",
66
66
  "yoctocolors": "^2.1.2",
67
- "@neon/config": "1.8.1",
68
- "@neon/sdk": "6.1.1",
69
- "@neon/config-runtime": "1.7.1"
67
+ "@neon/config-runtime": "1.7.2",
68
+ "@neon/config": "1.8.2",
69
+ "@neon/sdk": "6.1.2"
70
70
  },
71
71
  "optionalDependencies": {
72
72
  "@napi-rs/keyring": "1.3.0",
@@ -99,7 +99,7 @@
99
99
  "tsx": "4.22.3",
100
100
  "typescript": "^5.9.0",
101
101
  "vitest": "^3.0.9",
102
- "@neon-internals/env-core": "0.0.24",
102
+ "@neon-internals/env-core": "0.0.25",
103
103
  "@neon/e2e-harness": "0.0.0",
104
104
  "@neon-internals/cli-core": "0.0.0",
105
105
  "@neon/functions": "0.11.0"