Skip to content

Commit 45191f4

Browse files
committed
Initial open source preview
0 parents  commit 45191f4

72 files changed

Lines changed: 6686 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @cmagnussen
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Report something broken in the macOS preview
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
## What happened?
10+
11+
12+
## What did you expect?
13+
14+
15+
## Steps to reproduce
16+
17+
1.
18+
2.
19+
3.
20+
21+
## Environment
22+
23+
- macOS version:
24+
- Mac model/chip:
25+
- Xcode version:
26+
- Did this happen before or after entering an OpenAI API key?:
27+
28+
## Notes
29+
30+
Do not paste API keys, private recordings, confidential transcripts, or screenshots with sensitive content.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the preview
4+
title: ""
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
## What would you like?
10+
11+
12+
## Why does it matter?
13+
14+
15+
## Possible approach
16+
17+
18+
## Privacy or security impact
19+
20+
Would this send data to a new service, store more local data, or change how API keys are handled?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## What changed?
2+
3+
4+
## Why?
5+
6+
7+
## How did you test it?
8+
9+
10+
## AI assistance
11+
12+
Did you use AI-assisted coding tools? If yes, briefly mention where.
13+
14+
## Checklist
15+
16+
- [ ] I ran `./build.sh --debug` or explained why not.
17+
- [ ] I did not commit API keys, tokens, private recordings, or confidential transcripts.
18+
- [ ] I considered whether this changes privacy, security, or data flow.
19+
- [ ] I kept the change focused on the macOS preview scope.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: weekly

.github/secret-scan-patterns.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Secret hygiene patterns used by .github/workflows/ci.yml.
2+
# One extended-regex per line. Lines starting with `#` and blank lines are ignored.
3+
# Keep this file out of the scan via --exclude in the workflow.
4+
5+
# OpenAI keys and config tokens
6+
sk-[A-Za-z0-9_-]{20,}
7+
OPENAI_API_KEY[[:space:]]*=
8+
APP_SECRET[[:space:]]*=
9+
10+
# AWS access keys
11+
AKIA[0-9A-Z]{16}
12+
ASIA[0-9A-Z]{16}
13+
14+
# GitHub tokens
15+
ghp_[A-Za-z0-9]{36}
16+
ghs_[A-Za-z0-9]{36}
17+
ghu_[A-Za-z0-9]{36}
18+
gho_[A-Za-z0-9]{36}
19+
github_pat_[A-Za-z0-9_]{20,}
20+
21+
# Slack tokens and webhooks
22+
xox[abprs]-[A-Za-z0-9-]{10,}
23+
hooks\.slack\.com/services/
24+
25+
# Discord webhooks
26+
discord(app)?\.com/api/webhooks/
27+
28+
# Google API keys
29+
AIza[0-9A-Za-z_-]{35}
30+
31+
# Generic private key blocks
32+
-----BEGIN [A-Z ]*PRIVATE KEY-----

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-macos:
14+
name: Build macOS app
15+
runs-on: macos-14
16+
timeout-minutes: 30
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Secret hygiene scan
23+
run: |
24+
patterns_file=.github/secret-scan-patterns.txt
25+
if [ ! -f "$patterns_file" ]; then
26+
echo "Missing $patterns_file"
27+
exit 1
28+
fi
29+
pattern="$(grep -vE '^[[:space:]]*(#|$)' "$patterns_file" | paste -sd'|' -)"
30+
if [ -z "$pattern" ]; then
31+
echo "No patterns loaded from $patterns_file"
32+
exit 1
33+
fi
34+
if grep -RInE \
35+
--exclude-dir=.git \
36+
--exclude=secret-scan-patterns.txt \
37+
"$pattern" .; then
38+
echo "Potential secret or private project reference found."
39+
exit 1
40+
fi
41+
42+
- name: Select Xcode
43+
run: sudo xcode-select -s /Applications/Xcode_16.2.app || sudo xcode-select -s /Applications/Xcode.app
44+
45+
- name: Install XcodeGen
46+
run: |
47+
if ! command -v xcodegen >/dev/null 2>&1; then
48+
brew install xcodegen
49+
fi
50+
51+
- name: Build
52+
run: ./build.sh --debug

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Xcode
2+
*.xcuserstate
3+
*.xcuserdatad/
4+
xcuserdata/
5+
*.xcodeproj/
6+
DerivedData/
7+
.derivedData*/
8+
build/
9+
*.xcarchive
10+
*.dSYM
11+
*.dSYM.zip
12+
13+
# macOS
14+
.DS_Store
15+
16+
# Local app artifacts
17+
Blitztext.app
18+
dist/
19+
models/
20+
*.mlmodel
21+
*.mlmodelc/
22+
*.mlpackage/
23+
24+
# Secrets and local config
25+
.env
26+
.env.*
27+
*.local
28+
Secrets.swift
29+
*.xcconfig
30+
31+
# Tooling
32+
node_modules/

0 commit comments

Comments
 (0)