@agent-scope/render 1.20.0 → 1.20.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/index.d.cts CHANGED
@@ -422,7 +422,7 @@ declare function contextAxis(ids?: CompositionContextId[]): {
422
422
  * likely root cause. Callers can use these to surface actionable messages
423
423
  * to the user without needing to parse raw error messages.
424
424
  */
425
- type HeuristicFlag = "MISSING_PROVIDER" | "UNDEFINED_PROP" | "TYPE_MISMATCH" | "NETWORK_REQUIRED" | "ASYNC_NOT_SUSPENDED" | "HOOK_CALL_VIOLATION" | "ELEMENT_TYPE_INVALID" | "HYDRATION_MISMATCH" | "CIRCULAR_DEPENDENCY" | "UNKNOWN_ERROR";
425
+ type HeuristicFlag = "MISSING_PROVIDER" | "UNDEFINED_PROP" | "TYPE_MISMATCH" | "NETWORK_REQUIRED" | "ASYNC_NOT_SUSPENDED" | "HOOK_CALL_VIOLATION" | "ELEMENT_TYPE_INVALID" | "HYDRATION_MISMATCH" | "CIRCULAR_DEPENDENCY" | "MISSING_BROWSER_BINARY" | "MISSING_PROJECT_DEPENDENCY" | "UNKNOWN_ERROR";
426
426
  /**
427
427
  * The file/line/column origin of a component as recorded in the manifest.
428
428
  */
package/dist/index.d.ts CHANGED
@@ -422,7 +422,7 @@ declare function contextAxis(ids?: CompositionContextId[]): {
422
422
  * likely root cause. Callers can use these to surface actionable messages
423
423
  * to the user without needing to parse raw error messages.
424
424
  */
425
- type HeuristicFlag = "MISSING_PROVIDER" | "UNDEFINED_PROP" | "TYPE_MISMATCH" | "NETWORK_REQUIRED" | "ASYNC_NOT_SUSPENDED" | "HOOK_CALL_VIOLATION" | "ELEMENT_TYPE_INVALID" | "HYDRATION_MISMATCH" | "CIRCULAR_DEPENDENCY" | "UNKNOWN_ERROR";
425
+ type HeuristicFlag = "MISSING_PROVIDER" | "UNDEFINED_PROP" | "TYPE_MISMATCH" | "NETWORK_REQUIRED" | "ASYNC_NOT_SUSPENDED" | "HOOK_CALL_VIOLATION" | "ELEMENT_TYPE_INVALID" | "HYDRATION_MISMATCH" | "CIRCULAR_DEPENDENCY" | "MISSING_BROWSER_BINARY" | "MISSING_PROJECT_DEPENDENCY" | "UNKNOWN_ERROR";
426
426
  /**
427
427
  * The file/line/column origin of a component as recorded in the manifest.
428
428
  */
package/dist/index.js CHANGED
@@ -675,6 +675,12 @@ function detectHeuristicFlags(errorMessage, componentStack) {
675
675
  if (combined.includes("hydrat") || combined.includes("did not match") || combined.includes("server rendered html")) {
676
676
  flags.add("HYDRATION_MISMATCH");
677
677
  }
678
+ if (combined.includes("executable doesn't exist") || combined.includes("browserType.launch") || combined.includes("could not find chromium") || combined.includes("please run the following command to download new browsers")) {
679
+ flags.add("MISSING_BROWSER_BINARY");
680
+ }
681
+ if (combined.includes("could not resolve") || combined.includes("cannot find module") || combined.includes("module not found")) {
682
+ flags.add("MISSING_PROJECT_DEPENDENCY");
683
+ }
678
684
  if (combined.includes("circular") || combined.includes("maximum call stack") || combined.includes("stack overflow")) {
679
685
  flags.add("CIRCULAR_DEPENDENCY");
680
686
  }