Refactor: delete dead code, extract utils, rename files for clarity
- Delete scheduler-mcp.ts (285 lines of dead code, unused) - Extract loadJson/saveJson to utils.ts (generic utilities) - Rename auth.ts → whatsapp-auth.ts (more specific) - Rename scheduler.ts → task-scheduler.ts (more specific) - Update all references in docs and imports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
5
SPEC.md
5
SPEC.md
@@ -98,9 +98,10 @@ nanoclaw/
|
||||
│ ├── index.ts # Main application (WhatsApp + routing)
|
||||
│ ├── config.ts # Configuration constants
|
||||
│ ├── types.ts # TypeScript interfaces
|
||||
│ ├── utils.ts # Generic utility functions
|
||||
│ ├── db.ts # Database initialization and queries
|
||||
│ ├── auth.ts # Standalone WhatsApp authentication
|
||||
│ ├── scheduler.ts # Scheduler loop (runs due tasks)
|
||||
│ ├── whatsapp-auth.ts # Standalone WhatsApp authentication
|
||||
│ ├── task-scheduler.ts # Runs scheduled tasks when due
|
||||
│ └── container-runner.ts # Spawns agents in Apple Containers
|
||||
│
|
||||
├── container/
|
||||
|
||||
Reference in New Issue
Block a user