Skip to content

chore: update release metadata and repository links#421

Merged
genedna merged 1 commit into
mainfrom
chore/update-0.18.1
Jul 4, 2026
Merged

chore: update release metadata and repository links#421
genedna merged 1 commit into
mainfrom
chore/update-0.18.1

Conversation

@genedna

@genedna genedna commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Merge chore/update-0.18.1 into main.

Signed-off-by: Eli Ma <eli@patch.sh>
Copilot AI review requested due to automatic review settings July 4, 2026 12:52
@genedna genedna merged commit 8cbc443 into main Jul 4, 2026
5 of 11 checks passed
@genedna genedna deleted the chore/update-0.18.1 branch July 4, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Libra’s release metadata to 0.18.1, migrates repository/org links from web3infra-foundation to libra-tools, and rewires multiple docs/tests/guards to the reorganized development-documentation paths (notably docs/development/tracing/* and docs/development/integration/*). It also includes some CLI ergonomics and correctness work (unknown-command hinting; refactoring global runtime-flag initialization; and preserving file mode bits in restore/reset flows).

Changes:

  • Bump versions to 0.18.1 (Rust crate + web + worker) and update repository/issue URLs across code, tests, docs, and installer.
  • Update references to moved planning docs (integration plan and tracing docs) across guards, runner tooling, and documentation indices.
  • Refactor CLI parse initialization and enhance unknown-command hints; adjust tests; introduce mode-aware restore/reset logic.

Reviewed changes

Copilot reviewed 75 out of 76 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
worker/package.json Bump worker package version to 0.18.1.
web/package.json Bump web package version to 0.18.1.
tools/integration-runner/src/plan.rs Point integration runner at the relocated integration test plan path.
tools/integration-runner/README.md Update referenced integration test plan path.
tests/operation_wrapper_test.rs Update schema test fixture to include worktree_id column.
tests/network_remotes_test.rs Update GitHub URLs used by network tests to libra-tools.
tests/INDEX.md Update integration-plan reference path and adjust docs mapping for compat guard.
tests/compat/README.md Update compat guard doc-path mapping for agent docs.
tests/compat/matrix_alignment.rs Update runtime doc reads to new tracing + integration paths.
tests/compat/matrix_alignment_support.rs Update helper to parse features/targets from the new plan path.
tests/compat/agent_docs_contract.rs Repoint include_str! guard to tracing agent doc.
tests/command/worktree_test.rs Switch tests to call command entrypoints directly (execute_safe) instead of exec_async.
tests/command/remote_test.rs Update fetch/update execution to “safe” variants with explicit OutputConfig.
tests/command/open_test.rs Update repo URLs and expected GitHub web URLs to libra-tools.
tests/command/config_test.rs Switch config tests to execute_safe with clap parsing + OutputConfig.
tests/command/cli_error_test.rs Relax assertion to allow additional stderr hint content and assert similar-command hint presence.
tests/command/case_handling_test.rs Skip case-fold twin fixtures on case-insensitive hosts to avoid false failures.
tests/code_codex_default_tui_test.rs Update plan-doc reference to tracing agent doc.
tests/ai_subagent_flag_off_regression_test.rs Update spec reference path to tracing agent doc.
tests/ai_provider_transform_test.rs Update internal guide path to new location under docs/development/internal/.
template/skills/libra.md Update skill doc pointers to tracing agent doc.
src/utils/util.rs Update URL examples to libra-tools.
src/utils/thin_pack.rs Remove pinned git-internal version number from comment.
src/utils/lfs.rs Update test URL fixtures to libra-tools.
src/utils/error.rs Update canonical issues URL and related hints to libra-tools repo.
src/lib.rs Box the async parse future inside exec_async (likely to reduce exported future size).
src/internal/db/migration.rs Update docs references in migration comments to tracing agent doc.
src/internal/db.rs Update comment reference path to tracing agent doc.
src/internal/ai/tools/handlers/web_search.rs Update web-search user agent URL to libra-tools/mega.
src/internal/ai/skills/embedded/libra.md Update embedded skill doc pointers to tracing agent doc.
src/internal/ai/runtime/revision.rs Update rustdoc link to tracing agent doc.
src/internal/ai/runtime/phase4.rs Update doc reference to tracing agent doc.
src/internal/ai/runtime/phase0.rs Update doc reference to tracing agent doc.
src/internal/ai/runtime/event.rs Update doc reference to tracing agent doc.
src/internal/ai/mcp/server.rs Remove pinned git-internal version from server instructions string.
src/internal/ai/mcp/resource.rs Remove pinned git-internal version from MCP resource docs and error text.
src/internal/ai/capability_package/mod.rs Update step reference to tracing agent doc.
src/internal/ai/capability_package/manifest.rs Update step reference to tracing agent doc.
src/internal/ai/capability_package/diff.rs Update step reference to tracing agent doc.
src/internal/ai/agent_run/workspace_strategy.rs Update thresholds doc reference to tracing agent doc.
src/internal/ai/agent_run/mod.rs Update audit-closure doc reference to tracing agent doc.
src/internal/ai/agent_run/event.rs Update hook table doc reference to tracing agent doc.
src/internal/ai/agent_run/event_store.rs Update event-store doc reference to tracing agent doc.
src/command/tag.rs Update issues URL; refactor tests to use config KV + safe command execution with quiet output.
src/command/stash.rs Update issues URL constant.
src/command/restore.rs Add mode-aware restore targets and apply executable-bit permissions; update index restore to include mode checks.
src/command/reset.rs Preserve index entry modes from tree items and apply executable-bit permissions when restoring worktree.
src/command/push.rs Update issues URL constant.
src/command/publish.rs Update issues URL constant.
src/command/open.rs Update examples/tests to libra-tools URLs.
src/command/init.rs Update issues URL constant.
src/command/index_pack_support.rs Update issues URL constant.
src/command/commit.rs Update issues URL constant.
src/command/clone.rs Update issues URL constant.
src/cli.rs Add similar-command hinting for top-level unknown commands; refactor global runtime flag initialization into helpers; update tests accordingly.
sql/migrations/2026053101_ai_final_decision.sql Update comment reference to tracing agent doc.
install.sh Update GitHub repo and API endpoints to libra-tools.
docs/development/tracing/plan.md Update path references and verification guidance for doc reorg (needs follow-up fixes).
docs/development/tracing/memory.md Update references to tracing agent doc (needs link target fix).
docs/development/internal/code-agent-runtime.md Update companion-doc references and repo commit link (needs link target fixes).
docs/development/gap/grit-gap.md Update integration plan path reference.
docs/development/gap/agent-trace.md Update pinned git-internal version references in the doc.
docs/development/commands/commit-tree.md Remove pinned git-internal version reference in doc.
docs/development/commands/code.md Add stub index doc pointing to tracing/code.md.
docs/development/commands/agent.md Add stub index doc pointing to tracing/agent.md.
docs/development/commands/_general.md Update integration plan path references.
docs/development/cli-error-contract-design.md Update GitHub issue links to libra-tools.
docs/development/account.md Update integration plan reference path.
docs/commands/zh-CN/open.md Update examples/output URLs to libra-tools.
docs/commands/package.md Update tracing agent doc reference.
docs/commands/open.md Update examples/output URLs to libra-tools.
docs/code-of-conduct.md Update org naming from Web3 Infrastructure Foundation to Libra Tools.
COMPATIBILITY.md Update AI provider hooks doc link to tracing agent doc.
Cargo.toml Bump crate version to 0.18.1; update repo/homepage/authors; bump git-internal to 0.8.1.
Cargo.lock Lockfile updates for version bump and dependency upgrades (incl. git-internal 0.8.1).
AGENTS.md Update integration plan path and agent-doc references.

[`ai-object-model-reference.md`](../ai/object-model-reference.md) 中所记录的三层对象模型。

如果本文档与 `agent.md` 或 `agent-workflow.md`(见 [`agent-workflow.md`](../ai/workflow.md))有冲突,以那两份文档为准。此外,外部 agent 捕获契约(见 [`docs/development/commands/agent.md`](./commands/agent.md))在其覆盖的存储与捕获面、MCP 边界(见 [`docs/development/mcp.md`](./mcp.md))在其覆盖的 MCP 命令面,亦各自为准。
如果本文档与 `agent.md` 或 `agent-workflow.md`(见 [`agent-workflow.md`](../ai/workflow.md))有冲突,以那两份文档为准。此外,外部 agent 捕获契约(见 [`docs/development/tracing/agent.md`](./commands/agent.md))在其覆盖的存储与捕获面、MCP 边界(见 [`docs/development/mcp.md`](./mcp.md))在其覆盖的 MCP 命令面,亦各自为准。
**验证**:

- [ ] `test ! -e docs/development/commands/agent.md && test ! -e docs/development/commands/code.md && test ! -e docs/development/code-agent-runtime.md && test ! -e docs/development/agent.md && test ! -e docs/development/web-only.md`
- [ ] `test ! -e docs/development/tracing/agent.md && test ! -e docs/development/commands/code.md && test ! -e docs/development/code-agent-runtime.md && test ! -e docs/development/agent.md && test ! -e docs/development/web-only.md`
> Status: agent-executable(可交给 Agent 按卡执行;本文档已包含自举清单、执行协议、代码漂移防护、测试骨架、接口契约与常见陷阱,具备直接开发条件)
> Scope: 先设计并落地独立 Agent framework,再迁移 TUI-owned 行为,最后移除 Code TUI 并让 Web Code UI 成为唯一交互面;新增 entireio/cli 对齐轨道只扩展外部 Agent 能力、checkpoint/export 与 review/investigate 工作流,不改变 MCP 与内部 AgentRuntime 的边界。
> Companion docs: Web/runtime 现状见 [`docs/development/commands/_general.md`](commands/_general.md);控制面契约见 [`docs/commands/code-control.md`](../commands/code-control.md);`libra agent` 外部捕获公共 CLI/API、E1-E9 wire 契约、AG-16~AG-24 任务卡与验收命令见 [`docs/development/commands/agent.md`](commands/agent.md);MCP stdio 独立命令拆分见 [`mcp.md`](mcp.md)。
> Companion docs: Web/runtime 现状见 [`docs/development/commands/_general.md`](commands/_general.md);控制面契约见 [`docs/commands/code-control.md`](../commands/code-control.md);`libra agent` 外部捕获公共 CLI/API、E1-E9 wire 契约、AG-16~AG-24 任务卡与验收命令见 [`docs/development/tracing/agent.md`](commands/agent.md);MCP stdio 独立命令拆分见 [`mcp.md`](mcp.md)。
Comment thread src/cli.rs
Comment on lines 1806 to 1810
/// Scenario: running `libra` with no arguments should show usage information without
/// an `error:` prefix, matching the behaviour of `git` and other standard tools.
/// The underlying `arg_required_else_help = true` flag triggers clap's
/// `DisplayHelpOnMissingArgumentOrSubcommand` path, which we treat the same as
/// `DisplayHelp` — i.e. print and return `Ok(())`.
Comment thread src/command/restore.rs
Comment on lines +983 to +1001
fn tree_item_mode_to_index_mode(mode: TreeItemMode) -> Option<u32> {
match mode {
TreeItemMode::Blob => Some(0o100644),
TreeItemMode::BlobExecutable => Some(0o100755),
TreeItemMode::Link => Some(0o120000),
TreeItemMode::Commit => Some(0o160000),
TreeItemMode::Tree => None,
}
}

fn index_mode_to_tree_item_mode(mode: u32) -> Option<TreeItemMode> {
match mode {
0o100644 => Some(TreeItemMode::Blob),
0o100755 => Some(TreeItemMode::BlobExecutable),
0o120000 => Some(TreeItemMode::Link),
0o160000 => Some(TreeItemMode::Commit),
_ => None,
}
}
Comment thread src/command/reset.rs
Comment on lines +928 to +938
fn tree_item_mode_to_index_mode(mode: TreeItemMode) -> Result<u32, ResetError> {
match mode {
TreeItemMode::Blob => Ok(0o100644),
TreeItemMode::BlobExecutable => Ok(0o100755),
TreeItemMode::Link => Ok(0o120000),
TreeItemMode::Commit => Ok(0o160000),
TreeItemMode::Tree => Err(ResetError::RevisionCorrupt(
"tree entry cannot be stored directly in index".to_string(),
)),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants