@kvell007/embed-labs-protocol 0.1.0-alpha.73 → 0.1.0-alpha.75
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 +3 -120
- 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 enabled
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
Destructive TaishanPi flashing is not enabled by these contracts. The current
|
|
66
|
+
local bridge can produce guarded planning evidence, but real TaishanPi flashing
|
|
67
|
+
remains blocked until the relevant hardware profile and Board Pack command
|
|
68
|
+
templates are accepted.
|
|
69
69
|
|
|
70
70
|
## Runtime Requirements
|
|
71
71
|
|
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ export interface BoardDeployRequest {
|
|
|
51
51
|
user?: string;
|
|
52
52
|
artifact_path: string;
|
|
53
53
|
remote_path?: string;
|
|
54
|
-
run_command?: string;
|
|
55
54
|
run?: boolean;
|
|
56
55
|
timeout_seconds?: number;
|
|
57
56
|
approved?: boolean;
|
|
@@ -121,7 +120,6 @@ export interface AccountStatus {
|
|
|
121
120
|
account_id: string;
|
|
122
121
|
email: string;
|
|
123
122
|
display_name?: string;
|
|
124
|
-
device_limit?: number;
|
|
125
123
|
created_at: string;
|
|
126
124
|
updated_at: string;
|
|
127
125
|
}
|
|
@@ -140,16 +138,12 @@ export type AuthContextInfo = {
|
|
|
140
138
|
kind: "api_key";
|
|
141
139
|
account_id: string;
|
|
142
140
|
api_key_id: string;
|
|
143
|
-
client_device_id?: string;
|
|
144
|
-
device_id?: string;
|
|
145
141
|
};
|
|
146
142
|
export interface ApiKeySummary {
|
|
147
143
|
api_key_id: string;
|
|
148
144
|
account_id: string;
|
|
149
145
|
name?: string;
|
|
150
146
|
key_prefix: string;
|
|
151
|
-
api_key?: string;
|
|
152
|
-
secret_available?: boolean;
|
|
153
147
|
created_at: string;
|
|
154
148
|
last_used_at?: string;
|
|
155
149
|
revoked_at?: string;
|
|
@@ -165,10 +159,6 @@ export interface TokenUsageRecord {
|
|
|
165
159
|
usage_id: string;
|
|
166
160
|
account_id: string;
|
|
167
161
|
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;
|
|
172
162
|
provider?: string;
|
|
173
163
|
model: string;
|
|
174
164
|
operation?: string;
|
|
@@ -182,10 +172,6 @@ export interface TokenUsageRecord {
|
|
|
182
172
|
export interface TokenUsageCreateRequest {
|
|
183
173
|
api_key?: string;
|
|
184
174
|
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;
|
|
189
175
|
provider?: string;
|
|
190
176
|
model: string;
|
|
191
177
|
operation?: string;
|
|
@@ -195,84 +181,6 @@ export interface TokenUsageCreateRequest {
|
|
|
195
181
|
request_id?: string;
|
|
196
182
|
created_at?: string;
|
|
197
183
|
}
|
|
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
|
-
}
|
|
276
184
|
export interface TokenUsageModelSummary {
|
|
277
185
|
model: string;
|
|
278
186
|
input_tokens: number;
|
|
@@ -579,24 +487,7 @@ export interface BoardKnowledgeFile {
|
|
|
579
487
|
content_base64: string;
|
|
580
488
|
observed_at: string;
|
|
581
489
|
}
|
|
582
|
-
export
|
|
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";
|
|
490
|
+
export type BoardServerMethodOperation = "workspace.provision" | "source.list" | "source.read" | "source.write" | "app.build" | "app.compile" | "image.build" | "artifact.download" | "workspace.release";
|
|
600
491
|
export type ProductAccessTier = "free_registered" | "paid_resource" | "paid_managed_model";
|
|
601
492
|
export interface BoardServerMethodSummary {
|
|
602
493
|
method_id: string;
|
|
@@ -947,7 +838,7 @@ export interface AgentTaskCreateRequest {
|
|
|
947
838
|
kind?: string;
|
|
948
839
|
}
|
|
949
840
|
export interface DeviceLocator {
|
|
950
|
-
transport: "usb" | "serial" | "
|
|
841
|
+
transport: "usb" | "serial" | "ssh" | "usbecm" | "uf2-volume" | "rockusb" | "unknown";
|
|
951
842
|
path?: string;
|
|
952
843
|
host?: string;
|
|
953
844
|
port?: number;
|
|
@@ -973,7 +864,6 @@ export interface SerialPortInfo {
|
|
|
973
864
|
}
|
|
974
865
|
export interface DeviceSummary {
|
|
975
866
|
device_id: string;
|
|
976
|
-
local_device_id?: string;
|
|
977
867
|
board_id?: string;
|
|
978
868
|
variant_id?: string;
|
|
979
869
|
hardware_profile_id?: string;
|
|
@@ -1063,7 +953,7 @@ export interface DebugToolScanResult {
|
|
|
1063
953
|
warnings?: ErrorEnvelope[];
|
|
1064
954
|
}
|
|
1065
955
|
export type ToolRuntime = "local_bridge" | "cloud" | "mcp" | "hosted";
|
|
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" | "
|
|
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 & {});
|
|
1067
957
|
export interface ToolCapabilitySummary {
|
|
1068
958
|
capability_id: ToolCapabilityId;
|
|
1069
959
|
display_name: string;
|
|
@@ -1099,8 +989,6 @@ export interface ToolInvokeResult {
|
|
|
1099
989
|
export interface AgentLocalToolRunRequest {
|
|
1100
990
|
prompt: string;
|
|
1101
991
|
account_id?: string;
|
|
1102
|
-
client_device_id?: string;
|
|
1103
|
-
local_device_id?: string;
|
|
1104
992
|
workspace_id?: string;
|
|
1105
993
|
provider?: AgentProviderInput;
|
|
1106
994
|
model?: string;
|
|
@@ -1119,11 +1007,6 @@ export interface AgentLocalToolPlan {
|
|
|
1119
1007
|
plan_id: string;
|
|
1120
1008
|
request_id: string;
|
|
1121
1009
|
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;
|
|
1127
1010
|
workspace_id?: string;
|
|
1128
1011
|
provider: AgentProvider;
|
|
1129
1012
|
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":"AAkiDA,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