22 Commits

Author SHA1 Message Date
Tommaso Casaburi
98ebe899d2 chore(skills): drop linked-issue finalization from review-and-merge-pr
Keep the PR review/merge workflow independent of GitHub issues and
Projects, matching bitsocial-react-hooks. Update all three toolchain
mirrors, record the surprise in known-surprises.md, and regenerate
llms files.
2026-07-23 19:00:49 +07:00
Tommaso Casaburi
120f43086f docs(directories): explain hybrid routing model 2026-07-21 16:50:01 +07:00
Tommaso Casaburi
7a01633683 Add competitive directory routes with exact subscriptions (#827)
* feat(directory data): add versioned route snapshots

* feat(directory subscriptions): preserve exact account state

* feat(directory routes): add contested short-route UX

* docs(directory routes): record identity boundary

* fix(directory sync): pin GitHub snapshot ref

* fix(directory routes): address review edge cases
2026-07-20 16:44:42 +07:00
Tommaso Casaburi
a0b8d85969 Remove unsupported providers and align .bso parity (#825)
* fix(addresses): remove unsupported address providers

* fix(settings): keep only Ethereum chain providers

* feat(addresses): present ENS aliases as .bso

* refactor(avatars): remove avatar functionality

* feat(parity): align terminology and settings upgrades

* fix(community routes): canonicalize .bso URLs
2026-07-18 17:27:13 +07:00
Tommaso Casaburi
e290733247 docs(ai workflow): add design guide and low-spec verification playbook 2026-07-16 15:01:25 +07:00
Tommaso Casaburi
3c691effb3 Replace directories with living default communities (#824)
* Replace directories with address-owned defaults

* Translate default community updates

* Document default community behavior

* Use comments in CID routes

* Polish default community review flow

* fix(starter-subscriptions): harden list updates

* refactor(home): derive subscription state during render

* fix(routing): harden comments link handling

* fix(electron): load tar namespace export

* fix(subscriptions): leave after provenance races

* fix(routing): autolink default TLD shorthand

* fix(starter-subscriptions): show accurate fallback warning

* fix(home): wait for default community list

* fix(onboarding): recover from storage access errors

* fix(subscriptions): surface persistence failures
2026-07-15 15:43:53 +07:00
Tommaso Casaburi
1593dc2a9b chore(ai workflow): add Ponytail simplicity pass 2026-07-10 15:30:55 +07:00
Tommaso Casaburi
340a2d132f chore(codex agents): inherit parent model settings 2026-07-10 14:45:38 +07:00
Tommaso Casaburi
13e1078fbf chore: catch up to 5chan — deps, pkc-js RPC, AI workflow, default directory subscriptions (#820)
* chore(deps): upgrade bitsocial-react-hooks to 0.1.26 and core deps

- @bitsocial/bitsocial-react-hooks 0.1.2 -> 0.1.26
- add @pkcprotocol/pkc-js 0.0.62 and @bitsocial/bso-resolver 0.0.8 (electron RPC)
- react/react-dom 19.1.2 -> 19.2.7, @types/react 19.2.16, @types/react-dom 19.2.3
- vite 8.0.5 -> 8.0.16 (dep + resolution)
- node-fetch 2 -> 3.3.2, drop @types/node-fetch (v3 ships its own types)
- @types/node 20.8.2 -> 20.19.37, fs-extra 11.2.0 -> 11.3.0
- add @electron/rebuild 3.7.2 + electron:rebuild-native script (better-sqlite3
  now ships via pkc-js)

* refactor(electron): port RPC from plebbit-js to pkc-js

- replace start-plebbit-rpc.js with start-pkc-rpc.js + start-pkc-rpc-core.js
  (5chan template, same 9138 port and auth-key handling)
- add pkc-rpc-options.js with BSO name resolvers via @bitsocial/bso-resolver
- add pkc-paths.js: data dir moves from EnvPaths('plebbit') / .plebbit to
  EnvPaths('pkc') / .pkc, with a one-time rename of the legacy plebbit data
  dir so existing users keep their communities and accounts
- main.js, start-ipfs.js, log.js now resolve data/log paths through pkc-paths
- preload.mjs exposes window.defaultPkcOptions (pkcRpcClientsOptions) and
  window.pkcRpcAuthKey via pkc-named IPC channels

* chore: rename local data dir references from .plebbit to .pkc

- electron:before:delete-data clears both .pkc and legacy .plebbit
- android icons temp dir renamed to /tmp/seedit-android-icons
- forge.config.js excludes both .pkc and .plebbit from packages
- knip.jsonc drops @plebbit/plebbit-js entries now that the electron RPC
  imports @pkcprotocol/pkc-js directly

* fix: align renderer with pkc-named account options from hooks 0.1.26

- window.defaultPlebbitOptions -> window.defaultPkcOptions (p2p. subdomain)
- account.plebbitOptions/plebbitRpcClientsOptions -> pkcOptions/
  pkcRpcClientsOptions in settings views and account import utils
- account.plebbit -> account.pkc when stripping the client instance from
  account export/editor JSON
- rpc settings data path now read from pkcRpcSettings.pkcOptions.dataPath
- account import keeps a shim that upgrades legacy plebbitOptions exports
- drop unused catch binding in start-pkc-rpc.js (oxlint)

* chore(ai): move Claude Code hooks to .claude/settings.json entry point

Adopt the reworked hook entry points: Claude Code hooks now live in
.claude/settings.json (settings-format with $CLAUDE_PROJECT_DIR paths),
the obsolete .claude/hooks.json is removed, and .cursor/hooks.json is
updated to the compact format. Hook scripts are unchanged.

* chore(ai): sync agent descriptors with 5chan rework, adapted for seedit

Port the reworked agent descriptors across .claude, .cursor, and .codex:
tools: frontmatter for read-only agents, browser-session guidance,
untrusted page-content rules, machine-path removal, and yarn doctor/knip
verification guidance.

seedit adaptations: correct the Android appId to seedit.android (the old
copies wrongly said fivechan.android), use a seedit-test-api35 AVD name,
rewrite test-apk around the direct catbox.moe FileUploaderPlugin (seedit
has no WebView upload automation or instrumentation test suite), replace
5chan board/catalog route examples with /s/<community-address> routes,
and point react-scan wiring at vite.config.js instead of the 5chan-only
src/lib/react-scan.ts.

* fix(agent hooks): port harness payload parsing and stop-gate fixes from 5chan

The shared hook implementations now parse both Cursor ({file_path}) and
Claude/Codex ({tool_input: {file_path}}) stdin shapes, normalize absolute
paths to repo-relative, emit hookSpecificOutput additionalContext on
PostToolUse so reminders reach the model, honor stop_hook_active to avoid
stop loops, skip verification on a clean tree, and exit 2 (blocking) on
verify failure. sync-git-branches keeps bitsocialnet/seedit and gains the
unmerged-PR output check.

* docs(ai): merge 5chan AGENTS.md and playbook improvements, adapted for seedit

AGENTS.md: document the harness-specific hook entry points (.claude/
settings.json, .cursor/hooks.json, .codex/hooks.json), add the
ai-workflow:check router row and command, browser-session confirmation
rules for playwright verification, the translate-skill router row, and
reworked AI Tooling Rules ordering. seedit keeps its own project
overview, changelog-based maintenance rules, and stays without
DESIGN.md/blotter/low-spec/android-usb content.

Playbooks: rewrite hooks-setup.md around the new entry points and
shared script behavior, add the committed skills/subagents index to
skills-and-tools.md, and note the canonical commit/issue-format skills
in commit-issue-format.md (without 5chan's required-scope rule, which
seedit does not use).

* chore(ai): add toolchain drift validator from 5chan

Add scripts/validate-ai-workflow.mjs and the ai-workflow:check script.
Fix the one drift it found: seedit's .claude and .cursor copies of the
profile-browsing skill disagreed on the dev-server probe URL and the
Portless note.

* chore(ai skills): port generic 5chan skill fixes and correct seedit misadaptations

Port generic improvements: stale main->master branch names in deslop and
you-might-not-need-an-effect, invalid rg --type tsx flag in
fix-merge-conflicts, the reworked verified/update-in-place readme skill,
the Chesterton's Fence rule in refactor-pass, the independent-subagent-
verification rule in review-and-merge-pr, harness-neutral wording in
inspect-elements/implement-plan/translate.

Correct seedit misadaptations left over from the original copy: test-apk
now uses appId seedit.android, a seedit AVD, and the direct catbox.moe
FileUploaderPlugin flow instead of 5chan's WebView upload automation and
instrumentation suite; profile-browsing drops 5chan board-code routes for
/s/<community-address>.

Kept seedit-flavored: commit-format (no required scope), release and
release-description (no blotter), doctor-vs-repo-standard verification
wording in implement-plan and review-and-merge-pr.

* docs(llms): regenerate llms indexes after AGENTS.md and playbook updates

* feat(directories): add directory list utils, vendored data and sync script

Port 5chan's directory machinery adapted to seedit terminology: per-code
candidate community lists, ranking/winner selection, directory codes as
subscription entries, legacy default migration transform, and a vendored
mirror of bitsocialnet/lists/seedit-directories with a sync:directories
script.

* feat(directories): resolve subscriptions and defaults from directory lists

Add hooks that fetch per-code candidate lists from the lists repo (1h
localStorage cache, in-flight dedup, vendored fallback), pick the
highest-ranked online winner with offline rotation, expand
account.subscriptions directory codes at read time, and derive the
default communities for /s/all from the union of all directory winners.
Rework the one-time auto-subscribe into the directory migration: drop
the dead legacy default communities and subscribe the 10 directory
codes under a new per-account localStorage guard.

* feat(directories): directory routes, feeds and subscribe UI

/s/<code> resolves like a community page via the directory winner while
/s/<address> keeps working; the home feed expands directory-code
subscriptions into winner addresses without flashing the empty state;
the subscribe button targets the code on directory routes with a
'subscribe to this community only' pin action; subscription lists render
directory entries as s/<code> with a (directory) marker and the resolved
community as subtitle.

* test(directories): cover directory codes, winner ranking and migration

Vitest coverage for isDirectoryCode (reserved words, dots, unknown
codes), candidate ranking and offline rotation, subscription expansion
dedupe, list normalization with defaults, and the legacy migration
transform including idempotence.

* style(directories): apply oxfmt formatting

* chore(directories): vendor real community addresses for the 10 default directories

* chore(profiling): port 5chan dev-only react-scan setup for report API and __PROFILING__ flag

Replace the @react-scan/vite-plugin-react-scan wiring with 5chan's manual
dev-only src/lib/react-scan.ts, imported in the entry file. It exposes
window.__getReactScanReport() and window.__ELEMENT_SOURCE__ (element-source
helpers the inspect-elements skill already referenced) and honors
window.__PROFILING__ to hide the toolbar during automated profiling.
Update profile-browsing SKILL.md and profiler agent copies to match.

* chore(directories): vendor .bso names for default directory communities

* fix(subscriptions): retry directory migration in-session after transient setAccount failure

* fix(electron): migrate legacy project-root .plebbit dev data dir to .pkc

* fix(directories): seed useDirectoryLists synchronously from cache/vendored data

* test(directories): guard directory codes against defaults drift

* chore(scripts): reject path-traversal file names in sync-directories

* fix(profiling): handle react-scan chunk-load failure and dedupe not-ready stubs

* style(directories): replace deprecated word-wrap with overflow-wrap

* docs(agents): align test-apk logcat reference, broaden conflict-marker scan, dedupe committed skills guidance

* chore(directories): vendor pics-posting.bso name

* fix(review): address PR feedback

* fix(review): address migration race feedback
2026-07-04 21:34:18 +07:00
Tommaso Casaburi
3ab64e8394 fix(portless): force HTTPS proxy startup 2026-04-28 14:34:23 +07:00
Tommaso Casaburi
e1cfe4f2be chore(portless): upgrade local dev URLs 2026-04-28 14:25:16 +07:00
Tommaso Casaburi
aa8ab27887 chore: sync AI tooling and AGENTS.md with 5chan
Port release-description skill across .claude / .cursor / .codex.
Align playbook content, skills, agents, and hooks with seedit
terminology (community, not directory or board).
Add AGENTS.md rules picked up from 5chan: vercel-react-best-practices
review, ready-for-review PR rule, agent model constraints,
playwright session policy, you-might-not-need-an-effect review.
2026-04-27 18:58:13 +07:00
Tommaso Casaburi
2e588f7bcf chore(agent hooks): remind on new React effects and memos 2026-04-15 13:31:13 +07:00
Tommaso Casaburi
b1d9aac99b chore(ai-workflow): require cross-browser playwright checks 2026-04-10 14:31:09 +07:00
Tommaso Casaburi
48a41d0d00 chore(agent-models): use gpt-5.4 for codex agents 2026-04-08 18:39:26 +07:00
Tommaso Casaburi
18696afa58 Merge branch 'codex/fix/portless-route-collision' 2026-03-31 19:41:39 +07:00
Tommaso Casaburi
6159ee1ede fix(dev server): avoid portless route collisions
Adopt branch-aware Portless app naming with numeric suffixes for repeated worktree runs, add a shared direct-Vite port resolver for PORTLESS=0, and keep the Electron bypass pinned to PORT=3000 so existing localhost-based dev flows still work.
2026-03-31 19:41:27 +07:00
Tommaso Casaburi
6040835a94 feat(hooks): migrate seedit to bitsocial-react-hooks
Swap the app to the latest bitsocial-react-hooks commit, add a local compatibility shim for the legacy subplebbit API surface, and keep the in-flight account-history improvements that now use hook-side paging/filtering.
2026-03-31 19:29:45 +07:00
Tommaso Casaburi
579fd4a50e fix(dev server): route default start through portless 2026-03-30 17:20:38 +07:00
Tommaso Casaburi
015c49c9c7 chore: sync AI workflow with 5chan 2026-03-19 16:12:22 +08:00
plebeius
f5daffd114 delete docs
not needed, using AGENTS.md instead
2026-01-27 17:58:50 +08:00
plebeius
e16d0537a4 add docs 2026-01-04 12:32:30 +01:00