@theokit/agents 0.47.0 → 1.0.1
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/{bridge-entry-BQ6UUSLZ.d.ts → bridge-entry-F9kHGaIn.d.ts} +378 -106
- package/dist/bridge.d.ts +1 -2
- package/dist/bridge.js +3 -12
- package/dist/{chunk-FEH7JFH7.js → chunk-PTHRG25K.js} +143 -359
- package/dist/chunk-PTHRG25K.js.map +1 -0
- package/dist/index.d.ts +173 -15
- package/dist/index.js +233 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/dist/chunk-FEH7JFH7.js.map +0 -1
- package/dist/chunk-NERDIS45.js +0 -329
- package/dist/chunk-NERDIS45.js.map +0 -1
- package/dist/decorators.d.ts +0 -176
- package/dist/decorators.js +0 -308
- package/dist/decorators.js.map +0 -1
- package/dist/types-DVA4LQsA.d.ts +0 -313
package/dist/chunk-NERDIS45.js
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-7QVYU63E.js";
|
|
4
|
-
|
|
5
|
-
// src/metadata/index.ts
|
|
6
|
-
import { setMeta, getMeta } from "@theokit/http";
|
|
7
|
-
|
|
8
|
-
// src/metadata/keys.ts
|
|
9
|
-
var AGENT_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:config");
|
|
10
|
-
var AGENT_MAIN_LOOP = /* @__PURE__ */ Symbol.for("theokit:agents:main-loop");
|
|
11
|
-
var TOOLBOX_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:toolbox");
|
|
12
|
-
var TOOL_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:tool");
|
|
13
|
-
var TOOL_METHODS = /* @__PURE__ */ Symbol.for("theokit:agents:tool-methods");
|
|
14
|
-
|
|
15
|
-
// src/decorators/checkpoint.ts
|
|
16
|
-
var CHECKPOINT_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:checkpoint");
|
|
17
|
-
function Checkpoint(options = {}) {
|
|
18
|
-
return (target) => {
|
|
19
|
-
setMeta(CHECKPOINT_CONFIG, target, {
|
|
20
|
-
storage: "memory",
|
|
21
|
-
strategy: "after-tool-call",
|
|
22
|
-
maxCheckpoints: 10,
|
|
23
|
-
ttl: 36e5,
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
__name(Checkpoint, "Checkpoint");
|
|
29
|
-
function getCheckpointConfig(target) {
|
|
30
|
-
return getMeta(CHECKPOINT_CONFIG, target);
|
|
31
|
-
}
|
|
32
|
-
__name(getCheckpointConfig, "getCheckpointConfig");
|
|
33
|
-
|
|
34
|
-
// src/decorators/compaction.ts
|
|
35
|
-
var COMPACTION_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:compaction");
|
|
36
|
-
function Compaction(name, options = {}) {
|
|
37
|
-
return (target) => {
|
|
38
|
-
setMeta(COMPACTION_CONFIG, target, {
|
|
39
|
-
name,
|
|
40
|
-
keepTokens: options.keepTokens
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
__name(Compaction, "Compaction");
|
|
45
|
-
function getCompactionConfig(target) {
|
|
46
|
-
return getMeta(COMPACTION_CONFIG, target);
|
|
47
|
-
}
|
|
48
|
-
__name(getCompactionConfig, "getCompactionConfig");
|
|
49
|
-
|
|
50
|
-
// src/decorators/context-window.ts
|
|
51
|
-
var CONTEXT_WINDOW_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:context-window");
|
|
52
|
-
function ContextWindow(options = {}) {
|
|
53
|
-
return (target) => {
|
|
54
|
-
setMeta(CONTEXT_WINDOW_CONFIG, target, {
|
|
55
|
-
maxTokens: 1e5,
|
|
56
|
-
compactionStrategy: "summarize-oldest",
|
|
57
|
-
preserveSystemPrompt: true,
|
|
58
|
-
preserveLastN: 10,
|
|
59
|
-
preserveToolResults: true,
|
|
60
|
-
...options
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
__name(ContextWindow, "ContextWindow");
|
|
65
|
-
function getContextWindowConfig(target) {
|
|
66
|
-
return getMeta(CONTEXT_WINDOW_CONFIG, target);
|
|
67
|
-
}
|
|
68
|
-
__name(getContextWindowConfig, "getContextWindowConfig");
|
|
69
|
-
|
|
70
|
-
// src/decorators/gateway.ts
|
|
71
|
-
var GATEWAY_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:gateway");
|
|
72
|
-
function Gateway(options) {
|
|
73
|
-
return (target) => {
|
|
74
|
-
setMeta(GATEWAY_CONFIG, target, {
|
|
75
|
-
typing: true,
|
|
76
|
-
sessionStrategy: "per-user",
|
|
77
|
-
...options
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
__name(Gateway, "Gateway");
|
|
82
|
-
function getGatewayConfig(target) {
|
|
83
|
-
return getMeta(GATEWAY_CONFIG, target);
|
|
84
|
-
}
|
|
85
|
-
__name(getGatewayConfig, "getGatewayConfig");
|
|
86
|
-
function resolveSessionId(strategy, platform, sender, channel) {
|
|
87
|
-
switch (strategy) {
|
|
88
|
-
case "per-user":
|
|
89
|
-
return `${platform}-dm-${sender.id}`;
|
|
90
|
-
case "per-channel":
|
|
91
|
-
return `${platform}-grp-${channel.id}`;
|
|
92
|
-
case "per-thread":
|
|
93
|
-
return `${platform}-tpc-${channel.id}-${channel.topicId ?? "main"}`;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
__name(resolveSessionId, "resolveSessionId");
|
|
97
|
-
|
|
98
|
-
// src/decorators/guardrails.ts
|
|
99
|
-
var GUARDRAILS_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:guardrails");
|
|
100
|
-
function Guardrails(guardrails) {
|
|
101
|
-
return (target) => {
|
|
102
|
-
setMeta(GUARDRAILS_CONFIG, target, guardrails);
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
__name(Guardrails, "Guardrails");
|
|
106
|
-
function getGuardrailsConfig(target) {
|
|
107
|
-
return getMeta(GUARDRAILS_CONFIG, target);
|
|
108
|
-
}
|
|
109
|
-
__name(getGuardrailsConfig, "getGuardrailsConfig");
|
|
110
|
-
|
|
111
|
-
// src/decorators/human-in-the-loop.ts
|
|
112
|
-
var HITL_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:human-in-the-loop");
|
|
113
|
-
function HumanInTheLoop(options) {
|
|
114
|
-
return (target, propertyKey) => {
|
|
115
|
-
const actualTarget = target.constructor;
|
|
116
|
-
setMeta(HITL_CONFIG, actualTarget, {
|
|
117
|
-
timeout: 3e5,
|
|
118
|
-
onTimeout: "abort",
|
|
119
|
-
showInput: true,
|
|
120
|
-
...options
|
|
121
|
-
}, propertyKey);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
__name(HumanInTheLoop, "HumanInTheLoop");
|
|
125
|
-
function getHumanInTheLoopConfig(target, propertyKey) {
|
|
126
|
-
return getMeta(HITL_CONFIG, target, propertyKey);
|
|
127
|
-
}
|
|
128
|
-
__name(getHumanInTheLoopConfig, "getHumanInTheLoopConfig");
|
|
129
|
-
|
|
130
|
-
// src/decorators/mcp.ts
|
|
131
|
-
var MCP_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:mcp");
|
|
132
|
-
function MCP(servers) {
|
|
133
|
-
return (target) => {
|
|
134
|
-
setMeta(MCP_CONFIG, target, servers);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
__name(MCP, "MCP");
|
|
138
|
-
function getMcpConfig(target) {
|
|
139
|
-
return getMeta(MCP_CONFIG, target);
|
|
140
|
-
}
|
|
141
|
-
__name(getMcpConfig, "getMcpConfig");
|
|
142
|
-
|
|
143
|
-
// src/decorators/memory.ts
|
|
144
|
-
var MEMORY_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:memory");
|
|
145
|
-
function Memory(options = {}) {
|
|
146
|
-
return (target) => {
|
|
147
|
-
setMeta(MEMORY_CONFIG, target, {
|
|
148
|
-
provider: "built-in",
|
|
149
|
-
embeddings: false,
|
|
150
|
-
fts: false,
|
|
151
|
-
scope: "per-user",
|
|
152
|
-
...options
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
__name(Memory, "Memory");
|
|
157
|
-
function getMemoryConfig(target) {
|
|
158
|
-
return getMeta(MEMORY_CONFIG, target);
|
|
159
|
-
}
|
|
160
|
-
__name(getMemoryConfig, "getMemoryConfig");
|
|
161
|
-
|
|
162
|
-
// src/decorators/observability.ts
|
|
163
|
-
import { createDecorator } from "@theokit/http";
|
|
164
|
-
var Trace = createDecorator();
|
|
165
|
-
var Audit = createDecorator();
|
|
166
|
-
|
|
167
|
-
// src/decorators/policies.ts
|
|
168
|
-
import { createDecorator as createDecorator2 } from "@theokit/http";
|
|
169
|
-
var RequiresApproval = createDecorator2();
|
|
170
|
-
var RequiresCapability = createDecorator2();
|
|
171
|
-
var Budget = createDecorator2();
|
|
172
|
-
var Policy = createDecorator2();
|
|
173
|
-
|
|
174
|
-
// src/decorators/project-context.ts
|
|
175
|
-
var PROJECT_CONTEXT_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:project-context");
|
|
176
|
-
function ProjectContext(options = {}) {
|
|
177
|
-
return (target) => {
|
|
178
|
-
setMeta(PROJECT_CONTEXT_CONFIG, target, {
|
|
179
|
-
rootMarkers: [
|
|
180
|
-
"package.json",
|
|
181
|
-
"tsconfig.json",
|
|
182
|
-
"go.mod",
|
|
183
|
-
"Cargo.toml",
|
|
184
|
-
"pyproject.toml"
|
|
185
|
-
],
|
|
186
|
-
indexStrategy: "regex",
|
|
187
|
-
maxFilesInContext: 20,
|
|
188
|
-
relevanceStrategy: "git-history",
|
|
189
|
-
ignorePatterns: [
|
|
190
|
-
"node_modules",
|
|
191
|
-
"dist",
|
|
192
|
-
"build",
|
|
193
|
-
".git",
|
|
194
|
-
"coverage",
|
|
195
|
-
"__pycache__"
|
|
196
|
-
],
|
|
197
|
-
...options
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
__name(ProjectContext, "ProjectContext");
|
|
202
|
-
function getProjectContextConfig(target) {
|
|
203
|
-
return getMeta(PROJECT_CONTEXT_CONFIG, target);
|
|
204
|
-
}
|
|
205
|
-
__name(getProjectContextConfig, "getProjectContextConfig");
|
|
206
|
-
|
|
207
|
-
// src/decorators/skills.ts
|
|
208
|
-
var SKILLS_CONFIG = /* @__PURE__ */ Symbol.for("theokit:agents:skills");
|
|
209
|
-
function Skills(namesOrOptions) {
|
|
210
|
-
return (target) => {
|
|
211
|
-
const options = Array.isArray(namesOrOptions) ? {
|
|
212
|
-
include: namesOrOptions,
|
|
213
|
-
autoDiscover: false
|
|
214
|
-
} : namesOrOptions;
|
|
215
|
-
setMeta(SKILLS_CONFIG, target, options);
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
__name(Skills, "Skills");
|
|
219
|
-
function getSkillsConfig(target) {
|
|
220
|
-
return getMeta(SKILLS_CONFIG, target);
|
|
221
|
-
}
|
|
222
|
-
__name(getSkillsConfig, "getSkillsConfig");
|
|
223
|
-
|
|
224
|
-
// src/decorators/agent.ts
|
|
225
|
-
function inferAgentMeta(className) {
|
|
226
|
-
const stripped = className.replace(/Agent$/, "");
|
|
227
|
-
const kebab = stripped.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
228
|
-
return {
|
|
229
|
-
name: kebab,
|
|
230
|
-
route: `/api/agents/${kebab}`
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
__name(inferAgentMeta, "inferAgentMeta");
|
|
234
|
-
function Agent(options) {
|
|
235
|
-
return (target) => {
|
|
236
|
-
const inferred = inferAgentMeta(target.name);
|
|
237
|
-
setMeta(AGENT_CONFIG, target, {
|
|
238
|
-
stream: true,
|
|
239
|
-
name: inferred.name,
|
|
240
|
-
route: inferred.route,
|
|
241
|
-
...options
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
__name(Agent, "Agent");
|
|
246
|
-
function getAgentConfig(target) {
|
|
247
|
-
return getMeta(AGENT_CONFIG, target);
|
|
248
|
-
}
|
|
249
|
-
__name(getAgentConfig, "getAgentConfig");
|
|
250
|
-
|
|
251
|
-
// src/decorators/sub-agents.ts
|
|
252
|
-
var SUB_AGENTS = /* @__PURE__ */ Symbol.for("theokit:agents:sub-agents");
|
|
253
|
-
function SubAgents(agentClasses) {
|
|
254
|
-
return (target) => {
|
|
255
|
-
for (const cls of agentClasses) {
|
|
256
|
-
const config = getAgentConfig(cls);
|
|
257
|
-
if (!config) {
|
|
258
|
-
throw new Error(`[@theokit/agents] @SubAgents on ${target.name}: class ${cls.name} is missing @Agent() decorator.`);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
setMeta(SUB_AGENTS, target, agentClasses);
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
__name(SubAgents, "SubAgents");
|
|
265
|
-
function getSubAgents(target) {
|
|
266
|
-
return getMeta(SUB_AGENTS, target) ?? [];
|
|
267
|
-
}
|
|
268
|
-
__name(getSubAgents, "getSubAgents");
|
|
269
|
-
|
|
270
|
-
// src/decorators/mixin.ts
|
|
271
|
-
var MIXIN_CLASSES = /* @__PURE__ */ Symbol.for("theokit:agents:mixins");
|
|
272
|
-
function Mixin(...mixinClasses) {
|
|
273
|
-
return (target) => {
|
|
274
|
-
const existing = getMeta(MIXIN_CLASSES, target) ?? [];
|
|
275
|
-
setMeta(MIXIN_CLASSES, target, [
|
|
276
|
-
...existing,
|
|
277
|
-
...mixinClasses
|
|
278
|
-
]);
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
__name(Mixin, "Mixin");
|
|
282
|
-
function getMixins(target) {
|
|
283
|
-
return getMeta(MIXIN_CLASSES, target) ?? [];
|
|
284
|
-
}
|
|
285
|
-
__name(getMixins, "getMixins");
|
|
286
|
-
|
|
287
|
-
export {
|
|
288
|
-
AGENT_CONFIG,
|
|
289
|
-
AGENT_MAIN_LOOP,
|
|
290
|
-
TOOLBOX_CONFIG,
|
|
291
|
-
TOOL_CONFIG,
|
|
292
|
-
TOOL_METHODS,
|
|
293
|
-
setMeta,
|
|
294
|
-
getMeta,
|
|
295
|
-
Checkpoint,
|
|
296
|
-
getCheckpointConfig,
|
|
297
|
-
Compaction,
|
|
298
|
-
getCompactionConfig,
|
|
299
|
-
ContextWindow,
|
|
300
|
-
getContextWindowConfig,
|
|
301
|
-
Gateway,
|
|
302
|
-
getGatewayConfig,
|
|
303
|
-
resolveSessionId,
|
|
304
|
-
Guardrails,
|
|
305
|
-
getGuardrailsConfig,
|
|
306
|
-
HumanInTheLoop,
|
|
307
|
-
getHumanInTheLoopConfig,
|
|
308
|
-
MCP,
|
|
309
|
-
getMcpConfig,
|
|
310
|
-
Memory,
|
|
311
|
-
getMemoryConfig,
|
|
312
|
-
Trace,
|
|
313
|
-
Audit,
|
|
314
|
-
RequiresApproval,
|
|
315
|
-
RequiresCapability,
|
|
316
|
-
Budget,
|
|
317
|
-
Policy,
|
|
318
|
-
ProjectContext,
|
|
319
|
-
getProjectContextConfig,
|
|
320
|
-
Skills,
|
|
321
|
-
getSkillsConfig,
|
|
322
|
-
Agent,
|
|
323
|
-
getAgentConfig,
|
|
324
|
-
SubAgents,
|
|
325
|
-
getSubAgents,
|
|
326
|
-
Mixin,
|
|
327
|
-
getMixins
|
|
328
|
-
};
|
|
329
|
-
//# sourceMappingURL=chunk-NERDIS45.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/metadata/index.ts","../src/metadata/keys.ts","../src/decorators/checkpoint.ts","../src/decorators/compaction.ts","../src/decorators/context-window.ts","../src/decorators/gateway.ts","../src/decorators/guardrails.ts","../src/decorators/human-in-the-loop.ts","../src/decorators/mcp.ts","../src/decorators/memory.ts","../src/decorators/observability.ts","../src/decorators/policies.ts","../src/decorators/project-context.ts","../src/decorators/skills.ts","../src/decorators/agent.ts","../src/decorators/sub-agents.ts","../src/decorators/mixin.ts"],"sourcesContent":["// Re-export setMeta/getMeta from http-decorators (DRY — single metadata engine)\n// Relative path for workspace-local usage; vitest resolves via alias\nexport { setMeta, getMeta } from '@theokit/http'\n\nexport * from './keys.js'\n","/** Symbol.for metadata keys for agent decorators — cross-module safe with SWC loader. */\n\nexport const AGENT_CONFIG = Symbol.for('theokit:agents:config')\nexport const AGENT_MAIN_LOOP = Symbol.for('theokit:agents:main-loop')\nexport const TOOLBOX_CONFIG = Symbol.for('theokit:agents:toolbox')\nexport const TOOL_CONFIG = Symbol.for('theokit:agents:tool')\nexport const TOOL_METHODS = Symbol.for('theokit:agents:tool-methods')\n","/**\n * @Checkpoint() — enables resumable agent execution from the last successful step.\n *\n * Long-running agents (research, code review, multi-step workflows) can fail\n * partway through. Without checkpointing, users restart from step 1 — wasting\n * tokens, time, and cost.\n *\n * Inspired by tRPC's tracked() + lastEventId pattern and Dapr's actor state\n * checkpointing. The agent persists a recovery point after each successful\n * tool call or iteration, and can resume from that point on retry.\n *\n * @example\n * ```ts\n * @Agent({ name: 'research', route: '/research' })\n * @Checkpoint({\n * storage: 'filesystem', // only 'filesystem' resumes across requests in the M2 harness (M4)\n * strategy: 'after-tool-call',\n * maxCheckpoints: 20,\n * ttl: 3_600_000, // 1h\n * })\n * class ResearchAgent {\n * @MainLoop({ strategy: 'plan-act-reflect', maxIterations: 15 })\n * async run() {}\n * }\n *\n * // Resume: a follow-up POST /api/agents/research with the SAME sessionId replays the persisted\n * // history. NOTE (M4): only `storage: 'filesystem'` resumes across requests today — `memory`\n * // (the default below) is per-run; `drizzle`/`redis` are not shipped by the SDK. A non-filesystem\n * // @Checkpoint emits a THEO_AGENT_CHECKPOINT_STORAGE_METADATA_ONLY warning (honest enforcement).\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst CHECKPOINT_CONFIG = Symbol.for('theokit:agents:checkpoint')\n\nexport type CheckpointStrategy =\n | 'after-tool-call' // checkpoint after every successful tool execution\n | 'after-iteration' // checkpoint after every loop iteration\n | 'manual' // only checkpoint when explicitly called via ctx.checkpoint()\n\nexport type CheckpointStorage = 'memory' | 'filesystem' | 'drizzle' | 'redis'\n\nexport interface CheckpointOptions {\n /** Where to persist checkpoints. */\n storage?: CheckpointStorage\n /** When to auto-checkpoint (default: 'after-tool-call'). */\n strategy?: CheckpointStrategy\n /** Maximum checkpoints to retain per run (rolling window). */\n maxCheckpoints?: number\n /** Time-to-live in ms before checkpoints expire (default: 3_600_000 = 1h). */\n ttl?: number\n}\n\n/** Serializable checkpoint state. */\nexport interface CheckpointState {\n id: string\n runId: string\n agentName: string\n step: number\n messages: unknown[]\n toolResults: unknown[]\n createdAt: number\n resumeToken: string\n}\n\nexport function Checkpoint(options: CheckpointOptions = {}): ClassDecorator {\n return (target: Function) => {\n setMeta(CHECKPOINT_CONFIG, target, {\n storage: 'memory',\n strategy: 'after-tool-call',\n maxCheckpoints: 10,\n ttl: 3_600_000,\n ...options,\n })\n }\n}\n\nexport function getCheckpointConfig(target: Function): CheckpointOptions | undefined {\n return getMeta<CheckpointOptions>(CHECKPOINT_CONFIG, target)\n}\n","/**\n * `@Compaction(name, opts)` — declares the agent's transcript-compaction strategy\n * (V4-F). Metadata-only: it records the choice; `AgentRunner.build()` resolves it\n * to a concrete {@link TranscriptCompactionStrategy} via `resolveCompactionStrategy`\n * (EC-5 — an invalid name/budget fails fast at build, not at decoration).\n *\n * Mirrors the `@ContextWindow` metadata pattern (`setMeta`/`getMeta` + a unique\n * Symbol). NOT auto-applied by the loop (ADR D1) — the resolved strategy is exposed\n * as `runner.compaction` for the app to call.\n *\n * @example\n * ```ts\n * @Agent({ model })\n * @Compaction('token-budget', { keepTokens: 8000 })\n * class CodeAgent {}\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst COMPACTION_CONFIG = Symbol.for('theokit:agents:compaction')\n\n/** Stored `@Compaction` declaration (resolved + validated at `AgentRunner.build()`). */\nexport interface CompactionDecoratorConfig {\n /** Strategy name (e.g. `'token-budget'`). Validated at resolve time. */\n name: string\n /** Token budget for `'token-budget'`. Required at resolve time (EC-2). */\n keepTokens?: number\n}\n\nexport function Compaction(name: string, options: { keepTokens?: number } = {}): ClassDecorator {\n return (target: Function) => {\n setMeta(COMPACTION_CONFIG, target, { name, keepTokens: options.keepTokens })\n }\n}\n\nexport function getCompactionConfig(target: Function): CompactionDecoratorConfig | undefined {\n return getMeta<CompactionDecoratorConfig>(COMPACTION_CONFIG, target)\n}\n","/**\n * @ContextWindow() — declares context window management strategy.\n *\n * Controls how the agent handles context when conversation history grows\n * beyond the LLM's context window. Mirrors Claude Code's PreCompact behavior.\n *\n * @example\n * ```ts\n * @Agent({ name: 'research', route: '/research' })\n * @ContextWindow({\n * maxTokens: 100_000,\n * compactionStrategy: 'summarize-oldest',\n * preserveSystemPrompt: true,\n * preserveLastN: 10,\n * })\n * class ResearchAgent { ... }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst CONTEXT_WINDOW_CONFIG = Symbol.for('theokit:agents:context-window')\n\nexport type ContextCompactionStrategy =\n | 'truncate-oldest' // Drop oldest messages beyond limit\n | 'summarize-oldest' // LLM-summarize oldest messages into a single message\n | 'sliding-window' // Keep last N messages only\n | 'priority-based' // Keep tool results + recent; summarize reasoning\n\nexport interface ContextWindowOptions {\n /** Maximum tokens before compaction triggers. */\n maxTokens?: number\n /** How to compact when maxTokens is exceeded. */\n compactionStrategy?: ContextCompactionStrategy\n /** Always preserve the system prompt during compaction (default: true). */\n preserveSystemPrompt?: boolean\n /** Number of recent messages to always keep intact (default: 10). */\n preserveLastN?: number\n /** Keep all tool results even during compaction (default: true). */\n preserveToolResults?: boolean\n}\n\nexport function ContextWindow(options: ContextWindowOptions = {}): ClassDecorator {\n return (target: Function) => {\n setMeta(CONTEXT_WINDOW_CONFIG, target, {\n maxTokens: 100_000,\n compactionStrategy: 'summarize-oldest',\n preserveSystemPrompt: true,\n preserveLastN: 10,\n preserveToolResults: true,\n ...options,\n })\n }\n}\n\nexport function getContextWindowConfig(target: Function): ContextWindowOptions | undefined {\n return getMeta<ContextWindowOptions>(CONTEXT_WINDOW_CONFIG, target)\n}\n","/**\n * @Gateway() — declares which platform adapters an agent supports.\n *\n * Stores gateway configuration metadata on the agent class.\n * The GatewayRunner reads this to auto-wire adapters without manual plumbing.\n *\n * @example\n * ```ts\n * @Agent({ name: 'support', route: '/api/agents/support' })\n * @Gateway({\n * platforms: ['telegram', 'discord', 'slack'],\n * sessionStrategy: 'per-user',\n * })\n * @UseGuards(AuthGuard)\n * class SupportAgent {\n * @MainLoop()\n * async run(ctx: AgentContext) { ... }\n * }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst GATEWAY_CONFIG = Symbol.for('theokit:agents:gateway')\n\nexport type PlatformName =\n | 'telegram'\n | 'discord'\n | 'slack'\n | 'whatsapp'\n | 'teams'\n | 'email'\n | 'sms'\n | 'mattermost'\n | 'line'\n | 'matrix'\n\nexport type SessionStrategy =\n | 'per-user' // telegram-dm-{userId}\n | 'per-channel' // telegram-grp-{channelId}\n | 'per-thread' // telegram-tpc-{channelId}-{topicId}\n\nexport interface GatewayOptions {\n /** Platform adapters this agent supports. */\n platforms: PlatformName[]\n /** How to resolve agentId from inbound events (default: 'per-user'). */\n sessionStrategy?: SessionStrategy\n /** Auto-start typing indicator while agent processes (default: true). */\n typing?: boolean\n}\n\nexport function Gateway(options: GatewayOptions): ClassDecorator {\n return (target: Function) => {\n setMeta(GATEWAY_CONFIG, target, { typing: true, sessionStrategy: 'per-user', ...options })\n }\n}\n\nexport function getGatewayConfig(target: Function): GatewayOptions | undefined {\n return getMeta<GatewayOptions>(GATEWAY_CONFIG, target)\n}\n\n/**\n * Resolve a stable agentId from a platform event based on the session strategy.\n *\n * Mirrors @theokit/gateway SessionRouter.defaultStrategy() but is configurable\n * via the @Gateway decorator.\n */\nexport function resolveSessionId(\n strategy: SessionStrategy,\n platform: string,\n sender: { id: string },\n channel: { id: string; type: 'dm' | 'group' | 'thread'; topicId?: string },\n): string {\n switch (strategy) {\n case 'per-user':\n return `${platform}-dm-${sender.id}`\n case 'per-channel':\n return `${platform}-grp-${channel.id}`\n case 'per-thread':\n return `${platform}-tpc-${channel.id}-${channel.topicId ?? 'main'}`\n }\n}\n","/**\n * `@Guardrails([...])` — M9 class-decorator surface for input/output guardrails.\n *\n * The functional `defineAgent({ guardrails: [...] })` path already applies guards at the framework\n * boundary (ADR-0040 § D2). This decorator gives the `@Agent` class path the SAME capability: the\n * declared guards compile into `compiled.guardrails` (via `walkAgentMetadata`), so `AgentRunner`\n * applies them identically. Metadata-only (like `@MCP`/`@Skills`) — it describes, the runner runs.\n *\n * @example\n * ```ts\n * @Agent({ name: 'support', route: '/api/agents/support' })\n * @Guardrails([promptInjectionDetector(), piiDetector({ redact: true })])\n * class SupportAgent {}\n * ```\n */\nimport type { Guardrail } from '../guardrails/index.js'\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst GUARDRAILS_CONFIG = Symbol.for('theokit:agents:guardrails')\n\nexport function Guardrails(guardrails: readonly Guardrail[]): ClassDecorator {\n return (target: Function) => {\n setMeta(GUARDRAILS_CONFIG, target, guardrails)\n }\n}\n\nexport function getGuardrailsConfig(target: Function): readonly Guardrail[] | undefined {\n return getMeta<readonly Guardrail[]>(GUARDRAILS_CONFIG, target)\n}\n","/**\n * @HumanInTheLoop() — pause agent execution to request human approval.\n *\n * When applied to a @Tool method, the agent pauses before executing the tool\n * and emits an 'approval_required' SSE event. The client must POST to the\n * callback URL to approve or deny. If denied or timed out, the tool is skipped.\n *\n * @example\n * ```ts\n * @Toolbox({ namespace: 'ops' })\n * class OpsTools {\n * @Tool({ name: 'deploy', description: 'Deploy to prod', input: z.object({...}) })\n * @HumanInTheLoop({\n * question: 'Confirm deployment to production?',\n * timeout: 300_000,\n * onTimeout: 'abort',\n * })\n * async deploy(input: {...}) { ... }\n * }\n * ```\n *\n * SSE event emitted:\n * ```json\n * { \"type\": \"approval_required\", \"toolName\": \"ops.deploy\", \"question\": \"...\", \"callbackUrl\": \"/agents/x/approve/call-123\" }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst HITL_CONFIG = Symbol.for('theokit:agents:human-in-the-loop')\n\nexport type TimeoutAction = 'abort' | 'proceed' | 'retry'\n\nexport interface HumanInTheLoopOptions {\n /** Question shown to the human approver. */\n question: string\n /** Timeout in milliseconds before onTimeout fires (default: 300_000 = 5 min). */\n timeout?: number\n /** Action when timeout expires (default: 'abort'). */\n onTimeout?: TimeoutAction\n /** Show the tool input to the approver (default: true). */\n showInput?: boolean\n /**\n * M20 — an optional JSON-schema descriptor of the custom payload the approver may attach (edited\n * args, a review note). Carried into the `approval_required` event + `GET /approvals` so the UI\n * knows what to collect. A plain JSON object, not a live Zod schema (keeps the wire serializable).\n */\n payloadSchema?: Record<string, unknown>\n}\n\nexport function HumanInTheLoop(options: HumanInTheLoopOptions): MethodDecorator {\n return (target: object, propertyKey: string | symbol) => {\n const actualTarget = target.constructor\n setMeta(\n HITL_CONFIG,\n actualTarget,\n {\n timeout: 300_000,\n onTimeout: 'abort',\n showInput: true,\n ...options,\n },\n propertyKey,\n )\n }\n}\n\nexport function getHumanInTheLoopConfig(\n target: Function,\n propertyKey: string | symbol,\n): HumanInTheLoopOptions | undefined {\n return getMeta<HumanInTheLoopOptions>(HITL_CONFIG, target, propertyKey)\n}\n","/**\n * @MCP() — declares Model Context Protocol servers available to an agent.\n *\n * Compiles to SDK's mcpServers in Agent.create({ mcpServers }).\n * Each key is a server name; the value is the server configuration.\n *\n * @example\n * ```ts\n * @Agent({ name: 'dev', route: '/api/agents/dev' })\n * @MCP({\n * github: { command: 'npx', args: ['-y', '@modelcontextprotocol/server-github'] },\n * filesystem: { command: 'npx', args: ['-y', '@mcp/server-filesystem', '/workspace'] },\n * })\n * class DevAgent { ... }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst MCP_CONFIG = Symbol.for('theokit:agents:mcp')\n\nexport interface McpServerConfig {\n /** Command to start the MCP server. */\n command: string\n /** Arguments passed to the command. */\n args?: string[]\n /** Environment variables for the server process. */\n env?: Record<string, string>\n /** Working directory for the server process. */\n cwd?: string\n}\n\nexport type McpServersMap = Record<string, McpServerConfig>\n\nexport function MCP(servers: McpServersMap): ClassDecorator {\n return (target: Function) => {\n setMeta(MCP_CONFIG, target, servers)\n }\n}\n\nexport function getMcpConfig(target: Function): McpServersMap | undefined {\n return getMeta<McpServersMap>(MCP_CONFIG, target)\n}\n","/**\n * @Memory() — declares persistent memory configuration for an agent.\n *\n * Compiles to SDK's MemorySettings in Agent.create({ memory }).\n * Memory is per-agent, scoped by session strategy.\n *\n * @example\n * ```ts\n * @Agent({ name: 'support', route: '/api/agents/support' })\n * @Memory({ provider: 'built-in', embeddings: true, fts: true, scope: 'per-user' })\n * class SupportAgent { ... }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst MEMORY_CONFIG = Symbol.for('theokit:agents:memory')\n\nexport type MemoryProvider = 'built-in' | 'honcho' | 'supermemory' | 'mem0'\nexport type MemoryScope = 'per-user' | 'per-agent' | 'per-tenant' | 'global'\n\nexport interface MemoryOptions {\n /** Memory provider backend. */\n provider?: MemoryProvider\n /** Enable semantic search via embeddings. */\n embeddings?: boolean\n /** Enable full-text search (FTS5). */\n fts?: boolean\n /** Memory isolation scope (default: 'per-user'). */\n scope?: MemoryScope\n /** Maximum facts to retain per scope (0 = unlimited). */\n maxFacts?: number\n}\n\nexport function Memory(options: MemoryOptions = {}): ClassDecorator {\n return (target: Function) => {\n setMeta(MEMORY_CONFIG, target, {\n provider: 'built-in',\n embeddings: false,\n fts: false,\n scope: 'per-user',\n ...options,\n })\n }\n}\n\nexport function getMemoryConfig(target: Function): MemoryOptions | undefined {\n return getMeta<MemoryOptions>(MEMORY_CONFIG, target)\n}\n","/**\n * Observability decorators for agent tracing and auditing.\n */\nimport { createDecorator } from '@theokit/http'\n\n/** Enable distributed tracing for a tool/toolbox/agent. */\nexport const Trace = createDecorator<boolean>()\n\n/** Enable audit logging for a tool/toolbox/agent. */\nexport const Audit = createDecorator<boolean>()\n","/**\n * Agent-native policy decorators — built on http-decorators' createDecorator<T>().\n *\n * These decorators work with Reflector.getAllAndOverride() for hierarchical\n * resolution: tool → toolbox → agent (method-level overrides class-level).\n */\nimport { createDecorator } from '@theokit/http'\n\nimport type { ApprovalOptions, BudgetOptions, PolicyHandler } from '../types.js'\n\n/** Mark a tool as requiring human approval before execution. */\nexport const RequiresApproval = createDecorator<ApprovalOptions>()\n\n/** Require specific capabilities (permissions) to execute a tool. */\nexport const RequiresCapability = createDecorator<string[]>()\n\n/** Set a cost budget for an agent or tool scope. */\nexport const Budget = createDecorator<BudgetOptions>()\n\n/** Attach policy handler functions (CASL-style authorization). */\nexport const Policy = createDecorator<PolicyHandler[]>()\n","/**\n * @ProjectContext() — declares how the agent understands the codebase.\n *\n * A code assistant needs to know: what's the project root, which files\n * are relevant, how to parse code structure, what to ignore. This\n * metadata feeds the context window management and file discovery.\n *\n * @example\n * ```ts\n * @Agent({ name: 'coder', route: '/agents/coder' })\n * @ProjectContext({\n * rootMarkers: ['package.json', 'tsconfig.json'],\n * indexStrategy: 'tree-sitter',\n * maxFilesInContext: 20,\n * relevanceStrategy: 'git-history',\n * ignorePatterns: ['node_modules', 'dist', '.git'],\n * })\n * class CoderAgent { ... }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst PROJECT_CONTEXT_CONFIG = Symbol.for('theokit:agents:project-context')\n\nexport type IndexStrategy =\n | 'tree-sitter' // Parse AST for structural understanding\n | 'regex' // Simple regex-based symbol extraction\n | 'none' // No indexing — rely on grep/glob only\n\nexport type RelevanceStrategy =\n | 'git-history' // Prioritize recently-edited files\n | 'import-graph' // Follow import chains from entry points\n | 'semantic' // Embedding-based similarity search\n | 'manual' // Only files explicitly provided\n\nexport interface ProjectContextOptions {\n /** Files that mark the project root (searched upward from cwd). */\n rootMarkers?: string[]\n /** How to index the codebase for structural understanding. */\n indexStrategy?: IndexStrategy\n /** Maximum files to include in context per request. */\n maxFilesInContext?: number\n /** How to rank file relevance when selecting context. */\n relevanceStrategy?: RelevanceStrategy\n /** Glob patterns to exclude from indexing and context. */\n ignorePatterns?: string[]\n /** File extensions to include in indexing (default: all text files). */\n includeExtensions?: string[]\n}\n\nexport function ProjectContext(options: ProjectContextOptions = {}): ClassDecorator {\n return (target: Function) => {\n setMeta(PROJECT_CONTEXT_CONFIG, target, {\n rootMarkers: ['package.json', 'tsconfig.json', 'go.mod', 'Cargo.toml', 'pyproject.toml'],\n indexStrategy: 'regex',\n maxFilesInContext: 20,\n relevanceStrategy: 'git-history',\n ignorePatterns: ['node_modules', 'dist', 'build', '.git', 'coverage', '__pycache__'],\n ...options,\n })\n }\n}\n\nexport function getProjectContextConfig(target: Function): ProjectContextOptions | undefined {\n return getMeta<ProjectContextOptions>(PROJECT_CONTEXT_CONFIG, target)\n}\n","/**\n * @Skills() — declares markdown skill files injected into the agent's system prompt.\n *\n * Compiles to SDK's SkillsSettings in Agent.create({ skills }).\n * Skills are .theokit/skills/<name>/SKILL.md files discovered at agent creation.\n *\n * @example\n * ```ts\n * @Agent({ name: 'support', route: '/api/agents/support' })\n * @Skills(['customer-service', 'refund-policy', 'escalation-protocol'])\n * class SupportAgent { ... }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst SKILLS_CONFIG = Symbol.for('theokit:agents:skills')\n\nexport interface SkillsOptions {\n /** Skill names to include (resolved from .theokit/skills/<name>/SKILL.md). */\n include: string[]\n /** Auto-discover all skills in .theokit/skills/ (default: false). */\n autoDiscover?: boolean\n}\n\nexport function Skills(namesOrOptions: string[] | SkillsOptions): ClassDecorator {\n return (target: Function) => {\n const options: SkillsOptions = Array.isArray(namesOrOptions)\n ? { include: namesOrOptions, autoDiscover: false }\n : namesOrOptions\n setMeta(SKILLS_CONFIG, target, options)\n }\n}\n\nexport function getSkillsConfig(target: Function): SkillsOptions | undefined {\n return getMeta<SkillsOptions>(SKILLS_CONFIG, target)\n}\n","/**\n * @Agent() — marks a class as an AI agent controller.\n *\n * M47 reconciliation (ADR-M47-3): `@Agent` (a class IS the agent), `@Expose` (binds a separately-built\n * `agent()…build()` to a controller), and the `agents/*.ts` file convention are three AUTHORING surfaces\n * over the ONE runtime — `mountAgent`. None owns a parallel agent runtime (a grep gate proves no second\n * streamer ships), so they do not \"compete\" the way the old removed endpoint path once did. Pick `@Expose`\n * when the agent is built separately and you want the exposure visible in a controller; pick `@Agent` when\n * the class itself is the agent.\n *\n * Convention over configuration:\n * @Agent() → name + route inferred from class name\n * @Agent({ model: '...' }) → name + route inferred, model explicit\n * @Agent({ name, route, model }) → fully explicit\n *\n * @example\n * ```ts\n * // Convention: SupportAgent → name: 'support', route: '/api/agents/support'\n * @Agent()\n * class SupportAgent { ... }\n *\n * // Partial: infer name + route, set model\n * @Agent({ model: 'claude-sonnet-4-5-20250929' })\n * class SupportAgent { ... }\n *\n * // Explicit: full control\n * @Agent({ name: 'support-agent', route: '/api/agents/support', model: '...' })\n * class SupportAgent { ... }\n * ```\n */\nimport { setMeta, getMeta, AGENT_CONFIG } from '../metadata/index.js'\nimport type { AgentOptions } from '../types.js'\n\n/**\n * Infer agent name and route from class name (Rails-style convention).\n *\n * SupportAgent → name: 'support', route: '/api/agents/support'\n * ResearchAgent → name: 'research', route: '/api/agents/research'\n * CodeReviewAgent → name: 'code-review', route: '/api/agents/code-review'\n */\nfunction inferAgentMeta(className: string): { name: string; route: string } {\n const stripped = className.replace(/Agent$/, '')\n const kebab = stripped\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')\n .toLowerCase()\n return { name: kebab, route: `/api/agents/${kebab}` }\n}\n\nexport function Agent(options?: Partial<AgentOptions>): ClassDecorator {\n return (target: Function) => {\n const inferred = inferAgentMeta(target.name)\n setMeta(AGENT_CONFIG, target, {\n stream: true,\n name: inferred.name,\n route: inferred.route,\n ...options, // explicit values override inferred\n })\n }\n}\n\nexport function getAgentConfig(target: Function): AgentOptions | undefined {\n return getMeta<AgentOptions>(AGENT_CONFIG, target)\n}\n","/**\n * @SubAgents() — declares child agents that a parent agent can handoff to.\n *\n * Compiles to the SDK's `AgentOptions.agents` map. The parent agent\n * can delegate work to sub-agents via the built-in Agent tool.\n *\n * @example\n * ```ts\n * @Agent({ name: 'orchestrator', route: '/api/agents/orchestrator' })\n * @SubAgents([ResearchAgent, CoderAgent, ReviewerAgent])\n * class OrchestratorAgent {\n * @MainLoop({ strategy: 'plan-act-reflect' })\n * async run(ctx: AgentContext) { ... }\n * }\n * ```\n *\n * Each referenced class MUST be decorated with @Agent().\n * The compiler reads their metadata to build the SDK agents map.\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nimport { getAgentConfig } from './agent.js'\n\nconst SUB_AGENTS = Symbol.for('theokit:agents:sub-agents')\n\nexport function SubAgents(agentClasses: Function[]): ClassDecorator {\n return (target: Function) => {\n // Validate at decoration time: all classes must have @Agent\n for (const cls of agentClasses) {\n const config = getAgentConfig(cls)\n if (!config) {\n throw new Error(\n `[@theokit/agents] @SubAgents on ${target.name}: class ${cls.name} is missing @Agent() decorator.`,\n )\n }\n }\n setMeta(SUB_AGENTS, target, agentClasses)\n }\n}\n\nexport function getSubAgents(target: Function): Function[] {\n return getMeta<Function[]>(SUB_AGENTS, target) ?? []\n}\n","/**\n * @Mixin() — compose reusable capability classes into an agent.\n *\n * Mixins are classes with @Tool methods that can be shared across agents.\n * @Mixin copies tool metadata from mixin classes to the decorated agent,\n * making those tools available without inheritance.\n *\n * @example\n * ```ts\n * // Define reusable capabilities\n * class WithSearchCapability {\n * @Tool({ name: 'web_search', description: 'Search', input: z.object({...}) })\n * async webSearch(input) { ... }\n * }\n *\n * class WithFileSystem {\n * @Tool({ name: 'read_file', description: 'Read', input: z.object({...}) })\n * async readFile(input) { ... }\n * }\n *\n * // Compose into agent\n * @Agent({ name: 'research', route: '/research' })\n * @Mixin(WithSearchCapability, WithFileSystem)\n * class ResearchAgent {\n * @MainLoop()\n * async run() {}\n * }\n * ```\n */\nimport { setMeta, getMeta } from '../metadata/index.js'\n\nconst MIXIN_CLASSES = Symbol.for('theokit:agents:mixins')\n\nexport function Mixin(...mixinClasses: Function[]): ClassDecorator {\n return (target: Function) => {\n const existing = getMeta<Function[]>(MIXIN_CLASSES, target) ?? []\n setMeta(MIXIN_CLASSES, target, [...existing, ...mixinClasses])\n }\n}\n\nexport function getMixins(target: Function): Function[] {\n return getMeta<Function[]>(MIXIN_CLASSES, target) ?? []\n}\n"],"mappings":"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","names":["setMeta","getMeta","AGENT_CONFIG","Symbol","for","AGENT_MAIN_LOOP","TOOLBOX_CONFIG","TOOL_CONFIG","TOOL_METHODS","CHECKPOINT_CONFIG","Symbol","for","Checkpoint","options","target","setMeta","storage","strategy","maxCheckpoints","ttl","getCheckpointConfig","getMeta","COMPACTION_CONFIG","Symbol","for","Compaction","name","options","target","setMeta","keepTokens","getCompactionConfig","getMeta","CONTEXT_WINDOW_CONFIG","Symbol","for","ContextWindow","options","target","setMeta","maxTokens","compactionStrategy","preserveSystemPrompt","preserveLastN","preserveToolResults","getContextWindowConfig","getMeta","GATEWAY_CONFIG","Symbol","for","Gateway","options","target","setMeta","typing","sessionStrategy","getGatewayConfig","getMeta","resolveSessionId","strategy","platform","sender","channel","id","topicId","GUARDRAILS_CONFIG","Symbol","for","Guardrails","guardrails","target","setMeta","getGuardrailsConfig","getMeta","HITL_CONFIG","Symbol","for","HumanInTheLoop","options","target","propertyKey","actualTarget","setMeta","timeout","onTimeout","showInput","getHumanInTheLoopConfig","getMeta","MCP_CONFIG","Symbol","for","MCP","servers","target","setMeta","getMcpConfig","getMeta","MEMORY_CONFIG","Symbol","for","Memory","options","target","setMeta","provider","embeddings","fts","scope","getMemoryConfig","getMeta","createDecorator","Trace","Audit","createDecorator","RequiresApproval","RequiresCapability","Budget","Policy","PROJECT_CONTEXT_CONFIG","Symbol","for","ProjectContext","options","target","setMeta","rootMarkers","indexStrategy","maxFilesInContext","relevanceStrategy","ignorePatterns","getProjectContextConfig","getMeta","SKILLS_CONFIG","Symbol","for","Skills","namesOrOptions","target","options","Array","isArray","include","autoDiscover","setMeta","getSkillsConfig","getMeta","inferAgentMeta","className","stripped","replace","kebab","toLowerCase","name","route","Agent","options","target","inferred","setMeta","AGENT_CONFIG","stream","getAgentConfig","getMeta","SUB_AGENTS","Symbol","for","SubAgents","agentClasses","target","cls","config","getAgentConfig","Error","name","setMeta","getSubAgents","getMeta","MIXIN_CLASSES","Symbol","for","Mixin","mixinClasses","target","existing","getMeta","setMeta","getMixins"]}
|
package/dist/decorators.d.ts
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { A as AgentOptions, f as MainLoopOptions, M as MainLoopMeta, g as ToolOptions, h as ToolboxOptions, B as BudgetOptions, P as PolicyHandler, a as ApprovalOptions, G as Guardrail } from './types-DVA4LQsA.js';
|
|
2
|
-
export { i as Checkpoint, j as CheckpointOptions, k as CheckpointState, l as CheckpointStorage, m as CheckpointStrategy, n as Compaction, o as CompactionDecoratorConfig, p as ContextCompactionStrategy, q as ContextWindow, r as ContextWindowOptions, s as Gateway, t as GatewayOptions, u as HumanInTheLoop, H as HumanInTheLoopOptions, I as IndexStrategy, v as MCP, w as McpServerConfig, x as McpServersMap, y as Memory, z as MemoryOptions, D as MemoryProvider, E as MemoryScope, F as PlatformName, J as ProjectContext, K as ProjectContextOptions, L as RelevanceStrategy, S as SessionStrategy, N as Skills, O as SkillsOptions, T as TimeoutAction, Q as getCheckpointConfig, U as getCompactionConfig, V as getContextWindowConfig, W as getGatewayConfig, X as getHumanInTheLoopConfig, Y as getMcpConfig, Z as getMemoryConfig, _ as getProjectContextConfig, $ as getSkillsConfig, a0 as resolveSessionId } from './types-DVA4LQsA.js';
|
|
3
|
-
import '@theokit/sdk';
|
|
4
|
-
import 'zod';
|
|
5
|
-
|
|
6
|
-
declare function Agent(options?: Partial<AgentOptions>): ClassDecorator;
|
|
7
|
-
declare function getAgentConfig(target: Function): AgentOptions | undefined;
|
|
8
|
-
|
|
9
|
-
declare function MainLoop(options?: MainLoopOptions): MethodDecorator;
|
|
10
|
-
declare function getMainLoop(target: Function): MainLoopMeta | undefined;
|
|
11
|
-
|
|
12
|
-
declare function Toolbox(options?: ToolboxOptions): ClassDecorator;
|
|
13
|
-
declare function Tool(options: ToolOptions): MethodDecorator;
|
|
14
|
-
declare function getToolboxConfig(target: Function): ToolboxOptions | undefined;
|
|
15
|
-
declare function getToolMethods(target: Function): (string | symbol)[];
|
|
16
|
-
declare function getToolConfig(target: Function, propertyKey: string | symbol): ToolOptions | undefined;
|
|
17
|
-
|
|
18
|
-
/** Mark a tool as requiring human approval before execution. */
|
|
19
|
-
declare const RequiresApproval: (value: ApprovalOptions) => MethodDecorator & ClassDecorator;
|
|
20
|
-
/** Require specific capabilities (permissions) to execute a tool. */
|
|
21
|
-
declare const RequiresCapability: (value: string[]) => MethodDecorator & ClassDecorator;
|
|
22
|
-
/** Set a cost budget for an agent or tool scope. */
|
|
23
|
-
declare const Budget: (value: BudgetOptions) => MethodDecorator & ClassDecorator;
|
|
24
|
-
/** Attach policy handler functions (CASL-style authorization). */
|
|
25
|
-
declare const Policy: (value: PolicyHandler[]) => MethodDecorator & ClassDecorator;
|
|
26
|
-
|
|
27
|
-
/** Enable distributed tracing for a tool/toolbox/agent. */
|
|
28
|
-
declare const Trace: (value: boolean) => MethodDecorator & ClassDecorator;
|
|
29
|
-
/** Enable audit logging for a tool/toolbox/agent. */
|
|
30
|
-
declare const Audit: (value: boolean) => MethodDecorator & ClassDecorator;
|
|
31
|
-
|
|
32
|
-
declare function SubAgents(agentClasses: Function[]): ClassDecorator;
|
|
33
|
-
declare function getSubAgents(target: Function): Function[];
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* `@Guardrails([...])` — M9 class-decorator surface for input/output guardrails.
|
|
37
|
-
*
|
|
38
|
-
* The functional `defineAgent({ guardrails: [...] })` path already applies guards at the framework
|
|
39
|
-
* boundary (ADR-0040 § D2). This decorator gives the `@Agent` class path the SAME capability: the
|
|
40
|
-
* declared guards compile into `compiled.guardrails` (via `walkAgentMetadata`), so `AgentRunner`
|
|
41
|
-
* applies them identically. Metadata-only (like `@MCP`/`@Skills`) — it describes, the runner runs.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* @Agent({ name: 'support', route: '/api/agents/support' })
|
|
46
|
-
* @Guardrails([promptInjectionDetector(), piiDetector({ redact: true })])
|
|
47
|
-
* class SupportAgent {}
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
declare function Guardrails(guardrails: readonly Guardrail[]): ClassDecorator;
|
|
52
|
-
declare function getGuardrailsConfig(target: Function): readonly Guardrail[] | undefined;
|
|
53
|
-
|
|
54
|
-
type HookPoint = 'before:llm-call' | 'after:llm-call' | 'before:tool-call' | 'after:tool-call' | 'on:iteration' | 'on:complete' | 'on:error';
|
|
55
|
-
interface HookEntry {
|
|
56
|
-
point: HookPoint;
|
|
57
|
-
propertyKey: string | symbol;
|
|
58
|
-
}
|
|
59
|
-
declare function Hook(point: HookPoint): MethodDecorator;
|
|
60
|
-
declare function getHooks(target: Function): HookEntry[];
|
|
61
|
-
declare function getHooksByPoint(target: Function, point: HookPoint): HookEntry[];
|
|
62
|
-
|
|
63
|
-
/** Override the LLM model for an agent class or a specific tool method. */
|
|
64
|
-
declare const Model: (value: string) => MethodDecorator & ClassDecorator;
|
|
65
|
-
|
|
66
|
-
interface ArtifactOptions {
|
|
67
|
-
/** MIME type of the artifact output. */
|
|
68
|
-
mimeType: string;
|
|
69
|
-
/** Whether the artifact can be streamed in chunks (default: true). */
|
|
70
|
-
streamable?: boolean;
|
|
71
|
-
/** Maximum size in bytes (0 = no limit). */
|
|
72
|
-
maxSize?: number;
|
|
73
|
-
}
|
|
74
|
-
/** Return type for tools decorated with @Artifact. */
|
|
75
|
-
interface ArtifactResult {
|
|
76
|
-
/** The artifact content (string for text, Buffer for binary). */
|
|
77
|
-
content: string;
|
|
78
|
-
/** Optional filename hint for the client. */
|
|
79
|
-
filename?: string;
|
|
80
|
-
/** Optional metadata attached to the artifact. */
|
|
81
|
-
metadata?: Record<string, unknown>;
|
|
82
|
-
}
|
|
83
|
-
declare function Artifact(options: ArtifactOptions): MethodDecorator;
|
|
84
|
-
declare function getArtifactConfig(target: Function, propertyKey: string | symbol): ArtifactOptions | undefined;
|
|
85
|
-
|
|
86
|
-
interface ObservableEntry {
|
|
87
|
-
channel: string;
|
|
88
|
-
propertyKey: string | symbol;
|
|
89
|
-
}
|
|
90
|
-
declare function Observable(channel: string): MethodDecorator;
|
|
91
|
-
declare function getObservables(target: Function): ObservableEntry[];
|
|
92
|
-
declare function getObservableByChannel(target: Function, channel: string): ObservableEntry | undefined;
|
|
93
|
-
|
|
94
|
-
interface FilesystemPermissions {
|
|
95
|
-
/** Glob patterns for allowed read paths. */
|
|
96
|
-
read?: string[];
|
|
97
|
-
/** Glob patterns for allowed write paths. */
|
|
98
|
-
write?: string[];
|
|
99
|
-
/** Glob patterns for DENIED paths (overrides read/write). */
|
|
100
|
-
deny?: string[];
|
|
101
|
-
}
|
|
102
|
-
interface CommandPermissions {
|
|
103
|
-
/** Command prefixes allowed to execute. */
|
|
104
|
-
allow?: string[];
|
|
105
|
-
/** Command prefixes denied (overrides allow). */
|
|
106
|
-
deny?: string[];
|
|
107
|
-
}
|
|
108
|
-
interface SandboxOptions {
|
|
109
|
-
/** Filesystem read/write permissions. */
|
|
110
|
-
filesystem?: FilesystemPermissions;
|
|
111
|
-
/** Shell command execution permissions. */
|
|
112
|
-
commands?: CommandPermissions;
|
|
113
|
-
/** Allow outbound network from tools (default: true). */
|
|
114
|
-
network?: boolean;
|
|
115
|
-
/** Maximum execution time per command in ms (default: 120_000). */
|
|
116
|
-
commandTimeout?: number;
|
|
117
|
-
/** Working directory root (default: process.cwd()). */
|
|
118
|
-
cwd?: string;
|
|
119
|
-
}
|
|
120
|
-
declare function Sandbox(options: SandboxOptions): ClassDecorator;
|
|
121
|
-
declare function getSandboxConfig(target: Function): SandboxOptions | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* Check if a file path is allowed for the given operation.
|
|
124
|
-
* Deny patterns always win over allow patterns.
|
|
125
|
-
*
|
|
126
|
-
* Security: normalizes paths to prevent traversal (../) and rejects null bytes.
|
|
127
|
-
*/
|
|
128
|
-
declare function isPathAllowed(sandbox: SandboxOptions, filePath: string, operation: 'read' | 'write'): boolean;
|
|
129
|
-
/**
|
|
130
|
-
* Check if a command is allowed to execute.
|
|
131
|
-
* Deny patterns always win. Rejects shell metacharacters.
|
|
132
|
-
*
|
|
133
|
-
* Security: tokenizes command to match binary name, not arbitrary prefix.
|
|
134
|
-
*/
|
|
135
|
-
declare function isCommandAllowed(sandbox: SandboxOptions, command: string): boolean;
|
|
136
|
-
|
|
137
|
-
type EditFormatType = 'search-replace' | 'unified-diff' | 'full-file' | 'line-range';
|
|
138
|
-
/** Declare the edit format a tool produces. */
|
|
139
|
-
declare const EditFormat: (value: EditFormatType) => MethodDecorator & ClassDecorator;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* applyDecorators() — compose multiple decorators into a single reusable decorator.
|
|
143
|
-
*
|
|
144
|
-
* NestJS-compatible utility. Enables creating "preset" decorators that bundle
|
|
145
|
-
* common configurations (auth + throttle + trace + memory + ...) into one decorator.
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* ```ts
|
|
149
|
-
* // Create a reusable preset
|
|
150
|
-
* const ProductionAgent = (name: string, route: string) => applyDecorators(
|
|
151
|
-
* Agent({ name, route, model: 'claude-sonnet-4-5-20250929' }),
|
|
152
|
-
* UseGuards(AuthGuard, TenantGuard),
|
|
153
|
-
* Throttle({ limit: 30, ttl: 60_000 }),
|
|
154
|
-
* Budget({ maxCostUsd: 5.00 }),
|
|
155
|
-
* Trace(true),
|
|
156
|
-
* )
|
|
157
|
-
*
|
|
158
|
-
* // Apply preset to any agent
|
|
159
|
-
* @ProductionAgent('support', '/api/agents/support')
|
|
160
|
-
* class SupportAgent {
|
|
161
|
-
* @MainLoop()
|
|
162
|
-
* async run() {}
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
*/
|
|
166
|
-
type AnyDecorator = ClassDecorator | MethodDecorator | PropertyDecorator;
|
|
167
|
-
/**
|
|
168
|
-
* Compose multiple decorators into a single decorator.
|
|
169
|
-
* Works for both class-level and method-level decorators.
|
|
170
|
-
*/
|
|
171
|
-
declare function applyDecorators(...decorators: AnyDecorator[]): ClassDecorator & MethodDecorator;
|
|
172
|
-
|
|
173
|
-
declare function Mixin(...mixinClasses: Function[]): ClassDecorator;
|
|
174
|
-
declare function getMixins(target: Function): Function[];
|
|
175
|
-
|
|
176
|
-
export { Agent, AgentOptions, ApprovalOptions, Artifact, type ArtifactOptions, type ArtifactResult, Audit, Budget, BudgetOptions, type CommandPermissions, EditFormat, type EditFormatType, type FilesystemPermissions, Guardrails, Hook, type HookEntry, type HookPoint, MainLoop, MainLoopMeta, MainLoopOptions, Mixin, Model, Observable, type ObservableEntry, Policy, PolicyHandler, RequiresApproval, RequiresCapability, Sandbox, type SandboxOptions, SubAgents, Tool, ToolOptions, Toolbox, ToolboxOptions, Trace, applyDecorators, getAgentConfig, getArtifactConfig, getGuardrailsConfig, getHooks, getHooksByPoint, getMainLoop, getMixins, getObservableByChannel, getObservables, getSandboxConfig, getSubAgents, getToolConfig, getToolMethods, getToolboxConfig, isCommandAllowed, isPathAllowed };
|