@backendkit-labs/curator-codex-agent 0.2.0 → 1.0.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 (101) hide show
  1. package/dist/analyzer.d.ts +1 -17
  2. package/dist/analyzer.d.ts.map +1 -1
  3. package/dist/analyzer.js +80 -163
  4. package/dist/analyzer.js.map +1 -1
  5. package/dist/audit.d.ts +27 -0
  6. package/dist/audit.d.ts.map +1 -0
  7. package/dist/audit.js +43 -0
  8. package/dist/audit.js.map +1 -0
  9. package/dist/checksum.d.ts +0 -22
  10. package/dist/checksum.d.ts.map +1 -1
  11. package/dist/checksum.js +14 -103
  12. package/dist/checksum.js.map +1 -1
  13. package/dist/documentation-curator.d.ts +1 -1
  14. package/dist/documentation-curator.d.ts.map +1 -1
  15. package/dist/documentation-curator.js +79 -95
  16. package/dist/documentation-curator.js.map +1 -1
  17. package/dist/index.d.ts +19 -9
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +12 -22
  20. package/dist/index.js.map +1 -1
  21. package/dist/knowledge/embedder-worker.d.ts +2 -0
  22. package/dist/knowledge/embedder-worker.d.ts.map +1 -0
  23. package/dist/knowledge/embedder-worker.js +55 -0
  24. package/dist/knowledge/embedder-worker.js.map +1 -0
  25. package/dist/knowledge/engine.d.ts +10 -56
  26. package/dist/knowledge/engine.d.ts.map +1 -1
  27. package/dist/knowledge/engine.js +42 -153
  28. package/dist/knowledge/engine.js.map +1 -1
  29. package/dist/knowledge/rag-provider.d.ts +14 -56
  30. package/dist/knowledge/rag-provider.d.ts.map +1 -1
  31. package/dist/knowledge/rag-provider.js +63 -154
  32. package/dist/knowledge/rag-provider.js.map +1 -1
  33. package/dist/knowledge/synthesis.d.ts +0 -10
  34. package/dist/knowledge/synthesis.d.ts.map +1 -1
  35. package/dist/knowledge/synthesis.js +32 -77
  36. package/dist/knowledge/synthesis.js.map +1 -1
  37. package/dist/knowledge/transformers-embedder.d.ts +61 -0
  38. package/dist/knowledge/transformers-embedder.d.ts.map +1 -0
  39. package/dist/knowledge/transformers-embedder.js +222 -0
  40. package/dist/knowledge/transformers-embedder.js.map +1 -0
  41. package/dist/pdf-reader.d.ts +11 -0
  42. package/dist/pdf-reader.d.ts.map +1 -0
  43. package/dist/pdf-reader.js +21 -0
  44. package/dist/pdf-reader.js.map +1 -0
  45. package/dist/project.d.ts +28 -0
  46. package/dist/project.d.ts.map +1 -0
  47. package/dist/project.js +88 -0
  48. package/dist/project.js.map +1 -0
  49. package/dist/providers/anthropic-adapter.d.ts +2 -2
  50. package/dist/providers/anthropic-adapter.d.ts.map +1 -1
  51. package/dist/providers/anthropic-adapter.js +7 -13
  52. package/dist/providers/anthropic-adapter.js.map +1 -1
  53. package/dist/providers/index.d.ts +1 -1
  54. package/dist/providers/index.d.ts.map +1 -1
  55. package/dist/providers/index.js +13 -20
  56. package/dist/providers/index.js.map +1 -1
  57. package/dist/providers/openai-adapter.d.ts +2 -2
  58. package/dist/providers/openai-adapter.d.ts.map +1 -1
  59. package/dist/providers/openai-adapter.js +7 -13
  60. package/dist/providers/openai-adapter.js.map +1 -1
  61. package/dist/providers/types.d.ts +8 -1
  62. package/dist/providers/types.d.ts.map +1 -1
  63. package/dist/providers/types.js +1 -2
  64. package/dist/types.d.ts.map +1 -1
  65. package/dist/types.js +1 -3
  66. package/dist/types.js.map +1 -1
  67. package/dist/vault-dedup.d.ts +35 -0
  68. package/dist/vault-dedup.d.ts.map +1 -0
  69. package/dist/vault-dedup.js +130 -0
  70. package/dist/vault-dedup.js.map +1 -0
  71. package/package.json +43 -56
  72. package/AGENT.md +0 -187
  73. package/README.md +0 -475
  74. package/dist/api/config.d.ts +0 -57
  75. package/dist/api/config.d.ts.map +0 -1
  76. package/dist/api/config.js +0 -183
  77. package/dist/api/config.js.map +0 -1
  78. package/dist/api/http-server.d.ts +0 -24
  79. package/dist/api/http-server.d.ts.map +0 -1
  80. package/dist/api/http-server.js +0 -108
  81. package/dist/api/http-server.js.map +0 -1
  82. package/dist/api/routes.d.ts +0 -8
  83. package/dist/api/routes.d.ts.map +0 -1
  84. package/dist/api/routes.js +0 -382
  85. package/dist/api/routes.js.map +0 -1
  86. package/dist/api/security.d.ts +0 -107
  87. package/dist/api/security.d.ts.map +0 -1
  88. package/dist/api/security.js +0 -200
  89. package/dist/api/security.js.map +0 -1
  90. package/dist/http-server-main.d.ts +0 -28
  91. package/dist/http-server-main.d.ts.map +0 -1
  92. package/dist/http-server-main.js +0 -69
  93. package/dist/http-server-main.js.map +0 -1
  94. package/dist/server.d.ts +0 -33
  95. package/dist/server.d.ts.map +0 -1
  96. package/dist/server.js +0 -640
  97. package/dist/server.js.map +0 -1
  98. package/dist/watcher.d.ts +0 -26
  99. package/dist/watcher.d.ts.map +0 -1
  100. package/dist/watcher.js +0 -168
  101. package/dist/watcher.js.map +0 -1
package/README.md DELETED
@@ -1,475 +0,0 @@
1
- # curator-codex-agent
2
-
3
- **Codex Curator** — Unified source code and documentation analysis with intelligent knowledge extraction into enterprise vaults using LLM reasoning.
4
-
5
- ## Overview
6
-
7
- `curator-codex-agent` is a **unified curator** that analyzes both source code and documentation:
8
-
9
- ### 🔵 Code Analysis
10
- Analyzes source code files (TypeScript, JavaScript, Python, Go, Rust, Java, etc.) and extracts:
11
- - **Public APIs** — functions, classes, interfaces, type definitions
12
- - **Modules & Components** — what each file/directory does
13
- - **Patterns & Architecture** — design patterns, integration points
14
- - **Dependencies** — external libraries and internal module relationships
15
- - **Usage Examples** — extracted from comments and associated documentation
16
-
17
- ### 📄 Documentation Analysis
18
- Processes documentation files (.md, .txt) and extracts:
19
- - **Policies** — company rules, procedures, governance
20
- - **Decisions** — architectural decisions, standards
21
- - **Procedures** — how-to guides, workflows
22
- - **Lessons** — learned experiences, best practices
23
- - **External Standards** — compliance requirements, ISO standards
24
-
25
- ### Key Features
26
-
27
- ✅ **Unified Processing** — Handles both source code AND documentation in single pass
28
- ✅ **Multi-language Code** — TypeScript, JavaScript, Python, Go, Rust, Java, C/C++, Kotlin, Swift
29
- ✅ **Smart Documentation Discovery** — automatically finds and combines associated .md files, README.md, and project context
30
- ✅ **Reasoning-based Analysis** — uses deepseek-reasoner for deep understanding of both code and docs
31
- ✅ **Change Detection** — SHA256 manifest tracking, intelligent reprocessing of only changed files
32
- ✅ **Recursive Scanning** — processes entire directory hierarchies, smart ignoring of node_modules, dist, venv, etc.
33
- ✅ **MCP Server** — works as stdio or HTTP server for integration with Claude, bk-agent, other tools
34
- ✅ **Vault Integration** — outputs semantic notes into shared vaults for knowledge sharing
35
- ✅ **Automatic Type Detection** — detects file type and routes to appropriate analyzer
36
-
37
- ## Installation
38
-
39
- ```bash
40
- npm install @backendkit-labs/curator-codex-agent
41
- ```
42
-
43
- Or clone and build:
44
-
45
- ```bash
46
- cd packages/curator-codex-agent
47
- npm install
48
- npm run build
49
- ```
50
-
51
- ## Usage
52
-
53
- ### Mode 1: Direct Code Analysis (Single Run)
54
-
55
- Analyze a project's code once and generate knowledge vault:
56
-
57
- ```bash
58
- CURATOR_INPUT_PATH=/path/to/my-project \
59
- CURATOR_OUTPUT_PATH=/path/to/vault \
60
- CURATOR_API_KEY=sk-... \
61
- npm run watch-code
62
- ```
63
-
64
- This will:
65
- 1. Recursively scan `/path/to/my-project` for all code files
66
- 2. For each file, search for associated documentation:
67
- - `filename.md` (same directory)
68
- - `README.md` (same directory)
69
- - `docs/filename.md` (in docs/ folder)
70
- - Root `/README.md` (project context)
71
- 3. Analyze code + docs together with reasoning model
72
- 4. Extract structured knowledge and write to vault
73
- 5. Create `.codex-manifest.json` to track analyzed files
74
- 6. Exit
75
-
76
- **Second run with same inputs** (after modifying some files):
77
- - Manifest detects unchanged files → skips
78
- - Manifest detects changed files → reanalyzes only those
79
- - Efficiency: if 500 files and only 3 changed, processes only the 3
80
-
81
- ### Mode 2: Watch Incoming (Autonomous)
82
-
83
- Monitor `vault/incoming/` directory for new code files:
84
-
85
- ```bash
86
- CURATOR_OUTPUT_PATH=/path/to/vault \
87
- CURATOR_API_KEY=sk-... \
88
- npm start
89
- ```
90
-
91
- Polls every 30 seconds (or `CURATOR_POLL_MS`), processes new code files automatically.
92
-
93
- ### Mode 3: MCP Server
94
-
95
- Run as HTTP MCP server for Claude Desktop or remote clients:
96
-
97
- ```bash
98
- CURATOR_OUTPUT_PATH=/path/to/vault \
99
- CURATOR_API_KEY=sk-... \
100
- CURATOR_PORT=3101 \
101
- npm start
102
- ```
103
-
104
- Then use via MCP client:
105
-
106
- ```typescript
107
- // Analyze a single file
108
- POST http://localhost:3101/mcp
109
- {
110
- "tool": "analyze_file",
111
- "params": {
112
- "file_path": "/absolute/path/to/file.ts",
113
- "relative_path": "src/services/auth.ts"
114
- }
115
- }
116
-
117
- // Analyze entire directory
118
- POST http://localhost:3101/mcp
119
- {
120
- "tool": "analyze_directory",
121
- "params": {
122
- "directory_path": "/absolute/path/to/project"
123
- }
124
- }
125
- ```
126
-
127
- ## Configuration
128
-
129
- ### Environment Variables
130
-
131
- **Required:**
132
- - `CURATOR_API_KEY` — Your API key (DeepSeek, OpenAI, Anthropic, etc.)
133
- - `CURATOR_OUTPUT_PATH` — Absolute path to vault root
134
-
135
- **Optional:**
136
- - `CURATOR_INPUT_PATH` — Code directory to analyze once (if not set, uses watch mode)
137
- - `CURATOR_PROVIDER` — `deepseek`, `openai`, `anthropic`, `ollama` (default: `deepseek`)
138
- - `CURATOR_MODEL` — Model ID (defaults to reasoning models for each provider)
139
- - `CURATOR_BASE_URL` — Custom LLM endpoint
140
- - `CURATOR_PORT` — HTTP port (if set, runs HTTP MCP; if not, uses stdio)
141
- - `CURATOR_POLL_MS` — Polling interval in milliseconds (default: 30000)
142
-
143
- ### Example `.env.local`
144
-
145
- ```env
146
- CURATOR_API_KEY=sk-...
147
- CURATOR_OUTPUT_PATH=/Users/john/Vaults/code-knowledge
148
- CURATOR_INPUT_PATH=/Users/john/Projects/my-framework
149
- CURATOR_PROVIDER=deepseek
150
- CURATOR_MODEL=deepseek-reasoner
151
- ```
152
-
153
- ## Vault Output
154
-
155
- For each analyzed file, generates markdown notes with frontmatter:
156
-
157
- **File:** `vault/general/2026-06-13-authservice-jwt-based-authentication.md`
158
-
159
- ```markdown
160
- ---
161
- title: "AuthService: JWT-based Authentication"
162
- area: general
163
- tipo: componente
164
- language: typescript
165
- resumen: "NestJS service implementing JWT-based authentication..."
166
- author: "agent/codex"
167
- date: 2026-06-13
168
- source_ref: "src/services/auth.service.ts"
169
- sources_combined: ["src/services/auth.service.ts", "src/services/auth.service.md", "README.md"]
170
- tags: ["code/typescript", "modulo/authentication", "tipo/service", "patron/jwt"]
171
- version: 1.0
172
- depends_on: ["@nestjs/jwt", "@backendkit-labs/result"]
173
- exports: ["AuthService", "login", "validateToken"]
174
- files: ["src/services/auth.service.ts"]
175
- ---
176
-
177
- ## Overview
178
- JWT-based authentication service for NestJS applications.
179
-
180
- ## Public API
181
-
182
- ### login(username, password)
183
- ...
184
-
185
- ### validateToken(token)
186
- ...
187
-
188
- ## Dependencies
189
- ...
190
- ```
191
-
192
- ### Frontmatter Fields
193
-
194
- | Field | Meaning |
195
- |-------|---------|
196
- | `title` | Human-readable name of the analyzed module/component |
197
- | `area` | Category: general, backend, frontend, devops, infraestructura |
198
- | `tipo` | Type: componente, api, patron, utilidad, arquitectura, integracion |
199
- | `language` | Programming language detected |
200
- | `resumen` | 1-2 sentences with searchable terms (function names, types) |
201
- | `source_ref` | Original file analyzed |
202
- | `sources_combined` | Array of files combined (code + associated docs) |
203
- | `tags` | Searchable tags (e.g., code/typescript, modulo/auth) |
204
- | `depends_on` | External dependencies or modules |
205
- | `exports` | Public APIs this file exports |
206
- | `files` | List of files analyzed for this note |
207
-
208
- ## How It Works
209
-
210
- ### 1. Discovery
211
-
212
- ```
213
- Scans INPUT_PATH recursively
214
- ↓
215
- Finds ALL files:
216
- Code: .ts, .tsx, .js, .jsx, .py, .go, .rs, .java, .c, .cpp, .kt, .swift
217
- Docs: .md, .txt
218
- ↓
219
- For each code file:
220
- - Look for filename.md (same dir)
221
- - Look for README.md (same dir)
222
- - Look for docs/filename.md
223
- - Look for root README.md
224
- ```
225
-
226
- ### 2. File Type Detection & Routing
227
-
228
- ```
229
- Per file, determine type:
230
-
231
- IF .md or .txt → Route to DocumentationCurator
232
- ↓
233
- Analyzes as: policy, decision, procedure, lesson, standard
234
-
235
- IF .ts, .js, .py, etc → Route to CodeAnalyzer
236
- ↓
237
- 1. Read code (truncate if > 20KB)
238
- 2. Read associated docs (if found)
239
- 3. Send to reasoning model
240
- 4. Extract: APIs, components, patterns, architecture
241
- ```
242
-
243
- ### 3. Analysis
244
-
245
- **Code Analysis (CodeAnalyzer):**
246
- ```
247
- 1. Read code file
248
- 2. Find & read associated .md file (if exists)
249
- 3. Find & read README.md for context
250
- 4. Send ALL THREE to reasoning model
251
- 5. LLM extracts: APIs, types, patterns, dependencies
252
- 6. Returns structured JSON
253
- ```
254
-
255
- **Documentation Analysis (DocumentationCurator):**
256
- ```
257
- 1. Read .md or .txt file
258
- 2. Send to LLM
259
- 3. LLM extracts: policies, decisions, procedures, lessons
260
- 4. Returns structured JSON
261
- ```
262
-
263
- ### 4. Deduplication
264
-
265
- ```
266
- Check if output file already exists in vault
267
- If yes → skip (avoid duplicate notes)
268
- If no → write new markdown file
269
- ```
270
-
271
- ### 5. Manifest Tracking
272
-
273
- ```
274
- On first run:
275
- Creates .codex-manifest.json
276
- Stores hash of EVERY file (code + docs) + analysis status
277
-
278
- On subsequent runs:
279
- Loads manifest
280
- Checks hash of each file
281
- If unchanged → skip analysis
282
- If changed → reanalyze
283
- If new → analyze
284
- ```
285
-
286
- ## Example: Analyze a Framework with Code + Documentation
287
-
288
- ```bash
289
- # Setup
290
- export CURATOR_INPUT_PATH=/Users/john/Projects/my-framework
291
- export CURATOR_OUTPUT_PATH=/Users/john/Vaults/framework-knowledge
292
- export CURATOR_API_KEY=sk-...
293
-
294
- # Project structure:
295
- # my-framework/
296
- # ├── src/
297
- # │ ├── auth.service.ts
298
- # │ ├── auth.service.md ← associated doc
299
- # │ └── payment.ts
300
- # ├── docs/
301
- # │ ├── architecture.md
302
- # │ ├── setup-guide.md
303
- # │ └── contributing.md
304
- # └── README.md
305
-
306
- # First run: analyze EVERYTHING (code + docs)
307
- npm run watch-code
308
- # Output:
309
- # - 100 code files analyzed (extracted APIs, components)
310
- # - 10 doc files analyzed (extracted procedures, decisions)
311
- # - .codex-manifest.json created
312
-
313
- # Developer modifies 3 code files + 1 doc
314
- # Second run: only those 4 files reanalyzed
315
- npm run watch-code
316
- # Output: 4 files analyzed, 106 skipped (96% efficiency!)
317
- ```
318
-
319
- ## MCP Integration
320
-
321
- ### Claude Desktop
322
-
323
- Add to `claude_desktop_config.json`:
324
-
325
- ```json
326
- {
327
- "mcpServers": {
328
- "codex": {
329
- "command": "npx",
330
- "args": ["-y", "@backendkit-labs/curator-codex-agent"],
331
- "env": {
332
- "CURATOR_API_KEY": "sk-...",
333
- "CURATOR_OUTPUT_PATH": "/Users/john/Vaults/code-knowledge"
334
- }
335
- }
336
- }
337
- }
338
- ```
339
-
340
- Then use in Claude:
341
-
342
- > I have a folder at `/path/to/my-project`. Can you analyze it and extract knowledge about the architecture and APIs?
343
-
344
- ### bk-agent
345
-
346
- Add to skills or MCP registry:
347
-
348
- ```yaml
349
- - name: curator-codex
350
- command: npx @backendkit-labs/curator-codex-agent
351
- env:
352
- CURATOR_API_KEY: ${CURATOR_API_KEY}
353
- CURATOR_OUTPUT_PATH: /shared-vault
354
- ```
355
-
356
- ## Scripts
357
-
358
- ```bash
359
- npm run build # Compile TypeScript → dist/
360
- npm run dev # Run analyzer in dev mode (tsx)
361
- npm start # Run MCP server (stdio or HTTP)
362
- npm run watch-code # Analyze code with progress bar
363
- npm run typecheck # Type checking only
364
- ```
365
-
366
- ## Supported Languages
367
-
368
- | Language | Extensions | Example |
369
- |----------|-----------|---------|
370
- | TypeScript | .ts, .tsx | class, interface, type |
371
- | JavaScript | .js, .jsx | function, class, export |
372
- | Python | .py | def, class, async def |
373
- | Go | .go | func, type, interface |
374
- | Rust | .rs | fn, struct, trait, impl |
375
- | Java | .java | class, interface, method |
376
- | C | .c | struct, typedef, void |
377
- | C++ | .cpp | class, namespace, template |
378
- | Kotlin | .kt | class, fun, data class |
379
- | Swift | .swift | class, struct, protocol |
380
-
381
- ## Unified Architecture
382
-
383
- ### curator-agent (Documentation Only)
384
- - Specializes in .md and .txt files only
385
- - Extracts: policies, procedures, decisions, standards
386
- - Use when: processing documentation separately
387
-
388
- ### curator-codex-agent (Unified: Code + Documentation)
389
- - Processes BOTH code files AND .md/.txt files in single pass
390
- - Code Analysis: extracts APIs, components, patterns, architecture
391
- - Documentation Analysis: extracts policies, procedures, decisions, standards
392
- - Automatic File Detection: routes .ts to CodeAnalyzer, .md to DocumentationCurator
393
- - Associated Doc Discovery: finds code.md, README.md, combines with code analysis
394
- - Use when: analyzing projects with mixed code + documentation
395
-
396
- ### Single vs. Dual Curator Workflows
397
-
398
- **Option A: Unified Workflow (Recommended for Projects)**
399
- ```
400
- Project/
401
- ├── src/ ← Code (.ts, .js, .py)
402
- ├── docs/ ← Docs (.md, .txt)
403
- └── README.md
404
-
405
- curator-codex-agent INPUT=/project OUTPUT=/vault
406
- ↓
407
- Processes EVERYTHING in one pass
408
- ↓
409
- vault/
410
- ├── general/
411
- │ ├── authservice-api.md (from src/auth.ts + auth.md)
412
- │ ├── architecture-overview.md (from docs/architecture.md)
413
- │ ├── setup-guide.md (from docs/setup.md)
414
- │ └── ...
415
- ```
416
-
417
- **Option B: Specialized Workflow (Separate Concerns)**
418
- ```
419
- curator-codex-agent INPUT=/project/src OUTPUT=/vault # Code only
420
- curator-agent INPUT=/project/docs OUTPUT=/vault # Docs only
421
- ```
422
-
423
- ## Troubleshooting
424
-
425
- ### No manifest found. Will process ALL X files.
426
-
427
- Normal on first run. Creates `.codex-manifest.json` to track analyzed files.
428
-
429
- ### Files showing ⊘ (unchanged)
430
-
431
- Good! Manifest detected no hash change. Skipped to save LLM costs. Run with file modifications to reanalyze.
432
-
433
- ### Model not found error
434
-
435
- Check `CURATOR_MODEL` is valid for your provider:
436
- - DeepSeek: `deepseek-reasoner`, `deepseek-chat`
437
- - OpenAI: `o3-mini`, `gpt-4o`, `o1`
438
- - Anthropic: `claude-opus-4-8`, `claude-sonnet-4-6`
439
- - Ollama: `llama3.2`, `qwen2.5-coder:7b`
440
-
441
- ### API key rejected
442
-
443
- Verify `CURATOR_API_KEY` is valid. Check provider's authentication method.
444
-
445
- ### Memory/timeout on large files
446
-
447
- Files > 20KB are truncated to 20KB of code. Increase `maxInputChars` in code if needed:
448
-
449
- ```typescript
450
- const analyzer = new CodeAnalyzer({
451
- provider,
452
- vaultPath,
453
- maxInputChars: 40_000, // increase limit
454
- });
455
- ```
456
-
457
- ## Performance
458
-
459
- | Metric | Baseline |
460
- |--------|----------|
461
- | Analysis per file | 3-8 seconds (reasoning model) |
462
- | Skipped files | < 100ms (hash check only) |
463
- | 500 files, 1st run | ~40-60 minutes (depends on model) |
464
- | 500 files, 2nd run (1% changed) | ~2-3 minutes |
465
- | Vault size (500 files analyzed) | ~50-100 MB |
466
-
467
- ## License
468
-
469
- MIT
470
-
471
- ## See Also
472
-
473
- - [curator-agent](../curator-agent) — Documentation curator
474
- - [bk-agent](../bk-agent) — Multi-agent framework
475
- - [knowledge-agent](../knowledge-agent) — RAG knowledge retrieval
@@ -1,57 +0,0 @@
1
- /**
2
- * Curator-Codex API Configuration
3
- * Manages input/output paths and runtime configuration with workspace support
4
- */
5
- export interface ApiConfig {
6
- inputPath?: string;
7
- outputPath: string;
8
- provider: string;
9
- model: string;
10
- baseUrl?: string;
11
- port: number;
12
- }
13
- export interface Workspace {
14
- name: string;
15
- inputPath: string;
16
- outputPath: string;
17
- description?: string;
18
- }
19
- export interface WorkspaceConfig {
20
- workspaces: Workspace[];
21
- lastUsed: string;
22
- version: string;
23
- }
24
- export declare class ConfigManager {
25
- private config;
26
- private workspaces;
27
- private workspaceConfigPath;
28
- private currentWorkspaceName;
29
- constructor(initialConfig?: Partial<ApiConfig>);
30
- private loadWorkspaces;
31
- private saveWorkspaces;
32
- private validate;
33
- getConfig(): ApiConfig;
34
- updateConfig(partial: Partial<ApiConfig>): void;
35
- setInputPath(path: string): void;
36
- setOutputPath(path: string): void;
37
- getInputPath(): string | undefined;
38
- getOutputPath(): string;
39
- switchWorkspace(workspaceName: string): {
40
- success: boolean;
41
- workspace?: Workspace;
42
- error?: string;
43
- };
44
- addWorkspace(workspace: Workspace): void;
45
- removeWorkspace(name: string): {
46
- success: boolean;
47
- error?: string;
48
- };
49
- listWorkspaces(): Workspace[];
50
- getCurrentWorkspace(): string;
51
- getWorkspaceInfo(): {
52
- current: string;
53
- available: Workspace[];
54
- config: ApiConfig;
55
- };
56
- }
57
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/api/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,SAAS;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,aAAa;IACtB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,oBAAoB,CAAqB;gBAErC,aAAa,GAAE,OAAO,CAAC,SAAS,CAAM;IAqBlD,OAAO,CAAC,cAAc;IAiBtB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,QAAQ;IAMhB,SAAS,IAAI,SAAS;IAItB,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,IAAI;IAK/C,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIhC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,YAAY,IAAI,MAAM,GAAG,SAAS;IAgBlC,aAAa,IAAI,MAAM;IAkBvB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IAiBnG,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAKxC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;IASnE,cAAc,IAAI,SAAS,EAAE;IAI7B,mBAAmB,IAAI,MAAM;IAI7B,gBAAgB,IAAI;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,SAAS,EAAE,CAAC;QACvB,MAAM,EAAE,SAAS,CAAC;KACrB;CAOJ"}