@botpress/adk 1.19.0-beta.2 → 1.19.0-beta.3

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.
Files changed (152) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts +1 -1
  2. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  3. package/dist/agent0/capabilities/commands/adk-build.md +39 -0
  4. package/dist/agent0/capabilities/commands/adk-debug.md +23 -0
  5. package/dist/agent0/capabilities/commands/adk-dev-console.md +17 -0
  6. package/dist/agent0/capabilities/commands/adk-document.md +68 -0
  7. package/dist/agent0/capabilities/commands/adk-eval.md +17 -0
  8. package/dist/agent0/capabilities/commands/adk-explain.md +22 -0
  9. package/dist/agent0/capabilities/commands/adk-init.md +30 -0
  10. package/dist/agent0/capabilities/commands/adk-ship.md +29 -0
  11. package/dist/agent0/capabilities/commands/adk-test.md +27 -0
  12. package/dist/agent0/capabilities/commands/adk-validate.md +31 -0
  13. package/dist/agent0/capabilities/skills/adk/SKILL.md +548 -0
  14. package/dist/agent0/capabilities/skills/adk/references/actions.md +823 -0
  15. package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +669 -0
  16. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +450 -0
  17. package/dist/agent0/capabilities/skills/adk/references/assets.md +237 -0
  18. package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +747 -0
  19. package/dist/agent0/capabilities/skills/adk/references/cli.md +1093 -0
  20. package/dist/agent0/capabilities/skills/adk/references/context-api.md +461 -0
  21. package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +311 -0
  22. package/dist/agent0/capabilities/skills/adk/references/conversations.md +1111 -0
  23. package/dist/agent0/capabilities/skills/adk/references/custom-components.md +167 -0
  24. package/dist/agent0/capabilities/skills/adk/references/desk.md +852 -0
  25. package/dist/agent0/capabilities/skills/adk/references/evals.md +11 -0
  26. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +424 -0
  27. package/dist/agent0/capabilities/skills/adk/references/files.md +918 -0
  28. package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +659 -0
  29. package/dist/agent0/capabilities/skills/adk/references/integrations.md +266 -0
  30. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +97 -0
  31. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +456 -0
  32. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +112 -0
  33. package/dist/agent0/capabilities/skills/adk/references/messages.md +769 -0
  34. package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +201 -0
  35. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +469 -0
  36. package/dist/agent0/capabilities/skills/adk/references/plugins.md +280 -0
  37. package/dist/agent0/capabilities/skills/adk/references/tables.md +1136 -0
  38. package/dist/agent0/capabilities/skills/adk/references/tags.md +516 -0
  39. package/dist/agent0/capabilities/skills/adk/references/tools.md +581 -0
  40. package/dist/agent0/capabilities/skills/adk/references/triggers.md +719 -0
  41. package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +851 -0
  42. package/dist/agent0/capabilities/skills/adk/references/workflows.md +1408 -0
  43. package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +454 -0
  44. package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +1408 -0
  45. package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +257 -0
  46. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +231 -0
  47. package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +420 -0
  48. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +239 -0
  49. package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +209 -0
  50. package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +313 -0
  51. package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +195 -0
  52. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +111 -0
  53. package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +115 -0
  54. package/dist/agent0/capabilities/skills/adk-dev-console/references/component-registry.md +43 -0
  55. package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +70 -0
  56. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +273 -0
  57. package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +114 -0
  58. package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +124 -0
  59. package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +244 -0
  60. package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +354 -0
  61. package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +355 -0
  62. package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +225 -0
  63. package/dist/agent0/config/index.d.ts +5 -0
  64. package/dist/agent0/config/index.d.ts.map +1 -0
  65. package/dist/agent0/config/paths.d.ts +12 -0
  66. package/dist/agent0/config/paths.d.ts.map +1 -0
  67. package/dist/agent0/config/schema.d.ts +171 -0
  68. package/dist/agent0/config/schema.d.ts.map +1 -0
  69. package/dist/agent0/config/secrets.d.ts +4 -0
  70. package/dist/agent0/config/secrets.d.ts.map +1 -0
  71. package/dist/agent0/config/store.d.ts +21 -0
  72. package/dist/agent0/config/store.d.ts.map +1 -0
  73. package/dist/agent0/index.d.ts +6 -0
  74. package/dist/agent0/index.d.ts.map +1 -0
  75. package/dist/agent0/index.js +3215 -0
  76. package/dist/agent0/index.js.map +27 -0
  77. package/dist/agent0/providers/catalog.d.ts +189 -0
  78. package/dist/agent0/providers/catalog.d.ts.map +1 -0
  79. package/dist/agent0/providers/index.d.ts +4 -0
  80. package/dist/agent0/providers/index.d.ts.map +1 -0
  81. package/dist/agent0/providers/registry.d.ts +32 -0
  82. package/dist/agent0/providers/registry.d.ts.map +1 -0
  83. package/dist/agent0/providers/source.d.ts +100 -0
  84. package/dist/agent0/providers/source.d.ts.map +1 -0
  85. package/dist/agent0/runtime/client.d.ts +50 -0
  86. package/dist/agent0/runtime/client.d.ts.map +1 -0
  87. package/dist/agent0/runtime/engine.d.ts +74 -0
  88. package/dist/agent0/runtime/engine.d.ts.map +1 -0
  89. package/dist/agent0/runtime/index.d.ts +7 -0
  90. package/dist/agent0/runtime/index.d.ts.map +1 -0
  91. package/dist/agent0/runtime/manager.d.ts +82 -0
  92. package/dist/agent0/runtime/manager.d.ts.map +1 -0
  93. package/dist/agent0/runtime/permissions.d.ts +6 -0
  94. package/dist/agent0/runtime/permissions.d.ts.map +1 -0
  95. package/dist/agent0/runtime/process.d.ts +43 -0
  96. package/dist/agent0/runtime/process.d.ts.map +1 -0
  97. package/dist/agent0/runtime/project-discovery.d.ts +5 -0
  98. package/dist/agent0/runtime/project-discovery.d.ts.map +1 -0
  99. package/dist/agent0/types.d.ts +447 -0
  100. package/dist/agent0/types.d.ts.map +1 -0
  101. package/dist/auth/index.d.ts +1 -0
  102. package/dist/auth/index.d.ts.map +1 -1
  103. package/dist/cognitive/models.d.ts +32 -0
  104. package/dist/cognitive/models.d.ts.map +1 -0
  105. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  106. package/dist/commands/bp-dev-stderr.d.ts +21 -0
  107. package/dist/commands/bp-dev-stderr.d.ts.map +1 -0
  108. package/dist/commands/index.d.ts +0 -5
  109. package/dist/commands/index.d.ts.map +1 -1
  110. package/dist/dependencies/dependency-manager.d.ts +0 -1
  111. package/dist/dependencies/dependency-manager.d.ts.map +1 -1
  112. package/dist/dependencies/errors.d.ts +1 -1
  113. package/dist/dependencies/errors.d.ts.map +1 -1
  114. package/dist/dependencies/index.d.ts +0 -2
  115. package/dist/dependencies/index.d.ts.map +1 -1
  116. package/dist/dependencies/index.js +125 -149
  117. package/dist/dependencies/index.js.map +11 -13
  118. package/dist/dependencies/migration.d.ts +0 -2
  119. package/dist/dependencies/migration.d.ts.map +1 -1
  120. package/dist/dependencies/resolvers/integration-resolver.d.ts +0 -1
  121. package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
  122. package/dist/dependencies/resolvers/plugin-resolver.d.ts +0 -1
  123. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
  124. package/dist/dependencies/types.d.ts +1 -2
  125. package/dist/dependencies/types.d.ts.map +1 -1
  126. package/dist/generators/tests.d.ts.map +1 -1
  127. package/dist/index.js +501 -998
  128. package/dist/index.js.map +16 -20
  129. package/dist/runner/script-runner.d.ts.map +1 -1
  130. package/dist/runner/supervise-child.d.ts +24 -0
  131. package/dist/runner/supervise-child.d.ts.map +1 -0
  132. package/dist/templates/blank/package.json +0 -1
  133. package/dist/templates/template.config.json +10 -9
  134. package/package.json +12 -8
  135. package/dist/commands/copilot-config-reader.d.ts +0 -3
  136. package/dist/commands/copilot-config-reader.d.ts.map +0 -1
  137. package/dist/commands/copilot-config.d.ts +0 -42
  138. package/dist/commands/copilot-config.d.ts.map +0 -1
  139. package/dist/commands/copilot-server.d.ts +0 -29
  140. package/dist/commands/copilot-server.d.ts.map +0 -1
  141. package/dist/commands/opencode-config.d.ts +0 -30
  142. package/dist/commands/opencode-config.d.ts.map +0 -1
  143. package/dist/dependencies/env-substitution.d.ts +0 -3
  144. package/dist/dependencies/env-substitution.d.ts.map +0 -1
  145. package/dist/dependencies/secrets-rewriter.d.ts +0 -25
  146. package/dist/dependencies/secrets-rewriter.d.ts.map +0 -1
  147. package/dist/templates/blank/dependencies.dev.lock.json +0 -6
  148. package/dist/templates/botpress-desk/dependencies.dev.lock.json +0 -6
  149. package/dist/templates/crm-enrichment/dependencies.dev.lock.json +0 -6
  150. package/dist/templates/hello-world/dependencies.dev.lock.json +0 -6
  151. package/dist/templates/knowledge-assistant/dependencies.dev.lock.json +0 -6
  152. package/dist/templates/slack-triage/dependencies.dev.lock.json +0 -6
@@ -0,0 +1,171 @@
1
+ import { z } from '@botpress/sdk';
2
+ import { type Agent0Config, type Agent0ConfigPreferences } from '../types.js';
3
+ export declare const agent0ProviderAuthSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"api_key">;
5
+ apiKey: z.ZodString;
6
+ baseURL: z.ZodOptional<z.ZodString>;
7
+ }, "strict", {
8
+ type: "api_key";
9
+ apiKey: string;
10
+ baseURL?: string | undefined;
11
+ }, {
12
+ type: "api_key";
13
+ apiKey: string;
14
+ baseURL?: string | undefined;
15
+ }>;
16
+ export declare const agent0ProviderConnectionSchema: z.ZodObject<{
17
+ providerId: z.ZodString;
18
+ enabled: z.ZodBoolean;
19
+ auth: z.ZodOptional<z.ZodObject<{
20
+ type: z.ZodLiteral<"api_key">;
21
+ apiKey: z.ZodString;
22
+ baseURL: z.ZodOptional<z.ZodString>;
23
+ }, "strict", {
24
+ type: "api_key";
25
+ apiKey: string;
26
+ baseURL?: string | undefined;
27
+ }, {
28
+ type: "api_key";
29
+ apiKey: string;
30
+ baseURL?: string | undefined;
31
+ }>>;
32
+ createdAt: z.ZodString;
33
+ updatedAt: z.ZodString;
34
+ }, "strict", {
35
+ enabled: boolean;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ providerId: string;
39
+ auth?: {
40
+ type: "api_key";
41
+ apiKey: string;
42
+ baseURL?: string | undefined;
43
+ } | undefined;
44
+ }, {
45
+ enabled: boolean;
46
+ createdAt: string;
47
+ updatedAt: string;
48
+ providerId: string;
49
+ auth?: {
50
+ type: "api_key";
51
+ apiKey: string;
52
+ baseURL?: string | undefined;
53
+ } | undefined;
54
+ }>;
55
+ export declare const agent0ConfigPreferencesSchema: z.ZodObject<{
56
+ defaultModel: z.ZodOptional<z.ZodString>;
57
+ showThinking: z.ZodBoolean;
58
+ showUsage: z.ZodBoolean;
59
+ }, "strict", {
60
+ showThinking: boolean;
61
+ showUsage: boolean;
62
+ defaultModel?: string | undefined;
63
+ }, {
64
+ showThinking: boolean;
65
+ showUsage: boolean;
66
+ defaultModel?: string | undefined;
67
+ }>;
68
+ export declare const agent0ConfigSchema: z.ZodObject<{
69
+ schemaVersion: z.ZodLiteral<1>;
70
+ enabled: z.ZodBoolean;
71
+ providers: z.ZodRecord<z.ZodString, z.ZodObject<{
72
+ providerId: z.ZodString;
73
+ enabled: z.ZodBoolean;
74
+ auth: z.ZodOptional<z.ZodObject<{
75
+ type: z.ZodLiteral<"api_key">;
76
+ apiKey: z.ZodString;
77
+ baseURL: z.ZodOptional<z.ZodString>;
78
+ }, "strict", {
79
+ type: "api_key";
80
+ apiKey: string;
81
+ baseURL?: string | undefined;
82
+ }, {
83
+ type: "api_key";
84
+ apiKey: string;
85
+ baseURL?: string | undefined;
86
+ }>>;
87
+ createdAt: z.ZodString;
88
+ updatedAt: z.ZodString;
89
+ }, "strict", {
90
+ enabled: boolean;
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ providerId: string;
94
+ auth?: {
95
+ type: "api_key";
96
+ apiKey: string;
97
+ baseURL?: string | undefined;
98
+ } | undefined;
99
+ }, {
100
+ enabled: boolean;
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ providerId: string;
104
+ auth?: {
105
+ type: "api_key";
106
+ apiKey: string;
107
+ baseURL?: string | undefined;
108
+ } | undefined;
109
+ }>>;
110
+ preferences: z.ZodObject<{
111
+ defaultModel: z.ZodOptional<z.ZodString>;
112
+ showThinking: z.ZodBoolean;
113
+ showUsage: z.ZodBoolean;
114
+ }, "strict", {
115
+ showThinking: boolean;
116
+ showUsage: boolean;
117
+ defaultModel?: string | undefined;
118
+ }, {
119
+ showThinking: boolean;
120
+ showUsage: boolean;
121
+ defaultModel?: string | undefined;
122
+ }>;
123
+ createdAt: z.ZodString;
124
+ updatedAt: z.ZodString;
125
+ }, "strict", {
126
+ enabled: boolean;
127
+ createdAt: string;
128
+ updatedAt: string;
129
+ schemaVersion: 1;
130
+ providers: Record<string, {
131
+ enabled: boolean;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ providerId: string;
135
+ auth?: {
136
+ type: "api_key";
137
+ apiKey: string;
138
+ baseURL?: string | undefined;
139
+ } | undefined;
140
+ }>;
141
+ preferences: {
142
+ showThinking: boolean;
143
+ showUsage: boolean;
144
+ defaultModel?: string | undefined;
145
+ };
146
+ }, {
147
+ enabled: boolean;
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ schemaVersion: 1;
151
+ providers: Record<string, {
152
+ enabled: boolean;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ providerId: string;
156
+ auth?: {
157
+ type: "api_key";
158
+ apiKey: string;
159
+ baseURL?: string | undefined;
160
+ } | undefined;
161
+ }>;
162
+ preferences: {
163
+ showThinking: boolean;
164
+ showUsage: boolean;
165
+ defaultModel?: string | undefined;
166
+ };
167
+ }>;
168
+ export declare const DEFAULT_AGENT0_PREFERENCES: Agent0ConfigPreferences;
169
+ export declare function createDefaultAgent0Config(now?: Date): Agent0Config;
170
+ export declare function parseAgent0Config(value: unknown): Agent0Config;
171
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/agent0/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,OAAO,EAAgC,KAAK,YAAY,EAAE,KAAK,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE3G,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAM1B,CAAA;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhC,CAAA;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAM/B,CAAA;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASpB,CAAA;AAEX,eAAO,MAAM,0BAA0B,EAAE,uBAGxC,CAAA;AAED,wBAAgB,yBAAyB,CAAC,GAAG,OAAa,GAAG,YAAY,CAUxE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAU9D"}
@@ -0,0 +1,4 @@
1
+ import type { Agent0Config, Agent0ConfigRedacted, Agent0ProviderConnection } from '../types.js';
2
+ export declare function redactAgent0Config(config: Agent0Config): Agent0ConfigRedacted;
3
+ export declare function hasAgent0ProviderAuth(connection: Agent0ProviderConnection | undefined): boolean;
4
+ //# sourceMappingURL=secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../../src/agent0/config/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EAGpB,wBAAwB,EAEzB,MAAM,aAAa,CAAA;AAkBpB,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,oBAAoB,CAU7E;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,wBAAwB,GAAG,SAAS,GAAG,OAAO,CAE/F"}
@@ -0,0 +1,21 @@
1
+ import type { Agent0Config } from '../types.js';
2
+ import { type Agent0PathOptions } from './paths.js';
3
+ export declare class Agent0ConfigError extends Error {
4
+ readonly cause?: unknown | undefined;
5
+ constructor(message: string, cause?: unknown | undefined);
6
+ }
7
+ export interface Agent0ConfigStoreOptions extends Agent0PathOptions {
8
+ configPath?: string;
9
+ now?: () => Date;
10
+ }
11
+ export declare class Agent0ConfigStore {
12
+ readonly configPath: string;
13
+ private readonly now;
14
+ private writeLock;
15
+ constructor(options?: Agent0ConfigStoreOptions);
16
+ read(): Promise<Agent0Config>;
17
+ write(config: Agent0Config): Promise<void>;
18
+ reset(): Promise<Agent0Config>;
19
+ update(updater: (config: Agent0Config) => Agent0Config | void): Promise<Agent0Config>;
20
+ }
21
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/agent0/config/store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAA8C,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG/F,qBAAa,iBAAkB,SAAQ,KAAK;IAGxC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;gBADxB,OAAO,EAAE,MAAM,EACN,KAAK,CAAC,EAAE,OAAO,YAAA;CAK3B;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,qBAAa,iBAAiB;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY;IAChC,OAAO,CAAC,SAAS,CAAmC;gBAExC,OAAO,GAAE,wBAA6B;IAK5C,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC;IAgB7B,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAK1C,KAAK,IAAI,OAAO,CAAC,YAAY,CAAC;IAM9B,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;CAkB5F"}
@@ -0,0 +1,6 @@
1
+ export * from './types.js';
2
+ export * from './capabilities/index.js';
3
+ export * from './config/index.js';
4
+ export * from './providers/index.js';
5
+ export * from './runtime/index.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent0/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}