Commit Graph

58 Commits

Author SHA1 Message Date
ProgrammerIn-wonderland
d105b341d5 Entri token service 2025-08-14 18:32:22 -04:00
KernelDeimos
4575b24c51 chore: update sharp because GH issue template 2025-07-10 14:30:00 -04:00
KernelDeimos
354b116b42 fix: make sharp optional 2025-07-04 18:29:29 -04:00
KernelDeimos
502204a7b7 test: update tests, migrate backend to vitest
Backend had tests written in mocha as well as a test written for jest
(created by an AI utility, wasn't compatible with mocha tests). The AI
generated test had merit so it was migrated to vitest along with all the
mocha tests, which supports conventions from both frameworks.

Vitest also has an excellent watcher cli.

The root repo package.json now runs unit tests in backend. Before it was
only running tests defined in the _test method of backend services.
2025-07-04 18:21:45 -04:00
jelveh
06f5601a2e Update package.json 2025-06-27 23:10:53 -07:00
Nariman Jelveh
196f996435 Merge branch 'main' into feature/desktop-shortcut-link 2025-06-27 22:45:38 -07:00
KernelDeimos
2d9526ba40 fix: install 2025-06-21 22:00:26 -04:00
Jonathan Mahrt Guyou
ad4b3e7aeb feat: captcha
* Added Revis distributed cash to enhance our Captcha Verification system so that we prevent our system from replay attacks

* Fix: There was an error with the implementation of Redis, so I reverted to our previous version that uses in memory storage

* Integrated the captcha verification system into our sign in Form. The captcha verification system now works on both login and sign int

* Remove test files from captcha module

* Update src/backend/src/modules/captcha/middleware/captcha-middleware.js

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

* Update src/backend/src/modules/captcha/middleware/captcha-middleware.js

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

* Now the captcha can be requested on condition, this llaows extenstions to control wether a captcha should be required,
I fixed the code in CaptchaModule to use config
and got rid of the lines that made captcha middleware available since it wasn't used anywhre

* I split the middleware into two distinct parts, so that the frontend can now determine captach requirements. PuterHomePageService can set GUI parameters for captcha requirements. The /whoarewe endpoint provides captcha requirement information and the extensuo system integration is maintained

* Fix security issues with password handling in URL query parameters

* Made sure that the enter key, submits the login request instead of refreshing the captcha

* In development we can now disable the Captcha verification system by running it with CAPTCHA_ENABLED=false npm start

* Went back and modified checkCaptcha so that it checks at the start to check what CAPTCHA_ENABLED is equal to

* Refactor captcha system to use configuration values instead of environment variables

* Fix captcha verification and align with project standards

* Update src/backend/src/modules/captcha/README.md

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

* fix: incorrect service name

* dev: use Endpoint for captcha endpoints

Use Endpoint class, which uses eggspress behind the scenes, which handles
async errors in handlers automatically.

* dev: add extension support and simplify captcha

- removed extra error handling
- removed dormant code
- no distinction between login and signup (for now)

* clean: remove local files

* fix: undefined edge case

---------

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>
2025-03-28 19:46:56 -04:00
Ntwari Bruce
39048a9e2e dev: ai command tool use / function calling (#1194)
* Enhanced ai command to perfom other commands

* Enhance AI Command in Puter's shell

* Enahanced ai command to use tooling/function calling

* Fixed circular dependency and added list function to Builtincommand

* Fixed circular dependency and system prompt
2025-03-27 14:31:24 -04:00
rodrick-mpofu
94853d33bf Implement link shortcut feature (refs #682) 2025-03-25 02:24:20 -04:00
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
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
e6b3cb3666 fix: get event docs back in sync
I used 'fix' for this instead of 'doc' because I am also adding a
package for code that generates markdown, so this doesn't have the
zero-risk nature typically associated with a "doc: " commit.
2025-02-25 17:52:54 -05:00
KernelDeimos
29834f02c0 release: 2.5.1 2025-02-13 21:50:39 -05:00
KernelDeimos
0cb1ca7989 chore: date and update version 2025-01-07 15:51:44 -05:00
KernelDeimos
90967ab109 dev: add ico support 2024-12-18 12:05:11 -05:00
KernelDeimos
20d27d59bf dev: create pre-sized icons for apps 2024-12-17 12:57:03 -05:00
Nariman Jelveh
40ea2a3f02 Revert "Created test cases for issue #878 " 2024-12-08 11:31:47 -08:00
Nariman Jelveh
c8894c7d4c Merge branch 'main' into warning_dialog 2024-12-08 11:29:52 -08:00
e5z26
2ca1f71595 removed jsdom in test file
removed because wasn't being used
2024-12-07 19:09:22 -05:00
KernelDeimos
545e7db5bd fix: test issues from contextlink removal
Apparently there were two things:
- had to remove contextlink from the test command (that was expected)
- can't import libs from putility in the test environment. The error
  produced for this doesn't really explain why.
2024-12-06 12:09:23 -05:00
jelveh
2d4312972a feat: automatically open the browser when starting Puter 2024-11-21 22:51:43 -08:00
KernelDeimos
d93fd419e4 dev: add human_readable_age to /whoami 2024-11-21 11:03:40 -05:00
KernelDeimos
823ab28448 test: update test invocation 2024-10-10 03:19:28 -04:00
KernelDeimos
cc4ab1cb36 fix: html-webpack-plugin dev dep 2024-09-04 23:56:23 -04:00
KernelDeimos
ae25711a13 update package.json for local testing 2024-07-18 17:02:31 -04:00
KernelDeimos
614f2c5061 fix: fix CI attempt #7 2024-07-18 16:44:11 -04:00
KernelDeimos
9d549b192d fix: fix CI attempt #6 2024-07-18 16:38:56 -04:00
Nariman Jelveh
d9a90a67c1 let me try fixing mocha! 2024-07-18 13:30:05 -07:00
KernelDeimos
3bca973f5f fix: fix CI attempt #3 2024-07-18 16:20:57 -04:00
KernelDeimos
aebe89a1ac fix: fix CI attempt #2 2024-07-18 16:16:31 -04:00
KernelDeimos
58c199c153 fix: run mocha within packages in monorepo 2024-07-18 16:10:45 -04:00
KernelDeimos
ab74f1ee8d release: v2.4.1 2024-07-11 19:41:08 -04:00
KernelDeimos
3a7221dba5 chore: cleanup root directory 2024-07-09 04:18:55 -04:00
KernelDeimos
bda4aed2e8 chore: add missing license headers 2024-07-09 04:10:33 -04:00
KernelDeimos
50036e954d dev: add js-parse-and-output experiment 2024-07-09 03:40:34 -04:00
KernelDeimos
47f76ccc89 dev: add file walker 2024-07-09 03:15:51 -04:00
KernelDeimos
a9338b45c1 chore: update package.json 2024-07-08 17:31:50 -04:00
github-actions[bot]
c84e15ba20 chore(main): release 1.0.0 2024-07-08 13:47:44 -04:00
KernelDeimos
a43cab0c93 refactor: move puter gui to workspace 2024-07-07 17:12:55 -04:00
KernelDeimos
684b0dc059 Support configurable mod locations 2024-06-10 03:02:17 -04:00
Eric Dubé
fa7bec3854 refactor: flatten the monorepo 2024-06-08 01:07:42 -04:00
KernelDeimos
4bdad75766 feat(backend): improve logger and reduce logs 2024-05-31 19:40:13 -04:00
github-actions[bot]
5146dc4981 chore(main): release 2.3.0 2024-05-24 16:22:55 -04:00
Sam Atkins
25b35769c5 chore: Set-up eslint
eslint is a static analysis tool that tries to identify bugs and
mistakes in the code. We have quite a variety of code in this repo so
the config is a little complicated, but I've tried to make it clear.
It's found a *lot* of issues (over 1700), and while many of which will
not be actual problems, (it doesn't like us using window properties
without `window.`,) but some definitely are.
2024-05-02 11:21:50 +01:00
github-actions[bot]
458f2eae4c chore(main): release 2.2.0 2024-04-23 02:03:34 +00:00
github-actions[bot]
aa4050ee32 chore(main): release 2.1.1 2024-04-22 22:42:20 +00:00
Sam Atkins
ea40ac1e53 Re-enable Phoenix tests
This also runs the tests for contextlink, which I think we previously
never ran. I don't see any other packages that define an `npm test`
command. Having to manually list all the sub-package test directories in
the top-level package.json is a bit unfortunate, but it works.

For Puter itself we support Node 16.x IIRC, but Phoenix requires at
least 20.x currently.
2024-04-16 13:57:02 +01:00
KernelDeimos
e8dc220981 This is 2.1.0 I decided 2024-04-15 15:37:13 -04:00
KernelDeimos
4d30753958 Fix more phoenix dev issues 2024-04-15 14:25:40 -04:00