@kvell007/embed-labs-protocol 0.1.0-alpha.7 → 0.1.0-alpha.71
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/README.md +4 -4
- package/dist/index.d.ts +120 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,10 +62,10 @@ and validation matrix types are not hardware support claims by themselves.
|
|
|
62
62
|
Hardware detection, probing, and guarded flash behavior live in
|
|
63
63
|
`@embed-labs/local-bridge`.
|
|
64
64
|
|
|
65
|
-
Destructive TaishanPi flashing is
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
Destructive TaishanPi flashing is enabled only by the Local Bridge guarded
|
|
66
|
+
runtime, not by these contracts alone. The bridge validates the installed SDK
|
|
67
|
+
image set, resolves `parameter.txt` offsets, and requires explicit user
|
|
68
|
+
approval before executing `rkdeveloptool`.
|
|
69
69
|
|
|
70
70
|
## Runtime Requirements
|
|
71
71
|
|
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export interface BoardDeployRequest {
|
|
|
51
51
|
user?: string;
|
|
52
52
|
artifact_path: string;
|
|
53
53
|
remote_path?: string;
|
|
54
|
+
run_command?: string;
|
|
54
55
|
run?: boolean;
|
|
55
56
|
timeout_seconds?: number;
|
|
56
57
|
approved?: boolean;
|
|
@@ -120,6 +121,7 @@ export interface AccountStatus {
|
|
|
120
121
|
account_id: string;
|
|
121
122
|
email: string;
|
|
122
123
|
display_name?: string;
|
|
124
|
+
device_limit?: number;
|
|
123
125
|
created_at: string;
|
|
124
126
|
updated_at: string;
|
|
125
127
|
}
|
|
@@ -138,12 +140,16 @@ export type AuthContextInfo = {
|
|
|
138
140
|
kind: "api_key";
|
|
139
141
|
account_id: string;
|
|
140
142
|
api_key_id: string;
|
|
143
|
+
client_device_id?: string;
|
|
144
|
+
device_id?: string;
|
|
141
145
|
};
|
|
142
146
|
export interface ApiKeySummary {
|
|
143
147
|
api_key_id: string;
|
|
144
148
|
account_id: string;
|
|
145
149
|
name?: string;
|
|
146
150
|
key_prefix: string;
|
|
151
|
+
api_key?: string;
|
|
152
|
+
secret_available?: boolean;
|
|
147
153
|
created_at: string;
|
|
148
154
|
last_used_at?: string;
|
|
149
155
|
revoked_at?: string;
|
|
@@ -159,6 +165,10 @@ export interface TokenUsageRecord {
|
|
|
159
165
|
usage_id: string;
|
|
160
166
|
account_id: string;
|
|
161
167
|
api_key_id: string;
|
|
168
|
+
client_device_id?: string;
|
|
169
|
+
local_device_id?: string;
|
|
170
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
171
|
+
device_id?: string;
|
|
162
172
|
provider?: string;
|
|
163
173
|
model: string;
|
|
164
174
|
operation?: string;
|
|
@@ -172,6 +182,10 @@ export interface TokenUsageRecord {
|
|
|
172
182
|
export interface TokenUsageCreateRequest {
|
|
173
183
|
api_key?: string;
|
|
174
184
|
api_key_id?: string;
|
|
185
|
+
client_device_id?: string;
|
|
186
|
+
local_device_id?: string;
|
|
187
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
188
|
+
device_id?: string;
|
|
175
189
|
provider?: string;
|
|
176
190
|
model: string;
|
|
177
191
|
operation?: string;
|
|
@@ -181,6 +195,84 @@ export interface TokenUsageCreateRequest {
|
|
|
181
195
|
request_id?: string;
|
|
182
196
|
created_at?: string;
|
|
183
197
|
}
|
|
198
|
+
export interface McpToolEventRecord {
|
|
199
|
+
event_id: string;
|
|
200
|
+
account_id?: string;
|
|
201
|
+
user_id?: string;
|
|
202
|
+
api_key_id?: string;
|
|
203
|
+
client_device_id?: string;
|
|
204
|
+
local_device_id?: string;
|
|
205
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
206
|
+
device_id?: string;
|
|
207
|
+
client: string;
|
|
208
|
+
tool_name: string;
|
|
209
|
+
mode: string;
|
|
210
|
+
server_model_used: boolean;
|
|
211
|
+
success: boolean;
|
|
212
|
+
request_id?: string;
|
|
213
|
+
duration_ms?: number;
|
|
214
|
+
input_summary?: string;
|
|
215
|
+
output_summary?: string;
|
|
216
|
+
metadata?: Record<string, unknown>;
|
|
217
|
+
created_at: string;
|
|
218
|
+
}
|
|
219
|
+
export interface McpToolEventCreateRequest {
|
|
220
|
+
account_id?: string;
|
|
221
|
+
client_device_id?: string;
|
|
222
|
+
local_device_id?: string;
|
|
223
|
+
/** @deprecated Use client_device_id for account_devices rows or local_device_id for boards. */
|
|
224
|
+
device_id?: string;
|
|
225
|
+
client?: string;
|
|
226
|
+
tool_name: string;
|
|
227
|
+
mode?: string;
|
|
228
|
+
server_model_used?: boolean;
|
|
229
|
+
success?: boolean;
|
|
230
|
+
request_id?: string;
|
|
231
|
+
duration_ms?: number;
|
|
232
|
+
input_summary?: string;
|
|
233
|
+
output_summary?: string;
|
|
234
|
+
metadata?: Record<string, unknown>;
|
|
235
|
+
created_at?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface ClientDeviceContext {
|
|
238
|
+
device_id: string;
|
|
239
|
+
fingerprint_hash: string;
|
|
240
|
+
platform?: string;
|
|
241
|
+
arch?: string;
|
|
242
|
+
label?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface ClientDeviceRegistrationRequest {
|
|
245
|
+
fingerprint_hash: string;
|
|
246
|
+
public_key: string;
|
|
247
|
+
label?: string;
|
|
248
|
+
platform?: string;
|
|
249
|
+
arch?: string;
|
|
250
|
+
hostname_hash?: string;
|
|
251
|
+
client_name?: string;
|
|
252
|
+
client_version?: string;
|
|
253
|
+
metadata?: Record<string, unknown>;
|
|
254
|
+
}
|
|
255
|
+
export interface AccountDeviceRecord {
|
|
256
|
+
device_id: string;
|
|
257
|
+
account_id: string;
|
|
258
|
+
api_key_id?: string;
|
|
259
|
+
fingerprint_hash: string;
|
|
260
|
+
public_key?: string;
|
|
261
|
+
label?: string;
|
|
262
|
+
platform?: string;
|
|
263
|
+
arch?: string;
|
|
264
|
+
hostname_hash?: string;
|
|
265
|
+
status: "active" | "revoked";
|
|
266
|
+
first_seen_at: string;
|
|
267
|
+
last_seen_at: string;
|
|
268
|
+
revoked_at?: string;
|
|
269
|
+
metadata?: Record<string, unknown>;
|
|
270
|
+
}
|
|
271
|
+
export interface ClientDeviceRegistrationResult {
|
|
272
|
+
device: AccountDeviceRecord;
|
|
273
|
+
device_limit: number;
|
|
274
|
+
active_device_count: number;
|
|
275
|
+
}
|
|
184
276
|
export interface TokenUsageModelSummary {
|
|
185
277
|
model: string;
|
|
186
278
|
input_tokens: number;
|
|
@@ -487,7 +579,24 @@ export interface BoardKnowledgeFile {
|
|
|
487
579
|
content_base64: string;
|
|
488
580
|
observed_at: string;
|
|
489
581
|
}
|
|
490
|
-
export
|
|
582
|
+
export interface BoardKnowledgeSearchMatch {
|
|
583
|
+
source: BoardKnowledgeSource;
|
|
584
|
+
path: string;
|
|
585
|
+
title: string;
|
|
586
|
+
content_type: string;
|
|
587
|
+
sha256: string;
|
|
588
|
+
score: number;
|
|
589
|
+
excerpt: string;
|
|
590
|
+
}
|
|
591
|
+
export interface BoardKnowledgeSearchResult {
|
|
592
|
+
template_id: string;
|
|
593
|
+
board_id: string;
|
|
594
|
+
variant_id: string;
|
|
595
|
+
query: string;
|
|
596
|
+
matches: BoardKnowledgeSearchMatch[];
|
|
597
|
+
observed_at: string;
|
|
598
|
+
}
|
|
599
|
+
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
600
|
export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
|
|
492
601
|
export interface BoardServerMethodSummary {
|
|
493
602
|
method_id: string;
|
|
@@ -838,7 +947,7 @@ export interface AgentTaskCreateRequest {
|
|
|
838
947
|
kind?: string;
|
|
839
948
|
}
|
|
840
949
|
export interface DeviceLocator {
|
|
841
|
-
transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
950
|
+
transport: "usb" | "serial" | "tcp" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
842
951
|
path?: string;
|
|
843
952
|
host?: string;
|
|
844
953
|
port?: number;
|
|
@@ -864,6 +973,7 @@ export interface SerialPortInfo {
|
|
|
864
973
|
}
|
|
865
974
|
export interface DeviceSummary {
|
|
866
975
|
device_id: string;
|
|
976
|
+
local_device_id?: string;
|
|
867
977
|
board_id?: string;
|
|
868
978
|
variant_id?: string;
|
|
869
979
|
hardware_profile_id?: string;
|
|
@@ -953,7 +1063,7 @@ export interface DebugToolScanResult {
|
|
|
953
1063
|
warnings?: ErrorEnvelope[];
|
|
954
1064
|
}
|
|
955
1065
|
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 & {});
|
|
1066
|
+
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
1067
|
export interface ToolCapabilitySummary {
|
|
958
1068
|
capability_id: ToolCapabilityId;
|
|
959
1069
|
display_name: string;
|
|
@@ -989,6 +1099,8 @@ export interface ToolInvokeResult {
|
|
|
989
1099
|
export interface AgentLocalToolRunRequest {
|
|
990
1100
|
prompt: string;
|
|
991
1101
|
account_id?: string;
|
|
1102
|
+
client_device_id?: string;
|
|
1103
|
+
local_device_id?: string;
|
|
992
1104
|
workspace_id?: string;
|
|
993
1105
|
provider?: AgentProviderInput;
|
|
994
1106
|
model?: string;
|
|
@@ -1007,6 +1119,11 @@ export interface AgentLocalToolPlan {
|
|
|
1007
1119
|
plan_id: string;
|
|
1008
1120
|
request_id: string;
|
|
1009
1121
|
account_id?: string;
|
|
1122
|
+
api_key_id?: string;
|
|
1123
|
+
client_device_id?: string;
|
|
1124
|
+
local_device_id?: string;
|
|
1125
|
+
/** @deprecated Use client_device_id for account_devices rows. */
|
|
1126
|
+
device_id?: string;
|
|
1010
1127
|
workspace_id?: string;
|
|
1011
1128
|
provider: AgentProvider;
|
|
1012
1129
|
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":"AAmsDA,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