@superwall/cli 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{apple-BSKxY7Gx.js → apple-D2z3tALE.js} +14 -14
- package/dist/{approve-DbwsYO4s.js → approve-I-lvTanp.js} +31 -28
- package/dist/{assets-CqpFg5mM.js → assets-oo93EFou.js} +3 -3
- package/dist/auth.js +3 -3
- package/dist/{session-DYdxTNZf.js → base-Cft9NZfU.js} +35 -35
- package/dist/{billing-BopwIhR3.js → billing-Bo1UEKqV.js} +3 -3
- package/dist/{bind-DOF3o3FR.js → bind-BvScWziR.js} +4 -4
- package/dist/{build-BF22vVdV.js → build-Co487gha.js} +10 -10
- package/dist/{client-DHlsTaP1.js → client-Tp6iD66_.js} +55 -5
- package/dist/create-CHIPz5vb.js +20 -0
- package/dist/{create-CboPfAlN.js → create-G3HuOHZ4.js} +31 -31
- package/dist/{create-CiZzZrru.js → create-uA3nrMIa.js} +6 -6
- package/dist/{doctor-BqZGaQE5.js → doctor-CHF9aNFc.js} +6 -6
- package/dist/{drivers-DkboeR1c.js → drivers-YZEcBiSV.js} +3 -3
- package/dist/entry.js +20 -20
- package/dist/{environment-FR3bcq0D.js → environment-EU7Mrk7j.js} +1 -1
- package/dist/{existing-C6TTT6c4.js → existing-DV_6NLfW.js} +2 -2
- package/dist/{selection-CWfI4a0O.js → framework-b-Yf8sP1.js} +50 -50
- package/dist/held-Dd19AduK.js +17 -0
- package/dist/{held-C2IjAyg6.js → held-L0vz0_hA.js} +6 -6
- package/dist/{install-DoSYCwLL.js → install-CXfLcLhU.js} +37 -37
- package/dist/{integrate-BSqd2wgI.js → integrate-DS2YGLsM.js} +23 -23
- package/dist/{types-CB6O_wjy.js → lock-DgSx-p8Y.js} +79 -79
- package/dist/login-C0BjJmFy.js +17 -0
- package/dist/{login-C6FcBQZg.js → login-Ca6FhI6R.js} +6 -6
- package/dist/{login-dRPPnGr7.js → login-DoMmU3Bq.js} +1 -1
- package/dist/{lookup-D23dAOz6.js → lookup-DhMLZmdW.js} +3 -3
- package/dist/{migrate-CDdUCTH3.js → migrate-CoQWqzhJ.js} +29 -29
- package/dist/{migration-r9plM7F6.js → migration-C22iQzAW.js} +9 -9
- package/dist/{notification-url-rdnENCxt.js → notification-url-CqnXE9yB.js} +2 -2
- package/dist/{open-DVdE3HnK.js → open-DriuY3di.js} +2 -2
- package/dist/{org-DZ41muzA.js → org-D7LQrg3k.js} +3 -3
- package/dist/{organization-DIODPOwO.js → organization-DDidaGRK.js} +8 -8
- package/dist/{orgs-BxlwcvTu.js → orgs-CYXjVdxM.js} +1 -1
- package/dist/{paths-BaeoxDze.js → paths-Bf3othB-.js} +1 -1
- package/dist/{playbook-B-Pdonhg.js → playbook-K7vmAUsu.js} +10 -10
- package/dist/{project-DHU5wc3R.js → project-NoMtbMyl.js} +9 -9
- package/dist/{promote-Ca4URuHY.js → promote-DXxxj4BU.js} +23 -23
- package/dist/pull-Bfa3_SBt.js +106 -0
- package/dist/pull-DGrlBSAG.js +36 -0
- package/dist/{pull-CQcTZxW8.js → pull-DuFUkP7t.js} +8 -8
- package/dist/{push-DQE48h_M.js → push-CrowxhpU.js} +53 -47
- package/dist/push-DPZdch2W.js +30 -0
- package/dist/push-DV-kJZdw.js +22 -0
- package/dist/{push-BlZoIwIj.js → push-Dk5x2xP3.js} +9 -9
- package/dist/{registry-FNG-uiIt.js → registry-HhZVRBqY.js} +154 -152
- package/dist/resolve-D3RBtfkI.js +242 -0
- package/dist/{resources-COOEvqqW.js → resources-CkG6SCia.js} +2 -2
- package/dist/{run-DpYDOAw-.js → run-CL5ZnujW.js} +2 -2
- package/dist/{run-Czbb-sHR.js → run-Co8u_BkN.js} +65 -65
- package/dist/scan-BQmjhs3g.js +4 -0
- package/dist/{scan-BZS2FZeU.js → scan-DhmGH1rF.js} +1 -1
- package/dist/{scope-BJQ-KcQg.js → scope-D0XpYMn4.js} +5 -5
- package/dist/{scope-t_SqFN6W.js → scope-ehZ7L1nj.js} +8 -8
- package/dist/{sdk-CyttTnGf.js → sdk-DEfQttek.js} +7 -7
- package/dist/{series--Wp7TngJ.js → series-D2ZpZ8cx.js} +95 -62
- package/dist/server-4ZK_1Off.js +29 -0
- package/dist/{server-BmmOj7bh.js → server-DamMN_ig.js} +9 -9
- package/dist/session-4F_YWSul.js +6 -0
- package/dist/{session-BpYpOgaY.js → session-G1uwJI8L.js} +1 -1
- package/dist/{setup-DW50luOZ.js → setup-BFTSxEWU.js} +9 -9
- package/dist/skills/index.json +2 -2
- package/dist/skills/superwall/workflows/integrate/flutter.md +9 -7
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/SKILL.md +44 -30
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/cli.md +35 -29
- package/dist/skills/{superwall-workspaces → superwall-artifacts}/references/slots.md +9 -9
- package/dist/{skills-Cm1j2d1W.js → skills-CE4c9eHX.js} +4 -4
- package/dist/{skills-Bbtq8V_D.js → skills-ClEVgXUB.js} +8 -8
- package/dist/{git-DqDPnldI.js → source-BccdO4aL.js} +95 -95
- package/dist/{source-push-B3c-VLfe.js → source-push-EyF02ekO.js} +6 -6
- package/dist/{spinner-025_eqCX.js → spinner-mWZnJCkN.js} +3 -3
- package/dist/{starter-hcwocv_Z.js → starter-BtUUQWhd.js} +38 -28
- package/dist/{status-K1IGp6pe.js → status-SAZxltzW.js} +39 -39
- package/dist/{storage-CUMgpcVH.js → storage-R5-qDvHq.js} +1 -1
- package/dist/{storekit-Cb0TkToV.js → storekit-CQHVFTOC.js} +3 -3
- package/dist/storekit-DK3xXKoY.js +17 -0
- package/dist/{telemetry-ekUQuhLJ.js → telemetry-B-uKuu49.js} +1 -1
- package/dist/{token-B2PduqrR.js → token-C2kzntVM.js} +1 -1
- package/dist/tools.d.ts +5 -0
- package/dist/tools.js +183 -125
- package/dist/{try-BUnhITXS.js → try-BrJJyXgq.js} +32 -32
- package/dist/{upgrade-DfZfDljd.js → upgrade-g_Bd9oJe.js} +2 -2
- package/dist/{upgrade-CI7K1UZ-.js → upgrade-zOXTIaAZ.js} +2 -2
- package/package.json +2 -2
- package/dist/create-DAkNdEzt.js +0 -20
- package/dist/held-KVcYIplR.js +0 -17
- package/dist/login-BiwaQkXS.js +0 -17
- package/dist/pull-DRMIxqR8.js +0 -36
- package/dist/pull-_qs90vGA.js +0 -106
- package/dist/push-Cb4g_l1K.js +0 -30
- package/dist/push-DZKsd6Dp.js +0 -22
- package/dist/resolve-DGePiHgL.js +0 -196
- package/dist/scan-2WqHGkjU.js +0 -4
- package/dist/server-BqLPwcy9.js +0 -29
- package/dist/session-BHBIGscL.js +0 -6
- package/dist/storekit-Dewj_5qg.js +0 -17
- /package/dist/{design-lint-CvgcSzVg.js → design-lint-CiFc78aM.js} +0 -0
- /package/dist/{download-F8OtTJze.js → download-DhGd4hOB.js} +0 -0
- /package/dist/{reports-BZfxvenS.js → reports-HYVp169R.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { r as NotLoggedInError } from "./token-
|
|
1
|
+
import { r as NotLoggedInError } from "./token-C2kzntVM.js";
|
|
2
2
|
import { a as stripAnsi, l as readJson, o as cache, r as formatJson, t as blocks } from "./output-Ggzq5_-t.js";
|
|
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-
|
|
4
|
-
import { n as readSession } from "./storage-
|
|
5
|
-
import { a as withQuery$1, n as ApiUnreachableError, t as ApiError } from "./client-
|
|
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-
|
|
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-EU7Mrk7j.js";
|
|
4
|
+
import { n as readSession } from "./storage-R5-qDvHq.js";
|
|
5
|
+
import { a as withQuery$1, n as ApiUnreachableError, t as ApiError } from "./client-Tp6iD66_.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-L0vz0_hA.js";
|
|
7
7
|
import { f as writeDefaultApp, i as readOnboardedApp, r as readDefaultApp, t as readAnonymousId } from "./config-CGcG7GOt.js";
|
|
8
|
-
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-mWZnJCkN.js";
|
|
9
9
|
import { n as fg, t as THEME } from "./theme-DUsCh-Vd.js";
|
|
10
|
-
import { n as runWhoami } from "./session-
|
|
11
|
-
import { i as orgIdOf, t as listOrgGroups } from "./orgs-
|
|
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-
|
|
13
|
-
import { n as orgForNewProject } from "./org-
|
|
14
|
-
import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
15
|
-
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-G1uwJI8L.js";
|
|
11
|
+
import { i as orgIdOf, t as listOrgGroups } from "./orgs-CYXjVdxM.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-CkG6SCia.js";
|
|
13
|
+
import { n as orgForNewProject } from "./org-D7LQrg3k.js";
|
|
14
|
+
import { i as parseDashboardUrl, n as findApplication, r as findProject, t as appNotFound } from "./lookup-DhMLZmdW.js";
|
|
15
|
+
import { a as pickScope, i as pickProject, n as chooseApp, r as pickOrganization, t as boundOrganization } from "./scope-D0XpYMn4.js";
|
|
16
16
|
import { a as listAscConfigs, i as findAppNotificationUrl, o as removeAscConfig, t as ascProxy } from "./client-BJQXl62Q.js";
|
|
17
17
|
import { i as listUnimportedAscProducts, n as findAscAppId, r as listAscApps, t as ascTypeDisplay } from "./products-Cqq59DBQ.js";
|
|
18
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-
|
|
20
|
-
import { t as platformForIntegration } from "./bind-
|
|
19
|
+
import { a as runAscNotificationUrlSet, i as printServerNotifications, t as describeNotificationUrl } from "./notification-url-CqnXE9yB.js";
|
|
20
|
+
import { t as platformForIntegration } from "./bind-BvScWziR.js";
|
|
21
21
|
import pc from "picocolors";
|
|
22
22
|
|
|
23
23
|
//#region src/ui/help-layout.ts
|
|
@@ -144,7 +144,7 @@ const command = defineCommand({
|
|
|
144
144
|
prompts: true,
|
|
145
145
|
mcp: false,
|
|
146
146
|
async run(ctx, input) {
|
|
147
|
-
const { runLogin } = await import("./login-
|
|
147
|
+
const { runLogin } = await import("./login-C0BjJmFy.js");
|
|
148
148
|
return runLogin(ctx, input);
|
|
149
149
|
}
|
|
150
150
|
});
|
|
@@ -160,7 +160,7 @@ const command$1 = defineCommand({
|
|
|
160
160
|
prompts: true,
|
|
161
161
|
mcp: false,
|
|
162
162
|
async run(ctx) {
|
|
163
|
-
const { runLogout } = await import("./session-
|
|
163
|
+
const { runLogout } = await import("./session-4F_YWSul.js");
|
|
164
164
|
return runLogout(ctx);
|
|
165
165
|
}
|
|
166
166
|
});
|
|
@@ -220,15 +220,15 @@ const team = {
|
|
|
220
220
|
value: "id",
|
|
221
221
|
describe: "The Apple team, when your organization has several"
|
|
222
222
|
};
|
|
223
|
-
const
|
|
223
|
+
const artifact = {
|
|
224
224
|
type: "string",
|
|
225
|
-
value: "
|
|
226
|
-
describe: "The
|
|
225
|
+
value: "artifact",
|
|
226
|
+
describe: "The artifact: an id, or a slug with --org (default: this project's)"
|
|
227
227
|
};
|
|
228
228
|
const projectDir = {
|
|
229
229
|
type: "string",
|
|
230
230
|
value: "path",
|
|
231
|
-
describe: "The
|
|
231
|
+
describe: "The artifact project (default: cwd)"
|
|
232
232
|
};
|
|
233
233
|
|
|
234
234
|
//#endregion
|
|
@@ -596,10 +596,12 @@ async function runApiRequest(ctx, api, request) {
|
|
|
596
596
|
}
|
|
597
597
|
}).catch(async (error) => {
|
|
598
598
|
if (!(error instanceof ApiError) || error.status >= 500 || error.status === 401) throw error;
|
|
599
|
+
if (namesMissingResource(error)) throw error;
|
|
599
600
|
throw new Error(`${error.message}\n${await resolveReferenceHint(verb, path)}`, { cause: error });
|
|
600
601
|
});
|
|
601
602
|
ctx.output.data(res ?? { ok: true });
|
|
602
603
|
}
|
|
604
|
+
const namesMissingResource = ({ status, detail }) => status === 404 && (detail.code === "resource_missing" || detail.type === "resource_missing" || detail.resourceType !== void 0);
|
|
603
605
|
async function resolveReferenceHint(verb, path) {
|
|
604
606
|
const index = await resolveApiIndex().catch(() => void 0);
|
|
605
607
|
if (!index) return "The API reference: superwall api docs <words>";
|
|
@@ -3481,7 +3483,7 @@ A purchase_key is for the app's bundle ID; an app with none gets --bundle-id sav
|
|
|
3481
3483
|
prompts: true,
|
|
3482
3484
|
mcp: false,
|
|
3483
3485
|
async run(ctx, input) {
|
|
3484
|
-
const { runAscKeysCreate } = await import("./create-
|
|
3486
|
+
const { runAscKeysCreate } = await import("./create-CHIPz5vb.js");
|
|
3485
3487
|
return runAscKeysCreate(ctx, input);
|
|
3486
3488
|
}
|
|
3487
3489
|
});
|
|
@@ -3868,7 +3870,7 @@ With --app it saves the key you hold on that app instead, as asc keys create --k
|
|
|
3868
3870
|
prompts: true,
|
|
3869
3871
|
mcp: false,
|
|
3870
3872
|
async run(ctx, { args, flags }) {
|
|
3871
|
-
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-
|
|
3873
|
+
const { upsertHeldKey: upsertHeldKey$1 } = await import("./held-Dd19AduK.js");
|
|
3872
3874
|
return upsertHeldKey$1(ctx, {
|
|
3873
3875
|
action: "update",
|
|
3874
3876
|
key: {
|
|
@@ -5120,7 +5122,7 @@ Exit codes
|
|
|
5120
5122
|
prompts: true,
|
|
5121
5123
|
mcp: false,
|
|
5122
5124
|
async run(ctx, input) {
|
|
5123
|
-
const { runSetupApple } = await import("./apple-
|
|
5125
|
+
const { runSetupApple } = await import("./apple-D2z3tALE.js");
|
|
5124
5126
|
return runSetupApple(ctx, input);
|
|
5125
5127
|
}
|
|
5126
5128
|
});
|
|
@@ -7751,7 +7753,7 @@ const command$45 = defineCommand({
|
|
|
7751
7753
|
prompts: true,
|
|
7752
7754
|
mcp: false,
|
|
7753
7755
|
async run(ctx, { args, flags }) {
|
|
7754
|
-
const { runBuildPipeline } = await import("./build-
|
|
7756
|
+
const { runBuildPipeline } = await import("./build-Co487gha.js");
|
|
7755
7757
|
await runBuildPipeline({
|
|
7756
7758
|
output: ctx.output,
|
|
7757
7759
|
json: ctx.json
|
|
@@ -7812,7 +7814,7 @@ const command$46 = defineCommand({
|
|
|
7812
7814
|
prompts: true,
|
|
7813
7815
|
mcp: false,
|
|
7814
7816
|
async run(ctx, { args, flags }) {
|
|
7815
|
-
const { runCreate } = await import("./create-
|
|
7817
|
+
const { runCreate } = await import("./create-G3HuOHZ4.js");
|
|
7816
7818
|
return runCreate(ctx, {
|
|
7817
7819
|
dir: args.dir,
|
|
7818
7820
|
...flags
|
|
@@ -7855,7 +7857,7 @@ const command$47 = defineCommand({
|
|
|
7855
7857
|
prompts: true,
|
|
7856
7858
|
mcp: false,
|
|
7857
7859
|
async run(ctx, { args, flags }) {
|
|
7858
|
-
const { runStudio } = await import("./server-
|
|
7860
|
+
const { runStudio } = await import("./server-4ZK_1Off.js");
|
|
7859
7861
|
await runStudio({
|
|
7860
7862
|
dirs: args.dir,
|
|
7861
7863
|
port: flags.port,
|
|
@@ -7895,7 +7897,7 @@ const command$48 = defineCommand({
|
|
|
7895
7897
|
prompts: true,
|
|
7896
7898
|
mcp: false,
|
|
7897
7899
|
async run(ctx, input) {
|
|
7898
|
-
const { runPromote } = await import("./promote-
|
|
7900
|
+
const { runPromote } = await import("./promote-DXxxj4BU.js");
|
|
7899
7901
|
return runPromote(ctx, input);
|
|
7900
7902
|
}
|
|
7901
7903
|
});
|
|
@@ -7951,7 +7953,7 @@ const command$49 = defineCommand({
|
|
|
7951
7953
|
prompts: true,
|
|
7952
7954
|
mcp: false,
|
|
7953
7955
|
async run(ctx, input) {
|
|
7954
|
-
const { runPush } = await import("./push-
|
|
7956
|
+
const { runPush } = await import("./push-DPZdch2W.js");
|
|
7955
7957
|
return runPush(ctx, input, true);
|
|
7956
7958
|
}
|
|
7957
7959
|
});
|
|
@@ -7987,7 +7989,7 @@ const command$50 = defineCommand({
|
|
|
7987
7989
|
prompts: true,
|
|
7988
7990
|
mcp: false,
|
|
7989
7991
|
async run(ctx, input) {
|
|
7990
|
-
const { runPull } = await import("./pull-
|
|
7992
|
+
const { runPull } = await import("./pull-DGrlBSAG.js");
|
|
7991
7993
|
return runPull(ctx, input);
|
|
7992
7994
|
}
|
|
7993
7995
|
});
|
|
@@ -8039,7 +8041,7 @@ const command$51 = defineCommand({
|
|
|
8039
8041
|
prompts: true,
|
|
8040
8042
|
mcp: false,
|
|
8041
8043
|
async run(ctx, input) {
|
|
8042
|
-
const { runPush } = await import("./push-
|
|
8044
|
+
const { runPush } = await import("./push-DPZdch2W.js");
|
|
8043
8045
|
return runPush(ctx, input, false);
|
|
8044
8046
|
}
|
|
8045
8047
|
});
|
|
@@ -8434,7 +8436,7 @@ async function createApp(context, api, nameArg, fields) {
|
|
|
8434
8436
|
let name = nameArg;
|
|
8435
8437
|
let platform = textOf(fields.platform);
|
|
8436
8438
|
if (interactive && (!name || !platform)) {
|
|
8437
|
-
const { scanProject } = await import("./scan-
|
|
8439
|
+
const { scanProject } = await import("./scan-BQmjhs3g.js");
|
|
8438
8440
|
const detected = (await scanProject(context.installDir).catch(() => null))?.apps[0];
|
|
8439
8441
|
if (detected && !name && !platform) {
|
|
8440
8442
|
ui.info(`Detected \`${detected.framework.name}\`` + (detected.details ? ` · \`${detected.details}\`` : ""));
|
|
@@ -8744,7 +8746,7 @@ async function runResource(ctx, resource, action, value$1, value2, flags) {
|
|
|
8744
8746
|
if (action === "create") return create(ctx, ctx.api, resource, value$1, value2, flags);
|
|
8745
8747
|
if (action === "use" && resource === "apps") return useApp(ctx, ctx.api, value$1);
|
|
8746
8748
|
if (action === "storekit" && resource === "products") {
|
|
8747
|
-
const { writeStoreKit } = await import("./storekit-
|
|
8749
|
+
const { writeStoreKit } = await import("./storekit-DK3xXKoY.js");
|
|
8748
8750
|
return writeStoreKit(ctx, ctx.api, flags.fields.out);
|
|
8749
8751
|
}
|
|
8750
8752
|
throw new Error(`Unknown action "${action}" for ${resource}.`);
|
|
@@ -10098,7 +10100,7 @@ const command$62 = defineCommand({
|
|
|
10098
10100
|
prompts: true,
|
|
10099
10101
|
mcp: false,
|
|
10100
10102
|
async run(ctx) {
|
|
10101
|
-
const { runDoctor } = await import("./doctor-
|
|
10103
|
+
const { runDoctor } = await import("./doctor-CHF9aNFc.js");
|
|
10102
10104
|
return runDoctor(ctx);
|
|
10103
10105
|
}
|
|
10104
10106
|
});
|
|
@@ -10443,7 +10445,7 @@ const command$64 = defineCommand({
|
|
|
10443
10445
|
prompts: true,
|
|
10444
10446
|
mcp: false,
|
|
10445
10447
|
async run(ctx, input) {
|
|
10446
|
-
const { runSkills } = await import("./skills-
|
|
10448
|
+
const { runSkills } = await import("./skills-ClEVgXUB.js");
|
|
10447
10449
|
return runSkills(ctx, input);
|
|
10448
10450
|
}
|
|
10449
10451
|
});
|
|
@@ -10459,25 +10461,25 @@ const command$65 = defineCommand({
|
|
|
10459
10461
|
prompts: true,
|
|
10460
10462
|
mcp: false,
|
|
10461
10463
|
async run(ctx) {
|
|
10462
|
-
const { runUpgrade } = await import("./upgrade-
|
|
10464
|
+
const { runUpgrade } = await import("./upgrade-g_Bd9oJe.js");
|
|
10463
10465
|
return runUpgrade(ctx, AUTO_UPDATE_TARGET());
|
|
10464
10466
|
}
|
|
10465
10467
|
});
|
|
10466
10468
|
|
|
10467
10469
|
//#endregion
|
|
10468
|
-
//#region src/commands/
|
|
10470
|
+
//#region src/commands/artifacts/approve.ts
|
|
10469
10471
|
const command$66 = defineCommand({
|
|
10470
|
-
name: "
|
|
10472
|
+
name: "artifacts approve",
|
|
10471
10473
|
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
|
|
10474
|
+
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.",
|
|
10473
10475
|
args: { version: { describe: "The version id (default: the latest built that isn't live)" } },
|
|
10474
10476
|
flags: {
|
|
10475
10477
|
dir: projectDir,
|
|
10476
|
-
|
|
10478
|
+
artifact,
|
|
10477
10479
|
org: {
|
|
10478
10480
|
type: "string",
|
|
10479
10481
|
value: "id",
|
|
10480
|
-
describe: "The organization of a --
|
|
10482
|
+
describe: "The organization of a --artifact slug"
|
|
10481
10483
|
},
|
|
10482
10484
|
yes: {
|
|
10483
10485
|
...yes,
|
|
@@ -10489,9 +10491,9 @@ const command$66 = defineCommand({
|
|
|
10489
10491
|
}
|
|
10490
10492
|
},
|
|
10491
10493
|
examples: [
|
|
10492
|
-
["
|
|
10493
|
-
["
|
|
10494
|
-
["
|
|
10494
|
+
["artifacts approve --artifact 42", "Review and approve the latest built version"],
|
|
10495
|
+
["artifacts approve 7 --artifact 42 --json", "Print version 7's manifest and changes, approving nothing"],
|
|
10496
|
+
["artifacts approve 7 --artifact 42 --yes --accept-changes", "Approve it without a terminal, having read them"]
|
|
10495
10497
|
],
|
|
10496
10498
|
auth: "required",
|
|
10497
10499
|
json: true,
|
|
@@ -10499,8 +10501,8 @@ const command$66 = defineCommand({
|
|
|
10499
10501
|
mcp: false,
|
|
10500
10502
|
channel: "next",
|
|
10501
10503
|
async run(ctx, { args, flags }) {
|
|
10502
|
-
const {
|
|
10503
|
-
await
|
|
10504
|
+
const { runArtifactApprove } = await import("./approve-I-lvTanp.js");
|
|
10505
|
+
await runArtifactApprove(ctx, {
|
|
10504
10506
|
version: args.version,
|
|
10505
10507
|
...flags
|
|
10506
10508
|
});
|
|
@@ -10508,25 +10510,25 @@ const command$66 = defineCommand({
|
|
|
10508
10510
|
});
|
|
10509
10511
|
|
|
10510
10512
|
//#endregion
|
|
10511
|
-
//#region src/commands/
|
|
10513
|
+
//#region src/commands/artifacts/create.ts
|
|
10512
10514
|
const command$67 = defineCommand({
|
|
10513
|
-
name: "
|
|
10514
|
-
summary: "Start
|
|
10515
|
-
args: { dir: { describe: "Where to put it (default: my-
|
|
10515
|
+
name: "artifacts create",
|
|
10516
|
+
summary: "Start an artifact: a mini-app that adds to the Superwall dashboard",
|
|
10517
|
+
args: { dir: { describe: "Where to put it (default: my-artifact)" } },
|
|
10516
10518
|
flags: { install: {
|
|
10517
10519
|
type: "boolean",
|
|
10518
10520
|
default: true,
|
|
10519
10521
|
describe: "Install dependencies after downloading (--no-install to skip)"
|
|
10520
10522
|
} },
|
|
10521
|
-
examples: [["
|
|
10523
|
+
examples: [["artifacts create", "Download the starter into my-artifact"], ["artifacts create churn-copilot", "Name the directory yourself"]],
|
|
10522
10524
|
auth: "none",
|
|
10523
10525
|
json: false,
|
|
10524
10526
|
prompts: false,
|
|
10525
10527
|
mcp: false,
|
|
10526
10528
|
channel: "next",
|
|
10527
10529
|
async run(ctx, { args, flags }) {
|
|
10528
|
-
const {
|
|
10529
|
-
await
|
|
10530
|
+
const { runArtifactCreate } = await import("./starter-BtUUQWhd.js");
|
|
10531
|
+
await runArtifactCreate(ctx, {
|
|
10530
10532
|
dir: args.dir,
|
|
10531
10533
|
install: flags.install
|
|
10532
10534
|
});
|
|
@@ -10534,12 +10536,12 @@ const command$67 = defineCommand({
|
|
|
10534
10536
|
});
|
|
10535
10537
|
|
|
10536
10538
|
//#endregion
|
|
10537
|
-
//#region src/commands/
|
|
10539
|
+
//#region src/commands/artifacts/dev.ts
|
|
10538
10540
|
const command$68 = defineCommand({
|
|
10539
|
-
name: "
|
|
10540
|
-
summary: "Run
|
|
10541
|
-
details: "Bundles the
|
|
10542
|
-
args: { dir: { describe: "The
|
|
10541
|
+
name: "artifacts dev",
|
|
10542
|
+
summary: "Run an artifact on localhost against your real data, read-only",
|
|
10543
|
+
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.",
|
|
10544
|
+
args: { dir: { describe: "The artifact (default: cwd)" } },
|
|
10543
10545
|
flags: {
|
|
10544
10546
|
port: {
|
|
10545
10547
|
type: "number",
|
|
@@ -10602,15 +10604,15 @@ const command$68 = defineCommand({
|
|
|
10602
10604
|
describe: "The whole context as JSON, for a slot this CLI doesn't know"
|
|
10603
10605
|
}
|
|
10604
10606
|
},
|
|
10605
|
-
examples: [["
|
|
10607
|
+
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"]],
|
|
10606
10608
|
auth: "required",
|
|
10607
10609
|
json: false,
|
|
10608
10610
|
prompts: true,
|
|
10609
10611
|
mcp: false,
|
|
10610
10612
|
channel: "next",
|
|
10611
10613
|
async run(ctx, { args, flags }) {
|
|
10612
|
-
const {
|
|
10613
|
-
await
|
|
10614
|
+
const { runArtifactDev } = await import("./run-Co8u_BkN.js");
|
|
10615
|
+
await runArtifactDev(ctx, {
|
|
10614
10616
|
dir: args.dir,
|
|
10615
10617
|
...flags
|
|
10616
10618
|
});
|
|
@@ -10618,9 +10620,9 @@ const command$68 = defineCommand({
|
|
|
10618
10620
|
});
|
|
10619
10621
|
|
|
10620
10622
|
//#endregion
|
|
10621
|
-
//#region src/commands/
|
|
10623
|
+
//#region src/commands/artifacts/install.ts
|
|
10622
10624
|
const command$69 = defineCommand({
|
|
10623
|
-
name: "
|
|
10625
|
+
name: "artifacts install",
|
|
10624
10626
|
summary: "Choose where an entrypoint shows",
|
|
10625
10627
|
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
10628
|
args: { entrypoint: { describe: "The entrypoint id from superwall.json" } },
|
|
@@ -10643,11 +10645,11 @@ const command$69 = defineCommand({
|
|
|
10643
10645
|
describe: "Order among the entrypoints shown in one slot, lowest first"
|
|
10644
10646
|
},
|
|
10645
10647
|
dir: projectDir,
|
|
10646
|
-
|
|
10648
|
+
artifact,
|
|
10647
10649
|
org: {
|
|
10648
10650
|
type: "string",
|
|
10649
10651
|
value: "id",
|
|
10650
|
-
describe: "The organization of a --
|
|
10652
|
+
describe: "The organization of a --artifact slug"
|
|
10651
10653
|
},
|
|
10652
10654
|
yes: {
|
|
10653
10655
|
...yes,
|
|
@@ -10655,9 +10657,9 @@ const command$69 = defineCommand({
|
|
|
10655
10657
|
}
|
|
10656
10658
|
},
|
|
10657
10659
|
examples: [
|
|
10658
|
-
["
|
|
10659
|
-
["
|
|
10660
|
-
["
|
|
10660
|
+
["artifacts install", "List what's installed"],
|
|
10661
|
+
["artifacts install churn --app 5678", "Show it in one app"],
|
|
10662
|
+
["artifacts install churn --remove --yes", "Remove the organization-wide row"]
|
|
10661
10663
|
],
|
|
10662
10664
|
auth: "required",
|
|
10663
10665
|
json: true,
|
|
@@ -10665,8 +10667,8 @@ const command$69 = defineCommand({
|
|
|
10665
10667
|
mcp: false,
|
|
10666
10668
|
channel: "next",
|
|
10667
10669
|
async run(ctx, { args, flags }) {
|
|
10668
|
-
const {
|
|
10669
|
-
await
|
|
10670
|
+
const { runArtifactInstall } = await import("./install-CXfLcLhU.js");
|
|
10671
|
+
await runArtifactInstall(ctx, {
|
|
10670
10672
|
entrypoint: args.entrypoint,
|
|
10671
10673
|
...flags
|
|
10672
10674
|
});
|
|
@@ -10674,10 +10676,10 @@ const command$69 = defineCommand({
|
|
|
10674
10676
|
});
|
|
10675
10677
|
|
|
10676
10678
|
//#endregion
|
|
10677
|
-
//#region src/commands/
|
|
10679
|
+
//#region src/commands/artifacts/list.ts
|
|
10678
10680
|
const command$70 = defineCommand({
|
|
10679
|
-
name: "
|
|
10680
|
-
summary: "List an organization's
|
|
10681
|
+
name: "artifacts list",
|
|
10682
|
+
summary: "List an organization's artifacts",
|
|
10681
10683
|
flags: {
|
|
10682
10684
|
org: {
|
|
10683
10685
|
type: "string",
|
|
@@ -10686,43 +10688,43 @@ const command$70 = defineCommand({
|
|
|
10686
10688
|
},
|
|
10687
10689
|
dir: projectDir
|
|
10688
10690
|
},
|
|
10689
|
-
examples: [["
|
|
10691
|
+
examples: [["artifacts list --org 1234", "Every artifact in organization 1234"]],
|
|
10690
10692
|
auth: "required",
|
|
10691
10693
|
json: true,
|
|
10692
10694
|
prompts: true,
|
|
10693
10695
|
mcp: false,
|
|
10694
10696
|
channel: "next",
|
|
10695
10697
|
async run(ctx, { flags }) {
|
|
10696
|
-
const {
|
|
10697
|
-
await
|
|
10698
|
+
const { runArtifactList } = await import("./install-CXfLcLhU.js");
|
|
10699
|
+
await runArtifactList(ctx, flags);
|
|
10698
10700
|
}
|
|
10699
10701
|
});
|
|
10700
10702
|
|
|
10701
10703
|
//#endregion
|
|
10702
|
-
//#region src/commands/
|
|
10704
|
+
//#region src/commands/artifacts/logs.ts
|
|
10703
10705
|
const command$71 = defineCommand({
|
|
10704
|
-
name: "
|
|
10706
|
+
name: "artifacts logs",
|
|
10705
10707
|
summary: "Show a version's build log",
|
|
10706
10708
|
details: "The last 128 KiB, once the build has finished. The latest version by default.",
|
|
10707
10709
|
args: { version: { describe: "The version id (default: the latest)" } },
|
|
10708
10710
|
flags: {
|
|
10709
10711
|
dir: projectDir,
|
|
10710
|
-
|
|
10712
|
+
artifact,
|
|
10711
10713
|
org: {
|
|
10712
10714
|
type: "string",
|
|
10713
10715
|
value: "id",
|
|
10714
|
-
describe: "The organization of a --
|
|
10716
|
+
describe: "The organization of a --artifact slug"
|
|
10715
10717
|
}
|
|
10716
10718
|
},
|
|
10717
|
-
examples: [["
|
|
10719
|
+
examples: [["artifacts logs", "The latest version's build log"], ["artifacts logs 7", "Version 7's"]],
|
|
10718
10720
|
auth: "required",
|
|
10719
10721
|
json: true,
|
|
10720
10722
|
prompts: false,
|
|
10721
10723
|
mcp: false,
|
|
10722
10724
|
channel: "next",
|
|
10723
10725
|
async run(ctx, { args, flags }) {
|
|
10724
|
-
const {
|
|
10725
|
-
await
|
|
10726
|
+
const { runArtifactLogs } = await import("./status-SAZxltzW.js");
|
|
10727
|
+
await runArtifactLogs(ctx, {
|
|
10726
10728
|
version: args.version,
|
|
10727
10729
|
...flags
|
|
10728
10730
|
});
|
|
@@ -10730,10 +10732,10 @@ const command$71 = defineCommand({
|
|
|
10730
10732
|
});
|
|
10731
10733
|
|
|
10732
10734
|
//#endregion
|
|
10733
|
-
//#region src/commands/
|
|
10735
|
+
//#region src/commands/artifacts/open.ts
|
|
10734
10736
|
const command$72 = defineCommand({
|
|
10735
|
-
name: "
|
|
10736
|
-
summary: "Open
|
|
10737
|
+
name: "artifacts open",
|
|
10738
|
+
summary: "Open an artifact in the dashboard",
|
|
10737
10739
|
args: { entrypoint: { describe: "An entrypoint to open inside an app, with --app" } },
|
|
10738
10740
|
flags: {
|
|
10739
10741
|
app: {
|
|
@@ -10741,11 +10743,11 @@ const command$72 = defineCommand({
|
|
|
10741
10743
|
describe: "The app to open the entrypoint in"
|
|
10742
10744
|
},
|
|
10743
10745
|
dir: projectDir,
|
|
10744
|
-
|
|
10746
|
+
artifact,
|
|
10745
10747
|
org: {
|
|
10746
10748
|
type: "string",
|
|
10747
10749
|
value: "id",
|
|
10748
|
-
describe: "The organization of a --
|
|
10750
|
+
describe: "The organization of a --artifact slug"
|
|
10749
10751
|
},
|
|
10750
10752
|
open: {
|
|
10751
10753
|
type: "boolean",
|
|
@@ -10753,15 +10755,15 @@ const command$72 = defineCommand({
|
|
|
10753
10755
|
describe: "Open your browser at a terminal (--no-open to only print the link)"
|
|
10754
10756
|
}
|
|
10755
10757
|
},
|
|
10756
|
-
examples: [["
|
|
10758
|
+
examples: [["artifacts open", "This project's artifact"], ["artifacts open panel --app 5678", "One entrypoint, inside an app"]],
|
|
10757
10759
|
auth: "required",
|
|
10758
10760
|
json: true,
|
|
10759
10761
|
prompts: false,
|
|
10760
10762
|
mcp: false,
|
|
10761
10763
|
channel: "next",
|
|
10762
10764
|
async run(ctx, { args, flags }) {
|
|
10763
|
-
const {
|
|
10764
|
-
await
|
|
10765
|
+
const { runArtifactOpen } = await import("./install-CXfLcLhU.js");
|
|
10766
|
+
await runArtifactOpen(ctx, {
|
|
10765
10767
|
entrypoint: args.entrypoint,
|
|
10766
10768
|
...flags
|
|
10767
10769
|
});
|
|
@@ -10769,17 +10771,17 @@ const command$72 = defineCommand({
|
|
|
10769
10771
|
});
|
|
10770
10772
|
|
|
10771
10773
|
//#endregion
|
|
10772
|
-
//#region src/commands/
|
|
10774
|
+
//#region src/commands/artifacts/pull.ts
|
|
10773
10775
|
const command$73 = defineCommand({
|
|
10774
|
-
name: "
|
|
10776
|
+
name: "artifacts pull",
|
|
10775
10777
|
summary: "Bring teammates' pushes into this project, merged with your edits",
|
|
10776
|
-
args: { dir: { describe: "The
|
|
10778
|
+
args: { dir: { describe: "The artifact project, or with --artifact an empty folder to fill (default: cwd)" } },
|
|
10777
10779
|
flags: {
|
|
10778
|
-
|
|
10780
|
+
artifact,
|
|
10779
10781
|
org: {
|
|
10780
10782
|
type: "string",
|
|
10781
10783
|
value: "id",
|
|
10782
|
-
describe: "The organization of a --
|
|
10784
|
+
describe: "The organization of a --artifact slug"
|
|
10783
10785
|
},
|
|
10784
10786
|
theirs: {
|
|
10785
10787
|
type: "boolean",
|
|
@@ -10787,9 +10789,9 @@ const command$73 = defineCommand({
|
|
|
10787
10789
|
}
|
|
10788
10790
|
},
|
|
10789
10791
|
examples: [
|
|
10790
|
-
["
|
|
10791
|
-
["
|
|
10792
|
-
["
|
|
10792
|
+
["artifacts pull", "Merge what teammates pushed into this project"],
|
|
10793
|
+
["artifacts pull --theirs", "Take the source repo's version of files you both changed"],
|
|
10794
|
+
["artifacts pull churn-copilot --artifact 42", "Get artifact 42's source into a new folder"]
|
|
10793
10795
|
],
|
|
10794
10796
|
auth: "required",
|
|
10795
10797
|
json: true,
|
|
@@ -10797,8 +10799,8 @@ const command$73 = defineCommand({
|
|
|
10797
10799
|
mcp: false,
|
|
10798
10800
|
channel: "next",
|
|
10799
10801
|
async run(ctx, { args, flags }) {
|
|
10800
|
-
const {
|
|
10801
|
-
await
|
|
10802
|
+
const { runArtifactPull } = await import("./pull-Bfa3_SBt.js");
|
|
10803
|
+
await runArtifactPull(ctx, {
|
|
10802
10804
|
dir: args.dir,
|
|
10803
10805
|
...flags
|
|
10804
10806
|
});
|
|
@@ -10806,12 +10808,12 @@ const command$73 = defineCommand({
|
|
|
10806
10808
|
});
|
|
10807
10809
|
|
|
10808
10810
|
//#endregion
|
|
10809
|
-
//#region src/commands/
|
|
10811
|
+
//#region src/commands/artifacts/push.ts
|
|
10810
10812
|
const command$74 = defineCommand({
|
|
10811
|
-
name: "
|
|
10812
|
-
summary: "Push this
|
|
10813
|
-
details: "The first push creates the
|
|
10814
|
-
args: { dir: { describe: "The
|
|
10813
|
+
name: "artifacts push",
|
|
10814
|
+
summary: "Push this artifact's source and build it",
|
|
10815
|
+
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.",
|
|
10816
|
+
args: { dir: { describe: "The artifact project (default: cwd)" } },
|
|
10815
10817
|
flags: {
|
|
10816
10818
|
org: {
|
|
10817
10819
|
type: "string",
|
|
@@ -10833,9 +10835,9 @@ const command$74 = defineCommand({
|
|
|
10833
10835
|
}
|
|
10834
10836
|
},
|
|
10835
10837
|
examples: [
|
|
10836
|
-
["
|
|
10837
|
-
["
|
|
10838
|
-
["
|
|
10838
|
+
["artifacts push", "Push and build this project"],
|
|
10839
|
+
["artifacts push --org 1234 -m \"Add the cohort page\"", "The first push, with a note"],
|
|
10840
|
+
["artifacts push --json --accept-merged-commits", "In a script, taking in teammates' commits"]
|
|
10839
10841
|
],
|
|
10840
10842
|
auth: "required",
|
|
10841
10843
|
json: true,
|
|
@@ -10843,8 +10845,8 @@ const command$74 = defineCommand({
|
|
|
10843
10845
|
mcp: false,
|
|
10844
10846
|
channel: "next",
|
|
10845
10847
|
async run(ctx, { args, flags }) {
|
|
10846
|
-
const {
|
|
10847
|
-
await
|
|
10848
|
+
const { runArtifactPush } = await import("./push-DV-kJZdw.js");
|
|
10849
|
+
await runArtifactPush(ctx, {
|
|
10848
10850
|
dir: args.dir,
|
|
10849
10851
|
...flags
|
|
10850
10852
|
});
|
|
@@ -10852,30 +10854,30 @@ const command$74 = defineCommand({
|
|
|
10852
10854
|
});
|
|
10853
10855
|
|
|
10854
10856
|
//#endregion
|
|
10855
|
-
//#region src/commands/
|
|
10857
|
+
//#region src/commands/artifacts/share.ts
|
|
10856
10858
|
const command$75 = defineCommand({
|
|
10857
|
-
name: "
|
|
10859
|
+
name: "artifacts share",
|
|
10858
10860
|
summary: "Ask an admin to review a version",
|
|
10859
10861
|
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
10862
|
args: { version: { describe: "The version id (default: the latest built)" } },
|
|
10861
10863
|
flags: {
|
|
10862
10864
|
dir: projectDir,
|
|
10863
|
-
|
|
10865
|
+
artifact,
|
|
10864
10866
|
org: {
|
|
10865
10867
|
type: "string",
|
|
10866
10868
|
value: "id",
|
|
10867
|
-
describe: "The organization of a --
|
|
10869
|
+
describe: "The organization of a --artifact slug"
|
|
10868
10870
|
}
|
|
10869
10871
|
},
|
|
10870
|
-
examples: [["
|
|
10872
|
+
examples: [["artifacts share", "Ask for review of the latest built version"]],
|
|
10871
10873
|
auth: "required",
|
|
10872
10874
|
json: true,
|
|
10873
10875
|
prompts: false,
|
|
10874
10876
|
mcp: false,
|
|
10875
10877
|
channel: "next",
|
|
10876
10878
|
async run(ctx, { args, flags }) {
|
|
10877
|
-
const {
|
|
10878
|
-
await
|
|
10879
|
+
const { runArtifactShare } = await import("./status-SAZxltzW.js");
|
|
10880
|
+
await runArtifactShare(ctx, {
|
|
10879
10881
|
version: args.version,
|
|
10880
10882
|
...flags
|
|
10881
10883
|
});
|
|
@@ -10883,41 +10885,41 @@ const command$75 = defineCommand({
|
|
|
10883
10885
|
});
|
|
10884
10886
|
|
|
10885
10887
|
//#endregion
|
|
10886
|
-
//#region src/commands/
|
|
10888
|
+
//#region src/commands/artifacts/status.ts
|
|
10887
10889
|
const command$76 = defineCommand({
|
|
10888
|
-
name: "
|
|
10889
|
-
summary: "Show
|
|
10890
|
+
name: "artifacts status",
|
|
10891
|
+
summary: "Show an artifact's state and its latest versions",
|
|
10890
10892
|
flags: {
|
|
10891
10893
|
dir: projectDir,
|
|
10892
|
-
|
|
10894
|
+
artifact,
|
|
10893
10895
|
org: {
|
|
10894
10896
|
type: "string",
|
|
10895
10897
|
value: "id",
|
|
10896
|
-
describe: "The organization of a --
|
|
10898
|
+
describe: "The organization of a --artifact slug"
|
|
10897
10899
|
},
|
|
10898
10900
|
all: {
|
|
10899
10901
|
type: "boolean",
|
|
10900
10902
|
describe: "List every version, not just the latest and the live one"
|
|
10901
10903
|
}
|
|
10902
10904
|
},
|
|
10903
|
-
examples: [["
|
|
10905
|
+
examples: [["artifacts status", "This project's artifact"], ["artifacts status --artifact 42", "Any artifact you can see"]],
|
|
10904
10906
|
auth: "required",
|
|
10905
10907
|
json: true,
|
|
10906
10908
|
prompts: false,
|
|
10907
10909
|
mcp: false,
|
|
10908
10910
|
channel: "next",
|
|
10909
10911
|
async run(ctx, { flags }) {
|
|
10910
|
-
const {
|
|
10911
|
-
await
|
|
10912
|
+
const { runArtifactStatus } = await import("./status-SAZxltzW.js");
|
|
10913
|
+
await runArtifactStatus(ctx, flags);
|
|
10912
10914
|
}
|
|
10913
10915
|
});
|
|
10914
10916
|
|
|
10915
10917
|
//#endregion
|
|
10916
|
-
//#region src/commands/
|
|
10918
|
+
//#region src/commands/artifacts/try.ts
|
|
10917
10919
|
const command$77 = defineCommand({
|
|
10918
|
-
name: "
|
|
10920
|
+
name: "artifacts try",
|
|
10919
10921
|
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
|
|
10922
|
+
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.",
|
|
10921
10923
|
args: { entrypoint: {
|
|
10922
10924
|
describe: "The entrypoint id from superwall.json",
|
|
10923
10925
|
required: true
|
|
@@ -10926,7 +10928,7 @@ const command$77 = defineCommand({
|
|
|
10926
10928
|
dir: {
|
|
10927
10929
|
type: "string",
|
|
10928
10930
|
value: "path",
|
|
10929
|
-
describe: "The
|
|
10931
|
+
describe: "The artifact (default: cwd)"
|
|
10930
10932
|
},
|
|
10931
10933
|
app: {
|
|
10932
10934
|
...app,
|
|
@@ -10999,9 +11001,9 @@ const command$77 = defineCommand({
|
|
|
10999
11001
|
}
|
|
11000
11002
|
},
|
|
11001
11003
|
examples: [
|
|
11002
|
-
["
|
|
11003
|
-
["
|
|
11004
|
-
["
|
|
11004
|
+
["artifacts try transactions --app 5678", "Run a metric for one app over the last 30 days"],
|
|
11005
|
+
["artifacts try transactions --app 5678 --breakdown store --filter store=APP_STORE", "Split and filter it"],
|
|
11006
|
+
["artifacts try home --org 1234", "Open a page in the dashboard"]
|
|
11005
11007
|
],
|
|
11006
11008
|
auth: "required",
|
|
11007
11009
|
json: true,
|
|
@@ -11009,8 +11011,8 @@ const command$77 = defineCommand({
|
|
|
11009
11011
|
mcp: false,
|
|
11010
11012
|
channel: "next",
|
|
11011
11013
|
async run(ctx, { args, flags }) {
|
|
11012
|
-
const {
|
|
11013
|
-
await
|
|
11014
|
+
const { runArtifactTry } = await import("./try-BrJJyXgq.js");
|
|
11015
|
+
await runArtifactTry(ctx, {
|
|
11014
11016
|
entrypoint: args.entrypoint,
|
|
11015
11017
|
...flags
|
|
11016
11018
|
});
|
|
@@ -11018,11 +11020,11 @@ const command$77 = defineCommand({
|
|
|
11018
11020
|
});
|
|
11019
11021
|
|
|
11020
11022
|
//#endregion
|
|
11021
|
-
//#region src/commands/
|
|
11023
|
+
//#region src/commands/artifacts/update.ts
|
|
11022
11024
|
const command$78 = defineCommand({
|
|
11023
|
-
name: "
|
|
11024
|
-
summary: "Refresh
|
|
11025
|
-
args: { dir: { describe: "The
|
|
11025
|
+
name: "artifacts update",
|
|
11026
|
+
summary: "Refresh an artifact's vendored SDK from the public repo",
|
|
11027
|
+
args: { dir: { describe: "The artifact (default: cwd)" } },
|
|
11026
11028
|
flags: {
|
|
11027
11029
|
install: {
|
|
11028
11030
|
type: "boolean",
|
|
@@ -11034,15 +11036,15 @@ const command$78 = defineCommand({
|
|
|
11034
11036
|
describe: "Replace a vendored SDK that's newer than the latest published one"
|
|
11035
11037
|
}
|
|
11036
11038
|
},
|
|
11037
|
-
examples: [["
|
|
11039
|
+
examples: [["artifacts update", "Replace vendor/artifact-sdk with the latest and update the lockfile"]],
|
|
11038
11040
|
auth: "none",
|
|
11039
11041
|
json: false,
|
|
11040
11042
|
prompts: false,
|
|
11041
11043
|
mcp: false,
|
|
11042
11044
|
channel: "next",
|
|
11043
11045
|
async run(ctx, { args, flags }) {
|
|
11044
|
-
const {
|
|
11045
|
-
await
|
|
11046
|
+
const { runArtifactUpdate } = await import("./starter-BtUUQWhd.js");
|
|
11047
|
+
await runArtifactUpdate(ctx, {
|
|
11046
11048
|
dir: args.dir,
|
|
11047
11049
|
install: flags.install,
|
|
11048
11050
|
force: flags.force
|
|
@@ -11084,8 +11086,8 @@ const command$79 = defineCommand({
|
|
|
11084
11086
|
prompts: true,
|
|
11085
11087
|
mcp: false,
|
|
11086
11088
|
async run(ctx, { flags }) {
|
|
11087
|
-
const { runIntegrate } = await import("./integrate-
|
|
11088
|
-
const { printPlaybook } = await import("./playbook-
|
|
11089
|
+
const { runIntegrate } = await import("./integrate-DS2YGLsM.js");
|
|
11090
|
+
const { printPlaybook } = await import("./playbook-K7vmAUsu.js");
|
|
11089
11091
|
if (flags.skill) return printPlaybook(ctx.installDir, "integrate");
|
|
11090
11092
|
await runIntegrate({
|
|
11091
11093
|
...ctx,
|
|
@@ -11131,8 +11133,8 @@ const command$80 = defineCommand({
|
|
|
11131
11133
|
prompts: true,
|
|
11132
11134
|
mcp: false,
|
|
11133
11135
|
async run(ctx, { args, flags }) {
|
|
11134
|
-
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-
|
|
11135
|
-
const { printPlaybook } = await import("./playbook-
|
|
11136
|
+
const { runPaywallMigration, runProviderMigration, runScreenMigration } = await import("./migrate-CoQWqzhJ.js");
|
|
11137
|
+
const { printPlaybook } = await import("./playbook-K7vmAUsu.js");
|
|
11136
11138
|
if (flags.screen !== void 0) return runScreenMigration(ctx, {
|
|
11137
11139
|
path: flags.screen,
|
|
11138
11140
|
screenshot: flags.screenshot
|
|
@@ -11166,8 +11168,8 @@ const command$81 = defineCommand({
|
|
|
11166
11168
|
prompts: true,
|
|
11167
11169
|
mcp: false,
|
|
11168
11170
|
async run(ctx, { flags }) {
|
|
11169
|
-
const { runReview } = await import("./integrate-
|
|
11170
|
-
const { printPlaybook } = await import("./playbook-
|
|
11171
|
+
const { runReview } = await import("./integrate-DS2YGLsM.js");
|
|
11172
|
+
const { printPlaybook } = await import("./playbook-K7vmAUsu.js");
|
|
11171
11173
|
if (flags.skill) return printPlaybook(ctx.installDir, flags.fix ? "review-fix" : "review");
|
|
11172
11174
|
await runReview(ctx, flags.fix);
|
|
11173
11175
|
}
|
|
@@ -11201,14 +11203,14 @@ const GROUPS = [
|
|
|
11201
11203
|
]
|
|
11202
11204
|
},
|
|
11203
11205
|
{
|
|
11204
|
-
id: "
|
|
11205
|
-
title: "
|
|
11206
|
-
prefix: "
|
|
11206
|
+
id: "artifacts",
|
|
11207
|
+
title: "Artifacts",
|
|
11208
|
+
prefix: "artifacts",
|
|
11207
11209
|
channel: "next",
|
|
11208
11210
|
topics: [{
|
|
11209
|
-
name: "
|
|
11211
|
+
name: "artifacts",
|
|
11210
11212
|
summary: "Mini-apps that add pages, panels and metrics to the Superwall dashboard",
|
|
11211
|
-
details: "
|
|
11213
|
+
details: "An artifact is a Worker with a superwall.json manifest. It holds no credential: it calls Superwall as whoever is viewing it."
|
|
11212
11214
|
}],
|
|
11213
11215
|
commands: [
|
|
11214
11216
|
command$67,
|