@thallylabs/cli 0.8.26 → 0.8.29
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 +5 -3
- package/dist/index.js +8 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
# `thally`
|
|
1
|
+
# `thally` CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Use one CLI to scaffold, write, check, migrate, and publish Thally docs. You
|
|
4
|
+
author **content + config** while Thally keeps the Next.js runtime out of your
|
|
5
|
+
way. The same toolchain can trace a product change into documentation work your
|
|
6
|
+
team reviews before it publishes.
|
|
5
7
|
|
|
6
8
|
## The model
|
|
7
9
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thallylabs/cli",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.29",
|
|
4
|
+
"description": "CLI for publishing Thally docs from Git and turning product changes into evidence-backed updates for human review.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18"
|
|
@@ -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.28",
|
|
28
|
+
"create-thally-docs": "0.10.26"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@thallylabs/agent": "*",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"mdx",
|
|
44
44
|
"nextjs",
|
|
45
45
|
"ai",
|
|
46
|
-
"
|
|
46
|
+
"product-knowledge"
|
|
47
47
|
],
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|