@vibedropio/publisher 0.22.3 → 0.22.5
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.5",
|
|
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"]
|
|
@@ -185,7 +185,8 @@ following, for when the person asks not to wait.
|
|
|
185
185
|
- `"published"` → the app was published. Mention what was recorded (`recorded.committed`) and, if
|
|
186
186
|
`recorded.excluded` is not empty, what was left out and why. Then read `progress` (null with
|
|
187
187
|
`--no-wait`) and pass on its `hint`:
|
|
188
|
-
- `kind: "settled"` with `ending` `"live"`: the app is live.
|
|
188
|
+
- `kind: "settled"` with `ending` `"live"`: the app is live. A new app opens only to the person
|
|
189
|
+
and the admins until it is shared: offer `publisher share` (the `sync-app` skill). `"not-deployed"`: published and
|
|
189
190
|
checked, and this organization does not deploy automatically. `"failed"` with `findings`: it
|
|
190
191
|
did not pass its checks, and `findings` says why — fix them as "When the checks find something"
|
|
191
192
|
below says. `"failed"` without `findings`: it stopped at `failedAt`; the portal says why — do
|
|
@@ -75,7 +75,7 @@ publisher history --json # the versions that went live, newest
|
|
|
75
75
|
publisher go-back <version> --json # ask the person first; puts that version's code back
|
|
76
76
|
publisher suggestions --json # what colleagues asked for, still open
|
|
77
77
|
publisher suggestion decline <id> --json # when the person does not want one
|
|
78
|
-
publisher share emails --add ann@example.com --json # who can open it
|
|
78
|
+
publisher share emails --add ann@example.com --json # who can open it: a new app opens only to its maker and the admins until it is shared
|
|
79
79
|
publisher columns <id> --json # the column names of connected data, before code reads it
|
|
80
80
|
publisher data add <sheet link> --app <app> --name "<name>" --json # a Google sheet the app reads; new data is closed until somebody gives access
|
|
81
81
|
publisher data remove <id> --app <app> --json # the app stops reading that data
|
|
@@ -91,7 +91,7 @@ terminal, do what it says with the command that does the same thing:
|
|
|
91
91
|
| `app_history` / `go_back` | `publisher history --json` / `publisher go-back <version> --json` |
|
|
92
92
|
| `list_starters` / `use_starter` | `publisher starters` / `publisher start <starter>` |
|
|
93
93
|
| `resolve_suggestion` | `publisher suggestion done\|decline <id> --json` |
|
|
94
|
-
| `share_app` | `publisher share <
|
|
94
|
+
| `share_app` | `publisher share <members\|emails\|link> --json` |
|
|
95
95
|
| `list_apps` | `publisher list --json` |
|
|
96
96
|
| `data_columns` | `publisher columns <id> --json` |
|
|
97
97
|
| `connect_data_source` | `publisher data add <sheet link> --app <app> --name "<name>" --json` |
|
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
|
|
@@ -25028,12 +25028,12 @@ var columns = {
|
|
|
25028
25028
|
git: false,
|
|
25029
25029
|
run: (inv) => run(inv, void 0, "data_columns", inv.cmd[1] === void 0 ? {} : { id: inv.cmd[1] })
|
|
25030
25030
|
};
|
|
25031
|
-
var
|
|
25031
|
+
var SHARE_WORDS = ["members", "emails", "link"];
|
|
25032
25032
|
function shareArgs(cmd, app, add, remove) {
|
|
25033
|
-
return { app,
|
|
25033
|
+
return { app, who: shareWordOf(cmd), add, remove };
|
|
25034
25034
|
}
|
|
25035
|
-
function
|
|
25036
|
-
const named =
|
|
25035
|
+
function shareWordOf(cmd) {
|
|
25036
|
+
const named = SHARE_WORDS.find((word) => word === cmd[1]);
|
|
25037
25037
|
if (named === void 0) {
|
|
25038
25038
|
throw new PublisherError("INVALID_REQUEST", "share takes members, emails or link");
|
|
25039
25039
|
}
|
|
@@ -25042,7 +25042,7 @@ function appRuleOf(cmd) {
|
|
|
25042
25042
|
var share = {
|
|
25043
25043
|
git: false,
|
|
25044
25044
|
async run(inv) {
|
|
25045
|
-
|
|
25045
|
+
shareWordOf(inv.cmd);
|
|
25046
25046
|
const { dir, app } = await folderApp(inv);
|
|
25047
25047
|
return run(inv, dir, "share_app", shareArgs(inv.cmd, app, listFlag(inv, "add"), listFlag(inv, "remove")));
|
|
25048
25048
|
}
|
|
@@ -25429,13 +25429,14 @@ Usage:
|
|
|
25429
25429
|
publisher suggestions what colleagues suggested for this folder's app, still open
|
|
25430
25430
|
publisher suggestion done|decline <id> [--run <id>] close one; sync --answers <id> closes it with that publication
|
|
25431
25431
|
publisher share members|emails|link [--add <emails>] [--remove <emails>]
|
|
25432
|
-
who can open this folder's app
|
|
25432
|
+
who can open this folder's app (a new app opens only to you and
|
|
25433
|
+
the admins until it is shared); new invitees get the link by mail
|
|
25433
25434
|
publisher columns [<id>] the column names of connected data, for the code that reads it;
|
|
25434
25435
|
its first rows only to an owner or admin who allowed that
|
|
25435
25436
|
publisher data add <sheet link> [--app <app>] [--name <name>]
|
|
25436
25437
|
connect a Google sheet anyone with the link can view, and
|
|
25437
25438
|
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
|
|
25439
|
+
only you and an owner or admin can use new data until a person gives access
|
|
25439
25440
|
publisher data remove <id> --app <app> that app stops using that data; the organization keeps it
|
|
25440
25441
|
publisher merge-check [dir] --ours <ref> --theirs <ref> [--apply]
|
|
25441
25442
|
publisher info [dir] repository state as seen by the server
|