Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
855cfa9
2.x
e2tox Aug 20, 2021
97f0209
implement static interceptors
agentframework Aug 20, 2021
4f44610
copy @agent decorators to core
agentframework Aug 20, 2021
51c2f77
update
agentframework Aug 20, 2021
bd5c70c
add test
e2tox Aug 20, 2021
7710e76
add more tests
agentframework Aug 21, 2021
4caa288
v2.x update
agentframework Aug 21, 2021
47bdff8
add test
e2tox Aug 21, 2021
47f9a22
no static interceptor
e2tox Aug 21, 2021
19fedaf
no static interceptor
e2tox Aug 21, 2021
b68d1cd
make shorter interceptor chain
e2tox Aug 22, 2021
a8d705c
2.0 rc
agentframework Aug 23, 2021
9abf12a
setter
agentframework Aug 23, 2021
ced9adf
add test for interceptor sequence
e2tox Aug 23, 2021
ed20b99
add test for interceptor sequence
e2tox Aug 23, 2021
acdf168
add more tests
agentframework Aug 24, 2021
4e5cbbb
fix import
agentframework Aug 24, 2021
18237a6
add tests
e2tox Aug 24, 2021
435eb2f
code cleanup
e2tox Aug 24, 2021
4601e73
fix path
e2tox Aug 24, 2021
7948056
update readme (skipci)
e2tox Aug 24, 2021
f9087e9
add once
agentframework Oct 8, 2021
69e6e38
remove decorators
agentframework Oct 12, 2021
d72f29c
add test for type
agentframework Oct 12, 2021
18ba21b
add test for type
agentframework Oct 12, 2021
3012fb1
Merge remote-tracking branch 'origin/v2.x' into v2.x
agentframework Oct 12, 2021
7b94ba6
Merge branch 'v2.x' of github.com:agentframework/agentframework into …
agentframework Oct 12, 2021
1d73976
update path
agentframework Oct 13, 2021
94348a1
update
agentframework Oct 13, 2021
44b0412
fix error
agentframework Oct 13, 2021
171247c
fix reference
agentframework Oct 14, 2021
d34138d
update
agentframework Oct 14, 2021
c98f499
re-layout code
agentframework Oct 15, 2021
89971be
add build config
agentframework Oct 15, 2021
55ce506
use build config
agentframework Oct 15, 2021
3cce419
do not cache invocations
agentframework Oct 15, 2021
9b62b7e
cache class seq
agentframework Oct 15, 2021
5183080
rename internal variables
agentframework Oct 18, 2021
60cb2f4
improve getInterceptors() performance
agentframework Oct 18, 2021
e290711
add version of annotation
agentframework Oct 18, 2021
e51384c
add version to type info
agentframework Oct 19, 2021
18ae9cd
improve code
agentframework Oct 19, 2021
d251c67
add ownInterceptor
e2tox Oct 19, 2021
930e811
add version cache
e2tox Oct 19, 2021
7079661
add version cache
e2tox Oct 19, 2021
e568759
add cache
e2tox Oct 19, 2021
64c949f
add readonly map
e2tox Oct 20, 2021
fffd98f
interceptor only take effects in class with @agent class decorator
agentframework Oct 20, 2021
bb2a04c
allow modifying interceptor before create the class
agentframework Oct 20, 2021
3682958
fix tests
agentframework Oct 20, 2021
02b8735
add readonly map
e2tox Oct 20, 2021
802cb42
improve performance
agentframework Oct 21, 2021
951dbdb
fix a bug
agentframework Oct 21, 2021
5e01283
fix a silly bug
agentframework Oct 21, 2021
4f95e5b
update
agentframework Oct 21, 2021
559ffac
update
agentframework Oct 21, 2021
6421000
update
agentframework Oct 21, 2021
8055bec
add test case
agentframework Oct 21, 2021
4e32ba7
add version
e2tox Oct 22, 2021
3ad205e
add type annotation and type annotation version
agentframework Oct 22, 2021
7c4c3ee
add test case for unchanged properties
agentframework Oct 22, 2021
da8337e
improve performance
agentframework Oct 22, 2021
d4f9c12
improve performance a lot
agentframework Oct 22, 2021
b1b26ea
remove unnecessary compare
agentframework Oct 22, 2021
ab31f04
update SLOC
agentframework Oct 22, 2021
c1dddc8
improve performance a lot
e2tox Oct 22, 2021
b327e36
remove key from memberinfo
e2tox Oct 22, 2021
0ff5b90
update code
e2tox Oct 22, 2021
fecafb3
2.0
e2tox Oct 22, 2021
2e26206
type.version and constructor version
e2tox Oct 23, 2021
ccd9c9e
improve code
e2tox Oct 25, 2021
8ce27d5
add agent type
agentframework Oct 25, 2021
b15caaa
format code
agentframework Nov 8, 2021
2de2d64
allow @singleton, @transit, @inject decorate on variables (e.g. class…
agentframework Nov 8, 2021
7802c45
fix an issue
agentframework Nov 9, 2021
af6c644
add ts 4.4.4 and nodejs 17
e2tox Nov 9, 2021
2b5b88c
add ts 4.4.4 and node 17
e2tox Nov 9, 2021
b148c53
fwdev
agentframework Nov 9, 2021
6cee81d
Merge remote-tracking branch 'origin/main' into v2
agentframework Nov 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
matrix:
os: [macos-10.15]
# os: [macos-11, macos-10.15] # macos-11 become private preview
node: [16, 15, 14, 12, 10, 8]
ts: [4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
node: [17, 16, 15, 14, 12, 10, 8]
ts: [4.4.4, 4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
fail-fast: false
max-parallel: 6
name: ${{ matrix.os }}, Node.js ${{ matrix.node }}, TS ${{ matrix.ts }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
node: [16, 15, 14, 12, 10, 8]
ts: [4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
node: [17, 16, 15, 14, 12, 10, 8]
ts: [4.4.4, 4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
fail-fast: false
max-parallel: 6
name: ${{ matrix.os }}, Node.js ${{ matrix.node }}, TS ${{ matrix.ts }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, windows-2016]
node: [16, 15, 14, 12, 10, 8]
ts: [4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
os: [windows-2022, windows-2019]
node: [17, 16, 15, 14, 12, 10, 8]
ts: [4.4.4, 4.3.5, 4.2.4, 4.1.5, 4.0.5, 3.9.7, 3.8.3, 3.7.5, 3.6.5, 3.5.1, 3.4.5, 3.3.4000, 3.2.4, 3.1.6, 3.0.3]
fail-fast: false
max-parallel: 6
name: ${{ matrix.os }}, Node.js ${{ matrix.node }}, TS ${{ matrix.ts }}
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ node_js:
- '10'
- '12'
- '14'
- '15'
- '16'
- '17'

env:
- TS=typescript@3.0.3
Expand All @@ -28,6 +28,7 @@ env:
- TS=typescript@4.1.5
- TS=typescript@4.2.4
- TS=typescript@4.3.5
- TS=typescript@4.4.4

# NOTE: do not include @types/node to this project, because
# @types/node: interface IteratorResult<T> { };
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ An elegant & efficient TypeScript metaprogramming API to build <a target="_blank

| Date | Version | Status |
| ---------- | ------------------------------------------------------ | ----------- |
| 2021-11-02 | [2.0.0](doc/changelogs/CHANGELOG_2.0.x.md) | Stable |
| 2021-11-02 | [2.0.1](doc/changelogs/CHANGELOG_2.0.x.md) | Stable |
| 2019-02-27 | [1.0.0](doc/changelogs/CHANGELOG_1.0.x.md) | Maintenance |
| 2018-12-21 | [0.9.23](doc/changelogs/CHANGELOG_0.9.x.md) | EOL |
| 2017-06-30 | [0.5.12](doc/changelogs/CHANGELOG_0.5.x.md) | EOL |
Expand Down
6 changes: 6 additions & 0 deletions doc/changelogs/CHANGELOG_2.0.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Agent Framework 2.0.x ChangeLog

## 2021-11-02, Version 2.0.1

**Notable Changes**

- Fixed an issue when more than one version of agentframework used by a project

## 2021-11-02, Version 2.0.0

**Notable Changes**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentframework",
"version": "2.0.0",
"version": "2.0.1",
"sideEffects": false,
"engines": {
"node": ">=8",
Expand Down
2 changes: 1 addition & 1 deletion src/core/Core/Annotation/Knowledge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Knowledge extends WeakMap<Function | object, any> {
}
// mark the time
value[NOW] = Date.now();
alter(r, key, { value });
alter(r, key, value);
self.set(self, new Map());
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/Core/Helpers/alter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* @internal
*/
export function alter<T>(target: object | Function, key: string | symbol | number, value: T): T {
Reflect.defineProperty(target, key, value);
Reflect.defineProperty(target, key, { value });
return value;
}
3 changes: 3 additions & 0 deletions src/domain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ export { InMemorySubDomain } from './Domain/InMemorySubDomain';
* Design Pattern: Dependence Injection
*************************************/
export { singleton } from './Domain/Decorators/DependencyInjection/singleton';
export { SingletonAttribute } from './Domain/Decorators/DependencyInjection/SingletonAttribute';
export { transit } from './Domain/Decorators/DependencyInjection/transit';
export { TransitAttribute } from './Domain/Decorators/DependencyInjection/TransitAttribute';
export { inject } from './Domain/Decorators/DependencyInjection/inject';
export { InjectAttribute } from './Domain/Decorators/DependencyInjection/InjectAttribute';
export { agent } from './Domain/Decorators/agent';

/*************************************
Expand Down