nolo-cli 0.157.0-alpha.1 → 0.158.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-5WS2PA62.js → _executeModel-6BMU3URY.js} +35 -35
- package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
- package/{action-ZJYUBXFC.js → action-GPPJC5TI.js} +4 -4
- package/{addContentAction-TVHB4526.js → addContentAction-BI6RDRTQ.js} +7 -7
- package/{addDialogAgentAction-FDPBU6K6.js → addDialogAgentAction-4RJYUSIK.js} +6 -6
- package/{agentDeleteCommand-Q6M4F3U6.js → agentDeleteCommand-Q2XWGBC2.js} +42 -42
- package/{agentEmailCommands-FNH6FEHS.js → agentEmailCommands-XFBE2A3F.js} +44 -44
- package/{agentListCommands-JUNMFS6E.js → agentListCommands-OROMT4P3.js} +12 -12
- package/{agentMachineCommands-VNLDEKNT.js → agentMachineCommands-ULK5YKKJ.js} +11 -10
- package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-MKG2OOEY.js} +2 -2
- package/{agentRecordCommands-47XXRVPI.js → agentRecordCommands-3VHBLS6P.js} +42 -42
- package/{agentRunCommand-QEXFJUXQ.js → agentRunCommand-LCIMEAQY.js} +44 -43
- package/{agentRuntimeLocal-O5GDAFTN.js → agentRuntimeLocal-NPJS2QDP.js} +5 -5
- package/{agentSlice-E3XS5FTQ.js → agentSlice-VRAPG6CH.js} +7 -7
- package/{appDeleteCommands-C2J5RQ3I.js → appDeleteCommands-AZ3KS4HK.js} +10 -10
- package/{appDeployCommands-3YRK7PSU.js → appDeployCommands-BTV22ICJ.js} +10 -10
- package/{appDeployStatusCommands-FPAX7MOK.js → appDeployStatusCommands-JSW3HPIW.js} +10 -10
- package/{appGetCommands-XAC2V766.js → appGetCommands-5KTTFIMV.js} +10 -10
- package/{appListCommands-ZJL2W5O7.js → appListCommands-3BJPAE2U.js} +10 -10
- package/{authCommand-J3XILHWW.js → authCommand-NIV3DKPF.js} +7 -287
- package/{authCommands-77CHYBGF.js → authCommands-AMNIAKEG.js} +2 -2
- package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-H3AY27TR.js} +1 -1
- package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
- package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
- package/{chunk-VSOWPETY.js → chunk-2BKUVRC5.js} +7 -7
- package/{chunk-Z6KQDSZW.js → chunk-2SGAI64X.js} +2 -2
- package/{chunk-KOB75UNU.js → chunk-2SOS7OSQ.js} +18 -2
- package/{chunk-C5VPAHIU.js → chunk-32ZKZET7.js} +1 -1
- package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
- package/{chunk-PEO24UB5.js → chunk-3TBHZPNG.js} +33 -6
- package/{chunk-YBNHPX4S.js → chunk-4RJJDA57.js} +1 -1
- package/{chunk-X5SUT4CN.js → chunk-4UOEOHY3.js} +6 -6
- package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
- package/{chunk-FPWT3RH2.js → chunk-AJ4V34SG.js} +10 -10
- package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
- package/{chunk-SKPPKHD3.js → chunk-BYQOCH75.js} +2 -2
- package/{chunk-UTIMX333.js → chunk-C3OK72G3.js} +1 -1
- package/{chunk-ZWG3C7VI.js → chunk-C6FY7HWI.js} +35 -0
- package/{chunk-RUNKPFM5.js → chunk-CDWHHLK5.js} +12 -8
- package/{chunk-ROPSATAB.js → chunk-CON6SI7N.js} +1 -1
- package/{chunk-4Z245KOA.js → chunk-DC3SZCRR.js} +6 -2
- package/{chunk-OH2M7WEU.js → chunk-EQGFFDNA.js} +3 -3
- package/{chunk-ANJTRG52.js → chunk-G2WP7VPD.js} +0 -37
- package/{chunk-7A4LJCDR.js → chunk-G476FQ7Q.js} +4 -4
- package/{chunk-DW7MGLMG.js → chunk-GAVUTXM5.js} +21 -17
- package/{chunk-PSJWPSKS.js → chunk-HB4XPBC7.js} +0 -32
- package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
- package/{chunk-EM3YOZJ4.js → chunk-ICRRXBRN.js} +3 -3
- package/{chunk-7KYVUFDG.js → chunk-IE5PXKVU.js} +1 -263
- package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
- package/{chunk-CE7PIHQD.js → chunk-IRTOYSA2.js} +3 -3
- package/{chunk-WZ6OU4NX.js → chunk-J2ATF74A.js} +2 -2
- package/{chunk-TJ2VPCBE.js → chunk-JPJGMOIM.js} +2 -2
- package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
- package/{chunk-7GC3EKUG.js → chunk-KKKHAF3P.js} +2 -2
- package/{chunk-KX6LPG7W.js → chunk-KLA62VVE.js} +1 -1
- package/{chunk-TYND6RDQ.js → chunk-LV4LV2B4.js} +72 -1
- package/{chunk-TZTWMGE3.js → chunk-M2P3OGXZ.js} +3 -3
- package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
- package/{chunk-6MPAEODB.js → chunk-NDZOXXIM.js} +17 -3
- package/{chunk-MVJVF4ED.js → chunk-NKPAHRMA.js} +7 -6
- package/{chunk-ZD2BLOY6.js → chunk-O4ZERG3M.js} +3 -3
- package/{chunk-36OMEXXR.js → chunk-OON4OBWI.js} +1 -1
- package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
- package/{chunk-G47IPDOK.js → chunk-QPY264HO.js} +1 -1
- package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
- package/{chunk-EJU23ST5.js → chunk-S72LMV7T.js} +670 -627
- package/{chunk-D4OWHT5Y.js → chunk-SPKLALBU.js} +2 -2
- package/{chunk-FDT27L7S.js → chunk-UCLSOLX4.js} +7 -5
- package/{chunk-B2EGWZJG.js → chunk-UFYBYB26.js} +1 -1
- package/{chunk-3XZKV7QQ.js → chunk-US6MKPE7.js} +1 -1
- package/{chunk-VAZHH6FO.js → chunk-VDEVDGEM.js} +18 -12
- package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
- package/{chunk-7BSQK2UC.js → chunk-WRCZXJ4N.js} +2 -2
- package/{chunk-H4KACZMG.js → chunk-WTFRBJT5.js} +261 -126
- package/{chunk-QDA4Y5O6.js → chunk-WXFZ4P6O.js} +18 -14
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-SCJD2PNK.js → chunk-YPG7TUQD.js} +3 -3
- package/{chunk-XFKZ3MCV.js → chunk-YTXQ2U2X.js} +221 -65
- package/{chunk-ZEHTARJA.js → chunk-ZBXIKCZ4.js} +38 -92
- package/{chunk-HKT6QXP3.js → chunk-ZEY4NJRE.js} +2 -2
- package/{chunk-HP6O6LTV.js → chunk-ZVQHBIWV.js} +6 -6
- package/{commandRegistry-OUBQIF62.js → commandRegistry-D6JTVYKG.js} +73 -81
- package/{contentThunks-B3FRQGP7.js → contentThunks-DYQO4CTI.js} +14 -13
- package/{createAgentAutomationAction-T2YFJ6MY.js → createAgentAutomationAction-LW26KIBP.js} +14 -13
- package/{createDialogAction-2NFGFBXW.js → createDialogAction-VLLBRD52.js} +15 -14
- package/{createPageAction-LDAVZDN7.js → createPageAction-PDACOLI6.js} +14 -13
- package/{dbSlice-5QGKMQLO.js → dbSlice-DC2J53RC.js} +6 -6
- package/{deleteFile-EW6QNRRT.js → deleteFile-KYWEMNFX.js} +4 -4
- package/{dialogCommands-ZLBEAQHE.js → dialogCommands-F3Y4KCPZ.js} +12 -11
- package/{dialogSlice-64S3J6CP.js → dialogSlice-ERMZYMS6.js} +13 -12
- package/{docCreateCommands-XOG5BBFQ.js → docCreateCommands-YMWZLW64.js} +8 -8
- package/{docDeleteCommands-NCW3BBRX.js → docDeleteCommands-6KJ3ESK4.js} +9 -9
- package/{docReadCommands-OT7X44Y3.js → docReadCommands-YQGFVLWI.js} +8 -8
- package/{docStore-NIP7OO4I.js → docStore-HXKI6W5D.js} +7 -7
- package/{docUpdateCommands-JW7OWW2J.js → docUpdateCommands-QLSGXUEX.js} +8 -8
- package/{handleSendMessageAction-TOKA7ED7.js → handleSendMessageAction-2XCOZPXY.js} +25 -24
- package/index.js +6 -6
- package/{localRuntimeAdapter-EQM6LFYC.js → localRuntimeAdapter-VOFUPXNF.js} +42 -40
- package/{machineCommands-WJ7FZ67T.js → machineCommands-IN5O7CIO.js} +46 -44
- package/{machineWsRunDispatch-BQT4DEA2.js → machineWsRunDispatch-TH3GMSR3.js} +41 -41
- package/{memberThunks-KRV5YXOB.js → memberThunks-2DWKLE6W.js} +7 -7
- package/package.json +1 -1
- package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
- package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-GSJI4JBJ.js} +1 -1
- package/{providerRegistry-7IS43D3X.js → providerRegistry-TSSTPGWF.js} +1 -1
- package/{read-5KAZHHDM.js → read-L7QEJETH.js} +4 -4
- package/{readDocTool-5QO34OSX.js → readDocTool-QELXV2GW.js} +1 -1
- package/{readlineWorkspace-JHJSU5DS.js → readlineWorkspace-EIEQUTEZ.js} +317 -104
- package/{removeDialogAgentAction-6X63HMI3.js → removeDialogAgentAction-376XSUP2.js} +8 -8
- package/{runAgentClientLoop-5QIGEALK.js → runAgentClientLoop-3KHKKBZI.js} +39 -34
- package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
- package/{setDialogExtraReferencesAction-4MAYKKYW.js → setDialogExtraReferencesAction-QBDSH63D.js} +7 -7
- package/{setPrimaryDialogAgentAction-EGBAMREH.js → setPrimaryDialogAgentAction-537QFGW3.js} +8 -8
- package/settingThunks-4Z43ZSAT.js +923 -0
- package/{spaceCommands-ZWDPTURU.js → spaceCommands-T5Z4U7HP.js} +8 -8
- package/{streamAgentChatTurn-456DWXNY.js → streamAgentChatTurn-DMXXSEVX.js} +39 -39
- package/{switchDialogAgentAction-YBKTD6DO.js → switchDialogAgentAction-CSO6AKRL.js} +6 -6
- package/{tableCommands-U3QDY4L6.js → tableCommands-LBH3QPPO.js} +1 -1
- package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
- package/{tools-IWNXKK4Y.js → tools-RMT7NAMC.js} +29 -28
- package/{updateCommands-NQXAGFM7.js → updateCommands-LXZLG44Y.js} +2 -2
- package/{updateDialogTitleAction-SX53FZWO.js → updateDialogTitleAction-Z4WNUH6Y.js} +14 -13
- package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
- package/chunk-W4S6OTSC.js +0 -35
- package/settingThunks-FTDRZNSJ.js +0 -1371
|
@@ -13,6 +13,9 @@ function getSessionSnapshotForState(state) {
|
|
|
13
13
|
}
|
|
14
14
|
return getBoundSessionSnapshot();
|
|
15
15
|
}
|
|
16
|
+
function getSessionGenerationForState(state) {
|
|
17
|
+
return getSessionSnapshotForState(state)?.sessionGeneration;
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
// packages/identity/selectors.local.ts
|
|
18
21
|
var LOCAL_USER_ID = (typeof process !== "undefined" ? process.env?.NOLO_LOCAL_USER_ID : void 0) || (typeof process !== "undefined" ? process.env?.NOLO_USER_ID : void 0) || "local";
|
|
@@ -42,6 +45,7 @@ var selectIdentityUserBalance = (state) => void 0;
|
|
|
42
45
|
|
|
43
46
|
export {
|
|
44
47
|
getSessionSnapshotForState,
|
|
48
|
+
getSessionGenerationForState,
|
|
45
49
|
selectIdentityUserId,
|
|
46
50
|
selectIdentityToken,
|
|
47
51
|
selectIdentityUser,
|
|
@@ -34,6 +34,10 @@ function canonicalizeNoloServerUrl(value) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// packages/cli/client/profileConfig.ts
|
|
37
|
+
var PERMISSION_GRANT_KINDS = ["local", "remote"];
|
|
38
|
+
function permissionGrantList(grants) {
|
|
39
|
+
return PERMISSION_GRANT_KINDS.filter((kind) => grants?.[kind] === true);
|
|
40
|
+
}
|
|
37
41
|
var normalizeProfileServerUrl = canonicalizeNoloServerUrl;
|
|
38
42
|
function isProtectedHomeProfileWrite(path) {
|
|
39
43
|
if (process.env.NODE_ENV !== "test") return false;
|
|
@@ -129,7 +133,11 @@ function buildEnvFromProfile(config) {
|
|
|
129
133
|
...getProfileTokens(config)[0] ? { AUTH_TOKEN: getProfileTokens(config)[0] } : {},
|
|
130
134
|
...profile.agentKey ? { NOLO_AGENT: profile.agentKey } : {},
|
|
131
135
|
...profile.agentName ? { NOLO_AGENT_NAME: profile.agentName } : {},
|
|
132
|
-
...profile.locale ? { NOLO_LANG: profile.locale } : {}
|
|
136
|
+
...profile.locale ? { NOLO_LANG: profile.locale } : {},
|
|
137
|
+
...(() => {
|
|
138
|
+
const granted = permissionGrantList(profile.permissionGrants);
|
|
139
|
+
return granted.length > 0 ? { NOLO_PERMISSION_GRANTS: granted.join(",") } : {};
|
|
140
|
+
})()
|
|
133
141
|
};
|
|
134
142
|
}
|
|
135
143
|
function buildCliRuntimeEnv(processEnv, config) {
|
|
@@ -164,6 +172,28 @@ function saveProfileLocale(locale, path = getDefaultProfileConfigPath()) {
|
|
|
164
172
|
`, "utf8");
|
|
165
173
|
return config;
|
|
166
174
|
}
|
|
175
|
+
function saveProfilePermissionGrant(kind, value, path = getDefaultProfileConfigPath()) {
|
|
176
|
+
if (isProtectedHomeProfileWrite(path)) return null;
|
|
177
|
+
const config = loadProfileConfig(path);
|
|
178
|
+
if (!config) return null;
|
|
179
|
+
const profile = config.profiles[config.currentProfile];
|
|
180
|
+
if (!profile) return null;
|
|
181
|
+
const grants = { ...profile.permissionGrants ?? {} };
|
|
182
|
+
if (value === true) {
|
|
183
|
+
grants[kind] = true;
|
|
184
|
+
} else {
|
|
185
|
+
delete grants[kind];
|
|
186
|
+
}
|
|
187
|
+
if (permissionGrantList(grants).length > 0) {
|
|
188
|
+
profile.permissionGrants = grants;
|
|
189
|
+
} else {
|
|
190
|
+
delete profile.permissionGrants;
|
|
191
|
+
}
|
|
192
|
+
mkdirSync(dirname(path), { recursive: true });
|
|
193
|
+
writeFileSync(path, `${JSON.stringify(config, null, 2)}
|
|
194
|
+
`, "utf8");
|
|
195
|
+
return config;
|
|
196
|
+
}
|
|
167
197
|
function getAgentSelectionAuditPath(configPath = getDefaultProfileConfigPath()) {
|
|
168
198
|
return join(dirname(configPath), "agent-selection.log");
|
|
169
199
|
}
|
|
@@ -308,6 +338,8 @@ function saveProfileOAuthSync(provider, sync, path = getDefaultProfileConfigPath
|
|
|
308
338
|
}
|
|
309
339
|
|
|
310
340
|
export {
|
|
341
|
+
PERMISSION_GRANT_KINDS,
|
|
342
|
+
permissionGrantList,
|
|
311
343
|
normalizeProfileServerUrl,
|
|
312
344
|
isProtectedHomeProfileWrite,
|
|
313
345
|
getDefaultProfileConfigPath,
|
|
@@ -320,6 +352,7 @@ export {
|
|
|
320
352
|
buildCliRuntimeEnv,
|
|
321
353
|
getCurrentProfile,
|
|
322
354
|
saveProfileLocale,
|
|
355
|
+
saveProfilePermissionGrant,
|
|
323
356
|
getAgentSelectionAuditPath,
|
|
324
357
|
redactArgvSecrets,
|
|
325
358
|
appendAgentSelectionAudit,
|