safari-pilot 0.1.1 → 0.1.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.
@@ -23,13 +23,13 @@
23
23
  <key>CFBundlePackageType</key>
24
24
  <string>APPL</string>
25
25
  <key>CFBundleShortVersionString</key>
26
- <string>1.0</string>
26
+ <string>0.1.2</string>
27
27
  <key>CFBundleSupportedPlatforms</key>
28
28
  <array>
29
29
  <string>MacOSX</string>
30
30
  </array>
31
31
  <key>CFBundleVersion</key>
32
- <string>1</string>
32
+ <string>202604130021</string>
33
33
  <key>DTCompiler</key>
34
34
  <string>com.apple.compilers.llvm.clang.1_0</string>
35
35
  <key>DTPlatformBuild</key>
@@ -19,13 +19,13 @@
19
19
  <key>CFBundlePackageType</key>
20
20
  <string>XPC!</string>
21
21
  <key>CFBundleShortVersionString</key>
22
- <string>1.0</string>
22
+ <string>0.1.2</string>
23
23
  <key>CFBundleSupportedPlatforms</key>
24
24
  <array>
25
25
  <string>MacOSX</string>
26
26
  </array>
27
27
  <key>CFBundleVersion</key>
28
- <string>1</string>
28
+ <string>202604130021</string>
29
29
  <key>DTCompiler</key>
30
30
  <string>com.apple.compilers.llvm.clang.1_0</string>
31
31
  <key>DTPlatformBuild</key>
@@ -273,7 +273,7 @@
273
273
  browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
274
274
  // Health check
275
275
  if (message && message.type === 'ping') {
276
- sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.1' });
276
+ sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.2' });
277
277
  return false;
278
278
  }
279
279
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Safari Pilot",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Native Safari automation for AI agents",
6
6
  "permissions": [
7
7
  "activeTab",
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Resources/background.js</key>
8
8
  <data>
9
- Yf5ESv+koRTEyqQ0lrN34bNprVA=
9
+ ovTiVCagj3LSRMutLiSXv6Wi0xA=
10
10
  </data>
11
11
  <key>Resources/content-isolated.js</key>
12
12
  <data>
@@ -30,7 +30,7 @@
30
30
  </data>
31
31
  <key>Resources/manifest.json</key>
32
32
  <data>
33
- QjWAEfk/0LZsMZn/195jgOahj5M=
33
+ 5RMCdicroAVAfhnFOScx+ENQBTo=
34
34
  </data>
35
35
  </dict>
36
36
  <key>files2</key>
@@ -39,7 +39,7 @@
39
39
  <dict>
40
40
  <key>hash2</key>
41
41
  <data>
42
- j/Injy0/XGM9j2ND0hWwUDDnkY/a/+NSpc6gG1M0dzE=
42
+ o/ZGbzsRyHTeaEzfhD3UN/+f0MyUYe0/DTDjofgGvz8=
43
43
  </data>
44
44
  </dict>
45
45
  <key>Resources/content-isolated.js</key>
@@ -81,7 +81,7 @@
81
81
  <dict>
82
82
  <key>hash2</key>
83
83
  <data>
84
- A13Wg0RV6m8VaBpEMa9C8G8s++ZG4tlOCKjDo1WzlbM=
84
+ ex8/97WUDrwOAbKOwqUKKJoeakMt7r8Zqyn+Zzfecug=
85
85
  </data>
86
86
  </dict>
87
87
  </dict>
@@ -18,15 +18,15 @@
18
18
  </data>
19
19
  <key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
20
20
  <data>
21
- z8DOn+PGU5ss7IcA1E+1Lni8Hfo=
21
+ 0pHUIi5rGzSpYz4ztpJ9t40hlCI=
22
22
  </data>
23
23
  <key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
24
24
  <data>
25
- m6dpidgdJI81r64bzwNhqF0TdmY=
25
+ vPWEH3ezPccOOSZJUmvKlN+gGqo=
26
26
  </data>
27
27
  <key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
28
28
  <data>
29
- DaNLcAEwjC0i0Da2VPl5/eCPuFs=
29
+ AdhpJsuSA/7LVzfYeU9JxwiYZD8=
30
30
  </data>
31
31
  <key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
32
32
  <data>
@@ -51,7 +51,7 @@
51
51
  <dict>
52
52
  <key>cdhash</key>
53
53
  <data>
54
- yEwje1XDJNMr/HJ3JOgzH1quMLo=
54
+ SFM6UnmyD9GGgthkeojcQYgvbvI=
55
55
  </data>
56
56
  <key>requirement</key>
57
57
  <string>identifier "com.safari-pilot.app.Extension" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = V37WLKRXUJ</string>
@@ -81,21 +81,21 @@
81
81
  <dict>
82
82
  <key>hash2</key>
83
83
  <data>
84
- nYaxkzmg1//wFsddjDY4LOK5DsLV15qYrs3mYej1w2U=
84
+ IV7Ttsm+HV4PhZ11Znl9XztaovASGFgv95fjhOnPG/s=
85
85
  </data>
86
86
  </dict>
87
87
  <key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
88
88
  <dict>
89
89
  <key>hash2</key>
90
90
  <data>
91
- QsPW1DpbkxSuis1gkkz9fMXkjqIrrpEOjsv4ZEk+MXE=
91
+ yhdollPy0NxS7xi36YuAdOftD8N9l/T322acrbhv5AE=
92
92
  </data>
93
93
  </dict>
94
94
  <key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
95
95
  <dict>
96
96
  <key>hash2</key>
97
97
  <data>
98
- G/Cq4XOcnVUM3hKsueePQK+NQnksmI9LonAofrpa+qY=
98
+ 7jpSeb4cWHd30hZeexdutS3qlJtfVvOJxyQJ5jXPFhE=
99
99
  </data>
100
100
  </dict>
101
101
  <key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
Binary file
@@ -273,7 +273,7 @@
273
273
  browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
274
274
  // Health check
275
275
  if (message && message.type === 'ping') {
276
- sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.1' });
276
+ sendResponse({ ok: true, type: 'pong', extensionVersion: '0.1.2' });
277
277
  return false;
278
278
  }
279
279
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Safari Pilot",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Native Safari automation for AI agents",
6
6
  "permissions": [
7
7
  "activeTab",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "safari-pilot",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Native Safari browser automation for AI agents on macOS",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,12 @@ APP_DIR="$ROOT/app"
8
8
  XCODE_PROJECT_DIR="$APP_DIR/Safari Pilot"
9
9
  BUNDLE_ID="com.safari-pilot.app"
10
10
 
11
+ # Read version from package.json — single source of truth
12
+ VERSION=$(python3 -c "import json; print(json.load(open('$ROOT/package.json'))['version'])")
13
+ BUILD_NUMBER=$(date +%Y%m%d%H%M)
14
+
11
15
  echo "=== Safari Pilot Extension Build ==="
16
+ echo "Version: $VERSION (build $BUILD_NUMBER)"
12
17
 
13
18
  # Step 1: Generate Xcode project from extension source
14
19
  echo "Generating Xcode project..."
@@ -36,7 +41,12 @@ PBXPROJ="$XCODE_PROJECT_DIR/Safari Pilot.xcodeproj/project.pbxproj"
36
41
  echo "Fixing bundle identifier in Xcode project..."
37
42
  sed -i '' "s/PRODUCT_BUNDLE_IDENTIFIER = \"com.safari-pilot.Safari-Pilot\";/PRODUCT_BUNDLE_IDENTIFIER = \"$BUNDLE_ID\";/g" "$PBXPROJ"
38
43
 
39
- # Step 3: Create placeholder Icon.png if missing
44
+ # Step 3: Sync versions from package.json into Xcode build settings
45
+ echo "Setting version $VERSION (build $BUILD_NUMBER) in Xcode project..."
46
+ sed -i '' "s/MARKETING_VERSION = .*;/MARKETING_VERSION = $VERSION;/g" "$PBXPROJ"
47
+ sed -i '' "s/CURRENT_PROJECT_VERSION = .*;/CURRENT_PROJECT_VERSION = $BUILD_NUMBER;/g" "$PBXPROJ"
48
+
49
+ # Step 4: Create placeholder Icon.png if missing
40
50
  # The packager references Icon.png in the project but doesn't create it.
41
51
  ICON_PATH="$XCODE_PROJECT_DIR/Safari Pilot/Resources/Icon.png"
42
52
  if [ ! -f "$ICON_PATH" ]; then
@@ -66,7 +76,7 @@ with open('$ICON_PATH', 'wb') as f:
66
76
  "
67
77
  fi
68
78
 
69
- # Step 4: Build the app
79
+ # Step 5: Build the app
70
80
  echo "Building app (Release)..."
71
81
  cd "$XCODE_PROJECT_DIR"
72
82
  xcodebuild \
@@ -76,7 +86,7 @@ xcodebuild \
76
86
  -derivedDataPath "$ROOT/.build/extension" \
77
87
  build 2>&1
78
88
 
79
- # Step 5: Copy built app to bin/
89
+ # Step 6: Copy built app to bin/
80
90
  APP_PATH=$(find "$ROOT/.build/extension" -name "Safari Pilot.app" -type d | head -1)
81
91
  if [ -n "$APP_PATH" ]; then
82
92
  echo "Built app at: $APP_PATH"