nolo-cli 0.98.0-alpha.4 → 0.98.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.
Files changed (205) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-HYZ4NXRJ.js → _executeModel-GJK4ZVU6.js} +74 -67
  3. package/action-PNPQLJHG.js +20 -0
  4. package/{addContentAction-O7R66HEX.js → addContentAction-RBOUD7SJ.js} +12 -11
  5. package/{addDialogAgentAction-74OA7KYP.js → addDialogAgentAction-IODCR6TB.js} +18 -19
  6. package/{agentDeleteCommand-2YAHAZFJ.js → agentDeleteCommand-GHRF6CH5.js} +47 -42
  7. package/{agentEmailCommands-SLEQANTK.js → agentEmailCommands-O5BTHYZK.js} +97 -87
  8. package/agentListCommands-3REEM63V.js +742 -0
  9. package/{agentMachineCommands-KBI77S35.js → agentMachineCommands-2GW3CV7Q.js} +48 -43
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-IRNZXVGE.js} +1 -1
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-B4T2DJ5H.js} +1 -1
  12. package/agentRecordCommands-WYQODWZE.js +138 -0
  13. package/agentRunCommand-KAN65WPY.js +167 -0
  14. package/{agentRunControl-AVJR4JW4.js → agentRunControl-3HWA2LLQ.js} +2 -2
  15. package/{agentRuntimeLocal-VXZSDIGT.js → agentRuntimeLocal-IOFBNVIL.js} +48 -39
  16. package/{agentSlice-ZOYISPZD.js → agentSlice-I45M32KO.js} +14 -13
  17. package/{appDeleteCommands-32MHLR4L.js → appDeleteCommands-SFS6IZEM.js} +46 -41
  18. package/{appDeployCommands-WCQOUSOB.js → appDeployCommands-YZQESVRQ.js} +46 -41
  19. package/{appDeployStatusCommands-6QKB7DYN.js → appDeployStatusCommands-FKUUDCKP.js} +46 -41
  20. package/{appGetCommands-SFAPP5PB.js → appGetCommands-QUE7OQZC.js} +46 -41
  21. package/{appListCommands-EKUBDRUO.js → appListCommands-QEETFKMH.js} +46 -41
  22. package/{authCommand-F4EFRRX6.js → authCommand-NHDLY3IB.js} +118 -24
  23. package/{authCommands-RGOGCPP6.js → authCommands-UDBJVSZU.js} +7 -5
  24. package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MAR5LPAC.js} +10 -8
  25. package/{chromeCommands-FZYAU75D.js → chromeCommands-K27J4OVZ.js} +124 -28
  26. package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-IXRLN57H.js} +4 -3
  27. package/{chunk-6OZ36FXI.js → chunk-27ONFIEY.js} +22 -4
  28. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  29. package/{chunk-53HEEOTT.js → chunk-2WJ57RJA.js} +83 -16
  30. package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
  31. package/{chunk-ABQYVJBJ.js → chunk-46Y5D2BZ.js} +5 -5
  32. package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
  33. package/{chunk-H62HCIUP.js → chunk-4FFUDT6D.js} +24 -21
  34. package/chunk-4LCOCOR5.js +50 -0
  35. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  36. package/{chunk-IIVGDG4I.js → chunk-4YSOUKUR.js} +13 -7
  37. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  38. package/{chunk-G4EBXCWF.js → chunk-5AUJB66Z.js} +550 -515
  39. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  40. package/chunk-5J3PYNUP.js +255 -0
  41. package/chunk-5MMAK75Q.js +15 -0
  42. package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
  43. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  44. package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
  45. package/{chunk-34BLIAHQ.js → chunk-6XDD7N7P.js} +47 -67
  46. package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
  47. package/{chunk-DNCEALKX.js → chunk-7MMSLEPA.js} +22 -29
  48. package/chunk-A4SQRTZ6.js +15 -0
  49. package/{chunk-7S4YWN7P.js → chunk-ADBZWMFB.js} +4 -4
  50. package/chunk-AGIM7IMJ.js +147 -0
  51. package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
  52. package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
  53. package/{chunk-T37GTQYU.js → chunk-B2DEZY6J.js} +20 -11
  54. package/chunk-BMQ2MJUK.js +153 -0
  55. package/{chunk-6YTOJY35.js → chunk-BZ7NPA6G.js} +35 -2
  56. package/chunk-C4DVDM72.js +13536 -0
  57. package/chunk-CHOZJMJS.js +78 -0
  58. package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
  59. package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
  60. package/chunk-DZ7R5V3Y.js +164 -0
  61. package/{chunk-3VNWWVKB.js → chunk-E3YWHWCR.js} +50 -18
  62. package/{chunk-V4MJDUSR.js → chunk-E73ON47R.js} +2 -2
  63. package/{chunk-XDJFSBVV.js → chunk-EIFYNGU4.js} +24 -5
  64. package/{chunk-KQ4ONNQD.js → chunk-EKPKW6RM.js} +155 -8
  65. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  66. package/{chunk-HJUYAD4A.js → chunk-FJ5BGMNM.js} +5 -5
  67. package/{chunk-2F7RJC6L.js → chunk-FOXQ7BAB.js} +1 -1
  68. package/{chunk-6IG4XSS6.js → chunk-FY7DCYW7.js} +88 -17
  69. package/{chunk-J4MOO56S.js → chunk-GARACBQB.js} +10 -2
  70. package/{chunk-6VFARHZW.js → chunk-GDFA73QZ.js} +934 -1091
  71. package/chunk-GMZLP5DV.js +82 -0
  72. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  73. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  74. package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
  75. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  76. package/{chunk-VLTIYV3X.js → chunk-HP57OUJO.js} +4 -4
  77. package/{chunk-YRPASJCG.js → chunk-I76SDF7A.js} +10 -10
  78. package/{chunk-2D66PZ54.js → chunk-I7BCBNWZ.js} +24 -77
  79. package/{chunk-GPCZ7UXG.js → chunk-K6U4NKFJ.js} +1 -1
  80. package/{chunk-4OEFYTWL.js → chunk-LDCAFLXD.js} +64 -48
  81. package/{chunk-OEVAY4J6.js → chunk-LNVJHIGA.js} +18 -20
  82. package/{chunk-LS2ZANRJ.js → chunk-LOCNXNOU.js} +1 -1
  83. package/{chunk-5H7KJX7J.js → chunk-LQ4PDQCI.js} +5 -5
  84. package/{chunk-PDIBG2WC.js → chunk-M33GWZIZ.js} +67 -45
  85. package/{chunk-PUOC4YRO.js → chunk-M7VLQGQP.js} +11 -0
  86. package/chunk-NHDMQZJM.js +7881 -0
  87. package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
  88. package/{chunk-L5UXH3B2.js → chunk-NNCYNBYV.js} +22 -6
  89. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  90. package/chunk-NWENLDMM.js +42 -0
  91. package/{chunk-AEOE4Z6Q.js → chunk-NZWAO6LH.js} +13 -15
  92. package/chunk-OCZKATRC.js +129 -0
  93. package/{chunk-PKUGW3X6.js → chunk-OU36O6OR.js} +23 -28
  94. package/chunk-OW4APERY.js +870 -0
  95. package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
  96. package/{chunk-ITM7D3UQ.js → chunk-P5L7VVMT.js} +11 -9
  97. package/{chunk-TOP2VXOR.js → chunk-PCF3QU5Q.js} +5 -5
  98. package/{chunk-WV42OMV7.js → chunk-PTDYOADJ.js} +8 -8
  99. package/{chunk-6D6VBVEW.js → chunk-SNMQMOD2.js} +80 -14
  100. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  101. package/{chunk-Z77CRGTW.js → chunk-TVCAR26G.js} +1 -1
  102. package/chunk-TY3TIUJK.js +89 -0
  103. package/{chunk-I3TQJXQ7.js → chunk-U3C3IA32.js} +9 -2
  104. package/{chunk-RG6JBBX5.js → chunk-U7XXEI5R.js} +166 -13
  105. package/{chunk-UZGQNTVW.js → chunk-UA324D4O.js} +8 -6
  106. package/chunk-UJXNKP5V.js +760 -0
  107. package/{chunk-UKZDAFYT.js → chunk-UM4PH574.js} +6 -10
  108. package/{chunk-GEPUP7OO.js → chunk-UVKDJUTL.js} +3 -3
  109. package/{chunk-ZCYXJSTU.js → chunk-V5OWQOJZ.js} +19 -88
  110. package/{chunk-NA35QHCF.js → chunk-V7Y6KRAH.js} +1 -1
  111. package/{chunk-3DII57IT.js → chunk-VCAQFMVN.js} +1 -1
  112. package/{chunk-JRQFUXY7.js → chunk-VEYL5MO5.js} +99 -22
  113. package/chunk-VIWDGTDA.js +8 -0
  114. package/chunk-VJVNU77E.js +83 -0
  115. package/{chunk-UKWGR5SS.js → chunk-VY6VFGKR.js} +194 -1144
  116. package/{chunk-5ZYCLPXL.js → chunk-W3RFFFFF.js} +873 -227
  117. package/{chunk-BP4XNZRM.js → chunk-W72ISAKC.js} +4 -4
  118. package/{chunk-DHDMC6FO.js → chunk-WCGC6S77.js} +14 -9
  119. package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
  120. package/{chunk-V7BKTIF6.js → chunk-WXHAOL7Y.js} +19 -17
  121. package/{chunk-37NKTC3Q.js → chunk-X2B2C4XD.js} +1 -1
  122. package/{chunk-HVURBGF3.js → chunk-XFUBXRVI.js} +6 -6
  123. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  124. package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
  125. package/{chunk-ETI2NYVF.js → chunk-YPOPJAKN.js} +4 -4
  126. package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
  127. package/chunk-YV25TM3R.js +780 -0
  128. package/chunk-ZRAU6T47.js +56 -0
  129. package/commandRegistry-RZNZ37BN.js +833 -0
  130. package/{contentThunks-G55OKUFE.js → contentThunks-DF7ZNCAG.js} +36 -34
  131. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  132. package/{createAgentAutomationAction-D2J2O5GS.js → createAgentAutomationAction-KPMOZ53Y.js} +38 -36
  133. package/createDialogAction-I2UDVAXN.js +69 -0
  134. package/{createPageAction-FHZBN7DJ.js → createPageAction-IF5JXNKV.js} +45 -42
  135. package/{chunk-AJ3A3445.js → cursorProvider-YGGNMVWX.js} +2496 -9897
  136. package/{dbSlice-XVWBAGYN.js → dbSlice-Q25STFGJ.js} +11 -10
  137. package/{deleteFile-YG6QMJLU.js → deleteFile-AJ2EZMHT.js} +7 -6
  138. package/{dialogCommands-5J56DFWN.js → dialogCommands-LWHIIUQD.js} +49 -45
  139. package/{dialogSlice-D4V3HURH.js → dialogSlice-74DFPFRV.js} +40 -33
  140. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  141. package/{docCreateCommands-KYI2DC2U.js → docCreateCommands-LVXQ6TNZ.js} +48 -43
  142. package/{docDeleteCommands-67REUSRY.js → docDeleteCommands-7TVIGCLP.js} +49 -44
  143. package/{docReadCommands-HOSVSBDJ.js → docReadCommands-KYAXFLQ5.js} +47 -42
  144. package/{docStore-5LROPEEP.js → docStore-2JDRAYXJ.js} +16 -12
  145. package/{docUpdateCommands-EMGCSMXY.js → docUpdateCommands-TVC5KWPK.js} +48 -43
  146. package/{fetchMessages-EIU7UFFK.js → fetchMessages-I5ICDDHM.js} +5 -5
  147. package/{getPricing-LUSEABA6.js → getPricing-NMMFT3YI.js} +4 -4
  148. package/{handleSendMessageAction-QBPDYSLZ.js → handleSendMessageAction-54GY3XOH.js} +110 -86
  149. package/index.js +87 -884
  150. package/{localDialogRead-BTFJ4V2I.js → localDialogRead-ZHZ3KXDM.js} +2 -2
  151. package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-TU6OBC76.js} +9 -6
  152. package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-VKWVOPPI.js} +1 -1
  153. package/{machineCommands-4ISPVTPN.js → machineCommands-54RNLVJE.js} +91 -81
  154. package/machineWsRunDispatch-WE3VTD57.js +154 -0
  155. package/{memberThunks-QGFLFVCI.js → memberThunks-R75S3RWP.js} +20 -18
  156. package/{models-T3SG6MJ5.js → models-ZPU5EDF4.js} +2 -2
  157. package/oauthTokenStore-ITEB663N.js +23 -0
  158. package/package.json +1 -1
  159. package/pdf-U6KSUEZZ.js +26435 -0
  160. package/processSpawn-SOAV3FEV.js +11 -0
  161. package/profileConfig-ZGOFORWV.js +43 -0
  162. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-TEBH7FDX.js} +7 -7
  163. package/{providerRegistry-757OWH3O.js → providerRegistry-CBJLNCET.js} +11 -7
  164. package/{read-COE3ZYR6.js → read-SRQMNO26.js} +7 -6
  165. package/{readDocTool-5USN4A6V.js → readDocTool-RC3JUNJ2.js} +5 -3
  166. package/{readlineWorkspace-JFADM567.js → readlineWorkspace-UK5M5CJI.js} +2704 -2060
  167. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-46XQV5Q7.js} +21 -25
  168. package/{runAgentClientLoop-JFFIFP7N.js → runAgentClientLoop-MTI5OU2W.js} +75 -69
  169. package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-PIVSBZRZ.js} +4 -4
  170. package/runtimeModeArgs-2Y7BALTO.js +31 -0
  171. package/{setDialogExtraReferencesAction-X4HCPNZL.js → setDialogExtraReferencesAction-J4V5ADQF.js} +15 -13
  172. package/{setPrimaryDialogAgentAction-4GMIQLOD.js → setPrimaryDialogAgentAction-UHHV2QZW.js} +22 -26
  173. package/{chunk-AFUORTY4.js → settingThunks-PPZZZOWN.js} +226 -940
  174. package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-ZBU76COE.js} +3 -3
  175. package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
  176. package/{spaceCommands-NKJVJCQQ.js → spaceCommands-446WWA73.js} +51 -46
  177. package/{streamAgentChatTurn-HFVTDCFD.js → streamAgentChatTurn-IANOWAKR.js} +199 -104
  178. package/{switchDialogAgentAction-N52LRPA3.js → switchDialogAgentAction-A2TMVGAE.js} +18 -19
  179. package/{tableCommands-O6NWHFKV.js → tableCommands-6U4BMLRR.js} +10 -10
  180. package/{toolApiClient-QVJ6HDNN.js → toolApiClient-EJT6TMFG.js} +3 -3
  181. package/tools-WZZYTUNF.js +116 -0
  182. package/{tuiSummaryLlmCaller-WFRWERGK.js → tuiSummaryLlmCaller-Q65IBDGO.js} +24 -21
  183. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  184. package/{updateDialogTitleAction-PER2C6MR.js → updateDialogTitleAction-Z2JTYLXD.js} +82 -44
  185. package/action-YVYQEAAV.js +0 -31
  186. package/agentListCommands-KMS675GZ.js +0 -406
  187. package/agentRecordCommands-IPPPUHG4.js +0 -128
  188. package/agentRunCommand-24XO4RDT.js +0 -155
  189. package/browser-image-compression-MFDTD7K6.js +0 -1763
  190. package/chatQueueReduxAdapter-PMAMSHG7.js +0 -186
  191. package/chunk-M76ECQRD.js +0 -13658
  192. package/chunk-MEYIRKDN.js +0 -8967
  193. package/chunk-OCSGDPAT.js +0 -18885
  194. package/chunk-Q5FJJ6XI.js +0 -103
  195. package/chunk-S7Z2HMCN.js +0 -25
  196. package/chunk-Y5GCAMGP.js +0 -9
  197. package/chunk-YPREESF4.js +0 -225
  198. package/createDialogAction-E2EVICIE.js +0 -65
  199. package/machineWsRunDispatch-L4MKXQAO.js +0 -144
  200. package/settingSlice-ZQZVUPKK.js +0 -204
  201. package/syncMapping-N6RGXGBW.js +0 -437
  202. package/tools-BBBCUOUZ.js +0 -110
  203. package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
  204. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  205. 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
- };
package/chunk-Y5GCAMGP.js DELETED
@@ -1,9 +0,0 @@
1
- // packages/core/positiveFiniteNumberOrFallback.ts
2
- function parsePositiveFiniteNumberOrFallback(value, fallback) {
3
- const parsed = Number(value);
4
- return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
5
- }
6
-
7
- export {
8
- parsePositiveFiniteNumberOrFallback
9
- };
package/chunk-YPREESF4.js DELETED
@@ -1,225 +0,0 @@
1
- // packages/core/chat/internalTurnEvent.ts
2
- function normalizeRunCompletionShape(record) {
3
- const runId = String(record.runId ?? record.id ?? "");
4
- const agentKey = String(record.agentKey ?? record.agent ?? "");
5
- const status = String(record.status ?? "done");
6
- const counters = record.activity?.counters;
7
- return {
8
- runId,
9
- agentKey,
10
- ...typeof record.agentName === "string" ? { agentName: record.agentName } : {},
11
- status,
12
- ...typeof record.exitCode === "number" ? { exitCode: record.exitCode } : {},
13
- ...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
14
- ...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
15
- ...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
16
- ...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
17
- ...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
18
- ...typeof record.note === "string" ? { note: record.note } : {},
19
- ...typeof record.error === "string" ? { error: record.error } : {},
20
- ...typeof record.ack === "boolean" ? { ack: record.ack } : {},
21
- ...counters ? {
22
- activity: {
23
- counters: {
24
- toolCalls: typeof counters.toolCalls === "number" ? counters.toolCalls : 0,
25
- llmCalls: typeof counters.llmCalls === "number" ? counters.llmCalls : 0,
26
- fileEdits: typeof counters.fileEdits === "number" ? counters.fileEdits : 0
27
- }
28
- }
29
- } : {}
30
- };
31
- }
32
- function createTurnRequest(input) {
33
- if (typeof input === "string") {
34
- return {
35
- event: { kind: "user", text: input },
36
- text: input
37
- };
38
- }
39
- if ("event" in input && typeof input.event === "object" && typeof input.text === "string") {
40
- return input;
41
- }
42
- const event = input;
43
- return {
44
- event,
45
- text: event.text
46
- };
47
- }
48
-
49
- // packages/core/chat/chatQueueMachine.ts
50
- var initialChatQueueState = {
51
- running: false,
52
- queue: [],
53
- drainPaused: false,
54
- lastDrainError: null
55
- };
56
- function reduceChatQueue(state, event) {
57
- switch (event.type) {
58
- case "turn-start":
59
- if (state.running && state.lastDrainError === null) return state;
60
- return {
61
- ...state,
62
- running: true,
63
- lastDrainError: null
64
- };
65
- case "turn-end":
66
- return {
67
- ...state,
68
- running: false,
69
- queue: event.aborted ? [] : state.queue,
70
- lastDrainError: !event.ok && !event.aborted ? "previous turn failed" : state.lastDrainError
71
- };
72
- case "enqueue": {
73
- const req = createTurnRequest(event.text);
74
- if (!req.text.trim() && req.event.kind === "user") {
75
- return state;
76
- }
77
- return {
78
- ...state,
79
- queue: [...state.queue, req]
80
- };
81
- }
82
- case "steer": {
83
- const req = createTurnRequest(event.text);
84
- if (!req.text.trim() && req.event.kind === "user") {
85
- return state;
86
- }
87
- return {
88
- ...state,
89
- queue: [req, ...state.queue]
90
- };
91
- }
92
- case "dequeue":
93
- if (state.queue.length === 0) return state;
94
- return {
95
- ...state,
96
- queue: state.queue.slice(1)
97
- };
98
- case "recall-last":
99
- if (state.queue.length === 0) return state;
100
- return {
101
- ...state,
102
- queue: state.queue.slice(0, -1)
103
- };
104
- case "clear":
105
- if (state.queue.length === 0 && state.lastDrainError === null) return state;
106
- return {
107
- ...state,
108
- queue: [],
109
- lastDrainError: null
110
- };
111
- case "pause-drain":
112
- if (state.drainPaused) return state;
113
- return {
114
- ...state,
115
- drainPaused: true
116
- };
117
- case "resume-drain":
118
- if (!state.drainPaused) return state;
119
- return {
120
- ...state,
121
- drainPaused: false
122
- };
123
- case "drain-error":
124
- return {
125
- ...state,
126
- lastDrainError: event.message || null
127
- };
128
- default:
129
- return state;
130
- }
131
- }
132
- function shouldDrainAfterTurnEnd(state, cleanTurnEnd) {
133
- return cleanTurnEnd && !state.running && !state.drainPaused && state.queue.length > 0;
134
- }
135
- function applyChatQueueEvent(state, event) {
136
- const prevQueue = state.queue;
137
- const prevQueueLen = prevQueue.length;
138
- const prevRunning = state.running;
139
- const prevPaused = state.drainPaused;
140
- const next = reduceChatQueue(state, event);
141
- const outgoing = [];
142
- if (next.queue.length !== prevQueueLen) {
143
- outgoing.push({ type: "queue-changed", length: next.queue.length });
144
- }
145
- if (next.running !== prevRunning) {
146
- outgoing.push({ type: "running-changed", running: next.running });
147
- }
148
- if (next.drainPaused !== prevPaused) {
149
- outgoing.push({ type: "drain-paused-changed", paused: next.drainPaused });
150
- }
151
- if (event.type === "recall-last" && prevQueueLen > 0) {
152
- const last = prevQueue[prevQueueLen - 1];
153
- outgoing.push({ type: "recalled-to-draft", text: last.text, request: last });
154
- }
155
- if (event.type === "steer" && next.running && next.queue.length > prevQueueLen) {
156
- const head = next.queue[0];
157
- if (head) {
158
- outgoing.push({ type: "steer-ready", text: head.text, request: head });
159
- }
160
- }
161
- if (event.type === "turn-end") {
162
- if (event.aborted && prevQueueLen > 0) {
163
- const first = prevQueue[0];
164
- outgoing.push({
165
- type: "aborted-draft-refill",
166
- text: first.text,
167
- request: first,
168
- abortedRequests: [...prevQueue]
169
- });
170
- } else if (!event.aborted && event.ok) {
171
- if (shouldDrainAfterTurnEnd(next, true)) {
172
- const head = next.queue[0];
173
- outgoing.push({ type: "drain-ready", text: head.text, request: head });
174
- }
175
- }
176
- }
177
- return { state: next, outgoing };
178
- }
179
-
180
- // packages/core/chat/chatQueueRuntime.ts
181
- function createChatQueueRuntime(initialState = initialChatQueueState) {
182
- let state = initialState;
183
- const listeners = /* @__PURE__ */ new Set();
184
- const dispatch = (events) => {
185
- for (const e of events) {
186
- for (const l of listeners) l(e);
187
- }
188
- };
189
- return {
190
- getState: () => state,
191
- send(event) {
192
- const result = applyChatQueueEvent(state, event);
193
- state = result.state;
194
- dispatch(result.outgoing);
195
- return state;
196
- },
197
- subscribe(listener) {
198
- listeners.add(listener);
199
- return () => {
200
- listeners.delete(listener);
201
- };
202
- },
203
- on(type, listener) {
204
- const wrapped = (e) => {
205
- if (e.type === type) {
206
- listener(e);
207
- }
208
- };
209
- listeners.add(wrapped);
210
- return () => {
211
- listeners.delete(wrapped);
212
- };
213
- },
214
- dispose() {
215
- listeners.clear();
216
- state = initialChatQueueState;
217
- }
218
- };
219
- }
220
-
221
- export {
222
- normalizeRunCompletionShape,
223
- createTurnRequest,
224
- createChatQueueRuntime
225
- };
@@ -1,65 +0,0 @@
1
- import {
2
- createDialogAction,
3
- isLocalOwnerDialogAgents
4
- } from "./chunk-PKUGW3X6.js";
5
- import "./chunk-34BLIAHQ.js";
6
- import "./chunk-ZJ7UHBJS.js";
7
- import "./chunk-OCSGDPAT.js";
8
- import "./chunk-MC4XLIJ7.js";
9
- import "./chunk-3BMYXEUW.js";
10
- import "./chunk-YYLHWIW6.js";
11
- import "./chunk-AGGIDPCZ.js";
12
- import "./chunk-ITM7D3UQ.js";
13
- import "./chunk-TOP2VXOR.js";
14
- import "./chunk-5RGU3J7P.js";
15
- import "./chunk-6YTOJY35.js";
16
- import "./chunk-M76ECQRD.js";
17
- import "./chunk-YDH3FDFQ.js";
18
- import "./chunk-DHDMC6FO.js";
19
- import "./chunk-Q554LLSI.js";
20
- import "./chunk-KHCLMKZZ.js";
21
- import "./chunk-4OEFYTWL.js";
22
- import "./chunk-DNCEALKX.js";
23
- import "./chunk-PSCNXBYA.js";
24
- import "./chunk-GQBOR3G6.js";
25
- import "./chunk-BYXBJQAS.js";
26
- import "./chunk-OIVSQH2O.js";
27
- import "./chunk-DWLEOOGR.js";
28
- import "./chunk-HVURBGF3.js";
29
- import "./chunk-ONXOABJR.js";
30
- import "./chunk-W7XHHYWM.js";
31
- import "./chunk-HNMXYYJR.js";
32
- import "./chunk-7S4YWN7P.js";
33
- import "./chunk-ACTMNVHM.js";
34
- import "./chunk-Q67DOFOO.js";
35
- import "./chunk-AFUORTY4.js";
36
- import "./chunk-Y5GCAMGP.js";
37
- import "./chunk-QDSINZM3.js";
38
- import "./chunk-KX6YBIHG.js";
39
- import "./chunk-V4MJDUSR.js";
40
- import "./chunk-UAD2WT54.js";
41
- import "./chunk-H62HCIUP.js";
42
- import "./chunk-VMFTFOWF.js";
43
- import "./chunk-WWC7I6TA.js";
44
- import "./chunk-ABQYVJBJ.js";
45
- import "./chunk-QSJ3HFEF.js";
46
- import "./chunk-WV42OMV7.js";
47
- import "./chunk-BNGW5ASC.js";
48
- import "./chunk-M2EJHDJP.js";
49
- import "./chunk-UKWGR5SS.js";
50
- import "./chunk-QOKAKDPE.js";
51
- import "./chunk-OW765XBU.js";
52
- import "./chunk-SEJ5OS6F.js";
53
- import "./chunk-GBRG75BQ.js";
54
- import "./chunk-KUG52IAP.js";
55
- import "./chunk-3EUW3WEO.js";
56
- import "./chunk-U6VC4MU4.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
- createDialogAction,
64
- isLocalOwnerDialogAgents
65
- };
@@ -1,144 +0,0 @@
1
- import {
2
- buildArtifactProgress,
3
- defaultRunConnectorLocalRuntimeAgent,
4
- extractMultimodalUserInput,
5
- handleConnectorRunMessage,
6
- hasExplicitMachinePermissions,
7
- isMachineBoundLocalCustomProvider,
8
- localRuntimeEnvFromPolicy,
9
- requestsLocalWorkspaceRuntime,
10
- runtimePolicyFromConnectorPayload,
11
- runtimeWorkspacePermissionPolicy,
12
- scopePermissionPolicyToRuntimeWorkspace,
13
- summarizeAgentConfigForLogs
14
- } from "./chunk-V7BKTIF6.js";
15
- import "./chunk-AJ3A3445.js";
16
- import "./chunk-53HEEOTT.js";
17
- import "./chunk-EADNWBAZ.js";
18
- import "./chunk-SH43IESU.js";
19
- import "./chunk-I3TQJXQ7.js";
20
- import "./chunk-42V6BK2E.js";
21
- import "./chunk-Z77CRGTW.js";
22
- import "./chunk-SV5IJK6K.js";
23
- import "./chunk-MP64VFGD.js";
24
- import "./chunk-JBTJAPUF.js";
25
- import "./chunk-3DII57IT.js";
26
- import "./chunk-ATNTHIZI.js";
27
- import "./chunk-YRPASJCG.js";
28
- import "./chunk-HS7MLR74.js";
29
- import "./chunk-G4EBXCWF.js";
30
- import "./chunk-5UTFL4QJ.js";
31
- import "./chunk-NF64D32W.js";
32
- import "./chunk-3L2WKC3W.js";
33
- import "./chunk-3VNWWVKB.js";
34
- import "./chunk-RG6JBBX5.js";
35
- import "./chunk-KQHGZWSV.js";
36
- import "./chunk-J4MOO56S.js";
37
- import "./chunk-HJUYAD4A.js";
38
- import "./chunk-EYAQT56M.js";
39
- import "./chunk-VIDPVFP3.js";
40
- import "./chunk-VLTIYV3X.js";
41
- import "./chunk-UKZDAFYT.js";
42
- import "./chunk-N4G4PKQ6.js";
43
- import "./chunk-FZGV4FGK.js";
44
- import "./chunk-MEYIRKDN.js";
45
- import "./chunk-63W5N6P3.js";
46
- import "./chunk-VF4K2QE6.js";
47
- import "./chunk-T37GTQYU.js";
48
- import "./chunk-PKUGW3X6.js";
49
- import "./chunk-34BLIAHQ.js";
50
- import "./chunk-ZJ7UHBJS.js";
51
- import "./chunk-OCSGDPAT.js";
52
- import "./chunk-MC4XLIJ7.js";
53
- import "./chunk-3BMYXEUW.js";
54
- import "./chunk-YYLHWIW6.js";
55
- import "./chunk-AGGIDPCZ.js";
56
- import "./chunk-ITM7D3UQ.js";
57
- import "./chunk-TOP2VXOR.js";
58
- import "./chunk-5RGU3J7P.js";
59
- import "./chunk-6YTOJY35.js";
60
- import "./chunk-M76ECQRD.js";
61
- import "./chunk-YDH3FDFQ.js";
62
- import "./chunk-2F7RJC6L.js";
63
- import "./chunk-GLKOYSRU.js";
64
- import "./chunk-JRQFUXY7.js";
65
- import "./chunk-DHDMC6FO.js";
66
- import "./chunk-Q554LLSI.js";
67
- import "./chunk-KHCLMKZZ.js";
68
- import "./chunk-6VFARHZW.js";
69
- import "./chunk-ZCYXJSTU.js";
70
- import "./chunk-Q5FJJ6XI.js";
71
- import "./chunk-ZNFJWEN4.js";
72
- import "./chunk-5H7KJX7J.js";
73
- import "./chunk-CQ3WA2NE.js";
74
- import "./chunk-5ZUL4CUO.js";
75
- import "./chunk-N7J63Q6C.js";
76
- import "./chunk-L5UXH3B2.js";
77
- import "./chunk-PUOC4YRO.js";
78
- import "./chunk-IIVGDG4I.js";
79
- import "./chunk-FDTR4QJ6.js";
80
- import "./chunk-UZGQNTVW.js";
81
- import "./chunk-6OZ36FXI.js";
82
- import "./chunk-2MBTWINN.js";
83
- import "./chunk-4OEFYTWL.js";
84
- import "./chunk-DNCEALKX.js";
85
- import "./chunk-PSCNXBYA.js";
86
- import "./chunk-GQBOR3G6.js";
87
- import "./chunk-BYXBJQAS.js";
88
- import "./chunk-OIVSQH2O.js";
89
- import "./chunk-DWLEOOGR.js";
90
- import "./chunk-HVURBGF3.js";
91
- import "./chunk-ONXOABJR.js";
92
- import "./chunk-W7XHHYWM.js";
93
- import "./chunk-HNMXYYJR.js";
94
- import "./chunk-DVINR3PL.js";
95
- import "./chunk-2GRGFCF6.js";
96
- import "./chunk-O6OSWFZQ.js";
97
- import "./chunk-7S4YWN7P.js";
98
- import "./chunk-X7HHHIOZ.js";
99
- import "./chunk-A7GB5UGH.js";
100
- import "./chunk-OLZBQWZU.js";
101
- import "./chunk-ACTMNVHM.js";
102
- import "./chunk-Q67DOFOO.js";
103
- import "./chunk-BP4XNZRM.js";
104
- import "./chunk-AFUORTY4.js";
105
- import "./chunk-Y5GCAMGP.js";
106
- import "./chunk-QDSINZM3.js";
107
- import "./chunk-KX6YBIHG.js";
108
- import "./chunk-V4MJDUSR.js";
109
- import "./chunk-UAD2WT54.js";
110
- import "./chunk-H62HCIUP.js";
111
- import "./chunk-VMFTFOWF.js";
112
- import "./chunk-WWC7I6TA.js";
113
- import "./chunk-ABQYVJBJ.js";
114
- import "./chunk-QSJ3HFEF.js";
115
- import "./chunk-WV42OMV7.js";
116
- import "./chunk-BNGW5ASC.js";
117
- import "./chunk-M2EJHDJP.js";
118
- import "./chunk-UKWGR5SS.js";
119
- import "./chunk-QOKAKDPE.js";
120
- import "./chunk-OW765XBU.js";
121
- import "./chunk-SEJ5OS6F.js";
122
- import "./chunk-GBRG75BQ.js";
123
- import "./chunk-KUG52IAP.js";
124
- import "./chunk-3EUW3WEO.js";
125
- import "./chunk-U6VC4MU4.js";
126
- import "./chunk-LCBAMY2M.js";
127
- import "./chunk-4SN6J65J.js";
128
- import "./chunk-CF7PE763.js";
129
- import "./chunk-G3SUCT4W.js";
130
- import "./chunk-4VNS5WPM.js";
131
- export {
132
- buildArtifactProgress,
133
- defaultRunConnectorLocalRuntimeAgent,
134
- extractMultimodalUserInput,
135
- handleConnectorRunMessage,
136
- hasExplicitMachinePermissions,
137
- isMachineBoundLocalCustomProvider,
138
- localRuntimeEnvFromPolicy,
139
- requestsLocalWorkspaceRuntime,
140
- runtimePolicyFromConnectorPayload,
141
- runtimeWorkspacePermissionPolicy,
142
- scopePermissionPolicyToRuntimeWorkspace,
143
- summarizeAgentConfigForLogs
144
- };