pairling 0.2.2 → 0.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pairling",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Pair your iPhone with the AI coding agents running on your Mac. CLI and local runtime installer for the Pairling iOS app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pairling",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@pairling/runtime-darwin-arm64": "0.2.
|
|
44
|
-
"@pairling/runtime-darwin-x64": "0.2.
|
|
43
|
+
"@pairling/runtime-darwin-arm64": "0.2.3",
|
|
44
|
+
"@pairling/runtime-darwin-x64": "0.2.3"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6d905a33
|
package/payload/mac/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.3
|
|
@@ -485,9 +485,10 @@ try:
|
|
|
485
485
|
add(
|
|
486
486
|
"shell_pairling_wrapper",
|
|
487
487
|
"runtime/current/bin/pairling" in pairling_text
|
|
488
|
+
and "--shim-print-env" in pairling_text
|
|
488
489
|
and re.search(r"/Users/[^\\s'\"]+/projects/Pairling", pairling_text) is None,
|
|
489
490
|
"error",
|
|
490
|
-
"User pairling command resolves through
|
|
491
|
+
"User pairling command resolves through Pairling without trapping npm setup on stale runtime/current.",
|
|
491
492
|
str(USER_PAIRLING),
|
|
492
493
|
)
|
|
493
494
|
except Exception as exc:
|
|
@@ -651,13 +651,40 @@ if [[ -n "${PAIRLING_REPO_ROOT:-}" ]]; then
|
|
|
651
651
|
exec "$PAIRLING_REPO_ROOT/mac/packaging/bin/pairling" "$@"
|
|
652
652
|
fi
|
|
653
653
|
|
|
654
|
+
find_npm_pairling_shim() {
|
|
655
|
+
local wrapper_path="$1"
|
|
656
|
+
local old_ifs="$IFS"
|
|
657
|
+
local dir candidate
|
|
658
|
+
IFS=:
|
|
659
|
+
for dir in $PATH; do
|
|
660
|
+
[[ -n "$dir" ]] || dir="."
|
|
661
|
+
candidate="$dir/pairling"
|
|
662
|
+
if [[ -x "$candidate" && "$candidate" != "$wrapper_path" ]] && "$candidate" --shim-print-env >/dev/null 2>&1; then
|
|
663
|
+
IFS="$old_ifs"
|
|
664
|
+
printf '%s\n' "$candidate"
|
|
665
|
+
return 0
|
|
666
|
+
fi
|
|
667
|
+
done
|
|
668
|
+
IFS="$old_ifs"
|
|
669
|
+
return 1
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
case "${1:-}" in
|
|
673
|
+
setup|install|update|upgrade)
|
|
674
|
+
WRAPPER_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
|
|
675
|
+
if NPM_PAIRLING="$(find_npm_pairling_shim "$WRAPPER_PATH")"; then
|
|
676
|
+
exec "$NPM_PAIRLING" "$@"
|
|
677
|
+
fi
|
|
678
|
+
;;
|
|
679
|
+
esac
|
|
680
|
+
|
|
654
681
|
APP_SUPPORT="${PAIRLING_APP_SUPPORT_ROOT:-${COMPANION_APP_SUPPORT_ROOT:-$HOME/Library/Application Support/Pairling}}"
|
|
655
682
|
RUNTIME_PAIRLING="$APP_SUPPORT/runtime/current/bin/pairling"
|
|
656
683
|
if [[ -x "$RUNTIME_PAIRLING" ]]; then
|
|
657
684
|
exec "$RUNTIME_PAIRLING" "$@"
|
|
658
685
|
fi
|
|
659
686
|
|
|
660
|
-
printf 'Pairling runtime command is not installed. Run
|
|
687
|
+
printf 'Pairling runtime command is not installed. Run:\n npm install -g pairling\n pairling setup\nor use a repo-local mac/packaging/bin/pairling.\n' >&2
|
|
661
688
|
exit 127
|
|
662
689
|
SH
|
|
663
690
|
chmod 755 "$tmp"
|
|
@@ -1060,6 +1087,13 @@ install_runtime() {
|
|
|
1060
1087
|
run_doctor || true
|
|
1061
1088
|
fi
|
|
1062
1089
|
log "Installed Pairling runtime $RELEASE_NAME"
|
|
1090
|
+
if ! is_dry_run; then
|
|
1091
|
+
log ""
|
|
1092
|
+
if ! pair_runtime --qr; then
|
|
1093
|
+
log "Pairling installed, but setup could not generate a pairing invitation. Run: pairling doctor --json; pairling pair --qr" >&2
|
|
1094
|
+
exit 1
|
|
1095
|
+
fi
|
|
1096
|
+
fi
|
|
1063
1097
|
}
|
|
1064
1098
|
|
|
1065
1099
|
status_runtime() {
|
package/payload-manifest.json
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "payload/mac/SOURCE_REVISION",
|
|
23
|
-
"sha256": "
|
|
23
|
+
"sha256": "fbe59df8b5637ce46090bf962b4c7be19a18596f93dc3963f228836be332e593"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"path": "payload/mac/VERSION",
|
|
27
|
-
"sha256": "
|
|
27
|
+
"sha256": "3ab94c04d24986f3af288ba1cda2c0bbddbc5a89dff097182805f54578e1ea75"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"path": "payload/mac/companiond/app_attest_lan.py",
|
|
@@ -248,11 +248,11 @@
|
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
"path": "payload/mac/install/doctor.sh",
|
|
251
|
-
"sha256": "
|
|
251
|
+
"sha256": "1ba291c2c7def20af4ab4c850df0aaf54c41065da7e77255d8a6ff3bdfbeb2cc"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
"path": "payload/mac/install/install-runtime.sh",
|
|
255
|
-
"sha256": "
|
|
255
|
+
"sha256": "45c0295ad0f6e610c0cbf10057fd341754967ffaa5eee403ad1aaa1ea1954a5c"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"path": "payload/mac/install/psk_dependency_check.py",
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
}
|
|
277
277
|
],
|
|
278
278
|
"package": "pairling",
|
|
279
|
-
"package_version": "0.2.
|
|
279
|
+
"package_version": "0.2.3",
|
|
280
280
|
"schema_version": 1,
|
|
281
281
|
"source_dirty": false,
|
|
282
|
-
"source_revision": "
|
|
282
|
+
"source_revision": "6d905a33"
|
|
283
283
|
}
|