Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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-lua = "0.5.0"
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]
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Handles `.lua` files.
//! The plugin parses source with Tree-sitter inside Rust/Wasm.

use intentdiff_plugin_sdk::{
use intentumdiff_plugin_sdk::{
cst::CstNode,
hash::structural_hash_with_memo,
tree::{SemanticNode, SemanticNodeBuilder},
Expand All @@ -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<String>) -> Vec<LanguageInfoRecord> {
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);
Expand Down Expand Up @@ -94,7 +94,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() {
Expand Down Expand Up @@ -189,7 +189,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<CstNode, String> {
let mut parser = tree_sitter::Parser::new();
Expand Down Expand Up @@ -268,7 +268,7 @@ export!(LuaParser);
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() {
Expand Down
Loading