@ait-co/devtools 0.1.139 → 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 +66 -11
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +65 -12
- package/dist/mock/index.js.map +1 -1
- package/dist/panel/index.js +5 -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
|
|
@@ -27966,6 +27945,10 @@ const IAP = createMockProxy("IAP", {
|
|
|
27966
27945
|
Object.assign(async function requestTossPayPaysBilling(options) {
|
|
27967
27946
|
const { nextResult, failReason } = aitState.state.payment;
|
|
27968
27947
|
console.log("[@ait-co/devtools] requestTossPayPaysBilling:", options.params.wrappedToken);
|
|
27948
|
+
if (aitState.state.failureModes.softResolve?.requestTossPayPaysBilling) return {
|
|
27949
|
+
false: "BILLING_FAILED",
|
|
27950
|
+
reason: "mock soft-resolve (env3 unprovisioned)"
|
|
27951
|
+
};
|
|
27969
27952
|
await new Promise((r) => setTimeout(r, 300));
|
|
27970
27953
|
if (nextResult === "success") return { success: true };
|
|
27971
27954
|
return {
|
|
@@ -30307,7 +30290,7 @@ function Panel() {
|
|
|
30307
30290
|
color: "#666",
|
|
30308
30291
|
fontWeight: 400
|
|
30309
30292
|
},
|
|
30310
|
-
children: ["v", "0.1.
|
|
30293
|
+
children: ["v", "0.1.141"]
|
|
30311
30294
|
}),
|
|
30312
30295
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
30313
30296
|
type: "button",
|