monacopilot 0.8.16 → 0.8.18

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/dist/index.d.mts CHANGED
@@ -9,7 +9,7 @@ type EndpointType = string;
9
9
  type FilenameType = string;
10
10
  type FrameworkType = 'react' | 'angular' | 'vue.js' | 'express' | 'django' | 'flask' | 'spring boot' | 'asp.net core' | 'ruby on rails' | 'laravel' | 'node.js' | 'react native' | 'flutter' | 'tensorflow' | 'pytorch' | 'keras' | 'scikit-learn' | 'fastapi' | 'graphql' | 'redux' | 'electron' | 'next.js' | 'nuxt.js' | 'gatsby' | 'shopify' | 'woocommerce' | 'pandas' | 'numpy' | 'three.js' | 'jest' | 'cypress' | 'selenium' | 'playwright' | 'puppeteer' | 'material-ui' | 'vuetify' | 'ant design';
11
11
  type CompletionSpeedType = 'little-faster' | 'normal';
12
- type ExternalContextType = Array<{
12
+ type ExternalContextType = {
13
13
  /**
14
14
  * The relative path from the current editing code in the editor to an external file.
15
15
  *
@@ -23,11 +23,11 @@ type ExternalContextType = Array<{
23
23
  * The content of the external file as a string.
24
24
  */
25
25
  content: string;
26
- }>;
26
+ }[];
27
27
  /**
28
28
  * Themes available for the Rich Monaco Editor.
29
29
  */
30
- type ThemeType = 'codesandbox-dark' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai';
30
+ type ThemeType = 'codesandbox-dark' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai' | 'nord' | 'one-dark-pro-darker' | 'one-monokai';
31
31
  interface EditorProps extends EditorProps$1 {
32
32
  /**
33
33
  * The name of the file you are editing. This is used to provide more relevant completions based on the file's purpose.
@@ -70,7 +70,7 @@ type GroqCompletion = ChatCompletion & {
70
70
  interface CompletionRequestParams {
71
71
  completionMetadata: CompletionMetadata;
72
72
  }
73
- type CompletionMode = 'fill-in-the-middle' | 'continuation';
73
+ type CompletionMode = 'fill-in-the-middle' | 'completion';
74
74
  interface CompletionMetadata {
75
75
  language: string | undefined;
76
76
  filename: FilenameType | undefined;
@@ -93,12 +93,12 @@ interface CopilotOptions {
93
93
  *
94
94
  * @param {string} apiKey - The Groq API key.
95
95
  * @param {CopilotOptions} [options] - Optional parameters to configure the completion model,
96
- * such as the model ID. Defaults to `llama3-70b-8192` if not specified.
96
+ * such as the model ID. Defaults to `llama` if not specified.
97
97
  *
98
98
  * @example
99
99
  * ```typescript
100
100
  * const copilot = new Copilot(process.env.GROQ_API_KEY, {
101
- * model: 'llama3-70b-8192',
101
+ * model: 'llama',
102
102
  * });
103
103
  * ```
104
104
  */
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ type EndpointType = string;
9
9
  type FilenameType = string;
10
10
  type FrameworkType = 'react' | 'angular' | 'vue.js' | 'express' | 'django' | 'flask' | 'spring boot' | 'asp.net core' | 'ruby on rails' | 'laravel' | 'node.js' | 'react native' | 'flutter' | 'tensorflow' | 'pytorch' | 'keras' | 'scikit-learn' | 'fastapi' | 'graphql' | 'redux' | 'electron' | 'next.js' | 'nuxt.js' | 'gatsby' | 'shopify' | 'woocommerce' | 'pandas' | 'numpy' | 'three.js' | 'jest' | 'cypress' | 'selenium' | 'playwright' | 'puppeteer' | 'material-ui' | 'vuetify' | 'ant design';
11
11
  type CompletionSpeedType = 'little-faster' | 'normal';
12
- type ExternalContextType = Array<{
12
+ type ExternalContextType = {
13
13
  /**
14
14
  * The relative path from the current editing code in the editor to an external file.
15
15
  *
@@ -23,11 +23,11 @@ type ExternalContextType = Array<{
23
23
  * The content of the external file as a string.
24
24
  */
25
25
  content: string;
26
- }>;
26
+ }[];
27
27
  /**
28
28
  * Themes available for the Rich Monaco Editor.
29
29
  */
30
- type ThemeType = 'codesandbox-dark' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai';
30
+ type ThemeType = 'codesandbox-dark' | 'dracula-soft' | 'dracula' | 'github-dark-dimmed' | 'github-dark' | 'github-light' | 'monokai' | 'nord' | 'one-dark-pro-darker' | 'one-monokai';
31
31
  interface EditorProps extends EditorProps$1 {
32
32
  /**
33
33
  * The name of the file you are editing. This is used to provide more relevant completions based on the file's purpose.
@@ -70,7 +70,7 @@ type GroqCompletion = ChatCompletion & {
70
70
  interface CompletionRequestParams {
71
71
  completionMetadata: CompletionMetadata;
72
72
  }
73
- type CompletionMode = 'fill-in-the-middle' | 'continuation';
73
+ type CompletionMode = 'fill-in-the-middle' | 'completion';
74
74
  interface CompletionMetadata {
75
75
  language: string | undefined;
76
76
  filename: FilenameType | undefined;
@@ -93,12 +93,12 @@ interface CopilotOptions {
93
93
  *
94
94
  * @param {string} apiKey - The Groq API key.
95
95
  * @param {CopilotOptions} [options] - Optional parameters to configure the completion model,
96
- * such as the model ID. Defaults to `llama3-70b-8192` if not specified.
96
+ * such as the model ID. Defaults to `llama` if not specified.
97
97
  *
98
98
  * @example
99
99
  * ```typescript
100
100
  * const copilot = new Copilot(process.env.GROQ_API_KEY, {
101
- * model: 'llama3-70b-8192',
101
+ * model: 'llama',
102
102
  * });
103
103
  * ```
104
104
  */