@uipath/uipath-extensions-sdk 0.1.17 → 0.1.21
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 +21 -15
- package/THIRD-PARTY-NOTICES.txt +27 -0
- package/dist/adopt.d.ts +5 -0
- package/dist/adopt.js +139 -15
- package/dist/adopt.js.map +1 -1
- package/dist/cli.js +38 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/new.js +16 -1
- package/dist/commands/new.js.map +1 -1
- package/dist/commands/pack.d.ts +1 -0
- package/dist/commands/pack.js +85 -3
- package/dist/commands/pack.js.map +1 -1
- package/dist/commands/submit.js +56 -21
- package/dist/commands/submit.js.map +1 -1
- package/dist/commands/upload.js +10 -3
- package/dist/commands/upload.js.map +1 -1
- package/dist/defaultIcon.d.ts +2 -0
- package/dist/defaultIcon.js +225 -0
- package/dist/defaultIcon.js.map +1 -0
- package/dist/fixture.d.ts +2 -0
- package/dist/fixture.js +6 -0
- package/dist/fixture.js.map +1 -0
- package/dist/lib.d.ts +12 -0
- package/dist/lib.js +77 -80
- package/dist/lib.js.map +1 -1
- package/dist/registrationFile.d.ts +9 -0
- package/dist/registrationFile.js +146 -0
- package/dist/registrationFile.js.map +1 -0
- package/dist/sourceWalk.js +13 -3
- package/dist/sourceWalk.js.map +1 -1
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
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
|
|
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
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
|
|
9
|
-
- `uipath-extensions
|
|
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 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.
|
|
10
|
+
- `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
11
|
- `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`.
|
|
12
|
+
- `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
13
|
- `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
14
|
- `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
15
|
|
|
15
16
|
Each command accepts only its own options. An option of another command exits 2 and prints the usage text.
|
|
16
17
|
|
|
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`.
|
|
18
|
+
`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
19
|
|
|
19
20
|
## Define a node
|
|
20
21
|
|
|
@@ -46,7 +47,7 @@ The display fields are bounded. The SDK and the `contract` gate enforce these ru
|
|
|
46
47
|
- `display.label` is 1 to 40 characters and `display.description` is 1 to 200 characters. Neither may contain `<` or `>`.
|
|
47
48
|
- `tags` holds at most 8 tags. Each tag is 1 to 24 characters of lowercase letters, digits and single hyphens.
|
|
48
49
|
- `display.iconBackground`, `display.iconBackgroundDark` and `display.iconColor` are optional, and each must be a color in the form `#RRGGBB`.
|
|
49
|
-
- `display.icon` is
|
|
50
|
+
- `display.icon` is required when the template holds `"schema": 2`, and the template check answers `display.icon is required` when it is missing. `new` writes the legacy shape and leaves it out. To use your own icon, put a PNG at `assets/icon.png` and set `display.icon` to `"assets/icon.png"`. Any other path is a finding from SDK 0.1.9, and the package check fails a template that names an icon the package does not have. `adopt` sets `display.icon` in a template it writes, except a legacy template when `icon.png` is excluded in `uipath.json`, adds it to a schema 2 template that lacks it, and writes a default icon to `assets/icon.png` when the template names an icon the project does not have. It never touches an icon the project already has. The body of a new pull request that `submit` opens lists the default icon under the fields adopt generated, so replace it with your own. A later `submit` that updates the same pull request does not change its body. When the package holds `assets/icon.png`, from SDK 0.1.9 the package check requires a PNG file of at most 32768 bytes. `validate` packs the project, so it runs that check too.
|
|
50
51
|
- Nothing displays these fields yet. Flow does not read `uipath-extensions.json` (flow-workbench `fb24f7e` has no reference to `uipath-extensions`).
|
|
51
52
|
|
|
52
53
|
`author` is optional and says who publishes the node, for Flow to show next to the badge. `author.name` is 1 to 80 characters with no `<` or `>`. `author.url` is optional, an `https://` URL of at most 200 characters with no credentials or backslash. No other key is allowed. The manifest carries the object as given. `security_contact` in the registration is the contact for UiPath and is not the author. The SDK and the `contract` gate enforce these rules from the release after SDK 0.1.14, and Flow does not show the field yet.
|
|
@@ -88,7 +89,7 @@ A default must satisfy the schema of its own property. No gate checks that.
|
|
|
88
89
|
|
|
89
90
|
Throw an error from the function to report a failure. The connection helper does this with a `VendorError` (see Call a vendor through a connection).
|
|
90
91
|
|
|
91
|
-
Keep failure tests in `fixtures/`. A fixture whose name ends in `.fault.json` is an input that the function must reject. The `fixtures` gate fails when the runner accepts one, and it also needs at least one fixture without that suffix. `
|
|
92
|
+
Keep failure tests in `fixtures/`. A fixture whose name ends in `.fault.json` is an input that the function must reject. The `fixtures` gate fails when the runner accepts one, and it also needs at least one fixture without that suffix. Without a fixture runner the gate still checks the `fixtures/` folder, from file names only, and skips only the run of each fixture. `validate` has no runner, so it does that (see Limits). `new` and adopt write a starter `fixtures/example.json`. It is a placeholder, so replace it with real cases.
|
|
92
93
|
|
|
93
94
|
Flow adds an `error` output and turns on error handling for every Function node (flow-workbench `fb24f7e`, `packages/flow-core/src/manifest/mappers/node-manifest-builder.ts`). This README does not specify what that output holds.
|
|
94
95
|
|
|
@@ -182,9 +183,10 @@ The output ends with the destination.
|
|
|
182
183
|
|
|
183
184
|
## Library
|
|
184
185
|
|
|
185
|
-
The `@uipath/uipath-extensions-sdk/lib` export runs
|
|
186
|
+
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
187
|
|
|
187
|
-
- `
|
|
188
|
+
- `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.
|
|
189
|
+
- `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
190
|
- `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
191
|
- `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
192
|
|
|
@@ -192,16 +194,20 @@ The `release` command and its exports (`release`, `ReleaseError`, `ReleaseOption
|
|
|
192
194
|
|
|
193
195
|
## Adopt
|
|
194
196
|
|
|
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
|
|
197
|
+
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
198
|
|
|
197
199
|
- 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
200
|
- 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`.
|
|
199
|
-
- A missing `uipath-extensions.json` becomes a write of a template that passes the gates, from the one operation in `entry-points.json`. It sets `license` to the one `package.json` declares, or to `MIT` when `package.json` declares none, `display.label` to the node name in title case cut to 40 characters, a one-sentence `display.description` and operation description that ask the author to describe the node, and an empty `tags` list. Its shape follows `template_schema` in `policy/gate-library.yaml` of the index repo: schema 2 gets `"schema": 2` and no `version`, an absent key gets the legacy shape with the `package.json` version, and any other value is an error. The index repo is the one `--index` names, and `UiPath/uipath-extensions` by default.
|
|
201
|
+
- A missing `uipath-extensions.json` becomes a write of a template that passes the gates, from the one operation in `entry-points.json`. It sets `license` to the one `package.json` declares, or to `MIT` when `package.json` declares none, `display.label` to the node name in title case cut to 40 characters, a one-sentence `display.description` and operation description that ask the author to describe the node, and an empty `tags` list. It sets `display.icon` to `assets/icon.png`, except in a legacy template when `icon.png` is excluded. Its shape follows `template_schema` in `policy/gate-library.yaml` of the index repo: schema 2 gets `"schema": 2` and no `version`, an absent key gets the legacy shape with the `package.json` version, and any other value is an error. The index repo is the one `--index` names, and `UiPath/uipath-extensions` by default.
|
|
202
|
+
- A missing `assets/icon.png` becomes a write of the default icon, a PNG of 256 by 256 pixels (the `language` glyph of `@uipath/apollo-core`, whose MIT notice ships in `THIRD-PARTY-NOTICES.txt`). The plan holds it as a base64 string with `encoding: "base64"`, and the diff prints one line with its size. An icon the project already has is never touched. Adopt writes the icon only when the template names it, so a legacy template with no `display.icon` gets no icon file.
|
|
203
|
+
- A schema 2 template with no `display.icon` becomes a write of the same template with `display.icon` set to `assets/icon.png`. The write keeps the indent and every other key, and `upload` adopts this case in the same run as it adopts a missing template.
|
|
204
|
+
- When `uipath.json` lists `icon.png` or `assets` in `packOptions.filesExcluded` or `packOptions.directoriesExcluded`, the packer would leave the icon out. Adopt then returns an error for a schema 2 template that names the icon or needs it added, and names the entry to remove. For a legacy template it skips the icon.
|
|
200
205
|
- A missing `maestro/connection.ts` becomes a write when an input is a connection. The helper reads `process.env`, so the plan adds `@types/node` to the `devDependencies` of `package.json` whenever an input is a connection and neither dependency list holds it, also when the helper already exists, and reports that `npm install` has to run.
|
|
206
|
+
- A project with no fixture that lacks the `.fault.json` suffix gets a write of `fixtures/example.json` with `{ "operation": "<name>" }`, where `<name>` is the first operation of the template (or, for a new template, the name of the entry point file). It is a placeholder, so replace it with real cases.
|
|
201
207
|
- The packed archive is read with the same limits as the gates: 2000 entries, 20 MiB for an entry and 100 MiB in all.
|
|
202
|
-
- A write is an error when its path or any folder above it in the project is a symlink, so adopt never writes outside the project. A new file is created only when nothing exists at its path.
|
|
208
|
+
- A write is an error when its path or any folder above it in the project is a symlink or is not a folder, so adopt never writes outside the project. Applying a plan also fails when a file it rewrites changed after the plan, so a template edited in the meantime is not overwritten. A new file is created only when nothing exists at its path.
|
|
203
209
|
- A file named `.DS_Store`, `.env.example`, `.env.local`, `Thumbs.db` or `desktop.ini`, or a folder named `.idea` or `.vscode`, at any depth, becomes one write of `uipath.json` that adds the name to `packOptions.filesExcluded` or `packOptions.directoriesExcluded`. `uip function pack` and `submit` skip an entry by its bare name, and a `uip function new` project holds `.env.example`. `.env.local` can hold secrets, and the package check rejects any env file other than `.env.example`. The write keeps every other key, the indent and the trailing newline of `uipath.json`. Adopt deletes no file. When `packOptions` is not an object or the list it needs is not a list, the plan gets the error `uipath.json packOptions.<list> is not a list` and no write.
|
|
204
|
-
- Files outside the source list and an input with no description are reports, not writes. Each report names its remedy. An input with no description does not stop `submit`, because `validate` lists it as a `review` finding. A file or folder outside the source list can be deleted or added to `packOptions.filesExcluded` or `packOptions.directoriesExcluded` in `uipath.json`, and `submit` names the same remedy when it refuses to send one. An input needs a JSON Schema literal in `defineFunction({ input })` or a `.describe()` call on the validator, because `defineSchema<T>()` drops every description.
|
|
210
|
+
- Files outside the source list and an input with no description are reports, not writes. Each report names its remedy. An input with no description does not stop `submit`, because `validate` lists it as a `review` finding. A file or folder outside the source list can be deleted or added to `packOptions.filesExcluded` or `packOptions.directoriesExcluded` in `uipath.json`, and `submit` names the same remedy when it refuses to send one. An input needs a JSON Schema literal in `defineFunction({ input })` or a `.describe()` call on the validator, because `defineSchema<T>()` drops every description.
|
|
205
211
|
|
|
206
212
|
`submit` with writes in the plan and no `--yes` prints the diff, returns `ConfirmationRequired`, exits 1 and writes none of the adopt files. With `--yes` it writes the files and goes on to the checks and the pull request in the same run, so a fresh project needs one `submit --yes` and no second run. Use `--dry-run` with `--yes` to adopt the project and see the plan without opening a pull request. Replace the default license, label and descriptions with your own before the pull request is merged. `upload` on an unadopted project does the same with its own `--yes`. It prints the diff, writes the files and goes on to the upload in the same run, and it reads no index, so it needs no `gh`. The `submit` pull request body lists each field that the adopt step generated, so a reviewer can tell tool text from author text. That list covers only the run that adopts.
|
|
207
213
|
|
|
@@ -211,7 +217,7 @@ A project is adopted when it has a template, a package name that is a package id
|
|
|
211
217
|
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.
|
|
212
218
|
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.
|
|
213
219
|
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.`
|
|
214
|
-
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` and `*.nupkg`. 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.
|
|
220
|
+
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.
|
|
215
221
|
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.
|
|
216
222
|
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>/`.
|
|
217
223
|
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.
|
|
@@ -244,7 +250,7 @@ All GitHub calls go through a `GitHubClient`. `ghClient()` implements it with `g
|
|
|
244
250
|
- `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.
|
|
245
251
|
- `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.
|
|
246
252
|
- 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.
|
|
247
|
-
- `validate` skips the seven gates that need GitHub, the npm registry, the index or a license scanner
|
|
253
|
+
- `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.
|
|
248
254
|
- 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`.
|
|
249
255
|
- `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.
|
|
250
256
|
- `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.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Third-party notices for @uipath/uipath-extensions-sdk
|
|
2
|
+
|
|
3
|
+
The default node icon in dist/defaultIcon.js is a render of the "language" glyph of
|
|
4
|
+
@uipath/apollo-core 5.15.3 (https://github.com/UiPath/apollo-ui), used under the
|
|
5
|
+
following license.
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2025 UiPath
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
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
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { lstat, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import { CONNECTION_HELPER_PATH, CONNECTION_HELPER_SOURCE, connectionInputNames, ICON_PATH, isAllowedSourceDir, isAllowedSourcePath, isLocalOnlySource, MANIFEST_FILE, PackedArchiveError, packageNameProblem, packedName, parsePacked, readPackedEntries, } from "@uipath/uipath-extensions-gates";
|
|
3
|
+
import { CONNECTION_HELPER_PATH, CONNECTION_HELPER_SOURCE, connectionInputNames, FIXTURES_DIR, fixtureProblem, ICON_PATH, isAllowedSourceDir, isAllowedSourcePath, isLocalOnlySource, MANIFEST_FILE, PackedArchiveError, packageNameProblem, packedName, parsePacked, readPackedEntries, } from "@uipath/uipath-extensions-gates";
|
|
4
4
|
import { strFromU8 } from "fflate";
|
|
5
5
|
import { parse } from "yaml";
|
|
6
6
|
import { labelOf, TYPES_NODE_PACKAGE, TYPES_NODE_VERSION, } from "./commands/new.js";
|
|
7
|
+
import { PackError, withRegistrationExcluded } from "./commands/pack.js";
|
|
7
8
|
import { DEFAULT_INDEX_REPO } from "./commands/submit.js";
|
|
9
|
+
import { DEFAULT_ICON_BASE64 } from "./defaultIcon.js";
|
|
8
10
|
import { exists } from "./exists.js";
|
|
11
|
+
import { FIXTURE_PATH, starterFixtureText } from "./fixture.js";
|
|
9
12
|
import { GitHubError, ghClient } from "./github.js";
|
|
13
|
+
import { REGISTRATION_FILE } from "./registrationFile.js";
|
|
10
14
|
import { excludedNames, isSkippedEntry, offListRemedy, walkSources, } from "./sourceWalk.js";
|
|
11
15
|
import { UipMissingError } from "./uip.js";
|
|
12
16
|
const PACK_TIMEOUT_MS = 600_000;
|
|
@@ -14,9 +18,34 @@ const MAX_OUTPUT_CHARS = 2000;
|
|
|
14
18
|
const POLICY_FILE = "policy/gate-library.yaml";
|
|
15
19
|
const SCHEMA_KEY = "template_schema";
|
|
16
20
|
export const NAME_PREFIX = "uipath-extensions.";
|
|
21
|
+
export const MISSING_ID_ERROR = "pass <publisher>.<name>";
|
|
22
|
+
export class StaleAdoptPlanError extends Error {
|
|
23
|
+
path;
|
|
24
|
+
constructor(path) {
|
|
25
|
+
super(`${path} changed after the plan, plan again`);
|
|
26
|
+
this.path = path;
|
|
27
|
+
this.name = "StaleAdoptPlanError";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
const DEFAULT_LICENSE = "MIT";
|
|
18
31
|
const NODE_DESCRIPTION = "Describe what this node does in one sentence.";
|
|
19
32
|
const OPERATION_DESCRIPTION = "Describe what this operation does.";
|
|
33
|
+
const ICON_NAMES = ICON_PATH.split("/");
|
|
34
|
+
const iconExcludedProblem = (name) => `uipath.json packOptions excludes ${name}, so ${ICON_PATH} would not be packed, remove ${name} from packOptions, then run again`;
|
|
35
|
+
const iconReferenceGenerated = () => ({
|
|
36
|
+
field: "display.icon",
|
|
37
|
+
value: ICON_PATH,
|
|
38
|
+
});
|
|
39
|
+
const iconFileGenerated = () => ({
|
|
40
|
+
field: ICON_PATH,
|
|
41
|
+
value: "a default icon, replace it with your own",
|
|
42
|
+
});
|
|
43
|
+
const defaultIconWrite = () => ({
|
|
44
|
+
path: ICON_PATH,
|
|
45
|
+
before: null,
|
|
46
|
+
after: DEFAULT_ICON_BASE64,
|
|
47
|
+
encoding: "base64",
|
|
48
|
+
});
|
|
20
49
|
const JUNK = {
|
|
21
50
|
filesExcluded: [
|
|
22
51
|
".DS_Store",
|
|
@@ -56,11 +85,31 @@ function parseJson(text) {
|
|
|
56
85
|
return undefined;
|
|
57
86
|
}
|
|
58
87
|
}
|
|
88
|
+
async function starterFixtureBlocked(dir) {
|
|
89
|
+
const folder = await lstat(join(dir, FIXTURES_DIR)).catch(() => undefined);
|
|
90
|
+
if (folder && !folder.isDirectory() && !folder.isSymbolicLink()) {
|
|
91
|
+
return `${FIXTURES_DIR} is a file, move it away, because the node needs a ${FIXTURES_DIR}/ folder`;
|
|
92
|
+
}
|
|
93
|
+
const starter = await lstat(join(dir, FIXTURE_PATH)).catch(() => undefined);
|
|
94
|
+
if (starter) {
|
|
95
|
+
return `${FIXTURE_PATH} is in the way, move it away, because adopt writes a starter fixture there`;
|
|
96
|
+
}
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
function templateOperation(text) {
|
|
100
|
+
const template = text === undefined ? undefined : parseJson(text);
|
|
101
|
+
const operations = isRecord(template) ? template.operations : undefined;
|
|
102
|
+
const first = Array.isArray(operations) ? operations[0] : undefined;
|
|
103
|
+
return isRecord(first) && typeof first.name === "string" && first.name !== ""
|
|
104
|
+
? first.name
|
|
105
|
+
: undefined;
|
|
106
|
+
}
|
|
59
107
|
async function outsideSourceList(root, excluded) {
|
|
60
108
|
const found = [];
|
|
61
109
|
await walkSources(root, async (entry, path, dir) => {
|
|
62
110
|
if (isSkippedEntry(entry, dir, excluded) ||
|
|
63
|
-
(dir === "" && isLocalOnlySource(entry.name))
|
|
111
|
+
(dir === "" && isLocalOnlySource(entry.name)) ||
|
|
112
|
+
(dir === "" && entry.isFile() && entry.name === REGISTRATION_FILE)) {
|
|
64
113
|
return false;
|
|
65
114
|
}
|
|
66
115
|
if (entry.isDirectory()) {
|
|
@@ -154,7 +203,7 @@ async function templateSchema(deps, index) {
|
|
|
154
203
|
return { schema: undefined };
|
|
155
204
|
return value === 2 ? { schema: 2 } : { error: UPGRADE };
|
|
156
205
|
}
|
|
157
|
-
function newTemplate(schema, version, packageName, operation,
|
|
206
|
+
function newTemplate(schema, version, packageName, operation, icon, declaredLicense) {
|
|
158
207
|
const label = labelOf(packageName.split(".").pop() ?? "");
|
|
159
208
|
const text = json({
|
|
160
209
|
...(schema === 2 ? { schema } : { version }),
|
|
@@ -162,7 +211,7 @@ function newTemplate(schema, version, packageName, operation, hasIcon, declaredL
|
|
|
162
211
|
display: {
|
|
163
212
|
label,
|
|
164
213
|
description: NODE_DESCRIPTION,
|
|
165
|
-
...(
|
|
214
|
+
...(icon !== "none" && { icon: ICON_PATH }),
|
|
166
215
|
},
|
|
167
216
|
tags: [],
|
|
168
217
|
operations: [{ name: operation, description: OPERATION_DESCRIPTION }],
|
|
@@ -176,9 +225,46 @@ function newTemplate(schema, version, packageName, operation, hasIcon, declaredL
|
|
|
176
225
|
{ field: "operations[0].name", value: operation },
|
|
177
226
|
{ field: "operations[0].description", value: OPERATION_DESCRIPTION },
|
|
178
227
|
{ field: "tags", value: "[]" },
|
|
228
|
+
...(icon === "default"
|
|
229
|
+
? [iconReferenceGenerated(), iconFileGenerated()]
|
|
230
|
+
: []),
|
|
179
231
|
];
|
|
180
232
|
return { text, generated };
|
|
181
233
|
}
|
|
234
|
+
function planExistingTemplateIcon(plan, { text, hasIcon, iconExclusion, }) {
|
|
235
|
+
const template = parseJson(text);
|
|
236
|
+
if (!isRecord(template) || !isRecord(template.display))
|
|
237
|
+
return;
|
|
238
|
+
const { display } = template;
|
|
239
|
+
const schemaTwo = template.schema === 2;
|
|
240
|
+
const repair = schemaTwo && display.icon === undefined;
|
|
241
|
+
if (!repair && display.icon !== ICON_PATH)
|
|
242
|
+
return;
|
|
243
|
+
if (iconExclusion !== undefined) {
|
|
244
|
+
if (schemaTwo)
|
|
245
|
+
plan.errors.push(iconExcludedProblem(iconExclusion));
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (!repair && hasIcon)
|
|
249
|
+
return;
|
|
250
|
+
const generated = plan.generated ?? [];
|
|
251
|
+
if (repair) {
|
|
252
|
+
plan.writes.push({
|
|
253
|
+
path: MANIFEST_FILE,
|
|
254
|
+
before: text,
|
|
255
|
+
after: jsonWriter(text)({
|
|
256
|
+
...template,
|
|
257
|
+
display: { ...display, icon: ICON_PATH },
|
|
258
|
+
}),
|
|
259
|
+
});
|
|
260
|
+
generated.push(iconReferenceGenerated());
|
|
261
|
+
}
|
|
262
|
+
if (!hasIcon) {
|
|
263
|
+
plan.writes.push(defaultIconWrite());
|
|
264
|
+
generated.push(iconFileGenerated());
|
|
265
|
+
}
|
|
266
|
+
plan.generated = generated;
|
|
267
|
+
}
|
|
182
268
|
function operationName(filePath) {
|
|
183
269
|
const base = typeof filePath === "string" ? filePath.split("/").pop() : "";
|
|
184
270
|
const name = (base ?? "")
|
|
@@ -189,12 +275,14 @@ function operationName(filePath) {
|
|
|
189
275
|
async function runPack(deps, dir, nupkgName) {
|
|
190
276
|
let result;
|
|
191
277
|
try {
|
|
192
|
-
result = await deps.exec("uip", ["function", "pack"], {
|
|
278
|
+
result = await withRegistrationExcluded(dir, () => deps.exec("uip", ["function", "pack"], {
|
|
193
279
|
cwd: dir,
|
|
194
280
|
timeout: PACK_TIMEOUT_MS,
|
|
195
|
-
});
|
|
281
|
+
}));
|
|
196
282
|
}
|
|
197
283
|
catch (error) {
|
|
284
|
+
if (error instanceof PackError)
|
|
285
|
+
return { error: error.message };
|
|
198
286
|
if (error.code === "ENOENT") {
|
|
199
287
|
return { error: new UipMissingError().message };
|
|
200
288
|
}
|
|
@@ -268,7 +356,7 @@ export async function planAdopt(opts, deps) {
|
|
|
268
356
|
let nextPkg = pkg;
|
|
269
357
|
if (packageNameProblem(pkg.name) !== undefined) {
|
|
270
358
|
if (opts.id === undefined) {
|
|
271
|
-
plan.errors.push(
|
|
359
|
+
plan.errors.push(MISSING_ID_ERROR);
|
|
272
360
|
}
|
|
273
361
|
else {
|
|
274
362
|
const name = `${NAME_PREFIX}${opts.id}`;
|
|
@@ -308,8 +396,12 @@ export async function planAdopt(opts, deps) {
|
|
|
308
396
|
if (entryPoints.length > 1)
|
|
309
397
|
return fail("a node holds one function");
|
|
310
398
|
const entry = isRecord(entryPoints[0]) ? entryPoints[0] : {};
|
|
311
|
-
const
|
|
312
|
-
|
|
399
|
+
const hasIcon = await exists(join(opts.dir, ICON_PATH));
|
|
400
|
+
const excluded = excludedNames(uipath);
|
|
401
|
+
const iconExclusion = ICON_NAMES.find((name) => excluded.has(name));
|
|
402
|
+
const manifestText = await readText(join(opts.dir, MANIFEST_FILE));
|
|
403
|
+
const operation = templateOperation(manifestText) ?? operationName(entry.filePath);
|
|
404
|
+
if (manifestText === undefined) {
|
|
313
405
|
const found = opts.offline
|
|
314
406
|
? { schema: 2 }
|
|
315
407
|
: await templateSchema(deps, opts.index ?? DEFAULT_INDEX_REPO);
|
|
@@ -317,13 +409,39 @@ export async function planAdopt(opts, deps) {
|
|
|
317
409
|
plan.errors.push(found.error);
|
|
318
410
|
}
|
|
319
411
|
else {
|
|
320
|
-
const
|
|
412
|
+
const skipIcon = iconExclusion !== undefined && found.schema === undefined;
|
|
413
|
+
if (iconExclusion !== undefined && !skipIcon) {
|
|
414
|
+
plan.errors.push(iconExcludedProblem(iconExclusion));
|
|
415
|
+
}
|
|
416
|
+
const template = newTemplate(found.schema, pkg.version, String(nextPkg.name), operation, skipIcon ? "none" : hasIcon ? "own" : "default", pkg.license);
|
|
321
417
|
plan.writes.push({
|
|
322
418
|
path: MANIFEST_FILE,
|
|
323
419
|
before: null,
|
|
324
420
|
after: template.text,
|
|
325
421
|
});
|
|
326
422
|
plan.generated = template.generated;
|
|
423
|
+
if (!hasIcon && !skipIcon)
|
|
424
|
+
plan.writes.push(defaultIconWrite());
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
planExistingTemplateIcon(plan, {
|
|
429
|
+
text: manifestText,
|
|
430
|
+
hasIcon,
|
|
431
|
+
iconExclusion,
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
if ((await fixtureProblem(opts.dir)) !== undefined) {
|
|
435
|
+
const blocked = await starterFixtureBlocked(opts.dir);
|
|
436
|
+
if (blocked !== undefined) {
|
|
437
|
+
plan.errors.push(blocked);
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
plan.writes.push({
|
|
441
|
+
path: FIXTURE_PATH,
|
|
442
|
+
before: null,
|
|
443
|
+
after: starterFixtureText(operation),
|
|
444
|
+
});
|
|
327
445
|
}
|
|
328
446
|
}
|
|
329
447
|
const input = isRecord(entry.input) ? entry.input : {};
|
|
@@ -364,7 +482,6 @@ export async function planAdopt(opts, deps) {
|
|
|
364
482
|
});
|
|
365
483
|
}
|
|
366
484
|
}
|
|
367
|
-
const excluded = excludedNames(uipath);
|
|
368
485
|
const junk = await junkNames(opts.dir, excluded);
|
|
369
486
|
let skipped = excluded;
|
|
370
487
|
if (junk.length > 0) {
|
|
@@ -401,9 +518,13 @@ async function symlinkProblem(root, path) {
|
|
|
401
518
|
for (let depth = 1; depth <= parts.length; depth++) {
|
|
402
519
|
const part = parts.slice(0, depth).join("/");
|
|
403
520
|
try {
|
|
404
|
-
|
|
521
|
+
const info = await lstat(join(root, part));
|
|
522
|
+
if (info.isSymbolicLink()) {
|
|
405
523
|
return `${part} is a symlink, and adopt does not write through a symlink`;
|
|
406
524
|
}
|
|
525
|
+
if (depth < parts.length && !info.isDirectory()) {
|
|
526
|
+
return `${part} is not a directory, and adopt writes ${path} below it`;
|
|
527
|
+
}
|
|
407
528
|
}
|
|
408
529
|
catch (error) {
|
|
409
530
|
const { code } = error;
|
|
@@ -415,20 +536,23 @@ async function symlinkProblem(root, path) {
|
|
|
415
536
|
return undefined;
|
|
416
537
|
}
|
|
417
538
|
export async function applyAdopt(plan, opts) {
|
|
418
|
-
for (const { path } of plan.writes) {
|
|
539
|
+
for (const { path, before } of plan.writes) {
|
|
419
540
|
const problem = await symlinkProblem(opts.dir, path);
|
|
420
541
|
if (problem !== undefined)
|
|
421
542
|
throw new Error(problem);
|
|
543
|
+
if (before !== null && (await readText(join(opts.dir, path))) !== before) {
|
|
544
|
+
throw new StaleAdoptPlanError(path);
|
|
545
|
+
}
|
|
422
546
|
}
|
|
423
547
|
const markers = new Set(["package.json", MANIFEST_FILE]);
|
|
424
548
|
const ordered = [
|
|
425
549
|
...plan.writes.filter(({ path }) => !markers.has(path)),
|
|
426
550
|
...plan.writes.filter(({ path }) => markers.has(path)),
|
|
427
551
|
];
|
|
428
|
-
for (const { path, before, after } of ordered) {
|
|
552
|
+
for (const { path, before, after, encoding } of ordered) {
|
|
429
553
|
const file = join(opts.dir, path);
|
|
430
554
|
await mkdir(dirname(file), { recursive: true });
|
|
431
|
-
await writeFile(file, after, before === null ? { flag: "wx" } : undefined);
|
|
555
|
+
await writeFile(file, encoding === "base64" ? Buffer.from(after, "base64") : after, before === null ? { flag: "wx" } : undefined);
|
|
432
556
|
}
|
|
433
557
|
}
|
|
434
558
|
//# sourceMappingURL=adopt.js.map
|
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,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,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,eAAe,GAAG,OAAO,CAAC;AAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,WAAW,GAAG,0BAA0B,CAAC;AAC/C,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAChD,MAAM,eAAe,GAAG,KAA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