@uipath/codedagent-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 +34 -6
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +8 -9
- package/dist/init.js +4 -5
- 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-kh9ddkna.js → tool-15c9bc3a.js} +1615 -586
- package/dist/{tool-0jywrjjt.js → tool-5t5a0c8c.js} +38 -43
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/tool.js +7 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,6 +42,10 @@ Options:
|
|
|
42
42
|
If the current directory contains a `.venv` but no virtual environment is
|
|
43
43
|
activated, `setup` stops and tells you to activate it first.
|
|
44
44
|
|
|
45
|
+
`setup` also refuses a `uipath` older than the floor this CLI supports, and
|
|
46
|
+
reports that floor as `RequiredPackageVersion` in its success envelope. See
|
|
47
|
+
[Version floor](#version-floor).
|
|
48
|
+
|
|
45
49
|
### review
|
|
46
50
|
|
|
47
51
|
Reviews a coded agent project against the deterministic rule set. Returns a
|
|
@@ -128,6 +132,7 @@ Python error:
|
|
|
128
132
|
| --- | --- | --- |
|
|
129
133
|
| Command outside the whitelist | `ValidationError` | 3 |
|
|
130
134
|
| Python not configured (`setup` never run) | `ConfigError` | 1 |
|
|
135
|
+
| Bound `uipath` older than the floor, or unable to report its version | `ConfigError` | 1 |
|
|
131
136
|
| `push` without `UIPATH_PROJECT_ID` | `ConfigError` | 1 |
|
|
132
137
|
| `deploy` / `publish -w` without the workspace scope | `ConfigError` | 1 |
|
|
133
138
|
| `setup` with an unactivated `.venv` | `Failure` | 1 |
|
|
@@ -143,10 +148,11 @@ The following settings are configured in the code:
|
|
|
143
148
|
|
|
144
149
|
#### Python Versions
|
|
145
150
|
|
|
146
|
-
Accepted versions: `3.
|
|
151
|
+
Accepted versions: `3.11` to `3.15`.
|
|
147
152
|
|
|
148
|
-
|
|
149
|
-
commands and takes the first one whose
|
|
153
|
+
The default list is `3.14,3.13,3.12,3.11,3.15`. Its order only sets the probe
|
|
154
|
+
order: `setup` walks a list of candidate commands and takes the first one whose
|
|
155
|
+
reported `major.minor` is accepted:
|
|
150
156
|
|
|
151
157
|
- **Windows** - `python`, `python3`, then `python<version>` for each accepted
|
|
152
158
|
version, then `py -<version>` for each, then `py`.
|
|
@@ -164,12 +170,35 @@ replaces the list entirely:
|
|
|
164
170
|
|
|
165
171
|
```bash
|
|
166
172
|
# Windows
|
|
167
|
-
set PYTHON_TOOL_PYTHON_VERSIONS=3.14,3.13,3.12,3.11
|
|
173
|
+
set PYTHON_TOOL_PYTHON_VERSIONS=3.14,3.13,3.12,3.11,3.15
|
|
168
174
|
|
|
169
175
|
# Linux/macOS
|
|
170
|
-
export PYTHON_TOOL_PYTHON_VERSIONS=3.14,3.13,3.12,3.11
|
|
176
|
+
export PYTHON_TOOL_PYTHON_VERSIONS=3.14,3.13,3.12,3.11,3.15
|
|
171
177
|
```
|
|
172
178
|
|
|
179
|
+
### Version floor
|
|
180
|
+
|
|
181
|
+
`uip` and its npm tools move in lockstep, but the Python `uipath` CLI releases
|
|
182
|
+
on its own schedule and `uv` resolves a per-project copy into `.venv`
|
|
183
|
+
independently of any global install. So `@uipath/uipath-python-bridge` declares
|
|
184
|
+
the minimum `uipath` it supports in its `package.json`:
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
"uipath": {
|
|
188
|
+
"requires": {
|
|
189
|
+
"uipath": ">=2.14.41"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
The floor is held in two places. `setup` refuses to bind an executable below it
|
|
195
|
+
(and writes no cache). Every forwarded command then runs `uipath --version` on
|
|
196
|
+
the bound executable right before spawning it (the cache never holds a version) so an
|
|
197
|
+
in-place upgrade or downgrade, or a venv that differs from the global install,
|
|
198
|
+
is caught at the binary that will actually run. The failure names the path,
|
|
199
|
+
the version found and the version required. `--log-level debug` prints the
|
|
200
|
+
resolved path and version before every spawn. There is no override.
|
|
201
|
+
|
|
173
202
|
### Cache File
|
|
174
203
|
|
|
175
204
|
`setup` writes `~/.uipath/.uipath-python-cache.json`, shared with
|
|
@@ -180,7 +209,6 @@ consumers. It stores:
|
|
|
180
209
|
- Last validation timestamp
|
|
181
210
|
- Package name
|
|
182
211
|
- Resolved `uipath` executable path
|
|
183
|
-
- Installed package version
|
|
184
212
|
|
|
185
213
|
If the cached path no longer exists, `setup` re-detects automatically. The
|
|
186
214
|
forwarded commands do not re-detect - they fail with a `ConfigError` pointing back
|
|
@@ -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,17 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import {
|
|
3
|
-
metadata,
|
|
4
|
-
registerCommands
|
|
5
|
-
} from "./tool-0jywrjjt.js";
|
|
6
2
|
import {
|
|
7
3
|
Command
|
|
8
|
-
} from "./tool-
|
|
9
|
-
import
|
|
4
|
+
} from "./tool-15c9bc3a.js";
|
|
5
|
+
import {
|
|
6
|
+
metadata2,
|
|
7
|
+
registerCommands2
|
|
8
|
+
} from "./tool-5t5a0c8c.js";
|
|
10
9
|
|
|
11
10
|
// src/index.ts
|
|
12
11
|
var program = new Command;
|
|
13
|
-
program.name(
|
|
14
|
-
await
|
|
12
|
+
program.name(metadata2.name).version(metadata2.version).description(metadata2.description);
|
|
13
|
+
await registerCommands2(program);
|
|
15
14
|
program.parse(process.argv);
|
|
16
15
|
|
|
17
|
-
//# debugId=
|
|
16
|
+
//# debugId=F66EA17E3E13BD9064756E2164756E21
|
package/dist/init.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
runUipathPythonCommand,
|
|
2
3
|
COMMAND_RULES,
|
|
3
|
-
codedAgentCommandPreflight
|
|
4
|
-
|
|
5
|
-
} from "./tool-kh9ddkna.js";
|
|
6
|
-
import"./tool-1de529jm.js";
|
|
4
|
+
codedAgentCommandPreflight
|
|
5
|
+
} from "./tool-15c9bc3a.js";
|
|
7
6
|
|
|
8
7
|
// src/services/codedagent-init-service.ts
|
|
9
8
|
async function codedagentInitAsync(options) {
|
|
@@ -34,4 +33,4 @@ export {
|
|
|
34
33
|
codedagentInitAsync
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
//# debugId=
|
|
36
|
+
//# debugId=FDCB0760191ECF3E64756E2164756E21
|
|
@@ -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
|