@github/copilot 0.0.334-5 → 0.0.334-6

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
@@ -1100,7 +1100,7 @@ ${I.content}
1100
1100
  Additional instructions from user's \`${I.additionalInstructions.sourcePath}\`:
1101
1101
  ${I.additionalInstructions.content}
1102
1102
  `)),a+=e.parallel_tool_calls?`<tool_calling>
1103
- ${eit(e)}
1103
+ ${eit()}
1104
1104
  </tool_calling>`:"",a};var qct=async(t,e,l,I={},n={},r={})=>{let a=await VCe(t,!0),s=Kct.type(),o=t===""?"":S$(t),d=(await Promise.all(["git","curl","gh"].map(async u=>await Pct(u)!==null?u:null))).filter(u=>u!==null).join(", ");return`
1105
1105
  You are the GitHub Copilot CLI, a terminal based coding agent built by GitHub.
1106
1106
 
@@ -1175,7 +1175,19 @@ You *must* avoid doing any of these things you cannot or must not do, and also *
1175
1175
  * When replying to the user, offer crisp, concise responses.
1176
1176
  </tips_and_tricks>
1177
1177
 
1178
- ${KWl(I,n,r,a)}`.trim()};var $ct=t=>`Here is the url of a screenshot: ${t}. You can use it to include in the PR description if it is suitable for the task.`,eit=t=>t.parallel_tool_calls?"You have the capability to call multiple tools in a single response. For maximum efficiency, whenever you need to perform multiple independent operations, ALWAYS invoke all relevant tools simultaneously rather than sequentially. Especially when exploring repository, reading files, viewing directories, validating changes or replying to comments.":"",qWl=(t={})=>t.splitEditingTools?`<str_replace>
1178
+ <avoid_excessive_markdown_and_bullet_points>
1179
+ When communicating to the user, explaining in between tool calls or summarizing your progress, use concise, clear, flowing prose with complete paragraphs and sentences.
1180
+ Avoid using bullet points, numbered lists, or excessive markdown formatting unless the user explicitly requests a list or ranking.
1181
+ Instead of listing items, incorporate them naturally into sentences.
1182
+ Use standard paragraph breaks for organization and reserve markdown primarily for code blocks and simple sentence case headings.
1183
+
1184
+ There is an important exception: lists are appropriate when the user specifically asks for a list or ranking, or when presenting truly discret items where a list format is the best option.
1185
+ When in doubt, choose prose over bullets. NEVER output a series of overly short bullet points.
1186
+ </avoid_excessive_markdown_and_bullet_points>
1187
+
1188
+ ${KWl(I,n,r,a)}`.trim()};var $ct=t=>`Here is the url of a screenshot: ${t}. You can use it to include in the PR description if it is suitable for the task.`,eit=()=>`You have the capability to call multiple tools in a single response. For maximum efficiency, whenever you need to perform multiple independent operations, ALWAYS call tools simultaneously whenever the actions can be done in parallel rather than sequentially.
1189
+ Especially when exploring repository, searching, reading files, viewing directories, validating changes, reporting progress or replying to comments. For Example you can read 3 different files parallelly, or report progress and edit different files in parallel. Always report progress in parallel with other tool calls that follow it as it does not depend on the result of those calls.
1190
+ However, if some tool calls depend on previous calls to inform dependent values like the parameters, do NOT call these tools in parallel and instead call them sequentially.`,qWl=(t={})=>t.splitEditingTools?`<str_replace>
1179
1191
  You can use the **str_replace** tool to batch edits to the same file in a single response. The tool will apply edits in sequential order, removing the risk of a reader/writer conflict.
1180
1192
  <example>
1181
1193
  If renaming a variable in multiple places, call **str_replace** multiple times in the same response, once for each instance of the variable name.
@@ -1211,7 +1223,7 @@ old_str: "console.log("duration was \${elapsedTimeMs}ms"
1211
1223
  </str_replace>`:"",obe=(t,e={})=>{let l=t;return e.parallel_tool_calls&&(l+=`
1212
1224
 
1213
1225
  <reminder>
1214
- ${eit(e)}
1226
+ ${eit()}
1215
1227
  </reminder>`),e.vision&&(l+=`
1216
1228
 
1217
1229
  <reminder>
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.334-5",
4
+ "version": "0.0.334-6",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "sdk/**/*"
34
34
  ],
35
35
  "buildMetadata": {
36
- "gitCommit": "855a060"
36
+ "gitCommit": "cb20f47"
37
37
  },
38
38
  "dependencies": {
39
39
  "node-pty": "npm:@devm33/node-pty@^1.0.8",
package/sdk/index.js CHANGED
@@ -842,7 +842,7 @@ ${l.content}
842
842
  Additional instructions from user's \`${l.additionalInstructions.sourcePath}\`:
843
843
  ${l.additionalInstructions.content}
844
844
  `)),a+=I.parallel_tool_calls?`<tool_calling>
845
- ${F9I(I)}
845
+ ${F9I()}
846
846
  </tool_calling>`:"",a};var R9I=async(t,I,e,l={},c={},n={})=>{let a=await pGI(t,!0),s=V9I.type(),r=t===""?"":ZGI(t),o=(await Promise.all(["git","curl","gh"].map(async b=>await Y9I(b)!==null?b:null))).filter(b=>b!==null).join(", ");return`
847
847
  You are the GitHub Copilot CLI, a terminal based coding agent built by GitHub.
848
848
 
@@ -917,7 +917,19 @@ You *must* avoid doing any of these things you cannot or must not do, and also *
917
917
  * When replying to the user, offer crisp, concise responses.
918
918
  </tips_and_tricks>
919
919
 
920
- ${SHe(l,c,n,a)}`.trim()};var y9I=t=>`Here is the url of a screenshot: ${t}. You can use it to include in the PR description if it is suitable for the task.`,F9I=t=>t.parallel_tool_calls?"You have the capability to call multiple tools in a single response. For maximum efficiency, whenever you need to perform multiple independent operations, ALWAYS invoke all relevant tools simultaneously rather than sequentially. Especially when exploring repository, reading files, viewing directories, validating changes or replying to comments.":"",OHe=(t={})=>t.splitEditingTools?`<str_replace>
920
+ <avoid_excessive_markdown_and_bullet_points>
921
+ When communicating to the user, explaining in between tool calls or summarizing your progress, use concise, clear, flowing prose with complete paragraphs and sentences.
922
+ Avoid using bullet points, numbered lists, or excessive markdown formatting unless the user explicitly requests a list or ranking.
923
+ Instead of listing items, incorporate them naturally into sentences.
924
+ Use standard paragraph breaks for organization and reserve markdown primarily for code blocks and simple sentence case headings.
925
+
926
+ There is an important exception: lists are appropriate when the user specifically asks for a list or ranking, or when presenting truly discret items where a list format is the best option.
927
+ When in doubt, choose prose over bullets. NEVER output a series of overly short bullet points.
928
+ </avoid_excessive_markdown_and_bullet_points>
929
+
930
+ ${SHe(l,c,n,a)}`.trim()};var y9I=t=>`Here is the url of a screenshot: ${t}. You can use it to include in the PR description if it is suitable for the task.`,F9I=()=>`You have the capability to call multiple tools in a single response. For maximum efficiency, whenever you need to perform multiple independent operations, ALWAYS call tools simultaneously whenever the actions can be done in parallel rather than sequentially.
931
+ Especially when exploring repository, searching, reading files, viewing directories, validating changes, reporting progress or replying to comments. For Example you can read 3 different files parallelly, or report progress and edit different files in parallel. Always report progress in parallel with other tool calls that follow it as it does not depend on the result of those calls.
932
+ However, if some tool calls depend on previous calls to inform dependent values like the parameters, do NOT call these tools in parallel and instead call them sequentially.`,OHe=(t={})=>t.splitEditingTools?`<str_replace>
921
933
  You can use the **str_replace** tool to batch edits to the same file in a single response. The tool will apply edits in sequential order, removing the risk of a reader/writer conflict.
922
934
  <example>
923
935
  If renaming a variable in multiple places, call **str_replace** multiple times in the same response, once for each instance of the variable name.
@@ -953,7 +965,7 @@ old_str: "console.log("duration was \${elapsedTimeMs}ms"
953
965
  </str_replace>`:"",Q9I=(t,I={})=>{let e=t;return I.parallel_tool_calls&&(e+=`
954
966
 
955
967
  <reminder>
956
- ${F9I(I)}
968
+ ${F9I()}
957
969
  </reminder>`),I.vision&&(e+=`
958
970
 
959
971
  <reminder>