Skip to content

Commit 7a8e1b9

Browse files
committed
chore: rename agentic-contracts dep to agentic-sdk
The shared traits crate was renamed from agentic-contracts to agentic-sdk to free the name for the upcoming AgenticContracts sister.
1 parent 8930d9f commit 7a8e1b9

6 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
os: [ubuntu-latest, macos-latest]
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Clone agentic-contracts (sibling dependency)
23-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
22+
- name: Clone agentic-sdk (sibling dependency)
23+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
2424
- uses: dtolnay/rust-toolchain@stable
2525
with:
2626
components: clippy, rustfmt
@@ -43,8 +43,8 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v4
46-
- name: Clone agentic-contracts (sibling dependency)
47-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
46+
- name: Clone agentic-sdk (sibling dependency)
47+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
4848
- name: Install command guardrails
4949
run: bash scripts/check-install-commands.sh
5050
- name: Canonical sister guardrails

.github/workflows/primary-problem-regression.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4
30-
- name: Clone agentic-contracts (sibling dependency)
31-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
30+
- name: Clone agentic-sdk (sibling dependency)
31+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
3232
- uses: dtolnay/rust-toolchain@stable
3333
- uses: Swatinem/rust-cache@v2
3434
- name: Run primary-problem regression

.github/workflows/python-sdk-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@v4
30-
- name: Clone agentic-contracts (sibling dependency)
31-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
30+
- name: Clone agentic-sdk (sibling dependency)
31+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
3232

3333
- name: Install Rust toolchain
3434
uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333

3434
steps:
3535
- uses: actions/checkout@v4
36-
- name: Clone agentic-contracts (sibling dependency)
37-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
36+
- name: Clone agentic-sdk (sibling dependency)
37+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
3838
- uses: dtolnay/rust-toolchain@stable
3939
with:
4040
targets: ${{ matrix.target }}
@@ -138,8 +138,8 @@ jobs:
138138
runs-on: ubuntu-latest
139139
steps:
140140
- uses: actions/checkout@v4
141-
- name: Clone agentic-contracts (sibling dependency)
142-
run: git clone --depth 1 https://github.com/agentralabs/agentic-contracts.git ../agentic-contracts
141+
- name: Clone agentic-sdk (sibling dependency)
142+
run: git clone --depth 1 https://github.com/agentralabs/agentic-sdk.git ../agentic-sdk
143143
- uses: dtolnay/rust-toolchain@stable
144144
- name: Publish crates in canonical order
145145
shell: bash

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
exclude = ["npm/wasm"]
1010

1111
[workspace.dependencies]
12-
agentic-contracts = { version = "0.2.0", path = "../agentic-contracts" }
12+
agentic-sdk = { version = "0.2.0", path = "../agentic-sdk" }
1313

1414
[workspace.package]
1515
version = "0.3.0"
@@ -51,8 +51,8 @@ name = "agentic-codebase-mcp"
5151
path = "src/bin/agentic-codebase-mcp.rs"
5252

5353
[dependencies]
54-
# Contracts (shared sister traits)
55-
agentic-contracts = { workspace = true }
54+
# SDK (shared sister traits)
55+
agentic-sdk = { workspace = true }
5656

5757
# Parsing - tree-sitter ecosystem
5858
tree-sitter = "0.22"

src/contracts.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Contracts bridge — implements agentic-contracts v0.2.0 traits for Codebase.
1+
//! Contracts bridge — implements agentic-sdk v0.2.0 traits for Codebase.
22
//!
33
//! This module provides `CodebaseSister`, a contracts-compliant wrapper
44
//! around the core `CodeGraph` + grounding engine. It implements:
@@ -12,7 +12,7 @@
1212
//! The MCP server can use `CodebaseSister` instead of raw graph + engine
1313
//! to get compile-time contracts compliance.
1414
15-
use agentic_contracts::prelude::*;
15+
use agentic_sdk::prelude::*;
1616
use std::collections::HashMap;
1717
use std::path::{Path, PathBuf};
1818
use std::time::Instant;
@@ -375,7 +375,7 @@ impl WorkspaceManagement for CodebaseSister {
375375
// GROUNDING (bridges existing GroundingEngine to contracts trait)
376376
// ═══════════════════════════════════════════════════════════════════
377377

378-
impl agentic_contracts::prelude::Grounding for CodebaseSister {
378+
impl agentic_sdk::prelude::Grounding for CodebaseSister {
379379
fn ground(&self, claim: &str) -> SisterResult<GroundingResult> {
380380
let engine = self.grounding_engine().ok_or_else(|| {
381381
SisterError::new(ErrorCode::InvalidState, "No active graph for grounding")
@@ -786,7 +786,7 @@ mod tests {
786786

787787
// Ground a claim with known symbols
788788
let result =
789-
agentic_contracts::prelude::Grounding::ground(&sister, "process_payment").unwrap();
789+
agentic_sdk::prelude::Grounding::ground(&sister, "process_payment").unwrap();
790790
// Should find the function
791791
assert!(
792792
result.status == GroundingStatus::Verified || result.status == GroundingStatus::Partial,
@@ -796,7 +796,7 @@ mod tests {
796796

797797
// Ground a claim with unknown symbol
798798
let result =
799-
agentic_contracts::prelude::Grounding::ground(&sister, "totally_fake_function_xyz")
799+
agentic_sdk::prelude::Grounding::ground(&sister, "totally_fake_function_xyz")
800800
.unwrap();
801801
assert_eq!(result.status, GroundingStatus::Ungrounded);
802802
}
@@ -807,7 +807,7 @@ mod tests {
807807
add_test_units(&mut sister);
808808

809809
let evidence =
810-
agentic_contracts::prelude::Grounding::evidence(&sister, "process_payment", 10)
810+
agentic_sdk::prelude::Grounding::evidence(&sister, "process_payment", 10)
811811
.unwrap();
812812
assert!(
813813
!evidence.is_empty(),
@@ -822,7 +822,7 @@ mod tests {
822822
add_test_units(&mut sister);
823823

824824
let suggestions =
825-
agentic_contracts::prelude::Grounding::suggest(&sister, "process_pay", 5).unwrap();
825+
agentic_sdk::prelude::Grounding::suggest(&sister, "process_pay", 5).unwrap();
826826
// Should suggest "process_payment" as a similar name
827827
assert!(!suggestions.is_empty());
828828
}

0 commit comments

Comments
 (0)