update process_lib version for all, fix printout issues in standard_host_v1

This commit is contained in:
dr-frmr 2024-12-10 17:15:02 -05:00
parent fe0ae08eef
commit 9fa9fa2303
No known key found for this signature in database
43 changed files with 80 additions and 89 deletions

2
Cargo.lock generated
View File

@ -3944,7 +3944,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy 0.1.4",
"alloy-primitives 0.7.7",

View File

@ -1657,7 +1657,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -11,7 +11,7 @@ alloy-primitives = "0.7.6"
alloy-sol-types = "0.7.6"
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }

View File

@ -11,7 +11,7 @@ alloy-primitives = "0.7.6"
alloy-sol-types = "0.7.6"
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -1560,7 +1560,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
pleco = "0.5"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -1515,7 +1515,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -6,7 +6,7 @@ publish = false
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -1504,7 +1504,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -1516,7 +1516,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "2.5.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = "2.5.0"

View File

@ -1502,7 +1502,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -11,7 +11,7 @@ anyhow = "1.0"
alloy-primitives = "0.7.0"
alloy-sol-types = "0.7.0"
hex = "0.4.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.1.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -1492,7 +1492,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -10,7 +10,7 @@ simulation-mode = []
anyhow = "1.0"
base64 = "0.22.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -31,7 +31,7 @@ name = "alias"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"serde",
"serde_json",
"wit-bindgen",
@ -834,7 +834,7 @@ name = "cat"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"serde",
"serde_json",
"wit-bindgen",
@ -1079,7 +1079,7 @@ dependencies = [
name = "echo"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"wit-bindgen",
]
@ -1381,7 +1381,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
name = "help"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"wit-bindgen",
]
@ -1410,7 +1410,7 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
name = "hi"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"serde",
"serde_json",
"wit-bindgen",
@ -1639,7 +1639,7 @@ name = "kfetch"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"rmp-serde",
"serde",
"serde_json",
@ -1651,7 +1651,7 @@ name = "kill"
version = "0.1.0"
dependencies = [
"anyhow",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"serde",
"serde_json",
"wit-bindgen",
@ -1660,29 +1660,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",
"alloy-sol-macro",
"alloy-sol-types",
"anyhow",
"bincode",
"http",
"mime_guess",
"rand",
"rmp-serde",
"serde",
"serde_json",
"thiserror",
"url",
"wit-bindgen",
]
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=8a5b040#8a5b040dd699ae69d5bc1826fdd6e0bd5d84e766"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",
@ -1762,7 +1740,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=8a5b040)",
"kinode_process_lib",
"regex",
"serde",
"serde_json",
@ -1833,7 +1811,7 @@ dependencies = [
name = "net-diagnostics"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"rmp-serde",
"serde",
"wit-bindgen",
@ -2006,7 +1984,7 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
name = "peer"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"rmp-serde",
"serde",
"wit-bindgen",
@ -2016,7 +1994,7 @@ dependencies = [
name = "peers"
version = "0.1.0"
dependencies = [
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"rmp-serde",
"serde",
"wit-bindgen",
@ -2769,7 +2747,7 @@ version = "0.1.1"
dependencies = [
"anyhow",
"bincode",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"rand",
"regex",
"serde",
@ -2915,7 +2893,7 @@ version = "0.2.0"
dependencies = [
"anyhow",
"clap",
"kinode_process_lib 0.10.0 (git+https://github.com/kinode-dao/process_lib?rev=1fe8612)",
"kinode_process_lib",
"serde",
"serde_json",
"wit-bindgen",

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
wit-bindgen = "0.24.0"
[lib]

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
wit-bindgen = "0.24.0"
[lib]

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.1.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -8,7 +8,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
clap = "4.4"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
regex = "1.10.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.1.2"
serde = { version = "1.0", features = ["derive"] }
wit-bindgen = "0.24.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.1.2"
serde = { version = "1.0", features = ["derive"] }
wit-bindgen = "0.24.0"

View File

@ -7,7 +7,7 @@ edition = "2021"
simulation-mode = []
[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rmp-serde = "1.1.2"
serde = { version = "1.0", features = ["derive"] }
wit-bindgen = "0.24.0"

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
rand = "0.8"
regex = "1.10.3"
serde = { version = "1.0", features = ["derive"] }

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
clap = "4.4"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"

View File

@ -1492,7 +1492,7 @@ dependencies = [
[[package]]
name = "kinode_process_lib"
version = "0.10.0"
source = "git+https://github.com/kinode-dao/process_lib?rev=6ed0cda#6ed0cda955de018f49bd38251810c68415b20e54"
source = "git+https://github.com/kinode-dao/process_lib?rev=0666d2c#0666d2c1883583370122c118e1a9ddecba1dbbbe"
dependencies = [
"alloy",
"alloy-primitives 0.7.7",

View File

@ -9,7 +9,7 @@ simulation-mode = []
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "6ed0cda" }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c" }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@ -272,6 +272,7 @@ async fn make_component_v1(
Err(e) => {
t::Printout::new(
0,
t::KERNEL_PROCESS_ID.clone(),
format!("kernel: process {our_process_id} failed to instantiate: {e:?}"),
)
.send(&send_to_terminal)
@ -432,7 +433,11 @@ pub async fn make_process_loop(
// the process will run until it returns from init() or crashes
match bindings.call_init(&mut store, &our.to_string()).await {
Ok(()) => {
t::Printout::new(1, format!("process {our} returned without error"))
t::Printout::new(
1,
t::KERNEL_PROCESS_ID.clone(),
format!("process {our} returned without error"),
)
.send(&send_to_terminal)
.await;
}
@ -446,6 +451,7 @@ pub async fn make_process_loop(
};
t::Printout::new(
0,
t::KERNEL_PROCESS_ID.clone(),
format!("\x1b[38;5;196mprocess {our} ended with error:\x1b[0m\n{output}"),
)
.send(&send_to_terminal)

View File

@ -6,12 +6,17 @@ use lib::v1::wit::Host as StandardHost;
use ring::signature::{self, KeyPair};
async fn print_debug(proc: &process::ProcessState, content: &str) {
let _ = proc
.send_to_terminal
.send(t::Printout {
verbosity: 2,
content: format!("{}: {}", proc.metadata.our.process, content),
})
t::Printout::new(
2,
&proc.metadata.our.process,
format!(
"{}:{}: {}",
proc.metadata.our.process.package(),
proc.metadata.our.process.publisher(),
content
),
)
.send(&proc.send_to_terminal)
.await;
}
@ -342,6 +347,7 @@ impl process::ProcessState {
let Some(ref prompting_message) = self.prompting_message else {
t::Printout::new(
0,
KERNEL_PROCESS_ID.clone(),
format!("kernel: need non-None prompting_message to handle Response {response:?}"),
)
.send(&self.send_to_terminal)
@ -457,15 +463,16 @@ impl StandardHost for process::ProcessWasiV1 {
async fn print_to_terminal(&mut self, verbosity: u8, content: String) -> Result<()> {
self.process
.send_to_terminal
.send(t::Printout {
.send(t::Printout::new(
verbosity,
content: format!(
&self.process.metadata.our.process,
format!(
"{}:{}: {}",
self.process.metadata.our.process.package(),
self.process.metadata.our.process.publisher(),
content
),
})
))
.await
.map_err(|e| anyhow::anyhow!("fatal: couldn't send to terminal: {e:?}"))
}