agentlane 0.4.0-rc.1 → 0.4.0-rc.2

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/CHANGELOG.md CHANGED
@@ -11,6 +11,7 @@ Newest first.
11
11
 
12
12
  ### Fixed
13
13
 
14
+ - `up` and `doctor` no longer fail capture hygiene on a Mac where the simulator reads its pinned status-bar time back as `9:41`. They accepted only `09:41`, which is how some Macs print it.
14
15
  - `init` no longer lists 0.2.x's `.github/hooks/agent-env.json` as `unchanged` in a project that doesn't have it. It lists that file only when it changes or removes it.
15
16
  - Under `exec` and in the signin hook, `maestro` is the lane's own Maestro, or it prints why the lane has none and exits 2. A lane whose `agentlane.json` was invalid or had no `driver` block, or that held no running simulator or emulator, ran whatever `maestro` came first on PATH, unbound to the lane's device, after one warning that named only the file. The message now gives the config's problems, or what is missing and how to add it. A project that ran its own Maestro under `exec` without a `driver` block adds `"driver": {}` to `agentlane.json`.
16
17
  - The lane's `maestro` refuses `maestro mcp`, which takes its device from each tool call, so the lane can't bind it to its device. The lane's MCP server is `node_modules/.bin/agentlane mcp`.
@@ -49,8 +49,14 @@ export function sameCoordinate(a, b) {
49
49
  Math.abs(a.latitude - b.latitude) <= COORDINATE_TOLERANCE &&
50
50
  Math.abs(a.longitude - b.longitude) <= COORDINATE_TOLERANCE);
51
51
  }
52
+ /** simctl reads the pinned time back as `09:41` on some Macs and `9:41` on others. */
53
+ function sameField(key, got, wanted) {
54
+ if (key !== 'Time')
55
+ return got === wanted;
56
+ return got?.replace(/^0(?=\d:)/, '') === wanted.replace(/^0(?=\d:)/, '');
57
+ }
52
58
  export function statusBarPinned(fields) {
53
- return fields !== undefined && Object.entries(STATUS_BAR_PIN_FIELDS).every(([key, value]) => fields[key] === value);
59
+ return (fields !== undefined && Object.entries(STATUS_BAR_PIN_FIELDS).every(([key, value]) => sameField(key, fields[key], value)));
54
60
  }
55
61
  function formatStatusBar(fields) {
56
62
  const entries = Object.entries(fields ?? {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlane",
3
- "version": "0.4.0-rc.1",
3
+ "version": "0.4.0-rc.2",
4
4
  "description": "Gives each coding agent its own lane: a running copy of your app with its own ports, dev servers, database, and a simulator, emulator or browser to drive it.",
5
5
  "keywords": [
6
6
  "ai-agents",