agcel 1.0.3 → 1.0.5
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/README.md +1 -1
- package/dist/commands/init.js +0 -25
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,4 +69,4 @@ The `agc` command-line tool is your primary interface. Application data is store
|
|
|
69
69
|
|
|
70
70
|
When working with the Antigravity IDE:
|
|
71
71
|
1. Run `agc init` to set up the environment.
|
|
72
|
-
2. Use workflows in the Agent Window (e.g., `/
|
|
72
|
+
2. Use workflows in the Agent Window (e.g., `/feature` to start developing a new feature).
|
package/dist/commands/init.js
CHANGED
|
@@ -115,33 +115,8 @@ async function initCommand() {
|
|
|
115
115
|
console.log(chalk_1.default.green('AgCel project initialization complete!'));
|
|
116
116
|
console.log(chalk_1.default.cyan('Workflows installed to .agent/workflows'));
|
|
117
117
|
console.log(chalk_1.default.cyan('Skills installed to .agc/skills'));
|
|
118
|
-
// 4. Update .gitignore
|
|
119
|
-
updateGitIgnore(process.cwd());
|
|
120
118
|
}
|
|
121
119
|
catch (error) {
|
|
122
120
|
throw error; // Re-throw to be caught by outer catch
|
|
123
121
|
}
|
|
124
122
|
}
|
|
125
|
-
function updateGitIgnore(cwd) {
|
|
126
|
-
const gitIgnorePath = path_1.default.join(cwd, '.gitignore');
|
|
127
|
-
const entriesToAdd = ['.agc', '.agents', '.agent'];
|
|
128
|
-
let content = '';
|
|
129
|
-
if (fs_1.default.existsSync(gitIgnorePath)) {
|
|
130
|
-
content = fs_1.default.readFileSync(gitIgnorePath, 'utf-8');
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
console.log(chalk_1.default.blue('Creating .gitignore...'));
|
|
134
|
-
}
|
|
135
|
-
const lines = content.split('\n').map(line => line.trim());
|
|
136
|
-
const newEntries = [];
|
|
137
|
-
for (const entry of entriesToAdd) {
|
|
138
|
-
if (!lines.includes(entry)) {
|
|
139
|
-
newEntries.push(entry);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (newEntries.length > 0) {
|
|
143
|
-
const appendContent = (content && !content.endsWith('\n') ? '\n' : '') + newEntries.join('\n') + '\n';
|
|
144
|
-
fs_1.default.appendFileSync(gitIgnorePath, appendContent);
|
|
145
|
-
console.log(chalk_1.default.green(`Added ${newEntries.join(', ')} to .gitignore`));
|
|
146
|
-
}
|
|
147
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agcel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Antigravity Context Engineering Library is a local MCP (Model Context Protocol) Server containing multiple skills, rules and workflows for end to end software development",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
"@types/node": "^20.11.19",
|
|
52
52
|
"typescript": "^5.3.3"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|