the-frame-ai 0.11.1 → 0.11.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/package.json
CHANGED
|
@@ -37,45 +37,26 @@ Parse issues based on `$ARGUMENTS`:
|
|
|
37
37
|
|
|
38
38
|
Output: "Found {N} issues to fix: {list of IDs and titles}."
|
|
39
39
|
|
|
40
|
-
### Step 2: For Each Issue —
|
|
40
|
+
### Step 2: For Each Issue — Apply Fix
|
|
41
41
|
|
|
42
42
|
For each issue in the list:
|
|
43
43
|
|
|
44
44
|
1. Read the file mentioned in the issue (`File: path/file.ts:42`)
|
|
45
45
|
2. Understand the surrounding context (±20 lines)
|
|
46
|
-
3.
|
|
46
|
+
3. Apply the fix immediately
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Output before applying:
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
52
|
[PERF-1] {title}
|
|
53
53
|
File: path/file.ts:42
|
|
54
|
-
|
|
55
|
-
Impact: {impact from report}
|
|
56
|
-
|
|
57
|
-
Proposed fix:
|
|
58
|
-
{description of what will change — 2-3 sentences}
|
|
59
|
-
|
|
60
|
-
--- BEFORE ---
|
|
61
|
-
{relevant code snippet}
|
|
62
|
-
|
|
63
|
-
--- AFTER ---
|
|
64
|
-
{fixed code snippet}
|
|
54
|
+
Applying fix: {description of what will change — 1 sentence}
|
|
65
55
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
66
|
-
Apply this fix? [y/n/skip]
|
|
67
56
|
```
|
|
68
57
|
|
|
69
|
-
Wait for user confirmation before applying.
|
|
70
|
-
|
|
71
|
-
- `y` → apply the fix, mark as done
|
|
72
|
-
- `n` → stop entirely
|
|
73
|
-
- `skip` → skip this issue, move to next
|
|
74
|
-
|
|
75
58
|
### Step 3: Apply Fix
|
|
76
59
|
|
|
77
|
-
After confirmation:
|
|
78
|
-
|
|
79
60
|
1. Apply the code change to the file
|
|
80
61
|
2. Run type check if available:
|
|
81
62
|
```bash
|
|
@@ -122,8 +103,8 @@ Update `.planning/STATE.md`:
|
|
|
122
103
|
|
|
123
104
|
## Rules
|
|
124
105
|
|
|
125
|
-
- **ALWAYS show
|
|
126
|
-
- **
|
|
106
|
+
- **ALWAYS show what's being fixed** before applying (issue ID, file, one-line description)
|
|
107
|
+
- **NEVER ask confirmation** — apply all found issues automatically
|
|
127
108
|
- **ALWAYS run typecheck + tests** after each fix
|
|
128
109
|
- **REVERT on failure** — if tests break, undo the change immediately
|
|
129
110
|
- **NEVER fix test files** — only production code
|