nolo-cli 0.14.0-alpha.5 → 0.14.0-alpha.7
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-TURRLTZ2.js → _executeModel-RFT5SF7K.js} +9 -9
- package/{agentEmailCommands-M4AHOEZ3.js → agentEmailCommands-QEDVGC4R.js} +8 -8
- package/{agentMachineCommands-NPMM4Z53.js → agentMachineCommands-TU6R63NY.js} +1 -1
- package/{agentRecordCommands-RVUH7XLZ.js → agentRecordCommands-HU7Z6AIF.js} +8 -8
- package/{agentRunCommand-F6W2WKKZ.js → agentRunCommand-OV5KJJEJ.js} +8 -8
- package/{agentSlice-PCEL26Z7.js → agentSlice-AZJM7JEU.js} +1 -1
- package/{chunk-LNSRTNH7.js → chunk-2H5WLDK5.js} +3 -3
- package/{chunk-R5AOLZZV.js → chunk-3TNFSPK4.js} +23 -13
- package/{chunk-IYGQF62W.js → chunk-ABUSYXKS.js} +1 -1
- package/{chunk-NFPO7274.js → chunk-CGN3RCBB.js} +1 -1
- package/{chunk-MYE5X27Y.js → chunk-FTSTPJ5H.js} +5 -5
- package/{chunk-7TN6V43T.js → chunk-FUMEXHAF.js} +1 -1
- package/{chunk-E6KIDMTW.js → chunk-G5HNXQBU.js} +2 -2
- package/{chunk-IMZ7AFIJ.js → chunk-J4ZTWTKV.js} +3 -3
- package/{chunk-PYAJ6ZSK.js → chunk-KI6SJNRP.js} +1 -1
- package/{chunk-NZFWHBW5.js → chunk-OJTVDHOJ.js} +4 -4
- package/{chunk-4F4FJPFM.js → chunk-VWQGVOXQ.js} +5 -5
- package/{chunk-7LAIOHOL.js → chunk-YJAWJCEI.js} +2 -2
- package/{chunk-TYRTLSGX.js → chunk-ZVNP5V7L.js} +63 -16
- package/{createAgentAutomationAction-VLNDOHSP.js → createAgentAutomationAction-G6CHUK2D.js} +2 -2
- package/{createDialogAction-6WYTS62Z.js → createDialogAction-2WHKUKWV.js} +3 -3
- package/{createPageAction-YKHOC3LW.js → createPageAction-C2LKKOBJ.js} +2 -2
- package/{dialogSlice-2A2JOFZW.js → dialogSlice-LZU5QKIN.js} +2 -2
- package/{docStore-JJP5PUR7.js → docStore-QD57XJ4K.js} +3 -3
- package/{handleSendMessageAction-UAXTF73I.js → handleSendMessageAction-5OHXNVMH.js} +8 -4
- package/index.js +15 -15
- package/{machineCommands-BQ46IS5M.js → machineCommands-CXMIAUIS.js} +8 -8
- package/{machineWsRunDispatch-R33NXNNI.js → machineWsRunDispatch-MYFROKK2.js} +8 -8
- package/package.json +1 -1
- package/{readlineWorkspace-KBG4DKLX.js → readlineWorkspace-NBVFYLFX.js} +27 -9
- package/{runAgentClientLoop-MUV5YIRK.js → runAgentClientLoop-LYBCFZ2N.js} +7 -7
- package/{spaceSlice-VTC3QXP3.js → spaceSlice-BFQF34NY.js} +4 -2
- package/{streamAgentChatTurn-43N7BNV2.js → streamAgentChatTurn-4XRHF5WM.js} +8 -8
- package/{tools-PX6PEJLE.js → tools-TWULRP6D.js} +5 -5
- package/{updateDialogTitleAction-NPQZWAKG.js → updateDialogTitleAction-FDFEHTQP.js} +2 -2
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
21
|
} from "./chunk-V6VXDXGY.js";
|
|
@@ -10498,7 +10498,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10498
10498
|
runtimeOptions: args.runtimeOptions
|
|
10499
10499
|
});
|
|
10500
10500
|
if (agentKeyToUse) {
|
|
10501
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10501
|
+
const { streamAgentChatTurn } = await import("./agentSlice-AZJM7JEU.js");
|
|
10502
10502
|
await dispatch(
|
|
10503
10503
|
streamAgentChatTurn({
|
|
10504
10504
|
agentKey: agentKeyToUse,
|
|
@@ -13209,7 +13209,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13209
13209
|
}
|
|
13210
13210
|
if (isCurrentDialog) {
|
|
13211
13211
|
await thunkApi.dispatch(resetMsgs());
|
|
13212
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13212
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LZU5QKIN.js");
|
|
13213
13213
|
dispatch(clearPendingAttachments2());
|
|
13214
13214
|
clearWorkflow();
|
|
13215
13215
|
}
|
|
@@ -13218,15 +13218,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13218
13218
|
|
|
13219
13219
|
// packages/chat/dialog/dialogSlice.ts
|
|
13220
13220
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13221
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13221
|
+
const { createDialogAction } = await import("./createDialogAction-2WHKUKWV.js");
|
|
13222
13222
|
return createDialogAction(args, thunkApi);
|
|
13223
13223
|
};
|
|
13224
13224
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13225
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13225
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-G6CHUK2D.js");
|
|
13226
13226
|
return createAgentAutomationAction(args, thunkApi);
|
|
13227
13227
|
};
|
|
13228
13228
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13229
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13229
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-FDFEHTQP.js");
|
|
13230
13230
|
return updateDialogTitleAction(args, thunkApi);
|
|
13231
13231
|
};
|
|
13232
13232
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -13246,7 +13246,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
13246
13246
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13247
13247
|
};
|
|
13248
13248
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13249
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13249
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-5OHXNVMH.js");
|
|
13250
13250
|
return handleSendMessageAction(args, thunkApi);
|
|
13251
13251
|
};
|
|
13252
13252
|
function clearDialogState() {
|
|
@@ -13259,7 +13259,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13259
13259
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13260
13260
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13261
13261
|
try {
|
|
13262
|
-
const { createDocState } = await import("./docStore-
|
|
13262
|
+
const { createDocState } = await import("./docStore-QD57XJ4K.js");
|
|
13263
13263
|
const pageKey = await createDocState(
|
|
13264
13264
|
{ slateData, title },
|
|
13265
13265
|
{ dispatch, getState }
|
|
@@ -18414,6 +18414,13 @@ var fetchUserSpaceMembershipsAction = async (userId, thunkAPI) => {
|
|
|
18414
18414
|
}
|
|
18415
18415
|
if (membership.sourceServer || membership.requiresRemoteSpaceVerification) {
|
|
18416
18416
|
if (localSpaceData && isTombstoneRecord(localSpaceData)) return null;
|
|
18417
|
+
if (membership.sourceServer && !membership.requiresRemoteSpaceVerification) {
|
|
18418
|
+
const { sourceServer: _ss, ...verifiedMembership } = membership;
|
|
18419
|
+
return {
|
|
18420
|
+
...verifiedMembership,
|
|
18421
|
+
spaceId: normalizedSpaceId
|
|
18422
|
+
};
|
|
18423
|
+
}
|
|
18417
18424
|
try {
|
|
18418
18425
|
const remoteSpaceServers = Array.from(
|
|
18419
18426
|
new Set(
|
|
@@ -18486,12 +18493,32 @@ var fetchUserSpaceMembershipsAction = async (userId, thunkAPI) => {
|
|
|
18486
18493
|
...activeMemberships
|
|
18487
18494
|
].map((membership) => normalizeSpaceId(membership.spaceId))
|
|
18488
18495
|
);
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
|
|
18492
|
-
|
|
18493
|
-
|
|
18494
|
-
|
|
18496
|
+
if (hasRemoteAuthority && hasSuccessfulRemoteFetch && !isLocalActor) {
|
|
18497
|
+
void recoverMembershipsFromContentSpaces({
|
|
18498
|
+
servers,
|
|
18499
|
+
token,
|
|
18500
|
+
userId,
|
|
18501
|
+
knownSpaceIds
|
|
18502
|
+
}).then((rawRecovered) => {
|
|
18503
|
+
const activeUserId = thunkAPI.getState()?.auth?.currentUser?.userId ?? null;
|
|
18504
|
+
if (activeUserId !== userId) return;
|
|
18505
|
+
if (rawRecovered.length === 0) return;
|
|
18506
|
+
const cleaned = rawRecovered.map((membership) => {
|
|
18507
|
+
const {
|
|
18508
|
+
sourceServer: _ss,
|
|
18509
|
+
requiresRemoteSpaceVerification: _rv,
|
|
18510
|
+
deviceLocal: _dl,
|
|
18511
|
+
...visible
|
|
18512
|
+
} = membership;
|
|
18513
|
+
return { ...visible, spaceId: normalizeSpaceId(membership.spaceId) };
|
|
18514
|
+
});
|
|
18515
|
+
thunkAPI.dispatch?.({
|
|
18516
|
+
type: "space/appendRecoveredMemberships",
|
|
18517
|
+
payload: cleaned
|
|
18518
|
+
});
|
|
18519
|
+
}).catch(() => {
|
|
18520
|
+
});
|
|
18521
|
+
}
|
|
18495
18522
|
const membershipMap = /* @__PURE__ */ new Map();
|
|
18496
18523
|
const preferAccountOnCollision = (existing, next) => {
|
|
18497
18524
|
if (!existing) return next;
|
|
@@ -18501,7 +18528,7 @@ var fetchUserSpaceMembershipsAction = async (userId, thunkAPI) => {
|
|
|
18501
18528
|
if (!existingLocal && nextLocal) return existing;
|
|
18502
18529
|
return next;
|
|
18503
18530
|
};
|
|
18504
|
-
[...activeMemberships
|
|
18531
|
+
[...activeMemberships].forEach((membership) => {
|
|
18505
18532
|
const normalizedSpaceId = normalizeSpaceId(membership.spaceId);
|
|
18506
18533
|
const {
|
|
18507
18534
|
sourceServer: _sourceServer,
|
|
@@ -19872,6 +19899,24 @@ var spaceSlice = createSliceWithThunks4({
|
|
|
19872
19899
|
state3.loading = false;
|
|
19873
19900
|
}
|
|
19874
19901
|
),
|
|
19902
|
+
/** 后台内容空间恢复完成后,把补漏的 membership 追加到列表。
|
|
19903
|
+
* recoverMembershipsFromContentSpaces 查"本地有内容但缺 membership 索引"的 space,
|
|
19904
|
+
* 是一致性兜底,不阻塞首屏。thunk 先返回 verify 后的列表,recover 完成后 dispatch 此 action。
|
|
19905
|
+
* 注意:thunk 端已做 actor 校验(账户切换后旧 recover 不 dispatch),且已剥离
|
|
19906
|
+
* sourceServer/requiresRemoteSpaceVerification/deviceLocal 等传输字段。 */
|
|
19907
|
+
appendRecoveredMemberships: create.reducer(
|
|
19908
|
+
(state3, action2) => {
|
|
19909
|
+
if (!action2.payload || action2.payload.length === 0) return;
|
|
19910
|
+
if (state3.memberSpaces === null) {
|
|
19911
|
+
state3.memberSpaces = dedupeMemberSpacesById(action2.payload);
|
|
19912
|
+
return;
|
|
19913
|
+
}
|
|
19914
|
+
state3.memberSpaces = dedupeMemberSpacesById([
|
|
19915
|
+
...state3.memberSpaces,
|
|
19916
|
+
...action2.payload
|
|
19917
|
+
]).sort((a, b) => toTimestampMs(b.joinedAt) - toTimestampMs(a.joinedAt));
|
|
19918
|
+
}
|
|
19919
|
+
),
|
|
19875
19920
|
/** 进入某个对话后清除其未读提示。
|
|
19876
19921
|
* 当前阶段只做"网页端切换不停止"的第一层体验:
|
|
19877
19922
|
* - 侧边栏能看到后台对话 done/failed 后有未读点
|
|
@@ -19942,7 +19987,8 @@ var {
|
|
|
19942
19987
|
resetSpace,
|
|
19943
19988
|
setViewMode,
|
|
19944
19989
|
toggleFavoritesCollapse,
|
|
19945
|
-
hydrateMemberSpacesFromLocal
|
|
19990
|
+
hydrateMemberSpacesFromLocal,
|
|
19991
|
+
appendRecoveredMemberships
|
|
19946
19992
|
} = spaceSlice.actions;
|
|
19947
19993
|
var selectSpaceState = (state3) => state3.space;
|
|
19948
19994
|
var selectCurrentSpaceId = createSelector(
|
|
@@ -20116,6 +20162,7 @@ export {
|
|
|
20116
20162
|
setViewMode,
|
|
20117
20163
|
toggleFavoritesCollapse,
|
|
20118
20164
|
hydrateMemberSpacesFromLocal,
|
|
20165
|
+
appendRecoveredMemberships,
|
|
20119
20166
|
selectCurrentSpaceId,
|
|
20120
20167
|
selectCurrentSpace,
|
|
20121
20168
|
selectAllMemberSpaces,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
4
4
|
import "./chunk-V2J635L5.js";
|
|
5
5
|
import "./chunk-MRC4Q34M.js";
|
|
6
6
|
import "./chunk-MTU75CZ2.js";
|
|
7
7
|
import "./chunk-CWMSB67P.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-J4ZTWTKV.js";
|
|
9
9
|
import "./chunk-V6VXDXGY.js";
|
|
10
10
|
import "./chunk-Z4NR32XR.js";
|
|
11
11
|
import "./chunk-M76ECQRD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FUMEXHAF.js";
|
|
5
5
|
import "./chunk-VC6OZXO5.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ZVNP5V7L.js";
|
|
7
7
|
import "./chunk-V2J635L5.js";
|
|
8
8
|
import "./chunk-MRC4Q34M.js";
|
|
9
9
|
import "./chunk-MTU75CZ2.js";
|
|
10
10
|
import "./chunk-CWMSB67P.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-J4ZTWTKV.js";
|
|
12
12
|
import "./chunk-V6VXDXGY.js";
|
|
13
13
|
import "./chunk-Z4NR32XR.js";
|
|
14
14
|
import "./chunk-M76ECQRD.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
addContentToSpace,
|
|
19
19
|
client_default,
|
|
20
20
|
selectCurrentSpaceId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
22
22
|
import "./chunk-V2J635L5.js";
|
|
23
23
|
import "./chunk-MRC4Q34M.js";
|
|
24
24
|
import "./chunk-MTU75CZ2.js";
|
|
25
25
|
import "./chunk-CWMSB67P.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-J4ZTWTKV.js";
|
|
27
27
|
import "./chunk-V6VXDXGY.js";
|
|
28
28
|
import "./chunk-Z4NR32XR.js";
|
|
29
29
|
import "./chunk-M76ECQRD.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
setPrimaryDialogAgent,
|
|
20
20
|
updateDialogTitle,
|
|
21
21
|
updateTokens
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
23
23
|
import "./chunk-V2J635L5.js";
|
|
24
24
|
import "./chunk-MRC4Q34M.js";
|
|
25
25
|
import "./chunk-MTU75CZ2.js";
|
|
26
26
|
import "./chunk-CWMSB67P.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-J4ZTWTKV.js";
|
|
28
28
|
import "./chunk-V6VXDXGY.js";
|
|
29
29
|
import "./chunk-Z4NR32XR.js";
|
|
30
30
|
import "./chunk-M76ECQRD.js";
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
updateTitleDoc,
|
|
25
25
|
useDocField,
|
|
26
26
|
useDocState
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-YJAWJCEI.js";
|
|
28
|
+
import "./chunk-ZVNP5V7L.js";
|
|
29
29
|
import "./chunk-V2J635L5.js";
|
|
30
30
|
import "./chunk-MRC4Q34M.js";
|
|
31
31
|
import "./chunk-MTU75CZ2.js";
|
|
32
32
|
import "./chunk-CWMSB67P.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-J4ZTWTKV.js";
|
|
34
34
|
import "./chunk-V6VXDXGY.js";
|
|
35
35
|
import "./chunk-Z4NR32XR.js";
|
|
36
36
|
import "./chunk-M76ECQRD.js";
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
messageStreamEnd,
|
|
3
3
|
prepareAndPersistUserMessage,
|
|
4
4
|
resolveHandleSendMessageContext
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
6
6
|
import "./chunk-V2J635L5.js";
|
|
7
7
|
import "./chunk-MRC4Q34M.js";
|
|
8
8
|
import "./chunk-MTU75CZ2.js";
|
|
9
9
|
import "./chunk-CWMSB67P.js";
|
|
10
10
|
import {
|
|
11
11
|
streamAgentChatTurn
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J4ZTWTKV.js";
|
|
13
13
|
import "./chunk-V6VXDXGY.js";
|
|
14
14
|
import "./chunk-Z4NR32XR.js";
|
|
15
15
|
import "./chunk-M76ECQRD.js";
|
|
@@ -93,7 +93,10 @@ var logQuickChatPerfStage = (startedAt, stage, details = {}) => {
|
|
|
93
93
|
};
|
|
94
94
|
var resolveBrowseContextPrefix = async (message) => {
|
|
95
95
|
try {
|
|
96
|
-
if (typeof
|
|
96
|
+
if (typeof window === "undefined" || typeof location === "undefined") return "";
|
|
97
|
+
if (typeof process !== "undefined" && (process.env?.NODE_ENV === "test" || process.env?.BUN_TEST)) return "";
|
|
98
|
+
const host = location.hostname;
|
|
99
|
+
if (host !== "127.0.0.1" && host !== "localhost") return "";
|
|
97
100
|
if (typeof fetch !== "function" || typeof AbortSignal?.timeout !== "function") return "";
|
|
98
101
|
const response = await fetch("/api/desktop/browse-context", {
|
|
99
102
|
method: "POST",
|
|
@@ -169,7 +172,8 @@ var handleSendMessageAction = async (args, { dispatch, getState, rejectWithValue
|
|
|
169
172
|
return;
|
|
170
173
|
}
|
|
171
174
|
const userInputText = typeof args.userInput === "string" ? args.userInput : "";
|
|
172
|
-
const
|
|
175
|
+
const isDesktopContext = typeof window !== "undefined" && typeof location !== "undefined" && (location.hostname === "127.0.0.1" || location.hostname === "localhost");
|
|
176
|
+
const browseContextPrefix = isDesktopContext ? await resolveBrowseContextPrefix(userInputText) : "";
|
|
173
177
|
const effectiveUserInput = browseContextPrefix ? `${browseContextPrefix}
|
|
174
178
|
|
|
175
179
|
${userInputText}` : args.userInput;
|
package/index.js
CHANGED
|
@@ -126,7 +126,7 @@ function createDaemonShortcutCommand(path, description, command2) {
|
|
|
126
126
|
// packages/cli/agentInternalCommandEntries.ts
|
|
127
127
|
function getAgentInternalCommandEntries() {
|
|
128
128
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
|
|
129
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
129
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-OV5KJJEJ.js");
|
|
130
130
|
return runAgentRunCommand(args2, {
|
|
131
131
|
env: ctx.env,
|
|
132
132
|
scriptDir: ctx.scriptDir,
|
|
@@ -142,7 +142,7 @@ function getAgentInternalCommandEntries() {
|
|
|
142
142
|
return runAgentListCommand(args2, deps);
|
|
143
143
|
}),
|
|
144
144
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args2, deps) => {
|
|
145
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
145
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-HU7Z6AIF.js");
|
|
146
146
|
return runAgentCreateCommand(args2, deps);
|
|
147
147
|
}),
|
|
148
148
|
createEnvCommand(["agent", "pull"], "Cache an agent for local runs", async (args2, deps) => {
|
|
@@ -150,7 +150,7 @@ function getAgentInternalCommandEntries() {
|
|
|
150
150
|
return runAgentPullCommand(args2, deps);
|
|
151
151
|
}),
|
|
152
152
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args2, deps) => {
|
|
153
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
153
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-HU7Z6AIF.js");
|
|
154
154
|
return runAgentReadCommand(args2, deps);
|
|
155
155
|
}),
|
|
156
156
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -179,26 +179,26 @@ function getAgentInternalCommandEntries() {
|
|
|
179
179
|
return runSetupOfflineMarxistsAgentCommand(args2, deps);
|
|
180
180
|
}),
|
|
181
181
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
|
|
182
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
182
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-HU7Z6AIF.js");
|
|
183
183
|
return runAgentUpdateCommand(args2, deps);
|
|
184
184
|
}),
|
|
185
185
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
|
|
186
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
186
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-QEDVGC4R.js");
|
|
187
187
|
return runAgentEmailProvisionCommand(args2, deps);
|
|
188
188
|
}),
|
|
189
189
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
|
|
190
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
190
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-QEDVGC4R.js");
|
|
191
191
|
return runAgentEmailBindCommand(args2, deps);
|
|
192
192
|
}),
|
|
193
193
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
|
|
194
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
194
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-QEDVGC4R.js");
|
|
195
195
|
return runAgentEmailTransferCommand(args2, deps);
|
|
196
196
|
}),
|
|
197
197
|
createEnvCommand(
|
|
198
198
|
["agent", "email", "create-and-provision"],
|
|
199
199
|
"Create an agent and provision its controlled inbox",
|
|
200
200
|
async (args2, deps) => {
|
|
201
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
201
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-QEDVGC4R.js");
|
|
202
202
|
return runAgentEmailCreateAndProvisionCommand(args2, deps);
|
|
203
203
|
}
|
|
204
204
|
),
|
|
@@ -219,15 +219,15 @@ function getAgentInternalCommandEntries() {
|
|
|
219
219
|
return runAgentRevokeGrantCommand(args2, deps);
|
|
220
220
|
}),
|
|
221
221
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
|
|
222
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
222
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-TU6R63NY.js");
|
|
223
223
|
return runAgentBindCurrentCommand(args2, deps);
|
|
224
224
|
}),
|
|
225
225
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
|
|
226
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
226
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-TU6R63NY.js");
|
|
227
227
|
return runAgentSmokeCurrentCommand(args2, deps);
|
|
228
228
|
}),
|
|
229
229
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
|
|
230
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
230
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-TU6R63NY.js");
|
|
231
231
|
return runAgentRuntimeDoctorCommand(args2, deps);
|
|
232
232
|
}),
|
|
233
233
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -382,15 +382,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
382
382
|
return runWhoamiCommand({ args: args2, env: ctx.env });
|
|
383
383
|
}),
|
|
384
384
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
|
|
385
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
385
|
+
const { runMachineConnectCommand } = await import("./machineCommands-CXMIAUIS.js");
|
|
386
386
|
return runMachineConnectCommand(args2, deps);
|
|
387
387
|
}),
|
|
388
388
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
|
|
389
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
389
|
+
const { runMachineConnectCommand } = await import("./machineCommands-CXMIAUIS.js");
|
|
390
390
|
return runMachineConnectCommand(args2, deps);
|
|
391
391
|
}),
|
|
392
392
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
|
|
393
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
393
|
+
const { runMachineStatusCommand } = await import("./machineCommands-CXMIAUIS.js");
|
|
394
394
|
return runMachineStatusCommand(args2, deps);
|
|
395
395
|
}),
|
|
396
396
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
|
|
@@ -765,7 +765,7 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
765
765
|
return proc.exited;
|
|
766
766
|
}
|
|
767
767
|
async function launchTuiWorkspace(args2) {
|
|
768
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
768
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-NBVFYLFX.js");
|
|
769
769
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-2D65LKWM.js");
|
|
770
770
|
return startTuiWorkspace({
|
|
771
771
|
...args2,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G5HNXQBU.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
detectMachineInfo
|
|
13
13
|
} from "./chunk-6HYVJV7B.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-OJTVDHOJ.js";
|
|
15
15
|
import "./chunk-EHLHSX7R.js";
|
|
16
16
|
import "./chunk-CMKUBIGW.js";
|
|
17
17
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -19,9 +19,9 @@ import "./chunk-TQCONXQ3.js";
|
|
|
19
19
|
import "./chunk-VHBWHNVT.js";
|
|
20
20
|
import "./chunk-T3X232L6.js";
|
|
21
21
|
import "./chunk-ATNTHIZI.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-CGN3RCBB.js";
|
|
23
23
|
import "./chunk-OIMX7MM4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-3TNFSPK4.js";
|
|
25
25
|
import {
|
|
26
26
|
CORE_DRAIN_REASON
|
|
27
27
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -32,16 +32,16 @@ import "./chunk-3LY4F7SV.js";
|
|
|
32
32
|
import "./chunk-VP4WJWKW.js";
|
|
33
33
|
import "./chunk-63W5N6P3.js";
|
|
34
34
|
import "./chunk-VF4K2QE6.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-YJAWJCEI.js";
|
|
36
|
+
import "./chunk-FUMEXHAF.js";
|
|
37
37
|
import "./chunk-VC6OZXO5.js";
|
|
38
38
|
import "./chunk-OWOHNGCN.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-ZVNP5V7L.js";
|
|
40
40
|
import "./chunk-V2J635L5.js";
|
|
41
41
|
import "./chunk-MRC4Q34M.js";
|
|
42
42
|
import "./chunk-MTU75CZ2.js";
|
|
43
43
|
import "./chunk-CWMSB67P.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-J4ZTWTKV.js";
|
|
45
45
|
import "./chunk-V6VXDXGY.js";
|
|
46
46
|
import "./chunk-Z4NR32XR.js";
|
|
47
47
|
import "./chunk-M76ECQRD.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-G5HNXQBU.js";
|
|
15
|
+
import "./chunk-OJTVDHOJ.js";
|
|
16
16
|
import "./chunk-EHLHSX7R.js";
|
|
17
17
|
import "./chunk-CMKUBIGW.js";
|
|
18
18
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -20,9 +20,9 @@ import "./chunk-TQCONXQ3.js";
|
|
|
20
20
|
import "./chunk-VHBWHNVT.js";
|
|
21
21
|
import "./chunk-T3X232L6.js";
|
|
22
22
|
import "./chunk-ATNTHIZI.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-CGN3RCBB.js";
|
|
24
24
|
import "./chunk-OIMX7MM4.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-3TNFSPK4.js";
|
|
26
26
|
import "./chunk-RQSOAMPJ.js";
|
|
27
27
|
import "./chunk-OOIN7HSO.js";
|
|
28
28
|
import "./chunk-KQHGZWSV.js";
|
|
@@ -31,16 +31,16 @@ import "./chunk-3LY4F7SV.js";
|
|
|
31
31
|
import "./chunk-VP4WJWKW.js";
|
|
32
32
|
import "./chunk-63W5N6P3.js";
|
|
33
33
|
import "./chunk-VF4K2QE6.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YJAWJCEI.js";
|
|
35
|
+
import "./chunk-FUMEXHAF.js";
|
|
36
36
|
import "./chunk-VC6OZXO5.js";
|
|
37
37
|
import "./chunk-OWOHNGCN.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-ZVNP5V7L.js";
|
|
39
39
|
import "./chunk-V2J635L5.js";
|
|
40
40
|
import "./chunk-MRC4Q34M.js";
|
|
41
41
|
import "./chunk-MTU75CZ2.js";
|
|
42
42
|
import "./chunk-CWMSB67P.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-J4ZTWTKV.js";
|
|
44
44
|
import "./chunk-V6VXDXGY.js";
|
|
45
45
|
import "./chunk-Z4NR32XR.js";
|
|
46
46
|
import "./chunk-M76ECQRD.js";
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
visibleWidth,
|
|
58
58
|
wrapTextToLines,
|
|
59
59
|
wrapTranscriptLine
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-VWQGVOXQ.js";
|
|
61
61
|
import "./chunk-6HYVJV7B.js";
|
|
62
62
|
import {
|
|
63
63
|
listFavoriteAgentIdsAcrossServers,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
parseCliLocale,
|
|
77
77
|
setCliLocale,
|
|
78
78
|
t
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-OJTVDHOJ.js";
|
|
80
80
|
import "./chunk-EHLHSX7R.js";
|
|
81
81
|
import "./chunk-CMKUBIGW.js";
|
|
82
82
|
import "./chunk-JBTJAPUF.js";
|
|
@@ -98,11 +98,11 @@ import "./chunk-ATNTHIZI.js";
|
|
|
98
98
|
import "./chunk-JEXVIMYZ.js";
|
|
99
99
|
import {
|
|
100
100
|
prepareTools
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-CGN3RCBB.js";
|
|
102
102
|
import "./chunk-OIMX7MM4.js";
|
|
103
103
|
import {
|
|
104
104
|
expandEnabledPacks
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-3TNFSPK4.js";
|
|
106
106
|
import "./chunk-RQSOAMPJ.js";
|
|
107
107
|
import "./chunk-OOIN7HSO.js";
|
|
108
108
|
import "./chunk-KQHGZWSV.js";
|
|
@@ -111,20 +111,20 @@ import "./chunk-3LY4F7SV.js";
|
|
|
111
111
|
import "./chunk-VP4WJWKW.js";
|
|
112
112
|
import "./chunk-63W5N6P3.js";
|
|
113
113
|
import "./chunk-VF4K2QE6.js";
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-YJAWJCEI.js";
|
|
115
|
+
import "./chunk-FUMEXHAF.js";
|
|
116
116
|
import "./chunk-VC6OZXO5.js";
|
|
117
117
|
import "./chunk-OWOHNGCN.js";
|
|
118
118
|
import {
|
|
119
119
|
extractReferenceKeysFromMessage
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
121
121
|
import {
|
|
122
122
|
buildBuiltinSummaryContent
|
|
123
123
|
} from "./chunk-V2J635L5.js";
|
|
124
124
|
import "./chunk-MRC4Q34M.js";
|
|
125
125
|
import "./chunk-MTU75CZ2.js";
|
|
126
126
|
import "./chunk-CWMSB67P.js";
|
|
127
|
-
import "./chunk-
|
|
127
|
+
import "./chunk-J4ZTWTKV.js";
|
|
128
128
|
import "./chunk-V6VXDXGY.js";
|
|
129
129
|
import "./chunk-Z4NR32XR.js";
|
|
130
130
|
import "./chunk-M76ECQRD.js";
|
|
@@ -4282,6 +4282,10 @@ function createFixedInput(output, config) {
|
|
|
4282
4282
|
}
|
|
4283
4283
|
const rule = colorEnabled ? `\x1B[2m${themeColorSequence("chrome")}${"\u2500".repeat(cols)}\x1B[0m` : "\u2500".repeat(cols);
|
|
4284
4284
|
sections.push(rule);
|
|
4285
|
+
const titleLine = config.getTitleLine?.();
|
|
4286
|
+
if (titleLine) {
|
|
4287
|
+
sections.push(fitAnsiLine(titleLine.replace(/\r?\n/g, " "), cols));
|
|
4288
|
+
}
|
|
4285
4289
|
sections.push(fitAnsiLine(config.getStatusLine(), cols));
|
|
4286
4290
|
const queueLines = config.getQueueLines?.() ?? [];
|
|
4287
4291
|
for (const line of queueLines) {
|
|
@@ -4336,7 +4340,7 @@ function createFixedInput(output, config) {
|
|
|
4336
4340
|
}
|
|
4337
4341
|
const text = sections.join("\n");
|
|
4338
4342
|
const lines = sections.length;
|
|
4339
|
-
const headerRows = (completions.length > 0 ? 1 : 0) + 2 + activityLines.length + queueLines.length;
|
|
4343
|
+
const headerRows = (completions.length > 0 ? 1 : 0) + 2 + (titleLine ? 1 : 0) + activityLines.length + queueLines.length;
|
|
4340
4344
|
return { text, lines, cursorCol, cursorRow: headerRows + cursorRow };
|
|
4341
4345
|
};
|
|
4342
4346
|
const repaintAt = (buffer, cursorPos) => {
|
|
@@ -5462,6 +5466,16 @@ async function startTuiWorkspace(options) {
|
|
|
5462
5466
|
}
|
|
5463
5467
|
}
|
|
5464
5468
|
clearCollapsedPasteStore(pasteStore);
|
|
5469
|
+
state = {
|
|
5470
|
+
...state,
|
|
5471
|
+
turnTokens: void 0,
|
|
5472
|
+
estimatedContextTokens: estimateDefaultCliContextTokens({
|
|
5473
|
+
cwd: state.cwd,
|
|
5474
|
+
agentKey: state.agentKey,
|
|
5475
|
+
agentName: state.agentKey === DEFAULT_TUI_AGENT_KEY && (options.env ?? process.env).NOLO_AUTO_ROUTE !== "0" ? "DeepSeek V4 Flash" : state.agentName,
|
|
5476
|
+
model: state.agentKey === DEFAULT_TUI_AGENT_KEY && (options.env ?? process.env).NOLO_AUTO_ROUTE !== "0" ? "deepseek-v4-flash" : void 0
|
|
5477
|
+
})
|
|
5478
|
+
};
|
|
5465
5479
|
history.turns.length = 0;
|
|
5466
5480
|
history.currentRole = null;
|
|
5467
5481
|
history.currentContent = "";
|
|
@@ -5777,6 +5791,10 @@ ${err.message}` : ""}`
|
|
|
5777
5791
|
let done = false;
|
|
5778
5792
|
let resolveDone = null;
|
|
5779
5793
|
fixedInput = createFixedInput(output, {
|
|
5794
|
+
getTitleLine: () => {
|
|
5795
|
+
const title = state.dialogLabel?.trim();
|
|
5796
|
+
return title ? themeText(`\u{1F4AC} ${title}`, "accent", resolveCliColorEnabled()) : null;
|
|
5797
|
+
},
|
|
5780
5798
|
getStatusLine: () => {
|
|
5781
5799
|
let base = renderStatusLine(state);
|
|
5782
5800
|
if (chatQueueBinding && chatQueueBinding.queueLength() > 0) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KI6SJNRP.js";
|
|
4
4
|
import {
|
|
5
5
|
generateRequestBody,
|
|
6
6
|
mergeReferences,
|
|
7
7
|
performFetchRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2H5WLDK5.js";
|
|
9
9
|
import "./chunk-OIMX7MM4.js";
|
|
10
10
|
import {
|
|
11
11
|
findToolExecutor,
|
|
12
12
|
getToolResultErrorData
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3TNFSPK4.js";
|
|
14
14
|
import "./chunk-RQSOAMPJ.js";
|
|
15
15
|
import "./chunk-OOIN7HSO.js";
|
|
16
16
|
import "./chunk-KQHGZWSV.js";
|
|
@@ -19,17 +19,17 @@ import "./chunk-3LY4F7SV.js";
|
|
|
19
19
|
import "./chunk-VP4WJWKW.js";
|
|
20
20
|
import "./chunk-63W5N6P3.js";
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YJAWJCEI.js";
|
|
23
|
+
import "./chunk-FUMEXHAF.js";
|
|
24
24
|
import "./chunk-VC6OZXO5.js";
|
|
25
25
|
import {
|
|
26
26
|
updateTokensAction
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZVNP5V7L.js";
|
|
28
28
|
import "./chunk-V2J635L5.js";
|
|
29
29
|
import "./chunk-MRC4Q34M.js";
|
|
30
30
|
import "./chunk-MTU75CZ2.js";
|
|
31
31
|
import "./chunk-CWMSB67P.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-J4ZTWTKV.js";
|
|
33
33
|
import "./chunk-V6VXDXGY.js";
|
|
34
34
|
import "./chunk-Z4NR32XR.js";
|
|
35
35
|
import "./chunk-M76ECQRD.js";
|