The icons are now made from neon-S-transparent.png, keeping the whole S
and its glow (the earlier square crop cut off its top and bottom) and
centring it in a square. With no background, the logo drops the tile's
rounded corners and shadow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar logo, the tab icons (favicon.ico at 16-64 px and a PNG) and a
new 180 px home-screen icon are made from neon-S-white.png, cropped a
little so the S fills them. The logo is a rounded tile with a soft shadow
so it stands out on the light sidebar.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without Reddit's API (no approved app), the account's history is unknown,
so posts marked as posted didn't count. Now the Reddit posts Supermarket
published or recorded feed the "posted in this subreddit in the past
week" warning in that case. They aren't the whole account, so the
own-link share and new-account warnings still need the API.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reddit now approves API apps before they get keys, so Supermarket may not
be able to post there for a while. Each Reddit draft in the Inbox can be
posted by hand instead:
- Open in Reddit saves the edits and opens old.reddit.com's submit page
for the subreddit in a new tab, with the title and text filled in, the
source link added and own-site links UTM-tagged as publishing would.
Links-only subreddits get a link post. Over ~7500 characters the text
is left out of the address.
- Copy text copies the draft's current text.
- Mark as posted (with the post's link, optional) moves it to Published
and into the Reddit history used for warnings.
Copy buttons now copy a field's current value, not its first text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LinkedIn tokens last 60 days and can't be renewed without signing in
again. The expiry LinkedIn reports is now recorded (60 days from sign-in
for older connections). The LinkedIn card says until when; from two
weeks before, the Overview, the Inbox and the card remind you, with a
Reconnect button. Once expired, LinkedIn counts as not connected, due
posts come back to the Inbox saying why, and a 401 from LinkedIn reads
"reconnect LinkedIn" instead of the raw error.
Also fixes a leftover "Settings → Credentials" in a publish error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign-in starts (with the redirect URI sent) and failures are logged, so
a failed connection can be diagnosed from `supermarket logs`. LinkedIn
sends error_description HTML-escaped, which showed as " on the
error page; it's unescaped before display.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- X refuses "localhost" in callback URLs, so its sign-in now uses
http://127.0.0.1:8470/auth/x/callback (shown on the page and sent to X);
LinkedIn and Reddit keep localhost.
- Every key, on Social accounts and the AI tab, has a "Get it" link to the
service's page for it (opens a new tab) and says where on that page to
find it. Addresses checked on 2026-11-21.
- Each network's card saves its own keys in place (htmx swaps the card),
saying "Saved." and enabling Connect when ready; no reload. Without
JavaScript it still saves and reloads.
- The shopping-cart image is the logo in the sidebar, the tab icon (PNG,
and a multi-size favicon.ico at /favicon.ico) and the touch icon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
If the Subreddits box is empty, the AI suggests up to eight, by the
relationship, each with who is there. Each is looked up on Reddit (with
the app's client ID and secret) and left out if it doesn't exist, is
private, 18+, restricted or archived; the first five kept fill the box.
The form lists every suggestion with members, post types and why any was
left out. Lookups are cached for drafting. Without Reddit keys the
suggestions are kept and the form says they weren't checked.
The Reddit client now returns ErrNotFound and ErrForbidden, and treats an
empty about listing as not found.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the entry form, "Fill in the empty boxes" reads their website. Links,
social accounts and feeds come straight from the pages (no guessing); the
AI drafts the name if missing, a description, keywords, hashtags, and
talking points set against the company profile for the relationship
chosen. Typed values stay, nothing is saved until Save, and the form says
which boxes were filled.
Website reading moves from the profile draft into internal/site, shared by
both, and now also collects links and declared RSS/Atom feeds (comment
feeds skipped; Fill takes up to three).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Left sidebar as in brain: search at the top (press /), Overview,
Inventory, the modules (Content with Inbox, Sources, Scheduled and
Published; later phases greyed out), Settings at the bottom; a top bar
with breadcrumbs, and a menu that slides in on narrow screens.
- brain's colour tokens, type, radius and shadows, with a dark theme that
follows the system setting.
- Settings as grouped tabs: Profile; Social accounts (was Credentials, now
keys and sign-in together per network); Core & Hermes; AI, which now
holds the API keys too. Old addresses redirect.
- /search matches every word across posts, fetched items, the inventory,
products and settings pages.
- Overview: a card per module, then the setup checklist, folded once done.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hermes is already set up with an Anthropic key, so AI needn't be set up
twice. `supermarket hermes` asks once, then it and update.sh copy just
the key and model to hermes-ai.json in the data folder (0600). The app
uses them when it has no key of its own, re-reading the file on each use.
Generation still calls the model directly rather than through Hermes'
API: post writing feeds it text from the web, which must not reach an
agent with a terminal, a browser and write access to the CRM.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Draft button is disabled, with a link to Settings → AI provider,
until one is set up; the Overview lists the AI provider first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Content lists the company first, at /content/own: its products from
the profile (always there to pick from), its own feeds (a new profile
field for the blog, news and releases), and new or updated pages from
its websites' sitemaps, with each page's title and description.
- Drafts from it are kind "product" (utm_campaign=product), filed under
the company's name, and prompted to promote the company's own work
without unsupported claims; on Reddit, in the makers' voice, with a
warning that self-promotion is often restricted.
This completes Phase 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Sign in with a Reddit web app; access tokens refresh automatically,
and an app-only token reads rules before sign-in.
- Reddit drafts: a title and text for one subreddit, chosen when
writing. The subreddit's guidelines and rules go into the prompt, which
asks for a community member's post that discloses the affiliation and
avoids marketing language.
- The Inbox shows the subreddit's rules (cached for a day, with Refresh)
and warns, without blocking, about promotion rules, restricted
subreddits, link-only subreddits, posting in the same subreddit within
a week, more than 1 in 10 recent posts linking to the company's sites,
and new accounts.
- Publishing makes a text post with the source link at the end, or a
link post where the subreddit takes only links.
- Migration 4 adds the draft's title and subreddit, and the rules cache.
Publishers now take a Post, which carries the title and subreddit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commits for parts 1 and 2, what still needs a real test, and the plan
for part 3 (Reddit) and part 4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Inbox: a top-level page, with a count in the menu, for everything
waiting for approval; Content's drafts are reviewed there. /drafts
redirects to it.
- Scheduling: publish a draft now or at a time (migration 3 adds
publish_at). A scheduler in the app publishes due drafts every 30
seconds. Posts more than 12 hours overdue, or refused before posting,
go back to the Inbox with the reason. Content gets Scheduled and
Published tabs.
- UTM tags on links to the company's own websites and product pages,
added when publishing; drafts stay untagged.
- The container runs in the computer's time zone, so times are shown
and read correctly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings back posting, which Phase 0 removed with the terminal interface.
- Content page: per inventory entry, fetch its X account, X hashtag
search, YouTube channel and RSS/Atom feeds (new), then select, dismiss
or restore the fetched items, which are kept in the database.
- Writing: one AI call returns a draft per channel (X and LinkedIn),
prompted from the company profile, the entry's relationship, talking
points and mention policy, and each channel's rules. Fetched text is
quoted as untrusted. An over-long X draft gets one request to shorten.
- Drafts page: edit with a live length counter that counts like X, then
publish each draft on its own. A draft is claimed before posting so it
can't go out twice; failures are kept on the draft for a retry; X
tokens are refreshed and saved.
- Migration 2 adds content_items and drafts, and turns queued posts into
drafts for the platforms they hadn't reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The logo was split as Core<span>marketing</span>, so searches for the old
name missed it during the rename.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hermes runs in CoreDesktop's sandbox, with its own network, so it can't
reach 127.0.0.1:8470. The app now also serves MCP on a Unix socket in its
data folder (/data/mcp.sock), which Hermes reaches with socat. HTTP /mcp
with the bearer token remains for other agents.
hermes/setup.sh asks for the user's own hub token (the Core now issues
per-user tokens), checks it with the hub, and stores it in Hermes' .env.
The hub only speaks SSE, and Hermes' Streamable HTTP attempt can use up
its connect time, so the setup sets transport: sse. It also warns when
Hermes' gateway is still running with the old servers.
Check-ins store the hub's own tool names, without Hermes' mcp__mcphub__
prefix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The describe|sed pipeline took sed's exit status, so with no tags
version() returned an empty string instead of the commit date.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the old Go TUI with a web app (port 8470) that runs in a
container as a CoreDesktop sibling:
- cmd/supermarket server with htmx web UI: dashboard, company profile,
inventory (partners/competitors), AI and credential settings, and a
Core & Hermes page
- SQLite storage and a secrets store under ~/.local/share/supermarket
- AI providers (Anthropic, OpenAI-compatible) behind one interface
- MCP server and a Hermes bridge to the Federated Core MCP hub
- Import of the old Coremarketing TUI's state
- install.sh / update.sh / lib.sh, Dockerfile, compose.yaml, the
bin/supermarket launcher and hermes/setup.sh
Posting is not wired back up yet; that comes in Phase 1. See PLAN.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Untrack config.yaml (now gitignored) and add config.example.yaml with
blank credentials; install.sh copies the example and sets mode 600
- Reserve room for the appended source link when asking Claude for a
post, count length the way X does, and refuse over-length tweets
before posting
- Return https://x.com/i/status/<id> for posted tweets
- Track which platforms each queued post reached so a partial failure
can be retried without double-posting
- Write config, state, posts and dismissed files atomically with 0600
- Keep refreshed Twitter tokens in memory if saving them fails, and log
the failure instead of writing to the hidden stderr
- Exit with a clear message on corrupt data files instead of panicking
- Surface save errors in the UI; show status/error messages on home
- Add tests for X length counting, the post store, and token updates
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>