@0xmaxma/claude-gateway 2.1.2 → 2.1.4

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.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/dist/agent/dreaming/reviewer.js +1 -1
  3. package/dist/agent/dreaming/reviewer.js.map +1 -1
  4. package/dist/agent/knowledge/shared-promote.d.ts +18 -29
  5. package/dist/agent/knowledge/shared-promote.d.ts.map +1 -1
  6. package/dist/agent/knowledge/shared-promote.js +26 -46
  7. package/dist/agent/knowledge/shared-promote.js.map +1 -1
  8. package/dist/agent/runner.d.ts +2 -1
  9. package/dist/agent/runner.d.ts.map +1 -1
  10. package/dist/agent/runner.js +2 -2
  11. package/dist/agent/runner.js.map +1 -1
  12. package/dist/agent/skill-learning/index.d.ts.map +1 -1
  13. package/dist/agent/skill-learning/index.js +2 -9
  14. package/dist/agent/skill-learning/index.js.map +1 -1
  15. package/dist/agent/skill-learning/telemetry.js +1 -1
  16. package/dist/agent/skill-learning/telemetry.js.map +1 -1
  17. package/dist/agent/skill-learning/trigger.d.ts +0 -1
  18. package/dist/agent/skill-learning/trigger.d.ts.map +1 -1
  19. package/dist/agent/skill-learning/trigger.js +1 -5
  20. package/dist/agent/skill-learning/trigger.js.map +1 -1
  21. package/dist/agent/skill-learning/types.d.ts +1 -3
  22. package/dist/agent/skill-learning/types.d.ts.map +1 -1
  23. package/dist/api/packages.js +7 -7
  24. package/dist/api/packages.js.map +1 -1
  25. package/dist/api/voice-call-router.js +1 -1
  26. package/dist/api/voice-call-router.js.map +1 -1
  27. package/dist/api/voice-router.js +4 -4
  28. package/dist/api/voice-router.js.map +1 -1
  29. package/dist/api/voice-settings-router.d.ts.map +1 -1
  30. package/dist/api/voice-settings-router.js +18 -4
  31. package/dist/api/voice-settings-router.js.map +1 -1
  32. package/dist/apps/agent-manager.d.ts +15 -0
  33. package/dist/apps/agent-manager.d.ts.map +1 -1
  34. package/dist/apps/agent-manager.js +66 -1
  35. package/dist/apps/agent-manager.js.map +1 -1
  36. package/dist/apps/compose-generator.d.ts +4 -0
  37. package/dist/apps/compose-generator.d.ts.map +1 -1
  38. package/dist/apps/compose-generator.js +19 -3
  39. package/dist/apps/compose-generator.js.map +1 -1
  40. package/dist/apps/installer.d.ts +7 -3
  41. package/dist/apps/installer.d.ts.map +1 -1
  42. package/dist/apps/installer.js +84 -18
  43. package/dist/apps/installer.js.map +1 -1
  44. package/dist/apps/registry.d.ts +1 -0
  45. package/dist/apps/registry.d.ts.map +1 -1
  46. package/dist/build-provenance.json +4 -4
  47. package/dist/cli/commands/update.d.ts.map +1 -1
  48. package/dist/cli/commands/update.js +48 -17
  49. package/dist/cli/commands/update.js.map +1 -1
  50. package/dist/cli/index.d.ts.map +1 -1
  51. package/dist/cli/index.js +3 -2
  52. package/dist/cli/index.js.map +1 -1
  53. package/dist/orchestration/config.d.ts +38 -0
  54. package/dist/orchestration/config.d.ts.map +1 -1
  55. package/dist/orchestration/config.js +16 -5
  56. package/dist/orchestration/config.js.map +1 -1
  57. package/dist/orchestration/delivery.d.ts.map +1 -1
  58. package/dist/orchestration/delivery.js +17 -8
  59. package/dist/orchestration/delivery.js.map +1 -1
  60. package/dist/orchestration/display-stream.d.ts +5 -2
  61. package/dist/orchestration/display-stream.d.ts.map +1 -1
  62. package/dist/orchestration/display-stream.js +10 -10
  63. package/dist/orchestration/display-stream.js.map +1 -1
  64. package/dist/orchestration/progress-review.js +1 -1
  65. package/dist/orchestration/progress-review.js.map +1 -1
  66. package/dist/orchestration/report-promise.d.ts +0 -4
  67. package/dist/orchestration/report-promise.d.ts.map +1 -1
  68. package/dist/orchestration/report-promise.js +0 -29
  69. package/dist/orchestration/report-promise.js.map +1 -1
  70. package/dist/orchestration/response-schema.d.ts +9 -0
  71. package/dist/orchestration/response-schema.d.ts.map +1 -1
  72. package/dist/orchestration/response-schema.js +14 -1
  73. package/dist/orchestration/response-schema.js.map +1 -1
  74. package/dist/orchestration/runtime.d.ts.map +1 -1
  75. package/dist/orchestration/runtime.js +43 -26
  76. package/dist/orchestration/runtime.js.map +1 -1
  77. package/dist/orchestration/speech.d.ts +11 -2
  78. package/dist/orchestration/speech.d.ts.map +1 -1
  79. package/dist/orchestration/speech.js +25 -5
  80. package/dist/orchestration/speech.js.map +1 -1
  81. package/dist/orchestration/store.d.ts +11 -0
  82. package/dist/orchestration/store.d.ts.map +1 -1
  83. package/dist/orchestration/store.js +13 -1
  84. package/dist/orchestration/store.js.map +1 -1
  85. package/dist/orchestration/telegram-speech.d.ts.map +1 -1
  86. package/dist/orchestration/telegram-speech.js +0 -2
  87. package/dist/orchestration/telegram-speech.js.map +1 -1
  88. package/dist/orchestration/unanswered-inputs.d.ts +9 -0
  89. package/dist/orchestration/unanswered-inputs.d.ts.map +1 -1
  90. package/dist/orchestration/unanswered-inputs.js +39 -4
  91. package/dist/orchestration/unanswered-inputs.js.map +1 -1
  92. package/dist/packages/registry.d.ts +22 -3
  93. package/dist/packages/registry.d.ts.map +1 -1
  94. package/dist/packages/registry.js +33 -15
  95. package/dist/packages/registry.js.map +1 -1
  96. package/dist/ui/voice-call-client.d.ts +0 -14
  97. package/dist/ui/voice-call-client.d.ts.map +1 -1
  98. package/dist/ui/voice-call-client.js +1 -6
  99. package/dist/ui/voice-call-client.js.map +1 -1
  100. package/dist/ui/voice-call-ui.d.ts +3 -0
  101. package/dist/ui/voice-call-ui.d.ts.map +1 -1
  102. package/dist/ui/voice-call-ui.js +2 -1
  103. package/dist/ui/voice-call-ui.js.map +1 -1
  104. package/dist/voice/errors.d.ts +1 -3
  105. package/dist/voice/errors.d.ts.map +1 -1
  106. package/dist/voice/errors.js +8 -3
  107. package/dist/voice/errors.js.map +1 -1
  108. package/dist/voice/fast-ack.d.ts +13 -3
  109. package/dist/voice/fast-ack.d.ts.map +1 -1
  110. package/dist/voice/fast-ack.js +33 -15
  111. package/dist/voice/fast-ack.js.map +1 -1
  112. package/dist/voice/notes.d.ts.map +1 -1
  113. package/dist/voice/notes.js +1 -0
  114. package/dist/voice/notes.js.map +1 -1
  115. package/dist/voice/providers/elevenlabs-stt.d.ts +5 -1
  116. package/dist/voice/providers/elevenlabs-stt.d.ts.map +1 -1
  117. package/dist/voice/providers/elevenlabs-stt.js +5 -1
  118. package/dist/voice/providers/elevenlabs-stt.js.map +1 -1
  119. package/dist/voice/providers/registry.d.ts +5 -2
  120. package/dist/voice/providers/registry.d.ts.map +1 -1
  121. package/dist/voice/providers/registry.js +4 -3
  122. package/dist/voice/providers/registry.js.map +1 -1
  123. package/dist/voice/session.d.ts +16 -3
  124. package/dist/voice/session.d.ts.map +1 -1
  125. package/dist/voice/session.js +78 -15
  126. package/dist/voice/session.js.map +1 -1
  127. package/dist/voice/types.d.ts +14 -0
  128. package/dist/voice/types.d.ts.map +1 -1
  129. package/dist/voice/types.js +6 -1
  130. package/dist/voice/types.js.map +1 -1
  131. package/mcp/tools/apps/skills/create-app-yaml/SKILL.md +1 -1
  132. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PCM16 = exports.VoiceError = void 0;
3
+ exports.VOICE_CALL_VAD = exports.PCM16 = exports.VoiceError = void 0;
4
4
  exports.hasSpokenWords = hasSpokenWords;
5
5
  exports.validateAudioFormat = validateAudioFormat;
6
6
  class VoiceError extends Error {
@@ -19,4 +19,9 @@ function validateAudioFormat(format) {
19
19
  if (format.encoding !== 'pcm_s16le' || format.channels !== 1 || ![8000, 16000, 22050, 24000, 44100, 48000].includes(format.sampleRate))
20
20
  throw new VoiceError('UNSUPPORTED_AUDIO_FORMAT');
21
21
  }
22
+ /** The `/call` page's acoustic tuning for endpointing. These are microphone-level heuristics,
23
+ * not protocol timing: the server then waits `voice.turns.silenceCommitMs`
24
+ * (0 commits at once) after `speech.ended` before it commits an utterance. Levels are RMS of
25
+ * float samples in [-1, 1]. */
26
+ exports.VOICE_CALL_VAD = { startMs: 120, endMs: 350, ratio: 3, minLevel: 0.012, initialNoise: 0.004, noiseAdapt: 0.05, bargeInRatio: 2, bargeInMs: 250 };
22
27
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/voice/types.ts"],"names":[],"mappings":";;;AA6BA,wCAA4F;AAE5F,kDAEC;AATD,MAAa,UAAW,SAAQ,KAAK;IACnC,YAAqB,IAAY;QAAI,KAAK,CAAC,IAAI,CAAC,CAAC;QAA5B,SAAI,GAAJ,IAAI,CAAQ;QAAiB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAAC,CAAC;CAC9E;AAFD,gCAEC;AACD;oFACoF;AACpF,SAAgB,cAAc,CAAC,IAAY,IAAa,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/E,QAAA,KAAK,GAAgB,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;AAC5F,SAAgB,mBAAmB,CAAC,MAAmB;IACrD,IAAI,MAAM,CAAC,QAAQ,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAC3L,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/voice/types.ts"],"names":[],"mappings":";;;AA6BA,wCAA4F;AAE5F,kDAEC;AATD,MAAa,UAAW,SAAQ,KAAK;IACnC,YAAqB,IAAY;QAAI,KAAK,CAAC,IAAI,CAAC,CAAC;QAA5B,SAAI,GAAJ,IAAI,CAAQ;QAAiB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAAC,CAAC;CAC9E;AAFD,gCAEC;AACD;oFACoF;AACpF,SAAgB,cAAc,CAAC,IAAY,IAAa,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC/E,QAAA,KAAK,GAAgB,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;AAC5F,SAAgB,mBAAmB,CAAC,MAAmB;IACrD,IAAI,MAAM,CAAC,QAAQ,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAC3L,CAAC;AAED;;;+BAG+B;AAClB,QAAA,cAAc,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC"}
@@ -95,7 +95,7 @@ Rules for environment variables:
95
95
  Show the generated `app.yaml` to the user and explain:
96
96
  1. They must fill in `commit:` with a 40-char hex commit hash before publishing
97
97
  2. They can add a `healthcheck:` if the service has a health endpoint
98
- 3. If the app has an agent, they can add an `agent:` service block (`path`, `name`). Add `isolate_memory: true` to it when the agent serves many unrelated users, so each conversation keeps its own memory
98
+ 3. If the app has an agent, they can add an `agent:` service block (`path`, `name`). Add `isolate_memory: true` to it when the agent serves many unrelated users, so each conversation keeps its own memory. `path` must be a directory inside the app, such as `./agent`, never the app directory itself. The agent container gets none of the app's secrets by default; list the ones it needs, such as an API token, in `env: [AGENT_API_TOKEN]`. Each name must be a secret that another service declares in its `environment`
99
99
  4. The `rate_limit` is requests per second — adjust to match expected load
100
100
  5. **Validate before publishing** — run `POST /api/v1/apps/inspect` with `local_path` (or the `inspect_app` MCP tool) pointed at the app directory. This runs the same manifest validation as install without needing a pinned commit, so a missing `host` or other schema error is caught locally instead of failing the install wizard after publish.
101
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmaxma/claude-gateway",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Multi-agent gateway for Claude",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,7 @@
35
35
  "pretest:unit": "npm run build && npm run typecheck:tests",
36
36
  "test": "NODE_OPTIONS=--max-old-space-size=1536 jest",
37
37
  "test:unit": "jest --testPathPattern=unit",
38
+ "lint:semantic-regex": "jest tests/unit/no-semantic-regex.test.ts",
38
39
  "test:e2e": "jest --testPathPattern=tests/e2e --forceExit",
39
40
  "integration": "jest --testPathPattern=integration --testTimeout=15000",
40
41
  "integration:ma": "jest --testPathPattern=multi-agent --testTimeout=15000",