@vibedropio/publisher 0.22.7 → 0.22.8
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-publisher",
|
|
3
3
|
"displayName": "Git Publisher",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.8",
|
|
5
5
|
"description": "Publish an app folder to the platform and keep it updated (\"publish my app\", \"update my app\", \"fetch the engineered version\").",
|
|
6
6
|
"author": { "name": "VibeDrop" },
|
|
7
7
|
"keywords": ["git", "publish", "deploy", "serverless"]
|
package/dist/publisher.cjs
CHANGED
|
@@ -23767,7 +23767,7 @@ async function discoverEndpoint(portal, fetchImpl = fetch) {
|
|
|
23767
23767
|
}
|
|
23768
23768
|
const endpoint = body?.publishingEndpoint;
|
|
23769
23769
|
if (endpoint === null || endpoint === void 0) {
|
|
23770
|
-
throw new PublisherError("LOCAL_STATE", `${portal} is not set up for publishing; ask
|
|
23770
|
+
throw new PublisherError("LOCAL_STATE", `${portal} is not set up for publishing; ask the administrator of ${portal}, or pass --endpoint`);
|
|
23771
23771
|
}
|
|
23772
23772
|
if (typeof endpoint !== "string" || endpoint.trim() === "") {
|
|
23773
23773
|
throw new PublisherError("UNAVAILABLE", `${portal} answered with something this version does not understand`, { isRetryable: false });
|
|
@@ -23777,7 +23777,7 @@ async function discoverEndpoint(portal, fetchImpl = fetch) {
|
|
|
23777
23777
|
|
|
23778
23778
|
// src/terminal/limited.ts
|
|
23779
23779
|
var REFUSED = /* @__PURE__ */ new Set(["REF_FORBIDDEN", "FORBIDDEN"]);
|
|
23780
|
-
var ASK = "Ask
|
|
23780
|
+
var ASK = "Ask the owner or an admin of the organization.";
|
|
23781
23781
|
var Limited = class _Limited {
|
|
23782
23782
|
/** The lines for a refusal with `code` and `details`, or null when it is not a permission's or names no reason and no maker. */
|
|
23783
23783
|
static hint(code, details) {
|
|
@@ -24555,7 +24555,10 @@ async function repositoryForInit(p, endpoint, name, opts = {}) {
|
|
|
24555
24555
|
throw new PublisherError("UNAVAILABLE", `could not confirm that ${portal} publishes to ${endpoint}; run init again`, { isRetryable: true });
|
|
24556
24556
|
}
|
|
24557
24557
|
if (!confirmed2.terminal.includes(APPLICATION_CREATION)) {
|
|
24558
|
-
throw new PublisherError(
|
|
24558
|
+
throw new PublisherError(
|
|
24559
|
+
"UNAVAILABLE",
|
|
24560
|
+
`${portal} cannot make an application from a terminal yet, and a repository needs one; ask the administrator of ${portal} to update it`
|
|
24561
|
+
);
|
|
24559
24562
|
}
|
|
24560
24563
|
const made = await p.createApplication({ portal, name, ...opts.cell === void 0 ? {} : { cell: opts.cell } });
|
|
24561
24564
|
return { repoId: made.repository.repoId, appId: made.appId, placement: made.placement };
|
|
@@ -24571,7 +24574,7 @@ function placementWords(placement) {
|
|
|
24571
24574
|
case "must-pick":
|
|
24572
24575
|
return `this app has no cell yet, so its first publication stops. You can pick: ${placement.offered.join(", ")}. Open the app in the portal and pick one on its Cell tab`;
|
|
24573
24576
|
case "no-cell":
|
|
24574
|
-
return "this app has no cell yet, because you cannot use that cell or any cell.
|
|
24577
|
+
return "this app has no cell yet, because you cannot use that cell or any cell. The owner or an admin can give you one";
|
|
24575
24578
|
case "unavailable":
|
|
24576
24579
|
return "where this app runs could not be asked now. Its first publication asks again";
|
|
24577
24580
|
}
|
|
@@ -24840,8 +24843,8 @@ async function portalAt(endpoint, opts) {
|
|
|
24840
24843
|
}
|
|
24841
24844
|
var REFUSED2 = {
|
|
24842
24845
|
read: "the portal will not show this sign-in the preparation in this organization",
|
|
24843
|
-
answer: "the portal will not let this sign-in answer for this organization (
|
|
24844
|
-
retry: "the portal will not let this sign-in try it again in this organization (
|
|
24846
|
+
answer: "the portal will not let this sign-in answer for this organization (the owner or an admin can, or the app's creator for the first preparation after an adoption)",
|
|
24847
|
+
retry: "the portal will not let this sign-in try it again in this organization (the owner or an admin can, or the app's creator, except for the first preparation after an adoption)"
|
|
24845
24848
|
};
|
|
24846
24849
|
function shown(portal, r, refused) {
|
|
24847
24850
|
switch (r.kind) {
|
|
@@ -25407,7 +25410,7 @@ Usage:
|
|
|
25407
25410
|
nothing published and nothing lost. No git needed
|
|
25408
25411
|
[--mark-conflicts] on a conflict, put both versions in each file, marked,
|
|
25409
25412
|
to edit; the next sync records and publishes the edit
|
|
25410
|
-
[--no-wait]
|
|
25413
|
+
[--no-wait] do not follow the app going live afterwards (received ->
|
|
25411
25414
|
checked -> going live -> live, up to 15 minutes)
|
|
25412
25415
|
[--timeout <seconds>] follow for at most this long; if it is still going, the
|
|
25413
25416
|
result's next.command picks it up
|
|
@@ -25415,7 +25418,7 @@ Usage:
|
|
|
25415
25418
|
publisher follow [dir] --publication <id> follow an accepted publication's run where a sync left it
|
|
25416
25419
|
[--timeout <seconds>] [--until-change] --until-change (sync too): return at the next step, to tell it
|
|
25417
25420
|
publisher question [dir] [--repo <id>] the question the app's preparation waits on, if any,
|
|
25418
|
-
with each option's value (
|
|
25421
|
+
with each option's value (the owner or an admin answers it, or
|
|
25419
25422
|
the app's creator for the first one after an adoption)
|
|
25420
25423
|
publisher answer <question>=<value>... [--repo <id>] answer it from this folder; a value that is not one of
|
|
25421
25424
|
the question's options is refused before anything is sent
|
|
@@ -25429,14 +25432,17 @@ Usage:
|
|
|
25429
25432
|
publisher suggestions what colleagues suggested for this folder's app, still open
|
|
25430
25433
|
publisher suggestion done|decline <id> [--run <id>] close one; sync --answers <id> closes it with that publication
|
|
25431
25434
|
publisher share members|emails|link [--add <emails>] [--remove <emails>]
|
|
25432
|
-
who can open this folder's app (a new app opens only to you
|
|
25433
|
-
the admins
|
|
25435
|
+
who can open this folder's app (a new app opens only to you, the
|
|
25436
|
+
owner, the admins and the people that a grant gives it to, until
|
|
25437
|
+
you share it); new invitees get the link by mail
|
|
25434
25438
|
publisher columns [<id>] the column names of connected data, for the code that reads it;
|
|
25435
|
-
its first rows only to
|
|
25439
|
+
its first rows only to the owner or an admin, where the
|
|
25440
|
+
owner or an admin allowed that for the data
|
|
25436
25441
|
publisher data add <sheet link> [--app <app>] [--name <name>]
|
|
25437
25442
|
connect a Google sheet anyone with the link can view, and
|
|
25438
|
-
turn it on for that app (an app you made, or any as
|
|
25439
|
-
|
|
25443
|
+
turn it on for that app (an app you made, or any app as the
|
|
25444
|
+
owner or an admin); only you, the owner and the admins can use
|
|
25445
|
+
new data until a grant gives access
|
|
25440
25446
|
publisher data remove <id> --app <app> that app stops using that data; the organization keeps it
|
|
25441
25447
|
publisher merge-check [dir] --ours <ref> --theirs <ref> [--apply]
|
|
25442
25448
|
publisher info [dir] repository state as seen by the server
|