@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.
- package/dist/commands/create.js +5 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/commands/create.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
262
|
-
|
|
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);
|
package/oclif.manifest.json
CHANGED