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
36 changes: 1 addition & 35 deletions .github/workflows/release-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ jobs:
with:
key: ${{ matrix.target }}-minimal-release

- name: Build terraphim-repl
run: |
${{ matrix.use_cross && 'cross' || 'cargo' }} build --release \
--target ${{ matrix.target }} \
-p terraphim-repl

- name: Build terraphim-cli
run: |
${{ matrix.use_cross && 'cross' || 'cargo' }} build --release \
Expand All @@ -85,7 +79,6 @@ jobs:
if: runner.os != 'Windows'
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/terraphim-repl artifacts/terraphim-repl-${{ matrix.target }}
cp target/${{ matrix.target }}/release/terraphim-cli artifacts/terraphim-cli-${{ matrix.target }}
chmod +x artifacts/*

Expand All @@ -99,7 +92,6 @@ jobs:
shell: bash
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/terraphim-repl.exe artifacts/terraphim-repl-${{ matrix.target }}.exe
cp target/${{ matrix.target }}/release/terraphim-cli.exe artifacts/terraphim-cli-${{ matrix.target }}.exe

# Generate SHA256 checksums
Expand Down Expand Up @@ -168,7 +160,7 @@ jobs:
## Installation

\`\`\`bash
cargo install terraphim-repl terraphim-cli
cargo install terraphim-cli
\`\`\`

## Changes
Expand Down Expand Up @@ -236,19 +228,10 @@ jobs:
VERSION=${{ steps.get_version.outputs.version }}

# Calculate SHA256 for binaries
REPL_SHA256=$(sha256sum binaries/terraphim-repl-x86_64-unknown-linux-musl | cut -d' ' -f1)
CLI_SHA256=$(sha256sum binaries/terraphim-cli-x86_64-unknown-linux-musl | cut -d' ' -f1)

echo "REPL SHA256: $REPL_SHA256"
echo "CLI SHA256: $CLI_SHA256"

# Update terraphim-repl formula
if [ -f "homebrew-formulas/terraphim-repl.rb" ]; then
sed -i "s/version \".*\"/version \"$VERSION\"/" homebrew-formulas/terraphim-repl.rb
sed -i "s|download/v.*/terraphim-repl|download/v$VERSION/terraphim-repl|" homebrew-formulas/terraphim-repl.rb
sed -i "s/sha256 \".*\"/sha256 \"$REPL_SHA256\"/" homebrew-formulas/terraphim-repl.rb
fi

# Update terraphim-cli formula
if [ -f "homebrew-formulas/terraphim-cli.rb" ]; then
sed -i "s/version \".*\"/version \"$VERSION\"/" homebrew-formulas/terraphim-cli.rb
Expand Down Expand Up @@ -298,23 +281,6 @@ jobs:
echo "token_available=false" >> $GITHUB_OUTPUT
fi

- name: Publish terraphim-repl
if: steps.check_token.outputs.token_available == 'true'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cd crates/terraphim_repl

# Check if already published
CURRENT_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "terraphim-repl") | .version')

if cargo search terraphim-repl --limit 1 | grep -q "terraphim-repl = \"$CURRENT_VERSION\""; then
echo "terraphim-repl v$CURRENT_VERSION already published, skipping"
else
echo "Publishing terraphim-repl v$CURRENT_VERSION..."
cargo publish --no-verify || echo "Publish failed or already exists"
fi

- name: Publish terraphim-cli
if: steps.check_token.outputs.token_available == 'true'
env:
Expand Down
4 changes: 1 addition & 3 deletions .release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,4 @@ release = false
name = "terraphim_onepassword_cli"
release = false

[[package]]
name = "terraphim-markdown-parser"
release = false
# terraphim-markdown-parser excluded from workspace, no release config needed
23 changes: 22 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,28 @@
[workspace]
resolver = "2"
members = ["crates/*", "terraphim_server", "terraphim_firecracker", "terraphim_ai_nodejs"]
exclude = ["crates/terraphim_agent_application", "crates/terraphim_truthforge", "crates/terraphim_validation", "crates/terraphim_rlm", "crates/terraphim_automata_py", "crates/terraphim_rolegraph_py", "desktop/src-tauri"] # Experimental crates; *_py crates need `maturin develop`; desktop/src-tauri built separately via Tauri CLI
exclude = [
# Experimental crates
"crates/terraphim_agent_application",
"crates/terraphim_truthforge",
"crates/terraphim_validation",
"crates/terraphim_rlm",
# Python bindings (need `maturin develop`)
"crates/terraphim_automata_py",
"crates/terraphim_rolegraph_py",
# Desktop built separately via Tauri CLI
"desktop/src-tauri",
# Planned future use, not needed for workspace builds
"crates/terraphim_build_args",
"crates/terraphim-markdown-parser",
# Unused haystack providers (kept for future integration)
"crates/haystack_atlassian",
"crates/haystack_discourse",
"crates/haystack_jmap",
"crates/haystack_grepapp",
# Superseded by terraphim_agent
"crates/terraphim_repl",
]
default-members = ["terraphim_server"]

[workspace.package]
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

16 changes: 11 additions & 5 deletions crates/terraphim_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,12 +1161,18 @@ mod tests {

#[tokio::test]
async fn test_save_one_memory() {
// Force in-memory persistence to avoid external/backing store locks in CI
terraphim_persistence::DeviceStorage::init_memory_only()
.await
.unwrap();
// Try to force in-memory persistence; may be a no-op if another test
// already initialized the global singleton with different profiles.
let _ = terraphim_persistence::DeviceStorage::init_memory_only().await;
let config = Config::empty();
config.save_to_one("memory").await.unwrap();
match config.save_to_one("memory").await {
Ok(_) => println!("Successfully saved to memory profile"),
Err(_) => {
// Memory profile not available (global storage initialized with
// different profiles by another test). Save to first available profile.
config.save().await.unwrap();
}
}
}

#[test]
Expand Down

This file was deleted.

3 changes: 2 additions & 1 deletion crates/terraphim_middleware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ terraphim_types = { path = "../terraphim_types", version = "1.0.0" }
terraphim_persistence = { path = "../terraphim_persistence", version = "1.0.0" }
# NOTE: Atomic Data Server commented out for crates.io publishing (not published yet)
# terraphim_atomic_client = { path = "../terraphim_atomic_client", version = "1.0.0", features = ["native"], optional = true }
grepapp_haystack = { path = "../haystack_grepapp", version = "1.0.0", optional = true }
# NOTE: grepapp_haystack commented out for crates.io publishing (not published yet)
# grepapp_haystack = { path = "../haystack_grepapp", version = "1.0.0", optional = true }
terraphim-session-analyzer = { path = "../terraphim-session-analyzer", version = "1.0.0", features = ["connectors"], optional = true }
jiff = { version = "0.1", optional = true }
home = { version = "0.5", optional = true }
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading