@ai-ecoverse/slicc-agent 3.27.1 → 3.28.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/README.md +45 -3
- package/dist/codemode/index.js +10 -4
- package/dist/codemode/index.js.map +2 -2
- package/dist/host.js +1 -0
- package/dist/host.js.map +2 -2
- package/dist/main.js +21 -2
- package/dist/main.js.map +2 -2
- package/dist/mcp/allow.js +39 -0
- package/dist/mcp/allow.js.map +7 -0
- package/dist/mcp/catalog.js +182 -0
- package/dist/mcp/catalog.js.map +7 -0
- package/dist/mcp/config.js +201 -0
- package/dist/mcp/config.js.map +7 -0
- package/dist/mcp/connection.js +296 -0
- package/dist/mcp/connection.js.map +7 -0
- package/dist/mcp/content.js +139 -0
- package/dist/mcp/content.js.map +7 -0
- package/dist/mcp/credentials.js +45 -0
- package/dist/mcp/credentials.js.map +7 -0
- package/dist/mcp/index.js +54 -0
- package/dist/mcp/index.js.map +7 -0
- package/dist/mcp/runtime.js +209 -0
- package/dist/mcp/runtime.js.map +7 -0
- package/dist/mcp/section.js +35 -0
- package/dist/mcp/section.js.map +7 -0
- package/dist/mcp/sse.js +112 -0
- package/dist/mcp/sse.js.map +7 -0
- package/dist/mcp/tools.js +413 -0
- package/dist/mcp/tools.js.map +7 -0
- package/dist/patches.js +2 -0
- package/dist/patches.js.map +2 -2
- package/dist/roles/roles.js +10 -1
- package/dist/roles/roles.js.map +2 -2
- package/dist/scoops/index.js +2 -1
- package/dist/scoops/index.js.map +2 -2
- package/dist/scoops/service.js +21 -6
- package/dist/scoops/service.js.map +2 -2
- package/dist/types/codemode/index.d.ts +8 -3
- package/dist/types/host.d.ts +2 -0
- package/dist/types/mcp/allow.d.ts +12 -0
- package/dist/types/mcp/catalog.d.ts +29 -0
- package/dist/types/mcp/config.d.ts +35 -0
- package/dist/types/mcp/connection.d.ts +57 -0
- package/dist/types/mcp/content.d.ts +27 -0
- package/dist/types/mcp/credentials.d.ts +15 -0
- package/dist/types/mcp/index.d.ts +16 -0
- package/dist/types/mcp/runtime.d.ts +42 -0
- package/dist/types/mcp/section.d.ts +7 -0
- package/dist/types/mcp/sse.d.ts +16 -0
- package/dist/types/mcp/tools.d.ts +44 -0
- package/dist/types/patches.d.ts +1 -0
- package/dist/types/scoops/index.d.ts +1 -0
- package/dist/types/scoops/service.d.ts +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Context } from '@earendil-works/chord';
|
|
2
|
+
import { type CodemodeJsonSchema, type CodemodeTool } from '@earendil-works/pi-codemode';
|
|
3
|
+
import { type ToolExecutionApi, type ToolRegistration } from '@earendil-works/pi-durable';
|
|
4
|
+
import type { Tool as McpTool } from '@earendil-works/pi-mcp';
|
|
5
|
+
import type { McpExposure } from './config.ts';
|
|
6
|
+
import { type McpServerConnection } from './connection.ts';
|
|
7
|
+
import { READ_MCP_RESOURCE, type Saver } from './content.ts';
|
|
8
|
+
export declare const LIST_MCP_RESOURCES = "list_mcp_resources";
|
|
9
|
+
export declare const LIST_MCP_RESOURCE_TEMPLATES = "list_mcp_resource_templates";
|
|
10
|
+
export { READ_MCP_RESOURCE };
|
|
11
|
+
export interface McpToolEntry {
|
|
12
|
+
server: string;
|
|
13
|
+
name: string;
|
|
14
|
+
exposure: McpExposure;
|
|
15
|
+
tool: McpTool;
|
|
16
|
+
connection: McpServerConnection;
|
|
17
|
+
}
|
|
18
|
+
export type McpDetails = {
|
|
19
|
+
server: string;
|
|
20
|
+
tool: string;
|
|
21
|
+
fullOutputPath?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function resultSchema(structured: Record<string, unknown> | undefined): CodemodeJsonSchema;
|
|
24
|
+
export declare function apiSaver(api: ToolExecutionApi, prefix: string, context: Context): Saver;
|
|
25
|
+
export declare function directTool(entry: McpToolEntry, readable: () => boolean): ToolRegistration;
|
|
26
|
+
export declare function scriptTool(entry: McpToolEntry, signal: AbortSignal | undefined): CodemodeTool;
|
|
27
|
+
export interface ResourceServer {
|
|
28
|
+
name: string;
|
|
29
|
+
connection: McpServerConnection;
|
|
30
|
+
}
|
|
31
|
+
export type ServersFor = (api: ToolExecutionApi, context: Context) => Promise<readonly ResourceServer[]>;
|
|
32
|
+
export declare function resourceTools(servers: ServersFor): ToolRegistration[];
|
|
33
|
+
export declare function resourceScriptTools(servers: () => readonly ResourceServer[], signal: AbortSignal | undefined, save: Saver): CodemodeTool[];
|
|
34
|
+
export interface Namespace {
|
|
35
|
+
name: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
instructions?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function rank(query: string, documents: readonly {
|
|
40
|
+
name: string;
|
|
41
|
+
text: string;
|
|
42
|
+
}[], limit: number): string[];
|
|
43
|
+
export declare const DEFAULT_SEARCH_LIMIT = 8;
|
|
44
|
+
export declare function discoveryGlobals(tools: readonly CodemodeTool[], namespaceOf: (tool: string) => Namespace | undefined): CodemodeTool[];
|
package/dist/types/patches.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface AttachOptions {
|
|
|
28
28
|
memory?: CliOptions['memory'];
|
|
29
29
|
gelatiere?: CliOptions['gelatiere'];
|
|
30
30
|
freezer?: CliOptions['freezer'];
|
|
31
|
+
mcp?: (names: readonly string[]) => ToolRegistration[];
|
|
31
32
|
}
|
|
32
33
|
export interface ScoopsRuntime {
|
|
33
34
|
roles(context: Context): Promise<Roles>;
|
|
@@ -49,6 +49,7 @@ export interface ScoopsHost {
|
|
|
49
49
|
tools?: readonly ToolRegistration[];
|
|
50
50
|
reads?: () => readonly string[];
|
|
51
51
|
files?: Pick<ExecutionEnv, 'remove' | 'createDir'>;
|
|
52
|
+
mcp?: (names: readonly string[]) => ToolRegistration[];
|
|
52
53
|
}
|
|
53
54
|
export interface Rewound {
|
|
54
55
|
stopped: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.28.0",
|
|
4
4
|
"description": "SLICC's agent core on pi durable: an agent worker, session storage, remoting and pi extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@ai-ecoverse/slicc-kernel": "1.26.3",
|
|
65
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
66
|
-
"@ai-ecoverse/slicc-spectrum": "1.
|
|
65
|
+
"@ai-ecoverse/slicc-shared-web": "1.12.0",
|
|
66
|
+
"@ai-ecoverse/slicc-spectrum": "1.46.0",
|
|
67
67
|
"@ai-ecoverse/wasm-bash": "5.3.0-10",
|
|
68
68
|
"@ai-ecoverse/wasm-coreutils": "9.7.0-3",
|
|
69
|
-
"@ai-ecoverse/wasm-git": "2.55.0-
|
|
69
|
+
"@ai-ecoverse/wasm-git": "2.55.0-12",
|
|
70
70
|
"@biomejs/biome": "2.5.15",
|
|
71
71
|
"@types/node": "24.19.1",
|
|
72
72
|
"esbuild": "0.28.2",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@earendil-works/pi-client": "1.0.4",
|
|
84
84
|
"@earendil-works/pi-codemode": "1.1.0",
|
|
85
85
|
"@earendil-works/pi-durable": "1.0.4",
|
|
86
|
+
"@earendil-works/pi-mcp": "1.1.0",
|
|
86
87
|
"@earendil-works/pi-protocol": "1.0.4",
|
|
87
88
|
"@earendil-works/pi-server": "1.0.4",
|
|
88
89
|
"@sqlite.org/sqlite-wasm": "3.53.4-build2"
|