@elizaos/app-core 2.0.0-beta.1 → 2.0.0-beta.3
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/api/sensitive-request-routes.d.ts.map +1 -1
- package/api/sensitive-request-store.d.ts +12 -3
- package/api/sensitive-request-store.d.ts.map +1 -1
- package/package.json +3 -3
- package/platforms/electrobun/native/macos/window-effects.mm +103 -0
- package/platforms/electrobun/package.json +9 -0
- package/platforms/electrobun/src/__stubs__/bun-ffi.ts +16 -0
- package/platforms/electrobun/src/libMacWindowEffects.dylib +0 -0
- package/platforms/electrobun/src/native/agent.ts +74 -3
- package/platforms/electrobun/src/native/desktop.ts +39 -6
- package/platforms/electrobun/src/native/mac-window-effects.ts +61 -1
- package/platforms/electrobun/src/native/permissions-shared.ts +3 -2
- package/platforms/electrobun/src/native/permissions.ts +11 -6
- package/platforms/electrobun/src/rpc-handlers.ts +7 -0
- package/platforms/electrobun/src/rpc-schema.ts +39 -4
- package/platforms/electrobun/src/runtime-permissions.ts +7 -1
- package/runtime/ensure-local-inference-handler.d.ts +1 -0
- package/runtime/ensure-local-inference-handler.d.ts.map +1 -1
- package/runtime/ensure-local-inference-handler.js +9 -0
- package/runtime/mode/remote-forwarder.d.ts.map +1 -1
- package/runtime/mode/remote-forwarder.js +1 -1
- package/runtime/mode/runtime-mode.d.ts +20 -2
- package/runtime/mode/runtime-mode.d.ts.map +1 -1
- package/runtime/mode/runtime-mode.js +80 -1
- package/scripts/aosp/stage-default-models.mjs +2 -2
- package/scripts/build-llama-cpp-dflash.mjs +75 -40
- package/scripts/kernel-patches/metal-kernels.mjs +357 -337
- package/scripts/lib/read-app-identity.mjs +5 -1
- package/services/local-inference/catalog.d.ts +2 -1
- package/services/local-inference/catalog.d.ts.map +1 -1
- package/services/local-inference/catalog.js +131 -12
- package/services/local-inference/downloader.d.ts +2 -0
- package/services/local-inference/downloader.d.ts.map +1 -1
- package/services/local-inference/downloader.js +300 -1
- package/services/local-inference/manifest/validator.d.ts.map +1 -1
- package/services/local-inference/manifest/validator.js +57 -2
- package/services/local-inference/providers.d.ts +1 -1
- package/services/local-inference/providers.js +6 -6
- package/services/local-inference/registry.d.ts.map +1 -1
- package/services/local-inference/registry.js +10 -1
- package/services/local-inference/types.d.ts +6 -0
- package/services/local-inference/types.d.ts.map +1 -1
- package/test/helpers/real-runtime.ts +21 -20
- package/platforms/electrobun/src/native/permissions-darwin.ts +0 -342
- package/platforms/electrobun/src/native/permissions-linux.ts +0 -34
- package/platforms/electrobun/src/native/permissions-win32.ts +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
PermissionCheckResult,
|
|
3
|
-
SystemPermissionId,
|
|
4
|
-
} from "./permissions-shared";
|
|
5
|
-
|
|
6
|
-
export async function checkPermission(
|
|
7
|
-
id: SystemPermissionId,
|
|
8
|
-
): Promise<PermissionCheckResult> {
|
|
9
|
-
switch (id) {
|
|
10
|
-
case "microphone":
|
|
11
|
-
case "camera":
|
|
12
|
-
// Windows desktop privacy state is not reliably observable here.
|
|
13
|
-
// Report requestable until runtime capture actually proves access.
|
|
14
|
-
return { status: "not-determined", canRequest: true };
|
|
15
|
-
|
|
16
|
-
case "shell":
|
|
17
|
-
return { status: "granted", canRequest: false };
|
|
18
|
-
|
|
19
|
-
case "accessibility":
|
|
20
|
-
case "screen-recording":
|
|
21
|
-
return { status: "not-applicable", canRequest: false };
|
|
22
|
-
|
|
23
|
-
default:
|
|
24
|
-
return { status: "not-applicable", canRequest: false };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export async function requestPermission(
|
|
29
|
-
id: SystemPermissionId,
|
|
30
|
-
): Promise<PermissionCheckResult> {
|
|
31
|
-
if (id === "microphone" || id === "camera") {
|
|
32
|
-
await openPrivacySettings(id);
|
|
33
|
-
}
|
|
34
|
-
return checkPermission(id);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export async function openPrivacySettings(
|
|
38
|
-
id: SystemPermissionId,
|
|
39
|
-
): Promise<void> {
|
|
40
|
-
const settingsMap: Record<string, string> = {
|
|
41
|
-
microphone: "ms-settings:privacy-microphone",
|
|
42
|
-
camera: "ms-settings:privacy-webcam",
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const uri = settingsMap[id];
|
|
46
|
-
if (uri) {
|
|
47
|
-
try {
|
|
48
|
-
Bun.spawn(["cmd", "/c", "start", uri], {
|
|
49
|
-
stdout: "ignore",
|
|
50
|
-
stderr: "ignore",
|
|
51
|
-
});
|
|
52
|
-
} catch {
|
|
53
|
-
// Settings unavailable
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|