neon 8.23.0 → 8.23.1
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/dist/_chunks/{checkout-BpOcFaAi.js → checkout-CNBIS3gA.js} +3 -3
- package/dist/_chunks/{claim-B3tMeMuo.js → claim-DhV0f_5o.js} +1 -1
- package/dist/_chunks/{config-BjCm5cfr.js → config-CgtJH8xE.js} +1 -1
- package/dist/_chunks/{deploy-DmEEhux0.js → deploy-Bs5gmi4Q.js} +1 -1
- package/dist/_chunks/{dev-DlUJFzRs.js → dev-DxiIp4c9.js} +3 -3
- package/dist/_chunks/{git-j6xSVo3e.js → git-DRUZBCmZ.js} +2 -2
- package/dist/_chunks/{link-nAiuWKfg.js → link-CNO-HxHN.js} +2 -2
- package/dist/_chunks/{neon_auth-C1CgNTGP.js → neon_auth-C4AXiUR6.js} +66 -18
- package/dist/_chunks/{status-BC4XXuuE.js → status-BlrzeKyA.js} +1 -1
- package/dist/api.js +0 -83
- package/dist/commands/checkout.js +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/functions_new.js +1 -1
- package/dist/commands/git.js +1 -1
- package/dist/commands/index.js +10 -10
- package/dist/commands/link.js +1 -1
- package/dist/commands/neon_auth.js +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/subscribe.js +1 -1
- package/dist/init/auth.js +1 -1
- package/dist/init/deploy.js +1 -1
- package/dist/init/link.js +1 -1
- package/dist/init/run.js +3 -3
- package/package.json +6 -6
- package/dist/_chunks/{env-BOt9AZ1j.js → env-BtG4vH55.js} +1 -1
|
@@ -11,9 +11,9 @@ import { looksLikeBranchId } from "../utils/formats.js";
|
|
|
11
11
|
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
|
-
import { n as autoPullEnvAfterPin } from "./env-
|
|
15
|
-
import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-
|
|
16
|
-
import { i as handler$1 } from "./link-
|
|
14
|
+
import { n as autoPullEnvAfterPin } from "./env-BtG4vH55.js";
|
|
15
|
+
import { a as applyPolicyOnCreate, f as envFlag, l as createBranchFromPolicyOnCheckout } from "./config-CgtJH8xE.js";
|
|
16
|
+
import { i as handler$1 } from "./link-CNO-HxHN.js";
|
|
17
17
|
import chalk from "chalk";
|
|
18
18
|
import prompts from "prompts";
|
|
19
19
|
// src/commands/checkout.ts
|
|
@@ -12,7 +12,7 @@ import { projectConfigPath } from "../project.js";
|
|
|
12
12
|
import { resolveEnvFilePath } from "../env_file.js";
|
|
13
13
|
import { writer } from "../writer.js";
|
|
14
14
|
import { noPassthrough } from "../utils/flags.js";
|
|
15
|
-
import { c as pull } from "./env-
|
|
15
|
+
import { c as pull } from "./env-BtG4vH55.js";
|
|
16
16
|
import { existsSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
|
|
17
17
|
import open from "open";
|
|
18
18
|
import prompts from "prompts";
|
|
@@ -26,7 +26,7 @@ import { readGitContext } from "../utils/git.js";
|
|
|
26
26
|
import { resolveHookEnv, runDeployAfterHook, runDeployBeforeHook } from "../utils/hooks.js";
|
|
27
27
|
import { pickServicesInteractively } from "../utils/service_picker.js";
|
|
28
28
|
import { zipBundle } from "../utils/zip.js";
|
|
29
|
-
import { n as autoPullEnvAfterPin } from "./env-
|
|
29
|
+
import { n as autoPullEnvAfterPin } from "./env-BtG4vH55.js";
|
|
30
30
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
31
31
|
import { dirname, join, relative, resolve } from "node:path";
|
|
32
32
|
import chalk from "chalk";
|
|
@@ -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-
|
|
3
|
+
import { f as envFlag, i as applyFlags, p as envPullFlag, r as applyCmd } from "./config-CgtJH8xE.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({
|
|
@@ -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 "./env-JgoSsmyt.js";
|
|
7
|
+
import { branchIdResolve } from "../utils/enrichers.js";
|
|
8
|
+
import { bundleEntry } from "../utils/esbuild.js";
|
|
7
9
|
import { a as resolveDevEnv } from "./env-CIFMBEon.js";
|
|
10
|
+
import { f as envFlag } from "./config-CgtJH8xE.js";
|
|
8
11
|
import { findConfigFunctionBySource, resolveFunctionsFromConfig } from "../dev/functions.js";
|
|
9
12
|
import { resolveWatchInputs } from "../dev/inputs.js";
|
|
10
|
-
import { branchIdResolve } from "../utils/enrichers.js";
|
|
11
|
-
import { bundleEntry } from "../utils/esbuild.js";
|
|
12
|
-
import { f as envFlag } from "./config-BjCm5cfr.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";
|
|
@@ -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-
|
|
9
|
-
import { o as handler$1 } from "./checkout-
|
|
8
|
+
import { o as quoteFlagValue } from "./link-CNO-HxHN.js";
|
|
9
|
+
import { o as handler$1 } from "./checkout-CNBIS3gA.js";
|
|
10
10
|
import { existsSync } from "node:fs";
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
import chalk from "chalk";
|
|
@@ -13,8 +13,8 @@ import { writer } from "../writer.js";
|
|
|
13
13
|
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
|
-
import { n as autoPullEnvAfterPin } from "./env-
|
|
17
|
-
import { h as initCmd } from "./config-
|
|
16
|
+
import { n as autoPullEnvAfterPin } from "./env-BtG4vH55.js";
|
|
17
|
+
import { h as initCmd } from "./config-CgtJH8xE.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";
|
|
@@ -549,6 +549,12 @@ const handler = (args) => {
|
|
|
549
549
|
const resolveBranch = async (props) => {
|
|
550
550
|
return props.branchId ?? await branchIdFromProps(props);
|
|
551
551
|
};
|
|
552
|
+
const authSdk = async (props, call) => {
|
|
553
|
+
const { fromSdkError, getNeonClient } = await import("../neon_client.js");
|
|
554
|
+
return call(getNeonClient(props).auth).catch((error) => {
|
|
555
|
+
throw fromSdkError(error, props.apiHost);
|
|
556
|
+
});
|
|
557
|
+
};
|
|
552
558
|
/** The branch name is only known when it was resolved from a listing, not from an id. */
|
|
553
559
|
const resolveBranchWithName = async (props) => {
|
|
554
560
|
if (props.branchId) return { branchId: props.branchId };
|
|
@@ -806,7 +812,10 @@ const domainDelete = async (props) => {
|
|
|
806
812
|
};
|
|
807
813
|
const allowLocalhostGet = async (props) => {
|
|
808
814
|
const branchId = await resolveBranch(props);
|
|
809
|
-
const
|
|
815
|
+
const data = await authSdk(props, (auth) => auth.allowLocalhost.get({
|
|
816
|
+
projectId: props.projectId,
|
|
817
|
+
branchId
|
|
818
|
+
}));
|
|
810
819
|
if (props.output === "json" || props.output === "yaml") {
|
|
811
820
|
writer(props).end(data, { fields: ALLOW_LOCALHOST_FIELDS });
|
|
812
821
|
return;
|
|
@@ -815,12 +824,20 @@ const allowLocalhostGet = async (props) => {
|
|
|
815
824
|
};
|
|
816
825
|
const allowLocalhostEnable = async (props) => {
|
|
817
826
|
const branchId = await resolveBranch(props);
|
|
818
|
-
await
|
|
827
|
+
await authSdk(props, (auth) => auth.allowLocalhost.update({
|
|
828
|
+
projectId: props.projectId,
|
|
829
|
+
branchId,
|
|
830
|
+
allow_localhost: true
|
|
831
|
+
}));
|
|
819
832
|
printMessage("Localhost connections allowed");
|
|
820
833
|
};
|
|
821
834
|
const allowLocalhostDisable = async (props) => {
|
|
822
835
|
const branchId = await resolveBranch(props);
|
|
823
|
-
await
|
|
836
|
+
await authSdk(props, (auth) => auth.allowLocalhost.update({
|
|
837
|
+
projectId: props.projectId,
|
|
838
|
+
branchId,
|
|
839
|
+
allow_localhost: false
|
|
840
|
+
}));
|
|
824
841
|
printMessage("Localhost connections restricted");
|
|
825
842
|
};
|
|
826
843
|
const printEmailPasswordEntries = (data) => [
|
|
@@ -835,7 +852,10 @@ const printEmailPasswordEntries = (data) => [
|
|
|
835
852
|
];
|
|
836
853
|
const emailPasswordGet = async (props) => {
|
|
837
854
|
const branchId = await resolveBranch(props);
|
|
838
|
-
const
|
|
855
|
+
const data = await authSdk(props, (auth) => auth.emailAndPassword.get({
|
|
856
|
+
projectId: props.projectId,
|
|
857
|
+
branchId
|
|
858
|
+
}));
|
|
839
859
|
if (props.output === "json" || props.output === "yaml") {
|
|
840
860
|
writer(props).end(data, { fields: EMAIL_PASSWORD_FIELDS });
|
|
841
861
|
return;
|
|
@@ -844,7 +864,9 @@ const emailPasswordGet = async (props) => {
|
|
|
844
864
|
};
|
|
845
865
|
const emailPasswordUpdate = async (props) => {
|
|
846
866
|
const branchId = await resolveBranch(props);
|
|
847
|
-
const
|
|
867
|
+
const data = await authSdk(props, (auth) => auth.emailAndPassword.update({
|
|
868
|
+
projectId: props.projectId,
|
|
869
|
+
branchId,
|
|
848
870
|
enabled: props.enabled,
|
|
849
871
|
email_verification_method: props.emailVerificationMethod,
|
|
850
872
|
require_email_verification: props.requireEmailVerification,
|
|
@@ -853,7 +875,7 @@ const emailPasswordUpdate = async (props) => {
|
|
|
853
875
|
send_verification_email_on_sign_in: props.sendVerificationEmailOnSignIn,
|
|
854
876
|
disable_sign_up: props.disableSignUp,
|
|
855
877
|
revoke_sessions_on_password_reset: props.revokeSessionsOnPasswordReset
|
|
856
|
-
});
|
|
878
|
+
}));
|
|
857
879
|
if (props.output === "json" || props.output === "yaml") {
|
|
858
880
|
writer(props).end(data, { fields: EMAIL_PASSWORD_FIELDS });
|
|
859
881
|
return;
|
|
@@ -872,7 +894,10 @@ const printEmailProviderEntries = (data) => [
|
|
|
872
894
|
];
|
|
873
895
|
const emailProviderGet = async (props) => {
|
|
874
896
|
const branchId = await resolveBranch(props);
|
|
875
|
-
const
|
|
897
|
+
const data = await authSdk(props, (auth) => auth.emailProvider.get({
|
|
898
|
+
projectId: props.projectId,
|
|
899
|
+
branchId
|
|
900
|
+
}));
|
|
876
901
|
if (props.output === "json" || props.output === "yaml") {
|
|
877
902
|
writer(props).end(data, { fields: EMAIL_PROVIDER_FIELDS });
|
|
878
903
|
return;
|
|
@@ -894,14 +919,22 @@ const emailProviderUpdate = async (props) => {
|
|
|
894
919
|
sender_name: props.senderName
|
|
895
920
|
};
|
|
896
921
|
else config = { type: "shared" };
|
|
897
|
-
const
|
|
922
|
+
const data = await authSdk(props, (auth) => auth.emailProvider.update({
|
|
923
|
+
projectId: props.projectId,
|
|
924
|
+
branchId,
|
|
925
|
+
...config
|
|
926
|
+
}));
|
|
898
927
|
if (props.output === "json" || props.output === "yaml") writer(props).end(data, { fields: EMAIL_PROVIDER_FIELDS });
|
|
899
928
|
else printKvBlock("Email provider configuration updated", printEmailProviderEntries(data));
|
|
900
929
|
if (warnSharedSender) writeStyled(`${chalk.yellow("Warning:")} --sender-email and --sender-name are ignored for the shared email provider. These values only take effect with --type standard.\n\n`, process.stderr);
|
|
901
930
|
};
|
|
902
931
|
const emailProviderTest = async (props) => {
|
|
903
932
|
const branchId = await resolveBranch(props);
|
|
904
|
-
const
|
|
933
|
+
const data = await authSdk(props, (auth) => auth.emailProvider.sendTest({
|
|
934
|
+
projectId: props.projectId,
|
|
935
|
+
branchId,
|
|
936
|
+
recipient_email: props.recipientEmail
|
|
937
|
+
}));
|
|
905
938
|
if (props.output === "json" || props.output === "yaml") {
|
|
906
939
|
writer(props).end(data, { fields: TEST_EMAIL_FIELDS });
|
|
907
940
|
if (!data.success) throw new Error(emailProviderTestFailureMessage(props.recipientEmail, data.error_message));
|
|
@@ -924,8 +957,10 @@ const printOrganizationEntries = (data) => [
|
|
|
924
957
|
];
|
|
925
958
|
const organizationGet = async (props) => {
|
|
926
959
|
const branchId = await resolveBranch(props);
|
|
927
|
-
const
|
|
928
|
-
|
|
960
|
+
const org = (await authSdk(props, (auth) => auth.plugins.get({
|
|
961
|
+
projectId: props.projectId,
|
|
962
|
+
branchId
|
|
963
|
+
}))).organization;
|
|
929
964
|
if (!org) {
|
|
930
965
|
if (props.output === "json" || props.output === "yaml") {
|
|
931
966
|
writer(props).end({}, { fields: ORGANIZATION_FIELDS });
|
|
@@ -942,11 +977,13 @@ const organizationGet = async (props) => {
|
|
|
942
977
|
};
|
|
943
978
|
const organizationUpdate = async (props) => {
|
|
944
979
|
const branchId = await resolveBranch(props);
|
|
945
|
-
const
|
|
980
|
+
const data = await authSdk(props, (auth) => auth.plugins.organization.update({
|
|
981
|
+
projectId: props.projectId,
|
|
982
|
+
branchId,
|
|
946
983
|
enabled: props.enabled,
|
|
947
984
|
organization_limit: props.limit,
|
|
948
985
|
creator_role: props.creatorRole
|
|
949
|
-
});
|
|
986
|
+
}));
|
|
950
987
|
if (props.output === "json" || props.output === "yaml") {
|
|
951
988
|
writer(props).end(data, { fields: ORGANIZATION_FIELDS });
|
|
952
989
|
return;
|
|
@@ -1242,7 +1279,10 @@ const printWebhookEntries = (data) => [
|
|
|
1242
1279
|
];
|
|
1243
1280
|
const webhookGet = async (props) => {
|
|
1244
1281
|
const branchId = await resolveBranch(props);
|
|
1245
|
-
const
|
|
1282
|
+
const data = await authSdk(props, (auth) => auth.webhooks.get({
|
|
1283
|
+
projectId: props.projectId,
|
|
1284
|
+
branchId
|
|
1285
|
+
}));
|
|
1246
1286
|
if (props.output === "json" || props.output === "yaml") {
|
|
1247
1287
|
writer(props).end(data, { fields: WEBHOOK_FIELDS });
|
|
1248
1288
|
return;
|
|
@@ -1251,12 +1291,14 @@ const webhookGet = async (props) => {
|
|
|
1251
1291
|
};
|
|
1252
1292
|
const webhookUpdate = async (props) => {
|
|
1253
1293
|
const branchId = await resolveBranch(props);
|
|
1254
|
-
const
|
|
1294
|
+
const data = await authSdk(props, (auth) => auth.webhooks.update({
|
|
1295
|
+
projectId: props.projectId,
|
|
1296
|
+
branchId,
|
|
1255
1297
|
enabled: props.enabled,
|
|
1256
1298
|
webhook_url: props.url,
|
|
1257
1299
|
enabled_events: props.enabledEvents,
|
|
1258
1300
|
timeout_seconds: props.timeout
|
|
1259
|
-
});
|
|
1301
|
+
}));
|
|
1260
1302
|
if (props.output === "json" || props.output === "yaml") {
|
|
1261
1303
|
writer(props).end(data, { fields: WEBHOOK_FIELDS });
|
|
1262
1304
|
return;
|
|
@@ -1272,7 +1314,10 @@ const formatValue = (v) => {
|
|
|
1272
1314
|
};
|
|
1273
1315
|
const pluginsList = async (props) => {
|
|
1274
1316
|
const branchId = await resolveBranch(props);
|
|
1275
|
-
const
|
|
1317
|
+
const data = await authSdk(props, (auth) => auth.plugins.get({
|
|
1318
|
+
projectId: props.projectId,
|
|
1319
|
+
branchId
|
|
1320
|
+
}));
|
|
1276
1321
|
if (props.output === "json" || props.output === "yaml") {
|
|
1277
1322
|
writer(props).end(data, { fields: Object.keys(data) });
|
|
1278
1323
|
return;
|
|
@@ -1295,7 +1340,10 @@ const pluginsList = async (props) => {
|
|
|
1295
1340
|
};
|
|
1296
1341
|
const pluginsGet = async (props) => {
|
|
1297
1342
|
const branchId = await resolveBranch(props);
|
|
1298
|
-
const
|
|
1343
|
+
const data = await authSdk(props, (auth) => auth.plugins.get({
|
|
1344
|
+
projectId: props.projectId,
|
|
1345
|
+
branchId
|
|
1346
|
+
}));
|
|
1299
1347
|
const plugin = data[props.pluginName];
|
|
1300
1348
|
if (plugin === void 0) {
|
|
1301
1349
|
const available = Object.keys(data).join(", ");
|
|
@@ -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-
|
|
3
|
+
import { y as status } from "./config-CgtJH8xE.js";
|
|
4
4
|
// src/commands/status.ts
|
|
5
5
|
var status_exports = /* @__PURE__ */ __exportAll({
|
|
6
6
|
builder: () => builder,
|
package/dist/api.js
CHANGED
|
@@ -846,74 +846,6 @@ const getApiClient = ({ apiKey, apiHost, requestTimeoutMs = REQUEST_TIMEOUT_MS }
|
|
|
846
846
|
},
|
|
847
847
|
body: data
|
|
848
848
|
})),
|
|
849
|
-
getNeonAuthAllowLocalhost: (projectId, branchId) => call(() => raw.getNeonAuthAllowLocalhost({
|
|
850
|
-
client,
|
|
851
|
-
path: {
|
|
852
|
-
project_id: projectId,
|
|
853
|
-
branch_id: branchId
|
|
854
|
-
}
|
|
855
|
-
})),
|
|
856
|
-
updateNeonAuthAllowLocalhost: (projectId, branchId, data) => call(() => raw.updateNeonAuthAllowLocalhost({
|
|
857
|
-
client,
|
|
858
|
-
path: {
|
|
859
|
-
project_id: projectId,
|
|
860
|
-
branch_id: branchId
|
|
861
|
-
},
|
|
862
|
-
body: data
|
|
863
|
-
})),
|
|
864
|
-
getNeonAuthEmailAndPasswordConfig: (projectId, branchId) => call(() => raw.getNeonAuthEmailAndPasswordConfig({
|
|
865
|
-
client,
|
|
866
|
-
path: {
|
|
867
|
-
project_id: projectId,
|
|
868
|
-
branch_id: branchId
|
|
869
|
-
}
|
|
870
|
-
})),
|
|
871
|
-
updateNeonAuthEmailAndPasswordConfig: (projectId, branchId, data) => call(() => raw.updateNeonAuthEmailAndPasswordConfig({
|
|
872
|
-
client,
|
|
873
|
-
path: {
|
|
874
|
-
project_id: projectId,
|
|
875
|
-
branch_id: branchId
|
|
876
|
-
},
|
|
877
|
-
body: data
|
|
878
|
-
})),
|
|
879
|
-
getNeonAuthEmailProvider: (projectId, branchId) => call(() => raw.getNeonAuthEmailProvider({
|
|
880
|
-
client,
|
|
881
|
-
path: {
|
|
882
|
-
project_id: projectId,
|
|
883
|
-
branch_id: branchId
|
|
884
|
-
}
|
|
885
|
-
})),
|
|
886
|
-
updateNeonAuthEmailProvider: (projectId, branchId, data) => call(() => raw.updateNeonAuthEmailProvider({
|
|
887
|
-
client,
|
|
888
|
-
path: {
|
|
889
|
-
project_id: projectId,
|
|
890
|
-
branch_id: branchId
|
|
891
|
-
},
|
|
892
|
-
body: data
|
|
893
|
-
})),
|
|
894
|
-
sendNeonAuthEmailProviderTest: (projectId, branchId, data) => call(() => raw.sendNeonAuthEmailProviderTest({
|
|
895
|
-
client,
|
|
896
|
-
path: {
|
|
897
|
-
project_id: projectId,
|
|
898
|
-
branch_id: branchId
|
|
899
|
-
},
|
|
900
|
-
body: data
|
|
901
|
-
})),
|
|
902
|
-
getNeonAuthPluginConfigs: (projectId, branchId) => call(() => raw.getNeonAuthPluginConfigs({
|
|
903
|
-
client,
|
|
904
|
-
path: {
|
|
905
|
-
project_id: projectId,
|
|
906
|
-
branch_id: branchId
|
|
907
|
-
}
|
|
908
|
-
})),
|
|
909
|
-
updateNeonAuthOrganizationPlugin: (projectId, branchId, data) => call(() => raw.updateNeonAuthOrganizationPlugin({
|
|
910
|
-
client,
|
|
911
|
-
path: {
|
|
912
|
-
project_id: projectId,
|
|
913
|
-
branch_id: branchId
|
|
914
|
-
},
|
|
915
|
-
body: data
|
|
916
|
-
})),
|
|
917
849
|
getNeonAuthOAuthProviderPlugin: (projectId, branchId) => call(() => raw.getNeonAuthOAuthProviderPlugin({
|
|
918
850
|
client,
|
|
919
851
|
path: {
|
|
@@ -977,21 +909,6 @@ const getApiClient = ({ apiKey, apiHost, requestTimeoutMs = REQUEST_TIMEOUT_MS }
|
|
|
977
909
|
client_id: clientId
|
|
978
910
|
}
|
|
979
911
|
})),
|
|
980
|
-
getNeonAuthWebhookConfig: (projectId, branchId) => call(() => raw.getNeonAuthWebhookConfig({
|
|
981
|
-
client,
|
|
982
|
-
path: {
|
|
983
|
-
project_id: projectId,
|
|
984
|
-
branch_id: branchId
|
|
985
|
-
}
|
|
986
|
-
})),
|
|
987
|
-
updateNeonAuthWebhookConfig: (projectId, branchId, data) => call(() => raw.updateNeonAuthWebhookConfig({
|
|
988
|
-
client,
|
|
989
|
-
path: {
|
|
990
|
-
project_id: projectId,
|
|
991
|
-
branch_id: branchId
|
|
992
|
-
},
|
|
993
|
-
body: data
|
|
994
|
-
})),
|
|
995
912
|
createBranchNeonAuthNewUser: (projectId, branchId, data) => call(() => raw.createBranchNeonAuthNewUser({
|
|
996
913
|
client,
|
|
997
914
|
path: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-
|
|
1
|
+
export { t as builder, r as command, i as describe, a as formatCheckoutPolicyFailure, o as handler } from "../_chunks/checkout-CNBIS3gA.js";
|
package/dist/commands/claim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-
|
|
1
|
+
export { t as CLAIM_CREATE_FIELDS, n as CLAIM_LIST_FIELDS, r as aliases, i as builder, a as claimCreateFields, s as claimableCapabilities, c as command, l as create, u as describe, d as handler } from "../_chunks/claim-DhV0f_5o.js";
|
package/dist/commands/config.js
CHANGED
|
@@ -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-
|
|
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-CgtJH8xE.js";
|
package/dist/commands/deploy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-
|
|
1
|
+
export { t as builder, n as command, i as describe, a as handler } from "../_chunks/deploy-Bs5gmi4Q.js";
|
package/dist/commands/dev.js
CHANGED
|
@@ -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 localFunctionUrlEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-
|
|
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 localFunctionUrlEnv, m as planFunctionsToUnits, h as reportDevCredential, g as sourceFunctionUrlOverlay } from "../_chunks/dev-DxiIp4c9.js";
|
package/dist/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-
|
|
1
|
+
export { t as ENV_PULL_SKIPPED_HINT, n as autoPullEnvAfterPin, r as builder, i as command, a as describe, s as handler, c as pull } from "../_chunks/env-BtG4vH55.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-
|
|
11
|
+
import { _ as missingDependencies, d as ensureConfigPackages, g as installCommandFrom } from "../_chunks/config-CgtJH8xE.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";
|
package/dist/commands/git.js
CHANGED
|
@@ -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-
|
|
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-DRUZBCmZ.js";
|
package/dist/commands/index.js
CHANGED
|
@@ -2,34 +2,34 @@ import { r as auth_exports } from "../_chunks/auth-rup6nemJ.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
|
-
import { o as env_exports } from "../_chunks/env-
|
|
6
|
-
import { c as config_exports } from "../_chunks/config-
|
|
5
|
+
import { o as env_exports } from "../_chunks/env-BtG4vH55.js";
|
|
6
|
+
import { c as config_exports } from "../_chunks/config-CgtJH8xE.js";
|
|
7
7
|
import { u as projects_exports } from "../_chunks/projects-a3X4OFEJ.js";
|
|
8
|
-
import { a as link_exports } from "../_chunks/link-
|
|
8
|
+
import { a as link_exports } from "../_chunks/link-CNO-HxHN.js";
|
|
9
9
|
import { o as mcp_exports } from "../_chunks/mcp-SvqWzHnT.js";
|
|
10
10
|
import { c as plugins_exports } from "../_chunks/plugins-7cxVcgay.js";
|
|
11
11
|
import { l as skills_exports } from "../_chunks/skills-Bv8oKKwE.js";
|
|
12
12
|
import { t as bootstrap_exports } from "../_chunks/bootstrap-Dh7-KDmw.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-
|
|
16
|
-
import { o as claim_exports } from "../_chunks/claim-
|
|
15
|
+
import { n as checkout_exports } from "../_chunks/checkout-CNBIS3gA.js";
|
|
16
|
+
import { o as claim_exports } from "../_chunks/claim-DhV0f_5o.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-
|
|
22
|
-
import { s as dev_exports } from "../_chunks/dev-
|
|
21
|
+
import { r as deploy_exports } from "../_chunks/deploy-Bs5gmi4Q.js";
|
|
22
|
+
import { s as dev_exports } from "../_chunks/dev-DxiIp4c9.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-
|
|
27
|
+
import { o as git_exports } from "../_chunks/git-DRUZBCmZ.js";
|
|
28
28
|
import { a as init_exports } from "../_chunks/init-D2fClHtC.js";
|
|
29
29
|
import { o as inspect_exports } from "../_chunks/inspect-yFAb61qo.js";
|
|
30
30
|
import { a as ip_allow_exports } from "../_chunks/ip_allow-DBdxNEUa.js";
|
|
31
31
|
import { l as logs_exports } from "../_chunks/logs-BB4uvblR.js";
|
|
32
|
-
import { a as neon_auth_exports } from "../_chunks/neon_auth-
|
|
32
|
+
import { a as neon_auth_exports } from "../_chunks/neon_auth-C4AXiUR6.js";
|
|
33
33
|
import { a as open_exports } from "../_chunks/open-T2nI89Oh.js";
|
|
34
34
|
import { c as operations_exports } from "../_chunks/operations-D7qGkKo3.js";
|
|
35
35
|
import { o as orgs_exports } from "../_chunks/orgs-BrvAWM8Z.js";
|
|
@@ -40,7 +40,7 @@ import { o as profile_exports } from "../_chunks/profile-CArcjyS4.js";
|
|
|
40
40
|
import { s as realtime_exports } from "../_chunks/realtime-BwtzYf5a.js";
|
|
41
41
|
import { a as set_context_exports } from "../_chunks/set_context-ompB6d2D.js";
|
|
42
42
|
import { s as snapshots_exports } from "../_chunks/snapshots-DxNhjcco.js";
|
|
43
|
-
import { a as status_exports } from "../_chunks/status-
|
|
43
|
+
import { a as status_exports } from "../_chunks/status-BlrzeKyA.js";
|
|
44
44
|
import { d as triggers_exports } from "../_chunks/triggers-BfvyeJUC.js";
|
|
45
45
|
import { s as user_exports } from "../_chunks/user-D9mC430O.js";
|
|
46
46
|
import { i as vpc_endpoints_exports } from "../_chunks/vpc_endpoints-C-Y4WK2M.js";
|
package/dist/commands/link.js
CHANGED
|
@@ -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-
|
|
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-CNO-HxHN.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, r as describe, i as handler } from "../_chunks/neon_auth-
|
|
1
|
+
export { t as builder, n as command, r as describe, i as handler } from "../_chunks/neon_auth-C4AXiUR6.js";
|
package/dist/commands/status.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-
|
|
1
|
+
export { t as builder, n as command, r as describe, i as handler } from "../_chunks/status-BlrzeKyA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writer } from "../writer.js";
|
|
2
|
-
import { o as resolveNeonEnvVars } from "../_chunks/env-CIFMBEon.js";
|
|
3
2
|
import { branchIdFromProps } from "../utils/enrichers.js";
|
|
3
|
+
import { o as resolveNeonEnvVars } from "../_chunks/env-CIFMBEon.js";
|
|
4
4
|
import YAML from "yaml";
|
|
5
5
|
// src/commands/subscribe.ts
|
|
6
6
|
const builder = (argv) => argv.usage("$0 realtime subscribe \"<query>\" [options]").positional("query", {
|
package/dist/init/auth.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../config.js";
|
|
|
4
4
|
import "../auth.js";
|
|
5
5
|
import { c as ensureAuth, l as existingApiClient } from "../_chunks/auth-rup6nemJ.js";
|
|
6
6
|
import { recoverFrom401 } from "../auth_recovery.js";
|
|
7
|
-
import { c as pull } from "../_chunks/env-
|
|
7
|
+
import { c as pull } from "../_chunks/env-BtG4vH55.js";
|
|
8
8
|
import { c as setupNeonMcp } from "../_chunks/mcp-SvqWzHnT.js";
|
|
9
9
|
// src/init/auth.ts
|
|
10
10
|
const isUnauthorized = (error) => isNeonApiError(error) && error.status === 401;
|
package/dist/init/deploy.js
CHANGED
|
@@ -4,7 +4,7 @@ import { c as ensureAuth } from "../_chunks/auth-rup6nemJ.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-
|
|
7
|
+
import { r as applyCmd } from "../_chunks/config-CgtJH8xE.js";
|
|
8
8
|
import { authContext } from "./auth.js";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
// src/init/deploy.ts
|
package/dist/init/link.js
CHANGED
|
@@ -4,7 +4,7 @@ import "../config.js";
|
|
|
4
4
|
import "../auth.js";
|
|
5
5
|
import { c as ensureAuth } from "../_chunks/auth-rup6nemJ.js";
|
|
6
6
|
import { recoverFrom401 } from "../auth_recovery.js";
|
|
7
|
-
import { s as runLink } from "../_chunks/link-
|
|
7
|
+
import { s as runLink } from "../_chunks/link-CNO-HxHN.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-
|
|
18
|
-
import { o as quoteFlagValue, s as runLink } from "../_chunks/link-
|
|
17
|
+
import { h as initCmd, t as ConfigInstallFailed } from "../_chunks/config-CgtJH8xE.js";
|
|
18
|
+
import { o as quoteFlagValue, s as runLink } from "../_chunks/link-CNO-HxHN.js";
|
|
19
19
|
import { runAuthenticatedLink } from "./link.js";
|
|
20
20
|
import { mcpInstallableAgents } from "../mcp/targets.js";
|
|
21
21
|
import { skillsInstallableAgents } from "../skills/targets.js";
|
|
@@ -25,7 +25,7 @@ import { pullInitEnv, resolveInitConfigApi } from "./auth.js";
|
|
|
25
25
|
import { InitCancelled, raceSigint, restoreCursor } from "./cancelled.js";
|
|
26
26
|
import { pickAgentSetupInteractively, pickInitAgentsInteractively, pickInitConfigInteractively, pickInitMcpAuthInteractively, pickInitMcpConfigLocationInteractively, pickInitModeInteractively, pickInitPackageManagerInteractively, pickInitProjectSetupInteractively, pickInitServicesInteractively, pickInitSkillsInteractively } from "./wizard.js";
|
|
27
27
|
import { runToolingSteps, toolingStepCommandText } from "./tooling.js";
|
|
28
|
-
import { l as create } from "../_chunks/claim-
|
|
28
|
+
import { l as create } from "../_chunks/claim-DhV0f_5o.js";
|
|
29
29
|
import { INIT_CONFIG_SERVICES_CONFLICT, configPlanFromResolution, initEnvPullAfterConfig, resolveInitConfigChoice } from "./choices.js";
|
|
30
30
|
import { detectInitEnvironment } from "./detect.js";
|
|
31
31
|
import { createInitFunnel, emitInitStart, finishInitFunnel, initStartProperties, recordInitError, recordInitExit } from "./funnel.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon",
|
|
3
|
-
"version": "8.23.
|
|
3
|
+
"version": "8.23.1",
|
|
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-runtime": "1.11.7",
|
|
76
77
|
"@neon/realtime": "0.2.0",
|
|
77
|
-
"@neon/sdk": "7.
|
|
78
|
-
"@neon/config
|
|
79
|
-
"@neon/config": "1.11.2"
|
|
78
|
+
"@neon/sdk": "7.10.0",
|
|
79
|
+
"@neon/config": "1.11.3"
|
|
80
80
|
},
|
|
81
81
|
"optionalDependencies": {
|
|
82
82
|
"@napi-rs/keyring": "1.3.0",
|
|
@@ -113,9 +113,9 @@
|
|
|
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.
|
|
116
|
+
"@neon-internals/env-core": "0.0.45",
|
|
117
|
+
"@neon/env": "1.6.15",
|
|
117
118
|
"@neon/e2e-harness": "0.0.0",
|
|
118
|
-
"@neon/env": "1.6.14",
|
|
119
119
|
"@neon/functions": "0.11.0"
|
|
120
120
|
},
|
|
121
121
|
"publishConfig": {
|
|
@@ -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 "./env-JgoSsmyt.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 "./env-CIFMBEon.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 "./env-CIFMBEon.js";
|
|
13
13
|
import { formatPulledEnv, pulledBranch } from "../commands/env_output.js";
|
|
14
14
|
import { existsSync } from "node:fs";
|
|
15
15
|
import chalk from "chalk";
|