nolo-cli 0.211.0 → 0.213.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-VVQEOY3D.js → _executeModel-CUJLCFWR.js} +57 -54
- package/{action-U235TV4P.js → action-DF5UYSJF.js} +4 -4
- package/{addContentAction-7C76J7ST.js → addContentAction-WERAONNY.js} +9 -9
- package/{addDialogAgentAction-KTYANUEC.js → addDialogAgentAction-7VI7YRML.js} +16 -13
- package/{agentDeleteCommand-WHRU6VDJ.js → agentDeleteCommand-XJORXPGU.js} +80 -76
- package/{agentEmailCommands-ALLHXPW3.js → agentEmailCommands-XTYYFR6Z.js} +85 -80
- package/{agentListCommands-POKMEKMS.js → agentListCommands-OBLRBLHS.js} +237 -115
- package/{agentMachineCommands-WJLZLBPI.js → agentMachineCommands-5FMT3OT5.js} +33 -31
- package/{agentProviderCommands-MN3ABDME.js → agentProviderCommands-Q5O33MED.js} +33 -4
- package/{agentRecordCommands-OULZW3KM.js → agentRecordCommands-ZQ7SVYGG.js} +75 -70
- package/{agentRunCommand-ZNG4LGNQ.js → agentRunCommand-WS7IGO2W.js} +77 -73
- package/{agentRunControl-AF7BMR22.js → agentRunControl-TAMHJQSR.js} +8 -7
- package/{agentRuntimeLocal-YMUHFV5M.js → agentRuntimeLocal-SOO2OPJG.js} +30 -27
- package/{agentSlice-WNGUIMQZ.js → agentSlice-CHR6KOZN.js} +13 -13
- package/{appDeleteCommands-6MXPLAVF.js → appDeleteCommands-GUP6P5YE.js} +34 -32
- package/{appDeployCommands-ERRSVASW.js → appDeployCommands-MH2FX4O5.js} +34 -32
- package/{appDeployStatusCommands-ULICISLI.js → appDeployStatusCommands-SUHN3HPJ.js} +34 -32
- package/{appGetCommands-WYYYWROF.js → appGetCommands-YWDEX6Z4.js} +34 -32
- package/{appListCommands-DFCUCRCV.js → appListCommands-ZQVMLPAY.js} +34 -32
- package/{authCommand-ZJMWXFMA.js → authCommand-PWX2ZNUP.js} +15 -15
- package/{authCommands-WK6E42L2.js → authCommands-HV3EAU3V.js} +2 -2
- package/{builtinSkillRegistry-HH75G5J3.js → builtinSkillRegistry-2QETTQPM.js} +5 -4
- package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-DIVM2K3T.js} +1 -1
- package/{chunk-TRZP7JZ7.js → chunk-2QHFH3DR.js} +1 -0
- package/{chunk-XE4Q46FF.js → chunk-3CGG2PAL.js} +1 -1
- package/{chunk-YUXQAVRD.js → chunk-3UKL3HPD.js} +251 -14
- package/{chunk-BSISWVB4.js → chunk-4I7ERB7F.js} +1 -1
- package/{chunk-5ORJGHTL.js → chunk-4T2WNOY7.js} +6 -6
- package/{chunk-W5VC7F7V.js → chunk-5MQRBSMW.js} +84 -91
- package/{chunk-YLTLB5A7.js → chunk-6DWMYIUY.js} +7 -6
- package/chunk-6VLJ6YA7.js +11751 -0
- package/{chunk-KSTEXKL6.js → chunk-75XIDFBW.js} +4 -3
- package/{chunk-BTYQAODF.js → chunk-7BT37FK3.js} +196 -308
- package/{chunk-27E2CBBY.js → chunk-7OCO4TDT.js} +1 -1
- package/{chunk-V3M6IXQI.js → chunk-7QTZCMKL.js} +335 -131
- package/chunk-7RFNTILS.js +2213 -0
- package/{chunk-NHQKWPLP.js → chunk-7Y4YTDQF.js} +25 -23
- package/{chunk-CKAHAVMK.js → chunk-A7TFUNZO.js} +35 -25
- package/{chunk-PJNFNEJE.js → chunk-ALQ3657A.js} +28 -2
- package/{chunk-NV572QM3.js → chunk-BBJ22CLB.js} +15 -15
- package/chunk-CJEIOP3E.js +0 -0
- package/{chunk-4WCEC56C.js → chunk-COFEN36Z.js} +2 -2
- package/{chunk-25OB36GU.js → chunk-CRHOO2ZR.js} +4 -4
- package/{chunk-NTSRCTUX.js → chunk-CTPXME7U.js} +2 -2
- package/{chunk-TPCDYNJK.js → chunk-EHGEOAHI.js} +3 -3
- package/{chunk-Y2WUYX4I.js → chunk-EHSZD5OI.js} +1 -1
- package/{chunk-SU3QL7YG.js → chunk-FUGMREBO.js} +2 -2
- package/{chunk-UMEGDH6A.js → chunk-FW6YHHLI.js} +8 -8
- package/chunk-FY7F4Q6X.js +127 -0
- package/{chunk-25M2K6OA.js → chunk-G2BQWAVT.js} +3 -3
- package/chunk-G7MLNNEX.js +84 -0
- package/{chunk-DQLB4NQ3.js → chunk-GPVRUGGY.js} +2 -2
- package/{chunk-RQ22OZD7.js → chunk-H2TJUNCH.js} +1 -1
- package/{chunk-XPHZK3PJ.js → chunk-H4UOTUOX.js} +165 -51
- package/{chunk-CVCRAO6Q.js → chunk-H5HF7TJA.js} +9 -7
- package/{chunk-OP7PTBAJ.js → chunk-H7PPIYWP.js} +9 -9
- package/{chunk-QQM464AL.js → chunk-HPFCI4SK.js} +3 -3
- package/chunk-HRMJUN5J.js +26 -0
- package/{chunk-WI6OGHXJ.js → chunk-HSVBJRF4.js} +5 -5
- package/{chunk-RYWO5AKN.js → chunk-HUBHAQK2.js} +10 -10
- package/{chunk-LKDF3ATR.js → chunk-INUFILG6.js} +1 -1
- package/{chunk-NXCGNS4N.js → chunk-IXNGOHV5.js} +2 -2
- package/{chunk-ET2CWLIJ.js → chunk-J2NHJ7WX.js} +4 -4
- package/{chunk-ECX3NKRD.js → chunk-JY5NGFFH.js} +11 -0
- package/chunk-KC4XDTT3.js +227 -0
- package/{chunk-ADBWFYJD.js → chunk-KFLT5KAD.js} +9 -9
- package/{chunk-PLYWH7XM.js → chunk-KIM6CLW5.js} +7 -7
- package/{chunk-7IYBN7IA.js → chunk-LLRPJECG.js} +22 -13
- package/{chunk-3J3U3KXB.js → chunk-MDB67IWP.js} +5 -5
- package/chunk-MMA3LZ3W.js +105 -0
- package/{chunk-XDMGY5IU.js → chunk-MOIJOHA5.js} +227 -11
- package/{chunk-NLT32XBZ.js → chunk-NJLL224W.js} +2 -2
- package/{chunk-JBOUVTZX.js → chunk-NOKUNJON.js} +15 -4
- package/{chunk-C2XZM3K4.js → chunk-NSAPDIN2.js} +12 -27
- package/{chunk-PAFTGNWA.js → chunk-O2TZF4AI.js} +2 -2
- package/{chunk-UIOEHFF6.js → chunk-OQHIVPG4.js} +1 -0
- package/{chunk-TCTSYFDM.js → chunk-OQPKUBPB.js} +19 -6
- package/{chunk-X4F26D5K.js → chunk-P5L7CXOC.js} +58 -33
- package/{chunk-OXME3PEE.js → chunk-PCLE46CE.js} +1 -1
- package/{chunk-UCPAVEQB.js → chunk-PYRUW7XN.js} +1 -1
- package/{chunk-YXOBCDNW.js → chunk-QG4AOSON.js} +12 -49
- package/{chunk-RXCCWVA2.js → chunk-QHPRUL4O.js} +3 -3
- package/{chunk-I5PBXF7O.js → chunk-R5O4QAWG.js} +1 -1
- package/{chunk-HD3WR3TD.js → chunk-RLBNLZVC.js} +1 -1
- package/{chunk-SN5XE6GQ.js → chunk-RPQXPZZF.js} +4 -4
- package/{chunk-ZOO3WJIE.js → chunk-RSHTSUEG.js} +948 -108
- package/{chunk-6HVBI6TI.js → chunk-RZOV7OMV.js} +12 -229
- package/{chunk-D2MDMY2M.js → chunk-SVYO6AO7.js} +7 -1
- package/{chunk-IIHY4ZAI.js → chunk-TAKB25RM.js} +8 -4
- package/{chunk-ZN5AH4BY.js → chunk-TX5EYMGT.js} +6 -6
- package/{chunk-CKOO42G5.js → chunk-UHJGXRJ4.js} +4 -4
- package/{chunk-M4NTDZG3.js → chunk-UYD5HQ6T.js} +857 -295
- package/{chunk-WTKYP6QO.js → chunk-V5Y3R6BT.js} +114 -6
- package/{chunk-3RQVYR4B.js → chunk-VNYYOX3V.js} +59 -20
- package/{chunk-4LEGTOSR.js → chunk-VO4WSAVP.js} +3 -3
- package/{chunk-LNYHAKBP.js → chunk-W4S457LU.js} +1 -1
- package/{chunk-RIALQUSF.js → chunk-WMTBPBMP.js} +6 -6
- package/chunk-WPORQFYN.js +74 -0
- package/{chunk-Y6M7KJOA.js → chunk-WRYQ35LQ.js} +5 -5
- package/{chunk-YKFP6UGT.js → chunk-WYDI6TGM.js} +17 -17
- package/{chunk-SCYQJPGA.js → chunk-X7SDOJUM.js} +147 -20
- package/chunk-XFYFMTOM.js +92 -0
- package/{chunk-LT3EAHJY.js → chunk-XHQC4PXX.js} +65 -49
- package/{chunk-2WZXXAQD.js → chunk-YB3YZK56.js} +67 -1
- package/{chunk-JKW6LERJ.js → chunk-YJAFKXMU.js} +14 -14
- package/{chunk-GSQNH63I.js → chunk-YTF4WH7J.js} +3 -19
- package/{chunk-DA7CTWT4.js → chunk-YWSEPJ7C.js} +5 -5
- package/{chunk-3V2QMRNN.js → chunk-ZL5RAEEB.js} +3 -3
- package/{chunk-NEZGPBL7.js → chunk-ZNWI6OVT.js} +2 -2
- package/{chunk-MBS6CTZB.js → chunk-ZXOUUDCG.js} +266 -2014
- package/cliAgentConfigHelpers-WJBZQTLW.js +41 -0
- package/{commandRegistry-FI2IOQ3U.js → commandRegistry-W63CYRZJ.js} +91 -87
- package/{contentThunks-5LKNNDGY.js → contentThunks-U7PL5MQD.js} +27 -26
- package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-TIGUHXTD.js} +3 -3
- package/{createAgentAutomationAction-TI4QG4CY.js → createAgentAutomationAction-OLBQDD6R.js} +27 -26
- package/{createDialogAction-TJ3JKLO4.js → createDialogAction-SVH6B3SB.js} +29 -28
- package/{createPageAction-GKXT6WEH.js → createPageAction-F4DIWZ2Z.js} +29 -28
- package/{dbSlice-LPMZ2DGJ.js → dbSlice-BVH2YZPQ.js} +8 -8
- package/{deleteFile-EPUQHKPA.js → deleteFile-5YOEKV4U.js} +4 -4
- package/{dialogCommands-IWPXIZ5P.js → dialogCommands-KHIEPY3M.js} +38 -36
- package/{dialogSlice-ZWNNS7GZ.js → dialogSlice-ZCTDV2PZ.js} +25 -24
- package/{dialogUsageCommand-ZCPPHPJ5.js → dialogUsageCommand-7KCPYGHG.js} +1 -1
- package/{docCreateCommands-HFSPKJSI.js → docCreateCommands-DPMZI7G5.js} +32 -30
- package/{docDeleteCommands-CRL62POH.js → docDeleteCommands-IRQQLUBT.js} +34 -33
- package/{docReadCommands-QOTOX3XW.js → docReadCommands-LK37XH6L.js} +32 -30
- package/{docStore-WYLRB7ED.js → docStore-V2KECILA.js} +11 -11
- package/{docUpdateCommands-7BMH4MCA.js → docUpdateCommands-O6T3HJHH.js} +32 -30
- package/{fetchMessages-YY4SATNR.js → fetchMessages-NR4KNQLO.js} +3 -3
- package/{getPricing-OQXBJ6VZ.js → getPricing-2MNMXEVG.js} +3 -3
- package/{handleSendMessageAction-P27YP2DQ.js → handleSendMessageAction-2PE25WM3.js} +49 -47
- package/hostCredentialCreate-S233UMAP.js +357 -0
- package/index.js +7 -7
- package/{keys-P4ZDOVJW.js → keys-BEGDOTRL.js} +3 -1
- package/{localDialogRead-5VCMQQZF.js → localDialogRead-7NNDVVF7.js} +1 -1
- package/{localRuntimeAdapter-GP6ZSSO3.js → localRuntimeAdapter-KY6WXNBR.js} +82 -75
- package/{machineCommands-6Z6H4BFX.js → machineCommands-Q6HA3IXF.js} +74 -69
- package/{machineWsRunDispatch-F2ZIXMYM.js → machineWsRunDispatch-WWJQ6WR3.js} +74 -69
- package/{memberThunks-YSEFJF47.js → memberThunks-7EDJADWU.js} +9 -9
- package/package.json +1 -1
- package/{projectArchive-PIGEOX3D.js → projectArchive-DRTDIMEV.js} +29 -28
- package/{providerPresetApply-ZYMLQA46.js → providerPresetApply-YXGV6NXB.js} +4 -4
- package/{providerRegistry-E34XWDLJ.js → providerRegistry-S6UL6UNA.js} +4 -4
- package/{read-DIIQBOOO.js → read-4V2RMG7N.js} +4 -4
- package/{readDocTool-HXYGOEA7.js → readDocTool-BH6ATGQO.js} +1 -1
- package/{readlineWorkspace-UG25G7KC.js → readlineWorkspace-2W4WRCOU.js} +437 -217
- package/{removeDialogAgentAction-ALJDUJ2E.js → removeDialogAgentAction-LYAZGNKW.js} +18 -15
- package/{runAgentClientLoop-IO5F7TCZ.js → runAgentClientLoop-J2VQBS2Z.js} +55 -52
- package/{runtimeDoctorCommands-PGAA47G5.js → runtimeDoctorCommands-QAI3MBKQ.js} +6 -6
- package/{secretCommands-ZCZ4KVET.js → secretCommands-LXDWOLZ6.js} +4 -4
- package/{setDialogExtraReferencesAction-O3SVMD5A.js → setDialogExtraReferencesAction-OCRPGPYH.js} +11 -11
- package/{setPrimaryDialogAgentAction-HE7RVFFF.js → setPrimaryDialogAgentAction-HFJDQIBU.js} +19 -16
- package/{settingThunks-BWWJQG4L.js → settingThunks-RAMHMTGM.js} +13 -12
- package/{spaceCommands-UAELIFEI.js → spaceCommands-KVJZVKVO.js} +32 -31
- package/{streamAgentChatTurn-VUKZQYJR.js → streamAgentChatTurn-GHBMJJ6S.js} +63 -60
- package/{switchDialogAgentAction-3VZS7SOS.js → switchDialogAgentAction-EBRMW3RA.js} +16 -13
- package/{tools-VRXJAVYI.js → tools-EWKCPKMS.js} +49 -46
- package/{tuiSummaryLlmCaller-TGCHZLSW.js → tuiSummaryLlmCaller-ALQYUUWB.js} +48 -19
- package/{updateCommands-Q6CYAEYJ.js → updateCommands-ZQYU6SCI.js} +5 -3
- package/{updateDialogTitleAction-MULWCJCW.js → updateDialogTitleAction-5GGMBTDF.js} +40 -72
- package/usageCommand-F4IPVMIZ.js +32 -0
- package/usageRebuildCommand-HAW2AD5N.js +626 -0
- package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-257DV2T6.js} +2 -2
- package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-4C42SVBD.js} +1 -0
- package/chunk-4LCOCOR5.js +0 -50
- package/chunk-7AUQ3WCW.js +0 -51
- package/chunk-ZRAU6T47.js +0 -56
- package/{agentFavoriteCommands-GAFEXKKP.js → agentFavoriteCommands-EDK743YA.js} +1 -1
- package/{agentGrantCommands-V5FOQKFD.js → agentGrantCommands-RQWK2TEV.js} +1 -1
- package/{agentPullCommand-2JMJP5BS.js → agentPullCommand-6EM3URVK.js} +1 -1
- package/{chunk-A2ZMIRLN.js → chunk-INN4LTAJ.js} +5 -5
- package/{chunk-PV6JJAUB.js → chunk-TCZHTTUU.js} +8 -8
- package/{chunk-AKE53VMW.js → chunk-ZCWRMUWT.js} +0 -0
- package/{tableCommands-D7WR4QSM.js → tableCommands-MP6VFSVT.js} +3 -3
|
@@ -1279,7 +1279,7 @@ function createAction(type, prepareAction) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
actionCreator.toString = () => `${type}`;
|
|
1281
1281
|
actionCreator.type = type;
|
|
1282
|
-
actionCreator.match = (action) =>
|
|
1282
|
+
actionCreator.match = (action) => action != null && action.type === type && isAction(action);
|
|
1283
1283
|
return actionCreator;
|
|
1284
1284
|
}
|
|
1285
1285
|
function isFSA(action) {
|
|
@@ -1369,28 +1369,30 @@ function createReducer(initialState, mapOrBuilderCallback) {
|
|
|
1369
1369
|
const frozenInitialState = freezeDraftable(initialState);
|
|
1370
1370
|
getInitialState = () => frozenInitialState;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
const result = caseReducer(previousState, action);
|
|
1383
|
-
if (result === void 0) {
|
|
1384
|
-
if (previousState === null) return previousState;
|
|
1385
|
-
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : "A case reducer on a non-draftable value must not return undefined");
|
|
1386
|
-
}
|
|
1387
|
-
return result;
|
|
1388
|
-
} else return produce(previousState, (draft) => {
|
|
1389
|
-
return caseReducer(draft, action);
|
|
1390
|
-
});
|
|
1372
|
+
function applyCaseReducer(previousState, caseReducer, action) {
|
|
1373
|
+
if (isDraft(previousState)) {
|
|
1374
|
+
const result = caseReducer(previousState, action);
|
|
1375
|
+
if (result === void 0) return previousState;
|
|
1376
|
+
return result;
|
|
1377
|
+
} else if (!isDraftable(previousState)) {
|
|
1378
|
+
const result = caseReducer(previousState, action);
|
|
1379
|
+
if (result === void 0) {
|
|
1380
|
+
if (previousState === null) return previousState;
|
|
1381
|
+
throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : "A case reducer on a non-draftable value must not return undefined");
|
|
1391
1382
|
}
|
|
1392
|
-
return
|
|
1393
|
-
},
|
|
1383
|
+
return result;
|
|
1384
|
+
} else return produce(previousState, (draft) => {
|
|
1385
|
+
return caseReducer(draft, action);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
function reducer(state = getInitialState(), action) {
|
|
1389
|
+
const caseReducer = actionsMap[action.type];
|
|
1390
|
+
let matchedReducers;
|
|
1391
|
+
for (const { matcher, reducer: reducer2 } of finalActionMatchers) if (matcher(action) && reducer2) (matchedReducers ??= []).push(reducer2);
|
|
1392
|
+
if (!caseReducer && !matchedReducers) return finalDefaultCaseReducer ? applyCaseReducer(state, finalDefaultCaseReducer, action) : state;
|
|
1393
|
+
if (caseReducer) state = applyCaseReducer(state, caseReducer, action);
|
|
1394
|
+
if (matchedReducers) for (const matchedReducer of matchedReducers) state = applyCaseReducer(state, matchedReducer, action);
|
|
1395
|
+
return state;
|
|
1394
1396
|
}
|
|
1395
1397
|
reducer.getInitialState = getInitialState;
|
|
1396
1398
|
return reducer;
|
|
@@ -1579,7 +1581,7 @@ function isThenable(value) {
|
|
|
1579
1581
|
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
1580
1582
|
}
|
|
1581
1583
|
var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
1582
|
-
var asyncThunkCreator = { [asyncThunkSymbol]: createAsyncThunk };
|
|
1584
|
+
var asyncThunkCreator = /* @__PURE__ */ (() => ({ [asyncThunkSymbol]: createAsyncThunk }))();
|
|
1583
1585
|
function getType(slice, actionKey) {
|
|
1584
1586
|
return `${slice}/${actionKey}`;
|
|
1585
1587
|
}
|
|
@@ -1801,12 +1803,22 @@ function createSelectorsFactory() {
|
|
|
1801
1803
|
const selectId = (_, id) => id;
|
|
1802
1804
|
const selectById = (entities, id) => entities[id];
|
|
1803
1805
|
const selectTotal = createSelector2(selectIds, (ids) => ids.length);
|
|
1806
|
+
const selectIdsArg = (_, ids) => ids;
|
|
1807
|
+
const selectByIds = (entities, ids) => {
|
|
1808
|
+
const result = [];
|
|
1809
|
+
for (const id of ids) {
|
|
1810
|
+
const entity = entities[id];
|
|
1811
|
+
if (entity !== void 0) result.push(entity);
|
|
1812
|
+
}
|
|
1813
|
+
return result;
|
|
1814
|
+
};
|
|
1804
1815
|
if (!selectState) return {
|
|
1805
1816
|
selectIds,
|
|
1806
1817
|
selectEntities,
|
|
1807
1818
|
selectAll,
|
|
1808
1819
|
selectTotal,
|
|
1809
|
-
selectById: createSelector2(selectEntities, selectId, selectById)
|
|
1820
|
+
selectById: createSelector2(selectEntities, selectId, selectById),
|
|
1821
|
+
selectByIds: createSelector2(selectEntities, selectIdsArg, selectByIds)
|
|
1810
1822
|
};
|
|
1811
1823
|
const selectGlobalizedEntities = createSelector2(selectState, selectEntities);
|
|
1812
1824
|
return {
|
|
@@ -1814,7 +1826,8 @@ function createSelectorsFactory() {
|
|
|
1814
1826
|
selectEntities: selectGlobalizedEntities,
|
|
1815
1827
|
selectAll: createSelector2(selectState, selectAll),
|
|
1816
1828
|
selectTotal: createSelector2(selectState, selectTotal),
|
|
1817
|
-
selectById: createSelector2(selectGlobalizedEntities, selectId, selectById)
|
|
1829
|
+
selectById: createSelector2(selectGlobalizedEntities, selectId, selectById),
|
|
1830
|
+
selectByIds: createSelector2(selectGlobalizedEntities, selectIdsArg, selectByIds)
|
|
1818
1831
|
};
|
|
1819
1832
|
}
|
|
1820
1833
|
return { getSelectors };
|
|
@@ -1851,6 +1864,9 @@ function ensureEntitiesArray(entities) {
|
|
|
1851
1864
|
if (!Array.isArray(entities)) entities = Object.values(entities);
|
|
1852
1865
|
return entities;
|
|
1853
1866
|
}
|
|
1867
|
+
function isRemoveManyFilter(keysOrFilter) {
|
|
1868
|
+
return !Array.isArray(keysOrFilter);
|
|
1869
|
+
}
|
|
1854
1870
|
function getCurrent(value) {
|
|
1855
1871
|
return isDraft(value) ? current(value) : value;
|
|
1856
1872
|
}
|
|
@@ -1907,15 +1923,24 @@ function createUnsortedStateAdapter(selectId) {
|
|
|
1907
1923
|
function removeOneMutably(key, state) {
|
|
1908
1924
|
return removeManyMutably([key], state);
|
|
1909
1925
|
}
|
|
1910
|
-
function removeManyMutably(
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1926
|
+
function removeManyMutably(keysOrFilter, state) {
|
|
1927
|
+
const keys = isRemoveManyFilter(keysOrFilter) ? selectMatchingIds(keysOrFilter.where, state) : keysOrFilter;
|
|
1928
|
+
const removedIds = /* @__PURE__ */ new Set();
|
|
1929
|
+
for (const key of keys) if (key in state.entities) {
|
|
1930
|
+
delete state.entities[key];
|
|
1931
|
+
removedIds.add(String(key));
|
|
1932
|
+
}
|
|
1933
|
+
if (removedIds.size > 0) state.ids = getCurrent(state.ids).filter((id) => !removedIds.has(String(id)));
|
|
1934
|
+
}
|
|
1935
|
+
function selectMatchingIds(where, state) {
|
|
1936
|
+
const ids = getCurrent(state.ids);
|
|
1937
|
+
const entities = getCurrent(state.entities);
|
|
1938
|
+
const whereKeys = Object.keys(where);
|
|
1939
|
+
if (whereKeys.length === 0) return [];
|
|
1940
|
+
return ids.filter((id) => {
|
|
1941
|
+
const entity = entities[id];
|
|
1942
|
+
return whereKeys.every((key) => entity[key] === where[key]);
|
|
1917
1943
|
});
|
|
1918
|
-
if (didMutate) state.ids = state.ids.filter((id) => id in state.entities);
|
|
1919
1944
|
}
|
|
1920
1945
|
function removeAllMutably(state) {
|
|
1921
1946
|
Object.assign(state, {
|
|
@@ -3,15 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-UEILX4EV.js";
|
|
4
4
|
import {
|
|
5
5
|
compareAgentSelection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZOV7OMV.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
9
9
|
isAgentUnavailableNow,
|
|
10
10
|
resolveAgentAvailability
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3UKL3HPD.js";
|
|
12
12
|
import {
|
|
13
13
|
isOAuthApiKeyRef
|
|
14
14
|
} from "./chunk-UKZX3NHN.js";
|
|
15
|
+
import {
|
|
16
|
+
getModelAbility
|
|
17
|
+
} from "./chunk-T43B7LB2.js";
|
|
15
18
|
import {
|
|
16
19
|
isOwnedAgentKey,
|
|
17
20
|
ownedAgentKey,
|
|
@@ -21,10 +24,7 @@ import {
|
|
|
21
24
|
isAntigravityOAuthAgent,
|
|
22
25
|
isSubscriptionEndpoint,
|
|
23
26
|
isSubscriptionOAuthCredential
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
getModelAbility
|
|
27
|
-
} from "./chunk-T43B7LB2.js";
|
|
27
|
+
} from "./chunk-KIM6CLW5.js";
|
|
28
28
|
|
|
29
29
|
// packages/ai/agent/agentBilling.ts
|
|
30
30
|
function resolveBillingSource(candidate) {
|
|
@@ -508,9 +508,9 @@ var COMPACT_AGENT_SUMMARY_FIELDS = [
|
|
|
508
508
|
"apiSource",
|
|
509
509
|
"credentialKind",
|
|
510
510
|
"credentialed",
|
|
511
|
-
// 仅限流中的 agent 才会带(可用 agent
|
|
512
|
-
//
|
|
513
|
-
//
|
|
511
|
+
// 仅限流中的 agent 才会带(可用 agent 上不存在)。额度/冷却只作参考信息,
|
|
512
|
+
// 不参与派发门控:这类 agent 同样在 agents 主列表里(带标注),不做过滤,
|
|
513
|
+
// 所以这两个字段只在确实限流时才占字节。
|
|
514
514
|
"nextAvailableAt",
|
|
515
515
|
"availabilityReason",
|
|
516
516
|
// —— 体积大的说明性字段(排在每条记录最后,截断时先牺牲它们)——
|
|
@@ -573,37 +573,6 @@ function toUltraCompactAgentSummary(summary) {
|
|
|
573
573
|
}
|
|
574
574
|
return compact;
|
|
575
575
|
}
|
|
576
|
-
var UNAVAILABLE_AGENT_SUMMARY_FIELDS = [
|
|
577
|
-
"agentKey",
|
|
578
|
-
"name",
|
|
579
|
-
"model",
|
|
580
|
-
"provider",
|
|
581
|
-
"apiSource",
|
|
582
|
-
"isFavorite",
|
|
583
|
-
"isOAuth",
|
|
584
|
-
"isOwned",
|
|
585
|
-
"nextAvailableAt",
|
|
586
|
-
"availabilityStatus",
|
|
587
|
-
"availabilityReason",
|
|
588
|
-
"quota",
|
|
589
|
-
"favoritedAt",
|
|
590
|
-
"updatedAt"
|
|
591
|
-
];
|
|
592
|
-
function toUnavailableAgentSummary(summary) {
|
|
593
|
-
const item = {
|
|
594
|
-
name: summary.name,
|
|
595
|
-
isFavorite: summary.isFavorite,
|
|
596
|
-
isOAuth: summary.isOAuth,
|
|
597
|
-
isOwned: summary.isOwned
|
|
598
|
-
};
|
|
599
|
-
for (const field of UNAVAILABLE_AGENT_SUMMARY_FIELDS) {
|
|
600
|
-
const value = summary[field];
|
|
601
|
-
if (value !== null && value !== void 0) {
|
|
602
|
-
item[field] = value;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
return item;
|
|
606
|
-
}
|
|
607
576
|
|
|
608
577
|
// packages/ai/agent/agentDiscovery.ts
|
|
609
578
|
function isPreferredAgent(agent) {
|
|
@@ -639,7 +608,7 @@ function resolveDiscoveryScope(args) {
|
|
|
639
608
|
if (hasPublicOnly && publicOnly) {
|
|
640
609
|
return "public";
|
|
641
610
|
}
|
|
642
|
-
return "
|
|
611
|
+
return "all";
|
|
643
612
|
}
|
|
644
613
|
function agentIdentityKeys(agent) {
|
|
645
614
|
return [agent.agentKey, agent.publicKey, agent.id].filter(
|
|
@@ -765,13 +734,8 @@ function buildAgentDiscoveryResult(options) {
|
|
|
765
734
|
availabilityReason: decision.reason
|
|
766
735
|
};
|
|
767
736
|
});
|
|
768
|
-
const
|
|
769
|
-
const unavailableCount = unavailableList.length;
|
|
770
|
-
const unavailableAgents = sortSafeAgentSummaries(unavailableList).map(toUnavailableAgentSummary);
|
|
737
|
+
const unavailableCount = scopedAgents.filter((a) => isAgentUnavailableNow(a, now)).length;
|
|
771
738
|
const credentialGroups = summarizeCredentialGroups(scopedAgents, now);
|
|
772
|
-
if (options.showUnavailable !== true) {
|
|
773
|
-
scopedAgents = scopedAgents.filter((a) => !isAgentUnavailableNow(a, now));
|
|
774
|
-
}
|
|
775
739
|
const pagination = resolvePaginationArgs({
|
|
776
740
|
limit: options.limit,
|
|
777
741
|
offset: options.offset
|
|
@@ -809,8 +773,7 @@ function buildAgentDiscoveryResult(options) {
|
|
|
809
773
|
...isTruncated ? { truncated: true } : {},
|
|
810
774
|
unavailableCount,
|
|
811
775
|
agents: projectedAgents,
|
|
812
|
-
credentialGroups
|
|
813
|
-
unavailableAgents
|
|
776
|
+
credentialGroups
|
|
814
777
|
};
|
|
815
778
|
}
|
|
816
779
|
function toDiscoverySafeAgentSummary(record, options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TX5EYMGT.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZXOUUDCG.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-OWYYDMGJ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
extractReasoningFromResponseOutput,
|
|
13
13
|
extractTextFromResponseOutput,
|
|
14
14
|
extractToolCallsFromResponseOutput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H5HF7TJA.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
18
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-4V2RMG7N.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
writeOAuthCredential
|
|
3
|
-
} from "./chunk-G7Y4GXTY.js";
|
|
4
1
|
import {
|
|
5
2
|
ANTIGRAVITY_AUTH_URL,
|
|
6
3
|
ANTIGRAVITY_CALLBACK_PATH,
|
|
@@ -14,7 +11,7 @@ import {
|
|
|
14
11
|
getAntigravityUserAgent,
|
|
15
12
|
normalizeAntigravityTokenPayload,
|
|
16
13
|
refreshAntigravityToken
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KIM6CLW5.js";
|
|
18
15
|
import {
|
|
19
16
|
toErrorMessage
|
|
20
17
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -25,6 +22,9 @@ import {
|
|
|
25
22
|
buildEnvFromProfile,
|
|
26
23
|
loadProfileConfig
|
|
27
24
|
} from "./chunk-R5GO3YZP.js";
|
|
25
|
+
import {
|
|
26
|
+
writeOAuthCredential
|
|
27
|
+
} from "./chunk-G7Y4GXTY.js";
|
|
28
28
|
import {
|
|
29
29
|
asOptionalFiniteNumber
|
|
30
30
|
} from "./chunk-WWC7I6TA.js";
|