@xanots/sdk 0.0.6 → 0.0.8

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/.build-fingerprint +1 -1
  3. package/dist/{agent-file-refresh-6XT23SLU.js → agent-file-refresh-4W37DGXS.js} +3 -3
  4. package/dist/bin.js +6 -6
  5. package/dist/{branch-commands-R4FR75UW.js → branch-commands-PBQ36L4A.js} +3 -3
  6. package/dist/{chunk-JRGDLAEA.js → chunk-2ROR3AZC.js} +2 -2
  7. package/dist/{chunk-OR43PDCW.js → chunk-3EYUR3TX.js} +2 -2
  8. package/dist/{chunk-GC7ZQHW7.js → chunk-3MDKV2VA.js} +5 -4
  9. package/dist/{chunk-SG4UBJ47.js → chunk-3QW5NFZJ.js} +26 -5
  10. package/dist/{chunk-2SUCC4DV.js → chunk-4PE4ZAB7.js} +2 -2
  11. package/dist/{chunk-CQBJNFDK.js → chunk-64QK6JEK.js} +22 -7
  12. package/dist/{chunk-CU5VOSTW.js → chunk-7AXQKABT.js} +4 -4
  13. package/dist/{chunk-EFH4NFPY.js → chunk-7JDT4PBU.js} +70 -6
  14. package/dist/{chunk-LLWK6H77.js → chunk-BKDJN76G.js} +31 -1
  15. package/dist/{chunk-4HDOP7LH.js → chunk-C3M5K4ZH.js} +3 -3
  16. package/dist/{chunk-Y7BARS25.js → chunk-CDAQUY5W.js} +2 -2
  17. package/dist/{chunk-TYBB7ON3.js → chunk-EM5QPTXP.js} +11 -11
  18. package/dist/{chunk-3FQD3QME.js → chunk-FEQTQ6PM.js} +65 -11
  19. package/dist/{chunk-AAFBSOSD.js → chunk-JQJPFUZI.js} +3 -3
  20. package/dist/{chunk-WJYB7DSI.js → chunk-MDXR5E5Q.js} +2 -2
  21. package/dist/{chunk-OLQLJY5T.js → chunk-OYMR5AMJ.js} +2 -2
  22. package/dist/{chunk-QVSUMHNN.js → chunk-PYS7UNNW.js} +2 -2
  23. package/dist/{chunk-P5OAM3G2.js → chunk-QIWBCS7N.js} +2 -2
  24. package/dist/{chunk-SOCYCBYG.js → chunk-SNO3KHCY.js} +23 -23
  25. package/dist/{chunk-CEFYM6N5.js → chunk-XP7S3VWY.js} +4 -4
  26. package/dist/cli.js +5 -5
  27. package/dist/{codegen-command-6XXOIQ25.js → codegen-command-U2W72DLG.js} +13 -13
  28. package/dist/{deploy-command-MTQQXPOO.js → deploy-command-QZ3GNLAD.js} +12 -12
  29. package/dist/{env-target-C5JFLDK3.js → env-target-NAYVEXBH.js} +6 -6
  30. package/dist/{ephemeral-command-K3UJSDS4.js → ephemeral-command-DL7EY4LL.js} +7 -7
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +6 -6
  33. package/dist/{init-command-AY4KSXR5.js → init-command-4MG3UKUO.js} +8 -8
  34. package/dist/internal.d.ts +2 -2
  35. package/dist/internal.js +112 -55
  36. package/dist/{io-65CJNLYI.js → io-M7XZEMK7.js} +3 -3
  37. package/dist/{lock-PDFCNYUW.js → lock-GFXD6G2E.js} +6 -2
  38. package/dist/{lock-commands-MC6I3MZA.js → lock-commands-Y4S4NUCE.js} +6 -6
  39. package/dist/{login-command-LCOOOPO2.js → login-command-DFCURZLC.js} +3 -3
  40. package/dist/{logout-command-J2AG5NKC.js → logout-command-WXVZQCAV.js} +2 -2
  41. package/dist/node.d.ts +2 -2
  42. package/dist/node.js +8 -8
  43. package/dist/{profile-command-ZPC2DPFV.js → profile-command-QJAAUZIV.js} +3 -3
  44. package/dist/{release-command-V4K4IORX.js → release-command-DN75G5GJ.js} +26 -14
  45. package/dist/{sandbox-details-command-DMY2KGA2.js → sandbox-details-command-EDO56IY3.js} +4 -4
  46. package/dist/{sandbox-export-command-R6QMEK3D.js → sandbox-export-command-MO6DEZ7Z.js} +5 -5
  47. package/dist/{store-BJONDJoZ.d.ts → store-CUCBSYLj.d.ts} +8 -4
  48. package/dist/{test-command-OEBIGOPP.js → test-command-RRNNJ45I.js} +6 -6
  49. package/dist/{upgrade-command-52AAZ3NV.js → upgrade-command-XFOAWDI3.js} +9 -9
  50. package/dist/{validate-command-KTLPSSH7.js → validate-command-GLF5ZOOW.js} +7 -7
  51. package/dist/{workspace-command-LX5S5N2H.js → workspace-command-QCFELEGR.js} +16 -16
  52. package/guides/environment.md +6 -3
  53. package/llms/fields.md +9 -0
  54. package/llms/kinds-core.md +2 -1
  55. package/llms/lambda.md +1 -1
  56. package/llms/legacy.md +1 -1
  57. package/llms/lock.md +32 -0
  58. package/llms/object-kinds.md +2 -2
  59. package/llms/statements-calls.md +9 -2
  60. package/llms-full.txt +106 -56
  61. package/llms.txt +49 -49
  62. package/manifest.json +2 -2
  63. package/package.json +1 -1
@@ -12,18 +12,20 @@ import {
12
12
  middlewareEntryGuid,
13
13
  stackReferencesAuth,
14
14
  tableColumns
15
- } from "./chunk-CQBJNFDK.js";
15
+ } from "./chunk-64QK6JEK.js";
16
16
  import {
17
17
  CANONICAL_PAYLOAD_KEYS,
18
18
  REFERENCEABLE_KINDS,
19
19
  WORKSPACE_KEY,
20
+ appNamesByGuid,
20
21
  deriveGuid,
21
22
  guidSeedHint,
22
23
  lockKey,
24
+ lockNameForObject,
23
25
  mintCanonical,
24
26
  recordObserved,
25
27
  resolveRef
26
- } from "./chunk-EFH4NFPY.js";
28
+ } from "./chunk-7JDT4PBU.js";
27
29
 
28
30
  // src/workspace/seed-coerce.ts
29
31
  function coerceScalarValue(label, column, type, value, values) {
@@ -467,6 +469,30 @@ function checkExpressionOperands(sections, bag) {
467
469
  }
468
470
  }
469
471
  }
472
+ var INTERPOLATED_OBJECT = "[object Object]";
473
+ function checkInterpolatedValues(sections, bag) {
474
+ for (const [payloadKey, arr] of Object.entries(sections)) {
475
+ for (const obj of arr ?? []) {
476
+ if (!obj || typeof obj !== "object") continue;
477
+ const name = obj.name;
478
+ const samples = [];
479
+ walkNodes(obj, (record) => {
480
+ if (typeof record.tag !== "string" || typeof record.value !== "string") return;
481
+ if (!record.value.includes(INTERPOLATED_OBJECT)) return;
482
+ if (samples.length < 2) {
483
+ const text = record.value.length > 60 ? `${record.value.slice(0, 57)}\u2026` : record.value;
484
+ samples.push(`\`${text}\` (tag \`${record.tag}\`)`);
485
+ }
486
+ });
487
+ if (samples.length === 0) continue;
488
+ const owner = `${payloadKey} "${typeof name === "string" ? name : "?"}"`;
489
+ bag.warn(
490
+ "value.interpolated-object",
491
+ `${owner} stores ${samples.join(" and ")} \u2014 \`[object Object]\` is the JS toString of a tagged value (\`ref()\`/\`inp()\`/\`c.*\`) interpolated into a template literal or \`+\` concatenation, which evaluates at BUILD time; the engine serves this text verbatim. Compose at runtime instead: \`withFilters(c.text("\u2026"), fl.concat(ref("\u2026")))\`, an \`obj({...})\` member, or \`c.expression\`.`
492
+ );
493
+ }
494
+ }
495
+ }
470
496
  function checkSeed(tables, bag) {
471
497
  for (const def of tables) {
472
498
  const source = def.seed;
@@ -540,7 +566,22 @@ function checkRealtimeDeliver(bundleType, sections, bag) {
540
566
  );
541
567
  }
542
568
  }
543
- var IMPLICIT_VAR_BASES = /* @__PURE__ */ new Set(["input"]);
569
+ var RESERVED_VAR_NAMESPACES = {
570
+ auth: (path) => `the authenticated caller \u2014 use \`auth("${tail(path)}")\``,
571
+ input: (path) => `a request input \u2014 use \`inp("${tail(path) || "name"}")\``,
572
+ env: (path) => `a workspace env var \u2014 use \`env("${tail(path) || "NAME"}")\` (or \`sys.*\` for a request-context value)`,
573
+ response: (path) => `the response under test \u2014 use \`resp("${tail(path)}")\``,
574
+ output: (path) => `a statement output \u2014 use \`out("${tail(path) || "name"}")\``,
575
+ error: (path) => `a caught error \u2014 use \`caught("${tail(path) || "message"}")\``,
576
+ trycatch: (path) => `a caught error \u2014 use \`caught("${tail(path) || "message"}")\``,
577
+ db: (path) => `a table column \u2014 use \`col("${tail(path) || "column"}")\``,
578
+ toolset: (path) => `a toolset binding \u2014 use \`toolset("${tail(path) || "token"}")\``,
579
+ var: (path, base) => `the variable namespace itself \u2014 drop the \`${base}.\` prefix (\`ref("${tail(path)}")\`)`
580
+ };
581
+ function tail(path) {
582
+ const dot = path.indexOf(".");
583
+ return dot === -1 ? "" : path.slice(dot + 1);
584
+ }
544
585
  function collectBindings(statements) {
545
586
  const bound = /* @__PURE__ */ new Set();
546
587
  for (const statement of statements) {
@@ -594,14 +635,22 @@ function checkUnboundVarRefs(sections, bag) {
594
635
  for (const path of refs) {
595
636
  const dot = path.indexOf(".");
596
637
  const base = dot === -1 ? path : path.slice(0, dot);
597
- if (base === "" || base.startsWith("$") || IMPLICIT_VAR_BASES.has(base)) continue;
638
+ if (base === "" || base.startsWith("$")) continue;
598
639
  if (bound.has(base)) continue;
599
640
  if (reported.has(base)) continue;
600
641
  reported.add(base);
642
+ const reserved = RESERVED_VAR_NAMESPACES[base];
643
+ if (reserved) {
644
+ bag.error(
645
+ "stack.reserved-var-namespace",
646
+ `${owner}: \`ref("${path}")\` reads a STACK VARIABLE named \`${base}\`, and nothing in this stack binds one \u2014 so the engine raises \`Missing var entry: ${base}\` (ERROR_FATAL, HTTP 500) on the first request. \`ref\` only ever spells a stack variable. For ${reserved(path, base)}. (If you really do mean a stack variable named \`${base}\`, bind it first with \`as: "${base}"\` and this passes.)`
647
+ );
648
+ continue;
649
+ }
601
650
  const suggestion = didYouMean(base, bound);
602
651
  bag.warn(
603
652
  "stack.unbound-var",
604
- `${owner}: \`ref("${path}")\` names a variable that nothing in this stack binds with \`as\`. At runtime this raises \`Unable to locate var: ${base}\` \u2014 an HTTP 500 on the deployed environment.${suggestion ? ` Did you mean "${suggestion}"?` : ""} Bind it first (\`as: "${base}"\` on the statement that produces it). Do NOT reach for \`ref(\u2026, { safe: true })\` here: that is for drilling into a value that may be null, and against a name that binds nothing it just turns the 500 into a silent \`null\`.`
653
+ `${owner}: \`ref("${path}")\` names a variable that nothing in this stack binds with \`as\`. At runtime this raises \`Missing var entry: ${base}\` \u2014 an HTTP 500 on the deployed environment.${suggestion ? ` Did you mean "${suggestion}"?` : ""} Bind it first (\`as: "${base}"\` on the statement that produces it). Do NOT reach for \`ref(\u2026, { safe: true })\` here: that is for drilling into a value that may be null, and against a name that binds nothing it just turns the 500 into a silent \`null\`.`
605
654
  );
606
655
  }
607
656
  }
@@ -680,22 +729,24 @@ function checkNullMatchArgs(sections, bag) {
680
729
  }
681
730
  }
682
731
  function checkSameNameSiblings(sections, bag) {
732
+ const appNames = appNamesByGuid(sections["app"]);
683
733
  for (const [payloadKey, arr] of Object.entries(sections)) {
684
734
  const guidsByName = /* @__PURE__ */ new Map();
685
735
  for (const obj of arr ?? []) {
686
736
  if (!obj || typeof obj !== "object") continue;
687
737
  const { name, guid } = obj;
688
738
  if (typeof name !== "string" || name === "" || typeof guid !== "string") continue;
689
- const guids = guidsByName.get(name) ?? /* @__PURE__ */ new Set();
739
+ const identity = lockNameForObject(payloadKey, obj, appNames);
740
+ const guids = guidsByName.get(identity) ?? /* @__PURE__ */ new Set();
690
741
  guids.add(guid);
691
- guidsByName.set(name, guids);
742
+ guidsByName.set(identity, guids);
692
743
  }
693
744
  for (const [name, guids] of guidsByName) {
694
745
  if (guids.size < 2) continue;
695
- const advice = payloadKey === "query" ? `Give them distinct names (\`${name}\` and \`${name}/create\` for a GET/POST pair \u2014 the verb still carries the semantics). An explicit \`guid\` clears the export-time collision but not this one.` : `${payloadKey} identity is composed from more than the name here, but the lock key is not \u2014 name them uniquely across the workspace.`;
746
+ const advice = payloadKey === "channel" || payloadKey === "message" || payloadKey === "realtime_server" ? `${payloadKey} identity is composed from more than the name here, but the lock key is not \u2014 name them uniquely across the workspace.` : `Rename one of them \u2014 an explicit \`guid\` clears the export-time collision but not this one.`;
696
747
  bag.warn(
697
748
  "lock.same-name-siblings",
698
- `${guids.size} ${payloadKey} objects share the name "${name}" while carrying different guids. This bundle exports, but a lock entry is keyed \`${payloadKey}:${name}\` and holds ONE guid, so \`xanots export --lock\` REFUSES the pair \u2014 and a committed \`xano.lock\` is the recommended workflow. ${advice} Fixing it now costs a rename; at the first locked export it costs the lock.`
749
+ `${guids.size} ${payloadKey} objects share the identity "${name}" while carrying different guids. This bundle exports, but a lock entry is keyed \`${payloadKey}:${name}\` and holds ONE guid, so \`xanots export --lock\` REFUSES the pair \u2014 and a committed \`xano.lock\` is the recommended workflow. ${advice} Fixing it now costs a rename; at the first locked export it costs the lock.`
699
750
  );
700
751
  }
701
752
  }
@@ -1405,6 +1456,7 @@ var Xano = class {
1405
1456
  checkMicroserviceBlocks(sections, bag);
1406
1457
  checkStacks(this.tableDefs, sections, bag);
1407
1458
  checkExpressionOperands(sections, bag);
1459
+ checkInterpolatedValues(sections, bag);
1408
1460
  checkReferences(this.bundleType, sections, this.workspaceConfig.guid, bag);
1409
1461
  checkDecodeOnlyStatements(sections, bag);
1410
1462
  checkRunFamilyHosts(sections, bag);
@@ -1628,6 +1680,7 @@ var Xano = class {
1628
1680
  if (typeof ws.canonical === "string" && ws.canonical !== "") {
1629
1681
  recordObserved(ctx, WORKSPACE_KEY, { canonical: ws.canonical });
1630
1682
  }
1683
+ const appNames = appNamesByGuid(sections.app);
1631
1684
  for (const [payloadKey, arr] of Object.entries(sections)) {
1632
1685
  for (const obj of arr ?? []) {
1633
1686
  if (!obj || typeof obj !== "object") continue;
@@ -1637,7 +1690,8 @@ var Xano = class {
1637
1690
  if (typeof o.canonical === "string" && o.canonical !== "") {
1638
1691
  identity.canonical = o.canonical;
1639
1692
  }
1640
- recordObserved(ctx, lockKey(payloadKey, o.name), identity);
1693
+ const lockName = lockNameForObject(payloadKey, o, appNames);
1694
+ recordObserved(ctx, lockKey(payloadKey, lockName), identity);
1641
1695
  }
1642
1696
  }
1643
1697
  }
@@ -1652,4 +1706,4 @@ export {
1652
1706
  Xano,
1653
1707
  workspace
1654
1708
  };
1655
- //# sourceMappingURL=chunk-3FQD3QME.js.map
1709
+ //# sourceMappingURL=chunk-FEQTQ6PM.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sandboxBaseUrl
3
- } from "./chunk-OR43PDCW.js";
3
+ } from "./chunk-3EYUR3TX.js";
4
4
  import {
5
5
  getAccessToken
6
- } from "./chunk-SG4UBJ47.js";
6
+ } from "./chunk-3QW5NFZJ.js";
7
7
  import {
8
8
  exportWorkspaceBundle
9
9
  } from "./chunk-QTNO2WD6.js";
@@ -115,4 +115,4 @@ export {
115
115
  fetchSandboxBundle,
116
116
  runSandboxExportCommand
117
117
  };
118
- //# sourceMappingURL=chunk-AAFBSOSD.js.map
118
+ //# sourceMappingURL=chunk-JQJPFUZI.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureGitignored
3
- } from "./chunk-LLWK6H77.js";
3
+ } from "./chunk-BKDJN76G.js";
4
4
  import {
5
5
  atomicWrite
6
6
  } from "./chunk-GNPVYOPB.js";
@@ -57,4 +57,4 @@ export {
57
57
  setEnvironment,
58
58
  clearEnvironment
59
59
  };
60
- //# sourceMappingURL=chunk-WJYB7DSI.js.map
60
+ //# sourceMappingURL=chunk-MDXR5E5Q.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  parseLock,
6
6
  serializeLock
7
- } from "./chunk-EFH4NFPY.js";
7
+ } from "./chunk-7JDT4PBU.js";
8
8
 
9
9
  // src/lock/io.ts
10
10
  import { readFileSync, existsSync } from "fs";
@@ -35,4 +35,4 @@ export {
35
35
  readLockFile,
36
36
  writeLockFile
37
37
  };
38
- //# sourceMappingURL=chunk-OLQLJY5T.js.map
38
+ //# sourceMappingURL=chunk-OYMR5AMJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  compileBundle
3
- } from "./chunk-SOCYCBYG.js";
3
+ } from "./chunk-SNO3KHCY.js";
4
4
  import {
5
5
  missingArgument
6
6
  } from "./chunk-JQLR64UC.js";
@@ -34,4 +34,4 @@ export {
34
34
  assertBundleInput,
35
35
  loadBundleText
36
36
  };
37
- //# sourceMappingURL=chunk-QVSUMHNN.js.map
37
+ //# sourceMappingURL=chunk-PYS7UNNW.js.map
@@ -5,7 +5,7 @@ import {
5
5
  presetFilePath,
6
6
  renderPreset,
7
7
  upsertManagedBlock
8
- } from "./chunk-2SUCC4DV.js";
8
+ } from "./chunk-4PE4ZAB7.js";
9
9
  import {
10
10
  warn
11
11
  } from "./chunk-EZG76F7R.js";
@@ -92,4 +92,4 @@ export {
92
92
  isCI,
93
93
  refreshAgentFiles
94
94
  };
95
- //# sourceMappingURL=chunk-P5OAM3G2.js.map
95
+ //# sourceMappingURL=chunk-QIWBCS7N.js.map
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  readLockFile,
15
15
  writeLockFile
16
- } from "./chunk-OLQLJY5T.js";
16
+ } from "./chunk-OYMR5AMJ.js";
17
17
  import {
18
18
  detail,
19
19
  info,
@@ -24,7 +24,7 @@ import {
24
24
  Xano,
25
25
  assertSeedIds,
26
26
  coerceSeedRowValues
27
- } from "./chunk-3FQD3QME.js";
27
+ } from "./chunk-FEQTQ6PM.js";
28
28
  import {
29
29
  getCommand,
30
30
  getSubcommand,
@@ -44,7 +44,7 @@ import {
44
44
  pathSegment,
45
45
  serializeBundle,
46
46
  tableColumns
47
- } from "./chunk-CQBJNFDK.js";
47
+ } from "./chunk-64QK6JEK.js";
48
48
  import {
49
49
  WORKSPACE_KEY,
50
50
  createLockContext,
@@ -56,7 +56,7 @@ import {
56
56
  seedLockOverrides,
57
57
  serializeLock,
58
58
  validateLockModel
59
- } from "./chunk-EFH4NFPY.js";
59
+ } from "./chunk-7JDT4PBU.js";
60
60
 
61
61
  // src/emit/cli.ts
62
62
  import { pathToFileURL as pathToFileURL3, fileURLToPath as fileURLToPath3 } from "url";
@@ -955,7 +955,7 @@ async function run(argv) {
955
955
  return;
956
956
  }
957
957
  if (command === "init") {
958
- const { runInitCommand } = await import("./init-command-AY4KSXR5.js");
958
+ const { runInitCommand } = await import("./init-command-4MG3UKUO.js");
959
959
  return runInitCommand(args);
960
960
  }
961
961
  if (command === "completion") {
@@ -970,31 +970,31 @@ async function run(argv) {
970
970
  return runCompletionCommand(shell);
971
971
  }
972
972
  if (command === "upgrade") {
973
- const { runUpgradeCommand } = await import("./upgrade-command-52AAZ3NV.js");
973
+ const { runUpgradeCommand } = await import("./upgrade-command-XFOAWDI3.js");
974
974
  return runUpgradeCommand(args);
975
975
  }
976
976
  if (command === "lock") {
977
- const { runLockCommand } = await import("./lock-commands-MC6I3MZA.js");
977
+ const { runLockCommand } = await import("./lock-commands-Y4S4NUCE.js");
978
978
  return runLockCommand(args);
979
979
  }
980
980
  if (command === "login") {
981
- const { runLoginCommand } = await import("./login-command-LCOOOPO2.js");
981
+ const { runLoginCommand } = await import("./login-command-DFCURZLC.js");
982
982
  return runLoginCommand(args);
983
983
  }
984
984
  if (command === "logout") {
985
- const { runLogoutCommand } = await import("./logout-command-J2AG5NKC.js");
985
+ const { runLogoutCommand } = await import("./logout-command-WXVZQCAV.js");
986
986
  return runLogoutCommand(args);
987
987
  }
988
988
  if (command === "deploy") {
989
- const { runDeployCommand } = await import("./deploy-command-MTQQXPOO.js");
989
+ const { runDeployCommand } = await import("./deploy-command-QZ3GNLAD.js");
990
990
  return runDeployCommand(args);
991
991
  }
992
992
  if (command === "ephemeral") {
993
- const { runEphemeralCommand } = await import("./ephemeral-command-K3UJSDS4.js");
993
+ const { runEphemeralCommand } = await import("./ephemeral-command-DL7EY4LL.js");
994
994
  return runEphemeralCommand(args);
995
995
  }
996
996
  if (command === "release") {
997
- const { runReleaseCommand } = await import("./release-command-V4K4IORX.js");
997
+ const { runReleaseCommand } = await import("./release-command-DN75G5GJ.js");
998
998
  return runReleaseCommand(args);
999
999
  }
1000
1000
  if (command === "sandbox") {
@@ -1002,40 +1002,40 @@ async function run(argv) {
1002
1002
  throw removedSubcommand("sandbox", "deploy");
1003
1003
  }
1004
1004
  if (args.subcommand === "details") {
1005
- const { runSandboxDetailsCommand } = await import("./sandbox-details-command-DMY2KGA2.js");
1005
+ const { runSandboxDetailsCommand } = await import("./sandbox-details-command-EDO56IY3.js");
1006
1006
  return runSandboxDetailsCommand(args);
1007
1007
  }
1008
1008
  if (args.subcommand === "export") {
1009
- const { runSandboxExportCommand } = await import("./sandbox-export-command-R6QMEK3D.js");
1009
+ const { runSandboxExportCommand } = await import("./sandbox-export-command-MO6DEZ7Z.js");
1010
1010
  return runSandboxExportCommand(args);
1011
1011
  }
1012
1012
  if (args.subcommand === "codegen") {
1013
- const { runCodegenCommand } = await import("./codegen-command-6XXOIQ25.js");
1013
+ const { runCodegenCommand } = await import("./codegen-command-U2W72DLG.js");
1014
1014
  return runCodegenCommand(args, { kind: "sandbox" });
1015
1015
  }
1016
1016
  throw unknownSubcommand("sandbox", args.subcommand);
1017
1017
  }
1018
1018
  if (command === "test") {
1019
- const { runTestCommand } = await import("./test-command-OEBIGOPP.js");
1019
+ const { runTestCommand } = await import("./test-command-RRNNJ45I.js");
1020
1020
  return runTestCommand(args);
1021
1021
  }
1022
1022
  if (command === "workspace") {
1023
- const { runWorkspaceCommand } = await import("./workspace-command-LX5S5N2H.js");
1023
+ const { runWorkspaceCommand } = await import("./workspace-command-QCFELEGR.js");
1024
1024
  return runWorkspaceCommand(args);
1025
1025
  }
1026
1026
  if (command === "codegen") {
1027
- const { runCodegenCommand } = await import("./codegen-command-6XXOIQ25.js");
1027
+ const { runCodegenCommand } = await import("./codegen-command-U2W72DLG.js");
1028
1028
  return runCodegenCommand(args, { kind: "file" });
1029
1029
  }
1030
1030
  if (command === "profile") {
1031
1031
  if (args.subcommand !== "me") {
1032
1032
  throw unknownSubcommand("profile", args.subcommand);
1033
1033
  }
1034
- const { runProfileCommand } = await import("./profile-command-ZPC2DPFV.js");
1034
+ const { runProfileCommand } = await import("./profile-command-QJAAUZIV.js");
1035
1035
  return runProfileCommand(args);
1036
1036
  }
1037
1037
  if (command === "whoami") {
1038
- const { runProfileCommand } = await import("./profile-command-ZPC2DPFV.js");
1038
+ const { runProfileCommand } = await import("./profile-command-QJAAUZIV.js");
1039
1039
  return runProfileCommand(args);
1040
1040
  }
1041
1041
  if (command === "marketplace") {
@@ -1052,7 +1052,7 @@ async function run(argv) {
1052
1052
  throw unknownCommand("push");
1053
1053
  }
1054
1054
  if (command === "validate") {
1055
- const { runValidateCommand } = await import("./validate-command-KTLPSSH7.js");
1055
+ const { runValidateCommand } = await import("./validate-command-GLF5ZOOW.js");
1056
1056
  return runValidateCommand(args);
1057
1057
  }
1058
1058
  if (command !== "compile" && command !== "export" && command !== "paths" && command !== "routes") {
@@ -1084,7 +1084,7 @@ async function run(argv) {
1084
1084
  }
1085
1085
  async function refreshAgentGuidance() {
1086
1086
  try {
1087
- const { refreshAgentFiles } = await import("./agent-file-refresh-6XT23SLU.js");
1087
+ const { refreshAgentFiles } = await import("./agent-file-refresh-4W37DGXS.js");
1088
1088
  const refreshed = refreshAgentFiles({
1089
1089
  projectDir: process.cwd(),
1090
1090
  sdkVersion: readVersion()
@@ -1317,4 +1317,4 @@ export {
1317
1317
  exportBundleJson,
1318
1318
  compileBundle
1319
1319
  };
1320
- //# sourceMappingURL=chunk-SOCYCBYG.js.map
1320
+ //# sourceMappingURL=chunk-SNO3KHCY.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getEnvironment,
3
3
  readEphemeralState
4
- } from "./chunk-WJYB7DSI.js";
4
+ } from "./chunk-MDXR5E5Q.js";
5
5
  import {
6
6
  sandboxBaseUrl
7
- } from "./chunk-OR43PDCW.js";
7
+ } from "./chunk-3EYUR3TX.js";
8
8
  import {
9
9
  fetchReadOrExplain,
10
10
  httpFailure
@@ -66,7 +66,7 @@ async function resolveMetaTarget(auth, opts, deps = {}) {
66
66
  case "sandbox":
67
67
  return resolveSandbox(auth);
68
68
  case "ephemeral": {
69
- const resolveLive = deps.resolveLive ?? (await import("./ephemeral-command-K3UJSDS4.js")).resolveLive;
69
+ const resolveLive = deps.resolveLive ?? (await import("./ephemeral-command-DL7EY4LL.js")).resolveLive;
70
70
  return resolveEphemeral(auth, opts.name, { ...deps, resolveLive });
71
71
  }
72
72
  }
@@ -75,4 +75,4 @@ async function resolveMetaTarget(auth, opts, deps = {}) {
75
75
  export {
76
76
  resolveMetaTarget
77
77
  };
78
- //# sourceMappingURL=chunk-CEFYM6N5.js.map
78
+ //# sourceMappingURL=chunk-XP7S3VWY.js.map
package/dist/cli.js CHANGED
@@ -8,17 +8,17 @@ import {
8
8
  resolveHelpRequest,
9
9
  resolveLockPath,
10
10
  run
11
- } from "./chunk-SOCYCBYG.js";
11
+ } from "./chunk-SNO3KHCY.js";
12
12
  import "./chunk-JQLR64UC.js";
13
- import "./chunk-OLQLJY5T.js";
13
+ import "./chunk-OYMR5AMJ.js";
14
14
  import "./chunk-GNPVYOPB.js";
15
15
  import "./chunk-EZG76F7R.js";
16
- import "./chunk-3FQD3QME.js";
16
+ import "./chunk-FEQTQ6PM.js";
17
17
  import "./chunk-OKNSR7MT.js";
18
- import "./chunk-CQBJNFDK.js";
18
+ import "./chunk-64QK6JEK.js";
19
19
  import "./chunk-WHOJWOSV.js";
20
20
  import "./chunk-5XZ744TS.js";
21
- import "./chunk-EFH4NFPY.js";
21
+ import "./chunk-7JDT4PBU.js";
22
22
  export {
23
23
  compileBundle,
24
24
  exportBundleJson,
@@ -4,35 +4,35 @@ import {
4
4
  isMissingDependencyError,
5
5
  runCodegenCommand,
6
6
  verifyCrashEntry
7
- } from "./chunk-TYBB7ON3.js";
7
+ } from "./chunk-EM5QPTXP.js";
8
8
  import "./chunk-ZOYMZZ3S.js";
9
- import "./chunk-SG4UBJ47.js";
10
- import "./chunk-LLWK6H77.js";
9
+ import "./chunk-3QW5NFZJ.js";
10
+ import "./chunk-BKDJN76G.js";
11
11
  import "./chunk-QTNO2WD6.js";
12
12
  import "./chunk-ZUTSMMAG.js";
13
13
  import "./chunk-X4DVXBFY.js";
14
- import "./chunk-4HDOP7LH.js";
15
- import "./chunk-2SUCC4DV.js";
14
+ import "./chunk-C3M5K4ZH.js";
15
+ import "./chunk-4PE4ZAB7.js";
16
16
  import "./chunk-ZSYZTGJH.js";
17
17
  import "./chunk-3IGNIP6R.js";
18
- import "./chunk-JRGDLAEA.js";
18
+ import "./chunk-2ROR3AZC.js";
19
19
  import "./chunk-LU7TRWMC.js";
20
20
  import "./chunk-MU3O43L2.js";
21
21
  import "./chunk-P5C2YKAM.js";
22
22
  import "./chunk-Q77KNEUL.js";
23
23
  import "./chunk-4BXJGVZ3.js";
24
- import "./chunk-GC7ZQHW7.js";
25
- import "./chunk-SOCYCBYG.js";
24
+ import "./chunk-3MDKV2VA.js";
25
+ import "./chunk-SNO3KHCY.js";
26
26
  import "./chunk-JQLR64UC.js";
27
- import "./chunk-OLQLJY5T.js";
27
+ import "./chunk-OYMR5AMJ.js";
28
28
  import "./chunk-GNPVYOPB.js";
29
29
  import "./chunk-EZG76F7R.js";
30
- import "./chunk-3FQD3QME.js";
30
+ import "./chunk-FEQTQ6PM.js";
31
31
  import "./chunk-OKNSR7MT.js";
32
- import "./chunk-CQBJNFDK.js";
32
+ import "./chunk-64QK6JEK.js";
33
33
  import "./chunk-WHOJWOSV.js";
34
34
  import "./chunk-5XZ744TS.js";
35
- import "./chunk-EFH4NFPY.js";
35
+ import "./chunk-7JDT4PBU.js";
36
36
  export {
37
37
  blameGeneratedFile,
38
38
  fetchWorkspaceBundle,
@@ -40,4 +40,4 @@ export {
40
40
  runCodegenCommand,
41
41
  verifyCrashEntry
42
42
  };
43
- //# sourceMappingURL=codegen-command-6XXOIQ25.js.map
43
+ //# sourceMappingURL=codegen-command-U2W72DLG.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  assertBundleInput,
6
6
  loadBundleText
7
- } from "./chunk-QVSUMHNN.js";
7
+ } from "./chunk-PYS7UNNW.js";
8
8
  import {
9
9
  createEphemeral,
10
10
  getEphemeral,
@@ -17,7 +17,7 @@ import {
17
17
  getEnvironment,
18
18
  readEphemeralState,
19
19
  setEnvironment
20
- } from "./chunk-WJYB7DSI.js";
20
+ } from "./chunk-MDXR5E5Q.js";
21
21
  import {
22
22
  openBrowser
23
23
  } from "./chunk-W5NOKYEG.js";
@@ -28,8 +28,8 @@ import {
28
28
  } from "./chunk-NDZFBZHC.js";
29
29
  import {
30
30
  getAccessToken
31
- } from "./chunk-SG4UBJ47.js";
32
- import "./chunk-LLWK6H77.js";
31
+ } from "./chunk-3QW5NFZJ.js";
32
+ import "./chunk-BKDJN76G.js";
33
33
  import {
34
34
  encodeWorkspaceArchive
35
35
  } from "./chunk-ZUTSMMAG.js";
@@ -42,11 +42,11 @@ import {
42
42
  fetchOrExplain,
43
43
  httpFailure
44
44
  } from "./chunk-3IGNIP6R.js";
45
- import "./chunk-SOCYCBYG.js";
45
+ import "./chunk-SNO3KHCY.js";
46
46
  import {
47
47
  assertWritableDest
48
48
  } from "./chunk-JQLR64UC.js";
49
- import "./chunk-OLQLJY5T.js";
49
+ import "./chunk-OYMR5AMJ.js";
50
50
  import "./chunk-GNPVYOPB.js";
51
51
  import {
52
52
  blank,
@@ -62,12 +62,12 @@ import {
62
62
  warn,
63
63
  withSpinner
64
64
  } from "./chunk-EZG76F7R.js";
65
- import "./chunk-3FQD3QME.js";
65
+ import "./chunk-FEQTQ6PM.js";
66
66
  import "./chunk-OKNSR7MT.js";
67
- import "./chunk-CQBJNFDK.js";
67
+ import "./chunk-64QK6JEK.js";
68
68
  import "./chunk-WHOJWOSV.js";
69
69
  import "./chunk-5XZ744TS.js";
70
- import "./chunk-EFH4NFPY.js";
70
+ import "./chunk-7JDT4PBU.js";
71
71
 
72
72
  // src/emit/deploy-command.ts
73
73
  import { basename } from "path";
@@ -158,7 +158,7 @@ async function runDeployedTests(auth, dest, summary, args) {
158
158
  }
159
159
  }
160
160
  async function runTestsOrThrow(auth, dest, summary, args) {
161
- const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-OEBIGOPP.js");
161
+ const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-RRNNJ45I.js");
162
162
  let target;
163
163
  if (dest === "ephemeral") {
164
164
  if (summary.url === void 0) {
@@ -168,7 +168,7 @@ async function runTestsOrThrow(auth, dest, summary, args) {
168
168
  const name = summary.ephemeral?.name;
169
169
  target = { base: summary.url, workspaceId: 1, label: name ? `ephemeral ${name}` : "the ephemeral", env: name };
170
170
  } else {
171
- const { resolveMetaTarget } = await import("./env-target-C5JFLDK3.js");
171
+ const { resolveMetaTarget } = await import("./env-target-NAYVEXBH.js");
172
172
  target = await resolveMetaTarget(auth, { dest: "sandbox" });
173
173
  }
174
174
  const outcomes = await runSuite(auth, target, {
@@ -448,4 +448,4 @@ export {
448
448
  runDeployedTests,
449
449
  verifyMicroservices
450
450
  };
451
- //# sourceMappingURL=deploy-command-MTQQXPOO.js.map
451
+ //# sourceMappingURL=deploy-command-QZ3GNLAD.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveMetaTarget
3
- } from "./chunk-CEFYM6N5.js";
4
- import "./chunk-WJYB7DSI.js";
5
- import "./chunk-OR43PDCW.js";
3
+ } from "./chunk-XP7S3VWY.js";
4
+ import "./chunk-MDXR5E5Q.js";
5
+ import "./chunk-3EYUR3TX.js";
6
6
  import "./chunk-NDZFBZHC.js";
7
- import "./chunk-SG4UBJ47.js";
8
- import "./chunk-LLWK6H77.js";
7
+ import "./chunk-3QW5NFZJ.js";
8
+ import "./chunk-BKDJN76G.js";
9
9
  import "./chunk-NUQCEOKA.js";
10
10
  import "./chunk-3IGNIP6R.js";
11
11
  import "./chunk-GNPVYOPB.js";
@@ -13,4 +13,4 @@ import "./chunk-EZG76F7R.js";
13
13
  export {
14
14
  resolveMetaTarget
15
15
  };
16
- //# sourceMappingURL=env-target-C5JFLDK3.js.map
16
+ //# sourceMappingURL=env-target-NAYVEXBH.js.map
@@ -10,7 +10,7 @@ import {
10
10
  clearEnvironment,
11
11
  getEnvironment,
12
12
  readEphemeralState
13
- } from "./chunk-WJYB7DSI.js";
13
+ } from "./chunk-MDXR5E5Q.js";
14
14
  import {
15
15
  openBrowser
16
16
  } from "./chunk-W5NOKYEG.js";
@@ -19,16 +19,16 @@ import {
19
19
  } from "./chunk-4PTSTDIG.js";
20
20
  import {
21
21
  resolveOutputTarget
22
- } from "./chunk-AAFBSOSD.js";
23
- import "./chunk-OR43PDCW.js";
22
+ } from "./chunk-JQJPFUZI.js";
23
+ import "./chunk-3EYUR3TX.js";
24
24
  import {
25
25
  printMicroserviceSection,
26
26
  readMicroservices
27
27
  } from "./chunk-NDZFBZHC.js";
28
28
  import {
29
29
  getAccessToken
30
- } from "./chunk-SG4UBJ47.js";
31
- import "./chunk-LLWK6H77.js";
30
+ } from "./chunk-3QW5NFZJ.js";
31
+ import "./chunk-BKDJN76G.js";
32
32
  import {
33
33
  exportWorkspaceBundle
34
34
  } from "./chunk-QTNO2WD6.js";
@@ -90,7 +90,7 @@ async function runEphemeralCommand(args) {
90
90
  case "impersonate":
91
91
  return runImpersonate(args);
92
92
  case "codegen": {
93
- const { runCodegenCommand } = await import("./codegen-command-6XXOIQ25.js");
93
+ const { runCodegenCommand } = await import("./codegen-command-U2W72DLG.js");
94
94
  return runCodegenCommand(args, { kind: "ephemeral" });
95
95
  }
96
96
  default:
@@ -239,4 +239,4 @@ export {
239
239
  resolveLive,
240
240
  runEphemeralCommand
241
241
  };
242
- //# sourceMappingURL=ephemeral-command-K3UJSDS4.js.map
242
+ //# sourceMappingURL=ephemeral-command-DL7EY4LL.js.map