ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s

This commit is contained in:
2026-08-20 13:12:50 +00:00
commit b119135836
10275 changed files with 3284984 additions and 0 deletions
@@ -0,0 +1,108 @@
/* ==========================================================================
主题样式表(Agent 定制"颜色 / 字体 / 布局"需求时修改这里)
为方便自然语言定制,关键视觉变量集中在 :root 里。
========================================================================== */
:root {
--color-primary: #16a34a; /* 主色(发送按钮、用户气泡)——初始为绿色 */
--color-primary-text: #ffffff; /* 主色上的文字颜色 */
--color-bg: #f5f5f5; /* 页面背景 */
--color-panel: #ffffff; /* 面板/卡片背景 */
--color-text: #1f2937; /* 正文文字 */
--font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
--radius: 12px;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-family);
}
.app {
max-width: 640px;
margin: 0 auto;
min-height: 100vh;
display: flex;
flex-direction: column;
background: var(--color-panel);
}
.header {
padding: 20px 24px;
border-bottom: 1px solid #e5e7eb;
}
.header-title {
margin: 0;
font-size: 20px;
}
.header-subtitle {
margin: 4px 0 0;
font-size: 13px;
color: #6b7280;
}
.chat-window {
flex: 1;
padding: 20px 24px;
display: flex;
flex-direction: column;
gap: 12px;
overflow-y: auto;
}
.bubble {
max-width: 75%;
padding: 10px 14px;
border-radius: var(--radius);
line-height: 1.5;
white-space: pre-wrap;
}
.bubble-assistant {
align-self: flex-start;
background: #eef2f5;
color: var(--color-text);
}
.bubble-user {
align-self: flex-end;
background: var(--color-primary);
color: var(--color-primary-text);
}
.composer {
display: flex;
gap: 8px;
padding: 16px 24px;
border-top: 1px solid #e5e7eb;
}
.composer-input {
flex: 1;
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: var(--radius);
font-size: 14px;
font-family: inherit;
}
.send-button {
padding: 10px 20px;
border: none;
border-radius: var(--radius);
background: var(--color-primary);
color: var(--color-primary-text);
font-size: 14px;
cursor: pointer;
}
.send-button:hover {
opacity: 0.9;
}