refactor(core): align with cordis spatiotemporal composability architecture

- Purify core micro-kernel by removing context hardcoded helpers and reverse dependencies
- Eliminate init() side effects in infra plugins with reversible lifecycle disposal
- Completely isolate plugins by removing cross-plugin imports and using core/contracts
- Introduce TaskService and RiskControlService contracts for unified cross-plugin APIs
- Regenerate Swagger documentation and update developer guide matrix
- Achieve 0 violations in check_cordis_architecture.sh and 100% test pass
This commit is contained in:
ryan
2026-08-28 15:05:31 +08:00
parent fc7fae7b0e
commit 299ac30ee4
150 changed files with 4328 additions and 2923 deletions
+61 -48
View File
@@ -454,6 +454,8 @@ definitions:
type: string
status:
type: integer
trace_id:
type: string
user_agent:
type: string
user_id:
@@ -675,7 +677,42 @@ definitions:
- solutions
- token
type: object
diskcache.Status:
contracts.TaskMetaDTO:
properties:
category:
type: string
description:
type: string
display_name:
type: string
max_retry:
type: integer
name:
type: string
params:
items:
$ref: '#/definitions/contracts.TaskParamDTO'
type: array
queue:
type: string
schedule:
type: string
timeout:
$ref: '#/definitions/time.Duration'
type: object
contracts.TaskParamDTO:
properties:
default: {}
description:
type: string
name:
type: string
required:
type: boolean
type:
type: string
type: object
disk.Status:
properties:
base_path:
type: string
@@ -690,51 +727,6 @@ definitions:
ttl_minutes:
type: integer
type: object
driver_asynq_worker.TaskMeta:
properties:
asynq_task:
type: string
description:
type: string
max_retry:
type: integer
name:
type: string
params:
items:
$ref: '#/definitions/driver_asynq_worker.TaskParam'
type: array
queue:
type: string
retryable:
description: 是否支持手动重试
type: boolean
supports_time:
type: boolean
type:
type: string
type: object
driver_asynq_worker.TaskParam:
properties:
description:
description: 描述
type: string
label:
description: 显示名称
type: string
name:
description: 参数键名
type: string
placeholder:
description: 占位符
type: string
required:
description: 是否必填
type: boolean
type:
description: 类型:string, text, number, boolean
type: string
type: object
handler.batchDownloadRequest:
properties:
ids:
@@ -1018,6 +1010,27 @@ definitions:
example: ""
type: string
type: object
time.Duration:
enum:
- -9223372036854775808
- 9223372036854775807
- 1
- 1000
- 1000000
- 1000000000
- 60000000000
- 3600000000000
format: int64
type: integer
x-enum-varnames:
- minDuration
- maxDuration
- Nanosecond
- Microsecond
- Millisecond
- Second
- Minute
- Hour
info:
contact:
name: Wavelet
@@ -1174,7 +1187,7 @@ paths:
- $ref: '#/definitions/response.Any'
- properties:
data:
$ref: '#/definitions/diskcache.Status'
$ref: '#/definitions/disk.Status'
type: object
"401":
description: 未登录
@@ -2305,7 +2318,7 @@ paths:
- properties:
data:
items:
$ref: '#/definitions/driver_asynq_worker.TaskMeta'
$ref: '#/definitions/contracts.TaskMetaDTO'
type: array
type: object
"401":