wizz-method 2.20.1 → 2.22.0
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/THIRD-PARTY-NOTICES.md +18 -0
- package/package.json +4 -2
- package/skills-registry.yaml +41 -0
- package/src/bmm-skills/1-analysis/wizz-set-feature/SKILL.md +1 -1
- package/src/bmm-skills/4-implementation/wizz-code-review/SKILL.md +1 -1
- package/src/bmm-skills/4-implementation/wizz-create-story/SKILL.md +1 -1
- package/src/bmm-skills/4-implementation/wizz-dev-story/SKILL.md +8 -1
- package/src/bmm-skills/4-implementation/wizz-quick-dev/SKILL.md +2 -2
- package/src/bmm-skills/4-implementation/wizz-quick-dev/step-03-implement.md +2 -0
- package/src/bmm-skills/4-implementation/wizz-sprint-status/SKILL.md +1 -1
- package/src/core-skills/wizz-party-mode/customize.toml +3 -3
- package/src/modules/lowticket/skills/wizz-lowticket-funil/SKILL.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-guia/SKILL.md +2 -2
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/SKILL.md +5 -5
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/01-principios.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/02-diagnostico-funil.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/03-campanha-bidcap.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/04-criativos.md +2 -2
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/04a-criativos-ia.md +6 -6
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/04b-criativos-formatos.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/04c-criativos-roteiro.md +5 -5
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/05-oferta.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/06-pagina-vendas.md +3 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/06a-instagram.md +2 -2
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/06b-player-vsl.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/07-funil-upsell.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/07a-copy-humanizacao.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/08-pesquisa-publico.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/09-especialista-coproducao.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/10-levantar-caixa.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/11-checklist-roi.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/12-mineracao-ofertas.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/12a-mineracao-veredito.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/12b-fabrica-de-ofertas.md +2 -2
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/12c-anatomia-low-ticket.md +3 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/13-benchmarks-vsl.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/14-vocabulario.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/15-como-estender.md +2 -2
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/17-rastreamento.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/18-copy-desejo-oferta.md +3 -3
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/INDEX.md +14 -12
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/guardrails.md +18 -70
- package/src/modules/lowticket/skills/wizz-lowticket-metodologia/knowledge/pontos-em-aberto.md +9 -9
- package/src/modules/lowticket/skills/wizz-lowticket-minerador/SKILL.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-pagina/SKILL.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-trafego/SKILL.md +1 -1
- package/src/modules/lowticket/skills/wizz-lowticket-trafego/references/reguas.md +2 -0
- package/src/modules/wizz/_shared/cerebro.md +1 -1
- package/src/modules/wizz/_shared/organizacao.md +2 -2
- package/src/modules/wizz/agents/wizz-copy/SKILL.md +1 -0
- package/src/modules/wizz/agents/wizz-copy/customize.toml +5 -0
- package/src/modules/wizz/agents/wizz-copy/knowledge/playbook.md +2 -1
- package/src/modules/wizz/agents/wizz-growth/knowledge/playbook.md +1 -1
- package/src/modules/wizz/agents/wizz-social/knowledge/blueprint-roteiro-viral.md +14 -0
- package/src/modules/wizz/agents/wizz-social/knowledge/legenda-instagram.md +12 -0
- package/src/skills-lib/wizz-cerebro/SKILL.md +18 -5
- package/src/skills-lib/wizz-design-needs/SKILL.md +7 -0
- package/src/skills-lib/wizz-design-needs/references/design-state.md +34 -2
- package/src/skills-lib/wizz-design-needs/references/gap-analysis.md +1 -1
- package/src/skills-lib/wizz-design-needs/scripts/design_state.py +305 -0
- package/src/skills-lib/wizz-design-needs/scripts/tests/test_design_state.py +143 -0
- package/src/skills-lib/wizz-impeccable/references/design-rules.md +18 -0
- package/src/skills-lib/wizz-motion-3d-director/references/motion-paths.md +2 -0
- package/src/skills-lib/wizz-paid-ads/SKILL.md +2 -1
- package/src/skills-lib/wizz-premium-landing-ui-researcher/SKILL.md +6 -2
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/audit-protocol.md +7 -34
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/component-sources.md +2 -0
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/design-sources.yaml +252 -0
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/mandatory-process.md +1 -1
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/mining-rubric.md +123 -0
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/source-first-protocol.md +10 -4
- package/src/skills-lib/wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md +1 -1
- package/src/skills-lib/wizz-premium-landing-ui-researcher/scripts/design_sources.py +221 -0
- package/src/skills-lib/wizz-premium-landing-ui-researcher/scripts/tests/test_design_sources.py +130 -0
- package/src/skills-lib/wizz-router/references/routing-table-flat.md +2 -0
- package/src/skills-lib/wizz-taste-skill/references/anti-slop-tells.md +8 -0
- package/src/skills-lib/wizz-ui-component-curator/SKILL.md +8 -7
- package/src/skills-lib/wizz-video-effects/LICENSE-motionmaxxing.txt +202 -0
- package/src/skills-lib/wizz-video-effects/SKILL.md +5 -2
- package/src/skills-lib/wizz-video-effects/assets/chrome/collect_layout.js +113 -0
- package/src/skills-lib/wizz-video-effects/assets/effects.config.template.json +35 -0
- package/src/skills-lib/wizz-video-effects/references/data-contract.md +30 -1
- package/src/skills-lib/wizz-video-effects/references/gates.md +3 -1
- package/src/skills-lib/wizz-video-effects/scripts/check_chrome.py +376 -0
- package/src/skills-lib/wizz-video-effects/scripts/check_dead_frames.py +193 -0
- package/src/skills-lib/wizz-video-effects/scripts/config.py +13 -0
- package/src/skills-lib/wizz-video-effects/scripts/test_chrome.py +181 -0
- package/src/skills-lib/wizz-video-effects/scripts/test_dead_frames.py +171 -0
- package/src/skills-lib/wizz-video-styles/SKILL.md +6 -2
- package/src/skills-lib/wizz-video-styles/references/motion-laws.md +62 -0
- package/src/skills-lib/wizz-video-styles/references/styles/desafio-numero.md +1 -0
- package/src/skills-lib/wizz-video-styles/scripts/blind_review.py +159 -0
- package/src/skills-lib/wizz-video-styles/scripts/taste.mjs +110 -0
- package/src/skills-lib/wizz-video-styles/scripts/test_blind_review.py +82 -0
- package/src/skills-lib/wizz-vsl/LICENSE +49 -0
- package/src/skills-lib/wizz-vsl/SKILL.md +122 -0
- package/src/skills-lib/wizz-vsl/references/assembly-qa.md +123 -0
- package/src/skills-lib/wizz-vsl/references/blocks-and-leads.md +149 -0
- package/src/skills-lib/wizz-vsl/references/diagnosis.md +95 -0
- package/src/skills-lib/wizz-vsl/references/intake.md +200 -0
- package/src/skills-lib/wizz-vsl/references/mechanisms.md +138 -0
- package/src/skills-lib/wizz-vsl/references/niches.md +40 -0
- package/src/skills-lib/wizz-vsl/references/offer.md +91 -0
- package/src/skills-lib/wizz-vsl/references/production.md +75 -0
- package/tools/hooks/README.md +10 -9
- package/tools/hooks/wizz-arrumar.js +1 -0
- package/tools/hooks/wizz-artifact-guard.js +31 -5
- package/tools/hooks/wizz-cerebro-lib.js +36 -13
- package/tools/hooks/wizz-feature-lib.js +4 -1
- package/tools/hooks/wizz-feature.js +66 -76
- package/tools/hooks/wizz-sprint-archive-lib.js +311 -0
- package/tools/installer/core/hooks-settings.js +1 -0
- package/tools/installer/core/installer.js +6 -0
- package/tools/installer/modules/core-seed.js +72 -0
- package/tools/installer/modules/mcp-config.js +3 -0
- package/tools/installer/ui.js +16 -26
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.10"
|
|
3
|
+
# dependencies = ["ruamel.yaml>=0.18"]
|
|
4
|
+
# ///
|
|
5
|
+
"""Query the design-source catalogue and keep the local cache honest.
|
|
6
|
+
|
|
7
|
+
Prints ONLY JSON to stdout. Reads ../references/design-sources.yaml.
|
|
8
|
+
|
|
9
|
+
Subcommands:
|
|
10
|
+
list Sources that answer a need tag (--need, repeatable), optionally
|
|
11
|
+
filtered by --kind. Paid sources are listed with their access so
|
|
12
|
+
the miner can apply the paid-source condition; study_only sources
|
|
13
|
+
say so.
|
|
14
|
+
freshness For every source with a `cache` folder: revision, last commit,
|
|
15
|
+
last sync with the remote (FETCH_HEAD, else the clone date), age
|
|
16
|
+
of that sync in days, local changes, and `stale` when the age
|
|
17
|
+
passes max_cache_age_days. --remote also compares HEAD with
|
|
18
|
+
origin (network). Exit 0 always; the JSON carries the verdict.
|
|
19
|
+
refresh Fast-forward the cached clones that have no local changes
|
|
20
|
+
(`git fetch` + `git merge --ff-only`). A clone with local changes
|
|
21
|
+
is skipped and reported, never reset. --id limits it to one source.
|
|
22
|
+
|
|
23
|
+
Run with `uv run --no-cache scripts/design_sources.py <subcommand>`: uv
|
|
24
|
+
provisions ruamel.yaml from the header above.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
import argparse
|
|
28
|
+
import datetime as dt
|
|
29
|
+
import json
|
|
30
|
+
import os
|
|
31
|
+
import subprocess
|
|
32
|
+
import sys
|
|
33
|
+
from pathlib import Path
|
|
34
|
+
|
|
35
|
+
HERE = Path(__file__).resolve().parent
|
|
36
|
+
CATALOGUE = HERE.parent / "references" / "design-sources.yaml"
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def emit(payload, code=0):
|
|
40
|
+
print(json.dumps(payload, ensure_ascii=False, indent=2, default=str))
|
|
41
|
+
sys.exit(code)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def load_catalogue(path):
|
|
45
|
+
from ruamel.yaml import YAML
|
|
46
|
+
|
|
47
|
+
yaml = YAML(typ="safe")
|
|
48
|
+
with open(path, encoding="utf-8") as handle:
|
|
49
|
+
data = yaml.load(handle)
|
|
50
|
+
if not isinstance(data, dict) or not isinstance(data.get("sources"), list):
|
|
51
|
+
raise ValueError(f"{path}: expected a mapping with a `sources` list")
|
|
52
|
+
return data
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def cmd_list(data, needs, kind):
|
|
56
|
+
wanted = {tag.lower() for tag in needs}
|
|
57
|
+
rows = []
|
|
58
|
+
for source in data["sources"]:
|
|
59
|
+
tags = {str(tag).lower() for tag in source.get("need_tags") or []}
|
|
60
|
+
if wanted and not wanted & tags:
|
|
61
|
+
continue
|
|
62
|
+
if kind and source.get("kind") != kind:
|
|
63
|
+
continue
|
|
64
|
+
rows.append(
|
|
65
|
+
{
|
|
66
|
+
"id": source["id"],
|
|
67
|
+
"kind": source.get("kind"),
|
|
68
|
+
"access": source.get("access"),
|
|
69
|
+
"license": source.get("license"),
|
|
70
|
+
"study_only": bool(source.get("study_only")),
|
|
71
|
+
"matches": sorted(wanted & tags) if wanted else [],
|
|
72
|
+
"url": source.get("url"),
|
|
73
|
+
"registry": source.get("registry"),
|
|
74
|
+
"note": source.get("note"),
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
rows.sort(key=lambda row: (-len(row["matches"]), row["access"] != "free", row["id"]))
|
|
78
|
+
return {"need": sorted(wanted), "count": len(rows), "sources": rows}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def git(repo, *args):
|
|
82
|
+
result = subprocess.run(
|
|
83
|
+
["git", "-C", str(repo), *args], capture_output=True, text=True, timeout=120
|
|
84
|
+
)
|
|
85
|
+
if result.returncode != 0:
|
|
86
|
+
raise RuntimeError(result.stderr.strip() or f"git {' '.join(args)} failed")
|
|
87
|
+
return result.stdout.strip()
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def cache_root(data, override):
|
|
91
|
+
root = override or data.get("cache_root") or "~/.claude/design-sources"
|
|
92
|
+
return Path(os.path.expanduser(root))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def last_sync(repo):
|
|
96
|
+
"""When the clone last talked to its remote.
|
|
97
|
+
|
|
98
|
+
FETCH_HEAD is rewritten by every fetch. A clone that was never fetched has
|
|
99
|
+
no FETCH_HEAD, so the last HEAD reflog entry (the clone itself, or the last
|
|
100
|
+
pull) is used. The .git folder's mtime is not: `git status` touches it.
|
|
101
|
+
"""
|
|
102
|
+
git_dir = repo / ".git"
|
|
103
|
+
marker = git_dir / "FETCH_HEAD"
|
|
104
|
+
if marker.exists():
|
|
105
|
+
return dt.date.fromtimestamp(marker.stat().st_mtime)
|
|
106
|
+
reflog = git_dir / "logs" / "HEAD"
|
|
107
|
+
if reflog.exists():
|
|
108
|
+
lines = [line for line in reflog.read_text(encoding="utf-8").splitlines() if line.strip()]
|
|
109
|
+
if lines:
|
|
110
|
+
identity = lines[-1].split("\t", 1)[0].split()
|
|
111
|
+
return dt.date.fromtimestamp(int(identity[-2]))
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def remote_status(repo, revision):
|
|
116
|
+
try:
|
|
117
|
+
line = git(repo, "ls-remote", "origin", "HEAD")
|
|
118
|
+
except RuntimeError as error:
|
|
119
|
+
return {"remote": f"unreachable: {error}"}
|
|
120
|
+
remote = line.split()[0] if line else ""
|
|
121
|
+
return {"remote": "current" if remote.startswith(revision) else "behind", "remote_revision": remote[:8]}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def inspect_cache(repo, max_age, today, check_remote):
|
|
125
|
+
if not (repo / ".git").exists():
|
|
126
|
+
return {"present": repo.is_dir(), "error": None if not repo.is_dir() else "not a git clone"}
|
|
127
|
+
try:
|
|
128
|
+
revision = git(repo, "rev-parse", "--short", "HEAD")
|
|
129
|
+
committed = git(repo, "log", "-1", "--format=%cs")
|
|
130
|
+
dirty = bool(git(repo, "status", "--porcelain"))
|
|
131
|
+
except RuntimeError as error:
|
|
132
|
+
return {"present": True, "error": str(error)}
|
|
133
|
+
synced = last_sync(repo)
|
|
134
|
+
if synced is None:
|
|
135
|
+
return {"present": True, "revision": revision, "last_commit": committed, "error": "no fetch or reflog record"}
|
|
136
|
+
age = (today - synced).days
|
|
137
|
+
row = {
|
|
138
|
+
"present": True,
|
|
139
|
+
"revision": revision,
|
|
140
|
+
"last_commit": committed,
|
|
141
|
+
"last_sync": synced.isoformat(),
|
|
142
|
+
"age_days": age,
|
|
143
|
+
"local_changes": dirty,
|
|
144
|
+
"stale": age > max_age,
|
|
145
|
+
}
|
|
146
|
+
if check_remote:
|
|
147
|
+
row.update(remote_status(repo, revision))
|
|
148
|
+
return row
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def cmd_freshness(data, root, today, check_remote=False):
|
|
152
|
+
max_age = int(data.get("max_cache_age_days") or 30)
|
|
153
|
+
rows = []
|
|
154
|
+
for source in data["sources"]:
|
|
155
|
+
if not source.get("cache"):
|
|
156
|
+
continue
|
|
157
|
+
row = {"id": source["id"], "path": str(root / source["cache"])}
|
|
158
|
+
row.update(inspect_cache(root / source["cache"], max_age, today, check_remote))
|
|
159
|
+
rows.append(row)
|
|
160
|
+
stale = [row["id"] for row in rows if row.get("stale")]
|
|
161
|
+
return {"max_age_days": max_age, "today": today.isoformat(), "stale": stale, "caches": rows}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def cmd_refresh(data, root, only_id):
|
|
165
|
+
rows = []
|
|
166
|
+
for source in data["sources"]:
|
|
167
|
+
if not source.get("cache") or (only_id and source["id"] != only_id):
|
|
168
|
+
continue
|
|
169
|
+
repo = root / source["cache"]
|
|
170
|
+
row = {"id": source["id"], "path": str(repo)}
|
|
171
|
+
if not repo.is_dir():
|
|
172
|
+
row["result"] = "absent"
|
|
173
|
+
else:
|
|
174
|
+
try:
|
|
175
|
+
if git(repo, "status", "--porcelain"):
|
|
176
|
+
row["result"] = "skipped: local changes"
|
|
177
|
+
else:
|
|
178
|
+
before = git(repo, "rev-parse", "--short", "HEAD")
|
|
179
|
+
git(repo, "fetch", "--quiet")
|
|
180
|
+
git(repo, "merge", "--ff-only", "--quiet", "@{u}")
|
|
181
|
+
after = git(repo, "rev-parse", "--short", "HEAD")
|
|
182
|
+
row["result"] = "updated" if after != before else "already current"
|
|
183
|
+
row["revision"] = after
|
|
184
|
+
except RuntimeError as error:
|
|
185
|
+
row["result"] = f"error: {error}"
|
|
186
|
+
rows.append(row)
|
|
187
|
+
return {"caches": rows}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def main(argv=None):
|
|
191
|
+
parser = argparse.ArgumentParser(prog="design_sources.py")
|
|
192
|
+
parser.add_argument("--catalogue", default=str(CATALOGUE))
|
|
193
|
+
parser.add_argument("--cache-root", default=None)
|
|
194
|
+
sub = parser.add_subparsers(dest="command", required=True)
|
|
195
|
+
listing = sub.add_parser("list")
|
|
196
|
+
listing.add_argument("--need", action="append", default=[])
|
|
197
|
+
listing.add_argument("--kind", default=None)
|
|
198
|
+
fresh = sub.add_parser("freshness")
|
|
199
|
+
fresh.add_argument("--today", default=None, help="YYYY-MM-DD, for tests")
|
|
200
|
+
fresh.add_argument("--remote", action="store_true", help="compare HEAD with origin (network)")
|
|
201
|
+
refresh = sub.add_parser("refresh")
|
|
202
|
+
refresh.add_argument("--id", default=None)
|
|
203
|
+
try:
|
|
204
|
+
args = parser.parse_args(argv)
|
|
205
|
+
except SystemExit as error:
|
|
206
|
+
emit({"error": "invalid arguments"}, int(error.code or 2))
|
|
207
|
+
try:
|
|
208
|
+
data = load_catalogue(args.catalogue)
|
|
209
|
+
except (OSError, ValueError, ImportError) as error:
|
|
210
|
+
emit({"error": str(error)}, 1)
|
|
211
|
+
root = cache_root(data, args.cache_root)
|
|
212
|
+
if args.command == "list":
|
|
213
|
+
emit(cmd_list(data, args.need, args.kind))
|
|
214
|
+
if args.command == "freshness":
|
|
215
|
+
today = dt.date.fromisoformat(args.today) if args.today else dt.date.today()
|
|
216
|
+
emit(cmd_freshness(data, root, today, args.remote))
|
|
217
|
+
emit(cmd_refresh(data, root, args.id))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
if __name__ == "__main__":
|
|
221
|
+
main()
|
package/src/skills-lib/wizz-premium-landing-ui-researcher/scripts/tests/test_design_sources.py
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# /// script
|
|
2
|
+
# requires-python = ">=3.10"
|
|
3
|
+
# dependencies = ["pytest>=8.0", "ruamel.yaml>=0.18"]
|
|
4
|
+
# ///
|
|
5
|
+
"""Tests for design_sources.py: list by need tag, cache freshness, refresh."""
|
|
6
|
+
|
|
7
|
+
import datetime as dt
|
|
8
|
+
import importlib.util
|
|
9
|
+
import json
|
|
10
|
+
import os
|
|
11
|
+
import subprocess
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
import pytest
|
|
15
|
+
|
|
16
|
+
SCRIPT = Path(__file__).resolve().parents[1] / "design_sources.py"
|
|
17
|
+
REAL_CATALOGUE = Path(__file__).resolve().parents[2] / "references" / "design-sources.yaml"
|
|
18
|
+
|
|
19
|
+
spec = importlib.util.spec_from_file_location("design_sources", SCRIPT)
|
|
20
|
+
mod = importlib.util.module_from_spec(spec)
|
|
21
|
+
spec.loader.exec_module(mod)
|
|
22
|
+
|
|
23
|
+
GIT_ENV = {
|
|
24
|
+
**os.environ,
|
|
25
|
+
"GIT_AUTHOR_NAME": "t",
|
|
26
|
+
"GIT_AUTHOR_EMAIL": "t@t",
|
|
27
|
+
"GIT_COMMITTER_NAME": "t",
|
|
28
|
+
"GIT_COMMITTER_EMAIL": "t@t",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def run_main(capsys, *argv):
|
|
33
|
+
with pytest.raises(SystemExit) as exit_info:
|
|
34
|
+
mod.main(list(argv))
|
|
35
|
+
return exit_info.value.code, json.loads(capsys.readouterr().out)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def git(cwd, *args):
|
|
39
|
+
subprocess.run(["git", "-C", str(cwd), *args], check=True, capture_output=True, env=GIT_ENV)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def make_clone(tmp_path, name):
|
|
43
|
+
upstream = tmp_path / f"{name}-upstream"
|
|
44
|
+
upstream.mkdir()
|
|
45
|
+
git(upstream, "init", "-q", "-b", "main")
|
|
46
|
+
(upstream / "a.txt").write_text("1", encoding="utf-8")
|
|
47
|
+
git(upstream, "add", "a.txt")
|
|
48
|
+
git(upstream, "commit", "-q", "-m", "one")
|
|
49
|
+
root = tmp_path / "cache"
|
|
50
|
+
root.mkdir(exist_ok=True)
|
|
51
|
+
subprocess.run(["git", "clone", "-q", str(upstream), str(root / name)], check=True, capture_output=True, env=GIT_ENV)
|
|
52
|
+
return upstream, root
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def write_catalogue(tmp_path, cache_name):
|
|
56
|
+
path = tmp_path / "sources.yaml"
|
|
57
|
+
path.write_text(
|
|
58
|
+
"version: 1\nmax_cache_age_days: 30\nsources:\n"
|
|
59
|
+
f" - {{ id: demo, kind: registry, access: free, cache: {cache_name}, need_tags: [hover] }}\n"
|
|
60
|
+
" - { id: paid, kind: code, access: paid, need_tags: [hover, card] }\n"
|
|
61
|
+
" - { id: study, kind: visual, access: free, study_only: true, need_tags: [shader] }\n",
|
|
62
|
+
encoding="utf-8",
|
|
63
|
+
)
|
|
64
|
+
return path
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def test_real_catalogue_parses_and_every_source_has_tags(capsys):
|
|
68
|
+
code, out = run_main(capsys, "--catalogue", str(REAL_CATALOGUE), "list")
|
|
69
|
+
assert code == 0
|
|
70
|
+
assert out["count"] > 20
|
|
71
|
+
data = mod.load_catalogue(REAL_CATALOGUE)
|
|
72
|
+
for source in data["sources"]:
|
|
73
|
+
assert source.get("need_tags"), source["id"]
|
|
74
|
+
assert source.get("kind") in {"code", "registry", "engine", "visual", "taste", "extractor"}, source["id"]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def test_real_catalogue_keeps_the_no_license_source_study_only():
|
|
78
|
+
data = mod.load_catalogue(REAL_CATALOGUE)
|
|
79
|
+
ali = next(source for source in data["sources"] if source["id"] == "ali-imam")
|
|
80
|
+
assert ali["study_only"] is True and ali["kind"] == "visual" and ali["license"] is None
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def test_list_filters_by_need_and_ranks_free_first(tmp_path, capsys):
|
|
84
|
+
catalogue = write_catalogue(tmp_path, "demo")
|
|
85
|
+
code, out = run_main(capsys, "--catalogue", str(catalogue), "list", "--need", "hover")
|
|
86
|
+
assert code == 0
|
|
87
|
+
assert [row["id"] for row in out["sources"]] == ["demo", "paid"]
|
|
88
|
+
_, shader = run_main(capsys, "--catalogue", str(catalogue), "list", "--need", "shader")
|
|
89
|
+
assert shader["sources"][0]["study_only"] is True
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def test_freshness_marks_old_sync_as_stale(tmp_path, capsys):
|
|
93
|
+
_, root = make_clone(tmp_path, "demo")
|
|
94
|
+
catalogue = write_catalogue(tmp_path, "demo")
|
|
95
|
+
future = (dt.date.today() + dt.timedelta(days=45)).isoformat()
|
|
96
|
+
code, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "freshness", "--today", future)
|
|
97
|
+
assert code == 0
|
|
98
|
+
assert out["stale"] == ["demo"]
|
|
99
|
+
row = out["caches"][0]
|
|
100
|
+
assert row["present"] is True and row["local_changes"] is False and row["age_days"] >= 45
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def test_freshness_today_is_fresh_and_absent_cache_is_reported(tmp_path, capsys):
|
|
104
|
+
_, root = make_clone(tmp_path, "demo")
|
|
105
|
+
catalogue = write_catalogue(tmp_path, "demo")
|
|
106
|
+
_, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "freshness")
|
|
107
|
+
assert out["stale"] == []
|
|
108
|
+
missing = write_catalogue(tmp_path, "nowhere")
|
|
109
|
+
_, absent = run_main(capsys, "--catalogue", str(missing), "--cache-root", str(root), "freshness")
|
|
110
|
+
assert absent["caches"][0]["present"] is False
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def test_refresh_fast_forwards_clean_clone_and_skips_dirty_one(tmp_path, capsys):
|
|
114
|
+
upstream, root = make_clone(tmp_path, "demo")
|
|
115
|
+
(upstream / "a.txt").write_text("2", encoding="utf-8")
|
|
116
|
+
git(upstream, "commit", "-q", "-am", "two")
|
|
117
|
+
catalogue = write_catalogue(tmp_path, "demo")
|
|
118
|
+
_, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "refresh")
|
|
119
|
+
assert out["caches"][0]["result"] == "updated"
|
|
120
|
+
(root / "demo" / "a.txt").write_text("local edit", encoding="utf-8")
|
|
121
|
+
_, dirty = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "refresh")
|
|
122
|
+
assert dirty["caches"][0]["result"] == "skipped: local changes"
|
|
123
|
+
assert (root / "demo" / "a.txt").read_text(encoding="utf-8") == "local edit"
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def test_bad_catalogue_is_a_json_error(tmp_path, capsys):
|
|
127
|
+
bad = tmp_path / "bad.yaml"
|
|
128
|
+
bad.write_text("nothing: here\n", encoding="utf-8")
|
|
129
|
+
code, out = run_main(capsys, "--catalogue", str(bad), "list")
|
|
130
|
+
assert code == 1 and "sources" in out["error"]
|
|
@@ -19,6 +19,7 @@ Use this table to map skills/CLIs/MCPs directly **outside a Wizz project** (no `
|
|
|
19
19
|
| **Autonomous, offensive** pentest that actually runs the app and proves each finding with a real PoC | CLI `strix` (qa registry). CONDITIONAL, never the default: only on an app the user owns/is authorized to test, and only when they ask for validated exploitation rather than a review. Start from `wizz-security-audit-pentest` | 2 |
|
|
20
20
|
| Error monitoring, crash/exception triage, releases and source maps in Sentry | CLI `sentry-cli` (architect registry). CONDITIONAL: only if the project ALREADY uses Sentry (`SENTRY_DSN` in env, `sentry.properties`, or `@sentry/` in package.json) and it's at production stage — never propose adopting Sentry from this row | 2 |
|
|
21
21
|
| Launch-readiness audit, "is it ready to launch?", broad release checklist (technical, security, SEO, analytics, content, legal, infra), "what's missing before going to production" | `wizz-launch-readiness` | 1 |
|
|
22
|
+
| Understand how a feature of a THIRD-PARTY app, Electron app, APK, binary or HAR capture works, without its source, to build a similar one | MCP `rea` (dev registry, optional: recommended, never configured by default; own code is `wizz-investigate`) | 2 |
|
|
22
23
|
| Desktop, Electron, contextIsolation, code signing | `wizz-desktop-security` | 2 |
|
|
23
24
|
|
|
24
25
|
## Technical Area — Code and Quality
|
|
@@ -88,6 +89,7 @@ Use this table to map skills/CLIs/MCPs directly **outside a Wizz project** (no `
|
|
|
88
89
|
| Tear down ONE viral Instagram post (Reel, carousel, caption) from its link: why it worked, which hook, a mould to do one like it | `wizz-hook-extractor` (social registry; reads the post itself) | 2 |
|
|
89
90
|
| Audit and rewrite an Instagram PROFILE: bio, search NAME, link, highlights, pinned posts | `wizz-ig-profile-optimizer` (social registry) | 2 |
|
|
90
91
|
| Actually PUBLISH/schedule to social networks (Instagram, TikTok, YouTube, LinkedIn and more), not write it | CLI `buffer` (social registry; needs `BUFFER_API_KEY`; media must be a public HTTPS URL). Separates "generate" (Wizz skills above) from "publish" | 2 |
|
|
92
|
+
| VSL (video sales letter) script: expert interview, problem and solution mechanism, spoken offer, leads to test, production beat sheet | `wizz-vsl` (copy registry; the page around the player stays with `wizz-copywriting`) | 2 |
|
|
91
93
|
| Cold email, B2B outbound, prospecting | `wizz-cold-email` | 2 |
|
|
92
94
|
| Referral, referrals, affiliate program | `wizz-referral-program` | 2 |
|
|
93
95
|
| Sales material, pitch, deck, proposal | `wizz-sales-enablement` | 2 |
|
|
@@ -91,6 +91,14 @@ These patterns came out of real LLM-generated landing-page tests. They are the s
|
|
|
91
91
|
* **Scroll cues are banned.** `Scroll`, `↓ scroll`, `Scroll to explore`, `Scroll to walk through it`, animated mouse-wheel icons. If the user has not scrolled yet, they are looking at the hero. They know what scroll is. The bottom of the viewport does not need a label.
|
|
92
92
|
* **ZERO decorative status dots by default.** A coloured dot before nav items, before list rows, before badges, before status labels is a Tell. Only acceptable when conveying real semantic state (a live indicator on actual server status, a live availability flag) and limited to one per page section.
|
|
93
93
|
|
|
94
|
+
### 9.H Landing-page tells (Wizz addition, moved here from the landing Audit Protocol)
|
|
95
|
+
* **NO identity-free hero formula.** Big headline + subtitle + two side-by-side CTAs, with nothing that could only belong to this brand.
|
|
96
|
+
* **NO `rounded-3xl` on everything.** Radius is a scale with a reason per level, not one oversized value.
|
|
97
|
+
* **NO card stacks on the default `shadow-xl`.** See Section 4.4 for tinted, purposeful elevation.
|
|
98
|
+
* **NO generic testimonial card.** Round avatar + name + title + quoted sentence, repeated in a row. See Section 4.10 for quote formats.
|
|
99
|
+
* **NO centered gradient "Most Popular" badge** on pricing cards.
|
|
100
|
+
* **NO decorative emoji** anywhere other than status microcopy (policy in Section 3.D).
|
|
101
|
+
|
|
94
102
|
### 9.G EM-DASH BAN (the single most-violated Tell)
|
|
95
103
|
|
|
96
104
|
**Em-dash (`—`) is COMPLETELY banned.** It is the LLM's signature stylistic crutch and it is the #1 visual Tell in production tests. There is no "limited use" allowance, no "natural language frequency" allowance, no "in body copy is fine" allowance. None.
|
|
@@ -40,7 +40,7 @@ Do not ask the user to describe the style unless the project has no inspectable
|
|
|
40
40
|
|
|
41
41
|
## 2. Search and inspect public sources
|
|
42
42
|
|
|
43
|
-
Start with existing project components. Then search the public sources. The full authorized list (React Bits, Cult UI, Watermelon, StyleUI, Skiper UI, Bklit UI, Componentry, shadcn/ui, Ali Imam for study only, plus the reference galleries) lives in one place: [
|
|
43
|
+
Start with existing project components. Then search the public sources. The full authorized list (React Bits, Cult UI, Watermelon, StyleUI, Skiper UI, Bklit UI, Componentry, shadcn/ui, Ali Imam for study only, plus the reference galleries) lives in one place, as data: [design-sources.yaml](../wizz-premium-landing-ui-researcher/references/design-sources.yaml). Query it with `uv run --no-cache ../wizz-premium-landing-ui-researcher/scripts/design_sources.py list --need <tag>` instead of relying on memory; [component-sources](../wizz-premium-landing-ui-researcher/references/component-sources.md) holds the policy behind each row. Check which registries are healthy today in the live index (`https://ui.shadcn.com/r/registries.json`, see [source-first-protocol](../wizz-premium-landing-ui-researcher/references/source-first-protocol.md) Phase 3). Compare at least two suitable sources per need.
|
|
44
44
|
|
|
45
45
|
Before the first query, open the access as described in [web-access-and-evidence](../wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md): load the web tools (on Claude Code, WebSearch and WebFetch are deferred and need `ToolSearch`), then fall back to `curl`, `agent-browser` and the local source cache. Search with whatever that step opened: web search (Exa when configured, WebSearch otherwise), WebFetch, scrapling, and `agent-browser` to watch hover and motion live. A tool that errors or hangs is not the end of the research: record the failure, move to the next tool, and never stop without reporting what was and was not checked. With no web and no cache, return BLOCKED instead of recommending from memory.
|
|
46
46
|
|
|
@@ -53,20 +53,21 @@ Use the inferred style DNA as the search filter. Prefer:
|
|
|
53
53
|
- components that can be integrated with minimal stylistic friction
|
|
54
54
|
- effects that enhance the current direction rather than replace it
|
|
55
55
|
|
|
56
|
-
## 3.
|
|
56
|
+
## 3. Judge, select, stop
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Judge every candidate with [mining-rubric](../wizz-premium-landing-ui-researcher/references/mining-rubric.md), in its order: evidence gate, dedup against what the project already selected, entry conditions, the 0-10 score with the cut at 6, the verdict. Select by its selection rule and close the need on its stop conditions (a 9 or more, the source budget, or 2 dry sources in a row). With a `design-state.yaml`, every candidate goes back as a discovery, rejected ones with their reason, so the next round does not open them again. Then run `uv run --no-cache ../wizz-design-needs/scripts/design_state.py validate {output_folder}/design-state.yaml` and fix its findings before handing off.
|
|
59
59
|
|
|
60
60
|
Only candidates that pass the evidence gate in [web-access-and-evidence](../wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md) can be shown here. The rest are UNVERIFIED and go to the evidence section.
|
|
61
61
|
|
|
62
|
-
For each
|
|
63
|
-
-
|
|
62
|
+
Show the selected one and at most two runners-up. For each, say briefly:
|
|
63
|
+
- verdict and score
|
|
64
|
+
- why it fits (the rubric's `por_que`)
|
|
64
65
|
- what role it plays
|
|
65
66
|
- any tradeoff
|
|
66
67
|
|
|
67
68
|
## 4. Plan before editing
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
Write the adaptation in the rubric's order (pattern, why it works, invariant, variable, reimplementation), then a compact plan: what changes, which files, any dependency or styling adaptation needed. A visual reference gives structure and principle, never CSS.
|
|
70
71
|
|
|
71
72
|
## 5. Present evidence and proceed within scope
|
|
72
73
|
|
|
@@ -124,7 +125,7 @@ If the project is stylistically mixed: anchor to the direction already establish
|
|
|
124
125
|
Short summary of inferred design language (3–5 lines max).
|
|
125
126
|
|
|
126
127
|
## Best fit
|
|
127
|
-
Top recommendation + why it fits + role it plays.
|
|
128
|
+
Top recommendation + verdict and score + why it fits + role it plays + which stop condition closed the need.
|
|
128
129
|
|
|
129
130
|
## Alternatives
|
|
130
131
|
Up to 2 backup options only if genuinely different and useful.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|