@rozenite/agent-shared
Advanced tools
| "use strict"; | ||
| Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | ||
| const AGENT_PLUGIN_ID = "rozenite-agent"; | ||
| exports.AGENT_PLUGIN_ID = AGENT_PLUGIN_ID; |
+42
-29
| export declare const AGENT_PLUGIN_ID = "rozenite-agent"; | ||
| export interface JSONSchema7 { | ||
| export declare type AgentMessage = RegisterToolMessage | UnregisterToolMessage | ToolCallMessage | ToolResultMessage; | ||
| export declare interface AgentTool { | ||
| name: string; | ||
| description: string; | ||
| inputSchema: JSONSchema7; | ||
| } | ||
| export declare type DevToolsPluginMessage = { | ||
| pluginId: string; | ||
| type: string; | ||
| payload: unknown; | ||
| }; | ||
| export declare interface JSONSchema7 { | ||
| type?: string | string[]; | ||
@@ -15,19 +30,18 @@ properties?: Record<string, JSONSchema7>; | ||
| } | ||
| export interface AgentTool { | ||
| name: string; | ||
| description: string; | ||
| inputSchema: JSONSchema7; | ||
| } | ||
| export type DevToolsPluginMessage = { | ||
| pluginId: string; | ||
| type: string; | ||
| payload: unknown; | ||
| export declare type RegisterToolMessage = { | ||
| type: 'register-tool'; | ||
| payload: RegisterToolPayload; | ||
| }; | ||
| export type RegisterToolPayload = { | ||
| export declare type RegisterToolPayload = { | ||
| tools: AgentTool[]; | ||
| }; | ||
| export type UnregisterToolPayload = { | ||
| toolNames: string[]; | ||
| export declare type ToolCallMessage = { | ||
| type: 'tool-call'; | ||
| payload: ToolCallPayload; | ||
| }; | ||
| export type ToolCallPayload = { | ||
| export declare type ToolCallPayload = { | ||
| callId: string; | ||
@@ -37,3 +51,9 @@ toolName: string; | ||
| }; | ||
| export type ToolResultPayload = { | ||
| export declare type ToolResultMessage = { | ||
| type: 'tool-result'; | ||
| payload: ToolResultPayload; | ||
| }; | ||
| export declare type ToolResultPayload = { | ||
| callId: string; | ||
@@ -44,19 +64,12 @@ success: boolean; | ||
| }; | ||
| export type RegisterToolMessage = { | ||
| type: 'register-tool'; | ||
| payload: RegisterToolPayload; | ||
| }; | ||
| export type UnregisterToolMessage = { | ||
| export declare type UnregisterToolMessage = { | ||
| type: 'unregister-tool'; | ||
| payload: UnregisterToolPayload; | ||
| }; | ||
| export type ToolCallMessage = { | ||
| type: 'tool-call'; | ||
| payload: ToolCallPayload; | ||
| export declare type UnregisterToolPayload = { | ||
| toolNames: string[]; | ||
| }; | ||
| export type ToolResultMessage = { | ||
| type: 'tool-result'; | ||
| payload: ToolResultPayload; | ||
| }; | ||
| export type AgentMessage = RegisterToolMessage | UnregisterToolMessage | ToolCallMessage | ToolResultMessage; | ||
| //# sourceMappingURL=index.d.ts.map | ||
| export { } |
+4
-1
@@ -1,1 +0,4 @@ | ||
| export const AGENT_PLUGIN_ID = 'rozenite-agent'; | ||
| const AGENT_PLUGIN_ID = "rozenite-agent"; | ||
| export { | ||
| AGENT_PLUGIN_ID | ||
| }; |
+6
-3
| { | ||
| "name": "@rozenite/agent-shared", | ||
| "version": "1.5.0", | ||
| "version": "1.5.1", | ||
| "description": "Shared types and utilities for Rozenite agent packages", | ||
@@ -28,6 +28,8 @@ "type": "module", | ||
| "exports": { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| "development": "./src/index.ts", | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js", | ||
| "require": "./dist/index.js" | ||
| "require": "./dist/index.cjs" | ||
| } | ||
@@ -43,5 +45,6 @@ }, | ||
| "scripts": { | ||
| "build": "tsc -b tsconfig.lib.json", | ||
| "build": "vite build", | ||
| "typecheck": "tsc -p tsconfig.lib.json --noEmit", | ||
| "clean": "rm -rf dist" | ||
| } | ||
| } |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAA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