truecourse 0.6.0-next.0 → 0.6.0-next.2
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/README.md +171 -168
- package/cli.mjs +80 -160
- package/package.json +1 -1
- package/public/assets/{index-agCyYXoU.js → index-CkKIAyL2.js} +1 -1
- package/public/index.html +1 -1
- package/server.mjs +13 -2
package/public/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
} catch (e) {}
|
|
21
21
|
})();
|
|
22
22
|
</script>
|
|
23
|
-
<script type="module" crossorigin src="/assets/index-
|
|
23
|
+
<script type="module" crossorigin src="/assets/index-CkKIAyL2.js"></script>
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/assets/index-DK_4amwn.css">
|
|
25
25
|
</head>
|
|
26
26
|
<body class="font-sans">
|
package/server.mjs
CHANGED
|
@@ -156920,7 +156920,7 @@ function readToolVersion() {
|
|
|
156920
156920
|
if (cachedVersion)
|
|
156921
156921
|
return cachedVersion;
|
|
156922
156922
|
if (true) {
|
|
156923
|
-
cachedVersion = "0.6.0-next.
|
|
156923
|
+
cachedVersion = "0.6.0-next.2";
|
|
156924
156924
|
return cachedVersion;
|
|
156925
156925
|
}
|
|
156926
156926
|
try {
|
|
@@ -161623,6 +161623,10 @@ async function filterByRelevance(repoRoot, docs, opts = {}) {
|
|
|
161623
161623
|
const manualSet = new Set(opts.manualIncludes ?? []);
|
|
161624
161624
|
const runner = opts.runner ?? spawnRelevanceRunner({ model: opts.model, fallbackModel: opts.fallbackModel });
|
|
161625
161625
|
const concurrency = opts.concurrency ?? 4;
|
|
161626
|
+
const total = docs.length;
|
|
161627
|
+
let done = 0;
|
|
161628
|
+
const markDone = () => opts.onProgress?.(++done, total);
|
|
161629
|
+
opts.onProgress?.(0, total);
|
|
161626
161630
|
const verdicts = /* @__PURE__ */ new Map();
|
|
161627
161631
|
let cursor = 0;
|
|
161628
161632
|
let active = 0;
|
|
@@ -161632,6 +161636,7 @@ async function filterByRelevance(repoRoot, docs, opts = {}) {
|
|
|
161632
161636
|
const doc = docs[cursor++];
|
|
161633
161637
|
if (manualSet.has(doc.path)) {
|
|
161634
161638
|
verdicts.set(doc.path, { path: doc.path, include: true, reason: "manual include" });
|
|
161639
|
+
markDone();
|
|
161635
161640
|
if (cursor >= docs.length && active === 0)
|
|
161636
161641
|
resolve8();
|
|
161637
161642
|
continue;
|
|
@@ -161646,6 +161651,7 @@ async function filterByRelevance(repoRoot, docs, opts = {}) {
|
|
|
161646
161651
|
reason: "classification failed; defaulting to include"
|
|
161647
161652
|
});
|
|
161648
161653
|
}).finally(() => {
|
|
161654
|
+
markDone();
|
|
161649
161655
|
active--;
|
|
161650
161656
|
if (cursor >= docs.length && active === 0)
|
|
161651
161657
|
resolve8();
|
|
@@ -162032,7 +162038,8 @@ async function consolidate(repoRoot, opts = {}) {
|
|
|
162032
162038
|
enabled: opts.disableRelevanceFilter !== true,
|
|
162033
162039
|
manualIncludes: decisions.manualIncludes ?? [],
|
|
162034
162040
|
model: models.relevance,
|
|
162035
|
-
fallbackModel
|
|
162041
|
+
fallbackModel,
|
|
162042
|
+
onProgress: opts.onRelevanceProgress
|
|
162036
162043
|
});
|
|
162037
162044
|
const docs = relevance.included;
|
|
162038
162045
|
const skippedDocs = relevance.skipped.map(({ doc, reason }) => ({ path: doc.path, reason }));
|
|
@@ -176029,6 +176036,10 @@ async function scanInProcess(repoRoot, options = {}) {
|
|
|
176029
176036
|
disableLlmChainDetection: options.disableLlmChainDetection,
|
|
176030
176037
|
skipGit: options.skipGit,
|
|
176031
176038
|
models: resolveConsolidateModels(repoRoot),
|
|
176039
|
+
onRelevanceProgress: (doneCount, total) => {
|
|
176040
|
+
if (total > 0)
|
|
176041
|
+
tracker?.detail("discover", `${doneCount}/${total} docs`);
|
|
176042
|
+
},
|
|
176032
176043
|
onDocStart: () => {
|
|
176033
176044
|
if (!extractStarted) {
|
|
176034
176045
|
tracker?.done("discover");
|