@motionharness/cli 0.1.1 → 0.1.3

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
@@ -1,6 +1,6 @@
1
1
  # MotionHarness CLI
2
2
 
3
- Install the CLI with npm on macOS Apple Silicon / arm64 or Windows 10/11 x64:
3
+ Install the CLI with npm on macOS (Apple Silicon or Intel) or Windows 10/11 x64:
4
4
 
5
5
  Some versions are published for only one platform. Install a version that includes
6
6
  your platform; if `latest` omits it, select an older compatible version explicitly
@@ -19,10 +19,10 @@ Or run without a global installation:
19
19
  npx @motionharness/cli --help
20
20
  ```
21
21
 
22
- Node.js 22.15+ and pnpm 10.x must already be installed. The CLI does not install
23
- or manage them. Project initialization needs registry access to the matching
24
- `@motionharness/sdk` and project dependencies. Run `mh skill` for the authoring
25
- and Agent guide.
22
+ The CLI requires Node.js 22.15+ (x64 Node.js on Intel Macs). Projects that need dependencies installed also
23
+ require pnpm 10 or later. The CLI does not install or manage these tools. A new
24
+ Pro project needs registry access to its matching `@motionharness/sdk` and other
25
+ dependencies. Run `mh skill` for the authoring and Agent guide.
26
26
 
27
27
  Use `mh render ./clip.wav --project ./my-project` to export the audio mix, or
28
28
  `mh render ./frames.zip --project ./my-project` for a numbered PNG sequence.
@@ -42,7 +42,8 @@ platform trust or session-reload step reported by the command. Studio shows
42
42
  configuration status and an off switch; reinstalling preserves a previous opt-out.
43
43
 
44
44
  `@motionharness/cli` provides the `mh` command and selects an exactly matching
45
- platform package. `@motionharness/cli-darwin-arm64` contains `MotionHarness`;
45
+ platform package. `@motionharness/cli-darwin-arm64` and
46
+ `@motionharness/cli-darwin-x64` contain `MotionHarness`;
46
47
  `@motionharness/cli-win32-x64` contains `MotionHarness.exe`. The native process uses
47
48
  this full product name; the command remains `mh`. Install the main package
48
49
  for the command. Windows ARM64, WSL and Linux packages are not provided; Linux
@@ -85,13 +86,15 @@ viewing/interaction or Studio-specific diagnostics, preserving later user action
85
86
 
86
87
  The binary embeds MotionHarness's fixed runtime resources. On first use these expand into
87
88
  `~/Library/Caches/mh/runtime/<payload-sha256>/` on macOS or
88
- `%LOCALAPPDATA%\mh\cache\runtime\<payload-sha256>\` on Windows. Windows authentication
89
+ `%LOCALAPPDATA%\mh\cache-v2\runtime\<payload-sha256>\` on Windows. Windows authentication
89
90
  and daemon state use separate `auth` and `daemon` directories under `%LOCALAPPDATA%\mh`.
90
91
  These directories require current-user ownership and private ACLs, with no reparse
91
92
  points. `MH_CACHE_DIR` can select an
92
93
  absolute private writable base; `mh doctor` reports the resource location.
94
+ The new Windows default leaves the old `%LOCALAPPDATA%\mh\cache` in place, so a
95
+ cache created with the wrong owner by an earlier CLI does not block startup.
93
96
  A damaged cache is an error: stop processes using the affected hash, remove only
94
- that hash directory and retry. Older hashes are retained across upgrades.
97
+ that hash directory and retry. Older hashes in the active cache are retained across upgrades.
95
98
 
96
99
  Upgrade with `mh update` (or `npm install -g @motionharness/cli@latest`); uninstall with
97
100
  `npm uninstall -g @motionharness/cli`. Cached runtime resources remain on disk.
@@ -4,7 +4,11 @@ import { createRequire } from 'node:module';
4
4
  import { dirname, join, resolve } from 'node:path';
5
5
  import { fileURLToPath, pathToFileURL } from 'node:url';
6
6
 
7
- export const platforms = Object.freeze({ 'darwin-arm64': '@motionharness/cli-darwin-arm64', 'win32-x64': '@motionharness/cli-win32-x64' });
7
+ export const platforms = Object.freeze({
8
+ 'darwin-arm64': '@motionharness/cli-darwin-arm64',
9
+ 'darwin-x64': '@motionharness/cli-darwin-x64',
10
+ 'win32-x64': '@motionharness/cli-win32-x64',
11
+ });
8
12
 
9
13
  export function resolveBinary(packageJson, platform = process.platform, arch = process.arch) {
10
14
  const entry = JSON.parse(readFileSync(packageJson, 'utf8'));
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.1",
2
+ "version": "0.1.3",
3
3
  "license": "UNLICENSED",
4
4
  "type": "module",
5
5
  "engines": {
@@ -23,8 +23,9 @@
23
23
  "x64"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@motionharness/cli-darwin-arm64": "0.1.1",
27
- "@motionharness/cli-win32-x64": "0.1.1"
26
+ "@motionharness/cli-darwin-arm64": "0.1.3",
27
+ "@motionharness/cli-darwin-x64": "0.1.3",
28
+ "@motionharness/cli-win32-x64": "0.1.3"
28
29
  },
29
30
  "files": [
30
31
  "bin/mh",