@team-semicolon/semo-cli 3.13.1 → 3.14.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.
- package/dist/database.d.ts +84 -0
- package/dist/database.js +727 -0
- package/dist/index.js +209 -58
- package/package.json +10 -9
- package/dist/supabase.d.ts +0 -97
- package/dist/supabase.js +0 -602
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SEMO CLI - PostgreSQL 데이터베이스 클라이언트
|
|
3
|
+
*
|
|
4
|
+
* 팀 코어 PostgreSQL에서 스킬, 커맨드, 에이전트 정보를 조회합니다.
|
|
5
|
+
* DB 연결 실패 시 하드코딩된 폴백 데이터를 사용합니다.
|
|
6
|
+
*
|
|
7
|
+
* v3.14.0: Supabase → PostgreSQL 전환
|
|
8
|
+
* - semo-system 의존성 제거
|
|
9
|
+
* - 문서 내용을 DB에서 직접 조회
|
|
10
|
+
*/
|
|
11
|
+
export interface Skill {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
content: string;
|
|
17
|
+
category: string;
|
|
18
|
+
package: string;
|
|
19
|
+
is_active: boolean;
|
|
20
|
+
is_required: boolean;
|
|
21
|
+
install_order: number;
|
|
22
|
+
version: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SemoCommand {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
folder: string;
|
|
28
|
+
content: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
is_active: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface Agent {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
display_name: string;
|
|
36
|
+
content: string;
|
|
37
|
+
package: string;
|
|
38
|
+
is_active: boolean;
|
|
39
|
+
install_order: number;
|
|
40
|
+
}
|
|
41
|
+
export interface Package {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
display_name: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
layer: string;
|
|
47
|
+
package_type: string;
|
|
48
|
+
version: string;
|
|
49
|
+
is_active: boolean;
|
|
50
|
+
is_required: boolean;
|
|
51
|
+
install_order: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 활성 스킬 목록 조회
|
|
55
|
+
*/
|
|
56
|
+
export declare function getActiveSkills(): Promise<Skill[]>;
|
|
57
|
+
/**
|
|
58
|
+
* 스킬 이름 목록만 조회
|
|
59
|
+
*/
|
|
60
|
+
export declare function getActiveSkillNames(): Promise<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* 커맨드 목록 조회
|
|
63
|
+
*/
|
|
64
|
+
export declare function getCommands(): Promise<SemoCommand[]>;
|
|
65
|
+
/**
|
|
66
|
+
* 에이전트 목록 조회
|
|
67
|
+
*/
|
|
68
|
+
export declare function getAgents(): Promise<Agent[]>;
|
|
69
|
+
/**
|
|
70
|
+
* 패키지 목록 조회
|
|
71
|
+
*/
|
|
72
|
+
export declare function getPackages(layer?: string): Promise<Package[]>;
|
|
73
|
+
/**
|
|
74
|
+
* 카테고리별 스킬 개수 조회
|
|
75
|
+
*/
|
|
76
|
+
export declare function getSkillCountByCategory(): Promise<Record<string, number>>;
|
|
77
|
+
/**
|
|
78
|
+
* DB 연결 종료
|
|
79
|
+
*/
|
|
80
|
+
export declare function closeConnection(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* DB 연결 상태 확인
|
|
83
|
+
*/
|
|
84
|
+
export declare function isDbConnected(): Promise<boolean>;
|