@kb-labs/agent-core 0.6.0 → 2.9.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/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +26 -26
package/dist/index.js
CHANGED
|
@@ -3073,6 +3073,9 @@ var init_plan_artifact_writer = __esm({
|
|
|
3073
3073
|
this.sessionManager = sessionManager;
|
|
3074
3074
|
this.documentService = documentService;
|
|
3075
3075
|
}
|
|
3076
|
+
workingDir;
|
|
3077
|
+
sessionManager;
|
|
3078
|
+
documentService;
|
|
3076
3079
|
async write(sessionId, plan) {
|
|
3077
3080
|
const planPath = this.sessionManager.getSessionPlanPath(sessionId);
|
|
3078
3081
|
await promises.mkdir(path11.dirname(planPath), { recursive: true });
|
|
@@ -3563,6 +3566,7 @@ var init_plan_mode_handler = __esm({
|
|
|
3563
3566
|
constructor(total) {
|
|
3564
3567
|
this.total = total;
|
|
3565
3568
|
}
|
|
3569
|
+
total;
|
|
3566
3570
|
consumed = 0;
|
|
3567
3571
|
get remaining() {
|
|
3568
3572
|
return Math.max(0, this.total - this.consumed);
|
|
@@ -4185,6 +4189,7 @@ var init_spec_mode_handler = __esm({
|
|
|
4185
4189
|
constructor(total) {
|
|
4186
4190
|
this.total = total;
|
|
4187
4191
|
}
|
|
4192
|
+
total;
|
|
4188
4193
|
consumed = 0;
|
|
4189
4194
|
get remaining() {
|
|
4190
4195
|
return Math.max(0, this.total - this.consumed);
|
|
@@ -4212,6 +4217,8 @@ var init_spec_mode_handler = __esm({
|
|
|
4212
4217
|
this.base = base;
|
|
4213
4218
|
this.allowedNames = allowedNames;
|
|
4214
4219
|
}
|
|
4220
|
+
base;
|
|
4221
|
+
allowedNames;
|
|
4215
4222
|
get(name) {
|
|
4216
4223
|
if (!this.allowedNames.has(name)) {
|
|
4217
4224
|
return void 0;
|
|
@@ -8840,6 +8847,10 @@ var ObservabilityMiddleware = class {
|
|
|
8840
8847
|
this.sessionId = sessionId;
|
|
8841
8848
|
this.onEvent = onEvent;
|
|
8842
8849
|
}
|
|
8850
|
+
agentId;
|
|
8851
|
+
parentAgentId;
|
|
8852
|
+
sessionId;
|
|
8853
|
+
onEvent;
|
|
8843
8854
|
name = "observability";
|
|
8844
8855
|
order = 5;
|
|
8845
8856
|
config = { failPolicy: "fail-open" };
|
|
@@ -10626,6 +10637,10 @@ var ToolExecutor = class {
|
|
|
10626
10637
|
this.processors = processors;
|
|
10627
10638
|
this.normalizers = normalizers;
|
|
10628
10639
|
}
|
|
10640
|
+
toolManager;
|
|
10641
|
+
guards;
|
|
10642
|
+
processors;
|
|
10643
|
+
normalizers;
|
|
10629
10644
|
getToolManager() {
|
|
10630
10645
|
return this.toolManager;
|
|
10631
10646
|
}
|
|
@@ -10722,6 +10737,12 @@ var LoopContextImpl = class _LoopContextImpl {
|
|
|
10722
10737
|
this.runEvaluator = runEvaluator;
|
|
10723
10738
|
this.run = run;
|
|
10724
10739
|
}
|
|
10740
|
+
messages;
|
|
10741
|
+
llm;
|
|
10742
|
+
pipeline;
|
|
10743
|
+
executor;
|
|
10744
|
+
onTokensConsumed;
|
|
10745
|
+
runEvaluator;
|
|
10725
10746
|
run;
|
|
10726
10747
|
// ── LoopContext API ────────────────────────────────────────────────────────
|
|
10727
10748
|
appendMessage(message) {
|
|
@@ -11839,6 +11860,8 @@ var SDKAgentRunner = class _SDKAgentRunner {
|
|
|
11839
11860
|
config.abortSignal.addEventListener("abort", () => this.abortController.abort());
|
|
11840
11861
|
}
|
|
11841
11862
|
}
|
|
11863
|
+
config;
|
|
11864
|
+
sdk;
|
|
11842
11865
|
agentId;
|
|
11843
11866
|
abortController;
|
|
11844
11867
|
injectedMessages = [];
|