nolo-cli 0.264.0-alpha.2 → 0.266.0-alpha.1
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/{chunk-LXP53WGF.js → chunk-05wkntba.js} +44 -40
- package/{chunk-XFYFMTOM.js → chunk-08ts2q1n.js} +9 -11
- package/{chromeCommands-MVEEIY4R.js → chunk-0a3m1n6h.js} +182 -238
- package/chunk-0gfvc7g8.js +13 -0
- package/{chunk-CF7PE763.js → chunk-0h0sncy4.js} +3 -4
- package/{chunk-3UH7SS4W.js → chunk-0nsxwrge.js} +232 -241
- package/chunk-0ra8cne4.js +11 -0
- package/{chunk-MRACVEPZ.js → chunk-0sgwk7am.js} +1 -3
- package/{chunk-PEXGRTTQ.js → chunk-0tsfn0dk.js} +44 -45
- package/{chunk-WOAZVUSN.js → chunk-0y8cbwzy.js} +26 -30
- package/chunk-12gz55kk.js +6 -0
- package/{chunk-GLKOYSRU.js → chunk-186gshgw.js} +3 -6
- package/chunk-19w4ss38.js +44 -0
- package/{chunk-RF576RYE.js → chunk-1cakzp6r.js} +23 -23
- package/chunk-1fbfwbzp.js +27 -0
- package/{chunk-4IVMDQBA.js → chunk-1fv9k8zt.js} +103 -68
- package/{chunk-Q5FJJ6XI.js → chunk-1js4cdzp.js} +11 -19
- package/{chunk-YECCIUYU.js → chunk-1nhx0er5.js} +63 -63
- package/chunk-1p152b7g.js +12 -0
- package/{chunk-HXEO5DNV.js → chunk-1ynbq3yr.js} +322 -353
- package/{chunk-6UBGXX2W.js → chunk-1zrg4h5n.js} +3 -4
- package/{chunk-Y5GCAMGP.js → chunk-2g6zsfq8.js} +1 -3
- package/chunk-2hekb0eh.js +17 -0
- package/chunk-2pj6qzq5.js +12 -0
- package/chunk-2tvd4jyp.js +226 -0
- package/chunk-2ygg7azv.js +846 -0
- package/chunk-33405wtv.js +50 -0
- package/chunk-34axejtd.js +30 -0
- package/{tableCommands-FCPDULSU.js → chunk-3700dvt3.js} +224 -276
- package/{pdf-KE3QI2V7.js → chunk-3j08t1nm.js} +12505 -10133
- package/chunk-3j9gq18v.js +111 -0
- package/{chunk-LYPJYBE5.js → chunk-3qfpcdkm.js} +486 -505
- package/{settingThunks-PNC7ZISV.js → chunk-3r2x7h64.js} +189 -272
- package/{agentGrantCommands-2VLLXGIU.js → chunk-3tbj5fxt.js} +61 -56
- package/chunk-40whhjj5.js +168 -0
- package/chunk-4301919y.js +7 -0
- package/chunk-43adz39e.js +77 -0
- package/{chunk-5ZUL4CUO.js → chunk-49v3zc4g.js} +1 -3
- package/chunk-4dd7mxkb.js +72 -0
- package/{chunk-BKP325XS.js → chunk-4hapfzpq.js} +66 -62
- package/chunk-4mm7dz0m.js +95 -0
- package/chunk-4pqxempz.js +440 -0
- package/chunk-4x9zf5pv.js +10 -0
- package/{chunk-CA7LGAHV.js → chunk-511q8qzv.js} +66 -57
- package/{chunk-U7OULUMF.js → chunk-53v9g0np.js} +49 -64
- package/chunk-572mg6q5.js +19 -0
- package/{chunk-QAW6BEWQ.js → chunk-57eyhmwr.js} +17173 -16165
- package/chunk-5hsr0zjm.js +156 -0
- package/chunk-5k883yyd.js +20 -0
- package/chunk-5m0wsee4.js +639 -0
- package/{memberThunks-NEZRAW5K.js → chunk-5r1sq2gt.js} +299 -373
- package/chunk-648rq4np.js +255 -0
- package/{chunk-IYRZKHA6.js → chunk-666yjw5c.js} +63 -86
- package/{chunk-4O22PGNQ.js → chunk-6cdcbmtp.js} +19 -19
- package/chunk-6dbyqcf7.js +59 -0
- package/{agentProviderCommands-2W3VXDLV.js → chunk-6e8mgp1x.js} +82 -105
- package/chunk-6n0pw7sx.js +44 -0
- package/chunk-6q1b7381.js +361 -0
- package/chunk-6sj756ry.js +23 -0
- package/{chunk-4UNN45DS.js → chunk-6t7a7zck.js} +14785 -14454
- package/chunk-6yarwtxh.js +776 -0
- package/chunk-708h542p.js +18 -0
- package/chunk-76f076t8.js +266 -0
- package/chunk-782rrrwv.js +523 -0
- package/{workloadLifecycle-P2SJVV3S.js → chunk-7gk330wp.js} +77 -84
- package/{chunk-EZKIRVLJ.js → chunk-7ks60vxy.js} +146 -128
- package/{chunk-FI4DPLR7.js → chunk-7mrqbxe8.js} +342 -228
- package/chunk-7sztayrd.js +169 -0
- package/chunk-7vgt2mxz.js +15 -0
- package/{localFirstLog-OIETGK66.js → chunk-7z8y4k6y.js} +0 -2
- package/{chunk-KDDXC2IH.js → chunk-82htft2m.js} +49 -11
- package/{updateDialogTitleAction-XOSLNRT3.js → chunk-88vrtxxg.js} +65 -137
- package/{chunk-LS5KAVFQ.js → chunk-8dtjbp79.js} +293 -229
- package/chunk-8fajbkaz.js +50 -0
- package/chunk-8m1ebxpw.js +65 -0
- package/{accountResolver-JYG5L7YP.js → chunk-8mgfeg0w.js} +37 -30
- package/{chunk-LPXBBC32.js → chunk-8myksy35.js} +156 -160
- package/{chunk-BMQ2MJUK.js → chunk-8nrj7dc7.js} +75 -66
- package/{commandRegistry-ENNFT77C.js → chunk-8t8x64ec.js} +228 -286
- package/chunk-8yj4pq79.js +458 -0
- package/{chunk-5MKPNTJP.js → chunk-8z6pepcx.js} +43 -48
- package/{chunk-UYQILGDR.js → chunk-90egc9vb.js} +122 -102
- package/{chunk-EODBQPRM.js → chunk-91q5dc5r.js} +10 -14
- package/{chunk-U6VC4MU4.js → chunk-96jtrqk1.js} +2 -4
- package/{chunk-H57T64RA.js → chunk-996j61av.js} +28 -31
- package/{chunk-Q6FKWH66.js → chunk-9cxgb9jy.js} +137 -243
- package/{chunk-2ZBPWX7N.js → chunk-9q1gbmet.js} +62 -104
- package/chunk-9qtjh73q.js +344 -0
- package/{chunk-SR57FDTX.js → chunk-9raka469.js} +72 -155
- package/{chunk-V6K5U4YE.js → chunk-9vh4v046.js} +32 -41
- package/{chunk-AGIM7IMJ.js → chunk-9yr1fy7j.js} +14 -49
- package/{chunk-FGFJUFPS.js → chunk-a16x0wt6.js} +11 -18
- package/chunk-a5b2rvzs.js +131 -0
- package/{chunk-7DPNBQSV.js → chunk-a7bz6nc3.js} +3 -4
- package/chunk-ac85azv9.js +29 -0
- package/{chunk-VXL2FZTP.js → chunk-ahhbkad4.js} +16 -20
- package/{chunk-37DGW762.js → chunk-anhksj2j.js} +16 -29
- package/{cliAuthorityBrokerServer-27C5YBYP.js → chunk-atvmx76t.js} +180 -186
- package/{chunk-E6A5NHDH.js → chunk-av2mzeqz.js} +16 -17
- package/chunk-avbwrb0z.js +614 -0
- package/chunk-avr6rqe5.js +544 -0
- package/{workContextQueryProjection-CACY5VFE.js → chunk-axx60d5a.js} +7 -7
- package/{chunk-EWQ3HGNZ.js → chunk-b00vzjkb.js} +30 -23
- package/chunk-b0m6ezxr.js +132 -0
- package/chunk-bbd5mgdt.js +47 -0
- package/chunk-bcecft0r.js +28 -0
- package/chunk-beyr4pyp.js +33 -0
- package/{chunk-BR3GT6MR.js → chunk-bge0cagn.js} +7 -18
- package/{offlineMarxistsAgentCommand-MFURGWHL.js → chunk-bh53zg3t.js} +33 -43
- package/chunk-bmx1cw89.js +37 -0
- package/chunk-br2195h4.js +22 -0
- package/chunk-bsqkwveq.js +56 -0
- package/{chunk-QAU6KM2U.js → chunk-c09s2z1m.js} +139 -98
- package/chunk-c235kypv.js +24636 -0
- package/{chunk-2JMYAH5O.js → chunk-c30j6pyh.js} +213 -256
- package/chunk-c3v6r6sq.js +29 -0
- package/{chunk-PDSXYHNI.js → chunk-c5z7qspt.js} +1177 -1196
- package/{chunk-GWB6AGME.js → chunk-c6jvz0mp.js} +34 -50
- package/{chunk-PRJ473FK.js → chunk-cd6h9qqs.js} +14 -12
- package/chunk-cdt0amyy.js +37 -0
- package/{chunk-2AJLG6PY.js → chunk-cfh6tfc3.js} +73 -86
- package/{chunk-WIVVNJUS.js → chunk-ch4ck1yz.js} +38 -68
- package/chunk-chtvrtp5.js +55 -0
- package/{chunk-EYLGAEB4.js → chunk-ckvz7abv.js} +170 -165
- package/{chunk-YZMNK53S.js → chunk-csf18m5w.js} +32 -25
- package/{chunk-C36L6ZID.js → chunk-cwnvf8dt.js} +2 -10
- package/chunk-cy7thb6n.js +19877 -0
- package/{dialogPortabilityCommands-YQJNB2KL.js → chunk-d61q9nah.js} +439 -487
- package/chunk-d6xdy0gp.js +142 -0
- package/{chunk-EBH4RFJ6.js → chunk-dh69vqbd.js} +6390 -6496
- package/{chunk-KJ4J2XQB.js → chunk-dj4ggbc6.js} +17 -19
- package/{chunk-LISC7BD4.js → chunk-djrrhbk3.js} +29 -37
- package/chunk-drqzzzvr.js +822 -0
- package/chunk-e1n7edjk.js +33 -0
- package/chunk-e3atr4hk.js +59 -0
- package/chunk-e9bn2aav.js +13 -0
- package/chunk-ed396rfq.js +87 -0
- package/chunk-eha8ggh6.js +10 -0
- package/{chunk-MALPQFGT.js → chunk-ek122zzt.js} +893 -948
- package/chunk-epnmvek4.js +22 -0
- package/{chunk-S25VJYXV.js → chunk-eqzvk3xm.js} +69 -80
- package/chunk-ex34n71b.js +2874 -0
- package/{chunk-56OAS5RZ.js → chunk-f3ad6q4h.js} +7 -11
- package/{chunk-3PVYUPXK.js → chunk-f8jepva1.js} +6 -7
- package/{chunk-GH34JXNV.js → chunk-f9yvy9t9.js} +114 -92
- package/chunk-fbdz4f0j.js +90 -0
- package/{chunk-J44TXB4J.js → chunk-fcsc2day.js} +216 -164
- package/chunk-fevdhnbh.js +19 -0
- package/chunk-fkrgqq8w.js +3300 -0
- package/{chunk-TSBJVMNW.js → chunk-fs3bvh2p.js} +42 -57
- package/chunk-fvwzyhah.js +134 -0
- package/chunk-g0mpxdp9.js +101 -0
- package/{chunk-LTQ6ECCF.js → chunk-g35f20d1.js} +450 -414
- package/{chunk-3L2WKC3W.js → chunk-g5fhtjqg.js} +13 -16
- package/{chunk-DBEOW57U.js → chunk-gcq01td7.js} +270 -227
- package/{chunk-ADMRXWXJ.js → chunk-ge97b11r.js} +121 -42
- package/chunk-ghjtgbkw.js +180 -0
- package/chunk-gkra36c1.js +16 -0
- package/chunk-gmz86t60.js +1000 -0
- package/{localDialogRead-GWGWSL5K.js → chunk-gszpesze.js} +5 -12
- package/chunk-gvsfec9m.js +16536 -0
- package/{chunk-QSJ3HFEF.js → chunk-h1hzmqph.js} +1 -3
- package/chunk-h30dg154.js +17 -0
- package/chunk-h3hkb7cw.js +241 -0
- package/chunk-h40py996.js +28 -0
- package/{chunk-47T3QP4V.js → chunk-h60gnewh.js} +112 -116
- package/{agentPullCommand-XEGOUYQT.js → chunk-hkwsv9xf.js} +33 -45
- package/chunk-hnyg0gwj.js +28 -0
- package/{chunk-KSV6T4AH.js → chunk-hqqqph5w.js} +12 -4
- package/{chunk-YQJEXXDK.js → chunk-hrngs1wy.js} +157 -246
- package/{chunk-LRLLWD4P.js → chunk-htf69s94.js} +14 -12
- package/chunk-j0yxesh3.js +83 -0
- package/{chunk-VF4K2QE6.js → chunk-j22t9g05.js} +3 -6
- package/{chunk-3R4AYHJR.js → chunk-j4a8m2zn.js} +5 -34
- package/chunk-j9p4jnwg.js +27 -0
- package/{chunk-R72QWIFO.js → chunk-jdycmfsm.js} +9 -9
- package/chunk-jdyvrne0.js +52 -0
- package/{spacePruneCommand-YKIEUIDQ.js → chunk-je0b66qf.js} +44 -62
- package/{chunk-HNMXYYJR.js → chunk-jec44fkj.js} +3 -4
- package/{chunk-526GLZJE.js → chunk-jf1ex00r.js} +107 -73
- package/chunk-jgqdec9b.js +31 -0
- package/{chunk-56GBUMO5.js → chunk-jkw9n4h5.js} +16 -25
- package/{chunk-7422ZLGL.js → chunk-jmnzdwjt.js} +867 -965
- package/chunk-jqq57s0a.js +58 -0
- package/{chunk-OKUSDVRS.js → chunk-jtkn5aj6.js} +27 -38
- package/chunk-jwvzn9r0.js +316 -0
- package/chunk-k1re0fc7.js +107 -0
- package/chunk-k2ep3rb2.js +103 -0
- package/{chunk-JEXVIMYZ.js → chunk-k6ycb24w.js} +5 -8
- package/{chunk-RI7SXDJW.js → chunk-kawvydbk.js} +383 -195
- package/chunk-kf2ghpzh.js +10 -0
- package/{chunk-S6FAHQDH.js → chunk-kgah9e46.js} +28 -59
- package/{chunk-T3MWVUBE.js → chunk-kjjepkvc.js} +71 -82
- package/chunk-kn4dgg4j.js +4113 -0
- package/{chunk-2LFYMWM3.js → chunk-kn5p91n8.js} +43 -53
- package/{chunk-MVOZ22RZ.js → chunk-kntqrbwc.js} +8 -12
- package/{chunk-I6YIA2TY.js → chunk-kq3vr7mx.js} +25 -20
- package/chunk-kz1x1d8n.js +15 -0
- package/{mcpLocalAuthorizeCommand-IKOFKY5U.js → chunk-m22e7tt2.js} +53 -71
- package/{chunk-ZNFJWEN4.js → chunk-m32rwr4d.js} +11 -8
- package/chunk-m39e9m18.js +93 -0
- package/{chunk-4D4QD7FT.js → chunk-m5518371.js} +64 -56
- package/{chunk-LHTXSC2E.js → chunk-mb5hnfyp.js} +9 -11
- package/chunk-mexet11v.js +11 -0
- package/chunk-mg2hgfgh.js +185 -0
- package/chunk-mmdhm4kx.js +10317 -0
- package/chunk-mz002yz8.js +2821 -0
- package/chunk-mzadqnyq.js +56 -0
- package/{chunk-VIDPVFP3.js → chunk-n3r1ebdm.js} +5 -6
- package/chunk-n438qea7.js +33 -0
- package/chunk-n5ffnhnb.js +93 -0
- package/chunk-nbvd87fy.js +9 -0
- package/{chunk-E36V7MPY.js → chunk-ndej7jc9.js} +53 -43
- package/{chunk-B767MA64.js → chunk-nen6rwe4.js} +62 -22
- package/chunk-nf06tr3v.js +16 -0
- package/chunk-ng8z355q.js +16 -0
- package/{chunk-4MEKE5D3.js → chunk-nhtxfv8k.js} +78 -63
- package/{runAgentClientLoop-2SFASHDS.js → chunk-nj62jscj.js} +132 -214
- package/{chunk-GBWGPTA7.js → chunk-nkryrkyp.js} +16 -19
- package/chunk-nmesxem8.js +197 -0
- package/{chunk-YR4J7RFS.js → chunk-nmq0qwbn.js} +117 -164
- package/chunk-nph8brvw.js +7 -0
- package/chunk-nr8fees9.js +10 -0
- package/{chunk-DFI7MVCQ.js → chunk-nvewvf7h.js} +1441 -1427
- package/{chunk-G7Y4GXTY.js → chunk-nyamhphs.js} +70 -79
- package/chunk-nz1c8tcg.js +111 -0
- package/{chunk-GPLUFN2E.js → chunk-nzc5yffh.js} +176 -217
- package/{chunk-G3SUCT4W.js → chunk-p1vg4bx8.js} +2 -4
- package/chunk-p3k3abe8.js +202 -0
- package/chunk-p4zy30q5.js +8 -0
- package/{chunk-ZJACPM5O.js → chunk-p6se1rx0.js} +102 -102
- package/chunk-p9dpshev.js +6968 -0
- package/chunk-pa42wxr0.js +116 -0
- package/{chunk-TA5QI4MM.js → chunk-paxthgqp.js} +56 -107
- package/{readlineWorkspace-ZH5FGDMI.js → chunk-pb35s8d9.js} +5395 -5786
- package/{chunk-XT6C2QZW.js → chunk-pbebzbcq.js} +8 -8
- package/chunk-pbx7e1mb.js +11 -0
- package/chunk-pe5czfn9.js +8 -0
- package/chunk-pextk1j4.js +62 -0
- package/chunk-pf5rywc6.js +575 -0
- package/chunk-pjfhd3fz.js +136 -0
- package/{chunk-ZCMAKAZM.js → chunk-pkhqb0fs.js} +118 -59
- package/chunk-pm5xb9jh.js +26 -0
- package/{chunk-Y3KGWZKF.js → chunk-ppdmmdkx.js} +110 -97
- package/chunk-pqp6y2hs.js +9 -0
- package/{chunk-QHEN7NZ7.js → chunk-ptz8fm2n.js} +12 -17
- package/{chunk-EUHMI5KG.js → chunk-pwqnvbt7.js} +65 -46
- package/chunk-pzr31nz7.js +12 -0
- package/{chunk-WWC7I6TA.js → chunk-q3cx89sw.js} +2 -4
- package/chunk-q5pe7be3.js +78 -0
- package/{chunk-ZHWTBHT3.js → chunk-q6zqbxp2.js} +418 -409
- package/chunk-q7r0e1p3.js +15 -0
- package/chunk-q8t2fecd.js +6 -0
- package/{chunk-2QAZCYOM.js → chunk-q94zx4d0.js} +721 -753
- package/{runtimeDoctorCommands-52MBG5JN.js → chunk-qarz1az1.js} +65 -85
- package/{chunk-4INJGWE3.js → chunk-qdcvr25b.js} +72 -53
- package/{streamAgentChatTurn-KOUWITHH.js → chunk-qxs27wfg.js} +1079 -1475
- package/{chunk-GIXWVN2W.js → chunk-r06ycjjr.js} +50 -47
- package/{chunk-63W5N6P3.js → chunk-r20jw5hb.js} +57 -38
- package/{chunk-I5BYFTYK.js → chunk-r7sfwdka.js} +1201 -1142
- package/{chunk-UMADT6B2.js → chunk-r9sp1yyb.js} +6 -8
- package/{handleSendMessageAction-FHGUFT2X.js → chunk-rbd2vgb3.js} +627 -757
- package/chunk-rc37js46.js +12 -0
- package/{chunk-5YI447UL.js → chunk-rmngk6r3.js} +67 -76
- package/chunk-rnhbnbrq.js +15 -0
- package/{chunk-WRHVVIGI.js → chunk-rsfnmrt5.js} +111 -131
- package/{chunk-YFSM2366.js → chunk-rvvn2rhj.js} +28 -22
- package/{chunk-4Y6CZ2N4.js → chunk-s0fpz7ht.js} +37 -33
- package/{chunk-VI4SWTUO.js → chunk-s1cqzb2r.js} +77 -65
- package/{chunk-6QDYSCPW.js → chunk-s8q81tda.js} +73 -65
- package/chunk-s9hy639e.js +6 -0
- package/{chunk-R5GO3YZP.js → chunk-s9vbwme8.js} +115 -106
- package/chunk-sger1m1b.js +20 -0
- package/chunk-spe6crvk.js +60 -0
- package/chunk-spwsrvh9.js +70 -0
- package/chunk-sr05zpk7.js +573 -0
- package/{chunk-M2EJHDJP.js → chunk-srncrd3f.js} +1 -12
- package/{chunk-QXHFIX7W.js → chunk-sry80bpx.js} +71 -53
- package/{chunk-PSCNXBYA.js → chunk-t6q69p83.js} +3 -4
- package/{chunk-UAD2WT54.js → chunk-t714r4q0.js} +9 -28
- package/chunk-t7vbraqe.js +42 -0
- package/{chunk-CVMMWN6P.js → chunk-td7653rr.js} +10 -20
- package/{chunk-3BQDF4QB.js → chunk-tmytcetz.js} +17 -21
- package/{chunk-AMWMV56B.js → chunk-tta4prwg.js} +16 -15
- package/chunk-tvh8azgq.js +4829 -0
- package/{chunk-ID4G2MAR.js → chunk-v08kbfm8.js} +10 -11
- package/{chunk-OKPOQGQJ.js → chunk-v1x702q8.js} +801 -852
- package/{chunk-KHCLMKZZ.js → chunk-v39fea91.js} +576 -247
- package/{chunk-OW765XBU.js → chunk-vejtd8p2.js} +3 -4
- package/chunk-vep7zkha.js +368 -0
- package/chunk-vfwn1k7n.js +142 -0
- package/chunk-vg68vxhx.js +20 -0
- package/chunk-vgcqgnsm.js +31 -0
- package/{chunk-NF64D32W.js → chunk-vnzyjdea.js} +1 -3
- package/{chunk-ZCLSM5AK.js → chunk-vqgtw1px.js} +800 -717
- package/chunk-vv1gr5xz.js +76 -0
- package/{spaceCommands-Z2CTQD6G.js → chunk-w1qeadpq.js} +176 -242
- package/chunk-w468ez1p.js +13 -0
- package/chunk-w49s0t79.js +14 -0
- package/{mcpLocalManageCommands-KUDZQRM4.js → chunk-w58zhfbn.js} +91 -93
- package/chunk-w5b74aq6.js +11 -0
- package/chunk-w7y41qyw.js +117 -0
- package/chunk-w820gg1w.js +4165 -0
- package/{chunk-DBJAJ4UD.js → chunk-wdsmaqmt.js} +399 -453
- package/{chunk-3EUW3WEO.js → chunk-wfvvnmmj.js} +1 -3
- package/{chunk-QY4NZCDA.js → chunk-wkr04bhk.js} +432 -651
- package/{chunk-KUG52IAP.js → chunk-ws402twv.js} +1 -3
- package/chunk-wzwh311q.js +164 -0
- package/{runtimeModeArgs-X7DL7PUN.js → chunk-x5vtgvwn.js} +6 -5
- package/{agentMachineCommands-COJD2KPZ.js → chunk-x8h2csmq.js} +152 -195
- package/{chunk-BAZCS5XG.js → chunk-x9zfjnrc.js} +59 -47
- package/{chunk-WTIJKWCI.js → chunk-xcarc2rf.js} +50 -56
- package/chunk-xf33gz0a.js +8 -0
- package/{chunk-PVFYPUIM.js → chunk-y7b3gwx1.js} +78 -71
- package/{memoryCommands-SVLAVFCV.js → chunk-y7sphmnh.js} +119 -95
- package/{agentListCommands-436FHOIT.js → chunk-ycvaafhc.js} +260 -374
- package/chunk-yd7zprb0.js +9 -0
- package/chunk-yfz3d27k.js +40 -0
- package/{chunk-MKR6KDD3.js → chunk-ykv9g3m4.js} +141 -125
- package/chunk-ystjgb9e.js +544 -0
- package/chunk-yysxn7ep.js +12 -0
- package/{chunk-AL3TYDIF.js → chunk-z17eyawk.js} +18 -16
- package/{machineCommands-RVB5OG2X.js → chunk-z17q416p.js} +442 -563
- package/chunk-z1n98pcf.js +12 -0
- package/{dialogTraceCommand-HWXGIGZX.js → chunk-z566jx5r.js} +292 -397
- package/chunk-zjxd6942.js +6 -0
- package/{versionChangeNotice-RFABJGJE.js → chunk-zk11x9y5.js} +7 -9
- package/{chunk-TEFD5E2D.js → chunk-zt73yc33.js} +48 -51
- package/chunk-zvs2fra1.js +5 -0
- package/{chunk-SVFFKLMR.js → chunk-zwee84rh.js} +117 -141
- package/chunk-zxgfqv72.js +8 -0
- package/index.js +53 -69
- package/package.json +4 -4
- package/_executeModel-YQNZNR2Y.js +0 -341
- package/action-UK3HXGXF.js +0 -30
- package/addContentAction-CAKFVBDM.js +0 -38
- package/addDialogAgentAction-KLJ2YWWM.js +0 -77
- package/agentDeleteCommand-S5FVPYKT.js +0 -523
- package/agentEmailCommands-ZEFMGVKM.js +0 -742
- package/agentRecordCommands-JZ35AC5A.js +0 -211
- package/agentRun-UIO43TUG.js +0 -251
- package/agentRunCommand-ATLKKD6O.js +0 -249
- package/agentRunControl-U2MV74WR.js +0 -211
- package/agentRuntimeLocal-P4MMGIR6.js +0 -189
- package/agentSlice-HHNKNNYM.js +0 -52
- package/appConfigCommands-W4JQHMOJ.js +0 -417
- package/appDeleteCommands-IXR47IAV.js +0 -183
- package/appDeployCommands-LB6DHDF4.js +0 -232
- package/appDeployStatusCommands-UQ6MJL6D.js +0 -204
- package/appGetCommands-M5JCTDDQ.js +0 -185
- package/appListCommands-TE3ZHE3I.js +0 -186
- package/appMigrateCommands-FOXH6R4B.js +0 -230
- package/appSourceCommands-3ACYB6I7.js +0 -279
- package/authCommand-I5OBJP5S.js +0 -66
- package/authCommands-I6KCGOCN.js +0 -54
- package/builtinSkillRegistry-MIXYSZUU.js +0 -35
- package/chromeOpsCommands-IZRCYDSW.js +0 -579
- package/chunk-24BICQPB.js +0 -25
- package/chunk-2E4BYAUE.js +0 -69
- package/chunk-2O72G3U2.js +0 -17157
- package/chunk-2OROOEOQ.js +0 -229
- package/chunk-2R6M34JP.js +0 -27225
- package/chunk-2SXN7LAY.js +0 -15
- package/chunk-35JIFLIG.js +0 -30
- package/chunk-3VXVE2LF.js +0 -12
- package/chunk-4DBTBNTX.js +0 -477
- package/chunk-4JH2UMJR.js +0 -40
- package/chunk-4RUQ2PFX.js +0 -432
- package/chunk-4SN6J65J.js +0 -38
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-6NYQHXMV.js +0 -1737
- package/chunk-6R4IY46J.js +0 -14
- package/chunk-7E6YXSFZ.js +0 -441
- package/chunk-7K4J76JQ.js +0 -917
- package/chunk-7LR2IFUH.js +0 -100
- package/chunk-AETZ7AD6.js +0 -274
- package/chunk-ATNTHIZI.js +0 -13
- package/chunk-BPB3T5EU.js +0 -791
- package/chunk-BV3FLP2L.js +0 -133
- package/chunk-BVYHE6QD.js +0 -110
- package/chunk-BWJLEN6X.js +0 -1388
- package/chunk-CHOZJMJS.js +0 -78
- package/chunk-D2LTQAGN.js +0 -464
- package/chunk-DALXH7BG.js +0 -3392
- package/chunk-DBCWXGOC.js +0 -15210
- package/chunk-DLXL4NSL.js +0 -1179
- package/chunk-DSBRIUX5.js +0 -23
- package/chunk-DWLEOOGR.js +0 -8
- package/chunk-E2KZNP6C.js +0 -13
- package/chunk-E5JV4DCB.js +0 -272
- package/chunk-EUGTFFO6.js +0 -42
- package/chunk-FBNVJ2TO.js +0 -294
- package/chunk-FGXG6OLW.js +0 -34
- package/chunk-G22P2J7O.js +0 -1775
- package/chunk-HEVRQGGH.js +0 -106
- package/chunk-HHXF57CL.js +0 -180
- package/chunk-HI5RS2O4.js +0 -2109
- package/chunk-HJTI7RZV.js +0 -94
- package/chunk-HRWRIPTB.js +0 -531
- package/chunk-HYCVEESH.js +0 -2824
- package/chunk-I42VC5KR.js +0 -15
- package/chunk-IB5AR52X.js +0 -15
- package/chunk-IIRJ4P4I.js +0 -24
- package/chunk-IT3ZZRJE.js +0 -12
- package/chunk-IV6VUVLJ.js +0 -88
- package/chunk-J42X32PV.js +0 -472
- package/chunk-JDMWYVUF.js +0 -449
- package/chunk-JKVOKKMQ.js +0 -53
- package/chunk-JRTNUU5Z.js +0 -54
- package/chunk-K7HLFORE.js +0 -226
- package/chunk-KGBASAB5.js +0 -74
- package/chunk-KGKTN2NX.js +0 -25
- package/chunk-KX6YBIHG.js +0 -8
- package/chunk-KYHNSSL2.js +0 -62
- package/chunk-KZO2MTVM.js +0 -140
- package/chunk-LKZPX6YH.js +0 -0
- package/chunk-LLP2NDED.js +0 -201
- package/chunk-LOFRSJX2.js +0 -47
- package/chunk-M75RM77T.js +0 -3970
- package/chunk-MDAYRIP7.js +0 -1889
- package/chunk-MI6HRMCK.js +0 -25
- package/chunk-MTNQNLSE.js +0 -1029
- package/chunk-NH4PUEWK.js +0 -762
- package/chunk-NHLLXINQ.js +0 -8
- package/chunk-NTUNHTJV.js +0 -40
- package/chunk-OJKUU3LP.js +0 -67
- package/chunk-OQH3TAB7.js +0 -299
- package/chunk-P62DHV4F.js +0 -443
- package/chunk-PHIERFHT.js +0 -574
- package/chunk-PKDFU6MY.js +0 -102
- package/chunk-PL5RKESU.js +0 -40
- package/chunk-PSJJBBWV.js +0 -42
- package/chunk-QKM55LP2.js +0 -739
- package/chunk-QQ56R7KS.js +0 -88
- package/chunk-QYPE3TS3.js +0 -43
- package/chunk-REAE2SZK.js +0 -62
- package/chunk-RGQ4UUWZ.js +0 -208
- package/chunk-RIRFHJTW.js +0 -353
- package/chunk-RYMLMTPZ.js +0 -547
- package/chunk-SSGTV4FC.js +0 -303
- package/chunk-SVKWZ3EG.js +0 -607
- package/chunk-T7KODHYS.js +0 -317
- package/chunk-TGVVE5BA.js +0 -3085
- package/chunk-TKLBBR7P.js +0 -779
- package/chunk-TZXPT53C.js +0 -8
- package/chunk-U67V476Y.js +0 -35
- package/chunk-UEILX4EV.js +0 -15
- package/chunk-VIWDGTDA.js +0 -8
- package/chunk-VXUQWCEZ.js +0 -138
- package/chunk-W5GKF5ZW.js +0 -32
- package/chunk-WDWZPASX.js +0 -29
- package/chunk-WX266G2C.js +0 -9594
- package/chunk-YCITCYSJ.js +0 -356
- package/chunk-Z3KTXWWB.js +0 -76
- package/chunk-ZC3CMUKU.js +0 -322
- package/chunk-ZSZBHRLP.js +0 -1710
- package/chunk-ZV7ZY46L.js +0 -1343
- package/cliAgentConfigHelpers-WB2S7PDO.js +0 -47
- package/cliAuthorityBrokerClient-3SKOA7OZ.js +0 -23
- package/cliAuthorityBrokerProcess-BMBVXPKU.js +0 -24
- package/cliAuthorityStoreDriver-6FE3BJNB.js +0 -20
- package/cliEnvHelpers-7V5ZWUJA.js +0 -34
- package/cliExecutor-N3445G2Z.js +0 -45
- package/cliLocalAgentRecordReader-QKKRK53P.js +0 -113
- package/cloudAutomationCommands-S52NKCLL.js +0 -310
- package/contentThunks-ERA42OXW.js +0 -100
- package/cooldownCommands-ZFDAL4MR.js +0 -79
- package/createAgentAutomationAction-DMD2VDPI.js +0 -173
- package/createDialogAction-3SPOJQAK.js +0 -87
- package/createPageAction-AVXUMZVT.js +0 -91
- package/cursorProvider-2RACMEMF.js +0 -6123
- package/db-LTHLW7QA.js +0 -178
- package/dbSlice-WNUHTF4C.js +0 -76
- package/deleteDbKey-KV6MYBAI.js +0 -87
- package/desktopFolderProjects-4POAMVJN.js +0 -45
- package/dialogCommands-4MOLJW4G.js +0 -165
- package/dialogMessageRecord-2HJTEXQX.js +0 -7
- package/dialogNotifyCommand-YL2GFKLO.js +0 -45
- package/dialogSlice-Q7H2YVNO.js +0 -200
- package/dialogUsageCommand-IO2BQKL2.js +0 -31
- package/docCreateCommands-OYLRBK2M.js +0 -255
- package/docDeleteCommands-3NF6QPJU.js +0 -226
- package/docReadCommands-CBAERJAP.js +0 -184
- package/docStore-GWPFDV6Y.js +0 -89
- package/docUpdateCommands-BAMCGX6F.js +0 -326
- package/ebookDownloaderAgentCommand-NOIZ6U7Y.js +0 -675
- package/fetchMessages-P7FSCSXV.js +0 -19
- package/getPricing-KNXVEIUI.js +0 -40
- package/hostCredentialCreate-2VEYBXJV.js +0 -402
- package/i18n-SAK6DDY4.js +0 -51
- package/keys-FXEGMKSG.js +0 -183
- package/legacyMigration-TF4SYJCZ.js +0 -19
- package/levelAuthorityStore-L5SVDM5O.js +0 -10
- package/localAutomationCommands-XSK7SM7I.js +0 -199
- package/localAutomationRuntime-5WBO7HGQ.js +0 -61
- package/localRecall-BDYKXB46.js +0 -17
- package/localRuntimeAdapter-Y6H6XRIH.js +0 -310
- package/localRuntimeAuthority-Q5C2KWGF.js +0 -45
- package/localRuntimeDb-MM3DINZM.js +0 -12
- package/machineInfo-HNPJHQFU.js +0 -14
- package/machineWsRunDispatch-Y5SJGCEE.js +0 -228
- package/models-TOXYINNM.js +0 -10
- package/oauthTokenStore-RUYNYALS.js +0 -24
- package/overlay-JA3SPVUS.js +0 -15
- package/parityCommands-5OCBPVES.js +0 -613
- package/processSpawn-6GEO77KV.js +0 -11
- package/profileConfig-KOWK4HOG.js +0 -49
- package/projectArchive-WE3VVPZ2.js +0 -132
- package/providerPresetApply-YCVSP2WX.js +0 -235
- package/providerRegistry-26PAUYH2.js +0 -24
- package/read-D4WYJQJQ.js +0 -32
- package/readDocTool-3S3OQFOH.js +0 -22
- package/rememberExplicit-ZPI6KK5M.js +0 -16
- package/remove-AHRMUDMH.js +0 -32
- package/removeDialogAgentAction-AALRBFSA.js +0 -81
- package/secretCommands-2PSS3QNZ.js +0 -24
- package/setDialogExtraReferencesAction-SLHQ3GYL.js +0 -39
- package/setPrimaryDialogAgentAction-XKCSGJ7M.js +0 -96
- package/skillDiscovery-IUEZZG2B.js +0 -29
- package/skillSummaryMarker-62UW7HI7.js +0 -9
- package/slateToRenderMarkdown-R3X74MCX.js +0 -7
- package/slateUtils-ESQAJ6RN.js +0 -19
- package/store-WSAVTR32.js +0 -50
- package/switchDialogAgentAction-YJIWQGIR.js +0 -70
- package/tombstones-FQQMEDOW.js +0 -32
- package/toolApiClient-FVXTIIEN.js +0 -42
- package/tools-WN4AVSNS.js +0 -147
- package/tuiRestart-LU2BDLAW.js +0 -50
- package/tuiSummaryLlmCaller-Z2ZVBIGN.js +0 -53
- package/updateCommands-4QP7WJLA.js +0 -63
- package/usageCommand-AZX7D3LB.js +0 -31
- package/usageRebuildCommand-XV5QQCHK.js +0 -623
- package/userDataMerge-HT2ZVHBJ.js +0 -13
- package/windowsSelfUpdate-5OFKSW6Y.js +0 -14
- package/workContext-ZAW6VXT7.js +0 -18
- package/workContextAccess-VU5I4LKZ.js +0 -11
- package/workContextWriteNotice-YCSSMHN4.js +0 -7
- /package/{chunk-BYXBJQAS.js → chunk-0bcc25vg.js} +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
asTrimmedNonEmptyStringArray
|
|
3
|
+
} from "./chunk-w5b74aq6.js";
|
|
4
|
+
import {
|
|
5
|
+
asOptionalTrimmedString
|
|
6
|
+
} from "./chunk-p1vg4bx8.js";
|
|
7
|
+
|
|
1
8
|
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
2
9
|
function getDefaultExportFromCjs(x) {
|
|
3
10
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -7,7 +14,8 @@ var loader = {};
|
|
|
7
14
|
var common = {};
|
|
8
15
|
var hasRequiredCommon;
|
|
9
16
|
function requireCommon() {
|
|
10
|
-
if (hasRequiredCommon)
|
|
17
|
+
if (hasRequiredCommon)
|
|
18
|
+
return common;
|
|
11
19
|
hasRequiredCommon = 1;
|
|
12
20
|
function isNothing(subject) {
|
|
13
21
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -16,14 +24,16 @@ function requireCommon() {
|
|
|
16
24
|
return typeof subject === "object" && subject !== null;
|
|
17
25
|
}
|
|
18
26
|
function toArray(sequence) {
|
|
19
|
-
if (Array.isArray(sequence))
|
|
20
|
-
|
|
27
|
+
if (Array.isArray(sequence))
|
|
28
|
+
return sequence;
|
|
29
|
+
else if (isNothing(sequence))
|
|
30
|
+
return [];
|
|
21
31
|
return [sequence];
|
|
22
32
|
}
|
|
23
33
|
function extend(target, source) {
|
|
24
34
|
if (source) {
|
|
25
35
|
const sourceKeys = Object.keys(source);
|
|
26
|
-
for (let index = 0, length = sourceKeys.length;
|
|
36
|
+
for (let index = 0, length = sourceKeys.length;index < length; index += 1) {
|
|
27
37
|
const key = sourceKeys[index];
|
|
28
38
|
target[key] = source[key];
|
|
29
39
|
}
|
|
@@ -32,7 +42,7 @@ function requireCommon() {
|
|
|
32
42
|
}
|
|
33
43
|
function repeat(string, count) {
|
|
34
44
|
let result = "";
|
|
35
|
-
for (let cycle = 0;
|
|
45
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
36
46
|
result += string;
|
|
37
47
|
}
|
|
38
48
|
return result;
|
|
@@ -51,18 +61,22 @@ function requireCommon() {
|
|
|
51
61
|
var exception;
|
|
52
62
|
var hasRequiredException;
|
|
53
63
|
function requireException() {
|
|
54
|
-
if (hasRequiredException)
|
|
64
|
+
if (hasRequiredException)
|
|
65
|
+
return exception;
|
|
55
66
|
hasRequiredException = 1;
|
|
56
67
|
function formatError(exception2, compact) {
|
|
57
68
|
let where = "";
|
|
58
69
|
const message = exception2.reason || "(unknown reason)";
|
|
59
|
-
if (!exception2.mark)
|
|
70
|
+
if (!exception2.mark)
|
|
71
|
+
return message;
|
|
60
72
|
if (exception2.mark.name) {
|
|
61
73
|
where += 'in "' + exception2.mark.name + '" ';
|
|
62
74
|
}
|
|
63
75
|
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
64
76
|
if (!compact && exception2.mark.snippet) {
|
|
65
|
-
where +=
|
|
77
|
+
where += `
|
|
78
|
+
|
|
79
|
+
` + exception2.mark.snippet;
|
|
66
80
|
}
|
|
67
81
|
return message + " " + where;
|
|
68
82
|
}
|
|
@@ -89,7 +103,8 @@ function requireException() {
|
|
|
89
103
|
var snippet;
|
|
90
104
|
var hasRequiredSnippet;
|
|
91
105
|
function requireSnippet() {
|
|
92
|
-
if (hasRequiredSnippet)
|
|
106
|
+
if (hasRequiredSnippet)
|
|
107
|
+
return snippet;
|
|
93
108
|
hasRequiredSnippet = 1;
|
|
94
109
|
const common2 = requireCommon();
|
|
95
110
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
@@ -105,9 +120,8 @@ function requireSnippet() {
|
|
|
105
120
|
lineEnd = position + maxHalfLength - tail.length;
|
|
106
121
|
}
|
|
107
122
|
return {
|
|
108
|
-
str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "
|
|
123
|
+
str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
|
|
109
124
|
pos: position - lineStart + head.length
|
|
110
|
-
// relative position
|
|
111
125
|
};
|
|
112
126
|
}
|
|
113
127
|
function padStart(string, max) {
|
|
@@ -115,11 +129,16 @@ function requireSnippet() {
|
|
|
115
129
|
}
|
|
116
130
|
function makeSnippet(mark, options) {
|
|
117
131
|
options = Object.create(options || null);
|
|
118
|
-
if (!mark.buffer)
|
|
119
|
-
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
if (typeof options.
|
|
132
|
+
if (!mark.buffer)
|
|
133
|
+
return null;
|
|
134
|
+
if (!options.maxLength)
|
|
135
|
+
options.maxLength = 79;
|
|
136
|
+
if (typeof options.indent !== "number")
|
|
137
|
+
options.indent = 1;
|
|
138
|
+
if (typeof options.linesBefore !== "number")
|
|
139
|
+
options.linesBefore = 3;
|
|
140
|
+
if (typeof options.linesAfter !== "number")
|
|
141
|
+
options.linesAfter = 2;
|
|
123
142
|
const re = /\r?\n|\r|\0/g;
|
|
124
143
|
const lineStarts = [0];
|
|
125
144
|
const lineEnds = [];
|
|
@@ -132,34 +151,29 @@ function requireSnippet() {
|
|
|
132
151
|
foundLineNo = lineStarts.length - 2;
|
|
133
152
|
}
|
|
134
153
|
}
|
|
135
|
-
if (foundLineNo < 0)
|
|
154
|
+
if (foundLineNo < 0)
|
|
155
|
+
foundLineNo = lineStarts.length - 1;
|
|
136
156
|
let result = "";
|
|
137
157
|
const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
138
158
|
const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
139
|
-
for (let i = 1;
|
|
140
|
-
if (foundLineNo - i < 0)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
|
|
146
|
-
maxLineLength
|
|
147
|
-
);
|
|
148
|
-
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result;
|
|
159
|
+
for (let i = 1;i <= options.linesBefore; i++) {
|
|
160
|
+
if (foundLineNo - i < 0)
|
|
161
|
+
break;
|
|
162
|
+
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
163
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
164
|
+
` + result;
|
|
149
165
|
}
|
|
150
166
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
151
|
-
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str +
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
);
|
|
162
|
-
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n";
|
|
167
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
168
|
+
`;
|
|
169
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
170
|
+
`;
|
|
171
|
+
for (let i = 1;i <= options.linesAfter; i++) {
|
|
172
|
+
if (foundLineNo + i >= lineEnds.length)
|
|
173
|
+
break;
|
|
174
|
+
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
175
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
176
|
+
`;
|
|
163
177
|
}
|
|
164
178
|
return result.replace(/\n$/, "");
|
|
165
179
|
}
|
|
@@ -169,7 +183,8 @@ function requireSnippet() {
|
|
|
169
183
|
var type;
|
|
170
184
|
var hasRequiredType;
|
|
171
185
|
function requireType() {
|
|
172
|
-
if (hasRequiredType)
|
|
186
|
+
if (hasRequiredType)
|
|
187
|
+
return type;
|
|
173
188
|
hasRequiredType = 1;
|
|
174
189
|
const YAMLException2 = requireException();
|
|
175
190
|
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -233,7 +248,8 @@ function requireType() {
|
|
|
233
248
|
var schema;
|
|
234
249
|
var hasRequiredSchema;
|
|
235
250
|
function requireSchema() {
|
|
236
|
-
if (hasRequiredSchema)
|
|
251
|
+
if (hasRequiredSchema)
|
|
252
|
+
return schema;
|
|
237
253
|
hasRequiredSchema = 1;
|
|
238
254
|
const YAMLException2 = requireException();
|
|
239
255
|
const Type2 = requireType();
|
|
@@ -271,7 +287,7 @@ function requireSchema() {
|
|
|
271
287
|
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
272
288
|
}
|
|
273
289
|
}
|
|
274
|
-
for (let index = 0, length = arguments.length;
|
|
290
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
275
291
|
arguments[index].forEach(collectType);
|
|
276
292
|
}
|
|
277
293
|
return result;
|
|
@@ -287,8 +303,10 @@ function requireSchema() {
|
|
|
287
303
|
} else if (Array.isArray(definition)) {
|
|
288
304
|
explicit = explicit.concat(definition);
|
|
289
305
|
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
290
|
-
if (definition.implicit)
|
|
291
|
-
|
|
306
|
+
if (definition.implicit)
|
|
307
|
+
implicit = implicit.concat(definition.implicit);
|
|
308
|
+
if (definition.explicit)
|
|
309
|
+
explicit = explicit.concat(definition.explicit);
|
|
292
310
|
} else {
|
|
293
311
|
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
294
312
|
}
|
|
@@ -322,7 +340,8 @@ function requireSchema() {
|
|
|
322
340
|
var str;
|
|
323
341
|
var hasRequiredStr;
|
|
324
342
|
function requireStr() {
|
|
325
|
-
if (hasRequiredStr)
|
|
343
|
+
if (hasRequiredStr)
|
|
344
|
+
return str;
|
|
326
345
|
hasRequiredStr = 1;
|
|
327
346
|
const Type2 = requireType();
|
|
328
347
|
str = new Type2("tag:yaml.org,2002:str", {
|
|
@@ -336,7 +355,8 @@ function requireStr() {
|
|
|
336
355
|
var seq;
|
|
337
356
|
var hasRequiredSeq;
|
|
338
357
|
function requireSeq() {
|
|
339
|
-
if (hasRequiredSeq)
|
|
358
|
+
if (hasRequiredSeq)
|
|
359
|
+
return seq;
|
|
340
360
|
hasRequiredSeq = 1;
|
|
341
361
|
const Type2 = requireType();
|
|
342
362
|
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
@@ -350,7 +370,8 @@ function requireSeq() {
|
|
|
350
370
|
var map;
|
|
351
371
|
var hasRequiredMap;
|
|
352
372
|
function requireMap() {
|
|
353
|
-
if (hasRequiredMap)
|
|
373
|
+
if (hasRequiredMap)
|
|
374
|
+
return map;
|
|
354
375
|
hasRequiredMap = 1;
|
|
355
376
|
const Type2 = requireType();
|
|
356
377
|
map = new Type2("tag:yaml.org,2002:map", {
|
|
@@ -364,7 +385,8 @@ function requireMap() {
|
|
|
364
385
|
var failsafe;
|
|
365
386
|
var hasRequiredFailsafe;
|
|
366
387
|
function requireFailsafe() {
|
|
367
|
-
if (hasRequiredFailsafe)
|
|
388
|
+
if (hasRequiredFailsafe)
|
|
389
|
+
return failsafe;
|
|
368
390
|
hasRequiredFailsafe = 1;
|
|
369
391
|
const Schema2 = requireSchema();
|
|
370
392
|
failsafe = new Schema2({
|
|
@@ -379,11 +401,13 @@ function requireFailsafe() {
|
|
|
379
401
|
var _null;
|
|
380
402
|
var hasRequired_null;
|
|
381
403
|
function require_null() {
|
|
382
|
-
if (hasRequired_null)
|
|
404
|
+
if (hasRequired_null)
|
|
405
|
+
return _null;
|
|
383
406
|
hasRequired_null = 1;
|
|
384
407
|
const Type2 = requireType();
|
|
385
408
|
function resolveYamlNull(data) {
|
|
386
|
-
if (data === null)
|
|
409
|
+
if (data === null)
|
|
410
|
+
return true;
|
|
387
411
|
const max = data.length;
|
|
388
412
|
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
389
413
|
}
|
|
@@ -422,11 +446,13 @@ function require_null() {
|
|
|
422
446
|
var bool;
|
|
423
447
|
var hasRequiredBool;
|
|
424
448
|
function requireBool() {
|
|
425
|
-
if (hasRequiredBool)
|
|
449
|
+
if (hasRequiredBool)
|
|
450
|
+
return bool;
|
|
426
451
|
hasRequiredBool = 1;
|
|
427
452
|
const Type2 = requireType();
|
|
428
453
|
function resolveYamlBoolean(data) {
|
|
429
|
-
if (data === null)
|
|
454
|
+
if (data === null)
|
|
455
|
+
return false;
|
|
430
456
|
const max = data.length;
|
|
431
457
|
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
432
458
|
}
|
|
@@ -459,7 +485,8 @@ function requireBool() {
|
|
|
459
485
|
var int;
|
|
460
486
|
var hasRequiredInt;
|
|
461
487
|
function requireInt() {
|
|
462
|
-
if (hasRequiredInt)
|
|
488
|
+
if (hasRequiredInt)
|
|
489
|
+
return int;
|
|
463
490
|
hasRequiredInt = 1;
|
|
464
491
|
const common2 = requireCommon();
|
|
465
492
|
const Type2 = requireType();
|
|
@@ -473,51 +500,58 @@ function requireInt() {
|
|
|
473
500
|
return c >= 48 && c <= 57;
|
|
474
501
|
}
|
|
475
502
|
function resolveYamlInteger(data) {
|
|
476
|
-
if (data === null)
|
|
503
|
+
if (data === null)
|
|
504
|
+
return false;
|
|
477
505
|
const max = data.length;
|
|
478
506
|
let index = 0;
|
|
479
507
|
let hasDigits = false;
|
|
480
|
-
if (!max)
|
|
508
|
+
if (!max)
|
|
509
|
+
return false;
|
|
481
510
|
let ch = data[index];
|
|
482
511
|
if (ch === "-" || ch === "+") {
|
|
483
512
|
ch = data[++index];
|
|
484
513
|
}
|
|
485
514
|
if (ch === "0") {
|
|
486
|
-
if (index + 1 === max)
|
|
515
|
+
if (index + 1 === max)
|
|
516
|
+
return true;
|
|
487
517
|
ch = data[++index];
|
|
488
518
|
if (ch === "b") {
|
|
489
519
|
index++;
|
|
490
|
-
for (;
|
|
520
|
+
for (;index < max; index++) {
|
|
491
521
|
ch = data[index];
|
|
492
|
-
if (ch !== "0" && ch !== "1")
|
|
522
|
+
if (ch !== "0" && ch !== "1")
|
|
523
|
+
return false;
|
|
493
524
|
hasDigits = true;
|
|
494
525
|
}
|
|
495
526
|
return hasDigits && isFinite(parseYamlInteger(data));
|
|
496
527
|
}
|
|
497
528
|
if (ch === "x") {
|
|
498
529
|
index++;
|
|
499
|
-
for (;
|
|
500
|
-
if (!isHexCode(data.charCodeAt(index)))
|
|
530
|
+
for (;index < max; index++) {
|
|
531
|
+
if (!isHexCode(data.charCodeAt(index)))
|
|
532
|
+
return false;
|
|
501
533
|
hasDigits = true;
|
|
502
534
|
}
|
|
503
535
|
return hasDigits && isFinite(parseYamlInteger(data));
|
|
504
536
|
}
|
|
505
537
|
if (ch === "o") {
|
|
506
538
|
index++;
|
|
507
|
-
for (;
|
|
508
|
-
if (!isOctCode(data.charCodeAt(index)))
|
|
539
|
+
for (;index < max; index++) {
|
|
540
|
+
if (!isOctCode(data.charCodeAt(index)))
|
|
541
|
+
return false;
|
|
509
542
|
hasDigits = true;
|
|
510
543
|
}
|
|
511
544
|
return hasDigits && isFinite(parseYamlInteger(data));
|
|
512
545
|
}
|
|
513
546
|
}
|
|
514
|
-
for (;
|
|
547
|
+
for (;index < max; index++) {
|
|
515
548
|
if (!isDecCode(data.charCodeAt(index))) {
|
|
516
549
|
return false;
|
|
517
550
|
}
|
|
518
551
|
hasDigits = true;
|
|
519
552
|
}
|
|
520
|
-
if (!hasDigits)
|
|
553
|
+
if (!hasDigits)
|
|
554
|
+
return false;
|
|
521
555
|
return isFinite(parseYamlInteger(data));
|
|
522
556
|
}
|
|
523
557
|
function parseYamlInteger(data) {
|
|
@@ -525,15 +559,20 @@ function requireInt() {
|
|
|
525
559
|
let sign = 1;
|
|
526
560
|
let ch = value[0];
|
|
527
561
|
if (ch === "-" || ch === "+") {
|
|
528
|
-
if (ch === "-")
|
|
562
|
+
if (ch === "-")
|
|
563
|
+
sign = -1;
|
|
529
564
|
value = value.slice(1);
|
|
530
565
|
ch = value[0];
|
|
531
566
|
}
|
|
532
|
-
if (value === "0")
|
|
567
|
+
if (value === "0")
|
|
568
|
+
return 0;
|
|
533
569
|
if (ch === "0") {
|
|
534
|
-
if (value[1] === "b")
|
|
535
|
-
|
|
536
|
-
if (value[1] === "
|
|
570
|
+
if (value[1] === "b")
|
|
571
|
+
return sign * parseInt(value.slice(2), 2);
|
|
572
|
+
if (value[1] === "x")
|
|
573
|
+
return sign * parseInt(value.slice(2), 16);
|
|
574
|
+
if (value[1] === "o")
|
|
575
|
+
return sign * parseInt(value.slice(2), 8);
|
|
537
576
|
}
|
|
538
577
|
return sign * parseInt(value, 10);
|
|
539
578
|
}
|
|
@@ -575,19 +614,16 @@ function requireInt() {
|
|
|
575
614
|
var float;
|
|
576
615
|
var hasRequiredFloat;
|
|
577
616
|
function requireFloat() {
|
|
578
|
-
if (hasRequiredFloat)
|
|
617
|
+
if (hasRequiredFloat)
|
|
618
|
+
return float;
|
|
579
619
|
hasRequiredFloat = 1;
|
|
580
620
|
const common2 = requireCommon();
|
|
581
621
|
const Type2 = requireType();
|
|
582
|
-
const YAML_FLOAT_PATTERN = new RegExp(
|
|
583
|
-
|
|
584
|
-
"^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
585
|
-
);
|
|
586
|
-
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp(
|
|
587
|
-
"^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
588
|
-
);
|
|
622
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
623
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
589
624
|
function resolveYamlFloat(data) {
|
|
590
|
-
if (data === null)
|
|
625
|
+
if (data === null)
|
|
626
|
+
return false;
|
|
591
627
|
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
592
628
|
return false;
|
|
593
629
|
}
|
|
@@ -660,7 +696,8 @@ function requireFloat() {
|
|
|
660
696
|
var json;
|
|
661
697
|
var hasRequiredJson;
|
|
662
698
|
function requireJson() {
|
|
663
|
-
if (hasRequiredJson)
|
|
699
|
+
if (hasRequiredJson)
|
|
700
|
+
return json;
|
|
664
701
|
hasRequiredJson = 1;
|
|
665
702
|
json = requireFailsafe().extend({
|
|
666
703
|
implicit: [
|
|
@@ -675,7 +712,8 @@ function requireJson() {
|
|
|
675
712
|
var core;
|
|
676
713
|
var hasRequiredCore;
|
|
677
714
|
function requireCore() {
|
|
678
|
-
if (hasRequiredCore)
|
|
715
|
+
if (hasRequiredCore)
|
|
716
|
+
return core;
|
|
679
717
|
hasRequiredCore = 1;
|
|
680
718
|
core = requireJson();
|
|
681
719
|
return core;
|
|
@@ -683,27 +721,29 @@ function requireCore() {
|
|
|
683
721
|
var timestamp;
|
|
684
722
|
var hasRequiredTimestamp;
|
|
685
723
|
function requireTimestamp() {
|
|
686
|
-
if (hasRequiredTimestamp)
|
|
724
|
+
if (hasRequiredTimestamp)
|
|
725
|
+
return timestamp;
|
|
687
726
|
hasRequiredTimestamp = 1;
|
|
688
727
|
const Type2 = requireType();
|
|
689
|
-
const YAML_DATE_REGEXP = new RegExp(
|
|
690
|
-
|
|
691
|
-
);
|
|
692
|
-
const YAML_TIMESTAMP_REGEXP = new RegExp(
|
|
693
|
-
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
694
|
-
);
|
|
728
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
729
|
+
const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
695
730
|
function resolveYamlTimestamp(data) {
|
|
696
|
-
if (data === null)
|
|
697
|
-
|
|
698
|
-
if (
|
|
731
|
+
if (data === null)
|
|
732
|
+
return false;
|
|
733
|
+
if (YAML_DATE_REGEXP.exec(data) !== null)
|
|
734
|
+
return true;
|
|
735
|
+
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null)
|
|
736
|
+
return true;
|
|
699
737
|
return false;
|
|
700
738
|
}
|
|
701
739
|
function constructYamlTimestamp(data) {
|
|
702
740
|
let fraction = 0;
|
|
703
741
|
let delta = null;
|
|
704
742
|
let match = YAML_DATE_REGEXP.exec(data);
|
|
705
|
-
if (match === null)
|
|
706
|
-
|
|
743
|
+
if (match === null)
|
|
744
|
+
match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
745
|
+
if (match === null)
|
|
746
|
+
throw new Error("Date resolve error");
|
|
707
747
|
const year = +match[1];
|
|
708
748
|
const month = +match[2] - 1;
|
|
709
749
|
const day = +match[3];
|
|
@@ -723,11 +763,13 @@ function requireTimestamp() {
|
|
|
723
763
|
if (match[9]) {
|
|
724
764
|
const tzHour = +match[10];
|
|
725
765
|
const tzMinute = +(match[11] || 0);
|
|
726
|
-
delta = (tzHour * 60 + tzMinute) *
|
|
727
|
-
if (match[9] === "-")
|
|
766
|
+
delta = (tzHour * 60 + tzMinute) * 60000;
|
|
767
|
+
if (match[9] === "-")
|
|
768
|
+
delta = -delta;
|
|
728
769
|
}
|
|
729
770
|
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
730
|
-
if (delta)
|
|
771
|
+
if (delta)
|
|
772
|
+
date.setTime(date.getTime() - delta);
|
|
731
773
|
return date;
|
|
732
774
|
}
|
|
733
775
|
function representYamlTimestamp(object) {
|
|
@@ -745,7 +787,8 @@ function requireTimestamp() {
|
|
|
745
787
|
var merge;
|
|
746
788
|
var hasRequiredMerge;
|
|
747
789
|
function requireMerge() {
|
|
748
|
-
if (hasRequiredMerge)
|
|
790
|
+
if (hasRequiredMerge)
|
|
791
|
+
return merge;
|
|
749
792
|
hasRequiredMerge = 1;
|
|
750
793
|
const Type2 = requireType();
|
|
751
794
|
function resolveYamlMerge(data) {
|
|
@@ -760,19 +803,24 @@ function requireMerge() {
|
|
|
760
803
|
var binary;
|
|
761
804
|
var hasRequiredBinary;
|
|
762
805
|
function requireBinary() {
|
|
763
|
-
if (hasRequiredBinary)
|
|
806
|
+
if (hasRequiredBinary)
|
|
807
|
+
return binary;
|
|
764
808
|
hasRequiredBinary = 1;
|
|
765
809
|
const Type2 = requireType();
|
|
766
|
-
const BASE64_MAP =
|
|
810
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
811
|
+
\r`;
|
|
767
812
|
function resolveYamlBinary(data) {
|
|
768
|
-
if (data === null)
|
|
813
|
+
if (data === null)
|
|
814
|
+
return false;
|
|
769
815
|
let bitlen = 0;
|
|
770
816
|
const max = data.length;
|
|
771
817
|
const map2 = BASE64_MAP;
|
|
772
|
-
for (let idx = 0;
|
|
818
|
+
for (let idx = 0;idx < max; idx++) {
|
|
773
819
|
const code = map2.indexOf(data.charAt(idx));
|
|
774
|
-
if (code > 64)
|
|
775
|
-
|
|
820
|
+
if (code > 64)
|
|
821
|
+
continue;
|
|
822
|
+
if (code < 0)
|
|
823
|
+
return false;
|
|
776
824
|
bitlen += 6;
|
|
777
825
|
}
|
|
778
826
|
return bitlen % 8 === 0;
|
|
@@ -783,7 +831,7 @@ function requireBinary() {
|
|
|
783
831
|
const map2 = BASE64_MAP;
|
|
784
832
|
let bits = 0;
|
|
785
833
|
const result = [];
|
|
786
|
-
for (let idx = 0;
|
|
834
|
+
for (let idx = 0;idx < max; idx++) {
|
|
787
835
|
if (idx % 4 === 0 && idx) {
|
|
788
836
|
result.push(bits >> 16 & 255);
|
|
789
837
|
result.push(bits >> 8 & 255);
|
|
@@ -809,7 +857,7 @@ function requireBinary() {
|
|
|
809
857
|
let bits = 0;
|
|
810
858
|
const max = object.length;
|
|
811
859
|
const map2 = BASE64_MAP;
|
|
812
|
-
for (let idx = 0;
|
|
860
|
+
for (let idx = 0;idx < max; idx++) {
|
|
813
861
|
if (idx % 3 === 0 && idx) {
|
|
814
862
|
result += map2[bits >> 18 & 63];
|
|
815
863
|
result += map2[bits >> 12 & 63];
|
|
@@ -852,28 +900,35 @@ function requireBinary() {
|
|
|
852
900
|
var omap;
|
|
853
901
|
var hasRequiredOmap;
|
|
854
902
|
function requireOmap() {
|
|
855
|
-
if (hasRequiredOmap)
|
|
903
|
+
if (hasRequiredOmap)
|
|
904
|
+
return omap;
|
|
856
905
|
hasRequiredOmap = 1;
|
|
857
906
|
const Type2 = requireType();
|
|
858
907
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
859
908
|
const _toString = Object.prototype.toString;
|
|
860
909
|
function resolveYamlOmap(data) {
|
|
861
|
-
if (data === null)
|
|
910
|
+
if (data === null)
|
|
911
|
+
return true;
|
|
862
912
|
const objectKeys = {};
|
|
863
913
|
const object = data;
|
|
864
|
-
for (let index = 0, length = object.length;
|
|
914
|
+
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
865
915
|
const pair = object[index];
|
|
866
916
|
let pairHasKey = false;
|
|
867
|
-
if (_toString.call(pair) !== "[object Object]")
|
|
917
|
+
if (_toString.call(pair) !== "[object Object]")
|
|
918
|
+
return false;
|
|
868
919
|
let pairKey;
|
|
869
920
|
for (pairKey in pair) {
|
|
870
921
|
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
871
|
-
if (!pairHasKey)
|
|
872
|
-
|
|
922
|
+
if (!pairHasKey)
|
|
923
|
+
pairHasKey = true;
|
|
924
|
+
else
|
|
925
|
+
return false;
|
|
873
926
|
}
|
|
874
927
|
}
|
|
875
|
-
if (!pairHasKey)
|
|
876
|
-
|
|
928
|
+
if (!pairHasKey)
|
|
929
|
+
return false;
|
|
930
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
931
|
+
return false;
|
|
877
932
|
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
878
933
|
}
|
|
879
934
|
return true;
|
|
@@ -891,28 +946,33 @@ function requireOmap() {
|
|
|
891
946
|
var pairs;
|
|
892
947
|
var hasRequiredPairs;
|
|
893
948
|
function requirePairs() {
|
|
894
|
-
if (hasRequiredPairs)
|
|
949
|
+
if (hasRequiredPairs)
|
|
950
|
+
return pairs;
|
|
895
951
|
hasRequiredPairs = 1;
|
|
896
952
|
const Type2 = requireType();
|
|
897
953
|
const _toString = Object.prototype.toString;
|
|
898
954
|
function resolveYamlPairs(data) {
|
|
899
|
-
if (data === null)
|
|
955
|
+
if (data === null)
|
|
956
|
+
return true;
|
|
900
957
|
const object = data;
|
|
901
958
|
const result = new Array(object.length);
|
|
902
|
-
for (let index = 0, length = object.length;
|
|
959
|
+
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
903
960
|
const pair = object[index];
|
|
904
|
-
if (_toString.call(pair) !== "[object Object]")
|
|
961
|
+
if (_toString.call(pair) !== "[object Object]")
|
|
962
|
+
return false;
|
|
905
963
|
const keys = Object.keys(pair);
|
|
906
|
-
if (keys.length !== 1)
|
|
964
|
+
if (keys.length !== 1)
|
|
965
|
+
return false;
|
|
907
966
|
result[index] = [keys[0], pair[keys[0]]];
|
|
908
967
|
}
|
|
909
968
|
return true;
|
|
910
969
|
}
|
|
911
970
|
function constructYamlPairs(data) {
|
|
912
|
-
if (data === null)
|
|
971
|
+
if (data === null)
|
|
972
|
+
return [];
|
|
913
973
|
const object = data;
|
|
914
974
|
const result = new Array(object.length);
|
|
915
|
-
for (let index = 0, length = object.length;
|
|
975
|
+
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
916
976
|
const pair = object[index];
|
|
917
977
|
const keys = Object.keys(pair);
|
|
918
978
|
result[index] = [keys[0], pair[keys[0]]];
|
|
@@ -929,16 +989,19 @@ function requirePairs() {
|
|
|
929
989
|
var set;
|
|
930
990
|
var hasRequiredSet;
|
|
931
991
|
function requireSet() {
|
|
932
|
-
if (hasRequiredSet)
|
|
992
|
+
if (hasRequiredSet)
|
|
993
|
+
return set;
|
|
933
994
|
hasRequiredSet = 1;
|
|
934
995
|
const Type2 = requireType();
|
|
935
996
|
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
936
997
|
function resolveYamlSet(data) {
|
|
937
|
-
if (data === null)
|
|
998
|
+
if (data === null)
|
|
999
|
+
return true;
|
|
938
1000
|
const object = data;
|
|
939
1001
|
for (const key in object) {
|
|
940
1002
|
if (_hasOwnProperty.call(object, key)) {
|
|
941
|
-
if (object[key] !== null)
|
|
1003
|
+
if (object[key] !== null)
|
|
1004
|
+
return false;
|
|
942
1005
|
}
|
|
943
1006
|
}
|
|
944
1007
|
return true;
|
|
@@ -956,7 +1019,8 @@ function requireSet() {
|
|
|
956
1019
|
var _default;
|
|
957
1020
|
var hasRequired_default;
|
|
958
1021
|
function require_default() {
|
|
959
|
-
if (hasRequired_default)
|
|
1022
|
+
if (hasRequired_default)
|
|
1023
|
+
return _default;
|
|
960
1024
|
hasRequired_default = 1;
|
|
961
1025
|
_default = requireCore().extend({
|
|
962
1026
|
implicit: [
|
|
@@ -974,7 +1038,8 @@ function require_default() {
|
|
|
974
1038
|
}
|
|
975
1039
|
var hasRequiredLoader;
|
|
976
1040
|
function requireLoader() {
|
|
977
|
-
if (hasRequiredLoader)
|
|
1041
|
+
if (hasRequiredLoader)
|
|
1042
|
+
return loader;
|
|
978
1043
|
hasRequiredLoader = 1;
|
|
979
1044
|
const common2 = requireCommon();
|
|
980
1045
|
const YAMLException2 = requireException();
|
|
@@ -1039,17 +1104,18 @@ function requireLoader() {
|
|
|
1039
1104
|
function simpleEscapeSequence(c) {
|
|
1040
1105
|
switch (c) {
|
|
1041
1106
|
case 48:
|
|
1042
|
-
return "\
|
|
1107
|
+
return "\x00";
|
|
1043
1108
|
case 97:
|
|
1044
1109
|
return "\x07";
|
|
1045
1110
|
case 98:
|
|
1046
1111
|
return "\b";
|
|
1047
1112
|
case 116:
|
|
1048
|
-
return "
|
|
1113
|
+
return "\t";
|
|
1049
1114
|
case 9:
|
|
1050
|
-
return "
|
|
1115
|
+
return "\t";
|
|
1051
1116
|
case 110:
|
|
1052
|
-
return
|
|
1117
|
+
return `
|
|
1118
|
+
`;
|
|
1053
1119
|
case 118:
|
|
1054
1120
|
return "\v";
|
|
1055
1121
|
case 102:
|
|
@@ -1067,9 +1133,9 @@ function requireLoader() {
|
|
|
1067
1133
|
case 92:
|
|
1068
1134
|
return "\\";
|
|
1069
1135
|
case 78:
|
|
1070
|
-
return "
|
|
1136
|
+
return "
";
|
|
1071
1137
|
case 95:
|
|
1072
|
-
return "
|
|
1138
|
+
return " ";
|
|
1073
1139
|
case 76:
|
|
1074
1140
|
return "\u2028";
|
|
1075
1141
|
case 80:
|
|
@@ -1082,10 +1148,7 @@ function requireLoader() {
|
|
|
1082
1148
|
if (c <= 65535) {
|
|
1083
1149
|
return String.fromCharCode(c);
|
|
1084
1150
|
}
|
|
1085
|
-
return String.fromCharCode(
|
|
1086
|
-
(c - 65536 >> 10) + 55296,
|
|
1087
|
-
(c - 65536 & 1023) + 56320
|
|
1088
|
-
);
|
|
1151
|
+
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
1089
1152
|
}
|
|
1090
1153
|
function setProperty(object, key, value) {
|
|
1091
1154
|
if (key === "__proto__") {
|
|
@@ -1101,7 +1164,7 @@ function requireLoader() {
|
|
|
1101
1164
|
}
|
|
1102
1165
|
const simpleEscapeCheck = new Array(256);
|
|
1103
1166
|
const simpleEscapeMap = new Array(256);
|
|
1104
|
-
for (let i = 0;
|
|
1167
|
+
for (let i = 0;i < 256; i++) {
|
|
1105
1168
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
1106
1169
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
1107
1170
|
}
|
|
@@ -1132,7 +1195,6 @@ function requireLoader() {
|
|
|
1132
1195
|
const mark = {
|
|
1133
1196
|
name: state.filename,
|
|
1134
1197
|
buffer: state.input.slice(0, -1),
|
|
1135
|
-
// omit trailing \0
|
|
1136
1198
|
position: state.position,
|
|
1137
1199
|
line: state.line,
|
|
1138
1200
|
column: state.position - state.lineStart
|
|
@@ -1167,10 +1229,11 @@ function requireLoader() {
|
|
|
1167
1229
|
function commitAnchorTransaction(state) {
|
|
1168
1230
|
const transaction = state.anchorMapTransactions.pop();
|
|
1169
1231
|
const transactions = state.anchorMapTransactions;
|
|
1170
|
-
if (transactions.length === 0)
|
|
1232
|
+
if (transactions.length === 0)
|
|
1233
|
+
return;
|
|
1171
1234
|
const parent = transactions[transactions.length - 1];
|
|
1172
1235
|
const names = Object.keys(transaction);
|
|
1173
|
-
for (let index = 0, length = names.length;
|
|
1236
|
+
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
1174
1237
|
const name = names[index];
|
|
1175
1238
|
if (!_hasOwnProperty.call(parent, name)) {
|
|
1176
1239
|
parent[name] = transaction[name];
|
|
@@ -1180,7 +1243,7 @@ function requireLoader() {
|
|
|
1180
1243
|
function rollbackAnchorTransaction(state) {
|
|
1181
1244
|
const transaction = state.anchorMapTransactions.pop();
|
|
1182
1245
|
const names = Object.keys(transaction);
|
|
1183
|
-
for (let index = names.length - 1;
|
|
1246
|
+
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
1184
1247
|
const entry = transaction[names[index]];
|
|
1185
1248
|
if (entry.existed) {
|
|
1186
1249
|
state.anchorMap[names[index]] = entry.value;
|
|
@@ -1264,7 +1327,7 @@ function requireLoader() {
|
|
|
1264
1327
|
if (start < end) {
|
|
1265
1328
|
const _result = state.input.slice(start, end);
|
|
1266
1329
|
if (checkJson) {
|
|
1267
|
-
for (let _position = 0, _length = _result.length;
|
|
1330
|
+
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
1268
1331
|
const _character = _result.charCodeAt(_position);
|
|
1269
1332
|
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
1270
1333
|
throwError(state, "expected valid JSON character");
|
|
@@ -1281,7 +1344,7 @@ function requireLoader() {
|
|
|
1281
1344
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
1282
1345
|
}
|
|
1283
1346
|
const sourceKeys = Object.keys(source);
|
|
1284
|
-
for (let index = 0, quantity = sourceKeys.length;
|
|
1347
|
+
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
1285
1348
|
const key = sourceKeys[index];
|
|
1286
1349
|
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
1287
1350
|
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
@@ -1295,7 +1358,7 @@ function requireLoader() {
|
|
|
1295
1358
|
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
1296
1359
|
if (Array.isArray(keyNode)) {
|
|
1297
1360
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
1298
|
-
for (let index = 0, quantity = keyNode.length;
|
|
1361
|
+
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
1299
1362
|
if (Array.isArray(keyNode[index])) {
|
|
1300
1363
|
throwError(state, "nested arrays are not supported inside keys");
|
|
1301
1364
|
}
|
|
@@ -1313,7 +1376,7 @@ function requireLoader() {
|
|
|
1313
1376
|
}
|
|
1314
1377
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
1315
1378
|
if (Array.isArray(valueNode)) {
|
|
1316
|
-
for (let index = 0, quantity = valueNode.length;
|
|
1379
|
+
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
1317
1380
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
1318
1381
|
}
|
|
1319
1382
|
} else {
|
|
@@ -1396,7 +1459,8 @@ function requireLoader() {
|
|
|
1396
1459
|
if (count === 1) {
|
|
1397
1460
|
state.result += " ";
|
|
1398
1461
|
} else if (count > 1) {
|
|
1399
|
-
state.result += common2.repeat(
|
|
1462
|
+
state.result += common2.repeat(`
|
|
1463
|
+
`, count - 1);
|
|
1400
1464
|
}
|
|
1401
1465
|
}
|
|
1402
1466
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
@@ -1536,7 +1600,7 @@ function requireLoader() {
|
|
|
1536
1600
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
1537
1601
|
let hexLength = tmp;
|
|
1538
1602
|
let hexResult = 0;
|
|
1539
|
-
for (;
|
|
1603
|
+
for (;hexLength > 0; hexLength--) {
|
|
1540
1604
|
ch = state.input.charCodeAt(++state.position);
|
|
1541
1605
|
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
1542
1606
|
hexResult = (hexResult << 4) + tmp;
|
|
@@ -1725,10 +1789,12 @@ function requireLoader() {
|
|
|
1725
1789
|
}
|
|
1726
1790
|
if (state.lineIndent < textIndent) {
|
|
1727
1791
|
if (chomping === CHOMPING_KEEP) {
|
|
1728
|
-
state.result += common2.repeat(
|
|
1792
|
+
state.result += common2.repeat(`
|
|
1793
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
1729
1794
|
} else if (chomping === CHOMPING_CLIP) {
|
|
1730
1795
|
if (didReadContent) {
|
|
1731
|
-
state.result +=
|
|
1796
|
+
state.result += `
|
|
1797
|
+
`;
|
|
1732
1798
|
}
|
|
1733
1799
|
}
|
|
1734
1800
|
break;
|
|
@@ -1736,19 +1802,23 @@ function requireLoader() {
|
|
|
1736
1802
|
if (folding) {
|
|
1737
1803
|
if (isWhiteSpace(ch)) {
|
|
1738
1804
|
atMoreIndented = true;
|
|
1739
|
-
state.result += common2.repeat(
|
|
1805
|
+
state.result += common2.repeat(`
|
|
1806
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
1740
1807
|
} else if (atMoreIndented) {
|
|
1741
1808
|
atMoreIndented = false;
|
|
1742
|
-
state.result += common2.repeat(
|
|
1809
|
+
state.result += common2.repeat(`
|
|
1810
|
+
`, emptyLines + 1);
|
|
1743
1811
|
} else if (emptyLines === 0) {
|
|
1744
1812
|
if (didReadContent) {
|
|
1745
1813
|
state.result += " ";
|
|
1746
1814
|
}
|
|
1747
1815
|
} else {
|
|
1748
|
-
state.result += common2.repeat(
|
|
1816
|
+
state.result += common2.repeat(`
|
|
1817
|
+
`, emptyLines);
|
|
1749
1818
|
}
|
|
1750
1819
|
} else {
|
|
1751
|
-
state.result += common2.repeat(
|
|
1820
|
+
state.result += common2.repeat(`
|
|
1821
|
+
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
1752
1822
|
}
|
|
1753
1823
|
didReadContent = true;
|
|
1754
1824
|
detectedIndent = true;
|
|
@@ -1766,7 +1836,8 @@ function requireLoader() {
|
|
|
1766
1836
|
const _anchor = state.anchor;
|
|
1767
1837
|
const _result = [];
|
|
1768
1838
|
let detected = false;
|
|
1769
|
-
if (state.firstTabInLine !== -1)
|
|
1839
|
+
if (state.firstTabInLine !== -1)
|
|
1840
|
+
return false;
|
|
1770
1841
|
if (state.anchor !== null) {
|
|
1771
1842
|
storeAnchor(state, state.anchor, _result);
|
|
1772
1843
|
}
|
|
@@ -1826,7 +1897,8 @@ function requireLoader() {
|
|
|
1826
1897
|
let valueNode = null;
|
|
1827
1898
|
let atExplicitKey = false;
|
|
1828
1899
|
let detected = false;
|
|
1829
|
-
if (state.firstTabInLine !== -1)
|
|
1900
|
+
if (state.firstTabInLine !== -1)
|
|
1901
|
+
return false;
|
|
1830
1902
|
if (state.anchor !== null) {
|
|
1831
1903
|
storeAnchor(state, state.anchor, _result);
|
|
1832
1904
|
}
|
|
@@ -1939,7 +2011,8 @@ function requireLoader() {
|
|
|
1939
2011
|
let tagHandle;
|
|
1940
2012
|
let tagName;
|
|
1941
2013
|
let ch = state.input.charCodeAt(state.position);
|
|
1942
|
-
if (ch !== 33)
|
|
2014
|
+
if (ch !== 33)
|
|
2015
|
+
return false;
|
|
1943
2016
|
if (state.tag !== null) {
|
|
1944
2017
|
throwError(state, "duplication of a tag property");
|
|
1945
2018
|
}
|
|
@@ -2009,7 +2082,8 @@ function requireLoader() {
|
|
|
2009
2082
|
}
|
|
2010
2083
|
function readAnchorProperty(state) {
|
|
2011
2084
|
let ch = state.input.charCodeAt(state.position);
|
|
2012
|
-
if (ch !== 38)
|
|
2085
|
+
if (ch !== 38)
|
|
2086
|
+
return false;
|
|
2013
2087
|
if (state.anchor !== null) {
|
|
2014
2088
|
throwError(state, "duplication of an anchor property");
|
|
2015
2089
|
}
|
|
@@ -2026,7 +2100,8 @@ function requireLoader() {
|
|
|
2026
2100
|
}
|
|
2027
2101
|
function readAlias(state) {
|
|
2028
2102
|
let ch = state.input.charCodeAt(state.position);
|
|
2029
|
-
if (ch !== 42)
|
|
2103
|
+
if (ch !== 42)
|
|
2104
|
+
return false;
|
|
2030
2105
|
ch = state.input.charCodeAt(++state.position);
|
|
2031
2106
|
const _position = state.position;
|
|
2032
2107
|
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
@@ -2136,12 +2211,7 @@ function requireLoader() {
|
|
|
2136
2211
|
hasContent = true;
|
|
2137
2212
|
} else {
|
|
2138
2213
|
const ch = state.input.charCodeAt(state.position);
|
|
2139
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(
|
|
2140
|
-
state,
|
|
2141
|
-
propertyStart,
|
|
2142
|
-
propertyStart.position - propertyStart.lineStart,
|
|
2143
|
-
flowIndent
|
|
2144
|
-
)) {
|
|
2214
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
2145
2215
|
hasContent = true;
|
|
2146
2216
|
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
2147
2217
|
hasContent = true;
|
|
@@ -2172,7 +2242,7 @@ function requireLoader() {
|
|
|
2172
2242
|
if (state.result !== null && state.kind !== "scalar") {
|
|
2173
2243
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
2174
2244
|
}
|
|
2175
|
-
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;
|
|
2245
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
2176
2246
|
type2 = state.implicitTypes[typeIndex];
|
|
2177
2247
|
if (type2.resolve(state.result)) {
|
|
2178
2248
|
state.result = type2.construct(state.result);
|
|
@@ -2189,7 +2259,7 @@ function requireLoader() {
|
|
|
2189
2259
|
} else {
|
|
2190
2260
|
type2 = null;
|
|
2191
2261
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
2192
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;
|
|
2262
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
2193
2263
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
2194
2264
|
type2 = typeList[typeIndex];
|
|
2195
2265
|
break;
|
|
@@ -2252,14 +2322,16 @@ function requireLoader() {
|
|
|
2252
2322
|
} while (ch !== 0 && !isEol(ch));
|
|
2253
2323
|
break;
|
|
2254
2324
|
}
|
|
2255
|
-
if (isEol(ch))
|
|
2325
|
+
if (isEol(ch))
|
|
2326
|
+
break;
|
|
2256
2327
|
_position = state.position;
|
|
2257
2328
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
2258
2329
|
ch = state.input.charCodeAt(++state.position);
|
|
2259
2330
|
}
|
|
2260
2331
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
2261
2332
|
}
|
|
2262
|
-
if (ch !== 0)
|
|
2333
|
+
if (ch !== 0)
|
|
2334
|
+
readLineBreak(state);
|
|
2263
2335
|
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
2264
2336
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
2265
2337
|
} else {
|
|
@@ -2295,19 +2367,20 @@ function requireLoader() {
|
|
|
2295
2367
|
options = options || {};
|
|
2296
2368
|
if (input.length !== 0) {
|
|
2297
2369
|
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
2298
|
-
input +=
|
|
2370
|
+
input += `
|
|
2371
|
+
`;
|
|
2299
2372
|
}
|
|
2300
2373
|
if (input.charCodeAt(0) === 65279) {
|
|
2301
2374
|
input = input.slice(1);
|
|
2302
2375
|
}
|
|
2303
2376
|
}
|
|
2304
2377
|
const state = new State(input, options);
|
|
2305
|
-
const nullpos = input.indexOf("\
|
|
2378
|
+
const nullpos = input.indexOf("\x00");
|
|
2306
2379
|
if (nullpos !== -1) {
|
|
2307
2380
|
state.position = nullpos;
|
|
2308
2381
|
throwError(state, "null byte is not allowed in input");
|
|
2309
2382
|
}
|
|
2310
|
-
state.input += "\
|
|
2383
|
+
state.input += "\x00";
|
|
2311
2384
|
while (state.input.charCodeAt(state.position) === 32) {
|
|
2312
2385
|
state.lineIndent += 1;
|
|
2313
2386
|
state.position += 1;
|
|
@@ -2326,14 +2399,14 @@ function requireLoader() {
|
|
|
2326
2399
|
if (typeof iterator !== "function") {
|
|
2327
2400
|
return documents;
|
|
2328
2401
|
}
|
|
2329
|
-
for (let index = 0, length = documents.length;
|
|
2402
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
2330
2403
|
iterator(documents[index]);
|
|
2331
2404
|
}
|
|
2332
2405
|
}
|
|
2333
2406
|
function load2(input, options) {
|
|
2334
2407
|
const documents = loadDocuments(input, options);
|
|
2335
2408
|
if (documents.length === 0) {
|
|
2336
|
-
return
|
|
2409
|
+
return;
|
|
2337
2410
|
} else if (documents.length === 1) {
|
|
2338
2411
|
return documents[0];
|
|
2339
2412
|
}
|
|
@@ -2346,7 +2419,8 @@ function requireLoader() {
|
|
|
2346
2419
|
var dumper = {};
|
|
2347
2420
|
var hasRequiredDumper;
|
|
2348
2421
|
function requireDumper() {
|
|
2349
|
-
if (hasRequiredDumper)
|
|
2422
|
+
if (hasRequiredDumper)
|
|
2423
|
+
return dumper;
|
|
2350
2424
|
hasRequiredDumper = 1;
|
|
2351
2425
|
const common2 = requireCommon();
|
|
2352
2426
|
const YAMLException2 = requireException();
|
|
@@ -2388,7 +2462,7 @@ function requireDumper() {
|
|
|
2388
2462
|
ESCAPE_SEQUENCES[12] = "\\f";
|
|
2389
2463
|
ESCAPE_SEQUENCES[13] = "\\r";
|
|
2390
2464
|
ESCAPE_SEQUENCES[27] = "\\e";
|
|
2391
|
-
ESCAPE_SEQUENCES[34] =
|
|
2465
|
+
ESCAPE_SEQUENCES[34] = "\\\"";
|
|
2392
2466
|
ESCAPE_SEQUENCES[92] = "\\\\";
|
|
2393
2467
|
ESCAPE_SEQUENCES[133] = "\\N";
|
|
2394
2468
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
@@ -2414,10 +2488,11 @@ function requireDumper() {
|
|
|
2414
2488
|
];
|
|
2415
2489
|
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2416
2490
|
function compileStyleMap(schema2, map2) {
|
|
2417
|
-
if (map2 === null)
|
|
2491
|
+
if (map2 === null)
|
|
2492
|
+
return {};
|
|
2418
2493
|
const result = {};
|
|
2419
2494
|
const keys = Object.keys(map2);
|
|
2420
|
-
for (let index = 0, length = keys.length;
|
|
2495
|
+
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
2421
2496
|
let tag = keys[index];
|
|
2422
2497
|
let style = String(map2[tag]);
|
|
2423
2498
|
if (tag.slice(0, 2) === "!!") {
|
|
@@ -2480,7 +2555,8 @@ function requireDumper() {
|
|
|
2480
2555
|
const length = string.length;
|
|
2481
2556
|
while (position < length) {
|
|
2482
2557
|
let line;
|
|
2483
|
-
const next = string.indexOf(
|
|
2558
|
+
const next = string.indexOf(`
|
|
2559
|
+
`, position);
|
|
2484
2560
|
if (next === -1) {
|
|
2485
2561
|
line = string.slice(position);
|
|
2486
2562
|
position = length;
|
|
@@ -2488,16 +2564,19 @@ function requireDumper() {
|
|
|
2488
2564
|
line = string.slice(position, next + 1);
|
|
2489
2565
|
position = next + 1;
|
|
2490
2566
|
}
|
|
2491
|
-
if (line.length && line !==
|
|
2567
|
+
if (line.length && line !== `
|
|
2568
|
+
`)
|
|
2569
|
+
result += ind;
|
|
2492
2570
|
result += line;
|
|
2493
2571
|
}
|
|
2494
2572
|
return result;
|
|
2495
2573
|
}
|
|
2496
2574
|
function generateNextLine(state, level) {
|
|
2497
|
-
return
|
|
2575
|
+
return `
|
|
2576
|
+
` + common2.repeat(" ", state.indent * level);
|
|
2498
2577
|
}
|
|
2499
2578
|
function testImplicitResolving(state, str2) {
|
|
2500
|
-
for (let index = 0, length = state.implicitTypes.length;
|
|
2579
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
2501
2580
|
const type2 = state.implicitTypes[index];
|
|
2502
2581
|
if (type2.resolve(str2)) {
|
|
2503
2582
|
return true;
|
|
@@ -2512,29 +2591,15 @@ function requireDumper() {
|
|
|
2512
2591
|
return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
|
|
2513
2592
|
}
|
|
2514
2593
|
function isNsCharOrWhitespace(c) {
|
|
2515
|
-
return isPrintable(c) && c !== CHAR_BOM &&
|
|
2516
|
-
c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
2594
|
+
return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
2517
2595
|
}
|
|
2518
2596
|
function isPlainSafe(c, prev, inblock) {
|
|
2519
2597
|
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
2520
2598
|
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
2521
|
-
return (
|
|
2522
|
-
// ns-plain-safe
|
|
2523
|
-
(inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && // - c-flow-indicator
|
|
2524
|
-
c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && // ns-plain-char
|
|
2525
|
-
c !== CHAR_SHARP && // false on '#'
|
|
2526
|
-
!(prev === CHAR_COLON && !cIsNsChar) || // false on ': '
|
|
2527
|
-
isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || // change to true on '[^ ]#'
|
|
2528
|
-
prev === CHAR_COLON && cIsNsChar
|
|
2529
|
-
);
|
|
2599
|
+
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
2530
2600
|
}
|
|
2531
2601
|
function isPlainSafeFirst(c) {
|
|
2532
|
-
return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) &&
|
|
2533
|
-
// - (c-indicator ::=
|
|
2534
|
-
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
2535
|
-
c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
2536
|
-
c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && // | “%” | “@” | “`”)
|
|
2537
|
-
c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
|
|
2602
|
+
return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
|
|
2538
2603
|
}
|
|
2539
2604
|
function isPlainSafeLast(c) {
|
|
2540
2605
|
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
@@ -2569,7 +2634,7 @@ function requireDumper() {
|
|
|
2569
2634
|
let previousLineBreak = -1;
|
|
2570
2635
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
2571
2636
|
if (singleLineOnly || forceQuotes) {
|
|
2572
|
-
for (i = 0;
|
|
2637
|
+
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2573
2638
|
char = codePointAt(string, i);
|
|
2574
2639
|
if (!isPrintable(char)) {
|
|
2575
2640
|
return STYLE_DOUBLE;
|
|
@@ -2578,13 +2643,12 @@ function requireDumper() {
|
|
|
2578
2643
|
prevChar = char;
|
|
2579
2644
|
}
|
|
2580
2645
|
} else {
|
|
2581
|
-
for (i = 0;
|
|
2646
|
+
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2582
2647
|
char = codePointAt(string, i);
|
|
2583
2648
|
if (char === CHAR_LINE_FEED) {
|
|
2584
2649
|
hasLineBreak = true;
|
|
2585
2650
|
if (shouldTrackWidth) {
|
|
2586
|
-
hasFoldableLine = hasFoldableLine ||
|
|
2587
|
-
i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
2651
|
+
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
2588
2652
|
previousLineBreak = i;
|
|
2589
2653
|
}
|
|
2590
2654
|
} else if (!isPrintable(char)) {
|
|
@@ -2621,21 +2685,11 @@ function requireDumper() {
|
|
|
2621
2685
|
}
|
|
2622
2686
|
const indent = state.indent * Math.max(1, level);
|
|
2623
2687
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
2624
|
-
const singleLineOnly = iskey ||
|
|
2625
|
-
state.flowLevel > -1 && level >= state.flowLevel;
|
|
2688
|
+
const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
2626
2689
|
function testAmbiguity(string2) {
|
|
2627
2690
|
return testImplicitResolving(state, string2);
|
|
2628
2691
|
}
|
|
2629
|
-
switch (chooseScalarStyle(
|
|
2630
|
-
string,
|
|
2631
|
-
singleLineOnly,
|
|
2632
|
-
state.indent,
|
|
2633
|
-
lineWidth,
|
|
2634
|
-
testAmbiguity,
|
|
2635
|
-
state.quotingType,
|
|
2636
|
-
state.forceQuotes && !iskey,
|
|
2637
|
-
inblock
|
|
2638
|
-
)) {
|
|
2692
|
+
switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
|
|
2639
2693
|
case STYLE_PLAIN:
|
|
2640
2694
|
return string;
|
|
2641
2695
|
case STYLE_SINGLE:
|
|
@@ -2653,36 +2707,45 @@ function requireDumper() {
|
|
|
2653
2707
|
}
|
|
2654
2708
|
function blockHeader(string, indentPerLevel) {
|
|
2655
2709
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
2656
|
-
const clip = string[string.length - 1] ===
|
|
2657
|
-
|
|
2710
|
+
const clip = string[string.length - 1] === `
|
|
2711
|
+
`;
|
|
2712
|
+
const keep = clip && (string[string.length - 2] === `
|
|
2713
|
+
` || string === `
|
|
2714
|
+
`);
|
|
2658
2715
|
const chomp = keep ? "+" : clip ? "" : "-";
|
|
2659
|
-
return indentIndicator + chomp +
|
|
2716
|
+
return indentIndicator + chomp + `
|
|
2717
|
+
`;
|
|
2660
2718
|
}
|
|
2661
2719
|
function dropEndingNewline(string) {
|
|
2662
|
-
return string[string.length - 1] ===
|
|
2720
|
+
return string[string.length - 1] === `
|
|
2721
|
+
` ? string.slice(0, -1) : string;
|
|
2663
2722
|
}
|
|
2664
2723
|
function foldString(string, width) {
|
|
2665
2724
|
const lineRe = /(\n+)([^\n]*)/g;
|
|
2666
2725
|
let result = function() {
|
|
2667
|
-
let nextLF = string.indexOf(
|
|
2726
|
+
let nextLF = string.indexOf(`
|
|
2727
|
+
`);
|
|
2668
2728
|
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
2669
2729
|
lineRe.lastIndex = nextLF;
|
|
2670
2730
|
return foldLine(string.slice(0, nextLF), width);
|
|
2671
2731
|
}();
|
|
2672
|
-
let prevMoreIndented = string[0] ===
|
|
2732
|
+
let prevMoreIndented = string[0] === `
|
|
2733
|
+
` || string[0] === " ";
|
|
2673
2734
|
let moreIndented;
|
|
2674
2735
|
let match;
|
|
2675
2736
|
while (match = lineRe.exec(string)) {
|
|
2676
2737
|
const prefix = match[1];
|
|
2677
2738
|
const line = match[2];
|
|
2678
2739
|
moreIndented = line[0] === " ";
|
|
2679
|
-
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ?
|
|
2740
|
+
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? `
|
|
2741
|
+
` : "") + foldLine(line, width);
|
|
2680
2742
|
prevMoreIndented = moreIndented;
|
|
2681
2743
|
}
|
|
2682
2744
|
return result;
|
|
2683
2745
|
}
|
|
2684
2746
|
function foldLine(line, width) {
|
|
2685
|
-
if (line === "" || line[0] === " ")
|
|
2747
|
+
if (line === "" || line[0] === " ")
|
|
2748
|
+
return line;
|
|
2686
2749
|
const breakRe = / [^ ]/g;
|
|
2687
2750
|
let match;
|
|
2688
2751
|
let start = 0;
|
|
@@ -2694,14 +2757,17 @@ function requireDumper() {
|
|
|
2694
2757
|
next = match.index;
|
|
2695
2758
|
if (next - start > width) {
|
|
2696
2759
|
end = curr > start ? curr : next;
|
|
2697
|
-
result +=
|
|
2760
|
+
result += `
|
|
2761
|
+
` + line.slice(start, end);
|
|
2698
2762
|
start = end + 1;
|
|
2699
2763
|
}
|
|
2700
2764
|
curr = next;
|
|
2701
2765
|
}
|
|
2702
|
-
result +=
|
|
2766
|
+
result += `
|
|
2767
|
+
`;
|
|
2703
2768
|
if (line.length - start > width && curr > start) {
|
|
2704
|
-
result += line.slice(start, curr) +
|
|
2769
|
+
result += line.slice(start, curr) + `
|
|
2770
|
+
` + line.slice(curr + 1);
|
|
2705
2771
|
} else {
|
|
2706
2772
|
result += line.slice(start);
|
|
2707
2773
|
}
|
|
@@ -2710,12 +2776,13 @@ function requireDumper() {
|
|
|
2710
2776
|
function escapeString(string) {
|
|
2711
2777
|
let result = "";
|
|
2712
2778
|
let char = 0;
|
|
2713
|
-
for (let i = 0;
|
|
2779
|
+
for (let i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
2714
2780
|
char = codePointAt(string, i);
|
|
2715
2781
|
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
2716
2782
|
if (!escapeSeq && isPrintable(char)) {
|
|
2717
2783
|
result += string[i];
|
|
2718
|
-
if (char >= 65536)
|
|
2784
|
+
if (char >= 65536)
|
|
2785
|
+
result += string[i + 1];
|
|
2719
2786
|
} else {
|
|
2720
2787
|
result += escapeSeq || encodeHex(char);
|
|
2721
2788
|
}
|
|
@@ -2725,13 +2792,14 @@ function requireDumper() {
|
|
|
2725
2792
|
function writeFlowSequence(state, level, object) {
|
|
2726
2793
|
let _result = "";
|
|
2727
2794
|
const _tag = state.tag;
|
|
2728
|
-
for (let index = 0, length = object.length;
|
|
2795
|
+
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
2729
2796
|
let value = object[index];
|
|
2730
2797
|
if (state.replacer) {
|
|
2731
2798
|
value = state.replacer.call(object, String(index), value);
|
|
2732
2799
|
}
|
|
2733
2800
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
2734
|
-
if (_result !== "")
|
|
2801
|
+
if (_result !== "")
|
|
2802
|
+
_result += "," + (!state.condenseFlow ? " " : "");
|
|
2735
2803
|
_result += state.dump;
|
|
2736
2804
|
}
|
|
2737
2805
|
}
|
|
@@ -2741,7 +2809,7 @@ function requireDumper() {
|
|
|
2741
2809
|
function writeBlockSequence(state, level, object, compact) {
|
|
2742
2810
|
let _result = "";
|
|
2743
2811
|
const _tag = state.tag;
|
|
2744
|
-
for (let index = 0, length = object.length;
|
|
2812
|
+
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
2745
2813
|
let value = object[index];
|
|
2746
2814
|
if (state.replacer) {
|
|
2747
2815
|
value = state.replacer.call(object, String(index), value);
|
|
@@ -2765,10 +2833,12 @@ function requireDumper() {
|
|
|
2765
2833
|
let _result = "";
|
|
2766
2834
|
const _tag = state.tag;
|
|
2767
2835
|
const objectKeyList = Object.keys(object);
|
|
2768
|
-
for (let index = 0, length = objectKeyList.length;
|
|
2836
|
+
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
2769
2837
|
let pairBuffer = "";
|
|
2770
|
-
if (_result !== "")
|
|
2771
|
-
|
|
2838
|
+
if (_result !== "")
|
|
2839
|
+
pairBuffer += ", ";
|
|
2840
|
+
if (state.condenseFlow)
|
|
2841
|
+
pairBuffer += '"';
|
|
2772
2842
|
const objectKey = objectKeyList[index];
|
|
2773
2843
|
let objectValue = object[objectKey];
|
|
2774
2844
|
if (state.replacer) {
|
|
@@ -2777,7 +2847,8 @@ function requireDumper() {
|
|
|
2777
2847
|
if (!writeNode(state, level, objectKey, false, false)) {
|
|
2778
2848
|
continue;
|
|
2779
2849
|
}
|
|
2780
|
-
if (state.dump.length > 1024)
|
|
2850
|
+
if (state.dump.length > 1024)
|
|
2851
|
+
pairBuffer += "? ";
|
|
2781
2852
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
2782
2853
|
if (!writeNode(state, level, objectValue, false, false)) {
|
|
2783
2854
|
continue;
|
|
@@ -2799,7 +2870,7 @@ function requireDumper() {
|
|
|
2799
2870
|
} else if (state.sortKeys) {
|
|
2800
2871
|
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
2801
2872
|
}
|
|
2802
|
-
for (let index = 0, length = objectKeyList.length;
|
|
2873
|
+
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
2803
2874
|
let pairBuffer = "";
|
|
2804
2875
|
if (!compact || _result !== "") {
|
|
2805
2876
|
pairBuffer += generateNextLine(state, level);
|
|
@@ -2840,7 +2911,7 @@ function requireDumper() {
|
|
|
2840
2911
|
}
|
|
2841
2912
|
function detectType(state, object, explicit) {
|
|
2842
2913
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
2843
|
-
for (let index = 0, length = typeList.length;
|
|
2914
|
+
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
2844
2915
|
const type2 = typeList[index];
|
|
2845
2916
|
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
2846
2917
|
if (explicit) {
|
|
@@ -2931,13 +3002,12 @@ function requireDumper() {
|
|
|
2931
3002
|
} else if (type2 === "[object Undefined]") {
|
|
2932
3003
|
return false;
|
|
2933
3004
|
} else {
|
|
2934
|
-
if (state.skipInvalid)
|
|
3005
|
+
if (state.skipInvalid)
|
|
3006
|
+
return false;
|
|
2935
3007
|
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
2936
3008
|
}
|
|
2937
3009
|
if (state.tag !== null && state.tag !== "?") {
|
|
2938
|
-
let tagStr = encodeURI(
|
|
2939
|
-
state.tag[0] === "!" ? state.tag.slice(1) : state.tag
|
|
2940
|
-
).replace(/!/g, "%21");
|
|
3010
|
+
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
2941
3011
|
if (state.tag[0] === "!") {
|
|
2942
3012
|
tagStr = "!" + tagStr;
|
|
2943
3013
|
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
@@ -2955,7 +3025,7 @@ function requireDumper() {
|
|
|
2955
3025
|
const duplicatesIndexes = [];
|
|
2956
3026
|
inspectNode(object, objects, duplicatesIndexes);
|
|
2957
3027
|
const length = duplicatesIndexes.length;
|
|
2958
|
-
for (let index = 0;
|
|
3028
|
+
for (let index = 0;index < length; index += 1) {
|
|
2959
3029
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
2960
3030
|
}
|
|
2961
3031
|
state.usedDuplicates = new Array(length);
|
|
@@ -2970,12 +3040,12 @@ function requireDumper() {
|
|
|
2970
3040
|
} else {
|
|
2971
3041
|
objects.push(object);
|
|
2972
3042
|
if (Array.isArray(object)) {
|
|
2973
|
-
for (let i = 0, length = object.length;
|
|
3043
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
2974
3044
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
2975
3045
|
}
|
|
2976
3046
|
} else {
|
|
2977
3047
|
const objectKeyList = Object.keys(object);
|
|
2978
|
-
for (let i = 0, length = objectKeyList.length;
|
|
3048
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
2979
3049
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
2980
3050
|
}
|
|
2981
3051
|
}
|
|
@@ -2985,12 +3055,15 @@ function requireDumper() {
|
|
|
2985
3055
|
function dump2(input, options) {
|
|
2986
3056
|
options = options || {};
|
|
2987
3057
|
const state = new State(options);
|
|
2988
|
-
if (!state.noRefs)
|
|
3058
|
+
if (!state.noRefs)
|
|
3059
|
+
getDuplicateReferences(input, state);
|
|
2989
3060
|
let value = input;
|
|
2990
3061
|
if (state.replacer) {
|
|
2991
3062
|
value = state.replacer.call({ "": value }, "", value);
|
|
2992
3063
|
}
|
|
2993
|
-
if (writeNode(state, 0, value, true, true))
|
|
3064
|
+
if (writeNode(state, 0, value, true, true))
|
|
3065
|
+
return state.dump + `
|
|
3066
|
+
`;
|
|
2994
3067
|
return "";
|
|
2995
3068
|
}
|
|
2996
3069
|
dumper.dump = dump2;
|
|
@@ -2998,7 +3071,8 @@ function requireDumper() {
|
|
|
2998
3071
|
}
|
|
2999
3072
|
var hasRequiredJsYaml;
|
|
3000
3073
|
function requireJsYaml() {
|
|
3001
|
-
if (hasRequiredJsYaml)
|
|
3074
|
+
if (hasRequiredJsYaml)
|
|
3075
|
+
return jsYaml;
|
|
3002
3076
|
hasRequiredJsYaml = 1;
|
|
3003
3077
|
const loader2 = requireLoader();
|
|
3004
3078
|
const dumper2 = requireDumper();
|
|
@@ -3056,7 +3130,262 @@ var {
|
|
|
3056
3130
|
safeDump
|
|
3057
3131
|
} = yaml;
|
|
3058
3132
|
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3133
|
+
// packages/ai/skills/skillDocProtocol.ts
|
|
3134
|
+
var SKILL_DOC_ENUMS = {
|
|
3135
|
+
triggerMode: ["explicit", "required", "recommended"],
|
|
3136
|
+
budgetTier: ["low", "medium", "high"],
|
|
3137
|
+
modality: ["text", "image", "video", "audio", "3d"],
|
|
3138
|
+
docKind: ["knowledge", "instruction", "skill"]
|
|
3139
|
+
};
|
|
3140
|
+
var SKILL_CONFIG_BLOCK = "skill-config";
|
|
3141
|
+
var EVAL_CONFIG_BLOCK = "eval-config";
|
|
3142
|
+
var WORKFLOW_CONFIG_BLOCK = "workflow-config";
|
|
3143
|
+
var normalizeStringArray = (value) => {
|
|
3144
|
+
if (!Array.isArray(value))
|
|
3145
|
+
return;
|
|
3146
|
+
const items = [...new Set(asTrimmedNonEmptyStringArray(value))];
|
|
3147
|
+
return items.length > 0 ? items : undefined;
|
|
3148
|
+
};
|
|
3149
|
+
var normalizeSkillEnumValue = (key, value) => typeof value === "string" && SKILL_DOC_ENUMS[key].includes(value) ? value : undefined;
|
|
3150
|
+
var normalizeSkillModalities = (value) => {
|
|
3151
|
+
const raw = normalizeStringArray(value);
|
|
3152
|
+
if (!raw)
|
|
3153
|
+
return;
|
|
3154
|
+
const filtered = raw.flatMap((item) => {
|
|
3155
|
+
const modality = normalizeSkillEnumValue("modality", item);
|
|
3156
|
+
return modality ? [modality] : [];
|
|
3157
|
+
});
|
|
3158
|
+
return filtered.length > 0 ? Array.from(new Set(filtered)) : undefined;
|
|
3159
|
+
};
|
|
3160
|
+
var normalizeSkillConfig = (value, fallbackTools) => {
|
|
3161
|
+
if (!value || typeof value !== "object")
|
|
3162
|
+
return;
|
|
3163
|
+
const record = value;
|
|
3164
|
+
const name = asOptionalTrimmedString(record.name) ?? "";
|
|
3165
|
+
const description = asOptionalTrimmedString(record.description) ?? "";
|
|
3166
|
+
if (!name || !description)
|
|
3167
|
+
return;
|
|
3168
|
+
const triggerMode = normalizeSkillEnumValue("triggerMode", record.triggerMode);
|
|
3169
|
+
const modalities = normalizeSkillModalities(record.modalities);
|
|
3170
|
+
const toolNames = normalizeStringArray(record.toolNames) ?? normalizeStringArray(fallbackTools) ?? undefined;
|
|
3171
|
+
return {
|
|
3172
|
+
version: "0.1",
|
|
3173
|
+
kind: "skill",
|
|
3174
|
+
id: asOptionalTrimmedString(record.id),
|
|
3175
|
+
name,
|
|
3176
|
+
description,
|
|
3177
|
+
triggerMode,
|
|
3178
|
+
toolNames,
|
|
3179
|
+
modalities,
|
|
3180
|
+
requiredSkills: normalizeStringArray(record.requiredSkills),
|
|
3181
|
+
recommendedSkills: normalizeStringArray(record.recommendedSkills),
|
|
3182
|
+
promptPatch: asOptionalTrimmedString(record.promptPatch)
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
var normalizeEvalConfig = (value) => {
|
|
3186
|
+
if (!value || typeof value !== "object")
|
|
3187
|
+
return;
|
|
3188
|
+
const record = value;
|
|
3189
|
+
if (!Array.isArray(record.cases))
|
|
3190
|
+
return;
|
|
3191
|
+
const cases = [];
|
|
3192
|
+
for (const item of record.cases) {
|
|
3193
|
+
if (!item || typeof item !== "object")
|
|
3194
|
+
continue;
|
|
3195
|
+
const testCase = item;
|
|
3196
|
+
const input = asOptionalTrimmedString(testCase.input) ?? "";
|
|
3197
|
+
if (!input)
|
|
3198
|
+
continue;
|
|
3199
|
+
cases.push({
|
|
3200
|
+
input,
|
|
3201
|
+
expectedTools: normalizeStringArray(testCase.expectedTools),
|
|
3202
|
+
expectedSignals: normalizeStringArray(testCase.expectedSignals),
|
|
3203
|
+
forbiddenSignals: normalizeStringArray(testCase.forbiddenSignals)
|
|
3204
|
+
});
|
|
3205
|
+
}
|
|
3206
|
+
return cases.length > 0 ? {
|
|
3207
|
+
version: "0.1",
|
|
3208
|
+
cases
|
|
3209
|
+
} : undefined;
|
|
3210
|
+
};
|
|
3211
|
+
var normalizeWorkflowConfig = (value) => {
|
|
3212
|
+
if (!value || typeof value !== "object")
|
|
3213
|
+
return;
|
|
3214
|
+
const record = value;
|
|
3215
|
+
const name = asOptionalTrimmedString(record.name) ?? "";
|
|
3216
|
+
const description = asOptionalTrimmedString(record.description) ?? "";
|
|
3217
|
+
if (!name || !description)
|
|
3218
|
+
return;
|
|
3219
|
+
const budgetTier = normalizeSkillEnumValue("budgetTier", record.budgetTier);
|
|
3220
|
+
return {
|
|
3221
|
+
version: "0.1",
|
|
3222
|
+
kind: "workflow",
|
|
3223
|
+
id: asOptionalTrimmedString(record.id),
|
|
3224
|
+
name,
|
|
3225
|
+
description,
|
|
3226
|
+
defaultAgent: asOptionalTrimmedString(record.defaultAgent),
|
|
3227
|
+
inputs: normalizeStringArray(record.inputs),
|
|
3228
|
+
recommendedTools: normalizeStringArray(record.recommendedTools),
|
|
3229
|
+
requiredTools: normalizeStringArray(record.requiredTools),
|
|
3230
|
+
requiredOutputs: normalizeStringArray(record.requiredOutputs),
|
|
3231
|
+
gates: normalizeStringArray(record.gates),
|
|
3232
|
+
budgetTier,
|
|
3233
|
+
contextStrategy: asOptionalTrimmedString(record.contextStrategy),
|
|
3234
|
+
failureProtocol: asOptionalTrimmedString(record.failureProtocol)
|
|
3235
|
+
};
|
|
3236
|
+
};
|
|
3237
|
+
var normalizePageSkillMetadata = (value, fallbackTools) => {
|
|
3238
|
+
if (!value || typeof value !== "object")
|
|
3239
|
+
return;
|
|
3240
|
+
const record = value;
|
|
3241
|
+
const kind = normalizeSkillEnumValue("docKind", record.kind);
|
|
3242
|
+
const meta = {
|
|
3243
|
+
kind,
|
|
3244
|
+
requiredSkills: normalizeStringArray(record.requiredSkills),
|
|
3245
|
+
recommendedSkills: normalizeStringArray(record.recommendedSkills),
|
|
3246
|
+
skillConfig: normalizeSkillConfig(record.skillConfig, fallbackTools),
|
|
3247
|
+
evalConfig: normalizeEvalConfig(record.evalConfig),
|
|
3248
|
+
workflowConfig: normalizeWorkflowConfig(record.workflowConfig)
|
|
3249
|
+
};
|
|
3250
|
+
if (meta.skillConfig && !meta.kind) {
|
|
3251
|
+
meta.kind = "skill";
|
|
3252
|
+
}
|
|
3253
|
+
if (meta.workflowConfig && !meta.kind) {
|
|
3254
|
+
meta.kind = "instruction";
|
|
3255
|
+
}
|
|
3256
|
+
return meta.kind || meta.requiredSkills || meta.recommendedSkills || meta.skillConfig || meta.evalConfig || meta.workflowConfig ? meta : undefined;
|
|
3257
|
+
};
|
|
3258
|
+
var extractCommentBlock = (markdown, blockName) => {
|
|
3259
|
+
if (!markdown)
|
|
3260
|
+
return;
|
|
3261
|
+
const matcher = new RegExp(`<!--\\s*${blockName}\\s*\\n([\\s\\S]*?)-->`, "i");
|
|
3262
|
+
const match = markdown.match(matcher);
|
|
3263
|
+
return asOptionalTrimmedString(match?.[1]);
|
|
3264
|
+
};
|
|
3265
|
+
var removeCommentBlock = (markdown, blockName) => markdown.replace(new RegExp(`\\n?<!--\\s*${blockName}\\s*\\n[\\s\\S]*?-->\\s*`, "gi"), `
|
|
3266
|
+
|
|
3267
|
+
`);
|
|
3268
|
+
var parseYamlObject = (raw) => {
|
|
3269
|
+
if (!raw)
|
|
3270
|
+
return;
|
|
3271
|
+
try {
|
|
3272
|
+
const parsed = load(raw);
|
|
3273
|
+
return parsed && typeof parsed === "object" ? parsed : undefined;
|
|
3274
|
+
} catch {
|
|
3275
|
+
return;
|
|
3276
|
+
}
|
|
3277
|
+
};
|
|
3278
|
+
var parseSkillDocProtocol = (markdown, existingMeta, fallbackTools) => {
|
|
3279
|
+
const source = typeof markdown === "string" ? markdown : "";
|
|
3280
|
+
const skillBlock = parseYamlObject(extractCommentBlock(source, SKILL_CONFIG_BLOCK));
|
|
3281
|
+
const evalBlock = parseYamlObject(extractCommentBlock(source, EVAL_CONFIG_BLOCK));
|
|
3282
|
+
const workflowBlock = parseYamlObject(extractCommentBlock(source, WORKFLOW_CONFIG_BLOCK));
|
|
3283
|
+
const cleanedContent = removeCommentBlock(removeCommentBlock(removeCommentBlock(source, SKILL_CONFIG_BLOCK), EVAL_CONFIG_BLOCK), WORKFLOW_CONFIG_BLOCK).replace(/\n{3,}/g, `
|
|
3284
|
+
|
|
3285
|
+
`).trim();
|
|
3286
|
+
const parsedMeta = normalizePageSkillMetadata({
|
|
3287
|
+
...existingMeta ?? {},
|
|
3288
|
+
...skillBlock ? {
|
|
3289
|
+
kind: existingMeta?.kind === "skill" || skillBlock.kind === "skill" ? "skill" : existingMeta?.kind,
|
|
3290
|
+
requiredSkills: skillBlock.requiredSkills ?? existingMeta?.requiredSkills,
|
|
3291
|
+
recommendedSkills: skillBlock.recommendedSkills ?? existingMeta?.recommendedSkills,
|
|
3292
|
+
skillConfig: skillBlock
|
|
3293
|
+
} : {},
|
|
3294
|
+
...evalBlock ? { evalConfig: evalBlock } : {},
|
|
3295
|
+
...workflowBlock ? { workflowConfig: workflowBlock } : {}
|
|
3296
|
+
}, fallbackTools);
|
|
3297
|
+
return {
|
|
3298
|
+
content: cleanedContent,
|
|
3299
|
+
meta: parsedMeta
|
|
3300
|
+
};
|
|
3062
3301
|
};
|
|
3302
|
+
var resolvePageSkillMetadata = (page) => {
|
|
3303
|
+
if (!page)
|
|
3304
|
+
return;
|
|
3305
|
+
const existingMeta = normalizePageSkillMetadata(page.meta, page.tools);
|
|
3306
|
+
return parseSkillDocProtocol(page.content ?? "", existingMeta, page.tools).meta;
|
|
3307
|
+
};
|
|
3308
|
+
var yamlBlock = (value) => dump(value, { lineWidth: 120, noRefs: true }).trim();
|
|
3309
|
+
var buildSkillConfigComment = (config) => {
|
|
3310
|
+
const payload = {
|
|
3311
|
+
version: config.version,
|
|
3312
|
+
kind: config.kind,
|
|
3313
|
+
...config.id ? { id: config.id } : {},
|
|
3314
|
+
name: config.name,
|
|
3315
|
+
description: config.description,
|
|
3316
|
+
...config.triggerMode ? { triggerMode: config.triggerMode } : {},
|
|
3317
|
+
...config.requiredSkills?.length ? { requiredSkills: config.requiredSkills } : {},
|
|
3318
|
+
...config.recommendedSkills?.length ? { recommendedSkills: config.recommendedSkills } : {},
|
|
3319
|
+
...config.toolNames?.length ? { toolNames: config.toolNames } : {},
|
|
3320
|
+
...config.modalities?.length ? { modalities: config.modalities } : {},
|
|
3321
|
+
...config.promptPatch ? { promptPatch: config.promptPatch } : {}
|
|
3322
|
+
};
|
|
3323
|
+
return `<!-- ${SKILL_CONFIG_BLOCK}
|
|
3324
|
+
${yamlBlock(payload)}
|
|
3325
|
+
-->`;
|
|
3326
|
+
};
|
|
3327
|
+
var buildEvalConfigComment = (config) => `<!-- ${EVAL_CONFIG_BLOCK}
|
|
3328
|
+
${yamlBlock({
|
|
3329
|
+
version: config.version,
|
|
3330
|
+
cases: config.cases
|
|
3331
|
+
})}
|
|
3332
|
+
-->`;
|
|
3333
|
+
var buildWorkflowConfigComment = (config) => `<!-- ${WORKFLOW_CONFIG_BLOCK}
|
|
3334
|
+
${yamlBlock({
|
|
3335
|
+
version: config.version,
|
|
3336
|
+
kind: config.kind,
|
|
3337
|
+
...config.id ? { id: config.id } : {},
|
|
3338
|
+
name: config.name,
|
|
3339
|
+
description: config.description,
|
|
3340
|
+
...config.defaultAgent ? { defaultAgent: config.defaultAgent } : {},
|
|
3341
|
+
...config.inputs?.length ? { inputs: config.inputs } : {},
|
|
3342
|
+
...config.recommendedTools?.length ? { recommendedTools: config.recommendedTools } : {},
|
|
3343
|
+
...config.requiredTools?.length ? { requiredTools: config.requiredTools } : {},
|
|
3344
|
+
...config.requiredOutputs?.length ? { requiredOutputs: config.requiredOutputs } : {},
|
|
3345
|
+
...config.gates?.length ? { gates: config.gates } : {},
|
|
3346
|
+
...config.budgetTier ? { budgetTier: config.budgetTier } : {},
|
|
3347
|
+
...config.contextStrategy ? { contextStrategy: config.contextStrategy } : {},
|
|
3348
|
+
...config.failureProtocol ? { failureProtocol: config.failureProtocol } : {}
|
|
3349
|
+
})}
|
|
3350
|
+
-->`;
|
|
3351
|
+
var buildSkillDocMarkdown = (options) => {
|
|
3352
|
+
const sections = [
|
|
3353
|
+
asOptionalTrimmedString(options.body) ?? "",
|
|
3354
|
+
buildSkillConfigComment(options.skillConfig),
|
|
3355
|
+
options.evalConfig ? buildEvalConfigComment(options.evalConfig) : "",
|
|
3356
|
+
options.workflowConfig ? buildWorkflowConfigComment(options.workflowConfig) : ""
|
|
3357
|
+
].filter(Boolean);
|
|
3358
|
+
return sections.join(`
|
|
3359
|
+
|
|
3360
|
+
`).trim();
|
|
3361
|
+
};
|
|
3362
|
+
var extractFrontmatter = (markdown) => {
|
|
3363
|
+
const match = markdown.match(/^\s*---\s*\n([\s\S]*?)\n\s*---\s*\n?/);
|
|
3364
|
+
if (!match)
|
|
3365
|
+
return { body: markdown.trim() };
|
|
3366
|
+
const frontmatter = parseYamlObject(match[1]);
|
|
3367
|
+
const body = markdown.slice(match[0].length).trim();
|
|
3368
|
+
return { frontmatter, body };
|
|
3369
|
+
};
|
|
3370
|
+
var normalizeAllowedTools = (value) => {
|
|
3371
|
+
if (Array.isArray(value)) {
|
|
3372
|
+
return normalizeStringArray(value) ?? [];
|
|
3373
|
+
}
|
|
3374
|
+
if (typeof value === "string") {
|
|
3375
|
+
return value.split(/\s+/).map((item) => item.trim()).filter(Boolean);
|
|
3376
|
+
}
|
|
3377
|
+
return [];
|
|
3378
|
+
};
|
|
3379
|
+
var parseExternalSkillMarkdown = (markdown) => {
|
|
3380
|
+
const { frontmatter, body } = extractFrontmatter(markdown);
|
|
3381
|
+
return {
|
|
3382
|
+
name: asOptionalTrimmedString(frontmatter?.name),
|
|
3383
|
+
description: asOptionalTrimmedString(frontmatter?.description),
|
|
3384
|
+
compatibility: asOptionalTrimmedString(frontmatter?.compatibility),
|
|
3385
|
+
allowedTools: normalizeAllowedTools(frontmatter?.["allowed-tools"]),
|
|
3386
|
+
metadata: frontmatter?.metadata && typeof frontmatter.metadata === "object" ? Object.fromEntries(Object.entries(frontmatter.metadata).filter(([, value]) => typeof value === "string").map(([key, value]) => [key, String(value)])) : undefined,
|
|
3387
|
+
body
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
|
|
3391
|
+
export { load, normalizeStringArray, normalizeSkillModalities, parseSkillDocProtocol, resolvePageSkillMetadata, buildSkillDocMarkdown, parseExternalSkillMarkdown };
|