@kvell007/embed-labs-protocol 0.1.0-alpha.5 → 0.1.0-alpha.51
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/dist/index.d.ts +119 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ export interface AccountStatus {
|
|
|
120
120
|
account_id: string;
|
|
121
121
|
email: string;
|
|
122
122
|
display_name?: string;
|
|
123
|
+
device_limit?: number;
|
|
123
124
|
created_at: string;
|
|
124
125
|
updated_at: string;
|
|
125
126
|
}
|
|
@@ -138,12 +139,16 @@ export type AuthContextInfo = {
|
|
|
138
139
|
kind: "api_key";
|
|
139
140
|
account_id: string;
|
|
140
141
|
api_key_id: string;
|
|
142
|
+
client_device_id?: string;
|
|
143
|
+
device_id?: string;
|
|
141
144
|
};
|
|
142
145
|
export interface ApiKeySummary {
|
|
143
146
|
api_key_id: string;
|
|
144
147
|
account_id: string;
|
|
145
148
|
name?: string;
|
|
146
149
|
key_prefix: string;
|
|
150
|
+
api_key?: string;
|
|
151
|
+
secret_available?: boolean;
|
|
147
152
|
created_at: string;
|
|
148
153
|
last_used_at?: string;
|
|
149
154
|
revoked_at?: string;
|
|
@@ -159,6 +164,10 @@ export interface TokenUsageRecord {
|
|
|
159
164
|
usage_id: string;
|
|
160
165
|
account_id: string;
|
|
161
166
|
api_key_id: string;
|
|
167
|
+
client_device_id?: string;
|
|
168
|
+
local_device_id?: string;
|
|
169
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
170
|
+
device_id?: string;
|
|
162
171
|
provider?: string;
|
|
163
172
|
model: string;
|
|
164
173
|
operation?: string;
|
|
@@ -172,6 +181,10 @@ export interface TokenUsageRecord {
|
|
|
172
181
|
export interface TokenUsageCreateRequest {
|
|
173
182
|
api_key?: string;
|
|
174
183
|
api_key_id?: string;
|
|
184
|
+
client_device_id?: string;
|
|
185
|
+
local_device_id?: string;
|
|
186
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
187
|
+
device_id?: string;
|
|
175
188
|
provider?: string;
|
|
176
189
|
model: string;
|
|
177
190
|
operation?: string;
|
|
@@ -181,6 +194,84 @@ export interface TokenUsageCreateRequest {
|
|
|
181
194
|
request_id?: string;
|
|
182
195
|
created_at?: string;
|
|
183
196
|
}
|
|
197
|
+
export interface McpToolEventRecord {
|
|
198
|
+
event_id: string;
|
|
199
|
+
account_id?: string;
|
|
200
|
+
user_id?: string;
|
|
201
|
+
api_key_id?: string;
|
|
202
|
+
client_device_id?: string;
|
|
203
|
+
local_device_id?: string;
|
|
204
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
205
|
+
device_id?: string;
|
|
206
|
+
client: string;
|
|
207
|
+
tool_name: string;
|
|
208
|
+
mode: string;
|
|
209
|
+
server_model_used: boolean;
|
|
210
|
+
success: boolean;
|
|
211
|
+
request_id?: string;
|
|
212
|
+
duration_ms?: number;
|
|
213
|
+
input_summary?: string;
|
|
214
|
+
output_summary?: string;
|
|
215
|
+
metadata?: Record<string, unknown>;
|
|
216
|
+
created_at: string;
|
|
217
|
+
}
|
|
218
|
+
export interface McpToolEventCreateRequest {
|
|
219
|
+
account_id?: string;
|
|
220
|
+
client_device_id?: string;
|
|
221
|
+
local_device_id?: string;
|
|
222
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
223
|
+
device_id?: string;
|
|
224
|
+
client?: string;
|
|
225
|
+
tool_name: string;
|
|
226
|
+
mode?: string;
|
|
227
|
+
server_model_used?: boolean;
|
|
228
|
+
success?: boolean;
|
|
229
|
+
request_id?: string;
|
|
230
|
+
duration_ms?: number;
|
|
231
|
+
input_summary?: string;
|
|
232
|
+
output_summary?: string;
|
|
233
|
+
metadata?: Record<string, unknown>;
|
|
234
|
+
created_at?: string;
|
|
235
|
+
}
|
|
236
|
+
export interface ClientDeviceContext {
|
|
237
|
+
device_id: string;
|
|
238
|
+
fingerprint_hash: string;
|
|
239
|
+
platform?: string;
|
|
240
|
+
arch?: string;
|
|
241
|
+
label?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface ClientDeviceRegistrationRequest {
|
|
244
|
+
fingerprint_hash: string;
|
|
245
|
+
public_key: string;
|
|
246
|
+
label?: string;
|
|
247
|
+
platform?: string;
|
|
248
|
+
arch?: string;
|
|
249
|
+
hostname_hash?: string;
|
|
250
|
+
client_name?: string;
|
|
251
|
+
client_version?: string;
|
|
252
|
+
metadata?: Record<string, unknown>;
|
|
253
|
+
}
|
|
254
|
+
export interface AccountDeviceRecord {
|
|
255
|
+
device_id: string;
|
|
256
|
+
account_id: string;
|
|
257
|
+
api_key_id?: string;
|
|
258
|
+
fingerprint_hash: string;
|
|
259
|
+
public_key?: string;
|
|
260
|
+
label?: string;
|
|
261
|
+
platform?: string;
|
|
262
|
+
arch?: string;
|
|
263
|
+
hostname_hash?: string;
|
|
264
|
+
status: "active" | "revoked";
|
|
265
|
+
first_seen_at: string;
|
|
266
|
+
last_seen_at: string;
|
|
267
|
+
revoked_at?: string;
|
|
268
|
+
metadata?: Record<string, unknown>;
|
|
269
|
+
}
|
|
270
|
+
export interface ClientDeviceRegistrationResult {
|
|
271
|
+
device: AccountDeviceRecord;
|
|
272
|
+
device_limit: number;
|
|
273
|
+
active_device_count: number;
|
|
274
|
+
}
|
|
184
275
|
export interface TokenUsageModelSummary {
|
|
185
276
|
model: string;
|
|
186
277
|
input_tokens: number;
|
|
@@ -487,7 +578,24 @@ export interface BoardKnowledgeFile {
|
|
|
487
578
|
content_base64: string;
|
|
488
579
|
observed_at: string;
|
|
489
580
|
}
|
|
490
|
-
export
|
|
581
|
+
export interface BoardKnowledgeSearchMatch {
|
|
582
|
+
source: BoardKnowledgeSource;
|
|
583
|
+
path: string;
|
|
584
|
+
title: string;
|
|
585
|
+
content_type: string;
|
|
586
|
+
sha256: string;
|
|
587
|
+
score: number;
|
|
588
|
+
excerpt: string;
|
|
589
|
+
}
|
|
590
|
+
export interface BoardKnowledgeSearchResult {
|
|
591
|
+
template_id: string;
|
|
592
|
+
board_id: string;
|
|
593
|
+
variant_id: string;
|
|
594
|
+
query: string;
|
|
595
|
+
matches: BoardKnowledgeSearchMatch[];
|
|
596
|
+
observed_at: string;
|
|
597
|
+
}
|
|
598
|
+
export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release" | "local_toolchain.list" | "local_toolchain.latest" | "local_toolchain.install" | "local_toolchain.validate" | "local.compile" | "local.qt_smoke" | "board.status" | "board.deploy" | "image.logo.package" | "image.logo.compose" | "monitor.capabilities" | "monitor.status" | "monitor.gpio.read" | "monitor.gpio.write" | "monitor.uart.write" | "monitor.i2c.transfer" | "monitor.spi.transfer" | "monitor.logic.capture" | "monitor.logic.decode" | "monitor.wifi.manage" | "monitor.probe.debug" | "monitor.firmware.flash" | "initial_firmware.flash" | "flash.plan" | "flash.run";
|
|
491
599
|
export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
|
|
492
600
|
export interface BoardServerMethodSummary {
|
|
493
601
|
method_id: string;
|
|
@@ -838,7 +946,7 @@ export interface AgentTaskCreateRequest {
|
|
|
838
946
|
kind?: string;
|
|
839
947
|
}
|
|
840
948
|
export interface DeviceLocator {
|
|
841
|
-
transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
949
|
+
transport: "usb" | "serial" | "tcp" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
842
950
|
path?: string;
|
|
843
951
|
host?: string;
|
|
844
952
|
port?: number;
|
|
@@ -864,6 +972,7 @@ export interface SerialPortInfo {
|
|
|
864
972
|
}
|
|
865
973
|
export interface DeviceSummary {
|
|
866
974
|
device_id: string;
|
|
975
|
+
local_device_id?: string;
|
|
867
976
|
board_id?: string;
|
|
868
977
|
variant_id?: string;
|
|
869
978
|
hardware_profile_id?: string;
|
|
@@ -953,7 +1062,7 @@ export interface DebugToolScanResult {
|
|
|
953
1062
|
warnings?: ErrorEnvelope[];
|
|
954
1063
|
}
|
|
955
1064
|
export type ToolRuntime = "local_bridge" | "cloud" | "mcp" | "hosted";
|
|
956
|
-
export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "wifi.scan" | "bluetooth.scan" | "chip.cpu.frequency" | "chip.temperature" | "qml.runtime.status" | "qml.runtime.start" | "flash.plan" | "flash.run" | "taishanpi.deploy" | (string & {});
|
|
1065
|
+
export type ToolCapabilityId = "debug.tools.scan" | "device.scan" | "device.probe" | "wifi.scan" | "bluetooth.scan" | "chip.cpu.frequency" | "chip.temperature" | "qml.runtime.status" | "qml.runtime.start" | "rp2350.monitor.capabilities" | "rp2350.monitor.status" | "rp2350.monitor.operation" | "rp2350.monitor.gpio.read" | "rp2350.monitor.gpio.write" | "rp2350.monitor.uart.write" | "rp2350.monitor.i2c.transfer" | "rp2350.monitor.logic.capture" | "rp2350.monitor.logic.decode" | "rp2350.monitor.spi.transfer" | "rp2350.monitor.wifi.manage" | "rp2350.monitor.probe.debug" | "rp2350.monitor.command" | "flash.plan" | "flash.run" | "taishanpi.deploy" | (string & {});
|
|
957
1066
|
export interface ToolCapabilitySummary {
|
|
958
1067
|
capability_id: ToolCapabilityId;
|
|
959
1068
|
display_name: string;
|
|
@@ -989,6 +1098,8 @@ export interface ToolInvokeResult {
|
|
|
989
1098
|
export interface AgentLocalToolRunRequest {
|
|
990
1099
|
prompt: string;
|
|
991
1100
|
account_id?: string;
|
|
1101
|
+
client_device_id?: string;
|
|
1102
|
+
local_device_id?: string;
|
|
992
1103
|
workspace_id?: string;
|
|
993
1104
|
provider?: AgentProviderInput;
|
|
994
1105
|
model?: string;
|
|
@@ -1007,6 +1118,11 @@ export interface AgentLocalToolPlan {
|
|
|
1007
1118
|
plan_id: string;
|
|
1008
1119
|
request_id: string;
|
|
1009
1120
|
account_id?: string;
|
|
1121
|
+
api_key_id?: string;
|
|
1122
|
+
client_device_id?: string;
|
|
1123
|
+
local_device_id?: string;
|
|
1124
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
1125
|
+
device_id?: string;
|
|
1010
1126
|
workspace_id?: string;
|
|
1011
1127
|
provider: AgentProvider;
|
|
1012
1128
|
model: string;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAksDA,MAAM,UAAU,EAAE,CAAI,IAAO;IAC3B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,IAAY,EAAE,OAAe,EAAE,UAAmD,EAAE;IACvG,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,CAAC;AAC7D,CAAC"}
|
package/package.json
CHANGED