ci: release packages - #8
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
4 times, most recently
from
August 24, 2026 22:19
e45af06 to
cd4df33
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
August 24, 2026 22:26
cd4df33 to
4e77e62
Compare
7723qqq
added a commit
that referenced
this pull request
Sep 1, 2026
v2 goalAgentRuntime 的 CreateGoal 启动审批与陈旧 goal 拒绝此前对原生 执行完全失效(goal 静默启动、旧轮可改已变更的 goal)。本批在引擎内补齐: - tools/goal_guard.rs(新增):GoalGuard——turn 起始 goal 绑定表 + requires_host(非 auto 路由)+ stale_denial(突变工具双拼写、 goalId 比较、goal 清空即 stale、读失败 fail-open、文案逐字节对齐 v2)。 - #7 审批 = 路由回宿主:非 auto 模式(含 mode 未知 fail-closed)下 CreateGoal 不经原生执行,走宿主 executeTool——goal-start 审批链 (含 mode 切换面板)原样生效,零重实现。mode 取 pipeline 快照 (PermissionEngine::mode())。 - #8 stale veto:run_turn 入口经新 HostCallbacks::set_turn_goal 绑定 turn→goal(默认 no-op,NativeToolCallbacks/SteerQueueCallbacks 转发, 零装配点改动);gate 在 permission 后插入 stale_denial,denial 发 tool.native is_error + 合成结果,不回退宿主。 - 预算宽限轮由 run_turn 硬停结构性覆盖,无需复刻(文档说明差异)。 - 顺带修复 napi callbacks.goal() 死缝:NapiHostCallbacks 增 goal_fn 并实现(session 接线,legacy 留 None fail-open)。 - 验证:cargo lib 866(goal_guard 6 + 门级 4 + 绑定 2)、stdio 16/16 (CreateGoal 无快照必回退 E2E)、napi-integration 49/49(manual 回退/ auto 原生/session stale E2E)、clippy 0、oxlint 0 errors。 - ROADMAP P38 #7/#8 销账 + P42 文档(含诚实边界:mode 会话级陈旧、 REPL 无审批、预算硬停差异);changeset 记录用户可见行为。 迁移队列:#4 P39 ✅、#3 P41 ✅、#7+#8 P42 ✅ → 剩余 #6/#2/MoonshotAI#13。
7723qqq
added a commit
that referenced
this pull request
Sep 1, 2026
v2 agentExternalHooksService 的用户 PreToolUse 钩子此前对引擎原生路径 零对应(原生工具执行不触发)。本批在引擎内全量执行: - tools/external_hooks.rs(新增):HookGuard——event 过滤(只 PreToolUse)/matcher 正则(非法跳过)/command 去重/并行(tokio join_all,按序取首个 block);平台 shell spawn;stdin 写 snake_case 载荷(hook_event_name/session_id/cwd/client_type/session_title/ tool_name/tool_input/tool_call_id);超时 select + kill;三分支判定 (exit 2 → stderr;stdout JSON deny → reason;其余 allow)与 fail-closed 文案(failed to spawn / timed out / errored)逐字节对齐 v2。 - 配置随 PolicySnapshot 推送(零新 wire 字段):PolicySnapshot 增 pre_tool_hooks;宿主 rust-engine.ts getPolicySnapshot 从 loadRuntimeConfigSafe 读 [hooks];REPL 经 KimiConfig.hooks 段 + build_policy_snapshot。 - gate 集成:permission allow 后、goal_guard 前(镜像 v2 链序); denial 发 tool.native is_error + 合成结果,不回退宿主。 - 验证:cargo lib 879(external_hooks 11 + 门级 2)、stdio 18/18 (exit2 拦/exit0 放行 E2E)、napi-integration 51/51(真实 .node)、 rust-engine 25/25(宿主推送零回归)、clippy 0、oxlint 0 errors。 - ROADMAP P38 #6 销账 + P43 文档(含诚实边界:载荷字段近似、kill 链 降级、快照会话级推送、其他 19 种事件仍归宿主、cmd 引号教训); changeset 记录用户可见行为。 迁移队列:#4 P39 ✅、#3 P41 ✅、#7+#8 P42 ✅、#6 P43 ✅ → 剩余 #2(toolDedupe)、MoonshotAI#13(tower worker,随 M3)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@moonshot-ai/kimi-code@0.39.0
@moonshot-ai/kimi-native-tools@0.3.0
@moonshot-ai/agent-core-v2@0.5.0
@moonshot-ai/kimi-i18n@0.2.0
@moonshot-ai/i18n-shared@0.2.0
@moonshot-ai/minidb@0.3.0
@moonshot-ai/kimi-code-sdk@0.20.0
kimi-code@0.7.3
@moonshot-ai/acp-server@0.0.2
@moonshot-ai/kap-server@0.2.3
@moonshot-ai/klient@0.1.3
@moonshot-ai/kosong@0.5.6
@moonshot-ai/kimi-code-oauth@0.4.1