@kvell007/embed-labs-cli 0.1.0-alpha.24 → 0.1.0-alpha.26

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 CHANGED
@@ -118,7 +118,13 @@ For local hardware access:
118
118
  embed bridge start
119
119
  embed device list
120
120
  embed tool call wifi.scan --input-json '{"host":"198.19.77.2","user":"root"}'
121
+ embed tool call rp2350.monitor.capabilities --json
122
+ embed tool call rp2350.monitor.gpio.read --input-json '{"pins":[16,17],"pull":"none"}' --approve
121
123
  embed tool call rp2350.monitor.spi.transfer --input-json '{"hex":"a55a3cc3"}' --approve
124
+ embed tool call rp2350.monitor.uart.write --input-json '{"baud":115200,"text":"hello","line_ending":"lf"}' --approve
125
+ embed tool call rp2350.monitor.i2c.transfer --input-json '{"address":"0x50","write":"00","read_len":4}' --approve
126
+ embed tool call rp2350.monitor.wifi.manage --input-json '{"action":"scan"}' --approve
127
+ embed tool call rp2350.monitor.probe.debug --input-json '{"action":"status"}' --approve
122
128
  embed tool call chip.temperature --input-json '{"host":"198.19.77.2","user":"root"}'
123
129
  embed flash plan --board <rp2350|taishanpi> --artifact ./artifact.bin
124
130
  ```
@@ -199,7 +205,14 @@ embed tool call chip.cpu.frequency --input-json '{"host":"198.19.77.2","user":"r
199
205
  embed tool call chip.temperature --input-json '{"host":"198.19.77.2","user":"root"}' [--json]
200
206
  embed tool call qml.runtime.status --input-json '{"host":"198.19.77.2","user":"root","port":18130}' [--json]
201
207
  embed tool call qml.runtime.start --input-json '{"host":"198.19.77.2","user":"root","port":18130}' [--json]
208
+ embed tool call rp2350.monitor.capabilities [--json]
209
+ embed tool call rp2350.monitor.gpio.read --input-json '{"pins":[16,17]}' --approve [--json]
202
210
  embed tool call rp2350.monitor.spi.transfer --input-json '{"hex":"a55a3cc3"}' --approve [--json]
211
+ embed tool call rp2350.monitor.uart.write --input-json '{"baud":115200,"text":"hello","line_ending":"lf"}' --approve [--json]
212
+ embed tool call rp2350.monitor.i2c.transfer --input-json '{"address":"0x50","write":"00","read_len":4}' --approve [--json]
213
+ embed tool call rp2350.monitor.wifi.manage --input-json '{"action":"scan"}' --approve [--json]
214
+ embed tool call rp2350.monitor.probe.debug --input-json '{"action":"status"}' --approve [--json]
215
+ embed tool call rp2350.monitor.operation --input-json '{"action":"logic.stop","params":{}}' --approve [--json]
203
216
 
204
217
  embed serial list [--json]
205
218
  embed serial capture --path <port> [--baud 115200] [--duration 5] [--json]
package/dist/index.js CHANGED
@@ -1177,11 +1177,11 @@ async function doctor() {
1177
1177
  const bridgeHealth = await apiDoctorCheck("bridge_health", "Local Bridge health", `${bridgeBaseUrl}/healthz`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderHealthSummary, healthStatus);
1178
1178
  checks.push(bridgeHealth);
1179
1179
  if (isUsableDoctorCheck(bridgeHealth)) {
1180
- checks.push(await apiDoctorCheck("device_scan", "Device scan", `${bridgeBaseUrl}/v1/devices`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderDeviceScanSummary, warningIfWarnings));
1180
+ checks.push(await apiDoctorCheck("device_scan", "Device inventory", `${bridgeBaseUrl}/v1/devices`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderDeviceScanSummary, warningIfWarnings));
1181
1181
  checks.push(await apiDoctorCheck("debug_tools", "Debug tool scan", `${bridgeBaseUrl}/v1/debug/tools`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderDebugToolScanSummary, warningIfWarnings));
1182
1182
  }
1183
1183
  else {
1184
- checks.push(dependentDoctorCheck("device_scan", "Device scan", `${bridgeBaseUrl}/v1/devices`, "Device scan requires a reachable Local Bridge."));
1184
+ checks.push(dependentDoctorCheck("device_scan", "Device inventory", `${bridgeBaseUrl}/v1/devices`, "Device inventory requires a reachable Local Bridge."));
1185
1185
  checks.push(dependentDoctorCheck("debug_tools", "Debug tool scan", `${bridgeBaseUrl}/v1/debug/tools`, "Debug tool scan requires a reachable Local Bridge."));
1186
1186
  }
1187
1187
  checks.push(await apiDoctorCheck("cloud_api_health", "Cloud API health", `${cloudBaseUrl}/healthz`, "cloud_api_unreachable", `Cloud API is unreachable at ${cloudBaseUrl}.`, renderHealthSummary, healthStatus));
@@ -1374,7 +1374,7 @@ function warningIfWarnings(data) {
1374
1374
  }
1375
1375
  function renderDeviceScanSummary(result) {
1376
1376
  const warningText = result.warnings?.length ? ` ${result.warnings.length} warning(s).` : "";
1377
- return `Device scan completed: ${result.devices.length} device(s), ${result.usb.length} USB item(s), ${result.serial.length} serial port(s).${warningText}`;
1377
+ return `Device inventory snapshot: ${result.devices.length} device(s), ${result.usb.length} USB item(s), ${result.serial.length} serial port(s).${warningText}`;
1378
1378
  }
1379
1379
  function renderDebugToolScanSummary(result) {
1380
1380
  const available = result.tools.filter((tool) => tool.available).length;
@@ -7876,10 +7876,18 @@ Usage:
7876
7876
  embed tool call chip.temperature --input-json '{"host":"198.19.77.2","user":"root"}' [--json]
7877
7877
  embed tool call qml.runtime.status --input-json '{"host":"198.19.77.2","user":"root","port":18130}' [--json]
7878
7878
  embed tool call qml.runtime.start --input-json '{"host":"198.19.77.2","user":"root","port":18130}' [--json]
7879
+ embed tool call rp2350.monitor.capabilities [--json]
7879
7880
  embed tool call rp2350.monitor.status [--json]
7880
- embed tool call rp2350.monitor.logic.capture --input-json '{"pin_base":16,"pin_count":4,"sample_rate":1000000,"samples":4096}' [--json]
7881
+ embed tool call rp2350.monitor.gpio.read --input-json '{"pins":[16,17]}' --approve [--json]
7882
+ embed tool call rp2350.monitor.gpio.write --input-json '{"pin":16,"level":true}' --approve [--json]
7883
+ embed tool call rp2350.monitor.uart.write --input-json '{"baud":115200,"text":"hello","line_ending":"lf"}' --approve [--json]
7884
+ embed tool call rp2350.monitor.i2c.transfer --input-json '{"address":"0x50","write":"00","read_len":4}' --approve [--json]
7881
7885
  embed tool call rp2350.monitor.spi.transfer --input-json '{"hex":"a55a3cc3"}' --approve [--json]
7886
+ embed tool call rp2350.monitor.logic.capture --input-json '{"pin_base":16,"pin_count":4,"sample_rate":1000000,"samples":4096}' --approve [--json]
7882
7887
  embed tool call rp2350.monitor.logic.decode --input-json '{"input_path":".embed-labs/rp2350-monitor/captures/logic.jsonl","decoder":"summary"}' [--json]
7888
+ embed tool call rp2350.monitor.wifi.manage --input-json '{"action":"scan"}' --approve [--json]
7889
+ embed tool call rp2350.monitor.probe.debug --input-json '{"action":"status"}' --approve [--json]
7890
+ embed tool call rp2350.monitor.operation --input-json '{"action":"logic.stop","params":{}}' --approve [--json]
7883
7891
  embed deploy taishanpi --host <ip> --artifact <local_file> --approve [--remote-path /userdata/embed-labs/apps/app] [--run] [--json]
7884
7892
  embed board deploy taishanpi --host <ip> --artifact <local_file> --approve [--remote-path /userdata/embed-labs/apps/app] [--run] [--json]
7885
7893
  embed device list [--json]