@donotdev/cli 0.0.23 → 0.0.24

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.
@@ -35,7 +35,7 @@
35
35
  "@donotdev/core": {
36
36
  "description": "Core framework package",
37
37
  "packages": {
38
- "@donotdev/core": "^0.0.30"
38
+ "@donotdev/core": "^0.0.32"
39
39
  }
40
40
  },
41
41
  "@donotdev/crud": {
@@ -418,7 +418,7 @@
418
418
  "@donotdev/cli": {
419
419
  "description": "Cli package",
420
420
  "packages": {
421
- "@donotdev/cli": "^0.0.23"
421
+ "@donotdev/cli": "^0.0.24"
422
422
  }
423
423
  },
424
424
  "@donotdev/mcp-server": {
@@ -16754,6 +16754,10 @@ async function uploadFiles(files, token, orgId) {
16754
16754
  });
16755
16755
  if (!res.ok) {
16756
16756
  const body = await res.text();
16757
+ log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
16758
+ log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
16759
+ log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
16760
+ log.warn(` Response: ${body}`);
16757
16761
  throw new Error(
16758
16762
  `File upload failed for ${file.relativePath} (${res.status}): ${body}`
16759
16763
  );
@@ -16765,6 +16769,7 @@ async function uploadFiles(files, token, orgId) {
16765
16769
  async function createDeployment(files, token, orgId, projectId) {
16766
16770
  const q2 = teamQuery(orgId);
16767
16771
  const body = {
16772
+ name: projectId,
16768
16773
  project: projectId,
16769
16774
  target: "production",
16770
16775
  files: files.map((f) => ({
@@ -16837,6 +16842,9 @@ async function deployVercelFrontend(appDir, _config) {
16837
16842
  throw new Error(`dist/ not found at ${distDir}. Run build first.`);
16838
16843
  }
16839
16844
  log.debug("Using Vercel REST API (token-based, no CLI)");
16845
+ log.info(`Vercel org: ${orgId}`);
16846
+ log.info(`Vercel project: ${projectId}`);
16847
+ log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
16840
16848
  log.info("Collecting dist/ files...");
16841
16849
  const files = await collectDistFiles(distDir);
16842
16850
  if (files.length === 0) {
@@ -16754,6 +16754,10 @@ async function uploadFiles(files, token, orgId) {
16754
16754
  });
16755
16755
  if (!res.ok) {
16756
16756
  const body = await res.text();
16757
+ log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
16758
+ log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
16759
+ log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
16760
+ log.warn(` Response: ${body}`);
16757
16761
  throw new Error(
16758
16762
  `File upload failed for ${file.relativePath} (${res.status}): ${body}`
16759
16763
  );
@@ -16765,6 +16769,7 @@ async function uploadFiles(files, token, orgId) {
16765
16769
  async function createDeployment(files, token, orgId, projectId) {
16766
16770
  const q2 = teamQuery(orgId);
16767
16771
  const body = {
16772
+ name: projectId,
16768
16773
  project: projectId,
16769
16774
  target: "production",
16770
16775
  files: files.map((f) => ({
@@ -16837,6 +16842,9 @@ async function deployVercelFrontend(appDir, _config) {
16837
16842
  throw new Error(`dist/ not found at ${distDir}. Run build first.`);
16838
16843
  }
16839
16844
  log.debug("Using Vercel REST API (token-based, no CLI)");
16845
+ log.info(`Vercel org: ${orgId}`);
16846
+ log.info(`Vercel project: ${projectId}`);
16847
+ log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
16840
16848
  log.info("Collecting dist/ files...");
16841
16849
  const files = await collectDistFiles(distDir);
16842
16850
  if (files.length === 0) {
package/dist/bin/dndev.js CHANGED
@@ -858,7 +858,7 @@ function registerCommand(program2, def, action) {
858
858
  }
859
859
 
860
860
  // packages/cli/src/bin/dndev.mjs
861
- var CLI_VERSION = true ? "0.0.23" : "0.0.0";
861
+ var CLI_VERSION = true ? "0.0.24" : "0.0.0";
862
862
  var args = process.argv.slice(2);
863
863
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
864
864
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -18940,6 +18940,10 @@ async function uploadFiles(files, token, orgId) {
18940
18940
  });
18941
18941
  if (!res.ok) {
18942
18942
  const body = await res.text();
18943
+ log.warn(`Upload failed: ${file.relativePath} (${res.status})`);
18944
+ log.warn(` URL: ${VERCEL_API}/v2/files${q2}`);
18945
+ log.warn(` SHA: ${file.sha}, Size: ${file.size}`);
18946
+ log.warn(` Response: ${body}`);
18943
18947
  throw new Error(
18944
18948
  `File upload failed for ${file.relativePath} (${res.status}): ${body}`
18945
18949
  );
@@ -18951,6 +18955,7 @@ async function uploadFiles(files, token, orgId) {
18951
18955
  async function createDeployment(files, token, orgId, projectId) {
18952
18956
  const q2 = teamQuery(orgId);
18953
18957
  const body = {
18958
+ name: projectId,
18954
18959
  project: projectId,
18955
18960
  target: "production",
18956
18961
  files: files.map((f) => ({
@@ -19023,6 +19028,9 @@ async function deployVercelFrontend(appDir, _config) {
19023
19028
  throw new Error(`dist/ not found at ${distDir}. Run build first.`);
19024
19029
  }
19025
19030
  log.debug("Using Vercel REST API (token-based, no CLI)");
19031
+ log.info(`Vercel org: ${orgId}`);
19032
+ log.info(`Vercel project: ${projectId}`);
19033
+ log.info(`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`);
19026
19034
  log.info("Collecting dist/ files...");
19027
19035
  const files = await collectDistFiles(distDir);
19028
19036
  if (files.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,