Commit Graph

2593 Commits

Author SHA1 Message Date
ProgrammerIn-wonderland
f962a6a838 Allow relative paths for creating puter s2w workers 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
050ad0f785 add worker file limit 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
ba0f4e3f86 remove unneeded logs 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
2fe52cb972 Filesystem backed web workers 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
173340e887 Move s2w workers to be backed by files and commit that information to subdomains database 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
27b9cb0b4c Add "coerce to response" if compatible type is returned by an s2w route 2025-07-29 16:18:14 -04:00
ProgrammerIn-wonderland
02e49a44be Making streaming drivers ReadableStreamable 2025-07-29 16:18:14 -04:00
KernelDeimos
cbb833f3de Revert "sync: update OpenAI moderation to use new model"
This reverts commit 1b56bdc526.

OpenAI told us to switch to this model for moderation, but this model
clearly isn't ready for production use yet.
2025-07-29 16:08:05 -04:00
KernelDeimos
d4250d65aa fix: don't encrypt session UUID if there isn't one 2025-07-29 13:35:03 -04:00
Glenn Dmello
ec586e834a modified nb.js (#1381) 2025-07-29 10:22:39 -07:00
XiaochenCui
dea6069398 fs/stat: return_permissions -> return_shares, update tests as well 2025-07-29 13:17:55 -04:00
XiaochenCui
97eeadb3e4 fs: fix failed tests in move and stat 2025-07-29 13:17:55 -04:00
Nariman Jelveh
f3b09cf170 Update index.js 2025-07-28 22:03:25 -07:00
Nariman Jelveh
b5a1be6823 Update style.css 2025-07-28 21:02:29 -07:00
Nariman Jelveh
12f4c2c3d2 Fix the issue with Properties window not working in Explore 2025-07-28 20:08:11 -07:00
KernelDeimos
1b56bdc526 sync: update OpenAI moderation to use new model 2025-07-28 20:47:56 -04:00
Nariman Jelveh
1df1afca37 Update index.js 2025-07-28 16:17:35 -07:00
Nariman Jelveh
75fc436b54 add dividers in the taskbar 2025-07-28 16:17:23 -07:00
KernelDeimos
0257c1475e dev: add async getter for 'owner' on FSNodeContext 2025-07-28 18:30:02 -04:00
KernelDeimos
925b1ff4b4 dev: add fs.written event
Unlike fs.write, fs.written is only emitted after the contents of the
fily have been fully streamed and comitted to the delegate storage.
2025-07-28 18:23:00 -04:00
KernelDeimos
f2a29d5228 fix: prevent entity mutation during upsert
In EntityStoreService, update and upsert both make use of the
detect_identifier utility function to get an identifier to pass through
to (eventually) SQLES.

For `update`, the `id` object is passed as the argument. Properties are
removed from this object when "redundant identifiers" are extracted to
create the update predicate.

For `upsert`, the `entity` object is passed and `id` is ignored. It is
suspected that this was done for reasons of improved developer
experience for developers using the API. The mutation behavior of
detect_identifier caused issues when trying to modify a property that
can also be used as an identifier, without having another identifier
available. (i.e. need to get UID of a subdomain to change the
`subdomain` property instead of just using `subdomain` to identify it).

This commit modifies the default behavior of detect_identifier to not
remove properties, then adds a flag to preserve the previous behavior
which is set TRUE by `update` since it's widelely used by puter.js and
has higher impact for potential regressions.
2025-07-28 17:41:46 -04:00
KernelDeimos
9f8cd18fd8 dev: add bypass for Entity Storage validation 2025-07-28 15:10:44 -04:00
jelveh
89ea1ae699 Update security.txt 2025-07-28 09:16:24 -07:00
Nariman Jelveh
cfa7e23e84 Fix the selectable positioning and sizing issues in Explore. All set! 2025-07-27 20:20:19 -07:00
Nariman Jelveh
e1f52ebd88 Update UIWindow.js 2025-07-27 20:09:34 -07:00
Nariman Jelveh
2e30f292f4 Improve selection visualization logic for Explore widnows.
This doesn't completely fix the misalignment of selection area but improves a lot of issues with it. A temporary, middle-ground solution until I implement the full-on selection area rendering
2025-07-27 18:52:37 -07:00
jelveh
bc842ad371 Update viselect.min.js 2025-07-27 11:32:37 -07:00
jelveh
783a0385d3 Remove Slider component 2025-07-27 11:04:45 -07:00
jelveh
8a697652d9 Use regular UIWindow component in UIWindowTaskManager 2025-07-25 23:59:29 -07:00
jelveh
cadaff441c Remove unnecessary onAppend callbacks 2025-07-25 23:39:21 -07:00
jelveh
dd76ac27ae Update UITaskbar.js 2025-07-25 20:22:38 -07:00
KernelDeimos
d17b466e37 fix: properly update owner object in FSNodeContext 2025-07-25 22:12:19 -04:00
jelveh
01e4faa762 Update UITaskbar.js 2025-07-24 12:54:45 -07:00
jelveh
261bfd1c03 Adjust taskbar items' height and width based on number of items in the taskbar 2025-07-24 12:06:38 -07:00
Nariman Jelveh
bfd1f8faab Configurable taskbar position (#1372)
* feat(gui): Enhance taskbar functionality and positioning

- Implement dynamic taskbar position management with options for left, bottom, and right placements.
- Update desktop dimensions and window positioning based on taskbar position.
- Add context menu options for changing taskbar position on desktop devices.
- Ensure mobile devices always display the taskbar at the bottom.
- Introduce CSS styles for taskbar positioning and adjust desktop padding accordingly.

* feat(gui): Reinitialize tooltips based on taskbar position

- Implement dynamic tooltip positioning for taskbar items based on the current taskbar location (left, right, bottom).
- Ensure tooltips are destroyed and recreated when the taskbar position is updated, enhancing user experience and consistency.

* feat(gui): Improve taskbar and tooltip positioning

- Add support for dynamic tooltip positioning for the 'top' taskbar location.
- Adjust CSS styles for arrow tooltips to enhance visual alignment and positioning.
- Refine taskbar item positioning for left and right placements to ensure consistent appearance.

* Improve popover positioning based on taskbar location

- Improve `UIPopover` positioning logic to account for left and right taskbar placements.
- Adjust Y position of popovers to ensure they appear correctly below toolbars for left/right taskbars.
- Update CSS styles for arrow tooltips to enforce consistent positioning with !important declarations.

* Refactor context menu positioning logic in UITaskbarItem

- Introduce a helper function to dynamically calculate context menu position based on the taskbar's location (top, bottom, left, right).
- Ensure context menus are positioned correctly relative to the taskbar item, improving usability across different taskbar placements.

* Fix UITaskbar window height calculation for consistent positioning

- Adjust the height calculation for windows in the UITaskbar to remove an unnecessary offset, ensuring accurate window sizing relative to the toolbar height.
- This change improves the visual consistency of maximized windows across different taskbar placements.

* Enhance window snapping and positioning based on taskbar location

- Introduce a new function to calculate snap dimensions and positions dynamically based on the taskbar's location (left, right, bottom).
- Update window snapping logic to ensure windows are positioned correctly relative to the taskbar, improving usability and visual consistency.
- Adjust boundary checks for window placement to account for taskbar height and position, enhancing the overall user experience.

* Update default taskbar position to 'left' and adjust CSS padding for desktop layout

- Change the default taskbar position from 'bottom' to 'left' in UITaskbar.
- Modify CSS to increase left padding for desktop taskbar positioning, enhancing layout consistency.

* Improve CSS for desktop layout with height adjustments

- Update CSS styles for input fields and desktop taskbar to set height to 100vh, ensuring consistent full-page layout across different screen sizes.
- This change improves the visual consistency and usability of the interface.

* Improve desktop selectable interactivity and taskbar tooltip behavior

- Add functionality to mark the desktop as selectable active, improving user interaction with desktop elements.
- Update tooltip display logic to only show when the desktop is not in a selectable state, enhancing usability.
- Adjust CSS styles for desktop layout, ensuring consistent behavior and appearance when the desktop is active or inactive.

* Update default taskbar position logic for first-time and existing users

- Set the taskbar position to 'left' for first-time visitors and default to 'bottom' for returning users without a saved preference.
- This change improves the user experience by providing a more intuitive initial layout for new users while maintaining consistency for existing users.
2025-07-23 15:48:23 -07:00
jelveh
5b46f0bcb1 use openrouter for qwen models 2025-07-22 16:21:56 -07:00
XiaochenCui
fee100dddd fs/mkdir: add docs spec, update tests, update apitest 2025-07-22 12:46:03 -04:00
XiaochenCui
7e20039ef4 fs/mkdir: update check logic, update test cases 2025-07-22 12:46:03 -04:00
XiaochenCui
f906c1ebad fs: adapt to different mkdir api, block write to root dir, add tests 2025-07-22 12:46:03 -04:00
Neal Shah
6d09566ba7 Allow multipage apps in puterjs (#1368)
* Allow multipage apps in puterjs

* Don't error on browsers which dont support sessionStorage
2025-07-21 14:02:46 -07:00
Nariman Jelveh
e14e1acd95 Revert "feat(gui): Add animation effects to the taskbar (#1365)" (#1366)
This reverts commit 212bc88c8f.
2025-07-19 11:12:28 -07:00
GitHubliuzhijie
212bc88c8f feat(gui): Add animation effects to the taskbar (#1365)
- Add new animation functionality to the taskbar; icons will enlarge when the mouse hovers over them
- Introduce new CSS properties and styles to support the animation effects
- Implement mouse move and leave event handling in UITaskbar
- Add UITaskBarCreateCurve and UITask components
2025-07-19 11:11:57 -07:00
jelveh
1b1517d570 add subdomain middleware for extensions 2025-07-18 20:54:26 -07:00
jelveh
b8ffc1ada0 Allow CORS on /extensions/ 2025-07-18 20:27:50 -07:00
Neal Shah
0858f9932b Support streaming drivers in XMLHTTPRequest-less platforms (nodejs, serviceworker) (#1364)
* xmlhttpreq partial support pt1

* XMLHTTPRequest shim cleanup

* fix check for x-ndjson

* change credit header at top of xhr shim
2025-07-18 14:35:08 -07:00
Josh Joseph
f9995a219d Fixed issue: #1033 (Added app category display in Dev Center in main app list) (#1350)
* Update README.md

* Fixed issue:  #1033 (Added app category display in Dev Center in main app list)

* Fixed issue:  #1033  (Added app category display in Dev Center in main app list)

* test 1033

* Fixed issue: #1033 (Added app category display in Dev Center in main app list)

* Fixed issue: #1033 (Added app category display in Dev Center in main app list)

* Center the app checkbox

---------

Co-authored-by: jelveh <nj@puter.com>
2025-07-17 21:03:17 -07:00
Neal Shah
481210b6a6 event.puter//user puter and automatic cors exemption handling in puter workers (#1342)
* event.puter

* automatic opt out cors handling

* remove "starting puterjs initialization" log

* Set compatibility date

* remove body log
2025-07-17 15:37:34 -07:00
jelveh
cc2670444c Reject promise in signIn is user closes auth window 2025-07-16 18:45:20 -07:00
jelveh
5a7ba5d4ad Do not show file operations in the context menu of root dir 2025-07-15 18:04:04 -07:00
Eric Dubé
d5749691b3 doc: link related future work 2025-07-15 16:13:39 -04:00