nerdgram1337 1.6.1 → 1.8.5
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 +2 -1
- package/dist/{chunk-AWVTRON2.js → chunk-2WFLIMQG.js} +11 -3
- package/dist/chunk-3WBI2WV6.js +18 -0
- package/dist/{chunk-LYMG57VV.js → chunk-46CLFN4M.js} +24 -5
- package/dist/{chunk-BCO66AYP.js → chunk-7NPZMMPE.js} +7 -4
- package/dist/chunk-7O4HSURR.js +3396 -0
- package/dist/{chunk-KA5X3YY6.js → chunk-7XBDBMFZ.js} +9 -60
- package/dist/{chunk-JL7RYIQE.js → chunk-ARL7TA3D.js} +902 -440
- package/dist/{chunk-5C6VO4LC.js → chunk-BW6ANOTX.js} +38 -0
- package/dist/chunk-DHVVDJDI.js +470 -0
- package/dist/chunk-DWP7W42J.js +12 -0
- package/dist/{chunk-LXSDAIF4.js → chunk-GD2NZSZO.js} +42 -18
- package/dist/chunk-GI4QATKE.js +87 -0
- package/dist/chunk-GK3V52XM.js +70 -0
- package/dist/chunk-KIK3WXJL.js +959 -0
- package/dist/{chunk-7YIBJCTH.js → chunk-M4HT24R6.js} +22 -9
- package/dist/chunk-M63FV47T.js +14 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-TDN24VZZ.js +196 -0
- package/dist/chunk-TFNQIO7Z.js +21 -0
- package/dist/chunk-TVIG7AQK.js +78 -0
- package/dist/chunk-WYQ4QDCF.js +85 -0
- package/dist/chunk-XC6UP46Q.js +15 -0
- package/dist/cli.js +185 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`nerdgram` is the command-line client for [NerdGram1337](https://github.com/NetworkNerd1337/NerdGram1337), a local app for [Mermaid](https://mermaid.js.org/) diagrams. The npm package name is `nerdgram1337`. The command it installs is `nerdgram`.
|
|
4
4
|
|
|
5
|
-
List, search, and edit diagrams on a NerdGram server that is already running. `lint` and `render` of a `.mmd` file that is already on disk do not need the server.
|
|
5
|
+
List, search, and edit diagrams on a NerdGram server that is already running. `lint` and `render` of a `.mmd` file that is already on disk do not need the server. `convert` of a saved export does not need the server.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -34,6 +34,7 @@ nerdgram search Atlanta
|
|
|
34
34
|
nerdgram get Welcome.mmd -o Welcome.mmd
|
|
35
35
|
nerdgram put Notes.mmd ./Notes.mmd
|
|
36
36
|
nerdgram lint Welcome.mmd
|
|
37
|
+
nerdgram convert netbox export.json -o campus.network.json
|
|
37
38
|
nerdgram diff Welcome.mmd --from current --to current --format md
|
|
38
39
|
nerdgram baseline Welcome.mmd --name "Baseline"
|
|
39
40
|
nerdgram replace CORE-SW1 ATL-CORE-01 --dry-run
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readFile,
|
|
3
3
|
writeFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DHVVDJDI.js";
|
|
5
5
|
import {
|
|
6
6
|
REPO_ROOT,
|
|
7
7
|
ensureDataRoot,
|
|
@@ -11,13 +11,21 @@ import {
|
|
|
11
11
|
resolveAvailablePath,
|
|
12
12
|
resolveSafePath,
|
|
13
13
|
toRelativePath
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-7XBDBMFZ.js";
|
|
15
|
+
import "./chunk-TDN24VZZ.js";
|
|
16
|
+
import "./chunk-GK3V52XM.js";
|
|
17
|
+
import "./chunk-M4HT24R6.js";
|
|
18
|
+
import "./chunk-WCRNLGMN.js";
|
|
19
|
+
import "./chunk-WYQ4QDCF.js";
|
|
20
|
+
import "./chunk-ARL7TA3D.js";
|
|
21
|
+
import "./chunk-M63FV47T.js";
|
|
22
|
+
import "./chunk-BW6ANOTX.js";
|
|
16
23
|
import {
|
|
17
24
|
applyDiagramPatch,
|
|
18
25
|
diagramConfigKey,
|
|
19
26
|
parseDiagram
|
|
20
27
|
} from "./chunk-6LCHDAAN.js";
|
|
28
|
+
import "./chunk-MLKGABMK.js";
|
|
21
29
|
|
|
22
30
|
// server/src/templates.ts
|
|
23
31
|
import fs from "node:fs/promises";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearDiagramLintCache,
|
|
3
|
+
diagramLintSummary,
|
|
4
|
+
invalidateDiagramLint,
|
|
5
|
+
lintWorkspaceCached
|
|
6
|
+
} from "./chunk-TDN24VZZ.js";
|
|
7
|
+
import "./chunk-GK3V52XM.js";
|
|
8
|
+
import "./chunk-M4HT24R6.js";
|
|
9
|
+
import "./chunk-WCRNLGMN.js";
|
|
10
|
+
import "./chunk-BW6ANOTX.js";
|
|
11
|
+
import "./chunk-6LCHDAAN.js";
|
|
12
|
+
import "./chunk-MLKGABMK.js";
|
|
13
|
+
export {
|
|
14
|
+
clearDiagramLintCache,
|
|
15
|
+
diagramLintSummary,
|
|
16
|
+
invalidateDiagramLint,
|
|
17
|
+
lintWorkspaceCached
|
|
18
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildTree,
|
|
3
|
-
readFile
|
|
4
|
-
|
|
3
|
+
readFile,
|
|
4
|
+
skippedUnreadable
|
|
5
|
+
} from "./chunk-DHVVDJDI.js";
|
|
5
6
|
import {
|
|
6
7
|
atomicWriteJson,
|
|
7
8
|
getDataRoot,
|
|
@@ -9,14 +10,24 @@ import {
|
|
|
9
10
|
httpFail,
|
|
10
11
|
readJsonFile,
|
|
11
12
|
rewriteMovedPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-7XBDBMFZ.js";
|
|
14
|
+
import "./chunk-TDN24VZZ.js";
|
|
15
|
+
import {
|
|
16
|
+
warnUnreadable
|
|
17
|
+
} from "./chunk-GK3V52XM.js";
|
|
18
|
+
import "./chunk-M4HT24R6.js";
|
|
19
|
+
import "./chunk-WCRNLGMN.js";
|
|
20
|
+
import "./chunk-WYQ4QDCF.js";
|
|
21
|
+
import "./chunk-ARL7TA3D.js";
|
|
22
|
+
import "./chunk-M63FV47T.js";
|
|
23
|
+
import "./chunk-BW6ANOTX.js";
|
|
14
24
|
import {
|
|
15
25
|
literalLocator,
|
|
16
26
|
matchDiagramSearch,
|
|
17
27
|
parseDiagram,
|
|
18
28
|
searchMatchLabel
|
|
19
29
|
} from "./chunk-6LCHDAAN.js";
|
|
30
|
+
import "./chunk-MLKGABMK.js";
|
|
20
31
|
|
|
21
32
|
// server/src/search.ts
|
|
22
33
|
import path from "node:path";
|
|
@@ -895,7 +906,15 @@ async function searchDiagrams(options) {
|
|
|
895
906
|
}
|
|
896
907
|
const hits = [];
|
|
897
908
|
for (const file of files) {
|
|
898
|
-
|
|
909
|
+
let entry;
|
|
910
|
+
try {
|
|
911
|
+
entry = await entryFor(file, current);
|
|
912
|
+
} catch (err) {
|
|
913
|
+
const skipped = skippedUnreadable(file.path, err);
|
|
914
|
+
if (!skipped) throw err;
|
|
915
|
+
warnUnreadable([skipped]);
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
899
918
|
const match = matchDiagramSearch(
|
|
900
919
|
{
|
|
901
920
|
path: file.path,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
locateParseError
|
|
3
|
-
} from "./chunk-WCRNLGMN.js";
|
|
4
1
|
import {
|
|
5
2
|
httpFail,
|
|
6
3
|
sanitizeThumbnailSvg
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7XBDBMFZ.js";
|
|
5
|
+
import "./chunk-GK3V52XM.js";
|
|
6
|
+
import {
|
|
7
|
+
locateParseError
|
|
8
|
+
} from "./chunk-WCRNLGMN.js";
|
|
9
|
+
import "./chunk-M63FV47T.js";
|
|
8
10
|
import {
|
|
9
11
|
diagramInitConfig,
|
|
10
12
|
withNodeLabelRoom
|
|
11
13
|
} from "./chunk-6LCHDAAN.js";
|
|
14
|
+
import "./chunk-MLKGABMK.js";
|
|
12
15
|
|
|
13
16
|
// server/src/renderDiagram.ts
|
|
14
17
|
import { createRequire } from "node:module";
|