@loxia-labs/loxia-autopilot-one 1.0.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.
Files changed (80) hide show
  1. package/LICENSE +267 -0
  2. package/README.md +509 -0
  3. package/bin/cli.js +117 -0
  4. package/package.json +94 -0
  5. package/scripts/install-scanners.js +236 -0
  6. package/src/analyzers/CSSAnalyzer.js +297 -0
  7. package/src/analyzers/ConfigValidator.js +690 -0
  8. package/src/analyzers/ESLintAnalyzer.js +320 -0
  9. package/src/analyzers/JavaScriptAnalyzer.js +261 -0
  10. package/src/analyzers/PrettierFormatter.js +247 -0
  11. package/src/analyzers/PythonAnalyzer.js +266 -0
  12. package/src/analyzers/SecurityAnalyzer.js +729 -0
  13. package/src/analyzers/TypeScriptAnalyzer.js +247 -0
  14. package/src/analyzers/codeCloneDetector/analyzer.js +344 -0
  15. package/src/analyzers/codeCloneDetector/detector.js +203 -0
  16. package/src/analyzers/codeCloneDetector/index.js +160 -0
  17. package/src/analyzers/codeCloneDetector/parser.js +199 -0
  18. package/src/analyzers/codeCloneDetector/reporter.js +148 -0
  19. package/src/analyzers/codeCloneDetector/scanner.js +59 -0
  20. package/src/core/agentPool.js +1474 -0
  21. package/src/core/agentScheduler.js +2147 -0
  22. package/src/core/contextManager.js +709 -0
  23. package/src/core/messageProcessor.js +732 -0
  24. package/src/core/orchestrator.js +548 -0
  25. package/src/core/stateManager.js +877 -0
  26. package/src/index.js +631 -0
  27. package/src/interfaces/cli.js +549 -0
  28. package/src/interfaces/webServer.js +2162 -0
  29. package/src/modules/fileExplorer/controller.js +280 -0
  30. package/src/modules/fileExplorer/index.js +37 -0
  31. package/src/modules/fileExplorer/middleware.js +92 -0
  32. package/src/modules/fileExplorer/routes.js +125 -0
  33. package/src/modules/fileExplorer/types.js +44 -0
  34. package/src/services/aiService.js +1232 -0
  35. package/src/services/apiKeyManager.js +164 -0
  36. package/src/services/benchmarkService.js +366 -0
  37. package/src/services/budgetService.js +539 -0
  38. package/src/services/contextInjectionService.js +247 -0
  39. package/src/services/conversationCompactionService.js +637 -0
  40. package/src/services/errorHandler.js +810 -0
  41. package/src/services/fileAttachmentService.js +544 -0
  42. package/src/services/modelRouterService.js +366 -0
  43. package/src/services/modelsService.js +322 -0
  44. package/src/services/qualityInspector.js +796 -0
  45. package/src/services/tokenCountingService.js +536 -0
  46. package/src/tools/agentCommunicationTool.js +1344 -0
  47. package/src/tools/agentDelayTool.js +485 -0
  48. package/src/tools/asyncToolManager.js +604 -0
  49. package/src/tools/baseTool.js +800 -0
  50. package/src/tools/browserTool.js +920 -0
  51. package/src/tools/cloneDetectionTool.js +621 -0
  52. package/src/tools/dependencyResolverTool.js +1215 -0
  53. package/src/tools/fileContentReplaceTool.js +875 -0
  54. package/src/tools/fileSystemTool.js +1107 -0
  55. package/src/tools/fileTreeTool.js +853 -0
  56. package/src/tools/imageTool.js +901 -0
  57. package/src/tools/importAnalyzerTool.js +1060 -0
  58. package/src/tools/jobDoneTool.js +248 -0
  59. package/src/tools/seekTool.js +956 -0
  60. package/src/tools/staticAnalysisTool.js +1778 -0
  61. package/src/tools/taskManagerTool.js +2873 -0
  62. package/src/tools/terminalTool.js +2304 -0
  63. package/src/tools/webTool.js +1430 -0
  64. package/src/types/agent.js +519 -0
  65. package/src/types/contextReference.js +972 -0
  66. package/src/types/conversation.js +730 -0
  67. package/src/types/toolCommand.js +747 -0
  68. package/src/utilities/attachmentValidator.js +292 -0
  69. package/src/utilities/configManager.js +582 -0
  70. package/src/utilities/constants.js +722 -0
  71. package/src/utilities/directoryAccessManager.js +535 -0
  72. package/src/utilities/fileProcessor.js +307 -0
  73. package/src/utilities/logger.js +436 -0
  74. package/src/utilities/tagParser.js +1246 -0
  75. package/src/utilities/toolConstants.js +317 -0
  76. package/web-ui/build/index.html +15 -0
  77. package/web-ui/build/logo.png +0 -0
  78. package/web-ui/build/logo2.png +0 -0
  79. package/web-ui/build/static/index-CjkkcnFA.js +344 -0
  80. package/web-ui/build/static/index-Dy2bYbOa.css +1 -0
package/LICENSE ADDED
@@ -0,0 +1,267 @@
1
+ LOXIA AUTOPILOT ONE - COMMERCIAL LICENSE
2
+
3
+ Copyright (c) 2025 Loxia AI. All rights reserved.
4
+
5
+ ================================================================================
6
+ LICENSE AGREEMENT
7
+ ================================================================================
8
+
9
+ This License Agreement ("Agreement") is a legal agreement between you (either
10
+ an individual or a single entity, "Licensee") and Loxia AI ("Licensor") for
11
+ the Loxia Autopilot One software product, which includes computer software and
12
+ may include associated media, printed materials, and online or electronic
13
+ documentation ("Software").
14
+
15
+ By installing, copying, or otherwise using the Software, you agree to be bound
16
+ by the terms of this Agreement. If you do not agree to the terms of this
17
+ Agreement, do not install or use the Software.
18
+
19
+ ================================================================================
20
+ GRANT OF LICENSE
21
+ ================================================================================
22
+
23
+ Subject to the terms and conditions of this Agreement, AND upon Licensee's
24
+ registration and authentication with valid credentials provided by Licensor,
25
+ Licensor hereby grants Licensee a non-exclusive, non-transferable, worldwide
26
+ license to:
27
+
28
+ 1. INSTALL AND USE the Software ONLY with valid, active authentication
29
+ credentials obtained through registration or subscription with Licensor.
30
+
31
+ 2. USE the Software for the duration of your active subscription or license
32
+ period, as determined by Licensor.
33
+
34
+ 3. MODIFY the Software configuration files and settings for your own use.
35
+
36
+ 4. USE the Software in connection with your own projects, products, or services,
37
+ subject to maintaining an active, valid subscription or license.
38
+
39
+ ================================================================================
40
+ RESTRICTIONS
41
+ ================================================================================
42
+
43
+ Licensee shall NOT:
44
+
45
+ 1. USE the Software without valid, active authentication credentials obtained
46
+ through proper registration or subscription with Licensor.
47
+
48
+ 2. SHARE, transfer, or provide access to authentication credentials with any
49
+ third party or unauthorized user.
50
+
51
+ 3. REDISTRIBUTE, sublicense, sell, rent, lease, or lend the Software or any
52
+ portion thereof to any third party, whether in original or modified form.
53
+
54
+ 4. REVERSE ENGINEER, decompile, disassemble, deobfuscate, or otherwise attempt
55
+ to derive the source code of the Software.
56
+
57
+ 5. REMOVE, alter, or obscure any proprietary notices, labels, or marks on or
58
+ in the Software.
59
+
60
+ 6. CIRCUMVENT, bypass, or disable any authentication, licensing, or security
61
+ mechanisms in the Software.
62
+
63
+ 7. CREATE DERIVATIVE WORKS based on the Software, except for modifications
64
+ to configuration files as permitted above.
65
+
66
+ 8. USE the Software to create a competing product or service.
67
+
68
+ 9. DISTRIBUTE the Software as part of a product or service offered for sale
69
+ or as a service (SaaS) without explicit written permission from Licensor.
70
+
71
+ 10. USE the Software in any manner that violates applicable laws or regulations.
72
+
73
+ 11. CONTINUE TO USE the Software after subscription expiration or termination
74
+ without renewing or obtaining a new valid license.
75
+
76
+ ================================================================================
77
+ INTELLECTUAL PROPERTY
78
+ ================================================================================
79
+
80
+ The Software is licensed, not sold. Licensor retains all right, title, and
81
+ interest in and to the Software, including all intellectual property rights
82
+ therein. The Software is protected by copyright laws and international treaty
83
+ provisions.
84
+
85
+ This license does not grant Licensee any rights to trademarks, service marks,
86
+ or trade names of Licensor.
87
+
88
+ ================================================================================
89
+ DISCLAIMER OF WARRANTY
90
+ ================================================================================
91
+
92
+ THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
93
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
94
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
95
+
96
+ LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR
97
+ THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
98
+
99
+ ================================================================================
100
+ LIMITATION OF LIABILITY
101
+ ================================================================================
102
+
103
+ IN NO EVENT SHALL LICENSOR BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT,
104
+ OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES
105
+ FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
106
+ INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
107
+ INABILITY TO USE THE SOFTWARE, EVEN IF LICENSOR HAS BEEN ADVISED OF THE
108
+ POSSIBILITY OF SUCH DAMAGES.
109
+
110
+ IN ANY CASE, LICENSOR'S ENTIRE LIABILITY UNDER ANY PROVISION OF THIS
111
+ AGREEMENT SHALL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY LICENSEE FOR THE
112
+ SOFTWARE.
113
+
114
+ ================================================================================
115
+ REGISTRATION AND AUTHENTICATION
116
+ ================================================================================
117
+
118
+ 1. REGISTRATION REQUIRED: Use of the Software requires registration and
119
+ authentication through Licensor's authentication system.
120
+
121
+ 2. VALID CREDENTIALS: Licensee must obtain valid authentication credentials
122
+ through one of the following methods:
123
+ - Active paid subscription
124
+ - Valid license purchase
125
+ - Authorized trial or evaluation access
126
+ - Other methods explicitly approved by Licensor
127
+
128
+ 3. CREDENTIAL SECURITY: Licensee is solely responsible for:
129
+ - Maintaining the confidentiality of authentication credentials
130
+ - All activities that occur under their credentials
131
+ - Immediately notifying Licensor of any unauthorized use
132
+
133
+ 4. NO CREDENTIAL SHARING: Authentication credentials are personal and
134
+ non-transferable. Sharing credentials with others is strictly prohibited
135
+ and may result in immediate termination of the license.
136
+
137
+ 5. SUBSCRIPTION VALIDITY: Access to the Software is conditional upon
138
+ maintaining an active, valid subscription or license. Upon expiration or
139
+ termination of subscription, all rights to use the Software cease
140
+ immediately.
141
+
142
+ 6. VERIFICATION: Licensor reserves the right to verify authentication
143
+ credentials and subscription status at any time. The Software may
144
+ periodically communicate with Licensor's servers for authentication
145
+ verification.
146
+
147
+ ================================================================================
148
+ SUPPORT AND UPDATES
149
+ ================================================================================
150
+
151
+ Licensor may, at its sole discretion, provide updates, upgrades, bug fixes,
152
+ or technical support for the Software to Licensees with active, valid
153
+ subscriptions. Such support, if any, will be provided "as is" without warranty
154
+ of any kind.
155
+
156
+ Licensee is not entitled to any updates or support unless they maintain an
157
+ active subscription or have explicitly agreed to support terms in a separate
158
+ agreement.
159
+
160
+ ================================================================================
161
+ TERMINATION
162
+ ================================================================================
163
+
164
+ This Agreement is effective until terminated. Licensee's rights under this
165
+ Agreement will terminate automatically without notice from Licensor upon:
166
+
167
+ 1. SUBSCRIPTION EXPIRATION: Automatic termination upon expiration of the
168
+ subscription period if not renewed.
169
+
170
+ 2. BREACH OF TERMS: Failure to comply with any term(s) of this Agreement,
171
+ including but not limited to:
172
+ - Unauthorized use without valid credentials
173
+ - Sharing or transferring authentication credentials
174
+ - Circumventing authentication or security mechanisms
175
+ - Reverse engineering or deobfuscation attempts
176
+ - Redistribution of the Software
177
+
178
+ 3. CREDENTIAL VIOLATIONS: Any misuse, unauthorized sharing, or security
179
+ breach involving Licensee's authentication credentials.
180
+
181
+ 4. NON-PAYMENT: Failure to maintain payment for subscription-based access.
182
+
183
+ Upon termination, Licensee must:
184
+ - Immediately cease all use of the Software
185
+ - Destroy all copies, full or partial, of the Software
186
+ - Delete or destroy all authentication credentials
187
+ - Certify destruction upon Licensor's request
188
+
189
+ Termination does not relieve Licensee of payment obligations incurred prior
190
+ to termination.
191
+
192
+ ================================================================================
193
+ DATA COLLECTION AND PRIVACY
194
+ ================================================================================
195
+
196
+ 1. AUTHENTICATION DATA: The Software requires periodic communication with
197
+ Licensor's authentication servers to verify credentials and subscription
198
+ status. This includes:
199
+ - Authentication credentials verification
200
+ - Subscription status checks
201
+ - License validation
202
+
203
+ 2. LOCAL OPERATION: Beyond authentication verification, the Software operates
204
+ locally on Licensee's machine. Licensor does not collect telemetry, usage
205
+ data, or personal information from the Software without explicit consent.
206
+
207
+ 3. DATA SECURITY: Licensor implements reasonable security measures to protect
208
+ authentication data during transmission and storage.
209
+
210
+ 4. USER RESPONSIBILITY: Licensee is responsible for compliance with applicable
211
+ privacy laws when using the Software to process any personal or sensitive
212
+ data.
213
+
214
+ ================================================================================
215
+ EXPORT RESTRICTIONS
216
+ ================================================================================
217
+
218
+ Licensee agrees to comply with all applicable export and import laws and
219
+ regulations. Licensee shall not export or re-export the Software, directly or
220
+ indirectly, to any countries that are subject to export restrictions.
221
+
222
+ ================================================================================
223
+ GOVERNING LAW
224
+ ================================================================================
225
+
226
+ This Agreement shall be governed by and construed in accordance with the laws
227
+ of the State of Israel, without regard to its conflict of law provisions.
228
+
229
+ Any disputes arising under or in connection with this Agreement shall be
230
+ subject to the exclusive jurisdiction of the competent courts of Tel Aviv-Jaffa,
231
+ Israel.
232
+
233
+ ================================================================================
234
+ ENTIRE AGREEMENT
235
+ ================================================================================
236
+
237
+ This Agreement constitutes the entire agreement between Licensee and Licensor
238
+ concerning the Software and supersedes all prior or contemporaneous oral or
239
+ written communications, proposals, and representations with respect to the
240
+ Software or any other subject matter covered by this Agreement.
241
+
242
+ This Agreement may not be modified except by a written amendment signed by an
243
+ authorized representative of Licensor.
244
+
245
+ ================================================================================
246
+ SEVERABILITY
247
+ ================================================================================
248
+
249
+ If any provision of this Agreement is held to be unenforceable, such provision
250
+ shall be reformed only to the extent necessary to make it enforceable, and the
251
+ remaining provisions of this Agreement shall remain in full force and effect.
252
+
253
+ ================================================================================
254
+ ACKNOWLEDGMENT
255
+ ================================================================================
256
+
257
+ BY INSTALLING OR USING THE SOFTWARE, LICENSEE ACKNOWLEDGES THAT LICENSEE HAS
258
+ READ THIS AGREEMENT, UNDERSTANDS IT, AND AGREES TO BE BOUND BY ITS TERMS AND
259
+ CONDITIONS.
260
+
261
+ ================================================================================
262
+
263
+ For questions regarding this license, please contact:
264
+ Email: legal@loxia.ai
265
+ Website: https://loxia.ai
266
+
267
+ Version 1.0 - January 2025