context-foundry 2.5.3 → 2.5.4

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,30 @@
1
+ services:
2
+ dashboard:
3
+ build:
4
+ context: .
5
+ dockerfile: Dockerfile
6
+ container_name: cf-dashboard
7
+ restart: unless-stopped
8
+ ports:
9
+ - "8421:8421"
10
+ # On Mac, host.docker.internal works automatically
11
+ # On Linux, uncomment the extra_hosts line below:
12
+ # extra_hosts:
13
+ # - "host.docker.internal:host-gateway"
14
+ healthcheck:
15
+ test: ["CMD", "wget", "-q", "--spider", "http://localhost:8421/"]
16
+ interval: 30s
17
+ timeout: 5s
18
+ retries: 3
19
+
20
+ # Usage:
21
+ # docker compose up -d # Start dashboard
22
+ # docker compose down # Stop dashboard
23
+ # docker compose logs -f # View logs
24
+ # docker compose restart # Restart dashboard
25
+ #
26
+ # The daemon must be running on the host:
27
+ # cfd start # Start daemon on host
28
+ # cfd status # Check daemon status
29
+ #
30
+ # Access dashboard at: http://localhost:8421/
package/nginx.conf ADDED
@@ -0,0 +1,74 @@
1
+ server {
2
+ listen 8421;
3
+ server_name localhost;
4
+
5
+ # Serve static dashboard files
6
+ location / {
7
+ root /usr/share/nginx/html;
8
+ index index.html;
9
+ try_files $uri $uri/ /index.html;
10
+ }
11
+
12
+ # Proxy API requests to daemon on host
13
+ # Use host.docker.internal to reach host machine from container
14
+ location /status {
15
+ proxy_pass http://host.docker.internal:8420/status;
16
+ proxy_http_version 1.1;
17
+ proxy_set_header Host $host;
18
+ proxy_set_header X-Real-IP $remote_addr;
19
+ }
20
+
21
+ location /events {
22
+ proxy_pass http://host.docker.internal:8420/events;
23
+ proxy_http_version 1.1;
24
+ proxy_set_header Connection '';
25
+ proxy_buffering off;
26
+ proxy_cache off;
27
+ chunked_transfer_encoding off;
28
+ # SSE specific settings
29
+ proxy_read_timeout 86400s;
30
+ }
31
+
32
+ location /pending-approvals {
33
+ proxy_pass http://host.docker.internal:8420/pending-approvals;
34
+ proxy_http_version 1.1;
35
+ proxy_set_header Host $host;
36
+ }
37
+
38
+ location /phase-prompts {
39
+ proxy_pass http://host.docker.internal:8420/phase-prompts;
40
+ proxy_http_version 1.1;
41
+ proxy_set_header Host $host;
42
+ proxy_set_header Content-Type $content_type;
43
+ }
44
+
45
+ location /phase-acknowledge {
46
+ proxy_pass http://host.docker.internal:8420/phase-acknowledge;
47
+ proxy_http_version 1.1;
48
+ proxy_set_header Host $host;
49
+ proxy_set_header Content-Type application/json;
50
+ }
51
+
52
+ location /phase-inject {
53
+ proxy_pass http://host.docker.internal:8420/phase-inject;
54
+ proxy_http_version 1.1;
55
+ proxy_set_header Host $host;
56
+ proxy_set_header Content-Type application/json;
57
+ }
58
+
59
+ location /agent-activity {
60
+ proxy_pass http://host.docker.internal:8420/agent-activity;
61
+ proxy_http_version 1.1;
62
+ proxy_set_header Connection '';
63
+ proxy_buffering off;
64
+ proxy_cache off;
65
+ chunked_transfer_encoding off;
66
+ proxy_read_timeout 86400s;
67
+ }
68
+
69
+ location /job/ {
70
+ proxy_pass http://host.docker.internal:8420/job/;
71
+ proxy_http_version 1.1;
72
+ proxy_set_header Host $host;
73
+ }
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-foundry",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "AI agent pattern-learning system - npm wrapper for the Python engine",
5
5
  "keywords": [
6
6
  "ai",
@@ -40,6 +40,10 @@
40
40
  "files": [
41
41
  "bin/",
42
42
  "scripts/",
43
- "README.md"
43
+ "README.md",
44
+ "Dockerfile",
45
+ "docker-compose.yml",
46
+ "nginx.conf",
47
+ "cf.html"
44
48
  ]
45
49
  }