@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 CHANGED
@@ -1,7 +1,9 @@
1
- # `thally` — the unified Thally CLI
1
+ # `thally` CLI
2
2
 
3
- One tool, one mental model. You author **content + config**; the framework
4
- (Next.js) is a hidden runtime you never touch.
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((t) => !t.href && !t.api && t.groups && t.groups.length > 0);
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.26",
4
- "description": "The Thally CLI for authoring knowledge surfaces, tracing product changes, and keeping documentation checked.",
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.25",
28
- "create-thally-docs": "0.10.23"
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
- "agent-native"
46
+ "product-knowledge"
47
47
  ],
48
48
  "repository": {
49
49
  "type": "git",