-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AgentClient - preparation for changes in the initialization process (#36
) This commit refactors the solution and prepares foundation for proper initialization process: - AgentConnector is now renamed to AgentClient - IAgentClient is now renamed to IAgentService - It's now possible to have more than one class with notification handlers (e.g., one class for handling webview notifications and another class for handling debug/message notifications) - There's no longer a need to use a factory to create the agent client - Warnings are now made useful again - Eliminated the usage of libraries containing known vulnerabilities - Removed unnecessary references from Cody.Core - Replaced packages.config with PackageReference Co-authored-by: Tomasz Gołębiowski <[email protected]>
- Loading branch information
1 parent
681c06c
commit aec1d77
Showing
29 changed files
with
533 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cody.Core.Agent | ||
{ | ||
public class AgentMethodAttribute : Attribute | ||
{ | ||
public AgentMethodAttribute(string name) | ||
{ | ||
Name = name; | ||
} | ||
|
||
public string Name { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cody.Core.Agent | ||
{ | ||
public class AgentNotificationAttribute : Attribute | ||
{ | ||
public AgentNotificationAttribute(string name, bool deserializeToSingleObject = false) | ||
{ | ||
Name = name; | ||
DeserializeToSingleObject = deserializeToSingleObject; | ||
} | ||
|
||
public string Name { get; private set; } | ||
|
||
public bool DeserializeToSingleObject { get; private set; } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.