@mediamonks/canopy-cli 0.7.52 → 0.7.53
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/dist/{ai-BjnuSjmw.mjs → ai-BlqO9NhM.mjs} +2 -2
- package/dist/{api-DmJrIsE7.mjs → api-D4KUT6Ly.mjs} +9 -8
- package/dist/{audience-BSvOEbco.mjs → audience-Dlrsdthb.mjs} +3 -3
- package/dist/{browse-BPLWhoFI.mjs → browse-CW3CnhK_.mjs} +2 -2
- package/dist/{calls-COIxX32d.mjs → calls-DFtWVJfv.mjs} +3 -3
- package/dist/{db-D5SXZrp5.mjs → db-Dy1csI71.mjs} +15 -18
- package/dist/{deploy-D8OZyhH8.mjs → deploy-DHjZj2Pq.mjs} +13 -19
- package/dist/dev-CVC7elOr.mjs +2 -0
- package/dist/{dev-BnzJ8a1u.mjs → dev-L5slb6ke.mjs} +7 -7
- package/dist/docs/cli-schedule.md +1 -1
- package/dist/docs/cli-token.md +1 -1
- package/dist/docs/developers-architecture.md +1 -1
- package/dist/docs/outside-sign-in.md +1 -1
- package/dist/docs/platform-client-access.md +1 -1
- package/dist/docs/platform-credentials.md +2 -2
- package/dist/docs/platform-egress.md +4 -4
- package/dist/docs/platform-schedules.md +4 -4
- package/dist/docs/porting-nextjs.md +23 -23
- package/dist/docs/staging.md +1 -1
- package/dist/docs/static-serving.md +6 -3
- package/dist/docs/troubleshooting.md +1 -1
- package/dist/{docs-Od4duFhd.mjs → docs-bnQLqEOn.mjs} +4 -4
- package/dist/{egress-BoGWBHRa.mjs → egress-hKpsJF84.mjs} +4 -10
- package/dist/{feedback-XEIHbeor.mjs → feedback-vHJwLyWF.mjs} +4 -4
- package/dist/{files-B7toJRlj.mjs → files-DKtyMjY0.mjs} +3 -3
- package/dist/index.mjs +39 -52
- package/dist/{local-R-INkPbU.mjs → local-B15wYk6z.mjs} +3 -3
- package/dist/{login-DrMr99-A.mjs → login-cbwynFoT.mjs} +3 -3
- package/dist/{logs-DJWrL6ja.mjs → logs-ByDPHO28.mjs} +3 -3
- package/dist/{mcp-misDO7O8.mjs → mcp-BmT4Es_B.mjs} +3 -3
- package/dist/{migrations-BReMlGWP.mjs → migrations-k5pyUUR0.mjs} +3 -3
- package/dist/{open-6ev_6m0p.mjs → open-CYfkeTaw.mjs} +2 -2
- package/dist/{package-DBdEKZ6u.mjs → package-DtU4jB_Z.mjs} +1 -1
- package/dist/{project-template-Bas1UN2O.mjs → project-template-B297eCQ0.mjs} +3 -3
- package/dist/project-template-B6YpesjZ.mjs +2 -0
- package/dist/{projects-BEBYhy6k.mjs → projects-ztlDQi0P.mjs} +28 -28
- package/dist/{rename-PIJmdzHk.mjs → rename-BZ8hvUUt.mjs} +3 -3
- package/dist/{repo-Dry87b9d.mjs → repo-BUIM4d_1.mjs} +4 -10
- package/dist/repo-fDD4TcJ4.mjs +2 -0
- package/dist/{roles-CXY226VM.mjs → roles-DvywfJ8x.mjs} +1 -1
- package/dist/{roles-CUFRTp_R.mjs → roles-Yn8U3cr-.mjs} +3 -3
- package/dist/{schedule-DJsclUxC.mjs → schedule-Cv26MIfS.mjs} +3 -3
- package/dist/{secrets-CV2IwVwU.mjs → secrets-C6tF7BI9.mjs} +3 -3
- package/dist/{site-BL5Ik-yj.mjs → site-C0nf9RXY.mjs} +8 -3
- package/dist/{skill-3RZw4vSI.mjs → skill-CRTV3ZQ1.mjs} +2 -2
- package/dist/{staging-B9sjqvfh.mjs → staging-C9mn0EBS.mjs} +6 -14
- package/dist/templates/spa/AGENTS.md +3 -3
- package/dist/templates/spa/README.md +2 -2
- package/dist/templates/spa/package.json +1 -1
- package/dist/templates/static/AGENTS.md +3 -3
- package/dist/templates/static/README.md +2 -2
- package/dist/templates/worker/AGENTS.md +3 -3
- package/dist/templates/worker/README.md +2 -2
- package/dist/templates/worker/package.json +1 -1
- package/dist/{token-BT2_ELX6.mjs → token-DIJtUPrE.mjs} +3 -3
- package/dist/{ui-Ddw4d2Nn.mjs → ui-BPq6-hKS.mjs} +16 -3
- package/dist/{upgrade-Dy4XV7iP.mjs → upgrade-LTEfQn4L.mjs} +2 -2
- package/dist/{usage-VMT75MZ4.mjs → usage-DBhL6SUo.mjs} +3 -3
- package/package.json +3 -3
- package/dist/dev-DSI3e4qP.mjs +0 -2
- package/dist/project-template-Dti_Mmnb.mjs +0 -2
- package/dist/repo-CGTFmIWM.mjs +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as apiRequest } from "./api-
|
|
3
|
-
import {
|
|
1
|
+
import { f as resolveProject, l as projectDirArgs, u as projectFlagArgs } from "./site-C0nf9RXY.mjs";
|
|
2
|
+
import { a as apiRequest } from "./api-D4KUT6Ly.mjs";
|
|
3
|
+
import { i as reportErrors, n as formatDateTime } from "./ui-BPq6-hKS.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
const tokenCommand = defineCommand({
|
|
6
6
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ApiError } from "./api-
|
|
1
|
+
import { t as ApiError } from "./api-D4KUT6Ly.mjs";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
-
import { cancel, isCancel, spinner } from "@clack/prompts";
|
|
3
|
+
import { cancel, isCancel, spinner, text } from "@clack/prompts";
|
|
4
4
|
//#region src/ui.ts
|
|
5
5
|
/**
|
|
6
6
|
* Shared terminal UX plumbing: clack prompt unwrapping and uniform
|
|
@@ -119,6 +119,19 @@ function requireTty(hint) {
|
|
|
119
119
|
if (!process.stdin.isTTY) throw new Error(`This needs an interactive terminal — ${hint}`);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
+
* The type-the-slug guard in front of a destructive command: needs a TTY
|
|
123
|
+
* (`ttyHint` says which flag skips it), shows `message`, and is true only when
|
|
124
|
+
* the answer is the slug. Anything else prints `abortedText` and is false.
|
|
125
|
+
*/
|
|
126
|
+
async function confirmTypedSlug(slug, message, ttyHint, abortedText = "Aborted.") {
|
|
127
|
+
requireTty(ttyHint);
|
|
128
|
+
if (unwrap(await text({ message })).trim() !== slug) {
|
|
129
|
+
cancel(abortedText);
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
122
135
|
* API timestamps are UTC — ISO with a Z suffix, though a lagging API site may
|
|
123
136
|
* still send the bare "YYYY-MM-DD HH:MM:SS" form. Parse either as UTC and
|
|
124
137
|
* render compact local wall-clock time ("2026-08-25 14:23").
|
|
@@ -139,4 +152,4 @@ function openBrowser(url) {
|
|
|
139
152
|
}).on("error", () => {}).unref();
|
|
140
153
|
}
|
|
141
154
|
//#endregion
|
|
142
|
-
export {
|
|
155
|
+
export { requireTty as a, reportErrors as i, formatDateTime as n, spinner$1 as o, openBrowser as r, unwrap as s, confirmTypedSlug as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as PACKAGE_NAME } from "./version-check-CcsA1QjI.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { i as reportErrors } from "./ui-BPq6-hKS.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-
|
|
115
|
+
const { skillInstalled } = await import("./skill-CRTV3ZQ1.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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as apiRequest, m as withContext } from "./api-
|
|
3
|
-
import {
|
|
1
|
+
import { f as resolveProject, u as projectFlagArgs } from "./site-C0nf9RXY.mjs";
|
|
2
|
+
import { a as apiRequest, m as withContext } from "./api-D4KUT6Ly.mjs";
|
|
3
|
+
import { i as reportErrors } from "./ui-BPq6-hKS.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/usage.ts
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediamonks/canopy-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.53",
|
|
4
4
|
"description": "Canopy CLI — create, develop and deploy Canopy projects.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"canopy": "./dist/index.mjs"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"esbuild": "^0.28.1",
|
|
23
23
|
"hono": "^4.8.0",
|
|
24
24
|
"vite-server": "npm:vite@^7",
|
|
25
|
-
"@mediamonks/canopy": "0.0.
|
|
26
|
-
"@mediamonks/canopy
|
|
25
|
+
"@mediamonks/canopy-data-plane": "0.0.4",
|
|
26
|
+
"@mediamonks/canopy": "0.0.20"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^26.1.1",
|
package/dist/dev-DSI3e4qP.mjs
DELETED
package/dist/repo-CGTFmIWM.mjs
DELETED