@staff0rd/assist 0.835.0 → 0.837.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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.835.0",
9
+ version: "0.837.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -12608,17 +12608,6 @@ async function fileContent(req, res) {
12608
12608
  }
12609
12609
  }
12610
12610
 
12611
- // src/commands/sessions/shared/requestClaudeSession.ts
12612
- function requestClaudeSession(prompt, cwd, options2) {
12613
- return requestSession({
12614
- type: "create",
12615
- prompt,
12616
- cwd,
12617
- inPlace: options2?.inPlace === true,
12618
- launchedFrom: options2?.launchedFrom ?? process.env.ASSIST_SESSION_ID
12619
- });
12620
- }
12621
-
12622
12611
  // src/commands/sessions/web/readJsonBody.ts
12623
12612
  async function readJsonBody(req) {
12624
12613
  const chunks = [];
@@ -12637,6 +12626,60 @@ function allowExtensionOrigin(req, res) {
12637
12626
  res.setHeader("Vary", "Origin");
12638
12627
  }
12639
12628
 
12629
+ // src/commands/sessions/web/fromGithub/launchFromGithub.ts
12630
+ async function launchFromGithub(req, res, plan2, launch) {
12631
+ allowExtensionOrigin(req, res);
12632
+ let body;
12633
+ try {
12634
+ body = await readJsonBody(req);
12635
+ } catch {
12636
+ respondJson(res, 400, { error: "Invalid JSON body" });
12637
+ return;
12638
+ }
12639
+ const planned = plan2(body, expandTilde2(loadConfig().clone.baseDir));
12640
+ if (!planned.ok) {
12641
+ respondJson(res, planned.status, { error: planned.error });
12642
+ return;
12643
+ }
12644
+ try {
12645
+ const sessionId = await launch(planned);
12646
+ respondJson(res, 200, { sessionId, cwd: planned.cwd });
12647
+ } catch (error) {
12648
+ respondJson(res, 500, {
12649
+ error: error instanceof Error ? error.message : String(error)
12650
+ });
12651
+ }
12652
+ }
12653
+
12654
+ // src/shared/githubPullNumber.ts
12655
+ var PULL_PATH = /^\/[^/]+\/[^/]+\/pull\/(\d+)(?:\/|$)/;
12656
+ function githubPullNumber(url) {
12657
+ let parsed;
12658
+ try {
12659
+ parsed = new URL(url);
12660
+ } catch {
12661
+ return void 0;
12662
+ }
12663
+ return PULL_PATH.exec(parsed.pathname)?.[1];
12664
+ }
12665
+
12666
+ // src/shared/reviewButtonModes.ts
12667
+ var reviewButtonModes = [
12668
+ { label: "Review", args: ["review"] },
12669
+ { label: "Review & refine", args: ["review", "--refine"] },
12670
+ { label: "Review & apply", args: ["review", "--apply"] },
12671
+ { label: "Review & post", args: ["review", "--no-prompt", "--submit"] },
12672
+ { label: "High-level review", args: ["review", "--high-level"] }
12673
+ ];
12674
+
12675
+ // src/shared/isReviewModeArgs.ts
12676
+ function isReviewModeArgs(args) {
12677
+ if (!Array.isArray(args)) return false;
12678
+ return reviewButtonModes.some(
12679
+ (mode) => mode.args.length === args.length && mode.args.every((arg, index2) => arg === args[index2])
12680
+ );
12681
+ }
12682
+
12640
12683
  // src/commands/sessions/web/fromGithub/parseGithubOrigin.ts
12641
12684
  function parseGithubOrigin(url) {
12642
12685
  let parsed;
@@ -12652,12 +12695,12 @@ function parseGithubOrigin(url) {
12652
12695
  return `github.com/${owner}/${repo.replace(/\.git$/i, "")}`;
12653
12696
  }
12654
12697
 
12655
- // src/commands/sessions/web/fromGithub/planGithubSession.ts
12656
- function planGithubSession(body, baseDir) {
12657
- const { url, instructions } = body ?? {};
12698
+ // src/commands/sessions/web/fromGithub/resolveGithubClone.ts
12699
+ function resolveGithubClone(url, baseDir) {
12658
12700
  if (typeof url !== "string" || !url.trim())
12659
12701
  return { ok: false, status: 400, error: "Missing url" };
12660
- const origin = parseGithubOrigin(url.trim());
12702
+ const trimmed = url.trim();
12703
+ const origin = parseGithubOrigin(trimmed);
12661
12704
  if (!origin)
12662
12705
  return { ok: false, status: 400, error: `Not a GitHub repo URL: ${url}` };
12663
12706
  const { cwd } = resolveRepoLocation(origin, void 0, baseDir);
@@ -12667,36 +12710,63 @@ function planGithubSession(body, baseDir) {
12667
12710
  status: 404,
12668
12711
  error: `${origin.replace("github.com/", "")} is not cloned under ${baseDir}`
12669
12712
  };
12713
+ return { ok: true, url: trimmed, cwd };
12714
+ }
12715
+
12716
+ // src/commands/sessions/web/fromGithub/planGithubReview.ts
12717
+ function planGithubReview(body, baseDir) {
12718
+ const { url, args } = body ?? {};
12719
+ if (!isReviewModeArgs(args))
12720
+ return { ok: false, status: 400, error: "Unsupported assist args" };
12721
+ const prNumber = typeof url === "string" ? githubPullNumber(url.trim()) : "";
12722
+ if (!prNumber)
12723
+ return { ok: false, status: 400, error: `Not a GitHub PR URL: ${url}` };
12724
+ const clone = resolveGithubClone(url, baseDir);
12725
+ if (!clone.ok) return clone;
12726
+ return { ok: true, cwd: clone.cwd, assistArgs: [...args, prNumber] };
12727
+ }
12728
+
12729
+ // src/commands/sessions/web/fromGithub/reviewFromGithub.ts
12730
+ function reviewFromGithub(req, res) {
12731
+ return launchFromGithub(
12732
+ req,
12733
+ res,
12734
+ planGithubReview,
12735
+ (plan2) => requestAssistSession(plan2.assistArgs, plan2.cwd)
12736
+ );
12737
+ }
12738
+
12739
+ // src/commands/sessions/shared/requestClaudeSession.ts
12740
+ function requestClaudeSession(prompt, cwd, options2) {
12741
+ return requestSession({
12742
+ type: "create",
12743
+ prompt,
12744
+ cwd,
12745
+ inPlace: options2?.inPlace === true,
12746
+ launchedFrom: options2?.launchedFrom ?? process.env.ASSIST_SESSION_ID
12747
+ });
12748
+ }
12749
+
12750
+ // src/commands/sessions/web/fromGithub/planGithubSession.ts
12751
+ function planGithubSession(body, baseDir) {
12752
+ const { url, instructions } = body ?? {};
12753
+ const clone = resolveGithubClone(url, baseDir);
12754
+ if (!clone.ok) return clone;
12670
12755
  const extra = typeof instructions === "string" ? instructions.trim() : "";
12671
- const prompt = extra ? `${url.trim()}
12756
+ const prompt = extra ? `${clone.url}
12672
12757
 
12673
- ${extra}` : url.trim();
12674
- return { ok: true, cwd, prompt };
12758
+ ${extra}` : clone.url;
12759
+ return { ok: true, cwd: clone.cwd, prompt };
12675
12760
  }
12676
12761
 
12677
12762
  // src/commands/sessions/web/fromGithub/sessionFromGithub.ts
12678
- async function sessionFromGithub(req, res) {
12679
- allowExtensionOrigin(req, res);
12680
- let body;
12681
- try {
12682
- body = await readJsonBody(req);
12683
- } catch {
12684
- respondJson(res, 400, { error: "Invalid JSON body" });
12685
- return;
12686
- }
12687
- const plan2 = planGithubSession(body, expandTilde2(loadConfig().clone.baseDir));
12688
- if (!plan2.ok) {
12689
- respondJson(res, plan2.status, { error: plan2.error });
12690
- return;
12691
- }
12692
- try {
12693
- const sessionId = await requestClaudeSession(plan2.prompt, plan2.cwd);
12694
- respondJson(res, 200, { sessionId, cwd: plan2.cwd });
12695
- } catch (error) {
12696
- respondJson(res, 500, {
12697
- error: error instanceof Error ? error.message : String(error)
12698
- });
12699
- }
12763
+ function sessionFromGithub(req, res) {
12764
+ return launchFromGithub(
12765
+ req,
12766
+ res,
12767
+ planGithubSession,
12768
+ (plan2) => requestClaudeSession(plan2.prompt, plan2.cwd)
12769
+ );
12700
12770
  }
12701
12771
 
12702
12772
  // src/commands/sessions/web/fromGithub/sessionFromGithubPreflight.ts
@@ -18267,7 +18337,7 @@ function createCssHandler(packageEntry) {
18267
18337
  var htmlHandler = createHtmlHandler(getHtml);
18268
18338
  var faviconHandler = (size) => createBundleHandler(
18269
18339
  import.meta.url,
18270
- `commands/criteriaExtension/criteria-extension/icons/assist-${size}.png`,
18340
+ `commands/extension/extension/icons/assist-${size}.png`,
18271
18341
  "image/png"
18272
18342
  );
18273
18343
  var routes2 = {
@@ -18305,6 +18375,8 @@ var routes2 = {
18305
18375
  "GET /api/repo-location": getRepoLocation,
18306
18376
  "POST /api/sessions/from-github": sessionFromGithub,
18307
18377
  "OPTIONS /api/sessions/from-github": sessionFromGithubPreflight,
18378
+ "POST /api/sessions/review-from-github": reviewFromGithub,
18379
+ "OPTIONS /api/sessions/review-from-github": sessionFromGithubPreflight,
18308
18380
  "POST /api/open-in-code": openInCode,
18309
18381
  "POST /api/pr-preview/upload-image": uploadPrImage,
18310
18382
  "GET /api/pr-preview/image": previewImage,
@@ -22454,29 +22526,24 @@ function registerConfig(program2) {
22454
22526
  ).action((filter) => configKeys(filter));
22455
22527
  }
22456
22528
 
22457
- // src/commands/criteriaExtension/criteriaExtension.ts
22529
+ // src/commands/extension/extension.ts
22458
22530
  import { cp } from "fs/promises";
22459
22531
  import chalk141 from "chalk";
22460
22532
 
22461
- // src/commands/criteriaExtension/criteriaExtensionDir.ts
22533
+ // src/commands/extension/extensionDir.ts
22462
22534
  import { existsSync as existsSync47 } from "fs";
22463
22535
  import { dirname as dirname27, join as join53 } from "path";
22464
22536
  import { fileURLToPath as fileURLToPath6 } from "url";
22465
22537
  var moduleDir = dirname27(fileURLToPath6(import.meta.url));
22466
- function criteriaExtensionDir() {
22467
- const bundled = join53(
22468
- moduleDir,
22469
- "commands",
22470
- "criteriaExtension",
22471
- "criteria-extension"
22472
- );
22538
+ function extensionDir() {
22539
+ const bundled = join53(moduleDir, "commands", "extension", "extension");
22473
22540
  if (existsSync47(bundled)) return bundled;
22474
- return join53(moduleDir, "..", "..", "..", "criteria-extension");
22541
+ return join53(moduleDir, "..", "..", "..", "extension");
22475
22542
  }
22476
22543
 
22477
- // src/commands/criteriaExtension/criteriaExtension.ts
22478
- var WSL_WINDOWS_DIR = "/mnt/c/tools/criteria-extension";
22479
- var WSL_WINDOWS_PATH = String.raw`C:\tools\criteria-extension`;
22544
+ // src/commands/extension/extension.ts
22545
+ var WSL_WINDOWS_DIR = "/mnt/c/tools/extension";
22546
+ var WSL_WINDOWS_PATH = String.raw`C:\tools\extension`;
22480
22547
  async function loadPath(source) {
22481
22548
  if (detectPlatform() !== "wsl") return source;
22482
22549
  try {
@@ -22489,34 +22556,32 @@ async function loadPath(source) {
22489
22556
  return source;
22490
22557
  }
22491
22558
  }
22492
- async function criteriaExtension() {
22493
- const path109 = await loadPath(criteriaExtensionDir());
22494
- console.log(
22495
- chalk141.bold("acceptance criteria outliner \u2014 GitHub browser extension")
22496
- );
22559
+ async function extension() {
22560
+ const path109 = await loadPath(extensionDir());
22561
+ console.log(chalk141.bold("assist \u2014 GitHub browser extension"));
22497
22562
  console.log(chalk141.dim(`load the unpacked extension from ${path109}`));
22498
22563
  }
22499
22564
 
22500
- // src/commands/criteriaExtension/printCriteriaExtensionUrl.ts
22565
+ // src/commands/extension/printExtensionUrl.ts
22501
22566
  import { readFile as readFile4 } from "fs/promises";
22502
22567
  import { join as join54 } from "path";
22503
22568
  import chalk142 from "chalk";
22504
22569
 
22505
- // src/commands/criteriaExtension/latestUpdate.ts
22570
+ // src/commands/extension/latestUpdate.ts
22506
22571
  function latestUpdate(manifest, updates2) {
22507
22572
  const { id } = JSON.parse(manifest).browser_specific_settings.gecko;
22508
22573
  return JSON.parse(updates2).addons[id]?.updates.at(-1);
22509
22574
  }
22510
22575
 
22511
- // src/commands/criteriaExtension/latestUpdateLink.ts
22576
+ // src/commands/extension/latestUpdateLink.ts
22512
22577
  function latestUpdateLink(manifest, updates2) {
22513
22578
  return latestUpdate(manifest, updates2)?.update_link;
22514
22579
  }
22515
22580
 
22516
- // src/commands/criteriaExtension/printCriteriaExtensionUrl.ts
22517
- async function printCriteriaExtensionUrl() {
22581
+ // src/commands/extension/printExtensionUrl.ts
22582
+ async function printExtensionUrl() {
22518
22583
  const manifest = await readFile4(
22519
- join54(criteriaExtensionDir(), "manifest.json"),
22584
+ join54(extensionDir(), "manifest.json"),
22520
22585
  "utf8"
22521
22586
  );
22522
22587
  const { update_url } = JSON.parse(manifest).browser_specific_settings.gecko;
@@ -22530,16 +22595,16 @@ async function printCriteriaExtensionUrl() {
22530
22595
  console.log(link3);
22531
22596
  }
22532
22597
 
22533
- // src/commands/criteriaExtension/signCriteriaExtension.ts
22598
+ // src/commands/extension/signExtension.ts
22534
22599
  import { rm as rm2 } from "fs/promises";
22535
22600
  import { homedir as homedir21, tmpdir as tmpdir3 } from "os";
22536
22601
  import { join as join60 } from "path";
22537
22602
  import chalk144 from "chalk";
22538
22603
 
22539
- // src/commands/criteriaExtension/copySignedXpi.ts
22604
+ // src/commands/extension/copySignedXpi.ts
22540
22605
  import { copyFile } from "fs/promises";
22541
22606
  import { join as join55 } from "path";
22542
- var SIGNED_XPI_NAME = "criteria-extension.xpi";
22607
+ var SIGNED_XPI_NAME = "assist-extension.xpi";
22543
22608
  async function copySignedXpi(xpi, dir) {
22544
22609
  const fixed2 = join55(dir, SIGNED_XPI_NAME);
22545
22610
  if (fixed2 === xpi) return fixed2;
@@ -22547,7 +22612,7 @@ async function copySignedXpi(xpi, dir) {
22547
22612
  return fixed2;
22548
22613
  }
22549
22614
 
22550
- // src/commands/criteriaExtension/findSignedXpi.ts
22615
+ // src/commands/extension/findSignedXpi.ts
22551
22616
  import { existsSync as existsSync48 } from "fs";
22552
22617
  import { readdir } from "fs/promises";
22553
22618
  import { join as join56 } from "path";
@@ -22557,11 +22622,11 @@ async function findSignedXpi(dir) {
22557
22622
  return name ? join56(dir, name) : null;
22558
22623
  }
22559
22624
 
22560
- // src/commands/criteriaExtension/signedAddonInstallPath.ts
22625
+ // src/commands/extension/signedAddonInstallPath.ts
22561
22626
  import { cp as cp2 } from "fs/promises";
22562
22627
  import chalk143 from "chalk";
22563
- var WSL_WINDOWS_XPI = "/mnt/c/tools/criteria-extension.xpi";
22564
- var WSL_WINDOWS_PATH2 = String.raw`C:\tools\criteria-extension.xpi`;
22628
+ var WSL_WINDOWS_XPI = "/mnt/c/tools/assist-extension.xpi";
22629
+ var WSL_WINDOWS_PATH2 = String.raw`C:\tools\assist-extension.xpi`;
22565
22630
  async function signedAddonInstallPath(xpi) {
22566
22631
  if (detectPlatform() !== "wsl") return xpi;
22567
22632
  try {
@@ -22575,7 +22640,7 @@ async function signedAddonInstallPath(xpi) {
22575
22640
  }
22576
22641
  }
22577
22642
 
22578
- // src/commands/criteriaExtension/signPreflightProblem.ts
22643
+ // src/commands/extension/signPreflightProblem.ts
22579
22644
  import { existsSync as existsSync49 } from "fs";
22580
22645
  import { join as join57 } from "path";
22581
22646
  var KEY_URL = "https://addons.mozilla.org/en-US/developers/addon/api/key/";
@@ -22593,19 +22658,19 @@ function signPreflightProblem(source) {
22593
22658
  return null;
22594
22659
  }
22595
22660
 
22596
- // src/commands/criteriaExtension/stageCriteriaExtension.ts
22661
+ // src/commands/extension/stageExtension.ts
22597
22662
  import { cp as cp3, mkdir as mkdir5, readFile as readFile5, rm, writeFile as writeFile4 } from "fs/promises";
22598
22663
  import { basename as basename15, join as join58 } from "path";
22599
22664
 
22600
- // src/commands/criteriaExtension/stampManifestVersion.ts
22665
+ // src/commands/extension/stampManifestVersion.ts
22601
22666
  function stampManifestVersion(manifest, version2) {
22602
22667
  const parsed = JSON.parse(manifest);
22603
22668
  return `${JSON.stringify({ ...parsed, version: version2 }, null, " ")}
22604
22669
  `;
22605
22670
  }
22606
22671
 
22607
- // src/commands/criteriaExtension/stageCriteriaExtension.ts
22608
- async function stageCriteriaExtension(source, staging, version2) {
22672
+ // src/commands/extension/stageExtension.ts
22673
+ async function stageExtension(source, staging, version2) {
22609
22674
  await rm(staging, { recursive: true, force: true });
22610
22675
  await mkdir5(staging, { recursive: true });
22611
22676
  await cp3(source, staging, {
@@ -22620,11 +22685,11 @@ async function stageCriteriaExtension(source, staging, version2) {
22620
22685
  await writeFile4(manifest, stamped);
22621
22686
  }
22622
22687
 
22623
- // src/commands/criteriaExtension/writeUpdateManifest.ts
22688
+ // src/commands/extension/writeUpdateManifest.ts
22624
22689
  import { readFile as readFile6, writeFile as writeFile5 } from "fs/promises";
22625
22690
  import { join as join59 } from "path";
22626
22691
 
22627
- // src/commands/criteriaExtension/buildUpdateManifest.ts
22692
+ // src/commands/extension/buildUpdateManifest.ts
22628
22693
  var RELEASE_DOWNLOAD_URL = "https://github.com/staff0rd/assist/releases/download";
22629
22694
  function buildUpdateManifest(manifest, version2) {
22630
22695
  const { id } = JSON.parse(manifest).browser_specific_settings.gecko;
@@ -22634,7 +22699,7 @@ function buildUpdateManifest(manifest, version2) {
22634
22699
  updates: [
22635
22700
  {
22636
22701
  version: version2,
22637
- update_link: `${RELEASE_DOWNLOAD_URL}/v${version2}/criteria-extension.xpi`
22702
+ update_link: `${RELEASE_DOWNLOAD_URL}/v${version2}/assist-extension.xpi`
22638
22703
  }
22639
22704
  ]
22640
22705
  }
@@ -22644,7 +22709,7 @@ function buildUpdateManifest(manifest, version2) {
22644
22709
  `;
22645
22710
  }
22646
22711
 
22647
- // src/commands/criteriaExtension/writeUpdateManifest.ts
22712
+ // src/commands/extension/writeUpdateManifest.ts
22648
22713
  async function writeUpdateManifest(source, dir, version2) {
22649
22714
  await writeFile5(
22650
22715
  join59(dir, "updates.json"),
@@ -22655,11 +22720,11 @@ async function writeUpdateManifest(source, dir, version2) {
22655
22720
  );
22656
22721
  }
22657
22722
 
22658
- // src/commands/criteriaExtension/signCriteriaExtension.ts
22659
- var ARTIFACTS_DIR = join60(homedir21(), ".assist", "criteria-extension");
22660
- var STAGING_DIR = join60(tmpdir3(), "assist-criteria-extension");
22661
- async function signCriteriaExtension() {
22662
- const source = criteriaExtensionDir();
22723
+ // src/commands/extension/signExtension.ts
22724
+ var ARTIFACTS_DIR = join60(homedir21(), ".assist", "extension");
22725
+ var STAGING_DIR = join60(tmpdir3(), "assist-extension");
22726
+ async function signExtension() {
22727
+ const source = extensionDir();
22663
22728
  const problem = signPreflightProblem(source);
22664
22729
  if (problem) {
22665
22730
  console.log(chalk144.red(problem.message));
@@ -22668,7 +22733,7 @@ async function signCriteriaExtension() {
22668
22733
  return;
22669
22734
  }
22670
22735
  const { version: version2 } = package_default;
22671
- await stageCriteriaExtension(source, STAGING_DIR, version2);
22736
+ await stageExtension(source, STAGING_DIR, version2);
22672
22737
  await rm2(ARTIFACTS_DIR, { recursive: true, force: true });
22673
22738
  console.log(chalk144.bold(`signing version ${version2} for self-distribution`));
22674
22739
  const { done: done2 } = spawnInherit("npx", [
@@ -22697,9 +22762,9 @@ async function signCriteriaExtension() {
22697
22762
  console.log(chalk144.dim(`install the signed add-on from ${path109}`));
22698
22763
  }
22699
22764
 
22700
- // src/commands/registerCriteriaExtension.ts
22701
- function registerCriteriaExtension(program2) {
22702
- program2.command("criteria-extension").description(
22765
+ // src/commands/registerExtension.ts
22766
+ function registerExtension(program2) {
22767
+ program2.command("extension").description(
22703
22768
  "Print the directory to load the acceptance criteria outliner browser extension from (load unpacked)"
22704
22769
  ).option(
22705
22770
  "--sign",
@@ -22708,8 +22773,8 @@ function registerCriteriaExtension(program2) {
22708
22773
  "--url",
22709
22774
  "Print the download URL of the latest signed Firefox build, read from the update manifest on main"
22710
22775
  ).action((options2) => {
22711
- if (options2.url) return printCriteriaExtensionUrl();
22712
- return options2.sign ? signCriteriaExtension() : criteriaExtension();
22776
+ if (options2.url) return printExtensionUrl();
22777
+ return options2.sign ? signExtension() : extension();
22713
22778
  });
22714
22779
  }
22715
22780
 
@@ -35253,14 +35318,14 @@ function countByDirectory(files) {
35253
35318
  for (const file of files) {
35254
35319
  const directory = dirname37(file) === "." ? "(repo root)" : dirname37(file);
35255
35320
  const extensions = directories.get(directory) ?? /* @__PURE__ */ new Map();
35256
- const extension = extname6(file) === "" ? "(no extension)" : extname6(file);
35257
- extensions.set(extension, (extensions.get(extension) ?? 0) + 1);
35321
+ const extension2 = extname6(file) === "" ? "(no extension)" : extname6(file);
35322
+ extensions.set(extension2, (extensions.get(extension2) ?? 0) + 1);
35258
35323
  directories.set(directory, extensions);
35259
35324
  }
35260
35325
  return directories;
35261
35326
  }
35262
35327
  function formatExtensions(extensions) {
35263
- return extensions.slice(0, MAX_EXTENSIONS_PER_DIRECTORY).map(([extension, count8]) => `${extension}(${count8})`).join(", ");
35328
+ return extensions.slice(0, MAX_EXTENSIONS_PER_DIRECTORY).map(([extension2, count8]) => `${extension2}(${count8})`).join(", ");
35264
35329
  }
35265
35330
 
35266
35331
  // src/commands/review/highLevel/proposeHighLevelGlobs.ts
@@ -50530,7 +50595,7 @@ registerComplexity(program);
50530
50595
  registerDotnet(program);
50531
50596
  registerNews(program);
50532
50597
  registerNetcap(program);
50533
- registerCriteriaExtension(program);
50598
+ registerExtension(program);
50534
50599
  registerLitellm(program);
50535
50600
  registerRavendb(program);
50536
50601
  registerSeq(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.835.0",
3
+ "version": "0.837.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- "use strict";(()=>{function o(){return globalThis.browser?.storage?.local}function i(s){let e;try{e=new URL(s.trim())}catch{return}if(!(e.protocol!=="http:"&&e.protocol!=="https:"))return e.origin}var p="http://localhost:3100",a="serverUrl";async function u(){let e=(await o()?.get(a).catch(()=>{}))?.[a];return typeof e=="string"&&i(e)||p}function g(s){let{type:e,url:n}=s??{};return e==="assist-send"&&typeof n=="string"}function d(){return globalThis.browser?.runtime}async function l(s,{url:e,instructions:n}){let t;try{t=await fetch(`${s}/api/sessions/from-github`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,instructions:n})})}catch{return{ok:!1,message:`assist web server unreachable at ${s}`}}let r=await t.json().catch(()=>({}));return t.ok?{ok:!0,message:`assist session started in ${r.cwd}`}:{ok:!1,message:r.error??`assist web server returned ${t.status}`}}function c(){d()?.onMessage.addListener(s=>{if(g(s))return u().then(e=>l(e,s))})}c();})();