sproutkit-code 1.6.0 → 1.6.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 (2) hide show
  1. package/dist/index.js +17 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -81377,7 +81377,9 @@ createRoot(document.getElementById('root')).render(<StrictMode><App /></StrictMo
81377
81377
  version: "0.0.1",
81378
81378
  type: "module",
81379
81379
  scripts: { build: "vite build", dev: "vite" },
81380
- dependencies: { ...baseDeps },
81380
+ // @vercel/blob even without CMS: /api/track writes the visit counters, and
81381
+ // analytics ships on every site.
81382
+ dependencies: { ...baseDeps, "@vercel/blob": "^0.23.4" },
81381
81383
  devDependencies: { "@vitejs/plugin-react": "^4.3.1", vite: "^5.4.2" }
81382
81384
  });
81383
81385
  const viteConfig = `import { defineConfig } from 'vite';
@@ -81471,23 +81473,34 @@ export default defineConfig({ plugins: [react()] });`;
81471
81473
  { file: "api/admin/login.js", data: cms_runtime_1.API_ADMIN_LOGIN_JS, encoding: "utf-8" },
81472
81474
  { file: "api/admin/whoami.js", data: cms_runtime_1.API_ADMIN_WHOAMI_JS, encoding: "utf-8" },
81473
81475
  { file: "api/admin/password.js", data: cms_runtime_1.API_ADMIN_PASSWORD_JS, encoding: "utf-8" },
81474
- { file: "api/track.js", data: analytics_runtime_1.API_TRACK_JS, encoding: "utf-8" },
81475
- { file: "api/stats.js", data: analytics_runtime_1.API_STATS_JS, encoding: "utf-8" },
81476
81476
  { file: "api/admin/upload.js", data: cms_runtime_1.API_ADMIN_UPLOAD_JS, encoding: "utf-8" },
81477
81477
  { file: "public/admin/index.html", data: adminHtml(), encoding: "utf-8" },
81478
81478
  { file: "public/admin/app.js", data: cms_runtime_1.ADMIN_APP_JS, encoding: "utf-8" }
81479
81479
  ];
81480
81480
  cmsAdmin = { url: "", password: adminPassword };
81481
81481
  }
81482
+ const analyticsFiles = [
81483
+ { file: "api/track.js", data: analytics_runtime_1.API_TRACK_JS, encoding: "utf-8" },
81484
+ { file: "api/stats.js", data: analytics_runtime_1.API_STATS_JS, encoding: "utf-8" }
81485
+ ];
81482
81486
  const allFiles = [
81483
81487
  { file: "index.html", data: indexHtml, encoding: "utf-8" },
81484
81488
  { file: "src/main.jsx", data: mainJsx, encoding: "utf-8" },
81485
81489
  { file: "src/App.jsx", data: appCode, encoding: "utf-8" },
81486
81490
  { file: "package.json", data: finalPackageJson, encoding: "utf-8" },
81487
81491
  { file: "vite.config.js", data: viteConfig, encoding: "utf-8" },
81492
+ ...analyticsFiles,
81488
81493
  ...cmsExtraFiles,
81489
81494
  ...photoFiles
81490
81495
  ];
81496
+ if (!includeCms && blobToken) {
81497
+ onProgress("Setting analytics env vars\u2026");
81498
+ await setProjectEnv(projectName, vercelToken, {
81499
+ BLOB_READ_WRITE_TOKEN: blobToken,
81500
+ SITE_ID: siteUidFor(lead.id),
81501
+ BUSINESS_NAME: lead.name
81502
+ });
81503
+ }
81491
81504
  const totalMb = allFiles.reduce((s, f) => s + f.data.length, 0) / 1048576;
81492
81505
  onProgress(`Uploading ${allFiles.length} files (${totalMb.toFixed(1)} MB)\u2026`);
81493
81506
  const res = await postVercelDeployment({
@@ -96984,7 +96997,7 @@ var require_package2 = __commonJS({
96984
96997
  "package.json"(exports2, module2) {
96985
96998
  module2.exports = {
96986
96999
  name: "sproutkit-code",
96987
- version: "1.6.0",
97000
+ version: "1.6.1",
96988
97001
  description: "Sproutkit in your terminal \u2014 find leads, build sites, run outreach, all via chat.",
96989
97002
  bin: {
96990
97003
  sproutkit: "./dist/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sproutkit-code",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Sproutkit in your terminal — find leads, build sites, run outreach, all via chat.",
5
5
  "bin": {
6
6
  "sproutkit": "./dist/index.js"