@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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parsePathParams
3
- } from "./chunk-WHOJWOSV.js";
3
+ } from "./chunk-EETVJZAZ.js";
4
4
 
5
5
  // src/emit/routes-manifest.ts
6
6
  var RouteManifestError = class extends Error {
@@ -241,4 +241,4 @@ export {
241
241
  RouteManifestError,
242
242
  renderRouteManifest
243
243
  };
244
- //# sourceMappingURL=routes-manifest-PWZHDOI5.js.map
244
+ //# sourceMappingURL=routes-manifest-5ZFKUQWA.js.map
@@ -10,4 +10,4 @@ async function smokeRunFunctions(client, workspaceId, names, inputs = {}) {
10
10
  export {
11
11
  smokeRunFunctions
12
12
  };
13
- //# sourceMappingURL=runtime-V4C3AC3A.js.map
13
+ //# sourceMappingURL=runtime-LSLIDALK.js.map
@@ -1,13 +1,11 @@
1
1
  /**
2
- * AUTO-GENERATED by scripts/gen-shadcn-themes.ts — DO NOT EDIT BY HAND.
3
- *
4
2
  * shadcn/ui's theme registry, distilled: 7 base colors carrying the complete
5
3
  * token set, and 17 accents carrying the partial override that reads as a
6
4
  * brand. Values are verbatim upstream oklch — see
7
5
  * `apps/v4/registry/themes.ts` in github.com/shadcn-ui/ui.
8
6
  *
9
7
  * Composed by `buildTheme()` in ../theme-presets.ts, which mirrors upstream's
10
- * own shallow-spread merge. Regenerate with `npm run codegen:themes`.
8
+ * own shallow-spread merge.
11
9
  */
12
10
  /** One registry theme: a display label and its light/dark token maps. */
13
11
  interface ThemeTokens {
@@ -1019,13 +1017,9 @@ declare const ACCENT_TOKENS: {
1019
1017
  declare const TOKEN_ORDER: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "radius", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring"];
1020
1018
 
1021
1019
  /**
1022
- * AUTO-GENERATED by scripts/gen-shadcn-fonts.ts — DO NOT EDIT BY HAND.
1023
- *
1024
1020
  * shadcn/ui's typefaces: 17 sans, 7 serif, 2 mono. Each is
1025
1021
  * self-hosted through its `@fontsource-variable/*` package — a dependency and a
1026
1022
  * CSS `@import`, not a request to Google's CDN.
1027
- *
1028
- * Regenerate with `npm run codegen:fonts`.
1029
1023
  */
1030
1024
  /** One typeface: how to name it, install it, and write it into a font stack. */
1031
1025
  interface FontDefinition {
@@ -1554,6 +1548,20 @@ declare function orderedTokens(vars: Readonly<Record<string, string>>): Array<[s
1554
1548
  * color scale that shows up in editor autocomplete).
1555
1549
  */
1556
1550
  declare function colorTokens(vars: Readonly<Record<string, string>>): string[];
1551
+ /**
1552
+ * What this section actually needs of a theme: its name, and how dark mode is
1553
+ * wired. Narrower than {@link ThemeChoice} (which every scaffold caller passes,
1554
+ * and which satisfies this) so a caller that RECOVERED a theme from a project on
1555
+ * disk can describe it without fabricating token values it never read — see
1556
+ * `project-detect.ts`. A label lifted from a stylesheet is a fact; a palette
1557
+ * reconstructed around it would not be.
1558
+ */
1559
+ interface ThemeGuidance {
1560
+ readonly theme: {
1561
+ readonly label: string;
1562
+ };
1563
+ readonly dark: DarkMode;
1564
+ }
1557
1565
  /**
1558
1566
  * The theme bullets in the scaffolded AI-assistant brief, appended to whatever
1559
1567
  * the frontend preset contributes.
@@ -1570,7 +1578,7 @@ declare function colorTokens(vars: Readonly<Record<string, string>>): string[];
1570
1578
  * suggests, and in a scaffold that already persists and applies the mode it
1571
1579
  * is a second source of truth for one boolean.
1572
1580
  */
1573
- declare function themeGuidanceSection(choice: ThemeChoice): string;
1581
+ declare function themeGuidanceSection(choice: ThemeGuidance): string;
1574
1582
  /** An sRGB triple, 0–255, for painting a theme swatch. */
1575
1583
  interface Rgb {
1576
1584
  readonly r: number;
package/dist/scaffold.js CHANGED
@@ -1,13 +1,3 @@
1
- import {
2
- DEFAULT_FRAMEWORK,
3
- FRAMEWORKS,
4
- allFrontendPresets,
5
- findFrontendPreset,
6
- resolveFrameworkFlag
7
- } from "./chunk-YBC3IKMF.js";
8
- import {
9
- renderIndexCss
10
- } from "./chunk-ANUDXFEX.js";
11
1
  import {
12
2
  ACCENTS,
13
3
  ACCENT_TOKENS,
@@ -17,12 +7,15 @@ import {
17
7
  DARK_MODES,
18
8
  DEFAULT_BASE_COLOR,
19
9
  DEFAULT_DARK_MODE,
10
+ DEFAULT_FRAMEWORK,
20
11
  DEFAULT_ICON_LIBRARY,
21
12
  DEFAULT_RADIUS,
22
13
  FONTS,
23
14
  FONT_IDS,
15
+ FRAMEWORKS,
24
16
  ICON_LIBRARIES,
25
17
  TOKEN_ORDER,
18
+ allFrontendPresets,
26
19
  allIconLibraries,
27
20
  buildTheme,
28
21
  colorTokens,
@@ -32,6 +25,7 @@ import {
32
25
  defaultThemeChoice,
33
26
  describeFonts,
34
27
  findFont,
28
+ findFrontendPreset,
35
29
  findIconLibrary,
36
30
  fontDependencies,
37
31
  fontImports,
@@ -42,15 +36,17 @@ import {
42
36
  normalizeRadius,
43
37
  orderedTokens,
44
38
  parseColor,
39
+ renderIndexCss,
45
40
  resolveDarkModeFlag,
46
41
  resolveFontFlag,
42
+ resolveFrameworkFlag,
47
43
  resolveIconsFlag,
48
44
  resolveThemeFlag,
49
45
  themeFromRegistryItem,
50
46
  themeGuidanceSection,
51
47
  themeSwatch,
52
48
  withRadius
53
- } from "./chunk-Q77KNEUL.js";
49
+ } from "./chunk-RQNMTDXD.js";
54
50
  export {
55
51
  ACCENTS,
56
52
  ACCENT_TOKENS,
@@ -135,4 +135,4 @@ export {
135
135
  findSeedLeaks,
136
136
  tarGz2 as tarGz
137
137
  };
138
- //# sourceMappingURL=static-host-3WMV7IZO.js.map
138
+ //# sourceMappingURL=static-host-4JDQCHUW.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getEphemeral,
3
3
  isExpired
4
- } from "./chunk-VNQM3V2C.js";
4
+ } from "./chunk-EXENFOWE.js";
5
5
  import {
6
6
  isMachineOutput,
7
7
  writeJson
@@ -12,12 +12,12 @@ import {
12
12
  } from "./chunk-K5IOND4K.js";
13
13
  import {
14
14
  getAccessToken
15
- } from "./chunk-QKM4U5UK.js";
15
+ } from "./chunk-TJS2AF5Y.js";
16
16
  import "./chunk-FE5I6S6N.js";
17
17
  import {
18
18
  fetchOrExplain,
19
19
  httpFailure
20
- } from "./chunk-3IGNIP6R.js";
20
+ } from "./chunk-NDP7OUPS.js";
21
21
  import "./chunk-GNPVYOPB.js";
22
22
  import {
23
23
  formatExpiration,
@@ -159,4 +159,4 @@ export {
159
159
  readStatus,
160
160
  runStatusCommand
161
161
  };
162
- //# sourceMappingURL=status-command-AL47VG7H.js.map
162
+ //# sourceMappingURL=status-command-VARULAR5.js.map