@vellumai/assistant 0.10.11-dev.202607241735.ced7ef3 → 0.10.11-dev.202607241836.91be689
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/package.json
CHANGED
|
@@ -95,10 +95,7 @@ import type { _SurfacesServerMessages } from "./message-types/surfaces.js";
|
|
|
95
95
|
import type { _SyncInvalidationServerMessages } from "./message-types/sync.js";
|
|
96
96
|
import type { _UpgradesServerMessages } from "./message-types/upgrades.js";
|
|
97
97
|
import type { _WorkflowsServerMessages } from "./message-types/workflows.js";
|
|
98
|
-
import type {
|
|
99
|
-
_WorkspaceClientMessages,
|
|
100
|
-
_WorkspaceServerMessages,
|
|
101
|
-
} from "./message-types/workspace.js";
|
|
98
|
+
import type { _WorkspaceServerMessages } from "./message-types/workspace.js";
|
|
102
99
|
|
|
103
100
|
// === Client -> Server aggregate union ===
|
|
104
101
|
|
|
@@ -107,7 +104,6 @@ export type ClientMessage =
|
|
|
107
104
|
| _IntegrationsClientMessages
|
|
108
105
|
| _ComputerUseClientMessages
|
|
109
106
|
| _HostBrowserClientMessages
|
|
110
|
-
| _WorkspaceClientMessages
|
|
111
107
|
| _DiagnosticsClientMessages
|
|
112
108
|
| _NotificationsClientMessages;
|
|
113
109
|
|
|
@@ -1,137 +1,11 @@
|
|
|
1
|
-
// Workspace
|
|
1
|
+
// Workspace identity events.
|
|
2
|
+
//
|
|
3
|
+
// Server→client events are single-sourced from their canonical `api/events`
|
|
4
|
+
// wire schemas; this file composes them into the domain union consumed by
|
|
5
|
+
// `message-protocol.ts`. Workspace file listing/reading, identity retrieval,
|
|
6
|
+
// tool-permission simulation, and tool-name listing are served by the HTTP
|
|
7
|
+
// workspace / settings routes, not by client messages.
|
|
2
8
|
|
|
3
9
|
import type { IdentityChangedEvent } from "../../api/events/identity-changed.js";
|
|
4
10
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export interface WorkspaceFilesListRequest {
|
|
8
|
-
type: "workspace_files_list";
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface WorkspaceFileReadRequest {
|
|
12
|
-
type: "workspace_file_read";
|
|
13
|
-
/** Relative path within the workspace directory (e.g. "IDENTITY.md"). */
|
|
14
|
-
path: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IdentityGetRequest {
|
|
18
|
-
type: "identity_get";
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface ToolPermissionSimulateRequest {
|
|
22
|
-
type: "tool_permission_simulate";
|
|
23
|
-
/** Tool name to simulate (e.g. 'bash', 'file_write'). */
|
|
24
|
-
toolName: string;
|
|
25
|
-
/** Tool input record to simulate. */
|
|
26
|
-
input: Record<string, unknown>;
|
|
27
|
-
/** Working directory context; defaults to daemon cwd when omitted. */
|
|
28
|
-
workingDir?: string;
|
|
29
|
-
/** Whether the simulated context is interactive (default true). */
|
|
30
|
-
isInteractive?: boolean;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface ToolNamesListRequest {
|
|
34
|
-
type: "tool_names_list";
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// === Server → Client ===
|
|
38
|
-
|
|
39
|
-
export interface WorkspaceFilesListResponse {
|
|
40
|
-
type: "workspace_files_list_response";
|
|
41
|
-
files: Array<{
|
|
42
|
-
/** Relative path within the workspace (e.g. "IDENTITY.md", "skills/my-skill"). */
|
|
43
|
-
path: string;
|
|
44
|
-
/** Display name (e.g. "IDENTITY.md"). */
|
|
45
|
-
name: string;
|
|
46
|
-
/** Whether the file/directory exists. */
|
|
47
|
-
exists: boolean;
|
|
48
|
-
}>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface WorkspaceFileReadResponse {
|
|
52
|
-
type: "workspace_file_read_response";
|
|
53
|
-
path: string;
|
|
54
|
-
content: string | null;
|
|
55
|
-
error?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface IdentityGetResponse {
|
|
59
|
-
type: "identity_get_response";
|
|
60
|
-
/** Whether an IDENTITY.md file was found. When false, all fields are empty defaults. */
|
|
61
|
-
found: boolean;
|
|
62
|
-
name: string;
|
|
63
|
-
role: string;
|
|
64
|
-
personality: string;
|
|
65
|
-
emoji: string;
|
|
66
|
-
home: string;
|
|
67
|
-
version?: string;
|
|
68
|
-
assistantId?: string;
|
|
69
|
-
createdAt?: string;
|
|
70
|
-
originSystem?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface ToolPermissionSimulateResponse {
|
|
74
|
-
type: "tool_permission_simulate_response";
|
|
75
|
-
success: boolean;
|
|
76
|
-
/** The simulated permission decision. */
|
|
77
|
-
decision?: "allow" | "deny" | "prompt";
|
|
78
|
-
/** Risk level of the simulated tool invocation. */
|
|
79
|
-
riskLevel?: string;
|
|
80
|
-
/** Human-readable reason for the decision. */
|
|
81
|
-
reason?: string;
|
|
82
|
-
/** When decision is 'prompt', the data needed to render a ToolConfirmationBubble. */
|
|
83
|
-
promptPayload?: {
|
|
84
|
-
allowlistOptions: Array<{
|
|
85
|
-
label: string;
|
|
86
|
-
description: string;
|
|
87
|
-
pattern: string;
|
|
88
|
-
}>;
|
|
89
|
-
scopeOptions: Array<{ label: string; scope: string }>;
|
|
90
|
-
persistentDecisionsAllowed: boolean;
|
|
91
|
-
};
|
|
92
|
-
/** Resolved execution target for the tool. */
|
|
93
|
-
executionTarget?: "host" | "sandbox";
|
|
94
|
-
/** ID of the trust rule that matched (if any). */
|
|
95
|
-
matchedTrustRuleId?: string;
|
|
96
|
-
/** Error message when success is false. */
|
|
97
|
-
error?: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface ToolInputSchema {
|
|
101
|
-
type: "object";
|
|
102
|
-
properties?: Record<
|
|
103
|
-
string,
|
|
104
|
-
{
|
|
105
|
-
type?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
enum?: string[];
|
|
108
|
-
[key: string]: unknown;
|
|
109
|
-
}
|
|
110
|
-
>;
|
|
111
|
-
required?: string[];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface ToolNamesListResponse {
|
|
115
|
-
type: "tool_names_list_response";
|
|
116
|
-
/** Sorted list of all registered tool names. */
|
|
117
|
-
names: string[];
|
|
118
|
-
/** Input schemas keyed by tool name. */
|
|
119
|
-
schemas?: Record<string, ToolInputSchema>;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// --- Domain-level union aliases (consumed by the barrel file) ---
|
|
123
|
-
|
|
124
|
-
export type _WorkspaceClientMessages =
|
|
125
|
-
| WorkspaceFilesListRequest
|
|
126
|
-
| WorkspaceFileReadRequest
|
|
127
|
-
| IdentityGetRequest
|
|
128
|
-
| ToolPermissionSimulateRequest
|
|
129
|
-
| ToolNamesListRequest;
|
|
130
|
-
|
|
131
|
-
export type _WorkspaceServerMessages =
|
|
132
|
-
| WorkspaceFilesListResponse
|
|
133
|
-
| WorkspaceFileReadResponse
|
|
134
|
-
| IdentityGetResponse
|
|
135
|
-
| ToolPermissionSimulateResponse
|
|
136
|
-
| ToolNamesListResponse
|
|
137
|
-
| IdentityChangedEvent;
|
|
11
|
+
export type _WorkspaceServerMessages = IdentityChangedEvent;
|
|
@@ -973,17 +973,19 @@ export class AnthropicProvider implements Provider {
|
|
|
973
973
|
(restConfig as Record<string, unknown>).model?.toString() ?? this.model;
|
|
974
974
|
const isHaiku = effectiveModel.includes("haiku");
|
|
975
975
|
const supportsEffort = !isHaiku;
|
|
976
|
-
// opus-4-7 / opus-4-8 and sonnet-5 reject `temperature`,
|
|
977
|
-
// `top_k` with a 400 "`temperature`/`top_p` is deprecated
|
|
978
|
-
// — model-wide, not effort-conditional (verified
|
|
979
|
-
// sonnet-4-6 / haiku-4-5 still accept them.
|
|
980
|
-
// conservatively (a frontier model that could not be
|
|
981
|
-
// but follows the same deprecation direction).
|
|
982
|
-
// keeps callers that set them (e.g. the
|
|
983
|
-
// `temperature: 0`) from 400ing. OpenRouter
|
|
984
|
-
// delegate to this provider, so the bare-id
|
|
976
|
+
// opus-4-7 / opus-4-8 / opus-5 and sonnet-5 reject `temperature`,
|
|
977
|
+
// `top_p`, and `top_k` with a 400 "`temperature`/`top_p` is deprecated
|
|
978
|
+
// for this model" — model-wide, not effort-conditional (verified
|
|
979
|
+
// 2026-06-23). opus-4-6 / sonnet-4-6 / haiku-4-5 still accept them.
|
|
980
|
+
// fable-5 is included conservatively (a frontier model that could not be
|
|
981
|
+
// verified directly but follows the same deprecation direction).
|
|
982
|
+
// Stripping the params here keeps callers that set them (e.g. the
|
|
983
|
+
// memory-v3 L2 selector's `temperature: 0`) from 400ing. OpenRouter
|
|
984
|
+
// `anthropic/...` models delegate to this provider, so the bare-id
|
|
985
|
+
// suffix is what matches.
|
|
985
986
|
const deprecatesSamplingParams =
|
|
986
987
|
/claude-opus-4-[78]\b/.test(effectiveModel) ||
|
|
988
|
+
/claude-opus-5\b/.test(effectiveModel) ||
|
|
987
989
|
/claude-sonnet-5\b/.test(effectiveModel) ||
|
|
988
990
|
effectiveModel.startsWith("claude-fable-");
|
|
989
991
|
const mergedOutputConfig = {
|
|
@@ -179,6 +179,23 @@ const RAW_PROVIDER_CATALOG: ProviderCatalogEntry[] = [
|
|
|
179
179
|
cacheReadPer1mTokens: 1,
|
|
180
180
|
},
|
|
181
181
|
},
|
|
182
|
+
{
|
|
183
|
+
id: "claude-opus-5",
|
|
184
|
+
displayName: "Claude Opus 5",
|
|
185
|
+
contextWindowTokens: 1000000,
|
|
186
|
+
maxOutputTokens: 128000,
|
|
187
|
+
longContextPricingThresholdTokens: 200000,
|
|
188
|
+
supportsThinking: true,
|
|
189
|
+
supportsCaching: true,
|
|
190
|
+
supportsVision: true,
|
|
191
|
+
supportsToolUse: true,
|
|
192
|
+
pricing: {
|
|
193
|
+
inputPer1mTokens: 5,
|
|
194
|
+
outputPer1mTokens: 25,
|
|
195
|
+
cacheWritePer1mTokens: 6.25,
|
|
196
|
+
cacheReadPer1mTokens: 0.5,
|
|
197
|
+
},
|
|
198
|
+
},
|
|
182
199
|
{
|
|
183
200
|
id: "claude-opus-4-8",
|
|
184
201
|
displayName: "Claude Opus 4.8",
|
|
@@ -1000,6 +1017,23 @@ const RAW_PROVIDER_CATALOG: ProviderCatalogEntry[] = [
|
|
|
1000
1017
|
cacheReadPer1mTokens: 1,
|
|
1001
1018
|
},
|
|
1002
1019
|
},
|
|
1020
|
+
{
|
|
1021
|
+
id: "anthropic/claude-opus-5",
|
|
1022
|
+
displayName: "Claude Opus 5",
|
|
1023
|
+
contextWindowTokens: 1000000,
|
|
1024
|
+
maxOutputTokens: 128000,
|
|
1025
|
+
longContextPricingThresholdTokens: 200000,
|
|
1026
|
+
supportsThinking: true,
|
|
1027
|
+
supportsCaching: true,
|
|
1028
|
+
supportsVision: true,
|
|
1029
|
+
supportsToolUse: true,
|
|
1030
|
+
pricing: {
|
|
1031
|
+
inputPer1mTokens: 5,
|
|
1032
|
+
outputPer1mTokens: 25,
|
|
1033
|
+
cacheWritePer1mTokens: 6.25,
|
|
1034
|
+
cacheReadPer1mTokens: 0.5,
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1003
1037
|
{
|
|
1004
1038
|
id: "anthropic/claude-opus-4.8",
|
|
1005
1039
|
displayName: "Claude Opus 4.8",
|
|
@@ -1733,6 +1767,23 @@ const RAW_PROVIDER_CATALOG: ProviderCatalogEntry[] = [
|
|
|
1733
1767
|
cacheReadPer1mTokens: 1,
|
|
1734
1768
|
},
|
|
1735
1769
|
},
|
|
1770
|
+
{
|
|
1771
|
+
id: "anthropic/claude-opus-5",
|
|
1772
|
+
displayName: "Claude Opus 5",
|
|
1773
|
+
contextWindowTokens: 1000000,
|
|
1774
|
+
maxOutputTokens: 128000,
|
|
1775
|
+
longContextPricingThresholdTokens: 200000,
|
|
1776
|
+
supportsThinking: true,
|
|
1777
|
+
supportsCaching: true,
|
|
1778
|
+
supportsVision: true,
|
|
1779
|
+
supportsToolUse: true,
|
|
1780
|
+
pricing: {
|
|
1781
|
+
inputPer1mTokens: 5,
|
|
1782
|
+
outputPer1mTokens: 25,
|
|
1783
|
+
cacheWritePer1mTokens: 6.25,
|
|
1784
|
+
cacheReadPer1mTokens: 0.5,
|
|
1785
|
+
},
|
|
1786
|
+
},
|
|
1736
1787
|
{
|
|
1737
1788
|
id: "anthropic/claude-opus-4.8",
|
|
1738
1789
|
displayName: "Claude Opus 4.8",
|