@hmharness/cli 0.10.0 → 0.11.0
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/dist/main.js +19 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -775,7 +775,7 @@ flags:
|
|
|
775
775
|
// a bounded repair loop; the judge's VERDICT line is the only stage gate.
|
|
776
776
|
const task = rest.join(' ').trim();
|
|
777
777
|
if (!task) {
|
|
778
|
-
stdout.write('usage: hmh pipeline "<task>" [--repairs=N] [--turns=N]\n');
|
|
778
|
+
stdout.write('usage: hmh pipeline "<task>" [--repairs=N] [--turns=N] [--device=<hdc> --hap=<path> --bundle=<id> --ability=<name> --target=<t> --expect-log=<marker>]\n');
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
781
|
await initHome();
|
|
@@ -795,6 +795,24 @@ flags:
|
|
|
795
795
|
locale: cfg2.locale,
|
|
796
796
|
maxRepairs: Number((rest.find((a) => a.startsWith('--repairs=')) ?? '').slice(10)) || 2,
|
|
797
797
|
maxTurnsPerStage: Number((rest.find((a) => a.startsWith('--turns=')) ?? '').slice(8)) || 6,
|
|
798
|
+
// V3 device gate (ADR-0007): --device=<hdc> enables the on-device
|
|
799
|
+
// install/launch/log-marker pass; hap/bundle/ability come from flags
|
|
800
|
+
...(() => {
|
|
801
|
+
const dev = rest.find((a) => a.startsWith('--device='));
|
|
802
|
+
if (!dev)
|
|
803
|
+
return {};
|
|
804
|
+
const flag = (name) => (rest.find((a) => a.startsWith(`--${name}=`)) ?? '').split('=').slice(1).join('=');
|
|
805
|
+
return {
|
|
806
|
+
deviceGate: {
|
|
807
|
+
hdc: dev.slice(9),
|
|
808
|
+
...(flag('target') ? { target: flag('target') } : {}),
|
|
809
|
+
hap: flag('hap'),
|
|
810
|
+
bundle: flag('bundle'),
|
|
811
|
+
ability: flag('ability') || 'EntryAbility',
|
|
812
|
+
expectLog: flag('expect-log') || 'onCreate',
|
|
813
|
+
},
|
|
814
|
+
};
|
|
815
|
+
})(),
|
|
798
816
|
});
|
|
799
817
|
for (const s of r.stages) {
|
|
800
818
|
const mark = s.verdict === 'PASS' ? GREEN('PASS') : s.verdict === 'FAIL' ? RED('FAIL') : DIM('····');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@hmharness/kernel": "0.9.0",
|
|
47
47
|
"@hmharness/observability": "0.7.0",
|
|
48
48
|
"@hmharness/evolution": "0.9.0",
|
|
49
|
-
"@hmharness/domain-harmony": "0.
|
|
49
|
+
"@hmharness/domain-harmony": "0.11.0",
|
|
50
50
|
"@hmharness/domain-ops": "0.8.0",
|
|
51
|
-
"@hmharness/agent": "0.
|
|
51
|
+
"@hmharness/agent": "0.11.0",
|
|
52
52
|
"@hmharness/evaluation": "0.8.0",
|
|
53
53
|
"@hmharness/web": "0.8.2"
|
|
54
54
|
}
|