@opencow-ai/opencow-agent-sdk 0.4.7 → 0.4.8
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/Tool.d.ts +1 -0
- package/dist/capabilities/SdkTool.d.ts +8 -0
- package/dist/capabilities/tools/ToolSearchTool/ToolSearchTool.d.ts +1 -1
- package/dist/cli.mjs +594 -485
- package/dist/client.js +543 -334
- package/dist/constants/envVars.d.ts +1 -0
- package/dist/controller/compact/autoCompact.d.ts +17 -1
- package/dist/controller/compact/reactiveCompact.d.ts +52 -0
- package/dist/controller/query/deps.d.ts +2 -1
- package/dist/controller/toolSearch.d.ts +20 -0
- package/dist/entrypoints/sdk/controlSchemas.d.ts +1 -0
- package/dist/entrypoints/sdk/coreSchemas.d.ts +2 -0
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +19 -0
- package/dist/permissions/permissions.d.ts +15 -0
- package/dist/providers/codex/shim.d.ts +8 -0
- package/dist/providers/openai/shim.d.ts +17 -7
- package/dist/providers/shared/logging.d.ts +2 -2
- package/dist/providers/shared/model/providers.d.ts +5 -0
- package/dist/providers/shared/usage.d.ts +11 -0
- package/dist/query.d.ts +3 -0
- package/dist/sdk.js +543 -334
- package/dist/types/toolRuntime.d.ts +6 -0
- package/package.json +3 -3
package/dist/Tool.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CanonicalToolResultBlockParam as ToolResultBlockParam } from './session/canonical/index.js';
|
|
2
2
|
import type { z } from 'zod/v4';
|
|
3
3
|
import type { CanUseToolFn } from './types/toolRuntime.js';
|
|
4
|
+
import type { SetToolJSXFn } from './types/toolUI.js';
|
|
4
5
|
export type { ToolRuntime, ToolRuntimes, ToolRuntimeContext, CanUseToolFn as CanUseToolFnRuntime, } from './types/toolRuntime.js';
|
|
5
6
|
export { toolMatchesName as toolMatchesNameRuntime, findToolRuntimeByName, } from './types/toolRuntime.js';
|
|
6
7
|
export type { ToolUI } from './types/toolUI.js';
|
|
@@ -34,4 +34,12 @@ export interface SdkTool {
|
|
|
34
34
|
* use this to schedule parallel calls.
|
|
35
35
|
*/
|
|
36
36
|
readonly isConcurrencySafe?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional: defer this tool behind ToolSearch. Deferred tools are NOT
|
|
39
|
+
* serialized into every model request — only their name is announced;
|
|
40
|
+
* the model loads the full schema on demand via ToolSearchTool. Use for
|
|
41
|
+
* large dynamic tool pools (e.g. cloud-tool catalogs). Defaults to
|
|
42
|
+
* false: inline tools are loaded upfront, preserving existing behavior.
|
|
43
|
+
*/
|
|
44
|
+
readonly shouldDefer?: boolean;
|
|
37
45
|
}
|
|
@@ -33,7 +33,7 @@ export declare const ToolSearchTool: Omit<{
|
|
|
33
33
|
renderToolUseMessage(): any;
|
|
34
34
|
userFacingName: () => string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Native wire: returns a tool_result with tool_reference blocks.
|
|
37
37
|
* This format works on 1P/Foundry. Bedrock/Vertex may not support
|
|
38
38
|
* client-side tool_reference expansion yet.
|
|
39
39
|
*/
|