neon 9.2.1 → 9.3.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.
@@ -6,7 +6,7 @@ import { withExclusiveLock } from "../refresh_lock.js";
6
6
  import { getApiClient, isNeonApiError } from "../api.js";
7
7
  import { setAuthContext } from "../auth_context.js";
8
8
  import { a as isOwnedCredentialPath } from "./paths-B55ZfOg1.js";
9
- import { currentContextFile, isAskCommand, isClaimCommand, isConfigAdd, isConfigInit, isCurrentBranchProbe, isDocsCommand, isFeedbackCommand, isFunctionsTemplateCommand, isGitLocalCommand, isInspectDbUrl, isMcpCommand, isMcpOauth, isPluginsCommand, isProfileCommand, isSkillsCommand, isUnfollowedGitHookSync, readContextFile } from "../context.js";
9
+ import { currentContextFile, isAskCommand, isClaimCommand, isConfigAdd, isConfigInit, isCurrentBranchProbe, isDocsCommand, isFeedbackCommand, isFunctionsTemplateCommand, isGitLocalCommand, isIncidentsCommand, isInspectDbUrl, isMcpCommand, isMcpOauth, isPluginsCommand, isProfileCommand, isSkillsCommand, isUnfollowedGitHookSync, readContextFile } from "../context.js";
10
10
  import { _ as upsertProfile, d as newProfileLocation, g as selectProfileName, h as resolveProfile, i as assertValidProfileName, l as locationForName, m as readProfiles, n as KEYRING_CREDENTIALS, p as profilesUsingPath, r as assertProfilesUsable, s as isKeyringPointer, t as DEFAULT_PROFILE, u as locationOf } from "./profiles-DTazQtjK.js";
11
11
  import { extendTokenSet } from "../utils/auth.js";
12
12
  import { AuthRefreshError, auth, classifyRefreshFailure, refreshToken } from "../auth.js";
@@ -338,7 +338,7 @@ const ensureAuth = async (props) => {
338
338
  if (isInspectDbUrl(props)) return;
339
339
  if (props._[0] === "open") return;
340
340
  if (isSkillsCommand(props) || isPluginsCommand(props)) return;
341
- if (isAskCommand(props) || isFeedbackCommand(props) || isDocsCommand(props)) return;
341
+ if (isAskCommand(props) || isFeedbackCommand(props) || isDocsCommand(props) || isIncidentsCommand(props)) return;
342
342
  if (props._[0] === "init") {
343
343
  selectCredential({
344
344
  ...credentialInputs(),
@@ -12,8 +12,8 @@ import { fillSingleProject, listAllProjectBranches } from "../utils/enrichers.js
12
12
  import { buildCheckoutEvent, readGitContext } from "../utils/git.js";
13
13
  import { buildHookBranch, loadHookConfig, resolveHookEnv, runCheckoutAfterHook, runCheckoutBeforeHook, runCreateAfterHook, runCreateBeforeHook } from "../utils/hooks.js";
14
14
  import { n as autoPullEnvAfterPin } from "./env-DxcO3oJk.js";
15
- import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-aBF_xpbX.js";
16
- import { i as handler$1 } from "./link-CYwhNbA4.js";
15
+ import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-8PrVJ-gQ.js";
16
+ import { i as handler$1 } from "./link-Ob3NoNIS.js";
17
17
  import chalk from "chalk";
18
18
  import prompts from "prompts";
19
19
  // src/commands/checkout.ts
@@ -7,7 +7,7 @@ import "../config.js";
7
7
  import { contextBranch, ensureDirectoryGitignored, readContextFile } from "../context.js";
8
8
  import { DetailedError } from "../errors.js";
9
9
  import { getCliName } from "../utils/cli_name.js";
10
- import { l as existingApiClient } from "./auth-rup6nemJ.js";
10
+ import { l as existingApiClient } from "./auth-CcIEvgb7.js";
11
11
  import { NEON_SERVICES, NEON_SERVICE_LABELS, deprecatedServiceMessage, servicesFlagValue, servicesOption } from "../neon_services.js";
12
12
  import { FUNCTION_FILENAME, FUNCTION_SLUG, FUNCTION_TEMPLATE, REQUIRED_PACKAGES, dataApiChoiceFromView, parseConfigInitServices, renderFunctionSource, renderNeonConfig, renderNeonConfigFromView } from "../config_template.js";
13
13
  import { TYPESCRIPT_EXTENSION, asRelativeModulePath, editNeonConfig } from "../config_edit.js";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
2
2
  import { fillSingleProject } from "../utils/enrichers.js";
3
- import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-aBF_xpbX.js";
3
+ import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-8PrVJ-gQ.js";
4
4
  import { DEPLOY_COMMANDS_EPILOGUE } from "../commands/deploy_help.js";
5
5
  // src/commands/deploy.ts
6
6
  var deploy_exports = /* @__PURE__ */ __exportAll({
@@ -7,7 +7,7 @@ import { t as NEON_DEV_FUNCTION_PORTS } from "./env-EJU-0InB.js";
7
7
  import { branchIdResolve } from "../utils/enrichers.js";
8
8
  import { bundleEntry } from "../utils/esbuild.js";
9
9
  import { a as resolveDevEnv } from "./env-CFBmcKyo.js";
10
- import { f as envFlag } from "./config-aBF_xpbX.js";
10
+ import { f as envFlag } from "./config-8PrVJ-gQ.js";
11
11
  import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
12
12
  import { resolveWatchInputs } from "../dev/inputs.js";
13
13
  import { existsSync, mkdirSync, rmSync, statSync, writeFileSync } from "node:fs";
@@ -5,8 +5,8 @@ import { CONTEXT_FILE, contextBranch, gitBranchMap, gitBranchMapping, isUnfollow
5
5
  import { writer } from "../writer.js";
6
6
  import { neonSafeBranchName } from "../utils/branch_name.js";
7
7
  import { currentGitBranch, gitPull, gitRepoRoot, hasUpstream, installPostCheckoutHook, isGitRepo, isManagedHook, localGitBranches, postCheckoutHookPath, readGitContext, removePostCheckoutHook } from "../utils/git.js";
8
- import { o as quoteFlagValue } from "./link-CYwhNbA4.js";
9
- import { o as handler$1 } from "./checkout-Bw48iTay.js";
8
+ import { o as quoteFlagValue } from "./link-Ob3NoNIS.js";
9
+ import { o as handler$1 } from "./checkout-Bpomfu6c.js";
10
10
  import { existsSync } from "node:fs";
11
11
  import { join } from "node:path";
12
12
  import chalk from "chalk";
@@ -0,0 +1,124 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
2
+ import { writer } from "../writer.js";
3
+ import { noPassthrough } from "../utils/flags.js";
4
+ import { NeonNetworkError, listNeonIncidents } from "@neon/sdk";
5
+ // src/commands/incidents.ts
6
+ var incidents_exports = /* @__PURE__ */ __exportAll({
7
+ builder: () => builder,
8
+ command: () => command,
9
+ describe: () => describe,
10
+ fetchReport: () => fetchReport,
11
+ handler: () => handler,
12
+ renderReport: () => renderReport
13
+ });
14
+ const command = "incidents";
15
+ const describe = "Show open Neon incidents and maintenance";
16
+ const builder = (argv) => argv.usage("$0 incidents").strict().check(noPassthrough("incidents")).example("$0 incidents", describe).example("$0 incidents -o json", "Print the full report as JSON").epilogue(["", "Reads the public status page at https://neonstatus.com. No login or linked project is needed."].join("\n"));
17
+ const handler = async (props) => {
18
+ const report = await fetchReport();
19
+ if (props.output === "json" || props.output === "yaml") {
20
+ writer(props).end(report, { fields: [
21
+ "status",
22
+ "updated_at",
23
+ "status_page_url"
24
+ ] });
25
+ return;
26
+ }
27
+ renderReport(report, writer(props));
28
+ };
29
+ async function fetchReport(options) {
30
+ try {
31
+ return await listNeonIncidents(options);
32
+ } catch (error) {
33
+ if (error instanceof NeonNetworkError) throw new Error(`Could not reach neonstatus.com (${error.reason}). Check your internet connection and try again.`);
34
+ throw error;
35
+ }
36
+ }
37
+ const CONTROL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f]/g;
38
+ const clean = (text) => text.replace(CONTROL_CHARACTERS, "");
39
+ function printable(report) {
40
+ return {
41
+ ...report,
42
+ updated_at: clean(report.updated_at),
43
+ incidents: report.incidents.map((incident) => ({
44
+ ...incident,
45
+ id: clean(incident.id),
46
+ name: clean(incident.name),
47
+ started_at: clean(incident.started_at),
48
+ updated_at: clean(incident.updated_at),
49
+ latest_update: clean(incident.latest_update),
50
+ components: incident.components.map(clean),
51
+ regions: incident.regions.map(clean),
52
+ url: clean(incident.url)
53
+ })),
54
+ maintenance: report.maintenance.map((entry) => ({
55
+ ...entry,
56
+ id: clean(entry.id),
57
+ name: clean(entry.name),
58
+ planned_start: clean(entry.planned_start),
59
+ planned_end: clean(entry.planned_end),
60
+ latest_update: clean(entry.latest_update),
61
+ components: entry.components.map(clean),
62
+ regions: entry.regions.map(clean),
63
+ url: clean(entry.url)
64
+ })),
65
+ affected_components: report.affected_components.map((component) => ({
66
+ ...component,
67
+ name: clean(component.name),
68
+ regions: component.regions.map(clean)
69
+ }))
70
+ };
71
+ }
72
+ function renderReport(untrusted, out) {
73
+ const report = printable(untrusted);
74
+ out.write({
75
+ status: report.status,
76
+ updated_at: report.updated_at,
77
+ status_page_url: report.status_page_url
78
+ }, { fields: [
79
+ "status",
80
+ "updated_at",
81
+ "status_page_url"
82
+ ] });
83
+ if (report.incidents.length === 0 && report.maintenance.length === 0 && report.affected_components.length === 0) {
84
+ out.end();
85
+ out.text("\nNo open incidents or maintenance.\n");
86
+ return;
87
+ }
88
+ if (report.incidents.length > 0) out.write(report.incidents, {
89
+ title: "Incidents",
90
+ fields: [
91
+ "name",
92
+ "state",
93
+ "status",
94
+ "started_at",
95
+ "components",
96
+ "regions",
97
+ "latest_update",
98
+ "url"
99
+ ]
100
+ });
101
+ if (report.affected_components.length > 0) out.write(report.affected_components, {
102
+ title: "Affected components",
103
+ fields: [
104
+ "name",
105
+ "status",
106
+ "regions"
107
+ ]
108
+ });
109
+ if (report.maintenance.length > 0) out.write(report.maintenance, {
110
+ title: "Maintenance",
111
+ fields: [
112
+ "name",
113
+ "state",
114
+ "planned_start",
115
+ "planned_end",
116
+ "components",
117
+ "regions",
118
+ "latest_update",
119
+ "url"
120
+ ]
121
+ });
122
+ out.end();
123
+ }
124
+ export { handler as a, fetchReport as i, command as n, incidents_exports as o, describe as r, renderReport as s, builder as t };
@@ -14,7 +14,7 @@ import { createBranch, pickBranchInteractively } from "../utils/branch_picker.js
14
14
  import { looksLikeBranchId } from "../utils/formats.js";
15
15
  import { listAllProjectBranches } from "../utils/enrichers.js";
16
16
  import { n as autoPullEnvAfterPin } from "./env-DxcO3oJk.js";
17
- import { h as initCmd } from "./config-aBF_xpbX.js";
17
+ import { h as initCmd } from "./config-8PrVJ-gQ.js";
18
18
  import { formatLinkSummary } from "../commands/link_output.js";
19
19
  import { r as REGIONS } from "./projects-a3X4OFEJ.js";
20
20
  import prompts from "prompts";
@@ -10,7 +10,7 @@ import { _ as upsertProfile, a as canDropProfilesFile, c as listProfiles, d as n
10
10
  import { auth, revokeToken } from "../auth.js";
11
11
  import { t as credentialInputs } from "./auth_selection-CwGLN9Qz.js";
12
12
  import { readOutgoingCredential, retirePreviousCredential, revokeTokenSet, withdrawKey } from "../retire_credential.js";
13
- import { m as usableCredential, n as authFlow } from "./auth-rup6nemJ.js";
13
+ import { m as usableCredential, n as authFlow } from "./auth-CcIEvgb7.js";
14
14
  import { identityFromAuthDetails, isApiKeyMethod, mintedKeyName, notAnApiKeyMessage } from "../profile_keys.js";
15
15
  import { writer } from "../writer.js";
16
16
  import { noPassthrough, single } from "../utils/flags.js";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
2
2
  import { fillSingleProject } from "../utils/enrichers.js";
3
- import { y as status } from "./config-aBF_xpbX.js";
3
+ import { y as status } from "./config-8PrVJ-gQ.js";
4
4
  // src/commands/status.ts
5
5
  var status_exports = /* @__PURE__ */ __exportAll({
6
6
  builder: () => builder,
@@ -2,7 +2,7 @@ import { t as storeFor } from "./_chunks/credential_io-DbeSh3Pl.js";
2
2
  import { log } from "./log.js";
3
3
  import { authFailureMessage, getAuthContext, locationFromContext } from "./auth_context.js";
4
4
  import { AuthRefreshError } from "./auth.js";
5
- import { d as isAccessTokenUsable, p as refreshStoredCredentials } from "./_chunks/auth-rup6nemJ.js";
5
+ import { d as isAccessTokenUsable, p as refreshStoredCredentials } from "./_chunks/auth-CcIEvgb7.js";
6
6
  // src/auth_recovery.ts
7
7
  const supersededOnDisk = (rejectedToken) => {
8
8
  if (rejectedToken === void 0) return false;
@@ -1 +1 @@
1
- export { t as aliases, n as authFlow, i as builder, a as command, o as deleteCredentialsAt, s as describe, c as ensureAuth, l as existingApiClient, u as handler, d as isAccessTokenUsable, f as locationForAuth, p as refreshStoredCredentials, m as usableCredential } from "../_chunks/auth-rup6nemJ.js";
1
+ export { t as aliases, n as authFlow, i as builder, a as command, o as deleteCredentialsAt, s as describe, c as ensureAuth, l as existingApiClient, u as handler, d as isAccessTokenUsable, f as locationForAuth, p as refreshStoredCredentials, m as usableCredential } from "../_chunks/auth-CcIEvgb7.js";
@@ -1 +1 @@
1
- export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Bw48iTay.js";
1
+ export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-Bpomfu6c.js";
@@ -1 +1 @@
1
- export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-aBF_xpbX.js";
1
+ export { t as ConfigInstallFailed, n as addCmd, r as applyCmd, i as applyFlags, a as applyPolicyOnCreate, o as builder, s as command, l as createBranchFromPolicyOnCheckout, u as describe, d as ensureConfigPackages, f as envFlag, p as envPullFlag, m as handler, h as initCmd, g as installCommandFrom, _ as missingDependencies, v as planCmd, y as status } from "../_chunks/config-8PrVJ-gQ.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-CMYTjbf6.js";
1
+ export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-CWwg_lkJ.js";
@@ -1 +1 @@
1
- export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionPortsEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-r0-8mPJk.js";
1
+ export { t as builder, n as captureShellEnv, r as command, i as describe, a as devBundleDir, o as devEnvContext, c as diffUnits, l as formatEnvFiles, u as formatEnvSummary, d as handler, f as loadDevEnvFiles, p as localFunctionPortsEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-C6LAcA3H.js";
@@ -8,7 +8,7 @@ import { writer } from "../writer.js";
8
8
  import { formatInitDone, printInitDone } from "../init/chrome.js";
9
9
  import { FUNCTION_SLUG_PATTERN, deriveFunctionSlug } from "../utils/function_slug.js";
10
10
  import { displayPath } from "./env_output.js";
11
- import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-aBF_xpbX.js";
11
+ import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-8PrVJ-gQ.js";
12
12
  import { recommendedOperations } from "../functions/registry.js";
13
13
  import { collidingFiles, operationsFromFlags, planConfigRegistration, planEnvExample, planScaffold, writeScaffold } from "../functions/scaffold.js";
14
14
  import { describeRegistrySource, openRegistry } from "../functions/source.js";
@@ -1 +1 @@
1
- export { t as aliases, n as builder, r as cleanup, i as command, a as describe, s as handler, c as install, l as partitionBranchesToPrune, u as status, d as sync, f as uninstall } from "../_chunks/git-0gR_dDCC.js";
1
+ export { t as aliases, n as builder, r as cleanup, i as command, a as describe, s as handler, c as install, l as partitionBranchesToPrune, u as status, d as sync, f as uninstall } from "../_chunks/git-DewAITTN.js";
@@ -0,0 +1 @@
1
+ export { t as builder, n as command, r as describe, i as fetchReport, a as handler, s as renderReport } from "../_chunks/incidents-D6rDn1g2.js";
@@ -1,30 +1,31 @@
1
- import { r as auth_exports } from "../_chunks/auth-rup6nemJ.js";
1
+ import { r as auth_exports } from "../_chunks/auth-CcIEvgb7.js";
2
2
  import { t as api_exports } from "../_chunks/api-1MKsfpY3.js";
3
3
  import { n as api_keys_exports } from "../_chunks/api_keys-CTFHd5m_.js";
4
4
  import { n as ask_exports } from "../_chunks/ask-Xlek1Pxh.js";
5
5
  import { o as env_exports } from "../_chunks/env-DxcO3oJk.js";
6
- import { c as config_exports } from "../_chunks/config-aBF_xpbX.js";
6
+ import { c as config_exports } from "../_chunks/config-8PrVJ-gQ.js";
7
7
  import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
8
- import { a as link_exports } from "../_chunks/link-CYwhNbA4.js";
8
+ import { a as link_exports } from "../_chunks/link-Ob3NoNIS.js";
9
9
  import { o as mcp_exports } from "../_chunks/mcp-SvqWzHnT.js";
10
10
  import { c as plugins_exports } from "../_chunks/plugins-BwUZQ6Ic.js";
11
11
  import { l as skills_exports } from "../_chunks/skills-Bv8oKKwE.js";
12
12
  import { t as bootstrap_exports } from "../_chunks/bootstrap-B73qVB39.js";
13
13
  import { r as branches_exports } from "../_chunks/branches-Bp-5z1lM.js";
14
14
  import { n as bucket_exports } from "../_chunks/bucket-D06bvDSa.js";
15
- import { n as checkout_exports } from "../_chunks/checkout-Bw48iTay.js";
15
+ import { n as checkout_exports } from "../_chunks/checkout-Bpomfu6c.js";
16
16
  import { o as claim_exports } from "../_chunks/claim-BVEwQ65H.js";
17
17
  import { o as connection_string_exports } from "../_chunks/connection_string-6WhV4WFx.js";
18
18
  import { a as credentials_exports } from "../_chunks/credentials-BMBNmW0t.js";
19
19
  import { r as data_api_exports } from "../_chunks/data_api-CHDwvMTG.js";
20
20
  import { s as databases_exports } from "../_chunks/databases-B-qY303S.js";
21
- import { r as deploy_exports } from "../_chunks/deploy-CMYTjbf6.js";
22
- import { s as dev_exports } from "../_chunks/dev-r0-8mPJk.js";
21
+ import { r as deploy_exports } from "../_chunks/deploy-CWwg_lkJ.js";
22
+ import { s as dev_exports } from "../_chunks/dev-C6LAcA3H.js";
23
23
  import { i as diff_exports } from "../_chunks/diff-dnxneH0u.js";
24
24
  import { c as docs_exports } from "../_chunks/docs-BpLiSTmm.js";
25
25
  import { o as feedback_exports } from "../_chunks/feedback-mQmdTRFn.js";
26
26
  import { o as functions_exports } from "../_chunks/functions-PHaU-kRb.js";
27
- import { o as git_exports } from "../_chunks/git-0gR_dDCC.js";
27
+ import { o as git_exports } from "../_chunks/git-DewAITTN.js";
28
+ import { o as incidents_exports } from "../_chunks/incidents-D6rDn1g2.js";
28
29
  import { a as init_exports } from "../_chunks/init-D2fClHtC.js";
29
30
  import { o as inspect_exports } from "../_chunks/inspect-yFAb61qo.js";
30
31
  import { a as ip_allow_exports } from "../_chunks/ip_allow-DBdxNEUa.js";
@@ -36,11 +37,11 @@ import { o as orgs_exports } from "../_chunks/orgs-BrvAWM8Z.js";
36
37
  import { o as psql_exports } from "../_chunks/psql-BcxiPR4W.js";
37
38
  import { f as roles_exports } from "../_chunks/roles-BELJqjTy.js";
38
39
  import { o as postgres_exports } from "../_chunks/postgres-BhR1vUFM.js";
39
- import { o as profile_exports } from "../_chunks/profile-CArcjyS4.js";
40
+ import { o as profile_exports } from "../_chunks/profile-Cc25J9K4.js";
40
41
  import { s as realtime_exports } from "../_chunks/realtime-BwtzYf5a.js";
41
42
  import { a as set_context_exports } from "../_chunks/set_context-ompB6d2D.js";
42
43
  import { s as snapshots_exports } from "../_chunks/snapshots-DxNhjcco.js";
43
- import { a as status_exports } from "../_chunks/status-Du6yqWxf.js";
44
+ import { a as status_exports } from "../_chunks/status-D7DnlVCu.js";
44
45
  import { d as triggers_exports } from "../_chunks/triggers-BfvyeJUC.js";
45
46
  import { s as user_exports } from "../_chunks/user-D9mC430O.js";
46
47
  import { i as vpc_endpoints_exports } from "../_chunks/vpc_endpoints-C-Y4WK2M.js";
@@ -79,6 +80,7 @@ var commands_default = [
79
80
  ask_exports,
80
81
  feedback_exports,
81
82
  docs_exports,
83
+ incidents_exports,
82
84
  data_api_exports,
83
85
  realtime_exports,
84
86
  functions_exports,
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler, o as quoteFlagValue, s as runLink, c as shouldOfferConfigInit } from "../_chunks/link-CYwhNbA4.js";
1
+ export { t as builder, n as command, r as describe, i as handler, o as quoteFlagValue, s as runLink, c as shouldOfferConfigInit } from "../_chunks/link-Ob3NoNIS.js";
@@ -192,6 +192,11 @@ const commandManifest = [
192
192
  describe: "Search neon.com docs, guides, and more",
193
193
  load: () => import("./docs.js")
194
194
  },
195
+ {
196
+ command: "incidents",
197
+ describe: "Show open Neon incidents and maintenance",
198
+ load: () => import("./incidents.js")
199
+ },
195
200
  {
196
201
  command: "data-api",
197
202
  describe: "Manage the Neon Data API for a database",
@@ -1 +1 @@
1
- export { t as aliases, n as builder, r as command, i as describe, a as handler } from "../_chunks/profile-CArcjyS4.js";
1
+ export { t as aliases, n as builder, r as command, i as describe, a as handler } from "../_chunks/profile-Cc25J9K4.js";
@@ -1 +1 @@
1
- export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-Du6yqWxf.js";
1
+ export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-D7DnlVCu.js";
package/dist/context.js CHANGED
@@ -93,6 +93,8 @@ const isAskCommand = (args) => args._[0] === "ask";
93
93
  const isFeedbackCommand = (args) => args._[0] === "feedback";
94
94
  /** Docs search calls public neon.com search, so it needs no credentials or `.neon` context. */
95
95
  const isDocsCommand = (args) => args._[0] === "docs";
96
+ /** Incidents read the public neonstatus.com API, so they need no credentials or `.neon` context. */
97
+ const isIncidentsCommand = (args) => args._[0] === "incidents";
96
98
  /**
97
99
  * `inspect db --db-url` talks to Postgres with that URI. Skip only when the
98
100
  * parsed value is nonempty: empty `--db-url` still goes through project
@@ -180,7 +182,7 @@ const enrichFromContext = (args) => {
180
182
  if (isProfileCommand(args)) return;
181
183
  if (isMcpCommand(args)) return;
182
184
  if (isSkillsCommand(args) || isPluginsCommand(args)) return;
183
- if (isAskCommand(args) || isFeedbackCommand(args) || isDocsCommand(args)) return;
185
+ if (isAskCommand(args) || isFeedbackCommand(args) || isDocsCommand(args) || isIncidentsCommand(args)) return;
184
186
  if (isClaimCommand(args)) return;
185
187
  const context = readContextFile(args.contextFile);
186
188
  if (!args.orgId) args.orgId = context.orgId;
@@ -359,4 +361,4 @@ const globToRegExp = (pattern) => {
359
361
  const source = pattern.replace(/[.+^${}()|\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]");
360
362
  return new RegExp(`^${source}$`);
361
363
  };
362
- export { CONTEXT_FILE, applyContext, contextBranch, currentContextFile, enrichFromContext, ensureDirectoryGitignored, ensureGitignored, gitBranchMap, gitBranchMapping, isApiKeysCommand, isAskCommand, isClaimCommand, isConfigAdd, isConfigInit, isCurrentBranchProbe, isDocsCommand, isFeedbackCommand, isFunctionsTemplateCommand, isGitLocalCommand, isInspectDbUrl, isMcpCommand, isMcpOauth, isPluginsCommand, isProfileCommand, isSkillsCommand, isUnfollowedGitHookSync, readContextFile, setContext, setGitBranchMap, setGitBranchMapping, setGitFollow, updateContextFile, walkContextFile };
364
+ export { CONTEXT_FILE, applyContext, contextBranch, currentContextFile, enrichFromContext, ensureDirectoryGitignored, ensureGitignored, gitBranchMap, gitBranchMapping, isApiKeysCommand, isAskCommand, isClaimCommand, isConfigAdd, isConfigInit, isCurrentBranchProbe, isDocsCommand, isFeedbackCommand, isFunctionsTemplateCommand, isGitLocalCommand, isIncidentsCommand, isInspectDbUrl, isMcpCommand, isMcpOauth, isPluginsCommand, isProfileCommand, isSkillsCommand, isUnfollowedGitHookSync, readContextFile, setContext, setGitBranchMap, setGitBranchMapping, setGitFollow, updateContextFile, walkContextFile };
package/dist/errors.js CHANGED
@@ -20,6 +20,8 @@ const ERROR_MATCHERS = [
20
20
  [/^Cannot install the Neon plugin for /, "AGENT_COMMAND_UNAVAILABLE"],
21
21
  [/^(Failed to install the Neon plugin for: |plugins CLI (failed|timed out))/, "PLUGINS_CLI_FAILED"],
22
22
  [/^Could not install the Neon dependencies/, "DEPENDENCY_INSTALL_FAILED"],
23
+ [/^Could not reach neonstatus\.com /, "NETWORK_ERROR"],
24
+ [/^Timed out waiting for neonstatus\.com /, "REQUEST_TIMEOUT"],
23
25
  [/ (is|are) no longer pulled\. Pull NEON_BRANCH_ID /, "LEGACY_FUNCTION_ENV_KEY"]
24
26
  ];
25
27
  const matchErrorCode = (message) => {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { NETWORK_ERROR_MESSAGE, isNetworkError, matchErrorCode } from "./errors.
9
9
  import { analyticsMiddleware, closeAnalytics, initAnalyticsClientMiddleware, isAnalyticsActive, recordCommandSuccessExtras, sendError, takeCommandSuccessExtras, trackCommandSuccess } from "./analytics.js";
10
10
  import { AuthRefreshError, defaultClientID } from "./auth.js";
11
11
  import { getCliName } from "./utils/cli_name.js";
12
- import { c as ensureAuth } from "./_chunks/auth-rup6nemJ.js";
12
+ import { c as ensureAuth } from "./_chunks/auth-CcIEvgb7.js";
13
13
  import { recoverFrom401 } from "./auth_recovery.js";
14
14
  import { UsageError, failOnUsageError, isBareParentCommand, showHelp, showUsageErrorHelp } from "./help.js";
15
15
  import { lazyCommands, preloadCommand } from "./commands/manifest.js";
@@ -42,6 +42,7 @@ const NO_SUBCOMMANDS_VERBS = [
42
42
  "skill",
43
43
  "ask",
44
44
  "feedback",
45
+ "incidents",
45
46
  "dev",
46
47
  "deploy",
47
48
  "diff",
package/dist/init/auth.js CHANGED
@@ -2,7 +2,7 @@ import { isNeonApiError } from "../api.js";
2
2
  import { r as defaultDir } from "../_chunks/paths-B55ZfOg1.js";
3
3
  import "../config.js";
4
4
  import "../auth.js";
5
- import { c as ensureAuth, l as existingApiClient } from "../_chunks/auth-rup6nemJ.js";
5
+ import { c as ensureAuth, l as existingApiClient } from "../_chunks/auth-CcIEvgb7.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
7
  import { c as pull } from "../_chunks/env-DxcO3oJk.js";
8
8
  import { c as setupNeonMcp } from "../_chunks/mcp-SvqWzHnT.js";
@@ -1,10 +1,10 @@
1
1
  import { isNeonApiError } from "../api.js";
2
2
  import { contextBranch, readContextFile } from "../context.js";
3
- import { c as ensureAuth } from "../_chunks/auth-rup6nemJ.js";
3
+ import { c as ensureAuth } from "../_chunks/auth-CcIEvgb7.js";
4
4
  import { recoverFrom401 } from "../auth_recovery.js";
5
5
  import { loadProjectConfig } from "../project.js";
6
6
  import { loadEnvFileIntoProcess } from "../env_file.js";
7
- import { r as applyCmd } from "../_chunks/config-aBF_xpbX.js";
7
+ import { r as applyCmd } from "../_chunks/config-8PrVJ-gQ.js";
8
8
  import { authContext } from "./auth.js";
9
9
  import { existsSync } from "node:fs";
10
10
  import { missingFunctionEnv } from "@neon/config";
package/dist/init/link.js CHANGED
@@ -2,9 +2,9 @@ import { isNeonApiError } from "../api.js";
2
2
  import { r as defaultDir } from "../_chunks/paths-B55ZfOg1.js";
3
3
  import "../config.js";
4
4
  import "../auth.js";
5
- import { c as ensureAuth } from "../_chunks/auth-rup6nemJ.js";
5
+ import { c as ensureAuth } from "../_chunks/auth-CcIEvgb7.js";
6
6
  import { recoverFrom401 } from "../auth_recovery.js";
7
- import { s as runLink } from "../_chunks/link-CYwhNbA4.js";
7
+ import { s as runLink } from "../_chunks/link-Ob3NoNIS.js";
8
8
  // src/init/link.ts
9
9
  const isUnauthorized = (error) => isNeonApiError(error) && error.status === 401;
10
10
  const authenticationFailed = () => /* @__PURE__ */ new Error("Authentication failed.");
package/dist/init/run.js CHANGED
@@ -14,8 +14,8 @@ import { getAgentDisplayName } from "../mcp/agents.js";
14
14
  import { missingPluginsCommands, pluginsCommandProblemText, pluginsInstallableAgents, unusablePluginsCommands } from "../plugins/targets.js";
15
15
  import { AGENTS_NOT_INSTALLED, CANCELLED_BODY, CLAIMABLE_ACCOUNT_FLAGS, CLAIMABLE_ALREADY_LINKED, CLAIMABLE_MCP_API_KEY, CLAIMABLE_NO_LINK, MCP_API_KEY_NEEDS_AUTH, MCP_SCOPED_NEEDS_PROJECT, NON_TTY_LINK_NEEDS_AUTH, NO_AGENTS_FALLBACK_STATUS, PROGRESS, PROJECT_PINNED_OFFLINE, claimableNext, claimableThenServicesNext, configInitNext, envPullFailedNext, existingConfigNext, installFailedNext, mcpAfterLinkNext, mcpConfigLocationSkipped, mcpConfigLocationUnavailable, mcpKeyFailedNext, namedAgentsUnavailable, newConfigNext, offlinePinNext, skippedLinkNext, toolingFailedNext, unattendedUnauthedNext } from "./copy.js";
16
16
  import { agentsRowValue, configRowValue, formatInitDone, headingForKind, printInitBanner, printInitDone, printInitProgress, projectRowValue, shouldPrintInitBanner } from "./chrome.js";
17
- import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-aBF_xpbX.js";
18
- import { o as quoteFlagValue, s as runLink } from "../_chunks/link-CYwhNbA4.js";
17
+ import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-8PrVJ-gQ.js";
18
+ import { o as quoteFlagValue, s as runLink } from "../_chunks/link-Ob3NoNIS.js";
19
19
  import { runAuthenticatedLink } from "./link.js";
20
20
  import { mcpInstallableAgents } from "../mcp/targets.js";
21
21
  import { skillsInstallableAgents } from "../skills/targets.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "9.2.1",
3
+ "version": "9.3.0",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -73,10 +73,10 @@
73
73
  "yaml": "^2.9.0",
74
74
  "yargs": "17.7.2",
75
75
  "yoctocolors": "^2.1.2",
76
- "@neon/config": "1.13.0",
77
- "@neon/config-runtime": "1.12.0",
78
76
  "@neon/realtime": "0.2.1",
79
- "@neon/sdk": "7.11.0"
77
+ "@neon/sdk": "7.12.0",
78
+ "@neon/config": "1.13.1",
79
+ "@neon/config-runtime": "1.12.1"
80
80
  },
81
81
  "optionalDependencies": {
82
82
  "@napi-rs/keyring": "1.3.0",
@@ -113,10 +113,10 @@
113
113
  "typescript": "^5.9.0",
114
114
  "vitest": "^3.0.9",
115
115
  "@neon-internals/cli-core": "0.0.0",
116
- "@neon-internals/env-core": "0.0.48",
117
- "@neon/env": "2.1.0",
118
- "@neon/functions": "0.11.0",
119
- "@neon/e2e-harness": "0.0.0"
116
+ "@neon-internals/env-core": "0.0.49",
117
+ "@neon/e2e-harness": "0.0.0",
118
+ "@neon/env": "2.1.1",
119
+ "@neon/functions": "0.11.0"
120
120
  },
121
121
  "publishConfig": {
122
122
  "access": "public",