@thallylabs/cli 0.5.2 → 0.5.4
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 +1 -1
- package/dist/index.js +12 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ stays invisible.
|
|
|
26
26
|
| `thally deploy [--prod]` | Build and deploy to a live URL, print agent endpoints |
|
|
27
27
|
| `thally check [--agents] [--fix]` | Lint content + Agent Readiness Score |
|
|
28
28
|
| `thally new <page-id> [--title]` | Create a page and register it in `docs.json` |
|
|
29
|
-
| `thally migrate <github-url> [dir]` | Migrate docs
|
|
29
|
+
| `thally migrate <github-or-docs-url> [dir]` | Migrate a docs repository or public docs site |
|
|
30
30
|
| `thally translate --locale <code>` | Translate content into a locale |
|
|
31
31
|
| `thally mcp` | Start the Model Context Protocol server (stdio) |
|
|
32
32
|
|
package/dist/index.js
CHANGED
|
@@ -278,11 +278,18 @@ async function runDeploy(args) {
|
|
|
278
278
|
import { readFileSync as readFileSync3 } from "fs";
|
|
279
279
|
import Anthropic from "@anthropic-ai/sdk";
|
|
280
280
|
|
|
281
|
-
// ../agent/dist/chunk-
|
|
281
|
+
// ../agent/dist/chunk-7RSLSWEK.js
|
|
282
282
|
import fs from "fs";
|
|
283
283
|
import path3 from "path";
|
|
284
284
|
import { AGENT_BRANCH_PREFIX, DOCS_PREVIEW_LABEL, buildTrackInstruction } from "@thallylabs/mcp/track";
|
|
285
|
-
var
|
|
285
|
+
var DEFAULT_AGENT_MODEL = "claude-sonnet-5";
|
|
286
|
+
function nonEmptyModel(value) {
|
|
287
|
+
return value?.trim() || void 0;
|
|
288
|
+
}
|
|
289
|
+
function resolveAgentModel(explicitModel, configuredModel = process.env.THALLY_AGENT_MODEL, legacyModel = process.env.DOX_AGENT_MODEL) {
|
|
290
|
+
return nonEmptyModel(explicitModel) ?? nonEmptyModel(configuredModel) ?? nonEmptyModel(legacyModel) ?? DEFAULT_AGENT_MODEL;
|
|
291
|
+
}
|
|
292
|
+
var DOCS_AGENT_WORKFLOW_CONTRACT = "thally-track/v3";
|
|
286
293
|
var DOCS_AGENT_WORKFLOW_TEMPLATE = `# Contract: ${DOCS_AGENT_WORKFLOW_CONTRACT}
|
|
287
294
|
name: Thally docs agent
|
|
288
295
|
|
|
@@ -329,7 +336,7 @@ jobs:
|
|
|
329
336
|
- name: Draft docs and open a PR
|
|
330
337
|
env:
|
|
331
338
|
ANTHROPIC_API_KEY: \${{ secrets.ANTHROPIC_API_KEY }}
|
|
332
|
-
THALLY_AGENT_MODEL: \${{ vars.THALLY_AGENT_MODEL }}
|
|
339
|
+
THALLY_AGENT_MODEL: \${{ vars.THALLY_AGENT_MODEL || '${DEFAULT_AGENT_MODEL}' }}
|
|
333
340
|
# A fine-grained PAT / App token with write on this docs repo (and read
|
|
334
341
|
# on your product repos). Falls back to the built-in token.
|
|
335
342
|
GH_TOKEN: \${{ secrets.THALLY_AGENT_TOKEN || secrets.GITHUB_TOKEN }}
|
|
@@ -348,7 +355,7 @@ jobs:
|
|
|
348
355
|
# Existing sites may pin an older CLI that cannot consume the
|
|
349
356
|
# App-resolved private PR context. Keep Track's receiver pinned
|
|
350
357
|
# to the workflow contract version without editing package.json.
|
|
351
|
-
npm install --no-save --package-lock=false --ignore-scripts @thallylabs/cli@0.5.
|
|
358
|
+
npm install --no-save --package-lock=false --ignore-scripts @thallylabs/cli@0.5.3
|
|
352
359
|
node_modules/.bin/thally "$@"
|
|
353
360
|
return
|
|
354
361
|
fi
|
|
@@ -5896,13 +5903,12 @@ function buildRepairPrompt(errors) {
|
|
|
5896
5903
|
...errors.map((e) => `- ${e}`)
|
|
5897
5904
|
].join("\n");
|
|
5898
5905
|
}
|
|
5899
|
-
var DEFAULT_MODEL = "claude-sonnet-5";
|
|
5900
5906
|
function buildPullRequestCreateArgs(title, body, branch, baseBranch) {
|
|
5901
5907
|
return ["pr", "create", "--title", title, "--body", body, "--head", branch, "--base", baseBranch];
|
|
5902
5908
|
}
|
|
5903
5909
|
async function runAgent(client, task, options) {
|
|
5904
5910
|
const { projectDir, mode } = options;
|
|
5905
|
-
const model = options.model
|
|
5911
|
+
const model = resolveAgentModel(options.model);
|
|
5906
5912
|
const maxSteps = options.maxSteps ?? 24;
|
|
5907
5913
|
const emit = options.onEvent ?? (() => {
|
|
5908
5914
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thallylabs/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "The unified thally CLI — author content + config; the framework stays a hidden runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"
|
|
27
|
-
"@thallylabs/mcp": "0.7.
|
|
28
|
-
"
|
|
26
|
+
"@anthropic-ai/sdk": "^0.78.0",
|
|
27
|
+
"@thallylabs/mcp": "0.7.2",
|
|
28
|
+
"create-thally-docs": "0.7.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@thallylabs/agent": "*",
|
|
31
32
|
"@types/node": "^22.0.0",
|
|
32
33
|
"tsup": "^8.0.0",
|
|
33
34
|
"typescript": "^5.0.0",
|
|
34
|
-
"vitest": "^4.0.15"
|
|
35
|
-
"@thallylabs/agent": "*"
|
|
35
|
+
"vitest": "^4.0.15"
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"keywords": [
|