@lensmcp/protocol-types 1.24.5 → 1.25.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.
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/lib/capture-demand.d.ts +13 -0
- package/lib/capture-demand.js +1 -1
- package/lib/dashboard.d.ts +1971 -0
- package/lib/dashboard.js +1 -1
- package/lib/event.d.ts +2 -0
- package/lib/event.js +1 -1
- package/lib/http-exchange.d.ts +80 -0
- package/lib/http-exchange.js +1 -0
- package/lib/log-query.d.ts +30 -0
- package/lib/log-query.js +1 -0
- package/lib/resources.d.ts +12 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@ export * from './lib/bounded-clone.js';
|
|
|
13
13
|
export * from './lib/bounded-map.js';
|
|
14
14
|
export * from './lib/flood-guard.js';
|
|
15
15
|
export * from './lib/dashboard.js';
|
|
16
|
+
export * from './lib/log-query.js';
|
|
16
17
|
export * from './lib/error-dismissal.js';
|
|
17
18
|
export * from './lib/ai-content.js';
|
|
19
|
+
export * from './lib/http-exchange.js';
|
|
18
20
|
export * from './lib/pod-memory.js';
|
|
19
21
|
export * from './lib/perf-rules.js';
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export*from"./lib/schema-version.js";export*from"./lib/source-location.js";export*from"./lib/context.js";export*from"./lib/event.js";export*from"./lib/node.js";export*from"./lib/edge.js";export*from"./lib/attributes.js";export*from"./lib/producer-health.js";export*from"./lib/resources.js";export*from"./lib/tokens.js";export*from"./lib/capture-demand.js";export*from"./lib/bounded-clone.js";export*from"./lib/bounded-map.js";export*from"./lib/flood-guard.js";export*from"./lib/dashboard.js";export*from"./lib/error-dismissal.js";export*from"./lib/ai-content.js";export*from"./lib/pod-memory.js";export*from"./lib/perf-rules.js";
|
|
1
|
+
"use strict";export*from"./lib/schema-version.js";export*from"./lib/source-location.js";export*from"./lib/context.js";export*from"./lib/event.js";export*from"./lib/node.js";export*from"./lib/edge.js";export*from"./lib/attributes.js";export*from"./lib/producer-health.js";export*from"./lib/resources.js";export*from"./lib/tokens.js";export*from"./lib/capture-demand.js";export*from"./lib/bounded-clone.js";export*from"./lib/bounded-map.js";export*from"./lib/flood-guard.js";export*from"./lib/dashboard.js";export*from"./lib/log-query.js";export*from"./lib/error-dismissal.js";export*from"./lib/ai-content.js";export*from"./lib/http-exchange.js";export*from"./lib/pod-memory.js";export*from"./lib/perf-rules.js";
|
package/lib/capture-demand.d.ts
CHANGED
|
@@ -57,7 +57,20 @@ export interface CaptureRequest {
|
|
|
57
57
|
stable: boolean;
|
|
58
58
|
/** Opaque id, so a reader can tell two same-millisecond requests apart. */
|
|
59
59
|
requestId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Which frontend app to capture — its project name, its dev URL, or that URL's port. Every runner of a workspace
|
|
62
|
+
* watches the one request file; without it each would launch its own browser and the requester would get whichever
|
|
63
|
+
* frame landed last (issues/closed/foodguard-73). A runner whose page it does not name ignores the request.
|
|
64
|
+
*/
|
|
65
|
+
app?: string;
|
|
60
66
|
}
|
|
67
|
+
/** The page a capture runner captures: its dev URL, and the frontend project it belongs to when known. */
|
|
68
|
+
export interface CapturePage {
|
|
69
|
+
url: string;
|
|
70
|
+
project?: string;
|
|
71
|
+
}
|
|
72
|
+
/** Does `app` (a project name, a URL, or a port) name this page? Pure — both sides of the contract use it. */
|
|
73
|
+
export declare function appMatchesPage(app: string, page: CapturePage): boolean;
|
|
61
74
|
/**
|
|
62
75
|
* Session-rules file name (same directory).
|
|
63
76
|
*
|
package/lib/capture-demand.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export const CAPTURE_REQUEST_FILENAME="capture-request.json",CAPTURE_PRESENCE_FILENAME="capture-runner.json",CAPTURE_RULES_FILENAME="capture-rules.json";
|
|
1
|
+
"use strict";var c=Object.defineProperty;var o=(t,e)=>c(t,"name",{value:e,configurable:!0});var s=Object.defineProperty,u=o((t,e)=>s(t,"name",{value:e,configurable:!0}),"s");export const CAPTURE_REQUEST_FILENAME="capture-request.json",CAPTURE_PRESENCE_FILENAME="capture-runner.json";export function appMatchesPage(t,e){const r=t.trim().toLowerCase();if(!r)return!1;if(e.project&&e.project.toLowerCase()===r)return!0;const n=e.url.toLowerCase();if(n===r||n.replace(/\/+$/,"")===r.replace(/\/+$/,""))return!0;try{const a=new URL(e.url);return/^\d+$/.test(r)?a.port===r:a.origin.toLowerCase()===r.replace(/\/+$/,"")}catch{return!1}}o(appMatchesPage,"appMatchesPage"),u(appMatchesPage,"appMatchesPage");export const CAPTURE_RULES_FILENAME="capture-rules.json";
|