theokit 0.2.2 → 0.2.4

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 (115) hide show
  1. package/LICENSE +201 -0
  2. package/dist/{actions-virtual-module-E6PU47GV.js → actions-virtual-module-HWNTIEPI.js} +40 -6
  3. package/dist/actions-virtual-module-HWNTIEPI.js.map +1 -0
  4. package/dist/{actions-virtual-module-E7IELVHL.js → actions-virtual-module-SEIPACG5.js} +40 -6
  5. package/dist/actions-virtual-module-SEIPACG5.js.map +1 -0
  6. package/dist/add-2ZFFGGE4.js +0 -0
  7. package/dist/{agent-events-lSIS9uYs.d.ts → agent-events-B3KNV9ER.d.ts} +1 -1
  8. package/dist/{app-typed-client-YIBP6JWH.js → app-typed-client-6GC6VWXS.js} +11 -19
  9. package/dist/app-typed-client-6GC6VWXS.js.map +1 -0
  10. package/dist/{app-typed-client-RZMVWHJ3.js → app-typed-client-US2ZXBEC.js} +10 -18
  11. package/dist/app-typed-client-US2ZXBEC.js.map +1 -0
  12. package/dist/aws-lambda-XYCGZH3I.js +0 -0
  13. package/dist/broadcast-QOQGUNNK.js +0 -0
  14. package/dist/{build-NCGIV4LL.js → build-MREW6MVS.js} +7 -7
  15. package/dist/{build-NCGIV4LL.js.map → build-MREW6MVS.js.map} +1 -1
  16. package/dist/build-request-body-preview-II2235E6.js +0 -0
  17. package/dist/bun-K73TQEWC.js +0 -0
  18. package/dist/check-PZR67OY5.js +0 -0
  19. package/dist/chunk-5ODOE6EF.js +0 -0
  20. package/dist/{chunk-MOT42NAH.js → chunk-5OFPQK6N.js} +18 -3
  21. package/dist/chunk-5OFPQK6N.js.map +1 -0
  22. package/dist/{chunk-M6MYZSD2.js → chunk-5OKZY2VL.js} +29 -29
  23. package/dist/{chunk-M6MYZSD2.js.map → chunk-5OKZY2VL.js.map} +1 -1
  24. package/dist/{chunk-M23FP2AS.js → chunk-64JI5LTO.js} +1 -1
  25. package/dist/{chunk-M23FP2AS.js.map → chunk-64JI5LTO.js.map} +1 -1
  26. package/dist/{chunk-7DHGV77J.js → chunk-7TOMTMHT.js} +18 -3
  27. package/dist/chunk-7TOMTMHT.js.map +1 -0
  28. package/dist/{chunk-SEVYARIU.js → chunk-BE2LKDI7.js} +3 -3
  29. package/dist/{chunk-OJHO2X7C.js → chunk-CZM6WWWS.js} +1 -1
  30. package/dist/{chunk-OJHO2X7C.js.map → chunk-CZM6WWWS.js.map} +1 -1
  31. package/dist/chunk-F3TG5FJV.js +0 -0
  32. package/dist/chunk-KT3MWNZG.js +0 -0
  33. package/dist/chunk-O7335ZGH.js +0 -0
  34. package/dist/{chunk-QLGES2HC.js → chunk-SNDZQ64K.js} +2 -2
  35. package/dist/{chunk-C27AZN46.js → chunk-TPCT3MXV.js} +1 -1
  36. package/dist/{chunk-C27AZN46.js.map → chunk-TPCT3MXV.js.map} +1 -1
  37. package/dist/chunk-WZ7CPVQB.js +0 -0
  38. package/dist/{chunk-EXJWO2HB.js → chunk-X2OLD264.js} +29 -29
  39. package/dist/{chunk-EXJWO2HB.js.map → chunk-X2OLD264.js.map} +1 -1
  40. package/dist/{chunk-ZBWROIIO.js → chunk-X4JAX2U3.js} +3 -3
  41. package/dist/{chunk-ZBWROIIO.js.map → chunk-X4JAX2U3.js.map} +1 -1
  42. package/dist/chunk-XMS5VRIK.js +0 -0
  43. package/dist/{chunk-MG7H3LAW.js → chunk-XP7YXRHO.js} +2 -2
  44. package/dist/{chunk-ERAZNHHR.js → chunk-YWWHK7R6.js} +2 -2
  45. package/dist/chunk-ZJW5FFYJ.js +0 -0
  46. package/dist/chunk-ZOXNJV2O.js +0 -0
  47. package/dist/cli/index.js +7 -7
  48. package/dist/client/index.d.ts +2 -2
  49. package/dist/cloudflare-LCAOTRYZ.js +0 -0
  50. package/dist/configure-agent-registry-6YGTJYBC.js +0 -0
  51. package/dist/deno-deploy-ZN4RE5HF.js +0 -0
  52. package/dist/{dev-WDXC74CK.js → dev-6P2DM33Q.js} +7 -7
  53. package/dist/{dev-WDXC74CK.js.map → dev-6P2DM33Q.js.map} +1 -1
  54. package/dist/{dev-emit-3CHM73TV.js → dev-emit-MLDFOLUU.js} +3 -3
  55. package/dist/{dev-emit-I3CKOHML.js → dev-emit-PRSRPDHA.js} +4 -4
  56. package/dist/dispatcher-E6QV32BO.js +0 -0
  57. package/dist/{dist-R2Q7GVDW.js → dist-E6BL4ZVY.js} +9 -9
  58. package/dist/dist-E6BL4ZVY.js.map +1 -0
  59. package/dist/docker-EZDA5FT7.js +0 -0
  60. package/dist/generate-DT4IIAHF.js +0 -0
  61. package/dist/index.d.ts +2 -2
  62. package/dist/index.js +3 -3
  63. package/dist/{info-VM7EK4JC.js → info-FJ4NXKTB.js} +3 -3
  64. package/dist/{lib-NST3PNZX.js → lib-NL5JXGEB.js} +31 -31
  65. package/dist/lib-NL5JXGEB.js.map +1 -0
  66. package/dist/netlify-5VQ22Z2P.js +0 -0
  67. package/dist/node-3APTLGWB.js +0 -0
  68. package/dist/{openapi-CBASKC7W.js → openapi-SOKZTFE3.js} +6 -6
  69. package/dist/{proper-lockfile-MVKMQGFK.js → proper-lockfile-4Y3DP3RP.js} +27 -27
  70. package/dist/proper-lockfile-4Y3DP3RP.js.map +1 -0
  71. package/dist/registry-5QFTLOL2.js +0 -0
  72. package/dist/{routes-7O4NUDYS.js → routes-XVRAUH6H.js} +5 -5
  73. package/dist/scan-C2BOKLSY.js +0 -0
  74. package/dist/{schema-JAKF23GR.js → schema-VR6YNVLQ.js} +2 -2
  75. package/dist/server/cost/index.d.ts +1 -1
  76. package/dist/server/cost/index.js +1 -1
  77. package/dist/server/index.d.ts +22 -12
  78. package/dist/server/index.js +7 -7
  79. package/dist/server/index.js.map +1 -1
  80. package/dist/services-typed-client-ZX5JUHH3.js +0 -0
  81. package/dist/{sqlite-vec-54KB4RD3.js → sqlite-vec-ARPNUBWT.js} +2 -2
  82. package/dist/sqlite-vec-ARPNUBWT.js.map +1 -0
  83. package/dist/{start-5JTFWF4T.js → start-R7XSQL5L.js} +10 -10
  84. package/dist/{start-5JTFWF4T.js.map → start-R7XSQL5L.js.map} +1 -1
  85. package/dist/static-TZBVBDTB.js +0 -0
  86. package/dist/storage-manager-D5KBXXKB.js +0 -0
  87. package/dist/theo-cloud-3K4DGB3S.js +0 -0
  88. package/dist/{upgrade-readiness-Q46KTG2J.js → upgrade-readiness-GUJBCJIS.js} +5 -5
  89. package/dist/{upgrade-readiness-Q46KTG2J.js.map → upgrade-readiness-GUJBCJIS.js.map} +1 -1
  90. package/dist/vercel-MWW24ABC.js +0 -0
  91. package/dist/vite-plugin/index.d.ts +2 -2
  92. package/dist/vite-plugin/index.js +3 -3
  93. package/dist/{vite-plugin-4WZ3C2AC.js → vite-plugin-6MPHTKIW.js} +7 -7
  94. package/package.json +9 -9
  95. package/dist/actions-virtual-module-E6PU47GV.js.map +0 -1
  96. package/dist/actions-virtual-module-E7IELVHL.js.map +0 -1
  97. package/dist/app-typed-client-RZMVWHJ3.js.map +0 -1
  98. package/dist/app-typed-client-YIBP6JWH.js.map +0 -1
  99. package/dist/chunk-7DHGV77J.js.map +0 -1
  100. package/dist/chunk-MOT42NAH.js.map +0 -1
  101. package/dist/dist-R2Q7GVDW.js.map +0 -1
  102. package/dist/lib-NST3PNZX.js.map +0 -1
  103. package/dist/proper-lockfile-MVKMQGFK.js.map +0 -1
  104. package/dist/sqlite-vec-54KB4RD3.js.map +0 -1
  105. /package/dist/{chunk-SEVYARIU.js.map → chunk-BE2LKDI7.js.map} +0 -0
  106. /package/dist/{chunk-QLGES2HC.js.map → chunk-SNDZQ64K.js.map} +0 -0
  107. /package/dist/{chunk-MG7H3LAW.js.map → chunk-XP7YXRHO.js.map} +0 -0
  108. /package/dist/{chunk-ERAZNHHR.js.map → chunk-YWWHK7R6.js.map} +0 -0
  109. /package/dist/{dev-emit-3CHM73TV.js.map → dev-emit-MLDFOLUU.js.map} +0 -0
  110. /package/dist/{dev-emit-I3CKOHML.js.map → dev-emit-PRSRPDHA.js.map} +0 -0
  111. /package/dist/{info-VM7EK4JC.js.map → info-FJ4NXKTB.js.map} +0 -0
  112. /package/dist/{openapi-CBASKC7W.js.map → openapi-SOKZTFE3.js.map} +0 -0
  113. /package/dist/{routes-7O4NUDYS.js.map → routes-XVRAUH6H.js.map} +0 -0
  114. /package/dist/{schema-JAKF23GR.js.map → schema-VR6YNVLQ.js.map} +0 -0
  115. /package/dist/{vite-plugin-4WZ3C2AC.js.map → vite-plugin-6MPHTKIW.js.map} +0 -0
File without changes
@@ -13,10 +13,10 @@ import {
13
13
  resolveTransformer,
14
14
  safeAudit,
15
15
  sendError
16
- } from "./chunk-C27AZN46.js";
16
+ } from "./chunk-TPCT3MXV.js";
17
17
  import {
18
18
  loadConfig
19
- } from "./chunk-MG7H3LAW.js";
19
+ } from "./chunk-XP7YXRHO.js";
20
20
  import {
21
21
  broadcastToDevtools
22
22
  } from "./chunk-5ODOE6EF.js";
@@ -31,10 +31,10 @@ import {
31
31
  matchRoute,
32
32
  scanServerRoutes,
33
33
  scanWebSocketRoutes
34
- } from "./chunk-QLGES2HC.js";
34
+ } from "./chunk-SNDZQ64K.js";
35
35
  import {
36
36
  scanServerActions
37
- } from "./chunk-MOT42NAH.js";
37
+ } from "./chunk-5OFPQK6N.js";
38
38
 
39
39
  // src/vite-plugin/index.ts
40
40
  import { existsSync as existsSync5 } from "fs";
@@ -107,7 +107,7 @@ function hydrationDataExtractSnippet() {
107
107
  ].join("\n");
108
108
  }
109
109
  function generateSingleShotEntry(options) {
110
- const theoUiImport = options.theoUi ? `import { TheoUIProvider } from '@usetheo/ui'
110
+ const theoUiImport = options.theoUi ? `import { TheoUIProvider } from '@theokit/ui'
111
111
  ` : "";
112
112
  const appTree = buildAppTreeJs(options);
113
113
  return [
@@ -270,7 +270,7 @@ function backCompatRenderer(appTree) {
270
270
  ];
271
271
  }
272
272
  function generateStreamingEntry(options) {
273
- const theoUiImport = options.theoUi ? `import { TheoUIProvider } from '@usetheo/ui'
273
+ const theoUiImport = options.theoUi ? `import { TheoUIProvider } from '@theokit/ui'
274
274
  ` : "";
275
275
  const appTree = buildAppTreeJs(options);
276
276
  return [
@@ -295,13 +295,13 @@ function generateEntryClient(ssr, opts = {}) {
295
295
  if (opts.theoUi) {
296
296
  theoUiImports.push(
297
297
  `// T2.2 \u2014 TheoUI CSS auto-injected (config.ui)`,
298
- `import '@usetheo/ui/styles.css'`
298
+ `import '@theokit/ui/styles.css'`
299
299
  );
300
300
  const fontsModule = opts.theoUi.fonts === "cdn" ? "fonts-cdn.css" : "fonts.css";
301
301
  theoUiImports.push(
302
- `import '@usetheo/ui/${fontsModule}'`,
302
+ `import '@theokit/ui/${fontsModule}'`,
303
303
  `// T2.3 \u2014 TheoUIProvider auto-wraps RouterProvider`,
304
- `import { TheoUIProvider } from '@usetheo/ui'`
304
+ `import { TheoUIProvider } from '@theokit/ui'`
305
305
  );
306
306
  }
307
307
  const theme = opts.theoUi?.theme ?? "violet-forge";
@@ -1208,7 +1208,7 @@ function isDeclaredInPackageJson(projectRoot) {
1208
1208
  const raw = readFileSync(join(projectRoot, "package.json"), "utf-8");
1209
1209
  const pkg = JSON.parse(raw);
1210
1210
  return Boolean(
1211
- pkg.dependencies?.["@usetheo/ui"] ?? pkg.devDependencies?.["@usetheo/ui"] ?? pkg.peerDependencies?.["@usetheo/ui"]
1211
+ pkg.dependencies?.["@theokit/ui"] ?? pkg.devDependencies?.["@theokit/ui"] ?? pkg.peerDependencies?.["@theokit/ui"]
1212
1212
  );
1213
1213
  } catch {
1214
1214
  return false;
@@ -1222,7 +1222,7 @@ function detectTheoUi(projectRoot, rawConfig, resolver = defaultResolver) {
1222
1222
  if (!isDeclaredInPackageJson(projectRoot)) {
1223
1223
  return { enabled: false, config };
1224
1224
  }
1225
- const probes = ["@usetheo/ui/styles.css", "@usetheo/ui/fonts.css"];
1225
+ const probes = ["@theokit/ui/styles.css", "@theokit/ui/fonts.css"];
1226
1226
  for (const probe of probes) {
1227
1227
  if (resolver(probe, projectRoot)) {
1228
1228
  return { enabled: true, config };
@@ -1333,8 +1333,8 @@ ${SCRIPT_TAG2}`,
1333
1333
  // src/vite-plugin/inject-stylesheets.ts
1334
1334
  var TARGETS = [
1335
1335
  {
1336
- href: "/@id/@usetheo/ui/styles.css",
1337
- packageRoot: "@usetheo/ui"
1336
+ href: "/@id/@theokit/ui/styles.css",
1337
+ packageRoot: "@theokit/ui"
1338
1338
  }
1339
1339
  ];
1340
1340
  function injectStylesheets(html, opts) {
@@ -1533,18 +1533,18 @@ function normalizePluginReturn(value) {
1533
1533
  }
1534
1534
  async function integrateUseTheoUI(cwd, opts) {
1535
1535
  if (opts?.enabled === false) return [];
1536
- const uiDetect = detectPackage("@usetheo/ui", cwd);
1536
+ const uiDetect = detectPackage("@theokit/ui", cwd);
1537
1537
  if (!uiDetect.installed) return [];
1538
1538
  if (opts?.consumerTailwindConfig || opts?.consumerPostcssConfig) {
1539
1539
  console.info(
1540
- `[theokit] Detected your tailwind.config / postcss.config \u2014 skipping auto-config. Extend with \`import preset from '@usetheo/ui/preset'\` to apply UI theme.`
1540
+ `[theokit] Detected your tailwind.config / postcss.config \u2014 skipping auto-config. Extend with \`import preset from '@theokit/ui/preset'\` to apply UI theme.`
1541
1541
  );
1542
1542
  return [];
1543
1543
  }
1544
1544
  const tailwindDetect = detectPackage("@tailwindcss/vite", cwd);
1545
1545
  if (!tailwindDetect.installed) {
1546
1546
  console.warn(
1547
- `[theokit] @usetheo/ui detected but @tailwindcss/vite is not installed. Run \`pnpm add -D @tailwindcss/vite\` to enable styling.`
1547
+ `[theokit] @theokit/ui detected but @tailwindcss/vite is not installed. Run \`pnpm add -D @tailwindcss/vite\` to enable styling.`
1548
1548
  );
1549
1549
  return [];
1550
1550
  }
@@ -1565,12 +1565,12 @@ async function integrateUseTheoUI(cwd, opts) {
1565
1565
  );
1566
1566
  return [];
1567
1567
  }
1568
- const uiPkgInstalled = detectPackage("@usetheo/ui", cwd);
1568
+ const uiPkgInstalled = detectPackage("@theokit/ui", cwd);
1569
1569
  const uiPkgDir = uiPkgInstalled.resolvedPath ? uiPkgInstalled.resolvedPath.replace(/[\\/]package\.json$/, "") : null;
1570
1570
  const uiPluginPath = uiPkgDir ? join3(uiPkgDir, "dist", "vite-plugin.js") : null;
1571
1571
  if (!uiPluginPath || !existsSync3(uiPluginPath)) {
1572
1572
  console.warn(
1573
- `[theokit] @usetheo/ui/vite-plugin entry not found at ${String(uiPluginPath)}. Skipping auto-config.`
1573
+ `[theokit] @theokit/ui/vite-plugin entry not found at ${String(uiPluginPath)}. Skipping auto-config.`
1574
1574
  );
1575
1575
  return [];
1576
1576
  }
@@ -1578,7 +1578,7 @@ async function integrateUseTheoUI(cwd, opts) {
1578
1578
  uiMod = await import(pathToFileURL(uiPluginPath).href);
1579
1579
  } catch (err) {
1580
1580
  console.warn(
1581
- `[theokit] @usetheo/ui/vite-plugin dynamic import failed (${err.message}). Skipping auto-config.`
1581
+ `[theokit] @theokit/ui/vite-plugin dynamic import failed (${err.message}). Skipping auto-config.`
1582
1582
  );
1583
1583
  return [];
1584
1584
  }
@@ -1590,7 +1590,7 @@ async function integrateUseTheoUI(cwd, opts) {
1590
1590
  }
1591
1591
  if (typeof uiMod.default !== "function") {
1592
1592
  console.warn(
1593
- `[theokit] @usetheo/ui/vite-plugin does not expose a default-export function. Skipping auto-config.`
1593
+ `[theokit] @theokit/ui/vite-plugin does not expose a default-export function. Skipping auto-config.`
1594
1594
  );
1595
1595
  return [];
1596
1596
  }
@@ -1607,7 +1607,7 @@ async function integrateUseTheoUI(cwd, opts) {
1607
1607
  tailwind: false
1608
1608
  });
1609
1609
  } catch (err) {
1610
- console.warn(`[theokit] @usetheo/ui/vite-plugin() threw: ${err.message}`);
1610
+ console.warn(`[theokit] @theokit/ui/vite-plugin() threw: ${err.message}`);
1611
1611
  return [];
1612
1612
  }
1613
1613
  const tailwindPlugins = normalizePluginReturn(tailwindPlugin);
@@ -1618,7 +1618,7 @@ async function integrateUseTheoUI(cwd, opts) {
1618
1618
  const uiPlugins = normalizePluginReturn(uiPlugin);
1619
1619
  if (uiPlugins === null) {
1620
1620
  console.warn(
1621
- `[theokit] @usetheo/ui/vite-plugin returned unexpected shape. Skipping auto-config.`
1621
+ `[theokit] @theokit/ui/vite-plugin returned unexpected shape. Skipping auto-config.`
1622
1622
  );
1623
1623
  return [];
1624
1624
  }
@@ -1886,13 +1886,13 @@ async function theoPluginAsync(rootOrOptions) {
1886
1886
  })
1887
1887
  );
1888
1888
  }
1889
- const { appTypedClientPlugin } = await import("./app-typed-client-YIBP6JWH.js");
1889
+ const { appTypedClientPlugin } = await import("./app-typed-client-6GC6VWXS.js");
1890
1890
  const appClientPlugin = appTypedClientPlugin({
1891
1891
  cwd: projectRoot,
1892
1892
  serverDir: resolve4(projectRoot, "server"),
1893
1893
  distDir: resolve4(projectRoot, ".theo")
1894
1894
  });
1895
- const { actionsVirtualModule } = await import("./actions-virtual-module-E6PU47GV.js");
1895
+ const { actionsVirtualModule } = await import("./actions-virtual-module-HWNTIEPI.js");
1896
1896
  const actionsPlugin = actionsVirtualModule({
1897
1897
  serverDir: resolve4(projectRoot, "server"),
1898
1898
  distDir: resolve4(projectRoot, ".theo")
@@ -1907,8 +1907,8 @@ async function theoPluginAsync(rootOrOptions) {
1907
1907
  }
1908
1908
  function buildOptimizeDepsInclude(projectRoot, viteOptimizeDeps) {
1909
1909
  const include = [];
1910
- if (existsSync5(resolve4(projectRoot, "node_modules", "@usetheo", "ui"))) {
1911
- include.push("@usetheo/ui");
1910
+ if (existsSync5(resolve4(projectRoot, "node_modules", "@theokit", "ui"))) {
1911
+ include.push("@theokit/ui");
1912
1912
  }
1913
1913
  if (existsSync5(resolve4(projectRoot, "node_modules", "lucide-react"))) {
1914
1914
  include.push("lucide-react");
@@ -1964,7 +1964,7 @@ function theoPlugin(rootOrOptions) {
1964
1964
  resolvedDistDir = resolved.distDir;
1965
1965
  },
1966
1966
  // Vite calls this hook (sync return is fine — no awaits left after
1967
- // the auto-chain moved to theoPluginAsync). The @usetheo/ui +
1967
+ // the auto-chain moved to theoPluginAsync). The @theokit/ui +
1968
1968
  // @tailwindcss/vite auto-chain lives in `theoPluginAsync` because
1969
1969
  // Vite drops plugins returned from a child plugin's config() hook.
1970
1970
  config() {
@@ -2155,7 +2155,7 @@ function theoPlugin(rootOrOptions) {
2155
2155
  server.watcher.on("unlink", handleRouteChange);
2156
2156
  if (resolvedOpenApi !== void 0) {
2157
2157
  const openApiCfg = resolvedOpenApi;
2158
- const { reEmitOpenApi } = await import("./dev-emit-I3CKOHML.js");
2158
+ const { reEmitOpenApi } = await import("./dev-emit-PRSRPDHA.js");
2159
2159
  const openApiServerDir = resolve4(projectRoot, "server");
2160
2160
  const openApiDistDir = resolve4(projectRoot, resolvedDistDir);
2161
2161
  const isRouteFileForOpenApi = (file) => file.startsWith(openApiServerDir) && /\.(ts|tsx|js|mjs)$/.test(file);
@@ -2193,4 +2193,4 @@ export {
2193
2193
  theoPluginAsync,
2194
2194
  theoPlugin
2195
2195
  };
2196
- //# sourceMappingURL=chunk-EXJWO2HB.js.map
2196
+ //# sourceMappingURL=chunk-X2OLD264.js.map