Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
856 changes: 856 additions & 0 deletions app/app/n-contacts.hoon

Large diffs are not rendered by default.

35 changes: 27 additions & 8 deletions app/app/nostrill.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
|~ [=mark =vase]
^- (quip card:agent:gall agent:gall)
|^
~& nostrill-on-poke=mark
?+ mark `this
%noun handle-comms
%json on-ui
Expand All @@ -73,7 +72,6 @@
==
++ on-ted
=/ pok !<(ted:ui vase)
:: =/ poke !<()
=^ cards state (handle-ted:mutan pok)
:_ this cards

Expand Down Expand Up @@ -704,6 +702,23 @@
:~ (urbit-watch:fols ~zod)
[%pass /foldbug %agent [~zod dap.bowl] %poke %bitch !>(~)]
==
%uinf
:_ this
:~ (update-ui:cards [%nostr %feed nostr-feed])
==
%tedt
=/ teds .^((list path) %gx /(scot %p our.bowl)/spider/(scot %da now.bowl)/tree/noun)
~& teds
=/ flt=(list @t) (zing teds)
|- ?~ flt ~& 'no ted' `this
?. .=('sync-' (cut 3 [0 5] i.flt)) $(flt t.flt)
=/ tid i.flt

:_ this
=/ payload [%res 'lmao']
:~
[%pass /fuck/this %agent [our.bowl %spider] %poke %spider-input !>([tid %nostrill-ted !>(payload)])]
==
:: :: TODO refactoring into mutations
:: ::
:: %rt0
Expand Down Expand Up @@ -779,21 +794,25 @@
?+ pole `this
[%websocket-client wids=@ ~]
:: reconnect logic requires knowing which side dropped the connection, which is... tricky
`this
:: ~& websocket-client-connection-dropped=`@t`wids.pole
:: =/ wid (slav %ud wids.pole)
~& websocket-client-connection-dropped=`@t`wids.pole
=/ uwid (slaw %ud wids.pole)
?~ uwid `this
=/ wid u.uwid
=. relays (~(del by relays) wid)
:: :: check if it's the global relay
:: =/ is-global .= `wid global-relay-conn
:: ?: is-global
:: ~& reconnecting-to-global=wid
:: :_ this :~((connect:ws global-relay:constants bowl))
:: ::
:: =/ relay (~(get by relays) wid)
:: ?~ relay `this :: that would be weird
:: :_ this
:: ~& reconnecting=url.u.relay
:: :~ (connect:ws url.u.relay bowl)
:: ==
:_ this
:: TODO more minute disconnected note
:~ (update-ui:cards [%nostr %relays relays])
==

==
::
Expand Down Expand Up @@ -843,7 +862,7 @@
++ on-arvo
|~ [wire=(pole knot) =sign-arvo]
^- (quip card:agent:gall agent:gall)
~& >> on-arvo=[`path`wire -.sign-arvo +<.sign-arvo]
:: ~& >> on-arvo=[`path`wire -.sign-arvo +<.sign-arvo]
?: ?=(%iris -.sign-arvo)
:: ~& > +.sign-arvo
`this
Expand Down
1 change: 1 addition & 0 deletions app/desk.bill
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
:~ %nostrill
%n-contacts
==
4 changes: 2 additions & 2 deletions app/desk.docket-0
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title+'Trill 2'
info+'Pater Nostr'
color+0xff.d400
version+[0 1 1]
version+[0 1 2]
website+'https://groundwire.dev'
license+'Noli me tangere'
image+'https://s3.sortug.com/img/nostrill-tile.png'
base+'nostrill'
glob-http+['https://s3.sortug.com/globs/glob-0v2.0n7m8.g69ms.uejn8.dkget.1jm7v.glob' 0v2.0n7m8.g69ms.uejn8.dkget.1jm7v]
glob-http+['https://s3.sortug.com/globs/glob-0vjp0je.6lheq.e8r6b.5e483.59v2p.glob' 0vjp0je.6lheq.e8r6b.5e483.59v2p]
==
Loading
Loading