Commit Graph

3715 Commits

Author SHA1 Message Date
KernelDeimos
963b248582 fix: get sharp far away from bundlers as possible 2025-07-10 16:20:12 -04:00
KernelDeimos
4575b24c51 chore: update sharp because GH issue template 2025-07-10 14:30:00 -04:00
KernelDeimos
e85a2703f4 sync: update XAi models 2025-07-09 23:27:24 -04:00
jelveh
3def1d4d7c feat: implement authentication UI in Puter.js's test UI
- Added login and logout functionality with corresponding UI elements.
- Enhanced layout for user information display and login button.
- Integrated authentication state checks to update UI based on user sign-in status.
- Improved button styles and interactions for better user experience.
2025-07-09 16:42:54 -07:00
jelveh
9c74e295bd style: enhance run.html layout and user interaction
- Added user-select: none to disable text selection for better UX.
- Adjusted margins for buttons and elements to improve spacing and alignment.
- Modified the layout of the navigation bar for a cleaner appearance.
2025-07-09 16:20:58 -07:00
jelveh
9ca1f0639a feat: implement settings management and modal in puter.js test framework
- Added a settings button to open a modal for configuring Puter.js URL and API Origin.
- Implemented functions to load and save settings to localStorage.
- Dynamically load the Puter.js script based on user-defined settings.
- Styled the modal and its components for better user experience.
2025-07-09 16:10:06 -07:00
Xiaochen Cui
0b6dbe587a feat(aws/polly): add new apis to puter-js, add new args to txt2speech (#1337) 2025-07-09 15:38:17 -04:00
KernelDeimos
50d520f099 fix: file cleanup for Claude when streaming 2025-07-09 15:12:15 -04:00
KernelDeimos
2c8da38db0 dev: add puter_path support for OpenAI 2025-07-09 15:12:15 -04:00
KernelDeimos
ba3ff03569 dev: add finally_fn for cleanup tasks in AI impls 2025-07-09 15:12:15 -04:00
KernelDeimos
389967b659 clean: code does not need to announce it was updated
This broke the jsdoc comment for _init in OpenAICompletionService
2025-07-09 15:12:15 -04:00
jelveh
1573f1dd81 Add tests for puter.ai.txt2speech 2025-07-09 11:54:15 -07:00
KernelDeimos
71f298ea43 debug: make sure this stack trace gets logged 2025-07-08 19:39:53 -04:00
KernelDeimos
2158e8e8c6 dev: add puter file upload via ai.chat for Claude
This commit implements uploading Puter files through ai.chat using
Claude's beta "file inputs" feature. To use this, simply specify
`puter_path` in a content part, and that content part will be
transformed into the correct type of content part for the specified file
and the file will be uploaded.
2025-07-08 19:38:13 -04:00
Neal Shah
d8a4180b4f Puter.js workers api (#1339) 2025-07-08 13:29:02 -07:00
Zac0511
858929a3b9 Add a basic Firebase Studio config file (#1338) 2025-07-08 08:32:19 -07:00
jelveh
1952549f5a Add new Mistral model coercions to puter.js 2025-07-07 23:07:32 -07:00
jelveh
f50ac9e8f9 Update Mistral models 2025-07-07 22:50:47 -07:00
KernelDeimos
cbfb9283d1 fix: add safeguard in case server response is wrong 2025-07-07 17:25:01 -04:00
KernelDeimos
405564f55f fix: update refresh_actor cache invalidation 2025-07-07 15:20:43 -04:00
jelveh
74a01a8752 Add reset results functionality to test UI
- Introduced a "Reset results" button to clear test container backgrounds and remove error messages.
- Implemented hover styles for the reset button to enhance user interaction.
- Ensured the reset functionality hides the progress panel and resets progress tracking.
2025-07-06 18:54:31 -07:00
jelveh
190f8352f0 Add performance tests for get and set methods in kv module
- Introduced two new tests: testGetPerformance and testSetPerformance.
- Each test measures the execution time of the respective method and asserts that it completes in under 100ms.
- Ensured correct value retrieval and performance metrics are logged for both tests.
2025-07-06 17:52:32 -07:00
jelveh
41cb7a06b7 Implement progress panel for test execution tracking
- Added a progress panel to display real-time test execution status, including current test, progress percentage, and elapsed time.
- Introduced styles for the progress panel and its components to enhance visibility and user experience.
- Implemented JavaScript functions to manage progress tracking, including starting and stopping timers, and updating the panel with test results.
- Ensured the progress panel is responsive to test selections and updates dynamically during test execution.
2025-07-06 15:42:02 -07:00
jelveh
f23216b122 partially selected checkboxes should are reflected in the heading master checkbox 2025-07-06 15:20:12 -07:00
jelveh
f06c13a427 Update test counter styles for improved visibility
- Adjusted the styles for the test counter to enhance its appearance.
- Removed inline styles from the test counter span for cleaner HTML structure.
- Ensured consistent font size and color for better readability.
2025-07-06 15:16:11 -07:00
jelveh
a605ef42a1 Enhance test UI with navigation and counter display
- Added a fixed navigation bar for improved accessibility and layout.
- Introduced a test counter to display the number of selected tests.
- Updated styles for better alignment and spacing in the test UI.
- Ensured the counter updates dynamically based on checkbox selections.
2025-07-06 15:11:47 -07:00
jelveh
b4143a6f39 Enhance test UI with master checkbox functionality
- Updated the test UI to include a master checkbox that controls the selection of individual test checkboxes.
- Implemented logic to update the master checkbox state based on the selection of individual checkboxes and group checkboxes.
- Adjusted the margin for h2 checkboxes for improved layout.
2025-07-06 14:59:51 -07:00
jelveh
afa6333224 Merge branch 'main' of https://github.com/heyputer/puter 2025-07-06 14:55:03 -07:00
jelveh
e58d6f0770 Enhance test UI with sticky headers and checkbox groups
- Added sticky positioning for h2 headers in the test section.
- Updated h2 elements to include checkboxes for grouping tests (File System, Key Value Store, AI).
- Implemented event listeners to synchronize individual test checkboxes with their respective group checkboxes.
- Simplified select/unselect all functionality to update group checkboxes accordingly.
2025-07-06 14:54:55 -07:00
KernelDeimos
f6e6e8dff8 fix: shortcut KV permissions
All users have access to KV, however the permission system is used
because:
1. KV is a driver, and all drivers have access checks
2. The rate limit policy comes from the permission system

This change uses support for implicit permission shortcuts to prevent
any of the permission association tables from being read. It also
hard-codes the policy so that KV's rate-limit policy is not read from
the policy.json file.
2025-07-06 15:59:07 -04:00
KernelDeimos
3f0e7659f3 dev: add support to imply shortcut permissions
Permission implicators with the "shortcut" option will be checked prior
to concurrent permission scanning. If any of these permissions are
granted, then the concurrent phase of permission scanning will not be
invoked; instead, the user will only see the shortcut permission.

It may be useful to add an option in the future for a full permission
scan, which could be useful in such things as a user interface to help
with permission management.
2025-07-06 15:59:07 -04:00
KernelDeimos
3f483c5bf5 dev: add otel spans for permission scans and db 2025-07-06 15:59:07 -04:00
KernelDeimos
fd956cb1cd fix: improvements to jaeger trace service
- migrate config location (legacy location still supported)
- allow passing additional otel options when creating spans
2025-07-06 15:59:07 -04:00
Neal Shah
bddc872e00 feat: puter workers
* experimental Cloudflare Workers for Platforms support

* add support for the puter driver

* stop hardcoding api.puter.localhost

* support destroy from express route as well

* initial worker support

* xhrshim + fixes (incomplete)

* change order of readyState + load event

* remove some debug logs

* change worker/puterUtils into a cjs module

* Cloudflare workers eventtarget workaround

* worker preamble webpack

* edit worker readme to reflect reality

* allow a way to code in api endpoint instead of hardcoding it to api.puter.com

* move cloudflare eventtarget fix to puter-portable template

This is so it gets run before the rest of puter-js initializes

* remove express route for worker
2025-07-05 17:01:44 -04:00
jelveh
8fa8dd0987 Add tests for App Directory isolation 2025-07-05 12:24:45 -07:00
jelveh
af9bf0980c Add puter.ai streaming test 2025-07-05 11:36:29 -07:00
jelveh
a2d05af556 Add support for Uint8Array in puter.fs.write 2025-07-05 11:18:13 -07:00
jelveh
b0a2590426 Remove redundant tests in puter.js 2025-07-05 10:53:14 -07:00
jelveh
779ee8d5d2 Add human-readable descriptions to Puter.js tests 2025-07-05 10:50:06 -07:00
jelveh
1fb1edd621 remove unused tests from GUI 2025-07-05 10:26:56 -07:00
jelveh
4ca7e852d8 fix toolbar showing scroll on disabling autohide 2025-07-05 09:41:00 -07:00
jelveh
7ccc704694 Use better font for the test UI 2025-07-04 19:14:18 -07:00
jelveh
a02a228bf6 Add a 'test' button to each test in Puter.js's test suite 2025-07-04 19:12:06 -07:00
jelveh
6da8ebfe96 Fix the copy assertion rule in puter.js test suites 2025-07-04 19:05:04 -07:00
jelveh
9698761b2b AND MOOOAREEE AI tests 2025-07-04 19:01:16 -07:00
jelveh
3fdee779c7 MOAAAAREEE AI tests! 2025-07-04 18:43:10 -07:00
jelveh
478aed7bda Add basic tests for puter.ai 2025-07-04 18:20:31 -07:00
Nariman Jelveh
3eef18c578 Remove captcha from frotnend (#1335) 2025-07-04 16:31:42 -07:00
KernelDeimos
f3c658c011 chore: sync package-lock.json 2025-07-04 18:30:00 -04:00
KernelDeimos
354b116b42 fix: make sharp optional 2025-07-04 18:29:29 -04:00