chore: exclude local resource artifacts from main sync

This commit is contained in:
2026-05-15 10:16:45 +09:00
parent 442879313f
commit d38d022872
504 changed files with 17074 additions and 3642 deletions

86
src/app/main/layout/buildSearchOptions.ts Executable file → Normal file
View File

@@ -5,6 +5,8 @@ import {
buildChatPath,
buildDocsPath,
buildPlansPath,
buildPlayPath,
buildSavedLayoutPath,
getDocsSectionLabel,
PLAN_FILTER_LABELS,
PLAN_GROUP_LABEL,
@@ -22,6 +24,10 @@ type BuildSearchOptionsParams = {
folder: string;
preview?: string;
}>;
savedLayouts: Array<{
id: string;
name: string;
}>;
hasAccess: boolean;
navigateTo: (path: string) => void;
setFocusedComponentId: (value: string | null) => void;
@@ -33,6 +39,7 @@ export function buildSearchOptions({
widgetSamples,
docFolders,
docsDocuments,
savedLayouts,
hasAccess,
navigateTo,
setFocusedComponentId,
@@ -183,6 +190,19 @@ export function buildSearchOptions({
} satisfies SearchKeywordOption,
]
: []),
{
id: 'page:preview:app',
label: 'Preview App / 모바일 앱 열기',
group: 'Page',
keywords: ['preview', 'iframe', '미리보기', 'preview app', '프리뷰 앱', '모바일 앱', 'cbt app'],
description: 'preview.sm-home.cloud에서 실제 앱 컨테이너 화면을 모바일 해상도로 엽니다.',
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildPlayPath('cbt'));
setFocusedComponentId(null);
},
onSelectWindow,
},
{
id: 'page:chat:live',
label: 'Codex Live / Codex Live',
@@ -209,7 +229,7 @@ export function buildSearchOptions({
},
{
id: 'page:chat:resources',
label: 'Codex Live / 리소스 관리',
label: '리소스 관리 / 리소스 관리',
group: 'Page',
keywords: ['codex live', 'resource', 'resources', 'file', 'files', '리소스', '파일', '파일 시스템'],
onSelect: () => {
@@ -231,34 +251,30 @@ export function buildSearchOptions({
},
onSelectWindow,
},
...(hasAccess
? [
{
id: 'page:chat:manage',
label: '채팅 관리 / 유형 권한 관리',
group: 'Page',
keywords: ['chat manage', 'chat type', 'permission', '권한', '채팅 유형', '채팅 관리'],
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildChatPath('manage'));
setFocusedComponentId(null);
},
onSelectWindow,
},
{
id: 'page:chat:manage-defaults',
label: '채팅 관리 / 기본 유형 관리',
group: 'Page',
keywords: ['chat manage', 'default type', 'default context', '기본 유형', '기본 context', '채팅 관리'],
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildChatPath('manage-defaults'));
setFocusedComponentId(null);
},
onSelectWindow,
} satisfies SearchKeywordOption,
]
: []),
{
id: 'page:chat:manage',
label: '채팅 관리 / 유형 권한 관리',
group: 'Page',
keywords: ['chat manage', 'chat type', 'permission', '권한', '채팅 유형', '채팅 관리'],
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildChatPath('manage'));
setFocusedComponentId(null);
},
onSelectWindow,
},
{
id: 'page:chat:manage-defaults',
label: '채팅 관리 / 공통 문맥 관리',
group: 'Page',
keywords: ['chat manage', 'default type', 'default context', '기본 유형', '공통 문맥', '기본 context', '채팅 관리'],
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildChatPath('manage-defaults'));
setFocusedComponentId(null);
},
onSelectWindow,
} satisfies SearchKeywordOption,
...docFolders.map((folder) => ({
id: `docs-folder:${folder}`,
label: `Docs / ${getDocsSectionLabel(folder)}`,
@@ -285,6 +301,18 @@ export function buildSearchOptions({
},
onSelectWindow,
})),
...savedLayouts.map((layout) => ({
id: `page:play:layout-record:${layout.id}`,
label: `Play / ${layout.name}`,
group: 'Play Layout',
keywords: compactKeywords([layout.name, layout.id, 'play', 'layout', 'saved layout', '저장 레이아웃', '메모']),
onSelect: () => {
requestPlanQuickFilter(null);
navigateTo(buildSavedLayoutPath(layout.id));
setFocusedComponentId(null);
},
onSelectWindow,
})),
...componentSamples.map((entry) => ({
id: `component:${entry.sampleMeta.componentId}:${entry.sampleMeta.id}`,
label: entry.sampleMeta.title,