@liveblocks/core 3.0.0 → 3.1.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3899,6 +3899,7 @@ type AiToolDefinition<S extends JSONObjectSchema7, A extends JsonObject, R exten
|
|
|
3899
3899
|
parameters: S;
|
|
3900
3900
|
execute?: AiToolExecuteCallback<A, R>;
|
|
3901
3901
|
render?: (props: AiToolInvocationProps<A, R>) => unknown;
|
|
3902
|
+
enabled?: boolean;
|
|
3902
3903
|
};
|
|
3903
3904
|
type AiOpaqueToolDefinition = AiToolDefinition<JSONObjectSchema7, JsonObject, JsonObject>;
|
|
3904
3905
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3899,6 +3899,7 @@ type AiToolDefinition<S extends JSONObjectSchema7, A extends JsonObject, R exten
|
|
|
3899
3899
|
parameters: S;
|
|
3900
3900
|
execute?: AiToolExecuteCallback<A, R>;
|
|
3901
3901
|
render?: (props: AiToolInvocationProps<A, R>) => unknown;
|
|
3902
|
+
enabled?: boolean;
|
|
3902
3903
|
};
|
|
3903
3904
|
type AiOpaqueToolDefinition = AiToolDefinition<JSONObjectSchema7, JsonObject, JsonObject>;
|
|
3904
3905
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "3.
|
|
9
|
+
var PKG_VERSION = "3.1.0";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -3828,7 +3828,7 @@ function createStore_forTools() {
|
|
|
3828
3828
|
...scopedTools\u03A3?.entries() ?? []
|
|
3829
3829
|
]).flatMap(([name, tool\u03A3]) => {
|
|
3830
3830
|
const tool = tool\u03A3.get();
|
|
3831
|
-
return tool ? [{ name, description: tool.description, parameters: tool.parameters }] : [];
|
|
3831
|
+
return tool && (tool.enabled ?? true) ? [{ name, description: tool.description, parameters: tool.parameters }] : [];
|
|
3832
3832
|
});
|
|
3833
3833
|
}
|
|
3834
3834
|
return {
|