-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-compose.yml
More file actions
69 lines (66 loc) · 2.09 KB
/
Copy pathagent-compose.yml
File metadata and controls
69 lines (66 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: autodev
workspaces:
target:
provider: git
url: https://git.in.chaitin.net/ai/adp/adp.git
ref: main
target: .
token: ${SCM_GIT_TOKEN}
volumes:
state:
name: autodev-state
agents:
workflow:
provider: pi
model: openai/deepseek-v4-flash
build:
context: .
dockerfile: Dockerfile
tags:
- autodev-guest:20260804-opencode9
image: autodev-guest:20260804-opencode9
driver:
docker: {}
workspace:
name: target
volumes:
- state:/state
env:
SCM_REPOSITORY_URL: ${SCM_REPOSITORY_URL}
SCM_PROVIDER: ${SCM_PROVIDER}
SCM_DEFAULT_BRANCH: ${SCM_DEFAULT_BRANCH}
SCM_REPOSITORY: ${SCM_REPOSITORY}
SCM_API_BASE_URL: ${SCM_API_BASE_URL}
SCM_API_TOKEN:
value: ${SCM_API_TOKEN}
secret: true
SCM_GIT_TOKEN:
value: ${SCM_GIT_TOKEN}
secret: true
AUTODEV_CONFIG: /opt/autodev/config/autodev.yml
AUTODEV_WORKSPACE: /workspace
AUTODEV_STATE_ROOT: /state
scheduler:
enabled: true
sandbox_policy: new
# One project targets one repository. agent-compose prevents overlapping
# scheduler runs; AutoDev's lease remains defense in depth for manual runs.
concurrency_policy: skip
script: |
async function run(event) {
const result = scheduler.shell("/opt/autodev/scripts/run-webhook.sh", {
env: { AUTODEV_WEBHOOK_EVENT: JSON.stringify(event) },
timeoutMs: 10800000,
maxOutputBytes: 1048576,
sandboxPolicy: "new",
title: "AutoDev repository workflow"
});
if (!result.success) {
throw new Error(`AutoDev workflow failed with exit code ${result.exitCode}: ${result.stderr || result.output}`);
}
return result;
}
scheduler.on("webhook.gitlab.issue", "gitlab-issue", run);
scheduler.on("webhook.gitlab.note", "gitlab-note", run);
scheduler.on("webhook.gitlab.merge_request", "gitlab-merge-request", run);
scheduler.on("webhook.github.issues", "github-issues", run);