Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .agents/skills/verify-quota-bar/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,4 @@ standard library. Invoke it through `uv run --no-project python`, as shown in
Launch and Doctor. `--help` lists its two commands. It deliberately wraps the
repository's native verifier rather than recreating its assertions.

Keep the feature map current with `/maintain-verification-skill` when app paths or
verification preconditions change.
Update the feature map when app paths or verification preconditions change.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Preconditions:
- **Import.** Choose `Import…`; confirm the file panel is `Import Usage Backup`, select the synthetic backup, and choose `Import`. Capture the result and changed saved-record count. Repeat import and verify no duplicate records are added.
- **Export.** With saved records present, choose `Export…` and save inside the evidence directory. Its suggested name is `QuotaBar-Backup-YYYY-MM-DD.sqlite`. Verify the file exists, is readable SQLite, passes a read-only integrity check, and contains the expected records; retain the file after cleanup.
- **Add/cancel.** Choose `Add host`, resolve field `SSH host or alias` (placeholder `Search hosts or type devbox`), type the isolated host, then choose `Cancel`; no host row should be added.
- **Add/sync.** Repeat and choose `Add`. Capture syncing followed by the host's recorded/new counts and copied bytes. Independently confirm the expected synthetic records reached the scratch database and mirrored logs stay under the owned scratch directory.
- **Add/sync.** Repeat and choose `Add`. Capture syncing followed by the host's record count, unique contribution, and remaining cache size. Confirm the expected synthetic records reached the scratch database and any retained logs are under the owned scratch directory.
- **Other sync entries.** Exercise `Sync now`, `Actions for <host>` → `Sync this host`, and `Retry` on a deliberately failed host separately. Each must complete or display an actionable failure.
- **Remove.** Choose `Actions for <host>` → `Stop syncing`; its source row disappears while saved records remain.

Expand Down
2 changes: 1 addition & 1 deletion .github/actionlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The repository's macOS 27 SDK runner is a custom runner label.
# GitHub hosts xcode-27, but actionlint does not yet recognize its label.
self-hosted-runner:
labels:
- xcode-27
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ updates:
- "*"
commit-message:
prefix: build
- package-ecosystem: npm
directory: /
schedule:
interval: monthly
commit-message:
prefix: build
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ jobs:
if: ${{ needs.changes.outputs.build == 'true' }}
run: make test

- name: Verify the offline usage report
if: ${{ needs.changes.outputs.build == 'true' && matrix.os == 'macos-15' }}
env:
CHROMIUM_PATH: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
HOMEBREW_NO_AUTO_UPDATE: "1"
run: |
set -euo pipefail
command -v fnm >/dev/null || brew install fnm
eval "$(fnm env --shell bash)"
fnm install
fnm use
corepack pnpm install --frozen-lockfile
make build
.build/debug/QuotaBar --dump-usage-report "$RUNNER_TEMP/report"
corepack pnpm run report:verify --file "$RUNNER_TEMP/report/usage-report.html" --output "$RUNNER_TEMP/report/checks"

# Release tags are permanent, so a broken packaging script must fail here, not on a tag.
- name: Package app
if: ${{ needs.changes.outputs.build == 'true' && matrix.os == 'xcode-27' }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
matrix:
include:
- language: swift
os: xcode-27
# Traced Swift extraction requires macOS and Xcode 26 or earlier.
os: macos-15
build-mode: manual
- language: javascript-typescript
os: ubuntu-24.04
Expand All @@ -48,9 +49,11 @@ jobs:
with:
persist-credentials: false

- name: Install pinned Rust toolchain for Swift linking
- name: Select the Swift analysis toolchain
if: ${{ matrix.language == 'swift' }}
run: bash Scripts/setup_rust_ci.sh
run: |
echo "DEVELOPER_DIR=/Applications/Xcode_16.4.app/Contents/Developer" >> "$GITHUB_ENV"
bash Scripts/setup_rust_ci.sh

- name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
Expand All @@ -61,7 +64,7 @@ jobs:
- name: Build Swift targets
if: ${{ matrix.language == 'swift' }}
# A fresh build lets CodeQL observe every target without running app tests.
run: Scripts/swift.sh build -c debug --scratch-path "$RUNNER_TEMP/codeql-build"
run: Scripts/swift.sh build -c debug --arch arm64 --scratch-path "$RUNNER_TEMP/codeql-build"

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Rust/**/target/
# Build output
build/
*.app

node_modules/

# macOS
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24.22.0
18 changes: 7 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,28 @@ let package = Package(
.target(
name: "QuotaBarCore",
dependencies: ["CQuotaBarRust"],
resources: [.copy("Resources/UsageReport"), .copy("Resources/Pricing")],
swiftSettings: [.swiftLanguageMode(.v5)]
resources: [.copy("Resources/UsageReport"), .copy("Resources/Pricing")]
),
// Menu bar UI, as a library so the test runner can drive it.
.target(
name: "QuotaBarApp",
dependencies: ["QuotaBarCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
dependencies: ["QuotaBarCore"]
),
// The app's entry point, and nothing else.
.executableTarget(
name: "QuotaBar",
dependencies: ["QuotaBarApp"],
swiftSettings: [.swiftLanguageMode(.v5)]
dependencies: ["QuotaBarApp"]
),
// Headless probe: prints what the providers return. Debugging aid, not shipped.
.executableTarget(
name: "QuotaBarProbe",
dependencies: ["QuotaBarCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
dependencies: ["QuotaBarCore"]
),
// Core and app regression checks use a plain assertion executable.
.executableTarget(
name: "QuotaBarTests",
dependencies: ["QuotaBarCore", "QuotaBarApp"],
swiftSettings: [.swiftLanguageMode(.v5)]
dependencies: ["QuotaBarCore", "QuotaBarApp"]
),
]
],
swiftLanguageModes: [.v5]
)
Loading
Loading