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
Neal Shah
e95aa81e00
OpenAI web_search support ( #2299 )
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 00:01:47 +05:30
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
bd57f7a221
Add GPT 5.2 Codex ( #2293 )
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-16 22:52:28 +05:30
KernelDeimos
21d02e7dae
fix(backend): status code check and handle HLMkdir
...
Fix the status code handling in hl_mkdir and handling to the HLMkdir
operation itself. This effectively fixes #1603 .
Resolves #1603
2026-01-15 18:32:08 -05:00
KernelDeimos
452d1de92e
refactor: MkTree and QuickMkdir parent dir check
...
Extract common behavior from MkTree and QuickMkdir to a separate method
which is user by both operations.
2026-01-15 18:32:08 -05:00
KernelDeimos
f125830fba
fix(backend): handle ll_mkdir exists race condition
...
Handle a race condition affecting mkdir operations with the
`createMissingParents` option enabled. When creating a directory because
this option was specified, errors because the directory already exists
are likely due to a race condition and should not be propagated to the
client but instead handled by using the directory that's already there.
2026-01-15 18:32:08 -05:00
KernelDeimos
f9a3e86fe9
fix: normalize file object in /writeFile
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-14 18:21:46 -05:00
Daniel Salazar
0b9863814c
fix: shard app usages properly by user ( #2279 )
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-13 20:32:46 -08:00
Neal Shah
edcfe63131
no_extra_params in together service to prevent defaults from being specified ( #2275 )
2026-01-13 13:08:30 +05:30
Neal Shah
989ee58f05
Retry for openrouter on max_tokens overage ( #2274 )
2026-01-13 12:30:05 +05:30
Neal Shah
8e6d3d8d9f
Make puter boot on windows ( #2269 )
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 15:26:53 +05:30
Neal Shah
04901a7cd1
provide safety_identifier in addition to user ( #2268 )
2026-01-12 13:24:30 +05:30
KernelDeimos
8e418a11a1
fix(backend): race condition in hashing_stream
...
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
Based on a stack trace from production and manual static analysis, it
appears that a race condition occurs within hashing_stream
intermittently. The conditions that cause this issue might be heavy
backpressure. The source stream emits the 'end' event before
stream.Transform's transform callback has had a chance to process all of
the chunks, which results in an incorrect order in calling methods on
the `typeof crypto.createHash()` object.
It would appear that `source.pipe(stream)` is not able to propagate
errors from Transform because the chain was simply broken and upload
would get stuck (if this was indeed the cause of upload getting stuck,
which seems likely but not conclusive)
2026-01-09 20:02:50 -05:00
Daniel Salazar
d64bd21a99
feat: give referrals ( #2262 )
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-09 16:48:49 -08:00
Neal Shah
5aa25bae5f
Model singularity ( #2255 )
...
* model naming singularity
* model singularity pt2
* Remove incorrect assumption check which breaks openrouter:openai/gpt-5-image
2026-01-09 16:18:54 -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
353f163f46
chore(backend): upgrade nodemailer
2026-01-09 17:54:38 -05:00
KernelDeimos
e07d1ae4af
dev(backend): limit thumbnail size from client
...
There was a configuration parameter for this but it isn't being used and
has the incorrect name in `config.js`. I decided to keep the old check
here anyway because having support to configure a lower size limit could
come in handy.
I set the limit to 2MiB through the following logic:
- largest icon size I've ever heard of is 512px
- 512*512*4 (4 color channels) is 1048576 (1MiB)
- increase to next MiB just to be safe
2026-01-09 16:36:47 -05:00
KernelDeimos
645d60a84b
dev(filesystem): add thumbnail parameter
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
Nariman Jelveh
3f934c5f16
Remove ComplainAboutVersionsService and related code ( #2179 )
...
Deleted the ComplainAboutVersionsService and its registration in SelfHostedModule, as well as cleaned up related service mappings in DriverService. This streamlines the codebase by removing the version complaint feature.
2026-01-07 16:55:55 -08:00
Daniel Salazar
b1e7bc5fca
feat: method for updating users metering directly ( #2252 )
...
* chore: cleanup ts extensions controller
* feat: method for updating users metering directly
2026-01-07 12:53:00 -08:00
Daniel Salazar
754e820403
fix: openrouter costs always being 0 ( #2250 )
2026-01-07 09:11:44 -08:00
Daniel Salazar
7f76bff3f3
fix: more strict metering limits, disable ambigious openrouter one ( #2249 )
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 23:57:03 -08:00
Daniel Salazar
2ef9aa3fb1
fix: add catch all for minimum usage amounts ( #2248 )
...
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
* ts: extension type updates
* fix: add catch all for minimum usage amounts
2026-01-06 23:09:29 -08:00
Reynaldi Chernando
2c84cd4cfa
Remove flux schnell-free ( #2243 )
2026-01-06 22:39:01 -08:00
Om vataliya
677426cbe7
fix: Enable godmode for dev-center to open worker files in editor ( #2224 )
...
Fixes #2218
The DEV Center was unable to open worker files in the text editor because
it lacked godmode permissions. The file_paths parameter in puter.ui.launchApp
requires the calling app to have godmode=1 in order to work.
Changes:
- Added database migration 0044_dev-center-godmode.sql to set godmode=1
for the dev-center app (uid: app-0b37f054-07d4-4627-8765-11bd23e889d4)
- Updated SqliteDatabaseAccessService.js to include the new migration
This allows DEV Center to successfully pass file paths when launching the
editor app, fixing the issue where clicking on a worker file path resulted
in an empty editor window.
2026-01-06 16:19:29 -08:00
KernelDeimos
0ecae43d2f
clean: remove dead code in hl_mkdir
...
Remove a method in hl_mkdir which was determined to not be referred to
anywhere. hl_mkdir was re-tested to verify that this did not cause a
regression.
2026-01-06 19:09:48 -05:00
KernelDeimos
d091b20b6a
dev: improve error message for dest_does_not_exist
...
This error message was ambiguous for mkdir operations where a shortcut
target is specified for hl_mkdir. The message looks like it's referring
to the shortcut target but really it is referring to the parent
directory for the new directory that will be created.
2026-01-06 19:09:48 -05:00
KernelDeimos
630f76d8b4
test: add automated test for subdomain redirect
...
This merits a test because changes to how `puter.site` works in the
future could easily break this redirection, and maintaining this
redirect is important to us.
2026-01-06 18:31:39 -05:00
KernelDeimos
4d60168d2f
feat!: implement redirect for hosting base domain
...
Redirect the subdomains `""` and `"www"` to a configurable URL, which is
by default `https://developer.puter.com/static-hosting/ `.
This is potentially a breaking change for local instances that have a
subdomain called "www". Users hosting their own Puter may want to be
aware of this.
Closes #2214
2026-01-06 18:31:39 -05:00
jelveh
7ef57d5052
Increase PENDING_QUERY_TTL to 10 seconds
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-05 12:50:34 -08:00
jelveh
fa402f9785
Add gpt-5.1-codex-max support
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-03 21:28:09 -08:00
jelveh
f9925c0337
Increase PENDING_QUERY_TTL to 5 seconds
2026-01-03 20:02:08 -08:00
jelveh
987effc5ec
Revert "Remove debug logs and improve query coalescing timeout ( #2241 )"
...
This reverts commit 71bee556f6 .
2026-01-03 19:34:30 -08:00
Nariman Jelveh
71bee556f6
Remove debug logs and improve query coalescing timeout ( #2241 )
...
Removed unnecessary console.log statements from PuterFSProvider.js and WebServerService.js. Increased PENDING_QUERY_TTL to 3 seconds and added a timeout mechanism for coalesced queries in get_app to prevent indefinite waiting.
2026-01-03 19:28:40 -08:00
Neal Shah
f8997b7d75
Responses API support for OpenAI ( #2226 )
...
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
* Responses API support for OpenAI
* Fix toolcalling in Responses API
2026-01-01 16:25:57 +05:30
Daniel Salazar
aafdec9b81
perf: make app entries more scalable, avoid writing global entries since its just puter itself and isn't relevant ( #2233 )
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-30 19:26:46 -08:00
jelveh
773b82638a
Update helpers.js
2025-12-29 22:54:38 -08:00
jelveh
8b1bcfa601
Reduce PENDING_QUERY_TTL to 10 seconds
2025-12-29 22:45:33 -08:00
jelveh
d7c56472c5
Add request coalescing to get_app with pending query cache
...
Introduces a TTL-based pending query cache to the get_app function to prevent duplicate database queries for the same app lookup. This change improves efficiency by coalescing concurrent requests for the same app and ensures only one database query is performed per unique lookup within the TTL window.
2025-12-29 20:37:26 -08:00
Daniel Salazar
f3b5e1b03f
fix: don't cache nor fetch raw b64 url for app icons ( #2230 )
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 18:09:56 -08:00
Daniel Salazar
174e6130ee
fix: cache get_app result with expiry to lessen load on db ( #2229 )
...
* fix: cache get_app result with expiry to lessen load on db
* fix: use EX instead
2025-12-29 16:38:57 -08:00
jelveh
a4afc41a1c
Remove global access route for cloud.js
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-25 17:27:56 -08:00
Daniel Salazar
6cc86ff58b
feat: support extension divs headers and tags being inserted to puter homepage load ( #2221 )
...
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: support extension divs headers and tags being inserted to puter homepage load
* wip: demo div
* fix: extension typing
* fix: extension typing
* feat: hompage gui add on
2025-12-24 13:48:36 -08:00
Daniel Salazar
91e12f6886
fix: don't load bench.js files ( #2207 )
...
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
* fix: autoloader grabbing bench.js files
* fix: errors failing
* fix: extension cache typ
* cache: app icons
2025-12-22 15:52:24 -08:00
KernelDeimos
f8bdcf8470
dev: [+] DataAccessModule > AppService > select()
...
This commit adds the DataAccessModule, which is where replacement
"flatter" implementations for what is currently implemented via
EntityStorage/OM will be developed.
This commit also adds AppService, which is where the `crud-q`
implementor for apps will be implemented.
This commit adds the `select()` implementation for AppService. Currently
it is missing many behaviors for parity with the current ES/OM
implementation including:
- coercion of boolean values
- nested objects and their properties
- `icon_size` parameter support
2025-12-22 17:13:07 -05:00
KernelDeimos
c43f3990d9
fix: import issues on run form benchmarks (somehow)
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-19 23:16:17 -05:00
KernelDeimos
c737a28c34
Revert "Revert 2206 eric/25 cj0 more benchmarks ( #2208 )"
...
This reverts commit 2be2dcaea0 .
2025-12-19 23:16:17 -05:00