From c54160983b8915b9aff077f340388541c58fe07b Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 19 Mar 2026 20:28:57 +0000 Subject: [PATCH] feat: bump v0.3.0 + publish pipeline (spec 22) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version 0.2.0 → 0.3.0 across workspace, SDKs, and docs. Update description to "Self-organizing graph memory" everywhere. Add crates.io, PyPI, and npm publish jobs to release workflow. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yml | 81 +++++++++++++++++++++++++++++ CHANGELOG.md | 2 +- Cargo.lock | 10 ++-- Cargo.toml | 6 +-- crates/cortex-server/Cargo.toml | 2 +- crates/cortex-server/src/cli/mod.rs | 2 +- docs/reference/http-api.md | 2 +- sdks/python/pyproject.toml | 4 +- sdks/typescript/package-lock.json | 4 +- sdks/typescript/package.json | 4 +- 10 files changed, 99 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a92da33..cc9d57a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,3 +132,84 @@ jobs: ```bash cortex init && cortex serve ``` + + publish-crate: + name: Publish to crates.io + runs-on: ubuntu-latest + needs: github-release + steps: + - uses: actions/checkout@v4 + + - name: Install protobuf compiler + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Publish cortex-proto + run: cargo publish -p cortex-proto --allow-dirty + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Wait for crates.io index + run: sleep 30 + + - name: Publish cortex-core + run: cargo publish -p cortex-core --no-default-features --allow-dirty + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Wait for crates.io index + run: sleep 30 + + - name: Publish cortex-client + run: cargo publish -p cortex-client --allow-dirty + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Wait for crates.io index + run: sleep 30 + + - name: Publish cortex-memory + run: cargo publish -p cortex-memory --no-default-features --allow-dirty + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + publish-pypi: + name: Publish to PyPI + runs-on: ubuntu-latest + needs: github-release + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install build tools + run: pip install hatch twine + + - name: Build and publish + run: cd sdks/python && hatch build && twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + + publish-npm: + name: Publish to npm + runs-on: ubuntu-latest + needs: github-release + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' + + - name: Build and publish + run: cd sdks/typescript && npm ci && npm run build && npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab46eb..f8da9b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to Cortex are documented in this file. -## [0.3.0] - YYYY-MM-DD +## [0.3.0] - 2026-03-19 ### Added - **Temporal validity** -- Node fields: `valid_from`, `valid_until` for truth windows. diff --git a/Cargo.lock b/Cargo.lock index d70de0f..e2407f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -711,7 +711,7 @@ dependencies = [ [[package]] name = "cortex-client" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "cortex-proto", @@ -721,7 +721,7 @@ dependencies = [ [[package]] name = "cortex-core" -version = "0.2.0" +version = "0.3.0" dependencies = [ "aes-gcm", "anyhow", @@ -749,7 +749,7 @@ dependencies = [ [[package]] name = "cortex-memory" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "async-nats", @@ -793,7 +793,7 @@ dependencies = [ [[package]] name = "cortex-proto" -version = "0.2.0" +version = "0.3.0" dependencies = [ "prost", "prost-types", @@ -4741,7 +4741,7 @@ dependencies = [ [[package]] name = "warren-adapter" -version = "0.2.0" +version = "0.3.0" dependencies = [ "async-nats", "cortex-core", diff --git a/Cargo.toml b/Cargo.toml index 61cac4d..346d244 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,13 +9,13 @@ members = [ ] [workspace.package] -version = "0.2.0" +version = "0.3.0" edition = "2021" authors = ["Mike Darlington"] license = "MIT" -description = "Embedded graph memory for AI agents" +description = "Self-organizing graph memory for AI agents" repository = "https://github.com/MikeSquared-Agency/cortex" -keywords = ["ai", "graph", "memory", "agents", "knowledge-graph"] +keywords = ["ai", "graph", "memory", "agents", "knowledge-graph", "mcp", "self-organizing"] categories = ["database", "science"] [workspace.dependencies] diff --git a/crates/cortex-server/Cargo.toml b/crates/cortex-server/Cargo.toml index 75e923a..14c593f 100644 --- a/crates/cortex-server/Cargo.toml +++ b/crates/cortex-server/Cargo.toml @@ -4,7 +4,7 @@ version.workspace = true edition.workspace = true authors.workspace = true license.workspace = true -description = "Cortex — embedded graph memory for AI agents. Single binary, single file, zero dependencies." +description = "Self-organizing graph memory for AI agents. Single binary, zero dependencies." repository = "https://github.com/MikeSquared-Agency/cortex" homepage = "https://github.com/MikeSquared-Agency/cortex" documentation = "https://github.com/MikeSquared-Agency/cortex/tree/main/docs" diff --git a/crates/cortex-server/src/cli/mod.rs b/crates/cortex-server/src/cli/mod.rs index 4e019e2..ec7a1e3 100644 --- a/crates/cortex-server/src/cli/mod.rs +++ b/crates/cortex-server/src/cli/mod.rs @@ -23,7 +23,7 @@ use std::path::PathBuf; #[derive(Parser, Debug)] #[command(name = "cortex")] -#[command(version, about = "Embedded graph memory for AI agents")] +#[command(version, about = "Self-organizing graph memory for AI agents")] pub struct Cli { /// Path to cortex.toml #[arg( diff --git a/docs/reference/http-api.md b/docs/reference/http-api.md index 2860548..30f72ba 100644 --- a/docs/reference/http-api.md +++ b/docs/reference/http-api.md @@ -9,7 +9,7 @@ Returns server health status. ```json { "healthy": true, - "version": "0.2.0", + "version": "0.3.0", "uptime_seconds": 3600, "stats": { "node_count": 1234, diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml index 80b9fde..ea4cfc5 100644 --- a/sdks/python/pyproject.toml +++ b/sdks/python/pyproject.toml @@ -4,8 +4,8 @@ build-backend = "hatchling.build" [project] name = "cortex-memory" -version = "0.2.0" -description = "Graph memory for AI agents" +version = "0.3.0" +description = "Self-organizing graph memory for AI agents — Python SDK" license = { text = "MIT" } requires-python = ">=3.9" readme = "README.md" diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.json index 632092b..54f5be8 100644 --- a/sdks/typescript/package-lock.json +++ b/sdks/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cortex-memory/client", - "version": "0.2.0", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cortex-memory/client", - "version": "0.2.0", + "version": "0.3.0", "license": "MIT", "dependencies": { "@grpc/grpc-js": "^1.14.3", diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index 443660a..fc2275b 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -1,7 +1,7 @@ { "name": "@cortex-memory/client", - "version": "0.2.0", - "description": "Graph memory for AI agents", + "version": "0.3.0", + "description": "Self-organizing graph memory for AI agents — TypeScript SDK", "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT",