create-flow-os 0.0.62 → 0.0.63-dev.1772064269

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "create-flow-os",
3
- "version": "0.0.62",
3
+ "version": "0.0.63-dev.1772064269",
4
4
  "license": "PolyForm-Shield-1.0.0",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@flow-os/client": "^0.0.62"
7
+ "@flow-os/client": "^0.0.63"
8
8
  },
9
9
  "bin": {
10
10
  "create-flow-os": "./src/index.ts"
@@ -43,7 +43,7 @@ function mergeTemplateInto(combined: Map<string, TemplateEntry>, pkgFiles: Map<s
43
43
  }
44
44
  }
45
45
 
46
- /** Scrive combined template in cwd. Never overwrite: file con contenuto → mantieni. Se coincide con superseded → usa nuovo template. */
46
+ /** Scrive combined (config merge di tutte le lib) in cwd. Merge con folder utente: never overwrite (file con contenuto → mantieni). Se coincide con superseded → usa nuovo template. */
47
47
  async function writeMergedWithUser(
48
48
  combined: Map<string, TemplateEntry>,
49
49
  cwd: string,
@@ -329,7 +329,7 @@ function flowDepsFromPkg(pkgPath: string): string[] {
329
329
  }
330
330
  }
331
331
 
332
- /** Fase 1: raccoglie e merge tutti i template in memoria, ritorna ordine pacchetti */
332
+ /** Fase 1: per ogni lib prende config/ (da npm o repo locale), merge tutti i config insieme in combined */
333
333
  async function collectAllTemplates(
334
334
  libs: string[],
335
335
  combined: Map<string, TemplateEntry>,
@@ -411,7 +411,9 @@ async function collectAllTemplates(
411
411
 
412
412
  export type InitProgressStep = "fetch" | "templates" | "write" | "install";
413
413
 
414
- /** Init: 1) fetch versioni npm, 2) merge template, 3) mergePkg, 4) merge con file utente, 5) bun install */
414
+ /** Init: 1) fetch versioni npm (dev/latest), 2) raccoglie config/ di ogni lib e li merge insieme,
415
+ * 3) mergePkg (package.json), 4) merge con folder utente (never overwrite), 5) bun install.
416
+ * Fuori repo: scarica config da npm. Dentro repo: usa workspace + config locali. */
415
417
  export async function initLib(
416
418
  libs: string[],
417
419
  cwd: string,