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
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,6 +215,7 @@ The tester includes automatic cleanup with shutdown handlers to properly close M
215
215
-**Rate Limiting** - Built-in rate limiting for API usage control
216
216
-**Metrics & Observability** - Comprehensive runtime metrics for monitoring and cost tracking
217
217
-**Enhanced Visual Output** - UTF-8 box-drawing characters, ANSI color codes, and emoji for rich terminal displays (`useascii=true`)
218
+
-**Interactive Maps** - Ask the agent to return Leaflet map snippets for geographic prompts, rendered directly in the console transcript and web UI (`usemaps=true`)
218
219
219
220
## Documentation
220
221
@@ -265,6 +266,7 @@ Mini-A ships with complementary components:
-**`web`** – Browser UI with tool registration (`usetools=true`).
182
-
-**`webfull`** – Web UI with history, attachments, diagrams, charts, ASCII sketches, and planning enabled (`usetools=true usediagrams=true usecharts=true useascii=true usehistory=true useattach=true historykeep=true useplanning=true`).
182
+
-**`webfull`** – Web UI with history, attachments, diagrams, charts, and ASCII sketchesenabled (`usetools=true usediagrams=true usecharts=true useascii=true usehistory=true useattach=true historykeep=true useplanning=true`). Add `usemaps=true` if you also want interactive map guidance in this preset.
183
183
184
184
### Creating Custom Presets
185
185
@@ -254,7 +254,7 @@ Optional flags when starting the server:
254
254
255
255
-`showexecs=true` to show executed commands in the interaction stream
256
256
-`logpromptheaders=origin,referer` to log selected incoming headers for debugging
257
-
-`usediagrams=false` / `usecharts=false` / `useascii=false` to disable Mermaid, Chart.js, or ASCII sketch guidance when running headless
257
+
-`usediagrams=false` / `usecharts=false` / `useascii=false`/ `usemaps=false`to disable Mermaid, Chart.js, ASCII sketch, or Leaflet map guidance when running headless
258
258
-`usehistory=true` to expose the history side panel and persist conversations on disk
259
259
-`historypath=/tmp/mini-a-history` / `historyretention=600` / `historykeep=true` to manage history storage (see comments in `mini-a-web.yaml`)
260
260
-`historys3bucket=my-bucket historys3prefix=sessions/` to mirror history JSON files to S3 (supports `historys3url`, `historys3accesskey`, `historys3secret`, `historys3region`, `historys3useversion1`, `historys3ignorecertcheck`). History is uploaded at optimized checkpoints: immediately after user prompts and when final answers are provided, rather than on every interaction event
@@ -590,6 +590,7 @@ Only when every stage returns an empty list (or errors) does Mini-A log the issu
590
590
-**ANSI color codes**: Semantic highlighting for errors (red), success (green), warnings (yellow), info (blue/cyan), with support for bold, underline, backgrounds, and combined styles. Colors are applied outside markdown code blocks for proper terminal rendering
591
591
-**Markdown tables**: Preferred format for tabular data with colored cell content for enhanced readability
592
592
-**Progress indicators**: Block characters (█▓▒░), fractions (▏▎▍▌▋▊▉), spinners (⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏), and percentage displays with color gradients
593
+
-**`usemaps`** (boolean, default: false): Prime the model to emit ```leaflet``` blocks that describe interactive maps (center coordinates, zoom, markers, layers). The console transcript preserves the fenced JSON, and the web UI auto-renders the configuration with Leaflet tiles, themed popups, and transparent markers.
593
594
594
595
#### Libraries and Extensions
595
596
-**`libs`** (string): Comma-separated list of additional OpenAF libraries to load
@@ -607,7 +608,7 @@ Only when every stage returns an empty list (or errors) does Mini-A log the issu
607
608
-`shellutils` – Adds the Mini File Tool helpers as an MCP (`useutils=true usetools=true`) exposing `init`, `filesystemQuery`, and `filesystemModify` actions.
608
609
-`chatbot` – Switches to conversational mode (`chatbotmode=true`).
609
610
-`web` – Optimizes for the browser UI with MCP tools registered (`usetools=true`).
610
-
-`webfull` – Turns on diagrams, charts, ASCII sketches, attachments, history retention, and planning for the web UI (`usetools=true usediagrams=true usecharts=true useascii=true usehistory=true useattach=true historykeep=true useplanning=true`).
611
+
-`webfull` – Turns on diagrams, charts, ASCII sketches, attachments, history retention, and planning for the web UI (`usetools=true usediagrams=true usecharts=true useascii=true usehistory=true useattach=true historykeep=true useplanning=true`). Add `usemaps=true` when you also want interactive maps baked into this preset.
611
612
612
613
Extend or override these presets by editing the YAML file—Mini-A reloads it on each run.
"- Default to including a diagram, chart, or UTF-8/ANSI visual whenever structure, flow, hierarchy, metrics, or comparisons are involved.\n"+
492
494
"- Always pair the visual with a short caption (1-2 sentences) summarizing the insight.\n"+
493
-
"- In your explanatory text and captions, refer only to the visual type (e.g., 'diagram', 'chart', 'table') without mentioning the technical implementation (Mermaid, Chart.js, ANSI codes, etc.)."
495
+
"- In your explanatory text and captions, refer only to the visual type (e.g., 'diagram', 'chart', 'table', 'map') without mentioning the technical implementation (Mermaid, Chart.js, Leaflet, ANSI codes, etc.)."
checklist+="\n"+nextIndex+". When visuals are optional but helpful -> ANSI-enhanced ASCII table or emoticon map as fallback."
604
645
nextIndex++
605
646
}
647
+
if(useMaps){
648
+
checklist+="\n"+nextIndex+". Geographic data or locations -> interactive map with markers and layers."
649
+
nextIndex++
650
+
checklist+="\n"+nextIndex+". Spatial relationships or coverage areas -> map with circles, polygons, or polylines."
651
+
nextIndex++
652
+
}
606
653
checklist+="\n\nIf no visual type above applies to the user's request (e.g., purely narrative or conversational queries), you may provide text-only output without explanation."
0 commit comments