Skip to content

Commit ab862ff

Browse files
rajbosCopilot
andcommitted
fix: rename VS Code command IDs from copilot-token-tracker to aiEngineeringFluency
- Update all 22 command IDs in package.json from 'copilot-token-tracker.*' to 'aiEngineeringFluency.*' to match the extension's display name - Update all registerCommand/executeCommand calls in extension.ts accordingly - Update status bar item ID from 'copilot-token-tracker' to 'ai-engineering-fluency' - Fix setting key 'copilot-token-tracker.sampleDataDirectory' to 'copilotTokenTracker.sampleDataDirectory' to match all other settings - Update sessionDiscovery.ts to read from the corrected setting key - Update integration test expected command IDs - Update docs and instructions to reflect new command IDs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f8701cd commit ab862ff

7 files changed

Lines changed: 58 additions & 58 deletions

File tree

.github/instructions/vscode-extension.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The entire extension's logic is contained within the `CopilotTokenTracker` class
3939

4040
- **UI Components**:
4141
1. **Status Bar**: A `vscode.StatusBarItem` (`statusBarItem`) shows a brief summary. Its tooltip provides more detail.
42-
2. **Details Panel**: The `copilot-token-tracker.showDetails` command opens a `vscode.WebviewPanel`. The content for this panel is generated dynamically as an HTML string by the `getDetailsHtml` method.
42+
2. **Details Panel**: The `aiEngineeringFluency.showDetails` command opens a `vscode.WebviewPanel`. The content for this panel is generated dynamically as an HTML string by the `getDetailsHtml` method.
4343

4444
## Developer Workflow
4545

docs/FLUENCY-LEVEL-VIEWER-TEST-PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250

251251
### Test Steps
252252
1. Run in console: `await vscode.commands.getCommands(true)`
253-
2. **Verify**: List includes `copilot-token-tracker.showFluencyLevelViewer`
253+
2. **Verify**: List includes `aiEngineeringFluency.showFluencyLevelViewer`
254254
3. Check package.json
255255
4. **Verify**: Command is listed in contributes.commands
256256
5. Run automated test: `npm test`

docs/specs/backend.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,18 +416,18 @@ All settings in VS Code user settings (global scope, Settings Sync compatible):
416416
### Commands
417417

418418
#### Core Commands
419-
- `copilot-token-tracker.configureBackend` - Guided setup wizard
420-
- `copilot-token-tracker.copyBackendConfig` - Copy config (secrets redacted)
421-
- `copilot-token-tracker.exportCurrentView` - Export filtered view as JSON
422-
- `copilot-token-tracker.setSharingProfile` - Change sharing profile
419+
- `` - Guided setup wizard
420+
- `` - Copy config (secrets redacted)
421+
- `` - Export filtered view as JSON
422+
- `` - Change sharing profile
423423

424424
#### Shared Key Management (advanced)
425-
- `copilot-token-tracker.setBackendSharedKey` - Set/update key
426-
- `copilot-token-tracker.rotateBackendSharedKey` - Rotate key
427-
- `copilot-token-tracker.clearBackendSharedKey` - Clear key
425+
- `` - Set/update key
426+
- `` - Rotate key
427+
- `` - Clear key
428428

429429
#### Data Management
430-
- `copilot-token-tracker.deleteMyData` - Delete all user data from dataset (GDPR right to erasure)
430+
- `aiEngineeringFluency.deleteMyData` - Delete all user data from dataset (GDPR right to erasure)
431431

432432
---
433433

vscode-extension/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,112 +26,112 @@
2626
"contributes": {
2727
"commands": [
2828
{
29-
"command": "copilot-token-tracker.refresh",
29+
"command": "aiEngineeringFluency.refresh",
3030
"title": "Refresh Token Usage",
3131
"category": "AI Engineering Fluency"
3232
},
3333
{
34-
"command": "copilot-token-tracker.showDetails",
34+
"command": "aiEngineeringFluency.showDetails",
3535
"title": "Show Token Usage Details",
3636
"category": "AI Engineering Fluency"
3737
},
3838
{
39-
"command": "copilot-token-tracker.showChart",
39+
"command": "aiEngineeringFluency.showChart",
4040
"title": "Show Token Usage Chart",
4141
"category": "AI Engineering Fluency"
4242
},
4343
{
44-
"command": "copilot-token-tracker.showUsageAnalysis",
44+
"command": "aiEngineeringFluency.showUsageAnalysis",
4545
"title": "Show Usage Analysis Dashboard",
4646
"category": "AI Engineering Fluency"
4747
},
4848
{
49-
"command": "copilot-token-tracker.generateDiagnosticReport",
49+
"command": "aiEngineeringFluency.generateDiagnosticReport",
5050
"title": "Generate Diagnostic Report",
5151
"category": "AI Engineering Fluency"
5252
},
5353
{
54-
"command": "copilot-token-tracker.showMaturity",
54+
"command": "aiEngineeringFluency.showMaturity",
5555
"title": "Show AI Engineering Fluency Score",
5656
"category": "AI Engineering Fluency"
5757
},
5858
{
59-
"command": "copilot-token-tracker.showFluencyLevelViewer",
59+
"command": "aiEngineeringFluency.showFluencyLevelViewer",
6060
"title": "Show Fluency Level Viewer (Debug Only)",
6161
"category": "AI Engineering Fluency"
6262
},
6363
{
64-
"command": "copilot-token-tracker.runLocalViewRegression",
64+
"command": "aiEngineeringFluency.runLocalViewRegression",
6565
"title": "Run Local View Regression (Debug Only)",
6666
"category": "AI Engineering Fluency"
6767
},
6868
{
69-
"command": "copilot-token-tracker.configureBackend",
69+
"command": "aiEngineeringFluency.configureBackend",
7070
"title": "Configure Backend",
7171
"category": "AI Engineering Fluency"
7272
},
7373
{
74-
"command": "copilot-token-tracker.copyBackendConfig",
74+
"command": "aiEngineeringFluency.copyBackendConfig",
7575
"title": "Copy Backend Config (No Secrets)",
7676
"category": "AI Engineering Fluency"
7777
},
7878
{
79-
"command": "copilot-token-tracker.exportCurrentView",
79+
"command": "aiEngineeringFluency.exportCurrentView",
8080
"title": "Export Current View (JSON)",
8181
"category": "AI Engineering Fluency"
8282
},
8383
{
84-
"command": "copilot-token-tracker.setBackendSharedKey",
84+
"command": "aiEngineeringFluency.setBackendSharedKey",
8585
"title": "Set Backend Storage Shared Key",
8686
"category": "AI Engineering Fluency"
8787
},
8888
{
89-
"command": "copilot-token-tracker.rotateBackendSharedKey",
89+
"command": "aiEngineeringFluency.rotateBackendSharedKey",
9090
"title": "Rotate Backend Storage Shared Key",
9191
"category": "AI Engineering Fluency"
9292
},
9393
{
94-
"command": "copilot-token-tracker.clearBackendSharedKey",
94+
"command": "aiEngineeringFluency.clearBackendSharedKey",
9595
"title": "Clear Backend Storage Shared Key",
9696
"category": "AI Engineering Fluency"
9797
},
9898
{
99-
"command": "copilot-token-tracker.toggleBackendWorkspaceMachineNameSync",
99+
"command": "aiEngineeringFluency.toggleBackendWorkspaceMachineNameSync",
100100
"title": "Backend: Toggle Workspace/Machine Name Sync",
101101
"category": "AI Engineering Fluency"
102102
},
103103
{
104-
"command": "copilot-token-tracker.setSharingProfile",
104+
"command": "aiEngineeringFluency.setSharingProfile",
105105
"title": "Set Sharing Profile",
106106
"category": "AI Engineering Fluency"
107107
},
108108
{
109-
"command": "copilot-token-tracker.clearAzureSettings",
109+
"command": "aiEngineeringFluency.clearAzureSettings",
110110
"title": "Clear Azure Settings",
111111
"category": "AI Engineering Fluency"
112112
},
113113
{
114-
"command": "copilot-token-tracker.clearCache",
114+
"command": "aiEngineeringFluency.clearCache",
115115
"title": "Clear Cache",
116116
"category": "AI Engineering Fluency"
117117
},
118118
{
119-
"command": "copilot-token-tracker.showDashboard",
119+
"command": "aiEngineeringFluency.showDashboard",
120120
"title": "Show Team Dashboard",
121121
"category": "AI Engineering Fluency"
122122
},
123123
{
124-
"command": "copilot-token-tracker.showEnvironmental",
124+
"command": "aiEngineeringFluency.showEnvironmental",
125125
"title": "Show Environmental Impact",
126126
"category": "AI Engineering Fluency"
127127
},
128128
{
129-
"command": "copilot-token-tracker.authenticateGitHub",
129+
"command": "aiEngineeringFluency.authenticateGitHub",
130130
"title": "Authenticate with GitHub",
131131
"category": "AI Engineering Fluency"
132132
},
133133
{
134-
"command": "copilot-token-tracker.signOutGitHub",
134+
"command": "aiEngineeringFluency.signOutGitHub",
135135
"title": "Disconnect GitHub",
136136
"category": "AI Engineering Fluency"
137137
}
@@ -281,7 +281,7 @@
281281
"default": true,
282282
"description": "Compress session log files with gzip before uploading to blob storage to reduce storage costs and bandwidth."
283283
},
284-
"copilot-token-tracker.sampleDataDirectory": {
284+
"copilotTokenTracker.sampleDataDirectory": {
285285
"type": "string",
286286
"default": "",
287287
"description": "Screenshot/demo mode: when set to a folder path, overrides all session file scanning and returns only .json/.jsonl files from this directory. Leave empty for normal operation."

vscode-extension/src/extension.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -905,14 +905,14 @@ class CopilotTokenTracker implements vscode.Disposable {
905905

906906
// Create status bar item
907907
this.statusBarItem = vscode.window.createStatusBarItem(
908-
'copilot-token-tracker',
908+
'ai-engineering-fluency',
909909
vscode.StatusBarAlignment.Right,
910910
100
911911
);
912912
this.statusBarItem.name = "AI Engineering Fluency";
913913
this.setStatusBarText("$(loading~spin) AI Fluency: Loading...");
914914
this.statusBarItem.tooltip = "AI Engineering Fluency — daily and 30-day token usage - Click to open details";
915-
this.statusBarItem.command = 'copilot-token-tracker.showDetails';
915+
this.statusBarItem.command = 'aiEngineeringFluency.showDetails';
916916
this.statusBarItem.show();
917917

918918
this.log('Status bar item created and shown');
@@ -7416,7 +7416,7 @@ ${hashtag}`;
74167416
// Execute the configureBackend command if it exists
74177417
try {
74187418
await vscode.commands.executeCommand(
7419-
"copilot-token-tracker.configureBackend",
7419+
"aiEngineeringFluency.configureBackend",
74207420
);
74217421
} catch (err) {
74227422
// If command is not registered, show settings
@@ -8406,7 +8406,7 @@ export function activate(context: vscode.ExtensionContext) {
84068406
// (see startBackendSyncAfterInitialAnalysis method)
84078407

84088408
const configureBackendCommand = vscode.commands.registerCommand(
8409-
"copilot-token-tracker.configureBackend",
8409+
"aiEngineeringFluency.configureBackend",
84108410
async () => {
84118411
await backendHandler.handleConfigureBackend();
84128412
},
@@ -8422,7 +8422,7 @@ export function activate(context: vscode.ExtensionContext) {
84228422

84238423
// Register the refresh command
84248424
const refreshCommand = vscode.commands.registerCommand(
8425-
"copilot-token-tracker.refresh",
8425+
"aiEngineeringFluency.refresh",
84268426
async () => {
84278427
tokenTracker.log("Refresh command called");
84288428
await tokenTracker.updateTokenStats();
@@ -8432,7 +8432,7 @@ export function activate(context: vscode.ExtensionContext) {
84328432

84338433
// Register the show details command
84348434
const showDetailsCommand = vscode.commands.registerCommand(
8435-
"copilot-token-tracker.showDetails",
8435+
"aiEngineeringFluency.showDetails",
84368436
async () => {
84378437
tokenTracker.log("Show details command called");
84388438
await tokenTracker.showDetails();
@@ -8441,7 +8441,7 @@ export function activate(context: vscode.ExtensionContext) {
84418441

84428442
// Register the show chart command
84438443
const showChartCommand = vscode.commands.registerCommand(
8444-
"copilot-token-tracker.showChart",
8444+
"aiEngineeringFluency.showChart",
84458445
async () => {
84468446
tokenTracker.log("Show chart command called");
84478447
await tokenTracker.showChart();
@@ -8450,7 +8450,7 @@ export function activate(context: vscode.ExtensionContext) {
84508450

84518451
// Register the show usage analysis command
84528452
const showUsageAnalysisCommand = vscode.commands.registerCommand(
8453-
"copilot-token-tracker.showUsageAnalysis",
8453+
"aiEngineeringFluency.showUsageAnalysis",
84548454
async () => {
84558455
tokenTracker.log("Show usage analysis command called");
84568456
await tokenTracker.showUsageAnalysis();
@@ -8459,7 +8459,7 @@ export function activate(context: vscode.ExtensionContext) {
84598459

84608460
// Register the show maturity / fluency score command
84618461
const showMaturityCommand = vscode.commands.registerCommand(
8462-
"copilot-token-tracker.showMaturity",
8462+
"aiEngineeringFluency.showMaturity",
84638463
async () => {
84648464
tokenTracker.log("Show maturity command called");
84658465
await tokenTracker.showMaturity();
@@ -8468,15 +8468,15 @@ export function activate(context: vscode.ExtensionContext) {
84688468

84698469
// Register the show dashboard command
84708470
const showDashboardCommand = vscode.commands.registerCommand(
8471-
"copilot-token-tracker.showDashboard",
8471+
"aiEngineeringFluency.showDashboard",
84728472
async () => {
84738473
tokenTracker.log("Show dashboard command called");
84748474
await tokenTracker.showDashboard();
84758475
},
84768476
);
84778477

84788478
const showEnvironmentalCommand = vscode.commands.registerCommand(
8479-
"copilot-token-tracker.showEnvironmental",
8479+
"aiEngineeringFluency.showEnvironmental",
84808480
async () => {
84818481
tokenTracker.log("Show environmental impact command called");
84828482
await tokenTracker.showEnvironmental();
@@ -8485,15 +8485,15 @@ export function activate(context: vscode.ExtensionContext) {
84858485

84868486
// Register the show fluency level viewer command (debug-only)
84878487
const showFluencyLevelViewerCommand = vscode.commands.registerCommand(
8488-
"copilot-token-tracker.showFluencyLevelViewer",
8488+
"aiEngineeringFluency.showFluencyLevelViewer",
84898489
async () => {
84908490
tokenTracker.log("Show fluency level viewer command called");
84918491
await tokenTracker.showFluencyLevelViewer();
84928492
},
84938493
);
84948494

84958495
const runLocalViewRegressionCommand = vscode.commands.registerCommand(
8496-
"copilot-token-tracker.runLocalViewRegression",
8496+
"aiEngineeringFluency.runLocalViewRegression",
84978497
async () => {
84988498
tokenTracker.log("Run local view regression command called");
84998499
await tokenTracker.runLocalViewRegression();
@@ -8502,7 +8502,7 @@ export function activate(context: vscode.ExtensionContext) {
85028502

85038503
// Register the generate diagnostic report command
85048504
const generateDiagnosticReportCommand = vscode.commands.registerCommand(
8505-
"copilot-token-tracker.generateDiagnosticReport",
8505+
"aiEngineeringFluency.generateDiagnosticReport",
85068506
async () => {
85078507
tokenTracker.log("Generate diagnostic report command called");
85088508
await tokenTracker.showDiagnosticReport();
@@ -8511,7 +8511,7 @@ export function activate(context: vscode.ExtensionContext) {
85118511

85128512
// Register the clear cache command
85138513
const clearCacheCommand = vscode.commands.registerCommand(
8514-
"copilot-token-tracker.clearCache",
8514+
"aiEngineeringFluency.clearCache",
85158515
async () => {
85168516
tokenTracker.log("Clear cache command called");
85178517
await tokenTracker.clearCache();
@@ -8520,7 +8520,7 @@ export function activate(context: vscode.ExtensionContext) {
85208520

85218521
// Register the GitHub authentication command
85228522
const authenticateGitHubCommand = vscode.commands.registerCommand(
8523-
"copilot-token-tracker.authenticateGitHub",
8523+
"aiEngineeringFluency.authenticateGitHub",
85248524
async () => {
85258525
tokenTracker.log("GitHub authentication command called");
85268526
await tokenTracker.authenticateWithGitHub();
@@ -8529,7 +8529,7 @@ export function activate(context: vscode.ExtensionContext) {
85298529

85308530
// Register the GitHub sign out command
85318531
const signOutGitHubCommand = vscode.commands.registerCommand(
8532-
"copilot-token-tracker.signOutGitHub",
8532+
"aiEngineeringFluency.signOutGitHub",
85338533
async () => {
85348534
tokenTracker.log("GitHub sign out command called");
85358535
await tokenTracker.signOutFromGitHub();

vscode-extension/src/sessionDiscovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export class SessionDiscovery {
246246

247247
// Screenshot/demo mode: if a sample data directory is configured, use it exclusively
248248
const sampleDir = this.deps.sampleDataDirectoryOverride?.()
249-
?? vscode.workspace.getConfiguration('copilot-token-tracker').get<string>('sampleDataDirectory');
249+
?? vscode.workspace.getConfiguration('copilotTokenTracker').get<string>('sampleDataDirectory');
250250
if (sampleDir && sampleDir.trim().length > 0) {
251251
const resolvedSampleDir = sampleDir.trim();
252252
try {

vscode-extension/test/integration/extension.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ suite('Extension Test Suite', () => {
2727
const commands = await vscode.commands.getCommands(true);
2828

2929
const expectedCommands = [
30-
'copilot-token-tracker.refresh',
31-
'copilot-token-tracker.showDetails',
32-
'copilot-token-tracker.showChart',
33-
'copilot-token-tracker.showMaturity',
34-
'copilot-token-tracker.showFluencyLevelViewer',
35-
'copilot-token-tracker.runLocalViewRegression',
36-
'copilot-token-tracker.generateDiagnosticReport'
30+
'aiEngineeringFluency.refresh',
31+
'aiEngineeringFluency.showDetails',
32+
'aiEngineeringFluency.showChart',
33+
'aiEngineeringFluency.showMaturity',
34+
'aiEngineeringFluency.showFluencyLevelViewer',
35+
'aiEngineeringFluency.runLocalViewRegression',
36+
'aiEngineeringFluency.generateDiagnosticReport'
3737
];
3838

3939
for (const expectedCommand of expectedCommands) {

0 commit comments

Comments
 (0)