nolo-cli 0.188.0-alpha.2 → 0.188.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-7GFCTOFY.js → _executeModel-WQ7BV3G7.js} +22 -22
- package/{action-HQXK4ZT4.js → action-BHWB4MOK.js} +2 -2
- package/{addContentAction-3WAN3OWY.js → addContentAction-BY375D35.js} +3 -3
- package/{addDialogAgentAction-WNQBFR5G.js → addDialogAgentAction-HOZYOCWC.js} +2 -2
- package/{agentDeleteCommand-GETUDKX4.js → agentDeleteCommand-4DK6X4S4.js} +24 -24
- package/{agentEmailCommands-2EB4DJSA.js → agentEmailCommands-CYPIYPOK.js} +25 -25
- package/agentFavoriteCommands-GAFEXKKP.js +187 -0
- package/{agentListCommands-6RONL2YO.js → agentListCommands-MAG736RU.js} +8 -8
- package/{agentMachineCommands-J6SX7CPR.js → agentMachineCommands-7VTOWHHD.js} +6 -6
- package/{agentRecordCommands-UXFGQXD6.js → agentRecordCommands-VK3NEK5G.js} +24 -24
- package/{agentRunCommand-QTK73QMM.js → agentRunCommand-7MFVUHWX.js} +25 -25
- package/{agentRuntimeLocal-G4KEXO5D.js → agentRuntimeLocal-NAAYNHCW.js} +4 -4
- package/{agentSlice-STUDWJJZ.js → agentSlice-TZRLTBEJ.js} +3 -3
- package/{appDeleteCommands-6L6PTB6G.js → appDeleteCommands-VDHCDVBF.js} +8 -8
- package/{appDeployCommands-PLXIHXN3.js → appDeployCommands-V6UTKVXR.js} +8 -8
- package/{appDeployStatusCommands-VGYYEBTV.js → appDeployStatusCommands-4UIFSEPC.js} +8 -8
- package/{appGetCommands-NAANWNTG.js → appGetCommands-XKDXLC3C.js} +8 -8
- package/{appListCommands-ZT5YE2IX.js → appListCommands-BELRVX2Y.js} +8 -8
- package/{authCommand-NVTKI7QU.js → authCommand-RV5MQDWN.js} +3 -3
- package/{authCommands-RFLKIPBT.js → authCommands-MZUXPRYJ.js} +2 -2
- package/{builtinSkillRegistry-2VN6JG4U.js → builtinSkillRegistry-7MBUY5EY.js} +3 -3
- package/{chromeOpsCommands-DOFY2OCF.js → chromeOpsCommands-C46BXHEE.js} +1 -1
- package/{chunk-5LVGXDSL.js → chunk-2NAE7IVE.js} +1 -1
- package/{chunk-FGIJLPZ3.js → chunk-4MYCKDSI.js} +2 -2
- package/{chunk-3QFOYFJW.js → chunk-5DIFZFYF.js} +4 -4
- package/{chunk-KOIGM3KU.js → chunk-5DPVRMSY.js} +1 -1
- package/{chunk-GSX7Z46F.js → chunk-5HAPEKNH.js} +1 -1
- package/{chunk-RBVR7P3M.js → chunk-63JHZKGZ.js} +18 -18
- package/{chunk-JOOWHDGM.js → chunk-A5BLRE3G.js} +1 -1
- package/{chunk-VECM2WX3.js → chunk-ABMBNULR.js} +2 -2
- package/{chunk-HVV4B6OL.js → chunk-ADTJJVDJ.js} +210 -43
- package/{chunk-Y2ZDNW2H.js → chunk-B2N5GZBU.js} +2 -2
- package/{chunk-7SJG5ZNX.js → chunk-B6EZB6DW.js} +1 -1
- package/{chunk-H6FUDBS3.js → chunk-CGKSIL4D.js} +5 -5
- package/{chunk-CLGAGPEM.js → chunk-CNMQATUF.js} +1 -1
- package/{chunk-ER4UTWWS.js → chunk-DFF6B7P7.js} +1 -1
- package/{chunk-WMHWFFTE.js → chunk-ECX3NKRD.js} +46 -0
- package/{chunk-R6AJKHEU.js → chunk-EVF6F3QU.js} +3 -3
- package/{chunk-7N6C3IHF.js → chunk-EXSR7DXT.js} +2 -2
- package/{chunk-WBCYL63M.js → chunk-GYVLAHA4.js} +1 -1
- package/{chunk-RKLQVXUE.js → chunk-HTLIKE5U.js} +2 -2
- package/{chunk-4OTMONZL.js → chunk-IOIPWEL4.js} +9 -9
- package/{chunk-RANCLEEC.js → chunk-JG6IWEAW.js} +10 -10
- package/{chunk-LOQYQUM2.js → chunk-JGJVDP2W.js} +17 -17
- package/{chunk-S4W4GV3B.js → chunk-K6TZSON4.js} +1 -1
- package/{chunk-VH7PE33C.js → chunk-KDBKEYUW.js} +36 -11
- package/{chunk-A43QYPYN.js → chunk-NMDAOZRN.js} +12 -12
- package/{chunk-ZIOYHDYW.js → chunk-OUSUFO5W.js} +2 -2
- package/{chunk-PCPQWTXJ.js → chunk-PD2YRFAI.js} +1 -1
- package/{chunk-OXOXPREC.js → chunk-SM56M7N7.js} +1 -1
- package/{chunk-2RHDAHFX.js → chunk-TFSMPRAY.js} +4 -4
- package/{chunk-Q54QGYRW.js → chunk-TZLPJRNO.js} +4 -4
- package/{chunk-6G5V4Y3V.js → chunk-UC5RISH3.js} +65 -41
- package/{chunk-IFN7MHWL.js → chunk-UGCQKKXW.js} +1 -1
- package/{chunk-YO3O7H2X.js → chunk-UNOILAZP.js} +14 -0
- package/{chunk-YUZIPPER.js → chunk-UVWBGWBO.js} +8 -2
- package/{chunk-MMOISK6N.js → chunk-V62MBA65.js} +3 -3
- package/{chunk-IIGDVODZ.js → chunk-WAZ6BTSC.js} +1 -1
- package/{chunk-O2MBTX37.js → chunk-WVGVGT44.js} +4 -4
- package/{chunk-RGTPR57U.js → chunk-YARN6MCX.js} +4 -4
- package/{chunk-PVZ3GB25.js → chunk-YHNZZIAH.js} +5 -5
- package/{commandRegistry-MTKBHP45.js → commandRegistry-RM2Z2DVF.js} +65 -61
- package/{contentThunks-E4DHXF3M.js → contentThunks-RP4BYNUC.js} +8 -8
- package/{cooldownCommands-IUU3ZH3L.js → cooldownCommands-4XKJFEBW.js} +1 -1
- package/{createAgentAutomationAction-2P2II7B3.js → createAgentAutomationAction-AYFAMQ5D.js} +8 -8
- package/{createDialogAction-MFZGE5EO.js → createDialogAction-NV5TEAIN.js} +10 -10
- package/{createPageAction-SBU2YCNR.js → createPageAction-FJGDX55N.js} +8 -8
- package/{dbSlice-2O3YBVPP.js → dbSlice-QAUXABCC.js} +2 -2
- package/{dialogCommands-AWGFKOGS.js → dialogCommands-4BGV6DPD.js} +8 -8
- package/{dialogSlice-GKPCUQWM.js → dialogSlice-ZUYNLTF6.js} +7 -7
- package/{dialogUsageCommand-44XMU6DD.js → dialogUsageCommand-QTG6ILEJ.js} +58 -5
- package/{docCreateCommands-4JEKXNST.js → docCreateCommands-3CW75UF2.js} +7 -7
- package/{docDeleteCommands-Q5K4UJPQ.js → docDeleteCommands-NL4ZYMN5.js} +8 -8
- package/{docReadCommands-ZZ7HMGPV.js → docReadCommands-HXCNVDPQ.js} +7 -7
- package/{docStore-DOZVBVKZ.js → docStore-EPAZ4HLD.js} +3 -3
- package/{docUpdateCommands-NUFXB6BD.js → docUpdateCommands-RMVBAMDE.js} +7 -7
- package/{fetchMessages-QLW7INJJ.js → fetchMessages-HWBVATSE.js} +1 -1
- package/{handleSendMessageAction-FY4RBJEA.js → handleSendMessageAction-5UH3DA6V.js} +15 -15
- package/index.js +6 -6
- package/{keys-N6HQICY5.js → keys-P4ZDOVJW.js} +11 -1
- package/{localDialogRead-55YDVPNU.js → localDialogRead-CT5HGDMC.js} +1 -1
- package/{localRuntimeAdapter-KCS5Y4T6.js → localRuntimeAdapter-LVPGHOJK.js} +22 -22
- package/{machineCommands-E3HMAMLA.js → machineCommands-O6RDJGLV.js} +23 -23
- package/{machineWsRunDispatch-MGDBTLDX.js → machineWsRunDispatch-GVDQO742.js} +23 -23
- package/{memberThunks-VXT36MZP.js → memberThunks-QWAAGQBS.js} +155 -52
- package/package.json +1 -1
- package/{readlineWorkspace-IWWKZK3F.js → readlineWorkspace-I5XZFI2E.js} +87 -41
- package/{removeDialogAgentAction-PK24DJ2J.js → removeDialogAgentAction-YEPO5AYI.js} +3 -3
- package/{runAgentClientLoop-CFIM6MXT.js → runAgentClientLoop-LV2HYQPH.js} +20 -20
- package/{secretCommands-UZV7CPJY.js → secretCommands-N6CMCJDZ.js} +1 -1
- package/{setDialogExtraReferencesAction-BN4IBUO6.js → setDialogExtraReferencesAction-EH5GWDAJ.js} +3 -3
- package/{setPrimaryDialogAgentAction-JR5SMLZY.js → setPrimaryDialogAgentAction-PNWRK6IY.js} +3 -3
- package/{settingThunks-RJZQHL7H.js → settingThunks-7VCWB6P7.js} +2 -2
- package/{spaceCommands-BI3TRIAK.js → spaceCommands-ZUI4CTSO.js} +6 -6
- package/{streamAgentChatTurn-3BS7IAFR.js → streamAgentChatTurn-ZCHIQR35.js} +22 -22
- package/{switchDialogAgentAction-TSIXBNRH.js → switchDialogAgentAction-23BFWJMV.js} +2 -2
- package/{tools-PCTUYG54.js → tools-2DZDJWHZ.js} +17 -17
- package/{updateCommands-Y6CKFKIF.js → updateCommands-KE6LP3QX.js} +3 -3
- package/{updateDialogTitleAction-ZHFIMEQL.js → updateDialogTitleAction-QZWVKVVW.js} +8 -8
- package/{windowsSelfUpdate-XV2MMQAC.js → windowsSelfUpdate-26TSFXEZ.js} +2 -2
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
readAndWait
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B2N5GZBU.js";
|
|
11
11
|
import {
|
|
12
12
|
toErrorMessage
|
|
13
13
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-RP4BYNUC.js");
|
|
337
337
|
await dispatch(
|
|
338
338
|
updateContentTitle({
|
|
339
339
|
spaceId: dbSpaceId,
|
|
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
async function createDocState(args, thunkApi) {
|
|
375
|
-
const { createPageAction } = await import("./createPageAction-
|
|
375
|
+
const { createPageAction } = await import("./createPageAction-FJGDX55N.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5DIFZFYF.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-63JHZKGZ.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-OWYYDMGJ.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-Y6ROFCZO.js";
|
|
16
16
|
import {
|
|
17
17
|
scheduleWindowsSelfUpdate
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WAZ6BTSC.js";
|
|
19
19
|
import {
|
|
20
20
|
t
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UNOILAZP.js";
|
|
22
22
|
|
|
23
23
|
// packages/cli/updateCommands.ts
|
|
24
24
|
import { existsSync, readFileSync, accessSync, constants } from "node:fs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeReferences,
|
|
8
8
|
resolveReferenceAssets,
|
|
9
9
|
resolveToolsFromKeys
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5DIFZFYF.js";
|
|
11
11
|
import {
|
|
12
12
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
13
13
|
getAllToolRuns,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
selectSpaceContextLevel,
|
|
21
21
|
selectUserTonePreset,
|
|
22
22
|
uiCardFallback
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WVGVGT44.js";
|
|
24
24
|
import {
|
|
25
25
|
getDocState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EVF6F3QU.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveToolBaseUrl
|
|
29
29
|
} from "./chunk-MYOH447Z.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-ZBCBFOWC.js";
|
|
36
36
|
import {
|
|
37
37
|
getTableState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YARN6MCX.js";
|
|
39
39
|
import {
|
|
40
40
|
getCurrentSpaceIdRaw,
|
|
41
41
|
getViewMode
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
45
45
|
buildPersonalizationDialogPolicyContext,
|
|
46
46
|
selectAllMsgs
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-63JHZKGZ.js";
|
|
48
48
|
import {
|
|
49
49
|
selectPendingFiles
|
|
50
50
|
} from "./chunk-OWYYDMGJ.js";
|
|
51
51
|
import {
|
|
52
52
|
read,
|
|
53
53
|
selectById
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-B2N5GZBU.js";
|
|
55
55
|
import {
|
|
56
56
|
getSessionSnapshotForState,
|
|
57
57
|
selectIdentityUserBalance,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
expandEnabledPackPromptPatches,
|
|
67
67
|
expandEnabledPacks,
|
|
68
68
|
resolveEffectiveEnabledPacks
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-SM56M7N7.js";
|
|
70
70
|
import {
|
|
71
71
|
projectToolMessageContent
|
|
72
72
|
} from "./chunk-2WZXXAQD.js";
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
} from "./chunk-WJZOQR2J.js";
|
|
77
77
|
import {
|
|
78
78
|
extractReferenceKeysFromMessage
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-K6TZSON4.js";
|
|
80
80
|
import {
|
|
81
81
|
getModelContextWindow,
|
|
82
82
|
planContextUsage
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
} from "./chunk-KUG52IAP.js";
|
|
111
111
|
import {
|
|
112
112
|
metaKey
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-ECX3NKRD.js";
|
|
114
114
|
import {
|
|
115
115
|
asNonEmptyStringArray
|
|
116
116
|
} from "./chunk-I42VC5KR.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OUSUFO5W.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V62MBA65.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UC5RISH3.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5DIFZFYF.js";
|
|
27
27
|
import {
|
|
28
28
|
createSSEParser,
|
|
29
29
|
createToolRunId,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunSetPending,
|
|
33
33
|
toolRunStarted,
|
|
34
34
|
toolRunSucceeded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WVGVGT44.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
messageStreaming,
|
|
46
46
|
toolResultNeedsUserConfirmation,
|
|
47
47
|
updateToolMessage
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-63JHZKGZ.js";
|
|
49
49
|
import {
|
|
50
50
|
streamAgentChatTurn
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-YHNZZIAH.js";
|
|
52
52
|
import {
|
|
53
53
|
addActiveController,
|
|
54
54
|
removeActiveController,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
} from "./chunk-32ZKZET7.js";
|
|
60
60
|
import {
|
|
61
61
|
write
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-B2N5GZBU.js";
|
|
63
63
|
import {
|
|
64
64
|
createAsyncThunk
|
|
65
65
|
} from "./chunk-WRCZXJ4N.js";
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
} from "./chunk-OHRDHS4N.js";
|
|
89
89
|
import {
|
|
90
90
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-K6TZSON4.js";
|
|
92
92
|
import {
|
|
93
93
|
getModelInfo
|
|
94
94
|
} from "./chunk-JIFYXQRD.js";
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
} from "./chunk-KUG52IAP.js";
|
|
110
110
|
import {
|
|
111
111
|
toTrimmedString
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-ECX3NKRD.js";
|
|
113
113
|
import {
|
|
114
114
|
createDialogMessageKeyAndId,
|
|
115
115
|
dialogMessageKey
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurrentSpaceIdRaw,
|
|
3
|
+
setCurrentSpaceBoth
|
|
4
|
+
} from "./chunk-5XBUWM6I.js";
|
|
1
5
|
import {
|
|
2
6
|
createSpaceKey,
|
|
3
7
|
normalizeSpaceId
|
|
@@ -7,7 +11,7 @@ import {
|
|
|
7
11
|
} from "./chunk-YDH3FDFQ.js";
|
|
8
12
|
import {
|
|
9
13
|
toTimestampMs
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B2N5GZBU.js";
|
|
11
15
|
import {
|
|
12
16
|
fetchFromServer,
|
|
13
17
|
getAllServers
|
|
@@ -59,9 +63,6 @@ function dedupeMemberSpacesById(memberSpaces) {
|
|
|
59
63
|
});
|
|
60
64
|
return Array.from(membershipMap.values());
|
|
61
65
|
}
|
|
62
|
-
function getMemberSpaces() {
|
|
63
|
-
return state.memberSpaces;
|
|
64
|
-
}
|
|
65
66
|
function getAllMemberSpaces() {
|
|
66
67
|
const memberSpaces = dedupeMemberSpacesById(state.memberSpaces || []);
|
|
67
68
|
return [...memberSpaces].sort((a, b) => {
|
|
@@ -93,15 +94,6 @@ function setMembershipRejected(errorMessage, isRemoteUnavailable) {
|
|
|
93
94
|
};
|
|
94
95
|
notify();
|
|
95
96
|
}
|
|
96
|
-
function hydrateMemberSpacesFromLocal(spaces) {
|
|
97
|
-
if (state.memberSpaces !== null || spaces.length === 0) return;
|
|
98
|
-
state = {
|
|
99
|
-
...state,
|
|
100
|
-
memberSpaces: dedupeMemberSpacesById(spaces),
|
|
101
|
-
loading: false
|
|
102
|
-
};
|
|
103
|
-
notify();
|
|
104
|
-
}
|
|
105
97
|
function appendRecoveredMemberships(recovered) {
|
|
106
98
|
if (!recovered || recovered.length === 0) return;
|
|
107
99
|
if (state.memberSpaces === null) {
|
|
@@ -279,6 +271,16 @@ var fetchAuthoritativeRemoteSpace = async ({
|
|
|
279
271
|
return null;
|
|
280
272
|
};
|
|
281
273
|
|
|
274
|
+
// packages/create/space/applyFetchSpaceFulfilled.ts
|
|
275
|
+
function applyFetchSpaceFulfilled(payload) {
|
|
276
|
+
const { spaceId, spaceData } = payload;
|
|
277
|
+
const currentSpaceId = getCurrentSpaceIdRaw();
|
|
278
|
+
if (!currentSpaceId || currentSpaceId === spaceId) {
|
|
279
|
+
setCurrentSpaceBoth(spaceId, spaceData);
|
|
280
|
+
setSpaceInitialized();
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
282
284
|
export {
|
|
283
285
|
selectSpaceRemoteAuth,
|
|
284
286
|
spaceListsUser,
|
|
@@ -286,16 +288,14 @@ export {
|
|
|
286
288
|
fetchRemoteUserSpaceMemberships,
|
|
287
289
|
fetchRemoteSpace,
|
|
288
290
|
fetchAuthoritativeRemoteSpace,
|
|
289
|
-
getMemberSpaces,
|
|
290
291
|
getAllMemberSpaces,
|
|
291
292
|
setMemberSpaces,
|
|
292
293
|
setMembershipLoading,
|
|
293
294
|
setMembershipRejected,
|
|
294
|
-
hydrateMemberSpacesFromLocal,
|
|
295
295
|
appendRecoveredMemberships,
|
|
296
|
-
setSpaceInitialized,
|
|
297
296
|
setMembershipLoaded,
|
|
298
297
|
addMemberSpace,
|
|
299
298
|
removeMemberSpace,
|
|
300
|
-
updateMemberSpaceName
|
|
299
|
+
updateMemberSpaceName,
|
|
300
|
+
applyFetchSpaceFulfilled
|
|
301
301
|
};
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
import {
|
|
61
61
|
inlineImageUrlsForCustomProvider,
|
|
62
62
|
prepareTools
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-OUSUFO5W.js";
|
|
64
64
|
import {
|
|
65
65
|
getServerProviderSecret
|
|
66
66
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
resolveCliLocalRuntimeKeyCapability,
|
|
83
83
|
resolveCliLocalSpawnDispatch,
|
|
84
84
|
resolveStartAgentRunCwd
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-UC5RISH3.js";
|
|
86
86
|
import {
|
|
87
87
|
fetchWithTransientRetry,
|
|
88
88
|
isTransientFetchError
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "./chunk-53RSTB7T.js";
|
|
94
94
|
import {
|
|
95
95
|
resolveAgentRequiredPackIds
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-WVGVGT44.js";
|
|
97
97
|
import {
|
|
98
98
|
applyBuiltinAgentRuntimeOverride,
|
|
99
99
|
applyTokenUsageToDayStats,
|
|
@@ -102,14 +102,14 @@ import {
|
|
|
102
102
|
resolveBuiltinPlatformAgentConfig,
|
|
103
103
|
runKeyed,
|
|
104
104
|
validateAskChoiceInput
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-63JHZKGZ.js";
|
|
106
106
|
import {
|
|
107
107
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
108
108
|
BUILTIN_TITLE_LLM_CONFIG
|
|
109
109
|
} from "./chunk-523DITKR.js";
|
|
110
110
|
import {
|
|
111
111
|
fetchServerSyncedCredential
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-YHNZZIAH.js";
|
|
113
113
|
import {
|
|
114
114
|
getDefaultCliLocalRuntimeDb
|
|
115
115
|
} from "./chunk-P64WRQYV.js";
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
applySystemBuiltinSkillFilter,
|
|
126
126
|
expandEnabledPacks,
|
|
127
127
|
resolveEffectiveEnabledPacks
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-SM56M7N7.js";
|
|
129
129
|
import {
|
|
130
130
|
DEFAULT_HYBRID_READ_TIMEOUT_MS,
|
|
131
131
|
Duration_exports,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
runExecShellGates,
|
|
170
170
|
validateConfiguredRootExecutionLease,
|
|
171
171
|
verifyOwnerRouteAck
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-ADTJJVDJ.js";
|
|
173
173
|
import {
|
|
174
174
|
accumulateGeminiChunks,
|
|
175
175
|
buildGeminiGenerateContentRequest,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
} from "./chunk-2MBTWINN.js";
|
|
243
243
|
import {
|
|
244
244
|
normalizeUsage
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-K6TZSON4.js";
|
|
246
246
|
import {
|
|
247
247
|
isDevinOAuthAgent
|
|
248
248
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -378,12 +378,13 @@ import {
|
|
|
378
378
|
import {
|
|
379
379
|
agentRunCardLabels,
|
|
380
380
|
t
|
|
381
|
-
} from "./chunk-
|
|
381
|
+
} from "./chunk-UNOILAZP.js";
|
|
382
382
|
import {
|
|
383
|
+
createTokenDialogIndexKey,
|
|
383
384
|
createTokenKey,
|
|
384
385
|
createTokenStatsKey,
|
|
385
386
|
createUserKey
|
|
386
|
-
} from "./chunk-
|
|
387
|
+
} from "./chunk-ECX3NKRD.js";
|
|
387
388
|
import {
|
|
388
389
|
dialogMessageKey,
|
|
389
390
|
dialogMessagePrefix,
|
|
@@ -11817,6 +11818,22 @@ function isRemoteAuthEndpoint(endpoint) {
|
|
|
11817
11818
|
return false;
|
|
11818
11819
|
}
|
|
11819
11820
|
|
|
11821
|
+
// packages/ai/token/tokenDialogIndex.ts
|
|
11822
|
+
function buildTokenDialogIndexOps(args) {
|
|
11823
|
+
const userId = (args.userId ?? "").trim();
|
|
11824
|
+
const dialogId = (args.dialogId ?? "").trim();
|
|
11825
|
+
const callId = (args.callId ?? "").trim();
|
|
11826
|
+
const recordKey = (args.recordKey ?? "").trim();
|
|
11827
|
+
if (!userId || !dialogId || !callId || !recordKey) return [];
|
|
11828
|
+
return [
|
|
11829
|
+
{
|
|
11830
|
+
type: "put",
|
|
11831
|
+
key: createTokenDialogIndexKey(userId, dialogId, callId),
|
|
11832
|
+
value: { userId, dialogId, callId, recordKey }
|
|
11833
|
+
}
|
|
11834
|
+
];
|
|
11835
|
+
}
|
|
11836
|
+
|
|
11820
11837
|
// packages/cli/client/localRuntimeDialog.ts
|
|
11821
11838
|
import { appendFileSync, mkdirSync as mkdirSync3 } from "fs";
|
|
11822
11839
|
import { homedir } from "os";
|
|
@@ -12008,7 +12025,15 @@ async function writeLocalTokenRecord(args) {
|
|
|
12008
12025
|
type: "token",
|
|
12009
12026
|
...prepared.tokenData
|
|
12010
12027
|
};
|
|
12011
|
-
await args.store.
|
|
12028
|
+
await args.store.batch([
|
|
12029
|
+
{ type: "put", key: recordKey, value: tokenRecord },
|
|
12030
|
+
...buildTokenDialogIndexOps({
|
|
12031
|
+
userId: args.userId,
|
|
12032
|
+
dialogId: typeof prepared.tokenData.dialogId === "string" ? prepared.tokenData.dialogId : "",
|
|
12033
|
+
callId,
|
|
12034
|
+
recordKey
|
|
12035
|
+
})
|
|
12036
|
+
]);
|
|
12012
12037
|
ops.push({ type: "put", key: recordKey, value: tokenRecord });
|
|
12013
12038
|
const dateKey = format(timestamp, "yyyy-MM-dd");
|
|
12014
12039
|
const statsKey = createTokenStatsKey(args.userId, dateKey);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2NAE7IVE.js";
|
|
13
13
|
import {
|
|
14
14
|
parsePositiveFiniteNumberOrFallback
|
|
15
15
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
readDbRecord,
|
|
21
21
|
resolveAgentRecordFromHybridStore
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GYVLAHA4.js";
|
|
23
23
|
import {
|
|
24
24
|
INSTABOX_RUN_CONFIG_ENV,
|
|
25
25
|
createCliLocalRuntimeAdapter,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
resolveFileWriteGateEnabled,
|
|
39
39
|
resolveLocalUserId,
|
|
40
40
|
validateInstaboxWorkspaceSelection
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-KDBKEYUW.js";
|
|
42
42
|
import {
|
|
43
43
|
clearCredentialAvailability,
|
|
44
44
|
readEffectiveCredentialEntry,
|
|
@@ -72,14 +72,14 @@ import {
|
|
|
72
72
|
} from "./chunk-BMQ2MJUK.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveCliLocalRuntimeKeyCapability
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-UC5RISH3.js";
|
|
76
76
|
import {
|
|
77
77
|
isTransientFetchError
|
|
78
78
|
} from "./chunk-KFHREHUQ.js";
|
|
79
79
|
import {
|
|
80
80
|
parseUiCard,
|
|
81
81
|
uiCardFallback
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WVGVGT44.js";
|
|
83
83
|
import {
|
|
84
84
|
isGatewayHttpStatus
|
|
85
85
|
} from "./chunk-NF64D32W.js";
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
chooseMemoryOwners,
|
|
89
89
|
loadMemoryCandidatesFromDb,
|
|
90
90
|
resolveAgentMemoryPolicy
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-CGKSIL4D.js";
|
|
92
92
|
import {
|
|
93
93
|
API_REPORTED_COST_MULTIPLIER,
|
|
94
94
|
estimateMessagesTokens,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
resolveAgentContextWindow,
|
|
97
97
|
resolveOccupancy,
|
|
98
98
|
resolveOccupancyWindow
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-63JHZKGZ.js";
|
|
100
100
|
import {
|
|
101
101
|
isCliAuthorityBrokerProtocolError,
|
|
102
102
|
isCliAuthorityBrokerTimeoutError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
117
117
|
LOCAL_TURN_ABORTED_CODE,
|
|
118
118
|
readActionGate
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-ADTJJVDJ.js";
|
|
120
120
|
import {
|
|
121
121
|
resolveAgentRuntimeConfigFromRecord
|
|
122
122
|
} from "./chunk-N7E3LQ4A.js";
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
} from "./chunk-WJZOQR2J.js";
|
|
145
145
|
import {
|
|
146
146
|
normalizeUsage
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-K6TZSON4.js";
|
|
148
148
|
import {
|
|
149
149
|
isOAuthApiKeyRef
|
|
150
150
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -228,10 +228,10 @@ import {
|
|
|
228
228
|
t,
|
|
229
229
|
toolLabel,
|
|
230
230
|
toolLabelVariants
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-UNOILAZP.js";
|
|
232
232
|
import {
|
|
233
233
|
createMemoryKey
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-ECX3NKRD.js";
|
|
235
235
|
import {
|
|
236
236
|
ulid
|
|
237
237
|
} from "./chunk-XJWWBO34.js";
|
|
@@ -11378,7 +11378,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11378
11378
|
|
|
11379
11379
|
// packages/cli/client/agentRun.ts
|
|
11380
11380
|
async function loadRunLocalAgentTurn() {
|
|
11381
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11381
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-NAAYNHCW.js");
|
|
11382
11382
|
return runLocalAgentTurn;
|
|
11383
11383
|
}
|
|
11384
11384
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-ZC3CMUKU.js";
|
|
11
11
|
import {
|
|
12
12
|
createKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ECX3NKRD.js";
|
|
14
14
|
|
|
15
15
|
// packages/ai/tools/codeWorkDiscipline.ts
|
|
16
16
|
var CODE_WORK_DISCIPLINE_BODY = `## \u6548\u7387\u4F18\u5148\uFF08\u7701 token\uFF09
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5DPVRMSY.js";
|
|
11
11
|
import {
|
|
12
12
|
parsePositiveFiniteNumberOrFallback
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-4SN6J65J.js";
|
|
70
70
|
import {
|
|
71
71
|
t
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-UNOILAZP.js";
|
|
73
73
|
import {
|
|
74
74
|
asNonEmptyStringArray,
|
|
75
75
|
asTrimmedNonEmptyStringArray
|
|
@@ -780,7 +780,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
780
780
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
781
781
|
}
|
|
782
782
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
783
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
783
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-CT5HGDMC.js")).readDialogFromLocalDb;
|
|
784
784
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
785
785
|
return {
|
|
786
786
|
...result,
|
|
@@ -795,7 +795,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
798
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
798
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-CT5HGDMC.js");
|
|
799
799
|
return reader({ ...args, db });
|
|
800
800
|
}
|
|
801
801
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KDBKEYUW.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WVGVGT44.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ADTJJVDJ.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-UBLITLAZ.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-Y6ROFCZO.js";
|
|
39
39
|
import {
|
|
40
40
|
t
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UNOILAZP.js";
|
|
42
42
|
import {
|
|
43
43
|
asTrimmedNonEmptyStringArray
|
|
44
44
|
} from "./chunk-I42VC5KR.js";
|