Skip to content

Commit c4045de

Browse files
authored
chore: merge ten_framework to ten_agent (#714)
1 parent 7b7c1e0 commit c4045de

File tree

27,193 files changed

+6489579
-12502
lines changed

Some content is hidden

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

27,193 files changed

+6489579
-12502
lines changed

.clang-format

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
---
2+
AccessModifierOffset: -1
3+
AlignAfterOpenBracket: Align
4+
AlignArrayOfStructures: None
5+
AlignConsecutiveMacros: None
6+
AlignConsecutiveAssignments: None
7+
AlignConsecutiveBitFields: None
8+
AlignConsecutiveDeclarations: None
9+
AlignEscapedNewlines: Left
10+
AlignOperands: Align
11+
AlignTrailingComments: true
12+
AllowAllArgumentsOnNextLine: true
13+
AllowAllParametersOfDeclarationOnNextLine: true
14+
AllowShortEnumsOnASingleLine: true
15+
AllowShortBlocksOnASingleLine: Never
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortFunctionsOnASingleLine: All
18+
AllowShortLambdasOnASingleLine: All
19+
AllowShortIfStatementsOnASingleLine: WithoutElse
20+
AllowShortLoopsOnASingleLine: true
21+
AlwaysBreakAfterDefinitionReturnType: None
22+
AlwaysBreakAfterReturnType: None
23+
AlwaysBreakBeforeMultilineStrings: true
24+
AlwaysBreakTemplateDeclarations: Yes
25+
BinPackArguments: true
26+
BinPackParameters: true
27+
BraceWrapping:
28+
AfterCaseLabel: false
29+
AfterClass: false
30+
AfterControlStatement: Never
31+
AfterEnum: false
32+
AfterFunction: false
33+
AfterNamespace: false
34+
AfterObjCDeclaration: false
35+
AfterStruct: false
36+
AfterUnion: false
37+
AfterExternBlock: false
38+
BeforeCatch: false
39+
BeforeElse: false
40+
BeforeLambdaBody: false
41+
BeforeWhile: false
42+
IndentBraces: false
43+
SplitEmptyFunction: true
44+
SplitEmptyRecord: true
45+
SplitEmptyNamespace: true
46+
BreakBeforeBinaryOperators: None
47+
BreakBeforeConceptDeclarations: true
48+
BreakBeforeBraces: Attach
49+
BreakBeforeInheritanceComma: false
50+
BreakInheritanceList: BeforeColon
51+
BreakBeforeTernaryOperators: true
52+
BreakConstructorInitializersBeforeComma: false
53+
BreakConstructorInitializers: BeforeColon
54+
BreakAfterJavaFieldAnnotations: false
55+
BreakStringLiterals: true
56+
ColumnLimit: 80
57+
CommentPragmas: "^ IWYU pragma:"
58+
QualifierAlignment: Leave
59+
CompactNamespaces: false
60+
ConstructorInitializerIndentWidth: 4
61+
ContinuationIndentWidth: 4
62+
Cpp11BracedListStyle: true
63+
DeriveLineEnding: true
64+
DerivePointerAlignment: false
65+
DisableFormat: false
66+
EmptyLineAfterAccessModifier: Never
67+
EmptyLineBeforeAccessModifier: LogicalBlock
68+
ExperimentalAutoDetectBinPacking: false
69+
PackConstructorInitializers: NextLine
70+
BasedOnStyle: ""
71+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
72+
AllowAllConstructorInitializersOnNextLine: true
73+
FixNamespaceComments: true
74+
ForEachMacros:
75+
- ten_list_foreach
76+
IncludeBlocks: Regroup
77+
IncludeCategories:
78+
- Regex: '"ten_runtime/ten_config.h"'
79+
Priority: -1
80+
- Regex: '"ten_utils/ten_config.h"'
81+
Priority: -1
82+
- Regex: '"ten_rust/ten_config.h"'
83+
Priority: -1
84+
- Regex: '^<ext/.*\.h>'
85+
Priority: 2
86+
SortPriority: 0
87+
CaseSensitive: false
88+
- Regex: '^<.*\.h>'
89+
Priority: 1
90+
SortPriority: 0
91+
CaseSensitive: false
92+
- Regex: "^<.*"
93+
Priority: 2
94+
SortPriority: 0
95+
CaseSensitive: false
96+
- Regex: ".*"
97+
Priority: 3
98+
SortPriority: 0
99+
CaseSensitive: false
100+
IncludeIsMainRegex: "([-_](test|unittest))?$"
101+
IncludeIsMainSourceRegex: ""
102+
IndentAccessModifiers: false
103+
IndentCaseLabels: false
104+
IndentCaseBlocks: false
105+
IndentGotoLabels: true
106+
IndentPPDirectives: None
107+
IndentExternBlock: AfterExternBlock
108+
IndentRequires: false
109+
IndentWidth: 2
110+
IndentWrappedFunctionNames: false
111+
InsertTrailingCommas: None
112+
JavaScriptQuotes: Leave
113+
JavaScriptWrapImports: true
114+
KeepEmptyLinesAtTheStartOfBlocks: false
115+
LambdaBodyIndentation: Signature
116+
MacroBlockBegin: ""
117+
MacroBlockEnd: ""
118+
MaxEmptyLinesToKeep: 1
119+
NamespaceIndentation: None
120+
ObjCBinPackProtocolList: Never
121+
ObjCBlockIndentWidth: 2
122+
ObjCBreakBeforeNestedBlockParam: true
123+
ObjCSpaceAfterProperty: false
124+
ObjCSpaceBeforeProtocolList: true
125+
PenaltyBreakAssignment: 2
126+
PenaltyBreakBeforeFirstCallParameter: 1
127+
PenaltyBreakComment: 300
128+
PenaltyBreakFirstLessLess: 120
129+
PenaltyBreakOpenParenthesis: 0
130+
PenaltyBreakString: 1000
131+
PenaltyBreakTemplateDeclaration: 10
132+
PenaltyExcessCharacter: 1000000
133+
PenaltyReturnTypeOnItsOwnLine: 200
134+
PenaltyIndentedWhitespace: 0
135+
PointerAlignment: Right
136+
PPIndentWidth: -1
137+
RawStringFormats:
138+
- Language: Cpp
139+
Delimiters:
140+
- cc
141+
- CC
142+
- cpp
143+
- Cpp
144+
- CPP
145+
- "c++"
146+
- "C++"
147+
CanonicalDelimiter: ""
148+
BasedOnStyle: google
149+
ReferenceAlignment: Pointer
150+
ReflowComments: true
151+
RemoveBracesLLVM: false
152+
SeparateDefinitionBlocks: Leave
153+
ShortNamespaceLines: 1
154+
SortIncludes: CaseSensitive
155+
SortUsingDeclarations: true
156+
SpaceAfterCStyleCast: false
157+
SpaceAfterLogicalNot: false
158+
SpaceAfterTemplateKeyword: true
159+
SpaceBeforeAssignmentOperators: true
160+
SpaceBeforeCaseColon: false
161+
SpaceBeforeCpp11BracedList: false
162+
SpaceBeforeCtorInitializerColon: true
163+
SpaceBeforeInheritanceColon: true
164+
SpaceBeforeParens: ControlStatements
165+
SpaceBeforeParensOptions:
166+
AfterControlStatements: true
167+
AfterForeachMacros: true
168+
AfterFunctionDefinitionName: false
169+
AfterFunctionDeclarationName: false
170+
AfterIfMacros: true
171+
AfterOverloadedOperator: false
172+
BeforeNonEmptyParentheses: false
173+
SpaceAroundPointerQualifiers: Default
174+
SpaceBeforeRangeBasedForLoopColon: true
175+
SpaceInEmptyBlock: false
176+
SpaceInEmptyParentheses: false
177+
SpacesBeforeTrailingComments: 2
178+
SpacesInAngles: Never
179+
SpacesInConditionalStatement: false
180+
SpacesInContainerLiterals: true
181+
SpacesInCStyleCastParentheses: false
182+
SpacesInLineCommentPrefix:
183+
Minimum: 1
184+
Maximum: -1
185+
SpacesInParentheses: false
186+
SpacesInSquareBrackets: false
187+
SpaceBeforeSquareBrackets: false
188+
BitFieldColonSpacing: Both
189+
Standard: Auto
190+
StatementMacros:
191+
- PyObject_HEAD
192+
TabWidth: 8
193+
UseCRLF: false
194+
UseTab: Never
195+
WhitespaceSensitiveMacros:
196+
- STRINGIZE
197+
- PP_STRINGIZE
198+
- NS_SWIFT_NAME
199+
- CF_SWIFT_NAME
200+
---
201+
Language: Proto
202+
BasedOnStyle: Google

.clang-tidy

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
Checks: "*,
3+
-altera-struct-pack-align,
4+
-altera-unroll-loops,
5+
-altera-id-dependent-backward-branch,
6+
-bugprone-easily-swappable-parameters,
7+
-bugprone-reserved-identifier,
8+
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
9+
-cert-dcl51-cpp,
10+
-cert-dcl37-c,
11+
-clang-analyzer-security.insecureAPI.strcpy,
12+
-clang-analyzer-valist.Uninitialized,
13+
-clang-diagnostic-empty-translation-unit,
14+
-clang-diagnostic-gnu-statement-expression,
15+
-cppcoreguidelines-avoid-do-while,
16+
-cppcoreguidelines-avoid-magic-numbers,
17+
-cppcoreguidelines-avoid-non-const-global-variables,
18+
-cppcoreguidelines-macro-usage,
19+
-cppcoreguidelines-owning-memory,
20+
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
21+
-cppcoreguidelines-pro-type-vararg,hicpp-vararg,
22+
-cppcoreguidelines-pro-type-reinterpret-cast,
23+
-cppcoreguidelines-pro-type-union-access,
24+
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
25+
-fuchsia-default-arguments-calls,
26+
-fuchsia-default-arguments-declarations,
27+
-hicpp-no-array-decay,
28+
-hicpp-vararg,
29+
-hicpp-signed-bitwise,
30+
-llvm-header-guard,
31+
-llvm-include-order,
32+
-llvm-else-after-return,
33+
-llvmlibc-callee-namespace,
34+
-llvmlibc-implementation-in-namespace,
35+
-llvmlibc-restrict-system-libc-headers,
36+
-llvmlibc-inline-function-decl,
37+
-misc-non-private-member-variables-in-classes,
38+
-misc-no-recursion,
39+
-modernize-use-trailing-return-type,
40+
-modernize-use-using,
41+
-modernize-use-nodiscard,
42+
-modernize-type-traits,
43+
-readability-else-after-return,
44+
-readability-function-cognitive-complexity,
45+
-readability-identifier-length,
46+
-readability-magic-numbers,
47+
-readability-suspicious-call-argument"

.clangd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Diagnostics:
2+
UnusedIncludes: Strict
3+
# Refer to https://github.com/llvm/llvm-project/issues/109037#issuecomment-2359938252
4+
ClangTidy:
5+
Remove: boost-use-ranges
6+
Includes:
7+
IgnoreHeader: ten_config\.h
8+
InlayHints:
9+
Enabled: No

.devcontainer/devcontainer.json

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
31
{
4-
"name": "ten_agent_dev",
5-
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
6-
"customizations": {
7-
"vscode": {
8-
"extensions": [
9-
"golang.go",
10-
"ms-vscode.cpptools"
11-
]
12-
}
13-
},
14-
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
15-
"workspaceFolder": "/app",
16-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17-
"forwardPorts": [
18-
3000,
19-
8080,
20-
49483
21-
],
22-
// Features to add to the dev container. More info: https://containers.dev/features.
23-
"features": {
24-
"ghcr.io/devcontainers/features/git:1": {},
25-
"ghcr.io/devcontainers/features/python:1": {},
26-
"ghcr.io/devcontainers/features/node:1": {}
2+
"name": "ten_framework",
3+
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"golang.go",
8+
"ms-vscode.cpptools"
9+
]
2710
}
11+
},
12+
"workspaceMount": "source=${localWorkspaceFolder},target=/ten_framework,type=bind",
13+
"workspaceFolder": "/ten_framework",
14+
"forwardPorts": [
15+
3000,
16+
8080,
17+
49483,
18+
49484
19+
],
20+
"features": {
21+
"ghcr.io/devcontainers/features/git:1": {},
22+
"ghcr.io/devcontainers/features/python:1": {},
23+
"ghcr.io/devcontainers/features/node:1": {}
24+
}
2825
}

.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Shell scripts use LF as line separator, even checked out to Windows(NTFS) file-system
2-
*.sh text eol=lf
3-
agents/bin/* text eol=lf
4-
agents/scripts/* text eol=lf
1+
# Shell scripts use LF as line separator, even checked out to Windows(NTFS)
2+
# file-system
3+
*.sh text eol=lf
4+
ai_agents/agents/bin/* text eol=lf
5+
ai_agents/agents/scripts/* text eol=lf

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Halajohn
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Designer Feedback(FE)
2+
description: Submit feedback, report issues, or request features
3+
title: "[Feedback]: "
4+
labels: ["tman designer"]
5+
assignees:
6+
- shczhen
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thank you for taking time to provide feedback! Please fill out this form as detailed as possible.
12+
13+
- type: dropdown
14+
id: feedback-type
15+
attributes:
16+
label: Feedback Type
17+
description: What kind of feedback are you providing?
18+
options:
19+
- Bug Report
20+
- Feature Request
21+
- Improvement Suggestion
22+
- Question
23+
- Other
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: description
29+
attributes:
30+
label: Description
31+
description: Please describe your feedback in detail
32+
placeholder: Provide a clear and detailed explanation of your feedback...
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
id: expected
38+
attributes:
39+
label: Expected Behavior
40+
description: What did you expect to happen?
41+
placeholder: Describe what you expected...
42+
43+
- type: textarea
44+
id: current
45+
attributes:
46+
label: Current Behavior
47+
description: What actually happened?
48+
placeholder: Describe the current behavior...
49+
50+
- type: input
51+
id: version
52+
attributes:
53+
label: Version
54+
description: What version of the software are you using?
55+
placeholder: e.g., v1.0.0
56+
57+
- type: checkboxes
58+
id: terms
59+
attributes:
60+
label: Code of Conduct
61+
description: By submitting this feedback, you agree to follow our Code of Conduct
62+
options:
63+
- label: I agree to follow this project's Code of Conduct
64+
required: true

.github/configs/commitlint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
};

0 commit comments

Comments
 (0)