Commit Graph
4145 Commits
Author SHA1 Message Date
Daniel Salazar 6910b41a22 Merge pull request #1595 from HeyPuter/DS/main
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
npm: fix publish
2025-09-19 17:22:24 -07:00
Daniel Salazar 44284eb788 fix: typedefs 2025-09-19 17:12:01 -07:00
Daniel Salazar d6fbe94364 npm: fixed publish 2025-09-19 16:52:18 -07:00
dependabot[bot] a3cbee1b58 build(deps): bump serialize-javascript in /src/puter-js (#1594)
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.1...v6.0.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-version: 6.0.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-19 14:28:36 -07:00
Daniel Salazar 0ef2b1c05e Merge pull request #1593 from HeyPuter/DS/main
fix: package name
2025-09-19 14:02:36 -07:00
Daniel Salazar 9d5a09f0bc fix: package name 2025-09-19 14:01:03 -07:00
Daniel Salazar 3cb9040a94 Merge pull request #1592 from HeyPuter/DS/main
npm: release to npm
2025-09-19 13:58:50 -07:00
Daniel Salazar a936333006 npm: release to npm 2025-09-19 13:58:25 -07:00
jelveh a023c24c35 Update package.json 2025-09-19 13:55:19 -07:00
jelveh 41191c65d7 Update puter.js README.md 2025-09-19 13:52:54 -07:00
Xiaochen Cui c8500ba1ab test: add puterjs test to apiteste (#1590) 2025-09-19 13:27:47 -07:00
Xiaochen Cui 9d0199f858 add apitest to github actions (#1591) 2025-09-19 13:27:32 -07:00
coluccifrancesco 0c60ebd1d0 Update it.js (#1588)
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
I translated the last part of the document for the italian language.
All the updates are typo-checked for errors , and there's none.
The translation has been made keeping in mind the italian use of various terms, some of the english words haven't been translated due to the extended use of the orignal term in everyday vocabulary.
2025-09-19 11:07:02 -07:00
Daniel Salazar 770e5e071e Merge pull request #1587 from HeyPuter/DS/main
ci: drop support and testing for node 18
2025-09-19 10:29:39 -07:00
Daniel Salazar 493334b030 chore: update README for puter.js to publish on npm
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
2025-09-19 02:34:33 -07:00
jelveh 654dfa9124 Update style.css 2025-09-18 23:03:16 -07:00
jelveh c0b03e147b add redundant readdir to cache the home dir 2025-09-18 21:03:28 -07:00
Nariman Jelveh 7000831138 make whoami return last_activity_ts 2025-09-18 19:07:53 -07:00
Nariman Jelveh 31fffb087d Refactor file system operations in GUI and puter.js to use eventual consistency (#1579)
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
* Refactor file system operations in GUI and puter.js to use eventual consistency for stat and readdir calls

This update modifies multiple instances of file system operations to include a consistency option set to 'eventual'. This change aims to improve performance and responsiveness by allowing for eventual consistency in file system interactions across various components, including helpers, UI elements, and IPC handling.

* Update cache expiration time for file system operations in readdir and stat to 1 hour

* feat: add network connectivity monitoring and cache purging

This update introduces a new feature that monitors network connectivity and purges the cache when the connection is lost. The implementation includes event listeners for online/offline changes and visibility changes to ensure cache consistency during network disruptions.

* clean up logs
2025-09-18 17:13:39 -07:00
Daniel Salazar 466cc113c6 ci: drop support and testing for node 18 2025-09-18 16:10:44 -07:00
software developer, self taughtandNariman Jelveh 89d5030ae3 Add missing polish translation (#1584)
* add missing polish translation

* Clean up comments in pl.js translations

Removed comments about missing translations from the Polish translations file.

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-09-18 13:58:35 -07:00
dependabot[bot] 5fe28ee8e2 build(deps): bump serialize-javascript and mocha in /src/terminal (#1585)
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `serialize-javascript` from 6.0.0 to 6.0.2
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2)

Updates `mocha` from 10.2.0 to 10.8.2
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.8.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-version: 6.0.2
  dependency-type: indirect
- dependency-name: mocha
  dependency-version: 10.8.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 12:04:44 -07:00
dependabot[bot] c9c92e806a build(deps-dev): bump rollup from 3.21.4 to 3.29.5 in /src/phoenix (#1583)
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Bumps [rollup](https://github.com/rollup/rollup) from 3.21.4 to 3.29.5.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG-3.md)
- [Commits](https://github.com/rollup/rollup/compare/v3.21.4...v3.29.5)

---
updated-dependencies:
- dependency-name: rollup
  dependency-version: 3.29.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:38:52 -07:00
dependabot[bot] 1475183b06 build(deps): bump multer from 1.4.5-lts.2 to 2.0.2 (#1582)
Bumps [multer](https://github.com/expressjs/multer) from 1.4.5-lts.2 to 2.0.2.
- [Release notes](https://github.com/expressjs/multer/releases)
- [Changelog](https://github.com/expressjs/multer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/expressjs/multer/compare/v1.4.5-lts.2...v2.0.2)

---
updated-dependencies:
- dependency-name: multer
  dependency-version: 2.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:36:39 -07:00
dependabot[bot] a9699a9f77 build(deps): bump braces from 3.0.2 to 3.0.3 in /src/terminal (#1581)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-version: 3.0.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:28:44 -07:00
dependabot[bot] ce237b5c4a build(deps): bump form-data from 4.0.2 to 4.0.4 in /test/integration (#1580)
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:26:20 -07:00
jelveh abc0d7b16c Update refresh_item_container.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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
2025-09-17 16:12:35 -07:00
jelveh e4ada292f1 Update index.js 2025-09-17 15:59:24 -07:00
ProgrammerIn-wonderland 8884c7f472 fix: get rid of preflight for non-apifs readdir/stat 2025-09-17 18:57:57 -04:00
Nariman Jelveh e37166dae0 Cache is king baby! Let's go 🚀 (#1574)
* Implement the first naive version of `readdir` cache

* Purge the entire cache on every single mutation

Right now we're going to use the very naive, but safe, approach to purge the entire cache whenever there is change in the user's fs. We're going to incrementally improve this; but for now, better safe than sorry!

* Add socket event listeners to flush cache on file system item changes

This update introduces event listeners for 'item.added', 'item.renamed', and 'item.moved' events, triggering a cache flush on each event to ensure data consistency in the file system module.

* increase exp time for the cache

* Update readdir.js

* Update index.js
2025-09-17 15:36:42 -07:00
Amritpandey5andjelveh 214fd3010e added missing values (#1577)
* added missing values

* Update de.js

---------

Co-authored-by: jelveh <nj@puter.com>
2025-09-17 14:09:35 -07:00
aaryanandjelveh f4af6874b0 doc: added missing Dutch translations (#1575)
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
* doc: added missing Dutch translations
- fixes #1515

* Update nl.js

---------

Co-authored-by: jelveh <nj@puter.com>
2025-09-17 08:56:06 -07:00
Neal Shah b1facfbabd fix: get rid of a console 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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland a48f3e0274 get rid of noReallyItsJson 2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland 1e620c73bc make drivers and KV also preflightless 2025-09-16 19:46:53 -04:00
ProgrammerIn-wonderland 135d7b81a4 preflightless stat/readdir 2025-09-16 19:46:53 -04:00
Nariman Jelveh 079d060747 Make templates non blocking (#1573)
* refactor: update available_templates function for non-blocking template loading

- Changed the available_templates function to initiate loading templates asynchronously without blocking the UI.
- Initialized window.file_templates with an empty array and updated it once the templates are loaded.
- Added a console log in UIDesktop to track transaction duration upon completion.

* Update UIDesktop.js
2025-09-16 14:57:01 -07:00
Nariman Jelveh 6d17385f09 add getDuration() to the Transaction class 2025-09-16 14:31:55 -07:00
Jatin SharmaandNariman Jelveh b6da8ba9ce Complete Missing Hungarian Translations in hu.js (#1572)
* Update Hungarian translations in hu.js

* Update hu.js

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-09-16 13:39:32 -07:00
dtakahashi333 42302b12ac fix: add Japanese translations (#1519) (#1570) 2025-09-16 12:30:09 -07:00
Thiago (Teet) b2d38e2058 Fixes to PT-BR translation (br.js) (#1568)
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Fixed spelling and missing accentuations

Adjusted capitalization for consistency with other strings

Made wording more natural in PT-BR (e.g. “site” instead of “website”, “Login” instead of “Início de Sessão”)
2025-09-15 23:39:36 -07:00
KernelDeimos c588ff20d0 clean: remove logs (obvious cases)
This commit removes debug logs that meet these criteria:
- used console.log instead of the log service
- were left in the source tree accidentally
- show up at boot or during stat/readdir operations

This is not a comprehensrve removal; this is a first pass to get a
few of the trivial cases.
2025-09-16 01:12:57 -04:00
Nariman Jelveh e4c2581623 Make readdir workd with uid in addition to path 2025-09-15 20:12:45 -07:00
KernelDeimos d482d7cdf5 dev: add immutable default directories to whoami 2025-09-15 22:11:02 -04:00
Nariman Jelveh eb53b86c8a feat: add optional input image fields to AIInterfaceService
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 (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
- Introduced `input_image` and `input_image_mime_type` as optional parameters in the AIInterfaceService schema to enhance image processing capabilities.
2025-09-15 16:57:38 -07:00
Nariman Jelveh 4e8aad675d feat: improve image generation and coercion for data URLs
- Updated `GeminiImageGenerationService` to differentiate between data URLs and web URLs for image handling.
- Added coercion support in CoercionService for converting data URLs to streams, including extraction of content type.
- Documented the txt2img method in AI.js to clarify usage for text and image-to-image generation.
2025-09-15 15:45:54 -07:00
KernelDeimos 6480d37ec0 fix: make optimization for is_empty conditional
Usually Puter has a UID by this point, but if it ever doesn't we can
fall back on using the path with a `LIKE ? + '%'` query. However,
users before a particular date might have fsentries without a path,
so we need to perform a check on the user's timestamp to avoid issues.
2025-09-15 18:29:10 -04:00
KernelDeimos 3af84c0647 fix: is_empty sometimes being wrong
is_empty wasn't working correctly while running concurrently with
fetchEntry because because the check in fetchIsEmpty was too
specific. This commit fixes this issue while also adding support for
a 'path' parameter to is_empty.
2025-09-15 18:29:10 -04:00
Nariman Jelveh f4fc24bce3 feat: add support for image-to-image generation in GeminiImageGenerationService
- Enhanced the `generate` method to accept base64 encoded input images and their MIME types.
- Implemented validation for input image and MIME type to ensure proper usage.
- Updated the content construction logic to handle both text-to-image and image-to-image generation scenarios.
2025-09-15 15:08:06 -07:00
BarnakandNariman Jelveh 47acb141da Updating ru.js (#1566)
* Update ru.js

Added missing translations from english to russian

* Update ru.js

* Update ru.js

---------

Co-authored-by: Nariman Jelveh <nj@puter.com>
2025-09-15 12:06:03 -07:00