@elizaos/plugin-device-settings 2.0.11-beta.7

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -0
  3. package/package.json +68 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shaw Walters and elizaOS Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @elizaos/plugin-device-settings
2
+
3
+ Android device-settings overlay for elizaOS. Adds a full-screen UI panel that lets users adjust screen brightness, control per-stream audio volumes (media, ring, alarm, notifications, system, voice call), request Android default app roles (Home, Phone, SMS, Assistant), and jump directly to system settings panels — all through the `@elizaos/capacitor-system` native bridge.
4
+
5
+ ## What it does
6
+
7
+ | Capability | Details |
8
+ |---|---|
9
+ | **Brightness** | Slider + Apply button. Requires Android `WRITE_SETTINGS` permission; the UI shows a shortcut to grant it if missing. |
10
+ | **Volume** | Per-stream sliders for every audio stream the system exposes. Apply is per-stream. |
11
+ | **Default roles** | View and request Home, Phone/Dialer, SMS, and Assistant roles. Shows current assignment and whether the role is already held. |
12
+ | **Settings shortcuts** | One-tap deep links into System settings, Display, Sound, and Network panels. |
13
+
14
+ ## Platform support
15
+
16
+ Android only (`androidOnly: true`). The overlay is not rendered on iOS or desktop.
17
+
18
+ ## How to enable
19
+
20
+ Add the plugin to your elizaOS agent's plugin list:
21
+
22
+ ```ts
23
+ import deviceSettingsPlugin from "@elizaos/plugin-device-settings";
24
+
25
+ const agent = new AgentRuntime({
26
+ plugins: [deviceSettingsPlugin],
27
+ // ...
28
+ });
29
+ ```
30
+
31
+ The overlay app is registered automatically in the elizaOS UI shell when the package is loaded inside an elizaOS runtime.
32
+
33
+ ## Requirements
34
+
35
+ - Running inside the elizaOS Android shell.
36
+ - `@elizaos/capacitor-system` native Capacitor plugin registered in the native layer.
37
+ - Android `WRITE_SETTINGS` permission for brightness control (prompted from within the UI when missing).
38
+
39
+ ## Package
40
+
41
+ ```
42
+ @elizaos/plugin-device-settings
43
+ ```
44
+
45
+ Exports: `appDeviceSettingsPlugin` (default), `DeviceSettingsAppView`, `deviceSettingsApp`, `registerDeviceSettingsApp`, `DEVICE_SETTINGS_APP_NAME`.
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@elizaos/plugin-device-settings",
3
+ "version": "2.0.11-beta.7",
4
+ "type": "module",
5
+ "description": "Android Device Settings overlay app for ElizaOS — brightness, volume, Android roles, and system settings shortcuts.",
6
+ "main": "./dist/index.js",
7
+ "exports": {
8
+ "./package.json": "./package.json",
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./plugin": {
15
+ "types": "./dist/plugin.d.ts",
16
+ "import": "./dist/plugin.js",
17
+ "default": "./dist/plugin.js"
18
+ },
19
+ "./*.css": "./dist/*.css",
20
+ "./*": {
21
+ "types": "./dist/*.d.ts",
22
+ "import": "./dist/*.js",
23
+ "default": "./dist/*.js"
24
+ }
25
+ },
26
+ "scripts": {
27
+ "typecheck": "tsgo --noEmit -p tsconfig.json",
28
+ "lint": "bunx @biomejs/biome check src",
29
+ "test": "bunx vitest run --config ./vitest.config.ts",
30
+ "build": "bun run build:js && bun run build:types",
31
+ "clean": "rm -rf dist",
32
+ "build:js": "tsup --config ../tsup.plugin-packages.shared.ts",
33
+ "build:types": "tsc --noCheck -p tsconfig.build.json"
34
+ },
35
+ "dependencies": {
36
+ "@elizaos/app-core": "2.0.11-beta.7",
37
+ "@elizaos/capacitor-system": "2.0.11-beta.7",
38
+ "@elizaos/core": "2.0.11-beta.7",
39
+ "@elizaos/shared": "2.0.11-beta.7",
40
+ "@elizaos/ui": "2.0.11-beta.7",
41
+ "lucide-react": "^1.0.0"
42
+ },
43
+ "peerDependencies": {
44
+ "react": "^19.0.0",
45
+ "react-dom": "^19.0.0"
46
+ },
47
+ "elizaos": {
48
+ "app": {
49
+ "displayName": "Device Settings",
50
+ "category": "system",
51
+ "androidOnly": true,
52
+ "heroImage": "assets/hero.png"
53
+ }
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "types": "./dist/index.d.ts",
59
+ "files": [
60
+ "dist"
61
+ ],
62
+ "devDependencies": {
63
+ "tsup": "^8.5.1",
64
+ "typescript": "^6.0.3",
65
+ "vitest": "^4.0.17"
66
+ },
67
+ "gitHead": "cdbc876f793d96073d7eb0d09715a031ce0cd32e"
68
+ }