@vercel/geistdocs 1.8.0 → 1.8.1

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/dist/assets/icons/icon-acronym-ts.d.ts +5 -0
  2. package/dist/assets/icons/icon-acronym-ts.d.ts.map +1 -0
  3. package/dist/assets/icons/icon-acronym-ts.js +4 -0
  4. package/dist/assets/icons/icon-agents.d.ts +5 -0
  5. package/dist/assets/icons/icon-agents.d.ts.map +1 -0
  6. package/dist/assets/icons/icon-agents.js +4 -0
  7. package/dist/assets/icons/icon-clock.d.ts +5 -0
  8. package/dist/assets/icons/icon-clock.d.ts.map +1 -0
  9. package/dist/assets/icons/icon-clock.js +4 -0
  10. package/dist/assets/icons/icon-folder-open.d.ts +5 -0
  11. package/dist/assets/icons/icon-folder-open.d.ts.map +1 -0
  12. package/dist/assets/icons/icon-folder-open.js +4 -0
  13. package/dist/assets/icons/icon-linked.d.ts +5 -0
  14. package/dist/assets/icons/icon-linked.d.ts.map +1 -0
  15. package/dist/assets/icons/icon-linked.js +4 -0
  16. package/dist/assets/icons/icon-logs.d.ts +5 -0
  17. package/dist/assets/icons/icon-logs.d.ts.map +1 -0
  18. package/dist/assets/icons/icon-logs.js +4 -0
  19. package/dist/assets/icons/icon-message.d.ts +5 -0
  20. package/dist/assets/icons/icon-message.d.ts.map +1 -0
  21. package/dist/assets/icons/icon-message.js +4 -0
  22. package/dist/assets/icons/icon-openai.d.ts +5 -0
  23. package/dist/assets/icons/icon-openai.d.ts.map +1 -0
  24. package/dist/assets/icons/icon-openai.js +4 -0
  25. package/dist/assets/icons/icon-plus-circle.d.ts +5 -0
  26. package/dist/assets/icons/icon-plus-circle.d.ts.map +1 -0
  27. package/dist/assets/icons/icon-plus-circle.js +4 -0
  28. package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts +5 -0
  29. package/dist/assets/icons/icon-refresh-counter-clockwise.d.ts.map +1 -0
  30. package/dist/assets/icons/icon-refresh-counter-clockwise.js +4 -0
  31. package/dist/assets/icons/icon-robot.d.ts +5 -0
  32. package/dist/assets/icons/icon-robot.d.ts.map +1 -0
  33. package/dist/assets/icons/icon-robot.js +4 -0
  34. package/dist/assets/icons/icon-sandbox.d.ts +5 -0
  35. package/dist/assets/icons/icon-sandbox.d.ts.map +1 -0
  36. package/dist/assets/icons/icon-sandbox.js +4 -0
  37. package/dist/assets/icons/icon-sparkles.d.ts +5 -0
  38. package/dist/assets/icons/icon-sparkles.d.ts.map +1 -0
  39. package/dist/assets/icons/icon-sparkles.js +4 -0
  40. package/dist/assets/icons/icon-trash.d.ts +5 -0
  41. package/dist/assets/icons/icon-trash.d.ts.map +1 -0
  42. package/dist/assets/icons/icon-trash.js +4 -0
  43. package/dist/assets/icons/icon-user.d.ts +5 -0
  44. package/dist/assets/icons/icon-user.d.ts.map +1 -0
  45. package/dist/assets/icons/icon-user.js +4 -0
  46. package/dist/assets/icons/icon-workflow.d.ts +5 -0
  47. package/dist/assets/icons/icon-workflow.d.ts.map +1 -0
  48. package/dist/assets/icons/icon-workflow.js +4 -0
  49. package/dist/assets/icons/icon-wrench.d.ts +5 -0
  50. package/dist/assets/icons/icon-wrench.d.ts.map +1 -0
  51. package/dist/assets/icons/icon-wrench.js +4 -0
  52. package/dist/assets/icons/index.d.ts +18 -0
  53. package/dist/assets/icons/index.d.ts.map +1 -1
  54. package/dist/assets/icons/index.js +18 -0
  55. package/dist/cli/index.js +1 -1
  56. package/dist/components/switch.d.ts +11 -0
  57. package/dist/components/switch.d.ts.map +1 -0
  58. package/dist/components/switch.js +12 -0
  59. package/docs/agents.md +1 -1
  60. package/docs/llms.txt +1 -1
  61. package/docs/manifest.json +1 -1
  62. package/package.json +5 -1
  63. package/template/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ export declare function IconAcronymTs({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-acronym-ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-acronym-ts.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-acronym-ts.tsx"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,EAC5B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconAcronymTs({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M0 2.5A2.5 2.5 0 0 1 2.5 0h11A2.5 2.5 0 0 1 16 2.5v11a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 13.5zm12.13 7a.38.38 0 0 0 0 .75 1.88 1.88 0 0 1 0 3.75H10.5v-1.5h1.63a.38.38 0 0 0 0-.75 1.88 1.88 0 0 1 0-3.75h1.37v1.5zM5 9.5h1.25V14h1.5V9.5H9V8H5z", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconAgents({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-agents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-agents.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-agents.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EACzB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconAgents({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M3 10.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m10 0a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m-10 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m10 0a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M8 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2M2.5 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2m5.5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2M8 .25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M2.5 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2m11 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconClock({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-clock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-clock.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-clock.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,EACxB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconClock({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13m.75 6.12 1.7 1.28.6.45-.9 1.2-.6-.45-1.9-1.43a1 1 0 0 1-.4-.8V3.5h1.5z", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconFolderOpen({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-folder-open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-folder-open.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-folder-open.tsx"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,EAC7B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconFolderOpen({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M13.5 4v2h-11V2.5H6l1.33 1q.68.49 1.5.5zM1 6V1h5.17a1 1 0 0 1 .6.2l1.46 1.1a1 1 0 0 0 .6.2H15V6h1l-.17 1.5-.58 5.28A2.5 2.5 0 0 1 12.76 15H3.24a2.5 2.5 0 0 1-2.49-2.22L.17 7.5 0 6zm13 1.5H1.68l.56 5.11a1 1 0 0 0 1 .89h9.52a1 1 0 0 0 1-.89l.56-5.11z", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconLinked({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-linked.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-linked.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-linked.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EACzB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconLinked({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M4.25 1.5A4.25 4.25 0 0 0 .99 8.48l1.15-.96A2.75 2.75 0 0 1 4.24 3h4.26a2.75 2.75 0 1 1 0 5.5V10a4.25 4.25 0 0 0 0-8.5zm7.5 11.5H7.5a2.75 2.75 0 1 1 0-5.5V6a4.25 4.25 0 0 0 0 8.5h4.25a4.25 4.25 0 0 0 3.26-6.98l-1.15.96a2.75 2.75 0 0 1-2.1 4.52", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconLogs({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-logs.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-logs.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,EACvB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconLogs({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M9 2h6v1.5H9zm0 10h6v1.5H9zm.75-5H9v1.5h6V7H9.75M1 12h2v1.5H1zm.75-10H1v1.5h2V2H1.75M1 7h2v1.5H1zm4.75 5H5v1.5h2V12H5.75M5 2h2v1.5H5zm.75 5H5v1.5h2V7H5.75", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconMessage({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-message.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-message.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAC1B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconMessage({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "m2.9 10.4.08.23a5.27 5.27 0 0 1 .4 3.42 8 8 0 0 0 2.33-1.3l.51-.43.67.1q.54.08 1.11.08c3.78 0 6.5-2.64 6.5-5.5S11.78 1.5 8 1.5 1.5 4.14 1.5 7c0 1.18.44 2.3 1.23 3.22zm-.09 5.37A9 9 0 0 1 1 16s.43-.69.73-1.56c.15-.46.27-.96.27-1.44 0-.62-.2-1.27-.4-1.81A6.4 6.4 0 0 1 0 7c0-3.87 3.58-7 8-7s8 3.13 8 7-3.58 7-8 7q-.68 0-1.33-.1a8.7 8.7 0 0 1-3.86 1.87", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconOpenai({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-openai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-openai.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-openai.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EACzB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconOpenai({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 24 24", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073M13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.815 3.355-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872m16.597 3.855-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66m-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconPlusCircle({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-plus-circle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-plus-circle.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-plus-circle.tsx"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,EAC7B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconPlusCircle({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M14.5 8a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.75 4.25v3h3v1.5h-3v3h-1.5v-3h-3v-1.5h3v-3z", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconRefreshCounterClockwise({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-refresh-counter-clockwise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-refresh-counter-clockwise.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-refresh-counter-clockwise.tsx"],"names":[],"mappings":"AAAA,wBAAgB,2BAA2B,CAAC,EAC1C,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconRefreshCounterClockwise({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M2.73 6.42A5.5 5.5 0 0 1 12.84 5.4l.36.66 1.32-.72-.36-.66A7 7 0 0 0 1.5 5.4V3H0v4.17c0 .42.34.75.75.75h4.18v-1.5h-2.2m10.54 3.16h-2.2v-1.5h4.18c.41 0 .75.33.75.75V13h-1.5v-2.39a7 7 0 0 1-12.64.75l-.36-.66 1.31-.72.36.66a5.5 5.5 0 0 0 10.1-1.06", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconRobot({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-robot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-robot.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-robot.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,EACxB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconRobot({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M8.75 2.8a1.5 1.5 0 1 0-1.5 0V5H7a6 6 0 0 0-5.92 5H0v3h1v3h14v-3h1v-3h-1.08A6 6 0 0 0 9 5h-.25zM7 6.5A4.5 4.5 0 0 0 2.5 11v3.5h11V11A4.5 4.5 0 0 0 9 6.5zm.25 4.75a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M10.5 13a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconSandbox({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-sandbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sandbox.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-sandbox.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAC1B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconSandbox({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M14.5 2.25a.75.75 0 0 0-.75-.75H10.5V0h3.25C14.99 0 16 1 16 2.25V5.5h-1.5zM0 2.25C0 1.01 1 0 2.25 0H5.5v1.5H2.25a.75.75 0 0 0-.75.75V5.5H0zm2.94 8L5.19 8 2.94 5.75 4 4.69l2.6 2.6a1 1 0 0 1 0 1.42L4 11.3zm4.93-.62h4.63v1.5H7.87zm2.63 4.87h3.25c.41 0 .75-.34.75-.75V10.5H16v3.25c0 1.24-1 2.25-2.25 2.25H10.5zM2.25 16C1.01 16 0 15 0 13.75V10.5h1.5v3.25c0 .41.34.75.75.75H5.5V16z", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconSparkles({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-sparkles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-sparkles.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-sparkles.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,EAC3B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconSparkles({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M2.5.5V0h1v.5c0 1.1.9 2 2 2H6v1h-.5a2 2 0 0 0-2 2V6h-1v-.5a2 2 0 0 0-2-2H0v-1h.5a2 2 0 0 0 2-2m12 4V5h-1v-.5a1 1 0 0 0-1-1H12v-1h.5a1 1 0 0 0 1-1V1h1v.5a1 1 0 0 0 1 1h.5v1h-.5a1 1 0 0 0-1 1m-6-.5-.1.93A5 5 0 0 1 3.94 9.4L3 9.5v1l.93.1a5 5 0 0 1 4.48 4.47l.09.93h1l.1-.93a5 5 0 0 1 4.47-4.48l.93-.09v-1l-.93-.1A5 5 0 0 1 9.6 4.94L9.5 4z", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconTrash({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-trash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-trash.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-trash.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,EACxB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconTrash({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { clipRule: "evenodd", d: "M6.75 2.75a1.25 1.25 0 1 1 2.5 0V3h-2.5zM5.25 3v-.25a2.75 2.75 0 0 1 5.5 0V3H15v1.5h-1.12l-.7 9.2a2.5 2.5 0 0 1-2.5 2.3H5.32c-1.31 0-2.4-1-2.5-2.3l-.7-9.2H1V3h4.25m-.93 10.58-.7-9.08h8.76l-.7 9.08a1 1 0 0 1-1 .92H5.32a1 1 0 0 1-1-.92", fill: "currentColor", fillRule: "evenodd" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconUser({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-user.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-user.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,EACvB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconUser({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M9.42 9.25a6.3 6.3 0 0 1 5.76 3.69l.07.15v3.16h-14v-3.16l.07-.15a6.3 6.3 0 0 1 5.76-3.69zm-2.34 1.5a4.8 4.8 0 0 0-4.33 2.68v1.32h11v-1.32a4.8 4.8 0 0 0-4.33-2.68zM8.25 0c1.8 0 3.25 1.46 3.25 3.25v.5C11.5 5.55 10.04 7 8.25 7h-.5A3.25 3.25 0 0 1 4.5 3.75v-.5C4.5 1.45 5.96 0 7.75 0zm-.5 1.5C6.78 1.5 6 2.28 6 3.25v.5c0 .97.78 1.75 1.75 1.75h.5c.97 0 1.75-.78 1.75-1.75v-.5c0-.97-.78-1.75-1.75-1.75z", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconWorkflow({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-workflow.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-workflow.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,EAC3B,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconWorkflow({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "m5.75 7 .67.34-1.57 3.13c.54.3.9.87.9 1.53v2c0 .97-.78 1.75-1.75 1.75H2c-.97 0-1.75-.78-1.75-1.75v-2c0-.97.78-1.75 1.75-1.75h1.29l1.79-3.58zM14 10.25c.97 0 1.75.78 1.75 1.75v2c0 .97-.78 1.75-1.75 1.75h-2c-.88 0-1.6-.65-1.73-1.5H7v-1.5h3.25V12c0-.97.78-1.75 1.75-1.75zm-12 1.5a.25.25 0 0 0-.25.25v2c0 .14.11.25.25.25h2c.14 0 .25-.11.25-.25v-2a.25.25 0 0 0-.25-.25zm10 0a.25.25 0 0 0-.25.25v2q.02.23.25.25h2q.23-.02.25-.25v-2a.25.25 0 0 0-.25-.25zM9 .25c.97 0 1.75.78 1.75 1.75v2q-.02.69-.44 1.16l1.9 3.48-1.32.72-1.97-3.61H7c-.97 0-1.75-.78-1.75-1.75V2c0-.97.78-1.75 1.75-1.75zm-2 1.5a.25.25 0 0 0-.25.25v2c0 .14.11.25.25.25h2c.14 0 .25-.11.25-.25V2A.25.25 0 0 0 9 1.75z", fill: "currentColor" }) }));
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare function IconWrench({ size, className, }: {
2
+ size?: number;
3
+ className?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=icon-wrench.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-wrench.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/icon-wrench.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EACzB,IAAS,EACT,SAAS,GACV,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAkBA"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export function IconWrench({ size = 16, className, }) {
3
+ return (_jsx("svg", { "aria-hidden": "true", className: className, fill: "none", height: size, role: "img", viewBox: "0 0 16 16", width: size, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "m12.8 1.24.53.53.73-.73-.92-.47zM9.96 4.08l-.53-.53zM6.58 6.96l.53.53.36-.36-.2-.46zM1.5 12.04l.53.53zm0 2.5-.53.53zm2.5 0 .53.53zm5.1-5.1.28-.7-.46-.18-.35.35zm5.68-6.18.68-.34-.47-.93-.74.73zm-2.82 2.82-.53-.53zm-1.42 0 .53-.53zm-.58-.58-.53.53zM12.26.7 9.44 3.55l1.06 1.06 2.84-2.84zm-1.51.79q.94.01 1.7.41l.69-1.34A5 5 0 0 0 10.75 0zM7 5.25a3.75 3.75 0 0 1 3.75-3.75V0A5.25 5.25 0 0 0 5.5 5.25zm.28 1.42A4 4 0 0 1 7 5.25H5.5q0 1.06.39 1.99zm-1.23-.24L.97 11.5l1.06 1.06 5.08-5.08zM.97 11.5a2.5 2.5 0 0 0 0 3.56l1.06-1.06c-.4-.4-.4-1.04 0-1.44zm0 3.56c.98.98 2.58.98 3.56 0l-1.06-1.06c-.4.4-1.04.4-1.44 0zm3.56 0 5.1-5.1L8.57 8.9 3.47 14zM10.75 9q-.74-.01-1.37-.26l-.55 1.4q.9.35 1.92.36zm3.75-3.75A3.75 3.75 0 0 1 10.75 9v1.5c2.9 0 5.25-2.35 5.25-5.25zm-.39-1.66q.38.75.39 1.66H16q-.01-1.26-.54-2.33zM12.5 6.6l2.83-2.82-1.07-1.07-2.82 2.83zm-2.48 0c.69.69 1.8.69 2.48 0l-1.06-1.06c-.1.1-.26.1-.36 0zm-.58-.58.58.58 1.06-1.06-.58-.58zm0-2.48c-.69.69-.69 1.8 0 2.48l1.06-1.06a.25.25 0 0 1 0-.36z", fill: "currentColor" }) }));
4
+ }
@@ -2,9 +2,27 @@
2
2
  * Barrel fallback for @vercel/geistcn-assets/icons.
3
3
  * Add re-exports here as you migrate more icons.
4
4
  */
5
+ export { IconAcronymTs } from "./icon-acronym-ts";
6
+ export { IconAgents } from "./icon-agents";
5
7
  export { IconArrowUpRightSmall } from "./icon-arrow-up-right-small";
6
8
  export { IconCheck } from "./icon-check";
7
9
  export { IconChevronDownSmall } from "./icon-chevron-down-small";
10
+ export { IconClock } from "./icon-clock";
8
11
  export { IconCopy } from "./icon-copy";
12
+ export { IconFileText } from "./icon-file-text";
13
+ export { IconFolderOpen } from "./icon-folder-open";
14
+ export { IconLinked } from "./icon-linked";
15
+ export { IconLogs } from "./icon-logs";
16
+ export { IconMessage } from "./icon-message";
17
+ export { IconOpenai } from "./icon-openai";
18
+ export { IconPlusCircle } from "./icon-plus-circle";
19
+ export { IconRefreshCounterClockwise } from "./icon-refresh-counter-clockwise";
20
+ export { IconRobot } from "./icon-robot";
21
+ export { IconSandbox } from "./icon-sandbox";
9
22
  export { IconSlashForward } from "./icon-slash-forward";
23
+ export { IconSparkles } from "./icon-sparkles";
24
+ export { IconTrash } from "./icon-trash";
25
+ export { IconUser } from "./icon-user";
26
+ export { IconWorkflow } from "./icon-workflow";
27
+ export { IconWrench } from "./icon-wrench";
10
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/icons/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -3,8 +3,26 @@
3
3
  * Add re-exports here as you migrate more icons.
4
4
  */
5
5
  // biome-ignore lint/performance/noBarrelFile: ok
6
+ export { IconAcronymTs } from "./icon-acronym-ts";
7
+ export { IconAgents } from "./icon-agents";
6
8
  export { IconArrowUpRightSmall } from "./icon-arrow-up-right-small";
7
9
  export { IconCheck } from "./icon-check";
8
10
  export { IconChevronDownSmall } from "./icon-chevron-down-small";
11
+ export { IconClock } from "./icon-clock";
9
12
  export { IconCopy } from "./icon-copy";
13
+ export { IconFileText } from "./icon-file-text";
14
+ export { IconFolderOpen } from "./icon-folder-open";
15
+ export { IconLinked } from "./icon-linked";
16
+ export { IconLogs } from "./icon-logs";
17
+ export { IconMessage } from "./icon-message";
18
+ export { IconOpenai } from "./icon-openai";
19
+ export { IconPlusCircle } from "./icon-plus-circle";
20
+ export { IconRefreshCounterClockwise } from "./icon-refresh-counter-clockwise";
21
+ export { IconRobot } from "./icon-robot";
22
+ export { IconSandbox } from "./icon-sandbox";
10
23
  export { IconSlashForward } from "./icon-slash-forward";
24
+ export { IconSparkles } from "./icon-sparkles";
25
+ export { IconTrash } from "./icon-trash";
26
+ export { IconUser } from "./icon-user";
27
+ export { IconWorkflow } from "./icon-workflow";
28
+ export { IconWrench } from "./icon-wrench";
package/dist/cli/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import{program as T}from"commander";import{access as ce,copyFile as le}from"fs/promises";import{join as pe}from"path";import{cancel as de,intro as ge,isCancel as ue,log as fe,outro as me,spinner as he,text as we}from"@clack/prompts";import{spawn as te}from"child_process";import{readFileSync as se}from"fs";import{cp as ne,readFile as ae,rename as re,writeFile as ie}from"fs/promises";import{join as $}from"path";import{fileURLToPath as oe}from"url";var g="@vercel/geistdocs",m=(e,t=[],s={})=>new Promise((n,a)=>{let r=te(e,t,{stdio:"inherit",...s});r.on("error",a),r.on("close",i=>{if(i===0){n();return}a(new Error(`Command failed with exit code ${i}: ${[e,...t].join(" ")}`))})}),A=["dependencies","devDependencies","optionalDependencies","peerDependencies"],_=()=>JSON.parse(se(new URL("../../package.json",import.meta.url),"utf8")).version,P=async e=>{let t=$(e,"package.json"),s=await ae(t,"utf8");return JSON.parse(s)},x=async(e,t)=>{let s=$(e,"package.json");await ie(s,`${JSON.stringify(t,null,2)}
3
- `,"utf8")},R=(e,t)=>{for(let s of A){let n=e[s];if(n&&t in n)return n[t]}},V=(e,t)=>!!R(e,t),b=(e,t,s)=>{let n=!1;for(let a of A){let r=e[a];r&&t in r&&(r[t]=s,n=!0)}return n},j=()=>oe(new URL("../../template",import.meta.url)),F=async e=>{await ne(j(),e,{recursive:!0});let t=$(e,".gitignore"),s=$(e,"_gitignore");try{await re(s,t)}catch{}};var ye=async e=>{await F(e)},Pe=async e=>{try{return await ce(e),!0}catch{return!1}},ve=async()=>{await Pe(".env.example")&&await le(".env.example",".env.local")},Te=async e=>{let t=await P(e),s=_();return b(t,g,s)?(await x(e,t),!0):!1},ke=async e=>{await m("pnpm",["install"],{cwd:e,env:process.env,stdio:"inherit"})},$e=async e=>{await m("git",["init"],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["add","."],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["commit","-m","\u2728 Initial commit"],{cwd:e,env:process.env,stdio:"inherit"})},xe=async()=>{let e=await we({message:"What is your project named?",placeholder:"my-app",validate(t){if(t.length===0)return"Please enter a project name."}});return ue(e)&&(de("Operation cancelled."),process.exit(0)),e.toString()},G=async e=>{try{ge("Let's start a Geistdocs project!");let t=process.cwd(),s=e.name||await xe(),n=he(),a=pe(t,s);n.start("Copying bundled template..."),await ye(s),n.message("Setting up environment variables..."),process.chdir(a),await ve(),n.message("Rewriting package dependency versions..."),await Te(a),n.message("Installing dependencies..."),await ke(a),e.disableGit||(n.message("Initializing Git repository..."),await $e(a)),n.stop("Project initialized successfully!"),me("Run `pnpm dev` to start the development server.")}catch(t){let s=t instanceof Error?t.message:`Failed to initialize project: ${t}`;fe.error(s),process.exit(1)}};import{readFileSync as be,writeFileSync as Fe}from"fs";import{mkdir as De,readFile as N,writeFile as Se}from"fs/promises";import{dirname as Ce,extname as Re,relative as M,resolve as S}from"path";import{intro as je,isCancel as Ee,log as h,multiselect as Ne,outro as D,spinner as Ue}from"@clack/prompts";import{glob as Oe}from"glob";import{Node as v,Project as Ie,SyntaxKind as Je}from"ts-morph";var Le="geistdocs.tsx",Ae="content/docs/**/*.mdx",U=".translation-cache.json",E=8,B=()=>({version:1,entries:{}}),_e=async e=>{let t=await N(e),{createHash:s}=await import("crypto");return s("sha256").update(t).digest("hex")},Ve=e=>{let t=S(process.cwd(),e);return be(t,"utf8")},z=e=>v.isObjectLiteralExpression(e)?e.getProperties().flatMap(t=>{if(v.isPropertyAssignment(t)){let s=t.getNameNode();if(v.isIdentifier(s)||v.isStringLiteral(s))return[s.getText().replaceAll(/['"]/g,"")]}return[]}).filter(Boolean):[],Ge=e=>{try{let t=new Ie({compilerOptions:{allowJs:!0,jsx:4,module:99,target:10},skipAddingFilesFromTsConfig:!0,useInMemoryFileSystem:!0}),s=Ve(e),r=t.createSourceFile(e,s,{overwrite:!0}).getVariableDeclarations().find(l=>l.getName()==="translations")?.getInitializer();if(!r)return[];if(v.isObjectLiteralExpression(r))return z(r);let i=r.getFirstDescendantByKind(Je.ObjectLiteralExpression);return i?z(i):[]}catch(t){let s=t instanceof Error?t.message:`${t}`;return h.warn(`Failed to read locales from ${e}: ${s}`),[]}},Be=async()=>{let e=await Ne({message:"Which locales should be translated?",options:[{value:"cn",label:"Chinese (cn)"},{value:"jp",label:"Japanese (jp)"},{value:"es",label:"Spanish (es)"},{value:"fr",label:"French (fr)"},{value:"de",label:"German (de)"}],required:!0});return Ee(e)&&(D("Translation cancelled"),process.exit(0)),e},ze=async e=>(await Oe(e,{cwd:process.cwd(),absolute:!0,nodir:!0})).sort(),He=async()=>{let e=S(process.cwd(),U);try{let t=await N(e,"utf8"),s=JSON.parse(t);return s.version!==1||!s.entries?B():{version:1,entries:s.entries}}catch{return B()}},H=e=>{let t=S(process.cwd(),U),s=JSON.stringify(e,null,2);Fe(t,s,"utf8")},Me=async e=>{let t=await Promise.all(e.map(async s=>[s,await _e(s)]));return Object.fromEntries(t)},Ke=(e,t)=>{let s=Re(e);return`${e.slice(0,-s.length)}.${t}${s}`},K=(e,t)=>`${M(process.cwd(),e)}::${t}`,qe=(e,t,s,n,a=!1)=>{let r=[],i=0;for(let l of t){let c=s[l];for(let o of e){let d=Ke(l,o),u=K(l,o),f=n.entries[u];if(!a&&f?.hash===c){i+=1;continue}r.push({locale:o,sourceFile:l,sourceHash:c,targetFile:d})}}return{tasks:r,skippedCount:i}},Xe=async e=>{await De(Ce(e),{recursive:!0})},We=async(e,t,s)=>{let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t,locale:s})});if(!n.ok){let r=await n.text();throw new Error(`API request failed (${n.status}): ${r}`)}let a=await n.json();if(!a.translation)throw new Error("API response did not include a translation");return a.translation},Ye=async(e,t,s)=>{let n=await N(e.sourceFile,"utf8"),a=await We(t,n,e.locale);await Xe(e.targetFile),await Se(e.targetFile,a,"utf8"),s.entries[K(e.sourceFile,e.locale)]={hash:e.sourceHash,updatedAt:new Date().toISOString()}},q=async(e,t)=>{je("Translate MDX content");let s=e??Ae,n=t.url||process.env.GEISTDOCS_TRANSLATE_URL||"https://geistdocs.com/translate",a=Ge(t.config??Le),r=await ze(s);r.length===0&&(h.error(`No MDX files found matching pattern: ${s}`),D("Translation cancelled"),process.exit(1)),h.info(`Found ${r.length} MDX file(s) matching pattern`),a.length===0&&(a=await Be());let i=S(process.cwd(),U),l=await He();await H(l),h.info(`Using cache: ${i}`);let c=await Me(r),{tasks:o,skippedCount:d}=qe(a,r,c,l,t.force);if(o.length===0){h.success("All translations are up to date!"),D(`Skipped ${d} file(s) (unchanged)`);return}let u=[];for(let y=0;y<o.length;y+=E)u.push(o.slice(y,y+E));h.info(`Processing ${o.length} translation(s) in ${u.length} batch(es) of up to ${E}`),d>0&&h.info(`Skipped ${d} translation(s) (unchanged)`);let f=Ue();f.start("Translating content...");let k=0;for(let y of u)await Promise.all(y.map(async L=>{await Ye(L,n,l),k+=1,f.message(`Translated ${k}/${o.length}: ${M(process.cwd(),L.targetFile)}`)})),await H(l);f.stop("Translation complete!"),D(`Created/updated ${o.length} file(s)`)};import{access as Ze,copyFile as Qe,mkdir as Z,rm as J}from"fs/promises";import{dirname as et,join as w}from"path";import{intro as tt,log as p,outro as C,spinner as Q}from"@clack/prompts";import{glob as st}from"glob";var nt=["**/*"],at=["content/docs/**"],O=".geistdocs-tmp",rt=async(e,t)=>{let s=w(e,t);await J(s,{recursive:!0,force:!0}),await Z(s,{recursive:!0})},I=async e=>await J(e,{recursive:!0,force:!0}),X=async(e,t,s)=>(await st(e,{cwd:s,nodir:!0,dot:!0,ignore:[".git/**",...t]})).sort(),it=async e=>{try{return await Ze(e),!0}catch{return!1}},ot=async(e,t,s)=>{let n=w(t,e),a=w(s,e);return await it(n)?(await Qe(n,a),{success:!0}):{success:!1,error:`Source file not found: ${n}`}},ct=async(e,t)=>{let s=w(t,e);return await J(s,{force:!0}),{success:!0}},W=20,Y=async(e,t,s)=>{let n=[];for(let a=0;a<e.length;a+=s){let r=e.slice(a,a+s),i=await Promise.all(r.map(t));n.push(...i)}return n},lt=async(e,t,s,n,a)=>{let r={success:[],deleted:[],failed:[]},i=[...new Set(e.map(c=>et(w(n,c))))];a.message(`Creating ${i.length} directories...`),await Promise.all(i.map(c=>Z(c,{recursive:!0}))),a.message(`Updating ${e.length} files...`);let l=await Y(e,async c=>{let o=await ot(c,s,n);return{file:c,...o}},W);for(let{file:c,success:o,error:d}of l)o?r.success.push(c):r.failed.push({file:c,error:d??"Unknown error"});if(t.length>0){a.message(`Deleting ${t.length} files...`);let c=await Y(t,async o=>{try{return await ct(o,n),{file:o,success:!0}}catch(d){let u=d instanceof Error?d.message:`${d}`;return{file:o,success:!1,error:u}}},W);for(let o of c)o.success?r.deleted.push(o.file):r.failed.push({file:o.file,error:o.error})}return r},pt=e=>{if(e.success.length>0){p.success(`Successfully updated ${e.success.length} files:`);for(let t of e.success)p.info(` \u2713 ${t}`)}if(e.deleted.length>0){p.success(`Deleted ${e.deleted.length} files:`);for(let t of e.deleted)p.info(` \u{1F5D1} ${t}`)}if(e.failed.length>0){p.warn(`Failed to update ${e.failed.length} files:`);for(let{file:t,error:s}of e.failed)p.error(` \u2717 ${t}: ${s}`)}},dt=e=>e.includes("canary")?"canary":"latest",gt=async e=>{let t=await fetch(`https://registry.npmjs.org/${encodeURIComponent(g)}`);if(!t.ok)throw new Error(`Failed to resolve ${g}@${e}`);let n=(await t.json())["dist-tags"]?.[e];if(!n)throw new Error(`Could not find dist-tag ${e} for ${g}`);return n},ut=async e=>{let t=await P(e),s=R(t,g);if(!s)return{currentVersion:s,nextVersion:void 0,updated:!1};let n=dt(s),a=await gt(n);return s===a?{currentVersion:s,nextVersion:a,updateTag:n,updated:!1}:(b(t,g,a),await x(e,t),{currentVersion:s,nextVersion:a,updateTag:n,updated:!0})},ft=async(e,t,s)=>{let n=await P(e);if(!V(n,g))return!1;t&&t.length>0&&p.warn("Ignoring file patterns for a package-based site. This update will bump the package version instead."),s?.sync&&p.warn("Ignoring --sync for a package-based site. Runtime updates now come from the package version.");let{currentVersion:a,nextVersion:r,updateTag:i,updated:l}=await ut(e);if(!l)return p.success(a?`@vercel/geistdocs is already at ${r} (${i}).`:"No package version update was needed."),C("Package-based site is already up to date."),!0;p.info(`Bumping ${g} from ${a} to ${r} (${i})`);let c=Q();return c.start("Installing updated package version..."),await m("pnpm",["install"],{cwd:e}),c.stop("Package update complete!"),C("Please review and test the upgraded package version."),!0},mt=async(e,t,s,n,a)=>{let r=w(e,O),i=Q(),l=a?.sync?r:t;i.start("Preparing template snapshot..."),a?.sync&&(await rt(e,O),await F(r)),i.message("Scanning for files...");let c=await X(s,n,l),o=[];if(a?.sync){i.message("Comparing with local files...");let u=await X(s,n,e),f=new Set(c);o=u.filter(k=>!f.has(k))}if(i.stop(`Found ${c.length} files to update`),c.length===0&&o.length===0){p.warn("No files matched the patterns. Nothing to update."),a?.sync&&await I(r),C("Update cancelled.");return}p.info(`Patterns: ${s.length}`),p.info(`Files to update: ${c.length}`),a?.sync&&p.info(`Files to delete: ${o.length}`),i.start("Updating files...");let d=await lt(c,o,l,e,i);a?.sync&&(i.message("Cleaning up..."),await I(r)),i.stop("Update complete!"),pt(d),C("Please review and test the changes carefully.")},ee=async(e,t)=>{let s=process.cwd(),n=j(),a=e&&e.length>0?e:nt,r=e&&e.length>0?[]:at;try{if(tt("Let's update your Geistdocs project!"),await ft(s,e,t))return;p.info("Template source: bundled package snapshot"),e&&e.length>0&&p.info(`Updating specific files: ${e.join(", ")}`),t?.sync&&p.info("Sync mode enabled: will delete files removed from template"),await mt(s,n,a,r,t)}catch(i){let l=i instanceof Error?i.message:`${i}`;try{await I(w(s,O))}catch{}p.error(`Failed to update project: ${l}`),process.exit(1)}};T.name("geistdocs").description("CLI for Geistdocs projects").version("1.8.0","-v, --version","Output the current version");T.command("init").description("Initialize a new Geistdocs project").option("--name <name>","Name of the project").option("--disable-git","Disable git initialization").action(G);T.command("update [files...]").description("Update a Geistdocs project (optionally specify files/patterns to update)").option("--sync","Delete local files that no longer exist in the template").action(ee);T.command("translate [pattern]").description("Translate MDX file(s) to one or more locales (default: content/docs/**/*.mdx)").option("--config <path>","Path to config file to load locales from (defaults to geistdocs.tsx)").option("--url <url>","Custom translation API URL (defaults to GEISTDOCS_TRANSLATE_URL or https://geistdocs.com/translate)").option("--force","Force re-translation of all files, ignoring cache").action(q);T.parse(process.argv);
3
+ `,"utf8")},R=(e,t)=>{for(let s of A){let n=e[s];if(n&&t in n)return n[t]}},V=(e,t)=>!!R(e,t),b=(e,t,s)=>{let n=!1;for(let a of A){let r=e[a];r&&t in r&&(r[t]=s,n=!0)}return n},j=()=>oe(new URL("../../template",import.meta.url)),F=async e=>{await ne(j(),e,{recursive:!0});let t=$(e,".gitignore"),s=$(e,"_gitignore");try{await re(s,t)}catch{}};var ye=async e=>{await F(e)},Pe=async e=>{try{return await ce(e),!0}catch{return!1}},ve=async()=>{await Pe(".env.example")&&await le(".env.example",".env.local")},Te=async e=>{let t=await P(e),s=_();return b(t,g,s)?(await x(e,t),!0):!1},ke=async e=>{await m("pnpm",["install"],{cwd:e,env:process.env,stdio:"inherit"})},$e=async e=>{await m("git",["init"],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["add","."],{cwd:e,env:process.env,stdio:"inherit"}),await m("git",["commit","-m","\u2728 Initial commit"],{cwd:e,env:process.env,stdio:"inherit"})},xe=async()=>{let e=await we({message:"What is your project named?",placeholder:"my-app",validate(t){if(t.length===0)return"Please enter a project name."}});return ue(e)&&(de("Operation cancelled."),process.exit(0)),e.toString()},G=async e=>{try{ge("Let's start a Geistdocs project!");let t=process.cwd(),s=e.name||await xe(),n=he(),a=pe(t,s);n.start("Copying bundled template..."),await ye(s),n.message("Setting up environment variables..."),process.chdir(a),await ve(),n.message("Rewriting package dependency versions..."),await Te(a),n.message("Installing dependencies..."),await ke(a),e.disableGit||(n.message("Initializing Git repository..."),await $e(a)),n.stop("Project initialized successfully!"),me("Run `pnpm dev` to start the development server.")}catch(t){let s=t instanceof Error?t.message:`Failed to initialize project: ${t}`;fe.error(s),process.exit(1)}};import{readFileSync as be,writeFileSync as Fe}from"fs";import{mkdir as De,readFile as N,writeFile as Se}from"fs/promises";import{dirname as Ce,extname as Re,relative as M,resolve as S}from"path";import{intro as je,isCancel as Ee,log as h,multiselect as Ne,outro as D,spinner as Ue}from"@clack/prompts";import{glob as Oe}from"glob";import{Node as v,Project as Ie,SyntaxKind as Je}from"ts-morph";var Le="geistdocs.tsx",Ae="content/docs/**/*.mdx",U=".translation-cache.json",E=8,B=()=>({version:1,entries:{}}),_e=async e=>{let t=await N(e),{createHash:s}=await import("crypto");return s("sha256").update(t).digest("hex")},Ve=e=>{let t=S(process.cwd(),e);return be(t,"utf8")},z=e=>v.isObjectLiteralExpression(e)?e.getProperties().flatMap(t=>{if(v.isPropertyAssignment(t)){let s=t.getNameNode();if(v.isIdentifier(s)||v.isStringLiteral(s))return[s.getText().replaceAll(/['"]/g,"")]}return[]}).filter(Boolean):[],Ge=e=>{try{let t=new Ie({compilerOptions:{allowJs:!0,jsx:4,module:99,target:10},skipAddingFilesFromTsConfig:!0,useInMemoryFileSystem:!0}),s=Ve(e),r=t.createSourceFile(e,s,{overwrite:!0}).getVariableDeclarations().find(l=>l.getName()==="translations")?.getInitializer();if(!r)return[];if(v.isObjectLiteralExpression(r))return z(r);let i=r.getFirstDescendantByKind(Je.ObjectLiteralExpression);return i?z(i):[]}catch(t){let s=t instanceof Error?t.message:`${t}`;return h.warn(`Failed to read locales from ${e}: ${s}`),[]}},Be=async()=>{let e=await Ne({message:"Which locales should be translated?",options:[{value:"cn",label:"Chinese (cn)"},{value:"jp",label:"Japanese (jp)"},{value:"es",label:"Spanish (es)"},{value:"fr",label:"French (fr)"},{value:"de",label:"German (de)"}],required:!0});return Ee(e)&&(D("Translation cancelled"),process.exit(0)),e},ze=async e=>(await Oe(e,{cwd:process.cwd(),absolute:!0,nodir:!0})).sort(),He=async()=>{let e=S(process.cwd(),U);try{let t=await N(e,"utf8"),s=JSON.parse(t);return s.version!==1||!s.entries?B():{version:1,entries:s.entries}}catch{return B()}},H=e=>{let t=S(process.cwd(),U),s=JSON.stringify(e,null,2);Fe(t,s,"utf8")},Me=async e=>{let t=await Promise.all(e.map(async s=>[s,await _e(s)]));return Object.fromEntries(t)},Ke=(e,t)=>{let s=Re(e);return`${e.slice(0,-s.length)}.${t}${s}`},K=(e,t)=>`${M(process.cwd(),e)}::${t}`,qe=(e,t,s,n,a=!1)=>{let r=[],i=0;for(let l of t){let c=s[l];for(let o of e){let d=Ke(l,o),u=K(l,o),f=n.entries[u];if(!a&&f?.hash===c){i+=1;continue}r.push({locale:o,sourceFile:l,sourceHash:c,targetFile:d})}}return{tasks:r,skippedCount:i}},Xe=async e=>{await De(Ce(e),{recursive:!0})},We=async(e,t,s)=>{let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t,locale:s})});if(!n.ok){let r=await n.text();throw new Error(`API request failed (${n.status}): ${r}`)}let a=await n.json();if(!a.translation)throw new Error("API response did not include a translation");return a.translation},Ye=async(e,t,s)=>{let n=await N(e.sourceFile,"utf8"),a=await We(t,n,e.locale);await Xe(e.targetFile),await Se(e.targetFile,a,"utf8"),s.entries[K(e.sourceFile,e.locale)]={hash:e.sourceHash,updatedAt:new Date().toISOString()}},q=async(e,t)=>{je("Translate MDX content");let s=e??Ae,n=t.url||process.env.GEISTDOCS_TRANSLATE_URL||"https://geistdocs.com/translate",a=Ge(t.config??Le),r=await ze(s);r.length===0&&(h.error(`No MDX files found matching pattern: ${s}`),D("Translation cancelled"),process.exit(1)),h.info(`Found ${r.length} MDX file(s) matching pattern`),a.length===0&&(a=await Be());let i=S(process.cwd(),U),l=await He();await H(l),h.info(`Using cache: ${i}`);let c=await Me(r),{tasks:o,skippedCount:d}=qe(a,r,c,l,t.force);if(o.length===0){h.success("All translations are up to date!"),D(`Skipped ${d} file(s) (unchanged)`);return}let u=[];for(let y=0;y<o.length;y+=E)u.push(o.slice(y,y+E));h.info(`Processing ${o.length} translation(s) in ${u.length} batch(es) of up to ${E}`),d>0&&h.info(`Skipped ${d} translation(s) (unchanged)`);let f=Ue();f.start("Translating content...");let k=0;for(let y of u)await Promise.all(y.map(async L=>{await Ye(L,n,l),k+=1,f.message(`Translated ${k}/${o.length}: ${M(process.cwd(),L.targetFile)}`)})),await H(l);f.stop("Translation complete!"),D(`Created/updated ${o.length} file(s)`)};import{access as Ze,copyFile as Qe,mkdir as Z,rm as J}from"fs/promises";import{dirname as et,join as w}from"path";import{intro as tt,log as p,outro as C,spinner as Q}from"@clack/prompts";import{glob as st}from"glob";var nt=["**/*"],at=["content/docs/**"],O=".geistdocs-tmp",rt=async(e,t)=>{let s=w(e,t);await J(s,{recursive:!0,force:!0}),await Z(s,{recursive:!0})},I=async e=>await J(e,{recursive:!0,force:!0}),X=async(e,t,s)=>(await st(e,{cwd:s,nodir:!0,dot:!0,ignore:[".git/**",...t]})).sort(),it=async e=>{try{return await Ze(e),!0}catch{return!1}},ot=async(e,t,s)=>{let n=w(t,e),a=w(s,e);return await it(n)?(await Qe(n,a),{success:!0}):{success:!1,error:`Source file not found: ${n}`}},ct=async(e,t)=>{let s=w(t,e);return await J(s,{force:!0}),{success:!0}},W=20,Y=async(e,t,s)=>{let n=[];for(let a=0;a<e.length;a+=s){let r=e.slice(a,a+s),i=await Promise.all(r.map(t));n.push(...i)}return n},lt=async(e,t,s,n,a)=>{let r={success:[],deleted:[],failed:[]},i=[...new Set(e.map(c=>et(w(n,c))))];a.message(`Creating ${i.length} directories...`),await Promise.all(i.map(c=>Z(c,{recursive:!0}))),a.message(`Updating ${e.length} files...`);let l=await Y(e,async c=>{let o=await ot(c,s,n);return{file:c,...o}},W);for(let{file:c,success:o,error:d}of l)o?r.success.push(c):r.failed.push({file:c,error:d??"Unknown error"});if(t.length>0){a.message(`Deleting ${t.length} files...`);let c=await Y(t,async o=>{try{return await ct(o,n),{file:o,success:!0}}catch(d){let u=d instanceof Error?d.message:`${d}`;return{file:o,success:!1,error:u}}},W);for(let o of c)o.success?r.deleted.push(o.file):r.failed.push({file:o.file,error:o.error})}return r},pt=e=>{if(e.success.length>0){p.success(`Successfully updated ${e.success.length} files:`);for(let t of e.success)p.info(` \u2713 ${t}`)}if(e.deleted.length>0){p.success(`Deleted ${e.deleted.length} files:`);for(let t of e.deleted)p.info(` \u{1F5D1} ${t}`)}if(e.failed.length>0){p.warn(`Failed to update ${e.failed.length} files:`);for(let{file:t,error:s}of e.failed)p.error(` \u2717 ${t}: ${s}`)}},dt=e=>e.includes("canary")?"canary":"latest",gt=async e=>{let t=await fetch(`https://registry.npmjs.org/${encodeURIComponent(g)}`);if(!t.ok)throw new Error(`Failed to resolve ${g}@${e}`);let n=(await t.json())["dist-tags"]?.[e];if(!n)throw new Error(`Could not find dist-tag ${e} for ${g}`);return n},ut=async e=>{let t=await P(e),s=R(t,g);if(!s)return{currentVersion:s,nextVersion:void 0,updated:!1};let n=dt(s),a=await gt(n);return s===a?{currentVersion:s,nextVersion:a,updateTag:n,updated:!1}:(b(t,g,a),await x(e,t),{currentVersion:s,nextVersion:a,updateTag:n,updated:!0})},ft=async(e,t,s)=>{let n=await P(e);if(!V(n,g))return!1;t&&t.length>0&&p.warn("Ignoring file patterns for a package-based site. This update will bump the package version instead."),s?.sync&&p.warn("Ignoring --sync for a package-based site. Runtime updates now come from the package version.");let{currentVersion:a,nextVersion:r,updateTag:i,updated:l}=await ut(e);if(!l)return p.success(a?`@vercel/geistdocs is already at ${r} (${i}).`:"No package version update was needed."),C("Package-based site is already up to date."),!0;p.info(`Bumping ${g} from ${a} to ${r} (${i})`);let c=Q();return c.start("Installing updated package version..."),await m("pnpm",["install"],{cwd:e}),c.stop("Package update complete!"),C("Please review and test the upgraded package version."),!0},mt=async(e,t,s,n,a)=>{let r=w(e,O),i=Q(),l=a?.sync?r:t;i.start("Preparing template snapshot..."),a?.sync&&(await rt(e,O),await F(r)),i.message("Scanning for files...");let c=await X(s,n,l),o=[];if(a?.sync){i.message("Comparing with local files...");let u=await X(s,n,e),f=new Set(c);o=u.filter(k=>!f.has(k))}if(i.stop(`Found ${c.length} files to update`),c.length===0&&o.length===0){p.warn("No files matched the patterns. Nothing to update."),a?.sync&&await I(r),C("Update cancelled.");return}p.info(`Patterns: ${s.length}`),p.info(`Files to update: ${c.length}`),a?.sync&&p.info(`Files to delete: ${o.length}`),i.start("Updating files...");let d=await lt(c,o,l,e,i);a?.sync&&(i.message("Cleaning up..."),await I(r)),i.stop("Update complete!"),pt(d),C("Please review and test the changes carefully.")},ee=async(e,t)=>{let s=process.cwd(),n=j(),a=e&&e.length>0?e:nt,r=e&&e.length>0?[]:at;try{if(tt("Let's update your Geistdocs project!"),await ft(s,e,t))return;p.info("Template source: bundled package snapshot"),e&&e.length>0&&p.info(`Updating specific files: ${e.join(", ")}`),t?.sync&&p.info("Sync mode enabled: will delete files removed from template"),await mt(s,n,a,r,t)}catch(i){let l=i instanceof Error?i.message:`${i}`;try{await I(w(s,O))}catch{}p.error(`Failed to update project: ${l}`),process.exit(1)}};T.name("geistdocs").description("CLI for Geistdocs projects").version("1.8.1","-v, --version","Output the current version");T.command("init").description("Initialize a new Geistdocs project").option("--name <name>","Name of the project").option("--disable-git","Disable git initialization").action(G);T.command("update [files...]").description("Update a Geistdocs project (optionally specify files/patterns to update)").option("--sync","Delete local files that no longer exist in the template").action(ee);T.command("translate [pattern]").description("Translate MDX file(s) to one or more locales (default: content/docs/**/*.mdx)").option("--config <path>","Path to config file to load locales from (defaults to geistdocs.tsx)").option("--url <url>","Custom translation API URL (defaults to GEISTDOCS_TRANSLATE_URL or https://geistdocs.com/translate)").option("--force","Force re-translation of all files, ignoring cache").action(q);T.parse(process.argv);
@@ -0,0 +1,11 @@
1
+ import { Switch as SwitchPrimitive } from "radix-ui";
2
+ import type * as React from "react";
3
+ /**
4
+ * Toggle switch built on the radix-ui `Switch` primitive, styled with geist
5
+ * gray tokens. Supports a `sm` and `default` size.
6
+ */
7
+ declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
8
+ size?: "sm" | "default";
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export { Switch };
11
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC;;;GAGG;AACH,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,2CAiBA;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Switch as SwitchPrimitive } from "radix-ui";
4
+ import { cn } from "../internal/cn";
5
+ /**
6
+ * Toggle switch built on the radix-ui `Switch` primitive, styled with geist
7
+ * gray tokens. Supports a `sm` and `default` size.
8
+ */
9
+ function Switch({ className, size = "default", ...props }) {
10
+ return (_jsx(SwitchPrimitive.Root, { className: cn("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-gray-600 focus-visible:ring-[3px] focus-visible:ring-gray-600/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=sm]:h-3.5 data-[size=default]:w-8 data-[size=sm]:w-6 data-[state=checked]:bg-gray-1000 data-[state=unchecked]:bg-gray-500 dark:data-[state=unchecked]:bg-gray-alpha-500/80", className), "data-size": size, "data-slot": "switch", ...props, children: _jsx(SwitchPrimitive.Thumb, { className: "pointer-events-none block rounded-full bg-background-100 ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 dark:data-[state=checked]:bg-background-100 dark:data-[state=unchecked]:bg-gray-1000", "data-slot": "switch-thumb" }) }));
11
+ }
12
+ export { Switch };
package/docs/agents.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Geistdocs Package Docs
2
2
 
3
- These docs are bundled with `@vercel/geistdocs` 1.8.0 so agents can understand the installed package without web access.
3
+ These docs are bundled with `@vercel/geistdocs` 1.8.1 so agents can understand the installed package without web access.
4
4
  They are generated from `apps/template/content/docs` during the package build.
5
5
 
6
6
  ## How to use these files
package/docs/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # Geistdocs Package Documentation
2
2
 
3
- These docs are bundled with `@vercel/geistdocs` 1.8.0.
3
+ These docs are bundled with `@vercel/geistdocs` 1.8.1.
4
4
  They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
5
5
 
6
6
  ## Documentation Index
@@ -190,5 +190,5 @@
190
190
  }
191
191
  ],
192
192
  "source": "apps/template/content/docs",
193
- "version": "1.8.0"
193
+ "version": "1.8.1"
194
194
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vercel/geistdocs",
3
3
  "description": "Runtime and CLI for Geistdocs projects.",
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/vercel/geistdocs",
@@ -211,6 +211,10 @@
211
211
  "types": "./dist/components/spinner.d.ts",
212
212
  "default": "./dist/components/spinner.js"
213
213
  },
214
+ "./components/switch": {
215
+ "types": "./dist/components/switch.d.ts",
216
+ "default": "./dist/components/switch.js"
217
+ },
214
218
  "./components/textarea": {
215
219
  "types": "./dist/components/textarea.d.ts",
216
220
  "default": "./dist/components/textarea.js"
@@ -18,7 +18,7 @@
18
18
  "@streamdown/code": "^1.0.1",
19
19
  "@vercel/agent-readability": "^0.2.1",
20
20
  "@vercel/analytics": "^1.6.1",
21
- "@vercel/geistdocs": "1.8.0",
21
+ "@vercel/geistdocs": "1.8.1",
22
22
  "@vercel/speed-insights": "^1.3.1",
23
23
  "ai": "^6.0.132",
24
24
  "class-variance-authority": "^0.7.1",