93 Commits

Author SHA1 Message Date
Sunrisea 0a69ba2430 [ISSUE #15263] Refactor AgentSpec subscription to HTTP polling with 304, and add Skill subscription (#15264)
* feat(ai): refactor AgentSpec and Skill client to HTTP polling with 304

- Replace ConfigService push subscription with periodic HTTP polling on
  AgentSpec and Skill cache holders, using ETag/MD5 conditional query
  (304 Not Modified) to avoid full content transfers when unchanged
- Add server-side support for 304 conditional response on AgentSpec and
  Skill query endpoints (SkillClientController, AgentSpecClientController,
  query result + digest utils)
- Introduce SkillQueryResponse / AgentSpecQueryResponse on the client and
  corresponding query result types on the server
- Add NacosSkillEvent, AbstractNacosSkillListener, SkillChangedEvent,
  SkillListenerInvoker for skill listener notification on the client
- Fix double-event bug on initial subscribe: NacosAgentSpecCacheHolder
  and NacosSkillCacheHolder no longer publish event during initial
  subscribe; the first listener notification is delivered synchronously
  by NacosAiService to avoid racing with NotifyCenter async dispatch
- Update unit tests to reflect the new single-channel notification
  semantics on initial subscribe
- Add AgentSpecExample and SkillExample under example/ for end-to-end
  integration testing against a real Nacos server
- Update agentspec-spec and skill-spec (en + zh-cn) accordingly

* fix(ai): fix CI failures - spotless formatting and test compilation errors

- Fix spotless violations in AgentSpecExample.java and SkillExample.java (blank line indentation)
- Fix SkillClientControllerTest to use SkillClientOperationService (matches controller constructor)
- Add missing updateStorageMd5 override in AgentSpecTypeIsolationTest and AgentSpecDeletionTest
- Refactor controllers to use result.isNotModified() instead of exception-based control flow
- Add notModified field to SkillQueryResult and AgentSpecQueryResult for clean 304 handling
2026-05-28 15:40:27 +08:00
cxhello f085e06392 [ISSUE #14815] build(style): apply Spotless formatting to small modules (#15111)
Modules: logger-adapter-impl, cmdb, address, prometheus, server, example, bootstrap

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
2026-05-09 18:02:12 +08:00
shiyiyue1102 b4d3b233e4 optimize fuzzy watch of config&naming. 2025-01-09 15:28:00 +08:00
阿魁 17bd04eae7 Config fuzzy watch support (#11856)
Nacos config supports fuzzy watch. by 670569467@qq.com
2024-12-27 10:21:15 +08:00
heihei180 15fbf92b15 modify the log file path. (#11794) 2024-03-07 13:50:32 +08:00
杨翊 SionYang fde996d2a6 Enhance nacos example (#11761)
* example stable.

* example stable.

* Update copyright
2024-02-22 14:58:57 +08:00
Wuzhengyu97 595f1d40fa [ISSUE #11094] Enhancements for example Module: Introduce README.md and Optimize Code. (#11116) 2023-09-25 15:35:53 +08:00
WangLiang/王良 a397c10a54 Optimize the nacos-client/pom.xml for exclude google/**/*.proto (#9982)
* Optimize the pom.xml of the nacos-client

* optimize pom

* exclude `google/**/*.proto`

* tab

* Remove dependency `io.grpc:protoc-gen-grpc-java:${version}:pom`

* revert indent

* revert native-image
2023-03-01 09:42:15 +08:00
gongzhongqiang 708387c277 fix:replace nacos website url to https. (#9797) 2023-01-10 09:47:52 +08:00
Karson f15b41be2d fix naming example running NPE. (#9131) 2022-09-15 10:41:33 +08:00
david6969xin 47b0150dc1 [ISSUE#8358] make this anonymous inner class a lambda (example module) (#8386) 2022-05-18 10:50:30 +08:00
brotherlu-xcq 3fcda2c9c1 update the example in Nacos 2.0 (#5924) 2021-06-03 09:49:10 +08:00
孙继峰 818d37b71c delete duplicated dependency (#5622) 2021-05-10 10:43:58 +08:00
brothelul d27c5a9260 Add the explain of running NamingExample (#5382)
* Add the explain of running NamingExample

* change the explain of running NamingExample
2021-04-19 09:32:21 +08:00
杨翊 SionYang 1bd67269cd Use revision to set version and upgrade to 1.4.2-SNAPSHOT (#4711)
* Use revision set version

* Use revision set version

* Add flatten plugin
2021-01-15 14:37:47 +08:00
杨翊 SionYang 67eb36976e Upgrade to 1.4.1 (#4695)
Java CI / Test JDK 8, ubuntu-18.04 (push) Has been cancelled
Java CI / Test JDK 8.0.192, ubuntu-18.04 (push) Has been cancelled
Java CI / Test JDK 11, ubuntu-18.04 (push) Has been cancelled
Java CI / Test JDK 11.0.9, ubuntu-18.04 (push) Has been cancelled
2021-01-14 11:36:57 +08:00
赵延 5c38d0b5b8 [ISSUE-#4115] Refactor client naming event handle logic (#4137)
* refactor and supply api to async handle instances change event

* add async handle way to callback event listener

* refactor EventListener, supply getExecutor to handle event async and compatible old version.

* remove unnecessary code

* ignore abstract class name check

* fix EmptyLineSeparator

* remove unuseful import

* compatible old client sdk, add abstractEventListener to support async handle naming event.

* remove unuseful import

* refactor InstanceChangeListener. decouple AbstractEventListener's executor and InstanceChangeListener's executor

* 1.remove key if listeners is empty.
2.fix getSubscribeServices

* revert notify center code

* code quality enhance

* upgrade @since 1.4.0 -> 1.4.1

* change combineListenKey to ServiceInfo.getKey

* just deregisterSubscriber when hostReactor shutdown

* not export getSubscribers()

* add this key word, and move code place.
2020-11-13 11:58:12 +08:00
杨翊 SionYang ccea6ee112 Upgrade to 1.4.1-SNAPSHOT (#4135) 2020-11-05 09:43:33 +08:00
KomachiSion adbcb7549d Upgrade to 1.4.0 2020-11-02 19:09:19 +08:00
杨翊 SionYang 0b73cfc769 Upgrade version to 1.4.0-SNAPSHOT (#3549) 2020-08-12 09:32:06 +08:00
杨翊 SionYang df4b006b36 Upgrade version to 1.3.2 (#3512) 2020-08-04 12:58:45 +08:00
杨翊 SionYang 7ddba00865 Upgrade 1.3.1 (#3294) 2020-07-10 18:05:07 +08:00
杨翊 SionYang 95f3bfb587 [ISSUE #2992]Recheck all checkstyle and open checkstyle during building (#3293)
* Re-check code style for nacos-config module.

* Re-check code style for other module.

* Open checkstyle plugin check during build
2020-07-10 17:18:53 +08:00
杨翊 SionYang 88480f7c0f Update to 1.3.1-BETA (#3194) 2020-06-29 13:56:16 +08:00
KomachiSion c859dfeb87 For #2873, unified copyrights for nacos-example. 2020-06-12 16:03:12 +08:00
lengleng 56eeb35ffc ♻️ Refactoring pom. com.alibaba.nacos to ${project.groupId} Uniform variable 2020-06-06 17:24:37 +08:00
water.lyl 7f541a9a67 update version to 1.3.0 2020-06-05 09:02:17 +08:00
Jack Dai 83e6451acc 统一修改子项目中的url为nacos官网地址 2020-06-01 18:35:20 +08:00
jintonghuoya 6aa395979a 回滚dependency和plugin的version无关的修改 2020-05-29 20:45:45 +08:00
Jack Dai 9692cd1b8c 合并和origin/develop的冲突 2020-05-29 19:01:48 +08:00
Jack Dai 27a257c84e 合并origin/develop的变更 2020-05-29 18:41:00 +08:00
Jack Dai 594eac42b3 整理每个module的plugin和dependency的版本号 2020-05-29 16:35:48 +08:00
chuntaojun afc74da826 build: update version to 1.3.0-BETA 2020-05-15 16:10:38 +08:00
water.lyl 54e251da39 release 1.3-beta 2020-05-11 23:06:23 +08:00
nkorange ea2a83c4be Update version to 1.2.1 2020-03-27 15:48:32 +08:00
nkorange 82d7147a58 Update version to 1.2.0 2020-03-03 16:24:08 +08:00
nkorange 31e6063209 Update version to 1.2.0-beta.1 2020-02-23 20:02:13 +08:00
nkorange 1d81a6588d Update version to 1.2.0-beta.0 2020-02-05 14:11:09 +08:00
nkorange 2781c6c84f Update version to 1.2.0-SNAPSHOT 2019-12-02 14:56:15 +08:00
nkorange 4d68565667 Update version to 1.1.4 2019-10-24 14:46:46 +08:00
nkorange 6ca2ee0cf8 Update version to 1.1.3 2019-08-06 18:55:05 +08:00
nkorange 15c913e346 Update version to 1.1.2 2019-08-06 17:10:37 +08:00
nkorange 11bd0ccd76 Update version to 1.1.2-SNAPSHOT 2019-08-02 12:35:04 +08:00
赵禹光 fb5a352ec6 fmt 2019-07-11 20:24:13 +08:00
nkorange 6c8b3ea88e Update version to 1.1.0 2019-07-05 21:59:55 +08:00
nkorange 49027b892d Update version to 1.1.0-SNAPSHOT 2019-07-04 15:01:49 +08:00
nkorange 3a8575e22f Update version to 1.0.2-SNAPSHOT 2019-06-28 17:34:59 +08:00
nkorange 4605733595 Update version to 1.0.2 2019-06-28 17:18:59 +08:00
nkorange a60bed8dee Update version to 1.0.1 2019-06-12 16:28:12 +08:00
nkorange a7f3cabf3c Update version to 1.0.1-SNAPSHOT 2019-06-11 17:04:36 +08:00