mesurer-solid 0.2.0-beta.8 → 0.2.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/AGENT_INTEGRATION.md +8 -13
- package/README.md +13 -21
- package/dist/arrange.d.ts +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2193 -1828
- package/dist/inject-script.js +23 -14
- package/dist/inject.js +2188 -1823
- package/dist/plugin-catalog.d.ts +5 -1
- package/dist/{codex-plugin.d.ts → plugins/codex/index.d.ts} +17 -19
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +1445 -1090
- package/package.json +8 -9
- package/plugins/codex/bridge.d.ts +63 -0
- package/plugins/codex/bridge.mjs +1304 -0
- package/plugins/codex/desktop.mjs +155 -0
- package/scripts/install-skill.mjs +1 -10
- package/skills/mesurer-ui/SKILL.md +12 -29
- package/codex/codex-bridge.mjs +0 -2037
- package/codex/codex-connect.mjs +0 -324
- package/codex/codex-lifecycle.mjs +0 -51
- package/scripts/codex-bridge.mjs +0 -2
- package/scripts/codex-connect.mjs +0 -2
- package/scripts/codex-lifecycle.mjs +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mesurer-solid",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Framework-agnostic UI measurement and inspection tools for browser apps and coding agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
"module": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"bin": {
|
|
11
|
-
"mesurer-skill": "scripts/install-skill.mjs"
|
|
12
|
-
"mesurer-codex": "scripts/codex-bridge.mjs",
|
|
13
|
-
"mesurer-codex-connect": "scripts/codex-connect.mjs"
|
|
11
|
+
"mesurer-skill": "scripts/install-skill.mjs"
|
|
14
12
|
},
|
|
15
13
|
"exports": {
|
|
16
14
|
".": {
|
|
@@ -30,16 +28,17 @@
|
|
|
30
28
|
"import": "./dist/inject.js"
|
|
31
29
|
},
|
|
32
30
|
"./inject-script": "./dist/inject-script.js",
|
|
33
|
-
"./package.json": "./package.json"
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./plugins/codex/bridge": {
|
|
33
|
+
"types": "./plugins/codex/bridge.d.ts",
|
|
34
|
+
"default": "./plugins/codex/bridge.mjs"
|
|
35
|
+
}
|
|
34
36
|
},
|
|
35
37
|
"files": [
|
|
36
38
|
"dist",
|
|
37
39
|
"skills",
|
|
38
|
-
"codex",
|
|
40
|
+
"plugins/codex",
|
|
39
41
|
"scripts/install-skill.mjs",
|
|
40
|
-
"scripts/codex-bridge.mjs",
|
|
41
|
-
"scripts/codex-connect.mjs",
|
|
42
|
-
"scripts/codex-lifecycle.mjs",
|
|
43
42
|
"README.md",
|
|
44
43
|
"AGENT_INTEGRATION.md",
|
|
45
44
|
"LICENSE",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type CodexBridgeAction =
|
|
2
|
+
| "runtime"
|
|
3
|
+
| "health"
|
|
4
|
+
| "threads"
|
|
5
|
+
| "target"
|
|
6
|
+
| "queue"
|
|
7
|
+
| "delivery"
|
|
8
|
+
| "restore";
|
|
9
|
+
|
|
10
|
+
export type CodexBridgeRequest = {
|
|
11
|
+
action: CodexBridgeAction;
|
|
12
|
+
thread?: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
message?: string;
|
|
15
|
+
deliveryId?: string;
|
|
16
|
+
queuedSubmissionId?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type CodexBridgeOptions = {
|
|
20
|
+
/** Explicit Codex executable. Shared mode may use it to start the daemon; inherited Desktop mode may use it only for durable queue submission. */
|
|
21
|
+
codex?: string;
|
|
22
|
+
/** Codex state directory. Defaults to CODEX_HOME, then ~/.codex. */
|
|
23
|
+
codexHome?: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type CodexBridgeRuntime = {
|
|
27
|
+
source: "shared" | "standalone" | "desktop" | "none";
|
|
28
|
+
transport: "shared-app-server" | "desktop-queue" | "private-stdio" | "none";
|
|
29
|
+
available: boolean;
|
|
30
|
+
reason: "desktop-private-transport" | "runtime-not-found" | null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type CodexBridgeThread = {
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
updatedAt: number | null;
|
|
37
|
+
connected: true;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type CodexBridgeResponse = {
|
|
41
|
+
ok: true;
|
|
42
|
+
runtime?: CodexBridgeRuntime;
|
|
43
|
+
thread?: string | null;
|
|
44
|
+
threads?: string[];
|
|
45
|
+
threadDetails?: CodexBridgeThread[];
|
|
46
|
+
hasMore?: boolean;
|
|
47
|
+
output?: string;
|
|
48
|
+
delivery?: "queued";
|
|
49
|
+
deliveryId?: string;
|
|
50
|
+
status?: "queued" | "working" | "completed" | "interrupted";
|
|
51
|
+
turnId?: string | null;
|
|
52
|
+
queuedSubmissionId?: string | null;
|
|
53
|
+
dispatch?: "persisted" | "desktop-opened" | "desktop-wake-failed" | null;
|
|
54
|
+
dispatchError?: string | null;
|
|
55
|
+
createdAt?: number;
|
|
56
|
+
updatedAt?: number;
|
|
57
|
+
restored?: boolean;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export function codexBridge(
|
|
61
|
+
request: CodexBridgeRequest,
|
|
62
|
+
options?: CodexBridgeOptions,
|
|
63
|
+
): Promise<CodexBridgeResponse>;
|