@github/copilot 0.0.347-3 → 0.0.347-4

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/index.js CHANGED
@@ -1509,42 +1509,42 @@ Here are some examples of suggested tool calls. Follow them in tone and style.
1509
1509
  ${g$l(e)}
1510
1510
  ${E$l(l)}
1511
1511
  </examples>
1512
- `;return oo(a,"copilot_swe_agent_org_instructions_priority")?(r&&(d+=`
1513
- <repository_custom_instructions>
1514
- ${r.content}`,r.additionalInstructions&&(d+=`
1515
-
1516
- ${r.additionalInstructions.content}`),d+=`
1517
- </repository_custom_instructions>`),I&&(d+=`
1512
+ `;return oo(a,"copilot_swe_agent_org_instructions_priority")?(I&&(d+=`
1518
1513
 
1519
1514
  <organization_custom_instructions>
1520
1515
  ${I}
1521
1516
  </organization_custom_instructions>
1522
- `),I&&r&&(d+=`
1517
+ `),r&&(d+=`
1518
+ <repository_custom_instructions>
1519
+ ${r.content}`,r.additionalInstructions&&(d+=`
1520
+
1521
+ ${r.additionalInstructions.content}`),d+=`
1522
+ </repository_custom_instructions>`),I&&r&&(d+=`
1523
1523
 
1524
1524
  <instruction_priority>
1525
- Manually adhere to organization custom instructions and repository custom instructions. **ALWAYS** Check if organization instructions and repository instructions conflict or contradict in any way, and if they do, you must **ALWAYS** exclusively follow organization custom instructions exclusively where they differ. You must check to thoroughly ensure the output adheres to the organization custom instructions.
1525
+ Manually adhere to repository custom instructions and organization custom instructions. **ALWAYS** Check if repository instructions and organization instructions conflict or contradict in any way, and if they do, you must **ALWAYS** exclusively follow repository custom instructions exclusively where they differ. You must check to thoroughly ensure the output adheres to the repository custom instructions.
1526
1526
 
1527
1527
  Examples of conflicts:
1528
- - Org custom instructions: "use TypeScript" + Repo custom instructions: "use JavaScript" -> Organization custom instructions take precedence, therefore, we should use TypeScript.
1529
- - Org custom instructions: "use npm" + Repo custom instructions: "use yarn" -> Organization custom instructions take precedence, therefore, we should use npm.
1530
- - Org custom instructions: "prioritize internal docs" + Repo custom instructions: "check Stack Overflow first" -> Organization custom instructions take precedence, therefore, we should use internal docs.
1531
- - Org custom instructions: "respond with bullet points" + Repo custom instructions: "respond with paragraphs" -> Organization custom instructions take precedence, therefore, we should respond with bullet points.
1532
- - Org custom instructions: "use consistent naming conventions" + Repo custom instructions: "follow existing code style" -> Organization custom instructions take precedence, therefore, we should use consistent naming conventions.
1528
+ - Repository custom instructions: "use TypeScript" + Organization custom instructions: "use JavaScript" -> Repository custom instructions take precedence, therefore, we should use TypeScript.
1529
+ - Repository custom instructions: "use npm" + Organization custom instructions: "use yarn" -> Repository custom instructions take precedence, therefore, we should use npm.
1530
+ - Repository custom instructions: "prioritize internal docs" + Organization custom instructions: "check Stack Overflow first" -> Repository custom instructions take precedence, therefore, we should use internal docs.
1531
+ - Repository custom instructions: "respond with bullet points" + Organization custom instructions: "respond with paragraphs" -> Repository custom instructions take precedence, therefore, we should respond with bullet points.
1532
+ - Repository custom instructions: "use consistent naming conventions" + Organization custom instructions: "follow existing code style" -> Repository custom instructions take precedence, therefore, we should use consistent naming conventions.
1533
1533
 
1534
- **ALWAYS** apply this rule to ALL aspects of the instructions (language, tools, format, style, approach, etc.). Before continuing, thoroughly confirm that organization custom instructions are properly adhered to.
1534
+ **ALWAYS** apply this rule to ALL aspects of the instructions (language, tools, format, style, approach, etc.). Before continuing, thoroughly confirm that repository custom instructions are properly adhered to.
1535
1535
  </instruction_priority>
1536
- `)):(r&&(d+=`
1536
+ `)):(I&&(d+=`
1537
+
1538
+ Organization custom instructions:
1539
+ ${I}
1540
+ `),r&&(d+=`
1537
1541
 
1538
1542
  Custom instructions from user's \`${r.sourcePath}\`:
1539
1543
  ${r.content}
1540
1544
  `,r.additionalInstructions&&(d+=`
1541
1545
  Additional instructions from user's \`${r.additionalInstructions.sourcePath}\`:
1542
1546
  ${r.additionalInstructions.content}
1543
- `)),I&&(d+=`
1544
-
1545
- Organization custom instructions:
1546
- ${I}
1547
- `)),d+=e.parallel_tool_calls?`<tool_calling>
1547
+ `))),d+=e.parallel_tool_calls?`<tool_calling>
1548
1548
  ${y$l()}
1549
1549
  </tool_calling>`:"",d};var TOe=async(t,e,l,n={},r={},I={},a,s,o,d)=>{let u=o?void 0:await ROe(t,!0,l),b=Wye.type(),p=t===""?"":Lae(t),h=(await Promise.all(["git","curl","gh"].map(async y=>await HFt(y)!==null?y:null))).filter(y=>y!==null).join(", "),Z;if(XFt.has(l))Z=void 0;else try{let y=kFt.readdir(l,{withFileTypes:!0}).then(w=>w.filter(X=>!X.name.startsWith(".")).map(X=>{let J=Yj(l,X.name);return X.isDirectory()?J+A$l:J}).sort().join(`
1550
1550
  `)),Y=await bEt(y,500);typeof Y=="object"&&"timedOut"in Y?(XFt.add(l),Z=void 0):Z=Y}catch{Z=void 0}return`
@@ -1600,7 +1600,7 @@ Prefer ecosystem tools (npm init, pip install, refactoring tools, linters) over
1600
1600
  </using_ecosystem_tools>
1601
1601
 
1602
1602
  <style>
1603
- Only comment code that needs a bit of clarification. Do not comment otherwise.
1603
+ Only comment code that needs a bit of clarification. Do not comment otherwise.
1604
1604
  </style>
1605
1605
 
1606
1606
  </code_change_instructions>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@github/copilot",
3
3
  "description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
4
- "version": "0.0.347-3",
4
+ "version": "0.0.347-4",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "sdk/**/*"
35
35
  ],
36
36
  "buildMetadata": {
37
- "gitCommit": "52c790c"
37
+ "gitCommit": "4fc774d"
38
38
  },
39
39
  "dependencies": {
40
40
  "node-pty": "npm:@devm33/node-pty@^1.0.8",
package/sdk/index.js CHANGED
@@ -1123,42 +1123,42 @@ Here are some examples of suggested tool calls. Follow them in tone and style.
1123
1123
  ${RjI(e)}
1124
1124
  ${AjI(I)}
1125
1125
  </examples>
1126
- `;return pl(r,"copilot_swe_agent_org_instructions_priority")?(n&&(G+=`
1127
- <repository_custom_instructions>
1128
- ${n.content}`,n.additionalInstructions&&(G+=`
1129
-
1130
- ${n.additionalInstructions.content}`),G+=`
1131
- </repository_custom_instructions>`),c&&(G+=`
1126
+ `;return pl(r,"copilot_swe_agent_org_instructions_priority")?(c&&(G+=`
1132
1127
 
1133
1128
  <organization_custom_instructions>
1134
1129
  ${c}
1135
1130
  </organization_custom_instructions>
1136
- `),c&&n&&(G+=`
1131
+ `),n&&(G+=`
1132
+ <repository_custom_instructions>
1133
+ ${n.content}`,n.additionalInstructions&&(G+=`
1134
+
1135
+ ${n.additionalInstructions.content}`),G+=`
1136
+ </repository_custom_instructions>`),c&&n&&(G+=`
1137
1137
 
1138
1138
  <instruction_priority>
1139
- Manually adhere to organization custom instructions and repository custom instructions. **ALWAYS** Check if organization instructions and repository instructions conflict or contradict in any way, and if they do, you must **ALWAYS** exclusively follow organization custom instructions exclusively where they differ. You must check to thoroughly ensure the output adheres to the organization custom instructions.
1139
+ Manually adhere to repository custom instructions and organization custom instructions. **ALWAYS** Check if repository instructions and organization instructions conflict or contradict in any way, and if they do, you must **ALWAYS** exclusively follow repository custom instructions exclusively where they differ. You must check to thoroughly ensure the output adheres to the repository custom instructions.
1140
1140
 
1141
1141
  Examples of conflicts:
1142
- - Org custom instructions: "use TypeScript" + Repo custom instructions: "use JavaScript" -> Organization custom instructions take precedence, therefore, we should use TypeScript.
1143
- - Org custom instructions: "use npm" + Repo custom instructions: "use yarn" -> Organization custom instructions take precedence, therefore, we should use npm.
1144
- - Org custom instructions: "prioritize internal docs" + Repo custom instructions: "check Stack Overflow first" -> Organization custom instructions take precedence, therefore, we should use internal docs.
1145
- - Org custom instructions: "respond with bullet points" + Repo custom instructions: "respond with paragraphs" -> Organization custom instructions take precedence, therefore, we should respond with bullet points.
1146
- - Org custom instructions: "use consistent naming conventions" + Repo custom instructions: "follow existing code style" -> Organization custom instructions take precedence, therefore, we should use consistent naming conventions.
1142
+ - Repository custom instructions: "use TypeScript" + Organization custom instructions: "use JavaScript" -> Repository custom instructions take precedence, therefore, we should use TypeScript.
1143
+ - Repository custom instructions: "use npm" + Organization custom instructions: "use yarn" -> Repository custom instructions take precedence, therefore, we should use npm.
1144
+ - Repository custom instructions: "prioritize internal docs" + Organization custom instructions: "check Stack Overflow first" -> Repository custom instructions take precedence, therefore, we should use internal docs.
1145
+ - Repository custom instructions: "respond with bullet points" + Organization custom instructions: "respond with paragraphs" -> Repository custom instructions take precedence, therefore, we should respond with bullet points.
1146
+ - Repository custom instructions: "use consistent naming conventions" + Organization custom instructions: "follow existing code style" -> Repository custom instructions take precedence, therefore, we should use consistent naming conventions.
1147
1147
 
1148
- **ALWAYS** apply this rule to ALL aspects of the instructions (language, tools, format, style, approach, etc.). Before continuing, thoroughly confirm that organization custom instructions are properly adhered to.
1148
+ **ALWAYS** apply this rule to ALL aspects of the instructions (language, tools, format, style, approach, etc.). Before continuing, thoroughly confirm that repository custom instructions are properly adhered to.
1149
1149
  </instruction_priority>
1150
- `)):(n&&(G+=`
1150
+ `)):(c&&(G+=`
1151
+
1152
+ Organization custom instructions:
1153
+ ${c}
1154
+ `),n&&(G+=`
1151
1155
 
1152
1156
  Custom instructions from user's \`${n.sourcePath}\`:
1153
1157
  ${n.content}
1154
1158
  `,n.additionalInstructions&&(G+=`
1155
1159
  Additional instructions from user's \`${n.additionalInstructions.sourcePath}\`:
1156
1160
  ${n.additionalInstructions.content}
1157
- `)),c&&(G+=`
1158
-
1159
- Organization custom instructions:
1160
- ${c}
1161
- `)),G+=e.parallel_tool_calls?`<tool_calling>
1161
+ `))),G+=e.parallel_tool_calls?`<tool_calling>
1162
1162
  ${FjI()}
1163
1163
  </tool_calling>`:"",G};var wKe=async(t,e,I,l={},n={},c={},r,s,a,G)=>{let d=a?void 0:await Khe(t,!0,I),i=Hq.type(),b=t===""?"":Dhe(t),m=(await Promise.all(["git","curl","gh"].map(async u=>await FKe(u)!==null?u:null))).filter(u=>u!==null).join(", "),h;if(AKe.has(I))h=void 0;else try{let u=QKe.readdir(I,{withFileTypes:!0}).then(Y=>Y.filter(F=>!F.name.startsWith(".")).map(F=>{let g=N1(I,F.name);return F.isDirectory()?g+YjI:g}).sort().join(`
1164
1164
  `)),W=await mHe(u,500);typeof W=="object"&&"timedOut"in W?(AKe.add(I),h=void 0):h=W}catch{h=void 0}return`
@@ -1214,7 +1214,7 @@ Prefer ecosystem tools (npm init, pip install, refactoring tools, linters) over
1214
1214
  </using_ecosystem_tools>
1215
1215
 
1216
1216
  <style>
1217
- Only comment code that needs a bit of clarification. Do not comment otherwise.
1217
+ Only comment code that needs a bit of clarification. Do not comment otherwise.
1218
1218
  </style>
1219
1219
 
1220
1220
  </code_change_instructions>