Skip to content

Commit

Permalink
Initial project sync
Browse files Browse the repository at this point in the history
  • Loading branch information
breedloj committed Sep 11, 2024
1 parent b033c9e commit 3a32ba5
Show file tree
Hide file tree
Showing 204 changed files with 14,876 additions and 66 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/target/
packageInfo
**/node_modules/
**/.gradle/
**/.metadata/
59 changes: 0 additions & 59 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,59 +0,0 @@
# Contributing Guidelines

Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.


## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment


## Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

1. You are working against the latest source on the *main* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.

To send us a pull request, please:

1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).


## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.


## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
[email protected] with any additional questions or comments.


## Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.


## Licensing

See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
## My Project
## Amazon Q for Eclipse

TODO: Fill this README out!

Be sure to:

* Change the title in this README
* Edit your repository description on GitHub
To be written.

## Security

Expand Down
23 changes: 23 additions & 0 deletions feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="aws-plugin-q-feature"
label="AWS Q Plugin"
version="1.0.0.qualifier">

<description>
This is an example feature for the example plug-in implementation.
</description>

<license url="">
To be disclosed
</license>

<plugin
id="aws-plugin-q"

download-size="0"
install-size="0"
version="1.0.0.qualifier"

unpack="false"/>
</feature>
18 changes: 18 additions & 0 deletions feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>software.aws.toolkits.eclipse</groupId>
<artifactId>aws-plugin-q-group</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<groupId>software.aws.toolkits.eclipse</groupId>
<artifactId>aws-plugin-q-feature</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-feature</packaging>

</project>
70 changes: 70 additions & 0 deletions plugin/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="main/resources/|test/resources/" kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="target/dependency/animal-sniffer-annotations-1.9.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-constants-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-css-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-i18n-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-shared-resources-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-util-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcpg-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcprov-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcutil-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/checker-qual-3.42.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-codec-1.15.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-io-2.16.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-logging-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/error_prone_annotations-2.27.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/failureaccess-1.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/gson-2.11.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/guava-33.2.0-jre.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/httpclient-4.5.13.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/httpcore-4.4.13.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/icu4j-75.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/j2objc-annotations-3.0.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-annotations-2.17.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-core-2.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-databind-2.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jakarta.annotation-api-2.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jakarta.inject-api-2.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jna-5.14.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jna-platform-5.14.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jsoup-1.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jsr305-3.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.apache.felix.scr-2.2.10.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.eclipse.lsp4j.jsonrpc-0.23.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.eclipse.lsp4j-0.23.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.namespace.extender-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.namespace.implementation-1.0.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.component-1.5.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.event-1.4.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.prefs-1.1.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.util.function-1.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.util.promise-1.3.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/osgi.annotation-8.1.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xml-apis-ext-1.3.04.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xmlgraphics-commons-2.9.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xz-1.9.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
40 changes: 40 additions & 0 deletions plugin/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>aws-plugin-q</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
</projectDescription>
10 changes: 10 additions & 0 deletions plugin/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
68 changes: 68 additions & 0 deletions plugin/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: aws-plugin-q
Bundle-RequiredExecutionEnvironment: JavaSE-17
Bundle-SymbolicName: aws-plugin-q;singleton:=true
Bundle-Version: 1.0.0.qualifier
Automatic-Module-Name: aws.plugin.q
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.31.0",
org.eclipse.ui;bundle-version="3.205.100",
org.eclipse.core.resources;bundle-version="3.20.100",
org.eclipse.jface.text;bundle-version="3.25.100",
org.eclipse.jdt.ui;bundle-version="3.32.100",
org.eclipse.ui.genericeditor;bundle-version="1.3.400",
org.eclipse.lsp4e;bundle-version="0.16.1",
org.eclipse.lsp4j;bundle-version="0.23.1",
org.eclipse.lsp4j.jsonrpc;bundle-version="0.23.1",
com.google.gson;bundle-version="2.11.0",
org.eclipse.ui.ide;bundle-version="3.22.200",
org.eclipse.ui.workbench.texteditor;bundle-version="3.17.400"
Bundle-Classpath: .,
target/dependency/animal-sniffer-annotations-1.9.jar,
target/dependency/batik-constants-1.17.jar,
target/dependency/batik-css-1.17.jar,
target/dependency/batik-i18n-1.17.jar,
target/dependency/batik-shared-resources-1.17.jar,
target/dependency/batik-util-1.17.jar,
target/dependency/bcpg-jdk18on-1.78.1.jar,
target/dependency/bcprov-jdk18on-1.78.1.jar,
target/dependency/bcutil-jdk18on-1.78.1.jar,
target/dependency/checker-qual-3.42.0.jar,
target/dependency/commons-codec-1.15.jar,
target/dependency/commons-io-2.16.1.jar,
target/dependency/commons-logging-1.2.jar,
target/dependency/error_prone_annotations-2.27.0.jar,
target/dependency/failureaccess-1.0.2.jar,
target/dependency/gson-2.11.0.jar,
target/dependency/guava-33.2.0-jre.jar,
target/dependency/httpclient-4.5.13.jar,
target/dependency/httpcore-4.4.13.jar,
target/dependency/icu4j-75.1.jar,
target/dependency/j2objc-annotations-3.0.0.jar,
target/dependency/jackson-annotations-2.17.1.jar,
target/dependency/jackson-core-2.17.1.jar,
target/dependency/jackson-core-2.17.2.jar,
target/dependency/jackson-databind-2.17.1.jar,
target/dependency/jackson-databind-2.17.2.jar,
target/dependency/jakarta.annotation-api-2.1.1.jar,
target/dependency/jakarta.inject-api-2.0.1.jar,
target/dependency/jna-5.14.0.jar,
target/dependency/jna-platform-5.14.0.jar,
target/dependency/jsoup-1.17.2.jar,
target/dependency/jsr305-3.0.2.jar,
target/dependency/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar,
target/dependency/org.apache.felix.scr-2.2.10.jar,
target/dependency/org.eclipse.lsp4j-0.23.1.jar,
target/dependency/org.eclipse.lsp4j.jsonrpc-0.23.1.jar,
target/dependency/org.osgi.namespace.extender-1.0.1.jar,
target/dependency/org.osgi.namespace.implementation-1.0.0.jar,
target/dependency/org.osgi.service.component-1.5.1.jar,
target/dependency/org.osgi.service.event-1.4.1.jar,
target/dependency/org.osgi.service.prefs-1.1.2.jar,
target/dependency/org.osgi.util.function-1.2.0.jar,
target/dependency/org.osgi.util.promise-1.3.0.jar,
target/dependency/osgi.annotation-8.1.0.jar,
target/dependency/xml-apis-ext-1.3.04.jar,
target/dependency/xmlgraphics-commons-2.9.jar,
target/dependency/xz-1.9.jar
21 changes: 21 additions & 0 deletions plugin/auth/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Ralph Flora

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions plugin/auth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# tkc-auth
Proof-of-concept and initial implementation outside of Flare
36 changes: 36 additions & 0 deletions plugin/auth/diagrams/GetSsoToken flowchart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
```mermaid
flowchart TD
Start(["`GetSsoToken request`"])
Error(["`Return GetSsoToken error`"])
Start --> WhichSource{"`Which source?`"}
WhichSource -->|IAM Identity Center| IamIdentityCenter[/"`Use provided start URL, region, and scopes`"/]
WhichSource -->|AWS Builder ID| AwsBuilderId["`Use predefined start URL and region with provided scopes`"]
CreateClient[/"`Retrieve client from cache or register client and cache it`"/]
IamIdentityCenter --> CreateClient
AwsBuilderId --> CreateClient
FromSso[["`Use *fromSso* token provider to load and refresh cached token if possible`"]]
CreateClient --> FromSso
FromSso --> TokenFound{"`Cached/refreshed token found?`"}
TokenFound -->|Yes| AutoRefresh[["`If autoRefresh then enable auto-refresh of token`"]]
TokenFound -->|No| LoginOnInvalidToken{"`loginOnInvalidToken?`"}
LoginOnInvalidToken -->|No| Error
LoginOnInvalidToken -->|Yes| LoginSequence[["`Login sequence`"]]
LoginSequence --> LoginSucceeded{"`Did login succeed?`"}
LoginSucceeded -->|No| Error
LoginSucceeded -->|Yes| WriteCache["`Write token to cache`"]
WriteCache --> FromSso2{"`Does cached token load with *fromSso*?`"}
FromSso2 -->|Yes| AutoRefresh
FromSso2 -->|No| Error
AutoRefresh --> ChangeNotifications[["`If changeNotifications then enable change notifications for token`"]]
ChangeNotifications --> End
End(["`GetSsoToken result`"])
```
Loading

0 comments on commit 3a32ba5

Please sign in to comment.