coderio 1.0.3-alpha.1 → 1.0.3

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.
package/dist/cli.js CHANGED
@@ -475,7 +475,7 @@ var AGENT_CONTEXT_WINDOW_TOKENS = 128e3;
475
475
 
476
476
  // src/cli/init.ts
477
477
  function registerCommands(program) {
478
- const version = false ? "0.0.1" : "1.0.3-alpha.1";
478
+ const version = false ? "0.0.1" : "1.0.3";
479
479
  program.name(CLI_NAME).description(`${CLI_NAME} - Convert Figma designs to code`).version(version, "-v, -V, --version", "Output the version number").showHelpAfterError();
480
480
  }
481
481
 
@@ -6419,16 +6419,16 @@ async function design2code(url, mode) {
6419
6419
  const resume = await promptCheckpointChoice(checkpointer, threadId);
6420
6420
  logger.printInfoLog(`Starting design-to-code process for: ${urlInfo.projectName}`);
6421
6421
  if (resume !== true) {
6422
- workspaceManager.deleteWorkspace(workspace, ["checkpoint/coderio-cli.db"]);
6422
+ workspaceManager.deleteWorkspace(workspace, [
6423
+ "checkpoint/coderio-cli.db",
6424
+ "checkpoint/coderio-cli.db-shm",
6425
+ "checkpoint/coderio-cli.db-wal"
6426
+ ]);
6423
6427
  logger.printInfoLog("Starting fresh...");
6424
6428
  await clearThreadCheckpoint(checkpointer, threadId);
6425
6429
  } else {
6426
6430
  logger.printInfoLog("Resuming from cache...");
6427
6431
  }
6428
- await callModel({
6429
- question: "\u8BF7\u4ECB\u7ECD\u4F60\u81EA\u5DF1\uFF0C\u4F60\u662F\u4EC0\u4E48\u6A21\u578B",
6430
- streaming: false
6431
- });
6432
6432
  const graph = new StateGraph(GraphStateAnnotation).addNode("initial" /* INITIAL */, initialProject).addNode("process" /* PROCESS */, generateProtocol).addNode("code" /* CODE */, generateCode).addNode("validation" /* VALIDATION */, runValidation).addEdge(START, "initial" /* INITIAL */).addEdge("initial" /* INITIAL */, "process" /* PROCESS */).addEdge("process" /* PROCESS */, "code" /* CODE */).addEdge("code" /* CODE */, "validation" /* VALIDATION */).addEdge("validation" /* VALIDATION */, END).compile({ checkpointer });
6433
6433
  const config = { configurable: { thread_id: threadId } };
6434
6434
  const validationMode = mode ?? "full" /* Full */;