co-maintainer 0.7.1 → 0.7.2
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/package.json +2 -1
- package/dist/src/ai/anthropic.d.ts +1 -1
- package/dist/src/ai/anthropic.js +1 -1
- package/dist/src/ai/batch.d.ts +1 -1
- package/dist/src/ai/batch.js +3 -3
- package/dist/src/ai/copy_rule.d.ts +7 -0
- package/dist/src/ai/copy_rule.js +23 -0
- package/dist/src/ai/estimate.js +3 -3
- package/dist/src/ai/fake.js +2 -1
- package/dist/src/ai/mermaid.js +1 -0
- package/dist/src/ai/oauth/registry.d.ts +1 -1
- package/dist/src/ai/oauth/sign-in-with-chatgpt.d.ts +4 -4
- package/dist/src/ai/oauth/sign-in-with-chatgpt.js +6 -6
- package/dist/src/ai/openai.d.ts +3 -3
- package/dist/src/ai/openai.js +4 -4
- package/dist/src/ai/openrouter.d.ts +1 -1
- package/dist/src/ai/openrouter.js +1 -1
- package/dist/src/ai/pricing.js +1 -1
- package/dist/src/ai/provider.d.ts +2 -0
- package/dist/src/ai/provider.js +8 -2
- package/dist/src/ai/verify.d.ts +1 -1
- package/dist/src/ai/verify.js +1 -1
- package/dist/src/cli/args.js +1 -1
- package/dist/src/cli/command_json.d.ts +1 -1
- package/dist/src/cli/commands/config.d.ts +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/oauth.js +1 -1
- package/dist/src/cli/commands/probe.js +1 -1
- package/dist/src/cli/commands/serve.d.ts +1 -1
- package/dist/src/cli/commands/serve.js +1 -1
- package/dist/src/cli/commands/set.d.ts +1 -1
- package/dist/src/cli/commands/set.js +4 -4
- package/dist/src/cli/commands/view.js +2 -2
- package/dist/src/cli/error.d.ts +1 -1
- package/dist/src/cli/error.js +1 -1
- package/dist/src/cli/prompt.d.ts +2 -2
- package/dist/src/cli/prompt.js +3 -3
- package/dist/src/cli/review_args.js +2 -2
- package/dist/src/cli/review_result.d.ts +3 -4
- package/dist/src/cli/review_result.js +5 -8
- package/dist/src/config.d.ts +11 -11
- package/dist/src/config.js +3 -3
- package/dist/src/github/app.d.ts +1 -1
- package/dist/src/github/app.js +1 -1
- package/dist/src/github/app_manifest.d.ts +1 -1
- package/dist/src/github/app_manifest.js +1 -1
- package/dist/src/github/client.d.ts +1 -1
- package/dist/src/github/client.js +1 -1
- package/dist/src/github/gh.js +2 -2
- package/dist/src/github/jwt.d.ts +1 -1
- package/dist/src/github/jwt.js +1 -1
- package/dist/src/github/oauth.js +2 -2
- package/dist/src/knowledge/facts.js +3 -3
- package/dist/src/knowledge/guide.js +7 -7
- package/dist/src/knowledge/probe.js +1 -1
- package/dist/src/knowledge/skill.js +1 -1
- package/dist/src/knowledge/synthesis.js +7 -7
- package/dist/src/local/carry_over_store.d.ts +1 -1
- package/dist/src/local/carry_over_store.js +1 -1
- package/dist/src/local/codegraph_prepare.js +1 -1
- package/dist/src/local/git_ops.js +1 -1
- package/dist/src/local/review_local.js +3 -3
- package/dist/src/local/review_lock.d.ts +1 -1
- package/dist/src/pr/checkout.d.ts +3 -3
- package/dist/src/pr/checkout.js +7 -7
- package/dist/src/pr/codegraph_tool_args.d.ts +1 -1
- package/dist/src/pr/codegraph_tool_args.js +1 -1
- package/dist/src/pr/findings.js +8 -9
- package/dist/src/pr/findings_json.d.ts +2 -2
- package/dist/src/pr/findings_json.js +1 -1
- package/dist/src/pr/github_revision.js +1 -1
- package/dist/src/pr/review_copy.d.ts +2 -3
- package/dist/src/pr/review_copy.js +2 -3
- package/dist/src/pr/reviewer.d.ts +3 -3
- package/dist/src/pr/reviewer.js +24 -25
- package/dist/src/pr/scope.d.ts +8 -8
- package/dist/src/pr/scope.js +4 -4
- package/dist/src/pr/snapshot.d.ts +2 -2
- package/dist/src/remote/client.js +3 -3
- package/dist/src/remote/schema.d.ts +1 -1
- package/dist/src/remote/schema.js +1 -1
- package/dist/src/remote/server/body.d.ts +1 -1
- package/dist/src/remote/server/body.js +1 -1
- package/dist/src/remote/server/guides.js +1 -1
- package/dist/src/remote/validate.js +1 -1
- package/dist/src/review/blocking.d.ts +3 -3
- package/dist/src/review/blocking.js +2 -2
- package/dist/src/review/carry_over.d.ts +1 -1
- package/dist/src/review/carry_over.js +2 -2
- package/dist/src/review/diagram.js +7 -6
- package/dist/src/review/engine.d.ts +1 -1
- package/dist/src/review/guides.js +1 -1
- package/dist/src/review/system_prompt.d.ts +1 -1
- package/dist/src/review/system_prompt.js +1 -1
- package/dist/src/server/api/jobs.js +2 -2
- package/dist/src/server/api/repos.js +1 -1
- package/dist/src/server/app.js +1 -1
- package/dist/src/server/auth.d.ts +3 -3
- package/dist/src/server/auth.js +9 -4
- package/dist/src/server/http.js +5 -5
- package/dist/src/server/pages/activity.js +1 -1
- package/dist/src/server/pages/add_repo.js +1 -0
- package/dist/src/server/pages/client.d.ts +2 -2
- package/dist/src/server/pages/client.js +2 -2
- package/dist/src/server/pages/home.d.ts +1 -1
- package/dist/src/server/pages/home.js +1 -1
- package/dist/src/server/pages/icons.d.ts +1 -1
- package/dist/src/server/pages/icons.js +1 -1
- package/dist/src/server/pages/layout.d.ts +2 -2
- package/dist/src/server/pages/layout.js +3 -3
- package/dist/src/server/pages/pr.js +2 -0
- package/dist/src/server/pages/rate_limit_waits.js +2 -2
- package/dist/src/server/pages/repo_settings.js +1 -0
- package/dist/src/server/pages/router.js +3 -2
- package/dist/src/server/pages/styles.d.ts +2 -2
- package/dist/src/server/pages/styles.js +2 -2
- package/dist/src/server/pages/ui.d.ts +1 -1
- package/dist/src/server/pages/ui.js +2 -2
- package/dist/src/server/webhook/index.js +1 -1
- package/dist/src/services/clear.d.ts +2 -2
- package/dist/src/services/clear.js +2 -2
- package/dist/src/services/probe.js +1 -1
- package/dist/src/services/remote_review_abort.d.ts +1 -1
- package/dist/src/services/remote_review_abort.js +1 -1
- package/dist/src/services/remote_tokens.js +1 -1
- package/dist/src/services/review.d.ts +3 -5
- package/dist/src/services/review.js +8 -10
- package/dist/src/services/setup.d.ts +2 -2
- package/dist/src/services/setup.js +9 -9
- package/dist/src/services/watch_comments.js +1 -1
- package/dist/src/store/app_db.d.ts +1 -1
- package/dist/src/store/app_db.js +2 -2
- package/dist/src/store/jobs.d.ts +2 -2
- package/dist/src/store/jobs.js +3 -3
- package/dist/src/store/migrations.d.ts +2 -2
- package/dist/src/store/migrations.js +18 -18
- package/dist/src/store/rows.d.ts +2 -2
- package/dist/src/store/rows.js +1 -1
- package/dist/src/store/sessions.d.ts +1 -1
- package/dist/src/store/sessions.js +2 -2
- package/dist/src/store/sqlite.js +2 -2
- package/dist/src/tools/codegraph.d.ts +1 -1
- package/dist/src/tools/codegraph.js +3 -3
- package/dist/src/tools/codegraph_exec.d.ts +1 -1
- package/dist/src/tools/codegraph_exec.js +1 -1
- package/dist/src/types.d.ts +2 -2
- package/dist/src/util/keyed_lock.d.ts +1 -1
- package/dist/src/util/keyed_lock.js +1 -1
- package/dist/src/util/log.js +1 -1
- package/dist/src/util/redact.js +2 -1
- package/dist/src/util/run_summary.d.ts +3 -3
- package/dist/src/util/run_summary.js +3 -3
- package/dist/src/util/runtime.d.ts +4 -4
- package/dist/src/util/runtime.js +5 -5
- package/dist/src/util/time.d.ts +1 -1
- package/dist/src/util/time.js +1 -1
- package/package.json +2 -1
|
@@ -23,7 +23,7 @@ export declare function when(iso: string | null | undefined): string;
|
|
|
23
23
|
export declare function skSlot(kind?: "table" | "block"): string;
|
|
24
24
|
export declare function setNavSource(source: (() => NavCounts) | undefined): void;
|
|
25
25
|
/** The shared shell: left menu, sidefoot user/theme/sign out, mobile topbar and
|
|
26
|
-
* overlay. `active` is the href of the nav item to mark
|
|
26
|
+
* overlay. `active` is the href of the nav item to mark. Pages under Reviews
|
|
27
27
|
* pass `/`. */
|
|
28
28
|
export declare function layout(opts: {
|
|
29
29
|
title: string;
|
|
@@ -42,7 +42,7 @@ export declare function layoutFocus(opts: {
|
|
|
42
42
|
export declare function notFound(username: string, message: string, active?: string): Response;
|
|
43
43
|
export declare function html(body: string, status?: number): Response;
|
|
44
44
|
/** The repository tabs shared by every repo page. They replace the old second
|
|
45
|
-
* sidebar
|
|
45
|
+
* sidebar. The shell owns the only left menu. */
|
|
46
46
|
export declare function repoTabs(fullName: string, on: string): string;
|
|
47
47
|
export declare function empty(title: string, lead: string): string;
|
|
48
48
|
export declare function statusClass(kind: "ok" | "warn" | "err" | "run", label: string): string;
|
|
@@ -219,7 +219,7 @@ const NAV_GROUPS = [
|
|
|
219
219
|
],
|
|
220
220
|
},
|
|
221
221
|
];
|
|
222
|
-
/** Where the menu badges come from. `createApp` registers the real counts
|
|
222
|
+
/** Where the menu badges come from. `createApp` registers the real counts,
|
|
223
223
|
* a page rendered without an app (a unit test of one renderer) has none and
|
|
224
224
|
* shows no badges. */
|
|
225
225
|
let navSource;
|
|
@@ -263,7 +263,7 @@ const PALETTE = `<div class="pal-ov" id="pal-ov" hidden></div>
|
|
|
263
263
|
<div class="list" id="pal-list" role="listbox" aria-label="Results"></div>
|
|
264
264
|
</div>`;
|
|
265
265
|
/** The shared shell: left menu, sidefoot user/theme/sign out, mobile topbar and
|
|
266
|
-
* overlay. `active` is the href of the nav item to mark
|
|
266
|
+
* overlay. `active` is the href of the nav item to mark. Pages under Reviews
|
|
267
267
|
* pass `/`. */
|
|
268
268
|
export function layout(opts) {
|
|
269
269
|
const username = opts.username;
|
|
@@ -327,7 +327,7 @@ export function html(body, status = 200) {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
/** The repository tabs shared by every repo page. They replace the old second
|
|
330
|
-
* sidebar
|
|
330
|
+
* sidebar. The shell owns the only left menu. */
|
|
331
331
|
export function repoTabs(fullName, on) {
|
|
332
332
|
const href = `/repos/${fullName}`;
|
|
333
333
|
const items = [
|
|
@@ -22,6 +22,7 @@ export function renderPr(username, fullName, data) {
|
|
|
22
22
|
items: findings.filter((f) => (f.state ?? "new") === state),
|
|
23
23
|
}))
|
|
24
24
|
.filter((group) => group.items.length > 0);
|
|
25
|
+
// punctuation: code, a CSS declaration list inside an inline style
|
|
25
26
|
return groups
|
|
26
27
|
.map((group) => `<div style="margin-bottom:20px">
|
|
27
28
|
<div class="muted" style="font-size:13px;font-weight:600;margin-bottom:10px;text-transform:uppercase;letter-spacing:.04em">${text(stateLabel(group.state))}</div>
|
|
@@ -39,6 +40,7 @@ export function renderPr(username, fullName, data) {
|
|
|
39
40
|
</div>`)
|
|
40
41
|
.join("");
|
|
41
42
|
};
|
|
43
|
+
// punctuation: code, a CSS declaration list inside an inline style
|
|
42
44
|
const findingsBlock = data.reviews.length === 0
|
|
43
45
|
? empty("No findings", "Run a review to post findings on this pull request.")
|
|
44
46
|
: data.reviews
|
|
@@ -35,9 +35,9 @@ function groupSentence(group) {
|
|
|
35
35
|
const times = count === 1 ? "once" : count === 2 ? "twice" : `${count} times`;
|
|
36
36
|
if (group.durations.length === 1) {
|
|
37
37
|
const each = count === 1 ? "" : " each time";
|
|
38
|
-
return `${label} asked to slow down ${times}
|
|
38
|
+
return `${label} asked to slow down ${times}, waited ${secondsLabel(group.durations[0])}${each}`;
|
|
39
39
|
}
|
|
40
|
-
return `${label} asked to slow down ${times}
|
|
40
|
+
return `${label} asked to slow down ${times}, waited ${joinList(group.durations.map(secondsLabel))}`;
|
|
41
41
|
}
|
|
42
42
|
export function rateLimitWaitSummaryLine(summary) {
|
|
43
43
|
const waits = `${summary.count} wait${summary.count === 1 ? "" : "s"}`;
|
|
@@ -193,6 +193,7 @@ export function renderRepoSettings(username, repo, config, probeReport) {
|
|
|
193
193
|
title: `Settings · ${name}`,
|
|
194
194
|
username,
|
|
195
195
|
active: "/",
|
|
196
|
+
// punctuation: code, a script the page runs in the browser
|
|
196
197
|
body: `<div class="wrap">
|
|
197
198
|
${repoTabs(name, "settings")}
|
|
198
199
|
<div>
|
|
@@ -229,6 +229,7 @@ export async function handlePageRequest(request, deps, ip) {
|
|
|
229
229
|
status: 200,
|
|
230
230
|
headers: {
|
|
231
231
|
"content-type": "text/markdown; charset=utf-8",
|
|
232
|
+
// punctuation: code, the Content-Disposition header separates its parts with a semicolon
|
|
232
233
|
"content-disposition": `attachment; filename="${doc.file}"`,
|
|
233
234
|
},
|
|
234
235
|
});
|
|
@@ -353,7 +354,7 @@ async function sessionOf(request) {
|
|
|
353
354
|
function safeNext(value) {
|
|
354
355
|
// A path-only redirect. It must start with a single "/", and may not hold a
|
|
355
356
|
// backslash (browsers read "/\host" as "//host") or a control character (a
|
|
356
|
-
// tab or newline is stripped, turning "/\t/host" into "//host")
|
|
357
|
+
// tab or newline is stripped, turning "/\t/host" into "//host"), both would
|
|
357
358
|
// send the browser to another origin.
|
|
358
359
|
if (!value || !value.startsWith("/") || value.startsWith("//"))
|
|
359
360
|
return "/";
|
|
@@ -486,7 +487,7 @@ async function handleLoginForm(request, deps, ip, auth) {
|
|
|
486
487
|
});
|
|
487
488
|
}
|
|
488
489
|
/** `state` round-trips through an HttpOnly cookie set by `/auth/github`
|
|
489
|
-
* (see `oauthStateCookieHeader`), not server memory
|
|
490
|
+
* (see `oauthStateCookieHeader`), not server memory, comparing it against
|
|
490
491
|
* the query param is what stops a forged callback from creating a session. */
|
|
491
492
|
async function handleGithubCallback(request, url, githubOAuth, deps) {
|
|
492
493
|
const clearState = clearOauthStateCookieHeader(Boolean(deps.secureCookie));
|