Commit Graph

5569 Commits

Author SHA1 Message Date
Joe Bryan
5ea372be12 vere: adds basic tests for base16 jets 2020-09-25 10:51:35 -07:00
Elliot Glaysher
20a6c0331c king: set initial terminal size and react to resizes
This changes startup so we get the size of the current terminal
to send to Urbit on startup. We then subscribe to terminal size
change notifications and send those to your Urbit via the terminal
muxing system.

In the case where there are multiple terminal connections to your
Urbit, set the terminal size to the minimum of the widths.
2020-09-25 12:40:24 -04:00
Elliot Glaysher
e9f09e32c1 king: put slogs in the muxed scrollback
If you connect to an urbit using the remote terminal code,
slogs would not be printed to them since they were hard
coded to be printed to stderr. This threads slog printing
to the terminal driver, and puts them in scrollback.

(It does not actually fix slogs being printed on one line.)
2020-09-25 12:40:23 -04:00
Joe Bryan
2541ccbbec vere: refactors u3qe_de_base16() to properly handle odd lengths 2020-09-24 23:27:38 -07:00
Joe Bryan
a5c51aed0b vere: adds jets for en/decoding base16 2020-09-24 19:59:53 -07:00
Fang
6659c859f1
kh: abolish unicode syntax in favor of ascii 2020-09-25 01:43:03 +02:00
Fang
a6af035532
vere: add heartbeat to slog endpoint
Because ISPs might close connections that have no data going over them.
2020-09-24 23:30:42 +02:00
Fang
c4a2088bff
vere: add /~/slog http endpoint
Acts as a SSE endpoint for streaming slogs emitted by the runtime. Takes care
of tank rendering, emitting the lines resulting from printing the tank at
whatever the current terminal width is.

Adds siginfo logic to http.c, showing how many connections to that endpoint are
open.
2020-09-24 23:29:50 +02:00
Elliot Glaysher
bf2aa9d2e6 king: remove dead code in noun conversion. 2020-09-23 11:27:53 -04:00
Joe Bryan
592b61fa86 vere: use cue/test handles for repeated packet parsing 2020-09-22 11:55:57 -07:00
Joe Bryan
7493f98480 ur: adds missing serial.h include 2020-09-22 11:42:28 -07:00
Fang
d6c14eea35
term: don't print styles in non-interactive mode 2020-09-19 00:41:06 +02:00
Joe Bryan
be1cfc16c4 Merge branch 'master' into release/next-vere
* master: (187 commits)
  glob: update to 0v3.u1ets.ipgbo.eo23m.md70h.djpj0
  chat: fixes
  glob: update to 0v6.cvqlg.l55tn.kk8qp.lv4q3.f06lj
  groups: restore previous virtualiser
  chat: fixes new scroll implementation behavior
  soto: address #3484 review
  soto: call resetControllers on mount
  leap: ensure selected is always an array
  glob: update to 0v4.kdc52.27is2.c7mnh.7vsrb.ij4jo
  chat: hotfix new message indicator
  leap: safety check state.selected
  glob: update to 0v6.vnpkl.sq452.quabg.73g7k.dhi55
  chat: show pending messages again
  statusBar: prepend sig to ship settings button
  links: pipe remoteContentPolicy to pending comments
  interface: always show home button
  publish: mobile scrolling fix
  publish: scroll markdown editor correctly
  chat: prevent message rerender
  interface: embeds on by default
  ...
2020-09-18 14:21:32 -07:00
Joe Bryan
d2047862d8 u3: updates u3s_cue_xeno() to return error, not bail on oversized atoms 2020-09-18 12:25:47 -07:00
Joe Bryan
00df76c214 u3: factors atoms/backrefs back into u3s_cue_xeno() 2020-09-18 12:24:34 -07:00
Joe Bryan
c3a854363e u3: renames u3s_cue_sill* to u3s_cue_xeno* 2020-09-18 12:04:04 -07:00
Joe Bryan
5f8dcecbe3 u3: removes u3s_cue_xeno() 2020-09-18 12:02:38 -07:00
Joe Bryan
77754c974c u3: removes unused atom measurement function in urth.c 2020-09-18 11:35:36 -07:00
Joe Bryan
e4e8c4e9e8 vere: use u3s_cue_sill() for ivory pill 2020-09-18 11:24:20 -07:00
Joe Bryan
830df0d86e vere: use u3s_cue_sill for ipc $plea's 2020-09-18 11:24:02 -07:00
Joe Bryan
a79a0e9437 serf: use u3s_cue_sill() for ipc $writ's 2020-09-18 11:23:12 -07:00
Joe Bryan
fe01695594 u3: use u3s_cue_sill_with() in u3u_uncram() 2020-09-18 11:22:36 -07:00
Joe Bryan
bf117f63a8 u3: adds u3s_cue_fill and handle-based api 2020-09-17 22:45:53 -07:00
Joe Bryan
55c4fa2079 u3: factors atoms/backrefs out of u3s_cue_xeno 2020-09-17 22:45:53 -07:00
Joe Bryan
81e38c7b72 u3: refactors u3s_cue_bytes() to use road-stack api 2020-09-17 22:45:53 -07:00
Joe Bryan
6ef6acbddc ur: removes unused variables in tests 2020-09-17 22:45:53 -07:00
Joe Bryan
bc3c1eb0c7 ur: cleans up ur_bsr_log() 2020-09-17 22:45:53 -07:00
Joe Bryan
bf20b93e4d ur: cleans up ur_met(), atom measurement 2020-09-17 22:45:53 -07:00
Joe Bryan
8b5bc77565 ur: refactors unsafe jam into a handle-based api 2020-09-17 22:45:53 -07:00
Joe Bryan
6b10dd0f7e ur: adds walk_fore variant with a handle-based api for repeated traversal 2020-09-17 22:45:53 -07:00
Joe Bryan
efe4479f23 ur: refactors unsafe cue variants into a handle-based api 2020-09-17 22:45:49 -07:00
Joe Bryan
06cf6386aa ur: renames bitstream-write reinit test helper for clarity 2020-09-17 16:19:07 -07:00
Joe Bryan
bd0432f84e ur: adds initialization/finalization to bitstream-write api 2020-09-17 16:19:01 -07:00
Joe Bryan
f6589adf05 Merge branch 'release/next-vere' into jb/hashcons
* release/next-vere: (346 commits)
  kh: support rendering +stub as ansi escape codes
  vere: disables sample profiling in the king
  u3: fixes -P profiling by moving alloc hints in imprison.c
  u3: corrects comments in allocate.h
  u3: refactors +reel and +stir jets, removing obsolete stack bookkeeping
  u3: const-qualifies u3_pile pointer in road-stack api (where appropriate)
  vere: restores a necessary layer of reallocation
  u3: clarifies forward-declaration comment in allocate.h
  u3: only perform road stack checks in +stir jet if necessary
  u3: removes redundant stack reads from +reel and +stir jets
  u3: adds further improvements to road-stack api
  u3: refactors road stack api, limiting overflow checks
  vere: incorporate term.c review feedback, updates comments
  vere: avoids allocations by attempting synchronous terminal writes
  vere: comments-out unused ansi input sequences
  vere: directly implements utf-32 to utf-8 conversion
  vere: refactors terminal rendering to limit utf-32->utf-8 conversions
  vere: refactors terminal jam-file blits
  vere: refactors %lin blit handling in term.c
  vere: refactors _term_it_show_cursor()
  ...
2020-09-16 23:30:38 -07:00
Matilde Park
4e82588cc0 glob: update to 0v3.u1ets.ipgbo.eo23m.md70h.djpj0 2020-09-16 00:32:23 -04:00
Matilde Park
b9c1b7afb3 Merge branch 'release/next-userspace' 2020-09-16 00:26:44 -04:00
Tyler Brown Cifu Shuster
ec99d96112 chat: fixes 2020-09-15 21:13:04 -07:00
Matilde Park
405c4792dc glob: update to 0v6.cvqlg.l55tn.kk8qp.lv4q3.f06lj 2020-09-15 22:14:46 -04:00
Matilde Park
b1573ccae5 groups: restore previous virtualiser 2020-09-15 22:09:26 -04:00
matildepark
e35bd1a2c9
Merge pull request #3476 from tylershuster/scroll-behavior
chat: Scroll behavior
2020-09-15 21:23:44 -04:00
Tyler Brown Cifu Shuster
dc1c23921b chat: fixes new scroll implementation behavior
Fixes #3482, fixes #3465, fixes #3440
2020-09-15 18:21:16 -07:00
matildepark
15593d69f0
Merge pull request #3484 from urbit/mp/dojo-subscription-tweak
soto: call resetControllers on mount
2020-09-15 19:22:43 -04:00
Matilde Park
a053f59970 soto: address #3484 review 2020-09-15 18:59:34 -04:00
Joe Bryan
a6a7b557a9 serf: adds comments re: unnecessary failure-mode of %uncram 2020-09-15 15:12:14 -07:00
Joe Bryan
0064271e7d ur: refactors bitstream length calculatings, using bloq-conversion macros 2020-09-15 15:09:17 -07:00
Joe Bryan
9bd04f2075
Merge pull request #3433 from urbit/jb/stir-tail
u3: rewrites +stir jet, eliminating recursion and optimizing allocations
2020-09-15 14:49:40 -07:00
Joe Bryan
6477f63045 ur: refactors ur_met, deduplicating and using bloq-conversion macros 2020-09-15 14:06:46 -07:00
Joe Bryan
76f1b78218 ur: refactors scalar/direct-atom measurement macros 2020-09-15 14:06:28 -07:00
Joe Bryan
39a82fe66d ur: updates api to consistently use (len, bytes) for vectors 2020-09-15 13:50:22 -07:00
fang
55d98dfacb
Merge pull request #3487 from urbit/m/term-escape-kh
kh: support rendering +stub as ansi escape codes
2020-09-15 21:39:14 +02:00
Fang
dd3112985e
kh: support rendering +stub as ansi escape codes
Adds support to term.hs for a %klr blit, containing a +stub describing
styled text.

Dill will start making use of this in a separate commit, for release
cutting reasons.
2020-09-15 16:50:25 +02:00
Joe Bryan
ab60025438 vere: disables sample profiling in the king 2020-09-15 01:13:20 -07:00
Joe Bryan
7cb15d77f2 u3: fixes -P profiling by moving alloc hints in imprison.c
broken by yours truly, in 406a823ddd
2020-09-15 01:13:18 -07:00
Joe Bryan
e389220d18 u3: refactors u3r_sing internals, adding comments 2020-09-15 01:12:38 -07:00
Joe Bryan
e014baacac u3: refactors u3r_sing internals to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
c1d22949af u3: rewrites u3s_cue to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
740c0bbf81 u3: splits u3a_take into north/south implementations 2020-09-15 01:12:38 -07:00
Joe Bryan
fae8980660 u3: refactors "retreat" block of u3a_take in to do/while loop 2020-09-15 01:12:38 -07:00
Joe Bryan
c591eb220d u3: factors out "advance" block of u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
8b08a8b5c8 u3: refactors u3a_take() to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
a0621f2bbf u3: refactors cell reallocation, stack struct in u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
00ed9b1c1c u3: refactors atom reallocation in u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
6f39faeb7d u3: refactors u3a_walk_fore/unsafe(), using road stack api 2020-09-15 01:12:38 -07:00
Matilde Park
28c019c9cb Merge branch 'release/next-userspace' into mp/chat/copy-notice 2020-09-14 21:05:58 -04:00
Matilde Park
3482f4ae59 soto: call resetControllers on mount 2020-09-14 14:36:57 -04:00
Joe Bryan
10a674b0a5 u3: rewrites u3r_mug for clarity 2020-09-12 22:35:02 -07:00
Joe Bryan
707a834397 u3: corrects comments in allocate.h 2020-09-12 22:34:05 -07:00
Joe Bryan
26d27e4215
Merge pull request #3480 from urbit/jb/term-efficiency
vere: refactors terminal output implementation for efficiency
2020-09-11 16:53:25 -07:00
Joe Bryan
b43fca4539 u3: refactors +reel and +stir jets, removing obsolete stack bookkeeping 2020-09-11 15:56:48 -07:00
Joe Bryan
0eb63131b8 u3: const-qualifies u3_pile pointer in road-stack api (where appropriate) 2020-09-11 15:56:07 -07:00
Joe Bryan
ad4d6368da vere: restores a necessary layer of reallocation 2020-09-11 15:38:55 -07:00
Joe Bryan
047481667a u3: clarifies forward-declaration comment in allocate.h 2020-09-11 15:12:46 -07:00
Joe Bryan
8db9a4d394 u3: only perform road stack checks in +stir jet if necessary 2020-09-11 15:10:49 -07:00
Joe Bryan
2e8d84c173 u3: removes redundant stack reads from +reel and +stir jets 2020-09-11 14:57:57 -07:00
Joe Bryan
a78b303bb4 u3: adds further improvements to road-stack api 2020-09-11 14:54:49 -07:00
Joe Bryan
b719a738f4 u3: refactors road stack api, limiting overflow checks 2020-09-11 13:38:04 -07:00
Joe Bryan
2af18a6659 Merge branch 'release/next-vere' into jb/stir-tail
* release/next-vere: (317 commits)
  u3: improves error output on c3_assert()
  vere: improves error messages on ipc EOF
  vere: fixes %trim effect handler
  vere: fix crash on u3_pier_bail()
  king: move most things from debug log level to info
  vere: support rendering +stub as ansi escape codes
  king: change logging from tracing to info in Wai.hs
  king dawn: export functions used in tests
  king dawn: nits
  king dawn: remove stray marks
  king dawn: instead of crashing, return an error
  king dawn: replace web3 usage with hand rolled jsonrpc messages.
  vere: v0.10.9-rc1
  vere: more correct lane cache commentary
  vere: reset instead of decrement scry fail counter
  vere: ames.c stylistic improvements
  vere: only touch forward queue counter if scrying
  vere: cache lanes for stateless forwarding
  vere: give up ames scry after successive failures
  vere: properly clean up dropped laneless packets
  ...
2020-09-11 12:53:30 -07:00
Joe Bryan
faaaa9415d vere: incorporate term.c review feedback, updates comments 2020-09-11 11:44:18 -07:00
Joe Bryan
67dc15efca vere: avoids allocations by attempting synchronous terminal writes 2020-09-11 00:30:28 -07:00
Joe Bryan
00a691dfe2 vere: comments-out unused ansi input sequences 2020-09-11 00:30:28 -07:00
Joe Bryan
4eaffc87b2 vere: directly implements utf-32 to utf-8 conversion 2020-09-11 00:23:20 -07:00
Joe Bryan
49210f49f3 vere: refactors terminal rendering to limit utf-32->utf-8 conversions 2020-09-11 00:23:15 -07:00
Joe Bryan
27ebfcfbdf vere: refactors terminal jam-file blits 2020-09-11 00:07:14 -07:00
Joe Bryan
ccc77d627d vere: refactors %lin blit handling in term.c 2020-09-11 00:07:14 -07:00
Joe Bryan
1e5e4e5001 vere: refactors _term_it_show_cursor() 2020-09-11 00:07:14 -07:00
Joe Bryan
f3299796e6 vere: check for null before closing terminal pipe 2020-09-11 00:07:14 -07:00
Joe Bryan
db54ac1084 vere: zero-initialize terminal mirror style offset 2020-09-11 00:07:14 -07:00
Joe Bryan
41238a5549 vere: further refactors the terminal spinner 2020-09-11 00:07:14 -07:00
Joe Bryan
bf28ff571f vere: refactors term write codepaths, avoiding reallocation 2020-09-11 00:07:09 -07:00
Joe Bryan
ce236f17ee term: refactors spinner, avoiding (most) unnecessary measurement 2020-09-10 15:01:46 -07:00
pilfer-pandex
98bb534930
Merge pull request #3470 from urbit/pp/loud
Use logInfo in place of logDebug in most situations
2020-09-10 12:47:39 -07:00
Joe Bryan
f4c58ff256 u3: improves error output on c3_assert() 2020-09-09 22:43:28 -07:00
Joe Bryan
0699f6f3f1 vere: improves error messages on ipc EOF 2020-09-09 22:42:53 -07:00
Joe Bryan
3eb51b13d6 vere: fixes %trim effect handler 2020-09-09 22:40:46 -07:00
Joe Bryan
0641769875 vere: fix crash on u3_pier_bail() 2020-09-09 22:39:39 -07:00
Joe Bryan
a353179908 vere: consistently handle %meld $writ in king 2020-09-09 22:35:52 -07:00
Joe Bryan
cda7a7edb0 ur: consistently use fibonacci constants 2020-09-09 22:33:44 -07:00
Joe Bryan
efe1f7ce39 u3: disables meld and cram under U3_MEMORY_DEEBUG 2020-09-09 22:33:07 -07:00
Matilde Park
1f6f1fcd53 leap: ensure selected is always an array
Fixes #3462.
2020-09-09 21:20:59 -04:00
pilfer-pandex
ba79aa713a king: move most things from debug log level to info 2020-09-09 18:20:21 -07:00
Joe Bryan
c20385a212 u3: refactors on-loom re-allocation in _cu_all_to_loom() 2020-09-09 13:12:27 -07:00
fang
7889a663b2
Merge pull request #3467 from urbit/m/term-escape-vere
vere: support rendering +stub as ansi escape codes
2020-09-09 20:08:55 +02:00
Fang
467d8d239b
vere: support rendering +stub as ansi escape codes
Adds support to term.c for a %klr blit, containing a +stub describing
styled text.

Dill will start making use of this in a separate commit, for release
cutting reasons.
2020-09-09 19:06:40 +02:00
Joe Bryan
6cb5df513e u3: refactors off-loom re-allocation in _cu_from_loom() 2020-09-08 22:30:55 -07:00
Joe Bryan
82e91811d4 ur: replaces allocation-failure assertions with error printfs/abort() 2020-09-08 22:25:24 -07:00
Matilde Park
a2adf7359d glob: update to 0v4.kdc52.27is2.c7mnh.7vsrb.ij4jo 2020-09-09 00:19:14 -04:00
matildepark
5eb5d4abe1
Merge pull request #3461 from tylershuster/the-thin-green-line
chat: hotfix new message indicator
2020-09-09 00:11:49 -04:00
Tyler Brown Cifu Shuster
05dd5d65cb chat: hotfix new message indicator 2020-09-08 19:56:07 -07:00
Matilde Park
bb44f39491 leap: safety check state.selected 2020-09-08 21:57:47 -04:00
Matilde Park
7d857d3a83 glob: update to 0v6.vnpkl.sq452.quabg.73g7k.dhi55 2020-09-08 20:39:36 -04:00
Matilde Park
c7f8af1fd2 Merge branch 'release/next-userspace' 2020-09-08 20:32:02 -04:00
matildepark
3d739c03c2
Merge pull request #3457 from tylershuster/pending-message
chat: show pending messages again
2020-09-08 20:31:21 -04:00
Tyler Brown Cifu Shuster
042cdcf698 chat: show pending messages again 2020-09-08 17:28:52 -07:00
Matilde Park
76d4f73942 statusBar: prepend sig to ship settings button 2020-09-08 20:01:45 -04:00
matildepark
ae0a00eb4e
Merge pull request #3412 from urbit/lf/publish-role-check
publish: check roles correctly for tags
2020-09-08 19:58:31 -04:00
Matilde Park
c47c281743 Merge branch 'release/next-userspace' of github.com:urbit/urbit into release/next-userspace 2020-09-08 19:45:00 -04:00
Matilde Park
71867d1d5c links: pipe remoteContentPolicy to pending comments 2020-09-08 19:44:51 -04:00
matildepark
9ded774944
Merge pull request #3413 from urbit/lf/publish-input-form--qa
publish: make form expand to fill height of window
2020-09-08 19:43:03 -04:00
matildepark
787973e260
Merge pull request #3455 from urbit/mp/interface/always-home
interface: always show home button
2020-09-08 19:42:45 -04:00
matildepark
fb9e7d83f8
Merge pull request #3448 from urbit/mp/profile/ios-fixes
profile: fix iOS safari behaviour, add react-helmet
2020-09-08 19:28:09 -04:00
matildepark
89ddac2f7b
Merge pull request #3452 from urbit/mp/404/bg
error: add background style
2020-09-08 19:27:59 -04:00
Matilde Park
7fe9caf554 interface: always show home button 2020-09-08 18:57:56 -04:00
Liam Fitzgerald
d80e5cac49 publish: mobile scrolling fix 2020-09-09 08:51:17 +10:00
matildepark
f24a47f8e9
Merge pull request #3454 from tylershuster/oembed-collapse
chat: prevent message rerender
2020-09-08 18:37:50 -04:00
matildepark
ef70d8e126
Merge pull request #3453 from urbit/mp/interface/embeds-on
interface: embeds on by default
2020-09-08 18:34:02 -04:00
Liam Fitzgerald
c3a2e66412 publish: scroll markdown editor correctly 2020-09-09 08:26:03 +10:00
Tyler Brown Cifu Shuster
f9cf984381 chat: prevent message rerender 2020-09-08 15:20:40 -07:00
Matilde Park
27fd31b0b3 interface: embeds on by default 2020-09-08 17:22:42 -04:00
Matilde Park
990d46dd9e error: add background style
If you've set an image background, it can make it hard to read 404s or
error messages. This adds the default bg color.
2020-09-08 17:16:45 -04:00
Matilde Park
01a75d540f leap: use a instead of Link if not default app
Logging out currently doesn't work via Leap because we only use
react-router. This adds selection and navigation logic that passes
both app name and link href and compares app name against the default
app lib. This makes leap extensible for third party apps, too.
2020-09-08 17:08:15 -04:00
matildepark
39e73d16a9
Merge pull request #3450 from tylershuster/window-hotfix
chat: added placeholder for empty room
2020-09-08 16:20:48 -04:00
Joe Bryan
562548440b ur: assert not-null after all allocations 2020-09-08 13:20:43 -07:00
Joe Bryan
40dabb3bac u3: tweaks +stir jet for refcount clarity 2020-09-08 13:11:29 -07:00
Tyler Brown Cifu Shuster
f1a75b7af9 chat: added placeholder for empty room 2020-09-08 13:04:36 -07:00
Tyler Brown Cifu Shuster
d04f62a907 chat: check for cited participants in sidebar
Fixes #3438
2020-09-08 12:46:41 -07:00
Tyler Brown Cifu Shuster
c9aa908838 links, chat: add drag and drop 2020-09-08 11:41:43 -07:00
Matilde Park
694c752b3f profile: add react-helmet 2020-09-08 13:59:39 -04:00
Matilde Park
55039f2879 profile: add z-index for iOS safari
Fixes #3383.
2020-09-08 13:57:07 -04:00
matildepark
0ddb4a4887
Merge pull request #3444 from urbit/lf/publish-fixup
publish: don't timeout, show groupify
2020-09-08 12:47:10 -04:00
matildepark
a1b06689d5
Merge pull request #3443 from tylershuster/group-confirm-delete
groups: add group deletion confirmation
2020-09-08 12:35:35 -04:00
Elliot Glaysher
0a3fe85c06
Merge pull request #3439 from urbit/kh-sending-chunk
king: change logging from tracing to info in Wai.hs
2020-09-08 10:32:23 -04:00
Elliot Glaysher
d6762a8baf
Merge pull request #3431 from urbit/fixup-galaxy-table
king dawn: replace web3 usage with hand rolled jsonrpc messages.
2020-09-08 10:10:50 -04:00
Liam Fitzgerald
f320631230 publish: choose group for groupify 2020-09-08 15:55:53 +10:00
matildepark
05adb18a8a
Merge pull request #3445 from tylershuster/keyboard-navigation
chat: added ability to blur chat editor
2020-09-08 00:17:39 -04:00
Tyler Brown Cifu Shuster
952af5cf0e chat: added ability to blur chat editor 2020-09-07 20:59:03 -07:00
Tyler Brown Cifu Shuster
1d86072aa0 interface: changed virtual scroll implementation and added to chat 2020-09-07 20:35:47 -07:00
Liam Fitzgerald
73881aa25f publish: add groupify to settings 2020-09-08 12:30:06 +10:00
Liam Fitzgerald
168478eb74 publish: support groupify poke 2020-09-08 12:11:45 +10:00
Liam Fitzgerald
07c0cb1006 publish: do not timeout join flow 2020-09-08 11:11:57 +10:00
Liam Fitzgerald
0f355e58d9 interface: allow useWaitForProps to not timeout 2020-09-08 11:10:55 +10:00