Commit Graph

5513 Commits

Author SHA1 Message Date
Daniel Salazar d4d78ac7db rework: change backend and backend extensions to use simpler code structure and patterns (#2815)
* fix:  dynamodb health checks and client recreation (#2789)

* wip: no nanoServices groundwork

* feat: data clients in new shape

* wip: auth and perms in new system

* more wip

* middlewaters mainly done

* wip: fsv2 in new layout

* old fs v2 migration

* driver system

* driver and old fs fixes

* ai drivers wip

* stream support

* metering in ai chat driver

* wip: new auth

* rate limit and auth routes

* captcha and anti csrf

* fix: types

* auth store

* app logic

* wip most other dricvers

* fs

* mostly kill all legacy stuff

* fs finish

* fix: redis usage

* ai controller

* driver cleanup

* socket io in v2

* broadcast and crudq stuff

* subdomains

* notifcations and shares

* fix bad syntaxes

* auth wip

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* extensions

* extension setup

* more routes

* sql migrations and default services

* home router

* tier 7

* everything else

* everything else

* remaining missing bits

* server health

* logs

* cleanup

* deps

* cleanup 2

* more cleanup 2

* boot

* fix launch

* config fix

* move file

* fix: tsconfig things

* fix: extension loading

* launching

* fix: drivers

* fix: others

* fix: icons

* fix: file uploads

* fs fixes

* fix: fs api

* fix: dev-center

* config

* add back telemetry

* lint stuff

* husky hooks

* fix: fs oss

* fix: config migration

* config migration

* migrate scripts + replicate

* runner

* fix: merge defafult config

* fix: default region

* fix: api domain

* fix paths in readfile

* fix fs entry default s3

* NS: Remove Referral && Entri Service

* dep cleanups

* fix: static assets

* fix: kv and perms

* fix: driver registrations

* fix: home mapping

* fix: rao

* adding back 500 alarm

* fix: build paths

* fix: fs and kv shapes

* fix: kv shape

* more kv coercing and ai chat matching format as prior

* fix:  private app gates

* private app caches

* fix: whole bunch of legacy shape issues

* update template jsonc

* fix caching partial oidc and fs signed paths

* more oidc fixes

* fix: wip

* fix: private apps

* admin route fixes

* fix: last few things hopefully

* claude uploads

* fix security for app only routes

* fix kv system namespace

* stuff

* fix: app and kv and suggested apps

* fix:open item

* fix: FS operations

* fix: default app icons

* add back token-read and WSL support

* metering fixes

* fix: fsEntry

* perm scanners and implicators

* proper download endpoint

* fix: download

* fix anti csrft on v2

* fix file extensions, app icons

* fold in v1 fixes from origin/main into v2 equivalents

Re-applies the v1 fixes that landed on origin/main into their v2
counterparts since the v1 files were deleted on DS/wip during the v2
migration. v1 commits referenced below.

- SQLBatcher: flush immediately when queue hits maxBatchSize instead
  of racing the timer (v1 12f48238).
- RedisClient: drop maxRetriesPerRequest from 2 to 1 to shrink failure
  window (v1 b6776ab4).
- ChatCompletionDriver: default minimumCredits to 1 when unset/zero so
  zero-cost precheck doesn't auto-pass (v1 36bd6073).
- OpenAiImageProvider: add gpt-image-2 support — open-ended size rules,
  token-based cost estimator, arbitrary-size normalizer, isGpt prefix
  broadened to gpt-image- (v1 f14f1bf4). models.ts auto-merged via
  rename detection.
- AppStore: bump row cache TTL from 5m to 24h (v1 6b3196ed).

Not ported: v1 app-object Redis cache (bdfa12b5/b886dde3) — v2's
#toClient recomputes filetype_associations/created_from_origin per
read; adding a second cache layer is a larger change for a follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* remoe anti-csrf from auth routes that had not used them

* more icon fixes

* fix worker functionality

* fix: app and subdomain es

Co-authored-by: Copilot <copilot@github.com>

* fix PUT-761

* fix: PUT-748

* fix: rename fsService

* Add security back to WorkerDriver

* Migrate worker from fsEntry to fs. Fix cache issue

* remove ability to create symlinks

* strict webdav acl

* require auth for wisp

* chore: service renames

* Add metering back to puter peer api

* fix: PUT-760 PUT-749

* fix: PUT-746

* fix: peer cost

Co-authored-by: Copilot <copilot@github.com>

* fix: 771

* change order of peer controller

* fix: create appdata folder for app on get auth token

* fix: align delete site and list sites

* delete: putility

* fix subdomains

* Add support for tilde in subdomains, fix subdomain update

* cleanup PeerController.ts and fix billing oversight (#2844)

* fix: PUT-786

* fix: bugs

* fix: issues with multiple subdomain queries, or permission checks

* fix: harden response shapes to not contain uneeded fields

* fix: move state to redis

* fix: missing kv methods + better sec

Co-authored-by: Copilot <copilot@github.com>

* fix: subdomainStore limit

* fix: missing path resolution

Co-authored-by: Copilot <copilot@github.com>

* fs fixes

* fix: undef error

* fix fs + cleanup

* fix: npm audit fixes

* heal path entries where missing

Co-authored-by: Copilot <copilot@github.com>

* fix: caching

Co-authored-by: Copilot <copilot@github.com>

* fix: cache inconsistencies

Co-authored-by: Copilot <copilot@github.com>

* fix: app driver metadata

Co-authored-by: Copilot <copilot@github.com>

* remove extraneous comma

* fix: associated app icons

* fix: bad tool call

* Add validation to WorkerDriver#getFilePaths

* misc fs and auth issues

Co-authored-by: Copilot <copilot@github.com>

* fix: oidc errors

Co-authored-by: Copilot <copilot@github.com>

* fix: PUT-797

* fix: legacy appdata_app

Co-authored-by: Copilot <copilot@github.com>

* fix: add alert logs

Co-authored-by: Copilot <copilot@github.com>

* fix: error handling

* Disable sharecontroller

* fix: remove private user identifier for ai

* fix: private app fixes

* Add backback signup_server

* fix: completionId size

Co-authored-by: Copilot <copilot@github.com>

* fix: revalidate path for oidc

* fix: revalidate path for oidc

* fix: email validation

Co-authored-by: Copilot <copilot@github.com>

* fix: user create query

* fix: middleware extensions

Co-authored-by: Copilot <copilot@github.com>

* use x-forwarded-for for req ip forwarded

* fix: missing last_activity ts

* feat: add cache broadcast to subdomains

* fix: update config typing

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: ProgrammerIn-wonderland <3838shah@gmail.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Nariman Jelveh <nj@puter.com>
Co-authored-by: velzie <velzie@velzie.rip>
2026-04-30 12:13:43 -07:00
Daniel Salazar 255dde9e96 fix: oidc errors again (#2853)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-28 16:20:20 -07:00
Daniel Salazar 3b6ae2d06b fix: oidc errors (#2852) 2026-04-28 16:15:34 -07:00
Nariman Jelveh 4c096f2af7 Remove file sharing UI and related code (#2817)
RIP
.
.
.
for now!
2026-04-28 15:59:19 -07:00
jelveh 23f45532d6 Avoid stacking panels/invisible windows; reset URL
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-28 12:49:51 -07:00
jelveh ce39c7f734 Sync profile picture updates across UI 2026-04-28 11:57:27 -07:00
jelveh 5e667e21f8 Refactor dashboard bento colors & welcome styles 2026-04-28 11:06:30 -07:00
jelveh 8297cbec99 Use i18n welcome text and adjust UI styles 2026-04-28 10:41:01 -07:00
jelveh a781776b38 Introduce bento theme and remove gradients 2026-04-28 10:05:58 -07:00
jelveh cc21a33a31 Make copy-token window responsive and closable 2026-04-28 09:57:14 -07:00
Nariman Jelveh d344d9e5a5 Remove dashboard window style override
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-27 19:24:47 -07:00
Miika Kuisma aa5e398e8b Fixing issues with mobile contextMenu (#2848)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
* Fixing issues with mobile contextMenu in puter env app where user couldn't tap on menu items and there was checkmark in wrong place

* context menu mobile version - handle submenus

* context menu mobile icon placement tweak
2026-04-27 12:18:04 -07:00
Nariman Jelveh 66fa5fd569 Flush cache after username change 2026-04-27 12:13:26 -07:00
Reynaldi Chernando acf84a7929 Update docs setMenubar (#2845)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
2026-04-27 12:51:08 +07:00
jelveh d55c3c1637 Add UI playground examples and update docs
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-26 19:23:12 -07:00
Miika Kuisma 5e9a0f0a70 Puter JS - Web Components for UI API (#2808)
* Web Components for Puter SDK UI API

* Rest of the components

* component docs

* Revert file and directory picker changes

* style matching with puter.com and support for custom styling

* item divider style tweak

* Puter JS - Web Components tweaking

* alert default image fix

* context menu mobile style fix

* Fix app iframe height when app is in fullpage mode and has puter-js menubar

* menubar web component tweak

* Action sheet behavior for contextmenu on mobile also in env app

* replace alert icons

* context menu and menubar keyboard navigation, submenu mouse navigation improvements

* package-lock

* Improve submenu mouse hovering
2026-04-26 19:02:11 -07:00
jelveh 3e21479f17 Add content background var; remove card shadow
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-25 19:01:33 -07:00
jelveh bb08d5b53b Adjust myapps grid to 4 columns 2026-04-25 13:55:41 -07:00
jelveh 0905095bc8 Enforce 5-column myapps grid with responsive wrap 2026-04-25 13:51:29 -07:00
jelveh 8188d2b58b Increase myapps-grid gap to 30px 2026-04-25 13:43:59 -07:00
jelveh 67f14db74a Use anchor tags for dashboard sidebar items
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-25 11:25:03 -07:00
jelveh 7f1c13183b Disable dialog dragging in TabHome 2026-04-25 11:19:13 -07:00
jelveh 2e2f85fea5 Hide horizontal overflow; move apps CSS 2026-04-25 11:17:47 -07:00
jelveh 50a0073fc8 Revert "Hide horizontal overflow in apps tab"
This reverts commit d3c4aa1cfd.
2026-04-25 11:13:36 -07:00
jelveh d3c4aa1cfd Hide horizontal overflow in apps tab 2026-04-25 11:12:52 -07:00
jelveh 0b3de54a37 Use pushState for dashboard tab hashes 2026-04-25 10:45:09 -07:00
shashank shubham 53291fb8c6 chore: improve validation error messages for clarity (#2833) 2026-04-25 08:33:56 -07:00
jelveh e8c566bf3d Update TabAccount.js 2026-04-25 08:14:01 -07:00
jelveh 5174f90ed4 Hide dialog header in account tab 2026-04-25 08:11:12 -07:00
jelveh 700854e3f5 Refactor auth token card markup, disable drag 2026-04-25 08:09:17 -07:00
jelveh 2449c3f385 Scroll dashboard content to top on change
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-24 23:18:50 -07:00
jelveh 205a8bbbc5 Replace lodash _.replace and _.pullAll usage 2026-04-24 22:36:31 -07:00
jelveh 0ae3f4dcfa Remove lodash from GUI vendor lib lists 2026-04-24 22:23:17 -07:00
jelveh ba31f8e533 Make app search header sticky with blur 2026-04-24 22:16:41 -07:00
Nariman Jelveh 1cfdf79e05 GUI cleanup (#2842)
* Remove deprecated helper functions from helpers.js

* Remove Croppie library and references

* Remove bundled jQuery UI assets

* Remove vendored socket.io client files

* Remove lodash and replace with native utils

Replace common lodash usages with native JS alternatives: _.isEmpty -> null/empty checks via Object.keys, _.size -> Object.keys(...).length, _.uniqBy -> Map-based dedupe/spread. Remove bundled lodash file and its About/license entry. Updated files include UIDashboard.js, UIDesktop.js, UIWindow.js, launch_app.js, update_title_based_on_uploads.js, initgui.js, UITabAbout.js, and static-assets.js to reduce dependency and bundle size.
2026-04-24 21:52:47 -07:00
ProgrammerIn-wonderland cb7e5a475e add gpt 5.5-pro (#2843) 2026-04-25 00:34:29 -04:00
jelveh e1d082fc48 Remove getUsage helper in GUI 2026-04-24 21:16:12 -07:00
ProgrammerIn-wonderland 4e0ff1992c add gpt 5.5 (#2841) 2026-04-25 00:13:12 -04:00
Nariman Jelveh 231bfbd8a9 Replace QRCodeView with UIQRCode helper
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-24 17:57:45 -07:00
Nariman Jelveh 1aa51b7371 Remove puter audio assets 2026-04-24 17:42:52 -07:00
Nariman Jelveh 57f296a6cb Remove def(UIAlert, 'ui.window.UIAlert') 2026-04-24 14:44:04 -07:00
Nariman Jelveh b78565a6fa Remove commented putility import 2026-04-24 14:07:03 -07:00
Nariman Jelveh 1b4308c624 Comment out putility import and def 2026-04-24 13:59:24 -07:00
Daniel Salazar 36bd60731b fix: AIChatService.ts (#2836)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-23 20:20:16 -07:00
Daniel Salazar 968831c729 Revert "fix: anticsrf to store tokens in redis (#2834)" (#2835)
This reverts commit 1a6009c00c.
2026-04-23 19:12:47 -07:00
Daniel Salazar 1a6009c00c fix: anticsrf to store tokens in redis (#2834)
* fix

* fix: anticsrf to store tokens in redis
2026-04-23 18:46:43 -07:00
Nariman Jelveh f22206fe5a Import and register putility in async init 2026-04-23 16:52:07 -07:00
Nariman Jelveh 4a37e44d38 remove putility dependence from GUI 2026-04-23 15:27:04 -07:00
Daniel Salazar b6776ab47e shrink redis failure (#2831)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
2026-04-22 13:27:34 -07:00
Shruc f14f1bf49e add gpt image 2 (#2829)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
* add gpt image 2

* index cost key

* docs + default low
2026-04-22 14:00:18 -04:00