@superwall/cli 2.5.0 → 2.6.0-beta.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-Dyr7OFBx.js → apple-Bmt_iywx.js} +14 -14
- package/dist/{approve-Czs1-JO9.js → approve-D2UgqaRx.js} +31 -27
- package/dist/{assets-BrB9jQPQ.js → assets-B_quADds.js} +3 -3
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{session-D3fgXQBt.js → base-ChTi42M0.js} +35 -35
- package/dist/{billing-D5qqIlVb.js → billing-ZIETn0j4.js} +3 -3
- package/dist/{bind-B3eEcRyp.js → bind-ClFjTt0U.js} +4 -4
- package/dist/{build-DD9pSwHX.js → build-BWjXurjs.js} +11 -9
- package/dist/{client-AI9H4GGB.js → client-CyrYJzBF.js} +3 -3
- package/dist/create-7HDW3DCl.js +20 -0
- package/dist/{create-B4m-IKlr.js → create-BCIgjRHn.js} +6 -6
- package/dist/{create-ChfgWpiM.js → create-C3uklw-U.js} +31 -31
- package/dist/design-lint-CiFc78aM.js +158 -0
- package/dist/{doctor-XtXW6tKE.js → doctor-D2Q1EZe8.js} +6 -6
- package/dist/{drivers-CMEL13gp.js → drivers-BQkO5tHs.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-BWT2S4qC.js → environment-BocmdvZ-.js} +3 -3
- package/dist/{existing-b0GxFcnc.js → existing-Cl5x6_5u.js} +2 -2
- package/dist/{selection-BltBpyp5.js → framework-CLmf4swr.js} +50 -50
- package/dist/{held-D3PUNky2.js → held-Bykbwy-m.js} +6 -6
- package/dist/held-Chw3BtBV.js +17 -0
- package/dist/install-dXZZ79Oe.js +109 -0
- package/dist/{integrate-qvKd9pVW.js → integrate-DiSjlOjC.js} +23 -23
- package/dist/{types-JdxmnCko.js → lock-DgSx-p8Y.js} +79 -79
- package/dist/{login-PMoXUGqq.js → login-5sWIKDI2.js} +6 -6
- package/dist/login-DZ8Pipf6.js +17 -0
- package/dist/{login-COmGHrU5.js → login-Jp6E6d2e.js} +1 -1
- package/dist/{lookup-gjcKIZvh.js → lookup-CWzVfPpq.js} +3 -3
- package/dist/{migrate-SkkLLdmr.js → migrate-BKiOUsMY.js} +29 -29
- package/dist/{migration-DS44-3Zr.js → migration-Z69tLeHC.js} +29 -11
- package/dist/{notification-url-BjQPLf4-.js → notification-url-BDBxbwZq.js} +2 -2
- package/dist/{open-DQpm2yVs.js → open-DNd49kT-.js} +2 -2
- package/dist/{org-C04eAO-j.js → org-Dud1rF9f.js} +3 -3
- package/dist/{organization-BOECL3vZ.js → organization-7vJA3uy1.js} +8 -8
- package/dist/{orgs-D6Kk96mG.js → orgs-Z0H9WOs1.js} +1 -1
- package/dist/{paths-REb-GrbX.js → paths-CzTJVpfi.js} +1 -1
- package/dist/{playbook-Du4Oydbf.js → playbook-DJ__edOW.js} +10 -10
- package/dist/{project-CP6hiHra.js → project-NoMtbMyl.js} +9 -9
- package/dist/{promote-Dm2_b1WK.js → promote-DLtPSvmL.js} +23 -22
- package/dist/{pull-F6pvO4To.js → pull-AoUmaiMK.js} +8 -8
- package/dist/pull-C1xm2zqG.js +36 -0
- package/dist/pull-D-YuT3e0.js +106 -0
- package/dist/push-B42D8fKf.js +22 -0
- package/dist/{push-BIFLhAiO.js → push-BMblzg_6.js} +122 -22
- package/dist/{push-D_l9KJZN.js → push-BrzMFd4Z.js} +47 -47
- package/dist/push-Co5jk6Kr.js +30 -0
- package/dist/{registry-DIJB0mJa.js → registry-DDU10_Ix.js} +176 -155
- package/dist/resolve-DpOSDDdr.js +196 -0
- package/dist/{resources-BaP3p_LY.js → resources-CptT7HD6.js} +2 -2
- package/dist/{run-C5OPwhvS.js → run-c1O2_8pp.js} +2 -2
- package/dist/{run-CgLmD2vR.js → run-r3foWfhV.js} +93 -70
- package/dist/scan-D86kLtM7.js +4 -0
- package/dist/{scan-Bj5y0zTZ.js → scan-nVQO7JLx.js} +1 -1
- package/dist/{scope-CCb_7UvN.js → scope-ehZ7L1nj.js} +25 -11
- package/dist/{scope-Bp_zwJOo.js → scope-l1qGLsgz.js} +5 -5
- package/dist/{sdk-TvT0p_nO.js → sdk-DEfQttek.js} +7 -7
- package/dist/{series-TAixFBWW.js → series-D2ZpZ8cx.js} +96 -63
- package/dist/server-BEcsQaPu.js +29 -0
- package/dist/{server-CdVIboQn.js → server-DLARhh1k.js} +9 -9
- package/dist/session-Csuaw6RU.js +6 -0
- package/dist/{session-Ywim-P8M.js → session-Z0BeaJPf.js} +1 -1
- package/dist/{setup-zzjtTy8k.js → setup-C6NFy14d.js} +9 -9
- package/dist/skills/index.json +2 -2
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/SKILL.md +41 -31
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/cli.md +31 -28
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/slots.md +9 -9
- package/dist/{skills-2qYaUXGE.js → skills-421SFEyF.js} +4 -4
- package/dist/{skills-8um2fBPS.js → skills-CdKwaTRS.js} +8 -8
- package/dist/{git-D7AVdugb.js → source-BccdO4aL.js} +111 -102
- package/dist/{source-push-kAep4gPe.js → source-push-B4s6r9bB.js} +43 -26
- package/dist/{spinner-BANVLncC.js → spinner-DPdBlZe2.js} +3 -3
- package/dist/{starter-CiLrp1cN.js → starter-0OdVPH4l.js} +27 -27
- package/dist/{status-CoYMK7QL.js → status-Dsc7d3z2.js} +42 -39
- package/dist/{storage-DzP22xKn.js → storage-DT_wxwJ8.js} +1 -1
- package/dist/{storekit-n1x0bWkQ.js → storekit-B9M2raxe.js} +3 -3
- package/dist/storekit-BWZf-fNE.js +17 -0
- package/dist/{telemetry-CXN6f-ZX.js → telemetry-ovPiseFm.js} +1 -1
- package/dist/{token-FmeHywYt.js → token-Bu3FaRkv.js} +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +148 -128
- package/dist/{try-BWbzgelb.js → try-B8FYkTvQ.js} +29 -29
- package/dist/{upgrade-Bk5boOgW.js → upgrade-B7TmvEPP.js} +2 -2
- package/dist/{upgrade-CoWCEnoi.js → upgrade-CAHyrWUL.js} +2 -2
- package/package.json +2 -2
- package/dist/create-CJljlkJK.js +0 -20
- package/dist/held-CX7Zf8u-.js +0 -17
- package/dist/install-CVUXsx8c.js +0 -103
- package/dist/login-ClnJi1Ea.js +0 -17
- package/dist/pull-DsdOoG-D.js +0 -36
- package/dist/pull-zYAbqo9n.js +0 -106
- package/dist/push-CJVfvFZq.js +0 -29
- package/dist/push-SVzv7fzE.js +0 -22
- package/dist/resolve--GsHj0Q1.js +0 -171
- package/dist/scan-v_WTE722.js +0 -4
- package/dist/server-CvJVusw3.js +0 -29
- package/dist/session-B8JNXkwN.js +0 -6
- package/dist/storekit-D5eopLM0.js +0 -17
- /package/dist/{download-2Zu2I_Og.js → download-DhGd4hOB.js} +0 -0
- /package/dist/{reports-CuhB1_ub.js → reports-HYVp169R.js} +0 -0
- /package/dist/{storage-BjQCiTuz.d.ts → storage-Bdz5AmqS.d.ts} +0 -0
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
import { r as NotLoggedInError } from "./token-Bu3FaRkv.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 { 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-
|
|
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-BocmdvZ-.js";
|
|
4
|
+
import { n as readSession } from "./storage-DT_wxwJ8.js";
|
|
5
|
+
import { a as withQuery$1, n as ApiUnreachableError, t as ApiError } from "./client-CyrYJzBF.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-Bykbwy-m.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-DPdBlZe2.js";
|
|
8
9
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
9
|
-
import { n as runWhoami } from "./session-
|
|
10
|
-
import { i as orgIdOf, t as listOrgGroups } from "./orgs-
|
|
11
|
-
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-
|
|
12
|
-
import { n as orgForNewProject } from "./org-
|
|
13
|
-
import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
14
|
-
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-
|
|
10
|
+
import { n as runWhoami } from "./session-Z0BeaJPf.js";
|
|
11
|
+
import { i as orgIdOf, t as listOrgGroups } from "./orgs-Z0H9WOs1.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-CptT7HD6.js";
|
|
13
|
+
import { n as orgForNewProject } from "./org-Dud1rF9f.js";
|
|
14
|
+
import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-CWzVfPpq.js";
|
|
15
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-l1qGLsgz.js";
|
|
15
16
|
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BJQXl62Q.js";
|
|
16
17
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-Cqq59DBQ.js";
|
|
17
18
|
import { n as readResourceFlags, r as textOf, t as fieldName } from "./input-MDd67UIp.js";
|
|
18
|
-
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-
|
|
19
|
-
import { t as platformForIntegration } from "./bind-
|
|
19
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-BDBxbwZq.js";
|
|
20
|
+
import { t as platformForIntegration } from "./bind-ClFjTt0U.js";
|
|
20
21
|
import pc from "picocolors";
|
|
21
22
|
|
|
22
23
|
//#region src/ui/help-layout.ts
|
|
@@ -143,7 +144,7 @@ const command = defineCommand({
|
|
|
143
144
|
prompts: true,
|
|
144
145
|
mcp: false,
|
|
145
146
|
async run(ctx, input) {
|
|
146
|
-
const { runLogin } = await import("./login-
|
|
147
|
+
const { runLogin } = await import("./login-DZ8Pipf6.js");
|
|
147
148
|
return runLogin(ctx, input);
|
|
148
149
|
}
|
|
149
150
|
});
|
|
@@ -159,7 +160,7 @@ const command$1 = defineCommand({
|
|
|
159
160
|
prompts: true,
|
|
160
161
|
mcp: false,
|
|
161
162
|
async run(ctx) {
|
|
162
|
-
const { runLogout } = await import("./session-
|
|
163
|
+
const { runLogout } = await import("./session-Csuaw6RU.js");
|
|
163
164
|
return runLogout(ctx);
|
|
164
165
|
}
|
|
165
166
|
});
|
|
@@ -219,15 +220,15 @@ const team = {
|
|
|
219
220
|
value: "id",
|
|
220
221
|
describe: "The Apple team, when your organization has several"
|
|
221
222
|
};
|
|
222
|
-
const
|
|
223
|
+
const artifact = {
|
|
223
224
|
type: "string",
|
|
224
|
-
value: "
|
|
225
|
-
describe: "The
|
|
225
|
+
value: "artifact",
|
|
226
|
+
describe: "The artifact: an id, or a slug with --org (default: this project's)"
|
|
226
227
|
};
|
|
227
228
|
const projectDir = {
|
|
228
229
|
type: "string",
|
|
229
230
|
value: "path",
|
|
230
|
-
describe: "The
|
|
231
|
+
describe: "The artifact project (default: cwd)"
|
|
231
232
|
};
|
|
232
233
|
|
|
233
234
|
//#endregion
|
|
@@ -3480,7 +3481,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3480
3481
|
prompts: true,
|
|
3481
3482
|
mcp: false,
|
|
3482
3483
|
async run(ctx, input) {
|
|
3483
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3484
|
+
const { runAscKeysCreate } = await import("./create-7HDW3DCl.js");
|
|
3484
3485
|
return runAscKeysCreate(ctx, input);
|
|
3485
3486
|
}
|
|
3486
3487
|
});
|
|
@@ -3867,7 +3868,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3867
3868
|
prompts: true,
|
|
3868
3869
|
mcp: false,
|
|
3869
3870
|
async run(ctx, { args, flags }) {
|
|
3870
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3871
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-Chw3BtBV.js");
|
|
3871
3872
|
return upsertHeldKey$1(ctx, {
|
|
3872
3873
|
action: "update",
|
|
3873
3874
|
key: {
|
|
@@ -5119,7 +5120,7 @@ Exit codes
|
|
|
5119
5120
|
prompts: true,
|
|
5120
5121
|
mcp: false,
|
|
5121
5122
|
async run(ctx, input) {
|
|
5122
|
-
const { runSetupApple } = await import("./apple-
|
|
5123
|
+
const { runSetupApple } = await import("./apple-Bmt_iywx.js");
|
|
5123
5124
|
return runSetupApple(ctx, input);
|
|
5124
5125
|
}
|
|
5125
5126
|
});
|
|
@@ -7750,7 +7751,7 @@ const command$45 = defineCommand({
|
|
|
7750
7751
|
prompts: true,
|
|
7751
7752
|
mcp: false,
|
|
7752
7753
|
async run(ctx, { args, flags }) {
|
|
7753
|
-
const { runBuildPipeline } = await import("./build-
|
|
7754
|
+
const { runBuildPipeline } = await import("./build-BWjXurjs.js");
|
|
7754
7755
|
await runBuildPipeline({
|
|
7755
7756
|
output: ctx.output,
|
|
7756
7757
|
json: ctx.json
|
|
@@ -7811,7 +7812,7 @@ const command$46 = defineCommand({
|
|
|
7811
7812
|
prompts: true,
|
|
7812
7813
|
mcp: false,
|
|
7813
7814
|
async run(ctx, { args, flags }) {
|
|
7814
|
-
const { runCreate } = await import("./create-
|
|
7815
|
+
const { runCreate } = await import("./create-C3uklw-U.js");
|
|
7815
7816
|
return runCreate(ctx, {
|
|
7816
7817
|
dir: args.dir,
|
|
7817
7818
|
...flags
|
|
@@ -7854,7 +7855,7 @@ const command$47 = defineCommand({
|
|
|
7854
7855
|
prompts: true,
|
|
7855
7856
|
mcp: false,
|
|
7856
7857
|
async run(ctx, { args, flags }) {
|
|
7857
|
-
const { runStudio } = await import("./server-
|
|
7858
|
+
const { runStudio } = await import("./server-BEcsQaPu.js");
|
|
7858
7859
|
await runStudio({
|
|
7859
7860
|
dirs: args.dir,
|
|
7860
7861
|
port: flags.port,
|
|
@@ -7894,7 +7895,7 @@ const command$48 = defineCommand({
|
|
|
7894
7895
|
prompts: true,
|
|
7895
7896
|
mcp: false,
|
|
7896
7897
|
async run(ctx, input) {
|
|
7897
|
-
const { runPromote } = await import("./promote-
|
|
7898
|
+
const { runPromote } = await import("./promote-DLtPSvmL.js");
|
|
7898
7899
|
return runPromote(ctx, input);
|
|
7899
7900
|
}
|
|
7900
7901
|
});
|
|
@@ -7930,15 +7931,27 @@ const command$49 = defineCommand({
|
|
|
7930
7931
|
overwriteSource: {
|
|
7931
7932
|
type: "boolean",
|
|
7932
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)"
|
|
7933
7942
|
}
|
|
7934
7943
|
},
|
|
7935
|
-
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
|
+
],
|
|
7936
7949
|
auth: "none",
|
|
7937
7950
|
json: false,
|
|
7938
7951
|
prompts: true,
|
|
7939
7952
|
mcp: false,
|
|
7940
7953
|
async run(ctx, input) {
|
|
7941
|
-
const { runPush } = await import("./push-
|
|
7954
|
+
const { runPush } = await import("./push-Co5jk6Kr.js");
|
|
7942
7955
|
return runPush(ctx, input, true);
|
|
7943
7956
|
}
|
|
7944
7957
|
});
|
|
@@ -7974,7 +7987,7 @@ const command$50 = defineCommand({
|
|
|
7974
7987
|
prompts: true,
|
|
7975
7988
|
mcp: false,
|
|
7976
7989
|
async run(ctx, input) {
|
|
7977
|
-
const { runPull } = await import("./pull-
|
|
7990
|
+
const { runPull } = await import("./pull-C1xm2zqG.js");
|
|
7978
7991
|
return runPull(ctx, input);
|
|
7979
7992
|
}
|
|
7980
7993
|
});
|
|
@@ -8010,6 +8023,14 @@ const command$51 = defineCommand({
|
|
|
8010
8023
|
overwriteSource: {
|
|
8011
8024
|
type: "boolean",
|
|
8012
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)"
|
|
8013
8034
|
}
|
|
8014
8035
|
},
|
|
8015
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"]],
|
|
@@ -8018,7 +8039,7 @@ const command$51 = defineCommand({
|
|
|
8018
8039
|
prompts: true,
|
|
8019
8040
|
mcp: false,
|
|
8020
8041
|
async run(ctx, input) {
|
|
8021
|
-
const { runPush } = await import("./push-
|
|
8042
|
+
const { runPush } = await import("./push-Co5jk6Kr.js");
|
|
8022
8043
|
return runPush(ctx, input, false);
|
|
8023
8044
|
}
|
|
8024
8045
|
});
|
|
@@ -8413,7 +8434,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8413
8434
|
let name = nameArg;
|
|
8414
8435
|
let platform = textOf(fields.platform);
|
|
8415
8436
|
if (interactive && (!name || !platform)) {
|
|
8416
|
-
const { scanProject } = await import("./scan-
|
|
8437
|
+
const { scanProject } = await import("./scan-D86kLtM7.js");
|
|
8417
8438
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8418
8439
|
if (detected && !name && !platform) {
|
|
8419
8440
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8723,7 +8744,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8723
8744
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8724
8745
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8725
8746
|
if (action === "storekit" && resource === "products") {
|
|
8726
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8747
|
+
const { writeStoreKit } = await import("./storekit-BWZf-fNE.js");
|
|
8727
8748
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8728
8749
|
}
|
|
8729
8750
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -10077,7 +10098,7 @@ const command$62 = defineCommand({
|
|
|
10077
10098
|
prompts: true,
|
|
10078
10099
|
mcp: false,
|
|
10079
10100
|
async run(ctx) {
|
|
10080
|
-
const { runDoctor } = await import("./doctor-
|
|
10101
|
+
const { runDoctor } = await import("./doctor-D2Q1EZe8.js");
|
|
10081
10102
|
return runDoctor(ctx);
|
|
10082
10103
|
}
|
|
10083
10104
|
});
|
|
@@ -10201,13 +10222,13 @@ function parseFeedbackReport(value$1) {
|
|
|
10201
10222
|
}
|
|
10202
10223
|
};
|
|
10203
10224
|
}
|
|
10204
|
-
const
|
|
10225
|
+
const fallsBack = (error) => error instanceof ApiError && error.status !== 429 || error instanceof ApiUnreachableError || error instanceof NotLoggedInError || error instanceof SyntaxError;
|
|
10205
10226
|
async function sendToApi(api, feedback, via) {
|
|
10206
10227
|
try {
|
|
10207
10228
|
return parseFeedbackReport(await api.post("/v2/feedback", buildFeedbackBody(feedback, via)));
|
|
10208
10229
|
} catch (error) {
|
|
10209
|
-
if (
|
|
10210
|
-
|
|
10230
|
+
if (fallsBack(error)) return void 0;
|
|
10231
|
+
throw error;
|
|
10211
10232
|
}
|
|
10212
10233
|
}
|
|
10213
10234
|
function buildFeedbackEvent(feedback, via, distinctId, session, osRelease, report) {
|
|
@@ -10422,7 +10443,7 @@ const command$64 = defineCommand({
|
|
|
10422
10443
|
prompts: true,
|
|
10423
10444
|
mcp: false,
|
|
10424
10445
|
async run(ctx, input) {
|
|
10425
|
-
const { runSkills } = await import("./skills-
|
|
10446
|
+
const { runSkills } = await import("./skills-CdKwaTRS.js");
|
|
10426
10447
|
return runSkills(ctx, input);
|
|
10427
10448
|
}
|
|
10428
10449
|
});
|
|
@@ -10438,25 +10459,25 @@ const command$65 = defineCommand({
|
|
|
10438
10459
|
prompts: true,
|
|
10439
10460
|
mcp: false,
|
|
10440
10461
|
async run(ctx) {
|
|
10441
|
-
const { runUpgrade } = await import("./upgrade-
|
|
10462
|
+
const { runUpgrade } = await import("./upgrade-CAHyrWUL.js");
|
|
10442
10463
|
return runUpgrade(ctx, AUTO_UPDATE_TARGET());
|
|
10443
10464
|
}
|
|
10444
10465
|
});
|
|
10445
10466
|
|
|
10446
10467
|
//#endregion
|
|
10447
|
-
//#region src/commands/
|
|
10468
|
+
//#region src/commands/artifacts/approve.ts
|
|
10448
10469
|
const command$66 = defineCommand({
|
|
10449
|
-
name: "
|
|
10470
|
+
name: "artifacts approve",
|
|
10450
10471
|
summary: "Review what a version can do and make it live",
|
|
10451
|
-
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
|
|
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 artifact can do changes.",
|
|
10452
10473
|
args: { version: { describe: "The version id (default: the latest built that isn't live)" } },
|
|
10453
10474
|
flags: {
|
|
10454
10475
|
dir: projectDir,
|
|
10455
|
-
|
|
10476
|
+
artifact,
|
|
10456
10477
|
org: {
|
|
10457
10478
|
type: "string",
|
|
10458
10479
|
value: "id",
|
|
10459
|
-
describe: "The organization of a --
|
|
10480
|
+
describe: "The organization of a --artifact slug"
|
|
10460
10481
|
},
|
|
10461
10482
|
yes: {
|
|
10462
10483
|
...yes,
|
|
@@ -10468,9 +10489,9 @@ const command$66 = defineCommand({
|
|
|
10468
10489
|
}
|
|
10469
10490
|
},
|
|
10470
10491
|
examples: [
|
|
10471
|
-
["
|
|
10472
|
-
["
|
|
10473
|
-
["
|
|
10492
|
+
["artifacts approve --artifact 42", "Review and approve the latest built version"],
|
|
10493
|
+
["artifacts approve 7 --artifact 42 --json", "Print version 7's manifest and changes, approving nothing"],
|
|
10494
|
+
["artifacts approve 7 --artifact 42 --yes --accept-changes", "Approve it without a terminal, having read them"]
|
|
10474
10495
|
],
|
|
10475
10496
|
auth: "required",
|
|
10476
10497
|
json: true,
|
|
@@ -10478,8 +10499,8 @@ const command$66 = defineCommand({
|
|
|
10478
10499
|
mcp: false,
|
|
10479
10500
|
channel: "next",
|
|
10480
10501
|
async run(ctx, { args, flags }) {
|
|
10481
|
-
const {
|
|
10482
|
-
await
|
|
10502
|
+
const { runArtifactApprove } = await import("./approve-D2UgqaRx.js");
|
|
10503
|
+
await runArtifactApprove(ctx, {
|
|
10483
10504
|
version: args.version,
|
|
10484
10505
|
...flags
|
|
10485
10506
|
});
|
|
@@ -10487,25 +10508,25 @@ const command$66 = defineCommand({
|
|
|
10487
10508
|
});
|
|
10488
10509
|
|
|
10489
10510
|
//#endregion
|
|
10490
|
-
//#region src/commands/
|
|
10511
|
+
//#region src/commands/artifacts/create.ts
|
|
10491
10512
|
const command$67 = defineCommand({
|
|
10492
|
-
name: "
|
|
10493
|
-
summary: "Start
|
|
10494
|
-
args: { dir: { describe: "Where to put it (default: my-
|
|
10513
|
+
name: "artifacts create",
|
|
10514
|
+
summary: "Start an artifact: a mini-app that adds to the Superwall dashboard",
|
|
10515
|
+
args: { dir: { describe: "Where to put it (default: my-artifact)" } },
|
|
10495
10516
|
flags: { install: {
|
|
10496
10517
|
type: "boolean",
|
|
10497
10518
|
default: true,
|
|
10498
10519
|
describe: "Install dependencies after downloading (--no-install to skip)"
|
|
10499
10520
|
} },
|
|
10500
|
-
examples: [["
|
|
10521
|
+
examples: [["artifacts create", "Download the starter into my-artifact"], ["artifacts create churn-copilot", "Name the directory yourself"]],
|
|
10501
10522
|
auth: "none",
|
|
10502
10523
|
json: false,
|
|
10503
10524
|
prompts: false,
|
|
10504
10525
|
mcp: false,
|
|
10505
10526
|
channel: "next",
|
|
10506
10527
|
async run(ctx, { args, flags }) {
|
|
10507
|
-
const {
|
|
10508
|
-
await
|
|
10528
|
+
const { runArtifactCreate } = await import("./starter-0OdVPH4l.js");
|
|
10529
|
+
await runArtifactCreate(ctx, {
|
|
10509
10530
|
dir: args.dir,
|
|
10510
10531
|
install: flags.install
|
|
10511
10532
|
});
|
|
@@ -10513,12 +10534,12 @@ const command$67 = defineCommand({
|
|
|
10513
10534
|
});
|
|
10514
10535
|
|
|
10515
10536
|
//#endregion
|
|
10516
|
-
//#region src/commands/
|
|
10537
|
+
//#region src/commands/artifacts/dev.ts
|
|
10517
10538
|
const command$68 = defineCommand({
|
|
10518
|
-
name: "
|
|
10519
|
-
summary: "Run
|
|
10520
|
-
details: "Bundles the
|
|
10521
|
-
args: { dir: { describe: "The
|
|
10539
|
+
name: "artifacts dev",
|
|
10540
|
+
summary: "Run an artifact on localhost against your real data, read-only",
|
|
10541
|
+
details: "Bundles the artifact 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 an artifact 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 artifact (default: cwd)" } },
|
|
10522
10543
|
flags: {
|
|
10523
10544
|
port: {
|
|
10524
10545
|
type: "number",
|
|
@@ -10581,15 +10602,15 @@ const command$68 = defineCommand({
|
|
|
10581
10602
|
describe: "The whole context as JSON, for a slot this CLI doesn't know"
|
|
10582
10603
|
}
|
|
10583
10604
|
},
|
|
10584
|
-
examples: [["
|
|
10605
|
+
examples: [["artifacts dev --org 1234", "Serve this artifact for one organization"], ["artifacts dev --app 5678 --user alice", "Fill in the app and the user a panel receives"]],
|
|
10585
10606
|
auth: "required",
|
|
10586
10607
|
json: false,
|
|
10587
10608
|
prompts: true,
|
|
10588
10609
|
mcp: false,
|
|
10589
10610
|
channel: "next",
|
|
10590
10611
|
async run(ctx, { args, flags }) {
|
|
10591
|
-
const {
|
|
10592
|
-
await
|
|
10612
|
+
const { runArtifactDev } = await import("./run-r3foWfhV.js");
|
|
10613
|
+
await runArtifactDev(ctx, {
|
|
10593
10614
|
dir: args.dir,
|
|
10594
10615
|
...flags
|
|
10595
10616
|
});
|
|
@@ -10597,9 +10618,9 @@ const command$68 = defineCommand({
|
|
|
10597
10618
|
});
|
|
10598
10619
|
|
|
10599
10620
|
//#endregion
|
|
10600
|
-
//#region src/commands/
|
|
10621
|
+
//#region src/commands/artifacts/install.ts
|
|
10601
10622
|
const command$69 = defineCommand({
|
|
10602
|
-
name: "
|
|
10623
|
+
name: "artifacts install",
|
|
10603
10624
|
summary: "Choose where an entrypoint shows",
|
|
10604
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.",
|
|
10605
10626
|
args: { entrypoint: { describe: "The entrypoint id from superwall.json" } },
|
|
@@ -10622,11 +10643,11 @@ const command$69 = defineCommand({
|
|
|
10622
10643
|
describe: "Order among the entrypoints shown in one slot, lowest first"
|
|
10623
10644
|
},
|
|
10624
10645
|
dir: projectDir,
|
|
10625
|
-
|
|
10646
|
+
artifact,
|
|
10626
10647
|
org: {
|
|
10627
10648
|
type: "string",
|
|
10628
10649
|
value: "id",
|
|
10629
|
-
describe: "The organization of a --
|
|
10650
|
+
describe: "The organization of a --artifact slug"
|
|
10630
10651
|
},
|
|
10631
10652
|
yes: {
|
|
10632
10653
|
...yes,
|
|
@@ -10634,9 +10655,9 @@ const command$69 = defineCommand({
|
|
|
10634
10655
|
}
|
|
10635
10656
|
},
|
|
10636
10657
|
examples: [
|
|
10637
|
-
["
|
|
10638
|
-
["
|
|
10639
|
-
["
|
|
10658
|
+
["artifacts install", "List what's installed"],
|
|
10659
|
+
["artifacts install churn --app 5678", "Show it in one app"],
|
|
10660
|
+
["artifacts install churn --remove --yes", "Remove the organization-wide row"]
|
|
10640
10661
|
],
|
|
10641
10662
|
auth: "required",
|
|
10642
10663
|
json: true,
|
|
@@ -10644,8 +10665,8 @@ const command$69 = defineCommand({
|
|
|
10644
10665
|
mcp: false,
|
|
10645
10666
|
channel: "next",
|
|
10646
10667
|
async run(ctx, { args, flags }) {
|
|
10647
|
-
const {
|
|
10648
|
-
await
|
|
10668
|
+
const { runArtifactInstall } = await import("./install-dXZZ79Oe.js");
|
|
10669
|
+
await runArtifactInstall(ctx, {
|
|
10649
10670
|
entrypoint: args.entrypoint,
|
|
10650
10671
|
...flags
|
|
10651
10672
|
});
|
|
@@ -10653,10 +10674,10 @@ const command$69 = defineCommand({
|
|
|
10653
10674
|
});
|
|
10654
10675
|
|
|
10655
10676
|
//#endregion
|
|
10656
|
-
//#region src/commands/
|
|
10677
|
+
//#region src/commands/artifacts/list.ts
|
|
10657
10678
|
const command$70 = defineCommand({
|
|
10658
|
-
name: "
|
|
10659
|
-
summary: "List an organization's
|
|
10679
|
+
name: "artifacts list",
|
|
10680
|
+
summary: "List an organization's artifacts",
|
|
10660
10681
|
flags: {
|
|
10661
10682
|
org: {
|
|
10662
10683
|
type: "string",
|
|
@@ -10665,43 +10686,43 @@ const command$70 = defineCommand({
|
|
|
10665
10686
|
},
|
|
10666
10687
|
dir: projectDir
|
|
10667
10688
|
},
|
|
10668
|
-
examples: [["
|
|
10689
|
+
examples: [["artifacts list --org 1234", "Every artifact in organization 1234"]],
|
|
10669
10690
|
auth: "required",
|
|
10670
10691
|
json: true,
|
|
10671
10692
|
prompts: true,
|
|
10672
10693
|
mcp: false,
|
|
10673
10694
|
channel: "next",
|
|
10674
10695
|
async run(ctx, { flags }) {
|
|
10675
|
-
const {
|
|
10676
|
-
await
|
|
10696
|
+
const { runArtifactList } = await import("./install-dXZZ79Oe.js");
|
|
10697
|
+
await runArtifactList(ctx, flags);
|
|
10677
10698
|
}
|
|
10678
10699
|
});
|
|
10679
10700
|
|
|
10680
10701
|
//#endregion
|
|
10681
|
-
//#region src/commands/
|
|
10702
|
+
//#region src/commands/artifacts/logs.ts
|
|
10682
10703
|
const command$71 = defineCommand({
|
|
10683
|
-
name: "
|
|
10704
|
+
name: "artifacts logs",
|
|
10684
10705
|
summary: "Show a version's build log",
|
|
10685
10706
|
details: "The last 128 KiB, once the build has finished. The latest version by default.",
|
|
10686
10707
|
args: { version: { describe: "The version id (default: the latest)" } },
|
|
10687
10708
|
flags: {
|
|
10688
10709
|
dir: projectDir,
|
|
10689
|
-
|
|
10710
|
+
artifact,
|
|
10690
10711
|
org: {
|
|
10691
10712
|
type: "string",
|
|
10692
10713
|
value: "id",
|
|
10693
|
-
describe: "The organization of a --
|
|
10714
|
+
describe: "The organization of a --artifact slug"
|
|
10694
10715
|
}
|
|
10695
10716
|
},
|
|
10696
|
-
examples: [["
|
|
10717
|
+
examples: [["artifacts logs", "The latest version's build log"], ["artifacts logs 7", "Version 7's"]],
|
|
10697
10718
|
auth: "required",
|
|
10698
10719
|
json: true,
|
|
10699
10720
|
prompts: false,
|
|
10700
10721
|
mcp: false,
|
|
10701
10722
|
channel: "next",
|
|
10702
10723
|
async run(ctx, { args, flags }) {
|
|
10703
|
-
const {
|
|
10704
|
-
await
|
|
10724
|
+
const { runArtifactLogs } = await import("./status-Dsc7d3z2.js");
|
|
10725
|
+
await runArtifactLogs(ctx, {
|
|
10705
10726
|
version: args.version,
|
|
10706
10727
|
...flags
|
|
10707
10728
|
});
|
|
@@ -10709,10 +10730,10 @@ const command$71 = defineCommand({
|
|
|
10709
10730
|
});
|
|
10710
10731
|
|
|
10711
10732
|
//#endregion
|
|
10712
|
-
//#region src/commands/
|
|
10733
|
+
//#region src/commands/artifacts/open.ts
|
|
10713
10734
|
const command$72 = defineCommand({
|
|
10714
|
-
name: "
|
|
10715
|
-
summary: "Open
|
|
10735
|
+
name: "artifacts open",
|
|
10736
|
+
summary: "Open an artifact in the dashboard",
|
|
10716
10737
|
args: { entrypoint: { describe: "An entrypoint to open inside an app, with --app" } },
|
|
10717
10738
|
flags: {
|
|
10718
10739
|
app: {
|
|
@@ -10720,11 +10741,11 @@ const command$72 = defineCommand({
|
|
|
10720
10741
|
describe: "The app to open the entrypoint in"
|
|
10721
10742
|
},
|
|
10722
10743
|
dir: projectDir,
|
|
10723
|
-
|
|
10744
|
+
artifact,
|
|
10724
10745
|
org: {
|
|
10725
10746
|
type: "string",
|
|
10726
10747
|
value: "id",
|
|
10727
|
-
describe: "The organization of a --
|
|
10748
|
+
describe: "The organization of a --artifact slug"
|
|
10728
10749
|
},
|
|
10729
10750
|
open: {
|
|
10730
10751
|
type: "boolean",
|
|
@@ -10732,15 +10753,15 @@ const command$72 = defineCommand({
|
|
|
10732
10753
|
describe: "Open your browser at a terminal (--no-open to only print the link)"
|
|
10733
10754
|
}
|
|
10734
10755
|
},
|
|
10735
|
-
examples: [["
|
|
10756
|
+
examples: [["artifacts open", "This project's artifact"], ["artifacts open panel --app 5678", "One entrypoint, inside an app"]],
|
|
10736
10757
|
auth: "required",
|
|
10737
10758
|
json: true,
|
|
10738
10759
|
prompts: false,
|
|
10739
10760
|
mcp: false,
|
|
10740
10761
|
channel: "next",
|
|
10741
10762
|
async run(ctx, { args, flags }) {
|
|
10742
|
-
const {
|
|
10743
|
-
await
|
|
10763
|
+
const { runArtifactOpen } = await import("./install-dXZZ79Oe.js");
|
|
10764
|
+
await runArtifactOpen(ctx, {
|
|
10744
10765
|
entrypoint: args.entrypoint,
|
|
10745
10766
|
...flags
|
|
10746
10767
|
});
|
|
@@ -10748,17 +10769,17 @@ const command$72 = defineCommand({
|
|
|
10748
10769
|
});
|
|
10749
10770
|
|
|
10750
10771
|
//#endregion
|
|
10751
|
-
//#region src/commands/
|
|
10772
|
+
//#region src/commands/artifacts/pull.ts
|
|
10752
10773
|
const command$73 = defineCommand({
|
|
10753
|
-
name: "
|
|
10774
|
+
name: "artifacts pull",
|
|
10754
10775
|
summary: "Bring teammates' pushes into this project, merged with your edits",
|
|
10755
|
-
args: { dir: { describe: "The
|
|
10776
|
+
args: { dir: { describe: "The artifact project, or with --artifact an empty folder to fill (default: cwd)" } },
|
|
10756
10777
|
flags: {
|
|
10757
|
-
|
|
10778
|
+
artifact,
|
|
10758
10779
|
org: {
|
|
10759
10780
|
type: "string",
|
|
10760
10781
|
value: "id",
|
|
10761
|
-
describe: "The organization of a --
|
|
10782
|
+
describe: "The organization of a --artifact slug"
|
|
10762
10783
|
},
|
|
10763
10784
|
theirs: {
|
|
10764
10785
|
type: "boolean",
|
|
@@ -10766,9 +10787,9 @@ const command$73 = defineCommand({
|
|
|
10766
10787
|
}
|
|
10767
10788
|
},
|
|
10768
10789
|
examples: [
|
|
10769
|
-
["
|
|
10770
|
-
["
|
|
10771
|
-
["
|
|
10790
|
+
["artifacts pull", "Merge what teammates pushed into this project"],
|
|
10791
|
+
["artifacts pull --theirs", "Take the source repo's version of files you both changed"],
|
|
10792
|
+
["artifacts pull churn-copilot --artifact 42", "Get artifact 42's source into a new folder"]
|
|
10772
10793
|
],
|
|
10773
10794
|
auth: "required",
|
|
10774
10795
|
json: true,
|
|
@@ -10776,8 +10797,8 @@ const command$73 = defineCommand({
|
|
|
10776
10797
|
mcp: false,
|
|
10777
10798
|
channel: "next",
|
|
10778
10799
|
async run(ctx, { args, flags }) {
|
|
10779
|
-
const {
|
|
10780
|
-
await
|
|
10800
|
+
const { runArtifactPull } = await import("./pull-D-YuT3e0.js");
|
|
10801
|
+
await runArtifactPull(ctx, {
|
|
10781
10802
|
dir: args.dir,
|
|
10782
10803
|
...flags
|
|
10783
10804
|
});
|
|
@@ -10785,12 +10806,12 @@ const command$73 = defineCommand({
|
|
|
10785
10806
|
});
|
|
10786
10807
|
|
|
10787
10808
|
//#endregion
|
|
10788
|
-
//#region src/commands/
|
|
10809
|
+
//#region src/commands/artifacts/push.ts
|
|
10789
10810
|
const command$74 = defineCommand({
|
|
10790
|
-
name: "
|
|
10791
|
-
summary: "Push this
|
|
10792
|
-
details: "The first push creates the
|
|
10793
|
-
args: { dir: { describe: "The
|
|
10811
|
+
name: "artifacts push",
|
|
10812
|
+
summary: "Push this artifact's source and build it",
|
|
10813
|
+
details: "The first push creates the artifact from the manifest's name and records its id in superwall.artifact.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 artifact project (default: cwd)" } },
|
|
10794
10815
|
flags: {
|
|
10795
10816
|
org: {
|
|
10796
10817
|
type: "string",
|
|
@@ -10812,9 +10833,9 @@ const command$74 = defineCommand({
|
|
|
10812
10833
|
}
|
|
10813
10834
|
},
|
|
10814
10835
|
examples: [
|
|
10815
|
-
["
|
|
10816
|
-
["
|
|
10817
|
-
["
|
|
10836
|
+
["artifacts push", "Push and build this project"],
|
|
10837
|
+
["artifacts push --org 1234 -m \"Add the cohort page\"", "The first push, with a note"],
|
|
10838
|
+
["artifacts push --json --accept-merged-commits", "In a script, taking in teammates' commits"]
|
|
10818
10839
|
],
|
|
10819
10840
|
auth: "required",
|
|
10820
10841
|
json: true,
|
|
@@ -10822,8 +10843,8 @@ const command$74 = defineCommand({
|
|
|
10822
10843
|
mcp: false,
|
|
10823
10844
|
channel: "next",
|
|
10824
10845
|
async run(ctx, { args, flags }) {
|
|
10825
|
-
const {
|
|
10826
|
-
await
|
|
10846
|
+
const { runArtifactPush } = await import("./push-B42D8fKf.js");
|
|
10847
|
+
await runArtifactPush(ctx, {
|
|
10827
10848
|
dir: args.dir,
|
|
10828
10849
|
...flags
|
|
10829
10850
|
});
|
|
@@ -10831,30 +10852,30 @@ const command$74 = defineCommand({
|
|
|
10831
10852
|
});
|
|
10832
10853
|
|
|
10833
10854
|
//#endregion
|
|
10834
|
-
//#region src/commands/
|
|
10855
|
+
//#region src/commands/artifacts/share.ts
|
|
10835
10856
|
const command$75 = defineCommand({
|
|
10836
|
-
name: "
|
|
10857
|
+
name: "artifacts share",
|
|
10837
10858
|
summary: "Ask an admin to review a version",
|
|
10838
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.",
|
|
10839
10860
|
args: { version: { describe: "The version id (default: the latest built)" } },
|
|
10840
10861
|
flags: {
|
|
10841
10862
|
dir: projectDir,
|
|
10842
|
-
|
|
10863
|
+
artifact,
|
|
10843
10864
|
org: {
|
|
10844
10865
|
type: "string",
|
|
10845
10866
|
value: "id",
|
|
10846
|
-
describe: "The organization of a --
|
|
10867
|
+
describe: "The organization of a --artifact slug"
|
|
10847
10868
|
}
|
|
10848
10869
|
},
|
|
10849
|
-
examples: [["
|
|
10870
|
+
examples: [["artifacts share", "Ask for review of the latest built version"]],
|
|
10850
10871
|
auth: "required",
|
|
10851
10872
|
json: true,
|
|
10852
10873
|
prompts: false,
|
|
10853
10874
|
mcp: false,
|
|
10854
10875
|
channel: "next",
|
|
10855
10876
|
async run(ctx, { args, flags }) {
|
|
10856
|
-
const {
|
|
10857
|
-
await
|
|
10877
|
+
const { runArtifactShare } = await import("./status-Dsc7d3z2.js");
|
|
10878
|
+
await runArtifactShare(ctx, {
|
|
10858
10879
|
version: args.version,
|
|
10859
10880
|
...flags
|
|
10860
10881
|
});
|
|
@@ -10862,41 +10883,41 @@ const command$75 = defineCommand({
|
|
|
10862
10883
|
});
|
|
10863
10884
|
|
|
10864
10885
|
//#endregion
|
|
10865
|
-
//#region src/commands/
|
|
10886
|
+
//#region src/commands/artifacts/status.ts
|
|
10866
10887
|
const command$76 = defineCommand({
|
|
10867
|
-
name: "
|
|
10868
|
-
summary: "Show
|
|
10888
|
+
name: "artifacts status",
|
|
10889
|
+
summary: "Show an artifact's state and its latest versions",
|
|
10869
10890
|
flags: {
|
|
10870
10891
|
dir: projectDir,
|
|
10871
|
-
|
|
10892
|
+
artifact,
|
|
10872
10893
|
org: {
|
|
10873
10894
|
type: "string",
|
|
10874
10895
|
value: "id",
|
|
10875
|
-
describe: "The organization of a --
|
|
10896
|
+
describe: "The organization of a --artifact slug"
|
|
10876
10897
|
},
|
|
10877
10898
|
all: {
|
|
10878
10899
|
type: "boolean",
|
|
10879
10900
|
describe: "List every version, not just the latest and the live one"
|
|
10880
10901
|
}
|
|
10881
10902
|
},
|
|
10882
|
-
examples: [["
|
|
10903
|
+
examples: [["artifacts status", "This project's artifact"], ["artifacts status --artifact 42", "Any artifact you can see"]],
|
|
10883
10904
|
auth: "required",
|
|
10884
10905
|
json: true,
|
|
10885
10906
|
prompts: false,
|
|
10886
10907
|
mcp: false,
|
|
10887
10908
|
channel: "next",
|
|
10888
10909
|
async run(ctx, { flags }) {
|
|
10889
|
-
const {
|
|
10890
|
-
await
|
|
10910
|
+
const { runArtifactStatus } = await import("./status-Dsc7d3z2.js");
|
|
10911
|
+
await runArtifactStatus(ctx, flags);
|
|
10891
10912
|
}
|
|
10892
10913
|
});
|
|
10893
10914
|
|
|
10894
10915
|
//#endregion
|
|
10895
|
-
//#region src/commands/
|
|
10916
|
+
//#region src/commands/artifacts/try.ts
|
|
10896
10917
|
const command$77 = defineCommand({
|
|
10897
|
-
name: "
|
|
10918
|
+
name: "artifacts try",
|
|
10898
10919
|
summary: "Upload a draft and run an entrypoint on the real runtime",
|
|
10899
|
-
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
|
|
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 artifacts dev until the runtime takes them.",
|
|
10900
10921
|
args: { entrypoint: {
|
|
10901
10922
|
describe: "The entrypoint id from superwall.json",
|
|
10902
10923
|
required: true
|
|
@@ -10905,7 +10926,7 @@ const command$77 = defineCommand({
|
|
|
10905
10926
|
dir: {
|
|
10906
10927
|
type: "string",
|
|
10907
10928
|
value: "path",
|
|
10908
|
-
describe: "The
|
|
10929
|
+
describe: "The artifact (default: cwd)"
|
|
10909
10930
|
},
|
|
10910
10931
|
app: {
|
|
10911
10932
|
...app,
|
|
@@ -10978,9 +10999,9 @@ const command$77 = defineCommand({
|
|
|
10978
10999
|
}
|
|
10979
11000
|
},
|
|
10980
11001
|
examples: [
|
|
10981
|
-
["
|
|
10982
|
-
["
|
|
10983
|
-
["
|
|
11002
|
+
["artifacts try transactions --app 5678", "Run a metric for one app over the last 30 days"],
|
|
11003
|
+
["artifacts try transactions --app 5678 --breakdown store --filter store=APP_STORE", "Split and filter it"],
|
|
11004
|
+
["artifacts try home --org 1234", "Open a page in the dashboard"]
|
|
10984
11005
|
],
|
|
10985
11006
|
auth: "required",
|
|
10986
11007
|
json: true,
|
|
@@ -10988,8 +11009,8 @@ const command$77 = defineCommand({
|
|
|
10988
11009
|
mcp: false,
|
|
10989
11010
|
channel: "next",
|
|
10990
11011
|
async run(ctx, { args, flags }) {
|
|
10991
|
-
const {
|
|
10992
|
-
await
|
|
11012
|
+
const { runArtifactTry } = await import("./try-B8FYkTvQ.js");
|
|
11013
|
+
await runArtifactTry(ctx, {
|
|
10993
11014
|
entrypoint: args.entrypoint,
|
|
10994
11015
|
...flags
|
|
10995
11016
|
});
|
|
@@ -10997,11 +11018,11 @@ const command$77 = defineCommand({
|
|
|
10997
11018
|
});
|
|
10998
11019
|
|
|
10999
11020
|
//#endregion
|
|
11000
|
-
//#region src/commands/
|
|
11021
|
+
//#region src/commands/artifacts/update.ts
|
|
11001
11022
|
const command$78 = defineCommand({
|
|
11002
|
-
name: "
|
|
11003
|
-
summary: "Refresh
|
|
11004
|
-
args: { dir: { describe: "The
|
|
11023
|
+
name: "artifacts update",
|
|
11024
|
+
summary: "Refresh an artifact's vendored SDK from the public repo",
|
|
11025
|
+
args: { dir: { describe: "The artifact (default: cwd)" } },
|
|
11005
11026
|
flags: {
|
|
11006
11027
|
install: {
|
|
11007
11028
|
type: "boolean",
|
|
@@ -11013,15 +11034,15 @@ const command$78 = defineCommand({
|
|
|
11013
11034
|
describe: "Replace a vendored SDK that's newer than the latest published one"
|
|
11014
11035
|
}
|
|
11015
11036
|
},
|
|
11016
|
-
examples: [["
|
|
11037
|
+
examples: [["artifacts update", "Replace vendor/artifact-sdk with the latest and update the lockfile"]],
|
|
11017
11038
|
auth: "none",
|
|
11018
11039
|
json: false,
|
|
11019
11040
|
prompts: false,
|
|
11020
11041
|
mcp: false,
|
|
11021
11042
|
channel: "next",
|
|
11022
11043
|
async run(ctx, { args, flags }) {
|
|
11023
|
-
const {
|
|
11024
|
-
await
|
|
11044
|
+
const { runArtifactUpdate } = await import("./starter-0OdVPH4l.js");
|
|
11045
|
+
await runArtifactUpdate(ctx, {
|
|
11025
11046
|
dir: args.dir,
|
|
11026
11047
|
install: flags.install,
|
|
11027
11048
|
force: flags.force
|
|
@@ -11063,8 +11084,8 @@ const command$79 = defineCommand({
|
|
|
11063
11084
|
prompts: true,
|
|
11064
11085
|
mcp: false,
|
|
11065
11086
|
async run(ctx, { flags }) {
|
|
11066
|
-
const { runIntegrate } = await import("./integrate-
|
|
11067
|
-
const { printPlaybook } = await import("./playbook-
|
|
11087
|
+
const { runIntegrate } = await import("./integrate-DiSjlOjC.js");
|
|
11088
|
+
const { printPlaybook } = await import("./playbook-DJ__edOW.js");
|
|
11068
11089
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
11069
11090
|
await runIntegrate({
|
|
11070
11091
|
...ctx,
|
|
@@ -11110,8 +11131,8 @@ const command$80 = defineCommand({
|
|
|
11110
11131
|
prompts: true,
|
|
11111
11132
|
mcp: false,
|
|
11112
11133
|
async run(ctx, { args, flags }) {
|
|
11113
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
11114
|
-
const { printPlaybook } = await import("./playbook-
|
|
11134
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-BKiOUsMY.js");
|
|
11135
|
+
const { printPlaybook } = await import("./playbook-DJ__edOW.js");
|
|
11115
11136
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
11116
11137
|
path: flags.screen,
|
|
11117
11138
|
screenshot: flags.screenshot
|
|
@@ -11145,8 +11166,8 @@ const command$81 = defineCommand({
|
|
|
11145
11166
|
prompts: true,
|
|
11146
11167
|
mcp: false,
|
|
11147
11168
|
async run(ctx, { flags }) {
|
|
11148
|
-
const { runReview } = await import("./integrate-
|
|
11149
|
-
const { printPlaybook } = await import("./playbook-
|
|
11169
|
+
const { runReview } = await import("./integrate-DiSjlOjC.js");
|
|
11170
|
+
const { printPlaybook } = await import("./playbook-DJ__edOW.js");
|
|
11150
11171
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
11151
11172
|
await runReview(ctx, flags.fix);
|
|
11152
11173
|
}
|
|
@@ -11180,14 +11201,14 @@ const GROUPS = [
|
|
|
11180
11201
|
]
|
|
11181
11202
|
},
|
|
11182
11203
|
{
|
|
11183
|
-
id: "
|
|
11184
|
-
title: "
|
|
11185
|
-
prefix: "
|
|
11204
|
+
id: "artifacts",
|
|
11205
|
+
title: "Artifacts",
|
|
11206
|
+
prefix: "artifacts",
|
|
11186
11207
|
channel: "next",
|
|
11187
11208
|
topics: [{
|
|
11188
|
-
name: "
|
|
11209
|
+
name: "artifacts",
|
|
11189
11210
|
summary: "Mini-apps that add pages, panels and metrics to the Superwall dashboard",
|
|
11190
|
-
details: "
|
|
11211
|
+
details: "An artifact is a Worker with a superwall.json manifest. It holds no credential: it calls Superwall as whoever is viewing it."
|
|
11191
11212
|
}],
|
|
11192
11213
|
commands: [
|
|
11193
11214
|
command$67,
|