@vibedropio/publisher 0.22.2 → 0.22.4
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.4",
|
|
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"]
|
|
@@ -116,6 +116,12 @@ you write the app, the platform prepares its hosting, so the first publication g
|
|
|
116
116
|
seconds, not in a minute. The folder must exist, and it can be empty. Its output names the app
|
|
117
117
|
under `appId`. Then write the app into that folder, and publish it with step 3, without `--name`.
|
|
118
118
|
|
|
119
|
+
`placement` in the output says where the app runs. When `placement.refused` is `"must-pick"`, the
|
|
120
|
+
first publication stops until the person picks one of `placement.offered` on the Cell tab of the
|
|
121
|
+
app in the portal. When it is `"no-cell"`, an owner or admin can give them a cell. Tell them, and
|
|
122
|
+
do not run `init` again: that makes a second app. When the person names a cell before you make the
|
|
123
|
+
app, add `--cell <cell>` to `init`.
|
|
124
|
+
|
|
119
125
|
If the app is already written and was never published, `init` gains nothing. Run step 3 in the
|
|
120
126
|
app folder and add `--name "<app name>"`: that one `sync` makes the app, and then publishes it.
|
|
121
127
|
|
package/dist/publisher.cjs
CHANGED
|
@@ -21840,10 +21840,10 @@ function featureOffSay(body) {
|
|
|
21840
21840
|
}
|
|
21841
21841
|
function featureOffWords(feature) {
|
|
21842
21842
|
if (feature === TERMINAL_FEATURE) {
|
|
21843
|
-
return "The publisher command is not available for this organization, and
|
|
21843
|
+
return "The publisher command is not available for this organization, and no one in the organization can turn it on.";
|
|
21844
21844
|
}
|
|
21845
21845
|
const named = typeof feature === "string" && feature !== "" ? ` (the feature "${feature}")` : "";
|
|
21846
|
-
return `This is not available for this organization${named}, and
|
|
21846
|
+
return `This is not available for this organization${named}, and no one in the organization can turn it on.`;
|
|
21847
21847
|
}
|
|
21848
21848
|
|
|
21849
21849
|
// ../client/src/clients/applications/refusal.ts
|
|
@@ -22969,7 +22969,7 @@ function publishNext(rejection, published2) {
|
|
|
22969
22969
|
const name = ref?.replace(/^refs\/heads\//, "") ?? "main";
|
|
22970
22970
|
return {
|
|
22971
22971
|
action: "sync-and-publish",
|
|
22972
|
-
ask: `${name} moved since your last fetch:
|
|
22972
|
+
ask: `${name} moved since your last fetch: another person published to it. Sync brings those changes in without rewriting yours, and publishes the result.`,
|
|
22973
22973
|
command: `publisher sync`
|
|
22974
22974
|
};
|
|
22975
22975
|
}
|
|
@@ -23825,8 +23825,8 @@ async function portalFor(endpoint, route, opts = {}) {
|
|
|
23825
23825
|
// src/terminal/progress.ts
|
|
23826
23826
|
var SAYS = {
|
|
23827
23827
|
received: { doing: "The platform is picking up your changes", done: "The platform has your changes", still: "still picking up your changes" },
|
|
23828
|
-
running: { doing: "checking
|
|
23829
|
-
deploying: { doing: "putting the new version in place; the current
|
|
23828
|
+
running: { doing: "checking your app", done: "the checks passed", still: "still checking" },
|
|
23829
|
+
deploying: { doing: "putting the new version in place; the current version remains available", done: "the new version is in place", still: "still putting it in place" },
|
|
23830
23830
|
live: { doing: "going live", done: "everyone sees the new version", still: "still going live" }
|
|
23831
23831
|
};
|
|
23832
23832
|
var HEARTBEAT_MS = 3e4;
|
|
@@ -23950,7 +23950,7 @@ async function followPublication(p, endpoint, o, opts) {
|
|
|
23950
23950
|
return {
|
|
23951
23951
|
...outcome2,
|
|
23952
23952
|
portal,
|
|
23953
|
-
hint: `
|
|
23953
|
+
hint: `This version did not pass its checks (${findings.length === 1 ? "one finding" : `${findings.length} findings`}). Fix each finding in the app folder, then run next.command to publish again.`,
|
|
23954
23954
|
findings,
|
|
23955
23955
|
next: { action: "fix", command: `publisher sync ${dir} --until-change --json` }
|
|
23956
23956
|
};
|
|
@@ -24015,7 +24015,7 @@ function inPortal(portal, lead, verb) {
|
|
|
24015
24015
|
function progressHint(r, portal, answerable = false) {
|
|
24016
24016
|
switch (r.kind) {
|
|
24017
24017
|
case "waiting":
|
|
24018
|
-
return answerable ? "
|
|
24018
|
+
return answerable ? "This version is waiting for an answer from you. Run publisher question to see it." : inPortal(portal, "This version is waiting for an answer from you.", "Answer it");
|
|
24019
24019
|
case "settled":
|
|
24020
24020
|
switch (r.ending) {
|
|
24021
24021
|
case "live":
|
|
@@ -24023,7 +24023,7 @@ function progressHint(r, portal, answerable = false) {
|
|
|
24023
24023
|
case "not-deployed":
|
|
24024
24024
|
return "Published and checked; this organization does not deploy automatically.";
|
|
24025
24025
|
case "failed":
|
|
24026
|
-
return inPortal(portal, `
|
|
24026
|
+
return inPortal(portal, `This version stopped at "${r.failedAt ?? "a step"}".${r.reason === null ? "" : ` ${r.reason}`}`, r.reason === null ? "See why" : "See it");
|
|
24027
24027
|
case "stopped":
|
|
24028
24028
|
return "A newer publication replaced this one before it went live.";
|
|
24029
24029
|
}
|
|
@@ -24033,7 +24033,7 @@ function progressHint(r, portal, answerable = false) {
|
|
|
24033
24033
|
return `Now: ${now?.word ?? "received"}. Run next.command to wait for the next step.`;
|
|
24034
24034
|
}
|
|
24035
24035
|
case "timed-out":
|
|
24036
|
-
return inPortal(portal, `
|
|
24036
|
+
return inPortal(portal, `In progress${r.lastError === null ? "" : ` (${r.lastError})`}; run next.command to continue following.`, "Or follow it");
|
|
24037
24037
|
case "unavailable":
|
|
24038
24038
|
return inPortal(portal, "Published. This portal cannot show progress in the terminal yet.", "Follow it");
|
|
24039
24039
|
case "unauthorized":
|
|
@@ -24806,7 +24806,7 @@ async function retryAt(p, endpoint, repoId, opts = {}) {
|
|
|
24806
24806
|
throw new PublisherError("LOCAL_STATE", "this version cannot be tried again: only one that stopped because of a fault on our side can, three times at most");
|
|
24807
24807
|
}
|
|
24808
24808
|
const tried = shown(read2.portal, await p.retryPreparation({ portal: read2.portal, repoId, id: read2.preparation.id, revision: read2.preparation.revision }), REFUSED2.retry);
|
|
24809
|
-
return tried.kind === "view" ? { ...tried, hint: "
|
|
24809
|
+
return tried.kind === "view" ? { ...tried, hint: "This version is being tried again. Run: publisher follow, or watch it in the portal." } : tried;
|
|
24810
24810
|
}
|
|
24811
24811
|
function parseSpecs(specs) {
|
|
24812
24812
|
if (specs.length === 0) {
|
|
@@ -24870,7 +24870,7 @@ function hintFor(view) {
|
|
|
24870
24870
|
return "Nothing is waiting for an answer.";
|
|
24871
24871
|
}
|
|
24872
24872
|
const how = view.questions.map((q) => `${q.id}=<${q.options.map((o) => o.value).join("|")}>`).join(" ");
|
|
24873
|
-
return `
|
|
24873
|
+
return `This version is waiting for your answer. Run: publisher answer ${how}`;
|
|
24874
24874
|
}
|
|
24875
24875
|
|
|
24876
24876
|
// src/commands/repository.ts
|
|
@@ -25435,7 +25435,7 @@ Usage:
|
|
|
25435
25435
|
publisher data add <sheet link> [--app <app>] [--name <name>]
|
|
25436
25436
|
connect a Google sheet anyone with the link can view, and
|
|
25437
25437
|
turn it on for that app (an app you made, or any as owner or admin);
|
|
25438
|
-
only you and an owner or admin can use new data until
|
|
25438
|
+
only you and an owner or admin can use new data until a person gives access
|
|
25439
25439
|
publisher data remove <id> --app <app> that app stops using that data; the organization keeps it
|
|
25440
25440
|
publisher merge-check [dir] --ours <ref> --theirs <ref> [--apply]
|
|
25441
25441
|
publisher info [dir] repository state as seen by the server
|