@uipath/uipath-extensions-sdk 0.1.20 → 0.1.22

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/README.md CHANGED
@@ -1,20 +1,22 @@
1
1
  # @uipath/uipath-extensions-sdk
2
2
 
3
- The author-facing SDK for community Maestro nodes. It holds the `new`, `validate`, `pack`, `upload` and `submit` commands. The template loader and the manifest builder live in `@uipath/uipath-extensions-gates`, and this package re-exports them. The `./lib` export (see Library) runs `validate`, `upload` and `submit` from code, and the `uipath-extensions` command calls it for those three. The `release` command is removed.
3
+ The author-facing SDK for community Maestro nodes. It holds the `new`, `init`, `validate`, `pack`, `upload` and `submit` commands. The template loader and the manifest builder live in `@uipath/uipath-extensions-gates`, and this package re-exports them. The `./lib` export (see Library) runs `init`, `validate`, `upload` and `submit` from code, and the `uipath-extensions` command calls it for those four. The `release` command is removed.
4
4
 
5
5
  ## Commands
6
6
 
7
- The `uipath-extensions` command is a placeholder name until the final name is chosen. None of the commands logs in to UiPath.
8
- - `uipath-extensions new <publisher/name> [--dir <parent dir>] [--skip-install]` runs `uip function new <name> --language ts` in the parent directory (the current one by default). It keeps the layout `uip` writes: the functions stay in `functions/`, and `tsconfig.json` and the `uipath.json` function entries are not changed. The Maestro files go in `maestro/`. It removes `method` and `path` from every `defineFunction` call, sets the `name` in `package.json` to the package id `uipath-extensions.<publisher>.<name>` and the `version` to `0.1.0`, deletes the `.env.example` that `uip` writes (`submit` refuses it, and it holds credential placeholders), adds `tests` to `packOptions.directoriesExcluded` in `uipath.json` (`submit` accepts a `tests` folder, but the package gate does not accept it inside the package), keeps `@uipath/coded-functions-js-sdk` in `devDependencies`, adds `@types/node` to `devDependencies` (the connection helper reads `process.env`, so `validate` needs the Node types), writes the script `pack: uip function pack` and no `validate` script, replaces `functions/hello.ts` with a starter function whose input and output are JSON Schema literals, and writes the template `uipath-extensions.json` at the project root, the connection helper `maestro/connection.ts` and a starter fixture `fixtures/example.json` (`{ "operation": "run", "input": { "name": "World" } }`, a placeholder to replace with real cases). The project does not depend on this SDK, so `pack: uip function pack` is the only script. It then runs `npm install --include=dev` in the new project, so the type packages are ready for `validate` even when `NODE_ENV=production` or `omit=dev` is set. `--skip-install` leaves that step out, and `new` then prints `npm install` as the first of the next steps. If that `npm install` fails, `new` keeps the project, prints the npm error and exits with code 1. The starter template has no `repository`, because the node folder goes to the index repo as one pull request and no author repo exists. It writes `author` with the publisher as the name, in title case, and `https://github.com/<publisher>` as the url, for the author to correct. If any step before that `npm install` fails after `uip` ran, `new` deletes the project directory it created. `uip function new` runs its own install first, before the SDK is added, and it has no option to skip that install. When that install fails, `uip` removes the project and `new` reports the `uip` error.
9
- - `uipath-extensions validate [--dir <project dir>]` calls the library `validate`. It works on a temporary copy of the project folder, so it writes nothing to the folder and leaves no `.uipath` there. It applies the adopt plan (see Adopt) to that copy in memory, with schema 2 and no call to `gh` or the index. It loads `uipath-extensions.json`, packs the copy and runs all 21 gates in local mode on the completed manifest, which it builds in memory from the template and the package. When the project is not adopted it prints a note that says so. A `package.json` name that is not a package id gets the placeholder identity `local.<name>`, which is never written or sent, and `package-id` and `identity-match` print `skipped`. It prints one line per gate and exits 1 when a gate fails. A gate that needs an input a local run does not have prints `skipped`. A skipped gate has not checked anything. It needs `uip` because it packs.
7
+ None of the commands logs in to UiPath.
8
+ - `uipath-extensions new <publisher/name> [--kind function|agent] [--dir <parent dir>] [--skip-install]` runs `uip function new <name> --language ts` in the parent directory (the current one by default). It keeps the layout `uip` writes: the functions stay in `functions/`, and `tsconfig.json` and the `uipath.json` function entries are not changed. The Maestro files go in `maestro/`. It removes `method` and `path` from every `defineFunction` call, sets the `name` in `package.json` to the package id `uipath-extensions.<publisher>.<name>` and the `version` to `0.1.0`, deletes the `.env.example` that `uip` writes (`submit` refuses it, and it holds credential placeholders), adds `tests` to `packOptions.directoriesExcluded` in `uipath.json` (`submit` accepts a `tests` folder, but the package gate does not accept it inside the package), keeps `@uipath/coded-functions-js-sdk` in `devDependencies`, adds `@types/node` to `devDependencies` (the connection helper reads `process.env`, so `validate` needs the Node types), writes the script `pack: uip function pack` and no `validate` script, replaces `functions/hello.ts` with a starter function whose input and output are JSON Schema literals, and writes the template `uipath-extensions.json` at the project root, the connection helper `maestro/connection.ts` and a starter fixture `fixtures/example.json` (`{ "operation": "run", "input": { "name": "World" } }`, a placeholder to replace with real cases). The project does not depend on this SDK, so `pack: uip function pack` is the only script. It then runs `npm install --include=dev` in the new project, so the type packages are ready for `validate` even when `NODE_ENV=production` or `omit=dev` is set. `--skip-install` leaves that step out, and `new` then prints `npm install` as the first of the next steps. If that `npm install` fails, `new` keeps the project, prints the npm error and exits with code 1. The starter template has no `repository`, because the node folder goes to the index repo as one pull request and no author repo exists. It writes `author` with the publisher as the name, in title case, and `https://github.com/<publisher>` as the url, for the author to correct. If any step before that `npm install` fails after `uip` ran, `new` deletes the project directory it created. `uip function new` runs its own install first, before the SDK is added, and it has no option to skip that install. When that install fails, `uip` removes the project and `new` reports the `uip` error.
9
+ With `--kind agent`, `new` runs `uip codedagent new <name> --dir <name>` instead (run `uip codedagent setup` first, in an environment with an agent framework package such as `uipath-langchain` installed: without one `uip codedagent new` exits 1 with "No agent framework is installed"), sets `name` in the `[project]` table of `pyproject.toml` to the package id and `version` to `0.1.0`, and writes the template `uipath-extensions.json`. It writes no `package.json` and no connection helper, and runs no install. `--kind` takes `function` (the default) or `agent`.
10
+ - `uipath-extensions init [--id <publisher>.<name>] [--yes] [--dir <project dir>] [--index <owner/repo>]` calls the library `init`. It plans the adopt (see Adopt) and prints the plan as a diff. Without `--yes` it writes nothing and exits 1. With `--yes` it writes the plan and prints the files it wrote and the defaults it generated. A project that needs no write prints `Nothing to write, the project is already adopted.` and exits 0, so a second run changes nothing. `--id` names the node when the `package.json` name is not a package id and the command does not run in a terminal. In a terminal `init` asks for it. `--index` picks the repository whose `policy/gate-library.yaml` sets the schema of a new template. It needs `uip` because it packs. It also needs `gh` signed in when the project has no `uipath-extensions.json`, because it reads that policy file from the index repo.
11
+ - `uipath-extensions validate [--dir <project dir>]` calls the library `validate`. It plans the adopt (see Adopt) on the project folder with `offline: true`, with no call to `gh` or the index. When the plan holds any write, or its only error is the missing id, `validate` stops. It runs no gate, writes nothing, exits 1 and tells the author to run `init` on that folder. Any other plan error exits 1 with the error. When the plan holds no write, `validate` loads `uipath-extensions.json`, packs the project folder and runs all 21 gates in local mode on the completed manifest, which it builds in memory from the template and the package. It prints one line per gate and exits 1 when a gate fails. A gate that needs an input a local run does not have prints `skipped`. A skipped gate has not checked anything. It needs `uip` because it packs, and the pack leaves its build output in the project folder.
10
12
  - `uipath-extensions pack [--dir <project dir>]` runs the `pack` steps below.
11
- - `uipath-extensions upload [--id <publisher>.<name>] [--yes] [--dir <project dir>] [--input <json>] [--run] [--feed-id <id>]` calls the library `upload` in its default mode and runs the `upload` steps below. On a project that is not adopted it plans the adopt first, as `submit` does (see Adopt). `--yes` applies the adopt writes and then goes on to the upload in the same run. Without it a plan with writes prints as a diff and the command exits 1 and writes none of the adopt files. `--id` names the node when the `package.json` name is not a package id and the command does not run in a terminal. It needs `uip login`. It starts a job only with `--run`.
13
+ - `uipath-extensions upload [--id <publisher>.<name>] [--yes] [--dir <project dir>] [--input <json>] [--run] [--feed-id <id>]` calls the library `upload` in its default mode and runs the `upload` steps below. On a project that is not adopted it plans the adopt first, as `submit` does (see Adopt). `--yes` applies the adopt writes and then goes on to the upload in the same run. Without it a plan with writes prints as a diff and the command exits 1 and writes none of the adopt files. Running `init` first writes the same files without the upload. `--id` names the node when the `package.json` name is not a package id and the command does not run in a terminal. It needs `uip login`. It starts a job only with `--run`.
12
14
  - `uipath-extensions submit [--id <publisher>.<name>] [--yes] [--security-contact <email>] [--dir <project dir>] [--index <owner/repo>] [--dry-run]` calls the library `submit` and runs the `submit` steps below after the adopt step. `--id` names the node when the `package.json` name is not a package id and the command does not run in a terminal. In a terminal `submit` asks for it. `--yes` applies the adopt writes and then goes on to the checks and the pull request in the same run. Without it a plan with writes prints as a diff and exits 1. `--security-contact` is needed for a first registration and replaces the stored contact on a later version. `--index` defaults to `UiPath/uipath-extensions`, and a sandbox index repo can stand in for it. `--dry-run` prints what `submit` would do and writes nothing to GitHub.
13
15
  - `uipath-extensions build-check --project <dir> --tag <tag> --out <dir>` packs the project, runs the 14 build gates in CI mode against the tag, and copies the nupkg and `gate-report.json` into `--out`. It exits 1 when a gate is not met and 2 on a usage error. When `GITHUB_OUTPUT` is set and every gate is met, it appends `nupkg=<path>`. The reusable build workflow runs this command in CI, so a node author normally does not call it.
14
16
 
15
17
  Each command accepts only its own options. An option of another command exits 2 and prints the usage text.
16
18
 
17
- `new`, `pack` and `upload` check for `uip` first and stop with a clear error when it is not on the PATH. `validate` and `submit` run `pack`, so they need `uip` too and stop with the same error. `pack` and `upload` also warn on stderr when `uip` is outside the tested range (see Limits). `submit` needs `gh` signed in (`gh auth login`) with a token that can push a branch to the index repo. None of the commands runs `uip login`.
19
+ `new`, `pack` and `upload` check for `uip` first and stop with a clear error when it is not on the PATH. `init`, `validate` and `submit` run `pack`, so they need `uip` too and stop with the same error. `pack` and `upload` also warn on stderr when `uip` is outside the tested range (see Limits). `submit` needs `gh` signed in (`gh auth login`) with a token that can push a branch to the index repo. None of the commands runs `uip login`.
18
20
 
19
21
  ## Define a node
20
22
 
@@ -182,9 +184,10 @@ The output ends with the destination.
182
184
 
183
185
  ## Library
184
186
 
185
- The `@uipath/uipath-extensions-sdk/lib` export runs three commands from code. Each takes options and `LibDeps` (`exec`, `io`, an optional `github` client and an optional `now` clock) and returns `{ code, data, instructions? }`. `io` has `out`, `err`, `canPrompt` and `ask`. `code` is one of `Success`, `GatesFailed`, `ConfirmationRequired`, `InputRequired` and `Failed`. Only `Success` is a pass, and the `uipath-extensions` command exits 0 for `Success` and 1 for every other code.
187
+ The `@uipath/uipath-extensions-sdk/lib` export runs four commands from code. Each takes options and `LibDeps` (`exec`, `io`, an optional `github` client and an optional `now` clock) and returns `{ code, data, instructions? }`. `io` has `out`, `err`, `canPrompt` and `ask`. `code` is one of `Success`, `GatesFailed`, `ConfirmationRequired`, `InputRequired` and `Failed`. Only `Success` is a pass, and the `uipath-extensions` command exits 0 for `Success` and 1 for every other code.
186
188
 
187
- - `validate({ dir })` copies the project to a temporary folder, plans the adopt writes there with `offline: true` and applies them to the copy. It returns `Failed` with the plan in `data` when the plan has an error. Otherwise it runs the gates in local mode on the copy and returns `Success` or `GatesFailed` with the report. When the plan had writes, `instructions` says the project is not adopted yet. The project folder is never written. A malformed template, a package that cannot be packed or read, and a missing `uip` return `Failed` with the message in `instructions`, in all three commands.
189
+ - `init({ dir, id, index, yes })` plans the adopt writes, as `submit` does, and prints the diff once. It asks for the id in a terminal when the `package.json` name is not a package id, and off a terminal a missing id returns `Failed` with the plan and `pass <publisher>.<name>`. A template that exists and is malformed returns `Failed` with the message in `instructions`, before any diff or write. A plan with writes needs `yes` (else `ConfirmationRequired` with the plan, and nothing is written). With `yes` it applies the writes and returns `Success` with `{ written, generated }`. A file that changed after the plan returns `Failed` with the plan and the instruction to run `init` again, and nothing is written. A project whose plan holds no write returns `Success` with both lists empty. There is no confirmation prompt.
190
+ - `validate({ dir })` plans the adopt writes on the project folder with `offline: true`. It returns `Failed` with the plan in `data` and the instruction to run `init` on the project folder when the plan holds any write or its only error is the missing id. It writes nothing and runs no gate in that case. Any other plan error returns `Failed` with the plan and the errors. A plan with no write and no error runs the gates in local mode on the project folder and returns `Success` or `GatesFailed` with the report. A malformed template, a package that cannot be packed or read, and a missing `uip` return `Failed` with the message in `instructions`, in all four commands.
188
191
  - `upload({ dir, id, yes, run, input, feedId })` plans the adopt writes when the project has no template or its `package.json` name is not a package id, as `submit` does. It never reads the index, so it needs no `gh` and writes schema 2. A plan with writes needs `yes` (else `ConfirmationRequired`). With `yes` it applies the writes and then runs the `upload` steps below in the same call. Any other template or `package.json` problem returns `Failed` before any write. The release input checks below run before the adopt writes. A run whose job does not end `Successful` returns `Failed` with the upload result and the job in `data`. With `release: true` it needs exactly one of `folderPath` and `folderKey` (else `InputRequired`), rejects `feedId`, packs once and runs the gates on that package (`GatesFailed` uploads nothing), needs `yes` (else `ConfirmationRequired`), then runs `uip or packages upload <nupkg>` with the folder flag on the package that passed the gates, under the `package.json` version.
189
192
  - `submit({ dir, id, yes, securityContact, index, dryRun })` plans the adopt writes. A plan with writes needs `yes` (else `ConfirmationRequired`). With `yes` it applies the writes and then runs the `submit` steps below in the same call. `index` also picks the repository whose `policy/gate-library.yaml` sets the schema of a new template. The pull request body lists the fields that the adopt step generated in this run (the license when `package.json` declares none, the label, both descriptions, the operation name and the tags), and ends with the line `Gate library: <version>`. A project that an earlier run adopted has no such list.
190
193
 
@@ -192,7 +195,7 @@ The `release` command and its exports (`release`, `ReleaseError`, `ReleaseOption
192
195
 
193
196
  ## Adopt
194
197
 
195
- A project is adopted when it has a template, a package name that is a package id and the files its node needs. `planAdopt` reads the project and lists what is missing. It writes none of the adopt files, but it runs `uip function pack` in the project folder. That leaves the pack build output (`.uipath/`, `entry-points.json`, `bindings_v2.json`) and can add fields such as `projectId` to `uipath.json`. `submit` and `upload` apply a plan to the project folder. `validate` applies it to a temporary copy and leaves the folder as it was. When the plan holds the template or the package name, a write that fails halfway leaves the project looking unadopted, because `package.json` and the template are written last, so the next run plans everything again.
198
+ A project is adopted when it has a template, a package name that is a package id and the files its node needs. `planAdopt` reads the project and lists what is missing. It writes none of the adopt files, but it runs `uip function pack` in the project folder. That leaves the pack build output (`.uipath/`, `entry-points.json`, `bindings_v2.json`) and can add fields such as `projectId` to `uipath.json`. `init`, `submit` and `upload` apply a plan to the project folder. `validate` never applies one, it stops and names `init` when the plan holds a write. When the plan holds the template or the package name, a write that fails halfway leaves the project looking unadopted, because `package.json` and the template are written last, so the next run plans everything again.
196
199
 
197
200
  - It needs `uipath.json`, and it stops with `not a uip project, run uip function new or uip codedagent new first` when that file is missing.
198
201
  - A `package.json` name that is not `uipath-extensions.<publisher>.<name>` becomes a write of the name from `id`, or the error `pass <publisher>.<name>` when there is no `id`.
@@ -215,9 +218,9 @@ A project is adopted when it has a template, a package name that is a package id
215
218
  1. Plans the adopt writes (see Adopt). It stops when the plan has an error, or has a write and no `--yes`. With `--yes` it applies the writes and goes on. When it then needs `--security-contact` and has none, it returns `InputRequired` and says the adopt files were written. Loads `uipath-extensions.json`. Takes the version and the node id from the sent `package.json`, and fails when its `name` is not a package id or its `version` is not a string.
216
219
  2. Runs `validate` in local mode. It packs the project, so `uip` must be on the PATH. A `fail` stops `submit` before it writes anything, after the checks below have run. A `review` or `skipped` result is printed and does not stop it. The index CI runs every gate with more inputs than a local run has, so a pass here is not a pass there.
217
220
  3. Reads the index repo and checks that the signed-in account can push to it. Without that right it stops before it writes anything, with `you cannot push branches to <index>. Ask in #feat-maestro-community-node for write access, then run submit again.`
218
- 4. Collects the files of the project folder. Only the allow list is sent: `uipath-extensions.json`, `package.json`, `package-lock.json`, `uipath.json`, `tsconfig.json`, `tsconfig.typecheck.json`, `README.md`, `LICENSE`, `assets/icon.png`, `functions/**/*.ts`, `maestro/**/*.ts`, `tests/**/*.ts` and `fixtures/**/*.json`. Local files that the index refuses or that a build writes are left out and listed in the output. They are `node_modules/`, `dist/`, `.git/`, `.uipath/`, `.github/`, `docs/`, `.gitignore`, `.npmrc`, `biome.json`, `commitlint.config.mjs`, `AGENTS.md`, `CHANGELOG.md`, `CLAUDE.md`, `entry-points.json`, `bindings_v2.json`, `registration.yaml` and `*.nupkg`. A `registration.yaml` in the folder, for example one copied from the index, is never sent: submit writes the registration from the index copy plus the new version. The same checks as in `validate` run on it, and a problem is a warning in the output. At any depth the collector also skips an entry whose name is in `packOptions.filesExcluded` or `packOptions.directoriesExcluded` of `uipath.json`, and the names `node_modules`, `.git`, `.env`, `.deno`, `dist` and `.uipath`, as `uip function pack` does. A source folder of the allow list at the project root (`tests`, `fixtures`) is still collected when `packOptions` excludes it, because `new` excludes `tests` only to keep it out of the package, and the index keeps those files. A `uip function pack` run writes the last three, and `validate`, `pack` and `upload` all start one, so they can sit in the folder when you submit. Any other file, a symlink, a file over 5 MiB, more than 200 files with `registration.yaml`, or more than 20 MiB in all stops submit with the list of paths and the reason for each. In `package-lock.json`, every package that is not `@uipath/uipath-extensions-sdk` or `@uipath/uipath-extensions-gates` and whose `resolved` URL is on `npm.pkg.github.com` is sent with the matching `registry.npmjs.org` tarball URL, because the index gate takes everything but those two from the public registry. The `integrity` value is not changed, and the file on disk is not touched.
221
+ 4. Collects the files of the project folder. Only the allow list is sent: `uipath-extensions.json`, `package.json`, `package-lock.json`, `uipath.json`, `tsconfig.json`, `tsconfig.typecheck.json`, `project.uiproj`, `README.md`, `LICENSE`, `assets/icon.png`, `functions/**/*.ts`, `maestro/**/*.ts`, `tests/**/*.ts` and `fixtures/**/*.json`. A file under a folder whose name starts with a dot, such as `fixtures/.vscode/tasks.json`, is not on the list, because the index refuses it. Local files that the index refuses or that a build writes are left out and listed in the output. They are `node_modules/`, `dist/`, `.git/`, `.uipath/`, `.github/`, `docs/`, `.gitignore`, `.npmrc`, `biome.json`, `commitlint.config.mjs`, `AGENTS.md`, `CHANGELOG.md`, `CLAUDE.md`, `entry-points.json`, `bindings_v2.json`, `registration.yaml` and `*.nupkg`. A `registration.yaml` in the folder, for example one copied from the index, is never sent: submit writes the registration from the index copy plus the new version. The same checks as in `validate` run on it, and a problem is a warning in the output. At any depth the collector also skips an entry whose name is in `packOptions.filesExcluded` or `packOptions.directoriesExcluded` of `uipath.json`, and the names `node_modules`, `.git`, `.env`, `.deno`, `dist` and `.uipath`, as `uip function pack` does. A source folder of the allow list at the project root (`tests`, `fixtures`) is still collected when `packOptions` excludes it, because `new` excludes `tests` only to keep it out of the package, and the index keeps those files. A `uip function pack` run writes the last three, and `validate`, `pack` and `upload` all start one, so they can sit in the folder when you submit. Any other file, a symlink, a file over 5 MiB, more than 200 files with `registration.yaml`, or more than 20 MiB in all stops submit with the list of paths and the reason for each. In `package-lock.json`, every package that is not `@uipath/uipath-extensions-sdk` or `@uipath/uipath-extensions-gates` and whose `resolved` URL is on `npm.pkg.github.com` is sent with the matching `registry.npmjs.org` tarball URL, because the index gate takes everything but those two from the public registry. The `integrity` value is not changed, and the file on disk is not touched.
219
222
  5. Refuses when the index holds both the flat file `nodes/<publisher>/<name>.yaml` and the folder for the node, or when the version is already in the registration file. It then looks for an open pull request from the branch `register/<publisher>__<name>`. When there is one, it updates that pull request (see below). When there is none, it refuses if the branch already exists in the index repo.
220
- 6. Reads the default branch head of the index repo, and builds one tree commit on it through the git data API. The commit holds the files under `nodes/<publisher>/<name>/` and `registration.yaml` with the new version as a `listed` entry dated today (UTC). A first registration writes `id`, `package`, `security_contact`, `deprecated` and `approved`, and `id` and `package` come from the `name` in `package.json`. A later version keeps every field of the existing file and appends the entry. It deletes files that the index folder holds and your folder no longer has. When the node is still a flat file `nodes/<publisher>/<name>.yaml`, the same commit deletes that file and writes the folder, so the pull request never holds both. The commit touches nothing outside `nodes/<publisher>/<name>/`.
223
+ 6. Reads the default branch head of the index repo, and builds one tree commit on it through the git data API. The commit holds the files under `nodes/<publisher>/<name>/` and `registration.yaml` with the new version as a `listed` entry dated today (UTC). A first registration writes `id`, `package`, `security_contact`, `deprecated`, `approved` and `maintainers`, and `id` and `package` come from the `name` in `package.json`. `maintainers` holds one entry, the signed-in `gh` account, with its login in lowercase and its numeric GitHub id. The index lets only a listed maintainer, or someone with write access to the index repo, submit new versions of the node. When the signed-in account is not a normal user, `submit` writes no `maintainers` block and does not fail. That happens when the login has brackets or another shape that the index schema refuses, when the account type is not `User`, and when GitHub does not answer the identity or the user lookup. A node without the list is not checked by the index. A later version keeps every field of the existing file, `maintainers` included, appends the entry and never adds the submitter. To add people, edit `maintainers` in the registration file by hand in a pull request. The list holds 1 to 20 entries and the index checks the shape of each one. It deletes files that the index folder holds and your folder no longer has. When the node is still a flat file `nodes/<publisher>/<name>.yaml`, the same commit deletes that file and writes the folder, so the pull request never holds both. The commit touches nothing outside `nodes/<publisher>/<name>/`.
221
224
  7. Creates the branch `register/<publisher>__<name>` at that commit, so a failure before this step leaves no branch. It opens the pull request with the body of the index `.github/PULL_REQUEST_TEMPLATE.md`. It fills the `Node id` and `Version` lines and ticks "Registers a new node" or "Adds a version to an existing node". It then tries to add the `registration` label, and warns when it cannot. The pull request title and the commit message are both `Register <id> <version>`, because the index lints every commit and the title with the same rule.
222
225
 
223
226
  The version comes from the folder.
@@ -231,12 +234,24 @@ When a pull request from that branch is already open, `submit` updates it instea
231
234
  - The files removed are the ones that the default branch holds or the pull request branch holds, and that your folder no longer has. A file that only an earlier submit added is listed too.
232
235
  - An approval stays after an update while the index ruleset does not dismiss stale reviews. When a reviewer's latest decision is an approval, `submit` prints `Warning: <logins> approved this pull request, and the approval stays after this update. Ask for a new review.` Only `APPROVED`, `CHANGES_REQUESTED` and `DISMISSED` count as a decision.
233
236
 
234
- `--dry-run` runs the pre-check, the access check, the folder collection and the lookup of an open pull request with its owner check, then stops before the first write. It prints the index, branch, title, `Action: open` or `Action: update #<number>`, the files, the files not sent, the files removed, and for an update the approvals that would stay. `validate` still packs the project in the folder, as it does on its own, so build output such as `.uipath/` can appear there.
237
+ `--dry-run` runs the pre-check, the access check, the folder collection and the lookup of an open pull request with its owner check, then stops before the first write. It prints the index, branch, title, `Action: open` or `Action: update #<number>`, the files, the files not sent, the files removed, the `Security contact` and the `Maintainers` that the registration file would hold, and for an update the approvals that would stay. Each maintainer shows its id and where it came from, the signed-in account for a first registration and the index for a later version. When no maintainer was written, the line says so and gives the reason. `validate` still packs the project in the folder, as it does on its own, so build output such as `.uipath/` can appear there.
235
238
 
236
239
  A run that writes ends with the pull request URL, the number of files sent and removed, the local files not sent, and `Next: CI runs the gates and a reviewer approves. Watch: gh pr checks <number> --repo <index> --watch`.
237
240
 
238
241
  All GitHub calls go through a `GitHubClient`. `ghClient()` implements it with `gh api`, and the tests use a fake.
239
242
 
243
+ ## Submit a connector
244
+
245
+ A connector node is an Integration Service connector, not a function. Its folder holds `app/element/element.json`, the `app/element/element-metadata.json` that the CB CLI writes, an `image.svg`, and either V3 `standard-resources/<name>.json` files or V4 `v4/activities.json`, `v4/objects/<name>/metadata.json` and `v4/scripts/<name>.js`. Build it with `uip is connectors builder` and publish it to your tenant first with `uip is connectors publish`. The folder keeps your own key, `design-<org>-<name>` from the builder or `custom-<org>-<name>` from an export, and your own version. validate and submit set the community key of the node id in the copy they check and send, never in the folder, so you can keep importing and publishing the same folder to your tenant. Files that Integration Service generates on import, such as `swagger.json`, `objects.json` or `*.swagger.json`, are refused.
246
+
247
+ - **Identity.** A connector has no `package.json`, so pass the node id with `--id <publisher>.<name>`, or type it at the prompt. Publisher and name hold lowercase letters and digits only, at most 70 characters together. The package id is `uipath-extensions.<publisher>.<name>`.
248
+ - **Key.** The key comes from the node id. `uipath.<name>` is the shared connector of a vendor, key `custom-community-<name>`, which UiPath builds first and anyone improves with a pull request. Any other publisher makes a fork, key `custom-community-<name>_<publisher>`, and submit refuses a fork until `nodes/uipath/<name>` is in the index as a connector. A shared function or agent, or a legacy flat `nodes/uipath/<name>.yaml`, does not count, because submit decides the shared node's kind from its files the same way it does for the node it sends. validate and submit rewrite every copy of the folder's key as text in the copy they check and send: `key`, the `design-` twin in `metadata.key`, the `metadata.image` path, every `elementKey` and any other JSON value that holds it. The folder is not changed, and init writes only the template and the icon.
249
+ - **Version.** The index holds the version history. The first submit of a node is `1.0.0`. After that, pass `--bump patch|minor|major`, and submit takes the highest approved version in `registration.yaml`, yanked and blocked ones included, adds the bump, and writes it to `latestVersion` in `element-metadata.json` and to the top-level `version` in `element.json` of the files it sends. The folder keeps the version it had, which is the one your tenant publishes, so the two versions count separately. A pull request that is still open adds no approved version, so running submit again with the same `--bump` sends the same version. A connector version only goes up, so submit refuses one that is not higher than every approved version. `--bump` takes only `patch`, `minor` or `major`, and submit refuses it for a function or agent, which takes its version from `package.json`.
250
+ - **Validate.** `validate --dir <folder> [--id <publisher>.<name>]` runs the connector gates, without packing, on a copy of the files submit would send, with the community key of the node id. Without `--id` it checks the folder as the shared connector `uipath.<name>`, taking `<name>` from the last part of the folder's key, and a folder that already holds a community key is checked as it is. A file the folder walk refuses, such as one off the allow list, is reported under `connector-contents`. Fix every finding in the folder. When `uipath-extensions.json` or `assets/icon.png` is missing, validate stops and asks you to run init.
251
+ - **Submit.** `submit --dir <folder> --id <publisher>.<name> --yes [--bump patch|minor|major]` writes the generated template and the default icon on the first run, runs the connector gates on the exact bytes it sends, with the node id and the earlier versions, and opens the `register/<publisher>__<name>` pull request as for a function. It sends `uipath-extensions.json`, `README.md`, `LICENSE`, `assets/icon.png` and the allowed `app/element/**` files. A `registration.yaml` in the folder is not sent and is checked as for a function.
252
+ - **Kind.** submit refuses a connector whose id is already registered as a function or agent, including a legacy flat file, and a function or agent whose id is already a connector. Use a new id.
253
+ - **Upload.** `upload` takes functions and agents only.
254
+
240
255
  ## Limits
241
256
 
242
257
  - `repository` is optional. A template that sets it must write `owner/repo`, not a URL, and the completed manifest then lists it as a `https://github.com/` URL. A template without it gets no `repository` in the manifest. The `release`, `attestation` and `identity-match` gates fail in `ci` mode for such a manifest when a caller gives them every input, because they look up the author repository, and `source` mode skips them. Nothing else in the gate library or the SDK reads the field.
@@ -245,11 +260,11 @@ All GitHub calls go through a `GitHubClient`. `ghClient()` implements it with `g
245
260
  - `credential.inputs` lists each top-level operation input whose schema, or the local `$ref` target of its schema, has `x-uipath-resource-kind: "Connection"`, as an `ICredentialType` input. A nested property, a `$ref` chain and an asset kind are not listed.
246
261
  - The connection helper calls Integration Service only from a UiPath cloud host (`uipath.com` or a subdomain). It does not run on Automation Suite. A node can pass a fixed connection id to `connection()` instead of its input, and the gates do not catch that. The helper only reaches connections the job's robot can already read.
247
262
  - The manifest follows the shape in the registry design. The Flow node contract owner has not confirmed it yet, so it can still change.
248
- - `pack` needs `uip` on the path, and so do `validate` and `submit`, which run `pack`. `pack` takes the output file name `<package id>.<version>.nupkg` from it. `UIP_VERSION_RANGE` pins the tested `uip` versions, `1.205.0-preview.290` to `1.206.0-preview.292`. A version outside it is a warning, not an error, because `uip` upgrades itself. `src/uip.compat.test.ts` runs `new` and `pack` with a real `uip` at each bound. It finds the binary in `UIP_LOWER_BIN` and `UIP_UPPER_BIN` (or on the PATH when its version matches). When a bound is missing the test is skipped with a `FINDING` line locally, and it fails when the `CI` variable is set. The CI workflow installs both bounds. To move a bound, change `UIP_LOWER_BOUND` or `UIP_UPPER_BOUND` in `src/uip.ts` and the versions in `.github/workflows/ci.yml` together, and a test checks that they agree.
263
+ - `pack` needs `uip` on the path, and so do `validate` and `submit`, which run `pack`. `pack` takes the output file name `<package id>.<version>.nupkg` from it. `UIP_VERSION_RANGE` pins the tested `uip` versions, `1.205.0-preview.290` to `1.206.0-preview.292`. A version outside it is a warning, not an error, because `uip` upgrades itself. `src/uip.compat.test.ts` runs `new` and `pack` with a real `uip` at each bound. It finds the binary in `UIP_LOWER_BIN` and `UIP_UPPER_BIN` (or on the PATH when its version matches). When a bound is missing the test is skipped with a `FINDING` line locally, and it fails when the `CI` variable is set. The CI workflow installs both bounds. To move a bound, change `UIP_LOWER_BOUND` or `UIP_UPPER_BOUND` in `src/uip.ts` and the versions in `.github/tools/uip-lower` and `.github/tools/uip-upper` together, and a test checks that they agree.
249
264
  - `upload` in its default mode sends a package that is not the package the build workflow produces, because the version differs. Each run leaves one more version in the personal feed, and `upload` does not delete old ones. It uses the first entry point only, which is right for a node with one function. The upload also makes Orchestrator create a second process named after the package id, with no entry point set. Use the `<publisher>__<name>__dev` release. The output names the extra process and the command that removes it. A feed that refuses a SemVer prerelease version, or a tenant with no personal workspace feed, stops `upload` with the `uip` message.
250
- - The tests run `new`, `validate` and `pack` against a fake `uip` shaped like the real scaffold (`functions/hello.ts`, `uipath.json`, `include` of `**/*.ts`). A manual run with a real `uip` 1.206.0 on 2026-11-17 showed that `uip function pack` keeps the paths, so the nupkg holds `content/functions/hello.ts` and `content/maestro/connection.ts`. An earlier run had to drop the `@uipath/uipath-extensions-sdk` dependency, because the SDK is not on npm yet and `npm install` and `uip function pack` fail with a 404 on it. The compat test above is the automated run. `uip` upgrades itself on first run, so do not rely on one version.
251
- - `validate` skips the seven gates that need GitHub, the npm registry, the index or a license scanner. It checks the `fixtures/` folder, but it has no fixture runner, so the `fixtures` gate skips the run of each fixture and prints `skipped` when the folder is fine. It packs the project, so the gates that read the nupkg run. It checks a copy of the project, and the package built from it leaves out a `registration.yaml`, because only the index owns that file. The same holds for the package that `submit` checks and `upload` sends: `pack` adds the file to `packOptions.filesExcluded` of `uipath.json` while `uip function pack` runs and puts `uipath.json` back afterwards. The result says so and the file stays as it was. A `registration.yaml` that is there is also checked for format, the required keys, the `approved` entries and a match with the `package.json` name, and a problem shows as a `review` result named `registration-file`, which does not fail validate. Without the file, nothing is checked. The index repo CI runs the skipped ones.
252
- - The starter template, packed by `uip` 1.205.0-preview.290 with this repo's SDK linked in place of the unpublished package, passes `dependency-policy` (the SDK package is not allow-listed, and the starter template does not depend on it), `runtime-shape` and `package-contents`. The gates accept `@uipath/coded-functions-js-sdk` and the GUIDs that `uip` writes into `entry-points.json`, `operate.json` and `uipath.json`.
265
+ - The tests run `new`, `validate` and `pack` against a fake `uip` shaped like the real scaffold (`functions/hello.ts`, `uipath.json`, `include` of `**/*.ts`). A manual run with a real `uip` 1.206.0 on 2026-11-17 showed that `uip function pack` keeps the paths, so the nupkg holds `content/functions/hello.ts` and `content/maestro/connection.ts`. An earlier run, made before the SDK was on npmjs, had to drop the `@uipath/uipath-extensions-sdk` dependency, because `npm install` and `uip function pack` failed with a 404 on it. The compat test above is the automated run. `uip` upgrades itself on first run, so do not rely on one version.
266
+ - `validate` skips the seven gates that need GitHub, the npm registry, the index or a license scanner. It checks the `fixtures/` folder, but it has no fixture runner, so the `fixtures` gate skips the run of each fixture and prints `skipped` when the folder is fine. It packs the project, so the gates that read the nupkg run. The package it builds from the project folder leaves out a `registration.yaml`, because only the index owns that file. The same holds for the package that `submit` checks and `upload` sends: `pack` adds the file to `packOptions.filesExcluded` of `uipath.json` while `uip function pack` runs and puts `uipath.json` back afterwards. The result says so and the file stays as it was. A `registration.yaml` that is there is also checked for format, the required keys, the `approved` entries and a match with the `package.json` name, and a problem shows as a `review` result named `registration-file`, which does not fail validate. Without the file, nothing is checked. The index repo CI runs the skipped ones.
267
+ - The starter template, packed by `uip` 1.205.0-preview.290 with this repo's SDK linked in place of the registry copy, which did not exist yet, passes `dependency-policy` (the SDK package is not allow-listed, and the starter template does not depend on it), `runtime-shape` and `package-contents`. The gates accept `@uipath/coded-functions-js-sdk` and the GUIDs that `uip` writes into `entry-points.json`, `operate.json` and `uipath.json`.
253
268
  - `new` fails, and removes the project it created, when there is no `functions/` directory, `tsconfig.json` or `uipath.json`, when the scaffold already has a `uipath-extensions.json` or has no `functions/hello.ts`, or when it finds no `defineFunction` call, or one it cannot edit safely (not an object literal, or one that spreads another object). It removes `method` and `path` only as direct properties of the call.
254
269
  - `submit` runs `validate`, which skips the gates that need GitHub, the npm registry, the index or a license scanner. A pass does not promise that the index CI passes, because the CI runs every gate on the pull request. `submit` reads at most 100 reviews of a pull request, so on a pull request with more than 100 an old decision can show as the latest. The allow list, the size limits and the local-only list are copies of the index rules, so a change to the index rules needs the same change in `submit`. The `registration` label may need triage rights on the index repo, so a missing label is a warning.
255
270
  - The tests of `submit` use a fake `GitHubClient`, and the `gh` argument lists and request bodies of `ghClient` are tested with a fake exec. No test calls GitHub, so a run against a sandbox index repo is still to be done.
package/dist/adopt.d.ts CHANGED
@@ -1,4 +1,9 @@
1
1
  import type { AdoptOptions, AdoptPlan, LibDeps } from "./lib.js";
2
2
  export declare const NAME_PREFIX = "uipath-extensions.";
3
+ export declare const MISSING_ID_ERROR = "pass <publisher>.<name>";
4
+ export declare class StaleAdoptPlanError extends Error {
5
+ readonly path: string;
6
+ constructor(path: string);
7
+ }
3
8
  export declare function planAdopt(opts: AdoptOptions, deps: LibDeps): Promise<AdoptPlan>;
4
9
  export declare function applyAdopt(plan: AdoptPlan, opts: AdoptOptions): Promise<void>;
package/dist/adopt.js CHANGED
@@ -12,12 +12,22 @@ import { FIXTURE_PATH, starterFixtureText } from "./fixture.js";
12
12
  import { GitHubError, ghClient } from "./github.js";
13
13
  import { REGISTRATION_FILE } from "./registrationFile.js";
14
14
  import { excludedNames, isSkippedEntry, offListRemedy, walkSources, } from "./sourceWalk.js";
15
+ import { symlinkProblem } from "./symlinkProblem.js";
15
16
  import { UipMissingError } from "./uip.js";
16
17
  const PACK_TIMEOUT_MS = 600_000;
17
18
  const MAX_OUTPUT_CHARS = 2000;
18
19
  const POLICY_FILE = "policy/gate-library.yaml";
19
20
  const SCHEMA_KEY = "template_schema";
20
21
  export const NAME_PREFIX = "uipath-extensions.";
22
+ export const MISSING_ID_ERROR = "pass <publisher>.<name>";
23
+ export class StaleAdoptPlanError extends Error {
24
+ path;
25
+ constructor(path) {
26
+ super(`${path} changed after the plan, plan again`);
27
+ this.path = path;
28
+ this.name = "StaleAdoptPlanError";
29
+ }
30
+ }
21
31
  const DEFAULT_LICENSE = "MIT";
22
32
  const NODE_DESCRIPTION = "Describe what this node does in one sentence.";
23
33
  const OPERATION_DESCRIPTION = "Describe what this operation does.";
@@ -347,7 +357,7 @@ export async function planAdopt(opts, deps) {
347
357
  let nextPkg = pkg;
348
358
  if (packageNameProblem(pkg.name) !== undefined) {
349
359
  if (opts.id === undefined) {
350
- plan.errors.push("pass <publisher>.<name>");
360
+ plan.errors.push(MISSING_ID_ERROR);
351
361
  }
352
362
  else {
353
363
  const name = `${NAME_PREFIX}${opts.id}`;
@@ -498,41 +508,19 @@ export async function planAdopt(opts, deps) {
498
508
  });
499
509
  }
500
510
  for (const { path } of plan.writes) {
501
- const problem = await symlinkProblem(opts.dir, path);
511
+ const problem = await symlinkProblem(opts.dir, path, "adopt");
502
512
  if (problem !== undefined)
503
513
  plan.errors.push(problem);
504
514
  }
505
515
  return plan;
506
516
  }
507
- async function symlinkProblem(root, path) {
508
- const parts = path.split("/");
509
- for (let depth = 1; depth <= parts.length; depth++) {
510
- const part = parts.slice(0, depth).join("/");
511
- try {
512
- const info = await lstat(join(root, part));
513
- if (info.isSymbolicLink()) {
514
- return `${part} is a symlink, and adopt does not write through a symlink`;
515
- }
516
- if (depth < parts.length && !info.isDirectory()) {
517
- return `${part} is not a directory, and adopt writes ${path} below it`;
518
- }
519
- }
520
- catch (error) {
521
- const { code } = error;
522
- if (code === "ENOENT" || code === "ENOTDIR")
523
- return undefined;
524
- throw error;
525
- }
526
- }
527
- return undefined;
528
- }
529
517
  export async function applyAdopt(plan, opts) {
530
518
  for (const { path, before } of plan.writes) {
531
- const problem = await symlinkProblem(opts.dir, path);
519
+ const problem = await symlinkProblem(opts.dir, path, "adopt");
532
520
  if (problem !== undefined)
533
521
  throw new Error(problem);
534
522
  if (before !== null && (await readText(join(opts.dir, path))) !== before) {
535
- throw new Error(`${path} changed after the plan, plan again`);
523
+ throw new StaleAdoptPlanError(path);
536
524
  }
537
525
  }
538
526
  const markers = new Set(["package.json", MANIFEST_FILE]);
package/dist/adopt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"adopt.js","sourceRoot":"","sources":["../src/adopt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,iBAAiB,GAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GAC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AC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvD,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACvD,CAAC;IACF,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,OAAO,EAAE,CAAC;QACxD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClC,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,MAAM,SAAS,CACb,IAAI,EACJ,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,EAC5D,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAC7C,CAAC;IACJ,CAAC;AACH,CAAC"}
package/dist/cli.js CHANGED
@@ -4,16 +4,18 @@ import { defaultExec, } from "@uipath/uipath-extensions-gates";
4
4
  import { buildCheck, formatResults, } from "./commands/build-check.js";
5
5
  import { scaffold } from "./commands/new.js";
6
6
  import { pack } from "./commands/pack.js";
7
- import { submit, upload, validate, } from "./lib.js";
7
+ import { init, submit, upload, validate, } from "./lib.js";
8
+ import { withoutControls } from "./registrationFile.js";
8
9
  import { requireUip, uipRangeWarning } from "./uip.js";
9
10
  const USAGE = `Usage: uipath-extensions <command>
10
11
 
11
12
  Commands:
12
- new <publisher/name> [--dir <parent dir>] [--skip-install]
13
- validate [--dir <project dir>]
13
+ new <publisher/name> [--kind function|agent] [--dir <parent dir>] [--skip-install]
14
+ init [--id <publisher>.<name>] [--yes] [--dir <project dir>] [--index <owner/repo>]
15
+ validate [--id <publisher>.<name>] [--dir <project dir>]
14
16
  pack [--dir <project dir>]
15
17
  upload [--id <publisher>.<name>] [--yes] [--dir <project dir>] [--input <json>] [--run] [--feed-id <id>]
16
- submit [--id <publisher>.<name>] [--yes] [--security-contact <email>] [--dir <project dir>] [--index <owner/repo>] [--dry-run]
18
+ submit [--id <publisher>.<name>] [--yes] [--security-contact <email>] [--dir <project dir>] [--index <owner/repo>] [--dry-run] [--bump patch|minor|major]
17
19
  build-check --project <dir> --tag <tag> --out <dir>
18
20
  `;
19
21
  class UsageError extends Error {
@@ -75,15 +77,43 @@ async function runNew(call) {
75
77
  id,
76
78
  parentDir: call.dir,
77
79
  skipInstall: call.skipInstall,
80
+ ...(call.kind && { kind: call.kind }),
78
81
  ...(call.exec && { exec: call.exec }),
79
82
  });
83
+ if (call.kind === "agent") {
84
+ call.io.out(`Created ${projectDir}\nNext: cd ${projectDir} && uv sync && uipath init, then open a pull request that adds the folder to the library repo\n`);
85
+ return 0;
86
+ }
80
87
  const install = installed ? "" : "npm install && ";
81
88
  call.io.out(`Created ${projectDir}\nNext: cd ${projectDir} && ${install}uipath-extensions validate\n`);
82
89
  return 0;
83
90
  }
91
+ async function runInit(call) {
92
+ noArguments("init", call.positionals);
93
+ const outcome = await init({
94
+ dir: call.dir,
95
+ yes: call.yes,
96
+ ...(call.id && { id: call.id }),
97
+ ...(call.index && { index: call.index }),
98
+ }, libDeps(call));
99
+ if (outcome.code === "ConfirmationRequired") {
100
+ call.io.err("error: init would write the files above. Run it again with --yes to write them.\n");
101
+ return 1;
102
+ }
103
+ if (outcome.code !== "Success")
104
+ return printFailure(call.io, outcome);
105
+ const { written, generated } = outcome.data;
106
+ call.io.out(written.length === 0
107
+ ? "Nothing to write, the project is already adopted.\n"
108
+ : `Wrote ${written.join(", ")}\n`);
109
+ for (const { field, value } of generated) {
110
+ call.io.out(`Default ${field}: ${value}\n`);
111
+ }
112
+ return 0;
113
+ }
84
114
  async function runValidate(call) {
85
115
  noArguments("validate", call.positionals);
86
- const result = await validate({ dir: call.dir }, libDeps(call));
116
+ const result = await validate({ dir: call.dir, ...(call.id !== undefined && { id: call.id }) }, libDeps(call));
87
117
  if (result.code === "Success" || result.code === "GatesFailed") {
88
118
  printGates(call.io, result.data);
89
119
  if (result.instructions)
@@ -119,7 +149,7 @@ async function runUpload(call) {
119
149
  ...(call.feedId && { feedId: call.feedId }),
120
150
  }, libDeps(call));
121
151
  if (outcome.code === "ConfirmationRequired") {
122
- call.io.err("error: upload would write the files above. Run it again with --yes to write them.\n");
152
+ call.io.err("error: upload would write the files above. Run it again with --yes to write them, or run init to write them first.\n");
123
153
  return 1;
124
154
  }
125
155
  const result = outcome.data;
@@ -146,6 +176,16 @@ async function runUpload(call) {
146
176
  return result.job && result.job.state !== "Successful" ? 1 : 0;
147
177
  }
148
178
  const pullNumber = (url) => url.slice(url.lastIndexOf("/") + 1);
179
+ const SOURCE_NOTE = {
180
+ "signed-in": "the signed-in account",
181
+ index: "already in the index",
182
+ };
183
+ function maintainerSummary(plan) {
184
+ const listed = plan.maintainers.map(({ login, id, from }) => `${login} (${id}, ${SOURCE_NOTE[from]})`);
185
+ if (listed.length > 0)
186
+ return listed.join(", ");
187
+ return `none${plan.maintainersNote ? `, ${plan.maintainersNote}` : ""}`;
188
+ }
149
189
  function printDryRun(io, plan) {
150
190
  const sent = [...plan.files, basename(plan.registrationPath)];
151
191
  const list = (names) => names.length > 0 ? names.join(", ") : "none";
@@ -157,7 +197,12 @@ function printDryRun(io, plan) {
157
197
  `Files (${sent.length}): ${sent.join(", ")}`,
158
198
  `Not sent: ${list(plan.skipped)}`,
159
199
  `Removed: ${list(plan.removed)}`,
200
+ `Security contact: ${plan.securityContact ? withoutControls(plan.securityContact) : "none"}`,
201
+ `Maintainers: ${maintainerSummary(plan)}`,
160
202
  ];
203
+ if (plan.connectorKey) {
204
+ lines.splice(3, 0, `Connector key: ${plan.connectorKey}${plan.rewritten && plan.rewritten.length > 0 ? ` (set in the copy that is sent, in ${plan.rewritten.join(", ")}. The folder keeps its own key)` : ""}`, `Version: ${plan.version}`);
205
+ }
161
206
  if (plan.approvedBy.length > 0) {
162
207
  lines.push(`Approved by: ${plan.approvedBy.join(", ")} (stays after an update)`);
163
208
  }
@@ -191,6 +236,7 @@ async function runSubmit(call) {
191
236
  ...(call.id && { id: call.id }),
192
237
  ...(call.securityContact && { securityContact: call.securityContact }),
193
238
  ...(call.index && { index: call.index }),
239
+ ...(call.bump !== undefined && { bump: call.bump }),
194
240
  }, libDeps(call));
195
241
  switch (outcome.code) {
196
242
  case "Success":
@@ -202,7 +248,7 @@ async function runSubmit(call) {
202
248
  call.io.err(`${outcome.instructions}\n`);
203
249
  return 1;
204
250
  case "ConfirmationRequired":
205
- call.io.err("error: submit would write the files above. Run it again with --yes to write them.\n");
251
+ call.io.err("error: submit would write the files above. Run it again with --yes to write them, or run init to write them first.\n");
206
252
  return 1;
207
253
  default:
208
254
  return printFailure(call.io, outcome);
@@ -246,9 +292,25 @@ const DIR = { dir: { type: "string" } };
246
292
  const COMMANDS = {
247
293
  new: {
248
294
  handler: runNew,
249
- options: { ...DIR, "skip-install": { type: "boolean" } },
295
+ options: {
296
+ ...DIR,
297
+ "skip-install": { type: "boolean" },
298
+ kind: { type: "string" },
299
+ },
300
+ },
301
+ init: {
302
+ handler: runInit,
303
+ options: {
304
+ ...DIR,
305
+ id: { type: "string" },
306
+ index: { type: "string" },
307
+ yes: { type: "boolean" },
308
+ },
309
+ },
310
+ validate: {
311
+ handler: runValidate,
312
+ options: { ...DIR, id: { type: "string" } },
250
313
  },
251
- validate: { handler: runValidate, options: DIR },
252
314
  pack: { handler: runPack, options: DIR },
253
315
  upload: {
254
316
  handler: runUpload,
@@ -270,6 +332,7 @@ const COMMANDS = {
270
332
  id: { type: "string" },
271
333
  yes: { type: "boolean" },
272
334
  "dry-run": { type: "boolean" },
335
+ bump: { type: "string" },
273
336
  },
274
337
  },
275
338
  "build-check": {
@@ -303,6 +366,7 @@ export async function run(argv, io, exec, deps = {}) {
303
366
  const out = text(values.out);
304
367
  const input = text(values.input);
305
368
  const feedId = text(values["feed-id"]);
369
+ const bump = typeof values.bump === "string" ? values.bump : undefined;
306
370
  return await spec.handler({
307
371
  dir: resolve(text(values.dir) ?? "."),
308
372
  ...(index && { index }),
@@ -314,9 +378,11 @@ export async function run(argv, io, exec, deps = {}) {
314
378
  ...(out && { out }),
315
379
  ...(input && { input }),
316
380
  ...(feedId && { feedId }),
381
+ ...(bump !== undefined && { bump }),
317
382
  run: values.run === true,
318
383
  dryRun: values["dry-run"] === true,
319
384
  skipInstall: values["skip-install"] === true,
385
+ ...(typeof values.kind === "string" && { kind: values.kind }),
320
386
  positionals,
321
387
  io,
322
388
  ...(exec && { exec }),