@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.
- package/README.md +1 -1
- package/dist/agent/dreaming/reviewer.js +1 -1
- package/dist/agent/dreaming/reviewer.js.map +1 -1
- package/dist/agent/knowledge/shared-promote.d.ts +18 -29
- package/dist/agent/knowledge/shared-promote.d.ts.map +1 -1
- package/dist/agent/knowledge/shared-promote.js +26 -46
- package/dist/agent/knowledge/shared-promote.js.map +1 -1
- package/dist/agent/runner.d.ts +2 -1
- package/dist/agent/runner.d.ts.map +1 -1
- package/dist/agent/runner.js +2 -2
- package/dist/agent/runner.js.map +1 -1
- package/dist/agent/skill-learning/index.d.ts.map +1 -1
- package/dist/agent/skill-learning/index.js +2 -9
- package/dist/agent/skill-learning/index.js.map +1 -1
- package/dist/agent/skill-learning/telemetry.js +1 -1
- package/dist/agent/skill-learning/telemetry.js.map +1 -1
- package/dist/agent/skill-learning/trigger.d.ts +0 -1
- package/dist/agent/skill-learning/trigger.d.ts.map +1 -1
- package/dist/agent/skill-learning/trigger.js +1 -5
- package/dist/agent/skill-learning/trigger.js.map +1 -1
- package/dist/agent/skill-learning/types.d.ts +1 -3
- package/dist/agent/skill-learning/types.d.ts.map +1 -1
- package/dist/api/packages.js +7 -7
- package/dist/api/packages.js.map +1 -1
- package/dist/api/voice-call-router.js +1 -1
- package/dist/api/voice-call-router.js.map +1 -1
- package/dist/api/voice-router.js +4 -4
- package/dist/api/voice-router.js.map +1 -1
- package/dist/api/voice-settings-router.d.ts.map +1 -1
- package/dist/api/voice-settings-router.js +18 -4
- package/dist/api/voice-settings-router.js.map +1 -1
- package/dist/apps/agent-manager.d.ts +15 -0
- package/dist/apps/agent-manager.d.ts.map +1 -1
- package/dist/apps/agent-manager.js +66 -1
- package/dist/apps/agent-manager.js.map +1 -1
- package/dist/apps/compose-generator.d.ts +4 -0
- package/dist/apps/compose-generator.d.ts.map +1 -1
- package/dist/apps/compose-generator.js +19 -3
- package/dist/apps/compose-generator.js.map +1 -1
- package/dist/apps/installer.d.ts +7 -3
- package/dist/apps/installer.d.ts.map +1 -1
- package/dist/apps/installer.js +84 -18
- package/dist/apps/installer.js.map +1 -1
- package/dist/apps/registry.d.ts +1 -0
- package/dist/apps/registry.d.ts.map +1 -1
- package/dist/build-provenance.json +4 -4
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +48 -17
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/orchestration/config.d.ts +38 -0
- package/dist/orchestration/config.d.ts.map +1 -1
- package/dist/orchestration/config.js +16 -5
- package/dist/orchestration/config.js.map +1 -1
- package/dist/orchestration/delivery.d.ts.map +1 -1
- package/dist/orchestration/delivery.js +17 -8
- package/dist/orchestration/delivery.js.map +1 -1
- package/dist/orchestration/display-stream.d.ts +5 -2
- package/dist/orchestration/display-stream.d.ts.map +1 -1
- package/dist/orchestration/display-stream.js +10 -10
- package/dist/orchestration/display-stream.js.map +1 -1
- package/dist/orchestration/progress-review.js +1 -1
- package/dist/orchestration/progress-review.js.map +1 -1
- package/dist/orchestration/report-promise.d.ts +0 -4
- package/dist/orchestration/report-promise.d.ts.map +1 -1
- package/dist/orchestration/report-promise.js +0 -29
- package/dist/orchestration/report-promise.js.map +1 -1
- package/dist/orchestration/response-schema.d.ts +9 -0
- package/dist/orchestration/response-schema.d.ts.map +1 -1
- package/dist/orchestration/response-schema.js +14 -1
- package/dist/orchestration/response-schema.js.map +1 -1
- package/dist/orchestration/runtime.d.ts.map +1 -1
- package/dist/orchestration/runtime.js +43 -26
- package/dist/orchestration/runtime.js.map +1 -1
- package/dist/orchestration/speech.d.ts +11 -2
- package/dist/orchestration/speech.d.ts.map +1 -1
- package/dist/orchestration/speech.js +25 -5
- package/dist/orchestration/speech.js.map +1 -1
- package/dist/orchestration/store.d.ts +11 -0
- package/dist/orchestration/store.d.ts.map +1 -1
- package/dist/orchestration/store.js +13 -1
- package/dist/orchestration/store.js.map +1 -1
- package/dist/orchestration/telegram-speech.d.ts.map +1 -1
- package/dist/orchestration/telegram-speech.js +0 -2
- package/dist/orchestration/telegram-speech.js.map +1 -1
- package/dist/orchestration/unanswered-inputs.d.ts +9 -0
- package/dist/orchestration/unanswered-inputs.d.ts.map +1 -1
- package/dist/orchestration/unanswered-inputs.js +39 -4
- package/dist/orchestration/unanswered-inputs.js.map +1 -1
- package/dist/packages/registry.d.ts +22 -3
- package/dist/packages/registry.d.ts.map +1 -1
- package/dist/packages/registry.js +33 -15
- package/dist/packages/registry.js.map +1 -1
- package/dist/ui/voice-call-client.d.ts +0 -14
- package/dist/ui/voice-call-client.d.ts.map +1 -1
- package/dist/ui/voice-call-client.js +1 -6
- package/dist/ui/voice-call-client.js.map +1 -1
- package/dist/ui/voice-call-ui.d.ts +3 -0
- package/dist/ui/voice-call-ui.d.ts.map +1 -1
- package/dist/ui/voice-call-ui.js +2 -1
- package/dist/ui/voice-call-ui.js.map +1 -1
- package/dist/voice/errors.d.ts +1 -3
- package/dist/voice/errors.d.ts.map +1 -1
- package/dist/voice/errors.js +8 -3
- package/dist/voice/errors.js.map +1 -1
- package/dist/voice/fast-ack.d.ts +13 -3
- package/dist/voice/fast-ack.d.ts.map +1 -1
- package/dist/voice/fast-ack.js +33 -15
- package/dist/voice/fast-ack.js.map +1 -1
- package/dist/voice/notes.d.ts.map +1 -1
- package/dist/voice/notes.js +1 -0
- package/dist/voice/notes.js.map +1 -1
- package/dist/voice/providers/elevenlabs-stt.d.ts +5 -1
- package/dist/voice/providers/elevenlabs-stt.d.ts.map +1 -1
- package/dist/voice/providers/elevenlabs-stt.js +5 -1
- package/dist/voice/providers/elevenlabs-stt.js.map +1 -1
- package/dist/voice/providers/registry.d.ts +5 -2
- package/dist/voice/providers/registry.d.ts.map +1 -1
- package/dist/voice/providers/registry.js +4 -3
- package/dist/voice/providers/registry.js.map +1 -1
- package/dist/voice/session.d.ts +16 -3
- package/dist/voice/session.d.ts.map +1 -1
- package/dist/voice/session.js +78 -15
- package/dist/voice/session.js.map +1 -1
- package/dist/voice/types.d.ts +14 -0
- package/dist/voice/types.d.ts.map +1 -1
- package/dist/voice/types.js +6 -1
- package/dist/voice/types.js.map +1 -1
- package/mcp/tools/apps/skills/create-app-yaml/SKILL.md +1 -1
- package/package.json +2 -1
package/dist/voice/types.js
CHANGED
|
@@ -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
|
package/dist/voice/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/voice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AAQ,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.
|
|
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",
|