@opensumi/cli-engine 3.9.1-next-1749783968.0 → 3.9.1-next-1749785072.0
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/lib/browser/browser.js +2 -2
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -32954,7 +32954,7 @@ The rules section has a number of possible rules/memories/context that you shoul
|
|
|
32954
32954
|
${b}
|
|
32955
32955
|
</user_specific_rule>
|
|
32956
32956
|
|
|
32957
|
-
</rules>`;return[I,w]}findApplicableRules(b){const A=this.rulesService.projectRules.filter(w=>!b.some(T=>T.path===w.path)),S=A.filter(w=>w.description),D=A.filter(w=>w.alwaysApply);return[...this.findFileMatchingRules(A),...S,...D]}findFileMatchingRules(b){const A=b.filter(I=>I.globs),S=this.attachedFiles.map(I=>I.uri.toString()),D=this.attachedFolders.map(I=>I.uri.toString());return A.filter(I=>{let w=I.globs;return(0,E.isString)(w)?w=this.normalizeGlobs(w.split(",")):w=this.normalizeGlobs(w||[]),w.map(R=>(0,p.parseGlob)(R)).some(R=>S.some(M=>R(M))||D.some(M=>R(M)))})}normalizeGlobs(b){return((0,E.isString)(b)?b.split(","):b||[]).map(S=>{const D=S.trim();return D.startsWith("**")?D:`**/${D}`})}serializeAttachedRules(b=[]){if(b=this.findApplicableRules(b),b.length===0)return[];const A=`
|
|
32957
|
+
</rules>`;return[I,w]}findApplicableRules(b){const A=this.rulesService.projectRules.filter(w=>!b.some(T=>T.path===w.path)),S=A.filter(w=>w.description&&!w.alwaysApply),D=A.filter(w=>w.alwaysApply);return[...this.findFileMatchingRules(A),...S,...D]}findFileMatchingRules(b){const A=b.filter(I=>I.globs&&!I.alwaysApply),S=this.attachedFiles.map(I=>I.uri.toString()),D=this.attachedFolders.map(I=>I.uri.toString());return A.filter(I=>{let w=I.globs;return(0,E.isString)(w)?w=this.normalizeGlobs(w.split(",")):w=this.normalizeGlobs(w||[]),w.map(R=>(0,p.parseGlob)(R)).some(R=>S.some(M=>R(M))||D.some(M=>R(M)))})}normalizeGlobs(b){return((0,E.isString)(b)?b.split(","):b||[]).map(S=>{const D=S.trim();return D.startsWith("**")?D:`**/${D}`})}serializeAttachedRules(b=[]){if(b=this.findApplicableRules(b),b.length===0)return[];const A=`
|
|
32958
32958
|
<rules_context>
|
|
32959
32959
|
|
|
32960
32960
|
Rules are extra documentation provided by the user to help the AI understand the codebase.
|
|
@@ -32962,7 +32962,7 @@ Use them if they seem useful to the users most recent query, but do not use them
|
|
|
32962
32962
|
|
|
32963
32963
|
`,S=b.map(I=>{var w;return`Rule Name: ${((w=I.path.split("/").pop())===null||w===void 0?void 0:w.replace(/.md(c)?$/,""))||"Unnamed Rule"}
|
|
32964
32964
|
Description:
|
|
32965
|
-
${I.description||I.content}`}).join(`
|
|
32965
|
+
${I.alwaysApply?I.content:I.description||I.content}`}).join(`
|
|
32966
32966
|
|
|
32967
32967
|
`);return[A,S,`
|
|
32968
32968
|
</rules_context>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/cli-engine",
|
|
3
|
-
"version": "3.9.1-next-
|
|
3
|
+
"version": "3.9.1-next-1749785072.0",
|
|
4
4
|
"description": "Integration engine runtime for opensumi-cli and opensumi extension",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@koa/cors": "^5.0.0",
|
|
28
28
|
"@opensumi/di": "^1.8.0",
|
|
29
|
-
"@opensumi/ide-core-browser": "3.9.1-next-
|
|
30
|
-
"@opensumi/ide-core-common": "3.9.1-next-
|
|
31
|
-
"@opensumi/ide-core-node": "3.9.1-next-
|
|
32
|
-
"@opensumi/ide-express-file-server": "3.9.1-next-
|
|
33
|
-
"@opensumi/ide-extension": "3.9.1-next-
|
|
34
|
-
"@opensumi/ide-i18n": "3.9.1-next-
|
|
35
|
-
"@opensumi/ide-main-layout": "3.9.1-next-
|
|
36
|
-
"@opensumi/ide-startup": "3.9.1-next-
|
|
29
|
+
"@opensumi/ide-core-browser": "3.9.1-next-1749785072.0",
|
|
30
|
+
"@opensumi/ide-core-common": "3.9.1-next-1749785072.0",
|
|
31
|
+
"@opensumi/ide-core-node": "3.9.1-next-1749785072.0",
|
|
32
|
+
"@opensumi/ide-express-file-server": "3.9.1-next-1749785072.0",
|
|
33
|
+
"@opensumi/ide-extension": "3.9.1-next-1749785072.0",
|
|
34
|
+
"@opensumi/ide-i18n": "3.9.1-next-1749785072.0",
|
|
35
|
+
"@opensumi/ide-main-layout": "3.9.1-next-1749785072.0",
|
|
36
|
+
"@opensumi/ide-startup": "3.9.1-next-1749785072.0",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"ejs": "^3.1.7",
|
|
39
39
|
"ip": "^1.1.8",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"webpack": "^5.90.0",
|
|
73
73
|
"webpack-cli": "^5.1.4"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "70c7387c379f38d4ec93a335d7bdefadf57e45ee"
|
|
76
76
|
}
|