nolo-cli 0.102.0 → 0.102.2
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-WLFACVFR.js → _executeModel-B6SS2ISV.js} +32 -32
- package/{action-PNPQLJHG.js → action-C4KMTCJF.js} +2 -2
- package/{addContentAction-RBOUD7SJ.js → addContentAction-7TNIOVZI.js} +6 -6
- package/{addDialogAgentAction-IODCR6TB.js → addDialogAgentAction-O47J3MVW.js} +5 -5
- package/{agentDeleteCommand-EFWZSSZA.js → agentDeleteCommand-MEKEAJS6.js} +87 -17
- package/{agentEmailCommands-FJ2DAY5M.js → agentEmailCommands-NCQSCDX7.js} +36 -36
- package/{agentListCommands-EDV4RJ4D.js → agentListCommands-VLNQH2BR.js} +19 -19
- package/{agentMachineCommands-UOEI4TPN.js → agentMachineCommands-ZYKZGX65.js} +17 -17
- package/{agentRecordCommands-MLDVCTFN.js → agentRecordCommands-2INKPT2O.js} +36 -36
- package/{agentRunCommand-SY7N2BDL.js → agentRunCommand-2SZBC7BP.js} +36 -36
- package/{agentRuntimeLocal-SXYAKX3A.js → agentRuntimeLocal-7VIX3R3R.js} +14 -14
- package/{agentSlice-WBSSBKBB.js → agentSlice-4JIT2XG4.js} +7 -7
- package/{appDeleteCommands-GTTBG53T.js → appDeleteCommands-YLCAVP4I.js} +18 -18
- package/{appDeployCommands-ZZCHUJAT.js → appDeployCommands-7PQPIIEL.js} +18 -18
- package/{appDeployStatusCommands-GZLLGY7Z.js → appDeployStatusCommands-Z3YBCYU3.js} +18 -18
- package/{appGetCommands-ZRLWHJ3C.js → appGetCommands-MCY6JLD3.js} +18 -18
- package/{appListCommands-OHARWLIL.js → appListCommands-O6QDXYKT.js} +18 -18
- package/{authCommand-NHDLY3IB.js → authCommand-I6LVUQKM.js} +2 -2
- package/{authCommands-UDBJVSZU.js → authCommands-LWLOZETU.js} +2 -2
- package/{builtinSkillRegistry-MAR5LPAC.js → builtinSkillRegistry-GFY77VRN.js} +4 -4
- package/{chunk-UM4PH574.js → chunk-22RVE2PC.js} +1 -1
- package/{chunk-XFUBXRVI.js → chunk-2H6SEVDS.js} +1 -1
- package/{chunk-PCF3QU5Q.js → chunk-2K4TM6AW.js} +1 -1
- package/{chunk-5LTAPGPV.js → chunk-2K54PIZY.js} +2 -2
- package/{chunk-VEYL5MO5.js → chunk-4G4C5SXT.js} +3 -3
- package/{chunk-WCGC6S77.js → chunk-4HTMUQIZ.js} +2 -2
- package/{chunk-4FFUDT6D.js → chunk-56HJ2LAA.js} +17 -7
- package/{chunk-E73ON47R.js → chunk-5EPHWMP5.js} +2 -2
- package/{chunk-DNHENQ3T.js → chunk-5UQRASYE.js} +5 -5
- package/{chunk-NZWAO6LH.js → chunk-6UEJDFF7.js} +28 -2
- package/{chunk-5OA5HMTL.js → chunk-7JWCVINR.js} +1 -1
- package/{chunk-4YSOUKUR.js → chunk-7KWFIKKK.js} +1 -1
- package/{chunk-6O4IK4V2.js → chunk-CUF4MYKI.js} +1 -1
- package/{chunk-PTDYOADJ.js → chunk-D2GQE6AF.js} +1 -1
- package/{chunk-OYPMWCIQ.js → chunk-DLXHN5XZ.js} +9 -9
- package/{chunk-KLUBZL6X.js → chunk-ERFIIS4C.js} +1 -1
- package/{chunk-46Y5D2BZ.js → chunk-EV235ILT.js} +1 -1
- package/{chunk-FY7DCYW7.js → chunk-F6DFZLO4.js} +3 -3
- package/{chunk-FJ5BGMNM.js → chunk-FBTNYNAL.js} +1 -1
- package/{chunk-YPOPJAKN.js → chunk-GCTKWVLU.js} +1 -1
- package/{chunk-U6IGAJT4.js → chunk-GJ647AYV.js} +7 -7
- package/{chunk-SEB5HAUU.js → chunk-HD3S2F7U.js} +1 -1
- package/{chunk-LKERWYPX.js → chunk-IRZTHHNM.js} +2 -2
- package/{chunk-V5OWQOJZ.js → chunk-K4URP6NQ.js} +1 -1
- package/{chunk-7TKWCTSY.js → chunk-KNVDNYH7.js} +2 -2
- package/{chunk-7MMSLEPA.js → chunk-LB5A6JTU.js} +3 -3
- package/{chunk-TVCAR26G.js → chunk-MSFZ7FMO.js} +1 -1
- package/{chunk-XIRXOUBV.js → chunk-NGO72MN2.js} +6 -6
- package/{chunk-CJN5OERD.js → chunk-NMMU6M4Z.js} +22 -22
- package/{chunk-UJXNKP5V.js → chunk-O7SVKKLY.js} +129 -14
- package/{chunk-SNMQMOD2.js → chunk-Q7O72MF5.js} +1 -1
- package/{chunk-GARACBQB.js → chunk-RILRSUGC.js} +1 -1
- package/{chunk-X34KOYU2.js → chunk-S7HQBOEA.js} +10 -10
- package/{chunk-CHNCM7EF.js → chunk-TAPMD4SO.js} +7 -7
- package/{chunk-UVKDJUTL.js → chunk-TSXNDTXL.js} +1 -1
- package/{chunk-GUYEMTRK.js → chunk-TTMNMJVI.js} +45 -32
- package/{chunk-W72ISAKC.js → chunk-UNAOTLKO.js} +1 -1
- package/{chunk-PH275YDS.js → chunk-V3R3UZ4F.js} +24 -17
- package/{chunk-V7Y6KRAH.js → chunk-V6YASAZR.js} +1 -1
- package/{chunk-AUDNYVRC.js → chunk-VLGL7FOL.js} +1 -1
- package/{chunk-ODTDLPBV.js → chunk-VPNDYFUB.js} +3 -3
- package/{chunk-LNVJHIGA.js → chunk-XMUZHRSB.js} +6 -6
- package/{chunk-Z56IK6UT.js → chunk-XTM4WSXT.js} +8 -8
- package/{chunk-ADBZWMFB.js → chunk-YDO5ERB4.js} +1 -1
- package/{chunk-U7XXEI5R.js → chunk-YGCJITP3.js} +2 -2
- package/{chunk-NRUSXKH7.js → chunk-Z5X5MD6D.js} +7 -6
- package/{chunk-G53AA7RW.js → chunk-ZQZZJIQI.js} +63 -14
- package/{commandRegistry-2HPRUR3I.js → commandRegistry-X7FA6WJQ.js} +50 -50
- package/{contentThunks-F2BNWOZV.js → contentThunks-CH5Z3XAD.js} +15 -15
- package/{createAgentAutomationAction-5N2NRNR7.js → createAgentAutomationAction-4MV3MWVE.js} +15 -15
- package/{createDialogAction-DSEG4L5Y.js → createDialogAction-BYCJKWFY.js} +18 -18
- package/{createPageAction-K32FYQPE.js → createPageAction-XWDTQHFL.js} +16 -16
- package/{dbSlice-Q25STFGJ.js → dbSlice-QOLNF5GN.js} +5 -5
- package/{deleteFile-AJ2EZMHT.js → deleteFile-KESP65GC.js} +2 -2
- package/{dialogCommands-LF7PLYAD.js → dialogCommands-NNSKMYZR.js} +19 -19
- package/{dialogSlice-4GBOUTGL.js → dialogSlice-LUUVLJKZ.js} +14 -14
- package/{docCreateCommands-NQR3S7A4.js → docCreateCommands-BKCYZTJW.js} +19 -19
- package/{docDeleteCommands-V3IAQ2HT.js → docDeleteCommands-AJDU5BUV.js} +20 -20
- package/{docReadCommands-GDX4CLSU.js → docReadCommands-PPI2UAIW.js} +19 -19
- package/{docStore-ZTYSP3YE.js → docStore-RRAGFCNQ.js} +6 -6
- package/{docUpdateCommands-QMYXWQOU.js → docUpdateCommands-62WIRKAN.js} +19 -19
- package/{fetchMessages-I5ICDDHM.js → fetchMessages-5L7OVM5Y.js} +2 -2
- package/{handleSendMessageAction-XFZH2TQS.js → handleSendMessageAction-CW5HSH4E.js} +14 -14
- package/index.js +3 -3
- package/{localDialogRead-ZHZ3KXDM.js → localDialogRead-O5A26FDK.js} +1 -1
- package/{machineCommands-KMU3D5I5.js → machineCommands-FG6HBFB7.js} +35 -35
- package/{machineWsRunDispatch-6GJ5YOSW.js → machineWsRunDispatch-7JCANNGT.js} +35 -35
- package/{memberThunks-R75S3RWP.js → memberThunks-25K6DDRA.js} +6 -6
- package/package.json +1 -1
- package/{read-SRQMNO26.js → read-PJIT2YEJ.js} +2 -2
- package/{readDocTool-RC3JUNJ2.js → readDocTool-DRSXHGNL.js} +1 -1
- package/{readlineWorkspace-ZMNRQXMC.js → readlineWorkspace-HISW3JNJ.js} +40 -40
- package/{removeDialogAgentAction-46XQV5Q7.js → removeDialogAgentAction-VIWJL6MX.js} +6 -6
- package/{runAgentClientLoop-URRDZ5WG.js → runAgentClientLoop-4XIIPXH3.js} +30 -30
- package/{setDialogExtraReferencesAction-J4V5ADQF.js → setDialogExtraReferencesAction-A7VA3NFM.js} +6 -6
- package/{setPrimaryDialogAgentAction-UHHV2QZW.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +6 -6
- package/{settingThunks-PPZZZOWN.js → settingThunks-KOYSAT65.js} +5 -5
- package/{spaceCommands-2P2X37MC.js → spaceCommands-BBEY2U7J.js} +17 -17
- package/{streamAgentChatTurn-YPUYKXDX.js → streamAgentChatTurn-WRLQAWTW.js} +32 -32
- package/{switchDialogAgentAction-A2TMVGAE.js → switchDialogAgentAction-3VYWHZKH.js} +5 -5
- package/{tools-M5ENXZRJ.js → tools-NPSZ3DTN.js} +27 -27
- package/{tuiSummaryLlmCaller-Q65IBDGO.js → tuiSummaryLlmCaller-O3DZKOHE.js} +8 -8
- package/{updateDialogTitleAction-7PNUE23W.js → updateDialogTitleAction-DBW4OTMM.js} +15 -15
- /package/{chunk-3AH7LNUB.js → chunk-ODAPITXL.js} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TTMNMJVI.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
resolvePageReadMarkdown,
|
|
22
22
|
slateToSimplifiedMarkdown
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RILRSUGC.js";
|
|
24
24
|
import {
|
|
25
25
|
waitForAbortableDelay
|
|
26
26
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -29,19 +29,19 @@ import {
|
|
|
29
29
|
} from "./chunk-AGIM7IMJ.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchAndCacheMessages
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NMMU6M4Z.js";
|
|
33
33
|
import {
|
|
34
34
|
shouldUseServerProxy
|
|
35
35
|
} from "./chunk-YYLHWIW6.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchServerSyncedCredential
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TAPMD4SO.js";
|
|
39
39
|
import {
|
|
40
40
|
buildSkillGuidancePromptBlock,
|
|
41
41
|
extractRuntimePageCapabilities,
|
|
42
42
|
resolveBuiltinSkillPage,
|
|
43
43
|
resolveSkillGraphFromRoots
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-4G4C5SXT.js";
|
|
45
45
|
import {
|
|
46
46
|
DELETE_SAFETY_RED_LINE,
|
|
47
47
|
buildIdentityBlock,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
detectDispatchIntentFromMessages,
|
|
51
51
|
normalizeChatCompletionsBodyForProvider,
|
|
52
52
|
resolveToolGuidedSections
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-KNVDNYH7.js";
|
|
54
54
|
import {
|
|
55
55
|
convertMessagesToResponsesInput,
|
|
56
56
|
getUsageRequestOptions,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-M7VLQGQP.js";
|
|
60
60
|
import {
|
|
61
61
|
createFileCredentialBroker
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-2H6SEVDS.js";
|
|
63
63
|
import {
|
|
64
64
|
estimateTokenCount
|
|
65
65
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
} from "./chunk-UAD2WT54.js";
|
|
69
69
|
import {
|
|
70
70
|
read
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-56HJ2LAA.js";
|
|
72
72
|
import {
|
|
73
73
|
MEMORY_USE_GUIDANCE,
|
|
74
74
|
buildUserResponseLanguageContext,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
} from "./chunk-QSJ3HFEF.js";
|
|
109
109
|
import {
|
|
110
110
|
getRuntimeServerContext
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-O7SVKKLY.js";
|
|
112
112
|
import {
|
|
113
113
|
extractCustomId
|
|
114
114
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TSXNDTXL.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6UEJDFF7.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YGCJITP3.js";
|
|
11
11
|
import {
|
|
12
12
|
PUBLIC_AGENT_KEY_PREFIX,
|
|
13
13
|
ownedAgentKey,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
deleteDialog,
|
|
8
8
|
runtime_default,
|
|
9
9
|
toast
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NMMU6M4Z.js";
|
|
11
11
|
import {
|
|
12
12
|
formatISO
|
|
13
13
|
} from "./chunk-ZRAU6T47.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
addContentAction,
|
|
26
26
|
checkSpaceMembership,
|
|
27
27
|
localSpaceAuthorityPatchStamp
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5EPHWMP5.js";
|
|
29
29
|
import {
|
|
30
30
|
createSpaceKey,
|
|
31
31
|
normalizeSpaceId
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
uploadFileAction,
|
|
40
40
|
upsertSSREntity,
|
|
41
41
|
write
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-56HJ2LAA.js";
|
|
43
43
|
import {
|
|
44
44
|
DEVICE_LOCAL_OWNER_ID,
|
|
45
45
|
getRuntimeServerContext,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
resolveReplicationServers,
|
|
48
48
|
scheduleDeleteReplication,
|
|
49
49
|
scheduleWriteReplication
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-O7SVKKLY.js";
|
|
51
51
|
import {
|
|
52
52
|
buildTombstoneRecord
|
|
53
53
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
rowKey,
|
|
69
69
|
splitKey,
|
|
70
70
|
ulid
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-ODAPITXL.js";
|
|
72
72
|
import {
|
|
73
73
|
asOptionalFiniteNumber
|
|
74
74
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -1434,11 +1434,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1434
1434
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1435
1435
|
},
|
|
1436
1436
|
file: async (key, { thunkAPI }) => {
|
|
1437
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1437
|
+
const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
|
|
1438
1438
|
await deleteFileAction(key, thunkAPI);
|
|
1439
1439
|
},
|
|
1440
1440
|
image: async (key, { thunkAPI }) => {
|
|
1441
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1441
|
+
const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
|
|
1442
1442
|
await deleteFileAction(key, thunkAPI);
|
|
1443
1443
|
},
|
|
1444
1444
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTimingMs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LB5A6JTU.js";
|
|
4
4
|
import {
|
|
5
5
|
MODEL_LOOKUP_MAP
|
|
6
6
|
} from "./chunk-3BXNTXYI.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-BNGW5ASC.js";
|
|
13
13
|
import {
|
|
14
14
|
asTrimmedNonEmptyStringArray
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ODAPITXL.js";
|
|
16
16
|
import {
|
|
17
17
|
asOptionalFiniteNumber
|
|
18
18
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-M7VLQGQP.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_SELECTION_PRIORITY_INSTRUCTIONS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7KWFIKKK.js";
|
|
8
8
|
import {
|
|
9
9
|
getModelContextWindow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IRZTHHNM.js";
|
|
11
11
|
import {
|
|
12
12
|
estimateTokenCount
|
|
13
13
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-PSCNXBYA.js";
|
|
4
4
|
import {
|
|
5
5
|
addContentAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5EPHWMP5.js";
|
|
7
7
|
import {
|
|
8
8
|
upload
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-56HJ2LAA.js";
|
|
10
10
|
import {
|
|
11
11
|
getRuntimeServerContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O7SVKKLY.js";
|
|
13
13
|
import {
|
|
14
14
|
API_ENDPOINTS
|
|
15
15
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V3R3UZ4F.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TTMNMJVI.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZQZZJIQI.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7KWFIKKK.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveLocalRuntimeEnvFromPolicy
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2H6SEVDS.js";
|
|
17
17
|
import {
|
|
18
18
|
asRecordOrEmpty
|
|
19
19
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-KUG52IAP.js";
|
|
39
39
|
import {
|
|
40
40
|
asTrimmedNonEmptyStringArray
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ODAPITXL.js";
|
|
42
42
|
import {
|
|
43
43
|
asOptionalPositiveFiniteNumber
|
|
44
44
|
} from "./chunk-U6VC4MU4.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
buildDialogAttachmentPlan,
|
|
6
6
|
extractFileContentIds
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CUF4MYKI.js";
|
|
8
8
|
import {
|
|
9
9
|
BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
|
|
10
10
|
BUILTIN_SUMMARY_LLM_CONFIG
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./chunk-AGGIDPCZ.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TAPMD4SO.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2K4TM6AW.js";
|
|
21
21
|
import {
|
|
22
22
|
getActiveDialogAgentId,
|
|
23
23
|
getDialogAgentIds,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-YDH3FDFQ.js";
|
|
49
49
|
import {
|
|
50
50
|
fetchMessages
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-YDO5ERB4.js";
|
|
52
52
|
import {
|
|
53
53
|
nolotusId
|
|
54
54
|
} from "./chunk-A4SQRTZ6.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
getModelInfo,
|
|
65
65
|
normalizeUsage,
|
|
66
66
|
resolveAutoExecutionProfile
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-IRZTHHNM.js";
|
|
68
68
|
import {
|
|
69
69
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
70
70
|
buildCompactionMetricsFromPlan,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
normalizeAssistantContentBuffer,
|
|
76
76
|
planCompression,
|
|
77
77
|
serializeMessageContent
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-LB5A6JTU.js";
|
|
79
79
|
import {
|
|
80
80
|
asRecordOrEmpty
|
|
81
81
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
remove,
|
|
86
86
|
selectById,
|
|
87
87
|
write
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-56HJ2LAA.js";
|
|
89
89
|
import {
|
|
90
90
|
findModelConfig,
|
|
91
91
|
getModelConfig
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
getRuntimeServerContext,
|
|
110
110
|
parseOwnerUserIdFromDbKey,
|
|
111
111
|
scheduleDeleteReplication
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-O7SVKKLY.js";
|
|
113
113
|
import {
|
|
114
114
|
getRecordTimestamp,
|
|
115
115
|
getTombstoneTimestamp,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
isDialogRecordKey,
|
|
141
141
|
isPageKey,
|
|
142
142
|
isTableMetaKey
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-ODAPITXL.js";
|
|
144
144
|
import {
|
|
145
145
|
asOptionalFiniteNumber
|
|
146
146
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -10528,7 +10528,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10528
10528
|
runtimeOptions: args.runtimeOptions
|
|
10529
10529
|
});
|
|
10530
10530
|
if (agentKeyToUse) {
|
|
10531
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10531
|
+
const { streamAgentChatTurn } = await import("./agentSlice-4JIT2XG4.js");
|
|
10532
10532
|
await dispatch(
|
|
10533
10533
|
streamAgentChatTurn({
|
|
10534
10534
|
agentKey: agentKeyToUse,
|
|
@@ -13211,7 +13211,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
13211
13211
|
metadataReadFailures
|
|
13212
13212
|
});
|
|
13213
13213
|
if (!plan.deleteCandidates.length) return plan;
|
|
13214
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
13214
|
+
const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
|
|
13215
13215
|
for (const candidate of plan.deleteCandidates) {
|
|
13216
13216
|
if (candidate.fileDbKey) {
|
|
13217
13217
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -13273,7 +13273,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13273
13273
|
}
|
|
13274
13274
|
if (isCurrentDialog) {
|
|
13275
13275
|
await thunkApi.dispatch(resetMsgs());
|
|
13276
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13276
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LUUVLJKZ.js");
|
|
13277
13277
|
dispatch(clearPendingAttachments2());
|
|
13278
13278
|
}
|
|
13279
13279
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13281,39 +13281,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13281
13281
|
|
|
13282
13282
|
// packages/chat/dialog/dialogSlice.ts
|
|
13283
13283
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13284
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13284
|
+
const { createDialogAction } = await import("./createDialogAction-BYCJKWFY.js");
|
|
13285
13285
|
return createDialogAction(args, thunkApi);
|
|
13286
13286
|
};
|
|
13287
13287
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13288
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13288
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-4MV3MWVE.js");
|
|
13289
13289
|
return createAgentAutomationAction(args, thunkApi);
|
|
13290
13290
|
};
|
|
13291
13291
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13292
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13292
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DBW4OTMM.js");
|
|
13293
13293
|
return updateDialogTitleAction(args, thunkApi);
|
|
13294
13294
|
};
|
|
13295
13295
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
13296
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
13296
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-O47J3MVW.js");
|
|
13297
13297
|
return addDialogAgentAction(args, thunkApi);
|
|
13298
13298
|
};
|
|
13299
13299
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
13300
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
13300
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-VIWJL6MX.js");
|
|
13301
13301
|
return removeDialogAgentAction(args, thunkApi);
|
|
13302
13302
|
};
|
|
13303
13303
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
13304
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
13304
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-B4P7YQX2.js");
|
|
13305
13305
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
13306
13306
|
};
|
|
13307
13307
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
13308
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
13308
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-3VYWHZKH.js");
|
|
13309
13309
|
return switchDialogAgentAction(args, thunkApi);
|
|
13310
13310
|
};
|
|
13311
13311
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
13312
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
13312
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-A7VA3NFM.js");
|
|
13313
13313
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13314
13314
|
};
|
|
13315
13315
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13316
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13316
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-CW5HSH4E.js");
|
|
13317
13317
|
return handleSendMessageAction(args, thunkApi);
|
|
13318
13318
|
};
|
|
13319
13319
|
function clearDialogState() {
|
|
@@ -13326,7 +13326,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13326
13326
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13327
13327
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13328
13328
|
try {
|
|
13329
|
-
const { createDocState } = await import("./docStore-
|
|
13329
|
+
const { createDocState } = await import("./docStore-RRAGFCNQ.js");
|
|
13330
13330
|
const pageKey = await createDocState(
|
|
13331
13331
|
{ slateData, title },
|
|
13332
13332
|
{ dispatch, getState }
|
|
@@ -410,6 +410,80 @@ var resolveRecordOwnerUserId = (record) => {
|
|
|
410
410
|
return fromKey;
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
+
// packages/database/actions/writeAck.ts
|
|
414
|
+
var ACK_ENTRY_RETENTION_MS = 1e4;
|
|
415
|
+
var ACK_ENTRY_MAX = 256;
|
|
416
|
+
var replicationTargetKey = (server) => normalizeKnownServerOrigin(server) ?? normalizeServerOrigin(server);
|
|
417
|
+
var ackEntries = /* @__PURE__ */ new Map();
|
|
418
|
+
var sweepAckEntries = () => {
|
|
419
|
+
const wallClock = Date.now();
|
|
420
|
+
for (const [key, entry] of ackEntries) {
|
|
421
|
+
if (entry.settledAt !== null && wallClock - entry.settledAt > ACK_ENTRY_RETENTION_MS) {
|
|
422
|
+
ackEntries.delete(key);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
while (ackEntries.size > ACK_ENTRY_MAX) {
|
|
426
|
+
const oldest = ackEntries.keys().next().value;
|
|
427
|
+
if (oldest === void 0) break;
|
|
428
|
+
ackEntries.delete(oldest);
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
var isReplicationAckHandle = (value) => {
|
|
432
|
+
if (!value || typeof value !== "object") return false;
|
|
433
|
+
const handle = value;
|
|
434
|
+
return typeof handle.primary?.then === "function" && handle.targets instanceof Map;
|
|
435
|
+
};
|
|
436
|
+
var asAckStatus = (ack) => ack.then(
|
|
437
|
+
(ok) => ok ? "acked" : "failed",
|
|
438
|
+
() => "failed"
|
|
439
|
+
);
|
|
440
|
+
var beginWriteAck = (dbKey) => {
|
|
441
|
+
let resolveOutcome = () => {
|
|
442
|
+
};
|
|
443
|
+
const promise = new Promise((resolve) => {
|
|
444
|
+
resolveOutcome = resolve;
|
|
445
|
+
});
|
|
446
|
+
const entry = {
|
|
447
|
+
promise,
|
|
448
|
+
settledAt: null,
|
|
449
|
+
servers: [],
|
|
450
|
+
primaryTargetKey: null,
|
|
451
|
+
planRegistered: false,
|
|
452
|
+
targetAcks: /* @__PURE__ */ new Map(),
|
|
453
|
+
settle: (status) => {
|
|
454
|
+
entry.settledAt = Date.now();
|
|
455
|
+
resolveOutcome(status);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
ackEntries.set(dbKey, entry);
|
|
459
|
+
sweepAckEntries();
|
|
460
|
+
return {
|
|
461
|
+
settleWithReplication: (replication) => {
|
|
462
|
+
if (isReplicationAckHandle(replication)) {
|
|
463
|
+
entry.planRegistered = true;
|
|
464
|
+
entry.servers = [...replication.servers];
|
|
465
|
+
entry.primaryTargetKey = replicationTargetKey(replication.servers[0]);
|
|
466
|
+
for (const [key, ack] of replication.targets) {
|
|
467
|
+
entry.targetAcks.set(key, asAckStatus(ack));
|
|
468
|
+
}
|
|
469
|
+
void asAckStatus(replication.primary).then(
|
|
470
|
+
(status) => entry.settle(status)
|
|
471
|
+
);
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
if (replication && typeof replication.then === "function") {
|
|
475
|
+
void asAckStatus(replication).then(
|
|
476
|
+
(status) => entry.settle(status)
|
|
477
|
+
);
|
|
478
|
+
return;
|
|
479
|
+
}
|
|
480
|
+
entry.settle("not-replicated");
|
|
481
|
+
},
|
|
482
|
+
markNotReplicated: () => entry.settle("not-replicated"),
|
|
483
|
+
markAborted: () => entry.settle("aborted")
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
|
|
413
487
|
// packages/database/actions/replication.ts
|
|
414
488
|
var isReadonlyPublicRecordKey = (dbKey) => dbKey.startsWith("agent-pub-");
|
|
415
489
|
var normalizeCurrentUserId = (state) => {
|
|
@@ -447,26 +521,66 @@ var resolveAuthorityReplicationServers = ({
|
|
|
447
521
|
});
|
|
448
522
|
};
|
|
449
523
|
var scheduleWriteReplication = (servers, request, state) => {
|
|
450
|
-
if (servers.length === 0) return;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
524
|
+
if (servers.length === 0) return null;
|
|
525
|
+
const [primaryServer, ...backupServers] = servers;
|
|
526
|
+
const targets = /* @__PURE__ */ new Map();
|
|
527
|
+
const settleTarget = /* @__PURE__ */ new Map();
|
|
528
|
+
for (const server of servers) {
|
|
529
|
+
const key = replicationTargetKey(server);
|
|
530
|
+
if (!key || targets.has(key)) continue;
|
|
531
|
+
targets.set(
|
|
532
|
+
key,
|
|
533
|
+
new Promise((resolve) => {
|
|
534
|
+
settleTarget.set(key, resolve);
|
|
535
|
+
})
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
const settleTargetFor = (server, ok) => {
|
|
539
|
+
const key = replicationTargetKey(server);
|
|
540
|
+
const resolve = settleTarget.get(key);
|
|
541
|
+
if (!resolve) return;
|
|
542
|
+
settleTarget.delete(key);
|
|
543
|
+
resolve(ok);
|
|
544
|
+
};
|
|
545
|
+
const primaryAck = Promise.resolve().then(async () => {
|
|
546
|
+
let primarySucceeded = false;
|
|
547
|
+
try {
|
|
548
|
+
primarySucceeded = await noloWriteRequest(primaryServer, request, state);
|
|
549
|
+
} finally {
|
|
550
|
+
settleTargetFor(primaryServer, primarySucceeded);
|
|
551
|
+
}
|
|
454
552
|
if (!primarySucceeded) {
|
|
455
553
|
console.warn(`Primary write sync failed for ${request.customKey} on ${primaryServer}`);
|
|
456
554
|
}
|
|
457
555
|
if (backupServers.length === 0) {
|
|
458
|
-
return;
|
|
556
|
+
return primarySucceeded;
|
|
459
557
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
558
|
+
try {
|
|
559
|
+
syncWithServers(
|
|
560
|
+
backupServers,
|
|
561
|
+
(server, requestConfig, requestState, signal) => noloWriteRequest(server, requestConfig, requestState, signal, {
|
|
562
|
+
failureLogLevel: "info"
|
|
563
|
+
}).then(
|
|
564
|
+
(ok) => {
|
|
565
|
+
settleTargetFor(server, ok);
|
|
566
|
+
return ok;
|
|
567
|
+
},
|
|
568
|
+
(error) => {
|
|
569
|
+
settleTargetFor(server, false);
|
|
570
|
+
throw error;
|
|
571
|
+
}
|
|
572
|
+
),
|
|
573
|
+
`Backup write sync failed for ${request.customKey} on`,
|
|
574
|
+
request,
|
|
575
|
+
state
|
|
576
|
+
);
|
|
577
|
+
} catch (error) {
|
|
578
|
+
for (const server of backupServers) settleTargetFor(server, false);
|
|
579
|
+
throw error;
|
|
580
|
+
}
|
|
581
|
+
return primarySucceeded;
|
|
469
582
|
});
|
|
583
|
+
return { servers: [...servers], primary: primaryAck, targets };
|
|
470
584
|
};
|
|
471
585
|
var resolveTenantReplicationServers = ({
|
|
472
586
|
currentServer,
|
|
@@ -742,6 +856,7 @@ export {
|
|
|
742
856
|
isDeviceLocalSpaceBody,
|
|
743
857
|
resolveRecordOwnerUserId,
|
|
744
858
|
resolveRecordAuthority,
|
|
859
|
+
beginWriteAck,
|
|
745
860
|
partitionReadServers,
|
|
746
861
|
compareRemoteRecordsByComparableTime,
|
|
747
862
|
pickBestSettledRemoteRecord,
|
|
@@ -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-PJIT2YEJ.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`);
|