Skip to content

chore: merge ten_framework to ten_agent #714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6676078
chore: merge ten_framework to ten_agent
halajohn Apr 27, 2025
4ee9743
chore: merge ten_framework to ten_agent
halajohn Apr 27, 2025
3c0c3f1
chore: merge ten_framework to ten_agent
halajohn Apr 27, 2025
e4c9721
chore: merge ten_framework to ten_agent
halajohn Apr 27, 2025
8bf17bd
fix: refine codes
halajohn Apr 27, 2025
acd7968
fix: refine codes
halajohn Apr 27, 2025
c3e7526
fix: refine codes
halajohn Apr 27, 2025
32a5fd2
fix: refine codes
halajohn Apr 27, 2025
eee1328
fix: refine codes
halajohn Apr 27, 2025
817107e
fix: refine codes
halajohn Apr 27, 2025
43637b0
fix: refine codes
halajohn Apr 27, 2025
d71a189
fix: refine codes
halajohn Apr 27, 2025
cfef7fc
fix: refine codes
halajohn Apr 27, 2025
e08a8bd
fix: refine codes
halajohn Apr 27, 2025
d1fb697
fix: refine codes
halajohn Apr 27, 2025
bbbb5e5
fix: refine codes
halajohn Apr 27, 2025
92c0088
fix: refine codes
halajohn Apr 27, 2025
bbb0b58
fix: refine codes
halajohn Apr 27, 2025
e8b1b93
fix: refine codes
halajohn Apr 27, 2025
37712d6
fix: refine codes
halajohn Apr 27, 2025
f051831
fix: refine codes
halajohn Apr 27, 2025
1cb2193
fix: refine codes
halajohn Apr 27, 2025
1ee12e4
fix: refine codes
halajohn Apr 27, 2025
cb8e256
fix: refine codes
halajohn Apr 27, 2025
e992696
fix: refine codes
halajohn Apr 27, 2025
fb5a614
fix: refine codes
halajohn Apr 27, 2025
af09846
fix: refine codes
halajohn Apr 27, 2025
cc61f02
fix: refine codes
halajohn Apr 27, 2025
027696c
fix: refine codes
halajohn Apr 27, 2025
940ca04
fix: refine codes
halajohn Apr 27, 2025
457e8b8
fix: refine codes
halajohn Apr 27, 2025
86513d6
fix: refine codes
halajohn Apr 27, 2025
3eeabb7
fix: refine codes
halajohn Apr 27, 2025
a018d3a
fix: refine codes
halajohn Apr 27, 2025
6f436e6
fix: refine codes
halajohn Apr 27, 2025
366bc77
fix: refine codes
halajohn Apr 27, 2025
691666a
fix: refine codes
halajohn Apr 27, 2025
4405217
fix: refine codes
halajohn Apr 27, 2025
8596769
fix: refine codes
halajohn Apr 28, 2025
8b4a84c
fix: refine codes
halajohn Apr 28, 2025
c9c5f51
fix: refine codes
halajohn Apr 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
202 changes: 202 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
---
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: "^ IWYU pragma:"
QualifierAlignment: Leave
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: NextLine
BasedOnStyle: ""
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
ForEachMacros:
- ten_list_foreach
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '"ten_runtime/ten_config.h"'
Priority: -1
- Regex: '"ten_utils/ten_config.h"'
Priority: -1
- Regex: '"ten_rust/ten_config.h"'
Priority: -1
- Regex: '^<ext/.*\.h>'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: "^<.*"
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: ".*"
Priority: 3
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: "([-_](test|unittest))?$"
IncludeIsMainSourceRegex: ""
IndentAccessModifiers: false
IndentCaseLabels: false
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PenaltyIndentedWhitespace: 0
PointerAlignment: Right
PPIndentWidth: -1
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- "c++"
- "C++"
CanonicalDelimiter: ""
BasedOnStyle: google
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Auto
StatementMacros:
- PyObject_HEAD
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
---
Language: Proto
BasedOnStyle: Google
47 changes: 47 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
Checks: "*,
-altera-struct-pack-align,
-altera-unroll-loops,
-altera-id-dependent-backward-branch,
-bugprone-easily-swappable-parameters,
-bugprone-reserved-identifier,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-cert-dcl51-cpp,
-cert-dcl37-c,
-clang-analyzer-security.insecureAPI.strcpy,
-clang-analyzer-valist.Uninitialized,
-clang-diagnostic-empty-translation-unit,
-clang-diagnostic-gnu-statement-expression,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-type-vararg,hicpp-vararg,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-fuchsia-default-arguments-calls,
-fuchsia-default-arguments-declarations,
-hicpp-no-array-decay,
-hicpp-vararg,
-hicpp-signed-bitwise,
-llvm-header-guard,
-llvm-include-order,
-llvm-else-after-return,
-llvmlibc-callee-namespace,
-llvmlibc-implementation-in-namespace,
-llvmlibc-restrict-system-libc-headers,
-llvmlibc-inline-function-decl,
-misc-non-private-member-variables-in-classes,
-misc-no-recursion,
-modernize-use-trailing-return-type,
-modernize-use-using,
-modernize-use-nodiscard,
-modernize-type-traits,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-magic-numbers,
-readability-suspicious-call-argument"
9 changes: 9 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Diagnostics:
UnusedIncludes: Strict
# Refer to https://github.com/llvm/llvm-project/issues/109037#issuecomment-2359938252
ClangTidy:
Remove: boost-use-ranges
Includes:
IgnoreHeader: ten_config\.h
InlayHints:
Enabled: No
47 changes: 22 additions & 25 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "ten_agent_dev",
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"ms-vscode.cpptools"
]
}
},
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
"workspaceFolder": "/app",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
3000,
8080,
49483
],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/node:1": {}
"name": "ten_framework",
"image": "ghcr.io/ten-framework/ten_agent_build:0.6.1",
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"ms-vscode.cpptools"
]
}
},
"workspaceMount": "source=${localWorkspaceFolder},target=/ten_framework,type=bind",
"workspaceFolder": "/ten_framework",
"forwardPorts": [
3000,
8080,
49483,
49484
],
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/node:1": {}
}
}
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

9 changes: 5 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Shell scripts use LF as line separator, even checked out to Windows(NTFS) file-system
*.sh text eol=lf
agents/bin/* text eol=lf
agents/scripts/* text eol=lf
# Shell scripts use LF as line separator, even checked out to Windows(NTFS)
# file-system
*.sh text eol=lf
ai_agents/agents/bin/* text eol=lf
ai_agents/agents/scripts/* text eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Halajohn
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/designer_feedback_fe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Designer Feedback(FE)
description: Submit feedback, report issues, or request features
title: "[Feedback]: "
labels: ["tman designer"]
assignees:
- shczhen
body:
- type: markdown
attributes:
value: |
Thank you for taking time to provide feedback! Please fill out this form as detailed as possible.

- type: dropdown
id: feedback-type
attributes:
label: Feedback Type
description: What kind of feedback are you providing?
options:
- Bug Report
- Feature Request
- Improvement Suggestion
- Question
- Other
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: Please describe your feedback in detail
placeholder: Provide a clear and detailed explanation of your feedback...
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected Behavior
description: What did you expect to happen?
placeholder: Describe what you expected...

- type: textarea
id: current
attributes:
label: Current Behavior
description: What actually happened?
placeholder: Describe the current behavior...

- type: input
id: version
attributes:
label: Version
description: What version of the software are you using?
placeholder: e.g., v1.0.0

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this feedback, you agree to follow our Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct
required: true
3 changes: 3 additions & 0 deletions .github/configs/commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional'],
};
Loading
Loading