@agent-native/recap-cli 0.5.3 → 0.5.5
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/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/recap.d.ts +0 -15
- package/dist/recap.d.ts.map +1 -1
- package/dist/recap.js +6 -78
- package/dist/recap.js.map +1 -1
- package/dist/skill-content.d.ts +2 -1
- package/dist/skill-content.d.ts.map +1 -1
- package/dist/skill-content.js +1 -1
- package/dist/skill-content.js.map +1 -1
- package/dist/workflows/pr-visual-recap.yml +2 -47
- package/package.json +1 -1
package/dist/skill-content.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { CONNECTION_REFERENCE_MD } from "./skill-content/connection.js";
|
|
1
2
|
import { VISUAL_RECAP_SKILL_MD } from "./skill-content/visual-recap-skill.js";
|
|
2
|
-
export { VISUAL_RECAP_SKILL_MD };
|
|
3
|
+
export { CONNECTION_REFERENCE_MD, VISUAL_RECAP_SKILL_MD };
|
|
3
4
|
export declare const RECAP_REFERENCE_FILES: {
|
|
4
5
|
"references/wireframe.md": string;
|
|
5
6
|
"references/connection.md": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-content.d.ts","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-content.d.ts","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC;AAE1D,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC"}
|
package/dist/skill-content.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CONNECTION_REFERENCE_MD } from "./skill-content/connection.js";
|
|
|
2
2
|
import { LOCAL_FILES_REFERENCE_MD } from "./skill-content/local-files.js";
|
|
3
3
|
import { VISUAL_RECAP_SKILL_MD } from "./skill-content/visual-recap-skill.js";
|
|
4
4
|
import { WIREFRAME_REFERENCE_MD } from "./skill-content/wireframe.js";
|
|
5
|
-
export { VISUAL_RECAP_SKILL_MD };
|
|
5
|
+
export { CONNECTION_REFERENCE_MD, VISUAL_RECAP_SKILL_MD };
|
|
6
6
|
export const RECAP_REFERENCE_FILES = {
|
|
7
7
|
"references/wireframe.md": WIREFRAME_REFERENCE_MD,
|
|
8
8
|
"references/connection.md": CONNECTION_REFERENCE_MD,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-content.js","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,qBAAqB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-content.js","sourceRoot":"","sources":["../src/skill-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,CAAC;AAE1D,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,yBAAyB,EAAE,sBAAsB;IACjD,0BAA0B,EAAE,uBAAuB;IACnD,2BAA2B,EAAE,wBAAwB;CACtD,CAAC","sourcesContent":["import { CONNECTION_REFERENCE_MD } from \"./skill-content/connection.js\";\nimport { LOCAL_FILES_REFERENCE_MD } from \"./skill-content/local-files.js\";\nimport { VISUAL_RECAP_SKILL_MD } from \"./skill-content/visual-recap-skill.js\";\nimport { WIREFRAME_REFERENCE_MD } from \"./skill-content/wireframe.js\";\n\nexport { CONNECTION_REFERENCE_MD, VISUAL_RECAP_SKILL_MD };\n\nexport const RECAP_REFERENCE_FILES = {\n \"references/wireframe.md\": WIREFRAME_REFERENCE_MD,\n \"references/connection.md\": CONNECTION_REFERENCE_MD,\n \"references/local-files.md\": LOCAL_FILES_REFERENCE_MD,\n};\n"]}
|
|
@@ -33,8 +33,7 @@ jobs:
|
|
|
33
33
|
timeout-minutes: 10
|
|
34
34
|
permissions:
|
|
35
35
|
contents: read
|
|
36
|
-
|
|
37
|
-
pull-requests: write
|
|
36
|
+
pull-requests: read
|
|
38
37
|
outputs:
|
|
39
38
|
run: ${{ steps.decide.outputs.run }}
|
|
40
39
|
agent: ${{ steps.decide.outputs.agent }}
|
|
@@ -199,50 +198,6 @@ jobs:
|
|
|
199
198
|
core.notice(`Visual recap skipped: ${reasons.join('; ')}`);
|
|
200
199
|
}
|
|
201
200
|
|
|
202
|
-
// When skipping, upsert a sticky recap comment with a short skip
|
|
203
|
-
// line so the PR always explains why the recap job did not run.
|
|
204
|
-
if (!run && pr) {
|
|
205
|
-
try {
|
|
206
|
-
const MARKER = '<!-- pr-visual-recap -->';
|
|
207
|
-
const { data: comments } = await github.rest.issues.listComments({
|
|
208
|
-
owner: context.repo.owner,
|
|
209
|
-
repo: context.repo.repo,
|
|
210
|
-
issue_number: pr.number,
|
|
211
|
-
per_page: 100,
|
|
212
|
-
});
|
|
213
|
-
const existing = comments.find(
|
|
214
|
-
(c) => c.user && c.user.type === 'Bot' && c.body && c.body.includes(MARKER)
|
|
215
|
-
);
|
|
216
|
-
const headShort = (process.env.HEAD_SHA || '').slice(0, 7);
|
|
217
|
-
const shaRef = headShort ? `\`${headShort}\`` : 'latest push';
|
|
218
|
-
const primaryReason = reasons.filter(
|
|
219
|
-
(r) => !r.startsWith('could not list PR files for the self-modifying guard')
|
|
220
|
-
)[0] || reasons[0] || 'skipped';
|
|
221
|
-
const skipLine = `_Recap skipped for ${shaRef}: ${primaryReason}._`;
|
|
222
|
-
const baseBody = `${MARKER}\n### Visual recap — skipped\n\nThe visual recap job did not run for this pull request. This is informational only and does **not** block the PR.`;
|
|
223
|
-
const planIdMatch = (existing && existing.body ? existing.body : '').match(/<!--\s*plan-id:\s*([A-Za-z0-9_-]{1,64})\s*-->/);
|
|
224
|
-
const planIdMarker = planIdMatch ? `\n\n<!-- plan-id: ${planIdMatch[1]} -->` : '';
|
|
225
|
-
const updatedBody = `${baseBody}${planIdMarker}\n\n${skipLine}`;
|
|
226
|
-
if (existing) {
|
|
227
|
-
await github.rest.issues.updateComment({
|
|
228
|
-
owner: context.repo.owner,
|
|
229
|
-
repo: context.repo.repo,
|
|
230
|
-
comment_id: existing.id,
|
|
231
|
-
body: updatedBody,
|
|
232
|
-
});
|
|
233
|
-
} else {
|
|
234
|
-
await github.rest.issues.createComment({
|
|
235
|
-
owner: context.repo.owner,
|
|
236
|
-
repo: context.repo.repo,
|
|
237
|
-
issue_number: pr.number,
|
|
238
|
-
body: updatedBody,
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
} catch (e) {
|
|
242
|
-
core.warning(`Could not update recap skip comment: ${e.message}`);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
201
|
recap:
|
|
247
202
|
name: Generate visual recap
|
|
248
203
|
needs: gate
|
|
@@ -1055,7 +1010,7 @@ jobs:
|
|
|
1055
1010
|
retention-days: 14
|
|
1056
1011
|
|
|
1057
1012
|
- name: Upsert sticky comment
|
|
1058
|
-
if: always() && !cancelled()
|
|
1013
|
+
if: always() && !cancelled() && steps.diff.outputs.tiny != 'true'
|
|
1059
1014
|
continue-on-error: true
|
|
1060
1015
|
env:
|
|
1061
1016
|
PLAN_URL: ${{ steps.url.outputs.plan_url }}
|
package/package.json
CHANGED