@ai-matrx/api 0.1.30 → 0.1.32
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 +43 -1
- package/dist/account.d.cts +8 -8
- package/dist/account.d.ts +8 -8
- package/dist/agents.cjs +160 -12
- package/dist/agents.d.cts +821 -15
- package/dist/agents.d.ts +821 -15
- package/dist/agents.js +127 -4
- package/dist/ai.cjs +26 -2
- package/dist/ai.d.cts +76 -3
- package/dist/ai.d.ts +76 -3
- package/dist/ai.js +22 -2
- package/dist/apps.cjs +5 -11
- package/dist/apps.d.cts +3 -49
- package/dist/apps.d.ts +3 -49
- package/dist/apps.js +2 -7
- package/dist/architecture.cjs +96 -42
- package/dist/architecture.d.cts +269 -43
- package/dist/architecture.d.ts +269 -43
- package/dist/architecture.js +73 -28
- package/dist/audio.cjs +39 -39
- package/dist/audio.d.cts +15 -3
- package/dist/audio.d.ts +15 -3
- package/dist/audio.js +2 -2
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +7 -2
- package/dist/chat.d.ts +7 -2
- package/dist/chat.js +1 -1
- package/dist/{chunk-ILAZVNEL.cjs → chunk-27ZEEIXM.cjs} +1 -1
- package/dist/{chunk-35BH3TJW.js → chunk-5TRUQNVW.js} +1 -1
- package/dist/{chunk-RIIIDGZJ.js → chunk-DKJGWA5L.js} +1 -1
- package/dist/{chunk-I4AWZ7GN.js → chunk-LYHAZQX5.js} +1 -1
- package/dist/{chunk-FFXB3EDM.cjs → chunk-LYRANVIS.cjs} +3 -3
- package/dist/{chunk-VU3BK4NY.cjs → chunk-TMEGWPWE.cjs} +37 -37
- package/dist/{chunk-NH7VE36B.cjs → chunk-VK5BH6FK.cjs} +4 -4
- package/dist/{chunk-KZD6TVJ4.js → chunk-X75SKCDS.js} +1 -1
- package/dist/code.cjs +6 -6
- package/dist/code.d.cts +4 -2
- package/dist/code.d.ts +4 -2
- package/dist/code.js +1 -1
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +4 -4
- package/dist/communications.d.cts +2 -2
- package/dist/communications.d.ts +2 -2
- package/dist/communications.js +1 -1
- package/dist/computer.cjs +4 -4
- package/dist/computer.d.cts +2 -2
- package/dist/computer.d.ts +2 -2
- package/dist/computer.js +1 -1
- package/dist/content.cjs +4 -4
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +1 -1
- package/dist/crm.cjs +8 -2
- package/dist/crm.d.cts +26 -3
- package/dist/crm.d.ts +26 -3
- package/dist/crm.js +7 -2
- package/dist/data.cjs +22 -4
- package/dist/data.d.cts +185 -3
- package/dist/data.d.ts +185 -3
- package/dist/data.js +17 -2
- package/dist/education.cjs +4 -4
- package/dist/education.d.cts +2 -2
- package/dist/education.d.ts +2 -2
- package/dist/education.js +1 -1
- package/dist/files.cjs +228 -228
- package/dist/files.d.cts +8 -8
- package/dist/files.d.ts +8 -8
- package/dist/files.js +2 -2
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-B6p8TJkh.d.cts → index-A1nOdg4F.d.cts} +2 -2
- package/dist/{index-B6p8TJkh.d.ts → index-A1nOdg4F.d.ts} +2 -2
- package/dist/index.cjs +69 -59
- package/dist/index.d.cts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +13 -3
- package/dist/integrations.cjs +35 -5
- package/dist/integrations.d.cts +97 -3
- package/dist/integrations.d.ts +97 -3
- package/dist/integrations.js +27 -2
- package/dist/intelligence.cjs +19 -8
- package/dist/intelligence.d.cts +98 -28
- package/dist/intelligence.d.ts +98 -28
- package/dist/intelligence.js +13 -4
- package/dist/knowledge.cjs +42 -42
- package/dist/knowledge.d.cts +11 -11
- package/dist/knowledge.d.ts +11 -11
- package/dist/knowledge.js +1 -1
- package/dist/legal.cjs +6 -6
- package/dist/legal.d.cts +2 -2
- package/dist/legal.d.ts +2 -2
- package/dist/legal.js +1 -1
- package/dist/marketing.cjs +194 -78
- package/dist/marketing.d.cts +601 -7
- package/dist/marketing.d.ts +601 -7
- package/dist/marketing.js +98 -2
- package/dist/masterwork.cjs +32 -32
- package/dist/masterwork.d.cts +2 -2
- package/dist/masterwork.d.ts +2 -2
- package/dist/masterwork.js +1 -1
- package/dist/media.cjs +34 -11
- package/dist/media.d.cts +61 -3
- package/dist/media.d.ts +61 -3
- package/dist/media.js +21 -2
- package/dist/platform.cjs +27 -27
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +2 -2
- package/dist/publish.cjs +7 -7
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -1
- package/dist/recording.cjs +17 -17
- package/dist/recording.js +4 -4
- package/dist/schemas.d.cts +45 -3
- package/dist/schemas.d.ts +45 -3
- 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/types.d.cts +1958 -75
- package/dist/types.d.ts +1958 -75
- package/dist/web.cjs +61 -26
- package/dist/web.d.cts +111 -3
- package/dist/web.d.ts +111 -3
- package/dist/web.js +31 -2
- package/dist/workflows.cjs +13 -13
- package/dist/workflows.d.cts +32 -2
- package/dist/workflows.d.ts +32 -2
- package/dist/workflows.js +1 -1
- package/package.json +4 -4
package/dist/agents.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openJsonOrStream, openStream } from './chunk-
|
|
1
|
+
import { openJsonOrStream, openStream } from './chunk-X75SKCDS.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
3
|
|
|
4
4
|
// src/generated/agents.ts
|
|
@@ -54,9 +54,9 @@ var $agentsStartAgentPost = { m: "POST", p: "/ai/agents/{agent_id}", d: "aidream
|
|
|
54
54
|
function agentsStartAgentPost(api, args, options) {
|
|
55
55
|
return openJsonOrStream(api, $agentsStartAgentPost, args, options);
|
|
56
56
|
}
|
|
57
|
-
var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "
|
|
57
|
+
var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.start_mandated_agent" };
|
|
58
58
|
function startMandatedAgent(api, args, options) {
|
|
59
|
-
return
|
|
59
|
+
return openJsonOrStream(api, $startMandatedAgent, args, options);
|
|
60
60
|
}
|
|
61
61
|
var $invalidateAgentCache = { m: "POST", p: "/ai/agents/{agent_id}/invalidate-cache", d: "aidream", a: "guest", o: "required", n: "agents.invalidate_agent_cache" };
|
|
62
62
|
function invalidateAgentCache(api, args, options) {
|
|
@@ -106,6 +106,10 @@ var $getRealtimeSession = { m: "POST", p: "/ai/agents/{agent_id}/realtime-sessio
|
|
|
106
106
|
function getRealtimeSession(api, args, options) {
|
|
107
107
|
return api.call($getRealtimeSession, args, options);
|
|
108
108
|
}
|
|
109
|
+
var $getRealtimeModels = { m: "GET", p: "/ai/realtime-models", d: "aidream", a: "guest", o: "required", n: "agents.get_realtime_models" };
|
|
110
|
+
function getRealtimeModels(api, args, options) {
|
|
111
|
+
return api.call($getRealtimeModels, args, options);
|
|
112
|
+
}
|
|
109
113
|
var $executeRealtimeToolRoute = { m: "POST", p: "/ai/tools/execute", d: "aidream", a: "guest", o: "required", n: "agents.execute_realtime_tool_route" };
|
|
110
114
|
function executeRealtimeToolRoute(api, args, options) {
|
|
111
115
|
return api.call($executeRealtimeToolRoute, args, options);
|
|
@@ -166,6 +170,18 @@ var $screenRun = { m: "POST", p: "/tools/screen-run", d: "aidream", a: "guest",
|
|
|
166
170
|
function screenRun(api, args, options) {
|
|
167
171
|
return api.call($screenRun, args, options);
|
|
168
172
|
}
|
|
173
|
+
var $createToolCall = { m: "POST", p: "/tools/calls", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.create_tool_call" };
|
|
174
|
+
function createToolCall(api, args, options) {
|
|
175
|
+
return openStream(api, $createToolCall, args, options);
|
|
176
|
+
}
|
|
177
|
+
var $getToolCall = { m: "GET", p: "/tools/calls/{call_id}", d: "aidream", a: "guest", o: "required", n: "agents.get_tool_call" };
|
|
178
|
+
function getToolCall(api, args, options) {
|
|
179
|
+
return api.call($getToolCall, args, options);
|
|
180
|
+
}
|
|
181
|
+
var $cancelToolCall = { m: "POST", p: "/tools/calls/{call_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel_tool_call" };
|
|
182
|
+
function cancelToolCall(api, args, options) {
|
|
183
|
+
return api.call($cancelToolCall, args, options);
|
|
184
|
+
}
|
|
169
185
|
var $listAgents = { m: "GET", p: "/agent-service/agents", d: "aidream", a: "guest", o: "optional", n: "agents.list_agents" };
|
|
170
186
|
function listAgents(api, args, options) {
|
|
171
187
|
return api.call($listAgents, args, options);
|
|
@@ -314,6 +330,90 @@ var $cancelMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/cancel", d: "
|
|
|
314
330
|
function cancelMatrixBattle(api, args, options) {
|
|
315
331
|
return api.call($cancelMatrixBattle, args, options);
|
|
316
332
|
}
|
|
333
|
+
var $createBattle = { m: "POST", p: "/tool-battles", d: "aidream", a: "admin", o: "required", n: "agents.create_battle" };
|
|
334
|
+
function createBattle(api, args, options) {
|
|
335
|
+
return api.call($createBattle, args, options);
|
|
336
|
+
}
|
|
337
|
+
var $runBattle = { m: "POST", p: "/tool-battles/{battle_id}/run", d: "aidream", a: "admin", o: "required", n: "agents.run_battle" };
|
|
338
|
+
function runBattle(api, args, options) {
|
|
339
|
+
return api.call($runBattle, args, options);
|
|
340
|
+
}
|
|
341
|
+
var $cancelBattle = { m: "POST", p: "/tool-battles/{battle_id}/cancel", d: "aidream", a: "admin", o: "required", n: "agents.cancel_battle" };
|
|
342
|
+
function cancelBattle(api, args, options) {
|
|
343
|
+
return api.call($cancelBattle, args, options);
|
|
344
|
+
}
|
|
345
|
+
var $promote = { m: "POST", p: "/tool-battles/{battle_id}/promote", d: "aidream", a: "admin", o: "required", n: "agents.promote" };
|
|
346
|
+
function promote(api, args, options) {
|
|
347
|
+
return api.call($promote, args, options);
|
|
348
|
+
}
|
|
349
|
+
var $launch = { m: "POST", p: "/agent-tests/runs", d: "aidream", a: "guest", o: "required", n: "agents.launch" };
|
|
350
|
+
function launch(api, args, options) {
|
|
351
|
+
return api.call($launch, args, options);
|
|
352
|
+
}
|
|
353
|
+
var $cancel = { m: "POST", p: "/agent-tests/runs/{run_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel" };
|
|
354
|
+
function cancel(api, args, options) {
|
|
355
|
+
return api.call($cancel, args, options);
|
|
356
|
+
}
|
|
357
|
+
var $resume = { m: "POST", p: "/agent-tests/runs/{run_id}/resume", d: "aidream", a: "guest", o: "required", n: "agents.resume" };
|
|
358
|
+
function resume(api, args, options) {
|
|
359
|
+
return api.call($resume, args, options);
|
|
360
|
+
}
|
|
361
|
+
var $recheck = { m: "POST", p: "/agent-tests/runs/{run_id}/recheck", d: "aidream", a: "guest", o: "required", n: "agents.recheck" };
|
|
362
|
+
function recheck(api, args, options) {
|
|
363
|
+
return api.call($recheck, args, options);
|
|
364
|
+
}
|
|
365
|
+
var $stream = { m: "GET", p: "/agent-tests/runs/{run_id}/stream", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.stream" };
|
|
366
|
+
function stream(api, args, options) {
|
|
367
|
+
return openStream(api, $stream, args, options);
|
|
368
|
+
}
|
|
369
|
+
var $parseCheck = { m: "POST", p: "/agent-tests/checks/parse", d: "aidream", a: "guest", o: "required", n: "agents.parse_check" };
|
|
370
|
+
function parseCheck(api, args, options) {
|
|
371
|
+
return api.call($parseCheck, args, options);
|
|
372
|
+
}
|
|
373
|
+
var $formatCheck = { m: "POST", p: "/agent-tests/checks/format", d: "aidream", a: "guest", o: "required", n: "agents.format_check" };
|
|
374
|
+
function formatCheck(api, args, options) {
|
|
375
|
+
return api.call($formatCheck, args, options);
|
|
376
|
+
}
|
|
377
|
+
var $evaluateChecks = { m: "POST", p: "/agent-tests/checks/evaluate", d: "aidream", a: "guest", o: "required", n: "agents.evaluate_checks" };
|
|
378
|
+
function evaluateChecks(api, args, options) {
|
|
379
|
+
return api.call($evaluateChecks, args, options);
|
|
380
|
+
}
|
|
381
|
+
var $catalogSearch = { m: "GET", p: "/tools/catalog/search", d: "aidream", a: "guest", o: "required", n: "agents.catalog_search" };
|
|
382
|
+
function catalogSearch(api, args, options) {
|
|
383
|
+
return api.call($catalogSearch, args, options);
|
|
384
|
+
}
|
|
385
|
+
var $toolRunForm = { m: "GET", p: "/tools/{tool_id}/run-form", d: "aidream", a: "guest", o: "required", n: "agents.tool_run_form" };
|
|
386
|
+
function toolRunForm(api, args, options) {
|
|
387
|
+
return api.call($toolRunForm, args, options);
|
|
388
|
+
}
|
|
389
|
+
var $toolAgentDoc = { m: "GET", p: "/tools/{tool_id}/agent-doc", d: "aidream", a: "guest", o: "required", n: "agents.tool_agent_doc" };
|
|
390
|
+
function toolAgentDoc(api, args, options) {
|
|
391
|
+
return api.call($toolAgentDoc, args, options);
|
|
392
|
+
}
|
|
393
|
+
var $catalogTool = { m: "GET", p: "/tools/catalog/{tool_ref}", d: "aidream", a: "guest", o: "required", n: "agents.catalog_tool" };
|
|
394
|
+
function catalogTool(api, args, options) {
|
|
395
|
+
return api.call($catalogTool, args, options);
|
|
396
|
+
}
|
|
397
|
+
var $developerUsage = { m: "GET", p: "/tools/developer/usage", d: "aidream", a: "guest", o: "required", n: "agents.developer_usage" };
|
|
398
|
+
function developerUsage(api, args, options) {
|
|
399
|
+
return api.call($developerUsage, args, options);
|
|
400
|
+
}
|
|
401
|
+
var $developerBudgets = { m: "GET", p: "/tools/developer/budgets", d: "aidream", a: "guest", o: "required", n: "agents.developer_budgets" };
|
|
402
|
+
function developerBudgets(api, args, options) {
|
|
403
|
+
return api.call($developerBudgets, args, options);
|
|
404
|
+
}
|
|
405
|
+
var $setDeveloperBudgets = { m: "PUT", p: "/tools/developer/budgets", d: "aidream", a: "guest", o: "required", n: "agents.set_developer_budgets" };
|
|
406
|
+
function setDeveloperBudgets(api, args, options) {
|
|
407
|
+
return api.call($setDeveloperBudgets, args, options);
|
|
408
|
+
}
|
|
409
|
+
var $developerDocs = { m: "GET", p: "/tools/developer/docs", d: "aidream", a: "public", o: "required", n: "agents.developer_docs" };
|
|
410
|
+
function developerDocs(api, args, options) {
|
|
411
|
+
return api.call($developerDocs, args, options);
|
|
412
|
+
}
|
|
413
|
+
var $developerLlmsTxt = { m: "GET", p: "/tools/developer/llms.txt", d: "aidream", a: "public", o: "required", n: "agents.developer_llms_txt" };
|
|
414
|
+
function developerLlmsTxt(api, args, options) {
|
|
415
|
+
return api.call($developerLlmsTxt, args, options);
|
|
416
|
+
}
|
|
317
417
|
var $listContextOrganizations = { m: "GET", p: "/admin/agent-context/organizations", d: "aidream", a: "admin", o: "exempt", n: "agents.list_context_organizations" };
|
|
318
418
|
function listContextOrganizations(api, args, options) {
|
|
319
419
|
return api.call($listContextOrganizations, args, options);
|
|
@@ -431,6 +531,7 @@ var TABLE = {
|
|
|
431
531
|
"GET /ai/context/delivered": $contextDelivered,
|
|
432
532
|
"POST /ai/agents/{agent_id}/realtime-tools": $getRealtimeTools,
|
|
433
533
|
"POST /ai/agents/{agent_id}/realtime-session": $getRealtimeSession,
|
|
534
|
+
"GET /ai/realtime-models": $getRealtimeModels,
|
|
434
535
|
"POST /ai/tools/execute": $executeRealtimeToolRoute,
|
|
435
536
|
"POST /ai/agents/versions/{version_id}/portable": $getPortableAgentVersion,
|
|
436
537
|
"POST /ai/agents/{agent_id}/portable": $getPortableAgent,
|
|
@@ -446,6 +547,8 @@ var TABLE = {
|
|
|
446
547
|
"DELETE /skills/{skill_id}": $deleteSkill,
|
|
447
548
|
"POST /skills/ingest": $adminIngestFilesystem,
|
|
448
549
|
"POST /tools/screen-run": $screenRun,
|
|
550
|
+
"GET /tools/calls/{call_id}": $getToolCall,
|
|
551
|
+
"POST /tools/calls/{call_id}/cancel": $cancelToolCall,
|
|
449
552
|
"GET /agent-service/agents": $listAgents,
|
|
450
553
|
"POST /agent-service/agents": $createAgent,
|
|
451
554
|
"GET /agent-service/agents/{agent_id}": $getAgent,
|
|
@@ -479,6 +582,26 @@ var TABLE = {
|
|
|
479
582
|
"GET /agents/versions/{version_id}/execution-definition": $getAgentVersionExecutionDefinition,
|
|
480
583
|
"POST /agents/variable-bindings/preview": $previewVariableBinding,
|
|
481
584
|
"POST /agent-battles/{set_id}/cancel": $cancelMatrixBattle,
|
|
585
|
+
"POST /tool-battles": $createBattle,
|
|
586
|
+
"POST /tool-battles/{battle_id}/run": $runBattle,
|
|
587
|
+
"POST /tool-battles/{battle_id}/cancel": $cancelBattle,
|
|
588
|
+
"POST /tool-battles/{battle_id}/promote": $promote,
|
|
589
|
+
"POST /agent-tests/runs": $launch,
|
|
590
|
+
"POST /agent-tests/runs/{run_id}/cancel": $cancel,
|
|
591
|
+
"POST /agent-tests/runs/{run_id}/resume": $resume,
|
|
592
|
+
"POST /agent-tests/runs/{run_id}/recheck": $recheck,
|
|
593
|
+
"POST /agent-tests/checks/parse": $parseCheck,
|
|
594
|
+
"POST /agent-tests/checks/format": $formatCheck,
|
|
595
|
+
"POST /agent-tests/checks/evaluate": $evaluateChecks,
|
|
596
|
+
"GET /tools/catalog/search": $catalogSearch,
|
|
597
|
+
"GET /tools/{tool_id}/run-form": $toolRunForm,
|
|
598
|
+
"GET /tools/{tool_id}/agent-doc": $toolAgentDoc,
|
|
599
|
+
"GET /tools/catalog/{tool_ref}": $catalogTool,
|
|
600
|
+
"GET /tools/developer/usage": $developerUsage,
|
|
601
|
+
"GET /tools/developer/budgets": $developerBudgets,
|
|
602
|
+
"PUT /tools/developer/budgets": $setDeveloperBudgets,
|
|
603
|
+
"GET /tools/developer/docs": $developerDocs,
|
|
604
|
+
"GET /tools/developer/llms.txt": $developerLlmsTxt,
|
|
482
605
|
"GET /admin/agent-context/organizations": $listContextOrganizations,
|
|
483
606
|
"POST /admin/agent-context/render": $renderContext,
|
|
484
607
|
"GET /directives/catalog": $getDirectiveCatalog,
|
|
@@ -508,4 +631,4 @@ function call(api, key, args, options) {
|
|
|
508
631
|
return api.call(TABLE[key], args, options);
|
|
509
632
|
}
|
|
510
633
|
|
|
511
|
-
export { adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, cacheBust, call, cancelMatrixBattle, confirmProposedDirective, contextDelivered, createAgent, createCategory, createSkill, createStructuredAgent, deleteCategory, deleteSkill, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, importDraft, importPreview, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, renderContext, resolvePromptBlocks, runAgentTests, runMatrixBattle, screenRun, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, toolDetail, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
|
|
634
|
+
export { adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, cacheBust, call, cancel, cancelBattle, cancelMatrixBattle, cancelToolCall, catalogSearch, catalogTool, confirmProposedDirective, contextDelivered, createAgent, createBattle, createCategory, createSkill, createStructuredAgent, createToolCall, deleteCategory, deleteSkill, developerBudgets, developerDocs, developerLlmsTxt, developerUsage, evaluateChecks, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, formatCheck, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeModels, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolCall, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, importDraft, importPreview, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, launch, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, parseCheck, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promote, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, recheck, renderContext, resolvePromptBlocks, resume, runAgentTests, runBattle, runMatrixBattle, screenRun, setDeveloperBudgets, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, stream, toolAgentDoc, toolDetail, toolRunForm, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
|
package/dist/ai.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/ai.ts
|
|
@@ -16,6 +16,22 @@ var $createEmbeddings = { m: "POST", p: "/ai/google/embeddings", d: "aidream", a
|
|
|
16
16
|
function createEmbeddings(api, args, options) {
|
|
17
17
|
return api.call($createEmbeddings, args, options);
|
|
18
18
|
}
|
|
19
|
+
var $resolve = { m: "POST", p: "/ai-catalog/discover/resolve", d: "aidream", a: "user", o: "required", n: "ai.resolve" };
|
|
20
|
+
function resolve(api, args, options) {
|
|
21
|
+
return api.call($resolve, args, options);
|
|
22
|
+
}
|
|
23
|
+
var $search = { m: "POST", p: "/ai-catalog/discover/search", d: "aidream", a: "user", o: "required", n: "ai.search" };
|
|
24
|
+
function search(api, args, options) {
|
|
25
|
+
return api.call($search, args, options);
|
|
26
|
+
}
|
|
27
|
+
var $probe = { m: "POST", p: "/ai-catalog/discover/probe", d: "aidream", a: "user", o: "required", n: "ai.probe" };
|
|
28
|
+
function probe(api, args, options) {
|
|
29
|
+
return api.call($probe, args, options);
|
|
30
|
+
}
|
|
31
|
+
var $reportSha256 = { m: "POST", p: "/ai-catalog/discover/artifacts/{artifact_id}/sha256", d: "aidream", a: "user", o: "required", n: "ai.report_sha256" };
|
|
32
|
+
function reportSha256(api, args, options) {
|
|
33
|
+
return api.call($reportSha256, args, options);
|
|
34
|
+
}
|
|
19
35
|
var $getStatus = { m: "GET", p: "/ai-test-mode/status", d: "aidream", a: "user", o: "required", n: "ai.get_status" };
|
|
20
36
|
function getStatus(api, args, options) {
|
|
21
37
|
return api.call($getStatus, args, options);
|
|
@@ -78,7 +94,7 @@ function listModels(api, args, options) {
|
|
|
78
94
|
}
|
|
79
95
|
var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
|
|
80
96
|
function chatCompletions(api, args, options) {
|
|
81
|
-
return
|
|
97
|
+
return chunk27ZEEIXM_cjs.openJsonOrStream(api, $chatCompletions, args, options);
|
|
82
98
|
}
|
|
83
99
|
var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
|
|
84
100
|
function audioSpeech(api, args, options) {
|
|
@@ -100,6 +116,10 @@ var TABLE = {
|
|
|
100
116
|
"GET /ai-models": $getAllAiModels,
|
|
101
117
|
"POST /ai/latency/client-report": $clientLatencyReport,
|
|
102
118
|
"POST /ai/google/embeddings": $createEmbeddings,
|
|
119
|
+
"POST /ai-catalog/discover/resolve": $resolve,
|
|
120
|
+
"POST /ai-catalog/discover/search": $search,
|
|
121
|
+
"POST /ai-catalog/discover/probe": $probe,
|
|
122
|
+
"POST /ai-catalog/discover/artifacts/{artifact_id}/sha256": $reportSha256,
|
|
103
123
|
"GET /ai-test-mode/status": $getStatus,
|
|
104
124
|
"GET /admin/ai-test-mode/baselines": $listBaselines,
|
|
105
125
|
"PATCH /admin/ai-test-mode/baselines/{baseline_id}": $patchBaseline,
|
|
@@ -140,11 +160,15 @@ exports.hfTokenAssist = hfTokenAssist;
|
|
|
140
160
|
exports.listBaselines = listBaselines;
|
|
141
161
|
exports.listModels = listModels;
|
|
142
162
|
exports.patchBaseline = patchBaseline;
|
|
163
|
+
exports.probe = probe;
|
|
143
164
|
exports.putStandIn = putStandIn;
|
|
144
165
|
exports.refreshProviderModels = refreshProviderModels;
|
|
145
166
|
exports.registryDiffEndpoint = registryDiffEndpoint;
|
|
146
167
|
exports.reloadCatalog = reloadCatalog;
|
|
147
168
|
exports.reportEndpoint = reportEndpoint;
|
|
169
|
+
exports.reportSha256 = reportSha256;
|
|
170
|
+
exports.resolve = resolve;
|
|
148
171
|
exports.runScanEndpoint = runScanEndpoint;
|
|
149
172
|
exports.runSettingsProbe = runSettingsProbe;
|
|
173
|
+
exports.search = search;
|
|
150
174
|
exports.syncRegisteredUsagesEndpoint = syncRegisteredUsagesEndpoint;
|
package/dist/ai.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-A1nOdg4F.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentUsageReportResponse */
|
|
@@ -260,6 +260,11 @@ type RepoAnalysisResult = {
|
|
|
260
260
|
effective_capacity_gb: number | null;
|
|
261
261
|
files: ModelFileEntry[];
|
|
262
262
|
};
|
|
263
|
+
/** ResolveRequest */
|
|
264
|
+
type ResolveRequest = {
|
|
265
|
+
/** A Hugging Face or Civitai model link, owner/name, or a direct https link to a model file. */
|
|
266
|
+
link: string;
|
|
267
|
+
};
|
|
263
268
|
/** ScanSummary */
|
|
264
269
|
type ScanSummary = {
|
|
265
270
|
success: boolean;
|
|
@@ -325,6 +330,11 @@ type SettingsProbeSkippedOffering = {
|
|
|
325
330
|
modality: string;
|
|
326
331
|
why: string;
|
|
327
332
|
};
|
|
333
|
+
/** ShaReport */
|
|
334
|
+
type ShaReport = {
|
|
335
|
+
/** The sha256 the device computed for the downloaded file. */
|
|
336
|
+
sha256: string;
|
|
337
|
+
};
|
|
328
338
|
/** StandInBody */
|
|
329
339
|
type StandInBody = {
|
|
330
340
|
label?: string | null;
|
|
@@ -353,6 +363,14 @@ type UnservableOffering = {
|
|
|
353
363
|
reason: "absent_from_provider_list" | "not_serverless";
|
|
354
364
|
retirement_candidate: boolean;
|
|
355
365
|
};
|
|
366
|
+
/** SearchRequest */
|
|
367
|
+
type aidream__services__ai_catalog__local_models__search__SearchRequest = {
|
|
368
|
+
query?: string;
|
|
369
|
+
kind?: "text" | "vision" | "speech_to_text" | "text_to_speech" | "image" | "video" | "embedding" | "any";
|
|
370
|
+
sort?: "downloads" | "likes" | "updated" | "trending";
|
|
371
|
+
limit?: number;
|
|
372
|
+
cursor?: string | null;
|
|
373
|
+
};
|
|
356
374
|
type GetAllAiModelsArgs = {
|
|
357
375
|
[key: string]: never;
|
|
358
376
|
};
|
|
@@ -374,6 +392,45 @@ type CreateEmbeddingsResult = EmbeddingResponse;
|
|
|
374
392
|
/** Create Embeddings */
|
|
375
393
|
/** `POST /ai/google/embeddings` · aidream · auth guest · org required */
|
|
376
394
|
declare function createEmbeddings(api: Api, args: CreateEmbeddingsArgs, options?: CallOptions): Promise<CreateEmbeddingsResult>;
|
|
395
|
+
type ResolveArgs = {
|
|
396
|
+
body: ResolveRequest;
|
|
397
|
+
};
|
|
398
|
+
type ResolveResult = {
|
|
399
|
+
[key: string]: JsonValue;
|
|
400
|
+
};
|
|
401
|
+
/** Resolve */
|
|
402
|
+
/** `POST /ai-catalog/discover/resolve` · aidream · auth user · org required */
|
|
403
|
+
declare function resolve(api: Api, args: ResolveArgs, options?: CallOptions): Promise<ResolveResult>;
|
|
404
|
+
type SearchArgs = {
|
|
405
|
+
body: aidream__services__ai_catalog__local_models__search__SearchRequest;
|
|
406
|
+
};
|
|
407
|
+
type SearchResult = {
|
|
408
|
+
[key: string]: JsonValue;
|
|
409
|
+
};
|
|
410
|
+
/** Search */
|
|
411
|
+
/** `POST /ai-catalog/discover/search` · aidream · auth user · org required */
|
|
412
|
+
declare function search(api: Api, args: SearchArgs, options?: CallOptions): Promise<SearchResult>;
|
|
413
|
+
type ProbeArgs = {
|
|
414
|
+
body: ResolveRequest;
|
|
415
|
+
};
|
|
416
|
+
type ProbeResult = {
|
|
417
|
+
[key: string]: JsonValue;
|
|
418
|
+
};
|
|
419
|
+
/** Probe */
|
|
420
|
+
/** `POST /ai-catalog/discover/probe` · aidream · auth user · org required */
|
|
421
|
+
declare function probe(api: Api, args: ProbeArgs, options?: CallOptions): Promise<ProbeResult>;
|
|
422
|
+
type ReportSha256Args = {
|
|
423
|
+
path: {
|
|
424
|
+
artifact_id: string;
|
|
425
|
+
};
|
|
426
|
+
body: ShaReport;
|
|
427
|
+
};
|
|
428
|
+
type ReportSha256Result = {
|
|
429
|
+
[key: string]: JsonValue;
|
|
430
|
+
};
|
|
431
|
+
/** Report Sha256 */
|
|
432
|
+
/** `POST /ai-catalog/discover/artifacts/{artifact_id}/sha256` · aidream · auth user · org required */
|
|
433
|
+
declare function reportSha256(api: Api, args: ReportSha256Args, options?: CallOptions): Promise<ReportSha256Result>;
|
|
377
434
|
type GetStatusArgs = {
|
|
378
435
|
[key: string]: never;
|
|
379
436
|
};
|
|
@@ -549,6 +606,22 @@ interface Operations {
|
|
|
549
606
|
args: CreateEmbeddingsArgs;
|
|
550
607
|
result: CreateEmbeddingsResult;
|
|
551
608
|
};
|
|
609
|
+
"POST /ai-catalog/discover/resolve": {
|
|
610
|
+
args: ResolveArgs;
|
|
611
|
+
result: ResolveResult;
|
|
612
|
+
};
|
|
613
|
+
"POST /ai-catalog/discover/search": {
|
|
614
|
+
args: SearchArgs;
|
|
615
|
+
result: SearchResult;
|
|
616
|
+
};
|
|
617
|
+
"POST /ai-catalog/discover/probe": {
|
|
618
|
+
args: ProbeArgs;
|
|
619
|
+
result: ProbeResult;
|
|
620
|
+
};
|
|
621
|
+
"POST /ai-catalog/discover/artifacts/{artifact_id}/sha256": {
|
|
622
|
+
args: ReportSha256Args;
|
|
623
|
+
result: ReportSha256Result;
|
|
624
|
+
};
|
|
552
625
|
"GET /ai-test-mode/status": {
|
|
553
626
|
args: GetStatusArgs;
|
|
554
627
|
result: GetStatusResult;
|
|
@@ -629,4 +702,4 @@ interface Operations {
|
|
|
629
702
|
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
630
703
|
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
631
704
|
|
|
632
|
-
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type BaselineList, type BaselinePatch, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type DeleteBaselineArgs, type DeleteBaselineResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type GetReportArgs, type GetReportResult, type GetStatusArgs, type GetStatusResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListBaselinesArgs, type ListBaselinesResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type PatchBaselineArgs, type PatchBaselineResult, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type PutStandInArgs, type PutStandInResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type StandInBody, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type TestModeStatus, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
705
|
+
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type BaselineList, type BaselinePatch, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type DeleteBaselineArgs, type DeleteBaselineResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type GetReportArgs, type GetReportResult, type GetStatusArgs, type GetStatusResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListBaselinesArgs, type ListBaselinesResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type PatchBaselineArgs, type PatchBaselineResult, type ProbeArgs, type ProbeResult, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type PutStandInArgs, type PutStandInResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type ReportSha256Args, type ReportSha256Result, type ResolveArgs, type ResolveRequest, type ResolveResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SearchArgs, type SearchResult, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type ShaReport, type StandInBody, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type TestModeStatus, type UnservableOffering, type aidream__services__ai_catalog__local_models__search__SearchRequest, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, probe, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, reportSha256, resolve, runScanEndpoint, runSettingsProbe, search, syncRegisteredUsagesEndpoint };
|
package/dist/ai.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-A1nOdg4F.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** AgentUsageReportResponse */
|
|
@@ -260,6 +260,11 @@ type RepoAnalysisResult = {
|
|
|
260
260
|
effective_capacity_gb: number | null;
|
|
261
261
|
files: ModelFileEntry[];
|
|
262
262
|
};
|
|
263
|
+
/** ResolveRequest */
|
|
264
|
+
type ResolveRequest = {
|
|
265
|
+
/** A Hugging Face or Civitai model link, owner/name, or a direct https link to a model file. */
|
|
266
|
+
link: string;
|
|
267
|
+
};
|
|
263
268
|
/** ScanSummary */
|
|
264
269
|
type ScanSummary = {
|
|
265
270
|
success: boolean;
|
|
@@ -325,6 +330,11 @@ type SettingsProbeSkippedOffering = {
|
|
|
325
330
|
modality: string;
|
|
326
331
|
why: string;
|
|
327
332
|
};
|
|
333
|
+
/** ShaReport */
|
|
334
|
+
type ShaReport = {
|
|
335
|
+
/** The sha256 the device computed for the downloaded file. */
|
|
336
|
+
sha256: string;
|
|
337
|
+
};
|
|
328
338
|
/** StandInBody */
|
|
329
339
|
type StandInBody = {
|
|
330
340
|
label?: string | null;
|
|
@@ -353,6 +363,14 @@ type UnservableOffering = {
|
|
|
353
363
|
reason: "absent_from_provider_list" | "not_serverless";
|
|
354
364
|
retirement_candidate: boolean;
|
|
355
365
|
};
|
|
366
|
+
/** SearchRequest */
|
|
367
|
+
type aidream__services__ai_catalog__local_models__search__SearchRequest = {
|
|
368
|
+
query?: string;
|
|
369
|
+
kind?: "text" | "vision" | "speech_to_text" | "text_to_speech" | "image" | "video" | "embedding" | "any";
|
|
370
|
+
sort?: "downloads" | "likes" | "updated" | "trending";
|
|
371
|
+
limit?: number;
|
|
372
|
+
cursor?: string | null;
|
|
373
|
+
};
|
|
356
374
|
type GetAllAiModelsArgs = {
|
|
357
375
|
[key: string]: never;
|
|
358
376
|
};
|
|
@@ -374,6 +392,45 @@ type CreateEmbeddingsResult = EmbeddingResponse;
|
|
|
374
392
|
/** Create Embeddings */
|
|
375
393
|
/** `POST /ai/google/embeddings` · aidream · auth guest · org required */
|
|
376
394
|
declare function createEmbeddings(api: Api, args: CreateEmbeddingsArgs, options?: CallOptions): Promise<CreateEmbeddingsResult>;
|
|
395
|
+
type ResolveArgs = {
|
|
396
|
+
body: ResolveRequest;
|
|
397
|
+
};
|
|
398
|
+
type ResolveResult = {
|
|
399
|
+
[key: string]: JsonValue;
|
|
400
|
+
};
|
|
401
|
+
/** Resolve */
|
|
402
|
+
/** `POST /ai-catalog/discover/resolve` · aidream · auth user · org required */
|
|
403
|
+
declare function resolve(api: Api, args: ResolveArgs, options?: CallOptions): Promise<ResolveResult>;
|
|
404
|
+
type SearchArgs = {
|
|
405
|
+
body: aidream__services__ai_catalog__local_models__search__SearchRequest;
|
|
406
|
+
};
|
|
407
|
+
type SearchResult = {
|
|
408
|
+
[key: string]: JsonValue;
|
|
409
|
+
};
|
|
410
|
+
/** Search */
|
|
411
|
+
/** `POST /ai-catalog/discover/search` · aidream · auth user · org required */
|
|
412
|
+
declare function search(api: Api, args: SearchArgs, options?: CallOptions): Promise<SearchResult>;
|
|
413
|
+
type ProbeArgs = {
|
|
414
|
+
body: ResolveRequest;
|
|
415
|
+
};
|
|
416
|
+
type ProbeResult = {
|
|
417
|
+
[key: string]: JsonValue;
|
|
418
|
+
};
|
|
419
|
+
/** Probe */
|
|
420
|
+
/** `POST /ai-catalog/discover/probe` · aidream · auth user · org required */
|
|
421
|
+
declare function probe(api: Api, args: ProbeArgs, options?: CallOptions): Promise<ProbeResult>;
|
|
422
|
+
type ReportSha256Args = {
|
|
423
|
+
path: {
|
|
424
|
+
artifact_id: string;
|
|
425
|
+
};
|
|
426
|
+
body: ShaReport;
|
|
427
|
+
};
|
|
428
|
+
type ReportSha256Result = {
|
|
429
|
+
[key: string]: JsonValue;
|
|
430
|
+
};
|
|
431
|
+
/** Report Sha256 */
|
|
432
|
+
/** `POST /ai-catalog/discover/artifacts/{artifact_id}/sha256` · aidream · auth user · org required */
|
|
433
|
+
declare function reportSha256(api: Api, args: ReportSha256Args, options?: CallOptions): Promise<ReportSha256Result>;
|
|
377
434
|
type GetStatusArgs = {
|
|
378
435
|
[key: string]: never;
|
|
379
436
|
};
|
|
@@ -549,6 +606,22 @@ interface Operations {
|
|
|
549
606
|
args: CreateEmbeddingsArgs;
|
|
550
607
|
result: CreateEmbeddingsResult;
|
|
551
608
|
};
|
|
609
|
+
"POST /ai-catalog/discover/resolve": {
|
|
610
|
+
args: ResolveArgs;
|
|
611
|
+
result: ResolveResult;
|
|
612
|
+
};
|
|
613
|
+
"POST /ai-catalog/discover/search": {
|
|
614
|
+
args: SearchArgs;
|
|
615
|
+
result: SearchResult;
|
|
616
|
+
};
|
|
617
|
+
"POST /ai-catalog/discover/probe": {
|
|
618
|
+
args: ProbeArgs;
|
|
619
|
+
result: ProbeResult;
|
|
620
|
+
};
|
|
621
|
+
"POST /ai-catalog/discover/artifacts/{artifact_id}/sha256": {
|
|
622
|
+
args: ReportSha256Args;
|
|
623
|
+
result: ReportSha256Result;
|
|
624
|
+
};
|
|
552
625
|
"GET /ai-test-mode/status": {
|
|
553
626
|
args: GetStatusArgs;
|
|
554
627
|
result: GetStatusResult;
|
|
@@ -629,4 +702,4 @@ interface Operations {
|
|
|
629
702
|
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
630
703
|
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
631
704
|
|
|
632
|
-
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type BaselineList, type BaselinePatch, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type DeleteBaselineArgs, type DeleteBaselineResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type GetReportArgs, type GetReportResult, type GetStatusArgs, type GetStatusResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListBaselinesArgs, type ListBaselinesResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type PatchBaselineArgs, type PatchBaselineResult, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type PutStandInArgs, type PutStandInResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type StandInBody, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type TestModeStatus, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
705
|
+
export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type BaselineList, type BaselinePatch, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type DeleteBaselineArgs, type DeleteBaselineResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type GetReportArgs, type GetReportResult, type GetStatusArgs, type GetStatusResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListBaselinesArgs, type ListBaselinesResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type PatchBaselineArgs, type PatchBaselineResult, type ProbeArgs, type ProbeResult, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type PutStandInArgs, type PutStandInResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type ReportSha256Args, type ReportSha256Result, type ResolveArgs, type ResolveRequest, type ResolveResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SearchArgs, type SearchResult, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type ShaReport, type StandInBody, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type TestModeStatus, type UnservableOffering, type aidream__services__ai_catalog__local_models__search__SearchRequest, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, probe, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, reportSha256, resolve, runScanEndpoint, runSettingsProbe, search, syncRegisteredUsagesEndpoint };
|
package/dist/ai.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openJsonOrStream } from './chunk-
|
|
1
|
+
import { openJsonOrStream } from './chunk-X75SKCDS.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
3
|
|
|
4
4
|
// src/generated/ai.ts
|
|
@@ -14,6 +14,22 @@ var $createEmbeddings = { m: "POST", p: "/ai/google/embeddings", d: "aidream", a
|
|
|
14
14
|
function createEmbeddings(api, args, options) {
|
|
15
15
|
return api.call($createEmbeddings, args, options);
|
|
16
16
|
}
|
|
17
|
+
var $resolve = { m: "POST", p: "/ai-catalog/discover/resolve", d: "aidream", a: "user", o: "required", n: "ai.resolve" };
|
|
18
|
+
function resolve(api, args, options) {
|
|
19
|
+
return api.call($resolve, args, options);
|
|
20
|
+
}
|
|
21
|
+
var $search = { m: "POST", p: "/ai-catalog/discover/search", d: "aidream", a: "user", o: "required", n: "ai.search" };
|
|
22
|
+
function search(api, args, options) {
|
|
23
|
+
return api.call($search, args, options);
|
|
24
|
+
}
|
|
25
|
+
var $probe = { m: "POST", p: "/ai-catalog/discover/probe", d: "aidream", a: "user", o: "required", n: "ai.probe" };
|
|
26
|
+
function probe(api, args, options) {
|
|
27
|
+
return api.call($probe, args, options);
|
|
28
|
+
}
|
|
29
|
+
var $reportSha256 = { m: "POST", p: "/ai-catalog/discover/artifacts/{artifact_id}/sha256", d: "aidream", a: "user", o: "required", n: "ai.report_sha256" };
|
|
30
|
+
function reportSha256(api, args, options) {
|
|
31
|
+
return api.call($reportSha256, args, options);
|
|
32
|
+
}
|
|
17
33
|
var $getStatus = { m: "GET", p: "/ai-test-mode/status", d: "aidream", a: "user", o: "required", n: "ai.get_status" };
|
|
18
34
|
function getStatus(api, args, options) {
|
|
19
35
|
return api.call($getStatus, args, options);
|
|
@@ -98,6 +114,10 @@ var TABLE = {
|
|
|
98
114
|
"GET /ai-models": $getAllAiModels,
|
|
99
115
|
"POST /ai/latency/client-report": $clientLatencyReport,
|
|
100
116
|
"POST /ai/google/embeddings": $createEmbeddings,
|
|
117
|
+
"POST /ai-catalog/discover/resolve": $resolve,
|
|
118
|
+
"POST /ai-catalog/discover/search": $search,
|
|
119
|
+
"POST /ai-catalog/discover/probe": $probe,
|
|
120
|
+
"POST /ai-catalog/discover/artifacts/{artifact_id}/sha256": $reportSha256,
|
|
101
121
|
"GET /ai-test-mode/status": $getStatus,
|
|
102
122
|
"GET /admin/ai-test-mode/baselines": $listBaselines,
|
|
103
123
|
"PATCH /admin/ai-test-mode/baselines/{baseline_id}": $patchBaseline,
|
|
@@ -122,4 +142,4 @@ function call(api, key, args, options) {
|
|
|
122
142
|
return api.call(TABLE[key], args, options);
|
|
123
143
|
}
|
|
124
144
|
|
|
125
|
-
export { analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
|
|
145
|
+
export { analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, probe, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, reportSha256, resolve, runScanEndpoint, runSettingsProbe, search, syncRegisteredUsagesEndpoint };
|
package/dist/apps.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/apps.ts
|
|
@@ -12,10 +12,6 @@ var $getAppCatalogKind = { m: "GET", p: "/catalogs/{app}/{kind}", d: "aidream",
|
|
|
12
12
|
function getAppCatalogKind(api, args, options) {
|
|
13
13
|
return api.call($getAppCatalogKind, args, options);
|
|
14
14
|
}
|
|
15
|
-
var $resolve = { m: "POST", p: "/catalog-resolver/resolve", d: "aidream", a: "admin", o: "required", n: "apps.resolve" };
|
|
16
|
-
function resolve(api, args, options) {
|
|
17
|
-
return api.call($resolve, args, options);
|
|
18
|
-
}
|
|
19
15
|
var $desktopInstancesListDesktopInstances = { m: "GET", p: "/desktop-instances/", d: "aidream", a: "user", o: "required", n: "apps.desktop_instances_list_desktop_instances" };
|
|
20
16
|
function desktopInstancesListDesktopInstances(api, args, options) {
|
|
21
17
|
return api.call($desktopInstancesListDesktopInstances, args, options);
|
|
@@ -218,7 +214,7 @@ function getInstallStatus(api, args, options) {
|
|
|
218
214
|
}
|
|
219
215
|
var $streamInstallProgress = { m: "GET", p: "/capabilities/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "apps.stream_install_progress" };
|
|
220
216
|
function streamInstallProgress(api, args, options) {
|
|
221
|
-
return
|
|
217
|
+
return chunk27ZEEIXM_cjs.openStream(api, $streamInstallProgress, args, options);
|
|
222
218
|
}
|
|
223
219
|
var $tunnelStatus = { m: "GET", p: "/tunnel/status", d: "matrx-local", a: "public", o: "exempt", n: "apps.tunnel_status" };
|
|
224
220
|
function tunnelStatus(api, args, options) {
|
|
@@ -238,15 +234,15 @@ function getSetupStatus(api, args, options) {
|
|
|
238
234
|
}
|
|
239
235
|
var $runInstall = { m: "POST", p: "/setup/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.run_install" };
|
|
240
236
|
function runInstall(api, args, options) {
|
|
241
|
-
return
|
|
237
|
+
return chunk27ZEEIXM_cjs.openStream(api, $runInstall, args, options);
|
|
242
238
|
}
|
|
243
239
|
var $installTranscription = { m: "POST", p: "/setup/install-transcription", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.install_transcription" };
|
|
244
240
|
function installTranscription(api, args, options) {
|
|
245
|
-
return
|
|
241
|
+
return chunk27ZEEIXM_cjs.openStream(api, $installTranscription, args, options);
|
|
246
242
|
}
|
|
247
243
|
var $streamLogs = { m: "GET", p: "/setup/logs", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.stream_logs" };
|
|
248
244
|
function streamLogs(api, args, options) {
|
|
249
|
-
return
|
|
245
|
+
return chunk27ZEEIXM_cjs.openStream(api, $streamLogs, args, options);
|
|
250
246
|
}
|
|
251
247
|
var $debugState = { m: "GET", p: "/setup/debug", d: "matrx-local", a: "loopback_open", o: "exempt", n: "apps.debug_state" };
|
|
252
248
|
function debugState(api, args, options) {
|
|
@@ -263,7 +259,6 @@ function refreshContext(api, args, options) {
|
|
|
263
259
|
var TABLE = {
|
|
264
260
|
"GET /catalogs/{app}": $getAppCatalog,
|
|
265
261
|
"GET /catalogs/{app}/{kind}": $getAppCatalogKind,
|
|
266
|
-
"POST /catalog-resolver/resolve": $resolve,
|
|
267
262
|
"GET /desktop-instances/": $desktopInstancesListDesktopInstances,
|
|
268
263
|
"GET /desktop-instances": $desktopInstancesListDesktopInstancesGet,
|
|
269
264
|
"GET /authenticator": $listAuthenticators,
|
|
@@ -373,7 +368,6 @@ exports.refreshVaultKeySource = refreshVaultKeySource;
|
|
|
373
368
|
exports.removeForbiddenUrl = removeForbiddenUrl;
|
|
374
369
|
exports.replaceForbiddenUrls = replaceForbiddenUrls;
|
|
375
370
|
exports.resetPathToDefault = resetPathToDefault;
|
|
376
|
-
exports.resolve = resolve;
|
|
377
371
|
exports.root = root;
|
|
378
372
|
exports.runInstall = runInstall;
|
|
379
373
|
exports.saveWakeWordSettings = saveWakeWordSettings;
|