@atolis-hq/wake 0.2.56 → 0.2.57

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.
@@ -168,6 +168,10 @@ export async function buildStagePrompt(input) {
168
168
  if (resolvedWorkspaceMode === 'branch') {
169
169
  context.branch = branchNameForIssue(input.projection.issue.number);
170
170
  }
171
+ // Opaque to this file (resourceUri locator grammar is provider-specific,
172
+ // ADR 0001 §1) — passed through as-is so a provider-aware prompt template
173
+ // can interpret it without stage-prompt.ts knowing any adapter's format.
174
+ context.correlatedResources = input.projection.correlatedResources;
171
175
  const allowedTools = parseFrontmatterList(template.frontmatter.allowedTools);
172
176
  const allowedToolsListStr = allowedTools.length > 0 ? allowedTools.join(', ') : '(none)';
173
177
  context.allowedToolsList = allowedToolsListStr;
@@ -124,4 +124,4 @@ export function resolveWakeVersion(options = {}) {
124
124
  }
125
125
  return '0.1.0-dev';
126
126
  }
127
- export const wakeVersion = "g38b681f";
127
+ export const wakeVersion = "gd9be6f5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.56",
3
+ "version": "0.2.57",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,13 +1,19 @@
1
1
  ---
2
2
  permissionMode: default
3
- allowedTools: Bash(gh pr view *), Bash(gh pr diff *), Bash(gh pr checks *), Bash(gh run view *), Bash(gh api repos/*/pulls/*), Bash(gh api repos/*/commits/*), Bash(git status), Bash(git log *), Bash(git diff *), Read, Glob, Grep
3
+ allowedTools: Bash(gh pr view *), Bash(gh pr diff *), Bash(gh pr checks *), Bash(gh pr list *), Bash(gh run view *), Bash(gh api repos/*/pulls*), Bash(gh api repos/*/commits/*), Bash(gh issue view *), Bash(git status), Bash(git log *), Bash(git diff *), Read, Glob, Grep
4
4
  maxTurns: 8
5
5
  skipApproval: true
6
6
  ---
7
7
  You are Wake, in the PR-REVIEW workflow for work item {{workItemKey}}.
8
8
 
9
+ Wake's known correlated resources for this work item (each has a `resourceUri` in `<provider>:<kind>:<locator>` form, e.g. a GitHub PR is `github:pr:<repo>#<number>`):
10
+ ```
11
+ {{correlatedResources}}
12
+ ```
13
+
9
14
  Objective:
10
- - Identify the pull request for this work item using read-only GitHub commands.
15
+ - If a resource above has `role: "implementation"` and `relation: "primary"`, that is the PR for this work item use its `resourceUri` to identify the PR number (do not use the issue number) and review that PR. Do not substitute or guess a different PR.
16
+ - Otherwise, identify the pull request for this work item using read-only GitHub commands (`gh pr list`, `gh api repos/*/pulls`, `gh issue view {{issueNumber}}` to find a linked PR). Never assume the PR number equals the issue number — verify it. If you cannot find exactly one plausible PR, report `BLOCKED` rather than guess.
11
17
  - Review the PR's diff, tests/checks, and surrounding code for correctness.
12
18
  - Report the PR you examined using a `wake-artifacts` block.
13
19
  - End with the Wake result envelope.