@ryuenn3123/agentic-senior-core 1.9.1 → 1.9.2
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/.agent-context/policies/llm-judge-threshold.json +14 -5
- package/.agent-context/rules/security.md +92 -0
- package/.agent-context/state/onboarding-report.json +39 -0
- package/.cursorrules +3669 -91
- package/.windsurfrules +3716 -104
- package/bin/agentic-senior-core.js +25 -1520
- package/lib/cli/commands/init.mjs +339 -0
- package/lib/cli/commands/launch.mjs +81 -0
- package/lib/cli/commands/upgrade.mjs +165 -0
- package/lib/cli/compiler.mjs +204 -0
- package/lib/cli/constants.mjs +136 -0
- package/lib/cli/detector.mjs +211 -0
- package/lib/cli/profile-packs.mjs +94 -0
- package/lib/cli/skill-selector.mjs +210 -0
- package/lib/cli/utils.mjs +227 -0
- package/package.json +3 -1
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"selectedProfile": "
|
|
2
|
+
"selectedProfile": "beginner",
|
|
3
3
|
"profileThresholds": {
|
|
4
4
|
"beginner": {
|
|
5
|
-
"blockingSeverities": [
|
|
5
|
+
"blockingSeverities": [
|
|
6
|
+
"critical"
|
|
7
|
+
],
|
|
6
8
|
"failOnMalformedResponse": false,
|
|
7
9
|
"failOnProviderError": false
|
|
8
10
|
},
|
|
9
11
|
"balanced": {
|
|
10
|
-
"blockingSeverities": [
|
|
12
|
+
"blockingSeverities": [
|
|
13
|
+
"critical",
|
|
14
|
+
"high"
|
|
15
|
+
],
|
|
11
16
|
"failOnMalformedResponse": true,
|
|
12
17
|
"failOnProviderError": false
|
|
13
18
|
},
|
|
14
19
|
"strict": {
|
|
15
|
-
"blockingSeverities": [
|
|
20
|
+
"blockingSeverities": [
|
|
21
|
+
"critical",
|
|
22
|
+
"high",
|
|
23
|
+
"medium"
|
|
24
|
+
],
|
|
16
25
|
"failOnMalformedResponse": true,
|
|
17
26
|
"failOnProviderError": true
|
|
18
27
|
}
|
|
19
28
|
}
|
|
20
|
-
}
|
|
29
|
+
}
|
|
@@ -177,6 +177,96 @@ Permissions-Policy: camera=(), microphone=(), geolocation=()
|
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
|
|
180
|
+
## .gitignore Enforcement (Mandatory)
|
|
181
|
+
|
|
182
|
+
**If the user's INTENT is to create a new project, push to GitHub, or initialize source control, you MUST generate or verify a `.gitignore` file exists.**
|
|
183
|
+
|
|
184
|
+
### Minimum Required Entries
|
|
185
|
+
```gitignore
|
|
186
|
+
# ── Secrets & Environment ──
|
|
187
|
+
.env
|
|
188
|
+
.env.local
|
|
189
|
+
.env.*.local
|
|
190
|
+
.env.production
|
|
191
|
+
.env.staging
|
|
192
|
+
|
|
193
|
+
# ── Dependencies ──
|
|
194
|
+
node_modules/
|
|
195
|
+
vendor/
|
|
196
|
+
venv/
|
|
197
|
+
.venv/
|
|
198
|
+
__pycache__/
|
|
199
|
+
.gradle/
|
|
200
|
+
target/
|
|
201
|
+
bin/ # Go binaries
|
|
202
|
+
pkg/
|
|
203
|
+
|
|
204
|
+
# ── Build Output ──
|
|
205
|
+
dist/
|
|
206
|
+
build/
|
|
207
|
+
out/
|
|
208
|
+
*.min.js
|
|
209
|
+
*.min.css
|
|
210
|
+
.next/
|
|
211
|
+
.nuxt/
|
|
212
|
+
.output/
|
|
213
|
+
|
|
214
|
+
# ── IDE & Editor ──
|
|
215
|
+
.idea/
|
|
216
|
+
.vscode/settings.json
|
|
217
|
+
.vscode/launch.json
|
|
218
|
+
*.swp
|
|
219
|
+
*.swo
|
|
220
|
+
*~
|
|
221
|
+
|
|
222
|
+
# ── OS Artifacts ──
|
|
223
|
+
.DS_Store
|
|
224
|
+
Thumbs.db
|
|
225
|
+
Desktop.ini
|
|
226
|
+
*.lnk
|
|
227
|
+
|
|
228
|
+
# ── Logs ──
|
|
229
|
+
*.log
|
|
230
|
+
npm-debug.log*
|
|
231
|
+
yarn-debug.log*
|
|
232
|
+
pnpm-debug.log*
|
|
233
|
+
|
|
234
|
+
# ── Testing & Coverage ──
|
|
235
|
+
coverage/
|
|
236
|
+
.nyc_output/
|
|
237
|
+
*.lcov
|
|
238
|
+
|
|
239
|
+
# ── Runtime Data ──
|
|
240
|
+
*.pid
|
|
241
|
+
*.seed
|
|
242
|
+
*.pid.lock
|
|
243
|
+
|
|
244
|
+
# ── Secrets & Keys ──
|
|
245
|
+
*.pem
|
|
246
|
+
*.key
|
|
247
|
+
*.p12
|
|
248
|
+
*.jks
|
|
249
|
+
*.keystore
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Rules
|
|
253
|
+
1. **NEVER commit `.env`** — only `.env.example` with placeholder values
|
|
254
|
+
2. **Check for leaks before push** — `git diff --cached --name-only | grep -E '\.(env|pem|key)$'` should return empty
|
|
255
|
+
3. **If the project has NO `.gitignore`**, create one immediately before any `git add`
|
|
256
|
+
4. **Extend per-stack** — add language-specific patterns (e.g., `__pycache__/` for Python, `target/` for Java/Rust, `.gradle/` for Kotlin)
|
|
257
|
+
5. **Reference**: See `.agent-context/rules/git-workflow.md` for the full `.gitignore Standards` section
|
|
258
|
+
|
|
259
|
+
### MUST Commit (Whitelist)
|
|
260
|
+
```
|
|
261
|
+
.env.example # Template with placeholder values ONLY
|
|
262
|
+
.editorconfig # Consistent formatting across IDEs
|
|
263
|
+
.gitignore # This file itself
|
|
264
|
+
docker-compose.yml # Dev environment definition
|
|
265
|
+
Makefile / Taskfile # Standard dev commands
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
180
270
|
## The Security Checklist (Quick Reference)
|
|
181
271
|
|
|
182
272
|
Before any code is "done", verify:
|
|
@@ -184,6 +274,7 @@ Before any code is "done", verify:
|
|
|
184
274
|
- [ ] All inputs validated at boundaries with schemas
|
|
185
275
|
- [ ] No string concatenation in queries/commands
|
|
186
276
|
- [ ] No secrets in source code
|
|
277
|
+
- [ ] `.gitignore` exists and covers `.env`, `node_modules/`, build output, and IDE files
|
|
187
278
|
- [ ] Authentication uses established libraries
|
|
188
279
|
- [ ] Password hashing uses argon2id (or bcrypt for legacy)
|
|
189
280
|
- [ ] Authorization enforced server-side
|
|
@@ -193,3 +284,4 @@ Before any code is "done", verify:
|
|
|
193
284
|
- [ ] Error responses don't leak internal details
|
|
194
285
|
- [ ] Logging includes security events (login failures, permission denials)
|
|
195
286
|
- [ ] Dependencies audited for known vulnerabilities
|
|
287
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cliVersion": "1.9.2",
|
|
3
|
+
"generatedAt": "2026-04-08T01:58:51.014Z",
|
|
4
|
+
"operationMode": "init",
|
|
5
|
+
"selectedProfile": "beginner",
|
|
6
|
+
"selectedProfilePack": null,
|
|
7
|
+
"selectedPreset": "frontend-web",
|
|
8
|
+
"selectedStack": "typescript.md",
|
|
9
|
+
"selectedBlueprint": "api-nextjs.md",
|
|
10
|
+
"ciGuardrailsEnabled": true,
|
|
11
|
+
"setupDurationMs": 16396,
|
|
12
|
+
"selectedSkillDomains": [
|
|
13
|
+
"frontend",
|
|
14
|
+
"fullstack",
|
|
15
|
+
"cli"
|
|
16
|
+
],
|
|
17
|
+
"autoDetection": {
|
|
18
|
+
"recommendedStack": "typescript.md",
|
|
19
|
+
"recommendedBlueprint": "api-nextjs.md",
|
|
20
|
+
"confidenceLabel": "high",
|
|
21
|
+
"confidenceScore": 0.94,
|
|
22
|
+
"confidenceGap": 0.94,
|
|
23
|
+
"detectionReasoning": "Top signal Typescript won with confidence 0.94 from markers: package.json, tsconfig.json.",
|
|
24
|
+
"rankedCandidates": [
|
|
25
|
+
{
|
|
26
|
+
"stackFileName": "typescript.md",
|
|
27
|
+
"confidenceScore": 0.94,
|
|
28
|
+
"evidence": [
|
|
29
|
+
"package.json",
|
|
30
|
+
"tsconfig.json"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"evidence": [
|
|
35
|
+
"package.json",
|
|
36
|
+
"tsconfig.json"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|