Commit Graph

4439 Commits

Author SHA1 Message Date
Hariz S. 2487251bb9 Improved public folder file links (#1687)
* Don't update URL when opening public files via direct URL

* Alert user when attempting to open a nonexistent file

* Fix toolbar autohide in public file urls

* Remove extraneous debug logs

* Properly define stat var in public folder URL handling

* Update window URL when focusing an app opened through file URL

* Localize error messages
2025-10-27 15:35:11 -07:00
Daniel Salazar fd8a88b8f4 fix: lessen alert triggering for metering (#1837) 2025-10-27 12:41:48 -07:00
Nariman Jelveh 2c7343115a Add sora 2 support (#1834)
* Update OpenAI package to version 6.7.0 and add video generation capabilities

- Updated `openai` dependency in `package-lock.json` and `package.json`.
- Introduced new permissions for video generation in `hardcoded-permissions.js`.
- Added video generation service in `AIInterfaceService.js` and registered it in `PuterAIModule.js`.
- Implemented coercion for video streams in `CoercionService.js`.
- Updated driver service to include video generation.
- Added `txt2video` method and options in `AI.js` and corresponding TypeScript definitions in `index.d.ts`.

* Update openaiVideoCostMap.ts

* Revert "Update openaiVideoCostMap.ts"

This reverts commit 9e66f93605.

* change `txt2video` to `txt2vid`
2025-10-27 12:27:52 -07:00
Nariman Jelveh 5ae8ed98eb Fix issues with Settings accessibility 2025-10-26 17:42:56 -07:00
Nariman Jelveh bce244b867 Remove taskbar item animation 2025-10-26 17:12:21 -07:00
Nariman Jelveh 3720369d87 default txt2img model set to gpt-image-1-mini 2025-10-26 11:52:28 -07:00
Nariman Jelveh 5476389795 add support for gpt-image-1-mini 2025-10-26 11:33:44 -07:00
Eric Dubé b73764d210 more reliable suspended (#1696)
* fix: remove verbose parameters log

* fix: more reliable check for suspended user

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-10-25 16:27:36 -07:00
NUDURUMATI H R N PRASANNA SAVITHRU 6edb2a30e7 chore: update phrasing based on review (#1821)
* chore: update phrasing based on review

* Update nb.js

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-10-25 16:11:40 -07:00
Nariman Jelveh 46cb188877 Update ig.js 2025-10-25 15:11:08 -07:00
Reynaldi Chernando e11182f817 Add dedupeName to CreateAppOptions (#1783) 2025-10-25 15:09:25 -07:00
Tamalampudi Siva Harsha Vardhan Reddy 1bfdab8825 i18n(ig): translate missing entries in src/gui/src/i18n/translations/… (#1820)
* i18n(ig): translate missing entries in src/gui/src/i18n/translations/ig.js

* add missing double quotes

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-10-25 15:07:48 -07:00
Neal Shah 20601ce5e4 fix: Switch to new OpenAI Moderation model (#1826) 2025-10-24 19:13:18 -04:00
Neal Shah d0c5f12682 optimization: change for (msg.. messages) in moderation to pass in everything in one call (#1825) 2025-10-24 17:44:15 -04:00
Daniel Salazar 3fb3cf0e60 fix: simplify export import typedef (#1818)
* fix: simplify export import typedef

* feat: expose kvstore methods in the service too

* chore: update versioning
2025-10-24 12:52:58 -07:00
Eric Dubé 1a1e9e8bb2 dev: add event to mutate app origin (#1823)
* dev: add event to mutate app origin

* fix: location of app origin event
2025-10-24 14:09:13 -04:00
Daniel Salazar 219fd2274c feat: allow for unlimitedAllowList + typedefs snuck in by accident (#1813)
* feat: allow for unlimitedAllowList

* feat: add clearer types to extensions
2025-10-23 13:57:32 -07:00
XiaochenCui ce38983e73 memoryfs: fix wrong args for fs.node 2025-10-23 15:05:47 -04:00
XiaochenCui 4fdca1e47b ci: capture the error during setup 2025-10-23 15:05:47 -04:00
Nariman Jelveh c4d4bc9758 remove progwin for desktop mkdir (#1814) 2025-10-22 18:52:35 -07:00
Daniel Salazar 256189a7de feat: route for global usage aggregate (#1810)
* feat: route for global usage aggregate

* feat: add globalUsageEndpoint to puter-js

* fix: globalUsage endpoint
2025-10-22 16:46:13 -07:00
Daniel Salazar c9ab01cf1e fix: usage limited issue whens treaming (#1806) 2025-10-22 11:22:59 -07:00
KernelDeimos 5b16774a9a fix: throw error not lorem when moderation fails
Instead of switching to test mode, which responds with "Lorem Ipsum"
sample output to test the API, throw an appropriate error message for
content moderation failures. This is especially useful when OpenAI's
moderation is way way way way too aggressive as this confuses users.
2025-10-22 13:59:53 -04:00
KernelDeimos 16e7fe9851 fix: openai configuration regression
I was not able to locate a change causing a configuration regression,
however I do know AI was working in my OSS clone and that I had no
reason to change my AI configuration in my `local.json` file. In any
case, it is clear that configuration was not working as intended.

This commit fixes PuterAIModule which was not enabling OpenAI services
when `openai` was configured within the `services` block, even though
the `services` block configuration is supposed to be the recommended
configuration and the global `openai` config object is supposed to be
deprecated.

This commit also fixes OpenAIImageGenerationService which was not
accepting the current parameter name for the API key (`apiKey`) and
instead only accepted the legacy key (`secret_key`) which created this
interesting problem where using the recommended parameter name would
prevent Puter from booting successfully.
2025-10-22 13:59:53 -04:00
KernelDeimos 06d6eb83e7 doc: dependencies when moving PuterFS to extension
This commit begins the plan towards moving PuterFS to an extension. It
is first necessary to analyze the dependencies and determine which
services and modules are part of PuterFS and which ones are not.
2025-10-22 13:59:40 -04:00
KernelDeimos b80c0ba79e chore: puter.js version 2.1.1 2025-10-22 13:59:19 -04:00
KernelDeimos 547acf6988 Revert "patch version bump for puter-js and putility in it"
This reverts commit 55d07acdee.
2025-10-22 13:59:19 -04:00
jelveh 55d07acdee patch version bump for puter-js and putility in it 2025-10-22 10:44:50 -07:00
KernelDeimos d398dc90fd chore: putility patch version 1.1.1 2025-10-22 13:32:56 -04:00
KernelDeimos 4a69cd26c2 chore: putility minor version 1.1.0 2025-10-22 13:18:34 -04:00
KernelDeimos ecad29a30e sync: update license headers in putility
The `putility` package had AGPL-3.0 license headers but it should be
under the MIT license because puter.js (the SDK) depends on it.
2025-10-22 13:18:34 -04:00
Eric Dubé c375b30810 Update putility to MIT
Huh, I thought it was already...
2025-10-22 12:18:55 -04:00
Daniel Salazar 9394b5e204 docs: metering and examples (#1803)
* chore: expose meteringService methods in wrapper while not in an extension

* docs: metering and examples
2025-10-21 17:25:46 -07:00
Daniel Salazar 16fd614b84 feat: rename meteringAndBilling to metering (#1800) 2025-10-21 14:59:24 -07:00
Daniel Salazar 435d26608a feat: shard apps as well to avoid hot partitions (#1799) 2025-10-21 13:30:34 -07:00
Daniel Salazar 6bbd9bdc9f feat: limit alerting (#1798) 2025-10-21 12:50:38 -07:00
Daniel Salazar 3229fe0b61 Revert "Revert: fs metering (#1790)" (#1795)
This reverts commit 4b14ef863c.
2025-10-21 11:07:05 -07:00
Daniel Salazar 4b14ef863c Revert: fs metering (#1790) 2025-10-20 21:58:44 -07:00
Daniel Salazar 760bc22743 fix: bad acl check returning early (#1789) 2025-10-20 20:13:43 -07:00
Daniel Salazar 0260a9cbce Revert "Revert "Revert "Revert "feat: alert when going over usage limits sign…"
This reverts commit f2265cca59.
2025-10-20 18:45:08 -07:00
Daniel Salazar f2265cca59 Revert "Revert "Revert "feat: alert when going over usage limits significantl…" (#1787)
This reverts commit 0d0cdce1cf.
2025-10-20 16:51:31 -07:00
Daniel Salazar 0d0cdce1cf Revert "Revert "feat: alert when going over usage limits significantly + egre…" (#1786)
This reverts commit 54d73b1998.
2025-10-20 15:56:34 -07:00
Daniel Salazar 54d73b1998 Revert "feat: alert when going over usage limits significantly + egress meter…" (#1785)
This reverts commit 27f24118f3.
2025-10-20 15:25:52 -07:00
Daniel Salazar 27f24118f3 feat: alert when going over usage limits significantly + egress metering (#1782)
* feat: alert when going over usage limits significantly + meter egress/ingress

* fix: metering roundings
2025-10-20 13:54:21 -07:00
Nariman Jelveh eb123d873f feat: introduce PANEL_WIDTH constant and refactor UIWindow for panel handling (#1780)
Added a constant for PANEL_WIDTH to standardize panel width across the application. Refactored UIWindow logic to utilize this constant for positioning and resizing, ensuring consistent behavior when panels are open. Restored the getSnapDimensions function to adjust available dimensions based on the taskbar position and open panels.
2025-10-17 18:43:59 -07:00
Neal Shah 3184e01307 add puter.workers.getLoggingHandle (#1779) 2025-10-17 17:03:57 -04:00
Xiaochen Cui d7a0a81991 ci: avoid potential hanging via hard limit (#1778)
* ci: avoid potential hanging via hard limit

* ci: remove build phase

* ci: print tmp_password for test
2025-10-17 12:29:56 -07:00
jelveh 76dcdd4927 Refresh the stat cache regularly 2025-10-16 20:57:23 -07:00
Nariman Jelveh 0713599281 Update stat.js (#1753) 2025-10-16 20:41:40 -07:00
Reynaldi Chernando 5a8f06db9e Remove fixed width in publish website input (#1747) 2025-10-16 20:40:40 -07:00