openjiuwen-web

maintainer enihcam · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged Builds the project's own source from a git tag on gitcode.com (plausibly the project's own forge), runs standard npm install/build steps, and installs only static web assets and an nginx config example; the SKIP'd checksums and non-whitelisted host are mildly concerning but there is no prebuilt binary execution, obfuscation, or exfiltration.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (anthropic/claude-sonnet-4.6) reviewed the full PKGBUILD and judged it LOW (confidence 70%): Builds the project's own source from a git tag on gitcode.com (plausibly the project's own forge), runs standard npm install/build steps, and installs only static web assets and an nginx config example; the SKIP'd checksums and non-whitelisted host are mildly concerning but there is no prebuilt binary execution, obfuscation, or exfiltration.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:18 "git+https://gitcode.com/openJiuwen/agent-studio.git#tag=v${pkgver}"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: enihcam <enihcam@noreply.gitcode.com>
2pkgname=openjiuwen-web
3pkgver=0.1.8
4pkgrel=1
5pkgdesc="OpenJiuwen Studio frontend: React + Vite SPA, served as static files via nginx"
6arch=('x86_64')
7url="https://gitcode.com/openJiuwen/agent-studio"
8license=('Apache-2.0' 'LicenseRef-HarmonyOS-Sans-Fonts-1.0')
9depends=('nginx')
10makedepends=('nodejs' 'npm' 'git')
11optdepends=(
12 'openjiuwen-server: backend API at /api'
13 'nginx-mainline: server with HTTP/2 + Brotli; the stock nginx is also fine'
14)
15# gitcode.com's archive URL returns SPA HTML (no real tarball endpoint exposed),
16# so we use git+https:// directly. Anonymous clone is supported.
17source=(
18 "git+https://gitcode.com/openJiuwen/agent-studio.git#tag=v${pkgver}"
19 "openjiuwen-web.nginx.conf"
20 "HarmonyOS-Sans-Fonts.LICENSE"
21)
22sha256sums=(
23 'SKIP'
24 'SKIP' # local file, versioned with PKGBUILD
25 'SKIP'
26)
27# makepkg extracts git sources to ${srcdir}/agent-studio/ (basename, no version suffix)
28_srcdir_repo=agent-studio
29
30# The frontend has no package-lock.json shipped in the tag,
31# so we use `npm install` (not `npm ci`).
32# The build needs an expanded Node heap — match the upstream command.
33export NODE_OPTIONS='--max-old-space-size=8192 --max-semi-space-size=256'
34
35# Upstream bug: @assistant-ui/core@0.1.17 imports `tapClientLookup`,
36# but @assistant-ui/store@0.2.14+ renamed it to `useClientLookup`.
37# Pin store to the last good version (0.2.13) via npm overrides.
38prepare() {
39 local pkg="${srcdir}/${_srcdir_repo}/frontend/package.json"
40 jq '.overrides = (.overrides // {}) + {"@assistant-ui/store": "0.2.13"}' \
41 "${pkg}" > "${pkg}.tmp" && mv "${pkg}.tmp" "${pkg}"
42}
43
44build() {
45 cd "${srcdir}/${_srcdir_repo}/frontend"
46
47 # Install dependencies (resolves npm workspaces too)
48 npm install --no-audit --no-fund --prefer-offline
49
50 # Production build — produces dist/
51 npm run build
52}
53
54package() {
55 cd "${srcdir}/${_srcdir_repo}/frontend"
56
57 # Install built SPA to FHS-compliant webapps path
58 install -dm755 "${pkgdir}/usr/share/webapps/openjiuwen"
59 cp -a dist/. "${pkgdir}/usr/share/webapps/openjiuwen/"
60
61 # nginx sample config — user copies to /etc/nginx/sites-available/
62 install -Dm644 "${srcdir}/openjiuwen-web.nginx.conf" \
63 "${pkgdir}/etc/nginx/sites-available/openjiuwen-web.conf.example"
64
65 # Licenses
66 install -Dm644 "${srcdir}/${_srcdir_repo}/LICENSE" \
67 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
68 install -Dm644 "${srcdir}/HarmonyOS-Sans-Fonts.LICENSE" \
69 "${pkgdir}/usr/share/licenses/${pkgname}/HarmonyOS-Sans-Fonts.LICENSE"
70}

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 3
2026-07-26 00:07:32 LOW 3
2026-07-25 00:13:44 LOW 3
2026-07-24 00:02:28 LOW 3
2026-07-23 00:14:47 LOW 3
2026-07-22 00:29:32 LOW 3
2026-07-21 00:24:15 LOW 3
2026-07-20 00:19:49 LOW 3
2026-07-19 00:17:08 LOW 3
2026-07-18 00:14:48 LOW 3
2026-07-17 00:06:16 LOW 3
2026-07-16 00:05:41 LOW 3
2026-07-15 00:09:25 LOW 3

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion