@cortex-context/cli 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ # docker-compose.host-network.yml — Cortex stack (host network mode)
2
+ # Auto-selected by cortex-context when a Proxmox LXC environment is detected.
3
+ #
4
+ # Why host network?
5
+ # runc >= 1.1 tries to write net.ipv4.ip_unprivileged_port_start into every
6
+ # new Docker bridge network namespace. Unprivileged Proxmox LXC containers
7
+ # block this sysctl write, causing `docker compose up` to fail.
8
+ # host network mode bypasses bridge namespace creation entirely.
9
+ #
10
+ # Ports (bound to the host directly, no mapping needed):
11
+ # Cortex API: http://localhost:8082
12
+ # Neo4j UI: http://localhost:7474 (user: neo4j / password: cortex-local)
13
+ # Neo4j Bolt: bolt://localhost:7687
14
+
15
+ services:
16
+ neo4j:
17
+ image: neo4j:5.21-community
18
+ container_name: cortex-neo4j-local
19
+ network_mode: host
20
+ environment:
21
+ NEO4J_AUTH: neo4j/cortex-local
22
+ NEO4J_PLUGINS: '["apoc"]'
23
+ NEO4J_dbms_security_procedures_unrestricted: apoc.*
24
+ NEO4J_dbms_memory_heap_initial__size: 256m
25
+ NEO4J_dbms_memory_heap_max__size: 512m
26
+ volumes:
27
+ - cortex_neo4j_data:/data
28
+ healthcheck:
29
+ test: ["CMD", "wget", "-qO-", "http://localhost:7474"]
30
+ interval: 10s
31
+ timeout: 5s
32
+ retries: 10
33
+ restart: unless-stopped
34
+
35
+ cortex-api:
36
+ image: ${CORTEX_IMAGE:-ghcr.io/rodrigoroldan/cortex-context:latest}
37
+ container_name: cortex-api-local
38
+ network_mode: host
39
+ environment:
40
+ # With host network, neo4j is reachable on localhost
41
+ NEO4J_URI: bolt://localhost:7687
42
+ NEO4J_USER: neo4j
43
+ NEO4J_PASSWORD: cortex-local
44
+ CORTEX_API_TOKEN: ${CORTEX_API_TOKEN:-}
45
+ LOG_LEVEL: INFO
46
+ SPECS_DIR: /specs
47
+ REPOS_DIR: /repos
48
+ volumes:
49
+ - ${SPECS_DIR_HOST:-./specs-sample}:/specs:ro
50
+ - ${REPOS_DIR_HOST:-./repos-sample}:/repos:ro
51
+ depends_on:
52
+ neo4j:
53
+ condition: service_healthy
54
+ healthcheck:
55
+ test:
56
+ [
57
+ "CMD",
58
+ "python",
59
+ "-c",
60
+ "import urllib.request; urllib.request.urlopen('http://localhost:8082/health')",
61
+ ]
62
+ interval: 10s
63
+ timeout: 10s
64
+ retries: 10
65
+ start_period: 20s
66
+ restart: unless-stopped
67
+
68
+ volumes:
69
+ cortex_neo4j_data:
70
+ driver: local
@@ -40,8 +40,13 @@ services:
40
40
  NEO4J_PASSWORD: cortex-local
41
41
  CORTEX_API_TOKEN: ${CORTEX_API_TOKEN:-}
42
42
  LOG_LEVEL: INFO
43
+ SPECS_DIR: /specs
44
+ REPOS_DIR: /repos
43
45
  ports:
44
46
  - "8082:8082"
47
+ volumes:
48
+ - ${SPECS_DIR_HOST:-./specs-sample}:/specs:ro
49
+ - ${REPOS_DIR_HOST:-./repos-sample}:/repos:ro
45
50
  depends_on:
46
51
  neo4j:
47
52
  condition: service_healthy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortex-context/cli",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "CLI to initialize and manage Cortex Context (Knowledge Graph) in any VS Code workspace",
5
5
  "bin": {
6
6
  "cortex-context": "./dist/index.js"