monacopilot 0.8.5 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +61 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +15 -16
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Arshad Yaseen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Monacopilot
|
|
2
|
+
|
|
3
|
+
Extended Monaco Editor with AI auto-completion and new themes for React.
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
[https://monacopilot.vercel.app/docs](https://monacopilot.vercel.app/docs)
|
|
8
|
+
|
|
9
|
+
## Contributing
|
|
10
|
+
|
|
11
|
+
#### Installation
|
|
12
|
+
|
|
13
|
+
The Monacopilot repository uses [PNPM Workspaces](https://pnpm.io/workspaces) and [Tsup](https://tsup.egoist.dev/). To install dependencies, run `pnpm install` in the project root directory.
|
|
14
|
+
|
|
15
|
+
#### Building the Package
|
|
16
|
+
|
|
17
|
+
To build the package, execute the following command:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Alternatively, `pnpm dev` to start the watch mode for automatic rebuilds on file changes.
|
|
24
|
+
|
|
25
|
+
#### Testing Monacopilot Locally
|
|
26
|
+
|
|
27
|
+
To test Monacopilot locally, first, you need to set the Groq API key as an environment variable in the `test` directory root within the `.env.local` file.
|
|
28
|
+
|
|
29
|
+
```plaintext
|
|
30
|
+
GROQ_API_KEY=your_api_key
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Then, run:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm dev:test
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Adding or Editing Themes
|
|
40
|
+
|
|
41
|
+
To add a theme, you can add the `.tmTheme` file of the theme you want to include to the `themes` directory at the root. If you wish to edit any theme, simply edit the `.tmTheme` file of the theme you want to modify. Then, run the following command after updating or adding.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pnpm generate-themes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
This command will read the theme you added/edited and automatically generate Monaco Editor-compatible theme data as if by magic. Additionally, it will automatically add the theme name to the theme type if you've added a new theme.
|
|
48
|
+
|
|
49
|
+
#### Contributing to the Documentation
|
|
50
|
+
|
|
51
|
+
If you wish to contribute to the documentation, use the following command:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pnpm dev:docs
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Edit the `.mdx` files in the docs directory, and the documentation will refresh instantly, reflecting your changes.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
We welcome contributions from the community to enhance Monacopilot's capabilities and make it even more powerful ❤️
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
|
|
6
6
|
type EditorBuiltInTheme = Theme;
|
|
7
7
|
|
|
8
|
-
declare const _default: readonly ["
|
|
8
|
+
declare const _default: readonly ["react", "angular", "vue.js", "express", "django", "flask", "spring boot", "asp.net core", "ruby on rails", "laravel", "symfony", "node.js", "bootstrap", "tailwind css", "svelte", "meteor", "kotlin", "swiftui", "xamarin", "react native", "flutter", "tensorflow", "pytorch", "keras", "scikit-learn", "fastapi", "graphql", "redux", "electron", "qt", "unity", "unreal engine", "apache hadoop", "apache spark", "apache kafka", "next.js", "nuxt.js", "gatsby", "hugo", "jekyll", "strapi", "drupal", "magento", "shopify", "woocommerce", "cordova", "ionic", "pandas", "numpy", "vuex", "three.js", "anime.js", "babylon.js", "backbone.js", "ember.js", "mocha", "jest", "enzyme", "chai", "sinon", "cypress", "selenium", "playwright", "puppeteer", "greensock (gsap)", "framer motion", "vuetify", "ant design", "material-ui", "foundation", "alpine.js", "akka", "vert.x", "quarkus", "helidon", "micronaut", "grails", "phoenix", "blazor", "tornado", "bottle", "falcon", "masonite", "zurb foundation", "bulma", "milligram", "stimulus", "mithril", "aurelia", "d3.js", "chart.js", "highcharts", "plotly.js", "leaflet", "openlayers", "thymeleaf", "mustache.js", "handlebars", "freemarker", "liquid"];
|
|
9
9
|
|
|
10
10
|
type endpointType = string;
|
|
11
11
|
type FrameworkType = (typeof _default)[number];
|
|
@@ -68,7 +68,7 @@ interface CompletionMetadata {
|
|
|
68
68
|
* such as the model ID. Defaults to `llama3-70b-8192` if not specified.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* ```
|
|
71
|
+
* ```typescript
|
|
72
72
|
* const copilot = new Copilot(process.env.GROQ_API_KEY, {
|
|
73
73
|
* model: 'llama3-70b-8192',
|
|
74
74
|
* });
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
|
|
6
6
|
type EditorBuiltInTheme = Theme;
|
|
7
7
|
|
|
8
|
-
declare const _default: readonly ["
|
|
8
|
+
declare const _default: readonly ["react", "angular", "vue.js", "express", "django", "flask", "spring boot", "asp.net core", "ruby on rails", "laravel", "symfony", "node.js", "bootstrap", "tailwind css", "svelte", "meteor", "kotlin", "swiftui", "xamarin", "react native", "flutter", "tensorflow", "pytorch", "keras", "scikit-learn", "fastapi", "graphql", "redux", "electron", "qt", "unity", "unreal engine", "apache hadoop", "apache spark", "apache kafka", "next.js", "nuxt.js", "gatsby", "hugo", "jekyll", "strapi", "drupal", "magento", "shopify", "woocommerce", "cordova", "ionic", "pandas", "numpy", "vuex", "three.js", "anime.js", "babylon.js", "backbone.js", "ember.js", "mocha", "jest", "enzyme", "chai", "sinon", "cypress", "selenium", "playwright", "puppeteer", "greensock (gsap)", "framer motion", "vuetify", "ant design", "material-ui", "foundation", "alpine.js", "akka", "vert.x", "quarkus", "helidon", "micronaut", "grails", "phoenix", "blazor", "tornado", "bottle", "falcon", "masonite", "zurb foundation", "bulma", "milligram", "stimulus", "mithril", "aurelia", "d3.js", "chart.js", "highcharts", "plotly.js", "leaflet", "openlayers", "thymeleaf", "mustache.js", "handlebars", "freemarker", "liquid"];
|
|
9
9
|
|
|
10
10
|
type endpointType = string;
|
|
11
11
|
type FrameworkType = (typeof _default)[number];
|
|
@@ -68,7 +68,7 @@ interface CompletionMetadata {
|
|
|
68
68
|
* such as the model ID. Defaults to `llama3-70b-8192` if not specified.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* ```
|
|
71
|
+
* ```typescript
|
|
72
72
|
* const copilot = new Copilot(process.env.GROQ_API_KEY, {
|
|
73
73
|
* model: 'llama3-70b-8192',
|
|
74
74
|
* });
|