@mediamonks/canopy-cli 0.7.55 → 0.7.56
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-BlqO9NhM.mjs → ai-DDVTX_nO.mjs} +2 -2
- package/dist/{api-D4KUT6Ly.mjs → api-MIRoGsB6.mjs} +1 -1
- package/dist/{audience-Dlrsdthb.mjs → audience-8U1dwxcU.mjs} +3 -3
- package/dist/{browse-CW3CnhK_.mjs → browse-CVBq2IB4.mjs} +2 -2
- package/dist/{calls-DFtWVJfv.mjs → calls-Cnt16FiF.mjs} +3 -3
- package/dist/{db-Dy1csI71.mjs → db-CXeAa-Qy.mjs} +4 -4
- package/dist/{deploy-DHjZj2Pq.mjs → deploy-C1mwXvJY.mjs} +4 -4
- package/dist/{dev-BvzqZU_F.mjs → dev--vOKyg1k.mjs} +9 -9
- package/dist/dev-CCMeTwvP.mjs +2 -0
- package/dist/{dev-worker-BdVcP-SM.mjs → dev-worker-7tqL9UFi.mjs} +1 -1
- package/dist/docs/cli-members.md +7 -0
- package/dist/docs/outside-sign-in.md +16 -5
- package/dist/docs/platform-members-and-access.md +8 -0
- package/dist/{docs-DdSbSiCj.mjs → docs-DgMINV-7.mjs} +4 -4
- package/dist/{egress-hKpsJF84.mjs → egress-Cy3UBgEM.mjs} +3 -3
- package/dist/{feedback-Bzu_KQtb.mjs → feedback-DymVKtj0.mjs} +4 -4
- package/dist/{files-DKtyMjY0.mjs → files-CYTMMRC0.mjs} +3 -3
- package/dist/index.mjs +38 -38
- package/dist/{local-B1N4TpE9.mjs → local-DCo1A00D.mjs} +3 -3
- package/dist/login-BpmefYHv.mjs +355 -0
- package/dist/{logs-ByDPHO28.mjs → logs-CWr7tRhN.mjs} +3 -3
- package/dist/{mcp-DmWfG-NS.mjs → mcp-D0TZcRce.mjs} +3 -3
- package/dist/{migrations-k5pyUUR0.mjs → migrations-CkGa1pmn.mjs} +2 -2
- package/dist/{open-CYfkeTaw.mjs → open-D2WqNBiq.mjs} +2 -2
- package/dist/{package-B_o_DJ8u.mjs → package-BpSdSdZI.mjs} +1 -1
- package/dist/project-template-D-e33lix.mjs +2 -0
- package/dist/{project-template-B297eCQ0.mjs → project-template-DjbT9RRU.mjs} +3 -3
- package/dist/{projects-BBm9nQb0.mjs → projects-Dcq37hny.mjs} +29 -10
- package/dist/{rename-BZ8hvUUt.mjs → rename-DTg_3_BJ.mjs} +3 -3
- package/dist/repo-C_gmPkLX.mjs +2 -0
- package/dist/{repo-BUIM4d_1.mjs → repo-ZjkxQKwh.mjs} +3 -3
- package/dist/{roles-Yn8U3cr-.mjs → roles-2dF7LkZB.mjs} +63 -10
- package/dist/roles-B5E2tfbN.mjs +2 -0
- package/dist/{schedule-Cv26MIfS.mjs → schedule-_u2Ab1WH.mjs} +3 -3
- package/dist/{secrets-C6tF7BI9.mjs → secrets-H1bQRNBr.mjs} +3 -3
- package/dist/{site-C0nf9RXY.mjs → site-BcZ0LOvm.mjs} +2 -1
- package/dist/{skill-DAlJwr4A.mjs → skill-BHDQdPTC.mjs} +2 -2
- package/dist/{src-B0WdnVz9.mjs → src-DpjA-a59.mjs} +23 -22
- package/dist/{staging-C9mn0EBS.mjs → staging-BZJwA_iG.mjs} +3 -3
- package/dist/{token-DIJtUPrE.mjs → token-BEV5lbld.mjs} +3 -3
- package/dist/{ui-BPq6-hKS.mjs → ui-7cyGNbu5.mjs} +1 -1
- package/dist/{upgrade-DN0JQ7gm.mjs → upgrade-BYTMPnOF.mjs} +2 -2
- package/dist/{usage-DBhL6SUo.mjs → usage-iYp64st3.mjs} +3 -3
- package/package.json +4 -4
- package/dist/dev-wHv8RrDn.mjs +0 -2
- package/dist/login-cbwynFoT.mjs +0 -355
- package/dist/project-template-B6YpesjZ.mjs +0 -2
- package/dist/repo-fDD4TcJ4.mjs +0 -2
- package/dist/roles-DvywfJ8x.mjs +0 -2
- package/dist/templates/worker/.github/workflows/canopy-deploy.yml +0 -40
- package/dist/templates/worker/index.html +0 -12
- package/dist/templates/worker/src/app.tsx +0 -25
- package/dist/templates/worker/src/canopy.ts +0 -5
- package/dist/templates/worker/src/main.tsx +0 -10
- package/dist/templates/worker/src/style.css +0 -29
- package/dist/templates/worker/vite.config.ts +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as apiRequest, m as withContext } from "./api-
|
|
2
|
-
import { i as reportErrors } from "./ui-
|
|
1
|
+
import { a as apiRequest, m as withContext } from "./api-MIRoGsB6.mjs";
|
|
2
|
+
import { i as reportErrors } from "./ui-7cyGNbu5.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/ai.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as tryReadCanopyJson, p as rewriteCanopyJsonSlug, r as siteConfig, t as projectDir } from "./site-
|
|
1
|
+
import { h as tryReadCanopyJson, p as rewriteCanopyJsonSlug, r as siteConfig, t as projectDir } from "./site-BcZ0LOvm.mjs";
|
|
2
2
|
//#region src/api.ts
|
|
3
3
|
/**
|
|
4
4
|
* Authenticated requests to the Canopy control plane. Credentials, in order:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as resolveProject, l as projectDirArgs, u as projectFlagArgs } from "./site-
|
|
2
|
-
import { a as apiRequest, m as withContext } from "./api-
|
|
3
|
-
import { i as reportErrors } from "./ui-
|
|
1
|
+
import { f as resolveProject, l as projectDirArgs, u as projectFlagArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, m as withContext } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { i as reportErrors } from "./ui-7cyGNbu5.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import * as p from "@clack/prompts";
|
|
6
6
|
//#region src/audience.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as tryResolveProject, r as siteConfig } from "./site-
|
|
2
|
-
import { a as apiRequest, t as ApiError } from "./api-
|
|
1
|
+
import { g as tryResolveProject, r as siteConfig } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, t as ApiError } from "./api-MIRoGsB6.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/browse.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as resolveProject, l as projectDirArgs } from "./site-
|
|
2
|
-
import { a as apiRequest, m as withContext } from "./api-
|
|
3
|
-
import { i as reportErrors, n as formatDateTime } from "./ui-
|
|
1
|
+
import { f as resolveProject, l as projectDirArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, m as withContext } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { i as reportErrors, n as formatDateTime } from "./ui-7cyGNbu5.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/calls.ts
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as resolveProject, u as projectFlagArgs } from "./site-
|
|
2
|
-
import { a as apiRequest, m as withContext, r as apiDataRequest } from "./api-
|
|
3
|
-
import { a as requireTty, i as reportErrors, o as spinner$1, s as unwrap, t as confirmTypedSlug } from "./ui-
|
|
4
|
-
import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-
|
|
1
|
+
import { f as resolveProject, u as projectFlagArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, m as withContext, r as apiDataRequest } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { a as requireTty, i as reportErrors, o as spinner$1, s as unwrap, t as confirmTypedSlug } from "./ui-7cyGNbu5.mjs";
|
|
4
|
+
import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-CkGa1pmn.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
7
7
|
import * as p from "@clack/prompts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as projectUrl, f as resolveProject, h as tryReadCanopyJson, l as projectDirArgs, m as stagingUrl, r as siteConfig, s as parseVersionArg, u as projectFlagArgs } from "./site-
|
|
2
|
-
import { a as apiRequest, d as githubActionsCredentials, i as apiDownload, l as currentSlug, m as withContext, p as onGithubActions, r as apiDataRequest, t as ApiError } from "./api-
|
|
3
|
-
import { i as reportErrors, n as formatDateTime, o as spinner$1, s as unwrap } from "./ui-
|
|
4
|
-
import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-
|
|
1
|
+
import { d as projectUrl, f as resolveProject, h as tryReadCanopyJson, l as projectDirArgs, m as stagingUrl, r as siteConfig, s as parseVersionArg, u as projectFlagArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, d as githubActionsCredentials, i as apiDownload, l as currentSlug, m as withContext, p as onGithubActions, r as apiDataRequest, t as ApiError } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { i as reportErrors, n as formatDateTime, o as spinner$1, s as unwrap } from "./ui-7cyGNbu5.mjs";
|
|
4
|
+
import { n as migrateProject, r as readMigrationFiles, t as describeMigrateResult } from "./migrations-CkGa1pmn.mjs";
|
|
5
5
|
import { builtinModules } from "node:module";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as projectDialect, f as resolveProject, h as tryReadCanopyJson, l as projectDirArgs, r as siteConfig } from "./site-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import {
|
|
1
|
+
import { c as projectDialect, f as resolveProject, h as tryReadCanopyJson, l as projectDirArgs, r as siteConfig } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { r as stampWorkerHeaders, t as WORKER_ATTEST_HEADER } from "./src-DpjA-a59.mjs";
|
|
3
|
+
import { a as apiRequest, m as withContext, t as ApiError } from "./api-MIRoGsB6.mjs";
|
|
4
|
+
import { i as reportErrors, n as formatDateTime } from "./ui-7cyGNbu5.mjs";
|
|
5
|
+
import { r as readMigrationFiles } from "./migrations-CkGa1pmn.mjs";
|
|
6
|
+
import { s as parseAppRoleFlag } from "./roles-2dF7LkZB.mjs";
|
|
7
7
|
import { n as writeDevServerRecord } from "./dev-server-file-Dk9pk4AR.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ async function workerPlugin(flags, slug, workerAttest, remoteUser, roles) {
|
|
|
107
107
|
console.log(`note: canopy.json points "worker" at ${entry}, which does not exist — skipping.`);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
const { missingSecretNames, readDevVars, workerDevPlugin } = await import("./dev-worker-
|
|
110
|
+
const { missingSecretNames, readDevVars, workerDevPlugin } = await import("./dev-worker-7tqL9UFi.mjs");
|
|
111
111
|
const secrets = readDevVars(flags.dir);
|
|
112
112
|
const email = siteConfig().email;
|
|
113
113
|
const found = await remoteUser?.() ?? (email ? {
|
|
@@ -326,7 +326,7 @@ async function devRemote(flags, slug) {
|
|
|
326
326
|
async function devLocal(flags, slug) {
|
|
327
327
|
let dump;
|
|
328
328
|
if (flags.pull) {
|
|
329
|
-
const { fetchProjectDump } = await import("./local-
|
|
329
|
+
const { fetchProjectDump } = await import("./local-DCo1A00D.mjs");
|
|
330
330
|
console.log(`Pulling a fresh export of ${slug}${flags.staging ? " [staging]" : ""}…`);
|
|
331
331
|
dump = await fetchProjectDump(slug, flags.staging ? "staging" : "live");
|
|
332
332
|
}
|
|
@@ -343,7 +343,7 @@ async function devLocal(flags, slug) {
|
|
|
343
343
|
}
|
|
344
344
|
const workerAttest = randomBytes(24).toString("base64url");
|
|
345
345
|
const devRoles = await resolveDevRoles(slug, flags.asRoles);
|
|
346
|
-
const { createSandbox } = await import("./local-
|
|
346
|
+
const { createSandbox } = await import("./local-DCo1A00D.mjs");
|
|
347
347
|
const sandbox = await createSandbox({
|
|
348
348
|
slug,
|
|
349
349
|
persistDir: join(flags.dir, ".canopy", "local"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as readPersonCaller, i as CALLER_HEADER, n as redactCanopyCredentials, o as readUser, r as stampWorkerHeaders, t as WORKER_ATTEST_HEADER } from "./src-
|
|
1
|
+
import { a as readPersonCaller, i as CALLER_HEADER, n as redactCanopyCredentials, o as readUser, r as stampWorkerHeaders, t as WORKER_ATTEST_HEADER } from "./src-DpjA-a59.mjs";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { relative, resolve, sep } from "node:path";
|
|
4
4
|
//#region src/dev-worker.ts
|
package/dist/docs/cli-members.md
CHANGED
|
@@ -14,6 +14,8 @@ and viewers can do.
|
|
|
14
14
|
canopy members list
|
|
15
15
|
canopy members add jane@monks.com
|
|
16
16
|
canopy members add sam@monks.com --viewer --app-role approver
|
|
17
|
+
canopy members add dana@client.example
|
|
18
|
+
canopy members add dana@client.example --send-invitation
|
|
17
19
|
canopy members set sam@monks.com --app-role approver --app-role reviewer
|
|
18
20
|
canopy members set sam@monks.com --editor
|
|
19
21
|
canopy members set sam@monks.com --clear-app-roles
|
|
@@ -33,6 +35,11 @@ directory, or `--project <slug>`) and honor the global `--profile <site>`.
|
|
|
33
35
|
manager with `--manager`. Someone who hasn't signed in to Canopy yet gets an
|
|
34
36
|
invite and joins at their first sign-in. The owner and managers can add
|
|
35
37
|
editors and viewers; only the owner adds managers.
|
|
38
|
+
- `add <email>` for someone outside Monks (where the site allows it) adds them
|
|
39
|
+
as a viewer and prints a message to send them: the project's link and how
|
|
40
|
+
to sign in with their email. Canopy doesn't email them unless you pass
|
|
41
|
+
`--send-invitation`. See
|
|
42
|
+
[Sharing a project with people outside Monks](https://docs.canopy.website/guides/outside-sign-in).
|
|
36
43
|
- `set <email>` changes someone. `--manager`, `--editor` or `--viewer` changes
|
|
37
44
|
their Canopy role: managers switch people between editor and viewer, and only
|
|
38
45
|
the owner makes or changes a manager. `--app-role <slug>` sets their app
|
|
@@ -4,8 +4,9 @@ description: Invite a client contact by email and they get their own sign-in to
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Anyone who manages a project's members can add someone from outside Monks by
|
|
7
|
-
their email address.
|
|
8
|
-
and from then on open your app as
|
|
7
|
+
their email address. You send them the link, or have Canopy email them an
|
|
8
|
+
invitation. They sign in with that address and from then on open your app as
|
|
9
|
+
themselves. Each person has their own
|
|
9
10
|
sign-in, so you can see who is who, give one person an app role, and remove
|
|
10
11
|
one person without touching anyone else.
|
|
11
12
|
|
|
@@ -22,11 +23,21 @@ them [app roles](https://docs.canopy.website/guides/roles) like anyone else.
|
|
|
22
23
|
The owner, managers and platform admins can invite outsiders. Each invitation
|
|
23
24
|
is recorded under the person who sent it.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Before anything is saved, a dialog shows a message to send them. It has the
|
|
27
|
+
project's link and the steps to sign in with their email. Copy it and send it
|
|
28
|
+
however suits you: in a chat, an email of your own, or along with links to
|
|
29
|
+
your other projects. If you'd rather Canopy emailed them, tick **Also send an
|
|
30
|
+
invitation email**. That email names the project and who added them, with a
|
|
31
|
+
link to it. If it didn't go out, the Members card says so.
|
|
32
|
+
|
|
33
|
+
Their row in the Members card has two buttons. One copies the same message
|
|
34
|
+
again, and the other emails them the invitation, even long after you added
|
|
35
|
+
them. The card marks outside members and invitations so you can tell them
|
|
28
36
|
apart from colleagues.
|
|
29
37
|
|
|
38
|
+
From a terminal, [`canopy members add`](https://docs.canopy.website/cli/members) prints the same message.
|
|
39
|
+
Add `--send-invitation` to have Canopy email them too.
|
|
40
|
+
|
|
30
41
|
## What they see
|
|
31
42
|
|
|
32
43
|
When they open the project's link, the sign-in page offers **Not at Monks?
|
|
@@ -56,6 +56,14 @@ automatically the first time they sign in, whether that's opening the
|
|
|
56
56
|
project's URL or running `canopy login`. Until then the invite grants nothing.
|
|
57
57
|
Canopy doesn't send them a message, so let them know yourself.
|
|
58
58
|
|
|
59
|
+
Where the site allows it, you can also add people outside Monks by email.
|
|
60
|
+
They're always viewers. Before anything is saved, a dialog shows a message to
|
|
61
|
+
send them: the project's link and how to sign in with their email. Copy it
|
|
62
|
+
and send it however you like, or tick the box to have Canopy email them an
|
|
63
|
+
invitation as well. Their row in the card has buttons to copy that message
|
|
64
|
+
again or email the invitation later. Read
|
|
65
|
+
[Sharing a project with people outside Monks](https://docs.canopy.website/guides/outside-sign-in).
|
|
66
|
+
|
|
59
67
|
The owner and managers can switch people between editor and viewer, remove
|
|
60
68
|
them, or withdraw an invite from the same card. Only the owner can make
|
|
61
69
|
someone a manager or change a manager. From a terminal,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
2
|
-
import { r as siteConfig } from "./site-
|
|
1
|
+
import { t as version } from "./package-BpSdSdZI.mjs";
|
|
2
|
+
import { r as siteConfig } from "./site-BcZ0LOvm.mjs";
|
|
3
3
|
import { i as latestKnownVersion, r as compareSemver } from "./version-check-CcsA1QjI.mjs";
|
|
4
|
-
import { n as agentHeaders } from "./api-
|
|
5
|
-
import { i as reportErrors } from "./ui-
|
|
4
|
+
import { n as agentHeaders } from "./api-MIRoGsB6.mjs";
|
|
5
|
+
import { i as reportErrors } from "./ui-7cyGNbu5.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { homedir } from "node:os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as resolveProject, l as projectDirArgs } from "./site-
|
|
2
|
-
import { a as apiRequest, m as withContext } from "./api-
|
|
3
|
-
import { i as reportErrors, n as formatDateTime, s as unwrap, t as confirmTypedSlug } from "./ui-
|
|
1
|
+
import { f as resolveProject, l as projectDirArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest, m as withContext } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { i as reportErrors, n as formatDateTime, s as unwrap, t as confirmTypedSlug } from "./ui-7cyGNbu5.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import * as p from "@clack/prompts";
|
|
6
6
|
//#region src/egress.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
2
|
-
import { f as resolveProject, g as tryResolveProject, h as tryReadCanopyJson, l as projectDirArgs, r as siteConfig } from "./site-
|
|
3
|
-
import { a as apiRequest, c as credentials, i as apiDownload, o as apiUpload, s as commonHeaders } from "./api-
|
|
4
|
-
import { i as reportErrors, n as formatDateTime } from "./ui-
|
|
1
|
+
import { t as version } from "./package-BpSdSdZI.mjs";
|
|
2
|
+
import { f as resolveProject, g as tryResolveProject, h as tryReadCanopyJson, l as projectDirArgs, r as siteConfig } from "./site-BcZ0LOvm.mjs";
|
|
3
|
+
import { a as apiRequest, c as credentials, i as apiDownload, o as apiUpload, s as commonHeaders } from "./api-MIRoGsB6.mjs";
|
|
4
|
+
import { i as reportErrors, n as formatDateTime } from "./ui-7cyGNbu5.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
import { basename, extname, join } from "node:path";
|
|
7
7
|
import { readFile, writeFile } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as resolveProject, u as projectFlagArgs } from "./site-
|
|
2
|
-
import { a as apiRequest } from "./api-
|
|
3
|
-
import { i as reportErrors } from "./ui-
|
|
1
|
+
import { f as resolveProject, u as projectFlagArgs } from "./site-BcZ0LOvm.mjs";
|
|
2
|
+
import { a as apiRequest } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { i as reportErrors } from "./ui-7cyGNbu5.mjs";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/files.ts
|
|
6
6
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as version } from "./package-
|
|
3
|
-
import { i as siteHeaderLine, n as setInvocationProfile } from "./site-
|
|
2
|
+
import { t as version } from "./package-BpSdSdZI.mjs";
|
|
3
|
+
import { i as siteHeaderLine, n as setInvocationProfile } from "./site-BcZ0LOvm.mjs";
|
|
4
4
|
import { a as notifyOfUpdate, o as runRefresh } from "./version-check-CcsA1QjI.mjs";
|
|
5
5
|
import { defineCommand, runMain } from "citty";
|
|
6
6
|
//#region src/index.ts
|
|
@@ -51,42 +51,42 @@ const main = defineCommand({
|
|
|
51
51
|
description: "canopy — create and deploy vibecoded projects"
|
|
52
52
|
},
|
|
53
53
|
subCommands: {
|
|
54
|
-
login: () => import("./login-
|
|
55
|
-
whoami: () => import("./login-
|
|
56
|
-
logout: () => import("./login-
|
|
57
|
-
create: () => import("./projects-
|
|
58
|
-
init: () => import("./projects-
|
|
59
|
-
projects: () => import("./projects-
|
|
60
|
-
delete: () => import("./projects-
|
|
61
|
-
rename: () => import("./rename-
|
|
62
|
-
dev: () => import("./dev-
|
|
63
|
-
deploy: () => import("./deploy-
|
|
64
|
-
promote: () => import("./deploy-
|
|
65
|
-
staging: () => import("./staging-
|
|
66
|
-
rollback: () => import("./deploy-
|
|
67
|
-
download: () => import("./deploy-
|
|
68
|
-
token: () => import("./token-
|
|
69
|
-
egress: () => import("./egress-
|
|
70
|
-
calls: () => import("./calls-
|
|
71
|
-
secrets: () => import("./secrets-
|
|
72
|
-
roles: () => import("./roles-
|
|
73
|
-
members: () => import("./roles-
|
|
74
|
-
schedule: () => import("./schedule-
|
|
75
|
-
feedback: () => import("./feedback-
|
|
76
|
-
db: () => import("./db-
|
|
77
|
-
files: () => import("./files-
|
|
78
|
-
usage: () => import("./usage-
|
|
79
|
-
ai: () => import("./ai-
|
|
80
|
-
open: () => import("./open-
|
|
81
|
-
browse: () => import("./browse-
|
|
82
|
-
docs: () => import("./docs-
|
|
83
|
-
skill: () => import("./skill-
|
|
84
|
-
upgrade: () => import("./upgrade-
|
|
85
|
-
logs: () => import("./logs-
|
|
86
|
-
mcp: () => import("./mcp-
|
|
87
|
-
repo: () => import("./repo-
|
|
88
|
-
template: () => import("./project-template-
|
|
89
|
-
audience: () => import("./audience-
|
|
54
|
+
login: () => import("./login-BpmefYHv.mjs").then((m) => m.loginCommand),
|
|
55
|
+
whoami: () => import("./login-BpmefYHv.mjs").then((m) => m.whoamiCommand),
|
|
56
|
+
logout: () => import("./login-BpmefYHv.mjs").then((m) => m.logoutCommand),
|
|
57
|
+
create: () => import("./projects-Dcq37hny.mjs").then((m) => m.createCommand),
|
|
58
|
+
init: () => import("./projects-Dcq37hny.mjs").then((m) => m.initCommand),
|
|
59
|
+
projects: () => import("./projects-Dcq37hny.mjs").then((m) => m.projectsCommand),
|
|
60
|
+
delete: () => import("./projects-Dcq37hny.mjs").then((m) => m.deleteCommand),
|
|
61
|
+
rename: () => import("./rename-DTg_3_BJ.mjs").then((m) => m.renameCommand),
|
|
62
|
+
dev: () => import("./dev-CCMeTwvP.mjs").then((m) => m.devCommand),
|
|
63
|
+
deploy: () => import("./deploy-C1mwXvJY.mjs").then((m) => m.deployCommand),
|
|
64
|
+
promote: () => import("./deploy-C1mwXvJY.mjs").then((m) => m.promoteCommand),
|
|
65
|
+
staging: () => import("./staging-BZJwA_iG.mjs").then((m) => m.stagingCommand),
|
|
66
|
+
rollback: () => import("./deploy-C1mwXvJY.mjs").then((m) => m.rollbackCommand),
|
|
67
|
+
download: () => import("./deploy-C1mwXvJY.mjs").then((m) => m.downloadCommand),
|
|
68
|
+
token: () => import("./token-BEV5lbld.mjs").then((m) => m.tokenCommand),
|
|
69
|
+
egress: () => import("./egress-Cy3UBgEM.mjs").then((m) => m.egressCommand),
|
|
70
|
+
calls: () => import("./calls-Cnt16FiF.mjs").then((m) => m.callsCommand),
|
|
71
|
+
secrets: () => import("./secrets-H1bQRNBr.mjs").then((m) => m.secretsCommand),
|
|
72
|
+
roles: () => import("./roles-B5E2tfbN.mjs").then((m) => m.rolesCommand),
|
|
73
|
+
members: () => import("./roles-B5E2tfbN.mjs").then((m) => m.membersCommand),
|
|
74
|
+
schedule: () => import("./schedule-_u2Ab1WH.mjs").then((m) => m.scheduleCommand),
|
|
75
|
+
feedback: () => import("./feedback-DymVKtj0.mjs").then((m) => m.feedbackCommand),
|
|
76
|
+
db: () => import("./db-CXeAa-Qy.mjs").then((m) => m.dbCommand),
|
|
77
|
+
files: () => import("./files-CYTMMRC0.mjs").then((m) => m.filesCommand),
|
|
78
|
+
usage: () => import("./usage-iYp64st3.mjs").then((m) => m.usageCommand),
|
|
79
|
+
ai: () => import("./ai-DDVTX_nO.mjs").then((m) => m.aiCommand),
|
|
80
|
+
open: () => import("./open-D2WqNBiq.mjs").then((m) => m.openCommand),
|
|
81
|
+
browse: () => import("./browse-CVBq2IB4.mjs").then((m) => m.browseCommand),
|
|
82
|
+
docs: () => import("./docs-DgMINV-7.mjs").then((m) => m.docsCommand),
|
|
83
|
+
skill: () => import("./skill-BHDQdPTC.mjs").then((m) => m.skillCommand),
|
|
84
|
+
upgrade: () => import("./upgrade-BYTMPnOF.mjs").then((m) => m.upgradeCommand),
|
|
85
|
+
logs: () => import("./logs-CWr7tRhN.mjs").then((m) => m.logsCommand),
|
|
86
|
+
mcp: () => import("./mcp-D0TZcRce.mjs").then((m) => m.mcpCommand),
|
|
87
|
+
repo: () => import("./repo-C_gmPkLX.mjs").then((m) => m.repoCommand),
|
|
88
|
+
template: () => import("./project-template-D-e33lix.mjs").then((m) => m.templateCommand),
|
|
89
|
+
audience: () => import("./audience-8U1dwxcU.mjs").then((m) => m.audienceCommand)
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
const quiet = process.argv[2] === "mcp" && process.argv[3] === "serve" || process.argv[2] === "repo" && process.argv[3] === "credential";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as rewriteApiPath } from "./dev
|
|
1
|
+
import { c as dbRouter, h as isCreateOnly, l as hasPrivateNames, m as blobRouter, p as STREAMED_BLOB_BYTES, s as realtimeRouter, t as WORKER_ATTEST_HEADER, u as META_COLUMNS } from "./src-DpjA-a59.mjs";
|
|
2
|
+
import { r as apiDataRequest } from "./api-MIRoGsB6.mjs";
|
|
3
|
+
import { a as rewriteApiPath } from "./dev--vOKyg1k.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { dirname, join, relative, sep } from "node:path";
|