@deriv-com/fe-mcp-servers 0.0.6 → 0.0.7
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/shift-ai/README.md
CHANGED
|
@@ -134,8 +134,8 @@ shift-ai/
|
|
|
134
134
|
|
|
135
135
|
| Language/File Type | Wrapper Format |
|
|
136
136
|
|----------------------- |-----------------------------------|
|
|
137
|
-
| JavaScript/TypeScript | `// [AI]`...`// [/AI]` |
|
|
138
|
-
| Python/Shell/Ruby | `# [AI]`...`# [/AI]` |
|
|
137
|
+
| JavaScript/TypeScript/Dart/Java/C/C++/C#/PHP/Go/Rust/Swift/Kotlin/Scala | `// [AI]`...`// [/AI]` |
|
|
138
|
+
| Python/Shell/Ruby/PERL/R/YAML/TOML | `# [AI]`...`# [/AI]` |
|
|
139
139
|
| CSS/SCSS/Sass/Less | `/* [AI]`...`[/AI] */` |
|
|
140
140
|
| HTML/XML/Markdown | `<!-- [AI] -->`...`<!-- [/AI] -->` |
|
|
141
141
|
|
|
@@ -165,3 +165,36 @@ def fibonacci(n):
|
|
|
165
165
|
# [/AI]
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
+
### Dart
|
|
169
|
+
```dart
|
|
170
|
+
// [AI]
|
|
171
|
+
List<int> fibonacci(int n) {
|
|
172
|
+
if (n <= 0) return [];
|
|
173
|
+
if (n == 1) return [0];
|
|
174
|
+
|
|
175
|
+
List<int> sequence = [0, 1];
|
|
176
|
+
for (int i = 2; i < n; i++) {
|
|
177
|
+
sequence.add(sequence[i - 1] + sequence[i - 2]);
|
|
178
|
+
}
|
|
179
|
+
return sequence;
|
|
180
|
+
}
|
|
181
|
+
// [/AI]
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### PERL
|
|
185
|
+
```perl
|
|
186
|
+
# [AI]
|
|
187
|
+
sub fibonacci {
|
|
188
|
+
my $n = shift;
|
|
189
|
+
return [] if $n <= 0;
|
|
190
|
+
return [0] if $n == 1;
|
|
191
|
+
|
|
192
|
+
my @sequence = (0, 1);
|
|
193
|
+
for my $i (2..$n-1) {
|
|
194
|
+
push @sequence, $sequence[$i-1] + $sequence[$i-2];
|
|
195
|
+
}
|
|
196
|
+
return \@sequence;
|
|
197
|
+
}
|
|
198
|
+
# [/AI]
|
|
199
|
+
```
|
|
200
|
+
|
|
@@ -30,8 +30,8 @@ All code suggestions from any AI tool or agent must be wrapped in simple comment
|
|
|
30
30
|
|
|
31
31
|
| Language/File Type | Wrapper Format |
|
|
32
32
|
|------------------------|-----------------------------------|
|
|
33
|
-
| JavaScript/TypeScript | // [AI]\\ncode here\\n// [/AI] |
|
|
34
|
-
| Python/Shell/Ruby | # [AI]\\ncode here\\n# [/AI] |
|
|
33
|
+
| JavaScript/TypeScript/Dart/Java/C/C++/C#/PHP/Go/Rust/Swift/Kotlin/Scala | // [AI]\\ncode here\\n// [/AI] |
|
|
34
|
+
| Python/Shell/Ruby/PERL/R/YAML/TOML | # [AI]\\ncode here\\n# [/AI] |
|
|
35
35
|
| CSS/SCSS/Sass/Less | /* [AI] */\\ncode here\\n/* [/AI] */ |
|
|
36
36
|
| HTML/XML/Markdown | <!-- [AI] -->\\ncode here\\n<!-- [/AI] --> |
|
|
37
37
|
|
package/dist/shift-ai/src/mcp.js
CHANGED
|
@@ -20,8 +20,8 @@ All code suggestions from any AI tool or agent must be wrapped in simple comment
|
|
|
20
20
|
|
|
21
21
|
| Language/File Type | Wrapper Format |
|
|
22
22
|
|------------------------|-----------------------------------|
|
|
23
|
-
| JavaScript/TypeScript | // [AI]\\ncode here\\n// [/AI] |
|
|
24
|
-
| Python/Shell/Ruby | # [AI]\\ncode here\\n# [/AI] |
|
|
23
|
+
| JavaScript/TypeScript/Dart/Java/C/C++/C#/PHP/Go/Rust/Swift/Kotlin/Scala | // [AI]\\ncode here\\n// [/AI] |
|
|
24
|
+
| Python/Shell/Ruby/PERL/R/YAML/TOML | # [AI]\\ncode here\\n# [/AI] |
|
|
25
25
|
| CSS/SCSS/Sass/Less | /* [AI] */\\ncode here\\n/* [/AI] */ |
|
|
26
26
|
| HTML/XML/Markdown | <!-- [AI] -->\\ncode here\\n<!-- [/AI] --> |
|
|
27
27
|
|