@lobu/runtime-device 24.1.1 → 24.3.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/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +46 -134
- package/npm-shrinkwrap.json +229 -730
- package/package.json +1 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +20 -5
- package/vendor/cli/dist/chrome-extension/accessibility-tree.js +834 -0
- package/vendor/cli/dist/chrome-extension/ambient-context.js +53 -0
- package/vendor/cli/dist/chrome-extension/auth-refresh.js +167 -0
- package/vendor/cli/dist/chrome-extension/automation-run.js +13 -0
- package/vendor/cli/dist/chrome-extension/background.js +1155 -0
- package/vendor/cli/dist/chrome-extension/bridge.js +140 -0
- package/vendor/cli/dist/chrome-extension/browser-origin-policy.js +62 -0
- package/vendor/cli/dist/chrome-extension/browser-recovery.js +260 -0
- package/vendor/cli/dist/chrome-extension/browser-url-sanitizer.js +284 -0
- package/vendor/cli/dist/chrome-extension/completion-response.js +12 -0
- package/vendor/cli/dist/chrome-extension/config.js +144 -0
- package/vendor/cli/dist/chrome-extension/connector-manifests/chrome.json +1516 -0
- package/vendor/cli/dist/chrome-extension/connector-manifests/chrome_bookmarks.json +84 -0
- package/vendor/cli/dist/chrome-extension/connector-manifests/chrome_downloads.json +86 -0
- package/vendor/cli/dist/chrome-extension/connector-manifests/chrome_history.json +78 -0
- package/vendor/cli/dist/chrome-extension/connector-manifests.js +1767 -0
- package/vendor/cli/dist/chrome-extension/console-capture.js +627 -0
- package/vendor/cli/dist/chrome-extension/control-activity.js +70 -0
- package/vendor/cli/dist/chrome-extension/debugger-lease.js +439 -0
- package/vendor/cli/dist/chrome-extension/feed-listener.js +488 -0
- package/vendor/cli/dist/chrome-extension/feed-transaction.js +48 -0
- package/vendor/cli/dist/chrome-extension/feeds.js +632 -0
- package/vendor/cli/dist/chrome-extension/focus-tab.js +25 -0
- package/vendor/cli/dist/chrome-extension/fonts/dm-mono-latin-500-normal.woff2 +0 -0
- package/vendor/cli/dist/chrome-extension/fonts/dm-sans-latin-400-normal.woff2 +0 -0
- package/vendor/cli/dist/chrome-extension/fonts/dm-sans-latin-600-normal.woff2 +0 -0
- package/vendor/cli/dist/chrome-extension/heartbeat.js +140 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-128-rec.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-128.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-16-rec.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-16.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-32-rec.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-32.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-48-rec.png +0 -0
- package/vendor/cli/dist/chrome-extension/icons/icon-48.png +0 -0
- package/vendor/cli/dist/chrome-extension/lens-page.js +135 -0
- package/vendor/cli/dist/chrome-extension/lens-target.js +20 -0
- package/vendor/cli/dist/chrome-extension/manifest.json +76 -0
- package/vendor/cli/dist/chrome-extension/network-intercept.js +657 -0
- package/vendor/cli/dist/chrome-extension/page-activation.js +120 -0
- package/vendor/cli/dist/chrome-extension/page-dialogs.js +125 -0
- package/vendor/cli/dist/chrome-extension/page-url.js +11 -0
- package/vendor/cli/dist/chrome-extension/panel-session.js +184 -0
- package/vendor/cli/dist/chrome-extension/poll-auth.js +85 -0
- package/vendor/cli/dist/chrome-extension/poll-backoff.js +22 -0
- package/vendor/cli/dist/chrome-extension/run-fence.js +117 -0
- package/vendor/cli/dist/chrome-extension/setup-status.js +71 -0
- package/vendor/cli/dist/chrome-extension/side-panel-action-click.js +65 -0
- package/vendor/cli/dist/chrome-extension/sidepanel-context.js +50 -0
- package/vendor/cli/dist/chrome-extension/sidepanel.html +680 -0
- package/vendor/cli/dist/chrome-extension/sidepanel.js +1643 -0
- package/vendor/cli/dist/chrome-extension/tab-labels.js +233 -0
- package/vendor/cli/dist/chrome-extension/tools.js +3354 -0
- package/vendor/cli/dist/chrome-extension/watch-observer.js +354 -0
- package/vendor/cli/dist/chrome-extension/watch-redact.js +96 -0
- package/vendor/cli/dist/chrome-extension/watch.js +348 -0
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +6 -4
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +5 -3
- package/vendor/cli/dist/commands/_lib/apply/diff.js +4 -3
- package/vendor/cli/dist/commands/_lib/chrome-for-testing.d.ts +13 -0
- package/vendor/cli/dist/commands/_lib/chrome-for-testing.js +226 -0
- package/vendor/cli/dist/commands/_lib/device-credential.d.ts +34 -0
- package/vendor/cli/dist/commands/_lib/device-credential.js +157 -0
- package/vendor/cli/dist/commands/_lib/device-wizard.d.ts +17 -0
- package/vendor/cli/dist/commands/_lib/device-wizard.js +11 -2
- package/vendor/cli/dist/commands/_lib/native-messaging.d.ts +7 -0
- package/vendor/cli/dist/commands/_lib/native-messaging.js +40 -0
- package/vendor/cli/dist/commands/browser.d.ts +23 -0
- package/vendor/cli/dist/commands/browser.js +492 -0
- package/vendor/cli/dist/commands/call.d.ts +12 -0
- package/vendor/cli/dist/commands/call.js +48 -26
- package/vendor/cli/dist/commands/chat.d.ts +0 -12
- package/vendor/cli/dist/commands/chat.js +1 -1
- package/vendor/cli/dist/commands/context.d.ts +3 -1
- package/vendor/cli/dist/commands/context.js +13 -2
- package/vendor/cli/dist/commands/daemon.js +38 -171
- package/vendor/cli/dist/commands/doctor.d.ts +0 -6
- package/vendor/cli/dist/commands/doctor.js +1 -1
- package/vendor/cli/dist/commands/memory/_lib/errors.d.ts +4 -1
- package/vendor/cli/dist/commands/memory/_lib/errors.js +9 -1
- package/vendor/cli/dist/commands/memory/_lib/mcp.d.ts +0 -9
- package/vendor/cli/dist/commands/memory/_lib/mcp.js +1 -23
- package/vendor/cli/dist/commands/memory/_lib/memory-auth.d.ts +20 -4
- package/vendor/cli/dist/commands/memory/_lib/memory-auth.js +21 -17
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.d.ts +0 -8
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +7 -18
- package/vendor/cli/dist/commands/memory/run.js +4 -25
- package/vendor/cli/dist/config/define.d.ts +1 -1
- package/vendor/cli/dist/connectors/gchat.ts +31 -1
- package/vendor/cli/dist/connectors/google_gmail.ts +70 -41
- package/vendor/cli/dist/connectors/google_gmail_references.ts +406 -0
- package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +107 -36
- package/vendor/cli/dist/connectors/linkedin-inbox.ts +13 -0
- package/vendor/cli/dist/connectors/linkedin.ts +1 -1
- package/vendor/cli/dist/connectors/postgres.ts +14 -8
- package/vendor/cli/dist/connectors/reddit.ts +171 -5
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +147 -61
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +6 -2
- package/vendor/cli/dist/connectors/whatsapp_web.ts +48 -17
- package/vendor/cli/dist/connectors/x-dm-adapter.js +252 -35
- package/vendor/cli/dist/connectors/x.ts +189 -13
- package/vendor/cli/dist/index.js +46 -6
- package/vendor/cli/dist/internal/cli-update-check.d.ts +33 -0
- package/vendor/cli/dist/internal/cli-update-check.js +98 -0
- package/vendor/cli/dist/internal/credentials.js +10 -36
- package/vendor/cli/dist/internal/device-state.d.ts +2 -0
- package/vendor/cli/dist/internal/device-state.js +4 -0
- package/vendor/cli/dist/internal/gateway-url.d.ts +0 -8
- package/vendor/cli/dist/internal/gateway-url.js +1 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +3 -1
- package/vendor/cli/dist/templates/TESTING.md.tmpl +8 -8
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/browser-requirement.js +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +34 -1
- package/vendor/connector-sdk/dist/index.d.ts +3 -1
- package/vendor/connector-sdk/dist/index.js +4 -0
- package/vendor/connector-sdk/dist/redact.d.ts +10 -0
- package/vendor/{connector-worker/dist/executor → connector-sdk/dist}/redact.js +0 -49
- package/vendor/connector-sdk/dist/types.d.ts +2 -1
- package/vendor/connector-sdk/package.json +6 -1
- package/vendor/connector-worker/dist/agent-turn/gateway-tools.d.ts +9 -0
- package/vendor/connector-worker/dist/agent-turn/gateway-tools.js +23 -2
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +14 -6
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +62 -25
- package/vendor/connector-worker/dist/agent-turn/media-tools.d.ts +1 -0
- package/vendor/connector-worker/dist/agent-turn/media-tools.js +5 -2
- package/vendor/connector-worker/dist/bin.js +2 -0
- package/vendor/connector-worker/dist/daemon/acp-adapters/THIRD_PARTY_LICENSES.txt +1 -1
- package/vendor/connector-worker/dist/daemon/acp-adapters/claude.js +7339 -2136
- package/vendor/connector-worker/dist/daemon/agent-turn.js +52 -17
- package/vendor/connector-worker/dist/daemon/automation.js +3 -13
- package/vendor/connector-worker/dist/daemon/client.d.ts +23 -3
- package/vendor/connector-worker/dist/daemon/client.js +59 -5
- package/vendor/connector-worker/dist/daemon/executor.d.ts +0 -28
- package/vendor/connector-worker/dist/daemon/executor.js +27 -12
- package/vendor/connector-worker/dist/daemon/index.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/index.js +1 -1
- package/vendor/connector-worker/dist/daemon/interactive-session.js +29 -6
- package/vendor/connector-worker/dist/daemon/poll-loop.js +29 -2
- package/vendor/connector-worker/dist/daemon/start.d.ts +0 -1
- package/vendor/connector-worker/dist/daemon/start.js +1 -1
- package/vendor/connector-worker/dist/daemon/terminal-delivery.d.ts +6 -10
- package/vendor/connector-worker/dist/daemon/terminal-delivery.js +59 -23
- package/vendor/connector-worker/dist/daemon/terminal-failure.js +2 -2
- package/vendor/connector-worker/dist/executor/isolate.js +4 -1
- package/vendor/connector-worker/dist/isolate/bridge.d.ts +6 -2
- package/vendor/connector-worker/dist/isolate/bridge.js +14 -8
- package/vendor/connector-worker/package.json +2 -2
- package/vendor/core/dist/agent-tooling.d.ts +8 -0
- package/vendor/core/dist/agent-tooling.js +9 -1
- package/vendor/core/dist/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +5 -0
- package/vendor/core/dist/connector-query-errors.d.ts +6 -0
- package/vendor/core/dist/connector-query-errors.js +4 -0
- package/vendor/core/dist/contracts/entity-reference.d.ts +3 -0
- package/vendor/core/dist/contracts/entity-reference.js +31 -0
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +3 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +4 -1
- package/vendor/core/dist/contracts/tools/manage-connections.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +117 -34
- package/vendor/core/dist/contracts/tools/manage-entity.js +47 -14
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +13 -4
- package/vendor/core/dist/contracts/tools/manage-operations.js +19 -7
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +6 -1
- package/vendor/core/dist/contracts/tools/read-knowledge.js +20 -1
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -0
- package/vendor/core/dist/contracts/tools/view-runtime.js +3 -1
- package/vendor/core/dist/contracts/worker/device-automation.d.ts +4 -9
- package/vendor/core/dist/contracts/worker/device-automation.js +10 -15
- package/vendor/core/dist/contracts/worker/protocol.d.ts +20 -0
- package/vendor/core/dist/contracts/worker/protocol.js +20 -0
- package/vendor/core/dist/errors.d.ts +0 -20
- package/vendor/core/dist/errors.js +1 -25
- package/vendor/core/dist/otel.js +38 -10
- package/vendor/core/dist/reserved.d.ts +6 -3
- package/vendor/core/dist/reserved.js +6 -3
- package/vendor/core/dist/utils/ajv.js +3 -1
- package/vendor/core/dist/worker/auth.d.ts +3 -2
- package/vendor/core/package.json +31 -5
- package/vendor/postgres/cf/src/query.js +3 -1
- package/vendor/postgres/cjs/src/query.js +3 -1
- package/vendor/postgres/src/query.js +3 -1
- package/vendor/connector-worker/dist/executor/http-status.d.ts +0 -16
- package/vendor/connector-worker/dist/executor/http-status.js +0 -21
- package/vendor/connector-worker/dist/executor/redact.d.ts +0 -29
- /package/vendor/postgres/{.bun-tag-2f292c6554a8475e → .bun-tag-22d644c2873790db} +0 -0
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Lobu</title>
|
|
6
|
+
<style>
|
|
7
|
+
/* Tokens mirror the Lobu app theme (src/index.css): warm surfaces,
|
|
8
|
+
blue primary, square corners, DM Sans / DM Mono. Light by default and
|
|
9
|
+
dark with the system setting, as the app does. */
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "DM Sans";
|
|
12
|
+
src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
}
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: "DM Sans";
|
|
17
|
+
src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2");
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
}
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "DM Mono";
|
|
22
|
+
src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2");
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
}
|
|
25
|
+
:root {
|
|
26
|
+
color-scheme: light;
|
|
27
|
+
--font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
28
|
+
--font-mono: "DM Mono", ui-monospace, monospace;
|
|
29
|
+
--background: oklch(0.9908 0.0013 106.42);
|
|
30
|
+
--foreground: oklch(0.1913 0 89.88);
|
|
31
|
+
--secondary: oklch(0.9578 0.0095 93.57);
|
|
32
|
+
--muted-foreground: oklch(0.4459 0 89.88);
|
|
33
|
+
--border: oklch(0.919 0.0112 89.73);
|
|
34
|
+
--primary: oklch(0.5466 0.2092 264.29);
|
|
35
|
+
--primary-foreground: oklch(0.9908 0.0013 106.42);
|
|
36
|
+
--warn-bg: #fbf3db;
|
|
37
|
+
--warn-fg: #7a5a00;
|
|
38
|
+
--warn-border: #ebd9a6;
|
|
39
|
+
--error-bg: #fce8e6;
|
|
40
|
+
--error-fg: #9f1d1d;
|
|
41
|
+
--error-border: #f3c1bc;
|
|
42
|
+
--live-fg: #15803d;
|
|
43
|
+
--live-dot: #22c55e;
|
|
44
|
+
}
|
|
45
|
+
@media (prefers-color-scheme: dark) {
|
|
46
|
+
:root {
|
|
47
|
+
color-scheme: dark;
|
|
48
|
+
--background: oklch(0.1641 0.0044 84.59);
|
|
49
|
+
--foreground: oklch(0.9497 0.0168 88);
|
|
50
|
+
--secondary: oklch(0.2369 0.0088 75.18);
|
|
51
|
+
--muted-foreground: oklch(0.7516 0.0221 88.75);
|
|
52
|
+
--border: oklch(0.2854 0.0094 88.76);
|
|
53
|
+
--warn-bg: #3a2e12;
|
|
54
|
+
--warn-fg: #fcd34d;
|
|
55
|
+
--warn-border: #5a4a1a;
|
|
56
|
+
--error-bg: #3a1212;
|
|
57
|
+
--error-fg: #fca5a5;
|
|
58
|
+
--error-border: #5a1a1a;
|
|
59
|
+
--live-fg: #86efac;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
html,
|
|
64
|
+
body {
|
|
65
|
+
margin: 0;
|
|
66
|
+
padding: 0;
|
|
67
|
+
height: 100%;
|
|
68
|
+
width: 100%;
|
|
69
|
+
background: var(--background);
|
|
70
|
+
color: var(--foreground);
|
|
71
|
+
font: 14px var(--font-sans);
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
.topbar {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
gap: 12px;
|
|
80
|
+
padding: 6px 12px;
|
|
81
|
+
border-bottom: 1px solid var(--border);
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
color: var(--muted-foreground);
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
}
|
|
86
|
+
.topbar a {
|
|
87
|
+
color: var(--muted-foreground);
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
.topbar a:hover {
|
|
92
|
+
color: var(--foreground);
|
|
93
|
+
}
|
|
94
|
+
.topbar-left {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: baseline;
|
|
97
|
+
gap: 8px;
|
|
98
|
+
min-width: 0;
|
|
99
|
+
}
|
|
100
|
+
#build-stamp {
|
|
101
|
+
font-family: var(--font-mono);
|
|
102
|
+
font-size: 10px;
|
|
103
|
+
color: var(--muted-foreground);
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
}
|
|
106
|
+
#build-stamp[data-dirty="true"] {
|
|
107
|
+
color: var(--warn-fg);
|
|
108
|
+
}
|
|
109
|
+
.topbar-right {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: 14px;
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
}
|
|
115
|
+
/* Force-reloads the embedded app iframe — the escape hatch when the
|
|
116
|
+
panel is wedged on a stale/old app build that a panel reopen won't
|
|
117
|
+
refresh (the iframe isn't re-fetched on token churn, by design). */
|
|
118
|
+
#reload-app {
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
line-height: 1;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
#reload-app[hidden] {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
#health-banner {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
gap: 8px;
|
|
131
|
+
padding: 8px 12px;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
flex-shrink: 0;
|
|
134
|
+
background: var(--error-bg);
|
|
135
|
+
color: var(--error-fg);
|
|
136
|
+
border-bottom: 1px solid var(--error-border);
|
|
137
|
+
}
|
|
138
|
+
#status-label {
|
|
139
|
+
border: 0;
|
|
140
|
+
padding: 0;
|
|
141
|
+
background: transparent;
|
|
142
|
+
color: inherit;
|
|
143
|
+
font: inherit;
|
|
144
|
+
text-align: left;
|
|
145
|
+
opacity: 1;
|
|
146
|
+
min-width: 0;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
text-overflow: ellipsis;
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
}
|
|
151
|
+
/* A live browser action takes over the status line in place, so the
|
|
152
|
+
panel layout never shifts while an agent drives this browser. */
|
|
153
|
+
#status-label[data-active="true"] {
|
|
154
|
+
color: var(--live-fg);
|
|
155
|
+
}
|
|
156
|
+
#status-label[data-active="true"]::before {
|
|
157
|
+
content: "";
|
|
158
|
+
display: inline-block;
|
|
159
|
+
width: 6px;
|
|
160
|
+
height: 6px;
|
|
161
|
+
margin-right: 6px;
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
background: var(--live-dot);
|
|
164
|
+
vertical-align: 1px;
|
|
165
|
+
animation: control-pulse 1.2s ease-in-out infinite;
|
|
166
|
+
}
|
|
167
|
+
@keyframes control-pulse {
|
|
168
|
+
50% { opacity: 0.3; }
|
|
169
|
+
}
|
|
170
|
+
#health-banner[data-severity="warn"] {
|
|
171
|
+
background: var(--warn-bg);
|
|
172
|
+
color: var(--warn-fg);
|
|
173
|
+
border-bottom-color: var(--warn-border);
|
|
174
|
+
}
|
|
175
|
+
#health-banner[hidden] {
|
|
176
|
+
display: none;
|
|
177
|
+
}
|
|
178
|
+
#health-message {
|
|
179
|
+
flex: 1;
|
|
180
|
+
line-height: 1.35;
|
|
181
|
+
}
|
|
182
|
+
#health-action {
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
background: var(--primary);
|
|
185
|
+
color: var(--primary-foreground);
|
|
186
|
+
border: 0;
|
|
187
|
+
border-radius: 0;
|
|
188
|
+
padding: 4px 10px;
|
|
189
|
+
font-size: 12px;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
#health-action[hidden] {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
.body {
|
|
196
|
+
flex: 1;
|
|
197
|
+
position: relative;
|
|
198
|
+
min-height: 0;
|
|
199
|
+
overflow: auto;
|
|
200
|
+
}
|
|
201
|
+
iframe {
|
|
202
|
+
border: 0;
|
|
203
|
+
width: 100%;
|
|
204
|
+
height: 100%;
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
/* `display: block` above wins over the HTML `hidden` attribute's
|
|
208
|
+
default `display: none`, so without this rule frame.hidden = true
|
|
209
|
+
leaves the iframe visible and the permissions / pair views render
|
|
210
|
+
underneath it. */
|
|
211
|
+
iframe[hidden] {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.view {
|
|
216
|
+
padding: 20px;
|
|
217
|
+
}
|
|
218
|
+
.view h1 {
|
|
219
|
+
font-size: 16px;
|
|
220
|
+
margin: 0 0 6px;
|
|
221
|
+
}
|
|
222
|
+
.view p.lede {
|
|
223
|
+
margin: 0 0 16px;
|
|
224
|
+
color: var(--muted-foreground);
|
|
225
|
+
line-height: 1.5;
|
|
226
|
+
}
|
|
227
|
+
.view input[type="url"] {
|
|
228
|
+
width: 100%;
|
|
229
|
+
box-sizing: border-box;
|
|
230
|
+
background: var(--background);
|
|
231
|
+
color: var(--foreground);
|
|
232
|
+
border: 1px solid var(--border);
|
|
233
|
+
border-radius: 0;
|
|
234
|
+
padding: 8px 10px;
|
|
235
|
+
font: inherit;
|
|
236
|
+
margin-bottom: 12px;
|
|
237
|
+
}
|
|
238
|
+
.server-choice {
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
gap: 8px;
|
|
242
|
+
margin-bottom: 12px;
|
|
243
|
+
}
|
|
244
|
+
.server-choice label {
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: flex-start;
|
|
247
|
+
gap: 10px;
|
|
248
|
+
padding: 10px 12px;
|
|
249
|
+
border: 1px solid var(--border);
|
|
250
|
+
border-radius: 0;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
}
|
|
253
|
+
.server-choice label:has(input:checked) {
|
|
254
|
+
border-color: var(--primary);
|
|
255
|
+
background: var(--secondary);
|
|
256
|
+
}
|
|
257
|
+
.server-choice input {
|
|
258
|
+
margin: 2px 0 0;
|
|
259
|
+
accent-color: var(--primary);
|
|
260
|
+
}
|
|
261
|
+
.server-choice strong {
|
|
262
|
+
display: block;
|
|
263
|
+
font-size: 13px;
|
|
264
|
+
font-weight: 600;
|
|
265
|
+
}
|
|
266
|
+
.server-choice small {
|
|
267
|
+
color: var(--muted-foreground);
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
}
|
|
270
|
+
#self-hosted-fields[hidden] {
|
|
271
|
+
display: none;
|
|
272
|
+
}
|
|
273
|
+
.hint {
|
|
274
|
+
margin: -6px 0 12px;
|
|
275
|
+
color: var(--muted-foreground);
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
}
|
|
278
|
+
.code-small {
|
|
279
|
+
font-size: 15px;
|
|
280
|
+
letter-spacing: 2px;
|
|
281
|
+
padding: 8px 12px;
|
|
282
|
+
margin: 0;
|
|
283
|
+
}
|
|
284
|
+
#pair-code-actions {
|
|
285
|
+
margin-top: 14px;
|
|
286
|
+
}
|
|
287
|
+
#pair-code-detail[hidden],
|
|
288
|
+
#pair-code-actions[hidden] {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
/* The welcome's way out, pinned to the bottom of the scrolling view so
|
|
292
|
+
it stays reachable without competing with the grants above. */
|
|
293
|
+
#perm-continue-row {
|
|
294
|
+
position: sticky;
|
|
295
|
+
bottom: 0;
|
|
296
|
+
margin: 16px -20px -20px;
|
|
297
|
+
padding: 12px 20px;
|
|
298
|
+
background: var(--background);
|
|
299
|
+
border-top: 1px solid var(--border);
|
|
300
|
+
}
|
|
301
|
+
#perm-continue-row[hidden] {
|
|
302
|
+
display: none;
|
|
303
|
+
}
|
|
304
|
+
#perm-continue {
|
|
305
|
+
width: 100%;
|
|
306
|
+
}
|
|
307
|
+
.note {
|
|
308
|
+
margin: 0 0 10px;
|
|
309
|
+
color: var(--muted-foreground);
|
|
310
|
+
font-size: 12px;
|
|
311
|
+
line-height: 1.4;
|
|
312
|
+
}
|
|
313
|
+
.note[hidden] {
|
|
314
|
+
display: none;
|
|
315
|
+
}
|
|
316
|
+
.row {
|
|
317
|
+
display: flex;
|
|
318
|
+
gap: 8px;
|
|
319
|
+
flex-wrap: wrap;
|
|
320
|
+
}
|
|
321
|
+
button.primary {
|
|
322
|
+
background: var(--primary);
|
|
323
|
+
color: var(--primary-foreground);
|
|
324
|
+
border: 0;
|
|
325
|
+
padding: 8px 14px;
|
|
326
|
+
border-radius: 0;
|
|
327
|
+
font-weight: 600;
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
font-size: 13px;
|
|
330
|
+
}
|
|
331
|
+
button.primary:hover:not(:disabled),
|
|
332
|
+
#health-action:hover {
|
|
333
|
+
filter: brightness(1.1);
|
|
334
|
+
}
|
|
335
|
+
button.secondary:hover:not(:disabled),
|
|
336
|
+
/* Websites and tab control are what most agent work needs, so their
|
|
337
|
+
grant is the primary action until it is given. */
|
|
338
|
+
#toggle-allsites:not([data-granted="true"]),
|
|
339
|
+
.toggle[data-action-grant="tabs.manage"]:not([data-granted="true"]) {
|
|
340
|
+
background: var(--primary);
|
|
341
|
+
border-color: var(--primary);
|
|
342
|
+
color: var(--primary-foreground);
|
|
343
|
+
}
|
|
344
|
+
#toggle-allsites:not([data-granted="true"]):hover,
|
|
345
|
+
.toggle[data-action-grant="tabs.manage"]:not([data-granted="true"]):hover {
|
|
346
|
+
background: var(--primary);
|
|
347
|
+
filter: brightness(1.1);
|
|
348
|
+
}
|
|
349
|
+
.perm-row .toggle:hover,
|
|
350
|
+
.site-head .toggle:hover,
|
|
351
|
+
.site-list li button:hover {
|
|
352
|
+
background: var(--secondary);
|
|
353
|
+
}
|
|
354
|
+
button.secondary {
|
|
355
|
+
background: var(--background);
|
|
356
|
+
color: var(--foreground);
|
|
357
|
+
border: 1px solid var(--border);
|
|
358
|
+
padding: 8px 14px;
|
|
359
|
+
border-radius: 0;
|
|
360
|
+
font-weight: 600;
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
font-size: 13px;
|
|
363
|
+
}
|
|
364
|
+
button:disabled {
|
|
365
|
+
opacity: 0.5;
|
|
366
|
+
cursor: progress;
|
|
367
|
+
}
|
|
368
|
+
.status {
|
|
369
|
+
color: var(--muted-foreground);
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
margin-top: 10px;
|
|
372
|
+
min-height: 16px;
|
|
373
|
+
}
|
|
374
|
+
.code {
|
|
375
|
+
font-family: var(--font-mono);
|
|
376
|
+
font-size: 22px;
|
|
377
|
+
letter-spacing: 3px;
|
|
378
|
+
background: var(--secondary);
|
|
379
|
+
padding: 12px 16px;
|
|
380
|
+
border-radius: 0;
|
|
381
|
+
display: inline-block;
|
|
382
|
+
margin: 8px 0 14px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.perm-row {
|
|
386
|
+
display: flex;
|
|
387
|
+
align-items: flex-start;
|
|
388
|
+
justify-content: space-between;
|
|
389
|
+
gap: 12px;
|
|
390
|
+
padding: 12px;
|
|
391
|
+
border: 1px solid var(--border);
|
|
392
|
+
border-radius: 0;
|
|
393
|
+
margin-bottom: 10px;
|
|
394
|
+
}
|
|
395
|
+
.perm-row h2 {
|
|
396
|
+
font-size: 13px;
|
|
397
|
+
margin: 0 0 4px;
|
|
398
|
+
}
|
|
399
|
+
.perm-row p {
|
|
400
|
+
margin: 0;
|
|
401
|
+
font-size: 12px;
|
|
402
|
+
color: var(--muted-foreground);
|
|
403
|
+
line-height: 1.4;
|
|
404
|
+
}
|
|
405
|
+
.perm-row .pill {
|
|
406
|
+
font-size: 11px;
|
|
407
|
+
color: var(--muted-foreground);
|
|
408
|
+
margin-top: 6px;
|
|
409
|
+
font-family: var(--font-mono);
|
|
410
|
+
}
|
|
411
|
+
.perm-row .toggle,
|
|
412
|
+
.site-head .toggle {
|
|
413
|
+
flex-shrink: 0;
|
|
414
|
+
background: transparent;
|
|
415
|
+
color: var(--foreground);
|
|
416
|
+
border: 1px solid var(--border);
|
|
417
|
+
border-radius: 0;
|
|
418
|
+
padding: 6px 12px;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
font-size: 12px;
|
|
421
|
+
font-weight: 600;
|
|
422
|
+
}
|
|
423
|
+
/* Granted rows are marked on the row, so "Revoke" stays a quiet
|
|
424
|
+
outline button rather than reading as the main action. */
|
|
425
|
+
.perm-row:has(.toggle[data-granted="true"]),
|
|
426
|
+
.site-section:has(#toggle-allsites[data-granted="true"]) {
|
|
427
|
+
border-left: 2px solid var(--primary);
|
|
428
|
+
}
|
|
429
|
+
.site-section {
|
|
430
|
+
border: 1px solid var(--border);
|
|
431
|
+
border-radius: 0;
|
|
432
|
+
padding: 12px;
|
|
433
|
+
margin-bottom: 10px;
|
|
434
|
+
}
|
|
435
|
+
.site-head {
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: flex-start;
|
|
438
|
+
justify-content: space-between;
|
|
439
|
+
gap: 12px;
|
|
440
|
+
}
|
|
441
|
+
#site-specific {
|
|
442
|
+
margin-top: 10px;
|
|
443
|
+
}
|
|
444
|
+
#site-specific[hidden] {
|
|
445
|
+
display: none;
|
|
446
|
+
}
|
|
447
|
+
.site-section h2 {
|
|
448
|
+
font-size: 13px;
|
|
449
|
+
margin: 0 0 4px;
|
|
450
|
+
}
|
|
451
|
+
.site-section p {
|
|
452
|
+
margin: 0;
|
|
453
|
+
font-size: 12px;
|
|
454
|
+
color: var(--muted-foreground);
|
|
455
|
+
line-height: 1.4;
|
|
456
|
+
}
|
|
457
|
+
.site-add {
|
|
458
|
+
display: flex;
|
|
459
|
+
gap: 8px;
|
|
460
|
+
align-items: center;
|
|
461
|
+
}
|
|
462
|
+
.site-add input[type="url"] {
|
|
463
|
+
flex: 1;
|
|
464
|
+
margin-bottom: 0;
|
|
465
|
+
}
|
|
466
|
+
.site-list {
|
|
467
|
+
list-style: none;
|
|
468
|
+
margin: 10px 0 0;
|
|
469
|
+
padding: 0;
|
|
470
|
+
}
|
|
471
|
+
.site-list:empty {
|
|
472
|
+
display: none;
|
|
473
|
+
}
|
|
474
|
+
.site-list li {
|
|
475
|
+
display: flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
justify-content: space-between;
|
|
478
|
+
gap: 8px;
|
|
479
|
+
padding: 6px 0;
|
|
480
|
+
font-size: 12px;
|
|
481
|
+
font-family: var(--font-mono);
|
|
482
|
+
color: var(--foreground);
|
|
483
|
+
border-top: 1px solid var(--border);
|
|
484
|
+
}
|
|
485
|
+
.site-list li button {
|
|
486
|
+
flex-shrink: 0;
|
|
487
|
+
background: transparent;
|
|
488
|
+
color: var(--foreground);
|
|
489
|
+
border: 1px solid var(--border);
|
|
490
|
+
border-radius: 0;
|
|
491
|
+
padding: 4px 10px;
|
|
492
|
+
cursor: pointer;
|
|
493
|
+
font-size: 12px;
|
|
494
|
+
font-weight: 600;
|
|
495
|
+
}
|
|
496
|
+
.view a {
|
|
497
|
+
color: var(--foreground);
|
|
498
|
+
text-decoration: underline;
|
|
499
|
+
}
|
|
500
|
+
</style>
|
|
501
|
+
</head>
|
|
502
|
+
<body>
|
|
503
|
+
<div class="topbar">
|
|
504
|
+
<span class="topbar-left">
|
|
505
|
+
<button id="status-label" type="button" aria-live="polite">Lobu</button>
|
|
506
|
+
</span>
|
|
507
|
+
<span class="topbar-right">
|
|
508
|
+
<a id="reload-app" title="Reload Lobu" hidden>↻</a>
|
|
509
|
+
<a id="topbar-action" data-mode="permissions">Settings</a>
|
|
510
|
+
</span>
|
|
511
|
+
</div>
|
|
512
|
+
<div id="health-banner" hidden>
|
|
513
|
+
<span id="health-message"></span>
|
|
514
|
+
<button id="health-action" hidden></button>
|
|
515
|
+
</div>
|
|
516
|
+
<div class="body">
|
|
517
|
+
<iframe id="app" hidden></iframe>
|
|
518
|
+
|
|
519
|
+
<div id="pair-view" class="view" hidden>
|
|
520
|
+
<div id="pair-setup" hidden>
|
|
521
|
+
<h1>Connect to Lobu</h1>
|
|
522
|
+
<p class="lede">Choose where your Lobu workspace lives.</p>
|
|
523
|
+
<div class="server-choice" role="radiogroup">
|
|
524
|
+
<label>
|
|
525
|
+
<input type="radio" name="server-kind" value="cloud" checked />
|
|
526
|
+
<span>
|
|
527
|
+
<strong>Lobu Cloud</strong>
|
|
528
|
+
<small>app.lobu.ai</small>
|
|
529
|
+
</span>
|
|
530
|
+
</label>
|
|
531
|
+
<label>
|
|
532
|
+
<input type="radio" name="server-kind" value="self-hosted" />
|
|
533
|
+
<span>
|
|
534
|
+
<strong>Self-hosted</strong>
|
|
535
|
+
<small>Your own Lobu server</small>
|
|
536
|
+
</span>
|
|
537
|
+
</label>
|
|
538
|
+
</div>
|
|
539
|
+
<div id="self-hosted-fields" hidden>
|
|
540
|
+
<input
|
|
541
|
+
id="gateway-url"
|
|
542
|
+
type="url"
|
|
543
|
+
placeholder="https://lobu.example.com"
|
|
544
|
+
autocomplete="off"
|
|
545
|
+
spellcheck="false"
|
|
546
|
+
/>
|
|
547
|
+
<p class="hint">Local dev: <code>http://localhost:8787</code></p>
|
|
548
|
+
</div>
|
|
549
|
+
<div class="row">
|
|
550
|
+
<button class="primary" id="verify-url">Continue</button>
|
|
551
|
+
<button class="secondary" id="allow-server" hidden>Allow access</button>
|
|
552
|
+
</div>
|
|
553
|
+
<div class="status" id="setup-status"></div>
|
|
554
|
+
<p class="note" id="mac-app-hint" hidden>
|
|
555
|
+
On a Mac?
|
|
556
|
+
<a
|
|
557
|
+
href="https://github.com/lobu-ai/lobu/releases/latest/download/Lobu.dmg"
|
|
558
|
+
target="_blank"
|
|
559
|
+
rel="noopener"
|
|
560
|
+
>The Lobu app</a
|
|
561
|
+
>
|
|
562
|
+
connects this browser automatically.
|
|
563
|
+
</p>
|
|
564
|
+
</div>
|
|
565
|
+
|
|
566
|
+
<div id="pair-code" hidden>
|
|
567
|
+
<h1 id="pair-code-title">Approve in the new tab</h1>
|
|
568
|
+
<div id="pair-code-detail">
|
|
569
|
+
<p class="lede">
|
|
570
|
+
Sign in to Lobu in the tab that just opened and approve this
|
|
571
|
+
browser. Check that the page shows this code:
|
|
572
|
+
</p>
|
|
573
|
+
<div class="code code-small" id="user-code">······</div>
|
|
574
|
+
</div>
|
|
575
|
+
<div class="status" id="poll-status">Waiting…</div>
|
|
576
|
+
<div class="row" id="pair-code-actions">
|
|
577
|
+
<button class="secondary" id="reopen-approval">Reopen sign-in tab</button>
|
|
578
|
+
<button class="secondary" id="cancel-pair">Cancel</button>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
|
|
583
|
+
<div id="permissions-view" class="view" hidden>
|
|
584
|
+
<!-- Title and lede are set by show(): Settings, or the post-pair welcome. -->
|
|
585
|
+
<h1 id="perms-title">Settings</h1>
|
|
586
|
+
<p class="lede" id="perms-lede"></p>
|
|
587
|
+
|
|
588
|
+
<div class="site-section" data-allsites>
|
|
589
|
+
<div class="site-head">
|
|
590
|
+
<div>
|
|
591
|
+
<h2>Websites</h2>
|
|
592
|
+
<p id="site-mode"></p>
|
|
593
|
+
</div>
|
|
594
|
+
<button class="toggle" id="toggle-allsites">Allow all sites</button>
|
|
595
|
+
</div>
|
|
596
|
+
<div id="site-specific">
|
|
597
|
+
<div class="site-add">
|
|
598
|
+
<input
|
|
599
|
+
id="site-url"
|
|
600
|
+
type="url"
|
|
601
|
+
autocomplete="off"
|
|
602
|
+
spellcheck="false"
|
|
603
|
+
placeholder="https://example.com"
|
|
604
|
+
/>
|
|
605
|
+
<button class="secondary" id="add-site">Allow</button>
|
|
606
|
+
</div>
|
|
607
|
+
<ul id="site-list" class="site-list"></ul>
|
|
608
|
+
</div>
|
|
609
|
+
</div>
|
|
610
|
+
|
|
611
|
+
<div class="perm-row" data-action-grant="tabs.manage">
|
|
612
|
+
<div>
|
|
613
|
+
<h2>Manage open tabs</h2>
|
|
614
|
+
<p>
|
|
615
|
+
Your agent can click, type, navigate and close in tabs you
|
|
616
|
+
opened. Without it, it reads your tabs but only acts in its own.
|
|
617
|
+
</p>
|
|
618
|
+
</div>
|
|
619
|
+
<button class="toggle" data-action-grant="tabs.manage">Grant</button>
|
|
620
|
+
</div>
|
|
621
|
+
|
|
622
|
+
<div class="perm-row" data-perm="history" data-cap="browser.history">
|
|
623
|
+
<div>
|
|
624
|
+
<h2>Browsing history</h2>
|
|
625
|
+
<p>
|
|
626
|
+
Pages you've visited, excluding Incognito.
|
|
627
|
+
</p>
|
|
628
|
+
</div>
|
|
629
|
+
<button class="toggle" data-perm="history">Grant</button>
|
|
630
|
+
</div>
|
|
631
|
+
|
|
632
|
+
<div class="perm-row" data-perm="bookmarks" data-cap="browser.bookmarks">
|
|
633
|
+
<div>
|
|
634
|
+
<h2>Bookmarks</h2>
|
|
635
|
+
<p>Read and organise your bookmarks.</p>
|
|
636
|
+
</div>
|
|
637
|
+
<button class="toggle" data-perm="bookmarks">Grant</button>
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
<div class="perm-row" data-perm="downloads" data-cap="browser.downloads">
|
|
641
|
+
<div>
|
|
642
|
+
<h2>Downloads</h2>
|
|
643
|
+
<p>
|
|
644
|
+
Files you've downloaded and where they came from.
|
|
645
|
+
</p>
|
|
646
|
+
</div>
|
|
647
|
+
<button class="toggle" data-perm="downloads">Grant</button>
|
|
648
|
+
</div>
|
|
649
|
+
|
|
650
|
+
<div class="perm-row watch-row" data-watch>
|
|
651
|
+
<div>
|
|
652
|
+
<h2>Live input context</h2>
|
|
653
|
+
<p>
|
|
654
|
+
Shares what you type and submit in the tab you're using.
|
|
655
|
+
Passwords, one-time codes and card numbers are redacted. A red
|
|
656
|
+
dot shows on the Lobu icon while it's on.
|
|
657
|
+
</p>
|
|
658
|
+
</div>
|
|
659
|
+
<button class="toggle" id="toggle-watch">Off</button>
|
|
660
|
+
</div>
|
|
661
|
+
|
|
662
|
+
<div class="perm-row server-row">
|
|
663
|
+
<div>
|
|
664
|
+
<h2>Lobu server</h2>
|
|
665
|
+
<p id="server-url-display">(not set)</p>
|
|
666
|
+
<div class="pill">Changing it signs this profile out.</div>
|
|
667
|
+
<div class="pill" id="build-stamp" title="Loaded extension build"></div>
|
|
668
|
+
</div>
|
|
669
|
+
<button class="toggle" id="change-server-perm">Change</button>
|
|
670
|
+
</div>
|
|
671
|
+
|
|
672
|
+
<div class="status" id="perm-status"></div>
|
|
673
|
+
<div id="perm-continue-row" hidden>
|
|
674
|
+
<button class="primary" id="perm-continue">Continue to Lobu</button>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
<script src="sidepanel.js" type="module"></script>
|
|
679
|
+
</body>
|
|
680
|
+
</html>
|