Skip to content

Commit 5a39bff

Browse files
authored
Merge pull request #5 from Jeremy8776/fix/project-review-issues
Fix 10 project review issues: git data, ESLint, validation, security, CI, docs
2 parents 1fea068 + 72ad952 commit 5a39bff

16 files changed

Lines changed: 165 additions & 81 deletions

File tree

.env.example

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Context Engine — Environment Variables
2+
# Copy to .env and customize. (.env is git-ignored.)
3+
4+
# ── Server ──
5+
CE_PORT=3847 # HTTP server port (also respects PORT)
6+
CE_ROOT= # Project root (defaults to repo root)
7+
CE_API_KEY= # Bearer token auth (empty = no auth required)
8+
9+
# ── Embeddings (Ollama) ──
10+
OLLAMA_URL=http://127.0.0.1:11434
11+
CE_EMBED_MODEL=nomic-embed-text
12+
13+
# ── MCP HTTP Server ──
14+
MCP_HTTP_HOST=127.0.0.1
15+
MCP_HTTP_PORT=3850
16+
MCP_HTTP_TOKEN= # Static bearer token for MCP HTTP (empty = no auth)
17+
MCP_OAUTH_PASSWORD= # OAuth password (takes precedence over MCP_HTTP_TOKEN)
18+
MCP_PUBLIC_URL= # Public URL for OAuth redirect (auto-detected if empty)
19+
20+
# ── MCP Tools (stdio bridge) ──
21+
CE_HOST=127.0.0.1 # Host when CE runs remotely
22+
23+
# ── Electron Desktop ──
24+
CE_HOT_RELOAD= # Set to "1" to watch UI files for changes
25+
CE_NEW_USER_PROFILE= # Set to "1" for first-run / new-user mode
26+
27+
# ── Benchmark ──
28+
CE_URL=http://127.0.0.1:3847 # Base URL for bench/tokenomics.py

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ jobs:
6363
npm run smoke
6464
npm run test:handoffs
6565
npm run test:projects
66+
npm run test:compiler
67+
npm run test:skills
68+
npm run test:rule-files
69+
npm run test:config
70+
npm run test:http
71+
npm run test:api-endpoints

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
- name: Install dependencies
7676
run: npm ci
7777

78+
- name: Run checks and tests
79+
run: |
80+
npm run check
81+
npm run smoke
82+
7883
- name: Build
7984
env:
8085
# GH_TOKEN drives both release creation and asset upload via

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ data/onboarding.json
1010
data/dedup.json
1111
data/workspaces.json
1212
data/modes.json
13+
data/memory.json
14+
data/projects.json
15+
data/rules.json
16+
data/skill-states.json
1317
*.log
1418
.DS_Store
1519
Thumbs.db

bench/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# Tokenomics benchmark
1+
# Bench
2+
3+
Benchmarking and measurement tools for Context Engine.
4+
5+
| File | Purpose |
6+
| --------------- | -------------------------------------- |
7+
| `tokenomics.py` | Token-efficiency benchmark (see below) |
8+
| `tasks.json` | Task corpus used by the benchmark |
9+
10+
## Tokenomics benchmark
211

312
One Python script. Run it; it prints a table. That's the whole tool.
413

data/.gitkeep

Whitespace-only changes.

data/memory.json

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

data/projects.json

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

data/rules.json

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

data/skill-states.json

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

0 commit comments

Comments
 (0)