Skip to content

Commit b0fa0c3

Browse files
committed
rename to hindsight
1 parent a2ac37e commit b0fa0c3

430 files changed

Lines changed: 8087 additions & 7679 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
# =============================================================================
2-
# MEMORA ENVIRONMENT CONFIGURATION
2+
# HINDSIGHT ENVIRONMENT CONFIGURATION
33
# =============================================================================
44
# Copy this file to .env and update with your values
55
# Both services (API and Control Plane) read from this single file
66

77
# =============================================================================
8-
# API SERVICE (MEMORA_API_*)
8+
# API SERVICE (HINDSIGHT_API_*)
99
# =============================================================================
1010

1111
# Database
12-
MEMORA_API_DATABASE_URL=postgresql://memora:memora_dev@localhost:5432/memora
12+
HINDSIGHT_API_DATABASE_URL=postgresql://hindsight:hindsight_dev@localhost:5432/hindsight
1313

1414
# LLM Provider: "openai", "groq", or "ollama"
15-
MEMORA_API_LLM_PROVIDER=groq
15+
HINDSIGHT_API_LLM_PROVIDER=groq
1616

1717
# LLM Model (provider-specific)
18-
MEMORA_API_LLM_MODEL=openai/gpt-oss-20b
18+
HINDSIGHT_API_LLM_MODEL=openai/gpt-oss-20b
1919

2020
# API Key (not needed for ollama)
21-
MEMORA_API_LLM_API_KEY=your_api_key_here
21+
HINDSIGHT_API_LLM_API_KEY=your_api_key_here
2222

2323
# Optional: Custom base URL (for ollama or custom endpoints)
24-
# MEMORA_API_LLM_BASE_URL=http://localhost:11434/v1
24+
# HINDSIGHT_API_LLM_BASE_URL=http://localhost:11434/v1
2525

2626
# API Server Configuration (optional)
27-
# MEMORA_API_HOST=0.0.0.0
28-
# MEMORA_API_PORT=8080
27+
# HINDSIGHT_API_HOST=0.0.0.0
28+
# HINDSIGHT_API_PORT=8888
2929

30-
MEMORA_API_MCP_ENABLED=true
30+
HINDSIGHT_API_MCP_ENABLED=true
3131

3232
# =============================================================================
33-
# CONTROL PLANE SERVICE (MEMORA_CP_*)
33+
# CONTROL PLANE SERVICE (HINDSIGHT_CP_*)
3434
# =============================================================================
3535

3636
# Dataplane API URL (where the control plane connects to)
37-
MEMORA_CP_DATAPLANE_API_URL=http://localhost:8080
37+
HINDSIGHT_CP_DATAPLANE_API_URL=http://localhost:8888
3838

3939
# Control Plane Server Configuration (optional)
40-
# MEMORA_CP_PORT=3000
41-
# MEMORA_CP_HOSTNAME=0.0.0.0
40+
# HINDSIGHT_CP_PORT=3000
41+
# HINDSIGHT_CP_HOSTNAME=0.0.0.0

.github/workflows/deploy-docs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'hindsight-docs/**'
8+
- '.github/workflows/deploy-docs.yml'
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: hindsight-docs
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
cache: npm
32+
cache-dependency-path: hindsight-docs/package-lock.json
33+
- run: npm ci
34+
- run: npm run build
35+
- uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: hindsight-docs/build
38+
39+
deploy:
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- uses: actions/deploy-pages@v4
47+
id: deployment

.github/workflows/release.yml

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
with:
2323
python-version-file: ".python-version"
2424

25-
- name: Build memora package
26-
working-directory: ./memora
25+
- name: Build hindsight package
26+
working-directory: ./hindsight
2727
run: uv build
2828

2929
- name: Upload artifacts
3030
uses: actions/upload-artifact@v4
3131
with:
32-
name: python-memora-dist
33-
path: memora/dist/*
32+
name: python-hindsight-dist
33+
path: hindsight/dist/*
3434
retention-days: 30
3535

3636
build-rust-cli:
@@ -40,16 +40,16 @@ jobs:
4040
include:
4141
- os: ubuntu-latest
4242
target: x86_64-unknown-linux-gnu
43-
artifact_name: memora
44-
asset_name: memora-linux-amd64
43+
artifact_name: hindsight
44+
asset_name: hindsight-linux-amd64
4545
- os: macos-latest
4646
target: x86_64-apple-darwin
47-
artifact_name: memora
48-
asset_name: memora-darwin-amd64
47+
artifact_name: hindsight
48+
asset_name: hindsight-darwin-amd64
4949
- os: macos-latest
5050
target: aarch64-apple-darwin
51-
artifact_name: memora
52-
asset_name: memora-darwin-arm64
51+
artifact_name: hindsight
52+
asset_name: hindsight-darwin-arm64
5353

5454
steps:
5555
- uses: actions/checkout@v4
@@ -74,17 +74,17 @@ jobs:
7474
- name: Cache cargo build
7575
uses: actions/cache@v4
7676
with:
77-
path: memora-cli/target
77+
path: hindsight-cli/target
7878
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
7979

8080
- name: Build
81-
working-directory: memora-cli
81+
working-directory: hindsight-cli
8282
run: cargo build --release --target ${{ matrix.target }}
8383

8484
- name: Prepare artifact
8585
run: |
8686
mkdir -p artifacts
87-
cp memora-cli/target/${{ matrix.target }}/release/${{ matrix.artifact_name }} artifacts/${{ matrix.asset_name }}
87+
cp hindsight-cli/target/${{ matrix.target }}/release/${{ matrix.artifact_name }} artifacts/${{ matrix.asset_name }}
8888
chmod +x artifacts/${{ matrix.asset_name }}
8989
9090
- name: Upload artifacts
@@ -135,7 +135,7 @@ jobs:
135135
id: meta
136136
uses: docker/metadata-action@v5
137137
with:
138-
images: ghcr.io/${{ github.repository_owner }}/memora-${{ matrix.component }}
138+
images: ghcr.io/${{ github.repository_owner }}/hindsight-${{ matrix.component }}
139139
tags: |
140140
type=semver,pattern={{version}},value=${{ steps.get_version.outputs.VERSION }}
141141
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_version.outputs.VERSION }}
@@ -179,11 +179,11 @@ jobs:
179179

180180
- name: Lint Helm chart
181181
run: |
182-
helm lint helm/memora
182+
helm lint helm/hindsight
183183
184184
- name: Package Helm chart
185185
run: |
186-
helm package helm/memora --destination ./helm-packages
186+
helm package helm/hindsight --destination ./helm-packages
187187
188188
- name: Upload Helm chart artifact
189189
uses: actions/upload-artifact@v4
@@ -208,26 +208,26 @@ jobs:
208208
- name: Download Python package
209209
uses: actions/download-artifact@v4
210210
with:
211-
name: python-memora-dist
212-
path: ./artifacts/python-memora-dist
211+
name: python-hindsight-dist
212+
path: ./artifacts/python-hindsight-dist
213213

214214
- name: Download Rust CLI (Linux)
215215
uses: actions/download-artifact@v4
216216
with:
217-
name: rust-cli-memora-linux-amd64
218-
path: ./artifacts/rust-cli-memora-linux-amd64
217+
name: rust-cli-hindsight-linux-amd64
218+
path: ./artifacts/rust-cli-hindsight-linux-amd64
219219

220220
- name: Download Rust CLI (macOS Intel)
221221
uses: actions/download-artifact@v4
222222
with:
223-
name: rust-cli-memora-darwin-amd64
224-
path: ./artifacts/rust-cli-memora-darwin-amd64
223+
name: rust-cli-hindsight-darwin-amd64
224+
path: ./artifacts/rust-cli-hindsight-darwin-amd64
225225

226226
- name: Download Rust CLI (macOS ARM)
227227
uses: actions/download-artifact@v4
228228
with:
229-
name: rust-cli-memora-darwin-arm64
230-
path: ./artifacts/rust-cli-memora-darwin-arm64
229+
name: rust-cli-hindsight-darwin-arm64
230+
path: ./artifacts/rust-cli-hindsight-darwin-arm64
231231

232232
- name: Download Helm chart
233233
uses: actions/download-artifact@v4
@@ -239,80 +239,80 @@ jobs:
239239
run: |
240240
mkdir -p release-assets
241241
# Python package
242-
cp artifacts/python-memora-dist/* release-assets/
242+
cp artifacts/python-hindsight-dist/* release-assets/
243243
# Rust CLI binaries
244-
cp artifacts/rust-cli-memora-linux-amd64/memora-linux-amd64 release-assets/
245-
cp artifacts/rust-cli-memora-darwin-amd64/memora-darwin-amd64 release-assets/
246-
cp artifacts/rust-cli-memora-darwin-arm64/memora-darwin-arm64 release-assets/
244+
cp artifacts/rust-cli-hindsight-linux-amd64/hindsight-linux-amd64 release-assets/
245+
cp artifacts/rust-cli-hindsight-darwin-amd64/hindsight-darwin-amd64 release-assets/
246+
cp artifacts/rust-cli-hindsight-darwin-arm64/hindsight-darwin-arm64 release-assets/
247247
# Helm chart
248248
cp artifacts/helm-chart/*.tgz release-assets/
249249
250250
- name: Generate release notes
251251
id: release_notes
252252
run: |
253253
cat << EOF > release-notes.md
254-
# Memora v${{ steps.get_version.outputs.VERSION }}
254+
# Hindsight v${{ steps.get_version.outputs.VERSION }}
255255
256256
## 📦 Release Artifacts
257257
258258
### Python Package
259-
- \`memora-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl\`
260-
- \`memora-${{ steps.get_version.outputs.VERSION }}.tar.gz\`
259+
- \`hindsight-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl\`
260+
- \`hindsight-${{ steps.get_version.outputs.VERSION }}.tar.gz\`
261261
262262
### CLI Binaries
263-
- \`memora-linux-amd64\` - Linux x86_64
264-
- \`memora-darwin-amd64\` - macOS Intel
265-
- \`memora-darwin-arm64\` - macOS Apple Silicon
263+
- \`hindsight-linux-amd64\` - Linux x86_64
264+
- \`hindsight-darwin-amd64\` - macOS Intel
265+
- \`hindsight-darwin-arm64\` - macOS Apple Silicon
266266
267267
### Helm Chart
268-
- \`memora-${{ steps.get_version.outputs.VERSION }}.tgz\`
268+
- \`hindsight-${{ steps.get_version.outputs.VERSION }}.tgz\`
269269
270270
### Docker Images
271271
Docker images are published to GitHub Container Registry:
272-
- \`ghcr.io/${{ github.repository_owner }}/memora-api:${{ steps.get_version.outputs.VERSION }}\`
273-
- \`ghcr.io/${{ github.repository_owner }}/memora-control-plane:${{ steps.get_version.outputs.VERSION }}\`
272+
- \`ghcr.io/${{ github.repository_owner }}/hindsight-api:${{ steps.get_version.outputs.VERSION }}\`
273+
- \`ghcr.io/${{ github.repository_owner }}/hindsight-control-plane:${{ steps.get_version.outputs.VERSION }}\`
274274
275275
## 🚀 Installation
276276
277277
### Python Package
278278
\`\`\`bash
279-
pip install memora==${{ steps.get_version.outputs.VERSION }}
279+
pip install hindsight==${{ steps.get_version.outputs.VERSION }}
280280
\`\`\`
281281
282282
### CLI
283283
\`\`\`bash
284284
# macOS (Apple Silicon)
285-
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/memora-darwin-arm64 -o memora
286-
chmod +x memora
287-
sudo mv memora /usr/local/bin/
285+
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/hindsight-darwin-arm64 -o hindsight
286+
chmod +x hindsight
287+
sudo mv hindsight /usr/local/bin/
288288
289289
# macOS (Intel)
290-
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/memora-darwin-amd64 -o memora
291-
chmod +x memora
292-
sudo mv memora /usr/local/bin/
290+
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/hindsight-darwin-amd64 -o hindsight
291+
chmod +x hindsight
292+
sudo mv hindsight /usr/local/bin/
293293
294294
# Linux
295-
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/memora-linux-amd64 -o memora
296-
chmod +x memora
297-
sudo mv memora /usr/local/bin/
295+
curl -L https://github.com/${{ github.repository }}/releases/download/v${{ steps.get_version.outputs.VERSION }}/hindsight-linux-amd64 -o hindsight
296+
chmod +x hindsight
297+
sudo mv hindsight /usr/local/bin/
298298
\`\`\`
299299
300300
### Helm Chart
301301
\`\`\`bash
302-
helm install memora memora-${{ steps.get_version.outputs.VERSION }}.tgz
302+
helm install hindsight hindsight-${{ steps.get_version.outputs.VERSION }}.tgz
303303
\`\`\`
304304
305305
### Docker
306306
\`\`\`bash
307307
# Pull API image
308-
docker pull ghcr.io/${{ github.repository_owner }}/memora-api:${{ steps.get_version.outputs.VERSION }}
308+
docker pull ghcr.io/${{ github.repository_owner }}/hindsight-api:${{ steps.get_version.outputs.VERSION }}
309309
310310
# Pull Control Plane image
311-
docker pull ghcr.io/${{ github.repository_owner }}/memora-control-plane:${{ steps.get_version.outputs.VERSION }}
311+
docker pull ghcr.io/${{ github.repository_owner }}/hindsight-control-plane:${{ steps.get_version.outputs.VERSION }}
312312
313313
# Or use latest
314-
docker pull ghcr.io/${{ github.repository_owner }}/memora-api:latest
315-
docker pull ghcr.io/${{ github.repository_owner }}/memora-control-plane:latest
314+
docker pull ghcr.io/${{ github.repository_owner }}/hindsight-api:latest
315+
docker pull ghcr.io/${{ github.repository_owner }}/hindsight-control-plane:latest
316316
\`\`\`
317317
EOF
318318
cat release-notes.md
@@ -333,7 +333,7 @@ jobs:
333333
echo "# Release v${{ steps.get_version.outputs.VERSION }} Published Successfully" >> $GITHUB_STEP_SUMMARY
334334
echo "" >> $GITHUB_STEP_SUMMARY
335335
echo "## 📦 Components" >> $GITHUB_STEP_SUMMARY
336-
echo "- ✅ Python package (memora)" >> $GITHUB_STEP_SUMMARY
336+
echo "- ✅ Python package (hindsight)" >> $GITHUB_STEP_SUMMARY
337337
echo "- ✅ Rust CLI (Linux amd64, macOS amd64, macOS arm64)" >> $GITHUB_STEP_SUMMARY
338338
echo "- ✅ Docker images (API, Control Plane)" >> $GITHUB_STEP_SUMMARY
339339
echo "- ✅ Helm chart" >> $GITHUB_STEP_SUMMARY

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
POSTGRES_USER: postgres
1818
POSTGRES_PASSWORD: postgres
19-
POSTGRES_DB: memora_test
19+
POSTGRES_DB: hindsight_test
2020
options: >-
2121
--health-cmd pg_isready
2222
--health-interval 10s
@@ -26,10 +26,10 @@ jobs:
2626
- 5432:5432
2727

2828
env:
29-
MEMORA_API_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/memora_test
30-
MEMORA_API_LLM_PROVIDER: groq
31-
MEMORA_API_LLM_API_KEY: ${{ secrets.GROQ_API_KEY }}
32-
MEMORA_API_LLM_MODEL: openai/gpt-oss-20b
29+
HINDSIGHT_API_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/hindsight_test
30+
HINDSIGHT_API_LLM_PROVIDER: groq
31+
HINDSIGHT_API_LLM_API_KEY: ${{ secrets.GROQ_API_KEY }}
32+
HINDSIGHT_API_LLM_MODEL: openai/gpt-oss-20b
3333

3434
steps:
3535
- uses: actions/checkout@v4
@@ -48,9 +48,9 @@ jobs:
4848
run: uv sync --extra test
4949

5050
- name: Run migrations
51-
working-directory: ./memora
51+
working-directory: ./hindsight
5252
run: |
5353
uv run alembic upgrade head
5454
5555
- name: Run tests
56-
run: uv run pytest memora/tests -v
56+
run: uv run pytest hindsight/tests -v

CLAUDE.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)