@pellux/goodvibes-sdk 0.18.20 → 0.18.22

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.
Files changed (35) hide show
  1. package/dist/_internal/platform/automation/manager-runtime-execution.d.ts +2 -0
  2. package/dist/_internal/platform/automation/manager-runtime-execution.d.ts.map +1 -1
  3. package/dist/_internal/platform/automation/manager-runtime-execution.js +18 -6
  4. package/dist/_internal/platform/automation/manager-runtime.d.ts +5 -0
  5. package/dist/_internal/platform/automation/manager-runtime.d.ts.map +1 -1
  6. package/dist/_internal/platform/automation/manager-runtime.js +6 -0
  7. package/dist/_internal/platform/core/deterministic-replay.d.ts +2 -1
  8. package/dist/_internal/platform/core/deterministic-replay.d.ts.map +1 -1
  9. package/dist/_internal/platform/core/deterministic-replay.js +11 -5
  10. package/dist/_internal/platform/core/replay-command-handler.js +1 -1
  11. package/dist/_internal/platform/plugins/api.d.ts +2 -2
  12. package/dist/_internal/platform/plugins/api.d.ts.map +1 -1
  13. package/dist/_internal/platform/plugins/loader.d.ts +2 -2
  14. package/dist/_internal/platform/plugins/loader.d.ts.map +1 -1
  15. package/dist/_internal/platform/runtime/host-ui.d.ts +59 -0
  16. package/dist/_internal/platform/runtime/host-ui.d.ts.map +1 -0
  17. package/dist/_internal/platform/runtime/host-ui.js +25 -0
  18. package/dist/_internal/platform/runtime/integration/helpers.d.ts +2 -2
  19. package/dist/_internal/platform/runtime/integration/helpers.d.ts.map +1 -1
  20. package/dist/_internal/platform/runtime/services.d.ts +5 -4
  21. package/dist/_internal/platform/runtime/services.d.ts.map +1 -1
  22. package/dist/_internal/platform/runtime/services.js +5 -6
  23. package/package.json +1 -1
  24. package/dist/_internal/platform/input/command-registry.d.ts +0 -17
  25. package/dist/_internal/platform/input/command-registry.d.ts.map +0 -1
  26. package/dist/_internal/platform/input/command-registry.js +0 -25
  27. package/dist/_internal/platform/input/keybindings.d.ts +0 -88
  28. package/dist/_internal/platform/input/keybindings.d.ts.map +0 -1
  29. package/dist/_internal/platform/input/keybindings.js +0 -206
  30. package/dist/_internal/platform/panels/panel-manager.d.ts +0 -89
  31. package/dist/_internal/platform/panels/panel-manager.d.ts.map +0 -1
  32. package/dist/_internal/platform/panels/panel-manager.js +0 -481
  33. package/dist/_internal/platform/panels/types.d.ts +0 -30
  34. package/dist/_internal/platform/panels/types.d.ts.map +0 -1
  35. package/dist/_internal/platform/panels/types.js +0 -1
@@ -1,17 +0,0 @@
1
- export interface SlashCommand {
2
- name: string;
3
- aliases?: string[];
4
- description: string;
5
- usage?: string;
6
- argsHint?: string;
7
- handler: (args: string[]) => void | Promise<void>;
8
- }
9
- export declare class CommandRegistry {
10
- private commands;
11
- private aliasIndex;
12
- register(command: SlashCommand): void;
13
- unregister(name: string): void;
14
- get(name: string): SlashCommand | undefined;
15
- list(): SlashCommand[];
16
- }
17
- //# sourceMappingURL=command-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-registry.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/input/command-registry.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,UAAU,CAAmC;IAErD,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAOrC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAU9B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI3C,IAAI,IAAI,YAAY,EAAE;CAGvB"}
@@ -1,25 +0,0 @@
1
- export class CommandRegistry {
2
- commands = new Map();
3
- aliasIndex = new Map();
4
- register(command) {
5
- this.commands.set(command.name, command);
6
- for (const alias of command.aliases ?? []) {
7
- this.aliasIndex.set(alias, command);
8
- }
9
- }
10
- unregister(name) {
11
- const command = this.commands.get(name);
12
- if (command) {
13
- for (const alias of command.aliases ?? []) {
14
- this.aliasIndex.delete(alias);
15
- }
16
- }
17
- this.commands.delete(name);
18
- }
19
- get(name) {
20
- return this.commands.get(name) ?? this.aliasIndex.get(name);
21
- }
22
- list() {
23
- return [...this.commands.values()];
24
- }
25
- }
@@ -1,88 +0,0 @@
1
- /**
2
- * KeybindingsManager — loads and merges keyboard shortcut configuration.
3
- *
4
- * Default bindings are hardcoded here. Users can override any binding by
5
- * creating a surface keybindings file under ~/.goodvibes/<surface>/keybindings.json
6
- * or by passing an explicit configPath.
7
- *
8
- * Config file format example:
9
- * {
10
- * "search": { "key": "g", "ctrl": true },
11
- * "block-copy": { "key": "c", "ctrl": true, "alt": true }
12
- * }
13
- *
14
- * Each value is a KeyCombo or an array of KeyCombos for multi-binding support.
15
- */
16
- /** Identifies a specific key press with modifiers. */
17
- export interface KeyCombo {
18
- /** Logical key name (single char like 'f', or named key like 'r', 'z', 'f2', etc.) */
19
- key: string;
20
- ctrl?: boolean;
21
- shift?: boolean;
22
- alt?: boolean;
23
- }
24
- /** All bindable action identifiers. */
25
- export type KeyAction = 'copy-selection' | 'clear-cancel' | 'screen-clear' | 'panel-picker' | 'panel-close' | 'panel-close-all' | 'panel-tab-next' | 'panel-tab-prev' | 'history-search' | 'search' | 'block-copy' | 'bookmark' | 'block-save' | 'delete-word' | 'apply-diff-line-start' | 'next-error-line-end' | 'kill-line' | 'clear-prompt' | 'undo' | 'redo' | 'paste' | 'replay-panel';
26
- /** Human-readable description for each action (used in /keybindings display). */
27
- export declare const ACTION_DESCRIPTIONS: Record<KeyAction, string>;
28
- /** Default key bindings for all actions. */
29
- export declare const DEFAULT_KEYBINDINGS: Record<KeyAction, KeyCombo[]>;
30
- export interface KeybindingsManagerOptions {
31
- readonly configPath?: string;
32
- readonly userRoot?: string;
33
- readonly homeDirectory?: string;
34
- readonly surfaceRoot?: string;
35
- }
36
- /**
37
- * KeybindingsManager — owns the resolved keybinding table.
38
- *
39
- * Call loadFromDisk() once at startup (in main.ts) to merge user config.
40
- * Then use matches() anywhere a key token is being evaluated.
41
- */
42
- export declare class KeybindingsManager {
43
- private bindings;
44
- private configPath;
45
- constructor(options: KeybindingsManagerOptions);
46
- private cloneDefaults;
47
- /**
48
- * Load user overrides from disk and merge into the binding table.
49
- * Unknown actions are ignored with a debug log. Malformed entries are skipped.
50
- * Safe to call multiple times (reloads on each call).
51
- */
52
- loadFromDisk(): void;
53
- private validateCombos;
54
- /**
55
- * matches — Check whether a keyboard token matches the given action.
56
- *
57
- * @param action The action to test.
58
- * @param token The parsed keyboard token from InputTokenizer.
59
- * Expects: { logicalName: string; ctrl?: boolean; shift?: boolean; alt?: boolean }
60
- */
61
- matches(action: KeyAction, token: {
62
- logicalName?: string;
63
- ctrl?: boolean;
64
- shift?: boolean;
65
- alt?: boolean;
66
- }): boolean;
67
- private comboMatches;
68
- /**
69
- * getAll — Return the full resolved binding table for display purposes.
70
- */
71
- getAll(): Array<{
72
- action: KeyAction;
73
- combos: KeyCombo[];
74
- description: string;
75
- }>;
76
- /**
77
- * getComboLabel — Return a human-readable label for the first combo of an action.
78
- * Example: { key: 'f', ctrl: true } → "Ctrl+F"
79
- */
80
- getComboLabel(action: KeyAction): string;
81
- /**
82
- * formatCombo — Format a KeyCombo as a human-readable string.
83
- */
84
- formatCombo(combo: KeyCombo): string;
85
- /** Return the config file path. */
86
- getConfigPath(): string;
87
- }
88
- //# sourceMappingURL=keybindings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keybindings.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/input/keybindings.ts"],"names":[],"mappings":"AAAA;;;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B,KAAK,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9E,OAAO;IAMV,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACH,MAAM,IAAI,KAAK,CAAC;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ/E;;;OAGG;IACH,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;IAMxC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM;IASpC,mCAAmC;IACnC,aAAa,IAAI,MAAM;CAGxB"}
@@ -1,206 +0,0 @@
1
- /**
2
- * KeybindingsManager — loads and merges keyboard shortcut configuration.
3
- *
4
- * Default bindings are hardcoded here. Users can override any binding by
5
- * creating a surface keybindings file under ~/.goodvibes/<surface>/keybindings.json
6
- * or by passing an explicit configPath.
7
- *
8
- * Config file format example:
9
- * {
10
- * "search": { "key": "g", "ctrl": true },
11
- * "block-copy": { "key": "c", "ctrl": true, "alt": true }
12
- * }
13
- *
14
- * Each value is a KeyCombo or an array of KeyCombos for multi-binding support.
15
- */
16
- import { readFileSync, existsSync } from 'node:fs';
17
- import { logger } from '@pellux/goodvibes-sdk/platform/utils/logger';
18
- import { resolveSurfaceDirectory } from '../runtime/surface-root.js';
19
- import { summarizeError } from '@pellux/goodvibes-sdk/platform/utils/error-display';
20
- /** Human-readable description for each action (used in /keybindings display). */
21
- export const ACTION_DESCRIPTIONS = {
22
- 'copy-selection': 'Copy selected text to clipboard',
23
- 'clear-cancel': 'Clear input / cancel generation / exit (double)',
24
- 'screen-clear': 'Repaint the screen',
25
- 'panel-picker': 'Open, focus, or hide the panel workspace',
26
- 'panel-close': 'Close the currently active panel',
27
- 'panel-close-all': 'Close all open panels',
28
- 'panel-tab-next': 'Next workspace panel tab',
29
- 'panel-tab-prev': 'Previous workspace panel tab',
30
- 'history-search': 'Reverse input history search',
31
- 'search': 'Toggle conversation search',
32
- 'block-copy': 'Copy nearest block to clipboard',
33
- 'bookmark': 'Bookmark / unbookmark nearest block',
34
- 'block-save': 'Save nearest block to file',
35
- 'delete-word': 'Delete word backward',
36
- 'apply-diff-line-start': 'Apply nearest diff / move to line start',
37
- 'next-error-line-end': 'Navigate to next error / move to line end',
38
- 'kill-line': 'Kill to end of line',
39
- 'clear-prompt': 'Clear the prompt',
40
- 'undo': 'Undo last prompt edit',
41
- 'redo': 'Redo last undone edit',
42
- 'paste': 'Paste from clipboard (image priority)',
43
- 'replay-panel': 'Open / close the Replay panel',
44
- };
45
- /** Default key bindings for all actions. */
46
- export const DEFAULT_KEYBINDINGS = {
47
- 'copy-selection': [{ key: 'c', ctrl: true, shift: true }],
48
- 'clear-cancel': [{ key: 'c', ctrl: true }],
49
- 'screen-clear': [{ key: 'l', ctrl: true }],
50
- 'panel-picker': [{ key: 'p', ctrl: true }],
51
- 'panel-close': [{ key: 'x', ctrl: true }],
52
- 'panel-close-all': [{ key: 'x', ctrl: true, shift: true }],
53
- 'panel-tab-next': [{ key: ']', ctrl: true }],
54
- 'panel-tab-prev': [{ key: '[', ctrl: true }],
55
- 'history-search': [{ key: 'r', ctrl: true }],
56
- 'search': [{ key: 'f', ctrl: true }],
57
- 'block-copy': [{ key: 'y', ctrl: true }],
58
- 'bookmark': [{ key: 'b', ctrl: true }],
59
- 'block-save': [{ key: 's', ctrl: true }],
60
- 'delete-word': [{ key: 'w', ctrl: true }],
61
- 'apply-diff-line-start': [{ key: 'a', ctrl: true }],
62
- 'next-error-line-end': [{ key: 'e', ctrl: true }],
63
- 'kill-line': [{ key: 'k', ctrl: true }],
64
- 'clear-prompt': [{ key: 'u', ctrl: true }],
65
- 'undo': [{ key: 'z', ctrl: true }],
66
- 'redo': [{ key: 'z', ctrl: true, shift: true }],
67
- 'paste': [{ key: 'v', ctrl: true }],
68
- 'replay-panel': [{ key: 'r', ctrl: true, shift: true }],
69
- };
70
- function resolveKeybindingsPath(options) {
71
- if (options?.configPath) {
72
- return options.configPath;
73
- }
74
- const userRoot = options?.userRoot ?? options?.homeDirectory;
75
- if (!userRoot) {
76
- throw new Error('KeybindingsManager requires configPath or an explicit userRoot/homeDirectory.');
77
- }
78
- if (!options?.surfaceRoot) {
79
- throw new Error('KeybindingsManager requires surfaceRoot when deriving a config path.');
80
- }
81
- return resolveSurfaceDirectory(userRoot, options.surfaceRoot, 'keybindings.json');
82
- }
83
- /**
84
- * KeybindingsManager — owns the resolved keybinding table.
85
- *
86
- * Call loadFromDisk() once at startup (in main.ts) to merge user config.
87
- * Then use matches() anywhere a key token is being evaluated.
88
- */
89
- export class KeybindingsManager {
90
- bindings;
91
- configPath;
92
- constructor(options) {
93
- this.configPath = resolveKeybindingsPath(options);
94
- // Start with deep copy of defaults
95
- this.bindings = this.cloneDefaults();
96
- }
97
- cloneDefaults() {
98
- const result = {};
99
- for (const [action, combos] of Object.entries(DEFAULT_KEYBINDINGS)) {
100
- result[action] = combos.map(c => ({ ...c }));
101
- }
102
- return result;
103
- }
104
- /**
105
- * Load user overrides from disk and merge into the binding table.
106
- * Unknown actions are ignored with a debug log. Malformed entries are skipped.
107
- * Safe to call multiple times (reloads on each call).
108
- */
109
- loadFromDisk() {
110
- if (!existsSync(this.configPath))
111
- return;
112
- try {
113
- const raw = readFileSync(this.configPath, 'utf-8');
114
- const parsed = JSON.parse(raw);
115
- const validActions = new Set(Object.keys(DEFAULT_KEYBINDINGS));
116
- // Reset to defaults before applying overrides
117
- this.bindings = this.cloneDefaults();
118
- for (const [action, combo] of Object.entries(parsed)) {
119
- if (!validActions.has(action)) {
120
- logger.debug('keybindings: unknown action, skipping', { action });
121
- continue;
122
- }
123
- const normalized = Array.isArray(combo) ? combo : [combo];
124
- if (!this.validateCombos(normalized)) {
125
- logger.debug('keybindings: invalid combo for action, skipping', { action, combo });
126
- continue;
127
- }
128
- this.bindings[action] = normalized;
129
- }
130
- logger.debug('keybindings: loaded overrides from disk', { path: this.configPath });
131
- }
132
- catch (err) {
133
- logger.debug('keybindings: failed to load config file', { path: this.configPath, err: summarizeError(err) });
134
- }
135
- }
136
- validateCombos(combos) {
137
- return combos.every((c) => {
138
- if (typeof c !== 'object' || c === null)
139
- return false;
140
- const combo = c;
141
- return typeof combo['key'] === 'string' && combo['key'].length > 0;
142
- });
143
- }
144
- /**
145
- * matches — Check whether a keyboard token matches the given action.
146
- *
147
- * @param action The action to test.
148
- * @param token The parsed keyboard token from InputTokenizer.
149
- * Expects: { logicalName: string; ctrl?: boolean; shift?: boolean; alt?: boolean }
150
- */
151
- matches(action, token) {
152
- const combos = this.bindings[action];
153
- if (!combos)
154
- return false;
155
- return combos.some((combo) => this.comboMatches(combo, token));
156
- }
157
- comboMatches(combo, token) {
158
- if (token.logicalName !== combo.key)
159
- return false;
160
- if (!!combo.ctrl !== !!token.ctrl)
161
- return false;
162
- if (!!combo.shift !== !!token.shift)
163
- return false;
164
- if (!!combo.alt !== !!token.alt)
165
- return false;
166
- return true;
167
- }
168
- /**
169
- * getAll — Return the full resolved binding table for display purposes.
170
- */
171
- getAll() {
172
- return Object.keys(this.bindings).map((action) => ({
173
- action,
174
- combos: this.bindings[action],
175
- description: ACTION_DESCRIPTIONS[action],
176
- }));
177
- }
178
- /**
179
- * getComboLabel — Return a human-readable label for the first combo of an action.
180
- * Example: { key: 'f', ctrl: true } → "Ctrl+F"
181
- */
182
- getComboLabel(action) {
183
- const combos = this.bindings[action];
184
- if (!combos?.length)
185
- return '(unbound)';
186
- return this.formatCombo(combos[0]);
187
- }
188
- /**
189
- * formatCombo — Format a KeyCombo as a human-readable string.
190
- */
191
- formatCombo(combo) {
192
- const parts = [];
193
- if (combo.ctrl)
194
- parts.push('Ctrl');
195
- if (combo.alt)
196
- parts.push('Alt');
197
- if (combo.shift)
198
- parts.push('Shift');
199
- parts.push(combo.key.length === 1 ? combo.key.toUpperCase() : combo.key);
200
- return parts.join('+');
201
- }
202
- /** Return the config file path. */
203
- getConfigPath() {
204
- return this.configPath;
205
- }
206
- }
@@ -1,89 +0,0 @@
1
- import type { Panel, PanelRegistration, PanelCategory } from './types.js';
2
- export interface Pane {
3
- panels: Panel[];
4
- activeIndex: number;
5
- }
6
- export interface WorkspaceTab {
7
- readonly id: string;
8
- readonly name: string;
9
- readonly icon: string;
10
- readonly pane: 'top' | 'bottom';
11
- readonly active: boolean;
12
- readonly focused: boolean;
13
- }
14
- export declare class PanelManager {
15
- private registry;
16
- private retainedPanels;
17
- private _visible;
18
- private _splitRatio;
19
- private topPane;
20
- private bottomPane;
21
- private _focusedPane;
22
- private _verticalSplitRatio;
23
- private _bottomPaneVisible;
24
- registerType(registration: PanelRegistration): void;
25
- getRegisteredTypes(): PanelRegistration[];
26
- getTypesByCategory(): Map<PanelCategory, PanelRegistration[]>;
27
- prewarmRegistered(): void;
28
- open(panelId: string, pane?: 'top' | 'bottom'): Panel;
29
- close(panelId: string): void;
30
- /**
31
- * Move a panel to a specific pane. If panelId is omitted, moves the active
32
- * panel from the currently focused pane.
33
- */
34
- moveToPane(dest: 'top' | 'bottom', panelId?: string): void;
35
- /**
36
- * Move a panel to the other pane. If panelId is omitted, moves the active
37
- * panel from the currently focused pane.
38
- */
39
- moveToOtherPane(panelId?: string): void;
40
- nextPanel(): void;
41
- nextWorkspaceTab(): void;
42
- prevWorkspaceTab(): void;
43
- prevPanel(): void;
44
- activateByIndex(index: number): void;
45
- activateById(panelId: string): void;
46
- focusPane(pane: 'top' | 'bottom'): void;
47
- getFocusedPane(): 'top' | 'bottom';
48
- /** Get the currently active (focused) panel, or null if none. */
49
- getActivePanel(): Panel | null;
50
- togglePaneFocus(): void;
51
- toggleBottomPane(): void;
52
- isBottomPaneVisible(): boolean;
53
- getTopPane(): Readonly<Pane>;
54
- getBottomPane(): Readonly<Pane>;
55
- getOpen(): Panel[];
56
- /**
57
- * Returns all panels across both panes (top then bottom).
58
- * Use this when you need to know if any panels exist at all.
59
- */
60
- getAllOpen(): Panel[];
61
- getActive(): Panel | null;
62
- getPanel(panelId: string): Panel | null;
63
- getPaneOf(panelId: string): 'top' | 'bottom' | null;
64
- getWorkspaceTabs(): WorkspaceTab[];
65
- activateWorkspaceIndex(index: number): void;
66
- toggle(): void;
67
- show(): void;
68
- hide(): void;
69
- isVisible(): boolean;
70
- getSplitRatio(): number;
71
- setSplitRatio(ratio: number): void;
72
- widenLeft(): void;
73
- widenRight(): void;
74
- getLeftWidth(totalWidth: number): number;
75
- getRightWidth(totalWidth: number): number;
76
- getVerticalSplitRatio(): number;
77
- setVerticalSplitRatio(ratio: number): void;
78
- destroyAll(): void;
79
- private _getPane;
80
- private _getFocusedPane;
81
- private _findPaneOf;
82
- private _moveBetweenPanes;
83
- private _cycleWorkspaceTab;
84
- private _obtainPanel;
85
- private _getRegistration;
86
- private _shouldRetain;
87
- private _activateByIdInPane;
88
- }
89
- //# sourceMappingURL=panel-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"panel-manager.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/panels/panel-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM1E,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CA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