@industry-theme/alexandria-panels 0.1.12 → 0.1.13
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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/UserProfilePanel/index.d.ts +35 -0
- package/dist/panels/UserProfilePanel/index.d.ts.map +1 -0
- package/dist/panels/UserProfilePanel/tools.d.ts +46 -0
- package/dist/panels/UserProfilePanel/tools.d.ts.map +1 -0
- package/dist/panels/UserProfilePanel/types.d.ts +207 -0
- package/dist/panels/UserProfilePanel/types.d.ts.map +1 -0
- package/dist/panels.bundle.js +1372 -236
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { workspaceRepositoriesPanelTools, workspaceRepositoriesPanelToolsMetadat
|
|
|
21
21
|
export { workspacesListPanelTools, workspacesListPanelToolsMetadata, filterWorkspacesTool, selectWorkspaceTool, openWorkspaceTool, createWorkspaceTool, } from './panels/WorkspacesListPanel/tools';
|
|
22
22
|
export { githubStarredPanelTools, githubStarredPanelToolsMetadata, filterStarredTool, selectStarredRepositoryTool, cloneStarredRepositoryTool, } from './panels/GitHubStarredPanel/tools';
|
|
23
23
|
export { githubProjectsPanelTools, githubProjectsPanelToolsMetadata, filterProjectsTool as filterGitHubProjectsTool, toggleOwnerSectionTool, selectProjectRepositoryTool, cloneProjectRepositoryTool, } from './panels/GitHubProjectsPanel/tools';
|
|
24
|
+
export { userProfilePanelTools, userProfilePanelToolsMetadata, viewOrganizationsTool, viewStarredTool, selectOrganizationTool, selectRepositoryTool as selectUserRepositoryTool, cloneRepositoryTool as cloneUserRepositoryTool, filterStarredTool as filterUserStarredTool, } from './panels/UserProfilePanel/tools';
|
|
24
25
|
/**
|
|
25
26
|
* Export panel components for direct use
|
|
26
27
|
*/
|
|
@@ -29,6 +30,7 @@ export { WorkspaceRepositoriesPanel } from './panels/WorkspaceRepositoriesPanel'
|
|
|
29
30
|
export { WorkspacesListPanel, WorkspacesListPanelPreview, WorkspaceCard, } from './panels/WorkspacesListPanel';
|
|
30
31
|
export { GitHubStarredPanel, GitHubStarredPanelPreview, } from './panels/GitHubStarredPanel';
|
|
31
32
|
export { GitHubProjectsPanel, GitHubProjectsPanelPreview, } from './panels/GitHubProjectsPanel';
|
|
33
|
+
export { UserProfilePanel, UserProfilePanelPreview, } from './panels/UserProfilePanel';
|
|
32
34
|
export { GitHubRepositoryCard } from './panels/shared/GitHubRepositoryCard';
|
|
33
35
|
/**
|
|
34
36
|
* Export types
|
|
@@ -39,5 +41,6 @@ export type { WorkspacesSlice, WorkspacesListPanelActions, WorkspaceCardProps, W
|
|
|
39
41
|
export type { GitHubRepository, GitHubOrganization, LocalRepositoryReference, } from './panels/shared/github-types';
|
|
40
42
|
export type { GitHubStarredSlice, GitHubStarredPanelActions, GitHubStarredPanelEventPayloads, } from './panels/GitHubStarredPanel/types';
|
|
41
43
|
export type { GitHubProjectsSlice, GitHubProjectsPanelActions, GitHubProjectsPanelEventPayloads, } from './panels/GitHubProjectsPanel/types';
|
|
44
|
+
export type { GitHubUserProfile, GitHubOrganization as UserProfileOrganization, GitHubRepository as UserProfileRepository, UserProfileSlice, UserProfilePanelActions, UserProfileView, UserPresenceStatus, UserProfileCardProps, OrganizationCardProps, StarredRepositoryCardProps, OrganizationSelectedPayload, RepositorySelectedPayload as UserRepositorySelectedPayload, RepositoryCloneRequestedPayload, UserProfilePanelEventPayloads, } from './panels/UserProfilePanel/types';
|
|
42
45
|
export type { GitHubRepositoryCardProps } from './panels/shared/GitHubRepositoryCard';
|
|
43
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],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yBAAyB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* UserProfilePanel - View user profiles with their organizations and starred repos
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Display user profile header with avatar, bio, stats
|
|
8
|
+
* - Show user's GitHub organizations
|
|
9
|
+
* - Show user's starred repositories with search/filter
|
|
10
|
+
* - Presence status indicator
|
|
11
|
+
* - Clone starred repositories
|
|
12
|
+
*
|
|
13
|
+
* Data Slices:
|
|
14
|
+
* - userProfile: UserProfileSlice object
|
|
15
|
+
*
|
|
16
|
+
* Events Emitted:
|
|
17
|
+
* - industry-theme.user-profile:organization:selected
|
|
18
|
+
* - industry-theme.user-profile:repository:selected
|
|
19
|
+
* - industry-theme.user-profile:repository:clone-requested
|
|
20
|
+
* - industry-theme.user-profile:view:changed
|
|
21
|
+
*
|
|
22
|
+
* Events Listened:
|
|
23
|
+
* - industry-theme.user-profile:set-view
|
|
24
|
+
* - industry-theme.user-profile:select-organization
|
|
25
|
+
* - industry-theme.user-profile:select-repository
|
|
26
|
+
* - industry-theme.user-profile:clone-repository
|
|
27
|
+
* - industry-theme.user-profile:filter-starred
|
|
28
|
+
*/
|
|
29
|
+
export declare const UserProfilePanel: React.FC<PanelComponentProps>;
|
|
30
|
+
/**
|
|
31
|
+
* UserProfilePanelPreview - Compact preview for panel tabs/thumbnails
|
|
32
|
+
*/
|
|
33
|
+
export declare const UserProfilePanelPreview: React.FC;
|
|
34
|
+
export type { GitHubUserProfile, GitHubOrganization, GitHubRepository, UserProfileSlice, UserProfilePanelActions, UserProfileView, UserPresenceStatus, UserProfileCardProps, OrganizationCardProps, StarredRepositoryCardProps, OrganizationSelectedPayload, RepositorySelectedPayload, RepositoryCloneRequestedPayload, UserProfilePanelEventPayloads, } from './types';
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/UserProfilePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAiBzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA22BvD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAsC3C,CAAC;AAGF,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UTCP Tools for UserProfilePanel
|
|
3
|
+
*
|
|
4
|
+
* These tools allow AI agents to interact with the User Profile panel
|
|
5
|
+
* through the Universal Tool Communication Protocol.
|
|
6
|
+
*/
|
|
7
|
+
import type { PanelTool, PanelToolsMetadata } from '../../types';
|
|
8
|
+
/**
|
|
9
|
+
* View organizations tool
|
|
10
|
+
* Switches the panel view to show organizations
|
|
11
|
+
*/
|
|
12
|
+
export declare const viewOrganizationsTool: PanelTool;
|
|
13
|
+
/**
|
|
14
|
+
* View starred repositories tool
|
|
15
|
+
* Switches the panel view to show starred repositories
|
|
16
|
+
*/
|
|
17
|
+
export declare const viewStarredTool: PanelTool;
|
|
18
|
+
/**
|
|
19
|
+
* Select organization tool
|
|
20
|
+
* Selects an organization to view its details
|
|
21
|
+
*/
|
|
22
|
+
export declare const selectOrganizationTool: PanelTool;
|
|
23
|
+
/**
|
|
24
|
+
* Select repository tool
|
|
25
|
+
* Selects a starred repository to view its details
|
|
26
|
+
*/
|
|
27
|
+
export declare const selectRepositoryTool: PanelTool;
|
|
28
|
+
/**
|
|
29
|
+
* Clone repository tool
|
|
30
|
+
* Initiates cloning a starred repository
|
|
31
|
+
*/
|
|
32
|
+
export declare const cloneRepositoryTool: PanelTool;
|
|
33
|
+
/**
|
|
34
|
+
* Filter starred repositories tool
|
|
35
|
+
* Filters the starred repositories by search term
|
|
36
|
+
*/
|
|
37
|
+
export declare const filterStarredTool: PanelTool;
|
|
38
|
+
/**
|
|
39
|
+
* All tools for the UserProfilePanel
|
|
40
|
+
*/
|
|
41
|
+
export declare const userProfilePanelTools: PanelTool[];
|
|
42
|
+
/**
|
|
43
|
+
* Tools metadata for registration
|
|
44
|
+
*/
|
|
45
|
+
export declare const userProfilePanelToolsMetadata: PanelToolsMetadata;
|
|
46
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/panels/UserProfilePanel/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAoBnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAoB7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAyBpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SA6BlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,SA6BjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAyB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,EAO5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,kBAK3C,CAAC"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UserProfilePanel Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for displaying user profiles in the network view,
|
|
5
|
+
* including their organizations and starred repositories.
|
|
6
|
+
*/
|
|
7
|
+
import type { PanelActions } from '../../types';
|
|
8
|
+
/**
|
|
9
|
+
* GitHub User profile - matches GitHubUser from electron-app
|
|
10
|
+
*/
|
|
11
|
+
export interface GitHubUserProfile {
|
|
12
|
+
login: string;
|
|
13
|
+
id: number;
|
|
14
|
+
avatar_url: string;
|
|
15
|
+
name: string | null;
|
|
16
|
+
company: string | null;
|
|
17
|
+
location: string | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
bio: string | null;
|
|
20
|
+
public_repos: number;
|
|
21
|
+
public_gists: number;
|
|
22
|
+
followers: number;
|
|
23
|
+
following: number;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* GitHub Organization - matches GitHubOrganization from electron-app
|
|
29
|
+
*/
|
|
30
|
+
export interface GitHubOrganization {
|
|
31
|
+
login: string;
|
|
32
|
+
id: number;
|
|
33
|
+
avatar_url: string;
|
|
34
|
+
description: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* GitHub Repository - matches GitHubRepository from electron-app
|
|
38
|
+
*/
|
|
39
|
+
export interface GitHubRepository {
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
full_name: string;
|
|
43
|
+
owner: {
|
|
44
|
+
login: string;
|
|
45
|
+
avatar_url?: string;
|
|
46
|
+
};
|
|
47
|
+
private: boolean;
|
|
48
|
+
html_url: string;
|
|
49
|
+
description: string | null;
|
|
50
|
+
fork: boolean;
|
|
51
|
+
clone_url: string;
|
|
52
|
+
updated_at: string;
|
|
53
|
+
pushed_at: string;
|
|
54
|
+
language: string | null;
|
|
55
|
+
default_branch: string;
|
|
56
|
+
stargazers_count?: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* User presence status from network
|
|
60
|
+
*/
|
|
61
|
+
export interface UserPresenceStatus {
|
|
62
|
+
status: 'online' | 'away' | 'offline';
|
|
63
|
+
lastSeen?: number;
|
|
64
|
+
statusMessage?: string;
|
|
65
|
+
activeRepository?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Data slice for user profile panel
|
|
69
|
+
*/
|
|
70
|
+
export interface UserProfileSlice {
|
|
71
|
+
/** The user's GitHub profile */
|
|
72
|
+
user: GitHubUserProfile | null;
|
|
73
|
+
/** User's GitHub organizations */
|
|
74
|
+
organizations: GitHubOrganization[];
|
|
75
|
+
/** User's starred repositories (public) */
|
|
76
|
+
starredRepositories: GitHubRepository[];
|
|
77
|
+
/** User's presence status in the network */
|
|
78
|
+
presence?: UserPresenceStatus;
|
|
79
|
+
/** Whether data is loading */
|
|
80
|
+
loading: boolean;
|
|
81
|
+
/** Error message if loading failed */
|
|
82
|
+
error?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Extended actions for UserProfilePanel
|
|
86
|
+
*/
|
|
87
|
+
export interface UserProfilePanelActions extends PanelActions {
|
|
88
|
+
/**
|
|
89
|
+
* View an organization's details
|
|
90
|
+
* @param orgLogin - Organization login/username
|
|
91
|
+
*/
|
|
92
|
+
viewOrganization?: (orgLogin: string) => Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* View a repository's details
|
|
95
|
+
* @param owner - Repository owner
|
|
96
|
+
* @param repo - Repository name
|
|
97
|
+
*/
|
|
98
|
+
viewRepository?: (owner: string, repo: string) => Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Clone a repository
|
|
101
|
+
* @param repository - Repository to clone
|
|
102
|
+
*/
|
|
103
|
+
cloneRepository?: (repository: GitHubRepository) => Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Open repository in browser
|
|
106
|
+
* @param url - Repository URL
|
|
107
|
+
*/
|
|
108
|
+
openInBrowser?: (url: string) => Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Fetch user profile by username
|
|
111
|
+
* @param username - GitHub username
|
|
112
|
+
*/
|
|
113
|
+
fetchUserProfile?: (username: string) => Promise<GitHubUserProfile | null>;
|
|
114
|
+
/**
|
|
115
|
+
* Fetch user's organizations
|
|
116
|
+
* @param username - GitHub username
|
|
117
|
+
*/
|
|
118
|
+
fetchUserOrganizations?: (username: string) => Promise<GitHubOrganization[]>;
|
|
119
|
+
/**
|
|
120
|
+
* Fetch user's starred repositories
|
|
121
|
+
* @param username - GitHub username
|
|
122
|
+
*/
|
|
123
|
+
fetchUserStarredRepositories?: (username: string) => Promise<GitHubRepository[]>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Props for UserProfileCard component
|
|
127
|
+
*/
|
|
128
|
+
export interface UserProfileCardProps {
|
|
129
|
+
/** User profile data */
|
|
130
|
+
user: GitHubUserProfile;
|
|
131
|
+
/** User's presence status */
|
|
132
|
+
presence?: UserPresenceStatus;
|
|
133
|
+
/** Whether this is the current user's own profile */
|
|
134
|
+
isCurrentUser?: boolean;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Props for OrganizationCard component
|
|
138
|
+
*/
|
|
139
|
+
export interface OrganizationCardProps {
|
|
140
|
+
/** Organization data */
|
|
141
|
+
organization: GitHubOrganization;
|
|
142
|
+
/** Callback when card is clicked */
|
|
143
|
+
onClick?: (organization: GitHubOrganization) => void;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Props for StarredRepositoryCard component
|
|
147
|
+
*/
|
|
148
|
+
export interface StarredRepositoryCardProps {
|
|
149
|
+
/** Repository data */
|
|
150
|
+
repository: GitHubRepository;
|
|
151
|
+
/** Callback when card is clicked */
|
|
152
|
+
onClick?: (repository: GitHubRepository) => void;
|
|
153
|
+
/** Callback when clone button is clicked */
|
|
154
|
+
onClone?: (repository: GitHubRepository) => void;
|
|
155
|
+
/** Callback when open in browser is clicked */
|
|
156
|
+
onOpenInBrowser?: (repository: GitHubRepository) => void;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Organization selected event payload
|
|
160
|
+
*/
|
|
161
|
+
export interface OrganizationSelectedPayload {
|
|
162
|
+
orgLogin: string;
|
|
163
|
+
organization: GitHubOrganization;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Repository selected event payload
|
|
167
|
+
*/
|
|
168
|
+
export interface RepositorySelectedPayload {
|
|
169
|
+
owner: string;
|
|
170
|
+
repo: string;
|
|
171
|
+
repository: GitHubRepository;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Repository clone requested event payload
|
|
175
|
+
*/
|
|
176
|
+
export interface RepositoryCloneRequestedPayload {
|
|
177
|
+
repository: GitHubRepository;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Event payloads for UserProfilePanel
|
|
181
|
+
*/
|
|
182
|
+
export interface UserProfilePanelEventPayloads {
|
|
183
|
+
/** Select organization event (from tools) */
|
|
184
|
+
'select-organization': {
|
|
185
|
+
orgLogin: string;
|
|
186
|
+
};
|
|
187
|
+
/** Select repository event (from tools) */
|
|
188
|
+
'select-repository': {
|
|
189
|
+
owner: string;
|
|
190
|
+
repo: string;
|
|
191
|
+
};
|
|
192
|
+
/** Organization selected notification */
|
|
193
|
+
'organization:selected': OrganizationSelectedPayload;
|
|
194
|
+
/** Repository selected notification */
|
|
195
|
+
'repository:selected': RepositorySelectedPayload;
|
|
196
|
+
/** Repository clone requested notification */
|
|
197
|
+
'repository:clone-requested': RepositoryCloneRequestedPayload;
|
|
198
|
+
/** Profile view changed (switched tabs) */
|
|
199
|
+
'view:changed': {
|
|
200
|
+
view: 'organizations' | 'starred';
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Active view tab in the panel
|
|
205
|
+
*/
|
|
206
|
+
export type UserProfileView = 'organizations' | 'starred';
|
|
207
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/panels/UserProfilePanel/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,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