@minnovate/shadow-publisher 0.12.2 → 0.13.0

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.12.2",
4
+ "version": "0.13.0",
5
5
  "description": "Publish an app folder's Git history to the serverless Git publishing backend and keep it updated (\"publish my app\", \"update my app\", \"fetch the engineered version\").",
6
6
  "author": { "name": "git-publisher project" },
7
7
  "keywords": ["git", "publish", "deploy", "serverless"]
@@ -52,6 +52,7 @@ publisher go-back <version> --json # ask the person first; puts that vers
52
52
  publisher suggestions --json # what colleagues asked for, still open
53
53
  publisher suggestion decline <id> --json # when the person does not want one
54
54
  publisher share invited --add ann@example.com --json # who can open it
55
+ publisher columns <id> --json # the column names of connected data, before code reads it
55
56
  ```
56
57
 
57
58
  The portal writes `next` for an assistant in the chat, so it can name a connector tool. At a
@@ -66,6 +67,7 @@ terminal, do what it says with the command that does the same thing:
66
67
  | `resolve_suggestion` | `publisher suggestion done\|decline <id> --json` |
67
68
  | `share_app` | `publisher share <access> --json` |
68
69
  | `list_apps` | `publisher list --json` |
70
+ | `data_columns` | `publisher columns <id> --json` |
69
71
 
70
72
  `<publication>` is the `publication` that `go-back` or `start` answered.
71
73
 
@@ -3094,29 +3094,28 @@ var RepositoryFilesResponse = object({
3094
3094
  tooLarge: boolean2()
3095
3095
  });
3096
3096
  var FileShown = _enum(["text", "binary", "too-large"]);
3097
+ var ListedEntry = object({
3098
+ path: FilePath,
3099
+ /** bytes; null for a submodule */
3100
+ bytes: nullable(int()),
3101
+ kind: _enum(["file", "symlink", "submodule"]),
3102
+ /** null for a symlink or a submodule */
3103
+ shown: nullable(FileShown)
3104
+ });
3105
+ var FileListing = object({ commit: nullable(Oid), entries: array(ListedEntry) });
3097
3106
  var RepositoryFileListResponse = object({
3098
3107
  commit: nullable(Oid),
3099
- entries: array(
3100
- object({
3101
- path: FilePath,
3102
- /** bytes; null for a submodule */
3103
- bytes: nullable(int()),
3104
- kind: _enum(["file", "symlink", "submodule"]),
3105
- /** null for a symlink or a submodule */
3106
- shown: nullable(FileShown)
3107
- })
3108
- )
3108
+ entries: array(extend2(ListedEntry, { url: nullable(string2()) })),
3109
+ linksExpireAt: nullable(string2())
3109
3110
  });
3110
- var RepositoryFileResponse = object({ path: FilePath, bytes: int(), shown: FileShown, text: nullable(string2()) });
3111
3111
  var FileReadJob = object({
3112
3112
  repoId: RepoId,
3113
3113
  at: nullable(Oid),
3114
- read: union([object({ kind: literal("files") }), object({ kind: literal("list") }), object({ kind: literal("file"), path: FilePath })])
3114
+ read: union([object({ kind: literal("files") }), object({ kind: literal("list") })])
3115
3115
  });
3116
3116
  var FileReadResult = union([
3117
3117
  object({ kind: literal("files"), answer: RepositoryFilesResponse }),
3118
- object({ kind: literal("list"), answer: RepositoryFileListResponse }),
3119
- object({ kind: literal("file"), answer: RepositoryFileResponse }),
3118
+ object({ kind: literal("list"), answer: FileListing }),
3120
3119
  object({ kind: literal("refused"), code: _enum(ERROR_CODES), message: string2() })
3121
3120
  ]);
3122
3121
  var DownloadDescriptor = object({
@@ -8060,6 +8059,10 @@ var suggestion = {
8060
8059
  return run(inv, dir, "resolve_suggestion", { app, suggestion: id, status: status2, ...runId === void 0 ? {} : { runId } });
8061
8060
  }
8062
8061
  };
8062
+ var columns = {
8063
+ git: false,
8064
+ run: (inv) => run(inv, void 0, "data_columns", inv.cmd[1] === void 0 ? {} : { id: inv.cmd[1] })
8065
+ };
8063
8066
  var share = {
8064
8067
  git: false,
8065
8068
  async run(inv) {
@@ -8428,6 +8431,8 @@ Usage:
8428
8431
  publisher suggestion done|decline <id> [--run <id>] close one; sync --answers <id> closes it with that publication
8429
8432
  publisher share organisation|invited|anyone-with-link [--add <emails>] [--remove <emails>]
8430
8433
  who can open this folder's app; new invitees get the link by mail
8434
+ publisher columns [<id>] the column names of connected data, for the code that reads it;
8435
+ its first rows only to an owner or admin who allowed that
8431
8436
  publisher merge-check [dir] --ours <ref> --theirs <ref> [--apply]
8432
8437
  publisher info [dir] repository state as seen by the server
8433
8438
  publisher doctor environment check (node, git, credentials, association)
@@ -8478,7 +8483,8 @@ var COMMANDS = /* @__PURE__ */ new Map([
8478
8483
  ["go-back", goBack],
8479
8484
  ["suggestions", suggestions],
8480
8485
  ["suggestion", suggestion],
8481
- ["share", share]
8486
+ ["share", share],
8487
+ ["columns", columns]
8482
8488
  ]);
8483
8489
  async function main(argv) {
8484
8490
  const inv = new Invocation(parseArgs(argv));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minnovate/shadow-publisher",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "description": "publisher: publish an app's Git history to the serverless Git backend",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",