@open-agent-toolkit/cli 0.1.16 → 0.1.17
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemod.d.ts","sourceRoot":"","sources":["../../../../src/commands/docs/migrate/codemod.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAqBD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"codemod.d.ts","sourceRoot":"","sources":["../../../../src/commands/docs/migrate/codemod.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAqBD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CA0DjE"}
|
|
@@ -30,10 +30,21 @@ export function convertAdmonitions(content) {
|
|
|
30
30
|
const typeName = match[1].toLowerCase();
|
|
31
31
|
const title = match[2] ?? undefined;
|
|
32
32
|
const gfmType = ADMONITION_TYPE_MAP[typeName] ?? 'NOTE';
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
// GitHub-style alerts (and the Fumadocs alert plugin) do not support a
|
|
34
|
+
// custom title on the marker line. Emit a bare `> [!TYPE]` marker and
|
|
35
|
+
// promote the admonition's title to a bold first body line so it survives
|
|
36
|
+
// rendering instead of being demoted to the generic type label.
|
|
37
|
+
output.push(`> [!${gfmType}]`);
|
|
35
38
|
admonitionsConverted++;
|
|
36
39
|
i++;
|
|
40
|
+
if (title) {
|
|
41
|
+
output.push(`> **${title}**`);
|
|
42
|
+
// Separate the promoted title from the body with a blockquote blank so it
|
|
43
|
+
// renders as its own paragraph — but only when body content follows.
|
|
44
|
+
if (i < lines.length && lines[i].startsWith(' ')) {
|
|
45
|
+
output.push('>');
|
|
46
|
+
}
|
|
47
|
+
}
|
|
37
48
|
while (i < lines.length) {
|
|
38
49
|
const line = lines[i];
|
|
39
50
|
if (line.startsWith(' ')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-agent-toolkit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Open Agent Toolkit CLI",
|
|
6
6
|
"homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/cli",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ora": "^9.0.0",
|
|
35
35
|
"yaml": "2.8.2",
|
|
36
36
|
"zod": "^3.25.76",
|
|
37
|
-
"@open-agent-toolkit/control-plane": "0.1.
|
|
37
|
+
"@open-agent-toolkit/control-plane": "0.1.17"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.10.0",
|