floop 1.0.0__tar.gz → 1.2.0__tar.gz

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.
Files changed (48) hide show
  1. {floop-1.0.0/src/floop.egg-info → floop-1.2.0}/PKG-INFO +1 -1
  2. floop-1.2.0/docs/commands.md +86 -0
  3. floop-1.2.0/src/floop/__init__.py +8 -0
  4. floop-1.2.0/src/floop/cli.py +1469 -0
  5. {floop-1.0.0 → floop-1.2.0}/src/floop/preview.py +41 -11
  6. {floop-1.0.0 → floop-1.2.0}/src/floop/prototype.py +6 -1
  7. floop-1.2.0/src/floop/review.py +609 -0
  8. {floop-1.0.0 → floop-1.2.0}/src/floop/skills.py +318 -18
  9. {floop-1.0.0 → floop-1.2.0/src/floop.egg-info}/PKG-INFO +1 -1
  10. {floop-1.0.0 → floop-1.2.0}/src/floop.egg-info/SOURCES.txt +2 -0
  11. {floop-1.0.0 → floop-1.2.0}/tests/test_adapters.py +89 -0
  12. floop-1.2.0/tests/test_cli.py +1488 -0
  13. {floop-1.0.0 → floop-1.2.0}/tests/test_preview.py +97 -38
  14. {floop-1.0.0 → floop-1.2.0}/tests/test_prototype.py +27 -0
  15. floop-1.2.0/tests/test_review.py +828 -0
  16. floop-1.0.0/docs/commands.md +0 -51
  17. floop-1.0.0/src/floop/__init__.py +0 -3
  18. floop-1.0.0/src/floop/cli.py +0 -797
  19. floop-1.0.0/tests/test_cli.py +0 -507
  20. {floop-1.0.0 → floop-1.2.0}/.github/workflows/docs.yml +0 -0
  21. {floop-1.0.0 → floop-1.2.0}/.github/workflows/release.yml +0 -0
  22. {floop-1.0.0 → floop-1.2.0}/.gitignore +0 -0
  23. {floop-1.0.0 → floop-1.2.0}/README.md +0 -0
  24. {floop-1.0.0 → floop-1.2.0}/docs/architecture.md +0 -0
  25. {floop-1.0.0 → floop-1.2.0}/docs/assets/javascripts/mermaid.min.js +0 -0
  26. {floop-1.0.0 → floop-1.2.0}/docs/contributing.md +0 -0
  27. {floop-1.0.0 → floop-1.2.0}/docs/demos/context-network.md +0 -0
  28. {floop-1.0.0 → floop-1.2.0}/docs/demos/cross-session.md +0 -0
  29. {floop-1.0.0 → floop-1.2.0}/docs/demos/domain-learning.md +0 -0
  30. {floop-1.0.0 → floop-1.2.0}/docs/demos/requirements-driven.md +0 -0
  31. {floop-1.0.0 → floop-1.2.0}/docs/demos/team-onboarding.md +0 -0
  32. {floop-1.0.0 → floop-1.2.0}/docs/features.md +0 -0
  33. {floop-1.0.0 → floop-1.2.0}/docs/getting-started.md +0 -0
  34. {floop-1.0.0 → floop-1.2.0}/docs/index.md +0 -0
  35. {floop-1.0.0 → floop-1.2.0}/docs/use-cases/enterprises.md +0 -0
  36. {floop-1.0.0 → floop-1.2.0}/docs/use-cases/individuals.md +0 -0
  37. {floop-1.0.0 → floop-1.2.0}/docs/use-cases.md +0 -0
  38. {floop-1.0.0 → floop-1.2.0}/mkdocs.yml +0 -0
  39. {floop-1.0.0 → floop-1.2.0}/pyproject.toml +0 -0
  40. {floop-1.0.0 → floop-1.2.0}/setup.cfg +0 -0
  41. {floop-1.0.0 → floop-1.2.0}/src/floop/adapters.py +0 -0
  42. {floop-1.0.0 → floop-1.2.0}/src/floop/tokens.py +0 -0
  43. {floop-1.0.0 → floop-1.2.0}/src/floop.egg-info/dependency_links.txt +0 -0
  44. {floop-1.0.0 → floop-1.2.0}/src/floop.egg-info/entry_points.txt +0 -0
  45. {floop-1.0.0 → floop-1.2.0}/src/floop.egg-info/requires.txt +0 -0
  46. {floop-1.0.0 → floop-1.2.0}/src/floop.egg-info/top_level.txt +0 -0
  47. {floop-1.0.0 → floop-1.2.0}/tests/__init__.py +0 -0
  48. {floop-1.0.0 → floop-1.2.0}/tests/test_tokens.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: floop
3
- Version: 1.0.0
3
+ Version: 1.2.0
4
4
  Summary: AI-native prototype quality toolkit — Agent Skill + review workflow CLI
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -0,0 +1,86 @@
1
+ # Command Reference
2
+
3
+ ### Project
4
+
5
+ ```bash
6
+ floop init # Create .floop/ directory structure
7
+ floop enable <agent> # Install skills into AI agent
8
+ ```
9
+
10
+ ### Design Tokens
11
+
12
+ ```bash
13
+ floop token init # Generate global/semantic/component.tokens.json templates
14
+ floop token validate # Validate W3C DTCG format + cross-references
15
+ floop token view # Generate design-tokens.html + tokens.css
16
+ ```
17
+
18
+ ### Prototype Artifacts
19
+
20
+ ```bash
21
+ floop prd init/validate # .floop/prd.md — Product Requirements Document
22
+ floop sitemap init/validate # .floop/sitemap.md — Page structure
23
+ floop prototype init # Generate journey-map.csv from sitemap.md
24
+ floop prototype validate # Check HTML files mapped + domains in sitemap
25
+ floop component init/validate # .floop/components.yaml — Component library
26
+ ```
27
+
28
+ ### Quality
29
+
30
+ ```bash
31
+ floop journey check <file> # Backward-check a journey HTML:
32
+ # • head links (tokens.css, components.js)
33
+ # • token references (var(--x) → *.tokens.json)
34
+ # • component coverage (unused components)
35
+ # • raw tag detection (bare <button> without component wiring)
36
+ ```
37
+
38
+ ### Versions
39
+
40
+ ```bash
41
+ floop version create <name> # Snapshot build/ → .floop/versions/<name>/
42
+ floop version list # List all saved versions
43
+ ```
44
+
45
+ ### Review
46
+
47
+ ```bash
48
+ floop review set # Step 1: configure server/API key/project key
49
+ floop review --version <name> # Upload a saved version to floop-server
50
+ floop review --server-url <url> --project-key <key> # Configure SaaS/self-host target
51
+ floop review --project-key <key> --api-key flp_... # CLI values are saved to .floop/floop.env
52
+ floop feedback # Fetch comments for the latest uploaded version
53
+ floop feedback --version <name> --json-output # Fetch comments for a specific version
54
+ floop resolve <comment-id> # Mark a comment as resolved after fixing it
55
+ floop resolve <comment-id> --status in_review # Move a comment back to in-review/open/resolved
56
+ ```
57
+
58
+ Use review in two steps:
59
+
60
+ 1. `floop review set` creates or updates `.floop/floop.env`, validates the API key by listing projects, and writes `FLOOP_PROJECT_KEY` by selecting or creating a project.
61
+ 2. `floop review --version <name>` checks the saved version/build and uploads it.
62
+
63
+ `floop review` reads `.floop/floop.env` first. If required values are missing, it creates or updates this template and asks you to run `floop review set`:
64
+
65
+ ```env
66
+ FLOOP_SERVER_URL=https://floop-server.vercel.app
67
+ FLOOP_PROJECT_KEY=proj_...
68
+ FLOOP_API_KEY=flp_...
69
+ ```
70
+
71
+ Missing setup exits successfully with `status: setup_required` in JSON mode so Agents can read the next action. Treat it as incomplete setup, not a successful upload; a real upload result includes `shareUrl`.
72
+
73
+ The file is added to `.floop/.gitignore` because it stores the API key.
74
+
75
+ `floop feedback` reads comments from the latest uploaded version by default. After addressing a comment, use `floop resolve <comment-id>` to update the comment status on floop-server. Valid statuses are `open`, `in_review`, and `resolved`.
76
+
77
+ `floop preview` renders its navigation shell at runtime and does not write
78
+ `.floop/build/index.html`, so `floop review` uploads only real build artifacts.
79
+
80
+ ### Preview
81
+
82
+ ```bash
83
+ floop preview # Serve .floop/ locally (trunk)
84
+ floop preview --version <name> # Serve a named version snapshot
85
+ floop preview --port 8080 # Custom port
86
+ ```
@@ -0,0 +1,8 @@
1
+ """floop — AI-native prototype quality toolkit."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("floop")
7
+ except PackageNotFoundError: # pragma: no cover - source tree without install metadata
8
+ __version__ = "0.0.0"