Skip to content

Commit 76bfcff

Browse files
strzhaoclaude
andcommitted
fix(harmonyos): point the carrier graft at the reworked transport architecture
Drops the dead missing-install error constructor, classifies the new flag for the integration-progress gate, and follows the fallow convention for the standalone hvigor example. Co-Authored-By: Claude Code <[email protected]>
1 parent 471c0c1 commit 76bfcff

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

‎.fallowrc.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
],
6464
"ignorePatterns": [
6565
"examples/test-app/**",
66+
// Standalone debug-signed hvigor project: built by its own toolchain, not the workspace graph.
67+
"examples/harmony-trajectory-driver/**",
6668
// The social card template: scripts/og.mjs serves it with generated /og/* files.
6769
"website/og/og.html",
6870
"scripts/perf/**",

‎packages/platform-harmonyos/src/trajectory-driver.ts‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { DeviceInfo } from '@agent-device/kernel/device';
2-
import { AppError } from '@agent-device/kernel/errors';
32
import { shellQuote } from '@agent-device/kernel/device-shell';
43
import type { SinglePointerGesturePlan } from '@agent-device/contracts/gesture-plan-types';
54
import { runHarmonyShell, type HarmonyHdcOptions } from './hdc.ts';
@@ -156,15 +155,3 @@ export function parseCarrierDetail(runnerOutput: string): string | undefined {
156155
if (errorLine) return errorLine.trim();
157156
return undefined;
158157
}
159-
160-
/** Refusal for a plan whose carrier is missing: names the install step, not a vague gap. */
161-
export function trajectoryDriverMissingError(): AppError {
162-
return new AppError(
163-
'UNSUPPORTED_OPERATION',
164-
`HarmonyOS trajectory injection needs the carrier HAP ${HARMONY_TRAJECTORY_DRIVER_BUNDLE}`,
165-
{
166-
reason: 'trajectory-driver-missing',
167-
hint: 'Build and install examples/harmony-trajectory-driver with a debug signature; the endpoint swipe transport stays available without it.',
168-
},
169-
);
170-
}

‎scripts/integration-progress-model.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,14 @@ function summarizeProviderScenarioFlagExclusions() {
416416
owner: 'daemon screenshot-crop unit and live device verification',
417417
keys: ['screenshotCropOn'],
418418
},
419+
{
420+
// The sendevent transport is unreachable from CI providers (no HarmonyOS device
421+
// surface) and the carrier HAP needs a signed install. Covered instead by the
422+
// platform unit tests and the live device verification in the feature's PR evidence.
423+
name: 'HarmonyOS trajectory transport opt-ins',
424+
owner: 'HarmonyOS platform unit tests and live device verification',
425+
keys: ['trajectoryTransport'],
426+
},
419427
];
420428
}
421429

0 commit comments

Comments
 (0)