@oomfware/cgr 0.1.6 → 0.1.7
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/dist/assets/system-prompt.md +21 -23
- package/package.json +1 -1
- package/src/assets/system-prompt.md +21 -23
|
@@ -56,7 +56,27 @@ Here are some ways to cite sources:
|
|
|
56
56
|
As shown in `src/config/database.ts:12`, the connection pool defaults to 10.
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
3.
|
|
59
|
+
3. Use footnotes when you have many citations to keep the prose flowing:
|
|
60
|
+
|
|
61
|
+
```md
|
|
62
|
+
The cache is invalidated whenever a user updates their profile. [^1]
|
|
63
|
+
|
|
64
|
+
[^1]: `src/services/user.ts:89` - updateProfile() calls cache.invalidate()
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
4. Include code snippets when they help illustrate the point:
|
|
68
|
+
|
|
69
|
+
```md
|
|
70
|
+
Signals track dependencies automatically when accessed inside an effect:
|
|
71
|
+
|
|
72
|
+
`packages/core/src/index.ts:152-158`
|
|
73
|
+
|
|
74
|
+
if (evalContext !== undefined) {
|
|
75
|
+
let node = evalContext._sources;
|
|
76
|
+
// Subscribe to the signal
|
|
77
|
+
node._source._subscribe(node);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
60
80
|
|
|
61
81
|
```md
|
|
62
82
|
### Edge Case 5: Circular Peer Dependencies (`can-place-dep.js:370-371`, `place-dep.js:230-235`)
|
|
@@ -78,28 +98,6 @@ Here are some ways to cite sources:
|
|
|
78
98
|
}
|
|
79
99
|
```
|
|
80
100
|
|
|
81
|
-
4. Use footnotes when you have many citations to keep the prose flowing:
|
|
82
|
-
|
|
83
|
-
```md
|
|
84
|
-
The cache is invalidated whenever a user updates their profile. [^1]
|
|
85
|
-
|
|
86
|
-
[^1]: `src/services/user.ts:89` - updateProfile() calls cache.invalidate()
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
5. Include code snippets when they help illustrate the point:
|
|
90
|
-
|
|
91
|
-
```md
|
|
92
|
-
Signals track dependencies automatically when accessed inside an effect:
|
|
93
|
-
|
|
94
|
-
`packages/core/src/index.ts:152-158`
|
|
95
|
-
|
|
96
|
-
if (evalContext !== undefined) {
|
|
97
|
-
let node = evalContext._sources;
|
|
98
|
-
// Subscribe to the signal
|
|
99
|
-
node._source._subscribe(node);
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
101
|
If examining multiple repositories, prefix paths with the repository name.
|
|
104
102
|
|
|
105
103
|
**Explain the why**: Don't just describe what code does; explain why it exists and how it fits into
|
package/package.json
CHANGED
|
@@ -56,7 +56,27 @@ Here are some ways to cite sources:
|
|
|
56
56
|
As shown in `src/config/database.ts:12`, the connection pool defaults to 10.
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
3.
|
|
59
|
+
3. Use footnotes when you have many citations to keep the prose flowing:
|
|
60
|
+
|
|
61
|
+
```md
|
|
62
|
+
The cache is invalidated whenever a user updates their profile. [^1]
|
|
63
|
+
|
|
64
|
+
[^1]: `src/services/user.ts:89` - updateProfile() calls cache.invalidate()
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
4. Include code snippets when they help illustrate the point:
|
|
68
|
+
|
|
69
|
+
```md
|
|
70
|
+
Signals track dependencies automatically when accessed inside an effect:
|
|
71
|
+
|
|
72
|
+
`packages/core/src/index.ts:152-158`
|
|
73
|
+
|
|
74
|
+
if (evalContext !== undefined) {
|
|
75
|
+
let node = evalContext._sources;
|
|
76
|
+
// Subscribe to the signal
|
|
77
|
+
node._source._subscribe(node);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
60
80
|
|
|
61
81
|
```md
|
|
62
82
|
### Edge Case 5: Circular Peer Dependencies (`can-place-dep.js:370-371`, `place-dep.js:230-235`)
|
|
@@ -78,28 +98,6 @@ Here are some ways to cite sources:
|
|
|
78
98
|
}
|
|
79
99
|
```
|
|
80
100
|
|
|
81
|
-
4. Use footnotes when you have many citations to keep the prose flowing:
|
|
82
|
-
|
|
83
|
-
```md
|
|
84
|
-
The cache is invalidated whenever a user updates their profile. [^1]
|
|
85
|
-
|
|
86
|
-
[^1]: `src/services/user.ts:89` - updateProfile() calls cache.invalidate()
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
5. Include code snippets when they help illustrate the point:
|
|
90
|
-
|
|
91
|
-
```md
|
|
92
|
-
Signals track dependencies automatically when accessed inside an effect:
|
|
93
|
-
|
|
94
|
-
`packages/core/src/index.ts:152-158`
|
|
95
|
-
|
|
96
|
-
if (evalContext !== undefined) {
|
|
97
|
-
let node = evalContext._sources;
|
|
98
|
-
// Subscribe to the signal
|
|
99
|
-
node._source._subscribe(node);
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
101
|
If examining multiple repositories, prefix paths with the repository name.
|
|
104
102
|
|
|
105
103
|
**Explain the why**: Don't just describe what code does; explain why it exists and how it fits into
|