github-issue-tower-defence-management 2.190.3 → 2.191.1

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
@@ -356,7 +356,7 @@ startPreparation?: # Optional: Enable automatic issue preparation workflow
356
356
  awLogStaleThresholdMinutes?: number # Optional: Minutes since last aw log mtime after which a Preparation issue is considered orphaned even when pgrep still returns 0 (outer wrapper alive but inner claude dead). Requires awLogDirectoryPath
357
357
  agentDefinitionsDirectoryPath?: string # Optional: Directory path containing per-agent definition markdown files named {agentName}.md, each with a YAML frontmatter `model:` field. Used as a model source when neither an `llm-model:` label, an `llmModelNameByAgentName` entry, nor live-session token routing resolves a model. Defaults to ~/.claude/agents when unset
358
358
  labelsAsLlmAgentName?: string[] | null # Optional: List of issue labels that are themselves agent names. When an issue carries any label that is included in this list, that label name is used as the agent name. Selection precedence is: (1) explicit `llm-agent:` label, (2) labelsAsLlmAgentName entry match, (3) `category:` label, (4) defaultLlmAgentName, (5) defaultAgentName
359
- developerAgentNames?: string[] # Optional: The agent names treated as "developer" agents for PR link, CI, and conflict checks in both the notifyFinishedIssuePreparation and scheduled revert flows. When omitted or empty, no issue is treated as a developer agent issue (no silent fallback to `developer`). Set this when your project uses one or more agent names for coding tasks and you want those agents' issues to undergo PR/CI/conflict validation. Readable from the project README config section; readme value takes precedence over the config file value. Declared at the top level (sibling of startPreparation), not inside it. Also accepts the legacy single-string key `developerAgentName` for backward compatibility (wrapped as a one-element array).
359
+ developerAgentNames?: string[] # Optional: The agent names treated as "developer" agents for PR link, CI, and conflict checks in both the notifyFinishedIssuePreparation and scheduled revert flows. When omitted or empty, no issue is treated as a developer agent issue (no silent fallback to `developer`). Set this when your project uses one or more agent names for coding tasks and you want those agents' issues to undergo PR/CI/conflict validation. TDPM never rewrites an issue's Agent field to a configured developer agent: when an issue of another agent has exactly one linked open pull request whose CI is failing or in progress, the issue returns to Awaiting Workspace with its current Agent unchanged, so that same agent is re-dispatched to fix the CI. Readable from the project README config section; readme value takes precedence over the config file value. Declared at the top level (sibling of startPreparation), not inside it. Also accepts the legacy single-string key `developerAgentName` for backward compatibility (wrapped as a one-element array).
360
360
  labelsNotRequiringPullRequest?: string[] | null # Optional: List of issue labels whose issues are exempt from the pull-request part of the review-readiness check, without that label also being used as an agent name. An issue carrying any of these labels is never rejected for a missing, draft, conflicted, or failing pull request, and its agent is still resolved by the normal precedence (explicit `llm-agent:` label, labelsAsLlmAgentName entry match, `category:` label, defaultLlmAgentName, defaultAgentName). Every label in labelsAsLlmAgentName is exempt as well, so an existing config that relied on that key keeps its behaviour. Use this key for a label such as `story` whose issues produce child issues rather than a pull request and for which no agent of the same name is installed. Declared at the top level (sibling of startPreparation), not inside it.
361
361
  agentDesignationLabelsToKeep?: string[] | null # Optional: List of agent label names for which the label is NOT removed after the Agent project field is set. When an issue carries a label matching an agent name in this list, the Agent field is updated normally but the label is kept on the issue (the normal behavior removes it). Use this for a label such as `story` that serves a dual purpose and must remain visible on the issue after routing. Declared at the top level (sibling of startPreparation), not inside it.
362
362
  changeTargetPathAliases?: Record<string, string> | null # Optional: Map of short alias keys to full repository-root-relative directory paths, for use with `change-target:<alias>` labels. Allows deeply nested paths that exceed GitHub's 50-character label limit to be referenced via a short alias. Example: `{ "adapters": "src/domain/usecases/adapter-interfaces" }` — a label `change-target:adapters` then matches files under `src/domain/usecases/adapter-interfaces/`. Keys not matching any `change-target:` label value are ignored; values with leading or trailing slashes are normalized automatically. Declared at the top level (sibling of startPreparation), not inside it.
@@ -824,7 +824,7 @@ The following use cases execute on every `schedule` trigger (cadence is determin
824
824
  - `NotifyFinishedIssuePreparationUseCase` — checks preparation-status issues and advances them. When the issue carries one or more `change-target:<path>` labels and all auto status checks pass, the related pull request's full file list is fetched (paginated, no 100-file truncation) and the PR is auto-approved before transitioning to Awaiting Owner if every changed file is under at least one of the labeled paths. Matching is boundary-safe (`change-target:foo` matches `foo/bar.ts` but not `foobar/baz.ts`); multiple `change-target:` labels are OR-combined. When no `change-target:` label is present, behavior is unchanged. When the issue carries one or more `change-target-must:<path>` labels, the PR is also rejected with a `CHANGE_TARGET_MUST_PATH_NOT_CHANGED` status when no changed file falls under a required path. The rejection submits a "request changes" review containing an inline comment on the first changed file (or a PR-level comment when the PR has no changed files) that names the required directory. `change-target-must:` paths are also treated as allowed paths for the confinement check, behaving identically to `change-target:` in addition to requiring at least one change under the path.
825
825
  - `closeIssueAs` in the last fenced `json` block that parses as JSON in the last trusted agent report asks the tool to close the task issue, so the agent does not close it itself. The allowed values are `"completed"` and `"not_planned"`, the GitHub REST `state_reason` values behind the "Close as completed" and "Close as not planned" buttons. An absent field or `null` requests no close. The evidence for closing stays in the comment body and the JSON carries only the value, for example `{"closeIssueAs": "completed"}`.
826
826
  - Precedence: when the same block also sets a non-empty `workflowError` or `needOwnerConfirmationOrApproval: true`, the issue is not closed.
827
- - A valid value is evaluated as soon as the last agent report is located, before the CI-failing pull request hand-over and every Failed Preparation escalation (no report, REJECTED count, dispatch loop), so none of them prevents the close. When the issue is open and no open pull request closes it, the tool closes it with that state reason, then sets Status to `Done` and posts no comment. When the project's Status field has no `Done` option, the issue is still closed, Status is left unchanged and an error naming the project and the issue is logged. An issue whose Depended Issue URL or Reactivation Trigger is still pending moves to Awaiting Workspace as before and is not closed.
827
+ - A valid value is evaluated as soon as the last agent report is located, before the CI-failing pull request routing and every Failed Preparation escalation (no report, REJECTED count, dispatch loop), so none of them prevents the close. When the issue is open and no open pull request closes it, the tool closes it with that state reason, then sets Status to `Done` and posts no comment. When the project's Status field has no `Done` option, the issue is still closed, Status is left unchanged and an error naming the project and the issue is logged. An issue whose Depended Issue URL or Reactivation Trigger is still pending moves to Awaiting Workspace as before and is not closed.
828
828
  - Open pull request rule: when an open pull request closes the issue on merge, the tool does not close the issue, logs a warning naming the issue and every such pull request, and routes the report exactly as without `closeIssueAs`.
829
829
  - Already-closed rule: when the issue is already closed, the tool does not close it again and sets Status to `Done`.
830
830
  - Invalid-value rule: any other value, such as `"not planned"`, `""`, `false` or `1`, is checked after the `needOwnerConfirmationOrApproval` branch, so the existing escalations still apply first. The tool then does not close the issue, posts `Invalid closeIssueAs value {received value as JSON}: allowed values are "completed" and "not_planned". The issue was not closed.` and sets Status to Awaiting Workspace.