@qontinui/shared-types 0.14.0 → 1.1.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/dist/runner.d.cts CHANGED
@@ -31,6 +31,73 @@ interface RunnerCrash {
31
31
  thread: string;
32
32
  }
33
33
 
34
+ /* eslint-disable */
35
+ /**
36
+ * This file was automatically generated.
37
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
38
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
39
+ */
40
+
41
+ /**
42
+ * Which role a runner instance plays on its machine.
43
+ *
44
+ * Every runner instance on one box presents the SAME machine `device_id`, so
45
+ * the role is what separates the canonical instance from the supervisor-spawned
46
+ * ones sharing its row. Reported by the runner in `runner_info` as the
47
+ * top-level `instanceRole`.
48
+ */
49
+ type RunnerInstanceRole = "primary" | "secondary";
50
+
51
+ /* eslint-disable */
52
+ /**
53
+ * This file was automatically generated.
54
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
55
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
56
+ */
57
+
58
+
59
+
60
+ /**
61
+ * One live runner instance under a [`Runner`] (machine) row.
62
+ *
63
+ * A machine can host several runner instances at once — the primary on
64
+ * `:9876` and supervisor-spawned secondaries on `:9877-9899` — all presenting
65
+ * the one machine `device_id`, so they share a single [`Runner`] row. One
66
+ * entry per currently connected instance lets a consumer address `:9876` and
67
+ * `:9877` on the same box separately rather than seeing only whichever
68
+ * instance wrote the row's `port` last (plan
69
+ * `2026-09-20-runner-selector-drives-a-transport-not-a-target`, reading A0.2
70
+ * and Phase 6).
71
+ */
72
+ interface RunnerInstance {
73
+ /**
74
+ * ISO 8601 timestamp when this instance's current WebSocket connection
75
+ * was established.
76
+ */
77
+ connectedAt: string;
78
+ /**
79
+ * Per-instance key, reported by the runner as `instanceKey`. Built from
80
+ * namespaced sources so no source can spell another's key: `"primary"`
81
+ * for the primary; `"runner:<id>"` for a supervisor-spawned secondary
82
+ * (supervisor-assigned ids are unique, and a named runner's id is reused
83
+ * across its restarts); `"name:<name>"` for a secondary carrying only an
84
+ * instance name; `"port:<port>"` for a nameless one (stable only while it
85
+ * keeps that port). NOT guaranteed unique: two processes that each believe
86
+ * themselves the primary both report `"primary"`, so a consumer must treat
87
+ * two live instances with the same key as a conflict, never as one
88
+ * overwriting the other.
89
+ */
90
+ instanceKey: string;
91
+ /**
92
+ * Whether this instance is the machine's primary or a secondary.
93
+ */
94
+ instanceRole: RunnerInstanceRole;
95
+ /**
96
+ * Port this instance's HTTP API is listening on, if reported.
97
+ */
98
+ port?: number | null;
99
+ }
100
+
34
101
  /* eslint-disable */
35
102
  /**
36
103
  * This file was automatically generated.
@@ -115,6 +182,13 @@ interface Runner {
115
182
  * Runner identifier (UUID as a string).
116
183
  */
117
184
  id: string;
185
+ /**
186
+ * Currently connected runner instances on this machine, one entry per
187
+ * instance (see [`RunnerInstance`]). Empty when none is connected — and
188
+ * when the serving backend predates per-instance rows and omits the
189
+ * field, so absence deserializes to an empty list rather than failing.
190
+ */
191
+ instances: RunnerInstance[];
118
192
  /**
119
193
  * Reported network address the runner is reachable on.
120
194
  */
package/dist/runner.d.ts CHANGED
@@ -31,6 +31,73 @@ interface RunnerCrash {
31
31
  thread: string;
32
32
  }
33
33
 
34
+ /* eslint-disable */
35
+ /**
36
+ * This file was automatically generated.
37
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
38
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
39
+ */
40
+
41
+ /**
42
+ * Which role a runner instance plays on its machine.
43
+ *
44
+ * Every runner instance on one box presents the SAME machine `device_id`, so
45
+ * the role is what separates the canonical instance from the supervisor-spawned
46
+ * ones sharing its row. Reported by the runner in `runner_info` as the
47
+ * top-level `instanceRole`.
48
+ */
49
+ type RunnerInstanceRole = "primary" | "secondary";
50
+
51
+ /* eslint-disable */
52
+ /**
53
+ * This file was automatically generated.
54
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
55
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
56
+ */
57
+
58
+
59
+
60
+ /**
61
+ * One live runner instance under a [`Runner`] (machine) row.
62
+ *
63
+ * A machine can host several runner instances at once — the primary on
64
+ * `:9876` and supervisor-spawned secondaries on `:9877-9899` — all presenting
65
+ * the one machine `device_id`, so they share a single [`Runner`] row. One
66
+ * entry per currently connected instance lets a consumer address `:9876` and
67
+ * `:9877` on the same box separately rather than seeing only whichever
68
+ * instance wrote the row's `port` last (plan
69
+ * `2026-09-20-runner-selector-drives-a-transport-not-a-target`, reading A0.2
70
+ * and Phase 6).
71
+ */
72
+ interface RunnerInstance {
73
+ /**
74
+ * ISO 8601 timestamp when this instance's current WebSocket connection
75
+ * was established.
76
+ */
77
+ connectedAt: string;
78
+ /**
79
+ * Per-instance key, reported by the runner as `instanceKey`. Built from
80
+ * namespaced sources so no source can spell another's key: `"primary"`
81
+ * for the primary; `"runner:<id>"` for a supervisor-spawned secondary
82
+ * (supervisor-assigned ids are unique, and a named runner's id is reused
83
+ * across its restarts); `"name:<name>"` for a secondary carrying only an
84
+ * instance name; `"port:<port>"` for a nameless one (stable only while it
85
+ * keeps that port). NOT guaranteed unique: two processes that each believe
86
+ * themselves the primary both report `"primary"`, so a consumer must treat
87
+ * two live instances with the same key as a conflict, never as one
88
+ * overwriting the other.
89
+ */
90
+ instanceKey: string;
91
+ /**
92
+ * Whether this instance is the machine's primary or a secondary.
93
+ */
94
+ instanceRole: RunnerInstanceRole;
95
+ /**
96
+ * Port this instance's HTTP API is listening on, if reported.
97
+ */
98
+ port?: number | null;
99
+ }
100
+
34
101
  /* eslint-disable */
35
102
  /**
36
103
  * This file was automatically generated.
@@ -115,6 +182,13 @@ interface Runner {
115
182
  * Runner identifier (UUID as a string).
116
183
  */
117
184
  id: string;
185
+ /**
186
+ * Currently connected runner instances on this machine, one entry per
187
+ * instance (see [`RunnerInstance`]). Empty when none is connected — and
188
+ * when the serving backend predates per-instance rows and omits the
189
+ * field, so absence deserializes to an empty list rather than failing.
190
+ */
191
+ instances: RunnerInstance[];
118
192
  /**
119
193
  * Reported network address the runner is reachable on.
120
194
  */
@@ -1132,31 +1132,6 @@ interface DevSeedFindingPayload {
1132
1132
  [k: string]: unknown;
1133
1133
  }
1134
1134
 
1135
- /* eslint-disable */
1136
- /**
1137
- * This file was automatically generated.
1138
- * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1139
- * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1140
- */
1141
-
1142
- /**
1143
- * Payload shape for the `review-approved` and `review-rejected` Tauri events
1144
- * emitted by `commands::productivity::approve_recommendation` /
1145
- * `reject_recommendation` after a user resolves a medium-confidence
1146
- * recommendation card. Field names are explicit camelCase to match the
1147
- * `serde_json::json!()` literal previously used at the emit site.
1148
- *
1149
- * Single struct shared by both channels: only `user_decision` differs
1150
- * (`"approved"` vs `"rejected"`), so a tagged enum would inflate the wire
1151
- * format without payoff.
1152
- */
1153
- interface RecommendationReviewDecisionPayload {
1154
- reviewId: string;
1155
- taskId: string;
1156
- userDecision: string;
1157
- [k: string]: unknown;
1158
- }
1159
-
1160
1135
  /* eslint-disable */
1161
1136
  /**
1162
1137
  * This file was automatically generated.
@@ -1270,4 +1245,4 @@ interface UiBridgeResponseEnvelope {
1270
1245
  [k: string]: unknown;
1271
1246
  }
1272
1247
 
1273
- export type { AppEvent, CanvasPanel as CanvasUpdatePanel, DevSeedFindingPayload, RecommendationReviewDecisionPayload, RunnerConnectedConnection, RunnerFinding, RunnerFindingCodeContext, RunnerFindingUserInput, RunnerRelayMessage, RunnerStatusEvent, TerminalExitEvent, TerminalInfo, TerminalOutputEvent, UiBridgeRequestEnvelope, UiBridgeResponseEnvelope };
1248
+ export type { AppEvent, CanvasPanel as CanvasUpdatePanel, DevSeedFindingPayload, RunnerConnectedConnection, RunnerFinding, RunnerFindingCodeContext, RunnerFindingUserInput, RunnerRelayMessage, RunnerStatusEvent, TerminalExitEvent, TerminalInfo, TerminalOutputEvent, UiBridgeRequestEnvelope, UiBridgeResponseEnvelope };
@@ -1132,31 +1132,6 @@ interface DevSeedFindingPayload {
1132
1132
  [k: string]: unknown;
1133
1133
  }
1134
1134
 
1135
- /* eslint-disable */
1136
- /**
1137
- * This file was automatically generated.
1138
- * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1139
- * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1140
- */
1141
-
1142
- /**
1143
- * Payload shape for the `review-approved` and `review-rejected` Tauri events
1144
- * emitted by `commands::productivity::approve_recommendation` /
1145
- * `reject_recommendation` after a user resolves a medium-confidence
1146
- * recommendation card. Field names are explicit camelCase to match the
1147
- * `serde_json::json!()` literal previously used at the emit site.
1148
- *
1149
- * Single struct shared by both channels: only `user_decision` differs
1150
- * (`"approved"` vs `"rejected"`), so a tagged enum would inflate the wire
1151
- * format without payoff.
1152
- */
1153
- interface RecommendationReviewDecisionPayload {
1154
- reviewId: string;
1155
- taskId: string;
1156
- userDecision: string;
1157
- [k: string]: unknown;
1158
- }
1159
-
1160
1135
  /* eslint-disable */
1161
1136
  /**
1162
1137
  * This file was automatically generated.
@@ -1270,4 +1245,4 @@ interface UiBridgeResponseEnvelope {
1270
1245
  [k: string]: unknown;
1271
1246
  }
1272
1247
 
1273
- export type { AppEvent, CanvasPanel as CanvasUpdatePanel, DevSeedFindingPayload, RecommendationReviewDecisionPayload, RunnerConnectedConnection, RunnerFinding, RunnerFindingCodeContext, RunnerFindingUserInput, RunnerRelayMessage, RunnerStatusEvent, TerminalExitEvent, TerminalInfo, TerminalOutputEvent, UiBridgeRequestEnvelope, UiBridgeResponseEnvelope };
1248
+ export type { AppEvent, CanvasPanel as CanvasUpdatePanel, DevSeedFindingPayload, RunnerConnectedConnection, RunnerFinding, RunnerFindingCodeContext, RunnerFindingUserInput, RunnerRelayMessage, RunnerStatusEvent, TerminalExitEvent, TerminalInfo, TerminalOutputEvent, UiBridgeRequestEnvelope, UiBridgeResponseEnvelope };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qontinui/shared-types",
3
- "version": "0.14.0",
3
+ "version": "1.1.0",
4
4
  "description": "Shared TypeScript types for the Qontinui ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -6,6 +6,8 @@
6
6
  */
7
7
 
8
8
  import type { RunnerCrash } from "./RunnerCrash";
9
+ import type { RunnerInstance } from "./RunnerInstance";
10
+ import type { RunnerInstanceRole } from "./RunnerInstanceRole";
9
11
  import type { RunnerStatus } from "./RunnerStatus";
10
12
  import type { RunnerUiError } from "./RunnerUiError";
11
13
 
@@ -41,6 +43,13 @@ export interface Runner {
41
43
  * Runner identifier (UUID as a string).
42
44
  */
43
45
  id: string;
46
+ /**
47
+ * Currently connected runner instances on this machine, one entry per
48
+ * instance (see [`RunnerInstance`]). Empty when none is connected — and
49
+ * when the serving backend predates per-instance rows and omits the
50
+ * field, so absence deserializes to an empty list rather than failing.
51
+ */
52
+ instances: RunnerInstance[];
44
53
  /**
45
54
  * Reported network address the runner is reachable on.
46
55
  */
@@ -0,0 +1,49 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ import type { RunnerInstanceRole } from "./RunnerInstanceRole";
9
+
10
+ /**
11
+ * One live runner instance under a [`Runner`] (machine) row.
12
+ *
13
+ * A machine can host several runner instances at once — the primary on
14
+ * `:9876` and supervisor-spawned secondaries on `:9877-9899` — all presenting
15
+ * the one machine `device_id`, so they share a single [`Runner`] row. One
16
+ * entry per currently connected instance lets a consumer address `:9876` and
17
+ * `:9877` on the same box separately rather than seeing only whichever
18
+ * instance wrote the row's `port` last (plan
19
+ * `2026-09-20-runner-selector-drives-a-transport-not-a-target`, reading A0.2
20
+ * and Phase 6).
21
+ */
22
+ export interface RunnerInstance {
23
+ /**
24
+ * ISO 8601 timestamp when this instance's current WebSocket connection
25
+ * was established.
26
+ */
27
+ connectedAt: string;
28
+ /**
29
+ * Per-instance key, reported by the runner as `instanceKey`. Built from
30
+ * namespaced sources so no source can spell another's key: `"primary"`
31
+ * for the primary; `"runner:<id>"` for a supervisor-spawned secondary
32
+ * (supervisor-assigned ids are unique, and a named runner's id is reused
33
+ * across its restarts); `"name:<name>"` for a secondary carrying only an
34
+ * instance name; `"port:<port>"` for a nameless one (stable only while it
35
+ * keeps that port). NOT guaranteed unique: two processes that each believe
36
+ * themselves the primary both report `"primary"`, so a consumer must treat
37
+ * two live instances with the same key as a conflict, never as one
38
+ * overwriting the other.
39
+ */
40
+ instanceKey: string;
41
+ /**
42
+ * Whether this instance is the machine's primary or a secondary.
43
+ */
44
+ instanceRole: RunnerInstanceRole;
45
+ /**
46
+ * Port this instance's HTTP API is listening on, if reported.
47
+ */
48
+ port?: number | null;
49
+ }
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ /**
9
+ * Which role a runner instance plays on its machine.
10
+ *
11
+ * Every runner instance on one box presents the SAME machine `device_id`, so
12
+ * the role is what separates the canonical instance from the supervisor-spawned
13
+ * ones sharing its row. Reported by the runner in `runner_info` as the
14
+ * top-level `instanceRole`.
15
+ */
16
+ export type RunnerInstanceRole = "primary" | "secondary";
@@ -41,8 +41,42 @@ export interface UIBridgeElement {
41
41
  bbox?: ElementBbox | null;
42
42
  /**
43
43
  * Custom (application-defined) actions.
44
- */
45
- customActions?: string[] | null;
44
+ *
45
+ * **Objects, not names.** These used to be a bare `Vec<String>` of action
46
+ * names, which left an element-level custom action with nowhere to carry a
47
+ * safety class — so the walker had no way to tell a `refresh` from a
48
+ * `sendKeys` that writes raw bytes into a live agent PTY. Widening this to
49
+ * [`ElementActionInfo`] is what makes `effect` REACHABLE from an element;
50
+ * see that type's docs.
51
+ *
52
+ * Absent (`None`) means the element declares none. That is deliberately
53
+ * distinct from an empty list, which would mean "declared, and empty".
54
+ *
55
+ * **The bare-NAME form is REJECTED.** A transitional shim accepted
56
+ * `["sendKeys"]` here while the shape change rolled across three repos
57
+ * that cannot land atomically. It was deleted once its own observable
58
+ * trigger was met: no emitter produces names (every `ui-bridge` element
59
+ * projection routes through `serializeElementCustomActions`, and
60
+ * `qontinui-runner`'s `src/services/background-observer-service.ts` --
61
+ * the ninth emitter -- does too), and the runner's SDK pin moved to
62
+ * `@qontinui/ui-bridge` `^0.27.0`. Plan
63
+ * `2026-09-04-effect-calculus-joins-the-component-action-registry`,
64
+ * Design decision 4, step 5.
65
+ *
66
+ * The shim's deletion also required retiring the two recorded fixtures
67
+ * that still carried names. That was admissible because the UI Bridge has
68
+ * exactly one consumer -- Qontinui itself -- so "deployed apps still
69
+ * emitting the old wire", the reason the wire gate keeps fixtures
70
+ * append-only, has no instances. Both were REPLACED by captures from
71
+ * 0.27.0 rather than merely dropped, so the gate still parses genuine SDK
72
+ * output; it now parses the object form instead of the name form.
73
+ *
74
+ * Rejecting is the point, not a side effect: a name carries no `effect`,
75
+ * so anything still emitting one would be shipping UNCLASSIFIED actions
76
+ * to a consumer that must treat unclassified as unsafe. A hard parse
77
+ * error names that producer; silent tolerance hid it.
78
+ */
79
+ customActions?: ElementActionInfo[] | null;
46
80
  /**
47
81
  * Unique element ID within the registry.
48
82
  */
@@ -94,3 +128,72 @@ export interface UIBridgeElement {
94
128
  */
95
129
  visible?: boolean | null;
96
130
  }
131
+ /**
132
+ * Information about a single custom (application-defined) action exposed by a
133
+ * UI Bridge **element**.
134
+ *
135
+ * The element-level twin of [`ComponentActionInfo`], and deliberately the same
136
+ * field vocabulary so a consumer that walks both action planes reads one shape,
137
+ * not two. One field is NOT carried over: `path`. A component action has a
138
+ * resolved per-action invocation path because the SDK annotates one
139
+ * (`/control/component/<componentId>/action/<actionId>`); an element action has
140
+ * no analogue — every element action is invoked through the single
141
+ * `/control/element/<elementId>/action` route with the action name in the body.
142
+ * A field nothing would ever populate is dead schema surface, so it is absent
143
+ * rather than perpetually `null`.
144
+ *
145
+ * ## Why this is an object rather than a name
146
+ *
147
+ * It exists so `effect` has somewhere to live. A bare list of action NAMES is
148
+ * unannotatable: there is no slot on a name for a safety class, so an
149
+ * element-level custom action could not declare itself `destructive` however
150
+ * much its author wanted to. That is not hypothetical — the runner exposes
151
+ * element custom actions that write raw bytes into a live agent PTY, and some
152
+ * of them act on a pane with no visible view.
153
+ *
154
+ * The wire projection is widened FIRST and the annotation lands on top of it.
155
+ * The reverse order ships an UNREACHABLE annotation, which is worse than an
156
+ * absent one: the author believes the delete button is marked, and the walker
157
+ * walks it anyway.
158
+ */
159
+ export interface ElementActionInfo {
160
+ /**
161
+ * Longer description of what the action does.
162
+ */
163
+ description?: string | null;
164
+ /**
165
+ * Safety class of this action: `read`, `write` or `destructive`.
166
+ *
167
+ * **A safety annotation, not a hint.** An autonomous walk MUST NOT fire an
168
+ * action annotated `destructive`; that is the same exclusion the IR already
169
+ * applies to `destructive` transitions when generating auto-regressions.
170
+ * Author-declared, because only the app author knows that a particular
171
+ * custom action sends the keystrokes that end a session.
172
+ *
173
+ * Absent means **unclassified, not safe** — an action nobody has judged
174
+ * must be treated as unknown rather than as `read`. `skip_serializing_if`
175
+ * keeps an un-annotated action ABSENT on the wire rather than defaulting to
176
+ * a class nobody chose.
177
+ */
178
+ effect?: ("read" | "write" | "destructive") | null;
179
+ /**
180
+ * Unique action identifier within the element — the key the action is
181
+ * registered under, and the name `/control/element/<id>/action` is called
182
+ * with.
183
+ */
184
+ id: string;
185
+ /**
186
+ * Human-readable label.
187
+ */
188
+ label?: string | null;
189
+ /**
190
+ * Free-form declaration of the action's parameters, author-supplied on the
191
+ * SDK side and surfaced verbatim. Conventionally a small JSON Schema
192
+ * subset, but the SDK does not constrain the shape, so it is carried
193
+ * through untyped — the same treatment `ElementActionRequest::params` and
194
+ * `ComponentActionInfo::param_schema` get.
195
+ */
196
+ paramSchema?: {
197
+ [k: string]: unknown;
198
+ };
199
+ }
@@ -332,7 +332,6 @@ export type { RagCompletionEvent } from './RagCompletionEvent';
332
332
  export type { RagProcessingStatus } from './RagProcessingStatus';
333
333
  export type { RagProgressEvent } from './RagProgressEvent';
334
334
  export type { ReadConfigResponse } from './ReadConfigResponse';
335
- export type { RecommendationReviewDecisionPayload } from './RecommendationReviewDecisionPayload';
336
335
  export type { RecommendedState } from './RecommendedState';
337
336
  export type { RecordGitOpRequest } from './RecordGitOpRequest';
338
337
  export type { ReflectionFixOutput } from './ReflectionFixOutput';
@@ -361,6 +360,8 @@ export type { RunnerCrash } from './RunnerCrash';
361
360
  export type { RunnerFinding } from './RunnerFinding';
362
361
  export type { RunnerFindingCodeContext } from './RunnerFindingCodeContext';
363
362
  export type { RunnerFindingUserInput } from './RunnerFindingUserInput';
363
+ export type { RunnerInstance } from './RunnerInstance';
364
+ export type { RunnerInstanceRole } from './RunnerInstanceRole';
364
365
  export type { RunnerMetadata } from './RunnerMetadata';
365
366
  export type { RunnerRelayMessage } from './RunnerRelayMessage';
366
367
  export type { RunnerStatus } from './RunnerStatus';
@@ -63,11 +63,6 @@ export type { RunnerConnectedConnection } from "../generated/RunnerConnectedConn
63
63
  // fields so the TS listener can spread them straight into a Finding. ──
64
64
  export type { DevSeedFindingPayload } from "../generated/DevSeedFindingPayload";
65
65
 
66
- // ── Recommendation review decision payloads (`review-approved` /
67
- // `review-rejected` from `commands/productivity.rs`). One struct
68
- // covers both channels — only `userDecision` differs. ──
69
- export type { RecommendationReviewDecisionPayload } from "../generated/RecommendationReviewDecisionPayload";
70
-
71
66
  // ── Canvas panel payload carried inside AppEvent::CanvasUpdate's
72
67
  // `data.panel` field. Wire-format mirror of the runner's `StoredPanel`
73
68
  // (`mcp/canvas.rs`). The hand-written `CanvasPanel` in `../canvas/index.ts`
@@ -1,24 +0,0 @@
1
- /* eslint-disable */
2
- /**
3
- * This file was automatically generated.
4
- * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
5
- * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
- */
7
-
8
- /**
9
- * Payload shape for the `review-approved` and `review-rejected` Tauri events
10
- * emitted by `commands::productivity::approve_recommendation` /
11
- * `reject_recommendation` after a user resolves a medium-confidence
12
- * recommendation card. Field names are explicit camelCase to match the
13
- * `serde_json::json!()` literal previously used at the emit site.
14
- *
15
- * Single struct shared by both channels: only `user_decision` differs
16
- * (`"approved"` vs `"rejected"`), so a tagged enum would inflate the wire
17
- * format without payoff.
18
- */
19
- export interface RecommendationReviewDecisionPayload {
20
- reviewId: string;
21
- taskId: string;
22
- userDecision: string;
23
- [k: string]: unknown;
24
- }