@contextableai/clawg-ui 0.3.1 → 0.3.2
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/index.js +2 -1
- package/dist/src/http-handler.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -108,7 +108,8 @@ const plugin = {
|
|
|
108
108
|
.command("devices")
|
|
109
109
|
.description("List approved devices")
|
|
110
110
|
.action(async () => {
|
|
111
|
-
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK types lag behind runtime
|
|
112
|
+
const devices = await api.runtime.channel.pairing.readAllowFromStore({ channel: "clawg-ui" });
|
|
112
113
|
if (devices.length === 0) {
|
|
113
114
|
console.log("No approved devices.");
|
|
114
115
|
return;
|
package/dist/src/http-handler.js
CHANGED
|
@@ -226,8 +226,8 @@ export function createAguiHttpHandler(api) {
|
|
|
226
226
|
// ---------------------------------------------------------------------------
|
|
227
227
|
// Pairing check: verify device is approved
|
|
228
228
|
// ---------------------------------------------------------------------------
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK types lag behind runtime; object form required in 2026.3.7+
|
|
230
|
+
const storeAllowFrom = await runtime.channel.pairing.readAllowFromStore({ channel: "clawg-ui" })
|
|
231
231
|
.catch(() => []);
|
|
232
232
|
const normalizedAllowFrom = storeAllowFrom.map((e) => e.replace(/^clawg-ui:/i, "").toLowerCase());
|
|
233
233
|
const allowed = normalizedAllowFrom.includes(deviceId.toLowerCase());
|
package/package.json
CHANGED