@ai-matrx/api 0.1.6 → 0.1.8
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/CHANGELOG.md +13 -0
- package/dist/account.d.cts +1 -1
- package/dist/account.d.ts +1 -1
- package/dist/agents.cjs +11 -11
- package/dist/agents.d.cts +1 -1
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +1 -1
- package/dist/ai.cjs +2 -2
- package/dist/ai.d.cts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +1 -1
- package/dist/apps.cjs +5 -5
- package/dist/apps.d.cts +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +1 -1
- package/dist/architecture.cjs +10 -10
- package/dist/architecture.d.cts +1 -1
- package/dist/architecture.d.ts +1 -1
- package/dist/architecture.js +1 -1
- package/dist/audio.cjs +4 -4
- package/dist/audio.d.cts +1 -1
- package/dist/audio.d.ts +1 -1
- package/dist/audio.js +1 -1
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/{chunk-2FJPWNXG.js → chunk-5BBHAAIG.js} +9 -3
- package/dist/chunk-7MZPBCFV.js +1 -0
- package/dist/chunk-MVXD6WI6.cjs +22 -0
- package/dist/{chunk-UO3H55R3.cjs → chunk-NMBDYPFZ.cjs} +9 -3
- package/dist/code.cjs +6 -6
- package/dist/code.d.cts +1 -1
- package/dist/code.d.ts +1 -1
- package/dist/code.js +1 -1
- package/dist/commerce.d.cts +1 -1
- package/dist/commerce.d.ts +1 -1
- package/dist/communications.cjs +4 -4
- package/dist/communications.d.cts +1 -1
- package/dist/communications.d.ts +1 -1
- package/dist/communications.js +1 -1
- package/dist/computer.cjs +3 -3
- package/dist/computer.d.cts +1 -1
- package/dist/computer.d.ts +1 -1
- package/dist/computer.js +1 -1
- package/dist/content.cjs +4 -4
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +1 -1
- package/dist/credentials.cjs +19 -1
- package/dist/credentials.d.cts +1 -1
- package/dist/credentials.d.ts +1 -1
- package/dist/credentials.js +1 -1
- package/dist/crm.cjs +2 -2
- package/dist/crm.d.cts +1 -1
- package/dist/crm.d.ts +1 -1
- package/dist/crm.js +1 -1
- package/dist/data.d.cts +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/education.cjs +4 -4
- package/dist/education.d.cts +1 -1
- package/dist/education.d.ts +1 -1
- package/dist/education.js +1 -1
- package/dist/files.cjs +20 -20
- package/dist/files.d.cts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +1 -1
- package/dist/human-resources.d.cts +1 -1
- package/dist/human-resources.d.ts +1 -1
- package/dist/{index-Xx6L_pWk.d.cts → index-D_ZjxGwP.d.cts} +5 -0
- package/dist/{index-Xx6L_pWk.d.ts → index-D_ZjxGwP.d.ts} +5 -0
- package/dist/index.cjs +714 -54
- package/dist/index.d.cts +784 -4
- package/dist/index.d.ts +784 -4
- package/dist/index.js +637 -4
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.cts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.js +1 -1
- package/dist/intelligence.cjs +19 -8
- package/dist/intelligence.d.cts +3 -648
- package/dist/intelligence.d.ts +3 -648
- package/dist/intelligence.js +14 -3
- package/dist/keys.generated-CK_C5UXG.d.cts +658 -0
- package/dist/keys.generated-CK_C5UXG.d.ts +658 -0
- package/dist/knowledge.cjs +42 -42
- package/dist/knowledge.d.cts +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/legal.cjs +6 -6
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +1 -1
- package/dist/marketing.cjs +76 -76
- package/dist/marketing.d.cts +1 -1
- package/dist/marketing.d.ts +1 -1
- package/dist/marketing.js +1 -1
- package/dist/masterwork.cjs +32 -32
- package/dist/masterwork.d.cts +1 -1
- package/dist/masterwork.d.ts +1 -1
- package/dist/masterwork.js +1 -1
- package/dist/media.cjs +11 -11
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/media.js +1 -1
- package/dist/platform.cjs +3 -3
- package/dist/platform.d.cts +1 -1
- package/dist/platform.d.ts +1 -1
- package/dist/platform.js +1 -1
- package/dist/publish.cjs +7 -7
- package/dist/publish.d.cts +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +1 -1
- package/dist/stream.cjs +10 -10
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.ts +1 -1
- package/dist/stream.js +1 -1
- package/dist/web.cjs +26 -26
- package/dist/web.d.cts +1 -1
- package/dist/web.d.ts +1 -1
- package/dist/web.js +1 -1
- package/dist/workflows.cjs +13 -13
- package/dist/workflows.d.cts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-K27FH34N.js +0 -1
- package/dist/chunk-PJXXT3GB.cjs +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/api
|
|
2
2
|
|
|
3
|
+
## 0.1.8
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/api/v0.1.7..npm/api/v0.1.8 -- apps/shared/api`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.1.7
|
|
10
|
+
|
|
11
|
+
**Fix: `@ai-matrx/api/credentials` types.** 0.1.6 re-exported auth's credentials with a bare
|
|
12
|
+
`export *` of an external sibling, which built an EMPTY `dist/credentials.d.ts`. The names are
|
|
13
|
+
now re-exported by name (`MATRX_HEADERS`, `API_KEY_PREFIX`, `credentialToHeaders`,
|
|
14
|
+
`toCredentialsPort` and the four types), so types and the publish-time sibling-import guard see them.
|
|
15
|
+
|
|
3
16
|
## 0.1.6
|
|
4
17
|
|
|
5
18
|
**Un-bundled (Wave 0 W14).** `@ai-matrx/auth` is now a real dependency (packed as `latest`)
|
package/dist/account.d.cts
CHANGED
package/dist/account.d.ts
CHANGED
package/dist/agents.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/agents.ts
|
|
@@ -46,15 +46,15 @@ function getToolById(api, args, options) {
|
|
|
46
46
|
}
|
|
47
47
|
var $agentsStartAgent = { m: "POST", p: "/ai/agent/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent" };
|
|
48
48
|
function agentsStartAgent(api, args, options) {
|
|
49
|
-
return
|
|
49
|
+
return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
|
|
50
50
|
}
|
|
51
51
|
var $agentsStartAgentPost = { m: "POST", p: "/ai/agents/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent_post" };
|
|
52
52
|
function agentsStartAgentPost(api, args, options) {
|
|
53
|
-
return
|
|
53
|
+
return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
|
|
54
54
|
}
|
|
55
55
|
var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_mandated_agent" };
|
|
56
56
|
function startMandatedAgent(api, args, options) {
|
|
57
|
-
return
|
|
57
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $startMandatedAgent, args, options);
|
|
58
58
|
}
|
|
59
59
|
var $invalidateAgentCache = { m: "POST", p: "/ai/agents/{agent_id}/invalidate-cache", d: "aidream", a: "guest", o: "required", n: "agents.invalidate_agent_cache" };
|
|
60
60
|
function invalidateAgentCache(api, args, options) {
|
|
@@ -62,7 +62,7 @@ function invalidateAgentCache(api, args, options) {
|
|
|
62
62
|
}
|
|
63
63
|
var $mockStream = { m: "POST", p: "/ai/mock-stream/{scenario}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.mock_stream" };
|
|
64
64
|
function mockStream(api, args, options) {
|
|
65
|
-
return
|
|
65
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $mockStream, args, options);
|
|
66
66
|
}
|
|
67
67
|
var $listScenarios = { m: "GET", p: "/ai/mock-stream/scenarios", d: "aidream", a: "guest", o: "optional", n: "agents.list_scenarios" };
|
|
68
68
|
function listScenarios(api, args, options) {
|
|
@@ -78,11 +78,11 @@ function getUserPromptsAndBuiltins(api, args, options) {
|
|
|
78
78
|
}
|
|
79
79
|
var $startPrompt = { m: "POST", p: "/ai/prompts/{prompt_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_prompt" };
|
|
80
80
|
function startPrompt(api, args, options) {
|
|
81
|
-
return
|
|
81
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $startPrompt, args, options);
|
|
82
82
|
}
|
|
83
83
|
var $startAgentBlocks = { m: "POST", p: "/ai/agents-blocks/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_agent_blocks" };
|
|
84
84
|
function startAgentBlocks(api, args, options) {
|
|
85
|
-
return
|
|
85
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $startAgentBlocks, args, options);
|
|
86
86
|
}
|
|
87
87
|
var $previewContext = { m: "POST", p: "/ai/context/preview", d: "aidream", a: "guest", o: "required", n: "agents.preview_context" };
|
|
88
88
|
function previewContext(api, args, options) {
|
|
@@ -226,11 +226,11 @@ function judgeFirstRuns(api, args, options) {
|
|
|
226
226
|
}
|
|
227
227
|
var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "user", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
|
|
228
228
|
function agentFromChat(api, args, options) {
|
|
229
|
-
return
|
|
229
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $agentFromChat, args, options);
|
|
230
230
|
}
|
|
231
231
|
var $adminAgentFromChat = { m: "POST", p: "/admin/agent-studio/from-chat", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "agents.admin_agent_from_chat" };
|
|
232
232
|
function adminAgentFromChat(api, args, options) {
|
|
233
|
-
return
|
|
233
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $adminAgentFromChat, args, options);
|
|
234
234
|
}
|
|
235
235
|
var $adminToolsListTools = { m: "GET", p: "/admin/tools", d: "aidream", a: "admin", o: "exempt", n: "agents.admin_tools_list_tools" };
|
|
236
236
|
function adminToolsListTools(api, args, options) {
|
|
@@ -266,7 +266,7 @@ function getOrCreateTestSession(api, args, options) {
|
|
|
266
266
|
}
|
|
267
267
|
var $executeToolTest = { m: "POST", p: "/tools/test/execute", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.execute_tool_test" };
|
|
268
268
|
function executeToolTest(api, args, options) {
|
|
269
|
-
return
|
|
269
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $executeToolTest, args, options);
|
|
270
270
|
}
|
|
271
271
|
var $getDbSurfaceManifest = { m: "GET", p: "/surfaces/{client_name}/{surface_name}/manifest", d: "aidream", a: "guest", o: "exempt", n: "agents.get_db_surface_manifest" };
|
|
272
272
|
function getDbSurfaceManifest(api, args, options) {
|
|
@@ -298,7 +298,7 @@ function previewVariableBinding(api, args, options) {
|
|
|
298
298
|
}
|
|
299
299
|
var $runMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.run_matrix_battle" };
|
|
300
300
|
function runMatrixBattle(api, args, options) {
|
|
301
|
-
return
|
|
301
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $runMatrixBattle, args, options);
|
|
302
302
|
}
|
|
303
303
|
var $cancelMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel_matrix_battle" };
|
|
304
304
|
function cancelMatrixBattle(api, args, options) {
|
package/dist/agents.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, AgentStartRequest, DirectiveItemApplied, DirectiveItemFailed, PageContext, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, ActionNeeded, PromptStartRequest } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/agents.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, AgentStartRequest, DirectiveItemApplied, DirectiveItemFailed, PageContext, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, ActionNeeded, PromptStartRequest } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/agents.js
CHANGED
package/dist/ai.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/ai.ts
|
|
@@ -54,7 +54,7 @@ function listModels(api, args, options) {
|
|
|
54
54
|
}
|
|
55
55
|
var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
|
|
56
56
|
function chatCompletions(api, args, options) {
|
|
57
|
-
return
|
|
57
|
+
return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $chatCompletions, args, options);
|
|
58
58
|
}
|
|
59
59
|
var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
|
|
60
60
|
function audioSpeech(api, args, options) {
|
package/dist/ai.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/ai.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/ai.js
CHANGED
package/dist/apps.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/apps.ts
|
|
@@ -218,7 +218,7 @@ function getInstallStatus(api, args, options) {
|
|
|
218
218
|
}
|
|
219
219
|
var $streamInstallProgress = { m: "GET", p: "/capabilities/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "apps.stream_install_progress" };
|
|
220
220
|
function streamInstallProgress(api, args, options) {
|
|
221
|
-
return
|
|
221
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $streamInstallProgress, args, options);
|
|
222
222
|
}
|
|
223
223
|
var $tunnelStatus = { m: "GET", p: "/tunnel/status", d: "matrx-local", a: "public", o: "exempt", n: "apps.tunnel_status" };
|
|
224
224
|
function tunnelStatus(api, args, options) {
|
|
@@ -238,15 +238,15 @@ function getSetupStatus(api, args, options) {
|
|
|
238
238
|
}
|
|
239
239
|
var $runInstall = { m: "POST", p: "/setup/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.run_install" };
|
|
240
240
|
function runInstall(api, args, options) {
|
|
241
|
-
return
|
|
241
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $runInstall, args, options);
|
|
242
242
|
}
|
|
243
243
|
var $installTranscription = { m: "POST", p: "/setup/install-transcription", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.install_transcription" };
|
|
244
244
|
function installTranscription(api, args, options) {
|
|
245
|
-
return
|
|
245
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $installTranscription, args, options);
|
|
246
246
|
}
|
|
247
247
|
var $streamLogs = { m: "GET", p: "/setup/logs", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.stream_logs" };
|
|
248
248
|
function streamLogs(api, args, options) {
|
|
249
|
-
return
|
|
249
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $streamLogs, args, options);
|
|
250
250
|
}
|
|
251
251
|
var $debugState = { m: "GET", p: "/setup/debug", d: "matrx-local", a: "loopback_open", o: "exempt", n: "apps.debug_state" };
|
|
252
252
|
function debugState(api, args, options) {
|
package/dist/apps.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/apps.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/apps.js
CHANGED
package/dist/architecture.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/architecture.ts
|
|
@@ -34,27 +34,27 @@ function servingCheck(api, args, options) {
|
|
|
34
34
|
}
|
|
35
35
|
var $searchAsKinds = { m: "POST", p: "/search-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.search_as_kinds" };
|
|
36
36
|
function searchAsKinds(api, args, options) {
|
|
37
|
-
return
|
|
37
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $searchAsKinds, args, options);
|
|
38
38
|
}
|
|
39
39
|
var $rankLandscapeAsKinds = { m: "POST", p: "/rank-kinds/landscape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rank_landscape_as_kinds" };
|
|
40
40
|
function rankLandscapeAsKinds(api, args, options) {
|
|
41
|
-
return
|
|
41
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $rankLandscapeAsKinds, args, options);
|
|
42
42
|
}
|
|
43
43
|
var $ragSearchAsKinds = { m: "POST", p: "/rag-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rag_search_as_kinds" };
|
|
44
44
|
function ragSearchAsKinds(api, args, options) {
|
|
45
|
-
return
|
|
45
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $ragSearchAsKinds, args, options);
|
|
46
46
|
}
|
|
47
47
|
var $tableReadAsKinds = { m: "POST", p: "/table-kinds/read", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.table_read_as_kinds" };
|
|
48
48
|
function tableReadAsKinds(api, args, options) {
|
|
49
|
-
return
|
|
49
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $tableReadAsKinds, args, options);
|
|
50
50
|
}
|
|
51
51
|
var $scrapeAsKind = { m: "POST", p: "/scraper-kinds/scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_as_kind" };
|
|
52
52
|
function scrapeAsKind(api, args, options) {
|
|
53
|
-
return
|
|
53
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $scrapeAsKind, args, options);
|
|
54
54
|
}
|
|
55
55
|
var $scrapeManyAsKind = { m: "POST", p: "/scraper-kinds/scrape-many", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_many_as_kind" };
|
|
56
56
|
function scrapeManyAsKind(api, args, options) {
|
|
57
|
-
return
|
|
57
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $scrapeManyAsKind, args, options);
|
|
58
58
|
}
|
|
59
59
|
var $saveOutput = { m: "POST", p: "/kind-outputs/save", d: "aidream", a: "guest", o: "required", n: "architecture.save_output" };
|
|
60
60
|
function saveOutput(api, args, options) {
|
|
@@ -78,7 +78,7 @@ function operationStatus(api, args, options) {
|
|
|
78
78
|
}
|
|
79
79
|
var $rejoinOperationStream = { m: "POST", p: "/runtime/operations/{request_id}/rejoin", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rejoin_operation_stream" };
|
|
80
80
|
function rejoinOperationStream(api, args, options) {
|
|
81
|
-
return
|
|
81
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $rejoinOperationStream, args, options);
|
|
82
82
|
}
|
|
83
83
|
var $operationsByLink = { m: "GET", p: "/runtime/operations/by-link/{link_kind}/{link_id}", d: "aidream", a: "guest", o: "optional", n: "architecture.operations_by_link" };
|
|
84
84
|
function operationsByLink(api, args, options) {
|
|
@@ -90,7 +90,7 @@ function operationEvents(api, args, options) {
|
|
|
90
90
|
}
|
|
91
91
|
var $operationEventsStream = { m: "GET", p: "/runtime/executions/{execution_id}/events/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "architecture.operation_events_stream" };
|
|
92
92
|
function operationEventsStream(api, args, options) {
|
|
93
|
-
return
|
|
93
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $operationEventsStream, args, options);
|
|
94
94
|
}
|
|
95
95
|
var $listComputeTargets = { m: "GET", p: "/compute-targets/", d: "aidream", a: "user", o: "required", n: "architecture.list_compute_targets" };
|
|
96
96
|
function listComputeTargets(api, args, options) {
|
|
@@ -690,7 +690,7 @@ function orchestratorProxyFsDelete(api, args, options) {
|
|
|
690
690
|
}
|
|
691
691
|
var $proxyExecStream = { m: "POST", p: "/sandboxes/{sandbox_id}/exec/stream", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "sse", n: "architecture.proxy_exec_stream" };
|
|
692
692
|
function proxyExecStream(api, args, options) {
|
|
693
|
-
return
|
|
693
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $proxyExecStream, args, options);
|
|
694
694
|
}
|
|
695
695
|
var $orchestratorProxyGit = { m: "GET", p: "/sandboxes/{sandbox_id}/git/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_git" };
|
|
696
696
|
function orchestratorProxyGit(api, args, options) {
|
package/dist/architecture.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue, ComputeNextDueResponse, SandboxBindingRequest, RunNowResponse, ValidateCronRequest, ValidateCronResponse, DirectiveItemApplied, DirectiveItemFailed } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/architecture.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue, ComputeNextDueResponse, SandboxBindingRequest, RunNowResponse, ValidateCronRequest, ValidateCronResponse, DirectiveItemApplied, DirectiveItemFailed } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/architecture.js
CHANGED
package/dist/audio.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/audio.ts
|
|
@@ -46,7 +46,7 @@ function textToSpeech(api, args, options) {
|
|
|
46
46
|
}
|
|
47
47
|
var $youtubeTranscript = { m: "POST", p: "/media/youtube/transcript", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "audio.youtube_transcript" };
|
|
48
48
|
function youtubeTranscript(api, args, options) {
|
|
49
|
-
return
|
|
49
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $youtubeTranscript, args, options);
|
|
50
50
|
}
|
|
51
51
|
var $getStatus = { m: "GET", p: "/wake-word/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.get_status" };
|
|
52
52
|
function getStatus(api, args, options) {
|
|
@@ -82,7 +82,7 @@ function configureWakeWord(api, args, options) {
|
|
|
82
82
|
}
|
|
83
83
|
var $eventStream = { m: "GET", p: "/wake-word/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "audio.event_stream" };
|
|
84
84
|
function eventStream(api, args, options) {
|
|
85
|
-
return
|
|
85
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $eventStream, args, options);
|
|
86
86
|
}
|
|
87
87
|
var $listModels = { m: "GET", p: "/wake-word/models", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.list_models" };
|
|
88
88
|
function listModels(api, args, options) {
|
|
@@ -94,7 +94,7 @@ function downloadOwwModel(api, args, options) {
|
|
|
94
94
|
}
|
|
95
95
|
var $downloadModelWithProgress = { m: "POST", p: "/wake-word/models/download-stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "audio.download_model_with_progress" };
|
|
96
96
|
function downloadModelWithProgress(api, args, options) {
|
|
97
|
-
return
|
|
97
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $downloadModelWithProgress, args, options);
|
|
98
98
|
}
|
|
99
99
|
var $ttsStatus = { m: "GET", p: "/tts/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.tts_status" };
|
|
100
100
|
function ttsStatus(api, args, options) {
|
package/dist/audio.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/audio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/audio.js
CHANGED
package/dist/chat.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/chat.ts
|
|
@@ -14,27 +14,27 @@ function conversationsWarmConversationPost(api, args, options) {
|
|
|
14
14
|
}
|
|
15
15
|
var $chat = { m: "POST", p: "/ai/manual", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "chat.chat" };
|
|
16
16
|
function chat(api, args, options) {
|
|
17
|
-
return
|
|
17
|
+
return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $chat, args, options);
|
|
18
18
|
}
|
|
19
19
|
var $chatPost = { m: "POST", p: "/ai/chat", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "chat.chat_post" };
|
|
20
20
|
function chatPost(api, args, options) {
|
|
21
|
-
return
|
|
21
|
+
return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $chatPost, args, options);
|
|
22
22
|
}
|
|
23
23
|
var $conversationsContinueConversation = { m: "POST", p: "/ai/conversation/{conversation_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_continue_conversation" };
|
|
24
24
|
function conversationsContinueConversation(api, args, options) {
|
|
25
|
-
return
|
|
25
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsContinueConversation, args, options);
|
|
26
26
|
}
|
|
27
27
|
var $conversationsContinueConversationPost = { m: "POST", p: "/ai/conversations/{conversation_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_continue_conversation_post" };
|
|
28
28
|
function conversationsContinueConversationPost(api, args, options) {
|
|
29
|
-
return
|
|
29
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsContinueConversationPost, args, options);
|
|
30
30
|
}
|
|
31
31
|
var $conversationsForkAndRun = { m: "POST", p: "/ai/conversation/{conversation_id}/fork-and-run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_fork_and_run" };
|
|
32
32
|
function conversationsForkAndRun(api, args, options) {
|
|
33
|
-
return
|
|
33
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsForkAndRun, args, options);
|
|
34
34
|
}
|
|
35
35
|
var $conversationsForkAndRunPost = { m: "POST", p: "/ai/conversations/{conversation_id}/fork-and-run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_fork_and_run_post" };
|
|
36
36
|
function conversationsForkAndRunPost(api, args, options) {
|
|
37
|
-
return
|
|
37
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsForkAndRunPost, args, options);
|
|
38
38
|
}
|
|
39
39
|
var $conversationsSubmitToolResults = { m: "POST", p: "/ai/conversation/{conversation_id}/tool_results", d: "aidream", a: "guest", o: "required", n: "chat.conversations_submit_tool_results" };
|
|
40
40
|
function conversationsSubmitToolResults(api, args, options) {
|
|
@@ -90,11 +90,11 @@ function conversationsCancelInboxItemDelete(api, args, options) {
|
|
|
90
90
|
}
|
|
91
91
|
var $conversationsResumeConversation = { m: "POST", p: "/ai/conversation/{conversation_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_resume_conversation" };
|
|
92
92
|
function conversationsResumeConversation(api, args, options) {
|
|
93
|
-
return
|
|
93
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsResumeConversation, args, options);
|
|
94
94
|
}
|
|
95
95
|
var $conversationsResumeConversationPost = { m: "POST", p: "/ai/conversations/{conversation_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_resume_conversation_post" };
|
|
96
96
|
function conversationsResumeConversationPost(api, args, options) {
|
|
97
|
-
return
|
|
97
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $conversationsResumeConversationPost, args, options);
|
|
98
98
|
}
|
|
99
99
|
var $conversationsGetConversationSandbox = { m: "GET", p: "/ai/conversation/{conversation_id}/sandbox", d: "aidream", a: "guest", o: "optional", n: "chat.conversations_get_conversation_sandbox" };
|
|
100
100
|
function conversationsGetConversationSandbox(api, args, options) {
|
|
@@ -146,11 +146,11 @@ function warmHealthRoute(api, args, options) {
|
|
|
146
146
|
}
|
|
147
147
|
var $directChat = { m: "POST", p: "/ai/chat/direct-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.direct_chat" };
|
|
148
148
|
function directChat(api, args, options) {
|
|
149
|
-
return
|
|
149
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $directChat, args, options);
|
|
150
150
|
}
|
|
151
151
|
var $promptExecution = { m: "POST", p: "/ai/chat/prompt-execution", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.prompt_execution" };
|
|
152
152
|
function promptExecution(api, args, options) {
|
|
153
|
-
return
|
|
153
|
+
return chunkNMBDYPFZ_cjs.openStream(api, $promptExecution, args, options);
|
|
154
154
|
}
|
|
155
155
|
var $v2ChatV2 = { m: "POST", p: "/v2/ai/manual", d: "aidream", a: "guest", o: "required", n: "chat.v2_chat_v2" };
|
|
156
156
|
function v2ChatV2(api, args, options) {
|
package/dist/chat.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-D_ZjxGwP.cjs';
|
|
2
2
|
import { JsonValue, ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema, TtsVoiceSpeaker, TtsDialogueTurn, MediaRef, ImageLora, CustomTool, CompactionSettings, DictionaryConfig, ContextAnchor, ChatMessageInput, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, LLMParams, ResourceContextPolicy, IdeState, SandboxBindingRequest, PageContext, CacheBypass, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, AgentStartRequest, PromptStartRequest, ActionNeeded } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/chat.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-D_ZjxGwP.js';
|
|
2
2
|
import { JsonValue, ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema, TtsVoiceSpeaker, TtsDialogueTurn, MediaRef, ImageLora, CustomTool, CompactionSettings, DictionaryConfig, ContextAnchor, ChatMessageInput, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, LLMParams, ResourceContextPolicy, IdeState, SandboxBindingRequest, PageContext, CacheBypass, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, AgentStartRequest, PromptStartRequest, ActionNeeded } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/chat.js
CHANGED
|
@@ -451,6 +451,9 @@ var DEFAULT_MATRX_NDJSON_READ_AHEAD = 64;
|
|
|
451
451
|
function isRecord2(value) {
|
|
452
452
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
453
453
|
}
|
|
454
|
+
function latencyMark(value) {
|
|
455
|
+
return typeof value.latency_mark === "string" ? { latency_mark: value.latency_mark } : {};
|
|
456
|
+
}
|
|
454
457
|
function normalizeMatrxStreamEnvelope(value) {
|
|
455
458
|
if (!isRecord2(value)) return null;
|
|
456
459
|
if (typeof value.event === "string") {
|
|
@@ -460,7 +463,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
460
463
|
event: value.event,
|
|
461
464
|
data: value.data,
|
|
462
465
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
463
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
466
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
467
|
+
...latencyMark(value)
|
|
464
468
|
};
|
|
465
469
|
}
|
|
466
470
|
if (value.e === "c" && typeof value.t === "string") {
|
|
@@ -470,7 +474,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
470
474
|
event: "chunk",
|
|
471
475
|
data: { text: value.t },
|
|
472
476
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
473
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
477
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
478
|
+
...latencyMark(value)
|
|
474
479
|
};
|
|
475
480
|
}
|
|
476
481
|
if (value.e === "r" && typeof value.t === "string") {
|
|
@@ -480,7 +485,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
480
485
|
event: "reasoning_chunk",
|
|
481
486
|
data: { text: value.t },
|
|
482
487
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
483
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
488
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
489
|
+
...latencyMark(value)
|
|
484
490
|
};
|
|
485
491
|
}
|
|
486
492
|
return null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var credentials = require('@ai-matrx/auth/credentials');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "API_KEY_PREFIX", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return credentials.API_KEY_PREFIX; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "MATRX_HEADERS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return credentials.MATRX_HEADERS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "credentialToHeaders", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return credentials.credentialToHeaders; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "toCredentialsPort", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return credentials.toCredentialsPort; }
|
|
22
|
+
});
|
|
@@ -453,6 +453,9 @@ var DEFAULT_MATRX_NDJSON_READ_AHEAD = 64;
|
|
|
453
453
|
function isRecord2(value) {
|
|
454
454
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
455
455
|
}
|
|
456
|
+
function latencyMark(value) {
|
|
457
|
+
return typeof value.latency_mark === "string" ? { latency_mark: value.latency_mark } : {};
|
|
458
|
+
}
|
|
456
459
|
function normalizeMatrxStreamEnvelope(value) {
|
|
457
460
|
if (!isRecord2(value)) return null;
|
|
458
461
|
if (typeof value.event === "string") {
|
|
@@ -462,7 +465,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
462
465
|
event: value.event,
|
|
463
466
|
data: value.data,
|
|
464
467
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
465
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
468
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
469
|
+
...latencyMark(value)
|
|
466
470
|
};
|
|
467
471
|
}
|
|
468
472
|
if (value.e === "c" && typeof value.t === "string") {
|
|
@@ -472,7 +476,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
472
476
|
event: "chunk",
|
|
473
477
|
data: { text: value.t },
|
|
474
478
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
475
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
479
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
480
|
+
...latencyMark(value)
|
|
476
481
|
};
|
|
477
482
|
}
|
|
478
483
|
if (value.e === "r" && typeof value.t === "string") {
|
|
@@ -482,7 +487,8 @@ function normalizeMatrxStreamEnvelope(value) {
|
|
|
482
487
|
event: "reasoning_chunk",
|
|
483
488
|
data: { text: value.t },
|
|
484
489
|
...streamId === void 0 ? {} : { stream_id: streamId },
|
|
485
|
-
...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
|
|
490
|
+
...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
|
|
491
|
+
...latencyMark(value)
|
|
486
492
|
};
|
|
487
493
|
}
|
|
488
494
|
return null;
|