Skip to content

Commit e0613fb

Browse files
sync: 0.6.1 from main (165801be5912844fe0cdeb598c386751d3cf15c3)
1 parent 877eef7 commit e0613fb

File tree

10 files changed

+348
-280
lines changed

10 files changed

+348
-280
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ coverage.*
77
.idea/
88
.vscode/
99
.DS_Store
10-
.cursorrules

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "whatsmeow-lib"]
2+
path = whatsmeow-lib
3+
url = https://github.com/EvolutionAPI/whatsmeow.git

LICENSE

Lines changed: 29 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -9,7 +10,8 @@
910
"License" shall mean the terms and conditions for use, reproduction,
1011
and distribution as defined by Sections 1 through 9 of this document.
1112

12-
"Licensor" shall mean the copyright owner or entity granting the License.
13+
"Licensor" shall mean the copyright owner or entity authorized by
14+
the copyright owner that is granting the License.
1315

1416
"Legal Entity" shall mean the union of the acting entity and all
1517
other entities that control, are controlled by, or are under common
@@ -34,45 +36,40 @@
3436
"Work" shall mean the work of authorship, whether in Source or
3537
Object form, made available under the License, as indicated by a
3638
copyright notice that is included in or attached to the work
37-
(which shall not include communications that are solely written
38-
by copyright holders to be excluded from the License).
39+
(an example is provided in the Appendix below).
3940

4041
"Derivative Works" shall mean any work, whether in Source or Object
41-
form, that is based upon (or derived from) the Work and for which the
42+
form, that is based on (or derived from) the Work and for which the
4243
editorial revisions, annotations, elaborations, or other modifications
4344
represent, as a whole, an original work of authorship. For the purposes
4445
of this License, Derivative Works shall not include works that remain
4546
separable from, or merely link (or bind by name) to the interfaces of,
46-
the Work and derivative works thereof.
47+
the Work and Derivative Works thereof.
4748

4849
"Contribution" shall mean any work of authorship, including
4950
the original version of the Work and any modifications or additions
5051
to that Work or Derivative Works thereof, that is intentionally
51-
submitted to Licensor for inclusion in the Work by the copyright owner
52+
submitted to the Licensor for inclusion in the Work by the copyright owner
5253
or by an individual or Legal Entity authorized to submit on behalf of
5354
the copyright owner. For the purposes of this definition, "submitted"
5455
means any form of electronic, verbal, or written communication sent
5556
to the Licensor or its representatives, including but not limited to
56-
communication on electronic mailing lists, source code control
57-
systems, and issue tracking systems that are managed by, or on behalf
58-
of, the Licensor for the purpose of discussing and improving the Work,
59-
but excluding communication that is conspicuously marked or otherwise
57+
communication on electronic mailing lists, source code control systems,
58+
and issue tracking systems that are managed by, or on behalf of, the
59+
Licensor for the purpose of discussing and improving the Work, but
60+
excluding communication that is conspicuously marked or otherwise
6061
designated in writing by the copyright owner as "Not a Contribution."
6162

6263
"Contributor" shall mean Licensor and any individual or Legal Entity
63-
on behalf of whom a Contribution has been received by Licensor and
64+
on behalf of whom a Contribution has been received by the Licensor and
6465
subsequently incorporated within the Work.
6566

6667
2. Grant of Copyright License. Subject to the terms and conditions of
6768
this License, each Contributor hereby grants to You a perpetual,
6869
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69-
copyright license to use, reproduce, modify, merge, publish,
70-
distribute, sublicense, and/or sell copies of the Work, and to
71-
permit persons to whom the Work is furnished to do so, subject to
72-
the following conditions:
73-
74-
The above copyright notice and this permission notice shall be
75-
included in all copies or substantial portions of the Work.
70+
copyright license to reproduce, prepare Derivative Works of,
71+
publicly display, publicly perform, sublicense, and distribute the
72+
Work and such Derivative Works in Source or Object form.
7673

7774
3. Grant of Patent License. Subject to the terms and conditions of
7875
this License, each Contributor hereby grants to You a perpetual,
@@ -110,7 +107,7 @@
110107
(d) If the Work includes a "NOTICE" text file as part of its
111108
distribution, then any Derivative Works that You distribute must
112109
include a readable copy of the attribution notices contained
113-
within such NOTICE file, excluding those notices that do not
110+
within such NOTICE file, excluding any notices that do not
114111
pertain to any part of the Derivative Works, in at least one
115112
of the following places: within a NOTICE text file distributed
116113
as part of the Derivative Works; within the Source form or
@@ -124,7 +121,7 @@
124121
that such additional attribution notices cannot be construed
125122
as modifying the License.
126123

127-
You may add Your own copyright notice to Your modifications and
124+
You may add Your own copyright statement to Your modifications and
128125
may provide additional or different license terms and conditions
129126
for use, reproduction, or distribution of Your modifications, or
130127
for any such Derivative Works as a whole, provided Your use,
@@ -166,29 +163,20 @@
166163
other commercial damages or losses), even if such Contributor
167164
has been advised of the possibility of such damages.
168165

169-
9. Accepting Warranty or Support. You may choose to offer, and to
170-
charge a fee for, warranty, support, indemnity or other liability
171-
obligations and/or rights consistent with this License. However, in
172-
accepting such obligations, You may act only on Your own behalf and
173-
on Your sole responsibility, not on behalf of any other Contributor,
174-
and only if You agree to indemnify, defend, and hold each Contributor
175-
harmless for any liability incurred by, or claims asserted against,
176-
such Contributor by reason of your accepting any such warranty or support.
166+
9. Accepting Warranty or Additional Liability. While redistributing
167+
the Work or Derivative Works thereof, You may choose to offer,
168+
and charge a fee for, acceptance of support, warranty, indemnity,
169+
or other liability obligations and/or rights consistent with this
170+
License. However, in accepting such obligations, You may act only
171+
on Your own behalf and on Your sole responsibility, not on behalf
172+
of any other Contributor, and only if You agree to indemnify,
173+
defend, and hold each Contributor harmless for any liability
174+
incurred by, or claims asserted against, such Contributor by reason
175+
of your accepting any such warranty or additional liability.
177176

178177
END OF TERMS AND CONDITIONS
179178

180-
APPENDIX: How to apply the Apache License to your work.
181-
182-
To apply the Apache License to your work, attach the following
183-
boilerplate notice, with the fields enclosed by brackets "[]"
184-
replaced with your own identifying information. (Don't include
185-
the brackets!) The text should be enclosed in the appropriate
186-
comment syntax for the file format. We also recommend that a
187-
file or class name and description of purpose be included on the
188-
same page as the copyright notice for easier identification within
189-
third-party archives.
190-
191-
Copyright 2025 Evolution API
179+
Copyright 2026 Evolution Foundation
192180

193181
Licensed under the Apache License, Version 2.0 (the "License");
194182
you may not use this file except in compliance with the License.
@@ -200,23 +188,4 @@
200188
distributed under the License is distributed on an "AS IS" BASIS,
201189
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202190
See the License for the specific language governing permissions and
203-
limitations under the License.
204-
205-
206-
ADDITIONAL CONDITIONS:
207-
208-
1. LOGO and copyright information: In the process of using Evolution Go API's
209-
frontend components, you may not remove or modify the LOGO or copyright
210-
information in the Evolution API console or applications. This restriction
211-
is inapplicable to uses of Evolution Go API that do not involve its frontend
212-
components.
213-
214-
2. Usage Notification Requirement: If Evolution Go API is used as part of any
215-
project, including closed-source systems (e.g., proprietary software), the
216-
user is required to display a clear notification within the system that
217-
Evolution Go API is being utilized. This notification should be visible to
218-
system administrators and accessible from the system's documentation or
219-
settings page. Failure to comply with this requirement may result in the
220-
necessity for a commercial license, as determined by the producer.
221-
222-
Please contact contato@evolution-api.com to inquire about licensing matters.
191+
limitations under the License.

NOTICE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Evolution Foundation
2+
Copyright 2026 Evolution Foundation
3+
4+
This product includes software developed by Evolution Foundation.
5+
6+
Trademark notice
7+
"Evolution Foundation" and "Evolution" are trademarks of Evolution Foundation. The Evolution Foundation logo, wordmark, and Evolution Foundation visual identity are governed by the Evolution Foundation Trademark and Brand Assets Policy included in this repository.

TRADEMARKS.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# EVO AI TRADEMARK AND BRAND ASSETS POLICY
2+
3+
Version 1.0, 2026.03.02
4+
5+
"Evolution Foundation" and "Evolution" are trademarks of Evolution Foundation.
6+
The "evoai" wordmark and the Evolution Foundation logo are trademarks of Evolution Foundation.
7+
8+
## 1. Scope and purpose
9+
10+
This policy governs the use of Evolution Foundation trademarks and Evolution Foundation brand assets. It is intended to protect users from confusion and to preserve the official Evolution Foundation Community Edition visual identity.
11+
12+
This policy applies to any use of:
13+
(a) the product names and marks "Evolution Foundation" and "Evolution";
14+
(b) the official logo and wordmark: the "evoai" wordmark with the neural network or molecule icon in neon green to the right;
15+
(c) the copyright line "© 2026 Evolution Foundation"; and
16+
(d) any materials that implement or express the Evolution Foundation official look and feel, including the Protected Visual Identity Elements listed in Section 3.
17+
18+
This policy does not change the software license for the source code, which is licensed under the Apache License 2.0. This policy controls only trademarks and brand assets.
19+
20+
## 2. Permitted trademark and brand asset use
21+
22+
2.1. You may truthfully refer to Evolution Foundation to describe that your software is based on, compatible with, or derived from this project, provided that such use does not imply endorsement by Evolution Foundation.
23+
24+
2.2. You may distribute and publicly host unmodified official builds of the Evolution Foundation Community Edition that include Evolution Foundation brand assets, provided that you comply with Section 3 and do not suggest endorsement beyond being an official unmodified build.
25+
26+
2.3. You may use Evolution Foundation marks in nominative ways, such as "based on Evolution Foundation",
27+
provided that the use is accurate and does not create confusion.
28+
29+
## 3. Protected Visual Identity Elements (Brand Assets)
30+
31+
The following are the "Protected Visual Identity Elements":
32+
(a) Product names and marks: "Evolution Foundation" and "Evolution";
33+
(b) Official logo and wordmark: the "evoai" wordmark with the neural network
34+
or molecule icon in neon green to the right;
35+
(c) Copyright line: "© 2026 Evolution Foundation";
36+
(d) Community Edition theme requirement: Dark Mode is the default and required
37+
theme for the Community Edition user interface;
38+
(e) Official palette for the Community Edition user interface:
39+
Background main: #0a0a0a
40+
Background cards and popovers: #0a0a0a
41+
Sidebar background: #171717
42+
Primary neon green: #00ffa7
43+
Primary green for light mode references: #01b274
44+
Main text: #fafafa
45+
Muted text: #a1a1a1
46+
Borders and inputs: #262626
47+
Muted background: #262626
48+
Ring and focus: #555555
49+
Destructive: approximately oklch 0.396 0.141 25.723
50+
(f) Typography: ui sans serif, system ui, sans serif with base size 16px;
51+
(g) Border radius: 0.625rem (10px) as the default component radius;
52+
(h) Protected UI presentation elements:
53+
Left sidebar with icons and navigation in white or green accents
54+
Active navigation item highlighted with dark green background and neon
55+
green text
56+
Topbar with workspace selector showing "Evolution"
57+
Notification badge and user avatar on the top right
58+
Sidebar footer showing "Evolution Foundation / © 2026 Evolution Foundation / Documentation / Need help"
59+
60+
## 4. Restrictions for forks, modified versions, and redistributions
61+
62+
4.1. No modification of Protected Visual Identity Elements when using Evolution Foundation brand assets. If you distribute or publicly host any version of the user interface that uses Evolution Foundation brand assets, you may not remove, replace, modify, disable, or bypass any Protected Visual Identity Element.
63+
64+
4.2. Modified UI must remove Evolution Foundation brand assets.
65+
If you distribute or publicly host a modified user interface or user experience (including changes to branding or visual identity), you must:
66+
(a) remove and replace all Evolution Foundation trademarks and brand assets from the user
67+
interface, product name display, and related marketing materials for that
68+
distribution; and
69+
(b) choose a name and branding that are clearly distinct from Evolution Foundation.
70+
71+
4.3. No endorsement.
72+
You may not use Evolution Foundation trademarks or brand assets in a way that implies Evolution Foundation sponsors, endorses, or is affiliated with your distribution, except for unmodified official builds.
73+
74+
4.4. No derivative works of the logo and wordmark.
75+
You may not modify, adapt, recolor, redesign, or create derivative works of the Evolution Foundation logo or wordmark.
76+
77+
## 5. Permission requests
78+
79+
Any use not expressly permitted by this policy requires prior written permission from Evolution Foundation.
80+
81+
## 6. Enforcement and termination
82+
83+
Any violation of this policy terminates your permission to use Evolution Foundation brand assets. You must promptly cease use and remove Evolution Foundation trademarks and brand assets from your distribution and any public hosting.
84+
85+
## 7. Disclaimer
86+
87+
This policy is provided "as is" and does not grant any rights beyond what is expressly stated. All rights not expressly granted are reserved by Evolution Foundation.

cmd/evolution-go/main.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,13 @@ import (
6868

6969
var devMode = flag.Bool("dev", false, "Enable development mode")
7070

71-
var version = "dev"
71+
var version = readVersion()
7272

73-
func init() {
74-
if version == "dev" {
75-
if v, err := os.ReadFile("VERSION"); err == nil {
76-
version = strings.TrimSpace(string(v))
77-
}
73+
func readVersion() string {
74+
if v, err := os.ReadFile("VERSION"); err == nil {
75+
return strings.TrimSpace(string(v))
7876
}
77+
return "0.0.0"
7978
}
8079

8180
func setupRouter(db *gorm.DB, authDB *sql.DB, sqliteDB *sql.DB, config *config.Config, conn *amqp.Connection, exPath string, runtimeCtx *core.RuntimeContext) *gin.Engine {

evolution-go

60.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)