Initial project setup with multi-component architecture
- Initialize TypeScript project with pnpm - Create agent, gateway, client, and shared modules - Configure ESM with strict TypeScript settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
commit
6b34ddc3dc
13 changed files with 415 additions and 0 deletions
3
src/agent/agent.ts
Normal file
3
src/agent/agent.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export class Agent {
|
||||
constructor(public readonly name: string) {}
|
||||
}
|
||||
1
src/agent/index.ts
Normal file
1
src/agent/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./agent.js";
|
||||
3
src/client/client.ts
Normal file
3
src/client/client.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export class Client {
|
||||
constructor(public readonly id: string) {}
|
||||
}
|
||||
1
src/client/index.ts
Normal file
1
src/client/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./client.js";
|
||||
3
src/gateway/gateway.ts
Normal file
3
src/gateway/gateway.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export class Gateway {
|
||||
constructor(public readonly port: number) {}
|
||||
}
|
||||
1
src/gateway/index.ts
Normal file
1
src/gateway/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./gateway.js";
|
||||
4
src/index.ts
Normal file
4
src/index.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export * from "./agent/index.js";
|
||||
export * from "./gateway/index.js";
|
||||
export * from "./client/index.js";
|
||||
export * from "./shared/index.js";
|
||||
1
src/shared/index.ts
Normal file
1
src/shared/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./types.js";
|
||||
5
src/shared/types.ts
Normal file
5
src/shared/types.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export interface Message {
|
||||
id: string;
|
||||
payload: unknown;
|
||||
timestamp: number;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue