ai-project-manage-cli 7.1.30 → 7.1.31
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/dist/index.js +12 -12
- package/dist/webide-message-worker.js +11 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -304,6 +304,10 @@ var init_request_config = __esm({
|
|
|
304
304
|
path: "/cli/deploy-artifact-storage"
|
|
305
305
|
}
|
|
306
306
|
),
|
|
307
|
+
getApmLogStorage: defineEndpoint({
|
|
308
|
+
method: "GET",
|
|
309
|
+
path: "/cli/apm-log-storage"
|
|
310
|
+
}),
|
|
307
311
|
attachTaskDeploymentArtifact: defineEndpoint({
|
|
308
312
|
method: "PUT",
|
|
309
313
|
path: "/cli/task-deployments/artifact"
|
|
@@ -481,8 +485,12 @@ var init_minio = __esm({
|
|
|
481
485
|
});
|
|
482
486
|
|
|
483
487
|
// src/commands/connect/apm-log-minio.ts
|
|
484
|
-
function
|
|
485
|
-
const
|
|
488
|
+
async function fetchApmLogStorage(cfg) {
|
|
489
|
+
const api = createApmApiClient(cfg);
|
|
490
|
+
return api.cli.getApmLogStorage(void 0);
|
|
491
|
+
}
|
|
492
|
+
async function createApmLogMinioClient(cfg) {
|
|
493
|
+
const storage = await fetchApmLogStorage(cfg);
|
|
486
494
|
return {
|
|
487
495
|
client: new MinioClient({
|
|
488
496
|
endPoint: storage.endpoint,
|
|
@@ -494,19 +502,11 @@ function createApmLogMinioClient() {
|
|
|
494
502
|
bucket: storage.bucket
|
|
495
503
|
};
|
|
496
504
|
}
|
|
497
|
-
var APM_LOG_MINIO_CONFIG;
|
|
498
505
|
var init_apm_log_minio = __esm({
|
|
499
506
|
"src/commands/connect/apm-log-minio.ts"() {
|
|
500
507
|
"use strict";
|
|
508
|
+
init_client();
|
|
501
509
|
init_minio();
|
|
502
|
-
APM_LOG_MINIO_CONFIG = {
|
|
503
|
-
endpoint: "objectstorageapi.gzg.sealos.run",
|
|
504
|
-
port: 443,
|
|
505
|
-
useSsl: true,
|
|
506
|
-
accessKey: "428hqav4",
|
|
507
|
-
secretKey: "68b8srk4vdbjdhlc",
|
|
508
|
-
bucket: "428hqav4-apm-log"
|
|
509
|
-
};
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
|
|
@@ -647,7 +647,7 @@ var init_webide_terminal_registry = __esm({
|
|
|
647
647
|
bucket = "";
|
|
648
648
|
async ensureMinio() {
|
|
649
649
|
if (this.minio) return;
|
|
650
|
-
const created = createApmLogMinioClient();
|
|
650
|
+
const created = await createApmLogMinioClient(this.cfg);
|
|
651
651
|
this.minio = created.client;
|
|
652
652
|
this.bucket = created.bucket;
|
|
653
653
|
await this.minio.ensureBucket(this.bucket);
|
|
@@ -208,6 +208,10 @@ var requestConfig = {
|
|
|
208
208
|
path: "/cli/deploy-artifact-storage"
|
|
209
209
|
}
|
|
210
210
|
),
|
|
211
|
+
getApmLogStorage: defineEndpoint({
|
|
212
|
+
method: "GET",
|
|
213
|
+
path: "/cli/apm-log-storage"
|
|
214
|
+
}),
|
|
211
215
|
attachTaskDeploymentArtifact: defineEndpoint({
|
|
212
216
|
method: "PUT",
|
|
213
217
|
path: "/cli/task-deployments/artifact"
|
|
@@ -2704,16 +2708,12 @@ var MinioClient = class {
|
|
|
2704
2708
|
};
|
|
2705
2709
|
|
|
2706
2710
|
// src/commands/connect/apm-log-minio.ts
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
bucket: "428hqav4-apm-log"
|
|
2714
|
-
};
|
|
2715
|
-
function createApmLogMinioClient() {
|
|
2716
|
-
const storage = APM_LOG_MINIO_CONFIG;
|
|
2711
|
+
async function fetchApmLogStorage(cfg) {
|
|
2712
|
+
const api = createApmApiClient(cfg);
|
|
2713
|
+
return api.cli.getApmLogStorage(void 0);
|
|
2714
|
+
}
|
|
2715
|
+
async function createApmLogMinioClient(cfg) {
|
|
2716
|
+
const storage = await fetchApmLogStorage(cfg);
|
|
2717
2717
|
return {
|
|
2718
2718
|
client: new MinioClient({
|
|
2719
2719
|
endPoint: storage.endpoint,
|
|
@@ -2766,7 +2766,7 @@ function createThrottledWebIdeMessageLogSync(cfg, ctx, onError, options) {
|
|
|
2766
2766
|
let firstLogNotified = false;
|
|
2767
2767
|
const ensureMinio = async () => {
|
|
2768
2768
|
if (minio) return;
|
|
2769
|
-
const created = createApmLogMinioClient();
|
|
2769
|
+
const created = await createApmLogMinioClient(cfg);
|
|
2770
2770
|
minio = created.client;
|
|
2771
2771
|
bucket = created.bucket;
|
|
2772
2772
|
await minio.ensureBucket(bucket);
|