feat: add macOS build scripts and update input schema handling

- Introduced new build scripts for macOS targeting Intel architecture, including options for debug and release builds.
- Updated input schema handling in the skill instance to ensure consistent naming with the `inputSchema` property for better compatibility with JSON serialization.
This commit is contained in:
M3gA-Mind
2026-03-19 11:37:41 +05:30
parent 232767c19a
commit a0654c0b67
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -12,6 +12,8 @@
"compile": "tsc --noEmit",
"preview": "vite preview",
"tauri": "tauri",
"macos:build:intel": "source scripts/load-dotenv.sh && tauri build --bundles app dmg --target x86_64-apple-darwin",
"macos:build:intel:debug": "yarn macos:build:intel --debug",
"macos:build:debug": "yarn macos:build:release --debug",
"macos:build:release": "source scripts/load-dotenv.sh && tauri build --bundles app dmg",
"macos:build:sign:release": "source scripts/load-env.sh && tauri build --bundles app dmg",
+1 -1
View File
@@ -827,7 +827,7 @@ fn extract_tools(js_ctx: &rquickjs::Ctx<'_>, state: &Arc<RwLock<SkillState>>) {
return {
name: t.name || "",
description: t.description || "",
input_schema: t.inputSchema || t.input_schema || {}
inputSchema: t.inputSchema || t.input_schema || {}
};
}));
})()
+1 -1
View File
@@ -133,7 +133,7 @@ pub struct ToolDefinition {
/// Human-readable description.
pub description: String,
/// JSON Schema for the tool's input parameters.
#[serde(default)]
#[serde(default, rename = "inputSchema")]
pub input_schema: serde_json::Value,
}