npm package diff

Package: @forge/cli-shared

Versions: 7.0.0-next.9-experimental-76b1041 - 7.0.0-next.10

File: package/out/app-logs/view-logs.js

Index: package/out/app-logs/view-logs.js
===================================================================
--- package/out/app-logs/view-logs.js
+++ package/out/app-logs/view-logs.js
@@ -1,9 +1,14 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.ViewAppLogsCommand = void 0;
+exports.ViewAppLogsCommand = exports.Runtime = void 0;
 const ari_1 = require("@forge/util/packages/ari");
 const ari_2 = require("../ari");
+var Runtime;
+(function (Runtime) {
+    Runtime["RUNTIMEV2"] = "RUNTIMEV2";
+    Runtime["CONTAINER"] = "CONTAINER";
+})(Runtime = exports.Runtime || (exports.Runtime = {}));
 class ViewAppLogsCommand {
     getAppConfig;
     appEnvironmentClient;
     globalEdgeClient;
@@ -15,9 +20,9 @@
         this.globalEdgeClient = globalEdgeClient;
         this.logsClient = logsClient;
         this.statsigService = statsigService;
     }
-    async getAll({ environmentKey, limit, context, startTime = null }) {
+    async getAll({ environmentKey, limit, context, startTime = null, containers = false }) {
         const { id: appId } = await this.getAppConfig();
         const [environmentId, cloudId] = await Promise.all([
             this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
             context ? this.globalEdgeClient.getCloudId(context.site) : undefined
@@ -29,8 +34,11 @@
             limit,
             startTime,
             contextAri: contextAri ? [contextAri] : undefined
         };
+        if (containers) {
+            details.runtime = Runtime.CONTAINER.toLowerCase();
+        }
         const isV2ApiEnabled = await this.statsigService.isLogsV2ApiEnabled();
         if (isV2ApiEnabled) {
             return this.getLogs(details);
         }