Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

merge: integrate PR #1740 Fast mode into origin/main

agent9c2e0c09beb0
diff --cc crates/host-core/src/db.rs
index e69e1e7c7,26eb28cfb..c700c38b7
--- a/crates/host-core/src/db.rs
+++ b/crates/host-core/src/db.rs
@@@ -7,7 -7,7 +7,7 @@@ pub(crate) use serde_json::Value
pub(crate) use std::path::{Path, PathBuf};
/// Current SQLite schema version.
--pub const SCHEMA_VERSION: i64 = 26;
++pub const SCHEMA_VERSION: i64 = 27;
/// Absolute approval deadline for a newly submitted Plan or Goal proposal.
pub const PLAN_APPROVAL_TIMEOUT_MS: i64 = 30 * 60 * 1000;
@@@ -23,8 -23,8 +23,9 @@@ mod project_groups
mod repositories;
mod schema;
mod session_collaboration_migration;
+ mod session_fast_mode_migration;
mod session_title_source_migration;
+mod tool_image_storage_migration;
mod worktree_migration;
pub(crate) use migrations::{
archive_legacy_db, create_migration_backup, migrate_and_validate_top_level_mode,
@@@ -45,6 -45,7 +46,7 @@@ pub(crate) use repositories::
OBSOLETE_PLAN_APPROVAL_PERMISSION_MODE,
};
pub(crate) use schema::{PLAN_APPROVALS_SCHEMA, SCHEMA_LATEST, SESSION_TODO_DDL};
-pub(crate) use session_fast_mode_migration::migrate_v25_to_v26;
++pub(crate) use session_fast_mode_migration::migrate_v26_to_v27;
pub(crate) use session_title_source_migration::migrate_v22_to_v23;
pub(crate) use worktree_migration::{migrate_v23_to_v24, WORKTREE_DDL};
diff --cc crates/host-core/src/db/repositories.rs
index 0b346cb0b,1354344aa..0791856dc
--- a/crates/host-core/src/db/repositories.rs
+++ b/crates/host-core/src/db/repositories.rs
@@@ -211,8 -211,8 +211,11 @@@ impl Database
super::model_discovery_migration::migrate(&conn, path)?;
}
25 => {
- migrate_v25_to_v26(&conn, path)?;
+ super::tool_image_storage_migration::migrate(&conn, path)?;
+ }
++ 26 => {
++ migrate_v26_to_v27(&conn, path)?;
+ }
legacy @ 1..=6 => {
let _ = conn.execute_batch("PRAGMA wal_checkpoint(TRUNCATE);");
drop(conn);
@@@ -270,7 -270,7 +273,11 @@@
migrated_version = conn.query_row("PRAGMA user_version", [], |row| row.get(0))?;
}
if migrated_version == 25 {
- migrate_v25_to_v26(&conn, path)?;
+ super::tool_image_storage_migration::migrate(&conn, path)?;
++ migrated_version = conn.query_row("PRAGMA user_version", [], |row| row.get(0))?;
++ }
++ if migrated_version == 26 {
++ migrate_v26_to_v27(&conn, path)?;
}
let db = Self { conn, data_dir };
db.boot_maintenance()?;
diff --cc crates/host-core/src/db/session_fast_mode_migration.rs
index 000000000,4a22f3ed9..9e4a2a81c
mode 000000,100644..100644
--- a/crates/host-core/src/db/session_fast_mode_migration.rs
+++ b/crates/host-core/src/db/session_fast_mode_migration.rs
@@@ -1,0 -1,33 +1,33 @@@
+ use super::{create_migration_backup, Connection, Context, Path, Result};
+ use rusqlite::Transaction;
+
-/// v26 stores the per-session `/fast` switch (ADR 0334). Every existing
++/// v27 stores the per-session `/fast` switch (ADR 0334). Every existing
+ /// session keeps the default service tier.
-fn migrate_v25_to_v26_tx(tx: &Transaction<'_>) -> Result<()> {
++fn migrate_v26_to_v27_tx(tx: &Transaction<'_>) -> Result<()> {
+ let has_fast_mode: bool = tx.query_row(
+ "SELECT EXISTS(SELECT 1 FROM pragma_table_info('sessions') WHERE name = 'fast_mode')",
+ [],
+ |row| row.get(0),
+ )?;
+ if !has_fast_mode {
+ tx.execute_batch(
+ "ALTER TABLE sessions ADD COLUMN fast_mode INTEGER NOT NULL DEFAULT 0
+ CHECK (fast_mode IN (0, 1));",
+ )?;
+ }
- tx.pragma_update(None, "user_version", 26i64)?;
++ tx.pragma_update(None, "user_version", 27i64)?;
+ Ok(())
+ }
+
-pub(crate) fn migrate_v25_to_v26(conn: &Connection, path: &Path) -> Result<()> {
- let backup = create_migration_backup(conn, path, 25)?;
++pub(crate) fn migrate_v26_to_v27(conn: &Connection, path: &Path) -> Result<()> {
++ let backup = create_migration_backup(conn, path, 26)?;
+ let tx = conn.unchecked_transaction()?;
- migrate_v25_to_v26_tx(&tx)?;
++ migrate_v26_to_v27_tx(&tx)?;
+ tx.commit().with_context(|| {
+ format!(
- "commit schema v25 to v26 migration; backup {} remains",
++ "commit schema v26 to v27 migration; backup {} remains",
+ backup.display()
+ )
+ })?;
+ Ok(())
+ }
diff --cc crates/host-core/src/db/tests.rs
index 205fd8597,b35c6dd52..4f3e115aa
--- a/crates/host-core/src/db/tests.rs
+++ b/crates/host-core/src/db/tests.rs
@@@ -427,6 -427,43 +427,43 @@@ fn worktree_registry_enforces_one_row_p
);
}
-/// v26 adds the per-session `/fast` column (ADR 0334). Existing sessions keep
++/// v27 adds the per-session `/fast` column (ADR 0334). Existing sessions keep
+ /// their configuration, default to the normal tier, and a backup remains.
+ #[test]
+ fn v25_database_gains_session_fast_mode_defaulting_off() {
+ let dir = tempfile::tempdir().unwrap();
+ let path = dir.path().join("pi.sqlite");
+ let session_id = {
+ let db = Database::open(&path).unwrap();
+ let session = crate::sessions::create_session_with_thinking(
+ &db,
+ Some("Kept".into()),
+ None,
+ None,
+ None,
+ None,
+ Some("high".into()),
+ )
+ .unwrap();
+ db.conn()
+ .execute_batch("ALTER TABLE sessions DROP COLUMN fast_mode;")
+ .unwrap();
+ db.conn().pragma_update(None, "user_version", 25).unwrap();
+ session.id
+ };
+
+ let db = Database::open(&path).unwrap();
+ assert_eq!(schema_version(db.conn()), SCHEMA_VERSION);
+ assert!(migration_backup_path(&path, 25).exists());
+ let summary = crate::sessions::get_session(&db, &session_id)
+ .unwrap()
+ .unwrap()
+ .summary;
+ assert_eq!(summary.title, "Kept");
+ assert_eq!(summary.thinking_level, "high");
+ assert!(!summary.fast_mode);
+ }
+
/// v21 owns the session checklist. A real v20 database has neither the
/// `sessions` stamps nor the `session_todo` table, so the upgrade must add
/// both, keep the v20 rows, leave a readable pre-migration backup, and stay
diff --cc crates/host-core/src/db/tool_image_storage_migration.rs
index fd039b55a,000000000..641812459
mode 100644,000000..100644
--- a/crates/host-core/src/db/tool_image_storage_migration.rs
+++ b/crates/host-core/src/db/tool_image_storage_migration.rs
@@@ -1,181 -1,0 +1,181 @@@
+use super::{create_migration_backup, Connection, Context, Path, Result};
+
+/// v25 → v26 marks the storage-private lossless tool-image envelope. No table
+/// changes or transcript conversion happen at startup. Earlier applications
+/// refuse this version before they can interpret encoded transcript records.
+pub(super) fn migrate(conn: &Connection, path: &Path) -> Result<()> {
+ let backup = create_migration_backup(conn, path, 25)?;
+ let tx = conn.unchecked_transaction()?;
+ tx.pragma_update(None, "user_version", 26i64)?;
+ tx.commit().with_context(|| {
+ format!(
+ "commit schema v25 to v26 storage migration; backup {} remains",
+ backup.display()
+ )
+ })?;
+ Ok(())
+}
+
+#[cfg(test)]
+mod tests {
+ use crate::db::*;
+ use rusqlite::types::Value as SqlValue;
+
+ fn version(conn: &Connection) -> i64 {
+ conn.query_row("PRAGMA user_version", [], |row| row.get(0))
+ .unwrap()
+ }
+
+ fn legacy_database(path: &Path) {
+ let db = Database::open(path).unwrap();
+ db.conn().execute_batch("INSERT INTO kv(ns,key,value_json,updated_at) VALUES ('fixture','config','{\"exact\":true}',1);
+ INSERT INTO providers(id,name,config_json,created_at,updated_at) VALUES ('fixture','Saved provider','{\"baseUrl\":\"https://example.test\"}',1,1);
+ INSERT INTO models(provider_id,model_id,display_name,source,updated_at) VALUES ('fixture','saved-model','Saved model','user',1);
+ INSERT INTO sessions(id,title,title_source,provider_id,model_id,last_seq,created_at,updated_at) VALUES ('fixture-session','Saved session','manual','fixture','saved-model',1,1,1);
+ INSERT INTO turns(id,session_id,status,started_at,ended_at) VALUES ('fixture-turn','fixture-session','completed',1,2);
+ INSERT INTO messages(id,session_id,turn_id,seq,role,text,created_at) VALUES ('fixture-message','fixture-session','fixture-turn',0,'user','Saved searchable text',1);
+ PRAGMA user_version=25;").unwrap();
+ }
+
+ fn rows(conn: &Connection, table: &str) -> Vec<Vec<SqlValue>> {
+ // The test controls every table name; values remain SQLite-owned data.
+ let mut statement = conn
+ .prepare(&format!("SELECT * FROM {table} ORDER BY 1"))
+ .unwrap();
+ let columns = statement.column_count();
+ statement
+ .query_map([], |row| {
+ (0..columns).map(|column| row.get(column)).collect()
+ })
+ .unwrap()
+ .collect::<rusqlite::Result<_>>()
+ .unwrap()
+ }
+
+ #[test]
+ fn schema_25_upgrades_only_the_version_and_keeps_legacy_files_and_backup() {
+ let dir = tempfile::tempdir().unwrap();
+ let path = dir.path().join("pi.sqlite");
+ legacy_database(&path);
+ let before = Connection::open(&path).unwrap();
+ let tables = [
+ "kv",
+ "providers",
+ "models",
+ "sessions",
+ "messages",
+ "turns",
+ "message_revisions",
+ "sqlite_master",
+ ];
+ let snapshots: Vec<_> = tables.iter().map(|table| rows(&before, table)).collect();
+ drop(before);
+ let files = [
+ crate::transcripts::transcript_path(dir.path(), "fixture-session").unwrap(),
+ crate::transcripts::revisions_path(dir.path(), "fixture-session").unwrap(),
+ crate::transcripts::inflight_path(dir.path(), "fixture-session").unwrap(),
+ ];
+ for file in &files {
+ std::fs::create_dir_all(file.parent().unwrap()).unwrap();
+ std::fs::write(file, b"legacy bytes are not rewritten on database open\n").unwrap();
+ }
+ let db = Database::open(&path).unwrap();
- assert_eq!(version(db.conn()), 26);
++ assert_eq!(version(db.conn()), 27);
+ let backup_path = migration_backup_path(&path, 25);
+ let backup = Connection::open(&backup_path).unwrap();
+ assert_eq!(version(&backup), 25);
+ for (table, snapshot) in tables.iter().zip(&snapshots) {
+ assert_eq!(&rows(db.conn(), table), snapshot, "live {table}");
+ assert_eq!(&rows(&backup, table), snapshot, "backup {table}");
+ }
+ for file in &files {
+ assert_eq!(
+ std::fs::read(file).unwrap(),
+ b"legacy bytes are not rewritten on database open\n"
+ );
+ }
+ drop(backup);
+ drop(db);
+ let original_backup = std::fs::read(&backup_path).unwrap();
+ let db = Database::open(&path).unwrap();
- assert_eq!(version(db.conn()), 26);
++ assert_eq!(version(db.conn()), 27);
+ assert_eq!(
+ std::fs::read(backup_path).unwrap(),
+ original_backup,
+ "reopening must not replace the schema-25 backup"
+ );
+ }
+
+ #[test]
- fn fresh_database_uses_26_and_future_27_is_refused() {
++ fn fresh_database_uses_27_and_future_28_is_refused() {
+ let dir = tempfile::tempdir().unwrap();
+ let path = dir.path().join("pi.sqlite");
+ let db = Database::open(&path).unwrap();
- assert_eq!(version(db.conn()), 26);
- db.conn().pragma_update(None, "user_version", 27).unwrap();
++ assert_eq!(version(db.conn()), 27);
++ db.conn().pragma_update(None, "user_version", 28).unwrap();
+ drop(db);
+ let error = Database::open(&path)
+ .err()
+ .expect("future schema must be refused");
- assert!(error.to_string().contains("27 is newer than supported 26"));
- assert_eq!(version(&Connection::open(path).unwrap()), 27);
++ assert!(error.to_string().contains("28 is newer than supported 27"));
++ assert_eq!(version(&Connection::open(path).unwrap()), 28);
+ }
+
+ #[test]
+ fn schema_24_chains_through_25_and_its_original_model_migration_stays_single_step() {
+ let dir = tempfile::tempdir().unwrap();
+ let path = dir.path().join("pi.sqlite");
+ legacy_database(&path);
+ let conn = Connection::open(&path).unwrap();
+ conn.execute_batch(
+ "ALTER TABLE models DROP COLUMN discovery_state; PRAGMA user_version=24;",
+ )
+ .unwrap();
+ super::super::model_discovery_migration::migrate(&conn, &path).unwrap();
+ assert_eq!(
+ version(&conn),
+ 25,
+ "the model migration still produces schema 25"
+ );
+ drop(conn);
+ // Recreate the old version to exercise Database::open's complete chain.
+ let conn = Connection::open(&path).unwrap();
+ conn.execute_batch(
+ "ALTER TABLE models DROP COLUMN discovery_state; PRAGMA user_version=24;",
+ )
+ .unwrap();
+ drop(conn);
+ let db = Database::open(&path).unwrap();
- assert_eq!(version(db.conn()), 26);
++ assert_eq!(version(db.conn()), 27);
+ for schema in [24, 25] {
+ let backup = Connection::open(migration_backup_path(&path, schema)).unwrap();
+ assert_eq!(version(&backup), schema);
+ }
+ assert_eq!(rows(db.conn(), "messages").len(), 1);
+ }
+ #[test]
+ fn failed_version_stamp_keeps_schema_25_and_its_readable_backup() {
+ let dir = tempfile::tempdir().unwrap();
+ let path = dir.path().join("pi.sqlite");
+ legacy_database(&path);
+ let conn = Connection::open(&path).unwrap();
+ let original = rows(&conn, "messages");
+ conn.pragma_update(None, "query_only", true).unwrap();
+ let error = super::migrate(&conn, &path).unwrap_err();
+ assert!(error.to_string().contains("readonly"), "{error:#}");
+ assert_eq!(version(&conn), 25);
+ assert_eq!(rows(&conn, "messages"), original);
+ let backup = Connection::open(migration_backup_path(&path, 25)).unwrap();
+ assert_eq!(version(&backup), 25);
+ assert_eq!(rows(&backup, "messages"), original);
+ let integrity: String = backup
+ .query_row("PRAGMA integrity_check", [], |row| row.get(0))
+ .unwrap();
+ assert_eq!(integrity, "ok");
+ drop(backup);
+ // The failed transaction releases its lock so the same DB can retry.
+ conn.pragma_update(None, "query_only", false).unwrap();
+ super::migrate(&conn, &path).unwrap();
+ assert_eq!(version(&conn), 26);
+ }
+}
diff --cc crates/host-core/src/plugins/providers/tests.rs
index 83aaef330,5f1b269c5..bb8aa55a1
--- a/crates/host-core/src/plugins/providers/tests.rs
+++ b/crates/host-core/src/plugins/providers/tests.rs
@@@ -99,10 -99,11 +99,12 @@@ fn a_new_database_carries_the_owner_col
let (_dir, db, _secrets) = test_context();
// v17 added the owner column, v18 the turn-queue priority column,
// v19 session omit, v21 the session Todo checklist, and v22 the
- // session-list index, v23 the session title source, and v24 the worktree
- // registry; v25 adds model discovery state; v26 marks lossless image storage. A fresh database is stamped with the newest version, so the
+ // session-list index, v23 the session title source, v24 the worktree
- // registry, v25 model discovery state, and v26 the session Fast mode
- // switch. A fresh database is stamped with the newest version, so the
++ // registry, v25 model discovery state, v26 lossless image storage, and v27
++ // the session Fast mode switch. A fresh database is stamped with the
++ // newest version, so the
// column set is the current one.
-- assert_eq!(SCHEMA_VERSION, 26);
++ assert_eq!(SCHEMA_VERSION, 27);
let version: i64 = db
.conn()
.query_row("PRAGMA user_version", [], |row| row.get(0))
diff --cc crates/host-core/src/turn_queue.rs
index d64b6e53b,d64b6e53b..adbbd0f77
--- a/crates/host-core/src/turn_queue.rs
+++ b/crates/host-core/src/turn_queue.rs
@@@ -532,7 -532,7 +532,7 @@@ mod tests
assert_eq!(entries[0].content, "existing");
assert!(entries[0].user_message_id.is_none());
assert!(entries[0].voice_origin.is_none());
-- assert_eq!(crate::db::SCHEMA_VERSION, 26);
++ assert_eq!(crate::db::SCHEMA_VERSION, 27);
}
#[test]
diff --cc docs/adr/0334-openai-fast-mode.md
index 000000000,8453adb45..a4c3cbea0
mode 000000,100644..100644
--- a/docs/adr/0334-openai-fast-mode.md
+++ b/docs/adr/0334-openai-fast-mode.md
@@@ -1,0 -1,76 +1,76 @@@
+ # ADR 0334: OpenAI Fast mode as a per-session switch gated by model settings
+
+ - Status: Accepted
+ - Date: 2026-10-17
+ - Deciders: PI-Desktop maintainers
+ - Related: [ADR 0329](0329-session-worktree-isolation.md) ·
+ [03-runtime/11-provider-model-system](../spec/03-runtime/11-provider-model-system.md) ·
+ [04-ux/04-builtin-commands](../spec/04-ux/04-builtin-commands.md) ·
+ issue #1657 · E2E-FAST-MODE
+
+ ## Context
+
+ OpenAI serves a faster priority tier that Codex CLI and the OpenAI API call
+ Fast mode. On the wire it is the Responses body field `service_tier:
+ "priority"`; the Codex backend rejects `"fast"`. The tier costs more: a ChatGPT
+ subscription spends its plan limits faster, and the OpenAI API bills a higher
+ per-token price. PI-Desktop never asked for a tier. pi-ai's Responses and
+ Codex adapters already accept `serviceTier` and price the tier the response
+ reports, but `streamSimple` dropped the option while building its base options.
+
+ The cost is a decision about one conversation, while whether an endpoint
+ honors the field is something only the user knows for a relay. Issue #1657 asks
+ for the subscription speed-up; maintainers asked that capability be configured
+ in model settings.
+
+ ## Decision
+
+ 1. **Model settings own capability.** `ModelBinding.fastModeAllowed` is an
+ opt-in, stored in the existing provider `config_json` like
+ `nativeWebSearch`, so it needs no migration. The checkbox is enabled only
+ for Responses wires (`openai_codex_responses`, `responses`), including
+ relays; its hint names the cost on that wire.
+ 2. **`/fast` owns the session switch.** A new builtin `builtin.session.fast`
- (`/fast`) toggles a persisted `sessions.fast_mode` column (schema v26,
++ (`/fast`) toggles a persisted `sessions.fast_mode` column (schema v27,
+ additive, v25 backup). `session.create` and `session.configure` accept an
+ optional boolean `fastMode`; omission keeps the stored value. Forks copy it;
+ scheduled runs and delegated workers start off. A draft carries it into the
+ session its first prompt creates. Remote sessions refuse it.
+ 3. **`/fast` only works on a configured model.** When the selected model's
+ wire cannot carry the tier or the model is not allowed, `/fast` stores
+ nothing and points to Settings → Models → Advanced, in either direction. A
+ stale stored switch on such a model is inert because launch also requires
+ the opt-in.
+ 4. **The launcher resolves; the runtime only stamps the wire.** Session launch
+ sends `fastMode: true` to the sidecar only when the session switch is on and
+ the user's stored binding allows it. The runtime passes pi-ai's native
+ `serviceTier: "priority"` on main turns whose resolved wire is
+ `openai-codex-responses` or `openai-responses`; the existing pi-ai patch
+ forwards `serviceTier` through `streamSimple`, so the adapters also apply
+ their own tier pricing. Subagents, compaction, and one-shot plugin requests
+ build their own options and keep the default tier. Authorization belongs to
+ the launch model: when a trusted extension switches the runtime to one of
+ its own models (bridge `setModel` or agent activation), the runtime clears
+ the switch, since that model has no `fastModeAllowed` binding. The next
+ launch re-applies it through `setFastMode` from the stored binding.
+
+ ## Alternatives
+
+ - **Per-model switch only (no session state).** Avoids a migration, but turns
+ a per-conversation cost into a global one: enabling Fast for one task speeds
+ up and costs every conversation on that model.
+ - **Hard-coded capability rule (official OpenAI host only).** Removes a
+ setting, but excludes relays the user knows support the field and hides the
+ decision in code.
+ - **Generic request-parameter injection with presets.** More flexible, but an
+ arbitrary body-field channel needs its own validation and permission story,
+ which is larger than this need.
+
+ ## Consequences
+
-- Schema v26 adds one column; older apps opening a v26 database refuse it as
++- Schema v27 adds one column; older apps opening a v27 database refuse it as
+ newer, the existing downgrade behavior.
+ - The capability can be wrong for a relay that ignores or rebills the field;
+ the settings hint states that risk, and the user owns the opt-in.
+ - The Composer model chip shows a Fast mark while the switch is on for an
+ allowed model, so the cost is visible at send time.
diff --cc docs/spec/02-architecture/06-pi-runtime-dependency-boundary.md
index 5dd1ace7c,728aa4dca..ff14b6fdd
--- a/docs/spec/02-architecture/06-pi-runtime-dependency-boundary.md
+++ b/docs/spec/02-architecture/06-pi-runtime-dependency-boundary.md
@@@ -19,11 -19,8 +19,12 @@@ in `docs/project/pi-140-adoption.md`
prompt-template expansion, and session-context projection.
- `@earendil-works/pi-ai` supplies provider transports, auth, message types,
request retries, and token estimation. Hosted-search request and estimation
- behavior remains covered by PI-Desktop's pi-ai patch and contract tests.
+ behavior, and forwarding `serviceTier` through `streamSimple` for Fast mode
+ (ADR 0334), remain covered by PI-Desktop's pi-ai patch and contract tests.
+- Agent Runtime and subagents pass an explicit client identity: pi-ai keeps its
+ detailed versioned `User-Agent`, while `attribution: null` suppresses
+ pi-agent-core's default Pi attribution headers for OpenRouter, NVIDIA, and
+ OpenCode requests.
- Rust `host-core` remains the sole owner of SQLite and authoritative durable
session state. The Node sidecar asks it to persist checkpoints and tool
outcomes through the existing RPC contract.
diff --cc docs/spec/03-runtime/04-data-storage.md
index c979a72f0,b8d5e5272..927c5f0a0
--- a/docs/spec/03-runtime/04-data-storage.md
+++ b/docs/spec/03-runtime/04-data-storage.md
@@@ -1,32 -1,4 +1,32 @@@
--# 04. Data Storage (Schema v26)
++# 04. Data Storage (Schema v27)
+
+
+### Lossless tool-image storage (#1868)
+
+Transcript format 2 uses an optional storage-private `binaryStorage` version 1
+envelope. Each recognized image/blob string appears once in its record; typed
+JSON paths and exact text templates reconstruct the original structured result
+and JSON mirror. Templates preserve key order, whitespace and escape spelling. Nested proven
+mirrors share text references when their outer JSON string token has canonical
+JSON spelling, as produced by `JSON.stringify`; other spellings stay literal.
+Arbitrary narrative text is never inferred to be an image or a result mirror.
+The public `UiMessage`, plugin card inputs, extension context, model history and
+existing RPC request/response objects contain the complete decoded values.
+
+Live transcripts, revisions, checkpoints, compaction tails and the Desktop
+outbox share the lossless representation. A first append/update converts an
+existing legacy file through a verified sibling temporary file and atomic
+replacement. Reading alone never converts files. Conversion failure preserves
+the original and propagates an error. Invalid references/unknown codec versions
+are errors; restoration must not continue with an empty history.
+
+New code reads both plain legacy records and encoded records. Database schema
+26 is a version-only migration with a schema-25 backup: it stops older applications
+from misreading a new encoded file. It does not alter user configuration or
+rewrite transcripts at startup. Downgrading to an old application requires a
+complete compatible backup, not merely swapping the SQLite file. No external
+blob directory, new file cleanup lifecycle or lossy image transform is added.
+
## 0. Ownership decision
@@@ -1616,7 -1590,7 +1618,7 @@@ truncating at a guessed position
- JSON columns are read blind on hot paths (shipped to the renderer as-is);
anything filtered or summed is a promoted column by rule.
- ## 7. Versioning, v7 reset, and v8-to-v23 migration
-## 7. Versioning, v7 reset, and v8-to-v26 migration
++## 7. Versioning, v7 reset, and v8-to-v27 migration
- `PRAGMA user_version` stays the schema authority; future structural changes
add ordered Rust migration fns again, each in one transaction, with a
@@@ -1627,7 -1601,7 +1629,7 @@@
Sessions, providers, and settings from the old file are not carried over;
the archive remains for manual recovery. All pre-v7 migration code
(v1 `settings.sqlite` import, v2→v6 chain) is deleted.
- - Fresh installs run the full v25 DDL directly.
-- Fresh installs run the full v26 DDL directly.
++- Fresh installs run the full v27 DDL directly.
- **Schema v7 first reaches v8, then uses the guarded path.** The v7→v8
migration is followed by the same guarded v8→v15 migration; schema-v9 and
schema-v10 databases take the same guarded path and receive an exact readable
@@@ -1691,6 -1665,15 +1693,19 @@@
- **Schema v23 is additive.** It adds `sessions.title_source` with default
`legacy`. Pre-existing v22 titles remain `legacy`, safely protecting deliberate
renames from automatic replacement. The migration keeps a v22 backup.
+ - **Schema v24 is additive.** It adds the `worktrees` registry and
+ `projects.worktree_setup_command` for isolated sessions (ADR 0329). The
+ migration keeps a v23 backup.
+ - **Schema v25 is additive.** It adds nullable `models.discovery_state` (§ 4).
+ The migration keeps a v24 backup.
-- **Schema v26 is additive.** It adds `sessions.fast_mode` (ADR 0334), the
++- **Schema v26 is additive.** It marks the storage-private lossless tool-image
++ envelope (#1868). It is a version-only migration with a v25 backup: it stops
++ older applications from misreading an encoded transcript file, without
++ altering user configuration or rewriting transcripts at startup.
++- **Schema v27 is additive.** It adds `sessions.fast_mode` (ADR 0334), the
+ session `/fast` switch, defaulting to `0` for every existing session. Forks
+ copy it; scheduled runs and delegated workers start at `0`. The migration
- keeps a v25 backup.
++ keeps a v26 backup.
- **Schema v14 is additive.** It adds nullable `sessions.deleted_at`, the
partial deletion index, and `session_import_origins`. Existing sessions stay
active and have no origin rows. The migration runs in the same guarded
diff --cc docs/spec/06-delivery/04-e2e-test-plan.md
index 651ef0d22,fa5720aee..3de443c3f
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@@ -18951,6 -18897,42 +18951,42 @@@ host-created files. The full app's file
`apps/desktop/test/main-wiring-contract.test.mjs`; the interactive Electron
scenario remains a manual validation run.
+ ### E2E-FAST-MODE: `/fast` asks for the priority tier only on an allowed model
+
+ - **Preconditions**: A ChatGPT subscription (Codex) account and a Responses
+ API-key provider, each with two configured models. No real provider is
+ required for the automated path; the manual path uses a capturing local
+ endpoint or the user's authorized account.
+ - **Steps**:
+ 1. In Settings → Models, check **Fast mode** on one model of each provider.
+ Confirm the checkbox is disabled on a Chat Completions provider.
+ 2. Start a new task on the allowed Codex model, type `/fast`, send a prompt.
+ 3. Send `/fast` again, then send another prompt.
+ 4. Switch the session to the model without the opt-in and send `/fast`.
+ 5. Fork the session while Fast is on; restart the app and reopen both.
+ - **Expected**: Step 1 persists `fastModeAllowed` on the binding only. Step 2
+ shows the Fast mark on the model chip and the request body carries
+ `service_tier: "priority"`; a Responses API-key model shows the per-token
+ price toast instead. Step 3 clears the mark and the field. Step 4 refuses
+ with the model-settings hint and stores nothing. Step 5 keeps the switch on
+ the fork and across restart. Subagent and compaction requests never carry
+ the field. Remote sessions refuse `/fast`. A trusted extension that switches
+ the session to its own Responses model sends its next request without the
+ field.
+ - **Specs linked**: `03-runtime/11-provider-model-system.md`,
- `03-runtime/04-data-storage.md` (v26), `04-ux/04-builtin-commands.md`,
++ `03-runtime/04-data-storage.md` (v27), `04-ux/04-builtin-commands.md`,
+ ADR 0334, issue #1657.
+ - **Status**: Automated coverage: `apps/desktop/test/fast-mode-command.test.mjs`
+ (draft → created session, toggle, refusals, remote, chip),
+ `apps/desktop/test/fast-mode-session-launch.test.mjs` (launch resolution),
+ `packages/agent-runtime/src/fast-mode.test.ts` (request body through the real
+ pi-ai Responses and Completions adapters),
+ `packages/agent-runtime/src/fast-mode-reuse.test.ts` (mid-session switch on a
+ reused runtime; an extension model switch drops the tier), host-core
+ migration, RPC and fork
+ tests. The full settings → `/fast` → captured request path is a manual
+ validation scenario.
+
### E2E-PROVIDER-optional-client-certificate
- **Preconditions:** The locked Electron 43 runtime, built workspace packages,
diff --cc docs/zh-CN/spec/02-architecture/06-pi-runtime-dependency-boundary.md
index 072b30f31,c1247addb..269c1a464
--- a/docs/zh-CN/spec/02-architecture/06-pi-runtime-dependency-boundary.md
+++ b/docs/zh-CN/spec/02-architecture/06-pi-runtime-dependency-boundary.md
@@@ -16,9 -12,8 +16,10 @@@ Sidecar 将 `@earendil-works/pi-agent-c
- `@earendil-works/pi-agent-core` 提供 Agent 循环,以及稳定的 agent、event、tool
类型。Agent Runtime 自行维护桌面专用的上下文投影、压缩和 prompt 模板展开。
- `@earendil-works/pi-ai` 提供提供商传输、认证、消息类型、请求重试和 token 估算。
- Hosted search 请求与估算行为继续由 PI-Desktop 的 pi-ai 补丁和契约测试覆盖。
+ Hosted search 请求与估算行为,以及为 Fast 模式让 `streamSimple` 转发 `serviceTier`
+ (ADR 0334),继续由 PI-Desktop 的 pi-ai 补丁和契约测试覆盖。
+- Agent Runtime 和 subagent 显式传入客户端身份:保留 pi-ai 的详细版本化
+ `User-Agent`,并以 `attribution: null` 关闭 pi-agent-core 默认的 Pi 归属请求头。
- Rust `host-core` 仍然是 SQLite 和权威持久会话状态的唯一所有者。Node sidecar
通过现有 RPC 契约请求持久化检查点和工具结果。
- `@earendil-works/pi-coding-agent` 是过渡期依赖。生产代码仅在原生 Pi 会话续接及
diff --cc docs/zh-CN/spec/03-runtime/04-data-storage.md
index 4d0a78edc,b747bd035..77023c8c3
--- a/docs/zh-CN/spec/03-runtime/04-data-storage.md
+++ b/docs/zh-CN/spec/03-runtime/04-data-storage.md
@@@ -1,4 -1,4 +1,4 @@@
--# 04. 数据存储(架构 v26)
++# 04. 数据存储(架构 v27)
> **翻译说明:** 本页是与 [英文源规格](/spec/03-runtime/04-data-storage) 一一对应的机器辅助翻译。代码、协议字段和标识符保持原文;如翻译与英文源事实有歧义,以英文版本为准。
@@@ -1194,7 -1168,7 +1196,7 @@@ outbox 排空。渲染器侧的停止�
- JSON 列在热路径上盲读(按原样发送到渲染器);
任何过滤或求和的内容都是按规则提升的列。
- ## 7. 版本控制、v7 重置和 v8 到 v23 迁移
-## 7. 版本控制、v7 重置和 v8 到 v26 迁移
++## 7. 版本控制、v7 重置和 v8 到 v27 迁移
- `PRAGMA user_version` 保留模式权限;未来的结构性变化
再次添加有序的 Rust 迁移 fns,每个都在一个事务中,并带有一个
@@@ -1205,7 -1179,7 +1207,7 @@@
旧文件中的会话、提供程序和设置不会保留;
存档仍保留以供手动恢复。所有 v7 之前的迁移代码
(v1 `settings.sqlite` 导入,v2→v6 链)被删除。
- - 全新安装直接运行完整的 v23 DDL。
-- 全新安装直接运行完整的 v26 DDL。
++- 全新安装直接运行完整的 v27 DDL。
- **架构 v15 是增量的。** 它增加 `turn_queue` 表及其两个索引(D386 / ADR 0213),使 Host
拥有的回合队列在重启后存活;不改动任何已有行,迁移前保留 `pi.sqlite.v14.bak`。
- **架构 v16 是增量的。** 它增加会话协作 link 和投递表、生命周期索引,以及可为空的
@@@ -1218,6 -1192,12 +1220,15 @@@
v22 标题保留为 `legacy`,防止主动重命名被自动覆盖。迁移前保留 v22 备份。
v15→v16 会话协作步骤现在写入 `16`(它自己的版本)而不是最新的架构常量,
因此 v15 文件可以在一次启动中走完两个步骤。
+ - **架构 v24 是增量的。** 它为隔离会话增加 `worktrees` 登记表和
+ `projects.worktree_setup_command`(ADR 0329)。迁移前保留 v23 备份。
+ - **架构 v25 是增量的。** 它增加可空的 `models.discovery_state`。迁移前保留 v24 备份。
-- **架构 v26 是增量的。** 它增加 `sessions.fast_mode`(ADR 0334),即会话的 `/fast`
++- **架构 v26 是增量的。** 它标记存储私有的无损工具图片信封(#1868)。这是只写版本的
++ 迁移,保留 v25 备份:让旧版本应用拒绝读取已编码的转录文件,而不修改用户配置或
++ 在启动时改写转录文件。
++- **架构 v27 是增量的。** 它增加 `sessions.fast_mode`(ADR 0334),即会话的 `/fast`
+ 开关,所有已有会话默认为 `0`。fork 会复制该值;定时任务运行和委托子会话从 `0` 开始。
- 迁移前保留 v25 备份。
++ 迁移前保留 v26 备份。
- **架构 v7 首先到达 v8,然后使用受保护的路径。** v7→v8
迁移之后是相同的受保护的 v8→v15 迁移;架构-v9 和
schema-v10 数据库采用相同的受保护路径并接收精确的可读数据
diff --cc docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index 55aaf7d5a,d0f1c2523..93bbba382
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@@ -10032,6 -9995,23 +10032,23 @@@ host-created files. The full app's file
- **验收**:项目折叠时仍能回答“这里是否有正在运行的工作”,且两种提示可从持久化设置独立控制。
- **状态**:草稿。现有 `apps/desktop/test/sidebar-project-runs.test.mjs` 覆盖数量分类、总开关与子开关门控、两种渲染入口,以及主题令牌和减少动态效果保证;它不覆盖设置 API 缺省值规范化或完整交互,相关场景仍需在可用环境手动验证。
+ ### E2E-FAST-MODE:`/fast` 只在允许的模型上请求优先档位
+
+ - **前置条件**:一个 ChatGPT 订阅(Codex)账号和一个 Responses API key 提供商,各配置两个模型。
+ 自动化路径不需要真实提供商;手动路径使用可捕获请求的本地端点或用户授权的账号。
+ - **步骤**:
+ 1. 在「设置 → 模型」中为每个提供商的一个模型勾选 **Fast 模式**;确认 Chat Completions 提供商上该勾选框不可用。
+ 2. 在允许的 Codex 模型上新建任务,输入 `/fast`,发送一条提示。
+ 3. 再次发送 `/fast`,然后再发送一条提示。
+ 4. 把会话切换到未允许的模型,发送 `/fast`。
+ 5. 在 Fast 开启时 fork 会话;重启应用后重新打开两个会话。
+ - **预期**:第 1 步只在 binding 上保存 `fastModeAllowed`。第 2 步模型芯片显示 Fast 标识,请求体带有
+ `service_tier: "priority"`;Responses API key 模型改为提示按 token 计费的价格。第 3 步清除标识和该字段。
+ 第 4 步给出模型设置提示并拒绝,不保存任何状态。第 5 步 fork 和重启后开关保持开启。子代理和压缩请求
+ 从不携带该字段。远程会话拒绝 `/fast`。可信扩展把会话切到它自己的 Responses 模型后,下一条请求不携带该字段。
-- **关联规格**:`03-runtime/11-provider-model-system.md`、`03-runtime/04-data-storage.md`(v26)、
++- **关联规格**:`03-runtime/11-provider-model-system.md`、`03-runtime/04-data-storage.md`(v27)、
+ `04-ux/04-builtin-commands.md`、ADR 0334、issue #1657。
+ - **状态**:自动化覆盖见英文版。完整的设置 → `/fast` → 捕获请求路径为手动验证场景。
### E2E-REMOTE-FILE-MANAGER:受限的插件远程读取
diff --cc patches/@[email protected]
index a809c7937,0b05e23ab..c12f0c691
--- a/patches/@[email protected]
+++ b/patches/@[email protected]
@@@ -761,7 -761,7 +761,7 @@@ index b418bfb7ca4e378b5b5c3115b79a6bcc7
const samplingParams = resolveSamplingParams(model, reasoningEffort ?? "off", options?.samplingParams);
if (samplingParams) {
diff --git a/dist/api/simple-options.js b/dist/api/simple-options.js
- index ed753df7ea29238c5ef2f1543c3568173be00df7..f3dfe613937fb901ee4b06673d45aa516cd650c9 100644
-index 4e36f350e..fd9225e5e 100644
++index ed753df7ea29238c5ef2f1543c3568173be00df7..0a1621a162bc6cff3b81550395c0efea0ef1149b 100644
--- a/dist/api/simple-options.js
+++ b/dist/api/simple-options.js
@@ -5,7 +5,7 @@ const MIN_MAX_TOKENS = 1;
@@@ -773,8 -773,16 +773,16 @@@
return Math.min(maxTokens, Math.max(MIN_MAX_TOKENS, available));
}
export function resolveSamplingParams(model, thinkingLevel, requestParams) {
-@@ -30,6 +30,7 @@ export function buildBaseOptions(model, context, options, apiKey) {
- sessionId: options?.sessionId,
++@@ -31,6 +32,7 @@ export function buildBaseOptions(model, context, options, apiKey) {
+ headers: options?.headers,
++ identity: options?.identity,
+ onPayload: options?.onPayload,
+ + serviceTier: options?.serviceTier,
+ onResponse: options?.onResponse,
+ onProviderStreamEvent: options?.onProviderStreamEvent,
+ timeoutMs: options?.timeoutMs,
diff --git a/dist/auth/oauth/anthropic.js b/dist/auth/oauth/anthropic.js
-index 0823512eb..713d38af6 100644
+index 0823512eb83d74167335cde72ae21ea32384572e..43d4cae89da499e481ee671c8fc2cccfcdde3dd4 100644
--- a/dist/auth/oauth/anthropic.js
+++ b/dist/auth/oauth/anthropic.js
@@ -4,6 +4,7 @@
@@@ -989,10 -997,19 +997,19 @@@ index 1443bb592b2913ba09579f3f555a2b094
-{"openai-completions":{"chat:deepseek-flash":{"id":"deepseek-flash","name":"DeepSeek V4.1 Flash","api":"openai-completions","baseUrl":"https://api.deepseek.com","provider":"deepseek","reasoning":true,"thinkingLevelMap":{"minimal":null,"low":"low","medium":null,"high":"high","max":"max"},"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"contextWindow":1000000,"maxTokens":384000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek","supportsStrictMode":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:deepseek-v4-pro":{"id":"deepseek-v4-pro","name":"DeepSeek V4 Pro","api":"openai-completions","baseUrl":"https://api.deepseek.com","provider":"deepseek","reasoning":true,"input":["text"],"cost":{"input":1.32,"output":3.96,"cacheRead":0.044,"cacheWrite":0},"contextWindow":1000000,"maxTokens":384000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek","supportsStrictMode":true,"supportsMidConvoSystemMessages":true},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"}}}
+{"openai-completions":{"chat:deepseek-flash":{"id":"deepseek-flash","name":"DeepSeek V4.1 Flash","api":"openai-completions","baseUrl":"https://api.deepseek.com","provider":"deepseek","reasoning":true,"thinkingLevelMap":{"minimal":null,"low":"low","medium":null,"high":"high","max":"max"},"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.006,"cacheWrite":0},"contextWindow":1000000,"maxTokens":384000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek","supportsStrictMode":true,"supportsMidConvoSystemMessages":true},"inputLimits":{"images":{"resize":{"maxWidth":2000,"maxHeight":2000,"maxBytes":4718592,"jpegQuality":80}}},"type":"chat"},"chat:deepseek-v4-pro":{"id":"deepseek-v4-pro","name":"DeepSeek V4 Pro","api":"openai-completions","baseUrl":"https://api.deepseek.com","provider":"deepseek","reasoning":true,"input":["text"],"cost":{"input":1.32,"output":3.96,"cacheRead":0.044,"cacheWrite":0},"contextWindow":1000000,"maxTokens":384000,"compat":{"supportsStore":false,"supportsDeveloperRole":false,"maxTokensField":"max_tokens","requiresReasoningContentOnAssistantMessages":true,"thinkingFormat":"deepseek","supportsStrictMode":true,"supportsMidConvoSystemMessages":true},"thinkingLevelMap":{"minimal":null,"low":null,"medium":null,"high":"high","max":"max"},"type":"chat"}}}
diff --git a/dist/types.d.ts b/dist/types.d.ts
- index e92eefd0889876a84929584675ef2ec441051a2b..a1246539ac6c3b6354f069657c83454345693b7d 100644
-index 022faa196..6295215ae 100644
++index e92eefd0889876a84929584675ef2ec441051a2b..7b00dcd6e9e7b84962675d23ea442c08b437ea6d 100644
--- a/dist/types.d.ts
+++ b/dist/types.d.ts
- @@ -282,6 +282,30 @@ export interface ToolCall {
-@@ -234,6 +234,8 @@ export interface SimpleStreamOptions extends StreamOptions {
++@@ -240,6 +240,8 @@ export interface SimpleStreamOptions extends StreamOptions {
+ };
+ /** Custom token budgets for thinking levels (token-based providers only) */
+ thinkingBudgets?: ThinkingBudgets;
+ + /** OpenAI Responses service tier; adapters without the field ignore it. */
+ + serviceTier?: "auto" | "default" | "flex" | "scale" | "priority";
+ }
+ export type StreamFunction<TApi extends Api = Api, TOptions extends StreamOptions = StreamOptions> = (model: Model<TApi>, context: TranscriptContext, options?: TOptions) => AssistantMessageEventStream;
+ export type ImagesFunction<TOptions extends ImagesOptions = ImagesOptions> = (model: ImageModel<ImageApi>, context: ImagesContext, options?: TOptions) => Promise<AssistantImages>;
-@@ -276,6 +278,30 @@ export interface ToolCall {
++@@ -282,6 +284,30 @@ export interface ToolCall {
*/
argumentsError?: string;
}
@@@ -1023,7 -1040,7 +1040,7 @@@
export interface Usage {
input: number;
output: number;
- @@ -367,7 +391,7 @@ export interface UserMessage {
-@@ -361,7 +387,7 @@ export interface UserMessage {
++@@ -367,7 +393,7 @@ export interface UserMessage {
}
export interface AssistantMessage {
role: "assistant";
@@@ -1032,7 -1049,7 +1049,7 @@@
api: Api;
provider: ProviderId;
model: string;
- @@ -382,6 +406,8 @@ export interface AssistantMessage {
-@@ -376,6 +402,8 @@ export interface AssistantMessage {
++@@ -382,6 +408,8 @@ export interface AssistantMessage {
stopReason: StopReason;
deferred?: DeferredHandle;
errorMessage?: string;
@@@ -1041,7 -1058,7 +1058,7 @@@
rawStopReason?: string;
/**
* Provider indication of whether the model explicitly ended its turn.
- @@ -617,6 +643,10 @@ export type AssistantMessageEvent = {
-@@ -611,6 +639,10 @@ export type AssistantMessageEvent = {
++@@ -617,6 +645,10 @@ export type AssistantMessageEvent = {
contentIndex: number;
toolCall: ToolCall;
partial: AssistantMessage;
@@@ -1052,7 -1069,7 +1069,7 @@@
} | {
type: "done";
reason: Extract<StopReason, "stop" | "length" | "toolUse" | "deferred">;
- @@ -648,6 +678,8 @@ export interface Model<TApi extends Api> extends BaseModel<TApi> {
-@@ -642,6 +674,8 @@ export interface Model<TApi extends Api> extends BaseModel<TApi> {
++@@ -648,6 +680,8 @@ export interface Model<TApi extends Api> extends BaseModel<TApi> {
*/
type?: "chat";
reasoning: boolean;
diff --cc pnpm-lock.yaml
index be4f35dbb,9ac9716c7..a5f7ce5b2
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@@ -205,9 -205,9 +205,9 @@@ overrides
vite@5: '>=6.4.3 <7'
patchedDependencies:
- '@earendil-works/[email protected]': afe17754a8c323f4010e051c96a66314ce96c1745a235c3efb5970cfea91a9b0
- '@earendil-works/[email protected]': a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2
- '@earendil-works/[email protected]': 5cb7070ec8e1695932e9968afa6828b36beb1face77418739d5cd01b2a07c371
+ '@earendil-works/[email protected]': f7df81a6d069cd0287276085d46d531684234acb7243dc032b1a1d73b17019da
- '@earendil-works/[email protected]': 37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8
++ '@earendil-works/[email protected]': 718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a
+ '@earendil-works/[email protected]': 1f1a1efed2ccd6fccef2608bf0cd304cd6af4c91824839189c73ab88953e5635
importers:
@@@ -233,11 -233,11 +233,11 @@@
version: 0.2.2
devDependencies:
'@earendil-works/pi-ai':
- specifier: 1.3.0
- version: 1.3.0(patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
+ specifier: 1.4.0
- version: 1.4.0(patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
++ version: 1.4.0(patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
'@earendil-works/pi-mcp':
- specifier: 1.3.0
- version: 1.3.0
+ specifier: 1.4.0
+ version: 1.4.0
'@pi-desktop/agent-host':
specifier: workspace:*
version: link:../../packages/agent-host
@@@ -428,14 -428,14 +428,14 @@@
packages/agent-runtime:
dependencies:
'@earendil-works/pi-agent-core':
- specifier: 1.3.0
- version: 1.3.0(patch_hash=afe17754a8c323f4010e051c96a66314ce96c1745a235c3efb5970cfea91a9b0)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
+ specifier: 1.4.0
+ version: 1.4.0(patch_hash=f7df81a6d069cd0287276085d46d531684234acb7243dc032b1a1d73b17019da)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
'@earendil-works/pi-ai':
- specifier: 1.3.0
- version: 1.3.0(patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
+ specifier: 1.4.0
- version: 1.4.0(patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
++ version: 1.4.0(patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
'@earendil-works/pi-coding-agent':
- specifier: 1.3.0
- version: 1.3.0(patch_hash=5cb7070ec8e1695932e9968afa6828b36beb1face77418739d5cd01b2a07c371)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])
+ specifier: 1.4.0
+ version: 1.4.0(patch_hash=1f1a1efed2ccd6fccef2608bf0cd304cd6af4c91824839189c73ab88953e5635)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])
'@pi-desktop/shared':
specifier: workspace:*
version: link:../shared
@@@ -5073,9 -5067,9 +5073,9 @@@ snapshots
transitivePeerDependencies:
- '@algolia/client-search'
- '@earendil-works/[email protected](patch_hash=afe17754a8c323f4010e051c96a66314ce96c1745a235c3efb5970cfea91a9b0)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
+ '@earendil-works/[email protected](patch_hash=f7df81a6d069cd0287276085d46d531684234acb7243dc032b1a1d73b17019da)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
dependencies:
- '@earendil-works/pi-ai': 1.4.0(patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
- '@earendil-works/pi-ai': 1.3.0(patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
++ '@earendil-works/pi-ai': 1.4.0(patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
typebox: 1.3.27
transitivePeerDependencies:
- '@aws-sdk/credential-provider-node'
@@@ -5090,7 -5084,7 +5090,7 @@@
- ws
- zod
- '@earendil-works/[email protected](patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
- '@earendil-works/[email protected](patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
++ '@earendil-works/[email protected](patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
dependencies:
'@anthropic-ai/sdk': 0.129.0([email protected])
'@aws-sdk/client-bedrock-runtime': 3.1127.0
@@@ -5115,7 -5109,7 +5115,7 @@@
- ws
- zod
- '@earendil-works/[email protected](patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
- '@earendil-works/[email protected](patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
++ '@earendil-works/[email protected](patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])':
dependencies:
'@anthropic-ai/sdk': 0.129.0([email protected])
'@aws-sdk/client-bedrock-runtime': 3.1127.0
@@@ -5144,13 -5138,13 +5144,13 @@@
dependencies:
quickjs-wasi: 3.6.2
- '@earendil-works/[email protected](patch_hash=5cb7070ec8e1695932e9968afa6828b36beb1face77418739d5cd01b2a07c371)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])':
+ '@earendil-works/[email protected](patch_hash=1f1a1efed2ccd6fccef2608bf0cd304cd6af4c91824839189c73ab88953e5635)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])':
dependencies:
- '@earendil-works/pi-agent-core': 1.3.0(patch_hash=afe17754a8c323f4010e051c96a66314ce96c1745a235c3efb5970cfea91a9b0)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
- '@earendil-works/pi-ai': 1.3.0(patch_hash=a5a1e6d0844e70af8a6d70083dc782bf4c110b50a6839195c20be2e3ee0678d2)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
- '@earendil-works/pi-codemode': 1.3.0
- '@earendil-works/pi-mcp': 1.3.0
- '@earendil-works/pi-tui': 1.3.0
+ '@earendil-works/pi-agent-core': 1.4.0(patch_hash=f7df81a6d069cd0287276085d46d531684234acb7243dc032b1a1d73b17019da)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
- '@earendil-works/pi-ai': 1.4.0(patch_hash=37f387538dbd7fb43eac5bf228691391c91481c08a36566be55a35a01c87b4e8)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
++ '@earendil-works/pi-ai': 1.4.0(patch_hash=718245c1ead731e1a464ec029f877b568827d58ffe1f3209994faeca44a4ca0a)(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])([email protected])([email protected])
+ '@earendil-works/pi-codemode': 1.4.0
+ '@earendil-works/pi-mcp': 1.4.0
+ '@earendil-works/pi-tui': 1.4.0
'@silvia-odwyer/photon-node': 0.3.4
brace-expansion: 5.0.12
chalk: 6.0.0