@lhi/n8m 0.2.3 → 0.2.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.
@@ -184,7 +184,7 @@ export default class Create extends Command {
184
184
  else {
185
185
  this.log(theme.agent(`Building "${chosenSpec?.suggestedName}"...`));
186
186
  }
187
- await graph.updateState({ configurable: { thread_id: threadId } }, stateUpdate, nextNode);
187
+ await graph.updateState({ configurable: { thread_id: threadId } }, stateUpdate);
188
188
  const buildStream = await graph.stream(null, { configurable: { thread_id: threadId } });
189
189
  for await (const event of buildStream) {
190
190
  const n = Object.keys(event)[0];
@@ -258,8 +258,10 @@ export default class Create extends Command {
258
258
  const savedResources = [];
259
259
  const docService = DocService.getInstance();
260
260
  for (const workflow of workflows) {
261
- const projectTitle = await docService.generateProjectTitle(workflow);
262
- workflow.name = projectTitle; // Standardize name
261
+ // Use the workflow's own name (set by the Engineer from the spec's suggestedName).
262
+ // Only call generateProjectTitle as a fallback when the name is missing or generic.
263
+ const projectTitle = workflow.name || await docService.generateProjectTitle(workflow);
264
+ workflow.name = projectTitle;
263
265
  const slug = docService.generateSlug(projectTitle);
264
266
  const workflowsDir = path.join(process.cwd(), 'workflows');
265
267
  const targetDir = path.join(workflowsDir, slug);
@@ -439,5 +439,5 @@
439
439
  ]
440
440
  }
441
441
  },
442
- "version": "0.2.3"
442
+ "version": "0.2.4"
443
443
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lhi/n8m",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Agentic n8n CLI wrapper - A Skill Bridge for n8n workflow automation",
5
5
  "author": "Lem Canady",
6
6
  "license": "MIT",