slhaf
73ab40416d
refactor(Project): rename Partner-Api/Partner-Main modules to Partner-Framework/Partner-Core and update Maven dependencies
2026-02-19 10:39:21 +08:00
slhaf
1244d59fa4
chore(ActionScheduler): remove todos
2026-02-18 15:22:02 +08:00
slhaf
11ea1045f4
refactor(Action): generalize ActionScheduler to Schedulable and add StateAction trigger execution path
2026-02-18 15:20:52 +08:00
slhaf
a1bc784da5
refactor(Action): rename Scheduled interfaces/classes to Schedulable
2026-02-15 23:09:35 +08:00
slhaf
747d3e47d6
refactor(Action): add StateAction with scheduled trigger support for state updates/callbacks
2026-02-15 21:27:11 +08:00
slhaf
5f0165fa3a
refactor(Action): split ActionData into Action/ExecutableAction and unify scheduled action types
2026-02-15 21:26:17 +08:00
slhaf
2b0682b9e0
chore(Action): remove todo in ActionData
...
Context:
SYNC is like the normal reAct execution, the thread based execution model with necessary notification can cover the demands entirely
2026-02-14 12:02:03 +08:00
slhaf
16a92de377
chore(Action): add TODO notes for trigger type design and executor write-back flow
2026-02-13 21:27:23 +08:00
slhaf
cbba183b60
docs(README): formatted
2026-02-10 13:52:14 +08:00
slhaf
8e642b07d9
docs(README): expand Action system section with architecture and execution flow details
2026-02-10 13:50:31 +08:00
slhaf
66d8a95c73
docs(README): clean up section formatting and update content
2026-02-10 13:26:31 +08:00
slhaf
0850f8403d
docs(README): rewrite project description and adjust planning items
2026-02-10 13:17:30 +08:00
slhaf
24c29a6dc6
chore(resource): remove legacy Partner prompt and module config in resources, which will be provided in config dir or other ways
2026-02-10 13:17:05 +08:00
slhaf
f703cc8157
refactor(vector): make embedding URL and model fields final
2026-02-10 13:05:09 +08:00
slhaf
d52f48f132
fix(AgentConfigManager): set default INSTANCE to null instead of FileAgentConfigManager, which will be set in ConfigLoaderFactory or AgentApp
2026-02-10 13:03:58 +08:00
slhaf
f6afe21b43
Merge branch 'feature/ActionModule'
...
# Conflicts:
# .gitignore
2026-02-09 21:22:26 +08:00
slhaf
d381a97731
refactor(ActionScheduler): add debug log for hour-change trigger scan
2026-02-09 21:12:38 +08:00
slhaf
940beb2587
test(ActionScheduler): add test
2026-02-09 21:05:08 +08:00
slhaf
69d9f04f11
fix(ActionScheduler): stabilize wheel tick pacing and run trigger scan before hour/day refresh
2026-02-09 21:04:48 +08:00
slhaf
e2bd9eb0af
fix(ActionScheduler): enqueue same-hour actions in wheel and add scheduling debug logs
2026-02-09 21:19:40 +08:00
slhaf
9ec03c4c95
fix(ActionScheduler): include previous tick in trigger scan and tighten next execution filtering
2026-02-09 21:01:22 +08:00
slhaf
ecbbbc9954
refactor(ActionScheduler): include tick in wheel stop debug log
2026-02-09 20:56:45 +08:00
slhaf
a5d26769e8
fix(ActionScheduler): skip trigger callback when tick has no actions
2026-02-09 20:54:35 +08:00
slhaf
2db1bdf3e9
refactor(ActionScheduler): add debug log for action execution
2026-02-09 20:50:36 +08:00
slhaf
656d6b65e3
refactor(ActionScheduler): add debug logs for wheel start/stop, wait window, and action loading
2026-02-09 20:41:01 +08:00
slhaf
7c46f1d1ff
fix(ActionScheduler): remove triggered hour actions by uuid to avoid removeAll mismatch
2026-02-09 20:03:24 +08:00
slhaf
406b4250aa
refactor(ActionScheduler): correct actions loading logic in hour/day updating
2026-02-09 20:03:10 +08:00
slhaf
eab3d00fe8
refactor(ActionScheduler): remove useless delay in TimeWheel#wheel
2026-02-09 20:02:26 +08:00
slhaf
d47e9fbf95
fix(ActionScheduler): initialize wheel tick baseline before launch to avoid check-to-wheel startup drift
2026-02-09 17:29:32 +08:00
slhaf
4b77f26e7b
refactor(ActionScheduler): capture current hour once and reuse it for
...
day/hour rollover checks
2026-02-09 16:37:46 +08:00
slhaf
650f9b27a1
fix(ActionScheduler): use checkThenExecute current hour consistently and trigger wheel tasks outside lock
2026-02-09 15:56:12 +08:00
slhaf
9f479c5f6f
fix(ActionScheduler): unify time check/loading under checkThenExecute and guard wheel loop with launch-hour consistency
2026-02-09 14:57:13 +08:00
slhaf
227c735667
fix(ActionScheduler): make TimeWheel load scheduled actions dynamically instead of using init snapshot
2026-02-09 00:13:36 +08:00
slhaf
b05b665960
fix(ActionScheduler): reload day/hour action buckets on time changes via checkTimeAndLoad, and reorganize functions
2026-02-09 00:03:21 +08:00
slhaf
882ec43f2b
fix(ActionScheduler): make scheduling thread-safe with Mutex and cancel scheduler/time wheel scopes on shutdown
2026-02-08 23:07:03 +08:00
slhaf
7cb565fd1b
fix(ActionScheduler): use withTimeoutOrNull when waiting for ACTIVE state, to avoid exception leading to wheel stopped
2026-02-08 21:56:35 +08:00
slhaf
84b96b6645
test(ActionScheduler): remove unused actionExecutor mock
2026-02-08 21:52:16 +08:00
slhaf
2169376062
test(ActionScheduler): add unit test for ActionScheduler
2026-02-08 21:51:57 +08:00
slhaf
9bff74c8c7
fix(ActionScheduler): remove second offset when loading hour actions
2026-02-08 21:51:30 +08:00
slhaf
76c9c27532
refactor(MetaAction): make result a read-only property
2026-02-08 17:22:47 +08:00
slhaf
8524ca6f9f
refactor(ActionData): use action.result.reset() when clearing action chain state
2026-02-08 17:22:10 +08:00
slhaf
7dd2104689
refactor(MetaAction): migrate to Kotlin data class, merge MetaActionType/ResultStatus into nested enums, and update runner/action usages
2026-02-08 17:15:58 +08:00
slhaf
6ba5784a7f
将 .java 重命名为 .kt
2026-02-08 17:15:58 +08:00
slhaf
cdea8d6322
refactor(ActionData): migrate to Kotlin sealed class and data classes, update planner/scheduler usage
2026-02-08 16:27:44 +08:00
slhaf
8ca2b9998d
将 .java 重命名为 .kt
2026-02-08 16:27:44 +08:00
slhaf
d098b28f31
refactor(ActionExecutorInput): migrate to Kotlin data class
2026-02-08 15:12:10 +08:00
slhaf
98e4d4cf1b
将 .java 重命名为 .kt
2026-02-08 15:12:10 +08:00
slhaf
70489e57f7
chore(pom): add kotlinx-coroutines-test dependency
2026-02-08 14:34:19 +08:00
slhaf
a43c87006e
refactor(ActionCore): replace existing action with same UUID before putAction
2026-02-08 13:29:18 +08:00
slhaf
be43b7eec6
refactor(ActionScheduler): implement Kotlin time-wheel scheduling and requeue scheduled actions after execution
2026-02-08 13:24:56 +08:00
slhaf
3bc2ce839a
将 .java 重命名为 .kt
2026-02-08 13:24:56 +08:00
slhaf
fe5a366527
refactor(ActionExecutor): remove userId from ActionExecutorInput and use source
2026-02-08 11:29:36 +08:00
slhaf
9f724cee5d
chore(pom): remove test scope from coroutines dependency
2026-02-08 11:22:47 +08:00
slhaf
ad58b83020
refactor(ActionExecutor): rename actions variable for clarity
2026-02-08 11:22:30 +08:00
slhaf
c9b64fec2a
chore(pom): add cron-utils dependency
2026-02-07 15:36:45 +08:00
slhaf
0eb4765235
refactor(ActionExecutor): use HistoryAction record and track scheduled history reset
2026-02-07 15:35:34 +08:00
slhaf
050c39cbc7
refactor(ActionExecutor): correct input actions' type in ActionExecutor
2026-02-06 23:38:13 +08:00
slhaf
08100aea8a
refactor(ActionCore): replace prepared action APIs with generic list/put
2026-02-06 21:38:54 +08:00
slhaf
2cd0774834
refactor(ActionCapability): rename listAvailableActions to listAvailableMetaActions
2026-02-06 21:05:10 +08:00
slhaf
12df938d85
refactor(ActionCore): simplify handleInterventions to use ActionData
2026-02-06 20:41:08 +08:00
slhaf
277c0d437f
chore(ActionCore): update comment
2026-02-06 20:36:50 +08:00
slhaf
6b861f4b77
fix(ActionExecutor): correct logic in ActionExecutor when actionChain is empty, which will skip execution
2026-02-05 20:40:02 +08:00
slhaf
d33b6617c1
fix(ActionExecutor): support removing phaserRecord correctly when exception occurred in ActionCorrector
2026-02-05 19:40:28 +08:00
slhaf
a1dcf4a6fa
test(ActionExecutor): test with action failure
2026-02-05 17:05:53 +08:00
slhaf
9c38719514
test(ActionExecutor): test with additionalContext appending
2026-02-05 16:58:22 +08:00
slhaf
33df0fa017
test(ActionExecutor): test with virtual thread pool support
2026-02-05 16:53:38 +08:00
slhaf
08bda84471
refactor(ActionCore): Specifies the minimum platform thread pool size
...
Context:
The ActionExecutor needs at least 2 platform thread to support async action execution,
otherwise the current ActionExecutor logic cannot be executed
2026-02-05 16:49:58 +08:00
slhaf
76da3c29f8
fix(ActionExecutorTest): repair stub in test
2026-02-05 16:13:21 +08:00
slhaf
558b589830
refactor(ActionInterventor): redefine DTOs in ActionInterventor to adapt the actual intervention logic
2026-02-05 15:48:58 +08:00
slhaf
80d7c283c5
refactor(ActionExecutor): update ActionChain execution, support executing and advancing correctly
2026-02-04 00:29:42 +08:00
slhaf
b0bb40c5f0
test(ActionExecutor): add unit test for ActionExecutor
2026-02-01 19:49:21 +08:00
slhaf
eec8f71096
fix(action): correct return type of method runnerClient() in ActionCapability
2026-02-01 16:43:12 +08:00
slhaf
fbd30d1a96
build(maven): import Mockito related dependencies
2026-02-01 14:56:47 +08:00
slhaf
346f925b66
chore(ActionExecutor): update comment
2026-01-31 23:35:17 +08:00
slhaf
04e8d9e531
feat(ActionExecutor): support executing interventions in ActionExecutor
2026-01-30 20:58:12 +08:00
slhaf
63d1552de2
refactor(ActionInterventor): remove InterventionHandler and related data class
...
Context:
Since last commit, the logic of interventions has been moved into ActionCapability,
the InterventionHandler is not needed.
2026-01-30 20:52:36 +08:00
slhaf
77eb9b92a4
refactor(ActionCorrector): move intervention logic from InterventionHandler into ActionCapability
2026-01-30 20:10:01 +08:00
slhaf
a1b4743eeb
feat(ActionCorrector): complete corrector's executing logic
2026-01-30 19:19:48 +08:00
slhaf
0768cddd2d
fix(ActivateModel): correct modelSettings
2026-01-30 16:50:45 +08:00
slhaf
75145cc547
chore(ActionRepairer): correct name of AssemblyHelper
2026-01-30 16:30:10 +08:00
slhaf
d1ca1cda7d
feature(ActionExecutor): complete CorrectorInput
2026-01-28 23:11:45 +08:00
slhaf
fac6609d6b
refactor(ActionExecutor): remove useless method getHistoryActionResults
2026-01-28 23:00:53 +08:00
slhaf
dce8825e58
refactor(ActionExecutor): update type of history field in ActionData
2026-01-28 21:16:51 +08:00
slhaf
cd641ac8dd
fix(ActionExecutor): correct phaser block logic in method execute
2026-01-28 15:38:13 +08:00
slhaf
5ffdab9e4a
refactor(ActionExecutor): rework staged execution and runner submit
...
Context:
This refactor drops unnecessary method abstractions and cleans the action execution flow.
Additionally, method 'run' is renamed to 'submit' in RunnerClient, which better reflects that execution results are held in MetaAction.
2026-01-25 19:38:53 +08:00
slhaf
830503eee4
chore(ActionExecutor): update comments
2026-01-23 19:23:07 +08:00
slhaf
96e74ec877
test(LocalRunnerClient): add test for method run in RunnerClient
2026-01-17 11:28:21 +08:00
slhaf
420d51af15
fix(LocalRunnerClient): harden doRun branches and add tests
2026-01-16 23:28:46 +08:00
slhaf
8ead306b7b
fix(RunnerClient): correct RunnerResponse's visibility
2026-01-16 22:17:15 +08:00
slhaf
c793851107
fix(LocalRunnerClient): support cleaning non-existing MCP Servers' tools while MCP configuration files changed in CommonMcp
2026-01-16 21:48:17 +08:00
slhaf
fb5cabc747
fix(LocalRunnerClient): support read MetaActionInfo according to desc files when an MCP Client with described tools registered by CommonMcp
2026-01-16 21:28:45 +08:00
slhaf
c5f6c4e0ae
fix(LocalRunnerClient): recover desc watcher after root deletion and expand DescMcp tests
2026-01-14 19:57:24 +08:00
slhaf
200c0f3f13
fix(LocalRunnerClient): guard against null tool meta and ignore non-protocol MCP
2026-01-14 16:10:33 +08:00
slhaf
fdf398b86e
fix(LocalRunnerClient): close old MCP client while a new client's name is duplicated with the old one
2026-01-13 23:22:54 +08:00
slhaf
774e2b6cd5
fix(LocalRunnerClient): correct abnormal deleting condition in CommonMcp
2026-01-13 23:13:52 +08:00
slhaf
837a4c92d1
fix(LocalRunnerClient): treat missing action dir as invalid path during DELETE in DynamicMcp
...
Context:
Action directories may already be removed when DELETE events are handled.
Return null from loadFiles to signal invalid paths and lock behavior with DynamicAction watch tests.
2026-01-12 21:46:34 +08:00
slhaf
ddd999d47b
fix(LocalRunnerClient): prevent WatchService event loss caused by concurrent consumers
...
Context:
Shared WatchService with multiple watch threads caused WatchKey events to be consumed by mismatched processors, leading to missed file events.
Use isolated WatchService per WatchContext to restore correct semantics.
2026-01-12 19:46:45 +08:00
slhaf
9694a022c7
chore(gitignore): update gitignore
2026-01-12 19:35:41 +08:00
slhaf
31968c7076
chore(gitignore): create AGENTS.md for codex, and add it to .gitignore
2026-01-12 14:25:20 +08:00
slhaf
abec141e4e
fix(LocalRunnerClient): correct path creating logic in RunnerClient and its implementations
2026-01-11 16:47:14 +08:00