Commit Graph

4322 Commits

Author SHA1 Message Date
Daniel Salazar 2c614b2b99 cleanup: remove auxilary return for now (#1727) 2025-10-09 19:20:52 -07:00
Daniel Salazar a3c6c0b914 Revert "revert: revert devex changes (#1728)" (#1729)
This reverts commit fc725d0130.
2025-10-09 19:16:20 -07:00
Daniel Salazar fc725d0130 revert: revert devex changes (#1728)
* Revert "fix: quick fix for config context issue"

This reverts commit 0c06040e6c.

* Revert "sync: package-lock.json"

This reverts commit 1e1bd0f2ba.

* Revert "devex: misc log cleanup"

This reverts commit a64a786528.

* Revert "devex: minimal first page load logs"

This reverts commit 196e463c59.

* Revert "devex: minimal initialization logs"

This reverts commit ea9c222c09.

* Revert "fix: add missing await in kv example extension"

This reverts commit 9b34e67d0d.

* Revert "devex: reduce logs at init"

This reverts commit fa221149c2.

* Revert "sync: package.json changes"

This reverts commit 4db73d75a5.

* Revert "fix: remove unused AWS SDK v2 import"

This reverts commit 4d8692fd31.

* Revert "devex: hide `npm install` output unless it fails"

This reverts commit fe03a4b598.

* Revert "devex: rollup via module instead of subprocess"

This reverts commit 360082d8bd.

* Revert "devex: webpack via module instead of subprocess"

This reverts commit 1449d12b0e.
2025-10-09 18:43:03 -07:00
Daniel Salazar c0d96c7e97 fix: openrouter usage calculator (#1725) 2025-10-09 17:12:48 -07:00
KernelDeimos 0c06040e6c fix: quick fix for config context issue
I don't know what causes this
2025-10-09 19:39:02 -04:00
KernelDeimos 1e1bd0f2ba sync: package-lock.json 2025-10-09 19:39:02 -04:00
KernelDeimos a64a786528 devex: misc log cleanup 2025-10-09 19:39:02 -04:00
KernelDeimos 196e463c59 devex: minimal first page load logs 2025-10-09 19:39:02 -04:00
KernelDeimos ea9c222c09 devex: minimal initialization logs 2025-10-09 19:39:02 -04:00
KernelDeimos 9b34e67d0d fix: add missing await in kv example extension 2025-10-09 19:39:02 -04:00
KernelDeimos fa221149c2 devex: reduce logs at init
Moves more logs to debug level, removing a few that were unnecessary.
2025-10-09 19:39:02 -04:00
KernelDeimos 4db73d75a5 sync: package.json changes 2025-10-09 19:39:02 -04:00
KernelDeimos 4d8692fd31 fix: remove unused AWS SDK v2 import
This was done to reduce init logs by removing the AWS SDK v2 deprecation
notice from the output.
2025-10-09 19:39:02 -04:00
KernelDeimos fe03a4b598 devex: hide npm install output unless it fails
Since extensions are loaded as packages, the `npm install` outputs can
get very verbose. This change reduces log noise when Puter initializes.
2025-10-09 19:39:02 -04:00
KernelDeimos 360082d8bd devex: rollup via module instead of subprocess 2025-10-09 19:39:02 -04:00
KernelDeimos 1449d12b0e devex: webpack via module instead of subprocess
This was really really really (100 more "really"s) tedious compared to
what I had expected.
2025-10-09 19:39:02 -04:00
Daniel Salazar 248b199fa3 feat: add openrouter metering (#1724)
* feat: add openrouter metering

* fix: models promise await parenthesis

* fix: openRouter name for metering
2025-10-09 16:36:21 -07:00
Neal Shah 3703f7e14f Add in events for thumbnails (#1700) 2025-10-09 17:07:22 -04:00
Daniel Salazar 5450c85b3a fix: bad boolean check (#1721) 2025-10-09 11:15:47 -07:00
Nariman Jelveh 5a9284a2cb Update UIWindow.js (#1720) 2025-10-09 09:49:57 -07:00
Nariman Jelveh abc8d7fcce Npm run test puterjs (#1719)
* chore: add http-server as a dev dependency and update package scripts

* refactor: move maximized window positioning logic to UIWindow and remove from UITaskbar
2025-10-08 22:14:42 -07:00
Nariman Jelveh 6fdea68eec chore: add http-server as a dev dependency and update package scripts (#1718) 2025-10-08 19:13:05 -07:00
Daniel Salazar eea27be8eb fix: metering service global write and open ai default model (#1717) 2025-10-08 18:41:15 -07:00
Daniel Salazar 73a24af951 feat: meter claude ai (#1716)
* feat: meter claude ai

* fix: claude meteringService dep
2025-10-08 17:49:12 -07:00
Xiaochen Cui 89ad06afae ci: fix failure by upgrading library (#1713) 2025-10-08 17:17:37 -07:00
Daniel Salazar 3df1d31a37 fix: broken open ai moderation (#1714) 2025-10-08 16:41:32 -07:00
KernelDeimos e59f4e6c16 devex: reduce webpack verbosity 2025-10-08 19:25:53 -04:00
KernelDeimos 74ceb2fa1b devex: move more init logs to debug
Removes init/construct logs, moves many boot logs to debug level,
introduces debug level in BootLogger, moves "CONFIGURATION MUTATED AT
RUNTIME" message to debug level and allows config.js to output logs to
the standard logger in context.
2025-10-08 19:25:53 -04:00
KernelDeimos cae50b8859 dev: add experimental parallel init emit
This is put behind a flag for now because potential bugs that may arise
from this change are difficult to locate or predict.
2025-10-08 19:25:53 -04:00
Nariman Jelveh 64cfa8158d feat: immprove UIPopover and UIWindow behavior for sidepanel visibility (#1711)
- Adjust `UIPopover` positioning when a sidepanel is visible.
- Update `UIWindow` to manage visibility states and adjust toolbar positions accordingly.
- Modify CSS for AI Button to change z-index for better layering.
2025-10-08 15:40:14 -07:00
askmanu[bot] 0270b64bc4 Added reference documentation for: src/backend/src/modules/puterai/lib/Messages.js 2025-10-08 16:52:11 -04:00
askmanu[bot] 4fb06d3b3e Added reference documentation for: src/backend/src/modules/puterai/lib/GeminiSquareHole.js 2025-10-08 16:52:11 -04:00
askmanu[bot] aed3ce7ed7 Added reference documentation for: src/backend/src/modules/broadcast/connection/CLink.js 2025-10-08 16:52:11 -04:00
Daniel Salazar 248b38e732 fix: undefined alias array (#1709) 2025-10-08 13:12:58 -07:00
Daniel Salazar 0acb884ed0 feat: meter open ai (#1703)
* feat: meter open ai

* fix: dep injections & moderation

* feat: add paging
2025-10-08 12:58:05 -07:00
jelveh a70a621dd5 Update style.css 2025-10-08 12:33:56 -07:00
Nariman Jelveh 508ed920f6 Update globals.js (#1702) 2025-10-07 15:23:56 -07:00
Nariman Jelveh b02e6c86b0 Update helpers.js (#1701) 2025-10-07 14:36:02 -07:00
Daniel Salazar d9c64a9378 feat: manage permission for user to user and dev to app file sharing (#1567)
* perf: move user-user perm checks to flat kv entries

* feat: manage permission for user to user and dev to app file sharing

* fix typings cuz macos sucks

* fix: mac os typecase

* fix: chore macOs typecase

* fix: bad join of permissions

* feat: add check-permissions endpoint for checking an users perms

* Add 'manage' to permission lists in the Sharing dialog

* fix: manage being allowed through our ACL

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-10-07 13:46:00 -07:00
Daniel Salazar 6d35496252 chore: publish npm (#1698)
* chore: bump puter-js version and publish

* chore: package-lock
2025-10-07 11:56:18 -07:00
Daniel Salazar 2a2a1f6a99 fix: backward compatibility for puter kv incr/decr (#1697) 2025-10-07 11:39:23 -07:00
KernelDeimos 44522f0a22 fix: remove verbose parameters log 2025-10-07 02:31:35 -04:00
Nariman Jelveh 70cde54f80 Update LogService.js 2025-10-06 22:16:53 -07:00
Nariman Jelveh dfccbdccce Update LogService.js 2025-10-06 21:58:14 -07:00
Nariman Jelveh 84a28b9637 Sidepanel (#1694)
* add AI side panel to UIDesktop

* integrated `UIAIChat` component into `UIDesktop` for AI interactions.
* added styles for AI side panel, including buttons and chat message formatting in style.css, enhancing user experience with AI features.

* add support for window-based side panels

* remove window resizing logic that is simply broken

* whitelisting added

* Add `showWindow` and `hideWindow` methods to Puter.js
2025-10-06 18:40:44 -07:00
Daniel Salazar e3f9455cae test: vitest tests for puter js (#1693) 2025-10-06 15:00:40 -07:00
Daniel Salazar f06bec4cd4 feat: extract and centralize cost maps (#1691) 2025-10-06 14:52:09 -07:00
ProgrammerIn-wonderland 44fcb5800b fix: options.no_options_auth should be optional chained 2025-10-06 13:46:57 -04:00
KernelDeimos a5fa16b7bb fix: preflight issue with protected endpoints
When /user-protected/change-password (and presumably other endpoints
under /user-protected) receive a preflight request they respond with
HTTP status 401. This is because `.use()` calls on the router apply to
all request methods erroneously.

This commit fixes the issue. Further investigation is required to
determine when preflight requests started happening on this endpoint.
2025-10-06 11:31:21 -04:00
Rajeshwar Singh 3120d6a057 feat(Translation): added support for Armenian and also added Bulgarian (Closes #1523) (#1676)
* feat(Translation): added support for Armenian and also added Bulgarian

* fixed

* add license header to bg.js

* Update package-lock.json

---------

Co-authored-by: jelveh <nj@puter.com>
2025-10-05 22:59:58 -07:00