@wairon/cli 5.1.1-dev.29 → 5.1.1-dev.30

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/index.js CHANGED
@@ -1113,7 +1113,7 @@ var init_defaults = __esm({
1113
1113
  copilot: ".github/prompts",
1114
1114
  codex: ".codex/agents"
1115
1115
  };
1116
- WAIRON_VERSION = "5.1.1-dev.29";
1116
+ WAIRON_VERSION = "5.1.1-dev.30";
1117
1117
  GITHUB_REPO = "SYW-Apps/Waffle-AIron";
1118
1118
  ARCHITECT_AGENT_ID = "agent-architect";
1119
1119
  ARCHITECT_TEMPLATE_ID = "architect";
@@ -21316,6 +21316,12 @@ function renameComponent(componentId, newId) {
21316
21316
  return ref;
21317
21317
  }).filter((spec) => !renamed.some((moved) => moved.kind === spec.kind && moved.from === spec.id)).map((spec) => spec.id);
21318
21318
  invalidateSpecCache();
21319
+ moveRenamedSpecs(componentId, newId, component, movingInterface, movingImplementation);
21320
+ return { renamed, rewritten };
21321
+ }
21322
+ function moveRenamedSpecs(componentId, newId, component, movingInterface, movingImplementation) {
21323
+ const interfaceId = `i${newId}`;
21324
+ const implementationId = `${newId}_impl`;
21319
21325
  const movedComponent = loadComponentSpec(componentId) ?? component;
21320
21326
  const movedInterface = movingInterface ? loadInterfaceSpec(movingInterface.id) ?? movingInterface : null;
21321
21327
  const movedImplementation = movingImplementation ? loadImplementationSpec(movingImplementation.id) ?? movingImplementation : null;
@@ -21332,7 +21338,6 @@ function renameComponent(componentId, newId) {
21332
21338
  if (movingInterface) removeSpecFile(getInterfacePath(movingInterface.id), movingInterface.id);
21333
21339
  if (movingImplementation) removeSpecFile(getImplementationPath(movingImplementation.id), movingImplementation.id);
21334
21340
  invalidateSpecCache();
21335
- return { renamed, rewritten };
21336
21341
  }
21337
21342
  function removeSpecFile(file, id) {
21338
21343
  if (!fs14.existsSync(file)) return;