plugin-cluster-manager 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +17 -5
  2. package/dist/client/index.js +1 -1
  3. package/dist/externalVersion.js +5 -5
  4. package/dist/locale/en-US.json +28 -4
  5. package/dist/locale/vi-VN.json +28 -4
  6. package/dist/locale/zh-CN.json +28 -4
  7. package/dist/server/actions/event-queue-monitor.js +123 -1
  8. package/dist/server/actions/orchestrator.js +1 -1
  9. package/dist/server/actions/plugin-operations.js +171 -0
  10. package/dist/server/collections/cluster-manager-plugins.js +44 -0
  11. package/dist/server/plugin.js +8 -2
  12. package/package.json +9 -4
  13. package/src/client/ClusterManagerLayout.tsx +16 -10
  14. package/src/client/EventQueueMonitor.tsx +349 -202
  15. package/src/client/PluginOperations.tsx +226 -0
  16. package/src/locale/en-US.json +28 -4
  17. package/src/locale/vi-VN.json +28 -4
  18. package/src/locale/zh-CN.json +28 -4
  19. package/src/server/actions/event-queue-monitor.ts +234 -95
  20. package/src/server/actions/orchestrator.ts +1 -1
  21. package/src/server/actions/plugin-operations.ts +151 -0
  22. package/src/server/collections/cluster-manager-plugins.ts +19 -0
  23. package/src/server/plugin.ts +28 -20
  24. package/dist/client/AclCacheManager.d.ts +0 -2
  25. package/dist/client/CacheMonitor.d.ts +0 -2
  26. package/dist/client/ClusterManagerLayout.d.ts +0 -2
  27. package/dist/client/ClusterNodes.d.ts +0 -2
  28. package/dist/client/ContainerOrchestrator.d.ts +0 -2
  29. package/dist/client/EventQueueMonitor.d.ts +0 -2
  30. package/dist/client/LockMonitor.d.ts +0 -2
  31. package/dist/client/PackageInstaller.d.ts +0 -2
  32. package/dist/client/RedisMonitor.d.ts +0 -2
  33. package/dist/client/TaskManager.d.ts +0 -2
  34. package/dist/client/WorkflowExecutions.d.ts +0 -2
  35. package/dist/client/index.d.ts +0 -5
  36. package/dist/client/utils.d.ts +0 -12
  37. package/dist/index.d.ts +0 -2
  38. package/dist/server/actions/acl-cache.d.ts +0 -53
  39. package/dist/server/actions/cache-monitor.d.ts +0 -23
  40. package/dist/server/actions/cluster-nodes.d.ts +0 -49
  41. package/dist/server/actions/event-queue-monitor.d.ts +0 -13
  42. package/dist/server/actions/lock-monitor.d.ts +0 -19
  43. package/dist/server/actions/orchestrator.d.ts +0 -58
  44. package/dist/server/actions/package-manager.d.ts +0 -6
  45. package/dist/server/actions/redis-monitor.d.ts +0 -12
  46. package/dist/server/actions/tasks.d.ts +0 -7
  47. package/dist/server/actions/workflow-executions.d.ts +0 -7
  48. package/dist/server/adapters/redis-lock-adapter.d.ts +0 -15
  49. package/dist/server/adapters/redis-node-registry.d.ts +0 -12
  50. package/dist/server/adapters/redis-pubsub-adapter.d.ts +0 -16
  51. package/dist/server/collections/app.d.ts +0 -8
  52. package/dist/server/collections/cluster-manager-acl-cache.d.ts +0 -22
  53. package/dist/server/collections/cluster-manager-cache-mgr.d.ts +0 -22
  54. package/dist/server/collections/cluster-manager-cluster.d.ts +0 -22
  55. package/dist/server/collections/cluster-manager-lock.d.ts +0 -22
  56. package/dist/server/collections/cluster-manager-queue.d.ts +0 -22
  57. package/dist/server/collections/cluster-manager-redis.d.ts +0 -22
  58. package/dist/server/collections/cluster-manager-workflow.d.ts +0 -22
  59. package/dist/server/collections/cluster-manager.d.ts +0 -22
  60. package/dist/server/collections/orchestrator-settings.d.ts +0 -59
  61. package/dist/server/collections/orchestrator-stacks.d.ts +0 -102
  62. package/dist/server/collections/worker-orchestrator.d.ts +0 -22
  63. package/dist/server/collections/worker-packages-configs.d.ts +0 -3
  64. package/dist/server/collections/worker-packages.d.ts +0 -22
  65. package/dist/server/index.d.ts +0 -1
  66. package/dist/server/orchestrator/PackageManager.d.ts +0 -37
  67. package/dist/server/orchestrator/docker-adapter.d.ts +0 -41
  68. package/dist/server/orchestrator/index.d.ts +0 -4
  69. package/dist/server/orchestrator/k8s-adapter.d.ts +0 -50
  70. package/dist/server/orchestrator/leader-election.d.ts +0 -48
  71. package/dist/server/orchestrator/types.d.ts +0 -84
  72. package/dist/server/plugin.d.ts +0 -26
  73. package/dist/server/utils/node.d.ts +0 -6
  74. package/dist/server/utils/redis.d.ts +0 -29
  75. package/dist/shared/packages.d.ts +0 -23
@@ -1,53 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- /**
3
- * In-memory ACL stats counter.
4
- * Tracks total checks, cache hits/misses per role:resource:action.
5
- */
6
- export interface AclCacheStats {
7
- totalChecks: number;
8
- cacheHits: number;
9
- cacheMisses: number;
10
- startedAt: string;
11
- detailByRole: Record<string, {
12
- checks: number;
13
- hits: number;
14
- misses: number;
15
- }>;
16
- }
17
- /**
18
- * Middleware that caches the permission object computed by the ACL middleware.
19
- * Install via: app.acl.use(aclCacheMiddleware, { tag: 'aclCache', before: 'core', after: 'allow-manager' })
20
- *
21
- * FIX: Previously monkey-patched ctx.app.acl.can per-request, which is a race condition
22
- * because acl is a shared singleton across concurrent requests. Now we use a post-check
23
- * approach that reads from cache first and writes after the ACL middleware runs, without
24
- * ever replacing the shared acl.can method.
25
- */
26
- export declare function createAclCacheMiddleware(app: any): (ctx: Context, next: () => Promise<void>) => Promise<void>;
27
- export declare const aclCacheActions: {
28
- /**
29
- * GET /clusterManagerAclCache:stats
30
- * Returns ACL cache hit/miss statistics
31
- */
32
- stats(ctx: Context, next: () => Promise<void>): Promise<void>;
33
- /**
34
- * GET /clusterManagerAclCache:listKeys
35
- * Lists all cached ACL permission keys
36
- */
37
- listKeys(ctx: Context, next: () => Promise<void>): Promise<void>;
38
- /**
39
- * POST /clusterManagerAclCache:clear
40
- * Clear all ACL cache entries and reset stats
41
- */
42
- clear(ctx: Context, next: () => Promise<void>): Promise<void>;
43
- /**
44
- * POST /clusterManagerAclCache:resetStats
45
- * Reset the in-memory ACL stats counters
46
- */
47
- resetStats(ctx: Context, next: () => Promise<void>): Promise<void>;
48
- /**
49
- * POST /clusterManagerAclCache:clearRole
50
- * Clear ACL cache entries for a specific role
51
- */
52
- clearRole(ctx: Context, next: () => Promise<void>): Promise<void>;
53
- };
@@ -1,23 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const cacheMonitorActions: {
3
- /**
4
- * GET /clusterManagerCacheMgr:stores
5
- * List all registered cache stores and their config
6
- */
7
- stores(ctx: Context, next: () => Promise<void>): Promise<void>;
8
- /**
9
- * GET /clusterManagerCacheMgr:caches
10
- * List all created named caches
11
- */
12
- caches(ctx: Context, next: () => Promise<void>): Promise<void>;
13
- /**
14
- * GET /clusterManagerCacheMgr:redisMemory
15
- * Get Redis memory usage for cache keys
16
- */
17
- redisMemory(ctx: Context, next: () => Promise<void>): Promise<void>;
18
- /**
19
- * POST /clusterManagerCacheMgr:flushAll
20
- * Flush all caches via CacheManager
21
- */
22
- flushAll(ctx: Context, next: () => Promise<void>): Promise<void>;
23
- };
@@ -1,49 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- /**
3
- * Read the last N lines from the local system log file.
4
- * Extracted so it can be called from both the HTTP action and the PubSub subscriber.
5
- */
6
- export declare function readLocalLogs(app: any, maxLines: number): Promise<{
7
- node: {
8
- hostname: string;
9
- pid: number;
10
- workerMode: string;
11
- };
12
- lines: string[];
13
- file: string;
14
- }>;
15
- export declare const clusterActions: {
16
- /**
17
- * GET /clusterManagerCluster:current
18
- * Always returns info about the APP node (not workers).
19
- * If this request is handled by a worker, we look up the APP node from Redis.
20
- */
21
- current(ctx: Context, next: () => Promise<void>): Promise<void>;
22
- /**
23
- * GET /clusterManagerCluster:list
24
- * Returns all known cluster environments/nodes (if discovery adapter supports it)
25
- */
26
- list(ctx: Context, next: () => Promise<void>): Promise<void>;
27
- /**
28
- * GET /clusterManagerCluster:health
29
- * Health check for all subsystems
30
- */
31
- health(ctx: Context, next: () => Promise<void>): Promise<void>;
32
- /**
33
- * POST /clusterManagerCluster:restart
34
- * Publishes a restart signal to target nodes orchestrating a soft NocoBase restart or a hard docker daemon rebirth
35
- */
36
- restart(ctx: Context, next: () => Promise<void>): Promise<void>;
37
- /**
38
- * GET /clusterManagerCluster:logs?targetNodeId=xxx&lines=200
39
- *
40
- * HA-aware log viewer. Reads logs from a specific node in the cluster.
41
- *
42
- * Flow:
43
- * 1. If targetNodeId matches current node (or is empty) → read local FS directly
44
- * 2. Otherwise → publish a log request via PubSub → target node reads its local FS
45
- * and writes the result to a Redis key → this handler polls Redis until the
46
- * response arrives (max 10s) → returns it to the client
47
- */
48
- logs(ctx: Context, next: () => Promise<void>): Promise<void>;
49
- };
@@ -1,13 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const eventQueueActions: {
3
- /**
4
- * GET /clusterManagerQueue:stats
5
- * Returns event queue statistics
6
- */
7
- stats(ctx: Context, next: () => Promise<void>): Promise<void>;
8
- /**
9
- * GET /clusterManagerQueue:messages
10
- * List pending messages in a specific channel (memory adapter only)
11
- */
12
- messages(ctx: Context, next: () => Promise<void>): Promise<void>;
13
- };
@@ -1,19 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const lockActions: {
3
- /**
4
- * GET /clusterManagerLock:info
5
- * Returns lock manager info
6
- */
7
- info(ctx: Context, next: () => Promise<void>): Promise<void>;
8
- /**
9
- * GET /clusterManagerLock:list
10
- * List active locks
11
- */
12
- list(ctx: Context, next: () => Promise<void>): Promise<void>;
13
- /**
14
- * POST /clusterManagerLock:release
15
- * Force release a stuck lock (admin emergency action)
16
- * Uses compare-and-swap via DEL for Redis locks with the correct key prefix.
17
- */
18
- release(ctx: Context, next: () => Promise<void>): Promise<void>;
19
- };
@@ -1,58 +0,0 @@
1
- /**
2
- * Orchestrator Actions
3
- *
4
- * API endpoints for container management. Write operations (scale, start, stop, remove)
5
- * are guarded by leader election — only the leader node can execute them.
6
- */
7
- import { Context } from '@nocobase/actions';
8
- export declare const orchestratorActions: {
9
- /**
10
- * GET /workerOrchestrator:ping
11
- * Test connectivity to the container runtime
12
- */
13
- ping(ctx: Context, next: () => Promise<void>): Promise<void>;
14
- /**
15
- * GET /workerOrchestrator:containers?stackId=1
16
- * List live containers for a stack
17
- */
18
- containers(ctx: Context, next: () => Promise<void>): Promise<void>;
19
- /**
20
- * POST /workerOrchestrator:scale
21
- * Body: { stackId: 1, replicas: 3 }
22
- * Leader-only
23
- */
24
- scale(ctx: Context, next: () => Promise<void>): Promise<void>;
25
- /**
26
- * POST /workerOrchestrator:start
27
- * Body: { stackId: 1, containerId: "abc123" }
28
- * Leader-only
29
- */
30
- start(ctx: Context, next: () => Promise<void>): Promise<void>;
31
- /**
32
- * POST /workerOrchestrator:stop
33
- * Body: { stackId: 1, containerId: "abc123" }
34
- * Leader-only
35
- */
36
- stop(ctx: Context, next: () => Promise<void>): Promise<void>;
37
- /**
38
- * POST /workerOrchestrator:remove
39
- * Body: { stackId: 1, containerId: "abc123" }
40
- * Leader-only
41
- */
42
- remove(ctx: Context, next: () => Promise<void>): Promise<void>;
43
- /**
44
- * GET /workerOrchestrator:stats?containerId=abc123
45
- * Get real-time stats for a container
46
- */
47
- stats(ctx: Context, next: () => Promise<void>): Promise<void>;
48
- /**
49
- * GET /workerOrchestrator:logs?containerId=abc123&tail=100
50
- * Get tail logs from a container
51
- */
52
- logs(ctx: Context, next: () => Promise<void>): Promise<void>;
53
- /**
54
- * GET /workerOrchestrator:networks
55
- * List available networks (if supported by adapter)
56
- */
57
- networks(ctx: Context, next: () => Promise<void>): Promise<void>;
58
- };
@@ -1,6 +0,0 @@
1
- export declare const packageManagerActions: {
2
- installPackages(ctx: any, next: () => Promise<void>): Promise<void>;
3
- getPackageConfig(ctx: any, next: () => Promise<void>): Promise<void>;
4
- savePackageConfig(ctx: any, next: () => Promise<void>): Promise<void>;
5
- resetInitStatus(ctx: any, next: () => Promise<void>): Promise<void>;
6
- };
@@ -1,12 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const redisActions: {
3
- info(ctx: Context, next: () => Promise<void>): Promise<void>;
4
- clients(ctx: Context, next: () => Promise<void>): Promise<void>;
5
- pubsub(ctx: Context, next: () => Promise<void>): Promise<void>;
6
- slowlog(ctx: Context, next: () => Promise<void>): Promise<void>;
7
- /**
8
- * GET /clusterManagerRedis:syncMessages
9
- * Returns info about NocoBase sync message channels (pub/sub layer)
10
- */
11
- syncMessages(ctx: Context, next: () => Promise<void>): Promise<void>;
12
- };
@@ -1,7 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const tasksActions: {
3
- list(ctx: Context, next: () => Promise<void>): Promise<void>;
4
- cancel(ctx: Context, next: () => Promise<void>): Promise<void>;
5
- retry(ctx: Context, next: () => Promise<void>): Promise<void>;
6
- purge(ctx: Context, next: () => Promise<void>): Promise<void>;
7
- };
@@ -1,7 +0,0 @@
1
- import { Context } from '@nocobase/actions';
2
- export declare const workflowActions: {
3
- list(ctx: Context, next: () => Promise<void>): Promise<void>;
4
- getJobs(ctx: Context, next: () => Promise<void>): Promise<void>;
5
- cancel(ctx: Context, next: () => Promise<void>): Promise<void>;
6
- purge(ctx: Context, next: () => Promise<void>): Promise<void>;
7
- };
@@ -1,15 +0,0 @@
1
- import { ILockAdapter, ILock, Releaser } from '@nocobase/lock-manager';
2
- import { Application } from '@nocobase/server';
3
- export declare class RedisLockAdapter implements ILockAdapter {
4
- private options;
5
- private client;
6
- constructor(options: {
7
- url?: string;
8
- app: Application;
9
- });
10
- connect(): Promise<void>;
11
- close(): Promise<void>;
12
- acquire(key: string, ttl: number): Promise<Releaser>;
13
- runExclusive<T>(key: string, fn: () => Promise<T>, ttl: number): Promise<T>;
14
- tryAcquire(key: string, timeout?: number): Promise<ILock>;
15
- }
@@ -1,12 +0,0 @@
1
- export declare class RedisNodeRegistry {
2
- private app;
3
- private timer;
4
- private readonly ttlSecs;
5
- private readonly intervalMs;
6
- private readonly keyPrefix;
7
- constructor(app: any);
8
- start(): void;
9
- stop(): void;
10
- private heartbeat;
11
- getNodes(): Promise<any[]>;
12
- }
@@ -1,16 +0,0 @@
1
- import { IPubSubAdapter, PubSubCallback } from '@nocobase/server';
2
- export declare class RedisPubSubAdapter implements IPubSubAdapter {
3
- private url;
4
- private logger?;
5
- private publisher;
6
- private subscriber;
7
- private connected;
8
- private subscriptions;
9
- constructor(url: string, logger?: any);
10
- isConnected(): boolean;
11
- connect(): Promise<void>;
12
- close(): Promise<void>;
13
- subscribe(channel: string, callback: PubSubCallback): Promise<void>;
14
- unsubscribe(channel: string, callback: PubSubCallback): Promise<void>;
15
- publish(channel: string, message: string): Promise<void>;
16
- }
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- autoCreate: boolean;
4
- dumpRules: string;
5
- model: string;
6
- fields: any[];
7
- };
8
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerAclCache" not found'
5
- *
6
- * Since 'clusterManagerAclCache' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerCacheMgr" not found'
5
- *
6
- * Since 'clusterManagerCacheMgr' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerCluster" not found'
5
- *
6
- * Since 'clusterManagerCluster' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerLock" not found'
5
- *
6
- * Since 'clusterManagerLock' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerQueue" not found'
5
- *
6
- * Since 'clusterManagerQueue' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerRedis" not found'
5
- *
6
- * Since 'clusterManagerRedis' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManagerWorkflow" not found'
5
- *
6
- * Since 'clusterManagerWorkflow' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /**
2
- * DUMMY COLLECTION
3
- * This collection is created to prevent NocoBase workflow/ACL from throwing the error:
4
- * '[Workflow pre-action]: collection "clusterManager" not found'
5
- *
6
- * Since 'clusterManager' is registered as a resourcer in plugin.ts, NocoBase
7
- * implicitly looks for a collection with the same name.
8
- * We set dumpRules: 'skip' and avoid timestamps to ensure this collection
9
- * is completely ignored during backups/migrations and doesn't pollute the actual DB.
10
- */
11
- declare const _default: {
12
- name: string;
13
- dumpRules: string;
14
- autoGenId: boolean;
15
- createdAt: boolean;
16
- updatedAt: boolean;
17
- fields: {
18
- name: string;
19
- type: string;
20
- }[];
21
- };
22
- export default _default;
@@ -1,59 +0,0 @@
1
- /**
2
- * Plugin settings stored in DB — configurable via NocoBase admin UI.
3
- * Replaces env-var-only configuration for orchestrator adapter selection.
4
- */
5
- declare const _default: {
6
- name: string;
7
- autoGenId: boolean;
8
- createdAt: boolean;
9
- updatedAt: boolean;
10
- fields: ({
11
- name: string;
12
- type: string;
13
- defaultValue: string;
14
- interface: string;
15
- uiSchema: {
16
- title: string;
17
- 'x-component': string;
18
- enum: {
19
- value: string;
20
- label: string;
21
- }[];
22
- description?: undefined;
23
- };
24
- } | {
25
- name: string;
26
- type: string;
27
- defaultValue: string;
28
- interface: string;
29
- uiSchema: {
30
- title: string;
31
- 'x-component': string;
32
- enum?: undefined;
33
- description?: undefined;
34
- };
35
- } | {
36
- name: string;
37
- type: string;
38
- interface: string;
39
- uiSchema: {
40
- title: string;
41
- description: string;
42
- 'x-component': string;
43
- enum?: undefined;
44
- };
45
- defaultValue?: undefined;
46
- } | {
47
- name: string;
48
- type: string;
49
- defaultValue: string;
50
- interface: string;
51
- uiSchema: {
52
- title: string;
53
- description: string;
54
- 'x-component': string;
55
- enum?: undefined;
56
- };
57
- })[];
58
- };
59
- export default _default;
@@ -1,102 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- autoGenId: boolean;
4
- createdAt: boolean;
5
- updatedAt: boolean;
6
- fields: ({
7
- name: string;
8
- type: string;
9
- unique: boolean;
10
- interface: string;
11
- uiSchema: {
12
- title: string;
13
- 'x-component': string;
14
- enum?: undefined;
15
- };
16
- defaultValue?: undefined;
17
- } | {
18
- name: string;
19
- type: string;
20
- defaultValue: string;
21
- interface: string;
22
- uiSchema: {
23
- title: string;
24
- 'x-component': string;
25
- enum: {
26
- value: string;
27
- label: string;
28
- }[];
29
- };
30
- unique?: undefined;
31
- } | {
32
- name: string;
33
- type: string;
34
- interface: string;
35
- uiSchema: {
36
- title: string;
37
- 'x-component': string;
38
- enum?: undefined;
39
- };
40
- unique?: undefined;
41
- defaultValue?: undefined;
42
- } | {
43
- name: string;
44
- type: string;
45
- defaultValue: {};
46
- interface: string;
47
- uiSchema: {
48
- title: string;
49
- 'x-component'?: undefined;
50
- enum?: undefined;
51
- };
52
- unique?: undefined;
53
- } | {
54
- name: string;
55
- type: string;
56
- defaultValue: any[];
57
- interface: string;
58
- uiSchema: {
59
- title: string;
60
- 'x-component'?: undefined;
61
- enum?: undefined;
62
- };
63
- unique?: undefined;
64
- } | {
65
- name: string;
66
- type: string;
67
- defaultValue: number;
68
- interface: string;
69
- uiSchema: {
70
- title: string;
71
- 'x-component'?: undefined;
72
- enum?: undefined;
73
- };
74
- unique?: undefined;
75
- } | {
76
- name: string;
77
- type: string;
78
- defaultValue: boolean;
79
- interface: string;
80
- uiSchema: {
81
- title: string;
82
- 'x-component'?: undefined;
83
- enum?: undefined;
84
- };
85
- unique?: undefined;
86
- } | {
87
- name: string;
88
- type: string;
89
- defaultValue: string;
90
- unique?: undefined;
91
- interface?: undefined;
92
- uiSchema?: undefined;
93
- } | {
94
- name: string;
95
- type: string;
96
- unique?: undefined;
97
- interface?: undefined;
98
- uiSchema?: undefined;
99
- defaultValue?: undefined;
100
- })[];
101
- };
102
- export default _default;