memd-cli 3.1.2 → 3.2.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.
- package/.claude/settings.local.json +6 -1
- package/package.json +2 -2
- package/test/memd.test.js +1 -1
- package/test/test-subgraph.md +26 -0
- package/test/poc_md.ts +0 -8
- package/test/poc_mermaid.ts +0 -17
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
"Bash(printf:*)",
|
|
18
18
|
"WebFetch(domain:registry.npmjs.org)",
|
|
19
19
|
"WebFetch(domain:api.github.com)",
|
|
20
|
-
"Bash(mkdir:*)"
|
|
20
|
+
"Bash(mkdir:*)",
|
|
21
|
+
"Bash(# Restore original dist\ncp node_modules/@ktrysmt/beautiful-mermaid/dist/index.js.bak node_modules/@ktrysmt/beautiful-mermaid/dist/index.js && rm node_modules/@ktrysmt/beautiful-mermaid/dist/index.js.bak && rm -f debug-mermaid*.mjs bm-debug.mjs)",
|
|
22
|
+
"Bash(cp dist/index.js.bak dist/index.js)",
|
|
23
|
+
"Bash(rm -f dist/index.js.debug)",
|
|
24
|
+
"Bash(rm -f pnpm-lock.yaml)",
|
|
25
|
+
"Bash(rm -rf node_modules)"
|
|
21
26
|
]
|
|
22
27
|
}
|
|
23
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memd-cli",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "main.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "vitest run --maxConcurrency=20"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ktrysmt/beautiful-mermaid": "1.
|
|
13
|
+
"@ktrysmt/beautiful-mermaid": "1.4.1",
|
|
14
14
|
"chalk": "^5.6.2",
|
|
15
15
|
"commander": "^14.0.3",
|
|
16
16
|
"marked": "^17.0.4",
|
package/test/memd.test.js
CHANGED
|
@@ -26,7 +26,7 @@ function runSync(args) {
|
|
|
26
26
|
describe('memd CLI', () => {
|
|
27
27
|
it.concurrent('--version', async () => {
|
|
28
28
|
const output = await run(['-v'])
|
|
29
|
-
expect(output).toContain('3.1
|
|
29
|
+
expect(output).toContain('3.2.1')
|
|
30
30
|
})
|
|
31
31
|
|
|
32
32
|
it.concurrent('--help', async () => {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
```mermaid
|
|
2
|
+
graph TD
|
|
3
|
+
subgraph WS1["WS1: Blog Publication"]
|
|
4
|
+
B1["Blog #1-6<br>FISC 13th Analysis"]
|
|
5
|
+
B7["Blog #7<br>Cross-Mapping<br>Methods and Challenges"]
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
subgraph WS3["WS3: CODE BLUE CFP"]
|
|
9
|
+
IR["NIST IR 8477<br>Methodology Notes<br>(internal research)"]
|
|
10
|
+
CE["3.3 CIS-NIST-ISO<br>Prior Art Review"]
|
|
11
|
+
AB["3.4 CFP Abstract<br>Draft"]
|
|
12
|
+
SUB["3.12 CFP Submission<br>Jul 10"]
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
subgraph WS4["WS4: C3a SaaS"]
|
|
16
|
+
OSCAL["OSCAL Mapping Model<br>Data Format"]
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
B1 -->|"Establishes<br>domain expertise"| B7
|
|
20
|
+
B7 -->|"Demonstrates<br>practical experience"| AB
|
|
21
|
+
IR -->|"Provides<br>theoretical framework"| AB
|
|
22
|
+
CE -->|"Positions<br>novelty"| AB
|
|
23
|
+
AB --> SUB
|
|
24
|
+
IR -->|"OSCAL compatibility<br>requirement"| OSCAL
|
|
25
|
+
B7 -.->|"Blog #7 references<br>IR 8477 methodology"| IR
|
|
26
|
+
```
|
package/test/poc_md.ts
DELETED
package/test/poc_mermaid.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { renderMermaid, renderMermaidAscii } from 'beautiful-mermaid';
|
|
2
|
-
|
|
3
|
-
const mermaidCode = `
|
|
4
|
-
flowchart TD
|
|
5
|
-
A[Start] --> B{Decision?}
|
|
6
|
-
B -->|Yes| C[Action]
|
|
7
|
-
B -->|No| D[End]
|
|
8
|
-
C --> D
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
// const asciiArt = await renderMermaid(mermaidCode, {
|
|
12
|
-
// bg: "#27272A",
|
|
13
|
-
// fg: "#FFFFFF",
|
|
14
|
-
// });
|
|
15
|
-
const asciiArt = await renderMermaidAscii(mermaidCode, {});
|
|
16
|
-
|
|
17
|
-
console.log(asciiArt);
|