@nolrm/contextkit 0.7.3 → 0.7.4
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/lib/commands/check.js
CHANGED
|
@@ -56,8 +56,8 @@ class CheckCommand {
|
|
|
56
56
|
|
|
57
57
|
async checkManifest(config) {
|
|
58
58
|
// Check manifest schema
|
|
59
|
-
if (!config.
|
|
60
|
-
this.warnings.push('Manifest missing "
|
|
59
|
+
if (!config.ck) {
|
|
60
|
+
this.warnings.push('Manifest missing "ck" field (should be 1)');
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
if (!config.version) {
|
package/lib/commands/publish.js
CHANGED
|
@@ -49,7 +49,7 @@ class PublishCommand {
|
|
|
49
49
|
'.git'
|
|
50
50
|
];
|
|
51
51
|
|
|
52
|
-
await this.
|
|
52
|
+
await this.copyContextKitFiles('.contextkit', packageDir, excludePatterns);
|
|
53
53
|
|
|
54
54
|
// Create package.json for the published package
|
|
55
55
|
const config = await this.loadConfig();
|
|
@@ -57,8 +57,8 @@ class PublishCommand {
|
|
|
57
57
|
name: name,
|
|
58
58
|
version: version,
|
|
59
59
|
description: `ContextKit configuration for ${config.project_name || 'project'}`,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
contextKit: {
|
|
61
|
+
ck: config.ck || 1,
|
|
62
62
|
profile: config.profile,
|
|
63
63
|
generated_at: new Date().toISOString(),
|
|
64
64
|
published_at: new Date().toISOString()
|
|
@@ -140,7 +140,7 @@ ${version} - Published ${new Date().toISOString().split('T')[0]}
|
|
|
140
140
|
console.log(chalk.dim(`Registry location: ${this.registryPath}`));
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
async
|
|
143
|
+
async copyContextKitFiles(sourceDir, targetDir, excludePatterns) {
|
|
144
144
|
const files = await fs.readdir(sourceDir, { withFileTypes: true });
|
|
145
145
|
|
|
146
146
|
for (const file of files) {
|
|
@@ -158,7 +158,7 @@ ${version} - Published ${new Date().toISOString().split('T')[0]}
|
|
|
158
158
|
|
|
159
159
|
if (file.isDirectory()) {
|
|
160
160
|
await fs.ensureDir(targetPath);
|
|
161
|
-
await this.
|
|
161
|
+
await this.copyContextKitFiles(sourcePath, targetPath, excludePatterns);
|
|
162
162
|
} else {
|
|
163
163
|
await fs.copy(sourcePath, targetPath);
|
|
164
164
|
}
|
|
@@ -51,8 +51,8 @@ ${this.getStandardsBlock()}
|
|
|
51
51
|
settings['github.copilot.chat.codeGeneration.instructions'] = [
|
|
52
52
|
{ file: '.github/copilot-instructions.md' }
|
|
53
53
|
];
|
|
54
|
-
settings['
|
|
55
|
-
settings['
|
|
54
|
+
settings['contextKit.standardsPath'] = '.contextkit/standards';
|
|
55
|
+
settings['contextKit.templatesPath'] = '.contextkit/templates';
|
|
56
56
|
|
|
57
57
|
await fs.writeJson(settingsPath, settings, { spaces: 2 });
|
|
58
58
|
}
|
package/lib/utils/git-hooks.js
CHANGED
|
@@ -154,7 +154,6 @@ fi
|
|
|
154
154
|
|
|
155
155
|
// Add new hooks
|
|
156
156
|
const hooks = [
|
|
157
|
-
{ name: 'pre-commit', script: '.contextkit/hooks/pre-commit.sh' },
|
|
158
157
|
{ name: 'pre-push', script: '.contextkit/hooks/pre-push.sh' },
|
|
159
158
|
{ name: 'commit-msg', script: '.contextkit/hooks/commit-msg.sh' }
|
|
160
159
|
];
|
|
@@ -184,8 +183,8 @@ ${scriptPath}
|
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
async backupExistingHooks() {
|
|
187
|
-
const hooks = ['pre-
|
|
188
|
-
|
|
186
|
+
const hooks = ['pre-push', 'commit-msg'];
|
|
187
|
+
|
|
189
188
|
for (const hook of hooks) {
|
|
190
189
|
const hookPath = `${this.hooksDir}/${hook}`;
|
|
191
190
|
if (fs.existsSync(hookPath)) {
|
|
@@ -208,8 +207,8 @@ ${scriptPath}
|
|
|
208
207
|
async uninstallHooks() {
|
|
209
208
|
console.log(chalk.yellow('🪝 Removing Git hooks...'));
|
|
210
209
|
|
|
211
|
-
const hooks = ['pre-
|
|
212
|
-
|
|
210
|
+
const hooks = ['pre-push', 'commit-msg'];
|
|
211
|
+
|
|
213
212
|
for (const hook of hooks) {
|
|
214
213
|
const hookPath = `${this.hooksDir}/${hook}`;
|
|
215
214
|
const backupPath = `${hookPath}.backup`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nolrm/contextkit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "ContextKit - Context Engineering for AI Development. Provide rich context to AI through structured MD files with standards, code guides, and documentation. Works with Cursor, Claude, Aider, VS Code Copilot, and more.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|