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.
package/README.md CHANGED
@@ -1,3 +1,28 @@
1
- # Temporary Holding Version
1
+ # ⚡ synapse-compiler
2
+ > **Blazing-Fast Polyglot Compiler & Incremental Verification Engine for 10 Languages & Systems**
3
+ > Part of [Synapse Kit](https://github.com/minseokk77/synapse-kit) | Official Docs: [https://synapse.minseok.online](https://synapse.minseok.online)
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ ## Installation
6
+ ```bash
7
+ bun add -d synapse-compiler
8
+ # or
9
+ npm install -D synapse-compiler
10
+ ```
11
+
12
+ ## CLI Usage
13
+ ```bash
14
+ bunx synapse check # Everyday causal smart check
15
+ bunx synapse check --all # Full check across all 10 checkers
16
+ bunx synapse check -i # Live hotfix loop (0.05s in-memory re-check)
17
+ bunx synapse build # Multi-track incremental parallel build
18
+ bunx synapse package # Fast NSIS installer packaging
19
+ bunx synapse sign # Minisign / Ed25519 digital signature
20
+ ```
21
+
22
+ ## Features
23
+ - **10 Standard Checkers**: Rust, Svelte 5, TypeScript, C++, C#, Java, Go, Python, Schema, Native PE x64 DLL, NSIS.
24
+ - **Causal Smart Skip**: 0.00s skip for unmodified subsystems using Git worktree analysis.
25
+ - **Concurrency**: Fully non-blocking parallel execution across isolated worker threads.
26
+
27
+ ## License
28
+ MIT
@@ -0,0 +1,51 @@
1
+ import type { BuildTrack } from './types';
2
+ export interface TrackCacheRecord {
3
+ lastBuildTime: string;
4
+ gitCommit: string;
5
+ artifactExists: boolean;
6
+ }
7
+ export interface SignCacheRecord {
8
+ lastSignTime: string;
9
+ installerHash: string;
10
+ signaturePath: string;
11
+ }
12
+ export interface BuildCacheData {
13
+ lastVerifiedHead?: string;
14
+ tracks: Record<string, TrackCacheRecord>;
15
+ sign?: SignCacheRecord;
16
+ }
17
+ /**
18
+ * 인과율 빌드 캐시 로더
19
+ */
20
+ export declare function loadBuildCache(rootDir: string): BuildCacheData;
21
+ /**
22
+ * 인과율 빌드 캐시 저장
23
+ */
24
+ export declare function saveBuildCache(rootDir: string, cache: BuildCacheData): void;
25
+ /**
26
+ * Git 작업 트리의 변경 파일 목록, 최신 HEAD 해시 및 Git 저장소 루트 디렉터리 조회
27
+ */
28
+ export declare function getGitState(rootDir: string): Promise<{
29
+ head: string;
30
+ modifiedFiles: string[];
31
+ repoRoot: string;
32
+ }>;
33
+ /**
34
+ * 특정 빌드 트랙의 인과율 스킵 여부 판단
35
+ */
36
+ export declare function shouldSkipBuildTrack(track: BuildTrack, rootDir: string, repoRoot: string, cache: BuildCacheData, modifiedFiles: string[], isForce: boolean): {
37
+ skip: boolean;
38
+ reason: string;
39
+ };
40
+ /**
41
+ * 파일의 SHA-256 해시 계산
42
+ */
43
+ export declare function computeFileHash(filePath: string): string;
44
+ /**
45
+ * 인스톨러 암호화 서명 스킵 여부 판단
46
+ */
47
+ export declare function shouldSkipSign(installerPath: string, signaturePath: string, cache: BuildCacheData, isForce: boolean): {
48
+ skip: boolean;
49
+ reason: string;
50
+ currentHash: string;
51
+ };
@@ -0,0 +1,6 @@
1
+ import type { CausalDecision, CheckerPlugin, SynapseOptions } from './types';
2
+ /**
3
+ * 프로젝트 시냅스(Project Synapse) 범용 AI 인과율 메모리 분석 엔진
4
+ * Git 변경 이력과 각 플러그인의 트리거 패턴을 교차 분석하여 불필요한 연산을 지능적으로 스킵합니다.
5
+ */
6
+ export declare function analyzeCausalGraph(rootDir: string, plugins: readonly CheckerPlugin[], options: SynapseOptions): Promise<CausalDecision>;
package/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ export {};