@botpress/adk 2.0.10 → 2.0.11
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/dependencies/index.js +12 -5
- package/dist/dependencies/index.js.map +5 -5
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
- package/dist/dependencies/snapshot-store.d.ts.map +1 -1
- package/dist/dependencies/types.d.ts +27 -0
- package/dist/dependencies/types.d.ts.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +5 -5
- package/package.json +2 -2
|
@@ -78,7 +78,8 @@ var init_types = __esm(() => {
|
|
|
78
78
|
authorizationPending: z.boolean().optional()
|
|
79
79
|
});
|
|
80
80
|
pluginDependencyMappingSchema = z.object({
|
|
81
|
-
integrationAlias: z.string()
|
|
81
|
+
integrationAlias: z.string(),
|
|
82
|
+
integrationInterfaceAlias: z.string().optional()
|
|
82
83
|
});
|
|
83
84
|
pluginDependencyEntrySchema = z.object({
|
|
84
85
|
name: z.string(),
|
|
@@ -3710,7 +3711,10 @@ function dependencySnapshotFromBot(opts) {
|
|
|
3710
3711
|
const dependencies = {};
|
|
3711
3712
|
for (const [ifaceAlias, dep] of Object.entries(cloud.interfaces ?? {})) {
|
|
3712
3713
|
if (typeof dep.integrationAlias === "string") {
|
|
3713
|
-
dependencies[ifaceAlias] = {
|
|
3714
|
+
dependencies[ifaceAlias] = {
|
|
3715
|
+
integrationAlias: dep.integrationAlias,
|
|
3716
|
+
...typeof dep.integrationInterfaceAlias === "string" && dep.integrationInterfaceAlias ? { integrationInterfaceAlias: dep.integrationInterfaceAlias } : {}
|
|
3717
|
+
};
|
|
3714
3718
|
}
|
|
3715
3719
|
}
|
|
3716
3720
|
const alias = chooseCloudAlias({
|
|
@@ -4812,7 +4816,7 @@ var _format = null, _formatLoaded = false, formatCode = async (code, filepath) =
|
|
|
4812
4816
|
`));
|
|
4813
4817
|
return code;
|
|
4814
4818
|
}
|
|
4815
|
-
}, ADK_VERSION = "2.0.
|
|
4819
|
+
}, ADK_VERSION = "2.0.11", relative = (from, to) => {
|
|
4816
4820
|
const fromDir = path13.dirname(from);
|
|
4817
4821
|
const relative2 = path13.relative(fromDir, to);
|
|
4818
4822
|
return relative2.startsWith(".") ? relative2 : `./${relative2}`;
|
|
@@ -4917,7 +4921,10 @@ class PluginResolver {
|
|
|
4917
4921
|
const dependencies = {};
|
|
4918
4922
|
for (const [ifaceAlias, dep] of Object.entries(cloud.interfaces ?? {})) {
|
|
4919
4923
|
if (dep.integrationAlias) {
|
|
4920
|
-
dependencies[ifaceAlias] = {
|
|
4924
|
+
dependencies[ifaceAlias] = {
|
|
4925
|
+
integrationAlias: dep.integrationAlias,
|
|
4926
|
+
...dep.integrationInterfaceAlias && { integrationInterfaceAlias: dep.integrationInterfaceAlias }
|
|
4927
|
+
};
|
|
4921
4928
|
}
|
|
4922
4929
|
}
|
|
4923
4930
|
return {
|
|
@@ -6668,4 +6675,4 @@ export {
|
|
|
6668
6675
|
DEPENDENCY_ERROR_CODES
|
|
6669
6676
|
};
|
|
6670
6677
|
|
|
6671
|
-
//# debugId=
|
|
6678
|
+
//# debugId=620E9FC78152D61364756E2164756E21
|