-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
98 lines (81 loc) · 2.56 KB
/
Copy pathTaskfile.yml
File metadata and controls
98 lines (81 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Taskfile for AnnotKit. Requires go-task (brew install go-task).
# `task` or `task --list` shows all commands.
version: '3'
tasks:
default:
cmds:
- task --list
silent: true
build:
desc: Build all package targets (debug)
cmds:
- swift build
test:
desc: Run the full test suite
cmds:
- swift test
demo:
desc: Boot the interactive demo app (overlay mounted; for practice and recordings)
cmds:
- swift run AnnotKitDemo
probe:
desc: Run the live macOS AX smoke probe (off-screen window)
cmds:
- swift run AnnotKitProbe
envprobe:
desc: Run one env-configured embedding host end to end (writes into .build/envprobe)
cmds:
- mkdir -p .build/envprobe
- >-
ANNOTKIT_NOTES_MD=.build/envprobe/notes.md
ANNOTKIT_NOTES=.build/envprobe/notes.json
ANNOTKIT_EVENTS=.build/envprobe/events.jsonl
ANNOTKIT_ROUTE=Settings/Models
ANNOTKIT_CONTEXT_PERSONA=ada
ANNOTKIT_CONTEXT="appearance=dark,build=local"
swift run AnnotKitEnvProbe
- cat .build/envprobe/notes.md
mcp:
desc: Run the MCP server over a notes file — `task mcp -- path/to/ANNOTKIT_NOTES.json`
cmds:
- swift run annotkit-mcp {{.CLI_ARGS | default "./ANNOTKIT_NOTES.json"}}
clean:
desc: Remove Swift build artifacts (.build)
cmds:
- swift package clean
web:dev:
desc: Run the landing page dev server (UI only; /api/subscribe is not mounted)
cmds:
- npm --prefix web run dev
web:dev:functions:
desc: Run the landing page behind wrangler so /api/subscribe works locally
cmds:
- npm --prefix web run dev:functions
web:build:
desc: Typecheck and build the landing page into web/dist
cmds:
- npm --prefix web run build
web:test:
desc: Run the landing page test suite (vitest)
cmds:
- npm --prefix web run test
web:contrast:
desc: Print the WCAG contrast table for the landing page design tokens
cmds:
- node web/scripts/contrast.mjs
web:responsive:
desc: Check the landing page at 320/375/414/768/1280px (needs web/dist)
cmds:
- npm --prefix web run responsive
web:og:
desc: Re-render the landing page OpenGraph card (web/public/og.png)
cmds:
- npm --prefix web run og
web:deploy:
desc: Build and deploy the landing page to Cloudflare Pages PRODUCTION
cmds:
- npm --prefix web run deploy
web:deploy:preview:
desc: Build and deploy the landing page to a Cloudflare Pages preview URL
cmds:
- npm --prefix web run deploy:preview