Initial catalog maker baseline
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Catalog Maker by Magic AI
|
||||
|
||||
Node.js replacement for the Excel macro workflow behind the `Catalog maker - 20` button.
|
||||
|
||||
## Current Goal
|
||||
|
||||
Replace the Excel click workflow with a controlled Node.js pipeline:
|
||||
|
||||
1. Read local configuration from `config/local.json`.
|
||||
2. Load or identify the source workbook.
|
||||
3. Run catalog-maker steps in a safe order.
|
||||
4. Default to dry-run mode.
|
||||
5. Read from the database only. Database writes are forbidden.
|
||||
|
||||
## First Run
|
||||
|
||||
```powershell
|
||||
copy config/local.example.json config/local.json
|
||||
npm run catalog:dry-run
|
||||
```
|
||||
|
||||
## Safety Rules
|
||||
|
||||
- Local secrets stay in `config/local.json`.
|
||||
- `config/local.json` and Excel files are ignored by git.
|
||||
- The app starts in dry-run mode.
|
||||
- Rule #1: the database is read-only for this project.
|
||||
- SQL guards must reject write statements before execution.
|
||||
|
||||
## Excel Entry Point Found
|
||||
|
||||
- Sheet: `endpoint`
|
||||
- Button caption: `Catalog maker - 20`
|
||||
- Internal control name: `CommandButton20`
|
||||
- Approximate location: `A21:C22`
|
||||
- ActiveX relation: `xl/activeX/activeX72.xml`
|
||||
|
||||
The exact VBA click handler still needs to be mapped before we implement real catalog generation logic.
|
||||
Reference in New Issue
Block a user