Repository navigation
Expand file tree
/
Copy paththreecode.html
More file actions
101 lines (90 loc) · 59.6 KB
/
Copy paththreecode.html
File metadata and controls
101 lines (90 loc) · 59.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>threecode</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.2.10">
<!-- JS -->
<script type="text/javascript" src="dochack.js?v=2.2.10"></script>
</head>
<body>
<div class="document" id="documentId">
<input type="checkbox" id="nav-toggle" hidden>
<label for="nav-toggle" id="nav-burger">☰</label>
<label for="nav-toggle" id="nav-overlay"></label>
<div class="container">
<h1 class="title">threecode</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme: </label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<a class="reference reference-toplevel" href="#19" id="69">Exports</a>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"><p>Entry point and outer REPL loop.</p>
<p><tt class="docutils literal"><span class="pre"><span class="Identifier">main</span></span></tt> parses CLI args, sets up the session, and runs the interactive loop. <tt class="docutils literal"><span class="pre"><span class="Identifier">turns</span><span class="Operator">.</span><span class="Identifier">runTurns</span></span></tt> is the inner driver: it calls the model, dispatches tool calls, updates the session, and handles compaction - repeating until the model emits no tool calls.</p>
<p>Module graph overview::</p>
<p>threecode (entry) ├── turns turn lifecycle + API/tool orchestration ├── api HTTP + SSE streaming + spinner ├── actions tool_call JSON → Action → execute ├── compact supersede elision + LLM summarization ├── session .3log persistence (save + load) ├── display terminal rendering (markdown, token bar, replays) ├── ui REPL :commands + provider wizard ├── config config file parse + profile resolution ├── prompts KnownGoodCombos + per-family (prompt, tools) ├── shell shell command parsing for the read cache ├── web native web search + URL fetch ├── update background auto-update ├── fatprompt volatile prompt/token/ticker state and frame bytes ├── util string utils, ANSI palette, markdown helpers ├── types shared types + globals └── minline readline-style input</p>
</p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="threecode/types.html">threecode/types</a>, <a class="reference external" href="threecode/util.html">threecode/util</a>, <a class="reference external" href="threecode/prompts.html">threecode/prompts</a>, <a class="reference external" href="threecode/shell.html">threecode/shell</a>, <a class="reference external" href="threecode/session.html">threecode/session</a>, <a class="reference external" href="threecode/compact.html">threecode/compact</a>, <a class="reference external" href="threecode/config.html">threecode/config</a>, <a class="reference external" href="threecode/actions.html">threecode/actions</a>, <a class="reference external" href="threecode/api.html">threecode/api</a>, <a class="reference external" href="threecode/display.html">threecode/display</a>, <a class="reference external" href="threecode/ui.html">threecode/ui</a>, <a class="reference external" href="threecode/update.html">threecode/update</a>, <a class="reference external" href="threecode/fatprompt.html">threecode/fatprompt</a>, <a class="reference external" href="threecode/toolstream.html">threecode/toolstream</a>, <a class="reference external" href="threecode/turns.html">threecode/turns</a>, <a class="reference external" href="threecode/transcript.html">threecode/transcript</a>, <a class="reference external" href="threecode/minline.html">threecode/minline</a>
</dl>
</div>
<div class="section" id="19">
<h1><a class="toc-backref" href="#19">Exports</a></h1>
<dl class="item">
<a href="threecode/types.html#ApiError"><span class="Identifier">ApiError</span></a>, <a href="threecode/types.html#ToolRecord"><span class="Identifier">ToolRecord</span></a>, <a href="threecode/types.html#Action"><span class="Identifier">Action</span></a>, <a href="threecode/types.html#ExitConfig"><span class="Identifier">ExitConfig</span></a>, <a href="threecode/types.html#ReadCache"><span class="Identifier">ReadCache</span></a>, <a href="threecode/types.html#debugEnabled"><span class="Identifier">debugEnabled</span></a>, <a href="threecode/types.html#Usage"><span class="Identifier">Usage</span></a>, <a href="threecode/types.html#Profile"><span class="Identifier">Profile</span></a>, <a href="threecode/types.html#MaxBashTimeout"><span class="Identifier">MaxBashTimeout</span></a>, <a href="threecode/types.html#ExitUsage"><span class="Identifier">ExitUsage</span></a>, <a href="threecode/types.html#experimentalEnabled"><span class="Identifier">experimentalEnabled</span></a>, <a href="threecode/types.html#ActionKind"><span class="Identifier">ActionKind</span></a>, <a href="threecode/types.html#die,string,int"><span class="Identifier">die</span></a>, <a href="threecode/types.html#PlanItem"><span class="Identifier">PlanItem</span></a>, <a href="threecode/types.html#DefaultBashTimeout"><span class="Identifier">DefaultBashTimeout</span></a>, <a href="threecode/types.html#InputState"><span class="Identifier">InputState</span></a>, <a href="threecode/types.html#Session"><span class="Identifier">Session</span></a>, <a href="threecode/types.html#bashTimeoutSecs,int"><span class="Identifier">bashTimeoutSecs</span></a>, <a href="threecode/types.html#streamingEnabled"><span class="Identifier">streamingEnabled</span></a>, <a href="threecode/types.html#ExitApi"><span class="Identifier">ExitApi</span></a>, <a href="threecode/types.html#ParseIssue"><span class="Identifier">ParseIssue</span></a>, <a href="threecode/util.html#looksLikePath,string"><span class="Identifier">looksLikePath</span></a>, <a href="threecode/util.html#BrightWhiteFg"><span class="Identifier">BrightWhiteFg</span></a>, <a href="threecode/util.html#userConfigRoot"><span class="Identifier">userConfigRoot</span></a>, <a href="threecode/util.html#sanitizeUtf8,string"><span class="Identifier">sanitizeUtf8</span></a>, <a href="threecode/util.html#bundledCaFile"><span class="Identifier">bundledCaFile</span></a>, <a href="threecode/util.html#isMdFenceLine,string"><span class="Identifier">isMdFenceLine</span></a>, <a href="threecode/util.html#debugOut,string,string"><span class="Identifier">debugOut</span></a>, <a href="threecode/util.html#levenshteinCapped,string,string,int"><span class="Identifier">levenshteinCapped</span></a>, <a href="threecode/util.html#CyanFg"><span class="Identifier">CyanFg</span></a>, <a href="threecode/util.html#debugOut,string"><span class="Identifier">debugOut</span></a>, <a href="threecode/util.html#resolvePath,string"><span class="Identifier">resolvePath</span></a>, <a href="threecode/util.html#BlueFg"><span class="Identifier">BlueFg</span></a>, <a href="threecode/util.html#applyInlineMd,string"><span class="Identifier">applyInlineMd</span></a>, <a href="threecode/util.html#isMdSepRow,string"><span class="Identifier">isMdSepRow</span></a>, <a href="threecode/util.html#GreyFg"><span class="Identifier">GreyFg</span></a>, <a href="threecode/util.html#utf8ByteCut,string,int"><span class="Identifier">utf8ByteCut</span></a>, <a href="threecode/util.html#charWrapAnsi,string,int"><span class="Identifier">charWrapAnsi</span></a>, <a href="threecode/util.html#humanTokens,int"><span class="Identifier">humanTokens</span></a>, <a href="threecode/util.html#OffWhiteFg"><span class="Identifier">OffWhiteFg</span></a>, <a href="threecode/util.html#isBinaryContent,string"><span class="Identifier">isBinaryContent</span></a>, <a href="threecode/util.html#wrapAnsi,string,int"><span class="Identifier">wrapAnsi</span></a>, <a href="threecode/util.html#userDataRoot"><span class="Identifier">userDataRoot</span></a>, <a href="threecode/util.html#replaceFirst,string,string,string"><span class="Identifier">replaceFirst</span></a>, <a href="threecode/util.html#safeCwd"><span class="Identifier">safeCwd</span></a>, <a href="threecode/util.html#clipMiddle,string,int,int"><span class="Identifier">clipMiddle</span></a>, <a href="threecode/util.html#renderMdTable,seq[string],string,int"><span class="Identifier">renderMdTable</span></a>, <a href="threecode/util.html#tokenSlot,string,int"><span class="Identifier">tokenSlot</span></a>, <a href="threecode/util.html#BoldOn"><span class="Identifier">BoldOn</span></a>, <a href="threecode/util.html#collapseHome,string"><span class="Identifier">collapseHome</span></a>, <a href="threecode/util.html#isMdTableRow,string"><span class="Identifier">isMdTableRow</span></a>, <a href="threecode/util.html#Reset"><span class="Identifier">Reset</span></a>, <a href="threecode/util.html#levenshtein,string,string"><span class="Identifier">levenshtein</span></a>, <a href="threecode/util.html#bundledSslContext"><span class="Identifier">bundledSslContext</span></a>, <a href="threecode/util.html#utf8ByteCutEnd,string,int"><span class="Identifier">utf8ByteCutEnd</span></a>, <a href="threecode/util.html#detectMdHeader,string"><span class="Identifier">detectMdHeader</span></a>, <a href="threecode/util.html#humanBytes,int"><span class="Identifier">humanBytes</span></a>, <a href="threecode/util.html#stripPreamble,string"><span class="Identifier">stripPreamble</span></a>, <a href="threecode/util.html#visibleWidth,string"><span class="Identifier">visibleWidth</span></a>, <a href="threecode/prompts.html#HelpText"><span class="Identifier">HelpText</span></a>, <a href="threecode/prompts.html#discoverSkills"><span class="Identifier">discoverSkills</span></a>, <a href="threecode/prompts.html#xmlToolCallsFallback,Profile"><span class="Identifier">xmlToolCallsFallback</span></a>, <a href="threecode/prompts.html#Version"><span class="Identifier">Version</span></a>, <a href="threecode/prompts.html#KnownGoodCombo"><span class="Identifier">KnownGoodCombo</span></a>, <a href="threecode/prompts.html#knownGoodReasoning,string,string"><span class="Identifier">knownGoodReasoning</span></a>, <a href="threecode/prompts.html#knownGoodReasonings,string,string"><span class="Identifier">knownGoodReasonings</span></a>, <a href="threecode/prompts.html#refreshSystemPrompt,JsonNode,Profile"><span class="Identifier">refreshSystemPrompt</span></a>, <a href="threecode/prompts.html#skillsDirs"><span class="Identifier">skillsDirs</span></a>, <a href="threecode/prompts.html#findSystemPromptOverride,string"><span class="Identifier">findSystemPromptOverride</span></a>, <a href="threecode/prompts.html#knownGoodContextWindow,string,string"><span class="Identifier">knownGoodContextWindow</span></a>, <a href="threecode/prompts.html#setup,Profile"><span class="Identifier">setup</span></a>, <a href="threecode/prompts.html#defaultReasoningsFor,string,string,string"><span class="Identifier">defaultReasoningsFor</span></a>, <a href="threecode/prompts.html#buildCredit,Profile"><span class="Identifier">buildCredit</span></a>, <a href="threecode/prompts.html#GenerationDefaults"><span class="Identifier">GenerationDefaults</span></a>, <a href="threecode/prompts.html#knownGoodFamily,string,string"><span class="Identifier">knownGoodFamily</span></a>, <a href="threecode/prompts.html#knownGoodTags,string,string"><span class="Identifier">knownGoodTags</span></a>, <a href="threecode/prompts.html#DefaultSystemPrompt"><span class="Identifier">DefaultSystemPrompt</span></a>, <a href="threecode/prompts.html#materializeBuiltinSkills"><span class="Identifier">materializeBuiltinSkills</span></a>, <a href="threecode/prompts.html#reasoningSupported,string"><span class="Identifier">reasoningSupported</span></a>, <a href="threecode/prompts.html#KnownGoodCombos"><span class="Identifier">KnownGoodCombos</span></a>, <a href="threecode/prompts.html#buildSystemPrompt,Profile"><span class="Identifier">buildSystemPrompt</span></a>, <a href="threecode/prompts.html#knownGoodGeneration,string,string"><span class="Identifier">knownGoodGeneration</span></a>, <a href="threecode/prompts.html#ConfigExample"><span class="Identifier">ConfigExample</span></a>, <a href="threecode/prompts.html#builtinSkillsDir"><span class="Identifier">builtinSkillsDir</span></a>, <a href="threecode/prompts.html#BuiltinSkills"><span class="Identifier">BuiltinSkills</span></a>, <a href="threecode/prompts.html#ReasoningLevels"><span class="Identifier">ReasoningLevels</span></a>, <a href="threecode/prompts.html#isKnownGood,Profile"><span class="Identifier">isKnownGood</span></a>, <a href="threecode/prompts.html#knownGoodContextWindow,Profile"><span class="Identifier">knownGoodContextWindow</span></a>, <a href="threecode/prompts.html#versionSuffix"><span class="Identifier">versionSuffix</span></a>, <a href="threecode/prompts.html#knownGoodGeneration,Profile"><span class="Identifier">knownGoodGeneration</span></a>, <a href="threecode/prompts.html#knownGoodFamily,Profile"><span class="Identifier">knownGoodFamily</span></a>, <a href="threecode/shell.html#bashMutationPath,string"><span class="Identifier">bashMutationPath</span></a>, <a href="threecode/shell.html#splitStatements,string"><span class="Identifier">splitStatements</span></a>, <a href="threecode/shell.html#bashReadPath,string"><span class="Identifier">bashReadPath</span></a>, <a href="threecode/shell.html#shellTokens,string"><span class="Identifier">shellTokens</span></a>, <a href="threecode/session.html#releaseSessionLock,string"><span class="Identifier">releaseSessionLock</span></a>, <a href="threecode/session.html#SessionExt"><span class="Identifier">SessionExt</span></a>, <a href="threecode/session.html#listSessionPaths"><span class="Identifier">listSessionPaths</span></a>, <a href="threecode/session.html#appendIndexAt,string,string,string"><span class="Identifier">appendIndexAt</span></a>, <a href="threecode/session.html#pendingDraftPathFor,string"><span class="Identifier">pendingDraftPathFor</span></a>, <a href="threecode/session.html#releaseActiveSessionLock"><span class="Identifier">releaseActiveSessionLock</span></a>, <a href="threecode/session.html#loadSessionFile,string"><span class="Identifier">loadSessionFile</span></a>, <a href="threecode/session.html#firstUserMessage,JsonNode"><span class="Identifier">firstUserMessage</span></a>, <a href="threecode/session.html#clearDraft,Session"><span class="Identifier">clearDraft</span></a>, <a href="threecode/session.html#indexIdsAt,string,string"><span class="Identifier">indexIdsAt</span></a>, <a href="threecode/session.html#appendSessionIndex,string,string"><span class="Identifier">appendSessionIndex</span></a>, <a href="threecode/session.html#draftPathFor,string"><span class="Identifier">draftPathFor</span></a>, <a href="threecode/session.html#usageFromJson,JsonNode"><span class="Identifier">usageFromJson</span></a>, <a href="threecode/session.html#listSessionPathsForCwd,string"><span class="Identifier">listSessionPathsForCwd</span></a>, <a href="threecode/session.html#SessionPreview"><span class="Identifier">SessionPreview</span></a>, <a href="threecode/session.html#currentDraftPath,Session"><span class="Identifier">currentDraftPath</span></a>, <a href="threecode/session.html#sessionDir"><span class="Identifier">sessionDir</span></a>, <a href="threecode/session.html#newSessionPath"><span class="Identifier">newSessionPath</span></a>, <a href="threecode/session.html#sessionLockDir"><span class="Identifier">sessionLockDir</span></a>, <a href="threecode/session.html#sessionIdFromPath,string"><span class="Identifier">sessionIdFromPath</span></a>, <a href="threecode/session.html#loadDraft,string"><span class="Identifier">loadDraft</span></a>, <a href="threecode/session.html#indexPathAt,string,string"><span class="Identifier">indexPathAt</span></a>, <a href="threecode/session.html#historyFile"><span class="Identifier">historyFile</span></a>, <a href="threecode/session.html#saveSession,Session,JsonNode"><span class="Identifier">saveSession</span></a>, <a href="threecode/session.html#mangleCwd,string"><span class="Identifier">mangleCwd</span></a>, <a href="threecode/session.html#previewSession,string"><span class="Identifier">previewSession</span></a>, <a href="threecode/session.html#sessionPathIndexDir"><span class="Identifier">sessionPathIndexDir</span></a>, <a href="threecode/session.html#loadPendingDraft,string"><span class="Identifier">loadPendingDraft</span></a>, <a href="threecode/session.html#draftDir"><span class="Identifier">draftDir</span></a>, <a href="threecode/session.html#SessionLocked"><span class="Identifier">SessionLocked</span></a>, <a href="threecode/session.html#acquireSessionLock,string"><span class="Identifier">acquireSessionLock</span></a>, <a href="threecode/session.html#sessionLockPathFor,string"><span class="Identifier">sessionLockPathFor</span></a>, <a href="threecode/session.html#clearPendingDraft,string"><span class="Identifier">clearPendingDraft</span></a>, <a href="threecode/session.html#pendingDraftDir"><span class="Identifier">pendingDraftDir</span></a>, <a href="threecode/session.html#resolveSessionPath,string,string"><span class="Identifier">resolveSessionPath</span></a>, <a href="threecode/session.html#activeLockPath"><span class="Identifier">activeLockPath</span></a>, <a href="threecode/session.html#saveDraft,Session,string"><span class="Identifier">saveDraft</span></a>, <a href="threecode/session.html#renderSession,Session,JsonNode"><span class="Identifier">renderSession</span></a>, <a href="threecode/compact.html#summarizeHistory,JsonNode,Profile"><span class="Identifier">summarizeHistory</span></a>, <a href="threecode/compact.html#SummarizeThresholdFrac"><span class="Identifier">SummarizeThresholdFrac</span></a>, <a href="threecode/compact.html#SummarizeKeepRecent"><span class="Identifier">SummarizeKeepRecent</span></a>, <a href="threecode/compact.html#SummarizerSystemPrompt"><span class="Identifier">SummarizerSystemPrompt</span></a>, <a href="threecode/compact.html#decideContextAction,int,int,int"><span class="Identifier">decideContextAction</span></a>, <a href="threecode/compact.html#contextWindowFor,Profile"><span class="Identifier">contextWindowFor</span></a>, <a href="threecode/compact.html#applySummary,JsonNode,string"><span class="Identifier">applySummary</span></a>, <a href="threecode/compact.html#ContextAction"><span class="Identifier">ContextAction</span></a>, <a href="threecode/compact.html#SummaryPrefix"><span class="Identifier">SummaryPrefix</span></a>, <a href="threecode/compact.html#contextWindowFor,string"><span class="Identifier">contextWindowFor</span></a>, <a href="threecode/compact.html#SummarizeMaxTokens"><span class="Identifier">SummarizeMaxTokens</span></a>, <a href="threecode/config.html#activeSearchUrl"><span class="Identifier">activeSearchUrl</span></a>, <a href="threecode/config.html#resolveReasoning,ProviderRec,Profile"><span class="Identifier">resolveReasoning</span></a>, <a href="threecode/config.html#explainExperimentalGate,Profile"><span class="Identifier">explainExperimentalGate</span></a>, <a href="threecode/config.html#activeProviders"><span class="Identifier">activeProviders</span></a>, <a href="threecode/config.html#notifyEnabled"><span class="Identifier">notifyEnabled</span></a>, <a href="threecode/config.html#inferProvider,string"><span class="Identifier">inferProvider</span></a>, <a href="threecode/config.html#splitModels,string"><span class="Identifier">splitModels</span></a>, <a href="threecode/config.html#hasKnownGoodModel,ProviderRec"><span class="Identifier">hasKnownGoodModel</span></a>, <a href="threecode/config.html#activeCurrent"><span class="Identifier">activeCurrent</span></a>, <a href="threecode/config.html#resolveFamily,ProviderRec,Profile"><span class="Identifier">resolveFamily</span></a>, <a href="threecode/config.html#bashPathOverride"><span class="Identifier">bashPathOverride</span></a>, <a href="threecode/config.html#firstModel,ProviderRec"><span class="Identifier">firstModel</span></a>, <a href="threecode/config.html#loadStateOrEmpty,string"><span class="Identifier">loadStateOrEmpty</span></a>, <a href="threecode/config.html#shortToFull,seq[string]"><span class="Identifier">shortToFull</span></a>, <a href="threecode/config.html#KeyPrefixCatalog"><span class="Identifier">KeyPrefixCatalog</span></a>, <a href="threecode/config.html#parseConfigFile,string"><span class="Identifier">parseConfigFile</span></a>, <a href="threecode/config.html#catalogUrl,string"><span class="Identifier">catalogUrl</span></a>, <a href="threecode/config.html#buildProfile,string,seq[ProviderRec],string"><span class="Identifier">buildProfile</span></a>, <a href="threecode/config.html#shortModel,string"><span class="Identifier">shortModel</span></a>, <a href="threecode/config.html#writeConfigFile,string,string,seq[ProviderRec]"><span class="Identifier">writeConfigFile</span></a>, <a href="threecode/config.html#firstKnownGoodCombo,seq[ProviderRec]"><span class="Identifier">firstKnownGoodCombo</span></a>, <a href="threecode/config.html#ProviderCatalog"><span class="Identifier">ProviderCatalog</span></a>, <a href="threecode/config.html#configPath"><span class="Identifier">configPath</span></a>, <a href="threecode/config.html#providerForProfile,Profile"><span class="Identifier">providerForProfile</span></a>, <a href="threecode/config.html#orderedModels,ProviderRec"><span class="Identifier">orderedModels</span></a>, <a href="threecode/config.html#gateExperimental,Profile"><span class="Identifier">gateExperimental</span></a>, <a href="threecode/config.html#formatModels,seq[string]"><span class="Identifier">formatModels</span></a>, <a href="threecode/config.html#curatedFor,string"><span class="Identifier">curatedFor</span></a>, <a href="threecode/config.html#findModel,ProviderRec,string"><span class="Identifier">findModel</span></a>, <a href="threecode/config.html#ProviderRec"><span class="Identifier">ProviderRec</span></a>, <a href="threecode/config.html#defaultNameFromUrl,string"><span class="Identifier">defaultNameFromUrl</span></a>, <a href="threecode/config.html#loadProfile,string"><span class="Identifier">loadProfile</span></a>, <a href="threecode/config.html#currentProvider"><span class="Identifier">currentProvider</span></a>, <a href="threecode/config.html#availableReasonings,ProviderRec,string,string"><span class="Identifier">availableReasonings</span></a>, <a href="threecode/actions.html#runActionStreaming,Action,ReadCache,proc(string)"><span class="Identifier">runActionStreaming</span></a>, <a href="threecode/actions.html#stripActions,string"><span class="Identifier">stripActions</span></a>, <a href="threecode/actions.html#previewCmd,string,int"><span class="Identifier">previewCmd</span></a>, <a href="threecode/actions.html#bannerFor,Action"><span class="Identifier">bannerFor</span></a>, <a href="threecode/actions.html#computeDiff,string,string,string"><span class="Identifier">computeDiff</span></a>, <a href="threecode/actions.html#runAction,Action,ReadCache"><span class="Identifier">runAction</span></a>, <a href="threecode/actions.html#toolCallToAction,string,string,JsonNode"><span class="Identifier">toolCallToAction</span></a>, <a href="threecode/actions.html#parseActions,string"><span class="Identifier">parseActions</span></a>, <a href="threecode/actions.html#parseActionsChecked,string"><span class="Identifier">parseActionsChecked</span></a>, <a href="threecode/actions.html#fileSig,string"><span class="Identifier">fileSig</span></a>, <a href="threecode/actions.html#newReadCache"><span class="Identifier">newReadCache</span></a>, <a href="threecode/api.html#isNetworkQuiet"><span class="Identifier">isNetworkQuiet</span></a>, <a href="threecode/api.html#setApiStreamHooks,ApiStreamHooks"><span class="Identifier">setApiStreamHooks</span></a>, <a href="threecode/api.html#QuietRecvWakeMs"><span class="Identifier">QuietRecvWakeMs</span></a>, <a href="threecode/api.html#markNetworkQuiet"><span class="Identifier">markNetworkQuiet</span></a>, <a href="threecode/api.html#installInterruptHook"><span class="Identifier">installInterruptHook</span></a>, <a href="threecode/api.html#parseUsage,JsonNode"><span class="Identifier">parseUsage</span></a>, <a href="threecode/api.html#clearInterrupted"><span class="Identifier">clearInterrupted</span></a>, <a href="threecode/api.html#verifyProfileHook"><span class="Identifier">verifyProfileHook</span></a>, <a href="threecode/api.html#fetchModels,string,string"><span class="Identifier">fetchModels</span></a>, <a href="threecode/api.html#applyReasoning,Profile,JsonNode"><span class="Identifier">applyReasoning</span></a>, <a href="threecode/api.html#FetchModelsHook"><span class="Identifier">FetchModelsHook</span></a>, <a href="threecode/api.html#fetchModelsHook_2"><span class="Identifier">fetchModelsHook</span></a>, <a href="threecode/api.html#apiStreamHooks"><span class="Identifier">apiStreamHooks</span></a>, <a href="threecode/api.html#QuietTooLongMs"><span class="Identifier">QuietTooLongMs</span></a>, <a href="threecode/api.html#verifyBody,Profile"><span class="Identifier">verifyBody</span></a>, <a href="threecode/api.html#applyGenerationDefaults,Profile,JsonNode"><span class="Identifier">applyGenerationDefaults</span></a>, <a href="threecode/api.html#parseXmlToolCalls,string"><span class="Identifier">parseXmlToolCalls</span></a>, <a href="threecode/api.html#setInterrupted,bool"><span class="Identifier">setInterrupted</span></a>, <a href="threecode/api.html#buildBatchAssistantMsg,string,string,JsonNode"><span class="Identifier">buildBatchAssistantMsg</span></a>, <a href="threecode/api.html#callModel,Profile,JsonNode,Usage,int"><span class="Identifier">callModel</span></a>, <a href="threecode/api.html#clearNetworkQuiet"><span class="Identifier">clearNetworkQuiet</span></a>, <a href="threecode/api.html#stripInternalFields,JsonNode"><span class="Identifier">stripInternalFields</span></a>, <a href="threecode/api.html#isInterrupted"><span class="Identifier">isInterrupted</span></a>, <a href="threecode/api.html#VerifyProfileHook_2"><span class="Identifier">VerifyProfileHook</span></a>, <a href="threecode/api.html#requestTurnInterrupt"><span class="Identifier">requestTurnInterrupt</span></a>, <a href="threecode/api.html#verifyProfile,Profile"><span class="Identifier">verifyProfile</span></a>, <a href="threecode/api.html#classifyRetry,ref.CatchableError,int"><span class="Identifier">classifyRetry</span></a>, <a href="threecode/api.html#ApiStreamHooks_2"><span class="Identifier">ApiStreamHooks</span></a>, <a href="threecode/api.html#retryCategory,string,JsonNode,int"><span class="Identifier">retryCategory</span></a>, <a href="threecode/api.html#applyStreamingOptions,Profile,JsonNode"><span class="Identifier">applyStreamingOptions</span></a>, <a href="threecode/api.html#buildStreamAssistantMsg,string,string,OrderedTable[int,JsonNode],Usage"><span class="Identifier">buildStreamAssistantMsg</span></a>, <a href="threecode/api.html#closeCachedStreamConn"><span class="Identifier">closeCachedStreamConn</span></a>, <a href="threecode/display.html#toolTranscriptBytes,string,ActionKind,string,int,int,string,int"><span class="Identifier">toolTranscriptBytes</span></a>, <a href="threecode/display.html#hintLn.t,varargs[untyped]"><span class="Identifier">hintLn</span></a>, <a href="threecode/display.html#subtleWriteLn,File,string"><span class="Identifier">subtleWriteLn</span></a>, <a href="threecode/display.html#printSessionList,seq[string],string,bool"><span class="Identifier">printSessionList</span></a>, <a href="threecode/display.html#cmdResponse,string"><span class="Identifier">cmdResponse</span></a>, <a href="threecode/display.html#assistantTextBytes,string"><span class="Identifier">assistantTextBytes</span></a>, <a href="threecode/display.html#toolIcon,ActionKind"><span class="Identifier">toolIcon</span></a>, <a href="threecode/display.html#finishMd,MarkdownState,File"><span class="Identifier">finishMd</span></a>, <a href="threecode/display.html#tokenLineBytes,Usage,int,int"><span class="Identifier">tokenLineBytes</span></a>, <a href="threecode/display.html#printKnownGood"><span class="Identifier">printKnownGood</span></a>, <a href="threecode/display.html#tokenLineLabel,Usage,int,int"><span class="Identifier">tokenLineLabel</span></a>, <a href="threecode/display.html#listTools,seq[ToolRecord]"><span class="Identifier">listTools</span></a>, <a href="threecode/display.html#printDiff,string"><span class="Identifier">printDiff</span></a>, <a href="threecode/display.html#hint.t,varargs[untyped]"><span class="Identifier">hint</span></a>, <a href="threecode/display.html#toolBannerBytes,string,ActionKind,int,int"><span class="Identifier">toolBannerBytes</span></a>, <a href="threecode/display.html#renderToolBanner,string,ActionKind,int,int"><span class="Identifier">renderToolBanner</span></a>, <a href="threecode/display.html#skillNameFromAct,Action"><span class="Identifier">skillNameFromAct</span></a>, <a href="threecode/display.html#welcome,Profile"><span class="Identifier">welcome</span></a>, <a href="threecode/display.html#renderAssistantContent,string,File"><span class="Identifier">renderAssistantContent</span></a>, <a href="threecode/display.html#warn.t,varargs[untyped]"><span class="Identifier">warn</span></a>, <a href="threecode/display.html#writeAssistantBullet,File"><span class="Identifier">writeAssistantBullet</span></a>, <a href="threecode/display.html#toolTranscriptBytes,Action,string,int,int,string,int"><span class="Identifier">toolTranscriptBytes</span></a>, <a href="threecode/display.html#SessionListCap"><span class="Identifier">SessionListCap</span></a>, <a href="threecode/display.html#printCompactHeadTail,string,int"><span class="Identifier">printCompactHeadTail</span></a>, <a href="threecode/display.html#renderHelp"><span class="Identifier">renderHelp</span></a>, <a href="threecode/display.html#toolResultBytes,ActionKind,string,int,int,string"><span class="Identifier">toolResultBytes</span></a>, <a href="threecode/display.html#renderTokenLine,Usage,int,int"><span class="Identifier">renderTokenLine</span></a>, <a href="threecode/display.html#err.t,varargs[untyped]"><span class="Identifier">err</span></a>, <a href="threecode/display.html#handleMdLine,MarkdownState,string,File"><span class="Identifier">handleMdLine</span></a>, <a href="threecode/display.html#warnLn.t,varargs[untyped]"><span class="Identifier">warnLn</span></a>, <a href="threecode/display.html#errLn.t,varargs[untyped]"><span class="Identifier">errLn</span></a>, <a href="threecode/display.html#cmdError,string"><span class="Identifier">cmdError</span></a>, <a href="threecode/display.html#printSkillLoaded,Action"><span class="Identifier">printSkillLoaded</span></a>, <a href="threecode/display.html#replaySessionTail,JsonNode,seq[ToolRecord],int,string"><span class="Identifier">replaySessionTail</span></a>, <a href="threecode/display.html#installEditorTweaks"><span class="Identifier">installEditorTweaks</span></a>, <a href="threecode/display.html#AssistantTextStyle"><span class="Identifier">AssistantTextStyle</span></a>, <a href="threecode/display.html#MarkdownState"><span class="Identifier">MarkdownState</span></a>, <a href="threecode/display.html#printActionResult,Action,string,int,int,string"><span class="Identifier">printActionResult</span></a>, <a href="threecode/display.html#initMarkdownState"><span class="Identifier">initMarkdownState</span></a>, <a href="threecode/display.html#renderToolPending,string,ActionKind"><span class="Identifier">renderToolPending</span></a>, <a href="threecode/display.html#showTool,string,seq[ToolRecord]"><span class="Identifier">showTool</span></a>, <a href="threecode/display.html#showProfile,Profile"><span class="Identifier">showProfile</span></a>, <a href="threecode/display.html#contextLabel,int,int"><span class="Identifier">contextLabel</span></a>, <a href="threecode/display.html#isSkillRead,Action"><span class="Identifier">isSkillRead</span></a>, <a href="threecode/display.html#subtleWrite,File,string"><span class="Identifier">subtleWrite</span></a>, <a href="threecode/display.html#note.t,varargs[untyped]"><span class="Identifier">note</span></a>, <a href="threecode/display.html#navigatedUp"><span class="Identifier">navigatedUp</span></a>, <a href="threecode/display.html#noteLn.t,varargs[untyped]"><span class="Identifier">noteLn</span></a>, <a href="threecode/display.html#printToolResult,ActionKind,string,int,int,string"><span class="Identifier">printToolResult</span></a>, <a href="threecode/ui.html#readOptional,,string"><span class="Identifier">readOptional</span></a>, <a href="threecode/ui.html#isFirstUserMessage,JsonNode"><span class="Identifier">isFirstUserMessage</span></a>, <a href="threecode/ui.html#CommandResult"><span class="Identifier">CommandResult</span></a>, <a href="threecode/ui.html#promptNewProvider"><span class="Identifier">promptNewProvider</span></a>, <a href="threecode/ui.html#CommandDisposition"><span class="Identifier">CommandDisposition</span></a>, <a href="threecode/ui.html#handleCommand,string,JsonNode,Session,Profile,"><span class="Identifier">handleCommand</span></a>, <a href="threecode/ui.html#WizardReadLineHook"><span class="Identifier">WizardReadLineHook</span></a>, <a href="threecode/ui.html#promptEditProvider,,ProviderRec"><span class="Identifier">promptEditProvider</span></a>, <a href="threecode/ui.html#CommandKind"><span class="Identifier">CommandKind</span></a>, <a href="threecode/ui.html#sessionPreamble,string"><span class="Identifier">sessionPreamble</span></a>, <a href="threecode/ui.html#CommandNames"><span class="Identifier">CommandNames</span></a>, <a href="threecode/ui.html#inlineAtFiles,string"><span class="Identifier">inlineAtFiles</span></a>, <a href="threecode/ui.html#readRequired,,string"><span class="Identifier">readRequired</span></a>, <a href="threecode/ui.html#classifyCommand,string"><span class="Identifier">classifyCommand</span></a>, <a href="threecode/ui.html#completionFor,string"><span class="Identifier">completionFor</span></a>, <a href="threecode/ui.html#handleCommandResult,string,JsonNode,Session,Profile,"><span class="Identifier">handleCommandResult</span></a>, <a href="threecode/ui.html#readInput,,bool"><span class="Identifier">readInput</span></a>, <a href="threecode/ui.html#wizardReadLineHook_2"><span class="Identifier">wizardReadLineHook</span></a>, <a href="threecode/ui.html#bootstrapProvider"><span class="Identifier">bootstrapProvider</span></a>, <a href="threecode/ui.html#buildUserMessage,JsonNode,string"><span class="Identifier">buildUserMessage</span></a>, <a href="threecode/fatprompt/rendering.html#spinnerFooterFrame,string,string,string,int"><span class="Identifier">spinnerFooterFrame</span></a>, <a href="threecode/fatprompt/runtime.html#apiFinalUsage,Usage,int,int,string,bool"><span class="Identifier">apiFinalUsage</span></a>, <a href="threecode/fatprompt/runtime.html#startBarTick,string"><span class="Identifier">startBarTick</span></a>, <a href="threecode/fatprompt/rendering.html#barFooterBytes,string,int"><span class="Identifier">barFooterBytes</span></a>, <a href="threecode/fatprompt/rendering.html#FatPromptGeometry"><span class="Identifier">FatPromptGeometry</span></a>, <a href="threecode/fatprompt/rendering.html#footerGeometry,FatPromptState,int,int"><span class="Identifier">footerGeometry</span></a>, <a href="threecode/fatprompt/rendering.html#liveEditorSpinnerFooterBytes,string,string,string,int,int"><span class="Identifier">liveEditorSpinnerFooterBytes</span></a>, <a href="threecode/fatprompt/rendering.html#DefaultBashMaxLines"><span class="Identifier">DefaultBashMaxLines</span></a>, <a href="threecode/fatprompt/rendering.html#DeferredSubmitMarker"><span class="Identifier">DeferredSubmitMarker</span></a>, <a href="threecode/fatprompt/runtime.html#inputMessages"><span class="Identifier">inputMessages</span></a>, <a href="threecode/fatprompt/runtime.html#followupStartsAfterReceipt"><span class="Identifier">followupStartsAfterReceipt</span></a>, <a href="threecode/fatprompt/rendering.html#clearPendingHintEvent"><span class="Identifier">clearPendingHintEvent</span></a>, <a href="threecode/fatprompt/runtime.html#inputEditor"><span class="Identifier">inputEditor</span></a>, <a href="threecode/fatprompt/rendering.html#clampToWidth,string,int"><span class="Identifier">clampToWidth</span></a>, <a href="threecode/fatprompt/runtime.html#receiptTouchesNextResponse"><span class="Identifier">receiptTouchesNextResponse</span></a>, <a href="threecode/fatprompt/runtime.html#setCommandStatusActive,bool"><span class="Identifier">setCommandStatusActive</span></a>, <a href="threecode/fatprompt/runtime.html#apiAfterCall"><span class="Identifier">apiAfterCall</span></a>, <a href="threecode/fatprompt/runtime.html#ensureInputThreadStarted"><span class="Identifier">ensureInputThreadStarted</span></a>, <a href="threecode/fatprompt/rendering.html#setTicker,FatPrompt,string"><span class="Identifier">setTicker</span></a>, <a href="threecode/fatprompt/rendering.html#tokenBarFrame,string,string"><span class="Identifier">tokenBarFrame</span></a>, <a href="threecode/fatprompt/rendering.html#liveEditorBarTickFrame,string"><span class="Identifier">liveEditorBarTickFrame</span></a>, <a href="threecode/fatprompt/rendering.html#PromptMode"><span class="Identifier">PromptMode</span></a>, <a href="threecode/fatprompt/rendering.html#rowsAboveEditor,FooterFrame,int"><span class="Identifier">rowsAboveEditor</span></a>, <a href="threecode/fatprompt/rendering.html#spinnerFooterBytes,string,string,string,int,int"><span class="Identifier">spinnerFooterBytes</span></a>, <a href="threecode/fatprompt/rendering.html#editorHeight,FatPrompt"><span class="Identifier">editorHeight</span></a>, <a href="threecode/fatprompt/rendering.html#DefaultHeight"><span class="Identifier">DefaultHeight</span></a>, <a href="threecode/fatprompt/rendering.html#BashViewport"><span class="Identifier">BashViewport</span></a>, <a href="threecode/fatprompt/rendering.html#paintBarBytes,string"><span class="Identifier">paintBarBytes</span></a>, <a href="threecode/fatprompt/rendering.html#clearBarBelowAtColBytes,int"><span class="Identifier">clearBarBelowAtColBytes</span></a>, <a href="threecode/fatprompt/rendering.html#setPendingHintEvent,Usage,int,int"><span class="Identifier">setPendingHintEvent</span></a>, <a href="threecode/fatprompt/rendering.html#tokenBarText,TokenBarState"><span class="Identifier">tokenBarText</span></a>, <a href="threecode/fatprompt/runtime.html#endTurn"><span class="Identifier">endTurn</span></a>, <a href="threecode/fatprompt/runtime.html#commitTranscriptBytes,string,proc)"><span class="Identifier">commitTranscriptBytes</span></a>, <a href="threecode/fatprompt/rendering.html#finishBash,FatPrompt,int,int"><span class="Identifier">finishBash</span></a>, <a href="threecode/fatprompt/rendering.html#addScrollLine,FatPrompt,string"><span class="Identifier">addScrollLine</span></a>, <a href="threecode/fatprompt/runtime.html#writeTranscriptWithFatPromptRestore.t,bool,untyped"><span class="Identifier">writeTranscriptWithFatPromptRestore</span></a>, <a href="threecode/fatprompt/runtime.html#markProviderActivity"><span class="Identifier">markProviderActivity</span></a>, <a href="threecode/fatprompt/rendering.html#clearSpinnerFooterBytes,bool"><span class="Identifier">clearSpinnerFooterBytes</span></a>, <a href="threecode/fatprompt/rendering.html#FooterFrame"><span class="Identifier">FooterFrame</span></a>, <a href="threecode/fatprompt/runtime.html#liveEditorFooterAnchored"><span class="Identifier">liveEditorFooterAnchored</span></a>, <a href="threecode/fatprompt/runtime.html#paintBarPrompt,string"><span class="Identifier">paintBarPrompt</span></a>, <a href="threecode/fatprompt/rendering.html#noFooterFrame"><span class="Identifier">noFooterFrame</span></a>, <a href="threecode/fatprompt/rendering.html#setTickerEvent,string"><span class="Identifier">setTickerEvent</span></a>, <a href="threecode/fatprompt/rendering.html#FatPrompt"><span class="Identifier">FatPrompt</span></a>, <a href="threecode/fatprompt/runtime.html#currentBarHasGap.t"><span class="Identifier">currentBarHasGap</span></a>, <a href="threecode/fatprompt/runtime.html#inputStateLock"><span class="Identifier">inputStateLock</span></a>, <a href="threecode/fatprompt/rendering.html#EditorPromptBytes"><span class="Identifier">EditorPromptBytes</span></a>, <a href="threecode/fatprompt/runtime.html#inputSession"><span class="Identifier">inputSession</span></a>, <a href="threecode/fatprompt/runtime.html#apiProgress,string,int"><span class="Identifier">apiProgress</span></a>, <a href="threecode/fatprompt/runtime.html#clearBarPrompt"><span class="Identifier">clearBarPrompt</span></a>, <a href="threecode/fatprompt/rendering.html#clearBarEvent"><span class="Identifier">clearBarEvent</span></a>, <a href="threecode/fatprompt/rendering.html#initFatPromptState"><span class="Identifier">initFatPromptState</span></a>, <a href="threecode/fatprompt/rendering.html#setTokenBar,FatPrompt,Usage,int,string,int"><span class="Identifier">setTokenBar</span></a>, <a href="threecode/fatprompt/rendering.html#apply,FatPromptState,FatPromptEvent"><span class="Identifier">apply</span></a>, <a href="threecode/fatprompt/runtime.html#apiAfterLiveContent,string,int"><span class="Identifier">apiAfterLiveContent</span></a>, <a href="threecode/fatprompt/runtime.html#restoreInputTermios"><span class="Identifier">restoreInputTermios</span></a>, <a href="threecode/fatprompt/runtime.html#flushDraftNow"><span class="Identifier">flushDraftNow</span></a>, <a href="threecode/fatprompt/rendering.html#promptOnlyBytes"><span class="Identifier">promptOnlyBytes</span></a>, <a href="threecode/fatprompt/rendering.html#FatPromptEvent"><span class="Identifier">FatPromptEvent</span></a>, <a href="threecode/fatprompt/runtime.html#stopTurnInputForFinalRender"><span class="Identifier">stopTurnInputForFinalRender</span></a>, <a href="threecode/fatprompt/rendering.html#clearFooterFrame,int"><span class="Identifier">clearFooterFrame</span></a>, <a href="threecode/fatprompt/runtime.html#apiTrimTrailingContent,string,string,int"><span class="Identifier">apiTrimTrailingContent</span></a>, <a href="threecode/fatprompt/runtime.html#currentBarLabel.t"><span class="Identifier">currentBarLabel</span></a>, <a href="threecode/fatprompt/runtime.html#beginForegroundEditorRedraw"><span class="Identifier">beginForegroundEditorRedraw</span></a>, <a href="threecode/fatprompt/runtime.html#apiSetStatusLabel,string"><span class="Identifier">apiSetStatusLabel</span></a>, <a href="threecode/fatprompt/rendering.html#footerRowsAboveEditor,FatPromptState"><span class="Identifier">footerRowsAboveEditor</span></a>, <a href="threecode/fatprompt/rendering.html#barFooterBelowBytes,string,int"><span class="Identifier">barFooterBelowBytes</span></a>, <a href="threecode/fatprompt/rendering.html#clearPromptAfterPendingReceiptBytes"><span class="Identifier">clearPromptAfterPendingReceiptBytes</span></a>, <a href="threecode/fatprompt/rendering.html#footerFrame,FatPromptState"><span class="Identifier">footerFrame</span></a>, <a href="threecode/fatprompt/rendering.html#barWrapRows,int,int"><span class="Identifier">barWrapRows</span></a>, <a href="threecode/fatprompt/runtime.html#emitFatPromptEvent,FatPromptEvent"><span class="Identifier">emitFatPromptEvent</span></a>, <a href="threecode/fatprompt/runtime.html#inputState_2"><span class="Identifier">inputState</span></a>, <a href="threecode/fatprompt/runtime.html#restoreCancelTermios"><span class="Identifier">restoreCancelTermios</span></a>, <a href="threecode/fatprompt/runtime.html#activeCommandHook"><span class="Identifier">activeCommandHook</span></a>, <a href="threecode/fatprompt/runtime.html#feedContent,LiveMarkdownStream,string,int"><span class="Identifier">feedContent</span></a>, <a href="threecode/fatprompt/rendering.html#clearTickerEvent"><span class="Identifier">clearTickerEvent</span></a>, <a href="threecode/fatprompt/rendering.html#footerFrameBytes,FooterFrame,int"><span class="Identifier">footerFrameBytes</span></a>, <a href="threecode/fatprompt/rendering.html#PromptMarker"><span class="Identifier">PromptMarker</span></a>, <a href="threecode/fatprompt/runtime.html#inputThreadRunning"><span class="Identifier">inputThreadRunning</span></a>, <a href="threecode/fatprompt/runtime.html#contentStreamedLive"><span class="Identifier">contentStreamedLive</span></a>, <a href="threecode/fatprompt/rendering.html#addTranscriptItem,FatPrompt,PromptMarker,string,string"><span class="Identifier">addTranscriptItem</span></a>, <a href="threecode/fatprompt/runtime.html#installApiStreamHooks"><span class="Identifier">installApiStreamHooks</span></a>, <a href="threecode/fatprompt/runtime.html#apiProviderActivity"><span class="Identifier">apiProviderActivity</span></a>, <a href="threecode/fatprompt/rendering.html#PendingHint"><span class="Identifier">PendingHint</span></a>, <a href="threecode/fatprompt/rendering.html#frameRows,FatPrompt"><span class="Identifier">frameRows</span></a>, <a href="threecode/fatprompt/rendering.html#hideRealCaretBytes"><span class="Identifier">hideRealCaretBytes</span></a>, <a href="threecode/fatprompt/rendering.html#bashVisibleRows,FatPrompt"><span class="Identifier">bashVisibleRows</span></a>, <a href="threecode/fatprompt/rendering.html#editorRows,FatPrompt"><span class="Identifier">editorRows</span></a>, <a href="threecode/fatprompt/runtime.html#consumeQueuedCommand,string,int"><span class="Identifier">consumeQueuedCommand</span></a>, <a href="threecode/fatprompt/rendering.html#beginBash,FatPrompt,int"><span class="Identifier">beginBash</span></a>, <a href="threecode/fatprompt/runtime.html#stopBarTick"><span class="Identifier">stopBarTick</span></a>, <a href="threecode/fatprompt/runtime.html#consumeQueuedInput,string,int,bool"><span class="Identifier">consumeQueuedInput</span></a>, <a href="threecode/fatprompt/rendering.html#formatUserPromptItem,string"><span class="Identifier">formatUserPromptItem</span></a>, <a href="threecode/fatprompt/runtime.html#stopSpinner"><span class="Identifier">stopSpinner</span></a>, <a href="threecode/fatprompt/runtime.html#paintPromptOnly"><span class="Identifier">paintPromptOnly</span></a>, <a href="threecode/fatprompt/runtime.html#releaseIdleSubmittedInput"><span class="Identifier">releaseIdleSubmittedInput</span></a>, <a href="threecode/fatprompt/runtime.html#inputProfile"><span class="Identifier">inputProfile</span></a>, <a href="threecode/fatprompt/runtime.html#stopDraftFlusher"><span class="Identifier">stopDraftFlusher</span></a>, <a href="threecode/fatprompt/rendering.html#barFooterBelowAtColBytes,string,int,int"><span class="Identifier">barFooterBelowAtColBytes</span></a>, <a href="threecode/fatprompt/runtime.html#finishForegroundEditorRedraw"><span class="Identifier">finishForegroundEditorRedraw</span></a>, <a href="threecode/fatprompt/rendering.html#setEditor,FatPrompt,string,int"><span class="Identifier">setEditor</span></a>, <a href="threecode/fatprompt/runtime.html#hasQueuedAutosend"><span class="Identifier">hasQueuedAutosend</span></a>, <a href="threecode/fatprompt/runtime.html#apiBeforeCall,int,int"><span class="Identifier">apiBeforeCall</span></a>, <a href="threecode/fatprompt/runtime.html#fatPromptState"><span class="Identifier">fatPromptState</span></a>, <a href="threecode/fatprompt/rendering.html#labelCells,string"><span class="Identifier">labelCells</span></a>, <a href="threecode/fatprompt/rendering.html#spinnerBarBytes,string,string,int"><span class="Identifier">spinnerBarBytes</span></a>, <a href="threecode/fatprompt/rendering.html#moveToBarBelowBytes"><span class="Identifier">moveToBarBelowBytes</span></a>, <a href="threecode/fatprompt/runtime.html#liveLabel,string,int"><span class="Identifier">liveLabel</span></a>, <a href="threecode/fatprompt/runtime.html#writeTranscriptWithFatPrompt.t,untyped"><span class="Identifier">writeTranscriptWithFatPrompt</span></a>, <a href="threecode/fatprompt/rendering.html#ClearBarPromptBytes"><span class="Identifier">ClearBarPromptBytes</span></a>, <a href="threecode/fatprompt/runtime.html#enterPromptInput"><span class="Identifier">enterPromptInput</span></a>, <a href="threecode/fatprompt/rendering.html#ClearBarBelowBytes"><span class="Identifier">ClearBarBelowBytes</span></a>, <a href="threecode/fatprompt/rendering.html#DefaultWidth"><span class="Identifier">DefaultWidth</span></a>, <a href="threecode/fatprompt/rendering.html#frameText,FatPrompt"><span class="Identifier">frameText</span></a>, <a href="threecode/fatprompt/rendering.html#liveBarBytes,string"><span class="Identifier">liveBarBytes</span></a>, <a href="threecode/fatprompt/rendering.html#promptOnlyResetBytes"><span class="Identifier">promptOnlyResetBytes</span></a>, <a href="threecode/fatprompt/runtime.html#paintBarBelow,string"><span class="Identifier">paintBarBelow</span></a>, <a href="threecode/fatprompt/rendering.html#FatPromptState_2"><span class="Identifier">FatPromptState</span></a>, <a href="threecode/fatprompt/runtime.html#finishContent,LiveMarkdownStream,int"><span class="Identifier">finishContent</span></a>, <a href="threecode/fatprompt/rendering.html#initFatPrompt,int"><span class="Identifier">initFatPrompt</span></a>, <a href="threecode/fatprompt/runtime.html#beginTurn"><span class="Identifier">beginTurn</span></a>, <a href="threecode/fatprompt/runtime.html#nextCommandSymbol"><span class="Identifier">nextCommandSymbol</span></a>, <a href="threecode/fatprompt/rendering.html#endTurnBytes,string,bool,int"><span class="Identifier">endTurnBytes</span></a>, <a href="threecode/fatprompt/runtime.html#emitUserSubmit,string"><span class="Identifier">emitUserSubmit</span></a>, <a href="threecode/fatprompt/rendering.html#spinnerCleanupBytes,int"><span class="Identifier">spinnerCleanupBytes</span></a>, <a href="threecode/fatprompt/runtime.html#apiContentFinished,string,string,int"><span class="Identifier">apiContentFinished</span></a>, <a href="threecode/fatprompt/runtime.html#startSpinner,string"><span class="Identifier">startSpinner</span></a>, <a href="threecode/fatprompt/rendering.html#setBarEvent,string"><span class="Identifier">setBarEvent</span></a>, <a href="threecode/fatprompt/rendering.html#footerFrameBytes,FatPromptState,int"><span class="Identifier">footerFrameBytes</span></a>, <a href="threecode/fatprompt/runtime.html#setActiveCommandHook,proc(string)"><span class="Identifier">setActiveCommandHook</span></a>, <a href="threecode/fatprompt/rendering.html#receiptBarBytes,string"><span class="Identifier">receiptBarBytes</span></a>, <a href="threecode/fatprompt/rendering.html#hasNonNewlineBytes,string"><span class="Identifier">hasNonNewlineBytes</span></a>, <a href="threecode/fatprompt/runtime.html#initLiveMarkdownStream,string"><span class="Identifier">initLiveMarkdownStream</span></a>, <a href="threecode/fatprompt/runtime.html#apiReasoningDelta,string,string,int,bool"><span class="Identifier">apiReasoningDelta</span></a>, <a href="threecode/fatprompt/runtime.html#resetPromptInputAfterEmpty,int"><span class="Identifier">resetPromptInputAfterEmpty</span></a>, <a href="threecode/fatprompt/rendering.html#TokenBarState"><span class="Identifier">TokenBarState</span></a>, <a href="threecode/fatprompt/rendering.html#FatPromptEventKind"><span class="Identifier">FatPromptEventKind</span></a>, <a href="threecode/fatprompt/runtime.html#setBarPromptState,string"><span class="Identifier">setBarPromptState</span></a>, <a href="threecode/fatprompt/runtime.html#paintInitialPrompt,Profile"><span class="Identifier">paintInitialPrompt</span></a>, <a href="threecode/fatprompt/runtime.html#paintInitialBar,Profile"><span class="Identifier">paintInitialBar</span></a>, <a href="threecode/fatprompt/runtime.html#pendingHint.t"><span class="Identifier">pendingHint</span></a>, <a href="threecode/fatprompt/runtime.html#endTurnAfterTranscriptAppend"><span class="Identifier">endTurnAfterTranscriptAppend</span></a>, <a href="threecode/fatprompt/rendering.html#clearBarRowBytes"><span class="Identifier">clearBarRowBytes</span></a>, <a href="threecode/fatprompt/runtime.html#apiNoUsage,int"><span class="Identifier">apiNoUsage</span></a>, <a href="threecode/fatprompt/rendering.html#hasElapsedSuffix,string"><span class="Identifier">hasElapsedSuffix</span></a>, <a href="threecode/fatprompt/rendering.html#FooterFrameKind"><span class="Identifier">FooterFrameKind</span></a>, <a href="threecode/fatprompt/runtime.html#repaintBarPrompt"><span class="Identifier">repaintBarPrompt</span></a>, <a href="threecode/fatprompt/rendering.html#tokenBarRows,FatPromptState,int"><span class="Identifier">tokenBarRows</span></a>, <a href="threecode/fatprompt/rendering.html#FooterState"><span class="Identifier">FooterState</span></a>, <a href="threecode/fatprompt/runtime.html#ensureDraftFlusherStarted"><span class="Identifier">ensureDraftFlusherStarted</span></a>, <a href="threecode/fatprompt/runtime.html#apiContentDelta,string,string,int"><span class="Identifier">apiContentDelta</span></a>, <a href="threecode/fatprompt/rendering.html#setPromptModeEvent,PromptMode"><span class="Identifier">setPromptModeEvent</span></a>, <a href="threecode/fatprompt/rendering.html#pushBashOutput,FatPrompt,string"><span class="Identifier">pushBashOutput</span></a>, <a href="threecode/fatprompt/rendering.html#absoluteBarTickFrame,int,string,bool,int"><span class="Identifier">absoluteBarTickFrame</span></a>, <a href="threecode/fatprompt/rendering.html#liveEditorSpinnerBarBytes,string,string,int"><span class="Identifier">liveEditorSpinnerBarBytes</span></a>, <a href="threecode/fatprompt/runtime.html#LiveMarkdownStream"><span class="Identifier">LiveMarkdownStream</span></a>, <a href="threecode/fatprompt/runtime.html#captureStdoutWrites.t,untyped"><span class="Identifier">captureStdoutWrites</span></a>, <a href="threecode/toolstream.html#setExitCode,StreamingView,int"><span class="Identifier">setExitCode</span></a>, <a href="threecode/toolstream.html#StreamMaxLines"><span class="Identifier">StreamMaxLines</span></a>, <a href="threecode/toolstream.html#printBashScroll,string,int"><span class="Identifier">printBashScroll</span></a>, <a href="threecode/toolstream.html#subtleWriteLn,File,string_2"><span class="Identifier">subtleWriteLn</span></a>, <a href="threecode/toolstream.html#printLine,string"><span class="Identifier">printLine</span></a>, <a href="threecode/toolstream.html#viewportRows,StreamingView"><span class="Identifier">viewportRows</span></a>, <a href="threecode/toolstream.html#initStreamingView,int,string"><span class="Identifier">initStreamingView</span></a>, <a href="threecode/toolstream.html#finalTranscriptRows,string,int,openArray[string],int"><span class="Identifier">finalTranscriptRows</span></a>, <a href="threecode/toolstream.html#addLine,StreamingView,string"><span class="Identifier">addLine</span></a>, <a href="threecode/toolstream.html#setSymbol,StreamingView,string"><span class="Identifier">setSymbol</span></a>, <a href="threecode/toolstream.html#StreamingView"><span class="Identifier">StreamingView</span></a>, <a href="threecode/turns.html#onTurnInterrupted"><span class="Identifier">onTurnInterrupted</span></a>, <a href="threecode/turns.html#runTurns,Profile,JsonNode,Session"><span class="Identifier">runTurns</span></a>, <a href="threecode/turns.html#runTurnsInteractive,Profile,JsonNode,Session"><span class="Identifier">runTurnsInteractive</span></a>, <a href="threecode/transcript.html#assistantItem,string"><span class="Identifier">assistantItem</span></a>, <a href="threecode/transcript.html#toolItem,Action,string,int,int,string,int"><span class="Identifier">toolItem</span></a>, <a href="threecode/transcript.html#TranscriptKind"><span class="Identifier">TranscriptKind</span></a>, <a href="threecode/transcript.html#userPromptItem,string"><span class="Identifier">userPromptItem</span></a>, <a href="threecode/transcript.html#formatItem,TranscriptItem"><span class="Identifier">formatItem</span></a>, <a href="threecode/transcript.html#plainCommandBodyBytes,string"><span class="Identifier">plainCommandBodyBytes</span></a>, <a href="threecode/transcript.html#appendItem,TranscriptItem,proc)"><span class="Identifier">appendItem</span></a>, <a href="threecode/transcript.html#TranscriptItem"><span class="Identifier">TranscriptItem</span></a>, <a href="threecode/transcript.html#commandItem,string,string"><span class="Identifier">commandItem</span></a>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2026-06-27 09:42:03 UTC</small>
</div>
</div>
</div>
</body>
</html>