@staff0rd/assist 0.119.0 → 0.120.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/claude/commands/review-comments.md +1 -1
- package/dist/index.js +38 -29
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ Fetch all review comments using `assist prs list-comments`. This returns both re
|
|
|
12
12
|
|
|
13
13
|
## Processing Comments
|
|
14
14
|
|
|
15
|
-
**Thread grouping:** Comments share a `threadId` field. Group comments by thread and process each thread as a single unit. Present follow-up comments (e.g., a reviewer endorsing a bot suggestion) as context alongside the primary actionable comment. Only call `fixed`/`wontfix` once per thread, using the comment ID of the primary actionable comment.
|
|
15
|
+
**Thread grouping:** Comments share a `threadId` field. Group comments by thread and process each thread as a single unit — never merge different threads, even when they are on the same file. Present follow-up comments (e.g., a reviewer endorsing a bot suggestion) as context alongside the primary actionable comment. Only call `fixed`/`wontfix` once per thread, using the comment ID of the primary actionable comment.
|
|
16
16
|
|
|
17
17
|
Create a task for each **thread** (not each comment). For each thread:
|
|
18
18
|
|
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.
|
|
9
|
+
version: "0.120.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -83,7 +83,7 @@ import { execSync } from "child_process";
|
|
|
83
83
|
// src/shared/loadConfig.ts
|
|
84
84
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync } from "fs";
|
|
85
85
|
import { homedir } from "os";
|
|
86
|
-
import { basename, join } from "path";
|
|
86
|
+
import { basename, dirname, join } from "path";
|
|
87
87
|
import chalk from "chalk";
|
|
88
88
|
import { stringify as stringifyYaml } from "yaml";
|
|
89
89
|
|
|
@@ -192,11 +192,20 @@ var assistConfigSchema = z.strictObject({
|
|
|
192
192
|
});
|
|
193
193
|
|
|
194
194
|
// src/shared/loadConfig.ts
|
|
195
|
-
function
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
function findConfigUp(startDir) {
|
|
196
|
+
let current = startDir;
|
|
197
|
+
while (current !== dirname(current)) {
|
|
198
|
+
const claudePath = join(current, ".claude", "assist.yml");
|
|
199
|
+
if (existsSync2(claudePath)) return claudePath;
|
|
200
|
+
const rootPath = join(current, "assist.yml");
|
|
201
|
+
if (existsSync2(rootPath)) return rootPath;
|
|
202
|
+
current = dirname(current);
|
|
199
203
|
}
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
function getConfigPath() {
|
|
207
|
+
const found = findConfigUp(process.cwd());
|
|
208
|
+
if (found) return found;
|
|
200
209
|
return join(process.cwd(), "assist.yml");
|
|
201
210
|
}
|
|
202
211
|
function getGlobalConfigPath() {
|
|
@@ -693,7 +702,7 @@ import chalk13 from "chalk";
|
|
|
693
702
|
// src/commands/lint/init.ts
|
|
694
703
|
import { execSync as execSync4 } from "child_process";
|
|
695
704
|
import { existsSync as existsSync7, readFileSync as readFileSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
696
|
-
import { dirname as
|
|
705
|
+
import { dirname as dirname6, join as join4 } from "path";
|
|
697
706
|
import { fileURLToPath } from "url";
|
|
698
707
|
import chalk12 from "chalk";
|
|
699
708
|
|
|
@@ -826,7 +835,7 @@ function printDiff(oldContent, newContent) {
|
|
|
826
835
|
}
|
|
827
836
|
|
|
828
837
|
// src/commands/lint/init.ts
|
|
829
|
-
var __dirname2 =
|
|
838
|
+
var __dirname2 = dirname6(fileURLToPath(import.meta.url));
|
|
830
839
|
async function init() {
|
|
831
840
|
removeEslint();
|
|
832
841
|
const biomeConfigPath = "biome.json";
|
|
@@ -1977,11 +1986,11 @@ import enquirer3 from "enquirer";
|
|
|
1977
1986
|
|
|
1978
1987
|
// src/commands/deploy/init/updateWorkflow.ts
|
|
1979
1988
|
import { existsSync as existsSync10, mkdirSync as mkdirSync3, readFileSync as readFileSync8, writeFileSync as writeFileSync9 } from "fs";
|
|
1980
|
-
import { dirname as
|
|
1989
|
+
import { dirname as dirname12, join as join7 } from "path";
|
|
1981
1990
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
1982
1991
|
import chalk23 from "chalk";
|
|
1983
1992
|
var WORKFLOW_PATH = ".github/workflows/build.yml";
|
|
1984
|
-
var __dirname3 =
|
|
1993
|
+
var __dirname3 = dirname12(fileURLToPath2(import.meta.url));
|
|
1985
1994
|
function getExistingSiteId() {
|
|
1986
1995
|
if (!existsSync10(WORKFLOW_PATH)) {
|
|
1987
1996
|
return null;
|
|
@@ -2533,7 +2542,7 @@ import { readFileSync as readFileSync12 } from "fs";
|
|
|
2533
2542
|
import {
|
|
2534
2543
|
createServer
|
|
2535
2544
|
} from "http";
|
|
2536
|
-
import { dirname as
|
|
2545
|
+
import { dirname as dirname13, join as join10 } from "path";
|
|
2537
2546
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
2538
2547
|
import chalk32 from "chalk";
|
|
2539
2548
|
function respondJson(res, status2, data) {
|
|
@@ -2541,7 +2550,7 @@ function respondJson(res, status2, data) {
|
|
|
2541
2550
|
res.end(JSON.stringify(data));
|
|
2542
2551
|
}
|
|
2543
2552
|
function createBundleHandler(importMetaUrl, bundlePath) {
|
|
2544
|
-
const dir =
|
|
2553
|
+
const dir = dirname13(fileURLToPath3(importMetaUrl));
|
|
2545
2554
|
let cache;
|
|
2546
2555
|
return (_req, res) => {
|
|
2547
2556
|
if (!cache) {
|
|
@@ -2822,10 +2831,10 @@ function extractGraphqlQuery(args) {
|
|
|
2822
2831
|
|
|
2823
2832
|
// src/shared/loadCliReads.ts
|
|
2824
2833
|
import { existsSync as existsSync16, readFileSync as readFileSync13, writeFileSync as writeFileSync13 } from "fs";
|
|
2825
|
-
import { dirname as
|
|
2834
|
+
import { dirname as dirname14, resolve as resolve2 } from "path";
|
|
2826
2835
|
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
2827
2836
|
var __filename2 = fileURLToPath4(import.meta.url);
|
|
2828
|
-
var __dirname4 =
|
|
2837
|
+
var __dirname4 = dirname14(__filename2);
|
|
2829
2838
|
function getCliReadsPath() {
|
|
2830
2839
|
return resolve2(__dirname4, "..", "assist.cli-reads");
|
|
2831
2840
|
}
|
|
@@ -3043,10 +3052,10 @@ import { join as join12 } from "path";
|
|
|
3043
3052
|
|
|
3044
3053
|
// src/shared/getInstallDir.ts
|
|
3045
3054
|
import { execSync as execSync13 } from "child_process";
|
|
3046
|
-
import { dirname as
|
|
3055
|
+
import { dirname as dirname15, resolve as resolve4 } from "path";
|
|
3047
3056
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
3048
3057
|
var __filename3 = fileURLToPath5(import.meta.url);
|
|
3049
|
-
var __dirname5 =
|
|
3058
|
+
var __dirname5 = dirname15(__filename3);
|
|
3050
3059
|
function getInstallDir() {
|
|
3051
3060
|
return resolve4(__dirname5, "..");
|
|
3052
3061
|
}
|
|
@@ -4800,7 +4809,7 @@ import { existsSync as existsSync22 } from "fs";
|
|
|
4800
4809
|
import path24 from "path";
|
|
4801
4810
|
import chalk52 from "chalk";
|
|
4802
4811
|
|
|
4803
|
-
// src/
|
|
4812
|
+
// src/shared/findRepoRoot.ts
|
|
4804
4813
|
import { existsSync as existsSync21 } from "fs";
|
|
4805
4814
|
import path23 from "path";
|
|
4806
4815
|
function findRepoRoot(dir) {
|
|
@@ -7064,7 +7073,7 @@ async function configure() {
|
|
|
7064
7073
|
import { existsSync as existsSync27 } from "fs";
|
|
7065
7074
|
|
|
7066
7075
|
// src/commands/transcript/format/fixInvalidDatePrefixes/index.ts
|
|
7067
|
-
import { dirname as
|
|
7076
|
+
import { dirname as dirname17, join as join24 } from "path";
|
|
7068
7077
|
|
|
7069
7078
|
// src/commands/transcript/format/fixInvalidDatePrefixes/promptForDateFix.ts
|
|
7070
7079
|
import { renameSync } from "fs";
|
|
@@ -7114,11 +7123,11 @@ async function fixInvalidDatePrefixes(vttFiles) {
|
|
|
7114
7123
|
for (let i = 0; i < vttFiles.length; i++) {
|
|
7115
7124
|
const vttFile = vttFiles[i];
|
|
7116
7125
|
if (!isValidDatePrefix(vttFile.filename)) {
|
|
7117
|
-
const vttFileDir =
|
|
7126
|
+
const vttFileDir = dirname17(vttFile.absolutePath);
|
|
7118
7127
|
const newFilename = await promptForDateFix(vttFile.filename, vttFileDir);
|
|
7119
7128
|
if (newFilename) {
|
|
7120
7129
|
const newRelativePath = join24(
|
|
7121
|
-
|
|
7130
|
+
dirname17(vttFile.relativePath),
|
|
7122
7131
|
newFilename
|
|
7123
7132
|
);
|
|
7124
7133
|
vttFiles[i] = {
|
|
@@ -7136,7 +7145,7 @@ async function fixInvalidDatePrefixes(vttFiles) {
|
|
|
7136
7145
|
|
|
7137
7146
|
// src/commands/transcript/format/processVttFile/index.ts
|
|
7138
7147
|
import { existsSync as existsSync26, mkdirSync as mkdirSync7, readFileSync as readFileSync22, writeFileSync as writeFileSync22 } from "fs";
|
|
7139
|
-
import { basename as basename5, dirname as
|
|
7148
|
+
import { basename as basename5, dirname as dirname18, join as join25 } from "path";
|
|
7140
7149
|
|
|
7141
7150
|
// src/commands/transcript/cleanText.ts
|
|
7142
7151
|
function cleanText(text) {
|
|
@@ -7350,7 +7359,7 @@ function resolveOutputDir(relativeDir, transcriptsDir) {
|
|
|
7350
7359
|
}
|
|
7351
7360
|
function buildOutputPaths(vttFile, transcriptsDir) {
|
|
7352
7361
|
const mdFile = toMdFilename(vttFile.filename);
|
|
7353
|
-
const relativeDir =
|
|
7362
|
+
const relativeDir = dirname18(vttFile.relativePath);
|
|
7354
7363
|
const outputDir = resolveOutputDir(relativeDir, transcriptsDir);
|
|
7355
7364
|
const outputPath = join25(outputDir, mdFile);
|
|
7356
7365
|
return { outputDir, outputPath, mdFile, relativeDir };
|
|
@@ -7455,7 +7464,7 @@ async function format() {
|
|
|
7455
7464
|
|
|
7456
7465
|
// src/commands/transcript/summarise/index.ts
|
|
7457
7466
|
import { existsSync as existsSync29 } from "fs";
|
|
7458
|
-
import { basename as basename6, dirname as
|
|
7467
|
+
import { basename as basename6, dirname as dirname20, join as join27, relative as relative2 } from "path";
|
|
7459
7468
|
|
|
7460
7469
|
// src/commands/transcript/summarise/processStagedFile/index.ts
|
|
7461
7470
|
import {
|
|
@@ -7465,7 +7474,7 @@ import {
|
|
|
7465
7474
|
renameSync as renameSync2,
|
|
7466
7475
|
rmSync
|
|
7467
7476
|
} from "fs";
|
|
7468
|
-
import { dirname as
|
|
7477
|
+
import { dirname as dirname19, join as join26 } from "path";
|
|
7469
7478
|
|
|
7470
7479
|
// src/commands/transcript/summarise/processStagedFile/validateStagedContent.ts
|
|
7471
7480
|
import chalk76 from "chalk";
|
|
@@ -7519,7 +7528,7 @@ function processStagedFile() {
|
|
|
7519
7528
|
process.exit(1);
|
|
7520
7529
|
}
|
|
7521
7530
|
const destPath = join26(summaryDir, matchingTranscript.relativePath);
|
|
7522
|
-
const destDir =
|
|
7531
|
+
const destDir = dirname19(destPath);
|
|
7523
7532
|
if (!existsSync28(destDir)) {
|
|
7524
7533
|
mkdirSync8(destDir, { recursive: true });
|
|
7525
7534
|
}
|
|
@@ -7533,7 +7542,7 @@ function processStagedFile() {
|
|
|
7533
7542
|
|
|
7534
7543
|
// src/commands/transcript/summarise/index.ts
|
|
7535
7544
|
function buildRelativeKey(relativePath, baseName) {
|
|
7536
|
-
const relDir =
|
|
7545
|
+
const relDir = dirname20(relativePath);
|
|
7537
7546
|
return relDir === "." ? baseName : join27(relDir, baseName);
|
|
7538
7547
|
}
|
|
7539
7548
|
function buildSummaryIndex(summaryDir) {
|
|
@@ -7569,7 +7578,7 @@ function summarise2() {
|
|
|
7569
7578
|
const next2 = missing[0];
|
|
7570
7579
|
const outputFilename = `${getTranscriptBaseName(next2.filename)}.md`;
|
|
7571
7580
|
const outputPath = join27(STAGING_DIR, outputFilename);
|
|
7572
|
-
const summaryFileDir = join27(summaryDir,
|
|
7581
|
+
const summaryFileDir = join27(summaryDir, dirname20(next2.relativePath));
|
|
7573
7582
|
const relativeTranscriptPath = encodeURI(
|
|
7574
7583
|
relative2(summaryFileDir, next2.absolutePath).replace(/\\/g, "/")
|
|
7575
7584
|
);
|
|
@@ -7619,9 +7628,9 @@ import { join as join29 } from "path";
|
|
|
7619
7628
|
|
|
7620
7629
|
// src/commands/voice/shared.ts
|
|
7621
7630
|
import { homedir as homedir7 } from "os";
|
|
7622
|
-
import { dirname as
|
|
7631
|
+
import { dirname as dirname21, join as join28 } from "path";
|
|
7623
7632
|
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
7624
|
-
var __dirname6 =
|
|
7633
|
+
var __dirname6 = dirname21(fileURLToPath6(import.meta.url));
|
|
7625
7634
|
var VOICE_DIR = join28(homedir7(), ".assist", "voice");
|
|
7626
7635
|
var voicePaths = {
|
|
7627
7636
|
dir: VOICE_DIR,
|