Commit Graph

4370 Commits

Author SHA1 Message Date
KernelDeimos c6dc55d362 devex: add support for 'stars' to notice() 2025-10-16 18:00:04 -04:00
KernelDeimos 0373f20de6 devex: misc. log cleanups 2025-10-16 18:00:04 -04:00
Nariman Jelveh b1f70fa63e Put some stars around the credentials box 2025-10-16 18:00:04 -04:00
KernelDeimos 8efecdec18 devex: update default admin password output 2025-10-16 18:00:04 -04:00
KernelDeimos 482d88639c doc: document log configuration 2025-10-16 18:00:04 -04:00
KernelDeimos 8f05a13918 devex: re-enable Puter logo by default 2025-10-16 18:00:04 -04:00
KernelDeimos b53dc01b45 devex: show full time in dev log output 2025-10-16 18:00:04 -04:00
KernelDeimos 0892e476bd devex: disable dev console by default, add socket 2025-10-16 18:00:04 -04:00
KernelDeimos c68457c91c devex: no more tip of the day unless you ask for it 2025-10-16 18:00:04 -04:00
KernelDeimos afea8fe80d dev: introduce NullDevConsoleService
In the prod environment there is no instance of DevConsoleService. If
methods are called on the service without a check to see if it exists,
this results in "read on undefined" errors that can only be produced in
a prod environment. This was the cause of the issue caused by the
previous log cleanup PR where it looked like "websockets were broken".
The missing undefined check is fixed by #1734, but the change in this
commit will catch future cases.

Additionally, this change will help with moving away from the dev
console.
2025-10-16 18:00:04 -04:00
KernelDeimos 75a759015c devex: introduce service-level log configuration 2025-10-16 18:00:04 -04:00
KernelDeimos 0b6b871144 devex: disable logs for missing fsentries and cache
Often fsentry stats are used to see if an fsentry exists, so fsentry not
found logs are common and expected. This commit disables those by
default. Additionally, logging for cache events is disabled as well,
since those are only helpful when debugging cache specifically.
2025-10-16 18:00:04 -04:00
KernelDeimos 441622d526 devex: make http logs configurable 2025-10-16 18:00:04 -04:00
KernelDeimos 354da08f64 clean: non-functional changes to WebServerService 2025-10-16 18:00:04 -04:00
KernelDeimos 20c9ac7539 sync: package-lock.json 2025-10-16 18:00:04 -04:00
Nariman Jelveh 00e122d3d1 cleanup usage reporting (#1771) 2025-10-16 14:29:57 -07:00
Daniel Salazar 9bdb139f7a fix: bad null check (#1770) 2025-10-16 14:00:20 -07:00
Daniel Salazar c38da86293 fix: bad math check for max consumed credits (#1769) 2025-10-16 13:56:52 -07:00
Daniel Salazar fc7a51bd2f fix: NaN value for consumedPurchaseCredits accounting (#1767) 2025-10-16 13:21:11 -07:00
Nariman Jelveh 74f583024d Improve usage report UI (#1766)
* Update style.css

* take into account credits added to monthly allowances
2025-10-16 13:03:35 -07:00
Daniel Salazar b7cee87370 feat: purchase addons logic in metering (#1765) 2025-10-16 13:02:19 -07:00
Daniel Salazar 08e26af85d feat: enforce new metering + get rid of old methods (#1762)
* feat: enforce new metering + get rid of old methods

* fix: make openrouter metering more robust
2025-10-16 10:33:17 -07:00
Daniel Salazar 15b65dab7d fix: app monthly usage details error (#1761) 2025-10-16 00:50:05 -07:00
Nariman Jelveh 61fbc45e3c Add refresh button for updating usage data in Settings (#1760) 2025-10-15 23:42:18 -07:00
Nariman Jelveh aca1292886 adjust usage table styling (#1759) 2025-10-15 18:49:12 -07:00
jelveh 206633293c Update UITabUsage.js 2025-10-15 12:35:39 -07:00
jelveh 33f9036abc usage unit format hot fix 2025-10-15 12:26:55 -07:00
jelveh 9cdcb2f108 Update UITabUsage.js 2025-10-15 12:21:24 -07:00
Nariman Jelveh ed5d629e02 Detailed usage report (#1752)
* Implement detailed usage report table

- Added `number_format` function for flexible number formatting with options for decimals, separators, and negative formatting.
- Updated `UITabUsage.js` to include a toggle for viewing driver usage details, fetching and displaying usage data dynamically.
- Improved CSS styles for driver usage details to improve layout and interactivity.

* Update style.css

* Refactor driver usage display in UITabUsage.js

- Updated UITabUsage.js to improve the layout of driver usage information, including a new header structure for better organization.
- Added CSS styles for the new header layout and adjusted existing styles for improved visual consistency and interactivity.

* fix progress bar logic
2025-10-15 12:12:45 -07:00
Daniel Salazar b4cafaa5bb fix: alowance typo (#1756) 2025-10-15 12:09:57 -07:00
Daniel Salazar 7e8842e35d feat: add alarms to meteringService if cost for service is unexpectedly 0 (#1755)
* feat: add alarms to meteringService if cost for service is unexpectedly 0

* fix: better sub checks
2025-10-15 12:05:15 -07:00
Daniel Salazar 24a51c59ae fix: metering typos (#1754) 2025-10-15 10:39:18 -07:00
Daniel Salazar e51d0c4600 feat: metering service allowence checks and subscription integration 🚀 (#1749)
* feat: metering allowence checks

* fix: bad math
2025-10-15 02:28:25 -07:00
Daniel Salazar 96a58ced29 metering: new usage endpoint + puter-js changes for it (#1738)
* metering: new usage endpoint

* metering: new usage endpoint + puter-js changes for it
2025-10-14 12:44:40 -07:00
jelveh 2819ec7b06 Update index.js 2025-10-13 00:36:15 -07:00
Nariman Jelveh 661f13fc92 improve caching mechanism by deleting specific caches on item addition in FileSystem module (#1745) 2025-10-12 19:50:48 -07:00
Neal Shah 8bf13b1b82 add guard around sending thumbnail event if thumbnail url is blank or falsey (#1744) 2025-10-12 20:18:41 -04:00
Neal Shah 9e0ba954ff fix npm pacjage not importing init.cjs (#1743) 2025-10-12 19:46:04 -04:00
jelveh 6a72c261e2 closes #1722 2025-10-12 16:28:12 -07:00
Nariman Jelveh f083e6b060 Improve puterjs caching (#1739)
* add regular cache checking for popular directories

* Update index.js

* implement `readdir` request deduplication to improve performance

* Update index.js
2025-10-11 21:03:38 -07:00
Nariman Jelveh 35507b33b7 taskbar positioning hotfix 2025-10-10 18:22:56 -07:00
Nariman Jelveh 62341aa030 Update UITaskbar.js (#1737) 2025-10-10 18:00:51 -07:00
Daniel Salazar ef6c7b17f1 metering: rest of ai (#1736)
* metering: rest of ai

* fix: wrong cost name
2025-10-10 17:58:35 -07:00
Nariman Jelveh 5a4a1f16a4 Taskbar pos (#1735)
* Update UIWindow.js

* wip

* Update UITaskbar.js
2025-10-10 17:08:57 -07:00
KernelDeimos b6e12762ce fix: missing check for dev console service 2025-10-10 15:01:07 -04:00
KernelDeimos 70c7aa41ac Reapply "Logs Update" (#1730)
This reverts commit 8f7a68ace6.
2025-10-10 15:01:07 -04:00
Nariman Jelveh 9607706d11 fix: adjust toolbar positioning for sidepanel based on taskbar location (#1731)
* fix: adjust toolbar positioning for sidepanel based on taskbar location

* fix: update window width calculation for left position based on open panels
2025-10-09 21:16:26 -07:00
Neal Shah 8f7a68ace6 Revert "Logs Update" (#1730)
* Revert "fix: quick fix for config context issue"

This reverts commit 0c06040e6c.

* Revert "sync: package-lock.json"

This reverts commit 1e1bd0f2ba.

* Revert "devex: misc log cleanup"

This reverts commit a64a786528.

* Revert "devex: minimal first page load logs"

This reverts commit 196e463c59.

* Revert "devex: minimal initialization logs"

This reverts commit ea9c222c09.

* Revert "fix: add missing await in kv example extension"

This reverts commit 9b34e67d0d.

* Revert "devex: reduce logs at init"

This reverts commit fa221149c2.

* Revert "sync: package.json changes"

This reverts commit 4db73d75a5.

* Revert "fix: remove unused AWS SDK v2 import"

This reverts commit 4d8692fd31.

* Revert "devex: hide `npm install` output unless it fails"

This reverts commit fe03a4b598.

* Revert "devex: rollup via module instead of subprocess"

This reverts commit 360082d8bd.

* Revert "devex: webpack via module instead of subprocess"

This reverts commit 1449d12b0e.

* Optional chain logger
2025-10-09 23:08:01 -04:00
Daniel Salazar 2c614b2b99 cleanup: remove auxilary return for now (#1727) 2025-10-09 19:20:52 -07:00
Daniel Salazar a3c6c0b914 Revert "revert: revert devex changes (#1728)" (#1729)
This reverts commit fc725d0130.
2025-10-09 19:16:20 -07:00