mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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 || {}
|
||||
};
|
||||
}));
|
||||
})()
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user