58 Commits

Author SHA1 Message Date
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
1f37780065 chore: add advisory code quality review workflow 2026-06-13 15:13:25 +07:00
Tommaso Casaburi
e0f10ca343 chore(dev): add production preview launcher 2026-05-30 17:33:07 +07:00
Tommaso Casaburi
6d07c8ce0b docs(agents): add generated LLM context workflow 2026-05-20 14:48:34 +07:00
Tommaso Casaburi
b69bd764ec feat(release): add signed release manifest 2026-05-12 16:58:33 +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
c8ce0c83a3 chore(deps): switch to @bitsocial/bitsocial-react-hooks@0.1.2
- Drop the @bitsocialnet/bitsocial-react-hooks tarball install in favor
  of the canonical @bitsocial/bitsocial-react-hooks@0.1.2 from npm.
- Remove kubo direct dep (now bundled inside pkc-js via the hooks).
- Bump i18next 23 -> 25, react-i18next 13 -> 16,
  i18next-http-backend 2 -> 3, @vitejs/plugin-react 4 -> 6 to
  match 5chan.
- Remove the obsolete scripts/patch-bitsocial-react-hooks-esm.cjs
  postinstall hook (only patched the old tarball layout).
- Update AGENTS.md package scope reference.
2026-04-27 13:46:41 +07:00
Tommaso Casaburi
2553c43fd3 fix(dev): auto-open portless URL after vite is ready
Vite's built-in server.open fired before portless was reachable and
used the wrong hardcoded URL, so yarn start opened a 404. Disable
vite's open when PORTLESS_URL is set and explicitly open the
branch-scoped URL from start-dev.js after HTTP 2xx/3xx readiness.
2026-04-18 13:54:43 +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
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
1efff4fed7 fix(hooks): preserve account communities on updates
Wrap setAccount in the compat layer so seedit keeps internal account fields during partial updates, and extend the install-time hooks patching to normalize legacy account communities data and guard role-sync lookups.
2026-03-31 19:36:12 +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
ba4c2a11f6 Delete verify-executable.js 2026-01-30 11:53:20 +08:00
plebeius
dd5efca0fb fix CI 2026-01-29 19:17:08 +08:00
plebeius
88380e908d fix CI 2026-01-29 18:00:44 +08:00
plebeius
7ad3bde98d attempt to fix CI 2026-01-29 17:33:19 +08:00
plebeius
7441adea6b Update find-forge-executable.js 2026-01-29 15:30:31 +08:00
plebeius
4705015381 fix(verify-executable.js): prevent overlapping port checks 2026-01-29 14:49:25 +08:00
plebeius
d65e2d43b7 refactor: migrate from electron-builder to Electron Forge and use kubo npm package
Migrated build system from electron-builder to Electron Forge with new configuration in forge.config.js. Replaced manual IPFS binary downloads with kubo npm package, updating start-ipfs.js to resolve binaries from node_modules. Simplified CI workflows to use new build scripts and verification helpers. Added scripts to find and verify executables in Forge output directory.
2026-01-29 14:39:27 +08:00
plebeius
e9ee4b35cb Add audit mode to remove unused translation keys 2026-01-16 17:24:14 +01:00
plebeius
27b4c3d98c update links for rebrand 2026-01-16 17:21:37 +01:00
plebeius
49baceee58 Create update-translations.js 2025-10-24 17:30:01 +02:00
plebeius
afb4be7ff5 fix eslint 2025-09-27 13:31:21 +02:00
plebeius
b53736f40d docs(release): add Windows SmartScreen guidance to release notes 2025-09-27 12:34:22 +02:00
plebeius
4c53e471af Update release-body.js 2025-09-26 22:19:58 +02:00
plebeius
f310e83245 Update release-body.js 2025-09-26 22:07:32 +02:00
plebeius
237ad4209b Update release-body.js 2025-08-19 14:09:54 +02:00
plebeius
6a37fb1340 chore(release-body): add macOS Gatekeeper xattr instructions in release notes 2025-08-19 13:44:24 +02:00
plebeius
ac9860a4aa chore(ci): enable mac arm64 with unsigned DMGs; keep win x64; linux x64+arm64 2025-08-19 12:42:35 +02:00
plebeius
4e571bb3b4 Update release-body.js 2025-08-18 13:28:45 +02:00
plebeius
6c1c3ecd07 ci(release): fix mac arm failure, add arch matrices, arch-aware IPFS, and OS-grouped release notes
Replace ensurepip with setup-python on macOS-14; build and publish arm64/x64 variants for mac/linux/windows; select IPFS binaries by target arch (with SEEDIT_BUILD_ARCH override); generate cleaner OS-grouped release notes from actual dist artifacts.
2025-08-18 13:23:23 +02:00
plebeius
abe0c41b20 Update release-body.js 2025-08-17 18:47:33 +02:00
plebeius
d5564867a8 Update release-body.js 2025-08-09 19:37:45 +02:00
plebeius
f1b1eccb59 chore(package.json): v0.5.7 2025-08-06 19:56:57 +02:00
plebeius
f884366e6e chore(package.json): v0.5.6 2025-06-18 23:01:15 +02:00
plebeius
ea4bcceb56 Update release-body.js 2025-06-18 22:10:50 +02:00
plebeius
e350be66bf Update release-body.js 2025-06-13 18:30:48 +02:00
plebeius
0edae1b5b8 Update release-body.js 2025-06-09 19:15:27 +02:00
Tom (plebeius.eth)
6a3e4f09c6 chore(package.json): v0.5.3 2025-06-01 20:17:09 +02:00
Tom (plebeius.eth)
3c82609e36 Update release-body.js 2025-05-31 23:51:14 +02:00