@uocnv1998/agent-kit 1.0.2 → 1.0.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/bin/index.js
CHANGED
|
@@ -126,10 +126,8 @@ try {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
console.log(`\n\n${colors.pipe} Initializing OpenSpec for the project...`);
|
|
129
|
-
//
|
|
130
|
-
|
|
131
|
-
execSync('openspec init --tools antigravity --force', { stdio: 'inherit', cwd: currentDir });
|
|
132
|
-
}
|
|
129
|
+
// Always run init to ensure tools are properly configured or refreshed
|
|
130
|
+
execSync('openspec init --tools antigravity --force', { stdio: 'inherit', cwd: currentDir });
|
|
133
131
|
|
|
134
132
|
// Automatically configure OpenSpec to generate artifacts in Vietnamese
|
|
135
133
|
const openspecConfigPath = path.join(currentDir, 'openspec', 'config.yaml');
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ When applying the agent, inform the user:
|
|
|
81
81
|
- **TDD (Test-Driven Development)**: Always write tests BEFORE writing the implementation. You must write both unit tests and feature tests. Run tests frequently and ensure the overall project test coverage rate is 80% or higher.
|
|
82
82
|
- **Clean Code**: Run the appropriate code formatter based on the project's language and framework before finalizing changes. The specific formatting command may be defined in `AGENTS.md`.
|
|
83
83
|
- **Security**: Use environment variables only in configuration files - never use `env()` directly outside of config files.
|
|
84
|
-
- **OpenSpec & TDD Integration**: Whenever executing OpenSpec workflows (e.g., `/opsx:propose`, `/opsx:apply`), you MUST enforce TDD. During `/opsx:propose`, the `tasks.md` MUST explicitly break down features into `[ ] Write failing test (RED)`, `[ ] Implement (GREEN)`, and `[ ] Refactor`. During `/opsx:apply`, you are FORBIDDEN from writing implementation code before passing tests are demonstrated.
|
|
84
|
+
- **OpenSpec & TDD Integration**: Whenever executing OpenSpec workflows (e.g., `/opsx:propose`, `/opsx:apply`), you MUST enforce TDD. You must write both unit tests and feature tests. During `/opsx:propose`, the `tasks.md` MUST explicitly break down features into `[ ] Write failing test (RED)`, `[ ] Implement (GREEN)`, and `[ ] Refactor`. During `/opsx:apply`, you are FORBIDDEN from writing implementation code before passing tests are demonstrated.
|
|
85
85
|
|
|
86
86
|
### 🌐 Documents (Workspace files)
|
|
87
87
|
|