refactor: rename llm worker crate to engine

This commit is contained in:
2026-06-25 22:46:26 +09:00
parent 22598710fd
commit 292fc4ea5d
202 changed files with 1129 additions and 1125 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ license.workspace = true
async-trait = { workspace = true }
base64 = "0.22.1"
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
llm-worker = { workspace = true }
llm-engine = { workspace = true }
manifest = { workspace = true }
secrets = { workspace = true }
reqwest = { version = "0.13", features = ["json", "native-tls"] }
+3 -3
View File
@@ -2,7 +2,7 @@
## Role
`provider` resolves model/provider configuration and constructs provider-specific LLM clients for `llm-worker`.
`provider` resolves model/provider configuration and constructs provider-specific LLM clients for `llm-engine`.
## Boundaries
@@ -16,14 +16,14 @@ Owns:
Does not own:
- Worker turn lifecycle (`llm-worker`)
- Engine turn lifecycle (`llm-engine`)
- secret storage internals (`secrets`)
- Pod lifecycle (`pod`)
- product CLI parsing (`yoi`)
## Design notes
Provider API facts drift. Keep wire-format, auth, catalog, and capability differences here so Worker semantics remain stable.
Provider API facts drift. Keep wire-format, auth, catalog, and capability differences here so Engine semantics remain stable.
Codex OAuth is a separate integration from normal provider secret refs because its local file shape and lifecycle differ.
+1 -1
View File
@@ -15,7 +15,7 @@
use std::path::{Path, PathBuf};
use llm_worker::llm_client::capability::ModelCapability;
use llm_engine::llm_client::capability::ModelCapability;
use manifest::{AuthRef, ModelManifest, SchemeKind};
use serde::{Deserialize, Serialize};
+1 -1
View File
@@ -6,7 +6,7 @@
use std::path::PathBuf;
use llm_worker::llm_client::ClientError;
use llm_engine::llm_client::ClientError;
use thiserror::Error;
#[derive(Debug, Error)]
+3 -3
View File
@@ -4,8 +4,8 @@
//!
//! 設計:
//!
//! - llm-worker は [`AuthProvider`] trait しか知らず、実体である
//! [`CodexAuthProvider`] はこのクレートに置く(feedback_llm_worker_scope
//! - llm-engine は [`AuthProvider`] trait しか知らず、実体である
//! [`CodexAuthProvider`] はこのクレートに置く(feedback_llm_engine_scope
//! - access_token JWT の `exp` を読み、`now` 以下で proactive refresh
//! Codex CLI と同じバッファなし)
//! - 並行する Codex CLI / 別 yoi の refresh と取り違えないよう、
@@ -23,7 +23,7 @@ use std::sync::Arc;
use async_trait::async_trait;
use chrono::{Duration, Utc};
use llm_worker::llm_client::{ClientError, auth::AuthProvider};
use llm_engine::llm_client::{ClientError, auth::AuthProvider};
use reqwest::header::{HeaderName, HeaderValue};
use tokio::sync::Mutex;
+2 -2
View File
@@ -10,7 +10,7 @@
//! default_capability > scheme 既定 の順でフォールバック(上位 3 段は
//! `catalog::resolve_model_manifest` が [`ModelConfig`] に詰め込む)
//!
//! llm-worker は低レベル基盤に留める方針なので、高レベル側で必要に
//! llm-engine は低レベル基盤に留める方針なので、高レベル側で必要に
//! なる認証ストア解決(Codex OAuth の `~/.codex/auth.json` 読取等)は
//! このクレートに追加する。
@@ -19,7 +19,7 @@ pub mod codex_oauth;
use std::sync::Arc;
use llm_worker::llm_client::{
use llm_engine::llm_client::{
LlmClient,
capability::ModelCapability,
scheme::{