-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #595 from desci-labs/m0ar/history-debugger
toolshed: add history visualiser tool
- Loading branch information
Showing
10 changed files
with
1,000 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# The Toolshed 🔩 | ||
Zero warranty scripts and misc that could prove useful in the future. | ||
|
||
These tools are not necessarily maintained or kept up-to-date. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# History Debugger | ||
Utility to compare token and stream histories, useful for investigating migrations and version ordering. | ||
|
||
## Setup | ||
Install dependencies: | ||
|
||
```bash | ||
npm ci | ||
``` | ||
|
||
If you want the rendered SVG graph, you need to make sure `dot` is available in your `PATH`, which probably means installing `graphviz` with your package manager. | ||
|
||
## Use | ||
To debug a node, you need its (legacy) dPID, and it's streamID. With these at hand, run the script like so: | ||
|
||
```bash | ||
DPID=149 STREAM=kjzl6kcym7w8y6wtboiio6jmbpml97m04bji4zphyboqhsckz75qg48efglcjox npx tsx src/index.ts | ||
``` | ||
|
||
This will generate three files in the `outputs` directory: | ||
- `149.md`: markdown table with metadata and version info | ||
- `149.dot`: raw dot graph for both histories | ||
- `149.svg`: rendered SVG from the dot graph |
Oops, something went wrong.