@moxxy/plugin-channel-http 0.33.0 → 0.34.0

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": "@moxxy/plugin-channel-http",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Request-response HTTP channel for moxxy. POST /v1/turn drives one turn synchronously; POST /v1/turn/stream returns Server-Sent Events. Bearer-token auth + allow-list permission flow (no human in the loop).",
5
5
  "keywords": [
6
6
  "moxxy",
@@ -57,19 +57,19 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "zod": "^3.24.0",
60
- "@moxxy/sdk": "0.33.0"
60
+ "@moxxy/sdk": "0.34.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "^22.10.0",
64
64
  "typescript": "^5.7.3",
65
65
  "vitest": "^2.1.8",
66
- "@moxxy/mode-default": "0.33.0",
67
- "@moxxy/core": "0.33.0",
68
- "@moxxy/runner": "0.2.38",
69
- "@moxxy/testing": "0.0.52",
70
- "@moxxy/tsconfig": "0.0.0",
71
- "@moxxy/tools-builtin": "0.0.47",
72
- "@moxxy/vitest-preset": "0.0.0"
66
+ "@moxxy/core": "0.34.0",
67
+ "@moxxy/mode-default": "0.34.0",
68
+ "@moxxy/runner": "0.2.39",
69
+ "@moxxy/testing": "0.0.53",
70
+ "@moxxy/tools-builtin": "0.1.0",
71
+ "@moxxy/vitest-preset": "0.0.0",
72
+ "@moxxy/tsconfig": "0.0.0"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsc -p tsconfig.json",
@@ -231,17 +231,18 @@ describe('HttpChannel /v1/turn/audio integration', () => {
231
231
  });
232
232
 
233
233
  describe('HttpChannel auth-disabled mode', () => {
234
+ // Uses the same port-0 + `boundPort` pattern as every other test here. It
235
+ // previously guessed a port in 50000-60000 and copied it onto a second
236
+ // channel with Object.assign, which is precisely the EADDRINUSE flake the
237
+ // helper above exists to avoid; it duly failed in CI on a docs-only PR.
234
238
  it('without authToken, /v1/turn does not require Bearer header', async () => {
235
239
  const open = new HttpChannel({
236
240
  port: 0,
237
241
  allowedTools: ['Read'],
238
242
  });
239
- const port = 50000 + Math.floor(Math.random() * 10000);
240
- const real = new HttpChannel({ port, allowedTools: ['Read'] });
241
- Object.assign(open, real);
242
243
  const openHandle = await open.start({ session: buildSession() });
243
244
  try {
244
- const res = await fetch(`http://127.0.0.1:${port}/v1/turn`, {
245
+ const res = await fetch(`http://127.0.0.1:${open.boundPort}/v1/turn`, {
245
246
  method: 'POST',
246
247
  headers: { 'content-type': 'application/json' },
247
248
  body: JSON.stringify({ prompt: 'hi' }),