@botpress/runtime 1.7.7 → 1.7.9

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.
@@ -7,12 +7,12 @@
7
7
  import type { Channels as C, ChannelSpec as CS } from '@botpress/runtime/_types/channels';
8
8
  /**
9
9
  * All available channels from installed integrations
10
- * Generated from dependencies.json
10
+ * Generated from agent.config.ts dependencies
11
11
  */
12
12
  export type Channels = C extends never ? string : C;
13
13
  /**
14
14
  * Channel specification type - supports single channel, array of channels, or glob '*'
15
- * Generated from dependencies.json
15
+ * Generated from agent.config.ts dependencies
16
16
  */
17
17
  export type ChannelSpec = CS extends never ? string | readonly string[] | '*' : CS;
18
18
  //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1,19 @@
1
+ import type { Integrations } from './integrations';
2
+ type IntegrationConfigField<K extends keyof Integrations> = Integrations[K] extends {
3
+ config: infer C;
4
+ } ? {
5
+ config?: C;
6
+ } : {};
7
+ export type IntegrationDependency<K extends keyof Integrations = keyof Integrations> = {
8
+ version: string;
9
+ enabled: boolean;
10
+ configurationType?: string;
11
+ connection?: string;
12
+ } & IntegrationConfigField<K>;
13
+ export type Dependencies = {
14
+ integrations: {
15
+ [K in keyof Integrations]: IntegrationDependency<K>;
16
+ };
17
+ };
18
+ export {};
19
+ //# sourceMappingURL=dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/_types/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,KAAK,sBAAsB,CAAC,CAAC,SAAS,MAAM,YAAY,IAAI,YAAY,CAAC,CAAC,CAAC,SAAS;IAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GACnG;IAAE,MAAM,CAAC,EAAE,CAAC,CAAA;CAAE,GACd,EAAE,CAAA;AAEN,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,MAAM,YAAY,IAAI;IACrF,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAA;AAE7B,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,EAAE;SACX,CAAC,IAAI,MAAM,YAAY,GAAG,qBAAqB,CAAC,CAAC,CAAC;KACpD,CAAA;CACF,CAAA"}
@@ -7,7 +7,7 @@
7
7
  import type { Integrations as I } from '@botpress/runtime/_types/integrations';
8
8
  /**
9
9
  * All installed integrations with their typed definitions
10
- * Generated from dependencies.json
10
+ * Generated from agent.config.ts dependencies
11
11
  */
12
12
  export type Integrations = I extends never ? Record<string, any> : I;
13
13
  //# sourceMappingURL=integrations.d.ts.map
@@ -1,25 +1,26 @@
1
1
  import { Autonomous } from './runtime/autonomous';
2
2
  import { z } from '@botpress/sdk';
3
- declare const configSchema: import("@botpress/sdk").ZodObject<{
4
- name: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
5
- description: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodString>;
6
- user: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodObject<{
7
- state: import("@botpress/sdk").ZodOptional<z.Schema<z.Schema<any, import("@botpress/sdk").ZodTypeDef, any>, import("@botpress/sdk").ZodTypeDef, z.Schema<any, import("@botpress/sdk").ZodTypeDef, any>>>;
3
+ import type { Dependencies } from './_types/dependencies';
4
+ declare const configSchema: import("@bpinternal/zui").ZodObject<{
5
+ name: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
6
+ description: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
7
+ user: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
8
+ state: import("@bpinternal/zui").ZodOptional<z.Schema<z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>, import("@bpinternal/zui").ZodTypeDef, z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>>>;
8
9
  }, "strip", {
9
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
10
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
10
11
  }, {
11
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
12
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
12
13
  }>>;
13
- bot: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodObject<{
14
- state: import("@botpress/sdk").ZodOptional<z.Schema<z.Schema<any, import("@botpress/sdk").ZodTypeDef, any>, import("@botpress/sdk").ZodTypeDef, z.Schema<any, import("@botpress/sdk").ZodTypeDef, any>>>;
14
+ bot: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
15
+ state: import("@bpinternal/zui").ZodOptional<z.Schema<z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>, import("@bpinternal/zui").ZodTypeDef, z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>>>;
15
16
  }, "strip", {
16
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
17
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
17
18
  }, {
18
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
19
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
19
20
  }>>;
20
- defaultModels: z.ZodTransformer<import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodObject<{
21
- zai: z.Schema<Autonomous.Model | Autonomous.Model[], import("@botpress/sdk").ZodTypeDef, Autonomous.Model | Autonomous.Model[]>;
22
- autonomous: z.Schema<Autonomous.Model | Autonomous.Model[], import("@botpress/sdk").ZodTypeDef, Autonomous.Model | Autonomous.Model[]>;
21
+ defaultModels: z.ZodTransformer<import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
22
+ zai: z.Schema<Autonomous.Model | Autonomous.Model[], import("@bpinternal/zui").ZodTypeDef, Autonomous.Model | Autonomous.Model[]>;
23
+ autonomous: z.Schema<Autonomous.Model | Autonomous.Model[], import("@bpinternal/zui").ZodTypeDef, Autonomous.Model | Autonomous.Model[]>;
23
24
  }, "strip", {
24
25
  zai: Autonomous.Model | Autonomous.Model[];
25
26
  autonomous: Autonomous.Model | Autonomous.Model[];
@@ -33,27 +34,30 @@ declare const configSchema: import("@botpress/sdk").ZodObject<{
33
34
  zai: Autonomous.Model | Autonomous.Model[];
34
35
  autonomous: Autonomous.Model | Autonomous.Model[];
35
36
  } | undefined>;
37
+ dependencies: z.Schema<Dependencies, import("@bpinternal/zui").ZodTypeDef, Dependencies>;
36
38
  }, "strip", {
37
39
  defaultModels: {
38
40
  zai: Autonomous.Model | Autonomous.Model[];
39
41
  autonomous: Autonomous.Model | Autonomous.Model[];
40
42
  };
43
+ dependencies: Dependencies;
41
44
  description?: string | undefined;
42
45
  name?: string | undefined;
43
46
  user?: {
44
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
47
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
45
48
  } | undefined;
46
49
  bot?: {
47
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
50
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
48
51
  } | undefined;
49
52
  }, {
53
+ dependencies: Dependencies;
50
54
  description?: string | undefined;
51
55
  name?: string | undefined;
52
56
  user?: {
53
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
57
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
54
58
  } | undefined;
55
59
  bot?: {
56
- state?: z.Schema<any, import("@botpress/sdk").ZodTypeDef, any> | undefined;
60
+ state?: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any> | undefined;
57
61
  } | undefined;
58
62
  defaultModels?: {
59
63
  zai: Autonomous.Model | Autonomous.Model[];
@@ -64,7 +68,7 @@ type AgentConfigProps = z.input<typeof configSchema>;
64
68
  export type AgentConfig = z.output<typeof configSchema> & {
65
69
  __brand: 'AgentConfig';
66
70
  };
67
- export declare const defineConfig: (config?: AgentConfigProps) => AgentConfig;
71
+ export declare const defineConfig: (config: AgentConfigProps) => AgentConfig;
68
72
  export declare const isAgentConfig: (value: unknown) => value is AgentConfig;
69
73
  export {};
70
74
  //# sourceMappingURL=define-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,CAAC,EAAW,MAAM,eAAe,CAAA;AAwB1C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhB,CAAA;AAEF,KAAK,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG;IACxD,OAAO,EAAE,aAAa,CAAA;CACvB,CAAA;AAID,eAAO,MAAM,YAAY,GAAI,SAAQ,gBAAqB,KAAG,WAO5D,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,WAIvD,CAAA"}
1
+ {"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,CAAC,EAAW,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAwBzD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBhB,CAAA;AAEF,KAAK,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG;IACxD,OAAO,EAAE,aAAa,CAAA;CACvB,CAAA;AAID,eAAO,MAAM,YAAY,GAAI,QAAQ,gBAAgB,KAAG,WAOvD,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,WAIvD,CAAA"}
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
48
48
  var define_PACKAGE_VERSIONS_default;
49
49
  var init_define_PACKAGE_VERSIONS = __esm({
50
50
  "<define:__PACKAGE_VERSIONS__>"() {
51
- define_PACKAGE_VERSIONS_default = { runtime: "1.7.7", adk: "1.7.7", sdk: "4.18.1", llmz: "0.0.31", zai: "2.5.0", cognitive: "0.2.0" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.7.9", adk: "1.7.9", sdk: "4.19.0", llmz: "0.0.31", zai: "2.5.0", cognitive: "0.2.0" };
52
52
  }
53
53
  });
54
54
 
@@ -43624,7 +43624,8 @@ var configSchema = z16.object({
43624
43624
  }).optional().transform((val) => ({
43625
43625
  zai: val?.zai ?? "openai:gpt-4.1-2025-04-14",
43626
43626
  autonomous: val?.autonomous ?? "openai:gpt-4.1-mini-2025-04-14"
43627
- }))
43627
+ })),
43628
+ dependencies: z16.custom()
43628
43629
  });
43629
43630
  var AGENT_CONFIG_BRAND = Symbol.for("@botpress/runtime/AgentConfig");
43630
43631