Skip to content

Commit 04571e5

Browse files
authored
Patch/filestore (#20)
* Update package.json to include postinstall script for automatic build process and fix formatting in types section * Update package.json to include src directory in files list * Update tsconfig.json to specify relative path for src directory inclusion * Update package.json to include tsconfig.json in files list for improved project structure and clarity * Add postinstall script to package.json for automatic TypeScript compilation * + bin * Update ClientProxy interface to omit additional methods for improved type safety in proxied environments * Remove A2A submodule and its configuration from the project, streamlining dependencies and project structure. * + FileStore should not throw unless error is unless the error is unrecoverable. * Update .gitignore to include 'dist', 'data', and 'coverage' directories for better build management
1 parent fff859e commit 04571e5

File tree

20 files changed

+85
-701
lines changed

20 files changed

+85
-701
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
33
package-lock.json
4+
data
5+
coverage

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 217 deletions
Large diffs are not rendered by default.

deps/a2a

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@artinet/sdk",
3-
"version": "0.5.7",
4-
"description": "TypeScript SDK for the Agent2Agent (A2A) Protocol",
3+
"version": "0.5.8",
4+
"description": "A TypeScript SDK for building collaborative AI agents.",
55
"type": "module",
66
"main": "./dist/index.js",
77
"module": "./dist/index.js",
@@ -22,8 +22,7 @@
2222
"import": "./dist/utils/deployment/index.js",
2323
"default": "./dist/utils/deployment/index.js"
2424
},
25-
"./types":
26-
{
25+
"./types": {
2726
"types": "./dist/types/types/index.d.ts",
2827
"import": "./dist/types/index.js",
2928
"default": "./dist/types/index.js"
@@ -32,6 +31,7 @@
3231
"rootDir": ".",
3332
"files": [
3433
"dist",
34+
"package.json",
3535
"README.md",
3636
"CHANGELOG.md",
3737
"LICENSE"
@@ -55,7 +55,12 @@
5555
"ai",
5656
"agent",
5757
"sdk",
58-
"protocol"
58+
"artificial intelligence",
59+
"ai agent",
60+
"a2a",
61+
"multi-agent",
62+
"multi-agent system",
63+
"orchestration"
5964
],
6065
"author": "artinet",
6166
"license": "Apache-2.0",
@@ -69,21 +74,17 @@
6974
"homepage": "https://github.com/the-artinet-project/artinet-sdk#readme",
7075
"dependencies": {
7176
"@artinet/metadata-validator": "^0.0.3",
72-
"@modelcontextprotocol/sdk": "latest",
77+
"@modelcontextprotocol/sdk": "^1.19.1",
7378
"@trpc/server": "^11.4.3",
7479
"@types/cors": "^2.8.17",
7580
"@types/express": "^5.0.1",
76-
"@types/mime-types": "^3.0.0",
77-
"@types/pino": "^7.0.4",
7881
"cors": "^2.8.5",
7982
"esbuild": "^0.25.4",
8083
"escape-html": "^1.0.3",
8184
"eventsource-parser": "^3.0.1",
8285
"express": "^5.1.0",
83-
"pino": "^9.6.0",
84-
"pino-pretty": "^10.2.0",
8586
"uuid": "^11.1.0",
86-
"zod": "latest"
87+
"zod": "^3.23.8"
8788
},
8889
"devDependencies": {
8990
"@eslint/js": "^9.25.1",

project-structure.txt

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/types/schemas/deployment/proxy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export type ConnectAPICallback = (props: ConnectProps) => Promise<string>;
8484
export interface ClientProxy
8585
extends Omit<
8686
Client,
87+
| "sendTask"
8788
| "sendTaskSubscribe"
89+
| "sendStreamingMessage"
8890
| "getTask"
8991
| "cancelTask"
9092
| "getTaskPushNotification"

src/utils/deployment/agents.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export namespace artinet {
2828
* managed environment. It takes the agent's core task-handling generator function
2929
* and iterates over its yielded updates, passing them to a proxy function
3030
* made available by the host environment.
31-
*
31+
* @deprecated Deployment moving to a new package.
3232
* The `TaskContext` and the `TaskProxy` (for yielding updates) are expected
3333
* to be provided by the host environment via `process.env`.
3434
*
@@ -80,7 +80,7 @@ export namespace artinet {
8080
* agents in a managed environment to make external calls (e.g., to an LLM or another agent)
8181
* without needing direct network access or credentials. The actual implementation
8282
* is delegated to `env.connectStub`, provided by the host environment.
83-
*
83+
* @deprecated Deployment moving to a new package.
8484
* @param {ConnectProps} props - The properties for the connect call, including the target agentID and messages.
8585
* @param {string} props.agentID - The identifier of the target agent or LLM to which the request is directed.
8686
* @param {object[]} props.messages - An array of messages forming the conversation history or prompt.
@@ -108,7 +108,7 @@ export namespace artinet {
108108
* provided by the host environment. This allows agents to communicate with
109109
* other entities in a managed environment without direct awareness of the
110110
* underlying communication mechanisms.
111-
*
111+
* @deprecated Deployment moving to a new package.
112112
* @param {ClientProps} props - The properties for creating the client.
113113
* @returns {ClientProxy} A proxy object for interacting with a client service or agent.
114114
* @throws An error if `env.clientStub` is not found,

src/utils/deployment/bundler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { fileURLToPath } from "node:url";
1212
* This utility leverages `esbuild` for efficient bundling, minification, and sourcemap generation.
1313
* It's designed to prepare agent code for deployment by packaging it and its local dependencies.
1414
*
15+
* @deprecated Deployment moving to a new package.
1516
* @param filePath - The URL of the entry point file to bundle.
1617
* @returns A promise that resolves to a string containing the bundled and minified code.
1718
* @throws An error if the file path does not exist, is not a file, or if bundling fails for any reason.

src/utils/deployment/full-deployment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type FullDeploymentRequest = A2ARequest | ServerDeploymentRequest;
2828

2929
/**
3030
* Sends a full deployment request to the server.
31+
* @deprecated Deployment moving to a new package.
3132
* @param baseUrl The base URL of the server.
3233
* @param method The method to call.
3334
* @param params The parameters to pass to the method.
@@ -47,6 +48,7 @@ const executeFullDeploymentRequest = executeJsonRpcRequest as <
4748

4849
/**
4950
* Sends a full deployment request to the server.
51+
* @deprecated Deployment moving to a new package.
5052
* @param params The parameters to pass to the method.
5153
* @returns The response from the server.
5254
*/

0 commit comments

Comments
 (0)