docs(design): add UI redesign handoff bundle
Add a self-contained design handoff under docs/design/ui-redesign/ (README, build prompt, HTML mockups, design-canvas sources, CSS and JSON theme tokens). docs/design/ is held back from the published docs sets like docs/inspiration/: it is input to building the UI, not a page to read. Remove the superseded service-decomposition research from docs/inspiration/.
This commit is contained in:
1 parent
0083cfaf5f
commit
a2da1196a3
33 files changed
+3696
-1436
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# Prompt for Claude Code
|
||||
|
||||
Unzip this bundle into the repo at `docs/design/ui-redesign/`, then paste the prompt below.
|
||||
|
||||
---
|
||||
|
||||
The design handoff for the Archie UI redesign is in `docs/design/ui-redesign/`. It covers a new theme, a new
|
||||
top-level navigation, the Settings pages (Channels moves in there), and the Dashboard, Task detail, Workflows,
|
||||
New task dialog and Events pages.
|
||||
|
||||
Read `README.md` in full, then look at every PNG in `screenshots/`. The `00-current-*.png` files show how the
|
||||
pages look today; `P0-navigation-map.png` shows what moves where. The static HTML in `mockups/` has the exact
|
||||
CSS if you need it. `tokens/tokens.css` holds the colours, fonts and sizes.
|
||||
|
||||
Treat the spec as a hypothesis to check against the code, not a spec to copy exactly.
|
||||
|
||||
Before changing anything:
|
||||
1. Find how the UI is built: framework, router, component library, where styles and theme colours live,
|
||||
and where the purple comes from.
|
||||
2. Map today's routes and the Work / System menus to the proposed navigation in README §2. List every
|
||||
page that isn't covered and where you'd put it.
|
||||
3. For Settings and Channels: find how each section loads and saves config, how "Restart required",
|
||||
"Version", "History" and the audit log work, and where "Connecting" comes from. Map every field in
|
||||
README §5 to its real config key and type.
|
||||
4. Answer the backend questions in README §5.2 and §9.
|
||||
5. Check what data the Dashboard, Task detail and Workflows pages already get, and list anything the
|
||||
mockups show that isn't available.
|
||||
|
||||
Then write a short migration plan using the PR sequence in README §8. Adjust it to what you found and
|
||||
list anything the mockups assume that the backend doesn't support. Stop and show me the plan before you
|
||||
write code.
|
||||
|
||||
When I approve, do PR 1 only (theme tokens across the whole app, no layout changes) on a new branch, with
|
||||
before/after screenshots of each page.
|
||||
@@ -0,0 +1,277 @@
|
||||
# Archie UI Redesign — Handoff
|
||||
|
||||
A redesign of the Archie web UI:
|
||||
|
||||
- a calmer **"Graphite" theme** that replaces the purple
|
||||
- a **new navigation**: five top-level places, with all configuration moved under Settings
|
||||
- new layouts for **Settings** (every section, plus Channels moved in), the **Dashboard**,
|
||||
**Task detail**, **Workflows**, a **New task** dialog and **Events**
|
||||
|
||||
This folder is self-contained. Read this file first, then look at the screenshots.
|
||||
|
||||
```
|
||||
README.md ← this spec (read it all before planning)
|
||||
CLAUDE_PROMPT.md ← the prompt to paste into Claude Code
|
||||
tokens/tokens.css ← theme as CSS custom properties (source of truth)
|
||||
tokens/tokens.json ← same values as JSON (for Tailwind / JS themes)
|
||||
screenshots/
|
||||
00-current-*.png ← how each page looks TODAY
|
||||
P0-navigation-map ← today → proposed navigation, and what moves where
|
||||
P1…P5 ← app pages: dashboard, task detail, workflows, new task, events
|
||||
S1…S5 ← settings: sidebar + rows, personas, tools & MCP, review drawer, channels
|
||||
T-theme-components ← palette, type, buttons, pills, toggles, inputs
|
||||
mockups/*.html ← static HTML of each screenshot; open in a browser, inspect for exact CSS
|
||||
source/*.dc.html ← original design-canvas sources (reference only, needs a runtime that isn't included)
|
||||
```
|
||||
|
||||
> **How to treat this.** The mockups are a target, not a pixel spec. They are static HTML
|
||||
> written by hand; the app's framework, component library, router and data model win. Where the
|
||||
> mockups assume something the backend doesn't have, flag it rather than faking it.
|
||||
> Text in `[square brackets]` in a mockup is a placeholder for real data.
|
||||
|
||||
---
|
||||
|
||||
## 1. Problems being fixed (all pages)
|
||||
|
||||
1. **Purple everywhere.** Purple-tinted backgrounds, borders, buttons, checkboxes, bars and links all compete for attention.
|
||||
2. **Repeated chrome.** Every settings card has its own "Connecting" pill, "Restart required" pill, "Version 1",
|
||||
"Save changes" and "History". Workflows and Channels repeat the pattern.
|
||||
3. **Raw config shapes leak through.** Durations as Go strings (`1h0m0s`, `0s`), bytes as `2000000`,
|
||||
maps as key/value boxes, secret refs as two separate Engine/Key text fields, booleans as bare checkboxes with no explanation.
|
||||
4. **No descriptions.** Almost no field says what it does.
|
||||
5. **Things live in the wrong place.** Channels (configuration) sits under Work; "Start work" sits inside the
|
||||
workflow editor page; the Channels audit table only covers Channels; workflow analytics mix every workflow together.
|
||||
6. **The most important information isn't first.** The Dashboard opens with quality gates; the "3 need you" count is a small button.
|
||||
|
||||
## 2. Navigation (screenshot `P0-navigation-map.png`)
|
||||
|
||||
**Top bar (every page):** logo · **Dashboard · Tasks · Workflows · Events · Settings** · spacer ·
|
||||
"Jump to…" search (⌘K) · **New task** button · connection pill · account avatar.
|
||||
The Work and System dropdowns go away. The floating chat button stays, restyled (neutral fill, accent icon).
|
||||
|
||||
| Place | Job | Contains |
|
||||
|---|---|---|
|
||||
| Dashboard | What needs me right now | Needs-you queue, live activity, health (quality gates, tokens) |
|
||||
| Tasks | The work | Task list (filter by state), task detail |
|
||||
| Workflows | How work runs | List with runs/success/cost, definition editor, Performance and Runs tabs |
|
||||
| Events | What comes in | Inspector, Mappings, Bindings |
|
||||
| Settings | Everything you configure | **Agents:** Personas, Schedules, Scheduling policy · **Integrations:** Channels, Tools & MCP, Plugins · **Runtime:** Container runtime · **History** |
|
||||
|
||||
What moves:
|
||||
|
||||
| What | Moves to | Why |
|
||||
|---|---|---|
|
||||
| Start work card (Workflows page) | **New task** dialog from the top bar and ⌘K | Starting work isn't editing a workflow |
|
||||
| Channels (Work menu) | Settings › Integrations › Channels | It's configuration; gets the shared setting rows and save flow |
|
||||
| Audit table (Channels page) | Settings › History, filterable by section | One change log for all settings; replaces per-card History links |
|
||||
| Per workflow table | Columns in the Workflows list | Stats next to the workflow you're about to open |
|
||||
| Slowest stages · Most failures | Workflow › Performance tab | Scoped to the selected workflow |
|
||||
| Connecting / Version pills on every card | One connection status in the top bar | Connection is global |
|
||||
| Settings "Managed elsewhere" row | Removed; those are the Events tabs | They already live there |
|
||||
| Task "Attempt 2 is not recorded" column | Attempts list in the task side rail | Shows every attempt and its outcome |
|
||||
|
||||
The dropdown contents of today's Work and System menus were inferred from screenshots. **Check the router** and
|
||||
place any page not covered here using the same rule: configure → Settings, act on → where the work is.
|
||||
|
||||
## 3. Theme
|
||||
|
||||
All values are in `tokens/tokens.css`. Rules that matter more than the hex values:
|
||||
|
||||
- **One accent, used sparingly.** Default sage `#86b5a0`. Only for: active nav/list item (2px inset left bar + raised background),
|
||||
active tab underline, focus borders/rings, "edited" dots and counts, toggle "on" track, primary button fill, success text,
|
||||
the "live"/"running"/"connected" dot, and positive bars. Never for backgrounds, headings or borders at rest.
|
||||
- Keep the accent a **single variable** so it can be swapped (sage / steel `#8aa4c2` / sand `#d4a373` / muted violet `#a397c9`).
|
||||
- **Neutral, slightly warm greys**, no hue tint on surfaces and no background gradients. Hierarchy comes from surface steps and borders.
|
||||
- **Amber = needs attention** (parked, awaiting reply, applies after restart, connecting). **Red = failed / destructive / risky**
|
||||
(errors, delete, unrestricted filesystem). No other hues except the agent state swatches in the tokens.
|
||||
- **Fonts:** IBM Plex Sans for UI; **IBM Plex Mono for every machine value**: config values, IDs, keys, env var names,
|
||||
image refs, durations, paths, event names, task numbers, log lines, counts in tables.
|
||||
- Text contrast: `--text-3` is the dimmest text allowed, and only for hints and captions.
|
||||
|
||||
## 4. Components (screenshot `T-theme-components.png`)
|
||||
|
||||
Build these once and reuse everywhere. Heights are 36px unless noted.
|
||||
|
||||
| Component | Spec |
|
||||
|---|---|
|
||||
| **Button** | primary (accent fill, `--text-on-accent`), secondary (`--raised` + `--border-button`), ghost (transparent, `--text-2`), destructive (red text, transparent). 13px/500, radius 6. Small variant 30px/12px. **One primary per view.** |
|
||||
| **Text input** | `--bg` fill, `--border-input`, radius 6, mono 13px. Focus: accent border + 3px `--accent-ring`. Invalid: red border + 12px red message. |
|
||||
| **Input with unit** | input + attached suffix (`MB`, `sec`, `chars`) or unit `<select>`. |
|
||||
| **Duration input** | number + unit select. Convert to/from Go durations (`30s`, `1m0s`, `72h0m0s`) only at the API boundary. |
|
||||
| **Byte size input** | number + `MB`; store bytes (2,000,000 bytes = 2 MB, decimal). |
|
||||
| **Stepper** | − / value / + for small integers. |
|
||||
| **Toggle** | 36×20 track. On = accent (or red for risky settings), off = `--border-input`. Always labelled; risky ones sit in a bordered row with a one-line consequence. Real checkbox / `role="switch"` underneath. |
|
||||
| **Segmented control** | 2–4 exclusive options, radiogroup with arrow keys. Selected segment `--raised-2`. |
|
||||
| **Tabs** | 44px, 13px, `--text-3`; active = `--text` + 2px accent underline. Left-aligned, sized to content (not stretched full width). Optional mono count chip. |
|
||||
| **Secret reference** | one row: lock icon · engine (mono, dim) · `/` · key (mono) · "Change". Status line below: accent ✓ "Credential resolved by Archie" or red "Credential not found". Replaces separate Engine/Key inputs and the "Credential configured" checkbox. |
|
||||
| **Chip input** | for lists of IDs (Telegram allowed users): mono chips with × plus an inline input. |
|
||||
| **Status pill** | radius 999, 12px. Neutral with coloured dot (connection, running, listening), warn (parked, awaiting reply, applies after restart), accent outline (edited count, default), danger (invalid). |
|
||||
| **Card** | `--surface`, `--border-card`, radius 10. Header row: optional 32px icon tile · title (15px/500) + hint · right-side status/action. |
|
||||
| **Stat strip** | one card split into equal cells by 1px dividers: label (12px dim), value (30px/600), sub (12px dim). |
|
||||
| **Data table** | uppercase 11px headers, 13px rows, 1px `--border-subtle` dividers, mono for machine values, long text truncates with ellipsis. |
|
||||
| **Progress bar** | 4–6px track `--raised-2`, fill accent (good) or red (failing). |
|
||||
| **Empty state** | icon tile + title + one-line hint + the action (a button, or a copyable value). |
|
||||
| **Alert banner** | amber or red tinted box: icon · title · mono detail · one action on the right. |
|
||||
| **Nav item** (sidebars) | 34–36px, radius 6, 13px `--text-2`. Active: `--raised` + 2px inset accent bar. |
|
||||
| **Dialog** | 640px, `--surface-2`, radius 12, header (title + hint + close), body, footer (shortcut hint · Cancel · primary). Dim backdrop. |
|
||||
|
||||
Icons: 2px-stroke line icons. Use the app's existing icon set if it has one (e.g. Lucide).
|
||||
|
||||
## 5. Settings
|
||||
|
||||
### 5.1 Settings shell (`S1-settings-sidebar-setting-rows*.png`)
|
||||
- **Left sidebar (248–264px)** with grouped nav: AGENTS (Personas, Schedules, Scheduling policy), INTEGRATIONS (Channels, Tools & MCP, Plugins),
|
||||
RUNTIME (Container runtime), divider, History. Optional mono counts (Personas `6`). A section with unsaved edits shows an accent dot.
|
||||
- **Content column** max ~920–980px. Section header: 24px title, 14px description, amber "Applies after restart" pill when relevant.
|
||||
- **Groups** inside a section: 13px uppercase eyebrow.
|
||||
- **Setting row:** 2-column grid `260–280px | 1fr`, gap 32px, 16–20px vertical padding, 1px top border.
|
||||
Left: label (13px/500) + hint (12px dim). Right: the control.
|
||||
- Sidebar items are links (route or hash per section).
|
||||
|
||||
### 5.2 Save model (`S1` save bar + `S4-settings-review-drawer.png`)
|
||||
Replace every per-card Save button with one page-level flow:
|
||||
1. Track edits per field against the loaded config. Edited inputs get an accent border and a "was `old`" hint.
|
||||
2. When anything is dirty, a **sticky save bar** appears: accent dot · "N unsaved change(s)" · field names · **Discard** · primary
|
||||
**"Save & restart"** if any dirty field needs a restart, otherwise **"Save"**.
|
||||
3. The primary button opens the **Review drawer** (480px, right, dim backdrop): "Review N changes", "Saved together as config version N+1",
|
||||
amber restart callout (optionally with running agent count), changes grouped by section as cards with **Revert** and a mono diff
|
||||
(red `− old`, green `+ new`), footer Discard all · Save only · Save & restart.
|
||||
4. Personas keep their own save footer in the editor panel but still feed the page dirty state.
|
||||
|
||||
**Backend questions to answer first:** can several sections be saved atomically (or will saves be sequential with partial-failure handling)?
|
||||
Is "restart required" known per field or per section? Is there a restart action? If not, "Save & restart" becomes "Save" plus a
|
||||
persistent "Restart pending" banner.
|
||||
|
||||
### 5.3 Personas (`S2-settings-personas.png`)
|
||||
- Left: filter + New; list rows = name + one-line prompt; default persona has an accent-outline **default** pill; selected row = raised + accent bar.
|
||||
- Right: editor. Header: name + default pill · Duplicate · Delete. Body: Name (mono) and **Default persona** toggle; **System prompt** as a large
|
||||
mono textarea with "N chars · ~N tokens". Footer: "Saved · version N · History" · Discard · Save persona.
|
||||
- The old separate "Default" field becomes the per-persona toggle (setting one unsets the others).
|
||||
- The "try this persona" preview row is optional/future.
|
||||
- The mockup uses **top tabs** for section navigation; that's the narrow-width fallback. Use the sidebar shell on desktop.
|
||||
|
||||
### 5.4 Schedules
|
||||
Not mocked. Card empty state ("No schedules yet" + "Add schedule"); populated = list rows like Personas.
|
||||
|
||||
### 5.5 Scheduling policy (`S1`)
|
||||
- DISPATCH: *Trigger* segmented Assignee / Label (show the Label input only when Label is chosen); *Ack reaction* mono input.
|
||||
- STATE LABELS: bordered table `STATE | LABEL | ⌫` with coloured state swatch, mono label input, trash button, "+ Add state".
|
||||
Today's UI shows display name ("Dead"), key (`dead`) and value (`agent:dead`); the mockup merges name and key.
|
||||
If the key must stay editable, keep a small mono input in the State column.
|
||||
- RETRIES & POLLING: *Max retries* stepper; *Poll interval* duration input.
|
||||
|
||||
### 5.6 Channels (moved from Work; `S5-settings-channels.png`, today `00-current-channels.png`)
|
||||
- One card per channel. **Configured** channels are expanded with setting rows; **unconfigured** ones collapse to a single row
|
||||
(icon · name · one-line purpose · "Not set up" pill · **Set up** button that expands the fields).
|
||||
- **Telegram** (running): header status pill "Running" (accent). Rows: *Bot token* = secret reference (`env / HEYARCHIE_TELEGRAM_BOT_TOKEN`) + resolved line;
|
||||
*Allowed users* = chip input of numeric IDs, hint "Everyone else is ignored."
|
||||
- **Email** (collapsed): expands to *Listen address*, *Relay address*.
|
||||
- **Webhook** (collapsed): expands to *Deliver to*, *Path*, *Template*, *Signing secret* (secret reference), and *Webhook address*
|
||||
(today's top-level "Webhook addr" belongs here if it only serves the webhook channel; confirm).
|
||||
- **CHAT SESSION DEFAULTS · ALL CHANNELS** card with setting rows: *Workspace* (mono path), *Filesystem access* (Unrestricted filesystem toggle in a
|
||||
**red** bordered row: "On: agents can read and write anywhere this user can."), *Show tool calls* toggle, *Max steps*
|
||||
("0 = no limit": **confirm the real semantics**), *Rate limit* as "[n] requests per [n] [unit]" ("Off while either value is 0": confirm),
|
||||
*Models*, *Operator*.
|
||||
- Footer line: "Version N · N fields set by `actor` N ago · View in History". The audit table itself moves to Settings › History.
|
||||
- Channel status (running / stopped / error) must come from the backend, not from whether it's configured.
|
||||
|
||||
### 5.7 Tools & MCP (`S3-settings-tools-mcp.png`)
|
||||
- Header action **Add MCP server**. MCP servers card (full width): empty state offering "stdio command" / "HTTP / SSE endpoint"
|
||||
(only the transports the backend supports); populated rows = name, transport, enabled toggle, edit/delete.
|
||||
- **MiniMax** card: header "Enabled" toggle; API key as secret reference (`bws / MINIMAX_API_KEY`) + resolved line.
|
||||
- **Web fetch** card: "Enabled" toggle; *Max download* (bytes as MB); *Timeout* (duration, sec); *Allow private networks* as a bordered
|
||||
toggle row. Disable the fields when the card is off.
|
||||
- **Tool output policy** card: *Max result length* (`chars`, hint "About N tokens per tool call", ~4 chars/token), *Spill directory*.
|
||||
|
||||
### 5.8 Plugins
|
||||
Not mocked. Setting rows for *Module dir*, *Plugin dir*, *Secret engine dir*, *Skills dir* (mono, placeholder = effective default if exposed).
|
||||
|
||||
### 5.9 Container runtime (left side of `S4`)
|
||||
*Image* (full width, mono), *Max concurrency* (stepper), *Max uptime* (duration), *Network* (mono),
|
||||
*Pull policy* (select: If missing / Always / Never → `missing` / `always` / `never`), *Volume TTL* (duration), *Profiles* (mono).
|
||||
|
||||
### 5.10 History (new, not mocked)
|
||||
The Channels audit table generalised to all settings: When · Section · Field (mono) · Old → New (mono, truncated, expandable) ·
|
||||
Version · Changed by. Filters: section, actor, date. Every "History" link elsewhere deep-links here with the section filter applied.
|
||||
|
||||
## 6. App pages
|
||||
|
||||
### 6.1 Dashboard (`P1-dashboard.png`, today `00-current-dashboard.png`)
|
||||
- Header: "Good morning" + a one-line summary that **names the action** ("Nothing is running. 3 tasks need you." with the count in amber). Logs button on the right.
|
||||
- **Stat strip**: Working now / Needs you (amber value) / Delivered / Tokens used, with the same subtitles as today.
|
||||
- Two columns: main (1fr) and right rail (380px).
|
||||
- Main, first: **Needs you** card (count pill). One row per task: state pill (Parked / Awaiting reply) · title (link) ·
|
||||
mono meta line (`repo #issue · workflow · reason or last message`, truncated) · **Open** (ghost) + the next action
|
||||
(**Start new run** for parked, **Reply** for awaiting). "All tasks" link in the header.
|
||||
- Main, second: **Live activity** table: Event (mono, small colour square by kind, `×N` chip when consecutive identical events are grouped) · Task (mono) ·
|
||||
Detail (truncated) · When. Header: live pill + segmented filter All / Tasks / System.
|
||||
- Right rail: **Quality gates** (big pass rate, one row per gate with `passed / runs` and a bar: red when failing, accent when passing) and
|
||||
**Token outlook** (Today, "Next 30 days at this rate", a 7-day mini bar chart, and a note when history is shorter than a week).
|
||||
Today's full-width purple bar that shows nothing is removed.
|
||||
|
||||
### 6.2 Task detail (`P2-task-detail.png`, today `00-current-task-detail.png`)
|
||||
- Breadcrumb `Tasks / #1`, title, meta row: status pill · workflow (mono) · `repo #issue` link. Actions: **Archive** (ghost), **Start a new run** (primary).
|
||||
- **Alert banner** for parked/failed tasks: plain-language title ("Parked: couldn't prepare the worktree"), mono error detail, "Jump to log line".
|
||||
- Two columns: main card with tabs **Log · Changed files (count) · Configuration · Debug**; right rail (320px).
|
||||
- Log tab: toolbar = level select, stage select, search, Download. Log lines in mono: time · level (ERROR in red) · message with tag chips
|
||||
(`component=daemon`, `task=1`). Error lines get a faint red background and red left border. Footer "End of attempt N · N lines".
|
||||
- Right rail: **Attempts** list (dot colour = outcome; selected attempt highlighted; unrecorded attempts shown dimmed) and
|
||||
**Details** list (Status, Workflow link, Repository, Issue ↗, plus Persona, Tokens, Started if available).
|
||||
|
||||
### 6.3 Workflows (`P3-workflows.png`, today `00-current-workflows.png`)
|
||||
- Header: title + description ("Success rate is merged tasks over all runs"), **Restore shipped** (ghost), **New workflow**.
|
||||
- Left (420px): list = name + id (mono) · runs · success (`n of m` + bar) · avg tokens (compact: 4.7M, 282k). Selected = raised + accent bar.
|
||||
- Right: editor card. Header: name + origin pill (e.g. "shipped · edited"; derive from the real origin field) + run count.
|
||||
Tabs **Definition · Performance · Runs**.
|
||||
- Definition: *ID* input; *Steps* read-only preview (mono step chips joined by arrows, parsed from YAML);
|
||||
*YAML* editor with line numbers, mono, light syntax colouring, live "✓ Valid" / error indicator.
|
||||
Footer: "Version N · History" · Remove (destructive ghost) · Restore this workflow · **Validate & save**.
|
||||
- Performance (not mocked): today's **Slowest stages** and **Most failures**, filtered to this workflow.
|
||||
- Runs (not mocked): tasks that used this workflow, linking to Task detail.
|
||||
- The **Start work** card leaves this page (see 6.4).
|
||||
|
||||
### 6.4 New task dialog (`P4-new-task-dialog.png`)
|
||||
Replaces the Start work card. Opened from the top bar button, ⌘K, and optionally from a workflow ("Start task with this workflow").
|
||||
- Fields: *Repository* (mono, hint with recent repos), *Workflow* as a 3-column card radiogroup showing each workflow's runs and merge rate,
|
||||
*Title*, *Instructions* (textarea), and **Identity** tucked into an "Advanced · run as identity" disclosure.
|
||||
- Footer: "⌘↵ to start" · Cancel · **Start task**. On success, go to the new task's detail page.
|
||||
|
||||
### 6.5 Events (`P5-events.png`, today `00-current-events.png`)
|
||||
- Header with description ("Webhooks come in, get mapped to event types, and bindings turn them into work.") and a **Listening** pill.
|
||||
- Left-aligned tabs **Inspector · Mappings · Bindings** with count chips. (Reordered to follow the flow; keep the old order if you prefer.)
|
||||
- Inspector: a 3-step strip **Capture → Map → Bind** with counts; then **Recent captures** (empty state with the copyable endpoint
|
||||
`/webhooks/capture/<source>` and a Copy button) and **Event types** ("From payload" action, empty state explaining proposals).
|
||||
|
||||
## 7. Behaviour and accessibility
|
||||
|
||||
- Real `<button>`, `<a href>`, `<input>`, `<select>`, `<label for>`; icon-only buttons get `aria-label`. Toggles use checkbox/`role="switch"`.
|
||||
Segmented controls and workflow cards are radiogroups with arrow-key support. Dialogs trap focus and close on Esc.
|
||||
- Visible focus everywhere (accent ring). Touch targets ≥36px (44px on mobile).
|
||||
- Validate on blur; invalid fields block Save and are listed in the save bar.
|
||||
- Unsaved-changes guard on route leave.
|
||||
- Skeleton rows while loading; the top-bar connection pill reflects the socket/API state (Connecting amber, Connected accent, Disconnected red).
|
||||
- Live tables (activity, captures) insert new rows without layout jump; group consecutive identical events.
|
||||
- Narrow widths (<960px): settings sidebar → top tabs; two-column layouts stack; drawers and dialogs go full-width.
|
||||
|
||||
## 8. Suggested PR sequence
|
||||
|
||||
1. **Theme tokens only.** Swap purple for Graphite across the whole app. No layout changes. *Done when no purple remains.*
|
||||
2. **Shared components** from §4.
|
||||
3. **Top bar + navigation** (§2): new top-level items, New task button (can open the existing Start work form at first), one connection pill, route moves/redirects.
|
||||
4. **Settings shell** (sidebar groups, setting rows) and move Channels into it. Sections still save the old way.
|
||||
5. **Settings sections**: Scheduling policy, Plugins, Container runtime, Tools & MCP, Channels, Personas.
|
||||
6. **Unified save bar + review drawer + Settings › History** (needs the §5.2 backend decisions). Remove per-card save buttons and pills.
|
||||
7. **Dashboard.**
|
||||
8. **Task detail.**
|
||||
9. **Workflows** (list + editor + Performance tab) and **New task dialog**; remove the Start work card.
|
||||
10. **Events.**
|
||||
|
||||
Each PR: before/after screenshots and a note of anything deferred or unsupported.
|
||||
|
||||
## 9. Open questions / out of scope
|
||||
|
||||
- Real meaning of `max_steps = 0` and a zero rate limit (the mockup assumes "no limit" / "off").
|
||||
- Whether "Webhook addr" is webhook-channel-only or global.
|
||||
- Where the Dashboard's Needs-you reasons and last agent message come from.
|
||||
- Persona preview, light theme, user-facing accent picker (nice to have).
|
||||
- Atomic multi-section save and "restart now" (see §5.2).
|
||||
@@ -0,0 +1,95 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Proposed navigation</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.node{display:flex;align-items:baseline;gap:10px;font-size:14px;font-weight:500}
|
||||
.sub{font-size:12px;color:#8f8c85;font-weight:400}
|
||||
.kid{margin:6px 0 0 18px;padding-left:14px;border-left:1px solid #2e3034;display:flex;flex-direction:column;gap:6px;font-size:13px;color:#a6a39b}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.tbl{width:100%;border-collapse:collapse;font-size:13px}
|
||||
.tbl th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8f8c85;padding:10px 14px;border-bottom:1px solid #2a2c30}
|
||||
.tbl td{padding:10px 14px;border-bottom:1px solid #202225;vertical-align:top;line-height:1.45}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1120px; box-sizing: border-box; padding: 48px 56px; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; display: flex; flex-direction: column; gap: 28px">
|
||||
<div>
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Navigation: today → proposed</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Five top-level places, each with one job. Anything you configure lives in Settings; anything you act on lives where the work is.</p>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px">
|
||||
<section class="card" style="padding: 24px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div class="eyebrow">Today</div>
|
||||
<div class="node" style="color: #a6a39b">Dashboard</div>
|
||||
<div><div class="node" style="color: #a6a39b">Work <span class="sub">dropdown</span></div>
|
||||
<div class="kid"><span>Tasks</span><span>Workflows <span class="sub">editor + start work + stats</span></span><span>Channels <span class="sub">settings + audit</span></span></div></div>
|
||||
<div><div class="node" style="color: #a6a39b">Events</div>
|
||||
<div class="kid"><span>Inspector · Bindings · Mappings</span></div></div>
|
||||
<div><div class="node" style="color: #a6a39b">System <span class="sub">dropdown</span></div>
|
||||
<div class="kid"><span>Advanced <span class="sub">6 cards, 6 save buttons</span></span></div></div>
|
||||
<p class="hint" style="margin: 8px 0 0">Dropdown contents are inferred from the screenshots; confirm against the router.</p>
|
||||
</section>
|
||||
|
||||
<section class="card" style="padding: 24px">
|
||||
<div class="eyebrow" style="margin-bottom: 16px; color: #86b5a0">Proposed</div>
|
||||
<div style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px">
|
||||
<div><div class="node">Dashboard <span class="sub">what needs me</span></div>
|
||||
<div class="kid"><span>Needs you queue</span><span>Live activity</span><span>Health: gates, tokens</span></div></div>
|
||||
<div><div class="node">Tasks <span class="sub">the work</span></div>
|
||||
<div class="kid"><span>Task list <span class="sub">filter by state</span></span><span>Task detail <span class="sub">log · files · config · debug</span></span><span>Attempts in a side rail</span></div></div>
|
||||
<div><div class="node">Workflows <span class="sub">how work runs</span></div>
|
||||
<div class="kid"><span>List with success + cost</span><span>Definition editor</span><span>Performance tab <span class="sub">stages, failures</span></span></div></div>
|
||||
<div><div class="node">Events <span class="sub">what comes in</span></div>
|
||||
<div class="kid"><span>Inspector</span><span>Bindings</span><span>Mappings</span></div></div>
|
||||
<div style="grid-column: span 2"><div class="node">Settings <span class="sub">everything you configure, one save flow</span></div>
|
||||
<div class="kid" style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px">
|
||||
<span><span style="color: #e8e6e1">Agents</span><br>Personas · Schedules · Scheduling policy</span>
|
||||
<span><span style="color: #e8e6e1">Integrations</span><br>Channels · Tools & MCP · Plugins</span>
|
||||
<span><span style="color: #e8e6e1">Runtime</span><br>Container runtime · History</span>
|
||||
</div></div>
|
||||
</div>
|
||||
<div style="margin-top: 24px; padding-top: 16px; border-top: 1px solid #232529; display: flex; gap: 24px; font-size: 13px; color: #a6a39b">
|
||||
<span><span style="color: #e8e6e1; font-weight: 500">Always in the top bar:</span> New task · ⌘K Jump to · connection status</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="card" style="overflow: hidden">
|
||||
<table class="tbl">
|
||||
<thead><tr><th style="width: 290px">What</th><th style="width: 280px">Moves to</th><th>Why</th></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Start work card (Workflows)</td><td><span style="color: #86b5a0">→</span> New task dialog, from the top bar</td><td style="color: #a6a39b">Starting work is not editing a workflow. One entry point from any page, and from ⌘K.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Channels (Work menu)</td><td><span style="color: #86b5a0">→</span> Settings › Integrations › Channels</td><td style="color: #a6a39b">It is configuration. It gets the same setting rows, secret fields and save flow as the rest.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Audit table (Channels page)</td><td><span style="color: #86b5a0">→</span> Settings › History</td><td style="color: #a6a39b">One change log for every setting, filterable by section. Replaces six History links.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Per workflow table</td><td><span style="color: #86b5a0">→</span> Workflows list columns</td><td style="color: #a6a39b">Runs, success and cost sit next to the workflow you are about to open.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Slowest stages · Most failures</td><td><span style="color: #86b5a0">→</span> Workflow › Performance tab</td><td style="color: #a6a39b">Scoped to the selected workflow instead of mixing every workflow in one table.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Connecting · Version pills on every card</td><td><span style="color: #86b5a0">→</span> One status in the top bar</td><td style="color: #a6a39b">Connection is global. Version shows once per page, in History.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Settings "Managed elsewhere" row</td><td><span style="color: #86b5a0">→</span> Events tabs</td><td style="color: #a6a39b">Captured events, mappings and bindings already live there.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Task "Attempt 2 is not recorded" column</td><td><span style="color: #86b5a0">→</span> Attempts list in the task side rail</td><td style="color: #a6a39b">Shows every attempt with its outcome; the empty column goes away.</td></tr>
|
||||
|
||||
<tr><td style="color: #e8e6e1">Dashboard stat cards and health</td><td><span style="color: #86b5a0">→</span> Stat strip + right rail</td><td style="color: #a6a39b">"Needs you" becomes the first thing on the page, with actions inline.</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,187 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Dashboard</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:15px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.warn{color:#d9a45b;border-color:rgba(217,164,91,.3);background:rgba(217,164,91,.08)}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tbl{width:100%;border-collapse:collapse;font-size:13px}
|
||||
.tbl th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8f8c85;padding:10px 20px;border-bottom:1px solid #2a2c30}
|
||||
.tbl td{padding:10px 20px;border-bottom:1px solid #202225;vertical-align:middle}
|
||||
.chip{font:11px 'IBM Plex Mono',monospace;color:#8f8c85;background:#1e2023;border-radius:4px;padding:1px 6px;margin-left:6px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden; position: relative">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#" class="on">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; min-height: 0">
|
||||
<div style="display: flex; align-items: flex-end; gap: 16px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Good morning</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Nothing is running. <span style="color: #d9a45b">3 tasks need you.</span></p>
|
||||
</div>
|
||||
<button class="btn"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 6h16M4 12h10M4 18h13"></path></svg>Logs</button>
|
||||
</div>
|
||||
|
||||
<section class="card" style="flex-direction: row">
|
||||
|
||||
<div style="flex: 1 1 0; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<div class="hint">Working now</div>
|
||||
<div style="font-size: 30px; font-weight: 600; margin-top: 6px; color: #e8e6e1">0</div>
|
||||
<div class="hint" style="margin-top: 2px">0 waiting to start</div>
|
||||
</div>
|
||||
|
||||
<div style="flex: 1 1 0; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<div class="hint">Needs you</div>
|
||||
<div style="font-size: 30px; font-weight: 600; margin-top: 6px; color: #d9a45b">3</div>
|
||||
<div class="hint" style="margin-top: 2px">Parked or awaiting a reply</div>
|
||||
</div>
|
||||
|
||||
<div style="flex: 1 1 0; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<div class="hint">Delivered</div>
|
||||
<div style="font-size: 30px; font-weight: 600; margin-top: 6px; color: #e8e6e1">1</div>
|
||||
<div class="hint" style="margin-top: 2px">25% of all tasks</div>
|
||||
</div>
|
||||
|
||||
<div style="flex: 1 1 0; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<div class="hint">Tokens used</div>
|
||||
<div style="font-size: 30px; font-weight: 600; margin-top: 6px; color: #e8e6e1">14.5M</div>
|
||||
<div class="hint" style="margin-top: 2px">Across 1 day</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; min-height: 0; flex-grow: 1">
|
||||
<div style="display: flex; flex-direction: column; gap: 24px; min-width: 0">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Needs you</span><span class="pill warn">3</span><div style="flex-grow: 1"></div><a href="#" class="hint" style="text-decoration: underline">All tasks</a></div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #202225">
|
||||
<span class="pill warn" style="justify-self: start">Parked</span>
|
||||
<div style="min-width: 0">
|
||||
<a href="#" style="font-size: 14px; font-weight: 500">changes_captured key-set validation is top-level only</a>
|
||||
<div class="mono" style="font-size: 12px; color: #8f8c85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">archie-core #868 · tdd · worktree prepare failed: fetch origin: http transport…</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px"><button class="btn btn-sm btn-ghost">Open</button><button class="btn btn-sm">Start new run</button></div>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #202225">
|
||||
<span class="pill warn" style="justify-self: start">Awaiting reply</span>
|
||||
<div style="min-width: 0">
|
||||
<a href="#" style="font-size: 14px; font-weight: 500">[Task title]</a>
|
||||
<div class="mono" style="font-size: 12px; color: #8f8c85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">[repo #issue] · [workflow] · [last agent message]</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px"><button class="btn btn-sm btn-ghost">Open</button><button class="btn btn-sm">Reply</button></div>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #202225">
|
||||
<span class="pill warn" style="justify-self: start">Awaiting reply</span>
|
||||
<div style="min-width: 0">
|
||||
<a href="#" style="font-size: 14px; font-weight: 500">[Task title]</a>
|
||||
<div class="mono" style="font-size: 12px; color: #8f8c85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">[repo #issue] · [workflow] · [last agent message]</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px"><button class="btn btn-sm btn-ghost">Open</button><button class="btn btn-sm">Reply</button></div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="card" style="flex-grow: 1; overflow: hidden">
|
||||
<div class="card-h"><span class="card-t">Live activity</span><span class="pill" style="color: #86b5a0; border-color: #86b5a0"><span class="dot" style="background: #86b5a0"></span>live</span><div style="flex-grow: 1"></div>
|
||||
<div role="radiogroup" aria-label="Filter activity" style="display: inline-flex; padding: 2px; border: 1px solid #2e3034; border-radius: 7px"><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 12px 'IBM Plex Sans', sans-serif">All</button><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">Tasks</button><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">System</button></div>
|
||||
</div>
|
||||
<table class="tbl">
|
||||
<thead><tr><th>Event</th><th style="width: 70px">Task</th><th>Detail</th><th style="width: 110px">When</th></tr></thead>
|
||||
<tbody>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #6f6c66"></span>curator_run</td><td class="mono" style="font-size: 12px; color: #a6a39b">—</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">session-memory</td><td class="hint">19 mins ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #8aa4c2"></span>task_archive_requested</td><td class="mono" style="font-size: 12px; color: #a6a39b">#5</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">archive requested with no recorded actor</td><td class="hint">1 hr ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #d9776b"></span>task_abandoned</td><td class="mono" style="font-size: 12px; color: #a6a39b">#5</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">abandoned with no recorded actor</td><td class="hint">1 hr ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #6f6c66"></span>curator_run<span class="chip">×6</span></td><td class="mono" style="font-size: 12px; color: #a6a39b">—</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">session-memory</td><td class="hint">1 hr ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #8aa4c2"></span>stage_start<span class="chip">×4</span></td><td class="mono" style="font-size: 12px; color: #a6a39b">#5</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis"></td><td class="hint">1 hr ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #8aa4c2"></span>stage_start<span class="chip">×5</span></td><td class="mono" style="font-size: 12px; color: #a6a39b">#4</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis"></td><td class="hint">7 hrs ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #86b5a0"></span>agent_finish</td><td class="mono" style="font-size: 12px; color: #a6a39b">#4</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">Problem surface for samcharles93/archie-core issue 836 ("Updater cannot detect o…</td><td class="hint">7 hrs ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #86b5a0"></span>agent_finish</td><td class="mono" style="font-size: 12px; color: #a6a39b">#4</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">Root cause</td><td class="hint">7 hrs ago</td></tr>
|
||||
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: #8aa4c2"></span>stage_start<span class="chip">×6</span></td><td class="mono" style="font-size: 12px; color: #a6a39b">#4</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis"></td><td class="hint">8 hrs ago</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 24px">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Quality gates</span><div style="flex-grow: 1"></div><span class="hint">last 4 runs</span></div>
|
||||
<div style="padding: 20px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div style="display: flex; align-items: baseline; gap: 10px"><span style="font-size: 30px; font-weight: 600">25%</span><span class="hint">pass rate</span></div>
|
||||
|
||||
<div>
|
||||
<div style="display: flex; font-size: 13px; margin-bottom: 6px"><span class="mono">tdd</span><span style="margin-left: auto; color: #a6a39b" class="mono">0 / 3</span></div>
|
||||
<div style="height: 6px; border-radius: 3px; background: #26282c"><div style="height: 6px; border-radius: 3px; width: 2%; background: #d9776b"></div></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div style="display: flex; font-size: 13px; margin-bottom: 6px"><span class="mono">triage</span><span style="margin-left: auto; color: #a6a39b" class="mono">1 / 1</span></div>
|
||||
<div style="height: 6px; border-radius: 3px; background: #26282c"><div style="height: 6px; border-radius: 3px; width: 100%; background: #86b5a0"></div></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Token outlook</span></div>
|
||||
<div style="padding: 20px; display: flex; flex-direction: column; gap: 14px">
|
||||
<div style="display: flex; gap: 24px">
|
||||
<div><div class="hint">Today</div><div style="font-size: 22px; font-weight: 600; margin-top: 2px">14.5M</div></div>
|
||||
<div><div class="hint">Next 30 days at this rate</div><div style="font-size: 22px; font-weight: 600; margin-top: 2px">≈ 434M</div></div>
|
||||
</div>
|
||||
<div aria-label="Tokens per day, last 7 days" style="display: flex; align-items: flex-end; gap: 6px; height: 64px">
|
||||
<div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">M</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">T</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">W</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">T</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 48px; border-radius: 3px; background: #86b5a0"></div><span class="mono" style="font-size: 10px; color: #8f8c85">F</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">S</span></div><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: 3px; border-radius: 3px; background: #26282c"></div><span class="mono" style="font-size: 10px; color: #8f8c85">S</span></div>
|
||||
</div>
|
||||
<div class="hint">Only 1 day of history. The projection steadies after a week of runs.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<button aria-label="Chat with Archie" style="position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #34373c; background: #1e2023; color: #86b5a0; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z"></path></svg></button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,127 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Task detail</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:14px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.warn{color:#d9a45b;border-color:rgba(217,164,91,.3);background:rgba(217,164,91,.08)}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.sel{height:32px;box-sizing:border-box;padding:0 10px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:13px 'IBM Plex Sans',sans-serif}
|
||||
.kv{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;font-size:13px;padding:8px 0;border-bottom:1px solid #202225}
|
||||
.kv dt{color:#8f8c85}.kv dd{margin:0}
|
||||
.tag{font:11px 'IBM Plex Mono',monospace;color:#a6a39b;background:#1e2023;border-radius:4px;padding:1px 6px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1000px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#" class="on">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 24px 48px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 0">
|
||||
<div>
|
||||
<div class="hint"><a href="#" style="color: #a6a39b">Tasks</a> / <span class="mono">#1</span></div>
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px; margin-top: 8px">
|
||||
<div style="flex-grow: 1; min-width: 0">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">changes_captured key-set validation is top-level only</h1>
|
||||
<div style="display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: #a6a39b">
|
||||
<span class="pill warn"><span class="dot" style="background: #d9a45b"></span>Parked</span>
|
||||
<span class="mono">tdd</span><span style="color: #4a4c50">·</span>
|
||||
<a href="#" class="mono" style="color: #a6a39b; text-decoration: underline">samcharles93/archie-core #868</a>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-ghost">Archive</button>
|
||||
<button class="btn btn-primary"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>Start a new run</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div role="alert" style="display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; background: rgba(217,164,91,0.08); border: 1px solid rgba(217,164,91,0.25)">
|
||||
<svg style="flex-shrink: 0; margin-top: 2px" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#d9a45b" stroke-width="2"><path d="M12 3 2 20h20L12 3Z"></path><path d="M12 10v4M12 17h.01"></path></svg>
|
||||
<div style="min-width: 0; flex-grow: 1">
|
||||
<div style="font-size: 14px; font-weight: 500; color: #e3c08f">Parked: couldn’t prepare the worktree</div>
|
||||
<div class="mono" style="font-size: 12px; color: #a6a39b; margin-top: 4px; line-height: 1.6; word-break: break-all">fetch origin: http transport: Get "https://github.com/samcharles93/archie-core.git/info/refs?service=git-upload-pack": terminated signal received</div>
|
||||
</div>
|
||||
<button class="btn btn-sm" style="align-self: flex-start">Jump to log line</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; flex-grow: 1; min-height: 0">
|
||||
<section class="card" style="overflow: hidden">
|
||||
<nav style="display: flex; gap: 28px; padding: 0 20px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: #86b5a0">Log</a>
|
||||
<a class="tab" href="#">Changed files <span class="hint" style="margin-left: 6px">0</span></a>
|
||||
<a class="tab" href="#">Configuration</a>
|
||||
<a class="tab" href="#">Debug</a>
|
||||
</nav>
|
||||
<div style="display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #232529">
|
||||
<select aria-label="Level" class="sel"><option>All levels</option></select>
|
||||
<select aria-label="Stage" class="sel"><option>All stages</option></select>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 32px; width: 260px; padding: 0 10px; box-sizing: border-box; border: 1px solid #2e3034; border-radius: 6px; color: #8f8c85"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Search log" placeholder="Search log" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: 13px 'IBM Plex Sans', sans-serif; width: 100%"></label>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-sm btn-ghost"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"></path></svg>Download</button>
|
||||
</div>
|
||||
<div class="mono" style="font-size: 12px; line-height: 1.7; flex-grow: 1; background: #121314">
|
||||
<div style="display: grid; grid-template-columns: 72px 56px minmax(0, 1fr); gap: 12px; padding: 10px 20px; background: rgba(217,119,107,0.06); border-left: 2px solid #d9776b">
|
||||
<span style="color: #8f8c85">08:38:49</span>
|
||||
<span style="color: #e0a39a">ERROR</span>
|
||||
<div style="min-width: 0">
|
||||
<div style="word-break: break-all">task parked: worktree prepare failed: fetch origin: http transport: Get "https://github.com/samcharles93/archie-core.git/info/refs?service=git-upload-pack": terminated signal received</div>
|
||||
<div style="display: flex; gap: 6px; margin-top: 6px"><span class="tag">component=daemon</span><span class="tag">task=1</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 16px 20px; color: #8f8c85; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px">End of attempt 1 · 1 line</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<aside style="display: flex; flex-direction: column; gap: 20px">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Attempts</span></div>
|
||||
<div style="padding: 8px 12px">
|
||||
<a href="#" style="display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 6px; background: #1e2023; box-shadow: inset 2px 0 0 #86b5a0">
|
||||
<span class="dot" style="background: #d9a45b"></span><span style="font-size: 13px; flex-grow: 1">Attempt 1</span><span class="hint">parked · 08:38</span></a>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 10px 8px; color: #8f8c85">
|
||||
<span class="dot" style="background: transparent; border: 1px dashed #4a4c50; box-sizing: border-box"></span><span style="font-size: 13px; flex-grow: 1">Attempt 2</span><span class="hint">not recorded</span></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Details</span></div>
|
||||
<dl style="margin: 0; padding: 4px 20px 12px">
|
||||
<div class="kv"><dt>Status</dt><dd style="color: #d9a45b">Parked</dd></div>
|
||||
<div class="kv"><dt>Workflow</dt><dd><a href="#" class="mono" style="text-decoration: underline">tdd</a></dd></div>
|
||||
<div class="kv"><dt>Repository</dt><dd class="mono" style="font-size: 12px">samcharles93/archie-core</dd></div>
|
||||
<div class="kv"><dt>Issue</dt><dd><a href="#" style="text-decoration: underline">#868</a> ↗</dd></div>
|
||||
<div class="kv"><dt>Persona</dt><dd class="mono" style="font-size: 12px">[persona]</dd></div>
|
||||
<div class="kv"><dt>Tokens</dt><dd class="mono" style="font-size: 12px">[tokens]</dd></div>
|
||||
<div class="kv" style="border: 0"><dt>Started</dt><dd>[date · time]</dd></div>
|
||||
</dl>
|
||||
</section>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,152 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Workflows</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.step{font:12px 'IBM Plex Mono',monospace;padding:6px 10px;border:1px solid #2e3034;border-radius:6px;background:#121314;white-space:nowrap}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#" class="on">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; min-height: 0">
|
||||
<div style="display: flex; align-items: flex-end; gap: 12px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Workflows</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">The step sequences agents follow. Success rate is merged tasks over all runs.</p>
|
||||
</div>
|
||||
<button class="btn btn-ghost"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 1 0 3-6.7L3 8"></path><path d="M3 3v5h5"></path></svg>Restore shipped</button>
|
||||
<button class="btn"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New workflow</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; flex-grow: 1; min-height: 0">
|
||||
<section class="card" style="overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; padding: 10px 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8f8c85; border-bottom: 1px solid #2a2c30"><span>Workflow</span><span>Runs</span><span>Success</span><span style="text-align: right">Avg tok</span></div>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: #1e2023; box-shadow: inset 2px 0 0 #86b5a0">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">Bootstrap</span><span class="mono" style="font-size: 11px; color: #8f8c85">bootstrap</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">0</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">—</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 0%; background: #86b5a0"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">—</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: transparent; box-shadow: none">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">Feasibility check</span><span class="mono" style="font-size: 11px; color: #8f8c85">feasibility</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">0</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">—</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 0%; background: #86b5a0"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">—</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: transparent; box-shadow: none">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">Implement</span><span class="mono" style="font-size: 11px; color: #8f8c85">implement</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">0</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">—</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 0%; background: #86b5a0"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">—</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: transparent; box-shadow: none">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">Remediate</span><span class="mono" style="font-size: 11px; color: #8f8c85">remediate</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">0</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">—</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 0%; background: #86b5a0"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">—</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: transparent; box-shadow: none">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">TDD</span><span class="mono" style="font-size: 11px; color: #8f8c85">tdd</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">3</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">0 of 3</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 2%; background: #d9776b"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">4.7M</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: transparent; box-shadow: none">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">Triage</span><span class="mono" style="font-size: 11px; color: #8f8c85">triage</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">1</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">1 of 1</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: 100%; background: #86b5a0"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">282k</span>
|
||||
</a>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="card" style="overflow: hidden">
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 18px 24px 0">
|
||||
<h2 style="margin: 0; font-size: 18px; font-weight: 600">Bootstrap</h2>
|
||||
<span class="pill">shipped · edited</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<span class="hint">0 runs yet</span>
|
||||
</div>
|
||||
<nav style="display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: #86b5a0">Definition</a>
|
||||
<a class="tab" href="#">Performance</a>
|
||||
<a class="tab" href="#">Runs</a>
|
||||
</nav>
|
||||
<div style="padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; min-height: 0">
|
||||
<div style="display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px">
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="wid">ID</label><input id="wid" class="inp" value="bootstrap"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><span class="lbl">Steps</span>
|
||||
<div style="display: flex; align-items: center; gap: 6px; height: 36px; flex-wrap: nowrap; overflow: hidden">
|
||||
<span class="step">prepare</span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#4a4c50" stroke-width="2"><path d="M5 12h14M13 6l6 6-6 6"></path></svg><span class="step">apply</span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#4a4c50" stroke-width="2"><path d="M5 12h14M13 6l6 6-6 6"></path></svg><span class="step">commit-push</span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#4a4c50" stroke-width="2"><path d="M5 12h14M13 6l6 6-6 6"></path></svg><span class="step">diff-cap</span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#4a4c50" stroke-width="2"><path d="M5 12h14M13 6l6 6-6 6"></path></svg><span class="step">open-pr</span>
|
||||
</div></div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-height: 0">
|
||||
<div style="display: flex; align-items: baseline"><span class="lbl">YAML</span><span class="hint" style="margin-left: auto; color: #86b5a0">✓ Valid</span></div>
|
||||
<div class="mono" style="flex-grow: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); border: 1px solid #2e3034; border-radius: 8px; background: #121314; font-size: 13px; line-height: 1.75; overflow: hidden">
|
||||
<div style="padding: 14px 0; text-align: right; padding-right: 12px; color: #4f5156; border-right: 1px solid #232529; background: #141517; white-space: pre-line">1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
7</div>
|
||||
<div style="padding: 14px 16px; white-space: pre"><span style="color: #a6a39b">id:</span> bootstrap
|
||||
<span style="color: #a6a39b">steps:</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: #86b5a0">bootstrap.prepare</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: #86b5a0">bootstrap.apply</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: #86b5a0">bootstrap.commit-push</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: #86b5a0">bootstrap.diff-cap</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: #86b5a0">bootstrap.open-pr</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid #2a2c30; background: #17181a">
|
||||
<span class="hint">Version 1 · <a href="#" style="color: #a6a39b; text-decoration: underline">History</a></span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-ghost" style="color: #d9776b">Remove</button>
|
||||
<button class="btn">Restore this workflow</button>
|
||||
<button class="btn btn-primary">Validate & save</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,77 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New task dialog</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.inp{box-sizing:border-box;height:38px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.opt{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #2e3034;border-radius:8px;cursor:pointer}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 900px; box-sizing: border-box; position: relative; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-sm" style="border-color: #86b5a0"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
</header>
|
||||
<div style="padding: 32px 48px"><div style="font-size: 28px; font-weight: 600; color: #3a3c40">Good morning</div></div>
|
||||
|
||||
<div style="position: absolute; inset: 0; background: rgba(8,9,10,0.6)"></div>
|
||||
|
||||
<section role="dialog" aria-modal="true" aria-labelledby="nt-title" style="position: absolute; left: 50%; top: 88px; transform: translateX(-50%); width: 640px; box-sizing: border-box; background: #17181a; border: 1px solid #2a2c30; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); display: flex; flex-direction: column">
|
||||
<div style="display: flex; align-items: flex-start; padding: 22px 24px 18px; border-bottom: 1px solid #232529">
|
||||
<div style="flex-grow: 1"><h2 id="nt-title" style="margin: 0; font-size: 18px; font-weight: 600">New task</h2><div class="hint" style="margin-top: 2px">Goes into Archie’s normal task queue.</div></div>
|
||||
<button aria-label="Close" style="width: 32px; height: 32px; border: 0; background: transparent; color: #8f8c85; cursor: pointer"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 6l12 12M18 6 6 18"></path></svg></button>
|
||||
</div>
|
||||
<div style="padding: 20px 24px; display: flex; flex-direction: column; gap: 18px">
|
||||
<div class="field"><label class="lbl" for="repo">Repository</label><input id="repo" class="inp" value="samcharles93/archie-core"><span class="hint">owner/repository · recent: archie-core</span></div>
|
||||
<div class="field"><span class="lbl">Workflow</span>
|
||||
<div role="radiogroup" aria-label="Workflow" style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px">
|
||||
|
||||
<label class="opt" style="border-color: #86b5a0; background: #1e2023"><span style="font-size: 13px; font-weight: 500">TDD</span><span class="hint">3 runs · 0% merged</span></label>
|
||||
|
||||
<label class="opt" style="border-color: #2e3034; background: transparent"><span style="font-size: 13px; font-weight: 500">Triage</span><span class="hint">1 run · 100% merged</span></label>
|
||||
|
||||
<label class="opt" style="border-color: #2e3034; background: transparent"><span style="font-size: 13px; font-weight: 500">Implement</span><span class="hint">no runs yet</span></label>
|
||||
|
||||
<label class="opt" style="border-color: #2e3034; background: transparent"><span style="font-size: 13px; font-weight: 500">Remediate</span><span class="hint">no runs yet</span></label>
|
||||
|
||||
<label class="opt" style="border-color: #2e3034; background: transparent"><span style="font-size: 13px; font-weight: 500">Feasibility check</span><span class="hint">no runs yet</span></label>
|
||||
|
||||
<label class="opt" style="border-color: #2e3034; background: transparent"><span style="font-size: 13px; font-weight: 500">Bootstrap</span><span class="hint">no runs yet</span></label>
|
||||
|
||||
</div></div>
|
||||
<div class="field"><label class="lbl" for="ttl">Title</label><input id="ttl" class="inp" placeholder="What should Archie do?" style="font-family: 'IBM Plex Sans', sans-serif"></div>
|
||||
<div class="field"><label class="lbl" for="ins">Instructions</label><textarea id="ins" placeholder="Context, acceptance criteria, files to look at…" style="min-height: 120px; box-sizing: border-box; padding: 12px; background: #121314; border: 1px solid #2e3034; border-radius: 6px; color: #e8e6e1; font: 13px/1.6 'IBM Plex Sans', sans-serif; resize: vertical; outline: none"></textarea></div>
|
||||
<details style="font-size: 13px; color: #a6a39b"><summary style="cursor: pointer">Advanced · run as identity</summary></details>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid #232529">
|
||||
<span class="hint"><span class="mono" style="padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘↵</span> to start</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-ghost">Cancel</button>
|
||||
<button class="btn btn-primary">Start task</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,102 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Events</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:15px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;gap:8px;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.count{font:11px 'IBM Plex Mono',monospace;color:#8f8c85;background:#1e2023;border-radius:4px;padding:0 6px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#" class="on">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px">
|
||||
<div>
|
||||
<div style="display: flex; align-items: flex-end; gap: 12px">
|
||||
<div style="flex-grow: 1"><h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Events</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Webhooks come in, get mapped to event types, and bindings turn them into work.</p></div>
|
||||
<span class="pill" style="color: #86b5a0; border-color: #86b5a0"><span class="dot" style="background: #86b5a0"></span>Listening</span>
|
||||
</div>
|
||||
<nav style="display: flex; gap: 28px; margin-top: 16px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: #86b5a0">Inspector</a>
|
||||
<a class="tab" href="#">Mappings <span class="count">0</span></a>
|
||||
<a class="tab" href="#">Bindings <span class="count">0</span></a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<section class="card" style="flex-direction: row">
|
||||
|
||||
<div style="flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<span class="mono" style="width: 28px; height: 28px; border-radius: 50%; border: 1px solid #34373c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b; flex-shrink: 0">1</span>
|
||||
<div style="flex-grow: 1"><div style="font-size: 14px; font-weight: 500">Capture</div><div class="hint">Webhooks received</div></div>
|
||||
<span class="mono" style="font-size: 20px; color: #8f8c85">0</span>
|
||||
</div>
|
||||
|
||||
<div style="flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<span class="mono" style="width: 28px; height: 28px; border-radius: 50%; border: 1px solid #34373c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b; flex-shrink: 0">2</span>
|
||||
<div style="flex-grow: 1"><div style="font-size: 14px; font-weight: 500">Map</div><div class="hint">Payloads → event types</div></div>
|
||||
<span class="mono" style="font-size: 20px; color: #8f8c85">0</span>
|
||||
</div>
|
||||
|
||||
<div style="flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<span class="mono" style="width: 28px; height: 28px; border-radius: 50%; border: 1px solid #34373c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b; flex-shrink: 0">3</span>
|
||||
<div style="flex-grow: 1"><div style="font-size: 14px; font-weight: 500">Bind</div><div class="hint">Event types → work</div></div>
|
||||
<span class="mono" style="font-size: 20px; color: #8f8c85">0</span>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px">
|
||||
<section class="card">
|
||||
<div class="card-h"><div style="flex-grow: 1"><div class="card-t">Recent captures</div><div class="hint">Headers and payloads are redacted before they’re stored.</div></div></div>
|
||||
<div style="padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center">
|
||||
<div style="width: 40px; height: 40px; border-radius: 10px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><path d="M22 12h-6l-2 3h-4l-2-3H2"></path><path d="M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6Z"></path></svg></div>
|
||||
<div style="font-size: 14px; font-weight: 500">No captures yet</div>
|
||||
<div class="hint">Point a webhook at this endpoint and it shows up here live.</div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 4px 4px 14px; border: 1px solid #2e3034; border-radius: 8px; background: #121314">
|
||||
<span class="mono" style="font-size: 13px">/webhooks/capture/<span style="color: #86b5a0"><source></span></span>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="8" y="8" width="12" height="12" rx="2"></rect><path d="M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"></path></svg>Copy</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h"><div style="flex-grow: 1"><div class="card-t">Event types</div><div class="hint">Named shapes that mappings produce.</div></div>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Z"></path><path d="M12 12v6M9 15h6"></path></svg>From payload</button></div>
|
||||
<div style="padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center">
|
||||
<div style="font-size: 14px; font-weight: 500">No event types or proposals</div>
|
||||
<div class="hint">Paste a sample payload and Archie proposes a type for it. Proposals from real captures appear here too.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,176 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – sidebar layout</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none}
|
||||
.inp:focus{border-color:var(--accent)}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.icon-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid transparent;background:transparent;color:#8f8c85;cursor:pointer}
|
||||
.icon-btn:hover{background:#1e2023;color:#e8e6e1}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
.row{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;padding:20px 0;border-top:1px solid #232529}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;margin-top:4px;line-height:1.5}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1040px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; position: relative; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Tasks</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Workflows</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">Settings</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: #d9a45b"></span>
|
||||
Connecting to archie-core…
|
||||
</div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 240px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg>
|
||||
<input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%">
|
||||
<span style="font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span>
|
||||
</label>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 264px; flex-shrink: 0; box-sizing: border-box; padding: 24px 16px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas<span style="margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8f8c85">6</span></a>
|
||||
<a class="nav-item" href="#">Schedules<span style="margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8f8c85">0</span></a>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 #86b5a0">Scheduling policy<span style="margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #86b5a0" title="Unsaved changes"></span></a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#">Channels</a>
|
||||
<a class="nav-item" href="#">Tools & MCP</a>
|
||||
<a class="nav-item" href="#">Plugins</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#">History</a>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="font-size: 12px; color: #8f8c85; padding: 12px; line-height: 1.5; border: 1px solid #232529; border-radius: 8px">Config version 1 · last saved by <span style="color: #a6a39b">admin</span><br><a href="#" style="color: #86b5a0">View history</a></div>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; overflow: hidden; padding: 40px 56px 120px">
|
||||
<div style="max-width: 920px">
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Scheduling policy</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">How Archie picks up work items and labels them as they move through states.</p>
|
||||
</div>
|
||||
<span style="display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #d9a45b; background: rgba(217,164,91,0.1); border: 1px solid rgba(217,164,91,0.25); padding: 4px 10px; border-radius: 999px">
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>
|
||||
Applies after restart</span>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">Dispatch</h2>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Trigger</div><div class="hint">What causes a work item to be dispatched to an agent.</div></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 12px">
|
||||
<div role="radiogroup" aria-label="Trigger" style="display: inline-flex; align-self: flex-start; padding: 3px; background: #121314; border: 1px solid #2e3034; border-radius: 8px">
|
||||
<button style="height: 30px; padding: 0 14px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 13px 'IBM Plex Sans', sans-serif">Assignee</button>
|
||||
<button style="height: 30px; padding: 0 14px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 13px 'IBM Plex Sans', sans-serif">Label</button>
|
||||
</div>
|
||||
<div class="hint" style="margin: 0">Dispatches when Archie is assigned. Choose <span style="color: #a6a39b">Label</span> to set a trigger label instead.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="ack">Ack reaction</label><div class="hint">Reaction posted when a work item is picked up.</div></div>
|
||||
<div><input id="ack" class="inp" value="eyes" style="width: 220px"></div>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">State labels</h2>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Labels by state</div><div class="hint">Label applied to the ticket as the agent moves between states.</div></div>
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8f8c85; background: #17181a; border-bottom: 1px solid #2a2c30"><span>State</span><span>Label</span><span></span></div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #8f8c85"></span>queued</span>
|
||||
<input class="inp" aria-label="queued label" value="agent:queued" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove queued"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #8aa4c2"></span>working</span>
|
||||
<input class="inp" aria-label="working label" value="agent:working" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove working"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #d9a45b"></span>waiting</span>
|
||||
<input class="inp" aria-label="waiting label" value="agent:waiting" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove waiting"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #86b5a0"></span>pr</span>
|
||||
<input class="inp" aria-label="pr label" value="agent:pr" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove pr"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #6f6c66"></span>parked</span>
|
||||
<input class="inp" aria-label="parked label" value="agent:parked" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove parked"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: #d9776b"></span>dead</span>
|
||||
<input class="inp" aria-label="dead label" value="agent:dead" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove dead"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
|
||||
<button style="display: flex; align-items: center; gap: 6px; width: 100%; height: 38px; padding: 0 12px; border: 0; background: transparent; color: #a6a39b; font: 500 13px 'IBM Plex Sans', sans-serif; cursor: pointer"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>Add state</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">Retries & polling</h2>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="retries">Max retries</label><div class="hint">Attempts before an item is labelled dead.</div></div>
|
||||
<div style="display: inline-flex; align-self: flex-start; border: 1px solid #2e3034; border-radius: 6px; overflow: hidden; width: fit-content">
|
||||
<button class="icon-btn" aria-label="Decrease" style="border-radius: 0">−</button>
|
||||
<input id="retries" class="inp" value="3" style="width: 56px; border: 0; border-radius: 0; text-align: center; border-left: 1px solid #2e3034; border-right: 1px solid #2e3034">
|
||||
<button class="icon-btn" aria-label="Increase" style="border-radius: 0">+</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="poll">Poll interval</label><div class="hint">How often the tracker is checked for new work.</div></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<div style="display: flex">
|
||||
<input id="poll" class="inp" value="30" style="width: 80px; border-radius: 6px 0 0 6px; border-color: #86b5a0">
|
||||
<select aria-label="Poll unit" class="inp" style="border-radius: 0 6px 6px 0; border-left: 0; font-family: 'IBM Plex Sans', sans-serif"><option>seconds</option><option>minutes</option></select>
|
||||
</div>
|
||||
<span style="font-size: 12px; color: #8f8c85">was <span style="font-family: 'IBM Plex Mono', monospace; text-decoration: line-through">1m0s</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div style="position: absolute; left: 264px; right: 0; bottom: 0; height: 72px; box-sizing: border-box; padding: 0 56px; display: flex; align-items: center; gap: 12px; background: #17181a; border-top: 1px solid #2a2c30">
|
||||
<span style="width: 8px; height: 8px; border-radius: 50%; background: #86b5a0"></span>
|
||||
<span style="font-size: 13px">1 unsaved change</span>
|
||||
<span style="font-size: 13px; color: #8f8c85">· Poll interval</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,154 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – personas</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.tab{height:44px;display:flex;align-items:center;padding:0 2px;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1040px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Work</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">System</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: #86b5a0"></span>
|
||||
Connected · v1
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div style="padding: 32px 48px 0; border-bottom: 1px solid #232529; flex-shrink: 0">
|
||||
<div style="font-size: 12px; color: #8f8c85">System / Advanced</div>
|
||||
<h1 style="margin: 6px 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Advanced settings</h1>
|
||||
<nav style="display: flex; gap: 28px">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: #86b5a0">Personas</a>
|
||||
<a class="tab" href="#">Schedules</a>
|
||||
<a class="tab" href="#">Scheduling policy</a>
|
||||
<a class="tab" href="#">Tools & MCP</a>
|
||||
<a class="tab" href="#">Plugins</a>
|
||||
<a class="tab" href="#">Container runtime</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0; padding: 32px 48px 40px; gap: 32px">
|
||||
<section aria-label="Persona list" style="width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px">
|
||||
<div style="display: flex; align-items: center; gap: 8px">
|
||||
<label style="flex-grow: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; color: #8f8c85">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg>
|
||||
<input aria-label="Filter personas" placeholder="Filter personas" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: 13px 'IBM Plex Sans', sans-serif; width: 100%">
|
||||
</label>
|
||||
<button class="btn" aria-label="New persona" style="padding: 0 12px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New</button>
|
||||
</div>
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 10px; overflow: hidden; background: #16171a">
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: #1e2023; box-shadow: inset 2px 0 0 #86b5a0">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">archie
|
||||
<span style="font-size: 11px; font-weight: 500; color: #86b5a0; border: 1px solid #86b5a0; border-radius: 999px; padding: 1px 8px">default</span>
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are Archie, a capable coding and project assistant. Be direct without being brusque…</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: transparent; box-shadow: none">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">helpful
|
||||
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are a helpful, friendly AI assistant.</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: transparent; box-shadow: none">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">concise
|
||||
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are a concise assistant. Keep responses brief and to the point.</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: transparent; box-shadow: none">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">technical
|
||||
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are a technical expert. Provide detailed, accurate technical information.</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: transparent; box-shadow: none">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">creative
|
||||
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are a creative assistant. Think outside the box and offer innovative solutions.</span>
|
||||
</a>
|
||||
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: transparent; box-shadow: none">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">teacher
|
||||
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">You are a patient teacher. Explain concepts clearly with examples.</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="hint">Personas are system prompts an agent can adopt. The default is used when a work item doesn't specify one.</div>
|
||||
</section>
|
||||
|
||||
<section aria-label="Edit persona" style="flex-grow: 1; display: flex; flex-direction: column; border: 1px solid #2a2c30; border-radius: 10px; background: #16171a; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #2a2c30">
|
||||
<h2 style="margin: 0; font-size: 18px; font-weight: 600">archie</h2>
|
||||
<span style="font-size: 11px; color: #86b5a0; border: 1px solid #86b5a0; border-radius: 999px; padding: 1px 8px">default</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent">Duplicate</button>
|
||||
<button class="btn" style="background: transparent; color: #d9776b; border-color: #3a2a28">Delete</button>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 24px; padding: 24px; flex-grow: 1">
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px">
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<label class="lbl" for="pname">Name</label>
|
||||
<input id="pname" class="inp" value="archie">
|
||||
<span class="hint">Lowercase, used as the persona key.</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<span class="lbl">Default persona</span>
|
||||
<label style="display: flex; align-items: center; gap: 10px; height: 36px; font-size: 13px; color: #a6a39b">
|
||||
<span style="width: 36px; height: 20px; border-radius: 999px; background: #86b5a0; position: relative; display: inline-block"><span style="position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #121314"></span></span>
|
||||
Use when no persona is specified
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px; flex-grow: 1">
|
||||
<div style="display: flex; align-items: baseline"><label class="lbl" for="prompt">System prompt</label><span class="hint" style="margin-left: auto; font-family: 'IBM Plex Mono', monospace">312 chars · ~70 tokens</span></div>
|
||||
<textarea id="prompt" style="flex-grow: 1; min-height: 320px; box-sizing: border-box; padding: 16px; background: #121314; border: 1px solid #2e3034; border-radius: 8px; color: #e8e6e1; font: 400 13px/1.7 'IBM Plex Mono', monospace; resize: vertical; outline: none">You are Archie, a capable coding and project assistant. Be direct without being brusque, grounded in the actual workspace state, and use available tools when asked. Do not claim tools, files, memories, actions, or results you have not verified. Do not impersonate another assistant, provider, or vendor.</textarea>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed #2e3034; border-radius: 8px">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><path d="M4 12h12M12 6l6 6-6 6"></path></svg>
|
||||
<span style="font-size: 13px; color: #a6a39b; flex-grow: 1">Try this persona against a sample message before saving</span>
|
||||
<button class="btn">Open preview</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid #2a2c30; background: #17181a">
|
||||
<span style="font-size: 12px; color: #8f8c85">Saved · version 1 · <a href="#" style="color: #a6a39b; text-decoration: underline">History</a></span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn btn-primary">Save persona</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,144 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – tools and MCP</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #232529}
|
||||
.card-b{padding:20px;display:flex;flex-direction:column;gap:18px}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block;flex-shrink:0}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Tasks</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Workflows</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">Settings</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: #86b5a0"></span>
|
||||
Connected · v1
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 232px; flex-shrink: 0; box-sizing: border-box; padding: 24px 12px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas</a>
|
||||
<a class="nav-item" href="#">Schedules</a>
|
||||
<a class="nav-item" href="#">Scheduling policy</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#">Channels</a>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 #86b5a0">Tools & MCP</a>
|
||||
<a class="nav-item" href="#">Plugins</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#">History</a>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; padding: 36px 48px; overflow: hidden">
|
||||
<div style="display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Tools & MCP</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">External tools, model providers and fetch limits available to agents.</p>
|
||||
</div>
|
||||
<button class="btn btn-primary"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>Add MCP server</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px">
|
||||
|
||||
<section class="card" style="grid-column: span 2">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><rect x="3" y="4" width="18" height="6" rx="1"></rect><rect x="3" y="14" width="18" height="6" rx="1"></rect><path d="M7 7h.01M7 17h.01"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">MCP servers</div><div class="hint">Model Context Protocol servers agents can call.</div></div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 20px; padding: 28px 20px">
|
||||
<div style="flex-grow: 1">
|
||||
<div style="font-size: 14px; color: #e8e6e1">No MCP servers yet</div>
|
||||
<div class="hint" style="margin-top: 4px">Add a stdio command or an HTTP endpoint. Agents see its tools on next restart.</div>
|
||||
</div>
|
||||
<button class="btn">stdio command</button>
|
||||
<button class="btn">HTTP / SSE endpoint</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center; font: 600 13px 'IBM Plex Mono', monospace; color: #a6a39b">Mx</div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">MiniMax</div><div class="hint">Model provider</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b">Enabled<span class="sw" style="background: #86b5a0"><i style="right: 2px; background: #121314"></i></span></label>
|
||||
</div>
|
||||
<div class="card-b">
|
||||
<div class="field">
|
||||
<span class="lbl">API key</span>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; background: #121314">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span style="font: 12px 'IBM Plex Mono', monospace; color: #8f8c85">bws</span>
|
||||
<span style="color: #4a4c50">/</span>
|
||||
<span style="font: 13px 'IBM Plex Mono', monospace">MINIMAX_API_KEY</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="height: 28px; padding: 0 10px; font-size: 12px; background: transparent">Change</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 6px; font-size: 12px; color: #86b5a0"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="m5 12 5 5 9-10"></path></svg>Credential resolved by Archie</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">Web fetch</div><div class="hint">Let agents download pages and files</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b">Enabled<span class="sw" style="background: #86b5a0"><i style="right: 2px; background: #121314"></i></span></label>
|
||||
</div>
|
||||
<div class="card-b">
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px">
|
||||
<div class="field"><label class="lbl" for="mb">Max download</label><div style="display: flex"><input id="mb" class="inp" value="2" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85">MB</span></div></div>
|
||||
<div class="field"><label class="lbl" for="to">Timeout</label><div style="display: flex"><input id="to" class="inp" value="30" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85">sec</span></div></div>
|
||||
</div>
|
||||
<label style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #2a2c30; border-radius: 8px">
|
||||
<span class="sw" style="background: #2e3034; margin-top: 2px"><i style="left: 2px; background: #8f8c85"></i></span>
|
||||
<span><span class="lbl">Allow private networks</span><span class="hint" style="display: block">Off: requests to 10.x, 192.168.x and localhost are blocked.</span></span>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card" style="grid-column: span 2">
|
||||
<div class="card-h">
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">Tool output policy</div><div class="hint">Large tool results are truncated or spilled to disk.</div></div>
|
||||
</div>
|
||||
<div class="card-b" style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px">
|
||||
<div class="field"><label class="lbl" for="mrc">Max result length</label><div style="display: flex"><input id="mrc" class="inp" value="50,000" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85; white-space: nowrap">chars</span></div><span class="hint">About 12k tokens per tool call.</span></div>
|
||||
<div class="field"><label class="lbl" for="spill">Spill directory</label><input id="spill" class="inp" placeholder="Not set — results over the limit are truncated"><span class="hint">Full output is written here and the agent gets a path.</span></div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,124 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – review changes</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.acc{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid #2a2c30;border-radius:10px;background:#16171a}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.sum{font:12px 'IBM Plex Mono',monospace;color:#8f8c85}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.chev{color:#8f8c85}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden; position: relative">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Work</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">System</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main style="width: 880px; padding: 36px 0 0 64px; display: flex; flex-direction: column; gap: 12px">
|
||||
<h1 style="margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Advanced settings</h1>
|
||||
<p style="margin: 0 0 16px; font-size: 14px; color: #a6a39b">Collapsed sections show their current values at a glance.</p>
|
||||
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Personas</span><span class="sum" style="flex-grow: 1">6 personas · default archie</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Schedules</span><span class="sum" style="flex-grow: 1">none</span></div>
|
||||
<div class="acc" style="border-color: #3a3f3c"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Scheduling policy</span><span class="sum" style="flex-grow: 1">trigger assignee · 3 retries · poll 30s</span><span style="font-size: 11px; color: #86b5a0">1 edited</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Tools & MCP</span><span class="sum" style="flex-grow: 1">0 MCP · MiniMax on · web fetch on</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Plugins</span><span class="sum" style="flex-grow: 1">all directories default</span></div>
|
||||
|
||||
<section style="border: 1px solid #3a3f3c; border-radius: 10px; background: #16171a">
|
||||
<div style="display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #232529">
|
||||
<svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m6 9 6 6 6-6"></path></svg>
|
||||
<span class="lbl" style="flex-grow: 1">Container runtime</span>
|
||||
<span style="font-size: 11px; color: #86b5a0">2 edited</span>
|
||||
</div>
|
||||
<div style="padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px">
|
||||
<div class="field" style="grid-column: span 2"><label class="lbl" for="img">Image</label><input id="img" class="inp" value="ghcr.io/samcharles93/archie-agent:latest"></div>
|
||||
<div class="field"><label class="lbl" for="mc">Max concurrency</label><input id="mc" class="inp" value="6" style="border-color: #86b5a0"></div>
|
||||
<div class="field"><label class="lbl" for="mu">Max uptime</label><input id="mu" class="inp" value="2h" style="border-color: #86b5a0"></div>
|
||||
<div class="field"><label class="lbl" for="net">Network</label><input id="net" class="inp" value="archie-core_default"></div>
|
||||
<div class="field"><label class="lbl" for="pp">Pull policy</label><select id="pp" class="inp" style="font-family: 'IBM Plex Sans', sans-serif"><option>If missing</option><option>Always</option><option>Never</option></select></div>
|
||||
<div class="field"><label class="lbl" for="vt">Volume TTL</label><input id="vt" class="inp" value="72h"></div>
|
||||
<div class="field"><label class="lbl" for="pr">Profiles</label><input id="pr" class="inp" placeholder="None"></div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<div style="position: absolute; left: 0; top: 56px; right: 0; bottom: 0; background: rgba(8,9,10,0.55)"></div>
|
||||
|
||||
<aside aria-label="Review changes" style="position: absolute; top: 56px; right: 0; bottom: 0; width: 480px; box-sizing: border-box; background: #17181a; border-left: 1px solid #2a2c30; display: flex; flex-direction: column; box-shadow: -24px 0 48px rgba(0,0,0,0.35)">
|
||||
<div style="display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid #2a2c30">
|
||||
<div style="flex-grow: 1"><h2 style="margin: 0; font-size: 17px; font-weight: 600">Review 3 changes</h2><div class="hint" style="margin-top: 2px">Saved together as config version 2</div></div>
|
||||
<button aria-label="Close" style="width: 36px; height: 36px; border: 0; background: transparent; color: #8f8c85; cursor: pointer"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 6l12 12M18 6 6 18"></path></svg></button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 20px">
|
||||
<div style="display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(217,164,91,0.08); border: 1px solid rgba(217,164,91,0.25); color: #e3c08f; font-size: 13px; line-height: 1.5">
|
||||
<svg style="flex-shrink: 0; margin-top: 2px" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>
|
||||
<span>All three need an archie-core restart. 2 agents are running; they'll finish before the restart.</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8f8c85">Scheduling policy</div>
|
||||
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 500"><span style="flex-grow: 1">Poll interval</span><a href="#" style="font-size: 12px; font-weight: 400; color: #8f8c85; text-decoration: underline">Revert</a></div>
|
||||
<div style="font: 12px/1.9 'IBM Plex Mono', monospace; border-top: 1px solid #232529">
|
||||
<div style="padding: 0 14px; background: rgba(217,119,107,0.08); color: #e0a39a">− 1m0s</div>
|
||||
<div style="padding: 0 14px; background: rgba(134,181,160,0.10); color: #a9d1bf">+ 30s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8f8c85">Container runtime</div>
|
||||
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 500"><span style="flex-grow: 1">Max concurrency</span><a href="#" style="font-size: 12px; font-weight: 400; color: #8f8c85; text-decoration: underline">Revert</a></div>
|
||||
<div style="font: 12px/1.9 'IBM Plex Mono', monospace; border-top: 1px solid #232529">
|
||||
<div style="padding: 0 14px; background: rgba(217,119,107,0.08); color: #e0a39a">− 4</div>
|
||||
<div style="padding: 0 14px; background: rgba(134,181,160,0.10); color: #a9d1bf">+ 6</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 500"><span style="flex-grow: 1">Max uptime</span><a href="#" style="font-size: 12px; font-weight: 400; color: #8f8c85; text-decoration: underline">Revert</a></div>
|
||||
<div style="font: 12px/1.9 'IBM Plex Mono', monospace; border-top: 1px solid #232529">
|
||||
<div style="padding: 0 14px; background: rgba(217,119,107,0.08); color: #e0a39a">− 1h0m0s</div>
|
||||
<div style="padding: 0 14px; background: rgba(134,181,160,0.10); color: #a9d1bf">+ 2h0m0s</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid #2a2c30">
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard all</button>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn">Save only</button>
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,155 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – channels</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:34px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.row{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;padding:16px 20px;border-top:1px solid #232529}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block;flex-shrink:0}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.icon{width:32px;height:32px;border-radius:8px;background:#1e2023;display:flex;align-items:center;justify-content:center;flex-shrink:0}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 1300px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#86b5a0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#" class="on">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 248px; flex-shrink: 0; box-sizing: border-box; padding: 24px 14px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div class="eyebrow" style="padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas</a><a class="nav-item" href="#">Schedules</a><a class="nav-item" href="#">Scheduling policy</a>
|
||||
<div class="eyebrow" style="padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 #86b5a0">Channels<span class="dot" style="margin-left: auto; background: #86b5a0" title="1 running"></span></a>
|
||||
<a class="nav-item" href="#">Tools & MCP</a><a class="nav-item" href="#">Plugins</a>
|
||||
<div class="eyebrow" style="padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></svg>History</a>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; padding: 36px 56px; display: flex; flex-direction: column; gap: 24px; min-width: 0">
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px; max-width: 980px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Channels</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Where you talk to Archie, and how chat sessions behave.</p>
|
||||
</div>
|
||||
<span class="pill" style="color: #d9a45b; border-color: rgba(217,164,91,.3); background: rgba(217,164,91,.08)">Applies after restart</span>
|
||||
</div>
|
||||
|
||||
<div style="max-width: 980px; display: flex; flex-direction: column; gap: 16px">
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div class="icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><path d="m22 3-9.5 18-2.5-8-8-2.5L22 3Z"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div style="font-size: 15px; font-weight: 500">Telegram</div><div class="hint">Talk to Archie and approve its work from your phone.</div></div>
|
||||
<span class="pill" style="color: #86b5a0; border-color: #86b5a0"><span class="dot" style="background: #86b5a0"></span>Running</span>
|
||||
</div>
|
||||
<div class="row" style="border-top: 0">
|
||||
<div><div class="lbl">Bot token</div><div class="hint">Secret reference for the Telegram bot.</div></div>
|
||||
<div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; background: #121314">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span class="mono" style="font-size: 12px; color: #8f8c85">env</span><span style="color: #4a4c50">/</span><span class="mono" style="font-size: 13px">HEYARCHIE_TELEGRAM_BOT_TOKEN</span>
|
||||
<div style="flex-grow: 1"></div><button class="btn btn-sm" style="height: 26px; background: transparent">Change</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 6px; font-size: 12px; color: #86b5a0; margin-top: 6px"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="m5 12 5 5 9-10"></path></svg>Credential resolved by Archie</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Allowed users</div><div class="hint">Telegram user IDs that may talk to Archie. Everyone else is ignored.</div></div>
|
||||
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px; border: 1px solid #2e3034; border-radius: 6px; background: #121314; min-height: 38px; box-sizing: border-box">
|
||||
<span style="display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 4px; background: #1e2023; font: 12px 'IBM Plex Mono', monospace">1312197967<button aria-label="Remove 1312197967" style="width: 20px; height: 20px; border: 0; background: transparent; color: #8f8c85; cursor: pointer">×</button></span>
|
||||
<input aria-label="Add user ID" placeholder="Add user ID…" style="flex-grow: 1; min-width: 140px; background: transparent; border: 0; outline: none; color: #e8e6e1; font: 12px 'IBM Plex Mono', monospace">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="card" style="flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px">
|
||||
<div class="icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><path d="M3 6h18v12H3zM3 6l9 7 9-7"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div style="font-size: 15px; font-weight: 500">Email</div><div class="hint">Listen for mail and relay replies.</div></div>
|
||||
<span class="pill">Not set up</span>
|
||||
<button class="btn btn-sm">Set up</button>
|
||||
</section>
|
||||
|
||||
<section class="card" style="flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px">
|
||||
<div class="icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><path d="M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div style="font-size: 15px; font-weight: 500">Webhook</div><div class="hint">Deliver agent output to a URL, with a signing secret and template.</div></div>
|
||||
<span class="pill">Not set up</span>
|
||||
<button class="btn btn-sm">Set up</button>
|
||||
</section>
|
||||
|
||||
|
||||
<div class="eyebrow" style="margin-top: 16px">Chat session defaults · all channels</div>
|
||||
<section class="card">
|
||||
<div class="row" style="border-top: 0">
|
||||
<div><label class="lbl" for="ws">Workspace</label><div class="hint">Directory chat sessions start in.</div></div>
|
||||
<input id="ws" class="inp" value="/home/sam">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Filesystem access</div><div class="hint">Outside the workspace.</div></div>
|
||||
<div style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid rgba(217,119,107,.35); background: rgba(217,119,107,.06); border-radius: 8px">
|
||||
<span class="sw" style="background: #d9776b; margin-top: 2px"><i style="right: 2px; background: #121314"></i></span>
|
||||
<span><span class="lbl">Unrestricted filesystem</span><span class="hint" style="display: block; color: #e0a39a">On: agents can read and write anywhere this user can.</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Show tool calls</div><div class="hint">Post each tool call into the chat.</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a6a39b"><span class="sw" style="background: #86b5a0"><i style="right: 2px; background: #121314"></i></span>On</label>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="ms">Max steps</label><div class="hint">Per chat turn. 0 = no limit.</div></div>
|
||||
<input id="ms" class="inp" value="0" style="width: 120px">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Rate limit</div><div class="hint">Off while either value is 0.</div></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a6a39b"><input aria-label="Max requests" class="inp" value="0" style="width: 90px"> requests per <input aria-label="Window" class="inp" value="0" style="width: 80px"><select aria-label="Window unit" class="inp" style="width: 110px; font-family: 'IBM Plex Sans', sans-serif"><option>minutes</option></select></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="md">Models</label><div class="hint">Models chat sessions may use.</div></div>
|
||||
<input id="md" class="inp" placeholder="Default">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="op">Operator</label><div class="hint">Who Archie treats as its operator.</div></div>
|
||||
<input id="op" class="inp" placeholder="Not set">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8f8c85">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></svg>
|
||||
Version 1 · 11 fields set by <span class="mono">system:migration</span> 8 hrs ago · <a href="#" style="color: #a6a39b; text-decoration: underline">View in History</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,138 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Theme and components</title>
|
||||
<!-- Static snapshot of the design mockup (accent = sage #86b5a0). Generated from the matching file in source/. -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.h{font-size:11px;text-transform:uppercase;letter-spacing:0.08em;color:#8f8c85;margin:0 0 14px;font-weight:500}
|
||||
.panel{border:1px solid #2a2c30;border-radius:10px;background:#16171a;padding:24px}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid}
|
||||
.dot{width:7px;height:7px;border-radius:50%}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="--accent: #86b5a0; width: 1440px; height: 980px; box-sizing: border-box; padding: 48px 56px; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; display: flex; flex-direction: column; gap: 24px">
|
||||
<div>
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Graphite theme</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Warm neutral greys carry the page; one low-chroma accent marks the active item, focus and primary action.</p>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px">
|
||||
|
||||
<section class="panel">
|
||||
<h2 class="h">Palette</h2>
|
||||
<div style="display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px">
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #121314; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Ground</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#121314</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #16171a; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Surface</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#16171a</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #1e2023; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Raised</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#1e2023</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #2a2c30; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Border</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#2a2c30</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #e8e6e1; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Text</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#e8e6e1</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #8f8c85; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Muted</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#8f8c85</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #86b5a0; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Accent</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#86b5a0</span>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: #d9a45b; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">Warn</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">#d9a45b</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Type</h2>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 24px; font-weight: 600">IBM Plex Sans 600 · 24</span>
|
||||
<span style="font-size: 14px; color: #a6a39b">IBM Plex Sans 400 · 14 body</span>
|
||||
<span style="font: 13px 'IBM Plex Mono', monospace">IBM Plex Mono · values, keys, durations</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel">
|
||||
<h2 class="h">Buttons</h2>
|
||||
<div style="display: flex; gap: 10px; flex-wrap: wrap">
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
<button class="btn">Secondary</button>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn" style="background: transparent; color: #d9776b; border-color: #3a2a28">Delete</button>
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Status</h2>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap">
|
||||
<span class="pill" style="color: #a6a39b; border-color: #2e3034"><span class="dot" style="background: #86b5a0"></span>Connected</span>
|
||||
<span class="pill" style="color: #a6a39b; border-color: #2e3034"><span class="dot" style="background: #d9a45b"></span>Connecting…</span>
|
||||
<span class="pill" style="color: #d9a45b; border-color: rgba(217,164,91,0.3); background: rgba(217,164,91,0.08)">Applies after restart</span>
|
||||
<span class="pill" style="color: #86b5a0; border-color: #86b5a0">2 edited</span>
|
||||
<span class="pill" style="color: #e0a39a; border-color: rgba(217,119,107,0.35); background: rgba(217,119,107,0.08)">Invalid duration</span>
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Toggles & choice</h2>
|
||||
<div style="display: flex; align-items: center; gap: 20px">
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span class="sw" style="background: #86b5a0"><i style="right: 2px; background: #121314"></i></span>On</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a6a39b"><span class="sw" style="background: #2e3034"><i style="left: 2px; background: #8f8c85"></i></span>Off</label>
|
||||
<div style="display: inline-flex; padding: 3px; background: #121314; border: 1px solid #2e3034; border-radius: 8px">
|
||||
<button style="height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 12px 'IBM Plex Sans', sans-serif">Assignee</button>
|
||||
<button style="height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">Label</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel" style="display: flex; flex-direction: column; gap: 16px">
|
||||
<h2 class="h" style="margin: 0">Inputs</h2>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c1">Text</label><input id="c1" class="inp" value="archie-core_default"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c2">Focused</label><input id="c2" class="inp" value="ghcr.io/…/archie-agent:latest" style="border-color: #86b5a0; box-shadow: 0 0 0 3px rgba(134,181,160,0.15)"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c3">Duration with unit</label>
|
||||
<div style="display: flex"><input id="c3" class="inp" value="72" style="border-radius: 6px 0 0 6px"><select aria-label="Unit" class="inp" style="width: 110px; border-radius: 0 6px 6px 0; border-left: 0; font-family: 'IBM Plex Sans', sans-serif"><option>hours</option></select></div></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c4">Error</label><input id="c4" class="inp" value="1hr" style="border-color: #d9776b"><span style="font-size: 12px; color: #e0a39a">Use a number and a unit, e.g. 1h or 90m</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><span class="lbl">Secret reference</span>
|
||||
<div style="display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span style="font: 12px 'IBM Plex Mono', monospace; color: #8f8c85">bws /</span><span style="font: 13px 'IBM Plex Mono', monospace">MINIMAX_API_KEY</span>
|
||||
<span style="margin-left: auto; font-size: 12px; color: #86b5a0">resolved</span>
|
||||
</div></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,103 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Proposed navigation</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.node{display:flex;align-items:baseline;gap:10px;font-size:14px;font-weight:500}
|
||||
.sub{font-size:12px;color:#8f8c85;font-weight:400}
|
||||
.kid{margin:6px 0 0 18px;padding-left:14px;border-left:1px solid #2e3034;display:flex;flex-direction:column;gap:6px;font-size:13px;color:#a6a39b}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.tbl{width:100%;border-collapse:collapse;font-size:13px}
|
||||
.tbl th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8f8c85;padding:10px 14px;border-bottom:1px solid #2a2c30}
|
||||
.tbl td{padding:10px 14px;border-bottom:1px solid #202225;vertical-align:top;line-height:1.45}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1120px; box-sizing: border-box; padding: 48px 56px; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; display: flex; flex-direction: column; gap: 28px">
|
||||
<div>
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Navigation: today → proposed</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Five top-level places, each with one job. Anything you configure lives in Settings; anything you act on lives where the work is.</p>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px">
|
||||
<section class="card" style="padding: 24px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div class="eyebrow">Today</div>
|
||||
<div class="node" style="color: #a6a39b">Dashboard</div>
|
||||
<div><div class="node" style="color: #a6a39b">Work <span class="sub">dropdown</span></div>
|
||||
<div class="kid"><span>Tasks</span><span>Workflows <span class="sub">editor + start work + stats</span></span><span>Channels <span class="sub">settings + audit</span></span></div></div>
|
||||
<div><div class="node" style="color: #a6a39b">Events</div>
|
||||
<div class="kid"><span>Inspector · Bindings · Mappings</span></div></div>
|
||||
<div><div class="node" style="color: #a6a39b">System <span class="sub">dropdown</span></div>
|
||||
<div class="kid"><span>Advanced <span class="sub">6 cards, 6 save buttons</span></span></div></div>
|
||||
<p class="hint" style="margin: 8px 0 0">Dropdown contents are inferred from the screenshots; confirm against the router.</p>
|
||||
</section>
|
||||
|
||||
<section class="card" style="padding: 24px">
|
||||
<div class="eyebrow" style="margin-bottom: 16px; color: {{accent}}">Proposed</div>
|
||||
<div style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px">
|
||||
<div><div class="node">Dashboard <span class="sub">what needs me</span></div>
|
||||
<div class="kid"><span>Needs you queue</span><span>Live activity</span><span>Health: gates, tokens</span></div></div>
|
||||
<div><div class="node">Tasks <span class="sub">the work</span></div>
|
||||
<div class="kid"><span>Task list <span class="sub">filter by state</span></span><span>Task detail <span class="sub">log · files · config · debug</span></span><span>Attempts in a side rail</span></div></div>
|
||||
<div><div class="node">Workflows <span class="sub">how work runs</span></div>
|
||||
<div class="kid"><span>List with success + cost</span><span>Definition editor</span><span>Performance tab <span class="sub">stages, failures</span></span></div></div>
|
||||
<div><div class="node">Events <span class="sub">what comes in</span></div>
|
||||
<div class="kid"><span>Inspector</span><span>Bindings</span><span>Mappings</span></div></div>
|
||||
<div style="grid-column: span 2"><div class="node">Settings <span class="sub">everything you configure, one save flow</span></div>
|
||||
<div class="kid" style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px">
|
||||
<span><span style="color: #e8e6e1">Agents</span><br>Personas · Schedules · Scheduling policy</span>
|
||||
<span><span style="color: #e8e6e1">Integrations</span><br>Channels · Tools & MCP · Plugins</span>
|
||||
<span><span style="color: #e8e6e1">Runtime</span><br>Container runtime · History</span>
|
||||
</div></div>
|
||||
</div>
|
||||
<div style="margin-top: 24px; padding-top: 16px; border-top: 1px solid #232529; display: flex; gap: 24px; font-size: 13px; color: #a6a39b">
|
||||
<span><span style="color: #e8e6e1; font-weight: 500">Always in the top bar:</span> New task · ⌘K Jump to · connection status</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="card" style="overflow: hidden">
|
||||
<table class="tbl">
|
||||
<thead><tr><th style="width: 290px">What</th><th style="width: 280px">Moves to</th><th>Why</th></tr></thead>
|
||||
<tbody>
|
||||
<sc-for list="{{moves}}" as="m" hint-placeholder-count="9">
|
||||
<tr><td style="color: #e8e6e1">{{m.what}}</td><td><span style="color: {{accent}}">→</span> {{m.to}}</td><td style="color: #a6a39b">{{m.why}}</td></tr>
|
||||
</sc-for>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1120}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return {
|
||||
accent: this.props.accent ?? '#86b5a0',
|
||||
moves: [
|
||||
{ what: 'Start work card (Workflows)', to: 'New task dialog, from the top bar', why: 'Starting work is not editing a workflow. One entry point from any page, and from ⌘K.' },
|
||||
{ what: 'Channels (Work menu)', to: 'Settings › Integrations › Channels', why: 'It is configuration. It gets the same setting rows, secret fields and save flow as the rest.' },
|
||||
{ what: 'Audit table (Channels page)', to: 'Settings › History', why: 'One change log for every setting, filterable by section. Replaces six History links.' },
|
||||
{ what: 'Per workflow table', to: 'Workflows list columns', why: 'Runs, success and cost sit next to the workflow you are about to open.' },
|
||||
{ what: 'Slowest stages · Most failures', to: 'Workflow › Performance tab', why: 'Scoped to the selected workflow instead of mixing every workflow in one table.' },
|
||||
{ what: 'Connecting · Version pills on every card', to: 'One status in the top bar', why: 'Connection is global. Version shows once per page, in History.' },
|
||||
{ what: 'Settings "Managed elsewhere" row', to: 'Events tabs', why: 'Captured events, mappings and bindings already live there.' },
|
||||
{ what: 'Task "Attempt 2 is not recorded" column', to: 'Attempts list in the task side rail', why: 'Shows every attempt with its outcome; the empty column goes away.' },
|
||||
{ what: 'Dashboard stat cards and health', to: 'Stat strip + right rail', why: '"Needs you" becomes the first thing on the page, with actions inline.' }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,172 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Dashboard</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:15px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.warn{color:#d9a45b;border-color:rgba(217,164,91,.3);background:rgba(217,164,91,.08)}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tbl{width:100%;border-collapse:collapse;font-size:13px}
|
||||
.tbl th{text-align:left;font-weight:500;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8f8c85;padding:10px 20px;border-bottom:1px solid #2a2c30}
|
||||
.tbl td{padding:10px 20px;border-bottom:1px solid #202225;vertical-align:middle}
|
||||
.chip{font:11px 'IBM Plex Mono',monospace;color:#8f8c85;background:#1e2023;border-radius:4px;padding:1px 6px;margin-left:6px}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden; position: relative">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#" class="on">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; min-height: 0">
|
||||
<div style="display: flex; align-items: flex-end; gap: 16px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Good morning</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Nothing is running. <span style="color: #d9a45b">3 tasks need you.</span></p>
|
||||
</div>
|
||||
<button class="btn"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 6h16M4 12h10M4 18h13"></path></svg>Logs</button>
|
||||
</div>
|
||||
|
||||
<section class="card" style="flex-direction: row">
|
||||
<sc-for list="{{stats}}" as="s" hint-placeholder-count="4">
|
||||
<div style="flex: 1 1 0; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<div class="hint">{{s.label}}</div>
|
||||
<div style="font-size: 30px; font-weight: 600; margin-top: 6px; color: {{s.color}}">{{s.value}}</div>
|
||||
<div class="hint" style="margin-top: 2px">{{s.sub}}</div>
|
||||
</div>
|
||||
</sc-for>
|
||||
</section>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; min-height: 0; flex-grow: 1">
|
||||
<div style="display: flex; flex-direction: column; gap: 24px; min-width: 0">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Needs you</span><span class="pill warn">3</span><div style="flex-grow: 1"></div><a href="#" class="hint" style="text-decoration: underline">All tasks</a></div>
|
||||
<sc-for list="{{needs}}" as="n" hint-placeholder-count="3">
|
||||
<div style="display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #202225">
|
||||
<span class="pill warn" style="justify-self: start">{{n.state}}</span>
|
||||
<div style="min-width: 0">
|
||||
<a href="#" style="font-size: 14px; font-weight: 500">{{n.title}}</a>
|
||||
<div class="mono" style="font-size: 12px; color: #8f8c85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{n.meta}}</div>
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px"><button class="btn btn-sm btn-ghost">Open</button><button class="btn btn-sm">{{n.action}}</button></div>
|
||||
</div>
|
||||
</sc-for>
|
||||
</section>
|
||||
|
||||
<section class="card" style="flex-grow: 1; overflow: hidden">
|
||||
<div class="card-h"><span class="card-t">Live activity</span><span class="pill" style="color: {{accent}}; border-color: {{accent}}"><span class="dot" style="background: {{accent}}"></span>live</span><div style="flex-grow: 1"></div>
|
||||
<div role="radiogroup" aria-label="Filter activity" style="display: inline-flex; padding: 2px; border: 1px solid #2e3034; border-radius: 7px"><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 12px 'IBM Plex Sans', sans-serif">All</button><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">Tasks</button><button style="height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">System</button></div>
|
||||
</div>
|
||||
<table class="tbl">
|
||||
<thead><tr><th>Event</th><th style="width: 70px">Task</th><th>Detail</th><th style="width: 110px">When</th></tr></thead>
|
||||
<tbody>
|
||||
<sc-for list="{{activity}}" as="a" hint-placeholder-count="8">
|
||||
<tr><td class="mono" style="font-size: 12px"><span style="display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; background: {{a.color}}"></span>{{a.event}}<sc-if value="{{a.count}}" hint-placeholder-val="{{false}}"><span class="chip">×{{a.count}}</span></sc-if></td><td class="mono" style="font-size: 12px; color: #a6a39b">{{a.task}}</td><td style="color: #a6a39b; max-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{a.detail}}</td><td class="hint">{{a.when}}</td></tr>
|
||||
</sc-for>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-direction: column; gap: 24px">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Quality gates</span><div style="flex-grow: 1"></div><span class="hint">last 4 runs</span></div>
|
||||
<div style="padding: 20px; display: flex; flex-direction: column; gap: 16px">
|
||||
<div style="display: flex; align-items: baseline; gap: 10px"><span style="font-size: 30px; font-weight: 600">25%</span><span class="hint">pass rate</span></div>
|
||||
<sc-for list="{{gates}}" as="g" hint-placeholder-count="2">
|
||||
<div>
|
||||
<div style="display: flex; font-size: 13px; margin-bottom: 6px"><span class="mono">{{g.name}}</span><span style="margin-left: auto; color: #a6a39b" class="mono">{{g.score}}</span></div>
|
||||
<div style="height: 6px; border-radius: 3px; background: #26282c"><div style="height: 6px; border-radius: 3px; width: {{g.pct}}; background: {{g.color}}"></div></div>
|
||||
</div>
|
||||
</sc-for>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Token outlook</span></div>
|
||||
<div style="padding: 20px; display: flex; flex-direction: column; gap: 14px">
|
||||
<div style="display: flex; gap: 24px">
|
||||
<div><div class="hint">Today</div><div style="font-size: 22px; font-weight: 600; margin-top: 2px">14.5M</div></div>
|
||||
<div><div class="hint">Next 30 days at this rate</div><div style="font-size: 22px; font-weight: 600; margin-top: 2px">≈ 434M</div></div>
|
||||
</div>
|
||||
<div aria-label="Tokens per day, last 7 days" style="display: flex; align-items: flex-end; gap: 6px; height: 64px">
|
||||
<sc-for list="{{days}}" as="d" hint-placeholder-count="7"><div style="flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px"><div style="width: 100%; height: {{d.h}}; border-radius: 3px; background: {{d.color}}"></div><span class="mono" style="font-size: 10px; color: #8f8c85">{{d.label}}</span></div></sc-for>
|
||||
</div>
|
||||
<div class="hint">Only 1 day of history. The projection steadies after a week of runs.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<button aria-label="Chat with Archie" style="position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #34373c; background: #1e2023; color: {{accent}}; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z"></path></svg></button>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1080}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
const accent = this.props.accent ?? '#86b5a0';
|
||||
const sys = '#6f6c66', task = '#8aa4c2', bad = '#d9776b', ok = accent;
|
||||
return {
|
||||
accent,
|
||||
stats: [
|
||||
{ label: 'Working now', value: '0', sub: '0 waiting to start', color: '#e8e6e1' },
|
||||
{ label: 'Needs you', value: '3', sub: 'Parked or awaiting a reply', color: '#d9a45b' },
|
||||
{ label: 'Delivered', value: '1', sub: '25% of all tasks', color: '#e8e6e1' },
|
||||
{ label: 'Tokens used', value: '14.5M', sub: 'Across 1 day', color: '#e8e6e1' }
|
||||
],
|
||||
needs: [
|
||||
{ state: 'Parked', title: 'changes_captured key-set validation is top-level only', meta: 'archie-core #868 · tdd · worktree prepare failed: fetch origin: http transport…', action: 'Start new run' },
|
||||
{ state: 'Awaiting reply', title: '[Task title]', meta: '[repo #issue] · [workflow] · [last agent message]', action: 'Reply' },
|
||||
{ state: 'Awaiting reply', title: '[Task title]', meta: '[repo #issue] · [workflow] · [last agent message]', action: 'Reply' }
|
||||
],
|
||||
activity: [
|
||||
{ event: 'curator_run', task: '—', detail: 'session-memory', when: '19 mins ago', color: sys, count: 0 },
|
||||
{ event: 'task_archive_requested', task: '#5', detail: 'archive requested with no recorded actor', when: '1 hr ago', color: task, count: 0 },
|
||||
{ event: 'task_abandoned', task: '#5', detail: 'abandoned with no recorded actor', when: '1 hr ago', color: bad, count: 0 },
|
||||
{ event: 'curator_run', task: '—', detail: 'session-memory', when: '1 hr ago', color: sys, count: 6 },
|
||||
{ event: 'stage_start', task: '#5', detail: '', when: '1 hr ago', color: task, count: 4 },
|
||||
{ event: 'stage_start', task: '#4', detail: '', when: '7 hrs ago', color: task, count: 5 },
|
||||
{ event: 'agent_finish', task: '#4', detail: 'Problem surface for samcharles93/archie-core issue 836 ("Updater cannot detect o…', when: '7 hrs ago', color: ok, count: 0 },
|
||||
{ event: 'agent_finish', task: '#4', detail: 'Root cause', when: '7 hrs ago', color: ok, count: 0 },
|
||||
{ event: 'stage_start', task: '#4', detail: '', when: '8 hrs ago', color: task, count: 6 }
|
||||
],
|
||||
gates: [
|
||||
{ name: 'tdd', score: '0 / 3', pct: '2%', color: '#d9776b' },
|
||||
{ name: 'triage', score: '1 / 1', pct: '100%', color: accent }
|
||||
],
|
||||
days: ['M','T','W','T','F','S','S'].map((l, i) => ({ label: l, h: i === 4 ? '48px' : '3px', color: i === 4 ? accent : '#26282c' }))
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,138 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Task detail</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:14px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.warn{color:#d9a45b;border-color:rgba(217,164,91,.3);background:rgba(217,164,91,.08)}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.sel{height:32px;box-sizing:border-box;padding:0 10px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:13px 'IBM Plex Sans',sans-serif}
|
||||
.kv{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;font-size:13px;padding:8px 0;border-bottom:1px solid #202225}
|
||||
.kv dt{color:#8f8c85}.kv dd{margin:0}
|
||||
.tag{font:11px 'IBM Plex Mono',monospace;color:#a6a39b;background:#1e2023;border-radius:4px;padding:1px 6px}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1000px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#" class="on">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 24px 48px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 0">
|
||||
<div>
|
||||
<div class="hint"><a href="#" style="color: #a6a39b">Tasks</a> / <span class="mono">#1</span></div>
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px; margin-top: 8px">
|
||||
<div style="flex-grow: 1; min-width: 0">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">changes_captured key-set validation is top-level only</h1>
|
||||
<div style="display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: #a6a39b">
|
||||
<span class="pill warn"><span class="dot" style="background: #d9a45b"></span>Parked</span>
|
||||
<span class="mono">tdd</span><span style="color: #4a4c50">·</span>
|
||||
<a href="#" class="mono" style="color: #a6a39b; text-decoration: underline">samcharles93/archie-core #868</a>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-ghost">Archive</button>
|
||||
<button class="btn btn-primary"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>Start a new run</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div role="alert" style="display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; background: rgba(217,164,91,0.08); border: 1px solid rgba(217,164,91,0.25)">
|
||||
<svg style="flex-shrink: 0; margin-top: 2px" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#d9a45b" stroke-width="2"><path d="M12 3 2 20h20L12 3Z"></path><path d="M12 10v4M12 17h.01"></path></svg>
|
||||
<div style="min-width: 0; flex-grow: 1">
|
||||
<div style="font-size: 14px; font-weight: 500; color: #e3c08f">Parked: couldn’t prepare the worktree</div>
|
||||
<div class="mono" style="font-size: 12px; color: #a6a39b; margin-top: 4px; line-height: 1.6; word-break: break-all">fetch origin: http transport: Get "https://github.com/samcharles93/archie-core.git/info/refs?service=git-upload-pack": terminated signal received</div>
|
||||
</div>
|
||||
<button class="btn btn-sm" style="align-self: flex-start">Jump to log line</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; flex-grow: 1; min-height: 0">
|
||||
<section class="card" style="overflow: hidden">
|
||||
<nav style="display: flex; gap: 28px; padding: 0 20px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: {{accent}}">Log</a>
|
||||
<a class="tab" href="#">Changed files <span class="hint" style="margin-left: 6px">0</span></a>
|
||||
<a class="tab" href="#">Configuration</a>
|
||||
<a class="tab" href="#">Debug</a>
|
||||
</nav>
|
||||
<div style="display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid #232529">
|
||||
<select aria-label="Level" class="sel"><option>All levels</option></select>
|
||||
<select aria-label="Stage" class="sel"><option>All stages</option></select>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 32px; width: 260px; padding: 0 10px; box-sizing: border-box; border: 1px solid #2e3034; border-radius: 6px; color: #8f8c85"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Search log" placeholder="Search log" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: 13px 'IBM Plex Sans', sans-serif; width: 100%"></label>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-sm btn-ghost"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"></path></svg>Download</button>
|
||||
</div>
|
||||
<div class="mono" style="font-size: 12px; line-height: 1.7; flex-grow: 1; background: #121314">
|
||||
<div style="display: grid; grid-template-columns: 72px 56px minmax(0, 1fr); gap: 12px; padding: 10px 20px; background: rgba(217,119,107,0.06); border-left: 2px solid #d9776b">
|
||||
<span style="color: #8f8c85">08:38:49</span>
|
||||
<span style="color: #e0a39a">ERROR</span>
|
||||
<div style="min-width: 0">
|
||||
<div style="word-break: break-all">task parked: worktree prepare failed: fetch origin: http transport: Get "https://github.com/samcharles93/archie-core.git/info/refs?service=git-upload-pack": terminated signal received</div>
|
||||
<div style="display: flex; gap: 6px; margin-top: 6px"><span class="tag">component=daemon</span><span class="tag">task=1</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding: 16px 20px; color: #8f8c85; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px">End of attempt 1 · 1 line</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<aside style="display: flex; flex-direction: column; gap: 20px">
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Attempts</span></div>
|
||||
<div style="padding: 8px 12px">
|
||||
<a href="#" style="display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 6px; background: #1e2023; box-shadow: inset 2px 0 0 {{accent}}">
|
||||
<span class="dot" style="background: #d9a45b"></span><span style="font-size: 13px; flex-grow: 1">Attempt 1</span><span class="hint">parked · 08:38</span></a>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 10px 8px; color: #8f8c85">
|
||||
<span class="dot" style="background: transparent; border: 1px dashed #4a4c50; box-sizing: border-box"></span><span style="font-size: 13px; flex-grow: 1">Attempt 2</span><span class="hint">not recorded</span></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="card">
|
||||
<div class="card-h"><span class="card-t">Details</span></div>
|
||||
<dl style="margin: 0; padding: 4px 20px 12px">
|
||||
<div class="kv"><dt>Status</dt><dd style="color: #d9a45b">Parked</dd></div>
|
||||
<div class="kv"><dt>Workflow</dt><dd><a href="#" class="mono" style="text-decoration: underline">tdd</a></dd></div>
|
||||
<div class="kv"><dt>Repository</dt><dd class="mono" style="font-size: 12px">samcharles93/archie-core</dd></div>
|
||||
<div class="kv"><dt>Issue</dt><dd><a href="#" style="text-decoration: underline">#868</a> ↗</dd></div>
|
||||
<div class="kv"><dt>Persona</dt><dd class="mono" style="font-size: 12px">[persona]</dd></div>
|
||||
<div class="kv"><dt>Tokens</dt><dd class="mono" style="font-size: 12px">[tokens]</dd></div>
|
||||
<div class="kv" style="border: 0"><dt>Started</dt><dd>[date · time]</dd></div>
|
||||
</dl>
|
||||
</section>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1000}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return { accent: this.props.accent ?? '#86b5a0' };
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,142 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Workflows</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.step{font:12px 'IBM Plex Mono',monospace;padding:6px 10px;border:1px solid #2e3034;border-radius:6px;background:#121314;white-space:nowrap}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#" class="on">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; min-height: 0">
|
||||
<div style="display: flex; align-items: flex-end; gap: 12px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Workflows</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">The step sequences agents follow. Success rate is merged tasks over all runs.</p>
|
||||
</div>
|
||||
<button class="btn btn-ghost"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12a9 9 0 1 0 3-6.7L3 8"></path><path d="M3 3v5h5"></path></svg>Restore shipped</button>
|
||||
<button class="btn"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New workflow</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; flex-grow: 1; min-height: 0">
|
||||
<section class="card" style="overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; padding: 10px 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8f8c85; border-bottom: 1px solid #2a2c30"><span>Workflow</span><span>Runs</span><span>Success</span><span style="text-align: right">Avg tok</span></div>
|
||||
<sc-for list="{{flows}}" as="f" hint-placeholder-count="6">
|
||||
<a href="#" style="display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px 72px; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #202225; background: {{f.bg}}; box-shadow: {{f.shadow}}">
|
||||
<span><span style="font-size: 14px; font-weight: 500; display: block">{{f.name}}</span><span class="mono" style="font-size: 11px; color: #8f8c85">{{f.id}}</span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b">{{f.runs}}</span>
|
||||
<span style="display: flex; flex-direction: column; gap: 4px"><span class="mono" style="font-size: 12px">{{f.rate}}</span><span style="height: 4px; border-radius: 2px; background: #26282c; width: 100%"><span style="display: block; height: 4px; border-radius: 2px; width: {{f.pct}}; background: {{f.barColor}}"></span></span></span>
|
||||
<span class="mono" style="font-size: 12px; color: #a6a39b; text-align: right">{{f.tokens}}</span>
|
||||
</a>
|
||||
</sc-for>
|
||||
</section>
|
||||
|
||||
<section class="card" style="overflow: hidden">
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 18px 24px 0">
|
||||
<h2 style="margin: 0; font-size: 18px; font-weight: 600">Bootstrap</h2>
|
||||
<span class="pill">shipped · edited</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<span class="hint">0 runs yet</span>
|
||||
</div>
|
||||
<nav style="display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: {{accent}}">Definition</a>
|
||||
<a class="tab" href="#">Performance</a>
|
||||
<a class="tab" href="#">Runs</a>
|
||||
</nav>
|
||||
<div style="padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; min-height: 0">
|
||||
<div style="display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px">
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="wid">ID</label><input id="wid" class="inp" value="bootstrap"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><span class="lbl">Steps</span>
|
||||
<div style="display: flex; align-items: center; gap: 6px; height: 36px; flex-wrap: nowrap; overflow: hidden">
|
||||
<sc-for list="{{steps}}" as="s" hint-placeholder-count="5"><span class="step">{{s.name}}</span><sc-if value="{{s.more}}" hint-placeholder-val="{{true}}"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#4a4c50" stroke-width="2"><path d="M5 12h14M13 6l6 6-6 6"></path></svg></sc-if></sc-for>
|
||||
</div></div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-height: 0">
|
||||
<div style="display: flex; align-items: baseline"><span class="lbl">YAML</span><span class="hint" style="margin-left: auto; color: {{accent}}">✓ Valid</span></div>
|
||||
<div class="mono" style="flex-grow: 1; display: grid; grid-template-columns: 44px minmax(0, 1fr); border: 1px solid #2e3034; border-radius: 8px; background: #121314; font-size: 13px; line-height: 1.75; overflow: hidden">
|
||||
<div style="padding: 14px 0; text-align: right; padding-right: 12px; color: #4f5156; border-right: 1px solid #232529; background: #141517; white-space: pre-line">{{lineNos}}</div>
|
||||
<div style="padding: 14px 16px; white-space: pre"><span style="color: #a6a39b">id:</span> bootstrap
|
||||
<span style="color: #a6a39b">steps:</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: {{accent}}">bootstrap.prepare</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: {{accent}}">bootstrap.apply</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: {{accent}}">bootstrap.commit-push</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: {{accent}}">bootstrap.diff-cap</span>
|
||||
- <span style="color: #a6a39b">type:</span> <span style="color: {{accent}}">bootstrap.open-pr</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid #2a2c30; background: #17181a">
|
||||
<span class="hint">Version 1 · <a href="#" style="color: #a6a39b; text-decoration: underline">History</a></span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-ghost" style="color: #d9776b">Remove</button>
|
||||
<button class="btn">Restore this workflow</button>
|
||||
<button class="btn btn-primary">Validate & save</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1080}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
const accent = this.props.accent ?? '#86b5a0';
|
||||
const rows = [
|
||||
['Bootstrap', 'bootstrap', '0', '—', '0%', '—'],
|
||||
['Feasibility check', 'feasibility', '0', '—', '0%', '—'],
|
||||
['Implement', 'implement', '0', '—', '0%', '—'],
|
||||
['Remediate', 'remediate', '0', '—', '0%', '—'],
|
||||
['TDD', 'tdd', '3', '0 of 3', '2%', '4.7M'],
|
||||
['Triage', 'triage', '1', '1 of 1', '100%', '282k']
|
||||
];
|
||||
const steps = ['prepare', 'apply', 'commit-push', 'diff-cap', 'open-pr'];
|
||||
return {
|
||||
accent,
|
||||
flows: rows.map(([name, id, runs, rate, pct, tokens], i) => ({
|
||||
name, id, runs, rate, pct, tokens,
|
||||
barColor: rate === '0 of 3' ? '#d9776b' : accent,
|
||||
bg: i === 0 ? '#1e2023' : 'transparent',
|
||||
shadow: i === 0 ? 'inset 2px 0 0 ' + accent : 'none'
|
||||
})),
|
||||
steps: steps.map((name, i) => ({ name, more: i < steps.length - 1 })),
|
||||
lineNos: '1\n2\n3\n4\n5\n6\n7'
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,83 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New task dialog</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.inp{box-sizing:border-box;height:38px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.opt{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #2e3034;border-radius:8px;cursor:pointer}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 900px; box-sizing: border-box; position: relative; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-sm" style="border-color: {{accent}}"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
</header>
|
||||
<div style="padding: 32px 48px"><div style="font-size: 28px; font-weight: 600; color: #3a3c40">Good morning</div></div>
|
||||
|
||||
<div style="position: absolute; inset: 0; background: rgba(8,9,10,0.6)"></div>
|
||||
|
||||
<section role="dialog" aria-modal="true" aria-labelledby="nt-title" style="position: absolute; left: 50%; top: 88px; transform: translateX(-50%); width: 640px; box-sizing: border-box; background: #17181a; border: 1px solid #2a2c30; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); display: flex; flex-direction: column">
|
||||
<div style="display: flex; align-items: flex-start; padding: 22px 24px 18px; border-bottom: 1px solid #232529">
|
||||
<div style="flex-grow: 1"><h2 id="nt-title" style="margin: 0; font-size: 18px; font-weight: 600">New task</h2><div class="hint" style="margin-top: 2px">Goes into Archie’s normal task queue.</div></div>
|
||||
<button aria-label="Close" style="width: 32px; height: 32px; border: 0; background: transparent; color: #8f8c85; cursor: pointer"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 6l12 12M18 6 6 18"></path></svg></button>
|
||||
</div>
|
||||
<div style="padding: 20px 24px; display: flex; flex-direction: column; gap: 18px">
|
||||
<div class="field"><label class="lbl" for="repo">Repository</label><input id="repo" class="inp" value="samcharles93/archie-core"><span class="hint">owner/repository · recent: archie-core</span></div>
|
||||
<div class="field"><span class="lbl">Workflow</span>
|
||||
<div role="radiogroup" aria-label="Workflow" style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px">
|
||||
<sc-for list="{{flows}}" as="f" hint-placeholder-count="6">
|
||||
<label class="opt" style="border-color: {{f.border}}; background: {{f.bg}}"><span style="font-size: 13px; font-weight: 500">{{f.name}}</span><span class="hint">{{f.sub}}</span></label>
|
||||
</sc-for>
|
||||
</div></div>
|
||||
<div class="field"><label class="lbl" for="ttl">Title</label><input id="ttl" class="inp" placeholder="What should Archie do?" style="font-family: 'IBM Plex Sans', sans-serif"></div>
|
||||
<div class="field"><label class="lbl" for="ins">Instructions</label><textarea id="ins" placeholder="Context, acceptance criteria, files to look at…" style="min-height: 120px; box-sizing: border-box; padding: 12px; background: #121314; border: 1px solid #2e3034; border-radius: 6px; color: #e8e6e1; font: 13px/1.6 'IBM Plex Sans', sans-serif; resize: vertical; outline: none"></textarea></div>
|
||||
<details style="font-size: 13px; color: #a6a39b"><summary style="cursor: pointer">Advanced · run as identity</summary></details>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid #232529">
|
||||
<span class="hint"><span class="mono" style="padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘↵</span> to start</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn btn-ghost">Cancel</button>
|
||||
<button class="btn btn-primary">Start task</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":900}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
const accent = this.props.accent ?? '#86b5a0';
|
||||
const list = [['TDD', '3 runs · 0% merged'], ['Triage', '1 run · 100% merged'], ['Implement', 'no runs yet'], ['Remediate', 'no runs yet'], ['Feasibility check', 'no runs yet'], ['Bootstrap', 'no runs yet']];
|
||||
return {
|
||||
accent,
|
||||
flows: list.map(([name, sub], i) => ({ name, sub, border: i === 0 ? accent : '#2e3034', bg: i === 0 ? '#1e2023' : 'transparent' }))
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,108 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Events</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.card-t{font-size:15px;font-weight:500}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.tab{height:44px;display:flex;align-items:center;gap:8px;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.count{font:11px 'IBM Plex Mono',monospace;color:#8f8c85;background:#1e2023;border-radius:4px;padding:0 6px}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 900px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#" class="on">Events</a><a href="#">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<main style="flex-grow: 1; padding: 32px 48px; display: flex; flex-direction: column; gap: 24px">
|
||||
<div>
|
||||
<div style="display: flex; align-items: flex-end; gap: 12px">
|
||||
<div style="flex-grow: 1"><h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Events</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Webhooks come in, get mapped to event types, and bindings turn them into work.</p></div>
|
||||
<span class="pill" style="color: {{accent}}; border-color: {{accent}}"><span class="dot" style="background: {{accent}}"></span>Listening</span>
|
||||
</div>
|
||||
<nav style="display: flex; gap: 28px; margin-top: 16px; border-bottom: 1px solid #232529">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: {{accent}}">Inspector</a>
|
||||
<a class="tab" href="#">Mappings <span class="count">0</span></a>
|
||||
<a class="tab" href="#">Bindings <span class="count">0</span></a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<section class="card" style="flex-direction: row">
|
||||
<sc-for list="{{flow}}" as="f" hint-placeholder-count="3">
|
||||
<div style="flex: 1 1 0; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid #232529">
|
||||
<span class="mono" style="width: 28px; height: 28px; border-radius: 50%; border: 1px solid #34373c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b; flex-shrink: 0">{{f.n}}</span>
|
||||
<div style="flex-grow: 1"><div style="font-size: 14px; font-weight: 500">{{f.title}}</div><div class="hint">{{f.sub}}</div></div>
|
||||
<span class="mono" style="font-size: 20px; color: #8f8c85">{{f.count}}</span>
|
||||
</div>
|
||||
</sc-for>
|
||||
</section>
|
||||
|
||||
<div style="display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px">
|
||||
<section class="card">
|
||||
<div class="card-h"><div style="flex-grow: 1"><div class="card-t">Recent captures</div><div class="hint">Headers and payloads are redacted before they’re stored.</div></div></div>
|
||||
<div style="padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center">
|
||||
<div style="width: 40px; height: 40px; border-radius: 10px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><path d="M22 12h-6l-2 3h-4l-2-3H2"></path><path d="M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6Z"></path></svg></div>
|
||||
<div style="font-size: 14px; font-weight: 500">No captures yet</div>
|
||||
<div class="hint">Point a webhook at this endpoint and it shows up here live.</div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 4px 4px 14px; border: 1px solid #2e3034; border-radius: 8px; background: #121314">
|
||||
<span class="mono" style="font-size: 13px">/webhooks/capture/<span style="color: {{accent}}"><source></span></span>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="8" y="8" width="12" height="12" rx="2"></rect><path d="M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3"></path></svg>Copy</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h"><div style="flex-grow: 1"><div class="card-t">Event types</div><div class="hint">Named shapes that mappings produce.</div></div>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Z"></path><path d="M12 12v6M9 15h6"></path></svg>From payload</button></div>
|
||||
<div style="padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center">
|
||||
<div style="font-size: 14px; font-weight: 500">No event types or proposals</div>
|
||||
<div class="hint">Paste a sample payload and Archie proposes a type for it. Proposals from real captures appear here too.</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":900}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return {
|
||||
accent: this.props.accent ?? '#86b5a0',
|
||||
flow: [
|
||||
{ n: '1', title: 'Capture', sub: 'Webhooks received', count: '0' },
|
||||
{ n: '2', title: 'Map', sub: 'Payloads → event types', count: '0' },
|
||||
{ n: '3', title: 'Bind', sub: 'Event types → work', count: '0' }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,167 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – sidebar layout</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none}
|
||||
.inp:focus{border-color:var(--accent)}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.icon-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid transparent;background:transparent;color:#8f8c85;cursor:pointer}
|
||||
.icon-btn:hover{background:#1e2023;color:#e8e6e1}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
.row{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;padding:20px 0;border-top:1px solid #232529}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;margin-top:4px;line-height:1.5}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1040px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; position: relative; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Tasks</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Workflows</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">Settings</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: #d9a45b"></span>
|
||||
Connecting to archie-core…
|
||||
</div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 240px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg>
|
||||
<input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%">
|
||||
<span style="font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span>
|
||||
</label>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 264px; flex-shrink: 0; box-sizing: border-box; padding: 24px 16px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas<span style="margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8f8c85">6</span></a>
|
||||
<a class="nav-item" href="#">Schedules<span style="margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8f8c85">0</span></a>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 {{accent}}">Scheduling policy<span style="margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: {{accent}}" title="Unsaved changes"></span></a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#">Channels</a>
|
||||
<a class="nav-item" href="#">Tools & MCP</a>
|
||||
<a class="nav-item" href="#">Plugins</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#">History</a>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="font-size: 12px; color: #8f8c85; padding: 12px; line-height: 1.5; border: 1px solid #232529; border-radius: 8px">Config version 1 · last saved by <span style="color: #a6a39b">admin</span><br><a href="#" style="color: {{accent}}">View history</a></div>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; overflow: hidden; padding: 40px 56px 120px">
|
||||
<div style="max-width: 920px">
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Scheduling policy</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">How Archie picks up work items and labels them as they move through states.</p>
|
||||
</div>
|
||||
<span style="display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #d9a45b; background: rgba(217,164,91,0.1); border: 1px solid rgba(217,164,91,0.25); padding: 4px 10px; border-radius: 999px">
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>
|
||||
Applies after restart</span>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">Dispatch</h2>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Trigger</div><div class="hint">What causes a work item to be dispatched to an agent.</div></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 12px">
|
||||
<div role="radiogroup" aria-label="Trigger" style="display: inline-flex; align-self: flex-start; padding: 3px; background: #121314; border: 1px solid #2e3034; border-radius: 8px">
|
||||
<button style="height: 30px; padding: 0 14px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 13px 'IBM Plex Sans', sans-serif">Assignee</button>
|
||||
<button style="height: 30px; padding: 0 14px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 13px 'IBM Plex Sans', sans-serif">Label</button>
|
||||
</div>
|
||||
<div class="hint" style="margin: 0">Dispatches when Archie is assigned. Choose <span style="color: #a6a39b">Label</span> to set a trigger label instead.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="ack">Ack reaction</label><div class="hint">Reaction posted when a work item is picked up.</div></div>
|
||||
<div><input id="ack" class="inp" value="eyes" style="width: 220px"></div>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">State labels</h2>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Labels by state</div><div class="hint">Label applied to the ticket as the agent moves between states.</div></div>
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8f8c85; background: #17181a; border-bottom: 1px solid #2a2c30"><span>State</span><span>Label</span><span></span></div>
|
||||
<sc-for list="{{labels}}" as="l" hint-placeholder-count="6">
|
||||
<div style="display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #202225">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span style="width: 8px; height: 8px; border-radius: 2px; background: {{l.color}}"></span>{{l.state}}</span>
|
||||
<input class="inp" aria-label="{{l.state}} label" value="{{l.label}}" style="width: 100%; height: 32px">
|
||||
<button class="icon-btn" aria-label="Remove {{l.state}}"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"></path></svg></button>
|
||||
</div>
|
||||
</sc-for>
|
||||
<button style="display: flex; align-items: center; gap: 6px; width: 100%; height: 38px; padding: 0 12px; border: 0; background: transparent; color: #a6a39b; font: 500 13px 'IBM Plex Sans', sans-serif; cursor: pointer"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>Add state</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 style="margin: 36px 0 4px; font-size: 13px; font-weight: 600; color: #a6a39b; text-transform: uppercase; letter-spacing: 0.06em">Retries & polling</h2>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="retries">Max retries</label><div class="hint">Attempts before an item is labelled dead.</div></div>
|
||||
<div style="display: inline-flex; align-self: flex-start; border: 1px solid #2e3034; border-radius: 6px; overflow: hidden; width: fit-content">
|
||||
<button class="icon-btn" aria-label="Decrease" style="border-radius: 0">−</button>
|
||||
<input id="retries" class="inp" value="3" style="width: 56px; border: 0; border-radius: 0; text-align: center; border-left: 1px solid #2e3034; border-right: 1px solid #2e3034">
|
||||
<button class="icon-btn" aria-label="Increase" style="border-radius: 0">+</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="poll">Poll interval</label><div class="hint">How often the tracker is checked for new work.</div></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px">
|
||||
<div style="display: flex">
|
||||
<input id="poll" class="inp" value="30" style="width: 80px; border-radius: 6px 0 0 6px; border-color: {{accent}}">
|
||||
<select aria-label="Poll unit" class="inp" style="border-radius: 0 6px 6px 0; border-left: 0; font-family: 'IBM Plex Sans', sans-serif"><option>seconds</option><option>minutes</option></select>
|
||||
</div>
|
||||
<span style="font-size: 12px; color: #8f8c85">was <span style="font-family: 'IBM Plex Mono', monospace; text-decoration: line-through">1m0s</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div style="position: absolute; left: 264px; right: 0; bottom: 0; height: 72px; box-sizing: border-box; padding: 0 56px; display: flex; align-items: center; gap: 12px; background: #17181a; border-top: 1px solid #2a2c30">
|
||||
<span style="width: 8px; height: 8px; border-radius: 50%; background: {{accent}}"></span>
|
||||
<span style="font-size: 13px">1 unsaved change</span>
|
||||
<span style="font-size: 13px; color: #8f8c85">· Poll interval</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
</div>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1040}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return {
|
||||
accent: this.props.accent ?? '#86b5a0',
|
||||
labels: [
|
||||
{ state: 'queued', label: 'agent:queued', color: '#8f8c85' },
|
||||
{ state: 'working', label: 'agent:working', color: '#8aa4c2' },
|
||||
{ state: 'waiting', label: 'agent:waiting', color: '#d9a45b' },
|
||||
{ state: 'pr', label: 'agent:pr', color: '#86b5a0' },
|
||||
{ state: 'parked', label: 'agent:parked', color: '#6f6c66' },
|
||||
{ state: 'dead', label: 'agent:dead', color: '#d9776b' }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,146 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – personas</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.tab{height:44px;display:flex;align-items:center;padding:0 2px;font-size:13px;color:#8f8c85;border-bottom:2px solid transparent}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1040px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Work</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">System</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: {{accent}}"></span>
|
||||
Connected · v1
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div style="padding: 32px 48px 0; border-bottom: 1px solid #232529; flex-shrink: 0">
|
||||
<div style="font-size: 12px; color: #8f8c85">System / Advanced</div>
|
||||
<h1 style="margin: 6px 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Advanced settings</h1>
|
||||
<nav style="display: flex; gap: 28px">
|
||||
<a class="tab" href="#" style="color: #e8e6e1; border-bottom-color: {{accent}}">Personas</a>
|
||||
<a class="tab" href="#">Schedules</a>
|
||||
<a class="tab" href="#">Scheduling policy</a>
|
||||
<a class="tab" href="#">Tools & MCP</a>
|
||||
<a class="tab" href="#">Plugins</a>
|
||||
<a class="tab" href="#">Container runtime</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0; padding: 32px 48px 40px; gap: 32px">
|
||||
<section aria-label="Persona list" style="width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px">
|
||||
<div style="display: flex; align-items: center; gap: 8px">
|
||||
<label style="flex-grow: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; color: #8f8c85">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg>
|
||||
<input aria-label="Filter personas" placeholder="Filter personas" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: 13px 'IBM Plex Sans', sans-serif; width: 100%">
|
||||
</label>
|
||||
<button class="btn" aria-label="New persona" style="padding: 0 12px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New</button>
|
||||
</div>
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 10px; overflow: hidden; background: #16171a">
|
||||
<sc-for list="{{personas}}" as="p" hint-placeholder-count="6">
|
||||
<a href="#" style="display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #222428; background: {{p.bg}}; box-shadow: {{p.shadow}}">
|
||||
<span style="display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500">{{p.name}}
|
||||
<sc-if value="{{p.isDefault}}" hint-placeholder-val="{{false}}"><span style="font-size: 11px; font-weight: 500; color: {{accent}}; border: 1px solid {{accent}}; border-radius: 999px; padding: 1px 8px">default</span></sc-if>
|
||||
</span>
|
||||
<span style="font-size: 12px; color: #8f8c85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{p.prompt}}</span>
|
||||
</a>
|
||||
</sc-for>
|
||||
</div>
|
||||
<div class="hint">Personas are system prompts an agent can adopt. The default is used when a work item doesn't specify one.</div>
|
||||
</section>
|
||||
|
||||
<section aria-label="Edit persona" style="flex-grow: 1; display: flex; flex-direction: column; border: 1px solid #2a2c30; border-radius: 10px; background: #16171a; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid #2a2c30">
|
||||
<h2 style="margin: 0; font-size: 18px; font-weight: 600">archie</h2>
|
||||
<span style="font-size: 11px; color: {{accent}}; border: 1px solid {{accent}}; border-radius: 999px; padding: 1px 8px">default</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent">Duplicate</button>
|
||||
<button class="btn" style="background: transparent; color: #d9776b; border-color: #3a2a28">Delete</button>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 24px; padding: 24px; flex-grow: 1">
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px">
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<label class="lbl" for="pname">Name</label>
|
||||
<input id="pname" class="inp" value="archie">
|
||||
<span class="hint">Lowercase, used as the persona key.</span>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<span class="lbl">Default persona</span>
|
||||
<label style="display: flex; align-items: center; gap: 10px; height: 36px; font-size: 13px; color: #a6a39b">
|
||||
<span style="width: 36px; height: 20px; border-radius: 999px; background: {{accent}}; position: relative; display: inline-block"><span style="position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #121314"></span></span>
|
||||
Use when no persona is specified
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px; flex-grow: 1">
|
||||
<div style="display: flex; align-items: baseline"><label class="lbl" for="prompt">System prompt</label><span class="hint" style="margin-left: auto; font-family: 'IBM Plex Mono', monospace">312 chars · ~70 tokens</span></div>
|
||||
<textarea id="prompt" style="flex-grow: 1; min-height: 320px; box-sizing: border-box; padding: 16px; background: #121314; border: 1px solid #2e3034; border-radius: 8px; color: #e8e6e1; font: 400 13px/1.7 'IBM Plex Mono', monospace; resize: vertical; outline: none">You are Archie, a capable coding and project assistant. Be direct without being brusque, grounded in the actual workspace state, and use available tools when asked. Do not claim tools, files, memories, actions, or results you have not verified. Do not impersonate another assistant, provider, or vendor.</textarea>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed #2e3034; border-radius: 8px">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><path d="M4 12h12M12 6l6 6-6 6"></path></svg>
|
||||
<span style="font-size: 13px; color: #a6a39b; flex-grow: 1">Try this persona against a sample message before saving</span>
|
||||
<button class="btn">Open preview</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid #2a2c30; background: #17181a">
|
||||
<span style="font-size: 12px; color: #8f8c85">Saved · version 1 · <a href="#" style="color: #a6a39b; text-decoration: underline">History</a></span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn btn-primary">Save persona</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1040}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
const accent = this.props.accent ?? '#86b5a0';
|
||||
const list = [
|
||||
['archie', 'You are Archie, a capable coding and project assistant. Be direct without being brusque…', true],
|
||||
['helpful', 'You are a helpful, friendly AI assistant.', false],
|
||||
['concise', 'You are a concise assistant. Keep responses brief and to the point.', false],
|
||||
['technical', 'You are a technical expert. Provide detailed, accurate technical information.', false],
|
||||
['creative', 'You are a creative assistant. Think outside the box and offer innovative solutions.', false],
|
||||
['teacher', 'You are a patient teacher. Explain concepts clearly with examples.', false]
|
||||
];
|
||||
return {
|
||||
accent,
|
||||
personas: list.map(([name, prompt, isDefault], i) => ({
|
||||
name, prompt, isDefault,
|
||||
bg: i === 0 ? '#1e2023' : 'transparent',
|
||||
shadow: i === 0 ? 'inset 2px 0 0 ' + accent : 'none'
|
||||
}))
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,155 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – tools and MCP</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #232529}
|
||||
.card-b{padding:20px;display:flex;flex-direction:column;gap:18px}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block;flex-shrink:0}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Tasks</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Workflows</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">Settings</a>
|
||||
</nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b; padding: 6px 10px; border: 1px solid #2a2c30; border-radius: 999px">
|
||||
<span style="width: 7px; height: 7px; border-radius: 50%; background: {{accent}}"></span>
|
||||
Connected · v1
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 232px; flex-shrink: 0; box-sizing: border-box; padding: 24px 12px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas</a>
|
||||
<a class="nav-item" href="#">Schedules</a>
|
||||
<a class="nav-item" href="#">Scheduling policy</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#">Channels</a>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 {{accent}}">Tools & MCP</a>
|
||||
<a class="nav-item" href="#">Plugins</a>
|
||||
<div style="font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8f8c85; padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#">History</a>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; padding: 36px 48px; overflow: hidden">
|
||||
<div style="display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Tools & MCP</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">External tools, model providers and fetch limits available to agents.</p>
|
||||
</div>
|
||||
<button class="btn btn-primary"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>Add MCP server</button>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px">
|
||||
|
||||
<section class="card" style="grid-column: span 2">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><rect x="3" y="4" width="18" height="6" rx="1"></rect><rect x="3" y="14" width="18" height="6" rx="1"></rect><path d="M7 7h.01M7 17h.01"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">MCP servers</div><div class="hint">Model Context Protocol servers agents can call.</div></div>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 20px; padding: 28px 20px">
|
||||
<div style="flex-grow: 1">
|
||||
<div style="font-size: 14px; color: #e8e6e1">No MCP servers yet</div>
|
||||
<div class="hint" style="margin-top: 4px">Add a stdio command or an HTTP endpoint. Agents see its tools on next restart.</div>
|
||||
</div>
|
||||
<button class="btn">stdio command</button>
|
||||
<button class="btn">HTTP / SSE endpoint</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center; font: 600 13px 'IBM Plex Mono', monospace; color: #a6a39b">Mx</div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">MiniMax</div><div class="hint">Model provider</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b">Enabled<span class="sw" style="background: {{accent}}"><i style="right: 2px; background: #121314"></i></span></label>
|
||||
</div>
|
||||
<div class="card-b">
|
||||
<div class="field">
|
||||
<span class="lbl">API key</span>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; background: #121314">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span style="font: 12px 'IBM Plex Mono', monospace; color: #8f8c85">bws</span>
|
||||
<span style="color: #4a4c50">/</span>
|
||||
<span style="font: 13px 'IBM Plex Mono', monospace">MINIMAX_API_KEY</span>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn" style="height: 28px; padding: 0 10px; font-size: 12px; background: transparent">Change</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 6px; font-size: 12px; color: {{accent}}"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="m5 12 5 5 9-10"></path></svg>Credential resolved by Archie</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #1e2023; display: flex; align-items: center; justify-content: center"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">Web fetch</div><div class="hint">Let agents download pages and files</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 12px; color: #a6a39b">Enabled<span class="sw" style="background: {{accent}}"><i style="right: 2px; background: #121314"></i></span></label>
|
||||
</div>
|
||||
<div class="card-b">
|
||||
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px">
|
||||
<div class="field"><label class="lbl" for="mb">Max download</label><div style="display: flex"><input id="mb" class="inp" value="2" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85">MB</span></div></div>
|
||||
<div class="field"><label class="lbl" for="to">Timeout</label><div style="display: flex"><input id="to" class="inp" value="30" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85">sec</span></div></div>
|
||||
</div>
|
||||
<label style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #2a2c30; border-radius: 8px">
|
||||
<span class="sw" style="background: #2e3034; margin-top: 2px"><i style="left: 2px; background: #8f8c85"></i></span>
|
||||
<span><span class="lbl">Allow private networks</span><span class="hint" style="display: block">Off: requests to 10.x, 192.168.x and localhost are blocked.</span></span>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card" style="grid-column: span 2">
|
||||
<div class="card-h">
|
||||
<div style="flex-grow: 1"><div class="lbl" style="font-size: 15px">Tool output policy</div><div class="hint">Large tool results are truncated or spilled to disk.</div></div>
|
||||
</div>
|
||||
<div class="card-b" style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px">
|
||||
<div class="field"><label class="lbl" for="mrc">Max result length</label><div style="display: flex"><input id="mrc" class="inp" value="50,000" style="border-radius: 6px 0 0 6px"><span style="display: flex; align-items: center; padding: 0 12px; border: 1px solid #2e3034; border-left: 0; border-radius: 0 6px 6px 0; font-size: 12px; color: #8f8c85; white-space: nowrap">chars</span></div><span class="hint">About 12k tokens per tool call.</span></div>
|
||||
<div class="field"><label class="lbl" for="spill">Spill directory</label><input id="spill" class="inp" placeholder="Not set — results over the limit are truncated"><span class="hint">Full output is written here and the agent gets a path.</span></div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1080}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return { accent: this.props.accent ?? '#86b5a0' };
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,123 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – review changes</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.acc{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid #2a2c30;border-radius:10px;background:#16171a}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.sum{font:12px 'IBM Plex Mono',monospace;color:#8f8c85}
|
||||
.field{display:flex;flex-direction:column;gap:6px}
|
||||
.chev{color:#8f8c85}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1080px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden; position: relative">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>
|
||||
Archie
|
||||
</div>
|
||||
<nav style="display: flex; gap: 4px; font-size: 13px">
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Dashboard</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Work</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #a6a39b">Events</a>
|
||||
<a href="#" style="padding: 8px 12px; color: #e8e6e1; background: #1e2023; border-radius: 6px">System</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main style="width: 880px; padding: 36px 0 0 64px; display: flex; flex-direction: column; gap: 12px">
|
||||
<h1 style="margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Advanced settings</h1>
|
||||
<p style="margin: 0 0 16px; font-size: 14px; color: #a6a39b">Collapsed sections show their current values at a glance.</p>
|
||||
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Personas</span><span class="sum" style="flex-grow: 1">6 personas · default archie</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Schedules</span><span class="sum" style="flex-grow: 1">none</span></div>
|
||||
<div class="acc" style="border-color: #3a3f3c"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Scheduling policy</span><span class="sum" style="flex-grow: 1">trigger assignee · 3 retries · poll 30s</span><span style="font-size: 11px; color: {{accent}}">1 edited</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Tools & MCP</span><span class="sum" style="flex-grow: 1">0 MCP · MiniMax on · web fetch on</span></div>
|
||||
<div class="acc"><svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m9 6 6 6-6 6"></path></svg><span class="lbl" style="width: 180px">Plugins</span><span class="sum" style="flex-grow: 1">all directories default</span></div>
|
||||
|
||||
<section style="border: 1px solid #3a3f3c; border-radius: 10px; background: #16171a">
|
||||
<div style="display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #232529">
|
||||
<svg class="chev" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m6 9 6 6 6-6"></path></svg>
|
||||
<span class="lbl" style="flex-grow: 1">Container runtime</span>
|
||||
<span style="font-size: 11px; color: {{accent}}">2 edited</span>
|
||||
</div>
|
||||
<div style="padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px">
|
||||
<div class="field" style="grid-column: span 2"><label class="lbl" for="img">Image</label><input id="img" class="inp" value="ghcr.io/samcharles93/archie-agent:latest"></div>
|
||||
<div class="field"><label class="lbl" for="mc">Max concurrency</label><input id="mc" class="inp" value="6" style="border-color: {{accent}}"></div>
|
||||
<div class="field"><label class="lbl" for="mu">Max uptime</label><input id="mu" class="inp" value="2h" style="border-color: {{accent}}"></div>
|
||||
<div class="field"><label class="lbl" for="net">Network</label><input id="net" class="inp" value="archie-core_default"></div>
|
||||
<div class="field"><label class="lbl" for="pp">Pull policy</label><select id="pp" class="inp" style="font-family: 'IBM Plex Sans', sans-serif"><option>If missing</option><option>Always</option><option>Never</option></select></div>
|
||||
<div class="field"><label class="lbl" for="vt">Volume TTL</label><input id="vt" class="inp" value="72h"></div>
|
||||
<div class="field"><label class="lbl" for="pr">Profiles</label><input id="pr" class="inp" placeholder="None"></div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<div style="position: absolute; left: 0; top: 56px; right: 0; bottom: 0; background: rgba(8,9,10,0.55)"></div>
|
||||
|
||||
<aside aria-label="Review changes" style="position: absolute; top: 56px; right: 0; bottom: 0; width: 480px; box-sizing: border-box; background: #17181a; border-left: 1px solid #2a2c30; display: flex; flex-direction: column; box-shadow: -24px 0 48px rgba(0,0,0,0.35)">
|
||||
<div style="display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid #2a2c30">
|
||||
<div style="flex-grow: 1"><h2 style="margin: 0; font-size: 17px; font-weight: 600">Review 3 changes</h2><div class="hint" style="margin-top: 2px">Saved together as config version 2</div></div>
|
||||
<button aria-label="Close" style="width: 36px; height: 36px; border: 0; background: transparent; color: #8f8c85; cursor: pointer"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 6l12 12M18 6 6 18"></path></svg></button>
|
||||
</div>
|
||||
<div style="flex-grow: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 20px">
|
||||
<div style="display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(217,164,91,0.08); border: 1px solid rgba(217,164,91,0.25); color: #e3c08f; font-size: 13px; line-height: 1.5">
|
||||
<svg style="flex-shrink: 0; margin-top: 2px" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-3-6.7L21 8"></path><path d="M21 3v5h-5"></path></svg>
|
||||
<span>All three need an archie-core restart. 2 agents are running; they'll finish before the restart.</span>
|
||||
</div>
|
||||
<sc-for list="{{groups}}" as="g" hint-placeholder-count="2">
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<div style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #8f8c85">{{g.section}}</div>
|
||||
<sc-for list="{{g.items}}" as="c" hint-placeholder-count="2">
|
||||
<div style="border: 1px solid #2a2c30; border-radius: 8px; overflow: hidden">
|
||||
<div style="display: flex; align-items: center; padding: 10px 14px; font-size: 13px; font-weight: 500"><span style="flex-grow: 1">{{c.field}}</span><a href="#" style="font-size: 12px; font-weight: 400; color: #8f8c85; text-decoration: underline">Revert</a></div>
|
||||
<div style="font: 12px/1.9 'IBM Plex Mono', monospace; border-top: 1px solid #232529">
|
||||
<div style="padding: 0 14px; background: rgba(217,119,107,0.08); color: #e0a39a">− {{c.from}}</div>
|
||||
<div style="padding: 0 14px; background: rgba(134,181,160,0.10); color: #a9d1bf">+ {{c.to}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</sc-for>
|
||||
</div>
|
||||
</sc-for>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid #2a2c30">
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard all</button>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<button class="btn">Save only</button>
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1080}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return {
|
||||
accent: this.props.accent ?? '#86b5a0',
|
||||
groups: [
|
||||
{ section: 'Scheduling policy', items: [{ field: 'Poll interval', from: '1m0s', to: '30s' }] },
|
||||
{ section: 'Container runtime', items: [
|
||||
{ field: 'Max concurrency', from: '4', to: '6' },
|
||||
{ field: 'Max uptime', from: '1h0m0s', to: '2h0m0s' }
|
||||
] }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,165 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Settings – channels</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
a{color:#e8e6e1;text-decoration:none}a:hover{color:#ffffff}
|
||||
.btn{height:36px;padding:0 14px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
|
||||
.btn-sm{height:30px;padding:0 10px;font-size:12px}
|
||||
.btn-ghost{background:transparent;border-color:transparent;color:#a6a39b}
|
||||
.card{border:1px solid #2a2c30;border-radius:10px;background:#16171a;display:flex;flex-direction:column;min-width:0}
|
||||
.card-h{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #232529}
|
||||
.hint{font-size:12px;color:#8f8c85;line-height:1.5}
|
||||
.lbl{font-size:13px;font-weight:500}
|
||||
.eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#8f8c85;font-weight:500}
|
||||
.mono{font-family:'IBM Plex Mono',monospace}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 9px;border-radius:999px;border:1px solid #2e3034;color:#a6a39b;white-space:nowrap}
|
||||
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}
|
||||
.nav a{padding:8px 12px;color:#a6a39b;border-radius:6px}
|
||||
.nav a.on{color:#e8e6e1;background:#1e2023}
|
||||
.nav-item{display:flex;align-items:center;gap:10px;height:34px;padding:0 12px;border-radius:6px;color:#a6a39b;font-size:13px}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.row{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;padding:16px 20px;border-top:1px solid #232529}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block;flex-shrink:0}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.icon{width:32px;height:32px;border-radius:8px;background:#1e2023;display:flex;align-items:center;justify-content:center;flex-shrink:0}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 1300px; box-sizing: border-box; display: flex; flex-direction: column; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; overflow: hidden">
|
||||
|
||||
<header style="height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid #232529; background: #151618">
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="{{accent}}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20 12 4l8 16"></path><path d="M8 14h8"></path></svg>Archie</div>
|
||||
<nav class="nav" style="display: flex; gap: 2px; font-size: 13px"><a href="#">Dashboard</a><a href="#">Tasks</a><a href="#">Workflows</a><a href="#">Events</a><a href="#" class="on">Settings</a></nav>
|
||||
<div style="flex-grow: 1"></div>
|
||||
<label style="display: flex; align-items: center; gap: 8px; height: 34px; width: 220px; padding: 0 12px; box-sizing: border-box; border: 1px solid #2a2c30; border-radius: 6px; color: #8f8c85; font-size: 13px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="7"></circle><path d="m20 20-3.5-3.5"></path></svg><input aria-label="Jump to" placeholder="Jump to…" style="background: transparent; border: 0; outline: none; color: #e8e6e1; font: inherit; width: 100%"><span class="mono" style="font-size: 11px; padding: 1px 5px; border: 1px solid #2e3034; border-radius: 4px">⌘K</span></label>
|
||||
<button class="btn btn-sm"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"></path></svg>New task</button>
|
||||
<span class="pill"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span aria-label="Account" style="width: 28px; height: 28px; border-radius: 50%; background: #26282c; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #a6a39b">A</span>
|
||||
</header>
|
||||
|
||||
<div style="display: flex; flex-grow: 1; min-height: 0">
|
||||
<aside style="width: 248px; flex-shrink: 0; box-sizing: border-box; padding: 24px 14px; border-right: 1px solid #232529; display: flex; flex-direction: column; gap: 2px">
|
||||
<div class="eyebrow" style="padding: 0 12px 8px">Agents</div>
|
||||
<a class="nav-item" href="#">Personas</a><a class="nav-item" href="#">Schedules</a><a class="nav-item" href="#">Scheduling policy</a>
|
||||
<div class="eyebrow" style="padding: 18px 12px 8px">Integrations</div>
|
||||
<a class="nav-item" href="#" style="background: #1e2023; color: #e8e6e1; box-shadow: inset 2px 0 0 {{accent}}">Channels<span class="dot" style="margin-left: auto; background: {{accent}}" title="1 running"></span></a>
|
||||
<a class="nav-item" href="#">Tools & MCP</a><a class="nav-item" href="#">Plugins</a>
|
||||
<div class="eyebrow" style="padding: 18px 12px 8px">Runtime</div>
|
||||
<a class="nav-item" href="#">Container runtime</a>
|
||||
<div style="height: 1px; background: #232529; margin: 16px 12px"></div>
|
||||
<a class="nav-item" href="#"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></svg>History</a>
|
||||
</aside>
|
||||
|
||||
<main style="flex-grow: 1; padding: 36px 56px; display: flex; flex-direction: column; gap: 24px; min-width: 0">
|
||||
<div style="display: flex; align-items: flex-start; gap: 16px; max-width: 980px">
|
||||
<div style="flex-grow: 1">
|
||||
<h1 style="margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em">Channels</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Where you talk to Archie, and how chat sessions behave.</p>
|
||||
</div>
|
||||
<span class="pill" style="color: #d9a45b; border-color: rgba(217,164,91,.3); background: rgba(217,164,91,.08)">Applies after restart</span>
|
||||
</div>
|
||||
|
||||
<div style="max-width: 980px; display: flex; flex-direction: column; gap: 16px">
|
||||
<section class="card">
|
||||
<div class="card-h">
|
||||
<div class="icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#a6a39b" stroke-width="2"><path d="m22 3-9.5 18-2.5-8-8-2.5L22 3Z"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div style="font-size: 15px; font-weight: 500">Telegram</div><div class="hint">Talk to Archie and approve its work from your phone.</div></div>
|
||||
<span class="pill" style="color: {{accent}}; border-color: {{accent}}"><span class="dot" style="background: {{accent}}"></span>Running</span>
|
||||
</div>
|
||||
<div class="row" style="border-top: 0">
|
||||
<div><div class="lbl">Bot token</div><div class="hint">Secret reference for the Telegram bot.</div></div>
|
||||
<div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px; background: #121314">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span class="mono" style="font-size: 12px; color: #8f8c85">env</span><span style="color: #4a4c50">/</span><span class="mono" style="font-size: 13px">HEYARCHIE_TELEGRAM_BOT_TOKEN</span>
|
||||
<div style="flex-grow: 1"></div><button class="btn btn-sm" style="height: 26px; background: transparent">Change</button>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 6px; font-size: 12px; color: {{accent}}; margin-top: 6px"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2"><path d="m5 12 5 5 9-10"></path></svg>Credential resolved by Archie</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Allowed users</div><div class="hint">Telegram user IDs that may talk to Archie. Everyone else is ignored.</div></div>
|
||||
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px; border: 1px solid #2e3034; border-radius: 6px; background: #121314; min-height: 38px; box-sizing: border-box">
|
||||
<span style="display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 4px; background: #1e2023; font: 12px 'IBM Plex Mono', monospace">1312197967<button aria-label="Remove 1312197967" style="width: 20px; height: 20px; border: 0; background: transparent; color: #8f8c85; cursor: pointer">×</button></span>
|
||||
<input aria-label="Add user ID" placeholder="Add user ID…" style="flex-grow: 1; min-width: 140px; background: transparent; border: 0; outline: none; color: #e8e6e1; font: 12px 'IBM Plex Mono', monospace">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<sc-for list="{{inactive}}" as="c" hint-placeholder-count="2">
|
||||
<section class="card" style="flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px">
|
||||
<div class="icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><path d="{{c.icon}}"></path></svg></div>
|
||||
<div style="flex-grow: 1"><div style="font-size: 15px; font-weight: 500">{{c.name}}</div><div class="hint">{{c.sub}}</div></div>
|
||||
<span class="pill">Not set up</span>
|
||||
<button class="btn btn-sm">Set up</button>
|
||||
</section>
|
||||
</sc-for>
|
||||
|
||||
<div class="eyebrow" style="margin-top: 16px">Chat session defaults · all channels</div>
|
||||
<section class="card">
|
||||
<div class="row" style="border-top: 0">
|
||||
<div><label class="lbl" for="ws">Workspace</label><div class="hint">Directory chat sessions start in.</div></div>
|
||||
<input id="ws" class="inp" value="/home/sam">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Filesystem access</div><div class="hint">Outside the workspace.</div></div>
|
||||
<div style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid rgba(217,119,107,.35); background: rgba(217,119,107,.06); border-radius: 8px">
|
||||
<span class="sw" style="background: #d9776b; margin-top: 2px"><i style="right: 2px; background: #121314"></i></span>
|
||||
<span><span class="lbl">Unrestricted filesystem</span><span class="hint" style="display: block; color: #e0a39a">On: agents can read and write anywhere this user can.</span></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Show tool calls</div><div class="hint">Post each tool call into the chat.</div></div>
|
||||
<label style="display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a6a39b"><span class="sw" style="background: {{accent}}"><i style="right: 2px; background: #121314"></i></span>On</label>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="ms">Max steps</label><div class="hint">Per chat turn. 0 = no limit.</div></div>
|
||||
<input id="ms" class="inp" value="0" style="width: 120px">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="lbl">Rate limit</div><div class="hint">Off while either value is 0.</div></div>
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a6a39b"><input aria-label="Max requests" class="inp" value="0" style="width: 90px"> requests per <input aria-label="Window" class="inp" value="0" style="width: 80px"><select aria-label="Window unit" class="inp" style="width: 110px; font-family: 'IBM Plex Sans', sans-serif"><option>minutes</option></select></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="md">Models</label><div class="hint">Models chat sessions may use.</div></div>
|
||||
<input id="md" class="inp" placeholder="Default">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><label class="lbl" for="op">Operator</label><div class="hint">Who Archie treats as its operator.</div></div>
|
||||
<input id="op" class="inp" placeholder="Not set">
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div style="display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8f8c85">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></svg>
|
||||
Version 1 · 11 fields set by <span class="mono">system:migration</span> 8 hrs ago · <a href="#" style="color: #a6a39b; text-decoration: underline">View in History</a>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":1300}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
return {
|
||||
accent: this.props.accent ?? '#86b5a0',
|
||||
inactive: [
|
||||
{ name: 'Email', sub: 'Listen for mail and relay replies.', icon: 'M3 6h18v12H3zM3 6l9 7 9-7' },
|
||||
{ name: 'Webhook', sub: 'Deliver agent output to a URL, with a signing secret and template.', icon: 'M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1' }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,120 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Theme and components</title>
|
||||
<script src="./support.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<x-dc>
|
||||
<helmet>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
body{margin:0;background:#121314}
|
||||
.inp{box-sizing:border-box;height:36px;padding:0 12px;background:#121314;border:1px solid #2e3034;border-radius:6px;color:#e8e6e1;font:400 13px 'IBM Plex Mono',monospace;outline:none;width:100%}
|
||||
.btn{height:36px;padding:0 16px;border-radius:6px;font:500 13px 'IBM Plex Sans',sans-serif;cursor:pointer;border:1px solid #34373c;background:#1e2023;color:#e8e6e1;display:inline-flex;align-items:center;gap:8px}
|
||||
.btn-primary{background:var(--accent);border-color:var(--accent);color:#101412}
|
||||
.h{font-size:11px;text-transform:uppercase;letter-spacing:0.08em;color:#8f8c85;margin:0 0 14px;font-weight:500}
|
||||
.panel{border:1px solid #2a2c30;border-radius:10px;background:#16171a;padding:24px}
|
||||
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid}
|
||||
.dot{width:7px;height:7px;border-radius:50%}
|
||||
.sw{width:36px;height:20px;border-radius:999px;position:relative;display:inline-block}
|
||||
.sw i{position:absolute;top:2px;width:16px;height:16px;border-radius:50%}
|
||||
.lbl{font-size:13px;font-weight:500;color:#e8e6e1}
|
||||
.hint{font-size:12px;color:#8f8c85}
|
||||
</style>
|
||||
</helmet>
|
||||
<div style="--accent: {{accent}}; width: 1440px; height: 980px; box-sizing: border-box; padding: 48px 56px; background: #121314; color: #e8e6e1; font-family: 'IBM Plex Sans', sans-serif; display: flex; flex-direction: column; gap: 24px">
|
||||
<div>
|
||||
<h1 style="margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em">Graphite theme</h1>
|
||||
<p style="margin: 6px 0 0; font-size: 14px; color: #a6a39b">Warm neutral greys carry the page; one low-chroma accent marks the active item, focus and primary action.</p>
|
||||
</div>
|
||||
|
||||
<div style="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px">
|
||||
|
||||
<section class="panel">
|
||||
<h2 class="h">Palette</h2>
|
||||
<div style="display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px">
|
||||
<sc-for list="{{swatches}}" as="s" hint-placeholder-count="8">
|
||||
<div style="display: flex; flex-direction: column; gap: 6px">
|
||||
<div style="height: 44px; border-radius: 6px; background: {{s.hex}}; border: 1px solid #2e3034"></div>
|
||||
<span style="font-size: 12px">{{s.name}}</span>
|
||||
<span style="font: 11px 'IBM Plex Mono', monospace; color: #8f8c85">{{s.hex}}</span>
|
||||
</div>
|
||||
</sc-for>
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Type</h2>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px">
|
||||
<span style="font-size: 24px; font-weight: 600">IBM Plex Sans 600 · 24</span>
|
||||
<span style="font-size: 14px; color: #a6a39b">IBM Plex Sans 400 · 14 body</span>
|
||||
<span style="font: 13px 'IBM Plex Mono', monospace">IBM Plex Mono · values, keys, durations</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel">
|
||||
<h2 class="h">Buttons</h2>
|
||||
<div style="display: flex; gap: 10px; flex-wrap: wrap">
|
||||
<button class="btn btn-primary">Save & restart</button>
|
||||
<button class="btn">Secondary</button>
|
||||
<button class="btn" style="background: transparent; border-color: transparent; color: #a6a39b">Discard</button>
|
||||
<button class="btn" style="background: transparent; color: #d9776b; border-color: #3a2a28">Delete</button>
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Status</h2>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap">
|
||||
<span class="pill" style="color: #a6a39b; border-color: #2e3034"><span class="dot" style="background: {{accent}}"></span>Connected</span>
|
||||
<span class="pill" style="color: #a6a39b; border-color: #2e3034"><span class="dot" style="background: #d9a45b"></span>Connecting…</span>
|
||||
<span class="pill" style="color: #d9a45b; border-color: rgba(217,164,91,0.3); background: rgba(217,164,91,0.08)">Applies after restart</span>
|
||||
<span class="pill" style="color: {{accent}}; border-color: {{accent}}">2 edited</span>
|
||||
<span class="pill" style="color: #e0a39a; border-color: rgba(217,119,107,0.35); background: rgba(217,119,107,0.08)">Invalid duration</span>
|
||||
</div>
|
||||
<h2 class="h" style="margin-top: 24px">Toggles & choice</h2>
|
||||
<div style="display: flex; align-items: center; gap: 20px">
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px"><span class="sw" style="background: {{accent}}"><i style="right: 2px; background: #121314"></i></span>On</label>
|
||||
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a6a39b"><span class="sw" style="background: #2e3034"><i style="left: 2px; background: #8f8c85"></i></span>Off</label>
|
||||
<div style="display: inline-flex; padding: 3px; background: #121314; border: 1px solid #2e3034; border-radius: 8px">
|
||||
<button style="height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: #26282c; color: #e8e6e1; font: 500 12px 'IBM Plex Sans', sans-serif">Assignee</button>
|
||||
<button style="height: 28px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: #8f8c85; font: 500 12px 'IBM Plex Sans', sans-serif">Label</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel" style="display: flex; flex-direction: column; gap: 16px">
|
||||
<h2 class="h" style="margin: 0">Inputs</h2>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c1">Text</label><input id="c1" class="inp" value="archie-core_default"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c2">Focused</label><input id="c2" class="inp" value="ghcr.io/…/archie-agent:latest" style="border-color: {{accent}}; box-shadow: 0 0 0 3px rgba(134,181,160,0.15)"></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c3">Duration with unit</label>
|
||||
<div style="display: flex"><input id="c3" class="inp" value="72" style="border-radius: 6px 0 0 6px"><select aria-label="Unit" class="inp" style="width: 110px; border-radius: 0 6px 6px 0; border-left: 0; font-family: 'IBM Plex Sans', sans-serif"><option>hours</option></select></div></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><label class="lbl" for="c4">Error</label><input id="c4" class="inp" value="1hr" style="border-color: #d9776b"><span style="font-size: 12px; color: #e0a39a">Use a number and a unit, e.g. 1h or 90m</span></div>
|
||||
<div style="display: flex; flex-direction: column; gap: 6px"><span class="lbl">Secret reference</span>
|
||||
<div style="display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid #2e3034; border-radius: 6px">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#8f8c85" stroke-width="2"><rect x="4" y="10" width="16" height="10" rx="2"></rect><path d="M8 10V7a4 4 0 0 1 8 0v3"></path></svg>
|
||||
<span style="font: 12px 'IBM Plex Mono', monospace; color: #8f8c85">bws /</span><span style="font: 13px 'IBM Plex Mono', monospace">MINIMAX_API_KEY</span>
|
||||
<span style="margin-left: auto; font-size: 12px; color: {{accent}}">resolved</span>
|
||||
</div></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</x-dc>
|
||||
<script type="text/x-dc" data-dc-script data-props='{"accent":{"editor":"color","default":"#86b5a0","options":["#86b5a0","#8aa4c2","#d4a373","#a397c9"]},"$preview":{"width":1440,"height":980}}'>
|
||||
class Component extends DCLogic {
|
||||
renderVals() {
|
||||
const accent = this.props.accent ?? '#86b5a0';
|
||||
return {
|
||||
accent,
|
||||
swatches: [
|
||||
{ name: 'Ground', hex: '#121314' },
|
||||
{ name: 'Surface', hex: '#16171a' },
|
||||
{ name: 'Raised', hex: '#1e2023' },
|
||||
{ name: 'Border', hex: '#2a2c30' },
|
||||
{ name: 'Text', hex: '#e8e6e1' },
|
||||
{ name: 'Muted', hex: '#8f8c85' },
|
||||
{ name: 'Accent', hex: accent },
|
||||
{ name: 'Warn', hex: '#d9a45b' }
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Archie "Graphite" theme tokens.
|
||||
* Warm neutral greys carry the page; ONE low-chroma accent marks the active
|
||||
* nav item, focus rings, "edited" markers and the primary action. Nothing else
|
||||
* uses the accent. Map these onto whatever styling system the app already uses
|
||||
* (Tailwind theme, CSS modules, styled-components…) rather than adding a
|
||||
* parallel system.
|
||||
*/
|
||||
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap");
|
||||
|
||||
:root {
|
||||
/* Surfaces (darkest → lightest) */
|
||||
--bg: #121314; /* page ground, input fill */
|
||||
--bg-header: #151618; /* app top bar */
|
||||
--surface: #16171a; /* cards, panels, list containers */
|
||||
--surface-2: #17181a; /* sticky save bar, drawer, table header */
|
||||
--raised: #1e2023; /* active nav item, secondary button, hover */
|
||||
--raised-2: #26282c; /* selected segment in a segmented control */
|
||||
|
||||
/* Lines */
|
||||
--border-subtle: #202225; /* row dividers inside tables */
|
||||
--border: #232529; /* section dividers, header/sidebar edges */
|
||||
--border-card: #2a2c30; /* card and panel outlines */
|
||||
--border-input: #2e3034; /* inputs, toggles off-track */
|
||||
--border-button: #34373c; /* secondary button outline */
|
||||
--border-edited: #3a3f3c; /* outline of a section with unsaved edits */
|
||||
|
||||
/* Text */
|
||||
--text: #e8e6e1; /* primary */
|
||||
--text-2: #a6a39b; /* secondary, nav items, descriptions of sections */
|
||||
--text-3: #8f8c85; /* hints, captions, placeholders, table headers (≥4.5:1 on --surface) */
|
||||
--text-on-accent:#101412; /* text on accent-filled buttons */
|
||||
|
||||
/* Accent — one at a time. Default sage; alternatives kept for a theme picker. */
|
||||
--accent: #86b5a0; /* sage (default) */
|
||||
--accent-ring: rgba(134, 181, 160, 0.15); /* focus halo */
|
||||
/* --accent: #8aa4c2; steel */
|
||||
/* --accent: #d4a373; sand */
|
||||
/* --accent: #a397c9; muted violet (closest to the old purple) */
|
||||
|
||||
/* Status */
|
||||
--warn: #d9a45b; /* "applies after restart", "connecting" dot */
|
||||
--warn-text: #e3c08f;
|
||||
--warn-bg: rgba(217, 164, 91, 0.08);
|
||||
--warn-border: rgba(217, 164, 91, 0.25);
|
||||
--danger: #d9776b; /* delete, invalid input border, dead state */
|
||||
--danger-text: #e0a39a;
|
||||
--danger-bg: rgba(217, 119, 107, 0.08);
|
||||
--danger-border: #3a2a28;
|
||||
--diff-add-bg: rgba(134, 181, 160, 0.10);
|
||||
--diff-add-text: #a9d1bf;
|
||||
--diff-del-bg: rgba(217, 119, 107, 0.08);
|
||||
--diff-del-text: #e0a39a;
|
||||
|
||||
/* Agent state colours (label table swatches, and anywhere states are shown) */
|
||||
--state-queued: #8f8c85;
|
||||
--state-working: #8aa4c2;
|
||||
--state-waiting: #d9a45b;
|
||||
--state-pr: #86b5a0;
|
||||
--state-parked: #6f6c66;
|
||||
--state-dead: #d9776b;
|
||||
|
||||
/* Type */
|
||||
--font-sans: "IBM Plex Sans", system-ui, sans-serif;
|
||||
--font-mono: "IBM Plex Mono", ui-monospace, monospace; /* ALL config values, keys, durations, image refs */
|
||||
--fs-page-title: 24px; /* weight 600, letter-spacing -0.01em */
|
||||
--fs-card-title: 15px; /* weight 500 */
|
||||
--fs-body: 14px;
|
||||
--fs-control: 13px; /* inputs, buttons, nav, labels (label weight 500) */
|
||||
--fs-hint: 12px; /* line-height 1.5 */
|
||||
--fs-eyebrow: 11px; /* uppercase, letter-spacing 0.06–0.08em, --text-3 */
|
||||
|
||||
/* Shape & spacing */
|
||||
--radius-sm: 4px; /* kbd hints */
|
||||
--radius: 6px; /* inputs, buttons, nav items */
|
||||
--radius-md: 8px; /* segmented control, callouts, diff cards */
|
||||
--radius-lg: 10px; /* cards, panels */
|
||||
--radius-pill: 999px;
|
||||
--control-h: 36px; /* inputs, buttons, nav items */
|
||||
--header-h: 56px;
|
||||
--sidebar-w: 264px;
|
||||
--content-max: 920px;
|
||||
--row-label-w: 280px; /* left column of a setting row */
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "Archie Graphite",
|
||||
"color": {
|
||||
"bg": "#121314",
|
||||
"bgHeader": "#151618",
|
||||
"surface": "#16171a",
|
||||
"surface2": "#17181a",
|
||||
"raised": "#1e2023",
|
||||
"raised2": "#26282c",
|
||||
"borderSubtle": "#202225",
|
||||
"border": "#232529",
|
||||
"borderCard": "#2a2c30",
|
||||
"borderInput": "#2e3034",
|
||||
"borderButton": "#34373c",
|
||||
"borderEdited": "#3a3f3c",
|
||||
"text": "#e8e6e1",
|
||||
"text2": "#a6a39b",
|
||||
"text3": "#8f8c85",
|
||||
"textOnAccent": "#101412",
|
||||
"accent": "#86b5a0",
|
||||
"accentRing": "rgba(134,181,160,0.15)",
|
||||
"accentAlternatives": { "sage": "#86b5a0", "steel": "#8aa4c2", "sand": "#d4a373", "mutedViolet": "#a397c9" },
|
||||
"warn": "#d9a45b",
|
||||
"warnText": "#e3c08f",
|
||||
"warnBg": "rgba(217,164,91,0.08)",
|
||||
"warnBorder": "rgba(217,164,91,0.25)",
|
||||
"danger": "#d9776b",
|
||||
"dangerText": "#e0a39a",
|
||||
"dangerBg": "rgba(217,119,107,0.08)",
|
||||
"dangerBorder": "#3a2a28",
|
||||
"diffAddBg": "rgba(134,181,160,0.10)",
|
||||
"diffAddText": "#a9d1bf",
|
||||
"diffDelBg": "rgba(217,119,107,0.08)",
|
||||
"diffDelText": "#e0a39a",
|
||||
"state": { "queued": "#8f8c85", "working": "#8aa4c2", "waiting": "#d9a45b", "pr": "#86b5a0", "parked": "#6f6c66", "dead": "#d9776b" }
|
||||
},
|
||||
"font": {
|
||||
"sans": "\"IBM Plex Sans\", system-ui, sans-serif",
|
||||
"mono": "\"IBM Plex Mono\", ui-monospace, monospace",
|
||||
"size": { "pageTitle": 24, "cardTitle": 15, "body": 14, "control": 13, "hint": 12, "eyebrow": 11 },
|
||||
"weight": { "regular": 400, "medium": 500, "semibold": 600 }
|
||||
},
|
||||
"radius": { "sm": 4, "base": 6, "md": 8, "lg": 10, "pill": 999 },
|
||||
"size": { "controlHeight": 36, "headerHeight": 56, "sidebarWidth": 264, "contentMax": 920, "rowLabelWidth": 280 }
|
||||
}
|
||||
@@ -1,149 +0,0 @@
|
||||
# Sam's message, verbatim (2026-09-05)
|
||||
|
||||
Source: chat message pasting an AWX forum post (AWX modernisation series,
|
||||
"Refactoring AWX into a Pluggable, Service-Oriented Architecture") plus a
|
||||
terminal transcript and a follow-up message including Ansible's
|
||||
`ansible/playbook/task.py`. Preserved verbatim below for later reference.
|
||||
Image attachment (`AAP Pluggable Architecture` diagram) is described, not
|
||||
reproduced, since this file is text-only.
|
||||
|
||||
---
|
||||
|
||||
[01:09:53] sam@helix /work/clones
|
||||
|
||||
> git clone https://github.com/ansible/ansible.git
|
||||
> Cloning into 'ansible'...
|
||||
> remote: Enumerating objects: 644471, done.
|
||||
> remote: Counting objects: 100% (21/21), done.
|
||||
> remote: Compressing objects: 100% (21/21), done.
|
||||
> remote: Total 644471 (delta 5), reused 2 (delta 0), pack-reused 644450 (from 3)
|
||||
> Receiving objects: 100% (644471/644471), 251.86 MiB | 9.60 MiB/s, done.
|
||||
> Resolving deltas: 100% (427812/427812), done.
|
||||
> [01:12:50] sam@helix /work/clones
|
||||
> git clone https://github.com/ansible/awx.git
|
||||
> Cloning into 'awx'...
|
||||
> remote: Enumerating objects: 331428, done.
|
||||
> remote: Counting objects: 100% (399/399), done.
|
||||
> remote: Compressing objects: 100% (256/256), done.
|
||||
> remote: Total 331428 (delta 259), reused 153 (delta 143), pack-reused 331029 (from 3)
|
||||
> Receiving objects: 100% (331428/331428), 346.81 MiB | 12.94 MiB/s, done.
|
||||
> Resolving deltas: 100% (254095/254095), done.
|
||||
> [01:14:59] sam@helix /work/clones
|
||||
|
||||
---
|
||||
|
||||
[Image #2]
|
||||
|
||||
Hi folks,
|
||||
|
||||
In our previous post, we discussed the upcoming changes we're making to the AWX project. Today, we'd like to dive deeper into one of the most significant changes: refactoring AWX into a pluggable, service-oriented architecture.
|
||||
Current State of AWX
|
||||
|
||||
AWX is currently structured as a monolithic Django application. It consists of several entry points, each running as individual processes, including our API, Job Dispatcher, Event Processor, and Websocket subsystem. Alongside these, AWX relies on various ancillary processes such as Redis, Rsyslog, Receptor, Nginx, Uwsgi, and Daphne.
|
||||
Challenges with the Current Architecture
|
||||
|
||||
Over time, it has become increasingly challenging to implement changes due to the large, self-contained nature of the application. This monolithic structure has not only slowed down our development process but also made it difficult to ensure efficient code reuse across our other applications. Consequently, this impacts both our development efficiency and the ability to quickly iterate on features and fixes. As we continue to extend capabilities across Ansible Automation Platform we cannot afford these challenges and maintain upstream projects the way they are currently structured.
|
||||
Proposed Changes
|
||||
|
||||
To address these challenges, we are beginning to transition AWX towards a more pluggable, service-oriented architecture. By breaking down the monolithic structure into smaller, modular services, we aim to enhance both flexibility and maintainability. This shift will enable us to make changes more swiftly and efficiently in AWX while also improving our ability to reuse code across various projects leveraged by Ansible Automation Platform.
|
||||
Implementation Plan
|
||||
|
||||
Our implementation plan involves several key steps:
|
||||
|
||||
Identifying Modular Services: We will start by identifying the core functionalities that can be extracted into individual plugins and/or services.
|
||||
Creating a Communication Framework: Establish a robust communication framework to ensure seamless interaction between these services.
|
||||
Gradual Transition: Implement the new architecture in phases to allow for continuous feedback and improvement.
|
||||
Community Collaboration: Engage with our community throughout the process to gather feedback and ensure the new architecture meets the needs of our users.
|
||||
|
||||
Future-Looking Architecture
|
||||
|
||||
1316×628 38.8 KB
|
||||
|
||||
Expected Outcomes
|
||||
|
||||
By refactoring AWX into a service-oriented architecture, we expect several positive outcomes:
|
||||
|
||||
Improved Flexibility: Easier to implement changes and add new features.
|
||||
Enhanced Maintainability: Simplified codebase with clear service boundaries.
|
||||
Better Code Reuse: More efficient reuse of code across different projects.
|
||||
Active Community Participation: Greater opportunity for community members to contribute and shape the project.
|
||||
|
||||
Call to Action
|
||||
|
||||
We invite feedback and collaboration with us on this significant transformation by replying to this forum post.
|
||||
|
||||
Join the discussions on our forum, share your thoughts, and help shape the future of awx .
|
||||
Conclusion
|
||||
|
||||
These architectural changes are a crucial step towards a more modern and scalable AWX. We look forward to your participation and support as we embark on this journey together.
|
||||
|
||||
Stay updated by joining The Forum, following the
|
||||
News & Announcements and
|
||||
awx tags.
|
||||
|
||||
Thank you for your continued support.
|
||||
Links in this AWX update series
|
||||
|
||||
Blog: Upcoming Changes to the AWX Project
|
||||
Streamlining AWX Releases
|
||||
Refactoring AWX into a Pluggable, Service-Oriented Architecture (this post)
|
||||
Upcoming changes to AWX Operator installation methods
|
||||
AWX UI and credential types transitioning to the new pluggable architecture
|
||||
AWX modernisation: Moving forward
|
||||
AWX modernisation: Ansible UI
|
||||
AWX modernisation: Ansible Jewel
|
||||
|
||||
Useful links
|
||||
|
||||
2024-05-30 Blog: Upcoming Changes to the AWX Project
|
||||
2024-07-01 Streamlining AWX Releases
|
||||
The Forum: AWX topics
|
||||
The Forum: Newsletter Category
|
||||
|
||||
---
|
||||
|
||||
Taking a look at this, How could we reframe ourselves to capture some of this market?
|
||||
|
||||
Archie is already a beast of a project, I think that it would be an excellent idea to think about cleaning up, simplifying, and unifying many of it's layers down to cleaner interfaces and even if it's starting at the most basic layers such as splitting the UI from the backend, turning the agent into a core runner, or even having 2 separate agent definitions, an AI agent and an agent runner. or. even better, an agent runner which utilises an open source project like Pi as the AI harness instead of having to code our own one.
|
||||
|
||||
I have Pi running now, with an immensely fast and capable model (deepseek-v4-flash-vision-exp) which is absolutely able to perform many actions at great speed, and that could assist us to getting this chunk of work done.
|
||||
|
||||
the idea of everything being pluggable services - making the entire solution modular, is exactly the goal I've had from the start. and it's already heading that way, but it's missing some guidance, assistance and care. I believe that a multi-agent system could help me get there, where I talk to an agent like claude, which spawns subagents to start implementation in isolation, and another agent monitors the work, assists, and carefully merges as the migration is in progress.
|
||||
|
||||
[01:23:10] sam@helix /work/apps/archie-core
|
||||
|
||||
> tree
|
||||
> (directory tree of archie-core omitted here -- see repository working tree at
|
||||
> the time of writing for the full listing; top-level shape was: AGENTS.md,
|
||||
> ARCHITECTURE.md, cmd/{archie-agent,archied,archie-playbooks}, deployments/,
|
||||
> docs/{architecture,archive,data,guides,prds,public}, examples/, extras/,
|
||||
> internal/{agentexec,app,channels,config,container,daemon,domain,eventbus,
|
||||
> events,forge,forgerpc,gate,gateway,indexing,infrastructure,installtype,
|
||||
> logging,memory,natsrpc,pairing,plugin,ratelimit,releaseannounce,
|
||||
> releaseupdate,secret,skill,skillscript,storage,store,storerpc,taskrun,
|
||||
> taskstate,tools,webhookguard,webui,worktree,worktreerpc,yaegiutil}, scripts/,
|
||||
> tools/, ui/{dist,src,test})
|
||||
> [01:23:12] sam@helix /work/apps/archie-core
|
||||
|
||||
---
|
||||
|
||||
One other thing I've grabbed inspiration from the Ansible project and I'm hoping to splice in - is the task.py (and likely more items) definitions; I think that being able to use existing ansible playbooks (and eventually roles/etc) within archie, would be astoundingly benefitial for engagement.
|
||||
|
||||
(ansible/playbook/task.py, GPLv3, Michael DeHaan et al. -- full file pasted in
|
||||
chat; omitted here as reference-only source code, not reproduced verbatim in
|
||||
this repository. It defines Ansible's `Task` class: FieldAttribute-based
|
||||
declarative fields such as `args`, `action`, `loop`, `register`,
|
||||
`changed_when`/`failed_when`/`until`, `delay`/`poll`/`retries`,
|
||||
`loop_control`; `preprocess_data` which runs `ModuleArgsParser` to resolve the
|
||||
legacy free-form task shape into `(action, args, delegate_to)`; `post_validate`
|
||||
which templates fields through Jinja2 (`TemplateEngine`); parent-chain
|
||||
attribute inheritance (`_get_parent_attribute` walking up through Block /
|
||||
TaskInclude / Play); and `_resolve_conditional` for `when:` evaluation.)
|
||||
|
||||
---
|
||||
|
||||
Attached image: "AAP Pluggable Architecture" diagram -- a decomposition tree
|
||||
with "AWX Decomposition" as root, branching to: Credentials, Subscription/
|
||||
Billing, Auth (children: RBAC, SSO, Policy/ABAC), Communication (child:
|
||||
Inter Service, and Execution (mesh) linked back into Runtime), Telemetry,
|
||||
Inventory, Runtime (child: Scheduler), Content (child: Projects).
|
||||
@@ -1,127 +0,0 @@
|
||||
# Module reference: AWX decomposition / Ansible task model vs. Archie
|
||||
|
||||
Status: exploratory reference, not a design decision. Nothing here is
|
||||
authoritative -- `docs/architecture/` stays the source of truth. This exists
|
||||
so a later PRD (if one gets written) doesn't have to re-derive "what do we
|
||||
already have vs. what AWX/Ansible are describing." See
|
||||
[[2026-09-05-awx-service-decomposition-and-ansible-task-model]] for the
|
||||
source material this is built from.
|
||||
|
||||
Two follow-on artifacts extend this line of exploration:
|
||||
|
||||
- Two Archify diagrams contrasting current vs. an ideal service-oriented
|
||||
shape: `/work/artefacts/archie-core-current-state-archify.html` and
|
||||
`/work/artefacts/archie-core-ideal-state-archify.html`. The current-state
|
||||
diagram is grounded in verified coupling (webui's task-action path routes
|
||||
through its own HTTP handler in-process; direct `gateway.SessionStore` /
|
||||
`Router` / `TurnHistory` access; a shared `config.Holder`) -- not the
|
||||
"already split" claim this document's earlier draft mistakenly made.
|
||||
- [[service-discovery-research-2026-09-05]] -- externally researched
|
||||
comparison of service-discovery mechanisms for the ideal-state's "install
|
||||
a service, the fleet auto-aligns" requirement. Recommends Kubernetes-native
|
||||
discovery as primary (Helm chart + Operator on k3s / a real cluster) with
|
||||
NATS-based discovery (already a hard dependency) as the built-in fallback
|
||||
for no-K8s single-host installs, both behind one `ServiceRegistry`
|
||||
interface.
|
||||
|
||||
## Reading the two source ideas separately
|
||||
|
||||
The AWX post and the Ansible `Task` paste are two different asks and should
|
||||
stay two different tracks:
|
||||
|
||||
1. **AWX's decomposition tree** is an argument for splitting a monolith
|
||||
along service boundaries (Auth, Comms, Runtime, Content, ...) with a
|
||||
pluggable communication mesh between them. Archie's six-domain split
|
||||
(`docs/architecture/index.md`) already **is** that argument, applied
|
||||
earlier and at a different grain (domain boundaries in one Go module +
|
||||
NATS transport, not separate deployable services). The gap isn't "do we
|
||||
need boundaries," it's "are the boundaries clean and are they enforced."
|
||||
2. **Ansible's `Task`/module system** is a request for a _content_ format:
|
||||
let users write YAML tasks against a stable action vocabulary and have
|
||||
Archie interpret them, the way Ansible interprets `- name: ... action:
|
||||
module: args`. Archie has the skeleton of this already (EDA playbook
|
||||
engine, Module action position) but it's deliberately narrow today.
|
||||
|
||||
## AWX decomposition tree -> Archie's existing domains
|
||||
|
||||
| AWX node | Archie equivalent today | Location |
|
||||
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
||||
| Auth (RBAC / SSO / Policy-ABAC) | `internal/domain/binding` (task-to-identity/config binding) + `internal/policy` (cross-cutting, zero internal imports) + forge/channel auth (Telegram pairing, webhook HMAC) | `internal/domain/binding/`, `internal/policy/`, `internal/pairing/`, `internal/webhookguard/` |
|
||||
| Communication / Inter-Service | NATS (`ARCHIE_TASKS` JetStream work queue, core-NATS RPC via `_INBOX.*`) | `internal/infrastructure/eventbus/nats/`, `internal/natsrpc/`, `internal/eventbus/` (contract, zero internal imports) |
|
||||
| Execution (mesh) | Container pool running isolated agent worktrees over NATS, not a mesh of remote execution nodes (Ansible's Receptor equivalent doesn't exist -- Archie's "remote execution" is a Docker container, not a fleet) | `internal/container/pool.go`, `internal/agentexec/`, `internal/worktree/` |
|
||||
| Runtime / Scheduler | `internal/domain/scheduling` (ticker contract) + cron-driven work intake | `internal/domain/scheduling/`, `internal/infrastructure/cronstore/` |
|
||||
| Content / Projects | Nearest analogue is the **EDA playbook + module system** (below) plus `internal/skill` (skill catalogue) -- Archie has no "project" = git-checkout-of-automation-content concept the way AWX does | `internal/domain/eda/playbook/`, `internal/domain/eda/module/`, `internal/skill/` |
|
||||
| Telemetry | `internal/logging` (task sink, feed, registry) + `internal/events` | `internal/logging/`, `internal/events/` |
|
||||
| Inventory | No direct equivalent. Closest is forge-side repo/identity config (`[[identities]]`, `internal/forge`) -- Archie targets one identity acting across a small set of forge repos, not a dynamic inventory of managed hosts | `internal/forge/`, `internal/config/` |
|
||||
| Credentials | `internal/secret` (engine host, env/age/sops/vault engines) | `internal/secret/`, `internal/secret/enginehost/` |
|
||||
| Subscription/Billing | No equivalent -- Archie is self-hosted, single-tenant; this AWX node doesn't map to anything and shouldn't | -- |
|
||||
| UI split from backend | Already true: `internal/webui` (Go API server) serves a separately built SPA from `ui/dist` (Vite/React-ish, `ui/src/<feature>/`) over HTTP/SSE. There is no shared-process coupling to undo. | `internal/webui/`, `ui/src/` |
|
||||
|
||||
**Read on "reframe to capture market":** the honest gap next to AWX/AAP isn't
|
||||
domain boundaries -- Archie already has those, arguably cleaner (env-enforced
|
||||
gates, one dependency direction, contracts with zero internal imports). The
|
||||
gap is (a) no content/inventory layer letting non-programmers hand Archie
|
||||
declarative automation the way an Ansible playbook does, and (b) everything
|
||||
still ships as one Go binary + one container image, not independently
|
||||
deployable/upgradable services. (a) is the more differentiated, more
|
||||
buildable opportunity given a one-person team; (b) is expensive AWX-style
|
||||
service splitting with limited payoff at Archie's current scale and should
|
||||
not be pursued for its own sake.
|
||||
|
||||
## Ansible `Task` model -> Archie's EDA playbook/module system
|
||||
|
||||
Ansible's `task.py` is the runtime representation of one YAML task after
|
||||
`ModuleArgsParser` resolves the legacy free-form shape and `TemplateEngine`
|
||||
renders Jinja2. Archie's nearest shipped analogue is the EDA playbook engine,
|
||||
which is **intentionally much narrower right now**:
|
||||
|
||||
| Ansible concept | Archie's current shape | Gap / what porting the idea would mean |
|
||||
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `Task` (one step, `action` + `args`) | `playbook.Action` (`internal/domain/eda/playbook/playbook.go`) -- but **exactly one action per playbook, position must be `"workflow"`**, hard-rejected at load otherwise | Multi-action, multi-position playbooks are the literal ask ("use existing ansible playbooks... within archie") but are explicitly blocked today on unresolved execution-time gaps: mid-run failure semantics, idempotency for non-workflow actions (see the package doc comment and `docs/architecture/plugins-and-extensions.md`'s Event sources section). This is a known, named boundary, not an oversight. |
|
||||
| Module (`ansible.builtin.*`, arbitrary Python) | `module.Kind` registry, Yaegi-interpreted `.go` files against a generated per-kind symbol table (`internal/domain/eda/module/`) -- **one shipped kind: `log`** | Ansible modules are dynamically loaded from a huge ecosystem; Archie's Module position is closed-registry-of-named-kinds, each with its own hand-written contract package (`internal/domain/eda/module/<kind>`). Adding "run a shell command," "call a forge API," "send a channel message" module kinds is possible under the existing pattern but each is new work, not automatic from having the mechanism. |
|
||||
| `when:` conditional | `Action.When`, compiled CEL (`internal/domain/eda/expr`), not Jinja2 | Already decided: CEL over Jinja2 (open question 1 in the playbook engine PRD, resolved). Don't reopen. |
|
||||
| `register` / fact accumulation across tasks | Not present -- `DispatchInput.Event` is a flat map exposed to CEL, there's no cross-action result chaining because there's only one action | Needed before multi-action playbooks are meaningful; tracked implicitly by the same "unresolved execution-time gaps" blocker above. |
|
||||
| `loop` / `until`/`retries`/`delay` | Not present | Same -- follows from allowing more than one action per playbook. |
|
||||
| Field-attribute inheritance (task -> block -> play) | No block/parent chain -- a playbook is flat: one `Trigger` + one `Action` | Ansible's play/block/role hierarchy has no Archie counterpart yet; would only matter once multi-action/roles are in scope. |
|
||||
| Roles (reusable task bundles) | Nearest is `internal/skill` (skill catalogue, frontmatter, tool defs) -- conceptually closer to Claude Skills than Ansible roles | Not a role system; skills are agent-facing capability bundles, not declarative task sequences. |
|
||||
| Channel / Forge action positions | Named and designed but explicitly **not implemented** (`docs/architecture/plugins-and-extensions.md`: "Channel and Forge action positions are designed but not yet implemented," open investigation `archie-core-t2db.19`) | This is the direct next step toward "playbooks that do things," independent of the Ansible-compatibility idea. |
|
||||
|
||||
**What porting real Ansible playbooks would actually require**, in rough
|
||||
dependency order, if this becomes a real proposal later:
|
||||
|
||||
1. Lift the playbook engine's hard boundary: multi-action playbooks, which
|
||||
needs the mid-run failure/idempotency semantics the doc comment flags as
|
||||
the blocker today.
|
||||
2. A result-passing mechanism between actions (Ansible's `register`) --
|
||||
currently nothing carries one action's output into the next action's
|
||||
`when`/`args`.
|
||||
3. Loop/retry primitives per action.
|
||||
4. A much larger Module `Kind` registry, or a deliberate decision to accept
|
||||
a narrower "Archie automation language inspired by Ansible's shape" rather
|
||||
than "runs unmodified Ansible YAML" -- the latter also drags in Jinja2,
|
||||
the module_utils Python runtime, and inventory/host-targeting concepts
|
||||
Archie has no use for (Archie targets git repos and forge issues, not
|
||||
fleets of managed hosts). Recommend treating "Ansible-_inspired_ syntax,
|
||||
not Ansible-_compatible_ execution" as the working assumption if/when a
|
||||
PRD gets written -- it avoids importing Ansible's inventory/host model,
|
||||
which doesn't fit Archie's single-repo-per-task execution shape at all.
|
||||
|
||||
## On the multi-agent / Pi-harness-as-runner idea
|
||||
|
||||
Out of scope for this reference doc (it's an operating-model question, not a
|
||||
module-mapping one) but noted since it was raised alongside the above: this
|
||||
is a `migration-decisions.md`-track question (agent execution as a strict
|
||||
data boundary is a named invariant in `ARCHITECTURE.md`), not something to
|
||||
back into via the EDA/module work. Flag separately if it's worth pursuing.
|
||||
|
||||
## Bottom line
|
||||
|
||||
- No code changes implied by this document. It's a map, not a proposal.
|
||||
- The two ideas in Sam's message decompose cleanly: AWX's service-split
|
||||
argument is mostly already satisfied by Archie's domain architecture; the
|
||||
Ansible-playbook-content idea is a real, currently-blocked extension of
|
||||
the EDA Module/Channel/Forge action positions, gated on the same
|
||||
execution-semantics work already named in `plugins-and-extensions.md`.
|
||||
- If this becomes a real initiative, it belongs in `docs/prds/` as a
|
||||
decisive 1-pager per `AGENTS.md`'s scope-discipline rule -- not as an
|
||||
elaboration of this file.
|
||||
@@ -1,868 +0,0 @@
|
||||
# Service decomposition open questions: research for #1–#5
|
||||
|
||||
Status: research pass that resolves all five blocking open questions in
|
||||
[[service-decomposition]] (the Proposed-status PRD). It extends — it does
|
||||
not replace — that PRD and [[service-discovery-research-2026-09-05]].
|
||||
Questions #2 (contract definition mechanism) and #3 (in-process vs
|
||||
out-of-process during migration) were resolved in a later pass; Q1's
|
||||
Phase 0 dependency on #2's contract-definition mechanism (buf + grpc-go,
|
||||
committed generated code) is now satisfied.
|
||||
|
||||
Produced by an agent research pass against primary sources: a
|
||||
supervisor-run set of `deep_search_exa` queries plus direct fetches of
|
||||
the canonical primary texts (Martin Fowler / Zhamak Dehghani's
|
||||
monolith-breaking article, microservices.io's database-per-service
|
||||
pattern, Microsoft's .NET microservices data-sovereignty guidance, the
|
||||
Kubebuilder book, Helm's chart documentation). Every recommendation is
|
||||
grounded in the verified archie-core coupling findings from the PRD and
|
||||
in the code (checked at `internal/app/archied/main.go`,
|
||||
`internal/webui/server.go`, `internal/webui/api_chat.go`,
|
||||
`internal/store/interface.go`, `internal/store/store.go`,
|
||||
`internal/storerpc/storerpc.go`, `internal/gateway/session_store_sqlite.go`,
|
||||
`internal/app/archied/bootstrap.go`). Reproduced close to verbatim as the
|
||||
record; light formatting only.
|
||||
|
||||
Repositioning note: the PRD's own text floats a hypothesis ("Gateway
|
||||
Service's `ChatContract` should exist before UI Service is extracted").
|
||||
This document **confirms that hypothesis with code archaeology and
|
||||
strengthens it**, and it is the single most important finding: archie-core's
|
||||
Gateway is both the _stickiest_ capability and the one with an already-
|
||||
clean seam and already-isolated data. The generic "extract a leaf /
|
||||
read-only thing first" advice does not apply here, and I say so with the
|
||||
reason why.
|
||||
|
||||
---
|
||||
|
||||
## Summary of the five recommendations
|
||||
|
||||
| # | Question | Recommendation (one line) |
|
||||
| --- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 1 | Extraction order | **Gateway Service first**, then State Store, then UI, then Messaging, then Execution/Runner/Scheduler, then Curator (optional) — preceded by an in-process "contract seams" phase (modular monolith) that is #2's real prerequisite. |
|
||||
| 2 | Contract definition mechanism | **buf v2 + protoc-gen-go + protoc-gen-go-grpc** (grpc-go, not connect-go), one committed `proto/<service>/v1/` tree generating into `internal/contracts/<service>/v1/`, directory-versioned, `buf breaking` gated in `task check` and mirrored into CI. |
|
||||
| 3 | In-process vs. out-of-process during migration | **Multiplexed in-process is the migration default**: one wire-safe Go contract interface per service, a local adapter and a generated gRPC client adapter, composition (not `ServiceRegistry`) picks which one, and the flip to a real process is a same-commit deletion of the in-process path — no dual-live window. |
|
||||
| 4 | State Store's contract shape | **One State Store service owns a single SQLite file behind narrow typed contracts** (the existing `internal/store` split already does the ownership; the gap is enforcement). No physical database-per-service at this scale, and no distributed-transaction problem, because there is still one store. Gateway keeps its own already-separate session SQLite. |
|
||||
| 5 | Helm chart / Operator scoping | **Three charts** (a `library` chart of the shared contract templates, one `archie` chart for the 7 core services, one `archie-curator` chart + a Curator Operator) — and the smallest first milestone is a **single Curator CR that the Operator reconciles into a Deployment + Service, with Gateway resolving `curator` via the `ServiceRegistry`**. |
|
||||
|
||||
---
|
||||
|
||||
## Question #1 — Extraction order
|
||||
|
||||
### The question and the hypothesis
|
||||
|
||||
The PRD asks which service is pulled out of the monolith first and what
|
||||
staged sequence follows. Its own text proposes: Gateway Service's
|
||||
`ChatContract` should exist before UI Service is extracted, "since UI is
|
||||
the most entangled consumer today."
|
||||
|
||||
### Verified coupling (the load-bearing facts)
|
||||
|
||||
The PRD's three cited couplings are real; I re-checked the call sites:
|
||||
|
||||
1. **Telegram task-action routes through webui's HTTP handler.** The
|
||||
message path is `chatTaskActorAdapter.ApplyChatTaskAction`
|
||||
(`internal/app/archied/main.go:655`) which the daemon wires and which
|
||||
dispatches into `internal/webui`'s `handleTaskAction`
|
||||
(`internal/webui/api_tasks.go:136`, mounted at
|
||||
`server.go:294`). Messaging Service (the Telegram adapter) has no
|
||||
direct route to the gateway today — it must detour through a UI HTTP
|
||||
handler to apply a pause/resume/abandon action.
|
||||
2. **UI reaches directly into gateway internals.**
|
||||
`internal/webui/api_chat.go`'s `ChatService` is _literally_ `Router
|
||||
*gateway.Router`, `Sessions gateway.SessionStore`, `Turns
|
||||
*gateway.Turns` plus `Models gateway.ModelManager` and `Personas
|
||||
*gateway.PersonaRegistry`, and it calls `chat.Sessions.(gateway.TurnHistory)`
|
||||
at line 198 and `chat.Router.Route`/`ResolveSessionKey` at 256/261.
|
||||
This is not "a UI calling a Gateway API" — it is the UI holding the
|
||||
Gateway's internal objects and calling their methods in-process.
|
||||
3. **A shared `config.Holder`.** `bootstrap.go:1236` comments explicitly:
|
||||
"web and the daemon must share ONE Holder"; the daemon's live Holder is
|
||||
handed to webui at `bootstrap.go:336` and again where the dashboard
|
||||
mutation path runs.
|
||||
|
||||
Two further facts the PRD does not foreground but that decide the order:
|
||||
|
||||
- **The Gateway is already decoupled from the store.** `main.go:139`
|
||||
and `gateway/tasks.go:44` state it deliberately: gateway does **not**
|
||||
import `internal/store`. It consumes narrow contracts
|
||||
(`StatusReader`, `TaskCreator`, `TaskLister`, `TaskController`,
|
||||
`AgentReader`) that `internal/app/archied` adapts. This is a ready seam.
|
||||
- **The Gateway already owns an isolated session store.**
|
||||
`internal/gateway/session_store_sqlite.go` is a _separate_ SQLite DB
|
||||
(`OpenSQLiteSessionStore`, own `sqliteSessionSchema`) from
|
||||
`internal/store`. Chat session/turn/message data is **already** separate
|
||||
from task/work-intake data.
|
||||
|
||||
### What the research says about sequencing
|
||||
|
||||
The canonical guidance is Fowler / Dehghani's _How to break a Monolith
|
||||
into Microservices_. Its explicit sequencing principles are: **warm up
|
||||
with a simple and fairly decoupled capability**; **minimise dependency
|
||||
back to the monolith**; **split sticky capabilities early**; **decouple
|
||||
vertically and release the data early**; **decouple what is important to
|
||||
the business and changes frequently**; **go macro first, then micro**;
|
||||
**migrate in atomic evolutionary steps**. The popular-strangler-fig
|
||||
commentary (YuSMP, Md Sanwar Hossain, CloudRPS) adds a pragmatic
|
||||
variant: improve the monolith into a _modular monolith_ first, create a
|
||||
routing facade, extract the **low-coupling / leaf / read-heavy** context
|
||||
first, defer auth and the core "sticky" engines to later, and treat the
|
||||
first extraction as an **operations dry-run** (build pipeline, contract
|
||||
testing, observability, rollback) rather than maximising value.
|
||||
|
||||
There is a real tension here. The bulk of the practitioner advice says
|
||||
"extract the least-coupled leaf first." But that advice is calibrated for
|
||||
large, team-owned, revenue-critical systems where a first extraction
|
||||
regression is a production incident and where the team has not yet found
|
||||
its seams. Two of its own authors note the counterweight: Fowler's
|
||||
**"split sticky capabilities early"** explicitly warns against deferring
|
||||
the tangled capability, on the theory that the longer you wait the more
|
||||
sticky and expensive it becomes; and StackAuthority's blueprint sorts by
|
||||
**data coupling and change velocity**, not pure ease — "order matters more
|
||||
than most teams realise."
|
||||
|
||||
### Why the generic "leaf first" is wrong here
|
||||
|
||||
archie-core is not the enterprise monolith those guides assume. It is
|
||||
already a **modular monolith with clean domain boundaries**
|
||||
(`organisation.md` is enforced; `internal/domain/*` owns one cohesive
|
||||
job; the six-domain split is settled). It has **no** organisational
|
||||
blast-radius to protect (solo maintainer's daemon, not a payment path),
|
||||
and its **actual** cost is concentrated in the process-packaging tangle,
|
||||
not in undiscovered seams. It also has what the "seam-finding" guides
|
||||
tell you to look for but rarely find: a capability that is **sticky and
|
||||
already has a clean contract seam and already-isolated data**.
|
||||
|
||||
So the deciding question is not "which is the safest to cut first?" It is
|
||||
"which capability, if cut, releases the most entangled consumer and
|
||||
stands up the product's primary contract?" The answer is the Gateway.
|
||||
|
||||
This **confirms** the PRD hypothesis, and adds a reason the PRD did not
|
||||
state: the Gateway is extractable _now_, on its own, with zero store
|
||||
migration, because it is already store-decoupled and already owns its
|
||||
session DB. UI is **not** extractable first — it is trapped behind the
|
||||
Gateway's internals and can only become a thin client once
|
||||
`ChatContract` exists. Extracting Gateway first is therefore also the
|
||||
cheapest way to unblock UI (the most entangled consumer), which is the
|
||||
PRD's ultimate goal.
|
||||
|
||||
### Decision: the ordered phase list
|
||||
|
||||
This is a **phase list** (each phase is a stable, working, independently
|
||||
releasable step; it is not a task breakdown). Each phase is one "atomic
|
||||
evolutionary step" per Fowler.
|
||||
|
||||
**Phase 0 — Contract seams (still a modular monolith, no process split).**
|
||||
Introduce, in-process, the seams that make later extraction a swap of
|
||||
transport rather than a rewrite: a `ChatContract` interface owned by the
|
||||
Gateway (aligning `Router`/`SessionStore`/`Turns`/`ModelManager`/
|
||||
`PersonaRegistry` behind it, so `webui` depends on the contract type, not
|
||||
on the Gateway's structs); the `ServiceRegistry` interface from the
|
||||
discovery research; and the State Store's already-narrow interfaces
|
||||
(`TaskStore`/`CaptureStore`/`MappingStore`/`BindingStore`) ratified as the
|
||||
State Store contract. **Dependency:** this is where #2's contract
|
||||
definition mechanism (`proto/` tree, codegen) lands; the seam is a
|
||||
prerequisite for the process split but #2 owns its mechanism. No network
|
||||
hop yet — this is the "modular monolith first" safe step.
|
||||
|
||||
**Phase 1 — Extract the Gateway Service (first real extraction).**
|
||||
Stand up `archie-gateway` as its own binary serving `ChatContract` over
|
||||
gRPC, using its existing isolated session SQLite and its existing
|
||||
store-adapters. Migrate consumers (UI, and the Messaging/Telegram
|
||||
task-action path) to call `ChatContract` over gRPC rather than holding
|
||||
`gateway.Router` in a struct or HTTP-detouring through webui. **Why
|
||||
here:** stickiest capability (everything routes through it) → Fowler's
|
||||
"split sticky capabilities early"; already store-decoupled → "minimise
|
||||
dependency back to the monolith" is already satisfied; highest-value
|
||||
contract (the PRD calls gRPC sync the product's primary contract); and it
|
||||
directly dissolves coupling #1 (Telegram→webui detour) and #2
|
||||
(webui→gateway internals) at their root. This is the operations
|
||||
dry-run — prove the GCP/gRPC/discovery playbook on the thing the whole
|
||||
product runs through.
|
||||
|
||||
**Phase 2 — Extract the State Store Service.**
|
||||
Expose `internal/store` as its own service behind its narrow contracts
|
||||
over gRPC (this is the generalisation we already have the seed for —
|
||||
`internal/storerpc` today proxies `store.WorkflowStore` to the agent over
|
||||
NATS; see Q4). Migrate the direct store imports in `internal/webui`,
|
||||
`internal/domain/workflow`, and the intake/binding paths onto the
|
||||
contract. **Why here:** "release the data early" (Fowler); UI and Workflow
|
||||
both read store state **directly** today, so neither can become a peer
|
||||
until that path is a contract call; and it is the lowest-risk data move
|
||||
because per Q4 it stays one SQLite file behind an API. Leaves a working
|
||||
system: Gateway on gRPC, everything else in the monolith but reading
|
||||
state via contract.
|
||||
|
||||
**Phase 3 — Extract the UI Service.**
|
||||
Now a genuinely thin client: serves the SPA from `ui/dist` and calls
|
||||
Gateway's `ChatContract` and State Store's read contracts. The
|
||||
`config.Holder` sharing and store/gateway internal access are gone. This
|
||||
closes the last verified coupling (#3 — shared Holder) and the last of the
|
||||
webui-entanglement list.
|
||||
|
||||
**Phase 4 — Extract the Messaging Service.**
|
||||
Telegram/email/webhook adapters become a peer service that calls
|
||||
Gateway's `ChatContract` directly (no UI HTTP detour). Now every async
|
||||
channel is a first-class peer; the webui is no longer in any message path.
|
||||
|
||||
**Phase 5 — Extract Execution Environment + Runner + Scheduler.**
|
||||
`internal/domain/workflow` dispatch, `internal/container/pool.go`,
|
||||
`internal/agentexec`, `internal/worktree` become the Execution Environment /
|
||||
Runner services (consuming State Store's `WorkflowStore` contract and the
|
||||
existing container contract); `internal/domain/scheduling` +
|
||||
`internal/infrastructure/cronstore` become the Scheduler. These are the
|
||||
heaviest and most store-coupled, so they go last; by here the facade
|
||||
(Gateway) and the data seam (State Store) are already proven.
|
||||
|
||||
**Phase 6 — Curator Service (the optional one, last).**
|
||||
Install as a Gateway plugin (its current shape is already a contract /
|
||||
registrar / registry family) and prove the latest-order discovery path +
|
||||
the optional-service `NotInstalled` semantic. This is deliberately last:
|
||||
it is the proof-of-optionality and the Q5 exercise, not a load-bearing
|
||||
first step. (The K8s Operator to _deploy_ it is Q5's concern and can be
|
||||
built on the Q1 timeline once the base chart exists.)
|
||||
|
||||
### What this doesn't settle
|
||||
|
||||
- **#2 and #3.** The phase list assumes #2 (proto/codegen) and #3
|
||||
(multiplexed in-process) are resolved consistently: Phase 0 is the
|
||||
modular-monolith with in-process seams, and Phase 1 is the first true
|
||||
process split. If #3 decides against in-process multiplexing, Phase 0
|
||||
collapses into Phase 1 for the Gateway.
|
||||
- **Whether Gateway should also host a "chat gateway" that owns the
|
||||
Session Store contract** vs. delegating chat state to a future concern.
|
||||
Decided _not_ to move session data into State Store here — it is already
|
||||
isolated and Gateway-owned; moving it would be churn with no benefit.
|
||||
- **Exact cadence / whether Curator can be extracted earlier.** It _can_,
|
||||
but only as the operator/optionality exercise; keeping it last avoids
|
||||
spending the "warm-up learning budget" on an optional component when the
|
||||
base services are not yet on the contract.
|
||||
|
||||
---
|
||||
|
||||
<a id="2"></a>
|
||||
|
||||
## Question #2 — Contract definition mechanism
|
||||
|
||||
### The question
|
||||
|
||||
Protobuf/gRPC service definitions need a home: a toolchain, a directory
|
||||
layout, a versioning scheme, a committed-vs-build-time-generation call, and
|
||||
codegen wiring into `Taskfile.yml` and CI.
|
||||
|
||||
### Toolchain: buf v2 + protoc-gen-go + protoc-gen-go-grpc (grpc-go)
|
||||
|
||||
**Decision: buf v2, driving `protoc-gen-go` and `protoc-gen-go-grpc`,
|
||||
targeting grpc-go.** Raw `protoc` is rejected — it has no lint, no
|
||||
breaking-change detection, and no managed mode for `go_package` paths, all
|
||||
of which buf provides directly. **connect-go is rejected too**, despite
|
||||
being a popular modern choice: its generated client is `net/http`-based,
|
||||
and its own README states it adds "no new name resolution or load
|
||||
balancing APIs." That is a direct conflict with the service-discovery
|
||||
research's design, which relies on grpc-go's resolver plumbing (a custom
|
||||
resolver for K8s DNS and a custom resolver reading the NATS JetStream KV
|
||||
registry — see `docs/inspiration/service-discovery-research-2026-09-05.md`
|
||||
and the `ServiceRegistry` interface at
|
||||
`internal/servicediscovery/servicediscovery.go:72`). connect-go would push
|
||||
K8s discovery onto `bufbuild/httplb` plus headless-Service DNS instead of
|
||||
grpc-go's resolver, which is a second discovery mechanism this repo does
|
||||
not want. `google.golang.org/grpc` becomes a direct dependency; today
|
||||
`go.mod:59` carries only `google.golang.org/protobuf v1.36.10 // indirect`.
|
||||
|
||||
### Layout: one committed `proto/<service>/v1/` tree, generated code committed to `internal/contracts/`
|
||||
|
||||
**Decision: a single top-level `proto/` tree**, one buf module, laid out as
|
||||
`proto/<service>/v1/*.proto` — per-service buf modules were considered and
|
||||
rejected as unnecessary ceremony at this scale (~7 services, one repo, one
|
||||
maintainer). The directory name is the canonical service name and must
|
||||
match the registry/DNS/chart name used elsewhere (`ServiceRegistry`,
|
||||
Helm chart service names). Generated Go is **committed** at
|
||||
`internal/contracts/<service>/v1/`, produced via buf's managed mode
|
||||
(`go_package_prefix`) plus `paths=source_relative`. This satisfies
|
||||
`docs/architecture/dependencies-and-contracts.md:55`'s "Wire contracts and
|
||||
generation" rule — wire contracts are partitioned per owning domain, never
|
||||
centralised in a generic schema package.
|
||||
|
||||
### Versioning: directory versioning, enforced by `buf breaking`
|
||||
|
||||
**Decision: directory versioning** (`v1`, Go package `<service>.v1`). A
|
||||
breaking change gets a new `vN` directory; a published version is never
|
||||
edited in place. Enforcement is `buf breaking --against
|
||||
'.git#branch=main,subdir=proto'` wired into the gate. This was verified
|
||||
against a real git ref in a scratch toolchain run (see Evidence below): it
|
||||
correctly flagged a deleted RPC, a renamed field, and a field deletion,
|
||||
exiting 100.
|
||||
|
||||
### Committed vs. build-time generation: committed
|
||||
|
||||
**Decision: commit the generated Go**, with a regenerate-and-diff-fail
|
||||
freshness check in CI, following the existing "generated assets are LAW"
|
||||
precedent (`ui/dist`, `task ui`, per `AGENTS.md`) and the committed Yaegi
|
||||
`*extract` tables (`internal/domain/workflow/wfextract/wfextract.go`).
|
||||
This keeps `task build` / `task test` hermetic — neither ever invokes
|
||||
`buf` — while still catching drift between `.proto` sources and checked-in
|
||||
Go via a `git diff --exit-code` step.
|
||||
|
||||
### Taskfile / CI wiring
|
||||
|
||||
New `task proto:generate`, `task proto:lint`, and `task proto:check`
|
||||
(regenerate, then `git diff --exit-code -- internal/contracts`) tasks,
|
||||
inserted into `task check` after `go fix ./...` and before `vet`/`lint`/
|
||||
`build`. This **must also be mirrored into
|
||||
`.github/workflows/deploy.yml`'s "Quality gate" step** — CI does not
|
||||
invoke `task check` today; it runs `gofumpt`, `go fix`, `vet`, `build`, and
|
||||
`test` directly, so the proto gate needs the same direct treatment or it
|
||||
will silently never run in CI. A shallow checkout (the default `actions/
|
||||
checkout` behaviour) breaks `buf breaking --against` because there is no
|
||||
local `main` ref to diff against; CI needs `fetch-depth: 0` or an explicit
|
||||
`git fetch origin main` step.
|
||||
|
||||
### What this doesn't settle
|
||||
|
||||
- **Per-plugin/toolchain version pinning for CI.** The repo currently does
|
||||
`go install ...@latest` for `gofumpt`; whether `buf` and the protoc
|
||||
plugins get the same treatment or pinned versions is an implementation
|
||||
detail for whoever wires the Taskfile/CI entries, not a design decision.
|
||||
- **Whether a headless/SRV Service variant changes anything about the
|
||||
generated Go.** It doesn't — the wire contract is transport-agnostic;
|
||||
discovery is a separate concern owned by `ServiceRegistry`.
|
||||
|
||||
---
|
||||
|
||||
<a id="3"></a>
|
||||
|
||||
## Question #3 — In-process vs. out-of-process during migration
|
||||
|
||||
### The question
|
||||
|
||||
Whether services can run multiplexed inside one binary behind the same
|
||||
contract during a transition period (so extraction is incremental and
|
||||
testable), or whether each service must be a separate binary from day one.
|
||||
|
||||
### Decision: multiplexed in-process is the migration default — this is the architecture's stated default, not a lean
|
||||
|
||||
`docs/architecture/organisation.md:70-77` ("Process boundaries") already
|
||||
states this as policy, verbatim: "Archie begins as a modular monolith even
|
||||
when capabilities run in separate processes. A domain becomes a separately
|
||||
deployed service only for a concrete need such as security isolation,
|
||||
independent scaling, failure containment, or independent operation.
|
||||
Possible future extraction does not justify premature network protocols or
|
||||
duplicated service scaffolding." Question #3 asks whether to follow that
|
||||
rule for this migration; the answer is yes, and it was already decided
|
||||
architecture-wide.
|
||||
|
||||
### Mechanism (six parts)
|
||||
|
||||
1. **Wire-safe Go contract interfaces.** Each per-service contract is a
|
||||
plain Go interface whose method signatures could cross the wire as-is:
|
||||
values and streams only. No callbacks (e.g. Gateway's
|
||||
`LLMStreamResponder`), no `*sql.Tx`, no object identity leaking through
|
||||
the interface. If a type can't become a proto message, it can't appear
|
||||
in the contract signature.
|
||||
2. **Two adapters per contract.** A **local adapter** (in-process, calls
|
||||
straight through, zero serialisation — not a test fake, a real
|
||||
production adapter) and a **generated gRPC client adapter**. Both
|
||||
satisfy the same interface, verified with a compile-time assertion in
|
||||
the existing repo idiom: `var _ store.WorkflowStore = (*Client)(nil)`
|
||||
(`internal/storerpc/storerpc.go:136`). The one-contract-two-transports
|
||||
shape is already in production today for the agent container over NATS
|
||||
(`internal/storerpc`, `internal/forgerpc`, `internal/worktreerpc`, wired
|
||||
at `internal/infrastructure/agenttransport/nats/transport.go:101,111`).
|
||||
3. **Composition chooses; `ServiceRegistry` stays network-only.**
|
||||
`ServiceRegistry.Resolve` never returns an in-process shim — a linked,
|
||||
in-process service is not in the registry at all. The registry models
|
||||
the network view only; `internal/app` composition wiring is the local
|
||||
view. Reasons: registry implementations should only ever observe real
|
||||
endpoints; `ErrNotInstalled` is an installability semantic
|
||||
(`internal/servicediscovery/servicediscovery.go:8-14`) that cannot
|
||||
arise for a module that's simply linked into the binary; and having one
|
||||
authoritative selection path (composition, not a registry call)
|
||||
eliminates a class of mixed-mode races. Concretely: a per-service
|
||||
`mode = "inproc" | "remote"` config value, defaulting to `inproc`.
|
||||
4. **Per-contract conformance suite.** Reuse the existing conformance-test
|
||||
idiom — `runSessionStoreSuite(t, newStore func(t *testing.T)
|
||||
SessionStore)` at `internal/gateway/sessionstore_conformance_test.go:65`
|
||||
— and run it against both the local adapter and a real gRPC server over
|
||||
`bufconn`. This is the "always test the wire shape" discipline, kept for
|
||||
tests only; production traffic in `inproc` mode never touches gRPC.
|
||||
5. **The flip trigger is the service's own extraction phase**, not a
|
||||
separate migration step: a new `cmd/archie-<service>` binary plus a
|
||||
same-commit deletion of the in-process serving path, with consumers
|
||||
flipped to `mode = "remote"` in that same commit. One commit, one
|
||||
authoritative implementation, no dual-live window. A Fowler-style
|
||||
dual-live cutover (old and new both serving, gradually shifted traffic)
|
||||
was considered and rejected at this scale: with two consumers in one
|
||||
repo and one release cadence, a dual-live window buys nothing but drift
|
||||
risk, concentrated exactly where the PRD's verified couplings already
|
||||
are. Rollback is a release-level revert — an accepted, honest trade for
|
||||
a solo maintainer, not a gap.
|
||||
6. **Failure semantics.** In `inproc` mode there is nothing new to reason
|
||||
about — a direct call either succeeds or panics like any other in-
|
||||
process call. In `remote` mode, a dial failure fails fast; per
|
||||
`ServiceRegistry`'s existing doc comment,
|
||||
`ErrNotInstalled` means "disabled," never "broken," for optional
|
||||
services (mirrors `internal/installtype/installtype.go`'s existing
|
||||
precedent that deployment-shape facts are baked/stated, not
|
||||
runtime-probed).
|
||||
|
||||
### Consequence for the resolved extraction order (Gateway first)
|
||||
|
||||
This directly satisfies Q1's Phase 0 dependency (see "What this doesn't
|
||||
settle" under Question #1, above): Phase 0 — introducing the `ChatContract`
|
||||
seam, its local adapter, the `.proto` definition, and the bufconn
|
||||
conformance suite — ships as an in-process module first, with nothing
|
||||
listening on a TCP port; the network protocol stays out of the production
|
||||
path until Phase 1. Phase 1 (extracting the Gateway) then becomes a wiring
|
||||
change only: add `cmd/archie-gateway`, delete the in-process serving path,
|
||||
flip `mode` to `remote` for its consumers. No amendment to Q1's phase list
|
||||
was needed — Q1 already anticipated exactly this shape.
|
||||
|
||||
### What this doesn't settle
|
||||
|
||||
- **Whether `mode` is a per-service config value or a build tag.** Decided
|
||||
here as runtime config (`mode = "inproc" | "remote"`), consistent with
|
||||
`internal/installtype`'s precedent of stating deployment shape rather
|
||||
than probing for it; a compile-time split was not considered necessary.
|
||||
- **The exact bufconn test harness plumbing.** Follows the existing
|
||||
`runSessionStoreSuite` idiom; the concrete harness is an implementation
|
||||
detail for whoever lands the first contract (Gateway's `ChatContract`).
|
||||
|
||||
### Sources used for Q2 and Q3
|
||||
|
||||
- `google.golang.org/protobuf v1.36.10 // indirect` — `go.mod:59` (today's
|
||||
only proto-adjacent dependency; confirms grpc-go is not yet a direct
|
||||
dependency).
|
||||
- `docs/architecture/organisation.md:70-77` — "Process boundaries" (the
|
||||
architecture's standing, Approved answer for #3).
|
||||
- `docs/architecture/dependencies-and-contracts.md:55` — "Wire contracts
|
||||
and generation" (per-domain ownership of wire contracts; no generic
|
||||
schema package).
|
||||
- `internal/servicediscovery/servicediscovery.go:8-14,71-81` —
|
||||
`ErrNotInstalled` semantics and the `ServiceRegistry` interface.
|
||||
- `internal/storerpc/storerpc.go:136` — `var _ store.WorkflowStore =
|
||||
(*Client)(nil)`, the compile-time contract-conformance idiom reused for
|
||||
the local/remote adapter pair; `internal/forgerpc`, `internal/worktreerpc`,
|
||||
and `internal/infrastructure/agenttransport/nats/transport.go:101,111`
|
||||
as the existing one-contract-two-transports precedent in production.
|
||||
- `internal/gateway/sessionstore_conformance_test.go:65` —
|
||||
`runSessionStoreSuite`, the conformance-test idiom reused for
|
||||
local-vs-remote adapter testing.
|
||||
- `internal/webui/api_chat.go:22-26` — `ChatService`'s struct fields
|
||||
(`Router *gateway.Router`, `Sessions gateway.SessionStore`, `Turns
|
||||
*gateway.Turns`, `Models gateway.ModelManager`, `Personas
|
||||
*gateway.PersonaRegistry`) — the concrete seam Q2/Q3's `ChatContract`
|
||||
needs to cross.
|
||||
- `internal/installtype/installtype.go` — precedent that deployment-shape
|
||||
facts are stated config, never runtime-probed.
|
||||
- AGENTS.md "Generated assets are LAW" (`ui/dist`, `task ui`); Yaegi
|
||||
`*extract` tables with post-generation guard tests
|
||||
(`internal/domain/workflow/wfextract/wfextract.go`) — precedent for
|
||||
committing generated code.
|
||||
- `Taskfile.yml` `check:` target vs. `.github/workflows/deploy.yml`
|
||||
"Quality gate" step — confirms CI does not invoke `task check` and so
|
||||
needs the proto gate mirrored in directly.
|
||||
- buf/grpc-go vs. connect-go comparison: connect-go's own README states it
|
||||
adds "no new name resolution or load balancing APIs" — the deciding fact
|
||||
against it, given the discovery research's reliance on grpc-go resolver
|
||||
plumbing.
|
||||
- Scratch toolchain verification (run inside a disposable worktree,
|
||||
discarded at teardown; not committed): `buf --version` → 1.71.0;
|
||||
`protoc --version` → libprotoc 34.0. `buf lint` on a sample
|
||||
`proto/gateway/v1/chat.proto` (package `gateway.v1`, service
|
||||
`ChatService`) passed once request/response types followed the
|
||||
`XRequest`/`XResponse` naming buf's STANDARD lint enforces. `buf
|
||||
generate` (v2, managed `go_package_prefix`, `paths=source_relative`)
|
||||
produced `chat.pb.go` (206 lines) and `chat_grpc.pb.go` (121 lines),
|
||||
which compiled cleanly against `google.golang.org/grpc v1.83.2` in a
|
||||
scratch module. `buf breaking --against
|
||||
'.git#branch=main,subdir=.'` after deleting an RPC and renaming a field
|
||||
correctly reported "Previously present RPC Send deleted," "field 2 user
|
||||
deleted," "field 3 changed name," exit 100 — confirming the mechanism
|
||||
works against a real git ref. A parallel connect-go run (installing
|
||||
`protoc-gen-connect-go` v1.19.1; note the `github.com/connectrpc/
|
||||
connect-go` module path is dead, use `connectrpc.com/connect`) generated
|
||||
a sibling `net/http`-based package, confirming the resolver-plumbing gap
|
||||
cited above. `gofumpt -l` on the freshly generated output was clean, so
|
||||
`task fmt`'s `gofumpt -w .` won't fight regenerated code.
|
||||
|
||||
---
|
||||
|
||||
## Question #4 — State Store's contract shape
|
||||
|
||||
### The question
|
||||
|
||||
Does every extracted service get its **own storage** (full microservice
|
||||
data isolation), or do **several services share one State Store service's
|
||||
contract** (less isolation, less migration risk, avoids a
|
||||
distributed-transactions problem)?
|
||||
|
||||
### Codebase evidence
|
||||
|
||||
- **`internal/store` is one SQLite DB** (`internal/store/store.go`,
|
||||
`Open()`, `sqliteDSN()`, WAL + busy_timeout pragmas) with 7 tables:
|
||||
`tasks`, `transitions` (workflow execution), `events` (observability),
|
||||
`captured_events`, `bindings`, `binding_dispatches` (work intake /
|
||||
binding), `field_mappings` (mapping). It is a single file used by many
|
||||
domains.
|
||||
- **The store is already interface-decomposed, not monolith-shaped.**
|
||||
`internal/store/interface.go` splits a broad `TaskStore` into narrow
|
||||
contracts: `TaskStore`, `WorkflowStore`, `CaptureStore`, `MappingStore`,
|
||||
`BindingStore`, `BindingDispatcher`, `BindingTaskCreator`. Each is
|
||||
deliberately narrow ("the interfacebloat limit").
|
||||
- **A store-as-contract-to-foreign-process pattern already exists and
|
||||
works.** `internal/storerpc/storerpc.go` exposes `store.WorkflowStore`
|
||||
(Update / Transition / InsertEvent) to the `archie-agent` container over
|
||||
NATS request/reply, and its doc comment states the design fact: "archied
|
||||
remains the sole owner of the `store.TaskStore`." This is the exact shape
|
||||
the State Store service needs; it just needs to be generalised from
|
||||
`WorkflowStore` to the full contract set and moved to the sync (gRPC)
|
||||
transport.
|
||||
- **The Gateway already owns a separate session SQLite.** As noted in Q1,
|
||||
`internal/gateway/session_store_sqlite.go` is its own DB with its own
|
||||
schema. So session/chat state is **already** isolated from task/work
|
||||
state — the natural two-owner split is already present in code.
|
||||
|
||||
### Does "every service its own storage" buy anything here?
|
||||
|
||||
The research (microservices.io, Microsoft Learn data-sovereignty, AWS
|
||||
Prescriptive Guidance) is emphatic that the database-per-service pattern is
|
||||
**about ownership and enforcement, not about physically provisioning one
|
||||
database cluster per service.** microservices.io names three ways to keep a
|
||||
service's data private — _private-tables-per-service_,
|
||||
_schema-per-service_, and _database-server-per-service_ — and says the
|
||||
first two have "the lowest overhead," and that a shared MySQL instance with
|
||||
per-service logical databases and per-service credentials is a legitimate
|
||||
instance of the pattern. Microsoft's guidance and the ownership-over-
|
||||
isolation posts (Progressive Robot, DEV's Aditya Pradhan, aakashx) make
|
||||
the same point with a shared framing: **shared write ownership is the real
|
||||
danger, not shared physical infrastructure.** aakashx's maturity ladder
|
||||
(Level 0 shared-DB+shared-tables → Level 3 service-owned DBs → Level 5
|
||||
independent lifecycle) is precisely the "ownership first, physical split
|
||||
only when justified" path.
|
||||
|
||||
The decisive variable everywhere is **team topology**, not technology.
|
||||
DevStarSJ's 2026 comparison gives the rule of thumb: 1–5 engineers →
|
||||
shared DB (monolith is fine); 5–20 → shared DB with strict ownership
|
||||
boundaries; 20–50 → hybrid; 50+ → database per service. The argument,
|
||||
across all sources, is that database-per-service's _benefits_ are team
|
||||
autonomy, independent deploy cadence, and failure blast-radius isolation —
|
||||
three things that are **largely absent for a solo maintainer**. You still
|
||||
pay the full "distributed data tax" (no cross-service joins → sagas or
|
||||
CDC/outbox + read models; eventual consistency; more data stores to
|
||||
operate and back up; a new class of ordering/duplicate events). For a
|
||||
single person shipping one product, that tax buys autonomy you do not
|
||||
have a team boundary to exploit.
|
||||
|
||||
### Decision: one State Store service, single SQLite, narrow contracts, no physical per-service database
|
||||
|
||||
**Recommendation:** archie-core keeps **one State Store service** that
|
||||
owns the existing single SQLite file and exposes its **narrow typed
|
||||
contracts** (`TaskStore`, `CaptureStore`, `MappingStore`, `BindingStore`,
|
||||
`WorkflowStore`, …) over gRPC. Consumers (UI, Workflow, Work Intake,
|
||||
Execution/Runner) call the State Store's contract; they never reach into
|
||||
each other's tables — and because there is **still one store**, there is
|
||||
**no distributed-transactions problem** (the very thing the question's
|
||||
"share one contract" alternative is trying to avoid). The Gateway keeps
|
||||
its own already-separate session SQLite (it is Gateway-private chat state
|
||||
and already isolated; moving it is churn).
|
||||
|
||||
This is "less isolation, less migration risk" chosen deliberately — it is
|
||||
the _honest_ choice for a solo maintainer per the team-topology rule of
|
||||
thumb, and it matches the store's existing interface decomposition (the
|
||||
ownership is already correct — the _enforcement_ is the gap: webui and
|
||||
workflow import `internal/store` directly across a would-be service
|
||||
boundary).
|
||||
|
||||
**Do NOT provision a physical database per service.** The only parts of
|
||||
the PRD's "every service its own storage" framing that buy anything at
|
||||
this scale are the ones that are already true in code: the Gateway owns
|
||||
its session DB, and the interface split gives each domain a narrow
|
||||
contract. Splitting the remaining SQLite file into per-service files
|
||||
would introduce the distributed-data tax — cross-store joins for the
|
||||
dashboard's combined task/event/capture views, sagas for intake→workflow
|
||||
transitions, m×n data-store operations — with no corresponding autonomy
|
||||
gain for a single maintainer. It is also the single most common source of
|
||||
a _distributed monolith_, which the sources call the failure mode to
|
||||
avoid.
|
||||
|
||||
### Concrete migration path from the current single SQLite store
|
||||
|
||||
1. **Ratify the contracts (cheap, already done).** Treat the narrow
|
||||
interfaces in `internal/store/interface.go` as the State Store
|
||||
contract surface. No code change; this is a naming/authority decision.
|
||||
2. **Generalise the store surrogate — this is the step that becomes the
|
||||
State Store service.** `internal/storerpc` currently proxies
|
||||
`WorkflowStore` to the agent over NATS. Broaden it to serve the full
|
||||
narrow contract set, and (per the PRD, gRPC is the sync transport) move
|
||||
it from NATS request/reply to gRPC. The `archie-agent` / `storerpc.Client`
|
||||
that satisfies `store.WorkflowStore` is the template for the client
|
||||
every consumer gets.
|
||||
3. **Swap consumers one contract at a time from direct import to the
|
||||
contract call.** Order by blast radius: start with the low-touch reads
|
||||
(`CaptureStore`, `MappingStore`, `BindingStore`) that a single UI
|
||||
screen uses, then `WorkflowStore` (already proxied), then the
|
||||
`TaskStore` lifecycle surface the daemon uses. Each swap leaves a
|
||||
working binary because the in-process `*store.Store` still backs the
|
||||
contract — this is a pure interface-boundary change, not a data move.
|
||||
4. **Stand up the State Store process.** Once every consumer speaks the
|
||||
contract, run `internal/store` as `archie-state-store` (a gRPC server
|
||||
over the same SQLite file), and delete the in-process imports. The
|
||||
single `archie.db` file is unchanged; only the access path changes.
|
||||
5. **Only split the file if a concrete need appears.** If task-history
|
||||
volume or a specific isolation/security requirement (e.g. a hosted
|
||||
multi-tenant boundary) later justifies it, SQLite makes a per-domain
|
||||
physical split cheap (one file per contract group, e.g.
|
||||
`archie-tasks.db`, `archie-intake.db`). But do **not** pre-split: the
|
||||
sources' consensus is to migrate toward physical separation "only when
|
||||
there is evidence (slow queries, deployment coupling, scaling
|
||||
bottlenecks)."
|
||||
|
||||
### What this doesn't settle
|
||||
|
||||
- **Cross-store reads for reporting.** The dashboard's combined
|
||||
task/event/capture/mapping views are built in one SQLite today. If
|
||||
those are split later, they need an API-composition / read-model path
|
||||
(the sources name CQRS / materialised view). Not a blocker now; it is
|
||||
the cost of a future physical split, which is exactly why the
|
||||
recommendation is to not pre-split.
|
||||
- **Whether the Gateway's session store stays Gateway-owned or moves to
|
||||
State Store.** Decided: stays Gateway-owned (already isolated, high
|
||||
-frequency chat state; moving it has no benefit).
|
||||
- **The exact gRPC contract schema / versioning.** That is #2's
|
||||
mechanism. The contract _surface_ is decided here; the wire schema is
|
||||
not.
|
||||
- **Migration of the `storerpc` NATS path.** The `archie-agent` container
|
||||
still calls `storerpc` today. Under the PRD the Execution/Runner
|
||||
processes are peers too, so the agent's store access should eventually
|
||||
use the same contract. When that moves is an Execution-track question,
|
||||
not a State-Store-shape one.
|
||||
|
||||
---
|
||||
|
||||
## Question #5 — Helm chart / Operator scoping
|
||||
|
||||
### The question
|
||||
|
||||
`service-discovery-research-2026-09-05.md` already commits to
|
||||
Kubernetes-native discovery via a Helm chart + Operator as the primary
|
||||
path. Scope what that actually requires as a first real deliverable: what
|
||||
a first Helm chart for the ~7-service fleet needs to contain, what the
|
||||
Curator Operator's reconciliation loop needs to do, and the smallest real
|
||||
first milestone that proves "install Curator, Gateway discovers it" end
|
||||
to end.
|
||||
|
||||
### What the base Kubernetes discovery needs (from the discovery research)
|
||||
|
||||
The discovery research's Path A (K8s-native) flow is the contract our
|
||||
deliverable has to satisfy: base services deploy as Deployment + Service;
|
||||
a Service's label selector matches the Curator pods; the endpoint
|
||||
controller writes pod IPs into an EndpointSlice; readiness probes gate
|
||||
which pods are ready; CoreDNS serves `curator.<ns>.svc.cluster.local`; the
|
||||
Gateway's gRPC DNS resolver picks up the new endpoint on re-resolution
|
||||
with no redeploy; removal empties the EndpointSlice and the record
|
||||
disappears. Two facts shape the chart design:
|
||||
|
||||
1. **Optional service semantics.** A scaled-to-zero / not-yet-created
|
||||
Curator must resolve to `NotInstalled`, not `Down`. Under K8s that
|
||||
comes from DNS `NXDOMAIN`/empty resolution being treated as "absent,"
|
||||
which requires the Gateway to model "absent" as a distinct resolution
|
||||
outcome on the `ServiceRegistry` interface (already flagged in the
|
||||
research's addendum).
|
||||
2. **Chart count.** Seven services is too many for one monolithic
|
||||
template and too few to justify seven charts. The idiomatic Helm
|
||||
answer is a **library chart** for the shared contract templates plus
|
||||
small per-deployable charts.
|
||||
|
||||
### Decision: three charts (library + core services + Curator-with-Operator)
|
||||
|
||||
- **`archie-library`** — a Helm **library chart** (`type: library`,
|
||||
only `_*.tpl` files). Holds the shared resource templates: the
|
||||
Deployment template, the Service template, readiness/liveness probe
|
||||
helper, container-port naming, the label/selector block
|
||||
(`app.kubernetes.io/name`, `instance`, `managed-by`, `component`), and
|
||||
the `ServiceRegistry`-relevant named ports (`grpc`, `http`, `ssr`,
|
||||
`nats`). This keeps the per-service charts declarative and consistent.
|
||||
- **`archie`** — the chart for the **7 core services**: UI, Gateway,
|
||||
Messaging, Scheduler, Execution Environment, Runner, State Store. One
|
||||
`values.yaml` with a `services:` map; each service resolves to a small
|
||||
template from the library chart. It also lands the base **ConfigMaps
|
||||
/ Secrets** that replace `config.toml` (a phased concern flagged in the
|
||||
discovery research — the chart should _reference_ config as a separate
|
||||
concern, not block on relocating it). It must make each service's
|
||||
`Service` a **named-port** Service so gRPC resolution works, and each
|
||||
a **ClusterIP** Service (no headless needed for the base sync path; a
|
||||
headless/SRV Service is an optional addition the Gateway resolver can
|
||||
consume but is not required for the DNS A-record flow).
|
||||
- **`archie-curator`** — the chart for the **optional Curator**, plus the
|
||||
**Curator Operator**. Operator chart installs the CRD, the
|
||||
controller Deployment (with the ServiceAccount / ClusterRole /
|
||||
ClusterRoleBinding the reconciler needs), and the RBAC markers; the
|
||||
Curator chart installs the sample `Curator` CR. Because Curator is
|
||||
optional, this chart is **not** deployed by default with `archie` — the
|
||||
whole point is that a customer installs it later and the fleet
|
||||
auto-aligns.
|
||||
|
||||
### What the Curator Operator's reconcile loop actually needs to do
|
||||
|
||||
This is a textbook Kubebuilder / Operator-SDK controller. The reconcile
|
||||
loop (per the Kubebuilder book and the multi-resource reconciliation
|
||||
pattern) is **level-triggered, not status-triggered**: it must always
|
||||
converge the _whole_ desired set, never react to a specific event. Per
|
||||
`Curator` CR, the loop:
|
||||
|
||||
1. **Fetch the CR.** `r.Get(ctx, req.NamespacedName, &curator)`; treat
|
||||
`IsNotFound` as a normal "already deleted" outcome (owner references
|
||||
cascade child cleanup), not an error.
|
||||
2. **Build the desired children.** Pure builder functions
|
||||
(`deploymentForCurator`, `serviceForCurator`) produce the Deployment
|
||||
(image, replicas, container port, readiness/liveness probes,
|
||||
`app.kubernetes.io/{name,instance,managed-by,component}` labels, env
|
||||
from a ConfigMap/Secret generated in the same pass) and the Service
|
||||
(label-selector matching the Deployment pods, the gRPC named port).
|
||||
3. **Set owner references** with `controllerutil.SetControllerReference`
|
||||
so deleting the `Curator` CR cascades to its Deployment + Service.
|
||||
4. **Apply idempotently** with `controllerutil.CreateOrUpdate` (or
|
||||
Server-Side Apply) — create if absent, patch toward desired if
|
||||
drifted; a manual `kubectl edit` on the Deployment is corrected on the
|
||||
next reconcile.
|
||||
5. **Watch the children** via `Owns(&appsv1.Deployment{})` and
|
||||
`Owns(&corev1.Service{})` in `SetupWithManager`, so a pod crash or an
|
||||
out-of-band edit enqueues a reconcile of the owning Curator CR. Without
|
||||
`Owns()`, drift correction does not fire.
|
||||
6. **Report status** on the status subresource (the
|
||||
`+kubebuilder:object:root`/`subresource:status` marker): set a `Ready`
|
||||
condition (via `meta.SetStatusCondition` with `ObservedGeneration`,
|
||||
and never hand-set `LastTransitionTime`), reflecting the worst child's
|
||||
readiness, and update only when `Status` changed. This is what the
|
||||
Gateway (or an operator/`kubectl wait --for=condition=Ready`) observes.
|
||||
7. **RBAC** via Kubebuilder markers: full verbs on `curators` and
|
||||
`curators/status`, plus `get;list;watch;create;update;patch;delete` on
|
||||
`deployments` and `services`.
|
||||
|
||||
The reconciler stays a flat, dependency-ordered sequence (Deployment
|
||||
before Service is not strictly required here, but the pattern is
|
||||
dependency-first and idempotent-across-orders).
|
||||
|
||||
### The smallest real first milestone ("install Curator → Gateway discovers it")
|
||||
|
||||
Keep the first milestone as small as possible while proving the whole
|
||||
flow through the `ServiceRegistry` — this is the "warm up on an optional
|
||||
thing with a clean seam" exercise (and it is exactly what the discovery
|
||||
research calls the product story). Concretely:
|
||||
|
||||
**Milestone M1 — "Curator installs and Gateway resolves it, no redeploy."**
|
||||
|
||||
- **CRD + Operator:** a `Curator` CRD and a controller that reconciles
|
||||
one Curator CR into one Deployment + one Service with owner references
|
||||
and a `Ready` status condition. (This is the whole operator; it is two
|
||||
files at its core — the API type and the reconciler.)
|
||||
- **Base chart:** `helm install archie` deploys Gateway + one
|
||||
representative base service (start with Gateway + State Store + UI)
|
||||
behind the `ServiceRegistry`, with Gateway holding a resolver that
|
||||
already knows `curator`.
|
||||
- **Curator chart:** `helm install archie-curator` (or `kubectl apply -f`
|
||||
a `Curator` CR) → the Operator creates the Deployment + `curator`
|
||||
Service → the endpoint controller writes the pod IP into the
|
||||
EndpointSlice → CoreDNS serves `curator` → the Gateway's resolver picks
|
||||
it up on re-resolution.
|
||||
- **Assertion (the real "prove it"):** the Gateway logs / health shows
|
||||
`curator` flipping from `NotInstalled` to `Installed(Requesting)`
|
||||
(ready), and a Gateway-config or Gateway-restart is **not** required. Then
|
||||
`helm uninstall archie-curator` (or delete the CR) → EndpointSlice
|
||||
empties → DNS record goes away → Gateway drops `curator` back to
|
||||
`NotInstalled`. No Gateway redeploy, no code change.
|
||||
|
||||
This milestone deliberately does **not** include: config relocation from
|
||||
`config.toml` to ConfigMaps/Secrets (a separate phased concern), the
|
||||
NATS-fallback `ServiceRegistry` implementation (can be stubbed with a
|
||||
static map for the assertion), auth/mTLS/NetworkPolicy, or the full 7
|
||||
services. It proves the one hard requirement — "install a service, the
|
||||
fleet auto-aligns, no redeploy" — and the optional-service `NotInstalled`
|
||||
semantic, with the smallest surface.
|
||||
|
||||
**What beads-epic + first issues would look like** (filing this directly
|
||||
from here, as the task asks):
|
||||
|
||||
- Epic: `archie-core-k8s` (or the codename already in use) — "K8s-native
|
||||
service discovery: base Helm chart + Curator Operator proving the
|
||||
install→discover flow."
|
||||
- Issue 1: Scaffold the Kubebuilder project and the `Curator` API
|
||||
(`group: archie.samcharles93.io`, `v1alpha1`), CRD, RBAC markers.
|
||||
- Issue 2: Implement the `Curator` reconciler (create/update/delete
|
||||
Deployment + Service, owner refs, `Ready` status condition).
|
||||
- Issue 3: Create `archie-library` chart with the shared Deployment /
|
||||
Service templates and named-ports.
|
||||
- Issue 4: Create `archie` chart deploying Gateway + State Store + UI
|
||||
with per-service `ServiceRegistry`-friendly Services.
|
||||
- Issue 5: Wire the Gateway's `ServiceRegistry` K8s implementation
|
||||
(DNS resolver) to model `NotInstalled` distinctly from `Down/Unhealthy`
|
||||
(the research's addendum requirement).
|
||||
- Issue 6: End-to-end M1 assertion (install Curator CR → Gateway resolves
|
||||
it → uninstall → Gateway drops it), likely as an envtest / kind test.
|
||||
|
||||
### Sources used for Q5
|
||||
|
||||
- Kubebuilder Book — [Getting Started](https://www.kubebuilder.io/getting-started.html),
|
||||
[Resources Managed by the Operator](https://book-v3.book.kubebuilder.io/reference/watching-resources/operator-managed),
|
||||
[Owned Resources](https://kubebuilder.io/reference/watching-resources/secondary-owned-resources)
|
||||
(for the reconcile loop, `Owns()`, owner references, status subresource,
|
||||
RBAC markers).
|
||||
- DEV Community — [Building Your First Kubernetes Operator with
|
||||
Kubebuilder](https://dev.to/tim_derzhavets/building-your-first-kubernetes-operator-with-kubebuilder-from-zero-to-production-4ipm)
|
||||
and [GoLinuxCloud — Kubernetes Operator Multi-Resource Reconciliation
|
||||
Patterns](https://www.golinuxcloud.com/multi-resource-reconciliation/)
|
||||
(level-triggered reconcile, idempotent `CreateOrUpdate`, dependency
|
||||
order, per-child status aggregation).
|
||||
- Helm — [Charts](https://helm.sh/docs/topics/charts/) (the chart file
|
||||
structure; `Chart.yaml`; template dirs; the library-chart use of
|
||||
`_*.tpl` and `type: library`).
|
||||
|
||||
### What this doesn't settle
|
||||
|
||||
- **Config relocation.** The charts reference ConfigMaps/Secrets but the
|
||||
actual move of `config.toml` semantics into them is its own
|
||||
phased decision (flagged in the discovery research) and is out of scope
|
||||
for the first milestone. The base chart should degrade gracefully with
|
||||
an in-cluster config so M1 works before the relocation is done.
|
||||
- **The NATS-fallback `ServiceRegistry` implementation.** M1 uses a K8s
|
||||
DNS resolver; the NATS KV implementation is a later, separate issue.
|
||||
- **Auth / mTLS / NetworkPolicy / cert-manager.** Called out as a
|
||||
separate concern in the discovery research; not in the first milestone.
|
||||
- **Operator SDK vs raw Kubebuilder/controller-runtime.** The loop is
|
||||
identical; the choice of kubebuilder scaffolding vs. Operator SDK is a
|
||||
tooling preference that does not change the M1 scope. Kubebuilder is the
|
||||
documented norm and is assumed here.
|
||||
- **Whether the Operator should manage the _base_ services too.** The
|
||||
first milestone only has an Operator for Curator (the optional one).
|
||||
A "fleet Operator" that reconciles all services is a larger, later
|
||||
idea; the base services can be plain chart templates for now.
|
||||
|
||||
---
|
||||
|
||||
## Sources (primary, fetched during this pass)
|
||||
|
||||
- Zhamak Dehghani, _How to break a Monolith into Microservices_ (Martin
|
||||
Fowler site) — https://martinfowler.com/articles/break-monolith-into-microservices.html
|
||||
- microservices.io, _Pattern: Database per service_ —
|
||||
https://microservices.io/patterns/data/database-per-service.html
|
||||
- Microsoft Learn, _.NET microservices: Data sovereignty per microservice_ —
|
||||
https://learn.microsoft.com/en-us/dotnet/architecture/microservices/architect-microservice-container-applications/data-sovereignty-per-microservice
|
||||
- Kubebuilder Book, _Getting Started_ —
|
||||
https://www.kubebuilder.io/getting-started.html
|
||||
- Kubebuilder Book, _Resources Managed by the Operator_ —
|
||||
https://book-v3.book.kubebuilder.io/reference/watching-resources/operator-managed
|
||||
- Kubebuilder Book, _Owned Resources_ —
|
||||
https://kubebuilder.io/reference/watching-resources/secondary-owned-resources
|
||||
- Helm, _Charts_ — https://helm.sh/docs/topics/charts/
|
||||
- (Supporting synthesis from the deep-search lanes: YuSMP strangler-fig
|
||||
guide, Md Sanwar Hossain strangler-fig, CloudRPS strangler-fig,
|
||||
Mobisoft first-microservice-to-extract, StackAuthority
|
||||
monolith-to-services blueprint, DevStarSJ database-per-service-vs-shared
|
||||
2026, Progressive Robot / DEV Aditya Pradhan database-per-service
|
||||
ownership-not-isolation, aakashx database ownership in microservices,
|
||||
AWS Prescriptive Guidance data persistence, DEV Tim Derzhavets building
|
||||
a Kubebuilder operator, GoLinuxCloud operator SDK tutorial and
|
||||
multi-resource reconciliation, Codelooru how to write a Kubernetes
|
||||
operator. These consulted sources corroborate the primary texts; the
|
||||
primary texts are cited for the load-bearing claims.)
|
||||
|
||||
Code evidence cited throughout is the archie-core tree at the time of
|
||||
writing (see the file list at the top of this document).
|
||||
@@ -1,291 +0,0 @@
|
||||
# Service discovery research for the archie-core service decomposition
|
||||
|
||||
Status: exploratory research, not a settled decision. This backs the "ideal
|
||||
state" service-oriented sketch in
|
||||
[[module-reference-awx-decomposition-vs-archie]] and its two Archify diagrams
|
||||
(`/work/artefacts/archie-core-current-state-archify.html`,
|
||||
`/work/artefacts/archie-core-ideal-state-archify.html`). Nothing here commits
|
||||
the codebase to anything; if the service decomposition itself gets approved,
|
||||
this is the input to the actual `docs/architecture/migration-decisions.md` entry
|
||||
and/or a `docs/prds/` design doc, not a substitute for either.
|
||||
|
||||
Produced by an external research pass (Pi subagents plus supervisor-run
|
||||
`deep_search_exa` queries against primary sources: NATS discovery, K8s-native
|
||||
discovery, Consul operational footprint, gRPC/xDS/mesh weight). The K8s lane
|
||||
detached mid-flight and was recovered via supervisor reply, covered from fetched
|
||||
Kubernetes docs (Service/EndpointSlice/CoreDNS/Operator + k3s Helm). Reproduced
|
||||
here close to verbatim as the record of that research; light formatting only.
|
||||
|
||||
Business framing this research was scoped against, per Sam (2026-09-05): the
|
||||
decomposition is being evaluated as a real product distribution strategy —
|
||||
possibly sold self-hosted, possibly as a managed/hosted offering (the
|
||||
RHEL/Ansible Automation Platform model: same product, sold both ways), not ruled
|
||||
to either shape. Evaluate infrastructure choices on technical merit for that
|
||||
audience, not through the lens of Sam's own homelab deployment preferences (see
|
||||
`feedback_dont_project_homelab_prefs_onto_product` in Claude's project memory).
|
||||
"Cost" in this document means operational complexity, never dollar price —
|
||||
pricing and SaaS-plan questions are explicitly out of scope here.
|
||||
|
||||
---
|
||||
|
||||
## 1. Candidate mechanisms
|
||||
|
||||
| # | Mechanism | Who stands it up | Health-aware endpoints? | "Install → auto-join" mechanics | Single-host fit | Multi-host fit |
|
||||
| --- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| 1 | **Kubernetes-native** (Service + EndpointSlice + CoreDNS), delivered via Helm chart + Operator, on k3s (single-node) or a real cluster | A whole (even if small) control plane: api-server, etcd, scheduler, controller-manager, CoreDNS, kube-proxy. k3s packages this into a ~one-command install | Yes, free — readiness probes gate which pods land in an EndpointSlice | Deploy/helm install a Service (or an Operator reconciles a CR) → CoreDNS serves the name → existing services dial it | Strong (k3s is ~½ GB RAM) | Good (real cluster, or k3s server+agents) |
|
||||
| 2 | **NATS-based discovery** (micro `$SRV` announce + JetStream KV registry) | NATS broker — already a hard dependency, so nothing new to stand up | No — only connection liveness; you write heartbeat+TTL for KV | Service connects to the bus on start, publishes/announces → peers observe the join | Excellent | Workable but requires a real NATS cluster / leaf nodes (TLS/NKey/JWT weight) |
|
||||
| 3 | **Consul** (registry + agent + DNS) | A second control plane: 3–5 Raft servers + a client agent on every node | Yes (TCP/HTTP/gRPC/TTL) | Agent registers with server; peers resolve via Consul DNS | OK (one server + agents) | Good (multi-DC, WAN federation) but per-node agent burden |
|
||||
| 4 | **etcd** (discovery substrate) | A Raft KV cluster you operate | Not natively — you own catalogue/health semantics | Lease registration + prefix watch | OK (embeddable) | Good (R3 replication) but you build the semantics |
|
||||
| 5 | **gRPC xDS / service mesh** (Istio/Linkerd/Traffic Director, proxyless gRPC) | A control plane (+ per-pod sidecar if mesh) | Yes (xDS health) | Register with control plane → EDS pushed to subscribed clients | Heavy / overkill | Heavy; K8s-first; sidecar cost (~0.2 vCPU + 60 MB/pod @1k rps in Istio-sidecar-land) |
|
||||
| 6 | **DNS-SRV / mDNS** | Nothing new | No native health; TTL caching breaks fast failover | Register a record | mDNS yes (but link-local); DNS-SRV needs a resolver you control | mDNS fails at the first router/VLAN; DNS-SRV needs your own resolver + a custom gRPC resolver (grpc-go doesn't consume SRV natively) |
|
||||
|
||||
## 2. What this narrows to
|
||||
|
||||
Six candidates surfaced, but the field collapses to two real finalists once
|
||||
three filters specific to archie-core apply: (a) the fleet is ~7 Go services,
|
||||
(b) a gRPC-sync + NATS-async mix is already the working assumption, and (c) the
|
||||
defining requirement is "customer installs a service, the fleet auto-aligns, no
|
||||
redeploy/reconfig."
|
||||
|
||||
- **Consul / etcd are dominated by K8s-native.** Consul adds a whole second
|
||||
control plane (Raft server quorum + a client agent on every node you don't
|
||||
control) — redundant if the fleet lives in K8s (buying a second control plane
|
||||
to replace one you already have), heavy if it doesn't. etcd makes you own
|
||||
catalogue + health semantics, which is exactly what K8s-native and NATS each
|
||||
give for free in different ways. Both remain viable, just not better.
|
||||
- **gRPC xDS / service mesh is the wrong tool at this scale.** Field consensus
|
||||
(multiple 2026 sources): don't adopt a mesh until 20+ services; archie-core is
|
||||
at ~7, single-language (Go), with resilience logic already in Go.
|
||||
xDS/proxyless-gRPC earns its keep only with locality-aware routing / canary /
|
||||
circuit-breaking across hosts, which nothing here signals. The durable
|
||||
takeaway isn't "use xDS"; it's that gRPC is resolver plumbing, not a registry
|
||||
— whatever registry gets picked feeds gRPC through a resolver (DNS resolver,
|
||||
or a custom one).
|
||||
- **DNS-SRV / mDNS are insufficient.** mDNS is link-local (dies at
|
||||
router/VLAN/container boundaries), so it can't span routed multi-host; DNS-SRV
|
||||
has no health and grpc-go's default resolver doesn't consume SRV natively
|
||||
anyway.
|
||||
|
||||
So the genuine decision is K8s-native vs. reuse-NATS.
|
||||
|
||||
## 3. K8s-native vs. NATS: an honest weigh
|
||||
|
||||
**Where K8s-native wins decisively:**
|
||||
|
||||
- The only mechanism that delivers "install a service → the fleet auto-aligns"
|
||||
at the infrastructure layer, with health-filtered endpoints, where the
|
||||
customer's install is a straightforward "apply a Deployment + Service" (or a
|
||||
Helm chart, or an Operator reconciling a CR). This is the single hardest, most
|
||||
product-defining requirement, and K8s solves it natively.
|
||||
- Delivers, as a side effect, almost everything a 7-service fleet needs anyway:
|
||||
health (readiness/liveness probes), orchestration (restart/scale), config
|
||||
(ConfigMaps/Secrets), rollouts, clean external exposure (Ingress/Gateway). Not
|
||||
extra weight for its own sake — buying pieces that would otherwise be
|
||||
hand-built.
|
||||
- The hosted/managed path is free. If the product is ever run for customers (the
|
||||
"sold both ways" shape kept open above), K8s runs anyway. K8s-native discovery
|
||||
makes self-hosted and hosted deployments use identical discovery semantics —
|
||||
one codebase, no divergence. This is the RHEL/Ansible Automation Platform
|
||||
lesson: same product, sold both ways, same internal architecture.
|
||||
|
||||
**Where NATS wins:**
|
||||
|
||||
- Zero new infrastructure. NATS is already a hard dependency and already in the
|
||||
deployment (embedded, or the existing `docker-nats-stack.toml`). For the
|
||||
lowest-end single-host customer who wants "one binary dropped on a box," NATS
|
||||
discovery means no cluster, no K8s — just the bus already running.
|
||||
- Genuinely idiomatic: a service connects, announces via the micro `$SRV` tree
|
||||
(PING/INFO/STATS) or a JetStream KV record, and disappears the moment its
|
||||
connection closes. Re-join = "open the connection and publish." No per-service
|
||||
config, no sidecar, no hand registration.
|
||||
|
||||
**Where NATS genuinely falls short for this product:**
|
||||
|
||||
1. It's a NATS service locator, not a gRPC endpoint registry. The `$SRV`
|
||||
framework and the KV bucket hand you names/responders, not `host:port` gRPC
|
||||
endpoints. Each service's `host:port` has to be carried in metadata/KV and a
|
||||
custom gRPC resolver hand-written; gRPC's built-in resolver/health model
|
||||
won't "just work." Real integration work owned in the sync path — now the
|
||||
product's primary contract.
|
||||
2. No native health. NATS has no last-will or probe. Heartbeat+TTL (KV) must be
|
||||
implemented to distinguish "installed but unhealthy" from "not installed,"
|
||||
and stale entries are your problem. K8s readiness probes do this for free.
|
||||
3. Discovery is coupled to broker availability. If NATS is down, every service
|
||||
looks down (a hard SPOF unless NATS is itself clustered). Multi-host is where
|
||||
the cost shows: a real NATS cluster or leaf nodes, with TLS/NKey/JWT
|
||||
credential management — operator weight, not "just works."
|
||||
|
||||
The balance: NATS is a legitimate fallback and a genuine part of the answer; it
|
||||
is not a substitute for the registry that resolves gRPC endpoints with health.
|
||||
If the product's sync path is gRPC, the registry serving it should be K8s-native
|
||||
(DNS → resolver, headless-Service SRV for ports, EndpointSlice health) rather
|
||||
than a hand-built NATS registry.
|
||||
|
||||
## 4. Recommendation
|
||||
|
||||
**Primary:** Kubernetes-native service discovery (Service +
|
||||
headless-Service/DNS + EndpointSlice, served by CoreDNS), delivered as a Helm
|
||||
chart + Operator, on k3s for single-host customers and a real cluster for
|
||||
multi-host / hosted.
|
||||
|
||||
**Fallback:** NATS-based discovery (micro `$SRV` announce + JetStream KV
|
||||
registry) for no-K8s single-host installs, using a custom gRPC resolver that
|
||||
reads `host:port` from the KV bucket.
|
||||
|
||||
**Rationale, short version:**
|
||||
|
||||
- K8s-native is the only candidate that solves the hardest requirement —
|
||||
"install a service and the rest of the system joins in to align" — at the
|
||||
infrastructure layer with health-filtered endpoints and a
|
||||
customer-comprehensible install. Not extra weight for its own sake; it
|
||||
replaces a stack of pieces a 7-service product needs anyway, and makes the
|
||||
multi-host + hosted paths free from one codebase.
|
||||
- k3s packages the control plane into a ~one-command install a customer can
|
||||
stand up, and the Operator/Helm/CRD pattern is exactly the "install Curator,
|
||||
Gateway picks it up" product story.
|
||||
- NATS is not discarded — it stays in the fleet for async fan-out, and becomes
|
||||
the second discovery implementation so the smallest no-K8s customer keeps "one
|
||||
binary on a box." The fallback is the honest acknowledgment that a full K8s
|
||||
cluster is genuinely heavy for the very smallest single-node customer.
|
||||
|
||||
Why not NATS-only: it's a service locator needing hand-built gRPC endpoint
|
||||
resolution + health, and it couples discovery to broker availability. Why not
|
||||
Consul/etcd: a redundant second control plane (if K8s) or "you own the
|
||||
semantics" (etcd), with per-node agents. Why not a mesh: overkill at ~7 Go
|
||||
services; consensus is 20+.
|
||||
|
||||
### The seam that keeps both shapes on one codebase
|
||||
|
||||
The Gateway (and any service that routes to peers) should talk to discovery
|
||||
through one internal interface —
|
||||
|
||||
```go
|
||||
type ServiceRegistry interface {
|
||||
Resolve(service string) []Endpoint
|
||||
Watch(service string) <-chan Event // join/leave
|
||||
}
|
||||
```
|
||||
|
||||
— with two implementations: a K8s one (DNS / EndpointSlice / custom resolver)
|
||||
and a NATS one (KV / `$SRV`). The rest of the code is registry-agnostic. This is
|
||||
what makes "K8s-native primary, NATS fallback" a coherent architecture rather
|
||||
than a fork: business logic doesn't change, only the registry injection point
|
||||
does.
|
||||
|
||||
## 5. End-to-end: "install Curator, Gateway discovers it"
|
||||
|
||||
**Path A — K8s-native (primary):**
|
||||
|
||||
1. Customer installs the product (`helm install archie`, or pre-provisioned on
|
||||
k3s). Base services (Gateway, UI, Messaging, Scheduler, Execution, State
|
||||
Store) each deploy as a Deployment + Service; Gateway is always up and
|
||||
already holds a resolver for every known service name.
|
||||
2. Customer installs Curator: `helm install archie-curator`, or the Operator
|
||||
watches a `Curator` Custom Resource and reconciles it — creating a Deployment
|
||||
(pods) + a `curator` Service.
|
||||
3. The Service's label selector matches the Curator pods; the endpoint
|
||||
controller writes their IPs into an EndpointSlice. Readiness probes gate
|
||||
which pods are "ready" (a Curator that only registers once healthy won't
|
||||
receive traffic).
|
||||
4. CoreDNS immediately serves `curator.<ns>.svc.cluster.local` (A record; a
|
||||
headless Service additionally gives an SRV record with the port).
|
||||
5. The Gateway resolves `curator.<ns>.svc.cluster.local` through its gRPC DNS
|
||||
resolver (or a K8s-aware resolver). On the next re-resolution/update it picks
|
||||
up the new endpoint. No Gateway redeploy, no Gateway config change — and
|
||||
because it's DNS, the Gateway code doesn't even need to know it's running
|
||||
under K8s.
|
||||
6. Removal: `helm uninstall archie-curator` (or scale to 0 / delete the CR) →
|
||||
EndpointSlice empties → DNS record disappears → Gateway's resolver drops it.
|
||||
Clean.
|
||||
|
||||
**Path B — NATS fallback (single-host, no K8s):**
|
||||
|
||||
1. One NATS (embedded, or external via the existing compose stack) is the shared
|
||||
bus; its URL is part of the base install.
|
||||
2. Every service, on start, connects to that URL and either (a) registers via
|
||||
the micro framework (`AddService("curator", "1.0.0", …)`), appearing on the
|
||||
`$SRV` tree, or (b) writes its `host:port` + version into a JetStream KV
|
||||
bucket (`archie/registry/curator/<id>`) and heartbeats it with a TTL.
|
||||
3. The Gateway holds a live roster (from `$SRV.INFO` or a KV watch) and feeds it
|
||||
into a custom gRPC resolver mapping service-name → `host:port`.
|
||||
4. Customer starts one Curator binary (`archie-curator`, or `docker run` the
|
||||
image) with the same NATS URL in its config. It connects, announces, and
|
||||
heartbeats. The Gateway's roster observes the new entry (within one
|
||||
announce/heartbeat window) and starts routing to it. No Gateway restart, no
|
||||
config change beyond the shared NATS URL already present in the base install.
|
||||
5. Removal: stop Curator → its connection closes → it leaves `$SRV` immediately
|
||||
and its KV record expires via TTL. The Gateway routes that capability to "not
|
||||
installed."
|
||||
|
||||
## 6. Failure-mode honesty
|
||||
|
||||
- **K8s-native:** pod death → readiness fails → dropped from EndpointSlice
|
||||
within seconds, so the gateway stops routing to it (health-aware). DNS TTL
|
||||
caching is mostly harmless because a Service's ClusterIP is stable and all
|
||||
churn lives behind it in the EndpointSlice. If the control plane goes down,
|
||||
already-running pods keep serving and DNS still resolves from cache; only new
|
||||
scheduling/propagation halts. Known gap: cross-cluster and off-cluster
|
||||
consumers (client-side resolvers, a worker fleet on VMs) need ExternalDNS or a
|
||||
bridge. mTLS/auth, if needed, is a separate concern (NetworkPolicy /
|
||||
cert-manager), not the mesh.
|
||||
- **NATS fallback:** service dies → dropped from `$SRV` immediately, KV record
|
||||
lingers until heartbeat-TTL (bounded staleness). Broker unreachable → every
|
||||
service appears down (hard SPOF unless NATS is clustered). Plain subjects
|
||||
aren't a consensus store (split-brain across partitions possible); JetStream
|
||||
KV gives Raft per stream but KV placement across hosts needs its own
|
||||
decisions. Health semantics must be built by hand.
|
||||
|
||||
Both paths are robust against "a service dies"; the difference is who does the
|
||||
health checking — K8s readiness probes do it for free, NATS makes you build it.
|
||||
|
||||
## 7. Addendum — recovered K8s lane, optional-service semantics
|
||||
|
||||
A separately recovered K8s-focused research lane landed independently on the
|
||||
same verdict (K8s-native as the canonical, declarative, self-healing
|
||||
fleet-discovery answer; fits multi-host and the AAP-style "sold both ways" model
|
||||
best) and confirmed the same install → Operator → CoreDNS → resolver flow above.
|
||||
It sharpened one point specific to archie-core's shape:
|
||||
|
||||
**The optional, intermittently-running Curator needs explicit "absent" semantics
|
||||
under K8s.** A scaled-to-zero or not-yet-created Curator has no ready endpoint
|
||||
and no DNS record — the Gateway's gRPC `dns://` resolver gets `NXDOMAIN`/empty
|
||||
resolution, and this must be treated as "Curator is disabled," not "Curator is
|
||||
broken." Concretely:
|
||||
|
||||
- Lazy, on-demand re-resolution — don't pin a dead subchannel as a hard failure.
|
||||
- A distinct `NotInstalled` vs. `Down`/`Unhealthy` state for routing — the same
|
||||
distinction the NATS path needs a KV "installed" marker to express. Under K8s,
|
||||
health comes free (readiness gates the EndpointSlice), but the _presence_ of
|
||||
an optional service still has to be modelled as a resolution outcome, not a
|
||||
failure.
|
||||
|
||||
This is a new implementation requirement on both paths (`ServiceRegistry`'s
|
||||
`Resolve`/`Watch` contract needs a way to express "absent" distinctly from
|
||||
"unhealthy"), not a change to the primary/fallback recommendation.
|
||||
|
||||
Two secondary observations from that lane, noted but not verdict-changing:
|
||||
|
||||
- **Two discovery systems, not one.** Under K8s, sync gRPC is served by cluster
|
||||
DNS/EndpointSlice, while async NATS status/telemetry is served by NATS's own
|
||||
clustering. These should not be conflated — this is exactly why the
|
||||
`ServiceRegistry` seam matters: it isolates the sync path and keeps NATS
|
||||
purely for async fan-out, as already planned.
|
||||
- **Config relocation.** Moving install/run/upgrade from `config.toml` into
|
||||
ConfigMaps/Secrets is a real change to how archie-core is deployed, worth a
|
||||
deliberate PRD/settled-design before committing — a phased concern, not a
|
||||
blocker for the discovery decision.
|
||||
|
||||
## Bottom line
|
||||
|
||||
Treat Kubernetes-native discovery (Helm chart + Operator on k3s / a real
|
||||
cluster) as primary, and reuse NATS as the built-in fallback so single-host
|
||||
no-K8s customers still get "install and auto-join." This is the only ordering
|
||||
that satisfies the hardest requirement at the infrastructure layer, keeps the
|
||||
hosted path free from one codebase, and doesn't force the smallest customer into
|
||||
a full cluster. The two implementations live behind one `ServiceRegistry`
|
||||
interface, so neither is a fork. The one added implementation requirement is the
|
||||
optional-service "absent ≠ down" resolution model on both paths.
|
||||
|
||||
Full recovered K8s-lane transcript, for the record: session path
|
||||
`.../cf1825c4-0c08-4aaa-9ea1-aac40893825f/run-0/session.jsonl` (external to this
|
||||
repository; not reproduced here).
|
||||
@@ -145,6 +145,8 @@ type navNode struct {
|
||||
// - archive/ superseded design. Publishing it competes with the current
|
||||
// architecture for a reader's attention, which is the exact failure this
|
||||
// repository already fights.
|
||||
// - design/ design handoff bundles (prompts, mockups, theme tokens):
|
||||
// inputs to building the UI, not pages to read.
|
||||
// - inspiration/ research notes that discuss other products by name.
|
||||
// - news/ release notes, which tools/newsgen owns and a renderer reads
|
||||
// from releases.json.
|
||||
@@ -167,7 +169,7 @@ type navNode struct {
|
||||
// renderer that reads an artifact cannot see why a page is absent from it, and
|
||||
// neither can the next person deciding where a new page belongs.
|
||||
var (
|
||||
heldBackTrees = map[string]bool{"archive": true, "inspiration": true, "news": true}
|
||||
heldBackTrees = map[string]bool{"archive": true, "design": true, "inspiration": true, "news": true}
|
||||
heldBackPages = map[string]bool{"github-token.md": true}
|
||||
developmentTree = map[string]bool{"architecture": true, "prds": true, "development": true}
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user