@mutagent/cli 0.1.60 → 0.1.61
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/bin/cli.js +6 -4
- package/dist/bin/cli.js.map +3 -3
- package/dist/index.js +6 -4
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -964,14 +964,16 @@ class SDKClientWrapper {
|
|
|
964
964
|
try {
|
|
965
965
|
const response = await this.sdk.providerConfigs.listProviders({
|
|
966
966
|
provider: filters?.type,
|
|
967
|
-
includeInactive:
|
|
967
|
+
includeInactive: true
|
|
968
968
|
});
|
|
969
|
-
const
|
|
969
|
+
const raw = response;
|
|
970
|
+
const configs = raw.result?.configs ?? raw.configs ?? [];
|
|
971
|
+
const total = raw.result?.total ?? raw.total ?? configs.length;
|
|
970
972
|
const offset = filters?.offset ?? 0;
|
|
971
973
|
const limit = filters?.limit ?? configs.length;
|
|
972
974
|
return {
|
|
973
975
|
data: configs.slice(offset, offset + limit),
|
|
974
|
-
total
|
|
976
|
+
total
|
|
975
977
|
};
|
|
976
978
|
} catch (error) {
|
|
977
979
|
this.handleError(error);
|
|
@@ -9025,5 +9027,5 @@ program.addCommand(createHooksCommand());
|
|
|
9025
9027
|
program.addCommand(createFeedbackCommand());
|
|
9026
9028
|
program.parse();
|
|
9027
9029
|
|
|
9028
|
-
//# debugId=
|
|
9030
|
+
//# debugId=EA3CD040041CF40164756E2164756E21
|
|
9029
9031
|
//# sourceMappingURL=cli.js.map
|