truecourse 0.6.0-next.3 → 0.6.0-next.4

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.
Files changed (3) hide show
  1. package/cli.mjs +9 -4
  2. package/package.json +1 -1
  3. package/server.mjs +1 -1
package/cli.mjs CHANGED
@@ -128242,7 +128242,7 @@ function readToolVersion() {
128242
128242
  if (cachedVersion)
128243
128243
  return cachedVersion;
128244
128244
  if (true) {
128245
- cachedVersion = "0.6.0-next.3";
128245
+ cachedVersion = "0.6.0-next.4";
128246
128246
  return cachedVersion;
128247
128247
  }
128248
128248
  try {
@@ -149105,12 +149105,14 @@ async function runContractsGenerate(options = {}) {
149105
149105
  const extractModel = resolveModel("contract.extract", void 0, repoRoot5);
149106
149106
  const repairModel = resolveModel("contract.repair", void 0, repoRoot5);
149107
149107
  const fallbackModel = resolveFallbackModel(repoRoot5) ?? void 0;
149108
+ let totalSlices = 0;
149109
+ let sliceNum = 0;
149108
149110
  const runner = spawnRunner2({
149109
149111
  concurrency,
149110
149112
  model: extractModel,
149111
149113
  fallbackModel,
149112
149114
  onSliceStart: (s) => {
149113
- O2.step(`extracting ${s.specPath} :: ${s.headingPath.join(" \u2192 ")}`);
149115
+ O2.step(`extracting ${++sliceNum}/${totalSlices} ${s.specPath} :: ${s.headingPath.join(" \u2192 ")}`);
149114
149116
  }
149115
149117
  });
149116
149118
  let result;
@@ -149120,8 +149122,11 @@ async function runContractsGenerate(options = {}) {
149120
149122
  runner,
149121
149123
  models: { extract: extractModel, repair: repairModel, fallback: fallbackModel },
149122
149124
  dryRun: !!options.diff,
149125
+ onSlicesReady: (t2) => {
149126
+ totalSlices = t2;
149127
+ },
149123
149128
  onSliceCacheHit: (s) => {
149124
- O2.message(` cache hit ${s.specPath} :: ${s.headingPath.join(" \u2192 ")}`, { symbol: "\xB7" });
149129
+ O2.message(` cache hit ${++sliceNum}/${totalSlices} ${s.specPath} :: ${s.headingPath.join(" \u2192 ")}`, { symbol: "\xB7" });
149125
149130
  }
149126
149131
  });
149127
149132
  } catch (e) {
@@ -152783,7 +152788,7 @@ async function runHooksRun() {
152783
152788
 
152784
152789
  // tools/cli/src/index.ts
152785
152790
  var program2 = new Command();
152786
- program2.name("truecourse").version("0.6.0-next.3").description("TrueCourse CLI \u2014 analyze your repository and open the dashboard");
152791
+ program2.name("truecourse").version("0.6.0-next.4").description("TrueCourse CLI \u2014 analyze your repository and open the dashboard");
152787
152792
  var dashboardCmd = program2.command("dashboard").description("Start the TrueCourse dashboard and open it in your browser").option("--reconfigure", "Re-prompt for console vs background service mode").option("--service", "Run as a background service (skips mode prompt)").option("--console", "Run in this terminal (skips mode prompt)").action(async (options) => {
152788
152793
  if (options.service && options.console) {
152789
152794
  console.error("error: --service and --console are mutually exclusive");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truecourse",
3
- "version": "0.6.0-next.3",
3
+ "version": "0.6.0-next.4",
4
4
  "description": "Visualize your codebase architecture as an interactive graph",
5
5
  "type": "module",
6
6
  "bin": {
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.3";
156923
+ cachedVersion = "0.6.0-next.4";
156924
156924
  return cachedVersion;
156925
156925
  }
156926
156926
  try {