You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- host-side layout and screenshot artifacts may contain private UI data; inspect or summarize instead of attaching raw files when redaction is uncertain.
104
104
- when a disposable HarmonyOS NEXT smoke app is needed, use the local `harmony-next` skill's `references/quickStart/ets/minimal-project-scaffold.md` and copy `references/templates/empty-ability-app/` instead of hand-rolling `oh-package.json5` / `module.json5` / `hvigorfile.ts`.
105
105
- Harmony embedded SDK feedback should distinguish generic HAR capability from app-provided semantics:
106
-
- run `triton device runtime-url --platform harmony --target <hdc-target> --probe-manifest --json` first when the runtime is on a Harmony emulator/device and the host needs an HDC fport base URL;
106
+
- run `triton device runtime-url --device harmony-a --probe-manifest --json` first when the runtime is on a Harmony emulator/device and the host needs an HDC fport base URL; `--platform harmony --target <hdc-target>` remains available as a compatibility path;
107
107
- Harmony demo host-access embedded runtime defaults to `http://127.0.0.1:28767`; `18765` is the demo device-to-host gateway fallback port and should not be treated as the host direct runtime default;
108
108
- if an HDC fport already exists, use `docs-linhay/scripts/verify-harmony-runtime-emulator-smoke.sh --target <hdc-target> --no-forward` to verify the live endpoint without re-registering the same port mapping;
109
109
- use `triton runtime manifest --runtime-base-url http://127.0.0.1:<port> --json`, `triton state route --runtime-base-url ... --json`, `triton snapshot --runtime-base-url ... --json`, `triton ledger --runtime-base-url ... --jsonl`, and `triton set-text "密码" "$TRITON_PASSWORD" --secure --runtime-base-url ... --json` when validating a standalone embedded HTTP runtime before it is connected through `triton serve`;
@@ -401,7 +401,8 @@ Business semantics must be app-provided. A generic HAR should return `unsupporte
401
401
When validating a standalone embedded HTTP runtime before it is connected through `triton serve`, first ask Triton to prepare or discover the HDC fport URL, then use direct runtime commands:
Use `--device <selector>` as the default agent-facing target selector for common host-side commands. Selectors can be aliases, full ids such as `sim:<udid>` / `harmony:<target>`, raw platform ids, `booted`, or `current`. `--platform`, `--name`, `--runtime`, `--state`, and `--ready` are filters; they may auto-select only when the filtered candidate set is unique. Keep `sim` for iOS-only advanced maintenance and `device runtime-url` for Harmony embedded runtime port-forward setup.
85
+
Use `--device <selector>` as the default agent-facing target selector for common host-side commands. Selectors can be aliases, full ids such as `sim:<udid>` / `harmony:<target>`, raw platform ids, `booted`, or `current`. `--platform`, `--name`, `--runtime`, `--state`, and `--ready` are filters; they may auto-select only when the filtered candidate set is unique. Keep `sim` for iOS-only advanced maintenance; `device runtime-url --device <selector>` is the Harmony embedded runtime port-forward setup path, with `--platform harmony --target <target>` retained for compatibility.
- when validating a standalone Harmony embedded HTTP runtime before it is connected through `triton serve`, use direct runtime checks:
104
-
-`triton device runtime-url --platform harmony --target <hdc-target> --probe-manifest --json` to prepare HDC fport and get the `baseURL`;
104
+
-`triton device runtime-url --device harmony-a --probe-manifest --json` to prepare HDC fport and get the `baseURL`; `--platform harmony --target <hdc-target>` remains available as a compatibility path;
105
105
- the Harmony demo host-access embedded runtime default is `http://127.0.0.1:28767`; `18765` is reserved for the demo device-to-host gateway fallback path;
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -299,14 +299,17 @@ When multiple iOS Simulator apps are connected to the same `triton serve`, `trit
299
299
When validating a standalone embedded runtime HTTP endpoint before it is connected through `triton serve`, bypass the local control server with `--runtime-base-url`:
`triton device runtime-url --platform harmony --target 127.0.0.1:10100 --probe-manifest --json` remains available as a compatibility path.
312
+
310
313
For the Harmony demo, `28767` is the host-access embedded runtime port exposed through HDC `fport`; `18765` remains the device-to-host gateway fallback port used by the demo UI.
311
314
312
315
Host-side simulator helpers are available without a running TritonKit runtime. They wrap `xcrun simctl` but keep JSON output and stable Triton error envelopes:
@@ -511,14 +514,17 @@ Business semantics are opt-in provider hooks. A generic HAR must not pretend it
511
514
When the Harmony embedded runtime is reachable through HDC `fport` but has not been connected through `triton serve`, use direct runtime checks:
`triton device runtime-url --platform harmony --target 127.0.0.1:10100 --probe-manifest --json` remains available as a compatibility path.
527
+
522
528
For the Harmony demo, `28767` is the host-access embedded runtime port exposed through HDC `fport`; `18765` remains the device-to-host gateway fallback port used by the demo UI.
TKCommandSchemaOption(name:"resolve <selector>", type:"Subcommand", description:"Resolve a target selector without executing an action"),
816
816
TKCommandSchemaOption(name:"wait-ready --device <selector>", type:"Subcommand", description:"Wait for iOS Booted or Harmony bootevent.boot.completed"),
817
817
TKCommandSchemaOption(name:"screenshot --device <selector> --output <path>", type:"Subcommand", description:"Capture a host-side iOS or Harmony screenshot artifact"),
818
-
TKCommandSchemaOption(name:"runtime-url --platform harmony --target <target>", type:"Subcommand", description:"Prepare HDC fport and print a direct embedded runtime base URL"),
818
+
TKCommandSchemaOption(name:"runtime-url --device <selector>", type:"Subcommand", description:"Prepare HDC fport and print a direct Harmony embedded runtime base URL"),
819
+
TKCommandSchemaOption(name:"runtime-url --platform harmony --target <target>", type:"Subcommand", description:"Compatibility path for preparing a direct Harmony embedded runtime base URL"),
0 commit comments