@xanots/sdk 0.0.5 → 0.0.7

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 (83) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +3 -3
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-IJ7GN2FJ.js → agent-file-refresh-4W37DGXS.js} +4 -4
  5. package/dist/bin.js +8 -8
  6. package/dist/branch-commands-PBQ36L4A.js +134 -0
  7. package/dist/{chunk-CYJ7R3AD.js → chunk-2V3JUXTF.js} +24 -11
  8. package/dist/{chunk-OR43PDCW.js → chunk-3EYUR3TX.js} +2 -2
  9. package/dist/{chunk-SG4UBJ47.js → chunk-3QW5NFZJ.js} +26 -5
  10. package/dist/{chunk-7SISR3CS.js → chunk-4PE4ZAB7.js} +3 -3
  11. package/dist/{chunk-PGBK64U5.js → chunk-4PTSTDIG.js} +2 -2
  12. package/dist/{live-diff-FP4SFNT4.js → chunk-5HCDZ2XN.js} +67 -6
  13. package/dist/{chunk-OARSPAIE.js → chunk-5PDOAR77.js} +58 -38
  14. package/dist/{chunk-5WGEURVI.js → chunk-6AAT2AYQ.js} +21 -1
  15. package/dist/{chunk-QA5ICJ4M.js → chunk-7BUTRVKA.js} +3 -3
  16. package/dist/{chunk-YUBJLB6G.js → chunk-7JDT4PBU.js} +75 -8
  17. package/dist/{chunk-LLWK6H77.js → chunk-BKDJN76G.js} +31 -1
  18. package/dist/{chunk-MS3BRZAZ.js → chunk-CL2H2WYE.js} +50 -27
  19. package/dist/{chunk-KXCPZUUM.js → chunk-DBHE35JM.js} +8 -67
  20. package/dist/chunk-EQW3YT5U.js +159 -0
  21. package/dist/{chunk-BPEEGJJA.js → chunk-FAWNUE2U.js} +39 -8
  22. package/dist/{chunk-ZGA5MUNC.js → chunk-FDKR4YMN.js} +2 -2
  23. package/dist/{chunk-APOR6TCV.js → chunk-H2DEDWQF.js} +4 -4
  24. package/dist/{chunk-PXXLBXOP.js → chunk-JAVB27HL.js} +2 -2
  25. package/dist/{chunk-AAFBSOSD.js → chunk-JQJPFUZI.js} +3 -3
  26. package/dist/{chunk-IVP6TS26.js → chunk-JQLR64UC.js} +6 -5
  27. package/dist/{chunk-FN4OQT2J.js → chunk-JUHKEAHJ.js} +4 -4
  28. package/dist/{chunk-WJYB7DSI.js → chunk-MDXR5E5Q.js} +2 -2
  29. package/dist/{chunk-WGDAOOXG.js → chunk-MU3O43L2.js} +3 -3
  30. package/dist/{chunk-YUPQOLFX.js → chunk-NJGNUVXR.js} +15 -4
  31. package/dist/{chunk-F5T45NAM.js → chunk-OKNSR7MT.js} +45 -2
  32. package/dist/{chunk-MFIHIS6B.js → chunk-OYMR5AMJ.js} +2 -2
  33. package/dist/{chunk-QUUB7HYK.js → chunk-P5C2YKAM.js} +2 -2
  34. package/dist/{chunk-6DHJVLYP.js → chunk-Q77KNEUL.js} +1 -1
  35. package/dist/{chunk-D6OGU2AI.js → chunk-QIWBCS7N.js} +2 -2
  36. package/dist/cli.d.ts +28 -2
  37. package/dist/cli.js +7 -7
  38. package/dist/{codegen-command-BLOS3GR3.js → codegen-command-DYH4H4TD.js} +18 -18
  39. package/dist/{completion-GHP5RRLQ.js → completion-A6BZ3XGU.js} +8 -7
  40. package/dist/{deploy-command-XOH76USO.js → deploy-command-HM57BINV.js} +15 -15
  41. package/dist/{env-target-POGJMD6Q.js → env-target-WA3BH5YU.js} +6 -6
  42. package/dist/{ephemeral-command-46SL27GJ.js → ephemeral-command-SD2KLX4P.js} +10 -10
  43. package/dist/index.d.ts +69 -26
  44. package/dist/index.js +6 -6
  45. package/dist/init-command-VIPWAQYS.js +30 -0
  46. package/dist/internal.d.ts +2 -2
  47. package/dist/internal.js +120 -62
  48. package/dist/{io-7VIA5SON.js → io-M7XZEMK7.js} +3 -3
  49. package/dist/live-diff-QK4KC2FJ.js +12 -0
  50. package/dist/{lock-KXOJIGCG.js → lock-GFXD6G2E.js} +6 -2
  51. package/dist/{lock-commands-6UONZW26.js → lock-commands-7VJKAXV6.js} +8 -8
  52. package/dist/{login-command-SG7IWTHW.js → login-command-DFCURZLC.js} +6 -6
  53. package/dist/{logout-command-J2AG5NKC.js → logout-command-WXVZQCAV.js} +2 -2
  54. package/dist/{marketplace-command-NKTQ3VPS.js → marketplace-command-BCOAAN2I.js} +3 -3
  55. package/dist/{meta-client-OW5WKWW7.js → meta-client-57ZWVHST.js} +2 -2
  56. package/dist/node.d.ts +2 -2
  57. package/dist/node.js +10 -10
  58. package/dist/{profile-command-ZPC2DPFV.js → profile-command-QJAAUZIV.js} +3 -3
  59. package/dist/{release-command-FKQ6E3TD.js → release-command-3IET7YII.js} +206 -26
  60. package/dist/{sandbox-details-command-DMY2KGA2.js → sandbox-details-command-EDO56IY3.js} +4 -4
  61. package/dist/{sandbox-export-command-R6QMEK3D.js → sandbox-export-command-MO6DEZ7Z.js} +5 -5
  62. package/dist/scaffold.d.ts +10 -13
  63. package/dist/scaffold.js +3 -3
  64. package/dist/{store-BJONDJoZ.d.ts → store-DfuWu1tE.d.ts} +1 -1
  65. package/dist/{test-command-56IAEYHX.js → test-command-S7SMRWMP.js} +8 -8
  66. package/dist/{upgrade-command-M2DZ3ZPD.js → upgrade-command-TZYSGXP7.js} +13 -13
  67. package/dist/{validate-command-CIBQJND7.js → validate-command-MMXEVHH3.js} +10 -10
  68. package/dist/{workspace-command-HZS43PHJ.js → workspace-command-X6L7HTXO.js} +24 -20
  69. package/guides/environment.md +6 -3
  70. package/guides/scaffold.md +3 -2
  71. package/llms/fields.md +8 -0
  72. package/llms/kinds-core.md +2 -1
  73. package/llms/lambda.md +1 -1
  74. package/llms/legacy.md +1 -1
  75. package/llms/lock.md +32 -0
  76. package/llms/object-kinds.md +2 -2
  77. package/llms/statements-calls.md +10 -3
  78. package/llms/statements-data.md +2 -1
  79. package/llms-full.txt +108 -58
  80. package/llms.txt +49 -49
  81. package/manifest.json +2 -2
  82. package/package.json +1 -1
  83. package/dist/init-command-NCRPVFGE.js +0 -30
package/dist/internal.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  taskKind,
34
34
  toolKind,
35
35
  workflowTestKind
36
- } from "./chunk-FN4OQT2J.js";
36
+ } from "./chunk-JUHKEAHJ.js";
37
37
  import {
38
38
  GENERATED_SPECS,
39
39
  GENERATED_STATEMENT_NAMES,
@@ -55,14 +55,15 @@ import {
55
55
  registerSpec,
56
56
  triggerKind,
57
57
  workspaceKind
58
- } from "./chunk-CYJ7R3AD.js";
58
+ } from "./chunk-2V3JUXTF.js";
59
59
  import {
60
60
  COMMANDS,
61
61
  FLAGS,
62
62
  GLOBAL_FLAGS,
63
63
  flagKey,
64
- flagSummary
65
- } from "./chunk-F5T45NAM.js";
64
+ flagSummary,
65
+ visibleFlags
66
+ } from "./chunk-OKNSR7MT.js";
66
67
  import {
67
68
  DECODE_ONLY_STATEMENTS,
68
69
  FILTER_NAMES,
@@ -108,7 +109,7 @@ import {
108
109
  serializeBundle,
109
110
  tableKind,
110
111
  toNestedFields
111
- } from "./chunk-YUPQOLFX.js";
112
+ } from "./chunk-NJGNUVXR.js";
112
113
  import "./chunk-WHOJWOSV.js";
113
114
  import {
114
115
  encodeStatement,
@@ -136,7 +137,7 @@ import {
136
137
  resolveRef,
137
138
  serializeLock,
138
139
  validateLockModel
139
- } from "./chunk-YUBJLB6G.js";
140
+ } from "./chunk-7JDT4PBU.js";
140
141
 
141
142
  // src/statements/byte-evidence.ts
142
143
  var UNCONFIRMED_STATEMENTS = /* @__PURE__ */ new Set([]);
@@ -167,15 +168,15 @@ function buildCli() {
167
168
  out.push({
168
169
  command: name,
169
170
  ...argGrammar(spec.args) !== void 0 ? { args: argGrammar(spec.args) } : {},
170
- ...flagsOf(spec.flags) !== void 0 ? { flags: flagsOf(spec.flags) } : {},
171
+ ...flagsOf(visibleFlags(spec)) !== void 0 ? { flags: flagsOf(visibleFlags(spec)) } : {},
171
172
  description
172
173
  });
173
174
  continue;
174
175
  }
175
176
  for (const [subName, sub] of subs) {
176
- if (sub.removed !== void 0) continue;
177
+ if (sub.removed !== void 0 || sub.unreleased !== void 0) continue;
177
178
  const args = argGrammar(sub.args ?? spec.args);
178
- const flags = flagsOf(sub.flags ?? spec.flags);
179
+ const flags = flagsOf(sub.flags !== void 0 ? visibleFlags(sub) : visibleFlags(spec));
179
180
  out.push({
180
181
  command: `${name} ${subName}`,
181
182
  ...args !== void 0 ? { args } : {},
@@ -218,7 +219,7 @@ var KIND_DESCRIPTORS = [
218
219
  { kind: "realtime_server", payloadKey: "realtime_server", authorFactory: "realtimeServer", description: "A realtime (websocket) server: the canonical-addressed container that owns realtime channels. Off until `enabled: true`. Returns a handle with `getUrl(baseUrl)`/`getPath()` for the client's socket URL (`wss://<host>/ws/<canonical>`).", registerMethod: "registerRealtimeServers" },
219
220
  { kind: "channel", payloadKey: "channel", authorFactory: "realtimeChannel", description: "A realtime channel: a joinable path on a realtime server (`rooms/{room_id}`) with typed path params, join/publish policy, a client-visible conversation transcript, and delivery semantics. Owns message handlers. Returns a handle with `getChannel(params)` for the path a client joins.", registerMethod: "registerRealtimeChannels" },
220
221
  { kind: "message", payloadKey: "message", authorFactory: "realtimeMessage", description: "A realtime message handler: a named message type on a channel with its own typed payload and stack \u2014 the realtime analogue of a query. Pass the `realtimeChannel()` handle as `channel` and the owning server comes with it.", registerMethod: "registerRealtimeMessages" },
221
- { kind: "microservice", payloadKey: "microservice", authorFactory: "microservice", description: "A container workload deployed alongside the workspace, called from a stack with `s.microservice.request`. Two mutually exclusive shapes via `kind`: `builtin` declares containers (image/ports/resources/env/command/args) plus optional `ingresses`, and `helm` points at a chart and its `values` \u2014 passing both throws. EARLY SURFACE, expected to change \u2014 every export of a workspace declaring one prints a notice saying so. `configs`/`volumes` are typed and `@deprecated` but NOT deployable: the engine rejects an import carrying either, so `export()` fails the build rather than letting the deploy fatal. Put a value the workload reads in a container's `env`, and storage in a container's own `volumes` (`emptyDir`/`persistent`/`config`). Container names are free-form \u2014 they need not match the microservice name, which is what a stack addresses. SECRETS RIDE ALONG \u2014 `chart.values` and `registryAuth.dockerconfigjson` are carried into the bundle, and into a pulled tree, verbatim (they must be, or a pulled microservice could not be redeployed). Both are stored strings with NO deploy-time indirection: `process.env.X` in the def resolves at EXPORT and writes the literal into the bundle, so it is not a way to keep the credential out. Either leave `registryAuth` unset (public image, or a credential attached outside this workspace) or treat the bundle and any pulled tree as secret material \u2014 keep them out of git, or rotate after. Export prints a notice per microservice carrying either field; `--strict` does not promote it. For a secret a STACK reads, the mapped surface is `workspaceConfig({ env })` + `env(\"NAME\")`.", registerMethod: "registerMicroservices" },
222
+ { kind: "microservice", payloadKey: "microservice", authorFactory: "microservice", description: "A container workload deployed alongside the workspace, called from a stack with `s.microservice.request`. Def shapes (`builtin` containers vs a `helm` chart) and the SECRET-handling rules its config carries: `llms/statements-calls.md`.", registerMethod: "registerMicroservices" },
222
223
  {
223
224
  kind: "knowledge",
224
225
  payloadKey: "knowledge",
@@ -786,9 +787,18 @@ function renderSections(m) {
786
787
  lines.push(`# ${m.name} v${m.version}`, "");
787
788
  lines.push(`> ${m.description}`, "");
788
789
  lines.push(
789
- "Author a Xano workspace in TypeScript: build typed objects, register them on a",
790
- "`new Xano()` instance, and call `.export()` to get one importable bundle. Compile",
791
- "with `xanots export ./xano/index.js`.",
790
+ "Xano is a hosted backend platform: one WORKSPACE serves a managed PostgreSQL",
791
+ "database, HTTP API endpoints, background tasks, realtime websocket channels, AI",
792
+ "agents and MCP servers, file storage, and redis. This SDK authors that workspace in",
793
+ "TypeScript \u2014 typed def objects registered on a `workspace(name)` \u2014 compiled to one",
794
+ "importable bundle by `xanots export ./xano/index.ts`, shipped live by `xanots deploy`.",
795
+ "",
796
+ "Def modules execute at BUILD time only: `s.*` factories return data, and the engine",
797
+ "runs the compiled stack per request \u2014 statements in order, a statement's `as:`",
798
+ "naming a runtime variable, `response` the HTTP body. Every dynamic operand is a",
799
+ 'TAGGED value \u2014 `ref("x")` a stack variable, `inp("x")` an input, `auth("id")` the',
800
+ "caller, `c.*` a constant \u2014 resolved at request time; JS operators over them do not",
801
+ "compute (see Gotchas). Requests share no memory \u2014 state persists in tables or redis.",
792
802
  "",
793
803
  `Coverage: object kinds ${m.coverage.objectKinds.implemented}/${m.coverage.objectKinds.total}, statement surfaces ${m.coverage.statements.implemented}/${m.coverage.statements.total}, filters ${m.coverage.filters.total} (${m.coverage.filters.typed} typed).`,
794
804
  // The shortfall by name: an agent that cannot see WHICH kinds are missing
@@ -801,7 +811,7 @@ function renderSections(m) {
801
811
  "exhaustive per-entry detail in NEITHER \u2014 a statement's full field schema with engine",
802
812
  "defaults, a filter's complete argument list, the engine `storedName` mapping \u2014 do a",
803
813
  "TARGETED lookup in the shipped `manifest.json` (grep or `jq` the one entry you need;",
804
- "it is ~55k tokens, so never read it whole). Its top-level keys are `" + Object.keys(m).join("`, `") + "`. `statements` and `filters` are ARRAYS, not maps \u2014 SELECT, do not index:",
814
+ "it is ~65k tokens, so never read it whole). Its top-level keys are `" + Object.keys(m).join("`, `") + "`. `statements` and `filters` are ARRAYS, not maps \u2014 SELECT, do not index:",
805
815
  ` jq '.statements[] | select(.sPath=="db.get")' manifest.json`,
806
816
  ` jq '.filters[] | select(.name=="json_decode")' manifest.json`,
807
817
  `Select a statement on \`sPath\` (the \`s.*\` path you write), NOT \`surface\` (the XanoScript term): ${m.statements.filter((s) => s.surface !== s.sPath).length} of ${m.statements.length} differ \u2014 \`var\`\u2192\`set_var\`, \`break\`\u2192\`foreach_break\`, \`foreach.remove\`\u2192\`foreach_remove\`, and every \`expect.*\`.`,
@@ -880,26 +890,18 @@ function renderSections(m) {
880
890
  "pass `--strict` (`emitBundle(app, { strict: true })` / `app.export({ strict: true })`):",
881
891
  "every warning becomes a hard failure. Same bundle bytes either way.",
882
892
  "",
883
- "Identity: object guids derive from `(type, name)`, so renames change identity.",
884
- "`xanots export <entry> --lock` freezes every guid + api-group/toolset canonical in a lock",
885
- "file written BESIDE THE ENTRY FILE \u2014 `xano/xano.lock` for the standard scaffold, NOT the",
886
- "project root \u2014 which you commit (auto-read once present; CI guard `--frozen-lock` fails",
887
- "instead of changing the lock). Fix-up subcommands:",
888
- "`xanots lock rename <kind> <old> <new>` (kind = payloadKey or table/api_group),",
889
- "`xanots lock prune <entry-file> [keys\u2026] --yes` \u2014 finding orphans RUNS the entry's module scope",
890
- "(env assertions included); `--no-verify --yes <kind:name>\u2026` prunes named keys with no evaluation",
891
- "and no orphan check,",
892
- "`xanots lock adopt <live-bundle.json> [--yes]` \u2014 all accept `--lock=<path>`.",
893
- "Programmatic use: call `seedLockOverrides(readLockFile(path))` BEFORE importing",
894
- "any def module \u2014 references bake guids at import time, so late seeding is a",
895
- "silent no-op (`resetLockOverrides` exists for tests).",
896
- "Development workflow: opt in EARLY \u2014 run `xanots export ./xano/index.ts --lock` once and COMMIT",
897
- "`xano.lock` beside the entry file; every later export then keeps identities",
898
- "stable across renames and environments. To rename an object: rename in code,",
899
- "export (stderr prints the exact fix-up), run `xanots lock rename <kind> <old>",
900
- "<new>`, export again \u2014 the original guid is emitted under the new name, so the",
901
- "engine renames in place instead of delete+create. Taking over an existing",
902
- "workspace: `xanots lock adopt <its-packageExport.json>` first, then export.",
893
+ "Identity: object guids derive from `(type, name)` \u2014 a query's from `(api group,",
894
+ "verb, name)` \u2014 so renames change identity.",
895
+ "Opt in EARLY: `xanots export ./xano/index.ts --lock` freezes every guid +",
896
+ "api-group/toolset canonical in a lock file written BESIDE THE ENTRY FILE \u2014",
897
+ "`xano/xano.lock` for the standard scaffold, NOT the project root \u2014 which you COMMIT",
898
+ "(auto-read once present; CI guard `--frozen-lock` fails instead of changing it).",
899
+ "To rename an object: rename in code, export (stderr prints the exact fix-up), run",
900
+ "`xanots lock rename <kind> <old> <new>`, export again \u2014 the original guid is emitted",
901
+ "under the new name, so the engine renames in place instead of delete+create. Taking",
902
+ "over an existing workspace: `xanots lock adopt <its-packageExport.json>` first, then",
903
+ "export. Pruning, programmatic seeding, and which commands write the lock:",
904
+ "`llms/lock.md`.",
903
905
  "",
904
906
  "## Deploy",
905
907
  "",
@@ -930,14 +932,6 @@ function renderSections(m) {
930
932
  " (previewed against live). `--prune` deletes only what `xano.lock` records this",
931
933
  " project released, and refuses without a lock.",
932
934
  "",
933
- "Nothing from a DEPLOY is written back into `xano.lock` (an ephemeral/sandbox is a",
934
- "separate workspace, so its identities must not pollute yours). The one write-back is",
935
- "`release --replace`, which mints fresh identities in the workspace the lock describes:",
936
- "it re-pins the lock from the rebuilt workspace, because otherwise the next release",
937
- "matches nothing and duplicates every object. Deploying an ENTRY",
938
- "FILE still updates the local lock via the shared compile step, exactly as `export`",
939
- "does \u2014 only when a lock exists or `--lock` is passed.",
940
- "",
941
935
  "**Frontend wiring.** `--static <dir>` injects the DEPLOYED env's backend URL as",
942
936
  "`window.XANO_HOST` into EVERY html document in the build, before the app bundle runs,",
943
937
  "so the frontend needs no rebuild to target an env. Every document, not just the root:",
@@ -987,6 +981,12 @@ function renderSections(m) {
987
981
  "- **Reference-helper picker:** `ref` = stack var (`as:` output), `inp` = input,",
988
982
  ' `col` = table column (in `db.query` `where`), `auth("id")` = the caller,',
989
983
  " `c.*` = a constant. Pick by what you're pointing at.",
984
+ "- **Tagged values are DATA \u2014 a JS template literal cannot compose them.** `${ref(...)}`",
985
+ ' (or `"a" + ref(...)`) stringifies the tag object at BUILD time: ``c.text(`Hi ${ref("u.name")}`)``',
986
+ " type-checks and encodes the literal text `Hi [object Object]`, served verbatim.",
987
+ " `export()` warns; `--strict` fails. Compose at RUNTIME:",
988
+ ' `withFilters(c.text("Hi "), fl.concat(ref("u.name")))`, an `obj({...})`/record member,',
989
+ " or `c.expression('\"Hi, \" ~ $var.u.name')`.",
990
990
  "- **`s.api.call` / `s.task.call` / `s.trigger.call` / `s.workflow_test.call` are",
991
991
  " WORKFLOW-TEST ONLY.** Outside a `workflowTest({...})` stack the engine cannot reach",
992
992
  " the target, so one in a query/function/task deploys clean and then answers the first",
@@ -1067,15 +1067,16 @@ function renderSections(m) {
1067
1067
  "- **Self-referencing tables** need the bare-name form: inside `tweets`'s own",
1068
1068
  ' schema, write `f.tableRef("tweets", { type: "int" })` \u2014 the `const tweets`',
1069
1069
  ` handle isn't assigned yet, so the handle form throws "used before declaration".`,
1070
- "- **Same-name siblings collide.** Object guids derive from `(type, name)` and",
1071
- " ignore a query's `verb`, so a `GET` and `POST` both named `posts` clash;",
1072
- " `export()` throws on the collision \u2014 give them DISTINCT names (`posts` and",
1073
- " `posts/create`; the verb still carries the semantics). A distinct explicit",
1074
- " `guid` on each clears that throw but is NOT a lasting fix: a lock entry is",
1075
- " keyed by `(type, name)` too and cannot hold two guids, so `export --lock`",
1076
- " refuses the pair \u2014 and a committed lock is the recommended workflow.",
1077
- " `export()` warns on a same-name pair even unlocked. An explicit `guid` is",
1078
- " for pinning identity across a rename, not for sharing a name.",
1070
+ "- **Same-name siblings collide \u2014 queries excepted: their identity carries group + verb.**",
1071
+ " Guids derive from `(type, name)`, so two functions (or tables, toolsets, \u2026) sharing",
1072
+ " a name derive ONE guid and `export()` throws \u2014 give them DISTINCT names. A QUERY",
1073
+ " derives from `(api group, verb, name)`, the engine's own uniqueness: `GET items` +",
1074
+ " `POST items`, and `items` across two groups, coexist, and the lock keys the same",
1075
+ " composed identity (`query:blog|GET|items`) \u2014 changing a query's verb or group",
1076
+ " changes its identity. An explicit `guid` on a colliding pair clears the throw but",
1077
+ " is NOT a lasting fix: a lock entry cannot hold two guids, so `export --lock`",
1078
+ " refuses the pair (`export()` warns even unlocked); it is for pinning identity",
1079
+ " across a rename, not for sharing a name.",
1079
1080
  "- **`export()` vs `emitBundle()` vs `writeBundle()`:** `writeBundle(app, path)`",
1080
1081
  " writes it to disk; `export()` returns the bundle object;",
1081
1082
  " `emitBundle()` returns the pretty JSON string. All three run the SAME build-time",
@@ -1242,7 +1243,8 @@ function renderSections(m) {
1242
1243
  "The def-object passed to each factory. `?` = optional. `input` is keyed by",
1243
1244
  "input name (`input.<type>(opts?)`); `stack` is `Statement[]` (`s.*`); `response`",
1244
1245
  "is a `ResponseDef` (see **Responses** below). Object identity is `guid?` \u2014",
1245
- "omit it and it derives from `name` (set it to survive a rename).",
1246
+ "omit it and it derives from `name` (for a query, from group + verb + name; set it",
1247
+ "to survive a rename).",
1246
1248
  "",
1247
1249
  "- `defineFunction({ name, guid?, description?, docs?, workspace?, input?, stack?, response?, tests? })`",
1248
1250
  "- `query({ name, verb, apiGroup?, guid?, auth?, input?, stack?, response?, responseType?, apiEnabled?, disabled?, cache?, description?, docs?, tests?, example? })`",
@@ -1497,6 +1499,14 @@ function renderSections(m) {
1497
1499
  "`input.list(element)` for arrays \u2014 wrap any element constructor, e.g.",
1498
1500
  "`input.list(input.text())` or `input.list(input.object({ id: f.int() }))`. Prefer the",
1499
1501
  "typed forms over `input.json()` when the shape is known.",
1502
+ "**A file reaches a column in two steps.** `input.file` is the RAW upload (the request's",
1503
+ "multipart/base64 bytes) and cannot be written to a file column directly: store it first \u2014",
1504
+ '`s.storage.create_image({ as: "img", value: ref("input.avatar"), access: "public" })`',
1505
+ '(the request input bag is read as a dotted `ref("input.<name>")` here) \u2014 then write',
1506
+ '`ref("img")` into the `f.image()` cell with `s.db.add`/`edit`. `access` defaults to',
1507
+ '`"public"` (a guessable URL): pass `"private"` and hand out `s.storage.sign_private_url`',
1508
+ "results for anything user-scoped. `create_video`/`create_audio`/`create_attachment` are",
1509
+ "the same shape for the other file columns.",
1500
1510
  "**Typed inputs validate/coerce on bind, before your stack runs** \u2014 so reach for the",
1501
1511
  "specific type instead of hand-rolling checks. `input.email({ required: true })` rejects a",
1502
1512
  'malformed address with a 400 (and trims; add `methods: ["lower"]` to downcase) \u2014 no',
@@ -1644,7 +1654,8 @@ function renderSections(m) {
1644
1654
  "- `s.db.del({ table, fieldName?, fieldValue, as? })` \u2014 delete by field match.",
1645
1655
  "- `s.db.add({ table, row?, data?, output?, as? })` \u2014 insert; `row` is a partial keyed by column.",
1646
1656
  ' - A row CELL takes a tagged `Value`, a nested object of sub-keys, or a bare JS literal typed against that column: `row: { is_hidden: true, notes: "\u2026" }` encodes exactly as `{ is_hidden: c.bool(true), notes: c.text("\u2026") }`. The tag comes from the COLUMN, not the literal \u2014 `10` on an `f.decimal()` column is `const:decimal`, not `const:int` \u2014 so a literal contradicting its column is a compile error on a `f.*`-schema table (`{ is_hidden: "yes" }` on an `f.bool()` column) and throws at encode on a raw-`ColumnDef[]` one. An `f.enum()` column keeps its member union. A column with no literal form \u2014 obj/json/list/geo/vector/file \u2014 still needs `c.obj`/`c.array`.',
1647
- " - `null` is accepted on EVERY column, including ones that refuse every other literal, and encodes `const:null` \u2014 a write OF null, not the same as omitting the key (omitted takes the column's type default on `add`: `[]` for a list, `{}` for obj/json, else `null`; on `edit` it is left untouched). A column's `nullable` is not consulted; the engine refuses a null it forbids.",
1657
+ " - `null` is accepted on EVERY column, including ones that refuse every other literal, and encodes `const:null` \u2014 a write OF null, not the same as omitting the key. A column's `nullable` is not consulted at encode; the engine refuses a null it forbids.",
1658
+ " - Omitting a key on `add` writes the column's type default \u2014 declared `default` if set, `[]` for a list, `{}` for obj/json, else `null`. That `null` is EMITTED, not what the row holds: the engine applies the column's nullability, so a `nullable` column keeps `null` and a non-nullable one lands on its type's zero value (`\"\"`, `0`, `false`). Set the cell when the stored value matters. On `edit` an omitted key keeps its stored value.",
1648
1659
  " - An `f.password()` cell takes the PLAINTEXT \u2014 the column hashes on write, so a pre-hashed value, or a hashing filter on the cell, stores a hash of a hash that `security.check_password` can never match.",
1649
1660
  "- `s.db.edit({ table, fieldName?, fieldValue, row?, data?, output?, as? })` \u2014 update by field match.",
1650
1661
  "- `s.db.patch({ table, fieldName?, fieldValue, data, output?, as? })` \u2014 merge a partial (`data` is an object value).",
@@ -1733,24 +1744,64 @@ function renderSections(m) {
1733
1744
  '- **Workspace environment variables** set a tenant\'s env vars through the workspace object: `workspaceConfig({ env: { STRIPE_KEY: process.env.STRIPE_KEY!, APP_BASE_URL: "https://\u2026" } })`. Author them as a name\u2192value MAP. Read a var back with `env("NAME")` (\u2192 `$env.NAME`), which compiles to tag "setting" with the plain name. Values are SECRETS: prefer sourcing from `process.env` over committing literals, and don\'t commit a compiled bundle with real values. `deploy` REPLACES the tenant\'s env with the declared map; `release` (merge) is ADD-ONLY \u2014 it creates missing keys but does NOT update or remove existing ones, so changing a value in code and releasing leaves the live value unchanged. Omit `env` to leave existing env untouched. The separate `settings` field is a plain object.',
1734
1745
  ""
1735
1746
  ];
1747
+ const lock = [
1748
+ "## Lock file",
1749
+ "",
1750
+ "`xano.lock` pins each object's guid and each api-group/toolset canonical, so renames",
1751
+ "stay renames (guids otherwise derive from `(type, name)`; a query's from `(api group,",
1752
+ "verb, name)`). Created by `xanots export <entry> --lock`, auto-read once present,",
1753
+ "committed. A query's entry is keyed by that composed identity \u2014",
1754
+ "`query:<group>|<verb>|<name>` \u2014 the same seed its guid derives from; a legacy",
1755
+ "`query:<name>` entry keeps pinning and is migrated by the next locked export (the",
1756
+ "old key drops automatically once its guid re-lands under the composed one).",
1757
+ "",
1758
+ "- `xanots lock rename <kind> <old> <new>` \u2014 `kind` is the payload key (or `table`/`api_group`).",
1759
+ " Run it after renaming in code; the next export emits the original guid under the new name.",
1760
+ "- `xanots lock prune <entry-file> [keys\u2026] --yes` \u2014 drops orphaned entries. Finding orphans",
1761
+ " RUNS the entry's module scope (env assertions included); `--no-verify --yes <kind:name>\u2026`",
1762
+ " prunes named keys with no evaluation and no orphan check.",
1763
+ "- `xanots lock adopt <live-bundle.json> [--yes]` \u2014 seed the lock from an engine",
1764
+ " packageExport when taking over an existing workspace.",
1765
+ "- Every lock subcommand accepts `--lock=<path>`. `rename`/`adopt` take no entry file, so",
1766
+ " from outside the lock's directory pass `--lock` (or `--entry=<entry-file>` to derive it).",
1767
+ "- Programmatic use: call `seedLockOverrides(readLockFile(path))` BEFORE importing any def",
1768
+ " module \u2014 references bake guids at import time, so late seeding is a silent no-op",
1769
+ " (`resetLockOverrides` exists for tests).",
1770
+ "",
1771
+ "What writes the lock: `export`/`deploy` of an ENTRY FILE update it via the shared compile",
1772
+ "step \u2014 only when a lock exists or `--lock` is passed. Nothing from a DEPLOY is written",
1773
+ "back beyond that (an ephemeral/sandbox is a separate workspace, so its identities must",
1774
+ "not pollute yours). The one write-back is `release --replace`, which mints fresh",
1775
+ "identities in the workspace the lock describes: it re-pins the lock from the rebuilt",
1776
+ "workspace, because otherwise the next release matches nothing and duplicates every",
1777
+ "object. CI: `--frozen-lock` fails instead of changing the lock.",
1778
+ ""
1779
+ ];
1736
1780
  const stmtCalls = [
1737
1781
  "Auth & calls:",
1738
1782
  "",
1739
1783
  "- `s.security.create_auth_token({ table, id, extras?, expiration?, as? })` \u2014 `extras` defaults to `{}`, `expiration` to `86400`s (`0` = never).",
1784
+ '- **Marketplace first:** `@xanots/auth` registers a complete auth surface \u2014 signup/login/me endpoints plus their `user`/`account`/`event_log` tables \u2014 via `registerAuth(ws, { canonical: "authn" })`. Authentication only, not authorization. Inspect with `xanots marketplace details @xanots/auth --prompt`.',
1785
+ "- **The auth loop end to end** \u2014 what that module implements; author it directly for a custom flow. An auth TABLE (`table({ auth: true })`) backs identity; a PUBLIC login query verifies and mints a token; every protected query names that table as `auth:` and reads the caller with `auth(...)`.",
1786
+ ' - Signup: `s.db.add({ table: users, row: { email: inp("email"), password: inp("password") } })` \u2014 the `f.password()` column hashes on write; take the submission as `input.text()` on signup AND login (see Gotchas on double-hashing).',
1787
+ ' - Login: `s.db.get({ table: users, fieldName: "email", fieldValue: inp("email"), output: ["id", "password"], as: "u" })` \u2014 the `output` naming `password` is REQUIRED (the column is `access: "internal"` and absent from the row otherwise) \u2192 `s.precondition({ expr: expr(ref("u", { safe: true }), "!=", c.null()), error: c.text("No such user."), error_type: "notfound" })` \u2192 `s.security.check_password({ text_password: inp("password"), hash_password: ref("u.password"), as: "ok" })` \u2192 precondition on `ok` \u2192 `s.security.create_auth_token({ table: users, id: ref("u.id"), as: "token" })` \u2192 `response: { token: ref("token") }`.',
1788
+ ' - Client: send it as an `Authorization: Bearer <token>` header. A `query({ auth: users })` refuses a request without a valid one before its stack runs; inside the stack `auth("id")` is the caller\'s row id (`response: { id: auth("id") }` is the whole `me` endpoint).',
1740
1789
  "- `s.security.create_guid({ as? })` \u2014 bind a fresh GUID string. Takes nothing else.",
1741
1790
  "- `s.function.run({ fn, input?, as?, runtime? })` / `s.function.call({ fn, input?, as? })` \u2014 run another function; `input` is keyed by the target's input names.",
1742
1791
  ' - `runtime?` runs it in the BACKGROUND: `{ mode: "async-shared" }` or `{ mode: "async-dedicated", cpu?, memory?, timeout?, maxRetry? }` (resources read at dedicated only). An async call DOES NOT return the result \u2014 it dispatches and continues, so `as` binds nothing; collect with `s.await({ ids })`. Omit for a normal call. Same block on `s.ai.agent.run`.',
1743
- '- `s.api.call({ api, input?, headers?, auth?, as? })` \u2014 invoke an endpoint. `headers` REPLACES the request headers the callee sees and takes the same shapes as `s.api.request`\'s \u2014 a `{ "Name": value }` record (values may be tagged), a `string[]` of `"Name: value"` lines, or one `Value`. `auth` is `{ token, ignoreExpiration? }`: `token` must be a BARE STRING \u2014 a tagged `Value` deploys clean and then fails the run with `Param: token - Text filter requires an integer, float, string or boolean value`, since the engine stores that slot as plain text and never evaluates it. Neither slot authenticates the call today; see `llms/tests.md` for what a workflow-test run actually sees. WORKFLOW-TEST ONLY (see Gotchas in `llms.txt`) \u2014 elsewhere it deploys clean and 500s the first real request.',
1792
+ '- `s.api.call({ api, input?, headers?, auth?, as? })` \u2014 invoke an endpoint. `api` takes the `query()` def HANDLE (or a `{ name, guid }` pair) \u2014 a bare name is refused, because a query\'s identity is composed from its api group, verb, and name. `headers` REPLACES the request headers the callee sees and takes the same shapes as `s.api.request`\'s \u2014 a `{ "Name": value }` record (values may be tagged), a `string[]` of `"Name: value"` lines, or one `Value`. `auth` is `{ token, ignoreExpiration? }`: `token` must be a BARE STRING \u2014 a tagged `Value` deploys clean and then fails the run with `Param: token - Text filter requires an integer, float, string or boolean value`, since the engine stores that slot as plain text and never evaluates it. Neither slot authenticates the call today; see `llms/tests.md` for what a workflow-test run actually sees. WORKFLOW-TEST ONLY (see Gotchas in `llms.txt`) \u2014 elsewhere it deploys clean and 500s the first real request.',
1744
1793
  '- `s.api.request({ url, method?, params?, headers?, timeout?, follow_location?, verify_host?, verify_peer?, ca_certificate?, certificate?, certificate_pass?, private_key?, private_key_pass?, description?, output?, as? })` \u2014 external HTTP request (`mvp:api_request`). Ergonomic types, each also accepting a dynamic `Value`: `method` suggests the 7 verbs (GET/POST/PUT/DELETE/HEAD/OPTIONS/PATCH), `params` a plain JSON object **or** a FLAT record whose values are tagged `Value`s (`{ count: ref("count") }`, each lifted via a `set` filter \u2014 the same record-of-values shape `response: { key: value }` takes); a tagged value NESTED inside an object or array THROWS at encode, so wrap a structured body in `obj({...})`, which encodes any depth as one `const:expr2` (\u2192 query string for GET/HEAD/OPTIONS, body otherwise), `headers` a `{ "Name": value }` record whose values may be tagged (`{ "x-api-key": env("KEY") }`, each pair joined to a `"Name: value"` line) **or** a `string[]` of full header lines \u2014 prefer a header over a `?key=` query param for a credential \u2014 a URL travels into access logs, proxies and `Referer`. \u26A0 Neither spelling is envelope-safe: the `as` envelope\'s `request` half mirrors `url`, `params` AND `headers`, so never return it raw from a credentialed request \u2014 read `response.result`. A NAME outside the header-token charset is refused, and a LITERAL value carrying a newline is refused; a value may hold `:` and spaces (`Bearer a: b` is a valid value). A TAGGED value cannot be checked at build time, so strip CRLF from caller-controlled input before this slot. Literal pairs lead the emitted array and computed ones follow, so the wire order is not the record\'s key order, `timeout` a `number` in seconds (1\u201386400), and `follow_location`/`verify_host`/`verify_peer` booleans. `description` (Settings tab) and `output` filters (Output tab) ride the envelope. SSL cert interdependencies (certificate\u2194private_key, ca_certificate\u2192verify_peer) are checked at build time when statically provable, else by the engine at runtime. The `as` result is typed as the `{request, response}` envelope (`response.status: number`, `response.result: unknown`), so `InferResponse` resolves a `ref` to it. Same typed result on `webflow.request` and `microservice.request`.',
1745
1794
  "- `s.stream.from_request({ url, method?, \u2026tls, as? })` \u2014 streaming external HTTP request (`mvp:streaming_api_request`); same typed field surface as `s.api.request` (no description/output envelope). `url` is REQUIRED \u2014 it shares `api.request`'s engine declaration, which has no default.",
1746
1795
  "- `s.webflow.request({ path, method?, \u2026tls, as? })` \u2014 Webflow API request (`mvp:connect_webflow_api_request`); like `s.api.request` but addressed by `path` (host is engine-supplied), and `path` is REQUIRED \u2014 the engine rejects an empty one. No `headers`: the engine builds its own from the workspace's Webflow connection and ignores an authored value.",
1747
1796
  "- `s.task.call` / `s.tool.call` / `s.trigger.call` / `s.middleware.call` / `s.addon.call` \u2014 same `{ <target>, input?, as? }` shape against the named kind. `s.task.call` and `s.trigger.call` are WORKFLOW-TEST ONLY (see Gotchas in `llms.txt`); `s.tool.call`, `s.middleware.call` and `s.addon.call` run from any stack.",
1748
- "- `s.action.call({ action, package?, input?, as? })` / `s.action.package.call(\u2026)` \u2014 invoke a marketplace action; `package` is its slug.",
1797
+ "- `s.action.call({ actionId, input?, registry?, as? })` / `s.action.package.call({ traceId, versionId, slug, input?, registry?, as? })` \u2014 invoke an installed action. Ids are SUPPLIED, never derived from a name: an action is installed onto the instance, so its identity is assigned at install and differs per instance \u2014 read them off a call in a pulled workspace. The package form needs all three parts; they are one composite and two of them address nothing. `registry` is the action's own settings, `input` the per-call arguments.",
1749
1798
  "- `s.cloud.job({ image, command, args?, secret?, template?, await?, as? })` \u2014 launch a containerized job. `image`/`command` are REQUIRED; omitted \u2192 `Missing param`. \u26A0 `await` is SECONDS (default 60), not a boolean.",
1750
1799
  "- `s.cloud.job.status({ id, as? })` \xB7 `s.cloud.job.await({ ids, timeout, as? })` \u2014 poll one job, or block on several (`ids` a list `Value`, `timeout` in seconds; both required).",
1751
1800
  "",
1752
1801
  "Microservices (the `microservice()` def and the statement that calls it):",
1753
1802
  "",
1803
+ "- `microservice({ name, kind, \u2026 })` \u2014 two mutually exclusive shapes via `kind`: `builtin` declares containers (image/ports/resources/env/command/args) plus optional `ingresses`, and `helm` points at a chart and its `values` \u2014 passing both throws. EARLY SURFACE, expected to change \u2014 every export of a workspace declaring one prints a notice saying so. `configs`/`volumes` are typed and `@deprecated` but NOT deployable: the engine rejects an import carrying either, so `export()` fails the build rather than letting the deploy fatal. Put a value the workload reads in a container's `env`, and storage in a container's own `volumes` (`emptyDir`/`persistent`/`config`). Container names are free-form \u2014 they need not match the microservice name, which is what a stack addresses.",
1804
+ '- SECRETS RIDE ALONG \u2014 `chart.values` and `registryAuth.dockerconfigjson` are carried into the bundle, and into a pulled tree, verbatim (they must be, or a pulled microservice could not be redeployed). Both are stored strings with NO deploy-time indirection: `process.env.X` in the def resolves at EXPORT and writes the literal into the bundle, so it is not a way to keep the credential out. Either leave `registryAuth` unset (public image, or a credential attached outside this workspace) or treat the bundle and any pulled tree as secret material \u2014 keep them out of git, or rotate after. Export prints a notice per microservice carrying either field; `--strict` does not promote it. For a secret a STACK reads, the mapped surface is `workspaceConfig({ env })` + `env("NAME")`.',
1754
1805
  '- `s.microservice.request({ host, path, port?, method?, params?, headers?, timeout?, follow_location?, as? })` \u2014 in-cluster microservice call (`mvp:microservice_request`); no TLS fields. ONLY `host`+`path` required; the rest default to the engine\'s values (`GET`/`{}`/`[]`/`10`/`true`), always emitted. Pass the `microservice()` DEF as `host` \u2014 it binds by NAME (how the engine resolves it), so a rename fixes every call site and the port is checked before deploy. `port?` folds into `host` as `"name:port"`: a def exposing ONE `servicePort` resolves automatically, SEVERAL requires it. A raw `"name:port"` string works, unvalidated, and is the only way to reach an instance-level microservice. `tenantDeploy: "manual"` on the def imports the row without starting the workload.',
1755
1806
  "- `s.workflow_test.call({ workflowTest, datasource?, as? })` \u2014 run another workflow test from inside one, which is the only place it runs (see Gotchas in `llms.txt`). The odd one out: NO `input` (a workflow test takes none), and it carries `datasource?` instead \u2014 same clone caveat as the kind's own field.",
1756
1807
  ""
@@ -1845,6 +1896,7 @@ function renderSections(m) {
1845
1896
  );
1846
1897
  return {
1847
1898
  router: lines,
1899
+ lock,
1848
1900
  legacy,
1849
1901
  objectKinds,
1850
1902
  kindsCore,
@@ -1880,7 +1932,7 @@ function renderDocs(m) {
1880
1932
  {
1881
1933
  path: "llms/object-kinds.md",
1882
1934
  title: "Object kinds",
1883
- readWhen: "Read when you need the full catalog of authorable primitives \u2014 which factory builds each, which register method takes it, and which payload key it lands under. Read it too when a `register*` call will not typecheck because the array was built by `.flatMap()`/`.concat()` across modules.",
1935
+ readWhen: "Read when deciding WHAT to build \u2014 every authorable primitive (tables, endpoints, functions, tasks, agents, MCP, realtime, microservices, \u2026), what each is, and which factory + register method build it. Read it too when a `register*` call will not typecheck because the array was built by `.flatMap()`/`.concat()` across modules.",
1884
1936
  body: s.objectKinds,
1885
1937
  dropLeadingHeading: true
1886
1938
  },
@@ -1938,7 +1990,7 @@ function renderDocs(m) {
1938
1990
  {
1939
1991
  path: "llms/statements-calls.md",
1940
1992
  title: "Auth, cross-object calls, and microservices",
1941
- readWhen: "Read when the stack authenticates, calls another object (`s.function.run`, `s.api.request`, `s.tool.call`), or reaches a microservice.",
1993
+ readWhen: "Read when the stack authenticates (the signup/login/token recipe is here), calls another object (`s.function.run`, `s.api.request`, `s.tool.call`), or reaches a microservice.",
1942
1994
  body: s.stmtCalls
1943
1995
  },
1944
1996
  {
@@ -1965,14 +2017,21 @@ function renderDocs(m) {
1965
2017
  {
1966
2018
  path: "llms/lambda.md",
1967
2019
  title: "Lambda bodies (JavaScript)",
1968
- readWhen: "Read when writing a JavaScript body, or weighing whether to reach for one at all \u2014 `lam.fn`, `fl.lambda`, `fl.reduce`, `s.lambda`. Lambda workers are a bounded shared resource, each surface binds a different set of identifiers, and the hazards are not guessable.",
2020
+ readWhen: "Read when writing a JavaScript body, or weighing whether to reach for one at all \u2014 `lam.fn`, `fl.lambda`, `fl.reduce`, `s.lambda`. Lambda workers are a bounded shared resource, and each surface binds a different set of identifiers.",
1969
2021
  body: s.lambda,
1970
2022
  dropLeadingHeading: true
1971
2023
  },
2024
+ {
2025
+ path: "llms/lock.md",
2026
+ title: "Lock file",
2027
+ readWhen: "Read when a `xano.lock` exists or should \u2014 renaming/pruning/adopting identities, seeding the lock programmatically, or asking which commands write it.",
2028
+ body: s.lock,
2029
+ dropLeadingHeading: true
2030
+ },
1972
2031
  {
1973
2032
  path: "llms/legacy.md",
1974
2033
  title: "Legacy paradigms and retired statements",
1975
- readWhen: 'Read when the code was PULLED from an existing Xano instance rather than authored here \u2014 how a codegen\'d tree reads and the three shapes in it that must not be "fixed", plus a `raw({ name: "mvp:\u2026" })` statement, a `realtimeTrigger()`, or any name the catalogs do not list. None of the retired names are authorable for new code.',
2034
+ readWhen: 'Read when the code was PULLED from an existing Xano instance rather than authored here \u2014 how a codegen\'d tree reads and the three shapes in it that must not be "fixed", plus a `raw({ name: "mvp:\u2026" })` statement, a `realtimeTrigger()`, or any name the catalogs do not list.',
1976
2035
  body: s.legacy,
1977
2036
  dropLeadingHeading: true
1978
2037
  },
@@ -1988,9 +2047,8 @@ function renderDocs(m) {
1988
2047
  "",
1989
2048
  "Each line is a condition on the task. Open the files whose condition matches and",
1990
2049
  "skip the rest \u2014 paths are relative to this file (`node_modules/@xanots/sdk/` once",
1991
- "installed), so they resolve with a plain file read and always match the version you",
1992
- `have. \`${LLMS_FULL_TXT}\` is this file and every one below concatenated \u2014 for a reader`,
1993
- "that wants one fetch, not for an agent that can open the two files it needs.",
2050
+ `installed), so a plain file read resolves them at the version you have.`,
2051
+ `\`${LLMS_FULL_TXT}\` is everything concatenated \u2014 one fetch, for a reader that cannot open files.`,
1994
2052
  "",
1995
2053
  ...topics.map((t) => `- [${t.title}](${t.path}): ${t.readWhen}`),
1996
2054
  ""
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  readLockFile,
3
3
  writeLockFile
4
- } from "./chunk-MFIHIS6B.js";
4
+ } from "./chunk-OYMR5AMJ.js";
5
5
  import "./chunk-GNPVYOPB.js";
6
- import "./chunk-YUBJLB6G.js";
6
+ import "./chunk-7JDT4PBU.js";
7
7
  export {
8
8
  readLockFile,
9
9
  writeLockFile
10
10
  };
11
- //# sourceMappingURL=io-7VIA5SON.js.map
11
+ //# sourceMappingURL=io-M7XZEMK7.js.map
@@ -0,0 +1,12 @@
1
+ import {
2
+ compareToLive,
3
+ diffAgainstLive,
4
+ sharedSchemaChanges
5
+ } from "./chunk-5HCDZ2XN.js";
6
+ import "./chunk-ZOYMZZ3S.js";
7
+ export {
8
+ compareToLive,
9
+ diffAgainstLive,
10
+ sharedSchemaChanges
11
+ };
12
+ //# sourceMappingURL=live-diff-QK4KC2FJ.js.map
@@ -4,9 +4,11 @@ import {
4
4
  LOCK_VERSION,
5
5
  WORKSPACE_KEY,
6
6
  adoptFromBundle,
7
+ appNamesByGuid,
7
8
  createLockContext,
8
9
  emptyLock,
9
10
  lockKey,
11
+ lockNameForObject,
10
12
  mergeObserved,
11
13
  mintCanonical,
12
14
  parseLock,
@@ -15,16 +17,18 @@ import {
15
17
  resolvePayloadKey,
16
18
  serializeLock,
17
19
  validateLockModel
18
- } from "./chunk-YUBJLB6G.js";
20
+ } from "./chunk-7JDT4PBU.js";
19
21
  export {
20
22
  CANONICAL_PAYLOAD_KEYS,
21
23
  LOCK_PAYLOAD_KEYS,
22
24
  LOCK_VERSION,
23
25
  WORKSPACE_KEY,
24
26
  adoptFromBundle,
27
+ appNamesByGuid,
25
28
  createLockContext,
26
29
  emptyLock,
27
30
  lockKey,
31
+ lockNameForObject,
28
32
  mergeObserved,
29
33
  mintCanonical,
30
34
  parseLock,
@@ -34,4 +38,4 @@ export {
34
38
  serializeLock,
35
39
  validateLockModel
36
40
  };
37
- //# sourceMappingURL=lock-KXOJIGCG.js.map
41
+ //# sourceMappingURL=lock-GFXD6G2E.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  loadDefault
3
- } from "./chunk-MS3BRZAZ.js";
3
+ } from "./chunk-CL2H2WYE.js";
4
4
  import {
5
5
  UsageError,
6
6
  missingArgument,
7
7
  unknownSubcommand
8
- } from "./chunk-IVP6TS26.js";
8
+ } from "./chunk-JQLR64UC.js";
9
9
  import {
10
10
  readLockFile,
11
11
  writeLockFile
12
- } from "./chunk-MFIHIS6B.js";
12
+ } from "./chunk-OYMR5AMJ.js";
13
13
  import "./chunk-GNPVYOPB.js";
14
14
  import "./chunk-EZG76F7R.js";
15
15
  import {
16
16
  Xano
17
- } from "./chunk-BPEEGJJA.js";
18
- import "./chunk-F5T45NAM.js";
19
- import "./chunk-YUPQOLFX.js";
17
+ } from "./chunk-FAWNUE2U.js";
18
+ import "./chunk-OKNSR7MT.js";
19
+ import "./chunk-NJGNUVXR.js";
20
20
  import "./chunk-WHOJWOSV.js";
21
21
  import "./chunk-5XZ744TS.js";
22
22
  import {
@@ -27,7 +27,7 @@ import {
27
27
  resetLockOverrides,
28
28
  resolvePayloadKey,
29
29
  seedLockOverrides
30
- } from "./chunk-YUBJLB6G.js";
30
+ } from "./chunk-7JDT4PBU.js";
31
31
 
32
32
  // src/emit/lock-commands.ts
33
33
  import { existsSync, readFileSync } from "fs";
@@ -229,4 +229,4 @@ ${lines}
229
229
  export {
230
230
  runLockCommand
231
231
  };
232
- //# sourceMappingURL=lock-commands-6UONZW26.js.map
232
+ //# sourceMappingURL=lock-commands-7VJKAXV6.js.map
@@ -5,10 +5,10 @@ import {
5
5
  } from "./chunk-W5NOKYEG.js";
6
6
  import {
7
7
  promptLine
8
- } from "./chunk-PGBK64U5.js";
8
+ } from "./chunk-4PTSTDIG.js";
9
9
  import {
10
10
  envMetaCredentialVarsSet
11
- } from "./chunk-SG4UBJ47.js";
11
+ } from "./chunk-3QW5NFZJ.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-LLWK6H77.js";
26
+ } from "./chunk-BKDJN76G.js";
27
27
  import {
28
28
  UsageError
29
- } from "./chunk-IVP6TS26.js";
29
+ } from "./chunk-JQLR64UC.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-F5T45NAM.js";
40
+ import "./chunk-OKNSR7MT.js";
41
41
 
42
42
  // src/emit/login-command.ts
43
43
  import * as client from "openid-client";
@@ -267,4 +267,4 @@ async function acquireByPaste(p) {
267
267
  export {
268
268
  runLoginCommand
269
269
  };
270
- //# sourceMappingURL=login-command-SG7IWTHW.js.map
270
+ //# sourceMappingURL=login-command-DFCURZLC.js.map
@@ -5,7 +5,7 @@ import {
5
5
  readCredential,
6
6
  resolveAuthFilePath,
7
7
  resolveScope
8
- } from "./chunk-LLWK6H77.js";
8
+ } from "./chunk-BKDJN76G.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-J2AG5NKC.js.map
68
+ //# sourceMappingURL=logout-command-WXVZQCAV.js.map
@@ -15,7 +15,7 @@ import {
15
15
  UsageError,
16
16
  indentBlock,
17
17
  missingArgument
18
- } from "./chunk-IVP6TS26.js";
18
+ } from "./chunk-JQLR64UC.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-F5T45NAM.js";
29
+ import "./chunk-OKNSR7MT.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-NKTQ3VPS.js.map
365
+ //# sourceMappingURL=marketplace-command-BCOAAN2I.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  importWorkspaceArchive
3
- } from "./chunk-5WGEURVI.js";
3
+ } from "./chunk-6AAT2AYQ.js";
4
4
  import {
5
5
  createEphemeral,
6
6
  deleteEphemeral,
@@ -167,4 +167,4 @@ ${text}`);
167
167
  export {
168
168
  MetaClient
169
169
  };
170
- //# sourceMappingURL=meta-client-OW5WKWW7.js.map
170
+ //# sourceMappingURL=meta-client-57ZWVHST.js.map