@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.js +10 -5
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Ekene Eze
3
+ Copyright (c) 2026 Thally
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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 Pages",
227
- deploy: () => run(npx, ["wrangler", "pages", "deploy"])
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 runFramework("build", "build");
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: npx wrangler pages deploy\n\n"
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.0",
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": {