@prestyj/cli 5.16.1 → 5.17.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 +2 -2
- package/dist/app-sidecar.js +27 -7
- package/dist/app-sidecar.js.map +1 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-session.d.ts +34 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +356 -29
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-providers.d.ts.map +1 -1
- package/dist/core/auth-providers.js +3 -3
- package/dist/core/auth-providers.js.map +1 -1
- package/dist/core/autopilot-cycle.d.ts +7 -3
- package/dist/core/autopilot-cycle.d.ts.map +1 -1
- package/dist/core/autopilot-cycle.js +43 -6
- package/dist/core/autopilot-cycle.js.map +1 -1
- package/dist/core/autopilot-verdict.d.ts +2 -0
- package/dist/core/autopilot-verdict.d.ts.map +1 -1
- package/dist/core/autopilot-verdict.js +25 -0
- package/dist/core/autopilot-verdict.js.map +1 -1
- package/dist/core/compaction/compactor.d.ts.map +1 -1
- package/dist/core/compaction/compactor.js +1 -1
- package/dist/core/compaction/compactor.js.map +1 -1
- package/dist/core/event-bus.d.ts +1 -0
- package/dist/core/event-bus.d.ts.map +1 -1
- package/dist/core/event-bus.js.map +1 -1
- package/dist/core/fast-apply-benchmark.d.ts +1 -1
- package/dist/core/fast-apply-benchmark.js +2 -2
- package/dist/core/fast-apply-benchmark.js.map +1 -1
- package/dist/core/ideal-review-subagent.d.ts +43 -0
- package/dist/core/ideal-review-subagent.d.ts.map +1 -0
- package/dist/core/ideal-review-subagent.js +95 -0
- package/dist/core/ideal-review-subagent.js.map +1 -0
- package/dist/core/ideal-review.d.ts.map +1 -1
- package/dist/core/ideal-review.js +18 -5
- package/dist/core/ideal-review.js.map +1 -1
- package/dist/core/loop-breaker.d.ts.map +1 -1
- package/dist/core/loop-breaker.js +10 -9
- package/dist/core/loop-breaker.js.map +1 -1
- package/dist/core/nolan-prompt.js +32 -14
- package/dist/core/nolan-prompt.js.map +1 -1
- package/dist/core/persistent-shell.d.ts.map +1 -1
- package/dist/core/persistent-shell.js +3 -1
- package/dist/core/persistent-shell.js.map +1 -1
- package/dist/core/process-manager.d.ts +14 -0
- package/dist/core/process-manager.d.ts.map +1 -1
- package/dist/core/process-manager.js +49 -0
- package/dist/core/process-manager.js.map +1 -1
- package/dist/core/semantic-loop-check.d.ts +59 -0
- package/dist/core/semantic-loop-check.d.ts.map +1 -0
- package/dist/core/semantic-loop-check.js +103 -0
- package/dist/core/semantic-loop-check.js.map +1 -0
- package/dist/core/semantic-search-benchmark.d.ts +1 -1
- package/dist/core/semantic-search-benchmark.js +2 -2
- package/dist/core/semantic-search-benchmark.js.map +1 -1
- package/dist/core/session-manager.d.ts +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +18 -2
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/shell.d.ts.map +1 -1
- package/dist/core/shell.js +6 -3
- package/dist/core/shell.js.map +1 -1
- package/dist/core/subagent-manager.d.ts +7 -1
- package/dist/core/subagent-manager.d.ts.map +1 -1
- package/dist/core/subagent-manager.js +15 -5
- package/dist/core/subagent-manager.js.map +1 -1
- package/dist/core/subagent-policy.js +1 -1
- package/dist/core/subagent-policy.js.map +1 -1
- package/dist/core/verification-evidence.d.ts +7 -1
- package/dist/core/verification-evidence.d.ts.map +1 -1
- package/dist/core/verification-evidence.js +70 -20
- package/dist/core/verification-evidence.js.map +1 -1
- package/dist/core/verification-gate.d.ts +58 -18
- package/dist/core/verification-gate.d.ts.map +1 -1
- package/dist/core/verification-gate.js +256 -23
- package/dist/core/verification-gate.js.map +1 -1
- package/dist/system-prompt.d.ts.map +1 -1
- package/dist/system-prompt.js +20 -13
- package/dist/system-prompt.js.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash.js +28 -3
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/prompt-hints.d.ts.map +1 -1
- package/dist/tools/prompt-hints.js +3 -2
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/read-only-bash.d.ts +10 -0
- package/dist/tools/read-only-bash.d.ts.map +1 -1
- package/dist/tools/read-only-bash.js +23 -0
- package/dist/tools/read-only-bash.js.map +1 -1
- package/dist/tools/steroids.d.ts +1 -3
- package/dist/tools/steroids.d.ts.map +1 -1
- package/dist/tools/steroids.js +7 -6
- package/dist/tools/steroids.js.map +1 -1
- package/dist/tools/subagent-control.d.ts.map +1 -1
- package/dist/tools/subagent-control.js +2 -1
- package/dist/tools/subagent-control.js.map +1 -1
- package/dist/tools/task-output.d.ts +2 -1
- package/dist/tools/task-output.d.ts.map +1 -1
- package/dist/tools/task-output.js +25 -3
- package/dist/tools/task-output.js.map +1 -1
- package/dist/ui/components/Footer.js +1 -1
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/utils/github-ci.d.ts +19 -0
- package/dist/utils/github-ci.d.ts.map +1 -0
- package/dist/utils/github-ci.js +137 -0
- package/dist/utils/github-ci.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Mirrored by the desktop bridge's GitHubCI type. Never verification evidence. */
|
|
2
|
+
export interface GitHubCI {
|
|
3
|
+
key: string;
|
|
4
|
+
url: string;
|
|
5
|
+
total: number;
|
|
6
|
+
completed: number;
|
|
7
|
+
failed: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
conclusion: "success" | "failure" | "cancelled" | null;
|
|
10
|
+
stale?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Exact HEAD only, latest run per workflow, latest attempt's jobs, across all pages. */
|
|
13
|
+
export declare function getGitHubCI(slug: string, sha: string, signal?: AbortSignal): Promise<GitHubCI | null>;
|
|
14
|
+
/** One in-flight poll per session, slower while idle, stopped with the session. */
|
|
15
|
+
export declare function startGitHubCIPoll(cwd: string, onChange: (ci: GitHubCI | null) => void): {
|
|
16
|
+
refresh: () => Promise<void>;
|
|
17
|
+
stop: () => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=github-ci.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-ci.d.ts","sourceRoot":"","sources":["../../src/utils/github-ci.ts"],"names":[],"mappings":"AAOA,mFAAmF;AACnF,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AA4BD,yFAAyF;AACzF,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CA8C1B;AAUD,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI;mBAc1D,OAAO,CAAC,IAAI,CAAC;gBAkC3B,IAAI;EAMjB"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { execFile } from "node:child_process";
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { getGitHubRepoSlug } from "./github.js";
|
|
5
|
+
const exec = promisify(execFile);
|
|
6
|
+
const resultSchema = z.object({
|
|
7
|
+
id: z.number().int().positive(),
|
|
8
|
+
status: z.string(),
|
|
9
|
+
conclusion: z.string().nullable(),
|
|
10
|
+
});
|
|
11
|
+
const runSchema = resultSchema.extend({
|
|
12
|
+
workflow_id: z.number().int().positive(),
|
|
13
|
+
run_attempt: z.number().int().positive(),
|
|
14
|
+
head_sha: z.string(),
|
|
15
|
+
});
|
|
16
|
+
const runPagesSchema = z.array(z.object({ workflow_runs: z.array(runSchema) }));
|
|
17
|
+
const jobPagesSchema = z.array(z.object({ jobs: z.array(resultSchema) }));
|
|
18
|
+
const nonFailures = new Set(["success", "skipped", "neutral", "cancelled"]);
|
|
19
|
+
const failed = (result) => result.status === "completed" &&
|
|
20
|
+
(result.conclusion === null || !nonFailures.has(result.conclusion));
|
|
21
|
+
async function api(endpoint, signal) {
|
|
22
|
+
const { stdout } = await exec("gh", ["api", "--hostname", "github.com", endpoint, "--paginate", "--slurp"], { timeout: 10_000, maxBuffer: 2 * 1024 * 1024, signal });
|
|
23
|
+
return JSON.parse(stdout);
|
|
24
|
+
}
|
|
25
|
+
/** Exact HEAD only, latest run per workflow, latest attempt's jobs, across all pages. */
|
|
26
|
+
export async function getGitHubCI(slug, sha, signal) {
|
|
27
|
+
if (!/^[\w.-]+\/[\w.-]+$/.test(slug) ||
|
|
28
|
+
slug.split("/").some((part) => part === "." || part === "..") ||
|
|
29
|
+
!/^[a-f0-9]{40,64}$/i.test(sha)) {
|
|
30
|
+
throw new Error("Invalid GitHub CI repository or commit");
|
|
31
|
+
}
|
|
32
|
+
const pages = runPagesSchema.parse(await api(`repos/${slug}/actions/runs?head_sha=${sha}&per_page=100`, signal));
|
|
33
|
+
const latest = new Map();
|
|
34
|
+
for (const run of pages.flatMap((page) => page.workflow_runs)) {
|
|
35
|
+
if (run.head_sha !== sha)
|
|
36
|
+
continue;
|
|
37
|
+
const previous = latest.get(run.workflow_id);
|
|
38
|
+
if (!previous || run.id > previous.id)
|
|
39
|
+
latest.set(run.workflow_id, run);
|
|
40
|
+
}
|
|
41
|
+
const runs = [...latest.values()].sort((a, b) => a.id - b.id);
|
|
42
|
+
if (!runs.length)
|
|
43
|
+
return null;
|
|
44
|
+
// simplification: cap fan-out at 20 workflows; larger repos need a shared request cache.
|
|
45
|
+
if (runs.length > 20)
|
|
46
|
+
throw new Error("Too many workflows for title-bar polling");
|
|
47
|
+
const jobs = [];
|
|
48
|
+
// Sequential requests bound subprocess concurrency even on repositories with many workflows.
|
|
49
|
+
for (const run of runs) {
|
|
50
|
+
const pages = jobPagesSchema.parse(await api(`repos/${slug}/actions/runs/${run.id}/attempts/${run.run_attempt}/jobs?per_page=100`, signal));
|
|
51
|
+
jobs.push(...pages.flatMap((page) => page.jobs));
|
|
52
|
+
}
|
|
53
|
+
const active = runs.some((run) => run.status !== "completed");
|
|
54
|
+
const failedJobs = jobs.filter(failed).length;
|
|
55
|
+
const hasFailure = failedJobs > 0 || runs.some(failed);
|
|
56
|
+
const allPassed = runs.every((run) => run.conclusion === "success");
|
|
57
|
+
const target = runs.find(failed) ?? runs.find((run) => run.status !== "completed") ?? runs[0];
|
|
58
|
+
return {
|
|
59
|
+
key: `${slug}:${sha}:${runs.map((run) => `${run.id}.${run.run_attempt}`).join(",")}`,
|
|
60
|
+
url: `https://github.com/${slug}/actions/runs/${target.id}`,
|
|
61
|
+
total: jobs.length,
|
|
62
|
+
completed: jobs.filter((job) => job.status === "completed").length,
|
|
63
|
+
failed: failedJobs || (hasFailure ? 1 : 0),
|
|
64
|
+
active,
|
|
65
|
+
conclusion: active ? null : hasFailure ? "failure" : allPassed ? "success" : "cancelled",
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
async function context(cwd) {
|
|
69
|
+
const [slug, head] = await Promise.all([
|
|
70
|
+
getGitHubRepoSlug(cwd),
|
|
71
|
+
exec("git", ["rev-parse", "--verify", "HEAD"], { cwd, timeout: 2000 }).catch(() => null),
|
|
72
|
+
]);
|
|
73
|
+
return slug && head ? { slug, sha: head.stdout.trim() } : null;
|
|
74
|
+
}
|
|
75
|
+
/** One in-flight poll per session, slower while idle, stopped with the session. */
|
|
76
|
+
export function startGitHubCIPoll(cwd, onChange) {
|
|
77
|
+
const abort = new AbortController();
|
|
78
|
+
let stopped = false;
|
|
79
|
+
let busy = false;
|
|
80
|
+
let timer;
|
|
81
|
+
let last = null;
|
|
82
|
+
let lastContext = "";
|
|
83
|
+
const publish = (next) => {
|
|
84
|
+
if (stopped)
|
|
85
|
+
return;
|
|
86
|
+
if (JSON.stringify(next) !== JSON.stringify(last)) {
|
|
87
|
+
last = next;
|
|
88
|
+
onChange(next);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const refresh = async () => {
|
|
92
|
+
if (stopped || busy)
|
|
93
|
+
return;
|
|
94
|
+
busy = true;
|
|
95
|
+
clearTimeout(timer);
|
|
96
|
+
try {
|
|
97
|
+
const current = await context(cwd);
|
|
98
|
+
const key = current ? `${current.slug}:${current.sha}` : "";
|
|
99
|
+
if (key !== lastContext) {
|
|
100
|
+
lastContext = key;
|
|
101
|
+
publish(null);
|
|
102
|
+
}
|
|
103
|
+
if (!current || stopped)
|
|
104
|
+
return;
|
|
105
|
+
const next = await getGitHubCI(current.slug, current.sha, abort.signal);
|
|
106
|
+
// A checkout/commit during a network request must never paint the previous HEAD green.
|
|
107
|
+
const now = await context(cwd);
|
|
108
|
+
if (now?.sha !== current.sha || now?.slug !== current.slug) {
|
|
109
|
+
publish(null);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
publish(next);
|
|
113
|
+
}
|
|
114
|
+
catch {
|
|
115
|
+
// Never turn missing auth, offline, malformed output, or rate limits into a pass.
|
|
116
|
+
if (last)
|
|
117
|
+
publish({ ...last, stale: true });
|
|
118
|
+
}
|
|
119
|
+
finally {
|
|
120
|
+
busy = false;
|
|
121
|
+
if (!stopped) {
|
|
122
|
+
timer = setTimeout(() => void refresh(), last?.active && !last.stale ? 15_000 : 60_000);
|
|
123
|
+
timer.unref?.();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
void refresh();
|
|
128
|
+
return {
|
|
129
|
+
refresh,
|
|
130
|
+
stop: () => {
|
|
131
|
+
stopped = true;
|
|
132
|
+
abort.abort();
|
|
133
|
+
clearTimeout(timer);
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=github-ci.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-ci.js","sourceRoot":"","sources":["../../src/utils/github-ci.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAcjC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AACH,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AACH,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;AAChF,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,C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,CAAC,KAAK,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;gBACxF,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;YAClB,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IACF,KAAK,OAAO,EAAE,CAAC;IACf,OAAO;QACL,OAAO;QACP,IAAI,EAAE,GAAS,EAAE;YACf,OAAO,GAAG,IAAI,CAAC;YACf,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestyj/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI coding agent with OAuth authentication for Anthropic, OpenAI, and Gemini",
|
|
6
6
|
"license": "MIT",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
"typescript-language-server": "^5.3.0",
|
|
115
115
|
"wrap-ansi": "^10.0.0",
|
|
116
116
|
"zod": "^4.4.3",
|
|
117
|
-
"@prestyj/
|
|
118
|
-
"@prestyj/
|
|
119
|
-
"@prestyj/
|
|
120
|
-
"@prestyj/
|
|
117
|
+
"@prestyj/ai": "5.17.0",
|
|
118
|
+
"@prestyj/agent": "5.17.0",
|
|
119
|
+
"@prestyj/pixel": "4.3.101",
|
|
120
|
+
"@prestyj/core": "5.17.0"
|
|
121
121
|
},
|
|
122
122
|
"optionalDependencies": {
|
|
123
123
|
"@huggingface/transformers": "^3.6.0",
|