xithead 1.5.1 → 1.5.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.
- package/bin/xithead.js +486 -226
- package/index.d.ts +57 -0
- package/index.js +139 -0
- package/package.json +44 -63
- package/postinstall.js +43 -0
- package/LICENSE +0 -190
- package/README.md +0 -108
- package/app/api/config/route.ts +0 -22
- package/app/api/export/route.ts +0 -83
- package/app/api/models/route.ts +0 -12
- package/app/api/stats/route.ts +0 -46
- package/app/dashboard/page.tsx +0 -445
- package/app/globals.css +0 -35
- package/app/installation/page.tsx +0 -293
- package/app/layout.tsx +0 -35
- package/app/master-design-system.css +0 -2076
- package/app/master-design-system.source.css +0 -8
- package/app/page.tsx +0 -187
- package/app/rechtliches/agb/page.tsx +0 -165
- package/app/rechtliches/datenschutz/page.tsx +0 -128
- package/app/rechtliches/impressum/page.tsx +0 -122
- package/app/rechtliches/widerruf/page.tsx +0 -185
- package/components/layout/AppShell.tsx +0 -25
- package/components/layout/Footer.tsx +0 -120
- package/components/layout/Header.tsx +0 -145
- package/components/marketing/LegalHighlights.tsx +0 -45
- package/components/marketing/LegalPageShell.tsx +0 -49
- package/components/marketing/LegalPanel.tsx +0 -41
- package/components/marketing/index.ts +0 -3
- package/design-system/README.md +0 -80
- package/design-system/base.css +0 -127
- package/design-system/components.css +0 -1943
- package/design-system/fonts.css +0 -17
- package/design-system/tailwind-preset.js +0 -95
- package/design-system/tokens.css +0 -48
- package/design-system/utilities.css +0 -53
- package/lib/config/index.ts +0 -12
- package/lib/hooks/index.ts +0 -4
- package/lib/hooks/use-mounted.ts +0 -13
- package/lib/hooks/use-session.ts +0 -34
- package/lib/hooks/use-settings.ts +0 -49
- package/lib/utils/index.ts +0 -1
- package/lib/utils/settings.ts +0 -162
- package/lib/utils/utils.ts +0 -6
- package/middleware.ts +0 -26
- package/next-env.d.ts +0 -7
- package/next.config.ts +0 -12
- package/postcss.config.mjs +0 -7
- package/public/apple-touch-icon.png +0 -0
- package/public/logo-transparent.png +0 -0
- package/public/xithead.ps1 +0 -937
- package/scripts/README.md +0 -77
- package/scripts/audit_wheel_glibc_symbols.py +0 -217
- package/scripts/build-master-design-system.cjs +0 -33
- package/scripts/build_rust_extension.sh +0 -58
- package/scripts/changelog-gen.py +0 -203
- package/scripts/eval_output_shaper.py +0 -235
- package/scripts/export_kompress_v2_onnx.py +0 -267
- package/scripts/fixtures/anthropic_replay_body.json +0 -133
- package/scripts/fixtures/codex_response_create_frame.json +0 -52
- package/scripts/install-git-hooks.sh +0 -104
- package/scripts/install.ps1 +0 -1809
- package/scripts/install.sh +0 -1673
- package/scripts/pr-governance.py +0 -297
- package/scripts/record_fixtures.py +0 -59
- package/scripts/refresh_model_limits.sh +0 -48
- package/scripts/replay_codex_ws_load.py +0 -445
- package/scripts/repro_codex_replay.py +0 -699
- package/scripts/smoke_issue_327.py +0 -233
- package/scripts/sync-plugin-versions.py +0 -116
- package/scripts/tests/test_changelog_gen.py +0 -302
- package/scripts/tests/test_pr_governance.py +0 -163
- package/scripts/tests/test_pr_health_labels.py +0 -94
- package/scripts/tests/test_pr_health_workflow.py +0 -14
- package/scripts/tests/test_sync_plugin_versions.py +0 -131
- package/scripts/tests/test_version_sync.py +0 -291
- package/scripts/validate-workflows.sh +0 -39
- package/scripts/verify-versions.py +0 -106
- package/scripts/version-sync.py +0 -207
- package/tailwind.config.js +0 -31
- package/tailwind.master.config.cjs +0 -47
- package/tsconfig.json +0 -84
- package/types/api.ts +0 -12
- package/types/config.ts +0 -9
- package/types/index.ts +0 -2
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "response.create",
|
|
3
|
-
"response": {
|
|
4
|
-
"model": "gpt-5.3-codex",
|
|
5
|
-
"stream": true,
|
|
6
|
-
"store": false,
|
|
7
|
-
"parallel_tool_calls": true,
|
|
8
|
-
"tools": [],
|
|
9
|
-
"input": [
|
|
10
|
-
{
|
|
11
|
-
"type": "message",
|
|
12
|
-
"role": "system",
|
|
13
|
-
"content": [
|
|
14
|
-
{
|
|
15
|
-
"type": "input_text",
|
|
16
|
-
"text": "You are Codex, a proxy-aware coding agent. The upstream connection is a WebSocket proxied through a local Headroom process. Keep responses incremental and stream-friendly; the proxy compresses large tool outputs on the way back and expects well-formed response.created / response.output_text.delta / response.completed envelopes."
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"type": "message",
|
|
22
|
-
"role": "user",
|
|
23
|
-
"content": [
|
|
24
|
-
{
|
|
25
|
-
"type": "input_text",
|
|
26
|
-
"text": "We're reproducing a reconnect storm against the local proxy at 127.0.0.1:8787. Open a WebSocket session, send one response.create frame, and stay connected. The goal is not to generate useful output — it's to make sure the proxy's WS lifecycle (accept, upstream connect, relay-task wiring, registry register/deregister) survives N concurrent sessions plus a parallel burst of large /v1/messages POSTs without /livez going dark. Do not expect a real model response; upstream auth will fail and the proxy should gracefully close. Just hold the slot for the storm duration."
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "message",
|
|
32
|
-
"role": "assistant",
|
|
33
|
-
"content": [
|
|
34
|
-
{
|
|
35
|
-
"type": "output_text",
|
|
36
|
-
"text": "Acknowledged. I'll keep this session open, avoid generating extra frames, and let the harness measure /livez latency and registry drain time. If the upstream closes with an auth error I'll expect a clean response.completed or error frame from the proxy, not a dangling task."
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "message",
|
|
42
|
-
"role": "user",
|
|
43
|
-
"content": [
|
|
44
|
-
{
|
|
45
|
-
"type": "input_text",
|
|
46
|
-
"text": "Confirm the session. No further work required — the harness is driving."
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Install git hooks for the Headroom repo:
|
|
3
|
-
# 1. pre-commit — repo pre-commit checks (ruff, mypy, sync-plugin-versions)
|
|
4
|
-
# 2. commit-msg — conventional-commit enforcement via commitlint
|
|
5
|
-
# 3. pre-push — full ci-precheck (cargo fmt/clippy/test + python suite)
|
|
6
|
-
#
|
|
7
|
-
# Why pre-push was added: the 2026-04-27 push hit five CI failures that could
|
|
8
|
-
# all have been caught locally — cargo fmt drift, an x86_64-apple-darwin wheel
|
|
9
|
-
# that the project doesn't actually need, missing Rust extension in two CI
|
|
10
|
-
# lanes, and a commitlint warning treated as an error.
|
|
11
|
-
#
|
|
12
|
-
# Why pre-commit was added: PR #772 merged with inline-comment spacing and
|
|
13
|
-
# import-order violations because the ruff pre-commit hook in
|
|
14
|
-
# .pre-commit-config.yaml was never installed for contributors.
|
|
15
|
-
#
|
|
16
|
-
# Idempotent. Re-running is safe. Skips installation if `.git/hooks/` is
|
|
17
|
-
# missing (e.g. running outside a git checkout).
|
|
18
|
-
|
|
19
|
-
set -euo pipefail
|
|
20
|
-
|
|
21
|
-
cd "$(dirname "$0")/.."
|
|
22
|
-
|
|
23
|
-
if [[ ! -d .git/hooks ]]; then
|
|
24
|
-
echo "error: .git/hooks/ not found — run from a git checkout root" >&2
|
|
25
|
-
exit 1
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
if ! command -v npx &>/dev/null; then
|
|
29
|
-
echo "error: npx not found — install Node 18+ before installing Headroom's git hooks." >&2
|
|
30
|
-
exit 1
|
|
31
|
-
fi
|
|
32
|
-
|
|
33
|
-
HOOK_PATH=".git/hooks/pre-push"
|
|
34
|
-
|
|
35
|
-
cat > "$HOOK_PATH" <<'HOOK_EOF'
|
|
36
|
-
#!/usr/bin/env bash
|
|
37
|
-
# Headroom pre-push hook — runs `make ci-precheck` so CI never finds a
|
|
38
|
-
# bug a local check could have caught.
|
|
39
|
-
#
|
|
40
|
-
# Skip with: `git push --no-verify`. Use sparingly — every skip is a roll
|
|
41
|
-
# of the dice on a CI break.
|
|
42
|
-
|
|
43
|
-
set -euo pipefail
|
|
44
|
-
|
|
45
|
-
# Skip the hook entirely when push goes to a ref that is not on the main
|
|
46
|
-
# tracking branches we gate. Adjust the pattern below if more branches
|
|
47
|
-
# need gating.
|
|
48
|
-
remote="$1"
|
|
49
|
-
url="$2"
|
|
50
|
-
|
|
51
|
-
while IFS=' ' read -r local_ref local_sha remote_ref remote_sha; do
|
|
52
|
-
# Empty local_sha means a delete; nothing to verify.
|
|
53
|
-
if [[ "$local_sha" == "0000000000000000000000000000000000000000" ]]; then
|
|
54
|
-
continue
|
|
55
|
-
fi
|
|
56
|
-
echo "── pre-push: running 'make ci-precheck' before pushing $local_ref → $remote_ref"
|
|
57
|
-
done
|
|
58
|
-
|
|
59
|
-
if [[ -z "${VIRTUAL_ENV:-}" ]]; then
|
|
60
|
-
if [[ -f .venv/bin/activate ]]; then
|
|
61
|
-
# shellcheck disable=SC1091
|
|
62
|
-
source .venv/bin/activate
|
|
63
|
-
else
|
|
64
|
-
echo "warn: no VIRTUAL_ENV set and no .venv/ found — python checks may use the wrong interpreter" >&2
|
|
65
|
-
fi
|
|
66
|
-
fi
|
|
67
|
-
|
|
68
|
-
if make ci-precheck; then
|
|
69
|
-
exit 0
|
|
70
|
-
else
|
|
71
|
-
echo ""
|
|
72
|
-
echo "❌ pre-push: 'make ci-precheck' failed. Fix the issues above before pushing."
|
|
73
|
-
echo " To bypass (NOT recommended): git push --no-verify"
|
|
74
|
-
exit 1
|
|
75
|
-
fi
|
|
76
|
-
HOOK_EOF
|
|
77
|
-
|
|
78
|
-
chmod +x "$HOOK_PATH"
|
|
79
|
-
|
|
80
|
-
echo "✅ installed: $HOOK_PATH"
|
|
81
|
-
echo " Runs 'make ci-precheck' before every git push."
|
|
82
|
-
echo " Bypass (use sparingly): git push --no-verify"
|
|
83
|
-
|
|
84
|
-
# Install pre-commit hooks (repo checks on every commit).
|
|
85
|
-
# Prefer the project venv over a global install so contributors always run the
|
|
86
|
-
# pinned version. Resolution order: active $VIRTUAL_ENV → .venv → global PATH.
|
|
87
|
-
PRE_COMMIT_BIN=""
|
|
88
|
-
if [[ -n "${VIRTUAL_ENV:-}" && -x "${VIRTUAL_ENV}/bin/pre-commit" ]]; then
|
|
89
|
-
PRE_COMMIT_BIN="${VIRTUAL_ENV}/bin/pre-commit"
|
|
90
|
-
elif [[ -x .venv/bin/pre-commit ]]; then
|
|
91
|
-
PRE_COMMIT_BIN=".venv/bin/pre-commit"
|
|
92
|
-
elif command -v pre-commit &>/dev/null; then
|
|
93
|
-
PRE_COMMIT_BIN="pre-commit"
|
|
94
|
-
fi
|
|
95
|
-
|
|
96
|
-
if [[ -n "$PRE_COMMIT_BIN" ]]; then
|
|
97
|
-
"$PRE_COMMIT_BIN" install
|
|
98
|
-
"$PRE_COMMIT_BIN" install --hook-type commit-msg
|
|
99
|
-
echo "✅ installed: .git/hooks/pre-commit (repo pre-commit checks via pre-commit)"
|
|
100
|
-
echo "✅ installed: .git/hooks/commit-msg (conventional commit enforcement via commitlint)"
|
|
101
|
-
else
|
|
102
|
-
echo "error: pre-commit not found — run 'pip install -e .[dev]' first, then re-run this script." >&2
|
|
103
|
-
exit 1
|
|
104
|
-
fi
|