Commit Graph

32 Commits

Author SHA1 Message Date
Hunter Miller
9044733986
Merge pull request #249 from sidnym-ladrut/sl/vitals-connection-check-fixes
patch many minor issues with `vitals/connection-check.hoon` thread
2024-02-15 15:33:27 -06:00
Sidnym Ladrut
cc3384c422 improve time accuracy of vitals thread reports; fix bug in /lib/vitals/hoon scry path 2024-01-23 02:55:35 +00:00
Jōshin
9826f4a978
landscape: add public url base to S3 configuration
This enables using [Cloudflare R2][0] as a storage provider.

Cloudflare R2 is an S3-compatible API with a generous free tier; it
looks like it may cost nothing for most Urbit ships’ usage patterns.
The only hitch is that R2’s endpoint is not able to be configured to
be publicly readable; in order to [make a bucket public][1], you must
either use an r2.dev URL, or set up your own custom URL. Caching and
such is only supported on your own URL, so it sounds like that’s the
case they’re encouraging people to target.

This change enables R2 support by adding a configuration option to
set a public URL base. If it is non-empty, it replaces the origin
for any S3 upload URLs. A ship may use either its r2.dev URL or a
custom URL at its discretion. As a nice side benefit, this also
allows wrapping S3 access over a custom domain that you control.

[0]: https://www.cloudflare.com/developer-platform/r2/
[1]: https://developers.cloudflare.com/r2/buckets/public-buckets/
2024-01-19 13:32:48 -05:00
Sidnym Ladrut
b57ce3a7d9 update vitals infra to return most positive qos instead of crashing in edge cases 2024-01-17 20:37:18 +00:00
fang
5d3c60b30e
lib: support summarization of new groups backend
/lib/summarize now supports building summaries off of the new
/app/channels. If that agent is running, it will use the new
summarization logic. If it's not, it will continue on as it has.
2023-11-16 21:09:42 +01:00
Hunter Miller
bedf6135a6 storage: update for presigned urls 2023-10-17 18:49:36 -05:00
Hunter Miller
dd897c7ad9 hark: bad copy 2023-09-22 17:06:25 -05:00
Hunter Miller
11eeb54975 Merge branch 'master' into hm/desk-renaming 2023-08-04 15:14:42 -05:00
fang
3b3797135a
lib: avoid crash during activity summarization
There is a (somewhat poorly understood) case where the group associated
with a chat may not actually contain that chat in its channels listing.

Here, instead of assuming the channel is always present, we ask for it
more gently, and simply skip to the next-most-active channel if it turns
out to be missing.

We also remove a stray debug printf, and add a trace print in case
anything else goes wrong here.
2023-07-28 20:43:13 +02:00
fang
7455e2d778
bark, growl: activity summary logging
Includes the bark/growl system for sharing activity summaries. The growl
agent respects the "activity logging" consent flag used by groups,
defaults to not sharing if that flag is not set, and only shares with
the "bark host" when prompted. (The bark host, in turn, currently only
stores responses for hosted ships.)

Also includes all the groups-side dependencies this has, which it needs
for the chats & groups types. Hard-including those files will save us
some run-around during deploy.

Co-authored-by: midsum-salrux <nathan@tlon.io>
2023-07-24 22:27:29 +02:00
fang
166f70578d
various: remove unused /sur/hark dependency 2023-07-24 21:44:06 +02:00
fang
fa5cc3546d
lib: clarify magic numbers in /lib/summarize 2023-07-18 22:50:47 +02:00
fang
2b1e185469
lib: dumb summarization utilities for groups
Helps us retrieve simple numerical summaries of groups (in)activity,
such as number of messages sent, amount of unreads, most active group,
etc.
2023-07-14 18:06:57 +02:00
Hunter Miller
f2ae94b67d hark,contacts: updating from groups 2023-07-13 12:46:25 -05:00
Hunter Miller
edda1fcf45 Merge branch 'master' into hm/desk-renaming 2023-07-11 17:01:51 -05:00
Hunter Miller
a137ab6451 storage: use correct keys 2023-06-29 11:08:16 -05:00
Alex Shelkovnykov
ff3c55e6a2 vitals: initial commit of connectivity check agent 2023-06-16 12:11:52 -04:00
Hunter Miller
a699c30c8a contacts: pulling contacts from groups, adjust bill and sys kelvin in prep 2023-05-08 12:19:32 -05:00
Hunter Miller
ff5fabfcff hark: pulling from new groups 2023-05-08 12:18:48 -05:00
Hunter Miller
4419b5cd5e hark,settings: ripping out old hark, renaming settings 2023-05-08 12:17:50 -05:00
Hunter Miller
6010b15971 Merge branch 'master' into hm/renaming-prerelease 2023-05-04 09:53:20 -05:00
Hunter Miller
d21f1e8ecc settings,storage: add new agents for migration 2023-05-04 09:53:06 -05:00
Hunter Miller
7ddbc9b5e1 413: fix scry and missing case 2023-04-27 14:56:07 -05:00
Hunter Miller
7362251dd3 lure: moving greeting and grouper to groups, removing unused deps 2023-03-28 17:19:37 -05:00
Hunter Miller
e1018d7a44 Merge branch 'master' into ns/lure-settings 2023-03-28 16:52:43 -05:00
Hunter Miller
9f9aa1f0fc hood: keeping compat with both 415 and 414 2023-03-21 14:47:52 -05:00
~midsum-salrux
f46038449e Add lure backend 2023-03-21 13:44:21 -04:00
Hunter Miller
e28bfb0494 ops: deleting embedded deps 2023-03-21 10:16:51 -05:00
fang
6fa000a6ee
various: remove trailing whitespace and empty lines
Touching these up to avoid cleanup noise in future commits touching this
code.
2023-02-10 13:38:30 +01:00
tomholford
e98001be31 garden: remaining diff from urbit/urbit 2022-12-06 11:20:07 -08:00
tomholford
015d46afc6 garden: import clay + kiln changes
Co-authored-by: liam-fitzgerald <liam@tlon.io>
2022-12-02 10:22:52 -08:00
Patrick O'Sullivan
517fa6fa88 Add desk and ui dirs 2022-08-02 10:43:52 -05:00