Commit Graph

33202 Commits

Author SHA1 Message Date
yosoyubik
ae7393b082 Merge branch 'develop' into yu/trace-for-memo 2024-04-10 10:18:16 +02:00
fang
7c2187f14d gen: prevent re-creating existing moons in |moon
Apparently the operation triggered by this generator may cause the rift
for the specified moon to be inaccurate if |moon-breach was run
previously.

Here, detect if the moon has been created before, and recommend the
other generators if that is the case.
2024-04-10 10:18:12 +02:00
yosoyubik
abcb73fe02 gall: don't ack %leave for non-running agents 2024-04-10 10:18:12 +02:00
yosoyubik
dec3853d3f ames: on flub, check if pending-vane-ack queue is not empty 2024-04-10 10:18:12 +02:00
fang
03401b46aa spider: speak raw jam bytes, not uw-encoded
This brings it in line with the serialization found in /mar/noun.

The `@uw`-encoding was carried over from Eyre, who uses it for channels.
In that context, outgoing jam bytes must be encoded, because newline
characters (`0a` bytes) would break up the SSE data field. Because
they're essentially part of the same protocol, Eyre mirrors this for
incoming nouns. Even though PUT requests can carry arbitrary bytes just
fine, the symmetry and protocol-wide consistency seems important.

Here, we are dealing strictly with plain HTTP requests, and strictly
with requests that have indicated support for the
`application/x-urb-jam` mime type to boot. We should have no qualms
about raw jam bytes. They're more compact/efficient, too.
2024-04-10 10:18:12 +02:00
fang
ffe1cf21b4 spider: support speaking raw (uw-encoded) nouns
in the thread-calling http interface.

Specifying a content-type header of application/x-urb-jam will make the
request body be interpreted as a uw-encoded jammed noun, rather than
json.

Specifying an accept header of application/x-urb-jam will make the
thread result in the response body be rendered as a uw-encoded jammed
noun, rather than json.

For the latter, the output mark becomes unused, since we can just
"render" the resulting noun directly, without needing to explicitly
convert it. (This assumes that converting any mark to %noun will always
result in the same noun, which isn't guaranteed in theory, but is always
the case in practice.)

This prepares spider for use in a nouns-based version of js-http-api.
2024-04-10 10:18:12 +02:00
yosoyubik
3a3475e6a3 Revert "ames: log with trace when ignoring messages"
This reverts commit 198fa38f6e.
2024-04-10 10:09:14 +02:00
Pyry Kovanen
3c33d25516
Merge pull request #6943 from urbit/m/spider-http-nouns
spider: support speaking raw nouns
2024-04-05 15:16:26 +03:00
Pyry Kovanen
db534eabb7
Merge branch 'develop' into m/spider-http-nouns 2024-04-05 14:43:26 +03:00
Pyry Kovanen
efce1a7890
Merge pull request #6957 from urbit/m/prevent-moon-shenanigans
gen: prevent re-creating existing moons in |moon
2024-04-04 18:33:31 +03:00
fang
74fff24b0f
gen: prevent re-creating existing moons in |moon
Apparently the operation triggered by this generator may cause the rift
for the specified moon to be inaccurate if |moon-breach was run
previously.

Here, detect if the moon has been created before, and recommend the
other generators if that is the case.
2024-04-04 16:34:53 +02:00
Pyry Kovanen
3c926e5a00
Merge pull request #6953 from urbit/yu/fix-flub
gall: don't ack %leave for non-running agents
2024-04-03 18:52:49 +03:00
yosoyubik
551507cd36 gall: keep %leave in the queue 2024-03-27 06:27:23 +01:00
fang
9e87a2fbca
spider: speak raw jam bytes, not uw-encoded
This brings it in line with the serialization found in /mar/noun.

The `@uw`-encoding was carried over from Eyre, who uses it for channels.
In that context, outgoing jam bytes must be encoded, because newline
characters (`0a` bytes) would break up the SSE data field. Because
they're essentially part of the same protocol, Eyre mirrors this for
incoming nouns. Even though PUT requests can carry arbitrary bytes just
fine, the symmetry and protocol-wide consistency seems important.

Here, we are dealing strictly with plain HTTP requests, and strictly
with requests that have indicated support for the
`application/x-urb-jam` mime type to boot. We should have no qualms
about raw jam bytes. They're more compact/efficient, too.
2024-03-26 22:26:30 +01:00
yosoyubik
a90eb4c9fe gall: don't ack %leave for non-running agents 2024-03-26 14:27:20 +01:00
yosoyubik
216ce199b6 gall: check if a %leave got %nacked before resending 2024-03-26 10:38:20 +01:00
yosoyubik
198fa38f6e ames: log with trace when ignoring messages 2024-03-26 07:37:51 +01:00
yosoyubik
52648a96de ames: on flub, check if pending-vane-ack queue is not empty 2024-03-26 07:29:56 +01:00
Pyry Kovanen
6e9233c1ee
Merge pull request #6951 from urbit/master
Merge master to develop after 411k release
2024-03-25 16:39:03 +02:00
Pyry Kovanen
1242fd2de3
Merge pull request #6950 from urbit/next/kelvin/411
Actually release 411k
2024-03-25 16:25:17 +02:00
Pyry Kovanen
fd50739f92
Merge pull request #6949 from urbit/pkova/generator-gang
eyre: scry with root gang in http generators
2024-03-25 16:24:08 +02:00
Pyry Kovanen
d54afc1cf2
eyre: scry with root gang in http generators 2024-03-25 15:19:23 +02:00
Pyry Kovanen
73d4bc4952
Merge pull request #6946 from urbit/tinnus-fix-vats-order
vats: fix desk order
2024-03-25 14:05:35 +02:00
Pyry Kovanen
bd776eb47c
Merge pull request #6948 from urbit/next/kelvin/411
Release 411k
2024-03-25 13:53:24 +02:00
Tinnus Napbus
5f45cda7d4 vats: fix desk order 2024-03-23 22:27:05 +13:00
Pyry Kovanen
bcb716f4cd
Merge pull request #6934 from urbit/jb/rein-no-bill
clay: respect %rein for desks without a bill
2024-03-22 17:38:16 +02:00
Pyry Kovanen
2ee5b25398
Merge pull request #6935 from urbit/mf/cpr
gen: |cp add recursive copy
2024-03-22 17:36:37 +02:00
Pyry Kovanen
7b8ef9a32a
Merge pull request #6939 from urbit/tinnus-fix-vats
vats: fix vats and make faster
2024-03-22 17:29:02 +02:00
Pyry Kovanen
227fba2b34
Merge pull request #6945 from urbit/next/kelvin/411
Merge next/kelvin/411 to develop
2024-03-22 14:48:45 +02:00
Pyry Kovanen
7f5dd7e10a
Merge branch 'develop' into m/spider-http-nouns 2024-03-22 14:12:52 +02:00
Pyry Kovanen
fa9e62cc72
Merge pull request #6944 from urbit/pkova/pry-chain
ames: fix chain mop order
2024-03-21 22:02:52 +02:00
pkova
05a71c690a ames: fix chain mop order 2024-03-21 17:49:41 +02:00
Pyry Kovanen
2c27b7a83d
Merge pull request #6929 from urbit/pkova/eauth-localhost
eyre: do not store localhost as eauth-url
2024-03-21 17:24:13 +02:00
Pyry Kovanen
bf60b47407 Merge branch 'develop' into pkova/eauth-localhost 2024-03-21 14:36:27 +02:00
Pyry Kovanen
5ecef371b7
eyre: do not overwrite public eauth domains with localhost
Co-authored-by: fang <git@fang.io>
2024-03-21 13:39:30 +02:00
fang
4b3058d2ef
spider: support speaking raw (uw-encoded) nouns
in the thread-calling http interface.

Specifying a content-type header of application/x-urb-jam will make the
request body be interpreted as a uw-encoded jammed noun, rather than
json.

Specifying an accept header of application/x-urb-jam will make the
thread result in the response body be rendered as a uw-encoded jammed
noun, rather than json.

For the latter, the output mark becomes unused, since we can just
"render" the resulting noun directly, without needing to explicitly
convert it. (This assumes that converting any mark to %noun will always
result in the same noun, which isn't guaranteed in theory, but is always
the case in practice.)

This prepares spider for use in a nouns-based version of js-http-api.
2024-03-20 14:52:30 +01:00
Pyry Kovanen
9f9644cbb1
Merge pull request #6942 from urbit/next/kelvin/411
Merge next/kelvin/411 to develop
2024-03-20 13:39:39 +02:00
Pyry Kovanen
699c8c10fe
Merge pull request #6937 from urbit/yu/saxo-on-molt
ames: emit %saxo on ++molt
2024-03-19 14:29:42 +02:00
Pyry Kovanen
1ff73cd4fb
Merge branch 'next/kelvin/411' into yu/saxo-on-molt 2024-03-19 14:04:48 +02:00
Pyry Kovanen
0cb978513c
Merge pull request #6936 from urbit/pkova/ping
ping: only ping galaxy
2024-03-19 14:04:28 +02:00
yosoyubik
24e3f434a7 ames: add %stun verbosity log 2024-03-19 09:42:20 +01:00
yosoyubik
93916099e8 Merge branch 'pkova/ping' into yu/saxo-on-molt 2024-03-19 08:35:46 +01:00
pkova
9050c5ad35 ping: do not scry in migration and other miscellaneous fine tuning 2024-03-18 19:00:18 +02:00
pkova
f0a5faf295 ping: track number of outstanding pokes and retry timer 2024-03-18 17:02:16 +02:00
pkova
10ae720756 ping: fix bug in +galaxy-for 2024-03-18 15:04:40 +02:00
Tinnus Napbus
a52492057c vats: fix weft print order 2024-03-17 16:47:11 +13:00
yosoyubik
93b51070bc ames: keep previous moves if no unix-duct 2024-03-16 19:54:52 +01:00
Tinnus Napbus
b758ed6683 vats: fix vats and make faster 2024-03-17 04:44:33 +13:00
yosoyubik
d3ad83da05 ames: emit %saxo on molt 2024-03-16 07:57:10 +01:00
pkova
07a952bb5a ping: only ping galaxy 2024-03-15 19:34:19 +02:00