@vfarcic/dot-ai 0.195.0 → 1.0.0
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.
- package/README.md +2 -7
- package/dist/core/capability-scan-workflow.d.ts +4 -3
- package/dist/core/capability-scan-workflow.d.ts.map +1 -1
- package/dist/core/capability-scan-workflow.js +34 -39
- package/dist/core/circuit-breaker.d.ts +1 -0
- package/dist/core/circuit-breaker.d.ts.map +1 -1
- package/dist/core/circuit-breaker.js +11 -3
- package/dist/core/command-executor.d.ts +10 -1
- package/dist/core/command-executor.d.ts.map +1 -1
- package/dist/core/command-executor.js +63 -48
- package/dist/core/crd-availability.d.ts +6 -1
- package/dist/core/crd-availability.d.ts.map +1 -1
- package/dist/core/crd-availability.js +59 -49
- package/dist/core/deploy-operation.d.ts +17 -3
- package/dist/core/deploy-operation.d.ts.map +1 -1
- package/dist/core/deploy-operation.js +72 -21
- package/dist/core/discovery.d.ts +16 -43
- package/dist/core/discovery.d.ts.map +1 -1
- package/dist/core/discovery.js +128 -277
- package/dist/core/index.d.ts +10 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +20 -9
- package/dist/core/pattern-operations.d.ts +3 -1
- package/dist/core/pattern-operations.d.ts.map +1 -1
- package/dist/core/pattern-operations.js +3 -2
- package/dist/core/plugin-client.d.ts +53 -0
- package/dist/core/plugin-client.d.ts.map +1 -0
- package/dist/core/plugin-client.js +148 -0
- package/dist/core/plugin-manager.d.ts +119 -0
- package/dist/core/plugin-manager.d.ts.map +1 -0
- package/dist/core/plugin-manager.js +366 -0
- package/dist/core/plugin-types.d.ts +100 -0
- package/dist/core/plugin-types.d.ts.map +1 -0
- package/dist/core/plugin-types.js +10 -0
- package/dist/core/policy-operations.d.ts +15 -7
- package/dist/core/policy-operations.d.ts.map +1 -1
- package/dist/core/policy-operations.js +59 -31
- package/dist/core/resource-tools.d.ts +2 -90
- package/dist/core/resource-tools.d.ts.map +1 -1
- package/dist/core/resource-tools.js +4 -178
- package/dist/core/schema.d.ts +18 -2
- package/dist/core/schema.d.ts.map +1 -1
- package/dist/core/schema.js +118 -16
- package/dist/core/telemetry/client.d.ts +7 -0
- package/dist/core/telemetry/client.d.ts.map +1 -1
- package/dist/core/telemetry/client.js +51 -51
- package/dist/core/telemetry/index.d.ts +1 -1
- package/dist/core/telemetry/index.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +2 -1
- package/dist/core/telemetry/types.d.ts +1 -3
- package/dist/core/telemetry/types.d.ts.map +1 -1
- package/dist/core/tracing/index.d.ts +0 -1
- package/dist/core/tracing/index.d.ts.map +1 -1
- package/dist/core/tracing/index.js +1 -4
- package/dist/core/unified-creation-session.d.ts +6 -1
- package/dist/core/unified-creation-session.d.ts.map +1 -1
- package/dist/core/unified-creation-session.js +19 -11
- package/dist/interfaces/mcp.d.ts +8 -2
- package/dist/interfaces/mcp.d.ts.map +1 -1
- package/dist/interfaces/mcp.js +85 -34
- package/dist/interfaces/resource-sync-handler.d.ts.map +1 -1
- package/dist/interfaces/resource-sync-handler.js +37 -17
- package/dist/interfaces/rest-api.d.ts +4 -1
- package/dist/interfaces/rest-api.d.ts.map +1 -1
- package/dist/interfaces/rest-api.js +172 -49
- package/dist/mcp/server.js +39 -54
- package/dist/tools/deploy-manifests.d.ts +3 -1
- package/dist/tools/deploy-manifests.d.ts.map +1 -1
- package/dist/tools/deploy-manifests.js +112 -13
- package/dist/tools/generate-manifests.d.ts +3 -1
- package/dist/tools/generate-manifests.d.ts.map +1 -1
- package/dist/tools/generate-manifests.js +107 -33
- package/dist/tools/operate-analysis.d.ts +5 -1
- package/dist/tools/operate-analysis.d.ts.map +1 -1
- package/dist/tools/operate-analysis.js +37 -7
- package/dist/tools/operate-execution.d.ts +3 -1
- package/dist/tools/operate-execution.d.ts.map +1 -1
- package/dist/tools/operate-execution.js +6 -4
- package/dist/tools/operate.d.ts +7 -2
- package/dist/tools/operate.d.ts.map +1 -1
- package/dist/tools/operate.js +10 -6
- package/dist/tools/organizational-data.d.ts +3 -2
- package/dist/tools/organizational-data.d.ts.map +1 -1
- package/dist/tools/organizational-data.js +15 -13
- package/dist/tools/query.d.ts +5 -1
- package/dist/tools/query.d.ts.map +1 -1
- package/dist/tools/query.js +26 -18
- package/dist/tools/recommend.d.ts +3 -1
- package/dist/tools/recommend.d.ts.map +1 -1
- package/dist/tools/recommend.js +7 -7
- package/dist/tools/remediate.d.ts +5 -2
- package/dist/tools/remediate.d.ts.map +1 -1
- package/dist/tools/remediate.js +69 -20
- package/dist/tools/version.d.ts +20 -5
- package/dist/tools/version.d.ts.map +1 -1
- package/dist/tools/version.js +169 -161
- package/package.json +1 -1
- package/prompts/helm-generation.md +9 -0
- package/dist/core/cluster-utils.d.ts +0 -12
- package/dist/core/cluster-utils.d.ts.map +0 -1
- package/dist/core/cluster-utils.js +0 -27
- package/dist/core/helm-utils.d.ts +0 -66
- package/dist/core/helm-utils.d.ts.map +0 -1
- package/dist/core/helm-utils.js +0 -196
- package/dist/core/kubectl-tools.d.ts +0 -71
- package/dist/core/kubectl-tools.d.ts.map +0 -1
- package/dist/core/kubectl-tools.js +0 -546
- package/dist/core/kubernetes-utils.d.ts +0 -38
- package/dist/core/kubernetes-utils.d.ts.map +0 -1
- package/dist/core/kubernetes-utils.js +0 -288
- package/dist/core/tracing/k8s-tracing.d.ts +0 -57
- package/dist/core/tracing/k8s-tracing.d.ts.map +0 -1
- package/dist/core/tracing/k8s-tracing.js +0 -155
- package/scripts/toolhive.nu +0 -21
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Deploy Operation - Handles Kubernetes manifest deployment with readiness checking
|
|
3
|
+
* PRD #343: Uses plugin system for kubectl operations
|
|
3
4
|
*/
|
|
5
|
+
import type { PluginManager } from './plugin-manager';
|
|
4
6
|
export interface DeployOptions {
|
|
5
7
|
solutionId: string;
|
|
6
8
|
sessionDir?: string;
|
|
7
9
|
timeout?: number;
|
|
8
|
-
kubeconfig?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface DeployResult {
|
|
11
12
|
success: boolean;
|
|
@@ -16,10 +17,11 @@ export interface DeployResult {
|
|
|
16
17
|
kubectlOutput: string;
|
|
17
18
|
}
|
|
18
19
|
export declare class DeployOperation {
|
|
19
|
-
private
|
|
20
|
-
constructor(
|
|
20
|
+
private pluginManager;
|
|
21
|
+
constructor(pluginManager: PluginManager);
|
|
21
22
|
/**
|
|
22
23
|
* Deploy Kubernetes manifests from generated solution
|
|
24
|
+
* PRD #343: Uses plugin for kubectl operations
|
|
23
25
|
*/
|
|
24
26
|
deploy(options: DeployOptions): Promise<DeployResult>;
|
|
25
27
|
/**
|
|
@@ -30,9 +32,21 @@ export declare class DeployOperation {
|
|
|
30
32
|
* Verify that the manifest file exists
|
|
31
33
|
*/
|
|
32
34
|
private verifyManifestExists;
|
|
35
|
+
/**
|
|
36
|
+
* Execute kubectl command via plugin
|
|
37
|
+
* PRD #343: All kubectl operations go through plugin
|
|
38
|
+
*/
|
|
39
|
+
private executeKubectl;
|
|
33
40
|
/**
|
|
34
41
|
* Apply manifests using kubectl with readiness checking
|
|
42
|
+
* PRD #343: Uses kubectl_apply tool with manifest content (not file path)
|
|
43
|
+
* File paths don't work across containers - must pass content via stdin
|
|
35
44
|
*/
|
|
36
45
|
private applyManifests;
|
|
46
|
+
/**
|
|
47
|
+
* Apply manifest content using kubectl_apply tool
|
|
48
|
+
* PRD #343: Uses plugin's kubectl_apply tool with stdin
|
|
49
|
+
*/
|
|
50
|
+
private applyManifestContent;
|
|
37
51
|
}
|
|
38
52
|
//# sourceMappingURL=deploy-operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-operation.d.ts","sourceRoot":"","sources":["../../src/core/deploy-operation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"deploy-operation.d.ts","sourceRoot":"","sources":["../../src/core/deploy-operation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC;;;OAGG;IACU,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;IA2BlE;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;YACW,oBAAoB;IAQlC;;;OAGG;YACW,cAAc;IAwB5B;;;;OAIG;YACW,cAAc;IA+B5B;;;OAGG;YACW,oBAAoB;CAuBnC"}
|
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Deploy Operation - Handles Kubernetes manifest deployment with readiness checking
|
|
4
|
+
* PRD #343: Uses plugin system for kubectl operations
|
|
4
5
|
*/
|
|
5
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
exports.DeployOperation = void 0;
|
|
7
8
|
const promises_1 = require("fs/promises");
|
|
8
9
|
const path_1 = require("path");
|
|
9
10
|
const error_handling_1 = require("./error-handling");
|
|
10
|
-
const kubernetes_utils_1 = require("./kubernetes-utils");
|
|
11
11
|
class DeployOperation {
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
14
|
-
this.
|
|
15
|
-
kubeconfig: kubeconfig || process.env.KUBECONFIG
|
|
16
|
-
};
|
|
12
|
+
pluginManager;
|
|
13
|
+
constructor(pluginManager) {
|
|
14
|
+
this.pluginManager = pluginManager;
|
|
17
15
|
}
|
|
18
16
|
/**
|
|
19
17
|
* Deploy Kubernetes manifests from generated solution
|
|
18
|
+
* PRD #343: Uses plugin for kubectl operations
|
|
20
19
|
*/
|
|
21
20
|
async deploy(options) {
|
|
22
21
|
return error_handling_1.ErrorHandler.withErrorHandling(async () => {
|
|
23
22
|
const manifestPath = this.getManifestPath(options);
|
|
24
23
|
// Verify manifest file exists
|
|
25
24
|
await this.verifyManifestExists(manifestPath);
|
|
26
|
-
//
|
|
27
|
-
const
|
|
28
|
-
...this.kubectlConfig,
|
|
29
|
-
kubeconfig: options.kubeconfig || this.kubectlConfig.kubeconfig
|
|
30
|
-
};
|
|
31
|
-
// Apply manifests with kubectl
|
|
32
|
-
const kubectlOutput = await this.applyManifests(manifestPath, options.timeout || 30, kubectlConfig);
|
|
25
|
+
// Apply manifests with kubectl via plugin
|
|
26
|
+
const kubectlOutput = await this.applyManifests(manifestPath, options.timeout || 30);
|
|
33
27
|
return {
|
|
34
28
|
success: true,
|
|
35
29
|
solutionId: options.solutionId,
|
|
@@ -62,26 +56,55 @@ class DeployOperation {
|
|
|
62
56
|
throw new Error(`Manifest file not found: ${manifestPath}`);
|
|
63
57
|
}
|
|
64
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Execute kubectl command via plugin
|
|
61
|
+
* PRD #343: All kubectl operations go through plugin
|
|
62
|
+
*/
|
|
63
|
+
async executeKubectl(args) {
|
|
64
|
+
const response = await this.pluginManager.invokeTool('kubectl_exec_command', { args });
|
|
65
|
+
if (response.success) {
|
|
66
|
+
if (typeof response.result === 'object' && response.result !== null) {
|
|
67
|
+
const result = response.result;
|
|
68
|
+
// Check for nested error - plugin wraps kubectl errors in { success: false, error: "..." }
|
|
69
|
+
if (result.success === false) {
|
|
70
|
+
throw new Error(result.error || result.message || 'kubectl command failed');
|
|
71
|
+
}
|
|
72
|
+
// Return only the data field - never pass JSON wrapper to consumers
|
|
73
|
+
if (result.data !== undefined) {
|
|
74
|
+
return String(result.data);
|
|
75
|
+
}
|
|
76
|
+
if (typeof result === 'string') {
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
throw new Error('Plugin returned unexpected response format - missing data field');
|
|
80
|
+
}
|
|
81
|
+
return String(response.result || '');
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
throw new Error(response.error?.message || 'kubectl command failed via plugin');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
65
87
|
/**
|
|
66
88
|
* Apply manifests using kubectl with readiness checking
|
|
89
|
+
* PRD #343: Uses kubectl_apply tool with manifest content (not file path)
|
|
90
|
+
* File paths don't work across containers - must pass content via stdin
|
|
67
91
|
*/
|
|
68
|
-
async applyManifests(manifestPath, timeout
|
|
69
|
-
//
|
|
70
|
-
const
|
|
92
|
+
async applyManifests(manifestPath, timeout) {
|
|
93
|
+
// Read manifest content from file (file is in MCP server container)
|
|
94
|
+
const manifestContent = await (0, promises_1.readFile)(manifestPath, 'utf8');
|
|
95
|
+
// Apply using kubectl_apply tool which accepts content via stdin
|
|
96
|
+
const applyResult = await this.applyManifestContent(manifestContent);
|
|
71
97
|
// Try to wait for deployments to be ready (ignore failures for other resource types)
|
|
72
98
|
let waitOutput = '';
|
|
73
99
|
try {
|
|
74
|
-
const waitResult = await
|
|
100
|
+
const waitResult = await this.executeKubectl([
|
|
75
101
|
'wait',
|
|
76
102
|
'--for=condition=available',
|
|
77
103
|
'deployments',
|
|
78
104
|
'--all',
|
|
79
105
|
`--timeout=${timeout}s`,
|
|
80
106
|
'--all-namespaces'
|
|
81
|
-
]
|
|
82
|
-
...kubectlConfig,
|
|
83
|
-
timeout: (timeout + 10) * 1000 // Add 10 seconds buffer for kubectl command itself
|
|
84
|
-
});
|
|
107
|
+
]);
|
|
85
108
|
waitOutput = `\n\nWait output:\n${waitResult}`;
|
|
86
109
|
}
|
|
87
110
|
catch (waitError) {
|
|
@@ -95,5 +118,33 @@ class DeployOperation {
|
|
|
95
118
|
}
|
|
96
119
|
return `Apply output:\n${applyResult}${waitOutput}`;
|
|
97
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Apply manifest content using kubectl_apply tool
|
|
123
|
+
* PRD #343: Uses plugin's kubectl_apply tool with stdin
|
|
124
|
+
*/
|
|
125
|
+
async applyManifestContent(manifest) {
|
|
126
|
+
const response = await this.pluginManager.invokeTool('kubectl_apply', { manifest });
|
|
127
|
+
if (response.success) {
|
|
128
|
+
if (typeof response.result === 'object' && response.result !== null) {
|
|
129
|
+
const result = response.result;
|
|
130
|
+
// Check for nested error
|
|
131
|
+
if (result.success === false) {
|
|
132
|
+
throw new Error(result.error || result.message || 'kubectl apply failed');
|
|
133
|
+
}
|
|
134
|
+
// Return only the data field
|
|
135
|
+
if (result.data !== undefined) {
|
|
136
|
+
return String(result.data);
|
|
137
|
+
}
|
|
138
|
+
if (typeof result === 'string') {
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
throw new Error('Plugin returned unexpected response format - missing data field');
|
|
142
|
+
}
|
|
143
|
+
return String(response.result || '');
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
throw new Error(response.error?.message || 'kubectl apply failed via plugin');
|
|
147
|
+
}
|
|
148
|
+
}
|
|
98
149
|
}
|
|
99
150
|
exports.DeployOperation = DeployOperation;
|
package/dist/core/discovery.d.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles cluster connection, resource discovery, and capability detection
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
import { KubectlConfig } from './kubernetes-utils';
|
|
6
|
+
import type { PluginManager } from './plugin-manager';
|
|
8
7
|
export interface ClusterInfo {
|
|
9
8
|
type: string;
|
|
10
9
|
version: string;
|
|
@@ -88,40 +87,18 @@ export interface ClusterFingerprint {
|
|
|
88
87
|
csiDrivers: string[];
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
/**
|
|
91
|
+
* PRD #343: KubernetesDiscovery simplified - all K8s operations go through plugin
|
|
92
|
+
* No longer uses @kubernetes/client-node or kubeconfig directly.
|
|
93
|
+
*/
|
|
94
94
|
export declare class KubernetesDiscovery {
|
|
95
|
-
private kc;
|
|
96
|
-
private k8sApi;
|
|
97
95
|
private connected;
|
|
98
|
-
private
|
|
99
|
-
constructor(config?: KubernetesDiscoveryConfig);
|
|
100
|
-
/**
|
|
101
|
-
* Resolves kubeconfig path following priority order:
|
|
102
|
-
* 1. Custom path provided in constructor
|
|
103
|
-
* 2. KUBECONFIG environment variable (first path if multiple)
|
|
104
|
-
* 3. Default ~/.kube/config
|
|
105
|
-
*/
|
|
106
|
-
private resolveKubeconfigPath;
|
|
107
|
-
/**
|
|
108
|
-
* Get the current kubeconfig path being used
|
|
109
|
-
*/
|
|
110
|
-
getKubeconfigPath(): string;
|
|
96
|
+
private pluginManager?;
|
|
111
97
|
/**
|
|
112
|
-
* Set
|
|
98
|
+
* PRD #343: Set plugin manager for routing kubectl operations through plugin
|
|
99
|
+
* When set, all K8s operations route through the plugin
|
|
113
100
|
*/
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Get connection status and configuration info for diagnostics
|
|
117
|
-
*/
|
|
118
|
-
getConnectionInfo(): {
|
|
119
|
-
connected: boolean;
|
|
120
|
-
kubeconfig: string;
|
|
121
|
-
mode: 'file' | 'in-cluster' | 'default';
|
|
122
|
-
server?: string;
|
|
123
|
-
context?: string;
|
|
124
|
-
};
|
|
101
|
+
setPluginManager(pluginManager: PluginManager): void;
|
|
125
102
|
/**
|
|
126
103
|
* Test connection to the cluster with detailed result
|
|
127
104
|
*/
|
|
@@ -131,13 +108,11 @@ export declare class KubernetesDiscovery {
|
|
|
131
108
|
error?: string;
|
|
132
109
|
errorType?: string;
|
|
133
110
|
}>;
|
|
111
|
+
getClusterInfo(): Promise<ClusterInfo>;
|
|
134
112
|
/**
|
|
135
|
-
*
|
|
113
|
+
* PRD #343: Simplified cluster type detection
|
|
114
|
+
* Returns 'in-cluster' when running in K8s, 'vanilla-k8s' otherwise
|
|
136
115
|
*/
|
|
137
|
-
getClient(): k8s.KubeConfig;
|
|
138
|
-
connect(): Promise<void>;
|
|
139
|
-
isConnected(): boolean;
|
|
140
|
-
getClusterInfo(): Promise<ClusterInfo>;
|
|
141
116
|
private detectClusterType;
|
|
142
117
|
private detectCapabilities;
|
|
143
118
|
discoverResources(): Promise<ResourceMap>;
|
|
@@ -145,10 +120,9 @@ export declare class KubernetesDiscovery {
|
|
|
145
120
|
* Execute kubectl command with proper configuration
|
|
146
121
|
*/
|
|
147
122
|
/**
|
|
148
|
-
* Execute kubectl command
|
|
149
|
-
* Delegates to shared utility function
|
|
123
|
+
* Execute kubectl command via plugin
|
|
150
124
|
*/
|
|
151
|
-
executeKubectl(args: string[]
|
|
125
|
+
executeKubectl(args: string[]): Promise<string>;
|
|
152
126
|
/**
|
|
153
127
|
* Parse a raw CRD object into EnhancedCRD format
|
|
154
128
|
*/
|
|
@@ -174,9 +148,8 @@ export declare class KubernetesDiscovery {
|
|
|
174
148
|
*/
|
|
175
149
|
getCRDDefinition(crdName: string): Promise<string>;
|
|
176
150
|
/**
|
|
177
|
-
* Get printer columns for a resource type via
|
|
178
|
-
*
|
|
179
|
-
* For CRDs, also fetches jsonPath from the CRD spec (not available in Table API)
|
|
151
|
+
* Get printer columns for a resource type via plugin
|
|
152
|
+
* PRD #343: Uses kubectl_get_printer_columns plugin tool instead of direct API calls
|
|
180
153
|
*
|
|
181
154
|
* @param resourcePlural - Plural name of the resource (e.g., 'deployments', 'pods', 'sqls')
|
|
182
155
|
* @param apiVersion - Full API version (e.g., 'apps/v1', 'v1', 'devopstoolkit.live/v1beta1')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/core/discovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
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