mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 02:17:16 +01:00
main
14
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3857c7ae79 |
docs(agents): one AGENTS.md — fold verified rules in, delete the rest (#1859)
AGENTS.md is now the only repo-specific instruction file. CLAUDE.md and .claude/CLAUDE.md are one-line pointers. Deleted: .claude/rules/* (6 files), .cursor/rules/* (7), docs/api/AGENTS.md (its machine-buyer walkthrough moved into src/app/api/v1/README.md), .claude/README.md (described the deleted layout) and the archived docs/archive/development/guides/AGENTS.md. Every rule kept was checked against the code. The deploy and verify sections no longer describe GitHub Actions (off since 2026-11-15): forge/verify merges, forge-ops on Gitea deploys. Ownership and money lines corrected: owner column from getUserIdField, entity prices in their own currency. Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6ce2f2d1fd |
fix(settings): Export my data holds what it promises, and settings copy says what the product does (#1703)
Measured on orangecat.ch (2026-11-12): - "Export my data" promised "the data we store about you". GET /api/account/export returned ten tables (profile, Cat history, credits, preferences, sent messages) and nothing the person made: no pages, wallets, posts, follows, memberships, payments or notifications. - "Delete all Cat conversations" sent people to "AI settings" for memories. Memories live on the Memory tab, and /settings/ai has no memory controls. - The public contact email said "Defaults to your registration email". Since #1589 it is never pre-filled. - Integrations told developers to verify webhooks with @orangecat/sdk, which is not published (npm answers 404). Now: - The export is gathered in src/domain/account/exportAccount.ts. It adds every page the person owns, found through ENTITY_REGISTRY by each type's owner column, so a new type is exported without touching it. Wallets are read through WALLET_CLIENT_COLUMNS, without the connection secret. It also adds posts (under the user id or an actor), follows both ways, group memberships, payment requests and orders where the person is a party, notifications and Cat interest topics. Embedding vectors stay out. A failed read still fails the whole export rather than handing over a partial file. The route is a thin wrapper. - The export copy names what the file holds and what it leaves out. - The memories sentence links to the Memory tab. - The contact email help says it stays empty unless filled in and that the sign-in email is never shown. The guidance tip claiming a default is gone. - Integrations states the signing scheme (X-OrangeCat-Signature, HMAC-SHA-256 of `${t}.${raw body}`, five-minute tolerance), and the API conventions doc says the SDK is not published. Claude-Session: https://claude.ai/code/session_019MDtmw3MnN44QwEv4M52CS Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7be4d2dd1e |
feat(chat): the answer feedback loop — thumbs, transcript export, nightly review (#1398)
* feat(chat): the answer feedback loop — thumbs, transcript export, nightly review
Under every Cat answer, chatkit 0.14's thumb up and thumb down (one shape in
every fleet product): a thumb down asks why in one tap and takes a few words,
and the app posts it to POST /api/chat/feedback, stored in the new
chat_feedback table beside the conversation (RLS: insert by the owner, no
read through the API keys). A thumb on an answer still on screen resolves to
the conversation's newest stored answer, since the thread never learns the
row id of a live turn.
GET /api/chat/review-export serves the day's conversations to the fleet's
nightly reviewer (Loki) as chatkit's ChatTranscript[]: bearer
CHAT_REVIEW_TOKEN compared in constant time (401 wrong, 503 unset), never a
temporary chat, newest first, at most 50, 30 turns each, 4000 chars a turn,
the tool steps Cat took, a failed flag on a turn that died, and the thumbs —
with no name, email, user or actor id. The scope sentence is derived from
Cat's own system prompt and tool list, never typed twice.
- @bitbaum/chatkit ^0.14.0
- .env.example names CHAT_REVIEW_TOKEN; docs/reference/api/chat.md has the loop
- the export's bare {product, scope, transcripts} is a fleet wire format, so
the envelope lint rule carves it out like LNURL
- unit tests for the token check, the export shape and the feedback schema
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* chore(deps): next 16.4.2 — the audit's critical and high advisories
The dependency audit failed on this PR's head with two Next.js advisories
(>=16.0.0 <=16.4.0: unauthenticated RCE, App Router DoS), published after
main last went green. Not this PR's change; the fix is upstream, so it
rides here. `pnpm audit --audit-level=high --prod` is clean again.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
45fd5e076a |
docs: archive 2025 plans that read as current (#1351)
Forty-five 2025 plans, assessments, design scenarios, status reports and superseded business docs move to docs/archive/ (same relative path). Each described a plan or a snapshot as if it were the running system: strict:false, a five-table schema, an "organization" entity, price_sats, a Gemini /api/chat widget, a /auth/forgot-password page, Google Places, building group labels and contract voting flows that never landed. Fixed in place: NAVIGATION_UX_DESIGN.md (referenced by .claude/rules) gains a status note naming what shipped and where; GENERIC_API_HANDLERS.md lists the handler options the code actually takes; datetime_standards.md points at scripts/dev/; CONTRIBUTING.md describes the auto-merge shipping flow. Inbound links repointed (SECURITY.md at the root, SUPABASE_SCHEMA_GUIDE.md for schema). Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
24c3d140ae |
docs: archive point-in-time records, fix live docs against the tree (#1349)
* docs: archive point-in-time records, drop broken guide symlinks Status reports, progress trackers, audits, session summaries, completed migration plans and the 2025 roadmap move to docs/archive/ (same relative path), with a README saying they describe the day they were written. .ai-guides/ held only symlinks into a docs/guides/ai/ that no longer exists, tests/unit/docs/ held a stray copy of an old getting-started page, and docs/operations/PORT_MANAGEMENT_README.md duplicated port-management.md; all three are deleted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: correct drifted paths, links and versions in current docs Fix in place the reference docs agents use: point paths at where the code lives now (src/stores/auth.ts, src/lib/supabase/*, scripts/dev/*, docs/reference/api/CONVENTIONS.md, the squashed baseline migration), rewrite the development, features, operations and API index pages to list documents that exist, say plainly where something is gone (/api/metrics, the CSP report route, .envrc in the repo, Loki's `migrate` script), and correct the Next.js major. docs-truth findings: 468 -> 2 (both "Next 30/90 Days" headings in the legal overview, a checker false positive). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7e37e20616 |
fix: invitations that work (and are safe), one project payment section, AI fill keeps your edits, events on their own clock (#1262)
* fix(wallets): an extended public key never lands in a public address column Linking an xpub wallet copied the key into the entity's bitcoin_address, which public pages render as a payable address. A key on a public page reveals every address the wallet will ever derive, and wallets reject it. The selector now leaves the column empty (payers get a fresh address from the linked wallet), and the entity schemas refuse a key server-side so the Cat and the API cannot write one either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(create): AI fill never undoes an edit, a template keeps what was typed, success says live when it is live - handleAIPrefill merged the whole echoed snapshot, so a field typed while the AI was thinking went back to its old value. It now applies only the fields the AI changed, and skips any the person edited since the send. - A template pick (Previous → template) replaced the whole form. On create a dirty form now takes template values only for untouched fields. - The success screen called every new item a draft and offered Publish Now, which 400s on an already-live assistant, circle or active wishlist. It now reads the created row: live items say so and link to themselves. - A new group linked to the literal /groups/[slug]. One fillUrlTemplate fills every placeholder for both the success screen and the redirect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(dates): real date pickers, events on their own clock, availability names its zone - 'date' fields fell through to a text box: no picker, and edit forms showed the raw stored timestamp. They are date inputs now; events get a datetime-local input instead of 'Format: YYYY-MM-DDTHH:mm' text. - Events defaulted to UTC, so a creator in Zurich typing 19:00 published 21:00. A new event starts on the browser's zone, picked from a list of real zones; stored instants and template defaults are shown as that zone's wall time, so an edit cannot keep a stray +00:00 and move the night. - The availability editor dropped the schedule's zone on every change and the public page printed hours with no clock. The zone is kept (the browser's for a new schedule) and shown: '09:00–17:00 (Zurich time)'. - Bookings send the booker's zone instead of being stored as UTC. - A wishlist's event date read a day early west of Greenwich. - zoneLabel moves to utils/timezone (re-exported from domain/events/time). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(projects): one payment section — a project's own address becomes its linked wallet The project page rendered a second payment box from the legacy projects.bitcoin_address, beside the shared section that never reads it: the page could show one address and pay another, a project whose owner had no wallet showed a pay button that could not pay, and the box claimed the address was 'verified and monitored'. - Migration: each project's legacy address (on-chain, Lightning, or an xpub) becomes a wallet linked to that project, which payment resolution already prefers. Skips projects with an explicit link, group-owned projects and unclaimed owners; per-row savepoints so one odd row cannot abort a deploy; idempotent. Verified against Postgres 16. - ProjectDonationSection, BitcoinPaymentButton and useProjectDonation are gone; ProjectFavoriteButton keeps the favourite (neutral, not error red). Wishlist tiers move beside the payment section. - The floating mobile 'Support' button scrolled to an element that only existed on legacy-address projects; it targets #pay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(groups): invitations reach the invitee, can be accepted, and only by them Three implementations wrote group_invitations and none worked end to end: - Accepting inserted into group_members as the invitee, which that table's policy forbids to non-admins, so no invitation could be accepted. - Nobody was told: no notification type existed, and the only live writer (the Cat) did a raw insert with no admin, member or duplicate checks. - Security: 'Token invitations are viewable' let anyone read pending link invitations, and accept_group_invitation (SECURITY DEFINER, granted to anon) skipped its owner check for them — anyone could join such a group. Now: - Migration: drop that policy; both answer functions require the invitation to name the caller, lock the row, pin search_path and are not callable by anon; group_invite joins the notification type CHECK. Verified on Postgres 16 (stranger refused, invitee joins once, anon cannot execute). - The domain answers through those functions, notifies the invitee on create, and is the one implementation: the Cat uses it, the dead browser copy is removed. Link/e-mail invitations (undeliverable, 404 link) are no longer offered. - /dashboard/invitations/[id]: the invitee sees who invited them into what, and joins or declines — a private group is unreadable on its own page to someone not yet a member. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(groups): 'Invite' invites — nobody is added to a group without saying yes The member dialog's Invite button called addMember and put the person in the group outright, unasked. It now sends an invitation (notification + answer page), shows who is already invited, and says they join once they accept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(search): one escape for search terms — commas and brackets no longer rewrite the filter A dozen copies of term.replace(/[%_]/g, ...) fed user text into PostgREST .or('a.ilike.%x%,b.ilike.%x%') filters. None escaped LIKE's own backslash, and none quoted the value, so a comma in a search ('Smith, J') ended the condition and parentheses opened a group the caller never wrote. lib/db/likePattern: escapeLike, containsPattern for .ilike(), and ilikeAny for .or(), which double-quotes the value as PostgREST reads it. Every copy now uses it; sanitizeQuery is gone. The profile search's in-memory city filter compared against the escaped term and missed cities with _ or %. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * refactor(create): date inputs in their own field component; app locale for wall time FormField went over the 300-line component limit with the date and datetime cases; they move to fields/DateInputs, and a redundant fragment around the textarea goes. instantToWallTime reads numeric parts in APP_LOCALE, as check:app-locale requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * refactor(create): one Pay-into group for every entity that receives money Seven configs carried their own copy of the wallet group (two ids, two shapes). walletFieldGroup() is the one definition; tables that still have address columns opt into declaring them, which a wizard needs to place the group on the right step — a group with no fields shows on every step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * refactor(bitcoin): one explorer link builder; the unused bitcoin service goes Explorer links were built by hand in three places — two on mempool.space, one on blockstream.info — and none followed NEXT_PUBLIC_BITCOIN_NETWORK. lib/bitcoin/explorer builds them all. src/services/bitcoin/index.ts (347 lines, no importers) is removed and the docs that named it point at the modules that do the work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * fix(a11y): a button-styled link is one control, not a button inside a link 94 places wrapped <Button> in <Link>: a <button> inside an <a> — invalid HTML, two tab stops for one action, announced twice. <Button href> already renders the link itself, but dropped aria-label, title, id and disabled, which is why callers avoided it. It now carries them (a disabled link is announced and inert) and passes onClick through. 52 sites converted mechanically (plain href on the link, no handler on the button); 42 put a class or target on the outer link and need a look each, held by a ratchet test that may only fall. The signed-out purchase line no longer promises 'a Lightning invoice' — an xpub wallet issues a fresh on-chain address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 * refactor(bitcoin): one address-balance fetcher — refresh reports rate limits and is never stale Three fetchers read an address balance. services/blockchain (used by the wallet and project refresh) had no timeout, threw errors that matched none of the codes its caller maps, and was cached by Next for five minutes, so 'refresh' could return the old number. The treasury's had no timeout and counted confirmed funds only. lib/bitcoin/addressBalance is the one: timeout, RATE_LIMITED / API_ERROR_<status> codes, confirmed plus unconfirmed, no cache, testnet-aware. services/blockchain.ts is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BQdyreKqCfy8iwRBRUVm39 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
88a5f76aa7 |
refactor(content): blog and FAQ on bip-kit 0.5 (#1198)
The blog reads content/blog with bip-kit's readCollection instead of its own gray-matter reader; the FAQ moves from a hand-built client accordion to content/faq.md, rendered by bip-kit's Faq (native <details>, a link per question, FAQPage structured data). The long-form normalizer is bip-kit's normalizeMarkdown, of which ours was the original. gray-matter and its js-yaml pin go. Drafts are no longer reachable by URL. The blog guide is rewritten; it still described the MDX system. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|
|
9a352d3646 |
refactor: rename FleetCrown to Loki across the integration (#1016)
The sibling product was renamed on 2026-09-14. Every reference follows:
service and route paths (src/services/loki, /api/integrations/loki),
env keys (LOKI_*), the build-intent audience and timeline source ('loki'),
ecosystem config, docs, tests, and 13 file names.
Tool labels keep "Loki" capitalised: the old name had an internal capital
and passed the "looks like a name" shape test for free; a one-word name
needs listing, so softLower now carries a small PROPER_NOUNS set.
Box and data were moved ahead of this: LOKI_* keys sit beside the old ones
in the app env, the OAuth client is `loki` with the new callback host, and
timeline/metadata rows carrying the old name were rewritten.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
|
||
|
|
c022bfdf46 |
docs: sync docs with actual stack (#890)
Truth-sweep of the living docs against repo ground truth (pnpm 11.25.0, Node 24, Vitest, zod 4, TS 6, Next 16/React 19, self-hosted Supabase with file-based migrations applied on deploy): - npm/npx commands -> pnpm / pnpm exec / pnpm dlx; `run X -- --flag` loses the `--`; package-lock.json -> pnpm-lock.yaml - jest -> Vitest (config names, vi.fn/vi.spyOn, reporter examples, debug commands, framework mentions) - retired mcp_supabase_* examples -> current mechanisms: PostgREST reads, migrations as supabase/migrations/*.sql applied on deploy, box psql for DDL - version claims: TypeScript 5.x -> 6.x, Node 20 -> 24, Next.js 15 -> 16, React 18 -> 19; CI described as Node 24 + pnpm - nonexistent scripts replaced with real ones (test:comprehensive:* -> test:*, diag:supabase -> scripts/diagnostics/*, db:migrate/test: migration -> deploy-applied migrations / migration-replay.yml) - infrastructure.md deploy claim fixed: cd.yml deploys main after green CI (doc said pushes to main do NOT deploy) - zod 4 API: z.record now takes key+value schemas Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
7c43c8377a |
docs: correct stale Vercel deploy references to Hetzner reality (#449)
The bitcoin-balance-mvp handoff still listed Vercel as the deploy target (### Vercel section, 'Vercel cron job', 'Not deployed to Vercel yet'). OrangeCat has been self-hosted on Hetzner since 2026-06-12 — update these to reflect production reality so the handoff isn't misleading. Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> |
||
|
|
ebb82d20ee |
fix(security): SSRF guard for webhooks + entity-registry SSOT + CI test gating (#447)
* fix(security): SSRF guard for webhook URLs; scrub committed Supabase PATs - Webhook URLs are fetched server-side and the response body is readable by the endpoint owner, so internal targets (localhost, RFC1918, link-local/cloud metadata, CGNAT, reserved) are now rejected at mint time and re-checked before every delivery (src/lib/security/ssrfGuard.ts, 30 unit tests). Dev keeps localhost receivers working. - Delete scripts/db/apply-migration.sh (orphaned one-off carrying a hardcoded sbp_ token for the retired managed-cloud project) and redact the second dead token in docs/archive. Both tokens are dead — the managed Supabase Cloud project was retired 2026-06. - Add .gitleaks.toml: the default ruleset has no Supabase PAT pattern (why these sat unflagged); new sbp_ rule with the two dead historical tokens allowlisted so the full-history CI scan stays green. - Update SECURITY.md and API conventions doc (webhooks section was still marked "planned — not yet built"; now documents the shipped behavior including the URL policy). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TxtUEaJPtYviTwrr5Sf7Pn * perf(timeline): batch feed enrichment; parallelize reply tree and nudges - getEnrichedUserFeed did up to 3 single-row lookups PER EVENT (~60 round-trips for a 20-item dashboard/timeline page) while the batched enrichEventsForDisplay (3 queries total, already used elsewhere) sat unused — switch to it and zip the social counters back in by index. - getReplies awaited each reply subtree sequentially — now Promise.all, so thread latency no longer grows linearly with reply count. - generateNudges queried each entity type serially on the force-dynamic /api/cat/nudges path — now parallel. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TxtUEaJPtYviTwrr5Sf7Pn * fix(entities): registry is the one source for ownership columns; guard it in CI - entityListHandler now derives the ownership column from the entity registry's userIdField instead of defaulting to 'user_id'; drop the redundant userIdField:'actor_id' literals from the 8 list routes. - The profile-entities route kept its own copy of the ownership map, which had drifted (research: 'user_id') — consolidated onto getUserIdField(). - createResearch inserted without actor_id even though research_entities.actor_id is NOT NULL on the live schema — research creation could not succeed. Dual-write user_id + actor_id, same pattern as ai_assistants. - New CI guard: entity-registry-live-schema.test.ts asserts every registry tableName / userIdField / priceColumn exists in scripts/db/live-schema.json (the live-DB snapshot the deploy pipeline refreshes). - Mark src/types/database.ts as known-stale in its header: it disagrees with the live schema (missing actor_id on several tables, missing events/user_documents entirely) and gen:types writes a different file that nothing imports — do not treat it as schema ground truth. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TxtUEaJPtYviTwrr5Sf7Pn * test(ci): gate every Jest suite; repair Jest-30-broken scripts; coverage floor - test:unit only matched __tests__/unit, silently excluding 22 suites / ~280 tests under tests/unit (webhook signature crypto, idempotency keys, hasScope authorization) plus smoke/create/env — nothing gated them. The pattern now matches everything Jest discovers (94 suites, 1095 tests, ~5s), so CI and the git hooks run the full fast suite. - test:security / test:integration / test:performance / test:auth used the singular --testPathPattern flag that Jest 30 hard-rejects (and test:auth pointed at a directory that doesn't exist) — all four were broken; security:scan errored because of it. Repaired with plural flags, real patterns, and --passWithNoTests where the target set is currently empty. - Add a coverage ratchet floor in jest.config.js just below measured coverage so it can only move up. - Update developer docs that still showed the removed singular flag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TxtUEaJPtYviTwrr5Sf7Pn --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7a7170fb1b | docs: align platform status with Hetzner deploy flow | ||
|
|
2e897c5bfc |
fix Cat Credits metering and refresh AI model registry (#395)
* fix(cat): meter Cat Credits from OpenRouter's real usage.cost Prefer OpenRouter's provider-reported per-request cost (usage.cost, USD→BTC) for Cat Credits debits, falling back to the registry token-price estimate when the field is absent. Ledger metadata now records pricingSource (provider_reported | registry_estimate). Free models always meter to 0. Pinned by regression tests for the metering preference and the OpenRouter cost plumbing (buffered + streamed), guarding the prior "$0 for unknown model" leak. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(ai): refresh 2026 model roster and consolidate registry SSOT Update AI_MODEL_REGISTRY to the Q1-2026-verified roster and pricing (free, economy, standard, premium tiers), with boundary-safe resolution of provider-returned snapshot ids. model-registry.ts is now a generated projection of ai-models.ts rather than a drifted duplicate list. Refresh docs to match reality: rewrite MODEL_SYSTEM.md (provider chain, Cat Credits metering, current roster) and chat.md (authenticated /api/cat/chat contract), retiring references to the removed UnifiedAIClient/ModelStatusBadge and public /api/chat endpoint. Mark completed items in the research handoff. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Georgy Butaev <41178744+g-but@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|
|
ae55dc1f80 |
docs: consolidate taxonomy from ~40 dirs into ~13 coherent areas
The docs tree had sprawled into ~40 overlapping/singleton/empty directories. Consolidated (history preserved via git rename detection; links rewritten so no previously-working link broke): - architecture/ ← adr/, database/, + loose *_ARCHITECTURE / my-cat specs - development/ ← standards, contributing, guides, examples, templates, components, ai - operations/ ← devops (+runbooks), deployment, supabase - design-system/← design, UX, ux-improvements, branding - reference/ ← api, changelog, content, misc - forward-looking/ ← planning, improvements, implementation - archive/2026-h1/ ← point-in-time reports/plans that were loose at docs/ root - removed empty docs/analysis/; rewrote docs/README.md as a current index Verified: non-README relative-link health 81→83 OK (0 regressions, same 64 pre-existing-rot broken); all new README links resolve; external refs in .claude/ + root repointed to moved targets. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |