@ait-co/devtools 0.1.140 → 0.1.141
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.
- package/dist/mcp/cli.js +3 -3
- package/dist/mcp/server.js +1 -1
- package/dist/mock/index.d.ts +51 -9
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +57 -12
- package/dist/mock/index.js.map +1 -1
- package/dist/panel/index.js +1 -22
- package/dist/panel/index.js.map +1 -1
- package/package.json +1 -1
package/dist/panel/index.js
CHANGED
|
@@ -26832,27 +26832,6 @@ const _setClipboardText = async (text) => {
|
|
|
26832
26832
|
};
|
|
26833
26833
|
withPermission(_setClipboardText, "clipboard");
|
|
26834
26834
|
//#endregion
|
|
26835
|
-
//#region src/mock/device/contacts.ts
|
|
26836
|
-
/**
|
|
26837
|
-
* Contacts mock
|
|
26838
|
-
*/
|
|
26839
|
-
const _fetchContacts = async (options) => {
|
|
26840
|
-
checkPermission("contacts", "fetchContacts");
|
|
26841
|
-
let contacts = aitState.state.contacts;
|
|
26842
|
-
if (options.query?.contains) {
|
|
26843
|
-
const q = options.query.contains.toLowerCase();
|
|
26844
|
-
contacts = contacts.filter((c) => c.name.toLowerCase().includes(q) || c.phoneNumber.includes(q));
|
|
26845
|
-
}
|
|
26846
|
-
const sliced = contacts.slice(options.offset, options.offset + options.size);
|
|
26847
|
-
const nextOffset = options.offset + options.size;
|
|
26848
|
-
return {
|
|
26849
|
-
result: sliced,
|
|
26850
|
-
nextOffset: nextOffset < contacts.length ? nextOffset : null,
|
|
26851
|
-
done: nextOffset >= contacts.length
|
|
26852
|
-
};
|
|
26853
|
-
};
|
|
26854
|
-
withPermission(_fetchContacts, "contacts");
|
|
26855
|
-
//#endregion
|
|
26856
26835
|
//#region src/mock/device/haptic.ts
|
|
26857
26836
|
/**
|
|
26858
26837
|
* Haptic Feedback & saveBase64Data mock
|
|
@@ -30311,7 +30290,7 @@ function Panel() {
|
|
|
30311
30290
|
color: "#666",
|
|
30312
30291
|
fontWeight: 400
|
|
30313
30292
|
},
|
|
30314
|
-
children: ["v", "0.1.
|
|
30293
|
+
children: ["v", "0.1.141"]
|
|
30315
30294
|
}),
|
|
30316
30295
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
30317
30296
|
type: "button",
|