@xanots/sdk 0.0.11 → 0.0.12
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 +16 -0
- package/README.md +11 -6
- package/dist/.build-fingerprint +1 -1
- package/dist/{agent-file-refresh-QNKN5RYD.js → agent-file-refresh-GQWAAOBV.js} +4 -4
- package/dist/bin.js +11 -11
- package/dist/{branch-commands-2BLOC2GR.js → branch-commands-5KMPAAZV.js} +7 -7
- package/dist/bundle.d.ts +2 -2
- package/dist/bundle.js +2 -2
- package/dist/{capture-4WVJY4DQ.js → capture-YLUVAITI.js} +2 -2
- package/dist/chunk-2VTJSI6X.js +192 -0
- package/dist/{chunk-5XZ744TS.js → chunk-2ZCUO2UG.js} +1 -1
- package/dist/{chunk-XEOX6AM7.js → chunk-3LQGF2WS.js} +2 -2
- package/dist/{chunk-WP4OZZV4.js → chunk-3VFCKHOB.js} +2 -2
- package/dist/{chunk-XHEXOES3.js → chunk-5YDINUAP.js} +1 -1
- package/dist/{chunk-LU7TRWMC.js → chunk-6VNRMKFJ.js} +2 -2
- package/dist/{chunk-CTD5ZCV6.js → chunk-7WRJPKGK.js} +2 -2
- package/dist/{chunk-3INK4Y4E.js → chunk-AE3PDSDS.js} +1 -1
- package/dist/{chunk-22TKBSDV.js → chunk-AG5GCZDD.js} +2 -2
- package/dist/{chunk-DBFU47BJ.js → chunk-AOFFKSJC.js} +2 -2
- package/dist/{chunk-TCFIPDB3.js → chunk-AVGDL6RB.js} +1 -1
- package/dist/{chunk-BC2C5GVI.js → chunk-DCMANKMX.js} +1 -1
- package/dist/{chunk-WHOJWOSV.js → chunk-EETVJZAZ.js} +1 -1
- package/dist/{chunk-4Q7ZOHH7.js → chunk-ELK7UALJ.js} +3 -3
- package/dist/{chunk-VNQM3V2C.js → chunk-EXENFOWE.js} +2 -2
- package/dist/{chunk-UOZMSF4C.js → chunk-GSP2BY4F.js} +5 -5
- package/dist/{chunk-AIZKXUNP.js → chunk-IMLYGQK6.js} +2 -2
- package/dist/{chunk-QK7ZQJLP.js → chunk-N74KDCBD.js} +39 -25
- package/dist/{chunk-3IGNIP6R.js → chunk-NDP7OUPS.js} +1 -1
- package/dist/{chunk-EQW3YT5U.js → chunk-P6PVBQL6.js} +2 -2
- package/dist/{chunk-HYBN4H3F.js → chunk-PLE5QQOZ.js} +27 -20
- package/dist/{chunk-BSK7ELHU.js → chunk-PR7OXHGZ.js} +1 -1
- package/dist/{chunk-OWGCOGKK.js → chunk-QYSQ3UDO.js} +8 -8
- package/dist/{chunk-ZQ2PKR6R.js → chunk-RQ3FXV4K.js} +2 -2
- package/dist/{chunk-Q77KNEUL.js → chunk-RQNMTDXD.js} +1703 -2
- package/dist/{chunk-QKM4U5UK.js → chunk-TJS2AF5Y.js} +2 -2
- package/dist/{chunk-DIA7CT7J.js → chunk-V5Y7D4LH.js} +11 -2
- package/dist/{chunk-KA6G2L7U.js → chunk-VK26K7AY.js} +3 -3
- package/dist/{chunk-4IF54NU5.js → chunk-VPAWRBK5.js} +12 -16
- package/dist/{chunk-QYMAZRAU.js → chunk-VRNZ2NVV.js} +5 -5
- package/dist/{chunk-RCT7UX7B.js → chunk-XT3XQ4PF.js} +32 -27
- package/dist/{chunk-VAF6A3YD.js → chunk-XWFRNJMQ.js} +1 -1
- package/dist/{chunk-7ZYW652H.js → chunk-YHS6VVLJ.js} +2 -2
- package/dist/{chunk-G4EJMQLD.js → chunk-YX22LKQE.js} +2 -2
- package/dist/{chunk-F6CYJ7TN.js → chunk-Z2ZIE5CO.js} +2 -2
- package/dist/cli.d.ts +13 -6
- package/dist/cli.js +10 -10
- package/dist/codegen-command-Y2SPMAUW.js +47 -0
- package/dist/codegen.d.ts +5 -5
- package/dist/codegen.js +2 -2
- package/dist/{completion-WF46272M.js → completion-HJU5QEFB.js} +2 -2
- package/dist/{deploy-command-IP7V7GT4.js → deploy-command-XHS5PKPV.js} +19 -19
- package/dist/{ephemeral-command-U4AQ3TXX.js → ephemeral-command-2NKPEXUU.js} +8 -8
- package/dist/index.d.ts +88 -104
- package/dist/index.js +9 -9
- package/dist/init-command-23FFNUFT.js +32 -0
- package/dist/internal.d.ts +10 -16
- package/dist/internal.js +26 -26
- package/dist/{io-P2H75UV2.js → io-UBDMMDH6.js} +3 -3
- package/dist/{live-diff-IXKBVG4K.js → live-diff-HCOTN5WC.js} +3 -3
- package/dist/{lock-46FWYE4D.js → lock-HQ4KARU2.js} +2 -2
- package/dist/{lock-commands-ZZKZ4LZJ.js → lock-commands-WCRC56ME.js} +11 -11
- package/dist/{login-command-Z6CHTA57.js → login-command-P7LXD5TE.js} +6 -6
- package/dist/{loop-D5NPL4VH.js → loop-IC5ISSYB.js} +3 -3
- package/dist/{marketplace-command-P4IPLJ6J.js → marketplace-command-T6JCHW7J.js} +4 -4
- package/dist/{meta-client-K2J4XH64.js → meta-client-LKRKR3L2.js} +4 -4
- package/dist/node.d.ts +6 -6
- package/dist/node.js +14 -14
- package/dist/{preflight-command-K346GPTY.js → preflight-command-TZWPHBXY.js} +16 -16
- package/dist/{profile-command-LJSBDV2L.js → profile-command-WBNSMQSI.js} +3 -3
- package/dist/{release-command-IMNTIVWK.js → release-command-WEFYRTCI.js} +26 -26
- package/dist/{response-BQVQ24l1.d.ts → response-D6xGLEIn.d.ts} +18 -23
- package/dist/{routes-manifest-PWZHDOI5.js → routes-manifest-5ZFKUQWA.js} +2 -2
- package/dist/{runtime-V4C3AC3A.js → runtime-LSLIDALK.js} +1 -1
- package/dist/scaffold.d.ts +16 -8
- package/dist/scaffold.js +7 -11
- package/dist/{static-host-3WMV7IZO.js → static-host-4JDQCHUW.js} +1 -1
- package/dist/{status-command-AL47VG7H.js → status-command-VARULAR5.js} +4 -4
- package/dist/{store-BLyNeQ8S.d.ts → store-DAnUIi1T.d.ts} +81 -86
- package/dist/{test-command-YAZLKLGQ.js → test-command-YCAR4O35.js} +7 -7
- package/dist/{upgrade-command-BN3EHAOI.js → upgrade-command-GYEIMJBG.js} +15 -16
- package/dist/{workspace-2COHDBM3.js → workspace-33KHFLX3.js} +2 -2
- package/dist/{workspace-command-MNK7Y7MQ.js → workspace-command-2ZTGT26W.js} +26 -28
- package/dist/{workspace-export-DURY5WYL.js → workspace-export-MLYTYZS5.js} +3 -3
- package/dist/{xdo-BjJj5W_E.d.ts → xdo-ODuJklk6.d.ts} +27 -23
- package/guides/authoring.md +11 -2
- package/guides/typed-frontend.md +4 -4
- package/llms/statements-data.md +3 -2
- package/llms/values.md +1 -1
- package/llms-full.txt +18 -18
- package/llms.txt +14 -15
- package/manifest.json +6 -2
- package/package.json +1 -1
- package/dist/chunk-ANUDXFEX.js +0 -881
- package/dist/chunk-JGCWTCA7.js +0 -95
- package/dist/chunk-YBC3IKMF.js +0 -845
- package/dist/codegen-command-FUT2KJB6.js +0 -49
- package/dist/init-command-NPVL32L6.js +0 -34
|
@@ -161,7 +161,7 @@ The refresh token may be expired or already spent \u2014 refresh tokens rotate o
|
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
163
|
assertHttpsOrigin(instance2, "instance");
|
|
164
|
-
const { resolveScopedWorkspaceId } = await import("./workspace-
|
|
164
|
+
const { resolveScopedWorkspaceId } = await import("./workspace-33KHFLX3.js");
|
|
165
165
|
const workspaceId = await resolveScopedWorkspaceId({ access_token: set.access_token, instance: instance2 });
|
|
166
166
|
return { access_token: set.access_token, instance: instance2, workspaceId, credentialType: "oauth" };
|
|
167
167
|
}
|
|
@@ -272,4 +272,4 @@ export {
|
|
|
272
272
|
envMetaCredentialVarsSet,
|
|
273
273
|
getAccessToken
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=chunk-
|
|
275
|
+
//# sourceMappingURL=chunk-TJS2AF5Y.js.map
|
|
@@ -199,10 +199,19 @@ var FLAGS = {
|
|
|
199
199
|
spec: "--json",
|
|
200
200
|
summary: "Force JSON on stdout (default: whenever stdout is not a terminal)"
|
|
201
201
|
},
|
|
202
|
+
"no-refresh": {
|
|
203
|
+
spec: "--no-refresh",
|
|
204
|
+
summary: "Do not refresh the managed block in CLAUDE.md / AGENTS.md / the Cursor rule"
|
|
205
|
+
},
|
|
202
206
|
help: { spec: "--help, -h", summary: "Show help for the command and exit" },
|
|
203
207
|
version: { spec: "--version, -v", summary: "Print the CLI version and exit" }
|
|
204
208
|
};
|
|
205
|
-
var GLOBAL_FLAGS = [
|
|
209
|
+
var GLOBAL_FLAGS = [
|
|
210
|
+
"json",
|
|
211
|
+
"no-refresh",
|
|
212
|
+
"help",
|
|
213
|
+
"version"
|
|
214
|
+
];
|
|
206
215
|
var AUTH = ["origin", "config", "local"];
|
|
207
216
|
var READ_ENV = "env";
|
|
208
217
|
var COMPILE = ["lock", "frozen-lock", "strict"];
|
|
@@ -697,4 +706,4 @@ export {
|
|
|
697
706
|
visibleFlags,
|
|
698
707
|
suggest
|
|
699
708
|
};
|
|
700
|
-
//# sourceMappingURL=chunk-
|
|
709
|
+
//# sourceMappingURL=chunk-V5Y7D4LH.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
defaultThemeChoice,
|
|
6
6
|
reactPreset,
|
|
7
7
|
themeGuidanceSection
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RQNMTDXD.js";
|
|
9
9
|
import {
|
|
10
10
|
detail,
|
|
11
11
|
step,
|
|
@@ -31,7 +31,7 @@ that reads well, type-checks, and is wrong. Read before writing:
|
|
|
31
31
|
conditions are for.
|
|
32
32
|
3. \`node_modules/@xanots/sdk/manifest.json\` \u2014 only for per-entry detail neither
|
|
33
33
|
carries: a statement's full field schema with engine defaults, a filter's
|
|
34
|
-
complete argument list. Grep or \`jq\` the one entry you need; it is ~
|
|
34
|
+
complete argument list. Grep or \`jq\` the one entry you need; it is ~60k
|
|
35
35
|
tokens, so never read it whole.
|
|
36
36
|
|
|
37
37
|
The published types and JSDoc (\`node_modules/@xanots/sdk/**/*.d.ts\`) are that
|
|
@@ -442,4 +442,4 @@ export {
|
|
|
442
442
|
resolveAiPresets,
|
|
443
443
|
scaffoldProject
|
|
444
444
|
};
|
|
445
|
-
//# sourceMappingURL=chunk-
|
|
445
|
+
//# sourceMappingURL=chunk-VK26K7AY.js.map
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
presetFilePath,
|
|
3
3
|
resolveAiPresets,
|
|
4
4
|
scaffoldProject
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VK26K7AY.js";
|
|
6
6
|
import {
|
|
7
7
|
runNpmCapturingStderr
|
|
8
8
|
} from "./chunk-ZSYZTGJH.js";
|
|
9
9
|
import {
|
|
10
|
+
DEFAULT_DARK_MODE,
|
|
10
11
|
DEFAULT_FRAMEWORK,
|
|
11
12
|
allFrontendPresets,
|
|
13
|
+
defaultThemeChoice,
|
|
12
14
|
findFrontendPreset,
|
|
13
|
-
resolveFrameworkFlag
|
|
14
|
-
} from "./chunk-YBC3IKMF.js";
|
|
15
|
-
import {
|
|
16
15
|
initLanding,
|
|
16
|
+
normalizeRadius,
|
|
17
17
|
renderApiTs,
|
|
18
18
|
renderCnUtil,
|
|
19
19
|
renderEnvExample,
|
|
@@ -26,29 +26,25 @@ import {
|
|
|
26
26
|
renderTsconfig,
|
|
27
27
|
renderViteConfig,
|
|
28
28
|
renderXanoExampleMd,
|
|
29
|
-
renderXanoIndex
|
|
30
|
-
} from "./chunk-ANUDXFEX.js";
|
|
31
|
-
import {
|
|
32
|
-
DEFAULT_DARK_MODE,
|
|
33
|
-
defaultThemeChoice,
|
|
34
|
-
normalizeRadius,
|
|
29
|
+
renderXanoIndex,
|
|
35
30
|
resolveDarkModeFlag,
|
|
36
31
|
resolveFontFlag,
|
|
32
|
+
resolveFrameworkFlag,
|
|
37
33
|
resolveIconsFlag,
|
|
38
34
|
resolveThemeFlag,
|
|
39
35
|
themeFromRegistryItem,
|
|
40
36
|
withRadius
|
|
41
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RQNMTDXD.js";
|
|
42
38
|
import {
|
|
43
39
|
readVersion
|
|
44
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XT3XQ4PF.js";
|
|
45
41
|
import {
|
|
46
42
|
ENV_SPELLINGS,
|
|
47
43
|
parseEnvSelector
|
|
48
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7WRJPKGK.js";
|
|
49
45
|
import {
|
|
50
46
|
UsageError
|
|
51
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-Z2ZIE5CO.js";
|
|
52
48
|
import {
|
|
53
49
|
blank,
|
|
54
50
|
detail,
|
|
@@ -420,7 +416,7 @@ function rejectPullOnlyFlags(args) {
|
|
|
420
416
|
async function runInitCommand(args) {
|
|
421
417
|
if (args.from !== void 0) {
|
|
422
418
|
const source = resolveFromSource(args.from);
|
|
423
|
-
const { runInitFromCommand } = await import("./codegen-command-
|
|
419
|
+
const { runInitFromCommand } = await import("./codegen-command-Y2SPMAUW.js");
|
|
424
420
|
return runInitFromCommand(args, source);
|
|
425
421
|
}
|
|
426
422
|
rejectPullOnlyFlags(args);
|
|
@@ -501,4 +497,4 @@ export {
|
|
|
501
497
|
resolveFromSource,
|
|
502
498
|
runInitCommand
|
|
503
499
|
};
|
|
504
|
-
//# sourceMappingURL=chunk-
|
|
500
|
+
//# sourceMappingURL=chunk-VPAWRBK5.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
realtimeChannelGuid,
|
|
7
7
|
realtimeServerRefName,
|
|
8
8
|
resolveRealtimeServerRef
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GSP2BY4F.js";
|
|
10
10
|
import {
|
|
11
11
|
assertCanonical,
|
|
12
12
|
assertOneOf,
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
resolveAuthRef,
|
|
26
26
|
resolveMockKeys,
|
|
27
27
|
warnLiveDatasource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-N74KDCBD.js";
|
|
29
29
|
import {
|
|
30
30
|
deriveGuid,
|
|
31
31
|
getLockedCanonical,
|
|
32
32
|
lockKey,
|
|
33
33
|
realtimeMessageSeedName,
|
|
34
34
|
resolveRef
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XWFRNJMQ.js";
|
|
36
36
|
import {
|
|
37
37
|
encodeStatement
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2ZCUO2UG.js";
|
|
39
39
|
|
|
40
40
|
// src/kinds/canonical.ts
|
|
41
41
|
function resolveCanonicalToken(label, payloadKey, accessor, def, override) {
|
|
@@ -667,4 +667,4 @@ export {
|
|
|
667
667
|
addonKind,
|
|
668
668
|
addon
|
|
669
669
|
};
|
|
670
|
-
//# sourceMappingURL=chunk-
|
|
670
|
+
//# sourceMappingURL=chunk-VRNZ2NVV.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ENV_SPELLINGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7WRJPKGK.js";
|
|
4
4
|
import {
|
|
5
5
|
readLockFile,
|
|
6
6
|
writeLockFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3LQGF2WS.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
extraArguments,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
unknownFlag,
|
|
16
16
|
unknownHelpTopic,
|
|
17
17
|
unknownSubcommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z2ZIE5CO.js";
|
|
19
19
|
import {
|
|
20
20
|
detail,
|
|
21
21
|
info,
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
Xano,
|
|
27
27
|
assertSeedIds,
|
|
28
28
|
coerceSeedRowValues
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QYSQ3UDO.js";
|
|
30
30
|
import {
|
|
31
31
|
getCommand,
|
|
32
32
|
getSubcommand,
|
|
33
33
|
isCommand,
|
|
34
34
|
suggest
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-V5Y7D4LH.js";
|
|
36
36
|
import {
|
|
37
37
|
FILTER_NAMES,
|
|
38
38
|
KNOWLEDGE_DIR,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
pathSegment,
|
|
47
47
|
serializeBundle,
|
|
48
48
|
tableColumns
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-N74KDCBD.js";
|
|
50
50
|
import {
|
|
51
51
|
WORKSPACE_KEY,
|
|
52
52
|
createLockContext,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
seedLockOverrides,
|
|
59
59
|
serializeLock,
|
|
60
60
|
validateLockModel
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-XWFRNJMQ.js";
|
|
62
62
|
|
|
63
63
|
// src/emit/cli.ts
|
|
64
64
|
import { pathToFileURL as pathToFileURL3, fileURLToPath as fileURLToPath3 } from "url";
|
|
@@ -441,6 +441,7 @@ function parseArgs(argv) {
|
|
|
441
441
|
let backupBranch;
|
|
442
442
|
let emit2;
|
|
443
443
|
let json = false;
|
|
444
|
+
let noRefresh = false;
|
|
444
445
|
let open = false;
|
|
445
446
|
const positionals = [];
|
|
446
447
|
const positionalAt = [];
|
|
@@ -670,6 +671,8 @@ function parseArgs(argv) {
|
|
|
670
671
|
} else if (arg.startsWith("--backup-branch=")) {
|
|
671
672
|
const value = arg.slice("--backup-branch=".length);
|
|
672
673
|
backupBranch = value === "" ? true : value;
|
|
674
|
+
} else if (arg === "--no-refresh") {
|
|
675
|
+
noRefresh = true;
|
|
673
676
|
} else if (arg === "--json") {
|
|
674
677
|
json = true;
|
|
675
678
|
} else if (arg === "--open") {
|
|
@@ -785,6 +788,7 @@ function parseArgs(argv) {
|
|
|
785
788
|
backupBranch,
|
|
786
789
|
emit: emit2,
|
|
787
790
|
json,
|
|
791
|
+
noRefresh,
|
|
788
792
|
open,
|
|
789
793
|
unknownFlags
|
|
790
794
|
};
|
|
@@ -1004,11 +1008,11 @@ async function run(argv) {
|
|
|
1004
1008
|
return;
|
|
1005
1009
|
}
|
|
1006
1010
|
if (command === "init") {
|
|
1007
|
-
const { runInitCommand } = await import("./init-command-
|
|
1011
|
+
const { runInitCommand } = await import("./init-command-23FFNUFT.js");
|
|
1008
1012
|
return runInitCommand(args);
|
|
1009
1013
|
}
|
|
1010
1014
|
if (command === "completion") {
|
|
1011
|
-
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS } = await import("./completion-
|
|
1015
|
+
const { isCompletionShell, runCompletionCommand, COMPLETION_SHELLS } = await import("./completion-HJU5QEFB.js");
|
|
1012
1016
|
const shell = args.positionals[0];
|
|
1013
1017
|
if (shell === void 0 || !isCompletionShell(shell)) {
|
|
1014
1018
|
throw new UsageError(
|
|
@@ -1019,15 +1023,15 @@ async function run(argv) {
|
|
|
1019
1023
|
return runCompletionCommand(shell);
|
|
1020
1024
|
}
|
|
1021
1025
|
if (command === "upgrade") {
|
|
1022
|
-
const { runUpgradeCommand } = await import("./upgrade-command-
|
|
1026
|
+
const { runUpgradeCommand } = await import("./upgrade-command-GYEIMJBG.js");
|
|
1023
1027
|
return runUpgradeCommand(args);
|
|
1024
1028
|
}
|
|
1025
1029
|
if (command === "lock") {
|
|
1026
|
-
const { runLockCommand } = await import("./lock-commands-
|
|
1030
|
+
const { runLockCommand } = await import("./lock-commands-WCRC56ME.js");
|
|
1027
1031
|
return runLockCommand(args);
|
|
1028
1032
|
}
|
|
1029
1033
|
if (command === "login") {
|
|
1030
|
-
const { runLoginCommand } = await import("./login-command-
|
|
1034
|
+
const { runLoginCommand } = await import("./login-command-P7LXD5TE.js");
|
|
1031
1035
|
return runLoginCommand(args);
|
|
1032
1036
|
}
|
|
1033
1037
|
if (command === "logout") {
|
|
@@ -1035,45 +1039,45 @@ async function run(argv) {
|
|
|
1035
1039
|
return runLogoutCommand(args);
|
|
1036
1040
|
}
|
|
1037
1041
|
if (command === "deploy") {
|
|
1038
|
-
const { runDeployCommand } = await import("./deploy-command-
|
|
1042
|
+
const { runDeployCommand } = await import("./deploy-command-XHS5PKPV.js");
|
|
1039
1043
|
return runDeployCommand(args);
|
|
1040
1044
|
}
|
|
1041
1045
|
if (command === "ephemeral") {
|
|
1042
|
-
const { runEphemeralCommand } = await import("./ephemeral-command-
|
|
1046
|
+
const { runEphemeralCommand } = await import("./ephemeral-command-2NKPEXUU.js");
|
|
1043
1047
|
return runEphemeralCommand(args);
|
|
1044
1048
|
}
|
|
1045
1049
|
if (command === "release") {
|
|
1046
|
-
const { runReleaseCommand } = await import("./release-command-
|
|
1050
|
+
const { runReleaseCommand } = await import("./release-command-WEFYRTCI.js");
|
|
1047
1051
|
return runReleaseCommand(args);
|
|
1048
1052
|
}
|
|
1049
1053
|
if (command === "test") {
|
|
1050
|
-
const { runTestCommand } = await import("./test-command-
|
|
1054
|
+
const { runTestCommand } = await import("./test-command-YCAR4O35.js");
|
|
1051
1055
|
return runTestCommand(args);
|
|
1052
1056
|
}
|
|
1053
1057
|
if (command === "workspace") {
|
|
1054
|
-
const { runWorkspaceCommand } = await import("./workspace-command-
|
|
1058
|
+
const { runWorkspaceCommand } = await import("./workspace-command-2ZTGT26W.js");
|
|
1055
1059
|
return runWorkspaceCommand(args);
|
|
1056
1060
|
}
|
|
1057
1061
|
if (command === "status") {
|
|
1058
|
-
const { runStatusCommand } = await import("./status-command-
|
|
1062
|
+
const { runStatusCommand } = await import("./status-command-VARULAR5.js");
|
|
1059
1063
|
return runStatusCommand(args);
|
|
1060
1064
|
}
|
|
1061
1065
|
if (command === "whoami") {
|
|
1062
|
-
const { runProfileCommand } = await import("./profile-command-
|
|
1066
|
+
const { runProfileCommand } = await import("./profile-command-WBNSMQSI.js");
|
|
1063
1067
|
return runProfileCommand(args);
|
|
1064
1068
|
}
|
|
1065
1069
|
if (command === "profile") {
|
|
1066
1070
|
if (args.subcommand !== "me") {
|
|
1067
1071
|
throw unknownSubcommand("profile", args.subcommand);
|
|
1068
1072
|
}
|
|
1069
|
-
const { runProfileCommand } = await import("./profile-command-
|
|
1073
|
+
const { runProfileCommand } = await import("./profile-command-WBNSMQSI.js");
|
|
1070
1074
|
return runProfileCommand(args);
|
|
1071
1075
|
}
|
|
1072
1076
|
if (command === "marketplace") {
|
|
1073
1077
|
if (!["list", "search", "details", "install"].includes(args.subcommand ?? "")) {
|
|
1074
1078
|
throw unknownSubcommand("marketplace", args.subcommand);
|
|
1075
1079
|
}
|
|
1076
|
-
const marketplace = await import("./marketplace-command-
|
|
1080
|
+
const marketplace = await import("./marketplace-command-T6JCHW7J.js");
|
|
1077
1081
|
if (args.subcommand === "list") return marketplace.runMarketplaceListCommand(args);
|
|
1078
1082
|
if (args.subcommand === "search") return marketplace.runMarketplaceSearchCommand(args);
|
|
1079
1083
|
if (args.subcommand === "details") return marketplace.runMarketplaceDetailsCommand(args);
|
|
@@ -1083,7 +1087,7 @@ async function run(argv) {
|
|
|
1083
1087
|
throw unknownCommand("push");
|
|
1084
1088
|
}
|
|
1085
1089
|
if (command === "preflight") {
|
|
1086
|
-
const { runPreflightCommand } = await import("./preflight-command-
|
|
1090
|
+
const { runPreflightCommand } = await import("./preflight-command-TZWPHBXY.js");
|
|
1087
1091
|
return runPreflightCommand(args);
|
|
1088
1092
|
}
|
|
1089
1093
|
if (command !== "compile" && command !== "export" && command !== "paths" && command !== "routes") {
|
|
@@ -1113,9 +1117,10 @@ async function run(argv) {
|
|
|
1113
1117
|
process.stdout.write(json + "\n");
|
|
1114
1118
|
}
|
|
1115
1119
|
}
|
|
1116
|
-
async function refreshAgentGuidance() {
|
|
1120
|
+
async function refreshAgentGuidance(args) {
|
|
1121
|
+
if (args.noRefresh) return;
|
|
1117
1122
|
try {
|
|
1118
|
-
const { refreshAgentFiles } = await import("./agent-file-refresh-
|
|
1123
|
+
const { refreshAgentFiles } = await import("./agent-file-refresh-GQWAAOBV.js");
|
|
1119
1124
|
const refreshed = refreshAgentFiles({
|
|
1120
1125
|
projectDir: process.cwd(),
|
|
1121
1126
|
sdkVersion: readVersion()
|
|
@@ -1231,7 +1236,7 @@ async function runPaths(args) {
|
|
|
1231
1236
|
return;
|
|
1232
1237
|
}
|
|
1233
1238
|
if (unresolved.length === 0) {
|
|
1234
|
-
const { renderRouteManifest } = await import("./routes-manifest-
|
|
1239
|
+
const { renderRouteManifest } = await import("./routes-manifest-5ZFKUQWA.js");
|
|
1235
1240
|
const source = renderRouteManifest(
|
|
1236
1241
|
resolved.map((r) => ({ name: r.name, verb: r.verb, canonical: r.canonical })),
|
|
1237
1242
|
describableServers.length > 0 ? { servers: describableServers, channels: channelRows } : void 0
|
|
@@ -1287,7 +1292,7 @@ async function compileBundle(args, opts = {}) {
|
|
|
1287
1292
|
`--frozen-lock: no xano.lock found at ${lockPath}. Create one with \`xanots export ${file} --lock\` and commit it.`
|
|
1288
1293
|
);
|
|
1289
1294
|
}
|
|
1290
|
-
await refreshAgentGuidance();
|
|
1295
|
+
await refreshAgentGuidance(args);
|
|
1291
1296
|
const def = await loadDefault(file);
|
|
1292
1297
|
if (!Xano.isXano(def)) {
|
|
1293
1298
|
throw new Error(`Module "${file}" must default-export a Xano registry for \`export\`.`);
|
|
@@ -1348,4 +1353,4 @@ export {
|
|
|
1348
1353
|
exportBundleJson,
|
|
1349
1354
|
compileBundle
|
|
1350
1355
|
};
|
|
1351
|
-
//# sourceMappingURL=chunk-
|
|
1356
|
+
//# sourceMappingURL=chunk-XT3XQ4PF.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-ZUTSMMAG.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchReadOrExplain
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NDP7OUPS.js";
|
|
7
7
|
|
|
8
8
|
// src/deploy/workspace-export.ts
|
|
9
9
|
var EXPORT_TIMEOUT_MS = 12e4;
|
|
@@ -53,4 +53,4 @@ function describeErrorBody(bytes, contentType) {
|
|
|
53
53
|
export {
|
|
54
54
|
exportWorkspaceBundle
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-YHS6VVLJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
c,
|
|
3
3
|
resp
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N74KDCBD.js";
|
|
5
5
|
|
|
6
6
|
// src/values/expect.ts
|
|
7
7
|
var TEST_EXPECT_TYPES = [
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
TEST_EXPECT_TYPES,
|
|
91
91
|
expect
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-YX22LKQE.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
renderArgs,
|
|
21
21
|
suggest,
|
|
22
22
|
visibleFlags
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V5Y7D4LH.js";
|
|
24
24
|
|
|
25
25
|
// src/emit/help.ts
|
|
26
26
|
function table(rows, s, indent = " ", fixedWidth) {
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
reportFailure,
|
|
262
262
|
exitCodeOf
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-Z2ZIE5CO.js.map
|
package/dist/cli.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface NonPublicSeedValue {
|
|
|
17
17
|
* Whether a static build can actually be searched for this value.
|
|
18
18
|
*
|
|
19
19
|
* `false` for a value below {@link MIN_SCANNABLE_LENGTH}, and for a non-string
|
|
20
|
-
* one. Those are collected rather than dropped
|
|
20
|
+
* one. Those are collected rather than dropped: being too short to
|
|
21
21
|
* search for is not the same as being safe, and the author is the only one who
|
|
22
22
|
* can judge which it is. The scanner skips them; the deploy path reports them.
|
|
23
23
|
*/
|
|
@@ -54,8 +54,8 @@ interface ParsedArgs {
|
|
|
54
54
|
/**
|
|
55
55
|
* `--strict`: promote every export/deploy WARNING to a hard failure — the
|
|
56
56
|
* build diagnostics (a `bulk.update` that zero-fills omitted columns, an
|
|
57
|
-
* `ignoreEmpty` that drops its predicate
|
|
58
|
-
* preflights (unresolvable filter names
|
|
57
|
+
* `ignoreEmpty` that drops its predicate) as well as the CLI's own
|
|
58
|
+
* preflights (unresolvable filter names; a stale `--emit`
|
|
59
59
|
* manifest). Warnings print either way; `--strict` decides whether a printed
|
|
60
60
|
* one still ships.
|
|
61
61
|
*/
|
|
@@ -332,6 +332,13 @@ interface ParsedArgs {
|
|
|
332
332
|
* `isMachineOutput` (output.ts) — never by re-checking `isTTY` at a call site.
|
|
333
333
|
*/
|
|
334
334
|
json: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* `--no-refresh`: skip the agent-guidance refresh a compile runs as a
|
|
337
|
+
* courtesy. Global, because that courtesy rides on `export`, `deploy`,
|
|
338
|
+
* `release`, and `preflight` alike — and it writes to the user's tree, so
|
|
339
|
+
* "build without touching my files" has to be sayable on any of them.
|
|
340
|
+
*/
|
|
341
|
+
noRefresh: boolean;
|
|
335
342
|
/**
|
|
336
343
|
* `deploy --open`: open the deployed URL in the default browser once it lands.
|
|
337
344
|
* Honors `XANO_NO_BROWSER` like every other launch, since it shares the same
|
|
@@ -341,9 +348,9 @@ interface ParsedArgs {
|
|
|
341
348
|
/**
|
|
342
349
|
* Leading-dash tokens the parser doesn't recognize. They are collected HERE
|
|
343
350
|
* rather than falling into {@link positionals} so an unknown flag can never be
|
|
344
|
-
* resolved as the entry `<file
|
|
345
|
-
*
|
|
346
|
-
*
|
|
351
|
+
* resolved as the entry `<file>`: otherwise `xanots deploy --help` is
|
|
352
|
+
* imported as a module path and dies in Node's loader with a message about a
|
|
353
|
+
* missing file named `--help`.
|
|
347
354
|
*/
|
|
348
355
|
unknownFlags: string[];
|
|
349
356
|
}
|
package/dist/cli.js
CHANGED
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
resolveHelpRequest,
|
|
9
9
|
resolveLockPath,
|
|
10
10
|
run
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-XT3XQ4PF.js";
|
|
12
|
+
import "./chunk-7WRJPKGK.js";
|
|
13
|
+
import "./chunk-3LQGF2WS.js";
|
|
14
|
+
import "./chunk-Z2ZIE5CO.js";
|
|
15
15
|
import "./chunk-GNPVYOPB.js";
|
|
16
16
|
import "./chunk-EZG76F7R.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-QYSQ3UDO.js";
|
|
18
|
+
import "./chunk-V5Y7D4LH.js";
|
|
19
|
+
import "./chunk-N74KDCBD.js";
|
|
20
|
+
import "./chunk-EETVJZAZ.js";
|
|
21
|
+
import "./chunk-XWFRNJMQ.js";
|
|
22
|
+
import "./chunk-2ZCUO2UG.js";
|
|
23
23
|
import "./chunk-OHX6MIUZ.js";
|
|
24
24
|
export {
|
|
25
25
|
compileBundle,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
blameGeneratedFile,
|
|
3
|
+
fetchWorkspaceBundle,
|
|
4
|
+
isMissingDependencyError,
|
|
5
|
+
runInitFromCommand,
|
|
6
|
+
verifyCrashEntry
|
|
7
|
+
} from "./chunk-PLE5QQOZ.js";
|
|
8
|
+
import "./chunk-RQ3FXV4K.js";
|
|
9
|
+
import "./chunk-K5IOND4K.js";
|
|
10
|
+
import "./chunk-TJS2AF5Y.js";
|
|
11
|
+
import "./chunk-FE5I6S6N.js";
|
|
12
|
+
import "./chunk-YHS6VVLJ.js";
|
|
13
|
+
import "./chunk-ZUTSMMAG.js";
|
|
14
|
+
import "./chunk-X4DVXBFY.js";
|
|
15
|
+
import "./chunk-NDP7OUPS.js";
|
|
16
|
+
import "./chunk-VPAWRBK5.js";
|
|
17
|
+
import "./chunk-VK26K7AY.js";
|
|
18
|
+
import "./chunk-ZSYZTGJH.js";
|
|
19
|
+
import "./chunk-YX22LKQE.js";
|
|
20
|
+
import "./chunk-6VNRMKFJ.js";
|
|
21
|
+
import "./chunk-RQNMTDXD.js";
|
|
22
|
+
import "./chunk-PR7OXHGZ.js";
|
|
23
|
+
import "./chunk-GSP2BY4F.js";
|
|
24
|
+
import "./chunk-EHP3WPEG.js";
|
|
25
|
+
import "./chunk-AE3PDSDS.js";
|
|
26
|
+
import "./chunk-DCMANKMX.js";
|
|
27
|
+
import "./chunk-XT3XQ4PF.js";
|
|
28
|
+
import "./chunk-7WRJPKGK.js";
|
|
29
|
+
import "./chunk-3LQGF2WS.js";
|
|
30
|
+
import "./chunk-Z2ZIE5CO.js";
|
|
31
|
+
import "./chunk-GNPVYOPB.js";
|
|
32
|
+
import "./chunk-EZG76F7R.js";
|
|
33
|
+
import "./chunk-QYSQ3UDO.js";
|
|
34
|
+
import "./chunk-V5Y7D4LH.js";
|
|
35
|
+
import "./chunk-N74KDCBD.js";
|
|
36
|
+
import "./chunk-EETVJZAZ.js";
|
|
37
|
+
import "./chunk-XWFRNJMQ.js";
|
|
38
|
+
import "./chunk-2ZCUO2UG.js";
|
|
39
|
+
import "./chunk-OHX6MIUZ.js";
|
|
40
|
+
export {
|
|
41
|
+
blameGeneratedFile,
|
|
42
|
+
fetchWorkspaceBundle,
|
|
43
|
+
isMissingDependencyError,
|
|
44
|
+
runInitFromCommand,
|
|
45
|
+
verifyCrashEntry
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=codegen-command-Y2SPMAUW.js.map
|
package/dist/codegen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Statement, f as FieldDescriptor, w as ResponseDef } from './response-
|
|
2
|
-
import { n as Tag, h as FilterXdo, o as TaggedValue } from './xdo-
|
|
1
|
+
import { S as Statement, f as FieldDescriptor, w as ResponseDef } from './response-D6xGLEIn.js';
|
|
2
|
+
import { n as Tag, h as FilterXdo, o as TaggedValue } from './xdo-ODuJklk6.js';
|
|
3
3
|
|
|
4
4
|
/** A stored statement envelope as it appears in a Xano bundle's `run[]`. */
|
|
5
5
|
type RawEnvelope = Record<string, unknown>;
|
|
@@ -26,7 +26,7 @@ declare function raw(envelope: RawEnvelope): Statement;
|
|
|
26
26
|
* generated tree greppable by one name.
|
|
27
27
|
*
|
|
28
28
|
* Reached via `@xanots/sdk/codegen`, alongside `raw()` — same reasoning
|
|
29
|
-
|
|
29
|
+
*: a passthrough should not sit in tab-completion next to `c.text`.
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -37,7 +37,7 @@ declare function raw(envelope: RawEnvelope): Statement;
|
|
|
37
37
|
* what the SDK writes. The corpus is genuinely mixed — the same tag appears with
|
|
38
38
|
* a quoted and an unquoted value in one workspace — and codegen echoes whichever
|
|
39
39
|
* it found. Declaring it `string` alone made a pulled tree fail its own
|
|
40
|
-
* type-check
|
|
40
|
+
* type-check, which broke every npm script in the scaffold, since
|
|
41
41
|
* each one runs `tsc --noEmit` first.
|
|
42
42
|
*
|
|
43
43
|
* Coercing to the string form at emit would be the other repair. It is the wrong
|
|
@@ -91,7 +91,7 @@ declare function rawField(envelope: RawFieldEnvelope): FieldDescriptor;
|
|
|
91
91
|
* instead.
|
|
92
92
|
*
|
|
93
93
|
* Reached via `@xanots/sdk/codegen`, never from the discoverable authoring
|
|
94
|
-
* namespace, for the same reason `raw()` stays off `s
|
|
94
|
+
* namespace, for the same reason `raw()` stays off `s`.
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
/** A stored `result[]` entry as it appears in a bundle. */
|
package/dist/codegen.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
liveCommandNames,
|
|
7
7
|
liveSubcommandNames,
|
|
8
8
|
visibleFlags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V5Y7D4LH.js";
|
|
10
10
|
|
|
11
11
|
// src/emit/completion.ts
|
|
12
12
|
var COMPLETION_SHELLS = ["bash", "zsh", "fish"];
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
renderCompletion,
|
|
297
297
|
runCompletionCommand
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=completion-
|
|
299
|
+
//# sourceMappingURL=completion-HJU5QEFB.js.map
|