@cloudbase/manager-node 5.5.1 → 5.5.2-beta.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/lib/environment.js +5 -0
- package/lib/index.js +3 -0
- package/lib/talosSandbox/index.js +1121 -0
- package/lib/talosSandbox/type.js +3 -0
- package/package.json +1 -1
- package/types/environment.d.ts +3 -0
- package/types/index.d.ts +2 -0
- package/types/talosSandbox/index.d.ts +182 -0
- package/types/talosSandbox/type.d.ts +689 -0
package/lib/environment.js
CHANGED
|
@@ -22,6 +22,7 @@ const cloudApp_1 = require("./cloudApp");
|
|
|
22
22
|
const permission_1 = require("./permission");
|
|
23
23
|
const sandbox_1 = require("./sandbox");
|
|
24
24
|
const aiModel_1 = require("./aiModel");
|
|
25
|
+
const talosSandbox_1 = require("./talosSandbox");
|
|
25
26
|
class Environment {
|
|
26
27
|
constructor(context, envId) {
|
|
27
28
|
this.inited = false;
|
|
@@ -47,6 +48,7 @@ class Environment {
|
|
|
47
48
|
this.cloudAppService = new cloudApp_1.CloudAppService(this);
|
|
48
49
|
this.sandboxService = new sandbox_1.SandboxService(this);
|
|
49
50
|
this.aiModelService = new aiModel_1.AiModelService(this);
|
|
51
|
+
this.talosSandboxService = new talosSandbox_1.TalosSandboxService(this);
|
|
50
52
|
}
|
|
51
53
|
async lazyInit() {
|
|
52
54
|
if (!this.inited) {
|
|
@@ -121,6 +123,9 @@ class Environment {
|
|
|
121
123
|
getAiModelService() {
|
|
122
124
|
return this.aiModelService;
|
|
123
125
|
}
|
|
126
|
+
getTalosSandboxService() {
|
|
127
|
+
return this.talosSandboxService;
|
|
128
|
+
}
|
|
124
129
|
getCommonService(serviceType = 'tcb', serviceVersion) {
|
|
125
130
|
return new common_1.CommonService(this, serviceType, serviceVersion);
|
|
126
131
|
}
|
package/lib/index.js
CHANGED
|
@@ -122,6 +122,9 @@ class CloudBase {
|
|
|
122
122
|
get aiModel() {
|
|
123
123
|
return this.currentEnvironment().getAiModelService();
|
|
124
124
|
}
|
|
125
|
+
get talosSandbox() {
|
|
126
|
+
return this.currentEnvironment().getTalosSandboxService();
|
|
127
|
+
}
|
|
125
128
|
get docs() {
|
|
126
129
|
if (!this.docsService) {
|
|
127
130
|
this.docsService = new docs_1.DocsService();
|