ai-advisory-board 0.9.0 → 0.10.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.
- package/CHANGELOG.md +9 -0
- package/dist/bin/aab.js +13 -2
- package/dist/bin/aab.js.map +1 -1
- package/gui/app.js +8 -1
- package/gui/style.css +28 -1
- package/gui/wikilinks.js +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# CHANGELOG — AI Advisory Board CLI
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f619c1a: Decision Coach: web-grounded facts + rendered-markdown chat.
|
|
8
|
+
|
|
9
|
+
- **The coach can now search the web.** `coachReply` spawns with `allowedTools: ['WebSearch', 'WebFetch']` (+ `strictMcpConfig: true`) instead of `[]`, and the hard `maxTurns: 1` cap is removed — a 1-turn cap aborted the moment the coach took a search turn before answering (same lesson as the member/sparring calls). The per-call budget and wall-clock timeout remain the guardrails. The system prompt gained a **"GROUND FACTS IN REALITY"** section instructing the coach to verify time-sensitive/checkable facts (a company's public-vs-private status, prices, valuations, recent events, regulations) via the web and cite sources, rather than asserting them from a stale training cutoff. Fixes the coach calling a now-public company "private".
|
|
10
|
+
- **The web chat renders markdown.** Assistant coach bubbles now run through `renderWikiBody` into `innerHTML` (the same lightweight renderer member responses use) instead of `textContent`, so headings/bold/lists/blockquotes render instead of showing raw `##`/`**` source. User turns stay plain text. The renderer also learned **horizontal rules** (`---` → `<hr>`) and **markdown links** (`[text](url)` → clickable `<a target="_blank">`, restricted to `http(s)`/`mailto`/`#` schemes), which improves member responses too since they share the renderer.
|
|
11
|
+
|
|
3
12
|
## 0.9.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/bin/aab.js
CHANGED
|
@@ -11215,6 +11215,9 @@ function buildDecisionCoachSystemPrompt(principles) {
|
|
|
11215
11215
|
## YOUR ROLE
|
|
11216
11216
|
You are a thoughtful, direct advisor who helps people think through decisions using their own stated principles. You don't make decisions for them - you help them discover what their principles suggest.
|
|
11217
11217
|
|
|
11218
|
+
## GROUND FACTS IN REALITY (WEB SEARCH)
|
|
11219
|
+
You have **WebSearch** and **WebFetch**. The user's "Embrace Reality" instinct applies to you too: never assert a time-sensitive or checkable fact from memory. Before stating anything about a company's status (public/private, listed/unlisted), current prices, valuations, recent events, regulations, or "as of my training" facts, **search the web first and rely on what you find**. Your training data has a cutoff and goes stale \u2014 a company that was private when you trained may have since IPO'd. When you use a source, cite it inline (e.g. the URL or outlet). If you genuinely cannot verify something, say so plainly rather than guessing.
|
|
11220
|
+
|
|
11218
11221
|
## YOUR APPROACH
|
|
11219
11222
|
1. **Identify Relevant Principles**: When the user describes a situation, identify which of their principles are most relevant. Quote them directly.
|
|
11220
11223
|
|
|
@@ -11310,8 +11313,16 @@ Respond now as the Decision Coach. Use markdown. Reference principles by their *
|
|
|
11310
11313
|
const result = await runClaude({
|
|
11311
11314
|
prompt: fullPrompt,
|
|
11312
11315
|
model,
|
|
11313
|
-
|
|
11314
|
-
|
|
11316
|
+
// The coach can ground time-sensitive facts (is a company public? current
|
|
11317
|
+
// price? recent events?) instead of asserting them from stale training
|
|
11318
|
+
// data. We deliberately do NOT set maxTurns — a low tool-turn cap produces
|
|
11319
|
+
// spurious `max_turns` failures the moment the model takes a search turn
|
|
11320
|
+
// before answering (same lesson as emit-member-agent.ts). The per-call
|
|
11321
|
+
// budget + wall-clock timeout are the real guardrails.
|
|
11322
|
+
allowedTools: ["WebSearch", "WebFetch"],
|
|
11323
|
+
// Only WebSearch/WebFetch are needed — skip the (slow / OAuth-stalling)
|
|
11324
|
+
// startup of the user's configured MCP servers.
|
|
11325
|
+
strictMcpConfig: true,
|
|
11315
11326
|
timeoutMs: opts.timeoutMs ?? 5 * 6e4,
|
|
11316
11327
|
signal: opts.signal,
|
|
11317
11328
|
onEvent: opts.onEvent,
|