@composio/experimental 0.2.0 → 0.2.2

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.
@@ -1,6 +1,5 @@
1
1
  import { BaseAgenticProvider, ExecuteToolFn, McpServerGetResponse, McpUrlResponse, Tool, ToolExecuteResponse } from "@composio/core";
2
- import { DynamicResolveContext, NeedsApprovalContext, ToolContext, ToolDefinition } from "eve/tools";
3
-
2
+ import { ApprovalContext, DynamicResolveContext, ToolContext, ToolDefinition } from "eve/tools";
4
3
  //#region src/eve/hooks.d.ts
5
4
  type MaybePromise<T> = T | Promise<T>;
6
5
  type Next = () => Promise<ToolExecuteResponse>;
@@ -40,7 +39,7 @@ declare const denyEveToolCall: (reason: string) => ToolExecuteResponse;
40
39
  //#region src/eve/provider.d.ts
41
40
  type EveTool = ToolDefinition<Record<string, unknown>, ToolExecuteResponse>;
42
41
  type EveToolCollection = Record<string, EveTool>;
43
- type EveNeedsApproval = (tool: Tool, context: NeedsApprovalContext<Record<string, unknown>>) => boolean;
42
+ type EveNeedsApproval = (tool: Tool, context: ApprovalContext<Record<string, unknown>>) => boolean;
44
43
  /** Require approval for direct calls and matching entries inside a multi-execute call. */
45
44
  declare const requireApprovalForTools: (...toolSlugs: string[]) => EveNeedsApproval;
46
45
  interface EveProviderOptions {
@@ -62,6 +61,6 @@ type EveSession = {
62
61
  tools: () => Promise<EveToolCollection>;
63
62
  };
64
63
  type EveSessionSource<S extends EveSession> = S | Promise<S> | ((context: DynamicResolveContext) => S | Promise<S>);
65
- declare function defineComposioTools<S extends EveSession>(source: EveSessionSource<S>): import("eve/tools").DynamicSentinel;
64
+ declare function defineComposioTools<S extends EveSession>(source: EveSessionSource<S>): import("eve/tools").DynamicSentinel<EveToolCollection>;
66
65
  //#endregion
67
66
  export { type EveAuthLinkContext, type EveAuthLinkHook, type EveHook, type EveHookContext, type EveHookControls, type EveNeedsApproval, EveProvider, type EveProviderHooks, type EveProviderOptions, type EveTool, type EveToolCollection, defineComposioTools, denyEveToolCall, requireApprovalForTools };
@@ -114,11 +114,11 @@ var EveProvider = class extends BaseAgenticProvider {
114
114
  }
115
115
  wrapTool(tool, executeTool) {
116
116
  const inputSchema = toEveInputSchema(tool, this.options.strict);
117
- const needsApproval = toEveApprovalPolicy(tool, this.options.needsApproval);
117
+ const approval = toEveApprovalPolicy(tool, this.options.needsApproval);
118
118
  return defineTool({
119
119
  description: tool.description ?? tool.name,
120
120
  inputSchema,
121
- needsApproval,
121
+ approval,
122
122
  execute: (input, context) => applyHooks(this.options.hooks ?? {}, tool.slug, normalizeToolArguments(input, tool.slug), executeTool, context)
123
123
  });
124
124
  }
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { BaseAgenticProvider, ExecuteToolFn, McpServerGetResponse, McpUrlResponse, Tool } from "@composio/core";
2
2
  import { ToolDefinition } from "@earendil-works/pi-coding-agent";
3
-
4
3
  //#region src/pi/types.d.ts
5
4
  type PiToolDetails = {
6
5
  slug?: string;
@@ -35,11 +34,11 @@ interface PiProviderOptions {
35
34
  catchErrors?: boolean;
36
35
  }
37
36
  declare const DEFAULT_SESSION_TOOL_NAMES: {
38
- readonly search: "composio_search_tools";
39
- readonly manageConnections: "composio_manage_connections";
40
- readonly execute: "composio_execute_tool";
41
- readonly remoteWorkbench: "composio_remote_workbench";
42
- readonly remoteBash: "composio_remote_bash";
37
+ readonly search: 'composio_search_tools';
38
+ readonly manageConnections: 'composio_manage_connections';
39
+ readonly execute: 'composio_execute_tool';
40
+ readonly remoteWorkbench: 'composio_remote_workbench';
41
+ readonly remoteBash: 'composio_remote_bash';
43
42
  };
44
43
  type PiSessionToolName = keyof typeof DEFAULT_SESSION_TOOL_NAMES;
45
44
  interface PiBaseToolContext {
@@ -1,5 +1,4 @@
1
1
  import { Composio, Session } from "@composio/core";
2
-
3
2
  //#region src/workbench/types.d.ts
4
3
  interface LocalWorkbenchSession {
5
4
  helperSource: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/experimental",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Experimental Composio integrations and helpers",
5
5
  "main": "dist/index.mjs",
6
6
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  "license": "ISC",
52
52
  "dependencies": {
53
53
  "safe-stable-stringify": "^2.5.0",
54
- "typebox": "1.3.3"
54
+ "typebox": "1.3.10"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@composio/core": ">=0.10.0 <1.0.0",
@@ -67,13 +67,13 @@
67
67
  }
68
68
  },
69
69
  "devDependencies": {
70
- "@earendil-works/pi-coding-agent": "^0.80.3",
71
- "eve": "^0.12.0",
72
- "tsdown": "^0.22.3",
73
- "tsx": "^4.23.0",
74
- "typescript": "^6.0.3",
70
+ "@earendil-works/pi-coding-agent": "^0.83.0",
71
+ "eve": "^0.29.5",
72
+ "tsdown": "^0.22.14",
73
+ "tsx": "^4.23.5",
74
+ "typescript": "^7.0.2",
75
75
  "vitest": "^4.1.10",
76
- "@composio/core": "0.14.0"
76
+ "@composio/core": "0.15.0"
77
77
  },
78
78
  "scripts": {
79
79
  "clean": "git clean -xdf node_modules",