forked from roseteromeo56/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_packages_copilot-chat_utils_copilot-chat-helpers_ts-6c57b1e90466.js.download
More file actions
149 lines (126 loc) · 32.5 KB
/
Copy pathui_packages_copilot-chat_utils_copilot-chat-helpers_ts-6c57b1e90466.js.download
File metadata and controls
149 lines (126 loc) · 32.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["ui_packages_copilot-chat_utils_copilot-chat-helpers_ts"],{58665:(e,t,o)=>{o.d(t,{L:()=>n,N:()=>a});let i=[{type:"task",context:"pull-request",persona:"author",iconName:"NoteIcon",name:"Proof read this pull request",prompt:`Use the following info about this pull request:
- File changes
- Pull request description
And then provide answers to the following questions in separate paragraphs:
- A concise representation and reasoning of the file changes.
- Whether the pull request description reflects the purpose of the file changes. Please suggest possible improvements and present them with examples.
- Whether there is any complexities or notable efforts, such as handling edge cases or reducing technical debt.
Additional guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"pull-request",persona:"reviewer",iconName:"NoteIcon",name:"Highlight focus areas for review in this pull request",prompt:`Use the following info about this pull request:
- File changes
- Pull request description
- Pull request reviews
- Pull request code comments
- Pull request issue comments
And then provide answers to the following questions in separate paragraphs:
- Provide insights on the scope and purpose of this pull request.
- Analyze the file changes and suggest risk areas that reviewers should focus on.
- Analyze the existing reviews and comments. Please highlight conversations that reviewers should pay attention to along with their links.
Additional Guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"pull-request",persona:"other",iconName:"NoteIcon",name:"Explain this pull request",prompt:`Use the following info about this pull request:
- File changes
- Pull request description
- Pull request reviews
- Pull request code comments
- Pull request issue comments
And then provide answers to the following questions in separate paragraphs:
- Provide a high-level overview of the purpose of this pull request.
- Summarize the impact and potential risks for the file changes of this pull request.
- Provide a high-leverl overview on all coversations in this pull request.
- Indicate whether this pull request has been approved.
Additional Guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"pull-request",persona:"author",iconName:"NoteIcon",name:"Catch me up on the reviews",prompt:`Use the following info about this pull request:
- Pull request description
- Pull request reviews
- Pull request code comments
- Pull request issue comments
- Pull request commits
Context:
- My latest commit refers to the most recent commit from me in this pull request.
1. First state my latest commit in this pull request use this format: "Your last commit was pushed at [timestamp]."
2. Ignore reviews and comments made earlier than the timestamp of my latest commit. Based on the remaining reviews and comments from other people in this pull request, provide answers to the following questions (use separate paragraphs with bold headings):
- **Pull Request Status**: indicate if this pull request is approved or merged. If not merged, state whether anyone has reviewed or commented in this pull request after my latest commit.
- **New Comments**: summarize the comments made by other people after my latest commit. Please highlight the ones that require further code changes or follow-ups.
Additional guidance:
- Output timestamp in a human-readable format.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"pull-request",persona:"reviewer",iconName:"NoteIcon",name:"Catch me up on the changes",prompt:`Use the following info about this pull request:
- File changes
- Pull request description
- Pull request reviews
- Pull request code comments
- Pull request issue comments
- Pull request commits
Context:
- My latest activity refers to the most recent review or comment from me in this pull request.
If I have not left any reviews or comments in this pull request:
1. First state that I have not reviewed this pull request.
2. Based on the commits, reviews, or comments in this pull request, provide answers to the following questions (use separate paragraphs with bold headings):
- **Pull Request Status**: indicate if this pull request is approved or merged. If not merged, state whether anyone has reviewed or commented in this pull request.
- **Code Changes**: Analyze the file changes and suggest risk areas that reviewers should focus on.
- **Key Comments**: Analyze the existing reviews and comments. Please highlight conversations that reviewers should pay attention to along with their links.
If I have left reviews or comments in this pull request:
1. First state my latest activity in this pull request use this format: "Your last [review or comment] was posted at [timestamp]."
2. Ignore commits, reviews, and comments made earlier than the timestamp of my latest activity. Based on the remaining commits, reviews, and comments from other people in this pull request, provide answers to the following questions (use separate paragraphs with bold headings):
- **Pull Request Status**: indicate if this pull request is approved or merged. If not merged, state whether anyone has committed, reviewed or commented in this pull request after my latest activity.
- **New Code Changes**: summarize the new code changes from the commits made after my latest activity.
- **New Comments**: summarize the new comments made by other people after my latest activity and highlight the ones I should pay attention to (with their links).
Additional guidance:
- Output timestamp in a human-readable format.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"pull-request",persona:"author",iconName:"FileCodeIcon",name:"Analyze build failures",prompt:`Use the following info about this pull request:
- File changes
- Pull request actions job logs
If all jobs passed successfully, stop there and report that there are no job errors.
Otherwise, provide answers to the following questions in separate paragraphs:
- Analyze the job failures with snippet of error logs. Please call out the type of failures (e.g. test failures, linting errors, compiler errors etc.).
- Suggest possible fixes for the job failures with examples. Please call out whether the failure is due to file changes from this pull request.
Additional guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`,intent:o(77342).wh.actionsAgent}],r=[{type:"task",context:"repository",iconName:"RepoIcon",name:"Tell me about this repository",prompt:`Please provide answers to the following questions in separate paragraphs:
- Provide insights on the purpose of this repository. Please also provide a summary of its README if it exists.
- Provide detailed analysis on features and technologies used in this repository if it contains implementation of software system of any kind. Otherwise, provide an analysis on contents of this repository instead.
Additional guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"repository",iconName:"RepoIcon",name:"How to get started with this repository",prompt:`Please provide answers to the following questions in separate paragraphs:
- Provide the step by step snippet of installation and usage sections from this repository if they are mentioned in its README. Otherwise, skip this question.
- Provide summary of contribution guidelines of this repository to help new contributors to get started. Make sure to include links to related articles.
- Provide a link to issues good for new contributors.
- Provide list of contributors and maintainers for new contributors to reach out to.
Additional guidance:
- Provide a heading for each paragraph, formatted in bold.
- Do not output the paragrah in final response if the question is skipped or ignored.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"repository",iconName:"RepoIcon",name:"Summarize activity for this repository in the last day",prompt:`Summarize all recent activity in this repository. "Recent activity" refers to the timeframe immediately preceding today's date. Use the GitHub global search API, filtered by 'repo:owner/repository' to return the following lists
- "Shipped" - PRs merged on or after yesterday's date
- "Pushed" - PRs pushed on or after yesterday's date, which are still open
- "Tracked" - Issues updated on or after yesterday's date
For each of these categories, produce a simple bulleted list, with a one-line description that includes the item number, along with the item title as a link. Each category header should include the total number of items, and a link to the complete results in the GitHub UI.`}],s=[{type:"task",context:"global",iconName:"GlobeIcon",name:"Help me get started with Copilot",prompt:`What can I do with GitHub Copilot Chat Assistant in github.com? To help me get started, please provide prompt suggestions and their expected output.
Additional guidance:
- Provide a heading for each paragraph, formatted in bold.
- Keep your analysis succinct and conversational.
- Do not repeat or list the context details in your final response.
- Provide a concise synthesis of the information, avoiding unnecessary repetition.`},{type:"task",context:"global",iconName:"GlobeIcon",name:"Summarize my activity in the last week",prompt:`Summarize my recent GitHub activity across all repositories. "Recent activity" refers to the timeframe immediately preceding today's date. Use the GitHub API to return the following lists
- "Pushed" - PRs created in the last 7 days, where I am the author, which are still open
- "Shipped" - PRs merged in the last 7 days, where I am the author
- "Tracked" - Issues created in the last 7 days, where I am the author
- "Contributed" - Issues where I have commented in the last 7 days
- "Reviewed" - PRs where I have commented or reviewed in the last 7 days
For each of these categories, produce a simple bulleted list, with a one-line description that includes the owner, repository, and item number in the format 'owner/repo#1234', along with the item title as a link. Each category header should include the total number of items, and a link to the complete results in the GitHub UI.`}],n={"pull-request":[...i,...r,...s],repository:[...r,...s],global:[...s]};function a(e,t){return void 0===e?[]:(n[e]||[]).filter(t=>t.context===e).filter(e=>void 0===t||!("persona"in e)||void 0===e.persona||e.persona===t).map(e=>({question:e.name,prompt:e.prompt,intent:e.intent,mode:"task-oriented-assistive"}))}},82610:(e,t,o)=>{let i;o.d(t,{CB:()=>I,DW:()=>b,F2:()=>Y,FF:()=>_,JP:()=>S,Jz:()=>c,MB:()=>g,NJ:()=>W,OC:()=>N,Od:()=>D,P:()=>T,Q7:()=>Q,QT:()=>d,Qt:()=>F,SI:()=>B,Sm:()=>O,Th:()=>V,UU:()=>U,VR:()=>p,Vb:()=>k,Xo:()=>R,Xs:()=>x,Y6:()=>q,Ye:()=>X,Z6:()=>L,Z8:()=>A,Zn:()=>K,Zs:()=>h,fG:()=>f,hV:()=>et,k4:()=>ee,lG:()=>E,lj:()=>H,mF:()=>y,mx:()=>Z,nN:()=>w,p:()=>v,pF:()=>m,qS:()=>z,rT:()=>$,x_:()=>j,yR:()=>M,yh:()=>J,z$:()=>P});var r=o(75632);o(4460);var s=o(5796),n=o(58665),a=o(2622),l=o(48247),u=o(56212);let c="/copilot",p=`${c}/spaces`,d=`${p}/new`,h="https://github.com/features/copilot#pricing",m="https://github.com/settings/billing/budgets",g="https://github.com/settings/billing",f=50,y=20,w={400:"This message could not be processed.",401:"You\u2019re not authorized to use Copilot.",403:"Access denied. You do not have permission to view this.",404:"Resource not found. Please try again.",408:"Your network connection was interrupted. Please try again.",413:"Message too large. Please shorten it or remove some references and try again.",429:"GitHub API rate limit exceeded. Please wait and try again."},_={extensionForbidden:"Copilot extensions can\u2019t be used in shared conversations. Please unshare the conversation and try again."},b="I'm sorry but there was an error. Please try again.";async function v({authToken:e,basePath:t,body:o,integrationId:i,method:r,path:s,streamingResponse:n=!1,realIp:a,signal:u,apiVersion:c}){try{let p={Authorization:e.authorizationHeaderValue,"copilot-integration-id":i};for(let e of(0,l.f)()){let t=e.split("="),o=t[0]?.replaceAll("_","-"),i="1";t.length>1&&(i=t[1]),p[`X-Experiment-${o}`]=i}c&&(p["X-GitHub-Api-Version"]=c),n&&(p["Content-Type"]="text/event-stream"),a&&(p["X-Real-IP"]=a);let d=await fetch(t+s,{method:r,mode:"cors",cache:"no-cache",headers:p,body:JSON.stringify(o),signal:u});if(d.ok)return d;return{status:d.status,ok:!1,error:w[d.status]||b,response:d}}catch{return{status:500,ok:!1,error:b}}}function q({role:e,content:t,mediaContent:o,error:i,references:r=[],thread:s,confirmationResponses:n,clientSkillConfirmations:a,clientToolResults:l,parentMessageID:u,skillOptions:c}){return{id:crypto.randomUUID(),threadID:s?.id||"temp",role:e,content:t,mediaContent:o,createdAt:new Date().toISOString(),error:i,references:r,skillExecutions:[],clientConfirmations:n,clientToolResults:l,confirmations:a,parentMessageID:u,clientSide:!0,skillOptions:c}}function I(e){return e?.name||"New conversation"}function P(e){switch(e.type){case"figma":return e.title||e.url;case"file":case"folder":return C(e);case"file-diff":return function(e){let t=e.headFile?.path??e.baseFile?.path,o=t?.split("/").pop()??"";return e.selectedRange&&e.selectedRange.start?e.selectedRange.end&&e.selectedRange.start!==e.selectedRange.end?`${o} ${e.selectedRange.start}-${e.selectedRange.end}`:`${o} ${e.selectedRange.start}`:o}(e);case"snippet":return function(e){if(e.title)return e.title;let t=e.path.split("/").pop(),o=`${e.range.start}-${e.range.end}`;return`${t}:${o}`}(e);case"repository":return`${e.ownerLogin}/${e.name}`;case"symbol":case"docset":case"image":case"thread-scoped-file":return e.name;case"commit":return e.message;case"pull-request":case"draft-issue":case"web-search-result":case"loading":return e.title;case"tree-comparison":return`${e.baseRevision.substring(0,5)}..${e.headRevision.substring(0,5)}`;case"third-party":return e.displayName;case"workspace-terminal-log":return"terminal log";case"text":return e.name?e.name:"text reference";case"repo-instructions":return"copilot-instructions.md";case"issue":case"discussion":return e?.title||e.number.toString();case"org-instructions":return e?.owner;default:return"unrecognized reference"}}function k(e){switch(e.type){case"figma":case"web-search-result":return`${e.type}-${e.url}`;case"file":return`${e.type}-${e.repoOwner}/${e.repoName}@${e.commitOID}:${e.path}`;case"folder":return`${e.type}-${e.repoOwner}/${e.repoName}@${e.ref}:${e.path}`;case"file-changes":return`${e.type}-${e.repository.owner}/${e.repository.owner}@${e.ref}:${e.path}`;case"file-diff":return`${e.type}:${e.baseFile?.path}@${e.baseFile?.commitOID}-${e.headFile?.path}@${e.headFile?.commitOID}##${e.selectedRange?.start}-${e.selectedRange?.end}`;case"snippet":return`${e.type}-${e.repoOwner}/${e.repoName}@${e.commitOID}:${e.path}#${e.range.start}-${e.range.end}`;case"repository":return`${e.type}-${e.id}-${e.ownerLogin}/${e.name}`;case"symbol":return`${e.type}-${e.kind}-${e.name}`;case"docset":case"text":case"thread-scoped-file":return`${e.type}-${e.name}`;case"commit":return`${e.type}-@${e.oid}-${e.repository.owner}/${e.repository.name}`;case"pull-request":return`${e.type}-${e.id}-${e.repository.ownerLogin}/${e.repository.name}`;case"web-search":return`${e.type}-${e.query}`;case"workspace-terminal-log":return`${e.type}-${e.repoOwner}/${e.repoName}@${e.pullRequestID}`;case"repo-instructions":return`${e.type}-.github/custom-instructions.md`;case"image":return`${e.type}-${e.id}/${e.name}`;case"issue":return`${e.repository.owner}/${e.repository.name}#${e.number}`;case"draft-issue":return`${e.type}-${e.tag}`;case"loading":return`${e.type}-${e.id}`;default:return""}}let G=()=>i??(i=new Set(["commit","discussion","figma","file","file-v2","file-diff","folder","issue",...a.W.draftIssueUI?["draft-issue"]:[],"pull-request","org-instructions","repo-instructions","snippet","symbol","third-party","web-search","web-search-result","image","thread-scoped-file","loading",...a.W.chatAutocomplete||a.W.topicsAsReferences?["repository"]:[],...a.W.topicsAsReferences?["docset"]:[]]));function $(e){let t=[];for(let o of e??[])if(G().has(o.type)){if("web-search"===o.type){for(let e of o.results){let o={...e,type:"web-search-result"};t.push(o)}continue}t.push(o)}return t}function S(e){switch(e.type){case"repository":return`/${e.ownerLogin}/${e.name}`;case"commit":return e.permalink;case"third-party":return e.displayUrl;case"snippet":return function(e){if(("file"===e.type||"snippet"===e.type)&&e.languageName&&"markdown"===e.languageName.toLowerCase()){let t=new URL(e.url,window.location.origin);return t.search="plain=1",t.href}return e.url}(e);case"issue":case"figma":case"file":case"file-diff":case"folder":case"pull-request":case"repo-instructions":case"org-instructions":case"web-search-result":return e.url;default:return"#"}}function x(e){return"#"!==e&&""!==e}function A(e){let t=e.path.split("/");return(t.pop(),0===t.length)?"/":t.join("/")}function R(e){return C(e)}function C(e){return e.path.split("/").pop()||e.path}function D(e,t){return{type:"file",url:new URL((0,s.IO9)({repo:t,commitish:t.refInfo.name,action:"blob",path:e}),window.location.origin).href,path:e,repoID:t.id,repoOwner:t.ownerLogin,repoName:t.name,ref:t.ref,commitOID:t.commitOID}}function N(e,t){return{type:"folder",url:new URL((0,s.IO9)({repo:t,commitish:t.refInfo.name,action:"tree",path:e}),window.location.origin).href,path:e,repoID:t.id,repoOwner:t.ownerLogin,repoName:t.name,ref:t.ref}}function O(e){return e.symbol?.fully_qualified_name||""}function F(e,t){let o=O(e);return{type:"symbol",kind:"suggestionSymbol",name:o,suggestionDefinitions:[{identOffset:{start:e.symbol?.ident_start||0,end:e.symbol?.ident_end||0},extentOffset:{start:e.symbol?.extent_start||0,end:e.symbol?.extent_end||0},kind:e.symbol?.kind||"",fullyQualifiedName:o,repoID:t.id,repoOwner:t.ownerLogin,repoName:t.name,ref:e.commit_sha,commitOID:e.commit_sha,path:e.path}],languageID:e.language_id}}function U(e){return{...e,type:"docset"}}function z(e){return{...e,type:"repository"}}function H(e){return{owner:`${e} Instructions`,type:"org-instructions",url:"https://docs.github.com/en/copilot/customizing-copilot/adding-organization-custom-instructions-for-github-copilot"}}function T(e){return!!e&&"sourceRepos"in e}function L(e){return!!e&&!T(e)}function W(e){return e.reduce((e,t)=>("customInstructions"in t&&Array.isArray(t.customInstructions)&&e.push(...t.customInstructions),e),[])}function E(e,t){return a.W.topicsAsReferences?W(t).length>0:e?.customInstructions&&e?.customInstructions?.length>0}function j(e,t){return e===t||void 0!==e&&void 0!==t&&k(e)===k(t)}function M(e,t){if(void 0===e&&void 0===t)return!0;if(void 0===e||void 0===t||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!j(e[o],t[o]))return!1;return!0}function B(e){return"file"===e.type}function K(e){return"snippet"===e.type}function V(e,t){if("user"===e.role)return{name:t,avatarURL:`/${t}.png`,type:"user"};if(e.references){let t=e.references.find(e=>"github.agent"===e.type);if(t)return{name:t.login,avatarURL:t.avatarURL,type:"agent"}}return{name:"Copilot",avatarURL:"",type:"copilot"}}function J(e){return"agent"===e.type}function Q(e){let t=e.map(e=>V(e,"")).filter(e=>e?.type==="agent"),o=new Map;for(let e of t)o.set(e.name,e);return Array.from(o.values())}function Y(e){let t=new Date(e.updatedAt).getTime();return Date.now()-t>144e5}function X(e){if(!e)return[];let t=new Set;return e.filter(e=>{let o=JSON.stringify(e.confirmation);return!t.has(o)&&(t.add(o),!0)})}function Z(e){let t="type"in e&&"string"==typeof e.type?e.type:"repository",o=t?t.replace(/(\.api|-v2)$/,"").toLowerCase():"default";if(!(0,r.G7)("copilot_task_oriented_assistive_prompts"))return{referenceType:t,suggestions:ee(u.y$[o]||u.y$.default).slice(0,3)};{let i="persona"in e&&"string"==typeof e.persona?e.persona:void 0,r=(0,n.N)(o,i),s=(0,n.N)("global"),a=r.length?r:u.y$[o];return a||(a=[...s,...s.length<3?ee(u.y$.default).slice(0,3-s.length):[]]),{referenceType:t,suggestions:ee(a).slice(0,3)}}}function ee(e){let t=e.slice();for(let e=t.length-1;e>0;e--){let o=Math.floor(Math.random()*(e+1)),i=t[e];t[e]=t[o],t[o]=i}return t}function et(e,t){let o=t.split(" "),i=`${e} said`;return"Timeline"===e&&(i="The following action was initiated"),`${i}: ${o.slice(0,o.length<7?o.length:7).join(" ")}`}},77342:(e,t,o)=>{o.d(t,{C6:()=>r,UH:()=>l,Wp:()=>u,hs:()=>n,mF:()=>a,wh:()=>i,xP:()=>s});let i={explain:"explain",conversation:"conversation",suggest:"suggest",discussFileDiff:"discuss-file-diff",explainFileDiff:"explain-file-diff",reviewPr:"review-pull-request",actionsAgent:"actions-agent"},r=["exception","filtered","publicCode","contentTooLarge","rateLimit","agentUnauthorized","agentRequest","networkError","multipleAgentsAttempt"],s=["bing-search","codesearch","semantic-code-search","lexical-code-search","kb-search","getfile","getfilechanges","getdiscussion","get-actions-job-logs","getalert","planskill","get-github-data","support-search","get-figma","codesearchagentskill"],n={Experiments:"experiements",Prompt:"prompt",None:"none"},a={Unlicensed:"unlicensed",LicensedFull:"licensed_full",LicensedLimited:"licensed_limited"},l={IndividualFree:"free",IndividualPro:"pro",IndividualProPlus:"pro_plus",Business:"business",Enterprise:"enterprise"},u="NULL_MESSAGE"},2622:(e,t,o)=>{o.d(t,{W:()=>r});var i=o(75632);let r=new class CopilotFeatureFlags{get customInstructions(){return(0,i.G7)("copilot_chat_custom_instructions")}get immersiveFigmaIntegration(){return(0,i.G7)("copilot_immersive_figma_integration")}get immersiveIssuePreview(){return(0,i.G7)("copilot_immersive_issue_preview")}get draftIssueTemplateRequiredIfBlankIssuesDisabled(){return(0,i.G7)("copilot_immersive_draft_issue_template_required")}get draftIssueUI(){return!(0,i.G7)("copilot_immersive_disable_draft_issue_ui")}get draftIssueMetadataLocation(){return(0,i.G7)("copilot_immersive_draft_issue_metadata_location")}get draftIssueTree(){return(0,i.G7)("copilot_immersive_draft_issue_tree")}get default41BaseModel(){return(0,i.G7)("copilot_default_4_1_base_model")}get default41PolicyEnabled(){return(0,i.G7)("copilot_default_4_1_policy_enabled")}get default41Preview(){return(0,i.G7)("copilot_default_4_1_preview")}get forceLegacyChatDefaultModel(){return(0,i.G7)("copilot_api_force_legacy_base_chat_model")}get domPageContext(){return(0,i.G7)("copilot_use_dom_page_context")}get useCAPIDefaultModel(){return(0,i.G7)("copilot_use_capi_default_model")}get immersiveServiceNavigation(){return this.customCopilots||this.pipesPlugin||this.workbenchPlugin}get copilotChatInterviewSurvey(){return(0,i.G7)("copilot_chat_interview_survey")}get newImmersiveReferencesUI(){return(0,i.G7)("copilot_new_immersive_references_ui")}get repoCustomInstructions(){return(0,i.G7)("copilot_chat_repo_custom_instructions")}get repoCustomInstructionsPreview(){return(0,i.G7)("copilot_chat_repo_custom_instructions_preview")}get attachImagesImmersive(){return(0,i.G7)("copilot_chat_attach_images")}get attachMultipleImages(){return(0,i.G7)("copilot_chat_attach_multiple_images")}get wholeAreaDragDrop(){return(0,i.G7)("copilot_chat_wholearea_dd")}get customCopilots(){return(0,i.G7)("copilot_custom_copilots")}get immersiveStructuredModelPicker(){return(0,i.G7)("copilot_immersive_structured_model_picker")}get customCopilotsRedesign(){return(0,i.G7)("copilot_custom_copilots_redesign")}get customCopilotsStarred(){return(0,i.G7)("copilot_custom_copilots_starred")}get customCopilotVisibility(){return(0,i.G7)("copilot_custom_copilots_visibility")}get customCopilotOrgOwned(){return(0,i.G7)("copilot_custom_copilots_org_owned")}get customCopilot128kWindow(){return(0,i.G7)("custom_copilots_128k_window")}get clientDOMSkills(){return(0,i.G7)("copilot_client_dom_skills")}get dotcomChatClientSideSkills(){return(0,i.G7)("dotcom_chat_client_side_skills")}get taskOrientedAssistive(){return(0,i.G7)("copilot_task_oriented_assistive")}get newInput(){return(0,i.G7)("copilot_chat_new_input")}get pipesPlugin(){return(0,i.G7)("copilot_pipes")}get workbenchPlugin(){return(0,i.G7)("copilot_workbench")}get workbenchVMAgentFlow(){return(0,i.G7)("copilot_workbench_vm_agent")}get workbenchVMAgentAttachments(){return(0,i.G7)("copilot_workbench_vm_agent_attachments")}get copilotChatOpeningThreadSwitch(){return(0,i.G7)("copilot_chat_opening_thread_switch")}get copilotReadSharedConversation(){return(0,i.G7)("copilot_read_shared_conversation")}get copilotDuplicateThread(){return(0,i.G7)("copilot_duplicate_thread")}get copilotShareActiveSubthread(){return(0,i.G7)("copilot_share_active_subthread")}get copilotSharedForbiddenError(){return(0,i.G7)("copilot_share_forbidden_error")}get copilotUIRefs(){return(0,i.G7)("copilot_ui_refs")}get dotcomChatFileUpload(){return(0,i.G7)("copilot_dotcom_chat_file_upload")&&(0,i.G7)("copilot_chat_attachments")}get copilotChatO1Tools(){return(0,i.G7)("copilot_api_tools_for_non_streaming_models")}get topicsAsReferences(){return(0,i.G7)("copilot_topics_as_references")}get bingGroundingServiceEnabled(){return(0,i.G7)("copilot_bing_search_use_azure_ai_agent_service")}get bingGroundingUIEnabled(){return(0,i.G7)("copilot_bing_search_use_grounding_ui")&&this.bingGroundingServiceEnabled}get copilotScrollContainerQuery(){return(0,i.G7)("copilot_scroll_container_query")}get showDeepCodeSearchButton(){return(0,i.G7)("copilot_show_deep_code_search_button")&&(0,i.G7)("copilot_api_search_agent_skill")}get headerButtonToImmersive(){return(0,i.G7)("copilot_header_button_to_immersive")}get deleteAllConversations(){return(0,i.G7)("copilot_delete_all_conversations")}get staffPromptDialog(){return(0,i.G7)("copilot_staff_prompt_dialog")}get chatAutocomplete(){return(0,i.G7)("copilot_chat_autocomplete")}get workbenchTerminal(){return(0,i.G7)("copilot_workbench_terminal")}get workbenchPreviewAnalytics(){return(0,i.G7)("copilot_workbench_preview_analytics")}get workbenchRefreshOnWsod(){return(0,i.G7)("copilot_workbench_refresh_on_wsod")}get workbenchShowConnectionReloadBanner(){return(0,i.G7)("copilot_workbench_connection_reload_banner")}get pasteTextFiles(){return(0,i.G7)("copilot_paste_text_files")}get workbenchIteratePanel(){return(0,i.G7)("copilot_workbench_iterate_panel")}get workbenchPublishDropdownV2(){return(0,i.G7)("copilot_workbench_publish_dropdown_v2")}get visionAllowedInClaude(){return(0,i.G7)("copilot_chat_vision_in_claude")}get premiumRequestQuotasEnabled(){return(0,i.G7)("copilot_premium_request_quotas")}get freeToPaidTelemetry(){return(0,i.G7)("copilot_free_to_paid_telem")}get freeToPaidSettingsUpgrade(){return(0,i.G7)("copilot_ftp_settings_upgrade")}get workbenchUserLimits(){return(0,i.G7)("copilot_workbench_user_limits")}get singleUserIteration(){return(0,i.G7)("copilot_spark_single_user_iteration")}get commitOnDefaultBranch(){return(0,i.G7)("spark_commit_on_default_branch")}get spacesIssuesPrsEnabled(){return(0,i.G7)("custom_copilots_issues_prs")}}},48247:(e,t,o)=>{o.d(t,{R:()=>n,f:()=>s});var i=o(80688);let r="copilot_experiments";function s(){let e=(0,i.A)("localStorage").getItem(r);return e?e.split(","):[]}function n(e){(0,i.A)("localStorage").setItem(r,e.join(","))}},56212:(e,t,o)=>{o.d(t,{Pe:()=>s,oo:()=>r,y$:()=>n});var i=o(77342);function r(e){let t=null!=e?`failing job ${e}`:"this failing job";return`Please find a solution for ${t}. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.`}let s={"Languages & frameworks":["Show me Python beginner projects.","Explain Java's garbage collection.","Start me off with Node.js.","Introduce me to Django best practices."],"Tools & environments":["Set up a local development environment.","Demonstrate the basics of Docker.","Get me started with Git.","Recommend popular VS Code extensions."],"Open source & contribution":["Suggest 10 open source projects I can contribute to.","Walk me through the GitHub Pull Request flow.","How do I start my own open source project?","Guide me through contributing to React's codebase."],"Best practices & concepts":["Explain the SOLID principles of object-oriented design.","Introduce me to test-driven development.","Describe common design patterns.","Teach me about RESTful API design."],"Web development":["Guide me through creating a basic website.","Introduce HTML5 and CSS3 features.","Explain responsive web design.","Start me off with Tailwind CSS."],"Databases & data":["Get me started with SQL queries.","Recommend popular NoSQL databases.","How to back up a database?","Give a walkthrough on normalizing a database."],"Algorithms & data structures":["Teach me basic sorting algorithms.","Explain binary search trees.","Introduce me to graph algorithms.","What is a hash table?"],"Security & authentication":["Give a guide on basic web security.","Show me how to set up OAuth.","What's a JSON Web Token?","Describe common encryption techniques."],"Mobile development":["Kickstart my journey with Android development.","Introduce me to iOS app basics.","Recommend cross-platform mobile frameworks.","Give a guide to the app store submission process."],"Cloud & DevOps":["Start me off with AWS basics.","How do I deploy apps on Azure DevOps?","Introduce me to Kubernetes.","What are the basics of continuous integration/continuous deployment?"],"Frontend frameworks & libraries":["Get me started with React.","Walk me through Vue.js essentials.","What are some best practices in Angular development?","How do I use Svelte for web apps?"],"Performance & optimization":["Teach me about website performance optimization.","Explain database indexing benefits.","What are some tips to optimize JavaScript code?","Give a guide to efficient API caching."]},n={repository:[{question:"What questions can I ask?"},{question:"What does this repository do?"},{question:"How should I get started exploring this repo?"},{question:"Can you tell me about this repository?"}],issue:[{question:"Summarize this issue."},{question:"What are the main points being discussed here?"},{question:"Suggest next steps for this issue."}],alert:[{question:"Summarize this alert."}],file:[{question:"Explain this file."},{question:"Summarize this file for me."},{question:"How can I improve this file?"}],"pull-request":[{question:"Summarize this pull request."},{question:"What commits are included in this PR?"},{question:"Can you tell me about the changes in this PR?"}],discussion:[{question:"Summarize this discussion."},{question:"Summarize the comments made by user in a discussion."},{question:"What were some key decisions made in this discussion?"}],job:[{question:"Why did this job fail?",intent:i.wh.actionsAgent},{question:"How can I fix this build?",intent:i.wh.actionsAgent}],default:[{question:"What questions can I ask?"},{question:"What is the best way to get started with Copilot?"},{question:"How do I clone this repository?"},{question:"How do I revert a commit?"},{question:"How do I add myself as a reviewer?"},{question:"How do I create a repository?"}],issues:[{question:"How do I create an issue?"},{question:"How do I filter issues by label?"},{question:"What are the most recently updated issues?"}],"pull-requests":[{question:"How do I create a pull request?"},{question:"How do I filter pull requests by label?"},{question:"How do I reopen a closed pull request?"}],discussions:[{question:"How do I start a new discussion?"},{question:"How do I filter discussions by category or tag?"},{question:"How do I search for a specific discussion?"}]}}}]);
//# sourceMappingURL=ui_packages_copilot-chat_utils_copilot-chat-helpers_ts-b410ea74bed6.js.map