agent-valley 4.4.0 → 4.5.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 CHANGED
@@ -182,7 +182,9 @@ linear:
182
182
  in_progress: state-uuid
183
183
  done: state-uuid
184
184
  cancelled: state-uuid
185
-
185
+ # comment_relay:
186
+ # enabled: false
187
+ # ignore_authors: []
186
188
  # GitHub tracker (v0.2+) — used when tracker.kind = github.
187
189
  # github:
188
190
  # token_env: GITHUB_TOKEN
@@ -394,7 +396,9 @@ PixiJS-rendered office scene showing real-time actor status:
394
396
 
395
397
  Alongside Linear, GitHub Issues can drive the orchestrator. Set `tracker.kind: github` in `av.yaml` and configure the GitHub section — the domain `IssueTracker` / `WebhookReceiver` ports swap transparently. Both trackers reuse the same orchestration, retry, and delivery pipeline.
396
398
 
397
- With `github.comment_relay.enabled: true` and the webhook subscribed to **Issue comments**, a new comment from a repository owner, member or collaborator on an issue whose actor is running reaches that actor as an added instruction. Codex receives it in the running session; stateless actors such as Claude restart the attempt with the comment. Agent Valley's own comments, bot accounts, outside contributors, `ignore_authors`, edited comments and pull request comments are not relayed. Add the account behind `GITHUB_TOKEN` to `ignore_authors` when actors comment with it.
399
+ ### Comment relay
400
+
401
+ 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.
398
402
 
399
403
  ### Observability (v0.2+)
400
404
 
@@ -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.0",
4
+ "version": "4.5.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
@@ -15170,11 +15170,7 @@ function mergeConfigs(global2, project, env) {
15170
15170
  owner: project.github.owner ?? "",
15171
15171
  repo: project.github.repo ?? "",
15172
15172
  webhookSecret: project.github.webhook_secret ?? "",
15173
- labels,
15174
- commentRelay: {
15175
- enabled: project.github.comment_relay?.enabled ?? false,
15176
- ignoreAuthors: project.github.comment_relay?.ignore_authors ?? []
15177
- }
15173
+ labels
15178
15174
  };
15179
15175
  githubWorkflowStates = labels;
15180
15176
  }
@@ -15191,6 +15187,7 @@ function mergeConfigs(global2, project, env) {
15191
15187
  cancelled: project?.linear?.workflow_states?.cancelled ?? ""
15192
15188
  },
15193
15189
  github: githubMerged,
15190
+ commentRelay: resolveCommentRelay(trackerKind === "github" ? project?.github?.comment_relay : project?.linear?.comment_relay),
15194
15191
  workspaceRoot: project?.workspace?.root ?? "",
15195
15192
  agentType: projectActor?.type ?? globalActor?.type ?? defaults.agentType,
15196
15193
  agentTimeout: projectActor?.timeout ?? globalActor?.timeout ?? defaults.agentTimeout,
@@ -15257,7 +15254,10 @@ Symphony cannot start until all config errors are resolved.`);
15257
15254
  process.exit(1);
15258
15255
  }
15259
15256
  }
15260
- var globalConfigSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
15257
+ function resolveCommentRelay(relay) {
15258
+ return { enabled: relay?.enabled ?? false, ignoreAuthors: relay?.ignore_authors ?? [] };
15259
+ }
15260
+ var globalConfigSchema, commentRelayProjectSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
15261
15261
  var init_yaml_loader = __esm(() => {
15262
15262
  init_zod();
15263
15263
  init_skill_matrix_schema();
@@ -15288,6 +15288,10 @@ var init_yaml_loader = __esm(() => {
15288
15288
  }).optional(),
15289
15289
  team: teamConfigSchema.optional()
15290
15290
  }).strict().overwrite(normalizeActorDefaults);
15291
+ commentRelayProjectSchema = object({
15292
+ enabled: boolean2().optional(),
15293
+ ignore_authors: array(string2().min(1)).optional()
15294
+ });
15291
15295
  projectConfigSchema = object({
15292
15296
  tracker: object({
15293
15297
  kind: _enum(["linear", "github"]).optional()
@@ -15302,7 +15306,8 @@ var init_yaml_loader = __esm(() => {
15302
15306
  in_progress: string2().min(1).optional(),
15303
15307
  done: string2().min(1).optional(),
15304
15308
  cancelled: string2().min(1).optional()
15305
- }).optional()
15309
+ }).optional(),
15310
+ comment_relay: commentRelayProjectSchema.optional()
15306
15311
  }).optional(),
15307
15312
  github: object({
15308
15313
  token_env: string2().min(1).optional(),
@@ -15315,10 +15320,7 @@ var init_yaml_loader = __esm(() => {
15315
15320
  done: string2().min(1).optional(),
15316
15321
  cancelled: string2().min(1).optional()
15317
15322
  }).optional(),
15318
- comment_relay: object({
15319
- enabled: boolean2().optional(),
15320
- ignore_authors: array(string2().min(1)).optional()
15321
- }).optional()
15323
+ comment_relay: commentRelayProjectSchema.optional()
15322
15324
  }).optional(),
15323
15325
  workspace: object({
15324
15326
  root: string2().min(1).optional()
@@ -15370,11 +15372,7 @@ var init_yaml_loader = __esm(() => {
15370
15372
  Fix: Add it to av.yaml`),
15371
15373
  cancelled: string2().min(1, `github.labels.cancelled is not set.
15372
15374
  Fix: Add it to av.yaml`)
15373
- }),
15374
- commentRelay: object({
15375
- enabled: boolean2(),
15376
- ignoreAuthors: array(string2())
15377
- }).optional()
15375
+ })
15378
15376
  });
15379
15377
  mergedConfigSchema = object({
15380
15378
  trackerKind: _enum(["linear", "github"]),
@@ -15389,6 +15387,10 @@ var init_yaml_loader = __esm(() => {
15389
15387
  cancelled: string2()
15390
15388
  }),
15391
15389
  github: githubConfigSchema.optional(),
15390
+ commentRelay: object({
15391
+ enabled: boolean2(),
15392
+ ignoreAuthors: array(string2())
15393
+ }).optional(),
15392
15394
  workspaceRoot: string2().min(1, `workspace.root is not set.
15393
15395
  Fix: Add workspace.root to av.yaml`).refine((v) => v.startsWith("/"), `workspace.root must be an absolute path.
15394
15396
  Fix: Set workspace.root: /absolute/path in av.yaml`),
@@ -15170,11 +15170,7 @@ function mergeConfigs(global, project, env) {
15170
15170
  owner: project.github.owner ?? "",
15171
15171
  repo: project.github.repo ?? "",
15172
15172
  webhookSecret: project.github.webhook_secret ?? "",
15173
- labels,
15174
- commentRelay: {
15175
- enabled: project.github.comment_relay?.enabled ?? false,
15176
- ignoreAuthors: project.github.comment_relay?.ignore_authors ?? []
15177
- }
15173
+ labels
15178
15174
  };
15179
15175
  githubWorkflowStates = labels;
15180
15176
  }
@@ -15191,6 +15187,7 @@ function mergeConfigs(global, project, env) {
15191
15187
  cancelled: project?.linear?.workflow_states?.cancelled ?? ""
15192
15188
  },
15193
15189
  github: githubMerged,
15190
+ commentRelay: resolveCommentRelay(trackerKind === "github" ? project?.github?.comment_relay : project?.linear?.comment_relay),
15194
15191
  workspaceRoot: project?.workspace?.root ?? "",
15195
15192
  agentType: projectActor?.type ?? globalActor?.type ?? defaults.agentType,
15196
15193
  agentTimeout: projectActor?.timeout ?? globalActor?.timeout ?? defaults.agentTimeout,
@@ -15257,7 +15254,10 @@ Symphony cannot start until all config errors are resolved.`);
15257
15254
  process.exit(1);
15258
15255
  }
15259
15256
  }
15260
- var globalConfigSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
15257
+ function resolveCommentRelay(relay) {
15258
+ return { enabled: relay?.enabled ?? false, ignoreAuthors: relay?.ignore_authors ?? [] };
15259
+ }
15260
+ var globalConfigSchema, commentRelayProjectSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
15261
15261
  var init_yaml_loader = __esm(() => {
15262
15262
  init_zod();
15263
15263
  init_skill_matrix_schema();
@@ -15288,6 +15288,10 @@ var init_yaml_loader = __esm(() => {
15288
15288
  }).optional(),
15289
15289
  team: teamConfigSchema.optional()
15290
15290
  }).strict().overwrite(normalizeActorDefaults);
15291
+ commentRelayProjectSchema = object({
15292
+ enabled: boolean2().optional(),
15293
+ ignore_authors: array(string2().min(1)).optional()
15294
+ });
15291
15295
  projectConfigSchema = object({
15292
15296
  tracker: object({
15293
15297
  kind: _enum(["linear", "github"]).optional()
@@ -15302,7 +15306,8 @@ var init_yaml_loader = __esm(() => {
15302
15306
  in_progress: string2().min(1).optional(),
15303
15307
  done: string2().min(1).optional(),
15304
15308
  cancelled: string2().min(1).optional()
15305
- }).optional()
15309
+ }).optional(),
15310
+ comment_relay: commentRelayProjectSchema.optional()
15306
15311
  }).optional(),
15307
15312
  github: object({
15308
15313
  token_env: string2().min(1).optional(),
@@ -15315,10 +15320,7 @@ var init_yaml_loader = __esm(() => {
15315
15320
  done: string2().min(1).optional(),
15316
15321
  cancelled: string2().min(1).optional()
15317
15322
  }).optional(),
15318
- comment_relay: object({
15319
- enabled: boolean2().optional(),
15320
- ignore_authors: array(string2().min(1)).optional()
15321
- }).optional()
15323
+ comment_relay: commentRelayProjectSchema.optional()
15322
15324
  }).optional(),
15323
15325
  workspace: object({
15324
15326
  root: string2().min(1).optional()
@@ -15370,11 +15372,7 @@ var init_yaml_loader = __esm(() => {
15370
15372
  Fix: Add it to av.yaml`),
15371
15373
  cancelled: string2().min(1, `github.labels.cancelled is not set.
15372
15374
  Fix: Add it to av.yaml`)
15373
- }),
15374
- commentRelay: object({
15375
- enabled: boolean2(),
15376
- ignoreAuthors: array(string2())
15377
- }).optional()
15375
+ })
15378
15376
  });
15379
15377
  mergedConfigSchema = object({
15380
15378
  trackerKind: _enum(["linear", "github"]),
@@ -15389,6 +15387,10 @@ var init_yaml_loader = __esm(() => {
15389
15387
  cancelled: string2()
15390
15388
  }),
15391
15389
  github: githubConfigSchema.optional(),
15390
+ commentRelay: object({
15391
+ enabled: boolean2(),
15392
+ ignoreAuthors: array(string2())
15393
+ }).optional(),
15392
15394
  workspaceRoot: string2().min(1, `workspace.root is not set.
15393
15395
  Fix: Add workspace.root to av.yaml`).refine((v) => v.startsWith("/"), `workspace.root must be an absolute path.
15394
15396
  Fix: Set workspace.root: /absolute/path in av.yaml`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",