@qpfai/pf-gate-cli 2.0.0-win32-x64 → 2.0.1-darwin-arm64
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 +8 -3
- package/package.json +4 -4
- package/vendor/aarch64-apple-darwin/pf-gate/pf-gate +38 -0
- package/vendor/aarch64-apple-darwin/python/persons_field-1.0.0-py3-none-any.whl +0 -0
- package/vendor/x86_64-pc-windows-msvc/pf-gate/pf-gate.cmd +0 -41
- /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/path/.keep +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
# @qpfai/pf-gate-cli (
|
|
1
|
+
# @qpfai/pf-gate-cli (darwin-arm64)
|
|
2
2
|
|
|
3
3
|
Platform runtime payload for PF Gate CLI.
|
|
4
4
|
|
|
5
|
-
The bundled launcher at `vendor/<target-triple>/pf-gate/` runs PF Gate through Python
|
|
5
|
+
The bundled launcher at `vendor/<target-triple>/pf-gate/` runs PF Gate through Python.
|
|
6
6
|
|
|
7
|
+
Default install source:
|
|
8
|
+
- bundled wheel: `vendor/<target-triple>/python/persons_field-1.0.0-py3-none-any.whl`
|
|
9
|
+
|
|
10
|
+
Runtime behavior:
|
|
7
11
|
- Uses `PF_GATE_PYTHON` when set, else probes `python3` then `python` (Windows also tries `py -3`).
|
|
8
|
-
-
|
|
12
|
+
- Installs from bundled wheel by default.
|
|
13
|
+
- Optional override: set `PF_GATE_PIP_SPEC` to force a different install source.
|
|
9
14
|
- Starts `persons_field.terminal.launcher` with forwarded arguments.
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qpfai/pf-gate-cli",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "PF Gate runtime payload for
|
|
3
|
+
"version": "2.0.1-darwin-arm64",
|
|
4
|
+
"description": "PF Gate runtime payload for darwin arm64.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"os": [
|
|
8
|
-
"
|
|
8
|
+
"darwin"
|
|
9
9
|
],
|
|
10
10
|
"cpu": [
|
|
11
|
-
"
|
|
11
|
+
"arm64"
|
|
12
12
|
],
|
|
13
13
|
"files": [
|
|
14
14
|
"vendor",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
5
|
+
BUNDLED_WHEEL="$SCRIPT_DIR/../python/persons_field-1.0.0-py3-none-any.whl"
|
|
6
|
+
|
|
7
|
+
PYTHON_BIN="${PF_GATE_PYTHON:-}"
|
|
8
|
+
if [ -z "$PYTHON_BIN" ]; then
|
|
9
|
+
if command -v python3 >/dev/null 2>&1; then
|
|
10
|
+
PYTHON_BIN="python3"
|
|
11
|
+
elif command -v python >/dev/null 2>&1; then
|
|
12
|
+
PYTHON_BIN="python"
|
|
13
|
+
else
|
|
14
|
+
echo "PF Gate runtime error: Python 3.13+ not found. Install Python or set PF_GATE_PYTHON." >&2
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
PIP_TARGET="${PF_GATE_PIP_SPEC:-$BUNDLED_WHEEL}"
|
|
20
|
+
if [ -z "${PF_GATE_PIP_SPEC:-}" ] && [ ! -f "$BUNDLED_WHEEL" ]; then
|
|
21
|
+
echo "PF Gate runtime error: missing bundled wheel at $BUNDLED_WHEEL" >&2
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
if ! "$PYTHON_BIN" -c "import persons_field.terminal.launcher" >/dev/null 2>&1; then
|
|
26
|
+
echo "PF Gate runtime: persons_field is missing; installing ${PIP_TARGET}..." >&2
|
|
27
|
+
if ! "$PYTHON_BIN" -m pip --version >/dev/null 2>&1; then
|
|
28
|
+
"$PYTHON_BIN" -m ensurepip --upgrade >/dev/null 2>&1 || true
|
|
29
|
+
fi
|
|
30
|
+
if ! "$PYTHON_BIN" -m pip install --upgrade --disable-pip-version-check "$PIP_TARGET"; then
|
|
31
|
+
if ! "$PYTHON_BIN" -m pip install --user --upgrade --disable-pip-version-check "$PIP_TARGET"; then
|
|
32
|
+
echo "PF Gate runtime error: failed to install ${PIP_TARGET}. Set PF_GATE_PYTHON and PF_GATE_PIP_SPEC, then retry." >&2
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
fi
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
exec "$PYTHON_BIN" -m persons_field.terminal.launcher "$@"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
setlocal
|
|
3
|
-
|
|
4
|
-
set "PYTHON_BIN=%PF_GATE_PYTHON%"
|
|
5
|
-
if "%PYTHON_BIN%"=="" (
|
|
6
|
-
where python >nul 2>nul
|
|
7
|
-
if not errorlevel 1 (
|
|
8
|
-
set "PYTHON_BIN=python"
|
|
9
|
-
) else (
|
|
10
|
-
where py >nul 2>nul
|
|
11
|
-
if not errorlevel 1 (
|
|
12
|
-
set "PYTHON_BIN=py -3"
|
|
13
|
-
) else (
|
|
14
|
-
echo PF Gate runtime error: Python 3.13+ not found. Install Python or set PF_GATE_PYTHON. 1>&2
|
|
15
|
-
exit /b 1
|
|
16
|
-
)
|
|
17
|
-
)
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
set "PIP_SPEC=%PF_GATE_PIP_SPEC%"
|
|
21
|
-
if "%PIP_SPEC%"=="" set "PIP_SPEC=persons-field==1.0.0"
|
|
22
|
-
|
|
23
|
-
call %PYTHON_BIN% -c "import persons_field" >nul 2>nul
|
|
24
|
-
if errorlevel 1 (
|
|
25
|
-
echo PF Gate runtime: persons_field is missing; installing %PIP_SPEC%... 1>&2
|
|
26
|
-
call %PYTHON_BIN% -m pip --version >nul 2>nul
|
|
27
|
-
if errorlevel 1 (
|
|
28
|
-
call %PYTHON_BIN% -m ensurepip --upgrade >nul 2>nul
|
|
29
|
-
)
|
|
30
|
-
call %PYTHON_BIN% -m pip install --upgrade --disable-pip-version-check "%PIP_SPEC%"
|
|
31
|
-
if errorlevel 1 (
|
|
32
|
-
call %PYTHON_BIN% -m pip install --user --upgrade --disable-pip-version-check "%PIP_SPEC%"
|
|
33
|
-
if errorlevel 1 (
|
|
34
|
-
echo PF Gate runtime error: failed to install %PIP_SPEC%. Set PF_GATE_PYTHON and PF_GATE_PIP_SPEC, then retry. 1>&2
|
|
35
|
-
exit /b 1
|
|
36
|
-
)
|
|
37
|
-
)
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
call %PYTHON_BIN% -m persons_field.terminal.launcher %*
|
|
41
|
-
exit /b %ERRORLEVEL%
|
|
File without changes
|