nolo-cli 0.263.0-alpha.1 → 0.264.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-GZEGNZDC.js → _executeModel-YQNZNR2Y.js} +15 -15
- package/{agentDeleteCommand-PYQFS2IO.js → agentDeleteCommand-MJF6BWP5.js} +12 -12
- package/{agentEmailCommands-MSPYHNQA.js → agentEmailCommands-KX3OQQAW.js} +13 -13
- package/{agentMachineCommands-HHH7DR26.js → agentMachineCommands-X5ZLRVTF.js} +1 -1
- package/{agentRecordCommands-ANOOR7DX.js → agentRecordCommands-KETL6CLV.js} +13 -13
- package/{agentRun-P6GEVWAT.js → agentRun-DSQD2VC5.js} +13 -13
- package/{agentRunCommand-SF4QKUF2.js → agentRunCommand-COJOJSNF.js} +14 -14
- package/{agentSlice-NWSWCYRW.js → agentSlice-HHNKNNYM.js} +1 -1
- package/{chunk-6S4VPBSW.js → chunk-4RUQ2PFX.js} +4 -4
- package/{chunk-L4KZCAIJ.js → chunk-6K4V4R2I.js} +5 -5
- package/{chunk-KUZSTAE3.js → chunk-7422ZLGL.js} +7 -7
- package/{chunk-KTK64ZZN.js → chunk-7E6YXSFZ.js} +2 -2
- package/{chunk-Z7TB2J74.js → chunk-CWOZIF6Z.js} +1 -1
- package/{chunk-OV47NSYQ.js → chunk-DBCWXGOC.js} +8 -8
- package/{chunk-DPFHC2DK.js → chunk-DBEOW57U.js} +2 -2
- package/{chunk-YSYTCIFN.js → chunk-EBH4RFJ6.js} +216 -33
- package/{chunk-ZZOXGB2Z.js → chunk-EN6WNK2M.js} +5 -5
- package/{chunk-5MGXBQ3H.js → chunk-EODBQPRM.js} +2 -2
- package/{chunk-BUO76CEE.js → chunk-HXEO5DNV.js} +2 -2
- package/chunk-JDMWYVUF.js +449 -0
- package/{chunk-ZMOKHBV5.js → chunk-LYPJYBE5.js} +2 -2
- package/{chunk-OLJSB44A.js → chunk-MALPQFGT.js} +6 -6
- package/{chunk-6KA4XDEI.js → chunk-PDSXYHNI.js} +2 -2
- package/{chunk-QAUBNGF2.js → chunk-QG2ALEDQ.js} +2 -2
- package/{chunk-WWE3TYSA.js → chunk-R5PN5DE2.js} +2 -2
- package/{chunk-JTRU7WEG.js → chunk-TGVVE5BA.js} +177 -44
- package/{chunk-PJVJIDTH.js → chunk-TKLBBR7P.js} +3 -3
- package/{chunk-CQNGHKSG.js → chunk-U7OULUMF.js} +3 -3
- package/{chunk-QHSF7SPP.js → chunk-WLRDY5OG.js} +1 -1
- package/{chunk-WJ5IXN23.js → chunk-ZCMAKAZM.js} +1 -1
- package/{chunk-XCPC4RXE.js → chunk-ZSZBHRLP.js} +4 -4
- package/{commandRegistry-ZEZY7MPW.js → commandRegistry-WOKBQU6B.js} +18 -18
- package/{contentThunks-N3DDKRNJ.js → contentThunks-ERA42OXW.js} +4 -4
- package/{createAgentAutomationAction-W3B6KOIW.js → createAgentAutomationAction-DMD2VDPI.js} +4 -4
- package/{createDialogAction-V6WA7USR.js → createDialogAction-3SPOJQAK.js} +5 -5
- package/{createPageAction-P2HDHBCU.js → createPageAction-AVXUMZVT.js} +5 -5
- package/{deleteDbKey-TDXLWHVF.js → deleteDbKey-KV6MYBAI.js} +5 -5
- package/{dialogSlice-TEV6XXOO.js → dialogSlice-Q7H2YVNO.js} +2 -2
- package/{docStore-OVBEONC7.js → docStore-GWPFDV6Y.js} +1 -1
- package/{handleSendMessageAction-5GZ44SKK.js → handleSendMessageAction-FHGUFT2X.js} +9 -9
- package/{hostCredentialCreate-WOLFFVCM.js → hostCredentialCreate-T6SOV4FN.js} +13 -13
- package/index.js +3 -3
- package/{localAutomationCommands-L333FJPR.js → localAutomationCommands-TJCH7ZSF.js} +1 -1
- package/{localAutomationRuntime-CIHGJBSC.js → localAutomationRuntime-RBAKV5LR.js} +1 -1
- package/{localRuntimeAdapter-6WNR7IYN.js → localRuntimeAdapter-KH6UHNAO.js} +12 -12
- package/{machineCommands-CP7NCD6O.js → machineCommands-F2Z4PV5E.js} +14 -14
- package/{machineWsRunDispatch-YIAY2LPK.js → machineWsRunDispatch-YY2FJP2O.js} +13 -13
- package/{memberThunks-TD76IFGA.js → memberThunks-NEZRAW5K.js} +18 -175
- package/package.json +1 -1
- package/{projectArchive-KJRBIY3O.js → projectArchive-WE3VVPZ2.js} +5 -5
- package/{readlineWorkspace-2PLTEZDM.js → readlineWorkspace-CJ5M7SU6.js} +17 -17
- package/{runAgentClientLoop-IBWSCK2D.js → runAgentClientLoop-2SFASHDS.js} +13 -13
- package/{streamAgentChatTurn-JAAROGLD.js → streamAgentChatTurn-KOUWITHH.js} +15 -15
- package/{tools-TCOYT5DJ.js → tools-WN4AVSNS.js} +10 -10
- package/{updateDialogTitleAction-O3TRFRIH.js → updateDialogTitleAction-XOSLNRT3.js} +4 -4
- package/chunk-EHFDVQF5.js +0 -247
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
mergeAgentToolsWithRuntime,
|
|
12
12
|
projectDesktopToolUiContent,
|
|
13
13
|
resolveTurnToolContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MALPQFGT.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveUserSkillRuntime
|
|
17
17
|
} from "./chunk-TEFD5E2D.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-RGQ4UUWZ.js";
|
|
23
23
|
import {
|
|
24
24
|
performServerProxyFetchWithRetry
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LYPJYBE5.js";
|
|
26
26
|
import {
|
|
27
27
|
ZOHO_MAIL_TOOL_NAMES,
|
|
28
28
|
clearGateTurn,
|
|
@@ -32,20 +32,20 @@ import {
|
|
|
32
32
|
pushGate,
|
|
33
33
|
targetForRunKind,
|
|
34
34
|
waitForAbortableDelay
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZSZBHRLP.js";
|
|
36
36
|
import "./chunk-NF64D32W.js";
|
|
37
37
|
import {
|
|
38
38
|
getUserPreferencesStore
|
|
39
39
|
} from "./chunk-P62DHV4F.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-7E6YXSFZ.js";
|
|
41
41
|
import "./chunk-NTUNHTJV.js";
|
|
42
42
|
import "./chunk-RIRFHJTW.js";
|
|
43
43
|
import "./chunk-WX266G2C.js";
|
|
44
44
|
import "./chunk-63W5N6P3.js";
|
|
45
45
|
import "./chunk-AGIM7IMJ.js";
|
|
46
46
|
import "./chunk-VF4K2QE6.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-TGVVE5BA.js";
|
|
48
|
+
import "./chunk-JDMWYVUF.js";
|
|
49
49
|
import {
|
|
50
50
|
admitPendingUserMessages,
|
|
51
51
|
clearHistoryErrorAfterSuccessfulSend,
|
|
@@ -62,14 +62,14 @@ import {
|
|
|
62
62
|
setMessages,
|
|
63
63
|
toolResultNeedsUserConfirmation,
|
|
64
64
|
updateToolMessage
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-DBCWXGOC.js";
|
|
66
66
|
import "./chunk-KDDXC2IH.js";
|
|
67
67
|
import "./chunk-TZXPT53C.js";
|
|
68
68
|
import "./chunk-6QDYSCPW.js";
|
|
69
69
|
import "./chunk-FGXG6OLW.js";
|
|
70
70
|
import {
|
|
71
71
|
streamAgentChatTurn
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-TKLBBR7P.js";
|
|
73
73
|
import "./chunk-IB5AR52X.js";
|
|
74
74
|
import "./chunk-BYXBJQAS.js";
|
|
75
75
|
import "./chunk-KZO2MTVM.js";
|
|
@@ -1884,7 +1884,7 @@ var handleSendMessageAction = async (args, thunkApi) => {
|
|
|
1884
1884
|
const dialogKey = dialogConfig.dbKey;
|
|
1885
1885
|
const projectId = isDesktopContext && dialogKey ? readDialogProjectId(window.localStorage, dialogKey) : null;
|
|
1886
1886
|
if (projectId) {
|
|
1887
|
-
const { ensureProjectArchive } = await import("./projectArchive-
|
|
1887
|
+
const { ensureProjectArchive } = await import("./projectArchive-WE3VVPZ2.js");
|
|
1888
1888
|
const { DESKTOP_FOLDER_PROJECTS_KEY: DESKTOP_FOLDER_PROJECTS_KEY2, readDesktopFolderProjects: readDesktopFolderProjects2 } = await import("./desktopFolderProjects-4POAMVJN.js");
|
|
1889
1889
|
const project = readDesktopFolderProjects2(window.localStorage.getItem(DESKTOP_FOLDER_PROJECTS_KEY2)).find((entry) => entry.id === projectId);
|
|
1890
1890
|
if (!project) throw new Error("\u9879\u76EE\u5DF2\u4E0D\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u9879\u76EE");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentCreateCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CWOZIF6Z.js";
|
|
4
4
|
import {
|
|
5
5
|
BIGMODEL_PROVIDER_TARGET,
|
|
6
6
|
normalizeOrigin
|
|
7
7
|
} from "./chunk-XFYFMTOM.js";
|
|
8
8
|
import "./chunk-5YI447UL.js";
|
|
9
9
|
import "./chunk-LRLLWD4P.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EN6WNK2M.js";
|
|
11
11
|
import "./chunk-2O72G3U2.js";
|
|
12
12
|
import "./chunk-XT6C2QZW.js";
|
|
13
13
|
import "./chunk-R72QWIFO.js";
|
|
@@ -23,34 +23,34 @@ import "./chunk-JUMQJSQF.js";
|
|
|
23
23
|
import "./chunk-VIWDGTDA.js";
|
|
24
24
|
import "./chunk-ATNTHIZI.js";
|
|
25
25
|
import "./chunk-TEFD5E2D.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DBEOW57U.js";
|
|
27
27
|
import "./chunk-56OAS5RZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-EBH4RFJ6.js";
|
|
29
29
|
import "./chunk-ZJACPM5O.js";
|
|
30
30
|
import "./chunk-NHLLXINQ.js";
|
|
31
31
|
import "./chunk-MVOZ22RZ.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-4RUQ2PFX.js";
|
|
33
33
|
import "./chunk-WDWZPASX.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-ZCMAKAZM.js";
|
|
35
|
+
import "./chunk-ZSZBHRLP.js";
|
|
36
36
|
import "./chunk-NF64D32W.js";
|
|
37
37
|
import "./chunk-P62DHV4F.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-7E6YXSFZ.js";
|
|
39
39
|
import "./chunk-NTUNHTJV.js";
|
|
40
40
|
import "./chunk-RIRFHJTW.js";
|
|
41
41
|
import "./chunk-WX266G2C.js";
|
|
42
42
|
import "./chunk-63W5N6P3.js";
|
|
43
43
|
import "./chunk-AGIM7IMJ.js";
|
|
44
44
|
import "./chunk-VF4K2QE6.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-HXEO5DNV.js";
|
|
46
|
+
import "./chunk-TGVVE5BA.js";
|
|
47
|
+
import "./chunk-JDMWYVUF.js";
|
|
48
|
+
import "./chunk-DBCWXGOC.js";
|
|
49
49
|
import "./chunk-KDDXC2IH.js";
|
|
50
50
|
import "./chunk-TZXPT53C.js";
|
|
51
51
|
import "./chunk-6QDYSCPW.js";
|
|
52
52
|
import "./chunk-FGXG6OLW.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-TKLBBR7P.js";
|
|
54
54
|
import "./chunk-IB5AR52X.js";
|
|
55
55
|
import "./chunk-BYXBJQAS.js";
|
|
56
56
|
import "./chunk-KZO2MTVM.js";
|
package/index.js
CHANGED
|
@@ -138,9 +138,9 @@ async function runStandardCliEntrypoint() {
|
|
|
138
138
|
return proc.exited;
|
|
139
139
|
}
|
|
140
140
|
async function launchTuiWorkspace(args2) {
|
|
141
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
141
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-CJ5M7SU6.js");
|
|
142
142
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-Z2ZVBIGN.js");
|
|
143
|
-
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-
|
|
143
|
+
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-KH6UHNAO.js");
|
|
144
144
|
setCliAutoCompactionSummaryFallback(
|
|
145
145
|
createTuiSummaryLlmCaller(args2.env, { platformPrimary: true })
|
|
146
146
|
);
|
|
@@ -174,7 +174,7 @@ async function runStandardCliEntrypoint() {
|
|
|
174
174
|
renderHelpText,
|
|
175
175
|
resolveCommand,
|
|
176
176
|
runResolvedCommand
|
|
177
|
-
} = await import("./commandRegistry-
|
|
177
|
+
} = await import("./commandRegistry-WOKBQU6B.js");
|
|
178
178
|
const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KOWK4HOG.js");
|
|
179
179
|
const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-X7DL7PUN.js");
|
|
180
180
|
const runtimeEnv = {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createConnectorLocalAutomationScheduler,
|
|
3
3
|
createLocalAutomationExecutor,
|
|
4
4
|
withLocalAutomationShutdown
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WLRDY5OG.js";
|
|
6
6
|
import "./chunk-XT6C2QZW.js";
|
|
7
7
|
import "./chunk-QKM55LP2.js";
|
|
8
8
|
import "./chunk-J44TXB4J.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
withRuntimeEnabledPacksAndPrompt,
|
|
41
41
|
writeDialog,
|
|
42
42
|
writeLocalTokenRecord
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EN6WNK2M.js";
|
|
44
44
|
import "./chunk-2O72G3U2.js";
|
|
45
45
|
import "./chunk-XT6C2QZW.js";
|
|
46
46
|
import "./chunk-R72QWIFO.js";
|
|
@@ -56,34 +56,34 @@ import "./chunk-JUMQJSQF.js";
|
|
|
56
56
|
import "./chunk-VIWDGTDA.js";
|
|
57
57
|
import "./chunk-ATNTHIZI.js";
|
|
58
58
|
import "./chunk-TEFD5E2D.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-DBEOW57U.js";
|
|
60
60
|
import "./chunk-56OAS5RZ.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-EBH4RFJ6.js";
|
|
62
62
|
import "./chunk-ZJACPM5O.js";
|
|
63
63
|
import "./chunk-NHLLXINQ.js";
|
|
64
64
|
import "./chunk-MVOZ22RZ.js";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-4RUQ2PFX.js";
|
|
66
66
|
import "./chunk-WDWZPASX.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-ZCMAKAZM.js";
|
|
68
|
+
import "./chunk-ZSZBHRLP.js";
|
|
69
69
|
import "./chunk-NF64D32W.js";
|
|
70
70
|
import "./chunk-P62DHV4F.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-7E6YXSFZ.js";
|
|
72
72
|
import "./chunk-NTUNHTJV.js";
|
|
73
73
|
import "./chunk-RIRFHJTW.js";
|
|
74
74
|
import "./chunk-WX266G2C.js";
|
|
75
75
|
import "./chunk-63W5N6P3.js";
|
|
76
76
|
import "./chunk-AGIM7IMJ.js";
|
|
77
77
|
import "./chunk-VF4K2QE6.js";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-HXEO5DNV.js";
|
|
79
|
+
import "./chunk-TGVVE5BA.js";
|
|
80
|
+
import "./chunk-JDMWYVUF.js";
|
|
81
|
+
import "./chunk-DBCWXGOC.js";
|
|
82
82
|
import "./chunk-KDDXC2IH.js";
|
|
83
83
|
import "./chunk-TZXPT53C.js";
|
|
84
84
|
import "./chunk-6QDYSCPW.js";
|
|
85
85
|
import "./chunk-FGXG6OLW.js";
|
|
86
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-TKLBBR7P.js";
|
|
87
87
|
import "./chunk-IB5AR52X.js";
|
|
88
88
|
import "./chunk-BYXBJQAS.js";
|
|
89
89
|
import "./chunk-KZO2MTVM.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
handleConnectorRunMessage,
|
|
7
7
|
resolveMachineRunPermissionPolicy,
|
|
8
8
|
withConnectorAliveSignal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R5PN5DE2.js";
|
|
10
10
|
import {
|
|
11
11
|
MAX_CONNECTOR_TIMER_DELAY_MS,
|
|
12
12
|
clampConnectorTimerDelayMs,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveConnectorProbeTimeoutMs,
|
|
16
16
|
resolveConnectorWebSocketTarget
|
|
17
17
|
} from "./chunk-LISC7BD4.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-EN6WNK2M.js";
|
|
19
19
|
import "./chunk-2O72G3U2.js";
|
|
20
20
|
import "./chunk-XT6C2QZW.js";
|
|
21
21
|
import "./chunk-R72QWIFO.js";
|
|
@@ -31,34 +31,34 @@ import "./chunk-JUMQJSQF.js";
|
|
|
31
31
|
import "./chunk-VIWDGTDA.js";
|
|
32
32
|
import "./chunk-ATNTHIZI.js";
|
|
33
33
|
import "./chunk-TEFD5E2D.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-DBEOW57U.js";
|
|
35
35
|
import "./chunk-56OAS5RZ.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-EBH4RFJ6.js";
|
|
37
37
|
import "./chunk-ZJACPM5O.js";
|
|
38
38
|
import "./chunk-NHLLXINQ.js";
|
|
39
39
|
import "./chunk-MVOZ22RZ.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-4RUQ2PFX.js";
|
|
41
41
|
import "./chunk-WDWZPASX.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-ZCMAKAZM.js";
|
|
43
|
+
import "./chunk-ZSZBHRLP.js";
|
|
44
44
|
import "./chunk-NF64D32W.js";
|
|
45
45
|
import "./chunk-P62DHV4F.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-7E6YXSFZ.js";
|
|
47
47
|
import "./chunk-NTUNHTJV.js";
|
|
48
48
|
import "./chunk-RIRFHJTW.js";
|
|
49
49
|
import "./chunk-WX266G2C.js";
|
|
50
50
|
import "./chunk-63W5N6P3.js";
|
|
51
51
|
import "./chunk-AGIM7IMJ.js";
|
|
52
52
|
import "./chunk-VF4K2QE6.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-HXEO5DNV.js";
|
|
54
|
+
import "./chunk-TGVVE5BA.js";
|
|
55
|
+
import "./chunk-JDMWYVUF.js";
|
|
56
|
+
import "./chunk-DBCWXGOC.js";
|
|
57
57
|
import "./chunk-KDDXC2IH.js";
|
|
58
58
|
import "./chunk-TZXPT53C.js";
|
|
59
59
|
import "./chunk-6QDYSCPW.js";
|
|
60
60
|
import "./chunk-FGXG6OLW.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-TKLBBR7P.js";
|
|
62
62
|
import "./chunk-IB5AR52X.js";
|
|
63
63
|
import "./chunk-BYXBJQAS.js";
|
|
64
64
|
import "./chunk-KZO2MTVM.js";
|
|
@@ -1345,7 +1345,7 @@ async function runMachineConnectCommand(args, deps = {}) {
|
|
|
1345
1345
|
try {
|
|
1346
1346
|
const runtimeServerUrl = env.NOLO_CONNECT_RUNTIME_SERVER_URL || env.NOLO_RUNTIME_SERVER_URL || serverUrl;
|
|
1347
1347
|
if (deps.enableLocalAutomationScheduler !== false && env.NOLO_DISABLE_LOCAL_AUTOMATION_SCHEDULER !== "1" && !deps.signal?.aborted) {
|
|
1348
|
-
const createScheduler = deps.createLocalAutomationScheduler ?? (await import("./localAutomationRuntime-
|
|
1348
|
+
const createScheduler = deps.createLocalAutomationScheduler ?? (await import("./localAutomationRuntime-RBAKV5LR.js")).createConnectorLocalAutomationScheduler;
|
|
1349
1349
|
localScheduler = createScheduler({
|
|
1350
1350
|
// Prefer the profile bearer for local ownership. Only fall back to
|
|
1351
1351
|
// the connector credential if the profile has no bearer of its own.
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
runtimeWorkspacePermissionPolicy,
|
|
13
13
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
14
14
|
summarizeAgentConfigForLogs
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-R5PN5DE2.js";
|
|
16
|
+
import "./chunk-EN6WNK2M.js";
|
|
17
17
|
import "./chunk-2O72G3U2.js";
|
|
18
18
|
import "./chunk-XT6C2QZW.js";
|
|
19
19
|
import "./chunk-R72QWIFO.js";
|
|
@@ -29,34 +29,34 @@ import "./chunk-JUMQJSQF.js";
|
|
|
29
29
|
import "./chunk-VIWDGTDA.js";
|
|
30
30
|
import "./chunk-ATNTHIZI.js";
|
|
31
31
|
import "./chunk-TEFD5E2D.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-DBEOW57U.js";
|
|
33
33
|
import "./chunk-56OAS5RZ.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-EBH4RFJ6.js";
|
|
35
35
|
import "./chunk-ZJACPM5O.js";
|
|
36
36
|
import "./chunk-NHLLXINQ.js";
|
|
37
37
|
import "./chunk-MVOZ22RZ.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-4RUQ2PFX.js";
|
|
39
39
|
import "./chunk-WDWZPASX.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-ZCMAKAZM.js";
|
|
41
|
+
import "./chunk-ZSZBHRLP.js";
|
|
42
42
|
import "./chunk-NF64D32W.js";
|
|
43
43
|
import "./chunk-P62DHV4F.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-7E6YXSFZ.js";
|
|
45
45
|
import "./chunk-NTUNHTJV.js";
|
|
46
46
|
import "./chunk-RIRFHJTW.js";
|
|
47
47
|
import "./chunk-WX266G2C.js";
|
|
48
48
|
import "./chunk-63W5N6P3.js";
|
|
49
49
|
import "./chunk-AGIM7IMJ.js";
|
|
50
50
|
import "./chunk-VF4K2QE6.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-HXEO5DNV.js";
|
|
52
|
+
import "./chunk-TGVVE5BA.js";
|
|
53
|
+
import "./chunk-JDMWYVUF.js";
|
|
54
|
+
import "./chunk-DBCWXGOC.js";
|
|
55
55
|
import "./chunk-KDDXC2IH.js";
|
|
56
56
|
import "./chunk-TZXPT53C.js";
|
|
57
57
|
import "./chunk-6QDYSCPW.js";
|
|
58
58
|
import "./chunk-FGXG6OLW.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-TKLBBR7P.js";
|
|
60
60
|
import "./chunk-IB5AR52X.js";
|
|
61
61
|
import "./chunk-BYXBJQAS.js";
|
|
62
62
|
import "./chunk-KZO2MTVM.js";
|
|
@@ -5,19 +5,23 @@ import {
|
|
|
5
5
|
membershipBelongsToUser,
|
|
6
6
|
selectSpaceRemoteAuth,
|
|
7
7
|
spaceListsUser
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZCMAKAZM.js";
|
|
9
9
|
import {
|
|
10
10
|
addMemberSpace,
|
|
11
11
|
appendRecoveredMemberships,
|
|
12
12
|
beginMembershipRequest,
|
|
13
|
+
canUseRemoteSpaceApi,
|
|
13
14
|
getCurrentSpaceIdRaw,
|
|
14
15
|
getLatestMembershipRequestId,
|
|
16
|
+
mutateDbOps,
|
|
15
17
|
setMemberSpaces,
|
|
16
18
|
setMembershipDiscarded,
|
|
17
19
|
setMembershipLoading,
|
|
18
20
|
setMembershipRejected,
|
|
21
|
+
spMemKey,
|
|
22
|
+
syncLocalSpaceEntityCache,
|
|
19
23
|
updateCurrentSpaceIfMatch
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JDMWYVUF.js";
|
|
21
25
|
import "./chunk-BYXBJQAS.js";
|
|
22
26
|
import {
|
|
23
27
|
createPlainAsyncThunk
|
|
@@ -30,7 +34,6 @@ import {
|
|
|
30
34
|
read,
|
|
31
35
|
remove,
|
|
32
36
|
removeCachedEntity,
|
|
33
|
-
upsertSSREntity,
|
|
34
37
|
write
|
|
35
38
|
} from "./chunk-6NYQHXMV.js";
|
|
36
39
|
import "./chunk-3PVYUPXK.js";
|
|
@@ -688,170 +691,6 @@ async function resolveMemberId(db, identifier) {
|
|
|
688
691
|
return trimmed;
|
|
689
692
|
}
|
|
690
693
|
|
|
691
|
-
// packages/create/space/spaceApiClient.ts
|
|
692
|
-
var SPACE_API_TIMEOUT_MS = 1e4;
|
|
693
|
-
var SpaceApiError = class extends Error {
|
|
694
|
-
status;
|
|
695
|
-
code;
|
|
696
|
-
constructor(status, code, message) {
|
|
697
|
-
super(message);
|
|
698
|
-
this.name = "SpaceApiError";
|
|
699
|
-
this.status = status;
|
|
700
|
-
this.code = code;
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
function isDesktopEmbeddedOrigin(origin) {
|
|
704
|
-
if (typeof window === "undefined") return false;
|
|
705
|
-
const shellWindow = window;
|
|
706
|
-
if (shellWindow.__NOLO_EMBEDDED_RUNTIME__ !== true) return false;
|
|
707
|
-
const runtimeOrigin = shellWindow.location?.origin?.replace(/\/+$/, "");
|
|
708
|
-
return Boolean(runtimeOrigin && origin === runtimeOrigin);
|
|
709
|
-
}
|
|
710
|
-
function resolveSpaceApiTarget(state, options) {
|
|
711
|
-
const auth = selectSpaceRemoteAuth(state);
|
|
712
|
-
const token = (options?.token ?? auth.token ?? "").trim();
|
|
713
|
-
if (!token) return null;
|
|
714
|
-
const candidates = options?.serverOrigin !== void 0 ? [options.serverOrigin] : auth.servers;
|
|
715
|
-
for (const raw of candidates) {
|
|
716
|
-
if (typeof raw !== "string") continue;
|
|
717
|
-
const normalized = raw.trim().replace(/\/+$/, "");
|
|
718
|
-
if (!normalized) continue;
|
|
719
|
-
if (isDesktopEmbeddedOrigin(normalized)) continue;
|
|
720
|
-
return { token, serverOrigin: normalized };
|
|
721
|
-
}
|
|
722
|
-
return null;
|
|
723
|
-
}
|
|
724
|
-
function canUseRemoteSpaceApi(state, options) {
|
|
725
|
-
return resolveSpaceApiTarget(state, options) !== null;
|
|
726
|
-
}
|
|
727
|
-
async function callSpaceApi(state, method, path, body, options) {
|
|
728
|
-
if (!path.startsWith("/") || path.startsWith("//")) {
|
|
729
|
-
throw new SpaceApiError(400, "invalid_path", `Invalid Space API path "${path}".`);
|
|
730
|
-
}
|
|
731
|
-
const target = resolveSpaceApiTarget(state, options);
|
|
732
|
-
if (!target) {
|
|
733
|
-
throw new SpaceApiError(0, "no_server", "No authenticated server available for Space API.");
|
|
734
|
-
}
|
|
735
|
-
const requestUrl = `${target.serverOrigin}${path}`;
|
|
736
|
-
const doFetch = options?.fetchImpl ?? fetch;
|
|
737
|
-
const timeoutMs = options?.timeoutMs ?? SPACE_API_TIMEOUT_MS;
|
|
738
|
-
const controller = new AbortController();
|
|
739
|
-
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
740
|
-
try {
|
|
741
|
-
const requestToken = googleSessionRequestToken(target.token, requestUrl);
|
|
742
|
-
const response = await doFetch(requestUrl, {
|
|
743
|
-
method,
|
|
744
|
-
...isGoogleAuthoritySession(target.token) ? { redirect: "error", credentials: "omit" } : {},
|
|
745
|
-
headers: {
|
|
746
|
-
Authorization: `Bearer ${requestToken}`,
|
|
747
|
-
...body !== void 0 ? { "Content-Type": "application/json" } : {}
|
|
748
|
-
},
|
|
749
|
-
...body !== void 0 ? { body: JSON.stringify(body) } : {},
|
|
750
|
-
signal: controller.signal
|
|
751
|
-
});
|
|
752
|
-
if (!response.ok) {
|
|
753
|
-
const payload2 = await response.json().catch(() => null);
|
|
754
|
-
const errObj = payload2 && typeof payload2 === "object" ? payload2 : null;
|
|
755
|
-
throw new SpaceApiError(
|
|
756
|
-
response.status,
|
|
757
|
-
typeof errObj?.code === "string" ? errObj.code : `http_${response.status}`,
|
|
758
|
-
typeof errObj?.error === "string" ? errObj.error : typeof errObj?.message === "string" ? errObj.message : `Space API request failed with HTTP ${response.status}`
|
|
759
|
-
);
|
|
760
|
-
}
|
|
761
|
-
if (response.status === 204 || response.headers.get("content-length") === "0") {
|
|
762
|
-
return { ok: true };
|
|
763
|
-
}
|
|
764
|
-
let payload;
|
|
765
|
-
try {
|
|
766
|
-
payload = await response.json();
|
|
767
|
-
} catch {
|
|
768
|
-
throw new SpaceApiError(
|
|
769
|
-
response.status,
|
|
770
|
-
"invalid_response",
|
|
771
|
-
"Space API returned a non-JSON response."
|
|
772
|
-
);
|
|
773
|
-
}
|
|
774
|
-
if (!payload || typeof payload !== "object") {
|
|
775
|
-
throw new SpaceApiError(
|
|
776
|
-
response.status,
|
|
777
|
-
"invalid_response",
|
|
778
|
-
"Space API returned an unexpected payload."
|
|
779
|
-
);
|
|
780
|
-
}
|
|
781
|
-
return payload;
|
|
782
|
-
} catch (err) {
|
|
783
|
-
if (err instanceof SpaceApiError) throw err;
|
|
784
|
-
if (controller.signal.aborted || err?.name === "AbortError") {
|
|
785
|
-
throw new SpaceApiError(0, "timeout", `Space API request timed out after ${timeoutMs}ms.`);
|
|
786
|
-
}
|
|
787
|
-
throw new SpaceApiError(
|
|
788
|
-
0,
|
|
789
|
-
"network_error",
|
|
790
|
-
err instanceof Error ? err.message : String(err)
|
|
791
|
-
);
|
|
792
|
-
} finally {
|
|
793
|
-
clearTimeout(timer);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
var enc = (segment, fieldName = "segment") => {
|
|
797
|
-
const trimmed = typeof segment === "string" ? segment.trim() : "";
|
|
798
|
-
if (!trimmed) {
|
|
799
|
-
throw new SpaceApiError(400, `invalid_${fieldName}`, `${fieldName} cannot be empty.`);
|
|
800
|
-
}
|
|
801
|
-
return encodeURIComponent(trimmed);
|
|
802
|
-
};
|
|
803
|
-
var sid = (rawSpaceId) => {
|
|
804
|
-
const normalized = normalizeSpaceId(typeof rawSpaceId === "string" ? rawSpaceId.trim() : "");
|
|
805
|
-
if (!normalized) {
|
|
806
|
-
throw new SpaceApiError(400, "invalid_spaceId", "spaceId cannot be empty.");
|
|
807
|
-
}
|
|
808
|
-
return encodeURIComponent(normalized);
|
|
809
|
-
};
|
|
810
|
-
var spaceApiClient = {
|
|
811
|
-
listSpaces: (state, opts) => callSpaceApi(state, "GET", "/api/v1/spaces", void 0, opts),
|
|
812
|
-
createSpace: (state, input, opts) => callSpaceApi(state, "POST", "/api/v1/spaces", input, opts),
|
|
813
|
-
updateSpace: (state, spaceId, input, opts) => callSpaceApi(state, "PATCH", `/api/v1/spaces/${sid(spaceId)}`, input, opts),
|
|
814
|
-
deleteSpace: (state, spaceId, input, opts) => callSpaceApi(state, "POST", `/api/v1/spaces/${sid(spaceId)}/delete`, input, opts),
|
|
815
|
-
mergeSpaces: (state, input, opts) => callSpaceApi(state, "POST", "/api/v1/spaces/merge", input, opts),
|
|
816
|
-
listItems: (state, spaceId, opts) => callSpaceApi(state, "GET", `/api/v1/spaces/${sid(spaceId)}/items`, void 0, opts),
|
|
817
|
-
attachItem: (state, spaceId, input, opts) => callSpaceApi(state, "POST", `/api/v1/spaces/${sid(spaceId)}/items`, input, opts),
|
|
818
|
-
patchItem: (state, spaceId, contentKey, input, opts) => callSpaceApi(
|
|
819
|
-
state,
|
|
820
|
-
"PATCH",
|
|
821
|
-
`/api/v1/spaces/${sid(spaceId)}/items/${enc(contentKey, "contentKey")}`,
|
|
822
|
-
input,
|
|
823
|
-
opts
|
|
824
|
-
),
|
|
825
|
-
moveItems: (state, input, opts) => callSpaceApi(state, "POST", "/api/v1/spaces/items/move", input, opts),
|
|
826
|
-
unlinkItems: (state, spaceId, input, opts) => callSpaceApi(state, "POST", `/api/v1/spaces/${sid(spaceId)}/items/unlink`, input, opts),
|
|
827
|
-
deleteItems: (state, input, opts) => callSpaceApi(state, "POST", "/api/v1/spaces/items/delete", input, opts),
|
|
828
|
-
listCategories: (state, spaceId, opts) => callSpaceApi(state, "GET", `/api/v1/spaces/${sid(spaceId)}/categories`, void 0, opts),
|
|
829
|
-
createCategory: (state, spaceId, input, opts) => callSpaceApi(state, "POST", `/api/v1/spaces/${sid(spaceId)}/categories`, input, opts),
|
|
830
|
-
updateCategory: (state, spaceId, categoryId, input, opts) => callSpaceApi(
|
|
831
|
-
state,
|
|
832
|
-
"PATCH",
|
|
833
|
-
`/api/v1/spaces/${sid(spaceId)}/categories/${enc(categoryId, "categoryId")}`,
|
|
834
|
-
input,
|
|
835
|
-
opts
|
|
836
|
-
),
|
|
837
|
-
deleteCategory: (state, spaceId, categoryId, opts) => callSpaceApi(
|
|
838
|
-
state,
|
|
839
|
-
"DELETE",
|
|
840
|
-
`/api/v1/spaces/${sid(spaceId)}/categories/${enc(categoryId, "categoryId")}`,
|
|
841
|
-
void 0,
|
|
842
|
-
opts
|
|
843
|
-
),
|
|
844
|
-
listMembers: (state, spaceId, opts) => callSpaceApi(state, "GET", `/api/v1/spaces/${sid(spaceId)}/members`, void 0, opts),
|
|
845
|
-
addMember: (state, spaceId, input, opts) => callSpaceApi(state, "POST", `/api/v1/spaces/${sid(spaceId)}/members`, input, opts),
|
|
846
|
-
removeMember: (state, spaceId, memberUserId, opts) => callSpaceApi(
|
|
847
|
-
state,
|
|
848
|
-
"DELETE",
|
|
849
|
-
`/api/v1/spaces/${sid(spaceId)}/members/${enc(memberUserId, "memberUserId")}`,
|
|
850
|
-
void 0,
|
|
851
|
-
opts
|
|
852
|
-
)
|
|
853
|
-
};
|
|
854
|
-
|
|
855
694
|
// packages/create/space/member/removeMemberAction.ts
|
|
856
695
|
var removeMemberAction = async (input, thunkAPI) => {
|
|
857
696
|
const { spaceId, memberId } = input;
|
|
@@ -877,19 +716,23 @@ var removeMemberAction = async (input, thunkAPI) => {
|
|
|
877
716
|
const isLocalSpace = isDeviceLocalSpaceBody(spaceData) || isDeviceLocalOwnerId(spaceData.ownerId);
|
|
878
717
|
const memberKey = createSpaceKey.member(memberId, spaceId);
|
|
879
718
|
if (!isLocalSpace && canUseRemoteSpaceApi(state)) {
|
|
880
|
-
await
|
|
719
|
+
const res = await mutateDbOps(state, [
|
|
720
|
+
{ op: "tombstone", key: spMemKey(spaceId, memberId) }
|
|
721
|
+
]);
|
|
722
|
+
const effectiveUpdatedAt = res?.applied?.[0]?.updatedAt ?? updatedSpaceData.updatedAt;
|
|
723
|
+
const syncedSpace = await syncLocalSpaceEntityCache(thunkAPI, spaceKey, {
|
|
724
|
+
...updatedSpaceData,
|
|
725
|
+
updatedAt: effectiveUpdatedAt
|
|
726
|
+
});
|
|
881
727
|
const localDb = thunkAPI?.extra?.db;
|
|
882
|
-
if (localDb && typeof localDb.put === "function") {
|
|
883
|
-
await localDb.put(spaceKey, updatedSpaceData).catch(() => {
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
728
|
if (localDb && typeof localDb.del === "function") {
|
|
887
729
|
await localDb.del(memberKey).catch(() => {
|
|
888
730
|
});
|
|
889
731
|
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
732
|
+
if (typeof removeCachedEntity === "function") {
|
|
733
|
+
dispatch(removeCachedEntity(memberKey));
|
|
734
|
+
}
|
|
735
|
+
return { spaceId, updatedSpaceData: syncedSpace };
|
|
893
736
|
}
|
|
894
737
|
if (spaceData.ownerId !== currentUserId) {
|
|
895
738
|
throw new Error("\u53EA\u6709\u7A7A\u95F4\u6240\u6709\u8005\u624D\u80FD\u5220\u9664\u6210\u5458");
|
package/package.json
CHANGED
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
} from "./chunk-RGQ4UUWZ.js";
|
|
6
6
|
import {
|
|
7
7
|
createPageAction
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U7OULUMF.js";
|
|
9
9
|
import "./chunk-WX266G2C.js";
|
|
10
10
|
import "./chunk-63W5N6P3.js";
|
|
11
11
|
import "./chunk-AGIM7IMJ.js";
|
|
12
12
|
import "./chunk-VF4K2QE6.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-TGVVE5BA.js";
|
|
14
|
+
import "./chunk-JDMWYVUF.js";
|
|
15
|
+
import "./chunk-DBCWXGOC.js";
|
|
16
16
|
import "./chunk-KDDXC2IH.js";
|
|
17
17
|
import "./chunk-TZXPT53C.js";
|
|
18
18
|
import "./chunk-6QDYSCPW.js";
|
|
19
19
|
import "./chunk-FGXG6OLW.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-TKLBBR7P.js";
|
|
21
21
|
import "./chunk-IB5AR52X.js";
|
|
22
22
|
import "./chunk-BYXBJQAS.js";
|
|
23
23
|
import "./chunk-KZO2MTVM.js";
|