@uipath/case-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/dist/THIRD-PARTY-NOTICES.md +68 -7
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
- package/dist/bindings-v2-1da35xsc.js +27 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
- package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
- package/dist/carry-forward-sfdnta6q.js +52 -0
- package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
- package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
- package/dist/{case-debug-solution-projects-qqd3h10v.js → case-debug-solution-projects-je7h4hmq.js} +3 -7
- package/dist/{case-debug-studio-web-service-nqzmwbr5.js → case-debug-studio-web-service-d83h3atd.js} +48 -45
- package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
- package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
- package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
- package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
- package/dist/case-schema-version-cw0h2nrv.js +18 -0
- package/dist/case-shape-reader-xaxmrd40.js +14 -0
- package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
- package/dist/{case-validate-service-vq38va33.js → case-validate-service-hz0j90we.js} +234 -170
- package/dist/connector-enrichment-service-sjjmb9dy.js +56 -0
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/connector-lookup-service-yerhg9cd.js +20 -0
- package/dist/connector-task-shape-bgywpbqc.js +13 -0
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/debug-service-h4jxbn1r.js +56 -0
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
- package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
- package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
- package/dist/filter-engine-dh9s90gb.js +10 -0
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/index-21kns9qg.js +10 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/{connector-task-spec-pzfzmfr5.js → index-9f8naxbk.js} +320 -144
- package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
- package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
- package/dist/index-j9t2k52h.js +35 -0
- package/dist/index-myf7b4a5.js +26 -0
- package/dist/index-nj3axvya.js +159 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-pg9wmyrf.js +36 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -25
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
- package/dist/input-reader-9ym8mkbc.js +10 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/known-types-gak9by1w.js +11 -0
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
- package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
- package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
- package/dist/node-sync-service-y8b5w1rd.js +56 -0
- package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
- package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
- package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
- package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
- package/dist/packager-tool-1nfdj0zm.js +425 -0
- package/dist/packager-tool-1wgav5ma.js +139 -0
- package/dist/{packager-tool-b1nw50ev.js → packager-tool-265h946t.js} +256 -486
- package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
- package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
- package/dist/packager-tool-3m8482sw.js +78 -0
- package/dist/packager-tool-3r23qsca.js +4832 -0
- package/dist/packager-tool-3xehbdyd.js +1302 -0
- package/dist/packager-tool-4avchhz8.js +539 -0
- package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
- package/dist/packager-tool-68648y3j.js +6 -0
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
- package/dist/packager-tool-7x1tmb8a.js +46 -0
- package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
- package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
- package/dist/packager-tool-bg3tdpva.js +27 -0
- package/dist/{packager-tool-wr12ndwk.js → packager-tool-ccejfs0r.js} +252 -468
- package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
- package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
- package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
- package/dist/{packager-tool-qn3zkrrc.js → packager-tool-ehjw672b.js} +32 -15
- package/dist/packager-tool-gy4yjqhf.js +178 -0
- package/dist/packager-tool-h2ar8xf8.js +222 -0
- package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
- package/dist/packager-tool-k0ar6cn7.js +295 -0
- package/dist/packager-tool-kz7zz79p.js +71 -0
- package/dist/{packager-tool-1gwbq864.js → packager-tool-m5384a1s.js} +66 -82
- package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
- package/dist/packager-tool-mk9fmzdy.js +20 -0
- package/dist/{packager-tool-yfmby4dd.js → packager-tool-mkt1njk2.js} +630 -689
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
- package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
- package/dist/packager-tool-q26hncjr.js +13 -0
- package/dist/packager-tool-q9fnx278.js +77 -0
- package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
- package/dist/packager-tool-scy94jyb.js +5424 -0
- package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
- package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
- package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
- package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
- package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
- package/dist/packager-tool-vyavrbym.js +488 -0
- package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
- package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
- package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
- package/dist/packager-tool-yh8mmj3p.js +123 -0
- package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
- package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
- package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
- package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
- package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
- package/dist/packager-tool.js +10 -11
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
- package/dist/{resourcesSyncService-8ac6ncq2.js → resourcesSyncService-yrhhh62m.js} +81 -141
- package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
- package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
- package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
- package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
- package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
- package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
- package/dist/{sdd-resolve-siblings-8gf9zjwf.js → sdd-resolve-siblings-ap8j1c8h.js} +11 -14
- package/dist/solution-auth-a1p22hq1.js +11 -0
- package/dist/solution-discovery-r1y550sz.js +33 -0
- package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
- package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
- package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
- package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
- package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
- package/dist/tool.js +18 -24
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/{trigger-enrichment-service-agvnhdf7.js → trigger-enrichment-service-z8kxy6qr.js} +53 -57
- package/dist/trigger-entry-point-id-751v48qd.js +14 -0
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
- package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
- package/package.json +2 -2
- package/dist/canvas-notes-86fxx1t8.js +0 -19
- package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
- package/dist/case-schema-version-h820ne16.js +0 -20
- package/dist/case-shape-reader-dsbraetf.js +0 -13
- package/dist/connector-enrichment-service-6kskfevq.js +0 -65
- package/dist/connector-lookup-service-yyn8kkw7.js +0 -22
- package/dist/connector-task-shape-mpazkf7s.js +0 -14
- package/dist/debug-service-7q98j726.js +0 -59
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/index-0d7qc2gs.js +0 -282
- package/dist/index-jmv5by9z.js +0 -666
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-n9qvnx4x.js +0 -29
- package/dist/index-ngs0a2he.js +0 -15
- package/dist/index-xq6ajhgq.js +0 -157
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/input-reader-c7wz8ra2.js +0 -11
- package/dist/known-types-5b6yrsqn.js +0 -16
- package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
- package/dist/node-sync-service-2ezr3akv.js +0 -57
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-93mdeqay.js +0 -18
- package/dist/packager-tool-9kf3fqtr.js +0 -23
- package/dist/packager-tool-bfgdz1zh.js +0 -73
- package/dist/packager-tool-e15kqpyh.js +0 -266
- package/dist/packager-tool-gmykn1ef.js +0 -5365
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-rk25wp3c.js +0 -28
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-wekqkmgn.js +0 -265
- package/dist/packager-tool-yc4kw997.js +0 -13
- package/dist/packager-tool-zgpsnxkd.js +0 -13189
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/solution-auth-30yycqtv.js +0 -14
- package/dist/solution-discovery-e9mamp6w.js +0 -38
- package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
- package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
- /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
- /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
- /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
- /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
- /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
- /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
- /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CASE_APP_ROLE_ACTIONS,
|
|
3
|
+
CASE_APP_ROLE_ACTION_KEYS,
|
|
4
|
+
STAGE_ALLOWED_ROLE_ACTION_KEYS,
|
|
5
|
+
roleActionGateOf,
|
|
6
|
+
CASE_ROLE_NAME_MAX_LENGTH,
|
|
7
|
+
CASE_ROLE_DESCRIPTION_MAX_LENGTH,
|
|
8
|
+
CASE_ROLE_NAME_FORBIDDEN,
|
|
9
|
+
roleActionKeyFor
|
|
10
|
+
} from "./packager-tool-1wgav5ma.js";
|
|
11
|
+
|
|
12
|
+
// src/services/case-personas.ts
|
|
13
|
+
var ACTION_ORDER = new Map(CASE_APP_ROLE_ACTION_KEYS.map((key, index) => [key, index]));
|
|
14
|
+
var listKeys = (keys) => keys.join(", ");
|
|
15
|
+
var scopeOf = (cell) => {
|
|
16
|
+
switch ((cell ?? "").trim().toLowerCase()) {
|
|
17
|
+
case "case":
|
|
18
|
+
return "case";
|
|
19
|
+
case "stages":
|
|
20
|
+
case "stage":
|
|
21
|
+
return "stages";
|
|
22
|
+
default:
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var resolvePersonas = (personas, resolveStage) => {
|
|
27
|
+
const roles = [];
|
|
28
|
+
const problems = [];
|
|
29
|
+
const seen = new Set;
|
|
30
|
+
for (const persona of personas) {
|
|
31
|
+
const { name } = persona;
|
|
32
|
+
const report = (code, detail) => {
|
|
33
|
+
problems.push({ persona: name, code, detail });
|
|
34
|
+
};
|
|
35
|
+
if (seen.has(name.toLowerCase())) {
|
|
36
|
+
report("duplicate", `persona "${name}" is declared twice; AuthZ matches a role by name, so only the first row can become one`);
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
seen.add(name.toLowerCase());
|
|
40
|
+
if (name.length > CASE_ROLE_NAME_MAX_LENGTH) {
|
|
41
|
+
report("name", `persona name "${name}" is ${name.length} characters; a role name is at most ${CASE_ROLE_NAME_MAX_LENGTH}`);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (CASE_ROLE_NAME_FORBIDDEN.test(name)) {
|
|
45
|
+
report("name", `persona name "${name}" carries a character a role name cannot (one of < > " % ; & ')`);
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
const scope = scopeOf(persona.scope);
|
|
49
|
+
if (scope === undefined) {
|
|
50
|
+
report("scope", `persona "${name}" has Scope "${persona.scope ?? ""}"; it must be Case or Stages`);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const description = persona.description ?? "";
|
|
54
|
+
if (description.length > CASE_ROLE_DESCRIPTION_MAX_LENGTH) {
|
|
55
|
+
report("description", `persona "${name}" has a ${description.length}-character description; a role description is at most ${CASE_ROLE_DESCRIPTION_MAX_LENGTH}`);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const stageNames = [];
|
|
59
|
+
const stageIds = [];
|
|
60
|
+
if (scope === "case") {
|
|
61
|
+
if (persona.stages.length > 0) {
|
|
62
|
+
report("stages-on-case", `persona "${name}" is scoped to the whole case but names stages (${persona.stages.join(", ")}); a Case role applies to every stage, so the list was not used`);
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
for (const stageName of persona.stages) {
|
|
66
|
+
const stageId = resolveStage(stageName);
|
|
67
|
+
if (stageId === undefined) {
|
|
68
|
+
report("stage-unknown", `persona "${name}" names stage "${stageName}", which the SDD does not declare`);
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (stageIds.includes(stageId))
|
|
72
|
+
continue;
|
|
73
|
+
stageNames.push(stageName);
|
|
74
|
+
stageIds.push(stageId);
|
|
75
|
+
}
|
|
76
|
+
if (stageIds.length === 0) {
|
|
77
|
+
report("stages-missing", `persona "${name}" is scoped to Stages but no declared stage is named for it, so it would apply to nothing`);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const keys = [];
|
|
82
|
+
for (const permission of persona.permissions) {
|
|
83
|
+
const key = roleActionKeyFor(permission);
|
|
84
|
+
if (key === undefined) {
|
|
85
|
+
report("permission-unknown", `persona "${name}" grants "${permission}", which is not a permission; use one of ${listKeys(CASE_APP_ROLE_ACTION_KEYS)}`);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (scope === "stages" && !STAGE_ALLOWED_ROLE_ACTION_KEYS.includes(key)) {
|
|
89
|
+
report("permission-scope", `persona "${name}" grants "${key}" at stage scope; a Stages role can grant only ${listKeys(STAGE_ALLOWED_ROLE_ACTION_KEYS)}`);
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (!keys.includes(key))
|
|
93
|
+
keys.push(key);
|
|
94
|
+
}
|
|
95
|
+
if (keys.length === 0) {
|
|
96
|
+
report("no-permissions", `persona "${name}" grants no permission, so it has nothing to deploy`);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
keys.sort((a, b) => (ACTION_ORDER.get(a) ?? 0) - (ACTION_ORDER.get(b) ?? 0));
|
|
100
|
+
const gated = new Map;
|
|
101
|
+
for (const key of keys) {
|
|
102
|
+
const flag = roleActionGateOf(key);
|
|
103
|
+
if (flag !== undefined)
|
|
104
|
+
gated.set(flag, [...gated.get(flag) ?? [], key]);
|
|
105
|
+
}
|
|
106
|
+
for (const [flag, flagged] of gated) {
|
|
107
|
+
report("permission-gated", `persona "${name}" grants ${listKeys(flagged)}, which the Case Designer publishes only when the tenant flag "${flag}" is on (off by default); written as stated, so on a tenant without the flag this role grants more than the Designer would publish`);
|
|
108
|
+
}
|
|
109
|
+
roles.push({
|
|
110
|
+
name,
|
|
111
|
+
description: description.trim() || name,
|
|
112
|
+
scope,
|
|
113
|
+
stageNames,
|
|
114
|
+
stageIds,
|
|
115
|
+
actions: keys.map((key) => CASE_APP_ROLE_ACTIONS[key])
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return { roles, problems };
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { resolvePersonas };
|
|
122
|
+
|
|
123
|
+
//# debugId=DFBB6976766E550364756E2164756E21
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// ../filesystem/src/node.ts
|
|
6
|
-
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
7
3
|
import { existsSync } from "node:fs";
|
|
8
4
|
import * as fs from "node:fs/promises";
|
|
9
5
|
import * as os from "node:os";
|
|
@@ -14,6 +10,9 @@ var LOCK_MAX_WAIT_MS = 20000;
|
|
|
14
10
|
var LOCK_MAX_HOLD_MS = 60000;
|
|
15
11
|
var LOCK_RETRY_MIN_MS = 100;
|
|
16
12
|
var LOCK_RETRY_JITTER_MS = 200;
|
|
13
|
+
var HASH_CHUNK_BYTES = 256 * 1024;
|
|
14
|
+
var hashBuffers = [];
|
|
15
|
+
var HASH_BUFFERS_KEPT = 64;
|
|
17
16
|
|
|
18
17
|
class NodeFileSystem {
|
|
19
18
|
path = {
|
|
@@ -32,7 +31,7 @@ class NodeFileSystem {
|
|
|
32
31
|
};
|
|
33
32
|
utils = {
|
|
34
33
|
open: async (url) => {
|
|
35
|
-
const { default: open } = await import("./index-
|
|
34
|
+
const { default: open } = await import("./index-nzr4mx5p.js");
|
|
36
35
|
await open(url);
|
|
37
36
|
}
|
|
38
37
|
};
|
|
@@ -71,6 +70,15 @@ class NodeFileSystem {
|
|
|
71
70
|
throw error;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
73
|
+
async readdirEntries(dirPath) {
|
|
74
|
+
try {
|
|
75
|
+
return await fs.readdir(dirPath, { withFileTypes: true });
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (this.isEnoent(error))
|
|
78
|
+
return [];
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
74
82
|
async stat(filePath) {
|
|
75
83
|
try {
|
|
76
84
|
const stats = await fs.stat(filePath);
|
|
@@ -78,7 +86,8 @@ class NodeFileSystem {
|
|
|
78
86
|
isFile: () => stats.isFile(),
|
|
79
87
|
isDirectory: () => stats.isDirectory(),
|
|
80
88
|
size: stats.size,
|
|
81
|
-
mtimeMs: stats.mtimeMs
|
|
89
|
+
mtimeMs: stats.mtimeMs,
|
|
90
|
+
ctimeMs: stats.ctimeMs
|
|
82
91
|
};
|
|
83
92
|
} catch (error) {
|
|
84
93
|
if (this.isEnoent(error))
|
|
@@ -192,6 +201,42 @@ class NodeFileSystem {
|
|
|
192
201
|
throw error;
|
|
193
202
|
}
|
|
194
203
|
}
|
|
204
|
+
async hashFile(filePath) {
|
|
205
|
+
let handle;
|
|
206
|
+
try {
|
|
207
|
+
handle = await fs.open(filePath, "r");
|
|
208
|
+
} catch (error) {
|
|
209
|
+
if (this.isEnoent(error))
|
|
210
|
+
return null;
|
|
211
|
+
throw error;
|
|
212
|
+
}
|
|
213
|
+
const buffer = hashBuffers.pop() ?? Buffer.allocUnsafe(HASH_CHUNK_BYTES);
|
|
214
|
+
try {
|
|
215
|
+
const opened = await handle.stat();
|
|
216
|
+
const stats = {
|
|
217
|
+
isFile: () => opened.isFile(),
|
|
218
|
+
isDirectory: () => opened.isDirectory(),
|
|
219
|
+
size: opened.size,
|
|
220
|
+
mtimeMs: opened.mtimeMs,
|
|
221
|
+
ctimeMs: opened.ctimeMs
|
|
222
|
+
};
|
|
223
|
+
const hash = createHash("sha256");
|
|
224
|
+
let size = 0;
|
|
225
|
+
for (;; ) {
|
|
226
|
+
const { bytesRead } = await handle.read(buffer, 0, buffer.byteLength, null);
|
|
227
|
+
if (bytesRead === 0)
|
|
228
|
+
break;
|
|
229
|
+
hash.update(buffer.subarray(0, bytesRead));
|
|
230
|
+
size += bytesRead;
|
|
231
|
+
}
|
|
232
|
+
return { sha256: hash.digest("hex"), size, stats };
|
|
233
|
+
} finally {
|
|
234
|
+
if (hashBuffers.length < HASH_BUFFERS_KEPT) {
|
|
235
|
+
hashBuffers.push(buffer);
|
|
236
|
+
}
|
|
237
|
+
await handle.close();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
195
240
|
async realpath(filePath) {
|
|
196
241
|
try {
|
|
197
242
|
return await fs.realpath(filePath);
|
|
@@ -240,10 +285,9 @@ class NodeFileSystem {
|
|
|
240
285
|
|
|
241
286
|
// ../filesystem/src/index.ts
|
|
242
287
|
var fsInstance = new NodeFileSystem;
|
|
243
|
-
var
|
|
244
|
-
var
|
|
245
|
-
var getFileSystemAsync = async () => fsInstance;
|
|
288
|
+
var getFileSystem2 = () => fsInstance;
|
|
289
|
+
var getFileSystemAsync2 = async () => fsInstance;
|
|
246
290
|
|
|
247
|
-
export {
|
|
291
|
+
export { getFileSystem2, getFileSystemAsync2 };
|
|
248
292
|
|
|
249
|
-
//# debugId=
|
|
293
|
+
//# debugId=69A68E101956586864756E2164756E21
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
comparableFolder
|
|
3
|
+
} from "./packager-tool-yaertxsw.js";
|
|
4
|
+
|
|
1
5
|
// src/services/registry-ledger.ts
|
|
2
6
|
var taskKey = (stage, task) => JSON.stringify([stage, task]);
|
|
3
7
|
var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
@@ -8,9 +12,9 @@ var collectEntries = (value, into, depth = 0) => {
|
|
|
8
12
|
return;
|
|
9
13
|
if (Array.isArray(value)) {
|
|
10
14
|
for (const item of value) {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
into.push(
|
|
15
|
+
const record = asRecord(item);
|
|
16
|
+
if (record !== undefined && text(record.task) !== undefined && (("matches" in record) || ("selected" in record))) {
|
|
17
|
+
into.push(record);
|
|
14
18
|
continue;
|
|
15
19
|
}
|
|
16
20
|
collectEntries(item, into, depth + 1);
|
|
@@ -32,14 +36,13 @@ var readRegistryLedger = (document) => {
|
|
|
32
36
|
const declared = asRecord(asRecord(document)?.scope)?.missingIndexes;
|
|
33
37
|
const missing = new Set((Array.isArray(declared) ? declared : []).map(text).filter((name) => name !== undefined));
|
|
34
38
|
const unresolvable = new Map;
|
|
39
|
+
const found = new Map;
|
|
35
40
|
for (const entry of entries) {
|
|
36
41
|
const stage = text(entry.stage);
|
|
37
42
|
const task = text(entry.task);
|
|
38
43
|
if (stage === undefined || task === undefined)
|
|
39
44
|
continue;
|
|
40
45
|
const cacheFile = text(entry.cacheFile);
|
|
41
|
-
if (cacheFile !== undefined && missing.has(cacheFile))
|
|
42
|
-
continue;
|
|
43
46
|
if (entry.matches !== undefined && !Array.isArray(entry.matches)) {
|
|
44
47
|
continue;
|
|
45
48
|
}
|
|
@@ -48,14 +51,23 @@ var readRegistryLedger = (document) => {
|
|
|
48
51
|
continue;
|
|
49
52
|
}
|
|
50
53
|
const selected = asRecord(entry.selected);
|
|
51
|
-
if (matches.length > 0 || selected !== undefined)
|
|
54
|
+
if (matches.length > 0 || selected !== undefined) {
|
|
55
|
+
found.set(taskKey(stage, task), {
|
|
56
|
+
name: queryName(entry.searchQuery),
|
|
57
|
+
folder: text(asRecord(entry.searchQuery)?.folder),
|
|
58
|
+
hitFolders: (selected !== undefined ? [selected] : matches).map((hit) => text(asRecord(hit)?.folder)),
|
|
59
|
+
selected: selected !== undefined
|
|
60
|
+
});
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (cacheFile !== undefined && missing.has(cacheFile))
|
|
52
64
|
continue;
|
|
53
65
|
unresolvable.set(taskKey(stage, task), {
|
|
54
66
|
query: queryName(entry.searchQuery) ?? task,
|
|
55
67
|
cacheFile: text(entry.cacheFile)
|
|
56
68
|
});
|
|
57
69
|
}
|
|
58
|
-
return { unresolvable };
|
|
70
|
+
return { unresolvable, found };
|
|
59
71
|
};
|
|
60
72
|
var ledgerMissFor = (ledger, stageSpellings, task) => {
|
|
61
73
|
if (ledger === undefined || task === undefined)
|
|
@@ -69,7 +81,27 @@ var ledgerMissFor = (ledger, stageSpellings, task) => {
|
|
|
69
81
|
}
|
|
70
82
|
return;
|
|
71
83
|
};
|
|
84
|
+
var ledgerFoundFor = (ledger, stageSpellings, task, resource) => {
|
|
85
|
+
if (ledger === undefined || task === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (resource.name === undefined || resource.name === "")
|
|
88
|
+
return false;
|
|
89
|
+
const folder = resource.folder ?? "";
|
|
90
|
+
const same = (a, b) => comparableFolder(a) === comparableFolder(b);
|
|
91
|
+
return stageSpellings.some((stage) => {
|
|
92
|
+
if (stage === undefined || stage === "")
|
|
93
|
+
return false;
|
|
94
|
+
const hit = ledger.found.get(taskKey(stage, task));
|
|
95
|
+
if (hit === undefined || hit.name !== resource.name)
|
|
96
|
+
return false;
|
|
97
|
+
if (folder !== "" && hit.folder !== undefined && !same(hit.folder, folder)) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
const inFolder = hit.hitFolders.filter((at) => folder === "" || at === undefined || same(at, folder));
|
|
101
|
+
return hit.selected ? inFolder.length > 0 : inFolder.length === 1;
|
|
102
|
+
});
|
|
103
|
+
};
|
|
72
104
|
|
|
73
|
-
export { readRegistryLedger, ledgerMissFor };
|
|
105
|
+
export { readRegistryLedger, ledgerMissFor, ledgerFoundFor };
|
|
74
106
|
|
|
75
|
-
//# debugId=
|
|
107
|
+
//# debugId=2F22A96C22CEBBD064756E2164756E21
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// ../auth/src/utils/platform.ts
|
|
2
|
-
function
|
|
2
|
+
function isBrowser2() {
|
|
3
3
|
return typeof globalThis !== "undefined" && "window" in globalThis && "document" in globalThis;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function isNode2() {
|
|
6
6
|
return typeof process !== "undefined" && process.versions !== undefined && process.versions.node !== undefined;
|
|
7
7
|
}
|
|
8
8
|
function getGlobalThis() {
|
|
@@ -12,6 +12,6 @@ function getGlobalThis() {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export {
|
|
15
|
+
export { isBrowser2, isNode2, getGlobalThis };
|
|
16
16
|
|
|
17
|
-
//# debugId=
|
|
17
|
+
//# debugId=0D1794D4C8313A6D64756E2164756E21
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
getFileSystem2
|
|
3
|
+
} from "./packager-tool-z070caqq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./packager-tool-
|
|
5
|
+
readStdin2
|
|
6
|
+
} from "./packager-tool-psmb758n.js";
|
|
7
7
|
|
|
8
8
|
// ../maestro-sdk/src/json-input.ts
|
|
9
9
|
async function readJsonFile(filePath) {
|
|
10
|
-
const fs =
|
|
10
|
+
const fs = getFileSystem2();
|
|
11
11
|
const resolved = fs.path.resolve(filePath);
|
|
12
12
|
if (!await fs.exists(resolved)) {
|
|
13
13
|
throw new Error(`File not found: ${resolved}`);
|
|
14
14
|
}
|
|
15
15
|
const content = await fs.readFile(resolved, "utf-8");
|
|
16
|
+
if (content === null) {
|
|
17
|
+
throw new Error(`File not found: ${resolved}`);
|
|
18
|
+
}
|
|
16
19
|
try {
|
|
17
20
|
return JSON.parse(content);
|
|
18
21
|
} catch (err) {
|
|
@@ -41,7 +44,7 @@ async function resolveJsonInput(opts) {
|
|
|
41
44
|
return parseJsonInputOrFile(opts.inline);
|
|
42
45
|
}
|
|
43
46
|
if (opts.allowStdin) {
|
|
44
|
-
const stdinData = await
|
|
47
|
+
const stdinData = await readStdin2();
|
|
45
48
|
if (stdinData) {
|
|
46
49
|
return parseJsonInputOrFile(stdinData);
|
|
47
50
|
}
|
|
@@ -49,6 +52,6 @@ async function resolveJsonInput(opts) {
|
|
|
49
52
|
return;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
export {
|
|
55
|
+
export { parseJsonInputOrFile, resolveJsonInput };
|
|
53
56
|
|
|
54
|
-
//# debugId=
|
|
57
|
+
//# debugId=771F5679E455D60664756E2164756E21
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__require,
|
|
3
2
|
__toESM
|
|
4
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-6an893wm.js";
|
|
5
4
|
|
|
6
5
|
// src/services/case-schema-loader.ts
|
|
7
6
|
var cached;
|
|
8
7
|
function loadCaseSchemaAsync() {
|
|
9
|
-
cached ??= import("./index-
|
|
8
|
+
cached ??= import("./index-a7y7etmy.js").then((m)=>__toESM(m.default,1));
|
|
10
9
|
return cached;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export { loadCaseSchemaAsync };
|
|
14
13
|
|
|
15
|
-
//# debugId=
|
|
14
|
+
//# debugId=263A0ACB8A13BD3B64756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CaseToolFactory,
|
|
3
|
-
registerCaseBpmnCompiler
|
|
4
|
-
} from "./packager-tool-e15kqpyh.js";
|
|
5
1
|
import {
|
|
6
2
|
toolsFactoryRepository
|
|
7
|
-
} from "./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-snesn0bt.js";
|
|
4
|
+
import"./packager-tool-1wgav5ma.js";
|
|
5
|
+
import {
|
|
6
|
+
registerCaseBpmnCompiler,
|
|
7
|
+
CaseToolFactory2
|
|
8
|
+
} from "./packager-tool-4avchhz8.js";
|
|
9
9
|
import {
|
|
10
|
-
__require,
|
|
11
10
|
__toESM
|
|
12
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-6an893wm.js";
|
|
13
12
|
|
|
14
13
|
// ../packager/packager-tool-case/src/node.ts
|
|
15
14
|
var compileCasePlan = async (casePlanJson) => {
|
|
16
|
-
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await import("./index-
|
|
15
|
+
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await import("./index-a7y7etmy.js").then((m)=>__toESM(m.default,1));
|
|
17
16
|
const { bpmnXml } = await serializeCaseDiskJsonToBpmnAndRulesJson(casePlanJson);
|
|
18
17
|
return bpmnXml;
|
|
19
18
|
};
|
|
@@ -23,11 +22,11 @@ function registerNodeCaseBpmnCompiler() {
|
|
|
23
22
|
|
|
24
23
|
// src/packager-tool.ts
|
|
25
24
|
function registerPackagerFactories() {
|
|
26
|
-
toolsFactoryRepository.registerProjectToolFactory(new
|
|
25
|
+
toolsFactoryRepository.registerProjectToolFactory(new CaseToolFactory2);
|
|
27
26
|
registerNodeCaseBpmnCompiler();
|
|
28
27
|
}
|
|
29
28
|
export {
|
|
30
29
|
registerPackagerFactories
|
|
31
30
|
};
|
|
32
31
|
|
|
33
|
-
//# debugId=
|
|
32
|
+
//# debugId=04773C4FE181A02D64756E2164756E21
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// ../builder-sdk/src/prepare-uip.ts
|
|
2
|
+
var PREPARE_COMMANDS = [
|
|
3
|
+
["is", "connections", "list"],
|
|
4
|
+
["is", "connectors", "metadata"],
|
|
5
|
+
["is", "activities", "list"],
|
|
6
|
+
["is", "resources", "list"],
|
|
7
|
+
["is", "resources", "describe"],
|
|
8
|
+
["is", "resources", "run", "list"],
|
|
9
|
+
["is", "triggers", "objects"],
|
|
10
|
+
["is", "triggers", "describe"],
|
|
11
|
+
["maestro", "flow", "registry", "get"],
|
|
12
|
+
["maestro", "flow", "registry", "search"],
|
|
13
|
+
["maestro", "flow", "registry", "pull"]
|
|
14
|
+
];
|
|
15
|
+
var HOST_GLOBAL_OPTIONS = [
|
|
16
|
+
"--json",
|
|
17
|
+
"--log-level",
|
|
18
|
+
"--log-file",
|
|
19
|
+
"--profile",
|
|
20
|
+
"--interactive",
|
|
21
|
+
"--no-interactive"
|
|
22
|
+
];
|
|
23
|
+
function isPrepareCommand(args) {
|
|
24
|
+
return PREPARE_COMMANDS.some((words) => words.every((word, index) => args[index] === word));
|
|
25
|
+
}
|
|
26
|
+
function hostGlobalOption(args) {
|
|
27
|
+
return HOST_GLOBAL_OPTIONS.find((option) => args.some((arg) => arg === option || arg.startsWith(`${option}=`)));
|
|
28
|
+
}
|
|
29
|
+
function refusal(argv) {
|
|
30
|
+
if (!Array.isArray(argv) || !argv.every((arg) => typeof arg === "string")) {
|
|
31
|
+
return "uip: argv must be a list of strings";
|
|
32
|
+
}
|
|
33
|
+
const [executable, ...args] = argv;
|
|
34
|
+
if (executable !== "uip" || !isPrepareCommand(args)) {
|
|
35
|
+
return `uip: ${(executable === "uip" ? args : argv).join(" ")} is not available to registry prepare in this host`;
|
|
36
|
+
}
|
|
37
|
+
const option = hostGlobalOption(args);
|
|
38
|
+
return option === undefined ? undefined : `uip: ${option} is not available to registry prepare in this host`;
|
|
39
|
+
}
|
|
40
|
+
function failed(stderr) {
|
|
41
|
+
return { code: 1, stdout: "", stderr };
|
|
42
|
+
}
|
|
43
|
+
function timeLimit(timeoutMs) {
|
|
44
|
+
let timer;
|
|
45
|
+
let start = () => {};
|
|
46
|
+
const expired = new Promise((resolve) => {
|
|
47
|
+
start = () => {
|
|
48
|
+
timer = setTimeout(() => resolve({
|
|
49
|
+
code: null,
|
|
50
|
+
stdout: "",
|
|
51
|
+
stderr: "",
|
|
52
|
+
timedOut: true
|
|
53
|
+
}), timeoutMs);
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
return { start, expired, clear: () => clearTimeout(timer) };
|
|
57
|
+
}
|
|
58
|
+
function prepareUip(runInProcess) {
|
|
59
|
+
const running = new Set;
|
|
60
|
+
const ended = new AbortController;
|
|
61
|
+
return {
|
|
62
|
+
uip: {
|
|
63
|
+
slot: "uipath.maestro-builder-sdk.uip",
|
|
64
|
+
run(argv, options = {}) {
|
|
65
|
+
const refused = ended.signal.aborted ? "uip: registry prepare has ended" : refusal(argv);
|
|
66
|
+
if (refused !== undefined) {
|
|
67
|
+
return Promise.resolve(failed(refused));
|
|
68
|
+
}
|
|
69
|
+
const { timeoutMs } = options;
|
|
70
|
+
const limit = timeoutMs === undefined || timeoutMs <= 0 ? undefined : timeLimit(timeoutMs);
|
|
71
|
+
const answer = runInProcess(argv.slice(1), {
|
|
72
|
+
signal: ended.signal,
|
|
73
|
+
onStart: limit?.start
|
|
74
|
+
}).catch((error) => failed(`uip: ${error instanceof Error ? error.message : String(error)}`));
|
|
75
|
+
running.add(answer);
|
|
76
|
+
answer.finally(() => running.delete(answer));
|
|
77
|
+
return limit ? Promise.race([answer, limit.expired]).finally(limit.clear) : answer;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
close: () => {
|
|
81
|
+
ended.abort(new Error("registry prepare has ended"));
|
|
82
|
+
},
|
|
83
|
+
settled: async () => {
|
|
84
|
+
await Promise.all(running);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
prepareUip
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
//# debugId=DA8A8649FCF5573C64756E2164756E21
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__require
|
|
3
|
-
} from "./packager-tool-1yh8g550.js";
|
|
4
|
-
|
|
5
1
|
// src/services/project-artifacts.ts
|
|
6
2
|
async function ensureProjectArtifacts(args) {
|
|
7
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
3
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-ec115v05.js");
|
|
8
4
|
return addProjectArtifactsToSolutionAsync(args);
|
|
9
5
|
}
|
|
10
6
|
export {
|
|
11
7
|
ensureProjectArtifacts
|
|
12
8
|
};
|
|
13
9
|
|
|
14
|
-
//# debugId=
|
|
10
|
+
//# debugId=B02599EDCAE2306564756E2164756E21
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import"./packager-tool-1yh8g550.js";
|
|
3
|
-
|
|
4
|
-
// ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/pt-BR-USP2T7GD.js
|
|
1
|
+
// ../../node_modules/@uipath/flow-schema/dist/pt-BR-BIUJXIPU.js
|
|
5
2
|
var agentDuplicateToolNames_duplicateName_message = 'O nome da ferramenta "{{name}}" é usado por várias ferramentas neste agente. Cada ferramenta deve ter um nome exclusivo.';
|
|
6
3
|
var agentEmptyVar_unwrittenVariable_message = 'O agente usa "$vars.{{root}}", mas nenhum nó atribui um valor a "{{root}}", portanto, estará vazio no runtime. Associe-o a uma saída de nó (por exemplo, "<node>.output" de um conector) ou forneça uma origem de valor.';
|
|
7
4
|
var agentFileNotAnalyzed_unconsumedFileVar_message = 'O agente usa a variável de arquivo "$vars.{{path}}" no prompt, mas não tem nenhuma ferramenta que possa ler arquivos. Portanto, o agente recebe apenas a referência do arquivo, e não o conteúdo. Adicione uma ferramenta de leitura de arquivos, como Analisar arquivos.';
|
|
@@ -9,10 +6,12 @@ var agentInputRefs_ambiguousUnderscoreRoot_message = 'Referências de prompt "$v
|
|
|
9
6
|
var agentInputRefs_reservedMetadataRoot_message = 'Referências de prompt "$vars.{{ref}}", mas uma variável ou um nó chamado "metadata" entra em conflito com o namespace "$metadata" quando serializado para o agente e não pode ser convertido de volta corretamente. Renomeie-o com um nome diferente de "metadata".';
|
|
10
7
|
var agentInputRefs_reservedNamespace_message = '"$agent.{{ref}}" é um namespace de agente-runtime de fluxo interno e não pode ser usado diretamente em prompts. Faça referência à variável do fluxo em "$vars.{{ref}}" ou "$metadata.{{ref}}" em vez disso.';
|
|
11
8
|
var agentInputRefs_unresolvedRef_message = 'Referências de prompt "$vars.{{ref}}", mas não existem nós nem variáveis de fluxo de trabalho "{{rootSegment}}". Adicione a variável/nó ao fluxo ou remova a referência.';
|
|
9
|
+
var agenticSwitchDuplicateChoices_duplicateName_message = 'O nome de escolha "{{name}}" é usado mais de uma vez. Dê um nome exclusivo a cada escolha.';
|
|
12
10
|
var conditionExpression_decisionWrapped_message = 'Condição inválida em "{{nodeLabel}}": {{error}}';
|
|
13
11
|
var conditionExpression_incomplete_message = "Expressão incompleta";
|
|
14
12
|
var conditionExpression_invalid_message = "Expressão inválida";
|
|
15
13
|
var conditionExpression_required_message = "Adicionar uma condição";
|
|
14
|
+
var conversationTrigger_displayPromptRequired_message = "Adicione um prompt de exibição";
|
|
16
15
|
var conversationalRequired_contextRequired_message = "{{label}}: o contexto da conversa é obrigatório";
|
|
17
16
|
var conversationalRequired_conversationIdRequired_message = "{{label}}: o ID da conversa é obrigatório";
|
|
18
17
|
var conversationalVoiceEndCall_callContextInvalid_message = "{{label}}: o contexto da chamada deve ser vinculado a um objeto de contexto da chamada";
|
|
@@ -36,6 +35,7 @@ var entityQuery_uncarryableExpression_message = "Armazene esta expressão em uma
|
|
|
36
35
|
var entityQuery_uncarryableRelationPath_message = "{{path}} não pode ser usado como está escrito. Remova espaços, aspas ou barras invertidas do nome da coluna.";
|
|
37
36
|
var entityQuery_unfilteredSingleRecord_message = "Adicione uma condição ou leia vários registros";
|
|
38
37
|
var entityQuery_unresolvedRelation_message = "{{path}} não está mais disponível. Escolha um campo nesta entidade ou em uma das relações diretas dela.";
|
|
38
|
+
var entitySchema_fieldMissing_message = "Remova ou substitua os campos que esta entidade não possui mais: {{fields}}";
|
|
39
39
|
var entityWrite_requiredFieldBlanked_message = "Defina um valor para {{fields}} ou remova da atualização";
|
|
40
40
|
var entityWrite_requiredFieldMissing_message = "Defina um valor para {{fields}}";
|
|
41
41
|
var escalation_appRequired_message = "Selecionar um aplicativo de ação";
|
|
@@ -53,6 +53,9 @@ var hitlQuickForm_emptySchema_message = "Adicione pelo menos um campo";
|
|
|
53
53
|
var hitlQuickForm_fieldLabelRequired_message = "O rótulo do campo é obrigatório";
|
|
54
54
|
var ixpSchemaDraft_invalidWithDetail_message = 'O esquema não é válido em "{{nodeLabel}}": {{detail}}';
|
|
55
55
|
var ixpSchemaDraft_invalid_message = 'O esquema não é válido em "{{nodeLabel}}".';
|
|
56
|
+
var ixpSchemaLimits_exceeded_message = '{{subject}} em "{{nodeLabel}}" tem {{actual}} caracteres, acima do limite de {{limit}} caracteres.';
|
|
57
|
+
var nodeId_invalidFormat_message = "Renomeie o ID do nó para usar apenas letras, números e sublinhados, começando com uma letra ou sublinhado";
|
|
58
|
+
var nodeId_reservedWord_message = 'Renomeie o ID do nó: "{{id}}" é uma palavra reservada';
|
|
56
59
|
var outputMapping_missing_message = '"{{nodeLabel}}" não tem mapeamento de saída para "{{varId}}"';
|
|
57
60
|
var schemaValidator_genericKeyword_message = '"{{fieldName}}" em "{{nodeLabel}}": {{detail}}';
|
|
58
61
|
var schemaValidator_invalidEnum_message = '"{{fieldName}}" em "{{nodeLabel}}" deve ser um dos valores permitidos';
|
|
@@ -73,10 +76,12 @@ var pt_BR_default = {
|
|
|
73
76
|
agentInputRefs_reservedMetadataRoot_message,
|
|
74
77
|
agentInputRefs_reservedNamespace_message,
|
|
75
78
|
agentInputRefs_unresolvedRef_message,
|
|
79
|
+
agenticSwitchDuplicateChoices_duplicateName_message,
|
|
76
80
|
conditionExpression_decisionWrapped_message,
|
|
77
81
|
conditionExpression_incomplete_message,
|
|
78
82
|
conditionExpression_invalid_message,
|
|
79
83
|
conditionExpression_required_message,
|
|
84
|
+
conversationTrigger_displayPromptRequired_message,
|
|
80
85
|
conversationalRequired_contextRequired_message,
|
|
81
86
|
conversationalRequired_conversationIdRequired_message,
|
|
82
87
|
conversationalVoiceEndCall_callContextInvalid_message,
|
|
@@ -100,6 +105,7 @@ var pt_BR_default = {
|
|
|
100
105
|
entityQuery_uncarryableRelationPath_message,
|
|
101
106
|
entityQuery_unfilteredSingleRecord_message,
|
|
102
107
|
entityQuery_unresolvedRelation_message,
|
|
108
|
+
entitySchema_fieldMissing_message,
|
|
103
109
|
entityWrite_requiredFieldBlanked_message,
|
|
104
110
|
entityWrite_requiredFieldMissing_message,
|
|
105
111
|
escalation_appRequired_message,
|
|
@@ -117,6 +123,9 @@ var pt_BR_default = {
|
|
|
117
123
|
hitlQuickForm_fieldLabelRequired_message,
|
|
118
124
|
ixpSchemaDraft_invalidWithDetail_message,
|
|
119
125
|
ixpSchemaDraft_invalid_message,
|
|
126
|
+
ixpSchemaLimits_exceeded_message,
|
|
127
|
+
nodeId_invalidFormat_message,
|
|
128
|
+
nodeId_reservedWord_message,
|
|
120
129
|
outputMapping_missing_message,
|
|
121
130
|
schemaValidator_genericKeyword_message,
|
|
122
131
|
schemaValidator_invalidEnum_message,
|
|
@@ -138,10 +147,12 @@ export {
|
|
|
138
147
|
agentInputRefs_reservedMetadataRoot_message,
|
|
139
148
|
agentInputRefs_reservedNamespace_message,
|
|
140
149
|
agentInputRefs_unresolvedRef_message,
|
|
150
|
+
agenticSwitchDuplicateChoices_duplicateName_message,
|
|
141
151
|
conditionExpression_decisionWrapped_message,
|
|
142
152
|
conditionExpression_incomplete_message,
|
|
143
153
|
conditionExpression_invalid_message,
|
|
144
154
|
conditionExpression_required_message,
|
|
155
|
+
conversationTrigger_displayPromptRequired_message,
|
|
145
156
|
conversationalRequired_contextRequired_message,
|
|
146
157
|
conversationalRequired_conversationIdRequired_message,
|
|
147
158
|
conversationalVoiceEndCall_callContextInvalid_message,
|
|
@@ -166,6 +177,7 @@ export {
|
|
|
166
177
|
entityQuery_uncarryableRelationPath_message,
|
|
167
178
|
entityQuery_unfilteredSingleRecord_message,
|
|
168
179
|
entityQuery_unresolvedRelation_message,
|
|
180
|
+
entitySchema_fieldMissing_message,
|
|
169
181
|
entityWrite_requiredFieldBlanked_message,
|
|
170
182
|
entityWrite_requiredFieldMissing_message,
|
|
171
183
|
escalation_appRequired_message,
|
|
@@ -183,6 +195,9 @@ export {
|
|
|
183
195
|
hitlQuickForm_fieldLabelRequired_message,
|
|
184
196
|
ixpSchemaDraft_invalidWithDetail_message,
|
|
185
197
|
ixpSchemaDraft_invalid_message,
|
|
198
|
+
ixpSchemaLimits_exceeded_message,
|
|
199
|
+
nodeId_invalidFormat_message,
|
|
200
|
+
nodeId_reservedWord_message,
|
|
186
201
|
outputMapping_missing_message,
|
|
187
202
|
schemaValidator_genericKeyword_message,
|
|
188
203
|
schemaValidator_invalidEnum_message,
|
|
@@ -197,4 +212,4 @@ export {
|
|
|
197
212
|
triggerRequired_message
|
|
198
213
|
};
|
|
199
214
|
|
|
200
|
-
//# debugId=
|
|
215
|
+
//# debugId=57B8906FC282644F64756E2164756E21
|