viveworker 0.1.0
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/README.md +178 -0
- package/launchd/io.viveworker.app.plist.example +39 -0
- package/ntfy/docker-compose.yml.example +10 -0
- package/ntfy/server.yml.example +28 -0
- package/package.json +24 -0
- package/scripts/lib/markdown-render.mjs +274 -0
- package/scripts/lib/pairing.mjs +83 -0
- package/scripts/viveworker-bridge.mjs +8892 -0
- package/scripts/viveworker.mjs +1353 -0
- package/viveworker.env.example +99 -0
- package/web/app.css +2303 -0
- package/web/app.js +3867 -0
- package/web/i18n.js +937 -0
- package/web/icons/apple-touch-icon.png +0 -0
- package/web/icons/viveworker-beacon-v.svg +19 -0
- package/web/icons/viveworker-icon-1024.png +0 -0
- package/web/icons/viveworker-icon-192.png +0 -0
- package/web/icons/viveworker-icon-512.png +0 -0
- package/web/icons/viveworker-v-check.svg +19 -0
- package/web/icons/viveworker-v-pulse.svg +24 -0
- package/web/index.html +17 -0
- package/web/manifest.webmanifest +22 -0
- package/web/sw.js +153 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# viveworker local web UI
|
|
2
|
+
WEB_UI_ENABLED=1
|
|
3
|
+
AUTH_REQUIRED=1
|
|
4
|
+
SESSION_SECRET=
|
|
5
|
+
SESSION_TTL_MS=2592000000
|
|
6
|
+
DEVICE_TRUST_TTL_MS=2592000000
|
|
7
|
+
PAIRING_CODE=
|
|
8
|
+
PAIRING_TOKEN=
|
|
9
|
+
PAIRING_EXPIRES_AT_MS=0
|
|
10
|
+
CHOICE_PAGE_SIZE=5
|
|
11
|
+
MAX_HISTORY_ITEMS=100
|
|
12
|
+
MAX_READ_BYTES=2097152
|
|
13
|
+
WEB_PUSH_ENABLED=0
|
|
14
|
+
ALLOW_INSECURE_LAN_HTTP=0
|
|
15
|
+
TLS_CERT_FILE=
|
|
16
|
+
TLS_KEY_FILE=
|
|
17
|
+
WEB_PUSH_VAPID_PUBLIC_KEY=
|
|
18
|
+
WEB_PUSH_VAPID_PRIVATE_KEY=
|
|
19
|
+
WEB_PUSH_SUBJECT=mailto:viveworker@example.com
|
|
20
|
+
|
|
21
|
+
# Fill in your own ntfy values.
|
|
22
|
+
|
|
23
|
+
# Hosted example:
|
|
24
|
+
# NTFY_BASE_URL=https://ntfy.sh
|
|
25
|
+
#
|
|
26
|
+
# Recommended self-hosted same-WiFi example:
|
|
27
|
+
# NTFY_BASE_URL=http://192.168.1.23:8080
|
|
28
|
+
# Use a long random topic, and prefer NTFY_ACCESS_TOKEN over password auth.
|
|
29
|
+
|
|
30
|
+
NTFY_BASE_URL=
|
|
31
|
+
NTFY_PUBLISH_BASE_URL=
|
|
32
|
+
NTFY_TOPIC=
|
|
33
|
+
|
|
34
|
+
# Optional auth for private servers.
|
|
35
|
+
NTFY_ACCESS_TOKEN=
|
|
36
|
+
NTFY_USERNAME=
|
|
37
|
+
NTFY_PASSWORD=
|
|
38
|
+
|
|
39
|
+
# Optional click-through URL.
|
|
40
|
+
NTFY_CLICK_URL=
|
|
41
|
+
|
|
42
|
+
# ntfy priority accepts: min, low, default, high, max/urgent, or 1-5.
|
|
43
|
+
NTFY_APPROVAL_PRIORITY=high
|
|
44
|
+
NTFY_COMPLETE_PRIORITY=default
|
|
45
|
+
NTFY_PLAN_PRIORITY=high
|
|
46
|
+
APPROVAL_TITLE=要承認
|
|
47
|
+
COMPLETE_TITLE=完了
|
|
48
|
+
PLAN_TITLE=プラン確認
|
|
49
|
+
PLAN_READY_TITLE=プラン詳細
|
|
50
|
+
COMPLETION_DETAIL_THRESHOLD_CHARS=100
|
|
51
|
+
PLAN_REQUEST_TTL_MS=900000
|
|
52
|
+
|
|
53
|
+
# Comma-separated ntfy tags. Emoji short codes are supported by ntfy.
|
|
54
|
+
NTFY_APPROVAL_TAGS=warning,computer
|
|
55
|
+
NTFY_COMPLETE_TAGS=white_check_mark,computer
|
|
56
|
+
NTFY_PLAN_TAGS=memo,computer
|
|
57
|
+
|
|
58
|
+
# Optional path overrides.
|
|
59
|
+
# `npx viveworker setup` normally writes these into ~/.viveworker/config.env for you.
|
|
60
|
+
# Leave them empty unless you intentionally want manual absolute paths.
|
|
61
|
+
CODEX_HOME=
|
|
62
|
+
STATE_FILE=
|
|
63
|
+
|
|
64
|
+
# Polling behavior.
|
|
65
|
+
POLL_INTERVAL_MS=2500
|
|
66
|
+
REPLAY_SECONDS=300
|
|
67
|
+
SESSION_INDEX_REFRESH_MS=30000
|
|
68
|
+
DIRECTORY_SCAN_INTERVAL_MS=30000
|
|
69
|
+
|
|
70
|
+
# Toggle notification types.
|
|
71
|
+
NOTIFY_APPROVALS=1
|
|
72
|
+
NOTIFY_COMPLETIONS=1
|
|
73
|
+
NOTIFY_PLANS=1
|
|
74
|
+
NATIVE_APPROVALS=1
|
|
75
|
+
ENABLE_NTFY=0
|
|
76
|
+
|
|
77
|
+
# Native codex.app approval pages for iPhone.
|
|
78
|
+
# Use HTTPS for LAN access whenever possible. Plain HTTP over LAN requires
|
|
79
|
+
# ALLOW_INSECURE_LAN_HTTP=1 and is not recommended.
|
|
80
|
+
# Use a public LAN URL the iPhone can reach. This can be different from NTFY_PUBLISH_BASE_URL.
|
|
81
|
+
NATIVE_APPROVAL_SERVER_PUBLIC_BASE_URL=
|
|
82
|
+
NATIVE_APPROVAL_SERVER_HOST=127.0.0.1
|
|
83
|
+
NATIVE_APPROVAL_SERVER_PORT=8810
|
|
84
|
+
|
|
85
|
+
# App-server runner settings for interactive iPhone approvals.
|
|
86
|
+
# If empty, the runner derives the host from NTFY_BASE_URL.
|
|
87
|
+
APPROVAL_SERVER_PUBLIC_BASE_URL=
|
|
88
|
+
APPROVAL_SERVER_HOST=0.0.0.0
|
|
89
|
+
APPROVAL_SERVER_PORT=8788
|
|
90
|
+
|
|
91
|
+
# Optional defaults for app-server turns.
|
|
92
|
+
APP_SERVER_APPROVAL_POLICY=
|
|
93
|
+
APP_SERVER_SANDBOX_MODE=
|
|
94
|
+
APP_SERVER_NETWORK_ACCESS=0
|
|
95
|
+
APP_SERVER_PERMISSION_SCOPE=turn
|
|
96
|
+
APP_SERVER_RESUME_LATEST=0
|
|
97
|
+
APP_SERVER_MODEL=
|
|
98
|
+
APP_SERVER_NOTIFY_APPROVALS=1
|
|
99
|
+
APP_SERVER_NOTIFY_COMPLETIONS=0
|