synapse-kit 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.ko.md +129 -0
- package/README.md +127 -2
- package/dist/causal-memory.json +4581 -0
- package/dist/cli-memory.d.ts +5 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +3474 -0
- package/dist/compiler/causal-build.d.ts +51 -0
- package/dist/compiler/causal-graph.d.ts +6 -0
- package/dist/compiler/cli.d.ts +2 -0
- package/dist/compiler/cli.js +1299 -0
- package/dist/compiler/core/config.d.ts +16 -0
- package/dist/compiler/core/engine.d.ts +17 -0
- package/dist/compiler/core/reporter.d.ts +5 -0
- package/dist/compiler/i18n.d.ts +281 -0
- package/dist/compiler/index.d.ts +21 -0
- package/dist/compiler/index.js +1983 -0
- package/dist/compiler/plugins/cpp.d.ts +19 -0
- package/dist/compiler/plugins/csharp.d.ts +13 -0
- package/dist/compiler/plugins/go.d.ts +15 -0
- package/dist/compiler/plugins/java.d.ts +16 -0
- package/dist/compiler/plugins/native.d.ts +12 -0
- package/dist/compiler/plugins/nsis.d.ts +8 -0
- package/dist/compiler/plugins/python.d.ts +21 -0
- package/dist/compiler/plugins/rust.d.ts +9 -0
- package/dist/compiler/plugins/schema.d.ts +12 -0
- package/dist/compiler/plugins/svelte.d.ts +10 -0
- package/dist/compiler/plugins/typescript.d.ts +23 -0
- package/dist/compiler/types.d.ts +72 -0
- package/dist/compiler/virtual_120b_types.d.ts +18 -0
- package/dist/core/config.d.ts +16 -0
- package/dist/core/engine.d.ts +17 -0
- package/dist/core/reporter.d.ts +5 -0
- package/dist/db/index.js +1910 -0
- package/dist/i18n.d.ts +281 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +8282 -0
- package/dist/memory/causal-benchmark.d.ts +29 -0
- package/dist/memory/causal-branch.d.ts +79 -0
- package/dist/memory/causal-build.d.ts +51 -0
- package/dist/memory/causal-config.d.ts +38 -0
- package/dist/memory/causal-context.d.ts +113 -0
- package/dist/memory/causal-contexts.json +316 -0
- package/dist/memory/causal-graph.d.ts +6 -0
- package/dist/memory/causal-graveyard.d.ts +94 -0
- package/dist/memory/causal-lens.d.ts +133 -0
- package/dist/memory/causal-memory.json +5054 -0
- package/dist/memory/causal-migrator.d.ts +11 -0
- package/dist/memory/causal-peer.d.ts +53 -0
- package/dist/memory/causal-predictor.d.ts +42 -0
- package/dist/memory/causal-query.d.ts +21 -0
- package/dist/memory/causal-server.d.ts +578 -0
- package/dist/memory/causal-store.d.ts +280 -0
- package/dist/memory/causal-synthesizer.d.ts +96 -0
- package/dist/memory/causal-timeseries.d.ts +92 -0
- package/dist/memory/cli.d.ts +13 -0
- package/dist/memory/cli.js +5668 -0
- package/dist/memory/index.d.ts +13 -0
- package/dist/memory/index.js +4451 -0
- package/dist/plugins/cpp.d.ts +19 -0
- package/dist/plugins/csharp.d.ts +13 -0
- package/dist/plugins/go.d.ts +15 -0
- package/dist/plugins/java.d.ts +16 -0
- package/dist/plugins/native.d.ts +12 -0
- package/dist/plugins/nsis.d.ts +8 -0
- package/dist/plugins/python.d.ts +21 -0
- package/dist/plugins/rust.d.ts +9 -0
- package/dist/plugins/schema.d.ts +12 -0
- package/dist/plugins/svelte.d.ts +10 -0
- package/dist/plugins/typescript.d.ts +23 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/core/config.d.ts +12 -0
- package/dist/src/core/engine.d.ts +9 -0
- package/dist/src/core/reporter.d.ts +5 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/memory/causal-graph.d.ts +6 -0
- package/dist/src/plugins/native.d.ts +12 -0
- package/dist/src/plugins/nsis.d.ts +8 -0
- package/dist/src/plugins/rust.d.ts +9 -0
- package/dist/src/plugins/schema.d.ts +12 -0
- package/dist/src/plugins/svelte.d.ts +10 -0
- package/dist/src/types.d.ts +55 -0
- package/dist/types.d.ts +72 -0
- package/package.json +87 -4
|
@@ -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>;
|