nolo-cli 0.250.0-alpha.1 → 0.251.0-alpha.1
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-F4MT6OPO.js → _executeModel-55PHWQWB.js} +27 -27
- package/{addContentAction-MLI6GOBV.js → addContentAction-LBVAQUF7.js} +2 -2
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-6WAUSUSZ.js} +1 -1
- package/{agentDeleteCommand-DBCRHB4S.js → agentDeleteCommand-KEO3KDK3.js} +53 -49
- package/{agentEmailCommands-T4PAJ4KG.js → agentEmailCommands-RWJQQRNT.js} +54 -50
- package/{agentListCommands-5ULWKQ3E.js → agentListCommands-L3TLPLNH.js} +17 -17
- package/{agentMachineCommands-65QUOCEY.js → agentMachineCommands-EZWWXWDH.js} +16 -16
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-6OCNLVGC.js} +1 -1
- package/{agentRecordCommands-EKANS3A5.js → agentRecordCommands-7W2CGHJJ.js} +53 -49
- package/{agentRunCommand-336PXBRJ.js → agentRunCommand-POL6B6BO.js} +54 -50
- package/{agentRunControl-QMWTWV7C.js → agentRunControl-FKSXBUAF.js} +1 -1
- package/{agentRuntimeLocal-KKXJOBD3.js → agentRuntimeLocal-WSHWNIMF.js} +14 -14
- package/{agentSlice-FWYXP332.js → agentSlice-3G2YLTA4.js} +3 -3
- package/{appDeleteCommands-ERJK367V.js → appDeleteCommands-DZZQCVYH.js} +16 -16
- package/{appDeployCommands-LUV6QKQJ.js → appDeployCommands-NJJBVNH5.js} +16 -16
- package/{appDeployStatusCommands-WW7IYQD4.js → appDeployStatusCommands-GBOAFEYG.js} +16 -16
- package/{appGetCommands-G7XYYSFO.js → appGetCommands-GOOKYMKO.js} +16 -16
- package/{appListCommands-4RXCIDNI.js → appListCommands-OBCGUG3S.js} +16 -16
- package/{authCommand-3C3RN4OU.js → authCommand-77CRN332.js} +9 -9
- package/{authCommands-ZMVEDCQD.js → authCommands-BLXNAUF4.js} +2 -2
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-6RLEBBJJ.js} +1 -1
- package/chunk-3A5NNQCN.js +64 -0
- package/{chunk-HEIIOJGN.js → chunk-3KWJPTVP.js} +2 -2
- package/{chunk-7IQA2VJF.js → chunk-3ZWJVKFB.js} +148 -38
- package/{chunk-OLGFIQN2.js → chunk-43VT5PLM.js} +1 -1
- package/{chunk-RHBD22LV.js → chunk-5IKKSJYX.js} +4 -2
- package/{chunk-U7OMQLRE.js → chunk-6UNJ6JGR.js} +9 -9
- package/{chunk-BFKJ2RS3.js → chunk-7RYODZDD.js} +1 -1
- package/{chunk-YQO5UKHP.js → chunk-A55E2OCP.js} +16 -16
- package/{chunk-XHG7QROB.js → chunk-CUYFRVJF.js} +3 -3
- package/{chunk-I3J7HO3U.js → chunk-D35TOEMM.js} +2 -2
- package/{chunk-OHUYN3YU.js → chunk-D3E5MYXO.js} +1 -1
- package/{chunk-SPU3L3OR.js → chunk-EFM2IPZR.js} +3 -3
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-ZKMS73DK.js → chunk-FAFDIQJG.js} +3 -3
- package/{chunk-UF6J7NXV.js → chunk-GMWZRXRM.js} +1 -1
- package/{chunk-ARFCL53U.js → chunk-HD5EKSLF.js} +3 -3
- package/{chunk-4IQN6FWY.js → chunk-HQLCYPL4.js} +1 -1
- package/chunk-HZD5HXUO.js +405 -0
- package/{chunk-FFFKAOJN.js → chunk-IXAGRTAR.js} +1 -1
- package/{chunk-UPOW5HTG.js → chunk-IZWGO2ZS.js} +1 -1
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-ZTWDSOXD.js → chunk-JUYI2D7J.js} +1 -1
- package/{chunk-OKKA4BCM.js → chunk-K5CIMK3R.js} +2 -2
- package/{chunk-AXZ5DDLB.js → chunk-KGOBJAWC.js} +51 -49
- package/{chunk-JFRJEPFI.js → chunk-KRAPKTAS.js} +1 -1
- package/{chunk-RDBDHGU7.js → chunk-KZVRPCOR.js} +2 -2
- package/{chunk-TMRJGSK2.js → chunk-L5HV76QT.js} +1 -1
- package/{chunk-3IVFGQIM.js → chunk-LOXR4TQN.js} +1 -1
- package/{chunk-W6T4FNZP.js → chunk-LUPZLKXL.js} +192 -352
- package/{chunk-73PZD7JZ.js → chunk-MTS5DCL2.js} +2 -2
- package/{chunk-SMEX763N.js → chunk-N3SEV3CG.js} +34 -26
- package/{chunk-WEZ27JA7.js → chunk-NMXGIRSG.js} +1 -1
- package/{chunk-I3OW5RAX.js → chunk-NTNX77FI.js} +6 -6
- package/{chunk-32WTED6G.js → chunk-OARYOLF3.js} +90 -79
- package/{chunk-BAH3BAUZ.js → chunk-OQCAHPDQ.js} +5 -5
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-W4G25PVP.js → chunk-PKMDYRAM.js} +31 -22
- package/{chunk-VV5IS3ES.js → chunk-PLS2MJVW.js} +5 -5
- package/{chunk-ATRU65OK.js → chunk-Q5KZ6F55.js} +11 -11
- package/{chunk-AKWA6PCE.js → chunk-QJ5YDTEF.js} +7 -7
- package/{chunk-V4IYI3SB.js → chunk-QLGL43SI.js} +1 -1
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-E5RYFR7E.js → chunk-R7D5SRAZ.js} +2 -0
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-D25ONVOH.js → chunk-SSZHE2RK.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-T4V6C3J3.js} +1 -1
- package/{chunk-X6LYQDN5.js → chunk-TGKAUEV3.js} +4 -4
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-BVEDT6DM.js → chunk-U2OWDHDE.js} +3 -3
- package/{chunk-YWNCRUBZ.js → chunk-UCMUXZJV.js} +5 -5
- package/{chunk-6QL3SUEK.js → chunk-W2N4OAKM.js} +2 -2
- package/{chunk-VHMPJGT4.js → chunk-X337N4D6.js} +3 -3
- package/{chunk-6TVYUQRM.js → chunk-XC5RPSXK.js} +1 -1
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-PGDM7AM2.js → chunk-ZKKJZBNO.js} +6 -6
- package/{chunk-SHDJLJWV.js → chunk-ZSRR6HCH.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-N6LTB7UY.js} +2 -2
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-IUCB4XA6.js +22 -0
- package/{cliLocalAgentRecordReader-R4CLUHYO.js → cliLocalAgentRecordReader-NFNGYOOW.js} +15 -15
- package/{commandRegistry-UIZRI4JV.js → commandRegistry-OM5DU4DS.js} +72 -72
- package/{contentThunks-ZQSZA4GH.js → contentThunks-7URM43ET.js} +10 -10
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-JEEV75B7.js} +1 -1
- package/{createAgentAutomationAction-RQE4F6PR.js → createAgentAutomationAction-GGEXIKMC.js} +10 -10
- package/{createDialogAction-JDSMQ34U.js → createDialogAction-IXXEMFRQ.js} +11 -11
- package/{createPageAction-VLF6XCYO.js → createPageAction-IXIVLIOO.js} +13 -13
- package/{db-CMUTP3W5.js → db-J5KE7XRI.js} +3 -2
- package/{dbSlice-656PMWR2.js → dbSlice-IE4ADINL.js} +1 -1
- package/{dialogCommands-PLM7ZFWH.js → dialogCommands-RPBHOZB6.js} +25 -21
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-ECKI5MMA.js} +3 -3
- package/{dialogSlice-63DD2ER2.js → dialogSlice-5FQB2TNN.js} +8 -8
- package/{dialogUsageCommand-6RW2FY6K.js → dialogUsageCommand-TBIA2QAF.js} +2 -2
- package/{docCreateCommands-BST5DO7L.js → docCreateCommands-XJ2X57DW.js} +15 -15
- package/{docDeleteCommands-YE6G2SO4.js → docDeleteCommands-45WGFFEB.js} +15 -15
- package/{docReadCommands-M6T35U3G.js → docReadCommands-LRRVDS46.js} +15 -15
- package/{docStore-7QNJWRJ2.js → docStore-SUAVM24F.js} +2 -2
- package/{docUpdateCommands-6DFWGPVG.js → docUpdateCommands-QUYX6BVR.js} +15 -15
- package/{handleSendMessageAction-FCEFFAV4.js → handleSendMessageAction-FDIWBQUB.js} +65 -23
- package/{hostCredentialCreate-YEWCAMZN.js → hostCredentialCreate-CEXQHYT4.js} +53 -49
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-USDZXKIL.js} +1 -1
- package/{localRuntimeAdapter-Z22ZOZRY.js → localRuntimeAdapter-O3JBRK6S.js} +51 -47
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-QKWTPBQQ.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-3CIC4SKC.js} +1 -1
- package/{machineCommands-PT5OJ36V.js → machineCommands-I3YA7TNC.js} +52 -48
- package/{machineWsRunDispatch-DQVNBSVE.js → machineWsRunDispatch-E5CIE2OJ.js} +52 -48
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-GO6AYT63.js → mcpLocalAuthorizeCommand-K5J2VMG6.js} +10 -6
- package/{memberThunks-JFYC4Z5L.js → memberThunks-T7EAZE6A.js} +3 -3
- package/package.json +2 -1
- package/{projectArchive-4XUC5SLF.js → projectArchive-A7E65AZO.js} +13 -13
- package/{readlineWorkspace-7U5QM3OM.js → readlineWorkspace-2O65NBFG.js} +89 -86
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-GRT72HLK.js} +3 -3
- package/{runAgentClientLoop-7D7UCAS2.js → runAgentClientLoop-NWCZIXCG.js} +25 -25
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-26HYHFTK.js} +9 -6
- package/{secretCommands-2FEMRUFM.js → secretCommands-XR72SHLK.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-CBG3X46B.js} +2 -2
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-EWTDZOAX.js} +3 -3
- package/{settingThunks-IHXUF276.js → settingThunks-X4PT66J2.js} +1 -1
- package/{spaceCommands-WCLD36WH.js → spaceCommands-EVSNTGRS.js} +14 -14
- package/{streamAgentChatTurn-DVTOINT3.js → streamAgentChatTurn-SYP3OEM5.js} +50 -50
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-YHPZ7K6E.js} +1 -1
- package/{tools-BOPINT5S.js → tools-2AO2SK4L.js} +20 -20
- package/{tuiRestart-5F2APN66.js → tuiRestart-HBQDF4AE.js} +2 -2
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-Q2PNR63K.js} +4 -4
- package/{updateCommands-FBYA5WVG.js → updateCommands-6SI7NWVC.js} +3 -3
- package/{updateDialogTitleAction-S76PUCLQ.js → updateDialogTitleAction-MWVMBIPZ.js} +10 -10
- package/{usageCommand-L4OFWXEU.js → usageCommand-D44AOTMH.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-IRIMKDI5.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-BJIJKKIS.js} +2 -2
- package/{chunk-MYYNZG2M.js → chunk-CJ2BP6V7.js} +3 -3
- package/{chunk-HZDK56EK.js → chunk-IFJ6OTI6.js} +0 -0
- package/{chunk-WMKA2DPK.js → chunk-LMMRWGGJ.js} +3 -3
- package/{chunk-EDT65EUE.js → chunk-WZPG63Q4.js} +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KGOBJAWC.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZKKJZBNO.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PKMDYRAM.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-USGHJSGO.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-KX6YBIHG.js";
|
|
17
17
|
import {
|
|
18
18
|
applyToolSurfaceConstraints
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JCQ3WCQ3.js";
|
|
20
20
|
import {
|
|
21
21
|
ownedAgentKey
|
|
22
22
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-4O22PGNQ.js";
|
|
39
39
|
import {
|
|
40
40
|
t
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-R7D5SRAZ.js";
|
|
42
42
|
import {
|
|
43
43
|
toErrorMessage
|
|
44
44
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D35TOEMM.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K5CIMK3R.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3ZWJVKFB.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZKKJZBNO.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,16 +35,19 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-A55E2OCP.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QJ5YDTEF.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-IXAGRTAR.js";
|
|
45
|
+
import {
|
|
46
|
+
selectCurrentServer
|
|
47
|
+
} from "./chunk-MTM4LRVG.js";
|
|
45
48
|
import {
|
|
46
49
|
write
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
48
51
|
import {
|
|
49
52
|
addActiveController,
|
|
50
53
|
getActiveDialogKey,
|
|
@@ -54,9 +57,6 @@ import {
|
|
|
54
57
|
import {
|
|
55
58
|
require_react
|
|
56
59
|
} from "./chunk-RD3QLZQV.js";
|
|
57
|
-
import {
|
|
58
|
-
selectCurrentServer
|
|
59
|
-
} from "./chunk-MTM4LRVG.js";
|
|
60
60
|
import {
|
|
61
61
|
createAsyncThunk
|
|
62
62
|
} from "./chunk-6XVPMGXK.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
migrateAgentSecrets,
|
|
18
18
|
normalizeAgentRuntimeToolPolicy
|
|
19
19
|
} from "./chunk-USGHJSGO.js";
|
|
20
|
-
import {
|
|
21
|
-
createFileCredentialBroker
|
|
22
|
-
} from "./chunk-E6A5NHDH.js";
|
|
23
20
|
import {
|
|
24
21
|
asRecordOrEmpty
|
|
25
22
|
} from "./chunk-KX6YBIHG.js";
|
|
23
|
+
import {
|
|
24
|
+
createFileCredentialBroker
|
|
25
|
+
} from "./chunk-E6A5NHDH.js";
|
|
26
26
|
import {
|
|
27
27
|
isLevelNotFoundError
|
|
28
28
|
} from "./chunk-OW765XBU.js";
|
|
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
|
|
|
458
458
|
const overrides = {};
|
|
459
459
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
460
460
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
461
|
-
const { _executeModel } = await import("./_executeModel-
|
|
461
|
+
const { _executeModel } = await import("./_executeModel-55PHWQWB.js");
|
|
462
462
|
return _executeModel(
|
|
463
463
|
{
|
|
464
464
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
|
|
|
479
479
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
480
480
|
*/
|
|
481
481
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
482
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
482
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-NWCZIXCG.js");
|
|
483
483
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
484
484
|
{
|
|
485
485
|
agentKey: args.agentKey,
|
|
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
|
|
|
495
495
|
* 聊天轮次流式 Agent 调用
|
|
496
496
|
*/
|
|
497
497
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
498
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
498
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-SYP3OEM5.js");
|
|
499
499
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
500
500
|
}),
|
|
501
501
|
/**
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// packages/database/levelLockError.ts
|
|
2
|
-
function isLevelLockError(error) {
|
|
3
|
-
return typeof error === "object" && error !== null && error.code === "LEVEL_LOCKED";
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
// packages/cli/levelLazyShim.mjs
|
|
7
2
|
import { createRequire } from "node:module";
|
|
8
3
|
var _require = createRequire(import.meta.url);
|
|
@@ -105,46 +100,7 @@ function createLevelAuthorityStore(source) {
|
|
|
105
100
|
};
|
|
106
101
|
}
|
|
107
102
|
|
|
108
|
-
// packages/database-engine/legacyServerDb.ts
|
|
109
|
-
function createLegacyServerDb(store) {
|
|
110
|
-
const batch = (ops) => {
|
|
111
|
-
if (Array.isArray(ops)) {
|
|
112
|
-
return store.batchWrite(ops);
|
|
113
|
-
}
|
|
114
|
-
return store.createBatch();
|
|
115
|
-
};
|
|
116
|
-
return {
|
|
117
|
-
get location() {
|
|
118
|
-
return store.location;
|
|
119
|
-
},
|
|
120
|
-
get status() {
|
|
121
|
-
return store.status;
|
|
122
|
-
},
|
|
123
|
-
async open() {
|
|
124
|
-
await store.open();
|
|
125
|
-
},
|
|
126
|
-
async close() {
|
|
127
|
-
await store.close();
|
|
128
|
-
},
|
|
129
|
-
async get(key) {
|
|
130
|
-
return store.get(key);
|
|
131
|
-
},
|
|
132
|
-
async put(key, value) {
|
|
133
|
-
await store.put(key, value);
|
|
134
|
-
},
|
|
135
|
-
async del(key) {
|
|
136
|
-
await store.del(key);
|
|
137
|
-
},
|
|
138
|
-
batch,
|
|
139
|
-
iterator(options = {}) {
|
|
140
|
-
return store.iterator(options);
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
103
|
export {
|
|
146
104
|
Level,
|
|
147
|
-
|
|
148
|
-
createLevelAuthorityStore,
|
|
149
|
-
createLegacyServerDb
|
|
105
|
+
createLevelAuthorityStore
|
|
150
106
|
};
|
|
@@ -2935,6 +2935,8 @@ var TOOL_FAMILY_OVERRIDES = {
|
|
|
2935
2935
|
readPage: TOOL_FAMILIES.read,
|
|
2936
2936
|
readArtifact: TOOL_FAMILIES.read,
|
|
2937
2937
|
writeFile: TOOL_FAMILIES.write,
|
|
2938
|
+
materializeWorkspaceFile: TOOL_FAMILIES.write,
|
|
2939
|
+
commitSandboxArtifact: TOOL_FAMILIES.write,
|
|
2938
2940
|
editFile: TOOL_FAMILIES.write,
|
|
2939
2941
|
createDoc: TOOL_FAMILIES.write,
|
|
2940
2942
|
updateDoc: TOOL_FAMILIES.write,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// packages/database-engine/cliAuthorityBrokerClient.ts
|
|
2
2
|
import { createConnection } from "node:net";
|
|
3
|
+
import { connect as connectTls } from "node:tls";
|
|
3
4
|
var DEFAULT_ITERATOR_PAGE_SIZE = 200;
|
|
4
5
|
var CliAuthorityBrokerUnavailableError = class extends Error {
|
|
5
6
|
reason = "cli_authority_broker_unavailable";
|
|
@@ -112,6 +113,8 @@ function isNotFoundBrokerError(error) {
|
|
|
112
113
|
}
|
|
113
114
|
function createCliAuthorityBrokerSocketInvoker(options) {
|
|
114
115
|
const target = resolveBrokerSocketTarget(options.endpoint);
|
|
116
|
+
const connectedEvent = options.tls ? "secureConnect" : "connect";
|
|
117
|
+
const connect = () => target.kind === "unix" ? createConnection(target.path) : options.tls ? connectTls({ host: target.host, port: target.port, servername: "localhost", ...options.tls, rejectUnauthorized: true }) : createConnection({ host: target.host, port: target.port });
|
|
115
118
|
const timeoutMs = options.timeoutMs ?? 5e3;
|
|
116
119
|
const idleTimeoutMs = options.idleTimeoutMs ?? 5e3;
|
|
117
120
|
let nextRequestId = 1;
|
|
@@ -164,7 +167,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
|
|
|
164
167
|
return Promise.reject(createClosedError());
|
|
165
168
|
}
|
|
166
169
|
return new Promise((resolve, reject) => {
|
|
167
|
-
const socket =
|
|
170
|
+
const socket = connect();
|
|
168
171
|
let settled = false;
|
|
169
172
|
let buffer = "";
|
|
170
173
|
let timer;
|
|
@@ -196,7 +199,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
|
|
|
196
199
|
finishReject(new CliAuthorityBrokerTimeoutError(options.endpoint, timeoutMs));
|
|
197
200
|
}, timeoutMs);
|
|
198
201
|
socket.setEncoding("utf8");
|
|
199
|
-
socket.on(
|
|
202
|
+
socket.on(connectedEvent, () => {
|
|
200
203
|
if (settled || explicitlyClosed) return;
|
|
201
204
|
socket.write(`${JSON.stringify(request)}
|
|
202
205
|
`);
|
|
@@ -340,7 +343,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
|
|
|
340
343
|
activeConn.socket.ref?.();
|
|
341
344
|
return activeConn;
|
|
342
345
|
}
|
|
343
|
-
const socket =
|
|
346
|
+
const socket = connect();
|
|
344
347
|
const conn = {
|
|
345
348
|
socket,
|
|
346
349
|
connected: false,
|
|
@@ -354,7 +357,7 @@ function createCliAuthorityBrokerSocketInvoker(options) {
|
|
|
354
357
|
activeConn = conn;
|
|
355
358
|
socket.setEncoding("utf8");
|
|
356
359
|
socket.setNoDelay?.(true);
|
|
357
|
-
socket.on(
|
|
360
|
+
socket.on(connectedEvent, () => {
|
|
358
361
|
if (conn.closed) return;
|
|
359
362
|
conn.connected = true;
|
|
360
363
|
const queued = conn.writeQueue.splice(0, conn.writeQueue.length);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-3CIC4SKC.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
deleteDialog,
|
|
3
3
|
runtime_default,
|
|
4
4
|
toast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-A55E2OCP.js";
|
|
6
6
|
import {
|
|
7
7
|
getAllMemberSpaces,
|
|
8
8
|
getCurrentSpaceId,
|
|
9
9
|
getCurrentSpaceIdRaw,
|
|
10
10
|
updateCurrentSpaceIfMatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IXAGRTAR.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
14
|
} from "./chunk-UVLYNWIE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
patchIndividualContentRecord,
|
|
24
24
|
readContentRecordForSpaceSync,
|
|
25
25
|
syncContentRecordSpaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QLGL43SI.js";
|
|
27
27
|
import {
|
|
28
28
|
createSpaceKey,
|
|
29
29
|
normalizeSpaceId
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
uploadFileAction,
|
|
37
37
|
upsertSSREntity,
|
|
38
38
|
write
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
42
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// packages/database/levelLockError.ts
|
|
2
|
+
function isLevelLockError(error) {
|
|
3
|
+
return typeof error === "object" && error !== null && error.code === "LEVEL_LOCKED";
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// packages/database-engine/legacyServerDb.ts
|
|
7
|
+
function createLegacyServerDb(store) {
|
|
8
|
+
const batch = (ops) => {
|
|
9
|
+
if (Array.isArray(ops)) {
|
|
10
|
+
return store.batchWrite(ops);
|
|
11
|
+
}
|
|
12
|
+
return store.createBatch();
|
|
13
|
+
};
|
|
14
|
+
return {
|
|
15
|
+
get location() {
|
|
16
|
+
return store.location;
|
|
17
|
+
},
|
|
18
|
+
get status() {
|
|
19
|
+
return store.status;
|
|
20
|
+
},
|
|
21
|
+
async open() {
|
|
22
|
+
await store.open();
|
|
23
|
+
},
|
|
24
|
+
async close() {
|
|
25
|
+
await store.close();
|
|
26
|
+
},
|
|
27
|
+
async get(key) {
|
|
28
|
+
return store.get(key);
|
|
29
|
+
},
|
|
30
|
+
async put(key, value) {
|
|
31
|
+
await store.put(key, value);
|
|
32
|
+
},
|
|
33
|
+
async del(key) {
|
|
34
|
+
await store.del(key);
|
|
35
|
+
},
|
|
36
|
+
batch,
|
|
37
|
+
iterator(options = {}) {
|
|
38
|
+
return store.iterator(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
isLevelLockError,
|
|
45
|
+
createLegacyServerDb
|
|
46
|
+
};
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-YNIYE47Z.js";
|
|
37
37
|
import {
|
|
38
38
|
getDefaultCliLocalRuntimeDb
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7RYODZDD.js";
|
|
40
40
|
import {
|
|
41
41
|
createTokenStatsKey
|
|
42
42
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11658
11658
|
const output = deps.output ?? process.stdout;
|
|
11659
11659
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
11660
11660
|
if (args[0] === "rebuild") {
|
|
11661
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
11661
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-IRIMKDI5.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11729
11729
|
return 0;
|
|
11730
11730
|
}
|
|
11731
11731
|
async function resolveUsageUserId(env) {
|
|
11732
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
11732
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-N6LTB7UY.js");
|
|
11733
11733
|
return resolveLocalUserId(env);
|
|
11734
11734
|
}
|
|
11735
11735
|
function isLocalDbMissingError(error) {
|
|
@@ -2657,11 +2657,12 @@ function validateLocalWriterChild(runId, cwd, policy, deps = {}) {
|
|
|
2657
2657
|
if (!r || r.runId !== runId || r.pid !== process.pid || r.status !== "running" || e?.state !== "known" || e.kind !== "host-local" || e.runtimeKey !== "local" || e.device.kind !== "localhost" || e.device.hostname !== nodeHostname() || e.device.platform !== process.platform || !["cli-command-authorized", "cli-tool-dispatch-authorized"].includes(e.provenance) || e.owner.state !== "verified" || native.state !== "verified" || e.owner.pid !== process.pid || e.owner.startedAt !== native.startedAt || (e.owner.linux?.bootId !== native.linux?.bootId || e.owner.linux?.startTicks !== native.linux?.startTicks) || r.processIdentity !== "verified" || r.processStartedAt !== e.owner.startedAt || e.canonicalCwd !== real || r.cwd !== real || e.permissions.hostWritesAuthorized !== policy.hostWritesAuthorized || e.permissions.readOnly !== policy.readOnly) fail("native identity/authorization");
|
|
2658
2658
|
if (e?.state !== "known") return fail();
|
|
2659
2659
|
const set = (v) => JSON.stringify(v === void 0 ? null : [...new Set(v)].sort());
|
|
2660
|
-
if (set(e.permissions.allowedToolNames) !== set(policy.allowedToolNames) || set(e.permissions.blockedToolNames) !== set(policy.blockedToolNames) || JSON.stringify(e.worktree) !== JSON.stringify(trustedLocalWorktree(real, deps))) fail("scope/worktree");
|
|
2660
|
+
if (set(e.permissions.allowedToolNames) !== set(policy.allowedToolNames) || !policy.readOnly && set(e.permissions.blockedToolNames) !== set(policy.blockedToolNames) || JSON.stringify(e.worktree) !== JSON.stringify(trustedLocalWorktree(real, deps))) fail("scope/worktree");
|
|
2661
2661
|
if (!policy.readOnly && (!policy.hostWritesAuthorized || r?.localWriterClaim?.state !== "held" || r.localWriterClaim.cwd !== real || e.worktree && (r.localWriterClaim.worktree?.root !== e.worktree.root || r.localWriterClaim.worktree.gitDir !== e.worktree.gitDir))) fail();
|
|
2662
|
-
|
|
2662
|
+
const blockedToolNames = policy.readOnly ? [.../* @__PURE__ */ new Set([...e.permissions.blockedToolNames ?? [], ...policy.blockedToolNames ?? []])] : policy.blockedToolNames;
|
|
2663
|
+
return { blockedToolNames };
|
|
2663
2664
|
}, { strict: true, requireDeadOwner: true });
|
|
2664
|
-
|
|
2665
|
+
return validated ?? fail("registry lock busy");
|
|
2665
2666
|
}
|
|
2666
2667
|
async function awaitLocalWriterChild(runId, cwd, policy, deps = {}) {
|
|
2667
2668
|
if (!/^[A-Za-z0-9_-]+$/.test(runId)) throw new Error("[local-writer-resource] child binding invalid id");
|
|
@@ -2675,8 +2676,7 @@ async function awaitLocalWriterChild(runId, cwd, policy, deps = {}) {
|
|
|
2675
2676
|
const native = publication ? nativeOwner(publication.parent.pid, deps) : { state: "unknown" };
|
|
2676
2677
|
const parentLive = publication && native.state === "verified" && publication.parent.startedAt === native.startedAt && publication.parent.linux?.bootId === native.linux?.bootId && publication.parent.linux?.startTicks === native.linux?.startTicks;
|
|
2677
2678
|
try {
|
|
2678
|
-
validateLocalWriterChild(runId, cwd, policy, deps);
|
|
2679
|
-
return;
|
|
2679
|
+
return validateLocalWriterChild(runId, cwd, policy, deps);
|
|
2680
2680
|
} catch (error) {
|
|
2681
2681
|
const lockBusy = String(error).includes("registry lock busy");
|
|
2682
2682
|
const pending = publication?.state === "pending" && r?.execution?.state === "known" && r.execution.owner.state === "unknown";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CUYFRVJF.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A55E2OCP.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-U35UUM5K.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGKAUEV3.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A55E2OCP.js";
|
|
7
7
|
import {
|
|
8
8
|
require_format
|
|
9
9
|
} from "./chunk-BUDVRYES.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
removeCachedEntity,
|
|
17
17
|
upsertSSREntity,
|
|
18
18
|
write
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
20
20
|
import {
|
|
21
21
|
isDevelopment
|
|
22
22
|
} from "./chunk-YHNUDTU4.js";
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// packages/cli/client/cliExitSync.ts
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
var scopes = new AsyncLocalStorage();
|
|
4
|
+
var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
|
|
5
|
+
"owner_mismatch",
|
|
6
|
+
"owner_origin_mismatch",
|
|
7
|
+
"owner_grant_revoked",
|
|
8
|
+
"owner_oauth_unavailable",
|
|
9
|
+
"invalid_grant",
|
|
10
|
+
"auth_no_token",
|
|
11
|
+
"token_expired",
|
|
12
|
+
"user_batch_authority_controlled",
|
|
13
|
+
"tombstone_conflict"
|
|
14
|
+
]);
|
|
15
|
+
var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
|
|
16
|
+
function classifyDialogSyncFailure(error) {
|
|
17
|
+
if (error instanceof Error && error.name === "AbortError") return "aborted";
|
|
18
|
+
if (error instanceof Error && error.name === "TimeoutError") return "timeout";
|
|
19
|
+
const match = error instanceof Error ? /^remote dialog evidence write failed: HTTP (\d{3})\b([\s\S]*)$/.exec(error.message) : null;
|
|
20
|
+
if (!match) return "transport_or_sync";
|
|
21
|
+
const candidate = SYNC_FAILURE_CODE_RE.exec(match[2] ?? "")?.[1]?.toLowerCase();
|
|
22
|
+
const code = candidate && KNOWN_SYNC_FAILURE_CODES.has(candidate) ? candidate : void 0;
|
|
23
|
+
return code ? `http_${match[1]}(${code})` : `http_${match[1]}`;
|
|
24
|
+
}
|
|
25
|
+
function startOwnedDialogSync(fetchImpl, start) {
|
|
26
|
+
const scope = scopes.getStore();
|
|
27
|
+
if (!scope) return start(fetchImpl);
|
|
28
|
+
if (scope.closed) return Promise.reject(new Error("dialog_sync_scope_closed"));
|
|
29
|
+
const entry = { watermark: scope.entries.length + 1, httpOkRecords: 0, controller: new AbortController(), state: "pending", done: Promise.resolve() };
|
|
30
|
+
scope.entries.push(entry);
|
|
31
|
+
const trackedFetch = async (url, init) => {
|
|
32
|
+
entry.controller.signal.throwIfAborted();
|
|
33
|
+
const signal = init?.signal ? AbortSignal.any([init.signal, entry.controller.signal]) : entry.controller.signal;
|
|
34
|
+
const response = await fetchImpl(url, { ...init, signal });
|
|
35
|
+
signal.throwIfAborted();
|
|
36
|
+
if (response.ok && String(url).includes("/api/v1/db/write/")) entry.httpOkRecords++;
|
|
37
|
+
return response;
|
|
38
|
+
};
|
|
39
|
+
entry.done = Promise.resolve().then(() => start(trackedFetch)).then((result) => {
|
|
40
|
+
if (entry.state === "pending") entry.state = "completed";
|
|
41
|
+
return result;
|
|
42
|
+
}, (error) => {
|
|
43
|
+
if (entry.state === "pending") {
|
|
44
|
+
entry.state = "failed";
|
|
45
|
+
entry.failureClass = classifyDialogSyncFailure(error);
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
});
|
|
49
|
+
void entry.done.catch(() => {
|
|
50
|
+
});
|
|
51
|
+
return entry.done;
|
|
52
|
+
}
|
|
53
|
+
function drain(scope, unsafeRunner = false) {
|
|
54
|
+
if (scope.drain) return scope.drain;
|
|
55
|
+
scope.closed = true;
|
|
56
|
+
scope.drain = (async () => {
|
|
57
|
+
const entries = scope.entries.slice();
|
|
58
|
+
let timer;
|
|
59
|
+
const abortPending = (classification) => {
|
|
60
|
+
for (const entry of entries) if (entry.state === "pending") {
|
|
61
|
+
entry.state = "timeout";
|
|
62
|
+
entry.failureClass = classification;
|
|
63
|
+
entry.controller.abort(new Error("dialog_sync_drain_stopped"));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
try {
|
|
67
|
+
if (unsafeRunner) abortPending("runner_not_stopped");
|
|
68
|
+
else if (entries.length) await Promise.race([
|
|
69
|
+
Promise.allSettled(entries.map((entry) => entry.done)),
|
|
70
|
+
new Promise((resolve) => {
|
|
71
|
+
timer = setTimeout(() => {
|
|
72
|
+
abortPending("timeout");
|
|
73
|
+
resolve();
|
|
74
|
+
}, scope.timeoutMs);
|
|
75
|
+
})
|
|
76
|
+
]);
|
|
77
|
+
} finally {
|
|
78
|
+
if (timer) clearTimeout(timer);
|
|
79
|
+
}
|
|
80
|
+
const failed = entries.filter((entry) => entry.state !== "completed");
|
|
81
|
+
for (const entry of failed) scope.output.write(`[nolo] dialog_sync ${entry.state}: watermark=${entry.watermark} httpOkRecords=${entry.httpOkRecords} class=${entry.failureClass ?? entry.state}; local history retained; remote sync incomplete.
|
|
82
|
+
`);
|
|
83
|
+
return failed.length === 0;
|
|
84
|
+
})();
|
|
85
|
+
return scope.drain;
|
|
86
|
+
}
|
|
87
|
+
function exitCliFromWatchdog(code, exit, stopRunner) {
|
|
88
|
+
const scope = scopes.getStore();
|
|
89
|
+
if (!scope) {
|
|
90
|
+
exit(code);
|
|
91
|
+
return Promise.resolve();
|
|
92
|
+
}
|
|
93
|
+
if (scope.watchdogExit) return scope.watchdogExit;
|
|
94
|
+
scope.closed = true;
|
|
95
|
+
scope.watchdogExit = (async () => {
|
|
96
|
+
let stopped = false;
|
|
97
|
+
try {
|
|
98
|
+
stopped = await stopRunner();
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
if (!stopped) scope.output.write("[nolo] dialog_sync failed: class=runner_not_stopped; cancelling pending sync before hard exit.\n");
|
|
102
|
+
const complete = await drain(scope, !stopped);
|
|
103
|
+
exit(code === 0 || !complete ? 1 : code);
|
|
104
|
+
})();
|
|
105
|
+
return scope.watchdogExit;
|
|
106
|
+
}
|
|
107
|
+
async function runCliCommandWithSyncDrain(command, options) {
|
|
108
|
+
const timeoutMs = Number.isFinite(options.timeoutMs) && (options.timeoutMs ?? 0) > 0 ? options.timeoutMs : 15e3;
|
|
109
|
+
await scopes.run({ entries: [], closed: false, output: options.output, timeoutMs }, async () => {
|
|
110
|
+
const scope = scopes.getStore();
|
|
111
|
+
let code = 70;
|
|
112
|
+
let commandError;
|
|
113
|
+
let commandThrew = false;
|
|
114
|
+
try {
|
|
115
|
+
code = await command();
|
|
116
|
+
} catch (error) {
|
|
117
|
+
commandThrew = true;
|
|
118
|
+
commandError = error;
|
|
119
|
+
}
|
|
120
|
+
if (scope.watchdogExit) {
|
|
121
|
+
await scope.watchdogExit;
|
|
122
|
+
if (commandThrew) throw commandError;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const complete = await drain(scope);
|
|
126
|
+
if (commandThrew) throw commandError;
|
|
127
|
+
await options.exit(code === 0 && !complete ? 1 : code);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export {
|
|
132
|
+
classifyDialogSyncFailure,
|
|
133
|
+
startOwnedDialogSync,
|
|
134
|
+
exitCliFromWatchdog,
|
|
135
|
+
runCliCommandWithSyncDrain
|
|
136
|
+
};
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-VF4K2QE6.js";
|
|
4
4
|
import {
|
|
5
5
|
setDialogExtraReferencesAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-43VT5PLM.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAndCacheTableRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TGKAUEV3.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveDialogRuntimeAgentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A55E2OCP.js";
|
|
13
13
|
import {
|
|
14
14
|
createSpaceKey
|
|
15
15
|
} from "./chunk-UAD2WT54.js";
|
|
16
16
|
import {
|
|
17
17
|
selectById
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IFJ6OTI6.js";
|
|
19
19
|
import {
|
|
20
20
|
require_react
|
|
21
21
|
} from "./chunk-RD3QLZQV.js";
|
|
@@ -791,7 +791,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
791
791
|
if (!executionInput) {
|
|
792
792
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
793
793
|
}
|
|
794
|
-
const { findToolExecutor } = await import("./tools-
|
|
794
|
+
const { findToolExecutor } = await import("./tools-2AO2SK4L.js");
|
|
795
795
|
const { executor } = findToolExecutor(run.toolName);
|
|
796
796
|
toolRunStarted({
|
|
797
797
|
id: run.id,
|
|
@@ -815,7 +815,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
815
815
|
const latestState = thunkApi.getState();
|
|
816
816
|
const userId = selectIdentityUserId(latestState);
|
|
817
817
|
if (userId) {
|
|
818
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
818
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-T7EAZE6A.js");
|
|
819
819
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
820
820
|
}
|
|
821
821
|
}
|