Skip to content

Commit ce018c9

Browse files
committed
fix: CI failures and marketplace readiness
- Fix gosec G101 lint path in .golangci.yml (constants moved to config/embed) - Fix TestTextDescKeysResolve path in embed_test.go - Add license header and doc.go for internal/config/embed - Add VS Code marketplace fields (extensionDependencies, pricing) - Add CHANGELOG.md and update .vscodeignore Signed-off-by: ersan bilik <ersanbilik@gmail.com>
1 parent eb95695 commit ce018c9

7 files changed

Lines changed: 60 additions & 5 deletions

File tree

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ linters:
3737
# TextDescKey constants are i18n keys, not credentials
3838
- linters: [gosec]
3939
text: "G101"
40-
path: "internal/assets/embed\\.go"
40+
path: "internal/config/embed/embeds\\.go"
4141

4242
run:
4343
timeout: 5m

editors/vscode/.vscodeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ node_modules/
33
src/
44
tsconfig.json
55
vitest.config.ts
6+
vitest.workspace.ts
67
package-lock.json
78
test-insiders-sim.js
9+
*.vsix
10+
.github/
811
**/*.map
912
**/*.ts
1013
!dist/**

editors/vscode/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Changelog
2+
3+
All notable changes to the **ctx — Persistent Context for AI** extension
4+
will be documented in this file.
5+
6+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
7+
8+
## [0.9.0] — 2026-03-19
9+
10+
### Added
11+
12+
- **@ctx chat participant** with 45 slash commands covering context
13+
lifecycle, task management, session recall, and discovery
14+
- **Natural language routing** — type plain English after `@ctx` and
15+
the extension maps it to the correct handler
16+
- **Auto-bootstrap** — downloads the ctx CLI binary if not found on PATH
17+
- **Detection ring** — terminal command watcher and file edit watcher
18+
record governance violations for the MCP engine
19+
- **Status bar reminders**`$(bell) ctx` indicator for pending reminders
20+
- **Automatic hooks** — file save, git commit, dependency change, and
21+
context file change handlers
22+
- **Follow-up suggestions** — context-aware buttons after each command
23+
- **`/diag` command** — diagnose extension issues with step-by-step timing
24+
25+
### Configuration
26+
27+
- `ctx.executablePath` — path to the ctx CLI binary (default: `ctx`)
28+
29+
## [Unreleased]
30+
31+
- Marketplace publication

editors/vscode/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
"copilot",
3535
"chat"
3636
],
37+
"pricing": "Free",
38+
"extensionDependencies": [
39+
"github.copilot-chat"
40+
],
3741
"activationEvents": [
3842
"onStartupFinished"
3943
],

internal/assets/embed_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package assets
99
import (
1010
"fmt"
1111
"os"
12+
"path/filepath"
1213
"strings"
1314
"testing"
1415

@@ -114,13 +115,14 @@ func TestTextDescKeysResolve(t *testing.T) {
114115
t.Logf("verified %d TextDescKey constants", len(keys))
115116
}
116117

117-
// collectTextDescKeys extracts all TextDescKey constant values from embed.go
118-
// by parsing lines matching the pattern: TextDescKey... = "..."
118+
// collectTextDescKeys extracts all TextDescKey constant values from
119+
// config/embed/embeds.go by parsing lines matching the pattern:
120+
// TextDescKey... = "..."
119121
func collectTextDescKeys(t *testing.T) []string {
120122
t.Helper()
121-
data, err := os.ReadFile("embed.go")
123+
data, err := os.ReadFile(filepath.Join("..", "config", "embed", "embeds.go"))
122124
if err != nil {
123-
t.Fatalf("read embed.go: %v", err)
125+
t.Fatalf("read config/embed/embeds.go: %v", err)
124126
}
125127

126128
var keys []string

internal/config/embed/doc.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// / ctx: https://ctx.ist
2+
// ,'`./ do you remember?
3+
// `.,'\
4+
// \ Copyright 2026-present Context contributors.
5+
// SPDX-License-Identifier: Apache-2.0
6+
7+
// Package embed provides text description key constants and flag
8+
// description key constants used for i18n-ready CLI output strings.
9+
package embed

internal/config/embed/embeds.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// / ctx: https://ctx.ist
2+
// ,'`./ do you remember?
3+
// `.,'\
4+
// \ Copyright 2026-present Context contributors.
5+
// SPDX-License-Identifier: Apache-2.0
6+
17
package embed
28

39
const (

0 commit comments

Comments
 (0)