Commit Graph

4310 Commits

Author SHA1 Message Date
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* 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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* 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
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* 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
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
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)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* 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
ProgrammerIn-wonderland 82732b9e96 Safari fix for TLS connections in puter
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-05 02:06:36 -04:00
Nariman Jelveh 5b09dbb1f5 Update UIDesktop.js (#1682)
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
2025-10-04 18:14:54 -07:00
Nariman Jelveh 4dae0d6370 I18n for sys dirs (#1679)
* improve UIItem and UIWindow to support internationalization for system directory names. Updated UIItem to display localized names for trash, desktop, home, documents, pictures, videos, and public directories. Modified UIWindow to set the window title using localized names for the desktop and home paths.

* refactor UIWindow to use i18n for system directory titles. Updated window title settings for desktop, documents, pictures, videos, public, and trash paths to use localized names, improving user experience across different languages.
2025-10-04 13:04:31 -07:00
Nariman Jelveh 2cedb05a8a add option to automatically set window title to opened file's name (#1678)
* add option to automatically set window title to opened file's name

A new checkbox in the app edit section to allow users to automatically set the window title to the name of the opened file. Updated related functions to handle this new setting, ensuring it is saved and reset correctly.

* Update launch_app.js
2025-10-04 12:13:57 -07:00
gulizar Elhalil 3d44609d80 Update ku.js (#1677)
* Update ku.js

translation has been added.

* Update ku.js

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-10-04 11:24:04 -07:00
KernelDeimos 74430da673 style: small change to test deploy
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
Arbitrary whitespace change just to test something.
2025-10-03 21:36:44 -04:00
Eric Dubé 4eaba05136 chore: update package-lock.json with npm v11.6.1
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 (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
test / api-test (22.x) (push) Has been cancelled
* try: update package-lock.json from Linux/x86 on 11.6.1

* darwin

* darwing

* dev: try updating rollup

* try: npm 11.6.1 delete package-lock.json and run `npm i`

* push darwin pacakge lock

* sync: package-lock.json with npm 11.6.1

---------

Co-authored-by: Daniel Salazar <daniel.salazar@puter.com>
2025-10-03 20:18:13 -04:00
Nariman Jelveh db66fecadf Update style.css (#1671) 2025-10-03 16:24:44 -07:00
Nariman Jelveh 44bc7b7437 Replace "Save As..." with i18n('Save As…') (#1670) 2025-10-03 15:54:43 -07:00
Nariman Jelveh cc8a658122 Update UI.js (#1668) 2025-10-03 14:59:23 -07:00
KernelDeimos 39fdcec9bf fix: add missing utilities.js 2025-10-03 17:12:41 -04:00
KernelDeimos 9c5b96305a example(extensions): [+] example-kv 2025-10-03 16:53:23 -04:00