blun-king-cli 9.1.236 → 9.1.237
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/bin/user-tool-record-policy.cjs +7 -0
- package/blun.mjs +6 -2
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -263898,7 +263898,7 @@ var init_builtin = __esmMin((() => {
|
|
|
263898
263898
|
var init_types$3 = __esmMin((() => {}));
|
|
263899
263899
|
//#endregion
|
|
263900
263900
|
//#region ../../packages/agent-core/src/agent/tool/index.ts
|
|
263901
|
-
var import_picomatch, profileToolExclusionPolicy, applyProfileToolExclusions, SHELL_FOREGROUND_TIMEOUT_S, ToolManager;
|
|
263901
|
+
var import_picomatch, profileToolExclusionPolicy, applyProfileToolExclusions, shouldRecordUserToolUnregister, SHELL_FOREGROUND_TIMEOUT_S, ToolManager;
|
|
263902
263902
|
var init_tool$1 = __esmMin((() => {
|
|
263903
263903
|
init_dist$4();
|
|
263904
263904
|
import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
|
|
@@ -263913,6 +263913,7 @@ var init_tool$1 = __esmMin((() => {
|
|
|
263913
263913
|
init_types$3();
|
|
263914
263914
|
profileToolExclusionPolicy = createRequire(import.meta.url)("./bin/profile-tool-exclusion-policy.cjs");
|
|
263915
263915
|
applyProfileToolExclusions = profileToolExclusionPolicy.applyProfileToolExclusions;
|
|
263916
|
+
({ shouldRecordUserToolUnregister } = createRequire(import.meta.url)("./bin/user-tool-record-policy.cjs"));
|
|
263916
263917
|
SHELL_FOREGROUND_TIMEOUT_S = 120;
|
|
263917
263918
|
ToolManager = class {
|
|
263918
263919
|
agent;
|
|
@@ -264081,7 +264082,10 @@ var init_tool$1 = __esmMin((() => {
|
|
|
264081
264082
|
this.enabledTools.add(name);
|
|
264082
264083
|
}
|
|
264083
264084
|
unregisterUserTool(name) {
|
|
264084
|
-
|
|
264085
|
+
if (shouldRecordUserToolUnregister({
|
|
264086
|
+
hasUserTool: this.userTools.has(name),
|
|
264087
|
+
isEnabled: this.enabledTools.has(name)
|
|
264088
|
+
})) this.agent.records.logRecord({
|
|
264085
264089
|
type: "tools.unregister_user_tool",
|
|
264086
264090
|
name
|
|
264087
264091
|
});
|