Repository navigation
Before going public: Apache-2.0 on the site, old AI tool grants narrowed, delete scope for Lists and Tags, self-host fixes - #108
Merged
Conversation
…, one ORIGIN, localhost dev sign-in, fixed rate-limit names Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZorAwPFkDvfWHxJNqzu9B Signed-off-by: NiallJoeMaher <nialljoemaher@gmail.com>
…env and build-time origin; worker reads .env first Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZorAwPFkDvfWHxJNqzu9B Signed-off-by: NiallJoeMaher <nialljoemaher@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
The leftovers from the readiness reviews, and a third architecture pass, before the repo goes public.
Licence on the site. The open-source page, the home page's structured data and two blog posts in all ten languages said AGPL-3.0 for the server and MIT for the apps. They now say Apache-2.0, and so do the design boards, the spec and the iPhone app-icon podspec.
Old AI tool grants narrowed. Before #107, an AI tool that named no scope got delete and the account.
narrowAiGrants(packages/db/src/ai-tools.ts) removeslibrary:deleteandaccountfrom the consents and refresh tokens of every client that isn't one of our apps.claimOnce("narrow-ai-grants-2026-10")).Deleting a List, a Tag or a highlight needs
library:delete, like deleting an Item. A default API key could delete a List for good: its order, notes and shares. Our own apps already ask for delete. The consent copy now names all four, in ten languages. There is a route test.Self-host fixes
ORIGINandHOSTlive inapps/web/lib/origin.tsand every file imports them. About 15 files used to work them out themselves.robots.txt,sitemap.xmlandllms.txtused to be prerendered with the address the image was built with. A Docker image namedlocalhost:3000in its sitemap.docker-compose.ymlnow passesDIGEST_FROM,EMAIL_REPLY_TO,WELCOME_FROM,DIGEST_SECRETandAPPLE_TEAM_ID.docs/self-host.mddocuments them, but they never reached the containers..envbefore its imports (apps/web/load-env.ts). Before,ORIGINwas fixed tolocalhost:3000in the worker, and the grant cleanup would have treated the local extension as an AI tool.docs/self-host.mdlists the identifiers to change before building it for your own team.Smaller
next dev, openinglocalhostredirects toBETTER_AUTH_URL's127.0.0.1, so you don't sign in and land signed out. It is dev only, so the rule is never fixed into a build.publicRoutetakes a fixed name for its per-IP limit. A token or handle in the path no longer gets its own bucket.packages/db/src/lists.tswrites that came after an ownership check now includeuserIdtoo, as the house rule says.public.ts.@pluck/mcp-serverfrom@pluck/mcpand says whereworker.tslives.llms.txtno longer says "your AI cannot delete anything".@plucknpm scope is ours before publishing.Not done, after launch: English server errors still show in the translated apps (handle taken, share limits). Each client should map the error code to its own words.
Test, locally on this branch:
pnpm typecheck,pnpm lint,pnpm test(443),pnpm e2e(56) andpnpm designpass. Also checked by hand:Host: localhostto127.0.0.1with the query kept;robots.txtis no longer prerendered;ORIGINcomes from.env.Merged on local checks while Actions minutes are out.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GZorAwPFkDvfWHxJNqzu9B