@superwall/cli 2.4.0 → 2.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.
- package/README.md +7 -0
- package/dist/{apple-Bx_fm5M-.js → apple-BSKxY7Gx.js} +16 -15
- package/dist/approve-DbwsYO4s.js +190 -0
- package/dist/{assets-W5yvyf0V.js → assets-CqpFg5mM.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-C4lXR0xG.js → billing-BopwIhR3.js} +3 -3
- package/dist/{bind-82oTpHZ3.js → bind-DOF3o3FR.js} +4 -4
- package/dist/browser-Bp3yRKlU.js +36 -0
- package/dist/{build-7_8cBgBm.js → build-BF22vVdV.js} +11 -7
- package/dist/{client-ltxxHuxn.js → client-DHlsTaP1.js} +3 -3
- package/dist/{create-DEyveHS6.js → create-CboPfAlN.js} +39 -67
- package/dist/{create-Dk8U_B49.js → create-CiZzZrru.js} +8 -8
- package/dist/create-DAkNdEzt.js +20 -0
- package/dist/design-lint-CvgcSzVg.js +158 -0
- package/dist/{doctor-Df2GwS4K.js → doctor-BqZGaQE5.js} +6 -6
- package/dist/download-F8OtTJze.js +58 -0
- package/dist/{drivers-CTyYdBL7.js → drivers-DkboeR1c.js} +3 -3
- package/dist/entry.js +25 -24
- package/dist/{environment-djS0ik60.js → environment-FR3bcq0D.js} +5 -4
- package/dist/{existing-Das3PHGG.js → existing-C6TTT6c4.js} +2 -2
- package/dist/{session-CV0P8BjK.js → git-DqDPnldI.js} +109 -338
- package/dist/{held-B8EFWDEc.js → held-C2IjAyg6.js} +7 -7
- package/dist/held-KVcYIplR.js +17 -0
- package/dist/install-DoSYCwLL.js +109 -0
- package/dist/{integrate-Cz48dm_h.js → integrate-BSqd2wgI.js} +27 -25
- package/dist/login-BiwaQkXS.js +17 -0
- package/dist/{login-CiK5T4w8.js → login-C6FcBQZg.js} +8 -41
- package/dist/{login-girc324T.js → login-dRPPnGr7.js} +2 -1
- package/dist/{lookup-us5vu5od.js → lookup-D23dAOz6.js} +3 -2
- package/dist/{migrate-DaVwhdov.js → migrate-CDdUCTH3.js} +30 -25
- package/dist/{migration-cS6UGeUj.js → migration-r9plM7F6.js} +29 -11
- package/dist/{notification-url-Hg42tAbW.js → notification-url-rdnENCxt.js} +4 -4
- package/dist/{open-BIuOZ9ka.js → open-DVdE3HnK.js} +2 -2
- package/dist/{org-BrR4HGvl.js → org-DZ41muzA.js} +3 -2
- package/dist/organization-DIODPOwO.js +39 -0
- package/dist/orgs-BxlwcvTu.js +81 -0
- package/dist/{paths-CdwjySxK.js → paths-BaeoxDze.js} +1 -1
- package/dist/{playbook-BJ3opYIS.js → playbook-B-Pdonhg.js} +10 -10
- package/dist/{products-DH_fK9tY.js → products-Cqq59DBQ.js} +1 -1
- package/dist/project-DHU5wc3R.js +47 -0
- package/dist/{promote-BQO-1ScY.js → promote-Ca4URuHY.js} +24 -18
- package/dist/{pull-BhRswq6x.js → pull-CQcTZxW8.js} +9 -28
- package/dist/pull-DRMIxqR8.js +36 -0
- package/dist/pull-_qs90vGA.js +106 -0
- package/dist/{push-CR110qRh.js → push-BlZoIwIj.js} +122 -20
- package/dist/push-Cb4g_l1K.js +30 -0
- package/dist/push-DQE48h_M.js +290 -0
- package/dist/push-DZKsd6Dp.js +22 -0
- package/dist/{registry-DZsWoWqH.js → registry-FNG-uiIt.js} +712 -68
- package/dist/resolve-DGePiHgL.js +196 -0
- package/dist/{resources-BMspgZO1.js → resources-COOEvqqW.js} +3 -80
- package/dist/run-Czbb-sHR.js +1368 -0
- package/dist/{run-D4V6mq8_.js → run-DpYDOAw-.js} +2 -2
- package/dist/scan-2WqHGkjU.js +4 -0
- package/dist/{scan-CRexsHOE.js → scan-BZS2FZeU.js} +1 -1
- package/dist/{scope-Ct0_HoNq.js → scope-BJQ-KcQg.js} +5 -4
- package/dist/scope-t_SqFN6W.js +103 -0
- package/dist/sdk-CyttTnGf.js +71 -0
- package/dist/selection-CWfI4a0O.js +179 -0
- package/dist/series--Wp7TngJ.js +685 -0
- package/dist/{server-Dv1VwbNh.js → server-BmmOj7bh.js} +10 -8
- package/dist/server-BqLPwcy9.js +29 -0
- package/dist/session-BHBIGscL.js +6 -0
- package/dist/{session-UiPlLFn6.js → session-BpYpOgaY.js} +1 -1
- package/dist/session-DYdxTNZf.js +219 -0
- package/dist/{setup-UWLhQG3M.js → setup-DW50luOZ.js} +9 -8
- package/dist/skills/index.json +5 -0
- package/dist/skills/superwall/SKILL.md +48 -30
- package/dist/skills/superwall/references/api.md +3 -2
- package/dist/skills/superwall-editor/SKILL.md +7 -5
- package/dist/skills/superwall-framework/SKILL.md +7 -5
- package/dist/skills/superwall-workspaces/SKILL.md +314 -0
- package/dist/skills/superwall-workspaces/references/cli.md +174 -0
- package/dist/skills/superwall-workspaces/references/slots.md +103 -0
- package/dist/{skills-DzOvse9L.js → skills-Bbtq8V_D.js} +8 -8
- package/dist/{skills-CiWxt6vS.js → skills-Cm1j2d1W.js} +4 -4
- package/dist/{source-push-CX_k_yZD.js → source-push-B3c-VLfe.js} +43 -25
- package/dist/{spinner-1uuKKZMc.js → spinner-025_eqCX.js} +16 -4
- package/dist/starter-hcwocv_Z.js +190 -0
- package/dist/status-K1IGp6pe.js +142 -0
- package/dist/{storage-CrXGgIbS.js → storage-CUMgpcVH.js} +1 -1
- package/dist/{storekit-CptdG4RJ.js → storekit-Cb0TkToV.js} +4 -4
- package/dist/storekit-Dewj_5qg.js +17 -0
- package/dist/{telemetry-BqaPbM0k.js → telemetry-ekUQuhLJ.js} +1 -1
- package/dist/{token-zjjlkNDF.js → token-B2PduqrR.js} +1 -1
- package/dist/tools-skills/superwall/SKILL.md +49 -31
- package/dist/tools-skills/superwall/references/api.md +3 -2
- package/dist/tools-skills/superwall-editor/SKILL.md +7 -5
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +479 -34
- package/dist/try-BUnhITXS.js +120 -0
- package/dist/{selection-CgZJJ3FD.js → types-CB6O_wjy.js} +1 -178
- package/dist/{upgrade-BBnmcyY2.js → upgrade-CI7K1UZ-.js} +2 -2
- package/dist/{upgrade-AdyF7wXk.js → upgrade-DfZfDljd.js} +2 -2
- package/package.json +5 -3
- package/dist/create-CBCDWuyo.js +0 -19
- package/dist/held-BL4oizD6.js +0 -16
- package/dist/login-DdrOmi6m.js +0 -16
- package/dist/push-B3Onn_mL.js +0 -24
- package/dist/scan-DUQjxOZf.js +0 -4
- package/dist/server-Cv-Ug9JF.js +0 -24
- package/dist/session-BCQuMcQ0.js +0 -6
- package/dist/storekit-B675ZNiA.js +0 -16
- /package/dist/{client-BZ1UbpXz.js → client-BJQXl62Q.js} +0 -0
- /package/dist/{devtools-pBl_vt03.js → devtools-ByZ6XYnn.js} +0 -0
- /package/dist/{input-vi0bou04.js → input-MDd67UIp.js} +0 -0
- /package/dist/{reports-CwwKLUh0.js → reports-BZfxvenS.js} +0 -0
- /package/dist/{screenshot-file-tVBfUEIi.js → screenshot-file-XAS0Xy0e.js} +0 -0
- /package/dist/{storage-gRyQetN9.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
- /package/dist/{timing-BVxPrYq3.js → timing-Ca0TXY-A.js} +0 -0
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
import { r as NotLoggedInError } from "./token-B2PduqrR.js";
|
|
1
2
|
import { a as stripAnsi, l as readJson, o as cache, r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as readSession } from "./storage-
|
|
4
|
-
import { a as withQuery$1, t as ApiError } from "./client-
|
|
5
|
-
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-
|
|
3
|
+
import { o as AUTO_UPDATE_TARGET, s as CHANNEL, t as API_HOST, v as TELEMETRY_HOST, w as detectAgent, x as VERSION, y as TELEMETRY_KEY } from "./environment-FR3bcq0D.js";
|
|
4
|
+
import { n as readSession } from "./storage-CUMgpcVH.js";
|
|
5
|
+
import { a as withQuery$1, n as ApiUnreachableError, t as ApiError } from "./client-DHlsTaP1.js";
|
|
6
|
+
import { C as listKeySources, S as listBundleIdSuggestions, T as replaceRevenueProvider, _ as checkServerNotifications, b as importAppKey, c as resolveAscOrgApi, d as runAscDocs, f as parseParams, h as REVENUE_INTEGRATIONS, i as savedKey, l as resolveAscTeam, m as KEY_LABEL, n as testModeWarning, p as KEY_KINDS, r as chooseKeyApp, t as upsertHeldKey, u as sendAscRequest, v as copyAppKey, w as removeAppKey, x as keyKind, y as findIntegrations } from "./held-C2IjAyg6.js";
|
|
6
7
|
import { f as writeDefaultApp, i as readOnboardedApp, r as readDefaultApp, t as readAnonymousId } from "./config-CGcG7GOt.js";
|
|
7
|
-
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-
|
|
8
|
+
import { a as defineCommand, d as readInput, i as defineCatalog, r as UsageError, t as apiCall } from "./spinner-025_eqCX.js";
|
|
8
9
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
9
|
-
import { n as runWhoami } from "./session-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as
|
|
15
|
-
import {
|
|
16
|
-
import { n as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
10
|
+
import { n as runWhoami } from "./session-BpYpOgaY.js";
|
|
11
|
+
import { i as orgIdOf, t as listOrgGroups } from "./orgs-BxlwcvTu.js";
|
|
12
|
+
import { M as textField, O as field, T as rowName, a as createEntitlement, c as createProject, h as listResource, i as createCampaign, j as parseJson, k as isRecord, m as listProjects, r as createApplication, s as createProduct, t as RESOURCES, u as isAppScoped, y as platformLabel } from "./resources-COOEvqqW.js";
|
|
13
|
+
import { n as orgForNewProject } from "./org-DZ41muzA.js";
|
|
14
|
+
import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-D23dAOz6.js";
|
|
15
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-BJQ-KcQg.js";
|
|
16
|
+
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BJQXl62Q.js";
|
|
17
|
+
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-Cqq59DBQ.js";
|
|
18
|
+
import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-MDd67UIp.js";
|
|
19
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-rdnENCxt.js";
|
|
20
|
+
import { t as platformForIntegration } from "./bind-DOF3o3FR.js";
|
|
19
21
|
import pc from "picocolors";
|
|
20
22
|
|
|
21
23
|
//#region src/ui/help-layout.ts
|
|
@@ -142,7 +144,7 @@ const command = defineCommand({
|
|
|
142
144
|
prompts: true,
|
|
143
145
|
mcp: false,
|
|
144
146
|
async run(ctx, input) {
|
|
145
|
-
const { runLogin } = await import("./login-
|
|
147
|
+
const { runLogin } = await import("./login-BiwaQkXS.js");
|
|
146
148
|
return runLogin(ctx, input);
|
|
147
149
|
}
|
|
148
150
|
});
|
|
@@ -158,7 +160,7 @@ const command$1 = defineCommand({
|
|
|
158
160
|
prompts: true,
|
|
159
161
|
mcp: false,
|
|
160
162
|
async run(ctx) {
|
|
161
|
-
const { runLogout } = await import("./session-
|
|
163
|
+
const { runLogout } = await import("./session-BHBIGscL.js");
|
|
162
164
|
return runLogout(ctx);
|
|
163
165
|
}
|
|
164
166
|
});
|
|
@@ -218,6 +220,16 @@ const team = {
|
|
|
218
220
|
value: "id",
|
|
219
221
|
describe: "The Apple team, when your organization has several"
|
|
220
222
|
};
|
|
223
|
+
const workspace = {
|
|
224
|
+
type: "string",
|
|
225
|
+
value: "workspace",
|
|
226
|
+
describe: "The workspace: an id, or a slug with --org (default: this project's)"
|
|
227
|
+
};
|
|
228
|
+
const projectDir = {
|
|
229
|
+
type: "string",
|
|
230
|
+
value: "path",
|
|
231
|
+
describe: "The workspace project (default: cwd)"
|
|
232
|
+
};
|
|
221
233
|
|
|
222
234
|
//#endregion
|
|
223
235
|
//#region src/core/analytics/query.ts
|
|
@@ -1452,21 +1464,21 @@ function parseFlag(key, flag$1, raw) {
|
|
|
1452
1464
|
}
|
|
1453
1465
|
return parseChoice(key, flag$1, text);
|
|
1454
1466
|
}
|
|
1455
|
-
function parseArg(command$
|
|
1467
|
+
function parseArg(command$82, arg, word) {
|
|
1456
1468
|
if (word === void 0 || !arg.choices) return word;
|
|
1457
1469
|
const found = arg.choices.find((choice) => choice.toLowerCase() === word.toLowerCase());
|
|
1458
|
-
if (!found) throw new UsageError(`${command$
|
|
1470
|
+
if (!found) throw new UsageError(`${command$82} takes <${arg.name}> as one of: ${arg.choices.join(", ")} (not "${word}").`);
|
|
1459
1471
|
return found;
|
|
1460
1472
|
}
|
|
1461
|
-
function parseInput(command$
|
|
1473
|
+
function parseInput(command$82, operation, words, raw) {
|
|
1462
1474
|
const specs = operation.flags ?? {};
|
|
1463
|
-
for (const key of Object.keys(raw)) if (!(key in specs) && !(key in COMMON_FLAGS)) throw new UsageError(`${command$
|
|
1475
|
+
for (const key of Object.keys(raw)) if (!(key in specs) && !(key in COMMON_FLAGS)) throw new UsageError(`${command$82} has no --${kebab(key)}. Run superwall ${command$82} --help for its flags.`);
|
|
1464
1476
|
const flags = Object.fromEntries(Object.entries(specs).map(([key, flag$1]) => [key, parseFlag(key, flag$1, raw[key])]));
|
|
1465
|
-
for (const [key, flag$1] of Object.entries(specs)) if (flag$1.required && flags[key] === void 0) throw new UsageError(`${command$
|
|
1477
|
+
for (const [key, flag$1] of Object.entries(specs)) if (flag$1.required && flags[key] === void 0) throw new UsageError(`${command$82} needs --${kebab(key)}.`);
|
|
1466
1478
|
const specArgs = operation.args ?? [];
|
|
1467
|
-
if (words.length > specArgs.length) throw new UsageError(`${command$
|
|
1468
|
-
const args = Object.fromEntries(specArgs.map((arg, index) => [arg.name, parseArg(command$
|
|
1469
|
-
for (const arg of specArgs) if (arg.required && args[arg.name] === void 0) throw new UsageError(`${command$
|
|
1479
|
+
if (words.length > specArgs.length) throw new UsageError(`${command$82} doesn't take "${words.slice(specArgs.length).join(" ")}".`);
|
|
1480
|
+
const args = Object.fromEntries(specArgs.map((arg, index) => [arg.name, parseArg(command$82, arg, words[index])]));
|
|
1481
|
+
for (const arg of specArgs) if (arg.required && args[arg.name] === void 0) throw new UsageError(`${command$82} needs <${arg.name}>.`);
|
|
1470
1482
|
return {
|
|
1471
1483
|
args,
|
|
1472
1484
|
flags,
|
|
@@ -2758,7 +2770,7 @@ async function resolveDeliveryState(session, path) {
|
|
|
2758
2770
|
async function runScreenshotsUpload(session, input) {
|
|
2759
2771
|
const { kind, id: id$1 } = resolveTarget(input, PRICED);
|
|
2760
2772
|
const spec = SCREENSHOT[kind];
|
|
2761
|
-
const { readScreenshotFile } = await import("./screenshot-file-
|
|
2773
|
+
const { readScreenshotFile } = await import("./screenshot-file-XAS0Xy0e.js");
|
|
2762
2774
|
const file = readScreenshotFile(argOf(input, "file"));
|
|
2763
2775
|
const existing = await selectScreenshot(session, kind, id$1);
|
|
2764
2776
|
if (existing) await session.send("delete", `${spec.path}/${existing.id}`);
|
|
@@ -3469,7 +3481,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3469
3481
|
prompts: true,
|
|
3470
3482
|
mcp: false,
|
|
3471
3483
|
async run(ctx, input) {
|
|
3472
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3484
|
+
const { runAscKeysCreate } = await import("./create-DAkNdEzt.js");
|
|
3473
3485
|
return runAscKeysCreate(ctx, input);
|
|
3474
3486
|
}
|
|
3475
3487
|
});
|
|
@@ -3856,7 +3868,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3856
3868
|
prompts: true,
|
|
3857
3869
|
mcp: false,
|
|
3858
3870
|
async run(ctx, { args, flags }) {
|
|
3859
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3871
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-KVcYIplR.js");
|
|
3860
3872
|
return upsertHeldKey$1(ctx, {
|
|
3861
3873
|
action: "update",
|
|
3862
3874
|
key: {
|
|
@@ -5108,7 +5120,7 @@ Exit codes
|
|
|
5108
5120
|
prompts: true,
|
|
5109
5121
|
mcp: false,
|
|
5110
5122
|
async run(ctx, input) {
|
|
5111
|
-
const { runSetupApple } = await import("./apple-
|
|
5123
|
+
const { runSetupApple } = await import("./apple-BSKxY7Gx.js");
|
|
5112
5124
|
return runSetupApple(ctx, input);
|
|
5113
5125
|
}
|
|
5114
5126
|
});
|
|
@@ -7739,7 +7751,7 @@ const command$45 = defineCommand({
|
|
|
7739
7751
|
prompts: true,
|
|
7740
7752
|
mcp: false,
|
|
7741
7753
|
async run(ctx, { args, flags }) {
|
|
7742
|
-
const { runBuildPipeline } = await import("./build-
|
|
7754
|
+
const { runBuildPipeline } = await import("./build-BF22vVdV.js");
|
|
7743
7755
|
await runBuildPipeline({
|
|
7744
7756
|
output: ctx.output,
|
|
7745
7757
|
json: ctx.json
|
|
@@ -7800,7 +7812,7 @@ const command$46 = defineCommand({
|
|
|
7800
7812
|
prompts: true,
|
|
7801
7813
|
mcp: false,
|
|
7802
7814
|
async run(ctx, { args, flags }) {
|
|
7803
|
-
const { runCreate } = await import("./create-
|
|
7815
|
+
const { runCreate } = await import("./create-CboPfAlN.js");
|
|
7804
7816
|
return runCreate(ctx, {
|
|
7805
7817
|
dir: args.dir,
|
|
7806
7818
|
...flags
|
|
@@ -7843,7 +7855,7 @@ const command$47 = defineCommand({
|
|
|
7843
7855
|
prompts: true,
|
|
7844
7856
|
mcp: false,
|
|
7845
7857
|
async run(ctx, { args, flags }) {
|
|
7846
|
-
const { runStudio } = await import("./server-
|
|
7858
|
+
const { runStudio } = await import("./server-BqLPwcy9.js");
|
|
7847
7859
|
await runStudio({
|
|
7848
7860
|
dirs: args.dir,
|
|
7849
7861
|
port: flags.port,
|
|
@@ -7883,7 +7895,7 @@ const command$48 = defineCommand({
|
|
|
7883
7895
|
prompts: true,
|
|
7884
7896
|
mcp: false,
|
|
7885
7897
|
async run(ctx, input) {
|
|
7886
|
-
const { runPromote } = await import("./promote-
|
|
7898
|
+
const { runPromote } = await import("./promote-Ca4URuHY.js");
|
|
7887
7899
|
return runPromote(ctx, input);
|
|
7888
7900
|
}
|
|
7889
7901
|
});
|
|
@@ -7919,15 +7931,27 @@ const command$49 = defineCommand({
|
|
|
7919
7931
|
overwriteSource: {
|
|
7920
7932
|
type: "boolean",
|
|
7921
7933
|
describe: "Replace the pushed paywalls' source in the app's repo with yours even though it can't be merged - other paywalls and funnels stay"
|
|
7934
|
+
},
|
|
7935
|
+
existing: {
|
|
7936
|
+
type: "boolean",
|
|
7937
|
+
describe: "Only paywalls already on Superwall - skip any not in superwall.lock instead of creating them"
|
|
7938
|
+
},
|
|
7939
|
+
source: {
|
|
7940
|
+
type: "boolean",
|
|
7941
|
+
describe: "Push the project source to every app, also those whose paywalls did not change (shared files such as the design system)"
|
|
7922
7942
|
}
|
|
7923
7943
|
},
|
|
7924
|
-
examples: [
|
|
7944
|
+
examples: [
|
|
7945
|
+
["publish", "Push every changed paywall and funnel and make it live"],
|
|
7946
|
+
["publish --id plus-upgrade --platform ios -m \"New annual price\"", "Ship one paywall on one platform and record why"],
|
|
7947
|
+
["publish --existing --source -m \"Rounder corners\"", "Ship a design-system change: every paywall already on Superwall that it rebuilds, and every app's source"]
|
|
7948
|
+
],
|
|
7925
7949
|
auth: "none",
|
|
7926
7950
|
json: false,
|
|
7927
7951
|
prompts: true,
|
|
7928
7952
|
mcp: false,
|
|
7929
7953
|
async run(ctx, input) {
|
|
7930
|
-
const { runPush } = await import("./push-
|
|
7954
|
+
const { runPush } = await import("./push-Cb4g_l1K.js");
|
|
7931
7955
|
return runPush(ctx, input, true);
|
|
7932
7956
|
}
|
|
7933
7957
|
});
|
|
@@ -7963,7 +7987,7 @@ const command$50 = defineCommand({
|
|
|
7963
7987
|
prompts: true,
|
|
7964
7988
|
mcp: false,
|
|
7965
7989
|
async run(ctx, input) {
|
|
7966
|
-
const { runPull } = await import("./pull-
|
|
7990
|
+
const { runPull } = await import("./pull-DRMIxqR8.js");
|
|
7967
7991
|
return runPull(ctx, input);
|
|
7968
7992
|
}
|
|
7969
7993
|
});
|
|
@@ -7999,6 +8023,14 @@ const command$51 = defineCommand({
|
|
|
7999
8023
|
overwriteSource: {
|
|
8000
8024
|
type: "boolean",
|
|
8001
8025
|
describe: "Replace the pushed paywalls' source in the app's repo with yours even though it can't be merged - other paywalls and funnels stay"
|
|
8026
|
+
},
|
|
8027
|
+
existing: {
|
|
8028
|
+
type: "boolean",
|
|
8029
|
+
describe: "Only paywalls already on Superwall - skip any not in superwall.lock instead of creating them"
|
|
8030
|
+
},
|
|
8031
|
+
source: {
|
|
8032
|
+
type: "boolean",
|
|
8033
|
+
describe: "Push the project source to every app, also those whose paywalls did not change (shared files such as the design system)"
|
|
8002
8034
|
}
|
|
8003
8035
|
},
|
|
8004
8036
|
examples: [["push", "Push every changed paywall and funnel as a new version"], ["push --id plus-upgrade -m \"New annual price\"", "Push one paywall and record why"]],
|
|
@@ -8007,7 +8039,7 @@ const command$51 = defineCommand({
|
|
|
8007
8039
|
prompts: true,
|
|
8008
8040
|
mcp: false,
|
|
8009
8041
|
async run(ctx, input) {
|
|
8010
|
-
const { runPush } = await import("./push-
|
|
8042
|
+
const { runPush } = await import("./push-Cb4g_l1K.js");
|
|
8011
8043
|
return runPush(ctx, input, false);
|
|
8012
8044
|
}
|
|
8013
8045
|
});
|
|
@@ -8124,7 +8156,7 @@ function resourceHelp(resource) {
|
|
|
8124
8156
|
})),
|
|
8125
8157
|
{
|
|
8126
8158
|
title: "Related",
|
|
8127
|
-
lines: table((resource.related ?? []).map(([command$
|
|
8159
|
+
lines: table((resource.related ?? []).map(([command$82, text]) => [`superwall ${command$82}`, pc.dim(text)]), ([left]) => left.length)
|
|
8128
8160
|
},
|
|
8129
8161
|
{
|
|
8130
8162
|
title: "Examples",
|
|
@@ -8402,7 +8434,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8402
8434
|
let name = nameArg;
|
|
8403
8435
|
let platform = textOf(fields.platform);
|
|
8404
8436
|
if (interactive && (!name || !platform)) {
|
|
8405
|
-
const { scanProject } = await import("./scan-
|
|
8437
|
+
const { scanProject } = await import("./scan-2WqHGkjU.js");
|
|
8406
8438
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8407
8439
|
if (detected && !name && !platform) {
|
|
8408
8440
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8712,7 +8744,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8712
8744
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8713
8745
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8714
8746
|
if (action === "storekit" && resource === "products") {
|
|
8715
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8747
|
+
const { writeStoreKit } = await import("./storekit-Dewj_5qg.js");
|
|
8716
8748
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8717
8749
|
}
|
|
8718
8750
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -8726,15 +8758,15 @@ async function runOperation(ctx, owner, resource, op$1, args, flags) {
|
|
|
8726
8758
|
}
|
|
8727
8759
|
const toFlag = (field$1) => `--${field$1.replace(/_/g, "-")}`;
|
|
8728
8760
|
async function callOperation(context, owner, resource, op$1, ids, flags, merged = {}) {
|
|
8729
|
-
const command$
|
|
8761
|
+
const command$82 = `superwall ${owner === resource ? "" : `${owner.name} `}${resource.name} ${op$1.name}`;
|
|
8730
8762
|
const { method, path: template } = op$1;
|
|
8731
|
-
if (!method || !template) throw new Error(`${command$
|
|
8763
|
+
if (!method || !template) throw new Error(`${command$82} has no API endpoint.`);
|
|
8732
8764
|
const spec = await apiCall(context, "Loading the API reference", () => findSpec(op$1));
|
|
8733
8765
|
const args = [...ids];
|
|
8734
8766
|
const ctx = owner.appArg && args[0] && !context.target.app ? withApp(context, args.shift()) : context;
|
|
8735
8767
|
const positional = positionalParams(op$1);
|
|
8736
|
-
if (args.length < positional.length) throw new Error(`Usage: ${command$
|
|
8737
|
-
if (args.length > positional.length) throw new Error(`${command$
|
|
8768
|
+
if (args.length < positional.length) throw new Error(`Usage: ${command$82} ${usageOf(owner, op$1)}\nRun \`${command$82} --help\` for its flags.`);
|
|
8769
|
+
if (args.length > positional.length) throw new Error(`${command$82} takes ${positional.length || "no"} argument${positional.length === 1 ? "" : "s"}; got "${args.slice(positional.length).join(" ")}".`);
|
|
8738
8770
|
const pathValues = /* @__PURE__ */ new Map();
|
|
8739
8771
|
const query = {};
|
|
8740
8772
|
const queryNames = new Set(spec?.params.filter((param) => param.in === "query").map((param) => param.name));
|
|
@@ -8754,7 +8786,7 @@ async function callOperation(context, owner, resource, op$1, ids, flags, merged
|
|
|
8754
8786
|
if (queryParam) query[field$1] = coerce(raw, queryParam.type);
|
|
8755
8787
|
else if (bodyField) body[field$1] = coerce(raw, bodyField.type);
|
|
8756
8788
|
else if (!spec) (sendsBody ? body : query)[field$1] = raw;
|
|
8757
|
-
else throw new Error(`${command$
|
|
8789
|
+
else throw new Error(`${command$82} has no ${toFlag(field$1)}. \`${command$82} --help\` lists what it takes.`);
|
|
8758
8790
|
}
|
|
8759
8791
|
Object.assign(sendsBody ? body : query, parseParams(flags.data));
|
|
8760
8792
|
await fillScope(ctx, op$1, spec, pathValues, query, body);
|
|
@@ -8763,11 +8795,11 @@ async function callOperation(context, owner, resource, op$1, ids, flags, merged
|
|
|
8763
8795
|
});
|
|
8764
8796
|
if (missing$1.length > 0) {
|
|
8765
8797
|
const needs = missing$1.map((param) => `${toFlag(param.name)} <${param.type.replace(/"/g, "").replace(/ \| /g, "|")}>`);
|
|
8766
|
-
throw new Error(`${command$
|
|
8798
|
+
throw new Error(`${command$82} needs ${needs.join(" and ")}.`);
|
|
8767
8799
|
}
|
|
8768
8800
|
const url = withQuery(template.replace(/\{([^}]+)\}/g, (_, param) => {
|
|
8769
8801
|
const value$1 = pathValues.get(param);
|
|
8770
|
-
if (value$1 === void 0) throw new Error(`${command$
|
|
8802
|
+
if (value$1 === void 0) throw new Error(`${command$82} needs ${param}.`);
|
|
8771
8803
|
return encodeURIComponent(value$1);
|
|
8772
8804
|
}), query);
|
|
8773
8805
|
if (ctx.dryRun) return renderValue(ctx, {
|
|
@@ -8879,7 +8911,7 @@ async function dispatch(ctx, owner, words, flags) {
|
|
|
8879
8911
|
const nested = rest[0] ? findNested(owner, rest[0]) : void 0;
|
|
8880
8912
|
if (nested) rest = rest.slice(1);
|
|
8881
8913
|
const resource = nested ?? owner;
|
|
8882
|
-
const command$
|
|
8914
|
+
const command$82 = nested ? `${owner.name} ${nested.name}` : owner.name;
|
|
8883
8915
|
if (rest[0] && /^(\d+|https?:\/\/.*)$/.test(rest[0]) && findOperation(resource, "get")) rest = ["get", ...rest];
|
|
8884
8916
|
const [opName, ...args] = rest;
|
|
8885
8917
|
if (!opName) {
|
|
@@ -8891,7 +8923,7 @@ async function dispatch(ctx, owner, words, flags) {
|
|
|
8891
8923
|
if (!op$1) {
|
|
8892
8924
|
const known = resource.operations.map((candidate) => candidate.name);
|
|
8893
8925
|
const nestedNames = nested ? [] : (owner.nested ?? []).map((candidate) => candidate.name);
|
|
8894
|
-
throw new UsageError(`${command$
|
|
8926
|
+
throw new UsageError(`${command$82} has no "${opName}". It takes: ${[...known, ...nestedNames].join(", ")}.\nRun superwall ${command$82} --help for what each does.`, command$82);
|
|
8895
8927
|
}
|
|
8896
8928
|
await runOperation(ctx, owner, resource, op$1, args, flags);
|
|
8897
8929
|
}
|
|
@@ -10066,7 +10098,7 @@ const command$62 = defineCommand({
|
|
|
10066
10098
|
prompts: true,
|
|
10067
10099
|
mcp: false,
|
|
10068
10100
|
async run(ctx) {
|
|
10069
|
-
const { runDoctor } = await import("./doctor-
|
|
10101
|
+
const { runDoctor } = await import("./doctor-BqZGaQE5.js");
|
|
10070
10102
|
return runDoctor(ctx);
|
|
10071
10103
|
}
|
|
10072
10104
|
});
|
|
@@ -10190,13 +10222,13 @@ function parseFeedbackReport(value$1) {
|
|
|
10190
10222
|
}
|
|
10191
10223
|
};
|
|
10192
10224
|
}
|
|
10193
|
-
const
|
|
10225
|
+
const fallsBack = (error) => error instanceof ApiError && error.status !== 429 || error instanceof ApiUnreachableError || error instanceof NotLoggedInError || error instanceof SyntaxError;
|
|
10194
10226
|
async function sendToApi(api, feedback, via) {
|
|
10195
10227
|
try {
|
|
10196
10228
|
return parseFeedbackReport(await api.post("/v2/feedback", buildFeedbackBody(feedback, via)));
|
|
10197
10229
|
} catch (error) {
|
|
10198
|
-
if (
|
|
10199
|
-
|
|
10230
|
+
if (fallsBack(error)) return void 0;
|
|
10231
|
+
throw error;
|
|
10200
10232
|
}
|
|
10201
10233
|
}
|
|
10202
10234
|
function buildFeedbackEvent(feedback, via, distinctId, session, osRelease, report) {
|
|
@@ -10411,7 +10443,7 @@ const command$64 = defineCommand({
|
|
|
10411
10443
|
prompts: true,
|
|
10412
10444
|
mcp: false,
|
|
10413
10445
|
async run(ctx, input) {
|
|
10414
|
-
const { runSkills } = await import("./skills-
|
|
10446
|
+
const { runSkills } = await import("./skills-Bbtq8V_D.js");
|
|
10415
10447
|
return runSkills(ctx, input);
|
|
10416
10448
|
}
|
|
10417
10449
|
});
|
|
@@ -10427,14 +10459,600 @@ const command$65 = defineCommand({
|
|
|
10427
10459
|
prompts: true,
|
|
10428
10460
|
mcp: false,
|
|
10429
10461
|
async run(ctx) {
|
|
10430
|
-
const { runUpgrade } = await import("./upgrade-
|
|
10462
|
+
const { runUpgrade } = await import("./upgrade-DfZfDljd.js");
|
|
10431
10463
|
return runUpgrade(ctx, AUTO_UPDATE_TARGET());
|
|
10432
10464
|
}
|
|
10433
10465
|
});
|
|
10434
10466
|
|
|
10435
10467
|
//#endregion
|
|
10436
|
-
//#region src/commands/
|
|
10468
|
+
//#region src/commands/workspaces/approve.ts
|
|
10437
10469
|
const command$66 = defineCommand({
|
|
10470
|
+
name: "workspaces approve",
|
|
10471
|
+
summary: "Review what a version can do and make it live",
|
|
10472
|
+
details: "Admins only. Shows the version's manifest and how it differs from the live version, then asks. Without a terminal it needs --yes, and --accept-changes too when what the workspace can do changes.",
|
|
10473
|
+
args: { version: { describe: "The version id (default: the latest built that isn't live)" } },
|
|
10474
|
+
flags: {
|
|
10475
|
+
dir: projectDir,
|
|
10476
|
+
workspace,
|
|
10477
|
+
org: {
|
|
10478
|
+
type: "string",
|
|
10479
|
+
value: "id",
|
|
10480
|
+
describe: "The organization of a --workspace slug"
|
|
10481
|
+
},
|
|
10482
|
+
yes: {
|
|
10483
|
+
...yes,
|
|
10484
|
+
describe: "Go ahead without asking, when nothing it can do changes"
|
|
10485
|
+
},
|
|
10486
|
+
acceptChanges: {
|
|
10487
|
+
type: "boolean",
|
|
10488
|
+
describe: "With --yes: also accept changes to what it can do"
|
|
10489
|
+
}
|
|
10490
|
+
},
|
|
10491
|
+
examples: [
|
|
10492
|
+
["workspaces approve --workspace 42", "Review and approve the latest built version"],
|
|
10493
|
+
["workspaces approve 7 --workspace 42 --json", "Print version 7's manifest and changes, approving nothing"],
|
|
10494
|
+
["workspaces approve 7 --workspace 42 --yes --accept-changes", "Approve it without a terminal, having read them"]
|
|
10495
|
+
],
|
|
10496
|
+
auth: "required",
|
|
10497
|
+
json: true,
|
|
10498
|
+
prompts: true,
|
|
10499
|
+
mcp: false,
|
|
10500
|
+
channel: "next",
|
|
10501
|
+
async run(ctx, { args, flags }) {
|
|
10502
|
+
const { runWorkspaceApprove } = await import("./approve-DbwsYO4s.js");
|
|
10503
|
+
await runWorkspaceApprove(ctx, {
|
|
10504
|
+
version: args.version,
|
|
10505
|
+
...flags
|
|
10506
|
+
});
|
|
10507
|
+
}
|
|
10508
|
+
});
|
|
10509
|
+
|
|
10510
|
+
//#endregion
|
|
10511
|
+
//#region src/commands/workspaces/create.ts
|
|
10512
|
+
const command$67 = defineCommand({
|
|
10513
|
+
name: "workspaces create",
|
|
10514
|
+
summary: "Start a workspace: a mini-app that adds to the Superwall dashboard",
|
|
10515
|
+
args: { dir: { describe: "Where to put it (default: my-workspace)" } },
|
|
10516
|
+
flags: { install: {
|
|
10517
|
+
type: "boolean",
|
|
10518
|
+
default: true,
|
|
10519
|
+
describe: "Install dependencies after downloading (--no-install to skip)"
|
|
10520
|
+
} },
|
|
10521
|
+
examples: [["workspaces create", "Download the starter into my-workspace"], ["workspaces create churn-copilot", "Name the directory yourself"]],
|
|
10522
|
+
auth: "none",
|
|
10523
|
+
json: false,
|
|
10524
|
+
prompts: false,
|
|
10525
|
+
mcp: false,
|
|
10526
|
+
channel: "next",
|
|
10527
|
+
async run(ctx, { args, flags }) {
|
|
10528
|
+
const { runWorkspaceCreate } = await import("./starter-hcwocv_Z.js");
|
|
10529
|
+
await runWorkspaceCreate(ctx, {
|
|
10530
|
+
dir: args.dir,
|
|
10531
|
+
install: flags.install
|
|
10532
|
+
});
|
|
10533
|
+
}
|
|
10534
|
+
});
|
|
10535
|
+
|
|
10536
|
+
//#endregion
|
|
10537
|
+
//#region src/commands/workspaces/dev.ts
|
|
10538
|
+
const command$68 = defineCommand({
|
|
10539
|
+
name: "workspaces dev",
|
|
10540
|
+
summary: "Run a workspace on localhost against your real data, read-only",
|
|
10541
|
+
details: "Bundles the workspace the way the builder does, including its client.entry, and runs it in workerd. A local page plays the dashboard: it mounts pages and widgets, sends them context and theme over the bridge, and runs metrics and readouts. API calls go out with a short-lived, read-only token as you, limited to one organization and to the routes a workspace can read. It reads everything you can read in that organization, so only run code you trust. A staff account reaches only that organization too. Writes, outside hosts and raw sockets are refused. Every change rebuilds it.",
|
|
10542
|
+
args: { dir: { describe: "The workspace (default: cwd)" } },
|
|
10543
|
+
flags: {
|
|
10544
|
+
port: {
|
|
10545
|
+
type: "number",
|
|
10546
|
+
alias: "p",
|
|
10547
|
+
default: 8790,
|
|
10548
|
+
describe: "Port for the dev page; the frame takes the next one"
|
|
10549
|
+
},
|
|
10550
|
+
org: {
|
|
10551
|
+
type: "string",
|
|
10552
|
+
value: "id",
|
|
10553
|
+
describe: "The organization to run against; dev's token reaches only this one"
|
|
10554
|
+
},
|
|
10555
|
+
app: {
|
|
10556
|
+
...app,
|
|
10557
|
+
describe: "The app in the context: an id, a name or a dashboard link"
|
|
10558
|
+
},
|
|
10559
|
+
campaign: {
|
|
10560
|
+
type: "string",
|
|
10561
|
+
value: "id",
|
|
10562
|
+
describe: "The campaign in the context"
|
|
10563
|
+
},
|
|
10564
|
+
audience: {
|
|
10565
|
+
type: "string",
|
|
10566
|
+
value: "id",
|
|
10567
|
+
describe: "The audience in the context"
|
|
10568
|
+
},
|
|
10569
|
+
variant: {
|
|
10570
|
+
type: "list",
|
|
10571
|
+
value: "id",
|
|
10572
|
+
describe: "A variant in the context; repeat for several"
|
|
10573
|
+
},
|
|
10574
|
+
user: {
|
|
10575
|
+
type: "string",
|
|
10576
|
+
value: "id",
|
|
10577
|
+
describe: "The app user in the context"
|
|
10578
|
+
},
|
|
10579
|
+
alias: {
|
|
10580
|
+
type: "list",
|
|
10581
|
+
value: "id",
|
|
10582
|
+
describe: "An alias of that user; repeat for several"
|
|
10583
|
+
},
|
|
10584
|
+
environment: {
|
|
10585
|
+
type: "string",
|
|
10586
|
+
choices: ["PRODUCTION", "SANDBOX"],
|
|
10587
|
+
describe: "The environment in the context"
|
|
10588
|
+
},
|
|
10589
|
+
from: {
|
|
10590
|
+
type: "string",
|
|
10591
|
+
value: "iso",
|
|
10592
|
+
describe: "Start of the date range in the context"
|
|
10593
|
+
},
|
|
10594
|
+
to: {
|
|
10595
|
+
type: "string",
|
|
10596
|
+
value: "iso",
|
|
10597
|
+
describe: "End of the date range in the context"
|
|
10598
|
+
},
|
|
10599
|
+
context: {
|
|
10600
|
+
type: "string",
|
|
10601
|
+
value: "json",
|
|
10602
|
+
describe: "The whole context as JSON, for a slot this CLI doesn't know"
|
|
10603
|
+
}
|
|
10604
|
+
},
|
|
10605
|
+
examples: [["workspaces dev --org 1234", "Serve this workspace for one organization"], ["workspaces dev --app 5678 --user alice", "Fill in the app and the user a panel receives"]],
|
|
10606
|
+
auth: "required",
|
|
10607
|
+
json: false,
|
|
10608
|
+
prompts: true,
|
|
10609
|
+
mcp: false,
|
|
10610
|
+
channel: "next",
|
|
10611
|
+
async run(ctx, { args, flags }) {
|
|
10612
|
+
const { runWorkspaceDev } = await import("./run-Czbb-sHR.js");
|
|
10613
|
+
await runWorkspaceDev(ctx, {
|
|
10614
|
+
dir: args.dir,
|
|
10615
|
+
...flags
|
|
10616
|
+
});
|
|
10617
|
+
}
|
|
10618
|
+
});
|
|
10619
|
+
|
|
10620
|
+
//#endregion
|
|
10621
|
+
//#region src/commands/workspaces/install.ts
|
|
10622
|
+
const command$69 = defineCommand({
|
|
10623
|
+
name: "workspaces install",
|
|
10624
|
+
summary: "Choose where an entrypoint shows",
|
|
10625
|
+
details: "Admins only. Installs an entrypoint of the live version for the whole organization, or one app with --app. An app's row overrides the organization's there. Without an entrypoint, lists what's installed.",
|
|
10626
|
+
args: { entrypoint: { describe: "The entrypoint id from superwall.json" } },
|
|
10627
|
+
flags: {
|
|
10628
|
+
app: {
|
|
10629
|
+
...app,
|
|
10630
|
+
describe: "Install it for this app only (default: the whole organization)"
|
|
10631
|
+
},
|
|
10632
|
+
disable: {
|
|
10633
|
+
type: "boolean",
|
|
10634
|
+
describe: "Turn it off here, keeping its row"
|
|
10635
|
+
},
|
|
10636
|
+
remove: {
|
|
10637
|
+
type: "boolean",
|
|
10638
|
+
describe: "Remove its row, which ends sessions that are open"
|
|
10639
|
+
},
|
|
10640
|
+
position: {
|
|
10641
|
+
type: "number",
|
|
10642
|
+
value: "n",
|
|
10643
|
+
describe: "Order among the entrypoints shown in one slot, lowest first"
|
|
10644
|
+
},
|
|
10645
|
+
dir: projectDir,
|
|
10646
|
+
workspace,
|
|
10647
|
+
org: {
|
|
10648
|
+
type: "string",
|
|
10649
|
+
value: "id",
|
|
10650
|
+
describe: "The organization of a --workspace slug"
|
|
10651
|
+
},
|
|
10652
|
+
yes: {
|
|
10653
|
+
...yes,
|
|
10654
|
+
describe: "With --remove: go ahead without asking"
|
|
10655
|
+
}
|
|
10656
|
+
},
|
|
10657
|
+
examples: [
|
|
10658
|
+
["workspaces install", "List what's installed"],
|
|
10659
|
+
["workspaces install churn --app 5678", "Show it in one app"],
|
|
10660
|
+
["workspaces install churn --remove --yes", "Remove the organization-wide row"]
|
|
10661
|
+
],
|
|
10662
|
+
auth: "required",
|
|
10663
|
+
json: true,
|
|
10664
|
+
prompts: true,
|
|
10665
|
+
mcp: false,
|
|
10666
|
+
channel: "next",
|
|
10667
|
+
async run(ctx, { args, flags }) {
|
|
10668
|
+
const { runWorkspaceInstall } = await import("./install-DoSYCwLL.js");
|
|
10669
|
+
await runWorkspaceInstall(ctx, {
|
|
10670
|
+
entrypoint: args.entrypoint,
|
|
10671
|
+
...flags
|
|
10672
|
+
});
|
|
10673
|
+
}
|
|
10674
|
+
});
|
|
10675
|
+
|
|
10676
|
+
//#endregion
|
|
10677
|
+
//#region src/commands/workspaces/list.ts
|
|
10678
|
+
const command$70 = defineCommand({
|
|
10679
|
+
name: "workspaces list",
|
|
10680
|
+
summary: "List an organization's workspaces",
|
|
10681
|
+
flags: {
|
|
10682
|
+
org: {
|
|
10683
|
+
type: "string",
|
|
10684
|
+
value: "id",
|
|
10685
|
+
describe: "The organization (default: this project's, or asks)"
|
|
10686
|
+
},
|
|
10687
|
+
dir: projectDir
|
|
10688
|
+
},
|
|
10689
|
+
examples: [["workspaces list --org 1234", "Every workspace in organization 1234"]],
|
|
10690
|
+
auth: "required",
|
|
10691
|
+
json: true,
|
|
10692
|
+
prompts: true,
|
|
10693
|
+
mcp: false,
|
|
10694
|
+
channel: "next",
|
|
10695
|
+
async run(ctx, { flags }) {
|
|
10696
|
+
const { runWorkspaceList } = await import("./install-DoSYCwLL.js");
|
|
10697
|
+
await runWorkspaceList(ctx, flags);
|
|
10698
|
+
}
|
|
10699
|
+
});
|
|
10700
|
+
|
|
10701
|
+
//#endregion
|
|
10702
|
+
//#region src/commands/workspaces/logs.ts
|
|
10703
|
+
const command$71 = defineCommand({
|
|
10704
|
+
name: "workspaces logs",
|
|
10705
|
+
summary: "Show a version's build log",
|
|
10706
|
+
details: "The last 128 KiB, once the build has finished. The latest version by default.",
|
|
10707
|
+
args: { version: { describe: "The version id (default: the latest)" } },
|
|
10708
|
+
flags: {
|
|
10709
|
+
dir: projectDir,
|
|
10710
|
+
workspace,
|
|
10711
|
+
org: {
|
|
10712
|
+
type: "string",
|
|
10713
|
+
value: "id",
|
|
10714
|
+
describe: "The organization of a --workspace slug"
|
|
10715
|
+
}
|
|
10716
|
+
},
|
|
10717
|
+
examples: [["workspaces logs", "The latest version's build log"], ["workspaces logs 7", "Version 7's"]],
|
|
10718
|
+
auth: "required",
|
|
10719
|
+
json: true,
|
|
10720
|
+
prompts: false,
|
|
10721
|
+
mcp: false,
|
|
10722
|
+
channel: "next",
|
|
10723
|
+
async run(ctx, { args, flags }) {
|
|
10724
|
+
const { runWorkspaceLogs } = await import("./status-K1IGp6pe.js");
|
|
10725
|
+
await runWorkspaceLogs(ctx, {
|
|
10726
|
+
version: args.version,
|
|
10727
|
+
...flags
|
|
10728
|
+
});
|
|
10729
|
+
}
|
|
10730
|
+
});
|
|
10731
|
+
|
|
10732
|
+
//#endregion
|
|
10733
|
+
//#region src/commands/workspaces/open.ts
|
|
10734
|
+
const command$72 = defineCommand({
|
|
10735
|
+
name: "workspaces open",
|
|
10736
|
+
summary: "Open a workspace in the dashboard",
|
|
10737
|
+
args: { entrypoint: { describe: "An entrypoint to open inside an app, with --app" } },
|
|
10738
|
+
flags: {
|
|
10739
|
+
app: {
|
|
10740
|
+
...app,
|
|
10741
|
+
describe: "The app to open the entrypoint in"
|
|
10742
|
+
},
|
|
10743
|
+
dir: projectDir,
|
|
10744
|
+
workspace,
|
|
10745
|
+
org: {
|
|
10746
|
+
type: "string",
|
|
10747
|
+
value: "id",
|
|
10748
|
+
describe: "The organization of a --workspace slug"
|
|
10749
|
+
},
|
|
10750
|
+
open: {
|
|
10751
|
+
type: "boolean",
|
|
10752
|
+
default: true,
|
|
10753
|
+
describe: "Open your browser at a terminal (--no-open to only print the link)"
|
|
10754
|
+
}
|
|
10755
|
+
},
|
|
10756
|
+
examples: [["workspaces open", "This project's workspace"], ["workspaces open panel --app 5678", "One entrypoint, inside an app"]],
|
|
10757
|
+
auth: "required",
|
|
10758
|
+
json: true,
|
|
10759
|
+
prompts: false,
|
|
10760
|
+
mcp: false,
|
|
10761
|
+
channel: "next",
|
|
10762
|
+
async run(ctx, { args, flags }) {
|
|
10763
|
+
const { runWorkspaceOpen } = await import("./install-DoSYCwLL.js");
|
|
10764
|
+
await runWorkspaceOpen(ctx, {
|
|
10765
|
+
entrypoint: args.entrypoint,
|
|
10766
|
+
...flags
|
|
10767
|
+
});
|
|
10768
|
+
}
|
|
10769
|
+
});
|
|
10770
|
+
|
|
10771
|
+
//#endregion
|
|
10772
|
+
//#region src/commands/workspaces/pull.ts
|
|
10773
|
+
const command$73 = defineCommand({
|
|
10774
|
+
name: "workspaces pull",
|
|
10775
|
+
summary: "Bring teammates' pushes into this project, merged with your edits",
|
|
10776
|
+
args: { dir: { describe: "The workspace project, or with --workspace an empty folder to fill (default: cwd)" } },
|
|
10777
|
+
flags: {
|
|
10778
|
+
workspace,
|
|
10779
|
+
org: {
|
|
10780
|
+
type: "string",
|
|
10781
|
+
value: "id",
|
|
10782
|
+
describe: "The organization of a --workspace slug"
|
|
10783
|
+
},
|
|
10784
|
+
theirs: {
|
|
10785
|
+
type: "boolean",
|
|
10786
|
+
describe: "Where you and the source repo both changed a file, take the source repo's version"
|
|
10787
|
+
}
|
|
10788
|
+
},
|
|
10789
|
+
examples: [
|
|
10790
|
+
["workspaces pull", "Merge what teammates pushed into this project"],
|
|
10791
|
+
["workspaces pull --theirs", "Take the source repo's version of files you both changed"],
|
|
10792
|
+
["workspaces pull churn-copilot --workspace 42", "Get workspace 42's source into a new folder"]
|
|
10793
|
+
],
|
|
10794
|
+
auth: "required",
|
|
10795
|
+
json: true,
|
|
10796
|
+
prompts: false,
|
|
10797
|
+
mcp: false,
|
|
10798
|
+
channel: "next",
|
|
10799
|
+
async run(ctx, { args, flags }) {
|
|
10800
|
+
const { runWorkspacePull } = await import("./pull-_qs90vGA.js");
|
|
10801
|
+
await runWorkspacePull(ctx, {
|
|
10802
|
+
dir: args.dir,
|
|
10803
|
+
...flags
|
|
10804
|
+
});
|
|
10805
|
+
}
|
|
10806
|
+
});
|
|
10807
|
+
|
|
10808
|
+
//#endregion
|
|
10809
|
+
//#region src/commands/workspaces/push.ts
|
|
10810
|
+
const command$74 = defineCommand({
|
|
10811
|
+
name: "workspaces push",
|
|
10812
|
+
summary: "Push this workspace's source and build it",
|
|
10813
|
+
details: "The first push creates the workspace from the manifest's name and records its id in superwall.workspace.json. Each push makes a version from the commit. Only you can see it until an admin approves it. When the source repo has commits this project doesn't, the push merges them, and your own copy runs them with your reads, so it asks first. Without a terminal it stops unless you pass --accept-merged-commits.",
|
|
10814
|
+
args: { dir: { describe: "The workspace project (default: cwd)" } },
|
|
10815
|
+
flags: {
|
|
10816
|
+
org: {
|
|
10817
|
+
type: "string",
|
|
10818
|
+
value: "id",
|
|
10819
|
+
describe: "The organization, on the first push"
|
|
10820
|
+
},
|
|
10821
|
+
m: {
|
|
10822
|
+
type: "string",
|
|
10823
|
+
value: "note",
|
|
10824
|
+
describe: "Why, recorded in the source commit"
|
|
10825
|
+
},
|
|
10826
|
+
overwriteSource: {
|
|
10827
|
+
type: "boolean",
|
|
10828
|
+
describe: "Replace what's in the source repo with this project"
|
|
10829
|
+
},
|
|
10830
|
+
acceptMergedCommits: {
|
|
10831
|
+
type: "boolean",
|
|
10832
|
+
describe: "Run commits this push merges from teammates in your copy, without asking"
|
|
10833
|
+
}
|
|
10834
|
+
},
|
|
10835
|
+
examples: [
|
|
10836
|
+
["workspaces push", "Push and build this project"],
|
|
10837
|
+
["workspaces push --org 1234 -m \"Add the cohort page\"", "The first push, with a note"],
|
|
10838
|
+
["workspaces push --json --accept-merged-commits", "In a script, taking in teammates' commits"]
|
|
10839
|
+
],
|
|
10840
|
+
auth: "required",
|
|
10841
|
+
json: true,
|
|
10842
|
+
prompts: true,
|
|
10843
|
+
mcp: false,
|
|
10844
|
+
channel: "next",
|
|
10845
|
+
async run(ctx, { args, flags }) {
|
|
10846
|
+
const { runWorkspacePush } = await import("./push-DZKsd6Dp.js");
|
|
10847
|
+
await runWorkspacePush(ctx, {
|
|
10848
|
+
dir: args.dir,
|
|
10849
|
+
...flags
|
|
10850
|
+
});
|
|
10851
|
+
}
|
|
10852
|
+
});
|
|
10853
|
+
|
|
10854
|
+
//#endregion
|
|
10855
|
+
//#region src/commands/workspaces/share.ts
|
|
10856
|
+
const command$75 = defineCommand({
|
|
10857
|
+
name: "workspaces share",
|
|
10858
|
+
summary: "Ask an admin to review a version",
|
|
10859
|
+
details: "The latest built version by default. Until an organization owner or admin approves it, only its author can see it. Nobody is told automatically, so it says who to ask.",
|
|
10860
|
+
args: { version: { describe: "The version id (default: the latest built)" } },
|
|
10861
|
+
flags: {
|
|
10862
|
+
dir: projectDir,
|
|
10863
|
+
workspace,
|
|
10864
|
+
org: {
|
|
10865
|
+
type: "string",
|
|
10866
|
+
value: "id",
|
|
10867
|
+
describe: "The organization of a --workspace slug"
|
|
10868
|
+
}
|
|
10869
|
+
},
|
|
10870
|
+
examples: [["workspaces share", "Ask for review of the latest built version"]],
|
|
10871
|
+
auth: "required",
|
|
10872
|
+
json: true,
|
|
10873
|
+
prompts: false,
|
|
10874
|
+
mcp: false,
|
|
10875
|
+
channel: "next",
|
|
10876
|
+
async run(ctx, { args, flags }) {
|
|
10877
|
+
const { runWorkspaceShare } = await import("./status-K1IGp6pe.js");
|
|
10878
|
+
await runWorkspaceShare(ctx, {
|
|
10879
|
+
version: args.version,
|
|
10880
|
+
...flags
|
|
10881
|
+
});
|
|
10882
|
+
}
|
|
10883
|
+
});
|
|
10884
|
+
|
|
10885
|
+
//#endregion
|
|
10886
|
+
//#region src/commands/workspaces/status.ts
|
|
10887
|
+
const command$76 = defineCommand({
|
|
10888
|
+
name: "workspaces status",
|
|
10889
|
+
summary: "Show a workspace's state and its latest versions",
|
|
10890
|
+
flags: {
|
|
10891
|
+
dir: projectDir,
|
|
10892
|
+
workspace,
|
|
10893
|
+
org: {
|
|
10894
|
+
type: "string",
|
|
10895
|
+
value: "id",
|
|
10896
|
+
describe: "The organization of a --workspace slug"
|
|
10897
|
+
},
|
|
10898
|
+
all: {
|
|
10899
|
+
type: "boolean",
|
|
10900
|
+
describe: "List every version, not just the latest and the live one"
|
|
10901
|
+
}
|
|
10902
|
+
},
|
|
10903
|
+
examples: [["workspaces status", "This project's workspace"], ["workspaces status --workspace 42", "Any workspace you can see"]],
|
|
10904
|
+
auth: "required",
|
|
10905
|
+
json: true,
|
|
10906
|
+
prompts: false,
|
|
10907
|
+
mcp: false,
|
|
10908
|
+
channel: "next",
|
|
10909
|
+
async run(ctx, { flags }) {
|
|
10910
|
+
const { runWorkspaceStatus } = await import("./status-K1IGp6pe.js");
|
|
10911
|
+
await runWorkspaceStatus(ctx, flags);
|
|
10912
|
+
}
|
|
10913
|
+
});
|
|
10914
|
+
|
|
10915
|
+
//#endregion
|
|
10916
|
+
//#region src/commands/workspaces/try.ts
|
|
10917
|
+
const command$77 = defineCommand({
|
|
10918
|
+
name: "workspaces try",
|
|
10919
|
+
summary: "Upload a draft and run an entrypoint on the real runtime",
|
|
10920
|
+
details: "Nothing is saved: the draft runs as you, read-only and with no outside hosts, and only you can reach it for a day. A metric prints its series. A page, panel, tab, card or action opens in the dashboard. Readouts run with workspaces dev until the runtime takes them.",
|
|
10921
|
+
args: { entrypoint: {
|
|
10922
|
+
describe: "The entrypoint id from superwall.json",
|
|
10923
|
+
required: true
|
|
10924
|
+
} },
|
|
10925
|
+
flags: {
|
|
10926
|
+
dir: {
|
|
10927
|
+
type: "string",
|
|
10928
|
+
value: "path",
|
|
10929
|
+
describe: "The workspace (default: cwd)"
|
|
10930
|
+
},
|
|
10931
|
+
app: {
|
|
10932
|
+
...app,
|
|
10933
|
+
describe: "The app to run it for: an id, a name or a dashboard link"
|
|
10934
|
+
},
|
|
10935
|
+
org: {
|
|
10936
|
+
type: "string",
|
|
10937
|
+
value: "id",
|
|
10938
|
+
describe: "The organization, when the app alone doesn't find it"
|
|
10939
|
+
},
|
|
10940
|
+
from: {
|
|
10941
|
+
type: "string",
|
|
10942
|
+
value: "iso",
|
|
10943
|
+
describe: "Start of the window (default: --days ago)"
|
|
10944
|
+
},
|
|
10945
|
+
to: {
|
|
10946
|
+
type: "string",
|
|
10947
|
+
value: "iso",
|
|
10948
|
+
describe: "End of the window (default: now)"
|
|
10949
|
+
},
|
|
10950
|
+
days: {
|
|
10951
|
+
type: "number",
|
|
10952
|
+
default: 30,
|
|
10953
|
+
describe: "How far back the window starts"
|
|
10954
|
+
},
|
|
10955
|
+
interval: {
|
|
10956
|
+
type: "string",
|
|
10957
|
+
choices: [
|
|
10958
|
+
"hour",
|
|
10959
|
+
"day",
|
|
10960
|
+
"week",
|
|
10961
|
+
"month"
|
|
10962
|
+
],
|
|
10963
|
+
default: "day",
|
|
10964
|
+
describe: "Bucket size"
|
|
10965
|
+
},
|
|
10966
|
+
breakdown: {
|
|
10967
|
+
type: "string",
|
|
10968
|
+
value: "key",
|
|
10969
|
+
describe: "One of the metric's declared breakdowns"
|
|
10970
|
+
},
|
|
10971
|
+
filter: {
|
|
10972
|
+
type: "list",
|
|
10973
|
+
value: "key=value",
|
|
10974
|
+
describe: "One of the metric's declared filter values; repeat for several"
|
|
10975
|
+
},
|
|
10976
|
+
points: {
|
|
10977
|
+
type: "boolean",
|
|
10978
|
+
describe: "Print every point, not just each series' summary"
|
|
10979
|
+
},
|
|
10980
|
+
campaign: {
|
|
10981
|
+
type: "string",
|
|
10982
|
+
value: "id",
|
|
10983
|
+
describe: "For a frame: the campaign in its context"
|
|
10984
|
+
},
|
|
10985
|
+
user: {
|
|
10986
|
+
type: "string",
|
|
10987
|
+
value: "id",
|
|
10988
|
+
describe: "For a frame: the app user in its context"
|
|
10989
|
+
},
|
|
10990
|
+
environment: {
|
|
10991
|
+
type: "string",
|
|
10992
|
+
choices: ["PRODUCTION", "SANDBOX"],
|
|
10993
|
+
describe: "For a frame: the environment in its context"
|
|
10994
|
+
},
|
|
10995
|
+
open: {
|
|
10996
|
+
type: "boolean",
|
|
10997
|
+
default: true,
|
|
10998
|
+
describe: "Open a frame in your browser at a terminal (--no-open to only print the link)"
|
|
10999
|
+
}
|
|
11000
|
+
},
|
|
11001
|
+
examples: [
|
|
11002
|
+
["workspaces try transactions --app 5678", "Run a metric for one app over the last 30 days"],
|
|
11003
|
+
["workspaces try transactions --app 5678 --breakdown store --filter store=APP_STORE", "Split and filter it"],
|
|
11004
|
+
["workspaces try home --org 1234", "Open a page in the dashboard"]
|
|
11005
|
+
],
|
|
11006
|
+
auth: "required",
|
|
11007
|
+
json: true,
|
|
11008
|
+
prompts: true,
|
|
11009
|
+
mcp: false,
|
|
11010
|
+
channel: "next",
|
|
11011
|
+
async run(ctx, { args, flags }) {
|
|
11012
|
+
const { runWorkspaceTry } = await import("./try-BUnhITXS.js");
|
|
11013
|
+
await runWorkspaceTry(ctx, {
|
|
11014
|
+
entrypoint: args.entrypoint,
|
|
11015
|
+
...flags
|
|
11016
|
+
});
|
|
11017
|
+
}
|
|
11018
|
+
});
|
|
11019
|
+
|
|
11020
|
+
//#endregion
|
|
11021
|
+
//#region src/commands/workspaces/update.ts
|
|
11022
|
+
const command$78 = defineCommand({
|
|
11023
|
+
name: "workspaces update",
|
|
11024
|
+
summary: "Refresh a workspace's vendored SDK from the public repo",
|
|
11025
|
+
args: { dir: { describe: "The workspace (default: cwd)" } },
|
|
11026
|
+
flags: {
|
|
11027
|
+
install: {
|
|
11028
|
+
type: "boolean",
|
|
11029
|
+
default: true,
|
|
11030
|
+
describe: "Update the lockfile after downloading (--no-install to skip)"
|
|
11031
|
+
},
|
|
11032
|
+
force: {
|
|
11033
|
+
type: "boolean",
|
|
11034
|
+
describe: "Replace a vendored SDK that's newer than the latest published one"
|
|
11035
|
+
}
|
|
11036
|
+
},
|
|
11037
|
+
examples: [["workspaces update", "Replace vendor/workspace-sdk with the latest and update the lockfile"]],
|
|
11038
|
+
auth: "none",
|
|
11039
|
+
json: false,
|
|
11040
|
+
prompts: false,
|
|
11041
|
+
mcp: false,
|
|
11042
|
+
channel: "next",
|
|
11043
|
+
async run(ctx, { args, flags }) {
|
|
11044
|
+
const { runWorkspaceUpdate } = await import("./starter-hcwocv_Z.js");
|
|
11045
|
+
await runWorkspaceUpdate(ctx, {
|
|
11046
|
+
dir: args.dir,
|
|
11047
|
+
install: flags.install,
|
|
11048
|
+
force: flags.force
|
|
11049
|
+
});
|
|
11050
|
+
}
|
|
11051
|
+
});
|
|
11052
|
+
|
|
11053
|
+
//#endregion
|
|
11054
|
+
//#region src/commands/workflows/integrate.ts
|
|
11055
|
+
const command$79 = defineCommand({
|
|
10438
11056
|
name: "integrate",
|
|
10439
11057
|
summary: "Set up the SDK, placements, and dashboard in your app",
|
|
10440
11058
|
flags: {
|
|
@@ -10466,8 +11084,8 @@ const command$66 = defineCommand({
|
|
|
10466
11084
|
prompts: true,
|
|
10467
11085
|
mcp: false,
|
|
10468
11086
|
async run(ctx, { flags }) {
|
|
10469
|
-
const { runIntegrate } = await import("./integrate-
|
|
10470
|
-
const { printPlaybook } = await import("./playbook-
|
|
11087
|
+
const { runIntegrate } = await import("./integrate-BSqd2wgI.js");
|
|
11088
|
+
const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
|
|
10471
11089
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
10472
11090
|
await runIntegrate({
|
|
10473
11091
|
...ctx,
|
|
@@ -10479,7 +11097,7 @@ const command$66 = defineCommand({
|
|
|
10479
11097
|
|
|
10480
11098
|
//#endregion
|
|
10481
11099
|
//#region src/commands/workflows/migrate.ts
|
|
10482
|
-
const command$
|
|
11100
|
+
const command$80 = defineCommand({
|
|
10483
11101
|
name: "migrate",
|
|
10484
11102
|
summary: "Migrate from RevenueCat / Adapty / Qonversion, or rebuild a paywall or native screen as code",
|
|
10485
11103
|
args: { paywall: { describe: "A dashboard paywall id: scaffold it as code (if not already) and rebuild its pages with your agent, or copy the prompt" } },
|
|
@@ -10513,8 +11131,8 @@ const command$67 = defineCommand({
|
|
|
10513
11131
|
prompts: true,
|
|
10514
11132
|
mcp: false,
|
|
10515
11133
|
async run(ctx, { args, flags }) {
|
|
10516
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
10517
|
-
const { printPlaybook } = await import("./playbook-
|
|
11134
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-CDdUCTH3.js");
|
|
11135
|
+
const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
|
|
10518
11136
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
10519
11137
|
path: flags.screen,
|
|
10520
11138
|
screenshot: flags.screenshot
|
|
@@ -10527,7 +11145,7 @@ const command$67 = defineCommand({
|
|
|
10527
11145
|
|
|
10528
11146
|
//#endregion
|
|
10529
11147
|
//#region src/commands/workflows/review.ts
|
|
10530
|
-
const command$
|
|
11148
|
+
const command$81 = defineCommand({
|
|
10531
11149
|
name: "review",
|
|
10532
11150
|
summary: "Review an existing Superwall setup end to end",
|
|
10533
11151
|
flags: {
|
|
@@ -10548,8 +11166,8 @@ const command$68 = defineCommand({
|
|
|
10548
11166
|
prompts: true,
|
|
10549
11167
|
mcp: false,
|
|
10550
11168
|
async run(ctx, { flags }) {
|
|
10551
|
-
const { runReview } = await import("./integrate-
|
|
10552
|
-
const { printPlaybook } = await import("./playbook-
|
|
11169
|
+
const { runReview } = await import("./integrate-BSqd2wgI.js");
|
|
11170
|
+
const { printPlaybook } = await import("./playbook-B-Pdonhg.js");
|
|
10553
11171
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
10554
11172
|
await runReview(ctx, flags.fix);
|
|
10555
11173
|
}
|
|
@@ -10563,9 +11181,9 @@ const GROUPS = [
|
|
|
10563
11181
|
title: "Workflows",
|
|
10564
11182
|
notes: ["Each takes --skill to print the playbook instead of running."],
|
|
10565
11183
|
commands: [
|
|
10566
|
-
command$
|
|
10567
|
-
command$
|
|
10568
|
-
command$
|
|
11184
|
+
command$79,
|
|
11185
|
+
command$81,
|
|
11186
|
+
command$80
|
|
10569
11187
|
]
|
|
10570
11188
|
},
|
|
10571
11189
|
{
|
|
@@ -10582,6 +11200,32 @@ const GROUPS = [
|
|
|
10582
11200
|
command$50
|
|
10583
11201
|
]
|
|
10584
11202
|
},
|
|
11203
|
+
{
|
|
11204
|
+
id: "workspaces",
|
|
11205
|
+
title: "Workspaces",
|
|
11206
|
+
prefix: "workspaces",
|
|
11207
|
+
channel: "next",
|
|
11208
|
+
topics: [{
|
|
11209
|
+
name: "workspaces",
|
|
11210
|
+
summary: "Mini-apps that add pages, panels and metrics to the Superwall dashboard",
|
|
11211
|
+
details: "A workspace is a Worker with a superwall.json manifest. It holds no credential: it calls Superwall as whoever is viewing it."
|
|
11212
|
+
}],
|
|
11213
|
+
commands: [
|
|
11214
|
+
command$67,
|
|
11215
|
+
command$68,
|
|
11216
|
+
command$77,
|
|
11217
|
+
command$78,
|
|
11218
|
+
command$74,
|
|
11219
|
+
command$73,
|
|
11220
|
+
command$76,
|
|
11221
|
+
command$71,
|
|
11222
|
+
command$75,
|
|
11223
|
+
command$66,
|
|
11224
|
+
command$69,
|
|
11225
|
+
command$70,
|
|
11226
|
+
command$72
|
|
11227
|
+
]
|
|
11228
|
+
},
|
|
10585
11229
|
{
|
|
10586
11230
|
id: "main",
|
|
10587
11231
|
title: "Commands",
|
|
@@ -10810,7 +11454,7 @@ function visible(channel) {
|
|
|
10810
11454
|
function listGroups() {
|
|
10811
11455
|
return GROUPS.filter((group$1) => visible(group$1.channel)).map((group$1) => ({
|
|
10812
11456
|
...group$1,
|
|
10813
|
-
commands: group$1.commands.filter((command$
|
|
11457
|
+
commands: group$1.commands.filter((command$82) => visible(command$82.channel))
|
|
10814
11458
|
}));
|
|
10815
11459
|
}
|
|
10816
11460
|
|