@builder.io/buildercode 0.3.0 → 0.3.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/cli.mjs +9 -8
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -198373,7 +198373,7 @@ const LIB_CACHE = /* @__PURE__ */ new Map();
198373
198373
  const PENDING_LIB_CACHE = /* @__PURE__ */ new Map();
198374
198374
  const NODE_MODULE_CACHE = /* @__PURE__ */ new Map();
198375
198375
  const TSCONFIG_CACHE = /* @__PURE__ */ new Map();
198376
- const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.3.0";
198376
+ const pkgVersion = process.env.OVERRIDE_VERSION ?? "0.3.1";
198377
198377
  //#endregion
198378
198378
  //#region ../dev-tools/core/detect-frameworks.ts
198379
198379
  async function detectFrameworks$1(sys) {
@@ -533587,6 +533587,7 @@ function useCodeGenStateHandler() {
533587
533587
  state.contextWindow = void 0;
533588
533588
  state.usage = void 0;
533589
533589
  state.hasPlanToApply = false;
533590
+ state.messages = [];
533590
533591
  break;
533591
533592
  case "message-queue":
533592
533593
  state.queue = step.queue;
@@ -537991,7 +537992,7 @@ const FooterSection = (0, import_react.memo)(() => {
537991
537992
  children: [
537992
537993
  "•",
537993
537994
  " Fusion ",
537994
- "0.3.0"
537995
+ "0.3.1"
537995
537996
  ]
537996
537997
  });
537997
537998
  $[4] = t4;
@@ -598919,7 +598920,7 @@ const CodeSession = (0, import_react.memo)(({ onExit, isTabActive = true }) => {
598919
598920
  return;
598920
598921
  }
598921
598922
  if (input === "c" && key.ctrl) {
598922
- if (ctrlCPending) {
598923
+ if (showWelcome || ctrlCPending) {
598923
598924
  if (ctrlCTimer.current) clearTimeout(ctrlCTimer.current);
598924
598925
  onExit({
598925
598926
  sessionId: proxy.sessionId,
@@ -599648,7 +599649,7 @@ function CodeCommand({ onExit, sys, options }) {
599648
599649
  const lines = [""];
599649
599650
  if (info.sessionId) {
599650
599651
  lines.push("Resume this session with:");
599651
- lines.push(` fusion --session ${info.sessionId}`);
599652
+ lines.push(` builder --resume ${info.sessionId}`);
599652
599653
  lines.push("");
599653
599654
  }
599654
599655
  process.stdout.write(lines.join("\n"));
@@ -599694,7 +599695,7 @@ function CodeCommand({ onExit, sys, options }) {
599694
599695
  }
599695
599696
  });
599696
599697
  const fusionConfig = await getFusionConfig(sys, { _: [] });
599697
- const sessionId = options?.session;
599698
+ const sessionId = options?.resume;
599698
599699
  const codeSession = new CodeGenSession({
599699
599700
  sys,
599700
599701
  credentials,
@@ -599921,7 +599922,7 @@ function isStandaloneBinary() {
599921
599922
  return !path$6.basename(process.execPath, ".exe").startsWith("node");
599922
599923
  }
599923
599924
  function getCurrentVersion() {
599924
- return "0.3.0";
599925
+ return "0.3.1";
599925
599926
  }
599926
599927
  async function fetchLatestVersion() {
599927
599928
  return new Promise((resolve, reject) => {
@@ -600096,7 +600097,7 @@ async function downloadFile(url, dest) {
600096
600097
  }
600097
600098
  //#endregion
600098
600099
  //#region src/cli.tsx
600099
- const VERSION = "0.3.0";
600100
+ const VERSION = "0.3.1";
600100
600101
  async function startInk(command, options) {
600101
600102
  return render(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(App, {
600102
600103
  command,
@@ -600109,7 +600110,7 @@ async function startInk(command, options) {
600109
600110
  }), { exitOnCtrlC: false }).waitUntilExit();
600110
600111
  }
600111
600112
  const program = new Command().name("fusion").version(VERSION, "-v, --version").description("Builder.io Fusion CLI — AI-powered code generation");
600112
- program.command("code", { isDefault: true }).description("Interactive AI code generation (default)").argument("[prompt]", "Initial prompt to send immediately").option("-u, --url <url>", "Design URL to integrate").option("-p, --prompt <text>", "Run non-interactively with a prompt").option("-m, --mode <mode>", "Code generation mode", "quality-v4").option("-w, --workspace <path>", "Workspace configuration path").option("--space-id <id>", "Builder.io space ID").option("--continue", "Resume the previous conversation").option("--session <id>", "Resume a specific session by ID").option("--disable-mcp", "Disable MCP servers").option("--privacy", "Enable privacy mode").action(async (prompt, options) => {
600113
+ program.command("code", { isDefault: true }).description("Interactive AI code generation (default)").argument("[prompt]", "Initial prompt to send immediately").option("-u, --url <url>", "Design URL to integrate").option("-p, --prompt <text>", "Run non-interactively with a prompt").option("-w, --workspace <path>", "Workspace configuration path").option("--space-id <id>", "Builder.io space ID").option("--continue", "Resume the previous conversation").option("--resume <id>", "Resume a specific session by ID").option("--disable-mcp", "Disable MCP servers").option("--privacy", "Enable privacy mode").action(async (prompt, options) => {
600113
600114
  await startInk("code", {
600114
600115
  ...options,
600115
600116
  prompt: prompt ?? options.prompt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/buildercode",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Builder.io Fusion CLI - AI-powered code generation",
5
5
  "license": "MIT",
6
6
  "bin": {