Commit Graph
395 Commits
Author SHA1 Message Date
KernelDeimos 2139551abf feat(data-access): move puter.js read to app driver
This is the first functional migration from ths `es:app` driver to the
`app` driver. Any call to `puter.apps.get` will go through `es:app`
after this change.
2026-01-21 23:00:45 -05:00
KernelDeimos 17b5ff4cb5 Revert "feat(data-access): move puter.js read to app driver"
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
This reverts commit f3100eca59.
2026-01-21 12:33:25 -05:00
KernelDeimos f3100eca59 feat(data-access): move puter.js read to app driver
This is the first functional migration from ths `es:app` driver to the
`app` driver. Any call to `puter.apps.get` will go through `es:app`
after this change.
2026-01-21 12:25:59 -05:00
KernelDeimos 3da318129c fix(puter.js): check for uuid before relative path
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-01-19 19:55:04 -05:00
KernelDeimos c715057065 feat(puter.js): make home directory default cwd
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
Make the home directory (AKA "~") the default CWD for puter.js, making
relative paths work in environments other than app environments (i.e.
gui or worker environments).
2026-01-19 13:29:28 -05:00
Daniel Salazar f9888e6705 feat: paginated list (#2296)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
* feat: paginated list

* fix: kv list
2026-01-16 16:16:47 -08:00
Neal Shah f4c37d4cf4 prevent signout from workers (#2276) 2026-01-13 13:18:06 +05:30
Neal Shah bb6b40be7b Support getDeveloperProfile with no arguments (#2270)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-01-12 16:06:45 +05:30
Nariman Jelveh c051a6caa6 Add automatic thumbnail generation to file uploads in GUI (#2261)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
Introduces thumbnail generation for image files during upload operations. Thumbnails are generated client-side if enabled via the `generateThumbnails` option, and are included in file metadata and operation payloads. This enhances file previews and user experience in the file system.
2026-01-11 09:38:33 -08:00
Daniel Salazar f88ca5d4bd feat: kv.remove feature to remove nested elements or list indices (#2258)
* chore: update npm version

* feat: kv.remove feature to remove nested elements or list indices

* chore: update npm version
2026-01-09 15:10:02 -08:00
KernelDeimos b5ae9181f1 dev(puterjs): add thumbnail parameter to puter.js 2026-01-09 16:36:47 -05:00
Daniel Salazar 23d7b751b9 feat: new kvstore operatios for more granular updates 🚀 (#2254) 2026-01-09 12:20:54 -08:00
Reynaldi Chernando 678363b0ba Init fix FS types (#2201)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-01-06 10:18:01 -08:00
jelveh 58c8ec7f43 Increase auth popup height to 600px
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2025-12-29 23:24:09 -08:00
jelveh 98d0c25ce8 Adjust auth popup size and style for embedded mode 2025-12-29 23:12:52 -08:00
Reynaldi Chernando a32a16d306 Fix workers types (#2198)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2025-12-23 12:35:25 -08:00
Reynaldi Chernando eb23863b6e Fix apps types (#2197)
* Fix apps types

* Remove get overload
2025-12-23 12:34:58 -08:00
Reynaldi Chernando 99220b5b18 Add optional requestCallbacks options to getUser (#2186) 2025-12-23 12:34:41 -08:00
KernelDeimos 3c1a4cd31a dev: specify 'es:app' in puter.js apps module
The EntityStorage/OM mechanism for data access is being replaced.
Specifying 'es:app' in puter.js calls will allow the ES/OM mechanism and
its replacement to be tested together to check for regressions. When the
replacement is done, we can change 'es:app' to the new service name.
2025-12-22 16:08:35 -05:00
KernelDeimos 7786deefb7 lint: sync Apps.js with linter rules
This is comitted separately because it should not have any functional
changes. Do not skip this in a `git bisect`, but do not revert this when
testing commits for functional changes.
2025-12-22 16:08:35 -05:00
Neal Shah 9aefed5515 add user iteration to all methods which return an App object (#2203)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
2025-12-18 17:03:31 -05:00
jelveh 9d307d54ed Adjust font size in UsageLimitDialog message 2025-12-17 20:14:49 -08:00
Neal Shah 21fb86752a App telemetry user iteration (#2188)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
* add app-telemetry interface, and user-iteration feature

* Rid app-user-count.ts from workspace imports

* Remove semicolon at the end of query :(
2025-12-16 19:26:27 -05:00
jelveh a3bcc488de Update usage limit dialog to indicate insufficient funds
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
2025-12-16 11:15:50 -08:00
Nariman Jelveh dc78af3590 Add usage limit dialog and integrate with driverCall_ (#2185) 2025-12-16 10:37:26 -08:00
Reynaldi Chernando dc827f90c4 Fix more puter.js typescript types (#2181)
* Fix networking types

* Fix os types

* Fix UI types

* Remove constructor in util.d.ts

* Fix worker types

* Fix puter.d.ts

* Fix apps types

* Change socket and tlssocket back to psocket and ptlssocket
2025-12-15 19:29:04 -05:00
Reynaldi Chernando 85c548d0d3 Fix speech2speech options (#2133) 2025-12-15 16:11:25 -08:00
jelveh 66cf679aab Delete devlog.md 2025-12-15 13:59:53 -08:00
Nariman Jelveh 560307d587 Remove unused putility features (#2168)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
* Remove smol utility library and update usage

Deleted the smol utility library from putility, removed its documentation, and refactored code in linux.js to use native string methods instead of smol.split. This simplifies the codebase by eliminating a redundant utility.

* Remove `putility.libs.time` and inline time utilities

* Update imports and time constant usage in core modules

Replaced usage of time.SECOND with a local SECOND constant in ServerHealthService for clarity and removed unused import. Updated all service imports in TestCoreModule to explicitly include the .js extension for compatibility with ES module resolution.

* Remove unused `wrap_text` and `ansi_visible_length` functions

Deleted the wrap_text and ansi_visible_length utility functions from string.js, as they are no longer needed or used in the codebase.

* Remove `format_as_usd` utility and related docs

The format_as_usd function and its documentation have been removed from the codebase and README files. This cleans up unused or deprecated currency formatting utilities.

* Remove osclink utility and update references

The osclink function and its documentation have been removed from putility. All usages in backend modules have been updated to use plain URLs instead of OSC 8 hyperlinks. This simplifies string utilities and avoids terminal-specific formatting.

* Remove PosixError utility module

* Remove NariMethodsFeature and related references

Deleted the NariMethodsFeature module and removed its usage from AdvancedBase and PuterJSFileSystemModule. This simplifies the codebase by eliminating unused or deprecated NARI method support.
2025-12-13 17:59:16 -08:00
jelveh f838fe4ecc Remove Threads module from puter-js 2025-12-13 00:06:43 -08:00
Nariman Jelveh ae92233b95 Remove fat from puterjs (#2156)
* Refactor puter-js to remove putility and service layer

* Add fallback for IPC listener registration

* Remove TeePromise in favor of `createDeferred` pattern

* Update utils.js

* Bump version to 2.2.0 in package.json

* Remove model name normalization and driver mapping logic

Eliminated the code responsible for normalizing model names and mapping models to specific AI drivers. The default driver is now set to 'ai-chat', simplifying the model selection and driver assignment process.

* Simplify AIService selection logic in image generation

* Remove unused Together image model constants
2025-12-12 19:44:15 -08:00
Daniel Salazar ef69865dd1 chore: decrease uninmportant logs (#2158)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
2025-12-12 18:50:01 -08:00
jelveh 54c2d9768e Update package.json 2025-12-12 13:47:27 -08:00
jelveh 348e000863 Bump puter.js version to 2.1.15 and update metadata
Added a homepage field and specified the repository directory in package.json for improved project metadata.
2025-12-12 13:43:25 -08:00
Reynaldi Chernando ce2a509221 Fix hosting types (#2153) 2025-12-12 12:55:59 -08:00
Reynaldi Chernando 17ca4c7c93 Fix speech2txt options (#2150) 2025-12-12 12:55:51 -08:00
Reynaldi Chernando e431ac265c Fix FS types (#2134) 2025-12-12 12:55:39 -08:00
Reynaldi Chernando 697b3424c7 Add missing AI types (#2151) 2025-12-12 12:55:20 -08:00
Reynaldi Chernando c950be13f2 Fix KV types (#2152) 2025-12-12 12:54:13 -08:00
Reynaldi Chernando bcd96523cb Add auth types (#2117) 2025-12-10 16:44:31 -05:00
Reynaldi Chernando 7b5d90d678 Fix AI types (#2100)
* Remove constructor and global methods

* Fix streaming type and stricter type

* Add missing chat options param

* Fix messages type

* Fix img2txt types

* Fix txt2img types

* remove unused

* Fix test mode in txt2img

* Fix txt2vid types

* Fix speech2txt types

* Fix speech2speech types

* Fix txt2speech types

* Add missing chat types

* Fix missing txt2speech types
2025-12-08 14:06:36 -08:00
KernelDeimos 277ee6ca5a rename: requestPermission -> request
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
2025-12-05 13:06:29 -05:00
Daniel Salazar ebeaf33412 npm: publish new readme (#2098)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
* fix: togetherAi metering

* npm: publish new readme

* Revert "fix: togetherAi metering"

This reverts commit 2b3eb76d90.
2025-12-05 03:04:59 -08:00
KernelDeimos 2db3331729 tweak: add puter.perms.requestPermission
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
It calls requestPermission on the UI module. The method on the UI model
needs to still exist because the UI module is tightly-coupled with IPC.
A refactor of the IPC mechanism on the puter.js side could solve this.
2025-12-04 19:50:38 -05:00
KernelDeimos 349438458a dev: add user-friendly permission requests for apps/subdomains 2025-12-04 19:50:38 -05:00
KernelDeimos d9875a5be5 dev: puter.perms methods to request directories
This commit adds methods to request standard directories like the
Desktop, Documents, Pictures, or Videos directory. Additionally, the
message displayed when permission for these directories is requested is
easier to read.
2025-12-04 19:45:22 -05:00
Nariman Jelveh 66786a0015 Update Node.js section header in README.md (#2095)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (20.x) (push) Has been cancelled
test / test-backend (22.x) (push) Has been cancelled
test / API tests (node env, api-test) (22.x) (push) Has been cancelled
test / puterjs (node env, vitest) (22.x) (push) Has been cancelled
2025-12-04 11:26:01 -08:00
KernelDeimos 09b8c29e2f tweak: avoid use of puter global in Perms module 2025-12-04 13:26:22 -05:00
KernelDeimos 3d7cf1c1c4 dev: add await puter.perms.requestEmail() shorthand 2025-12-04 13:26:22 -05:00
KernelDeimos 3ea309e93b fix: requestPermission Promise never settled
This bug took a long time to diagnose, so I also made an async/await
wrapper around #postMessageWithCallback called #postMessageAsync so that
similar promise resolving errors are less likely here in the future.
2025-12-04 13:26:22 -05:00