@backendkit-labs/agent-core 0.27.1 → 0.29.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/README.md +1262 -1168
- package/dist/engine/AgentEngine.d.ts +25 -0
- package/dist/engine/AgentEngine.d.ts.map +1 -1
- package/dist/engine/AgentEngine.js +365 -27
- package/dist/engine/AgentEngine.js.map +1 -1
- package/dist/engine/ContextManager.d.ts +106 -0
- package/dist/engine/ContextManager.d.ts.map +1 -0
- package/dist/engine/ContextManager.js +257 -0
- package/dist/engine/ContextManager.js.map +1 -0
- package/dist/engine/HistoryManager.d.ts +8 -0
- package/dist/engine/HistoryManager.d.ts.map +1 -1
- package/dist/engine/HistoryManager.js +19 -0
- package/dist/engine/HistoryManager.js.map +1 -1
- package/dist/engine/contextOverflow.d.ts +7 -0
- package/dist/engine/contextOverflow.d.ts.map +1 -0
- package/dist/engine/contextOverflow.js +40 -0
- package/dist/engine/contextOverflow.js.map +1 -0
- package/dist/engine/createBaseEngine.d.ts +43 -0
- package/dist/engine/createBaseEngine.d.ts.map +1 -1
- package/dist/engine/createBaseEngine.js +13 -0
- package/dist/engine/createBaseEngine.js.map +1 -1
- package/dist/engine/secrets.d.ts +9 -0
- package/dist/engine/secrets.d.ts.map +1 -0
- package/dist/engine/secrets.js +24 -0
- package/dist/engine/secrets.js.map +1 -0
- package/dist/guardrails/GuardrailRunner.d.ts +13 -0
- package/dist/guardrails/GuardrailRunner.d.ts.map +1 -0
- package/dist/guardrails/GuardrailRunner.js +64 -0
- package/dist/guardrails/GuardrailRunner.js.map +1 -0
- package/dist/guardrails/builtins.d.ts +82 -0
- package/dist/guardrails/builtins.d.ts.map +1 -0
- package/dist/guardrails/builtins.js +232 -0
- package/dist/guardrails/builtins.js.map +1 -0
- package/dist/guardrails/index.d.ts +5 -0
- package/dist/guardrails/index.d.ts.map +1 -0
- package/dist/guardrails/index.js +15 -0
- package/dist/guardrails/index.js.map +1 -0
- package/dist/guardrails/types.d.ts +70 -0
- package/dist/guardrails/types.d.ts.map +1 -0
- package/dist/guardrails/types.js +3 -0
- package/dist/guardrails/types.js.map +1 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -4
- package/dist/index.js.map +1 -1
- package/dist/jobs/JobRegistry.d.ts +53 -0
- package/dist/jobs/JobRegistry.d.ts.map +1 -0
- package/dist/jobs/JobRegistry.js +121 -0
- package/dist/jobs/JobRegistry.js.map +1 -0
- package/dist/jobs/tools.d.ts +5 -0
- package/dist/jobs/tools.d.ts.map +1 -0
- package/dist/jobs/tools.js +51 -0
- package/dist/jobs/tools.js.map +1 -0
- package/dist/mcp/MCPClientManager.js +2 -2
- package/dist/mcp/MCPClientManager.js.map +1 -1
- package/dist/observability/MetricsCollector.d.ts +2 -0
- package/dist/observability/MetricsCollector.d.ts.map +1 -1
- package/dist/observability/MetricsCollector.js +15 -0
- package/dist/observability/MetricsCollector.js.map +1 -1
- package/dist/observability/ObservabilityManager.d.ts +2 -0
- package/dist/observability/ObservabilityManager.d.ts.map +1 -1
- package/dist/observability/ObservabilityManager.js +45 -0
- package/dist/observability/ObservabilityManager.js.map +1 -1
- package/dist/observability/Tracer.d.ts +12 -0
- package/dist/observability/Tracer.d.ts.map +1 -1
- package/dist/observability/Tracer.js +19 -0
- package/dist/observability/Tracer.js.map +1 -1
- package/dist/observability/types.d.ts +6 -0
- package/dist/observability/types.d.ts.map +1 -1
- package/dist/observability/types.js.map +1 -1
- package/dist/tools/defineTool.d.ts +2 -0
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +1 -0
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/types/index.d.ts +97 -6
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +87 -87
package/dist/types/index.d.ts
CHANGED
|
@@ -36,12 +36,17 @@ export interface AgentProfile {
|
|
|
36
36
|
* environment variable — the difference between "this agent can spend"
|
|
37
37
|
* and "every agent shares one key that any of them could exceed or leak".
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* A value is either the literal secret or a reference `{ env: "NAME" }` resolved on
|
|
40
|
+
* every call (so a rotated variable applies without a restart; unset falls back to
|
|
41
|
+
* the engine's `secretResolver`). Prefer references: literals live in the profile
|
|
42
|
+
* file, which is not encrypted — treat it as sensitive like an .env file.
|
|
42
43
|
*/
|
|
43
|
-
secrets?: Record<string, string>;
|
|
44
|
+
secrets?: Record<string, string | SecretRef>;
|
|
44
45
|
}
|
|
46
|
+
/** A credential read from the environment at call time instead of stored in the profile. */
|
|
47
|
+
export type SecretRef = {
|
|
48
|
+
env: string;
|
|
49
|
+
};
|
|
45
50
|
export type JSONSchema = Record<string, unknown>;
|
|
46
51
|
export interface ToolDefinition {
|
|
47
52
|
name: string;
|
|
@@ -49,9 +54,20 @@ export interface ToolDefinition {
|
|
|
49
54
|
parameters: JSONSchema;
|
|
50
55
|
/** Safe to run alongside other concurrencySafe tools in the same turn (read-only, order-independent). Default false. */
|
|
51
56
|
concurrencySafe?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Time limit for one call, in ms; takes precedence over the engine's `toolTimeoutMs`. When it expires
|
|
59
|
+
* `ctx.signal` is aborted and the model gets a `TOOL_TIMEOUT` error. Default: none.
|
|
60
|
+
*/
|
|
61
|
+
timeoutMs?: number;
|
|
52
62
|
execute(args: unknown, ctx: ExecutionContext): Promise<string>;
|
|
53
63
|
}
|
|
54
64
|
export interface ExecutionContext {
|
|
65
|
+
/**
|
|
66
|
+
* Aborted when the engine is aborted (`engine.abort()`, budget exceeded) or when the call's time
|
|
67
|
+
* limit expires. Pass it to `fetch`, child processes and other cancellable work so they stop instead
|
|
68
|
+
* of running on after the model has been told the call ended.
|
|
69
|
+
*/
|
|
70
|
+
signal?: AbortSignal;
|
|
55
71
|
agentId: string;
|
|
56
72
|
sessionId: string;
|
|
57
73
|
workingDir?: string;
|
|
@@ -81,6 +97,11 @@ export interface ExecutionContext {
|
|
|
81
97
|
* it explicitly and return a clear error rather than assume it's there.
|
|
82
98
|
*/
|
|
83
99
|
secrets?: Record<string, string>;
|
|
100
|
+
/**
|
|
101
|
+
* Background jobs of this engine (present when `jobs` is enabled). A tool starts one with
|
|
102
|
+
* `jobs.start({ kind, owner: ctx.agentId, run })` and returns its id instead of blocking.
|
|
103
|
+
*/
|
|
104
|
+
jobs?: import('../jobs/JobRegistry').JobRegistry;
|
|
84
105
|
}
|
|
85
106
|
export interface SessionMemoryData {
|
|
86
107
|
get(key: string): string | undefined;
|
|
@@ -195,6 +216,8 @@ export interface LLMProvider {
|
|
|
195
216
|
capabilities?: {
|
|
196
217
|
structuredOutput: StructuredOutputSupport;
|
|
197
218
|
};
|
|
219
|
+
/** Default model this provider talks to; used to label traces when the agent profile sets no `model`. */
|
|
220
|
+
readonly modelId?: string;
|
|
198
221
|
}
|
|
199
222
|
export type ToolApprovalDecision = 'approve' | 'approve_all' | 'reject';
|
|
200
223
|
export type AgentEvent = {
|
|
@@ -207,11 +230,17 @@ export type AgentEvent = {
|
|
|
207
230
|
type: 'tool_call';
|
|
208
231
|
name: string;
|
|
209
232
|
args_preview?: string;
|
|
210
|
-
}
|
|
233
|
+
}
|
|
234
|
+
/** `agent_id`, `started_at` (epoch ms) and `duration_ms` let tracing build an accurate span per tool call. */
|
|
235
|
+
| {
|
|
211
236
|
type: 'tool_result';
|
|
212
237
|
name: string;
|
|
213
238
|
success: boolean;
|
|
214
239
|
preview?: string;
|
|
240
|
+
agent_id?: string;
|
|
241
|
+
started_at?: number;
|
|
242
|
+
duration_ms?: number;
|
|
243
|
+
outcome?: 'timeout' | 'aborted';
|
|
215
244
|
} | {
|
|
216
245
|
type: 'tool_approval_request';
|
|
217
246
|
tool_name: string;
|
|
@@ -235,13 +264,25 @@ export type AgentEvent = {
|
|
|
235
264
|
} | {
|
|
236
265
|
type: 'thinking';
|
|
237
266
|
label: string;
|
|
238
|
-
}
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Usage of one LLM call. `agent_id`, `provider`, `model`, `started_at` (epoch ms) and `duration_ms` are
|
|
270
|
+
* present when the engine knows them and let tracing build an accurate `llm_call` span; `purpose` marks
|
|
271
|
+
* calls that are not the agent's own turn (e.g. `context_summary`, `structured_output`).
|
|
272
|
+
*/
|
|
273
|
+
| {
|
|
239
274
|
type: 'metrics';
|
|
240
275
|
input_tokens: number;
|
|
241
276
|
output_tokens: number;
|
|
242
277
|
cost_usd?: number;
|
|
243
278
|
cache_read_tokens?: number;
|
|
244
279
|
cache_write_tokens?: number;
|
|
280
|
+
agent_id?: string;
|
|
281
|
+
provider?: string;
|
|
282
|
+
model?: string;
|
|
283
|
+
started_at?: number;
|
|
284
|
+
duration_ms?: number;
|
|
285
|
+
purpose?: string;
|
|
245
286
|
} | {
|
|
246
287
|
type: 'done';
|
|
247
288
|
} | {
|
|
@@ -276,13 +317,45 @@ export type AgentEvent = {
|
|
|
276
317
|
type: 'compacting';
|
|
277
318
|
label: string;
|
|
278
319
|
phase: 'start' | 'done' | 'fail';
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* A guardrail changed, blocked or failed on a piece of text. `replacement` (output phase only) is the
|
|
323
|
+
* text that replaces what was already streamed, so a UI can swap it. `dry_run` events changed nothing.
|
|
324
|
+
*/
|
|
325
|
+
| {
|
|
326
|
+
type: 'guardrail';
|
|
327
|
+
name: string;
|
|
328
|
+
phase: 'input' | 'tool_call' | 'tool_result' | 'output';
|
|
329
|
+
action: 'redact' | 'block' | 'error';
|
|
330
|
+
reason: string;
|
|
331
|
+
agent_id?: string;
|
|
332
|
+
tool?: string;
|
|
333
|
+
dry_run?: boolean;
|
|
334
|
+
replacement?: string;
|
|
279
335
|
};
|
|
280
336
|
import type { Skill } from '../skills/types';
|
|
281
337
|
import type { BudgetUsage } from '../observability/types';
|
|
338
|
+
import type { ContextOptions } from '../engine/ContextManager';
|
|
339
|
+
import type { Guardrail } from '../guardrails/types';
|
|
282
340
|
export type { Skill };
|
|
283
341
|
export interface EngineOptions {
|
|
284
342
|
model: ModelConfig;
|
|
285
343
|
maxIterations?: number;
|
|
344
|
+
/**
|
|
345
|
+
* Default time limit for one tool call, in ms (a tool's own `timeoutMs` wins). On expiry the call's
|
|
346
|
+
* `ctx.signal` is aborted and the model receives `Error: TOOL_TIMEOUT …`; a result that arrives
|
|
347
|
+
* later is discarded. Time spent waiting for approval does not count. Default: no limit.
|
|
348
|
+
*/
|
|
349
|
+
toolTimeoutMs?: number;
|
|
350
|
+
/**
|
|
351
|
+
* Last resort for `AgentProfile.secrets` references whose environment variable is unset
|
|
352
|
+
* (e.g. a vault lookup). Called on every tool call; returning nothing omits the secret.
|
|
353
|
+
*/
|
|
354
|
+
secretResolver?: (name: string, agentId: string) => string | undefined | Promise<string | undefined>;
|
|
355
|
+
/** Background job registry shared by the engine's tools (see BaseEngineOptions.jobs). */
|
|
356
|
+
jobs?: import('../jobs/JobRegistry').JobRegistry;
|
|
357
|
+
/** After a tool's signal is aborted, how long to wait for it to wind down before replying. Default 2000. */
|
|
358
|
+
toolTimeoutGraceMs?: number;
|
|
286
359
|
maxParallelAgents?: number;
|
|
287
360
|
/**
|
|
288
361
|
* Maximum number of messages to keep in the conversation history.
|
|
@@ -294,6 +367,24 @@ export interface EngineOptions {
|
|
|
294
367
|
* Recommended: 100–200 for interactive agents; 40–60 for long-running autonomous agents.
|
|
295
368
|
*/
|
|
296
369
|
maxContextMessages?: number;
|
|
370
|
+
/**
|
|
371
|
+
* Token-aware context control: truncates bulky old tool results, then folds the oldest turns into a
|
|
372
|
+
* summary (or drops them) so the history stays under `context.maxTokens`. Checked before every LLM call.
|
|
373
|
+
* Can be combined with `maxContextMessages`. Default: disabled.
|
|
374
|
+
*/
|
|
375
|
+
context?: ContextOptions;
|
|
376
|
+
/**
|
|
377
|
+
* Checks on user input, tool arguments, tool results and model answers (see Guardrail). Applied to
|
|
378
|
+
* the main agent and to every sub-agent. Default: none.
|
|
379
|
+
*/
|
|
380
|
+
guardrails?: Guardrail[];
|
|
381
|
+
/**
|
|
382
|
+
* How `output` guardrails act on a streamed answer. `after` (default) keeps streaming and, when a
|
|
383
|
+
* guardrail changes the answer, corrects the stored history and emits a `guardrail` event with the
|
|
384
|
+
* `replacement`. `buffer` holds the tokens until the answer is checked: nothing unchecked is ever
|
|
385
|
+
* shown, at the price of streaming.
|
|
386
|
+
*/
|
|
387
|
+
guardrailOutputMode?: 'after' | 'buffer';
|
|
297
388
|
workingDir?: string;
|
|
298
389
|
sessionId?: string;
|
|
299
390
|
/** Context injected into every agent system prompt (USER.md + AGENT.md + memory/contexto-proyecto.md + learnings.md + memory/session.md + audits/lecciones-aprendidas.md) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC;IAC/D,4FAA4F;IAC5F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACpC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@backendkit-labs/agent-core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Generic multi-agent engine — model-agnostic, transport-agnostic",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"default": "./dist/index.js"
|
|
11
|
-
},
|
|
12
|
-
"./orchestration": {
|
|
13
|
-
"types": "./dist/orchestration/index.d.ts",
|
|
14
|
-
"default": "./dist/orchestration/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./mcp": {
|
|
17
|
-
"types": "./dist/mcp/index.d.ts",
|
|
18
|
-
"default": "./dist/mcp/index.js"
|
|
19
|
-
},
|
|
20
|
-
"./workflow": {
|
|
21
|
-
"types": "./dist/workflow/index.d.ts",
|
|
22
|
-
"default": "./dist/workflow/index.js"
|
|
23
|
-
},
|
|
24
|
-
"./triggers": {
|
|
25
|
-
"types": "./dist/triggers/index.d.ts",
|
|
26
|
-
"default": "./dist/triggers/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./observability": {
|
|
29
|
-
"types": "./dist/observability/index.d.ts",
|
|
30
|
-
"default": "./dist/observability/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./memory": {
|
|
33
|
-
"types": "./dist/agent-memory/index.d.ts",
|
|
34
|
-
"default": "./dist/agent-memory/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./discovery": {
|
|
37
|
-
"types": "./dist/agent-discovery/index.d.ts",
|
|
38
|
-
"default": "./dist/agent-discovery/index.js"
|
|
39
|
-
},
|
|
40
|
-
"./reflection": {
|
|
41
|
-
"types": "./dist/reflection/index.d.ts",
|
|
42
|
-
"default": "./dist/reflection/index.js"
|
|
43
|
-
},
|
|
44
|
-
"./context": {
|
|
45
|
-
"types": "./dist/context/index.d.ts",
|
|
46
|
-
"default": "./dist/context/index.js"
|
|
47
|
-
},
|
|
48
|
-
"./skills": {
|
|
49
|
-
"types": "./dist/skills/index.d.ts",
|
|
50
|
-
"default": "./dist/skills/index.js"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"files": ["dist/", "README.md"],
|
|
54
|
-
"repository": {
|
|
55
|
-
"type": "git",
|
|
56
|
-
"url": "git+https://github.com/BackendKit-labs/backendkit-agent-framework.git",
|
|
57
|
-
"directory": "packages/core"
|
|
58
|
-
},
|
|
59
|
-
"publishConfig": { "access": "public" },
|
|
60
|
-
"engines": { "node": ">=20.0.0" },
|
|
61
|
-
"scripts": {
|
|
62
|
-
"build": "tsc",
|
|
63
|
-
"dev": "tsc --watch",
|
|
64
|
-
"typecheck": "tsc --noEmit",
|
|
65
|
-
"test": "jest",
|
|
66
|
-
"prepublishOnly": "npm run build"
|
|
67
|
-
},
|
|
68
|
-
"dependencies": {
|
|
69
|
-
"@backendkit-labs/bulkhead": "^0.2.1",
|
|
70
|
-
"@backendkit-labs/circuit-breaker": "^0.4.0",
|
|
71
|
-
"@backendkit-labs/pipeline": "^0.3.2",
|
|
72
|
-
"@backendkit-labs/result": "^0.2.1",
|
|
73
|
-
"@backendkit-labs/retry": "^0.1.2",
|
|
74
|
-
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
75
|
-
"node-cron": "^4.2.1",
|
|
76
|
-
"yaml": "^2.4.0",
|
|
77
|
-
"zod": "^3.25.0",
|
|
78
|
-
"zod-to-json-schema": "^3.24.0"
|
|
79
|
-
},
|
|
80
|
-
"devDependencies": {
|
|
81
|
-
"@types/jest": "^29.0.0",
|
|
82
|
-
"@types/node": "^20.0.0",
|
|
83
|
-
"jest": "^29.0.0",
|
|
84
|
-
"ts-jest": "^29.0.0",
|
|
85
|
-
"typescript": "^5.4.0"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@backendkit-labs/agent-core",
|
|
3
|
+
"version": "0.29.0",
|
|
4
|
+
"description": "Generic multi-agent engine — model-agnostic, transport-agnostic",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./orchestration": {
|
|
13
|
+
"types": "./dist/orchestration/index.d.ts",
|
|
14
|
+
"default": "./dist/orchestration/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./mcp": {
|
|
17
|
+
"types": "./dist/mcp/index.d.ts",
|
|
18
|
+
"default": "./dist/mcp/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./workflow": {
|
|
21
|
+
"types": "./dist/workflow/index.d.ts",
|
|
22
|
+
"default": "./dist/workflow/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./triggers": {
|
|
25
|
+
"types": "./dist/triggers/index.d.ts",
|
|
26
|
+
"default": "./dist/triggers/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./observability": {
|
|
29
|
+
"types": "./dist/observability/index.d.ts",
|
|
30
|
+
"default": "./dist/observability/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./memory": {
|
|
33
|
+
"types": "./dist/agent-memory/index.d.ts",
|
|
34
|
+
"default": "./dist/agent-memory/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./discovery": {
|
|
37
|
+
"types": "./dist/agent-discovery/index.d.ts",
|
|
38
|
+
"default": "./dist/agent-discovery/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./reflection": {
|
|
41
|
+
"types": "./dist/reflection/index.d.ts",
|
|
42
|
+
"default": "./dist/reflection/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./context": {
|
|
45
|
+
"types": "./dist/context/index.d.ts",
|
|
46
|
+
"default": "./dist/context/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./skills": {
|
|
49
|
+
"types": "./dist/skills/index.d.ts",
|
|
50
|
+
"default": "./dist/skills/index.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"files": ["dist/", "README.md"],
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "git+https://github.com/BackendKit-labs/backendkit-agent-framework.git",
|
|
57
|
+
"directory": "packages/core"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": { "access": "public" },
|
|
60
|
+
"engines": { "node": ">=20.0.0" },
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "tsc",
|
|
63
|
+
"dev": "tsc --watch",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"test": "jest",
|
|
66
|
+
"prepublishOnly": "npm run build"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@backendkit-labs/bulkhead": "^0.2.1",
|
|
70
|
+
"@backendkit-labs/circuit-breaker": "^0.4.0",
|
|
71
|
+
"@backendkit-labs/pipeline": "^0.3.2",
|
|
72
|
+
"@backendkit-labs/result": "^0.2.1",
|
|
73
|
+
"@backendkit-labs/retry": "^0.1.2",
|
|
74
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
75
|
+
"node-cron": "^4.2.1",
|
|
76
|
+
"yaml": "^2.4.0",
|
|
77
|
+
"zod": "^3.25.0",
|
|
78
|
+
"zod-to-json-schema": "^3.24.0"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@types/jest": "^29.0.0",
|
|
82
|
+
"@types/node": "^20.0.0",
|
|
83
|
+
"jest": "^29.0.0",
|
|
84
|
+
"ts-jest": "^29.0.0",
|
|
85
|
+
"typescript": "^5.4.0"
|
|
86
|
+
}
|
|
87
|
+
}
|