[codex] Split PersonalOS into independent plugins#74
Draft
artpi wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR splits the PersonalOS monolith into a lean family of independently installable, WordPress.org-ready Personal plugins built around the shared Knowledge/Guidelines runtime.
The split keeps shared runtime behavior in bundled helper classes, not a required base plugin, so every generated ZIP can install on its own and interoperate through WordPress-native surfaces: Knowledge posts, Knowledge type terms, REST, cron, post meta, user meta, and the Abilities API.
Sub-plugin features
Personal Notes (
personal-notes)artifact,note, and source terms such asmanual.pos/noteblock and package-local editor assets.Personal Readwise Sync (
personal-readwise-sync)artifact,note,readwise,synced, andreference.readwise_id, category, author, source URL, and source hashes.pos/readwiseandpos/book-summaryblocks./pos/v1/openai/*route.Personal Evernote Sync (
personal-evernote-sync)artifact,note,evernote,synced, andreference.evernote_guid,evernote_content_hash, source URLs, source hashes, and per-user ownership.Personal TODO (
personal-todo)artifactandtodo, without usingplanor ordinarypersonalosterms.reminders_id,pos_blocked_by,pos_blocked_pending_term,pos_recurring_days, and URL.todo_notecomments attached to the task Knowledge post.Personal AI Chat (
personal-ai-chat)artifact,conversation,ai-chat, andpersonalos.wp_ai_client_prompt()->generate_text()when available, with Connectors/provider setup kept outside the package.wp_get_abilities()instead of depending on TODO or Notes PHP classes.Shared split foundation
shared/phpand copies them into each ZIP underincludes/sharedduring packaging.Build, packaging, and local dev
packages/<slug>/buildafternpm run build.tools/package-plugin.mjsto build one ZIP per package.tools/verify-split-packages.mjsas a store-readiness gate for headers, readmes, privacy disclosures, ZIP shape, bundled helpers, block assets, vendor runtime files, and monolith/sibling coupling..wp-env.jsonwith the split package suite and adds one-package wp-env configs plus a legacy Abilities config.Validation
Passed locally:
npm run buildnpm run package:pluginsnpm run verify:split-packagesgit diff --checkKnown local environment blocker:
npm run test:unit:backendcould not run because wp-env reportsservice "tests-cli" is not running container #1. Per repo instructions, I did not try to repair the wp-env environment.Build warnings observed but not introduced by the split package path:
src/notebooks/notebooks.jsimporting missingflagfrom@wordpress/iconsindex.jsbundle size warnings