You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden per review: HTML-escape all model-derived strings (no innerHTML XSS), strict apply_audit validation (score-grade match, tag whitelist, clean/findings rules), add tests/ + CI, tone down README + honest 'what it is/isn't', SKILL.md capability/fallback mapping
|**Independent sub-tasks** (one auditor/fixer per module) |`Agent` tool, many in parallel | their subagent/task tool | Audit modules **one at a time in the main thread** — still one module per pass against the rubric, never batch-scoring. Slower, fully valid. |
122
+
|**Structured result** (the audit JSON) |`schema` on the Agent call | tool-specific schema, or just ask for JSON | Ask the sub-task to return **only** the JSON object; `apply_audit.py` validates it and rejects malformed/inconsistent results — no schema feature required. |
123
+
|**Ask the user** (preferences on `init`) |`AskUserQuestion`| tool's prompt UI | Ask in plain text, or apply defaults (`lang=en`, output `.codemap/`, title = repo folder name) and tell the user how to change them in `.codemap/config.json`. |
124
+
125
+
The non-negotiables (independent per-module audit, deterministic scripts, the four-role
126
+
fix gate) hold on every platform; the table only changes *how* you spawn the work.
127
+
114
128
---
115
129
116
130
## Command: `init` (first build)
117
131
118
132
Use when no `modules.json` exists yet. (Also accepts `generate` as an alias.)
119
133
120
-
0.**Ask the user for preferences first** (use the AskUserQuestion tool), then save them to
121
-
`<project>/.codemap/config.json`:
134
+
0.**Ask the user for preferences first** (use `AskUserQuestion` if available, else just ask
135
+
in plain text; or apply the defaults from *Capabilities & platform mapping*), then save
136
+
them to `<project>/.codemap/config.json`:
122
137
-**UI language** — `en` or `zh` (localizes the map chrome + report; module names are
123
138
never translated). → `meta.lang`.
124
139
-**Output location** — where the HTML/MD go. Default `.codemap/` (kept with the tool
0 commit comments