loopengine 0.5.5 → 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 +10 -8
- package/dist/web/agents-list-page.js +1 -1
- package/dist/web/audit-admin.js +3 -3
- package/dist/web/audit-page.js +1 -1
- package/dist/web/console-shell.js +4 -2
- package/dist/web/dev-ui-styles.js +92 -44
- 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
|
@@ -43,7 +43,7 @@ export async function handleJobMessage(message, deps) {
|
|
|
43
43
|
const threadTs = message.threadTs ?? message.ts;
|
|
44
44
|
const say = (text) => connector.postInThread(message.conversation, threadTs, text);
|
|
45
45
|
if (deps.plan === 'free') {
|
|
46
|
-
await say(`Starting
|
|
46
|
+
await say(`Starting runs from ${connector.name} needs LoopEngine Pro.`);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
const gate = deps.allowed(message);
|
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export { compressResponses, serveConsoleAsset } from './web/response-compression
|
|
|
147
147
|
export { workflowsOverviewPageHtml } from './web/workflows-overview-page.js';
|
|
148
148
|
export { homeOverview, workflowsOverview, startsOf, type HomeOverview, type WorkflowsOverview, type WorkflowOverviewRow } from './web/workflows-overview.js';
|
|
149
149
|
export { homePageHtml } from './web/home-page.js';
|
|
150
|
+
export { schedulesPageHtml } from './web/schedules-page.js';
|
|
150
151
|
export { listInbox, getInboxCase, timelineOf, RECENT_DAYS, INBOX_VIEWS, type InboxView, type InboxDeps, type InboxItem, type InboxCase, type InboxPending, type InboxStep, type InboxState, type InboxArchived } from './web/inbox-admin.js';
|
|
151
152
|
export { readArchived, setArchived } from './web/inbox-archive.js';
|
|
152
153
|
export { startTurnTrace, type TurnTrace } from './core/trace.js';
|
package/dist/index.js
CHANGED
|
@@ -138,6 +138,7 @@ export { compressResponses, serveConsoleAsset } from './web/response-compression
|
|
|
138
138
|
export { workflowsOverviewPageHtml } from './web/workflows-overview-page.js';
|
|
139
139
|
export { homeOverview, workflowsOverview, startsOf } from './web/workflows-overview.js';
|
|
140
140
|
export { homePageHtml } from './web/home-page.js';
|
|
141
|
+
export { schedulesPageHtml } from './web/schedules-page.js';
|
|
141
142
|
export { listInbox, getInboxCase, timelineOf, RECENT_DAYS, INBOX_VIEWS } from './web/inbox-admin.js';
|
|
142
143
|
export { readArchived, setArchived } from './web/inbox-archive.js';
|
|
143
144
|
export { startTurnTrace } from './core/trace.js';
|
|
@@ -90,7 +90,7 @@ export const agentsConfigPageHtml = `<!doctype html>
|
|
|
90
90
|
.wf-page .workflow-result:empty { display: none; }
|
|
91
91
|
.wf-tab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
|
|
92
92
|
.wf-tab-head p { margin: 0; max-width: 72ch; }
|
|
93
|
-
.wf-new-btn { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--
|
|
93
|
+
.wf-new-btn { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
|
|
94
94
|
.wf-new-btn:hover { filter: brightness(1.08); }
|
|
95
95
|
.wf-card { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); overflow: hidden; }
|
|
96
96
|
.wf-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px 16px; }
|
|
@@ -238,7 +238,7 @@ export const agentsConfigPageHtml = `<!doctype html>
|
|
|
238
238
|
.wf-health-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
|
239
239
|
.wf-audit-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
|
|
240
240
|
.wf-audit-tools a { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; }
|
|
241
|
-
.wf-audit-tools a.primary { background: var(--
|
|
241
|
+
.wf-audit-tools a.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
|
|
242
242
|
.wf-health-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
|
|
243
243
|
.wf-health-more .wf-health-table { margin-top: 8px; }
|
|
244
244
|
.wf-sub-sub { font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-top: 6px; }
|
|
@@ -388,6 +388,8 @@ export const agentsConfigPageHtml = `<!doctype html>
|
|
|
388
388
|
@media (max-width: 640px) { .wf-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
389
389
|
.wf-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
|
|
390
390
|
/* Triggers in the pink of .delete-btn, apart from Edit's accent. */
|
|
391
|
+
.wf-page .wf-row-actions .workflow-edit { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
|
|
392
|
+
.wf-page .wf-row-actions .workflow-edit:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); opacity: 0.88; }
|
|
391
393
|
.wf-row-actions .workflow-triggers-open { border-color: var(--line); background: var(--bg); color: var(--ink); }
|
|
392
394
|
.wf-row-actions .workflow-triggers-open:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
|
|
393
395
|
.wf-row-foot .wf-remove { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
|
|
@@ -1972,7 +1974,7 @@ ${renderMarkdownScript}
|
|
|
1972
1974
|
return '<section class="wf-section">' + critSection + '</section>' +
|
|
1973
1975
|
'<section class="wf-section"><h4 class="wf-sub">Eval cases' + (evals.cases.length ? ' (' + evals.cases.length + ')' : '') + '</h4>' +
|
|
1974
1976
|
'<p class="hint" style="margin:0">Real runs saved to check every change against.</p>' +
|
|
1975
|
-
(cases ? '<ul class="wf-cases">' + cases + '</ul>' : '<p class="hint" style="margin:0">None yet: add suggested ones below, or save any run from its
|
|
1977
|
+
(cases ? '<ul class="wf-cases">' + cases + '</ul>' : '<p class="hint" style="margin:0">None yet: add suggested ones below, or save any run from its trace (Activity).</p>') +
|
|
1976
1978
|
'<div class="wf-evals-bar"><button type="button" class="wf-evals-run"' + (!evals.cases.length || running ? ' disabled' : '') + '>' + (running ? 'Evaluating ' + running.done + ' of ' + running.total + String.fromCharCode(8230) : 'Evaluate') + '</button>' +
|
|
1977
1979
|
'<span class="hint">Runs every eval case again with the current instructions and checks each result against the success criteria. Nothing is sent, refunded or submitted.</span></div>' +
|
|
1978
1980
|
lastLine + '</section>' +
|
|
@@ -4113,12 +4115,12 @@ ${renderMarkdownScript}
|
|
|
4113
4115
|
var free = n.plan === 'free';
|
|
4114
4116
|
var on = !free && f.jobs === true;
|
|
4115
4117
|
var how = app === 'telegram'
|
|
4116
|
-
? 'A private chat with the bot, or @mentioning it in a group, runs the agent on that message, and it answers with a reply. Replying to its answer carries the
|
|
4117
|
-
: 'A DM to the bot, or @mentioning it in a channel, runs the agent on that message, and it answers in a thread. Replies in the thread carry the
|
|
4118
|
+
? 'A private chat with the bot, or @mentioning it in a group, runs the agent on that message, and it answers with a reply. Replying to its answer carries the run on. In a group the bot only sees mentions when it's an admin or its privacy mode is off (@BotFather, /setprivacy); replies to its messages always reach it.'
|
|
4119
|
+
: 'A DM to the bot, or @mentioning it in a channel, runs the agent on that message, and it answers in a thread. Replies in the thread carry the run on.';
|
|
4118
4120
|
return '<div class="body-field" style="margin:4px 0 0">' +
|
|
4119
4121
|
'<label class="tool-picker-item" style="border:0;padding:0;justify-content:flex-start"><input type="checkbox" name="jobs" id="' + app + 'Jobs"' + (on ? ' checked' : '') + (free ? ' disabled' : '') + '> ' +
|
|
4120
|
-
'Start
|
|
4121
|
-
'<p class="hint" style="margin:2px 0 0">' + (free ? 'Starting
|
|
4122
|
+
'Start runs from messages' + (free ? ' <span class="le-pill accent">Pro</span>' : '') + '</label>' +
|
|
4123
|
+
'<p class="hint" style="margin:2px 0 0">' + (free ? 'Starting runs from ' + CHANNEL_TITLES[app] + ' needs LoopEngine Pro.' : how + ' Only approvers (below) can start runs; with none listed, anyone in its ' + (app === 'telegram' ? 'chat' : 'channel') + ' can, but not by direct message. A request it needs approved waits in the same thread.') + '</p></div>';
|
|
4122
4124
|
}
|
|
4123
4125
|
|
|
4124
4126
|
// A secret's state at a glance: a pill by the label, and a placeholder
|
|
@@ -4333,7 +4335,7 @@ ${renderMarkdownScript}
|
|
|
4333
4335
|
}).join('');
|
|
4334
4336
|
var where = app === 'telegram' ? 'by replying to it' : 'by replying in its thread';
|
|
4335
4337
|
return '<section class="approvers-section" data-app="' + app + '" style="max-width:560px;margin-top:18px;padding-top:14px;border-top:1px solid var(--le-line, #e5e7eb)"><h4 style="margin:0 0 6px">Approvers</h4>' +
|
|
4336
|
-
(n.primary !== app ? '<p class="hint" style="margin:0 0 8px">' + title + ' isn't primary, so requests aren't sent there until it is.
|
|
4338
|
+
(n.primary !== app ? '<p class="hint" style="margin:0 0 8px">' + title + ' isn't primary, so requests aren't sent there until it is. Runs started there still use this list.</p>' : '') +
|
|
4337
4339
|
'<p class="muted" style="margin:0 0 10px">People who can approve, deny, change or answer a request ' + where + ', like “yes, go ahead” or “make it $40”. A plain “yes” runs it; a reply that's less clear (“sure, send it”, “yes but check the amount”) shows exactly what will run with a Confirm button first, and a change is shown to approve first. Once anyone is listed, only approvers' button clicks count, and only approvers can give the agent jobs. Anyone can still ask about a request.</p>' +
|
|
4338
4340
|
(approvers.length
|
|
4339
4341
|
? '<div class="le-table-wrap" style="max-width:560px"><table><thead><tr><th>Name</th><th>' + title + ' ID</th><th></th></tr></thead><tbody>' + rows + '</tbody></table></div>'
|
|
@@ -24,7 +24,7 @@ export const agentsListPageHtml = `<!doctype html>
|
|
|
24
24
|
.agent-card .does .hint { font-size: 12.5px; }
|
|
25
25
|
.agent-card .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
|
|
26
26
|
.agent-card .links a { font-size: 12.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--ink); }
|
|
27
|
-
.agent-card .links a.primary { background: var(--
|
|
27
|
+
.agent-card .links a.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
|
|
28
28
|
#empty { color: var(--ink-muted); }
|
|
29
29
|
.hint { font-size: 12px; color: var(--ink-muted); }
|
|
30
30
|
.error { font-size: 13px; color: var(--bad); }
|
package/dist/web/audit-admin.js
CHANGED
|
@@ -69,7 +69,7 @@ export function eventAction(e, names = PLAIN_NAMES) {
|
|
|
69
69
|
const was = Array.isArray(d.changes) ? d.changes.find((c) => c.field === 'title')?.from : undefined;
|
|
70
70
|
return names.workflowTitle(agent, id) || str(d.title) || (was && was !== '(none)' ? was : '') || id;
|
|
71
71
|
};
|
|
72
|
-
const run = { type: 'Run', name: e.workflow_id ? workflowName(e.agent, e.workflow_id) : 'One-off
|
|
72
|
+
const run = { type: 'Run', name: e.workflow_id ? workflowName(e.agent, e.workflow_id) : 'One-off run', agent: e.agent, ...(e.workflow_id ? { workflowId: e.workflow_id } : {}), ...(e.run_id ? { runId: e.run_id } : {}) };
|
|
73
73
|
if (e.kind === 'decision')
|
|
74
74
|
return { action: d.approved ? (d.edited ? 'Tool call approved with changes' : 'Tool call approved') : 'Tool call denied', resource: run };
|
|
75
75
|
if (e.kind === 'answer')
|
|
@@ -104,7 +104,7 @@ export function eventAction(e, names = PLAIN_NAMES) {
|
|
|
104
104
|
return { action: label, resource: { type: 'Agent', name: names.agentLabel(e.agent), agent: e.agent } };
|
|
105
105
|
return { action: label, resource: { type: 'Workspace', name: 'Settings' } };
|
|
106
106
|
}
|
|
107
|
-
const CSV_COLUMNS = ['When (UTC)', 'Person', 'Action', 'Resource type', 'Resource', 'Kind', 'Agent', 'Workflow', 'What', 'Detail', '
|
|
107
|
+
const CSV_COLUMNS = ['When (UTC)', 'Person', 'Action', 'Resource type', 'Resource', 'Kind', 'Agent', 'Workflow', 'What', 'Detail', 'Run', 'Event', 'Hash'];
|
|
108
108
|
function csvCell(value) {
|
|
109
109
|
// A leading = + - @ would run as a formula in a spreadsheet.
|
|
110
110
|
const safe = /^[=+\-@]/.test(value) ? `'${value}` : value;
|
|
@@ -126,7 +126,7 @@ export function caseRow(run, workflowTitle, evalCase = false) {
|
|
|
126
126
|
id: run.run_id,
|
|
127
127
|
agent: run.agent,
|
|
128
128
|
workflowId: run.workflow_id,
|
|
129
|
-
workflowTitle: workflowTitle ?? (run.workflow_id || 'One-off
|
|
129
|
+
workflowTitle: workflowTitle ?? (run.workflow_id || 'One-off run'),
|
|
130
130
|
inputs: short(inputs, 160),
|
|
131
131
|
status: run.status,
|
|
132
132
|
startedAt: run.started_at,
|
package/dist/web/audit-page.js
CHANGED
|
@@ -39,7 +39,7 @@ export const auditPageHtml = `<!doctype html>
|
|
|
39
39
|
.au-summary ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.5; }
|
|
40
40
|
.au-summary-tools { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
41
41
|
.au-summary-tools a { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; }
|
|
42
|
-
.au-summary-tools a.primary { background: var(--
|
|
42
|
+
.au-summary-tools a.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
|
|
43
43
|
.au-export { font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
|
|
44
44
|
.au-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
|
|
45
45
|
.au-row, .au-head { display: grid; grid-template-columns: 136px minmax(0, 170px) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
|
|
@@ -47,6 +47,7 @@ const GOALS_ICON = '<svg class="le-nav-icon" viewBox="0 0 24 24" fill="none" str
|
|
|
47
47
|
// A clipboard with a tick, for Audit.
|
|
48
48
|
const AUDIT_ICON = '<svg class="le-nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 4V3h6v1"/><path d="m9 13 2 2 4-4"/></svg>';
|
|
49
49
|
// A gear, for Settings.
|
|
50
|
+
const SCHEDULES_ICON = '<svg class="le-nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>';
|
|
50
51
|
const ADVANCED_ICON = '<svg class="le-nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>';
|
|
51
52
|
const SETTINGS_ICON = '<svg class="le-nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>';
|
|
52
53
|
// Two columns: the sections (Inbox, Goals, Agents, Workflows, Audit,
|
|
@@ -62,6 +63,7 @@ export const consoleSidebarHtml = `<aside class="le-sidebar" aria-label="Console
|
|
|
62
63
|
<a class="le-rail-item" href="/goals" data-le-nav-head="goals" data-le-section="goals">${GOALS_ICON}<span>Goals</span></a>
|
|
63
64
|
<a class="le-rail-item" href="/agents" data-le-nav-head="agents" data-le-section="agents">${AGENTS_ICON}<span>Agents</span></a>
|
|
64
65
|
<a class="le-rail-item" href="/workflows" data-le-nav-head="workflows" data-le-section="workflows">${WORKFLOWS_ICON}<span>Workflows</span></a>
|
|
66
|
+
<a class="le-rail-item" href="/schedules" data-le-nav-head="schedules" data-le-section="schedules">${SCHEDULES_ICON}<span>Schedules</span></a>
|
|
65
67
|
<a class="le-rail-item" href="/audit" data-le-nav-head="audit" data-le-section="audit">${AUDIT_ICON}<span>Audit</span></a>
|
|
66
68
|
<span class="le-rail-gap"></span>
|
|
67
69
|
<button type="button" class="le-rail-item le-adv-toggle" id="leAdvToggle" aria-pressed="false" title="Advanced view: also show version history, evaluations, the contract, the API and agent internals">${ADVANCED_ICON}<span>Advanced</span></button>
|
|
@@ -409,8 +411,8 @@ export const consoleShellScript = `<script>
|
|
|
409
411
|
: page === 'config' ? 'settings'
|
|
410
412
|
: page === 'inbox' ? 'inbox'
|
|
411
413
|
: page === 'audit' ? 'audit'
|
|
412
|
-
|
|
413
|
-
:
|
|
414
|
+
: page === 'schedules' ? 'schedules'
|
|
415
|
+
: '';
|
|
414
416
|
var railItems = document.querySelectorAll('[data-le-section]');
|
|
415
417
|
for (var ri = 0; ri < railItems.length; ri++) {
|
|
416
418
|
if (railItems[ri].getAttribute('data-le-section') === section0) railItems[ri].classList.add('is-current');
|
|
@@ -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,25 +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; }
|
|
141
|
-
button.le-rail-item { border: 0; background: none; height:
|
|
154
|
+
button.le-rail-item { border: 0; background: none; height: 40px; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; width: 100%; }
|
|
142
155
|
.le-adv-toggle[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
|
|
143
156
|
.le-simple [data-advanced] { display: none !important; }
|
|
144
157
|
html:not(.le-simple) [data-simple] { display: none !important; }
|
|
145
158
|
.le-nav-icon { width: 15px; height: 15px; flex-shrink: 0; }
|
|
146
|
-
.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; }
|
|
147
160
|
.le-panel[hidden] { display: none; }
|
|
148
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); }
|
|
149
162
|
.le-pane { display: none; flex-direction: column; min-height: 0; flex: 1; }
|
|
@@ -163,7 +176,7 @@ export const devUiCss = `
|
|
|
163
176
|
/* List items read smaller than their section's head. */
|
|
164
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; }
|
|
165
178
|
.le-agent-item:hover { background: var(--surface-2); }
|
|
166
|
-
.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); }
|
|
167
180
|
.le-agent-item .le-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
168
181
|
.le-agent-item .le-meta { font-size: 11.5px; color: var(--ink-faint); }
|
|
169
182
|
.le-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
|
|
@@ -176,7 +189,7 @@ export const devUiCss = `
|
|
|
176
189
|
.le-settings-menu { display: grid; gap: 2px; padding: 0 8px; }
|
|
177
190
|
.le-settings-menu a { padding: 6px 10px; border-radius: 6px; color: var(--ink-muted); text-decoration: none; font-size: 13px; }
|
|
178
191
|
.le-settings-menu a:hover { background: var(--surface-2); color: var(--ink); }
|
|
179
|
-
.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); }
|
|
180
193
|
.le-who { position: relative; display: grid; place-items: center; padding-top: 8px; }
|
|
181
194
|
.le-who[hidden] { display: none; }
|
|
182
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; }
|
|
@@ -184,18 +197,18 @@ export const devUiCss = `
|
|
|
184
197
|
.le-who:hover .le-who-card, .le-who:focus-within .le-who-card { display: grid; }
|
|
185
198
|
.le-who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
|
186
199
|
.le-who-card a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
|
|
187
|
-
.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); }
|
|
188
201
|
.le-scroll { flex: 1; min-height: 0; overflow-y: auto; }
|
|
189
|
-
.le-page { padding:
|
|
190
|
-
.le-head { padding:
|
|
191
|
-
.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; }
|
|
192
205
|
.le-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
|
|
193
206
|
.le-title { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
|
|
194
|
-
.le-title h1 { font-size:
|
|
207
|
+
.le-title h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
|
|
195
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; }
|
|
196
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; }
|
|
197
210
|
.le-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
|
198
|
-
.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; }
|
|
199
212
|
.le-chip.mono { font-family: var(--font-mono); font-size: 11.5px; }
|
|
200
213
|
.le-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
|
|
201
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; }
|
|
@@ -205,14 +218,48 @@ export const devUiCss = `
|
|
|
205
218
|
.le-count.warn { background: var(--warn-soft); color: var(--warn); }
|
|
206
219
|
.le-menu-btn { display: none; border: 0; background: transparent; padding: 2px 6px; font-size: 18px; line-height: 1; color: var(--ink-muted); }
|
|
207
220
|
.le-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
|
|
208
|
-
.le-card { border: 1px solid var(--line); border-radius: var(--radius); padding:
|
|
209
|
-
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); }
|
|
210
223
|
.le-card .le-card-label { font-size: 12px; color: var(--ink-faint); display: flex; justify-content: space-between; }
|
|
211
|
-
.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; }
|
|
212
225
|
.le-card .le-card-detail { font-size: 12.5px; color: var(--ink-muted); overflow-wrap: anywhere; }
|
|
213
226
|
.le-card.attention { border-color: var(--warn); box-shadow: inset 0 3px 0 var(--warn-soft); }
|
|
214
227
|
.le-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
|
|
215
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; }
|
|
216
263
|
@media (max-width: 860px) {
|
|
217
264
|
.le-app { grid-template-columns: minmax(0, 1fr); }
|
|
218
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); }
|
|
@@ -220,6 +267,7 @@ export const devUiCss = `
|
|
|
220
267
|
.le-panel { width: 204px; }
|
|
221
268
|
.le-menu-btn { display: block; }
|
|
222
269
|
.le-head, .le-page { padding-left: 16px; padding-right: 16px; }
|
|
270
|
+
.le-main { margin: 0; border-radius: 0; border: 0; box-shadow: none; }
|
|
223
271
|
}
|
|
224
272
|
@media (prefers-reduced-motion: reduce) { .le-sidebar { transition: none; } }
|
|
225
273
|
`;
|
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');
|