feat(engine): implement self-reflection (reflector) stage in multi-agent pipeline
- Added ReflectorAgent for meta-cognition and critical review between Research and Writing - Updated WriterAgent to explicitly address reflection critiques - Introduced 'g1nation.enableReflection' configuration setting - Added comprehensive integration tests for the self-reflection stage - Documented design decisions in ADR-0010 and related discussion records
This commit is contained in:
@@ -3,23 +3,23 @@
|
||||
<!-- ASTRA:AUTO-START -->
|
||||
|
||||
## Snapshot
|
||||
- **Workspace**: `ConnectAI` `v2.0.2` _(absolute path varies by environment; resolved from the active VS Code workspace)_
|
||||
- **Workspace**: `ConnectAI` `v2.0.9` _(absolute path varies by environment; resolved from the active VS Code workspace)_
|
||||
- **Description**: The personal intelligence layer for Antigravity and VS Code. A private cognitive partner for deep project context, memory, and proactive strategic decision-making.
|
||||
- **Stack**: TypeScript, Node.js, VS Code Extension, LM Studio SDK, Test runner
|
||||
- **Stats**: 184 source files, ~31,651 lines across 5 top-level modules.
|
||||
- **Stats**: 201 source files, ~35,737 lines across 5 top-level modules.
|
||||
|
||||
## Last Refresh
|
||||
- **Time**: 2026-05-13T13:48:21.458Z
|
||||
- **Files newly analysed**: 3
|
||||
- **Files reused from cache**: 181
|
||||
- **Time**: 2026-05-13T16:44:14.023Z
|
||||
- **Files newly analysed**: 8
|
||||
- **Files reused from cache**: 193
|
||||
|
||||
## Directory Map
|
||||
```mermaid
|
||||
mindmap
|
||||
root((ConnectAI))
|
||||
src/
|
||||
core/
|
||||
features/
|
||||
core/
|
||||
memory/
|
||||
retrieval/
|
||||
docs/
|
||||
@@ -37,11 +37,11 @@ mindmap
|
||||
> Arrows: which top-level module imports from which.
|
||||
```mermaid
|
||||
flowchart LR
|
||||
src["src/<br/>85 files"]
|
||||
src["src/<br/>100 files"]
|
||||
media["media/<br/>6 files"]
|
||||
tests["tests/<br/>27 files"]
|
||||
core_py["core_py/<br/>6 files"]
|
||||
docs["docs/<br/>60 files"]
|
||||
docs["docs/<br/>62 files"]
|
||||
tests --> src
|
||||
```
|
||||
|
||||
@@ -53,78 +53,78 @@ flowchart LR
|
||||
|
||||
## Hub Files
|
||||
> Imported by many other files — touching these has wide blast radius.
|
||||
- `src/utils.ts` — referenced by **37** files
|
||||
- `src/config.ts` — referenced by **11** files
|
||||
- `src/utils.ts` — referenced by **43** files
|
||||
- `src/config.ts` — referenced by **12** files
|
||||
- `src/lib/paths.ts` — referenced by **10** files
|
||||
- `src/features/company/types.ts` — referenced by **9** files · Type definitions for the 1인 기업 (One-Person Company) mode. The mode turns the user into a virtual CEO that dispatches work to a roster of specialist agents. Each turn produces a session directory conta
|
||||
- `src/features/company/agents.ts` — referenced by **7** files · The 9-agent roster for 1인 기업 모드. Each entry is a static description — persona, role, specialty — used to build the specialist's system prompt at dispatch time. The set was adopted from Connectorigin's
|
||||
- `src/skills/agentKnowledgeMap.ts` — referenced by **6** files
|
||||
- `src/lib/engine.ts` — referenced by **6** files
|
||||
- `src/sidebarProvider.ts` — referenced by **6** files
|
||||
- `src/retrieval/scoring.ts` — referenced by **6** files · Scoring Engine — TF-IDF + Bilingual Tokenizer 단순 includes() 키워드 매칭을 넘어서, TF-IDF 가중치 기반의 문서 스코어링을 제공합니다. 한국어/영어 양국어 토크나이저를 포함합니다.
|
||||
- `src/memory/types.ts` — referenced by **6** files · Memory Type Definitions (메모리 타입 정의) Astra의 5-Layer Cognitive Memory System의 모든 타입을 정의합니다. ① Short-Term ② Long-Term ③ Project ④ Procedural ⑤ Episodic
|
||||
- `src/retrieval/lessonHelpers.ts` — referenced by **5** files · Lesson / Experience Memory — pure helpers (no vscode dependency) "Lesson" = a markdown file in the active brain that captures a past mistake/risk and how to avoid repeating it. Identified by a lessons
|
||||
- `src/core/services.ts` — referenced by **6** files
|
||||
|
||||
## Modules
|
||||
|
||||
### `src/` — 85 files, ~20,591 lines
|
||||
### `src/` — 100 files, ~23,711 lines
|
||||
|
||||
**Sub-directories**
|
||||
- `src/features/` (28) — The 9-agent roster for 1인 기업 모드. Each entry is a static description — persona, role, specialty — used to build the speci
|
||||
- `src/core/` (15) — Astra Path Resolver (경로 해결기) Astra의 모든 데이터 파일(.astra 디렉토리)의 경로를 중앙에서 관리합니다. 확장 프로그램의 설치 경로(extensionUri) 기반으로 .astra 디렉토
|
||||
- `src/features/` (14) — Project Architecture Context (Feature 2) Builds a markdown document that captures the durable facts about a project — it
|
||||
- `src/memory/` (8) — Episodic Memory (일화 기억) 과거 대화/회의/결정의 맥락 흐름을 저장합니다. 세션 종료 시 자동으로 에피소드를 요약하여 저장합니다. "왜 이렇게 결정했는지", "어떤 흐름으로 진행했는지" 기록. 저장
|
||||
- `src/retrieval/` (8) — Brain Index — persistent, mtime-keyed tokenized cache of the Second Brain RAG 검색은 매 질의마다 브레인의 모든 .md 파일을 읽고 토크나이즈해서 TF-I
|
||||
- `src/docs/` (6) — src Chronicle Records
|
||||
- `src/lib/` (6) — Context Manager (컨텍스트 한계 관리) "context length = 132k" 는 "답변을 132k 토큰까지 생성해도 된다" 가 아닙니다. 시스템 프롬프트 + 대화 기록 + 입력 문서 + 생성될 답변
|
||||
- `src/integrations/` (4) — Per-chat conversation history for the Telegram bot. Why this exists: the previous bot was stateless — every inbound mess
|
||||
- `src/lmstudio/` (4) — 4 files (.ts)
|
||||
- `src/sidebar/` (4) — 4 files (.ts)
|
||||
- `src/skills/` (4) — 4 files (.ts)
|
||||
- `src/integrations/` (3) — Subset of the Telegram Bot API types we actually consume. Source: https://core.telegram.org/bots/api Only fields the bot
|
||||
- `src/agents/` (2) — 2 files (.ts)
|
||||
- `src/scaffolder/` (2) — Scaffolder template catalog. Templates are pure data — (projectName) => { [relativePath]: contents }. New templates are
|
||||
|
||||
**Key files**
|
||||
- `src/utils.ts` (268 lines)
|
||||
- `src/config.ts` (209 lines)
|
||||
- `src/config.ts` (216 lines)
|
||||
- `src/features/company/types.ts` (150 lines) — Type definitions for the 1인 기업 (One-Person Company) mode. The mode turns the user into a virtual CEO that dispatches work to a roster of specialist agents. Each turn produces a session directory conta
|
||||
- `src/lib/paths.ts` (151 lines)
|
||||
- `src/sidebarProvider.ts` (2603 lines)
|
||||
- `src/sidebarProvider.ts` (2934 lines)
|
||||
- `src/features/company/agents.ts` (136 lines) — The 9-agent roster for 1인 기업 모드. Each entry is a static description — persona, role, specialty — used to build the specialist's system prompt at dispatch time. The set was adopted from Connectorigin's
|
||||
- `src/memory/types.ts` (126 lines) — Memory Type Definitions (메모리 타입 정의) Astra의 5-Layer Cognitive Memory System의 모든 타입을 정의합니다. ① Short-Term ② Long-Term ③ Project ④ Procedural ⑤ Episodic
|
||||
- `src/retrieval/scoring.ts` (518 lines) — Scoring Engine — TF-IDF + Bilingual Tokenizer 단순 includes() 키워드 매칭을 넘어서, TF-IDF 가중치 기반의 문서 스코어링을 제공합니다. 한국어/영어 양국어 토크나이저를 포함합니다.
|
||||
- `src/skills/agentKnowledgeMap.ts` (374 lines)
|
||||
- `src/agent.ts` (3207 lines)
|
||||
- `src/core/services.ts` (164 lines)
|
||||
- `src/agent.ts` (3232 lines)
|
||||
- `src/features/company/companyConfig.ts` (330 lines) — State + config plumbing for 1인 기업 모드. Two surfaces: - CompanyState (runtime data: enabled flag, company name, which agents are active, per-agent model overrides). Persisted in VS Code's globalState so
|
||||
- `src/retrieval/lessonHelpers.ts` (325 lines) — Lesson / Experience Memory — pure helpers (no vscode dependency) "Lesson" = a markdown file in the active brain that captures a past mistake/risk and how to avoid repeating it. Identified by a lessons
|
||||
- `src/lib/engine.ts` (849 lines)
|
||||
- `src/lib/engine.ts` (880 lines)
|
||||
- `src/features/approval/approvalQueue.ts` (129 lines)
|
||||
- `src/integrations/telegram/telegramClient.ts` (154 lines)
|
||||
- `src/features/projectArchitecture/scanner.ts` (644 lines) — Deep static analyser for the Project Architecture Context generator. Walks the project tree (skipping the usual nodemodules / out / dist noise), pulls the role of each interesting file from its leadin
|
||||
- `src/lib/contextManager.ts` (275 lines) — Context Manager (컨텍스트 한계 관리) "context length = 132k" 는 "답변을 132k 토큰까지 생성해도 된다" 가 아닙니다. 시스템 프롬프트 + 대화 기록 + 입력 문서 + 생성될 답변 + 여유분 ≤ context length 이 모듈은 요청을 보내기 전에 입력 토큰을 추정하고, - 동적으로 출력 상한(maxTokens)을 계
|
||||
- `src/core/astraPath.ts` (50 lines) — Astra Path Resolver (경로 해결기) Astra의 모든 데이터 파일(.astra 디렉토리)의 경로를 중앙에서 관리합니다. 확장 프로그램의 설치 경로(extensionUri) 기반으로 .astra 디렉토리를 해결하여, 사용자 프로젝트 루트가 아닌 ConnectAI 패키지 내부에 데이터를 저장합니다. 이 모듈은 AAL(Astra Autonomou
|
||||
- `src/extension.ts` (945 lines)
|
||||
- `src/features/projectChronicle/types.ts` (118 lines)
|
||||
- `src/integrations/telegram/telegramClient.ts` (154 lines)
|
||||
- `src/lmstudio/client.ts` (147 lines)
|
||||
- `src/retrieval/brainIndex.ts` (325 lines) — Brain Index — persistent, mtime-keyed tokenized cache of the Second Brain RAG 검색은 매 질의마다 브레인의 모든 .md 파일을 읽고 토크나이즈해서 TF-IDF 점수를 계산했습니다 — 파일 수가 많아지면 그게 병목입니다. 이 모듈은 <brainPath>/.astra/brain-index.json 에
|
||||
- `src/extension.ts` (757 lines)
|
||||
- `src/features/projectArchitecture/index.ts` (515 lines) — Project Architecture Context (Feature 2) Builds a markdown document that captures the durable facts about a project — its purpose, modules, key files, constraints, decisions — so Astra can attach it t
|
||||
- `src/lmstudio/activityTracker.ts` (19 lines)
|
||||
- `src/memory/EpisodicMemory.ts` (278 lines) — Episodic Memory (일화 기억) 과거 대화/회의/결정의 맥락 흐름을 저장합니다. 세션 종료 시 자동으로 에피소드를 요약하여 저장합니다. "왜 이렇게 결정했는지", "어떤 흐름으로 진행했는지" 기록. 저장 위치: {brainPath}/memory/episodes/.json
|
||||
- `src/memory/LongTermMemory.ts` (243 lines) — Long-Term Memory (장기 기억) 사용자의 취향, 프로젝트 목표, 반복 규칙, 과거 결정 사항을 영구적으로 저장하고 관리합니다. 저장 위치: {brainPath}/memory/longterm.json
|
||||
- `src/memory/ProjectMemory.ts` (212 lines) — Project Memory (프로젝트 기억) 프로젝트별 요구사항, 코드 구조, 아키텍처 결정, 버그 기록 등을 Astra 확장 프로그램 내부에 저장하고 관리합니다. 저장 위치: {ConnectAI}/.astra/projectmemory.json (기존: {projectRoot}/.astra/ → 변경됨)
|
||||
- `src/retrieval/index.ts` (514 lines) — RetrievalOrchestrator — Unified RAG Pipeline Astra의 모든 검색 소스를 통합 관리하는 오케스트레이터입니다. 검색 흐름: ① Query Planning — 의도 분류 + 검색 전략 결정 ② Parallel Search — Brain + Memory + Project + Episode 동시 검색 ③ Result Fusio
|
||||
- `src/features/company/promptBuilder.ts` (202 lines) — System-prompt construction for company-mode agents. Each specialist needs a prompt that includes: - Their identity (name, role, specialty) + optional persona. - The action-tag contract (<createfile>,
|
||||
- `src/features/company/sessionStore.ts` (231 lines) — Disk persistence for company-mode session artefacts. Each company turn produces a timestamped directory: <workspaceRoot>/.astra/company/sessions/2026-05-13T21-29/ ├─ brief.md ← CEO's task decompositio
|
||||
|
||||
### `media/` — 6 files, ~3,304 lines
|
||||
### `media/` — 6 files, ~4,099 lines
|
||||
|
||||
**Key files**
|
||||
- `media/sidebar.css` (987 lines) — Stylesheet
|
||||
- `media/sidebar.js` (1388 lines)
|
||||
- `media/sidebar.css` (1225 lines) — Stylesheet
|
||||
- `media/sidebar.js` (1874 lines)
|
||||
- `media/sidebar.html` (356 lines) — Astra
|
||||
- `media/settings-panel.css` (210 lines) — Stylesheet
|
||||
- `media/sidebar.html` (285 lines) — Astra
|
||||
- `media/settings-panel.html` (164 lines) — Astra Settings
|
||||
- `media/settings-panel.js` (270 lines)
|
||||
|
||||
### `tests/` — 27 files, ~4,802 lines
|
||||
### `tests/` — 27 files, ~4,932 lines
|
||||
*Depends on*: `src/`
|
||||
|
||||
**Sub-directories**
|
||||
- `tests/mocks/` (1) — 1 files (.js)
|
||||
|
||||
**Key files**
|
||||
- `tests/agentEngine.test.ts` (646 lines) — AgentEngine Integration Tests & Performance Benchmarks 검증 대상: 1. ErrorClassifier — 오류 유형(Transient/Permanent/Abort) 자동 분류 2. ErrorRecoveryMatrix — 각 규칙이 의도한 대응 전략으로 매핑되는지 검증 3. resilientExecute — 지수 백
|
||||
- `tests/agentEngine.test.ts` (776 lines) — AgentEngine Integration Tests & Performance Benchmarks 검증 대상: 1. ErrorClassifier — 오류 유형(Transient/Permanent/Abort) 자동 분류 2. ErrorRecoveryMatrix — 각 규칙이 의도한 대응 전략으로 매핑되는지 검증 3. resilientExecute — 지수 백
|
||||
- `tests/lmStudioLifecycle.test.ts` (318 lines) — Unit tests for ModelLifecycleManager. Strategy: inject mock ILMStudioClient and a simple in-memory IActivityTracker. No real LM Studio or SDK is touched — the manager file does not import the SDK dire
|
||||
- `tests/telegramBot.test.ts` (363 lines) — Unit tests for TelegramBot + truncateForTelegram. Strategy: - TelegramBot is driven by an injected ITelegramClient stub. We script getUpdates to return queued batches and assert that: - the offset cur
|
||||
- `tests/lmStudioStreamer.test.ts` (220 lines) — Unit tests for LMStudioStreamer. Strategy: inject a fake ILMStudioClient that returns a fake model handle whose respond() yields a controllable async iterable. No real SDK or WebSocket touched.
|
||||
@@ -160,10 +160,10 @@ flowchart LR
|
||||
- `core_py/optimizer.py` (55 lines)
|
||||
- `core_py/queue_worker.py` (82 lines)
|
||||
|
||||
### `docs/` — 60 files, ~2,545 lines
|
||||
### `docs/` — 62 files, ~2,586 lines
|
||||
|
||||
**Sub-directories**
|
||||
- `docs/records/` (48) — Astra Project Chronicle Records
|
||||
- `docs/records/` (50) — Astra Project Chronicle Records
|
||||
- `docs/docs/` (5) — docs Chronicle Records
|
||||
|
||||
**Key files**
|
||||
@@ -172,7 +172,7 @@ flowchart LR
|
||||
- `docs/EXPERIENCE_MEMORY_PLAN.md` (122 lines) — Experience Memory (Mistake / Lesson Loop) — Implementation Plan
|
||||
- `docs/records/ConnectAI/development/2026-05-02_connectai_project_knowledge_overview.md` (121 lines) — Astra Project Knowledge Overview
|
||||
- `docs/records/ConnectAI/development/2026-05-03_connectai_project_knowledge_overview.md` (121 lines) — Astra Project Knowledge Overview
|
||||
- `docs/records/ConnectAI/timeline.md` (116 lines) — Project Timeline
|
||||
- `docs/records/ConnectAI/timeline.md` (122 lines) — Project Timeline
|
||||
- `docs/Advanced_Features_Implementation_Guide.md` (40 lines) — Advanced Features Implementation Guide
|
||||
- `docs/PROJECT_CHRONICLE_GUARD_ROADMAP.md` (43 lines) — Project Chronicle Guard: Search Engine Roadmap
|
||||
- `docs/UX_UI_Consistency_Guidelines.md` (44 lines) — UX/UI Consistency Guidelines
|
||||
@@ -196,7 +196,7 @@ flowchart LR
|
||||
## VS Code Extension Surface
|
||||
- **Extension ID**: `g1nation.astra`
|
||||
- **Activation events**: `onStartupFinished`
|
||||
- **Commands** (19):
|
||||
- **Commands** (23):
|
||||
- `g1nation.newChat` — Astra: New Chat
|
||||
- `g1nation.exportChat` — Astra: Export Chat as Markdown
|
||||
- `g1nation.explainSelection` — Astra: Explain Selected Code
|
||||
@@ -215,8 +215,12 @@ flowchart LR
|
||||
- `g1nation.lesson.manage` — Astra: Browse / Manage Lessons
|
||||
- `g1nation.architecture.refresh` — Astra: Refresh Project Architecture Context
|
||||
- `g1nation.architecture.detach` — Astra: Detach Project Architecture Context
|
||||
- `g1nation.architecture.attach` — Astra: Attach Project Architecture Context
|
||||
- `g1nation.architecture.open` — Astra: Open Project Architecture Doc
|
||||
- **Configuration** (38 settings):
|
||||
- `g1nation.company.toggle` — Astra: Toggle 1인 기업 Mode
|
||||
- `g1nation.company.manage` — Astra: Manage 1인 기업 Agents
|
||||
- `g1nation.company.openSessions` — Astra: Open 1인 기업 Sessions Folder
|
||||
- **Configuration** (39 settings):
|
||||
- `g1nation.multiAgentEnabled` *(boolean)* _(default: `false`)_ — Enable Multi-Agent Workflow (Planner -> Researcher -> Writer) for complex tasks.
|
||||
- `g1nation.memoryEnabled` *(boolean)* _(default: `true`)_ — Enable layered memory injection before each model response.
|
||||
- `g1nation.memoryShortTermMessages` *(number)* _(default: `8`)_ — Number of recent conversation messages included as short-term memory.
|
||||
@@ -255,6 +259,7 @@ flowchart LR
|
||||
- `g1nation.embeddingModel` *(string)* _(default: `""`)_ — Embedding model registered in LM Studio / Ollama (e.g. 'text-embedding-bge-small-en-v1.5', 'nomic-embed-text', 'multilingual-e5-small'). When empty, Astra uses TF-IDF only. When set, the brain is embe
|
||||
- `g1nation.embeddingBlendAlpha` *(number)* _(default: `0.5`)_ — Hybrid score blend: 0 = pure TF-IDF (sparse / keyword), 1 = pure embedding cosine (dense / semantic), 0.5 = balanced. Only used when g1nation.embeddingModel is set. Default 0.5.
|
||||
- `g1nation.knowledgeMix.secondBrainWeight` *(number)* _(default: `50`)_ — Knowledge Mix (0–100): how heavily the assistant should lean on Second Brain evidence vs. its own general knowledge. 0 = Second Brain disabled (model knowledge only). 50 = balanced (legacy default). 1
|
||||
- `g1nation.enableReflection` *(boolean)* _(default: `true`)_ — Insert a Self-Reflection (Reflector) stage between Researcher and Writer in the multi-agent workflow. The Reflector critically reviews the plan and research output (gaps, contradictions, unsupported c
|
||||
|
||||
## Dependencies
|
||||
- **Runtime** (2): `@lmstudio/sdk`, `pdf-parse`
|
||||
@@ -302,7 +307,7 @@ Astra는 대표님의 명시적인 승인 하에 로컬 시스템의 강력한
|
||||
**Designed for High-Performance Decision Making.**
|
||||
Copyright (C) **g1nation**. All rights reserved.
|
||||
|
||||
_Last auto-scan: 2026-05-13T13:48:21.458Z · signature `fefc8c65`_
|
||||
_Last auto-scan: 2026-05-13T16:44:14.023Z · signature `c63276ae`_
|
||||
<!-- ASTRA:AUTO-END -->
|
||||
|
||||
## Purpose
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"version": 1,
|
||||
"generatedAt": "2026-05-13T13:48:21.464Z",
|
||||
"generatedAt": "2026-05-13T16:44:14.033Z",
|
||||
"files": {
|
||||
"src/agent.ts": {
|
||||
"mtimeMs": 1778677012000,
|
||||
"size": 184384,
|
||||
"lines": 3207,
|
||||
"mtimeMs": 1778683690000,
|
||||
"size": 185807,
|
||||
"lines": 3232,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
@@ -38,19 +38,20 @@
|
||||
]
|
||||
},
|
||||
"src/agents/AgentWorkflowManager.ts": {
|
||||
"mtimeMs": 1777808065000,
|
||||
"size": 1745,
|
||||
"lines": 50,
|
||||
"mtimeMs": 1778690404000,
|
||||
"size": 2262,
|
||||
"lines": 60,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/agents/factory",
|
||||
"src/lib/engine"
|
||||
"src/lib/engine",
|
||||
"src/config"
|
||||
]
|
||||
},
|
||||
"src/agents/factory.ts": {
|
||||
"mtimeMs": 1778591282000,
|
||||
"size": 7965,
|
||||
"lines": 166,
|
||||
"mtimeMs": 1778690336000,
|
||||
"size": 11023,
|
||||
"lines": 219,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/config",
|
||||
@@ -58,7 +59,7 @@
|
||||
]
|
||||
},
|
||||
"src/bridge.ts": {
|
||||
"mtimeMs": 1778251262000,
|
||||
"mtimeMs": 1778681774000,
|
||||
"size": 9705,
|
||||
"lines": 227,
|
||||
"role": "",
|
||||
@@ -71,9 +72,9 @@
|
||||
]
|
||||
},
|
||||
"src/config.ts": {
|
||||
"mtimeMs": 1778676053000,
|
||||
"size": 9149,
|
||||
"lines": 209,
|
||||
"mtimeMs": 1778690442000,
|
||||
"size": 9619,
|
||||
"lines": 216,
|
||||
"role": "",
|
||||
"imports": []
|
||||
},
|
||||
@@ -248,9 +249,9 @@
|
||||
"imports": []
|
||||
},
|
||||
"src/extension.ts": {
|
||||
"mtimeMs": 1778677220000,
|
||||
"size": 37920,
|
||||
"lines": 757,
|
||||
"mtimeMs": 1778687229000,
|
||||
"size": 49361,
|
||||
"lines": 945,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
@@ -273,11 +274,13 @@
|
||||
"src/integrations/telegram/telegramClient",
|
||||
"src/integrations/telegram/telegramBot",
|
||||
"src/core/services",
|
||||
"src/features/company",
|
||||
"src/features/settings/settingsPanelProvider",
|
||||
"src/skills/agentKnowledgeMap",
|
||||
"src/retrieval",
|
||||
"src/retrieval/lessonHelpers",
|
||||
"src/skills/scopedBrainRetriever"
|
||||
"src/skills/scopedBrainRetriever",
|
||||
"src/integrations/telegram/conversationHistory"
|
||||
]
|
||||
},
|
||||
"src/features/approval/approvalPanelProvider.ts": {
|
||||
@@ -308,10 +311,160 @@
|
||||
"src/features/approval/approvalQueue"
|
||||
]
|
||||
},
|
||||
"src/features/company/agents.ts": {
|
||||
"mtimeMs": 1778680824000,
|
||||
"size": 6684,
|
||||
"lines": 136,
|
||||
"role": "The 9-agent roster for 1인 기업 모드. Each entry is a static description — persona, role, specialty — used to build the specialist's system prompt at dispatch time. The set was adopted from Connectorigin's",
|
||||
"imports": [
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/ceoPlanner.ts": {
|
||||
"mtimeMs": 1778681095000,
|
||||
"size": 8406,
|
||||
"lines": 219,
|
||||
"role": "CEO planner — turns a user prompt into a CompanyTaskPlan. Lifecycle of one planner call: 1. Build the planner system prompt (template + active-agent list). 2. Hit the AI service with the user prompt a",
|
||||
"imports": [
|
||||
"src/core/services",
|
||||
"src/utils",
|
||||
"src/features/company/agents",
|
||||
"src/features/company/companyConfig",
|
||||
"src/features/company/promptAssets",
|
||||
"src/features/company/promptBuilder",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/ceoReporter.ts": {
|
||||
"mtimeMs": 1778681122000,
|
||||
"size": 4812,
|
||||
"lines": 120,
|
||||
"role": "CEO synthesis pass — runs after all specialists have finished. Given the per-agent outputs, this asks the CEO model to produce the final markdown report (✅ 완료 / 🚀 다음 / 💡 인사이트) that the user actually",
|
||||
"imports": [
|
||||
"src/core/services",
|
||||
"src/utils",
|
||||
"src/features/company/agents",
|
||||
"src/features/company/promptAssets",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/companyConfig.ts": {
|
||||
"mtimeMs": 1778686762000,
|
||||
"size": 13473,
|
||||
"lines": 330,
|
||||
"role": "State + config plumbing for 1인 기업 모드. Two surfaces: - CompanyState (runtime data: enabled flag, company name, which agents are active, per-agent model overrides). Persisted in VS Code's globalState so",
|
||||
"imports": [
|
||||
"src/features/company/agents",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/dispatcher.ts": {
|
||||
"mtimeMs": 1778686839000,
|
||||
"size": 20029,
|
||||
"lines": 434,
|
||||
"role": "Sequential dispatcher for 1인 기업 모드. Drives one company \"turn\": user prompt → CEO planner (JSON {brief, tasks}) → for each task in plan: dispatch one specialist (sequentially) - build specialist prompt",
|
||||
"imports": [
|
||||
"src/core/services",
|
||||
"src/utils",
|
||||
"src/skills/scopedBrainRetriever",
|
||||
"src/skills/agentKnowledgeMap",
|
||||
"src/retrieval/knowledgeMix",
|
||||
"src/features/company/agents",
|
||||
"src/features/company/companyConfig",
|
||||
"src/features/company/ceoPlanner",
|
||||
"src/features/company/ceoReporter",
|
||||
"src/features/company/promptBuilder",
|
||||
"src/features/company/sessionStore",
|
||||
"src/features/company/telegramReport",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/index.ts": {
|
||||
"mtimeMs": 1778686769000,
|
||||
"size": 1114,
|
||||
"lines": 55,
|
||||
"role": "Public API for 1인 기업 모드. Consumers (sidebarProvider, chatHandlers, command handlers) import from this barrel so internal layout can move around without touching every call site.",
|
||||
"imports": [
|
||||
"src/features/company/agents",
|
||||
"src/features/company/companyConfig",
|
||||
"src/features/company/types",
|
||||
"src/features/company/dispatcher",
|
||||
"src/features/company/sessionStore"
|
||||
]
|
||||
},
|
||||
"src/features/company/promptAssets.ts": {
|
||||
"mtimeMs": 1778680887000,
|
||||
"size": 6782,
|
||||
"lines": 114,
|
||||
"role": "Inlined prompt assets for the 1인 기업 mode. The CEO planner / reporter / casual-chat prompts are kept as TS string constants rather than loaded from prompts/.md at runtime, for two reasons: 1. Bundling.",
|
||||
"imports": []
|
||||
},
|
||||
"src/features/company/promptBuilder.ts": {
|
||||
"mtimeMs": 1778686868000,
|
||||
"size": 10317,
|
||||
"lines": 202,
|
||||
"role": "System-prompt construction for company-mode agents. Each specialist needs a prompt that includes: - Their identity (name, role, specialty) + optional persona. - The action-tag contract (<createfile>, ",
|
||||
"imports": [
|
||||
"src/features/company/agents",
|
||||
"src/features/company/companyConfig",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/prompts/ceo-chat.md": {
|
||||
"mtimeMs": 1778680831000,
|
||||
"size": 462,
|
||||
"lines": 4,
|
||||
"role": "당신은 {{COMPANY}}의 CEO입니다. 사용자(사장님)와 짧게 인사·안부·잡담을 주고받습니다. - 한국어로 1~3문장. 친근하지만 사장-CEO 관계는 유지. - 인사·안부 질문이면 자연스럽게 응답하세요. 작업 지시가 아니면 굳이 작업 분배 제안 X. - 회사 정체성·최근 결정·추적기 상태가 컨텍스트에 있으면 자연스럽게 활용. - JSON 출력 금지. ",
|
||||
"imports": []
|
||||
},
|
||||
"src/features/company/prompts/ceo-planner.md": {
|
||||
"mtimeMs": 1778680831000,
|
||||
"size": 3199,
|
||||
"lines": 38,
|
||||
"role": "당신은 \"{{COMPANY}}\"의 CEO입니다. 1인 AI 기업의 사령관이자 오케스트레이터입니다.",
|
||||
"imports": []
|
||||
},
|
||||
"src/features/company/prompts/ceo-report.md": {
|
||||
"mtimeMs": 1778680831000,
|
||||
"size": 1373,
|
||||
"lines": 21,
|
||||
"role": "당신은 {{COMPANY}}의 CEO입니다. 방금 팀이 작업을 끝냈습니다. 각 에이전트의 산출물을 읽고 사장님께 올릴 종합 보고서를 작성하세요.",
|
||||
"imports": []
|
||||
},
|
||||
"src/features/company/sessionStore.ts": {
|
||||
"mtimeMs": 1778680971000,
|
||||
"size": 8727,
|
||||
"lines": 231,
|
||||
"role": "Disk persistence for company-mode session artefacts. Each company turn produces a timestamped directory: <workspaceRoot>/.astra/company/sessions/2026-05-13T21-29/ ├─ brief.md ← CEO's task decompositio",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/telegramReport.ts": {
|
||||
"mtimeMs": 1778686162000,
|
||||
"size": 8111,
|
||||
"lines": 168,
|
||||
"role": "Telegram mirror for the secretary agent (영숙). After every company turn finishes, this helper takes the CEO synthesis + task list and pushes it to the user's Telegram chat — same behaviour as Connector",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
"src/integrations/telegram/telegramClient",
|
||||
"src/integrations/telegram/conversationHistory",
|
||||
"src/features/company/agents",
|
||||
"src/features/company/types"
|
||||
]
|
||||
},
|
||||
"src/features/company/types.ts": {
|
||||
"mtimeMs": 1778686714000,
|
||||
"size": 6454,
|
||||
"lines": 150,
|
||||
"role": "Type definitions for the 1인 기업 (One-Person Company) mode. The mode turns the user into a virtual CEO that dispatches work to a roster of specialist agents. Each turn produces a session directory conta",
|
||||
"imports": []
|
||||
},
|
||||
"src/features/projectArchitecture/index.ts": {
|
||||
"mtimeMs": 1778679015000,
|
||||
"size": 22657,
|
||||
"lines": 515,
|
||||
"mtimeMs": 1778684164000,
|
||||
"size": 23147,
|
||||
"lines": 523,
|
||||
"role": "Project Architecture Context (Feature 2) Builds a markdown document that captures the durable facts about a project — its purpose, modules, key files, constraints, decisions — so Astra can attach it t",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
@@ -413,6 +566,15 @@
|
||||
"src/lib/paths"
|
||||
]
|
||||
},
|
||||
"src/integrations/telegram/conversationHistory.ts": {
|
||||
"mtimeMs": 1778684811000,
|
||||
"size": 6273,
|
||||
"lines": 154,
|
||||
"role": "Per-chat conversation history for the Telegram bot. Why this exists: the previous bot was stateless — every inbound message hit AIService.chat({system, user}) in isolation, with no memory of what the ",
|
||||
"imports": [
|
||||
"src/utils"
|
||||
]
|
||||
},
|
||||
"src/integrations/telegram/telegramBot.ts": {
|
||||
"mtimeMs": 1778421270000,
|
||||
"size": 11344,
|
||||
@@ -467,9 +629,9 @@
|
||||
]
|
||||
},
|
||||
"src/lib/engine.ts": {
|
||||
"mtimeMs": 1777985699000,
|
||||
"size": 38497,
|
||||
"lines": 849,
|
||||
"mtimeMs": 1778690608000,
|
||||
"size": 40830,
|
||||
"lines": 880,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/core/lock",
|
||||
@@ -740,14 +902,15 @@
|
||||
]
|
||||
},
|
||||
"src/sidebar/chatHandlers.ts": {
|
||||
"mtimeMs": 1778677129000,
|
||||
"size": 8596,
|
||||
"lines": 175,
|
||||
"mtimeMs": 1778686906000,
|
||||
"size": 13454,
|
||||
"lines": 266,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/sidebarProvider",
|
||||
"src/utils",
|
||||
"src/lib/paths"
|
||||
"src/lib/paths",
|
||||
"src/features/company"
|
||||
]
|
||||
},
|
||||
"src/sidebar/chronicleHandlers.ts": {
|
||||
@@ -760,9 +923,9 @@
|
||||
]
|
||||
},
|
||||
"src/sidebarProvider.ts": {
|
||||
"mtimeMs": 1778679027000,
|
||||
"size": 112397,
|
||||
"lines": 2603,
|
||||
"mtimeMs": 1778686896000,
|
||||
"size": 127185,
|
||||
"lines": 2934,
|
||||
"role": "",
|
||||
"imports": [
|
||||
"src/utils",
|
||||
@@ -780,7 +943,9 @@
|
||||
"src/lib/contextManager",
|
||||
"src/skills/externalSkillLoader",
|
||||
"src/features/projectArchitecture",
|
||||
"src/features/projectArchitecture/intentDetector"
|
||||
"src/features/projectArchitecture/intentDetector",
|
||||
"src/features/company",
|
||||
"src/core/services"
|
||||
]
|
||||
},
|
||||
"src/skills/agentKnowledgeMap.ts": {
|
||||
@@ -816,7 +981,7 @@
|
||||
]
|
||||
},
|
||||
"src/skills/skillInjectionService.ts": {
|
||||
"mtimeMs": 1778251221000,
|
||||
"mtimeMs": 1778681774000,
|
||||
"size": 6276,
|
||||
"lines": 145,
|
||||
"role": "",
|
||||
@@ -870,30 +1035,30 @@
|
||||
"imports": []
|
||||
},
|
||||
"media/sidebar.css": {
|
||||
"mtimeMs": 1778677793000,
|
||||
"size": 38372,
|
||||
"lines": 987,
|
||||
"mtimeMs": 1778688155000,
|
||||
"size": 49347,
|
||||
"lines": 1225,
|
||||
"role": "Stylesheet",
|
||||
"imports": []
|
||||
},
|
||||
"media/sidebar.html": {
|
||||
"mtimeMs": 1778677855000,
|
||||
"size": 16364,
|
||||
"lines": 285,
|
||||
"mtimeMs": 1778687548000,
|
||||
"size": 20499,
|
||||
"lines": 356,
|
||||
"role": "Astra",
|
||||
"imports": []
|
||||
},
|
||||
"media/sidebar.js": {
|
||||
"mtimeMs": 1778677844000,
|
||||
"size": 77309,
|
||||
"lines": 1388,
|
||||
"mtimeMs": 1778688191000,
|
||||
"size": 103898,
|
||||
"lines": 1874,
|
||||
"role": "",
|
||||
"imports": []
|
||||
},
|
||||
"tests/agentEngine.test.ts": {
|
||||
"mtimeMs": 1777983087000,
|
||||
"size": 27182,
|
||||
"lines": 646,
|
||||
"mtimeMs": 1778690526000,
|
||||
"size": 33414,
|
||||
"lines": 776,
|
||||
"role": "AgentEngine Integration Tests & Performance Benchmarks 검증 대상: 1. ErrorClassifier — 오류 유형(Transient/Permanent/Abort) 자동 분류 2. ErrorRecoveryMatrix — 각 규칙이 의도한 대응 전략으로 매핑되는지 검증 3. resilientExecute — 지수 백",
|
||||
"imports": [
|
||||
"src/lib/engine"
|
||||
@@ -1083,7 +1248,7 @@
|
||||
]
|
||||
},
|
||||
"tests/skillInjectionService.test.ts": {
|
||||
"mtimeMs": 1778251292000,
|
||||
"mtimeMs": 1778681774000,
|
||||
"size": 6741,
|
||||
"lines": 172,
|
||||
"role": "Unit tests for FileSystemSkillInjectionService. Strategy: drive the service against a real temp directory so path-traversal defenses and writeFileSync paths are exercised end-to-end. The service accep",
|
||||
@@ -1343,7 +1508,7 @@
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/chronicle.config.json": {
|
||||
"mtimeMs": 1778680095000,
|
||||
"mtimeMs": 1778690568000,
|
||||
"size": 416,
|
||||
"lines": 11,
|
||||
"role": "JSON configuration",
|
||||
@@ -1412,6 +1577,13 @@
|
||||
"role": "ADR: 이 프로젝트의 구조에 대해서 설명해봐.",
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/decisions/ADR-0010-volumes-data-project-antigravity-connectai-self-reflection-기.md": {
|
||||
"mtimeMs": 1778689955000,
|
||||
"size": 1468,
|
||||
"lines": 19,
|
||||
"role": "ADR: /Volumes/Data/project/Antigravity/ConnectAI self reflection 기능이 적용되었는지 확인해줘. 1인 ...",
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/development/2026-05-02_answer-format-readability-tuning.md": {
|
||||
"mtimeMs": 1777808065000,
|
||||
"size": 1534,
|
||||
@@ -1552,6 +1724,13 @@
|
||||
"role": "Discussion: /Volumes/Data/project/Antigravity/ConnectAI 이 프로젝트 작업할거야",
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/discussions/2026-05-13_volumes-data-project-antigravity-connectai-이-프로젝트-하위-폴더-포함해서.md": {
|
||||
"mtimeMs": 1778689036000,
|
||||
"size": 720,
|
||||
"lines": 16,
|
||||
"role": "Discussion: /Volumes/Data/project/Antigravity/ConnectAI 이 프로젝트 하위 폴더 포함해서 딥 리서치 해줘. 최적화 할 부분...",
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/discussions/2026-05-13_volumes-data-project-antigravity-connectai-이-프로젝트를-작업할거야.md": {
|
||||
"mtimeMs": 1778677791000,
|
||||
"size": 719,
|
||||
@@ -1588,9 +1767,9 @@
|
||||
"imports": []
|
||||
},
|
||||
"docs/records/ConnectAI/timeline.md": {
|
||||
"mtimeMs": 1778680095000,
|
||||
"size": 7871,
|
||||
"lines": 116,
|
||||
"mtimeMs": 1778689955000,
|
||||
"size": 8165,
|
||||
"lines": 122,
|
||||
"role": "Project Timeline",
|
||||
"imports": []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user