nolo-cli 0.158.0-alpha.1 → 0.158.0
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/{_executeModel-6BMU3URY.js → _executeModel-AGVQAILR.js} +47 -47
- package/accountResolver-55EDKEIK.js +1 -1
- package/action-GPPJC5TI.js +1 -1
- package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
- package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
- package/{agentDeleteCommand-Q2XWGBC2.js → agentDeleteCommand-56DO7V2R.js} +66 -67
- package/{agentEmailCommands-XFBE2A3F.js → agentEmailCommands-BPUATKQ6.js} +69 -70
- package/{agentListCommands-OROMT4P3.js → agentListCommands-KS5VUGOW.js} +63 -40
- package/{agentMachineCommands-ULK5YKKJ.js → agentMachineCommands-HSJS7IQK.js} +32 -30
- package/{agentProviderCommands-MKG2OOEY.js → agentProviderCommands-CXBHNONN.js} +5 -5
- package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
- package/{agentRecordCommands-3VHBLS6P.js → agentRecordCommands-IDGVLDMB.js} +63 -64
- package/{agentRunCommand-LCIMEAQY.js → agentRunCommand-LGMDPPPA.js} +65 -66
- package/{agentRunControl-2C5GM3BW.js → agentRunControl-QWFFIAQY.js} +9 -7
- package/{agentRuntimeLocal-NPJS2QDP.js → agentRuntimeLocal-QL4SHNJJ.js} +21 -19
- package/{agentSlice-VRAPG6CH.js → agentSlice-WPXWY6BV.js} +6 -6
- package/{appDeleteCommands-AZ3KS4HK.js → appDeleteCommands-FLCTFYZB.js} +31 -29
- package/{appDeployCommands-BTV22ICJ.js → appDeployCommands-UU4Z7DT3.js} +31 -29
- package/{appDeployStatusCommands-JSW3HPIW.js → appDeployStatusCommands-GKLZTHTX.js} +31 -29
- package/{appGetCommands-5KTTFIMV.js → appGetCommands-DPQ2MVJC.js} +31 -29
- package/{appListCommands-3BJPAE2U.js → appListCommands-J6QMEBNL.js} +31 -29
- package/{authCommand-NIV3DKPF.js → authCommand-OVBMDPIF.js} +20 -20
- package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
- package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
- package/{chunk-O4ZERG3M.js → chunk-2HG7O7QF.js} +8 -8
- package/{chunk-EQGFFDNA.js → chunk-323QA7RW.js} +3 -3
- package/{chunk-2SOS7OSQ.js → chunk-3GCLICFW.js} +37 -4
- package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
- package/{chunk-QLQ573SU.js → chunk-3M52COK5.js} +120 -0
- package/{chunk-2BKUVRC5.js → chunk-4VDSF5NQ.js} +9 -9
- package/{chunk-NKPAHRMA.js → chunk-4XHZ4QXL.js} +15 -15
- package/{chunk-ZEY4NJRE.js → chunk-5IKRTRRR.js} +5 -5
- package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
- package/{chunk-IYBIRCQV.js → chunk-6BNW7WC4.js} +29 -11
- package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
- package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-JPJGMOIM.js → chunk-7JO3ZACS.js} +2 -2
- package/{chunk-L6EQV5OC.js → chunk-7NKZA46B.js} +3 -3
- package/{chunk-WXFZ4P6O.js → chunk-AO2T6MWY.js} +12 -12
- package/{chunk-2MTE2PEH.js → chunk-ASSNAASW.js} +5 -739
- package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
- package/{chunk-7RF4O6AT.js → chunk-BL4HFN6L.js} +1 -1
- package/{chunk-ICRRXBRN.js → chunk-BWIR5QBI.js} +6 -3
- package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
- package/{chunk-6TF64IF2.js → chunk-DI7ZFGDQ.js} +16 -2
- package/{chunk-C3OK72G3.js → chunk-DJ2BOPJY.js} +1 -1
- package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
- package/{chunk-LV4LV2B4.js → chunk-DOBOKBKS.js} +7 -5
- package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
- package/{chunk-HB4XPBC7.js → chunk-EWO77ZGF.js} +9 -11
- package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
- package/{chunk-IE5PXKVU.js → chunk-G3VYRPTV.js} +5 -5
- package/{chunk-AJ4V34SG.js → chunk-HCZOSYTL.js} +19 -19
- package/{chunk-C6FY7HWI.js → chunk-HEC32F3G.js} +46 -1
- package/{chunk-WTFRBJT5.js → chunk-HSY7F4PP.js} +32 -34
- package/{chunk-UFYBYB26.js → chunk-I7S63QUU.js} +1 -1
- package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
- package/{chunk-4RJJDA57.js → chunk-IW64YHXL.js} +154 -30
- package/chunk-JLR5NWP2.js +548 -0
- package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
- package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
- package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
- package/{chunk-KKKHAF3P.js → chunk-KMKVQNFH.js} +3 -3
- package/{chunk-ZBXIKCZ4.js → chunk-KQT46A27.js} +368 -91
- package/{chunk-5MM7NNO6.js → chunk-KSTEXKL6.js} +78 -39
- package/{chunk-MM3662RS.js → chunk-LPO6AMQU.js} +780 -64
- package/{chunk-YTXQ2U2X.js → chunk-M3IBEHBT.js} +144 -44
- package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
- package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
- package/{chunk-UCLSOLX4.js → chunk-MLEANT7D.js} +13 -13
- package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
- package/{chunk-4UOEOHY3.js → chunk-OE4FM66I.js} +5 -5
- package/chunk-OHRQXEON.js +2685 -0
- package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
- package/{chunk-6MXDOUMH.js → chunk-R4BMKAR5.js} +70 -8
- package/{chunk-S72LMV7T.js → chunk-RCZMREV2.js} +4793 -3390
- package/chunk-SAZSXMTR.js +188 -0
- package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
- package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
- package/{chunk-2AB2HA4M.js → chunk-TDX2L4W2.js} +8 -2
- package/{chunk-G476FQ7Q.js → chunk-TSTLLGAC.js} +4 -4
- package/{chunk-3TBHZPNG.js → chunk-TTVMMYVH.js} +295 -55
- package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
- package/{chunk-QPY264HO.js → chunk-W7FGZRLK.js} +1 -1
- package/{chunk-BYQOCH75.js → chunk-XYW6JSRD.js} +2 -2
- package/{chunk-KLA62VVE.js → chunk-Y45LLH6C.js} +42 -11
- package/{chunk-CDWHHLK5.js → chunk-Y7F4Q7YP.js} +4 -4
- package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
- package/{chunk-GAVUTXM5.js → chunk-YFEVODB4.js} +18 -194
- package/{chunk-G2WP7VPD.js → chunk-YKTAUOS7.js} +18 -6
- package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
- package/{commandRegistry-D6JTVYKG.js → commandRegistry-HHTMBO55.js} +85 -85
- package/{contentThunks-DYQO4CTI.js → contentThunks-ZSKJTGS7.js} +17 -18
- package/{cooldownCommands-JFKTYS2D.js → cooldownCommands-NS63RGBO.js} +2 -2
- package/{createAgentAutomationAction-LW26KIBP.js → createAgentAutomationAction-KYHXEVZF.js} +17 -18
- package/{createDialogAction-VLLBRD52.js → createDialogAction-JKB3V4YP.js} +21 -22
- package/{createPageAction-PDACOLI6.js → createPageAction-CRVW6Z65.js} +20 -22
- package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
- package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
- package/{dialogCommands-F3Y4KCPZ.js → dialogCommands-2NVLHDZP.js} +32 -30
- package/{dialogSlice-ERMZYMS6.js → dialogSlice-SOEMTPH4.js} +16 -17
- package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
- package/{docCreateCommands-YMWZLW64.js → docCreateCommands-BL4YBQOD.js} +32 -30
- package/{docDeleteCommands-6KJ3ESK4.js → docDeleteCommands-NTRYV5OH.js} +33 -31
- package/{docReadCommands-YQGFVLWI.js → docReadCommands-MJGISD7D.js} +32 -30
- package/{docStore-HXKI6W5D.js → docStore-YXIN3UVQ.js} +6 -6
- package/{docUpdateCommands-QLSGXUEX.js → docUpdateCommands-C2AIMWBR.js} +32 -30
- package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
- package/{handleSendMessageAction-2XCOZPXY.js → handleSendMessageAction-JXA7PBY2.js} +35 -32
- package/index.js +7 -7
- package/{localRuntimeAdapter-VOFUPXNF.js → localRuntimeAdapter-QAXXJCDM.js} +61 -60
- package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
- package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
- package/{machineCommands-IN5O7CIO.js → machineCommands-TKOOPU7X.js} +66 -67
- package/{machineWsRunDispatch-TH3GMSR3.js → machineWsRunDispatch-AQ3KTB7U.js} +61 -62
- package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
- package/package.json +6 -2
- package/{providerPresetApply-GSJI4JBJ.js → providerPresetApply-PKUOHQJT.js} +5 -5
- package/{providerRegistry-TSSTPGWF.js → providerRegistry-HNQLIFN2.js} +5 -5
- package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
- package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
- package/{readlineWorkspace-EIEQUTEZ.js → readlineWorkspace-7G2FBC53.js} +96 -134
- package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
- package/{runAgentClientLoop-3KHKKBZI.js → runAgentClientLoop-NKCVEOOU.js} +45 -45
- package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
- package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
- package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
- package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
- package/{spaceCommands-T5Z4U7HP.js → spaceCommands-44R7DU34.js} +29 -27
- package/{streamAgentChatTurn-DMXXSEVX.js → streamAgentChatTurn-V7GZPMO4.js} +143 -84
- package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
- package/{tools-RMT7NAMC.js → tools-SNXGTJMT.js} +35 -37
- package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-FQOEF4IE.js} +7 -7
- package/{updateCommands-LXZLG44Y.js → updateCommands-FJHGWD3Q.js} +5 -3
- package/{updateDialogTitleAction-Z4WNUH6Y.js → updateDialogTitleAction-QKWRDIK3.js} +17 -18
- package/chunk-3MZAGMYY.js +0 -239
- package/chunk-IA7TRNNR.js +0 -11
- package/chunk-UKZX3NHN.js +0 -48
- package/chunk-VDEVDGEM.js +0 -7018
- package/clipboardy-GCO3GT3I.js +0 -11793
- package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
- package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
- package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
- package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
- package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
- package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
- package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
escapeStringRegexp
|
|
3
|
-
} from "./chunk-IA7TRNNR.js";
|
|
4
1
|
import {
|
|
5
2
|
asTrimmedString
|
|
6
3
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -7141,6 +7138,14 @@ function ccount(value, character) {
|
|
|
7141
7138
|
function ok() {
|
|
7142
7139
|
}
|
|
7143
7140
|
|
|
7141
|
+
// node_modules/escape-string-regexp/index.js
|
|
7142
|
+
function escapeStringRegexp(string3) {
|
|
7143
|
+
if (typeof string3 !== "string") {
|
|
7144
|
+
throw new TypeError("Expected a string");
|
|
7145
|
+
}
|
|
7146
|
+
return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
7147
|
+
}
|
|
7148
|
+
|
|
7144
7149
|
// node_modules/unist-util-is/lib/index.js
|
|
7145
7150
|
var convert = (
|
|
7146
7151
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
@@ -7250,16 +7255,50 @@ var empty = [];
|
|
|
7250
7255
|
var CONTINUE = true;
|
|
7251
7256
|
var EXIT = false;
|
|
7252
7257
|
var SKIP = "skip";
|
|
7253
|
-
function visitParents(tree,
|
|
7258
|
+
function visitParents(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, reverse) {
|
|
7259
|
+
if (!tree || typeof tree !== "object") {
|
|
7260
|
+
throw new Error("Unexpected value `" + tree + "` for `tree`, expected node");
|
|
7261
|
+
}
|
|
7262
|
+
let preorder = true;
|
|
7254
7263
|
let check;
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7264
|
+
let visitors;
|
|
7265
|
+
let enter;
|
|
7266
|
+
let exit3;
|
|
7267
|
+
if (typeof enterOrVisitorsOrReverse === "function" || enterOrVisitorsOrReverse && typeof enterOrVisitorsOrReverse === "object") {
|
|
7268
|
+
check = /** @type {Test} */
|
|
7269
|
+
testOrEnterOrVisitors;
|
|
7270
|
+
visitors = enterOrVisitorsOrReverse;
|
|
7271
|
+
if (reverse) preorder = false;
|
|
7258
7272
|
} else {
|
|
7259
|
-
|
|
7273
|
+
visitors = /** @type {Visitors | Visitor} */
|
|
7274
|
+
testOrEnterOrVisitors;
|
|
7275
|
+
if (enterOrVisitorsOrReverse) preorder = false;
|
|
7276
|
+
}
|
|
7277
|
+
if (typeof visitors === "function") {
|
|
7278
|
+
enter = visitors;
|
|
7279
|
+
} else if (visitors && typeof visitors === "object") {
|
|
7280
|
+
if (visitors.enter === null || visitors.enter === void 0) {
|
|
7281
|
+
} else if (typeof visitors.enter === "function") {
|
|
7282
|
+
enter = visitors.enter;
|
|
7283
|
+
} else {
|
|
7284
|
+
throw new Error(
|
|
7285
|
+
"Unexpected value `" + visitors.enter + "` for `visitors.enter`, expected optional visitor"
|
|
7286
|
+
);
|
|
7287
|
+
}
|
|
7288
|
+
if (typeof visitors.exit === "function") {
|
|
7289
|
+
exit3 = visitors.exit;
|
|
7290
|
+
} else {
|
|
7291
|
+
throw new Error(
|
|
7292
|
+
"Unexpected value `" + visitors.exit + "` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)"
|
|
7293
|
+
);
|
|
7294
|
+
}
|
|
7295
|
+
} else {
|
|
7296
|
+
throw new Error(
|
|
7297
|
+
"Unexpected value `" + visitors + "` for `enter` or `visitors`, expected visitor or object with visitors"
|
|
7298
|
+
);
|
|
7260
7299
|
}
|
|
7261
7300
|
const is2 = convert(check);
|
|
7262
|
-
const step =
|
|
7301
|
+
const step = preorder ? 1 : -1;
|
|
7263
7302
|
factory(tree, void 0, [])();
|
|
7264
7303
|
function factory(node2, index2, parents) {
|
|
7265
7304
|
const value = (
|
|
@@ -7280,12 +7319,10 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
7280
7319
|
}
|
|
7281
7320
|
return visit;
|
|
7282
7321
|
function visit() {
|
|
7322
|
+
const matches = !check || is2(node2, index2, parents[parents.length - 1] || void 0);
|
|
7283
7323
|
let result = empty;
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
let grandparents;
|
|
7287
|
-
if (!test || is2(node2, index2, parents[parents.length - 1] || void 0)) {
|
|
7288
|
-
result = toResult(visitor(node2, parents));
|
|
7324
|
+
if (enter && matches) {
|
|
7325
|
+
result = toResult(enter(node2, parents, index2));
|
|
7289
7326
|
if (result[0] === EXIT) {
|
|
7290
7327
|
return result;
|
|
7291
7328
|
}
|
|
@@ -7296,11 +7333,11 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
7296
7333
|
node2
|
|
7297
7334
|
);
|
|
7298
7335
|
if (nodeAsParent.children && result[0] !== SKIP) {
|
|
7299
|
-
offset = (
|
|
7300
|
-
grandparents = parents
|
|
7336
|
+
let offset = (preorder ? -1 : nodeAsParent.children.length) + step;
|
|
7337
|
+
const grandparents = [...parents, nodeAsParent];
|
|
7301
7338
|
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
7302
7339
|
const child = nodeAsParent.children[offset];
|
|
7303
|
-
subresult = factory(child, offset, grandparents)();
|
|
7340
|
+
const subresult = factory(child, offset, grandparents)();
|
|
7304
7341
|
if (subresult[0] === EXIT) {
|
|
7305
7342
|
return subresult;
|
|
7306
7343
|
}
|
|
@@ -7308,6 +7345,17 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
7308
7345
|
}
|
|
7309
7346
|
}
|
|
7310
7347
|
}
|
|
7348
|
+
if (exit3 && matches) {
|
|
7349
|
+
const exitResult = toResult(exit3(node2, parents, index2));
|
|
7350
|
+
if (exitResult[0] === SKIP) {
|
|
7351
|
+
throw new Error(
|
|
7352
|
+
"Unexpected value `" + exitResult[0] + "` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing"
|
|
7353
|
+
);
|
|
7354
|
+
}
|
|
7355
|
+
if (exitResult[0] === EXIT || typeof exitResult[1] === "number") {
|
|
7356
|
+
return exitResult;
|
|
7357
|
+
}
|
|
7358
|
+
}
|
|
7311
7359
|
return result;
|
|
7312
7360
|
}
|
|
7313
7361
|
}
|
|
@@ -7329,34 +7377,19 @@ function findAndReplace(tree, list2, options) {
|
|
|
7329
7377
|
const pairs = toPairs(list2);
|
|
7330
7378
|
let pairIndex = -1;
|
|
7331
7379
|
while (++pairIndex < pairs.length) {
|
|
7332
|
-
visitParents(tree,
|
|
7380
|
+
visitParents(tree, visitor);
|
|
7333
7381
|
}
|
|
7334
|
-
function visitor(node2, parents) {
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
while (++index2 < parents.length) {
|
|
7338
|
-
const parent = parents[index2];
|
|
7339
|
-
const siblings = grandparent ? grandparent.children : void 0;
|
|
7340
|
-
if (ignored(
|
|
7341
|
-
parent,
|
|
7342
|
-
siblings ? siblings.indexOf(parent) : void 0,
|
|
7343
|
-
grandparent
|
|
7344
|
-
)) {
|
|
7345
|
-
return;
|
|
7346
|
-
}
|
|
7347
|
-
grandparent = parent;
|
|
7348
|
-
}
|
|
7349
|
-
if (grandparent) {
|
|
7350
|
-
return handler(node2, parents);
|
|
7382
|
+
function visitor(node2, parents, index2) {
|
|
7383
|
+
if (node2.type === "text" && typeof index2 === "number") {
|
|
7384
|
+
return handler(node2, parents, index2);
|
|
7351
7385
|
}
|
|
7386
|
+
if (ignored(node2, index2, parents[parents.length - 1])) return SKIP;
|
|
7352
7387
|
}
|
|
7353
|
-
function handler(node2, parents) {
|
|
7388
|
+
function handler(node2, parents, index2) {
|
|
7354
7389
|
const parent = parents[parents.length - 1];
|
|
7355
7390
|
const find = pairs[pairIndex][0];
|
|
7356
7391
|
const replace2 = pairs[pairIndex][1];
|
|
7357
7392
|
let start = 0;
|
|
7358
|
-
const siblings = parent.children;
|
|
7359
|
-
const index2 = siblings.indexOf(node2);
|
|
7360
7393
|
let change = false;
|
|
7361
7394
|
let nodes = [];
|
|
7362
7395
|
find.lastIndex = 0;
|
|
@@ -7415,7 +7448,13 @@ function toPairs(tupleOrList) {
|
|
|
7415
7448
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
7416
7449
|
}
|
|
7417
7450
|
const result = [];
|
|
7418
|
-
const list2 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ?
|
|
7451
|
+
const list2 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? (
|
|
7452
|
+
/** @type {FindAndReplaceList} */
|
|
7453
|
+
tupleOrList
|
|
7454
|
+
) : [
|
|
7455
|
+
/** @type {FindAndReplaceTuple} */
|
|
7456
|
+
tupleOrList
|
|
7457
|
+
];
|
|
7419
7458
|
let index2 = -1;
|
|
7420
7459
|
while (++index2 < list2.length) {
|
|
7421
7460
|
const tuple = list2[index2];
|