Skip to content

Commit ecca4d5

Browse files
committed
feat: support agentkit sdk/cli
1 parent 92c52d0 commit ecca4d5

File tree

184 files changed

+61888
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+61888
-1
lines changed

.gitignore

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
develop-eggs/
12+
dist/
13+
downloads/
14+
eggs/
15+
.eggs/
16+
lib/
17+
lib64/
18+
parts/
19+
sdist/
20+
var/
21+
wheels/
22+
share/python-wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
*.py,cover
49+
.hypothesis/
50+
.pytest_cache/
51+
cover/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
db.sqlite3-journal
62+
63+
# Flask stuff:
64+
instance/
65+
.webassets-cache
66+
67+
# Scrapy stuff:
68+
.scrapy
69+
70+
# Sphinx documentation
71+
docs/_build/
72+
73+
# PyBuilder
74+
.pybuilder/
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
# For a library or package, you might want to ignore these files since the code is
86+
# intended to run in multiple environments; otherwise, check them in:
87+
# .python-version
88+
89+
# pipenv
90+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
92+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
93+
# install all needed dependencies.
94+
#Pipfile.lock
95+
96+
# poetry
97+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
98+
# This is especially recommended for binary packages to ensure reproducibility, and is more
99+
# commonly ignored for libraries.
100+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
101+
#poetry.lock
102+
103+
# pdm
104+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
105+
#pdm.lock
106+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
107+
# in version control.
108+
# https://pdm.fming.dev/#use-with-ide
109+
.pdm.toml
110+
111+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
112+
__pypackages__/
113+
114+
# Celery stuff
115+
celerybeat-schedule
116+
celerybeat.pid
117+
118+
# SageMath parsed files
119+
*.sage.py
120+
121+
# Environments
122+
.env
123+
.venv
124+
env/
125+
venv/
126+
ENV/
127+
env.bak/
128+
venv.bak/
129+
130+
# Spyder project settings
131+
.spyderproject
132+
.spyproject
133+
134+
# Rope project settings
135+
.ropeproject
136+
137+
# mkdocs documentation
138+
/site
139+
140+
# mypy
141+
.mypy_cache/
142+
.dmypy.json
143+
dmypy.json
144+
145+
# Pyre type checker
146+
.pyre/
147+
148+
# pytype static type analyzer
149+
.pytype/
150+
151+
# Cython debug symbols
152+
cython_debug/
153+
154+
# PyCharm
155+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
156+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
157+
# and can be added to the global gitignore or merged into this file. For a more nuclear
158+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
159+
.idea/
160+
161+
# vscode
162+
.vscode/
163+
# Windsurf
164+
.windsurf
165+
166+
# python package
167+
uv.lock
168+
169+
# VitePress related files (security concern - keep Markdown docs in repo)
170+
docs/package.json
171+
docs/package-lock.json
172+
docs/node_modules/
173+
174+
# local test files
175+
test-agents/*
176+
tos_doc_example
177+
agentkit*.yaml
178+
Dockerfile
179+
Dockerfile-base
180+
local_build.py
181+
local_docs/
182+
local_test/
183+
184+
# deprecated files
185+
*deprecated*

.gitleaks.toml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
[extend]
2+
useDefault = true
3+
4+
[[rules]]
5+
id = "aklt-key-pattern"
6+
description = "AKLT key pattern"
7+
regex = '''AKLT\w{40,70}'''
8+
9+
[[rules]]
10+
id = "akap-key-pattern"
11+
description = "AKAP key pattern"
12+
regex = '''AKAP\w{40,70}'''
13+
14+
[[rules]]
15+
id = "akip-key-pattern"
16+
description = "AKIP key pattern"
17+
regex = '''AKI\w{40,70}'''
18+
19+
[[rules]]
20+
id = "token-transformer-id-pattern"
21+
description = "Tokenizer/Transformer/Token ID patterns"
22+
regex = '''(tokenizer|transformer|token_id|tokenid|attention_head).{0,20}'''
23+
24+
[[rules]]
25+
id = "aws-style-key-pattern"
26+
description = "AWS-style key pattern"
27+
regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}'''
28+
29+
[[rules]]
30+
id = "alibaba-ltai-pattern"
31+
description = "Alibaba LTAI key pattern"
32+
regex = '''(LTAI)[a-z0-9]{20}'''
33+
34+
[[rules]]
35+
id = "aktp-key-pattern"
36+
description = "AKTP key pattern"
37+
regex = '''AKTP\w{40,70}'''
38+
39+
[[rules]]
40+
id = "app-id-pattern"
41+
description = "App ID patterns"
42+
regex = '''([^*<\s|:>]{0,7})(app_id|appid)([^]()!<>;/@&,]{0,10}[(=:]\s{0,6}["']{0,1}[0-9]{6,32}["']{0,1})'''
43+
44+
[[rules]]
45+
id = "byted-org-domains"
46+
description = "byted.org domains"
47+
regex = '''.{0,15}\.?byted.org.{0,20}'''
48+
49+
[[rules]]
50+
id = "bytedance-net-domains"
51+
description = "bytedance.net domains"
52+
regex = '''.{0,15}\.?bytedance.net.{0,20}'''
53+
54+
[[rules]]
55+
id = "feishu-cn-domains"
56+
description = "bytedance.feishu.cn domains"
57+
regex = '''.{0,20}.bytedance\.feishu\.cn.{0,50}'''
58+
59+
[[rules]]
60+
id = "larkoffice-com-domains"
61+
description = "bytedance.larkoffice.com domains"
62+
regex = '''.{0,20}.bytedance\.larkoffice\.com.{0,50}'''
63+
64+
[[rules]]
65+
id = "private-ip-10-range"
66+
description = "Private IP address pattern (10.x.x.x)"
67+
regex = '''(10\.\d{1,3}\.\d{1,3}\.\d{1,3})'''
68+
69+
70+
[[rules]]
71+
id = "empty-env-key-pattern"
72+
description = "Empty environment variables with KEY pattern"
73+
regex = '''os\.environ\[".*?KEY"\]\s*=\s*".+"'''
74+
75+
[allowlist]
76+
paths = ["requirements.txt"]

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.11.12
5+
hooks:
6+
# Run the linter.
7+
- id: ruff-check
8+
types_or: [ python, pyi ]
9+
args: [ --fix ]
10+
# Run the formatter.
11+
- id: ruff-format
12+
types_or: [ python, pyi ]
13+
- repo: https://github.com/gitleaks/gitleaks
14+
rev: v8.24.2
15+
hooks:
16+
- id: gitleaks

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

0 commit comments

Comments
 (0)