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.
Files changed (157) hide show
  1. package/dist/package.json +2 -1
  2. package/dist/src/ai/anthropic.d.ts +1 -1
  3. package/dist/src/ai/anthropic.js +1 -1
  4. package/dist/src/ai/batch.d.ts +1 -1
  5. package/dist/src/ai/batch.js +3 -3
  6. package/dist/src/ai/copy_rule.d.ts +7 -0
  7. package/dist/src/ai/copy_rule.js +23 -0
  8. package/dist/src/ai/estimate.js +3 -3
  9. package/dist/src/ai/fake.js +2 -1
  10. package/dist/src/ai/mermaid.js +1 -0
  11. package/dist/src/ai/oauth/registry.d.ts +1 -1
  12. package/dist/src/ai/oauth/sign-in-with-chatgpt.d.ts +4 -4
  13. package/dist/src/ai/oauth/sign-in-with-chatgpt.js +6 -6
  14. package/dist/src/ai/openai.d.ts +3 -3
  15. package/dist/src/ai/openai.js +4 -4
  16. package/dist/src/ai/openrouter.d.ts +1 -1
  17. package/dist/src/ai/openrouter.js +1 -1
  18. package/dist/src/ai/pricing.js +1 -1
  19. package/dist/src/ai/provider.d.ts +2 -0
  20. package/dist/src/ai/provider.js +8 -2
  21. package/dist/src/ai/verify.d.ts +1 -1
  22. package/dist/src/ai/verify.js +1 -1
  23. package/dist/src/cli/args.js +1 -1
  24. package/dist/src/cli/command_json.d.ts +1 -1
  25. package/dist/src/cli/commands/config.d.ts +1 -1
  26. package/dist/src/cli/commands/config.js +1 -1
  27. package/dist/src/cli/commands/oauth.js +1 -1
  28. package/dist/src/cli/commands/probe.js +1 -1
  29. package/dist/src/cli/commands/serve.d.ts +1 -1
  30. package/dist/src/cli/commands/serve.js +1 -1
  31. package/dist/src/cli/commands/set.d.ts +1 -1
  32. package/dist/src/cli/commands/set.js +4 -4
  33. package/dist/src/cli/commands/view.js +2 -2
  34. package/dist/src/cli/error.d.ts +1 -1
  35. package/dist/src/cli/error.js +1 -1
  36. package/dist/src/cli/prompt.d.ts +2 -2
  37. package/dist/src/cli/prompt.js +3 -3
  38. package/dist/src/cli/review_args.js +2 -2
  39. package/dist/src/cli/review_result.d.ts +3 -4
  40. package/dist/src/cli/review_result.js +5 -8
  41. package/dist/src/config.d.ts +11 -11
  42. package/dist/src/config.js +3 -3
  43. package/dist/src/github/app.d.ts +1 -1
  44. package/dist/src/github/app.js +1 -1
  45. package/dist/src/github/app_manifest.d.ts +1 -1
  46. package/dist/src/github/app_manifest.js +1 -1
  47. package/dist/src/github/client.d.ts +1 -1
  48. package/dist/src/github/client.js +1 -1
  49. package/dist/src/github/gh.js +2 -2
  50. package/dist/src/github/jwt.d.ts +1 -1
  51. package/dist/src/github/jwt.js +1 -1
  52. package/dist/src/github/oauth.js +2 -2
  53. package/dist/src/knowledge/facts.js +3 -3
  54. package/dist/src/knowledge/guide.js +7 -7
  55. package/dist/src/knowledge/probe.js +1 -1
  56. package/dist/src/knowledge/skill.js +1 -1
  57. package/dist/src/knowledge/synthesis.js +7 -7
  58. package/dist/src/local/carry_over_store.d.ts +1 -1
  59. package/dist/src/local/carry_over_store.js +1 -1
  60. package/dist/src/local/codegraph_prepare.js +1 -1
  61. package/dist/src/local/git_ops.js +1 -1
  62. package/dist/src/local/review_local.js +3 -3
  63. package/dist/src/local/review_lock.d.ts +1 -1
  64. package/dist/src/pr/checkout.d.ts +3 -3
  65. package/dist/src/pr/checkout.js +7 -7
  66. package/dist/src/pr/codegraph_tool_args.d.ts +1 -1
  67. package/dist/src/pr/codegraph_tool_args.js +1 -1
  68. package/dist/src/pr/findings.js +8 -9
  69. package/dist/src/pr/findings_json.d.ts +2 -2
  70. package/dist/src/pr/findings_json.js +1 -1
  71. package/dist/src/pr/github_revision.js +1 -1
  72. package/dist/src/pr/review_copy.d.ts +2 -3
  73. package/dist/src/pr/review_copy.js +2 -3
  74. package/dist/src/pr/reviewer.d.ts +3 -3
  75. package/dist/src/pr/reviewer.js +24 -25
  76. package/dist/src/pr/scope.d.ts +8 -8
  77. package/dist/src/pr/scope.js +4 -4
  78. package/dist/src/pr/snapshot.d.ts +2 -2
  79. package/dist/src/remote/client.js +3 -3
  80. package/dist/src/remote/schema.d.ts +1 -1
  81. package/dist/src/remote/schema.js +1 -1
  82. package/dist/src/remote/server/body.d.ts +1 -1
  83. package/dist/src/remote/server/body.js +1 -1
  84. package/dist/src/remote/server/guides.js +1 -1
  85. package/dist/src/remote/validate.js +1 -1
  86. package/dist/src/review/blocking.d.ts +3 -3
  87. package/dist/src/review/blocking.js +2 -2
  88. package/dist/src/review/carry_over.d.ts +1 -1
  89. package/dist/src/review/carry_over.js +2 -2
  90. package/dist/src/review/diagram.js +7 -6
  91. package/dist/src/review/engine.d.ts +1 -1
  92. package/dist/src/review/guides.js +1 -1
  93. package/dist/src/review/system_prompt.d.ts +1 -1
  94. package/dist/src/review/system_prompt.js +1 -1
  95. package/dist/src/server/api/jobs.js +2 -2
  96. package/dist/src/server/api/repos.js +1 -1
  97. package/dist/src/server/app.js +1 -1
  98. package/dist/src/server/auth.d.ts +3 -3
  99. package/dist/src/server/auth.js +9 -4
  100. package/dist/src/server/http.js +5 -5
  101. package/dist/src/server/pages/activity.js +1 -1
  102. package/dist/src/server/pages/add_repo.js +1 -0
  103. package/dist/src/server/pages/client.d.ts +2 -2
  104. package/dist/src/server/pages/client.js +2 -2
  105. package/dist/src/server/pages/home.d.ts +1 -1
  106. package/dist/src/server/pages/home.js +1 -1
  107. package/dist/src/server/pages/icons.d.ts +1 -1
  108. package/dist/src/server/pages/icons.js +1 -1
  109. package/dist/src/server/pages/layout.d.ts +2 -2
  110. package/dist/src/server/pages/layout.js +3 -3
  111. package/dist/src/server/pages/pr.js +2 -0
  112. package/dist/src/server/pages/rate_limit_waits.js +2 -2
  113. package/dist/src/server/pages/repo_settings.js +1 -0
  114. package/dist/src/server/pages/router.js +3 -2
  115. package/dist/src/server/pages/styles.d.ts +2 -2
  116. package/dist/src/server/pages/styles.js +2 -2
  117. package/dist/src/server/pages/ui.d.ts +1 -1
  118. package/dist/src/server/pages/ui.js +2 -2
  119. package/dist/src/server/webhook/index.js +1 -1
  120. package/dist/src/services/clear.d.ts +2 -2
  121. package/dist/src/services/clear.js +2 -2
  122. package/dist/src/services/probe.js +1 -1
  123. package/dist/src/services/remote_review_abort.d.ts +1 -1
  124. package/dist/src/services/remote_review_abort.js +1 -1
  125. package/dist/src/services/remote_tokens.js +1 -1
  126. package/dist/src/services/review.d.ts +3 -5
  127. package/dist/src/services/review.js +8 -10
  128. package/dist/src/services/setup.d.ts +2 -2
  129. package/dist/src/services/setup.js +9 -9
  130. package/dist/src/services/watch_comments.js +1 -1
  131. package/dist/src/store/app_db.d.ts +1 -1
  132. package/dist/src/store/app_db.js +2 -2
  133. package/dist/src/store/jobs.d.ts +2 -2
  134. package/dist/src/store/jobs.js +3 -3
  135. package/dist/src/store/migrations.d.ts +2 -2
  136. package/dist/src/store/migrations.js +18 -18
  137. package/dist/src/store/rows.d.ts +2 -2
  138. package/dist/src/store/rows.js +1 -1
  139. package/dist/src/store/sessions.d.ts +1 -1
  140. package/dist/src/store/sessions.js +2 -2
  141. package/dist/src/store/sqlite.js +2 -2
  142. package/dist/src/tools/codegraph.d.ts +1 -1
  143. package/dist/src/tools/codegraph.js +3 -3
  144. package/dist/src/tools/codegraph_exec.d.ts +1 -1
  145. package/dist/src/tools/codegraph_exec.js +1 -1
  146. package/dist/src/types.d.ts +2 -2
  147. package/dist/src/util/keyed_lock.d.ts +1 -1
  148. package/dist/src/util/keyed_lock.js +1 -1
  149. package/dist/src/util/log.js +1 -1
  150. package/dist/src/util/redact.js +2 -1
  151. package/dist/src/util/run_summary.d.ts +3 -3
  152. package/dist/src/util/run_summary.js +3 -3
  153. package/dist/src/util/runtime.d.ts +4 -4
  154. package/dist/src/util/runtime.js +5 -5
  155. package/dist/src/util/time.d.ts +1 -1
  156. package/dist/src/util/time.js +1 -1
  157. 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; pages under Reviews
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; the shell owns the only left menu. */
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; pages under Reviews
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; the shell owns the only left menu. */
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}; waited ${secondsLabel(group.durations[0])}${each}`;
38
+ return `${label} asked to slow down ${times}, waited ${secondsLabel(group.durations[0])}${each}`;
39
39
  }
40
- return `${label} asked to slow down ${times}; waited ${joinList(group.durations.map(secondsLabel))}`;
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") — both would
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 — comparing it against
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));