@botpress/adk 1.19.0-beta.9 → 2.0.0-alpha.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.
- package/dist/agent-init/agent-project-generator.d.ts +5 -1
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +3 -3
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/agent-resolver.d.ts.map +1 -1
- package/dist/agent-project/config-writer.d.ts +1 -1
- package/dist/agent-project/dependency-state-to-dependencies.d.ts +11 -0
- package/dist/agent-project/dependency-state-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +9 -4
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-build.md +6 -5
- package/dist/agent0/capabilities/commands/adk-debug.md +1 -1
- package/dist/agent0/capabilities/commands/adk-dev-console.md +1 -1
- package/dist/agent0/capabilities/commands/adk-document.md +10 -2
- package/dist/agent0/capabilities/commands/adk-eval.md +1 -1
- package/dist/agent0/capabilities/commands/adk-explain.md +2 -2
- package/dist/agent0/capabilities/commands/adk-init.md +2 -2
- package/dist/agent0/capabilities/commands/adk-ship.md +1 -1
- package/dist/agent0/capabilities/commands/adk-test.md +3 -3
- package/dist/agent0/capabilities/commands/adk-validate.md +3 -3
- package/dist/agent0/capabilities/skills/adk/SKILL.md +21 -21
- package/dist/agent0/capabilities/skills/adk/references/actions.md +245 -239
- package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +185 -218
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +74 -71
- package/dist/agent0/capabilities/skills/adk/references/assets.md +45 -48
- package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +40 -46
- package/dist/agent0/capabilities/skills/adk/references/cli.md +17 -7
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +98 -94
- package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +65 -62
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +395 -385
- package/dist/agent0/capabilities/skills/adk/references/custom-components.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/desk.md +236 -234
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +54 -37
- package/dist/agent0/capabilities/skills/adk/references/files.md +301 -306
- package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +211 -214
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +33 -31
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +13 -12
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +98 -111
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +6 -0
- package/dist/agent0/capabilities/skills/adk/references/messages.md +280 -256
- package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +52 -49
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +102 -101
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +15 -15
- package/dist/agent0/capabilities/skills/adk/references/tables.md +204 -210
- package/dist/agent0/capabilities/skills/adk/references/tags.md +141 -143
- package/dist/agent0/capabilities/skills/adk/references/tools.md +191 -199
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +331 -336
- package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +132 -96
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +479 -464
- package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +127 -129
- package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +255 -276
- package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +21 -17
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +25 -25
- package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +49 -41
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +20 -14
- package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +13 -13
- package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +18 -18
- package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +67 -67
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +36 -36
- package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +14 -6
- package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +13 -13
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +18 -0
- package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +13 -13
- package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +15 -0
- package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +29 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +31 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +25 -36
- package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +6 -4
- package/dist/agent0/index.js +41 -19
- package/dist/agent0/index.js.map +7 -7
- package/dist/agent0/runtime/client.d.ts +2 -0
- package/dist/agent0/runtime/client.d.ts.map +1 -1
- package/dist/agent0/runtime/engine.d.ts +2 -1
- package/dist/agent0/runtime/engine.d.ts.map +1 -1
- package/dist/agent0/runtime/process.d.ts +1 -0
- package/dist/agent0/runtime/process.d.ts.map +1 -1
- package/dist/assets/manager.d.ts +3 -0
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/bot-generator/generator.d.ts +22 -0
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +1 -1
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-stderr.d.ts +9 -0
- package/dist/commands/bp-dev-stderr.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/dependencies/catalog/catalog-service.d.ts +53 -0
- package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -0
- package/dist/dependencies/catalog/client-factory.d.ts +33 -0
- package/dist/dependencies/catalog/client-factory.d.ts.map +1 -0
- package/dist/dependencies/catalog/integration-source.d.ts +34 -0
- package/dist/dependencies/catalog/integration-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/interface-source.d.ts +23 -0
- package/dist/dependencies/catalog/interface-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/plugin-source.d.ts +49 -0
- package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts +76 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +31 -16
- package/dist/dependencies/dependency-manager.d.ts.map +1 -1
- package/dist/dependencies/errors.d.ts +2 -2
- package/dist/dependencies/errors.d.ts.map +1 -1
- package/dist/dependencies/index.d.ts +5 -4
- package/dist/dependencies/index.d.ts.map +1 -1
- package/dist/dependencies/index.js +2089 -1670
- package/dist/dependencies/index.js.map +37 -30
- package/dist/dependencies/legacy-lock-file.d.ts +15 -0
- package/dist/dependencies/legacy-lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +19 -0
- package/dist/dependencies/migration.d.ts.map +1 -1
- package/dist/dependencies/resolvers/integration-resolver.d.ts +4 -3
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +4 -4
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
- package/dist/dependencies/snapshot-store.d.ts +59 -0
- package/dist/dependencies/snapshot-store.d.ts.map +1 -0
- package/dist/dependencies/status-resolver.d.ts +36 -0
- package/dist/dependencies/status-resolver.d.ts.map +1 -0
- package/dist/dependencies/status.d.ts +214 -0
- package/dist/dependencies/status.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +380 -29
- package/dist/dependencies/types.d.ts.map +1 -1
- package/dist/file-watcher/watcher.d.ts +21 -5
- package/dist/file-watcher/watcher.d.ts.map +1 -1
- package/dist/generators/action-types.d.ts.map +1 -1
- package/dist/generators/client-wrapper.d.ts.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3134 -2226
- package/dist/index.js.map +55 -48
- package/dist/integrations/config-utils.d.ts +11 -7
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/hub-cache.d.ts +0 -58
- package/dist/integrations/hub-cache.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +1 -3
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +19 -53
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/enhanced-cache.d.ts +7 -7
- package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +11 -17
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -0
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +16 -48
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +6 -1
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/dependency-gate.d.ts +37 -0
- package/dist/preflight/dependency-gate.d.ts.map +1 -0
- package/dist/preflight/index.d.ts +2 -1
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +18 -0
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts +3 -0
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/templates/README.md +23 -13
- package/dist/templates/blank/agent.config.ts +3 -3
- package/dist/templates/blank/src/triggers/index.ts +1 -1
- package/dist/templates/botpress-desk/evals/index.eval.ts +1 -1
- package/dist/templates/botpress-desk/src/triggers/index.ts +1 -1
- package/dist/templates/crm-enrichment/README.md +3 -3
- package/dist/templates/crm-enrichment/agent.config.ts +2 -2
- package/dist/templates/crm-enrichment/src/conversations/index.ts +1 -1
- package/dist/templates/hello-world/agent.config.ts +3 -3
- package/dist/templates/hello-world/src/triggers/index.ts +1 -1
- package/dist/templates/knowledge-assistant/src/triggers/index.ts +1 -1
- package/dist/templates/template.config.json +3 -3
- package/dist/utils/ids.d.ts +10 -0
- package/dist/utils/ids.d.ts.map +1 -1
- package/dist/workspace/workspace-cache.d.ts +2 -1
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/agent-project/lock-to-dependencies.d.ts +0 -11
- package/dist/agent-project/lock-to-dependencies.d.ts.map +0 -1
- package/dist/dependencies/lock-file.d.ts +0 -15
- package/dist/dependencies/lock-file.d.ts.map +0 -1
- package/dist/integrations/enhanced-cache.d.ts +0 -53
- package/dist/integrations/enhanced-cache.d.ts.map +0 -1
- package/dist/plugins/enhanced-cache.d.ts +0 -53
- package/dist/plugins/enhanced-cache.d.ts.map +0 -1
- package/dist/templates/blank/package.json +0 -17
- package/dist/templates/blank/tsconfig.json +0 -25
- package/dist/templates/botpress-desk/package.json +0 -17
- package/dist/templates/crm-enrichment/package.json +0 -18
- package/dist/templates/crm-enrichment/tsconfig.json +0 -25
- package/dist/templates/hello-world/package.json +0 -18
- package/dist/templates/hello-world/tsconfig.json +0 -25
- package/dist/templates/knowledge-assistant/package.json +0 -18
- package/dist/templates/knowledge-assistant/tsconfig.json +0 -25
- package/dist/templates/slack-triage/package.json +0 -18
- package/dist/templates/slack-triage/tsconfig.json +0 -25
|
@@ -5,16 +5,20 @@ import type { AgentProject } from '../agent-project/agent-project.js';
|
|
|
5
5
|
* - If local config is defined, merges it on top of server-side config (local wins per-key).
|
|
6
6
|
*/
|
|
7
7
|
export declare function mergeIntegrationConfig(current: Record<string, unknown> | undefined, desired: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Checks whether the local (desired) config matches the current (server) config.
|
|
10
|
-
* Only compares keys present in `desired` — server-only keys are intentionally
|
|
11
|
-
* preserved and do not count as drift. Falls back to schema defaults when a value
|
|
12
|
-
* is missing on either side.
|
|
13
|
-
*/
|
|
14
|
-
export declare function configsMatch(current: Record<string, unknown> | undefined, desired: Record<string, unknown>, schemaDefaults?: Record<string, unknown>): boolean;
|
|
15
8
|
export interface FetchServerConfigsResult {
|
|
16
9
|
configs: Record<string, Record<string, unknown>>;
|
|
17
10
|
enabledStates: Record<string, boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* Per-integration *authorization* state on the target bot, from `getBot`: `true` when the
|
|
13
|
+
* cloud integration has an `identifier` (the OAuth/connection flow was completed). Distinct
|
|
14
|
+
* from `enabledStates`: a managed-OAuth integration can be `enabled` yet unauthorized
|
|
15
|
+
* (toggled on, never connected), which Cloud's `register` hook hard-fails on. Codegen uses
|
|
16
|
+
* this to leave an unauthorized auth-gated integration inert (`enabled: false`) instead of
|
|
17
|
+
* letting the whole `bp` deploy/dev boot abort. A missing alias means the integration is not
|
|
18
|
+
* on the cloud bot yet (treated as unauthorized). Mirrors `bp`'s own
|
|
19
|
+
* `isAuthorized = !!integration.identifier`.
|
|
20
|
+
*/
|
|
21
|
+
authorizedStates: Record<string, boolean>;
|
|
18
22
|
fetched: boolean;
|
|
19
23
|
skipped: boolean;
|
|
20
24
|
error?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-utils.d.ts","sourceRoot":"","sources":["../../src/integrations/config-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAErE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC3C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,C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 +19,4 @@ export interface HubCacheData {
|
|
|
19
19
|
lastUpdated: string;
|
|
20
20
|
integrations: HubCacheEntry[];
|
|
21
21
|
}
|
|
22
|
-
export declare class HubCache {
|
|
23
|
-
private static readonly CACHE_FILE;
|
|
24
|
-
private static readonly CACHE_DIR;
|
|
25
|
-
private static readonly CACHE_PATH;
|
|
26
|
-
private static readonly CACHE_DURATION;
|
|
27
|
-
private client?;
|
|
28
|
-
constructor();
|
|
29
|
-
private getClient;
|
|
30
|
-
/**
|
|
31
|
-
* Ensure cache directory exists
|
|
32
|
-
*/
|
|
33
|
-
private ensureCacheDir;
|
|
34
|
-
/**
|
|
35
|
-
* Load cache from disk
|
|
36
|
-
*/
|
|
37
|
-
private loadCache;
|
|
38
|
-
/**
|
|
39
|
-
* Save cache to disk
|
|
40
|
-
*/
|
|
41
|
-
private saveCache;
|
|
42
|
-
/**
|
|
43
|
-
* Check if cache needs refresh
|
|
44
|
-
*/
|
|
45
|
-
private needsRefresh;
|
|
46
|
-
/**
|
|
47
|
-
* Refresh the hub cache
|
|
48
|
-
*/
|
|
49
|
-
refresh(force?: boolean): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Get all integrations from cache
|
|
52
|
-
*/
|
|
53
|
-
getAllIntegrations(): Promise<HubCacheEntry[]>;
|
|
54
|
-
/**
|
|
55
|
-
* Search integrations by name
|
|
56
|
-
*/
|
|
57
|
-
searchIntegrations(query: string): Promise<HubCacheEntry[]>;
|
|
58
|
-
/**
|
|
59
|
-
* Get integration by name (latest version)
|
|
60
|
-
*/
|
|
61
|
-
getIntegrationByName(name: string): Promise<HubCacheEntry | null>;
|
|
62
|
-
/**
|
|
63
|
-
* Get all versions of an integration
|
|
64
|
-
* Note: Since we only cache latest versions, this returns only the latest
|
|
65
|
-
*/
|
|
66
|
-
getIntegrationVersions(name: string): Promise<string[]>;
|
|
67
|
-
/**
|
|
68
|
-
* Get cache statistics
|
|
69
|
-
*/
|
|
70
|
-
getStats(): Promise<{
|
|
71
|
-
lastUpdated: Date | null;
|
|
72
|
-
integrationCount: number;
|
|
73
|
-
cacheSize: number;
|
|
74
|
-
}>;
|
|
75
|
-
/**
|
|
76
|
-
* Clear the cache
|
|
77
|
-
*/
|
|
78
|
-
clear(): Promise<void>;
|
|
79
|
-
}
|
|
80
22
|
//# sourceMappingURL=hub-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub-cache.d.ts","sourceRoot":"","sources":["../../src/integrations/hub-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hub-cache.d.ts","sourceRoot":"","sources":["../../src/integrations/hub-cache.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAA;IAC7C,cAAc,CAAC,EAAE;QACf,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,kBAAkB,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;CACxE;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,aAAa,EAAE,CAAA;CAC9B"}
|
|
@@ -2,10 +2,8 @@ export { IntegrationManager } from './manager.js';
|
|
|
2
2
|
export type { IntegrationManagerOptions } from './manager.js';
|
|
3
3
|
export { IntegrationParser } from '../agent-project/dependencies-parser.js';
|
|
4
4
|
export { IntegrationCache } from './cache.js';
|
|
5
|
-
export { EnhancedIntegrationCache } from './enhanced-cache.js';
|
|
6
|
-
export { HubCache } from './hub-cache.js';
|
|
7
5
|
export type { HubCacheEntry, HubCacheData } from './hub-cache.js';
|
|
8
|
-
export { mergeIntegrationConfig,
|
|
6
|
+
export { mergeIntegrationConfig, fetchServerIntegrationConfigs, fetchServerPluginConfigs } from './config-utils.js';
|
|
9
7
|
export type { FetchServerConfigsResult, FetchServerPluginConfigsResult } from './config-utils.js';
|
|
10
8
|
export * from './types.js';
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,YAAY,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,YAAY,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACnH,YAAY,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAA;AACjG,cAAc,YAAY,CAAA"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { type Credentials, type ProjectCredentialsContext } from '../auth/index.js';
|
|
2
1
|
import { Dependencies, ValidationError } from '../agent-project/types.js';
|
|
3
2
|
import { IntegrationDefinition, ParsedIntegration, IntegrationRef } from './types.js';
|
|
4
3
|
import type { HubCacheEntry } from './hub-cache.js';
|
|
5
|
-
|
|
4
|
+
import { type CatalogClientOptions } from '../dependencies/catalog/client-factory.js';
|
|
5
|
+
export interface IntegrationManagerOptions extends CatalogClientOptions {
|
|
6
6
|
noCache?: boolean;
|
|
7
|
-
project?: ProjectCredentialsContext;
|
|
8
|
-
apiUrl?: string;
|
|
9
|
-
workspaceId?: string;
|
|
10
|
-
credentials?: Credentials;
|
|
11
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Loads, validates and searches integrations.
|
|
10
|
+
*
|
|
11
|
+
* Since WS4 this is a thin shim: the cloud fetch + two-level cache live in the
|
|
12
|
+
* unified {@link CatalogService} / {@link IntegrationCatalogSource}. This class
|
|
13
|
+
* keeps the parse-and-validate orchestration (`loadIntegrations`) and the stable
|
|
14
|
+
* public surface that the rest of the ADK and the package consumers import.
|
|
15
|
+
*/
|
|
12
16
|
export declare class IntegrationManager {
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private client?;
|
|
17
|
+
private readonly source;
|
|
18
|
+
private readonly service;
|
|
16
19
|
constructor(options?: IntegrationManagerOptions);
|
|
17
|
-
private getClient;
|
|
18
20
|
/**
|
|
19
21
|
* Load and validate all integrations from dependencies
|
|
20
22
|
*/
|
|
@@ -23,58 +25,22 @@ export declare class IntegrationManager {
|
|
|
23
25
|
errors: ValidationError[];
|
|
24
26
|
warnings: ValidationError[];
|
|
25
27
|
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Fetch integration definition from API or cache
|
|
28
|
-
*/
|
|
28
|
+
/** Fetch an integration definition from API or cache. */
|
|
29
29
|
fetchIntegration(ref: IntegrationRef): Promise<IntegrationDefinition>;
|
|
30
|
-
/**
|
|
31
|
-
* Search public integrations in the Botpress hub.
|
|
32
|
-
*/
|
|
30
|
+
/** Search public integrations in the Botpress hub. */
|
|
33
31
|
searchIntegrations(query: string, limit?: number): Promise<HubCacheEntry[]>;
|
|
34
|
-
/**
|
|
35
|
-
* Find public integrations that implement a given interface (by interface name).
|
|
36
|
-
* Returns the latest version per integration name, ranked by Cloud's popularity.
|
|
37
|
-
*/
|
|
32
|
+
/** Find public integrations that implement a given interface (by interface name). */
|
|
38
33
|
findImplementersOfInterface(interfaceName: string, limit?: number): Promise<HubCacheEntry[]>;
|
|
39
|
-
/**
|
|
40
|
-
* List known public versions for an integration name.
|
|
41
|
-
*/
|
|
34
|
+
/** List known public versions for an integration name. */
|
|
42
35
|
listIntegrationVersions(name: string): Promise<string[]>;
|
|
43
|
-
/**
|
|
44
|
-
* Find integration in private workspace first, then public hub
|
|
45
|
-
* Similar to ApiClient.findPublicOrPrivateIntegration from @botpress/cli
|
|
46
|
-
*/
|
|
47
|
-
private _findPrivateOrPublicIntegration;
|
|
48
|
-
/**
|
|
49
|
-
* Find private/workspace integration
|
|
50
|
-
*/
|
|
51
|
-
private _findPrivateIntegration;
|
|
52
|
-
/**
|
|
53
|
-
* Find public integration
|
|
54
|
-
*/
|
|
55
|
-
private _findPublicIntegration;
|
|
56
|
-
/**
|
|
57
|
-
* Check if error is a ResourceNotFound error
|
|
58
|
-
*/
|
|
59
|
-
private _isResourceNotFoundError;
|
|
60
|
-
/**
|
|
61
|
-
* Build a helpful error message when integration is not found
|
|
62
|
-
*/
|
|
63
|
-
private _buildIntegrationNotFoundError;
|
|
64
|
-
/**
|
|
65
|
-
* Validate an integration definition
|
|
66
|
-
*/
|
|
67
|
-
private validateIntegration;
|
|
68
|
-
/**
|
|
69
|
-
* Get cache statistics
|
|
70
|
-
*/
|
|
71
36
|
getCacheStats(): Promise<{
|
|
72
37
|
count: number;
|
|
73
38
|
sizeBytes: number;
|
|
74
39
|
}>;
|
|
40
|
+
clearCache(): Promise<void>;
|
|
75
41
|
/**
|
|
76
|
-
*
|
|
42
|
+
* Validate an integration definition
|
|
77
43
|
*/
|
|
78
|
-
|
|
44
|
+
private validateIntegration;
|
|
79
45
|
}
|
|
80
46
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/integrations/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/integrations/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAA+B,cAAc,EAAE,MAAM,YAAY,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAI3G,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuD;gBAEnE,OAAO,GAAE,yBAA8B;IAMnD;;OAEG;IACG,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QAC1D,YAAY,EAAE,iBAAiB,EAAE,CAAA;QACjC,MAAM,EAAE,eAAe,EAAE,CAAA;QACzB,QAAQ,EAAE,eAAe,EAAE,CAAA;KAC5B,CAAC;IAmEF,yDAAyD;IAC5C,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIlF,sDAAsD;IACzC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAI5F,qFAAqF;IACxE,2BAA2B,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAI7G,0DAA0D;IAC7C,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAI/D,aAAa,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAI9D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC;;OAEG;IACH,OAAO,CAAC,mBAAmB;CA4C5B"}
|
|
@@ -4,13 +4,15 @@ interface VersionResolution {
|
|
|
4
4
|
updatedAt: string;
|
|
5
5
|
cachedAt: string;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Two-level interface cache. Since WS4 this is a thin shim over the unified
|
|
9
|
+
* {@link ResolutionCache}; the on-disk layout (`~/.adk/cache/interfaces/…`), key
|
|
10
|
+
* sanitization, 5-min resolution TTL, and the `interfaceId` resolution field are
|
|
11
|
+
* preserved byte-for-byte. Kept as a public export for compatibility.
|
|
12
|
+
*/
|
|
7
13
|
export declare class EnhancedInterfaceCache {
|
|
8
|
-
private
|
|
9
|
-
private resolutionsDir;
|
|
10
|
-
private definitionsDir;
|
|
11
|
-
private noCache;
|
|
14
|
+
private readonly cache;
|
|
12
15
|
constructor(noCache?: boolean);
|
|
13
|
-
private ensureCacheDirs;
|
|
14
16
|
getResolution(name: string, version: string, workspace?: string): Promise<VersionResolution | null>;
|
|
15
17
|
setResolution(name: string, version: string, workspace: string | undefined, interfaceId: string, updatedAt: string): Promise<void>;
|
|
16
18
|
getDefinition(interfaceId: string, updatedAt: string): Promise<InterfaceDefinition | null>;
|
|
@@ -26,8 +28,6 @@ export declare class EnhancedInterfaceCache {
|
|
|
26
28
|
sizeBytes: number;
|
|
27
29
|
};
|
|
28
30
|
}>;
|
|
29
|
-
private getResolutionKey;
|
|
30
|
-
private getDefinitionKey;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
33
33
|
//# sourceMappingURL=enhanced-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enhanced-cache.d.ts","sourceRoot":"","sources":["../../src/interfaces/enhanced-cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enhanced-cache.d.ts","sourceRoot":"","sources":["../../src/interfaces/enhanced-cache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEhD,UAAU,iBAAiB;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;;;GAKG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsC;gBAEhD,OAAO,GAAE,OAAe;IAI9B,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAMnG,aAAa,CACjB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;IAIV,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAI1F,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,QAAQ,IAAI,OAAO,CAAC;QACxB,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAA;QACjD,WAAW,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,CAAA;KAClD,CAAC;CAGH"}
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { type Credentials, type ProjectCredentialsContext } from '../auth/index.js';
|
|
2
1
|
import { Dependencies, ValidationError } from '../agent-project/types.js';
|
|
3
2
|
import { InterfaceDefinition, ParsedInterface, InterfaceRef } from './types.js';
|
|
4
|
-
|
|
3
|
+
import { type CatalogClientOptions } from '../dependencies/catalog/client-factory.js';
|
|
4
|
+
export interface InterfaceManagerOptions extends CatalogClientOptions {
|
|
5
5
|
noCache?: boolean;
|
|
6
|
-
project?: ProjectCredentialsContext;
|
|
7
|
-
apiUrl?: string;
|
|
8
|
-
workspaceId?: string;
|
|
9
|
-
credentials?: Credentials;
|
|
10
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Loads and validates interfaces.
|
|
9
|
+
*
|
|
10
|
+
* Since WS4 this is a thin shim over the unified {@link CatalogService} /
|
|
11
|
+
* {@link InterfaceCatalogSource} (fetch-by-ref only — interfaces are never
|
|
12
|
+
* listed/enumerated; the project's interface set is fixed by `BUILTIN_INTERFACES`).
|
|
13
|
+
*/
|
|
11
14
|
export declare class InterfaceManager {
|
|
12
|
-
private
|
|
13
|
-
private options;
|
|
14
|
-
private client?;
|
|
15
|
+
private readonly service;
|
|
15
16
|
constructor(options?: InterfaceManagerOptions);
|
|
16
|
-
private getClient;
|
|
17
17
|
loadInterfaces(dependencies: Dependencies): Promise<{
|
|
18
18
|
interfaces: ParsedInterface[];
|
|
19
19
|
errors: ValidationError[];
|
|
20
20
|
warnings: ValidationError[];
|
|
21
21
|
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Fetch interface definition from API or cache
|
|
24
|
-
*/
|
|
22
|
+
/** Fetch an interface definition from API or cache. */
|
|
25
23
|
fetchInterface(ref: InterfaceRef): Promise<InterfaceDefinition>;
|
|
26
|
-
/**
|
|
27
|
-
* Convenience: parse and fetch from a dependency string like "name@1.2.3" or "workspace/name@latest"
|
|
28
|
-
*/
|
|
29
|
-
getByDependencyString(dep: string): Promise<InterfaceDefinition>;
|
|
30
24
|
private validateInterface;
|
|
31
25
|
getCacheStats(): Promise<{
|
|
32
26
|
count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/interfaces/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/interfaces/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAA6B,MAAM,YAAY,CAAA;AAG1G,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAI3G,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;GAMG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmD;gBAE/D,OAAO,GAAE,uBAA4B;IAQ3C,cAAc,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QACxD,UAAU,EAAE,eAAe,EAAE,CAAA;QAC7B,MAAM,EAAE,eAAe,EAAE,CAAA;QACzB,QAAQ,EAAE,eAAe,EAAE,CAAA;KAC5B,CAAC;IAwCF,uDAAuD;IAC1C,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5E,OAAO,CAAC,iBAAiB;IAYnB,aAAa,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAI9D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Client } from '@botpress/client';
|
|
2
|
+
import { type Credentials } from '../auth/index.js';
|
|
2
3
|
import { AgentProject } from '../agent-project/agent-project.js';
|
|
3
4
|
import { LocalKnowledgeBase, KBSyncPlan, KBSyncResult, KBSyncOptions, OrphanedSource } from './types.js';
|
|
4
5
|
type RemoteKnowledgeBase = Pick<Awaited<ReturnType<Client['listKnowledgeBases']>>['knowledgeBases'][number], 'id' | 'name' | 'tags'>;
|
|
5
6
|
export interface KnowledgeManagerOptions {
|
|
6
7
|
project: AgentProject;
|
|
7
8
|
botId?: string;
|
|
9
|
+
credentials?: Credentials;
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* Manages knowledge base synchronization for ADK projects
|
|
@@ -13,6 +15,7 @@ export declare class KnowledgeManager {
|
|
|
13
15
|
private client?;
|
|
14
16
|
private botId?;
|
|
15
17
|
private project;
|
|
18
|
+
private credentials?;
|
|
16
19
|
/** Cache of file hashes by directory path to avoid recalculating */
|
|
17
20
|
private fileHashCache;
|
|
18
21
|
private remoteKbsPromise;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/knowledge/manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/knowledge/manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAI9C,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,YAAY,EAGZ,aAAa,EAIb,cAAc,EAEf,MAAM,YAAY,CAAA;AAEnB,KAAK,mBAAmB,G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/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { PluginParser } from '../agent-project/dependencies-parser.js';
|
|
2
2
|
export type { PluginRef, PluginDependencyMapping, ParsedPlugin, PluginDefinition } from './types.js';
|
|
3
|
-
export { EnhancedPluginCache } from './enhanced-cache.js';
|
|
4
3
|
export { PluginManager } from './manager.js';
|
|
5
4
|
export type { PluginManagerOptions } from './manager.js';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,YAAY,EAAE,SAAS,EAAE,uBAAuB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACpG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,YAAY,EAAE,SAAS,EAAE,uBAAuB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,YAAY,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import { type Credentials, type ProjectCredentialsContext } from '../auth/index.js';
|
|
2
1
|
import { Dependencies, ValidationError } from '../agent-project/types.js';
|
|
3
2
|
import { PluginDefinition, PluginRef, ParsedPlugin } from './types.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
createdAt: string;
|
|
9
|
-
updatedAt: string;
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
iconUrl: string;
|
|
13
|
-
readmeUrl: string;
|
|
14
|
-
public: boolean;
|
|
15
|
-
visibility: 'public' | 'private' | 'unlisted';
|
|
16
|
-
lifecycleStatus: 'published' | 'deprecated';
|
|
17
|
-
}
|
|
18
|
-
export interface PluginManagerOptions {
|
|
3
|
+
import { type CatalogClientOptions } from '../dependencies/catalog/client-factory.js';
|
|
4
|
+
import { type PluginSearchResult } from '../dependencies/catalog/plugin-source.js';
|
|
5
|
+
export type { PluginSearchResult };
|
|
6
|
+
export interface PluginManagerOptions extends CatalogClientOptions {
|
|
19
7
|
noCache?: boolean;
|
|
20
|
-
project?: ProjectCredentialsContext;
|
|
21
|
-
apiUrl?: string;
|
|
22
|
-
workspaceId?: string;
|
|
23
|
-
credentials?: Credentials;
|
|
24
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Loads, validates and searches plugins.
|
|
11
|
+
*
|
|
12
|
+
* Since WS4 this is a thin shim over the unified {@link CatalogService} /
|
|
13
|
+
* {@link PluginCatalogSource} (public Botpress Hub only). It keeps the
|
|
14
|
+
* parse-and-validate orchestration (`loadPlugins`) and the stable public surface.
|
|
15
|
+
*/
|
|
25
16
|
export declare class PluginManager {
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private client?;
|
|
17
|
+
private readonly source;
|
|
18
|
+
private readonly service;
|
|
29
19
|
constructor(options?: PluginManagerOptions);
|
|
30
|
-
private getClient;
|
|
31
20
|
/**
|
|
32
21
|
* Load and validate all plugins from dependencies
|
|
33
22
|
*/
|
|
@@ -36,37 +25,16 @@ export declare class PluginManager {
|
|
|
36
25
|
errors: ValidationError[];
|
|
37
26
|
warnings: ValidationError[];
|
|
38
27
|
}>;
|
|
39
|
-
/**
|
|
40
|
-
* Fetch plugin definition from API or cache (public Hub only)
|
|
41
|
-
*/
|
|
28
|
+
/** Fetch a plugin definition from API or cache (public Hub only). */
|
|
42
29
|
fetchPlugin(ref: PluginRef): Promise<PluginDefinition>;
|
|
43
|
-
/**
|
|
44
|
-
* Search public plugins in the Botpress hub.
|
|
45
|
-
*
|
|
46
|
-
* The public plugin list API does not expose server-side search yet, so this
|
|
47
|
-
* filters the catalog client-side. The catalog is small, and callers cap
|
|
48
|
-
* results to keep CLI output compact.
|
|
49
|
-
*/
|
|
30
|
+
/** Search public plugins in the Botpress hub. */
|
|
50
31
|
searchPlugins(query: string, limit?: number): Promise<PluginSearchResult[]>;
|
|
51
|
-
/**
|
|
52
|
-
* List known public versions for a plugin name.
|
|
53
|
-
*/
|
|
32
|
+
/** List known public versions for a plugin name. */
|
|
54
33
|
listPluginVersions(name: string): Promise<string[]>;
|
|
55
|
-
/**
|
|
56
|
-
* Find public plugin on the Botpress Hub
|
|
57
|
-
*/
|
|
58
|
-
private _findPublicPlugin;
|
|
59
|
-
private _isResourceNotFoundError;
|
|
60
|
-
/**
|
|
61
|
-
* Get cache statistics
|
|
62
|
-
*/
|
|
63
34
|
getCacheStats(): Promise<{
|
|
64
35
|
count: number;
|
|
65
36
|
sizeBytes: number;
|
|
66
37
|
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Clear plugin cache
|
|
69
|
-
*/
|
|
70
38
|
clearCache(): Promise<void>;
|
|
71
39
|
}
|
|
72
40
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/plugins/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/plugins/manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAGtE,OAAO,EAAwB,KAAK,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAE3G,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAEvG,YAAY,EAAE,kBAAkB,EAAE,CAAA;AAElC,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;GAMG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6C;gBAEzD,OAAO,GAAE,oBAAyB;IAM9C;;OAEG;IACG,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC;QACrD,OAAO,EAAE,YAAY,EAAE,CAAA;QACvB,MAAM,EAAE,eAAe,EAAE,CAAA;QACzB,QAAQ,EAAE,eAAe,EAAE,CAAA;KAC5B,CAAC;IA2BF,qEAAqE;IACxD,WAAW,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAInE,iDAAiD;IACpC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAW,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAI5F,oDAAoD;IACvC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAI1D,aAAa,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAI9D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { type Credentials } from '../auth/index.js';
|
|
1
2
|
import { type Environment } from '../secrets/manager.js';
|
|
2
3
|
import type { PreflightCheckResult, ApplyOptions, DeployPlan } from './types.js';
|
|
3
4
|
export interface PendingPreflightResult {
|
|
4
5
|
result: PreflightCheckResult;
|
|
5
6
|
apply: (options?: ApplyOptions) => Promise<void>;
|
|
6
7
|
}
|
|
8
|
+
export interface PreflightCheckerOptions {
|
|
9
|
+
credentials?: Credentials;
|
|
10
|
+
}
|
|
7
11
|
export declare class PreflightChecker {
|
|
8
12
|
private projectPath;
|
|
9
13
|
private client?;
|
|
10
14
|
private project?;
|
|
11
|
-
|
|
15
|
+
private credentials?;
|
|
16
|
+
constructor(projectPath: string, options?: PreflightCheckerOptions);
|
|
12
17
|
private getProject;
|
|
13
18
|
private getClient;
|
|
14
19
|
private performCheck;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../src/preflight/checker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../src/preflight/checker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxE,OAAO,KAAK,EAAE,oBAAoB,EAAkC,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAMhH,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,OAAO,CAAC,OAAO,CAAC,CAAc;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAa;gBAErB,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;YAKxD,UAAU;YAOV,SAAS;YAYT,YAAY;IAyB1B,OAAO,CAAC,qBAAqB;YAaf,mBAAmB;IA0B3B,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,WAAmB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAQ/F,aAAa,CACjB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE;QACP,GAAG,CAAC,EAAE,WAAW,CAAA;QACjB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;QAChE,SAAS,CAAC,EAAE,YAAY,CAAA;KACpB,GACL,OAAO,CAAC;QAAE,MAAM,EAAE,oBAAoB,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAkBxD,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,WAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;YA0DxE,KAAK;CA4BpB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { DependencySnapshotData, DependencyStatus } from '../dependencies/types.js';
|
|
2
|
+
import type { DeployPlan, IntegrationVersionMismatch } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The deploy gate (WS5), in one place: `computeDeployPlan` computes the blocking
|
|
5
|
+
* set with {@link isDeployBlocking}, and every deploy surface — `adk deploy`, the
|
|
6
|
+
* dev-console deploy handler, and any future entry point — enforces it through
|
|
7
|
+
* {@link assertNoBlockingDependencies}. Keeping projection, predicate, and error
|
|
8
|
+
* here means the surfaces cannot drift on what blocks a deploy or how it reads.
|
|
9
|
+
*/
|
|
10
|
+
/** JSON-safe projection of a deploy-blocking dependency (CLI error details + dev-console plan summary). */
|
|
11
|
+
export interface BlockingDependencySummary {
|
|
12
|
+
type: string;
|
|
13
|
+
alias: string;
|
|
14
|
+
state: string;
|
|
15
|
+
missingFields?: string[];
|
|
16
|
+
reason?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Whether a dependency's verdict blocks a deploy. `disabled` never blocks: it is
|
|
20
|
+
* an intentional, supported state (an integration toggled off, or a plugin whose
|
|
21
|
+
* backing integration is) — the dependency ships inert, exactly as the user chose.
|
|
22
|
+
* Every other non-`available` state on an enabled dependency blocks.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isDeployBlocking(dependency: DependencyStatus): boolean;
|
|
25
|
+
export declare function summarizeBlockingDependencies(blocking: DependencyStatus[]): BlockingDependencySummary[];
|
|
26
|
+
export declare function findIntegrationVersionMismatches(devSnapshot: DependencySnapshotData, prodSnapshot: DependencySnapshotData): IntegrationVersionMismatch[];
|
|
27
|
+
/**
|
|
28
|
+
* Throw the canonical `UNCONFIGURED_DEPENDENCIES` error when the plan carries a
|
|
29
|
+
* blocking dependency set and the caller didn't opt into shipping them inert.
|
|
30
|
+
* Entry points map this typed error to their transport (CLI exit, HTTP 422) and
|
|
31
|
+
* may append surface-specific remediation, but the core message and the
|
|
32
|
+
* `details.blocking` projection are shared.
|
|
33
|
+
*/
|
|
34
|
+
export declare function assertNoBlockingDependencies(plan: DeployPlan, options?: {
|
|
35
|
+
allowUnconfigured?: boolean;
|
|
36
|
+
}): void;
|
|
37
|
+
//# sourceMappingURL=dependency-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-gate.d.ts","sourceRoot":"","sources":["../../src/preflight/dependency-gate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACxF,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAExE;;;;;;GAMG;AAEH,2GAA2G;AAC3G,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,yBAAyB,EAAE,CAUvG;AAED,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,sBAAsB,EACnC,YAAY,EAAE,sBAAsB,GACnC,0BAA0B,EAAE,CAgB9B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAY9G"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { PreflightChecker } from './checker.js';
|
|
2
|
+
export { assertNoBlockingDependencies, findIntegrationVersionMismatches, summarizeBlockingDependencies, isDeployBlocking, type BlockingDependencySummary, } from './dependency-gate.js';
|
|
2
3
|
export { pluralize } from './types.js';
|
|
3
|
-
export type { PreflightCheckResult, SecretWarning, DeployPlan, DeployPlanManagers, ApplyOptions, OrphanedKB, SyncCallbacks, } from './types.js';
|
|
4
|
+
export type { PreflightCheckResult, SecretWarning, DeployPlan, DeployPlanManagers, IntegrationVersionMismatch, ApplyOptions, OrphanedKB, SyncCallbacks, } from './types.js';
|
|
4
5
|
export type { PendingPreflightResult } from './checker.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preflight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preflight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,6BAA6B,EAC7B,gBAAgB,EAChB,KAAK,yBAAyB,GAC/B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -5,6 +5,7 @@ import type { AssetSyncPlan } from '../assets/types.js';
|
|
|
5
5
|
import type { TableManager } from '../tables/table-manager.js';
|
|
6
6
|
import type { KnowledgeManager } from '../knowledge/manager.js';
|
|
7
7
|
import type { AssetsManager } from '../assets/manager.js';
|
|
8
|
+
import type { DependencyStatus } from '../dependencies/types.js';
|
|
8
9
|
export interface AgentConfigDiff {
|
|
9
10
|
field: string;
|
|
10
11
|
oldValue: unknown;
|
|
@@ -39,6 +40,13 @@ export interface DeployPlanManagers {
|
|
|
39
40
|
kb: KnowledgeManager | null;
|
|
40
41
|
assets: AssetsManager | null;
|
|
41
42
|
}
|
|
43
|
+
export interface IntegrationVersionMismatch {
|
|
44
|
+
type: 'integration';
|
|
45
|
+
alias: string;
|
|
46
|
+
name: string;
|
|
47
|
+
devVersion: string;
|
|
48
|
+
prodVersion: string;
|
|
49
|
+
}
|
|
42
50
|
export interface DeployPlan {
|
|
43
51
|
preflight: {
|
|
44
52
|
result: PreflightCheckResult;
|
|
@@ -50,5 +58,15 @@ export interface DeployPlan {
|
|
|
50
58
|
assetPlan: AssetSyncPlan | null;
|
|
51
59
|
hasDestructiveStorageChanges: boolean;
|
|
52
60
|
managers: DeployPlanManagers;
|
|
61
|
+
/**
|
|
62
|
+
* Dependency capability gate (WS5): enabled dependencies in the target snapshot whose
|
|
63
|
+
* state is not `available` (unconfigured / unresolved / not_installed / errored).
|
|
64
|
+
* A non-empty `blocking` set makes `adk deploy` fail with `UNCONFIGURED_DEPENDENCIES`
|
|
65
|
+
* unless `--allow-unconfigured` is passed. Empty on a first deploy (empty prod snapshot).
|
|
66
|
+
*/
|
|
67
|
+
dependencyPlan: {
|
|
68
|
+
blocking: DependencyStatus[];
|
|
69
|
+
integrationVersionMismatches: IntegrationVersionMismatch[];
|
|
70
|
+
};
|
|
53
71
|
}
|
|
54
72
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/preflight/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/preflight/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,EAA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