@xanots/sdk 0.0.8 → 0.0.10
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/CHANGELOG.md +29 -0
- package/README.md +28 -21
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-4W37DGXS.js → agent-file-refresh-QNKN5RYD.js} +3 -3
- package/dist/bin.js +8 -7
- package/dist/{branch-commands-PBQ36L4A.js → branch-commands-2BLOC2GR.js} +13 -11
- package/dist/{capture-7PO6SGB4.js → capture-4WVJY4DQ.js} +2 -2
- package/dist/{chunk-ZOYMZZ3S.js → chunk-3INK4Y4E.js} +1 -1
- package/dist/{chunk-NDZFBZHC.js → chunk-3UABJA4X.js} +1 -1
- package/dist/{chunk-7AXQKABT.js → chunk-5R73LFWK.js} +3 -3
- package/dist/{chunk-CDAQUY5W.js → chunk-5YCQ2QHH.js} +2 -2
- package/dist/{chunk-2ROR3AZC.js → chunk-75Z74TA7.js} +2 -2
- package/dist/{chunk-QTNO2WD6.js → chunk-7ZYW652H.js} +1 -1
- package/dist/{chunk-SNO3KHCY.js → chunk-ACCBOMCB.js} +109 -78
- package/dist/{chunk-4PTSTDIG.js → chunk-AIZKXUNP.js} +2 -2
- package/dist/{chunk-P5C2YKAM.js → chunk-ANUDXFEX.js} +18 -27
- package/dist/chunk-CTD5ZCV6.js +28 -0
- package/dist/{chunk-5HCDZ2XN.js → chunk-DBFU47BJ.js} +2 -2
- package/dist/{chunk-OKNSR7MT.js → chunk-DIA7CT7J.js} +129 -150
- package/dist/{chunk-JQLR64UC.js → chunk-F6CYJ7TN.js} +21 -6
- package/dist/{chunk-BKDJN76G.js → chunk-FE5I6S6N.js} +1 -1
- package/dist/{chunk-EM5QPTXP.js → chunk-I7DQDJAM.js} +30 -48
- package/dist/{chunk-QIWBCS7N.js → chunk-JGCWTCA7.js} +2 -2
- package/dist/{chunk-MDXR5E5Q.js → chunk-K5IOND4K.js} +2 -2
- package/dist/{chunk-4PE4ZAB7.js → chunk-KA6G2L7U.js} +5 -5
- package/dist/{chunk-64QK6JEK.js → chunk-LBYWGMOA.js} +36 -2
- package/dist/{chunk-3MDKV2VA.js → chunk-P6TAVLOX.js} +2 -2
- package/dist/{chunk-3QW5NFZJ.js → chunk-QKM4U5UK.js} +3 -3
- package/dist/{chunk-T4XPCJRF.js → chunk-TCFIPDB3.js} +1 -1
- package/dist/{chunk-FEQTQ6PM.js → chunk-VKSOTZK3.js} +2 -2
- package/dist/{chunk-6DHBYBTO.js → chunk-VNQM3V2C.js} +1 -2
- package/dist/{chunk-PYS7UNNW.js → chunk-W24FJHPD.js} +3 -3
- package/dist/chunk-WGPXT2G2.js +22 -0
- package/dist/{chunk-6AAT2AYQ.js → chunk-WP4OZZV4.js} +2 -2
- package/dist/{chunk-MU3O43L2.js → chunk-YBC3IKMF.js} +2 -2
- package/dist/{chunk-C3M5K4ZH.js → chunk-YYFXVYPX.js} +37 -6
- package/dist/chunk-ZQ2PKR6R.js +40 -0
- package/dist/cli.d.ts +57 -31
- package/dist/cli.js +6 -5
- package/dist/codegen-command-GB3H2KQ7.js +46 -0
- package/dist/{completion-A6BZ3XGU.js → completion-WF46272M.js} +2 -2
- package/dist/{config-NL33PN4D.js → config-476F3PT5.js} +1 -1
- package/dist/{deploy-command-QZ3GNLAD.js → deploy-command-QTIVA22A.js} +68 -100
- package/dist/{ephemeral-command-DL7EY4LL.js → ephemeral-command-U4AQ3TXX.js} +25 -28
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/{init-command-4MG3UKUO.js → init-command-MAXULNAD.js} +13 -10
- package/dist/{onboard-command-EHOHKQQU.js → init-web-3JNFG6GI.js} +10 -10
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +42 -45
- package/dist/{live-diff-QK4KC2FJ.js → live-diff-IXKBVG4K.js} +3 -3
- package/dist/{lock-commands-Y4S4NUCE.js → lock-commands-DQ7CUMIV.js} +20 -19
- package/dist/{login-command-DFCURZLC.js → login-command-Z6CHTA57.js} +7 -7
- package/dist/{logout-command-WXVZQCAV.js → logout-command-ER6IKAYJ.js} +2 -2
- package/dist/{loop-7SAIGRCZ.js → loop-D5NPL4VH.js} +3 -3
- package/dist/{marketplace-command-BCOAAN2I.js → marketplace-command-P4IPLJ6J.js} +6 -6
- package/dist/{meta-client-57ZWVHST.js → meta-client-K2J4XH64.js} +6 -6
- package/dist/node.d.ts +2 -2
- package/dist/node.js +9 -8
- package/dist/{validate-command-GLF5ZOOW.js → preflight-command-GZ2GE5RN.js} +17 -16
- package/dist/{profile-command-QJAAUZIV.js → profile-command-LJSBDV2L.js} +5 -5
- package/dist/{release-command-DN75G5GJ.js → release-command-YUBTNHVX.js} +36 -33
- package/dist/{routes-manifest-SP3ZXLMR.js → routes-manifest-PWZHDOI5.js} +2 -2
- package/dist/scaffold.js +2 -2
- package/dist/{static-host-D6KS7X45.js → static-host-3WMV7IZO.js} +1 -1
- package/dist/status-command-AL47VG7H.js +162 -0
- package/dist/{store-CUCBSYLj.d.ts → store-BG1UPZ3Z.d.ts} +5 -5
- package/dist/{test-command-RRNNJ45I.js → test-command-YAZLKLGQ.js} +46 -29
- package/dist/{upgrade-command-XFOAWDI3.js → upgrade-command-FB5QJ363.js} +13 -12
- package/dist/{workspace-K72NP7SX.js → workspace-2COHDBM3.js} +1 -1
- package/dist/{workspace-command-QCFELEGR.js → workspace-command-43P42FBP.js} +31 -32
- package/dist/{workspace-export-AJMGN3CQ.js → workspace-export-DURY5WYL.js} +2 -2
- package/guides/README.md +2 -2
- package/guides/authoring.md +9 -1
- package/guides/cli.md +17 -19
- package/guides/codegen.md +21 -5
- package/guides/coverage.md +1 -1
- package/guides/deploying.md +31 -34
- package/guides/environment.md +4 -4
- package/guides/object-kinds.md +3 -3
- package/guides/project-structure.md +1 -1
- package/guides/scaffold.md +25 -2
- package/guides/typed-frontend.md +1 -1
- package/llms/fields.md +3 -2
- package/llms/kinds-agent-mcp.md +1 -1
- package/llms/kinds-core.md +1 -1
- package/llms/kinds-realtime.md +1 -1
- package/llms/lock.md +5 -5
- package/llms/statements-calls.md +2 -1
- package/llms/statements-data.md +5 -2
- package/llms/tests.md +3 -2
- package/llms-full.txt +41 -44
- package/llms.txt +20 -29
- package/manifest.json +95 -426
- package/package.json +1 -1
- package/dist/chunk-3EYUR3TX.js +0 -100
- package/dist/chunk-JQJPFUZI.js +0 -118
- package/dist/chunk-XP7S3VWY.js +0 -78
- package/dist/codegen-command-U2W72DLG.js +0 -43
- package/dist/env-target-NAYVEXBH.js +0 -16
- package/dist/sandbox-details-command-EDO56IY3.js +0 -18
- package/dist/sandbox-export-command-MO6DEZ7Z.js +0 -24
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadDefault
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import
|
|
5
|
-
UsageError,
|
|
6
|
-
missingArgument,
|
|
7
|
-
unknownSubcommand
|
|
8
|
-
} from "./chunk-JQLR64UC.js";
|
|
3
|
+
} from "./chunk-ACCBOMCB.js";
|
|
4
|
+
import "./chunk-CTD5ZCV6.js";
|
|
9
5
|
import {
|
|
10
6
|
readLockFile,
|
|
11
7
|
writeLockFile
|
|
12
8
|
} from "./chunk-OYMR5AMJ.js";
|
|
9
|
+
import {
|
|
10
|
+
UsageError,
|
|
11
|
+
missingArgument,
|
|
12
|
+
unknownSubcommand
|
|
13
|
+
} from "./chunk-F6CYJ7TN.js";
|
|
13
14
|
import "./chunk-GNPVYOPB.js";
|
|
14
15
|
import "./chunk-EZG76F7R.js";
|
|
15
16
|
import {
|
|
16
17
|
Xano
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-VKSOTZK3.js";
|
|
19
|
+
import "./chunk-DIA7CT7J.js";
|
|
20
|
+
import "./chunk-LBYWGMOA.js";
|
|
20
21
|
import "./chunk-WHOJWOSV.js";
|
|
21
22
|
import "./chunk-5XZ744TS.js";
|
|
22
23
|
import {
|
|
@@ -39,7 +40,7 @@ async function runLockCommand(args) {
|
|
|
39
40
|
return lockRename(args);
|
|
40
41
|
case "prune":
|
|
41
42
|
return lockPrune(args);
|
|
42
|
-
case "
|
|
43
|
+
case "import":
|
|
43
44
|
return lockAdopt(args);
|
|
44
45
|
default:
|
|
45
46
|
throw unknownSubcommand("lock", sub);
|
|
@@ -101,7 +102,7 @@ async function observedLockKeys(entryFile, lock) {
|
|
|
101
102
|
throw new Error(
|
|
102
103
|
`lock prune evaluated "${entryFile}" to find out which lock entries are still live, and loading it failed:
|
|
103
104
|
${reason}
|
|
104
|
-
Finding orphans requires running your workspace source \u2014 anything the entry file does at module scope (asserting env vars, reading config) runs too. To drop entries you can name yourself, no evaluation is needed: \`xanots lock prune --
|
|
105
|
+
Finding orphans requires running your workspace source \u2014 anything the entry file does at module scope (asserting env vars, reading config) runs too. To drop entries you can name yourself, no evaluation is needed: \`xanots lock prune --identity-only --yes <kind:name>\u2026\` with \`--lock=<path>\` or \`--entry=<path>\` to locate the lock.`,
|
|
105
106
|
{ cause: err }
|
|
106
107
|
);
|
|
107
108
|
}
|
|
@@ -114,7 +115,7 @@ Finding orphans requires running your workspace source \u2014 anything the entry
|
|
|
114
115
|
}
|
|
115
116
|
async function lockPrune(args) {
|
|
116
117
|
const [, ...rest] = args.positionals;
|
|
117
|
-
if (args.
|
|
118
|
+
if (args.identityOnly) return lockPruneNamed(args, rest);
|
|
118
119
|
const [entryFile, ...keys] = rest;
|
|
119
120
|
if (!entryFile) {
|
|
120
121
|
throw missingArgument("entry-file", { command: "lock", subcommand: "prune" });
|
|
@@ -146,7 +147,7 @@ async function lockPrune(args) {
|
|
|
146
147
|
function lockPruneNamed(args, keys) {
|
|
147
148
|
if (keys.length === 0) {
|
|
148
149
|
throw new UsageError(
|
|
149
|
-
"`lock prune --
|
|
150
|
+
"`lock prune --identity-only` prunes the entries you name, so it needs at least one key (`table:users`). Without keys there is nothing to prune, because finding orphans is exactly the step --identity-only skips \u2014 drop the flag and pass the entry file to do that.",
|
|
150
151
|
{ helpFor: { command: "lock", subcommand: "prune" } }
|
|
151
152
|
);
|
|
152
153
|
}
|
|
@@ -158,7 +159,7 @@ function lockPruneNamed(args, keys) {
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
process.stderr.write(
|
|
161
|
-
`xanots: --
|
|
162
|
+
`xanots: --identity-only \u2014 nothing was evaluated, so nothing confirms ${keys.length === 1 ? "this key is" : "these keys are"} orphaned. A key the workspace still exports gets a NEW identity at the next export.
|
|
162
163
|
`
|
|
163
164
|
);
|
|
164
165
|
applyPrune(args, lockPath, lock, keys);
|
|
@@ -184,9 +185,9 @@ ${canonicalNote}`);
|
|
|
184
185
|
function lockAdopt(args) {
|
|
185
186
|
const [, bundlePath] = args.positionals;
|
|
186
187
|
if (!bundlePath) {
|
|
187
|
-
throw missingArgument("bundle.json", { command: "lock", subcommand: "
|
|
188
|
+
throw missingArgument("bundle.json", { command: "lock", subcommand: "import" });
|
|
188
189
|
}
|
|
189
|
-
const lockPath = commandLockPath(args, "
|
|
190
|
+
const lockPath = commandLockPath(args, "import");
|
|
190
191
|
const lock = existsSync(lockPath) ? readLockFile(lockPath) : emptyLock();
|
|
191
192
|
let bundle;
|
|
192
193
|
try {
|
|
@@ -206,11 +207,11 @@ function lockAdopt(args) {
|
|
|
206
207
|
process.stdout.write(`Adoption would overwrite ${changed.length} existing lock entr(y/ies):
|
|
207
208
|
${lines}
|
|
208
209
|
`);
|
|
209
|
-
throw new Error("lock
|
|
210
|
+
throw new Error("lock import overwrites pinned identities \u2014 re-run with --yes to apply.");
|
|
210
211
|
}
|
|
211
212
|
if (vaultCount > 0) {
|
|
212
213
|
process.stderr.write(
|
|
213
|
-
`xanots: WARNING \u2014 ${bundlePath} contains ${vaultCount} vault entr(y/ies) (secrets). Do NOT commit the bundle file; delete it once
|
|
214
|
+
`xanots: WARNING \u2014 ${bundlePath} contains ${vaultCount} vault entr(y/ies) (secrets). Do NOT commit the bundle file; delete it once the import is done.
|
|
214
215
|
`
|
|
215
216
|
);
|
|
216
217
|
}
|
|
@@ -229,4 +230,4 @@ ${lines}
|
|
|
229
230
|
export {
|
|
230
231
|
runLockCommand
|
|
231
232
|
};
|
|
232
|
-
//# sourceMappingURL=lock-commands-
|
|
233
|
+
//# sourceMappingURL=lock-commands-DQ7CUMIV.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-W5NOKYEG.js";
|
|
6
6
|
import {
|
|
7
7
|
promptLine
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AIZKXUNP.js";
|
|
9
9
|
import {
|
|
10
10
|
envMetaCredentialVarsSet
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QKM4U5UK.js";
|
|
12
12
|
import {
|
|
13
13
|
CALLBACK_PATH,
|
|
14
14
|
DEFAULT_PORT,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
resolveAuthHost,
|
|
24
24
|
resolveScope,
|
|
25
25
|
writeCredential
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FE5I6S6N.js";
|
|
27
27
|
import {
|
|
28
28
|
UsageError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F6CYJ7TN.js";
|
|
30
30
|
import "./chunk-GNPVYOPB.js";
|
|
31
31
|
import {
|
|
32
32
|
blank,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
success,
|
|
38
38
|
warn
|
|
39
39
|
} from "./chunk-EZG76F7R.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-DIA7CT7J.js";
|
|
41
41
|
|
|
42
42
|
// src/emit/login-command.ts
|
|
43
43
|
import * as client from "openid-client";
|
|
@@ -177,7 +177,7 @@ async function attemptLogin(p) {
|
|
|
177
177
|
`Could not determine the instance from the issued token (no readable \`aud\` claim). This is unexpected \u2014 please report it.`
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const { resolveScopedWorkspaceId } = await import("./workspace-
|
|
180
|
+
const { resolveScopedWorkspaceId } = await import("./workspace-2COHDBM3.js");
|
|
181
181
|
detail("Resolving the workspace this token is scoped to\u2026");
|
|
182
182
|
const workspaceId = await resolveScopedWorkspaceId({
|
|
183
183
|
access_token: tokens.access_token,
|
|
@@ -267,4 +267,4 @@ async function acquireByPaste(p) {
|
|
|
267
267
|
export {
|
|
268
268
|
runLoginCommand
|
|
269
269
|
};
|
|
270
|
-
//# sourceMappingURL=login-command-
|
|
270
|
+
//# sourceMappingURL=login-command-Z6CHTA57.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
readCredential,
|
|
6
6
|
resolveAuthFilePath,
|
|
7
7
|
resolveScope
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FE5I6S6N.js";
|
|
9
9
|
import "./chunk-GNPVYOPB.js";
|
|
10
10
|
import {
|
|
11
11
|
detail,
|
|
@@ -65,4 +65,4 @@ async function runLogoutCommand(args) {
|
|
|
65
65
|
export {
|
|
66
66
|
runLogoutCommand
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=logout-command-
|
|
68
|
+
//# sourceMappingURL=logout-command-ER6IKAYJ.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
indexByIdentity,
|
|
4
4
|
kindIsRunnable,
|
|
5
5
|
resolveMatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TCFIPDB3.js";
|
|
7
7
|
import {
|
|
8
8
|
normalize
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3INK4Y4E.js";
|
|
10
10
|
|
|
11
11
|
// src/validate/loop.ts
|
|
12
12
|
async function runValidateLoop(client, bundleText) {
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
runValidateLoop,
|
|
91
91
|
runnableFunctionNames
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=loop-
|
|
93
|
+
//# sourceMappingURL=loop-D5NPL4VH.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
isMachineOutput,
|
|
6
6
|
writeJson
|
|
7
7
|
} from "./chunk-NUQCEOKA.js";
|
|
8
|
-
import {
|
|
9
|
-
runNpm
|
|
10
|
-
} from "./chunk-ZSYZTGJH.js";
|
|
11
8
|
import {
|
|
12
9
|
serverMessage
|
|
13
10
|
} from "./chunk-3IGNIP6R.js";
|
|
11
|
+
import {
|
|
12
|
+
runNpm
|
|
13
|
+
} from "./chunk-ZSYZTGJH.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
indentBlock,
|
|
17
17
|
missingArgument
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-F6CYJ7TN.js";
|
|
19
19
|
import {
|
|
20
20
|
blank,
|
|
21
21
|
detail,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
success,
|
|
27
27
|
warn
|
|
28
28
|
} from "./chunk-EZG76F7R.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-DIA7CT7J.js";
|
|
30
30
|
|
|
31
31
|
// src/emit/marketplace-catalogue.ts
|
|
32
32
|
var DEFAULT_BASE_URL = "https://xare-rvr8-mnnt.dev.xano.io";
|
|
@@ -362,4 +362,4 @@ export {
|
|
|
362
362
|
runMarketplaceListCommand,
|
|
363
363
|
runMarketplaceSearchCommand
|
|
364
364
|
};
|
|
365
|
-
//# sourceMappingURL=marketplace-command-
|
|
365
|
+
//# sourceMappingURL=marketplace-command-P4IPLJ6J.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importWorkspaceArchive
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WP4OZZV4.js";
|
|
4
4
|
import {
|
|
5
5
|
createEphemeral,
|
|
6
6
|
deleteEphemeral,
|
|
7
7
|
isEphemeralDisabled,
|
|
8
8
|
waitUntilReady
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VNQM3V2C.js";
|
|
10
10
|
import {
|
|
11
11
|
decodeWorkspaceArchive,
|
|
12
12
|
encodeWorkspaceArchive
|
|
@@ -72,13 +72,13 @@ var MetaClient = class {
|
|
|
72
72
|
const auth = this.deployAuth(parentWorkspaceId);
|
|
73
73
|
const env = await createEphemeral(auth, {
|
|
74
74
|
parentWorkspaceId,
|
|
75
|
-
display: "xanots-
|
|
76
|
-
description: "Disposable environment for `xanots
|
|
75
|
+
display: "xanots-preflight",
|
|
76
|
+
description: "Disposable environment for `xanots preflight`.",
|
|
77
77
|
expiresHours: ENV_EXPIRES_HOURS
|
|
78
78
|
}).catch((err) => {
|
|
79
79
|
if (!isEphemeralDisabled(err)) throw err;
|
|
80
80
|
throw new Error(
|
|
81
|
-
"Ephemeral environments are not enabled on this instance, so `xanots
|
|
81
|
+
"Ephemeral environments are not enabled on this instance, so `xanots preflight` has nowhere disposable to run. Ask whoever administers the instance to enable them \u2014 `xanots export` still writes the bundle without one."
|
|
82
82
|
);
|
|
83
83
|
});
|
|
84
84
|
this.env = { parentWorkspaceId, name: env.name };
|
|
@@ -167,4 +167,4 @@ ${text}`);
|
|
|
167
167
|
export {
|
|
168
168
|
MetaClient
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=meta-client-
|
|
170
|
+
//# sourceMappingURL=meta-client-K2J4XH64.js.map
|
package/dist/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aZ as LambdaOptions, a_ as CaptureValue, a$ as LambdaSurface, b0 as CaptureRecord, b1 as LambdaBindings, F as FunctionDef, b2 as Xano, i as LockFile } from './store-
|
|
2
|
-
export { b3 as AddonDef, b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, bx as DbEval, by as DbEvalFilter, bz as DbWhere, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bM as InferRow, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b_ as LambdaBody, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cb as MicroserviceDef, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, co as QueryHandle, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, cY as SortDirective, S as StatementSpec, cZ as TableDef, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-
|
|
1
|
+
import { aZ as LambdaOptions, a_ as CaptureValue, a$ as LambdaSurface, b0 as CaptureRecord, b1 as LambdaBindings, F as FunctionDef, b2 as Xano, i as LockFile } from './store-BG1UPZ3Z.js';
|
|
2
|
+
export { b3 as AddonDef, b4 as AddonXdo, A as AdoptChange, a as AdoptResult, b5 as AgentDef, b6 as AgentHandle, b7 as AgentOutput, b8 as AgentSettingsXdo, b9 as AgentXdo, ba as AmbientBindings, bb as AnthropicLlm, bc as ApiGroupDef, bd as ApiGroupXdo, be as AuthRef, bf as Authored, B as Bundle, b as BundlePayload, c as BundleType, bg as Capturable, bh as ChannelConversationDef, bi as ChannelDeliveryDef, bj as ChannelDeliveryGuarantee, bk as ChannelPublishDef, bl as ChannelPublishWho, bm as ChannelRateLimitDef, bn as ColumnDef, bo as Comparison, bp as ContainerEnv, bq as ContainerPort, br as ContainerResources, bs as ContainerVolume, bt as CorsConfig, bu as CorsMode, bv as DatabaseActions, bw as DatabaseInputs, bx as DbEval, by as DbEvalFilter, bz as DbWhere, bA as ErrorInputs, bB as ExceptionPolicy, bC as FieldAccessor, bD as FieldRule, bE as GoogleGenAiLlm, bF as HistoryInput, bG as HttpVerb, bH as IndexDef, bI as IndexLang, bJ as IndexOp, bK as IndexType, bL as IndexXdo, bM as InferRow, bN as InputDescriptor, bO as InputOptions, bP as IteratingBindings, bQ as KnowledgeDef, bR as KnowledgeDirSource, bS as KnowledgeFileSource, bT as KnowledgeMode, bU as KnowledgeType, bV as LAMBDA_BINDINGS, bW as LAMBDA_CODE_FILTERS, bX as LAMBDA_GLOBALS, bY as LAMBDA_MODULE_GLOBALS, bZ as LAMBDA_STATEMENTS, b_ as LambdaBody, b$ as LlmPrompt, c0 as LlmProvider, c1 as LlmSettings, g as LockEntry, h as LockExportContext, M as Manifest, j as ManifestField, k as ManifestKind, l as ManifestStatement, c2 as ManifestValue, c3 as McpPathOptions, c4 as McpServerDef, c5 as McpServerHandle, c6 as McpServerXdo, m as MergeResult, c7 as MessageDeliverTo, c8 as MicroserviceChart, c9 as MicroserviceConfig, ca as MicroserviceContainer, cb as MicroserviceDef, cc as MicroserviceDeployment, cd as MicroserviceIngress, ce as MicroserviceRegistryAuth, cf as MicroserviceVolume, cg as MicroserviceXdo, ch as MiddlewareAttach, ci as MiddlewareAttachEntry, cj as MiddlewareDef, ck as MiddlewareXdo, O as ObjectKind, cl as OpenAiLlm, n as PayloadArrayKey, cm as QueryDef, cn as QueryFilterName, co as QueryHandle, cp as QueryResponseType, cq as QueryXdo, cr as RealtimeActions, cs as RealtimeChannelActions, ct as RealtimeChannelDef, cu as RealtimeChannelHandle, cv as RealtimeChannelRef, cw as RealtimeChannelTriggerInputs, cx as RealtimeChannelXdo, cy as RealtimeClient, cz as RealtimeInputs, cA as RealtimeMessageDef, cB as RealtimeMessageXdo, cC as RealtimeServerActions, cD as RealtimeServerDef, cE as RealtimeServerHandle, cF as RealtimeServerRef, cG as RealtimeServerTriggerInputs, cH as RealtimeServerXdo, cI as RealtimeUrlOptions, R as RenameResult, cJ as ResultStrategy, cK as Route, cL as RowOf, cM as ScheduleDef, cN as SchemaCols, cO as SchemaDef, cP as SearchComparison, cQ as SearchGroup, cR as SearchNode, cS as SearchOp, cT as SearchParamValue, cU as SeedFileSource, cV as SeedRow, cW as SeedSource, cX as SortDir, cY as SortDirective, S as StatementSpec, cZ as TableDef, c_ as TableXdo, c$ as TaskDef, d0 as TaskXdo, d1 as ToolDef, d2 as ToolXdo, d3 as ToolsetBaseDef, d4 as ToolsetBaseXdo, d5 as ToolsetInputs, d6 as ToolsetToolEntry, d7 as ToolsetToolRef, d8 as TriggerDef, d9 as TriggerObjType, da as TriggerXdo, db as ViewDef, dc as ViewXdo, dd as WorkflowTestDef, de as WorkflowTestXdo, df as WorkspaceActions, dg as WorkspaceConfigDef, dh as WorkspaceConfigXdo, di as WorkspaceHistoryDef, dj as WorkspaceHistoryXdo, dk as WorkspaceInputs, dl as WorkspaceMiddlewareDef, dm as WorkspaceMiddlewareXdo, dn as XanoFreeLlm, dp as addon, dq as agent, dr as agentTrigger, ds as and, dt as apiGroup, du as assertLambdaBody, dv as bitwiseAnd, dw as bitwiseOr, dx as bitwiseXor, dy as cmp, dz as defineFunction, dA as emit, dB as emitBundle, dC as errorTrigger, dD as expr, dE as fl, dF as input, dG as knowledge, dH as knowledgeDir, dI as knowledgeFile, dJ as mathAdd, dK as mathDiv, dL as mathMul, dM as mathSub, dN as mcpServer, dO as mcpServerTrigger, dP as microservice, dQ as middleware, dR as mixed, dS as objectEntries, dT as objectKeys, dU as objectValues, dV as or, dW as query, dX as realtimeChannel, dY as realtimeChannelTrigger, dZ as realtimeMessage, d_ as realtimeServer, d$ as realtimeServerTrigger, e0 as realtimeTrigger, e1 as resetLockOverrides, e2 as seedFile, e3 as seedLockOverrides, e4 as table, e5 as tableTrigger, e6 as task, e7 as textAppend, e8 as textPrepend, e9 as toSearchParams, ea as tool, eb as workflowTest, ec as workspace, ed as workspaceConfig, ee as workspaceTrigger } from './store-BG1UPZ3Z.js';
|
|
3
3
|
export { ActionCallArgs, AddonCallArgs, AddonSpec, AgentRunResult, AiAgentRunArgs, AnyAddonDef, AnyFunctionDef, AnyQueryDef, AnyTableDef, ApiCallArgs, ApplyFilter, ApplyFilters, ArrayMapArgs, CloudJobArgs, CloudJobAwaitArgs, CloudJobStatusArgs, CreateAuthTokenArgs, DbAddArgs, DbAddOrEditArgs, DbAggregate, DbAggregatePaging, DbBind, DbBulkAddArgs, DbBulkDeleteArgs, DbBulkWriteArgs, DbDelArgs, DbDirectQueryArgs, DbDistinct, DbEditArgs, DbExternal, DbExternalPermissions, DbExternalQueryArgs, DbField, DbGetArgs, DbHasArgs, DbJoin, DbPaging, DbPatchArgs, DbQueryArgs, DbResponseType, DbReturnType, DbSchemaArgs, DbTransactionArgs, DbTruncateArgs, ExpectToThrowArgs, ExternalSqlEngine, ForArgs, ForeachArgs, FunctionCallArgs, FunctionRunArgs, GetRawInputArgs, HeaderMap, HttpMethod, InferInput, InferResponse, IpLookupArgs, IpLookupResult, MiddlewareCallArgs, RealtimeEventArgs, StackTupleWidened, SwitchArgs, SwitchCaseArgs, TaskCallArgs, ToolCallArgs, TriggerCallArgs, TryCatchArgs, WhileArgs, WorkflowTestCallArgs, actionCall, actionPackageCall, addonCall, aiAgentRun, apiCall, arrayMap, arrayUnion, cloudJob, cloudJobAwait, cloudJobStatus, comment, compile, conditional, createAuthToken, dbAdd, dbAddOrEdit, dbBulkAdd, dbBulkDelete, dbBulkPatch, dbBulkUpdate, dbDel, dbDirectQuery, dbEdit, dbExternalQuery, dbGet, dbHas, dbPatch, dbQuery, dbSchema, dbTransaction, dbTruncate, debugLog, die, expectToThrow, fileUrl, forLoop, foreachBreak, foreachContinue, foreachLoop, foreachRemove, functionCall, functionRun, getRawInput, group, ignored, ipLookup, middlewareCall, postProcess, realtimeEvent, returnValue, s, setVar, switchCase, switchStatement, taskCall, toolCall, triggerCall, tryCatch, updateVar, whileLoop, workflowTestCall } from './index.js';
|
|
4
4
|
import { V as Value } from './response-CVAE2kMj.js';
|
|
5
5
|
export { B as BrandOpts, c as BrandValue, C as CacheXdo, f as CaughtField, h as ConditionalContext, j as ConditionalElifContext, D as DecimalMethod, E as EmailMethod, k as ExprGroup, l as ExprNode, m as ExprOperand, n as ExprStatement, o as FieldAccess, p as FieldDescriptor, q as FieldMap, s as FieldOpts, u as FieldStyleType, v as FieldXdo, w as FilterXdo, x as FilteredValue, y as FromFieldMap, F as FunctionXdo, H as HistoryXdo, I as InputXdo, z as IntMethod, L as ListBoundsXdo, M as MethodArg, A as MethodOpts, G as MethodSpec, J as MethodXdo, K as MockEntry, N as MockMap, O as MockXdo, P as ObjInput, Q as ObjMember, S as ObjValue, T as ObjectRef, U as PasswordMethod, W as PersistedFunctionRow, X as RefValue, Y as RegexValue, Z as ResponseDef, _ as ResultItemXdo, $ as RowFromFieldMap, a0 as StackItemXdo, a1 as Statement, a2 as StatementAnnotations, a3 as StatementInputXdo, a4 as StatementOptions, a5 as TAGS, a6 as TEST_EXPECT_TYPES, a7 as TableRefMethod, a8 as Tag, a9 as TaggedValue, aa as TestDef, ab as TestExpect, ac as TestExpectType, ad as TestXdo, ae as TextFormat, af as TextMethod, ag as TypeBrand, ah as ValueOf, ai as VectorMethod, aj as XanoFileRef, ak as XanoGeoPosition, al as XanoGeoValue, am as annotate, an as auth, ao as c, ap as caught, aq as col, ar as env, as as expect, at as f, au as filter, av as inp, aw as obj, ax as out, ay as ref, az as resp, aA as setting, aB as statements, aC as sys, aD as test, aE as toolset, aF as withFilters } from './response-CVAE2kMj.js';
|
package/dist/node.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
TEST_EXPECT_TYPES,
|
|
7
7
|
expect
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-75Z74TA7.js";
|
|
9
9
|
import {
|
|
10
10
|
addon,
|
|
11
11
|
agent,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
task,
|
|
18
18
|
tool,
|
|
19
19
|
workflowTest
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5R73LFWK.js";
|
|
21
21
|
import {
|
|
22
22
|
actionCall,
|
|
23
23
|
actionPackageCall,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
workflowTestCall,
|
|
101
101
|
workspaceConfig,
|
|
102
102
|
workspaceTrigger
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-P6TAVLOX.js";
|
|
104
104
|
import {
|
|
105
105
|
exportBundleJson,
|
|
106
106
|
loadDefault,
|
|
@@ -108,19 +108,20 @@ import {
|
|
|
108
108
|
run,
|
|
109
109
|
writeArtifact,
|
|
110
110
|
writeBundle
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-ACCBOMCB.js";
|
|
112
|
+
import "./chunk-CTD5ZCV6.js";
|
|
113
113
|
import {
|
|
114
114
|
readLockFile,
|
|
115
115
|
writeLockFile
|
|
116
116
|
} from "./chunk-OYMR5AMJ.js";
|
|
117
|
+
import "./chunk-F6CYJ7TN.js";
|
|
117
118
|
import "./chunk-GNPVYOPB.js";
|
|
118
119
|
import "./chunk-EZG76F7R.js";
|
|
119
120
|
import {
|
|
120
121
|
Xano,
|
|
121
122
|
workspace
|
|
122
|
-
} from "./chunk-
|
|
123
|
-
import "./chunk-
|
|
123
|
+
} from "./chunk-VKSOTZK3.js";
|
|
124
|
+
import "./chunk-DIA7CT7J.js";
|
|
124
125
|
import {
|
|
125
126
|
LAMBDA_BINDINGS,
|
|
126
127
|
LAMBDA_CODE_FILTERS,
|
|
@@ -167,7 +168,7 @@ import {
|
|
|
167
168
|
toSearchParams,
|
|
168
169
|
toolset,
|
|
169
170
|
withFilters
|
|
170
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-LBYWGMOA.js";
|
|
171
172
|
import "./chunk-WHOJWOSV.js";
|
|
172
173
|
import {
|
|
173
174
|
annotate,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertBundleInput,
|
|
3
3
|
loadBundleText
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-W24FJHPD.js";
|
|
5
|
+
import "./chunk-ACCBOMCB.js";
|
|
6
|
+
import "./chunk-CTD5ZCV6.js";
|
|
7
7
|
import "./chunk-OYMR5AMJ.js";
|
|
8
|
+
import "./chunk-F6CYJ7TN.js";
|
|
8
9
|
import "./chunk-GNPVYOPB.js";
|
|
9
10
|
import {
|
|
10
11
|
blank,
|
|
@@ -14,24 +15,24 @@ import {
|
|
|
14
15
|
success,
|
|
15
16
|
warn
|
|
16
17
|
} from "./chunk-EZG76F7R.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-VKSOTZK3.js";
|
|
19
|
+
import "./chunk-DIA7CT7J.js";
|
|
20
|
+
import "./chunk-LBYWGMOA.js";
|
|
20
21
|
import "./chunk-WHOJWOSV.js";
|
|
21
22
|
import "./chunk-5XZ744TS.js";
|
|
22
23
|
import "./chunk-7JDT4PBU.js";
|
|
23
24
|
|
|
24
|
-
// src/emit/
|
|
25
|
+
// src/emit/preflight-command.ts
|
|
25
26
|
var EXIT_VALIDATION_FAILED = 2;
|
|
26
|
-
async function
|
|
27
|
-
assertBundleInput(args, { command: "
|
|
28
|
-
const { resolveValidateConfig, verifyToken } = await import("./config-
|
|
29
|
-
const { MetaClient } = await import("./meta-client-
|
|
27
|
+
async function runPreflightCommand(args) {
|
|
28
|
+
assertBundleInput(args, { command: "preflight" });
|
|
29
|
+
const { resolveValidateConfig, verifyToken } = await import("./config-476F3PT5.js");
|
|
30
|
+
const { MetaClient } = await import("./meta-client-K2J4XH64.js");
|
|
30
31
|
const config = resolveValidateConfig({ instance: args.instance });
|
|
31
32
|
const who = await verifyToken(config);
|
|
32
33
|
const host = new URL(config.instance).host;
|
|
33
34
|
step(`Validating against ${host}${who.name ? ` (as ${who.name})` : ""}`);
|
|
34
|
-
const { bundle } = await loadBundleText(args, { command: "
|
|
35
|
+
const { bundle } = await loadBundleText(args, { command: "preflight" });
|
|
35
36
|
const client = new MetaClient(config);
|
|
36
37
|
try {
|
|
37
38
|
await validateWithClient(args, client, bundle);
|
|
@@ -44,7 +45,7 @@ async function runValidateCommand(args) {
|
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
async function validateWithClient(args, client, bundle) {
|
|
47
|
-
const { runValidateLoop, runnableFunctionNames } = await import("./loop-
|
|
48
|
+
const { runValidateLoop, runnableFunctionNames } = await import("./loop-D5NPL4VH.js");
|
|
48
49
|
const result = await runValidateLoop(client, bundle);
|
|
49
50
|
if (!result.accepted) {
|
|
50
51
|
warn("Import rejected by the engine:");
|
|
@@ -95,7 +96,7 @@ async function validateWithClient(args, client, bundle) {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
if (args.capture) {
|
|
98
|
-
const { captureFixtures } = await import("./capture-
|
|
99
|
+
const { captureFixtures } = await import("./capture-4WVJY4DQ.js");
|
|
99
100
|
const written = captureFixtures(result.roundTrip, args.out);
|
|
100
101
|
if (written.length === 0) warn("nothing to capture (no objects round-tripped)");
|
|
101
102
|
for (const w of written) detail(`captured ${w.name} \u2192 ${w.path}`);
|
|
@@ -117,6 +118,6 @@ function fmt(v) {
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
export {
|
|
120
|
-
|
|
121
|
+
runPreflightCommand
|
|
121
122
|
};
|
|
122
|
-
//# sourceMappingURL=
|
|
123
|
+
//# sourceMappingURL=preflight-command-GZ2GE5RN.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getAccessToken
|
|
3
|
-
} from "./chunk-3QW5NFZJ.js";
|
|
4
|
-
import "./chunk-BKDJN76G.js";
|
|
5
1
|
import {
|
|
6
2
|
isMachineOutput,
|
|
7
3
|
writeJson
|
|
8
4
|
} from "./chunk-NUQCEOKA.js";
|
|
5
|
+
import {
|
|
6
|
+
getAccessToken
|
|
7
|
+
} from "./chunk-QKM4U5UK.js";
|
|
8
|
+
import "./chunk-FE5I6S6N.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchOrExplain,
|
|
11
11
|
httpFailure
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
fetchProfile,
|
|
75
75
|
runProfileCommand
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=profile-command-
|
|
77
|
+
//# sourceMappingURL=profile-command-LJSBDV2L.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
assertBranchTargetHonored,
|
|
3
3
|
importWorkspaceArchive,
|
|
4
4
|
planWorkspaceImport
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WP4OZZV4.js";
|
|
6
6
|
import {
|
|
7
7
|
assertBundleInput,
|
|
8
8
|
loadBundleText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W24FJHPD.js";
|
|
10
10
|
import {
|
|
11
11
|
sharedSchemaChanges
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DBFU47BJ.js";
|
|
13
13
|
import {
|
|
14
14
|
assertBranchAbsent,
|
|
15
15
|
assertUsableBranchLabel,
|
|
@@ -18,33 +18,35 @@ import {
|
|
|
18
18
|
liveBranchLabel,
|
|
19
19
|
setLiveBranch
|
|
20
20
|
} from "./chunk-EQW3YT5U.js";
|
|
21
|
-
import "./chunk-ZOYMZZ3S.js";
|
|
22
21
|
import {
|
|
23
22
|
confirm
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AIZKXUNP.js";
|
|
24
|
+
import {
|
|
25
|
+
isMachineOutput,
|
|
26
|
+
writeJson
|
|
27
|
+
} from "./chunk-NUQCEOKA.js";
|
|
28
|
+
import "./chunk-3INK4Y4E.js";
|
|
25
29
|
import {
|
|
26
30
|
getAccessToken
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-QKM4U5UK.js";
|
|
32
|
+
import "./chunk-FE5I6S6N.js";
|
|
29
33
|
import {
|
|
30
34
|
encodeWorkspaceArchive
|
|
31
35
|
} from "./chunk-ZUTSMMAG.js";
|
|
32
36
|
import "./chunk-X4DVXBFY.js";
|
|
33
|
-
import {
|
|
34
|
-
isMachineOutput,
|
|
35
|
-
writeJson
|
|
36
|
-
} from "./chunk-NUQCEOKA.js";
|
|
37
37
|
import "./chunk-3IGNIP6R.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveLockPath
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import
|
|
42
|
-
UsageError,
|
|
43
|
-
assertWritableDest
|
|
44
|
-
} from "./chunk-JQLR64UC.js";
|
|
40
|
+
} from "./chunk-ACCBOMCB.js";
|
|
41
|
+
import "./chunk-CTD5ZCV6.js";
|
|
45
42
|
import {
|
|
46
43
|
readLockFile
|
|
47
44
|
} from "./chunk-OYMR5AMJ.js";
|
|
45
|
+
import {
|
|
46
|
+
UsageError,
|
|
47
|
+
assertNoEnv,
|
|
48
|
+
assertNoForce
|
|
49
|
+
} from "./chunk-F6CYJ7TN.js";
|
|
48
50
|
import "./chunk-GNPVYOPB.js";
|
|
49
51
|
import {
|
|
50
52
|
blank,
|
|
@@ -55,9 +57,9 @@ import {
|
|
|
55
57
|
success,
|
|
56
58
|
warn
|
|
57
59
|
} from "./chunk-EZG76F7R.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-VKSOTZK3.js";
|
|
61
|
+
import "./chunk-DIA7CT7J.js";
|
|
62
|
+
import "./chunk-LBYWGMOA.js";
|
|
61
63
|
import "./chunk-WHOJWOSV.js";
|
|
62
64
|
import "./chunk-5XZ744TS.js";
|
|
63
65
|
import {
|
|
@@ -206,7 +208,7 @@ async function reconcileLockAfterReplace(args, auth, workspaceId) {
|
|
|
206
208
|
blank();
|
|
207
209
|
warn("`--replace` rebuilt this workspace with new object identities.");
|
|
208
210
|
detail("Nothing pins them, so the next release will match nothing and create a duplicate of every object.");
|
|
209
|
-
detail("Run `xanots lock
|
|
211
|
+
detail("Run `xanots lock import` against this workspace, and commit the lock.");
|
|
210
212
|
return;
|
|
211
213
|
}
|
|
212
214
|
const live = await readLiveWorkspace(auth, workspaceId);
|
|
@@ -214,7 +216,7 @@ async function reconcileLockAfterReplace(args, auth, workspaceId) {
|
|
|
214
216
|
blank();
|
|
215
217
|
warn(`\`--replace\` minted new object identities and ${lockPath} still names the old ones.`);
|
|
216
218
|
detail("The target could not be re-read to update it, so the next release would match nothing.");
|
|
217
|
-
detail(`Run \`xanots lock
|
|
219
|
+
detail(`Run \`xanots lock import\` against this workspace before releasing again.`);
|
|
218
220
|
return;
|
|
219
221
|
}
|
|
220
222
|
try {
|
|
@@ -230,12 +232,12 @@ async function reconcileLockAfterReplace(args, auth, workspaceId) {
|
|
|
230
232
|
} catch (err) {
|
|
231
233
|
blank();
|
|
232
234
|
warn(`Could not update ${lockPath} after the replace: ${err instanceof Error ? err.message : String(err)}`);
|
|
233
|
-
detail("It still names the identities the replace destroyed. Run `xanots lock
|
|
235
|
+
detail("It still names the identities the replace destroyed. Run `xanots lock import` before releasing again.");
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
async function readLiveWorkspace(auth, workspaceId) {
|
|
237
239
|
try {
|
|
238
|
-
const { exportWorkspaceBundle } = await import("./workspace-export-
|
|
240
|
+
const { exportWorkspaceBundle } = await import("./workspace-export-DURY5WYL.js");
|
|
239
241
|
return await exportWorkspaceBundle(auth, {
|
|
240
242
|
base: auth.instance,
|
|
241
243
|
workspaceId,
|
|
@@ -257,7 +259,7 @@ function targetIsEmpty(live) {
|
|
|
257
259
|
async function convergedWithLive(live, req, outgoingBundle) {
|
|
258
260
|
if (live === void 0 || req.mode !== "merge") return false;
|
|
259
261
|
if (req.records === true || req.truncate === true) return false;
|
|
260
|
-
const { compareToLive } = await import("./live-diff-
|
|
262
|
+
const { compareToLive } = await import("./live-diff-IXKBVG4K.js");
|
|
261
263
|
let result;
|
|
262
264
|
try {
|
|
263
265
|
result = compareToLive(JSON.parse(outgoingBundle), live);
|
|
@@ -274,7 +276,7 @@ async function warnAboutLiveLosses(live, req, outgoingBundle) {
|
|
|
274
276
|
warn("Could not read the target workspace, so this plan does not account for dropped columns or env that will not update.");
|
|
275
277
|
return { droppedColumns: 0, unchangedEnv: [] };
|
|
276
278
|
}
|
|
277
|
-
const { diffAgainstLive } = await import("./live-diff-
|
|
279
|
+
const { diffAgainstLive } = await import("./live-diff-IXKBVG4K.js");
|
|
278
280
|
let diff;
|
|
279
281
|
try {
|
|
280
282
|
diff = diffAgainstLive(JSON.parse(outgoingBundle), live, { mode: req.mode });
|
|
@@ -331,7 +333,7 @@ ${lines.join("\n")}
|
|
|
331
333
|
|
|
332
334
|
\`--prune\` is documented as deleting objects your project no longer defines, but the endpoint deletes everything absent from the bundle \u2014 including objects that predate the project. Dropping a populated table is not recoverable.
|
|
333
335
|
` + (owned.length > 0 ? `The ${owned.length} deletion${owned.length === 1 ? "" : "s"} this project does own would have been correct.
|
|
334
|
-
` : "") + `To delete the objects above anyway, adopt them into the project first (\`xanots lock
|
|
336
|
+
` : "") + `To delete the objects above anyway, adopt them into the project first (\`xanots lock import\`) so they are yours to remove. To keep them, drop \`--prune\`.`,
|
|
335
337
|
{ helpFor: { command: "release" } }
|
|
336
338
|
);
|
|
337
339
|
}
|
|
@@ -433,7 +435,8 @@ function reportBranchCaveats(branch, setLive, changed) {
|
|
|
433
435
|
}
|
|
434
436
|
}
|
|
435
437
|
async function runReleaseCommand(args) {
|
|
436
|
-
|
|
438
|
+
assertNoEnv(args.env, "release");
|
|
439
|
+
assertNoForce(args.force, "release");
|
|
437
440
|
const req = resolveRequest(args);
|
|
438
441
|
assertBundleInput(args, { command: "release" });
|
|
439
442
|
const auth = await getAccessToken(args);
|
|
@@ -443,7 +446,7 @@ async function runReleaseCommand(args) {
|
|
|
443
446
|
{ withSeed: req.records === true }
|
|
444
447
|
);
|
|
445
448
|
if (args.static !== void 0) {
|
|
446
|
-
const { assertNoSeedLeaks } = await import("./deploy-command-
|
|
449
|
+
const { assertNoSeedLeaks } = await import("./deploy-command-QTIVA22A.js");
|
|
447
450
|
await assertNoSeedLeaks(args.static, nonPublicSeedValues, args.allowSeedInStatic);
|
|
448
451
|
}
|
|
449
452
|
const workspaceId = auth.workspaceId;
|
|
@@ -476,7 +479,7 @@ async function runReleaseCommand(args) {
|
|
|
476
479
|
if (upToDate) {
|
|
477
480
|
success(`Workspace #${workspaceId} is already up to date \u2014 no import sent.`);
|
|
478
481
|
} else {
|
|
479
|
-
if ((isDestructive(req) || losses.droppedColumns > 0) && !args.yes
|
|
482
|
+
if ((isDestructive(req) || losses.droppedColumns > 0) && !args.yes) {
|
|
480
483
|
const ok = await confirm(`Apply this plan to workspace #${workspaceId}?`, {
|
|
481
484
|
flag: "--yes",
|
|
482
485
|
helpFor: { command: "release" }
|
|
@@ -532,7 +535,7 @@ Retry, or drop \`--backup-branch\` to release without one.`,
|
|
|
532
535
|
if (previous !== void 0) {
|
|
533
536
|
detail(`The runtime stops serving "${previous}" and starts serving "${req.branch}".`);
|
|
534
537
|
}
|
|
535
|
-
if (!args.yes && !
|
|
538
|
+
if (!args.yes && !await confirm(`Make "${req.branch}" the live branch?`, {
|
|
536
539
|
flag: "--yes",
|
|
537
540
|
helpFor: { command: "release" }
|
|
538
541
|
})) {
|
|
@@ -585,7 +588,7 @@ Retry, or drop \`--backup-branch\` to release without one.`,
|
|
|
585
588
|
...backupLabel !== void 0 ? { backupBranch: backupLabel } : {}
|
|
586
589
|
};
|
|
587
590
|
if (args.static !== void 0) {
|
|
588
|
-
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-
|
|
591
|
+
const { buildStaticEnv, deployStaticTo } = await import("./deploy-command-QTIVA22A.js");
|
|
589
592
|
const env = buildStaticEnv(auth.instance, args.staticEnv);
|
|
590
593
|
const explicit = Object.keys(args.staticEnv).length > 0;
|
|
591
594
|
summary.static = await deployStaticTo(
|
|
@@ -595,7 +598,7 @@ Retry, or drop \`--backup-branch\` to release without one.`,
|
|
|
595
598
|
env,
|
|
596
599
|
explicit,
|
|
597
600
|
args.staticHost,
|
|
598
|
-
args.
|
|
601
|
+
args.skipLiveness,
|
|
599
602
|
args.staticRouting
|
|
600
603
|
);
|
|
601
604
|
}
|
|
@@ -604,4 +607,4 @@ Retry, or drop \`--backup-branch\` to release without one.`,
|
|
|
604
607
|
export {
|
|
605
608
|
runReleaseCommand
|
|
606
609
|
};
|
|
607
|
-
//# sourceMappingURL=release-command-
|
|
610
|
+
//# sourceMappingURL=release-command-YUBTNHVX.js.map
|