@powerhousedao/vetra 5.2.0-staging.7 → 5.2.0-staging.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"document-model-generator.d.ts","sourceRoot":"","sources":["../../../../../processors/codegen/document-handlers/generators/document-model-generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,QAAQ,CAAC,sBAAsB,+BAA+B;IAE9D;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO;IA+BnD,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;CAkEjE"}
1
+ {"version":3,"file":"document-model-generator.d.ts","sourceRoot":"","sources":["../../../../../processors/codegen/document-handlers/generators/document-model-generator.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,eAAe;IACzD,QAAQ,CAAC,sBAAsB,+BAA+B;IAE9D;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO;IAiCnD,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;CAkEjE"}
@@ -22,7 +22,6 @@ export class DocumentModelGenerator extends BaseDocumentGen {
22
22
  logger.debug(`>>> No state found for document model: ${strand.documentId}`);
23
23
  return false;
24
24
  }
25
- console.log(">>>> state", JSON.stringify(state, null, 2));
26
25
  const validationResult = validateDocumentModelState(state);
27
26
  if (!validationResult.isValid) {
28
27
  const errorList = validationResult.errors
@@ -31,6 +30,7 @@ export class DocumentModelGenerator extends BaseDocumentGen {
31
30
  logger.info(`⚠️ Skipped code generation for '${state.name || strand.documentId}' due to validation errors:\n${errorList}`);
32
31
  return false;
33
32
  }
33
+ logger.info(`Document model ${state.name} is valid, proceeding with code generation`);
34
34
  return true;
35
35
  }
36
36
  async generate(strand) {
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA+BvD,eAAO,MAAM,uBAAuB,GACjC,QAAQ,oBAAoB,MAC5B,aAAa,gBAAgB,KAAG,eAAe,EA+B/C,CAAC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgCvD,eAAO,MAAM,uBAAuB,GACjC,QAAQ,oBAAoB,MAC5B,aAAa,gBAAgB,KAAG,eAAe,EAsC/C,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { VETRA_PROCESSOR_CONFIG_KEY } from "@powerhousedao/config";
2
2
  import { CodegenProcessor } from "./index.js";
3
+ import { logger } from "./logger.js";
3
4
  /**
4
5
  * Determines if a drive header matches the Vetra drive criteria.
5
6
  * @param driveHeader - The drive header to check
@@ -26,8 +27,10 @@ export const codegenProcessorFactory = (module) => (driveHeader) => {
26
27
  const vetraConfig = processorsConfig.get(VETRA_PROCESSOR_CONFIG_KEY);
27
28
  // Check if this drive should use the Vetra processor
28
29
  if (!isDriveVetra(driveHeader, vetraConfig?.driveId)) {
30
+ logger.info(`Drive ${driveHeader.slug} is not a Vetra drive, skipping codegen processor`);
29
31
  return [];
30
32
  }
33
+ logger.info(`Drive ${driveHeader.slug} is a Vetra drive, using codegen processor`);
31
34
  const processor = new CodegenProcessor(vetraConfig?.interactive);
32
35
  return [
33
36
  {
@@ -18,7 +18,7 @@ export class CodegenProcessor {
18
18
  }
19
19
  }
20
20
  async onStrands(strands) {
21
- logger.debug(">>> onStrands", strands);
21
+ logger.info(">>> onStrands()");
22
22
  // Filter strands to only include those that should be processed
23
23
  const validStrands = strands.filter((strand) => {
24
24
  const generator = this.manager.getGenerator(strand.documentType);