@mediamonks/canopy-cli 0.7.18 → 0.7.19

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.
@@ -1,6 +1,6 @@
1
1
  import { c as resolveProject, o as projectFlagArgs } from "./site-BFaWfSVu.mjs";
2
- import { a as unwrap, d as withContext, i as requireTty, r as reportErrors, s as apiDataRequest } from "./ui-DLZNEen6.mjs";
3
- import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-kKKDlR_H.mjs";
2
+ import { a as unwrap, d as withContext, i as requireTty, r as reportErrors, s as apiDataRequest } from "./ui--atbZ-TM.mjs";
3
+ import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-Bg9FEGFh.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  import { readFileSync, writeFileSync } from "node:fs";
6
6
  import * as p from "@clack/prompts";
@@ -1,6 +1,6 @@
1
1
  import { a as projectDirArgs, c as resolveProject, l as stagingUrl, n as siteConfig, o as projectFlagArgs, s as projectUrl, u as tryReadCanopyJson } from "./site-BFaWfSVu.mjs";
2
- import { a as unwrap, c as apiDownload, d as withContext, l as apiRequest, r as reportErrors, s as apiDataRequest, t as formatDateTime } from "./ui-DLZNEen6.mjs";
3
- import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-kKKDlR_H.mjs";
2
+ import { a as unwrap, c as apiDownload, d as withContext, l as apiRequest, r as reportErrors, s as apiDataRequest, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
+ import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-Bg9FEGFh.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  import { mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
6
6
  import { tmpdir } from "node:os";
@@ -0,0 +1,2 @@
1
+ import { t as devCommand } from "./dev-DtEwiNYi.mjs";
2
+ export { devCommand };
@@ -1,6 +1,6 @@
1
1
  import { a as projectDirArgs, c as resolveProject, i as projectDialect, n as siteConfig, u as tryReadCanopyJson } from "./site-BFaWfSVu.mjs";
2
- import { d as withContext, l as apiRequest, o as ApiError, r as reportErrors, t as formatDateTime } from "./ui-DLZNEen6.mjs";
3
- import { r as readMigrationFiles } from "./migrations-kKKDlR_H.mjs";
2
+ import { d as withContext, l as apiRequest, o as ApiError, r as reportErrors, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
+ import { r as readMigrationFiles } from "./migrations-Bg9FEGFh.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { defineCommand } from "citty";
6
6
  import { existsSync } from "node:fs";
@@ -165,7 +165,7 @@ async function devRemote(flags, slug) {
165
165
  async function devLocal(flags, slug) {
166
166
  let dump;
167
167
  if (flags.pull) {
168
- const { fetchProjectDump } = await import("./local-dAQdVFEK.mjs");
168
+ const { fetchProjectDump } = await import("./local-CKRZur_5.mjs");
169
169
  console.log(`Pulling a fresh export of ${slug}${flags.staging ? " [staging]" : ""}…`);
170
170
  dump = await fetchProjectDump(slug, flags.staging ? "staging" : "live");
171
171
  }
@@ -180,7 +180,7 @@ async function devLocal(flags, slug) {
180
180
  const reason = err instanceof ApiError ? err.explain().why : String(err);
181
181
  console.log(`Note: ai/services will be unavailable — could not reach the platform (${reason}).`);
182
182
  }
183
- const { createSandbox } = await import("./local-dAQdVFEK.mjs");
183
+ const { createSandbox } = await import("./local-CKRZur_5.mjs");
184
184
  const sandbox = await createSandbox({
185
185
  slug,
186
186
  persistDir: join(flags.dir, ".canopy", "local"),
@@ -1,7 +1,7 @@
1
- import { t as version } from "./package-x-_qF58q.mjs";
1
+ import { t as version } from "./package-qe7a3VEV.mjs";
2
2
  import { n as siteConfig } from "./site-BFaWfSVu.mjs";
3
3
  import { i as latestKnownVersion, r as compareSemver } from "./version-check-CcsA1QjI.mjs";
4
- import { r as reportErrors } from "./ui-DLZNEen6.mjs";
4
+ import { r as reportErrors } from "./ui--atbZ-TM.mjs";
5
5
  import { defineCommand } from "citty";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
7
7
  import { homedir } from "node:os";
@@ -1,5 +1,5 @@
1
1
  import { a as projectDirArgs, c as resolveProject } from "./site-BFaWfSVu.mjs";
2
- import { a as unwrap, i as requireTty, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui-DLZNEen6.mjs";
2
+ import { a as unwrap, i as requireTty, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import * as p from "@clack/prompts";
5
5
  //#region src/egress.ts
@@ -1,6 +1,6 @@
1
- import { t as version } from "./package-x-_qF58q.mjs";
1
+ import { t as version } from "./package-qe7a3VEV.mjs";
2
2
  import { a as projectDirArgs, c as resolveProject, d as tryResolveProject, n as siteConfig, u as tryReadCanopyJson } from "./site-BFaWfSVu.mjs";
3
- import { c as apiDownload, l as apiRequest, r as reportErrors, t as formatDateTime, u as apiUpload } from "./ui-DLZNEen6.mjs";
3
+ import { c as apiDownload, l as apiRequest, r as reportErrors, t as formatDateTime, u as apiUpload } from "./ui--atbZ-TM.mjs";
4
4
  import { defineCommand } from "citty";
5
5
  import { basename, extname, join } from "node:path";
6
6
  import { readFile, writeFile } from "node:fs/promises";
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "./package-x-_qF58q.mjs";
2
+ import { t as version } from "./package-qe7a3VEV.mjs";
3
3
  import { r as siteHeaderLine, t as setInvocationProfile } from "./site-BFaWfSVu.mjs";
4
4
  import { a as notifyOfUpdate, o as runRefresh } from "./version-check-CcsA1QjI.mjs";
5
5
  import { defineCommand, runMain } from "citty";
@@ -60,30 +60,30 @@ const main = defineCommand({
60
60
  description: "canopy — create and deploy vibecoded projects"
61
61
  },
62
62
  subCommands: {
63
- login: () => import("./login-CU0pev0k.mjs").then((m) => m.loginCommand),
64
- whoami: () => import("./login-CU0pev0k.mjs").then((m) => m.whoamiCommand),
65
- logout: () => import("./login-CU0pev0k.mjs").then((m) => m.logoutCommand),
66
- create: () => import("./projects-TE1PVwMy.mjs").then((m) => m.createCommand),
67
- init: () => import("./projects-TE1PVwMy.mjs").then((m) => m.initCommand),
68
- projects: () => import("./projects-TE1PVwMy.mjs").then((m) => m.projectsCommand),
69
- delete: () => import("./projects-TE1PVwMy.mjs").then((m) => m.deleteCommand),
70
- dev: () => import("./dev-A2doKMCS.mjs").then((m) => m.devCommand),
71
- deploy: () => import("./deploy-DID3xhMJ.mjs").then((m) => m.deployCommand),
72
- promote: () => import("./deploy-DID3xhMJ.mjs").then((m) => m.promoteCommand),
73
- staging: () => import("./staging-Cw-Rzbsj.mjs").then((m) => m.stagingCommand),
74
- rollback: () => import("./deploy-DID3xhMJ.mjs").then((m) => m.rollbackCommand),
75
- download: () => import("./deploy-DID3xhMJ.mjs").then((m) => m.downloadCommand),
76
- token: () => import("./token-BqxRIRkT.mjs").then((m) => m.tokenCommand),
77
- egress: () => import("./egress-DDM-_7Yo.mjs").then((m) => m.egressCommand),
78
- schedule: () => import("./schedule-Blldchmj.mjs").then((m) => m.scheduleCommand),
79
- feedback: () => import("./feedback-DX99gDFp.mjs").then((m) => m.feedbackCommand),
80
- db: () => import("./db-BAaqh_2O.mjs").then((m) => m.dbCommand),
81
- usage: () => import("./usage-2cGnpSVc.mjs").then((m) => m.usageCommand),
82
- open: () => import("./open-B5XHmEmv.mjs").then((m) => m.openCommand),
83
- docs: () => import("./docs-DP_p_mmy.mjs").then((m) => m.docsCommand),
84
- skill: () => import("./skill-CSFhZmBk.mjs").then((m) => m.skillCommand),
85
- upgrade: () => import("./upgrade-DcU4YMr_.mjs").then((m) => m.upgradeCommand),
86
- logs: () => import("./logs-D60VRbHZ.mjs").then((m) => m.logsCommand)
63
+ login: () => import("./login-D9eO1s7W.mjs").then((m) => m.loginCommand),
64
+ whoami: () => import("./login-D9eO1s7W.mjs").then((m) => m.whoamiCommand),
65
+ logout: () => import("./login-D9eO1s7W.mjs").then((m) => m.logoutCommand),
66
+ create: () => import("./projects-1r5387ui.mjs").then((m) => m.createCommand),
67
+ init: () => import("./projects-1r5387ui.mjs").then((m) => m.initCommand),
68
+ projects: () => import("./projects-1r5387ui.mjs").then((m) => m.projectsCommand),
69
+ delete: () => import("./projects-1r5387ui.mjs").then((m) => m.deleteCommand),
70
+ dev: () => import("./dev-DjkK-50R.mjs").then((m) => m.devCommand),
71
+ deploy: () => import("./deploy-DCggsLD7.mjs").then((m) => m.deployCommand),
72
+ promote: () => import("./deploy-DCggsLD7.mjs").then((m) => m.promoteCommand),
73
+ staging: () => import("./staging-CdpV2YHB.mjs").then((m) => m.stagingCommand),
74
+ rollback: () => import("./deploy-DCggsLD7.mjs").then((m) => m.rollbackCommand),
75
+ download: () => import("./deploy-DCggsLD7.mjs").then((m) => m.downloadCommand),
76
+ token: () => import("./token-C8Bmzwfl.mjs").then((m) => m.tokenCommand),
77
+ egress: () => import("./egress-BhbQfjjV.mjs").then((m) => m.egressCommand),
78
+ schedule: () => import("./schedule-DK_Cv6Xf.mjs").then((m) => m.scheduleCommand),
79
+ feedback: () => import("./feedback-DBgUpmDC.mjs").then((m) => m.feedbackCommand),
80
+ db: () => import("./db-TaSLpQZ5.mjs").then((m) => m.dbCommand),
81
+ usage: () => import("./usage-CRpVLLi6.mjs").then((m) => m.usageCommand),
82
+ open: () => import("./open-D7f1wNn3.mjs").then((m) => m.openCommand),
83
+ docs: () => import("./docs-CKZV1X-B.mjs").then((m) => m.docsCommand),
84
+ skill: () => import("./skill-DW68KWTY.mjs").then((m) => m.skillCommand),
85
+ upgrade: () => import("./upgrade-DNOIy4g3.mjs").then((m) => m.upgradeCommand),
86
+ logs: () => import("./logs-Beqz--Df.mjs").then((m) => m.logsCommand)
87
87
  }
88
88
  });
89
89
  if (process.argv[2] !== "upgrade") notifyOfUpdate(version);
@@ -1,6 +1,6 @@
1
- import { s as apiDataRequest } from "./ui-DLZNEen6.mjs";
1
+ import { s as apiDataRequest } from "./ui--atbZ-TM.mjs";
2
2
  import { n as META_COLUMNS, r as blobRouter, t as dbRouter } from "./src-Bu4Ze32I.mjs";
3
- import { n as rewriteApiPath } from "./dev-CjaomJ2D.mjs";
3
+ import { n as rewriteApiPath } from "./dev-DtEwiNYi.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
6
6
  import { dirname, join, relative, sep } from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { _ as writeConfigFile, f as clearAllProfileTokens, g as upsertProfileAuth, h as setActiveProfile, m as readConfigFile, n as siteConfig, p as listBakedProfiles, v as getBakedProfile, y as isProfileId } from "./site-BFaWfSVu.mjs";
2
- import { n as openBrowser, r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { n as openBrowser, r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import * as p from "@clack/prompts";
5
5
  import { createHash, randomBytes } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  import { c as resolveProject, o as projectFlagArgs } from "./site-BFaWfSVu.mjs";
2
- import { d as withContext, l as apiRequest, r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { d as withContext, l as apiRequest, r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/logs.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { u as tryReadCanopyJson } from "./site-BFaWfSVu.mjs";
2
- import { s as apiDataRequest } from "./ui-DLZNEen6.mjs";
2
+ import { s as apiDataRequest } from "./ui--atbZ-TM.mjs";
3
3
  import { readFileSync, readdirSync } from "node:fs";
4
4
  import { join, resolve } from "node:path";
5
5
  //#region src/migrations.ts
@@ -1,5 +1,5 @@
1
1
  import { a as projectDirArgs, c as resolveProject, l as stagingUrl, s as projectUrl } from "./site-BFaWfSVu.mjs";
2
- import { n as openBrowser, r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { n as openBrowser, r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/open.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.7.18";
2
+ var version = "0.7.19";
3
3
  //#endregion
4
4
  export { version as t };
@@ -1,5 +1,5 @@
1
1
  import { n as siteConfig, s as projectUrl, u as tryReadCanopyJson } from "./site-BFaWfSVu.mjs";
2
- import { a as unwrap, i as requireTty, l as apiRequest, r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { a as unwrap, i as requireTty, l as apiRequest, r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
5
5
  import { join, relative, resolve, sep } from "node:path";
@@ -1,5 +1,5 @@
1
1
  import { c as resolveProject, o as projectFlagArgs } from "./site-BFaWfSVu.mjs";
2
- import { d as withContext, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui-DLZNEen6.mjs";
2
+ import { d as withContext, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/schedule.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { t as version } from "./package-x-_qF58q.mjs";
2
- import { r as reportErrors } from "./ui-DLZNEen6.mjs";
1
+ import { t as version } from "./package-qe7a3VEV.mjs";
2
+ import { r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import { cpSync, existsSync, mkdirSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
5
5
  import { homedir } from "node:os";
@@ -1,5 +1,5 @@
1
1
  import { c as resolveProject, l as stagingUrl, o as projectFlagArgs, s as projectUrl } from "./site-BFaWfSVu.mjs";
2
- import { a as unwrap, d as withContext, i as requireTty, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui-DLZNEen6.mjs";
2
+ import { a as unwrap, d as withContext, i as requireTty, l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import * as p from "@clack/prompts";
5
5
  //#region src/staging.ts
@@ -1,5 +1,5 @@
1
1
  import { a as projectDirArgs, c as resolveProject, o as projectFlagArgs } from "./site-BFaWfSVu.mjs";
2
- import { l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui-DLZNEen6.mjs";
2
+ import { l as apiRequest, r as reportErrors, t as formatDateTime } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  const tokenCommand = defineCommand({
5
5
  meta: {
@@ -82,6 +82,10 @@ const ERROR_COPY = {
82
82
  why: "the database rejected the restore while executing the SQL",
83
83
  fix: "Fix the SQL the server reported above, then retry. A snapshot (`canopy db snapshot`) first is safest."
84
84
  },
85
+ staging_provision_failed: {
86
+ why: "setting up the staging copy of the live database failed",
87
+ fix: "The detail above is the platform's own error. If it names a limit, retrying won't help — file it with `canopy feedback report`; otherwise retry in a moment."
88
+ },
85
89
  invalid_description: {
86
90
  why: "the description is invalid (at most 1000 characters)",
87
91
  fix: "Shorten the description to 1000 characters or fewer."
@@ -1,5 +1,5 @@
1
1
  import { t as PACKAGE_NAME } from "./version-check-CcsA1QjI.mjs";
2
- import { r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  import { spawn } from "node:child_process";
5
5
  import { fileURLToPath } from "node:url";
@@ -112,7 +112,7 @@ const upgradeCommand = defineCommand({
112
112
  const spec = `${PACKAGE_NAME}@${args.version ?? "latest"}`;
113
113
  const command = pmCommand(pm);
114
114
  const cmd = installArgs(pm, spec);
115
- const { skillInstalled } = await import("./skill-CSFhZmBk.mjs");
115
+ const { skillInstalled } = await import("./skill-DW68KWTY.mjs");
116
116
  const { homedir } = await import("node:os");
117
117
  const refreshGlobal = skillInstalled(homedir());
118
118
  const refreshRepo = process.cwd() !== homedir() && skillInstalled(process.cwd());
@@ -1,5 +1,5 @@
1
1
  import { c as resolveProject, o as projectFlagArgs } from "./site-BFaWfSVu.mjs";
2
- import { d as withContext, l as apiRequest, r as reportErrors } from "./ui-DLZNEen6.mjs";
2
+ import { d as withContext, l as apiRequest, r as reportErrors } from "./ui--atbZ-TM.mjs";
3
3
  import { defineCommand } from "citty";
4
4
  //#region src/usage.ts
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediamonks/canopy-cli",
3
- "version": "0.7.18",
3
+ "version": "0.7.19",
4
4
  "description": "Canopy CLI — create, develop and deploy Canopy projects.",
5
5
  "bin": {
6
6
  "canopy": "./dist/index.mjs"
@@ -1,2 +0,0 @@
1
- import { t as devCommand } from "./dev-CjaomJ2D.mjs";
2
- export { devCommand };