Matilde Park
4143b0060f
chat: fade images on dark mode
...
Adds 60% opacity to dim images within messages in dark mode.
2020-01-06 08:09:53 -05:00
Jared Tobin
cd9624e097
Merge branch 'm/whitespace' ( #2149 )
...
* origin/m/whitespace:
various: remove trailing whitespace
ci: reject trailing whitespace
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-01-06 10:55:13 +08:00
Jared Tobin
f94ba8ce9c
Merge branch 'm/xmas' ( #2143 )
...
* origin/m/xmas:
xmas: remove, obsoleted by alef
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-01-06 10:53:15 +08:00
Jared Tobin
836142ad0d
Merge branch 'rcrdlbl/chat-sidebar-margin-fix' ( #2137 )
...
* rcrdlbl/chat-sidebar-margin-fix:
chat: add bottom padding to sidebar items
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-01-06 07:45:25 +08:00
Jared Tobin
5b0fd5fb78
Merge branch 'm/webchat-me' ( #2135 )
...
* origin/m/webchat-me:
webchat: render "me" messages in italics
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-01-06 07:25:53 +08:00
Jared Tobin
6f7aae3574
Merge branch 'ames-clean' ( #2127 )
...
* origin/ames-clean:
ames: update comment docs
Signed-off-by: Jared Tobin <jared@tlon.io>
2020-01-06 07:25:22 +08:00
Fang
fcf1846b6f
various: remove trailing whitespace
2020-01-03 22:06:42 +01:00
Matilde Park
271e594f61
chat: correct datestamp to match @da
...
The datestamp in webchat currently leftpads the month numeral.
This commit amends it so that the month numeral doesn't pad with zeroes.
2020-01-01 08:54:36 +01:00
Matilde Park
d45be05c26
chat: add dark mode
...
Adds custom classes and declarations for dark mode color scheme.
Uses prefers-color-scheme media query to check preference.
2019-12-27 12:15:03 +01:00
Fang
e005cefe77
xmas: remove, obsoleted by alef
2019-12-27 02:19:36 +01:00
Przemyslaw Dabrowski
f8c305b65b
chat: add bottom padding to sidebar items
...
Pretty simple really, fixes issue #2131 .
Decided to use padding instead of margin because the underflow is nice,
but not at the detriment of being able to see the last chat preview
2019-12-23 22:24:24 -05:00
Fang
b8a336c607
webchat: render "me" messages in italics
2019-12-23 23:11:04 +01:00
Fang
ae8a57ca25
gall: (list path) in %fact and %kick
...
Instead of providing a (unit path), allows for (list path), which better
supports the "update to path and subpath cases".
For example, if /things wants updates about everything, and
/things/specific wants updates about the specific thing, they'll both
need to receive a %fact when the specific thing changes.
Previously, these would have been two separate moves. Now, gall handles
the multi-targeting for you.
2019-12-23 13:37:32 +01:00
Benjamin Summers
06934959ca
Make sure we close HTTP sockets on close (or reconfigure).
2019-12-21 18:24:54 -08:00
Fang
ea7c1db61c
various: use =/ in place of =+ ^-
...
Also faceless =; where appropriate.
2019-12-21 14:29:14 -03:30
Fang
21ac0e513b
hoon: parse =; without face
...
Allows for =;([a=@ b=@] ...) and similar constructions.
Also affects =/ and =^.
2019-12-21 14:20:11 -03:30
Benjamin Summers
2e8defccc1
Hack around terminfo database problem.
2019-12-21 07:55:24 -08:00
Fang
4798b9df1f
chat-cli: reconnect to chat-store on-kick
...
Also reconnects on-load, if no chat-store subscription appears to be
open. This should resolve any current disconnects.
2019-12-21 13:02:33 +01:00
Fang
c814114d93
chat-cli: add trace printf for tuba crashes
2019-12-21 12:59:45 +01:00
Fang
5cd8d98dd6
chat-cli: don't pass mark into +poke-noun
2019-12-21 12:58:22 +01:00
Ted Blackman
895f1c069d
ames: update comment docs
2019-12-21 01:56:51 -05:00
Benjamin Summers
5d66c39d02
Fixed bug in HTTP Server (only first block from stream was handled).
2019-12-20 13:47:20 -08:00
Benjamin Summers
5dd3cdde91
Logging for event sourced responses.
2019-12-20 12:59:01 -08:00
Benjamin Summers
ba83024c9e
Cleanup port binding logic.
2019-12-20 12:58:16 -08:00
Jared Tobin
103e375417
Merge branch 'ford-safe' ( #2117 )
...
* origin/ford-safe:
ford: clear build results on +load
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-20 13:22:23 -03:30
Jared Tobin
e1df5545e5
Merge branch 'matilde/chat-name-validation' ( #2116 )
...
* origin/matilde/chat-name-validation:
chat: validate chat names
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-20 10:44:30 -03:30
Benjamin Summers
f7e0e22ce7
Allow remote HTTP connections.
2019-12-19 14:20:04 -08:00
Benjamin Summers
921718c6f4
Try to open normal ports 80/8080/443/etc before just opening some fucking port.
2019-12-19 13:20:31 -08:00
Benjamin Summers
03131c1400
Fix HTTP server effect parse errors.
2019-12-19 11:30:09 -08:00
Benjamin Summers
44d477dff8
Hacked terminal-progress-bar
to use RIO.logSticky for better interaction with log output.
2019-12-19 10:21:23 -08:00
Benjamin Summers
ef6d0cc189
Vendored terminal-progress-bar
.
2019-12-19 09:40:21 -08:00
Jared Tobin
ee0de1a657
Merge branch 'm/clay-u' ( #2119 )
...
* origin/m/clay-u:
clay: implement %u care
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-19 14:09:52 -03:30
Benjamin Summers
5b931657c8
Merge branch 'master' of github.com:urbit/urbit into king-haskell
2019-12-19 08:14:49 -08:00
benjamin-tlon
fcae7e6587
Build Linux static executables. ( #2120 )
2019-12-19 08:11:59 -08:00
Jared Tobin
eee651042c
Merge branch 'm/eth-sending' ( #2094 )
...
* origin/m/eth-sending:
eth-sender: do proper nonce reading
zuse: implement eth rlp decoding
zuse: correctly encode leading zeroes in rlp data
zuse: lightly restructure encode:rlp:ethereum
static gall: update send-txs
ethio: implement +request-batch-rpc-loose
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-19 11:20:06 -03:30
Benjamin Summers
849410e1fe
Update tests.
2019-12-19 06:13:20 -08:00
Benjamin Summers
ce193616b4
Hack: king new
does not run a ship: some weird behavior there.
2019-12-19 06:06:30 -08:00
Benjamin Summers
e0bf6943c9
Make sure that terminal connections are closed properly on disconnects.
2019-12-19 05:16:52 -08:00
Benjamin Summers
8aa15e3b5c
Use ping thread to keep websocket connection alive.
2019-12-19 04:43:40 -08:00
Benjamin Summers
3cc952824e
king bug validate-event
uses progress bar.
2019-12-19 04:02:06 -08:00
Benjamin Summers
18ad1d137c
Enable NounServ logging, terminal logs to ~/.urbit/king.log
2019-12-19 03:32:56 -08:00
Benjamin Summers
152fb5c5f4
AGPL -> MIT
2019-12-19 03:08:19 -08:00
Benjamin Summers
72f21fad05
Fix stack ghci proto
.
2019-12-19 03:02:19 -08:00
Benjamin Summers
92635d8788
Show instance for Galaxy
uses @p
formatting.
2019-12-19 02:18:12 -08:00
Benjamin Summers
e78743cf1c
Merge branch 'king-haskell' of github.com:urbit/urbit into king-haskell
2019-12-19 01:43:06 -08:00
Benjamin Summers
8c6a1ed651
Fix flipped terminal height/width.
2019-12-19 01:43:01 -08:00
Benjamin Summers
f77840c81b
re-enable king<->serf logs
2019-12-19 01:42:49 -08:00
Fang
3808f02287
clay: implement %u care
...
Previously, it would always produce ~, regardless of the path asked
about.
Now, it produces a loobean, based on whether or not a file exists at the
specified path.
2019-12-18 21:02:38 +01:00
Jared Tobin
9b0582323c
Merge branch 'philip/eth-watcher' ( #2113 )
...
* philip/eth-watcher:
ph: fix tests by spamming blocks regularly
gaze: reflect changes to eth-watcher
ames: better printfs
jael: only advance lifes
jael: stop ship-to-ship
jael: add "eager" mode to avoid hitting nodes as much
jael: properly store ship sources
gen: add +azimuth-sources
jael: re-enable ship-to-ship communication
eth-watcher: actually stop pending thread when restarting
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-18 12:13:27 -03:30
Philip Monk
1a7658bd91
ph: fix tests by spamming blocks regularly
2019-12-18 11:53:36 -03:30
Philip Monk
de2d0f3014
gaze: reflect changes to eth-watcher
2019-12-18 11:38:56 -03:30
Philip Monk
0e876b3cd4
ames: better printfs
2019-12-18 11:31:17 -03:30
Philip Monk
3d30b3b73c
jael: only advance lifes
...
This matches the semantics of rifts and makes it more forgiving of
misordered updates.
2019-12-18 11:31:14 -03:30
Philip Monk
16d98e5eda
jael: stop ship-to-ship
2019-12-18 11:19:41 -03:30
Philip Monk
18c3e7253b
jael: add "eager" mode to avoid hitting nodes as much
2019-12-18 10:58:00 -03:30
Philip Monk
15bd35301e
jael: properly store ship sources
2019-12-18 10:42:57 -03:30
Philip Monk
7706ed6a0c
gen: add +azimuth-sources
2019-12-18 10:41:39 -03:30
Matilde Park
e2cfcafc92
chat: validate chat names
...
Add a regex check for non-lowercase, non-slash, non-hyphen characters,
or numerals, and a quick check for starts-with-slashes, double-slashes,
to a boolean before creating a chat at that path.
2019-12-18 00:53:18 -05:00
Ted Blackman
9fb37543ec
ford: clear build results on +load
2019-12-18 00:25:27 -05:00
Philip Monk
7ca3d9624e
ames: handle misordered crashing boons
...
Two bugs fixed here: first, if the %done reentrancy triggered another
%boon, that wasn't getting translated to a %lost, even though it could
have been the reason the event crashed in the first place.
Second, the %done reentrancy needs to happen after we emit our move, so
that we don't invert the order of the %boon's we produce.
2019-12-17 20:58:30 -08:00
Philip Monk
e5ac690fd3
jael: re-enable ship-to-ship communication
...
Also fix bug in eth-watcher that didn't cancel outstanding threads when
config changes.
And set default rift for ourselves to 0.
2019-12-17 16:14:07 -08:00
Philip Monk
e88f91f3b2
eth-watcher: actually stop pending thread when restarting
2019-12-17 16:14:02 -08:00
Philip Monk
a64e516fc5
Merge pull request #2098 from urbit/philip/eyre-quiet
...
eyre: turn sigpam into flog
2019-12-17 15:54:16 -08:00
Elliot Glaysher
105de96e46
Update version numbers to use the v0.10.1 pill.
2019-12-17 11:05:18 -08:00
Benjamin Summers
a920e71aca
External terminals working well now (Lots more janky cherry picking from king-daemon branch)
2019-12-17 10:06:20 -08:00
Benjamin Summers
c579335288
Hacky code to get king con
to connect to King API server.
2019-12-17 08:55:10 -08:00
Benjamin Summers
caa3d7f33c
Pulled in and integrated a commit from my king-daemon branch.
2019-12-17 06:31:50 -08:00
Benjamin Summers
154fc5f849
Never run a local terminal.
2019-12-17 03:29:58 -08:00
Benjamin Summers
dbe174d522
Updated tests to new Ames events.
2019-12-17 02:14:34 -08:00
pilfer-pandex
c5b0834bca
Merge branch 'king-haskell' of github.com:urbit/urbit into king-haskell
2019-12-16 15:03:50 -08:00
pilfer-pandex
2103b9f941
Merge branch 'pp/proto' of github.com:urbit/urbit into king-haskell
2019-12-16 15:01:50 -08:00
pilfer-pandex
601508adfc
some convenience, partial work on let
2019-12-16 14:54:38 -08:00
Benjamin Summers
36692278e1
Merge branch 'master' of github.com:urbit/urbit into merge-king
2019-12-16 14:49:20 -08:00
Benjamin Summers
7e124cd3dd
Merge branch 'king-haskell' of github.com:urbit/urbit into merge-king
2019-12-16 14:43:44 -08:00
Joe Bryan
1cf8e6e640
vere: plug leak in worker args
2019-12-16 11:59:04 -08:00
Joe Bryan
0162379f62
worker: plug leak in event tracing
2019-12-16 11:59:04 -08:00
Joe Bryan
e9f3aa19ef
vere: free curl response buffers after use
2019-12-16 11:59:04 -08:00
Joe Bryan
e9b1b22a6e
vere: plugs a leak on the "boothack" command socket connection
...
but more work is needed to fully close and cleanup
2019-12-16 11:59:04 -08:00
Joe Bryan
dc5e5f38a7
test: free malloc'd structures in tests
2019-12-16 11:59:04 -08:00
Joe Bryan
73ad2c543f
vere: consistently use c3 malloc/free wrappers
2019-12-16 11:59:03 -08:00
Benjamin Summers
0fa9086b4d
Fix a nasty bug in atom<->bytestring conversion.
2019-12-16 02:22:18 -08:00
Joe Bryan
4691fa2a8d
vere: plugs leak of http response headers
2019-12-14 23:26:24 -08:00
Joe Bryan
01470355d1
vere: fix use-after-free in closing/canceling http request
2019-12-14 18:25:43 -08:00
Joe Bryan
d5949f2358
vere: fix use-after-free when sending http response
2019-12-14 18:25:39 -08:00
Fang
bdc7fb81e0
eth-sender: do proper nonce reading
2019-12-14 21:50:07 +01:00
Fang
1647d760d1
zuse: implement eth rlp decoding
...
Also updates existing tests to check both en- and decoding.
2019-12-14 21:39:54 +01:00
Fang
7755bc9718
zuse: correctly encode leading zeroes in rlp data
2019-12-14 21:25:20 +01:00
Fang
5c56cce6ea
zuse: lightly restructure encode:rlp:ethereum
2019-12-14 21:24:56 +01:00
Philip Monk
769a1c96af
eyre: turn sigpam into flog
...
This error is mostly harmless, but it does indicate we aren't cleaning
up our subscriptions properly. This lets you silence with |knob.
fixes #2088
2019-12-14 00:49:23 -08:00
Philip Monk
bfd2e533a1
goad: make startup resilient to errors
...
By not running the risky %goad card in on-init. Also includes some qol
fixes.
2019-12-13 18:50:26 -08:00
Philip Monk
b14606660a
goad: recompile apps after changes to /sys
...
OTAs commonly end up in an inconsistent state if apps depend on changes
to /sys. For example, the %sift changes break on OTA because %spider
needs to be reloaded so that it's aware of the new thread type. This
adds a %goad app, which reloads all apps after every change to /sys.
Getting this to start OTA is nontrivial, but this pattern should work
for apps in the future. The changes to clock shouldn't generally be
necessary; they are only necessary here because we can't rely on hood to
start goad, since hood fails to compile if it's run before zuse is
reloaded. Once goad is active, this will cease to be a problem.
2019-12-13 17:14:51 -08:00
Fang
fc1d852faf
static gall: update send-txs
...
Renamed to eth-sender. Can still sign eth-txs at multiple gas prices,
fan transactions to multiple nodes, wait for confirmation between
transaction batches (now of user-specified size).
The previous nonce reading implementation was broken beyond belief and
has been taken out. Can be reimplemented once RLP decoding is in the
stdlib.
2019-12-14 00:18:30 +01:00
Fang
b482249712
ethio: implement +request-batch-rpc-loose
...
Produces batch request results regardless of node-side error.
Reimplements +request-batch-rpc-strict using it.
2019-12-13 23:30:52 +01:00
Elliot Glaysher
44f6a90a4c
hoon: fix typo in +put:in
...
This fixes +put:in so that it works without the correct jet. There's a
mismatch where the hoon code is wrong and the jet is correct, so that
when we try to run this on alternate interpreters which may not have the
+in jets, things won't work.
2019-12-13 21:00:21 +08:00
Benjamin Summers
66fc04fde7
TODO HACK WIP DONTCOMMIT: Suppress serf logging.
2019-12-13 02:50:54 -08:00
Benjamin Summers
a1be331ac8
Make HTTP Server more lenient.
2019-12-13 02:10:53 -08:00
Benjamin Summers
c49e26d556
TODO HACK DONT COMMIT: Log to stderr
2019-12-13 02:02:10 -08:00
Benjamin Summers
acdd9b82f5
Remove timer hack from king<->serf protocol (should be fixed?)
2019-12-12 19:01:24 -08:00
Benjamin Summers
2a5f2a2d6e
Make http-server less picky about request IDs.
2019-12-12 19:01:03 -08:00
Benjamin Summers
b2526854e8
Fix king bug validate-events
2019-12-12 19:00:35 -08:00
pilfer-pandex
d10bdf4ce7
recursion, sums, and products work on a bunch of test cases!!!!
2019-12-12 12:14:19 -08:00
Jared Tobin
aff97bf150
Merge branch 'm/eth-apps' ( #2084 )
...
* origin/m/eth-apps:
claz: clean up head of app file
static gall: update claz
ethio: add +get-next-nonce
zuse: update %eth-get-transaction-count
zuse: include all relevant azimuth addresses
ethio: implement +batch-read-contract-strict
ethio: fail request-rpc more properly
static gall: update gaze
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 16:27:04 +08:00
Jared Tobin
9ba4505086
Merge branch 'ames-sift' ( #2081 )
...
* ames-sift:
ames: refactor +load
ames: +send-blob better ship printing
hood: |ames-sift generator to trace by ship
ames: add %sift to trace by ship
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 16:06:32 +08:00
Ted Blackman
35596ca7de
ames: refactor +load
2019-12-12 15:55:37 +08:00
Ted Blackman
d4574b5da4
ames: +send-blob better ship printing
2019-12-12 15:55:36 +08:00
Ted Blackman
c500e03b81
hood: |ames-sift generator to trace by ship
2019-12-12 15:55:36 +08:00
Ted Blackman
d77fb0f685
ames: add %sift to trace by ship
2019-12-12 15:55:32 +08:00
Jared Tobin
2cf8bb215d
Merge branch 'urbit-ID' ( #2077 )
...
* origin/urbit-ID:
updates to 'Urbit identity' language in comet boot message
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:52:07 +08:00
Jared Tobin
15c929077d
Merge branch 'newt-plug-leak' ( #2076 )
...
* origin/newt-plug-leak:
newt: free completed message buffer
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:51:43 +08:00
Jared Tobin
1a88edeb37
Merge branch 'vere-build-tests' ( #2075 )
...
* origin/vere-build-tests:
vere: updates the test build targets to be generic
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:51:19 +08:00
Jared Tobin
85d447f173
Merge branch 'philip/gall-noop' ( #2073 )
...
* origin/philip/gall-noop:
gall: no-op on duplicate watch-ack
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:50:19 +08:00
Jared Tobin
2aa86e3121
Merge branch 'philip/stuck-flow' ( #2071 )
...
* origin/philip/stuck-flow:
ames: recover from mismatched message nums
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:49:53 +08:00
Jared Tobin
3888eabaa8
Merge branch 'ames-set-port' ( #2057 )
...
* origin/ames-set-port:
ames: refactors udp init() and bind()
ames: honor -p for galaxies, with warning
ames: adds port printfs for all ships
ames: honor -p for non-galaxies
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:49:34 +08:00
Jared Tobin
e4a7dae888
Merge branch 'philip/login-instructions' ( #2039 )
...
* origin/philip/login-instructions:
eyre: add instructions to login page
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-12 15:46:36 +08:00
pilfer-pandex
a544831fba
actually typechecks now lol
2019-12-11 14:44:08 -08:00
pilfer-pandex
5389bc376a
allegedly correct implementation of type recursion that compiles!
2019-12-11 14:29:24 -08:00
Fang
8857213000
claz: clean up head of app file
2019-12-11 23:00:49 +01:00
Fang
864b19e075
link-server-hook: disable verb by default
2019-12-11 21:16:20 +01:00
Fang
2048f7ab9e
link: make network comms work
...
This resolves a number of issues that were keeping communications with
foreign ships from working.
- there was no link-update mark
- there was no +on-arvo handling in link-listen-hook
- link-listen-hook was subscribing to the non-existent "link-hook"
- link-proxy-hook permission check was looking at a wrong path
Also makes link-listen-hook aware that subscriptions might get rejected
because of permissions, so that it ignores failed subscriptions instead
of being loud about it.
2019-12-11 20:49:50 +01:00
Fang
3a859ef585
link: add minimal link-server-hook and link-webext
...
link-server-hook exposes (parts of) the link-store over eyre, on the
condition that the client is authenticated as the host ship.
link-webext as committed is a very minimal web extension. When its
toolbar button is clicked, it saves the current webpage to /private
in the link-store.
In the future, this should support choosing a target to save to,
highlighting already-saved pages, and many other features.
2019-12-11 20:49:50 +01:00
Fang
25d390d6b1
server: properly defined request-line type
2019-12-11 20:49:49 +01:00
Fang
a95449cc64
link: social bookmarking core implementation
...
Stores URLs and their titles for the local ship. Can listen to
"submissions" on foreign ships.
Has a primitive perspective on groups, treating them as
always-interesting. Auto-subscribes to all ships in all groups.
Foreign communications untested.
2019-12-11 20:49:49 +01:00
Fang
a272f7c868
group-store: create, add, remove generators
2019-12-11 20:49:48 +01:00
Fang
fab9097110
static gall: update claz
...
Largely one-to-one port feature-wise.
Support for document polls was added.
Command preparation and verification got split out into
/ted/claz/prep-command, and got a dedicated +prep-result type to
facilitate future support for more complex preparation steps.
2019-12-11 17:32:33 +01:00
Fang
965529525b
ethio: add +get-next-nonce
2019-12-11 17:32:33 +01:00
Fang
a16fbd20ae
zuse: update %eth-get-transaction-count
...
It apparently now requires a second argument indicating the block to get
the result at.
2019-12-11 17:32:33 +01:00
Fang
f5ea5a4401
zuse: include all relevant azimuth addresses
2019-12-11 17:11:47 +01:00
Fang
9a708fb8f8
ethio: implement +batch-read-contract-strict
...
And re-implement +read-contract to use that under the hood.
2019-12-11 17:11:47 +01:00
Fang
abe92e289a
ethio: fail request-rpc more properly
...
strand-fail instead of crashing.
2019-12-11 17:11:47 +01:00
Fang
67825a08d1
static gall: update gaze
...
Noteworthy changes:
- split block timestamp requests into smaller batches
- track invite events
- improved debug pokes
2019-12-11 17:11:46 +01:00
Benjamin Summers
c3e52b25e9
Merge branch 'king-haskell' of github.com:urbit/urbit into merge-king
2019-12-11 00:22:49 -08:00
Benjamin Summers
56f0f844c1
Disable one ames test in CI.
2019-12-10 23:14:51 -08:00
Benjamin Summers
3a99fe7834
Remove Isle for now.
2019-12-10 23:06:58 -08:00
Benjamin Summers
fa394649ef
Merge branch 'master' of github.com:urbit/urbit into merge-king
2019-12-10 22:57:52 -08:00
Benjamin Summers
2505daf5c4
Update king<->serf protocol. Thanks Joe!
2019-12-10 22:57:05 -08:00
Benjamin Summers
b5919df50d
Remove SDL dependency.
2019-12-10 22:38:35 -08:00
Benjamin Summers
624e054be4
Actually use lmdb-static package plus don't build all deps.
2019-12-10 22:06:43 -08:00
Benjamin Summers
a46ce7b1cc
Steal my lmdb-static
package from the king-nix
branch.
2019-12-10 21:51:39 -08:00
Philip Monk
3b41a8be15
gall: no-op on duplicate watch-ack
...
fixes #2070
2019-12-10 18:49:50 -08:00
Philip Monk
29f078bb14
ames: don't forward up the sponsorship chain
...
This is *actually* why the galaxies are under so much load. They're in
a forwarding loop with their stars, and this breaks the loop.
2019-12-10 16:20:12 -08:00
Robert
220fca335b
updates to 'Urbit identity' language in comet boot message
2019-12-10 13:32:57 -08:00
Joe Bryan
1f87417008
newt: free completed message buffer
2019-12-10 12:41:06 -08:00
Joe Bryan
50db1149eb
vere: updates the test build targets to be generic
2019-12-10 11:27:57 -08:00
Jared Tobin
853e33d88a
Merge branch 'newt-test' ( #2069 )
...
* origin/newt-test:
vere: adds tests for newt ipc framing, fixes infinite loop
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-10 19:40:39 +08:00
Jared Tobin
733d7fd7e5
Merge branch 'philip/leave' ( #2068 )
...
* philip/leave:
gall: remove message type from wire
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-10 19:34:30 +08:00
Philip Monk
68279d91e4
gall: remove message type from wire
...
%leave over the network didn't work because we included the message type
in the wire from gall, so the duct for the initial %watch and the %leave
were different. We need to know the message type so we can route the
acknowledgment as %poke-ack, %watch-ack, or no-op.
This moves this piece of information to a piece of state, where we queue
up the message types per [duct wire]. Ames guarantees that
acknowledgments will come in order.
This also includes an easy state adapter. The more interesting part of
the upgrade is that we likely have outstanding subscriptions with the
old wire format. The disadvantage of storing information in wires is
that it can't be upgraded in +load. So, here we listen for updates on
the old wire format, and when we get them we kill the old subscription,
so that it will be recreated with the new wire format.
As an aside, this is a good example of what we mean when we say
subscriptions may be killed at any time, so apps must handle this case.
Finally, this fixes the "attributing" ship to ~zod for agent requests.
This information was ignored for agent requests, but including it causes
spurious duct mismatches.
2019-12-10 19:32:26 +08:00
Jared Tobin
d21310ace8
Merge branch 'la-unread' ( #2064 )
...
* origin/la-unread:
chat-js: fix unread counts and indentation
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-10 17:05:43 +08:00
Jared Tobin
3f50a11e48
Merge branch 'philip/drum' ( #2063 )
...
* origin/philip/drum:
drum: revert tang ordering change
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-10 16:26:49 +08:00
Jared Tobin
69c2f5517c
Merge branch 'malloc-print' ( #2061 )
...
* origin/malloc-print:
vere: print arg to c3_malloc() et. al. on failure
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-10 16:19:11 +08:00
Philip Monk
e7c8a44e11
ames: recover from mismatched message nums
...
We've seen issues where the message-num of the head of live.state is
less than current.state. When this happens, we continually try to
resend message n-1, but we throw away any acknowledgment for n-1 because
current.state is already n. This halts progress on that flow.
We don't know what causes us to get in this bad state, so this adds an
assert to the packet pump that we're in a good state, run every time
the packet pump is run. When this crashes, we can turn on |ames-verb
and hopefully identify the cause.
This also adds logic to +on-wake in the packet pump to not try to resend
any messages that have already been acknowledged. This is just to
rescue ships that currently have these stuck flows.
(Incidentally, I'd love to have a rr-style debugger for stuff like this.
Just run a command that says "replay my event log watching for this
specific condition and then stop and let me poke around".)
2019-12-09 23:31:18 -08:00
Benjamin Summers
545362e766
repn
in Haskell.
2019-12-09 19:44:42 -08:00
Ted Blackman
5e7605ed25
king: update ames for alef
2019-12-09 21:45:19 -05:00
Joe Bryan
1f05927558
vere: adds tests for newt ipc framing, fixes infinite loop
2019-12-09 18:18:07 -08:00
Ted Blackman
3ebeb8243f
Merge remote-tracking branch 'origin/master' into king-haskell
2019-12-09 20:26:07 -05:00
Logan Allen
30264bbc93
chat-js: fix unread counts and indentation
2019-12-09 13:05:56 -08:00
Philip Monk
5ff9e04204
drum: revert tang ordering change
...
Turns out this wasn't a regression, it was intended behavior. I
continue to believe it's the wrong behavior, but that will require a
longer discussion.
2019-12-09 11:47:48 -08:00
Joe Bryan
0235b178f9
ames: refactors udp init() and bind()
2019-12-09 11:11:32 -08:00
Joe Bryan
6bd34bbd00
ames: honor -p for galaxies, with warning
2019-12-09 11:10:40 -08:00
pilfer-pandex
bc2db1a21d
fix whnf, add rec, infra but not impl in nest
2019-12-08 21:46:52 -08:00
pilfer-pandex
0a46bbb649
add cas, with mandatory included type sorry
2019-12-08 20:38:43 -08:00
Ted Blackman
10e7c0945a
vere: print arg to c3_malloc() et. al. on failure
2019-12-08 19:32:55 -05:00
Fang
6722f789a9
chat-hook: no-op on /backlog kick if not synced
...
This matches the behavior that's used for +kick on /mailbox, among other flows.
2019-12-08 20:08:23 +01:00
Joe Bryan
134e947481
ames: adds port printfs for all ships
2019-12-07 23:59:21 -08:00
Joe Bryan
5784373bb6
ames: honor -p for non-galaxies
2019-12-07 23:56:38 -08:00
Jared Tobin
fa4544406e
Merge branch 'chat-safe-tab' ( #2053 )
...
* origin/chat-safe-tab:
chat: give terminal bell on tab in an empty buffer
chat: don't crash on tab in an empty buffer
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 17:03:44 +08:00
Jared Tobin
74c3ad619a
Merge branch 'decommission' ( #2051 )
...
* origin/decommission:
ames: remove last remnants of |nuke
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 17:02:55 +08:00
Jared Tobin
31f20c30c6
Merge branch 'philip/ew-printfs' ( #2050 )
...
* origin/philip/ew-printfs:
eth-watcher: silence printfs
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 17:01:01 +08:00
Jared Tobin
dc45806e99
Merge branch 'mp/chat-design-tweak' ( #2049 )
...
* mp/chat-design-tweak:
chat: chat tab bar re-aligned and resized
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 16:55:29 +08:00
Jared Tobin
63bd7c62db
Merge branch 'mp/soto-catch-unidentified' ( #2018 )
...
* mp/soto-catch-unidentified:
soto: mutate cursor for tab complete inserts
soto: click sets cursor
soto: catch 'unidentified' key
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 16:51:52 +08:00
Jared Tobin
de7b7d80f0
Merge branch 'pkova/patch-1' ( #2017 )
...
* pkova/patch-1:
vere: filter out content-length header from eyre
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 16:51:00 +08:00
Jared Tobin
27b5ded1d2
Merge branch 'm/chat-eval' ( #2009 )
...
* m/chat-eval:
chat: include .^ paths in its eval failure case
chat: improve eval implementation
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-07 16:48:42 +08:00
Matilde Park
f5faf6eb11
chat: chat tab bar re-aligned and resized
...
The placement of the buttons and chat title on Landscape were slightly
off-line with each other. This commit lines them up
and changes font size to f8 to match the mockup closely.
2019-12-06 16:44:45 -05:00
Philip Monk
abde1d8aa9
ames: reduce load by increasing timer delays
2019-12-06 12:11:06 -08:00
Joe Bryan
c8958a2553
chat: give terminal bell on tab in an empty buffer
2019-12-06 12:03:32 -08:00
Joe Bryan
706d25ba79
chat: don't crash on tab in an empty buffer
2019-12-06 12:02:59 -08:00
Joe Bryan
a0d2d41d0c
ames: remove last remnants of |nuke
2019-12-06 11:46:55 -08:00
Philip Monk
2d9a043e6f
eth-watcher: silence printfs
2019-12-06 11:19:05 -08:00
Jared Tobin
ea8e331d93
vere: patch version bump [ci skip]
2019-12-06 21:25:01 +08:00
Jared Tobin
5cbfb844e8
Merge branch 'newt-clean' ( #2042 )
...
* newt-clean:
vere: refactors ipc message parsing and assembly
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 21:15:21 +08:00
Joe Bryan
acddc88d66
vere: refactors ipc message parsing and assembly
...
We've periodically seen malloc failures (ie, returning a null pointer)
in newt.c, our IPC implementation ("memory lost" assertion failures).
I've suspected that they were caused by attempts to allocate zero bytes.
We were not properly following libuv's read callback conventions for
EAGAIN/EWOULDBLOCK, which would've had that result.
The message parsing and assembly was in one large function that I found
it hard to follow, so I've refactored into smaller pieces, so it should
be more maintainable going forward.
2019-12-06 21:13:42 +08:00
Pyry Kovanen
864fa7ef47
vere: filter out content-length header from eyre
2019-12-06 13:21:25 +02:00
Jared Tobin
d5f1efc7bc
Merge branch 'permisson-group-hook-fix' ( #2044 )
...
* permisson-group-hook-fix:
permission-group-hook: fixed permission associate flow
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:24:07 +08:00
Jared Tobin
16b81727d2
Merge branch 'la-scrollback' ( #2037 )
...
* la-scrollback:
chat-store: fix scrollback issue due to malformattedd peek
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:22:20 +08:00
Jared Tobin
383a86032f
Merge branch 'philip/dns-quiet' ( #2036 )
...
* philip/dns-quiet:
dns: give quieter errors
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:21:21 +08:00
Jared Tobin
0bad1401f0
Merge branch 'philip/drum-order' ( #2035 )
...
* philip/drum-order:
drum: print tangs in order
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:20:53 +08:00
Jared Tobin
4251b13d0e
Merge branch 'matilde/chat-feedback' ( #2027 )
...
* matilde/chat-feedback:
chat: Fix chat join link - %ask-history error
chat: join channel on enter
chat: wrap long links, join button uses pointer
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:10:55 +08:00
Jared Tobin
3fc349d995
Merge branch 'philip/eth-watcher-silence' ( #2022 )
...
* philip/eth-watcher-silence:
eth-watcher: be quieter about parse errors
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-06 12:10:12 +08:00
Isaac Visintainer
5a7c0b1181
permission-group-hook: fixed permission associate flow
2019-12-05 15:45:30 -08:00
Philip Monk
956a3c7420
eyre: add instructions to login page
2019-12-05 12:31:42 -08:00
Logan Allen
14dc580c06
chat-store: fix scrollback issue due to malformattedd peek
2019-12-05 12:18:21 -08:00
Philip Monk
1eeca16f1a
dns: give quieter errors
...
!! crashes the thread, so dojo prints a stack trace. An explicit
failure lets you give a custom error message.
2019-12-05 11:59:59 -08:00
Philip Monk
ddbfb53b28
drum: print tangs in order
2019-12-05 11:58:55 -08:00
Jared Tobin
5eec015343
chat-store: fix errant 'this'
...
6c938e1
resolved a merge conflict, but retained a reference to 'this'
from the wrong parent.
2019-12-05 21:18:11 +08:00
Jared Tobin
6c938e188d
Merge branch 'm/chat-store-eval' ( #2010 )
...
* m/chat-store-eval:
chat-store: only evaluate our own %code
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 20:59:13 +08:00
Ted Blackman
bee0b5803a
ames: don't crash on missing queued larval event
2019-12-05 17:04:24 +08:00
Jared Tobin
13f6fefb95
Merge branch 'correct-r-limits' ( #2028 )
...
* correct-r-limits:
nix: removes unnecessary use of `cat` in ivory-header build
u3: correctly sets RLIMIT_NOFILE cross-platform
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 16:48:16 +08:00
Jared Tobin
2391090b56
Merge branch 'philip/boot-order' ( #2023 )
...
* philip/boot-order:
drum: boot to dojo and start acme
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 16:45:25 +08:00
Jared Tobin
834cd78a1b
Merge branch 'liam-fitzgerald/tab-complete-chat' ( #1995 )
...
* liam-fitzgerald/tab-complete-chat:
chat-cli: update tab-complete to static gall
chat-cli: autocomplete on empty command
chat-cli: use tall-form cencab
chat-cli: clarify tab completion suggestions
chat-cli: address style issues
chat-cli: add tab autocomplete
language-server: genericise searching gates
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 16:43:37 +08:00
Jared Tobin
f23bbd1cec
Merge branch 'pkova/master' ( #1991 )
...
* pkova/master:
zuse: implement json number to @rd parsing
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 16:38:57 +08:00
Jared Tobin
41b64feb16
Merge branch 'philip/p2p' ( #2025 )
...
* philip/p2p:
ames: don't overwrite lane if already direct
Signed-off-by: Jared Tobin <jared@tlon.io>
2019-12-05 16:08:01 +08:00