@botpress/adk 1.18.2 → 1.19.0-beta.2
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 +10 -7
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +1 -1
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/component-files.d.ts +10 -0
- package/dist/agent-project/component-files.d.ts.map +1 -0
- package/dist/agent-project/component-index-writer.d.ts +22 -0
- package/dist/agent-project/component-index-writer.d.ts.map +1 -0
- package/dist/agent-project/config-writer.d.ts +5 -0
- package/dist/agent-project/config-writer.d.ts.map +1 -1
- package/dist/agent-project/index.d.ts +3 -0
- package/dist/agent-project/index.d.ts.map +1 -1
- package/dist/agent-project/lock-to-dependencies.d.ts +11 -0
- package/dist/agent-project/lock-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +1 -0
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent-project/validation-errors.d.ts +1 -0
- package/dist/agent-project/validation-errors.d.ts.map +1 -1
- package/dist/assets/manager.d.ts +0 -2
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/assets/types.d.ts +3 -1
- package/dist/assets/types.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts.map +1 -1
- package/dist/auth/index.d.ts +29 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/bot-generator/dev-id-manager.d.ts.map +1 -1
- package/dist/bot-generator/generator.d.ts +5 -1
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/integration-sync.d.ts.map +1 -1
- package/dist/bot-generator/interface-sync.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/bot-generator/table-validation.d.ts +17 -0
- package/dist/bot-generator/table-validation.d.ts.map +1 -0
- package/dist/chat-bundle.cjs +31 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-add-command.d.ts.map +1 -1
- package/dist/commands/bp-build-command.d.ts.map +1 -1
- package/dist/commands/bp-chat-command.d.ts.map +1 -1
- package/dist/commands/bp-cli.d.ts +1 -0
- package/dist/commands/bp-cli.d.ts.map +1 -1
- package/dist/commands/bp-deploy-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +5 -0
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/copilot-config-reader.d.ts +2 -11
- package/dist/commands/copilot-config-reader.d.ts.map +1 -1
- package/dist/commands/copilot-config.d.ts +42 -0
- package/dist/commands/copilot-config.d.ts.map +1 -0
- package/dist/commands/copilot-server.d.ts +7 -4
- package/dist/commands/copilot-server.d.ts.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/opencode-config.d.ts +15 -14
- package/dist/commands/opencode-config.d.ts.map +1 -1
- package/dist/config/manager.d.ts +9 -1
- package/dist/config/manager.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/dependencies/alias-utils.d.ts +13 -0
- package/dist/dependencies/alias-utils.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +90 -0
- package/dist/dependencies/dependency-manager.d.ts.map +1 -0
- package/dist/dependencies/env-substitution.d.ts +3 -0
- package/dist/dependencies/env-substitution.d.ts.map +1 -0
- package/dist/dependencies/errors.d.ts +16 -0
- package/dist/dependencies/errors.d.ts.map +1 -0
- package/dist/dependencies/index.d.ts +19 -0
- package/dist/dependencies/index.d.ts.map +1 -0
- package/dist/dependencies/index.js +6056 -0
- package/dist/dependencies/index.js.map +61 -0
- package/dist/dependencies/json-utils.d.ts +3 -0
- package/dist/dependencies/json-utils.d.ts.map +1 -0
- package/dist/dependencies/lock-file.d.ts +15 -0
- package/dist/dependencies/lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +10 -0
- package/dist/dependencies/migration.d.ts.map +1 -0
- package/dist/dependencies/registry/integration-registry.d.ts +17 -0
- package/dist/dependencies/registry/integration-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/interface-registry.d.ts +11 -0
- package/dist/dependencies/registry/interface-registry.d.ts.map +1 -0
- package/dist/dependencies/registry/plugin-registry.d.ts +16 -0
- package/dist/dependencies/registry/plugin-registry.d.ts.map +1 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts +31 -0
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +39 -0
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -0
- package/dist/dependencies/secrets-rewriter.d.ts +25 -0
- package/dist/dependencies/secrets-rewriter.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +254 -0
- package/dist/dependencies/types.d.ts.map +1 -0
- package/dist/deploy-manifest/index.d.ts +608 -0
- package/dist/deploy-manifest/index.d.ts.map +1 -0
- package/dist/generators/assets.d.ts +2 -2
- package/dist/generators/assets.d.ts.map +1 -1
- package/dist/generators/tests.d.ts +6 -6
- package/dist/generators/tests.d.ts.map +1 -1
- package/dist/generators/utils.d.ts.map +1 -1
- package/dist/index.d.ts +13 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16554 -4444
- package/dist/index.js.map +74 -56
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +0 -6
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +17 -1
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +0 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +3 -1
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -1
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/knowledge/types.d.ts +2 -2
- package/dist/knowledge/types.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +29 -1
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +5 -6
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/index.d.ts +2 -2
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +30 -32
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts +2 -0
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/tables/types.d.ts +3 -2
- package/dist/tables/types.d.ts.map +1 -1
- package/dist/templates/README.md +13 -12
- package/dist/templates/blank/agent.config.ts +0 -3
- package/dist/templates/blank/dependencies.dev.lock.json +6 -0
- package/dist/templates/blank/evals/index.eval.ts +30 -0
- package/dist/templates/blank/package.json +1 -0
- package/dist/templates/blank/src/conversations/index.ts +16 -16
- package/dist/templates/botpress-desk/README.md +87 -0
- package/dist/templates/botpress-desk/agent.config.ts +19 -0
- package/dist/templates/botpress-desk/dependencies.dev.lock.json +6 -0
- package/dist/templates/botpress-desk/evals/index.eval.ts +30 -0
- package/dist/templates/botpress-desk/package.json +17 -0
- package/dist/templates/botpress-desk/src/actions/index.ts +19 -0
- package/dist/templates/botpress-desk/src/conversations/index.ts +16 -0
- package/dist/templates/botpress-desk/src/knowledge/index.ts +20 -0
- package/dist/templates/botpress-desk/src/tables/index.ts +16 -0
- package/dist/templates/botpress-desk/src/tools/handToSupport.ts +23 -0
- package/dist/templates/botpress-desk/src/triggers/index.ts +17 -0
- package/dist/templates/botpress-desk/src/workflows/index.ts +21 -0
- package/dist/templates/crm-enrichment/agent.config.ts +0 -3
- package/dist/templates/crm-enrichment/dependencies.dev.lock.json +6 -0
- package/dist/templates/crm-enrichment/evals/example.eval.ts +29 -0
- package/dist/templates/crm-enrichment/package.json +1 -0
- package/dist/templates/hello-world/agent.config.ts +0 -3
- package/dist/templates/hello-world/dependencies.dev.lock.json +6 -0
- package/dist/templates/hello-world/evals/context-retention.eval.ts +37 -0
- package/dist/templates/hello-world/evals/greeting.eval.ts +43 -0
- package/dist/templates/hello-world/package.json +1 -0
- package/dist/templates/knowledge-assistant/agent.config.ts +0 -3
- package/dist/templates/knowledge-assistant/dependencies.dev.lock.json +6 -0
- package/dist/templates/knowledge-assistant/evals/engineering-practices.eval.ts +45 -0
- package/dist/templates/knowledge-assistant/evals/out-of-scope.eval.ts +33 -0
- package/dist/templates/knowledge-assistant/evals/pto-policy.eval.ts +44 -0
- package/dist/templates/knowledge-assistant/package.json +1 -0
- package/dist/templates/slack-triage/agent.config.ts +0 -8
- package/dist/templates/slack-triage/dependencies.dev.lock.json +6 -0
- package/dist/templates/slack-triage/evals/triage-basic.eval.ts +9 -39
- package/dist/templates/slack-triage/package.json +1 -0
- package/dist/templates/slack-triage/src/conversations/slack-dm.ts +4 -1
- package/dist/templates/template.config.json +14 -15
- package/dist/utils/require-chat.d.ts +3 -24
- package/dist/utils/require-chat.d.ts.map +1 -1
- package/dist/utils/search-ranking.d.ts +15 -0
- package/dist/utils/search-ranking.d.ts.map +1 -0
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +12 -8
- package/dist/integrations/checker.d.ts +0 -41
- package/dist/integrations/checker.d.ts.map +0 -1
- package/dist/integrations/operations.d.ts +0 -140
- package/dist/integrations/operations.d.ts.map +0 -1
- package/dist/integrations/sync-manager.d.ts +0 -19
- package/dist/integrations/sync-manager.d.ts.map +0 -1
- package/dist/interfaces/operations.d.ts +0 -48
- package/dist/interfaces/operations.d.ts.map +0 -1
- package/dist/preflight/formatter.d.ts +0 -12
- package/dist/preflight/formatter.d.ts.map +0 -1
|
@@ -1,54 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Eval: triage-basic
|
|
3
|
+
* A minimal smoke test — the bot acknowledges and classifies a bug report
|
|
4
|
+
* without erroring.
|
|
3
5
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* simulated conversation with assertions on the bot's responses and tool usage.
|
|
8
|
-
*
|
|
9
|
-
* Run evals with: adk eval
|
|
10
|
-
* Run a specific eval: adk eval --name triage-basic
|
|
6
|
+
* Run with:
|
|
7
|
+
* adk evals
|
|
8
|
+
* adk evals triage-basic
|
|
11
9
|
*/
|
|
12
|
-
import { Eval } from '@botpress/
|
|
10
|
+
import { Eval } from '@botpress/evals'
|
|
13
11
|
|
|
14
12
|
export default new Eval({
|
|
15
13
|
name: 'triage-basic',
|
|
16
|
-
description: '
|
|
17
|
-
tags: ['triage', 'classification'],
|
|
14
|
+
description: 'Bot acknowledges and classifies a bug report',
|
|
18
15
|
type: 'regression',
|
|
19
16
|
|
|
20
17
|
conversation: [
|
|
21
18
|
{
|
|
22
|
-
user: '
|
|
23
|
-
assert: {
|
|
24
|
-
response: [
|
|
25
|
-
{
|
|
26
|
-
llm_judge:
|
|
27
|
-
'Response acknowledges this is a bug or error report and indicates it will be triaged or routed to the appropriate team',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
user: 'It would be great if we could export dashboard data to CSV',
|
|
34
|
-
assert: {
|
|
35
|
-
response: [
|
|
36
|
-
{
|
|
37
|
-
llm_judge:
|
|
38
|
-
'Response recognizes this as a feature request and indicates it will be forwarded to the product team or logged appropriately',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
user: 'How do I reset my password?',
|
|
19
|
+
user: 'Production API is returning 502s for every request',
|
|
45
20
|
assert: {
|
|
46
|
-
response: [
|
|
47
|
-
{
|
|
48
|
-
llm_judge:
|
|
49
|
-
'Response treats this as a general question and either answers it directly or indicates it will be routed to support',
|
|
50
|
-
},
|
|
51
|
-
],
|
|
21
|
+
response: [{ not_contains: 'error' }],
|
|
52
22
|
},
|
|
53
23
|
},
|
|
54
24
|
],
|
|
@@ -26,7 +26,10 @@ const TriageComplete = new Autonomous.Exit({
|
|
|
26
26
|
* - Remove the exit to keep the conversation open for follow-ups
|
|
27
27
|
*/
|
|
28
28
|
export const SlackDM = new Conversation({
|
|
29
|
-
channel
|
|
29
|
+
// `chat.channel` is included so the eval runner (which sends messages via
|
|
30
|
+
// @botpress/chat) can drive this handler without needing a real Slack workspace.
|
|
31
|
+
// Remove it once you're ready to test exclusively through Slack.
|
|
32
|
+
channel: ['slack.dm', 'chat.channel'],
|
|
30
33
|
|
|
31
34
|
async handler({ execute }) {
|
|
32
35
|
// Classify and respond in one shot. The AI will:
|
|
@@ -4,44 +4,43 @@
|
|
|
4
4
|
"name": "blank",
|
|
5
5
|
"description": "Empty project with just the folder structure",
|
|
6
6
|
"category": "starter",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"complexity": "beginner"
|
|
7
|
+
"complexity": "beginner",
|
|
8
|
+
"dependencies": { "integrations": [], "plugins": [] }
|
|
10
9
|
},
|
|
11
10
|
{
|
|
12
11
|
"name": "hello-world",
|
|
13
12
|
"description": "A working chatbot with chat and webchat integrations",
|
|
14
13
|
"category": "starter",
|
|
15
|
-
"integrations": ["chat", "webchat"],
|
|
16
|
-
"primitives": ["conversations"],
|
|
17
14
|
"complexity": "beginner",
|
|
18
|
-
"
|
|
15
|
+
"dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
|
|
19
16
|
},
|
|
20
17
|
{
|
|
21
18
|
"name": "slack-triage",
|
|
22
19
|
"description": "Slack bot that monitors a channel, classifies requests, and routes to the right person",
|
|
23
20
|
"category": "triage",
|
|
24
|
-
"integrations": ["slack"],
|
|
25
|
-
"primitives": ["actions", "workflows", "conversations", "tables", "triggers", "knowledge"],
|
|
26
21
|
"complexity": "intermediate",
|
|
27
|
-
"
|
|
22
|
+
"dependencies": { "integrations": ["slack@latest", "chat@latest"], "plugins": [] }
|
|
28
23
|
},
|
|
29
24
|
{
|
|
30
25
|
"name": "knowledge-assistant",
|
|
31
26
|
"description": "RAG-powered Q&A agent with knowledge base and source citations",
|
|
32
27
|
"category": "knowledge",
|
|
33
|
-
"integrations": ["chat", "webchat"],
|
|
34
|
-
"primitives": ["conversations", "knowledge", "actions"],
|
|
35
28
|
"complexity": "beginner",
|
|
36
|
-
"
|
|
29
|
+
"dependencies": { "integrations": ["chat@latest", "webchat@latest"], "plugins": [] }
|
|
37
30
|
},
|
|
38
31
|
{
|
|
39
32
|
"name": "crm-enrichment",
|
|
40
33
|
"description": "Scheduled workflow that enriches CRM contacts with AI-driven classification",
|
|
41
34
|
"category": "enrichment",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
35
|
+
"complexity": "intermediate",
|
|
36
|
+
"dependencies": { "integrations": [], "plugins": [] }
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "botpress-desk",
|
|
40
|
+
"description": "Customer support bot with human handoff via Botpress Desk",
|
|
41
|
+
"category": "support",
|
|
42
|
+
"complexity": "intermediate",
|
|
43
|
+
"dependencies": { "integrations": ["webchat@latest"], "plugins": ["desk-hitl@latest"] }
|
|
45
44
|
}
|
|
46
45
|
]
|
|
47
46
|
}
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility to load @botpress/chat via CJS resolution from within the ADK's dependency tree.
|
|
3
|
-
*
|
|
4
|
-
* ## Why CJS?
|
|
5
|
-
*
|
|
6
|
-
* @botpress/chat ships two bundles:
|
|
7
|
-
* - index.mjs (browser build): axios 1.2.5 fully inlined with http adapter set to null
|
|
8
|
-
* - index.cjs (Node build): uses external require("axios") with real Node.js http adapter
|
|
9
|
-
*
|
|
10
|
-
* ESM `import()` resolves via the "module" field to index.mjs, which has a broken http
|
|
11
|
-
* adapter in any server runtime (Node, Bun, compiled binary). CJS `require()` resolves
|
|
12
|
-
* via "main" to index.cjs with a working adapter.
|
|
13
|
-
*
|
|
14
|
-
* ## Why two hops?
|
|
15
|
-
*
|
|
16
|
-
* In a compiled Bun binary, `import.meta.url` points to `/$bunfs/root/` (a virtual FS
|
|
17
|
-
* with no node_modules), so `createRequire` must anchor to `process.cwd()`. But
|
|
18
|
-
* `@botpress/chat` is a dependency of `@botpress/adk`, not the agent project at cwd.
|
|
19
|
-
* So we first resolve `@botpress/adk` from cwd, then resolve `@botpress/chat` from
|
|
20
|
-
* the ADK's location on disk.
|
|
21
|
-
*/
|
|
22
1
|
export type ChatClient = typeof import('@botpress/chat').Client;
|
|
23
2
|
/**
|
|
24
|
-
* Returns the @botpress/chat Client class
|
|
25
|
-
*
|
|
3
|
+
* Returns the @botpress/chat Client class. The chat client ships with the CLI
|
|
4
|
+
* binary, so no user-side dep declaration or anchor is needed.
|
|
26
5
|
*/
|
|
27
|
-
export declare function getChatClient(
|
|
6
|
+
export declare function getChatClient(): ChatClient;
|
|
28
7
|
//# sourceMappingURL=require-chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"require-chat.d.ts","sourceRoot":"","sources":["../../src/utils/require-chat.ts"],"names":[],"mappings":"AA6BA,MAAM,MAAM,UAAU,GAAG,cAAc,gBAAgB,EAAE,MAAM,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAS1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SearchableCatalogEntry {
|
|
2
|
+
name: string;
|
|
3
|
+
version: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RankedCatalogEntry<T extends SearchableCatalogEntry> {
|
|
9
|
+
entry: T;
|
|
10
|
+
rank: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function collectCatalogSearchResult<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, entry: T, query: string): void;
|
|
13
|
+
export declare function getSortedCatalogSearchResults<T extends SearchableCatalogEntry>(results: Map<string, RankedCatalogEntry<T>>, limit: number): T[];
|
|
14
|
+
export declare function getSortedVersions(versions: Iterable<string>): string[];
|
|
15
|
+
//# sourceMappingURL=search-ranking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-ranking.d.ts","sourceRoot":"","sources":["../../src/utils/search-ranking.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,sBAAsB;IAClE,KAAK,EAAE,CAAC,CAAA;IACR,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,sBAAsB,EACzE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,MAAM,GACZ,IAAI,CAWN;AAED,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,sBAAsB,EAC5E,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAC3C,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAQL;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAEtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/workspace-cache.ts"],"names":[],"mappings":"AASA,cAAM,cAAc;IAClB,OAAO,CAAC,KAAK,CAAwC;IACrD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAErC,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAuCxE,KAAK,IAAI,IAAI;CAGd;AAGD,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/adk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0-beta.2",
|
|
4
4
|
"description": "Core ADK library for building AI agents on Botpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adk",
|
|
@@ -30,13 +30,17 @@
|
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
31
|
"import": "./dist/index.js"
|
|
32
32
|
},
|
|
33
|
+
"./dependencies": {
|
|
34
|
+
"types": "./dist/dependencies/index.d.ts",
|
|
35
|
+
"import": "./dist/dependencies/index.js"
|
|
36
|
+
},
|
|
33
37
|
"./package.json": "./package.json",
|
|
34
38
|
"./schemas/*": "./schemas/*"
|
|
35
39
|
},
|
|
36
40
|
"scripts": {
|
|
37
|
-
"build": "bun run build:types && bun run build.ts",
|
|
41
|
+
"build": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun run build.ts",
|
|
38
42
|
"build:types": "tsc --emitDeclarationOnly",
|
|
39
|
-
"watch": "bun run build:types && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
|
|
43
|
+
"watch": "bun run build:types && bun run scripts/build-chat-bundle.ts && bun build ./src/index.ts --outdir ./dist --target node --format esm --sourcemap --watch",
|
|
40
44
|
"clean": "rm -rf dist",
|
|
41
45
|
"prepublishOnly": "bun run clean && bun run build",
|
|
42
46
|
"test": "bun test",
|
|
@@ -46,11 +50,11 @@
|
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
52
|
"@botpress/chat": "~0.5.5",
|
|
49
|
-
"@botpress/cli": "~6.
|
|
50
|
-
"@botpress/client": "~1.
|
|
51
|
-
"@botpress/cognitive": "~0.5.
|
|
52
|
-
"@botpress/runtime": "^1.
|
|
53
|
-
"@botpress/sdk": "~6.
|
|
53
|
+
"@botpress/cli": "~6.5.0",
|
|
54
|
+
"@botpress/client": "~1.42.0",
|
|
55
|
+
"@botpress/cognitive": "~0.5.4",
|
|
56
|
+
"@botpress/runtime": "^1.19.0-beta.2",
|
|
57
|
+
"@botpress/sdk": "~6.7.0",
|
|
54
58
|
"@bpinternal/jex": "^1.2.4",
|
|
55
59
|
"@bpinternal/yargs-extra": "^0.0.21",
|
|
56
60
|
"@parcel/watcher": "^2.5.1",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type Integration } from '@botpress/client';
|
|
2
|
-
export type IntegrationInstallStatus = 'enabled' | 'not_installed' | 'disabled';
|
|
3
|
-
export type IntegrationRegistrationStatus = 'registered' | 'registration_pending' | 'registration_failed' | 'unregistration_pending' | 'unregistered' | 'unregistration_failed';
|
|
4
|
-
export interface IntegrationCheckResult {
|
|
5
|
-
alias: string;
|
|
6
|
-
name: string;
|
|
7
|
-
installStatus: IntegrationInstallStatus;
|
|
8
|
-
registrationStatus?: IntegrationRegistrationStatus;
|
|
9
|
-
installedVersion?: string;
|
|
10
|
-
currentConfigurationType?: string | null;
|
|
11
|
-
currentConfiguration?: Record<string, unknown>;
|
|
12
|
-
desiredInstallStatus: IntegrationInstallStatus;
|
|
13
|
-
desiredVersion: string;
|
|
14
|
-
desiredIntegrationId?: string;
|
|
15
|
-
desiredConfigurationType?: string | null;
|
|
16
|
-
desiredConfiguration?: Record<string, unknown>;
|
|
17
|
-
definition: Integration;
|
|
18
|
-
needsInstall: boolean;
|
|
19
|
-
needsUpdate: boolean;
|
|
20
|
-
needsRemoval: boolean;
|
|
21
|
-
needsConfiguration: boolean;
|
|
22
|
-
hasError: boolean;
|
|
23
|
-
errorMessage?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare class IntegrationChecker {
|
|
26
|
-
private projectPath;
|
|
27
|
-
private client?;
|
|
28
|
-
constructor(projectPath: string);
|
|
29
|
-
private getClient;
|
|
30
|
-
/**
|
|
31
|
-
* Fetch integration definition from Botpress API
|
|
32
|
-
* Try private first, then public
|
|
33
|
-
*/
|
|
34
|
-
private fetchIntegrationDefinition;
|
|
35
|
-
/**
|
|
36
|
-
* Check integration status for a specific bot
|
|
37
|
-
*/
|
|
38
|
-
checkIntegrations(botId: string): Promise<IntegrationCheckResult[]>;
|
|
39
|
-
private checkIntegration;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../src/integrations/checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAY,MAAM,kBAAkB,CAAA;AAOrE,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,eAAe,GAAG,UAAU,CAAA;AAC/E,MAAM,MAAM,6BAA6B,GACrC,YAAY,GACZ,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,GACxB,cAAc,GACd,uBAAuB,CAAA;AAE3B,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IAGZ,aAAa,EAAE,wBAAwB,CAAA;IACvC,kBAAkB,CAAC,EAAE,6BAA6B,CAAA;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,oBAAoB,EAAE,wBAAwB,CAAA;IAC9C,cAAc,EAAE,MAAM,CAAA;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAG9C,UAAU,EAAE,WAAW,CAAA;IAGvB,YAAY,EAAE,OAAO,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,WAAW,EAAE,MAAM;YAIjB,SAAS;IAuBvB;;;OAGG;YACW,0BAA0B;IA0BxC;;OAEG;IACG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;YAyE3D,gBAAgB;CA4H/B"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { AgentProjectLoader } from '../agent-project/agent-project.js';
|
|
2
|
-
import { DependencyConfigWriterFactory } from '../agent-project/config-writer.js';
|
|
3
|
-
import { IntegrationDefinition, ParsedIntegration } from './types.js';
|
|
4
|
-
export interface IntegrationVersionInfo {
|
|
5
|
-
name: string;
|
|
6
|
-
version: string;
|
|
7
|
-
latestVersion?: string;
|
|
8
|
-
availableVersions?: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface AddIntegrationOptions {
|
|
11
|
-
name: string;
|
|
12
|
-
version?: string;
|
|
13
|
-
alias?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface AddIntegrationResult {
|
|
16
|
-
success: boolean;
|
|
17
|
-
message?: string;
|
|
18
|
-
existingVersion?: string;
|
|
19
|
-
newVersion?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
fullName?: string;
|
|
22
|
-
alias?: string;
|
|
23
|
-
version?: string;
|
|
24
|
-
ref?: string;
|
|
25
|
-
requiresConfiguration?: boolean;
|
|
26
|
-
}
|
|
27
|
-
interface ResolvedAddIntegrationInput {
|
|
28
|
-
name: string;
|
|
29
|
-
fullName: string;
|
|
30
|
-
version: string;
|
|
31
|
-
alias: string;
|
|
32
|
-
ref: string;
|
|
33
|
-
isIntegrationId: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface UpgradeIntegrationOptions {
|
|
36
|
-
name?: string;
|
|
37
|
-
interactive?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface RemoveIntegrationOptions {
|
|
40
|
-
name?: string;
|
|
41
|
-
interactive?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface IntegrationOperationsOptions {
|
|
44
|
-
noCache?: boolean;
|
|
45
|
-
projectPath?: string;
|
|
46
|
-
loadAgentProject?: AgentProjectLoader;
|
|
47
|
-
createConfigWriter?: DependencyConfigWriterFactory;
|
|
48
|
-
}
|
|
49
|
-
export declare class IntegrationOperations {
|
|
50
|
-
private hubCache;
|
|
51
|
-
private client?;
|
|
52
|
-
private projectPath?;
|
|
53
|
-
private loadAgentProject;
|
|
54
|
-
private createConfigWriter;
|
|
55
|
-
constructor(options?: IntegrationOperationsOptions);
|
|
56
|
-
private getClient;
|
|
57
|
-
/**
|
|
58
|
-
* Parse integration reference from string (e.g., "slack@latest", "slack@1.0.0")
|
|
59
|
-
*/
|
|
60
|
-
private parseIntegrationRef;
|
|
61
|
-
private isIntegrationVersionId;
|
|
62
|
-
private isIntegrationRefLike;
|
|
63
|
-
private isResourceNotFoundError;
|
|
64
|
-
private getCanonicalIntegrationFullName;
|
|
65
|
-
private getInstalledIntegrationEntries;
|
|
66
|
-
private buildRemoveIntegrationNotFoundError;
|
|
67
|
-
private buildAmbiguousRemoveIntegrationError;
|
|
68
|
-
private resolveIntegrationRemovalAlias;
|
|
69
|
-
private tryParseIntegrationRef;
|
|
70
|
-
private resolveIntegrationVersionId;
|
|
71
|
-
resolveAddIntegrationInput(options: AddIntegrationOptions): Promise<ResolvedAddIntegrationInput>;
|
|
72
|
-
/**
|
|
73
|
-
* Get available versions for an integration
|
|
74
|
-
*/
|
|
75
|
-
getIntegrationVersions(name: string): Promise<IntegrationVersionInfo>;
|
|
76
|
-
/**
|
|
77
|
-
* Add an integration to agent.config.ts dependencies
|
|
78
|
-
*/
|
|
79
|
-
addIntegration(options: AddIntegrationOptions): Promise<AddIntegrationResult>;
|
|
80
|
-
/**
|
|
81
|
-
* Remove an integration from agent.config.ts dependencies
|
|
82
|
-
*/
|
|
83
|
-
removeIntegration(name: string): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* Upgrade integration(s) to latest version
|
|
86
|
-
*/
|
|
87
|
-
upgradeIntegration(name?: string): Promise<{
|
|
88
|
-
upgraded: string[];
|
|
89
|
-
failed: string[];
|
|
90
|
-
}>;
|
|
91
|
-
/**
|
|
92
|
-
* Get list of current integrations
|
|
93
|
-
*/
|
|
94
|
-
listIntegrations(): Promise<Array<{
|
|
95
|
-
alias: string;
|
|
96
|
-
name: string;
|
|
97
|
-
version: string;
|
|
98
|
-
}>>;
|
|
99
|
-
/**
|
|
100
|
-
* Search for integrations in the hub cache
|
|
101
|
-
*/
|
|
102
|
-
searchIntegrations(query: string): Promise<Array<{
|
|
103
|
-
name: string;
|
|
104
|
-
version: string;
|
|
105
|
-
title?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
}>>;
|
|
108
|
-
/**
|
|
109
|
-
* Get all available integrations from hub
|
|
110
|
-
*/
|
|
111
|
-
getAllAvailableIntegrations(): Promise<Array<{
|
|
112
|
-
name: string;
|
|
113
|
-
version: string;
|
|
114
|
-
title?: string;
|
|
115
|
-
}>>;
|
|
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;
|
|
139
|
-
export {};
|
|
140
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/integrations/operations.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IntegrationCheckResult } from './checker.js';
|
|
2
|
-
export interface SyncSummary {
|
|
3
|
-
installed: number;
|
|
4
|
-
updated: number;
|
|
5
|
-
removed: number;
|
|
6
|
-
failed: number;
|
|
7
|
-
errors: Array<{
|
|
8
|
-
alias: string;
|
|
9
|
-
error: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
12
|
-
export declare class IntegrationSyncManager {
|
|
13
|
-
private projectPath;
|
|
14
|
-
private client?;
|
|
15
|
-
constructor(projectPath: string);
|
|
16
|
-
private getClient;
|
|
17
|
-
applySyncPlan(checkResults: IntegrationCheckResult[], botId: string): Promise<SyncSummary>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=sync-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-manager.d.ts","sourceRoot":"","sources":["../../src/integrations/sync-manager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAe1D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAChD;AAED,qBAAa,sBAAsB;IACjC,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,WAAW,EAAE,MAAM;YAIjB,SAAS;IAwBjB,aAAa,CAAC,YAAY,EAAE,sBAAsB,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAwEjG"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface AddInterfaceResult {
|
|
2
|
-
success: boolean;
|
|
3
|
-
alias: string;
|
|
4
|
-
name: string;
|
|
5
|
-
newVersion?: string;
|
|
6
|
-
previousVersion?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface InterfaceOperationsOptions {
|
|
10
|
-
projectPath: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class InterfaceOperations {
|
|
13
|
-
private projectPath;
|
|
14
|
-
private manager;
|
|
15
|
-
constructor(options: InterfaceOperationsOptions);
|
|
16
|
-
addInterface(_options: {
|
|
17
|
-
name: string;
|
|
18
|
-
version?: string;
|
|
19
|
-
alias?: string;
|
|
20
|
-
}): Promise<AddInterfaceResult>;
|
|
21
|
-
updateInterface(_options: {
|
|
22
|
-
alias: string;
|
|
23
|
-
name: string;
|
|
24
|
-
version: string;
|
|
25
|
-
previousVersion: string;
|
|
26
|
-
}): Promise<AddInterfaceResult>;
|
|
27
|
-
removeInterface(_alias: string): Promise<boolean>;
|
|
28
|
-
listInterfaces(): Promise<Array<{
|
|
29
|
-
alias: string;
|
|
30
|
-
name: string;
|
|
31
|
-
version: string;
|
|
32
|
-
}>>;
|
|
33
|
-
/**
|
|
34
|
-
* Get latest version info for an interface by name
|
|
35
|
-
*/
|
|
36
|
-
getInterfaceLatestVersion(name: string): Promise<{
|
|
37
|
-
name: string;
|
|
38
|
-
latestVersion: string;
|
|
39
|
-
}>;
|
|
40
|
-
/**
|
|
41
|
-
* Upgrade interface(s) to latest version
|
|
42
|
-
*/
|
|
43
|
-
upgradeInterface(_alias?: string): Promise<{
|
|
44
|
-
upgraded: string[];
|
|
45
|
-
failed: string[];
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/interfaces/operations.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,OAAO,CAAkB;gBAErB,OAAO,EAAE,0BAA0B;IAKzC,YAAY,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAOzB,eAAe,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;QACf,eAAe,EAAE,MAAM,CAAA;KACxB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAOzB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAOjD,cAAc,IAAI,OAAO,CAC7B,KAAK,CAAC;QACJ,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;KAChB,CAAC,CACH;IAOD;;OAEG;IACG,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAM/F;;OAEG;IACG,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAM3F"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { PreflightCheckResult } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Plain text formatter for preflight check results
|
|
4
|
-
* CLI-agnostic - the CLI should apply colors/styling
|
|
5
|
-
*/
|
|
6
|
-
export declare class PreflightFormatter {
|
|
7
|
-
static format(result: PreflightCheckResult): string;
|
|
8
|
-
static formatPrompt(): string;
|
|
9
|
-
private static formatSecretWarnings;
|
|
10
|
-
private static formatValue;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/preflight/formatter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAiB,MAAM,YAAY,CAAA;AAkBrE;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM;IAuGnD,MAAM,CAAC,YAAY,IAAI,MAAM;IAI7B,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgCnC,OAAO,CAAC,MAAM,CAAC,WAAW;CAkB3B"}
|