-
Notifications
You must be signed in to change notification settings - Fork 164
(WIP) Get sub agent proposal placeholder #1580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kriswest
wants to merge
3
commits into
main
Choose a base branch
from
getSubAgent-proposal
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -25,6 +25,8 @@ interface DesktopAgent { | |||||
| open(app: AppIdentifier, context?: Context): Promise<AppIdentifier>; | ||||||
| findInstances(app: AppIdentifier): Promise<Array<AppIdentifier>>; | ||||||
| getAppMetadata(app: AppIdentifier): Promise<AppMetadata>; | ||||||
| // TODO: add getSubAgent | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| // TODO: add a close or disconnect function (for subAgents or maybe all agents?) | ||||||
|
|
||||||
| // context | ||||||
| broadcast(context: Context): Promise<void>; | ||||||
|
|
@@ -412,6 +414,10 @@ _desktopAgent.Broadcast(instrument); | |||||
|
|
||||||
| - [addContextListener](#addcontextlistener) | ||||||
|
|
||||||
| ### `close` | ||||||
|
|
||||||
| <!-- TODO: add close or disconnect content --> | ||||||
|
|
||||||
| ### `createPrivateChannel` | ||||||
|
|
||||||
| <Tabs groupId="lang"> | ||||||
|
|
@@ -1105,6 +1111,10 @@ var redChannel = userChannels.First(c => c.Id == "red"); | |||||
|
|
||||||
| - [`Channel`](Channel) | ||||||
|
|
||||||
| ### `getSubAgent` | ||||||
|
|
||||||
| <!-- TODO: add getSubAgent content --> | ||||||
|
|
||||||
| ### `joinUserChannel` | ||||||
|
|
||||||
| <Tabs groupId="lang"> | ||||||
|
|
||||||
This file contains hidden or 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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -121,6 +121,8 @@ An FDC3 Standard compliant Desktop Agent implementation **MUST**: | |||||||||||||||||||||||
| - Provide details of whether they implement optional features of the Desktop Agent API in the `optionalFeatures` property of the [`ImplementationMetadata`](ref/Metadata#implementationmetadata) object returned by the [`fdc3.getInfo()`](ref/DesktopAgent#getinfo) function. | ||||||||||||||||||||||||
| - Allow, by default, at least a 15 second timeout for an application, launched via [`fdc3.open`](../api/ref/DesktopAgent#open), [`fdc3.raiseIntent`](../api/ref/DesktopAgent#raiseintent) or [`fdc3.raiseIntentForContext`](../api/ref/DesktopAgent#raiseintentforcontext) to add any context listener (via [`fdc3.addContextListener`](../api/ref/DesktopAgent#addcontextlistener)) or intent listener (via [`fdc3.addIntentListener`](../api/ref/DesktopAgent#addintentlistener)) necessary to deliver context or intent and context to it on launch. This timeout only applies to listeners needed to receive context on launch; further intent and context listeners not required on launch MAY be added later. | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| <!-- TODO: add any new requirements for subAgents or disconnection functions --> | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| An FDC3 Standard compliant Desktop Agent implementation **SHOULD**: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| - Support connection to one or more App Directories meeting the [FDC3 App Directory Standard](../app-directory/overview). | ||||||||||||||||||||||||
|
|
@@ -132,6 +134,8 @@ An FDC3 Standard compliant Desktop Agent implementation **SHOULD**: | |||||||||||||||||||||||
| - Prevent external apps from listening or publishing on a [`PrivateChannel`](ref/PrivateChannel) that they did not request or provide. | ||||||||||||||||||||||||
| - Enforce compliance with the expected behavior of intents (where Intents specify a contract that is enforceable by schema, for example, return object types) and return an error if the interface is not met. | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| <!-- TODO: add any new recommendations for subAgents or disconnection functions --> | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| An FDC3 Standard compliant Desktop Agent implementation **MAY**: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| - Make the Desktop Agent API available through modules, imports, or other means. | ||||||||||||||||||||||||
|
|
@@ -234,6 +238,12 @@ Additional metadata for an application can be retrieved via the [`fdc3.getAppMet | |||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Identifiers for instances of an application may be retrieved via the [`fdc3.findInstances(appIdentifier)`](ref/DesktopAgent#findinstances) function. | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ### Start sub-applications with their own identity | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| <!-- TODO: Describe the use-case for sub-agents without being overly focused on a particular platform (could make sense in web apps and monolithic apps built in other languages. | ||||||||||||||||||||||||
| Ensure routing of channel messages and intent resolution are covered. | ||||||||||||||||||||||||
| --> | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This approach enables seamless communication between sub-agents in the same window. |
||||||||||||||||||||||||
| ## Raising Intents | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Raising an Intent is a method for an application to request functionality from another application and, if desired, defer the discovery and launching of the destination app to the Desktop Agent. | ||||||||||||||||||||||||
|
|
@@ -843,3 +853,7 @@ To facilitate context linking in such situations it is recommended that applicat | |||||||||||||||||||||||
| ### Originating App Metadata | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Optional metadata about each context message received, including the app that originated the message, SHOULD be provided by the desktop agent implementation to registered context handlers on all types of channel. As this metadata is optional, apps making use of it MUST handle cases where it is not provided. | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| ## Sub-applications | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| <!-- Add content describing how sub applications are created with their own identity --> | ||||||||||||||||||||||||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**