cubest 0.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.
- package/LICENSE +201 -0
- package/NOTICE +27 -0
- package/README.ar.md +110 -0
- package/README.bn.md +111 -0
- package/README.es.md +110 -0
- package/README.hi.md +110 -0
- package/README.ja.md +113 -0
- package/README.md +469 -0
- package/README.pa.md +114 -0
- package/README.pt.md +113 -0
- package/README.ru.md +1174 -0
- package/README.zh-CN.md +233 -0
- package/bin/cubest.js +28 -0
- package/cubest.py +1862 -0
- package/package.json +28 -0
- package/profiles/agents_inventory.yaml +15 -0
- package/profiles/api_routes.yaml +20 -0
- package/profiles/call_graph.yaml +19 -0
- package/profiles/code_atlas.yaml +33 -0
- package/profiles/code_stats.yaml +15 -0
- package/profiles/csv_analytics.yaml +31 -0
- package/profiles/disk_usage.yaml +29 -0
- package/profiles/doc_structure.yaml +16 -0
- package/profiles/file_tree.yaml +27 -0
- package/profiles/frontend_geoip.yaml +49 -0
- package/profiles/git_log_activity.yaml +29 -0
- package/profiles/imports.yaml +16 -0
- package/profiles/jsonl_events.yaml +19 -0
- package/profiles/k8s_resources.yaml +25 -0
- package/profiles/loc_counter.yaml +51 -0
- package/profiles/mr_impact.yaml +19 -0
- package/profiles/nginx_access.yaml +33 -0
- package/profiles/nginx_cdn_covers.yaml +32 -0
- package/profiles/openapi_endpoints.yaml +19 -0
- package/profiles/react_components.yaml +15 -0
- package/profiles/sdd_checklist.yaml +17 -0
- package/profiles/sdd_specs.yaml +19 -0
- package/profiles/seo_audit.yaml +31 -0
- package/profiles/seo_semantic_tree.yaml +17 -0
- package/profiles/sitemap_map.yaml +20 -0
- package/profiles/skills_inventory.yaml +17 -0
- package/profiles/spec_status.yaml +18 -0
- package/profiles/sql_functions.yaml +31 -0
- package/profiles/tech_debt.yaml +16 -0
- package/profiles/xml_tags.yaml +21 -0
- package/profiles/yaml_keys.yaml +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for the acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Sergey Baryshev
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing permissions
|
|
201
|
+
and limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
cubest
|
|
2
|
+
Copyright 2026 Sergey Baryshev
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Sergey Baryshev.
|
|
5
|
+
|
|
6
|
+
Upstream project and documentation:
|
|
7
|
+
https://github.com/BaryshevS/cubest
|
|
8
|
+
|
|
9
|
+
===========================================================================
|
|
10
|
+
ATTRIBUTION REQUIREMENT (Apache 2.0 §4(d))
|
|
11
|
+
|
|
12
|
+
If you redistribute this software, in whole or in part, in Source or Object
|
|
13
|
+
form, in derivative works, embedded in your own products, hosted service,
|
|
14
|
+
CLI wrapper, container image, IDE plugin, or otherwise, you MUST include
|
|
15
|
+
this NOTICE file (or its readable contents) in at least one of:
|
|
16
|
+
|
|
17
|
+
- a NOTICE / THIRD_PARTY_NOTICES / ATTRIBUTION file shipped with your
|
|
18
|
+
distribution;
|
|
19
|
+
- your documentation (README, help pages, docs site);
|
|
20
|
+
- an "About" / "Credits" / "Powered by" screen visible to end users;
|
|
21
|
+
- the source header if the software has no user-facing surface.
|
|
22
|
+
|
|
23
|
+
The attribution MUST preserve the upstream URL above, so downstream users
|
|
24
|
+
can find the origin and current version.
|
|
25
|
+
|
|
26
|
+
You are welcome to add your own attribution alongside this notice.
|
|
27
|
+
===========================================================================
|
package/README.ar.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# cubest
|
|
2
|
+
|
|
3
|
+
[English](README.md) · [简体中文](README.zh-CN.md) · [Español](README.es.md) · [हिन्दी](README.hi.md) · **العربية** · [বাংলা](README.bn.md) · [Português](README.pt.md) · [Русский](README.ru.md) · [日本語](README.ja.md) · [ਪੰਜਾਬੀ](README.pa.md)
|
|
4
|
+
|
|
5
|
+
> **رموز أقل بمعدل 7–22× لكل فحص مستودع لوكلاء الذكاء الاصطناعي.**
|
|
6
|
+
> مُجمِّع OLAP بتمرير واحد يطوي أي تدفق نصي — كود، سجلات، CSV، JSONL،
|
|
7
|
+
> XML، HTML، مصنوعات SDD — إلى مكعّب متعدد الأبعاد مضغوط. مصمَّم من أجل
|
|
8
|
+
> **Claude Code وCursor وCodex وAider وWindsurf وCline وContinue.dev**
|
|
9
|
+
> وأي وكيل ذكاء اصطناعي يدفع لكل رمز إدخال.
|
|
10
|
+
|
|
11
|
+
<p align="left">
|
|
12
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
|
|
13
|
+
<img src="https://img.shields.io/badge/python-3.8%2B-blue.svg">
|
|
14
|
+
<img src="https://img.shields.io/badge/deps-stdlib%20only-green.svg">
|
|
15
|
+
<img src="https://img.shields.io/badge/tests-57%20passing-brightgreen.svg">
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## 🧠 لماذا يهم هذا وكيل الذكاء الاصطناعي
|
|
19
|
+
|
|
20
|
+
مُقاس على 7 سيناريوهات حقيقية (انظر [`examples/`](examples/)):
|
|
21
|
+
|
|
22
|
+
| # | السيناريو | Naive tokens | Cubest tokens | النسبة |
|
|
23
|
+
|---|----------------------------------------------|:------------:|:-------------:|:---------:|
|
|
24
|
+
| 1 | تحقيق nginx 5xx (سجل من 5000 سطر) | 3,590 | 158 | **22.7×** |
|
|
25
|
+
| 2 | تهيئة مستودع جديد (40 ملفًا) | 1,256 | 175 | 7.2× |
|
|
26
|
+
| 3 | خريطة تأثير MR من `git diff` | 280 | 16 | **17.5×** |
|
|
27
|
+
| 4 | تجميع CSV صغير (300 صف) | 280 | 368 | 0.8× ❌ |
|
|
28
|
+
| 5 | تدقيق SEO لعشر صفحات HTML | 382 | 49 | 7.8× |
|
|
29
|
+
| 6 | تدقيق استخدام القرص (300 ملف) | 338 | 68 | 5.0× |
|
|
30
|
+
| 7 | تجميع فئات RSS (3×30 عنصرًا) | 1,692 | 265 | 6.4× |
|
|
31
|
+
| | **الوسيط (median)** | | | **7.2×** |
|
|
32
|
+
|
|
33
|
+
يتفوّق cubest على **التدفقات الكبيرة والبيانات الهرمية**. في الجداول
|
|
34
|
+
الصغيرة جدًا (CSV من 300 صف) يكون خط أنابيب `awk` البسيط مضغوطًا بالفعل
|
|
35
|
+
وقد يخسر cubest. أما في السيناريوهات الأساسية — السجلات وأشجار الكود
|
|
36
|
+
وزحف sitemap — فإن الرموز التي تسقط في سياق الوكيل تقلّ بمعدل 5–25×.
|
|
37
|
+
|
|
38
|
+
## 🚀 التثبيت
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# تنزيل بسيط (بلا اعتماديات لملفات JSON)
|
|
42
|
+
curl -O https://raw.githubusercontent.com/BaryshevS/cubest/main/cubest.py
|
|
43
|
+
python3 cubest.py --profile file_tree .
|
|
44
|
+
|
|
45
|
+
# عبر pip (سيُنشر على PyPI قريبًا)
|
|
46
|
+
pip install cubest
|
|
47
|
+
cubest --profile file_tree .
|
|
48
|
+
|
|
49
|
+
# عبر مغلِّف npm
|
|
50
|
+
npx cubest --profile file_tree .
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## ⚡ بداية سريعة
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# خريطة مستودع غير مألوف (30 سطرًا بدلًا من 3000)
|
|
57
|
+
cubest --profile file_tree .
|
|
58
|
+
|
|
59
|
+
# سجل nginx.gz — أعلى عناوين URL × الحالة × زمن الاستجابة p95
|
|
60
|
+
cubest --profile nginx_access /var/log/nginx/access.log.gz
|
|
61
|
+
|
|
62
|
+
# عدّ سطور الكود لكل لغة
|
|
63
|
+
cubest --profile loc_counter .
|
|
64
|
+
|
|
65
|
+
# CSV → OLAP → لوحة ECharts تفاعلية (ملف HTML وحيد)
|
|
66
|
+
cubest -p '{
|
|
67
|
+
"dimensions": ["campaign", "device"],
|
|
68
|
+
"measures": [{"name":"impressions","type":"sum","field":"impressions"}],
|
|
69
|
+
"extract": [{"type":"preset","preset":"csv"}],
|
|
70
|
+
"output": {"format":"echarts","chart_type":"sankey"}
|
|
71
|
+
}' report.csv > dashboard.html
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## 📊 صيغ الإخراج
|
|
75
|
+
|
|
76
|
+
13 صيغة: `tree`، `flat`، `compact`، `csv`، `md_table`، `yaml`، `json`،
|
|
77
|
+
`xml`، `dot`، `mermaid`، `plantuml`، `drawio`، `echarts`.
|
|
78
|
+
|
|
79
|
+
31 ملفًّا تعريفيًّا مدمجًا — للكود والسجلات وCSV وSEO وK8s وOpenAPI وSDD.
|
|
80
|
+
القائمة الكاملة في [README الإنجليزي](README.md#-what-you-get).
|
|
81
|
+
|
|
82
|
+
## 📜 الترخيص
|
|
83
|
+
|
|
84
|
+
Apache License 2.0 — انظر [LICENSE](LICENSE) و[NOTICE](NOTICE).
|
|
85
|
+
|
|
86
|
+
**اشتراط النَّسب (Apache 2.0 §4d):** إذا أعدت توزيع cubest، يجب
|
|
87
|
+
إدراج ملف NOTICE مع الحفاظ على رابط المصدر الأصلي:
|
|
88
|
+
|
|
89
|
+
> https://github.com/BaryshevS/cubest
|
|
90
|
+
|
|
91
|
+
## 💖 الدعم
|
|
92
|
+
|
|
93
|
+
إذا كان cubest يوفّر عليك رموزًا في تدفقات عمل الوكلاء اليومية أو يُقصّر
|
|
94
|
+
حادثة تشغيلية، ففكّر في رعاية المشروع — يذهب التمويل مباشرة إلى بنود
|
|
95
|
+
خارطة الطريق (t-digest، بث CSV، مقاطع للوكلاء) والبنية التحتية:
|
|
96
|
+
|
|
97
|
+
- **GitHub Sponsors** → https://github.com/sponsors/BaryshevS
|
|
98
|
+
- **Open Collective** → https://opencollective.com/baryshevsv
|
|
99
|
+
|
|
100
|
+
حتى 3 دولارات شهريًا تُبقي المشروع حيًّا. يحصل الرعاة على أولوية في فرز
|
|
101
|
+
issues ويُذكرون في ملاحظات الإصدار.
|
|
102
|
+
|
|
103
|
+
## ⭐ ضع نجمة على المستودع
|
|
104
|
+
|
|
105
|
+
إذا وفّر عليك cubest جزءًا من ميزانية الذكاء الاصطناعي أو قصّر حادثة SRE
|
|
106
|
+
بساعة — النجمة تساعد الآخرين على العثور عليه. هذا كل الطلب.
|
|
107
|
+
|
|
108
|
+
<a href="https://github.com/BaryshevS/cubest/stargazers">
|
|
109
|
+
<img src="https://img.shields.io/github/stars/BaryshevS/cubest?style=social" alt="Star">
|
|
110
|
+
</a>
|
package/README.bn.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# cubest
|
|
2
|
+
|
|
3
|
+
[English](README.md) · [简体中文](README.zh-CN.md) · [Español](README.es.md) · [हिन्दी](README.hi.md) · [العربية](README.ar.md) · **বাংলা** · [Português](README.pt.md) · [Русский](README.ru.md) · [日本語](README.ja.md) · [ਪੰਜਾਬੀ](README.pa.md)
|
|
4
|
+
|
|
5
|
+
> **AI এজেন্টের প্রতিটি রিপোজিটরি স্ক্যানে ৭–২২× কম টোকেন।**
|
|
6
|
+
> সিঙ্গেল-পাস OLAP অ্যাগ্রিগেটর যা যেকোনো টেক্সট স্ট্রিম — কোড, লগ, CSV,
|
|
7
|
+
> JSONL, XML, HTML, SDD আর্টিফ্যাক্ট — একটি কমপ্যাক্ট মাল্টি-ডাইমেনশনাল
|
|
8
|
+
> কিউবে ভাঁজ করে দেয়। **Claude Code, Cursor, Codex, Aider, Windsurf,
|
|
9
|
+
> Cline, Continue.dev** এবং ইনপুট টোকেন অনুসারে বিলিং করা যেকোনো AI
|
|
10
|
+
> কোডিং এজেন্টের জন্য তৈরি।
|
|
11
|
+
|
|
12
|
+
<p align="left">
|
|
13
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
|
|
14
|
+
<img src="https://img.shields.io/badge/python-3.8%2B-blue.svg">
|
|
15
|
+
<img src="https://img.shields.io/badge/deps-stdlib%20only-green.svg">
|
|
16
|
+
<img src="https://img.shields.io/badge/tests-57%20passing-brightgreen.svg">
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
## 🧠 AI এজেন্টের কেন গুরুত্ব দেওয়া উচিত
|
|
20
|
+
|
|
21
|
+
৭টি বাস্তব পরিস্থিতিতে পরিমাপ করা হয়েছে (দেখুন [`examples/`](examples/)):
|
|
22
|
+
|
|
23
|
+
| # | পরিস্থিতি | Naive tokens | Cubest tokens | অনুপাত |
|
|
24
|
+
|---|----------------------------------------------|:------------:|:-------------:|:---------:|
|
|
25
|
+
| 1 | nginx লগে 5xx তদন্ত (৫০০০ লাইন) | 3,590 | 158 | **22.7×** |
|
|
26
|
+
| 2 | রিপোজিটরি অনবোর্ডিং (৪০টি ফাইল) | 1,256 | 175 | 7.2× |
|
|
27
|
+
| 3 | `git diff` থেকে MR ইমপ্যাক্ট ম্যাপ | 280 | 16 | **17.5×** |
|
|
28
|
+
| 4 | ছোট CSV রোলআপ (৩০০ সারি) | 280 | 368 | 0.8× ❌ |
|
|
29
|
+
| 5 | ১০টি HTML পৃষ্ঠার SEO অডিট | 382 | 49 | 7.8× |
|
|
30
|
+
| 6 | ডিস্ক ব্যবহার অডিট (৩০০টি ফাইল) | 338 | 68 | 5.0× |
|
|
31
|
+
| 7 | RSS বিভাগ রোলআপ (৩×৩০ আইটেম) | 1,692 | 265 | 6.4× |
|
|
32
|
+
| | **মধ্যক (median)** | | | **7.2×** |
|
|
33
|
+
|
|
34
|
+
Cubest **বড় স্ট্রিম ও শ্রেণিবদ্ধ ডেটাতে** জেতে। খুব ছোট টেবিল ডেটার
|
|
35
|
+
(৩০০ সারির CSV) জন্য সহজ `awk` পাইপলাইন ইতিমধ্যেই কমপ্যাক্ট এবং সেখানে
|
|
36
|
+
cubest হারতেও পারে। মূল পরিস্থিতিগুলিতে — লগ, কোড ট্রি, sitemap
|
|
37
|
+
ক্রল — এজেন্টের কনটেক্সটে পড়া টোকেন ৫–২৫× কমে যায়।
|
|
38
|
+
|
|
39
|
+
## 🚀 ইনস্টলেশন
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# সাধারণ ডাউনলোড (JSON প্রোফাইলের জন্য কোনো dependency নেই)
|
|
43
|
+
curl -O https://raw.githubusercontent.com/BaryshevS/cubest/main/cubest.py
|
|
44
|
+
python3 cubest.py --profile file_tree .
|
|
45
|
+
|
|
46
|
+
# pip-এর মাধ্যমে (PyPI-তে শীঘ্রই)
|
|
47
|
+
pip install cubest
|
|
48
|
+
cubest --profile file_tree .
|
|
49
|
+
|
|
50
|
+
# npm র্যাপারের মাধ্যমে
|
|
51
|
+
npx cubest --profile file_tree .
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## ⚡ দ্রুত শুরু
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# অপরিচিত রিপোজিটরির ম্যাপ (৩০০০-এর বদলে ৩০ লাইন)
|
|
58
|
+
cubest --profile file_tree .
|
|
59
|
+
|
|
60
|
+
# nginx.gz লগ — top URL × status × p95 latency
|
|
61
|
+
cubest --profile nginx_access /var/log/nginx/access.log.gz
|
|
62
|
+
|
|
63
|
+
# প্রতি ভাষায় LOC গণনা
|
|
64
|
+
cubest --profile loc_counter .
|
|
65
|
+
|
|
66
|
+
# CSV → OLAP → ইন্টারঅ্যাকটিভ ECharts ড্যাশবোর্ড (একটি HTML ফাইল)
|
|
67
|
+
cubest -p '{
|
|
68
|
+
"dimensions": ["campaign", "device"],
|
|
69
|
+
"measures": [{"name":"impressions","type":"sum","field":"impressions"}],
|
|
70
|
+
"extract": [{"type":"preset","preset":"csv"}],
|
|
71
|
+
"output": {"format":"echarts","chart_type":"sankey"}
|
|
72
|
+
}' report.csv > dashboard.html
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 📊 আউটপুট ফরম্যাট
|
|
76
|
+
|
|
77
|
+
১৩টি ফরম্যাট: `tree`, `flat`, `compact`, `csv`, `md_table`, `yaml`, `json`,
|
|
78
|
+
`xml`, `dot`, `mermaid`, `plantuml`, `drawio`, `echarts`।
|
|
79
|
+
|
|
80
|
+
৩১টি বিল্ট-ইন প্রোফাইল — কোড, লগ, CSV, SEO, K8s, OpenAPI, SDD-এর জন্য।
|
|
81
|
+
সম্পূর্ণ তালিকা [ইংরেজি README](README.md#-what-you-get)-এ।
|
|
82
|
+
|
|
83
|
+
## 📜 লাইসেন্স
|
|
84
|
+
|
|
85
|
+
Apache License 2.0 — [LICENSE](LICENSE) ও [NOTICE](NOTICE) দেখুন।
|
|
86
|
+
|
|
87
|
+
**অ্যাট্রিবিউশন শর্ত (Apache 2.0 §4d):** cubest পুনর্বণ্টন করলে, NOTICE
|
|
88
|
+
ফাইল আপস্ট্রিম URL সংরক্ষণ করে অন্তর্ভুক্ত করতে হবে:
|
|
89
|
+
|
|
90
|
+
> https://github.com/BaryshevS/cubest
|
|
91
|
+
|
|
92
|
+
## 💖 সমর্থন
|
|
93
|
+
|
|
94
|
+
cubest যদি আপনার প্রতিদিনের এজেন্ট ওয়ার্কফ্লোতে টোকেন সাশ্রয় করে বা কোনো
|
|
95
|
+
ঘটনার সময় কমায়, তবে স্পনসর হওয়ার কথা ভাবুন — অর্থ সরাসরি roadmap
|
|
96
|
+
(t-digest, স্ট্রিমিং CSV, এজেন্ট স্নিপেট) ও ইনফ্রাস্ট্রাকচারে যায়:
|
|
97
|
+
|
|
98
|
+
- **GitHub Sponsors** → https://github.com/sponsors/BaryshevS
|
|
99
|
+
- **Open Collective** → https://opencollective.com/baryshevsv
|
|
100
|
+
|
|
101
|
+
মাসে $৩ও প্রকল্পটি সচল রাখে। স্পনসররা issue triage-এ অগ্রাধিকার পান
|
|
102
|
+
এবং রিলিজ নোটে উল্লেখিত হন।
|
|
103
|
+
|
|
104
|
+
## ⭐ রিপোজিটরিতে স্টার দিন
|
|
105
|
+
|
|
106
|
+
cubest যদি আপনার AI বাজেটের একটি অংশ বাঁচায় বা কোনো SRE ঘটনা এক ঘণ্টা
|
|
107
|
+
কমায় — একটি স্টার অন্যদের এটি খুঁজে পেতে সাহায্য করে। এটাই একমাত্র অনুরোধ।
|
|
108
|
+
|
|
109
|
+
<a href="https://github.com/BaryshevS/cubest/stargazers">
|
|
110
|
+
<img src="https://img.shields.io/github/stars/BaryshevS/cubest?style=social" alt="Star">
|
|
111
|
+
</a>
|
package/README.es.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# cubest
|
|
2
|
+
|
|
3
|
+
[English](README.md) · [简体中文](README.zh-CN.md) · **Español** · [हिन्दी](README.hi.md) · [العربية](README.ar.md) · [বাংলা](README.bn.md) · [Português](README.pt.md) · [Русский](README.ru.md) · [日本語](README.ja.md) · [ਪੰਜਾਬੀ](README.pa.md)
|
|
4
|
+
|
|
5
|
+
> **7–22× menos tokens por escaneo de repositorio para agentes de IA.**
|
|
6
|
+
> Agregador OLAP de un solo paso que convierte cualquier flujo de texto
|
|
7
|
+
> (código, logs, CSV, JSONL, XML, HTML, artefactos SDD) en un cubo compacto.
|
|
8
|
+
> Diseñado para **Claude Code, Cursor, Codex, Aider, Windsurf, Cline,
|
|
9
|
+
> Continue.dev** y cualquier agente de IA que pague por token de entrada.
|
|
10
|
+
|
|
11
|
+
<p align="left">
|
|
12
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
|
|
13
|
+
<img src="https://img.shields.io/badge/python-3.8%2B-blue.svg">
|
|
14
|
+
<img src="https://img.shields.io/badge/deps-solo%20stdlib-green.svg">
|
|
15
|
+
<img src="https://img.shields.io/badge/tests-57%20pasando-brightgreen.svg">
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## 🧠 Por qué a un agente de IA le importa
|
|
19
|
+
|
|
20
|
+
Medido en 7 escenarios reales (ver [`examples/`](examples/)):
|
|
21
|
+
|
|
22
|
+
| # | Escenario | Tokens naive | Cubest tokens | Ratio |
|
|
23
|
+
|---|------------------------------------------|:------------:|:-------------:|:---------:|
|
|
24
|
+
| 1 | Investigación 5xx en log nginx (5000 líneas) | 3.590 | 158 | **22.7×** |
|
|
25
|
+
| 2 | Onboarding a un repo (40 archivos) | 1.256 | 175 | 7.2× |
|
|
26
|
+
| 3 | Mapa de impacto de MR desde `git diff` | 280 | 16 | **17.5×** |
|
|
27
|
+
| 4 | Rollup pequeño de CSV (300 filas) | 280 | 368 | 0.8× ❌ |
|
|
28
|
+
| 5 | Auditoría SEO de 10 páginas HTML | 382 | 49 | 7.8× |
|
|
29
|
+
| 6 | Auditoría de uso de disco (300 archivos)| 338 | 68 | 5.0× |
|
|
30
|
+
| 7 | Rollup de categorías RSS (3×30 items) | 1.692 | 265 | 6.4× |
|
|
31
|
+
| | **Mediana** | | | **7.2×** |
|
|
32
|
+
|
|
33
|
+
Cubest gana en **flujos grandes y datos jerárquicos**. Para tablas muy pequeñas
|
|
34
|
+
(CSV de 300 filas), una cadena `awk` ya es compacta y cubest incluso pierde.
|
|
35
|
+
|
|
36
|
+
## 🚀 Instalación
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Descarga simple (sin deps para perfiles JSON)
|
|
40
|
+
curl -O https://raw.githubusercontent.com/BaryshevS/cubest/main/cubest.py
|
|
41
|
+
python3 cubest.py --profile file_tree .
|
|
42
|
+
|
|
43
|
+
# Vía pip (publicación en PyPI próximamente)
|
|
44
|
+
pip install cubest
|
|
45
|
+
cubest --profile file_tree .
|
|
46
|
+
|
|
47
|
+
# Vía npm wrapper
|
|
48
|
+
npx cubest --profile file_tree .
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## ⚡ Uso rápido
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Mapa de un repo desconocido (30 líneas en vez de 3000)
|
|
55
|
+
cubest --profile file_tree .
|
|
56
|
+
|
|
57
|
+
# Log nginx.gz — top URLs × status × latencia p95
|
|
58
|
+
cubest --profile nginx_access /var/log/nginx/access.log.gz
|
|
59
|
+
|
|
60
|
+
# Conteo de líneas de código por lenguaje
|
|
61
|
+
cubest --profile loc_counter .
|
|
62
|
+
|
|
63
|
+
# CSV → OLAP → dashboard ECharts interactivo (un solo HTML)
|
|
64
|
+
cubest -p '{
|
|
65
|
+
"dimensions": ["campaign", "device"],
|
|
66
|
+
"measures": [{"name":"impressions","type":"sum","field":"impressions"}],
|
|
67
|
+
"extract": [{"type":"preset","preset":"csv"}],
|
|
68
|
+
"output": {"format":"echarts","chart_type":"sankey"}
|
|
69
|
+
}' informe.csv > dashboard.html
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 📊 Formatos de salida
|
|
73
|
+
|
|
74
|
+
13 formatos: `tree`, `flat`, `compact`, `csv`, `md_table`, `yaml`, `json`,
|
|
75
|
+
`xml`, `dot`, `mermaid`, `plantuml`, `drawio`, `echarts`.
|
|
76
|
+
|
|
77
|
+
31 perfiles integrados — código, logs, CSV, SEO, K8s, OpenAPI, SDD.
|
|
78
|
+
Lista completa en el [README en inglés](README.md#-what-you-get).
|
|
79
|
+
|
|
80
|
+
## 📜 Licencia
|
|
81
|
+
|
|
82
|
+
Apache License 2.0 — ver [LICENSE](LICENSE) y [NOTICE](NOTICE).
|
|
83
|
+
|
|
84
|
+
**Requisito de atribución (Apache 2.0 §4d):** si redistribuye cubest,
|
|
85
|
+
debe incluir el archivo NOTICE preservando la URL upstream:
|
|
86
|
+
|
|
87
|
+
> https://github.com/BaryshevS/cubest
|
|
88
|
+
|
|
89
|
+
## 💖 Apoyo
|
|
90
|
+
|
|
91
|
+
Si cubest te ahorra tokens en tus flujos diarios con agentes o acorta
|
|
92
|
+
un incidente, considera patrocinar el proyecto — la financiación va
|
|
93
|
+
directamente al roadmap (t-digest, CSV en streaming, snippets para
|
|
94
|
+
agentes) y a la infraestructura:
|
|
95
|
+
|
|
96
|
+
- **GitHub Sponsors** → https://github.com/sponsors/BaryshevS
|
|
97
|
+
- **Open Collective** → https://opencollective.com/baryshevsv
|
|
98
|
+
|
|
99
|
+
Incluso 3 $/mes mantienen el proyecto en marcha. Los patrocinadores
|
|
100
|
+
tienen prioridad en la clasificación de issues y aparecen en las notas
|
|
101
|
+
de cada versión.
|
|
102
|
+
|
|
103
|
+
## ⭐ Dale una estrella
|
|
104
|
+
|
|
105
|
+
Si cubest te ahorra parte del presupuesto de IA o acorta un incidente
|
|
106
|
+
SRE por una hora, una estrella ayuda a otros a encontrarlo.
|
|
107
|
+
|
|
108
|
+
<a href="https://github.com/BaryshevS/cubest/stargazers">
|
|
109
|
+
<img src="https://img.shields.io/github/stars/BaryshevS/cubest?style=social" alt="Star">
|
|
110
|
+
</a>
|