@staff0rd/assist 0.877.1 → 0.878.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.877.1",
9
+ version: "0.878.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -616,8 +616,18 @@ function withoutKeys(value, keys) {
616
616
  for (const key of keys) delete rest[key];
617
617
  return rest;
618
618
  }
619
+ function stripRepos(repos2) {
620
+ if (!repos2 || typeof repos2 !== "object") return repos2;
621
+ return Object.fromEntries(
622
+ Object.entries(repos2).map(([name, entry]) => [
623
+ name,
624
+ entry && typeof entry === "object" ? stripLegacyConfigKeys(entry) : entry
625
+ ])
626
+ );
627
+ }
619
628
  function stripLegacyConfigKeys(config) {
620
629
  const stripped = { ...config };
630
+ if (stripped.repos) stripped.repos = stripRepos(stripped.repos);
621
631
  const news = stripped.news;
622
632
  if (news && typeof news === "object" && "feeds" in news) {
623
633
  const { feeds: _feeds, ...rest } = news;
@@ -44110,8 +44120,10 @@ function broadcast(clients, msg) {
44110
44120
 
44111
44121
  // src/commands/sessions/shared/promptIssueRef.ts
44112
44122
  var issuePrompt = /^Issue ([^\s#]+\/[^\s#]+)#(\d+):/;
44123
+ var issueUrlPrompt = /^https?:\/\/(?:www\.)?github\.com\/([^\s/#?]+\/[^\s/#?]+)\/issues\/(\d+)(?![^\s?#])/;
44113
44124
  function promptIssueRef(prompt) {
44114
- const match = prompt ? issuePrompt.exec(prompt) : null;
44125
+ if (!prompt) return void 0;
44126
+ const match = issuePrompt.exec(prompt) ?? issueUrlPrompt.exec(prompt.trim());
44115
44127
  return match ? `${match[1]}#${match[2]}` : void 0;
44116
44128
  }
44117
44129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.877.1",
3
+ "version": "0.878.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {