Versions, Changelog and Restoring
A knowledge workspace has its own version number, in SemVer form. Each completed round of work records one new version with a short changelog entry, and the package, the website and LLM Docs all carry it. Intermediate batches and partial results never get their own version.
Which number changes
| Change in the round | Increment |
|---|---|
| Added modules or material that expands coverage | Minor |
| Corrections, updates to existing modules, navigation, persistent status | Patch |
| Anything you explicitly call a major version | Major — only on your instruction |
The first version is 0.1.0 unless the knowledge workspace already has a higher one or you specify another. Work in progress never changes the version. A change to the knowledge map alone after delivery — menu titles, order or grouping — is recorded as a patch version.
How it is recorded
Near the end of a round, after the pages are approved and before the final build, the Agent looks at what actually changed — article text, assets, structure, navigation and templates — by comparing the workspace with Git, and writes the changelog entry: a title, the main changes and what prompted them, such as a new module, a note, an update or a fix. Related changes are merged so each entry stays short. Entries never contain credentials, raw conversation text, local paths or private account IDs, and the author is taken from your Git identity rather than guessed.
A workspace kept in a subdirectory of a larger repository is compared only within its own directory and against the latest commit by default, because that repository's tags are not versions of the knowledge base; another commit can be named as the comparison base. The version number and the changelog are updated together, and a version cannot be recorded while drafts still wait for review. A version that has already reached the remote default branch is reported as merged and is never reused; only an unmerged one can be amended.
When several intermediate versions were recorded but none was published, they can be merged into one entry: the Agent restores only the version files to the last published version, keeps every knowledge change, compares against that version's commit and records one entry. A version that is already merged or tagged is never rewritten. Recording a version does not by itself publish or deploy anything. The commands behind this are listed in CLI Commands.
Retries and republishing
A failed build reuses the recorded version; retrying does not bump it. If content has to change after a failed build, a version that has not been published can still be amended. Once content has been published, any further change needs a higher version. A local build alone does not seal a version.
Where readers see it
The website has a history page: cards newest first, the latest three expanded and older ones collapsed. The History button beside the theme switch and the footer's update time link to it. Knowledge packages and LLM Docs carry the same version and changelog.
Going back to an earlier version
Ask the Agent to restore a version:
Restore the knowledge as of last Friday.It works out which saved state you mean, ends any unfinished work, and restores only the knowledge workspace's own files and the sources that version used. It never resets the rest of the repository or brings back temporary task progress. A clear restore request needs no second approval when the target and the affected files are clear; when they are not, the Agent asks.
What "earlier version" means
| You say | Target |
|---|---|
| Nothing specific | The last saved state of the workspace — this undoes results not yet committed |
| "The previous version" | The preceding saved state of the workspace, not simply the previous commit of a large repository |
| A commit | That commit, after checking it |
| A date | Read in your timezone and meaning (for example, as of the end of that day); if several states could match, the Agent confirms with you |
Before restoring, the Agent shows you what will change. Files added since then are proposed for removal; unrelated files, work you already staged and source checkouts are kept. Moves and renames are accounted for.
What you get back
- The workspace files as they were at the target, with branch history preserved.
- The sources that version used — repository versions, document snapshots and attachments. Newer remote content is never used in place of a lost old snapshot, and sources that are still usable are not fetched again.
- Only one document needs to go back? Name it — "Restore the handbook to its capture from last Friday" — and the Agent restores that registered document alone, either to the capture you name or to its latest complete capture in Git history. Its text, images and manifest entry come back together as one snapshot, and other documents are left as they are.
- Existing outputs are reported as out of date until you ask for a rebuild. Restoring an old configuration does not start a full re-indexing; if the old format is incompatible, the Agent tells you the choice to make instead of rewriting pages silently.
The Agent then checks the restored files against the target and that nothing unrelated changed. If some sources could not be restored, it reports a partial result with what access or version is missing. Restoring itself does not commit or push; ask the Agent to commit the restored state when you are satisfied — see Starting a New Task and Saving Your Work.
版本、Changelog 与恢复
知识工作区有自己的版本号,采用 SemVer 形式。每轮完成的工作都会记录一个新版本和一条简短的 Changelog 条目,知识包、网站和 LLM Docs 都会带上这个版本。中间批次和部分结果永远不会单独获得版本。
哪一位数字会变化
| 本轮的变化 | 递增 |
|---|---|
| 新增模块或扩大覆盖范围的材料 | Minor |
| 修正、对现有模块的更新、导航、持久状态 | Patch |
| 你明确称为主版本的任何变化 | Major,仅在你指示时 |
除非知识工作区已有更高的版本或你另行指定,第一个版本是 0.1.0。进行中的工作永远不会改变版本。交付之后只改动知识地图——菜单标题、顺序或分组——的变更会记录为补丁版本。
如何记录
在一轮工作接近结束时——页面审核通过之后、最终构建之前——Agent 会与 Git 对比,查看实际发生的变化,包括文章正文、资源、结构、导航和模板,然后撰写 Changelog 条目:标题、主要变化以及引发它们的原因,例如新增模块、笔记、更新或修复。相关的变化会被合并,让每个条目保持简短。条目中绝不包含凭据、原始对话文本、本地路径或私有账号 ID;作者取自你的 Git 身份,而不是猜测。
放在更大仓库子目录中的工作区,只在自身目录内与 Git 对比,默认对比最新提交,因为该仓库的标签不是知识库的版本;也可以指定另一个 commit 作为对比基线。版本号和 Changelog 会一起更新;仍有草稿等待审核时,不能记录版本。已经进入远端默认分支的版本会被报告为已合入,不会被复用;只有尚未合入的版本可以修改。
如果记录过几个中间版本但都没有发布,可以把它们合并成一个条目:Agent 只把版本文件恢复到上一个已发布版本,保留所有知识改动,再与该版本的 commit 对比,记录一个条目。已经合入或打了标签的版本绝不会被改写。
记录版本本身不会发布或部署任何内容。背后用到的命令列在 CLI 命令 中。
重试与重新发布
构建失败时会复用已记录的版本,重试不会递增版本。如果构建失败后必须修改内容,仍可以修订尚未发布的版本。内容一旦发布,后续任何改动都需要更高的版本。仅在本地构建并不会封定版本。
读者在哪里查看
网站有一个历史页面:卡片按从新到旧排列,最新的三张展开,较早的折叠。主题切换旁的 History 按钮和页脚的更新时间都链接到该页面。知识包和 LLM Docs 带有相同的版本和 Changelog。
回到较早的版本
让 Agent 恢复某个版本:
把知识恢复到上周五的状态。它会弄清你指的是哪个已保存的状态,结束所有未完成的工作,并且只恢复知识工作区自己的文件以及该版本使用的来源。它从不重置仓库的其余部分,也不会找回临时的任务进度。当目标和受影响的文件都明确时,一个清楚的恢复请求无需再次批准;不明确时,Agent 会询问你。
“较早的版本”指什么
| 你说的 | 目标 |
|---|---|
| 没有具体说明 | 工作区上一次保存的状态——这会撤销尚未提交的结果 |
| “上一个版本” | 工作区的前一个已保存状态,而不只是大型仓库的上一个提交 |
| 某个提交 | 经检查后,恢复到该提交 |
| 某个日期 | 按你的时区和含义理解(例如截至当天结束时);如果有多个状态都可能匹配,Agent 会与你确认 |
恢复之前,Agent 会向你展示将要发生的变化。此后新增的文件会被建议删除;无关文件、你已暂存的工作以及来源检出都会保留。移动和重命名也会被考虑在内。
你会得到什么
- 工作区文件恢复为目标时的样子,分支历史保持不变。
- 该版本使用的来源——仓库版本、文档快照和附件。丢失的旧快照绝不会用较新的远程内容代替,仍然可用的来源也不会重新拉取。
- 只需要恢复一个文档?说出它的名字——“把手册恢复到上周五的采集版本”——Agent 就只恢复这一个已登记文档,恢复到你指定的采集版本,或 Git 历史中最近一次完整的采集。它的正文、图片和清单条目作为一个快照一起恢复,其他文档保持不变。
- 现有产出会被报告为已过时,直到你要求重新构建。恢复旧配置不会启动完整的重新索引;如果旧格式不兼容,Agent 会告诉你需要做出的选择,而不是悄悄重写页面。
随后,Agent 会对照目标检查恢复后的文件,并确认没有无关内容发生变化。如果某些来源无法恢复,它会报告部分结果,并说明缺少哪些访问权限或版本。恢复本身不会提交或推送;满意后请让 Agent 提交恢复后的状态——参见 开始新任务与保存工作。