gm-oc 2.0.395 → 2.0.397

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-oc",
3
- "version": "2.0.395",
3
+ "version": "2.0.397",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -24,6 +24,8 @@ Every `exec:browser` call has a 15s live window. During that window, all stdout/
24
24
 
25
25
  **Never use `await new Promise(r => setTimeout(r, N))` with N > 10000.** Use short poll loops instead (see patterns below).
26
26
 
27
+ **"Assertion failed: UV_HANDLE_CLOSING" in output** means the call exceeded 15s and was cut off — ignore the assertion noise, look at the output before it. The task was backgrounded normally.
28
+
27
29
  ## Session Pathway (`browser:`)
28
30
 
29
31
  Create a session first, use `--direct` for CDP mode (requires Chrome with remote debugging):
@@ -157,6 +159,19 @@ const items = await page.$$eval('.product-title', els => els.map(e => e.textCont
157
159
  console.log(JSON.stringify(items))
158
160
  ```
159
161
 
162
+ ### Fetch bypassing browser cache
163
+
164
+ `fetch()` inside `page.evaluate()` hits the browser cache — use `cache: 'no-store'` to get fresh content:
165
+
166
+ ```
167
+ exec:browser
168
+ const text = await page.evaluate(async () => {
169
+ const r = await fetch('./app.js', { cache: 'no-store' })
170
+ return await r.text()
171
+ })
172
+ console.log('Has feature:', text.includes('myFunction'))
173
+ ```
174
+
160
175
  ### Console Monitoring — set up listener first, then poll
161
176
 
162
177
  ```