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/dist/plugin-catalog.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { MesurerPlugin } from "./core";
|
|
|
2
2
|
type MesurerPluginRegistryEntry = {
|
|
3
3
|
id: string;
|
|
4
4
|
label?: string;
|
|
5
|
+
description?: string;
|
|
5
6
|
order?: number;
|
|
6
7
|
enabled?: boolean;
|
|
7
8
|
create(): MesurerPlugin | Promise<MesurerPlugin>;
|
|
@@ -11,7 +12,10 @@ type MesurerPluginRegistryEntry = {
|
|
|
11
12
|
export type MesurerPluginCatalogEntry = {
|
|
12
13
|
id: string;
|
|
13
14
|
label: string;
|
|
15
|
+
description?: string;
|
|
14
16
|
order?: number;
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
optIn?: boolean;
|
|
15
19
|
create(): MesurerPlugin;
|
|
16
20
|
settingsIds?: string[];
|
|
17
21
|
hiddenSettingsControlIds?: string[];
|
|
@@ -27,7 +31,7 @@ export declare const MESURER_FIRST_PARTY_PLUGINS: readonly MesurerPluginCatalogE
|
|
|
27
31
|
/**
|
|
28
32
|
* Resolve the single renderer plugin registry for one mount.
|
|
29
33
|
*
|
|
30
|
-
* With no explicit `plugins`,
|
|
34
|
+
* With no explicit `plugins`, first-party registrations use their catalog defaults.
|
|
31
35
|
* When callers provide `plugins`, that list is the initial enabled set while
|
|
32
36
|
* omitted first-party registrations remain known to Settings and can be enabled
|
|
33
37
|
* later. Explicit first-party instances retain their caller-supplied options
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { MesurerPlugin } from "
|
|
1
|
+
import type { MesurerPlugin } from "../../core";
|
|
2
2
|
export declare const MESURER_CODEX_PLUGIN_ID = "mesurer.codex";
|
|
3
3
|
export declare const MESURER_CODEX_SERVICE_ID = "codex:v1";
|
|
4
4
|
export type MesurerCodexPluginOptions = {
|
|
5
|
-
/** Loopback bridge URL. Defaults to http://127.0.0.1:47365. */
|
|
6
|
-
endpoint?: string;
|
|
7
5
|
/** Default instruction prepended to Mesurer evidence. */
|
|
8
6
|
instruction?: string;
|
|
9
7
|
/** Show the Queue to Codex toolbar action. Defaults to true. */
|
|
@@ -16,13 +14,13 @@ export type MesurerCodexQueueRequest = {
|
|
|
16
14
|
instruction?: string;
|
|
17
15
|
/** Queue only these saved annotation ids. When omitted, all saved annotations are queued. */
|
|
18
16
|
annotationIds?: string[];
|
|
19
|
-
/** Queue to a particular
|
|
17
|
+
/** Queue to a particular loaded Codex thread for this request. */
|
|
20
18
|
thread?: string;
|
|
21
19
|
};
|
|
22
20
|
/** @deprecated Use `MesurerCodexQueueRequest`. */
|
|
23
21
|
export type MesurerCodexSendRequest = MesurerCodexQueueRequest;
|
|
24
22
|
export type MesurerCodexDeliveryStatus = "queued" | "working" | "completed" | "interrupted";
|
|
25
|
-
export type MesurerCodexDispatchStatus = "
|
|
23
|
+
export type MesurerCodexDispatchStatus = "persisted" | "desktop-opened" | "desktop-wake-failed";
|
|
26
24
|
export type MesurerCodexDelivery = {
|
|
27
25
|
id: string;
|
|
28
26
|
thread: string;
|
|
@@ -30,9 +28,9 @@ export type MesurerCodexDelivery = {
|
|
|
30
28
|
turnId: string | null;
|
|
31
29
|
/** Codex's durable queue identity when the current CLI reports it. */
|
|
32
30
|
queuedSubmissionId?: string | null;
|
|
33
|
-
/**
|
|
31
|
+
/** Codex delivery state after Codex durably accepted the queue item. */
|
|
34
32
|
dispatch?: MesurerCodexDispatchStatus;
|
|
35
|
-
/**
|
|
33
|
+
/** Optional Codex lifecycle diagnostic. */
|
|
36
34
|
dispatchError?: string | null;
|
|
37
35
|
createdAt: number;
|
|
38
36
|
updatedAt: number;
|
|
@@ -42,12 +40,12 @@ export type MesurerCodexQueueResult = {
|
|
|
42
40
|
output: string;
|
|
43
41
|
/** Mesurer currently delivers feedback as a queued Codex follow-up, never as an in-flight steer. */
|
|
44
42
|
delivery: "queued";
|
|
45
|
-
/**
|
|
43
|
+
/** Delivery id. Null only when talking to an older compatible bridge. */
|
|
46
44
|
deliveryId: string | null;
|
|
47
45
|
status: MesurerCodexDeliveryStatus;
|
|
48
46
|
/** Codex's durable queue identity when the current CLI reports it. */
|
|
49
47
|
queuedSubmissionId?: string | null;
|
|
50
|
-
/**
|
|
48
|
+
/** Codex delivery state after Codex durably accepted the queue item. */
|
|
51
49
|
dispatch?: MesurerCodexDispatchStatus;
|
|
52
50
|
/** Non-fatal wake diagnostic when persistence succeeded but dispatch could not be verified. */
|
|
53
51
|
dispatchError?: string | null;
|
|
@@ -57,42 +55,42 @@ export type MesurerCodexQueueResult = {
|
|
|
57
55
|
/** @deprecated Use `MesurerCodexQueueResult`. */
|
|
58
56
|
export type MesurerCodexSendResult = MesurerCodexQueueResult;
|
|
59
57
|
export type MesurerCodexHealth = {
|
|
60
|
-
/** Current
|
|
58
|
+
/** Current loaded Codex target. Null when no loaded Codex thread is selected. */
|
|
61
59
|
thread: string | null;
|
|
62
|
-
/**
|
|
60
|
+
/** Codex threads currently available through the selected plugin-owned transport. */
|
|
63
61
|
threads: string[];
|
|
64
62
|
};
|
|
65
63
|
export type MesurerCodexThread = {
|
|
66
64
|
id: string;
|
|
67
65
|
title: string;
|
|
68
66
|
updatedAt: number | null;
|
|
69
|
-
/** True when
|
|
67
|
+
/** True when this thread currently accepts queue delivery through the active Codex transport. */
|
|
70
68
|
connected: boolean;
|
|
71
69
|
};
|
|
72
70
|
export type MesurerCodexThreadList = {
|
|
73
|
-
/**
|
|
71
|
+
/** Current loaded Codex target when one is selected. */
|
|
74
72
|
thread: string | null;
|
|
75
|
-
/**
|
|
73
|
+
/** Loaded Codex threads, current target first when available. */
|
|
76
74
|
threads: MesurerCodexThread[];
|
|
77
75
|
/** Whether Codex reported more threads beyond this bounded list. */
|
|
78
76
|
hasMore: boolean;
|
|
79
77
|
};
|
|
80
78
|
export type MesurerCodexThreadListOptions = {
|
|
81
|
-
/** Maximum number of threads to return.
|
|
79
|
+
/** Maximum number of threads to return. Codex Bridge clamps this to 10. */
|
|
82
80
|
limit?: number;
|
|
83
|
-
/**
|
|
81
|
+
/** Loaded thread to place first when it remains available. */
|
|
84
82
|
thread?: string;
|
|
85
83
|
};
|
|
86
84
|
export type MesurerCodexService = {
|
|
87
85
|
health(): Promise<MesurerCodexHealth>;
|
|
88
86
|
/** List recent Codex threads for the current Mesurer project through Codex app-server. */
|
|
89
87
|
listThreads(options?: MesurerCodexThreadListOptions): Promise<MesurerCodexThreadList>;
|
|
90
|
-
/** Switch the
|
|
88
|
+
/** Switch the current loaded Codex target to a currently loaded Codex thread. */
|
|
91
89
|
useThread(thread: string): Promise<MesurerCodexHealth>;
|
|
92
|
-
/** Read lifecycle state for one
|
|
90
|
+
/** Read lifecycle state for one Codex-tracked delivery. */
|
|
93
91
|
delivery(deliveryId: string): Promise<MesurerCodexDelivery>;
|
|
94
92
|
/**
|
|
95
|
-
* Queue Context for the page-pinned/default target or one explicit
|
|
93
|
+
* Queue Context for the page-pinned/default target or one explicit loaded thread.
|
|
96
94
|
* This does not steer or interrupt an in-flight Codex turn.
|
|
97
95
|
*/
|
|
98
96
|
queue(request?: MesurerCodexQueueRequest): Promise<MesurerCodexQueueResult>;
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { arrange } from "./arrange";
|
|
2
|
-
import { codex } from "./codex
|
|
2
|
+
import { codex } from "./plugins/codex";
|
|
3
3
|
import { context } from "./context-plugin";
|
|
4
4
|
import { layoutGuides } from "./layout-guides";
|
|
5
5
|
import type { MesurerPlugin } from "./core";
|
|
@@ -17,8 +17,8 @@ export declare const compose: (plugins?: MesurerPlugin[], exclude?: Array<"selec
|
|
|
17
17
|
export { arrange, codex, context, layoutGuides, screenshot };
|
|
18
18
|
export { MESURER_ARRANGE_ACTIVE_STATE_ID, MESURER_ARRANGE_PLUGIN_ID, MESURER_ARRANGE_SERVICE_ID, MESURER_ARRANGE_SETTINGS_STATE_ID, MESURER_ARRANGE_STATE_ID, } from "./arrange";
|
|
19
19
|
export type { ArrangeCapturePlan, ArrangeElementFingerprint, ArrangeIntent, ArrangeOffset, ArrangePresentation, ArrangeRect, ArrangeReview, ArrangeReviewTarget, ArrangeTarget, MesurerArrangeService, MesurerArrangeSettings, } from "./arrange";
|
|
20
|
-
export { MESURER_CODEX_PLUGIN_ID, MESURER_CODEX_SERVICE_ID, } from "./codex
|
|
21
|
-
export type { MesurerCodexDelivery, MesurerCodexDeliveryStatus, MesurerCodexHealth, MesurerCodexPluginOptions, MesurerCodexQueueRequest, MesurerCodexQueueResult, MesurerCodexSendRequest, MesurerCodexSendResult, MesurerCodexService, MesurerCodexThread, MesurerCodexThreadList, MesurerCodexThreadListOptions, } from "./codex
|
|
20
|
+
export { MESURER_CODEX_PLUGIN_ID, MESURER_CODEX_SERVICE_ID, } from "./plugins/codex";
|
|
21
|
+
export type { MesurerCodexDelivery, MesurerCodexDeliveryStatus, MesurerCodexHealth, MesurerCodexPluginOptions, MesurerCodexQueueRequest, MesurerCodexQueueResult, MesurerCodexSendRequest, MesurerCodexSendResult, MesurerCodexService, MesurerCodexThread, MesurerCodexThreadList, MesurerCodexThreadListOptions, } from "./plugins/codex";
|
|
22
22
|
export { MESURER_CONTEXT_PLUGIN_ID, MESURER_CONTEXT_SERVICE_ID, MESURER_CONTEXT_SETTINGS_STATE_ID, } from "./context-plugin";
|
|
23
23
|
export type { MesurerContextPluginOptions, MesurerContextService, } from "./context-plugin";
|
|
24
24
|
export { MESURER_LAYOUT_GUIDES_ACTIVE_STATE_ID, MESURER_LAYOUT_GUIDES_PLUGIN_ID, MESURER_LAYOUT_GUIDES_SERVICE_ID, MESURER_LAYOUT_GUIDES_STATE_ID, } from "./layout-guides";
|