@xanots/sdk 0.0.10 → 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.
Files changed (102) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +48 -5
  3. package/dist/.build-fingerprint +1 -1
  4. package/dist/{agent-file-refresh-QNKN5RYD.js → agent-file-refresh-GQWAAOBV.js} +4 -4
  5. package/dist/bin.js +12 -11
  6. package/dist/{branch-commands-2BLOC2GR.js → branch-commands-5KMPAAZV.js} +7 -7
  7. package/dist/bundle.d.ts +218 -0
  8. package/dist/bundle.js +143 -0
  9. package/dist/{capture-4WVJY4DQ.js → capture-YLUVAITI.js} +2 -2
  10. package/dist/chunk-2VTJSI6X.js +192 -0
  11. package/dist/{chunk-5XZ744TS.js → chunk-2ZCUO2UG.js} +1 -1
  12. package/dist/{chunk-OYMR5AMJ.js → chunk-3LQGF2WS.js} +2 -2
  13. package/dist/{chunk-WP4OZZV4.js → chunk-3VFCKHOB.js} +2 -2
  14. package/dist/{chunk-XHEXOES3.js → chunk-5YDINUAP.js} +1 -1
  15. package/dist/{chunk-LU7TRWMC.js → chunk-6VNRMKFJ.js} +2 -2
  16. package/dist/{chunk-CTD5ZCV6.js → chunk-7WRJPKGK.js} +2 -2
  17. package/dist/{chunk-3INK4Y4E.js → chunk-AE3PDSDS.js} +1 -1
  18. package/dist/{chunk-5YCQ2QHH.js → chunk-AG5GCZDD.js} +2 -2
  19. package/dist/{chunk-DBFU47BJ.js → chunk-AOFFKSJC.js} +2 -2
  20. package/dist/{chunk-TCFIPDB3.js → chunk-AVGDL6RB.js} +1 -1
  21. package/dist/{chunk-4BXJGVZ3.js → chunk-DCMANKMX.js} +2 -69
  22. package/dist/{chunk-WHOJWOSV.js → chunk-EETVJZAZ.js} +1 -1
  23. package/dist/chunk-EHP3WPEG.js +21 -0
  24. package/dist/{chunk-W24FJHPD.js → chunk-ELK7UALJ.js} +3 -3
  25. package/dist/{chunk-VNQM3V2C.js → chunk-EXENFOWE.js} +2 -2
  26. package/dist/{chunk-P6TAVLOX.js → chunk-GSP2BY4F.js} +17 -10
  27. package/dist/{chunk-AIZKXUNP.js → chunk-IMLYGQK6.js} +2 -2
  28. package/dist/{chunk-LBYWGMOA.js → chunk-N74KDCBD.js} +176 -42
  29. package/dist/{chunk-3IGNIP6R.js → chunk-NDP7OUPS.js} +1 -1
  30. package/dist/chunk-OHX6MIUZ.js +184 -0
  31. package/dist/{chunk-EQW3YT5U.js → chunk-P6PVBQL6.js} +2 -2
  32. package/dist/{chunk-I7DQDJAM.js → chunk-PLE5QQOZ.js} +55 -56
  33. package/dist/chunk-PR7OXHGZ.js +70 -0
  34. package/dist/{chunk-VKSOTZK3.js → chunk-QYSQ3UDO.js} +160 -8
  35. package/dist/{chunk-ZQ2PKR6R.js → chunk-RQ3FXV4K.js} +2 -2
  36. package/dist/{chunk-Q77KNEUL.js → chunk-RQNMTDXD.js} +1703 -2
  37. package/dist/{chunk-QKM4U5UK.js → chunk-TJS2AF5Y.js} +2 -2
  38. package/dist/{chunk-DIA7CT7J.js → chunk-V5Y7D4LH.js} +11 -2
  39. package/dist/{chunk-KA6G2L7U.js → chunk-VK26K7AY.js} +3 -3
  40. package/dist/{chunk-YYFXVYPX.js → chunk-VPAWRBK5.js} +12 -16
  41. package/dist/{chunk-5R73LFWK.js → chunk-VRNZ2NVV.js} +7 -7
  42. package/dist/{chunk-ACCBOMCB.js → chunk-XT3XQ4PF.js} +32 -27
  43. package/dist/{chunk-7JDT4PBU.js → chunk-XWFRNJMQ.js} +5 -179
  44. package/dist/{chunk-7ZYW652H.js → chunk-YHS6VVLJ.js} +2 -2
  45. package/dist/{chunk-75Z74TA7.js → chunk-YX22LKQE.js} +2 -2
  46. package/dist/{chunk-F6CYJ7TN.js → chunk-Z2ZIE5CO.js} +2 -2
  47. package/dist/cli.d.ts +13 -6
  48. package/dist/cli.js +11 -10
  49. package/dist/codegen-command-Y2SPMAUW.js +47 -0
  50. package/dist/codegen.d.ts +5 -4
  51. package/dist/codegen.js +2 -2
  52. package/dist/{completion-WF46272M.js → completion-HJU5QEFB.js} +2 -2
  53. package/dist/{deploy-command-QTIVA22A.js → deploy-command-XHS5PKPV.js} +20 -19
  54. package/dist/{ephemeral-command-U4AQ3TXX.js → ephemeral-command-2NKPEXUU.js} +8 -8
  55. package/dist/index.d.ts +88 -102
  56. package/dist/index.js +13 -12
  57. package/dist/init-command-23FFNUFT.js +32 -0
  58. package/dist/internal.d.ts +10 -16
  59. package/dist/internal.js +76 -54
  60. package/dist/io-UBDMMDH6.js +12 -0
  61. package/dist/{live-diff-IXKBVG4K.js → live-diff-HCOTN5WC.js} +3 -3
  62. package/dist/{lock-GFXD6G2E.js → lock-HQ4KARU2.js} +3 -2
  63. package/dist/{lock-commands-DQ7CUMIV.js → lock-commands-WCRC56ME.js} +12 -11
  64. package/dist/{login-command-Z6CHTA57.js → login-command-P7LXD5TE.js} +6 -6
  65. package/dist/{loop-D5NPL4VH.js → loop-IC5ISSYB.js} +3 -3
  66. package/dist/{marketplace-command-P4IPLJ6J.js → marketplace-command-T6JCHW7J.js} +4 -4
  67. package/dist/{meta-client-K2J4XH64.js → meta-client-LKRKR3L2.js} +4 -4
  68. package/dist/node.d.ts +6 -5
  69. package/dist/node.js +18 -17
  70. package/dist/{preflight-command-GZ2GE5RN.js → preflight-command-TZWPHBXY.js} +17 -16
  71. package/dist/{profile-command-LJSBDV2L.js → profile-command-WBNSMQSI.js} +3 -3
  72. package/dist/{release-command-YUBTNHVX.js → release-command-WEFYRTCI.js} +27 -26
  73. package/dist/response-D6xGLEIn.d.ts +839 -0
  74. package/dist/{routes-manifest-PWZHDOI5.js → routes-manifest-5ZFKUQWA.js} +2 -2
  75. package/dist/{runtime-V4C3AC3A.js → runtime-LSLIDALK.js} +1 -1
  76. package/dist/scaffold.d.ts +16 -8
  77. package/dist/scaffold.js +7 -11
  78. package/dist/{static-host-3WMV7IZO.js → static-host-4JDQCHUW.js} +1 -1
  79. package/dist/{status-command-AL47VG7H.js → status-command-VARULAR5.js} +4 -4
  80. package/dist/{store-BG1UPZ3Z.d.ts → store-DAnUIi1T.d.ts} +95 -87
  81. package/dist/{test-command-YAZLKLGQ.js → test-command-YCAR4O35.js} +7 -7
  82. package/dist/{upgrade-command-FB5QJ363.js → upgrade-command-GYEIMJBG.js} +16 -16
  83. package/dist/{workspace-2COHDBM3.js → workspace-33KHFLX3.js} +2 -2
  84. package/dist/{workspace-command-43P42FBP.js → workspace-command-2ZTGT26W.js} +28 -27
  85. package/dist/{workspace-export-DURY5WYL.js → workspace-export-MLYTYZS5.js} +3 -3
  86. package/dist/{response-CVAE2kMj.d.ts → xdo-ODuJklk6.d.ts} +28 -860
  87. package/guides/authoring.md +11 -2
  88. package/guides/typed-frontend.md +5 -5
  89. package/llms/filters.md +11 -10
  90. package/llms/kinds-core.md +1 -1
  91. package/llms/statements-data.md +6 -3
  92. package/llms/values.md +1 -1
  93. package/llms-full.txt +53 -42
  94. package/llms.txt +34 -27
  95. package/manifest.json +6 -2
  96. package/package.json +7 -2
  97. package/dist/chunk-ANUDXFEX.js +0 -881
  98. package/dist/chunk-JGCWTCA7.js +0 -95
  99. package/dist/chunk-YBC3IKMF.js +0 -845
  100. package/dist/codegen-command-GB3H2KQ7.js +0 -46
  101. package/dist/init-command-MAXULNAD.js +0 -33
  102. package/dist/io-M7XZEMK7.js +0 -11
package/dist/cli.js CHANGED
@@ -8,18 +8,19 @@ import {
8
8
  resolveHelpRequest,
9
9
  resolveLockPath,
10
10
  run
11
- } from "./chunk-ACCBOMCB.js";
12
- import "./chunk-CTD5ZCV6.js";
13
- import "./chunk-OYMR5AMJ.js";
14
- import "./chunk-F6CYJ7TN.js";
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-VKSOTZK3.js";
18
- import "./chunk-DIA7CT7J.js";
19
- import "./chunk-LBYWGMOA.js";
20
- import "./chunk-WHOJWOSV.js";
21
- import "./chunk-5XZ744TS.js";
22
- import "./chunk-7JDT4PBU.js";
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
+ import "./chunk-OHX6MIUZ.js";
23
24
  export {
24
25
  compileBundle,
25
26
  exportBundleJson,
@@ -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,4 +1,5 @@
1
- import { a1 as Statement, a8 as Tag, w as FilterXdo, a9 as TaggedValue, p as FieldDescriptor, Z as ResponseDef } from './response-CVAE2kMj.js';
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';
2
3
 
3
4
  /** A stored statement envelope as it appears in a Xano bundle's `run[]`. */
4
5
  type RawEnvelope = Record<string, unknown>;
@@ -25,7 +26,7 @@ declare function raw(envelope: RawEnvelope): Statement;
25
26
  * generated tree greppable by one name.
26
27
  *
27
28
  * Reached via `@xanots/sdk/codegen`, alongside `raw()` — same reasoning
28
- * (KTD-10): a passthrough should not sit in tab-completion next to `c.text`.
29
+ *: a passthrough should not sit in tab-completion next to `c.text`.
29
30
  */
30
31
 
31
32
  /**
@@ -36,7 +37,7 @@ declare function raw(envelope: RawEnvelope): Statement;
36
37
  * what the SDK writes. The corpus is genuinely mixed — the same tag appears with
37
38
  * a quoted and an unquoted value in one workspace — and codegen echoes whichever
38
39
  * it found. Declaring it `string` alone made a pulled tree fail its own
39
- * type-check (issue #133), which broke every npm script in the scaffold, since
40
+ * type-check, which broke every npm script in the scaffold, since
40
41
  * each one runs `tsc --noEmit` first.
41
42
  *
42
43
  * Coercing to the string form at emit would be the other repair. It is the wrong
@@ -90,7 +91,7 @@ declare function rawField(envelope: RawFieldEnvelope): FieldDescriptor;
90
91
  * instead.
91
92
  *
92
93
  * Reached via `@xanots/sdk/codegen`, never from the discoverable authoring
93
- * namespace, for the same reason `raw()` stays off `s` (KTD-10).
94
+ * namespace, for the same reason `raw()` stays off `s`.
94
95
  */
95
96
 
96
97
  /** A stored `result[]` entry as it appears in a bundle. */
package/dist/codegen.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  raw
3
- } from "./chunk-LU7TRWMC.js";
3
+ } from "./chunk-6VNRMKFJ.js";
4
4
  import {
5
5
  RAW_FIELD,
6
6
  rawResponse
7
- } from "./chunk-5XZ744TS.js";
7
+ } from "./chunk-2ZCUO2UG.js";
8
8
 
9
9
  // src/values/raw-value.ts
10
10
  function rawValue(v) {
@@ -6,7 +6,7 @@ import {
6
6
  liveCommandNames,
7
7
  liveSubcommandNames,
8
8
  visibleFlags
9
- } from "./chunk-DIA7CT7J.js";
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-WF46272M.js.map
299
+ //# sourceMappingURL=completion-HJU5QEFB.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  importWorkspaceArchive
3
- } from "./chunk-WP4OZZV4.js";
3
+ } from "./chunk-3VFCKHOB.js";
4
4
  import {
5
5
  assertBundleInput,
6
6
  loadBundleText
7
- } from "./chunk-W24FJHPD.js";
7
+ } from "./chunk-ELK7UALJ.js";
8
8
  import {
9
9
  microserviceLine,
10
10
  readyRatio,
@@ -16,7 +16,7 @@ import {
16
16
  isEphemeralDisabled,
17
17
  isExpired,
18
18
  waitUntilReady
19
- } from "./chunk-VNQM3V2C.js";
19
+ } from "./chunk-EXENFOWE.js";
20
20
  import {
21
21
  openBrowser
22
22
  } from "./chunk-W5NOKYEG.js";
@@ -31,19 +31,19 @@ import {
31
31
  } from "./chunk-K5IOND4K.js";
32
32
  import {
33
33
  getAccessToken
34
- } from "./chunk-QKM4U5UK.js";
34
+ } from "./chunk-TJS2AF5Y.js";
35
35
  import "./chunk-FE5I6S6N.js";
36
36
  import {
37
37
  encodeWorkspaceArchive
38
38
  } from "./chunk-ZUTSMMAG.js";
39
39
  import "./chunk-X4DVXBFY.js";
40
- import "./chunk-3IGNIP6R.js";
41
- import "./chunk-ACCBOMCB.js";
42
- import "./chunk-CTD5ZCV6.js";
43
- import "./chunk-OYMR5AMJ.js";
40
+ import "./chunk-NDP7OUPS.js";
41
+ import "./chunk-XT3XQ4PF.js";
42
+ import "./chunk-7WRJPKGK.js";
43
+ import "./chunk-3LQGF2WS.js";
44
44
  import {
45
45
  assertNoEnv
46
- } from "./chunk-F6CYJ7TN.js";
46
+ } from "./chunk-Z2ZIE5CO.js";
47
47
  import "./chunk-GNPVYOPB.js";
48
48
  import {
49
49
  blank,
@@ -59,12 +59,13 @@ import {
59
59
  warn,
60
60
  withSpinner
61
61
  } from "./chunk-EZG76F7R.js";
62
- import "./chunk-VKSOTZK3.js";
63
- import "./chunk-DIA7CT7J.js";
64
- import "./chunk-LBYWGMOA.js";
65
- import "./chunk-WHOJWOSV.js";
66
- import "./chunk-5XZ744TS.js";
67
- import "./chunk-7JDT4PBU.js";
62
+ import "./chunk-QYSQ3UDO.js";
63
+ import "./chunk-V5Y7D4LH.js";
64
+ import "./chunk-N74KDCBD.js";
65
+ import "./chunk-EETVJZAZ.js";
66
+ import "./chunk-XWFRNJMQ.js";
67
+ import "./chunk-2ZCUO2UG.js";
68
+ import "./chunk-OHX6MIUZ.js";
68
69
 
69
70
  // src/emit/deploy-command.ts
70
71
  import { basename } from "path";
@@ -101,7 +102,7 @@ async function assertNoSeedLeaks(dir, values, allow) {
101
102
  );
102
103
  for (const column of unscannable) detail(column);
103
104
  }
104
- const { findSeedLeaks } = await import("./static-host-3WMV7IZO.js");
105
+ const { findSeedLeaks } = await import("./static-host-4JDQCHUW.js");
105
106
  const leaks = findSeedLeaks(dir, values);
106
107
  if (leaks.length === 0) return;
107
108
  const lines = leaks.map((l) => ` ${l.file} \u2014 ${l.table}.${l.column}`);
@@ -132,7 +133,7 @@ async function runDeployedTests(auth, summary, args) {
132
133
  }
133
134
  }
134
135
  async function runTestsOrThrow(auth, summary, args) {
135
- const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-YAZLKLGQ.js");
136
+ const { runSuite, EXIT_TESTS_FAILED } = await import("./test-command-YCAR4O35.js");
136
137
  if (summary.url === void 0) {
137
138
  warn("Skipped --test: the ephemeral reported no base URL to run against.");
138
139
  return void 0;
@@ -373,7 +374,7 @@ async function deployEphemeral(auth, ctx) {
373
374
  };
374
375
  }
375
376
  async function deployStaticTo(dir, auth, target, env, explicit, host, skipLiveness, routing) {
376
- const { deployStaticHost } = await import("./static-host-3WMV7IZO.js");
377
+ const { deployStaticHost } = await import("./static-host-4JDQCHUW.js");
377
378
  const where = target.label && target.label !== "" ? target.label : `workspace #${target.workspaceId}`;
378
379
  step(`Deploying static frontend ${dir} \u2192 ${where}${host ? ` (host: ${host})` : ""}`);
379
380
  const sh = await deployStaticHost({ host, dir, workspaceId: target.workspaceId, baseUrl: target.baseUrl, accessToken: auth.access_token, env, routing });
@@ -416,4 +417,4 @@ export {
416
417
  runDeployedTests,
417
418
  verifyMicroservices
418
419
  };
419
- //# sourceMappingURL=deploy-command-QTIVA22A.js.map
420
+ //# sourceMappingURL=deploy-command-XHS5PKPV.js.map
@@ -12,13 +12,13 @@ import {
12
12
  isExpired,
13
13
  listAllEphemeral,
14
14
  listEphemeral
15
- } from "./chunk-VNQM3V2C.js";
15
+ } from "./chunk-EXENFOWE.js";
16
16
  import {
17
17
  openBrowser
18
18
  } from "./chunk-W5NOKYEG.js";
19
19
  import {
20
20
  confirm
21
- } from "./chunk-AIZKXUNP.js";
21
+ } from "./chunk-IMLYGQK6.js";
22
22
  import {
23
23
  isMachineOutput,
24
24
  writeJson
@@ -30,18 +30,18 @@ import {
30
30
  } from "./chunk-K5IOND4K.js";
31
31
  import {
32
32
  getAccessToken
33
- } from "./chunk-QKM4U5UK.js";
33
+ } from "./chunk-TJS2AF5Y.js";
34
34
  import "./chunk-FE5I6S6N.js";
35
35
  import {
36
36
  exportWorkspaceBundle
37
- } from "./chunk-7ZYW652H.js";
37
+ } from "./chunk-YHS6VVLJ.js";
38
38
  import "./chunk-ZUTSMMAG.js";
39
39
  import "./chunk-X4DVXBFY.js";
40
- import "./chunk-3IGNIP6R.js";
40
+ import "./chunk-NDP7OUPS.js";
41
41
  import {
42
42
  assertNoForce,
43
43
  unknownSubcommand
44
- } from "./chunk-F6CYJ7TN.js";
44
+ } from "./chunk-Z2ZIE5CO.js";
45
45
  import "./chunk-GNPVYOPB.js";
46
46
  import {
47
47
  detail,
@@ -53,7 +53,7 @@ import {
53
53
  success,
54
54
  warn
55
55
  } from "./chunk-EZG76F7R.js";
56
- import "./chunk-DIA7CT7J.js";
56
+ import "./chunk-V5Y7D4LH.js";
57
57
 
58
58
  // src/emit/ephemeral-command.ts
59
59
  import { writeFileSync } from "fs";
@@ -236,4 +236,4 @@ export {
236
236
  resolveLive,
237
237
  runEphemeralCommand
238
238
  };
239
- //# sourceMappingURL=ephemeral-command-U4AQ3TXX.js.map
239
+ //# sourceMappingURL=ephemeral-command-2NKPEXUU.js.map