Skip to content

Commit e28e35b

Browse files
authored
v0.9.64: mcp code mode, hourly activity rollup, search cli sources
2 parents 001ee93 + 4d3fedf commit e28e35b

149 files changed

Lines changed: 184048 additions & 2981 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,44 @@ jobs:
683683
fi
684684
bunx trigger.dev@4.8.3 promote "$VERSION" "${TARGET_ARGS[@]}"
685685
686+
landing-seo-live:
687+
name: landing-seo-live
688+
needs: [promote, trigger-promote]
689+
if: >-
690+
!cancelled() &&
691+
github.event_name == 'push' &&
692+
github.ref == 'refs/heads/main' &&
693+
needs.promote.outputs.promoted == 'true' &&
694+
needs.trigger-promote.outputs.cutover == 'success'
695+
runs-on: ubuntu-24.04
696+
timeout-minutes: 8
697+
permissions:
698+
contents: read
699+
steps:
700+
- name: Checkout code
701+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
702+
with:
703+
persist-credentials: false
704+
705+
- name: Setup workspace
706+
uses: ./.github/actions/setup
707+
with:
708+
provider: github
709+
node-version: ''
710+
711+
- name: Check priority landing pages after cutover
712+
env:
713+
LANDING_SEO_E2E_BASE_URL: https://www.sim.ai
714+
LANDING_SEO_E2E_REPORT_PATH: ${{ runner.temp }}/landing-seo-live.json
715+
run: bun run --cwd apps/sim test:landing-seo:e2e --live
716+
717+
- name: Upload live landing SEO results
718+
if: always()
719+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
720+
with:
721+
name: landing-seo-live
722+
path: ${{ runner.temp }}/landing-seo-live.json
723+
686724
# Production only, once the new app serves traffic: submit the library and comparison URLs this
687725
# push changed to IndexNow. Best effort: nothing depends on it, and a failure never fails the run.
688726
indexnow:

‎apps/desktop/build/entitlements.mac.plist‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@
1414
Hardened Runtime denies the camera no matter what the user allowed. -->
1515
<key>com.apple.security.device.camera</key>
1616
<true/>
17+
<!-- Computer Use app commands add confirmed reminders, events and
18+
contacts through EventKit and Contacts; the Hardened Runtime denies
19+
that access without these keys. -->
20+
<key>com.apple.security.personal-information.calendars</key>
21+
<true/>
22+
<key>com.apple.security.personal-information.addressbook</key>
23+
<true/>
1724
</dict>
1825
</plist>

‎apps/desktop/electron-builder.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ mac:
7070
# unless the bundle declares why it wants the device.
7171
extendInfo:
7272
NSScreenCaptureUsageDescription: Mothership captures approved app windows to understand and verify computer-use actions.
73+
NSRemindersFullAccessUsageDescription: Mothership adds reminders you confirm and lists your reminder lists so it can file them correctly.
74+
NSCalendarsFullAccessUsageDescription: Mothership adds calendar events you confirm and lists your calendars so it can file them correctly.
75+
NSContactsUsageDescription: Mothership adds contacts and contact groups you confirm.
7376
NSMicrophoneUsageDescription: Sim uses your microphone for voice input in Chat and for meetings you join in the built-in browser.
7477
NSCameraUsageDescription: Sim uses your camera for meetings you join in the built-in browser, such as Google Meet.
7578
# macOS 15 blocks connections to private addresses (self-hosted servers on a

‎apps/desktop/native/computer-use/ComputerUse.swift‎

Lines changed: 264 additions & 2 deletions
Large diffs are not rendered by default.

‎apps/desktop/native/computer-use/Info.plist‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
<key>LSMinimumSystemVersion</key><string>14.0</string>
1212
<key>LSUIElement</key><true/>
1313
<key>NSHighResolutionCapable</key><true/>
14+
<key>NSCalendarsFullAccessUsageDescription</key><string>Mothership adds calendar events you confirm and lists your calendars so it can file them correctly.</string>
15+
<key>NSContactsUsageDescription</key><string>Mothership adds contacts and contact groups you confirm.</string>
16+
<key>NSRemindersFullAccessUsageDescription</key><string>Mothership adds reminders you confirm and lists your reminder lists so it can file them correctly.</string>
1417
<key>NSScreenCaptureUsageDescription</key><string>Mothership captures the app window you select to understand and verify computer-use actions.</string>
1518
</dict></plist>

‎apps/desktop/native/computer-use/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Compile each architecture with `swiftc -parse-as-library -O -target arm64-apple-
66

77
## Protocol
88

9-
Persistent newline-delimited JSON over stdin/stdout: `{id,method,params}` returns `{id,result}` or `{id,error:{code,message,dispatchState?}}`. The producer contract is `worker/packages/contracts/src/computer-use.ts` in mothership, copied into the desktop bridge by contract sync. `request_permission` is a local onboarding method, never a model tool; params are `{permission:"accessibility"|"screenCapture"}`. Status/preflight never triggers prompts. Errors go through the protocol, and stdout contains no logs.
9+
Persistent newline-delimited JSON over stdin/stdout: `{id,method,params}` returns `{id,result}` or `{id,error:{code,message,dispatchState?}}`. The producer contract is `worker/packages/contracts/src/computer-use.ts` in mothership, copied into the desktop bridge by contract sync. `request_permission` is a local onboarding method, never a model tool; params are `{permission:"accessibility"|"screenCapture"|"reminders"|"calendars"|"contacts"}`. Status/preflight never triggers prompts; it reports `reminders`, `calendars` and `contacts` as `granted`, `denied` or `not_determined`.
10+
11+
`app_command` takes `{command:{name,...}}` and runs one allowlisted command through EventKit or Contacts, never Apple Events or scripts. Reads: `list_reminder_lists`, `list_calendars` and `list_contact_groups` return `{kind:"command",items:[{id,title,allowsModifications}]}`. Creates return `{kind:"command",created:{id,title,list}}`: `create_reminder` (`title`, `notes`, `due` as `YYYY-MM-DD` or an ISO 8601 date-time, `listId`, `priority` 0/1/5/9), `create_event` (`title`, `start`/`end` as ISO 8601 date-times or `YYYY-MM-DD` with `allDay`, at most 31 days, `location`, `notes`, `calendarId`, `alertMinutesBefore`), `create_contact_group` (`title`; an existing group with that name is returned instead of a duplicate) and `create_contact` (`givenName`, `familyName`, `organization`, `jobTitle`, up to 5 `emails` and `phones`, `groupId`). A date-time without an offset is this Mac's local time, as typing it into the app would be. Without the matching access a command fails with `reminders_permission_required`, `calendars_permission_required` or `contacts_permission_required` before touching anything. There is no update, delete or search. The desktop service confirms each create with the user before sending it.
1012

1113
The helper observes up to 2000 accessibility nodes (depth 64, queue 4000, traversal deadline 8 seconds, each AX call timeout 250ms). Selected-window and focused-element ancestry are prioritized. The menu bar and menus are read in place, so an open menu's items and their submenus come first; items of closed menus are read last, capped at 80 menu nodes. Electron accessibility is enabled using its documented `AXManualAccessibility` attribute. The helper observes 100 windows and 1000 apps. Requests are bounded to 128 KiB during ingestion. Text/value input is capped at 32000 UTF-16 units. State references are per-process, per-app, expire after 60 seconds, and are consumed by every action that reaches the app; a request that fails before sending anything reports `dispatchState: "not_started"` and keeps them valid. An Accessibility failure counts as sent unless Accessibility rejected the request before the app saw it (unsupported attribute or action, illegal argument). Restarts invalidate all references. Screen captures exclude window shadows, preserve the selected window’s coordinate geometry, and are capped to 1600 pixels on the longest side and 8 MiB encoded. Complete JSON replies are capped at 16 MiB: oversized observations omit screenshots first, then truncate accessibility nodes, while preserving action outcomes. Screenshots are optional and failure is reported in `screenshotError` without discarding accessibility state. macOS 26 uses the screenshot-specific capture API; the macOS 14/15 API path includes only the selected window in a display filter and crops its exact frame. That older path requires the window to fit within one display and reports `capture_geometry_unavailable` otherwise.
1214

‎apps/desktop/native/computer-use/tests/NativeTests.swift‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,37 @@ import AppKit
3636
precondition(isProtectedApp(bundle), bundle)
3737
}
3838
for bundle in ["com.apple.TextEdit", "com.apple.finder", "com.apple.Safari"] { precondition(!isProtectedApp(bundle), bundle) }
39+
let dateOnly = try dueComponents("2027-05-04")
40+
precondition(dateOnly.year == 2027 && dateOnly.month == 5 && dateOnly.day == 4 && dateOnly.hour == nil)
41+
let timed = try dueComponents("2027-05-04T09:30:45Z")
42+
precondition(timed.hour != nil && timed.minute != nil && timed.second == 45)
43+
let localDue = try dueComponents("2027-05-04T09:30")
44+
precondition(localDue.hour == 9 && localDue.minute == 30)
45+
for due in ["2027-02-30", "2027-05-04T25:30:00", "May 4", "2027-5-4", "2027-02-30T09:00:00Z", "2027-02-29T09:00:00.5+01:00", "2027-05-04T24:00:00Z", "2027-05-04T09:00:00+25:00", "2027-05-04T09:00:00+05:99", "2027-05-04T09:00:00+14:59", "2027-05-04T09:00:00-14:30", "2027-0٥-04", "2027-05-04T1٠:00Z"] {
46+
expectError("invalid_arguments") { _ = try dueComponents(due) }
47+
}
48+
precondition(isoDateTime("2028-02-29T09:00Z") == Date(timeIntervalSince1970: 1_835_427_600))
49+
precondition(isoDateTime("2027-05-04T09:00:00+05:30") == Date(timeIntervalSince1970: 1_809_401_400))
50+
precondition(isoDateTime("2027-05-04T09:00:00+14:00") == Date(timeIntervalSince1970: 1_809_370_800))
51+
expectError("unknown_command") { _ = try runAppCommand(AppCommand(name: "run_script")) }
52+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_reminder", title: " ")) }
53+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_reminder", title: "Pay rent", priority: 3)) }
54+
var local = Calendar(identifier: .gregorian); local.timeZone = .current
55+
let floating = try eventDate("2027-06-09T07:15:00", "Start", allDay: false)
56+
precondition(local.dateComponents([.hour, .minute], from: floating) == DateComponents(hour: 7, minute: 15))
57+
expectError("invalid_arguments") { _ = try eventDate("2027-06-09 07:15", "Start", allDay: false) }
58+
let fractional = try eventDate("2027-06-09T06:15:00.000Z", "Start", allDay: false)
59+
precondition(fractional == Date(timeIntervalSince1970: 1_812_521_700))
60+
let localFraction = try eventDate("2027-06-09T07:15:00.250", "Start", allDay: false)
61+
precondition(local.dateComponents([.hour, .minute], from: localFraction) == DateComponents(hour: 7, minute: 15))
62+
expectError("invalid_arguments") { _ = try eventDate("2027-06-09T07:15:00+01:00", "Start", allDay: true) }
63+
let zoned = try eventDate("2027-06-09T07:15:00+01:00", "Start", allDay: false)
64+
precondition(zoned == Date(timeIntervalSince1970: 1_812_521_700))
65+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_event", title: "Flight", start: "2027-06-09T08:10:00Z", end: "2027-06-09T07:15:00Z")) }
66+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_event", title: "Trip", start: "2027-06-01T00:00:00Z", end: "2027-08-01T00:00:00Z")) }
67+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_contact", jobTitle: "Engineer")) }
68+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_contact", givenName: "Ana", emails: ["not-an-email"])) }
69+
expectError("invalid_arguments") { _ = try runAppCommand(AppCommand(name: "create_contact_group", title: " ")) }
3970
var queue = AXTraversalQueue<String>(limit: 1000)
4071
queue.append(AXTraversalEntry(element: "menu", parent: nil, depth: 0, menu: true, priority: false))
4172
queue.append(AXTraversalEntry(element: "content", parent: nil, depth: 0, menu: false, priority: false))

0 commit comments

Comments
 (0)