@raidiant/notifai 0.5.0 → 0.5.1

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.
@@ -1,8 +1,8 @@
1
1
  import { type ConfigKey } from './config.js';
2
2
  export type ConfigKind = 'string' | 'url' | 'integer' | 'boolean' | 'enum' | 'list';
3
3
  /**
4
- * Which surface a key belongs to. Grouping is the difference between fourteen
5
- * flat keys and four short lists a reader can hold in their head.
4
+ * Which surface a key belongs to. Grouping is the difference between a flat
5
+ * list of keys and a few short ones a reader can hold in their head.
6
6
  */
7
7
  export type ConfigGroup = 'questions' | 'delivery' | 'project' | 'diagnostics' | 'connection';
8
8
  export declare const CONFIG_GROUPS: {
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * What every configuration key means, in the reader's words.
3
3
  *
4
- * `config.ts` already documented all fourteen keys carefully — but in TypeScript
4
+ * `config.ts` already documented every key carefully — but in TypeScript
5
5
  * comments, which is the one audience that never needed them. Someone running
6
- * `notifai config show` saw `require_idle = true` and had no way to learn what
7
- * it did short of reading the source, so this module is that knowledge moved to
8
- * where it can be printed.
6
+ * `notifai config show` saw `ask_grace_seconds = 0` and had no way to learn
7
+ * what it did short of reading the source, so this module is that knowledge
8
+ * moved to where it can be printed.
9
9
  *
10
10
  * It is the single source for `config show`, `config set`'s errors, `config
11
11
  * explain`, the help footer, and the interactive settings screen. One
@@ -13,16 +13,16 @@
13
13
  *
14
14
  * `summary` is the one-line form that fits beside a value in a list.
15
15
  * `detail` is the paragraph shown once the reader has asked for this key
16
- * specifically — progressive disclosure, so a list of fourteen settings stays
17
- * a list and not an essay.
16
+ * specifically — progressive disclosure, so the list of settings stays a list
17
+ * and not an essay.
18
18
  */
19
19
  import { CLI_SOUNDS, INTERRUPTION_LEVELS } from '@raidiant/notifai-protocol';
20
20
  import { LOG_LEVELS, configBounds } from './config.js';
21
21
  export const CONFIG_GROUPS = [
22
22
  {
23
23
  id: 'questions',
24
- title: 'Questions & presence',
25
- blurb: 'When a question an agent registered is allowed to leave this terminal and reach your devices.',
24
+ title: 'Questions',
25
+ blurb: 'Whether a question an agent registered may leave this terminal and reach your devices, and how soon.',
26
26
  },
27
27
  {
28
28
  id: 'delivery',
@@ -54,41 +54,15 @@ const INFO = {
54
54
  detail: 'The master switch for question routing. When this is off, a question an agent registers with `notifai ask` stays in the terminal and never leaves this machine, whatever the presence settings say. Turn it off to stop being reached for a while without uninstalling the harness hooks.',
55
55
  example: 'true',
56
56
  },
57
- require_idle: {
58
- label: 'Only when I have stepped away',
59
- group: 'questions',
60
- kind: 'boolean',
61
- summary: 'Whether sitting at this keyboard holds a question back',
62
- detail: 'Off (the default) means notify me even while I am using this machine. `ask_grace_seconds` still runs, so the terminal is offered the question first; I just do not need to walk away before it may leave. Turn this on when local keyboard or mouse activity should keep questions in the terminal.\n\nThis is separate from `ask_notifications`, which switches routing off altogether: wanting to be reached only while away is different from not wanting to be reached.',
63
- example: 'false',
64
- },
65
- away_after_seconds: {
66
- label: 'Away after',
67
- group: 'questions',
68
- kind: 'integer',
69
- unit: 's',
70
- summary: 'Keyboard and mouse idle time before this machine counts as unattended',
71
- detail: 'How long the keyboard and mouse must be quiet before you count as away. Only consulted while `require_idle` is on.\n\nWhere the operating system exposes no idle signal, silence since your last prompt is used instead, which is the conservative reading.',
72
- example: '120',
73
- },
74
57
  ask_grace_seconds: {
75
58
  label: 'Terminal-first grace',
76
59
  group: 'questions',
77
60
  kind: 'integer',
78
61
  unit: 's',
79
62
  summary: 'Optional delay before a question may reach your devices',
80
- detail: 'Zero (the default) sends the question to your devices as soon as the agent turn ends. Set a positive duration to offer the terminal an exclusive answer window first; the timer is measured from the moment the agent asked.\n\nA timer and nothing more. It is honoured whether or not presence is consulted at all, because how long to wait and whether anyone is watching are separate questions, and answering one should not answer the other.',
63
+ detail: 'Zero (the default) sends the question to your devices as soon as the agent turn ends. Set a positive duration to offer the terminal an exclusive answer window first; the timer is measured from the moment the agent asked.\n\nA timer and nothing more. Whether you happen to be at this keyboard does not change it: waiting no longer holds your terminal, so there is nothing your being here would protect you from.',
81
64
  example: '0',
82
65
  },
83
- hook_reply_timeout_seconds: {
84
- label: 'Hook wait for an answer',
85
- group: 'questions',
86
- kind: 'integer',
87
- unit: 's',
88
- summary: 'How long the harness hook blocks waiting for your answer',
89
- detail: 'After a question has gone out, the harness continuation owner waits up to this long for your answer. The device reply window uses the same bound, so Notifai never accepts an answer after an agent with no dormant-session wake has already returned.\n\nThe ceiling exists because command-hook harnesses bound their Stop processes. Grace plus this value plus installer headroom stays inside that budget.',
90
- example: '480',
91
- },
92
66
  sound: {
93
67
  label: 'Sound',
94
68
  group: 'delivery',
@@ -1 +1 @@
1
- {"version":3,"file":"config-schema.js","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAA;AAUtE,MAAM,CAAC,MAAM,aAAa,GAAwD;IAChF;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,+FAA+F;KACvG;IACD;QACE,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,mBAAmB;QAC1B,KAAK,EAAE,mFAAmF;KAC3F;IACD;QACE,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,iGAAiG;KACzG;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,sGAAsG;KAC9G;IACD;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,6EAA6E;KACrF;CACF,CAAA;AA8BD,MAAM,IAAI,GAAkD;IAC1D,iBAAiB,EAAE;QACjB,KAAK,EAAE,8BAA8B;QACrC,KAAK,EAAE,WAAW;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AI,KAAK,GAAG,IAAI,KAAK,CAAC;QAAE,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,CAAA;IACjD,IAAI,KAAK,GAAG,EAAE,KAAK,CAAC;QAAE,OAAO,GAAG,KAAK,GAAG,EAAE,GAAG,CAAA;IAC7C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,KAAK,GAAG,EAAE,GAAG,CAAA;AACpD,CAAC"}
package/dist/config.d.ts CHANGED
@@ -42,49 +42,16 @@ export interface CliConfig {
42
42
  project: ResolvedValue<string | null>;
43
43
  /** Free-text notification criteria agents consult before sending. */
44
44
  notify_criteria: ResolvedValue<string | null>;
45
- /** Route a registered agent question to companion devices after the presence gate. */
45
+ /** Whether a registered agent question may reach companion devices at all. */
46
46
  ask_notifications: ResolvedValue<boolean>;
47
- /**
48
- * Whether being at this machine suppresses a question. Sitting at the
49
- * keyboard is not the same as not wanting to be reached — needing to stop
50
- * using the machine in order to be notified is its own kind of interruption.
51
- *
52
- * On, the default, is the original behaviour: a question stays in the
53
- * terminal while the keyboard is in use, because the person is right there
54
- * and a push would be redundant. Off says notify me anyway — the grace window
55
- * still runs, so the question is still offered to the terminal first, it just
56
- * no longer needs the user to walk away before it may leave.
57
- *
58
- * This is deliberately separate from `ask_notifications`, which switches
59
- * escalation off altogether. Wanting to be reached while working is the
60
- * opposite of not wanting to be reached.
61
- */
62
- require_idle: ResolvedValue<boolean>;
63
- /**
64
- * Keyboard/mouse idle time after which this machine counts as unattended.
65
- * When the OS idle signal is unavailable, silence since the user's last prompt
66
- * is the conservative fallback. Below the threshold the hooks stay out of the
67
- * way entirely, because a blocking hook also blocks the terminal prompt the
68
- * present user would use.
69
- *
70
- * Only consulted while `require_idle` is on.
71
- */
72
- away_after_seconds: ResolvedValue<number>;
73
- /**
74
- * How long a hook blocks waiting for a companion-device answer before falling through
75
- * to the harness's own prompt. Runtime arbitration keeps the complete Stop
76
- * invocation inside its fixed 480s owner budget and 540s adapter ceiling.
77
- */
78
- hook_reply_timeout_seconds: ResolvedValue<number>;
79
47
  /**
80
48
  * Terminal-first grace window, measured from the moment the question was
81
49
  * sent: the agent asks in the terminal and starts a timer, and only once it
82
50
  * elapses does the question reach companion devices.
83
51
  *
84
- * A timer, and only a timer. It is configured independently of
85
- * `away_after_seconds` and honoured whether or not presence is consulted at
86
- * all — how long to wait and whether anyone is watching are separate
87
- * questions, and answering one should not answer the other.
52
+ * A timer, and only a timer. Whether the user happens to be at this keyboard
53
+ * decides nothing — the waiter no longer holds their terminal, so there is
54
+ * nothing for their presence to protect them from.
88
55
  */
89
56
  ask_grace_seconds: ResolvedValue<number>;
90
57
  /**
@@ -106,7 +73,7 @@ export interface CliConfig {
106
73
  /** Log files kept in total, the active one included. */
107
74
  log_max_files: ResolvedValue<number>;
108
75
  }
109
- export declare const CONFIG_KEYS: readonly ["base_url", "wait_seconds", "ttl_seconds", "collapse_key", "devices", "sound", "interruption_level", "project", "notify_criteria", "ask_notifications", "require_idle", "away_after_seconds", "hook_reply_timeout_seconds", "ask_grace_seconds", "log_level", "log_max_bytes", "log_max_files"];
76
+ export declare const CONFIG_KEYS: readonly ["base_url", "wait_seconds", "ttl_seconds", "collapse_key", "devices", "sound", "interruption_level", "project", "notify_criteria", "ask_notifications", "ask_grace_seconds", "log_level", "log_max_bytes", "log_max_files"];
110
77
  export type ConfigKey = (typeof CONFIG_KEYS)[number];
111
78
  /** Keys whose TOML value must parse as a boolean; used by `config set`. */
112
79
  export declare const BOOLEAN_CONFIG_KEYS: readonly ConfigKey[];
package/dist/config.js CHANGED
@@ -3,7 +3,6 @@ import { existsSync, readFileSync, realpathSync } from 'node:fs';
3
3
  import os from 'node:os';
4
4
  import path from 'node:path';
5
5
  import { parse as parseToml } from 'smol-toml';
6
- import { HOOK_TIMING } from './harnesses.js';
7
6
  /**
8
7
  * How much the local log records. Defined here rather than in `logging.ts`
9
8
  * because it is a configuration vocabulary first — `logging.ts` reads config,
@@ -21,25 +20,17 @@ export const CONFIG_KEYS = [
21
20
  'project',
22
21
  'notify_criteria',
23
22
  'ask_notifications',
24
- 'require_idle',
25
- 'away_after_seconds',
26
- 'hook_reply_timeout_seconds',
27
23
  'ask_grace_seconds',
28
24
  'log_level',
29
25
  'log_max_bytes',
30
26
  'log_max_files',
31
27
  ];
32
28
  /** Keys whose TOML value must parse as a boolean; used by `config set`. */
33
- export const BOOLEAN_CONFIG_KEYS = [
34
- 'ask_notifications',
35
- 'require_idle',
36
- ];
29
+ export const BOOLEAN_CONFIG_KEYS = ['ask_notifications'];
37
30
  /** Keys whose TOML value must parse as an integer within its configured bounds. */
38
31
  export const NUMERIC_CONFIG_KEYS = [
39
32
  'wait_seconds',
40
33
  'ttl_seconds',
41
- 'away_after_seconds',
42
- 'hook_reply_timeout_seconds',
43
34
  'ask_grace_seconds',
44
35
  'log_max_bytes',
45
36
  'log_max_files',
@@ -67,14 +58,8 @@ const DEFAULTS = {
67
58
  // Installing the hooks is the opt-in; these exist to switch the behaviour
68
59
  // back off for a project or a session without uninstalling anything.
69
60
  ask_notifications: true,
70
- // Questions reach devices immediately by default. Both a terminal-first
71
- // grace and presence gating remain independent opt-in controls.
72
- require_idle: false,
73
- away_after_seconds: 120,
74
- // Runtime waits stay inside a 480s budget. Harnesses that require a declared
75
- // Stop limit use a preference-stable 540s; Codex uses its host-owned Stop
76
- // default. Neither definition changes when these preferences do.
77
- hook_reply_timeout_seconds: 480,
61
+ // Questions reach devices as soon as the turn ends. A terminal-first grace
62
+ // window is an opt-in delay on top of that.
78
63
  ask_grace_seconds: 0,
79
64
  // On by default: the log is the only account of what a headless hook did, and
80
65
  // a diagnostic nobody switched on before the thing went wrong is not one.
@@ -169,21 +154,18 @@ export function findProjectLocalConfigPath(startDir) {
169
154
  }
170
155
  /**
171
156
  * Ranges every layer is clamped to. Config is readable from a repository, so an
172
- * out-of-range value is attacker input, not a typo: `away_after_seconds = -1`
173
- * would make a user who just typed count as absent, and an oversized reply
174
- * timeout would exhaust the hook process budget and kill it after the user has
175
- * already answered.
157
+ * out-of-range value is attacker input, not a typo: an unbounded grace window
158
+ * would consume the waiter's whole ceiling and silently leave no time at all in
159
+ * which the user's answer could still be accepted.
176
160
  */
177
161
  const NUMERIC_BOUNDS = {
178
162
  wait_seconds: { min: 0, max: 300 },
179
163
  ttl_seconds: { min: 0, max: 7 * 24 * 3600 },
180
- away_after_seconds: { min: 5, max: 24 * 3600 },
181
- // The runtime clamps grace + reply work below the host process ceiling; this
182
- // maximum is never copied into the installed definition.
183
- // The wire protocol's minimum reply window is 60s; matching it prevents the
184
- // server from accepting an answer after a shorter local wait has returned.
185
- hook_reply_timeout_seconds: { min: 60, max: 540 },
186
- ask_grace_seconds: { min: 0, max: HOOK_TIMING.maxGraceSeconds },
164
+ // A plain number, no longer derived from a hook budget's leftovers. Six
165
+ // minutes leaves two clear minutes of the waiter's 480s ceiling, so the
166
+ // longest window a user can choose still leaves an answer window the server
167
+ // will accept — with room to spare for a timer that wakes late.
168
+ ask_grace_seconds: { min: 0, max: 360 },
187
169
  // The floor keeps rotation from thrashing (a file smaller than a handful of
188
170
  // records would rotate on nearly every write); the ceiling is the point past
189
171
  // which "local diagnostics" has become "a database on your disk".
@@ -259,9 +241,6 @@ export function loadConfig(options) {
259
241
  project: resolve('project'),
260
242
  notify_criteria: resolve('notify_criteria'),
261
243
  ask_notifications: resolve('ask_notifications'),
262
- require_idle: resolve('require_idle'),
263
- away_after_seconds: resolve('away_after_seconds'),
264
- hook_reply_timeout_seconds: resolve('hook_reply_timeout_seconds'),
265
244
  ask_grace_seconds: resolve('ask_grace_seconds'),
266
245
  log_level: resolve('log_level'),
267
246
  log_max_bytes: resolve('log_max_bytes'),
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM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EAAE,CAAC;SACzC,CAAA;QACD,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;YACnC,IAAI,GAAG,KAAK,SAAS;gBAAE,SAAQ;YAC/B,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAChC,IAAI,OAAO,KAAK,SAAS;gBAAE,SAAQ;YACnC,OAAO,EAAE,KAAK,EAAE,OAAgB,EAAE,MAAM,EAAE,CAAA;QAC5C,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;IAC7D,CAAC;IAED,OAAO;QACL,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC;QACrC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC;QACnC,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC;QACrC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC;QAC3B,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC;QACvB,kBAAkB,EAAE,OAAO,CAAC,oBAAoB,CAAC;QACjD,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC;QAC3B,eAAe,EAAE,OAAO,CAAC,iBAAiB,CAAC;QAC3C,iBAAiB,EAAE,OAAO,CAAC,mBAAmB,CAAC;QAC/C,iBAAiB,EAAE,OAAO,CAAC,mBAAmB,CAAC;QAC/C,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC;QAC/B,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;QACvC,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC;KACxC,CAAA;AACH,CAAC"}
@@ -1,23 +1,13 @@
1
1
  /** Every harness Notifai ships. This is the sole source of the harness union. */
2
2
  export declare const HARNESSES: readonly ["claude-code", "codex", "cursor", "opencode"];
3
3
  export type Harness = (typeof HARNESSES)[number];
4
- /** One canonical wall-clock budget shared by config, hooks, and installers. */
5
- export declare const HOOK_TIMING: Readonly<{
6
- totalSeconds: 480;
7
- finalizationReserveSeconds: 45;
8
- submissionReserveSeconds: 40;
9
- minimumReplySeconds: 60;
10
- schedulingSlackSeconds: 1;
11
- stdoutReserveSeconds: 5;
12
- hostHeadroomSeconds: 60;
13
- maxGraceSeconds: 334;
14
- }>;
4
+ export type DeliveryRoute = 'hook-continuation' | 'inbox-socket' | 'owned-control-plane' | 'cold-resume' | 'hold-for-next-turn' | 'unsupported';
15
5
  export type StopContinuation = 'decision-block' | 'followup-message' | 'unsupported';
16
6
  export interface HarnessCapability {
17
7
  /** How an answer is admitted to another turn in the already-open session. */
18
8
  stopContinuation: StopContinuation;
19
- /** Whether delivery remains native after the turn-end event has returned. */
20
- dormantWake: 'unsupported' | 'native-session-prompt';
9
+ /** Available answer-delivery routes, best current route first. */
10
+ deliveryRoutes: readonly DeliveryRoute[];
21
11
  /** Concise, honest readiness text for doctor and installation guidance. */
22
12
  deliveryContract: string;
23
13
  }
package/dist/harnesses.js CHANGED
@@ -1,16 +1,5 @@
1
1
  /** Every harness Notifai ships. This is the sole source of the harness union. */
2
2
  export const HARNESSES = ['claude-code', 'codex', 'cursor', 'opencode'];
3
- /** One canonical wall-clock budget shared by config, hooks, and installers. */
4
- export const HOOK_TIMING = Object.freeze({
5
- totalSeconds: 480,
6
- finalizationReserveSeconds: 45,
7
- submissionReserveSeconds: 40,
8
- minimumReplySeconds: 60,
9
- schedulingSlackSeconds: 1,
10
- stdoutReserveSeconds: 5,
11
- hostHeadroomSeconds: 60,
12
- maxGraceSeconds: 334,
13
- });
14
3
  /**
15
4
  * Exhaustive runtime contract. Adding a harness without deciding every
16
5
  * continuation joint is a type error, not a silently degraded notification.
@@ -18,22 +7,22 @@ export const HOOK_TIMING = Object.freeze({
18
7
  export const HARNESS_CAPABILITIES = {
19
8
  'claude-code': {
20
9
  stopContinuation: 'decision-block',
21
- dormantWake: 'unsupported',
22
- deliveryContract: 'live Stop continuation; no automatic wake after its bounded wait returns',
10
+ deliveryRoutes: ['hook-continuation', 'inbox-socket', 'cold-resume', 'hold-for-next-turn'],
11
+ deliveryContract: 'the Stop hook returns at once and waits out of band, then posts the answer into this same session over its own inbox socket; a session that has stopped is resumed only once a liveness probe proves it stopped',
23
12
  },
24
13
  codex: {
25
14
  stopContinuation: 'decision-block',
26
- dormantWake: 'unsupported',
27
- deliveryContract: 'live Stop continuation; no automatic wake after its bounded wait returns',
15
+ deliveryRoutes: ['hook-continuation', 'cold-resume', 'hold-for-next-turn'],
16
+ deliveryContract: 'live Stop continuation while the turn is held; once it returns, a stopped thread is resumed behind its writer lock and anything else waits for the next turn',
28
17
  },
29
18
  cursor: {
30
19
  stopContinuation: 'unsupported',
31
- dormantWake: 'unsupported',
20
+ deliveryRoutes: ['unsupported'],
32
21
  deliveryContract: 'the hook can return a live follow-up, but the invoking shell exposes no exact conversation id; asynchronous ask is unsupported',
33
22
  },
34
23
  opencode: {
35
24
  stopContinuation: 'unsupported',
36
- dormantWake: 'unsupported',
25
+ deliveryRoutes: ['unsupported'],
37
26
  deliveryContract: 'no proven answer continuation after session.idle; use a blocking reply command',
38
27
  },
39
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"harnesses.js","sourceRoot":"","sources":["../src/harnesses.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAA;AAIhF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,YAAY,EAAE,GAAG;IACjB,0BAA0B,EAAE,EAAE;IAC9B,wBAAwB,EAAE,EAAE;IAC5B,mBAAmB,EAAE,EAAE;IACvB,sBAAsB,EAAE,CAAC;IACzB,oBAAoB,EAAE,CAAC;IACvB,mBAAmB,EAAE,EAAE;IACvB,eAAe,EAAE,GAAG;CACrB,CAAC,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