@anna-ai/cli 0.1.30 → 0.1.32
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/{account-B6n0XkpV.js → account-bqao7Gp5.js} +1 -1
- package/dist/{agent-J2bELWfv.js → agent-CzPryLi6.js} +1 -1
- package/dist/{app-bundle-upload-CPf_nGou.js → app-bundle-upload-CqT9KUOl.js} +2 -2
- package/dist/{apps-73pdBAFE.js → apps-DlVsVHQ5.js} +30 -1
- package/dist/{apps-cut-C5SH9qZN.js → apps-cut-8870xpk-.js} +6 -6
- package/dist/{apps-destructive-PY0wKjqu.js → apps-destructive-B6RFjokU.js} +1 -1
- package/dist/{apps-discard-CfdkwUZ_.js → apps-discard-hVZxAQyj.js} +6 -6
- package/dist/{apps-BpJ-TvHP.js → apps-dvknZYI2.js} +1 -1
- package/dist/{apps-grants-BtXXiuJt.js → apps-grants-DnXCnkH5.js} +1 -1
- package/dist/{apps-publish-B-ZVNmgn.js → apps-publish-BKqVsS1W.js} +10 -4
- package/dist/apps-publish-Djpw5cfG.js +15 -0
- package/dist/{apps-push-Bh8zwT--.js → apps-push-B3wZr9B4.js} +13 -7
- package/dist/{apps-release-DNlN_8gz.js → apps-release-DZK30eF_.js} +2 -2
- package/dist/{apps-rename-slug-Bp-nQ_6I.js → apps-rename-slug-D2BrWasG.js} +2 -2
- package/dist/{apps-status-5DV9cY4A.js → apps-status-Ca6MdXZd.js} +1 -1
- package/dist/{apps-submit-review-DH-bzbDZ.js → apps-submit-review-DMFQI8JZ.js} +1 -1
- package/dist/{apps-sync-meta-DdPnXuIU.js → apps-sync-meta-BOb6J_wz.js} +25 -16
- package/dist/{apps-versions-vGihRRje.js → apps-versions-D1lixrmM.js} +1 -1
- package/dist/{bridge-DXH59CmP.js → bridge-CbjqAm0H.js} +1 -1
- package/dist/bridge-CzHB_IsQ.js +3 -0
- package/dist/cli.js +42 -41
- package/dist/dev-C3yWhzAp.js +4 -0
- package/dist/{dev-aWkfWGLD.js → dev-Re6NyNDS.js} +4 -4
- package/dist/{doctor-DnCYaREu.js → doctor-VrfEkedz.js} +1 -1
- package/dist/{executa-dev-0XdBPTDy.js → executa-dev-B5Uz982M.js} +8 -8
- package/dist/{executa-install-A-BgavhA.js → executa-install-BW9jjY7u.js} +1 -1
- package/dist/executa-install-Cyid8R7r.js +7 -0
- package/dist/{executa-publish-Xmm4DMO9.js → executa-publish-Ah6J7jYd.js} +1 -1
- package/dist/{executa-publish-9XQRncyN.js → executa-publish-DI_6M_ea.js} +2 -2
- package/dist/listing-meta-BlY7XMrw.js +117 -0
- package/dist/{manifest-CMc7RM57.js → manifest-DOMrcdCK.js} +16 -1
- package/dist/{publish-NTT1Libd.js → publish-GpvkaBIx.js} +6 -5
- package/dist/{runner-DVu-o_U8.js → runner-BxYjAmih.js} +9 -3
- package/dist/{server-DtnMLKQS.js → server-BMcGaUTy.js} +229 -5
- package/dist/{storage-C95wApr2.js → storage-BkF4XyI0.js} +3 -3
- package/dist/{working-orchestration-CX0ONKIq.js → working-orchestration-1jzRuk34.js} +4 -4
- package/package.json +3 -3
- package/templates/executa/go/main.go +1 -1
- package/templates/executa/node/plugin.mjs +1 -1
- package/templates/executa/python/__SLUG_PY___plugin.py +1 -1
- package/templates/minimal/executas/__SLUG__/__SLUG_PY___plugin.py +1 -1
- package/dist/apps-publish-3wbhXfAg.js +0 -14
- package/dist/bridge-CmoKMMcG.js +0 -3
- package/dist/dev-C9VpI_AL.js +0 -4
- package/dist/executa-install-Bc1WRrWu.js +0 -7
- /package/dist/{dev-account-WXEjIE16.js → dev-account-DqEFCmVg.js} +0 -0
- /package/dist/{dev-app-cache-CP2P8SCZ.js → dev-app-cache-Dv1dZ_bw.js} +0 -0
- /package/dist/{executa-destructive-8iSnfmcn.js → executa-destructive-Bz7vWxEO.js} +0 -0
- /package/dist/{executa-init-BCqJUZXT.js → executa-init-D-kWINZ3.js} +0 -0
- /package/dist/{executa-reads-CjIr8BuD.js → executa-reads-BXDJWWw6.js} +0 -0
- /package/dist/{executa-register-CMmlKyKB.js → executa-register-D5kvSSz_.js} +0 -0
- /package/dist/{fixture-BJqc1IfX.js → fixture-BUKQYR5e.js} +0 -0
- /package/dist/{host_upload-sfo4UHlR.js → host_upload-BVzAqvX1.js} +0 -0
- /package/dist/{image-Bdi4Hu0m.js → image-BLPyUbGQ.js} +0 -0
- /package/dist/{login-CslsHbsq.js → login-DhgBgsfx.js} +0 -0
- /package/dist/{logout-B4_b9ZL0.js → logout-VYDkLYAx.js} +0 -0
- /package/dist/{sampling-Cc0qaj8a.js → sampling-XBIEYU4A.js} +0 -0
- /package/dist/{token-hGGfoge2.js → token-uedeaAy7.js} +0 -0
- /package/dist/{whoami-ChzwOaN2.js → whoami-C_x26b_k.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { setDeveloperHandle } from "./apps-
|
|
2
|
+
import { setDeveloperHandle } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { reportError, resolveClient } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { bold, dim, green, red } from "kleur/colors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { hostOf, mintAppSession, requireAccount, withCode } from "./dev-account-
|
|
2
|
+
import { hostOf, mintAppSession, requireAccount, withCode } from "./dev-account-DqEFCmVg.js";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { finalizeBundle, finalizeWorkingBundle, getBundle, initBundle, initWorkingBundle, uploadBundleFile, uploadWorkingBundleFile } from "./apps-
|
|
1
|
+
import { finalizeBundle, finalizeWorkingBundle, getBundle, initBundle, initWorkingBundle, uploadBundleFile, uploadWorkingBundleFile } from "./apps-DlVsVHQ5.js";
|
|
2
2
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
3
|
-
import { canonicalize } from "./executa-publish-
|
|
3
|
+
import { canonicalize } from "./executa-publish-Ah6J7jYd.js";
|
|
4
4
|
import { join, relative, sep } from "node:path";
|
|
5
5
|
import { readFileSync, readdirSync, statSync } from "node:fs";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
@@ -33,6 +33,35 @@ async function patchApp(client, appId, body) {
|
|
|
33
33
|
});
|
|
34
34
|
return r.data;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Upload a store-listing logo from local bytes. The server normalizes raster
|
|
38
|
+
* images to a 256² WebP and stores SVGs verbatim (after an active-content
|
|
39
|
+
* check), writes the resulting CDN URL onto the app row, and returns it.
|
|
40
|
+
*/
|
|
41
|
+
async function uploadAppLogo(client, appId, blob) {
|
|
42
|
+
const r = await client.request({
|
|
43
|
+
method: "POST",
|
|
44
|
+
path: `/api/v1/developer/apps/${appId}/logo`,
|
|
45
|
+
multipart: { fields: { file: blob } }
|
|
46
|
+
});
|
|
47
|
+
return r.data;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Upload a single store-listing screenshot from local bytes. The server
|
|
51
|
+
* normalizes raster images to WebP (aspect ratio preserved, long side capped),
|
|
52
|
+
* stores SVGs verbatim (after an active-content check), and returns the CDN
|
|
53
|
+
* URL. Unlike the logo, this does NOT mutate the app row — callers collect all
|
|
54
|
+
* resulting URLs (mixed with any passthrough externals) and persist the
|
|
55
|
+
* ordered list via `PATCH …/apps/{id}` `screenshots`.
|
|
56
|
+
*/
|
|
57
|
+
async function uploadAppScreenshot(client, appId, blob) {
|
|
58
|
+
const r = await client.request({
|
|
59
|
+
method: "POST",
|
|
60
|
+
path: `/api/v1/developer/apps/${appId}/screenshots`,
|
|
61
|
+
multipart: { fields: { file: blob } }
|
|
62
|
+
});
|
|
63
|
+
return r.data;
|
|
64
|
+
}
|
|
36
65
|
async function listVersions(client, appId) {
|
|
37
66
|
const r = await client.request({ path: `/api/v1/developer/apps/${appId}/versions` });
|
|
38
67
|
return Array.isArray(r.data) ? r.data : [];
|
|
@@ -234,4 +263,4 @@ async function finalizeWorkingBundle(client, appId, skipRemoteCheck = false) {
|
|
|
234
263
|
}
|
|
235
264
|
|
|
236
265
|
//#endregion
|
|
237
|
-
export { archiveApp, createApp, createVersion, cutWorkingDraft, deleteApp, deleteWorkingDraft, finalizeBundle, finalizeWorkingBundle, findAppBySlug, getApp, getAppGrants, getBundle, getWorkingDraft, initBundle, initWorkingBundle, listMyApps, listVersions, patchApp, publishVersion, setDeveloperHandle, submitForReview, unarchiveApp, unpublishApp, uploadBundleFile, uploadWorkingBundleFile, upsertWorkingDraft };
|
|
266
|
+
export { archiveApp, createApp, createVersion, cutWorkingDraft, deleteApp, deleteWorkingDraft, finalizeBundle, finalizeWorkingBundle, findAppBySlug, getApp, getAppGrants, getBundle, getWorkingDraft, initBundle, initWorkingBundle, listMyApps, listVersions, patchApp, publishVersion, setDeveloperHandle, submitForReview, unarchiveApp, unpublishApp, uploadAppLogo, uploadAppScreenshot, uploadBundleFile, uploadWorkingBundleFile, upsertWorkingDraft };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import "./nexus-root-BlPwOusj.js";
|
|
3
|
-
import { cutWorkingDraft } from "./apps-
|
|
3
|
+
import { cutWorkingDraft } from "./apps-DlVsVHQ5.js";
|
|
4
4
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
5
5
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
6
6
|
import { readExecutasLock, writeExecutasLock } from "./bundled-executas-_H1A9M50.js";
|
|
7
7
|
import "./executas-BhFed1B-.js";
|
|
8
8
|
import "./executa-cache-Do1D7xC0.js";
|
|
9
|
-
import "./executa-publish-
|
|
10
|
-
import "./manifest-
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
9
|
+
import "./executa-publish-Ah6J7jYd.js";
|
|
10
|
+
import "./manifest-DOMrcdCK.js";
|
|
11
|
+
import "./dev-Re6NyNDS.js";
|
|
12
|
+
import "./executa-install-BW9jjY7u.js";
|
|
13
13
|
import "./app-cache-BqnTkxUw.js";
|
|
14
|
-
import { resolveAppBySlugOrCache } from "./working-orchestration-
|
|
14
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-1jzRuk34.js";
|
|
15
15
|
import { resolve } from "node:path";
|
|
16
16
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
17
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { archiveApp, deleteApp, findAppBySlug, unarchiveApp, unpublishApp } from "./apps-
|
|
2
|
+
import { archiveApp, deleteApp, findAppBySlug, unarchiveApp, unpublishApp } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { ensureDestructiveAllowed } from "./confirm-BuT56E_B.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import "./nexus-root-BlPwOusj.js";
|
|
3
|
-
import { deleteWorkingDraft, getWorkingDraft } from "./apps-
|
|
3
|
+
import { deleteWorkingDraft, getWorkingDraft } from "./apps-DlVsVHQ5.js";
|
|
4
4
|
import "./client-D-_z1ALk.js";
|
|
5
5
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
6
6
|
import "./bundled-executas-_H1A9M50.js";
|
|
7
7
|
import "./executas-BhFed1B-.js";
|
|
8
8
|
import "./executa-cache-Do1D7xC0.js";
|
|
9
|
-
import "./executa-publish-
|
|
10
|
-
import "./manifest-
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
9
|
+
import "./executa-publish-Ah6J7jYd.js";
|
|
10
|
+
import "./manifest-DOMrcdCK.js";
|
|
11
|
+
import "./dev-Re6NyNDS.js";
|
|
12
|
+
import "./executa-install-BW9jjY7u.js";
|
|
13
13
|
import "./app-cache-BqnTkxUw.js";
|
|
14
|
-
import { resolveAppBySlugOrCache } from "./working-orchestration-
|
|
14
|
+
import { resolveAppBySlugOrCache } from "./working-orchestration-1jzRuk34.js";
|
|
15
15
|
import { dim, green, yellow } from "kleur/colors";
|
|
16
16
|
|
|
17
17
|
//#region src/commands/apps-discard.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { listMyApps } from "./apps-
|
|
2
|
+
import { listMyApps } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { bold, cyan, dim, green, magenta, red, yellow } from "kleur/colors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, getAppGrants } from "./apps-
|
|
2
|
+
import { findAppBySlug, getAppGrants } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { bold, cyan, dim } from "kleur/colors";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { createApp, createVersion, findAppBySlug, getApp } from "./apps-
|
|
2
|
+
import { createApp, createVersion, findAppBySlug, getApp } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { parseExecutaIdOverrides, readExecutasLock, substituteBundledRefs, validateBundledHandles, writeBundleToolIdSidecar, writeExecutasLock } from "./bundled-executas-_H1A9M50.js";
|
|
6
|
-
import { bumpVersion, bundleHash, manifestHash, rewriteVersion, runExecutaPublish } from "./executa-publish-
|
|
7
|
-
import { loadAppManifest } from "./manifest-
|
|
6
|
+
import { bumpVersion, bundleHash, manifestHash, rewriteVersion, runExecutaPublish } from "./executa-publish-Ah6J7jYd.js";
|
|
7
|
+
import { loadAppManifest } from "./manifest-DOMrcdCK.js";
|
|
8
8
|
import { appCacheMatches, readAppIdentity, writeAppIdentity } from "./app-cache-BqnTkxUw.js";
|
|
9
|
-
import {
|
|
9
|
+
import { syncAppListingMeta } from "./listing-meta-BlY7XMrw.js";
|
|
10
|
+
import { isExistingDir, uploadAppBundle } from "./app-bundle-upload-CqT9KUOl.js";
|
|
10
11
|
import { resolve } from "node:path";
|
|
11
12
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
12
13
|
|
|
@@ -228,6 +229,11 @@ async function runAppsPublish(opts) {
|
|
|
228
229
|
externalOrigins: Array.isArray(uiBundle.external_origins) ? uiBundle.external_origins : [],
|
|
229
230
|
log: opts.json ? void 0 : (m) => console.log(dim(m))
|
|
230
231
|
});
|
|
232
|
+
try {
|
|
233
|
+
await syncAppListingMeta(client, appId, manifest, { cwd });
|
|
234
|
+
} catch (err) {
|
|
235
|
+
if (!opts.json) console.log(yellow(`! listing metadata sync skipped: ${err.message}`));
|
|
236
|
+
}
|
|
231
237
|
const finalApp = await getApp(client, appId);
|
|
232
238
|
if (opts.json) {
|
|
233
239
|
console.log(JSON.stringify({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "./credentials-BTv2IfUZ.js";
|
|
2
|
+
import "./apps-DlVsVHQ5.js";
|
|
3
|
+
import "./client-D-_z1ALk.js";
|
|
4
|
+
import "./_lifecycle-shared-CUK2CE76.js";
|
|
5
|
+
import "./bundled-executas-_H1A9M50.js";
|
|
6
|
+
import "./executas-BhFed1B-.js";
|
|
7
|
+
import "./executa-cache-Do1D7xC0.js";
|
|
8
|
+
import "./executa-publish-Ah6J7jYd.js";
|
|
9
|
+
import "./manifest-DOMrcdCK.js";
|
|
10
|
+
import "./app-cache-BqnTkxUw.js";
|
|
11
|
+
import "./listing-meta-BlY7XMrw.js";
|
|
12
|
+
import "./app-bundle-upload-CqT9KUOl.js";
|
|
13
|
+
import { runAppsPublish } from "./apps-publish-BKqVsS1W.js";
|
|
14
|
+
|
|
15
|
+
export { runAppsPublish };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
2
|
import "./nexus-root-BlPwOusj.js";
|
|
3
|
-
import { getApp, getWorkingDraft, upsertWorkingDraft } from "./apps-
|
|
3
|
+
import { getApp, getWorkingDraft, upsertWorkingDraft } from "./apps-DlVsVHQ5.js";
|
|
4
4
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
5
5
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
6
6
|
import "./bundled-executas-_H1A9M50.js";
|
|
7
7
|
import "./executas-BhFed1B-.js";
|
|
8
8
|
import "./executa-cache-Do1D7xC0.js";
|
|
9
|
-
import { bumpVersion, bundleHash, manifestHash, rewriteVersion } from "./executa-publish-
|
|
10
|
-
import { loadAppManifest } from "./manifest-
|
|
11
|
-
import "./dev-
|
|
12
|
-
import "./executa-install-
|
|
9
|
+
import { bumpVersion, bundleHash, manifestHash, rewriteVersion } from "./executa-publish-Ah6J7jYd.js";
|
|
10
|
+
import { loadAppManifest } from "./manifest-DOMrcdCK.js";
|
|
11
|
+
import "./dev-Re6NyNDS.js";
|
|
12
|
+
import "./executa-install-BW9jjY7u.js";
|
|
13
13
|
import "./app-cache-BqnTkxUw.js";
|
|
14
|
-
import { installLocalBundledShims, resolveAppIdentity, resolveBundledExecutas } from "./working-orchestration-
|
|
15
|
-
import {
|
|
14
|
+
import { installLocalBundledShims, resolveAppIdentity, resolveBundledExecutas } from "./working-orchestration-1jzRuk34.js";
|
|
15
|
+
import { syncAppListingMeta } from "./listing-meta-BlY7XMrw.js";
|
|
16
|
+
import { isExistingDir, uploadWorkingBundle } from "./app-bundle-upload-CqT9KUOl.js";
|
|
16
17
|
import { resolve } from "node:path";
|
|
17
18
|
import { bold, cyan, dim, green, yellow } from "kleur/colors";
|
|
18
19
|
|
|
@@ -97,6 +98,11 @@ async function runAppsPush(opts) {
|
|
|
97
98
|
log: opts.json ? void 0 : (m) => console.log(dim(m))
|
|
98
99
|
});
|
|
99
100
|
}
|
|
101
|
+
try {
|
|
102
|
+
await syncAppListingMeta(client, appId, manifest, { cwd });
|
|
103
|
+
} catch (err) {
|
|
104
|
+
if (!opts.json) console.log(yellow(`! listing metadata sync skipped: ${err.message}`));
|
|
105
|
+
}
|
|
100
106
|
const finalApp = await getApp(client, appId);
|
|
101
107
|
const draft = await getWorkingDraft(client, appId);
|
|
102
108
|
if (opts.json) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, getApp, getBundle, listVersions, publishVersion } from "./apps-
|
|
2
|
+
import { findAppBySlug, getApp, getBundle, listVersions, publishVersion } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { readAppIdentity } from "./app-cache-BqnTkxUw.js";
|
|
@@ -58,7 +58,7 @@ async function runAppsRelease(opts) {
|
|
|
58
58
|
if (!target) {
|
|
59
59
|
if (opts.allowCreate) {
|
|
60
60
|
if (!opts.json) console.log(yellow(`version ${opts.version} not found remotely; running 'apps publish' first (--allow-create)…`));
|
|
61
|
-
const { runAppsPublish } = await import("./apps-publish-
|
|
61
|
+
const { runAppsPublish } = await import("./apps-publish-Djpw5cfG.js");
|
|
62
62
|
const code = await runAppsPublish({
|
|
63
63
|
cwd: opts.cwd,
|
|
64
64
|
account: opts.account,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, patchApp } from "./apps-
|
|
2
|
+
import { findAppBySlug, patchApp } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { reportError, resolveClient } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
|
-
import { loadAppManifest } from "./manifest-
|
|
5
|
+
import { loadAppManifest } from "./manifest-DOMrcdCK.js";
|
|
6
6
|
import { readAppIdentity, writeAppIdentity } from "./app-cache-BqnTkxUw.js";
|
|
7
7
|
import { writeFileSync } from "node:fs";
|
|
8
8
|
import { bold, dim, green, red, yellow } from "kleur/colors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, getApp, listVersions } from "./apps-
|
|
2
|
+
import { findAppBySlug, getApp, listVersions } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { bold, cyan, dim, green, red, yellow } from "kleur/colors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, getApp, submitForReview } from "./apps-
|
|
2
|
+
import { findAppBySlug, getApp, submitForReview } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { readAppIdentity } from "./app-cache-BqnTkxUw.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { canonicalHost } from "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, getApp
|
|
2
|
+
import { findAppBySlug, getApp } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
|
-
import { loadAppManifest } from "./manifest-
|
|
5
|
+
import { loadAppManifest } from "./manifest-DOMrcdCK.js";
|
|
6
6
|
import { readAppIdentity } from "./app-cache-BqnTkxUw.js";
|
|
7
|
+
import { syncAppListingMeta } from "./listing-meta-BlY7XMrw.js";
|
|
7
8
|
import { resolve } from "node:path";
|
|
8
9
|
import { bold, cyan, dim, green } from "kleur/colors";
|
|
9
10
|
|
|
@@ -27,27 +28,31 @@ async function runAppsSyncMeta(opts) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
if (appId === null) throw new CliError(`no app with slug "${manifest.slug}" on ${host} — run 'anna-app apps publish' first`, 5);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
const sync = await syncAppListingMeta(client, appId, manifest, {
|
|
32
|
+
cwd,
|
|
33
|
+
logoOverride: opts.logo,
|
|
34
|
+
dryRun: opts.dryRun
|
|
35
|
+
});
|
|
36
|
+
const meta = sync.meta;
|
|
36
37
|
if (opts.dryRun) {
|
|
38
|
+
const plan = {
|
|
39
|
+
host,
|
|
40
|
+
app_id: appId,
|
|
41
|
+
slug: serverSlug,
|
|
42
|
+
meta,
|
|
43
|
+
logo: sync.logoUpload?.source,
|
|
44
|
+
screenshots: sync.screenshotUploads?.map((s) => s.source),
|
|
45
|
+
dry_run: true
|
|
46
|
+
};
|
|
37
47
|
if (opts.json) {
|
|
38
|
-
console.log(JSON.stringify(
|
|
39
|
-
host,
|
|
40
|
-
app_id: appId,
|
|
41
|
-
slug: serverSlug,
|
|
42
|
-
meta,
|
|
43
|
-
dry_run: true
|
|
44
|
-
}, null, 2));
|
|
48
|
+
console.log(JSON.stringify(plan, null, 2));
|
|
45
49
|
return 0;
|
|
46
50
|
}
|
|
47
51
|
console.log(`[dry-run] would PATCH apps/${serverSlug} metadata: ` + JSON.stringify(meta));
|
|
52
|
+
if (sync.logoUpload) console.log(`[dry-run] would upload logo from ${sync.logoUpload.source}`);
|
|
53
|
+
for (const shot of sync.screenshotUploads ?? []) console.log(`[dry-run] would upload screenshot from ${shot.source}`);
|
|
48
54
|
return 0;
|
|
49
55
|
}
|
|
50
|
-
await patchApp(client, appId, meta);
|
|
51
56
|
const finalApp = await getApp(client, appId);
|
|
52
57
|
if (opts.json) {
|
|
53
58
|
console.log(JSON.stringify({
|
|
@@ -55,6 +60,8 @@ async function runAppsSyncMeta(opts) {
|
|
|
55
60
|
app_id: appId,
|
|
56
61
|
slug: serverSlug,
|
|
57
62
|
meta,
|
|
63
|
+
logo_url: sync.logoUpload?.logo_url,
|
|
64
|
+
screenshot_urls: sync.screenshotUploads?.map((s) => s.screenshot_url),
|
|
58
65
|
status: finalApp.status
|
|
59
66
|
}, null, 2));
|
|
60
67
|
return 0;
|
|
@@ -63,6 +70,8 @@ async function runAppsSyncMeta(opts) {
|
|
|
63
70
|
console.log(` ${dim("name :")} ${manifest.name}`);
|
|
64
71
|
if (manifest.category) console.log(` ${dim("category :")} ${manifest.category}`);
|
|
65
72
|
if (manifest.tagline) console.log(` ${dim("tagline :")} ${manifest.tagline}`);
|
|
73
|
+
if (sync.logoUpload?.logo_url) console.log(` ${dim("logo :")} ${sync.logoUpload.logo_url}`);
|
|
74
|
+
if (sync.screenshotUploads && sync.screenshotUploads.length > 0) console.log(` ${dim("shots :")} ${sync.screenshotUploads.length} uploaded`);
|
|
66
75
|
console.log(bold(cyan(`status: ${finalApp.status}`)));
|
|
67
76
|
return 0;
|
|
68
77
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./credentials-BTv2IfUZ.js";
|
|
2
|
-
import { findAppBySlug, listVersions } from "./apps-
|
|
2
|
+
import { findAppBySlug, listVersions } from "./apps-DlVsVHQ5.js";
|
|
3
3
|
import { CliError } from "./client-D-_z1ALk.js";
|
|
4
4
|
import { resolveClient, withErrorHandling } from "./_lifecycle-shared-CUK2CE76.js";
|
|
5
5
|
import { bold, cyan, dim, green } from "kleur/colors";
|
|
@@ -9,7 +9,7 @@ import { createInterface } from "node:readline";
|
|
|
9
9
|
* `uvx <pkg>@<version>` so end users always run the dispatcher version
|
|
10
10
|
* the CLI was tested against.
|
|
11
11
|
*/
|
|
12
|
-
const PINNED_RUNTIME_VERSION = "0.2.
|
|
12
|
+
const PINNED_RUNTIME_VERSION = "0.2.0a11";
|
|
13
13
|
/**
|
|
14
14
|
* Throwable from a {@link RequestHandler} to send a structured JSON-RPC
|
|
15
15
|
* error back to the python bridge with a stable string ``code`` (e.g.
|