Fix puter.js docs and types drift 10 aug - #3531
Merged
reynaldichernando merged 1 commit intoAug 10, 2026
Merged
Conversation
Collaborator
Author
|
some stuff are intentionally left as is because it will just confuse devs + our checker incorrectly tagged something and some other stuff will need to be in its own PR/issue (new features) |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reduces drift between the puter.js SDK runtime, its TypeScript declarations, and the public documentation by updating types and docs across several API families (AI, FS, KV, UI, Auth, Peer, Utils, Objects).
Changes:
- Updates puter.js TypeScript module declarations to match current runtime behavior (UI, KV pagination, FS options, Auth, AI).
- Refreshes and expands documentation pages for multiple APIs (UI, FS, Auth, AI, Utils, KV) to reflect supported options/behaviors.
- Adds dedicated Object docs for Peer connection/server types and wires them into the docs sidebar and Objects index.
Reviewed changes
Copilot reviewed 26 out of 31 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/puter-js/types/modules/ui.d.ts | Adds x/y positioning options to ContextMenuOptions. |
| src/puter-js/types/modules/kv.d.ts | Adjusts typing for the paginated kv.list() return mode switch. |
| src/puter-js/types/modules/filesystem.d.ts | Adds readdir recursion/depth options; documents stat.returnWorkers; makes write data optional. |
| src/puter-js/types/modules/auth.d.ts | Adds request_auth option to auth.signIn(). |
| src/puter-js/types/modules/ai.d.ts | Makes ChatMessage.images optional; adds streamed chunk image/error fields; adds Replicate txt2img option types. |
| src/docs/src/Utils/print.md | Documents puter.print(text, options) and escapeHTML. |
| src/docs/src/Utils/env.md | Documents additional puter.env values (nodejs, web-worker, service-worker). |
| src/docs/src/UI/setMenubar.md | Documents the theme option for setMenubar. |
| src/docs/src/UI/contextMenu.md | Documents theme, x, y (standalone-only behavior explained). |
| src/docs/src/UI.md | Updates UI index links (adds showWindow/hideWindow, fixes puter.exit() link, adds contextMenu). |
| src/docs/src/sidebar.js | Adds sidebar entries for PuterPeerConnection and PuterPeerServer objects. |
| src/docs/src/Perms.md | Expands platforms to include websites. |
| src/docs/src/Peer/serve.md | Links return type to the new PuterPeerServer object doc and shortens inline description. |
| src/docs/src/Peer/connect.md | Links return type to the new PuterPeerConnection object doc and shortens inline description. |
| src/docs/src/Objects/puterpeerserver.md | New object documentation page for PuterPeerServer. |
| src/docs/src/Objects/puterpeerconnection.md | New object documentation page for PuterPeerConnection. |
| src/docs/src/Objects/chatresponsechunk.md | Documents image and error streaming chunk shapes. |
| src/docs/src/Objects/app.md | Notes optional user_email in App.users results and when it appears. |
| src/docs/src/Objects.md | Adds peer object links to the Objects index. |
| src/docs/src/KV/decr.md | Adds the 64-bit integer limit note to decr() docs. |
| src/docs/src/FS/write.md | Documents data as optional and expands supported data types. |
| src/docs/src/FS/upload.md | Documents upload progress callbacks with an example. |
| src/docs/src/FS/stat.md | Documents returnWorkers option. |
| src/docs/src/FS/readdir.md | Documents recursive and depth options. |
| src/docs/src/FS/move.md | Documents newName option. |
| src/docs/src/FS.md | Adds getReadURL() to the FS API index. |
| src/docs/src/Auth/signIn.md | Documents request_auth option. |
| src/docs/src/Auth.md | Adds getMonthlyUsage() and getDetailedAppUsage() to the Auth index. |
| src/docs/src/Apps/create.md | Clarifies indexURL failure behavior and makes title optional in docs. |
| src/docs/src/AI/txt2img.md | Documents input_image_mime_type and clarifies raw-base64 behavior. |
| src/docs/src/AI.md | Adds listModelProviders() to the AI index. |
馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
closes #3485
summary:
AI
Apps
Auth
Cloud Storage
Key-Value Store
Peer
UI
Perms
Utilities
Objects