Skip to content

Commit

Permalink
Merge pull request #261 from kinode-dao/develop-0.10.0
Browse files Browse the repository at this point in the history
0.10.0
  • Loading branch information
nick1udwig authored Dec 28, 2024
2 parents 6ed7906 + 2eed04c commit fb194db
Show file tree
Hide file tree
Showing 137 changed files with 3,471 additions and 1,040 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,26 @@ jobs:
- name: Unzip the release
run: unzip kit.zip

#- name: Get latest release from kinode-dao/kit
# id: get-latest-kit-release
# uses: actions/github-script@v6
# with:
# script: |
# const repo = {
# owner: 'kinode-dao',
# repo: 'kinode',
# };
# const release = await github.rest.repos.getLatestRelease(repo);
# const asset = release.data.assets.find(asset => asset.name.match(/kinode-x86_64-unknown-linux-gnu\.zip/));
# if (!asset) {
# throw new Error('Asset not found');
# }
# return asset.browser_download_url;
# result-encoding: string
- name: Get latest release from kinode-dao/kit
id: get-latest-kit-release
uses: actions/github-script@v6
with:
script: |
const repo = {
owner: 'kinode-dao',
repo: 'kinode',
};
const release = await github.rest.repos.getLatestRelease(repo);
const asset = release.data.assets.find(asset => asset.name.match(/kinode-x86_64-unknown-linux-gnu\.zip/));
if (!asset) {
throw new Error('Asset not found');
}
return asset.browser_download_url;
result-encoding: string
- name: Download the Kinode release
run: wget -q https://files.yael.solutions/240906/kinode-x86_64-unknown-linux-gnu-simulation-mode.zip -O kinode.zip
#run: wget -q ${DOWNLOAD_URL} -O kinode.zip
#env:
# DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
run: wget -q ${DOWNLOAD_URL} -O kinode.zip
env:
DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
- name: Unzip the Kinode release
run: unzip kinode.zip

Expand Down
2 changes: 1 addition & 1 deletion book.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[book]
authors = ["dr-frmr", "jtneev", "nick1udwig", "bitful-pannul", "willbach", "0x70b1a5", "habsul-rignyr", "commercium-sys", "tadad"]
authors = ["Sybil Technologies AG"]
language = "en"
multilingual = false
src = "src"
Expand Down
4 changes: 2 additions & 2 deletions code/capabilities/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"request_capabilities": [
"eth:distro:sys",
"homepage:homepage:sys",
"http_server:distro:sys",
"http-server:distro:sys",
"vfs:distro:sys"
],
"grant_capabilities": [
"eth:distro:sys",
"http_server:distro:sys",
"http-server:distro:sys",
"vfs:distro:sys"
],
"public": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ interface chat-with-file-transfer {
world chat-with-file-transfer-template-dot-os-v0 {
import chat-with-file-transfer;
import file-transfer-worker;
include process-v0;
include process-v1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ test = []

[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.8.3" }
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"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/chat-with-file-transfer/download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ edition = "2021"

[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.8.3" }
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"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion code/chat-with-file-transfer/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"code_hashes": {
"0.1.0": ""
},
"wit_version": 0,
"wit_version": 1,
"dependencies": [
"file-transfer:template.os"
]
Expand Down
2 changes: 1 addition & 1 deletion code/chat-with-file-transfer/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"on_exit": "Restart",
"request_networking": true,
"request_capabilities": [
"http_server:distro:sys",
"http-server:distro:sys",
"vfs:distro:sys"
],
"grant_capabilities": [],
Expand Down
4 changes: 2 additions & 2 deletions code/chat-with-file-transfer/send/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ edition = "2021"

[dependencies]
anyhow = "1.0"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.8.3" }
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"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ world chat-with-file-transfer-test-template-dot-os-v0 {
import chat-with-file-transfer;
import file-transfer-worker;
import tester;
include process-v0;
include process-v1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ edition = "2021"
[dependencies]
anyhow = "1.0"
bincode = "1.3"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.8.3" }
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" }
rmp-serde = "1.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"code_hashes": {
"0.1.0": ""
},
"wit_version": 0,
"wit_version": 1,
"dependencies": [
"chat-with-file-transfer:template.os",
"file-transfer:template.os",
Expand Down
2 changes: 1 addition & 1 deletion code/file-transfer/api/file-transfer:template.os-v0.wit
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ world file-transfer-worker-api-v0 {
world file-transfer-template-dot-os-v0 {
import file-transfer;
import file-transfer-worker;
include process-v0;
include process-v1;
}
4 changes: 2 additions & 2 deletions code/file-transfer/download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ publish = false

[dependencies]
anyhow = "1.0"
kinode_process_lib = "0.9.2"
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"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/file-transfer/file-transfer-worker-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ publish = false

[dependencies]
anyhow = "1.0"
kinode_process_lib = "0.9.2"
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"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/file-transfer/file-transfer-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ publish = false
[dependencies]
anyhow = "1.0"
bincode = "1.3.3"
kinode_process_lib = { version = "0.9.2", features = ["logging"] }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c", features = ["logging"] }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/file-transfer/file-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ publish = false

[dependencies]
anyhow = "1.0"
kinode_process_lib = { version = "0.9.2", features = ["logging"] }
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", rev = "0666d2c", features = ["logging"] }
process_macros = { git = "https://github.com/kinode-dao/process_macros", rev = "626e501" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/file-transfer/list-files/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ publish = false

[dependencies]
anyhow = "1.0"
kinode_process_lib = "0.9.2"
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"
wit-bindgen = "0.24.0"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion code/file-transfer/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"code_hashes": {
"0.1.0": ""
},
"wit_version": 0,
"wit_version": 1,
"dependencies": [
"file-transfer:template.os"
]
Expand Down
2 changes: 1 addition & 1 deletion code/file-transfer/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"on_exit": "Restart",
"request_networking": true,
"request_capabilities": [
"http_server:distro:sys",
"http-server:distro:sys",
"vfs:distro:sys"
],
"grant_capabilities": [],
Expand Down
6 changes: 3 additions & 3 deletions code/http-client/http-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2021"

[dependencies]
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.9.6" }
url = "2"
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"
url = "2"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
2 changes: 1 addition & 1 deletion code/http-client/http-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use kinode_process_lib::{call_init, http, println, Address};

wit_bindgen::generate!({
path: "target/wit",
world: "process-v0",
world: "process-v1",
});

const URL: &str = "https://raw.githubusercontent.com/kinode-dao/kinode-wit/master/kinode.wit";
Expand Down
2 changes: 1 addition & 1 deletion code/http-client/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"code_hashes": {
"0.1.0": ""
},
"wit_version": 0,
"wit_version": 1,
"dependencies": []
},
"external_url": "",
Expand Down
4 changes: 2 additions & 2 deletions code/http-client/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"on_exit": "None",
"request_networking": false,
"request_capabilities": [
"http_client:distro:sys"
"http-client:distro:sys"
],
"grant_capabilities": [
"http_client:distro:sys"
"http-client:distro:sys"
],
"public": false
}
Expand Down
4 changes: 2 additions & 2 deletions code/http-server/http-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ edition = "2021"

[dependencies]
anyhow = "1"
kinode_process_lib = { git = "https://github.com/kinode-dao/process_lib", tag = "v0.9.6" }
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"
wit-bindgen = "0.36.0"

[lib]
crate-type = ["cdylib"]
Expand Down
4 changes: 2 additions & 2 deletions code/http-server/http-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use kinode_process_lib::{await_message, call_init, get_blob, http, println, Addr

wit_bindgen::generate!({
path: "target/wit",
world: "process-v0",
world: "process-v1",
});

/// Handle a message from the HTTP server.
Expand Down Expand Up @@ -58,7 +58,7 @@ fn init(_our: Address) {
loop {
match await_message() {
Ok(message) => {
if message.source().process == "http_server:distro:sys" {
if message.source().process == "http-server:distro:sys" {
if let Err(e) = handle_http_message(&message) {
println!("{e}");
}
Expand Down
2 changes: 1 addition & 1 deletion code/http-server/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"code_hashes": {
"0.1.0": ""
},
"wit_version": 0,
"wit_version": 1,
"dependencies": []
},
"external_url": "",
Expand Down
4 changes: 2 additions & 2 deletions code/http-server/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"on_exit": "Restart",
"request_networking": false,
"request_capabilities": [
"http_server:distro:sys"
"http-server:distro:sys"
],
"grant_capabilities": [
"http_server:distro:sys"
"http-server:distro:sys"
],
"public": false
}
Expand Down
Loading

0 comments on commit fb194db

Please sign in to comment.