Skip to content

Commit e64c04c

Browse files
author
Terraphim AI
committed
feat: add haystack core trait and TUI test improvements
1 parent 075d0c8 commit e64c04c

5 files changed

Lines changed: 83 additions & 521 deletions

File tree

.secrets.baseline

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
{
9191
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
9292
},
93+
{
94+
"path": "detect_secrets.filters.common.is_baseline_file",
95+
"filename": ".secrets.baseline"
96+
},
9397
{
9498
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
9599
"min_level": 2
@@ -139,36 +143,6 @@
139143
"line_number": 7
140144
}
141145
],
142-
".secrets.baseline": [
143-
{
144-
"type": "Hex High Entropy String",
145-
"filename": ".secrets.baseline",
146-
"hashed_secret": "313b10e760c6601492c94b34cebebe22f074ec26",
147-
"is_verified": false,
148-
"line_number": 130
149-
},
150-
{
151-
"type": "Secret Keyword",
152-
"filename": ".secrets.baseline",
153-
"hashed_secret": "313b10e760c6601492c94b34cebebe22f074ec26",
154-
"is_verified": false,
155-
"line_number": 130
156-
},
157-
{
158-
"type": "Hex High Entropy String",
159-
"filename": ".secrets.baseline",
160-
"hashed_secret": "635114505e7620f951a96ea6d5a6d2a018bc7ab4",
161-
"is_verified": false,
162-
"line_number": 136
163-
},
164-
{
165-
"type": "Secret Keyword",
166-
"filename": ".secrets.baseline",
167-
"hashed_secret": "635114505e7620f951a96ea6d5a6d2a018bc7ab4",
168-
"is_verified": false,
169-
"line_number": 136
170-
}
171-
],
172146
"@memory.md": [
173147
{
174148
"type": "Base64 High Entropy String",
@@ -185,15 +159,6 @@
185159
"line_number": 2140
186160
}
187161
],
188-
"PRECOMMIT_INTEGRATION.md": [
189-
{
190-
"type": "Secret Keyword",
191-
"filename": "PRECOMMIT_INTEGRATION.md",
192-
"hashed_secret": "159920628cb789601a3ef7859918baa2e9ea7d15",
193-
"is_verified": false,
194-
"line_number": 53
195-
}
196-
],
197162
"README.md": [
198163
{
199164
"type": "Secret Keyword",
@@ -14426,5 +14391,5 @@
1442614391
}
1442714392
]
1442814393
},
14429-
"generated_at": "2025-09-16T10:27:56Z"
14394+
"generated_at": "2025-09-21T21:14:29Z"
1443014395
}

crates/haystack_core/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "haystack_core"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
terraphim_types = { path = "../terraphim_types" }

crates/haystack_core/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use terraphim_types::{Document, SearchQuery};
2+
3+
pub trait HaystackProvider {
4+
type Error: std::fmt::Display + std::fmt::Debug + Send + Sync + 'static;
5+
6+
#[allow(async_fn_in_trait)]
7+
async fn search(&self, query: &SearchQuery) -> Result<Vec<Document>, Self::Error>;
8+
}

0 commit comments

Comments
 (0)