Commit Graph

3366 Commits

Author SHA1 Message Date
ajaykrishnaswamy
782e858b3c Update (and automate) events docs (#1164)
* documentation: new documentation for emit features

* Update events documentation and doc_helper.js script

* Update package.json

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>

* added manual_overrides.json.js file

* Update doc_helper.js to resolve paths relative to project root and update events documentation

* created a new events.md generated file, differences can be seen.

* added and populated events.md file. Can now compare new and old versions

---------

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>
2025-03-16 12:41:14 -04:00
KernelDeimos
947dca96a2 chore: remove eslint.config.js
ESLint cannot support our preferred code style for backend without
writing custom plugins. On frontend, we already decided ESLint wasn't a
good fit several months ago. This commit removes the eslint config to
avoid other developer's editors making unwanted whitespace changes.

In backend, we use spaces within control structure parens. This really
does make the code easier to read. In the future, maybe we'll write our
own linter.
2025-03-16 00:52:56 -04:00
Arunabh Sharma
004e47a4a9 feat: add API to get a list of all available models (#1160)
* add API to get a list of all available models

* modified listModels() and listModelProviders() for readability.

* remove dead code

---------

Co-authored-by: avijh <avi.vijh@gmail.com>
2025-03-16 00:31:33 -04:00
Andrew Shiroma
bf3d63a083 feat: create and export UsageLimitedChatService (#1182)
* feat: create and export UsageLimitedChatService for when user exceeds usage limit

* tweak: change comment on usage-limited-chat to better explain action

* fixed whitespace

* tweak: remove test-app from gitignore

* tweak: remove extra spacing in AIChatService usage-limited-chat comment

* tweak: fixed whitespace

* tweak: remove tabbed whitespace in AIChatService

* tweak: remove .qodo from gitignore

* tweak: remove extra enter in AIChatService

* Revert "tweak: remove .qodo from gitignore"

tweak: correct mistake on removing extra enter

This reverts commit e066e294fa.

* tweak: add space at fallback and remove whitespace tabs

* tweak: remove whitespace on brackets

* tweak: remove .qodo and test-app from gitignore

* tweak: add accidentally deleted enter back in

---------

Co-authored-by: Rishabh Shinde <rishabhsshinde27@gail.com>
2025-03-15 19:48:09 -04:00
Arunabh Sharma
9626175d3a chore: upgrade supported node version to 23.9 (#1184)
* upgrade node version to 23.9

* update package-lock.json
2025-03-15 16:03:46 -04:00
Tanveer Brar
3cdbcd83b3 feat: GUI Permission Dialog (#1177)
* Added requestPermission endpoint in SDK, updated IPC handler HeyPuter/puter#1150

* - Updated UIWindowRequestPermission.js to accept multiple permission types
- Updated dialog message for permission window in UIWindowRequestPermission.js
- Updated parameters for call to UIWindowRequestPermission in IPC.js
- Added search_uid.js endpoint to allow GUI searches for fsentry by file UUID HeyPuter#1150

* Updated body and header for Permission Request Dialog HeyPuter#1150
- Replace app uid with app name for header in UIWindowRequestPermission.js
- Added path for file permission request body in UIWindowRequestPermission.js
- Removed previously added search_uid.js api implementation previously as it is replaced by simpler call in gui

* Updated permission description generation in UIWindowRequestPermission.js HeyPuter#1150

* Removed incorrect web handling in IPC.js HeyPuter#1150

* Formatting fixes
2025-03-14 19:37:28 -04:00
Aman Purohit
a278a6140b feat: UIAlert with dynamic icon types and default button configurations (#1175)
* UIAlert with dynamic icon types and default button configurations

* Update src/gui/src/UI/UIAlert.js

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>

* Update src/gui/src/UI/UIAlert.js

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>

* fix: improve error handling in UIAlert component and reseting package-lock

* fix: update UIAlert to use 'type' for alert type selection

* fix: update UIAlert to use 'type' for button configuration

---------

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>
2025-03-14 19:18:38 -04:00
Saish Pawar
505e7abda2 fix: reposition clock to right (#1181) 2025-03-14 18:38:57 -04:00
KernelDeimos
5c50eb1f8b fix(gui): logo placement with no clock using margin
Flex isn't being used in the top bar correctly, which is causing
unpredictable issues when people implement new elements on the top bar.
The best solution for this is to use proper flex values but right now
it's important to get the layout back to normal for production so I'm
implementing this sub-par fix where we always include a spacer element.
2025-03-14 03:09:08 -04:00
KernelDeimos
8edcf7575d fix(gui): clock padding moving other elements 2025-03-13 14:54:46 -04:00
Saish Pawar
672e2e70ad dev: moved current datetime to toolbar as a widget (#1172)
* move current datetime to toolbar as a widget

* revert interval to 1000ms
2025-03-13 13:28:57 -04:00
Gautam Kumar
11043e9ba1 doc: make default URL easier to notice
* Update README.md

Without clear instructions it wasted a few hours just for setting up.
Atleast no one will face issues with domain name in localhost now

* Making LocalHost website visible

* Making LocalHost website visible v2
2025-03-13 12:09:15 -04:00
Saish Pawar
6236d00ea2 fix: made protocol dynamic in the publishURL displayed on 'Publish As Website' dialogbox (#1170)
* change https to http on UIWindowPublishWebsite

* fix: made protocol string dynamic in the publish as website dialogbox
2025-03-12 15:58:11 -04:00
KernelDeimos
3e74f42c4d fix: thread delete events 2025-03-12 14:57:53 -04:00
KernelDeimos
41d5dbc0da fix: incorrect addition of https prefix for peers 2025-03-12 14:57:42 -04:00
KernelDeimos
ad7b7b9513 fix: don't show register when user signup is disabled
closes #1087
2025-03-12 14:52:23 -04:00
KernelDeimos
76bedf5f8f fix: thread subscription updates across regions 2025-03-10 16:29:00 -04:00
KernelDeimos
252647cea6 fix: issues with thread subscriptions
I really screwed that up on my first attempt. Puter apps don't trigger
the user-connected websocket event, which rendered thread subscriptions
in apps useless. Furthermore, the uuid of the thread that was subscribed
too wasn't present in the event, which is also pretty useless.
2025-03-09 20:28:22 -04:00
KernelDeimos
26591e4171 fix: wrong parameter count 2025-03-09 16:48:35 -04:00
KernelDeimos
249d883592 dev: add missing constructors to new puter.js methods
- Also add subscribe() to threads module so I don't lose it in a git
  stash
2025-03-09 16:48:35 -04:00
KernelDeimos
daa3449f29 dev: begin adding developer app permissions 2025-03-09 16:48:35 -04:00
Andy Cordero
33c304879a fix(gui): color of the UI on dark mode (e.g. windows control, active sidebar) (#1161)
* update theme service to improve color handling and SVG icon styling

* enhance sidebar item colors for better visibility

* Fix the whitespace
2025-03-09 16:30:16 -04:00
Ntwari Bruce
7ed779bbf3 feat: enhanced ai command to perfom other commands (#1156)
* Enhanced ai command to perfom other commands

* Enhance AI Command in Puter's shell
2025-03-08 17:47:53 -05:00
KernelDeimos
8c497935cf dev: thread subscriptions 2025-03-07 17:27:29 -05:00
KernelDeimos
60cecedc87 dev: add user information to threads 2025-03-07 15:31:40 -05:00
KernelDeimos
03045e2737 fix: temperature and max_tokens (interface + OpenAI) 2025-03-07 15:24:22 -05:00
Braulio Fernandes
2a288e6cf0 add temp and max_tokens to Gemini Service 2025-03-07 13:57:25 -05:00
Braulio Fernandes
1e6e70b553 add temperature and max_tokens parameters to complete method 2025-03-07 13:57:25 -05:00
Braulio Fernandes
2e90919424 add max_tokens and temperature for completion with Claude 2025-03-07 13:57:25 -05:00
Braulio Fernandes
986dc9ea1f add temp and max_tokens to options request obj 2025-03-07 13:57:25 -05:00
KernelDeimos
59da18f2a3 dev: expose shell to ANSIShell coreutil commands 2025-03-07 11:41:49 -05:00
jelveh
f897eee3e7 Update RecommendedAppsService.js 2025-03-07 08:25:33 -08:00
KernelDeimos
96199cbb54 fix: small fixes for threads 2025-03-05 16:55:09 -05:00
KernelDeimos
53c865c973 dev: add group management SDK 2025-03-05 15:24:52 -05:00
KernelDeimos
7aa3cb7312 dev: puter.js support for group management 2025-03-04 16:43:23 -05:00
KernelDeimos
f0a6e493a1 dev: register puter.perms module 2025-03-04 14:39:32 -05:00
KernelDeimos
1f05df68eb dev: add threads module for puter.js 2025-03-04 14:38:30 -05:00
KernelDeimos
01ba6168d9 dev: make thread endpoints more conventional 2025-03-04 14:38:30 -05:00
KernelDeimos
9f3ce50994 dev: add read and list endpoints 2025-03-04 14:38:30 -05:00
KernelDeimos
fdf10ef549 dev: add threads delete endpoint 2025-03-04 14:38:30 -05:00
KernelDeimos
90d9b41ec3 dev: add threads API with create and edit 2025-03-04 14:38:30 -05:00
KernelDeimos
02ddfcc567 dev: add puter.perms module to puter.js 2025-03-04 14:37:41 -05:00
KernelDeimos
3276faa5f0 fix: permission request 500 errors
As far as I remember, PermissionService was not using APIError because
it was considered to be only for errors from API endpoints and not
internal calls. However, this never made very much sense: APIError is
really more like "error that Puter's backend actually knows how to
handle" at this point; everything should be APIError and APIError should
probably eventually be renamed.
2025-03-04 13:56:51 -05:00
KernelDeimos
1e86039cf5 dev: add PUT, DELETE to eggspress 2025-03-04 12:58:55 -05:00
Eric Dubé
eca5da9c1f Update issue templates 2025-03-03 14:50:06 -05:00
KernelDeimos
cfa5c7e715 fix: puter subdomain error response
We were sending a JSON error in what should have been an HTML response.
Additionally, the error message wasn't very clear about the nature of
the problem.
2025-03-03 13:06:14 -05:00
jelveh
ae9f5efed0 send event after toolbar is ready and after account is saved 2025-02-28 10:28:40 -08:00
jelveh
b56f5c5998 Revert "Remove the Button component from some UI components"
This reverts commit 1eb4c6034e.
2025-02-28 09:23:32 -08:00
jelveh
5c62742fa3 remove unnecessary console.log 2025-02-28 00:14:56 -08:00
jelveh
1eb4c6034e Remove the Button component from some UI components 2025-02-27 23:53:52 -08:00