create-bk-agent 0.23.4 → 0.23.6

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 (45) hide show
  1. package/README.md +0 -2
  2. package/dist/src/add/modules/knowledge.js +18 -18
  3. package/dist/src/add/modules/server.js +1 -1
  4. package/dist/src/add/patcher.js +106 -68
  5. package/dist/src/scaffold.js +29 -16
  6. package/package.json +2 -2
  7. package/templates/README.md +26 -0
  8. package/templates/base/autonomous/package.json +1 -1
  9. package/templates/base/autonomous/src/index.ts +83 -83
  10. package/templates/base/coding/package.json +1 -1
  11. package/templates/base/enterprise/package.json +1 -1
  12. package/templates/base/minimal/package.json +1 -1
  13. package/templates/base/minimal/src/index.ts +43 -43
  14. package/templates/base/multi-agent/package.json +2 -2
  15. package/templates/base/multi-agent/src/engine.ts +78 -78
  16. package/templates/base/single/package.json +2 -2
  17. package/templates/base/single/src/engine.ts +67 -67
  18. package/templates/autonomous/.env.example +0 -8
  19. package/templates/autonomous/package.json +0 -25
  20. package/templates/autonomous/src/index.ts +0 -64
  21. package/templates/autonomous/tsconfig.json +0 -16
  22. package/templates/base/multi-agent/src/providers/openai-compatible.ts +0 -104
  23. package/templates/base/single/src/providers/openai-compatible.ts +0 -104
  24. package/templates/coding/.env.example +0 -8
  25. package/templates/coding/package.json +0 -26
  26. package/templates/coding/src/index.ts +0 -42
  27. package/templates/coding/tsconfig.json +0 -17
  28. package/templates/domain-agent/.env.example +0 -7
  29. package/templates/domain-agent/package.json +0 -27
  30. package/templates/domain-agent/src/agents/orchestrator.ts +0 -22
  31. package/templates/domain-agent/src/agents/specialist-a.ts +0 -17
  32. package/templates/domain-agent/src/agents/specialist-b.ts +0 -16
  33. package/templates/domain-agent/src/config.ts +0 -19
  34. package/templates/domain-agent/src/engine.ts +0 -49
  35. package/templates/domain-agent/src/index.ts +0 -27
  36. package/templates/domain-agent/src/providers/openai-compatible.ts +0 -104
  37. package/templates/domain-agent/src/tools/example-tools.ts +0 -28
  38. package/templates/domain-agent/tsconfig.json +0 -17
  39. package/templates/mcp-server/package.json +0 -30
  40. package/templates/mcp-server/src/server.ts +0 -40
  41. package/templates/mcp-server/src/tools/example.ts +0 -10
  42. package/templates/mcp-server/tsconfig.json +0 -16
  43. package/templates/minimal/package.json +0 -25
  44. package/templates/minimal/src/index.ts +0 -40
  45. package/templates/minimal/tsconfig.json +0 -16
@@ -1,25 +0,0 @@
1
- {
2
- "name": "my-agent",
3
- "version": "0.1.0",
4
- "private": true,
5
- "description": "Minimal agent — full control over engine configuration",
6
- "main": "dist/index.js",
7
- "scripts": {
8
- "dev": "ts-node src/index.ts",
9
- "build": "tsc",
10
- "start": "node dist/index.js",
11
- "typecheck": "tsc --noEmit"
12
- },
13
- "dependencies": {
14
- "@backendkit-labs/agent-core": "^0.36.0",
15
- "dotenv": "^16.0.0"
16
- },
17
- "devDependencies": {
18
- "@types/node": "^20.0.0",
19
- "ts-node": "^10.9.0",
20
- "typescript": "^5.4.0"
21
- },
22
- "engines": {
23
- "node": ">=20.0.0"
24
- }
25
- }
@@ -1,40 +0,0 @@
1
- import 'dotenv/config';
2
- import { createBaseEngine } from '@backendkit-labs/agent-core';
3
- import type { AgentProfile, LLMProvider } from '@backendkit-labs/agent-core';
4
-
5
- // ── Provider ──────────────────────────────────────────────────────────────────
6
- // TODO: replace with the actual provider for your chosen LLM
7
- // e.g. AnthropicProvider from @backendkit-labs/agent-coding
8
- // or implement LLMProvider interface directly
9
-
10
- const myProvider: LLMProvider = {
11
- chat: async (_messages, _tools, callbacks) => {
12
- // TODO: call your LLM API here
13
- callbacks.onDone({ role: 'assistant', content: 'Hello from my agent!' });
14
- },
15
- };
16
-
17
- // ── Agent ─────────────────────────────────────────────────────────────────────
18
-
19
- const myAgent: AgentProfile = {
20
- id: 'my-agent',
21
- name: 'My Agent',
22
- description: 'TODO: describe your agent',
23
- allowedTools: [],
24
- delegatesTo: [],
25
- systemPrompt: 'TODO: write your system prompt here.',
26
- };
27
-
28
- // ── Engine ────────────────────────────────────────────────────────────────────
29
-
30
- const engine = createBaseEngine({
31
- providers: { default: myProvider },
32
- defaultProvider: 'default',
33
- agents: [myAgent],
34
- defaultAgent: 'my-agent',
35
- });
36
-
37
- // ── Run ───────────────────────────────────────────────────────────────────────
38
-
39
- const input = process.argv[2] ?? 'Hello';
40
- await engine.run(input);
@@ -1,16 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "commonjs",
5
- "moduleResolution": "node16",
6
- "lib": ["ES2022"],
7
- "types": ["node"],
8
- "outDir": "dist",
9
- "rootDir": "src",
10
- "strict": true,
11
- "skipLibCheck": true,
12
- "esModuleInterop": true
13
- },
14
- "include": ["src/**/*"],
15
- "exclude": ["node_modules", "dist"]
16
- }