@thallylabs/cli 0.5.0 → 0.5.1
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/LICENSE +1 -1
- package/dist/index.js +10 -5
- package/package.json +3 -3
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -219,12 +219,17 @@ var ADAPTERS = {
|
|
|
219
219
|
vercel: {
|
|
220
220
|
id: "vercel",
|
|
221
221
|
label: "Vercel",
|
|
222
|
+
build: () => runFramework("build", "build"),
|
|
222
223
|
deploy: (prod) => run(npx, ["vercel", "deploy", ...prod ? ["--prod"] : []])
|
|
223
224
|
},
|
|
224
225
|
cloudflare: {
|
|
225
226
|
id: "cloudflare",
|
|
226
|
-
label: "Cloudflare
|
|
227
|
-
|
|
227
|
+
label: "Cloudflare Workers",
|
|
228
|
+
// The OpenNext build both compiles Next.js and adapts its output for
|
|
229
|
+
// workerd. Running the generic Next build first would perform the most
|
|
230
|
+
// expensive part twice and would not validate the actual edge artifact.
|
|
231
|
+
build: () => run(npx, ["opennextjs-cloudflare", "build"]),
|
|
232
|
+
deploy: () => run(npx, ["opennextjs-cloudflare", "deploy"])
|
|
228
233
|
}
|
|
229
234
|
};
|
|
230
235
|
function selectAdapter(args) {
|
|
@@ -239,11 +244,11 @@ async function confirmAgentReadiness() {
|
|
|
239
244
|
await run(npm, ["run", "check:agents"]);
|
|
240
245
|
}
|
|
241
246
|
async function runDeploy(args) {
|
|
247
|
+
const adapter = selectAdapter(args);
|
|
242
248
|
process.stdout.write("\n Building production site...\n");
|
|
243
|
-
const buildExit = await
|
|
249
|
+
const buildExit = await adapter.build();
|
|
244
250
|
if (buildExit !== 0) return buildExit;
|
|
245
251
|
await confirmAgentReadiness();
|
|
246
|
-
const adapter = selectAdapter(args);
|
|
247
252
|
const prod = args.hasFlag("--prod", "--production");
|
|
248
253
|
process.stdout.write(`
|
|
249
254
|
Deploying with ${adapter.label}...
|
|
@@ -251,7 +256,7 @@ async function runDeploy(args) {
|
|
|
251
256
|
const deployExit = await adapter.deploy(prod);
|
|
252
257
|
if (deployExit !== 0) {
|
|
253
258
|
process.stdout.write(
|
|
254
|
-
"\n Deploy did not complete. To deploy manually:\n \u2022 Vercel: npx vercel deploy --prod\n \u2022 Cloudflare:
|
|
259
|
+
"\n Deploy did not complete. To deploy manually:\n \u2022 Vercel: npx vercel deploy --prod\n \u2022 Cloudflare: npm run deploy:cloudflare\n\n"
|
|
255
260
|
);
|
|
256
261
|
return deployExit;
|
|
257
262
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thallylabs/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The unified thally CLI — author content + config; the framework stays a hidden runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"create-thally-docs": "
|
|
27
|
-
"@thallylabs/mcp": "
|
|
26
|
+
"create-thally-docs": "0.7.4",
|
|
27
|
+
"@thallylabs/mcp": "0.7.1",
|
|
28
28
|
"@anthropic-ai/sdk": "^0.78.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|