@thallylabs/cli 0.8.25 → 0.8.28
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/dist/index.js +8 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -172,9 +172,15 @@ function runNewPage(args, cwd = process.cwd()) {
|
|
|
172
172
|
let registered = false;
|
|
173
173
|
try {
|
|
174
174
|
const docs = JSON.parse(readFileSync2(docsJsonPath, "utf8"));
|
|
175
|
-
const tab = docs.tabs?.find((
|
|
175
|
+
const tab = docs.tabs?.find((candidate) => !candidate.href && !candidate.api && (candidate.pages?.length || candidate.groups?.length));
|
|
176
|
+
if (tab?.pages) {
|
|
177
|
+
if (!tab.pages.includes(normalized)) tab.pages.push(normalized);
|
|
178
|
+
writeFileSync(docsJsonPath, `${JSON.stringify(docs, null, 2)}
|
|
179
|
+
`, "utf8");
|
|
180
|
+
registered = true;
|
|
181
|
+
}
|
|
176
182
|
const group = tab?.groups?.[tab.groups.length - 1];
|
|
177
|
-
if (group) {
|
|
183
|
+
if (!registered && group) {
|
|
178
184
|
group.pages = group.pages ?? [];
|
|
179
185
|
if (!group.pages.includes(normalized)) group.pages.push(normalized);
|
|
180
186
|
writeFileSync(docsJsonPath, `${JSON.stringify(docs, null, 2)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thallylabs/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.28",
|
|
4
4
|
"description": "The Thally CLI for authoring knowledge surfaces, tracing product changes, and keeping documentation checked.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
27
|
-
"@thallylabs/mcp": "0.10.
|
|
28
|
-
"create-thally-docs": "0.10.
|
|
27
|
+
"@thallylabs/mcp": "0.10.27",
|
|
28
|
+
"create-thally-docs": "0.10.25"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@thallylabs/agent": "*",
|