@jun133/kitty 0.0.3 → 0.0.4

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/README.md CHANGED
@@ -31,14 +31,14 @@
31
31
  | 能力 | 当前事实 |
32
32
  | --- | --- |
33
33
  | 🧭 Agent 循环 | 模型、工具、session、收尾都在同一个主循环里推进 |
34
- | 🧠 Context | 项目上下文、项目地图、运行时上下文、工作记忆、长上下文压缩 |
34
+ | 🧠 Context | 近场可见对话、项目上下文、项目地图、运行时上下文、工作记忆、长上下文压缩和预算报告 |
35
35
  | 💾 Session | 会话记录、checkpoint、todo、恢复现场、结构化可审阅 memory assets |
36
36
  | 🗺️ Project Map | 目录、入口、脚本、测试、spec 和 git 事实进入短项目地图 |
37
37
  | 🔌 Provider | OpenAI-compatible provider、请求恢复、连接诊断 |
38
38
  | 🛠️ Core tools | `read`、`edit`、`write`、`bash` |
39
39
  | 🧩 Extensions | `todo`、`worktree`、`network`、`background`、`subagent`、`skills`、`spec` |
40
40
  | 🧾 Control plane | SQLite 账本记录 task lifecycle、execution、deadline、输出健康、wait policy、pid、状态和 wake 事实;host 负责等待和恢复 lead |
41
- | 📐 Spec 模式 | `requirements.md`、`design.md`、`tasks.md`、`notes.md` 和隔离 worktree |
41
+ | 📐 Spec 模式 | `requirements.md`、`design.md`、`tasks.md`、`notes.md`、workflow summary 和隔离 worktree |
42
42
  | 💬 产品面 | CLI、交互终端、Telegram 私聊服务 |
43
43
  | 📎 证据记录 | 事件、终端日志、崩溃记录、文件变更记录 |
44
44
  | 🧪 Evaluation | `kitty eval` 暴露真实 agent 体验验收场景 |
@@ -87,12 +87,12 @@ kitty spec
87
87
  | `kitty sessions` | 查看最近会话 |
88
88
  | `kitty config show` | 查看从 `.kitty/.env` 解析出的当前运行配置 |
89
89
  | `kitty config path` | 查看当前项目 `.kitty/.env` 路径 |
90
- | `kitty status` | 查看当前项目 runtime 现场:session、task lifecycle、memory、project map、execution、deadline、wake、spec |
91
- | `kitty memory` | 查看、读取、搜索、删除 runtime memory assets,或把 memory 沉淀到 spec notes / skill references |
90
+ | `kitty status` | 查看当前项目 runtime 现场:session、context budget、task lifecycle、memory、project map、execution、deadline、wake、spec |
91
+ | `kitty memory` | 创建、查看、读取、搜索、删除 runtime memory assets,或把 memory 沉淀到 spec notes / skill references |
92
92
  | `kitty changes` | 查看记录的文件变更 |
93
93
  | `kitty undo [changeId]` | 撤销最近一次或指定变更 |
94
94
  | `kitty diff [path]` | 查看当前 git diff |
95
- | `kitty doctor` | 检查运行环境 |
95
+ | `kitty doctor` | 检查 `.kitty` 文件、env contract、provider preset、runtime 和 provider 连接 |
96
96
  | `kitty eval` | 查看真实 agent 体验验收场景 |
97
97
  | `kitty telegram serve` | 启动 Telegram 私聊服务 |
98
98
 
@@ -123,9 +123,9 @@ Extension 是可启用、可禁用、独立存在的工具集合:
123
123
 
124
124
  Runtime skills 放在项目 `SKILL.md`、`.skills/**/SKILL.md` 或 `skills/**/SKILL.md`。默认上下文只显示 skill 名称、说明和路径;完整正文必须由模型明确调用 `skill_load` 后进入当前轮。Skill 包内的 `references/`、`scripts/`、`examples/` 和 `assets/` 会作为资源索引出现,需要时用 `skill_read_resource` 读取资源,或用 `skill_run_script` 运行已声明的 `scripts/` 资源。Skill frontmatter 可用 `requires` 声明命令依赖,运行时用 `skill_check` 检查。`.codex/skills/**` 是 Codex 维护本仓库用的开发规范,不属于小猫运行时 skill。
125
125
 
126
- Session memory 由模型在 turn 收口时按固定 Markdown 区块写出:`Current Focus`、`User Constraints`、`Decisions`、`Open Threads`、`Verification Facts`、`Reusable Lessons`。机器只维护格式和保存边界,不替模型判断事实重要性。
126
+ Provider 请求优先携带同 session 的近场可见对话。短会话不靠账本拼上下文;长会话超预算时摘要旧对话,保留最近对话 tail。Session memory 由模型在 turn 收口时按固定 Markdown 区块写出:`Current Focus`、`User Constraints`、`Decisions`、`Open Threads`、`Verification Facts`、`Reusable Lessons`。机器只维护格式和保存边界,不替模型判断事实重要性。
127
127
 
128
- Memory assets 分为 `session`、`project`、`user` 和 `evidence`。每条 asset 暴露 kind、id、路径和 evidence references。Session memory 由模型写,project/user/evidence assets 是可审阅事实资产。`kitty memory <memoryId> --append-to-spec <specId>` 可以追加到 spec `notes.md`,`kitty memory <memoryId> --append-to-skill <skillName>` 可以写入该 skill 的 `references/`。这两条路径只沉淀已保存事实,不替模型判断哪些经验值得复用。
128
+ Memory assets 分为 `session`、`project`、`user` 和 `evidence`。每条 asset 暴露 kind、id、title、scope、tags、路径和 evidence references。Session memory 由模型写,project/user/evidence assets 通过 `kitty memory --create <kind> --title <title> --content <content>` 创建成可审阅 Markdown 资产。`kitty memory -q <query>` 做多词候选召回,只返回命中的资产和证据行,不替模型判断语义重要性。`kitty memory <memoryId> --append-to-spec <specId>` 可以追加到 spec `notes.md`,`kitty memory <memoryId> --append-to-skill <skillName>` 可以写入该 skill 的 `references/`。这两条路径只沉淀已保存事实,不替模型判断哪些经验值得复用。
129
129
 
130
130
  查看配置:
131
131
 
@@ -137,7 +137,9 @@ kitty config show
137
137
 
138
138
  ## ⚙️ 配置
139
139
 
140
- 项目运行配置只从 `.kitty/.env` 读取。初始化后按 `.kitty/.env` 填写当前启用的 provider、模型、API key 和 profile。
140
+ 项目运行配置只从 `.kitty/.env` 读取。初始化后按 `.kitty/.env` 填写当前启用的 provider、模型、API key 和 profile。
141
+
142
+ `kitty init` 创建 `.kitty/.env`、`.kitty/.env.example` 和 `.kitty/.kittyignore`,并输出本地配置 preflight。`kitty doctor` 先检查这些本地事实,再加载 runtime,最后在 API key 存在时探测 provider 连接。
141
143
 
142
144
  `.kitty/.env` 放当前启用的 provider 和 API key,同时保留 YLS、TTAPI、DeepSeek 三组 provider preset 注释块,方便直接切换。Telegram、扩展开关和运行时配置也在 `.kitty/.env` 与 `.kitty/.env.example` 中保持同一结构。
143
145