@uipath/aops-tool 1.205.0-preview.281 → 1.206.0-preview.282
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 +46 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +6 -7
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-725ks6cv.js → tool-ba9b7hzm.js} +1174 -660
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/tool.js +6 -7
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @uipath/aops-tool
|
|
2
|
+
|
|
3
|
+
`uip` tool for UiPath StudioAdmin AOps. It adds `uip aops`, which reads the
|
|
4
|
+
SourceControl service (connections to GitHub or Azure DevOps, repositories,
|
|
5
|
+
automation projects and Studio solutions found through them) and drives the
|
|
6
|
+
CICD service (pipelines and their executions).
|
|
7
|
+
|
|
8
|
+
Connections and runtime environments are set up in the StudioAdmin UI. The CLI
|
|
9
|
+
works with ones that already exist, by id.
|
|
10
|
+
|
|
11
|
+
Full page: [docs/tools/aops.md](../../docs/tools/aops.md).
|
|
12
|
+
|
|
13
|
+
## Commands
|
|
14
|
+
|
|
15
|
+
| Group | Commands | Purpose |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `connection` | `list`, `state`, `sync`, `delete`, `repos`, `repos-bulk`, `projects`, `solutions`, `azure-projects` | SourceControl connections and what they can see |
|
|
18
|
+
| `repo` | `branches`, `project-files` | Branches and `project.json` roots in a repository |
|
|
19
|
+
| `project` | `list`, `get`, `files`, `content`, `commits`, `commit` | Automation projects, their files and commit history |
|
|
20
|
+
| `solution` | `get`, `commits` | Studio solutions and their commit history |
|
|
21
|
+
| `pipeline` | `list`, `state`, `processes`, `process`, `repos`, `get`, `search`, `create`, `update`, `delete`, `run`, `save-and-run`, `executions`, `executions-bulk` | CICD pipelines in the active runtime environment |
|
|
22
|
+
| `execution` | `get`, `logs`, `details`, `stop` | Pipeline executions |
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
uip aops connection list
|
|
28
|
+
uip aops connection sync <connection-id> --wait
|
|
29
|
+
uip aops project list --search Invoice --limit 20
|
|
30
|
+
uip aops project get --project-id <project-id> --with-branches
|
|
31
|
+
uip aops pipeline get <pipeline-id> --for-update --output-file ./pipeline.json
|
|
32
|
+
uip aops pipeline update <pipeline-id> --file ./pipeline.json
|
|
33
|
+
uip aops pipeline run <pipeline-id>
|
|
34
|
+
uip aops execution logs <execution-id> --follow
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`pipeline update` is a full replace: fields missing from the file are cleared.
|
|
38
|
+
Build the file with `pipeline get --for-update --output-file`, not by
|
|
39
|
+
redirecting stdout (that writes the whole `Result`/`Code`/`Data` envelope).
|
|
40
|
+
|
|
41
|
+
## Authentication
|
|
42
|
+
|
|
43
|
+
Run `uip login` against an organization with the StudioAdmin SourceControl and
|
|
44
|
+
CICD services enabled. Pipeline commands need CICD permissions on the runtime
|
|
45
|
+
environment: `Pipelines.View` to read, `Pipelines.Edit` / `Pipelines.Run` to
|
|
46
|
+
change or run.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import"./tool-1de529jm.js";
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/open/index.js
|
|
4
2
|
import process7 from "node:process";
|
|
5
3
|
import path from "node:path";
|
|
@@ -548,22 +546,6 @@ var open = (target, options) => {
|
|
|
548
546
|
target
|
|
549
547
|
});
|
|
550
548
|
};
|
|
551
|
-
var openApp = (name, options) => {
|
|
552
|
-
if (typeof name !== "string" && !Array.isArray(name)) {
|
|
553
|
-
throw new TypeError("Expected a valid `name`");
|
|
554
|
-
}
|
|
555
|
-
const { arguments: appArguments = [] } = options ?? {};
|
|
556
|
-
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
|
557
|
-
throw new TypeError("Expected `appArguments` as Array type");
|
|
558
|
-
}
|
|
559
|
-
return baseOpen({
|
|
560
|
-
...options,
|
|
561
|
-
app: {
|
|
562
|
-
name,
|
|
563
|
-
arguments: appArguments
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
549
|
function detectArchBinary(binary) {
|
|
568
550
|
if (typeof binary === "string" || Array.isArray(binary)) {
|
|
569
551
|
return binary;
|
|
@@ -626,9 +608,7 @@ defineLazyProperty(apps, "safari", () => detectPlatformBinary({
|
|
|
626
608
|
}));
|
|
627
609
|
var open_default = open;
|
|
628
610
|
export {
|
|
629
|
-
|
|
630
|
-
open_default as default,
|
|
631
|
-
openApp
|
|
611
|
+
open_default as default
|
|
632
612
|
};
|
|
633
613
|
|
|
634
|
-
//# debugId=
|
|
614
|
+
//# debugId=6F288C058A3A412164756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
Command,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./tool-
|
|
7
|
-
import"./tool-1de529jm.js";
|
|
4
|
+
metadata2,
|
|
5
|
+
registerCommands2
|
|
6
|
+
} from "./tool-ba9b7hzm.js";
|
|
8
7
|
|
|
9
8
|
// src/index.ts
|
|
10
9
|
var program = new Command;
|
|
11
|
-
program.name(
|
|
12
|
-
await
|
|
10
|
+
program.name(metadata2.commandPrefix).description(metadata2.description).version(metadata2.version);
|
|
11
|
+
await registerCommands2(program);
|
|
13
12
|
program.parse(process.argv);
|
|
14
13
|
|
|
15
|
-
//# debugId=
|
|
14
|
+
//# debugId=E617823BB0C0DA9964756E2164756E21
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import"./tool-1de529jm.js";
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
4
2
|
function getDefaultExportFromCjs(x) {
|
|
5
3
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -3150,4 +3148,4 @@ export {
|
|
|
3150
3148
|
types
|
|
3151
3149
|
};
|
|
3152
3150
|
|
|
3153
|
-
//# debugId=
|
|
3151
|
+
//# debugId=41DC6971B94BC54964756E2164756E21
|