nolo-cli 0.231.0-alpha.1 → 0.240.0-alpha.3
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-7V3NSK4W.js → _executeModel-5NA4USGG.js} +56 -51
- package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
- package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
- package/{agentDeleteCommand-MD76OMLN.js → agentDeleteCommand-2RFGKFAB.js} +77 -69
- package/{agentEmailCommands-T4TW4IBX.js → agentEmailCommands-GQCQKKOR.js} +84 -72
- package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
- package/{agentMachineCommands-LSDGA5WR.js → agentMachineCommands-BISF6PVV.js} +26 -22
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
- package/{agentRecordCommands-7TEX2B7Y.js → agentRecordCommands-AOXPGYAJ.js} +79 -67
- package/{agentRunCommand-23SMDVDW.js → agentRunCommand-AFAIP7U7.js} +85 -72
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
- package/{agentSlice-AATYVDP6.js → agentSlice-XJNKE3PG.js} +10 -9
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
- package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
- package/{authCommand-3SUYUNQV.js → authCommand-4CVBDADE.js} +15 -13
- package/{authCommands-BLE7ETZH.js → authCommands-EHU2BHOX.js} +7 -5
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
- package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
- package/{chunk-EXNV7CCV.js → chunk-3FBAVU2Y.js} +11 -9
- package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
- package/{chunk-U4FF7LRY.js → chunk-4IQVE43Z.js} +30 -26
- package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
- package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
- package/chunk-6D25V6CB.js +133 -0
- package/{chunk-LHN7NIQZ.js → chunk-6WOLPIPY.js} +93 -90
- package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-NVEYEKN3.js → chunk-7AJRJGSQ.js} +254 -359
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-GXZ5LB7H.js → chunk-A3LUWRQK.js} +4 -4
- package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-57TLKTVZ.js → chunk-A74QP4FI.js} +566 -104
- package/{chunk-3ING4D5X.js → chunk-AEQMKYZN.js} +4 -4
- package/{chunk-FFSPUVL5.js → chunk-AH5R7BYW.js} +6 -166
- package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
- package/{chunk-KUOMUZH6.js → chunk-B7DE5XJW.js} +137 -290
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
- package/{chunk-YCFP57LH.js → chunk-BGGV6B5O.js} +408 -230
- package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
- package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
- package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-WU443D7A.js → chunk-CVJRVBJL.js} +2 -2
- package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
- package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-FTMFO6LI.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-ZTR65O4L.js → chunk-E5KJOZWY.js} +3 -3
- package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
- package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-PR2LAQAC.js → chunk-FFYE5ATM.js} +4 -4
- package/{chunk-6NNDUDAZ.js → chunk-FZKA3XFA.js} +11 -11
- package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
- package/{chunk-6OQMSPB7.js → chunk-GDUC4VS2.js} +7 -7
- package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
- package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
- package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-TPG2DPN2.js → chunk-IJTXNLQE.js} +9 -9
- package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
- package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
- package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
- package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
- package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-WFVASLQT.js → chunk-P3IZUMIC.js} +1 -1
- package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
- package/{chunk-IONGMVPY.js → chunk-PRMEU7BT.js} +229 -7
- package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
- package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
- package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
- package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
- package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
- package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
- package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
- package/{chunk-MHHLABT3.js → chunk-VREG6ANQ.js} +102 -99
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
- package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
- package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
- package/{chunk-KUDCKVYQ.js → chunk-Y5OWZQMJ.js} +28 -19
- package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
- package/{chunk-X7QAIY5B.js → chunk-Z2WZAE4P.js} +128 -150
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
- package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
- package/{commandRegistry-35EMLPIZ.js → commandRegistry-TME7INFU.js} +89 -85
- package/{contentThunks-BCNMGA5J.js → contentThunks-U6OC4R2N.js} +23 -22
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
- package/{createAgentAutomationAction-HEU4KOYF.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
- package/{createDialogAction-5DSL5ESZ.js → createDialogAction-IAGQJ3LH.js} +24 -23
- package/{createPageAction-BBZ25AFI.js → createPageAction-AZ3UIFKA.js} +24 -23
- package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
- package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
- package/{dialogSlice-QJ5PQOM3.js → dialogSlice-QAKYN4DE.js} +22 -21
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
- package/{docStore-XJ4UMU3C.js → docStore-GIVRT7TQ.js} +10 -9
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
- package/{handleSendMessageAction-YHAOXARI.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
- package/{hostCredentialCreate-62AWCBQC.js → hostCredentialCreate-6VDJFNDO.js} +81 -68
- package/index.js +8 -8
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localRuntimeAdapter-KNQNNHUM.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-X2FMPSV4.js → machineCommands-K6XIGOAD.js} +77 -65
- package/{machineWsRunDispatch-XHTPOYVJ.js → machineWsRunDispatch-4OO7Z6UM.js} +77 -65
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-NPQ3YOAV.js → projectArchive-G7AOQPRW.js} +24 -23
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
- package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
- package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-77PILYDH.js → readlineWorkspace-SOW5QUGZ.js} +2935 -2376
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
- package/{runAgentClientLoop-XNKAXUKU.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
- package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
- package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-TOGSGCPS.js → spaceCommands-G63QGYQO.js} +25 -21
- package/{streamAgentChatTurn-IARUEZPU.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
- package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-5UWS65PB.js → tools-7RSX22FT.js} +41 -37
- package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
- package/{tuiSummaryLlmCaller-R4H3ZZ52.js → tuiSummaryLlmCaller-BVNHMWLR.js} +5 -5
- package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
- package/{updateDialogTitleAction-G6C6XVNV.js → updateDialogTitleAction-SEWV252V.js} +23 -22
- package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
- package/workContext-MM3P5GP5.js +13 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/chunk-ZXF6D3I6.js +0 -359
- package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
compareAgentSelection,
|
|
9
9
|
resolveModelTier
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G22P367E.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROVIDER_RETRY_MS,
|
|
13
13
|
isAgentUnavailableNow,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isAntigravityOAuthAgent,
|
|
38
38
|
isSubscriptionEndpoint,
|
|
39
39
|
isSubscriptionOAuthCredential
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6CKUO32A.js";
|
|
41
41
|
import {
|
|
42
42
|
asTrimmedLowercaseString
|
|
43
43
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -362,17 +362,17 @@ function parseAgentRecordId(privateKey, explicitId) {
|
|
|
362
362
|
}
|
|
363
363
|
return null;
|
|
364
364
|
}
|
|
365
|
-
function resolveFavoriteStatus(
|
|
365
|
+
function resolveFavoriteStatus(record2, options) {
|
|
366
366
|
if (options?.isFavorite !== void 0) {
|
|
367
367
|
return {
|
|
368
368
|
isFavorite: !!options.isFavorite,
|
|
369
369
|
favoritedAt: safeTimestamp(options.favoritedAt)
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
if (
|
|
372
|
+
if (record2?.isFavorite === true) {
|
|
373
373
|
return {
|
|
374
374
|
isFavorite: true,
|
|
375
|
-
favoritedAt: safeTimestamp(
|
|
375
|
+
favoritedAt: safeTimestamp(record2?.favoritedAt)
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
const favoritesMap = options?.favoritesMap;
|
|
@@ -380,17 +380,17 @@ function resolveFavoriteStatus(record, options) {
|
|
|
380
380
|
return { isFavorite: false, favoritedAt: null };
|
|
381
381
|
}
|
|
382
382
|
const candidateKeys = [];
|
|
383
|
-
if (typeof
|
|
384
|
-
if (typeof
|
|
385
|
-
if (typeof
|
|
386
|
-
if (typeof
|
|
387
|
-
candidateKeys.push(
|
|
383
|
+
if (typeof record2?.dbKey === "string" && record2.dbKey) candidateKeys.push(record2.dbKey);
|
|
384
|
+
if (typeof record2?.privateKey === "string" && record2.privateKey) candidateKeys.push(record2.privateKey);
|
|
385
|
+
if (typeof record2?.publicKey === "string" && record2.publicKey) candidateKeys.push(record2.publicKey);
|
|
386
|
+
if (typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey) {
|
|
387
|
+
candidateKeys.push(record2.verifiedAgentKey);
|
|
388
388
|
}
|
|
389
|
-
if (typeof
|
|
390
|
-
candidateKeys.push(
|
|
391
|
-
candidateKeys.push(publicAgentKey(
|
|
389
|
+
if (typeof record2?.id === "string" && record2.id) {
|
|
390
|
+
candidateKeys.push(record2.id);
|
|
391
|
+
candidateKeys.push(publicAgentKey(record2.id));
|
|
392
392
|
if (options?.userId) {
|
|
393
|
-
candidateKeys.push(ownedAgentKey(options.userId,
|
|
393
|
+
candidateKeys.push(ownedAgentKey(options.userId, record2.id));
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
let matched = false;
|
|
@@ -417,55 +417,55 @@ function resolveFavoriteStatus(record, options) {
|
|
|
417
417
|
}
|
|
418
418
|
return { isFavorite: false, favoritedAt: null };
|
|
419
419
|
}
|
|
420
|
-
function isOwnedAgentRecord(
|
|
420
|
+
function isOwnedAgentRecord(record2, userId) {
|
|
421
421
|
if (!userId) return false;
|
|
422
|
-
if (typeof
|
|
422
|
+
if (typeof record2?.userId === "string" && record2.userId === userId || typeof record2?.ownerId === "string" && record2.ownerId === userId) {
|
|
423
423
|
return true;
|
|
424
424
|
}
|
|
425
|
-
return [
|
|
425
|
+
return [record2?.dbKey, record2?.privateKey].some(
|
|
426
426
|
(key) => isOwnedAgentKey(key, userId)
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
|
-
function toSafeAgentSummary(
|
|
429
|
+
function toSafeAgentSummary(record2, options) {
|
|
430
430
|
const rawId = parseAgentRecordId(
|
|
431
|
-
typeof
|
|
432
|
-
typeof
|
|
431
|
+
typeof record2?.privateKey === "string" ? record2.privateKey : record2?.dbKey,
|
|
432
|
+
typeof record2?.id === "string" ? record2.id : void 0
|
|
433
433
|
);
|
|
434
|
-
const id = rawId ?? (typeof
|
|
435
|
-
const publicRecordDenied =
|
|
436
|
-
const publicRecordConfirmed =
|
|
434
|
+
const id = rawId ?? (typeof record2?.id === "string" ? record2.id : null);
|
|
435
|
+
const publicRecordDenied = record2?.publicRecordExists === false || options?.publicRecordExists === false;
|
|
436
|
+
const publicRecordConfirmed = record2?.publicRecordExists === true || options?.publicRecordExists === true;
|
|
437
437
|
let publicKey;
|
|
438
|
-
if (typeof
|
|
439
|
-
publicKey =
|
|
438
|
+
if (typeof record2?.publicKey === "string" && record2.publicKey && !publicRecordDenied) {
|
|
439
|
+
publicKey = record2.publicKey;
|
|
440
440
|
} else if (publicRecordConfirmed && id) {
|
|
441
441
|
publicKey = publicAgentKey(id);
|
|
442
442
|
}
|
|
443
|
-
const name = typeof
|
|
444
|
-
const handle = typeof
|
|
445
|
-
const introduction = typeof
|
|
446
|
-
const model = typeof
|
|
447
|
-
const provider = typeof
|
|
448
|
-
const apiSource = typeof
|
|
449
|
-
const cliProvider = typeof
|
|
450
|
-
const tools = Array.isArray(
|
|
451
|
-
const inputPrice = typeof
|
|
452
|
-
const outputPrice = typeof
|
|
443
|
+
const name = typeof record2?.name === "string" && record2.name ? record2.name : "(unnamed)";
|
|
444
|
+
const handle = typeof record2?.handle === "string" && record2.handle ? record2.handle : null;
|
|
445
|
+
const introduction = typeof record2?.introduction === "string" && record2.introduction ? record2.introduction : typeof record2?.description === "string" && record2.description ? record2.description : null;
|
|
446
|
+
const model = typeof record2?.model === "string" && record2.model ? record2.model : null;
|
|
447
|
+
const provider = typeof record2?.provider === "string" && record2.provider ? record2.provider : typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
|
|
448
|
+
const apiSource = typeof record2?.apiSource === "string" && record2.apiSource ? record2.apiSource : null;
|
|
449
|
+
const cliProvider = typeof record2?.cliProvider === "string" && record2.cliProvider ? record2.cliProvider : null;
|
|
450
|
+
const tools = Array.isArray(record2?.tools) ? record2.tools.filter((t) => typeof t === "string") : [];
|
|
451
|
+
const inputPrice = typeof record2?.inputPrice === "number" && Number.isFinite(record2.inputPrice) ? record2.inputPrice : null;
|
|
452
|
+
const outputPrice = typeof record2?.outputPrice === "number" && Number.isFinite(record2.outputPrice) ? record2.outputPrice : null;
|
|
453
453
|
const modelAbility = model ? getModelAbility(model) ?? null : null;
|
|
454
|
-
const favStatus = resolveFavoriteStatus(
|
|
455
|
-
const isPublic =
|
|
456
|
-
const updatedAt = safeTimestamp(
|
|
457
|
-
const nextAvailableAt = typeof
|
|
458
|
-
const quotaExhaustion =
|
|
459
|
-
const rawQuota =
|
|
454
|
+
const favStatus = resolveFavoriteStatus(record2, options);
|
|
455
|
+
const isPublic = record2?.isPublic === true || record2?.isPublicFlag === true || record2?.publicRecordExists === true;
|
|
456
|
+
const updatedAt = safeTimestamp(record2?.updatedAt ?? record2?.createdAt ?? record2?.created);
|
|
457
|
+
const nextAvailableAt = typeof record2?.nextAvailableAt === "number" && Number.isFinite(record2.nextAvailableAt) ? record2.nextAvailableAt : void 0;
|
|
458
|
+
const quotaExhaustion = record2?.quotaExhaustion && typeof record2.quotaExhaustion.observedAt === "number" && Number.isFinite(record2.quotaExhaustion.observedAt) ? { observedAt: record2.quotaExhaustion.observedAt } : void 0;
|
|
459
|
+
const rawQuota = record2?.quota;
|
|
460
460
|
const quota = rawQuota && typeof rawQuota === "object" && Array.isArray(rawQuota.windows) && typeof rawQuota.observedAt === "number" && Number.isFinite(rawQuota.observedAt) ? rawQuota : void 0;
|
|
461
461
|
const currentUserId = options?.userId;
|
|
462
|
-
const ownedKey = currentUserId ? [
|
|
462
|
+
const ownedKey = currentUserId ? [record2?.dbKey, record2?.privateKey].find(
|
|
463
463
|
(key) => isOwnedAgentKey(key, currentUserId)
|
|
464
464
|
) : void 0;
|
|
465
|
-
const isOwned = isOwnedAgentRecord(
|
|
466
|
-
const isOAuth = isOAuthApiKeyRef(
|
|
465
|
+
const isOwned = isOwnedAgentRecord(record2, currentUserId);
|
|
466
|
+
const isOAuth = isOAuthApiKeyRef(record2?.apiKeyRef);
|
|
467
467
|
const billingSource = resolveBillingSource({
|
|
468
|
-
...
|
|
468
|
+
...record2,
|
|
469
469
|
isOAuth,
|
|
470
470
|
isOwned,
|
|
471
471
|
apiSource,
|
|
@@ -477,11 +477,11 @@ function toSafeAgentSummary(record, options) {
|
|
|
477
477
|
{
|
|
478
478
|
provider,
|
|
479
479
|
apiSource,
|
|
480
|
-
customProviderUrl: typeof
|
|
480
|
+
customProviderUrl: typeof record2?.customProviderUrl === "string" ? record2.customProviderUrl : null
|
|
481
481
|
},
|
|
482
482
|
options?.now ?? Date.now()
|
|
483
483
|
);
|
|
484
|
-
const verifiedSharedKey = typeof
|
|
484
|
+
const verifiedSharedKey = typeof record2?.verifiedAgentKey === "string" && record2.verifiedAgentKey ? record2.verifiedAgentKey : void 0;
|
|
485
485
|
let agentKey;
|
|
486
486
|
if (currentUserId) {
|
|
487
487
|
if (isOwned) {
|
|
@@ -492,10 +492,10 @@ function toSafeAgentSummary(record, options) {
|
|
|
492
492
|
agentKey = verifiedSharedKey;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
const rawCredRef = (typeof
|
|
496
|
-
const credInfo = deriveCredentialGroup(
|
|
497
|
-
const credentialGroup =
|
|
498
|
-
const credentialKind =
|
|
495
|
+
const rawCredRef = (typeof record2?.apiKeyRef === "string" && record2.apiKeyRef ? record2.apiKeyRef : void 0) ?? (typeof record2?.credentialRef === "string" && record2.credentialRef ? record2.credentialRef : void 0);
|
|
496
|
+
const credInfo = deriveCredentialGroup(record2?.credentialGroup ?? rawCredRef);
|
|
497
|
+
const credentialGroup = record2?.credentialGroup ?? credInfo?.credentialGroup;
|
|
498
|
+
const credentialKind = record2?.credentialKind ?? credInfo?.credentialKind;
|
|
499
499
|
const availability = resolveAgentAvailability(
|
|
500
500
|
{ nextAvailableAt, quota, quotaExhaustion },
|
|
501
501
|
options?.now ?? Date.now()
|
|
@@ -525,7 +525,7 @@ function toSafeAgentSummary(record, options) {
|
|
|
525
525
|
// 例如 apiSource==="cli" 的本地 CLI Agent 在 resolveBillingSource 里会落到
|
|
526
526
|
// platform_credits,但 isPlatformPaidAgentCall 显式短路为「非平台垫付」。
|
|
527
527
|
requiresPaidApproval: isPlatformPaidAgentCall({
|
|
528
|
-
agentConfig:
|
|
528
|
+
agentConfig: record2 ?? void 0,
|
|
529
529
|
callerUserId: currentUserId ?? void 0
|
|
530
530
|
}),
|
|
531
531
|
...economics ? { economics } : {},
|
|
@@ -910,9 +910,9 @@ function buildAgentDiscoveryResult(options) {
|
|
|
910
910
|
credentialGroups
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
|
-
function toDiscoverySafeAgentSummary(
|
|
914
|
-
const mergedOptions =
|
|
915
|
-
return toSafeAgentSummary(
|
|
913
|
+
function toDiscoverySafeAgentSummary(record2, options) {
|
|
914
|
+
const mergedOptions = record2?.publicRecordExists === true ? { ...options, publicRecordExists: true } : options;
|
|
915
|
+
return toSafeAgentSummary(record2, mergedOptions);
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
// packages/ai/agent/speedSampleCache.ts
|
|
@@ -1107,17 +1107,17 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
1107
1107
|
const { start, end } = createTokenKey.rangeOfUser(userId);
|
|
1108
1108
|
const failedPrefix = createKey("token", userId, "failed-call", "");
|
|
1109
1109
|
const dispatchRunCache = /* @__PURE__ */ new Map();
|
|
1110
|
-
const isDispatchSampleRecord = async (
|
|
1111
|
-
if (
|
|
1112
|
-
const runId = typeof
|
|
1110
|
+
const isDispatchSampleRecord = async (record2, resolver, cache) => {
|
|
1111
|
+
if (record2.entry_path !== DISPATCH_ENTRY_PATH && record2.entry_path !== "cli-local") return false;
|
|
1112
|
+
const runId = typeof record2.dialogId === "string" ? record2.dialogId.trim() : "";
|
|
1113
1113
|
if (!runId) return false;
|
|
1114
|
-
const cacheKey = `${
|
|
1114
|
+
const cacheKey = `${record2.entry_path}:${runId}`;
|
|
1115
1115
|
const cached = cache.get(cacheKey);
|
|
1116
1116
|
if (cached !== void 0) return cached;
|
|
1117
1117
|
let dispatch = false;
|
|
1118
1118
|
if (resolver) {
|
|
1119
1119
|
try {
|
|
1120
|
-
dispatch = await resolver(runId,
|
|
1120
|
+
dispatch = await resolver(runId, record2.entry_path) === true;
|
|
1121
1121
|
} catch {
|
|
1122
1122
|
dispatch = false;
|
|
1123
1123
|
}
|
|
@@ -1150,15 +1150,15 @@ async function collectRecentSpeedSamples(db, userId, options = {}) {
|
|
|
1150
1150
|
newestKey = key;
|
|
1151
1151
|
if (key.startsWith(failedPrefix)) continue;
|
|
1152
1152
|
if (!raw || typeof raw !== "object") continue;
|
|
1153
|
-
const
|
|
1153
|
+
const record2 = raw;
|
|
1154
1154
|
const resolver = options.isDispatchRun ?? db.isDispatchRun;
|
|
1155
1155
|
if (!await isDispatchSampleRecord(
|
|
1156
|
-
|
|
1156
|
+
record2,
|
|
1157
1157
|
resolver ? (runId, entryPath) => resolver.call(db, runId, entryPath) : void 0,
|
|
1158
1158
|
dispatchRunCache
|
|
1159
1159
|
))
|
|
1160
1160
|
continue;
|
|
1161
|
-
collectSample(collected,
|
|
1161
|
+
collectSample(collected, record2);
|
|
1162
1162
|
}
|
|
1163
1163
|
if (accepted === 0 || accepted < pageSize) break;
|
|
1164
1164
|
lastKey = newestKey;
|
|
@@ -1327,7 +1327,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1327
1327
|
}
|
|
1328
1328
|
const agent = candidates[0];
|
|
1329
1329
|
const speedContext = buildCandidateSpeedContext(typeof agent.model === "string" ? [agent.model] : [], samples, { snapshotAgeMs });
|
|
1330
|
-
const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup)
|
|
1330
|
+
const payload = { agent, credentialGroups: groups.filter((group) => group.credentialGroup === agent.credentialGroup) };
|
|
1331
1331
|
let keyCollision = false;
|
|
1332
1332
|
const cleanText = (value) => scrubSecrets(sanitizeToolOutputText(value)).cleaned;
|
|
1333
1333
|
const sanitize = (value) => {
|
|
@@ -1360,7 +1360,7 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1360
1360
|
let end = Math.min(serialized.length, fragmentOffset + 3e3);
|
|
1361
1361
|
if (end < serialized.length && /[\uD800-\uDBFF]/.test(serialized[end - 1]) && /[\uDC00-\uDFFF]/.test(serialized[end])) end--;
|
|
1362
1362
|
const fragment = serialized.slice(fragmentOffset, end);
|
|
1363
|
-
const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1 });
|
|
1363
|
+
const result = JSON.stringify({ success: true, agentKey: agentKey2, offset, digest, fragment, fragmentOffset, nextFragmentOffset: end, hasMoreFragments: end < serialized.length, nextOffset: offset + 1, ...speedContext ? { speedContext: cleanText(speedContext) } : {} });
|
|
1364
1364
|
return fits(result) ? result : JSON.stringify({ success: false, error: "LIST_AGENTS_FRAGMENT_METADATA_TOO_LARGE", offset });
|
|
1365
1365
|
}
|
|
1366
1366
|
const makePage = (count) => {
|
|
@@ -1407,6 +1407,19 @@ async function serializeCompactAgentPage(parsed, samples, snapshotAgeMs, options
|
|
|
1407
1407
|
return fits(encoded) ? encoded : JSON.stringify({ success: false, error: "LIST_AGENTS_RECOVERY_ID_TOO_LARGE", offset });
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
|
+
// packages/ai/agent/dispatchSpeedProvenance.ts
|
|
1411
|
+
var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
1412
|
+
function isServerDispatchSpeedSource(value, dialogId, userId) {
|
|
1413
|
+
const dialog = record(value);
|
|
1414
|
+
const proof = record(dialog.dispatchSpeedProvenance);
|
|
1415
|
+
return proof.version === 1 && proof.source === "server-startAgentRun" && proof.userId === userId && record(dialog.runtimeBinding).tenantUserId === userId && dialog.id === dialogId;
|
|
1416
|
+
}
|
|
1417
|
+
function isLocalDispatchSpeedSource(value, dialogId, userId) {
|
|
1418
|
+
const run = record(value);
|
|
1419
|
+
const proof = record(run.dispatchSpeedProvenance);
|
|
1420
|
+
return proof.version === 1 && proof.source === "cli-startAgentRun" && proof.userId === userId && typeof run.runId === "string" && run.runId.length > 0 && run.dialogId === dialogId && run.ephemeral !== true;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1410
1423
|
export {
|
|
1411
1424
|
isGptProModel,
|
|
1412
1425
|
shouldBlockForGptPro,
|
|
@@ -1419,5 +1432,7 @@ export {
|
|
|
1419
1432
|
matchesAgentQuery,
|
|
1420
1433
|
buildAgentDiscoveryResult,
|
|
1421
1434
|
toDiscoverySafeAgentSummary,
|
|
1422
|
-
injectSpeedContextIntoListAgentsResult
|
|
1435
|
+
injectSpeedContextIntoListAgentsResult,
|
|
1436
|
+
isServerDispatchSpeedSource,
|
|
1437
|
+
isLocalDispatchSpeedSource
|
|
1423
1438
|
};
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
localTurnHasSubjectRefs,
|
|
7
7
|
resolveLocalUserId,
|
|
8
8
|
withResolvedRuntimeToolSurface
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2574ANSV.js";
|
|
10
10
|
import "./chunk-2X7WFDT6.js";
|
|
11
11
|
import "./chunk-BR3GT6MR.js";
|
|
12
12
|
import "./chunk-VS276URX.js";
|
|
13
13
|
import "./chunk-6OVNSQHN.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-WRKMXMU7.js";
|
|
15
15
|
import "./chunk-M2EJHDJP.js";
|
|
16
16
|
import "./chunk-I42VC5KR.js";
|
|
17
17
|
import "./chunk-BIDSIRTS.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isCliAuthorityBrokerProtocolError,
|
|
8
8
|
isCliAuthorityBrokerTimeoutError,
|
|
9
9
|
isCliAuthorityBrokerUnavailableError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XBAEM4RI.js";
|
|
11
11
|
import "./chunk-U67V476Y.js";
|
|
12
12
|
export {
|
|
13
13
|
CliAuthorityBrokerProtocolError,
|
|
@@ -3,48 +3,47 @@ import {
|
|
|
3
3
|
readDialogMessageRecords,
|
|
4
4
|
readDialogMessages,
|
|
5
5
|
resolveBuiltinLocalCliAgentConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-U3G7RRXJ.js";
|
|
7
|
+
import "./chunk-N2JROHD3.js";
|
|
8
|
+
import "./chunk-JBWXPACD.js";
|
|
9
|
+
import "./chunk-PROOOQZ3.js";
|
|
10
10
|
import "./chunk-BR3GT6MR.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-VIDPVFP3.js";
|
|
13
|
-
import "./chunk-4JH2UMJR.js";
|
|
14
|
-
import "./chunk-3QIYD3VM.js";
|
|
11
|
+
import "./chunk-TRHJ4NJB.js";
|
|
15
12
|
import "./chunk-ZNFJWEN4.js";
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-BEM6LPD2.js";
|
|
14
|
+
import "./chunk-H7ZYKHAZ.js";
|
|
17
15
|
import "./chunk-PWTNI4N7.js";
|
|
18
16
|
import "./chunk-AL3TYDIF.js";
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-HOM6LTEW.js";
|
|
20
18
|
import "./chunk-HNUWUO75.js";
|
|
21
19
|
import "./chunk-CHOZJMJS.js";
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KZPEGO6D.js";
|
|
23
21
|
import "./chunk-LKA64WH4.js";
|
|
24
22
|
import "./chunk-BYXBJQAS.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-BGGAY6OK.js";
|
|
24
|
+
import "./chunk-5QZSEQSK.js";
|
|
27
25
|
import "./chunk-56GBUMO5.js";
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-PGKA77TZ.js";
|
|
29
27
|
import "./chunk-EEOOBRA7.js";
|
|
30
28
|
import "./chunk-X4O7FJF5.js";
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-G22P367E.js";
|
|
32
30
|
import "./chunk-QJTZ76CP.js";
|
|
31
|
+
import "./chunk-7NIBQ4HY.js";
|
|
33
32
|
import "./chunk-VS276URX.js";
|
|
34
33
|
import "./chunk-TLE77UJ5.js";
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-TWTJV35S.js";
|
|
36
35
|
import "./chunk-WFGNWWJI.js";
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-MM73SP4K.js";
|
|
38
37
|
import "./chunk-2MBTWINN.js";
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-DNZ4JJ7C.js";
|
|
40
39
|
import "./chunk-5ZUL4CUO.js";
|
|
41
40
|
import "./chunk-L32W3PRP.js";
|
|
42
41
|
import "./chunk-H57T64RA.js";
|
|
43
42
|
import "./chunk-UKZX3NHN.js";
|
|
44
43
|
import "./chunk-5MMAK75Q.js";
|
|
45
44
|
import "./chunk-USGHJSGO.js";
|
|
46
|
-
import "./chunk-KX6YBIHG.js";
|
|
47
45
|
import "./chunk-OQHIVPG4.js";
|
|
46
|
+
import "./chunk-KX6YBIHG.js";
|
|
48
47
|
import "./chunk-DWLEOOGR.js";
|
|
49
48
|
import "./chunk-7DPNBQSV.js";
|
|
50
49
|
import "./chunk-OW765XBU.js";
|
|
@@ -53,22 +52,27 @@ import "./chunk-EWQ3HGNZ.js";
|
|
|
53
52
|
import "./chunk-PSCNXBYA.js";
|
|
54
53
|
import "./chunk-G7Y4GXTY.js";
|
|
55
54
|
import "./chunk-6UBGXX2W.js";
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-4ZCTKB27.js";
|
|
56
|
+
import "./chunk-EBKHA63G.js";
|
|
57
57
|
import "./chunk-6OVNSQHN.js";
|
|
58
58
|
import "./chunk-W6RFEDN4.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-ZVOL2MAJ.js";
|
|
60
|
+
import "./chunk-WRKMXMU7.js";
|
|
61
61
|
import "./chunk-M2EJHDJP.js";
|
|
62
62
|
import "./chunk-SYTHYBMI.js";
|
|
63
63
|
import "./chunk-OJKUU3LP.js";
|
|
64
64
|
import "./chunk-YZMNK53S.js";
|
|
65
65
|
import "./chunk-I42VC5KR.js";
|
|
66
|
+
import "./chunk-SRCCSTIM.js";
|
|
67
|
+
import "./chunk-VIDPVFP3.js";
|
|
68
|
+
import "./chunk-4JH2UMJR.js";
|
|
66
69
|
import "./chunk-U6VC4MU4.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-5HUO7SEX.js";
|
|
71
|
+
import "./chunk-YGDYYFRX.js";
|
|
72
|
+
import "./chunk-2SXN7LAY.js";
|
|
69
73
|
import "./chunk-KHCLMKZZ.js";
|
|
70
74
|
import "./chunk-62HXNQVV.js";
|
|
71
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-6CKUO32A.js";
|
|
72
76
|
import "./chunk-RTHFJZ6M.js";
|
|
73
77
|
import "./chunk-HBRDSQ3M.js";
|
|
74
78
|
import "./chunk-HNMXYYJR.js";
|