nolo-cli 0.224.0-alpha.2 → 0.224.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/{_executeModel-4WBUORCW.js → _executeModel-5NA4USGG.js} +77 -71
- package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
- package/{agentDeleteCommand-BB6KU5AO.js → agentDeleteCommand-2RFGKFAB.js} +127 -119
- package/{agentEmailCommands-KMHPL6OH.js → agentEmailCommands-GQCQKKOR.js} +126 -114
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-HSGLDPDQ.js} +110 -495
- package/{agentMachineCommands-OC5D4YZW.js → agentMachineCommands-BISF6PVV.js} +63 -57
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
- package/agentRecordCommands-AOXPGYAJ.js +189 -0
- package/{agentRunCommand-M22Y3D5U.js → agentRunCommand-AFAIP7U7.js} +129 -115
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
- package/{agentSlice-AJPMMBOP.js → agentSlice-XJNKE3PG.js} +18 -17
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
- package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
- package/{authCommand-VQP625QS.js → authCommand-4CVBDADE.js} +29 -28
- package/{authCommands-PAKU3CJZ.js → authCommands-EHU2BHOX.js} +12 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
- package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
- package/{chunk-XUJZYUIM.js → chunk-3FBAVU2Y.js} +24 -22
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
- package/{chunk-EK7PGVPY.js → chunk-4IQVE43Z.js} +63 -32
- package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6WOLPIPY.js +379 -0
- package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-ULK35M44.js → chunk-7AJRJGSQ.js} +1049 -2860
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-ZLOSGVCQ.js → chunk-A3LUWRQK.js} +15 -15
- package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-ZLNHUFOF.js → chunk-A74QP4FI.js} +2613 -1297
- package/{chunk-ME4XUFTD.js → chunk-AEQMKYZN.js} +15 -15
- package/{chunk-6E2NWYT4.js → chunk-AH5R7BYW.js} +22 -176
- package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
- package/{chunk-S7RA7A4X.js → chunk-B7DE5XJW.js} +387 -347
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
- package/{chunk-BKJSRO66.js → chunk-BGGV6B5O.js} +555 -328
- package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-HJAGA3GR.js → chunk-CVJRVBJL.js} +3 -3
- package/chunk-D374I563.js +62 -0
- package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-PYIMOZSX.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-KPAFQHRT.js → chunk-E5KJOZWY.js} +4 -4
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-SJYK3LLP.js → chunk-FFYE5ATM.js} +6 -6
- package/{chunk-QG3USDTD.js → chunk-FZKA3XFA.js} +21 -21
- package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
- package/{chunk-WOIURUUV.js → chunk-GDUC4VS2.js} +12 -12
- package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
- package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-RXJ26SQW.js → chunk-IJTXNLQE.js} +13 -13
- package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
- package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
- package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
- package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
- package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
- package/{chunk-H5LWB3D3.js → chunk-PRMEU7BT.js} +347 -14
- package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
- package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
- package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
- package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-53X6PS42.js → chunk-VREG6ANQ.js} +103 -100
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/{chunk-SH3IKNCG.js → chunk-VSRISJXZ.js} +15 -8
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.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-EVYGYDPG.js → chunk-Y5OWZQMJ.js} +39 -30
- package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-OK4MZRJ6.js → chunk-Z2WZAE4P.js} +128 -149
- package/chunk-Z6YTCDU4.js +24 -0
- package/chunk-ZEKUFJLW.js +1438 -0
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
- package/{commandRegistry-3JVE76K2.js → commandRegistry-TME7INFU.js} +98 -94
- package/{contentThunks-SRKUHSBR.js → contentThunks-U6OC4R2N.js} +37 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
- package/{createAgentAutomationAction-B4BQV46J.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
- package/{createDialogAction-IONSKZIX.js → createDialogAction-IAGQJ3LH.js} +38 -37
- package/{createPageAction-K75KBQOO.js → createPageAction-AZ3UIFKA.js} +38 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
- package/{dialogSlice-GPALSBQM.js → dialogSlice-QAKYN4DE.js} +35 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
- package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
- package/{docStore-O43KOHIX.js → docStore-GIVRT7TQ.js} +15 -14
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-I2GHUSHZ.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
- package/{hostCredentialCreate-V775SKCE.js → hostCredentialCreate-6VDJFNDO.js} +118 -105
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-SAMUDW5S.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -108
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-ZXZWGMFE.js → machineCommands-K6XIGOAD.js} +142 -115
- package/{machineWsRunDispatch-3ZEI4BEC.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -102
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-V7EYBAX6.js → projectArchive-G7AOQPRW.js} +43 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
- package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
- package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-S4VRNWYG.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4279
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
- package/{runAgentClientLoop-MQLOUDF5.js → runAgentClientLoop-HQJPDFGQ.js} +95 -70
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-GMNIKJVL.js → streamAgentChatTurn-E3XH2KFD.js} +160 -155
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-MWIF3S4T.js → tools-7RSX22FT.js} +64 -59
- package/tuiRestart-KAAA7TND.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
- package/{updateDialogTitleAction-ZXHMZFSX.js → updateDialogTitleAction-SEWV252V.js} +37 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.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/agentRecordCommands-S2IVVEES.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-OXKUPBAQ.js +0 -776
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
|
@@ -1,57 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
normalizeAgentUpdateFieldList,
|
|
5
|
-
normalizePolicyLevelSetting,
|
|
6
|
-
normalizeSystemBuiltinSkills,
|
|
7
|
-
normalizeTonePresetSetting,
|
|
8
|
-
resolveUserEnabledSkills
|
|
9
|
-
} from "./chunk-GGKNJ42M.js";
|
|
2
|
+
setDialogExtraReferencesAction
|
|
3
|
+
} from "./chunk-B5SV4H3J.js";
|
|
10
4
|
import {
|
|
11
5
|
isSkillSummaryMarker
|
|
12
6
|
} from "./chunk-VF4K2QE6.js";
|
|
13
|
-
import {
|
|
14
|
-
setDialogExtraReferencesAction
|
|
15
|
-
} from "./chunk-GIABSSWQ.js";
|
|
16
7
|
import {
|
|
17
8
|
fetchAndCacheTableRows
|
|
18
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FZKA3XFA.js";
|
|
19
10
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
11
|
+
resolveDialogRuntimeAgentKey
|
|
12
|
+
} from "./chunk-B7DE5XJW.js";
|
|
22
13
|
import {
|
|
23
14
|
require_react
|
|
24
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RD3QLZQV.js";
|
|
25
16
|
import {
|
|
26
17
|
createSpaceKey
|
|
27
18
|
} from "./chunk-UAD2WT54.js";
|
|
28
19
|
import {
|
|
29
20
|
selectById
|
|
30
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RM4UMFY4.js";
|
|
31
22
|
import {
|
|
32
23
|
selectRuntimeSnapshot
|
|
33
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GXXY2NL3.js";
|
|
34
25
|
import {
|
|
35
|
-
createAsyncThunk
|
|
36
|
-
|
|
37
|
-
} from "./chunk-7Z6EW7AH.js";
|
|
26
|
+
createAsyncThunk
|
|
27
|
+
} from "./chunk-7TTMMOKH.js";
|
|
38
28
|
import {
|
|
39
29
|
selectIdentityUserId
|
|
40
30
|
} from "./chunk-PXYBUFDB.js";
|
|
41
31
|
import {
|
|
42
32
|
isAgentSkillDisabled
|
|
43
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MM73SP4K.js";
|
|
44
34
|
import {
|
|
45
|
-
DEFAULT_SYSTEM_AGENT_CAPABILITIES,
|
|
46
35
|
listBuiltinSkills,
|
|
47
36
|
resolveBuiltinSkillByName
|
|
48
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EBKHA63G.js";
|
|
49
38
|
import {
|
|
50
39
|
parseSkillDocProtocol
|
|
51
40
|
} from "./chunk-W6RFEDN4.js";
|
|
52
41
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
isDialogRecordKeyForId,
|
|
43
|
+
parseDialogKey
|
|
44
|
+
} from "./chunk-OJKUU3LP.js";
|
|
55
45
|
import {
|
|
56
46
|
toErrorMessage
|
|
57
47
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -150,46 +140,73 @@ function waitForAbortableDelay(ms, signal) {
|
|
|
150
140
|
});
|
|
151
141
|
}
|
|
152
142
|
|
|
153
|
-
// packages/
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
[
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const preferences = hasOwnEnabledSkills ? { enabledSkills, enabledPromptSkills } : { enabledPromptSkills };
|
|
166
|
-
return resolveUserEnabledSkills(preferences);
|
|
143
|
+
// packages/ai/tools/memoryToolContext.ts
|
|
144
|
+
var trimmed = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
145
|
+
function findLoadedDialogs(state, dialogId, exactKey) {
|
|
146
|
+
const entities = state?.db?.entities;
|
|
147
|
+
if (!entities || typeof entities !== "object") return [];
|
|
148
|
+
const matches = [];
|
|
149
|
+
for (const key of Object.keys(entities)) {
|
|
150
|
+
if (!isDialogRecordKeyForId(key, dialogId)) continue;
|
|
151
|
+
const record = entities[key];
|
|
152
|
+
if (!record || trimmed(record.id) !== dialogId) continue;
|
|
153
|
+
if (exactKey && key !== exactKey) continue;
|
|
154
|
+
matches.push({ key, record });
|
|
167
155
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
state
|
|
172
|
-
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
);
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
);
|
|
156
|
+
return matches;
|
|
157
|
+
}
|
|
158
|
+
function resolveMemoryToolContext(state, context) {
|
|
159
|
+
return resolveToolAttributionContext(state, context);
|
|
160
|
+
}
|
|
161
|
+
function resolveToolAttributionContext(state, context, options) {
|
|
162
|
+
const UNRESOLVED = options?.errorLabel ?? "\u65E0\u6CD5\u786E\u5B9A\u8BB0\u5FC6\u5F52\u5C5E";
|
|
163
|
+
const agentKey = trimmed(context?.agentKey);
|
|
164
|
+
if (options?.requireAgentKey && !agentKey) {
|
|
165
|
+
throw new Error(`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u7F3A\u5C11 agentKey\uFF0C\u4E0D\u4F1A\u4ECE\u5F53\u524D\u5BF9\u8BDD\u63A8\u65AD\u3002`);
|
|
166
|
+
}
|
|
167
|
+
const contextDialogId = trimmed(context?.dialogId);
|
|
168
|
+
const contextDialogKey = trimmed(context?.dialogKey);
|
|
169
|
+
let keyIdentity = null;
|
|
170
|
+
if (contextDialogKey) {
|
|
171
|
+
keyIdentity = parseDialogKey(contextDialogKey);
|
|
172
|
+
if (!keyIdentity) {
|
|
173
|
+
throw new Error(
|
|
174
|
+
`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u91CC\u7684\u5BF9\u8BDD\u952E ${contextDialogKey} \u4E0D\u662F\u53EF\u89E3\u6790\u7684 dialog-<owner>-<id>\uFF0C\u4E0D\u4F1A\u6309 id \u731C\u5F52\u5C5E\u3002`
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
if (contextDialogId && keyIdentity.dialogId !== contextDialogId) {
|
|
178
|
+
throw new Error(
|
|
179
|
+
`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u81EA\u76F8\u77DB\u76FE\u2014\u2014\u5BF9\u8BDD\u952E ${contextDialogKey} \u6307\u5411 ${keyIdentity.dialogId}\uFF0C\u4F46 dialogId \u662F ${contextDialogId}\u3002`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const dialogId = keyIdentity?.dialogId ?? contextDialogId;
|
|
184
|
+
if (!dialogId) {
|
|
185
|
+
throw new Error(
|
|
186
|
+
`${UNRESOLVED}\uFF1A\u672C\u6B21\u5DE5\u5177\u8C03\u7528\u7F3A\u5C11\u6240\u5C5E\u5BF9\u8BDD\uFF08dialogId\uFF09\uFF0C\u4E0D\u4F1A\u6539\u7528\u5F53\u524D\u6253\u5F00\u7684\u5BF9\u8BDD\u6216\u89C6\u56FE Space\u3002`
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
const matches = findLoadedDialogs(state, dialogId, contextDialogKey);
|
|
190
|
+
if (matches.length === 0) {
|
|
191
|
+
throw new Error(
|
|
192
|
+
`${UNRESOLVED}\uFF1A\u5BF9\u8BDD ${dialogId} \u672A\u52A0\u8F7D\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5B83\u7684 Space \u5F52\u5C5E\u3002`
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
if (matches.length > 1) {
|
|
196
|
+
throw new Error(
|
|
197
|
+
`${UNRESOLVED}\uFF1A\u52A0\u8F7D\u4E2D\u6709 ${matches.length} \u4E2A\u540C id \u7684\u5BF9\u8BDD\uFF08${matches.map((m) => m.key).join(" / ")}\uFF09\uFF0C\u4EC5\u51ED dialogId \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E\uFF1B\u6267\u884C\u4E0A\u4E0B\u6587\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u5BF9\u8BDD\u952E\u3002`
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
const [dialog] = matches;
|
|
201
|
+
return {
|
|
202
|
+
dialogId,
|
|
203
|
+
agentKey: resolveDialogRuntimeAgentKey(
|
|
204
|
+
dialog.record,
|
|
205
|
+
agentKey
|
|
206
|
+
),
|
|
207
|
+
spaceId: trimmed(dialog.record.spaceId)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
193
210
|
|
|
194
211
|
// packages/ai/tools/loadSkillTool.ts
|
|
195
212
|
var loadSkillFunctionSchema = {
|
|
@@ -323,23 +340,7 @@ async function listSkillCandidates(thunkApi) {
|
|
|
323
340
|
}
|
|
324
341
|
return candidates;
|
|
325
342
|
}
|
|
326
|
-
var
|
|
327
|
-
try {
|
|
328
|
-
const state = thunkApi?.getState?.();
|
|
329
|
-
if (!state) return null;
|
|
330
|
-
const currentDialogKey = getActiveDialogKey();
|
|
331
|
-
if (!currentDialogKey) return null;
|
|
332
|
-
const dialogConfig = selectById(
|
|
333
|
-
state,
|
|
334
|
-
currentDialogKey
|
|
335
|
-
);
|
|
336
|
-
return asTrimmedNonEmptyStringArray(dialogConfig?.cybots)[0] ?? null;
|
|
337
|
-
} catch {
|
|
338
|
-
return null;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var readCurrentAgentSkillSource = async (thunkApi) => {
|
|
342
|
-
const agentKey = resolveCurrentAgentKeyForSkillGate(thunkApi);
|
|
343
|
+
var readCurrentAgentSkillSource = async (thunkApi, agentKey) => {
|
|
343
344
|
if (!agentKey) return null;
|
|
344
345
|
const db = thunkApi?.extra?.db;
|
|
345
346
|
if (!db) return null;
|
|
@@ -364,6 +365,14 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
364
365
|
}
|
|
365
366
|
let requestedName = asTrimmedString(exact ? source === "space" ? args.dbKey : args.slug : args?.name);
|
|
366
367
|
if (!requestedName) throw new Error("loadSkill \u9700\u8981\u63D0\u4F9B name\u3002");
|
|
368
|
+
const state = thunkApi.getState();
|
|
369
|
+
const attribution = resolveToolAttributionContext(state, context, {
|
|
370
|
+
requireAgentKey: false,
|
|
371
|
+
errorLabel: "loadSkill: \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E"
|
|
372
|
+
});
|
|
373
|
+
const dialogKey = context?.dialogKey?.trim() || Object.keys(state.db.entities).find(
|
|
374
|
+
(key) => isDialogRecordKeyForId(key, attribution.dialogId) && state.db.entities[key]?.id?.trim() === attribution.dialogId
|
|
375
|
+
);
|
|
367
376
|
const candidates = await listSkillCandidates(thunkApi);
|
|
368
377
|
let resolution;
|
|
369
378
|
if (!exact) {
|
|
@@ -380,7 +389,7 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
380
389
|
const builtinEntry = resolution?.kind === "builtin" ? resolution.entry : null;
|
|
381
390
|
const resolvedSlug = builtinEntry?.slug ?? matched?.skillId ?? null;
|
|
382
391
|
if (resolvedSlug) {
|
|
383
|
-
const agentSkillSource = await readCurrentAgentSkillSource(thunkApi);
|
|
392
|
+
const agentSkillSource = await readCurrentAgentSkillSource(thunkApi, attribution.agentKey);
|
|
384
393
|
if (agentSkillSource && isAgentSkillDisabled(agentSkillSource, resolvedSlug)) {
|
|
385
394
|
return {
|
|
386
395
|
rawData: {
|
|
@@ -397,7 +406,7 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
397
406
|
const body2 = builtinEntry.content;
|
|
398
407
|
const dbKey = builtinEntry.slug;
|
|
399
408
|
if (context?.skipSkillReferencePersist !== true) {
|
|
400
|
-
await persistLoadedSkillReference(thunkApi, dbKey, requestedName);
|
|
409
|
+
await persistLoadedSkillReference(thunkApi, dialogKey, dbKey, requestedName);
|
|
401
410
|
}
|
|
402
411
|
return {
|
|
403
412
|
rawData: {
|
|
@@ -437,7 +446,7 @@ ${body2}`
|
|
|
437
446
|
}
|
|
438
447
|
const body = extractSkillBody(page);
|
|
439
448
|
if (context?.skipSkillReferencePersist !== true) {
|
|
440
|
-
await persistLoadedSkillReference(thunkApi, matched.dbKey, requestedName);
|
|
449
|
+
await persistLoadedSkillReference(thunkApi, dialogKey, matched.dbKey, requestedName);
|
|
441
450
|
}
|
|
442
451
|
return {
|
|
443
452
|
rawData: {
|
|
@@ -451,10 +460,9 @@ ${body2}`
|
|
|
451
460
|
${body}`
|
|
452
461
|
};
|
|
453
462
|
}
|
|
454
|
-
async function persistLoadedSkillReference(thunkApi, dbKey, name) {
|
|
463
|
+
async function persistLoadedSkillReference(thunkApi, currentDialogKey, dbKey, name) {
|
|
455
464
|
try {
|
|
456
465
|
const state = thunkApi?.getState?.();
|
|
457
|
-
const currentDialogKey = getActiveDialogKey();
|
|
458
466
|
if (!state || !currentDialogKey) return;
|
|
459
467
|
const dialogConfig = selectById(
|
|
460
468
|
state,
|
|
@@ -468,7 +476,7 @@ async function persistLoadedSkillReference(thunkApi, dbKey, name) {
|
|
|
468
476
|
title: name,
|
|
469
477
|
type: "instruction"
|
|
470
478
|
};
|
|
471
|
-
await setDialogExtraReferencesAction([...existing, newRef], thunkApi);
|
|
479
|
+
await setDialogExtraReferencesAction([...existing, newRef], thunkApi, currentDialogKey);
|
|
472
480
|
} catch {
|
|
473
481
|
}
|
|
474
482
|
}
|
|
@@ -607,10 +615,10 @@ ${block.question.choices.map((item) => `- ${item.label}${item.detail ? ` \u2014
|
|
|
607
615
|
|
|
608
616
|
// packages/core/clipMultilineText.ts
|
|
609
617
|
function clipMultilineText(value, max) {
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
return `${
|
|
613
|
-
...[truncated ${
|
|
618
|
+
const trimmed2 = value.trim();
|
|
619
|
+
if (trimmed2.length <= max) return trimmed2;
|
|
620
|
+
return `${trimmed2.slice(0, max)}
|
|
621
|
+
...[truncated ${trimmed2.length - max} chars]`;
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
// packages/render/table/utils/tableSerialization.ts
|
|
@@ -783,7 +791,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
783
791
|
if (!executionInput) {
|
|
784
792
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
785
793
|
}
|
|
786
|
-
const { findToolExecutor } = await import("./tools-
|
|
794
|
+
const { findToolExecutor } = await import("./tools-7RSX22FT.js");
|
|
787
795
|
const { executor } = findToolExecutor(run.toolName);
|
|
788
796
|
toolRunStarted({
|
|
789
797
|
id: run.id,
|
|
@@ -807,7 +815,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
807
815
|
const latestState = thunkApi.getState();
|
|
808
816
|
const userId = selectIdentityUserId(latestState);
|
|
809
817
|
if (userId) {
|
|
810
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
818
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-PBJPZ2JU.js");
|
|
811
819
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
812
820
|
}
|
|
813
821
|
}
|
|
@@ -837,13 +845,6 @@ export {
|
|
|
837
845
|
waitForAbortableDelay,
|
|
838
846
|
clipMultilineText,
|
|
839
847
|
fetchAndSerializeTable,
|
|
840
|
-
selectMaxExecutionTime,
|
|
841
|
-
selectGlobalPrompt,
|
|
842
|
-
selectUserTonePreset,
|
|
843
|
-
selectKnowledgeCaptureLevel,
|
|
844
|
-
selectSpaceContextLevel,
|
|
845
|
-
selectAutoApproveSelfUpdateFields,
|
|
846
|
-
selectAiRecentContentLimit,
|
|
847
848
|
ToolResultError,
|
|
848
849
|
getToolResultErrorData,
|
|
849
850
|
createToolRunId,
|
|
@@ -853,6 +854,8 @@ export {
|
|
|
853
854
|
toolRunUpdated,
|
|
854
855
|
toolRunFailed,
|
|
855
856
|
getAllToolRuns,
|
|
857
|
+
resolveMemoryToolContext,
|
|
858
|
+
resolveToolAttributionContext,
|
|
856
859
|
loadSkillFunctionSchema,
|
|
857
860
|
loadSkillFunc
|
|
858
861
|
};
|
|
@@ -67,8 +67,6 @@ var HIGH_RISK_MUTATION_TOOL_NAMES = [
|
|
|
67
67
|
// 编排副作用:startAgentRun 会另起一次 run(子 run 的只读与否由调用方参数决定),
|
|
68
68
|
// controlAgentRun 能追加指令/停止它;只读 run 不应拿到这两个(review A-1)。
|
|
69
69
|
"startAgentRun",
|
|
70
|
-
"requestTaskReview",
|
|
71
|
-
"recordTaskReviewDecision",
|
|
72
70
|
"controlAgentRun",
|
|
73
71
|
// 受控云端执行:在用户拥有的云资源上跑任意命令,不可重放、副作用在云端。
|
|
74
72
|
// 硬边界:它永不进 DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS(见该清单注释),
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadMemoryVNextCatalog
|
|
3
|
-
} from "./chunk-XI2BWJM5.js";
|
|
4
1
|
import {
|
|
5
2
|
recallMemoryVNextLocal
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4D4QD7FT.js";
|
|
7
4
|
import {
|
|
8
5
|
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
9
6
|
buildMemoryOverlay
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PVFYPUIM.js";
|
|
8
|
+
import {
|
|
9
|
+
isWorkContextState
|
|
10
|
+
} from "./chunk-6WOLPIPY.js";
|
|
11
|
+
import {
|
|
12
|
+
loadMemoryVNextCatalog
|
|
13
|
+
} from "./chunk-324FWHUA.js";
|
|
11
14
|
import {
|
|
12
15
|
createMemoryKey
|
|
13
16
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -56,7 +59,7 @@ var buildSynthesizedStateItem = (state, entity, ownerType, ownerId) => ({
|
|
|
56
59
|
async function resolvePureVNextRuntime(input) {
|
|
57
60
|
const { db, owners, userInput } = input;
|
|
58
61
|
if (owners.length === 0 || !userInput.trim()) {
|
|
59
|
-
return { selectedItems: [], promptBlock:
|
|
62
|
+
return { selectedItems: [], promptBlock: buildMemoryOverlay([], { injectionEmit: input.injectionEmit }), recalledStateCount: 0 };
|
|
60
63
|
}
|
|
61
64
|
const ownerIds = owners.map((o) => `${o.ownerType}:${encodeURIComponent(o.ownerId)}`);
|
|
62
65
|
const catalogs = await Promise.all(
|
|
@@ -67,7 +70,9 @@ async function resolvePureVNextRuntime(input) {
|
|
|
67
70
|
for (let i = 0; i < owners.length; i++) {
|
|
68
71
|
const owner = owners[i];
|
|
69
72
|
const catalog = catalogs[i];
|
|
70
|
-
const currentStates = catalog.states.filter(
|
|
73
|
+
const currentStates = catalog.states.filter(
|
|
74
|
+
(s) => !s.retiredAt && s.text.trim() && !isWorkContextState(s)
|
|
75
|
+
);
|
|
71
76
|
const hits = recallMemoryVNextLocal({
|
|
72
77
|
query: userInput,
|
|
73
78
|
entities: catalog.entities,
|
|
@@ -83,7 +88,9 @@ async function resolvePureVNextRuntime(input) {
|
|
|
83
88
|
);
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
|
-
const promptBlock =
|
|
91
|
+
const promptBlock = buildMemoryOverlay(selectedItems, {
|
|
92
|
+
sources: new Map(selectedItems.map((item) => [item, "vnext"])),
|
|
93
|
+
injectionEmit: input.injectionEmit,
|
|
87
94
|
maxTokens: input.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET
|
|
88
95
|
});
|
|
89
96
|
return {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// packages/ai/memory/vnext/workContextWriteNotice.ts
|
|
2
|
+
var text = (value) => typeof value === "string" && value.trim() ? value.trim() : "\u672A\u77E5";
|
|
3
|
+
var revision = (value) => typeof value === "number" && Number.isFinite(value) ? String(value) : "\u672A\u77E5";
|
|
4
|
+
function formatWorkContextWriteNotice(result, options) {
|
|
5
|
+
const activityId = text(result?.activityId);
|
|
6
|
+
const rev = revision(result?.revision);
|
|
7
|
+
const outcome = result?.outcome;
|
|
8
|
+
const storage = options?.storage;
|
|
9
|
+
const storageArg = storage ? `, storage="${storage}"` : "";
|
|
10
|
+
if (outcome === "created" || outcome === "updated") {
|
|
11
|
+
const verb = outcome === "created" ? "\u65B0\u5EFA" : "\u66F4\u65B0";
|
|
12
|
+
return `\u5DF2\u5199\u5165\u5DE5\u4F5C\u8BB0\u5FC6\uFF08${verb}\uFF09\uFF1AactivityId=${activityId}\uFF0Crevision ${rev}\u3002`;
|
|
13
|
+
}
|
|
14
|
+
if (outcome === "unchanged") {
|
|
15
|
+
return `\u5DE5\u4F5C\u8BB0\u5FC6\u5185\u5BB9\u4E0E\u5DF2\u6709\u7248\u672C\u5B8C\u5168\u4E00\u81F4\uFF0C\u672A\u4EA7\u751F\u65B0\u7248\u672C\uFF1AactivityId=${activityId}\uFF0Crevision \u4ECD\u4E3A ${rev}\u3002`;
|
|
16
|
+
}
|
|
17
|
+
if (outcome === "conflict") {
|
|
18
|
+
return [
|
|
19
|
+
`\u672A\u5199\u5165\u5DE5\u4F5C\u8BB0\u5FC6\uFF1A\u672C\u6B21\u4FEE\u6539\u88AB\u62D2\u7EDD\uFF08outcome=conflict\uFF09\uFF0CactivityId=${activityId}\uFF0C\u5F53\u524D revision=${rev}\u3002`,
|
|
20
|
+
"\u5E38\u89C1\u539F\u56E0\uFF1AexpectedRevision \u5DF2\u8FC7\u671F\uFF08\u522B\u4EBA\u5148\u5199\u4E86\uFF09\uFF1B\u6539\u4E86\u5185\u5BB9\u5374\u590D\u7528\u4E86\u65E7 changeId\uFF1B\u6216\u8BE5 activityId \u5C5E\u4E8E\u522B\u7684\u7A7A\u95F4\u3002",
|
|
21
|
+
`\u4E0B\u4E00\u6B65\uFF1A\u8C03\u7528 queryMemory\uFF08mode="work", activityId="${activityId}"${storageArg}\uFF09\u8BFB\u53D6\u6700\u65B0 revision \u4E0E\u5185\u5BB9\uFF0C\u518D\u7528\u8BE5 revision \u4F5C\u4E3A expectedRevision\u3001\u5E76\u6362\u4E00\u4E2A\u65B0\u7684 changeId \u91CD\u5199${storage ? `\uFF08\u91CD\u5199\u65F6\u540C\u6837\u5E26\u4E0A storage="${storage}"\uFF09` : ""}\uFF1B\u82E5\u8FD9\u6761\u4E0D\u8BE5\u6539\uFF0C\u6539\u7528\u65B0\u7684 itemKey \u53E6\u5EFA\u4E00\u6761\u3002`
|
|
22
|
+
].join("\n");
|
|
23
|
+
}
|
|
24
|
+
return `\u672A\u786E\u8BA4\u5DE5\u4F5C\u8BB0\u5FC6\u662F\u5426\u5199\u5165\uFF1A\u670D\u52A1\u7AEF\u8FD4\u56DE\u4E86\u65E0\u6CD5\u8BC6\u522B\u7684 outcome=${text(outcome)}\uFF0CactivityId=${activityId}\u3002\u4E0B\u4E00\u6B65\uFF1A\u8C03\u7528 queryMemory\uFF08mode="work", activityId="${activityId}"${storageArg}\uFF09\u786E\u8BA4\u5F53\u524D revision \u540E\u518D\u51B3\u5B9A\u662F\u5426\u91CD\u5199\u3002`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
formatWorkContextWriteNotice
|
|
29
|
+
};
|