@botpress/adk 1.18.0-beta.6 → 1.18.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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AgentProjectLoader } from '../agent-project/agent-project.js';
|
|
2
2
|
import { DependencyConfigWriterFactory } from '../agent-project/config-writer.js';
|
|
3
|
+
import { IntegrationDefinition, ParsedIntegration } from './types.js';
|
|
3
4
|
export interface IntegrationVersionInfo {
|
|
4
5
|
name: string;
|
|
5
6
|
version: string;
|
|
@@ -21,6 +22,7 @@ export interface AddIntegrationResult {
|
|
|
21
22
|
alias?: string;
|
|
22
23
|
version?: string;
|
|
23
24
|
ref?: string;
|
|
25
|
+
requiresConfiguration?: boolean;
|
|
24
26
|
}
|
|
25
27
|
interface ResolvedAddIntegrationInput {
|
|
26
28
|
name: string;
|
|
@@ -112,5 +114,27 @@ export declare class IntegrationOperations {
|
|
|
112
114
|
title?: string;
|
|
113
115
|
}>>;
|
|
114
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Detects whether the default configuration of an integration requires user input
|
|
119
|
+
* before it can be enabled. Used to decide whether the first sync of `adk dev`
|
|
120
|
+
* should auto-enable a freshly-added integration on the cloud bot.
|
|
121
|
+
*
|
|
122
|
+
* String shorthand always targets the default `configuration` (singular). Non-default
|
|
123
|
+
* configurationTypes require the explicit object form, so we don't inspect `configurations`.
|
|
124
|
+
*/
|
|
125
|
+
export declare function integrationRequiresConfiguration(definition: IntegrationDefinition): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Decides the `enabled` state for an integration on the cloud bot at sync time.
|
|
128
|
+
* Caller must skip this when the cloud fetch failed — see generator.ts.
|
|
129
|
+
*
|
|
130
|
+
* Resolution order:
|
|
131
|
+
* 1. Explicit `enabled` from agent.config.ts object form — developer override
|
|
132
|
+
* 2. Cloud state — only present once the integration has been synced at least once;
|
|
133
|
+
* preserves the user's dev-console toggle across every subsequent sync
|
|
134
|
+
* 3. First-install default — enable if the integration's default configuration
|
|
135
|
+
* requires no user input, otherwise leave disabled until the user configures
|
|
136
|
+
* it in the dev console
|
|
137
|
+
*/
|
|
138
|
+
export declare function resolveIntegrationEnabled(integration: ParsedIntegration, cloudEnabled: boolean | undefined): boolean;
|
|
115
139
|
export {};
|
|
116
140
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/integrations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACpF,OAAO,EAAgB,6BAA6B,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/integrations/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AACpF,OAAO,EAAgB,6BAA6B,EAAE,MAAM,mCAAmC,CAAA;AAE/F,OAAO,EAAkB,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGrF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,M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ED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAcpH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk",
|
|
3
|
-
"version": "1.18.0
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "Core ADK library for building AI agents on Botpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adk",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@botpress/cli": "~6.3.2",
|
|
50
50
|
"@botpress/client": "~1.39.0",
|
|
51
51
|
"@botpress/cognitive": "~0.5.2",
|
|
52
|
-
"@botpress/runtime": "^1.18.0
|
|
52
|
+
"@botpress/runtime": "^1.18.0",
|
|
53
53
|
"@botpress/sdk": "~6.4.4",
|
|
54
54
|
"@bpinternal/jex": "^1.2.4",
|
|
55
55
|
"@bpinternal/yargs-extra": "^0.0.21",
|