@davmash/bygone 0.11.0 → 0.11.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.
@@ -7290,7 +7290,7 @@ var require_changeTour = __commonJS({
7290
7290
  var MAX_CAPTURE_BYTES2 = 8 * 1024 * 1024;
7291
7291
  var MAX_SYMBOL_SOURCE_BYTES2 = 1024 * 1024;
7292
7292
  function buildChangeTourContext3(startPath, options = {}) {
7293
- const range = resolveBranchReviewRange3(startPath, options.headRef, options.baseRef);
7293
+ const range = options.range ?? resolveBranchReviewRange3(startPath, options.headRef, options.baseRef);
7294
7294
  const maxPatchBytes = options.maxPatchBytes ?? DEFAULT_MAX_PATCH_BYTES2;
7295
7295
  const maxTotalPatchBytes = options.maxTotalPatchBytes ?? DEFAULT_MAX_TOTAL_PATCH_BYTES2;
7296
7296
  requirePositiveInteger22(maxPatchBytes, "maxPatchBytes");
@@ -11527,7 +11527,7 @@ __export(changeTourContext_exports, {
11527
11527
  buildChangeTourContext: () => buildChangeTourContext
11528
11528
  });
11529
11529
  function buildChangeTourContext(startPath, options = {}) {
11530
- const range = resolveBranchReviewRange(startPath, options.headRef, options.baseRef);
11530
+ const range = options.range ?? resolveBranchReviewRange(startPath, options.headRef, options.baseRef);
11531
11531
  const maxPatchBytes = options.maxPatchBytes ?? DEFAULT_MAX_PATCH_BYTES;
11532
11532
  const maxTotalPatchBytes = options.maxTotalPatchBytes ?? DEFAULT_MAX_TOTAL_PATCH_BYTES;
11533
11533
  requirePositiveInteger(maxPatchBytes, "maxPatchBytes");
@@ -13297,7 +13297,9 @@ var require_commandSpec = __commonJS({
13297
13297
  "bygone present [<head>] [--base <base>] [--tour <file.bygone>] [--correspondence <artifact.json>]",
13298
13298
  "bygone tour validate <file.bygone> [--json]",
13299
13299
  "bygone tour compile <file.bygone> [--output <tour.json>]",
13300
- "bygone tour context [<head>] [--base <base>] [--output <context.json>] [--correspondence <artifact.json>]",
13300
+ "bygone tour context [<head>] [--base <base>] [--output <context.json>] [--correspondence <artifact.json>] [--dependencies]",
13301
+ "bygone evidence <inspect|import|refresh|tour> <review.json> [--head <revision>] [--output <new-file>]",
13302
+ "bygone dependencies [<head>] [--base <base>] [--json] [--output <graph.json>]",
13301
13303
  "bygone correspondence import <report.json> [<head>] [--base <base>] [--case <id>] --output <artifact.json>",
13302
13304
  "bygone tour coverage <file.bygone> [--json] [--minimum-coverage <0-100>]",
13303
13305
  "bygone tour export <file.bygone> --output <tour.html> [--profile minimal|full] [--runtime embedded|cdn]",
@@ -13308,6 +13310,7 @@ var require_commandSpec = __commonJS({
13308
13310
  "bygone --test"
13309
13311
  ],
13310
13312
  entries: [
13313
+ { id: "evidence", kind: "command", tokens: ["evidence"], description: "Inspect, import, refresh, or present pinned review evidence", argument: "path" },
13311
13314
  {
13312
13315
  id: "review",
13313
13316
  kind: "command",
@@ -13315,6 +13318,20 @@ var require_commandSpec = __commonJS({
13315
13318
  description: "Review a committed branch against its merge base",
13316
13319
  argument: "git-ref"
13317
13320
  },
13321
+ {
13322
+ id: "dependencies",
13323
+ kind: "command",
13324
+ tokens: ["dependencies"],
13325
+ description: "Compare static JS/TS module dependencies at committed revisions",
13326
+ argument: "git-ref"
13327
+ },
13328
+ {
13329
+ id: "dependencyContext",
13330
+ kind: "option",
13331
+ tokens: ["--dependencies"],
13332
+ description: "Include static module dependency evidence in tour context",
13333
+ argument: "none"
13334
+ },
13318
13335
  {
13319
13336
  id: "correspondence",
13320
13337
  kind: "command",
@@ -13587,13 +13604,21 @@ ${historyOptions}
13587
13604
  elif [[ "$previous" == "--output" || "$previous" == "-o" || "$previous" == "--correspondence" ]]; then
13588
13605
  _files
13589
13606
  else
13590
- compadd -- --base --output -o --max-patch-bytes --max-total-patch-bytes --correspondence
13607
+ compadd -- --base --output -o --max-patch-bytes --max-total-patch-bytes --correspondence --dependencies
13591
13608
  _bygone_git_refs
13592
13609
  fi
13593
13610
  elif [[ "$words[3]" == "coverage" || "$words[3]" == "validate" || "$words[3]" == "compile" ]]; then
13594
13611
  _files -g '*.bygone' -g '*.bygone.yaml'
13595
13612
  fi
13596
13613
  ;;
13614
+ dependencies)
13615
+ if [[ "$previous" == "--output" || "$previous" == "-o" ]]; then
13616
+ _files
13617
+ else
13618
+ compadd -- --base --json --output -o
13619
+ _bygone_git_refs
13620
+ fi
13621
+ ;;
13597
13622
  review)
13598
13623
  if [[ "$previous" == ${shellAlternation(tokensFor2("base"))} ]]; then
13599
13624
  _bygone_git_refs
@@ -13681,13 +13706,21 @@ _bygone() {
13681
13706
  COMPREPLY=( $(compgen -f -- "$cur") )
13682
13707
  compopt -o filenames 2>/dev/null || true
13683
13708
  else
13684
- COMPREPLY=( $(compgen -W '--base --output -o --max-patch-bytes --max-total-patch-bytes --correspondence '"$refs" -- "$cur") )
13709
+ COMPREPLY=( $(compgen -W '--base --output -o --max-patch-bytes --max-total-patch-bytes --correspondence --dependencies '"$refs" -- "$cur") )
13685
13710
  fi
13686
13711
  else
13687
13712
  COMPREPLY=( $(compgen -W '--json --output -o' -- "$cur") $(compgen -f -- "$cur") )
13688
13713
  compopt -o filenames 2>/dev/null || true
13689
13714
  fi
13690
13715
  ;;
13716
+ dependencies)
13717
+ if [[ "$prev" == "--output" || "$prev" == "-o" ]]; then
13718
+ COMPREPLY=( $(compgen -f -- "$cur") )
13719
+ compopt -o filenames 2>/dev/null || true
13720
+ else
13721
+ COMPREPLY=( $(compgen -W '--base --json --output -o '"$(_bygone_git_refs)" -- "$cur") )
13722
+ fi
13723
+ ;;
13691
13724
  review)
13692
13725
  refs="$(_bygone_git_refs)"
13693
13726
  if [[ "$prev" =~ ^(${baseTokens})$ ]]; then
@@ -13747,6 +13780,11 @@ complete -F _bygone bygone
13747
13780
  lines.push(`complete -c bygone -n '__fish_use_subcommand' ${option}${argument} -d '${escapeSingleQuoted(entry.description)}'`);
13748
13781
  }
13749
13782
  lines.push(
13783
+ `complete -c bygone -n 'string match -q "*tour context*" -- (commandline -opc)' -l dependencies -d 'Include static module dependency evidence'`,
13784
+ "complete -c bygone -n '__fish_seen_subcommand_from dependencies' -l base -r -a '(__bygone_git_refs)' -d 'Set the dependency comparison base'",
13785
+ "complete -c bygone -n '__fish_seen_subcommand_from dependencies' -l json -d 'Print dependency evidence as JSON'",
13786
+ "complete -c bygone -n '__fish_seen_subcommand_from dependencies' -l output -s o -r -d 'Write dependency evidence'",
13787
+ "complete -c bygone -n '__fish_seen_subcommand_from dependencies' -a '(__bygone_git_refs)' -d 'Git ref'",
13750
13788
  "complete -c bygone -n '__fish_seen_subcommand_from completion' -a 'zsh bash fish' -d 'Shell'",
13751
13789
  "complete -c bygone -n '__fish_seen_subcommand_from tour' -a 'context coverage validate compile export schema' -d 'Tour action'",
13752
13790
  `complete -c bygone -n 'string match -q "*tour context*" -- (commandline -opc)' -l base -r -a '(__bygone_git_refs)' -d 'Set the change-context base ref'`,
@@ -23290,7 +23328,7 @@ var require_package = __commonJS({
23290
23328
  displayName: "Bygone",
23291
23329
  desktopName: "com.davidmashburn.bygone.desktop",
23292
23330
  description: "See how change happened. Visual diff and file history for VS Code.",
23293
- version: "0.11.0",
23331
+ version: "0.11.1",
23294
23332
  author: "David Mashburn",
23295
23333
  license: "MIT",
23296
23334
  private: false,
@@ -23434,6 +23472,32 @@ var require_package = __commonJS({
23434
23472
  command: "bygone.refreshFollowing",
23435
23473
  title: "Refresh Following Comparison",
23436
23474
  category: "Bygone"
23475
+ },
23476
+ {
23477
+ command: "bygone.openStagedInBygone",
23478
+ title: "Open Staged Changes in Bygone",
23479
+ category: "Bygone",
23480
+ icon: "$(diff)"
23481
+ },
23482
+ {
23483
+ command: "bygone.openWorkingInBygone",
23484
+ title: "Open Working Changes in Bygone",
23485
+ category: "Bygone",
23486
+ icon: "$(diff)"
23487
+ },
23488
+ {
23489
+ command: "bygone.compareSymbol",
23490
+ title: "Compare Symbol in Bygone",
23491
+ category: "Bygone",
23492
+ icon: "$(diff)"
23493
+ },
23494
+ {
23495
+ command: "bygone.openEvidenceReview",
23496
+ title: "Bygone: Open Evidence Review"
23497
+ },
23498
+ {
23499
+ command: "bygone.returnToEvidenceReview",
23500
+ title: "Bygone: Return to Evidence Review"
23437
23501
  }
23438
23502
  ],
23439
23503
  menus: {
@@ -23441,6 +23505,14 @@ var require_package = __commonJS({
23441
23505
  {
23442
23506
  command: "bygone.compareSelectedFiles",
23443
23507
  when: "false"
23508
+ },
23509
+ {
23510
+ command: "bygone.openStagedInBygone",
23511
+ when: "false"
23512
+ },
23513
+ {
23514
+ command: "bygone.openWorkingInBygone",
23515
+ when: "false"
23444
23516
  }
23445
23517
  ],
23446
23518
  "explorer/context": [
@@ -23475,6 +23547,33 @@ var require_package = __commonJS({
23475
23547
  command: "bygone.compareActiveFileHistory",
23476
23548
  group: "navigation",
23477
23549
  when: "resourceScheme == file"
23550
+ },
23551
+ {
23552
+ command: "bygone.compareSymbol",
23553
+ when: "resourceScheme == file || resourceScheme == git",
23554
+ group: "navigation"
23555
+ }
23556
+ ],
23557
+ "scm/resourceState/context": [
23558
+ {
23559
+ command: "bygone.openStagedInBygone",
23560
+ when: "scmProvider == git && scmResourceGroup == index && isWorkspaceTrusted && !remoteName",
23561
+ group: "navigation"
23562
+ },
23563
+ {
23564
+ command: "bygone.openStagedInBygone",
23565
+ when: "scmProvider == git && scmResourceGroup == index && isWorkspaceTrusted && !remoteName",
23566
+ group: "inline@2"
23567
+ },
23568
+ {
23569
+ command: "bygone.openWorkingInBygone",
23570
+ when: "scmProvider == git && (scmResourceGroup == workingTree || scmResourceGroup == untracked) && isWorkspaceTrusted && !remoteName",
23571
+ group: "navigation"
23572
+ },
23573
+ {
23574
+ command: "bygone.openWorkingInBygone",
23575
+ when: "scmProvider == git && (scmResourceGroup == workingTree || scmResourceGroup == untracked) && isWorkspaceTrusted && !remoteName",
23576
+ group: "inline@2"
23478
23577
  }
23479
23578
  ]
23480
23579
  },
@@ -23486,6 +23585,16 @@ var require_package = __commonJS({
23486
23585
  default: "",
23487
23586
  scope: "machine",
23488
23587
  description: "Existing absolute path to the local Bygone Desktop executable used for trusted branch and tour hand-off commands."
23588
+ },
23589
+ "bygone.followSymbol": {
23590
+ type: "boolean",
23591
+ default: false,
23592
+ description: "Follow Outline, Go to Symbol and cursor selections within the current comparison (JavaScript/TypeScript)."
23593
+ },
23594
+ "bygone.followScmDiffs": {
23595
+ type: "boolean",
23596
+ default: false,
23597
+ description: "Follow supported native Git diff tabs while following is active. Staged views compare HEAD to index; working views include unsaved text."
23489
23598
  }
23490
23599
  }
23491
23600
  }
@@ -23493,7 +23602,7 @@ var require_package = __commonJS({
23493
23602
  scripts: {
23494
23603
  "vscode:prepublish": "npm run compile",
23495
23604
  clean: "rm -rf out *.vsix",
23496
- typecheck: "tsc -p ./ --noEmit",
23605
+ typecheck: "node ./node_modules/typescript/bin/tsc -p ./ --noEmit",
23497
23606
  compile: "npm run typecheck && node ./scripts/build.mjs",
23498
23607
  "completions:generate": "node ./scripts/generate-completions.mjs",
23499
23608
  "icons:generate": "node ./scripts/generate-icons.mjs",
@@ -23529,8 +23638,8 @@ var require_package = __commonJS({
23529
23638
  "release:verify-macos": "node ./scripts/verify-macos-signing.mjs --require-notarized",
23530
23639
  lint: "eslint . --max-warnings=0",
23531
23640
  "lint:fix": "eslint . --fix",
23532
- watch: "tsc -watch -p ./",
23533
- test: "npm run compile && node ./test/runTests.js && node --test ./test/followBaseline.test.js ./packages/strand/test/*.test.js ./scripts/change-analysis/python-strand.test.js ./scripts/change-analysis/python-features.test.js ./scripts/change-analysis/js-correspondence.test.js ./scripts/change-analysis/javascript-integration.test.js ./scripts/change-analysis/benchmark-correspondence.test.js ./scripts/change-analysis/registration-inventory.test.js ./scripts/change-analysis/refactoring-mappings.test.js ./scripts/change-analysis/analyze-git.test.js ./test/tourSymbol.test.js ./test/changeCorrespondence.test.js ./test/correspondenceTree.test.js ./test/correspondenceDiagnostics.test.js ./test/presentation.test.js ./test/panelOrder.test.js ./test/revisionView.test.js ./test/devVersion.test.js ./test/focusedStrip.test.js ./test/diffRegression.test.js ./test/deepLink.test.js ./test/tourExport.test.js ./test/tourProse.test.js ./test/tourReading.test.js ./test/chapterSummary.test.js ./test/tourFraming.test.js ./test/tourFeedback.test.js ./test/tourZoomSession.test.js ./test/tourComparison.test.js ./test/tourHistory.test.js ./test/changeTourAuthoredModes.test.js ./test/renderCompleteToken.test.js ./test/tourDirectoryOverview.test.js ./test/tourDirectoryEvidence.test.js ./test/workspace*.test.js",
23641
+ watch: "node ./node_modules/typescript/bin/tsc -watch -p ./",
23642
+ test: "npm run compile && node ./test/runTests.js && node --test ./test/followEdits.test.js ./test/dependencyGraph.test.js ./test/moduleDependencies.test.js ./test/followBaseline.test.js ./test/requirements.test.js ./test/reviewWorkspace.test.js ./packages/strand/test/*.test.js ./scripts/change-analysis/python-strand.test.js ./scripts/change-analysis/python-features.test.js ./scripts/change-analysis/js-correspondence.test.js ./scripts/change-analysis/javascript-integration.test.js ./scripts/change-analysis/benchmark-correspondence.test.js ./scripts/change-analysis/registration-inventory.test.js ./scripts/change-analysis/refactoring-mappings.test.js ./scripts/change-analysis/analyze-git.test.js ./test/tourSymbol.test.js ./test/changeCorrespondence.test.js ./test/correspondenceTree.test.js ./test/correspondenceDiagnostics.test.js ./test/presentation.test.js ./test/panelOrder.test.js ./test/revisionView.test.js ./test/devVersion.test.js ./test/focusedStrip.test.js ./test/diffRegression.test.js ./test/deepLink.test.js ./test/tourExport.test.js ./test/tourProse.test.js ./test/tourReading.test.js ./test/chapterSummary.test.js ./test/tourFraming.test.js ./test/tourFeedback.test.js ./test/tourZoomSession.test.js ./test/tourComparison.test.js ./test/tourHistory.test.js ./test/changeTourAuthoredModes.test.js ./test/renderCompleteToken.test.js ./test/tourDirectoryOverview.test.js ./test/tourDirectoryEvidence.test.js ./test/workspace*.test.js",
23534
23643
  "test:diff-renderer": "npm run compile && node scripts/run-electron.mjs standalone/diffRegressionSmoke.js",
23535
23644
  "test:export-smoke": "npm run compile && node scripts/run-electron.mjs standalone/exportSmoke.js && node scripts/run-electron.mjs standalone/tourImageSmoke.js",
23536
23645
  "correspondence:benchmark": "node scripts/change-analysis/benchmark-correspondence.js",
@@ -23637,6 +23746,7 @@ var require_package = __commonJS({
23637
23746
  "@types/vscode": "1.74.0",
23638
23747
  "@vscode/test-electron": "3.1.0",
23639
23748
  "@vscode/vsce": "^4.0.0",
23749
+ "dependency-typescript": "npm:typescript@5.9.3",
23640
23750
  electron: "^43.8.3",
23641
23751
  "electron-builder": "^26.15.3",
23642
23752
  esbuild: "^0.28.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davmash/bygone",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "See how change happened. Visual diff and file history.",
5
5
  "author": "David Mashburn",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "assets": {
5
5
  "web/presenter.css": "sha256-UsJZl/OYwt1v1G57hlkuuvVH3VU2tdT8zz8DdXmEXyA=",
6
6
  "media/webview.css": "sha256-GiajYKzkQfLMRBlFze7TtXtdvxqYAIGukFbgEDZpFdI=",
7
- "web/web-host.js": "sha256-X4Y//onjgzIv0frhnDAhOdOEzjPpUiquJoJh4zRB8oo=",
8
- "media/webview.js": "sha256-pnnG4JuNqHLjkKDQy4kJ1lOtBt7UyPqUSQPIvsur2s4=",
7
+ "web/web-host.js": "sha256-mv6qHdTfoKJP4bcll2Drfj8V1lrjWxRCcJo9WdMvwRs=",
8
+ "media/webview.js": "sha256-HiP4k8ZpfYPODjEEODhUIoiRewVpJJagWSQns4Kw6qk=",
9
9
  "media/editor.worker.js": "sha256-qWbRV7U57PL25iH34w5bTeMJ0D1QDMulvRzYEPBRKnI=",
10
10
  "media/diff.worker.js": "sha256-QphF2PTO5YfP8QFMIUyQsBk3v+w9/Pi6wPsXifCR1aU="
11
11
  }
package/web/index.html CHANGED
@@ -34,6 +34,7 @@
34
34
  <button id="correspondence-tab" type="button" title="Explore inferred symbol mappings across the pinned comparison" data-tour-navigator="symbols" aria-controls="tour-navigator-symbols" aria-selected="false" hidden>Symbols</button>
35
35
  <button type="button" data-tour-navigator="commits" aria-controls="tour-navigator-commits" aria-selected="false" title="Browse revisions">Commits</button>
36
36
  </nav>
37
+ <p id="correspondence-availability" class="history-rail-empty">Symbols unavailable: no validated symbol analysis was supplied for this comparison. Generate correspondence for these exact revisions and reopen with --correspondence. File diffs remain available.</p>
37
38
  <div class="tour-navigator-content">
38
39
  <section id="tour-navigator-tour" class="tour-navigator-panel" data-tour-navigator-panel="tour">
39
40
  <details class="tour-search-disclosure">