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,39 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
actionlint .github/workflows/*.yml
|
|
5
|
-
|
|
6
|
-
run_act() {
|
|
7
|
-
local attempt=1
|
|
8
|
-
local max_attempts=3
|
|
9
|
-
local delay_seconds=5
|
|
10
|
-
|
|
11
|
-
while true; do
|
|
12
|
-
if "$@"; then
|
|
13
|
-
return 0
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
if (( attempt >= max_attempts )); then
|
|
17
|
-
return 1
|
|
18
|
-
fi
|
|
19
|
-
|
|
20
|
-
echo "act dry-run failed on attempt ${attempt}/${max_attempts}; retrying in ${delay_seconds}s..." >&2
|
|
21
|
-
sleep "${delay_seconds}"
|
|
22
|
-
attempt=$((attempt + 1))
|
|
23
|
-
delay_seconds=$((delay_seconds * 2))
|
|
24
|
-
done
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
run_act act workflow_dispatch -W .github/workflows/release.yml -e .github/act/dry-run.json -n
|
|
28
|
-
# release.yml's main trigger is now `release: published` (release-please
|
|
29
|
-
# emits this event when its release PR is merged). The earlier `push`
|
|
30
|
-
# trigger on main was removed in PR #495 to gate PyPI uploads behind
|
|
31
|
-
# the bot's release-PR pattern. Simulate the new trigger here so the
|
|
32
|
-
# validation step exercises the same code path CI actually fires on.
|
|
33
|
-
run_act act release -W .github/workflows/release.yml -e .github/act/release-published.json -n
|
|
34
|
-
run_act act push -W .github/workflows/release-please.yml -e .github/act/push-feat.json -n
|
|
35
|
-
run_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-invalid.json -n
|
|
36
|
-
run_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-valid.json -n
|
|
37
|
-
run_act act pull_request -W .github/workflows/docs.yml -n
|
|
38
|
-
run_act act workflow_dispatch -W .github/workflows/docs.yml -n
|
|
39
|
-
run_act act workflow_dispatch -W .github/workflows/docker.yml -e .github/act/docker-version.json -n
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Verify related package manifests are internally consistent before publishing.
|
|
3
|
-
|
|
4
|
-
The Python/CLI package, the TypeScript SDK, the OpenClaw plugin, and the
|
|
5
|
-
Claude plugin are released independently. Treating them as one version was
|
|
6
|
-
incorrect because it forced unpublished npm versions into package.json.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
import json
|
|
10
|
-
import re
|
|
11
|
-
from pathlib import Path
|
|
12
|
-
|
|
13
|
-
try:
|
|
14
|
-
import tomllib
|
|
15
|
-
except ImportError: # pragma: no cover - Python 3.10 fallback
|
|
16
|
-
import tomli as tomllib
|
|
17
|
-
|
|
18
|
-
ROOT = Path(__file__).parent.parent
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def _read_json_version(path: Path) -> str:
|
|
22
|
-
with open(path, encoding="utf-8") as f:
|
|
23
|
-
return str(json.load(f)["version"])
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def _read_lock_root(path: Path) -> dict:
|
|
27
|
-
with open(path, encoding="utf-8") as f:
|
|
28
|
-
return json.load(f)["packages"][""]
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
def _read_python_version(path: Path) -> str:
|
|
32
|
-
match = re.search(r'^__version__\s*=\s*["\']([^"\']+)["\']', path.read_text())
|
|
33
|
-
if match is None:
|
|
34
|
-
raise ValueError(f"Could not read Python version from {path}")
|
|
35
|
-
return match.group(1)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
def _read_marketplace_versions(path: Path) -> dict[str, str]:
|
|
39
|
-
with open(path, encoding="utf-8") as f:
|
|
40
|
-
payload = json.load(f)
|
|
41
|
-
|
|
42
|
-
versions: dict[str, str] = {}
|
|
43
|
-
metadata = payload.get("metadata")
|
|
44
|
-
if isinstance(metadata, dict):
|
|
45
|
-
versions[f"{path}:metadata"] = str(metadata.get("version"))
|
|
46
|
-
plugins = payload.get("plugins")
|
|
47
|
-
if isinstance(plugins, list):
|
|
48
|
-
for index, plugin in enumerate(plugins):
|
|
49
|
-
if isinstance(plugin, dict):
|
|
50
|
-
versions[f"{path}:plugins[{index}]"] = str(plugin.get("version"))
|
|
51
|
-
return versions
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
def main() -> None:
|
|
55
|
-
with open(ROOT / "pyproject.toml", "rb") as f:
|
|
56
|
-
py_ver = tomllib.load(f)["project"]["version"]
|
|
57
|
-
|
|
58
|
-
python_group = {
|
|
59
|
-
"pyproject.toml": str(py_ver),
|
|
60
|
-
"xithead/_version.py": _read_python_version(ROOT / "xithead/_version.py"),
|
|
61
|
-
"package.json": _read_json_version(ROOT / "package.json"),
|
|
62
|
-
}
|
|
63
|
-
sdk_version = _read_json_version(ROOT / "sdk/typescript/package.json")
|
|
64
|
-
sdk_group = {
|
|
65
|
-
"sdk/typescript/package.json": sdk_version,
|
|
66
|
-
"sdk/typescript/package-lock.json": str(
|
|
67
|
-
_read_lock_root(ROOT / "sdk/typescript/package-lock.json")["version"]
|
|
68
|
-
),
|
|
69
|
-
}
|
|
70
|
-
openclaw_version = _read_json_version(ROOT / "plugins/openclaw/package.json")
|
|
71
|
-
openclaw_group = {
|
|
72
|
-
"plugins/openclaw/package.json": openclaw_version,
|
|
73
|
-
"plugins/openclaw/package-lock.json": str(
|
|
74
|
-
_read_lock_root(ROOT / "plugins/openclaw/package-lock.json")["version"]
|
|
75
|
-
),
|
|
76
|
-
}
|
|
77
|
-
plugin_versions = {
|
|
78
|
-
"plugins/headroom-agent-hooks/.claude-plugin/plugin.json": _read_json_version(
|
|
79
|
-
ROOT / "plugins/headroom-agent-hooks/.claude-plugin/plugin.json"
|
|
80
|
-
),
|
|
81
|
-
"plugins/headroom-agent-hooks/.github/plugin/plugin.json": _read_json_version(
|
|
82
|
-
ROOT / "plugins/headroom-agent-hooks/.github/plugin/plugin.json"
|
|
83
|
-
),
|
|
84
|
-
}
|
|
85
|
-
plugin_versions.update(_read_marketplace_versions(ROOT / ".claude-plugin/marketplace.json"))
|
|
86
|
-
plugin_versions.update(_read_marketplace_versions(ROOT / ".github/plugin/marketplace.json"))
|
|
87
|
-
|
|
88
|
-
groups = {"python": python_group, "sdk": sdk_group, "openclaw": openclaw_group, "plugins": plugin_versions}
|
|
89
|
-
errors = []
|
|
90
|
-
for name, versions in groups.items():
|
|
91
|
-
if len(set(versions.values())) != 1:
|
|
92
|
-
errors.append((name, versions))
|
|
93
|
-
if errors:
|
|
94
|
-
print("Version mismatch detected:")
|
|
95
|
-
for name, versions in errors:
|
|
96
|
-
print(f" [{name}]")
|
|
97
|
-
for file, ver in versions.items():
|
|
98
|
-
print(f" {file}: {ver}")
|
|
99
|
-
raise SystemExit(1)
|
|
100
|
-
|
|
101
|
-
for name, versions in groups.items():
|
|
102
|
-
print(f"{name}: {next(iter(versions.values()))}")
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if __name__ == "__main__":
|
|
106
|
-
main()
|
package/scripts/version-sync.py
DELETED
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Synchronize versions for the selected release group.
|
|
3
|
-
|
|
4
|
-
The Python/CLI package is released independently from the TypeScript SDK,
|
|
5
|
-
OpenClaw integration, and Claude plugin. Independent packages are therefore
|
|
6
|
-
only changed with the explicit ``--sync-independent-packages`` opt-in.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
from __future__ import annotations
|
|
10
|
-
|
|
11
|
-
import argparse
|
|
12
|
-
import json
|
|
13
|
-
import re
|
|
14
|
-
from pathlib import Path
|
|
15
|
-
|
|
16
|
-
try:
|
|
17
|
-
import tomllib
|
|
18
|
-
except ImportError: # pragma: no cover - Python 3.10 fallback
|
|
19
|
-
import tomli as tomllib
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def get_version_from_pyproject(root: Path) -> str:
|
|
23
|
-
"""Read version from pyproject.toml."""
|
|
24
|
-
pyproject_path = root / "pyproject.toml"
|
|
25
|
-
with open(pyproject_path, "rb") as f:
|
|
26
|
-
data = tomllib.load(f)
|
|
27
|
-
return data["project"]["version"]
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def bump_version(version: str, bump_type: str) -> str:
|
|
31
|
-
"""Bump version according to bump_type (major, minor, patch)."""
|
|
32
|
-
major, minor, patch = map(int, version.split("."))
|
|
33
|
-
if bump_type == "major":
|
|
34
|
-
major += 1
|
|
35
|
-
minor = 0
|
|
36
|
-
patch = 0
|
|
37
|
-
elif bump_type == "minor":
|
|
38
|
-
minor += 1
|
|
39
|
-
patch = 0
|
|
40
|
-
elif bump_type == "patch":
|
|
41
|
-
patch += 1
|
|
42
|
-
return f"{major}.{minor}.{patch}"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def update_package_json(file_path: Path, version: str) -> None:
|
|
46
|
-
"""Update a package.json version field."""
|
|
47
|
-
with open(file_path, encoding="utf-8") as f:
|
|
48
|
-
data = json.load(f)
|
|
49
|
-
data["version"] = version
|
|
50
|
-
with open(file_path, "w", encoding="utf-8") as f:
|
|
51
|
-
json.dump(data, f, indent=2)
|
|
52
|
-
f.write("\n")
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def update_plugin_manifest(file_path: Path, version: str) -> None:
|
|
56
|
-
"""Update a plugin.json version field."""
|
|
57
|
-
with open(file_path, encoding="utf-8") as f:
|
|
58
|
-
data = json.load(f)
|
|
59
|
-
data["version"] = version
|
|
60
|
-
with open(file_path, "w", encoding="utf-8") as f:
|
|
61
|
-
json.dump(data, f, indent=2)
|
|
62
|
-
f.write("\n")
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def update_marketplace_manifest(file_path: Path, version: str) -> None:
|
|
66
|
-
"""Update marketplace metadata and plugin entry versions."""
|
|
67
|
-
with open(file_path, encoding="utf-8") as f:
|
|
68
|
-
data = json.load(f)
|
|
69
|
-
metadata = data.get("metadata")
|
|
70
|
-
if isinstance(metadata, dict):
|
|
71
|
-
metadata["version"] = version
|
|
72
|
-
plugins = data.get("plugins")
|
|
73
|
-
if isinstance(plugins, list):
|
|
74
|
-
for plugin in plugins:
|
|
75
|
-
if isinstance(plugin, dict):
|
|
76
|
-
plugin["version"] = version
|
|
77
|
-
with open(file_path, "w", encoding="utf-8") as f:
|
|
78
|
-
json.dump(data, f, indent=2)
|
|
79
|
-
f.write("\n")
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
def update_plugin_versions(root: Path, version: str) -> None:
|
|
83
|
-
"""Update marketplace and plugin manifest versions."""
|
|
84
|
-
update_marketplace_manifest(root / ".claude-plugin" / "marketplace.json", version)
|
|
85
|
-
update_marketplace_manifest(root / ".github" / "plugin" / "marketplace.json", version)
|
|
86
|
-
update_plugin_manifest(
|
|
87
|
-
root / "plugins" / "headroom-agent-hooks" / ".claude-plugin" / "plugin.json", version
|
|
88
|
-
)
|
|
89
|
-
update_plugin_manifest(
|
|
90
|
-
root / "plugins" / "headroom-agent-hooks" / ".github" / "plugin" / "plugin.json",
|
|
91
|
-
version,
|
|
92
|
-
)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
def update_openclaw_package_json(file_path: Path, version: str, sdk_version: str) -> None:
|
|
96
|
-
"""Update openclaw package.json version and xtream-head dependency range."""
|
|
97
|
-
with open(file_path, encoding="utf-8") as f:
|
|
98
|
-
data = json.load(f)
|
|
99
|
-
data["version"] = version
|
|
100
|
-
if "dependencies" in data and "xtream-head" in data["dependencies"]:
|
|
101
|
-
data["dependencies"]["xtream-head"] = f"^{sdk_version}"
|
|
102
|
-
with open(file_path, "w", encoding="utf-8") as f:
|
|
103
|
-
json.dump(data, f, indent=2)
|
|
104
|
-
f.write("\n")
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
def update_pyproject_version(root: Path, version: str) -> None:
|
|
108
|
-
"""Update pyproject.toml version."""
|
|
109
|
-
pyproject_path = root / "pyproject.toml"
|
|
110
|
-
content = pyproject_path.read_text(encoding="utf-8")
|
|
111
|
-
updated = re.sub(
|
|
112
|
-
r'^version = "[^"]+"',
|
|
113
|
-
f'version = "{version}"',
|
|
114
|
-
content,
|
|
115
|
-
flags=re.MULTILINE,
|
|
116
|
-
)
|
|
117
|
-
pyproject_path.write_text(updated, encoding="utf-8")
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
def update_python_runtime_version(root: Path, version: str) -> None:
|
|
121
|
-
"""Update the runtime version used by the xithead CLI."""
|
|
122
|
-
version_path = root / "xithead" / "_version.py"
|
|
123
|
-
content = version_path.read_text(encoding="utf-8")
|
|
124
|
-
updated = re.sub(
|
|
125
|
-
r'^__version__\s*=\s*["\'][^"\']+["\']',
|
|
126
|
-
f'__version__ = "{version}"',
|
|
127
|
-
content,
|
|
128
|
-
flags=re.MULTILINE,
|
|
129
|
-
)
|
|
130
|
-
version_path.write_text(updated, encoding="utf-8")
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
def write_release_metadata(root: Path, version: str) -> None:
|
|
134
|
-
"""Write .releaseetadata JSON file."""
|
|
135
|
-
metadata = {
|
|
136
|
-
"version": version,
|
|
137
|
-
"packages": {
|
|
138
|
-
"pypi": version,
|
|
139
|
-
"npm-sdk": version,
|
|
140
|
-
"npm-openclaw": version,
|
|
141
|
-
"agent-hooks-plugin": version,
|
|
142
|
-
},
|
|
143
|
-
}
|
|
144
|
-
metadata_path = root / ".releaseetadata"
|
|
145
|
-
with open(metadata_path, "w", encoding="utf-8") as f:
|
|
146
|
-
json.dump(metadata, f, indent=2)
|
|
147
|
-
f.write("\n")
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
def main() -> None:
|
|
151
|
-
parser = argparse.ArgumentParser(description="Synchronize versions for an xithead release group")
|
|
152
|
-
parser.add_argument(
|
|
153
|
-
"--root",
|
|
154
|
-
type=Path,
|
|
155
|
-
default=Path(__file__).parent.parent,
|
|
156
|
-
help="Root directory of the project",
|
|
157
|
-
)
|
|
158
|
-
group = parser.add_mutually_exclusive_group()
|
|
159
|
-
group.add_argument("--version", help="Explicit version to set (e.g., 0.6.0)")
|
|
160
|
-
group.add_argument(
|
|
161
|
-
"--bump",
|
|
162
|
-
choices=["major", "minor", "patch"],
|
|
163
|
-
help="Bump version from pyproject.toml",
|
|
164
|
-
)
|
|
165
|
-
parser.add_argument(
|
|
166
|
-
"--plugin-manifests-only",
|
|
167
|
-
action="store_true",
|
|
168
|
-
help="Only update marketplace/plugin manifest versions",
|
|
169
|
-
)
|
|
170
|
-
parser.add_argument(
|
|
171
|
-
"--sync-independent-packages",
|
|
172
|
-
action="store_true",
|
|
173
|
-
help="Also update the independently released SDK, OpenClaw, and plugin packages",
|
|
174
|
-
)
|
|
175
|
-
args = parser.parse_args()
|
|
176
|
-
|
|
177
|
-
if args.version:
|
|
178
|
-
version = args.version
|
|
179
|
-
elif args.bump:
|
|
180
|
-
base_version = get_version_from_pyproject(args.root)
|
|
181
|
-
version = bump_version(base_version, args.bump)
|
|
182
|
-
else:
|
|
183
|
-
version = get_version_from_pyproject(args.root)
|
|
184
|
-
|
|
185
|
-
if args.plugin_manifests_only:
|
|
186
|
-
update_plugin_versions(args.root, version)
|
|
187
|
-
print(f"Plugin versions synchronized to {version}")
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
# The default release group is the Python/CLI package and the root wrapper.
|
|
191
|
-
update_pyproject_version(args.root, version)
|
|
192
|
-
update_python_runtime_version(args.root, version)
|
|
193
|
-
update_package_json(args.root / "package.json", version)
|
|
194
|
-
|
|
195
|
-
if args.sync_independent_packages:
|
|
196
|
-
update_openclaw_package_json(
|
|
197
|
-
args.root / "plugins" / "openclaw" / "package.json", version, version
|
|
198
|
-
)
|
|
199
|
-
update_package_json(args.root / "sdk" / "typescript" / "package.json", version)
|
|
200
|
-
update_plugin_versions(args.root, version)
|
|
201
|
-
write_release_metadata(args.root, version)
|
|
202
|
-
|
|
203
|
-
print(f"Python/CLI version synchronized to {version}")
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
if __name__ == "__main__":
|
|
207
|
-
main()
|
package/tailwind.config.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Farben, Radien und Animationen kommen aus dem Preset in /design-system.
|
|
3
|
-
* Es ist dieselbe Datei, die an die uebrigen Repositories der Gruppe geht -
|
|
4
|
-
* hier steht deshalb nur noch, was fuer dieses Repo eigen ist.
|
|
5
|
-
*/
|
|
6
|
-
module.exports = {
|
|
7
|
-
presets: [require("./design-system/tailwind-preset.js")],
|
|
8
|
-
content: [
|
|
9
|
-
"./app/**/*.{js,ts,jsx,tsx}",
|
|
10
|
-
"./components/**/*.{js,ts,jsx,tsx}",
|
|
11
|
-
"./pages/**/*.{js,ts,jsx,tsx}",
|
|
12
|
-
"./src/**/*.{js,ts,jsx,tsx}",
|
|
13
|
-
"*.{js,ts,jsx,tsx,mdx}",
|
|
14
|
-
],
|
|
15
|
-
prefix: "",
|
|
16
|
-
theme: {
|
|
17
|
-
extend: {
|
|
18
|
-
colors: {
|
|
19
|
-
xit: {
|
|
20
|
-
blue: "hsl(var(--primary))",
|
|
21
|
-
teal: "hsl(var(--secondary))",
|
|
22
|
-
dark: "hsl(var(--background))",
|
|
23
|
-
gray: "hsl(var(--muted))",
|
|
24
|
-
"dark-card": "hsl(var(--card))",
|
|
25
|
-
},
|
|
26
|
-
"xit-lightgray": "#4b5a70",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
|
|
31
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./app/**/*.{ts,tsx}',
|
|
5
|
-
'./components/**/*.{ts,tsx}',
|
|
6
|
-
'./lib/**/*.{ts,tsx}',
|
|
7
|
-
],
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
primary: 'hsl(var(--primary) / <alpha-value>)',
|
|
12
|
-
'primary-foreground': 'hsl(var(--primary-foreground) / <alpha-value>)',
|
|
13
|
-
secondary: 'hsl(var(--secondary) / <alpha-value>)',
|
|
14
|
-
'secondary-foreground': 'hsl(var(--secondary-foreground) / <alpha-value>)',
|
|
15
|
-
accent: 'hsl(var(--accent) / <alpha-value>)',
|
|
16
|
-
'accent-foreground': 'hsl(var(--accent-foreground) / <alpha-value>)',
|
|
17
|
-
destructive: 'hsl(var(--destructive) / <alpha-value>)',
|
|
18
|
-
'destructive-foreground': 'hsl(var(--destructive-foreground) / <alpha-value>)',
|
|
19
|
-
muted: 'hsl(var(--muted) / <alpha-value>)',
|
|
20
|
-
'muted-foreground': 'hsl(var(--muted-foreground) / <alpha-value>)',
|
|
21
|
-
background: 'hsl(var(--background) / <alpha-value>)',
|
|
22
|
-
foreground: 'hsl(var(--foreground) / <alpha-value>)',
|
|
23
|
-
card: 'hsl(var(--card) / <alpha-value>)',
|
|
24
|
-
'card-foreground': 'hsl(var(--card-foreground) / <alpha-value>)',
|
|
25
|
-
border: 'hsl(var(--border) / <alpha-value>)',
|
|
26
|
-
input: 'hsl(var(--input) / <alpha-value>)',
|
|
27
|
-
ring: 'hsl(var(--ring) / <alpha-value>)',
|
|
28
|
-
},
|
|
29
|
-
borderRadius: {
|
|
30
|
-
md: 'var(--radius-md)',
|
|
31
|
-
lg: 'var(--radius-lg)',
|
|
32
|
-
},
|
|
33
|
-
fontFamily: {
|
|
34
|
-
body: 'var(--font-body)',
|
|
35
|
-
display: 'var(--font-display)',
|
|
36
|
-
mono: 'var(--font-mono)',
|
|
37
|
-
},
|
|
38
|
-
boxShadow: {
|
|
39
|
-
sm: 'var(--shadow-sm)',
|
|
40
|
-
md: 'var(--shadow-md)',
|
|
41
|
-
lg: 'var(--shadow-lg)',
|
|
42
|
-
xl: 'var(--shadow-xl)',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
plugins: [],
|
|
47
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2020",
|
|
7
|
-
"DOM",
|
|
8
|
-
"DOM.Iterable"
|
|
9
|
-
],
|
|
10
|
-
"module": "ESNext",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
"resolveJsonModule": true,
|
|
17
|
-
"isolatedModules": true,
|
|
18
|
-
"noEmit": true,
|
|
19
|
-
"jsx": "react-jsx",
|
|
20
|
-
"incremental": true,
|
|
21
|
-
"moduleResolution": "bundler",
|
|
22
|
-
"allowImportingTsExtensions": true,
|
|
23
|
-
"resolvePackageJsonExports": true,
|
|
24
|
-
"paths": {
|
|
25
|
-
"@/*": [
|
|
26
|
-
"./*"
|
|
27
|
-
],
|
|
28
|
-
"@/app/*": [
|
|
29
|
-
"./app/*"
|
|
30
|
-
],
|
|
31
|
-
"@/components/*": [
|
|
32
|
-
"./components/*"
|
|
33
|
-
],
|
|
34
|
-
"@/lib/*": [
|
|
35
|
-
"./lib/*"
|
|
36
|
-
],
|
|
37
|
-
"@/types/*": [
|
|
38
|
-
"./types/*"
|
|
39
|
-
],
|
|
40
|
-
"@/hooks/*": [
|
|
41
|
-
"./lib/hooks/*"
|
|
42
|
-
],
|
|
43
|
-
"@/utils/*": [
|
|
44
|
-
"./lib/utils/*"
|
|
45
|
-
],
|
|
46
|
-
"@/schemas/*": [
|
|
47
|
-
"./lib/schemas/*"
|
|
48
|
-
],
|
|
49
|
-
"@/middleware/*": [
|
|
50
|
-
"./lib/middleware/*"
|
|
51
|
-
],
|
|
52
|
-
"@/api/*": [
|
|
53
|
-
"./lib/api/*"
|
|
54
|
-
],
|
|
55
|
-
"@/config/*": [
|
|
56
|
-
"./lib/config/*"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"plugins": [
|
|
60
|
-
{
|
|
61
|
-
"name": "next"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
"include": [
|
|
66
|
-
"next-env.d.ts",
|
|
67
|
-
"app/**/*.ts",
|
|
68
|
-
"app/**/*.tsx",
|
|
69
|
-
"components/**/*.ts",
|
|
70
|
-
"components/**/*.tsx",
|
|
71
|
-
"lib/**/*.ts",
|
|
72
|
-
"types/**/*.ts",
|
|
73
|
-
".next/types/**/*.ts",
|
|
74
|
-
".next/dev/types/**/*.ts"
|
|
75
|
-
],
|
|
76
|
-
"exclude": [
|
|
77
|
-
"node_modules",
|
|
78
|
-
"plugins",
|
|
79
|
-
"sdk",
|
|
80
|
-
".next",
|
|
81
|
-
".git",
|
|
82
|
-
"dist"
|
|
83
|
-
]
|
|
84
|
-
}
|
package/types/api.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ApiResponse<T = any> {
|
|
2
|
-
success: boolean;
|
|
3
|
-
data?: T;
|
|
4
|
-
error?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ApiRequest {
|
|
9
|
-
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
body?: any;
|
|
12
|
-
}
|
package/types/config.ts
DELETED
package/types/index.ts
DELETED