@kosdev-code/kos-codegen-core 0.1.0-next.799 → 0.1.0-next.805

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.
@@ -22,7 +22,10 @@ export interface PolyglotWorkspaceOptions {
22
22
  * version known to work with the scaffolded workspace.
23
23
  */
24
24
  nodeVersion?: string;
25
- /** JDK major build/jdkw.sh pins (matches the archetypes' java.version). */
25
+ /**
26
+ * JDK major build/jdkw.sh pins. Default 21 (compiles the archetypes'
27
+ * release-17 target; also what java discovery prefers).
28
+ */
26
29
  jdkMajor?: string;
27
30
  /** Maven version build/jdkw.sh provisions when mvn is absent. */
28
31
  mavenVersion?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"generate-polyglot-workspace.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-codegen-core/src/lib/generators/generate-polyglot-workspace.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI/D,MAAM,WAAW,wBAAwB;IACvC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAUD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,CAyCzB"}
1
+ {"version":3,"file":"generate-polyglot-workspace.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-codegen-core/src/lib/generators/generate-polyglot-workspace.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI/D,MAAM,WAAW,wBAAwB;IACvC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAUD,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,wBAAwB,GAChC,uBAAuB,CAyCzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosdev-code/kos-codegen-core",
3
- "version": "0.1.0-next.799",
3
+ "version": "0.1.0-next.805",
4
4
  "type": "commonjs",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "kos": {
27
27
  "build": {
28
- "gitHash": "923c5459ea6fd112e370a465a424490533b750d9"
28
+ "gitHash": "66142cd858d09a346576f17acae86d2e9dc84b5b"
29
29
  }
30
30
  }
31
31
  }
@@ -52,7 +52,7 @@ export class <%= nameProperCase %>ModelImpl implements IKosIdentifiable, IKosDat
52
52
  }
53
53
 
54
54
  updateModel(_options: <%= nameProperCase %>Options): void {
55
- // Update model properties here.
55
+ // Copy fields in place (verbatim; derive in computed getters, not here).
56
56
  }
57
57
  // -------------------LIFECYCLE----------------------------
58
58
 
@@ -63,12 +63,14 @@ export class <%= nameProperCase %>ModelImpl implements IKosDataModel, IKosIdent
63
63
  // Companion decorator automatically provides getCompanionParent() and parent property proxying
64
64
  <% } %>
65
65
  if (options) {
66
- // Assign options properties here.
66
+ // Copy options VERBATIM (this.x = options.x). Derivation belongs in
67
+ // computed getters or the DTO mapper — never transform inputs here.
67
68
  }
68
69
  }
69
-
70
+
70
71
  updateModel(options: <%= nameProperCase %>Options): void {
71
- // Update model properties here.
72
+ // Copy fields in place (same verbatim rule as the constructor).
73
+ // Cross-model reads = @kosDependency + computed getters over container indexes.
72
74
  }
73
75
 
74
76
  <% if (hasFutureSupport) { %>