@builder.io/buildercode 0.4.3 → 0.4.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 (2) hide show
  1. package/dist/cli.mjs +18 -9
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -245183,7 +245183,7 @@ const LIB_CACHE = /* @__PURE__ */ new Map();
245183
245183
  const PENDING_LIB_CACHE = /* @__PURE__ */ new Map();
245184
245184
  const NODE_MODULE_CACHE = /* @__PURE__ */ new Map();
245185
245185
  const TSCONFIG_CACHE = /* @__PURE__ */ new Map();
245186
- const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.4.3";
245186
+ const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.4.4";
245187
245187
  //#endregion
245188
245188
  //#region ../dev-tools/core/detect-frameworks.ts
245189
245189
  async function detectFrameworks$1(sys) {
@@ -542125,7 +542125,7 @@ const FooterSection = (0, import_react.memo)(() => {
542125
542125
  children: [
542126
542126
  "•",
542127
542127
  " Fusion ",
542128
- "0.4.3"
542128
+ "0.4.4"
542129
542129
  ]
542130
542130
  });
542131
542131
  $[10] = t7;
@@ -601269,11 +601269,11 @@ function renderInlineFormatting(text) {
601269
601269
  }
601270
601270
  function parseMarkdownBlocks(raw) {
601271
601271
  const blocks = [];
601272
- const lines = raw.split("\n");
601272
+ const lines = raw.replace(/\r/g, "").split("\n");
601273
601273
  let i = 0;
601274
601274
  while (i < lines.length) {
601275
601275
  const line = lines[i];
601276
- const fenceMatch = line.match(/^```(\w*)/);
601276
+ const fenceMatch = line.match(/^```([\w+#.-]*)/);
601277
601277
  if (fenceMatch) {
601278
601278
  const lang = fenceMatch[1] || void 0;
601279
601279
  const codeLines = [];
@@ -601290,7 +601290,7 @@ function parseMarkdownBlocks(raw) {
601290
601290
  i++;
601291
601291
  continue;
601292
601292
  }
601293
- const headingMatch = line.match(/^(#{1,3})\s+(.+)/);
601293
+ const headingMatch = line.match(/^(#{1,3})\s+(.*)/);
601294
601294
  if (headingMatch) {
601295
601295
  blocks.push({
601296
601296
  type: "heading",
@@ -601345,6 +601345,7 @@ function parseMarkdownBlocks(raw) {
601345
601345
  type: "text",
601346
601346
  content: textLines.join("\n")
601347
601347
  });
601348
+ else i++;
601348
601349
  }
601349
601350
  return blocks;
601350
601351
  }
@@ -603375,7 +603376,15 @@ function ThinkingBlock(t0) {
603375
603376
  const streaming = t1 === void 0 ? false : t1;
603376
603377
  let t2;
603377
603378
  if ($[0] !== text) {
603378
- t2 = text.trimEnd().split("\n").pop() ?? "";
603379
+ const lines = text.trimEnd().split("\n");
603380
+ let numberOfLines = 0;
603381
+ let accumulatedLength = 0;
603382
+ for (let i = lines.length - 1; i >= 0; i--) {
603383
+ numberOfLines++;
603384
+ accumulatedLength = accumulatedLength + lines[i].length;
603385
+ if (accumulatedLength > 600) break;
603386
+ }
603387
+ t2 = lines.slice(-numberOfLines).join("\n");
603379
603388
  $[0] = text;
603380
603389
  $[1] = t2;
603381
603390
  } else t2 = $[1];
@@ -606366,7 +606375,7 @@ function isStandaloneBinary() {
606366
606375
  return !path$6.basename(process.execPath, ".exe").startsWith("node");
606367
606376
  }
606368
606377
  function getCurrentVersion() {
606369
- return "0.4.3";
606378
+ return "0.4.4";
606370
606379
  }
606371
606380
  async function fetchLatestVersion() {
606372
606381
  return new Promise((resolve, reject) => {
@@ -606790,7 +606799,7 @@ function initSentry() {
606790
606799
  init({
606791
606800
  dsn: "https://1c5033d697e0271ebe53773bff826de0@o117565.ingest.us.sentry.io/4511107776905216",
606792
606801
  tracesSampleRate: 0,
606793
- release: "0.4.3",
606802
+ release: "0.4.4",
606794
606803
  environment: process.env.NODE_ENV ?? "development",
606795
606804
  enabled: false,
606796
606805
  registerEsmLoaderHooks: false,
@@ -606802,7 +606811,7 @@ function initSentry() {
606802
606811
  }
606803
606812
  //#endregion
606804
606813
  //#region src/cli.tsx
606805
- const VERSION = "0.4.3";
606814
+ const VERSION = "0.4.4";
606806
606815
  async function startInk(command, options) {
606807
606816
  const sys = await createDevToolsNodeSys({
606808
606817
  cwd: process.cwd(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/buildercode",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Builder.io CLI - AI-powered code generation",
5
5
  "license": "MIT",
6
6
  "bin": {