@northbridge-security/secureai 0.1.13 → 0.2.0

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/.claude/README.md CHANGED
@@ -119,4 +119,3 @@ Strict setup:
119
119
  - Disable MCP servers outside of Secure AI
120
120
  - Allow searching and fetching web content
121
121
  - Do not read or edit .env secret files
122
-
@@ -5,6 +5,7 @@ After `/clear` or new session, understand recent changes and context. This comma
5
5
  ## Automation
6
6
 
7
7
  This command is triggered automatically on session start:
8
+
8
9
  - Hook checks for `.tmp/session.keep` flag
9
10
  - If flag missing: runs catchup and creates flag
10
11
  - If flag exists: skips (already caught up this session)
@@ -5,6 +5,7 @@ Implement a feature from its PRD specification.
5
5
  PRD path: $ARGUMENTS
6
6
 
7
7
  Resolve the PRD file path. The PRD is always under `docs/requirements/`. Accept both formats:
8
+
8
9
  - Full path: `docs/requirements/prd.feature-name.md`
9
10
  - Short name: `prd.feature-name.md` (prepend `docs/requirements/`)
10
11
 
@@ -70,28 +71,37 @@ Create the `*.system.ts` entry point file (excluded from coverage):
70
71
  Quality and security verification per `docs/QA.md` and `docs/SECURITY.md`.
71
72
 
72
73
  ### 6.1 Lint
74
+
73
75
  ```bash
74
76
  bunx biome check src/ tests/
75
77
  ```
78
+
76
79
  Fix all errors. Zero errors required.
77
80
 
78
81
  ### 6.2 Type Check
82
+
79
83
  ```bash
80
84
  bunx tsc --noEmit
81
85
  ```
86
+
82
87
  Fix all errors. Zero errors required.
83
88
 
84
89
  ### 6.3 Full Test Suite
90
+
85
91
  ```bash
86
92
  bun test tests/unit/
87
93
  ```
94
+
88
95
  All tests must pass. Zero failures. Coverage thresholds from `bunfig.toml`:
96
+
89
97
  - Line: 80%
90
98
  - Statement: 80%
91
99
  - Function: 60%
92
100
 
93
101
  ### 6.4 Security Review
102
+
94
103
  Verify against `docs/SECURITY.md` checklist:
104
+
95
105
  - No `console.log` in production code (Semgrep: `no-console-log-in-production`)
96
106
  - No secrets, API keys, or credentials in source (Semgrep: `no-secrets-in-code`)
97
107
  - No hardcoded credentials (Semgrep: `no-hardcoded-credentials`)
@@ -100,7 +110,9 @@ Verify against `docs/SECURITY.md` checklist:
100
110
  - Managed identity for Azure services (no connection strings in business logic)
101
111
 
102
112
  ### 6.5 Architecture Review
113
+
103
114
  Verify against `AGENTS.md` clean architecture rules:
115
+
104
116
  - Dependencies point inward (business logic does not import system files)
105
117
  - Every external dependency has an `I{Name}` interface
106
118
  - System files (`*.system.ts`) contain only thin wrappers
@@ -434,16 +434,16 @@ The workflow runs autonomously except:
434
434
 
435
435
  This command expects these tasks (create stubs if missing):
436
436
 
437
- | Task | Purpose | Required |
438
- | ------------------------------ | ---------------- | ---------------------------------------------- |
439
- | `task test` or `task qa` | Run tests | Yes |
440
- | `task lint` | Run linting | Optional |
441
- | `task deploy` | Deploy to stage | Optional |
442
- | `task git` | List git tasks | Used for detection (see 2.5) |
443
- | `task git:pr:create FILE=path` | Create PR | If detected, always used instead of MCP |
444
- | `task git:pr:update` | Update PR | If detected, always used instead of MCP |
445
- | `task git:pr:comments` | Fetch comments | Optional (MCP fallback) |
446
- | `task git:runs:log` | Download CI logs | Optional |
437
+ | Task | Purpose | Required |
438
+ | ------------------------------ | ---------------- | --------------------------------------- |
439
+ | `task test` or `task qa` | Run tests | Yes |
440
+ | `task lint` | Run linting | Optional |
441
+ | `task deploy` | Deploy to stage | Optional |
442
+ | `task git` | List git tasks | Used for detection (see 2.5) |
443
+ | `task git:pr:create FILE=path` | Create PR | If detected, always used instead of MCP |
444
+ | `task git:pr:update` | Update PR | If detected, always used instead of MCP |
445
+ | `task git:pr:comments` | Fetch comments | Optional (MCP fallback) |
446
+ | `task git:runs:log` | Download CI logs | Optional |
447
447
 
448
448
  ---
449
449
 
@@ -454,7 +454,7 @@ This command expects these tasks (create stubs if missing):
454
454
  | Tests fail | Analyze, fix, retry |
455
455
  | Deploy fails | Analyze infrastructure errors, fix, retry |
456
456
  | GoTask not available | Use GitHub MCP (detected in step 2.5) |
457
- | PR creation fails | Report error and ask user for guidance |
457
+ | PR creation fails | Report error and ask user for guidance |
458
458
  | CI fails | Download logs, fix, ask user to push |
459
459
  | Review comments unclear | Ask user for decision |
460
460
 
@@ -13,6 +13,7 @@ List or add todos in `docs/TODO.md`. This file is gitignored - personal task tra
13
13
  ### Prerequisites
14
14
 
15
15
  - If `docs/TODO.md` doesn't exist: Create it with template:
16
+
16
17
  ```markdown
17
18
  # Project TODOs
18
19
 
@@ -21,17 +22,17 @@ List or add todos in `docs/TODO.md`. This file is gitignored - personal task tra
21
22
  ## In Progress
22
23
 
23
24
  | Task | Priority | Notes |
24
- |------|----------|-------|
25
+ | ---- | -------- | ----- |
25
26
 
26
27
  ## Backlog
27
28
 
28
29
  | Task | Priority | Notes |
29
- |------|----------|-------|
30
+ | ---- | -------- | ----- |
30
31
 
31
32
  ## Done
32
33
 
33
34
  | Task | Completed | Notes |
34
- |------|-----------|-------|
35
+ | ---- | --------- | ----- |
35
36
  ```
36
37
 
37
38
  - If `docs/TODO.md` not in `.gitignore`: Add `docs/TODO.md` to `.gitignore`
@@ -71,11 +72,11 @@ List or add todos in `docs/TODO.md`. This file is gitignored - personal task tra
71
72
 
72
73
  ## Priority Guidelines
73
74
 
74
- | Priority | When |
75
- |----------|------|
76
- | High | Blocking other work, urgent |
77
- | Medium | Next planned work |
78
- | Low | Nice to have, future idea |
75
+ | Priority | When |
76
+ | -------- | --------------------------- |
77
+ | High | Blocking other work, urgent |
78
+ | Medium | Next planned work |
79
+ | Low | Nice to have, future idea |
79
80
 
80
81
  ## Examples
81
82
 
@@ -76,8 +76,8 @@ Decisions are numbered sequentially (ADR-001, ADR-002, etc.).
76
76
 
77
77
  ## Index
78
78
 
79
- | ADR | Title | Date | Status |
80
- |-----|-------|------|--------|
79
+ | ADR | Title | Date | Status |
80
+ | ------- | ---------------- | ---------- | -------- |
81
81
  | ADR-001 | Example decision | 2024-01-15 | Accepted |
82
82
 
83
83
  ---
@@ -89,14 +89,14 @@ Decisions are numbered sequentially (ADR-001, ADR-002, etc.).
89
89
 
90
90
  ## What Qualifies as an ADR?
91
91
 
92
- | Include | Exclude |
93
- |---------|---------|
94
- | Technology choices | Bug fixes |
95
- | Architecture patterns | Implementation details |
96
- | Breaking changes | Temporary workarounds |
97
- | API design decisions | Style preferences |
98
- | Security policies | Config tweaks |
99
- | Data model changes | Dependency updates (minor) |
92
+ | Include | Exclude |
93
+ | --------------------- | -------------------------- |
94
+ | Technology choices | Bug fixes |
95
+ | Architecture patterns | Implementation details |
96
+ | Breaking changes | Temporary workarounds |
97
+ | API design decisions | Style preferences |
98
+ | Security policies | Config tweaks |
99
+ | Data model changes | Dependency updates (minor) |
100
100
 
101
101
  ## Note
102
102
 
package/package.json CHANGED
@@ -123,7 +123,7 @@
123
123
  "validate-commit": "bun run packages/secureai-cli/src/cli.ts validate-commit"
124
124
  },
125
125
  "type": "module",
126
- "version": "0.1.13",
126
+ "version": "0.2.0",
127
127
  "workspaces": [
128
128
  "packages/*"
129
129
  ]