create-tigra 2.1.0 → 2.1.1
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/create-tigra.js
CHANGED
|
@@ -213,6 +213,9 @@ async function main() {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
// Create .developer-role file (default: fullstack = no restrictions)
|
|
217
|
+
await fs.writeFile(path.join(targetDir, '.developer-role'), 'fullstack\n', 'utf-8');
|
|
218
|
+
|
|
216
219
|
spinner.succeed('Project scaffolded successfully!');
|
|
217
220
|
} catch (error) {
|
|
218
221
|
spinner.fail('Failed to scaffold project');
|
package/package.json
CHANGED
|
@@ -18,11 +18,13 @@ Read the file `.developer-role` in the project root to see the current role.
|
|
|
18
18
|
|
|
19
19
|
## What each role does
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
|
24
|
-
|
|
25
|
-
| `
|
|
21
|
+
Claude can always READ all files for full project context. Only WRITE access is restricted.
|
|
22
|
+
|
|
23
|
+
| Role | Can edit |
|
|
24
|
+
|------|---------|
|
|
25
|
+
| `frontend` | `client/` only. Cannot edit `server/` files. |
|
|
26
|
+
| `backend` | `server/` only. Cannot edit `client/` files. |
|
|
27
|
+
| `fullstack` | Everything. No restrictions. |
|
|
26
28
|
|
|
27
29
|
## Response format
|
|
28
30
|
|
|
@@ -31,7 +33,7 @@ After switching, confirm like this:
|
|
|
31
33
|
```
|
|
32
34
|
Role switched to **{role}**.
|
|
33
35
|
|
|
34
|
-
- frontend → client/ only
|
|
35
|
-
- backend → server/ only
|
|
36
|
-
- fullstack →
|
|
36
|
+
- frontend → can edit client/ only (can read everything)
|
|
37
|
+
- backend → can edit server/ only (can read everything)
|
|
38
|
+
- fullstack → can edit everything
|
|
37
39
|
```
|