Skip to content

Commit 249beb6

Browse files
committed
chore(security): add local dev worker group
1 parent 07b5b46 commit 249beb6

4 files changed

Lines changed: 38 additions & 3 deletions

File tree

apps/web/.env.development.local.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ AUTO_FIX_URL=http://localhost:8792
1616
# @url cloudflare-auto-triage-infra
1717
AUTO_TRIAGE_URL=http://localhost:8791
1818

19+
# @url cloudflare-security-sync
20+
SECURITY_SYNC_WORKER_URL=http://localhost:8812
21+
22+
# @url cloudflare-security-auto-analysis
23+
SECURITY_AUTO_ANALYSIS_WORKER_URL=http://localhost:8797
24+
1925
# @url cloudflare-app-builder
2026
APP_BUILDER_URL=http://localhost:8790
2127

dev/local/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ Usage:
592592
dev:env --check Validate env vars (CI mode)
593593
dev:env -y Sync without confirmation
594594
595-
Targets: app, app-builder, agents, mobile, all, or any service/group name
596-
Multiple targets can be specified: dev:start kiloclaw agents`);
595+
Targets: app, app-builder, agents, security-agent, mobile, all, or any service/group name
596+
Multiple targets can be specified: dev:start kiloclaw security-agent`);
597597
}
598598

599599
// ---------------------------------------------------------------------------

dev/local/services.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ const groups: ServiceGroup[] = [
4040
sectionBreakBefore: true,
4141
},
4242
{ id: 'auto-fix', label: 'Auto Fix', alwaysOn: false, groupDependsOn: ['cloud-agent'] },
43+
{
44+
id: 'security-agent',
45+
label: 'Security Agent',
46+
alwaysOn: false,
47+
groupDependsOn: ['cloud-agent'],
48+
},
4349
{ id: 'deploy', label: 'Deploy', alwaysOn: false },
4450
{ id: 'observability', label: 'Observability', alwaysOn: false },
4551
{ id: 'mobile', label: 'Mobile', alwaysOn: false, sectionBreakBefore: true },
@@ -135,6 +141,23 @@ const serviceMeta: Record<string, ServiceMeta> = {
135141
dependsOn: ['cloud-agent-next', 'nextjs'],
136142
dir: 'services/auto-fix-infra',
137143
},
144+
// security-agent
145+
'cloudflare-security-sync': {
146+
group: 'security-agent',
147+
dependsOn: ['postgres', 'cloudflare-git-token-service'],
148+
dir: 'services/security-sync',
149+
},
150+
'cloudflare-security-auto-analysis': {
151+
group: 'security-agent',
152+
dependsOn: [
153+
'postgres',
154+
'nextjs',
155+
'cloud-agent-next',
156+
'cloudflare-git-token-service',
157+
'cloudflare-session-ingest',
158+
],
159+
dir: 'services/security-auto-analysis',
160+
},
138161
// deploy
139162
'cloudflare-deploy-builder': {
140163
group: 'deploy',

services/security-sync/wrangler.jsonc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
"observability": {
1010
"enabled": true,
1111
},
12+
"routes": [
13+
{
14+
"pattern": "security-sync.kilosessions.ai",
15+
"custom_domain": true,
16+
},
17+
],
1218
"dev": {
13-
"port": 8796,
19+
"port": 8812,
1420
"local_protocol": "http",
1521
"ip": "0.0.0.0",
1622
},

0 commit comments

Comments
 (0)