copilot-usage-studio 0.2.3 → 0.3.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/CHANGELOG.md +8 -0
- package/data/github-copilot-pricing.json +66 -3
- package/dist/copilot-usage-studio/browser/chunk-2VFTKZDH.js +1 -0
- package/dist/copilot-usage-studio/browser/chunk-4SRW5HAB.js +1 -0
- package/dist/copilot-usage-studio/browser/chunk-5FL3PHQS.js +1 -0
- package/dist/copilot-usage-studio/browser/{chunk-WWU6QMJC.js → chunk-5KYZJDMG.js} +1 -1
- package/dist/copilot-usage-studio/browser/chunk-6AXGMNCK.js +1 -0
- package/dist/copilot-usage-studio/browser/{chunk-QMNOUQ2X.js → chunk-OKFPCYAJ.js} +1 -1
- package/dist/copilot-usage-studio/browser/{chunk-23NLHIOR.js → chunk-QJ4KZ5PT.js} +1 -1
- package/dist/copilot-usage-studio/browser/{chunk-7I2HDBC6.js → chunk-ST4Z2MU5.js} +1 -1
- package/dist/copilot-usage-studio/browser/{chunk-RTOXDOOI.js → chunk-YCZAIDR7.js} +1 -1
- package/dist/copilot-usage-studio/browser/index.html +1 -1
- package/dist/copilot-usage-studio/browser/{main-XFPP45VE.js → main-GTYMLVSP.js} +1 -1
- package/docs/pricing.md +3 -3
- package/lib/local-runtime.mjs +13 -0
- package/package.json +1 -1
- package/scripts/scanner-customization-inventory.mjs +23 -2
- package/dist/copilot-usage-studio/browser/chunk-5JYQJM5G.js +0 -1
- package/dist/copilot-usage-studio/browser/chunk-TICIZRSM.js +0 -1
- package/dist/copilot-usage-studio/browser/chunk-XMVGLQQH.js +0 -1
package/docs/pricing.md
CHANGED
|
@@ -17,10 +17,10 @@ https://docs.github.com/en/copilot/concepts/billing/usage-based-billing-for-orga
|
|
|
17
17
|
Current version:
|
|
18
18
|
|
|
19
19
|
```text
|
|
20
|
-
github-copilot-usage-pricing-2026-07-
|
|
20
|
+
github-copilot-usage-pricing-2026-07-13
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
The source table says prices are per 1 million tokens. The committed snapshot was checked against GitHub Docs on July
|
|
23
|
+
The source table says prices are per 1 million tokens. The committed snapshot was checked against GitHub Docs on July 13, 2026.
|
|
24
24
|
|
|
25
25
|
## Where Pricing Lives
|
|
26
26
|
|
|
@@ -83,7 +83,7 @@ GitHub documents `1 AI credit = $0.01 USD`.
|
|
|
83
83
|
|
|
84
84
|
### Long-context tiers
|
|
85
85
|
|
|
86
|
-
GitHub publishes a second rate tier for GPT-5.4 and GPT-5.
|
|
86
|
+
GitHub publishes a second rate tier for GPT-5.4, GPT-5.5, GPT-5.6 Sol, and GPT-5.6 Terra requests over 272K input tokens, and for GPT-5.6 Luna and Gemini 3.1 Pro requests over 200K input tokens.
|
|
87
87
|
|
|
88
88
|
The app evaluates that threshold independently for every model call:
|
|
89
89
|
|
package/lib/local-runtime.mjs
CHANGED
|
@@ -475,6 +475,7 @@ function mergeIncrementalScan(previousData, deltaData) {
|
|
|
475
475
|
ingestion: {
|
|
476
476
|
...deltaData.ingestion,
|
|
477
477
|
importedSessions: sessions.length,
|
|
478
|
+
...sessionSourceCounts(sessions),
|
|
478
479
|
incrementalSessionsImported: changedSessions.length,
|
|
479
480
|
},
|
|
480
481
|
sessions,
|
|
@@ -515,6 +516,7 @@ function mergeCustomizationScan(previousData, currentWorkspaceData) {
|
|
|
515
516
|
...previousData.ingestion,
|
|
516
517
|
...currentWorkspaceData.ingestion,
|
|
517
518
|
importedSessions: sessions.length,
|
|
519
|
+
...sessionSourceCounts(sessions),
|
|
518
520
|
importedCustomizations: customizations.length,
|
|
519
521
|
},
|
|
520
522
|
sessions,
|
|
@@ -523,6 +525,17 @@ function mergeCustomizationScan(previousData, currentWorkspaceData) {
|
|
|
523
525
|
};
|
|
524
526
|
}
|
|
525
527
|
|
|
528
|
+
function sessionSourceCounts(sessions) {
|
|
529
|
+
return {
|
|
530
|
+
importedDebugLogSessions: sessions.filter(
|
|
531
|
+
(session) => session.sourceKind === 'vscode-copilot-debug-log',
|
|
532
|
+
).length,
|
|
533
|
+
importedChatSnapshotSessions: sessions.filter(
|
|
534
|
+
(session) => session.sourceKind === 'vscode-chat-session-snapshot',
|
|
535
|
+
).length,
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
526
539
|
function preserveCustomizationSnapshot(previousData, nextData) {
|
|
527
540
|
const hasPreviousCustomizations = Array.isArray(previousData.customizations) && previousData.customizations.length > 0;
|
|
528
541
|
const nextHasCustomizations = Array.isArray(nextData.customizations) && nextData.customizations.length > 0;
|
package/package.json
CHANGED
|
@@ -210,6 +210,21 @@ function parseSimpleFrontmatter(content) {
|
|
|
210
210
|
.replace(/\b\w/g, (character) => character.toUpperCase())
|
|
211
211
|
.slice(0, 160);
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
function customizationDisplayName(content, file, kind) {
|
|
215
|
+
const frontmatter = parseSimpleFrontmatter(content);
|
|
216
|
+
const metadataName = String(
|
|
217
|
+
frontmatter.title ?? frontmatter.name ?? frontmatter.displayName ?? frontmatter.id ?? '',
|
|
218
|
+
).trim();
|
|
219
|
+
if (metadataName) {
|
|
220
|
+
return metadataName.slice(0, 160);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const fileTitle = titleFromFileName(file);
|
|
224
|
+
return kind === 'skill' && /^skill$/i.test(fileTitle)
|
|
225
|
+
? titleFromFileName(dirname(file))
|
|
226
|
+
: fileTitle;
|
|
227
|
+
}
|
|
213
228
|
|
|
214
229
|
function isMarkdownFile(file) {
|
|
215
230
|
return extname(file).toLowerCase() === '.md';
|
|
@@ -333,8 +348,14 @@ function parseSimpleFrontmatter(content) {
|
|
|
333
348
|
return {
|
|
334
349
|
id: createHash('sha256').update(stablePathKey(file)).digest('hex').slice(0, 24),
|
|
335
350
|
kind,
|
|
336
|
-
title:
|
|
337
|
-
name: String(
|
|
351
|
+
title: customizationDisplayName(content, file, kind),
|
|
352
|
+
name: String(
|
|
353
|
+
frontmatter.name ??
|
|
354
|
+
frontmatter.id ??
|
|
355
|
+
(kind === 'skill' && basename(file).toLowerCase() === 'skill.md'
|
|
356
|
+
? basename(dirname(file))
|
|
357
|
+
: basename(file, extname(file))),
|
|
358
|
+
).trim(),
|
|
338
359
|
description: description || memoryExcerpt(content).slice(0, 180),
|
|
339
360
|
applyTo,
|
|
340
361
|
triggers: Array.isArray(frontmatter.triggers) ? frontmatter.triggers.map(String) : [],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as N,d as D}from"./chunk-OS2XPCVW.js";import{$a as _,Ca as g,Da as u,Ea as F,Fa as O,Ga as S,Ha as h,Ia as i,J as k,Ja as n,Ka as T,O as y,Oa as b,P as M,Qa as x,Sa as c,U as E,Ua as V,Va as o,Wa as p,Xa as C,Ya as P,Z as f,_a as d,ab as w,db as v,ka as l,nb as z,ob as B,sa as I,sb as j,tb as q,ub as R,vb as $,wb as A,xb as L,yb as K,zb as W}from"./chunk-WOIYAEKB.js";var Q=(r,t)=>t.id;function G(r,t){if(r&1&&(i(0,"option",15),o(1),n()),r&2){let e=t.$implicit;h("value",e),l(),p(e==="all"?"All workspaces":e)}}function U(r,t){if(r&1){let e=b();i(0,"button",23),x("click",function(){y(e);let s=c(2);return M(s.resetFilters())}),o(1,"Reset"),n()}}function J(r,t){if(r&1&&(i(0,"em"),o(1),d(2,"number"),n()),r&2){let e=c().$implicit;l(),P(" ",_(2,2,e.recalls==null?null:e.recalls.length)," ",(e.recalls==null?null:e.recalls.length)===1?"read":"reads"," ")}}function X(r,t){if(r&1&&(i(0,"time"),o(1),d(2,"date"),n()),r&2){let e=c().$implicit;l(),p(w(2,1,e.modifiedAt,"MMM d"))}}function Y(r,t){if(r&1){let e=b();i(0,"button",24),x("click",function(){let s=y(e).$implicit,m=c(2);return M(m.selectMemory(s))}),i(1,"span",25),o(2),n(),i(3,"span",26)(4,"small"),o(5),n(),i(6,"strong"),o(7),n()(),i(8,"span",27)(9,"b"),o(10),n(),g(11,J,3,4,"em")(12,X,3,4,"time"),n()()}if(r&2){let e=t.$implicit,a=c(2);V("active",a.selectedMemory().id===e.id)("plan",e.kind==="plan"),l(2),C(" ",e.kind==="plan"?"P":"M"," "),l(3),p(a.fileName(e)),l(2),p(e.title),l(3),p(e.kind==="plan"?"Plan":a.scopeLabel(e.scope)),l(),u(e.recalls!=null&&e.recalls.length?11:12)}}function Z(r,t){if(r&1){let e=b();i(0,"button",23),x("click",function(){y(e);let s=c(2),m=c(2);return M(m.emitOpenSession(s))}),o(1),n()}if(r&2){let e=c();l(),C(" Created in: ",e.title," ")}}function ee(r,t){if(r&1&&(i(0,"span"),o(1),n()),r&2){let e=c();l(),C("Created in: ",e.title)}}function te(r,t){if(r&1&&g(0,Z,2,1,"button",20)(1,ee,2,1,"span"),r&2){let e=c(3);u(e.canOpenSession?0:1)}}function ne(r,t){if(r&1&&(i(0,"span"),o(1),n()),r&2){let e=c();l(),C("Session ",e.sessionId.slice(0,8))}}function oe(r,t){if(r&1&&(i(0,"p",34),o(1),n()),r&2){let e=c(3);l(),p(e.actionStatus())}}function ie(r,t){if(r&1){let e=b();i(0,"button",23),x("click",function(){y(e);let s=c(2).$implicit,m=c(4);return M(m.emitRecallSession(s.sessionId))}),o(1),n()}if(r&2){let e=c();l(),C(" ",e.title," ")}}function re(r,t){if(r&1&&(i(0,"span"),o(1),n()),r&2){let e=c();l(),p(e.title)}}function ae(r,t){if(r&1&&g(0,ie,2,1,"button",20)(1,re,2,1,"span"),r&2){let e=c(5);u(e.canOpenSession?0:1)}}function le(r,t){if(r&1&&(i(0,"span"),o(1),n()),r&2){let e=c().$implicit;l(),C("Session ",e.sessionId.slice(0,8))}}function se(r,t){if(r&1&&(o(0),d(1,"number")),r&2){let e=c();C(" \xB7 ",_(1,1,e.cachedInputTokens)," cached ")}}function ce(r,t){if(r&1&&(i(0,"span"),o(1),d(2,"number"),g(3,se,2,3),n()),r&2){let e=t,a=c().$implicit,s=c(4);l(),P(" ",s.recallRequestLabel(a)," \xB7 ",_(2,3,e.inputTokens)," input "),l(2),u(e.cachedInputTokens?3:-1)}}function me(r,t){if(r&1&&(i(0,"article",40)(1,"div")(2,"time"),o(3),d(4,"date"),n(),g(5,ae,2,1)(6,le,2,1,"span"),n(),i(7,"div",42)(8,"span"),o(9),d(10,"number"),n(),g(11,ce,4,5,"span"),n()()),r&2){let e,a,s=t.$implicit,m=c(4);l(3),p(w(4,4,s.timestamp,"medium")),l(2),u((e=m.recallSession(s.sessionId))?5:6,e),l(4),C("",_(10,7,s.returnedCharacterCount)," characters loaded"),l(2),u((a=s.followingModelCall)?11:-1,a)}}function pe(r,t){if(r&1&&(i(0,"section",35)(1,"header")(2,"div")(3,"span",29),o(4,"Observed use"),n(),i(5,"h4"),o(6),d(7,"number"),n()(),i(8,"p"),o(9,"These are explicit memory reads recorded by VS Code."),n()(),i(10,"div",39),O(11,me,12,9,"article",40,Q),n(),i(13,"p",41),o(14," Request totals include the complete prompt and context, not only this memory. "),n()()),r&2){let e=c();l(6),P(" Read ",_(7,2,e.recalls==null?null:e.recalls.length)," ",(e.recalls==null?null:e.recalls.length)===1?"time":"times"," "),l(5),S(e.recalls)}}function de(r,t){if(r&1){let e=b();i(0,"article",22)(1,"header",28)(2,"div")(3,"span",29),o(4),n(),i(5,"h3"),o(6),n(),i(7,"p"),o(8),d(9,"date"),n()(),i(10,"div",30)(11,"button",23),x("click",function(){let s=y(e),m=c(2);return M(m.copyContent(s))}),o(12,"Copy"),n(),i(13,"button",23),x("click",function(){let s=y(e),m=c(2);return M(m.runMemoryAction(s,"open"))}),o(14,"Open file"),n(),i(15,"button",23),x("click",function(){let s=y(e),m=c(2);return M(m.runMemoryAction(s,"reveal"))}),o(16,"Show in folder"),n(),i(17,"button",23),x("click",function(){let s=y(e),m=c(2);return M(m.copyPath(s))}),o(18,"Copy path"),n()()(),i(19,"div",31)(20,"span",32)(21,"b"),o(22),n(),o(23," scope "),T(24,"app-help-popover",33),n(),i(25,"span")(26,"b"),o(27),d(28,"number"),n(),o(29," characters"),n(),i(30,"span")(31,"b"),o(32),d(33,"number"),n(),o(34," lines"),n(),i(35,"span")(36,"b"),o(37),n()(),g(38,te,2,1)(39,ne,2,1,"span"),n(),g(40,oe,2,1,"p",34),g(41,pe,15,4,"section",35),i(42,"details",36)(43,"summary")(44,"span"),o(45,"Markdown source"),n(),i(46,"small"),o(47),d(48,"number"),d(49,"number"),n()(),i(50,"pre",37),o(51),n()(),i(52,"footer",38)(53,"span"),o(54,"Local file"),n(),i(55,"code"),o(56),n()()()}if(r&2){let e,a=t,s=c(2);l(4),C(" ",a.kind==="plan"?"Saved plan":s.scopeLabel(a.scope)+" memory"," "),l(2),p(a.title),l(2),P(" ",a.workspace||"Available across workspaces"," \xB7 updated ",w(9,16,a.modifiedAt,"medium")," "),l(14),p(s.scopeLabel(a.scope)),l(2),h("text",s.scopeHelp(a.scope)),l(3),p(_(28,19,a.characterCount)),l(5),p(_(33,21,a.lineCount)),l(5),p(s.fileName(a)),l(),u((e=s.linkedSession(a))?38:a.sessionId?39:-1,e),l(2),u(s.actionStatus()?40:-1),l(),u(a.recalls!=null&&a.recalls.length?41:-1),l(6),P("",_(48,23,a.lineCount)," lines \xB7 ",_(49,25,a.characterCount)," characters"),l(4),p(a.content),l(5),p(a.sourcePath)}}function _e(r,t){if(r&1&&(i(0,"section",16)(1,"aside",18)(2,"div",19)(3,"span"),o(4),d(5,"number"),n(),g(6,U,2,0,"button",20),n(),O(7,Y,13,9,"button",21,Q),n(),g(9,de,57,27,"article",22),n()),r&2){let e,a=c();l(4),C("",_(5,3,a.filteredMemories().length)," shown"),l(2),u(a.query()||a.scopeFilter()!=="all"||a.kindFilter()!=="all"||a.workspaceFilter()!=="all"?6:-1),l(),S(a.filteredMemories()),l(2),u((e=a.selectedMemory())?9:-1,e)}}function ge(r,t){if(r&1){let e=b();i(0,"button",23),x("click",function(){y(e);let s=c(2);return M(s.resetFilters())}),o(1,"Reset filters"),n()}}function ue(r,t){if(r&1&&(i(0,"section",17)(1,"h3"),o(2),n(),i(3,"p"),o(4),n(),g(5,ge,2,0,"button",20),n()),r&2){let e=c();l(2),p(e.memoriesInput().length?"No memories match these filters":"No Copilot memories found"),l(2),C(" ",e.memoriesInput().length?"Try a broader search or reset the filters.":"Create a saved memory or plan in VS Code, then refresh the local scan."," "),l(),u(e.memoriesInput().length?5:-1)}}var H=class r{http=k(N);memoriesInput=f([]);sessionsInput=f([]);query=f("");scopeFilter=f("all");kindFilter=f("all");workspaceFilter=f("all");selectedId=f(null);actionStatus=f("");set memories(t){let e=t??[];this.memoriesInput.set(e),(!this.selectedId()||!e.some(a=>a.id===this.selectedId()))&&this.selectedId.set(e[0]?.id??null)}set sessions(t){this.sessionsInput.set(t??[])}canOpenSession=!0;openSession=new E;workspaceOptions=v(()=>["all",...[...new Set(this.memoriesInput().map(t=>t.workspace).filter(Boolean))].sort()]);filteredMemories=v(()=>{let t=this.query().trim().toLowerCase();return this.memoriesInput().filter(e=>(!t||[e.title,e.excerpt,e.content,e.relativePath,e.sourcePath,this.fileName(e),e.workspace,e.scope,e.kind].join(" ").toLowerCase().includes(t))&&(this.scopeFilter()==="all"||e.scope===this.scopeFilter())&&(this.kindFilter()==="all"||e.kind===this.kindFilter())&&(this.workspaceFilter()==="all"||e.workspace===this.workspaceFilter()))});selectedMemory=v(()=>{let t=this.filteredMemories();return t.find(e=>e.id===this.selectedId())??t[0]??null});summary=v(()=>{let t=this.memoriesInput();return{total:t.length,plans:t.filter(e=>e.kind==="plan").length,recalls:t.reduce((e,a)=>e+(a.recalls?.length??0),0),repositories:new Set(t.map(e=>e.workspace).filter(Boolean)).size}});recallSession(t){return this.sessionsInput().find(e=>e.id===t)??null}emitRecallSession(t){let e=this.recallSession(t);this.canOpenSession&&e&&this.openSession.emit(e)}recallRequestLabel(t){let e=t.followingModelCall?.number,a=e?`request ${e}`:"request";return t.sourceLog==="main.jsonl"?`Before model ${a}`:`Before subagent model ${a}`}selectMemory(t){this.selectedId.set(t.id),this.actionStatus.set("")}setScopeFilter(t){this.scopeFilter.set(t),this.actionStatus.set(""),this.ensureVisibleSelection()}setKindFilter(t){this.kindFilter.set(t),this.actionStatus.set(""),this.ensureVisibleSelection()}setWorkspaceFilter(t){this.workspaceFilter.set(t),this.actionStatus.set(""),this.ensureVisibleSelection()}setQuery(t){this.query.set(t),this.actionStatus.set(""),this.ensureVisibleSelection()}resetFilters(){this.query.set(""),this.scopeFilter.set("all"),this.kindFilter.set("all"),this.workspaceFilter.set("all"),this.ensureVisibleSelection()}fileName(t){return(t.relativePath||t.sourcePath).split(/[\\/]+/).filter(Boolean).at(-1)??t.title}scopeHelp(t){return{session:"Session-scoped memory is tied to one Copilot session. It is useful for saved plans or temporary research from that run.",repository:"Repository memory is saved for a workspace repository and can be available to future Copilot sessions in that workspace.",workspace:"Workspace memory belongs to this VS Code workspace but is not clearly tied to one repository or session.",global:"Global memory is stored in VS Code user storage and can apply across workspaces on this machine."}[t]}ensureVisibleSelection(){let t=this.filteredMemories();if(!t.length){this.selectedId.set(null);return}t.some(e=>e.id===this.selectedId())||this.selectedId.set(t[0].id)}linkedSession(t){return t.sessionId?this.sessionsInput().find(e=>e.id===t.sessionId)??null:null}emitOpenSession(t){let e=this.linkedSession(t);this.canOpenSession&&e&&this.openSession.emit(e)}runMemoryAction(t,e){this.actionStatus.set(e==="open"?"Opening file\u2026":"Showing file\u2026"),this.http.post(D(`/api/memories/${t.id}/open`),{action:e}).subscribe({next:()=>this.actionStatus.set(e==="open"?"Opened file":"Shown in folder"),error:()=>this.actionStatus.set("File actions require the local runtime")})}async copyPath(t){try{await globalThis.navigator?.clipboard?.writeText(t.sourcePath),this.actionStatus.set("Path copied")}catch{this.actionStatus.set("Could not copy the path")}}async copyContent(t){try{await globalThis.navigator?.clipboard?.writeText(t.content),this.actionStatus.set("Memory copied")}catch{this.actionStatus.set("Could not copy the memory")}}scopeLabel(t){return{global:"Global",repository:"Repository",session:"Session",workspace:"Workspace"}[t]}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=I({type:r,selectors:[["app-memory-page"]],inputs:{memories:"memories",sessions:"sessions",canOpenSession:"canOpenSession"},outputs:{openSession:"openSession"},decls:69,vars:17,consts:[[1,"memory-page"],[1,"memory-header"],[1,"eyebrow"],["aria-label","Memory summary",1,"memory-header-meta"],["aria-label","Memory filters",1,"memory-controls"],[1,"memory-search"],["type","search","placeholder","Search title, filename, content, or path",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","all"],["value","memory"],["value","plan"],["value","global"],["value","repository"],["value","session"],["value","workspace"],[3,"value"],[1,"memory-workspace"],[1,"memory-empty"],["aria-label","Saved memories",1,"memory-list"],[1,"memory-list-heading"],["type","button"],["type","button",1,"memory-card",3,"active","plan"],[1,"memory-detail"],["type","button",3,"click"],["type","button",1,"memory-card",3,"click"],["aria-hidden","true",1,"memory-file-icon"],[1,"memory-card-main"],[1,"memory-card-side"],[1,"memory-detail-header"],[1,"memory-kicker"],[1,"memory-actions"],[1,"memory-facts"],[1,"scope-fact"],["label","Explain memory scope",3,"text"],["aria-live","polite",1,"memory-action-status"],["aria-label","Observed memory use",1,"memory-recalls"],[1,"memory-source"],[1,"memory-content"],[1,"memory-path"],[1,"memory-recall-list"],[1,"memory-recall-row"],[1,"memory-recall-note"],[1,"memory-recall-facts"]],template:function(e,a){e&1&&(i(0,"section",0)(1,"header",1)(2,"div")(3,"p",2),o(4,"Copilot memory"),n(),i(5,"h2"),o(6,"What Copilot remembers"),n(),i(7,"p"),o(8,"Saved plans and memories from local VS Code Copilot storage."),n()(),i(9,"div",3)(10,"span")(11,"strong"),o(12),d(13,"number"),n(),o(14," files"),n(),i(15,"span")(16,"strong"),o(17),d(18,"number"),n(),o(19," plans"),n(),i(20,"span")(21,"strong"),o(22),d(23,"number"),n(),o(24," reads"),n(),i(25,"span")(26,"strong"),o(27),d(28,"number"),n(),o(29," workspaces"),n(),i(30,"b"),o(31,"Read-only"),n()()(),i(32,"section",4)(33,"label",5)(34,"span"),o(35,"Search memories"),n(),i(36,"input",6),x("ngModelChange",function(m){return a.setQuery(m)}),n()(),i(37,"label")(38,"span"),o(39,"Type"),n(),i(40,"select",7),x("ngModelChange",function(m){return a.setKindFilter(m)}),i(41,"option",8),o(42,"Memories and plans"),n(),i(43,"option",9),o(44,"Memories"),n(),i(45,"option",10),o(46,"Plans"),n()()(),i(47,"label")(48,"span"),o(49,"Scope"),n(),i(50,"select",7),x("ngModelChange",function(m){return a.setScopeFilter(m)}),i(51,"option",8),o(52,"All scopes"),n(),i(53,"option",11),o(54,"Global"),n(),i(55,"option",12),o(56,"Repository"),n(),i(57,"option",13),o(58,"Session"),n(),i(59,"option",14),o(60,"Workspace"),n()()(),i(61,"label")(62,"span"),o(63,"Workspace"),n(),i(64,"select",7),x("ngModelChange",function(m){return a.setWorkspaceFilter(m)}),O(65,G,2,2,"option",15,F),n()()(),g(67,_e,10,5,"section",16)(68,ue,6,3,"section",17),n()),e&2&&(l(12),p(_(13,9,a.summary().total)),l(5),p(_(18,11,a.summary().plans)),l(5),p(_(23,13,a.summary().recalls)),l(5),p(_(28,15,a.summary().repositories)),l(9),h("ngModel",a.query()),l(4),h("ngModel",a.kindFilter()),l(10),h("ngModel",a.scopeFilter()),l(14),h("ngModel",a.workspaceFilter()),l(),S(a.workspaceOptions()),l(2),u(a.filteredMemories().length?67:68))},dependencies:[W,L,K,q,A,R,$,j,z,B],styles:['[_nghost-%COMP%]{display:block}.memory-page[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;min-height:calc(100vh - 96px)}.memory-header[_ngcontent-%COMP%], .memory-controls[_ngcontent-%COMP%], .memory-list[_ngcontent-%COMP%], .memory-detail[_ngcontent-%COMP%], .memory-empty[_ngcontent-%COMP%]{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-soft)}.memory-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:14px;border-color:color-mix(in srgb,var(--accent-2) 18%,var(--line));border-radius:14px;padding:12px 14px;background:var(--header-gradient)}.eyebrow[_ngcontent-%COMP%], .memory-kicker[_ngcontent-%COMP%]{margin:0;color:var(--muted-2);font-size:9px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}.memory-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .memory-detail[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .memory-empty[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:2px 0 0;color:var(--text-strong);letter-spacing:0}.memory-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:21px;line-height:1.15}.memory-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .memory-detail-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .memory-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.35}.memory-header-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.memory-header-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .memory-header-meta[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:24px;border:1px solid var(--line);border-radius:999px;padding:3px 8px;background:color-mix(in srgb,var(--surface) 74%,transparent);color:var(--muted);font-size:11px;font-weight:720;white-space:nowrap}.memory-header-meta[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:4px;color:var(--text-strong)}.memory-header-meta[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 28%,var(--line));color:var(--accent)}.memory-controls[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(3,minmax(130px,.8fr));gap:7px;border-radius:12px;padding:8px}.memory-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;gap:4px}.memory-controls[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--muted);font-size:10px;font-weight:760}.memory-controls[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .memory-controls[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;min-height:32px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:12px}.memory-workspace[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:10px;align-items:start;min-height:0}.memory-list[_ngcontent-%COMP%], .memory-detail[_ngcontent-%COMP%], .memory-empty[_ngcontent-%COMP%]{border-radius:13px}.memory-list[_ngcontent-%COMP%]{position:sticky;top:70px;display:grid;align-content:start;gap:3px;max-height:calc(100vh - 150px);overflow:auto;padding:7px}.memory-list-heading[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:2px 4px 5px;background:var(--surface);color:var(--muted);font-size:11px}.memory-list-heading[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .memory-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .memory-facts[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .memory-empty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:11px;font-weight:760;cursor:pointer}.memory-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:47px;border:1px solid transparent;border-radius:8px;padding:7px 8px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.memory-card[_ngcontent-%COMP%]:hover, .memory-card.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 6%,var(--surface-soft))}.memory-card.plan.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent-2) 42%,var(--line));background:color-mix(in srgb,var(--accent-2) 7%,var(--surface-soft))}.memory-file-icon[_ngcontent-%COMP%]{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--accent) 12%,var(--surface-soft));color:var(--accent);font-size:10px;font-weight:850}.memory-card.plan[_ngcontent-%COMP%] .memory-file-icon[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--accent-2) 14%,var(--surface-soft));color:var(--accent-2)}.memory-card-main[_ngcontent-%COMP%], .memory-card-side[_ngcontent-%COMP%]{display:grid;gap:2px;min-width:0}.memory-card-main[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{overflow:hidden;color:var(--text-strong);font-size:13px;font-weight:760;line-height:1.22;text-overflow:ellipsis;white-space:nowrap}.memory-card-main[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{overflow:hidden;color:var(--muted-2);font-size:10px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.memory-card-side[_ngcontent-%COMP%]{justify-items:end;color:var(--muted-2);font-size:10px;white-space:nowrap}.memory-card-side[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--muted);font-size:10px;text-transform:uppercase}.memory-card-side[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{border-radius:999px;padding:2px 6px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-style:normal;font-weight:760}.memory-detail[_ngcontent-%COMP%]{min-width:0;padding:14px}.memory-detail-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.memory-detail[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:20px;line-height:1.2}.memory-actions[_ngcontent-%COMP%], .memory-facts[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.memory-actions[_ngcontent-%COMP%]{justify-content:flex-end}.memory-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-color:var(--accent);background:var(--accent);color:#fff}.memory-facts[_ngcontent-%COMP%]{margin-top:10px}.memory-facts[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .memory-facts[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;min-height:25px;border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:var(--surface-soft);color:var(--muted);font-size:11px}.memory-facts[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--text-strong)}.memory-facts[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--accent)}.memory-action-status[_ngcontent-%COMP%]{margin:9px 0 0;color:var(--accent);font-size:11px}.memory-recalls[_ngcontent-%COMP%]{display:grid;gap:8px;margin-top:12px;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:10px;padding:10px;background:color-mix(in srgb,var(--accent) 4%,var(--surface-soft))}.memory-recalls[_ngcontent-%COMP%] > header[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:10px}.memory-recalls[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:2px 0 0;color:var(--text-strong);font-size:14px}.memory-recalls[_ngcontent-%COMP%] > header[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .memory-recall-note[_ngcontent-%COMP%]{margin:0;color:var(--muted);font-size:11px}.memory-recall-list[_ngcontent-%COMP%]{display:grid;gap:5px}.memory-recall-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(230px,1.2fr);gap:10px;border-top:1px solid var(--line);padding-top:7px}.memory-recall-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .memory-recall-facts[_ngcontent-%COMP%]{display:grid;gap:2px}.memory-recall-row[_ngcontent-%COMP%] time[_ngcontent-%COMP%], .memory-recall-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--muted);font-size:11px}.memory-recall-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:fit-content;border:0;padding:0;background:none;color:var(--accent);font:inherit;font-size:12px;font-weight:760;text-align:left;cursor:pointer}.memory-source[_ngcontent-%COMP%]{margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}.memory-source[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:8px 11px;color:var(--text-strong);cursor:pointer;list-style:none}.memory-source[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::-webkit-details-marker{display:none}.memory-source[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:before{content:"";flex:0 0 auto;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .14s ease}.memory-source[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.memory-source[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1;font-size:12px;font-weight:780}.memory-source[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:var(--muted);font-size:11px}.memory-content[_ngcontent-%COMP%]{max-height:48vh;margin:0;border-top:1px solid var(--line);padding:14px;overflow:auto;color:var(--text);font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}.memory-path[_ngcontent-%COMP%]{display:grid;gap:4px;margin-top:10px;color:var(--muted-2);font-size:10px;text-transform:uppercase}.memory-path[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:var(--surface-soft);color:var(--muted);font-size:11px;text-transform:none;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.memory-empty[_ngcontent-%COMP%]{display:grid;justify-items:start;padding:28px}@media(max-width:1050px){.memory-controls[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-search[_ngcontent-%COMP%]{grid-column:1 / -1}}@media(max-width:820px){.memory-page[_ngcontent-%COMP%]{min-height:auto}.memory-detail-header[_ngcontent-%COMP%]{display:grid}.memory-workspace[_ngcontent-%COMP%]{grid-template-columns:1fr}.memory-header[_ngcontent-%COMP%]{align-items:flex-start;padding:10px}.memory-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.memory-header-meta[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,max-content);justify-content:end;gap:4px}.memory-header-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .memory-header-meta[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{min-height:21px;padding:2px 6px;font-size:10px}.memory-controls[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}.memory-search[_ngcontent-%COMP%]{grid-column:1 / -1}.memory-list[_ngcontent-%COMP%]{position:static;max-height:420px}.memory-actions[_ngcontent-%COMP%]{justify-content:flex-start}.memory-recalls[_ngcontent-%COMP%] > header[_ngcontent-%COMP%], .memory-recall-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}}@media(max-width:480px){.memory-header[_ngcontent-%COMP%]{display:grid}.memory-header-meta[_ngcontent-%COMP%]{justify-content:start}.memory-controls[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .memory-controls[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding-inline:6px;font-size:11px}.memory-controls[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:9px}}']})};export{H as MemoryPageComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as l}from"./chunk-WOIYAEKB.js";var u={version:"github-copilot-usage-pricing-2026-07-05",sourceUrl:"https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing",sourceLabel:"GitHub Docs: Models and pricing for GitHub Copilot",snapshotDate:"2026-07-05",importedAt:"2026-07-05",fallbackModel:"GPT-5.4",models:{"GPT-5 mini":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.25,cachedInput:.025,output:2},"GPT-5.3-Codex":{provider:"OpenAI",releaseStatus:"GA",category:"Powerful",input:1.75,cachedInput:.175,output:14},"GPT-5.4":{provider:"OpenAI",releaseStatus:"GA",category:"Versatile",input:2.5,cachedInput:.25,output:15,tierLabel:"Default",tierThresholdLabel:"Up to 272K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:272e3,thresholdLabel:"Over 272K input tokens",input:5,cachedInput:.5,output:22.5}]},"GPT-5.4 mini":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.75,cachedInput:.075,output:4.5},"GPT-5.4 nano":{provider:"OpenAI",releaseStatus:"GA",category:"Lightweight",input:.2,cachedInput:.02,output:1.25},"GPT-5.5":{provider:"OpenAI",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,output:30,tierLabel:"Default",tierThresholdLabel:"Up to 272K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:272e3,thresholdLabel:"Over 272K input tokens",input:10,cachedInput:1,output:45}]},"Claude Haiku 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:1,cachedInput:.1,cacheWrite:1.25,output:5},"Claude Sonnet 4":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Sonnet 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Sonnet 4.6":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:3,cachedInput:.3,cacheWrite:3.75,output:15},"Claude Opus 4.5":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.6":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.7":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Opus 4.8":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:5,cachedInput:.5,cacheWrite:6.25,output:25},"Claude Sonnet 5":{provider:"Anthropic",releaseStatus:"GA",category:"Versatile",input:2,cachedInput:.2,cacheWrite:2.5,output:10,note:"GitHub documents this promotional pricing through August 31, 2026."},"Claude Opus 4.8 (fast mode)":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:10,cachedInput:1,cacheWrite:12.5,output:50,aliases:["Claude Opus 4.8 fast","claude-opus-4.8-fast"],note:"GitHub's table includes '(preview)' in the model label."},"Claude Fable 5":{provider:"Anthropic",releaseStatus:"GA",category:"Powerful",input:10,cachedInput:1,cacheWrite:12.5,output:50},"Gemini 2.5 Pro":{provider:"Google",releaseStatus:"GA",category:"Powerful",input:1.25,cachedInput:.125,output:10},"Gemini 3 Flash":{provider:"Google",releaseStatus:"Public preview",category:"Lightweight",input:.5,cachedInput:.05,output:3},"Gemini 3.1 Pro":{provider:"Google",releaseStatus:"Public preview",category:"Powerful",input:2,cachedInput:.2,output:12,tierLabel:"Default",tierThresholdLabel:"Up to 200K input tokens",tiers:[{id:"long-context",label:"Long context",thresholdInputTokensExclusive:2e5,thresholdLabel:"Over 200K input tokens",input:4,cachedInput:.4,output:18}]},"Gemini 3.5 Flash":{provider:"Google",releaseStatus:"GA",category:"Lightweight",input:1.5,cachedInput:.15,output:9},"Raptor mini":{provider:"Fine-tuned (GitHub)",releaseStatus:"GA",category:"Versatile",input:.25,cachedInput:.025,output:2},"MAI-Code-1-Flash":{provider:"Microsoft",releaseStatus:"GA",category:"Lightweight",input:.75,cachedInput:.075,output:4.5},"Kimi K2.7 Code":{provider:"Moonshot AI",releaseStatus:"GA",category:"Versatile",input:.95,cachedInput:.19,output:4}}};var v=u.version,U=u.sourceUrl,M=u.sourceLabel,_=u.snapshotDate,E=u.importedAt,A=u.fallbackModel,P=.01,O="https://docs.github.com/en/copilot/concepts/billing/usage-based-billing-for-organizations-and-enterprises",a=u.models,y=[{id:"business-standard",label:"Copilot Business",shortLabel:"Business",creditsPerUserMonthly:1900,period:"Standard monthly allowance",note:"Included AI credits are pooled at the billing entity level."},{id:"enterprise-standard",label:"Copilot Enterprise",shortLabel:"Enterprise",creditsPerUserMonthly:3900,period:"Standard monthly allowance",note:"Included AI credits are pooled at the billing entity level."},{id:"business-promo",label:"Copilot Business promo",shortLabel:"Business promo",creditsPerUserMonthly:3e3,period:"Existing-customer promo, Jun 1-Sep 1 2026",note:"GitHub documents this temporary higher allowance for existing Business customers."},{id:"enterprise-promo",label:"Copilot Enterprise promo",shortLabel:"Enterprise promo",creditsPerUserMonthly:7e3,period:"Existing-customer promo, Jun 1-Sep 1 2026",note:"GitHub documents this temporary higher allowance for existing Enterprise customers."}];function p(e){return String(e??"").replace(/^copilot\//i,"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim().replace(/\s+/g," ")}function g(e){let r=String(e??"").replace(/^copilot\//i,"").trim(),n=p(r),t=Object.keys(a),i=t.flatMap(o=>(a[o].aliases??[]).map(s=>({name:o,aliasKey:p(s)})));return t.find(o=>p(o)===n)??i.find(({aliasKey:o})=>o===n)?.name??t.find(o=>n.includes(p(o)))??i.find(({aliasKey:o})=>n.includes(o))?.name??(r||"Unknown model")}function x(e){let r=g(e);return a[r]?r:A}function S(e){return a[e||""]??a[A]}function k(e,r){let n=S(e),t=Math.max(0,r.input)+Math.max(0,r.cachedInput),i=[...n.tiers??[]].sort((o,s)=>s.thresholdInputTokensExclusive-o.thresholdInputTokensExclusive).find(o=>t>o.thresholdInputTokensExclusive);return i?l(c(c({},n),i),{tiers:n.tiers}):n}function d(e,r){let n=g(e);return(r||x(n))!==n||!a[n]}function G(e,r){let n=g(e),t=r||x(n);return d(n,t)?`${n||"Unknown model"} is a raw VS Code model id that does not have a GitHub pricing row in the local table. The estimate keeps that model label visible and uses ${t} pricing as an explicit assumption.`:"This model matched a GitHub price row directly."}function D(e,r){let n=e.pricingModel||e.model,t=k(n,e.tokens),i=e.costBreakdown?.inputUsd??h(e.tokens.input,t.input),o=e.costBreakdown?.cachedInputUsd??h(e.tokens.cachedInput,t.cachedInput),s=e.costBreakdown?.cacheWriteUsd??h(e.tokens.cacheWrite,t.cacheWrite??0),m=e.costBreakdown?.outputUsd??h(e.tokens.output,t.output),I=i+o+s+m,f=e.pricingTiers?.length?e.pricingTiers:[t.label??t.tierLabel??"Default"];return l(c({},e),{provider:t.provider,releaseStatus:t.releaseStatus,category:t.category,inputRate:t.input,cachedInputRate:t.cachedInput,cacheWriteRate:t.cacheWrite??0,outputRate:t.output,inputUsd:i,cachedInputUsd:o,cacheWriteUsd:s,outputUsd:m,totalUsd:I,share:r>0?I/r*100:0,usesFallbackPrice:d(e.model,n),pricingTierLabel:f.join(" + "),hasMixedPricingTiers:f.length>1})}function h(e,r){return e/1e6*r}function T(e){return e.input+e.cachedInput+e.cacheWrite+e.output}function H(e){return T(e.tokens)}function N(e){return b(e.sourceUsage?.usd)??e.cost.usd}function K(e){return b(e.sourceUsage?.credits)??e.cost.usd/P}function V(e){return e.sourceUsage?"GitHub usage":"Estimate fallback"}function z(e){return b(e.sourceUsage?.usd)}function j(e,r){return e===0?null:(r-e)/e*100}var J=d;function $(e,r){return e.size!==r.size?!0:[...e].some(n=>!r.has(n))}function b(e){return typeof e=="number"&&Number.isFinite(e)?e:null}export{v as a,U as b,M as c,_ as d,E as e,P as f,O as g,a as h,y as i,p as j,x as k,k as l,d as m,G as n,D as o,T as p,H as q,N as r,K as s,V as t,z as u,j as v,J as w,$ as x};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$a as y,Ba as E,Ca as p,Da as g,Ea as D,Fa as P,Ga as z,Ha as v,Ia as a,Ja as i,Ka as k,O as b,Oa as M,P as S,Qa as x,Sa as d,U as I,Ua as O,Va as s,Wa as m,Xa as C,Ya as T,Z as h,Za as A,_a as _,a as F,ab as N,b as $,db as f,ka as r,nb as V,ob as R,sa as q,sb as B,tb as j,ub as H,vb as W,wb as K,xb as Q,yb as G,zb as U}from"./chunk-WOIYAEKB.js";var J=(o,e)=>e.kind+":"+e.path,X=(o,e)=>e.id,Z=(o,e)=>e.sessionId,ee=(o,e)=>e.callNumber,te=(o,e)=>e.key,ne=(o,e)=>e.raw+e.label;function ie(o,e){if(o&1&&(a(0,"span"),s(1),i()),o&2){let t=d(2);r(),m(t.evidenceScanProgressLabel())}}function oe(o,e){if(o&1&&(a(0,"p",33),s(1),i()),o&2){let t=d(2);r(),m(t.activeScanStats())}}function ae(o,e){if(o&1&&(a(0,"span"),s(1),i()),o&2){let t=d(2);r(),C("Running ",t.elapsedScanLabel())}}function se(o,e){if(o&1&&(a(0,"span"),s(1),i()),o&2){let t=d(2);r(),C("Last update ",t.lastProgressLabel()," ago")}}function re(o,e){if(o&1&&(a(0,"div",31)(1,"div")(2,"strong"),s(3),i(),p(4,ie,2,1,"span"),i(),k(5,"progress",32),i(),p(6,oe,2,1,"p",33),a(7,"p",34),p(8,ae,2,1,"span"),p(9,se,2,1,"span"),i()),o&2){let t=d();r(3),m(t.evidenceScanProgressPercent()?t.evidenceScanProgressPercent()+"%":"Working"),r(),g(t.evidenceScanProgressLabel()?4:-1),r(),v("value",t.evidenceScanProgressPercent()||null),r(),g(t.activeScanStats()?6:-1),r(2),g(t.elapsedScanLabel()?8:-1),r(),g(t.lastProgressLabel()?9:-1)}}function ce(o,e){o&1&&(a(0,"p",7),s(1,"This is taking longer than expected. You can stop it; existing data will be kept."),i())}function le(o,e){o&1&&(a(0,"p",7),s(1,"No recent progress update has been received."),i())}function de(o,e){if(o&1){let t=M();a(0,"button",35),x("click",function(){b(t);let c=d();return S(c.cancelScan.emit())}),s(1,"Stop evidence scan"),i()}}function ue(o,e){o&1&&k(0,"span",37)}function me(o,e){if(o&1){let t=M();a(0,"button",36),x("click",function(){b(t);let c=d();return S(c.scanEvidence.emit())}),p(1,ue,1,0,"span",37),s(2),i()}if(o&2){let t=d();v("disabled",t.refreshState==="refreshing"),E("aria-busy",t.refreshState==="refreshing"),r(),g(t.isEvidenceScanActive()?1:-1),r(),C(" ",t.scanActionLabel()," ")}}function pe(o,e){if(o&1&&(a(0,"option",26),s(1),i()),o&2){let t=e.$implicit;v("value",t),r(),m(t==="all"?"All workspaces":t)}}function ge(o,e){if(o&1&&(a(0,"div")(1,"b"),s(2),i(),a(3,"code"),s(4),i()()),o&2){let t=e.$implicit,n=d(2);r(2),m(n.diagnosticKindLabel(t.kind)),r(2),m(t.path)}}function Ce(o,e){o&1&&(a(0,"p",28),s(1,"Showing the first 80 recorded locations. Generated scan diagnostics are capped."),i())}function xe(o,e){if(o&1&&(a(0,"div",38),P(1,ge,5,2,"div",null,J),i(),p(3,Ce,2,0,"p",28)),o&2){let t=d();r(),z(t.scanDiagnostics().locations),r(2),g(t.scanDiagnostics().capped?3:-1)}}function ve(o,e){o&1&&(a(0,"p",28),s(1,"No source-location details were recorded for this scan. This does not mean no customization files were found."),i())}function he(o,e){if(o&1){let t=M();a(0,"button",44),x("click",function(){b(t);let c=d(2);return S(c.resetFilters())}),s(1,"Reset"),i()}}function _e(o,e){if(o&1){let t=M();a(0,"button",45),x("click",function(){let c=b(t).$implicit,l=d(2);return S(l.selectCustomization(c))}),a(1,"span",46),s(2),i(),a(3,"span",47)(4,"strong"),s(5),i(),a(6,"small"),s(7),i()(),a(8,"span",48)(9,"b"),s(10),i(),a(11,"em"),s(12),i()()()}if(o&2){let t=e.$implicit,n=d(2);O("active",n.selectedCustomizationId()===t.id)("sent",t.evidenceStatus==="sent")("listed",t.evidenceStatus==="listed")("discovered",t.evidenceStatus==="discovered"),r(2),C(" ",n.kindLabel(t.kind).slice(0,1)," "),r(3),m(t.title),r(2),T("",n.fileName(t)," \xB7 ",n.kindLabel(t.kind)),r(3),m(n.statusLabel(t.evidenceStatus)),r(2),m(n.evidenceCountLabel(t))}}function fe(o,e){if(o&1&&(a(0,"span")(1,"b"),s(2,"applyTo"),i(),s(3),i()),o&2){let t=d();r(3),C(" ",t.applyTo.join(", "))}}function be(o,e){if(o&1&&(a(0,"span")(1,"b"),s(2,"trigger"),i(),s(3),i()),o&2){let t=d();r(3),C(" ",t.triggers.join(", "))}}function Se(o,e){if(o&1&&(a(0,"div",55)(1,"span",50),s(2,"Matched customization text"),i(),a(3,"p",58),s(4),i()()),o&2){let t=d();r(4),m(t.description)}}function Pe(o,e){if(o&1&&(a(0,"span",70),s(1),i()),o&2){let t=e.$implicit,n=d(6);O("sent",t.status==="sent")("listed",t.status==="listed")("discovered",t.status==="discovered"),E("aria-label",n.timelineMarkerLabel(t)),r(),C(" #",t.callNumber," ")}}function ze(o,e){if(o&1&&(a(0,"span",69),s(1),i()),o&2){let t=d(2).$implicit,n=d(4);r(),C("+",n.timelineOverflow(t)," more")}}function Me(o,e){if(o&1&&(a(0,"span",64),P(1,Pe,2,8,"span",68,ee),p(3,ze,2,1,"span",69),i()),o&2){let t=d().$implicit,n=d(4);E("aria-label",n.sessionEvidenceLabel(t)),r(),z(n.timelineMarkers(t)),r(2),g(n.timelineOverflow(t)?3:-1)}}function ye(o,e){o&1&&(a(0,"span",65),s(1,"No file text found"),i())}function we(o,e){if(o&1){let t=M();a(0,"button",44),x("click",function(){b(t);let c=d().$implicit,l=d(4);return S(l.emitOpenSession(c.sessionId))}),s(1,"Open run"),i()}}function Oe(o,e){if(o&1&&(a(0,"blockquote"),s(1),i()),o&2){let t=d().$implicit;r(),C(" ",t.matchedPreview[0]," ")}}function Ee(o,e){if(o&1&&(a(0,"li")(1,"b"),s(2),i(),a(3,"code"),s(4),i()()),o&2){let t=e.$implicit;r(2),m(t.label),r(2),m(t.raw)}}function ke(o,e){if(o&1&&(a(0,"article",72)(1,"div",73)(2,"strong"),s(3),i(),a(4,"p"),s(5),i(),p(6,Oe,2,1,"blockquote"),a(7,"details",74)(8,"summary"),s(9),i(),a(10,"div")(11,"span"),s(12,"Visible VS Code log sources"),i(),a(13,"ul"),P(14,Ee,5,2,"li",null,ne),i()()()()()),o&2){let t=e.$implicit,n=d(6);O("sent",t.status==="sent"),r(3),m(n.callEvidenceTitle(t)),r(2),m(n.callEvidenceSummary(t)),r(),g(t.matchedPreview.length?6:-1),r(3),C("Proof details \xB7 ",n.evidenceDetailsSummary(t)),r(5),z(n.rawEvidenceSources(t))}}function Ie(o,e){if(o&1&&(a(0,"div",67),P(1,ke,16,6,"article",71,te),i()),o&2){let t=d().$implicit,n=d(4);r(),z(n.sentCallEvidence(t))}}function Te(o,e){if(o&1&&(a(0,"details",61)(1,"summary")(2,"span",62)(3,"time"),s(4),_(5,"date"),i(),a(6,"b"),s(7),i(),a(8,"em"),s(9),i()(),a(10,"span",63),p(11,Me,4,2,"span",64)(12,ye,2,0,"span",65),a(13,"strong"),s(14),i()()(),a(15,"div",66)(16,"p"),s(17),i(),p(18,we,2,0,"button",41),i(),p(19,Ie,3,0,"div",67),i()),o&2){let t=e.$implicit,n=d(4);O("sent",t.bestStatus==="sent")("listed",t.bestStatus==="listed")("discovered",t.bestStatus==="discovered"),r(4),m(N(5,14,t.timestamp,"medium")),r(3),m(t.title),r(2),m(n.evidenceGroupSubtitle(t)),r(2),g(t.bestStatus==="sent"?11:12),r(3),m(n.sessionEvidenceLabel(t)),r(3),C(" ",n.groupDetailSummary(t)," "),r(),g(t.session?18:-1),r(),g(t.bestStatus==="sent"?19:-1)}}function Le(o,e){if(o&1&&(a(0,"section",56)(1,"header")(2,"span",50),s(3,"Where it appeared"),i(),a(4,"h4"),s(5),_(6,"number"),i()(),a(7,"p",59),s(8," Each row is one Copilot session. Open a row for request-level proof. "),i(),P(9,Te,20,17,"details",60,Z),i()),o&2){let t=d(3);r(5),T("",y(6,2,t.selectedSessionEvidence().length)," session",t.selectedSessionEvidence().length===1?"":"s"),r(4),z(t.selectedSessionEvidence())}}function Ne(o,e){if(o&1&&(a(0,"article",43)(1,"header",49)(2,"div")(3,"span",50),s(4),i(),a(5,"h3"),s(6),i(),a(7,"p"),s(8),i()(),a(9,"span",51),s(10),k(11,"app-help-popover",52),i()(),a(12,"div",53)(13,"span")(14,"b"),s(15),_(16,"number"),i(),s(17," characters"),i(),a(18,"span")(19,"b"),s(20),_(21,"number"),i(),s(22," lines"),i(),a(23,"span")(24,"b"),s(25,"updated"),i(),s(26),_(27,"date"),i(),p(28,fe,4,1,"span"),p(29,be,4,1,"span"),i(),a(30,"section",54)(31,"div")(32,"span",50),s(33,"Detection result"),i(),a(34,"h4"),s(35),i(),a(36,"p"),s(37),i()(),p(38,Se,5,1,"div",55),i(),p(39,Le,11,4,"section",56),a(40,"footer",57)(41,"span"),s(42,"Local file"),i(),a(43,"code"),s(44),i()()()),o&2){let t=e,n=d(2);r(4),m(n.kindLabel(t.kind)),r(2),m(t.title),r(2),T("",t.workspace||"Local"," \xB7 ",n.fileName(t)),r(),O("sent",t.evidenceStatus==="sent")("listed",t.evidenceStatus==="listed")("discovered",t.evidenceStatus==="discovered"),r(),C(" ",n.statusLabel(t.evidenceStatus)," "),r(),v("text",n.statusHelp(t.evidenceStatus)),r(4),m(y(16,22,t.characterCount)),r(5),m(y(21,24,t.lineCount)),r(6),C(" ",N(27,26,t.modifiedAt,"mediumDate")),r(2),g(t.applyTo.length?28:-1),r(),g(t.triggers.length?29:-1),r(6),m(n.statusHeadline(t.evidenceStatus)),r(2),m(n.statusHelp(t.evidenceStatus)),r(),g(t.description?38:-1),r(),g(t.matches.length?39:-1),r(5),m(t.sourcePath)}}function Fe(o,e){if(o&1&&(a(0,"section",29)(1,"aside",39)(2,"div",40)(3,"span"),s(4),_(5,"number"),i(),p(6,he,2,0,"button",41),i(),P(7,_e,13,14,"button",42,X),i(),p(9,Ne,45,29,"article",43),i()),o&2){let t,n=d();r(4),C("",y(5,3,n.filteredCustomizations().length)," shown"),r(2),g(n.query()||n.kindFilter()!=="all"||n.statusFilter()!=="all"||n.workspaceFilter()!=="all"?6:-1),r(),z(n.filteredCustomizations()),r(2),g((t=n.selectedCustomization())?9:-1,t)}}function $e(o,e){o&1&&k(0,"span",37)}function qe(o,e){if(o&1){let t=M();a(0,"button",36),x("click",function(){b(t);let c=d(2);return S(c.scanEvidence.emit())}),p(1,$e,1,0,"span",37),s(2),i()}if(o&2){let t=d(2);v("disabled",t.refreshState==="refreshing"),E("aria-busy",t.refreshState==="refreshing"),r(),g(t.isEvidenceScanActive()?1:-1),r(),C(" ",t.scanActionLabel()," ")}}function De(o,e){if(o&1){let t=M();a(0,"button",44),x("click",function(){b(t);let c=d(2);return S(c.resetFilters())}),s(1,"Reset filters"),i()}}function Ae(o,e){if(o&1&&(a(0,"section",30)(1,"h3"),s(2),i(),a(3,"p"),s(4),i(),p(5,qe,3,4,"button",10)(6,De,2,0,"button",41),i()),o&2){let t=d();r(2),m(t.emptyStateTitle()),r(2),m(t.emptyStateText()),r(),g(t.customizationsInput().length?6:5)}}var Y=class o{customizationsInput=h([]);sessionsInput=h([]);ingestionInput=h(null);query=h("");kindFilter=h("all");statusFilter=h("all");workspaceFilter=h("all");selectedId=h(null);set customizations(e){let t=e??[];this.customizationsInput.set(t),(!this.selectedId()||!t.some(n=>n.id===this.selectedId()))&&this.selectedId.set(t[0]?.id??null)}set sessions(e){this.sessionsInput.set(e??[])}set ingestion(e){this.ingestionInput.set(e??null)}refreshState="idle";refreshMessage=null;runtimeStatus=null;scanEvidence=new I;cancelScan=new I;openSession=new I;workspaceOptions=f(()=>["all",...[...new Set(this.customizationsInput().map(e=>e.workspace).filter(Boolean))].sort()]);filteredCustomizations=f(()=>{let e=this.query().trim().toLowerCase(),t=this.kindFilter(),n=this.statusFilter(),c=this.workspaceFilter();return this.customizationsInput().filter(l=>(!e||[l.title,l.name,l.description,l.excerpt,l.relativePath,l.sourcePath,l.kind,l.evidenceStatus,l.workspace,...l.applyTo,...l.triggers].join(" ").toLowerCase().includes(e))&&(t==="all"||l.kind===t)&&(n==="all"||l.evidenceStatus===n)&&(c==="all"||l.workspace===c))});selectedCustomization=f(()=>{let e=this.filteredCustomizations();return e.find(t=>t.id===this.selectedId())??e[0]??null});selectedCustomizationId=f(()=>this.selectedCustomization()?.id??"");selectedSessionEvidence=f(()=>{let e=this.selectedCustomization();return e?this.groupMatchesBySession(e):[]});summary=f(()=>{let e=this.customizationsInput();return{total:e.length,sent:e.filter(t=>t.evidenceStatus==="sent").length,listed:e.filter(t=>t.evidenceStatus==="listed").length,discovered:e.filter(t=>t.evidenceStatus==="discovered").length}});scanDiagnostics=f(()=>{let e=this.ingestionInput(),t=(e?.scannedCustomizationLocations??[]).filter(n=>n.kind!=="candidate");return{roots:e?.scannedCustomizationRoots??0,files:e?.importedCustomizations??this.customizationsInput().length,locations:t.slice(0,80),locationCount:t.length,capped:t.length>=200}});customizationEvidenceSummary=f(()=>{let e=this.ingestionInput(),t=this.customizationsInput(),n=t.filter(u=>u.evidenceStatus==="sent").length,c=t.filter(u=>u.evidenceStatus==="listed").length,l=!!(e?.customizationEvidenceAnalyzedAt||(e?.customizationEvidenceScannedSessions??0)>0);return{sent:n,notProved:c,hasScannedEvidence:l,label:l?`${n.toLocaleString()} text-matched \xB7 ${c.toLocaleString()} read/referenced`:"Detailed evidence skipped"}});scanActionLabel(){return this.refreshState==="refreshing"?"Analyzing...":!this.customizationsInput().length&&!this.customizationEvidenceSummary().hasScannedEvidence?"Analyze this workspace":this.customizationEvidenceSummary().hasScannedEvidence?"Analyze new activity":"Analyze customizations"}showHeaderScanAction(){return this.isEvidenceScanActive()||this.customizationsInput().length>0||this.customizationEvidenceSummary().hasScannedEvidence||this.refreshState==="error"}isEvidenceScanActive(){return this.refreshState==="refreshing"&&this.runtimeStatus?.activeScanMode==="customizations"}currentWorkspaceLabel(){let e=this.runtimeStatus?.scanProgress?.workspace||"";if(e)return e;let t=this.workspaceOptions().filter(n=>n!=="all");return this.workspaceFilter()!=="all"?this.workspaceFilter():t.length===1?t[0]:"Current VS Code workspace"}customizationFileCountLabel(){let e=this.summary().total;return`${e.toLocaleString()} customization file${e===1?"":"s"}`}requestTextCountLabel(){let e=this.customizationEvidenceSummary();if(this.isEvidenceScanActive())return"Checking recent requests";if(this.refreshState==="error")return"Scan failed";if(this.refreshMessage?.toLowerCase().includes("stopped"))return"Scan stopped";if(!e.hasScannedEvidence)return"Not checked yet";let t=e.sent;return t?`${t.toLocaleString()} file${t===1?"":"s"} with request text`:"No request text found"}evidenceResultText(){if(this.isEvidenceScanActive())return this.currentScanStep();if(this.refreshState==="error")return this.refreshMessage||"The usage evidence scan did not finish.";if(this.refreshMessage?.toLowerCase().includes("stopped"))return"Scan stopped. Existing customization data was kept.";if(this.customizationEvidenceSummary().hasScannedEvidence){let e=this.customizationEvidenceSummary().sent,t=this.evidenceSessionCount(),n=this.evidenceMatchCount();return e?`${n.toLocaleString()} text match${n===1?"":"es"} across ${t.toLocaleString()} Copilot session${t===1?"":"s"}.`:"Checked recent Copilot requests. No customization file text was found."}return this.customizationsInput().length?"Analyze customizations to check whether these files appeared inside recent Copilot model requests.":"Analyze this workspace to find customization files and check recent Copilot requests."}emptyStateTitle(){return this.customizationsInput().length?"No customizations match these filters":this.scanDiagnostics().roots>0?"No customization files found":"No customization scan has run yet"}emptyStateText(){return this.customizationsInput().length?"Try a broader search or reset the filters.":this.scanDiagnostics().roots>0?"Checked the current VS Code customization locations. Open Advanced scan coverage if you need to inspect the folders that were checked.":"Scan this workspace to find Copilot instructions, skills, prompts, hooks, and agents, then check recent request logs for evidence."}evidenceMetricLabel(){return this.isEvidenceScanActive()?"Matches so far":"Last result"}evidenceMetricText(){let e=this.isEvidenceScanActive()?Number(this.runtimeStatus?.scanProgress?.matches??this.evidenceMatchCount()):this.evidenceMatchCount();return`${e.toLocaleString()} text match${e===1?"":"es"}`}activeScanStats(){if(!this.isEvidenceScanActive())return"";let e=this.runtimeStatus?.scanProgress,t=Number(e?.sessions??0),n=Number(e?.modelCalls??0);return[t>0?`${t.toLocaleString()} session${t===1?"":"s"} checked`:"",n>0?`${n.toLocaleString()} model call${n===1?"":"s"} checked`:"",this.evidenceMetricText()].filter(Boolean).join(" \xB7 ")}evidenceScanProgressPercent(){if(!this.isEvidenceScanActive())return 0;let e=this.runtimeStatus?.scanProgress,t=Number(e?.index??e?.workspaceIndex??0),n=Number(e?.total??e?.workspaceTotal??0);return t>0&&n>0?Math.max(1,Math.min(100,Math.round(t/n*100))):0}evidenceScanProgressLabel(){if(!this.isEvidenceScanActive())return"";let e=this.runtimeStatus?.scanProgress,t=Number(e?.index??0),n=Number(e?.total??0);return t>0&&n>0?`${t.toLocaleString()} of ${n.toLocaleString()} Copilot session folders checked`:"Preparing session list"}currentScanStep(){let e=this.runtimeStatus?.scanProgress?.stage??"";return e==="customizations"||e==="workspace"||e==="workspace-state"?"Step 1 of 3: Loading customization files":e==="customization-evidence"||e==="debug-logs"?"Step 2 of 3: Checking recent Copilot sessions":e==="complete"?"Step 3 of 3: Summarising matches":"Preparing current workspace scan"}elapsedScanLabel(){let e=this.runtimeStatus?.lastScanStartedAt;return!e||!this.isEvidenceScanActive()?"":this.durationLabel(Date.now()-Date.parse(e))}lastProgressLabel(){let e=this.runtimeStatus?.scanProgress?.updatedAt;return!e||!this.isEvidenceScanActive()?"":this.durationLabel(Date.now()-Date.parse(e))}isLongRunningScan(){let e=this.runtimeStatus?.lastScanStartedAt;return!e||!this.isEvidenceScanActive()?!1:Date.now()-Date.parse(e)>6e4}isStaleScan(){let e=this.runtimeStatus?.scanProgress?.updatedAt;return!e||!this.isEvidenceScanActive()?!1:Date.now()-Date.parse(e)>3e4}evidenceSessionCount(){return new Set(this.customizationsInput().flatMap(e=>e.matches.map(t=>t.sessionId))).size}evidenceMatchCount(){return this.customizationsInput().reduce((e,t)=>e+t.matches.filter(n=>n.status==="sent").length,0)}durationLabel(e){if(!Number.isFinite(e)||e<0)return"";let t=Math.max(0,Math.round(e/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`}selectCustomization(e){this.selectedId.set(e.id)}setQuery(e){this.query.set(e),this.ensureVisibleSelection()}setKindFilter(e){this.kindFilter.set(e),this.ensureVisibleSelection()}setStatusFilter(e){this.statusFilter.set(e),this.ensureVisibleSelection()}setWorkspaceFilter(e){this.workspaceFilter.set(e),this.ensureVisibleSelection()}resetFilters(){this.query.set(""),this.kindFilter.set("all"),this.statusFilter.set("all"),this.workspaceFilter.set("all"),this.ensureVisibleSelection()}fileName(e){return(e.relativePath||e.sourcePath).split(/[\\/]+/).filter(Boolean).at(-1)??e.title}kindLabel(e){return{instruction:"Instruction",skill:"Skill",prompt:"Prompt",hook:"Hook",agent:"Agent",other:"Other"}[e]}statusLabel(e){return{sent:"Text match found",listed:"Read by Copilot",discovered:"Discovered",not_seen:"Not seen"}[e]}statusHeadline(e){return{sent:"File text appeared in a model request",listed:"Copilot read or referenced this file",discovered:"Found locally, not seen in a request",not_seen:"No evidence in imported sessions"}[e]}statusHelp(e){return{sent:"We found distinctive text from this file inside local VS Code request logs. The text reached a model request, but it may have arrived as customization context or as manually attached file context.",listed:"Local logs show Copilot read or referenced this file, but did not show distinctive file text inside the model request.",discovered:"The file exists in a known customization location, but imported model requests did not show a text match.",not_seen:"The file exists locally, but imported sessions do not show local evidence for it yet."}[e]}evidenceCountLabel(e){let t=new Set(e.matches.map(n=>n.sessionId)).size;return e.matches.length?`${t.toLocaleString()} session${t===1?"":"s"}`:"No sessions"}evidenceGroupSubtitle(e){let t=e.modelCallNumbers.length;if(e.bestStatus==="sent"){let n=this.sentModelCallCount(e);return n?`${n.toLocaleString()} text-matched request${n===1?"":"s"}`:"Text match found"}return e.bestStatus==="listed"?t?"Read or referenced, but no file text found":"Read or referenced":e.bestStatus==="discovered"?"Found during setup or discovery":"No imported evidence"}sourceLabel(e){return/^system_prompt/i.test(e)?"Instructions":/^tools/i.test(e)?"Tool list":{inputMessages:"Complete request",userRequest:"User prompt",copilotFileRead:"File read"}[e]??e}sourceHelp(e){return/^system_prompt/i.test(e.raw)?"Matched inside the instruction/system part of a VS Code request. This is usually where custom instructions and skills appear.":/^tools/i.test(e.raw)?"Matched near the tool definitions included with the request. This can include tool or MCP schema material.":e.raw==="inputMessages"?"Matched somewhere in the full request payload visible in VS Code logs. This is useful as broad local confirmation that the text appeared.":e.raw==="userRequest"?"Matched in the user-facing prompt/request material for this model call.":e.raw==="copilotFileRead"?"VS Code logs show Copilot read this customization file. This is useful evidence, but it does not prove the file text was sent to the model.":"Matched in this VS Code debug-log source. Open the technical proof section if you need the raw field name."}rawSourceLabel(e){return String(e)}sessionEvidenceLabel(e){if(!e.modelCallNumbers.length)return e.bestStatus==="sent"?"Text match found":this.statusLabel(e.bestStatus);if(e.bestStatus!=="sent")return"Read or referenced";let n=this.sentModelCallCount(e),c=n===1?"request":"requests";return`${n.toLocaleString()} text-matched ${c}`}timelineMarkers(e){let t=new Map;for(let n of e.matches){if(!n.modelCallNumber)continue;let c=t.get(n.modelCallNumber)??"not_seen";t.set(n.modelCallNumber,this.strongerStatus(c,n.status))}return[...t.entries()].sort(([n],[c])=>n-c).filter(([,n])=>e.bestStatus!=="sent"||n==="sent").slice(0,18).map(([n,c])=>({callNumber:n,status:c}))}timelineOverflow(e){let t=new Set(e.matches.filter(n=>e.bestStatus!=="sent"||n.status==="sent").map(n=>n.modelCallNumber).filter(Boolean));return Math.max(0,t.size-18)}timelineMarkerLabel(e){return e.status==="sent"?`Model request #${e.callNumber}: this file's text was included`:`Model request #${e.callNumber}: file text not proved`}callEvidence(e){let t=new Map;for(let n of e.matches){let c=n.modelCallNumber?`call:${n.modelCallNumber}`:`event:${n.eventIndex}`,u=t.get(c)??{key:c,callNumber:n.modelCallNumber,eventIndex:n.eventIndex,status:n.status,matches:[],sources:[],matchedChunks:0,matchedCharacters:0,matchedPreview:[]};u.matches.push(n),u.status=this.strongerStatus(u.status,n.status),u.matchedChunks+=n.matchedChunks??0,u.matchedCharacters+=n.matchedCharacters??0;for(let w of n.matchedPreview??[])w&&!u.matchedPreview.includes(w)&&u.matchedPreview.push(w);let L={label:this.sourceLabel(n.source),raw:this.rawSourceLabel(n.source)};u.sources.some(w=>w.label===L.label&&w.raw===L.raw)||u.sources.push(L),t.set(c,u)}return[...t.values()].sort((n,c)=>n.callNumber!==c.callNumber?c.callNumber-n.callNumber:c.eventIndex-n.eventIndex)}sentCallEvidence(e){return this.callEvidence(e).filter(t=>t.status==="sent")}callEvidenceTitle(e){let t=e.callNumber?`Request #${e.callNumber}`:`Event #${e.eventIndex}`;return e.status==="sent"?`${t}: file text found`:e.status==="listed"?`${t}: read or referenced`:`${t}: ${this.statusLabel(e.status).toLowerCase()}`}callEvidenceSummary(e){return e.status==="sent"?"Distinctive file text appeared in this Copilot request.":e.status==="listed"?"Copilot read or referenced this file, but local logs did not show distinctive file text inside this model request.":"No request payload content was verified for this event."}groupDetailSummary(e){if(e.bestStatus==="sent"){let t=this.sentModelCallCount(e),n=t===1?"model request":"model requests";return`File text appeared in ${t.toLocaleString()} Copilot ${n}. This confirms the text was visible in local request logs.`}return e.bestStatus==="listed"?"Copilot read or referenced this file in this session, but imported model requests did not show distinctive file text.":e.bestStatus==="discovered"?"VS Code setup or discovery mentioned this file, but imported model requests did not show distinctive file text.":"No visible request evidence was imported for this session."}evidenceSourceLabels(e){return this.uniqueSources(e.sources).map(t=>t.label)}evidenceSources(e){return this.uniqueSources(e.sources)}rawEvidenceSources(e){return this.uniqueSources(e.sources)}evidenceDetailsSummary(e){let t=[];e.callNumber&&t.push(`request #${e.callNumber}`);let n=this.sourcePhrase(e.sources);return n&&t.push(n),e.matchedCharacters&&t.push(`${e.matchedCharacters.toLocaleString()} characters matched`),t.join(" \xB7 ")||"raw debug-log proof"}sourcePhrase(e){let t=this.uniqueSources(e).map(n=>n.label);return t.length?t.length===1?t[0].toLowerCase():t.length===2?`${t[0].toLowerCase()} and ${t[1].toLowerCase()}`:`${t.slice(0,-1).map(n=>n.toLowerCase()).join(", ")}, and ${t.at(-1)?.toLowerCase()}`:"the model request"}uniqueSources(e){let t=new Set,n=[];for(let c of e){let l=`${c.label}:${c.raw}`;t.has(l)||(t.add(l),n.push(c))}return n}sentModelCallCount(e){return new Set(e.matches.filter(t=>t.status==="sent").map(t=>t.modelCallNumber).filter(Boolean)).size}diagnosticKindLabel(e){return{candidate:"Candidate root",root:"Folder",file:"File","debug-reference":"Debug reference","debug-discovery-root":"VS Code discovery","vscode-setting-root":"VS Code setting","vscode-default-root":"VS Code default","vscode-user-setting-root":"User setting","vscode-workspace-setting-root":"Workspace setting","vscode-workspace-folder-setting-root":"Workspace-folder setting","vscode-parent-repo-default-root":"Parent repo default","user-default-root":"User default"}[e]??e}sessionForMatch(e){return this.sessionsInput().find(t=>t.id===e)??null}emitOpenSession(e){let t=this.sessionForMatch(e);t&&this.openSession.emit(t)}groupMatchesBySession(e){let t=new Map;for(let n of e.matches){let c=this.sessionForMatch(n.sessionId),u=t.get(n.sessionId)??{sessionId:n.sessionId,session:c,title:c?.title??`Session ${n.sessionId.slice(0,8)}`,timestamp:n.timestamp,bestStatus:n.status,matches:[],sentCount:0,listedCount:0,discoveredCount:0,modelCallNumbers:[],sources:[],matchedChunks:0,matchedCharacters:0};u.matches.push(n),u.bestStatus=this.strongerStatus(u.bestStatus,n.status),u.timestamp=[u.timestamp,n.timestamp].filter(Boolean).sort().at(-1)??u.timestamp,u.sentCount+=n.status==="sent"?1:0,u.listedCount+=n.status==="listed"?1:0,u.discoveredCount+=n.status==="discovered"?1:0,u.matchedChunks+=n.matchedChunks??0,u.matchedCharacters+=n.matchedCharacters??0,n.modelCallNumber&&!u.modelCallNumbers.includes(n.modelCallNumber)&&u.modelCallNumbers.push(n.modelCallNumber),n.source&&!u.sources.includes(n.source)&&u.sources.push(n.source),t.set(n.sessionId,u)}return[...t.values()].map(n=>$(F({},n),{modelCallNumbers:[...n.modelCallNumbers].sort((c,l)=>c-l),matches:[...n.matches].sort((c,l)=>l.timestamp.localeCompare(c.timestamp)||l.eventIndex-c.eventIndex)})).sort((n,c)=>c.timestamp.localeCompare(n.timestamp))}strongerStatus(e,t){let n={not_seen:0,discovered:1,listed:2,sent:3};return n[t]>n[e]?t:e}ensureVisibleSelection(){let e=this.filteredCustomizations();if(!e.length){this.selectedId.set(null);return}e.some(t=>t.id===this.selectedId())||this.selectedId.set(e[0].id)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=q({type:o,selectors:[["app-customizations-page"]],inputs:{customizations:"customizations",sessions:"sessions",ingestion:"ingestion",refreshState:"refreshState",refreshMessage:"refreshMessage",runtimeStatus:"runtimeStatus"},outputs:{scanEvidence:"scanEvidence",cancelScan:"cancelScan",openSession:"openSession"},decls:84,vars:22,consts:[[1,"customizations-page"],[1,"customizations-header"],[1,"eyebrow"],[1,"preview-badge"],["aria-label","Customization scan status",1,"customizations-scan-status"],[1,"scan-status-body"],[1,"scan-summary-line"],[1,"scan-warning"],[1,"scan-status-actions"],["type","button",1,"secondary-scan-button"],["type","button",1,"evidence-scan-button",3,"disabled"],["aria-label","Customization filters",1,"customizations-controls"],[1,"customizations-search"],["type","search","placeholder","Search filename, title, description, applyTo, trigger",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","all"],["value","instruction"],["value","skill"],["value","prompt"],["value","hook"],["value","agent"],["value","other"],["value","sent"],["value","listed"],["value","discovered"],["value","not_seen"],[3,"value"],[1,"customizations-diagnostics"],[1,"diagnostic-note"],[1,"customizations-workspace"],[1,"customizations-empty"],["aria-label","Evidence scan progress",1,"scan-progress-meter"],["max","100",3,"value"],[1,"scan-progress-stats"],[1,"scan-progress-line"],["type","button",1,"secondary-scan-button",3,"click"],["type","button",1,"evidence-scan-button",3,"click","disabled"],["aria-hidden","true",1,"button-spinner"],[1,"diagnostic-list"],["aria-label","Local customizations",1,"customizations-list"],[1,"customizations-list-heading"],["type","button"],["type","button",1,"customization-card",3,"active","sent","listed","discovered"],[1,"customization-detail"],["type","button",3,"click"],["type","button",1,"customization-card",3,"click"],["aria-hidden","true",1,"customization-file-icon"],[1,"customization-card-main"],[1,"customization-card-side"],[1,"customization-detail-header"],[1,"customization-kicker"],[1,"evidence-badge"],["label","Explain customization evidence",3,"text"],[1,"customization-facts"],[1,"evidence-summary"],[1,"matched-customization-text"],["aria-label","Customization evidence matches",1,"match-list"],[1,"customization-path"],[1,"description"],[1,"match-list-help"],[1,"match-group",3,"sent","listed","discovered"],[1,"match-group"],[1,"match-group-title"],[1,"match-group-status"],[1,"match-group-timeline"],[1,"match-group-weak"],[1,"match-group-detail-header"],[1,"match-events","call-events"],[1,"timeline-marker",3,"sent","listed","discovered"],[1,"timeline-overflow"],[1,"timeline-marker"],[1,"match-event","call-event",3,"sent"],[1,"match-event","call-event"],[1,"call-event-main"],[1,"raw-evidence-details"]],template:function(t,n){t&1&&(a(0,"section",0)(1,"header",1)(2,"div")(3,"p",2),s(4,"Customization evidence "),a(5,"span",3),s(6,"Preview"),i()(),a(7,"h2"),s(8,"Did your rules appear in Copilot requests?"),i(),a(9,"p"),s(10,"Browse local instructions, skills, prompts, hooks, and agents. Preview evidence is based on text visible in imported VS Code model requests."),i()()(),a(11,"section",4)(12,"div",5)(13,"div")(14,"p",6)(15,"strong"),s(16),i(),a(17,"span"),s(18),i(),a(19,"span"),s(20),i()(),a(21,"p"),s(22),i(),p(23,re,10,6),p(24,ce,2,0,"p",7),p(25,le,2,0,"p",7),i(),a(26,"div",8),p(27,de,2,0,"button",9),p(28,me,3,4,"button",10),i()()(),a(29,"section",11)(30,"label",12)(31,"span"),s(32,"Search customizations"),i(),a(33,"input",13),x("ngModelChange",function(l){return n.setQuery(l)}),i()(),a(34,"label")(35,"span"),s(36,"Type"),i(),a(37,"select",14),x("ngModelChange",function(l){return n.setKindFilter(l)}),a(38,"option",15),s(39,"All types"),i(),a(40,"option",16),s(41,"Instructions"),i(),a(42,"option",17),s(43,"Skills"),i(),a(44,"option",18),s(45,"Prompts"),i(),a(46,"option",19),s(47,"Hooks"),i(),a(48,"option",20),s(49,"Agents"),i(),a(50,"option",21),s(51,"Other"),i()()(),a(52,"label")(53,"span"),s(54,"Evidence"),i(),a(55,"select",14),x("ngModelChange",function(l){return n.setStatusFilter(l)}),a(56,"option",15),s(57,"All evidence"),i(),a(58,"option",22),s(59,"Text match found"),i(),a(60,"option",23),s(61,"Read by Copilot"),i(),a(62,"option",24),s(63,"Discovered only"),i(),a(64,"option",25),s(65,"Not seen"),i()()(),a(66,"label")(67,"span"),s(68,"Workspace"),i(),a(69,"select",14),x("ngModelChange",function(l){return n.setWorkspaceFilter(l)}),P(70,pe,2,2,"option",26,D),i()()(),a(72,"details",27)(73,"summary")(74,"span"),s(75,"Advanced scan coverage"),i(),a(76,"strong"),s(77),_(78,"number"),_(79,"number"),i()(),p(80,xe,4,1)(81,ve,2,0,"p",28),i(),p(82,Fe,10,5,"section",29)(83,Ae,7,3,"section",30),i()),t&2&&(r(16),m(n.currentWorkspaceLabel()),r(2),m(n.customizationFileCountLabel()),r(2),m(n.requestTextCountLabel()),r(2),m(n.evidenceResultText()),r(),g(n.isEvidenceScanActive()?23:-1),r(),g(n.isLongRunningScan()?24:-1),r(),g(n.isStaleScan()?25:-1),r(2),g(n.isEvidenceScanActive()?27:-1),r(),g(n.showHeaderScanAction()?28:-1),r(5),v("ngModel",n.query()),r(4),v("ngModel",n.kindFilter()),r(18),v("ngModel",n.statusFilter()),r(14),v("ngModel",n.workspaceFilter()),r(),z(n.workspaceOptions()),r(7),A(" ",y(78,18,n.scanDiagnostics().roots)," folders/files checked \xB7 ",y(79,20,n.scanDiagnostics().files)," customization",n.scanDiagnostics().files===1?"":"s"," found "),r(3),g(n.scanDiagnostics().locations.length?80:81),r(2),g(n.filteredCustomizations().length?82:83))},dependencies:[U,Q,G,j,K,H,W,B,V,R],styles:['[_nghost-%COMP%]{display:block}.customizations-page[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr);gap:7px;min-height:calc(100vh - 96px)}.customizations-header[_ngcontent-%COMP%], .customizations-scan-status[_ngcontent-%COMP%], .customizations-controls[_ngcontent-%COMP%], .customizations-diagnostics[_ngcontent-%COMP%], .customizations-list[_ngcontent-%COMP%], .customization-detail[_ngcontent-%COMP%], .customizations-empty[_ngcontent-%COMP%]{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-soft)}.customizations-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:14px;border-color:color-mix(in srgb,var(--accent-2) 18%,var(--line));border-radius:13px;padding:10px 12px;background:var(--header-gradient)}.customizations-scan-status[_ngcontent-%COMP%]{display:grid;gap:4px;border-color:color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:10px;padding:7px 9px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 6%,transparent),transparent 50%),var(--surface)}.scan-status-body[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.scan-status-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.scan-summary-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--muted)!important}.scan-summary-line[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--text-strong);font-size:12px}.scan-summary-line[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:11px}.scan-summary-line[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{width:3px;height:3px;border-radius:50%;background:color-mix(in srgb,var(--accent) 62%,var(--muted));content:""}.scan-progress-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px!important;color:var(--muted-2)!important;font-size:11px!important}.scan-progress-meter[_ngcontent-%COMP%]{display:grid;gap:5px;max-width:460px;margin-top:8px}.scan-progress-meter[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.scan-progress-meter[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--text)}.scan-progress-meter[_ngcontent-%COMP%] progress[_ngcontent-%COMP%]{width:100%;height:7px;overflow:hidden;border:0;border-radius:999px;background:color-mix(in srgb,var(--surface-soft) 70%,transparent)}.scan-progress-meter[_ngcontent-%COMP%] progress[_ngcontent-%COMP%]::-webkit-progress-bar{border-radius:999px;background:color-mix(in srgb,var(--surface-soft) 70%,transparent)}.scan-progress-meter[_ngcontent-%COMP%] progress[_ngcontent-%COMP%]::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2))}.scan-progress-stats[_ngcontent-%COMP%]{margin-top:3px!important;color:var(--text)!important;font-size:11px!important;font-weight:720}.scan-warning[_ngcontent-%COMP%]{margin-top:4px!important;color:var(--warning)!important}.scan-status-actions[_ngcontent-%COMP%]{display:flex;flex:0 0 auto;align-items:center;gap:7px}.eyebrow[_ngcontent-%COMP%], .customization-kicker[_ngcontent-%COMP%]{margin:0;color:var(--muted-2);font-size:9px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}.preview-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:17px;margin-left:6px;border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));border-radius:999px;padding:0 7px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-strong, var(--accent));font-size:9px;letter-spacing:.08em}.customizations-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .customization-detail[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .customizations-empty[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:2px 0 0;color:var(--text-strong);letter-spacing:0}.customizations-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:19px;line-height:1.15}.customizations-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .customization-detail-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .customizations-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .evidence-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.35}.evidence-scan-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:30px;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));border-radius:999px;padding:6px 11px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-size:11px;font-weight:780;cursor:pointer}.evidence-scan-button[_ngcontent-%COMP%]:disabled{cursor:wait;opacity:.68}.secondary-scan-button[_ngcontent-%COMP%]{min-height:30px;border:1px solid var(--line);border-radius:999px;padding:6px 11px;background:var(--surface-soft);color:var(--text);font-size:11px;font-weight:760;cursor:pointer}.button-spinner[_ngcontent-%COMP%]{width:12px;height:12px;border:2px solid color-mix(in srgb,var(--accent) 22%,transparent);border-top-color:var(--accent);border-radius:999px;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.customizations-controls[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(3,minmax(130px,.8fr));gap:6px;align-items:end;border-radius:12px;padding:7px}.customizations-controls[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:grid;align-content:start;gap:4px;min-height:0}.customizations-controls[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--muted);font-size:10px;font-weight:760}.customizations-controls[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .customizations-controls[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:100%;height:32px;min-height:32px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:12px}.customizations-diagnostics[_ngcontent-%COMP%]{border-radius:12px;padding:0;overflow:hidden}.customizations-diagnostics[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;padding:8px 10px;color:var(--muted);font-size:11px;font-weight:760;cursor:pointer}.customizations-diagnostics[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--text-strong);font-size:12px}.customizations-diagnostics[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--muted);font-size:11px;font-weight:760}.diagnostic-list[_ngcontent-%COMP%]{display:grid;gap:1px;max-height:240px;overflow:auto;border-top:1px solid var(--line);padding:6px;background:var(--surface-soft)}.diagnostic-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;align-items:center;min-height:28px;border-radius:7px;padding:5px 7px}.diagnostic-list[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(odd){background:color-mix(in srgb,var(--accent) 4%,transparent)}.diagnostic-list[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--muted-2);font-size:10px;text-transform:uppercase}.diagnostic-list[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{overflow-wrap:anywhere;color:var(--text);font-size:11px}.diagnostic-note[_ngcontent-%COMP%]{margin:0;border-top:1px solid var(--line);padding:8px 10px;color:var(--muted);font-size:11px;background:var(--surface-soft)}.customizations-workspace[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(360px,450px) minmax(0,1fr);gap:8px;align-items:start;min-height:0}.customizations-list[_ngcontent-%COMP%], .customization-detail[_ngcontent-%COMP%], .customizations-empty[_ngcontent-%COMP%]{border-radius:13px}.customizations-list[_ngcontent-%COMP%]{position:sticky;top:66px;display:grid;align-content:start;gap:2px;max-height:calc(100vh - 138px);overflow:auto;padding:6px}.customizations-list-heading[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:2px 4px 5px;background:var(--surface);color:var(--muted);font-size:11px}.customizations-list-heading[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .customizations-empty[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:7px;padding:5px 8px;background:var(--surface-soft);color:var(--text);font:inherit;font-size:11px;font-weight:760;cursor:pointer}.customization-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;min-height:44px;border:1px solid transparent;border-radius:9px;padding:6px 7px;background:transparent;color:var(--text);text-align:left;cursor:pointer}.customization-card[_ngcontent-%COMP%]:hover, .customization-card.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 6%,var(--surface-soft))}.customization-card.sent.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 46%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--surface-soft))}.customization-card.listed.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent-2) 42%,var(--line));background:color-mix(in srgb,var(--accent-2) 7%,var(--surface-soft))}.customization-card.discovered.active[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--warning) 38%,var(--line));background:color-mix(in srgb,var(--warning) 7%,var(--surface-soft))}.customization-file-icon[_ngcontent-%COMP%]{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--accent) 12%,var(--surface-soft));color:var(--accent);font-size:10px;font-weight:850}.customization-card-main[_ngcontent-%COMP%]{display:grid;gap:1px;min-width:0}.customization-card-main[_ngcontent-%COMP%] small[_ngcontent-%COMP%], .customization-card-side[_ngcontent-%COMP%] em[_ngcontent-%COMP%], .match-group[_ngcontent-%COMP%] time[_ngcontent-%COMP%], .customization-path[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--muted);font-size:10px;font-style:normal}.customization-card-main[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{overflow:hidden;color:var(--text-strong);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.customization-card-side[_ngcontent-%COMP%]{display:grid;justify-items:end;gap:3px;color:var(--muted);font-size:10px}.customization-card-side[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--accent);font-size:10px}.customization-detail[_ngcontent-%COMP%]{display:grid;align-content:start;gap:9px;min-height:calc(100vh - 138px);padding:10px}.customization-detail-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.customization-detail-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:19px;line-height:1.15}.evidence-badge[_ngcontent-%COMP%], .customization-facts[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;min-height:27px;border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:var(--surface-soft);color:var(--text);font-size:11px;font-weight:760}.evidence-badge.sent[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 44%,var(--line));background:color-mix(in srgb,var(--accent) 10%,var(--surface-soft));color:var(--accent)}.evidence-badge.listed[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent-2) 44%,var(--line));background:color-mix(in srgb,var(--accent-2) 9%,var(--surface-soft));color:var(--accent-2)}.evidence-badge.discovered[_ngcontent-%COMP%]{color:var(--warning)}.customization-facts[_ngcontent-%COMP%]{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}.customization-facts[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:0 0 auto;min-height:24px;padding:3px 8px}.customization-facts[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--text-strong)}.evidence-summary[_ngcontent-%COMP%], .match-list[_ngcontent-%COMP%], .customization-path[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:11px;padding:10px;background:var(--surface-soft)}.evidence-summary[_ngcontent-%COMP%]{display:grid;gap:10px}.evidence-summary[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .match-list[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0;color:var(--text-strong);font-size:15px}.evidence-summary[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:var(--text)}.matched-customization-text[_ngcontent-%COMP%]{border-top:1px solid var(--line);padding-top:9px}.match-list[_ngcontent-%COMP%]{display:grid;gap:5px}.match-list[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.match-list-help[_ngcontent-%COMP%]{margin:-2px 0 2px;color:var(--muted);font-size:11px;line-height:1.35}.match-group[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}.match-group.sent[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 34%,var(--line))}.match-group.listed[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent-2) 30%,var(--line))}.match-group.discovered[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--warning) 26%,var(--line))}.match-group[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px;align-items:center;min-height:46px;padding:6px 10px;cursor:pointer}.match-group[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{color:var(--accent)}.match-group-title[_ngcontent-%COMP%]{display:grid;gap:2px;min-width:0}.match-group-title[_ngcontent-%COMP%] time[_ngcontent-%COMP%]{color:var(--muted);font-size:10px}.match-group-title[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:var(--text-strong);font-size:11px;line-height:1.2}.match-group-title[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{overflow:hidden;color:var(--muted);font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.match-group-status[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.match-group-status[_ngcontent-%COMP%]{justify-content:flex-end;min-width:0}.match-group-status[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;min-height:20px;border-radius:999px;padding:2px 7px;background:color-mix(in srgb,var(--accent) 7%,var(--surface-soft));color:var(--muted);font-size:10px;font-weight:720}.match-group-status[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--accent)}.match-group-timeline[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px;min-width:0}.timeline-marker[_ngcontent-%COMP%], .timeline-overflow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:18px;border:1px solid color-mix(in srgb,var(--line) 86%,transparent);border-radius:999px;padding:0 5px;background:color-mix(in srgb,var(--surface-soft) 88%,var(--surface));color:var(--muted);font-size:9px;font-weight:800;line-height:1}.timeline-marker.sent[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent) 54%,var(--line));background:color-mix(in srgb,var(--accent) 18%,var(--surface));color:var(--accent-strong, var(--accent))}.timeline-marker.listed[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--accent-2) 42%,var(--line));background:color-mix(in srgb,var(--accent-2) 13%,var(--surface));color:var(--accent-2)}.timeline-marker.discovered[_ngcontent-%COMP%]{border-color:color-mix(in srgb,var(--warning) 42%,var(--line));background:color-mix(in srgb,var(--warning) 12%,var(--surface));color:var(--warning)}.timeline-overflow[_ngcontent-%COMP%]{max-width:76px;border-style:dashed;white-space:nowrap}.match-group-weak[_ngcontent-%COMP%]{border:1px dashed color-mix(in srgb,var(--muted) 26%,var(--line));border-radius:999px;padding:2px 7px;color:var(--muted);font-size:10px;font-weight:760}.match-group-detail-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:8px 10px}.match-group-detail-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--muted);font-size:11px}.match-group-detail-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:0 0 auto;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:999px;padding:5px 9px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));color:var(--accent);font-size:10px;font-weight:760;cursor:pointer}.match-events[_ngcontent-%COMP%]{display:grid;gap:1px;border-top:1px solid var(--line);background:var(--surface-soft)}.match-event[_ngcontent-%COMP%]{display:block;min-height:36px;padding:7px 10px}.match-event[_ngcontent-%COMP%] + .match-event[_ngcontent-%COMP%]{border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}.call-event-main[_ngcontent-%COMP%]{display:grid;gap:3px;min-width:0}.call-event-main[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--accent-2);font-size:11px;font-weight:780}.call-event.sent[_ngcontent-%COMP%] .call-event-main[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--accent-strong, var(--accent))}.call-event-main[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--muted);font-size:11px}.call-event-main[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%]{margin:0;border-left:2px solid color-mix(in srgb,var(--accent) 48%,var(--line));border-radius:6px;padding:4px 8px;background:color-mix(in srgb,var(--surface-soft) 84%,transparent);color:var(--text);font-size:11px;line-height:1.35}.raw-evidence-details[_ngcontent-%COMP%]{margin-top:5px}.raw-evidence-details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{width:fit-content;color:var(--muted);font-size:10px;font-weight:760;cursor:pointer}.raw-evidence-details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{color:var(--text)}.raw-evidence-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:grid;gap:5px;margin-top:6px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:8px;padding:7px 8px;background:color-mix(in srgb,var(--surface) 76%,transparent)}.raw-evidence-details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--muted);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}.raw-evidence-details[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:grid;gap:4px;margin:0;padding:0;list-style:none}.raw-evidence-details[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:var(--muted);font-size:11px}.raw-evidence-details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{border-radius:999px;padding:2px 6px;background:color-mix(in srgb,var(--surface-soft) 80%,transparent);color:var(--muted);font-size:10px}.customization-path[_ngcontent-%COMP%]{display:grid;gap:4px}.customization-path[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{overflow-wrap:anywhere;color:var(--text);font-size:11px}.customizations-empty[_ngcontent-%COMP%]{display:grid;place-items:center;align-self:start;gap:8px;min-height:160px;padding:18px;text-align:center}.customizations-empty[_ngcontent-%COMP%] .evidence-scan-button[_ngcontent-%COMP%]{margin-top:2px}@media(max-width:980px){.customizations-controls[_ngcontent-%COMP%], .customizations-workspace[_ngcontent-%COMP%]{grid-template-columns:1fr}.customizations-list[_ngcontent-%COMP%]{position:static;max-height:420px}}@media(max-width:700px){.customizations-header[_ngcontent-%COMP%], .customizations-scan-status[_ngcontent-%COMP%], .customization-detail-header[_ngcontent-%COMP%]{display:grid}.scan-status-grid[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}.scan-status-body[_ngcontent-%COMP%]{display:grid}.match-group[_ngcontent-%COMP%] summary[_ngcontent-%COMP%], .match-event[_ngcontent-%COMP%]{grid-template-columns:1fr}.match-group-status[_ngcontent-%COMP%]{justify-content:flex-start}.match-group-weak[_ngcontent-%COMP%]{justify-self:start}.match-group-timeline[_ngcontent-%COMP%]{flex-wrap:wrap}}']})};export{Y as CustomizationsPageComponent};
|