synapse-compiler 0.0.0-stage → 0.2.2

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.
@@ -0,0 +1,16 @@
1
+ import type { CheckerPlugin, SynapseConfig } from '../types';
2
+ /**
3
+ * 프레임워크 설정 헬퍼 (타입 추론 지원)
4
+ */
5
+ export declare function defineConfig(config: SynapseConfig): SynapseConfig;
6
+ /**
7
+ * 커스텀 체커 플러그인 생성 헬퍼 (타입 추론 지원)
8
+ */
9
+ export declare function createCheckerPlugin(plugin: CheckerPlugin): CheckerPlugin;
10
+ /**
11
+ * 프로젝트 내의 synapse.config 설정 파일을 탐색하고 로드합니다.
12
+ */
13
+ export declare function loadSynapseConfig(targetDir?: string): Promise<{
14
+ config: SynapseConfig;
15
+ configPath: string;
16
+ }>;
@@ -0,0 +1,17 @@
1
+ import type { SynapseConfig, SynapseOptions } from '../types';
2
+ /**
3
+ * 시냅스 검사 엔진 구동 루틴 (synapse check)
4
+ */
5
+ export declare function executeChecks(config: SynapseConfig, options: SynapseOptions): Promise<number>;
6
+ /**
7
+ * 시냅스 인과율 병렬 빌드 엔진 구동 루틴 (synapse build)
8
+ */
9
+ export declare function executeBuild(config: SynapseConfig, options?: SynapseOptions): Promise<number>;
10
+ /**
11
+ * 시냅스 고속 인스톨러 패키징 엔진 구동 루틴 (synapse package)
12
+ */
13
+ export declare function executePackage(config: SynapseConfig, options?: SynapseOptions): Promise<number>;
14
+ /**
15
+ * 시냅스 인과율 암호화 서명 엔진 구동 루틴 (synapse sign)
16
+ */
17
+ export declare function executeSign(config: SynapseConfig, options?: SynapseOptions): Promise<number>;
@@ -0,0 +1,5 @@
1
+ import type { CausalDecision, CheckResult, SynapseOptions } from '../types';
2
+ /**
3
+ * 프로젝트 시냅스(Project Synapse) 프레임워크 대시보드 리포터
4
+ */
5
+ export declare function reportResults(decision: CausalDecision, results: readonly CheckResult[], totalDurationMs: number, options: SynapseOptions): void;
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,281 @@
1
+ /**
2
+ * Synapse Kit - Internationalization (i18n) Engine
3
+ * 시스템 OS 로케일(또는 환경변수/CLI 플래그)을 자동 인식하여 한국어와 영어를 자동 분기합니다.
4
+ */
5
+ export type SupportedLocale = 'ko' | 'en';
6
+ declare const MESSAGES: {
7
+ ko: {
8
+ cliTitle: string;
9
+ cliUsage: string;
10
+ cliCommands: string;
11
+ cmdCheck: string;
12
+ cmdBuild: string;
13
+ cmdPackage: string;
14
+ cmdSign: string;
15
+ cmdInit: string;
16
+ cmdMemory: string;
17
+ cliOptions: string;
18
+ optAll: string;
19
+ optForce: string;
20
+ optAgent: string;
21
+ optCompact: string;
22
+ optInteractive: string;
23
+ optWatch: string;
24
+ optLang: string;
25
+ optHelp: string;
26
+ optVersion: string;
27
+ unknownCmd: string;
28
+ errPrefix: string;
29
+ configExists: string;
30
+ configCreated: string;
31
+ checkHeader: string;
32
+ causalAll: string;
33
+ causalDirty: (count: number, plugins: string) => string;
34
+ causalClean: string;
35
+ causalCleanCacheHit: string;
36
+ causalBaseline: string;
37
+ causalUnrelated: (count: number) => string;
38
+ causalGitFail: string;
39
+ checkPassed: string;
40
+ checkSkipped: string;
41
+ checkFailed: string;
42
+ checkSuccessSummary: (errs: number, warns: number, skips: number, sec: string) => string;
43
+ checkFailureSummary: (errs: number, warns: number, sec: string) => string;
44
+ interactivePause: string;
45
+ interactiveReload: string;
46
+ interactiveTitle: string;
47
+ interactiveTarget: string;
48
+ interactiveWatching: string;
49
+ interactiveExit: string;
50
+ interactiveDetected: (time: string, file: string) => string;
51
+ interactivePassed: (sec: string) => string;
52
+ interactiveResumed: string;
53
+ interactiveFailed: string;
54
+ buildHeader: string;
55
+ buildSkipped: string;
56
+ buildSuccess: string;
57
+ buildFailed: string;
58
+ buildAllUpToDate: string;
59
+ buildComplete: (sec: string) => string;
60
+ packageHeader: string;
61
+ packageSuccess: (sec: string) => string;
62
+ packageFailed: (sec: string) => string;
63
+ signHeader: string;
64
+ signSkipped: string;
65
+ signSuccess: (sec: string) => string;
66
+ signFailed: (sec: string) => string;
67
+ signNoConfig: string;
68
+ signNoKey: (p: string) => string;
69
+ signNoInstaller: string;
70
+ signTarget: string;
71
+ signStatus: string;
72
+ signFile: string;
73
+ signReasonLabel: string;
74
+ signEngineLabel: string;
75
+ signCacheHit: string;
76
+ signExistingKeep: (p: string) => string;
77
+ signIntegrityPass: string;
78
+ statusSuccess: string;
79
+ statusSkipped: string;
80
+ statusWarning: string;
81
+ statusError: string;
82
+ causalAnalysis: string;
83
+ trackSkipped: string;
84
+ trackComplete: string;
85
+ trackFailed: string;
86
+ noBuildTracks: string;
87
+ buildSuccessSummary: (tracks: number, sec: string) => string;
88
+ buildFailureSummary: string;
89
+ packagingPreBuild: string;
90
+ packagingStart: string;
91
+ packagingGuide: string;
92
+ pluginRustTitle: string;
93
+ pluginRustSuccess: string;
94
+ pluginRustClippyWarn: (count: number) => string;
95
+ pluginRustCompileFail: string;
96
+ pluginRustExecFail: (msg: string) => string;
97
+ pluginSvelteTitle: string;
98
+ pluginSvelteSuccess: string;
99
+ pluginSvelteError: string;
100
+ pluginSvelteExecFail: (msg: string) => string;
101
+ pluginJavaTitle: string;
102
+ pluginJavaSuccess: (count: number) => string;
103
+ pluginJavaNoFiles: string;
104
+ pluginJavaError: string;
105
+ pluginCppTitle: string;
106
+ pluginCppSuccess: (count: number) => string;
107
+ pluginCppNoFiles: string;
108
+ pluginCppError: string;
109
+ pluginCsharpTitle: string;
110
+ pluginCsharpSuccess: string;
111
+ pluginCsharpError: string;
112
+ pluginGoTitle: string;
113
+ pluginGoSuccess: string;
114
+ pluginGoError: string;
115
+ pluginPythonTitle: string;
116
+ pluginPythonSuccess: (count: number) => string;
117
+ pluginPythonNoFiles: string;
118
+ pluginPythonError: string;
119
+ pluginTypescriptTitlePure: string;
120
+ pluginTypescriptTitleNative: string;
121
+ pluginTypescriptSuccess: (mode: string) => string;
122
+ pluginTypescriptError: string;
123
+ pluginSchemaTitle: string;
124
+ pluginSchemaSuccess: (count: number) => string;
125
+ pluginSchemaParseFail: (path: string, err: string) => string;
126
+ pluginNativeTitle: string;
127
+ pluginNativeSuccess: (count: number) => string;
128
+ pluginNativeMissing: (path: string) => string;
129
+ pluginNativeNotPe: (path: string) => string;
130
+ pluginNativeInvalidPe: (path: string) => string;
131
+ pluginNativeInvalidArch: (path: string, code: string) => string;
132
+ pluginNsisTitle: string;
133
+ pluginNsisSuccess: (path: string) => string;
134
+ pluginNsisMissing: (path: string) => string;
135
+ pluginNsisCorrupt: string;
136
+ pluginNsisDirectiveMissing: (dir: string) => string;
137
+ };
138
+ en: {
139
+ cliTitle: string;
140
+ cliUsage: string;
141
+ cliCommands: string;
142
+ cmdCheck: string;
143
+ cmdBuild: string;
144
+ cmdPackage: string;
145
+ cmdSign: string;
146
+ cmdInit: string;
147
+ cmdMemory: string;
148
+ cliOptions: string;
149
+ optAll: string;
150
+ optForce: string;
151
+ optAgent: string;
152
+ optCompact: string;
153
+ optInteractive: string;
154
+ optWatch: string;
155
+ optLang: string;
156
+ optHelp: string;
157
+ optVersion: string;
158
+ unknownCmd: string;
159
+ errPrefix: string;
160
+ configExists: string;
161
+ configCreated: string;
162
+ checkHeader: string;
163
+ causalAll: string;
164
+ causalDirty: (count: number, plugins: string) => string;
165
+ causalClean: string;
166
+ causalCleanCacheHit: string;
167
+ causalBaseline: string;
168
+ causalUnrelated: (count: number) => string;
169
+ causalGitFail: string;
170
+ checkPassed: string;
171
+ checkSkipped: string;
172
+ checkFailed: string;
173
+ checkSuccessSummary: (errs: number, warns: number, skips: number, sec: string) => string;
174
+ checkFailureSummary: (errs: number, warns: number, sec: string) => string;
175
+ interactivePause: string;
176
+ interactiveReload: string;
177
+ interactiveTitle: string;
178
+ interactiveTarget: string;
179
+ interactiveWatching: string;
180
+ interactiveExit: string;
181
+ interactiveDetected: (time: string, file: string) => string;
182
+ interactivePassed: (sec: string) => string;
183
+ interactiveResumed: string;
184
+ interactiveFailed: string;
185
+ buildHeader: string;
186
+ buildSkipped: string;
187
+ buildSuccess: string;
188
+ buildFailed: string;
189
+ buildAllUpToDate: string;
190
+ buildComplete: (sec: string) => string;
191
+ packageHeader: string;
192
+ packageSuccess: (sec: string) => string;
193
+ packageFailed: (sec: string) => string;
194
+ signHeader: string;
195
+ signSkipped: string;
196
+ signSuccess: (sec: string) => string;
197
+ signFailed: (sec: string) => string;
198
+ signNoConfig: string;
199
+ signNoKey: (p: string) => string;
200
+ signNoInstaller: string;
201
+ signTarget: string;
202
+ signStatus: string;
203
+ signFile: string;
204
+ signReasonLabel: string;
205
+ signEngineLabel: string;
206
+ signCacheHit: string;
207
+ signExistingKeep: (p: string) => string;
208
+ signIntegrityPass: string;
209
+ statusSuccess: string;
210
+ statusSkipped: string;
211
+ statusWarning: string;
212
+ statusError: string;
213
+ causalAnalysis: string;
214
+ trackSkipped: string;
215
+ trackComplete: string;
216
+ trackFailed: string;
217
+ noBuildTracks: string;
218
+ buildSuccessSummary: (tracks: number, sec: string) => string;
219
+ buildFailureSummary: string;
220
+ packagingPreBuild: string;
221
+ packagingStart: string;
222
+ packagingGuide: string;
223
+ pluginRustTitle: string;
224
+ pluginRustSuccess: string;
225
+ pluginRustClippyWarn: (count: number) => string;
226
+ pluginRustCompileFail: string;
227
+ pluginRustExecFail: (msg: string) => string;
228
+ pluginSvelteTitle: string;
229
+ pluginSvelteSuccess: string;
230
+ pluginSvelteError: string;
231
+ pluginSvelteExecFail: (msg: string) => string;
232
+ pluginJavaTitle: string;
233
+ pluginJavaSuccess: (count: number) => string;
234
+ pluginJavaNoFiles: string;
235
+ pluginJavaError: string;
236
+ pluginCppTitle: string;
237
+ pluginCppSuccess: (count: number) => string;
238
+ pluginCppNoFiles: string;
239
+ pluginCppError: string;
240
+ pluginCsharpTitle: string;
241
+ pluginCsharpSuccess: string;
242
+ pluginCsharpError: string;
243
+ pluginGoTitle: string;
244
+ pluginGoSuccess: string;
245
+ pluginGoError: string;
246
+ pluginPythonTitle: string;
247
+ pluginPythonSuccess: (count: number) => string;
248
+ pluginPythonNoFiles: string;
249
+ pluginPythonError: string;
250
+ pluginTypescriptTitlePure: string;
251
+ pluginTypescriptTitleNative: string;
252
+ pluginTypescriptSuccess: (mode: string) => string;
253
+ pluginTypescriptError: string;
254
+ pluginSchemaTitle: string;
255
+ pluginSchemaSuccess: (count: number) => string;
256
+ pluginSchemaParseFail: (path: string, err: string) => string;
257
+ pluginNativeTitle: string;
258
+ pluginNativeSuccess: (count: number) => string;
259
+ pluginNativeMissing: (path: string) => string;
260
+ pluginNativeNotPe: (path: string) => string;
261
+ pluginNativeInvalidPe: (path: string) => string;
262
+ pluginNativeInvalidArch: (path: string, code: string) => string;
263
+ pluginNsisTitle: string;
264
+ pluginNsisSuccess: (path: string) => string;
265
+ pluginNsisMissing: (path: string) => string;
266
+ pluginNsisCorrupt: string;
267
+ pluginNsisDirectiveMissing: (dir: string) => string;
268
+ };
269
+ };
270
+ export type MessageKey = keyof typeof MESSAGES['ko'];
271
+ /**
272
+ * 환경 변수, OS 시스템 로케일 또는 CLI 플래그로부터 로케일을 자동 감지합니다.
273
+ */
274
+ export declare function detectLocale(explicitLang?: string): SupportedLocale;
275
+ export declare function setLocale(locale: SupportedLocale): void;
276
+ export declare function getLocale(): SupportedLocale;
277
+ /**
278
+ * 현재 로케일에 맞는 번역 메시지를 가져옵니다.
279
+ */
280
+ export declare function t(key: MessageKey, ...args: any[]): any;
281
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 프로젝트 시냅스 (Project Synapse) 초고속 컴파일러 & 검사 엔진 공개 API
3
+ */
4
+ export * from './types';
5
+ export { defineConfig, createCheckerPlugin, loadSynapseConfig } from './core/config';
6
+ export { executeChecks, executeBuild, executePackage, executeSign } from './core/engine';
7
+ export { reportResults } from './core/reporter';
8
+ export { analyzeCausalGraph } from './causal-graph';
9
+ export { loadBuildCache, saveBuildCache, computeFileHash } from './causal-build';
10
+ export { detectLocale, setLocale, getLocale, t, type SupportedLocale, type MessageKey } from './i18n';
11
+ export { rustChecker, type RustPluginOptions } from './plugins/rust';
12
+ export { svelteChecker, type SveltePluginOptions } from './plugins/svelte';
13
+ export { typescriptChecker, type TypescriptPluginOptions } from './plugins/typescript';
14
+ export { javaChecker, type JavaPluginOptions } from './plugins/java';
15
+ export { cppChecker, type CppPluginOptions } from './plugins/cpp';
16
+ export { csharpChecker, type CsharpPluginOptions } from './plugins/csharp';
17
+ export { goChecker, type GoPluginOptions } from './plugins/go';
18
+ export { pythonChecker, type PythonPluginOptions } from './plugins/python';
19
+ export { schemaChecker, type SchemaPluginOptions, type SchemaTarget } from './plugins/schema';
20
+ export { nativeChecker, type NativePluginOptions, type NativeBinaryTarget } from './plugins/native';
21
+ export { nsisChecker, type NsisPluginOptions } from './plugins/nsis';