Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:

- name: Get version
id: version
shell: bash
run: |
VERSION="${{ github.event.release.tag_name || github.event.inputs.version }}"
VERSION="${VERSION#v}"
Expand All @@ -67,7 +68,7 @@ jobs:
run: |
mkdir -p dist
cp crates/capsule-cli/target/${{ matrix.target }}/release/capsule dist/
cat > dist/package.json << 'EOF'
cat > dist/package.json << EOF
{
"name": "@capsule-run/cli-${{ matrix.platform }}",
"version": "${{ steps.version.outputs.version }}",
Expand All @@ -84,7 +85,7 @@ jobs:
run: |
mkdir -p dist
cp crates/capsule-cli/target/${{ matrix.target }}/release/capsule.exe dist/
cat > dist/package.json << 'EOF'
cat > dist/package.json << EOF
{
"name": "@capsule-run/cli-${{ matrix.platform }}",
"version": "${{ steps.version.outputs.version }}",
Expand Down Expand Up @@ -131,6 +132,15 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish capsule-core
working-directory: crates/capsule-core
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Wait for crates.io index update
run: sleep 60

- name: Publish capsule-run
working-directory: crates/capsule-cli
run: cargo publish
Expand Down
4 changes: 2 additions & 2 deletions crates/capsule-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/capsule-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "capsule-run"
version = "0.1.0"
version = "0.2.0"
edition = "2024"
description = "Secure WASM runtime to isolate and manage AI agent tasks"
license = "Apache-2.0"
Expand All @@ -15,6 +15,6 @@ path = "src/main.rs"

[dependencies]
clap = { version = "4.5.53", features = ["derive"] }
capsule-core = { path = "../capsule-core" }
capsule-core = { version= "0.2.0", path = "../capsule-core" }
tokio = { version = "1.48.0", features = ["rt", "rt-multi-thread", "macros"] }
serde_json = "1"
2 changes: 1 addition & 1 deletion crates/capsule-core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion crates/capsule-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[package]
name = "capsule-core"
version = "0.1.0"
version = "0.2.0"
edition = "2024"
description = "Core library for Capsule - WASM runtime for AI agent isolation"
license = "Apache-2.0"
repository = "https://github.com/mavdol/capsule"
keywords = ["webassembly", "sandbox", "isolation", "runtime", "wasm"]
categories = ["wasm"]

[lib]
crate-type = ["rlib"]
Expand Down