@bensandee/tooling 0.92.0 → 0.92.1
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/bin.mjs +7 -26
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -175,7 +175,7 @@ function loadEnvFileForBin(rawArgs, bin, io = processIo) {
|
|
|
175
175
|
//#region src/env-file-preload.ts
|
|
176
176
|
const envFileLoad = loadEnvFileForBin(process.argv.slice(2), {
|
|
177
177
|
name: "bst",
|
|
178
|
-
version: "0.92.
|
|
178
|
+
version: "0.92.1"
|
|
179
179
|
});
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region ../cli-kit/src/logger.ts
|
|
@@ -5433,7 +5433,7 @@ function buildManagedDevDeps(ctx) {
|
|
|
5433
5433
|
const devDeps = { ...rootDevDeps(ctx.config) };
|
|
5434
5434
|
if (!isMonorepo) Object.assign(devDeps, perPackageDevDeps(ctx.config));
|
|
5435
5435
|
if (ctx.config.stack !== "none" || ctx.config.ci === "forgejo") devDeps["@bensandee/config"] = isWorkspacePackage(ctx, "@bensandee/config") ? "workspace:*" : "0.15.0";
|
|
5436
|
-
if (!isWorkspacePackage(ctx, "@bensandee/tooling")) devDeps["@bensandee/tooling"] = "0.92.
|
|
5436
|
+
if (!isWorkspacePackage(ctx, "@bensandee/tooling")) devDeps["@bensandee/tooling"] = "0.92.1";
|
|
5437
5437
|
if (ctx.config.useEslintPlugin && ctx.config.stack !== "none") devDeps["@bensandee/eslint-plugin"] = isWorkspacePackage(ctx, "@bensandee/eslint-plugin") ? "workspace:*" : "0.17.0";
|
|
5438
5438
|
if (wantsAgentCli(ctx)) devDeps[AGENT_CLI_PACKAGE] = "0.1.2";
|
|
5439
5439
|
if (ctx.config.formatter === "oxfmt") devDeps["oxfmt"] = {
|
|
@@ -9305,6 +9305,8 @@ const GIT_GUIDE_BODY = [
|
|
|
9305
9305
|
"",
|
|
9306
9306
|
"If the bst agent drives this repo, claim an issue or pull request before you work it by hand, so the agent does not start a run beside you: run `bst work:start <n>`. It prints the same orientation `bst work:status` does and then puts `agent-flags/hand-authored` on the object. It claims only where the repo's default branch sets `agent.enabled: true`, and does nothing anywhere else. **Exit 1 means do not start**: a run is live on the pair, or the agent holds it -- the output names which. Exit 0 means the pair is yours, whether the command wrote the flag or found it there already.",
|
|
9307
9307
|
"",
|
|
9308
|
+
"The flag records who is working an object now, not who wrote it. Do not claim an issue or pull request you only file or open for later, even one a person or a coding session wrote by hand: leave it unclaimed so the agent can take it if asked. Claim it when you are about to work it.",
|
|
9309
|
+
"",
|
|
9308
9310
|
"A pull request you open yourself that closes no claimed issue needs its own `bst work:start <n>` once it exists -- the flag on either half of a pair holds both, but there is no pair until something closes something.",
|
|
9309
9311
|
"",
|
|
9310
9312
|
"Hand the work back with the control panel's **Release to the agent**, or by removing `agent-flags/hand-authored` from both halves. Removing it does not queue anything: the agent picks the object up on its next cycle only if a label or a comment asks it to.",
|
|
@@ -9999,7 +10001,7 @@ function reportFailures(failed, command) {
|
|
|
9999
10001
|
function generateMigratePrompt(results, config, detected) {
|
|
10000
10002
|
const sections = [];
|
|
10001
10003
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
10002
|
-
sections.push(`# Migration Prompt\n\n_Generated by \`@bensandee/tooling@0.92.
|
|
10004
|
+
sections.push(`# Migration Prompt\n\n_Generated by \`@bensandee/tooling@0.92.1 repo:sync\` on ${timestamp}_\n`);
|
|
10003
10005
|
const changed = results.filter((r) => r.action === "created" || r.action === "updated" || r.action === "archived");
|
|
10004
10006
|
if (changed.length > 0) {
|
|
10005
10007
|
const items = changed.map((r) => {
|
|
@@ -17636,27 +17638,6 @@ function firstSentence$1(paragraph) {
|
|
|
17636
17638
|
}
|
|
17637
17639
|
return paragraph;
|
|
17638
17640
|
}
|
|
17639
|
-
const LABEL_REGEX = /^[A-Za-z]+\s+\d+[a-z]?:\s+/;
|
|
17640
|
-
function firstClause(title) {
|
|
17641
|
-
const label = LABEL_REGEX.exec(title)?.[0].length ?? 0;
|
|
17642
|
-
let inCode = false;
|
|
17643
|
-
for (let index = label; index < title.length; index++) {
|
|
17644
|
-
const char = title[index];
|
|
17645
|
-
if (char === "`") inCode = !inCode;
|
|
17646
|
-
if (inCode || char !== ";" && char !== ":") continue;
|
|
17647
|
-
if (index + 1 < title.length && !/\s/.test(title[index + 1] ?? "")) continue;
|
|
17648
|
-
return title.slice(0, index).trimEnd();
|
|
17649
|
-
}
|
|
17650
|
-
return title;
|
|
17651
|
-
}
|
|
17652
|
-
function shortTitle(title) {
|
|
17653
|
-
if (title.length <= 100) return title;
|
|
17654
|
-
const clause = firstClause(title);
|
|
17655
|
-
if (clause.length <= 100) return clause;
|
|
17656
|
-
const room = clause.slice(0, 97);
|
|
17657
|
-
const space = room.lastIndexOf(" ");
|
|
17658
|
-
return `${(space > 0 ? room.slice(0, space) : room).trimEnd()}...`;
|
|
17659
|
-
}
|
|
17660
17641
|
function stripStrong(text) {
|
|
17661
17642
|
return text.split(/(`[^`]*`)/).map((part) => part.startsWith("`") ? part : part.replaceAll("**", "")).join("").trim();
|
|
17662
17643
|
}
|
|
@@ -17689,7 +17670,7 @@ function parsePlanBoxes(planText) {
|
|
|
17689
17670
|
break;
|
|
17690
17671
|
}
|
|
17691
17672
|
}
|
|
17692
|
-
const title =
|
|
17673
|
+
const title = stripStrong(unwrapEmphasis(firstSentence$1(boxParagraph(lines, fenced, box.index, blockEnd, box.rawTitle))));
|
|
17693
17674
|
const retireTask = RETIRE_TASK_REGEX.test(title);
|
|
17694
17675
|
if (box.checked) return {
|
|
17695
17676
|
line: box.index,
|
|
@@ -27345,7 +27326,7 @@ async function runCli(config) {
|
|
|
27345
27326
|
//#region src/cli-main.ts
|
|
27346
27327
|
setLogLevel(resolveLogLevel({}));
|
|
27347
27328
|
setForgejoLogger(log$1);
|
|
27348
|
-
const displayVersion = "0.92.
|
|
27329
|
+
const displayVersion = "0.92.1";
|
|
27349
27330
|
const bstSubCommands = {
|
|
27350
27331
|
"repo:sync": syncCommand,
|
|
27351
27332
|
"checks:run": runChecksCommand,
|