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
81 changes: 81 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/cortex-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/cortex-server/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions sdks/typescript/package-lock.json

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

4 changes: 2 additions & 2 deletions sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading