agent-valley 4.5.0 → 4.6.0
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.
- package/README.md +3 -0
- package/dist/assets/plugin.json +1 -1
- package/dist/index.js +30 -14
- package/dist/supervisor.js +30 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,6 +199,7 @@ linear:
|
|
|
199
199
|
# comment_relay:
|
|
200
200
|
# enabled: false
|
|
201
201
|
# ignore_authors: []
|
|
202
|
+
# pull_request_reviews: false
|
|
202
203
|
|
|
203
204
|
workspace:
|
|
204
205
|
root: /absolute/path/to/target-repo
|
|
@@ -400,6 +401,8 @@ Alongside Linear, GitHub Issues can drive the orchestrator. Set `tracker.kind: g
|
|
|
400
401
|
|
|
401
402
|
With `comment_relay.enabled: true` under the active tracker (`github:` or `linear:`), a new comment on an issue whose actor is running reaches that actor as an added instruction. GitHub relays repository owners, members and collaborators and needs the webhook subscribed to **Issue comments**; Linear relays workspace users (members and guests) and needs **Comment** events. Codex receives the comment in the running session; stateless actors such as Claude restart the attempt with it. Agent Valley's own comments (its hidden marker or the `Symphony:` prefix), bots and integrations, outside contributors, `ignore_authors`, edited or deleted comments and pull request comments are not relayed. `ignore_authors` accepts GitHub logins and Linear emails, user ids or names; add the account actors comment with when it is a person's token.
|
|
402
403
|
|
|
404
|
+
With `pull_request_reviews: true` as well (GitHub tracker only), a submitted review of an open pull request on an Agent Valley branch (`<prefix>/<owner>/<repo>#<issue>`) becomes follow-up work, so PR delivery mode can answer review feedback. The webhook must also send **Pull request reviews**. The same author rules apply, approvals are skipped, and the review summary and its inline comments become the instruction. A running actor receives it like a relayed comment. A delivered issue (Done) is reopened to In Progress and retried with the review as context in the existing worktree; delivery then pushes to the same pull request. Reviews of fork branches, closed pull requests and other branches are ignored. A Linear tracker cannot follow up on GitHub reviews because it has no GitHub webhook receiver.
|
|
405
|
+
|
|
403
406
|
### Observability (v0.2+)
|
|
404
407
|
|
|
405
408
|
OpenTelemetry OTLP HTTP traces and Prometheus metrics ship built in but **default to off**. Enable per deployment via the `observability` section in `av.yaml`. When enabled:
|
package/dist/assets/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "av",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.6.0",
|
|
5
5
|
"description": "Delegate repository goals to Agent Valley and inspect mission progress and verification evidence.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Agent Valley"
|
package/dist/index.js
CHANGED
|
@@ -7900,6 +7900,31 @@ var init_chief_schema = __esm(() => {
|
|
|
7900
7900
|
});
|
|
7901
7901
|
});
|
|
7902
7902
|
|
|
7903
|
+
// ../../packages/core/src/config/comment-relay-schema.ts
|
|
7904
|
+
function buildCommentRelayConfig(relay) {
|
|
7905
|
+
return {
|
|
7906
|
+
enabled: relay?.enabled ?? false,
|
|
7907
|
+
ignoreAuthors: relay?.ignore_authors ?? [],
|
|
7908
|
+
pullRequestReviews: relay?.pull_request_reviews ?? false
|
|
7909
|
+
};
|
|
7910
|
+
}
|
|
7911
|
+
var commentRelayProjectSchema, githubCommentRelayProjectSchema, commentRelayMergedSchema;
|
|
7912
|
+
var init_comment_relay_schema = __esm(() => {
|
|
7913
|
+
init_zod();
|
|
7914
|
+
commentRelayProjectSchema = object({
|
|
7915
|
+
enabled: boolean2().optional(),
|
|
7916
|
+
ignore_authors: array(string2().min(1)).optional()
|
|
7917
|
+
});
|
|
7918
|
+
githubCommentRelayProjectSchema = commentRelayProjectSchema.extend({
|
|
7919
|
+
pull_request_reviews: boolean2().optional()
|
|
7920
|
+
});
|
|
7921
|
+
commentRelayMergedSchema = object({
|
|
7922
|
+
enabled: boolean2(),
|
|
7923
|
+
ignoreAuthors: array(string2()),
|
|
7924
|
+
pullRequestReviews: boolean2()
|
|
7925
|
+
}).optional();
|
|
7926
|
+
});
|
|
7927
|
+
|
|
7903
7928
|
// ../../packages/core/src/config/hardware.ts
|
|
7904
7929
|
import { cpus, totalmem } from "node:os";
|
|
7905
7930
|
function detectHardware() {
|
|
@@ -15187,7 +15212,7 @@ function mergeConfigs(global2, project, env) {
|
|
|
15187
15212
|
cancelled: project?.linear?.workflow_states?.cancelled ?? ""
|
|
15188
15213
|
},
|
|
15189
15214
|
github: githubMerged,
|
|
15190
|
-
commentRelay:
|
|
15215
|
+
commentRelay: buildCommentRelayConfig(trackerKind === "github" ? project?.github?.comment_relay : project?.linear?.comment_relay),
|
|
15191
15216
|
workspaceRoot: project?.workspace?.root ?? "",
|
|
15192
15217
|
agentType: projectActor?.type ?? globalActor?.type ?? defaults.agentType,
|
|
15193
15218
|
agentTimeout: projectActor?.timeout ?? globalActor?.timeout ?? defaults.agentTimeout,
|
|
@@ -15254,16 +15279,14 @@ Symphony cannot start until all config errors are resolved.`);
|
|
|
15254
15279
|
process.exit(1);
|
|
15255
15280
|
}
|
|
15256
15281
|
}
|
|
15257
|
-
|
|
15258
|
-
return { enabled: relay?.enabled ?? false, ignoreAuthors: relay?.ignore_authors ?? [] };
|
|
15259
|
-
}
|
|
15260
|
-
var globalConfigSchema, commentRelayProjectSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
|
|
15282
|
+
var globalConfigSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
|
|
15261
15283
|
var init_yaml_loader = __esm(() => {
|
|
15262
15284
|
init_zod();
|
|
15263
15285
|
init_skill_matrix_schema();
|
|
15264
15286
|
init_actor_schema();
|
|
15265
15287
|
init_budget_schema();
|
|
15266
15288
|
init_chief_schema();
|
|
15289
|
+
init_comment_relay_schema();
|
|
15267
15290
|
init_hardware();
|
|
15268
15291
|
init_observability_schema();
|
|
15269
15292
|
init_project_config_path();
|
|
@@ -15288,10 +15311,6 @@ var init_yaml_loader = __esm(() => {
|
|
|
15288
15311
|
}).optional(),
|
|
15289
15312
|
team: teamConfigSchema.optional()
|
|
15290
15313
|
}).strict().overwrite(normalizeActorDefaults);
|
|
15291
|
-
commentRelayProjectSchema = object({
|
|
15292
|
-
enabled: boolean2().optional(),
|
|
15293
|
-
ignore_authors: array(string2().min(1)).optional()
|
|
15294
|
-
});
|
|
15295
15314
|
projectConfigSchema = object({
|
|
15296
15315
|
tracker: object({
|
|
15297
15316
|
kind: _enum(["linear", "github"]).optional()
|
|
@@ -15320,7 +15339,7 @@ var init_yaml_loader = __esm(() => {
|
|
|
15320
15339
|
done: string2().min(1).optional(),
|
|
15321
15340
|
cancelled: string2().min(1).optional()
|
|
15322
15341
|
}).optional(),
|
|
15323
|
-
comment_relay:
|
|
15342
|
+
comment_relay: githubCommentRelayProjectSchema.optional()
|
|
15324
15343
|
}).optional(),
|
|
15325
15344
|
workspace: object({
|
|
15326
15345
|
root: string2().min(1).optional()
|
|
@@ -15387,10 +15406,7 @@ var init_yaml_loader = __esm(() => {
|
|
|
15387
15406
|
cancelled: string2()
|
|
15388
15407
|
}),
|
|
15389
15408
|
github: githubConfigSchema.optional(),
|
|
15390
|
-
commentRelay:
|
|
15391
|
-
enabled: boolean2(),
|
|
15392
|
-
ignoreAuthors: array(string2())
|
|
15393
|
-
}).optional(),
|
|
15409
|
+
commentRelay: commentRelayMergedSchema,
|
|
15394
15410
|
workspaceRoot: string2().min(1, `workspace.root is not set.
|
|
15395
15411
|
Fix: Add workspace.root to av.yaml`).refine((v) => v.startsWith("/"), `workspace.root must be an absolute path.
|
|
15396
15412
|
Fix: Set workspace.root: /absolute/path in av.yaml`),
|
package/dist/supervisor.js
CHANGED
|
@@ -7892,6 +7892,31 @@ var init_chief_schema = __esm(() => {
|
|
|
7892
7892
|
});
|
|
7893
7893
|
});
|
|
7894
7894
|
|
|
7895
|
+
// ../../packages/core/src/config/comment-relay-schema.ts
|
|
7896
|
+
function buildCommentRelayConfig(relay) {
|
|
7897
|
+
return {
|
|
7898
|
+
enabled: relay?.enabled ?? false,
|
|
7899
|
+
ignoreAuthors: relay?.ignore_authors ?? [],
|
|
7900
|
+
pullRequestReviews: relay?.pull_request_reviews ?? false
|
|
7901
|
+
};
|
|
7902
|
+
}
|
|
7903
|
+
var commentRelayProjectSchema, githubCommentRelayProjectSchema, commentRelayMergedSchema;
|
|
7904
|
+
var init_comment_relay_schema = __esm(() => {
|
|
7905
|
+
init_zod();
|
|
7906
|
+
commentRelayProjectSchema = object({
|
|
7907
|
+
enabled: boolean2().optional(),
|
|
7908
|
+
ignore_authors: array(string2().min(1)).optional()
|
|
7909
|
+
});
|
|
7910
|
+
githubCommentRelayProjectSchema = commentRelayProjectSchema.extend({
|
|
7911
|
+
pull_request_reviews: boolean2().optional()
|
|
7912
|
+
});
|
|
7913
|
+
commentRelayMergedSchema = object({
|
|
7914
|
+
enabled: boolean2(),
|
|
7915
|
+
ignoreAuthors: array(string2()),
|
|
7916
|
+
pullRequestReviews: boolean2()
|
|
7917
|
+
}).optional();
|
|
7918
|
+
});
|
|
7919
|
+
|
|
7895
7920
|
// ../../packages/core/src/config/hardware.ts
|
|
7896
7921
|
import { cpus, totalmem } from "node:os";
|
|
7897
7922
|
function detectHardware() {
|
|
@@ -15187,7 +15212,7 @@ function mergeConfigs(global, project, env) {
|
|
|
15187
15212
|
cancelled: project?.linear?.workflow_states?.cancelled ?? ""
|
|
15188
15213
|
},
|
|
15189
15214
|
github: githubMerged,
|
|
15190
|
-
commentRelay:
|
|
15215
|
+
commentRelay: buildCommentRelayConfig(trackerKind === "github" ? project?.github?.comment_relay : project?.linear?.comment_relay),
|
|
15191
15216
|
workspaceRoot: project?.workspace?.root ?? "",
|
|
15192
15217
|
agentType: projectActor?.type ?? globalActor?.type ?? defaults.agentType,
|
|
15193
15218
|
agentTimeout: projectActor?.timeout ?? globalActor?.timeout ?? defaults.agentTimeout,
|
|
@@ -15254,16 +15279,14 @@ Symphony cannot start until all config errors are resolved.`);
|
|
|
15254
15279
|
process.exit(1);
|
|
15255
15280
|
}
|
|
15256
15281
|
}
|
|
15257
|
-
|
|
15258
|
-
return { enabled: relay?.enabled ?? false, ignoreAuthors: relay?.ignore_authors ?? [] };
|
|
15259
|
-
}
|
|
15260
|
-
var globalConfigSchema, commentRelayProjectSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
|
|
15282
|
+
var globalConfigSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
|
|
15261
15283
|
var init_yaml_loader = __esm(() => {
|
|
15262
15284
|
init_zod();
|
|
15263
15285
|
init_skill_matrix_schema();
|
|
15264
15286
|
init_actor_schema();
|
|
15265
15287
|
init_budget_schema();
|
|
15266
15288
|
init_chief_schema();
|
|
15289
|
+
init_comment_relay_schema();
|
|
15267
15290
|
init_hardware();
|
|
15268
15291
|
init_observability_schema();
|
|
15269
15292
|
init_project_config_path();
|
|
@@ -15288,10 +15311,6 @@ var init_yaml_loader = __esm(() => {
|
|
|
15288
15311
|
}).optional(),
|
|
15289
15312
|
team: teamConfigSchema.optional()
|
|
15290
15313
|
}).strict().overwrite(normalizeActorDefaults);
|
|
15291
|
-
commentRelayProjectSchema = object({
|
|
15292
|
-
enabled: boolean2().optional(),
|
|
15293
|
-
ignore_authors: array(string2().min(1)).optional()
|
|
15294
|
-
});
|
|
15295
15314
|
projectConfigSchema = object({
|
|
15296
15315
|
tracker: object({
|
|
15297
15316
|
kind: _enum(["linear", "github"]).optional()
|
|
@@ -15320,7 +15339,7 @@ var init_yaml_loader = __esm(() => {
|
|
|
15320
15339
|
done: string2().min(1).optional(),
|
|
15321
15340
|
cancelled: string2().min(1).optional()
|
|
15322
15341
|
}).optional(),
|
|
15323
|
-
comment_relay:
|
|
15342
|
+
comment_relay: githubCommentRelayProjectSchema.optional()
|
|
15324
15343
|
}).optional(),
|
|
15325
15344
|
workspace: object({
|
|
15326
15345
|
root: string2().min(1).optional()
|
|
@@ -15387,10 +15406,7 @@ var init_yaml_loader = __esm(() => {
|
|
|
15387
15406
|
cancelled: string2()
|
|
15388
15407
|
}),
|
|
15389
15408
|
github: githubConfigSchema.optional(),
|
|
15390
|
-
commentRelay:
|
|
15391
|
-
enabled: boolean2(),
|
|
15392
|
-
ignoreAuthors: array(string2())
|
|
15393
|
-
}).optional(),
|
|
15409
|
+
commentRelay: commentRelayMergedSchema,
|
|
15394
15410
|
workspaceRoot: string2().min(1, `workspace.root is not set.
|
|
15395
15411
|
Fix: Add workspace.root to av.yaml`).refine((v) => v.startsWith("/"), `workspace.root must be an absolute path.
|
|
15396
15412
|
Fix: Set workspace.root: /absolute/path in av.yaml`),
|