@yorha2b-lab/autodev 2.0.9 → 2.1.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.
@@ -5,7 +5,6 @@ on:
5
5
  - cron: '45 19 * * *'
6
6
  workflow_dispatch:
7
7
 
8
- # 💡 在这里全局开启 Node.js 24 强制模式,消灭警告
9
8
  env:
10
9
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
11
10
 
@@ -16,7 +15,7 @@ jobs:
16
15
  contents: write
17
16
  steps:
18
17
  - name: Checkout main
19
- uses: actions/checkout@v4 # 已经是最新版
18
+ uses: actions/checkout@v4
20
19
 
21
20
  - name: run-ghrs
22
21
  uses: jgehrcke/github-repo-stats@v1.4.1
@@ -25,28 +24,47 @@ jobs:
25
24
  ghtoken: ${{ secrets.STATS_TOKEN }}
26
25
  databranch: github-repo-stats
27
26
 
28
- - name: Clean and Format Stats Branch
27
+ - name: Execute Dashboard Reconstruction & JSON Generation
29
28
  run: |
30
- git fetch origin github-repo-stats
31
- git checkout github-repo-stats
32
-
33
- mkdir -p ../temp_backup
34
- REPORT_DIR=$(find . -type d -name "latest-report" | head -n 1)
29
+ # 1. 提取组件
30
+ echo "🤖 Pod 042: 正在执行‘三维提取协议’..."
31
+ mkdir -p /tmp/bunker_assets
35
32
  DATA_DIR=$(find . -type d -name "ghrs-data" | head -n 1)
33
+ REPORT_DIR=$(find . -type d -name "latest-report" | head -n 1)
36
34
  PLOT_DIR=$(find . -type d -name "plots" | head -n 1)
35
+ if [ -d "$DATA_DIR" ]; then sudo cp -r $DATA_DIR /tmp/bunker_assets/; fi
36
+ if [ -d "$REPORT_DIR" ]; then sudo cp -r $REPORT_DIR /tmp/bunker_assets/; fi
37
+ if [ -d "$PLOT_DIR" ]; then sudo cp -r $PLOT_DIR /tmp/bunker_assets/; fi
37
38
 
38
- if [ -d "$REPORT_DIR" ]; then sudo cp -r $REPORT_DIR/* ../temp_backup/; fi
39
- if [ -d "$DATA_DIR" ]; then sudo cp -r $DATA_DIR ../temp_backup/; fi
40
- if [ -d "$PLOT_DIR" ]; then sudo cp -r $PLOT_DIR ../temp_backup/; fi
41
-
39
+ # 2. 切换并净化分支
40
+ git fetch origin github-repo-stats
41
+ git checkout github-repo-stats
42
+ sudo chown -R runner:docker .
43
+ git rm -rf . 2>/dev/null || true
42
44
  sudo rm -rf *
43
- sudo rm -rf .github .env.example .gitignore .npmignore
44
- sudo cp -r ../temp_backup/* .
45
+
46
+ # 3. 物理还原
47
+ if [ -d "/tmp/bunker_assets/ghrs-data" ]; then sudo cp -r /tmp/bunker_assets/ghrs-data . ; fi
48
+ if [ -d "/tmp/bunker_assets/latest-report" ]; then sudo cp -r /tmp/bunker_assets/latest-report/* . ; fi
49
+ if [ -d "/tmp/bunker_assets/plots" ]; then sudo cp -r /tmp/bunker_assets/plots . ; fi
45
50
  if [ -f "report.md" ]; then sudo mv report.md README.md; fi
46
- sudo chown -R runner:docker .
47
51
 
52
+ # 4. 🔥 核心逻辑:执行全量战绩加和
53
+ echo "🤖 Pod 042: 正在执行‘战绩全量加和协议’..."
54
+ CSV_FILE="ghrs-data/views_clones_aggregate.csv"
55
+ if [ -f "$CSV_FILE" ]; then
56
+ # 使用 awk 物理加和第 2 列 (clones_total)
57
+ TOTAL_CLONES=$(awk -F',' 'NR>1 {sum+=$2} END {print sum}' "$CSV_FILE")
58
+ echo "{\"total_clones\": $TOTAL_CLONES}" > bunker-stats.json
59
+ echo "✅ 构筑成功:地堡全时段总克隆数为 $TOTAL_CLONES"
60
+ else
61
+ echo "❌ 严重错误:未发现 CSV 核心文件。" && exit 1
62
+ fi
63
+
64
+ # 5. 封存推送
65
+ sudo chown -R runner:docker .
48
66
  git config user.name github-actions
49
67
  git config user.email github-actions@github.com
50
68
  git add -A
51
- git commit -m "style: clean stable stats with node24" || echo "no changes"
69
+ git commit -m "style: bunker update with json stats at $(date)" || echo "no changes"
52
70
  git push origin github-repo-stats --force
package/LICENSE CHANGED
@@ -1,21 +1,639 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 yorha2b-Lab
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' handles is that improved
33
+ versions of users' programs can be justified to the community as a whole.
34
+ In the case of software used on network servers, the GNU General Public
35
+ License does not require that a user who has modified the program
36
+ should make the modified source code available to the community.
37
+ The GNU Affero General Public License is designed specifically to
38
+ address this situation.
39
+
40
+ The GNU Affero General Public License is a modified version of the
41
+ GNU General Public License, version 3. It has one added requirement:
42
+ if you run a modified program on a server and let other users
43
+ communicate with it there, your server must also allow them to
44
+ download the source code corresponding to the modified version running
45
+ there.
46
+
47
+ The precise terms and conditions for copying, distribution and
48
+ modification follow.
49
+
50
+ TERMS AND CONDITIONS
51
+
52
+ 0. Definitions.
53
+
54
+ "This License" refers to version 3 of the GNU Affero General Public License.
55
+
56
+ "Copyright" also means copyright-like laws that apply to other kinds of
57
+ works, such as semiconductor masks.
58
+
59
+ "The Program" refers to any copyrightable work licensed under this
60
+ License. Each licensee is addressed as "you". "Licensees" and
61
+ "recipients" may be individuals or organizations.
62
+
63
+ To "modify" a work means to copy from or adapt all or part of the work
64
+ in a fashion requiring copyright permission, other than the making of an
65
+ exact copy. The resulting work is called a "modified version" of the
66
+ earlier work or a work "based on" the earlier work.
67
+
68
+ A "covered work" means either the unmodified Program or a work based
69
+ on the Program.
70
+
71
+ To "propagate" a work means to do anything with it that, without
72
+ permission, would make you directly or secondarily liable for
73
+ infringement under applicable copyright law, except executing it on a
74
+ computer or modifying a private copy. Propagation includes copying,
75
+ distribution (with or without modification), making available to the
76
+ public, and in some countries other activities as well.
77
+
78
+ To "convey" a work means any kind of propagation that enables other
79
+ parties to make or receive copies. Mere interaction with a user through
80
+ a computer network, with no transfer of a copy, is not conveying.
81
+
82
+ An interactive user interface displays "Appropriate Legal Notices"
83
+ to the extent that it includes a convenient and prominently visible
84
+ feature that (1) displays an appropriate copyright notice, and (2)
85
+ tells the user that there is no warranty for the work (except to the
86
+ extent that warranties are provided), that licensees may convey the
87
+ work under this License, and how to view a copy of this License. If
88
+ the interface presents a list of user commands or options, such as a
89
+ menu, a prominent item in the list meets this criterion.
90
+
91
+ 1. Source Code.
92
+
93
+ The "source code" for a work means the preferred form of the work
94
+ for making modifications to it. "Object code" means any non-source
95
+ form of a work.
96
+
97
+ A "Standard Interface" means an interface that either is an official
98
+ standard defined by a recognized standards body, or, in the case of
99
+ interfaces specified for a particular programming language, one that
100
+ is widely used among developers working in that language.
101
+
102
+ The "System Libraries" of an executable work include anything, other
103
+ than the work as a whole, that (a) is included in the normal form of
104
+ packaging a Major Component, but which is not part of that Major
105
+ Component, and (b) serves only to enable use of the work with that
106
+ Major Component, or to implement a Standard Interface for which an
107
+ implementation is available to the public in source code form. A
108
+ "Major Component", in this context, means a major essential component
109
+ (kernel, window system, and so on) of the specific operating system
110
+ (if any) on which the executable work runs, or a compiler used to
111
+ produce the work, or an object code interpreter used to run it.
112
+
113
+ The "Corresponding Source" for a work in object code form means all
114
+ the source code needed to generate, install, and (for an executable
115
+ work) run the object code and to modify the work, including scripts to
116
+ control those activities. However, it does not include the work's
117
+ System Libraries, or general-purpose tools or generally available free
118
+ programs which are used unmodified in performing those activities but
119
+ which are not part of the work. For example, Corresponding Source
120
+ includes interface definition files associated with source files for
121
+ the work, and the source code for shared libraries and dynamically
122
+ linked subprograms that the work is specifically designed to require,
123
+ such as by intimate data communication or control flow between those
124
+ subprograms and other parts of the work.
125
+
126
+ The Corresponding Source need not include anything that users
127
+ can regenerate automatically from other parts of the Corresponding
128
+ Source.
129
+
130
+ The Corresponding Source for a work in source code form is that
131
+ same work.
132
+
133
+ 2. Basic Permissions.
134
+
135
+ All rights granted under this License are granted for the term of
136
+ copyright on the Program, and are irrevocable provided the stated
137
+ conditions are met. This License explicitly affirms your unlimited
138
+ permission to run the unmodified Program. The output from running a
139
+ covered work is covered by this License only if the output, given its
140
+ content, constitutes a covered work. This License acknowledges your
141
+ rights of fair use or other equivalent, as provided by copyright law.
142
+
143
+ You may make, run and propagate covered works that you do not
144
+ convey, without conditions so long as your license otherwise remains
145
+ in force. You may convey covered works to others for the sole purpose
146
+ of having them make modifications exclusively for you, or provide you
147
+ with facilities for running those works, provided that you comply with
148
+ the terms of this License in conveying all material for which you do
149
+ not control copyright. Those thus making or running the covered works
150
+ for you must do so exclusively on your behalf, under your direction
151
+ and control, on terms that prohibit them from making any copies of
152
+ your copyrighted material outside their relationship with you.
153
+
154
+ Conveying under any other circumstances is permitted solely under
155
+ the conditions stated below. Sublicensing is not allowed; section 10
156
+ makes it unnecessary.
157
+
158
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
159
+
160
+ No covered work shall be deemed part of an effective technological
161
+ measure under any applicable law fulfilling obligations under article
162
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
163
+ similar laws prohibiting or restricting circumvention of such
164
+ measures.
165
+
166
+ When you convey a covered work, you waive any legal power to forbid
167
+ circumvention of technological measures to the extent such circumvention
168
+ is effected by exercising rights under this License with respect to
169
+ the covered work, and you disclaim any intention to limit operation or
170
+ modification of the work as a means of enforcing, against the work's
171
+ users, your or third parties' legal rights to forbid circumvention of
172
+ technological measures.
173
+
174
+ 4. Conveying Verbatim Copies.
175
+
176
+ You may convey verbatim copies of the Program's source code as you
177
+ receive it, in any medium, provided that you conspicuously and
178
+ appropriately publish on each copy an appropriate copyright notice;
179
+ keep intact all notices stating that this License and any
180
+ non-permissive terms added in compliance with section 7 apply to the
181
+ code; keep intact all notices of the absence of any warranty; and
182
+ give all recipients a copy of this License along with the Program.
183
+
184
+ You may charge any price or no price for each copy that you convey,
185
+ and you may offer support or warranty protection for a fee.
186
+
187
+ 5. Conveying Modified Source Versions.
188
+
189
+ You may convey a work based on the Program, or the modifications to
190
+ produce it from the Program, in the form of source code under the
191
+ terms of section 4, provided that you also meet all of these conditions:
192
+
193
+ a) The work must carry prominent notices stating that you modified
194
+ it, and giving a relevant date.
195
+
196
+ b) The work must carry prominent notices stating that it is
197
+ released under this License and any conditions added under
198
+ section 7. This requirement modifies the requirement in
199
+ section 4 to "keep intact all notices".
200
+
201
+ c) You must license the entire work, as a whole, under this
202
+ License to anyone who comes into possession of a copy. This
203
+ License will therefore apply, along with any applicable section 7
204
+ additional terms, to the whole of the work, and all its parts,
205
+ regardless of how they are packaged. This License gives no
206
+ permission to license the work in any other way, but it does not
207
+ invalidate such permission if you have separately received it.
208
+
209
+ d) If the work has interactive user interfaces, each must display
210
+ Appropriate Legal Notices; however, if the Program has
211
+ interactive interfaces that do not display Appropriate Legal
212
+ Notices, your work need not make them do so.
213
+
214
+ A compilation of a covered work with other separate and independent
215
+ works, which are not by their nature extensions of the covered work,
216
+ and which are not combined with it such as to form a larger program,
217
+ in or on a volume of a storage or distribution medium, is called an
218
+ "aggregate" if the compilation and its resulting copyright are not
219
+ used to limit the access or legal rights of the compilation's users
220
+ beyond what the individual works permit. Inclusion of a covered work
221
+ in an aggregate does not cause this License to apply to the other
222
+ parts of the aggregate.
223
+
224
+ 6. Conveying Non-Source Forms.
225
+
226
+ You may convey a covered work in object code form under the terms
227
+ of sections 4 and 5, provided that you also convey the
228
+ machine-readable Corresponding Source under the terms of this License,
229
+ in one of these ways:
230
+
231
+ a) Convey the object code in, or embodied in, a physical product
232
+ (including a physical distribution medium), accompanied by the
233
+ Corresponding Source fixed on a durable physical medium
234
+ customarily used for software interchange.
235
+
236
+ b) Convey the object code in, or embodied in, a physical product
237
+ (including a physical distribution medium), accompanied by a
238
+ written offer, valid for at least three years and valid for as
239
+ long as you offer spare parts or customer support for that
240
+ product model, to give anyone who possesses the object code
241
+ either (1) a copy of the Corresponding Source for all the
242
+ software in the product that is covered by this License, on a
243
+ durable physical medium customarily used for software
244
+ interchange, for a price no more than your reasonable cost of
245
+ physically performing this conveying of source, or (2) access to
246
+ copy the Corresponding Source from a network server at no charge.
247
+
248
+ c) Convey individual copies of the object code with a copy of the
249
+ written offer to provide the Corresponding Source. This
250
+ alternative is allowed only occasionally and noncommercially, and
251
+ only if you received the object code with such an offer, in
252
+ accordance with subsection 6b.
253
+
254
+ d) Convey the object code by offering access from a designated
255
+ place (gratis or for a charge), and offer equivalent access to
256
+ the Corresponding Source in the same way through a further place
257
+ at no charge. You need not require recipients to copy the
258
+ Corresponding Source along with the object code. If the place to
259
+ copy the object code is a network server, the Corresponding
260
+ Source may be on a different server (operated by you or a third
261
+ party) that supports equivalent copying facilities, provided you
262
+ maintain clear directions next to the object code saying where
263
+ the Corresponding Source is located. Regardless of what server
264
+ hosts the Corresponding Source, you remain obligated to ensure
265
+ that it is available for as long as needed to satisfy these
266
+ requirements.
267
+
268
+ e) Convey the object code using peer-to-peer transmission, provided
269
+ you inform other peers where the object code and Corresponding
270
+ Source of the work are being offered to the general public at no
271
+ charge under subsection 6d.
272
+
273
+ A separable portion of the object code, whose source code is excluded
274
+ from the Corresponding Source as a System Library, need not be
275
+ included in conveying the object code work.
276
+
277
+ A "User Product" is either (1) a "consumer product", which means any
278
+ tangible personal property which is normally used for personal,
279
+ family, or household purposes, or (2) anything designed or sold for
280
+ incorporation into a dwelling. In determining whether a product is a
281
+ consumer product, doubtful cases shall be resolved in favor of
282
+ coverage. For a particular product received by a particular user,
283
+ "normally used" refers to a typical or common use of that class of
284
+ product, regardless of the status of the particular user or of the
285
+ way in which the particular user actually uses, or expects or is
286
+ expected to use, the product. A product is a consumer product
287
+ regardless of whether the product has substantial commercial,
288
+ industrial or non-consumer uses, unless such uses represent the only
289
+ significant mode of use of the product.
290
+
291
+ "Installation Information" for a User Product means any methods,
292
+ procedures, authorization keys, or other information required to
293
+ install and execute modified versions of a covered work in that User
294
+ Product from a modified version of its Corresponding Source. The
295
+ information must suffice to ensure that the continued functioning of
296
+ the modified object code is in no case prevented or interfered with
297
+ solely because modification has been made.
298
+
299
+ If you convey an object code work under this section in, or with, or
300
+ specifically for use in, a User Product, and the conveying occurs as
301
+ part of a transaction in which the right of possession and use of the
302
+ User Product is transferred to the recipient in perpetuity or for a
303
+ fixed term (regardless of how the transaction is characterized), the
304
+ Corresponding Source conveyed under this section must be accompanied
305
+ by the Installation Information. But this requirement does not apply
306
+ if neither you nor any third party retains the ability to install
307
+ modified object code on the User Product (for example, the work has
308
+ been installed in ROM).
309
+
310
+ The requirement to provide Installation Information does not include a
311
+ requirement to continue to provide support service, warranty, or updates
312
+ for a work that has been modified or installed by the recipient, or for
313
+ the User Product in which it has been modified or installed. Access to
314
+ a network node may be denied when the modification itself materially
315
+ and adversely affects the operation of the network or violates the
316
+ rules and protocols for communication across the network.
317
+
318
+ Corresponding Source conveyed, and Installation Information provided,
319
+ in accord with this section must be in a format that is publicly
320
+ documented (and with an implementation available to the public in
321
+ source code form), and must require no special password or key for
322
+ unpacking, reading or copying.
323
+
324
+ 7. Additional Terms.
325
+
326
+ "Additional permissions" are terms that supplement the terms of this
327
+ License by making exceptions from one or more of its conditions.
328
+ Additional permissions that are applicable to the entire Program shall
329
+ be treated as though they were included in this License, to the extent
330
+ that they are valid under applicable law. If additional permissions
331
+ apply only to part of the Program, that part may be used separately
332
+ under those permissions, but the entire Program remains governed by
333
+ this License without regard to the additional permissions.
334
+
335
+ When you convey a copy of a covered work, you may at your option
336
+ remove any additional permissions from that copy, or from any part of
337
+ it. (Additional permissions may be written to require their own
338
+ removal in certain cases when you modify the work.) You may place
339
+ additional permissions on material, added by you to a covered work,
340
+ for which you have or can give appropriate copyright permission.
341
+
342
+ Notwithstanding any other provision of this License, for material you
343
+ add to a covered work, you may (if authorized by the copyright holders
344
+ of that material) supplement the terms of this License with terms:
345
+
346
+ a) Disclaiming warranty or limiting liability differently from the
347
+ terms of sections 15 and 16 of this License; or
348
+
349
+ b) Requiring preservation of specified reasonable legal notices or
350
+ author attributions in that material or in the Appropriate Legal
351
+ Notices displayed by works containing it; or
352
+
353
+ c) Prohibiting misrepresentation of the origin of that material, or
354
+ requiring that modified versions of such material be marked in
355
+ reasonable ways as different from the original version; or
356
+
357
+ d) Limiting the use for publicity purposes of names of licensors or
358
+ authors of the material; or
359
+
360
+ e) Declining to grant rights under trademark law for use of some
361
+ trade names, trademarks, or service marks; or
362
+
363
+ f) Requiring indemnification of licensors and authors of that
364
+ material by anyone who conveys the material (or modified versions
365
+ of it) with contractual assumptions of liability to the
366
+ recipient, for any liability that these contractual assumptions
367
+ directly impose on those licensors and authors.
368
+
369
+ All other non-permissive additional terms are considered "further
370
+ restrictions" within the meaning of section 10. If the Program as you
371
+ received it, or any part of it, contains a notice stating that it is
372
+ governed by this License along with a term that is a further
373
+ restriction, you may remove that term. If a license document contains
374
+ a further restriction but permits relicensing or conveying under this
375
+ License, you may add to a covered work material governed by the terms
376
+ of that license document, provided that the further restriction does
377
+ not survive such relicensing or conveying.
378
+
379
+ If you add terms to a covered work in compliance with this section,
380
+ you must place, in the relevant source files, a statement of the
381
+ additional terms that apply to those files, or a notice indicating
382
+ where the applicable terms can be found.
383
+
384
+ Additional terms, permissive or non-permissive, may be stated in the
385
+ form of a separately written license, or stated as exceptions;
386
+ the above requirements apply either way.
387
+
388
+ 8. Termination.
389
+
390
+ You may not propagate or modify a covered work except as expressly
391
+ provided under this License. Any attempt otherwise to propagate or
392
+ modify it is void, and will automatically terminate your rights under
393
+ this License (including any patent licenses granted under the third
394
+ paragraph of section 11).
395
+
396
+ However, if you cease all violation of this License, then your
397
+ license from a particular copyright holder is reinstated (a)
398
+ provisionally, unless and until the copyright holder explicitly and
399
+ finally terminates your license, and (b) finally, if the copyright
400
+ holder fails to notify you of the violation by some reasonable means
401
+ prior to 60 days after the cessation.
402
+
403
+ Moreover, your license from a particular copyright holder is
404
+ reinstated finally if the copyright holder notifies you of the
405
+ violation by some reasonable means, this is the first time you have
406
+ received notice of violation of this License (for any work) from that
407
+ copyright holder, and you cure the violation prior to 30 days after
408
+ your receipt of the notice.
409
+
410
+ Termination of your rights under this section does not terminate the
411
+ licenses of parties who have received copies or rights from you under
412
+ this License. If your rights have been terminated and not finally
413
+ reinstated, you do not qualify to receive new licenses for the same
414
+ material under section 10.
415
+
416
+ 9. Acceptance Not Required for Having Copies.
417
+
418
+ You are not required to accept this License in order to receive or
419
+ run a copy of the Program. Ancillary propagation of a covered work
420
+ occurring solely as a consequence of using peer-to-peer transmission
421
+ to receive a copy likewise does not require acceptance. However,
422
+ nothing other than this License grants you permission to propagate or
423
+ modify any covered work. These actions infringe copyright if you do
424
+ not accept this License. Therefore, by modifying or propagating a
425
+ covered work, you indicate your acceptance of this License to do so.
426
+
427
+ 10. Automatic Licensing of Downstream Recipients.
428
+
429
+ Each time you convey a covered work, the recipient automatically
430
+ receives a license from the original licensors, to run, modify and
431
+ propagate that work, subject to this License. You are not responsible
432
+ for enforcing compliance by third parties with this License.
433
+
434
+ An "entity transaction" is a transaction transferring control of an
435
+ organization, or substantially all assets of one, or subdividing an
436
+ organization, or merging organizations. If propagation of a covered
437
+ work results from an entity transaction, each party to that
438
+ transaction who receives a copy of the work also receives whatever
439
+ licenses to the work the party's predecessor in interest had or could
440
+ give under the previous paragraph, plus a right to possession of the
441
+ Corresponding Source of the work from the predecessor in interest, if
442
+ the predecessor has it or can get it with reasonable efforts.
443
+
444
+ You may not impose any further restrictions on the exercise of the
445
+ rights granted or affirmed under this License. For example, you may
446
+ not impose a licensing fee, royalty, or other charge for exercise of
447
+ rights granted under this License, and you may not initiate litigation
448
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
449
+ any patent claim is infringed by making, using, selling, offering for
450
+ sale, or importing the Program or any portion of it.
451
+
452
+ 11. Patents.
453
+
454
+ A "contributor" is a copyright holder who authorizes use under this
455
+ License of the Program or a work on which the Program is based. The
456
+ work thus licensed is called the contributor's "contributor version".
457
+
458
+ A contributor's "essential patent claims" are all patent claims
459
+ owned or controlled by the contributor, whether already acquired or
460
+ hereafter acquired, that would be infringed by some manner, permitted
461
+ by this License, of making, using, or selling its contributor version,
462
+ but do not include claims that would be infringed only as a
463
+ consequence of further modification of the contributor version. For
464
+ purposes of this definition, "control" includes the right to grant
465
+ patent sublicenses in a manner consistent with the requirements of
466
+ this License.
467
+
468
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
469
+ patent license under the contributor's essential patent claims, to
470
+ make, use, sell, offer for sale, import and otherwise run, modify and
471
+ propagate the contents of its contributor version.
472
+
473
+ In the following three paragraphs, a "patent license" is any express
474
+ agreement or commitment, however denominated, not to enforce a patent
475
+ (such as an express permission to practice a patent or covenant not to
476
+ sue for patent infringement). To "convey" a patent license to a party
477
+ means to make such an agreement or commitment not to enforce a patent
478
+ against the party.
479
+
480
+ If you convey a covered work, knowingly relying on a patent license,
481
+ and the Corresponding Source of the work is not available for anyone
482
+ to copy, free of charge and under the terms of this License, through a
483
+ publicly available network server or other readily accessible means,
484
+ then you must either (1) cause the Corresponding Source to be so
485
+ available, or (2) arrange to deprive yourself of the benefit of the
486
+ patent license for this specific work, or (3) arrange, in a manner
487
+ consistent with the requirements of this License, to extend the patent
488
+ license to downstream recipients. "Knowingly relying" means you have
489
+ actual knowledge that, but for the patent license, your conveying the
490
+ covered work in a country, or your recipient's use of the covered work
491
+ in a country, would infringe one or more identifiable patents in that
492
+ country that you have reason to believe are valid.
493
+
494
+ If, pursuant to or in connection with a single transaction or
495
+ arrangement, you convey, or propagate by procuring conveyance of, a
496
+ covered work, and grant a patent license to some of the parties
497
+ receiving the covered work authorizing them to use, propagate, modify
498
+ or convey a specific copy of the covered work, then the patent license
499
+ you grant is automatically extended to all recipients of the covered
500
+ work and works based on it.
501
+
502
+ A patent license is "discriminatory" if it does not include within
503
+ the scope of its coverage, prohibits the exercise of, or is
504
+ conditioned on the non-exercise of one or more of the rights that are
505
+ specifically granted under this License. You may not convey a covered
506
+ work if you are a party to an arrangement with a third party that is
507
+ in the business of distributing software, under which you make payment
508
+ to the third party based on the extent of your activity of conveying
509
+ the work, and under which the third party grants, to any of the
510
+ parties who would receive the covered work from you, a discriminatory
511
+ patent license (a) in connection with copies of the covered work
512
+ conveyed by you (or copies made from those copies), or (b) primarily
513
+ for and in connection with specific products or compilations that
514
+ contain the covered work, unless you entered into that arrangement,
515
+ or that patent license was granted, prior to 28 March 2007.
516
+
517
+ Nothing in this License shall be construed as excluding or limiting
518
+ any implied license or other defenses to infringement that may be
519
+ available to you under applicable patent law.
520
+
521
+ 12. No Surrender of Others' Freedom.
522
+
523
+ If conditions are imposed on you (whether by court order, agreement or
524
+ otherwise) that contradict the conditions of this License, they do not
525
+ excuse you from the conditions of this License. If you cannot convey a
526
+ covered work so as to satisfy simultaneously your obligations under this
527
+ License and any other pertinent obligations, then as a consequence you
528
+ may not convey it at all. For example, if you agree to terms that
529
+ obligate you to collect a royalty for conveying from those to whom you
530
+ convey the Program, the only way you could satisfy both those terms and
531
+ this License would be to refrain entirely from conveying the Program.
532
+
533
+ 13. Remote Network Interaction; Use with the GNU General Public License.
534
+
535
+ Notwithstanding any other provision of this License, if you modify the
536
+ Program, your modified version must prominently offer all users
537
+ interacting with it remotely through a computer network (if your version
538
+ supports such interaction) an opportunity to receive the Corresponding
539
+ Source of your version by providing access to the Corresponding Source
540
+ from a network server at no charge, through some standard or customary
541
+ means of facilitating copying of software. This Corresponding Source
542
+ shall include the Corresponding Source for any work covered by version 3
543
+ of the GNU General Public License that is incorporated pursuant to the
544
+ next paragraph.
545
+
546
+ Notwithstanding any other provision of this License, you have
547
+ permission to link or combine any covered work with a work licensed
548
+ under version 3 of the GNU General Public License into a single
549
+ combined work, and to convey the resulting work. The terms of this
550
+ License will continue to apply to the part which is the covered work,
551
+ but the work with which it is combined will remain governed by version
552
+ 3 of the GNU General Public License.
553
+
554
+ 14. Revised Versions of this License.
555
+
556
+ The Free Software Foundation may publish revised and/or new versions
557
+ of the GNU Affero General Public License from time to time. Such new
558
+ versions will be similar in spirit to the present version, but may
559
+ differ in detail to address new problems or concerns.
560
+
561
+ Each version is given a distinguishing version number. If the
562
+ Program specifies that a certain numbered version of the GNU Affero
563
+ General Public License "or any later version" applies to it, you have
564
+ the option of following the terms and conditions either of that
565
+ numbered version or of any later version published by the Free
566
+ Software Foundation. If the Program does not specify a version number
567
+ of the GNU Affero General Public License, you may choose any version
568
+ ever published by the Free Software Foundation.
569
+
570
+ If the Program specifies that a proxy can decide which future
571
+ versions of the GNU Affero General Public License can be used, that
572
+ proxy's public statement of acceptance of a version permanently
573
+ authorizes you to choose that version for the Program.
574
+
575
+ Later license versions may give you additional or different
576
+ permissions. However, no additional or different obligations are
577
+ imposed on any author or copyright holder as a result of your choosing
578
+ to follow a later version.
579
+
580
+ 15. Disclaimer of Warranty.
581
+
582
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
583
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
584
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
585
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
586
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
587
+ PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
588
+ OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU
589
+ ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
590
+
591
+ 16. Limitation of Liability.
592
+
593
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
594
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
595
+ CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
596
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
597
+ ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
598
+ NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
599
+ LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
600
+ TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
601
+ PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
602
+
603
+ 17. Interpretation of Sections 15 and 16.
604
+
605
+ If the disclaimer of warranty and limitation of liability provided
606
+ above cannot be given local legal effect according to their terms,
607
+ reviewing courts shall apply local law that most closely approximates
608
+ an absolute waiver of all civil liability in connection with the
609
+ Program, unless a warranty or assumption of liability accompanies a
610
+ copy of the Program in return for a fee.
611
+
612
+ END OF TERMS AND CONDITIONS
613
+
614
+ How to Apply These Terms to Your New Programs
615
+
616
+ If you develop a new program, and you want it to be of the greatest
617
+ possible use to the public, the best way to achieve this is to make it
618
+ free software which everyone can redistribute and change under these terms.
619
+
620
+ To do so, attach the following notices to the program. It is safest
621
+ to attach them to the start of each source file to most effectively
622
+ state the exclusion of warranty; and each file should have at least
623
+ the "copyright" line and a pointer to where the full notice is found.
624
+
625
+ Auto CRUD Copilot - AI-powered frontend CRUD code generator
626
+ Copyright (C) 2026 yorha2b-lab
627
+
628
+ This program is free software: you can redistribute it and/or modify
629
+ it under the terms of the GNU Affero General Public License as
630
+ published by the Free Software Foundation, either version 3 of the
631
+ License, or (at your option) any later version.
632
+
633
+ This program is distributed in the hope that it will be useful,
634
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
635
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
636
+ GNU Affero General Public License for more details.
637
+
638
+ You should have received a copy of the GNU Affero General Public License
639
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
package/README.md CHANGED
@@ -5,10 +5,11 @@
5
5
  ![Auto CRUD Copilot Banner](https://github.com/user-attachments/assets/e168ef33-7616-434c-91e6-e2c9eef017c0)
6
6
 
7
7
 
8
- [![NPM Version](https://img.shields.io/npm/v/@yorha2b-lab/autodev.svg?style=flat-square)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
9
- [![NPM Downloads](https://img.shields.io/npm/dm/@yorha2b-lab/autodev.svg?style=flat-square)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
10
- [![GitHub Stars](https://img.shields.io/github/stars/yorha2b-lab/auto-crud-copilot.svg?style=flat-square)](https://github.com/yorha2b-lab/auto-crud-copilot/stargazers)
11
- [![License](https://img.shields.io/npm/l/@yorha2b-lab/autodev.svg?style=flat-square)](https://github.com/yorha2b-lab/auto-crud-copilot/blob/main/LICENSE)
8
+ [![NPM Version](https://img.shields.io/npm/v/@yorha2b-lab/autodev.svg?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
9
+ [![NPM Downloads](https://img.shields.io/npm/dm/@yorha2b-lab/autodev.svg?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
10
+ [![GitHub Stars](https://img.shields.io/github/stars/yorha2b-lab/auto-crud-copilot.svg?style=flat-square&logo=github&logoColor=white)](https://github.com/yorha2b-lab/auto-crud-copilot/stargazers)
11
+ [![License](https://img.shields.io/npm/l/@yorha2b-lab/autodev.svg?style=flat-square&logo=gnu&logoColor=white)](https://github.com/yorha2b-lab/auto-crud-copilot/blob/main/LICENSE)
12
+ ![Total Clones](https://img.shields.io/badge/dynamic/json?query=total_clones&url=https%3A%2F%2Fraw.githubusercontent.com%2Fyorha2b-lab%2Fauto-crud-copilot%2Fgithub-repo-stats%2Fbunker-stats.json&label=Total%20Clones&color=33cc33&style=flat-square&logo=github&logoColor=white)
12
13
 
13
14
  基于视觉大模型的前端(React+Antd)全自动 CRUD 代码生成器 🚀
14
15
 
@@ -20,6 +21,21 @@
20
21
  - 语义化骇入:不仅仅是复刻 UI,通过 9S 专用语义桥接协议,自动抹平前后端字段差异。
21
22
  - 工程级质量:生成的代码不是“演示用”,而是带 useTableQuery、EditableCell、OSS上传 等实战逻辑的高质量代码。
22
23
 
24
+ ## 🛡️ 开源协议升级公告
25
+
26
+ > **[重要] 自 v2.1.0 起,本项目由 MIT 协议正式升级为 AGPL-3.0 协议。**
27
+
28
+ **💡 为什么要调整协议?**
29
+ 随着“地堡”系统的影响力扩大,我们希望确保本项目的核心技术能够始终保持开放与透明。采用 **AGPL-3.0** 旨在鼓励开发者在改进本工具的同时,能将这些优化回馈给社区,共同构建一个可持续进化的“前端自动化构筑”生态。
30
+
31
+ **✅ 开发者友好声明 (重要):**
32
+ 我们深知开发者在实际业务场景中的合规需求。为了让地堡工具在商业环境中更安全、顺畅地运行,特此声明:
33
+ 1. **源码约束**:AGPL-3.0 仅约束 **AutoDev 工具自身的源代码**。
34
+ 2. **产出物豁免**:使用本工具生成的所有代码、Mock数据及配置文件被视为 **独立** 作品,不具备 AGPL 的传染性特征。
35
+ 3. **商业兼容**:您可以在商业项目、企业环境中使用本工具,且 **无需** 因此开源您的业务逻辑代码。
36
+
37
+ *一句话总结:地堡的进化归属于社区,您构筑的战果归属于您自己。*
38
+
23
39
  ## ✨ 特性
24
40
 
25
41
  - 🖼️ 视觉构筑 (Page): 截图丢入 screenShot,Pod 042 自动生成带 Table/Form/Tabs 的完整 CRUD 页面。
@@ -119,7 +135,7 @@ module.exports = {
119
135
 
120
136
  ## 📄 许可证
121
137
 
122
- 本项目采用 [MIT](LICENSE) 许可证。
138
+ 本项目采用 [GNU AGPL v3.0](LICENSE) 许可证。
123
139
 
124
140
  ## 🙏 致谢
125
141
 
package/README_EN.md CHANGED
@@ -5,10 +5,11 @@
5
5
  ![Auto CRUD Copilot Banner](https://github.com/user-attachments/assets/e168ef33-7616-434c-91e6-e2c9eef017c0)
6
6
 
7
7
 
8
- [![NPM Version](https://img.shields.io/npm/v/@yorha2b-lab/autodev.svg?style=flat-square)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
9
- [![NPM Downloads](https://img.shields.io/npm/dm/@yorha2b-lab/autodev.svg?style=flat-square)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
10
- [![GitHub Stars](https://img.shields.io/github/stars/yorha2b-lab/auto-crud-copilot.svg?style=flat-square)](https://github.com/yorha2b-lab/auto-crud-copilot/stargazers)
11
- [![License](https://img.shields.io/npm/l/@yorha2b-lab/autodev.svg?style=flat-square)](https://github.com/yorha2b-lab/auto-crud-copilot/blob/main/LICENSE)
8
+ [![NPM Version](https://img.shields.io/npm/v/@yorha2b-lab/autodev.svg?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
9
+ [![NPM Downloads](https://img.shields.io/npm/dm/@yorha2b-lab/autodev.svg?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@yorha2b-lab/autodev)
10
+ [![GitHub Stars](https://img.shields.io/github/stars/yorha2b-lab/auto-crud-copilot.svg?style=flat-square&logo=github&logoColor=white)](https://github.com/yorha2b-lab/auto-crud-copilot/stargazers)
11
+ [![License](https://img.shields.io/npm/l/@yorha2b-lab/autodev.svg?style=flat-square&logo=gnu&logoColor=white)](https://github.com/yorha2b-lab/auto-crud-copilot/blob/main/LICENSE)
12
+ ![Total Clones](https://img.shields.io/badge/dynamic/json?query=total_clones&url=https%3A%2F%2Fraw.githubusercontent.com%2Fyorha2b-lab%2Fauto-crud-copilot%2Fgithub-repo-stats%2Fbunker-stats.json&label=Total%20Clones&color=33cc33&style=flat-square&logo=github&logoColor=white)
12
13
 
13
14
  Vision-based LLM-powered frontend (React+Antd) fully automatic CRUD code generator 🚀
14
15
 
@@ -20,6 +21,21 @@ In the 2.0 era, we abandoned cumbersome scattered instructions and fully evolved
20
21
  - Semantic Hacking: Not just replicating UI, but automatically smoothing out frontend-backend field differences through the 9S dedicated semantic bridge protocol.
21
22
  - Engineering-Grade Quality: Generated code is not "demo-grade" but high-quality code with useTableQuery, EditableCell, OSS upload, and other practical logic.
22
23
 
24
+ ## 🛡️ Open Source License Upgrade
25
+
26
+ **[IMPORTANT] Since v2.1.0, this project has been officially upgraded from MIT to the AGPL-3.0 License.**
27
+
28
+ **💡 Why the change?**
29
+ As the "Bunker" system continues to evolve, we aim to ensure the core technology remains open and transparent for everyone. Adopting **AGPL-3.0** encourages the community to contribute improvements back, fostering a sustainable ecosystem for frontend automation.
30
+
31
+ **✅ Developer-Friendly Clause (Crucial):**
32
+ We value the contribution of developers in corporate environments. To ensure a smooth and safe operational experience:
33
+ 1. **Scope**: The AGPL-3.0 license applies strictly to the **AutoDev source code itself**.
34
+ 2. **Output Exemption**: All generated code, mock data, and configurations produced by this tool are legally considered **separate** works and are NOT affected by the copyleft (infectious) nature of the AGPL.
35
+ 3. **Commercial Usage**: You are permitted to use this CLI in commercial/corporate environments. Your business logic remains **Private** and is NOT affected by the AGPL's nature.
36
+
37
+ *Summary: The Bunker's evolution belongs to the community; the armor you forge belongs to you.*
38
+
23
39
  ## ✨ Features
24
40
 
25
41
  - 🖼️ **Visual Construction (Page)**: Drop screenshots into screenShot, Pod 042 automatically generates complete CRUD pages with Table/Form/Tabs.
@@ -120,7 +136,7 @@ Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) to lea
120
136
 
121
137
  ## 📄 License
122
138
 
123
- This project is licensed under the [MIT](LICENSE) License.
139
+ This project is licensed under the [GNU AGPL v3.0](LICENSE) License.
124
140
 
125
141
  ## 🙏 Acknowledgments
126
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "基于视觉大模型的前端(react+Antd)全自动 CRUD 代码生成器",
5
5
  "bin": {
6
6
  "autodev": "bin/autodev.js"
@@ -1,3 +1,15 @@
1
+ /**
2
+ * Auto CRUD Copilot - YoRHa Bunker Construction System
3
+ *
4
+ * This file is part of AutoDev.
5
+ * AutoDev is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU Affero General Public License as
7
+ * published by the Free Software Foundation, either version 3 of the
8
+ * License, or (at your option) any later version.
9
+ *
10
+ * (c) 2026 [yorha2b-lab]. Glory to Mankind.
11
+ */
12
+
1
13
  const fs = require('fs')
2
14
  const path = require('path')
3
15
  const chalk = require('chalk')