@haibun/web-playwright 3.1.1 → 3.3.0

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 (108) hide show
  1. package/build/BrowserFactory.d.ts +11 -11
  2. package/build/BrowserFactory.d.ts.map +1 -1
  3. package/build/BrowserFactory.js +40 -46
  4. package/build/BrowserFactory.js.map +1 -1
  5. package/build/PlaywrightEvents.d.ts +2 -2
  6. package/build/PlaywrightEvents.d.ts.map +1 -1
  7. package/build/PlaywrightEvents.js +41 -23
  8. package/build/PlaywrightEvents.js.map +1 -1
  9. package/build/cycles.d.ts.map +1 -1
  10. package/build/cycles.js +82 -36
  11. package/build/cycles.js.map +1 -1
  12. package/build/interactionSteps.d.ts +40 -51
  13. package/build/interactionSteps.d.ts.map +1 -1
  14. package/build/interactionSteps.js +32 -51
  15. package/build/interactionSteps.js.map +1 -1
  16. package/build/rest-playwright.d.ts +25 -22
  17. package/build/rest-playwright.d.ts.map +1 -1
  18. package/build/rest-playwright.js +16 -17
  19. package/build/rest-playwright.js.map +1 -1
  20. package/build/twin-page.d.ts +1 -1
  21. package/build/twin-page.d.ts.map +1 -1
  22. package/build/twin-page.js +4 -8
  23. package/build/twin-page.js.map +1 -1
  24. package/build/web-playwright.d.ts +18 -37
  25. package/build/web-playwright.d.ts.map +1 -1
  26. package/build/web-playwright.js +60 -79
  27. package/build/web-playwright.js.map +1 -1
  28. package/package.json +12 -7
  29. package/build/monitor/MonitorHandler.d.ts +0 -52
  30. package/build/monitor/MonitorHandler.d.ts.map +0 -1
  31. package/build/monitor/MonitorHandler.js +0 -176
  32. package/build/monitor/MonitorHandler.js.map +0 -1
  33. package/build/monitor/artifactDisplays/HtmlArtifactDisplay.d.ts +0 -9
  34. package/build/monitor/artifactDisplays/HtmlArtifactDisplay.d.ts.map +0 -1
  35. package/build/monitor/artifactDisplays/HtmlArtifactDisplay.js +0 -27
  36. package/build/monitor/artifactDisplays/HtmlArtifactDisplay.js.map +0 -1
  37. package/build/monitor/artifactDisplays/ImageArtifactDisplay.d.ts +0 -9
  38. package/build/monitor/artifactDisplays/ImageArtifactDisplay.d.ts.map +0 -1
  39. package/build/monitor/artifactDisplays/ImageArtifactDisplay.js +0 -17
  40. package/build/monitor/artifactDisplays/ImageArtifactDisplay.js.map +0 -1
  41. package/build/monitor/artifactDisplays/JsonArtifactDisplay.d.ts +0 -8
  42. package/build/monitor/artifactDisplays/JsonArtifactDisplay.d.ts.map +0 -1
  43. package/build/monitor/artifactDisplays/JsonArtifactDisplay.js +0 -26
  44. package/build/monitor/artifactDisplays/JsonArtifactDisplay.js.map +0 -1
  45. package/build/monitor/artifactDisplays/JsonArtifactHTTPTrace.d.ts +0 -13
  46. package/build/monitor/artifactDisplays/JsonArtifactHTTPTrace.d.ts.map +0 -1
  47. package/build/monitor/artifactDisplays/JsonArtifactHTTPTrace.js +0 -47
  48. package/build/monitor/artifactDisplays/JsonArtifactHTTPTrace.js.map +0 -1
  49. package/build/monitor/artifactDisplays/ResolvedFeaturesArtifactDisplay.d.ts +0 -9
  50. package/build/monitor/artifactDisplays/ResolvedFeaturesArtifactDisplay.d.ts.map +0 -1
  51. package/build/monitor/artifactDisplays/ResolvedFeaturesArtifactDisplay.js +0 -147
  52. package/build/monitor/artifactDisplays/ResolvedFeaturesArtifactDisplay.js.map +0 -1
  53. package/build/monitor/artifactDisplays/SequenceDiagramGenerator.d.ts +0 -32
  54. package/build/monitor/artifactDisplays/SequenceDiagramGenerator.d.ts.map +0 -1
  55. package/build/monitor/artifactDisplays/SequenceDiagramGenerator.js +0 -258
  56. package/build/monitor/artifactDisplays/SequenceDiagramGenerator.js.map +0 -1
  57. package/build/monitor/artifactDisplays/SpeechArtifactDisplay.d.ts +0 -9
  58. package/build/monitor/artifactDisplays/SpeechArtifactDisplay.d.ts.map +0 -1
  59. package/build/monitor/artifactDisplays/SpeechArtifactDisplay.js +0 -19
  60. package/build/monitor/artifactDisplays/SpeechArtifactDisplay.js.map +0 -1
  61. package/build/monitor/artifactDisplays/VideoArtifactDisplay.d.ts +0 -9
  62. package/build/monitor/artifactDisplays/VideoArtifactDisplay.d.ts.map +0 -1
  63. package/build/monitor/artifactDisplays/VideoArtifactDisplay.js +0 -21
  64. package/build/monitor/artifactDisplays/VideoArtifactDisplay.js.map +0 -1
  65. package/build/monitor/artifactDisplays/VideoStartArtifactDisplay.d.ts +0 -9
  66. package/build/monitor/artifactDisplays/VideoStartArtifactDisplay.d.ts.map +0 -1
  67. package/build/monitor/artifactDisplays/VideoStartArtifactDisplay.js +0 -16
  68. package/build/monitor/artifactDisplays/VideoStartArtifactDisplay.js.map +0 -1
  69. package/build/monitor/artifactDisplays/artifactDisplayBase.d.ts +0 -20
  70. package/build/monitor/artifactDisplays/artifactDisplayBase.d.ts.map +0 -1
  71. package/build/monitor/artifactDisplays/artifactDisplayBase.js +0 -40
  72. package/build/monitor/artifactDisplays/artifactDisplayBase.js.map +0 -1
  73. package/build/monitor/controls.d.ts +0 -13
  74. package/build/monitor/controls.d.ts.map +0 -1
  75. package/build/monitor/controls.js +0 -349
  76. package/build/monitor/controls.js.map +0 -1
  77. package/build/monitor/disclosureJson.d.ts +0 -3
  78. package/build/monitor/disclosureJson.d.ts.map +0 -1
  79. package/build/monitor/disclosureJson.js +0 -353
  80. package/build/monitor/disclosureJson.js.map +0 -1
  81. package/build/monitor/graph/feature-bases.d.ts +0 -5
  82. package/build/monitor/graph/feature-bases.d.ts.map +0 -1
  83. package/build/monitor/graph/feature-bases.js +0 -36
  84. package/build/monitor/graph/feature-bases.js.map +0 -1
  85. package/build/monitor/graph/generateMermaidGraph.d.ts +0 -11
  86. package/build/monitor/graph/generateMermaidGraph.d.ts.map +0 -1
  87. package/build/monitor/graph/generateMermaidGraph.js +0 -314
  88. package/build/monitor/graph/generateMermaidGraph.js.map +0 -1
  89. package/build/monitor/graph/graphUtils.d.ts +0 -3
  90. package/build/monitor/graph/graphUtils.d.ts.map +0 -1
  91. package/build/monitor/graph/graphUtils.js +0 -26
  92. package/build/monitor/graph/graphUtils.js.map +0 -1
  93. package/build/monitor/graph/mermaidGraphLinks.d.ts +0 -3
  94. package/build/monitor/graph/mermaidGraphLinks.d.ts.map +0 -1
  95. package/build/monitor/graph/mermaidGraphLinks.js +0 -26
  96. package/build/monitor/graph/mermaidGraphLinks.js.map +0 -1
  97. package/build/monitor/messages.d.ts +0 -14
  98. package/build/monitor/messages.d.ts.map +0 -1
  99. package/build/monitor/messages.js +0 -359
  100. package/build/monitor/messages.js.map +0 -1
  101. package/build/monitor/monitor.d.ts +0 -25
  102. package/build/monitor/monitor.d.ts.map +0 -1
  103. package/build/monitor/monitor.js +0 -599
  104. package/build/monitor/monitor.js.map +0 -1
  105. package/build/monitor/test-utils.d.ts +0 -9
  106. package/build/monitor/test-utils.d.ts.map +0 -1
  107. package/build/monitor/test-utils.js +0 -70
  108. package/build/monitor/test-utils.js.map +0 -1
@@ -1,9 +0,0 @@
1
- import { TArtifactSpeech } from '@haibun/core/lib/interfaces/logger.js';
2
- import { ArtifactDisplay } from './artifactDisplayBase.js';
3
- export declare class SpeechArtifactDisplay extends ArtifactDisplay {
4
- protected artifact: TArtifactSpeech;
5
- readonly placementTarget = "details";
6
- constructor(artifact: TArtifactSpeech);
7
- render(container: HTMLElement): void;
8
- }
9
- //# sourceMappingURL=SpeechArtifactDisplay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpeechArtifactDisplay.d.ts","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/SpeechArtifactDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,qBAAsB,SAAQ,eAAe;IAG7C,SAAS,CAAC,QAAQ,EAAE,eAAe;IAF/C,QAAQ,CAAC,eAAe,aAAa;gBAEf,QAAQ,EAAE,eAAe;IAIxC,MAAM,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;CAW3C"}
@@ -1,19 +0,0 @@
1
- import { ArtifactDisplay } from './artifactDisplayBase.js';
2
- export class SpeechArtifactDisplay extends ArtifactDisplay {
3
- artifact;
4
- placementTarget = 'details';
5
- constructor(artifact) {
6
- super(artifact);
7
- this.artifact = artifact;
8
- }
9
- render(container) {
10
- const typedArtifact = this.artifact;
11
- container.innerHTML = '';
12
- const audioElement = document.createElement('audio');
13
- audioElement.src = typedArtifact.path;
14
- audioElement.controls = true;
15
- audioElement.style.width = '320px';
16
- container.appendChild(audioElement);
17
- }
18
- }
19
- //# sourceMappingURL=SpeechArtifactDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpeechArtifactDisplay.js","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/SpeechArtifactDisplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IAGnC;IAFb,eAAe,GAAG,SAAS,CAAC;IAErC,YAAsB,QAAyB;QAC9C,KAAK,CAAC,QAAQ,CAAC,CAAC;QADK,aAAQ,GAAR,QAAQ,CAAiB;IAE/C,CAAC;IAEM,MAAM,CAAC,SAAsB;QACnC,MAAM,aAAa,GAAG,IAAI,CAAC,QAA2B,CAAC;QACvD,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC;QAEzB,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACrD,YAAY,CAAC,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC;QACtC,YAAY,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC7B,YAAY,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;QAEnC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IACrC,CAAC;CACD"}
@@ -1,9 +0,0 @@
1
- import { TArtifactVideo } from '@haibun/core/lib/interfaces/logger.js';
2
- import { ArtifactDisplay } from './artifactDisplayBase.js';
3
- export declare class VideoArtifactDisplay extends ArtifactDisplay {
4
- protected artifact: TArtifactVideo;
5
- readonly placementTarget: 'details' | 'haibun-focus';
6
- constructor(artifact: TArtifactVideo);
7
- render(container: HTMLElement): void;
8
- }
9
- //# sourceMappingURL=VideoArtifactDisplay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoArtifactDisplay.d.ts","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/VideoArtifactDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,oBAAqB,SAAQ,eAAe;IAE5C,SAAS,CAAC,QAAQ,EAAE,cAAc;IAD9C,QAAQ,CAAC,eAAe,EAAE,SAAS,GAAG,cAAc,CAAC;gBAC/B,QAAQ,EAAE,cAAc;IAOvC,MAAM,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;CAO3C"}
@@ -1,21 +0,0 @@
1
- import { ArtifactDisplay } from './artifactDisplayBase.js';
2
- export class VideoArtifactDisplay extends ArtifactDisplay {
3
- artifact;
4
- placementTarget;
5
- constructor(artifact) {
6
- super(artifact);
7
- this.artifact = artifact;
8
- this.placementTarget = document.querySelector('#haibun-focus') ? 'haibun-focus' : 'details';
9
- if (this.placementTarget === 'details') {
10
- console.info('Cannot find #haibun-video container; video will be appended to details on toggle.');
11
- }
12
- }
13
- render(container) {
14
- const videoElement = document.createElement('video');
15
- videoElement.controls = false;
16
- videoElement.style.width = '320px';
17
- videoElement.src = this.artifact.path;
18
- container.replaceChildren(videoElement);
19
- }
20
- }
21
- //# sourceMappingURL=VideoArtifactDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoArtifactDisplay.js","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/VideoArtifactDisplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,OAAO,oBAAqB,SAAQ,eAAe;IAElC;IADb,eAAe,CAA6B;IACrD,YAAsB,QAAwB;QAC7C,KAAK,CAAC,QAAQ,CAAC,CAAC;QADK,aAAQ,GAAR,QAAQ,CAAgB;QAE7C,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5F,IAAI,IAAI,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,IAAI,CAAC,mFAAmF,CAAC,CAAC;QACnG,CAAC;IACF,CAAC;IACM,MAAM,CAAC,SAAsB;QACnC,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACrD,YAAY,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC9B,YAAY,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;QACnC,YAAY,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtC,SAAS,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC;CACD"}
@@ -1,9 +0,0 @@
1
- import { TArtifactVideoStart } from '@haibun/core/lib/interfaces/logger.js';
2
- import { ArtifactDisplay } from './artifactDisplayBase.js';
3
- export declare class VideoStartArtifactDisplay extends ArtifactDisplay {
4
- protected artifact: TArtifactVideoStart;
5
- readonly placementTarget = "body";
6
- constructor(artifact: TArtifactVideoStart);
7
- render(container: HTMLElement): void;
8
- }
9
- //# sourceMappingURL=VideoStartArtifactDisplay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoStartArtifactDisplay.d.ts","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/VideoStartArtifactDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,yBAA0B,SAAQ,eAAe;IAEjD,SAAS,CAAC,QAAQ,EAAE,mBAAmB;IADnD,QAAQ,CAAC,eAAe,UAAU;gBACZ,QAAQ,EAAE,mBAAmB;IAG5C,MAAM,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;CAM3C"}
@@ -1,16 +0,0 @@
1
- import { ArtifactDisplay } from './artifactDisplayBase.js';
2
- export class VideoStartArtifactDisplay extends ArtifactDisplay {
3
- artifact;
4
- placementTarget = 'body';
5
- constructor(artifact) {
6
- super(artifact);
7
- this.artifact = artifact;
8
- }
9
- render(container) {
10
- const span = document.createElement('span');
11
- span.id = 'haibun-video-start';
12
- span.dataset.start = `${this.artifact.start}`;
13
- container.replaceChildren(span);
14
- }
15
- }
16
- //# sourceMappingURL=VideoStartArtifactDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoStartArtifactDisplay.js","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/VideoStartArtifactDisplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,OAAO,yBAA0B,SAAQ,eAAe;IAEvC;IADb,eAAe,GAAG,MAAM,CAAC;IAClC,YAAsB,QAA6B;QAClD,KAAK,CAAC,QAAQ,CAAC,CAAC;QADK,aAAQ,GAAR,QAAQ,CAAqB;IAEnD,CAAC;IACM,MAAM,CAAC,SAAsB;QACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,EAAE,GAAG,oBAAoB,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC9C,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACD"}
@@ -1,20 +0,0 @@
1
- import { TArtifact } from '@haibun/core/lib/interfaces/logger.js';
2
- export declare abstract class LogComponent<T extends HTMLElement = HTMLElement> {
3
- readonly element: T;
4
- constructor(tagName: keyof HTMLElementTagNameMap, className?: string | string[]);
5
- append(child: LogComponent | HTMLElement): void;
6
- addClass(className: string): void;
7
- setData(key: string, value: string): void;
8
- setHtml(html: string): void;
9
- setText(text: string): void;
10
- }
11
- export declare abstract class ArtifactDisplay {
12
- protected artifact: TArtifact;
13
- readonly label: string;
14
- abstract readonly placementTarget: 'details' | 'haibun-focus' | 'body' | 'none';
15
- constructor(artifact: TArtifact);
16
- deriveLabel(): string;
17
- abstract render(container: HTMLElement): Promise<void> | void;
18
- get artifactType(): string;
19
- }
20
- //# sourceMappingURL=artifactDisplayBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifactDisplayBase.d.ts","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/artifactDisplayBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE,8BAAsB,YAAY,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACrE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;gBAER,OAAO,EAAE,MAAM,qBAAqB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE;IAQ/E,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,GAAG,IAAI;IAI/C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIjC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAIzC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI3B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAG3B;AAED,8BAAsB,eAAe;IAIxB,SAAS,CAAC,QAAQ,EAAE,SAAS;IAHzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,eAAe,EAAE,SAAS,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;gBAE1D,QAAQ,EAAE,SAAS;IAIzC,WAAW,IAAI,MAAM;aAIL,MAAM,CAAC,SAAS,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAEpE,IAAW,YAAY,IAAI,MAAM,CAEhC;CACD"}
@@ -1,40 +0,0 @@
1
- export class LogComponent {
2
- element;
3
- constructor(tagName, className) {
4
- this.element = document.createElement(tagName);
5
- if (className) {
6
- const classes = Array.isArray(className) ? className : [className];
7
- this.element.classList.add(...classes);
8
- }
9
- }
10
- append(child) {
11
- this.element.appendChild(child instanceof LogComponent ? child.element : child);
12
- }
13
- addClass(className) {
14
- this.element.classList.add(className);
15
- }
16
- setData(key, value) {
17
- this.element.dataset[key] = value;
18
- }
19
- setHtml(html) {
20
- this.element.innerHTML = html;
21
- }
22
- setText(text) {
23
- this.element.textContent = text;
24
- }
25
- }
26
- export class ArtifactDisplay {
27
- artifact;
28
- label;
29
- constructor(artifact) {
30
- this.artifact = artifact;
31
- this.label = this.deriveLabel();
32
- }
33
- deriveLabel() {
34
- return this.artifact.artifactType;
35
- }
36
- get artifactType() {
37
- return this.artifact.artifactType;
38
- }
39
- }
40
- //# sourceMappingURL=artifactDisplayBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artifactDisplayBase.js","sourceRoot":"","sources":["../../../src/monitor/artifactDisplays/artifactDisplayBase.ts"],"names":[],"mappings":"AAEA,MAAM,OAAgB,YAAY;IACxB,OAAO,CAAI;IAEpB,YAAY,OAAoC,EAAE,SAA6B;QAC9E,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAM,CAAC;QACpD,IAAI,SAAS,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YACnE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;QACxC,CAAC;IACF,CAAC;IAED,MAAM,CAAC,KAAiC;QACvC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,YAAY,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACjF,CAAC;IAED,QAAQ,CAAC,SAAiB;QACzB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAa;QACjC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACnC,CAAC;IAED,OAAO,CAAC,IAAY;QACnB,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,OAAO,CAAC,IAAY;QACnB,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IACjC,CAAC;CACD;AAED,MAAM,OAAgB,eAAe;IAId;IAHb,KAAK,CAAS;IAGvB,YAAsB,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QACxC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;IACnC,CAAC;IAID,IAAW,YAAY;QACtB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;IACnC,CAAC;CACD"}
@@ -1,13 +0,0 @@
1
- declare global {
2
- interface Window {
3
- haibunResolvePrompt: (id: string, action: string) => void;
4
- showPromptControls: (prompts: string) => void;
5
- hidePromptControls: () => void;
6
- showStatementInput: () => void;
7
- hideStatementInput: () => void;
8
- submitStatement: (statement: string) => void;
9
- }
10
- }
11
- export declare function setupControls(): void;
12
- export declare function setupVideoPlayback(): void;
13
- //# sourceMappingURL=controls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/monitor/controls.ts"],"names":[],"mappings":"AAKA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;QAC1D,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,kBAAkB,EAAE,MAAM,IAAI,CAAC;QAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;QAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;QAC/B,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;KAC7C;CACD;AAsID,wBAAgB,aAAa,SAwG5B;AAkBD,wBAAgB,kBAAkB,SAwGjC"}
@@ -1,349 +0,0 @@
1
- import { LOG_LEVELS, LOG_LEVEL_TRACE } from '@haibun/core/monitor';
2
- let currentMaxDepth = 6;
3
- let currentLogLevel = LOG_LEVEL_TRACE;
4
- function isVisibleByLevel(entry) {
5
- if (entry.classList.contains('disappeared') &&
6
- !entry.classList.contains('haibun-step-failed') &&
7
- !entry.classList.contains('haibun-ensure-failed')) {
8
- return false;
9
- }
10
- // Hide successful ENSURE_END entries
11
- if (entry.classList.contains('haibun-ensure-end') && !entry.classList.contains('haibun-ensure-failed')) {
12
- return false;
13
- }
14
- // Always show failed steps/ensures
15
- if (entry.classList.contains('haibun-step-failed') || entry.classList.contains('haibun-ensure-failed')) {
16
- return true;
17
- }
18
- // Always show the current executing line
19
- if (entry.classList.contains('haibun-log-entry-current')) {
20
- return true;
21
- }
22
- // Always show active step/ensure starts
23
- if ((entry.classList.contains('haibun-step-start') || entry.classList.contains('haibun-ensure-start')) &&
24
- !entry.classList.contains('disappeared')) {
25
- return true;
26
- }
27
- // Check log level
28
- const selectedIndex = LOG_LEVELS.indexOf(currentLogLevel);
29
- let entryLevelIndex = -1;
30
- for (let i = 0; i < LOG_LEVELS.length; i++) {
31
- if (entry.classList.contains(`haibun-level-${LOG_LEVELS[i]}`)) {
32
- entryLevelIndex = i;
33
- break;
34
- }
35
- }
36
- if (entryLevelIndex !== -1 && entryLevelIndex < selectedIndex) {
37
- return false;
38
- }
39
- return true;
40
- }
41
- function applyDepthFilter() {
42
- const container = document.getElementById('haibun-log-display-area');
43
- if (!container)
44
- return;
45
- // Remove all existing placeholders to ensure clean state
46
- const placeholders = container.querySelectorAll('.haibun-log-depth-placeholder');
47
- placeholders.forEach(p => p.remove());
48
- const entries = Array.from(container.children);
49
- let hiddenCount = 0;
50
- let hiddenGroupStart = null;
51
- let hiddenGroupMaxDepth = 0;
52
- entries.forEach(entry => {
53
- if (!entry.classList.contains('haibun-log-entry'))
54
- return;
55
- // If the entry is hidden by level filter, ignore it completely (don't count, don't break group)
56
- if (!isVisibleByLevel(entry)) {
57
- // Ensure it doesn't have the depth-hidden class so it doesn't interfere with level hiding
58
- entry.classList.remove('haibun-log-depth-hidden');
59
- return;
60
- }
61
- const depth = parseInt(entry.dataset.depth || '0', 10);
62
- if (depth > currentMaxDepth && !entry.classList.contains('haibun-log-entry-current')) {
63
- entry.classList.add('haibun-log-depth-hidden');
64
- if (hiddenCount === 0) {
65
- hiddenGroupStart = entry;
66
- hiddenGroupMaxDepth = depth;
67
- }
68
- else {
69
- hiddenGroupMaxDepth = Math.max(hiddenGroupMaxDepth, depth);
70
- }
71
- hiddenCount++;
72
- }
73
- else {
74
- entry.classList.remove('haibun-log-depth-hidden');
75
- if (hiddenCount > 0 && hiddenGroupStart) {
76
- insertPlaceholder(container, hiddenGroupStart, hiddenCount, hiddenGroupMaxDepth);
77
- hiddenCount = 0;
78
- hiddenGroupStart = null;
79
- hiddenGroupMaxDepth = 0;
80
- }
81
- }
82
- });
83
- if (hiddenCount > 0 && hiddenGroupStart) {
84
- insertPlaceholder(container, hiddenGroupStart, hiddenCount, hiddenGroupMaxDepth);
85
- }
86
- }
87
- function insertPlaceholder(container, refNode, count, maxDepth) {
88
- const placeholder = document.createElement('div');
89
- placeholder.className = 'haibun-log-depth-placeholder';
90
- placeholder.textContent = `~~${count} lines filtered out up to depth ${maxDepth}~~`;
91
- placeholder.style.marginLeft = `${currentMaxDepth * 5}px`;
92
- placeholder.style.cursor = 'pointer';
93
- placeholder.title = 'Click to show these lines';
94
- placeholder.onclick = () => {
95
- const depthInput = document.getElementById('haibun-log-depth');
96
- if (depthInput) {
97
- // Add option if it doesn't exist
98
- let optionExists = false;
99
- for (let i = 0; i < depthInput.options.length; i++) {
100
- if (depthInput.options[i].value === maxDepth.toString()) {
101
- optionExists = true;
102
- break;
103
- }
104
- }
105
- if (!optionExists) {
106
- const option = document.createElement('option');
107
- option.value = maxDepth.toString();
108
- option.textContent = maxDepth.toString();
109
- depthInput.appendChild(option);
110
- }
111
- depthInput.value = maxDepth.toString();
112
- depthInput.dispatchEvent(new Event('change'));
113
- }
114
- };
115
- container.insertBefore(placeholder, refNode);
116
- }
117
- export function setupControls() {
118
- const levelSelect = document.getElementById('haibun-debug-level-select');
119
- const depthInput = document.getElementById('haibun-log-depth');
120
- const updateStyles = (selectedLevel, maxDepth) => {
121
- currentMaxDepth = maxDepth;
122
- currentLogLevel = selectedLevel;
123
- const selectedIndex = LOG_LEVELS.indexOf(selectedLevel);
124
- let css = '';
125
- LOG_LEVELS.forEach((level, index) => {
126
- if (index < selectedIndex) {
127
- // Hide entries below selected level, but NOT active step-start/ensure-start entries or failed steps/ensures
128
- css += `div.haibun-log-entry.haibun-level-${level}:not(.haibun-step-start):not(.haibun-ensure-start):not(.haibun-step-failed):not(.haibun-ensure-failed) { display: none; }\n`;
129
- // Also hide step-start entries that have disappeared (completed) unless they're failed
130
- css += `div.haibun-log-entry.haibun-level-${level}.haibun-step-start.disappeared:not(.haibun-step-failed) { display: none; }\n`;
131
- // Also hide ensure-start entries that have disappeared (completed) unless they're failed
132
- css += `div.haibun-log-entry.haibun-level-${level}.haibun-ensure-start.disappeared:not(.haibun-ensure-failed) { display: none; }\n`;
133
- }
134
- else {
135
- // Show entries at or above selected level that haven't disappeared
136
- css += `div.haibun-log-entry.haibun-level-${level}:not(.disappeared):not(.invisible-future) { display: flex; }\n`;
137
- // Also show active step-starts even if they would normally be hidden
138
- css += `div.haibun-log-entry.haibun-level-${level}.haibun-step-start:not(.disappeared):not(.invisible-future) { display: flex; }\n`;
139
- // Also show active ensure-starts even if they would normally be hidden
140
- css += `div.haibun-log-entry.haibun-level-${level}.haibun-ensure-start:not(.disappeared):not(.invisible-future) { display: flex; }\n`;
141
- }
142
- });
143
- // Show all active (not disappeared) step-start entries regardless of level
144
- css += `div.haibun-log-entry.haibun-step-start:not(.disappeared):not(.invisible-future) { display: flex !important; }\n`;
145
- // Show all active (not disappeared) ensure-start entries regardless of level
146
- css += `div.haibun-log-entry.haibun-ensure-start:not(.disappeared):not(.invisible-future) { display: flex !important; }\n`;
147
- // Hide all disappeared entries UNLESS they're failed or current
148
- css += `div.haibun-log-entry.disappeared:not(.haibun-step-failed):not(.haibun-ensure-failed):not(.haibun-log-entry-current) { display: none !important; }\n`;
149
- // Always show failed steps regardless of disappeared state or log level
150
- css += `div.haibun-log-entry.haibun-step-failed:not(.invisible-future) { display: flex !important; }\n`;
151
- // Always show failed ensures regardless of disappeared state or log level
152
- css += `div.haibun-log-entry.haibun-ensure-failed:not(.invisible-future) { display: flex !important; }\n`;
153
- // Hide successful ENSURE_END entries (they're just for signaling, not display), unless current
154
- css += `div.haibun-log-entry.haibun-ensure-end:not(.haibun-ensure-failed):not(.haibun-log-entry-current) { display: none !important; }\n`;
155
- let styleElement = document.getElementById('haibun-dynamic-styles');
156
- if (!styleElement) {
157
- styleElement = document.createElement('style');
158
- styleElement.id = 'haibun-dynamic-styles';
159
- document.head.appendChild(styleElement);
160
- }
161
- styleElement.textContent = css;
162
- applyDepthFilter();
163
- };
164
- // Populate the select options from LOG_LEVELS (only if empty)
165
- if (levelSelect.options.length === 0) {
166
- LOG_LEVELS.forEach((level) => {
167
- const option = document.createElement('option');
168
- option.value = level;
169
- option.textContent = level.charAt(0).toUpperCase() + level.slice(1);
170
- if (level === LOG_LEVEL_TRACE) {
171
- option.selected = true;
172
- }
173
- levelSelect.appendChild(option);
174
- });
175
- }
176
- // Hard code default to trace
177
- levelSelect.value = LOG_LEVEL_TRACE;
178
- const initialDepth = depthInput ? parseInt(depthInput.value, 10) : 6;
179
- updateStyles(LOG_LEVEL_TRACE, initialDepth);
180
- if (levelSelect) {
181
- levelSelect.addEventListener('change', (event) => {
182
- const target = event.target;
183
- const currentDepth = depthInput ? parseInt(depthInput.value, 10) : 6;
184
- updateStyles(target.value, currentDepth);
185
- });
186
- }
187
- if (depthInput) {
188
- depthInput.addEventListener('change', (event) => {
189
- const target = event.target;
190
- const currentLevel = levelSelect ? levelSelect.value : LOG_LEVEL_TRACE;
191
- updateStyles(currentLevel, parseInt(target.value, 10));
192
- });
193
- }
194
- setupStatementInput();
195
- setupVideoPlayback();
196
- // Add MutationObserver for depth filtering
197
- const logDisplayArea = document.getElementById('haibun-log-display-area');
198
- if (logDisplayArea) {
199
- const observer = new MutationObserver((mutations) => {
200
- let hasLogUpdates = false;
201
- for (const m of mutations) {
202
- m.addedNodes.forEach(node => {
203
- if (node instanceof Element && node.classList.contains('haibun-log-entry')) {
204
- hasLogUpdates = true;
205
- }
206
- });
207
- }
208
- if (hasLogUpdates)
209
- applyDepthFilter();
210
- });
211
- observer.observe(logDisplayArea, { childList: true });
212
- }
213
- }
214
- function setupStatementInput() {
215
- const statementInput = document.getElementById('haibun-statement-input');
216
- if (statementInput) {
217
- statementInput.addEventListener('keydown', (event) => {
218
- if (event.key === 'Enter') {
219
- const statement = statementInput.value.trim();
220
- if (statement) {
221
- window.submitStatement(statement);
222
- }
223
- }
224
- else if (event.key === 'Escape') {
225
- window.hideStatementInput();
226
- }
227
- });
228
- }
229
- }
230
- export function setupVideoPlayback() {
231
- const sequenceDiagram = document.getElementById('sequence-diagram');
232
- const diagramObserver = new MutationObserver((mutations) => {
233
- mutations.forEach((mutation) => {
234
- if (mutation.type === 'childList' && mutation.addedNodes.length > 0 && mutation.target === sequenceDiagram) {
235
- console.info('Sequence diagram content detected.');
236
- diagramObserver.disconnect();
237
- }
238
- });
239
- });
240
- if (sequenceDiagram) {
241
- diagramObserver.observe(sequenceDiagram, { childList: true });
242
- }
243
- // Ensure correct log entry is scrolled into view on static replay (monitor.html)
244
- window.addEventListener('load', () => {
245
- setTimeout(() => {
246
- const currentLatestEntry = document.querySelector('.haibun-log-entry.haibun-stepper-current');
247
- if (currentLatestEntry) {
248
- currentLatestEntry.scrollIntoView({ behavior: 'auto', block: 'nearest' });
249
- }
250
- }, 0);
251
- });
252
- const promptContainer = document.getElementById('haibun-prompt-controls-container');
253
- const rerunButton = document.getElementById('haibun-retry-button');
254
- const nextButton = document.getElementById('haibun-next-button');
255
- const failButton = document.getElementById('haibun-fail-button');
256
- const stepButton = document.getElementById('haibun-step-button');
257
- const continueButton = document.getElementById('haibun-continue-button');
258
- const messageArea = document.getElementById('haibun-prompt-message');
259
- // Store current prompt id and options for button actions
260
- let currentPrompt;
261
- window.showPromptControls = (promptsJson) => {
262
- if (!promptContainer)
263
- return;
264
- const prompts = JSON.parse(promptsJson);
265
- if (!prompts.length) {
266
- promptContainer.style.display = 'none';
267
- promptContainer.classList.remove('paused-program-glow');
268
- if (messageArea)
269
- messageArea.textContent = '';
270
- if (rerunButton)
271
- rerunButton.disabled = true;
272
- if (failButton)
273
- failButton.disabled = true;
274
- if (stepButton)
275
- stepButton.disabled = true;
276
- if (continueButton)
277
- continueButton.disabled = true;
278
- currentPrompt = undefined;
279
- return;
280
- }
281
- // Only show the first outstanding prompt (for classic controls)
282
- const prompt = prompts[0];
283
- currentPrompt = prompt;
284
- if (messageArea)
285
- messageArea.textContent = prompt.message;
286
- // Enable/disable buttons based on options
287
- if (rerunButton)
288
- rerunButton.disabled = !prompt.options?.includes('retry');
289
- if (nextButton)
290
- nextButton.disabled = !prompt.options?.includes('next');
291
- if (failButton)
292
- failButton.disabled = !prompt.options?.includes('fail');
293
- if (stepButton)
294
- stepButton.disabled = !prompt.options?.includes('step');
295
- if (continueButton)
296
- continueButton.disabled = !prompt.options?.includes('continue');
297
- promptContainer.classList.add('paused-program-glow');
298
- promptContainer.style.display = 'flex';
299
- };
300
- window.hidePromptControls = () => {
301
- if (!promptContainer)
302
- return;
303
- promptContainer.style.display = 'none';
304
- promptContainer.classList.remove('paused-program-glow');
305
- if (messageArea)
306
- messageArea.textContent = '';
307
- if (rerunButton)
308
- rerunButton.disabled = true;
309
- if (failButton)
310
- failButton.disabled = true;
311
- if (stepButton)
312
- stepButton.disabled = true;
313
- if (continueButton)
314
- continueButton.disabled = true;
315
- currentPrompt = undefined;
316
- };
317
- if (rerunButton) {
318
- rerunButton.addEventListener('click', () => {
319
- if (currentPrompt)
320
- window.haibunResolvePrompt(currentPrompt.id, 'retry');
321
- });
322
- }
323
- if (nextButton) {
324
- nextButton.addEventListener('click', () => {
325
- if (currentPrompt)
326
- window.haibunResolvePrompt(currentPrompt.id, 'next');
327
- });
328
- }
329
- if (failButton) {
330
- failButton.addEventListener('click', () => {
331
- if (currentPrompt)
332
- window.haibunResolvePrompt(currentPrompt.id, 'fail');
333
- });
334
- }
335
- if (stepButton) {
336
- stepButton.addEventListener('click', () => {
337
- if (currentPrompt)
338
- window.haibunResolvePrompt(currentPrompt.id, 'step');
339
- });
340
- }
341
- if (continueButton) {
342
- continueButton.addEventListener('click', () => {
343
- if (currentPrompt)
344
- window.haibunResolvePrompt(currentPrompt.id, 'continue');
345
- });
346
- }
347
- window.hidePromptControls();
348
- }
349
- //# sourceMappingURL=controls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"controls.js","sourceRoot":"","sources":["../../src/monitor/controls.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,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AAC;IACD,IAAI,UAAU,EAAE,CAAC;QAChB,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACzC,IAAI,aAAa;gBAAE,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,UAAU,EAAE,CAAC;QAChB,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACzC,IAAI,aAAa;gBAAE,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACzE,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,cAAc,EAAE,CAAC;QACpB,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YAC7C,IAAI,aAAa;gBAAE,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC7E,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,kBAAkB,EAAE,CAAC;AAC7B,CAAC"}
@@ -1,3 +0,0 @@
1
- import { TAnyFixme } from "@haibun/core/lib/fixme.js";
2
- export declare function disclosureJson(jsonObj: TAnyFixme): HTMLElement | undefined;
3
- //# sourceMappingURL=disclosureJson.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"disclosureJson.d.ts","sourceRoot":"","sources":["../../src/monitor/disclosureJson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAmFtD,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAgC1E"}