open-pstack 0.9.151 → 0.9.153
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/lib/steps.mjs +12 -3
- package/package.json +1 -1
- package/plugin/.antigravity-plugin/plugin.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.github/plugin/plugin.json +1 -1
- package/plugin/.grok-plugin/plugin.json +1 -1
- package/plugin/.muse-plugin/plugin.json +1 -1
- package/plugin/opencode/index.js +37 -5
- package/plugin/package.json +1 -1
- package/plugin/pi/agents.ts +2 -1
- package/plugin/pi/config.ts +12 -2
- package/plugin/pi/index.ts +1 -1
- package/plugin/skills/poteto-mode/SKILL.md +1 -1
- package/plugin/skills/poteto-mode/playbooks/babysit.md +2 -2
- package/plugin/skills/poteto-mode/playbooks/shipping.md +1 -1
- package/plugin/skills/poteto-mode/references/cloud-session-pr-reads.md +21 -19
- package/plugin/skills/poteto-mode/references/opencode-tools.md +1 -1
- package/plugin/skills/poteto-mode/scripts/watch-pr/cli.ts +3 -1
- package/plugin/skills/poteto-mode/scripts/watch-pr/cloud-reader.test.ts +264 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/cloud-reader.ts +613 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/github.ts +8 -9
- package/plugin/skills/poteto-mode/scripts/watch-pr/query-error.ts +4 -0
- package/plugin/skills/poteto-mode/scripts/watch-pr/transport.test.ts +1 -29
|
@@ -37,9 +37,7 @@ if (scenario === 'slow') {
|
|
|
37
37
|
const noCi = scenario.startsWith('no-ci');
|
|
38
38
|
const fail = (stderr) => { console.error(stderr); process.exit(1); };
|
|
39
39
|
let value;
|
|
40
|
-
if (scenario === 'graphql-
|
|
41
|
-
fail('gh: GitHub GraphQL is not available from Claude Code sessions; use the REST API (gh api repos/{owner}/{repo}/...). (HTTP 403)');
|
|
42
|
-
} else if (scenario === 'graphql-rate-limited' && args[0] === 'api' && args[1] === 'graphql') {
|
|
40
|
+
if (scenario === 'graphql-rate-limited' && args[0] === 'api' && args[1] === 'graphql') {
|
|
43
41
|
fail('gh: You have exceeded a secondary rate limit. Please wait a few minutes before you try again. (HTTP 403)');
|
|
44
42
|
} else if (args.some(a => a.includes('query PullRequestFacts'))) {
|
|
45
43
|
value = { data: { repository: { pullRequest: { headRefOid: 'head', baseRef: { target: { oid: 'base' } }, mergeable: 'MERGEABLE', mergeStateStatus: scenario === 'no-ci-blocked' ? 'BLOCKED' : 'CLEAN', reviewDecision: noCi ? null : 'APPROVED', headRefName: 'feature', baseRefName: 'main', state: 'OPEN', mergedAt: null, isDraft: false } } } };
|
|
@@ -442,32 +440,6 @@ it("stops on the first suite read when gh lacks --slurp", () => {
|
|
|
442
440
|
expect(pretty.stdout).toContain("action=upgrade GitHub CLI");
|
|
443
441
|
});
|
|
444
442
|
|
|
445
|
-
it("stops on the first read when the session refuses GitHub GraphQL", () => {
|
|
446
|
-
const result = run("graphql-refused", ["--timeout", "2"]);
|
|
447
|
-
expect(result.status).toBe(7);
|
|
448
|
-
expect(JSON.parse(result.stdout.trim())).toMatchObject({
|
|
449
|
-
kind: "BLOCKER",
|
|
450
|
-
blocker: {
|
|
451
|
-
failures: 1,
|
|
452
|
-
failure: {
|
|
453
|
-
kind: "graphql-refused",
|
|
454
|
-
retryable: false,
|
|
455
|
-
detail: expect.stringContaining("refuses GitHub GraphQL"),
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
});
|
|
459
|
-
// gh's own line names the REST API an agent in the session can still use.
|
|
460
|
-
expect(JSON.parse(result.stdout.trim()).blocker.failure.detail).toContain(
|
|
461
|
-
"use the REST API (gh api repos/{owner}/{repo}/...)"
|
|
462
|
-
);
|
|
463
|
-
expect(result.calls.filter((args) => args[1] === "graphql")).toHaveLength(1);
|
|
464
|
-
const pretty = run("graphql-refused", ["--timeout", "2", "--pretty"]);
|
|
465
|
-
expect(pretty.stdout).toContain("action=run watch-pr where gh can reach");
|
|
466
|
-
expect(pretty.stdout).toMatch(
|
|
467
|
-
/^detail=This Claude Code session refuses GitHub GraphQL.*use the REST API/m
|
|
468
|
-
);
|
|
469
|
-
});
|
|
470
|
-
|
|
471
443
|
it("still retries a GraphQL 403 that can clear, such as a secondary rate limit", () => {
|
|
472
444
|
const result = run("graphql-rate-limited", ["--timeout", "2"]);
|
|
473
445
|
expect(result.status).toBe(5);
|