nolo-cli 0.243.0-alpha.1 → 0.243.0-alpha.3
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-QLKALBXT.js → _executeModel-UY5HUVTA.js} +14 -14
- package/{agentDeleteCommand-AUYYX4MU.js → agentDeleteCommand-OHPH75ZB.js} +17 -17
- package/{agentEmailCommands-TZPXTTII.js → agentEmailCommands-2SAJVWW6.js} +17 -17
- package/{agentListCommands-7Z74VVSY.js → agentListCommands-B2GNRH2Z.js} +6 -6
- package/{agentMachineCommands-7JQ45EPE.js → agentMachineCommands-LEMOMUN6.js} +5 -5
- package/{agentRecordCommands-OGOEBWLK.js → agentRecordCommands-VYSZFGDR.js} +17 -17
- package/{agentRunCommand-ZKTHUSE5.js → agentRunCommand-LCQHSWUW.js} +17 -17
- package/{agentRuntimeLocal-ODDHRQ3M.js → agentRuntimeLocal-AMQJ3DDY.js} +3 -3
- package/{agentSlice-ITLJEJAW.js → agentSlice-6X4IOT64.js} +2 -2
- package/{appDeleteCommands-QM6AWGQ5.js → appDeleteCommands-YNA5MDFB.js} +6 -6
- package/{appDeployCommands-6XA2ONV6.js → appDeployCommands-G4AZK4SE.js} +6 -6
- package/{appDeployStatusCommands-E75X542I.js → appDeployStatusCommands-EGXAYHGY.js} +6 -6
- package/{appGetCommands-VKC2FHBH.js → appGetCommands-IU2EM4WN.js} +6 -6
- package/{appListCommands-CICA4AQI.js → appListCommands-2T366VJ2.js} +6 -6
- package/{chunk-7Y3L3IDA.js → chunk-2HZWYJ4G.js} +1 -1
- package/{chunk-Z5C2EICZ.js → chunk-3ZIF6MH3.js} +3 -3
- package/{chunk-DHRYMWMY.js → chunk-4GM57GL6.js} +2 -2
- package/{chunk-76OIOVDN.js → chunk-4Q4ZDPGC.js} +2 -2
- package/{chunk-VNALJT32.js → chunk-53AEDFBL.js} +1 -1
- package/{chunk-WIRH2ZLI.js → chunk-5D6NHP4U.js} +19 -0
- package/{chunk-DOCK6V3Z.js → chunk-6EZ5GDQF.js} +2 -2
- package/{chunk-TT4JI6QR.js → chunk-7N4O3VUH.js} +1 -1
- package/{chunk-VF7F3ADU.js → chunk-A5QJU3RD.js} +2 -2
- package/{chunk-WDDZCQ6V.js → chunk-BH6FBRQE.js} +2 -2
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-K3GJXP2N.js → chunk-ES5W7DYB.js} +4 -4
- package/{chunk-DM323UA6.js → chunk-GJE6Y2Y5.js} +8 -8
- package/{chunk-CYAEPGKY.js → chunk-GYFNNEWL.js} +6 -6
- package/{chunk-3S52WBJS.js → chunk-I2VMBOG6.js} +3 -3
- package/{chunk-NCJZUXRA.js → chunk-IEKRWRCK.js} +2 -2
- package/{chunk-YDWMJOCW.js → chunk-INREDOGO.js} +11 -11
- package/{chunk-Q25LWFGP.js → chunk-IUK5NHLN.js} +1 -1
- package/{chunk-ZCFOIOZ6.js → chunk-LADIVKVA.js} +1 -1
- package/{chunk-BEM6LPD2.js → chunk-LHCGKAFO.js} +18 -13
- package/{chunk-I27WRAPF.js → chunk-OGNWW4SU.js} +5 -5
- package/{chunk-X66UVBL3.js → chunk-OMWHO2G7.js} +1 -1
- package/{chunk-5UY2WQJ6.js → chunk-PDA22NY3.js} +10 -10
- package/{chunk-GFBBHM53.js → chunk-R67A5KZE.js} +4 -4
- package/{chunk-JHHAIL34.js → chunk-SYWYGUPT.js} +1 -1
- package/{chunk-MAURG3J4.js → chunk-TWW562TN.js} +8 -8
- package/{chunk-XBWZ3SPO.js → chunk-UEMUDUHP.js} +1 -1
- package/{chunk-6ZQXUJGM.js → chunk-UIX35POB.js} +2 -2
- package/{chunk-JVJ53XCH.js → chunk-VEVLLBFK.js} +1 -1
- package/{chunk-VTDC64JY.js → chunk-XMSAOVF3.js} +2 -2
- package/{chunk-ORVM574D.js → chunk-YAAQJJ6P.js} +2 -2
- package/{cliLocalAgentRecordReader-SQCTHOXC.js → cliLocalAgentRecordReader-V6CTIXXV.js} +4 -4
- package/{commandRegistry-6P4GP7SY.js → commandRegistry-M5HTHRLM.js} +42 -42
- package/{contentThunks-74IO72TZ.js → contentThunks-Y5AUFZBZ.js} +4 -4
- package/{createAgentAutomationAction-KRNQVWCA.js → createAgentAutomationAction-BBR4YHVB.js} +4 -4
- package/{createDialogAction-TWFKJNUJ.js → createDialogAction-XPCCKG5B.js} +5 -5
- package/{createPageAction-2O2RMNQH.js → createPageAction-IUWX34KS.js} +5 -5
- package/{dialogCommands-OILEFOMW.js → dialogCommands-BL4F6CUD.js} +6 -6
- package/{dialogSlice-BZKPV4FB.js → dialogSlice-BMBKSODJ.js} +3 -3
- package/{docCreateCommands-43U55CVY.js → docCreateCommands-V7WKJK6O.js} +5 -5
- package/{docDeleteCommands-BFTJFJAV.js → docDeleteCommands-2OQMG3A2.js} +6 -6
- package/{docReadCommands-PU3VWGCG.js → docReadCommands-FVABF2BU.js} +5 -5
- package/{docStore-JTAXVIUB.js → docStore-L34AMWWI.js} +1 -1
- package/{docUpdateCommands-7JRDXTSJ.js → docUpdateCommands-H2AZNG2G.js} +5 -5
- package/{handleSendMessageAction-BCNWPO3U.js → handleSendMessageAction-QGYRCZQ7.js} +9 -9
- package/{hostCredentialCreate-LKNAX2SV.js → hostCredentialCreate-3KTIFSQP.js} +17 -17
- package/index.js +3 -3
- package/{localRuntimeAdapter-I5HVICYM.js → localRuntimeAdapter-JY7KHLCE.js} +16 -16
- package/{machineCommands-PUOM4XEL.js → machineCommands-2HYICEWT.js} +17 -17
- package/{machineWsRunDispatch-SOAAV7PQ.js → machineWsRunDispatch-HGGCWIL2.js} +17 -17
- package/{mcpLocalAuthorizeCommand-TMBUP7FX.js → mcpLocalAuthorizeCommand-BDSRBFJB.js} +3 -3
- package/{memberThunks-TWB77UHJ.js → memberThunks-Z7PURCRT.js} +1 -1
- package/package.json +1 -1
- package/{projectArchive-3V5DIVKP.js → projectArchive-KXK5HLGA.js} +5 -5
- package/{readlineWorkspace-NHVNU4DY.js → readlineWorkspace-YTHGX6EV.js} +53 -33
- package/{runAgentClientLoop-EWZ4UOXT.js → runAgentClientLoop-EIHHWDKF.js} +12 -12
- package/{secretCommands-36BCE3UE.js → secretCommands-LH7QTJO2.js} +2 -2
- package/{spaceCommands-SRICYK6S.js → spaceCommands-GFDX7H5J.js} +5 -5
- package/{streamAgentChatTurn-GHPLOX5L.js → streamAgentChatTurn-3IGMGLIN.js} +14 -14
- package/{tools-ZSQGRWKI.js → tools-CKA42QDP.js} +9 -9
- package/{updateDialogTitleAction-MEKAI3YO.js → updateDialogTitleAction-U55I3VAL.js} +4 -4
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
pickDefined,
|
|
6
6
|
printCliError,
|
|
7
7
|
resolveCliContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IUK5NHLN.js";
|
|
9
9
|
import {
|
|
10
10
|
hasFlag,
|
|
11
11
|
hasHelpArg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2HZWYJ4G.js";
|
|
13
13
|
import "./chunk-VF4K2QE6.js";
|
|
14
14
|
import "./chunk-UAD2WT54.js";
|
|
15
15
|
import "./chunk-LKZPX6YH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XMSAOVF3.js";
|
|
17
17
|
import "./chunk-OXFJWWOT.js";
|
|
18
18
|
import "./chunk-VCU5GV42.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SYWYGUPT.js";
|
|
20
|
+
import "./chunk-LHCGKAFO.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-KV5FDJOD.js";
|
|
23
23
|
import "./chunk-ANUP75N2.js";
|
|
@@ -50,7 +50,7 @@ import "./chunk-UKZX3NHN.js";
|
|
|
50
50
|
import "./chunk-SR4FE5VD.js";
|
|
51
51
|
import "./chunk-5MMAK75Q.js";
|
|
52
52
|
import "./chunk-USGHJSGO.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-E6A5NHDH.js";
|
|
54
54
|
import "./chunk-KX6YBIHG.js";
|
|
55
55
|
import "./chunk-TB5KTLNB.js";
|
|
56
56
|
import "./chunk-EWQ3HGNZ.js";
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
pickDefined,
|
|
6
6
|
printCliError,
|
|
7
7
|
resolveCliContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IUK5NHLN.js";
|
|
9
9
|
import {
|
|
10
10
|
hasFlag,
|
|
11
11
|
hasHelpArg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2HZWYJ4G.js";
|
|
13
13
|
import "./chunk-VF4K2QE6.js";
|
|
14
14
|
import "./chunk-UAD2WT54.js";
|
|
15
15
|
import "./chunk-LKZPX6YH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XMSAOVF3.js";
|
|
17
17
|
import "./chunk-OXFJWWOT.js";
|
|
18
18
|
import "./chunk-VCU5GV42.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SYWYGUPT.js";
|
|
20
|
+
import "./chunk-LHCGKAFO.js";
|
|
21
21
|
import "./chunk-ZNFJWEN4.js";
|
|
22
22
|
import "./chunk-KV5FDJOD.js";
|
|
23
23
|
import "./chunk-ANUP75N2.js";
|
|
@@ -50,7 +50,7 @@ import "./chunk-UKZX3NHN.js";
|
|
|
50
50
|
import "./chunk-SR4FE5VD.js";
|
|
51
51
|
import "./chunk-5MMAK75Q.js";
|
|
52
52
|
import "./chunk-USGHJSGO.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-E6A5NHDH.js";
|
|
54
54
|
import "./chunk-KX6YBIHG.js";
|
|
55
55
|
import "./chunk-TB5KTLNB.js";
|
|
56
56
|
import "./chunk-EWQ3HGNZ.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4Q4ZDPGC.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R67A5KZE.js";
|
|
10
10
|
import {
|
|
11
11
|
buildIdentityBlock,
|
|
12
12
|
buildPlatformStaticContextLayers,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-YTYVSOY4.js";
|
|
32
32
|
import {
|
|
33
33
|
createFileCredentialBroker
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-E6A5NHDH.js";
|
|
35
35
|
import {
|
|
36
36
|
MEMORY_USE_GUIDANCE,
|
|
37
37
|
buildUserResponseLanguageContext
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-DLT2DN4M.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-INREDOGO.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-WWTSEBDF.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveAgentRecordFromHybridStore,
|
|
26
26
|
sanitizeAgentRecordForCliOutput,
|
|
27
27
|
writeAgentRecord
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XMSAOVF3.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveCliAgentKeyInput
|
|
31
31
|
} from "./chunk-BR3GT6MR.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ES5W7DYB.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-AGIM7IMJ.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchAndCacheMessages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
19
19
|
import {
|
|
20
20
|
createSpaceKey
|
|
21
21
|
} from "./chunk-UAD2WT54.js";
|
|
@@ -41,6 +41,22 @@ var spaceListsUser = (spaceData, userId) => {
|
|
|
41
41
|
var membershipBelongsToUser = (membership, userId) => !membership.userId || membership.userId === userId;
|
|
42
42
|
var membershipFetchCache = /* @__PURE__ */ new Map();
|
|
43
43
|
var MEMBERSHIP_FETCH_CACHE_TTL_MS = 3e4;
|
|
44
|
+
var resolveDesktopShellRuntime = () => {
|
|
45
|
+
if (typeof window === "undefined") return { isEmbeddedRuntime: false };
|
|
46
|
+
const shellWindow = window;
|
|
47
|
+
return {
|
|
48
|
+
isEmbeddedRuntime: shellWindow.__NOLO_EMBEDDED_RUNTIME__ === true,
|
|
49
|
+
runtimeOrigin: shellWindow.location?.origin
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
var isEmbeddedRuntimeServer = (server, runtime = resolveDesktopShellRuntime()) => {
|
|
53
|
+
if (!runtime.isEmbeddedRuntime || !runtime.runtimeOrigin) return false;
|
|
54
|
+
try {
|
|
55
|
+
return new URL(server).origin === runtime.runtimeOrigin;
|
|
56
|
+
} catch {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
44
60
|
async function fetchMembershipsFromServer(server, token, userId, timeoutMs) {
|
|
45
61
|
if (!token) return { ok: false, memberships: [] };
|
|
46
62
|
googleSessionRequestToken(token, server);
|
|
@@ -77,6 +93,9 @@ async function fetchMembershipsFromServer(server, token, userId, timeoutMs) {
|
|
|
77
93
|
}
|
|
78
94
|
}
|
|
79
95
|
var fetchRemoteUserSpaceMemberships = (server, token, userId, timeoutMs = 5e3) => {
|
|
96
|
+
if (isEmbeddedRuntimeServer(server)) {
|
|
97
|
+
return Promise.resolve({ ok: false, memberships: [] });
|
|
98
|
+
}
|
|
80
99
|
const cacheKey = `${server}|${userId}`;
|
|
81
100
|
const cached = membershipFetchCache.get(cacheKey);
|
|
82
101
|
if (cached) return cached;
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
resolveCreationSpaceId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OMWHO2G7.js";
|
|
18
18
|
import {
|
|
19
19
|
runtime_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentSpaceId
|
|
23
23
|
} from "./chunk-WXZZQRAH.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
listUserRecordsFromServers,
|
|
6
6
|
readLiveDbRecordAfterTombstoneMerge
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LADIVKVA.js";
|
|
8
8
|
import {
|
|
9
9
|
agentRecordHasConfiguredCredential
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XMSAOVF3.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
chmodSync,
|
|
13
13
|
existsSync,
|
|
14
|
+
lstatSync,
|
|
14
15
|
mkdirSync,
|
|
15
16
|
readFileSync,
|
|
16
17
|
unlinkSync,
|
|
@@ -79,7 +80,9 @@ function migrateApiKeyCredentialIfNeeded(ref, homeDir, migration) {
|
|
|
79
80
|
}
|
|
80
81
|
function readApiKeyCredential(ref, homeDir, migration) {
|
|
81
82
|
migrateApiKeyCredentialIfNeeded(ref, homeDir, migration);
|
|
82
|
-
|
|
83
|
+
return readApiKeyCredentialFile(getApiKeyCredentialPath(ref, homeDir));
|
|
84
|
+
}
|
|
85
|
+
function readApiKeyCredentialFile(path) {
|
|
83
86
|
if (!existsSync(path)) return null;
|
|
84
87
|
try {
|
|
85
88
|
const raw = readFileSync(path, "utf8");
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-YDTLGWBU.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAndCacheTableRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OMWHO2G7.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveDialogRuntimeAgentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
13
13
|
import {
|
|
14
14
|
createSpaceKey
|
|
15
15
|
} from "./chunk-UAD2WT54.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-CKA42QDP.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-Z7PURCRT.js");
|
|
819
819
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-523DITKR.js";
|
|
11
11
|
import {
|
|
12
12
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-R67A5KZE.js";
|
|
14
14
|
import {
|
|
15
15
|
cleanupCliSessionForDialog
|
|
16
16
|
} from "./chunk-TRN54YTP.js";
|
|
@@ -14669,7 +14669,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
14669
14669
|
runtimeOptions: args.runtimeOptions
|
|
14670
14670
|
});
|
|
14671
14671
|
if (agentKeyToUse) {
|
|
14672
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
14672
|
+
const { streamAgentChatTurn } = await import("./agentSlice-6X4IOT64.js");
|
|
14673
14673
|
await dispatch(
|
|
14674
14674
|
streamAgentChatTurn({
|
|
14675
14675
|
agentKey: agentKeyToUse,
|
|
@@ -15802,7 +15802,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15802
15802
|
}
|
|
15803
15803
|
if (isCurrentDialog) {
|
|
15804
15804
|
await thunkApi.dispatch(resetMsgs());
|
|
15805
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
15805
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-BMBKSODJ.js");
|
|
15806
15806
|
dispatch(clearPendingAttachments2());
|
|
15807
15807
|
}
|
|
15808
15808
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -15810,15 +15810,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
15810
15810
|
|
|
15811
15811
|
// packages/chat/dialog/dialogSlice.ts
|
|
15812
15812
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
15813
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
15813
|
+
const { createDialogAction } = await import("./createDialogAction-XPCCKG5B.js");
|
|
15814
15814
|
return createDialogAction(args, thunkApi);
|
|
15815
15815
|
};
|
|
15816
15816
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
15817
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
15817
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-BBR4YHVB.js");
|
|
15818
15818
|
return createAgentAutomationAction(args, thunkApi);
|
|
15819
15819
|
};
|
|
15820
15820
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
15821
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
15821
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-U55I3VAL.js");
|
|
15822
15822
|
return updateDialogTitleAction(args, thunkApi);
|
|
15823
15823
|
};
|
|
15824
15824
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -15842,7 +15842,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
15842
15842
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
15843
15843
|
};
|
|
15844
15844
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
15845
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
15845
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-QGYRCZQ7.js");
|
|
15846
15846
|
return handleSendMessageAction(args, thunkApi);
|
|
15847
15847
|
};
|
|
15848
15848
|
function clearDialogState() {
|
|
@@ -15855,7 +15855,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
15855
15855
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
15856
15856
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
15857
15857
|
try {
|
|
15858
|
-
const { createDocState } = await import("./docStore-
|
|
15858
|
+
const { createDocState } = await import("./docStore-L34AMWWI.js");
|
|
15859
15859
|
const pageKey = await createDocState(
|
|
15860
15860
|
{ slateData, title },
|
|
15861
15861
|
{ dispatch, getState }
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A5QJU3RD.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-3ZIF6MH3.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PDA22NY3.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-ES5W7DYB.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-R67A5KZE.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
44
|
} from "./chunk-WXZZQRAH.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-INREDOGO.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ES5W7DYB.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SYWYGUPT.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-USGHJSGO.js";
|
|
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
335
335
|
).unwrap();
|
|
336
336
|
if (dbSpaceId) {
|
|
337
337
|
try {
|
|
338
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
338
|
+
const { updateContentTitle } = await import("./contentThunks-Y5AUFZBZ.js");
|
|
339
339
|
await dispatch(
|
|
340
340
|
updateContentTitle({
|
|
341
341
|
spaceId: dbSpaceId,
|
|
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
async function createDocState(args, thunkApi) {
|
|
381
|
-
const { createPageAction } = await import("./createPageAction-
|
|
381
|
+
const { createPageAction } = await import("./createPageAction-IUWX34KS.js");
|
|
382
382
|
return createPageAction(args, thunkApi);
|
|
383
383
|
}
|
|
384
384
|
function subscribe(listener) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
parsePendingApprovalResult,
|
|
8
8
|
runConnectorToolWithHostApproval,
|
|
9
9
|
withHostApprovalRequest
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-53AEDFBL.js";
|
|
11
11
|
import {
|
|
12
12
|
BROWSER_SHELL_BRIDGE_ENV
|
|
13
13
|
} from "./chunk-2YGBI2XB.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
inlineImageUrlsForCustomProvider,
|
|
74
74
|
prepareTools
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-A5QJU3RD.js";
|
|
76
76
|
import {
|
|
77
77
|
getServerProviderSecret
|
|
78
78
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
resolveCliLocalSpawnDispatch,
|
|
96
96
|
resolveRunContextFacts,
|
|
97
97
|
resolveStartAgentRunCwd
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-PDA22NY3.js";
|
|
99
99
|
import {
|
|
100
100
|
deriveCredentialGroup,
|
|
101
101
|
deriveCustomProviderCredentialGroup
|
|
@@ -109,11 +109,11 @@ import {
|
|
|
109
109
|
} from "./chunk-6PXFEPHL.js";
|
|
110
110
|
import {
|
|
111
111
|
validateAskChoiceInput
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-YAAQJJ6P.js";
|
|
113
113
|
import {
|
|
114
114
|
prepareTokenUsageData,
|
|
115
115
|
runKeyed
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
117
117
|
import {
|
|
118
118
|
applyTokenUsageToDayStats,
|
|
119
119
|
require_format
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
} from "./chunk-523DITKR.js";
|
|
125
125
|
import {
|
|
126
126
|
fetchServerSyncedCredential
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-R67A5KZE.js";
|
|
128
128
|
import {
|
|
129
129
|
defaultLoopbackRequest,
|
|
130
130
|
loadLocalRunChildDialogIds
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
|
|
134
134
|
OAUTH_PROVIDER_REFS,
|
|
135
135
|
getSharedSessionCredentialBroker
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-XMSAOVF3.js";
|
|
137
137
|
import {
|
|
138
138
|
fetchWithTransientRetry,
|
|
139
139
|
isTransientFetchError
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
readDialogMessageRecords,
|
|
190
190
|
readDialogMessages,
|
|
191
191
|
resolveBuiltinLocalCliAgentConfig
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-7N4O3VUH.js";
|
|
193
193
|
import {
|
|
194
194
|
applyPublicAgentCatalogOverride
|
|
195
195
|
} from "./chunk-GEY2UH2I.js";
|
|
@@ -246,11 +246,11 @@ import {
|
|
|
246
246
|
runExecShellGates,
|
|
247
247
|
validateConfiguredRootExecutionLease,
|
|
248
248
|
verifyOwnerRouteAck
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-SYWYGUPT.js";
|
|
250
250
|
import {
|
|
251
251
|
createHostCredentialBrokerChain,
|
|
252
252
|
createStrictHostCredentialBroker
|
|
253
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-LHCGKAFO.js";
|
|
254
254
|
import {
|
|
255
255
|
accumulateGeminiChunks,
|
|
256
256
|
buildGeminiGenerateContentRequest,
|
|
@@ -377,7 +377,7 @@ import {
|
|
|
377
377
|
} from "./chunk-USGHJSGO.js";
|
|
378
378
|
import {
|
|
379
379
|
createFileCredentialBroker
|
|
380
|
-
} from "./chunk-
|
|
380
|
+
} from "./chunk-E6A5NHDH.js";
|
|
381
381
|
import {
|
|
382
382
|
asRecordOrEmpty
|
|
383
383
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertCredentialRef
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E6A5NHDH.js";
|
|
4
4
|
import {
|
|
5
5
|
asTrimmedString
|
|
6
6
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
10
10
|
var LINUX_SECRET_SERVICE_ATTRIBUTE = "nolo-credential";
|
|
11
11
|
var SECRET_TOOL_NO_MATCH_EXIT = 1;
|
|
12
|
+
var isGenuineNoMatch = (result) => result.exitCode === SECRET_TOOL_NO_MATCH_EXIT && result.stderr.trim() === "";
|
|
12
13
|
var DEFAULT_SECRET_TOOL_BIN = "secret-tool";
|
|
13
14
|
function safeCredentialRef(ref) {
|
|
14
15
|
try {
|
|
@@ -76,7 +77,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
|
|
|
76
77
|
async get(ref) {
|
|
77
78
|
const safeRef = safeCredentialRef(ref);
|
|
78
79
|
const result = await lookup(safeRef);
|
|
79
|
-
if (result
|
|
80
|
+
if (isGenuineNoMatch(result)) return null;
|
|
80
81
|
if (result.exitCode !== 0) brokerFailure("get");
|
|
81
82
|
const secret = result.stdout.replace(/\n$/, "");
|
|
82
83
|
return secret.length > 0 ? secret : null;
|
|
@@ -111,7 +112,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
|
|
|
111
112
|
} catch {
|
|
112
113
|
brokerFailure("delete");
|
|
113
114
|
}
|
|
114
|
-
if (result.exitCode === 0 || result
|
|
115
|
+
if (result.exitCode === 0 || isGenuineNoMatch(result)) {
|
|
115
116
|
return;
|
|
116
117
|
}
|
|
117
118
|
brokerFailure("delete");
|
|
@@ -119,7 +120,7 @@ function createLinuxSecretServiceCredentialBroker(options = {}) {
|
|
|
119
120
|
async has(ref) {
|
|
120
121
|
const safeRef = safeCredentialRef(ref);
|
|
121
122
|
const result = await lookup(safeRef);
|
|
122
|
-
if (result
|
|
123
|
+
if (isGenuineNoMatch(result)) return false;
|
|
123
124
|
if (result.exitCode !== 0) brokerFailure("has");
|
|
124
125
|
return true;
|
|
125
126
|
}
|
|
@@ -716,17 +717,21 @@ function createStrictHostCredentialBroker(options = {}) {
|
|
|
716
717
|
if (override === "file") {
|
|
717
718
|
return createClosedCredentialBroker("credential_store_file_not_allowed");
|
|
718
719
|
}
|
|
719
|
-
if (platform === "darwin" || override === "keychain")
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
if (platform === "win32" || override === "credman") {
|
|
723
|
-
return options.windowsCredentialBroker ?? (options.createWindowsCredentialBroker ?? (() => createWindowsCredentialManagerBroker()))();
|
|
724
|
-
}
|
|
725
|
-
if (platform === "linux" || override === "secret-service") {
|
|
726
|
-
return options.linuxSecretServiceBroker ?? (options.createLinuxSecretServiceBroker ?? (() => createLinuxSecretServiceCredentialBroker()))();
|
|
727
|
-
}
|
|
720
|
+
if (platform === "darwin" || override === "keychain") return createSystemStoreBroker("keychain", options);
|
|
721
|
+
if (platform === "win32" || override === "credman") return createSystemStoreBroker("credman", options);
|
|
722
|
+
if (platform === "linux" || override === "secret-service") return createSystemStoreBroker("secret-service", options);
|
|
728
723
|
return createClosedCredentialBroker("credential_store_unsupported");
|
|
729
724
|
}
|
|
725
|
+
function createSystemStoreBroker(mode, options) {
|
|
726
|
+
switch (mode) {
|
|
727
|
+
case "keychain":
|
|
728
|
+
return options.keychainBroker ?? options.createKeychainBroker?.() ?? createMacOsKeychainCredentialBroker();
|
|
729
|
+
case "credman":
|
|
730
|
+
return options.windowsCredentialBroker ?? options.createWindowsCredentialBroker?.() ?? createWindowsCredentialManagerBroker();
|
|
731
|
+
case "secret-service":
|
|
732
|
+
return options.linuxSecretServiceBroker ?? options.createLinuxSecretServiceBroker?.() ?? createLinuxSecretServiceCredentialBroker();
|
|
733
|
+
}
|
|
734
|
+
}
|
|
730
735
|
|
|
731
736
|
export {
|
|
732
737
|
createHostCredentialBrokerChain,
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
mergeReferences,
|
|
4
4
|
resolveReferenceAssets,
|
|
5
5
|
resolveToolsFromKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4Q4ZDPGC.js";
|
|
7
7
|
import {
|
|
8
8
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
9
9
|
getAllToolRuns,
|
|
10
10
|
parseUiCard,
|
|
11
11
|
uiCardFallback
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ES5W7DYB.js";
|
|
13
13
|
import {
|
|
14
14
|
getDocState
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IEKRWRCK.js";
|
|
16
16
|
import {
|
|
17
17
|
getTableState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OMWHO2G7.js";
|
|
19
19
|
import {
|
|
20
20
|
selectAllMsgs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJE6Y2Y5.js";
|
|
22
22
|
import {
|
|
23
23
|
getCurrentSpaceIdRaw,
|
|
24
24
|
getViewMode
|