workflow-agent-cli 2.18.0 → 2.18.1

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/cli/index.js CHANGED
@@ -5833,8 +5833,8 @@ async function learnApplyCommand(patternId, options) {
5833
5833
  chalk16.yellow("\n\u{1F4CB} DRY-RUN MODE: No changes will be applied\n")
5834
5834
  );
5835
5835
  }
5836
- const framework = options.framework ?? patternData.compatibility.frameworks[0]?.name ?? "unknown";
5837
- const version = options.version ?? patternData.compatibility.frameworks[0]?.version ?? "0.0.0";
5836
+ const framework = options.framework ?? patternData.compatibility?.frameworks?.[0]?.name ?? "unknown";
5837
+ const version = options.version ?? patternData.compatibility?.frameworks?.[0]?.version ?? "0.0.0";
5838
5838
  await telemetry.recordApplication(patternId, patternType, framework, version);
5839
5839
  if (patternType === "fix") {
5840
5840
  const fixPattern = patternData;