diff --git a/Cargo.toml b/Cargo.toml index 7ca074e..5a11bdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,14 +10,14 @@ publish = false crate-type = ["cdylib"] [dependencies] -intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.1.0", features = ["ts-convert"] } +intentumdiff-plugin-sdk = { git = "https://github.com/buchochelliq-labs/intentumdiff-plugin-sdk", tag = "v0.0.2-beta.1", features = ["ts-convert"] } serde_json = "1" tree-sitter = "0.25" tree-sitter-ruby = "0.23.1" 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] diff --git a/src/lib.rs b/src/lib.rs index f1035c8..a72d1fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ //! Handles `.rb`, `.rake`, `.gemspec` files. The host parses source with //! tree-sitter-ruby and sends the CST as JSON. -use intentdiff_plugin_sdk::{ +use intentumdiff_plugin_sdk::{ cst::CstNode, hash::structural_hash_with_memo, tree::{SemanticNode, SemanticNodeBuilder}, @@ -22,7 +22,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); @@ -105,7 +105,7 @@ fn label_for(node: &CstNode) -> String { return node.text_or_empty().to_string(); } // Literal containers label with their captured source text (SDK-shared, issue #47). - if let Some(label) = intentdiff_plugin_sdk::ts_convert::literal_label(node) { + if let Some(label) = intentumdiff_plugin_sdk::ts_convert::literal_label(node) { return label; } match node.node_type.as_str() { @@ -168,7 +168,7 @@ fn convert( -use intentdiff_plugin_sdk::ts_convert::{convert_semantic_classed, node_to_cst}; +use intentumdiff_plugin_sdk::ts_convert::{convert_semantic_classed, node_to_cst}; fn parse_source(source: &str) -> Result { let mut parser = tree_sitter::Parser::new(); @@ -254,7 +254,7 @@ export!(RubyParser); 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() {