nolo-cli 0.16.0-alpha.17 → 0.16.0-alpha.19
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-GP2DXECM.js → _executeModel-YY6LVJXJ.js} +24 -24
- package/{action-TK62YXTY.js → action-LT7BRFLK.js} +7 -7
- package/{addContentAction-IEEBATAA.js → addContentAction-PL3KKBDH.js} +6 -6
- package/{addDialogAgentAction-XUZNC36X.js → addDialogAgentAction-FCMSKYAF.js} +5 -5
- package/{agentDeleteCommand-6C77LXAA.js → agentDeleteCommand-TJ2EAYDA.js} +13 -13
- package/{agentEmailCommands-7KZPAGIW.js → agentEmailCommands-UKEGNW25.js} +28 -28
- package/{agentListCommands-EFFASIR2.js → agentListCommands-WD5XYVGK.js} +14 -14
- package/{agentMachineCommands-XHLRGCLP.js → agentMachineCommands-OHZ3HKOV.js} +13 -13
- package/{agentRecordCommands-ITBT7MPU.js → agentRecordCommands-N2JQMKS4.js} +28 -28
- package/{agentRunCommand-HEBSX6ER.js → agentRunCommand-P2ECE6UJ.js} +28 -28
- package/{agentRunControl-YVLQ4BW5.js → agentRunControl-P75VPTGS.js} +1 -1
- package/{agentRuntimeLocal-KV6MQJQS.js → agentRuntimeLocal-K2J7IS6O.js} +10 -10
- package/{agentSlice-HOLDB2UY.js → agentSlice-OOLSXBHE.js} +6 -6
- package/{appDeleteCommands-ROPKN6PL.js → appDeleteCommands-X7YGULGZ.js} +14 -14
- package/{appDeployCommands-65E4ARQN.js → appDeployCommands-IMNPBUN7.js} +14 -14
- package/{appDeployStatusCommands-RFWMQDSJ.js → appDeployStatusCommands-2KFZUEET.js} +14 -14
- package/{appGetCommands-LDO2HNAL.js → appGetCommands-AYG44S7G.js} +14 -14
- package/{appListCommands-S4MBG4KD.js → appListCommands-Z7CLYPLH.js} +14 -14
- package/{chunk-PH7SXF5R.js → chunk-2M54XJFV.js} +24 -24
- package/{chunk-XPC5C7BK.js → chunk-3ND52WIL.js} +2 -2
- package/{chunk-JQOWVDDX.js → chunk-3PGT7DEK.js} +3 -3
- package/{chunk-6N4KODMN.js → chunk-4T5F7YZQ.js} +1 -1
- package/{chunk-NJYEXLKX.js → chunk-5ICZUVFN.js} +2 -2
- package/{chunk-YZ2PZFC6.js → chunk-7BUYEZ6U.js} +1 -1
- package/{chunk-N77EBDJJ.js → chunk-A7QNCVO5.js} +9 -2
- package/{chunk-Y3GNPBAB.js → chunk-B26VDWID.js} +2 -8
- package/{chunk-HETVWFFQ.js → chunk-BDSHV5HO.js} +24 -24
- package/{chunk-V3A3PXQQ.js → chunk-BLQ3U7UK.js} +1 -1
- package/{chunk-N3IKVYLL.js → chunk-CGSHUOC7.js} +1 -1
- package/{chunk-XV5I4HHL.js → chunk-DKZFOK24.js} +1 -1
- package/chunk-DL6EPNIK.js +50 -0
- package/{chunk-EWLAMUG5.js → chunk-EGPCU42M.js} +4 -4
- package/{chunk-27MGYWLZ.js → chunk-ELT65PZW.js} +2 -2
- package/{chunk-WWWIRXLT.js → chunk-IRQJSVET.js} +12 -14
- package/{chunk-CIF5XTPN.js → chunk-JBWVSKBS.js} +28 -30
- package/{chunk-DS2YYH6W.js → chunk-JIDA7LBE.js} +3 -3
- package/{chunk-WVQXRCCZ.js → chunk-JLA4FXYC.js} +1 -1
- package/{chunk-KF27FHVT.js → chunk-KO4PXGVN.js} +1 -1
- package/{chunk-XGJRT3IK.js → chunk-MVQ4TBSD.js} +1 -1
- package/{chunk-IG3SA64O.js → chunk-OOKISU7J.js} +2 -2
- package/{chunk-MT2DOPXQ.js → chunk-OZPVJZBX.js} +1 -1
- package/{chunk-DXOUTEQC.js → chunk-QCJITMYO.js} +4 -2
- package/{chunk-LD6DKWMF.js → chunk-QSLNKTUG.js} +11 -11
- package/{chunk-OOSFSFMA.js → chunk-R5V5G73M.js} +2 -0
- package/{chunk-L2DKNKL4.js → chunk-RVOUXDFU.js} +4 -4
- package/{chunk-3J6QER3H.js → chunk-RYFZ55YC.js} +5 -5
- package/{chunk-JTINRTBT.js → chunk-SKDNBYZK.js} +2 -2
- package/{chunk-HRLDQJW7.js → chunk-SQNQOXQ6.js} +34 -16
- package/{chunk-E5CLOOG5.js → chunk-TSIYZBTH.js} +4 -1
- package/{chunk-JKUL77KQ.js → chunk-UGUW3FHG.js} +3 -3
- package/{runOverlayPresentation-BHD5POEM.js → chunk-V5R4NZP2.js} +3 -4
- package/{chunk-ETXKHE7J.js → chunk-X3AHTP6B.js} +2 -2
- package/{chunk-YPAO6HUT.js → chunk-XHG22OEX.js} +4 -4
- package/{chunk-DVRHHFEA.js → chunk-XMLRJUU5.js} +1 -1
- package/{chunk-NLQBLZUO.js → chunk-XRZJGPFI.js} +6 -6
- package/{chunk-VE7PIZFT.js → chunk-XU6XCPWB.js} +1 -1
- package/{chunk-LFTQYP3K.js → chunk-XYXJ4JRT.js} +8 -4
- package/{chunk-JJPANCH2.js → chunk-YEFSRF54.js} +2 -2
- package/{codingSkills-3RK4CIL2.js → codingSkills-36KN5NQT.js} +1 -1
- package/{createAgentAutomationAction-63XOK7PE.js → createAgentAutomationAction-EL5ORU35.js} +11 -11
- package/{createDialogAction-NBFEO4SU.js → createDialogAction-DKED4DHE.js} +12 -12
- package/{createPageAction-JYVUSH57.js → createPageAction-BYW4YP54.js} +11 -11
- package/{dbSlice-CJJKYYXK.js → dbSlice-CGSRFJN3.js} +5 -5
- package/{deleteFile-WPWVZE4B.js → deleteFile-WDZ3VM7B.js} +3 -3
- package/{dialogCommands-JO7YCVND.js → dialogCommands-J7C6MB3Q.js} +14 -14
- package/{dialogSlice-6SOMUMGM.js → dialogSlice-RJCHTUIG.js} +11 -11
- package/{docCreateCommands-H7KQ345X.js → docCreateCommands-Y7OSXNB6.js} +13 -13
- package/{docDeleteCommands-OSEFFFJ5.js → docDeleteCommands-ALZGQRCE.js} +14 -14
- package/{docReadCommands-7A5PGQ7J.js → docReadCommands-4BDDESGT.js} +13 -13
- package/{docStore-K2SEQBBX.js → docStore-QWYVY7SV.js} +12 -12
- package/{docUpdateCommands-3COEELBB.js → docUpdateCommands-LU2ZM2VE.js} +13 -13
- package/{handleSendMessageAction-L6NJXNIP.js → handleSendMessageAction-CUZL72WD.js} +11 -11
- package/index.js +56 -56
- package/{machineCommands-DGDX3GHH.js → machineCommands-QMODXRTA.js} +27 -27
- package/{machineWsRunDispatch-ZV6BHKXA.js → machineWsRunDispatch-UPWS4PZD.js} +27 -27
- package/package.json +1 -1
- package/{queryRunOverlay-KQDJBH32.js → queryRunOverlay-O4LOMMPO.js} +10 -52
- package/{read-CN3TNXIP.js → read-3FMPZPER.js} +3 -3
- package/{readDocTool-WF3675ED.js → readDocTool-VSYHKK3V.js} +1 -1
- package/{readlineWorkspace-BUSQQXPY.js → readlineWorkspace-ZDN3CREA.js} +106 -40
- package/{removeDialogAgentAction-XRTUVGAN.js → removeDialogAgentAction-OAGA2G3U.js} +7 -7
- package/{runAgentClientLoop-2YPEUG3Q.js → runAgentClientLoop-XKFPXIZC.js} +21 -21
- package/runOverlayPresentation-ZO4VCWEU.js +11 -0
- package/{setDialogExtraReferencesAction-WNZINFOX.js → setDialogExtraReferencesAction-JZEXA5SL.js} +6 -6
- package/{setPrimaryDialogAgentAction-ECVV6DJ3.js → setPrimaryDialogAgentAction-4ZUQQKDG.js} +7 -7
- package/{settingSlice-UVDEFVMQ.js → settingSlice-7MNKHZ6R.js} +6 -6
- package/{spaceCommands-XPHOVJTB.js → spaceCommands-UG4QHSHD.js} +13 -13
- package/{spaceSlice-EGOJICFM.js → spaceSlice-LR2XC33A.js} +11 -11
- package/{streamAgentChatTurn-LAFUD4KS.js → streamAgentChatTurn-5UOO7W6S.js} +26 -26
- package/{tableCommands-3P7MJ3PF.js → tableCommands-BEQAGE4I.js} +1 -1
- package/{tools-O6DVCZ3R.js → tools-VHE5VME5.js} +19 -19
- package/{updateDialogTitleAction-DVQFOG64.js → updateDialogTitleAction-OZZQ7SB2.js} +11 -11
|
@@ -11,9 +11,10 @@ import {
|
|
|
11
11
|
getReadableCliDb
|
|
12
12
|
} from "./chunk-WFHXMLHZ.js";
|
|
13
13
|
import {
|
|
14
|
+
normalizeAgentHandle,
|
|
14
15
|
readDbRecord,
|
|
15
16
|
resolveAgentRecordFromHybridStore
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-A7QNCVO5.js";
|
|
17
18
|
import {
|
|
18
19
|
agentRunCardLabels,
|
|
19
20
|
createCliCallAgentToolExecutor,
|
|
@@ -24,10 +25,7 @@ import {
|
|
|
24
25
|
parseAgentRunEvent,
|
|
25
26
|
t,
|
|
26
27
|
toolLabel
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
normalizeAgentHandle
|
|
30
|
-
} from "./chunk-Y3GNPBAB.js";
|
|
28
|
+
} from "./chunk-JBWVSKBS.js";
|
|
31
29
|
import {
|
|
32
30
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
33
31
|
isLocalCliAgentKey
|
|
@@ -41,7 +39,7 @@ import {
|
|
|
41
39
|
} from "./chunk-6HYVJV7B.js";
|
|
42
40
|
import {
|
|
43
41
|
formatAgentListCard
|
|
44
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2M54XJFV.js";
|
|
45
43
|
import {
|
|
46
44
|
isGatewayHttpStatus
|
|
47
45
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -53,12 +51,12 @@ import {
|
|
|
53
51
|
chooseMemoryOwners,
|
|
54
52
|
loadMemoryCandidatesFromDb,
|
|
55
53
|
resolveAgentMemoryPolicy
|
|
56
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XYXJ4JRT.js";
|
|
57
55
|
import {
|
|
58
56
|
API_REPORTED_COST_MULTIPLIER,
|
|
59
57
|
normalizeUsage,
|
|
60
58
|
parseUiAskChoiceContent
|
|
61
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BDSHV5HO.js";
|
|
62
60
|
import {
|
|
63
61
|
buildSkillDiscoveryContextBlock
|
|
64
62
|
} from "./chunk-7OBMZCRD.js";
|
|
@@ -78,7 +76,7 @@ import {
|
|
|
78
76
|
LOCAL_TURN_ABORTED_CODE,
|
|
79
77
|
readActionGate,
|
|
80
78
|
readCommandActionGatePayload
|
|
81
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-QCJITMYO.js";
|
|
82
80
|
import {
|
|
83
81
|
createThinkParserState,
|
|
84
82
|
flushThinkParser,
|
|
@@ -91,7 +89,7 @@ import {
|
|
|
91
89
|
import {
|
|
92
90
|
DEFAULT_CONTEXT_WINDOW,
|
|
93
91
|
getModelContextWindow
|
|
94
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-EGPCU42M.js";
|
|
95
93
|
import {
|
|
96
94
|
clipCompactText
|
|
97
95
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -112,7 +110,7 @@ import {
|
|
|
112
110
|
createRunActivityTracker,
|
|
113
111
|
finalizeRunRecord,
|
|
114
112
|
spawnLocalBackgroundRun
|
|
115
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-TSIYZBTH.js";
|
|
116
114
|
import {
|
|
117
115
|
formatFinishedRunCard,
|
|
118
116
|
formatListRunsCard,
|
|
@@ -146,7 +144,7 @@ import {
|
|
|
146
144
|
BUILTIN_NOLO_AGENT_KEY,
|
|
147
145
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
148
146
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
|
|
149
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-3ND52WIL.js";
|
|
150
148
|
import {
|
|
151
149
|
asTrimmedString
|
|
152
150
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -3520,7 +3518,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3520
3518
|
// packages/cli/client/agentRun.ts
|
|
3521
3519
|
import { ulid } from "ulid";
|
|
3522
3520
|
async function loadRunLocalAgentTurn() {
|
|
3523
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3521
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-K2J7IS6O.js");
|
|
3524
3522
|
return runLocalAgentTurn;
|
|
3525
3523
|
}
|
|
3526
3524
|
async function resolveCurrentMachineId(options) {
|
|
@@ -3960,7 +3958,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
3960
3958
|
} : void 0;
|
|
3961
3959
|
const currentDialogId = options.continueDialogId ?? ulid();
|
|
3962
3960
|
const runChildTurn = async (input) => {
|
|
3963
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3961
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-K2J7IS6O.js");
|
|
3964
3962
|
return runLocalAgentTurn(input);
|
|
3965
3963
|
};
|
|
3966
3964
|
const createFreshChildBaseAdapter = () => {
|
|
@@ -6,9 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-UB4RYYNQ.js";
|
|
7
7
|
import {
|
|
8
8
|
buildLocalAgentLookupKeys,
|
|
9
|
-
normalizeAgentHandle,
|
|
10
9
|
shouldReadAgentKeyRemotely
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-B26VDWID.js";
|
|
12
11
|
import {
|
|
13
12
|
LOCAL_CODEX_AGENT_ID,
|
|
14
13
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -17,11 +16,11 @@ import {
|
|
|
17
16
|
} from "./chunk-VHBWHNVT.js";
|
|
18
17
|
import {
|
|
19
18
|
inferCaptureIntent
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MVQ4TBSD.js";
|
|
21
20
|
import {
|
|
22
21
|
inlineImageUrlsForCustomProvider,
|
|
23
22
|
prepareTools
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OZPVJZBX.js";
|
|
25
24
|
import {
|
|
26
25
|
getAntigravityUserAgent,
|
|
27
26
|
isAntigravityOAuthAgent,
|
|
@@ -42,7 +41,7 @@ import {
|
|
|
42
41
|
readXhsProfileFunctionSchema,
|
|
43
42
|
rememberMemoryFunctionSchema,
|
|
44
43
|
resolveEffectiveEnabledPacks
|
|
45
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2M54XJFV.js";
|
|
46
45
|
import {
|
|
47
46
|
createDrainExhaustedResponse,
|
|
48
47
|
isCoreDrainingBody,
|
|
@@ -57,13 +56,13 @@ import {
|
|
|
57
56
|
} from "./chunk-WJRJDX2W.js";
|
|
58
57
|
import {
|
|
59
58
|
prepareTokenUsageData
|
|
60
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BDSHV5HO.js";
|
|
61
60
|
import {
|
|
62
61
|
BUILTIN_TITLE_LLM_CONFIG
|
|
63
62
|
} from "./chunk-XOIF2TNF.js";
|
|
64
63
|
import {
|
|
65
64
|
fetchServerSyncedCredential
|
|
66
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-RYFZ55YC.js";
|
|
67
66
|
import {
|
|
68
67
|
buildAgentRuntimeDialogWritePlan,
|
|
69
68
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -77,7 +76,7 @@ import {
|
|
|
77
76
|
parseSseDataLineObject,
|
|
78
77
|
readOpenAiCompatibleSseCompletion,
|
|
79
78
|
resolveOpenAiCompatibleProviderConfig
|
|
80
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-YEFSRF54.js";
|
|
81
80
|
import {
|
|
82
81
|
buildPlatformChatCompletionRequest,
|
|
83
82
|
canUsePlatformChatProvider,
|
|
@@ -92,7 +91,7 @@ import {
|
|
|
92
91
|
} from "./chunk-OIQPORYI.js";
|
|
93
92
|
import {
|
|
94
93
|
summarizeToolArguments
|
|
95
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-QCJITMYO.js";
|
|
96
95
|
import {
|
|
97
96
|
convertMessagesToResponsesInput,
|
|
98
97
|
toResponsesTools
|
|
@@ -106,7 +105,7 @@ import {
|
|
|
106
105
|
buildNoloWorkspaceOpenAiTools,
|
|
107
106
|
parseNoloWorkspaceToolArguments,
|
|
108
107
|
resolveRuntimeToolSurfaceForAgent
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-DKZFOK24.js";
|
|
110
109
|
import {
|
|
111
110
|
clipCompactText
|
|
112
111
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -141,7 +140,7 @@ import {
|
|
|
141
140
|
gcRunRecords,
|
|
142
141
|
queryRunRecords,
|
|
143
142
|
spawnLocalBackgroundRun
|
|
144
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-TSIYZBTH.js";
|
|
145
144
|
import {
|
|
146
145
|
TASK_PREVIEW_MAX,
|
|
147
146
|
formatListRunsCard,
|
|
@@ -188,7 +187,7 @@ import {
|
|
|
188
187
|
PUBLIC_DEEPSEEK_V4_PRO_AGENT_KEY,
|
|
189
188
|
PUBLIC_GLM_52_AGENT_KEY,
|
|
190
189
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
|
|
191
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-3ND52WIL.js";
|
|
192
191
|
import {
|
|
193
192
|
asTrimmedString
|
|
194
193
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -1797,23 +1796,6 @@ async function readAgentFromStore(args) {
|
|
|
1797
1796
|
if (!record || typeof record !== "object") continue;
|
|
1798
1797
|
return resolveAgentRuntimeConfigFromRecord(key, record);
|
|
1799
1798
|
}
|
|
1800
|
-
const normalizedRef = normalizeAgentHandle(args.agentRef);
|
|
1801
|
-
if (!normalizedRef) {
|
|
1802
|
-
return resolveBuiltinPlatformAgentConfig(args.agentRef);
|
|
1803
|
-
}
|
|
1804
|
-
try {
|
|
1805
|
-
const iterator = args.store.iterator({
|
|
1806
|
-
gte: "agent-",
|
|
1807
|
-
lte: "agent-\uFFFF"
|
|
1808
|
-
});
|
|
1809
|
-
for await (const [key, record] of iterator) {
|
|
1810
|
-
if (!record || typeof record !== "object") continue;
|
|
1811
|
-
const handle = normalizeAgentHandle(record.handle);
|
|
1812
|
-
if (handle !== normalizedRef) continue;
|
|
1813
|
-
return resolveAgentRuntimeConfigFromRecord(key, record);
|
|
1814
|
-
}
|
|
1815
|
-
} catch {
|
|
1816
|
-
}
|
|
1817
1799
|
return resolveBuiltinPlatformAgentConfig(args.agentRef);
|
|
1818
1800
|
}
|
|
1819
1801
|
async function readDialogMessages(args) {
|
|
@@ -11859,6 +11841,22 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
11859
11841
|
},
|
|
11860
11842
|
executeTool: async (call, opts) => {
|
|
11861
11843
|
const contextualCall = opts?.runtimeContext ? { ...call, runtimeContext: opts.runtimeContext } : call;
|
|
11844
|
+
let injectedCall = contextualCall;
|
|
11845
|
+
if (contextualCall.name === "startAgentRun" && deps.parentDialogId && typeof contextualCall.arguments === "string") {
|
|
11846
|
+
try {
|
|
11847
|
+
const args = JSON.parse(contextualCall.arguments);
|
|
11848
|
+
if (!args.parentDialogId) {
|
|
11849
|
+
injectedCall = {
|
|
11850
|
+
...contextualCall,
|
|
11851
|
+
arguments: JSON.stringify({
|
|
11852
|
+
...args,
|
|
11853
|
+
parentDialogId: deps.parentDialogId
|
|
11854
|
+
})
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
} catch {
|
|
11858
|
+
}
|
|
11859
|
+
}
|
|
11862
11860
|
assertWithinLocalToolBudget({
|
|
11863
11861
|
toolName: call.name,
|
|
11864
11862
|
budgets: localToolBudgets,
|
|
@@ -11867,7 +11865,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
11867
11865
|
const result = await executeLocalToolWithPolicy({
|
|
11868
11866
|
env: deps.env,
|
|
11869
11867
|
agentToolNames: activeAgentToolNames,
|
|
11870
|
-
call:
|
|
11868
|
+
call: injectedCall,
|
|
11871
11869
|
executors: localToolExecutors,
|
|
11872
11870
|
abortSignal: opts?.abortSignal,
|
|
11873
11871
|
detachMs: resolveExecShellDetachMs(deps.env),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JBWVSKBS.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2M54XJFV.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QCJITMYO.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDbRecord,
|
|
3
3
|
writeAgentRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A7QNCVO5.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSkillSummaryMarker
|
|
7
7
|
} from "./chunk-VF4K2QE6.js";
|
|
8
8
|
import {
|
|
9
9
|
createSpaceKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ELT65PZW.js";
|
|
11
11
|
import {
|
|
12
12
|
parseUserIdFromAuthToken,
|
|
13
13
|
readOption,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
planCompression,
|
|
10
10
|
planContextUsage,
|
|
11
11
|
serializeMessageContent
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EGPCU42M.js";
|
|
13
13
|
import {
|
|
14
14
|
clipCompactText
|
|
15
15
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -1151,7 +1151,9 @@ function applyPersistedTurnInput(messages, persistedInput, persistedInputReferen
|
|
|
1151
1151
|
async function runLocalAgentTurn(input) {
|
|
1152
1152
|
const agentConfig = await input.adapter.loadAgentConfig(input.agentRef);
|
|
1153
1153
|
if (!agentConfig) {
|
|
1154
|
-
const error = new Error(
|
|
1154
|
+
const error = new Error(
|
|
1155
|
+
`agentRef "${input.agentRef}" \u672A\u5339\u914D\u5230\u672C\u5730 agent\u3002\u8FD9\u4E0D\u662F\u914D\u7F6E\u7F3A\u5931\uFF0C\u8BF7\u7528 listAgents \u67E5\u770B\u53EF\u7528 agent\uFF0C\u518D\u7528 readAgent \u89E3\u6790 agentKey\uFF0C\u52FF\u624B\u5DE5\u62FC key\u3002`
|
|
1156
|
+
);
|
|
1155
1157
|
error.code = LOCAL_AGENT_CONFIG_MISSING_CODE;
|
|
1156
1158
|
error.agentRef = input.agentRef;
|
|
1157
1159
|
throw error;
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OZPVJZBX.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SQNQOXQ6.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2M54XJFV.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BDSHV5HO.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RYFZ55YC.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QCJITMYO.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-LSFAWXKC.js";
|
|
48
48
|
import {
|
|
49
49
|
getModelInfo
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-EGPCU42M.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiEndpoint
|
|
53
53
|
} from "./chunk-HQPG2PIV.js";
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
} from "./chunk-3ASDTTEI.js";
|
|
65
65
|
import {
|
|
66
66
|
selectCurrentServer
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-RVOUXDFU.js";
|
|
68
68
|
import {
|
|
69
69
|
write
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XRZJGPFI.js";
|
|
71
71
|
import {
|
|
72
72
|
createDialogMessageKeyAndId,
|
|
73
73
|
dialogMessageKey,
|
|
@@ -76,10 +76,10 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
createAsyncThunk,
|
|
78
78
|
selectIdentityToken
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-XMLRJUU5.js";
|
|
80
80
|
import {
|
|
81
81
|
isAbortError
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-R5V5G73M.js";
|
|
83
83
|
import {
|
|
84
84
|
asTrimmedString
|
|
85
85
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
var processEnv = typeof process !== "undefined" ? process.env : void 0;
|
|
14
14
|
var reactNativeDev = typeof globalThis !== "undefined" && "__DEV__" in globalThis ? globalThis.__DEV__ : void 0;
|
|
15
15
|
var isProduction = processEnv?.NOLO_FORCE_PRODUCTION === "1" || processEnv?.NODE_ENV === "production" || reactNativeDev === false;
|
|
16
|
+
var isDevelopment = !isProduction;
|
|
16
17
|
var getIsDesktopApp = () => (typeof process !== "undefined" ? process.env?.NOLO_DESKTOP : processEnv?.NOLO_DESKTOP) === "1" || typeof window !== "undefined" && window.__NOLO_DESKTOP__ === true;
|
|
17
18
|
var isDesktopApp = getIsDesktopApp();
|
|
18
19
|
|
|
@@ -258,6 +259,7 @@ var normalizeTimeFields = (data) => ({
|
|
|
258
259
|
|
|
259
260
|
export {
|
|
260
261
|
isProduction,
|
|
262
|
+
isDevelopment,
|
|
261
263
|
getIsDesktopApp,
|
|
262
264
|
createClientLogger,
|
|
263
265
|
isAbortError,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
toTimestampMs,
|
|
11
11
|
upsert,
|
|
12
12
|
write
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XRZJGPFI.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserKey,
|
|
16
16
|
createUserPreferenceKey,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-QSJ3HFEF.js";
|
|
22
22
|
import {
|
|
23
23
|
BUILTIN_NOLO_AGENT_KEY
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3ND52WIL.js";
|
|
25
25
|
import {
|
|
26
26
|
asyncThunkCreator,
|
|
27
27
|
buildCreateSlice,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
createAsyncThunk,
|
|
30
30
|
createSelector,
|
|
31
31
|
selectIdentityUserId
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XMLRJUU5.js";
|
|
33
33
|
import {
|
|
34
34
|
getAllServers,
|
|
35
35
|
getIsDesktopApp,
|
|
36
36
|
isProduction
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-R5V5G73M.js";
|
|
38
38
|
import {
|
|
39
39
|
SERVERS
|
|
40
40
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
patch,
|
|
12
12
|
remove,
|
|
13
13
|
write
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XRZJGPFI.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgentKey,
|
|
17
17
|
toTrimmedString
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
asyncThunkCreator,
|
|
21
21
|
buildCreateSlice,
|
|
22
22
|
getRuntimeServerContext
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XMLRJUU5.js";
|
|
24
24
|
import {
|
|
25
25
|
asTrimmedString
|
|
26
26
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-YY6LVJXJ.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-XKFPXIZC.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-5UOO7W6S.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeServerContext,
|
|
3
3
|
scheduleDeleteReplication
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XMLRJUU5.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchFromClientDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R5V5G73M.js";
|
|
8
8
|
import {
|
|
9
9
|
buildTombstoneRecord
|
|
10
10
|
} from "./chunk-GBRG75BQ.js";
|