nolo-cli 0.49.1 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-KE4PQSZ3.js → _executeModel-JKEH7ACW.js} +48 -42
- package/{action-IU6ON7ZB.js → action-VSG2IYP3.js} +8 -8
- package/{addContentAction-5V5CCI3I.js → addContentAction-2HJJITDI.js} +8 -7
- package/{addDialogAgentAction-KF3KZZNZ.js → addDialogAgentAction-7BSQVVL5.js} +10 -9
- package/{agentDeleteCommand-Z67TJG3W.js → agentDeleteCommand-SVXKS5SC.js} +30 -28
- package/{agentEmailCommands-7LPIK7JE.js → agentEmailCommands-WN7QBTP3.js} +57 -52
- package/{agentListCommands-5J2IM3IT.js → agentListCommands-2BEBOQIG.js} +42 -33
- package/{agentMachineCommands-YXH6FXUQ.js → agentMachineCommands-WALP3ONU.js} +30 -28
- package/{agentRecordCommands-GZLCDVUS.js → agentRecordCommands-E652SW57.js} +55 -50
- package/{agentRunCommand-WYH5Q54Q.js → agentRunCommand-6VXWXKCS.js} +60 -53
- package/{agentRunControl-4GHHSXFZ.js → agentRunControl-LJVFDJGU.js} +3 -1
- package/{agentRuntimeLocal-A6EF3RUY.js → agentRuntimeLocal-SBG7BDFQ.js} +30 -26
- package/{agentSlice-ARTDF6VD.js → agentSlice-3WYXIGEO.js} +8 -8
- package/{agentSuperviseCommands-VB6BUS5H.js → agentSuperviseCommands-F3RFAL7K.js} +2 -2
- package/{appDeleteCommands-V2B7ZCLC.js → appDeleteCommands-NTUNMEXY.js} +31 -29
- package/{appDeployCommands-AXQU44RD.js → appDeployCommands-DISWXRTL.js} +31 -29
- package/{appDeployStatusCommands-FWGSC2UM.js → appDeployStatusCommands-IKRA6B6F.js} +31 -29
- package/{appGetCommands-67R3RFZK.js → appGetCommands-UMOP2DFV.js} +31 -29
- package/{appListCommands-TTASJPGV.js → appListCommands-ZKFD2AKS.js} +31 -29
- package/{authCommand-QOPOEYEK.js → authCommand-BS3CQC6I.js} +11 -11
- package/{chatQueueReduxAdapter-6CAHUQ4O.js → chatQueueReduxAdapter-A3YH4MT4.js} +24 -21
- package/{chunk-76UA7376.js → chunk-273FJUYI.js} +6 -6
- package/{chunk-7CH6U3FL.js → chunk-2GRGFCF6.js} +2 -4
- package/{chunk-T27IEBNQ.js → chunk-2QDDKFG5.js} +74 -1
- package/{chunk-IRJVFYOH.js → chunk-2TLYVDTN.js} +321 -1100
- package/{chunk-6BYAXNH5.js → chunk-3QOCS5IF.js} +11 -2
- package/chunk-6IGD47IC.js +19 -0
- package/{chunk-GFD7TIZU.js → chunk-6TUT5ZJD.js} +4 -6
- package/chunk-6YTOJY35.js +352 -0
- package/{chunk-B54WOZ77.js → chunk-7H7GQL6V.js} +2 -2
- package/{chunk-OYNDYVSE.js → chunk-B45YNDAE.js} +1 -1
- package/{chunk-UQWFIWHX.js → chunk-BKIDF5LV.js} +1 -1
- package/{chunk-5XCW6RQG.js → chunk-BUBPRCIU.js} +1 -1
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-X7S7OFUX.js → chunk-CEVCRRHU.js} +4 -4
- package/{chunk-SP3DPVBH.js → chunk-DEIGUGP6.js} +2 -2
- package/{chunk-V2IPBG5U.js → chunk-DGEPT6FH.js} +1 -1
- package/{chunk-3AOLVADY.js → chunk-DVINR3PL.js} +1 -1
- package/{chunk-NN3AMBY3.js → chunk-DXOELY7S.js} +64 -69
- package/{chunk-OFZPJ3NT.js → chunk-E4MARS3Q.js} +1 -1
- package/{chunk-QUCSAM43.js → chunk-EAYBPWHX.js} +87 -66
- package/{chunk-DQLYEGP7.js → chunk-EGVY3GMT.js} +1 -1
- package/{chunk-2JYSSXLY.js → chunk-EJFW7TRP.js} +5 -26
- package/{chunk-HPZL4IBN.js → chunk-FGRCSLPV.js} +34 -45
- package/{chunk-WL3UOGYO.js → chunk-G4WSLTQF.js} +31 -97
- package/{chunk-HR5XDXYM.js → chunk-G5SQVIFZ.js} +3 -3
- package/{chunk-J3UALFHL.js → chunk-GHE5XMVR.js} +1 -1
- package/{chunk-6SMMK7MD.js → chunk-GKB4AZKV.js} +440 -2981
- package/{chunk-IKSFDJXB.js → chunk-GKNGRBE6.js} +150 -27
- package/{chunk-Q24S4NDF.js → chunk-HQTK2SFT.js} +1 -1
- package/{chunk-GDGIEGHV.js → chunk-IPTZ5TVU.js} +7 -6
- package/{chunk-4RXXP6WD.js → chunk-J7KDNHUO.js} +5 -64
- package/{chunk-QDHZCAH3.js → chunk-KNQ5LYVZ.js} +57 -2
- package/{chunk-VRJUIUIY.js → chunk-KVVNC5V3.js} +2 -2
- package/{chunk-CVT7L2WZ.js → chunk-LVCAWHI5.js} +4 -4
- package/{chunk-WX5E6HZS.js → chunk-N6SLQMSA.js} +6 -6
- package/{chunk-SQTVMYMU.js → chunk-NTZO3KX2.js} +3 -3
- package/{chunk-LGUQHYAL.js → chunk-O5FLGN2L.js} +3 -2
- package/{chunk-WKOEOQCI.js → chunk-OSUZKICS.js} +1600 -190
- package/{chunk-EXDR5D6X.js → chunk-Q2QN2RHG.js} +7 -7
- package/{chunk-L3JWI7WX.js → chunk-QOKAKDPE.js} +15 -11
- package/{chunk-757BGY6Y.js → chunk-RFYXK6KI.js} +1 -1
- package/chunk-RQSN75DW.js +1766 -0
- package/{chunk-HCMFFI2G.js → chunk-S3JNURSO.js} +2 -2
- package/{chunk-YZ2WE6CW.js → chunk-SAJSBPI2.js} +2 -2
- package/{chunk-WHVQA7PJ.js → chunk-SCBBGS2N.js} +23 -5
- package/chunk-SGSJBBKP.js +297 -0
- package/{chunk-GFUOVFQA.js → chunk-TUBNQ3OF.js} +2 -2
- package/{chunk-BANYWEYY.js → chunk-TY3ADTX5.js} +1 -1
- package/chunk-UAD2WT54.js +64 -0
- package/{chunk-SW7RCUGA.js → chunk-UEV5WVQV.js} +3 -3
- package/{chunk-EURF2SV6.js → chunk-UMCMW5R3.js} +51 -34
- package/{chunk-K524MUQC.js → chunk-VFDRZHPM.js} +16 -16
- package/{chunk-5WADL4O7.js → chunk-W22UTILW.js} +3 -3
- package/{chunk-IKTHA3JH.js → chunk-WERPP2S7.js} +2 -2
- package/{chunk-GBADO3SM.js → chunk-WSUHBABG.js} +1 -1
- package/{chunk-U5Z7LFZF.js → chunk-X3OGKR5Q.js} +4 -4
- package/{chunk-AVKUDHJO.js → chunk-X5LRMXTS.js} +10 -10
- package/{chunk-DIQCV4FR.js → chunk-X665UCNM.js} +1 -1
- package/{chunk-HCBQVVFZ.js → chunk-X7P6EJUY.js} +4 -4
- package/{chunk-HHBXCRJS.js → chunk-XOJRZUPF.js} +4 -4
- package/{chunk-MRWGHF56.js → chunk-YDH3FDFQ.js} +12 -356
- package/{chunk-TNPCQNGQ.js → chunk-YEFRCO5N.js} +4 -9
- package/{chunk-RO2IUWZE.js → chunk-YUKTCDVN.js} +1 -1
- package/{chunk-56W233KG.js → chunk-YWY25N4V.js} +1 -1
- package/{chunk-RU5D3B22.js → chunk-ZDS63Y4O.js} +2 -2
- package/chunk-ZJ7UHBJS.js +89 -0
- package/{chunk-SG65C33A.js → chunk-ZLMG6NRV.js} +4 -4
- package/{codingSkills-BYQI6EPT.js → codingSkills-FQPCEIWL.js} +2 -2
- package/contentThunks-J33BZB3E.js +71 -0
- package/{createAgentAutomationAction-7BBF5YXN.js → createAgentAutomationAction-HTMTGX6Q.js} +25 -21
- package/{createDialogAction-B5URPHP4.js → createDialogAction-WYQBSN6A.js} +27 -23
- package/{createPageAction-ISJKM5Q3.js → createPageAction-ICRRK3SA.js} +27 -22
- package/{dbSlice-FWF5F4L7.js → dbSlice-YORO4VL4.js} +6 -6
- package/{deleteFile-NPZ64DFN.js → deleteFile-JYKRT7C3.js} +4 -4
- package/{dialogCommands-XHH4MVA4.js → dialogCommands-FRSIAPKY.js} +31 -29
- package/{dialogSlice-NRAN5X7F.js → dialogSlice-5KPVIAWH.js} +24 -21
- package/{docCreateCommands-FUN2Z7HQ.js → docCreateCommands-DBRJMPDX.js} +30 -28
- package/{docDeleteCommands-OZDPFXPF.js → docDeleteCommands-BCYPLWXN.js} +31 -29
- package/{docReadCommands-FIPK7LE3.js → docReadCommands-L5JX4Q7G.js} +30 -28
- package/{docStore-LUS7SWC3.js → docStore-34NXLCEO.js} +8 -33
- package/{docUpdateCommands-BZ5GKAN4.js → docUpdateCommands-RELG7XJD.js} +30 -28
- package/fetchMessages-KZQVBXKY.js +1 -1
- package/{getPricing-HAU62AFM.js → getPricing-FM7TJZFV.js} +4 -4
- package/{handleSendMessageAction-RA4OD2ZH.js → handleSendMessageAction-MEYK7RPD.js} +25 -22
- package/index.js +64 -64
- package/{machineCommands-WDAYEFBE.js → machineCommands-YSXTOWHQ.js} +59 -54
- package/{machineWsRunDispatch-TPQ2FQVS.js → machineWsRunDispatch-DNAYOPQT.js} +54 -49
- package/memberThunks-KVPBG4V7.js +638 -0
- package/{models-4QF4BJVY.js → models-CW5EL6Z7.js} +2 -2
- package/package.json +2 -3
- package/{read-J7RVVCHH.js → read-NIOV5F7W.js} +4 -4
- package/{readDocTool-G2WBM4IH.js → readDocTool-ULKJ5BEM.js} +1 -1
- package/{readlineWorkspace-HN44KGIF.js → readlineWorkspace-KZ3LPQG2.js} +829 -393
- package/{removeDialogAgentAction-RMPISD42.js → removeDialogAgentAction-JGSCPML3.js} +12 -11
- package/{runAgentClientLoop-ZYUI22EA.js → runAgentClientLoop-O2AUHIJT.js} +46 -40
- package/{setDialogExtraReferencesAction-7BUTHDAL.js → setDialogExtraReferencesAction-CORU64NM.js} +9 -8
- package/{setPrimaryDialogAgentAction-WCYIBGZ4.js → setPrimaryDialogAgentAction-5VS2VKLZ.js} +12 -11
- package/{settingSlice-7NN2MI6Y.js → settingSlice-3GNGTC2T.js} +7 -7
- package/{skillDiscovery-COX56OBO.js → skillDiscovery-CYUCJMAG.js} +3 -3
- package/{spaceCommands-OJ2567D4.js → spaceCommands-OI7RIB2T.js} +30 -28
- package/{streamAgentChatTurn-FNFMMGNN.js → streamAgentChatTurn-TA3PGS6C.js} +61 -54
- package/{switchDialogAgentAction-WGMMQHDI.js → switchDialogAgentAction-LP433X4D.js} +10 -9
- package/{tableCommands-P2TXJ3CF.js → tableCommands-R6WFRDYF.js} +1 -1
- package/{toolApiClient-B2MFXMEG.js → toolApiClient-53U4UDFF.js} +3 -2
- package/{tools-QCDR3UMD.js → tools-6ZPQ75XA.js} +37 -32
- package/{tuiSummaryLlmCaller-LCGT62QC.js → tuiSummaryLlmCaller-YKYQB4ZL.js} +17 -15
- package/{updateDialogTitleAction-Y3OGJWDB.js → updateDialogTitleAction-LRJ7NSOS.js} +26 -22
- package/chunk-EUG45QJR.js +0 -6104
- package/spaceSlice-F7JCOZEF.js +0 -127
- package/{chunk-NQ4N4IGO.js → chunk-CS6TCJ7E.js} +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
__toESM
|
|
2
|
+
__commonJS
|
|
4
3
|
} from "./chunk-4VNS5WPM.js";
|
|
5
4
|
|
|
6
5
|
// node_modules/react/cjs/react.production.js
|
|
@@ -383,8 +382,8 @@ var require_react_production = __commonJS({
|
|
|
383
382
|
exports.use = function(usable) {
|
|
384
383
|
return ReactSharedInternals.H.use(usable);
|
|
385
384
|
};
|
|
386
|
-
exports.useActionState = function(
|
|
387
|
-
return ReactSharedInternals.H.useActionState(
|
|
385
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
386
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
388
387
|
};
|
|
389
388
|
exports.useCallback = function(callback, deps) {
|
|
390
389
|
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
@@ -430,10 +429,10 @@ var require_react_production = __commonJS({
|
|
|
430
429
|
exports.useState = function(initialState) {
|
|
431
430
|
return ReactSharedInternals.H.useState(initialState);
|
|
432
431
|
};
|
|
433
|
-
exports.useSyncExternalStore = function(
|
|
432
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
434
433
|
return ReactSharedInternals.H.useSyncExternalStore(
|
|
435
|
-
|
|
436
|
-
|
|
434
|
+
subscribe,
|
|
435
|
+
getSnapshot,
|
|
437
436
|
getServerSnapshot
|
|
438
437
|
);
|
|
439
438
|
};
|
|
@@ -1335,9 +1334,9 @@ var require_react_development = __commonJS({
|
|
|
1335
1334
|
exports.use = function(usable) {
|
|
1336
1335
|
return resolveDispatcher().use(usable);
|
|
1337
1336
|
};
|
|
1338
|
-
exports.useActionState = function(
|
|
1337
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1339
1338
|
return resolveDispatcher().useActionState(
|
|
1340
|
-
|
|
1339
|
+
action,
|
|
1341
1340
|
initialState,
|
|
1342
1341
|
permalink
|
|
1343
1342
|
);
|
|
@@ -1400,10 +1399,10 @@ var require_react_development = __commonJS({
|
|
|
1400
1399
|
exports.useState = function(initialState) {
|
|
1401
1400
|
return resolveDispatcher().useState(initialState);
|
|
1402
1401
|
};
|
|
1403
|
-
exports.useSyncExternalStore = function(
|
|
1402
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1404
1403
|
return resolveDispatcher().useSyncExternalStore(
|
|
1405
|
-
|
|
1406
|
-
|
|
1404
|
+
subscribe,
|
|
1405
|
+
getSnapshot,
|
|
1407
1406
|
getServerSnapshot
|
|
1408
1407
|
);
|
|
1409
1408
|
};
|
|
@@ -1428,349 +1427,6 @@ var require_react = __commonJS({
|
|
|
1428
1427
|
}
|
|
1429
1428
|
});
|
|
1430
1429
|
|
|
1431
|
-
// packages/chat/dialog/dialogRuntimeTypes.ts
|
|
1432
|
-
var GLOBAL_DIALOG_RUNTIME_KEY = "__global__";
|
|
1433
|
-
|
|
1434
|
-
// packages/chat/dialog/dialogRuntimeStore.ts
|
|
1435
|
-
var import_react = __toESM(require_react());
|
|
1436
|
-
var createEmptyTokenStats = () => ({
|
|
1437
|
-
inputTokens: 0,
|
|
1438
|
-
outputTokens: 0,
|
|
1439
|
-
totalCost: 0
|
|
1440
|
-
});
|
|
1441
|
-
var createEmptyDialogRuntimeState = () => ({
|
|
1442
|
-
tokens: createEmptyTokenStats(),
|
|
1443
|
-
pendingFiles: [],
|
|
1444
|
-
activeControllers: {},
|
|
1445
|
-
pendingRawData: {},
|
|
1446
|
-
loopStopReason: null,
|
|
1447
|
-
pendingUserInputQueue: []
|
|
1448
|
-
});
|
|
1449
|
-
var activeDialogKey = null;
|
|
1450
|
-
var configError = null;
|
|
1451
|
-
var runtimeByKey = {
|
|
1452
|
-
[GLOBAL_DIALOG_RUNTIME_KEY]: createEmptyDialogRuntimeState()
|
|
1453
|
-
};
|
|
1454
|
-
var listeners = /* @__PURE__ */ new Set();
|
|
1455
|
-
var version = 0;
|
|
1456
|
-
var notify = () => {
|
|
1457
|
-
version += 1;
|
|
1458
|
-
for (const listener of listeners) {
|
|
1459
|
-
try {
|
|
1460
|
-
listener();
|
|
1461
|
-
} catch {
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
var action = (type, payload) => ({ type, payload });
|
|
1466
|
-
function setActiveDialogKey(key) {
|
|
1467
|
-
activeDialogKey = key;
|
|
1468
|
-
configError = null;
|
|
1469
|
-
notify();
|
|
1470
|
-
}
|
|
1471
|
-
function getActiveDialogKey() {
|
|
1472
|
-
return activeDialogKey;
|
|
1473
|
-
}
|
|
1474
|
-
function setDialogConfigError(error) {
|
|
1475
|
-
configError = error;
|
|
1476
|
-
notify();
|
|
1477
|
-
}
|
|
1478
|
-
function getDialogConfigError() {
|
|
1479
|
-
return configError;
|
|
1480
|
-
}
|
|
1481
|
-
var resolveDialogRuntimeKey = (dialogKey) => dialogKey ?? activeDialogKey ?? GLOBAL_DIALOG_RUNTIME_KEY;
|
|
1482
|
-
var ensureDialogRuntimeState = (dialogKey) => {
|
|
1483
|
-
const runtimeKey = resolveDialogRuntimeKey(dialogKey);
|
|
1484
|
-
if (!runtimeByKey[runtimeKey]) {
|
|
1485
|
-
runtimeByKey[runtimeKey] = createEmptyDialogRuntimeState();
|
|
1486
|
-
}
|
|
1487
|
-
return runtimeByKey[runtimeKey];
|
|
1488
|
-
};
|
|
1489
|
-
function resetDialogRuntimeSessionState(dialogKey) {
|
|
1490
|
-
const runtime = ensureDialogRuntimeState(dialogKey);
|
|
1491
|
-
runtime.tokens = createEmptyTokenStats();
|
|
1492
|
-
runtime.loopStopReason = null;
|
|
1493
|
-
runtime.pendingUserInputQueue = [];
|
|
1494
|
-
notify();
|
|
1495
|
-
}
|
|
1496
|
-
function addPendingFile(payload) {
|
|
1497
|
-
const targetRuntimeKey = payload.targetDialogKey ?? payload.runtimeDialogKey ?? (payload.type === "dialog" ? activeDialogKey : payload.dialogKey);
|
|
1498
|
-
const runtime = ensureDialogRuntimeState(targetRuntimeKey);
|
|
1499
|
-
if (!runtime.pendingFiles.some((f) => f.id === payload.id)) {
|
|
1500
|
-
runtime.pendingFiles.push(payload);
|
|
1501
|
-
notify();
|
|
1502
|
-
}
|
|
1503
|
-
return action("dialogRuntime/addPendingFile", payload);
|
|
1504
|
-
}
|
|
1505
|
-
function removePendingFile(fileId) {
|
|
1506
|
-
const runtime = ensureDialogRuntimeState();
|
|
1507
|
-
const fileToRemove = runtime.pendingFiles.find((f) => f.id === fileId);
|
|
1508
|
-
if (fileToRemove) {
|
|
1509
|
-
if (fileToRemove.pageKey) {
|
|
1510
|
-
delete runtime.pendingRawData[fileToRemove.pageKey];
|
|
1511
|
-
}
|
|
1512
|
-
runtime.pendingFiles = runtime.pendingFiles.filter(
|
|
1513
|
-
(file) => file.id !== fileId
|
|
1514
|
-
);
|
|
1515
|
-
notify();
|
|
1516
|
-
}
|
|
1517
|
-
return action("dialogRuntime/removePendingFile", fileId);
|
|
1518
|
-
}
|
|
1519
|
-
function clearPendingAttachments(payload) {
|
|
1520
|
-
if (payload?.all) {
|
|
1521
|
-
Object.values(runtimeByKey).forEach((runtime2) => {
|
|
1522
|
-
runtime2.pendingFiles = [];
|
|
1523
|
-
runtime2.pendingRawData = {};
|
|
1524
|
-
});
|
|
1525
|
-
notify();
|
|
1526
|
-
return action("dialogRuntime/clearPendingAttachments", payload);
|
|
1527
|
-
}
|
|
1528
|
-
const runtime = ensureDialogRuntimeState(payload?.dialogKey);
|
|
1529
|
-
runtime.pendingFiles = [];
|
|
1530
|
-
runtime.pendingRawData = {};
|
|
1531
|
-
notify();
|
|
1532
|
-
return action("dialogRuntime/clearPendingAttachments", payload);
|
|
1533
|
-
}
|
|
1534
|
-
function setLoopStopReason(payload) {
|
|
1535
|
-
const runtime = ensureDialogRuntimeState(payload.dialogKey);
|
|
1536
|
-
runtime.loopStopReason = payload.reason;
|
|
1537
|
-
notify();
|
|
1538
|
-
return action("dialogRuntime/setLoopStopReason", payload);
|
|
1539
|
-
}
|
|
1540
|
-
function clearDialogRuntimeState(payload) {
|
|
1541
|
-
delete runtimeByKey[payload.dialogKey];
|
|
1542
|
-
notify();
|
|
1543
|
-
return action("dialogRuntime/clearDialogRuntimeState", payload);
|
|
1544
|
-
}
|
|
1545
|
-
function addActiveController(payload) {
|
|
1546
|
-
const runtime = ensureDialogRuntimeState(payload.dialogKey);
|
|
1547
|
-
runtime.activeControllers[payload.messageId] = payload.controller;
|
|
1548
|
-
notify();
|
|
1549
|
-
return action("dialogRuntime/addActiveController", payload);
|
|
1550
|
-
}
|
|
1551
|
-
function removeActiveController(payload) {
|
|
1552
|
-
const normalized = typeof payload === "string" ? { messageId: payload } : payload;
|
|
1553
|
-
const runtime = ensureDialogRuntimeState(normalized.dialogKey);
|
|
1554
|
-
delete runtime.activeControllers[normalized.messageId];
|
|
1555
|
-
notify();
|
|
1556
|
-
return action("dialogRuntime/removeActiveController", normalized);
|
|
1557
|
-
}
|
|
1558
|
-
function clearActiveControllers(payload) {
|
|
1559
|
-
if (payload?.all) {
|
|
1560
|
-
Object.values(runtimeByKey).forEach((runtime2) => {
|
|
1561
|
-
runtime2.activeControllers = {};
|
|
1562
|
-
});
|
|
1563
|
-
notify();
|
|
1564
|
-
return action("dialogRuntime/clearActiveControllers", payload);
|
|
1565
|
-
}
|
|
1566
|
-
const runtime = ensureDialogRuntimeState(payload?.dialogKey);
|
|
1567
|
-
runtime.activeControllers = {};
|
|
1568
|
-
notify();
|
|
1569
|
-
return action("dialogRuntime/clearActiveControllers", payload);
|
|
1570
|
-
}
|
|
1571
|
-
function enqueueUserInput(payload) {
|
|
1572
|
-
const normalized = typeof payload === "string" ? { text: payload } : payload;
|
|
1573
|
-
const runtime = ensureDialogRuntimeState(normalized.dialogKey);
|
|
1574
|
-
runtime.pendingUserInputQueue.push(normalized.text);
|
|
1575
|
-
notify();
|
|
1576
|
-
return action("dialogRuntime/enqueueUserInput", normalized);
|
|
1577
|
-
}
|
|
1578
|
-
function dequeueUserInput(payload) {
|
|
1579
|
-
const runtime = ensureDialogRuntimeState(payload?.dialogKey);
|
|
1580
|
-
runtime.pendingUserInputQueue.shift();
|
|
1581
|
-
notify();
|
|
1582
|
-
return action("dialogRuntime/dequeueUserInput", payload);
|
|
1583
|
-
}
|
|
1584
|
-
function clearPendingUserInputQueue(payload) {
|
|
1585
|
-
if (payload?.all) {
|
|
1586
|
-
Object.values(runtimeByKey).forEach((runtime2) => {
|
|
1587
|
-
runtime2.pendingUserInputQueue = [];
|
|
1588
|
-
});
|
|
1589
|
-
notify();
|
|
1590
|
-
return action("dialogRuntime/clearPendingUserInputQueue", payload);
|
|
1591
|
-
}
|
|
1592
|
-
const runtime = ensureDialogRuntimeState(payload?.dialogKey);
|
|
1593
|
-
runtime.pendingUserInputQueue = [];
|
|
1594
|
-
notify();
|
|
1595
|
-
return action("dialogRuntime/clearPendingUserInputQueue", payload);
|
|
1596
|
-
}
|
|
1597
|
-
function tokenUsageLiveUpdate(payload) {
|
|
1598
|
-
const runtime = ensureDialogRuntimeState(payload.dialogKey);
|
|
1599
|
-
runtime.tokens.inputTokens += payload.input_tokens;
|
|
1600
|
-
runtime.tokens.outputTokens += payload.output_tokens;
|
|
1601
|
-
runtime.tokens.totalCost += payload.cost ?? 0;
|
|
1602
|
-
notify();
|
|
1603
|
-
return action("dialogRuntime/tokenUsageLiveUpdate", payload);
|
|
1604
|
-
}
|
|
1605
|
-
function addPageReferenceToRuntime(payload) {
|
|
1606
|
-
const runtime = ensureDialogRuntimeState(payload.dialogKey);
|
|
1607
|
-
runtime.pendingFiles.push(payload.reference);
|
|
1608
|
-
if (payload.rawData?.pageKey) {
|
|
1609
|
-
runtime.pendingRawData[payload.rawData.pageKey] = payload.rawData;
|
|
1610
|
-
}
|
|
1611
|
-
notify();
|
|
1612
|
-
}
|
|
1613
|
-
function applyUpdateTokensFulfilled(payload) {
|
|
1614
|
-
const runtime = runtimeByKey[payload.dialogKey];
|
|
1615
|
-
if (!runtime) return;
|
|
1616
|
-
runtime.tokens.inputTokens = Math.max(
|
|
1617
|
-
0,
|
|
1618
|
-
runtime.tokens.inputTokens - (payload.input_tokens ?? 0)
|
|
1619
|
-
);
|
|
1620
|
-
runtime.tokens.outputTokens = Math.max(
|
|
1621
|
-
0,
|
|
1622
|
-
runtime.tokens.outputTokens - (payload.output_tokens ?? 0)
|
|
1623
|
-
);
|
|
1624
|
-
runtime.tokens.totalCost = Math.max(
|
|
1625
|
-
0,
|
|
1626
|
-
runtime.tokens.totalCost - (payload.cost ?? 0)
|
|
1627
|
-
);
|
|
1628
|
-
notify();
|
|
1629
|
-
}
|
|
1630
|
-
function applyClearDialogStateRuntime() {
|
|
1631
|
-
const previousDialogKey = activeDialogKey;
|
|
1632
|
-
const previousRuntime = previousDialogKey ? runtimeByKey[previousDialogKey] : null;
|
|
1633
|
-
const globalRuntime = ensureDialogRuntimeState(GLOBAL_DIALOG_RUNTIME_KEY);
|
|
1634
|
-
if (previousRuntime) {
|
|
1635
|
-
if (previousRuntime.pendingFiles.length > 0) {
|
|
1636
|
-
globalRuntime.pendingFiles = previousRuntime.pendingFiles;
|
|
1637
|
-
previousRuntime.pendingFiles = [];
|
|
1638
|
-
}
|
|
1639
|
-
previousRuntime.pendingRawData = {};
|
|
1640
|
-
previousRuntime.pendingUserInputQueue = [];
|
|
1641
|
-
}
|
|
1642
|
-
activeDialogKey = null;
|
|
1643
|
-
configError = null;
|
|
1644
|
-
globalRuntime.pendingRawData = {};
|
|
1645
|
-
globalRuntime.pendingUserInputQueue = [];
|
|
1646
|
-
notify();
|
|
1647
|
-
}
|
|
1648
|
-
function deleteDialogRuntime(dialogKey) {
|
|
1649
|
-
delete runtimeByKey[dialogKey];
|
|
1650
|
-
notify();
|
|
1651
|
-
}
|
|
1652
|
-
function abortActiveControllers(args) {
|
|
1653
|
-
const runtimes = args?.all ? Object.values(runtimeByKey) : [ensureDialogRuntimeState(args?.dialogKey)];
|
|
1654
|
-
runtimes.forEach((runtime) => {
|
|
1655
|
-
Object.values(runtime.activeControllers).forEach(
|
|
1656
|
-
(controller) => controller.abort()
|
|
1657
|
-
);
|
|
1658
|
-
});
|
|
1659
|
-
}
|
|
1660
|
-
function getDialogRuntimeState(dialogKey) {
|
|
1661
|
-
return runtimeByKey[resolveDialogRuntimeKey(dialogKey)] ?? createEmptyDialogRuntimeState();
|
|
1662
|
-
}
|
|
1663
|
-
function getPendingFiles(dialogKey) {
|
|
1664
|
-
return getDialogRuntimeState(dialogKey).pendingFiles;
|
|
1665
|
-
}
|
|
1666
|
-
function getActiveControllers(dialogKey) {
|
|
1667
|
-
return getDialogRuntimeState(dialogKey).activeControllers;
|
|
1668
|
-
}
|
|
1669
|
-
function getPendingRawData(dialogKey) {
|
|
1670
|
-
return getDialogRuntimeState(dialogKey).pendingRawData;
|
|
1671
|
-
}
|
|
1672
|
-
function getDialogRuntimeTokens(dialogKey) {
|
|
1673
|
-
return getDialogRuntimeState(dialogKey).tokens;
|
|
1674
|
-
}
|
|
1675
|
-
function getPendingRawDataByPageKey(pageKey) {
|
|
1676
|
-
return getDialogRuntimeState().pendingRawData[pageKey];
|
|
1677
|
-
}
|
|
1678
|
-
function getPendingUserInputQueue(dialogKey) {
|
|
1679
|
-
return getDialogRuntimeState(dialogKey).pendingUserInputQueue;
|
|
1680
|
-
}
|
|
1681
|
-
function getLoopStopReason(dialogKey) {
|
|
1682
|
-
return getDialogRuntimeState(dialogKey).loopStopReason;
|
|
1683
|
-
}
|
|
1684
|
-
var selectDialogRuntimeByKey = (_state, dialogKey) => getDialogRuntimeState(dialogKey);
|
|
1685
|
-
var selectPendingFiles = (_state, dialogKey) => getPendingFiles(dialogKey);
|
|
1686
|
-
var selectActiveControllers = (_state, dialogKey) => getActiveControllers(dialogKey);
|
|
1687
|
-
var selectPendingRawData = (_state, dialogKey) => getPendingRawData(dialogKey);
|
|
1688
|
-
var selectDialogRuntimeTokens = (_state, dialogKey) => getDialogRuntimeTokens(dialogKey);
|
|
1689
|
-
var selectPendingRawDataByPageKey = (_state, pageKey) => getPendingRawDataByPageKey(pageKey);
|
|
1690
|
-
var selectPendingUserInputQueue = (_state, dialogKey) => getPendingUserInputQueue(dialogKey);
|
|
1691
|
-
var selectLoopStopReason = (_state, dialogKey) => getLoopStopReason(dialogKey);
|
|
1692
|
-
var selectCurrentDialogKey = (_state) => getActiveDialogKey();
|
|
1693
|
-
var selectConfigError = (_state) => getDialogConfigError();
|
|
1694
|
-
function subscribe(listener) {
|
|
1695
|
-
listeners.add(listener);
|
|
1696
|
-
return () => {
|
|
1697
|
-
listeners.delete(listener);
|
|
1698
|
-
};
|
|
1699
|
-
}
|
|
1700
|
-
function getSnapshot() {
|
|
1701
|
-
return version;
|
|
1702
|
-
}
|
|
1703
|
-
function usePendingFiles(dialogKey) {
|
|
1704
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1705
|
-
return getPendingFiles(dialogKey);
|
|
1706
|
-
}
|
|
1707
|
-
function useActiveControllers(dialogKey) {
|
|
1708
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1709
|
-
return getActiveControllers(dialogKey);
|
|
1710
|
-
}
|
|
1711
|
-
function usePendingUserInputQueue(dialogKey) {
|
|
1712
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1713
|
-
return getPendingUserInputQueue(dialogKey);
|
|
1714
|
-
}
|
|
1715
|
-
function useLoopStopReason(dialogKey) {
|
|
1716
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1717
|
-
return getLoopStopReason(dialogKey);
|
|
1718
|
-
}
|
|
1719
|
-
function useDialogRuntimeTokens(dialogKey) {
|
|
1720
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1721
|
-
return getDialogRuntimeTokens(dialogKey);
|
|
1722
|
-
}
|
|
1723
|
-
function useCurrentDialogKey() {
|
|
1724
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1725
|
-
return getActiveDialogKey();
|
|
1726
|
-
}
|
|
1727
|
-
function useDialogConfigError() {
|
|
1728
|
-
(0, import_react.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot);
|
|
1729
|
-
return getDialogConfigError();
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
1430
|
export {
|
|
1733
|
-
require_react
|
|
1734
|
-
GLOBAL_DIALOG_RUNTIME_KEY,
|
|
1735
|
-
setActiveDialogKey,
|
|
1736
|
-
getActiveDialogKey,
|
|
1737
|
-
setDialogConfigError,
|
|
1738
|
-
resetDialogRuntimeSessionState,
|
|
1739
|
-
addPendingFile,
|
|
1740
|
-
removePendingFile,
|
|
1741
|
-
clearPendingAttachments,
|
|
1742
|
-
setLoopStopReason,
|
|
1743
|
-
clearDialogRuntimeState,
|
|
1744
|
-
addActiveController,
|
|
1745
|
-
removeActiveController,
|
|
1746
|
-
clearActiveControllers,
|
|
1747
|
-
enqueueUserInput,
|
|
1748
|
-
dequeueUserInput,
|
|
1749
|
-
clearPendingUserInputQueue,
|
|
1750
|
-
tokenUsageLiveUpdate,
|
|
1751
|
-
addPageReferenceToRuntime,
|
|
1752
|
-
applyUpdateTokensFulfilled,
|
|
1753
|
-
applyClearDialogStateRuntime,
|
|
1754
|
-
deleteDialogRuntime,
|
|
1755
|
-
abortActiveControllers,
|
|
1756
|
-
getDialogRuntimeTokens,
|
|
1757
|
-
getPendingUserInputQueue,
|
|
1758
|
-
getLoopStopReason,
|
|
1759
|
-
selectDialogRuntimeByKey,
|
|
1760
|
-
selectPendingFiles,
|
|
1761
|
-
selectActiveControllers,
|
|
1762
|
-
selectPendingRawData,
|
|
1763
|
-
selectDialogRuntimeTokens,
|
|
1764
|
-
selectPendingRawDataByPageKey,
|
|
1765
|
-
selectPendingUserInputQueue,
|
|
1766
|
-
selectLoopStopReason,
|
|
1767
|
-
selectCurrentDialogKey,
|
|
1768
|
-
selectConfigError,
|
|
1769
|
-
usePendingFiles,
|
|
1770
|
-
useActiveControllers,
|
|
1771
|
-
usePendingUserInputQueue,
|
|
1772
|
-
useLoopStopReason,
|
|
1773
|
-
useDialogRuntimeTokens,
|
|
1774
|
-
useCurrentDialogKey,
|
|
1775
|
-
useDialogConfigError
|
|
1431
|
+
require_react
|
|
1776
1432
|
};
|
|
@@ -182,20 +182,15 @@ function compareAgentSelection(left, right) {
|
|
|
182
182
|
return rightUpdated - leftUpdated;
|
|
183
183
|
}
|
|
184
184
|
var AGENT_SELECTION_PRIORITY_INSTRUCTIONS = ` - \u4F18\u5148\u7EA7\u5951\u7EA6\uFF08\u4E0E\u5217\u8868\u6392\u5E8F\u771F\u503C\u4E25\u683C\u4E00\u81F4\uFF09\uFF1A
|
|
185
|
-
1. \u6536\u85CF\u7684 OAuth / \u81EA\u5B9A\u4E49 Agent\uFF08isFavorite=true \u4E14 isOAuth=true \u6216 apiSource="custom"\
|
|
185
|
+
1. \u6536\u85CF\u7684 OAuth / \u81EA\u5B9A\u4E49 Agent\uFF08isFavorite=true \u4E14 isOAuth=true \u6216 apiSource="custom"\uFF1A\u79C1\u6709\u8BA2\u9605/\u51ED\u636E\u4F18\u5148\uFF0C\u4E0D\u70E7\u5E73\u53F0 credits\uFF09
|
|
186
186
|
2. \u5176\u4ED6\u6536\u85CF Agent\uFF08isFavorite=true\uFF09
|
|
187
187
|
3. \u672A\u6536\u85CF\u7684 OAuth / \u81EA\u5B9A\u4E49 Agent\uFF08isOAuth=true \u6216 apiSource="custom"\uFF09
|
|
188
188
|
4. \u5176\u4ED6\u81EA\u5EFA Agent\uFF08isOwned=true\uFF09
|
|
189
189
|
5. \u516C\u5F00 / \u5E73\u53F0 Agent\uFF08apiSource="platform" \u6216\u793E\u533A\u516C\u5F00\uFF09
|
|
190
190
|
\u540C\u6863\u4F4D\u4E0B\u6536\u85CF\u9879\u6309\u6700\u8FD1\u6536\u85CF\uFF08favoritedAt\uFF09\u4F18\u5148\uFF0C\u5176\u4F59\u6309\u6700\u8FD1\u66F4\u65B0\uFF08updatedAt\uFF09\u4F18\u5148\u3002
|
|
191
|
-
- \
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
* **tools \u5B57\u6BB5\u53EA\u53CD\u6620\u989D\u5916\u80FD\u529B\uFF0C\u4E0D\u53CD\u6620 coding \u80FD\u529B**\uFF1AwriteFile/editFile/execBash/applyEdit/gitCommit \u7B49\u4EE3\u7801\u5DE5\u5177\u7531 host \u81EA\u52A8\u6CE8\u5165\uFF0Ctools=[] \u4E0D\u4EE3\u8868\u4E0D\u80FD\u5199\u4EE3\u7801\uFF0C\u4E0D\u8981\u636E\u6B64\u6392\u9664\u5019\u9009\u3002
|
|
195
|
-
- 429 \u9650\u6D41\u4E0E\u77E5\u60C5\u6743\u5951\u7EA6\uFF1A
|
|
196
|
-
* \u4EFB\u4F55\u7528\u6237\u79C1\u6709\u51ED\u636E\u4E0E\u81EA\u5EFA Agent\uFF08\u5373\u6EE1\u8DB3 isOwned=true\u3001isOAuth=true \u6216 apiSource="custom" \u4E4B\u4E00\uFF0C\u542B\u6536\u85CF\u4E0E\u672A\u6536\u85CF\uFF09\u82E5\u51FA\u73B0\u5728 listAgents \u8FD4\u56DE\u7684 unavailableAgents \u4E2D\uFF08429 \u9650\u6D41\u51B7\u5374\u671F\uFF09\uFF0C\u7981\u6B62\u9759\u9ED8\u8DF3\u8FC7\uFF1B
|
|
197
|
-
* \u6539\u6D3E\u5E73\u53F0 Agent\uFF08\u6D88\u8017\u5E73\u53F0\u79EF\u5206\uFF09\u524D\u5FC5\u987B\u5728\u56DE\u590D\u4E2D\u544A\u77E5\u7528\u6237\uFF1A\u54EA\u4E2A\u8BA2\u9605/\u81EA\u5EFA agent \u9650\u6D41\u3001\u9884\u8BA1\u4F55\u65F6\u6062\u590D\uFF08nextAvailableAt\uFF09\u3001\u672C\u6B21\u5C06\u6263\u5E73\u53F0\u79EF\u5206\uFF1B
|
|
198
|
-
* \u82E5\u4EFB\u52A1\u4E0D\u7D27\u6025\uFF0C\u5EFA\u8BAE\u7B49\u6062\u590D\u6216\u8BE2\u95EE\u7528\u6237\u3002`;
|
|
191
|
+
- \u6536\u85CF\u4F18\u5148\u786C\u95E8\uFF08\u7528\u6237\u94A6\u5B9A\uFF0C\u8986\u76D6\u9876\u6863\u6210\u672C\u95E8\uFF09\uFF1A\u7981\u6B62\u5728\u6536\u85CF Agent \u53EF\u7528\u65F6\u6D3E\u5E73\u53F0\u901A\u9053\u3002\u6536\u85CF\u7684 OAuth/\u81EA\u5B9A\u4E49 Agent \u8D70\u7528\u6237\u79C1\u6709\u8BA2\u9605/\u51ED\u636E\uFF0C\u5373\u4F7F\u662F\u9876\u6863\u6A21\u578B\uFF08Opus\u3001GPT-5.6 \u7EA7\uFF09\u4E5F\u4E0D\u6784\u6210\u6210\u672C\u56DE\u907F\u7406\u7531\uFF1B\u300C\u5360\u7528\u300D\u89C6\u4E3A\u4E0D\u53EF\u7528\u2014\u2014\u76EE\u6807 agent \u5B58\u5728\u5176\u4ED6 batchId \u7684 running run \u65F6\u7981\u6B62\u5BF9\u5176\u5E76\u884C\u6D3E\u53D1\uFF08agent \u7EA7 dialog \u5171\u4EAB\uFF0C\u5E76\u884C\u4F1A\u6DF7\u67D3\u4E0A\u4E0B\u6587\uFF09\u3002\u4EC5\u5F53\u6536\u85CF Agent \u5168\u90E8\u5360\u7528\u6216\u786E\u8BA4\u4E0D\u53EF\u7528\u540E\u624D\u5141\u8BB8\u6D3E\u5E73\u53F0 Agent\uFF0C\u4E14\u5FC5\u987B\u5F53\u6B21\u544A\u77E5\u7528\u6237\u5C06\u6D88\u8017\u5E73\u53F0\u79EF\u5206\u3002
|
|
192
|
+
- \u5339\u914D\u53C2\u8003\uFF1A\u6309\u4EFB\u52A1\u6240\u9700\u80FD\u529B\u7B5B tools \u5B57\u6BB5\uFF1B\u540C\u6863\u5019\u9009\u4F18\u5148\u6210\u672C\u4F4E\uFF08\u4F4E inputPrice\uFF09\u6216\u8D70\u7528\u6237\u79C1\u6709\u51ED\u636E\u7684\u901A\u9053\u3002tools \u5B57\u6BB5\u53EA\u53CD\u6620\u989D\u5916\u80FD\u529B\uFF0C\u4E0D\u53CD\u6620 coding \u80FD\u529B\u2014\u2014\u4EE3\u7801\u5DE5\u5177\u7531 host \u81EA\u52A8\u6CE8\u5165\uFF0Ctools=[] \u4E0D\u4EE3\u8868\u4E0D\u80FD\u5199\u4EE3\u7801\uFF0C\u4E0D\u8981\u636E\u6B64\u6392\u9664\u5019\u9009\u3002
|
|
193
|
+
- 429 \u9650\u6D41\u4E0E\u77E5\u60C5\u6743\u5951\u7EA6\uFF1A\u4EFB\u4F55\u7528\u6237\u79C1\u6709\u51ED\u636E\u4E0E\u81EA\u5EFA Agent\uFF08isOwned=true\u3001isOAuth=true \u6216 apiSource="custom" \u4E4B\u4E00\uFF09\u51FA\u73B0\u5728 listAgents \u7684 unavailableAgents\uFF08429 \u51B7\u5374\u671F\uFF09\u4E2D\u65F6\uFF0C\u7981\u6B62\u9759\u9ED8\u8DF3\u8FC7\uFF1B\u6539\u6D3E\u5E73\u53F0 Agent\uFF08\u6D88\u8017\u5E73\u53F0\u79EF\u5206\uFF09\u524D\u5FC5\u987B\u5728\u56DE\u590D\u4E2D\u544A\u77E5\u7528\u6237\uFF1A\u54EA\u4E2A\u8BA2\u9605/\u81EA\u5EFA agent \u9650\u6D41\u3001\u9884\u8BA1\u4F55\u65F6\u6062\u590D\uFF08nextAvailableAt\uFF09\u3001\u672C\u6B21\u5C06\u6263\u5E73\u53F0\u79EF\u5206\uFF1B\u4EFB\u52A1\u4E0D\u7D27\u6025\u5EFA\u8BAE\u7B49\u6062\u590D\u6216\u8BE2\u95EE\u7528\u6237\u3002`;
|
|
199
194
|
|
|
200
195
|
// packages/agent-runtime/noloWorkspaceTools.ts
|
|
201
196
|
var NOLO_WORKSPACE_TOOL_NAMES = [
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-YYLHWIW6.js";
|
|
4
4
|
import {
|
|
5
5
|
compareAgentSelection
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YEFRCO5N.js";
|
|
7
7
|
import {
|
|
8
8
|
getModelAbility
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YWY25N4V.js";
|
|
10
10
|
import {
|
|
11
11
|
isOwnedAgentKey,
|
|
12
12
|
ownedAgentKey,
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_react
|
|
3
|
+
} from "./chunk-YDH3FDFQ.js";
|
|
4
|
+
import {
|
|
5
|
+
normalizeSpaceId
|
|
6
|
+
} from "./chunk-UAD2WT54.js";
|
|
7
|
+
import {
|
|
8
|
+
__toESM
|
|
9
|
+
} from "./chunk-4VNS5WPM.js";
|
|
10
|
+
|
|
11
|
+
// packages/create/space/spaceCurrentStore.ts
|
|
12
|
+
var import_react = __toESM(require_react(), 1);
|
|
13
|
+
var VIEW_MODE_STORAGE_KEY = "nolo-space-view-mode";
|
|
14
|
+
var readStoredViewMode = () => {
|
|
15
|
+
try {
|
|
16
|
+
if (typeof window === "undefined") return "all";
|
|
17
|
+
return window.localStorage.getItem(VIEW_MODE_STORAGE_KEY) === "categories" ? "categories" : "all";
|
|
18
|
+
} catch {
|
|
19
|
+
return "all";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var writeStoredViewMode = (mode) => {
|
|
23
|
+
try {
|
|
24
|
+
if (typeof window === "undefined") return;
|
|
25
|
+
window.localStorage.setItem(VIEW_MODE_STORAGE_KEY, mode);
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var createInitialState = () => ({
|
|
30
|
+
currentSpaceId: null,
|
|
31
|
+
currentSpace: null,
|
|
32
|
+
viewMode: readStoredViewMode()
|
|
33
|
+
});
|
|
34
|
+
var state = createInitialState();
|
|
35
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
36
|
+
var version = 0;
|
|
37
|
+
var notify = () => {
|
|
38
|
+
version += 1;
|
|
39
|
+
for (const listener of listeners) {
|
|
40
|
+
try {
|
|
41
|
+
listener();
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function getCurrentSpaceId() {
|
|
47
|
+
return state.viewMode === "all" ? null : state.currentSpaceId;
|
|
48
|
+
}
|
|
49
|
+
function getCurrentSpaceIdRaw() {
|
|
50
|
+
return state.currentSpaceId;
|
|
51
|
+
}
|
|
52
|
+
function getCurrentSpaceRaw() {
|
|
53
|
+
return state.currentSpace;
|
|
54
|
+
}
|
|
55
|
+
function getViewMode() {
|
|
56
|
+
return state.viewMode;
|
|
57
|
+
}
|
|
58
|
+
function setViewMode(mode) {
|
|
59
|
+
if (state.viewMode === mode) return;
|
|
60
|
+
state = { ...state, viewMode: mode };
|
|
61
|
+
writeStoredViewMode(mode);
|
|
62
|
+
notify();
|
|
63
|
+
}
|
|
64
|
+
function setCurrentSpace(space) {
|
|
65
|
+
state = { ...state, currentSpace: space };
|
|
66
|
+
notify();
|
|
67
|
+
}
|
|
68
|
+
function setCurrentSpaceBoth(spaceId, space) {
|
|
69
|
+
state = { ...state, currentSpaceId: spaceId, currentSpace: space };
|
|
70
|
+
notify();
|
|
71
|
+
}
|
|
72
|
+
function updateCurrentSpaceIfMatch(spaceId, space) {
|
|
73
|
+
const currentId = state.currentSpaceId;
|
|
74
|
+
if (currentId && normalizeSpaceId(currentId) === normalizeSpaceId(spaceId)) {
|
|
75
|
+
state = { ...state, currentSpace: space };
|
|
76
|
+
notify();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
getCurrentSpaceId,
|
|
82
|
+
getCurrentSpaceIdRaw,
|
|
83
|
+
getCurrentSpaceRaw,
|
|
84
|
+
getViewMode,
|
|
85
|
+
setViewMode,
|
|
86
|
+
setCurrentSpace,
|
|
87
|
+
setCurrentSpaceBoth,
|
|
88
|
+
updateCurrentSpaceIfMatch
|
|
89
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CEVCRRHU.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-273FJUYI.js";
|
|
7
7
|
import {
|
|
8
8
|
selectIdentityToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XOJRZUPF.js";
|
|
10
10
|
import {
|
|
11
11
|
getIsDesktopApp
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QOKAKDPE.js";
|
|
13
13
|
|
|
14
14
|
// packages/ai/agent/cliChatClient.ts
|
|
15
15
|
function getCliChatRequestConfig(thunkApi) {
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
compileCodingEffectiveTools,
|
|
18
18
|
resolveCodingBuiltinSlug,
|
|
19
19
|
resolveCodingEffectiveTools
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-DGEPT6FH.js";
|
|
21
|
+
import "./chunk-O5FLGN2L.js";
|
|
22
22
|
import "./chunk-AETZ7AD6.js";
|
|
23
23
|
import "./chunk-KHCLMKZZ.js";
|
|
24
24
|
import "./chunk-O6OSWFZQ.js";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
addContentToSpace,
|
|
3
|
+
deleteContentFromSpace,
|
|
4
|
+
deleteMultipleContent,
|
|
5
|
+
moveContentToSpace,
|
|
6
|
+
updateContentCategory,
|
|
7
|
+
updateContentPinned,
|
|
8
|
+
updateContentTitle,
|
|
9
|
+
uploadAndAddFileToSpace
|
|
10
|
+
} from "./chunk-GKB4AZKV.js";
|
|
11
|
+
import "./chunk-ZJ7UHBJS.js";
|
|
12
|
+
import "./chunk-UMCMW5R3.js";
|
|
13
|
+
import "./chunk-EVBFYPDC.js";
|
|
14
|
+
import "./chunk-H2G6JXTR.js";
|
|
15
|
+
import "./chunk-YYLHWIW6.js";
|
|
16
|
+
import "./chunk-AGGIDPCZ.js";
|
|
17
|
+
import "./chunk-N6SLQMSA.js";
|
|
18
|
+
import "./chunk-ZLMG6NRV.js";
|
|
19
|
+
import "./chunk-5RGU3J7P.js";
|
|
20
|
+
import "./chunk-6YTOJY35.js";
|
|
21
|
+
import "./chunk-M76ECQRD.js";
|
|
22
|
+
import "./chunk-YDH3FDFQ.js";
|
|
23
|
+
import "./chunk-UEV5WVQV.js";
|
|
24
|
+
import "./chunk-G5SQVIFZ.js";
|
|
25
|
+
import "./chunk-KVVNC5V3.js";
|
|
26
|
+
import "./chunk-BYXBJQAS.js";
|
|
27
|
+
import "./chunk-KNQ5LYVZ.js";
|
|
28
|
+
import "./chunk-DWLEOOGR.js";
|
|
29
|
+
import "./chunk-CS6TCJ7E.js";
|
|
30
|
+
import "./chunk-FD36SCCD.js";
|
|
31
|
+
import "./chunk-ZHXJ6M7T.js";
|
|
32
|
+
import "./chunk-HNMXYYJR.js";
|
|
33
|
+
import "./chunk-FA4SY4F5.js";
|
|
34
|
+
import "./chunk-YWY25N4V.js";
|
|
35
|
+
import "./chunk-G4WSLTQF.js";
|
|
36
|
+
import "./chunk-CEVCRRHU.js";
|
|
37
|
+
import "./chunk-Y5GCAMGP.js";
|
|
38
|
+
import "./chunk-UZ6XXCVR.js";
|
|
39
|
+
import "./chunk-KX6YBIHG.js";
|
|
40
|
+
import "./chunk-J7KDNHUO.js";
|
|
41
|
+
import "./chunk-UAD2WT54.js";
|
|
42
|
+
import "./chunk-273FJUYI.js";
|
|
43
|
+
import "./chunk-SVEUG45B.js";
|
|
44
|
+
import "./chunk-WWC7I6TA.js";
|
|
45
|
+
import "./chunk-I42VC5KR.js";
|
|
46
|
+
import "./chunk-SAJSBPI2.js";
|
|
47
|
+
import "./chunk-QSJ3HFEF.js";
|
|
48
|
+
import "./chunk-EJFW7TRP.js";
|
|
49
|
+
import "./chunk-BJIRLHJR.js";
|
|
50
|
+
import "./chunk-XOJRZUPF.js";
|
|
51
|
+
import "./chunk-QOKAKDPE.js";
|
|
52
|
+
import "./chunk-OW765XBU.js";
|
|
53
|
+
import "./chunk-GBRG75BQ.js";
|
|
54
|
+
import "./chunk-3EUW3WEO.js";
|
|
55
|
+
import "./chunk-U6VC4MU4.js";
|
|
56
|
+
import "./chunk-KUG52IAP.js";
|
|
57
|
+
import "./chunk-LCBAMY2M.js";
|
|
58
|
+
import "./chunk-4SN6J65J.js";
|
|
59
|
+
import "./chunk-CF7PE763.js";
|
|
60
|
+
import "./chunk-G3SUCT4W.js";
|
|
61
|
+
import "./chunk-4VNS5WPM.js";
|
|
62
|
+
export {
|
|
63
|
+
addContentToSpace,
|
|
64
|
+
deleteContentFromSpace,
|
|
65
|
+
deleteMultipleContent,
|
|
66
|
+
moveContentToSpace,
|
|
67
|
+
updateContentCategory,
|
|
68
|
+
updateContentPinned,
|
|
69
|
+
updateContentTitle,
|
|
70
|
+
uploadAndAddFileToSpace
|
|
71
|
+
};
|