nolo-cli 0.97.0-alpha.1 → 0.97.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/README.md +1 -1
- package/{_executeModel-JIG7MRXQ.js → _executeModel-DYHTQJZC.js} +68 -63
- package/{action-YVYQEAAV.js → action-GI44T4DR.js} +10 -10
- package/{addContentAction-O7R66HEX.js → addContentAction-B2DRF7P6.js} +9 -9
- package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-T3I7IXPK.js} +15 -17
- package/{agentDeleteCommand-THAZ5GQS.js → agentDeleteCommand-LLNNP3AM.js} +47 -43
- package/{agentEmailCommands-A7T7AJA4.js → agentEmailCommands-EO3H2LDW.js} +90 -82
- package/agentListCommands-J3MWAZWO.js +741 -0
- package/{agentMachineCommands-DM4N5PK3.js → agentMachineCommands-V65VOQNK.js} +42 -38
- package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-EMZCM6VA.js} +1 -1
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-HF4A42D4.js} +1 -1
- package/agentRecordCommands-VY35OMX3.js +136 -0
- package/{agentRunCommand-JVSTGVG2.js → agentRunCommand-CSEX4QIH.js} +90 -80
- package/{agentRunControl-WCTKX5VL.js → agentRunControl-5T64LM2M.js} +2 -2
- package/{agentRuntimeLocal-73CVIWBB.js → agentRuntimeLocal-AY6YNUAL.js} +44 -36
- package/{agentSlice-6X4JL2E3.js → agentSlice-FOZUXW7X.js} +11 -11
- package/{appDeleteCommands-S7CK4OYL.js → appDeleteCommands-QTTL3QF3.js} +42 -38
- package/{appDeployCommands-U6TMS5GO.js → appDeployCommands-43LJECGV.js} +42 -38
- package/{appDeployStatusCommands-DTNQJ3LJ.js → appDeployStatusCommands-L5BKOLYW.js} +42 -38
- package/{appGetCommands-3SHZEQD5.js → appGetCommands-HOFZKOPC.js} +42 -38
- package/{appListCommands-E2ZMIUB6.js → appListCommands-I7C3SJCE.js} +42 -38
- package/{authCommand-F4EFRRX6.js → authCommand-2YPMMIJN.js} +117 -23
- package/{authCommands-RGOGCPP6.js → authCommands-FFDS4FVX.js} +7 -5
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-CALVIJTX.js} +6 -5
- package/{chatQueueReduxAdapter-LAQEZQKE.js → chatQueueReduxAdapter-NMEZRYC2.js} +30 -29
- package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
- package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
- package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
- package/{chunk-YQTQQX2H.js → chunk-2UV22D2F.js} +1 -1
- package/{chunk-R2B3MIZA.js → chunk-3BFMH6GE.js} +6 -7
- package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
- package/{chunk-QIAVMDHY.js → chunk-3LX6YE3P.js} +4 -4
- package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
- package/chunk-5J3PYNUP.js +255 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
- package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
- package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
- package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
- package/{chunk-IIVGDG4I.js → chunk-6PHKBY2Q.js} +10 -4
- package/{chunk-WADCY6G6.js → chunk-6ZWMH6TJ.js} +111 -41
- package/{chunk-ABQYVJBJ.js → chunk-7CHC4W22.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
- package/{chunk-ZWUOR654.js → chunk-7WCQEMPB.js} +971 -1093
- package/{chunk-BLJWCTRL.js → chunk-AOPCEXTB.js} +1 -1
- package/{chunk-LXF6XQDT.js → chunk-AQ3I6DZE.js} +865 -207
- package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
- package/{chunk-RG6JBBX5.js → chunk-AWF3WO5R.js} +166 -13
- package/{chunk-GPCZ7UXG.js → chunk-AZRHIN5B.js} +1 -1
- package/chunk-BMQ2MJUK.js +153 -0
- package/{chunk-HWIZU4OL.js → chunk-C3VLSD4K.js} +236 -36
- package/{chunk-3IIEFNGY.js → chunk-C53ZG23R.js} +2 -2
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-HJUYAD4A.js → chunk-CPUFH46E.js} +8 -8
- package/{chunk-LS2ZANRJ.js → chunk-CTUQJVQM.js} +1 -1
- package/{chunk-BP4XNZRM.js → chunk-CU3QB4HW.js} +3 -3
- package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
- package/{chunk-KQ4ONNQD.js → chunk-DAWDCRIG.js} +82 -8
- package/{chunk-VLTIYV3X.js → chunk-DCLMZ5TX.js} +4 -4
- package/{chunk-UKZDAFYT.js → chunk-DSSTTEKI.js} +6 -10
- package/{chunk-LZIWMYX4.js → chunk-EKS2APRJ.js} +21 -5
- package/{chunk-HVURBGF3.js → chunk-ESRMFY7G.js} +2 -2
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/chunk-FD5K6MPI.js +7808 -0
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
- package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
- package/{chunk-JCIHVIVG.js → chunk-HKTIX4ZE.js} +23 -76
- package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
- package/{chunk-H62HCIUP.js → chunk-HYZIYH2H.js} +11 -10
- package/{chunk-3VNWWVKB.js → chunk-I3QNET24.js} +30 -17
- package/{chunk-WV42OMV7.js → chunk-IAESIMK7.js} +4 -4
- package/{chunk-6FVRQBRR.js → chunk-JJ7P5CIY.js} +56 -34
- package/{chunk-3WD6RUUJ.js → chunk-JZ5II5UV.js} +15 -20
- package/{chunk-JRQFUXY7.js → chunk-KCDUTE5V.js} +96 -19
- package/{chunk-Y5HW6GM2.js → chunk-KHVJXNRY.js} +100 -100
- package/{chunk-7S4YWN7P.js → chunk-MX574M24.js} +1 -1
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/{chunk-53HEEOTT.js → chunk-O26PCYLS.js} +80 -13
- package/{chunk-3DII57IT.js → chunk-O2OWEFII.js} +1 -1
- package/{chunk-TDRTS7QW.js → chunk-O6JPWEEK.js} +77 -17
- package/chunk-OCZKATRC.js +129 -0
- package/{chunk-6D6VBVEW.js → chunk-OTEMQQZI.js} +80 -14
- package/{chunk-7OLPQSMQ.js → chunk-OYOWA3CP.js} +24 -5
- package/chunk-P6GMCCAT.js +870 -0
- package/{chunk-ESWUWEFS.js → chunk-PQTSOHBT.js} +13 -13
- package/{chunk-WGR3J4Q6.js → chunk-Q4GP72HX.js} +9 -3
- package/{chunk-DHDMC6FO.js → chunk-QKUMVP3O.js} +11 -6
- package/{chunk-TZJJ77KQ.js → chunk-RMAWULCS.js} +498 -480
- package/{chunk-V4MJDUSR.js → chunk-RSEEDUMS.js} +2 -2
- package/{chunk-UZGQNTVW.js → chunk-S5XGT6GB.js} +5 -3
- package/{chunk-76WEAXJB.js → chunk-SACTCJAC.js} +18 -15
- package/{chunk-AFUORTY4.js → chunk-SONWNI3L.js} +21 -21
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-OF7AQZUG.js → chunk-TU5NE4U3.js} +9 -84
- package/chunk-TY3TIUJK.js +89 -0
- package/chunk-UEGYKNHO.js +13349 -0
- package/chunk-UNYJU5L6.js +780 -0
- package/{chunk-J4MOO56S.js → chunk-UQNS32WZ.js} +10 -2
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-54ADB4W7.js → chunk-VYN7O3OY.js} +1 -1
- package/{chunk-JAXOVNM4.js → chunk-WILHZY7K.js} +45 -45
- package/{chunk-UKWGR5SS.js → chunk-WIWM4FE3.js} +187 -398
- package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
- package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
- package/{chunk-SNPMM7H3.js → chunk-Y6AZRODX.js} +13 -13
- package/{chunk-SQQVLHMH.js → chunk-YJKDTJ2X.js} +7 -7
- package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
- package/{chunk-TOP2VXOR.js → chunk-Z4CSIXYP.js} +2 -2
- package/{chunk-2F7RJC6L.js → chunk-ZOVKKMF6.js} +1 -1
- package/chunk-ZRAU6T47.js +56 -0
- package/{chunk-Z77CRGTW.js → chunk-ZYWQNCBN.js} +1 -1
- package/commandRegistry-MRPLKSWP.js +833 -0
- package/{contentThunks-ATLWNC2D.js → contentThunks-TD5YOAQM.js} +32 -30
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
- package/{createAgentAutomationAction-QYYWTVUR.js → createAgentAutomationAction-XUG62ANM.js} +32 -30
- package/{createDialogAction-7I5VGWCR.js → createDialogAction-L3CMZKNL.js} +36 -33
- package/{createPageAction-WNURYCWU.js → createPageAction-WJ3MX6JS.js} +38 -36
- package/{chunk-YVIV7WT4.js → cursorProvider-YGGNMVWX.js} +2496 -9890
- package/{dbSlice-XVWBAGYN.js → dbSlice-DQ32LYTJ.js} +8 -8
- package/{deleteFile-YG6QMJLU.js → deleteFile-NX6QHCWZ.js} +3 -3
- package/{dialogCommands-RILHDRQ5.js → dialogCommands-VM3I4HBW.js} +45 -41
- package/{dialogSlice-W5BYELVR.js → dialogSlice-DSHG3YUE.js} +36 -29
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-GSTPU7SG.js → docCreateCommands-TYUJPCOP.js} +44 -40
- package/{docDeleteCommands-2FC3LSUT.js → docDeleteCommands-5XEG2LXO.js} +44 -40
- package/{docReadCommands-27POBA34.js → docReadCommands-M6RO6QHV.js} +43 -39
- package/{docStore-7LAHBFP2.js → docStore-RYOGMPEF.js} +11 -10
- package/{docUpdateCommands-U4II6VCO.js → docUpdateCommands-DKOFTZRX.js} +44 -40
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-67MEFPZR.js} +2 -2
- package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +3 -3
- package/{handleSendMessageAction-SKMJMVRU.js → handleSendMessageAction-XH742B27.js} +91 -83
- package/index.js +87 -884
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-EBRS242U.js} +2 -2
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-5W6IJRAD.js} +6 -6
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-3LRMNLCM.js} +1 -1
- package/{machineCommands-S2RNYKVJ.js → machineCommands-BKYVMMEG.js} +85 -77
- package/{machineWsRunDispatch-JC44LBLP.js → machineWsRunDispatch-QOBSQQ72.js} +82 -74
- package/{memberThunks-QGFLFVCI.js → memberThunks-5ZXPR63F.js} +9 -9
- package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
- package/oauthTokenStore-ITEB663N.js +23 -0
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-76AVU3HD.js} +7 -7
- package/{providerRegistry-757OWH3O.js → providerRegistry-Z62NC45X.js} +11 -7
- package/{read-COE3ZYR6.js → read-EPTJRAEF.js} +5 -5
- package/{readDocTool-5USN4A6V.js → readDocTool-W4NDXNEX.js} +5 -3
- package/{readlineWorkspace-VZSBXUH4.js → readlineWorkspace-7P7IORIT.js} +2450 -2022
- package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-BVAWQKXE.js} +17 -19
- package/{runAgentClientLoop-ZYENU7GH.js → runAgentClientLoop-7WXN6I7L.js} +62 -58
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-3USD722U.js} +3 -3
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-LYY45IAD.js} +12 -11
- package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-73IL7DLU.js} +18 -20
- package/{settingSlice-ZQZVUPKK.js → settingSlice-Q6EKL7EQ.js} +9 -9
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
- package/{spaceCommands-QB3NNEMN.js → spaceCommands-QFP4ZXKG.js} +44 -40
- package/{streamAgentChatTurn-43GPPQSN.js → streamAgentChatTurn-B4PXPJJS.js} +184 -91
- package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-UUXDSQ6X.js} +15 -17
- package/{tableCommands-O6NWHFKV.js → tableCommands-G7RV3RU3.js} +4 -4
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-INIQCPGY.js} +3 -3
- package/{tools-SX6Y4STZ.js → tools-QFS2L7BU.js} +55 -51
- package/{tuiSummaryLlmCaller-T2SHYMDZ.js → tuiSummaryLlmCaller-74NRRLVW.js} +18 -16
- package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
- package/{updateDialogTitleAction-VAKA4ZNY.js → updateDialogTitleAction-HTDYCNNZ.js} +81 -43
- package/agentListCommands-BRZFEJQM.js +0 -406
- package/agentRecordCommands-TTAEMNHB.js +0 -128
- package/chunk-K4YGZD3P.js +0 -18881
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-Q5FJJ6XI.js +0 -103
- package/chunk-S7Z2HMCN.js +0 -25
- package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
package/chunk-Q5FJJ6XI.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// packages/agent-runtime/devinOAuth.ts
|
|
2
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
-
import { homedir } from "node:os";
|
|
4
|
-
import { join } from "node:path";
|
|
5
|
-
var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
|
|
6
|
-
function buildDevinAuthUrl(orgId) {
|
|
7
|
-
const cleanOrg = orgId?.trim();
|
|
8
|
-
if (cleanOrg) {
|
|
9
|
-
return `https://app.devin.ai/org/${encodeURIComponent(cleanOrg)}/settings/keys`;
|
|
10
|
-
}
|
|
11
|
-
return "https://app.devin.ai/settings/keys";
|
|
12
|
-
}
|
|
13
|
-
function extractDevinToken(input) {
|
|
14
|
-
const raw = input?.trim();
|
|
15
|
-
if (!raw) return null;
|
|
16
|
-
if (/^https?:\/\//i.test(raw)) {
|
|
17
|
-
try {
|
|
18
|
-
const url = new URL(raw);
|
|
19
|
-
const queryToken = url.searchParams.get("token") || url.searchParams.get("access_token") || url.searchParams.get("auth_token");
|
|
20
|
-
if (queryToken?.trim()) return queryToken.trim();
|
|
21
|
-
if (url.hash) {
|
|
22
|
-
const hashParams = new URLSearchParams(url.hash.replace(/^#/, ""));
|
|
23
|
-
const hashToken = hashParams.get("token") || hashParams.get("access_token") || hashParams.get("auth_token");
|
|
24
|
-
if (hashToken?.trim()) return hashToken.trim();
|
|
25
|
-
}
|
|
26
|
-
} catch {
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return raw || null;
|
|
30
|
-
}
|
|
31
|
-
function parseDevinCredentialsToml(content) {
|
|
32
|
-
for (const line of content.split(/\r?\n/)) {
|
|
33
|
-
const cogMatch = line.match(/(cog_[A-Za-z0-9_-]+)/);
|
|
34
|
-
if (cogMatch?.[1]) {
|
|
35
|
-
return cogMatch[1].trim();
|
|
36
|
-
}
|
|
37
|
-
const match = line.match(
|
|
38
|
-
/^\s*(?:windsurf_api_key|devin_api_key|api_key|api_token|token)\s*=\s*"([^"]+)"\s*$/i
|
|
39
|
-
);
|
|
40
|
-
if (match?.[1]) {
|
|
41
|
-
return match[1].trim();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
function detectLocalDevinCredentials(options) {
|
|
47
|
-
const baseHome = options?.homeDir || homedir();
|
|
48
|
-
const xdgData = process.env.XDG_DATA_HOME;
|
|
49
|
-
const candidateCliPaths = [
|
|
50
|
-
xdgData ? join(xdgData, "devin", "credentials.toml") : null,
|
|
51
|
-
join(baseHome, ".local", "share", "devin", "credentials.toml"),
|
|
52
|
-
process.env.APPDATA ? join(process.env.APPDATA, "devin", "credentials.toml") : null
|
|
53
|
-
].filter((p) => Boolean(p));
|
|
54
|
-
for (const credPath of candidateCliPaths) {
|
|
55
|
-
if (existsSync(credPath)) {
|
|
56
|
-
try {
|
|
57
|
-
const content = readFileSync(credPath, "utf-8");
|
|
58
|
-
const token = parseDevinCredentialsToml(content);
|
|
59
|
-
if (token) {
|
|
60
|
-
return {
|
|
61
|
-
found: true,
|
|
62
|
-
token,
|
|
63
|
-
source: "devin-cli",
|
|
64
|
-
sourcePath: credPath
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
const codeiumPath = join(baseHome, ".codeium", "config.json");
|
|
72
|
-
if (existsSync(codeiumPath)) {
|
|
73
|
-
try {
|
|
74
|
-
const parsed = JSON.parse(readFileSync(codeiumPath, "utf-8"));
|
|
75
|
-
const token = parsed.apiKey || parsed.api_key;
|
|
76
|
-
if (token?.trim()) {
|
|
77
|
-
return {
|
|
78
|
-
found: true,
|
|
79
|
-
token: token.trim(),
|
|
80
|
-
source: "codeium-config",
|
|
81
|
-
sourcePath: codeiumPath
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
} catch {
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return { found: false };
|
|
88
|
-
}
|
|
89
|
-
function buildDevinOAuthCredential(token, now = Date.now()) {
|
|
90
|
-
return {
|
|
91
|
-
provider: "devin",
|
|
92
|
-
accessToken: token.trim(),
|
|
93
|
-
obtainedAt: now
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export {
|
|
98
|
-
DEVIN_CONNECT_URL,
|
|
99
|
-
buildDevinAuthUrl,
|
|
100
|
-
extractDevinToken,
|
|
101
|
-
detectLocalDevinCredentials,
|
|
102
|
-
buildDevinOAuthCredential
|
|
103
|
-
};
|
package/chunk-S7Z2HMCN.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// packages/cli/secretScan.ts
|
|
2
|
-
var SECRET_PATTERNS = [
|
|
3
|
-
{ label: "password", pattern: /\bpassword\s*[:=]\s*["']?[^"',\s#]{8,}/i },
|
|
4
|
-
{ label: "psk", pattern: /\bpsk\s*[:=]\s*["']?[^"',\s#]{8,}/i },
|
|
5
|
-
{ label: "api key", pattern: /\b(api[_-]?key|apikey)\s*[:=]\s*["']?[^"',\s#]{12,}/i },
|
|
6
|
-
{ label: "token", pattern: /\b(token|secret)\s*[:=]\s*["']?[^"',\s#]{12,}/i },
|
|
7
|
-
{ label: "private key", pattern: /-----BEGIN [A-Z ]*PRIVATE KEY-----/ }
|
|
8
|
-
];
|
|
9
|
-
function findPotentialSecrets(text) {
|
|
10
|
-
return text.split(/\r?\n/).flatMap(
|
|
11
|
-
(line, index) => SECRET_PATTERNS.filter(({ pattern }) => pattern.test(line)).map(({ label }) => ({
|
|
12
|
-
label,
|
|
13
|
-
line: index + 1,
|
|
14
|
-
preview: line.length > 120 ? `${line.slice(0, 117)}...` : line
|
|
15
|
-
}))
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
function formatSecretFindings(findings) {
|
|
19
|
-
return findings.map((finding) => ` line ${finding.line} (${finding.label}): ${finding.preview}`).join("\n");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
findPotentialSecrets,
|
|
24
|
-
formatSecretFindings
|
|
25
|
-
};
|
|
@@ -2390,6 +2390,11 @@ var require_rambda = __commonJS({
|
|
|
2390
2390
|
}
|
|
2391
2391
|
});
|
|
2392
2392
|
|
|
2393
|
+
// packages/core/toTrimmedString.ts
|
|
2394
|
+
function toTrimmedString(value) {
|
|
2395
|
+
return typeof value === "string" ? value.trim() : value == null ? "" : String(value).trim();
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2393
2398
|
// packages/core/stringArray.ts
|
|
2394
2399
|
function asNonEmptyStringArray(value) {
|
|
2395
2400
|
if (!Array.isArray(value)) return [];
|
|
@@ -2401,11 +2406,6 @@ function asTrimmedNonEmptyStringArray(value) {
|
|
|
2401
2406
|
return asNonEmptyStringArray(value).map((item) => item.trim());
|
|
2402
2407
|
}
|
|
2403
2408
|
|
|
2404
|
-
// packages/core/toTrimmedString.ts
|
|
2405
|
-
function toTrimmedString(value) {
|
|
2406
|
-
return typeof value === "string" ? value.trim() : value == null ? "" : String(value).trim();
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
2409
|
// packages/database/utils/ulid.ts
|
|
2410
2410
|
import { monotonicFactory } from "ulid";
|
|
2411
2411
|
var prng = () => Math.random();
|
|
@@ -3177,10 +3177,10 @@ var sanitizeShareData = (data) => {
|
|
|
3177
3177
|
};
|
|
3178
3178
|
|
|
3179
3179
|
export {
|
|
3180
|
-
asNonEmptyStringArray,
|
|
3181
|
-
asTrimmedNonEmptyStringArray,
|
|
3182
3180
|
ulid,
|
|
3183
3181
|
toTrimmedString,
|
|
3182
|
+
asNonEmptyStringArray,
|
|
3183
|
+
asTrimmedNonEmptyStringArray,
|
|
3184
3184
|
toNonEmptyString,
|
|
3185
3185
|
extractAgentInfo,
|
|
3186
3186
|
extractCoverImage,
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOrCreateServerStoreRuntime
|
|
3
3
|
} from "./chunk-M5PVFLD4.js";
|
|
4
|
+
import "./chunk-CIF4X6ZM.js";
|
|
4
5
|
import {
|
|
5
6
|
isLevelLockError
|
|
6
7
|
} from "./chunk-URMS4XY2.js";
|
|
7
|
-
import "./chunk-CIF4X6ZM.js";
|
|
8
8
|
import "./chunk-UV6VISQJ.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveServerDbPath
|