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.
@@ -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`, every first-party registration starts enabled.
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 "./core";
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 bridge-visible Codex thread for this request. */
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 = "persisting" | "persisted" | "resumed" | "already-loaded" | "unsupported" | "wake-failed" | "untracked" | "desktop-local" | "waiting-active" | "desktop-sent" | "desktop-opened" | "desktop-send-uncertain" | "desktop-wait-failed";
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
- /** Bridge-side dispatch action after Codex durably accepted the queue item. */
31
+ /** Codex delivery state after Codex durably accepted the queue item. */
34
32
  dispatch?: MesurerCodexDispatchStatus;
35
- /** Non-fatal wake diagnostic when persistence succeeded but dispatch could not be verified. */
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
- /** Bridge lifecycle id. Null only when talking to an older compatible bridge. */
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
- /** Bridge-side dispatch action after Codex durably accepted the queue item. */
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 bridge default target. Null when the bridge has not been bound yet. */
58
+ /** Current loaded Codex target. Null when no loaded Codex thread is selected. */
61
59
  thread: string | null;
62
- /** Threads explicitly registered by local Codex processes/users. */
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 a local Codex SessionStart/register path has connected this thread. */
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
- /** Thread used to scope same-project discovery. */
71
+ /** Current loaded Codex target when one is selected. */
74
72
  thread: string | null;
75
- /** Recent same-project Codex threads, current scoped thread first when available. */
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. The bridge clamps this to 10. */
79
+ /** Maximum number of threads to return. Codex Bridge clamps this to 10. */
82
80
  limit?: number;
83
- /** Registered thread whose project should scope discovery. */
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 bridge default target to an already-registered thread. */
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 bridge-tracked delivery. */
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 bridge-visible thread.
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-plugin";
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-plugin";
21
- export type { MesurerCodexDelivery, MesurerCodexDeliveryStatus, MesurerCodexHealth, MesurerCodexPluginOptions, MesurerCodexQueueRequest, MesurerCodexQueueResult, MesurerCodexSendRequest, MesurerCodexSendResult, MesurerCodexService, MesurerCodexThread, MesurerCodexThreadList, MesurerCodexThreadListOptions, } from "./codex-plugin";
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";