loopengine 0.5.4 → 0.5.6
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/core/messaging/jobs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/web/agents-config-page.js +27 -20
- package/dist/web/agents-list-page.js +32 -4
- package/dist/web/audit-admin.js +3 -3
- package/dist/web/audit-page.js +1 -1
- package/dist/web/console-shell.js +43 -6
- package/dist/web/dev-ui-styles.js +95 -43
- package/dist/web/global-config-page.js +12 -12
- package/dist/web/goals-admin.js +1 -1
- package/dist/web/goals-page.js +7 -3
- package/dist/web/home-page.js +190 -128
- package/dist/web/inbox-admin.js +2 -2
- package/dist/web/inbox-page.js +3 -2
- package/dist/web/interview-page.js +1 -1
- package/dist/web/mascot.d.ts +3 -0
- package/dist/web/mascot.js +32 -0
- package/dist/web/notifier-admin.js +2 -2
- package/dist/web/playground.js +1 -1
- package/dist/web/schedules-page.d.ts +1 -0
- package/dist/web/schedules-page.js +559 -0
- package/dist/web/workflow-evidence.js +3 -3
- package/dist/web/workflow-page.js +3 -3
- package/dist/web/workflows-overview-page.js +1 -1
- package/package.json +1 -1
|
@@ -8,22 +8,28 @@
|
|
|
8
8
|
// bubbles, trace events, the HTTP tool builder, ...) in its own <style>
|
|
9
9
|
// block, written against these same tokens.
|
|
10
10
|
//
|
|
11
|
-
// Colors match the loopengine.co site (teal accent).
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
11
|
+
// Colors match the loopengine.co site (teal accent). The look: the app is
|
|
12
|
+
// one white panel on a light grey canvas, with the sidebar on the canvas;
|
|
13
|
+
// soft lines, round corners and flat cards; near-black primary buttons,
|
|
14
|
+
// with teal kept for the brand, links and what's selected. Fonts are the
|
|
15
|
+
// system's own (SF Pro, Segoe UI, Roboto...): never a web font download,
|
|
16
|
+
// so a self-hosted server works offline and loads nothing from a third
|
|
17
|
+
// party.
|
|
15
18
|
export const devUiCss = `
|
|
16
19
|
:root {
|
|
17
20
|
color-scheme: light;
|
|
18
21
|
--bg: #ffffff;
|
|
19
|
-
--
|
|
20
|
-
--surface
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--ink
|
|
24
|
-
--ink-
|
|
25
|
-
--
|
|
26
|
-
--
|
|
22
|
+
--canvas: #f2f3f2;
|
|
23
|
+
--surface: #f5f6f5;
|
|
24
|
+
--surface-2: #ebedec;
|
|
25
|
+
--sidebar: var(--canvas);
|
|
26
|
+
--ink: #111516;
|
|
27
|
+
--ink-muted: #51595a;
|
|
28
|
+
--ink-faint: #858c8c;
|
|
29
|
+
--line: #e5e8e7;
|
|
30
|
+
--code-bg: #eef0ef;
|
|
31
|
+
--primary: #151a1b;
|
|
32
|
+
--on-primary: #ffffff;
|
|
27
33
|
--accent: #0c7a6a;
|
|
28
34
|
--accent-ink: #0c7a6a;
|
|
29
35
|
--accent-soft: #d7f0e9;
|
|
@@ -31,15 +37,16 @@ export const devUiCss = `
|
|
|
31
37
|
--good: #1f7a3d; --good-soft: #dff3e5;
|
|
32
38
|
--warn: #9a5b00; --warn-soft: #fbeccf;
|
|
33
39
|
--bad: #b42318; --bad-soft: #fde4e1;
|
|
34
|
-
--font-sans:
|
|
35
|
-
--font-mono:
|
|
36
|
-
--radius:
|
|
40
|
+
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
41
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
42
|
+
--radius: 12px;
|
|
37
43
|
}
|
|
38
44
|
@media (prefers-color-scheme: dark) {
|
|
39
45
|
:root {
|
|
40
46
|
color-scheme: dark;
|
|
41
|
-
--bg: #
|
|
42
|
-
--ink: #
|
|
47
|
+
--bg: #101617; --canvas: #070b0c; --surface: #151d1e; --surface-2: #1c2627; --sidebar: var(--canvas);
|
|
48
|
+
--ink: #e8eded; --ink-muted: #a2b0ae; --ink-faint: #6b7a78; --line: #222d2e; --code-bg: #141c1d;
|
|
49
|
+
--primary: #eef2f1; --on-primary: #0c1112;
|
|
43
50
|
--accent: #57cdb8; --accent-ink: #7ee0cd; --accent-soft: #16302c; --on-accent: #06221d;
|
|
44
51
|
--good: #6fd08f; --good-soft: #12301d; --warn: #f0b75c; --warn-soft: #33270f; --bad: #f2877c; --bad-soft: #3a1714;
|
|
45
52
|
}
|
|
@@ -51,8 +58,9 @@ export const devUiCss = `
|
|
|
51
58
|
font-family: var(--font-sans);
|
|
52
59
|
font-size: 14px;
|
|
53
60
|
line-height: 1.5;
|
|
54
|
-
background: var(--
|
|
61
|
+
background: var(--canvas);
|
|
55
62
|
color: var(--ink);
|
|
63
|
+
-webkit-font-smoothing: antialiased;
|
|
56
64
|
}
|
|
57
65
|
a { color: var(--accent-ink); }
|
|
58
66
|
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
@@ -62,9 +70,10 @@ export const devUiCss = `
|
|
|
62
70
|
color: inherit;
|
|
63
71
|
background: var(--bg);
|
|
64
72
|
border: 1px solid var(--line);
|
|
65
|
-
border-radius:
|
|
73
|
+
border-radius: 8px;
|
|
66
74
|
padding: 6px 10px;
|
|
67
75
|
}
|
|
76
|
+
input:focus, textarea:focus, select:focus { border-color: var(--ink-faint); outline: none; }
|
|
68
77
|
textarea { line-height: 1.45; }
|
|
69
78
|
button {
|
|
70
79
|
cursor: pointer;
|
|
@@ -74,11 +83,11 @@ export const devUiCss = `
|
|
|
74
83
|
select:disabled { cursor: default; }
|
|
75
84
|
button:hover:not(:disabled) { background: var(--surface); }
|
|
76
85
|
button[type="submit"], button.primary {
|
|
77
|
-
background: var(--
|
|
78
|
-
border-color: var(--
|
|
79
|
-
color: var(--on-
|
|
86
|
+
background: var(--primary);
|
|
87
|
+
border-color: var(--primary);
|
|
88
|
+
color: var(--on-primary);
|
|
80
89
|
}
|
|
81
|
-
button[type="submit"]:hover:not(:disabled), button.primary:hover:not(:disabled) { background: var(--
|
|
90
|
+
button[type="submit"]:hover:not(:disabled), button.primary:hover:not(:disabled) { background: var(--primary); opacity: 0.88; }
|
|
82
91
|
button:disabled { opacity: 0.5; cursor: default; }
|
|
83
92
|
code {
|
|
84
93
|
font-family: var(--font-mono);
|
|
@@ -101,7 +110,7 @@ export const devUiCss = `
|
|
|
101
110
|
.muted { color: var(--ink-muted); font-size: 13px; }
|
|
102
111
|
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
103
112
|
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
|
|
104
|
-
th { color: var(--ink-faint); font-weight: 500; font-size: 12px; background:
|
|
113
|
+
th { color: var(--ink-faint); font-weight: 500; font-size: 12px; background: transparent; white-space: nowrap; }
|
|
105
114
|
tbody tr:last-child td { border-bottom: 0; }
|
|
106
115
|
|
|
107
116
|
/* ---------- pills: one shape for every allow/ask/deny or status word ---------- */
|
|
@@ -125,21 +134,29 @@ export const devUiCss = `
|
|
|
125
134
|
.le-pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
|
|
126
135
|
|
|
127
136
|
/* ---------- app shell (web/console-shell.ts) ---------- */
|
|
128
|
-
.le-app { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100%; }
|
|
137
|
+
.le-app { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100%; background: var(--canvas); }
|
|
129
138
|
/* Two columns: the sections, and what's in the current one. */
|
|
130
|
-
.le-sidebar { position: relative; background: var(--sidebar);
|
|
131
|
-
.le-rail { width:
|
|
139
|
+
.le-sidebar { position: relative; background: var(--sidebar); display: flex; min-height: 0; }
|
|
140
|
+
.le-rail { width: 62px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 10px; min-height: 0; }
|
|
132
141
|
.le-brand { display: grid; place-items: center; height: 36px; margin-bottom: 8px; text-decoration: none; }
|
|
133
|
-
.le-brand-mark { width:
|
|
134
|
-
.le-rail-item { position: relative; display: grid;
|
|
142
|
+
.le-brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
|
|
143
|
+
.le-rail-item { position: relative; display: grid; place-items: center; height: 40px; padding: 0; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font-size: 11px; font-weight: 600; }
|
|
135
144
|
.le-rail-item .le-nav-icon { width: 19px; height: 19px; }
|
|
145
|
+
/* Icons only: each one's name shows beside it on hover. */
|
|
146
|
+
.le-rail-item > span:not(.le-inbox-count) { position: absolute; left: calc(100% + 8px); top: 50%; transform: translate(-4px, -50%); padding: 4px 9px; border-radius: 7px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 60; }
|
|
147
|
+
.le-rail-item:hover > span:not(.le-inbox-count), .le-rail-item:focus-visible > span:not(.le-inbox-count) { opacity: 1; transform: translate(0, -50%); }
|
|
136
148
|
.le-rail-item:hover { background: var(--surface-2); color: var(--ink); }
|
|
137
|
-
.le-rail-item.is-current { background: var(--
|
|
138
|
-
.le-rail-item .le-
|
|
149
|
+
.le-rail-item.is-current { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
|
|
150
|
+
.le-rail-item.is-current .le-nav-icon { color: var(--accent-ink); }
|
|
151
|
+
.le-rail-item .le-inbox-count { position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 5px; font-size: 10px; }
|
|
139
152
|
.le-inbox-count[hidden] { display: none; }
|
|
140
153
|
.le-rail-gap { flex: 1; }
|
|
154
|
+
button.le-rail-item { border: 0; background: none; height: 40px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; width: 100%; }
|
|
155
|
+
.le-adv-toggle[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
|
|
156
|
+
.le-simple [data-advanced] { display: none !important; }
|
|
157
|
+
html:not(.le-simple) [data-simple] { display: none !important; }
|
|
141
158
|
.le-nav-icon { width: 15px; height: 15px; flex-shrink: 0; }
|
|
142
|
-
.le-panel { width: 228px; flex: none; display: flex; flex-direction: column; min-height: 0;
|
|
159
|
+
.le-panel { width: 228px; flex: none; display: flex; flex-direction: column; min-height: 0; padding-top: 14px; }
|
|
143
160
|
.le-panel[hidden] { display: none; }
|
|
144
161
|
.le-sidebar.previewing .le-panel { position: absolute; left: 100%; top: 0; bottom: 0; z-index: 30; background: var(--sidebar); border: 1px solid var(--line); border-width: 0 1px 0 0; box-shadow: 8px 0 24px rgba(0, 0, 0, .12); }
|
|
145
162
|
.le-pane { display: none; flex-direction: column; min-height: 0; flex: 1; }
|
|
@@ -159,7 +176,7 @@ export const devUiCss = `
|
|
|
159
176
|
/* List items read smaller than their section's head. */
|
|
160
177
|
.le-agent-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 12.5px; }
|
|
161
178
|
.le-agent-item:hover { background: var(--surface-2); }
|
|
162
|
-
.le-agent-item[aria-current="page"] { background: var(--
|
|
179
|
+
.le-agent-item[aria-current="page"] { background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
|
|
163
180
|
.le-agent-item .le-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
164
181
|
.le-agent-item .le-meta { font-size: 11.5px; color: var(--ink-faint); }
|
|
165
182
|
.le-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
|
|
@@ -172,7 +189,7 @@ export const devUiCss = `
|
|
|
172
189
|
.le-settings-menu { display: grid; gap: 2px; padding: 0 8px; }
|
|
173
190
|
.le-settings-menu a { padding: 6px 10px; border-radius: 6px; color: var(--ink-muted); text-decoration: none; font-size: 13px; }
|
|
174
191
|
.le-settings-menu a:hover { background: var(--surface-2); color: var(--ink); }
|
|
175
|
-
.le-settings-menu a[aria-current="page"] { background: var(--
|
|
192
|
+
.le-settings-menu a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
|
|
176
193
|
.le-who { position: relative; display: grid; place-items: center; padding-top: 8px; }
|
|
177
194
|
.le-who[hidden] { display: none; }
|
|
178
195
|
.le-who-badge { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: default; }
|
|
@@ -180,18 +197,18 @@ export const devUiCss = `
|
|
|
180
197
|
.le-who:hover .le-who-card, .le-who:focus-within .le-who-card { display: grid; }
|
|
181
198
|
.le-who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
|
182
199
|
.le-who-card a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
|
|
183
|
-
.le-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
|
|
200
|
+
.le-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); margin: 8px 8px 8px 0; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
|
|
184
201
|
.le-scroll { flex: 1; min-height: 0; overflow-y: auto; }
|
|
185
|
-
.le-page { padding:
|
|
186
|
-
.le-head { padding:
|
|
187
|
-
.le-head.plain { padding-bottom:
|
|
202
|
+
.le-page { padding: 28px 32px; max-width: 1140px; display: grid; gap: 28px; }
|
|
203
|
+
.le-head { padding: 26px 32px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; border-bottom: 1px solid var(--line); }
|
|
204
|
+
.le-head.plain { padding-bottom: 20px; }
|
|
188
205
|
.le-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
|
|
189
206
|
.le-title { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
|
|
190
|
-
.le-title h1 { font-size:
|
|
207
|
+
.le-title h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
|
|
191
208
|
.le-head-id { margin-left: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; vertical-align: middle; }
|
|
192
209
|
.le-title p { margin: 4px 0 0; color: var(--ink-muted); max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
193
210
|
.le-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
|
194
|
-
.le-chip { font-size: 12px; padding:
|
|
211
|
+
.le-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-muted); white-space: nowrap; }
|
|
195
212
|
.le-chip.mono { font-family: var(--font-mono); font-size: 11.5px; }
|
|
196
213
|
.le-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
|
|
197
214
|
.le-tab { padding: 10px 12px; color: var(--ink-muted); border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; text-decoration: none; }
|
|
@@ -201,14 +218,48 @@ export const devUiCss = `
|
|
|
201
218
|
.le-count.warn { background: var(--warn-soft); color: var(--warn); }
|
|
202
219
|
.le-menu-btn { display: none; border: 0; background: transparent; padding: 2px 6px; font-size: 18px; line-height: 1; color: var(--ink-muted); }
|
|
203
220
|
.le-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
|
|
204
|
-
.le-card { border: 1px solid var(--line); border-radius: var(--radius); padding:
|
|
205
|
-
a.le-card:hover { border-color: var(--
|
|
221
|
+
.le-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; align-content: start; color: var(--ink); text-decoration: none; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
|
|
222
|
+
a.le-card:hover { border-color: var(--ink-faint); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }
|
|
206
223
|
.le-card .le-card-label { font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; }
|
|
207
|
-
.le-card .le-card-value { font-size:
|
|
224
|
+
.le-card .le-card-value { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
208
225
|
.le-card .le-card-detail { font-size: 12.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
|
|
209
226
|
.le-card.attention { border-color: var(--warn); box-shadow: inset 0 3px 0 var(--warn-soft); }
|
|
210
227
|
.le-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
|
|
211
228
|
.le-empty { color: var(--ink-faint); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
|
|
229
|
+
|
|
230
|
+
/* ---------- page language: top bar, display title, hairline grid ---------- */
|
|
231
|
+
/* A page's top bar: its name and tabs, then search and actions. */
|
|
232
|
+
.le-topbar { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 20px; border-bottom: 1px solid var(--line); flex: none; }
|
|
233
|
+
.le-topbar-title { font-size: 15px; font-weight: 600; margin: 0 6px 0 0; white-space: nowrap; }
|
|
234
|
+
.le-topbar-gap { flex: 1; }
|
|
235
|
+
.le-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); }
|
|
236
|
+
.le-seg button, .le-seg a { border: 0; background: none; height: 30px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
|
|
237
|
+
.le-seg button:hover:not(:disabled), .le-seg a:hover { background: none; color: var(--ink); }
|
|
238
|
+
.le-seg [aria-selected="true"], .le-seg [aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
|
|
239
|
+
.le-btn-dark { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 10px; border: 0; background: var(--primary); color: var(--on-primary); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
|
|
240
|
+
.le-btn-dark:hover:not(:disabled) { background: var(--primary); opacity: .88; }
|
|
241
|
+
.le-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--surface); color: var(--ink-faint); min-width: 200px; }
|
|
242
|
+
.le-search input { border: 0; background: none; padding: 0; height: 100%; font-size: 13px; flex: 1; min-width: 0; }
|
|
243
|
+
.le-search input:focus { outline: none; }
|
|
244
|
+
/* A big, light title: a sentence, with its key words darker. */
|
|
245
|
+
.le-display { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
|
|
246
|
+
.le-display .soft { color: var(--ink-faint); }
|
|
247
|
+
.le-display-sub { margin: 8px 0 0; font-size: 15px; color: var(--ink-muted); }
|
|
248
|
+
/* A hairline grid: cells share their lines, and small crosses mark the
|
|
249
|
+
outer corners, like a drawing's guides. */
|
|
250
|
+
.le-grid { position: relative; display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
|
|
251
|
+
.le-grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
|
|
252
|
+
.le-grid::before, .le-grid::after { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; background: linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat, linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat; pointer-events: none; }
|
|
253
|
+
.le-grid::before { left: -5px; }
|
|
254
|
+
.le-grid::after { right: -5px; }
|
|
255
|
+
/* An on/off switch. */
|
|
256
|
+
.le-switch { position: relative; width: 36px; height: 21px; flex: none; border-radius: 999px; border: 0; padding: 0; background: var(--surface-2); cursor: pointer; transition: background .15s; }
|
|
257
|
+
.le-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
|
|
258
|
+
.le-switch[aria-checked="true"] { background: var(--primary); }
|
|
259
|
+
.le-switch[aria-checked="true"]::after { left: 18px; }
|
|
260
|
+
.le-switch:hover:not(:disabled) { background: var(--surface-2); filter: brightness(.96); }
|
|
261
|
+
.le-switch[aria-checked="true"]:hover:not(:disabled) { background: var(--primary); }
|
|
262
|
+
.le-mascot { display: block; }
|
|
212
263
|
@media (max-width: 860px) {
|
|
213
264
|
.le-app { grid-template-columns: minmax(0, 1fr); }
|
|
214
265
|
.le-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
|
|
@@ -216,6 +267,7 @@ export const devUiCss = `
|
|
|
216
267
|
.le-panel { width: 204px; }
|
|
217
268
|
.le-menu-btn { display: block; }
|
|
218
269
|
.le-head, .le-page { padding-left: 16px; padding-right: 16px; }
|
|
270
|
+
.le-main { margin: 0; border-radius: 0; border: 0; box-shadow: none; }
|
|
219
271
|
}
|
|
220
272
|
@media (prefers-reduced-motion: reduce) { .le-sidebar { transition: none; } }
|
|
221
273
|
`;
|
|
@@ -190,7 +190,7 @@ ${consoleShellScript}
|
|
|
190
190
|
(data.canSave ? '<td>' + keyCell + '</td>' : '') + '</tr>';
|
|
191
191
|
}).join('');
|
|
192
192
|
// Without the admin sign-in, keys can't be saved here: said once.
|
|
193
|
-
var keysNote = data.canSave ? '' : '
|
|
193
|
+
var keysNote = data.canSave ? '' : leShell.adminNote('To add keys here, set <code>LOOPENGINE_ADMIN_AUTH</code> first. Or put each key in the project' + String.fromCharCode(8217) + 's <code>.env</code> under the name shown.');
|
|
194
194
|
|
|
195
195
|
var agentRows = data.agents.length
|
|
196
196
|
? data.agents.map(function (a) {
|
|
@@ -698,7 +698,7 @@ ${consoleShellScript}
|
|
|
698
698
|
apps.apps.forEach(function (a) { if (categories.indexOf(a.category) === -1) categories.push(a.category); });
|
|
699
699
|
var shown = apps.apps.filter(function (a) { return appCategory === 'All' || a.category === appCategory; });
|
|
700
700
|
el.innerHTML =
|
|
701
|
-
(apps.canConnect ? '' : '
|
|
701
|
+
(apps.canConnect ? '' : leShell.adminNote('Connecting an app saves its key on this server, so it needs <code>LOOPENGINE_ADMIN_AUTH</code> set first.')) +
|
|
702
702
|
(signInNote ? '<p class="' + (signInNote.bad ? 'error' : 'hint') + '">' + escapeHtml(signInNote.text) + '</p>' : '') +
|
|
703
703
|
'<section><h3>Connected</h3>' + (apps.connected.length
|
|
704
704
|
? '<div class="app-list">' + apps.connected.map(function (c) {
|
|
@@ -1024,23 +1024,23 @@ ${consoleShellScript}
|
|
|
1024
1024
|
(si.dashboardUrl ? ' · <a href="' + escapeHtml(si.dashboardUrl) + '">Dashboard</a>' : '')
|
|
1025
1025
|
: si.mode === 'basic'
|
|
1026
1026
|
? 'Basic Auth (<code>LOOPENGINE_ADMIN_AUTH</code>)'
|
|
1027
|
-
: '<span class="error">None: anyone who can reach this
|
|
1027
|
+
: '<span class="error">None: anyone who can reach this workspace can use it.</span><span class="hint" data-advanced> Set <code>LOOPENGINE_ADMIN_AUTH</code>.</span>';
|
|
1028
1028
|
var rows = [
|
|
1029
1029
|
['Admin sign-in', signIn],
|
|
1030
1030
|
['LoopEngine version', '<code>' + escapeHtml(d.version) + '</code>'],
|
|
1031
|
-
['Environment name', '<code>' + escapeHtml(d.environment) + '</code> <span class="hint">(LOOPENGINE_ENV)</span>'],
|
|
1032
|
-
['Public address', d.publicUrl ? '<code>' + escapeHtml(d.publicUrl) + '</code>' : '<span class="hint">Not set (LOOPENGINE_PUBLIC_URL); links in notifications use the address saved with each notifier</span>'],
|
|
1033
|
-
['Scheduled tasks', d.scheduler === 'off' ? 'Off on this server (LOOPENGINE_SCHEDULER=off)' : 'Run by this server'],
|
|
1031
|
+
['Environment name', '<code>' + escapeHtml(d.environment) + '</code> <span class="hint">(LOOPENGINE_ENV)</span>', true],
|
|
1032
|
+
['Public address', d.publicUrl ? '<code>' + escapeHtml(d.publicUrl) + '</code>' : '<span class="hint">Not set (LOOPENGINE_PUBLIC_URL); links in notifications use the address saved with each notifier</span>', true],
|
|
1033
|
+
['Scheduled tasks', d.scheduler === 'off' ? 'Off on this server (LOOPENGINE_SCHEDULER=off)' : 'Run by this server', true],
|
|
1034
1034
|
// With a time zone to choose, it has its own section below.
|
|
1035
1035
|
d.timeZone ? null : ['Time zone', '<span class="hint">The server' + String.fromCharCode(8217) + 's own. Update the template below to choose one here.</span>'],
|
|
1036
1036
|
['Theme', 'Follows your system'],
|
|
1037
1037
|
];
|
|
1038
1038
|
return '<section><table><thead><tr><th>Setting</th><th>Value</th></tr></thead><tbody>' +
|
|
1039
|
-
rows.filter(Boolean).map(function (r) { return '<tr><td>' + r[0] + '</td><td>' + r[1] + '</td></tr>'; }).join('') +
|
|
1039
|
+
rows.filter(Boolean).map(function (r) { return '<tr' + (r[2] ? ' data-advanced' : '') + '><td>' + r[0] + '</td><td>' + r[1] + '</td></tr>'; }).join('') +
|
|
1040
1040
|
'</tbody></table></section>' +
|
|
1041
1041
|
(d.timeZone ? '<section><h3>Time zone</h3><div class="source" id="timeZoneBox"><p class="hint">Loading' + String.fromCharCode(8230) + '</p></div></section>' : '') +
|
|
1042
1042
|
'<section><h3>Shared policies</h3><div class="source" id="policiesBox"><p class="hint">Loading' + String.fromCharCode(8230) + '</p></div></section>' +
|
|
1043
|
-
'<section><h3>Private ability sources</h3><p class="muted" style="margin:0 0 10px">Where your own abilities come from, listed under Private on the Abilities page next to LoopEngine's official ones.</p><div class="source" id="abilitySourcesBox"><p class="hint">Loading' + String.fromCharCode(8230) + '</p></div></section>' +
|
|
1043
|
+
'<section data-advanced><h3>Private ability sources</h3><p class="muted" style="margin:0 0 10px">Where your own abilities come from, listed under Private on the Abilities page next to LoopEngine's official ones.</p><div class="source" id="abilitySourcesBox"><p class="hint">Loading' + String.fromCharCode(8230) + '</p></div></section>' +
|
|
1044
1044
|
'<section><h3>Updates</h3><div class="source" id="upgradeBox"><p class="hint">Checking for a newer LoopEngine' + String.fromCharCode(8230) + '</p></div></section>';
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
@@ -1082,7 +1082,7 @@ ${consoleShellScript}
|
|
|
1082
1082
|
'<button type="submit">Add source</button>' +
|
|
1083
1083
|
'<div class="error" id="sourceError"></div>' +
|
|
1084
1084
|
'</form>'
|
|
1085
|
-
: '
|
|
1085
|
+
: leShell.adminNote('Adding a source needs <code>LOOPENGINE_ADMIN_AUTH</code> set, because it stores a token. Or edit <code>ability-sources.yml</code> and <code>.env</code>.'));
|
|
1086
1086
|
var form = document.getElementById('sourceForm');
|
|
1087
1087
|
if (!form) return;
|
|
1088
1088
|
var TOKEN_HINTS = {
|
|
@@ -1149,7 +1149,7 @@ ${consoleShellScript}
|
|
|
1149
1149
|
var intro = '<p>Schedules and templates use this for times of day: “daily at 09:00” runs at 9:00 here, and daily and weekly schedules keep that time when the clocks change. ' +
|
|
1150
1150
|
(t.chosen ? '' : 'Not chosen yet, so it' + String.fromCharCode(8217) + 's the server' + String.fromCharCode(8217) + 's (<code>' + escapeHtml(t.server) + '</code>).') + '</p>';
|
|
1151
1151
|
if (!t.canSave) {
|
|
1152
|
-
box.innerHTML = intro + '<p>In use: <code>' + escapeHtml(t.timeZone) + '</code></p
|
|
1152
|
+
box.innerHTML = intro + '<p>In use: <code>' + escapeHtml(t.timeZone) + '</code></p>' + leShell.adminNote('Set <code>LOOPENGINE_ADMIN_AUTH</code> to change it here, or put <code>LOOPENGINE_TIME_ZONE</code> in .env.');
|
|
1153
1153
|
return;
|
|
1154
1154
|
}
|
|
1155
1155
|
var browserZone = '';
|
|
@@ -1199,7 +1199,7 @@ ${consoleShellScript}
|
|
|
1199
1199
|
if (!box) return;
|
|
1200
1200
|
var intro = '<p style="margin:0 0 10px">Rules every workflow follows, written once: your refund window, delivery promises, tone, who signs messages. Each run reads them above its own instructions, and a workflow' + String.fromCharCode(8217) + 's own instructions win where they say more.</p>';
|
|
1201
1201
|
if (!p.canSave) {
|
|
1202
|
-
box.innerHTML = intro + (p.policies ? '<pre class="hint" style="white-space:pre-wrap;margin:0">' + escapeHtml(p.policies) + '</pre>' : '<p class="hint">None yet.</p>') + '<
|
|
1202
|
+
box.innerHTML = intro + (p.policies ? '<pre class="hint" style="white-space:pre-wrap;margin:0">' + escapeHtml(p.policies) + '</pre>' : '<p class="hint">None yet.</p>') + leShell.adminNote('Set <code>LOOPENGINE_ADMIN_AUTH</code> to change them here, or edit <code>policies.md</code> in the project.');
|
|
1203
1203
|
return;
|
|
1204
1204
|
}
|
|
1205
1205
|
box.innerHTML = intro +
|
|
@@ -1317,7 +1317,7 @@ ${consoleShellScript}
|
|
|
1317
1317
|
if (u.unavailableReason) {
|
|
1318
1318
|
box.innerHTML = headline + '<p class="hint">' + escapeHtml(u.unavailableReason) + '</p>';
|
|
1319
1319
|
} else if (!u.canUpgrade) {
|
|
1320
|
-
box.innerHTML = headline + '<
|
|
1320
|
+
box.innerHTML = headline + leShell.adminNote('Set <code>LOOPENGINE_ADMIN_AUTH</code> to upgrade from here, or run <code>npx create-loopengine@latest upgrade</code>.');
|
|
1321
1321
|
} else {
|
|
1322
1322
|
box.innerHTML = headline +
|
|
1323
1323
|
'<p class="hint">' + UPGRADE_NOTE + (u.restartsItself ? '' : ' This server has nothing to restart it, so restart it yourself afterwards.') + '</p>' +
|
package/dist/web/goals-admin.js
CHANGED
|
@@ -594,7 +594,7 @@ export function editJob(deps, id, jobId, body) {
|
|
|
594
594
|
const goal = getGoal(deps, id);
|
|
595
595
|
const job = findWorkflow(goal, jobId);
|
|
596
596
|
if (job.kind === 'once')
|
|
597
|
-
throw new GoalError('This one-off
|
|
597
|
+
throw new GoalError('This one-off run is from before goals suggested workflows; it can’t take workflows.');
|
|
598
598
|
if (body.action === 'link') {
|
|
599
599
|
const ref = refFrom(body, 'Adding a workflow');
|
|
600
600
|
const info = deps.workflowInfo?.(ref.agent, ref.workflowId);
|
package/dist/web/goals-page.js
CHANGED
|
@@ -23,9 +23,9 @@ const goalsPageTemplate = `<!doctype html>
|
|
|
23
23
|
.gl textarea { width: 100%; box-sizing: border-box; min-height: 64px; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); resize: vertical; }
|
|
24
24
|
.gl textarea:focus, .gl select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
25
25
|
.gl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
26
|
-
.gl-btn { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--
|
|
27
|
-
.gl-btn:hover:not(:disabled) { filter: brightness(1.08); background: var(--
|
|
28
|
-
.gl-btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
|
|
26
|
+
.gl-btn { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); cursor: pointer; }
|
|
27
|
+
.gl-btn:hover:not(:disabled) { filter: brightness(1.08); background: var(--primary); }
|
|
28
|
+
.gl-btn.soft { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
|
|
29
29
|
.gl-btn.soft:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); filter: none; }
|
|
30
30
|
.gl-btn.plain { background: none; border-color: var(--line); color: var(--ink); font-weight: 500; }
|
|
31
31
|
.gl-btn.danger { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
|
|
@@ -205,6 +205,8 @@ ${consoleShellScript}
|
|
|
205
205
|
// A goal to start from (?new=1&text=...): one typed on the website's
|
|
206
206
|
// goal box before signing up, carried in by "Open workspace".
|
|
207
207
|
var startText = (new URLSearchParams(location.search).get('text') || '').slice(0, 500);
|
|
208
|
+
// From Home's box (&go=1): suggest at once, without a second click.
|
|
209
|
+
var autoStart = Boolean(startText) && new URLSearchParams(location.search).get('go') === '1';
|
|
208
210
|
var state = { addOpen: false, addDraft: '', addShare: false, addNotice: null, flows: {}, openJobs: {}, goals: [], about: '', settings: {}, current: null, creating: startNew, showDiscarded: false, justDiscarded: null, error: '', poll: null, startedAt: 0 };
|
|
209
211
|
|
|
210
212
|
function esc(s) {
|
|
@@ -225,6 +227,7 @@ ${consoleShellScript}
|
|
|
225
227
|
if (id) url.searchParams.set('goal', id); else url.searchParams.delete('goal');
|
|
226
228
|
url.searchParams.delete('new');
|
|
227
229
|
url.searchParams.delete('text');
|
|
230
|
+
url.searchParams.delete('go');
|
|
228
231
|
if (url.pathname === '/') url.pathname = '/goals';
|
|
229
232
|
history.replaceState(null, '', url);
|
|
230
233
|
}
|
|
@@ -570,6 +573,7 @@ ${consoleShellScript}
|
|
|
570
573
|
render();
|
|
571
574
|
});
|
|
572
575
|
});
|
|
576
|
+
if (submit && autoStart) { autoStart = false; submit.click(); }
|
|
573
577
|
var kind = document.getElementById('glKind');
|
|
574
578
|
if (kind) kind.addEventListener('change', function () { saveSettings({ businessKind: kind.value || null }); });
|
|
575
579
|
var share = document.getElementById('glShare');
|