Files
tori/deploy/deployment.yaml
Fam Zheng 2df4e12d30 Agent loop state machine refactor, unified LLM interface, and UI improvements
- Rewrite agent loop as Planning→Executing(N)→Completed state machine with
  per-step context isolation to prevent token explosion
- Split tools and prompts by phase (planning vs execution)
- Add advance_step/save_memo tools for step transitions and cross-step memory
- Unify LLM interface: remove duplicate types, single chat_with_tools path
- Add UTF-8 safe truncation (truncate_str) to prevent panics on Chinese text
- Extract CreateForm component, add auto-scroll to execution log
- Add report generation with app access URL, non-blocking title generation
- Add timer system, file serving, app proxy, exec module
- Update Dockerfile with uv, deployment config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 22:35:33 +00:00

76 lines
1.4 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: tori
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tori
namespace: tori
spec:
replicas: 1
selector:
matchLabels:
app: tori
template:
metadata:
labels:
app: tori
spec:
imagePullSecrets:
- name: regcred
containers:
- name: tori
image: registry.oci.euphon.net/tori:latest
ports:
- containerPort: 3000
volumeMounts:
- name: data
mountPath: /app/data
env:
- name: RUST_LOG
value: "info"
volumes:
- name: data
hostPath:
path: /data/tori
type: DirectoryOrCreate
---
apiVersion: v1
kind: Service
metadata:
name: tori
namespace: tori
spec:
selector:
app: tori
ports:
- port: 80
targetPort: 3000
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tori
namespace: tori
annotations:
traefik.ingress.kubernetes.io/router.tls.certresolver: le
spec:
ingressClassName: traefik
rules:
- host: tori.oci.euphon.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tori
port:
number: 80
tls:
- hosts:
- tori.oci.euphon.net