synapse-kit 0.0.0-stage → 0.3.0

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.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.ko.md +129 -0
  3. package/README.md +127 -2
  4. package/dist/causal-memory.json +4581 -0
  5. package/dist/cli-memory.d.ts +5 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.js +3474 -0
  8. package/dist/compiler/causal-build.d.ts +51 -0
  9. package/dist/compiler/causal-graph.d.ts +6 -0
  10. package/dist/compiler/cli.d.ts +2 -0
  11. package/dist/compiler/cli.js +1299 -0
  12. package/dist/compiler/core/config.d.ts +16 -0
  13. package/dist/compiler/core/engine.d.ts +17 -0
  14. package/dist/compiler/core/reporter.d.ts +5 -0
  15. package/dist/compiler/i18n.d.ts +281 -0
  16. package/dist/compiler/index.d.ts +21 -0
  17. package/dist/compiler/index.js +1983 -0
  18. package/dist/compiler/plugins/cpp.d.ts +19 -0
  19. package/dist/compiler/plugins/csharp.d.ts +13 -0
  20. package/dist/compiler/plugins/go.d.ts +15 -0
  21. package/dist/compiler/plugins/java.d.ts +16 -0
  22. package/dist/compiler/plugins/native.d.ts +12 -0
  23. package/dist/compiler/plugins/nsis.d.ts +8 -0
  24. package/dist/compiler/plugins/python.d.ts +21 -0
  25. package/dist/compiler/plugins/rust.d.ts +9 -0
  26. package/dist/compiler/plugins/schema.d.ts +12 -0
  27. package/dist/compiler/plugins/svelte.d.ts +10 -0
  28. package/dist/compiler/plugins/typescript.d.ts +23 -0
  29. package/dist/compiler/types.d.ts +72 -0
  30. package/dist/compiler/virtual_120b_types.d.ts +18 -0
  31. package/dist/core/config.d.ts +16 -0
  32. package/dist/core/engine.d.ts +17 -0
  33. package/dist/core/reporter.d.ts +5 -0
  34. package/dist/db/index.js +942 -0
  35. package/dist/i18n.d.ts +281 -0
  36. package/dist/index.d.ts +7 -0
  37. package/dist/index.js +7324 -0
  38. package/dist/memory/causal-benchmark.d.ts +29 -0
  39. package/dist/memory/causal-branch.d.ts +79 -0
  40. package/dist/memory/causal-build.d.ts +51 -0
  41. package/dist/memory/causal-config.d.ts +38 -0
  42. package/dist/memory/causal-context.d.ts +113 -0
  43. package/dist/memory/causal-contexts.json +316 -0
  44. package/dist/memory/causal-graph.d.ts +6 -0
  45. package/dist/memory/causal-graveyard.d.ts +94 -0
  46. package/dist/memory/causal-lens.d.ts +133 -0
  47. package/dist/memory/causal-memory.json +5054 -0
  48. package/dist/memory/causal-migrator.d.ts +11 -0
  49. package/dist/memory/causal-peer.d.ts +53 -0
  50. package/dist/memory/causal-predictor.d.ts +42 -0
  51. package/dist/memory/causal-query.d.ts +21 -0
  52. package/dist/memory/causal-server.d.ts +578 -0
  53. package/dist/memory/causal-store.d.ts +280 -0
  54. package/dist/memory/causal-synthesizer.d.ts +96 -0
  55. package/dist/memory/causal-timeseries.d.ts +92 -0
  56. package/dist/memory/cli.d.ts +13 -0
  57. package/dist/memory/cli.js +5668 -0
  58. package/dist/memory/index.d.ts +13 -0
  59. package/dist/memory/index.js +4451 -0
  60. package/dist/plugins/cpp.d.ts +19 -0
  61. package/dist/plugins/csharp.d.ts +13 -0
  62. package/dist/plugins/go.d.ts +15 -0
  63. package/dist/plugins/java.d.ts +16 -0
  64. package/dist/plugins/native.d.ts +12 -0
  65. package/dist/plugins/nsis.d.ts +8 -0
  66. package/dist/plugins/python.d.ts +21 -0
  67. package/dist/plugins/rust.d.ts +9 -0
  68. package/dist/plugins/schema.d.ts +12 -0
  69. package/dist/plugins/svelte.d.ts +10 -0
  70. package/dist/plugins/typescript.d.ts +23 -0
  71. package/dist/src/cli.d.ts +2 -0
  72. package/dist/src/core/config.d.ts +12 -0
  73. package/dist/src/core/engine.d.ts +9 -0
  74. package/dist/src/core/reporter.d.ts +5 -0
  75. package/dist/src/index.d.ts +13 -0
  76. package/dist/src/memory/causal-graph.d.ts +6 -0
  77. package/dist/src/plugins/native.d.ts +12 -0
  78. package/dist/src/plugins/nsis.d.ts +8 -0
  79. package/dist/src/plugins/rust.d.ts +9 -0
  80. package/dist/src/plugins/schema.d.ts +12 -0
  81. package/dist/src/plugins/svelte.d.ts +10 -0
  82. package/dist/src/types.d.ts +55 -0
  83. package/dist/types.d.ts +72 -0
  84. package/package.json +87 -4
@@ -0,0 +1,29 @@
1
+ import { type CausalMemoryDatabase } from './causal-store';
2
+ export interface OverloadBenchmarkConfig {
3
+ readonly ruleScale: number;
4
+ readonly relationScale: number;
5
+ readonly concurrency: number;
6
+ readonly totalRequests: number;
7
+ readonly fileInputScale: number;
8
+ readonly crudIterations: number;
9
+ }
10
+ export interface ScenarioMetrics {
11
+ readonly name: string;
12
+ readonly passed: boolean;
13
+ readonly details: Record<string, string | number>;
14
+ }
15
+ export interface OverloadBenchmarkReport {
16
+ readonly timestamp: string;
17
+ readonly config: OverloadBenchmarkConfig;
18
+ readonly allPassed: boolean;
19
+ readonly totalDurationMs: number;
20
+ readonly scenarios: readonly ScenarioMetrics[];
21
+ }
22
+ /**
23
+ * 대규모 합성 인과율 데이터베이스 생성기 (10,000 Rules + 20,000 Relations + 5-Hop & Circular Chains)
24
+ */
25
+ export declare function generateSyntheticDatabase(ruleCount: number, relationCount: number): CausalMemoryDatabase;
26
+ /**
27
+ * 차세대 인과율 메모리(Causal Memory 2.1) 4대 차원 과부하 벤치마크 실행기
28
+ */
29
+ export declare function executeOverloadBenchmark(customConfig?: Partial<OverloadBenchmarkConfig>, silent?: boolean): Promise<OverloadBenchmarkReport>;
@@ -0,0 +1,79 @@
1
+ import { ContextCheckpointStore, type ContextCheckpoint } from './causal-context';
2
+ import { CausalGraveyardStore } from './causal-graveyard';
3
+ /**
4
+ * 컨텍스트 브랜치 레코드 규격
5
+ */
6
+ export interface ContextBranch {
7
+ readonly name: string;
8
+ readonly baseCheckpointId: string;
9
+ readonly headCheckpointId: string;
10
+ readonly createdAt: string;
11
+ readonly updatedAt: string;
12
+ readonly status: 'active' | 'merged' | 'abandoned';
13
+ readonly description?: string;
14
+ readonly mergedInto?: string;
15
+ readonly abandonmentReason?: string;
16
+ }
17
+ /**
18
+ * 브랜치 데이터베이스 규격
19
+ */
20
+ export interface BranchDatabase {
21
+ readonly version: string;
22
+ readonly updatedAt: string;
23
+ readonly currentBranch: string;
24
+ readonly branches: readonly ContextBranch[];
25
+ }
26
+ /**
27
+ * 컨텍스트 브랜칭 및 머지 관리자 클래스 (SRP 준수)
28
+ */
29
+ export declare class CausalBranchStore {
30
+ private readonly dbPath;
31
+ private readonly contextStore;
32
+ private readonly graveyardStore;
33
+ private database;
34
+ private lastMtimeMs;
35
+ constructor(customPathOrContextStore?: string | ContextCheckpointStore, contextStoreOrGraveyard?: any, graveyardStore?: CausalGraveyardStore);
36
+ private loadDatabase;
37
+ reloadIfNeeded(): void;
38
+ private saveDatabase;
39
+ /**
40
+ * 신규 브랜치 분기 (Fork)
41
+ */
42
+ createBranch(name: string, options?: {
43
+ baseId?: string;
44
+ description?: string;
45
+ }): Promise<ContextBranch>;
46
+ /**
47
+ * 활성 브랜치 전환 (Switch)
48
+ */
49
+ switchBranch(name: string): ContextBranch;
50
+ /**
51
+ * 브랜치 병합 (Merge)
52
+ * 소스 브랜치의 핵심 의사결정 및 완료 과업을 타깃 브랜치로 통합
53
+ */
54
+ mergeBranch(sourceName: string, targetName?: string): Promise<{
55
+ mergedBranch: ContextBranch;
56
+ resultingCheckpoint: ContextCheckpoint;
57
+ }>;
58
+ /**
59
+ * 실패한 브랜치 폐기 및 실패 원인 Graveyard 자동 흡수
60
+ */
61
+ abandonBranch(name: string, failureInfo?: string | {
62
+ failedApproach?: string;
63
+ errorSignature?: string;
64
+ rootCause?: string;
65
+ counterMeasure?: string;
66
+ }, safeAlternative?: string): {
67
+ branch: ContextBranch;
68
+ trapRecorded?: boolean;
69
+ success?: boolean;
70
+ };
71
+ /**
72
+ * 브랜치 목록 조회
73
+ */
74
+ listBranches(): ContextBranch[];
75
+ /**
76
+ * 현재 활성 브랜치 조회
77
+ */
78
+ getCurrentBranch(): ContextBranch;
79
+ }
@@ -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,38 @@
1
+ /**
2
+ * 인과율 메모리(Causal Memory) 전역 설정 및 환경 변수 모듈
3
+ * 하드코딩을 배제하고 환경 변수와 OS 표준 경로를 통해 설정값을 관리합니다.
4
+ */
5
+ export declare const CAUSAL_MEMORY_CONFIG: {
6
+ /** 데이터베이스 스키마 버전 */
7
+ readonly SCHEMA_VERSION: string;
8
+ /** 전역 인과율 메모리 데이터베이스 기본 경로 */
9
+ readonly GLOBAL_DB_PATH: string;
10
+ /** 구형 메모리 백업 경로 */
11
+ readonly LEGACY_BACKUP_PATH: string;
12
+ /** 패키지 내장 폴백 데이터베이스 경로 */
13
+ readonly LOCAL_DB_PATH: string;
14
+ /** 독립 로컬 데몬 서버 기본 호스트 */
15
+ readonly DEFAULT_HOST: string;
16
+ /** 독립 로컬 데몬 서버 기본 포트 */
17
+ readonly DEFAULT_PORT: number;
18
+ /** 원격 Causal Memory 데몬 프록시 URL (예: Tailscale 피어 http://100.82.92.122:4242) */
19
+ readonly REMOTE_URL: string;
20
+ /** 원격 요청 제한 시간 (ms) */
21
+ readonly REMOTE_TIMEOUT_MS: number;
22
+ /** MCP 서버 프로토콜 버전 */
23
+ readonly MCP_PROTOCOL_VERSION: string;
24
+ /** MCP 서버 식별 이름 */
25
+ readonly MCP_SERVER_NAME: "synapse-causal-memory";
26
+ /** 공명 쿼리 시 컨텍스트 최대 노출 줄 수 (토큰 절감 임계치) */
27
+ readonly MAX_CONTEXT_PREVIEW_LINES: number;
28
+ /** 전역 컨텍스트 스냅샷(Checkpoint) 저장소 기본 경로 */
29
+ readonly CONTEXT_DB_PATH: string;
30
+ /** 패키지 내장 폴백 컨텍스트 스냅샷 경로 */
31
+ readonly LOCAL_CONTEXT_DB_PATH: string;
32
+ /** 최대 보존 컨텍스트 체크포인트 개수 */
33
+ readonly MAX_CHECKPOINTS_RETAINED: number;
34
+ /** 옵시디언(Obsidian) 볼트 기본 연동 루트 경로 */
35
+ readonly DEFAULT_OBSIDIAN_VAULT_PATH: string;
36
+ /** 옵시디언 볼트 내부 인과율 렌즈 저장 서브디렉터리 */
37
+ readonly OBSIDIAN_LENS_SUBDIR: string;
38
+ };
@@ -0,0 +1,113 @@
1
+ /**
2
+ * 컨텍스트 스냅샷(Checkpoint) 단일 레코드 규격
3
+ */
4
+ export interface ContextCheckpoint {
5
+ readonly id: string;
6
+ readonly sessionId: string;
7
+ readonly title: string;
8
+ readonly createdAt: string;
9
+ readonly cwd: string;
10
+ readonly gitBranch?: string;
11
+ readonly gitCommit?: string;
12
+ readonly modifiedFiles: readonly string[];
13
+ readonly activeFiles: readonly string[];
14
+ readonly goal: string;
15
+ readonly completedSteps: readonly string[];
16
+ readonly pendingTasks: readonly string[];
17
+ readonly keyDecisions: readonly string[];
18
+ readonly activeInvariants: readonly string[];
19
+ readonly artifacts: readonly string[];
20
+ readonly customMeta?: Record<string, unknown>;
21
+ }
22
+ /**
23
+ * 컨텍스트 체크포인트 생성 입력 규격
24
+ */
25
+ export interface SaveCheckpointInput {
26
+ readonly id?: string;
27
+ readonly sessionId?: string;
28
+ readonly title: string;
29
+ readonly cwd?: string;
30
+ readonly goal?: string;
31
+ readonly activeFiles?: readonly string[];
32
+ readonly modifiedFiles?: readonly string[];
33
+ readonly completedSteps?: readonly string[];
34
+ readonly pendingTasks?: readonly string[];
35
+ readonly keyDecisions?: readonly string[];
36
+ readonly activeInvariants?: readonly string[];
37
+ readonly artifacts?: readonly string[];
38
+ readonly keywords?: readonly string[];
39
+ readonly domain?: string;
40
+ readonly autoGit?: boolean;
41
+ readonly autoResonance?: boolean;
42
+ readonly customMeta?: Record<string, unknown>;
43
+ }
44
+ /**
45
+ * 컨텍스트 체크포인트 저장소 데이터베이스 규격
46
+ */
47
+ export interface ContextCheckpointDatabase {
48
+ readonly version: string;
49
+ readonly updatedAt: string;
50
+ readonly latestCheckpointId: string | null;
51
+ readonly totalCheckpoints: number;
52
+ readonly checkpoints: readonly ContextCheckpoint[];
53
+ }
54
+ /**
55
+ * Git 현재 브랜치 및 최신 커밋 해시 자동 추출 헬퍼
56
+ */
57
+ export declare function detectGitHeadInfo(cwd?: string): Promise<{
58
+ branch?: string;
59
+ commit?: string;
60
+ }>;
61
+ /**
62
+ * 세션 간 기억 손실 0%를 보장하는 인과율 컨텍스트 스냅샷 저장소 클래스 (SRP 준수)
63
+ */
64
+ export declare class ContextCheckpointStore {
65
+ private readonly dbPath;
66
+ private readonly memoryDbPath?;
67
+ private database;
68
+ private lastMtimeMs;
69
+ constructor(customPath?: string, memoryDbPath?: string);
70
+ /**
71
+ * 디스크에서 체크포인트 데이터베이스 로드
72
+ */
73
+ private loadDatabase;
74
+ /**
75
+ * 외부 프로세스(CLI 또는 다른 에이전트)에 의해 파일이 갱신되었으면 자동 리로드
76
+ */
77
+ reloadIfNeeded(): void;
78
+ /**
79
+ * 원자적(Atomic) 파일 교체 방식으로 체크포인트 데이터베이스 영구 저장
80
+ */
81
+ private saveDatabase;
82
+ /**
83
+ * 고유 체크포인트 ID 생성
84
+ */
85
+ private static generateCheckpointId;
86
+ /**
87
+ * 현재 작업 컨텍스트를 스냅샷으로 박제하여 저장
88
+ */
89
+ saveCheckpoint(input: SaveCheckpointInput): Promise<ContextCheckpoint>;
90
+ /**
91
+ * 최신 체크포인트 조회 (특정 세션 지정 가능)
92
+ */
93
+ getLatestCheckpoint(sessionId?: string): ContextCheckpoint | null;
94
+ /**
95
+ * 특정 ID 또는 'latest' 키워드로 체크포인트 조회
96
+ */
97
+ getCheckpoint(idOrTag?: string, sessionId?: string): ContextCheckpoint | null;
98
+ /**
99
+ * 저장된 체크포인트 목록 조회
100
+ */
101
+ listCheckpoints(options?: {
102
+ sessionId?: string;
103
+ limit?: number;
104
+ }): ContextCheckpoint[];
105
+ /**
106
+ * 특정 체크포인트 삭제
107
+ */
108
+ deleteCheckpoint(id: string): boolean;
109
+ /**
110
+ * 새 채팅창/에이전트 세션에서 0ms 만에 맥락을 100% 복원하기 위한 초고밀도 프롬프트 포맷터
111
+ */
112
+ static formatForAgentResume(checkpoint: ContextCheckpoint, compact?: boolean): string;
113
+ }
@@ -0,0 +1,316 @@
1
+ {
2
+ "version": "2.1.0",
3
+ "updatedAt": "2026-11-09T15:54:46.391Z",
4
+ "latestCheckpointId": "ctx_20261110_005446_qw31",
5
+ "totalCheckpoints": 4,
6
+ "checkpoints": [
7
+ {
8
+ "id": "ctx_20261110_005446_qw31",
9
+ "sessionId": "default-session",
10
+ "title": "Synapse Kit v0.3.0 완료 - 6대 인지 슈퍼 코어 완비 및 31개 테스트 2022개 검증 100% 통과",
11
+ "createdAt": "2026-11-09T15:54:46.391Z",
12
+ "cwd": "C:/Users/minse/AppData/Local/Programs/Antigravity",
13
+ "modifiedFiles": [],
14
+ "activeFiles": [],
15
+ "goal": "core 영역의 기능을 확장하고 변경 사항을 무결하게 정합하는 작업",
16
+ "completedSteps": [
17
+ "소스 코드 변경 및 모듈 구조 정비"
18
+ ],
19
+ "pendingTasks": [
20
+ "추가/수정된 모듈에 대한 포괄적 통합 테스트 스위트 작성 및 회귀 방지",
21
+ "Bun 런타임 기반 빌드 검증 (`bun run build`) 및 무오류 확인",
22
+ "전역 컨텍스트 스냅샷 데이터베이스 동기화 및 기억 영속화"
23
+ ],
24
+ "keyDecisions": [
25
+ "하드코딩 배제 및 환경 변수/설정 모듈 중심의 설정 아키텍처 적용",
26
+ "SOLID 단일 책임 원칙(SRP)을 준수한 독립 엔진 분리"
27
+ ],
28
+ "activeInvariants": [],
29
+ "artifacts": [],
30
+ "customMeta": {
31
+ "stats": {
32
+ "filesChanged": 0,
33
+ "insertions": 0,
34
+ "deletions": 0
35
+ },
36
+ "symbols": {
37
+ "functions": [],
38
+ "classes": [],
39
+ "interfaces": [],
40
+ "types": []
41
+ },
42
+ "synthesizedAt": "2026-11-09T15:54:46.300Z"
43
+ }
44
+ },
45
+ {
46
+ "id": "ctx_20261110_005316_pkzx",
47
+ "sessionId": "default-session",
48
+ "title": "Synapse Kit v0.3.0 - 6대 인지 슈퍼 코어 완비 및 검증 100% 통과",
49
+ "createdAt": "2026-11-09T15:53:16.376Z",
50
+ "cwd": "C:/Users/minse/AppData/Local/Programs/Antigravity",
51
+ "modifiedFiles": [],
52
+ "activeFiles": [],
53
+ "goal": "core 영역의 기능을 확장하고 변경 사항을 무결하게 정합하는 작업",
54
+ "completedSteps": [
55
+ "소스 코드 변경 및 모듈 구조 정비"
56
+ ],
57
+ "pendingTasks": [
58
+ "추가/수정된 모듈에 대한 포괄적 통합 테스트 스위트 작성 및 회귀 방지",
59
+ "Bun 런타임 기반 빌드 검증 (`bun run build`) 및 무오류 확인",
60
+ "전역 컨텍스트 스냅샷 데이터베이스 동기화 및 기억 영속화"
61
+ ],
62
+ "keyDecisions": [
63
+ "하드코딩 배제 및 환경 변수/설정 모듈 중심의 설정 아키텍처 적용",
64
+ "SOLID 단일 책임 원칙(SRP)을 준수한 독립 엔진 분리"
65
+ ],
66
+ "activeInvariants": [],
67
+ "artifacts": [],
68
+ "customMeta": {
69
+ "stats": {
70
+ "filesChanged": 0,
71
+ "insertions": 0,
72
+ "deletions": 0
73
+ },
74
+ "symbols": {
75
+ "functions": [],
76
+ "classes": [],
77
+ "interfaces": [],
78
+ "types": []
79
+ },
80
+ "synthesizedAt": "2026-11-09T15:53:16.285Z"
81
+ }
82
+ },
83
+ {
84
+ "id": "ctx_20261109_173132_7nvr",
85
+ "sessionId": "synapse-kit",
86
+ "title": "Synapse Kit v0.2.3 완료 + 컨텍스트 스냅샷 엔진 구축 + 4~10번 모듈 마스터 청사진 완비",
87
+ "createdAt": "2026-11-09T08:31:32.849Z",
88
+ "cwd": "D:/synapse",
89
+ "gitBranch": "main",
90
+ "gitCommit": "c56594e",
91
+ "modifiedFiles": [
92
+ "examples/massive-200k",
93
+ "examples/massive-5000",
94
+ "memory/causal-config.ts",
95
+ "memory/causal-memory.json",
96
+ "memory/causal-server.ts",
97
+ "memory/causal-store.ts",
98
+ "memory/cli.ts",
99
+ "memory/index.ts",
100
+ "tests/causal-memory.test.ts",
101
+ "tests/unprecedented-verification.test.ts",
102
+ "compiler/virtual_120b_types.ts",
103
+ "memory/causal-context.ts",
104
+ "memory/causal-contexts.json",
105
+ "tests/context-checkpoint.test.ts",
106
+ "tools/lumabar-patcher/add_context_menu_translations.js",
107
+ "tools/lumabar-patcher/autopatch.js",
108
+ "tools/lumabar-patcher/autopatch.ps1",
109
+ "tools/lumabar-patcher/build_master_dict_super.js",
110
+ "tools/lumabar-patcher/build_raw_translations.js",
111
+ "tools/lumabar-patcher/build_ready_exe.js",
112
+ "tools/lumabar-patcher/build_subpc_exe.js",
113
+ "tools/lumabar-patcher/check_coverage.js",
114
+ "tools/lumabar-patcher/check_scratch_json.js",
115
+ "tools/lumabar-patcher/check_untrans_labels.js",
116
+ "tools/lumabar-patcher/compare_versions.js",
117
+ "tools/lumabar-patcher/deploy_ready.ps1",
118
+ "tools/lumabar-patcher/diff_11_12.js",
119
+ "tools/lumabar-patcher/extract_all_untranslated.js",
120
+ "tools/lumabar-patcher/extract_diff_pairs.js",
121
+ "tools/lumabar-patcher/extract_full_diff.js",
122
+ "tools/lumabar-patcher/extract_labels.js",
123
+ "tools/lumabar-patcher/fast_align.js",
124
+ "tools/lumabar-patcher/find_all_mic.js",
125
+ "tools/lumabar-patcher/find_dock_autohide.js",
126
+ "tools/lumabar-patcher/find_dock_size.js",
127
+ "tools/lumabar-patcher/find_dock_sliders.js",
128
+ "tools/lumabar-patcher/find_hidden.js",
129
+ "tools/lumabar-patcher/find_license_target.js",
130
+ "tools/lumabar-patcher/find_mic_def.js",
131
+ "tools/lumabar-patcher/find_now_tile.js",
132
+ "tools/lumabar-patcher/fix_subpc_bat.js",
133
+ "tools/lumabar-patcher/fix_user_feedback.js",
134
+ "tools/lumabar-patcher/lumabar_1.2.13_korean_ready.exe",
135
+ "tools/lumabar-patcher/lumabar_1.2.13_korean_subpc.exe",
136
+ "tools/lumabar-patcher/master_dict.json",
137
+ "tools/lumabar-patcher/match_12_to_13.js",
138
+ "tools/lumabar-patcher/match_all_phrases_deep.js",
139
+ "tools/lumabar-patcher/prepare_comprehensive_dict.js",
140
+ "tools/lumabar-patcher/print_gk.js",
141
+ "tools/lumabar-patcher/print_widget_map.js",
142
+ "tools/lumabar-patcher/refine_translations.js",
143
+ "tools/lumabar-patcher/register_memory_rule.js",
144
+ "tools/lumabar-patcher/resolve_unresolved.js",
145
+ "tools/lumabar-patcher/run_admin.ps1",
146
+ "tools/lumabar-patcher/setup_vesper_startup.js",
147
+ "tools/lumabar-patcher/test_args.ps1",
148
+ "tools/lumabar-patcher/test_exact_literals.js",
149
+ "tools/lumabar-patcher/test_strings.js",
150
+ "tools/lumabar-patcher/test_taskbar_pipe.js",
151
+ "tools/lumabar-patcher/test_vesper_pipe.js",
152
+ "tools/lumabar-patcher/test_vesper_widget_injection.js",
153
+ "tools/lumabar-patcher/test_widget_injection_points.js",
154
+ "tools/lumabar-patcher/test_yk.js",
155
+ "tools/lumabar-patcher/update_lumabar_auto.bat",
156
+ "tools/lumabar-patcher/update_master_with_specials.js",
157
+ "tools/lumabar-patcher/update_subpc_pkg.ps1",
158
+ "tools/lumabar-patcher/update_yk_scripts.js",
159
+ "tools/lumabar-patcher/verify_binary_content.js",
160
+ "tools/lumabar-patcher/write_ascii_bats.js",
161
+ "tools/lumabar-patcher/write_subpc_bats.js"
162
+ ],
163
+ "activeFiles": [
164
+ "D:/synapse/memory/causal-context.ts",
165
+ "D:/synapse/memory/causal-server.ts",
166
+ "D:/synapse/memory/cli.ts"
167
+ ],
168
+ "goal": "새 채팅창에서 Synapse Kit 4~10번 차기 모듈(runner -> bus -> mesh -> guard/verifier -> runtime -> studio) 순차 구현",
169
+ "completedSteps": [
170
+ "1~3번 코어(compiler, memory, db v0.2.3) 6단계 심층 재검증(30 테스트, 2995 단언) 및 배포 완료",
171
+ "synapse-causal-memory 컨텍스트 스냅샷(checkpoint / resume / checkpoints) 엔진 및 MCP 도구 3종 구축 완료",
172
+ "4~10번 모듈(mesh, runner, bus, verifier, guard, studio, runtime) 상세 마스터 청사진 아티팩트 수립 완료"
173
+ ],
174
+ "pendingTasks": [
175
+ "1단계: 모듈 5 runner/ (Rust 3MB 자가치유 프로세스 슈퍼바이저 & 0.05초 무중단 핫스왑 데몬) 구현",
176
+ "2단계: 모듈 6 bus/ (Rust-TS 제로카피 공유메모리 링버퍼 IPC & FlatBuffers RPC) 구현",
177
+ "3단계: 모듈 4 mesh/ (Cloudflare 터널 오케스트레이터 & 분산 마크다운 볼트 실시간 양방향 동기화) 구현",
178
+ "4단계: 모듈 8 guard/ & 모듈 7 verifier/ (AST 보안 방화벽 및 불변식 자율 검증기 + Playwright E2E) 구현",
179
+ "5단계: 모듈 10 runtime/ (Rust Wasmtime 기반 0.1ms 초경량 샌드박스 VM) 구현",
180
+ "6단계: 모듈 9 studio/ (Svelte 5 + Tailwind 올인원 통합 로컬 관제탑 코크핏) 구현"
181
+ ],
182
+ "keyDecisions": [
183
+ "새 채팅창 시작 시 memory 서버의 read_graph / query_causal_memory 호출만으로도 최신 컨텍스트 체크포인트가 0ms 자동 복원되도록 직결함",
184
+ "패키지 매니저는 bun 필수, 백엔드 코어는 순수 Rust 우선, 한국어 전용 및 디버그 출력 금지 규칙 엄수"
185
+ ],
186
+ "activeInvariants": [
187
+ "패키지 매니저는 pnpm 필수를 버리고 bun 사용을 절대 필수로 준수함",
188
+ "사용자가 다시 먼저 언급할 때까지 'Tauri/Svelte GUI 앱(2번)'과 'AAA 게임 개발/언리얼 엔진(5번)'은 절대 먼저 말하거나 제안하지 말 것 (2026.09.03 명시적 지시)",
189
+ "파이썬(Python) 사용 전면 금지. 모든 백엔드, 오디오 캡처, CAD 제어, 하드웨어 회로 코드는 100% 순수 Rust(러스트)로만 작성할 것 (2026.09.03 사용자 절대 규칙)",
190
+ "Git 상태 스캔 시 반드시 git status --porcelain -uall 플래그를 사용하여 미추적 하위 디렉터리 파일 누락을 방지할 것",
191
+ "AI 에이전트 연동 시 --compact 모드를 통해 성공 시 11토큰 단일 라인 JSON을 반환하여 토큰을 99.8% 절감할 것",
192
+ "패키지 매니저 및 런타임은 npm/npx를 절대 사용하지 않고 반드시 bun을 사용할 것"
193
+ ],
194
+ "artifacts": [
195
+ "C:/Users/minse/.gemini/antigravity/brain/238448cf-af6d-4aeb-ab68-de592c9e452a/synapse_pillars_4_to_10_master_blueprint.md",
196
+ "C:/Users/minse/.gemini/antigravity/brain/238448cf-af6d-4aeb-ab68-de592c9e452a/synapse_grand_unified_master_architecture.md"
197
+ ]
198
+ },
199
+ {
200
+ "id": "ctx_20261109_173009_e527",
201
+ "sessionId": "synapse-kit",
202
+ "title": "Synapse Kit v0.2.3 완료 + 컨텍스트 스냅샷 엔진 구축 + 4~10번 모듈 마스터 청사진 완비",
203
+ "createdAt": "2026-11-09T08:30:09.840Z",
204
+ "cwd": "D:/synapse",
205
+ "gitBranch": "main",
206
+ "gitCommit": "c56594e",
207
+ "modifiedFiles": [
208
+ "examples/massive-200k",
209
+ "examples/massive-5000",
210
+ "memory/causal-config.ts",
211
+ "memory/causal-memory.json",
212
+ "memory/causal-server.ts",
213
+ "memory/causal-store.ts",
214
+ "memory/cli.ts",
215
+ "memory/index.ts",
216
+ "tests/causal-memory.test.ts",
217
+ "tests/unprecedented-verification.test.ts",
218
+ "compiler/virtual_120b_types.ts",
219
+ "memory/causal-context.ts",
220
+ "memory/causal-contexts.json",
221
+ "tests/context-checkpoint.test.ts",
222
+ "tools/lumabar-patcher/add_context_menu_translations.js",
223
+ "tools/lumabar-patcher/autopatch.js",
224
+ "tools/lumabar-patcher/autopatch.ps1",
225
+ "tools/lumabar-patcher/build_master_dict_super.js",
226
+ "tools/lumabar-patcher/build_raw_translations.js",
227
+ "tools/lumabar-patcher/build_ready_exe.js",
228
+ "tools/lumabar-patcher/build_subpc_exe.js",
229
+ "tools/lumabar-patcher/check_coverage.js",
230
+ "tools/lumabar-patcher/check_scratch_json.js",
231
+ "tools/lumabar-patcher/check_untrans_labels.js",
232
+ "tools/lumabar-patcher/compare_versions.js",
233
+ "tools/lumabar-patcher/deploy_ready.ps1",
234
+ "tools/lumabar-patcher/diff_11_12.js",
235
+ "tools/lumabar-patcher/extract_all_untranslated.js",
236
+ "tools/lumabar-patcher/extract_diff_pairs.js",
237
+ "tools/lumabar-patcher/extract_full_diff.js",
238
+ "tools/lumabar-patcher/extract_labels.js",
239
+ "tools/lumabar-patcher/fast_align.js",
240
+ "tools/lumabar-patcher/find_all_mic.js",
241
+ "tools/lumabar-patcher/find_dock_autohide.js",
242
+ "tools/lumabar-patcher/find_dock_size.js",
243
+ "tools/lumabar-patcher/find_dock_sliders.js",
244
+ "tools/lumabar-patcher/find_hidden.js",
245
+ "tools/lumabar-patcher/find_license_target.js",
246
+ "tools/lumabar-patcher/find_mic_def.js",
247
+ "tools/lumabar-patcher/find_now_tile.js",
248
+ "tools/lumabar-patcher/fix_subpc_bat.js",
249
+ "tools/lumabar-patcher/fix_user_feedback.js",
250
+ "tools/lumabar-patcher/lumabar_1.2.13_korean_ready.exe",
251
+ "tools/lumabar-patcher/lumabar_1.2.13_korean_subpc.exe",
252
+ "tools/lumabar-patcher/master_dict.json",
253
+ "tools/lumabar-patcher/match_12_to_13.js",
254
+ "tools/lumabar-patcher/match_all_phrases_deep.js",
255
+ "tools/lumabar-patcher/prepare_comprehensive_dict.js",
256
+ "tools/lumabar-patcher/print_gk.js",
257
+ "tools/lumabar-patcher/print_widget_map.js",
258
+ "tools/lumabar-patcher/refine_translations.js",
259
+ "tools/lumabar-patcher/register_memory_rule.js",
260
+ "tools/lumabar-patcher/resolve_unresolved.js",
261
+ "tools/lumabar-patcher/run_admin.ps1",
262
+ "tools/lumabar-patcher/setup_vesper_startup.js",
263
+ "tools/lumabar-patcher/test_args.ps1",
264
+ "tools/lumabar-patcher/test_exact_literals.js",
265
+ "tools/lumabar-patcher/test_strings.js",
266
+ "tools/lumabar-patcher/test_taskbar_pipe.js",
267
+ "tools/lumabar-patcher/test_vesper_pipe.js",
268
+ "tools/lumabar-patcher/test_vesper_widget_injection.js",
269
+ "tools/lumabar-patcher/test_widget_injection_points.js",
270
+ "tools/lumabar-patcher/test_yk.js",
271
+ "tools/lumabar-patcher/update_lumabar_auto.bat",
272
+ "tools/lumabar-patcher/update_master_with_specials.js",
273
+ "tools/lumabar-patcher/update_subpc_pkg.ps1",
274
+ "tools/lumabar-patcher/update_yk_scripts.js",
275
+ "tools/lumabar-patcher/verify_binary_content.js",
276
+ "tools/lumabar-patcher/write_ascii_bats.js",
277
+ "tools/lumabar-patcher/write_subpc_bats.js"
278
+ ],
279
+ "activeFiles": [
280
+ "D:/synapse/memory/causal-context.ts",
281
+ "D:/synapse/memory/causal-server.ts",
282
+ "D:/synapse/memory/cli.ts"
283
+ ],
284
+ "goal": "새 채팅창에서 Synapse Kit 4~10번 차기 모듈(runner -> bus -> mesh -> guard/verifier -> runtime -> studio) 순차 구현",
285
+ "completedSteps": [
286
+ "1~3번 코어(compiler, memory, db v0.2.3) 6단계 심층 재검증(30 테스트, 2995 단언) 및 배포 완료",
287
+ "synapse-causal-memory 컨텍스트 스냅샷(checkpoint / resume / checkpoints) 엔진 및 MCP 도구 3종 구축 완료",
288
+ "4~10번 모듈(mesh, runner, bus, verifier, guard, studio, runtime) 상세 마스터 청사진 아티팩트 수립 완료"
289
+ ],
290
+ "pendingTasks": [
291
+ "1단계: 모듈 5 runner/ (Rust 3MB 자가치유 프로세스 슈퍼바이저 & 0.05초 무중단 핫스왑 데몬) 구현",
292
+ "2단계: 모듈 6 bus/ (Rust-TS 제로카피 공유메모리 링버퍼 IPC & FlatBuffers RPC) 구현",
293
+ "3단계: 모듈 4 mesh/ (Cloudflare 터널 오케스트레이터 & 분산 마크다운 볼트 실시간 양방향 동기화) 구현",
294
+ "4단계: 모듈 8 guard/ & 모듈 7 verifier/ (AST 보안 방화벽 및 불변식 자율 검증기 + Playwright E2E) 구현",
295
+ "5단계: 모듈 10 runtime/ (Rust Wasmtime 기반 0.1ms 초경량 샌드박스 VM) 구현",
296
+ "6단계: 모듈 9 studio/ (Svelte 5 + Tailwind 올인원 통합 로컬 관제탑 코크핏) 구현"
297
+ ],
298
+ "keyDecisions": [
299
+ "새 채팅창 시작 시 memory 서버의 read_graph / query_causal_memory 호출만으로도 최신 컨텍스트 체크포인트가 0ms 자동 복원되도록 직결함",
300
+ "패키지 매니저는 bun 필수, 백엔드 코어는 순수 Rust 우선, 한국어 전용 및 디버그 출력 금지 규칙 엄수"
301
+ ],
302
+ "activeInvariants": [
303
+ "패키지 매니저는 pnpm 필수를 버리고 bun 사용을 절대 필수로 준수함",
304
+ "사용자가 다시 먼저 언급할 때까지 'Tauri/Svelte GUI 앱(2번)'과 'AAA 게임 개발/언리얼 엔진(5번)'은 절대 먼저 말하거나 제안하지 말 것 (2026.09.03 명시적 지시)",
305
+ "파이썬(Python) 사용 전면 금지. 모든 백엔드, 오디오 캡처, CAD 제어, 하드웨어 회로 코드는 100% 순수 Rust(러스트)로만 작성할 것 (2026.09.03 사용자 절대 규칙)",
306
+ "Git 상태 스캔 시 반드시 git status --porcelain -uall 플래그를 사용하여 미추적 하위 디렉터리 파일 누락을 방지할 것",
307
+ "AI 에이전트 연동 시 --compact 모드를 통해 성공 시 11토큰 단일 라인 JSON을 반환하여 토큰을 99.8% 절감할 것",
308
+ "패키지 매니저 및 런타임은 npm/npx를 절대 사용하지 않고 반드시 bun을 사용할 것"
309
+ ],
310
+ "artifacts": [
311
+ "C:/Users/minse/.gemini/antigravity/brain/238448cf-af6d-4aeb-ab68-de592c9e452a/synapse_pillars_4_to_10_master_blueprint.md",
312
+ "C:/Users/minse/.gemini/antigravity/brain/238448cf-af6d-4aeb-ab68-de592c9e452a/synapse_grand_unified_master_architecture.md"
313
+ ]
314
+ }
315
+ ]
316
+ }
@@ -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>;