Skip to content

Update client domain structure #563

@tegefaulkes

Description

@tegefaulkes

Specification

During #552 the agent domain was rolled into the nodes domain at src/nodes/agent. The agent domain was restructured during this time as well.

  1. All the handlers were updated to use default exports.
  2. All the handlers were updated to use arrow functions.
  3. The ServerManifest was moved into the index.ts.
  4. The caller definitions were moved into nodes/agent/callers.
  5. The caller definitions were split into separate files. (I don't like this change, it means that each caller which can be defined in a single line need to be spread across 60+ files.) I should check with @CMCDragonkai to see if it's required.
  6. clientManifest was moved into nodes/agent/callers/index.ts.
  7. errors.ts, types.ts and utils.ts are in nodes/agent directory now.

Pretty much try to structure the client domain like nodes/agent directory. If anything is unclear, make a comment here asking about it.

Additional context

Tasks

  • 1. All the handlers were updated to use default exports.
  • 2. All the handlers were updated to use arrow functions.
  • 3. The ServerManifest was moved into the index.ts.
  • 4. The caller definitions were moved into nodes/agent/callers.
  • 5. The caller definitions were split into separate files. (I don't like this change, it means that each caller which can be defined in a single line need to be spread across 60+ files.) I should check with @CMCDragonkai to see if it's required.
  • 6. clientManifest was moved into nodes/agent/callers/index.ts.
  • 7. errors.ts, types.ts and utils.ts are in nodes/agent directory now.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions