Skip to content

Commit 0ed2f0e

Browse files
thymikeeclaude
andcommitted
docs(install): scope the skill routing to what each platform supports
HarmonyOS has no uninstall, so the skill description promises uninstall for Android and Apple only. Trim the install help detail to the one path-only .hap example the docs do not repeat. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 896ac3e commit 0ed2f0e

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎packages/command-surface/src/management/install.test.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ import { helpBody } from '@agent-device/command-registry/command-text';
44
import { listCommandFamilyCliSchemas } from '../family/registry.ts';
55

66
// The install synopsis names only generic paths, so the help body is the one
7-
// surface that tells an agent which binary formats install accepts and shows
8-
// the path-only HarmonyOS .hap shape. Losing the cliDetail drops that example
9-
// without breaking any structural invariant.
10-
test('install help body names the app formats and the HarmonyOS .hap shape', () => {
7+
// surface that shows the path-only HarmonyOS .hap shape.
8+
test('install help body shows the path-only HarmonyOS .hap install', () => {
119
const body = helpBody(listCommandFamilyCliSchemas().install!.text);
12-
assert.match(body, /Formats: Android \.apk and \.aab, iOS \.app and \.ipa, HarmonyOS \.hap\./);
1310
assert.match(
1411
body,
1512
/agent-device install \.\/build\/entry-default-signed\.hap --platform harmonyos/,
1613
);
17-
assert.match(body, /the bundle name is read from the archive when the app identifier is absent/);
1814
});

‎packages/command-surface/src/management/install.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const installCommandFacet = defineCommandFacet({
136136
text: {
137137
summary: 'Install an app binary from a path',
138138
cliDetail:
139-
'Formats: Android .apk and .aab, iOS .app and .ipa, HarmonyOS .hap. A HarmonyOS .hap installs from its path alone, for example agent-device install ./build/entry-default-signed.hap --platform harmonyos; the bundle name is read from the archive when the app identifier is absent.',
139+
'A HarmonyOS .hap installs from its path alone, for example agent-device install ./build/entry-default-signed.hap --platform harmonyos.',
140140
},
141141
metadata: installCommandMetadata,
142142
run: (client, input) => client.apps.install(input),

‎skills/agent-device/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: agent-device
3-
description: Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), HarmonyOS devices, and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, installing or replacing an app binary, collecting evidence, or planning agent-device CLI commands. Install, replace, or remove an app binary (.apk, .aab, .app, .ipa, .hap) with install, reinstall, or uninstall instead of adb install, hdc install, or bm install.
3+
description: Automates Apple-platform apps (iOS, tvOS, macOS), Android devices (including Android TV and Fire TV on Fire OS), HarmonyOS devices, and Amazon Vega OS TV apps in Vega Virtual Devices. Use when navigating apps, taking snapshots/screenshots where supported, driving TV remotes, tapping, typing, scrolling, extracting UI info, installing or replacing an app binary, collecting evidence, or planning agent-device CLI commands. Install or reinstall an app binary (Android, Apple, HarmonyOS) and uninstall an app (Android, Apple) with the install, reinstall, and uninstall commands, not adb, hdc, or bm.
44
---
55

66
# agent-device

0 commit comments

Comments
 (0)