@steerable/agent-shell-tauri 0.6.44 → 0.6.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/host.rs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/agent-shell-tauri",
3
- "version": "0.6.44",
3
+ "version": "0.6.46",
4
4
  "description": "Reusable Tauri Rust host source for @steerable/agent-shell",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://steerableframework.com/",
package/src/host.rs CHANGED
@@ -287,13 +287,13 @@ fn node_compatible_path(path: &Path) -> PathBuf {
287
287
 
288
288
  let wide = path.as_os_str().encode_wide().collect::<Vec<_>>();
289
289
  let verbatim_unc = r"\\?\UNC\".encode_utf16().collect::<Vec<_>>();
290
- if let Some(rest) = wide.strip_prefix(&verbatim_unc) {
290
+ if let Some(rest) = wide.strip_prefix(verbatim_unc.as_slice()) {
291
291
  let mut normalized = r"\\".encode_utf16().collect::<Vec<_>>();
292
292
  normalized.extend_from_slice(rest);
293
293
  return PathBuf::from(OsString::from_wide(&normalized));
294
294
  }
295
295
  let verbatim = r"\\?\".encode_utf16().collect::<Vec<_>>();
296
- if let Some(rest) = wide.strip_prefix(&verbatim) {
296
+ if let Some(rest) = wide.strip_prefix(verbatim.as_slice()) {
297
297
  return PathBuf::from(OsString::from_wide(rest));
298
298
  }
299
299
  }