Skip to content

Commit e4da259

Browse files
committed
chore: pin agent-cdp 1.6.0
1 parent 6d5597c commit e4da259

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/__tests__/cli-agent-cdp.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ afterEach(() => {
1818
});
1919

2020
test('agent-cdp passthrough pins agent-cdp package version', () => {
21-
assert.equal(AGENT_CDP_PACKAGE, 'agent-cdp@1.5.2');
21+
assert.equal(AGENT_CDP_PACKAGE, 'agent-cdp@1.6.0');
2222
assert.deepEqual(
2323
buildAgentCdpNpmExecArgs(['memory', 'usage', 'sample', '--label', 'baseline', '--gc']),
2424
[
2525
'exec',
2626
'--yes',
2727
'--package',
28-
'agent-cdp@1.5.2',
28+
'agent-cdp@1.6.0',
2929
'--',
3030
'agent-cdp',
3131
'memory',
@@ -39,7 +39,7 @@ test('agent-cdp passthrough pins agent-cdp package version', () => {
3939
});
4040

4141
test('agent-cdp docs mention the pinned package version', () => {
42-
assert.match(fs.readFileSync('website/docs/docs/commands.md', 'utf8'), /agent-cdp@1\.5\.2/);
42+
assert.match(fs.readFileSync('website/docs/docs/commands.md', 'utf8'), /agent-cdp@1\.6\.0/);
4343
});
4444

4545
test('agent-cdp streams through npm exec and returns downstream exit code', async () => {
@@ -61,7 +61,7 @@ test('agent-cdp streams through npm exec and returns downstream exit code', asyn
6161
'exec',
6262
'--yes',
6363
'--package',
64-
'agent-cdp@1.5.2',
64+
'agent-cdp@1.6.0',
6565
'--',
6666
'agent-cdp',
6767
'target',

src/cli/commands/agent-cdp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { runCmdStreaming } from '../../utils/exec.ts';
22

3-
const AGENT_CDP_VERSION = '1.5.2';
3+
const AGENT_CDP_VERSION = '1.6.0';
44
export const AGENT_CDP_PACKAGE = `agent-cdp@${AGENT_CDP_VERSION}`;
55
const AGENT_CDP_BIN = 'agent-cdp';
66

website/docs/docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ agent-device agent-cdp memory snapshot leak-triplet --baseline ms_1 --action ms_
692692
agent-device agent-cdp memory snapshot retainers --snapshot ms_3 --id <node-id> --depth 8 --limit 10
693693
```
694694
695-
- `agent-cdp` dynamically runs pinned `agent-cdp@1.5.2` through npm and passes arguments through 1:1.
695+
- `agent-cdp` dynamically runs pinned `agent-cdp@1.6.0` through npm and passes arguments through 1:1.
696696
- Use it when a React Native or Expo app exposes a Metro CDP target and the task needs JavaScript heap usage, heap snapshots, allocation hotspots, retained-object diffs, retaining paths, or a small runtime eval to confirm JS state.
697697
- Start with `memory usage sample --gc` for a quick JS heap growth signal. Use snapshot diff and `leak-triplet` for proof that objects stayed retained after cleanup.
698698
- Until `agent-cdp` has a compact leak report command, synthesize one from `memory usage diff`, `memory snapshot diff`, `memory snapshot leak-triplet`, and `memory snapshot retainers`.

0 commit comments

Comments
 (0)