100 Commits
Author SHA1 Message Date
Chad Curtis 431b8ec6bb release: v9.15.0 2026-08-19 12:52:59 -05:00
Chad Curtis 77b2be7a3b npm audit fix 2026-08-19 12:36:30 -05:00
Chad Curtis 90d02c42d6 Upgrade @nostrify/react to 0.6.6 to enforce the nostrconnect handshake secret
0.6.6 enforces the nostrconnect handshake secret. Previously a signer
could answer the connect request with result: "ack" and skip proving it
could decrypt the secret, so any relay-connected party who saw the
nostrconnect URI could claim the session and become the user's signer.

The 0.6.6 NostrLoginProvider now resolves stored logins on a microtask
(rendering a null fallback until storage resolves) rather than
synchronously. Component/hook tests render and query immediately, so
they observed an empty tree. Mock @nostrify/react/login in the test
setup with a synchronous provider and matching useNostrLogin hook,
passing every other export (NLogin, NUser, the connect helpers) through
from the real module untouched.
2026-08-19 12:34:08 -05:00
Chad Curtis d3cceb56ee Verify the LNURL invoice amount before paying a zap
Zapping asked the recipient's LNURL-pay server for an invoice and paid
whatever came back, checking only that it was a non-empty string. The
server is chosen by the recipient, so anyone who posts a note and runs
their own endpoint decided how much their victims paid — after the
victim had already approved a figure. The success toast reported the
requested amount rather than the paid one, so an overcharge left no
trace in the UI either.

Add a BOLT11 decoder (bech32 + tagged fields, on @scure/base and
@noble/hashes, both already bundled via nostr-tools) and require the
returned invoice to charge exactly the millisats the user approved.
Amountless invoices are rejected outright. The check runs before the
NWC, WebLN and QR paths alike, and useNWC's sendPayment now takes the
approved amount and re-checks it, so no future caller can hand the
wallet an unvetted invoice.

Resolve LNURL-pay in-repo instead of via nip57.getZapEndpoint, which
returns only the callback URL and discards everything used to validate
the response: HTTPS is now required for both the LNURL and the callback
it names, the advertised minSendable/maxSendable are honoured, and the
invoice's description hash is checked against the zap request (NIP-57)
or the endpoint metadata (LUD-06) when it carries one.

Report the decoded amount in the success toast so it can never
understate a spend.

Adapted from Alex Gleason's ditto commit 6e062450.
2026-08-19 12:16:08 -05:00
Chad Curtis 278b7cd3b2 Add git.nostrhub.io to default GRASP list 2026-06-19 21:25:06 -05:00
Chad Curtis 10ff3e9196 Evict images from context after the model has seen them
Strip image_url parts from all user messages except the most recent one
before sending to the API. The model has already responded to earlier
images, so re-sending them on every turn wastes tokens. The VFS text
path is preserved so the model can still read the file if needed.

This is a send-time transformation only — session.messages stays
intact for the UI.
2026-02-13 01:51:22 -06:00
Chad Curtis 8bad3cfc81 Allow form submission in iframes 2025-12-06 20:33:01 +00:00
Chad Curtis a20ae242de Include Cloudflare worker script. 2025-10-08 06:46:04 +00:00
Chad Curtis 613f8b76bb Review fixes. 2025-10-08 05:37:05 +00:00
Chad Curtis 00485a6889 rm space 2025-10-08 04:46:21 +00:00
Chad Curtis bacf6f2869 Cleanup 2025-10-08 04:44:13 +00:00
Chad Curtis 9a6058fedb Dynamic URL in more places. 2025-10-08 03:55:10 +00:00
Chad Curtis fb487ea622 Actually show system settings in list. 2025-10-08 03:43:50 +00:00
Chad Curtis 5bcf7d7b79 Merge branch 'main' of gitlab.com:soapbox-pub/act2 into esmProxy 2025-10-08 02:42:06 +00:00
Chad Curtis aa82aaf02c init 2025-10-07 23:41:23 +00:00
Chad Curtis 97f5481ec7 Only clear console messages when project actually changes. 2025-10-02 20:58:56 +00:00
Chad Curtis 51ce9c61ef Remove spurrious migration comment. 2025-10-02 20:30:02 +00:00
Chad Curtis 111ab724e5 Remove and simplify some logic. 2025-10-02 20:15:30 +00:00
Chad Curtis 23c3cead89 Move non-tool logic out of tool file. 2025-10-02 20:09:09 +00:00
Chad Curtis 945c4209e8 Remove frivilous UI updates. 2025-10-02 20:02:16 +00:00
Chad Curtis 7574085213 Refactor console error to be provider level, tracking error via boolean rather than full logs as state. 2025-10-02 19:58:53 +00:00
Chad Curtis 92e2ac1ce5 further reduction and removal. 2025-09-25 16:16:01 +00:00
Chad Curtis e81fb33ffe Add light/dark theme awareness to console output popover. 2025-09-25 05:27:52 +00:00
Chad Curtis 9a65d5d086 clean up remaining id reference + space 2025-09-25 05:25:02 +00:00
Chad Curtis 61d5a5fefc Further simplify console messages 2025-09-25 05:19:06 +00:00
Chad Curtis 75e961d281 Simplify error handling and fix message. 2025-09-25 05:12:18 +00:00
Chad Curtis 93e992f128 Attempt peace with Quilly once more. 2025-09-25 05:06:11 +00:00
Chad Curtis 7ab30af944 Simplify console message handling and reduce code complexity
- Remove unused useErrorDetection.ts hook (154 lines)
- Remove separate console.ts type file, consolidate into ReadConsoleMessagesTool
- Simplify console message state management in PreviewPane
- Remove redundant console clearing logic in ProjectView
- Streamline copy functionality in console UI
- Clean up imports and formatting

Preserves all functionality while reducing code complexity and maintenance burden.
2025-09-25 04:46:47 +00:00
Chad Curtis 6296fc4366 Merge branch 'main' of gitlab.com:soapbox-pub/act2 into consoleFramev2 2025-09-25 04:42:50 +00:00
Chad Curtis 147c7cdf3a Heavily reduce console log detection. v2 2025-09-25 04:41:24 +00:00
Chad Curtis 18a276a44e Heavily reduce console log detection. 2025-09-25 04:32:11 +00:00
Chad Curtis c46077af67 Merge in from upstream and resolve conflicts 2025-09-25 03:21:38 +00:00
Chad Curtis e5ca49962e Reset iframe browser history on project change. 2025-09-25 03:15:51 +00:00
Chad Curtis f5c5684ac8 Merge branch 'main' of gitlab.com:soapbox-pub/act2 into navigationBar 2025-09-25 03:13:32 +00:00
Chad Curtis 6a72711aa0 Fix force re-render on url change in preview pane. 2025-09-25 03:13:04 +00:00
Chad Curtis 1ed4a5abd4 Properly block actions based on build status 2025-09-25 02:56:01 +00:00
Chad Curtis 0f4075ce38 Merge in from upstream and resolve conflicts 2025-09-25 02:53:08 +00:00
Chad Curtis ad5902cdc6 test fix 2025-09-25 02:48:32 +00:00
Chad Curtis ce4a602270 Add check to verify extracted zip paths are within project directory. 2025-09-25 02:42:46 +00:00
Chad Curtis 5e352e60e9 Merge in from upstream and resolve conflicts 2025-09-25 02:33:26 +00:00
Chad Curtis 37147a69d4 Remove unused file + remove consolemessages from dependency array, store messages in ref. 2025-09-25 02:24:34 +00:00
Chad Curtis 4f9d3ae1d1 Remove config object pattern. 2025-09-24 19:09:19 +00:00
Chad Curtis fdfdcb4b16 Tidy 2025-09-24 18:23:59 +00:00
Chad Curtis 50e16e1b57 Merge in from upstream and fix conflicts. 2025-09-24 18:18:39 +00:00
Chad Curtis 662f95d35d Merge console messaging systems - resolve conflicts between parallel console log implementations
- Unified the global console message system with local state passing
- Maintained backward compatibility for external systems
- Added proper synchronization between global and local console states
- Resolved conflicts in PreviewPane.tsx and ProjectView.tsx
- Both console messaging systems now co-exist peacefully
2025-09-24 16:30:50 +00:00
Chad Curtis 458eec0e27 Iniitial console output redesign v2 2025-09-24 16:09:25 +00:00
Chad Curtis 74e472338d Iniitial console output redesign 2025-09-24 15:12:57 +00:00
Chad Curtis 2b5e3013ff Refactor previewpane to avoid overload of positional parameters. 2025-09-23 14:40:42 +00:00
Chad Curtis 951eefb7b8 Trim down AGENTS.md 2025-09-23 14:30:39 +00:00
Chad Curtis a68d37452b Clean up code duplication and excess changes
- Move ConsoleMessage interface to shared types file to eliminate duplication
- Remove redundant handleSetConsoleMessages variable in PreviewPane
- Update all imports to use shared ConsoleMessage type
- Clean up excess comments and redundant code patterns
2025-09-23 14:29:22 +00:00
Chad Curtis c8653e67dc lint fix + reset console output on project change. 2025-09-23 14:24:22 +00:00
Chad Curtis 660f25656c Replace X with Trash icon for clearing console output 2025-09-23 14:21:09 +00:00
Chad Curtis 804efb4d23 Expose console messages via tool call. 2025-09-23 14:19:49 +00:00
Chad Curtis 8108407478 Improve visual presentation of console output. 2025-09-23 13:59:21 +00:00
Chad Curtis 41d7d7834d a bit more janitorial work 2025-09-21 06:52:56 +00:00
Chad Curtis 785f75a39a remove cruft path 2025-09-21 06:48:03 +00:00
Chad Curtis 8e3cc67ce2 cleanup current logic 2025-09-21 06:47:23 +00:00
Chad Curtis fae90cc85e refresh functionality fix 2025-09-21 06:08:18 +00:00
Chad Curtis 2ed44e43f7 v3 2025-09-21 06:08:18 +00:00
Chad Curtis 53cf844fd6 v2 navigation 2025-09-21 06:08:18 +00:00
Chad Curtis 6aa36b6738 v1 navigation 2025-09-21 06:08:18 +00:00
Chad Curtis c6617beb6d Gracefully handle total response failure from site - no response at all. 2025-09-20 18:36:52 +00:00
Chad Curtis 718b2f369b Remove code example from a file path already linked. 2025-09-20 18:24:18 +00:00
Chad Curtis a823f81b50 Function definition consistency + slight deduplication 2025-09-20 18:21:55 +00:00
Chad Curtis 4cd8683e73 Re-add purged, but informative documentation/comment items. 2025-09-20 18:09:03 +00:00
Chad Curtis 53ac813eb5 Further simplify main.js, update documentation. 2025-09-20 17:59:04 +00:00
Chad Curtis f4f455606f Simplify console overrides list within iframe client as well. 2025-09-20 17:15:17 +00:00
Chad Curtis 1a424c0762 Refactor and simplify console methods. 2025-09-20 17:10:47 +00:00
Chad Curtis adeb3bf53f Revert "remove custom id logic"
This reverts commit 588e32a43d.
2025-09-20 06:57:24 +00:00
Chad Curtis 588e32a43d remove custom id logic 2025-09-20 06:52:47 +00:00
Chad Curtis 57e12261af clean up index spaces 2025-09-20 06:39:11 +00:00
Chad Curtis 797984c5d3 Revert "Restore mobile back buttons and clean up branch"
This reverts commit 4d6bc91650.
2025-09-20 06:38:53 +00:00
Chad Curtis 6d49648580 simplify agents.md entry 2025-09-20 06:34:45 +00:00
Chad Curtis 4d6bc91650 Restore mobile back buttons and clean up branch
- Restore mobile back buttons in AboutSettings and DataSettings pages
- Remove extra empty lines in Index.tsx
- Ensure compatibility with origin/main changes
- All tests pass and build succeeds

This resolves conflicts where the zipImport branch had incorrectly
removed mobile navigation features that were added in origin/main.
2025-09-20 06:14:16 +00:00
Chad Curtis 2fdf8a3740 refactors v2 2025-09-20 06:00:20 +00:00
Chad Curtis f4ccc2d924 refactors 2025-09-20 05:47:17 +00:00
Chad Curtis 6f4aa264eb merge in from upstream and resolve conflict 2025-09-20 03:55:34 +00:00
Chad Curtis f299c73c4d final consolidation 2025-09-20 03:53:46 +00:00
Chad Curtis 1d05aa10eb further cleanup 2025-09-20 03:38:19 +00:00
Chad Curtis ca2426a800 Further cleanup + make errors copiable 2025-09-20 03:37:20 +00:00
Chad Curtis fbea142bbb Address review items 2025-09-20 02:16:40 +00:00
Chad Curtis 0027752654 consolidation and visual cleanup 2025-09-20 02:16:40 +00:00
Chad Curtis d64fa0e0ec Deduplicate console interception code
- Extract shared console utilities to console-utils.js
- Remove duplicated console methods array
- Consolidate original console storage logic
- Extract console override and error handler patterns
- Reduced code duplication by ~90 lines
2025-09-20 02:16:40 +00:00
Chad Curtis 696cbca55a remove debug file 2025-09-20 02:16:40 +00:00
Chad Curtis 92f3c06f51 cleanup 2025-09-20 02:16:40 +00:00
Chad Curtis 3898681d97 CF worker setup + iframe domain to env 2025-09-20 02:16:40 +00:00
Chad Curtis ba251d57eb baseline 2025-09-20 02:16:40 +00:00
Chad Curtis 423828705a space rm 2025-09-06 03:33:55 +00:00
Chad Curtis c8e78f8a19 local storage fix 2025-09-06 03:28:54 +00:00
Chad Curtis ba273282db Use DotAI over local storage 2025-09-06 02:46:37 +00:00
Chad Curtis 0e1ccfe469 Fix messages appearing immediately, again. 2025-09-06 00:23:12 +00:00
Chad Curtis a177c81314 cleanup v2 2025-09-05 23:30:45 +00:00
Chad Curtis 6583e29d08 cleanup 2025-09-05 23:21:58 +00:00
Chad Curtis a3d491f1a5 clean up icons 2025-09-05 22:44:47 +00:00
Chad Curtis beeffd820d remove status indicator button and count, move progress icons to folder 2025-09-05 22:24:38 +00:00
Chad Curtis e622c09251 Fix messages not appearing 2025-09-05 22:17:46 +00:00
Chad Curtis 8475ca7c1a baseline session management 2025-09-04 06:35:55 +00:00
Chad Curtis bb1287e02e center progress labels for onboarding 2025-07-28 14:18:30 +00:00
Chad Curtis 00a24f13b6 Re-use local storage prompt on index until project has been created. 2025-07-28 14:13:08 +00:00
Chad Curtis 213eda9797 further optimization for small screens 2025-07-28 14:03:24 +00:00