@mantyx/sdk 2026.11.7 → 2026.11.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 +2 -0
- package/dist/decisions.d.ts +32 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/docs/agent-runs-protocol.md +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,8 @@ and new releases use calendar versions (`YYYY.M.RELEASE`). Historical versions r
|
|
|
7
7
|
|
|
8
8
|
### Decisions
|
|
9
9
|
|
|
10
|
+
- Support Google Gemini decisions with explicit multimodal input, model capability limits, and predicate confidence.
|
|
11
|
+
|
|
10
12
|
- Add inline decision execution, decision-model discovery, and execution history APIs.
|
|
11
13
|
|
|
12
14
|
### Added
|
package/dist/decisions.d.ts
CHANGED
|
@@ -20,16 +20,43 @@ export type DecisionQuestion = {
|
|
|
20
20
|
description?: string;
|
|
21
21
|
}[];
|
|
22
22
|
};
|
|
23
|
+
export type DecisionContent = {
|
|
24
|
+
type: "text";
|
|
25
|
+
text: string;
|
|
26
|
+
} | (({
|
|
27
|
+
type: "image";
|
|
28
|
+
mime_type: string;
|
|
29
|
+
resolution?: "low" | "medium" | "high" | "ultra_high";
|
|
30
|
+
} | {
|
|
31
|
+
type: "video";
|
|
32
|
+
mime_type: string;
|
|
33
|
+
resolution?: "low" | "medium" | "high";
|
|
34
|
+
} | {
|
|
35
|
+
type: "audio";
|
|
36
|
+
mime_type: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "document";
|
|
39
|
+
mime_type: "application/pdf";
|
|
40
|
+
}) & ({
|
|
41
|
+
uri: string;
|
|
42
|
+
data?: never;
|
|
43
|
+
} | {
|
|
44
|
+
data: string;
|
|
45
|
+
uri?: never;
|
|
46
|
+
}));
|
|
23
47
|
export interface DecisionRequest {
|
|
24
48
|
/** Use an exact id returned by listDecisionModels(). */
|
|
25
49
|
modelId: string;
|
|
26
|
-
|
|
50
|
+
/** Opt into Google content blocks; otherwise objects and arrays remain JSON data. */
|
|
51
|
+
inputFormat?: "content";
|
|
52
|
+
input: string | Record<string, unknown> | unknown[] | DecisionContent;
|
|
27
53
|
questions: DecisionQuestion[];
|
|
28
54
|
metadata?: Record<string, string>;
|
|
29
55
|
}
|
|
30
56
|
export type DecisionAnswer = {
|
|
31
57
|
type: "predicate";
|
|
32
58
|
probability: number;
|
|
59
|
+
confidence?: number;
|
|
33
60
|
} | {
|
|
34
61
|
type: "choice";
|
|
35
62
|
value: string;
|
|
@@ -56,7 +83,7 @@ export interface DecisionResult {
|
|
|
56
83
|
answers: Record<string, DecisionAnswer>;
|
|
57
84
|
model: {
|
|
58
85
|
id: string;
|
|
59
|
-
provider: "openai" | "openrouter";
|
|
86
|
+
provider: "openai" | "openrouter" | "google";
|
|
60
87
|
requested: string;
|
|
61
88
|
resolved: string;
|
|
62
89
|
};
|
|
@@ -71,11 +98,13 @@ export interface DecisionResult {
|
|
|
71
98
|
export interface DecisionModelInfo {
|
|
72
99
|
id: string;
|
|
73
100
|
label: string;
|
|
74
|
-
provider: "openai" | "openrouter";
|
|
101
|
+
provider: "openai" | "openrouter" | "google";
|
|
75
102
|
vendorModelId: string;
|
|
76
103
|
connectionName: string;
|
|
77
104
|
source: "workspace_provider";
|
|
78
105
|
maxQuestions: number;
|
|
106
|
+
maxScoreLevels: number;
|
|
107
|
+
inputFormats: ("text" | "json" | "content")[];
|
|
79
108
|
questionTypes: ("predicate" | "choice" | "score")[];
|
|
80
109
|
}
|
|
81
110
|
export interface DecisionRunSummary {
|
package/dist/index.cjs
CHANGED
|
@@ -2599,7 +2599,7 @@ async function runComputerUse(opts) {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
|
|
2601
2601
|
// src/version.ts
|
|
2602
|
-
var SDK_VERSION = "2026.11.
|
|
2602
|
+
var SDK_VERSION = "2026.11.8";
|
|
2603
2603
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2604
2604
|
0 && (module.exports = {
|
|
2605
2605
|
AgentSession,
|
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*
|
|
34
34
|
* console.log(result.text);
|
|
35
35
|
*/
|
|
36
|
-
export type { DecisionQuestion, DecisionRequest, DecisionAnswer, DecisionResult, DecisionModelInfo, DecisionRunSummary, DecisionRunDetail, DecisionRunList } from "./decisions.js";
|
|
36
|
+
export type { DecisionContent, DecisionQuestion, DecisionRequest, DecisionAnswer, DecisionResult, DecisionModelInfo, DecisionRunSummary, DecisionRunDetail, DecisionRunList } from "./decisions.js";
|
|
37
37
|
export { MantyxClient, AgentSession, DEFAULT_BASE_URL, parseRunOutput, planOnly, taskPlanFromEventData, inputFileAttachment, inputFileUrlAttachment, } from "./client.js";
|
|
38
38
|
export type { MantyxClientOptions, ModelInfo, ModelCatalog, AgentSpecBase, RunSpec, SessionSpec, OutputSchema, OutputSchemaValue, LoopDetection, ToolBudget, ToolBudgets, Supervisor, SupervisorAction, SupervisorPhase, ReasoningTrigger, PlanOptions, PlanMode, PlanSpec, TaskPlan, TaskPlanStep, TaskPlanStepStatus, TaskPlanTransition, RunResult, RunTokenUsage, RunModelInfo, RunEvent, RunEventBase, AssistantDeltaEvent, ThinkingDeltaEvent, AssistantMessageEvent, ModelFallbackEvent, UserMessageEvent, InputFileAttachment, InputFileUrlAttachment, MessageAttachment, InputFileAttachmentMetadata, InputFileUrlAttachmentMetadata, AttachmentMetadata, ConversationMessage, ServerToolResultEvent, LocalToolCallEvent, LocalToolResultInEvent, LoopDetectedEvent, ToolBudgetExceededEvent, SupervisorEvent, TaskPlanEvent, ResultEvent, ErrorEvent, CancelledEvent, SessionInfo, SessionSummary, SessionListResult, SessionEventsPage, LocalHandlers, RunFeedbackVerdict, TurnInstructionsAuthority, RunFeedbackInput, RunFeedbackResult, } from "./client.js";
|
|
39
39
|
export { defineLocalTool, mantyxA2A, defineLocalA2A, mantyxMcp, defineLocalMcp, isLocalTool, isLocalA2ATool, isLocalMcpServer, } from "./tools.js";
|
package/dist/index.js
CHANGED
package/dist/version.d.ts
CHANGED
|
@@ -89,10 +89,11 @@ policy and are tracked per-credential.
|
|
|
89
89
|
|
|
90
90
|
### 2.1 Workspace API keys (machine credentials)
|
|
91
91
|
|
|
92
|
-
A workspace
|
|
93
|
-
**
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
A workspace member can create, rename, and revoke their own keys under
|
|
93
|
+
**Integrate → API keys**. Workspace admins can manage all keys in that
|
|
94
|
+
workspace, including older keys issued before ownership was recorded.
|
|
95
|
+
New keys stop authenticating while their owner’s account is locked.
|
|
96
|
+
Removing the owner from the workspace revokes their keys.
|
|
96
97
|
|
|
97
98
|
API keys carry no granular scopes; possession of a Developer-API key is
|
|
98
99
|
enough to call every route in this document.
|
|
@@ -877,8 +878,7 @@ Provider create (`POST /api/llm-providers`, including marketplace connections
|
|
|
877
878
|
and BYOK duplication) accepts `openRouterProvider` as a stored default on the
|
|
878
879
|
workspace provider. Provider update (`PATCH /api/llm-providers/:id`) also accepts
|
|
879
880
|
`null` to clear the default. Provider responses return the object or `null`.
|
|
880
|
-
|
|
881
|
-
the stored value unchanged does not.
|
|
881
|
+
Managing workspace provider connections and routing defaults requires a workspace admin.
|
|
882
882
|
|
|
883
883
|
Effective routing is a shallow per-key merge:
|
|
884
884
|
`{ ...providerDefault, ...runOverride }`. Arrays and nested objects in the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantyx/sdk",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.8",
|
|
4
4
|
"description": "MANTYX as a hosted agent runtime: define agents inline, mix server-resolved MCP and A2A tools with locally-executed tools, run them remotely.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|