@staff0rd/assist 0.1112.9 → 0.1112.11
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/built-version +1 -1
- package/dist/commands/sessions/web/bundle.js +287 -287
- package/dist/index.js +9 -5
- package/package.json +1 -1
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.1112.
|
|
9
|
+
version: "0.1112.11",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -34697,13 +34697,17 @@ Anything nested below the leaf level fails the run before a single write, naming
|
|
|
34697
34697
|
import { execFileSync as execFileSync11 } from "child_process";
|
|
34698
34698
|
|
|
34699
34699
|
// src/shared/validateProposedContent.ts
|
|
34700
|
+
var URL_PATTERN3 = /https?:\/\/[^\s<>()[\]"'`]+/gi;
|
|
34701
|
+
function mentionsClaude(text19) {
|
|
34702
|
+
return text19.replace(URL_PATTERN3, "").toLowerCase().includes("claude");
|
|
34703
|
+
}
|
|
34700
34704
|
function validateProposedContent(labels, title, body) {
|
|
34701
34705
|
const { subject, context } = labels;
|
|
34702
|
-
if (title
|
|
34706
|
+
if (mentionsClaude(title)) {
|
|
34703
34707
|
console.error(`Error: ${subject} title must not reference Claude`);
|
|
34704
34708
|
process.exit(1);
|
|
34705
34709
|
}
|
|
34706
|
-
if (body
|
|
34710
|
+
if (mentionsClaude(body)) {
|
|
34707
34711
|
console.error(`Error: ${subject} body must not reference Claude`);
|
|
34708
34712
|
process.exit(1);
|
|
34709
34713
|
}
|
|
@@ -41317,8 +41321,8 @@ import { readFileSync as readFileSync63 } from "fs";
|
|
|
41317
41321
|
var FENCE_PATTERN = /^\s*(```|~~~)/;
|
|
41318
41322
|
var IMAGE_PATTERN = /!\[[^\]]*\]\([^)]*\)/g;
|
|
41319
41323
|
var HTML_TAG_PATTERN = /<[^\s>][^>]*>/g;
|
|
41320
|
-
var
|
|
41321
|
-
var SINGLE_WORD_PATTERNS = [IMAGE_PATTERN, HTML_TAG_PATTERN,
|
|
41324
|
+
var URL_PATTERN4 = /https?:\/\/\S+/g;
|
|
41325
|
+
var SINGLE_WORD_PATTERNS = [IMAGE_PATTERN, HTML_TAG_PATTERN, URL_PATTERN4];
|
|
41322
41326
|
function countReadingWords(body) {
|
|
41323
41327
|
let prose = 0;
|
|
41324
41328
|
let code = 0;
|