neon 8.10.2 → 8.10.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.
@@ -55,6 +55,7 @@ const handler = async (props) => {
55
55
  const text = await askAssistant({
56
56
  prompt: props.prompt,
57
57
  url,
58
+ analytics: props.analytics,
58
59
  acceptEventStream: human,
59
60
  onStatus: (message) => {
60
61
  spinner.setMessage(message);
@@ -129,7 +130,8 @@ async function askAssistant(opts) {
129
130
  headers: {
130
131
  "Content-Type": "application/json",
131
132
  Accept: opts.acceptEventStream ? "text/event-stream" : "application/json",
132
- "x-neon-source": "cli"
133
+ "x-caller-source": "cli",
134
+ ...opts.analytics ? {} : { "x-caller-analytics": "off" }
133
135
  },
134
136
  body: JSON.stringify({ prompt: opts.prompt }),
135
137
  signal: AbortSignal.timeout(ASK_TIMEOUT_MS)
@@ -4,12 +4,12 @@ import { isClaimableEnvTarget } from "../claimable/state.js";
4
4
  import { getCliName } from "../utils/cli_name.js";
5
5
  import { defaultDevEnvFiles, readEnvFile, resolveEnvFilePath } from "../env_file.js";
6
6
  import { l as functionBaseUrlKey } from "../_chunks/env-BpP3Dqpe.js";
7
- import { a as resolveDevEnv } from "../_chunks/env-BNm69Qh8.js";
8
- import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
9
- import { resolveWatchInputs } from "../dev/inputs.js";
10
7
  import { branchIdResolve } from "../utils/enrichers.js";
11
8
  import { bundleEntry } from "../utils/esbuild.js";
9
+ import { a as resolveDevEnv } from "../_chunks/env-BNm69Qh8.js";
12
10
  import { envFlag } from "./config.js";
11
+ import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
12
+ import { resolveWatchInputs } from "../dev/inputs.js";
13
13
  import { existsSync, mkdirSync, rmSync, statSync, writeFileSync } from "node:fs";
14
14
  import { basename, dirname, join, relative, resolve } from "node:path";
15
15
  import { fileURLToPath } from "node:url";
@@ -127,9 +127,9 @@ function siteSearchHeaders(opts) {
127
127
  return {
128
128
  "Content-Type": "application/json",
129
129
  "User-Agent": `neon/${opts.version}`,
130
- "x-neon-source": "cli",
131
- ...opts.agent ? { "x-neon-client": encodeURIComponent(opts.agent) } : {},
132
- ...opts.analytics ? {} : { "x-neon-analytics": "off" }
130
+ "x-caller-source": "cli",
131
+ ...opts.agent ? { "x-caller-client": encodeURIComponent(opts.agent) } : {},
132
+ ...opts.analytics ? {} : { "x-caller-analytics": "off" }
133
133
  };
134
134
  }
135
135
  function isTimeout(error) {
@@ -7,9 +7,9 @@ import { deprecatedServiceMessage, parseServices, servicesFlagValue, servicesOpt
7
7
  import { mergeEnvFile, readEnvFile, resolveEnvFilePath } from "../env_file.js";
8
8
  import { t as NEON_ENV_VAR_KEYS, u as isFunctionBaseUrlKey } from "../_chunks/env-BpP3Dqpe.js";
9
9
  import { ENV_PULL_KEY_HELP, ENV_PULL_SERVICES, envKeysForSelection, envPullFlagValue, ownedEnvServiceKeys, parseEnvPullKeys } from "../env_services.js";
10
- import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "../_chunks/env-BNm69Qh8.js";
11
10
  import { fillSingleProject, resolveBranchRef } from "../utils/enrichers.js";
12
11
  import { warnAiGateway } from "../utils/ai_gateway_notice.js";
12
+ import { i as dropClaimableUnsupported, o as resolveNeonEnvVars } from "../_chunks/env-BNm69Qh8.js";
13
13
  import { formatPulledEnv, pulledBranch } from "./env_output.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import chalk from "chalk";
@@ -1,6 +1,6 @@
1
1
  import { writer } from "../writer.js";
2
- import { o as resolveNeonEnvVars } from "../_chunks/env-BNm69Qh8.js";
3
2
  import { branchIdFromProps } from "../utils/enrichers.js";
3
+ import { o as resolveNeonEnvVars } from "../_chunks/env-BNm69Qh8.js";
4
4
  import YAML from "yaml";
5
5
  //#region src/commands/subscribe.ts
6
6
  const builder = (argv) => argv.usage("$0 realtime subscribe \"<query>\" [options]").positional("query", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.10.2",
3
+ "version": "8.10.3",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -71,9 +71,9 @@
71
71
  "yargs": "17.7.2",
72
72
  "yoctocolors": "^2.1.2",
73
73
  "@neon/realtime": "0.1.2",
74
- "@neon/config": "1.9.3",
74
+ "@neon/config-runtime": "1.10.2",
75
75
  "@neon/sdk": "7.4.0",
76
- "@neon/config-runtime": "1.10.2"
76
+ "@neon/config": "1.9.3"
77
77
  },
78
78
  "optionalDependencies": {
79
79
  "@napi-rs/keyring": "1.3.0",
@@ -111,9 +111,9 @@
111
111
  "vitest": "^3.0.9",
112
112
  "@neon-internals/cli-core": "0.0.0",
113
113
  "@neon-internals/env-core": "0.0.34",
114
- "@neon/e2e-harness": "0.0.0",
114
+ "@neon/functions": "0.11.0",
115
115
  "@neon/env": "1.6.4",
116
- "@neon/functions": "0.11.0"
116
+ "@neon/e2e-harness": "0.0.0"
117
117
  },
118
118
  "publishConfig": {
119
119
  "access": "public",