nolo-cli 0.168.0-alpha.2 → 0.170.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-AY53O33B.js → _executeModel-7J6IIHWQ.js} +13 -13
- package/{agentDeleteCommand-4HOAILRY.js → agentDeleteCommand-4RAEG26P.js} +15 -15
- package/{agentEmailCommands-PYNUCXDD.js → agentEmailCommands-MS6MACO5.js} +17 -17
- package/{agentGrantCommands-5DPHYEKP.js → agentGrantCommands-LPVAJ6KR.js} +1 -1
- package/{agentListCommands-TLM2Z5YA.js → agentListCommands-4BBFWXHX.js} +7 -7
- package/{agentMachineCommands-U4EJNIZ3.js → agentMachineCommands-4OQUFTD2.js} +5 -5
- package/{agentProviderCommands-CXBHNONN.js → agentProviderCommands-4USYTCL3.js} +1 -1
- package/{agentPullCommand-GXXEDOSA.js → agentPullCommand-UXXV5KKW.js} +1 -1
- package/{agentRecordCommands-TBIANIZL.js → agentRecordCommands-YNLE7IBY.js} +16 -16
- package/{agentRunCommand-73EXLR7O.js → agentRunCommand-76DUQVWC.js} +16 -16
- package/{agentRunControl-QWFFIAQY.js → agentRunControl-QBONJVI4.js} +2 -2
- package/{agentRuntimeLocal-YDRO43VQ.js → agentRuntimeLocal-7EZYBR6X.js} +2 -2
- package/{agentSlice-ZU6XEZND.js → agentSlice-UN7ZHCAM.js} +1 -1
- package/{appDeleteCommands-UKXZ4AW6.js → appDeleteCommands-WS3UFMCB.js} +6 -6
- package/{appDeployCommands-X5TKB23X.js → appDeployCommands-W5B7I73P.js} +6 -6
- package/{appDeployStatusCommands-N4RRXIOF.js → appDeployStatusCommands-UEHNV2GU.js} +6 -6
- package/{appGetCommands-RTXNFQNZ.js → appGetCommands-XJOBVREN.js} +6 -6
- package/{appListCommands-FX2YMHZU.js → appListCommands-BISQV6BQ.js} +6 -6
- package/{authCommand-OVBMDPIF.js → authCommand-H35CPF25.js} +2 -2
- package/{authCommands-QOCKVPX3.js → authCommands-BKDT4ZYB.js} +2 -2
- package/{chromeOpsCommands-GZVVK7HU.js → chromeOpsCommands-6JHNTKXU.js} +1 -1
- package/{chunk-HL5KVGSL.js → chunk-2AZSL4GL.js} +2 -2
- package/{chunk-JICBK5VC.js → chunk-2DXGW4UO.js} +1 -1
- package/{chunk-N3XCSZOY.js → chunk-3ELX6JK5.js} +3 -3
- package/{chunk-7NBDLDX2.js → chunk-3URJF2TW.js} +5 -5
- package/{chunk-6NAYN42Q.js → chunk-3USFOET4.js} +2 -2
- package/{chunk-CFHDJJBA.js → chunk-45IOFLGH.js} +5 -5
- package/{chunk-FK55VK7X.js → chunk-46OQD3AP.js} +2 -2
- package/{chunk-4TIZP7PG.js → chunk-7VWWGKEQ.js} +2 -2
- package/{chunk-D52O6RA6.js → chunk-AIHY74D3.js} +4 -4
- package/{chunk-2BWYN4N6.js → chunk-B4VCTNZL.js} +10 -10
- package/{chunk-IRC2AHEV.js → chunk-CEQFVBI2.js} +2 -2
- package/{chunk-T6CYTRP4.js → chunk-CMRP4XHV.js} +8 -8
- package/{chunk-XFTJICLD.js → chunk-DHNQA4VI.js} +1 -1
- package/{chunk-KU5TYLY3.js → chunk-FQU23S3P.js} +7 -7
- package/{chunk-6M2XWWM3.js → chunk-HZMWJUSD.js} +2 -2
- package/{chunk-YOKJE6RU.js → chunk-IOFLVIKF.js} +2 -2
- package/{chunk-N6EMFRPR.js → chunk-KJETBEEN.js} +1 -1
- package/{chunk-CR2YHS2G.js → chunk-LEZLJTQ4.js} +1 -1
- package/{chunk-5DJOZ3FN.js → chunk-O4R4M4M5.js} +3 -3
- package/{chunk-TQYYH5UI.js → chunk-QW6SSF7V.js} +8 -8
- package/{chunk-6M5BXJK5.js → chunk-RKKJ6SVM.js} +11 -11
- package/{chunk-DLV3H464.js → chunk-RV4DPEAM.js} +1 -1
- package/{chunk-KYFGIHVF.js → chunk-TOUKACDK.js} +35 -19
- package/{chunk-IW64YHXL.js → chunk-TWJYVVUB.js} +1 -1
- package/{chunk-DWMLT22B.js → chunk-URO44BCD.js} +1 -1
- package/{chunk-A7GB5UGH.js → chunk-WACI5I6V.js} +1 -1
- package/{chunk-NH7672YN.js → chunk-WLPUUBFR.js} +2 -2
- package/{chunk-LPO6AMQU.js → chunk-WO5P2HTX.js} +19 -1
- package/{chunk-RG5K3ULI.js → chunk-XLBQQ5SB.js} +3 -3
- package/{chunk-PBCVKRGH.js → chunk-XLQFVHNX.js} +2 -2
- package/{chunk-U4STABYN.js → chunk-YGILMZ7N.js} +1 -1
- package/{cliEnvHelpers-ZXNMX7VV.js → cliEnvHelpers-BVYTMUPJ.js} +1 -1
- package/{commandRegistry-IKUZMWAN.js → commandRegistry-PDKCQHG3.js} +72 -72
- package/{contentThunks-VAPJZ75B.js → contentThunks-OO3MJAED.js} +3 -3
- package/{createAgentAutomationAction-4GXJYWCX.js → createAgentAutomationAction-F3O6FJ5W.js} +3 -3
- package/{createDialogAction-I73INVXI.js → createDialogAction-UBQKDUK5.js} +4 -4
- package/{createPageAction-2UXGWGNB.js → createPageAction-RDEDO4GF.js} +3 -3
- package/{dialogCommands-T6E3ZC6W.js → dialogCommands-6POPB6FB.js} +7 -7
- package/{dialogSlice-AGUU6TEF.js → dialogSlice-WZCWWYR3.js} +2 -2
- package/{docCreateCommands-PB5O2AHR.js → docCreateCommands-B2M3MGX7.js} +5 -5
- package/{docDeleteCommands-RPW7WC2I.js → docDeleteCommands-NHCUX4XL.js} +6 -6
- package/{docReadCommands-IXHQDBDY.js → docReadCommands-FOLST4JD.js} +5 -5
- package/{docStore-W72REPIB.js → docStore-PTSCGC6T.js} +1 -1
- package/{docUpdateCommands-FFY6APSV.js → docUpdateCommands-YZT2PQP2.js} +5 -5
- package/{handleSendMessageAction-3OHYCSFM.js → handleSendMessageAction-3YMQS6XO.js} +7 -7
- package/index.js +5 -5
- package/{localRuntimeAdapter-UYVJ5AJT.js → localRuntimeAdapter-6P7JHQOK.js} +13 -13
- package/{machineCommands-VPLS3SWV.js → machineCommands-CTE5QJBU.js} +14 -14
- package/{machineWsRunDispatch-YVELU5LS.js → machineWsRunDispatch-7CRVOKDC.js} +14 -14
- package/{memoryCommands-ZS3VQJAL.js → memoryCommands-YLT3ADGQ.js} +1 -1
- package/package.json +1 -1
- package/{readlineWorkspace-Q5BPFMSC.js → readlineWorkspace-3WLNCNV4.js} +22 -22
- package/{runAgentClientLoop-N2B2CN2W.js → runAgentClientLoop-F6EQK26A.js} +11 -11
- package/{runtimeDoctorCommands-MMCP4B4U.js → runtimeDoctorCommands-LYMJEM4F.js} +1 -1
- package/{spaceCommands-X5ITNKLC.js → spaceCommands-XESXH5CW.js} +5 -5
- package/{streamAgentChatTurn-C7QTXNPY.js → streamAgentChatTurn-KXELVHFR.js} +13 -13
- package/{tools-5RNURQPU.js → tools-FMNDEVTZ.js} +7 -7
- package/{updateCommands-FJHGWD3Q.js → updateCommands-C56QMWHF.js} +2 -2
- package/{updateDialogTitleAction-TOSX6Q4L.js → updateDialogTitleAction-65R3Y22L.js} +3 -3
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2AZSL4GL.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-3ELX6JK5.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QW6SSF7V.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CEQFVBI2.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-WLPUUBFR.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
messageStreaming,
|
|
43
43
|
toolResultNeedsUserConfirmation,
|
|
44
44
|
updateToolMessage
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CMRP4XHV.js";
|
|
46
46
|
import {
|
|
47
47
|
streamAgentChatTurn
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-XLBQQ5SB.js";
|
|
49
49
|
import {
|
|
50
50
|
getCurrentSpaceId
|
|
51
51
|
} from "./chunk-ZJ7UHBJS.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-OO3MJAED.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-RDEDO4GF.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDbRecord,
|
|
3
3
|
writeAgentRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KJETBEEN.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSkillSummaryMarker
|
|
7
7
|
} from "./chunk-VF4K2QE6.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readOption,
|
|
14
14
|
resolveAuthToken,
|
|
15
15
|
resolveServerUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WACI5I6V.js";
|
|
17
17
|
import {
|
|
18
18
|
NOLO_CLUSTER_SERVERS
|
|
19
19
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LEZLJTQ4.js";
|
|
11
11
|
import {
|
|
12
12
|
parsePositiveFiniteNumberOrFallback
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-I42VC5KR.js";
|
|
43
43
|
import {
|
|
44
44
|
resolveRunsDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WO5P2HTX.js";
|
|
46
46
|
import {
|
|
47
47
|
getDefaultCliLocalRuntimeDb
|
|
48
48
|
} from "./chunk-GAGGEA7D.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
resolveDeleteServerCandidates,
|
|
62
62
|
resolveServerCandidates,
|
|
63
63
|
resolveServerUrl
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-WACI5I6V.js";
|
|
65
65
|
import {
|
|
66
66
|
isRecord
|
|
67
67
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
toolRunUpdated,
|
|
21
21
|
uiCardFallback,
|
|
22
22
|
waitForAbortableDelay
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WLPUUBFR.js";
|
|
24
24
|
import {
|
|
25
25
|
isGatewayHttpStatus
|
|
26
26
|
} from "./chunk-NF64D32W.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-VF4K2QE6.js";
|
|
65
65
|
import {
|
|
66
66
|
createDocState
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-HZMWJUSD.js";
|
|
68
68
|
import {
|
|
69
69
|
addMemberSpace,
|
|
70
70
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-BAWAKW7X.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-46OQD3AP.js";
|
|
83
83
|
import {
|
|
84
84
|
setDialogExtraReferencesAction
|
|
85
85
|
} from "./chunk-IF7V3CBU.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-URO44BCD.js";
|
|
106
106
|
import {
|
|
107
107
|
buildDatabaseFileContentUrl,
|
|
108
108
|
deleteDialog,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
selectMsgById,
|
|
116
116
|
uiAskChoiceFunc,
|
|
117
117
|
uiAskChoiceFunctionSchema
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-CMRP4XHV.js";
|
|
119
119
|
import {
|
|
120
120
|
buildMediaToolConfirmation,
|
|
121
121
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
runLlm,
|
|
127
127
|
streamAgentChatTurn,
|
|
128
128
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-XLBQQ5SB.js";
|
|
130
130
|
import {
|
|
131
131
|
getCurrentSpaceId,
|
|
132
132
|
getCurrentSpaceIdRaw,
|
|
@@ -3882,7 +3882,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3882
3882
|
const deletedDialogIds = [];
|
|
3883
3883
|
const deletedDialogKeys = [];
|
|
3884
3884
|
const failures = [];
|
|
3885
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3885
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-WZCWWYR3.js");
|
|
3886
3886
|
for (const target of targets) {
|
|
3887
3887
|
try {
|
|
3888
3888
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -18563,7 +18563,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18563
18563
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18564
18564
|
};
|
|
18565
18565
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18566
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18566
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-PTSCGC6T.js");
|
|
18567
18567
|
if (getDocState().pageKey === id) {
|
|
18568
18568
|
applyExternalDocUpdate({
|
|
18569
18569
|
slateData: finalSlateData,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
resolveRawAgentInput,
|
|
10
10
|
resolveServerUrl,
|
|
11
11
|
writeUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DHNQA4VI.js";
|
|
13
13
|
import {
|
|
14
14
|
getReadableCliDb
|
|
15
15
|
} from "./chunk-62TBKWTV.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveFileWriteGateEnabled,
|
|
32
32
|
resolveLocalUserId,
|
|
33
33
|
validateInstaboxWorkspaceSelection
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-B4VCTNZL.js";
|
|
35
35
|
import {
|
|
36
36
|
clearCredentialAvailability,
|
|
37
37
|
readEffectiveCredentialEntry,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
readDbRecord,
|
|
66
66
|
resolveAgentRecordFromHybridStore
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-KJETBEEN.js";
|
|
68
68
|
import {
|
|
69
69
|
isLocalCliAgentKey
|
|
70
70
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -79,14 +79,14 @@ import {
|
|
|
79
79
|
} from "./chunk-BMQ2MJUK.js";
|
|
80
80
|
import {
|
|
81
81
|
resolveCliLocalRuntimeKeyCapability
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-QW6SSF7V.js";
|
|
83
83
|
import {
|
|
84
84
|
isTransientFetchError
|
|
85
85
|
} from "./chunk-KFHREHUQ.js";
|
|
86
86
|
import {
|
|
87
87
|
parseUiCard,
|
|
88
88
|
uiCardFallback
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-WLPUUBFR.js";
|
|
90
90
|
import {
|
|
91
91
|
isGatewayHttpStatus
|
|
92
92
|
} from "./chunk-NF64D32W.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
chooseMemoryOwners,
|
|
96
96
|
loadMemoryCandidatesFromDb,
|
|
97
97
|
resolveAgentMemoryPolicy
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-46OQD3AP.js";
|
|
99
99
|
import {
|
|
100
100
|
API_REPORTED_COST_MULTIPLIER,
|
|
101
101
|
estimateMessagesTokens,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
resolveAgentContextWindow,
|
|
104
104
|
resolveOccupancy,
|
|
105
105
|
resolveOccupancyWindow
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-CMRP4XHV.js";
|
|
107
107
|
import {
|
|
108
108
|
buildSkillDiscoveryContextLayer
|
|
109
109
|
} from "./chunk-AU7AXHUL.js";
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
116
116
|
LOCAL_TURN_ABORTED_CODE,
|
|
117
117
|
readActionGate
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-2DXGW4UO.js";
|
|
119
119
|
import {
|
|
120
120
|
resolveAgentRuntimeConfigFromRecord
|
|
121
121
|
} from "./chunk-CEXJ6Y3C.js";
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
serverOriginForDialog,
|
|
189
189
|
settleRunTerminalAuthoritatively,
|
|
190
190
|
spawnLocalBackgroundRun
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-WO5P2HTX.js";
|
|
192
192
|
import {
|
|
193
193
|
formatAgentListCard,
|
|
194
194
|
formatFinishedRunCard,
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
} from "./chunk-EYLGAEB4.js";
|
|
214
214
|
import {
|
|
215
215
|
resolveAuthToken
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-WACI5I6V.js";
|
|
217
217
|
import {
|
|
218
218
|
readPipeText,
|
|
219
219
|
spawnProcess
|
|
@@ -11373,7 +11373,7 @@ function isBalanceExhaustedError(error) {
|
|
|
11373
11373
|
|
|
11374
11374
|
// packages/cli/client/agentRun.ts
|
|
11375
11375
|
async function loadRunLocalAgentTurn() {
|
|
11376
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
11376
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-7EZYBR6X.js");
|
|
11377
11377
|
return runLocalAgentTurn;
|
|
11378
11378
|
}
|
|
11379
11379
|
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();
|
|
@@ -475,26 +475,42 @@ var AGENT_CONFIRM_BOUNDARY = `--- \u786E\u8BA4\u8FB9\u754C ---
|
|
|
475
475
|
- \u6D89\u53CA\u4E0D\u53EF\u9006\u64CD\u4F5C\uFF08\u4FEE\u6539\u6587\u4EF6\u3001\u5220\u9664\u6570\u636E\u3001\u53D1\u9001\u6D88\u606F\u3001\u751F\u6210\u6B63\u5F0F\u6587\u4EF6\u3001\u6267\u884C\u4EA4\u6613\uFF09\u6216\u9AD8\u6210\u672C\u52A8\u4F5C\uFF08\u5927\u89C4\u6A21\u91CD\u6784/\u957F\u65F6\u8FD0\u884C/\u5927\u91CF token\uFF09\u65F6\uFF0C\u4F18\u5148\u9884\u89C8\u6216\u5411\u7528\u6237\u786E\u8BA4\uFF1B\u5DE5\u5177\u8FD4\u56DE"\u9884\u89C8/\u5F85\u786E\u8BA4"\u65F6\u6682\u505C\uFF0C\u7B49\u660E\u786E\u786E\u8BA4\u518D\u7EE7\u7EED\uFF0C\u672A\u786E\u8BA4\u524D\u4E0D\u8FDE\u7EED\u53D1\u591A\u6B21\u7834\u574F\u6027\u4FEE\u6539\u3002
|
|
476
476
|
- \u6536\u5230\u300C\u5B50\u5BF9\u8BDD\u7981\u6B62\u518D\u521B\u5EFA\u5B59\u5BF9\u8BDD\u300D\uFF1D\u4F60\u5DF2\u662F\u5B50\u5BF9\u8BDD\uFF0C\u7981\u6B62\u518D\u6D3E\u53D1\uFF0C\u628A\u7ED3\u679C\u8FD4\u56DE\u7236\u5BF9\u8BDD\u5373\u53EF\u3002
|
|
477
477
|
- **\u76EE\u6807\u8303\u56F4\u63A7\u5236**\uFF1A\u53D1\u73B0\u539F\u4EA4\u4ED8\u7269\u4E0D\u80FD\u5B9E\u73B0\uFF0C\u4E0D\u5F97\u81EA\u884C\u7F29\u6210\u6587\u6848/\u624B\u52A8\u9000\u8DEF\u540E\u5BA3\u79F0\u5B8C\u6210\uFF1B\u9648\u8FF0\u5DF2\u8BC1\u5B9E\u9650\u5236\u3001\u539F\u76EE\u6807\u5DEE\u8DDD\u3001\u63A8\u8350\u66FF\u4EE3\u53CA\u5F71\u54CD\uFF0C\u7F29\u51CF\u7528\u6237\u53EF\u89C1\u80FD\u529B\u9700\u660E\u786E\u786E\u8BA4\uFF1B\u540C\u8303\u56F4\u6280\u672F\u7EC6\u8282\u4E0D\u9700\u95EE\uFF0C\u5DF2\u6388\u6743\u4E0D\u53D8\u8303\u56F4\u7EE7\u7EED\u63A8\u8FDB\uFF0C\u9632\u53D8\u6210\u4E8B\u4E8B\u786E\u8BA4\u3002`;
|
|
478
|
-
var
|
|
479
|
-
AGENT_COLLABORATION_VALUE_AND_METHOD,
|
|
480
|
-
AGENT_DELEGATE_FIRST_DEFAULT,
|
|
481
|
-
AGENT_PLATFORM_CREDITS_GATE,
|
|
482
|
-
AGENT_DISPATCH_PRECHECK,
|
|
483
|
-
AGENT_COLLABORATION_FULL_PROTOCOL,
|
|
484
|
-
AGENT_COMMIT_REVIEW_GATE,
|
|
485
|
-
AGENT_CONFIRM_BOUNDARY
|
|
486
|
-
].join("\n\n");
|
|
487
|
-
var AGENT_COLLABORATION_MIN_INSTRUCTIONS = [
|
|
488
|
-
`--- \u591A Agent \u6D3E\u53D1\uFF08\u6700\u5C0F\u534F\u8BAE\uFF09 ---
|
|
478
|
+
var AGENT_COLLABORATION_MIN_DISPATCH = `--- \u591A Agent \u6D3E\u53D1\uFF08\u6700\u5C0F\u534F\u8BAE\uFF09 ---
|
|
489
479
|
- startAgentRun \u542F\u52A8\u5B50 Agent\uFF1A\u7701\u7565 agentKey\uFF08\u6216\u4F20 'self'\uFF09\u81EA\u52A8\u6D3E\u53D1\u81EA\u8EAB\u6267\u884C\u7EC6\u5206\u5B50\u4EFB\u52A1\uFF1B\u6D3E\u5176\u4ED6 Agent \u65F6 agentKey \u5FC5\u987B\u539F\u6837\u7167\u6284 listAgents \u8FD4\u56DE\u7684 agentKey \u5B57\u6BB5\uFF08\u4E0D\u62FC\u63A5/\u4E0D\u63A8\u65AD/\u4E0D\u6362\u683C\u5F0F/\u4E0D\u4F20 name\uFF09\uFF1Bwait:false\uFF08\u9ED8\u8BA4\uFF09\u5F02\u6B65\u8FD4\u56DE runId\uFF0C\u6D3E\u53D1\u540E\u7ACB\u5373\u6536\u5C3E\u7B49\u7EC8\u6001\u901A\u77E5\uFF0C\u7981\u6B62\u8F6E\u8BE2\uFF1B\u5E76\u884C\u6D3E\u53D1\u7528\u540C\u4E00 batchId \u5F52\u7EC4\u3002
|
|
490
480
|
- \u5E76\u884C\u6247\u51FA\uFF1A\u540C\u4E00\u51ED\u8BC1\u9ED8\u8BA4\u5141\u8BB8\u5E76\u53D1\uFF08\u53D7\u670D\u52A1\u7AEF\u51C6\u5165\u9884\u7B97\u7EA6\u675F\uFF1B\u6CE8\u610F\u4E0A\u6E38 429 \u9650\u6D41\uFF0C\u5FC5\u8981\u65F6\u964D\u4F4E\u5E76\u53D1\u6216\u6362\u901A\u9053\uFF09\uFF1B\u82E5\u9700\u5206\u6563\u4E0A\u6E38\u538B\u529B\uFF0C\u4F18\u5148\u8DE8\u4E0D\u540C credentialGroup \u6D3E\u53D1\uFF1Bcredentialed:false\uFF08\u51ED\u8BC1\u5F52\u5C5E\u672A\u77E5\uFF09\u7684 agent \u4E0D\u662F\u300C\u72EC\u7ACB\u51ED\u8BC1\u300D\uFF0C\u540C\u6279\u5E76\u53D1\u4F1A\u88AB\u5B88\u536B\u62D2\u7EDD\uFF0C\u9700\u4E32\u884C\u6D3E\u53D1\u6216\u663E\u5F0F allowUnknownCredential \u786E\u8BA4\u98CE\u9669\u3002
|
|
491
|
-
- \u672C\u8F6E\u672A\u6CE8\u5165\u5B8C\u6574\u7F16\u6392\u534F\u8BAE\uFF08\u65E0\u6D3E\u53D1\u610F\u56FE\uFF09\uFF1B\u5982\u786E\u9700\u591A Agent \u7F16\u6392\uFF0C\u6309\u672C\u6700\u5C0F\u534F\u8BAE\u4E0E startAgentRun \u5DE5\u5177\u63CF\u8FF0\u6267\u884C\uFF0C\u5B89\u5168\u786C\u95E8\u89C1\u4E0B\u3002
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
481
|
+
- \u672C\u8F6E\u672A\u6CE8\u5165\u5B8C\u6574\u7F16\u6392\u534F\u8BAE\uFF08\u65E0\u6D3E\u53D1\u610F\u56FE\uFF09\uFF1B\u5982\u786E\u9700\u591A Agent \u7F16\u6392\uFF0C\u6309\u672C\u6700\u5C0F\u534F\u8BAE\u4E0E startAgentRun \u5DE5\u5177\u63CF\u8FF0\u6267\u884C\uFF0C\u5B89\u5168\u786C\u95E8\u89C1\u4E0B\u3002`;
|
|
482
|
+
function isCommitReviewGateEnabled(opts) {
|
|
483
|
+
if (opts?.enableCommitReviewGate !== void 0) {
|
|
484
|
+
return opts.enableCommitReviewGate;
|
|
485
|
+
}
|
|
486
|
+
if (typeof process !== "undefined" && process.env?.NOLO_DISABLE_COMMIT_REVIEW_GATE === "1") {
|
|
487
|
+
return false;
|
|
488
|
+
}
|
|
489
|
+
return true;
|
|
490
|
+
}
|
|
491
|
+
function buildAgentCollaborationInstructions(opts) {
|
|
492
|
+
const isFull = opts?.dispatchIntent === true;
|
|
493
|
+
const gateEnabled = isCommitReviewGateEnabled(opts);
|
|
494
|
+
const sections = isFull ? [
|
|
495
|
+
AGENT_COLLABORATION_VALUE_AND_METHOD,
|
|
496
|
+
AGENT_DELEGATE_FIRST_DEFAULT,
|
|
497
|
+
AGENT_PLATFORM_CREDITS_GATE,
|
|
498
|
+
AGENT_DISPATCH_PRECHECK,
|
|
499
|
+
AGENT_COLLABORATION_FULL_PROTOCOL,
|
|
500
|
+
...gateEnabled ? [AGENT_COMMIT_REVIEW_GATE] : [],
|
|
501
|
+
AGENT_CONFIRM_BOUNDARY
|
|
502
|
+
] : [
|
|
503
|
+
AGENT_COLLABORATION_MIN_DISPATCH,
|
|
504
|
+
AGENT_DELEGATE_FIRST_DEFAULT,
|
|
505
|
+
AGENT_PLATFORM_CREDITS_GATE,
|
|
506
|
+
AGENT_DISPATCH_PRECHECK,
|
|
507
|
+
...gateEnabled ? [AGENT_COMMIT_REVIEW_GATE] : [],
|
|
508
|
+
AGENT_CONFIRM_BOUNDARY
|
|
509
|
+
];
|
|
510
|
+
return sections.join("\n\n");
|
|
511
|
+
}
|
|
512
|
+
var AGENT_COLLABORATION_INSTRUCTIONS = buildAgentCollaborationInstructions({ dispatchIntent: true });
|
|
513
|
+
var AGENT_COLLABORATION_MIN_INSTRUCTIONS = buildAgentCollaborationInstructions({ dispatchIntent: false });
|
|
498
514
|
var CONVERSATION_INTERACTION_INSTRUCTIONS = `--- \u5BF9\u8BDD\u5185\u4EA4\u4E92\uFF08show_interaction\uFF09 ---
|
|
499
515
|
\u201C\u5C55\u793A\u7ED3\u6784\u5316\u5185\u5BB9 + \u8BA9\u7528\u6237\u9009\u62E9\u201D\u540C\u65F6\u51FA\u73B0\u65F6\uFF08\u591A\u65B9\u6848\u5BF9\u6BD4\u8981\u7528\u6237\u9009\u4E00\u4E2A\u3001\u5173\u952E\u6307\u6807\u914D\u5408\u786E\u8BA4\u9879\uFF09\uFF0C\u8D70 show_interaction\uFF0C\u5185\u5BB9\u4E0E\u9009\u9879\u5728\u540C\u4E00\u5757\u5448\u73B0\u4E14\u63D0\u4EA4\u540E\u539F\u4F4D\u53EA\u8BFB\uFF0C\u6BD4\u5148\u7ED9 Markdown \u8868\u683C\u518D\u8FFD\u95EE\u66F4\u7D27\u51D1\u3002
|
|
500
516
|
- \u7528\u5B83\uFF1A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u4E0E\u9009\u62E9\u540C\u5757\u5C55\u793A\uFF1B\u63D0\u4EA4\u540E\u7528\u6237\u9009\u62E9\u539F\u4F4D\u53EA\u8BFB\u3002
|
|
@@ -576,7 +592,7 @@ var TOOL_GUIDED_SECTIONS = [
|
|
|
576
592
|
],
|
|
577
593
|
// 按需注入:完整编排协议仅在有派发意图时给;无派发意图给最小协议
|
|
578
594
|
// (派发机制 + 安全硬门常在:平台积分授权门 / commit review 硬门)。
|
|
579
|
-
build: (_tools, opts) => opts
|
|
595
|
+
build: (_tools, opts) => buildAgentCollaborationInstructions(opts)
|
|
580
596
|
},
|
|
581
597
|
{ id: "menuUsage", triggerTools: ["ask_user"], build: () => MENU_USAGE_INSTRUCTIONS },
|
|
582
598
|
{
|
|
@@ -130,7 +130,7 @@ function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
|
|
|
130
130
|
}
|
|
131
131
|
const sourcePath = fileURLToPath(fromModuleUrl);
|
|
132
132
|
const ext = extname(sourcePath) || ".ts";
|
|
133
|
-
return join(dirname(sourcePath),
|
|
133
|
+
return join(dirname(sourcePath), `index${ext}`);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-VYNMQ6HW.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchAndCacheTableRows
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-URO44BCD.js";
|
|
12
12
|
import {
|
|
13
13
|
require_react
|
|
14
14
|
} from "./chunk-YDH3FDFQ.js";
|
|
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
521
521
|
if (!executionInput) {
|
|
522
522
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
523
523
|
}
|
|
524
|
-
const { findToolExecutor } = await import("./tools-
|
|
524
|
+
const { findToolExecutor } = await import("./tools-FMNDEVTZ.js");
|
|
525
525
|
const { executor } = findToolExecutor(run.toolName);
|
|
526
526
|
toolRunStarted({
|
|
527
527
|
id: run.id,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
isCompiledBinary,
|
|
7
7
|
resolveCliEntrypointPath
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WACI5I6V.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePlatformAuthToken
|
|
11
11
|
} from "./chunk-PIG2IUVZ.js";
|
|
@@ -2188,7 +2188,25 @@ function isPidGone(pid, deps = {}) {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
2190
|
function defaultGetProcessStartTime(pid) {
|
|
2191
|
+
if (!Number.isSafeInteger(pid) || pid <= 0) return null;
|
|
2191
2192
|
try {
|
|
2193
|
+
if (process.platform === "win32") {
|
|
2194
|
+
const shell = process.env.SystemRoot ? join2(process.env.SystemRoot, "System32", "WindowsPowerShell", "v1.0", "powershell.exe") : "powershell.exe";
|
|
2195
|
+
const output2 = nodeExecFileSync(shell, [
|
|
2196
|
+
"-NoProfile",
|
|
2197
|
+
"-NonInteractive",
|
|
2198
|
+
"-Command",
|
|
2199
|
+
`$ErrorActionPreference='Stop'; (Get-Process -Id ${pid} -ErrorAction Stop).StartTime.ToUniversalTime().ToString('o')`
|
|
2200
|
+
], {
|
|
2201
|
+
encoding: "utf8",
|
|
2202
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
2203
|
+
timeout: 5e3,
|
|
2204
|
+
windowsHide: true
|
|
2205
|
+
}).trim();
|
|
2206
|
+
if (!output2) return null;
|
|
2207
|
+
const date = new Date(output2);
|
|
2208
|
+
return Number.isFinite(date.getTime()) ? date : null;
|
|
2209
|
+
}
|
|
2192
2210
|
const output = nodeExecFileSync("ps", ["-o", "lstart=", "-p", String(pid)], {
|
|
2193
2211
|
encoding: "utf8",
|
|
2194
2212
|
stdio: ["ignore", "pipe", "ignore"],
|
|
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
|
|
|
347
347
|
const overrides = {};
|
|
348
348
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
349
349
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
350
|
-
const { _executeModel } = await import("./_executeModel-
|
|
350
|
+
const { _executeModel } = await import("./_executeModel-7J6IIHWQ.js");
|
|
351
351
|
return _executeModel(
|
|
352
352
|
{
|
|
353
353
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
|
|
|
368
368
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
369
369
|
*/
|
|
370
370
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
371
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
371
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-F6EQK26A.js");
|
|
372
372
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
373
373
|
{
|
|
374
374
|
agentKey: args.agentKey,
|
|
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
|
|
|
384
384
|
* 聊天轮次流式 Agent 调用
|
|
385
385
|
*/
|
|
386
386
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
387
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
387
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-KXELVHFR.js");
|
|
388
388
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTokenUser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IOFLVIKF.js";
|
|
4
4
|
import {
|
|
5
5
|
t
|
|
6
6
|
} from "./chunk-TDX2L4W2.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveServerUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WACI5I6V.js";
|
|
10
10
|
|
|
11
11
|
// packages/cli/cliApiClient.ts
|
|
12
12
|
var CliApiError = class extends Error {
|