@backtrack-js/browser 0.5.3 → 0.5.4

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.
Files changed (45) hide show
  1. package/README.md +56 -54
  2. package/bin/cli.cjs +5 -2
  3. package/bin/export-context.cjs +50 -0
  4. package/bin/mcp.cjs +19 -0
  5. package/bin/symbolize.cjs +214 -66
  6. package/dist/capturers/browser.d.ts +18 -0
  7. package/dist/capturers/errors.d.ts +3 -1
  8. package/dist/capturers/network.d.ts +11 -1
  9. package/dist/capturers/rrweb.d.ts +2 -0
  10. package/dist/capturers/sanitizer.d.ts +1 -0
  11. package/dist/core/flight-recorder.d.ts +9 -0
  12. package/dist/dev-server.cjs +3 -6
  13. package/dist/dev-server.js +128 -90
  14. package/dist/incident-reports-9iXHIaBD.js +1242 -0
  15. package/dist/incident-reports-Cjos7N-u.cjs +51 -0
  16. package/dist/index.cjs +53 -38
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.js +2357 -2079
  19. package/dist/mcp/server.d.ts +5 -0
  20. package/dist/mcp.cjs +2 -0
  21. package/dist/mcp.js +203 -0
  22. package/dist/storage/batch-writer.d.ts +6 -0
  23. package/dist/storage/incident-manager.d.ts +10 -6
  24. package/dist/types/artifact.d.ts +50 -0
  25. package/dist/types/browser-context.d.ts +34 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/types/options.d.ts +15 -0
  28. package/dist/types/timeline.d.ts +11 -0
  29. package/dist/types/visual-proposal.d.ts +1 -0
  30. package/dist/utils/context-package.d.ts +4 -0
  31. package/dist/utils/incident-query.d.ts +93 -0
  32. package/dist/utils/incident-reports.d.ts +18 -0
  33. package/dist/utils/interactions.d.ts +13 -0
  34. package/dist/utils/markdown.d.ts +3 -0
  35. package/dist/validation/structure.d.ts +11 -0
  36. package/dist/validation/validate.d.ts +3 -1
  37. package/dist/viewer/assets/index-BNTvj2zy.js +337 -0
  38. package/dist/viewer/assets/{index-092olPra.css → index-DXHvcqkw.css} +1 -1
  39. package/dist/viewer/index.html +2 -2
  40. package/dist/widget/element-editor.d.ts +7 -0
  41. package/dist/widget/widget.d.ts +9 -2
  42. package/package.json +113 -99
  43. package/dist/markdown-Ao5Ah9MF.cjs +0 -8
  44. package/dist/markdown-D3C94OlY.js +0 -493
  45. package/dist/viewer/assets/index-BkV3C4kX.js +0 -197
@@ -8,12 +8,14 @@ export interface ValidationFailure {
8
8
  errors: string[];
9
9
  }
10
10
  export type ValidationResult = ValidationSuccess | ValidationFailure;
11
+ export declare const MAX_INCIDENT_DESCRIPTION_LENGTH = 4000;
12
+ export declare const isIncidentDescriptionText: (value: unknown) => value is string;
11
13
  /**
12
14
  * Valida se annotationImage é estritamente uma imagem data:base64 segura (png, jpeg ou webp),
13
15
  * rejeitando http:, https:, javascript:, file: e payloads acima de 10 MB.
14
16
  */
15
17
  export declare function isValidAnnotationImage(value: unknown): value is string;
16
- /** Validates the envelope and the minimum rrweb payload before handing it to the player. */
18
+ /** Validates the envelope and known rrweb collections before handing them to the player. */
17
19
  export declare function isReplayEvent(value: unknown): boolean;
18
20
  /**
19
21
  * Valida a integridade e o schema de um artefato .ffr.json do Flight Recorder.