From ffe876a59925af836a9f776d226add8122748fe8 Mon Sep 17 00:00:00 2001 From: n1ckyb Date: Sun, 9 Aug 2026 19:14:50 +0100 Subject: [PATCH 1/2] fix: import the SDK by its post-rebrand crate name This crate declares intentumdiff-plugin-sdk in Cargo.toml but imported intentdiff_plugin_sdk in code, so it has not compiled since the rebrand - failing on lib code, not just tests. The WIT module path (intentdiff::plugin::parser) and the WIT package id (intentdiff:plugin@1.0.0) are a wire CONTRACT and are deliberately unchanged. Co-Authored-By: Claude Opus 5 --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c7ab622..5dcae10 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ //! Handles generic SQL (tree-sitter-sql grammar). //! Delegates all CST processing to the shared `sql-parser-lib` crate. -use intentdiff_plugin_sdk::cst::CstNode; +use intentumdiff_plugin_sdk::cst::CstNode; use sql_parser_lib; wit_bindgen::generate!({ @@ -19,7 +19,7 @@ use crate::exports::intentdiff::plugin::parser::ParserMode; const PLUGIN_METADATA: &str = include_str!("../plugin_metadata.info"); fn language_info_for(ids: Vec) -> Vec { - let metadata = intentdiff_plugin_sdk::metadata::parse_plugin_metadata(PLUGIN_METADATA); + let metadata = intentumdiff_plugin_sdk::metadata::parse_plugin_metadata(PLUGIN_METADATA); ids.into_iter() .map(|language_id| { let info = metadata.language_or_default(&language_id); @@ -140,7 +140,7 @@ export!(SqlParser); mod tests { use super::*; use crate::exports::intentdiff::plugin::parser::Guest; - use intentdiff_plugin_sdk::testing as t; + use intentumdiff_plugin_sdk::testing as t; #[test] fn grammar_id_nonempty() { From 2f3edff4c2ce34695574879df831a27d0b4b2720 Mon Sep 17 00:00:00 2001 From: n1ckyb Date: Sun, 9 Aug 2026 19:22:33 +0100 Subject: [PATCH 2/2] fix(deps): pin the SDK tag that carries the renamed crate This crate declares intentumdiff-plugin-sdk but pinned tag v0.1.0, where the SDK still declares name = intentdiff-plugin-sdk. Cargo resolves a git dependency by package name, so it failed with 'no matching package named intentumdiff-plugin-sdk' regardless of the imports. v0.0.2-beta.1 is the first SDK tag carrying the renamed crate. Paired with the import fix on this branch so the crate actually builds. Co-Authored-By: Claude Opus 5 --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e3973d4..46baa49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,15 +10,15 @@ publish = false crate-type = ["cdylib"] [dependencies] -intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.1.0" } -sql-parser-lib = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.1.0" } +intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.0.2-beta.1" } +sql-parser-lib = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.0.2-beta.1" } serde_json = "1" tree-sitter = "0.25" tree-sitter-sequel = "0.3.11" wit-bindgen = { version = "0.57", default-features = false, features = ["std", "macros"] } [dev-dependencies] -intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.1.0", features = ["testing"] } +intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.0.2-beta.1", features = ["testing"] } # Plugins target WASI p2 (Component Model); mirrors the monorepo's certified build profile. [profile.release]