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,578 @@
1
+ import { CausalMemoryStore } from './causal-store';
2
+ export interface ServerOptions {
3
+ readonly port?: number;
4
+ readonly host?: string;
5
+ readonly dbPath?: string;
6
+ readonly contextDbPath?: string;
7
+ }
8
+ export interface JsonRpcRequest {
9
+ readonly jsonrpc?: string;
10
+ readonly id?: string | number | null;
11
+ readonly method: string;
12
+ readonly params?: Record<string, any>;
13
+ }
14
+ /**
15
+ * MCP 표준 도구 스키마 목록 (신규 인과율 도구 3종 + 구형 memory 호환 도구 9종 = 총 12종)
16
+ */
17
+ export declare const CAUSAL_MCP_TOOLS: readonly [{
18
+ readonly name: "query_causal_memory";
19
+ readonly description: "작업 컨텍스트(수정된 파일, 키워드, 명령어, 도메인)에 매칭되는 인과율 지식과 불변 규칙만 0ms 초경량으로 공명 쿼리합니다.";
20
+ readonly inputSchema: {
21
+ readonly type: "object";
22
+ readonly properties: {
23
+ readonly files: {
24
+ readonly type: "array";
25
+ readonly items: {
26
+ readonly type: "string";
27
+ };
28
+ readonly description: "감지할 대상 파일 경로 목록 (생략 시 Git 변경 파일 자동 감지)";
29
+ };
30
+ readonly keywords: {
31
+ readonly type: "array";
32
+ readonly items: {
33
+ readonly type: "string";
34
+ };
35
+ readonly description: "검색할 도메인/작업 키워드 목록";
36
+ };
37
+ readonly command: {
38
+ readonly type: "string";
39
+ readonly description: "연동 명령어 (예: check, build, release, sign)";
40
+ };
41
+ readonly domain: {
42
+ readonly type: "string";
43
+ readonly description: "특정 도메인 필터";
44
+ };
45
+ readonly compact: {
46
+ readonly type: "boolean";
47
+ readonly description: "초소형 JSON 포맷 반환 여부";
48
+ };
49
+ };
50
+ };
51
+ }, {
52
+ readonly name: "assert_causal_rule";
53
+ readonly description: "신규 인과율 규칙(원인 트리거 ➔ 불변 계약 ➔ 실행 지침)을 메모리에 등록하거나 갱신합니다.";
54
+ readonly inputSchema: {
55
+ readonly type: "object";
56
+ readonly required: readonly ["id", "domain", "title", "triggers"];
57
+ readonly properties: {
58
+ readonly id: {
59
+ readonly type: "string";
60
+ };
61
+ readonly domain: {
62
+ readonly type: "string";
63
+ };
64
+ readonly title: {
65
+ readonly type: "string";
66
+ };
67
+ readonly triggers: {
68
+ readonly type: "object";
69
+ };
70
+ readonly invariants: {
71
+ readonly type: "array";
72
+ readonly items: {
73
+ readonly type: "string";
74
+ };
75
+ };
76
+ readonly actions: {
77
+ readonly type: "array";
78
+ readonly items: {
79
+ readonly type: "string";
80
+ };
81
+ };
82
+ readonly context: {
83
+ readonly type: "array";
84
+ readonly items: {
85
+ readonly type: "string";
86
+ };
87
+ };
88
+ };
89
+ };
90
+ }, {
91
+ readonly name: "audit_causal_memory";
92
+ readonly description: "인과율 메모리 데이터베이스의 무결성, 도메인 분포, 토큰 절감 상태를 감사(Audit)합니다.";
93
+ readonly inputSchema: {
94
+ readonly type: "object";
95
+ readonly properties: {};
96
+ };
97
+ }, {
98
+ readonly name: "read_graph";
99
+ readonly description: "Read the active causal resonance knowledge graph (automatically filters out unrelated noise for 90%+ token savings)";
100
+ readonly inputSchema: {
101
+ readonly type: "object";
102
+ readonly properties: {};
103
+ };
104
+ }, {
105
+ readonly name: "search_nodes";
106
+ readonly description: "Search for causal rules and nodes in the knowledge graph based on a query and traverse causal relations";
107
+ readonly inputSchema: {
108
+ readonly type: "object";
109
+ readonly required: readonly ["query"];
110
+ readonly properties: {
111
+ readonly query: {
112
+ readonly type: "string";
113
+ readonly description: "The search query to match against rule titles, domains, triggers, and invariants";
114
+ };
115
+ };
116
+ };
117
+ }, {
118
+ readonly name: "open_nodes";
119
+ readonly description: "Open specific causal rule nodes in the knowledge graph by their names or IDs";
120
+ readonly inputSchema: {
121
+ readonly type: "object";
122
+ readonly required: readonly ["names"];
123
+ readonly properties: {
124
+ readonly names: {
125
+ readonly type: "array";
126
+ readonly items: {
127
+ readonly type: "string";
128
+ };
129
+ readonly description: "An array of entity names or rule IDs to retrieve";
130
+ };
131
+ };
132
+ };
133
+ }, {
134
+ readonly name: "create_entities";
135
+ readonly description: "Create multiple new entities (automatically converted into structured Causal Rules)";
136
+ readonly inputSchema: {
137
+ readonly type: "object";
138
+ readonly required: readonly ["entities"];
139
+ readonly properties: {
140
+ readonly entities: {
141
+ readonly type: "array";
142
+ readonly items: {
143
+ readonly type: "object";
144
+ readonly required: readonly ["name", "entityType", "observations"];
145
+ readonly properties: {
146
+ readonly name: {
147
+ readonly type: "string";
148
+ };
149
+ readonly entityType: {
150
+ readonly type: "string";
151
+ };
152
+ readonly observations: {
153
+ readonly type: "array";
154
+ readonly items: {
155
+ readonly type: "string";
156
+ };
157
+ };
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ }, {
164
+ readonly name: "create_relations";
165
+ readonly description: "Create multiple new causal relations between nodes in the knowledge graph";
166
+ readonly inputSchema: {
167
+ readonly type: "object";
168
+ readonly required: readonly ["relations"];
169
+ readonly properties: {
170
+ readonly relations: {
171
+ readonly type: "array";
172
+ readonly items: {
173
+ readonly type: "object";
174
+ readonly required: readonly ["from", "to", "relationType"];
175
+ readonly properties: {
176
+ readonly from: {
177
+ readonly type: "string";
178
+ };
179
+ readonly to: {
180
+ readonly type: "string";
181
+ };
182
+ readonly relationType: {
183
+ readonly type: "string";
184
+ };
185
+ };
186
+ };
187
+ };
188
+ };
189
+ };
190
+ }, {
191
+ readonly name: "add_observations";
192
+ readonly description: "Add new invariants, actions, or context observations to existing causal rules";
193
+ readonly inputSchema: {
194
+ readonly type: "object";
195
+ readonly required: readonly ["observations"];
196
+ readonly properties: {
197
+ readonly observations: {
198
+ readonly type: "array";
199
+ readonly items: {
200
+ readonly type: "object";
201
+ readonly required: readonly ["entityName", "contents"];
202
+ readonly properties: {
203
+ readonly entityName: {
204
+ readonly type: "string";
205
+ };
206
+ readonly contents: {
207
+ readonly type: "array";
208
+ readonly items: {
209
+ readonly type: "string";
210
+ };
211
+ };
212
+ };
213
+ };
214
+ };
215
+ };
216
+ };
217
+ }, {
218
+ readonly name: "delete_entities";
219
+ readonly description: "Delete multiple entities/rules and their associated causal relations";
220
+ readonly inputSchema: {
221
+ readonly type: "object";
222
+ readonly required: readonly ["entityNames"];
223
+ readonly properties: {
224
+ readonly entityNames: {
225
+ readonly type: "array";
226
+ readonly items: {
227
+ readonly type: "string";
228
+ };
229
+ };
230
+ };
231
+ };
232
+ }, {
233
+ readonly name: "delete_observations";
234
+ readonly description: "Delete specific observations from entities/rules in the causal memory";
235
+ readonly inputSchema: {
236
+ readonly type: "object";
237
+ readonly required: readonly ["deletions"];
238
+ readonly properties: {
239
+ readonly deletions: {
240
+ readonly type: "array";
241
+ readonly items: {
242
+ readonly type: "object";
243
+ readonly required: readonly ["entityName", "observations"];
244
+ readonly properties: {
245
+ readonly entityName: {
246
+ readonly type: "string";
247
+ };
248
+ readonly observations: {
249
+ readonly type: "array";
250
+ readonly items: {
251
+ readonly type: "string";
252
+ };
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ };
259
+ }, {
260
+ readonly name: "delete_relations";
261
+ readonly description: "Delete multiple causal relations from the knowledge graph";
262
+ readonly inputSchema: {
263
+ readonly type: "object";
264
+ readonly required: readonly ["relations"];
265
+ readonly properties: {
266
+ readonly relations: {
267
+ readonly type: "array";
268
+ readonly items: {
269
+ readonly type: "object";
270
+ readonly required: readonly ["from", "to", "relationType"];
271
+ readonly properties: {
272
+ readonly from: {
273
+ readonly type: "string";
274
+ };
275
+ readonly to: {
276
+ readonly type: "string";
277
+ };
278
+ readonly relationType: {
279
+ readonly type: "string";
280
+ };
281
+ };
282
+ };
283
+ };
284
+ };
285
+ };
286
+ }, {
287
+ readonly name: "save_context_checkpoint";
288
+ readonly description: "현재 작업 세션의 핵심 컨텍스트(목표, 완료 단계, 다음 할 일, 핵심 설계 결정, 활성 파일, 아티팩트)를 초경량 스냅샷으로 저장하여 새 채팅창에서도 기억 손실 없이 0ms 복원할 수 있게 합니다.";
289
+ readonly inputSchema: {
290
+ readonly type: "object";
291
+ readonly required: readonly ["title"];
292
+ readonly properties: {
293
+ readonly id: {
294
+ readonly type: "string";
295
+ readonly description: "고유 체크포인트 ID (생략 시 자동 생성)";
296
+ };
297
+ readonly sessionId: {
298
+ readonly type: "string";
299
+ readonly description: "프로젝트 또는 세션 식별자 (예: synapse-kit)";
300
+ };
301
+ readonly title: {
302
+ readonly type: "string";
303
+ readonly description: "현재 컨텍스트 스냅샷 요약 제목";
304
+ };
305
+ readonly goal: {
306
+ readonly type: "string";
307
+ readonly description: "현재 달성 중인 핵심 목표";
308
+ };
309
+ readonly completedSteps: {
310
+ readonly type: "array";
311
+ readonly items: {
312
+ readonly type: "string";
313
+ };
314
+ readonly description: "이번 세션까지 완료된 핵심 작업 목록";
315
+ };
316
+ readonly pendingTasks: {
317
+ readonly type: "array";
318
+ readonly items: {
319
+ readonly type: "string";
320
+ };
321
+ readonly description: "다음 채팅/세션에서 바로 이어서 진행할 할 일 목록";
322
+ };
323
+ readonly keyDecisions: {
324
+ readonly type: "array";
325
+ readonly items: {
326
+ readonly type: "string";
327
+ };
328
+ readonly description: "핵심 설계 결정 및 아키텍처 주의사항";
329
+ };
330
+ readonly activeFiles: {
331
+ readonly type: "array";
332
+ readonly items: {
333
+ readonly type: "string";
334
+ };
335
+ readonly description: "집중 작업 중인 파일 경로 목록";
336
+ };
337
+ readonly artifacts: {
338
+ readonly type: "array";
339
+ readonly items: {
340
+ readonly type: "string";
341
+ };
342
+ readonly description: "관련 아티팩트 또는 마스터 설계 문서 경로 목록";
343
+ };
344
+ readonly cwd: {
345
+ readonly type: "string";
346
+ readonly description: "작업 디렉터리 경로";
347
+ };
348
+ };
349
+ };
350
+ }, {
351
+ readonly name: "load_context_checkpoint";
352
+ readonly description: "저장된 컨텍스트 체크포인트 스냅샷(최신 또는 특정 ID/세션)을 0ms 만에 복원하여 새 채팅창에서 이전 작업을 즉시 이어갑니다.";
353
+ readonly inputSchema: {
354
+ readonly type: "object";
355
+ readonly properties: {
356
+ readonly id: {
357
+ readonly type: "string";
358
+ readonly description: "복원할 체크포인트 ID, 제목 키워드, 또는 'latest' (기본값: 'latest')";
359
+ };
360
+ readonly sessionId: {
361
+ readonly type: "string";
362
+ readonly description: "특정 세션/프로젝트의 최신 스냅샷만 필터링할 경우 지정";
363
+ };
364
+ readonly compact: {
365
+ readonly type: "boolean";
366
+ readonly description: "초소형 JSON 포맷으로 반환할지 여부";
367
+ };
368
+ };
369
+ };
370
+ }, {
371
+ readonly name: "list_context_checkpoints";
372
+ readonly description: "저장된 모든 작업 컨텍스트 스냅샷(Checkpoint) 목록을 최신순으로 조회합니다.";
373
+ readonly inputSchema: {
374
+ readonly type: "object";
375
+ readonly properties: {
376
+ readonly sessionId: {
377
+ readonly type: "string";
378
+ readonly description: "특정 세션/프로젝트 필터";
379
+ };
380
+ readonly limit: {
381
+ readonly type: "number";
382
+ readonly description: "조회할 최대 개수 (기본값: 20)";
383
+ };
384
+ };
385
+ };
386
+ }, {
387
+ readonly name: "time_travel_causal_memory";
388
+ readonly description: "인과율 시계열(Time-Series) 엔진을 통해 시간 감쇠 가중치 계산, 체크포인트 간 변경 diff 분석, 특정 과거 시점으로의 리와인드, 세션 타임라인을 생성합니다.";
389
+ readonly inputSchema: {
390
+ readonly type: "object";
391
+ readonly required: readonly ["action"];
392
+ readonly properties: {
393
+ readonly action: {
394
+ readonly type: "string";
395
+ readonly enum: readonly ["diff", "rewind", "timeline", "decay"];
396
+ readonly description: "수행할 시계열 동작 (diff: 비교, rewind: 되돌리기, timeline: 타임라인, decay: 감쇠 계산)";
397
+ };
398
+ readonly fromId: {
399
+ readonly type: "string";
400
+ readonly description: "비교 기준 시작 체크포인트 ID (diff 전용)";
401
+ };
402
+ readonly toId: {
403
+ readonly type: "string";
404
+ readonly description: "비교 대상 목표 체크포인트 ID (diff 전용)";
405
+ };
406
+ readonly targetId: {
407
+ readonly type: "string";
408
+ readonly description: "리와인드 대상 체크포인트 ID (rewind 전용)";
409
+ };
410
+ readonly limit: {
411
+ readonly type: "number";
412
+ readonly description: "타임라인 조회 개수";
413
+ };
414
+ };
415
+ };
416
+ }, {
417
+ readonly name: "scan_causal_graveyard";
418
+ readonly description: "부정적 기억 / 안티패턴 함정(Graveyard)을 실시간으로 스캔하여 실패를 유발했던 접근법인지 선제 검증하거나, 새로운 실패 가설을 등록합니다.";
419
+ readonly inputSchema: {
420
+ readonly type: "object";
421
+ readonly required: readonly ["action"];
422
+ readonly properties: {
423
+ readonly action: {
424
+ readonly type: "string";
425
+ readonly enum: readonly ["scan", "assert", "list"];
426
+ readonly description: "동작 (scan: 함정 검사, assert: 실패 가설 등록, list: 전체 목록)";
427
+ };
428
+ readonly files: {
429
+ readonly type: "array";
430
+ readonly items: {
431
+ readonly type: "string";
432
+ };
433
+ readonly description: "수정 예정 파일 목록 (scan용)";
434
+ };
435
+ readonly keywords: {
436
+ readonly type: "array";
437
+ readonly items: {
438
+ readonly type: "string";
439
+ };
440
+ readonly description: "의도/접근법 키워드 (scan용)";
441
+ };
442
+ readonly trapPattern: {
443
+ readonly type: "string";
444
+ readonly description: "실패 유발 패턴 이름 (assert용)";
445
+ };
446
+ readonly domain: {
447
+ readonly type: "string";
448
+ readonly description: "도메인 (assert용)";
449
+ };
450
+ readonly reason: {
451
+ readonly type: "string";
452
+ readonly description: "실패 원인 (assert용)";
453
+ };
454
+ readonly safeAlternative: {
455
+ readonly type: "string";
456
+ readonly description: "안전한 대안 (assert용)";
457
+ };
458
+ readonly severity: {
459
+ readonly type: "string";
460
+ readonly enum: readonly ["CRITICAL", "HIGH", "MEDIUM", "LOW"];
461
+ readonly description: "위험도";
462
+ };
463
+ readonly avoidFiles: {
464
+ readonly type: "array";
465
+ readonly items: {
466
+ readonly type: "string";
467
+ };
468
+ readonly description: "금지 파일 패턴";
469
+ };
470
+ };
471
+ };
472
+ }, {
473
+ readonly name: "branch_causal_context";
474
+ readonly description: "작업 맥락을 독립된 브랜치(Mental Fork)로 분기하거나, 검증 후 메인에 병합(Merge)하고, 실패한 실험은 폐기(Abandon)하여 Graveyard에 안티패턴으로 자동 이관합니다.";
475
+ readonly inputSchema: {
476
+ readonly type: "object";
477
+ readonly required: readonly ["action"];
478
+ readonly properties: {
479
+ readonly action: {
480
+ readonly type: "string";
481
+ readonly enum: readonly ["list", "create", "switch", "merge", "abandon"];
482
+ readonly description: "브랜치 동작 (list: 목록, create: 생성, switch: 전환, merge: 병합, abandon: 폐기 및 함정 등록)";
483
+ };
484
+ readonly name: {
485
+ readonly type: "string";
486
+ readonly description: "브랜치 이름";
487
+ };
488
+ readonly fromBranch: {
489
+ readonly type: "string";
490
+ readonly description: "분기 기준 부모 브랜치 (create용)";
491
+ };
492
+ readonly targetBranch: {
493
+ readonly type: "string";
494
+ readonly description: "병합 대상 브랜치 (merge용)";
495
+ };
496
+ readonly failureReason: {
497
+ readonly type: "string";
498
+ readonly description: "폐기 사유 (abandon용)";
499
+ };
500
+ readonly safeAlternative: {
501
+ readonly type: "string";
502
+ readonly description: "안전한 대안 (abandon용)";
503
+ };
504
+ };
505
+ };
506
+ }, {
507
+ readonly name: "predict_blast_radius";
508
+ readonly description: "수정 대상 파일들을 기반으로 인과 그래프의 2~3단계 연쇄 파급 영향(Blast Radius)과 위험도(0~100)를 산출하고, 위반 방지를 위해 관련 불변식들을 사전 페치(prefetch)합니다.";
509
+ readonly inputSchema: {
510
+ readonly type: "object";
511
+ readonly required: readonly ["files"];
512
+ readonly properties: {
513
+ readonly files: {
514
+ readonly type: "array";
515
+ readonly items: {
516
+ readonly type: "string";
517
+ };
518
+ readonly description: "수정 대상 파일 목록";
519
+ };
520
+ readonly maxHops: {
521
+ readonly type: "number";
522
+ readonly description: "최대 파급 전파 단계 (기본값: 3)";
523
+ };
524
+ };
525
+ };
526
+ }, {
527
+ readonly name: "synthesize_git_checkpoint";
528
+ readonly description: "Git 상태 및 diff를 분석하여 작업자의 의도(Goal, Completed Steps, Pending Tasks)를 자동 역합성(Reverse Synthesis)하고 원클릭 체크포인트를 저장합니다.";
529
+ readonly inputSchema: {
530
+ readonly type: "object";
531
+ readonly properties: {
532
+ readonly cwd: {
533
+ readonly type: "string";
534
+ readonly description: "작업 디렉터리 경로";
535
+ };
536
+ readonly title: {
537
+ readonly type: "string";
538
+ readonly description: "사용자 지정 제목 (생략 시 자동 생성)";
539
+ };
540
+ readonly autoCheckpoint: {
541
+ readonly type: "boolean";
542
+ readonly description: "분석 후 체크포인트 즉시 저장 여부 (기본: true)";
543
+ };
544
+ };
545
+ };
546
+ }, {
547
+ readonly name: "sync_obsidian_lens";
548
+ readonly description: "옵시디언(Obsidian) 볼트와 인과율 메모리(규칙, 함정, 스냅샷, 타임라인, 캔버스 다이어그램)를 완벽하게 양방향 동기화(Sync)합니다.";
549
+ readonly inputSchema: {
550
+ readonly type: "object";
551
+ readonly properties: {
552
+ readonly action: {
553
+ readonly type: "string";
554
+ readonly enum: readonly ["export", "import", "sync"];
555
+ readonly description: "동작 (export: 마크다운/캔버스 내보내기, import: 마크다운 읽어오기, sync: 양방향 동기화)";
556
+ };
557
+ readonly vaultPath: {
558
+ readonly type: "string";
559
+ readonly description: "옵시디언 볼트 루트 경로 (생략 시 기본 환경변수/OS 경로 사용)";
560
+ };
561
+ };
562
+ };
563
+ }];
564
+ /**
565
+ * MCP JSON-RPC 2.0 요청 통합 처리기 (HTTP 데몬 및 Stdio 서버 공용)
566
+ */
567
+ export declare function handleMcpJsonRpcRequest(rpc: JsonRpcRequest, store: CausalMemoryStore, dbPath?: string, contextDbPath?: string): Promise<Record<string, any> | null>;
568
+ /**
569
+ * 인과율 메모리 독립 로컬 서버 (Causal Memory HTTP & MCP Daemon)
570
+ */
571
+ export declare function startCausalServer(options?: ServerOptions): Bun.Server<undefined>;
572
+ /**
573
+ * MCP 표준 입출력(stdio) 서버 모드
574
+ * Antigravity / Claude Code 등의 MCP 호스트가 프로세스를 직접 스폰하여 통신할 때 동작합니다.
575
+ * 원격 데몬 URL(Tailscale 피어 등) 또는 로컬 데몬(4242 포트)이 지정/실행 중이면 데몬으로 프록시하고,
576
+ * 꺼져 있으면 인메모리 스토어로 즉시 안전하게 응답합니다.
577
+ */
578
+ export declare function startCausalMcpStdioServer(dbPath?: string, remoteUrl?: string): Promise<void>;