@sekuire/sdk 0.1.4 → 0.1.5
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/config/loader.d.ts +1 -1
- package/dist/index.d.ts +69 -47
- package/dist/index.esm.js +996 -795
- package/dist/index.js +997 -794
- package/dist/llm/anthropic.d.ts +1 -1
- package/dist/llm/google.d.ts +1 -1
- package/dist/llm/index.d.ts +10 -10
- package/dist/llm/ollama.d.ts +1 -1
- package/dist/llm/openai.d.ts +1 -1
- package/dist/llm/types.d.ts +1 -1
- package/dist/memory/base.d.ts +1 -1
- package/dist/memory/in-memory.d.ts +1 -1
- package/dist/memory/index.d.ts +8 -8
- package/dist/memory/postgres.d.ts +1 -1
- package/dist/memory/redis.d.ts +1 -1
- package/dist/server.d.ts +4 -0
- package/dist/tools/agent-invocation.d.ts +1 -1
- package/dist/tools/base.d.ts +3 -3
- package/dist/tools/calculator.d.ts +1 -1
- package/dist/tools/compliance-operations.d.ts +1 -1
- package/dist/tools/data-operations.d.ts +1 -1
- package/dist/tools/directory-operations.d.ts +1 -1
- package/dist/tools/file-operations.d.ts +1 -1
- package/dist/tools/google-workspace.d.ts +8 -0
- package/dist/tools/http-request.d.ts +1 -1
- package/dist/tools/index.d.ts +34 -31
- package/dist/tools/pattern-parser.d.ts +1 -1
- package/dist/tools/remote.d.ts +10 -0
- package/dist/tools/system-operations.d.ts +1 -1
- package/dist/tools/utility-operations.d.ts +1 -1
- package/dist/tools/verification-status.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/package.json +1 -1
package/dist/llm/anthropic.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from
|
|
1
|
+
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Anthropic LLM Provider
|
|
4
4
|
* Supports Claude models (Claude 3, Claude 3.5, etc.)
|
package/dist/llm/google.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from
|
|
1
|
+
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Google Gemini LLM Provider
|
|
4
4
|
* Supports Gemini Pro, Gemini Pro Vision, and other Google models
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AnthropicProvider } from
|
|
2
|
-
import { GoogleProvider } from
|
|
3
|
-
import { OllamaProvider } from
|
|
4
|
-
import { OpenAIProvider } from
|
|
5
|
-
import type { LLMProvider, LLMProviderConfig } from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
import { AnthropicProvider } from './anthropic';
|
|
2
|
+
import { GoogleProvider } from './google';
|
|
3
|
+
import { OllamaProvider } from './ollama';
|
|
4
|
+
import { OpenAIProvider } from './openai';
|
|
5
|
+
import type { LLMProvider, LLMProviderConfig } from './types';
|
|
6
|
+
export * from './anthropic';
|
|
7
|
+
export * from './google';
|
|
8
|
+
export * from './ollama';
|
|
9
|
+
export * from './openai';
|
|
10
|
+
export * from './types';
|
|
11
11
|
/**
|
|
12
12
|
* Create an LLM provider based on provider name
|
|
13
13
|
*/
|
package/dist/llm/ollama.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from
|
|
1
|
+
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Ollama LLM Provider
|
|
4
4
|
* Supports local models via Ollama (Llama 2, Mistral, CodeLlama, etc.)
|
package/dist/llm/openai.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from
|
|
1
|
+
import type { ChatChunk, ChatOptions, ChatResponse, LLMProvider, LLMProviderConfig, Message } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* OpenAI LLM Provider
|
|
4
4
|
* Supports GPT-3.5, GPT-4, and other OpenAI models
|
package/dist/llm/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Message format for chat conversations
|
|
3
3
|
*/
|
|
4
4
|
export interface Message {
|
|
5
|
-
role:
|
|
5
|
+
role: 'system' | 'user' | 'assistant' | 'function' | 'tool';
|
|
6
6
|
content: string | null;
|
|
7
7
|
name?: string;
|
|
8
8
|
tool_call_id?: string;
|
package/dist/memory/base.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseMemoryStorage, type MemoryMessage } from
|
|
1
|
+
import { BaseMemoryStorage, type MemoryMessage } from './base';
|
|
2
2
|
export declare class InMemoryStorage extends BaseMemoryStorage {
|
|
3
3
|
private storage;
|
|
4
4
|
add(sessionId: string, message: MemoryMessage): Promise<void>;
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
import type { MemoryStorage } from
|
|
6
|
-
import { type PostgresConfig } from
|
|
7
|
-
import { type RedisConfig } from
|
|
8
|
-
export type MemoryType =
|
|
1
|
+
export * from './base';
|
|
2
|
+
export * from './in-memory';
|
|
3
|
+
export * from './postgres';
|
|
4
|
+
export * from './redis';
|
|
5
|
+
import type { MemoryStorage } from './base';
|
|
6
|
+
import { type PostgresConfig } from './postgres';
|
|
7
|
+
import { type RedisConfig } from './redis';
|
|
8
|
+
export type MemoryType = 'in-memory' | 'redis' | 'postgres';
|
|
9
9
|
export interface MemoryFactoryConfig {
|
|
10
10
|
type: MemoryType;
|
|
11
11
|
redis?: RedisConfig;
|
package/dist/memory/redis.d.ts
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare abstract class SekuireServer {
|
|
|
22
22
|
* Get the agent's ID
|
|
23
23
|
*/
|
|
24
24
|
getAgentId(): string;
|
|
25
|
+
/**
|
|
26
|
+
* Handle incoming webhooks from other agents
|
|
27
|
+
*/
|
|
28
|
+
handleWebhook(payload: any, signature?: string): Promise<any>;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Express.js middleware for Sekuire protocol
|
package/dist/tools/base.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { PolicyEnforcer } from
|
|
1
|
+
import type { PolicyEnforcer } from '../policy-enforcer';
|
|
2
2
|
export interface ToolInput {
|
|
3
3
|
[key: string]: string | number | boolean | object;
|
|
4
4
|
}
|
|
5
5
|
export interface ToolParameter {
|
|
6
6
|
name: string;
|
|
7
|
-
type:
|
|
7
|
+
type: 'string' | 'number' | 'boolean' | 'object';
|
|
8
8
|
description: string;
|
|
9
9
|
required: boolean;
|
|
10
10
|
default?: string | number | boolean | object;
|
|
@@ -14,7 +14,7 @@ export interface ToolMetadata {
|
|
|
14
14
|
description: string;
|
|
15
15
|
parameters: ToolParameter[];
|
|
16
16
|
category?: string;
|
|
17
|
-
compliance_level?:
|
|
17
|
+
compliance_level?: 'public' | 'internal' | 'restricted' | 'system';
|
|
18
18
|
requires_approval?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare abstract class Tool {
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
1
|
+
export * from './agent-delegation';
|
|
2
|
+
export * from './agent-invocation';
|
|
3
|
+
export * from './base';
|
|
4
|
+
export * from './calculator';
|
|
5
|
+
export * from './compliance-operations';
|
|
6
|
+
export * from './data-formats';
|
|
7
|
+
export * from './data-operations';
|
|
8
|
+
export * from './directory-operations';
|
|
9
|
+
export * from './file-operations';
|
|
10
|
+
export * from './google-workspace';
|
|
11
|
+
export * from './http-request';
|
|
12
|
+
export * from './network-operations';
|
|
13
|
+
export * from './pattern-parser';
|
|
14
|
+
export * from './system-operations';
|
|
15
|
+
export * from './utility-operations';
|
|
16
|
+
export * from './verification-status';
|
|
17
|
+
export * from './web-search';
|
|
18
|
+
import { AgentDelegationTool, AgentDiscoveryTool, AgentStatusTool } from './agent-delegation';
|
|
19
|
+
import { GetAgentInfoTool, InvokeAgentTool, SearchAgentsTool } from './agent-invocation';
|
|
20
|
+
import { ToolRegistry } from './base';
|
|
21
|
+
import { CalculatorTool } from './calculator';
|
|
22
|
+
import { AuditLogTool, DecryptDataTool, EncryptDataTool, PiiDetectTool } from './compliance-operations';
|
|
23
|
+
import { CsvParseTool, CsvWriteTool, JsonStringifyTool, XmlParseTool, YamlParseTool } from './data-formats';
|
|
24
|
+
import { Base64DecodeTool, Base64EncodeTool, HashTool, JsonParseTool } from './data-operations';
|
|
25
|
+
import { DirectoryCopyTool, DirectoryExistsTool, DirectoryListTool, DirectoryMkdirTool, DirectoryMoveTool, DirectoryRmdirTool, DirectoryRmRecursiveTool, DirectoryTreeTool } from './directory-operations';
|
|
26
|
+
import { FileAppendTool, FileChmodTool, FileCopyTool, FileDeleteTool, FileExistsTool, FileListTool, FileMoveTool, FileReadTool, FileStatTool, FileWriteTool } from './file-operations';
|
|
27
|
+
import { HttpRequestTool } from './http-request';
|
|
28
|
+
import { DnsLookupTool, DownloadFileTool, HttpDeleteTool, HttpPostTool, HttpPutTool, PingTool } from './network-operations';
|
|
29
|
+
import { EnvGetTool, EnvSetTool, GetCwdTool, GetPlatformTool } from './system-operations';
|
|
30
|
+
import { GoogleDocsCreateTool } from './google-workspace';
|
|
31
|
+
import { DateFormatTool, GenerateUuidTool, RandomNumberTool, RegexMatchTool, SleepTool, UrlParseTool } from './utility-operations';
|
|
32
|
+
import { VerificationStatusTool } from './verification-status';
|
|
33
|
+
import { WebSearchTool } from './web-search';
|
|
32
34
|
export interface ToolRegistryOptions {
|
|
33
35
|
privateKey?: string;
|
|
34
36
|
publicKey?: string;
|
|
@@ -62,6 +64,7 @@ export declare const builtInTools: {
|
|
|
62
64
|
DownloadFileTool: typeof DownloadFileTool;
|
|
63
65
|
DnsLookupTool: typeof DnsLookupTool;
|
|
64
66
|
PingTool: typeof PingTool;
|
|
67
|
+
GoogleDocsCreateTool: typeof GoogleDocsCreateTool;
|
|
65
68
|
JsonParseTool: typeof JsonParseTool;
|
|
66
69
|
JsonStringifyTool: typeof JsonStringifyTool;
|
|
67
70
|
CsvParseTool: typeof CsvParseTool;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SekuireClient } from '../client';
|
|
2
|
+
import type { ToolDefinition } from '../agent';
|
|
3
|
+
/**
|
|
4
|
+
* Create a tool for discovering other agents in the Sekuire network
|
|
5
|
+
*/
|
|
6
|
+
export declare function createDiscoveryTool(client: SekuireClient): ToolDefinition;
|
|
7
|
+
/**
|
|
8
|
+
* Create a tool for delegating tasks to other agents
|
|
9
|
+
*/
|
|
10
|
+
export declare function createDelegationTool(client: SekuireClient): ToolDefinition;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Security score and reputation
|
|
12
12
|
* - Code review status
|
|
13
13
|
*/
|
|
14
|
-
import { Tool, type ToolInput, type ToolMetadata } from
|
|
14
|
+
import { Tool, type ToolInput, type ToolMetadata } from './base';
|
|
15
15
|
export declare class VerificationStatusTool extends Tool {
|
|
16
16
|
metadata: ToolMetadata;
|
|
17
17
|
private registryUrl;
|