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
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "maple",
"private": true,
"version": "1.1.7",
"version": "1.1.8",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

package.json version set to 1.1.8 — aligned with backend and Tauri config.

Add a simple CI check to keep these versions in sync and catch strays.

Run this to verify versions are synchronized and to detect stale 1.1.7 references:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

PJ=frontend/package.json
CT=frontend/src-tauri/Cargo.toml
TC=frontend/src-tauri/tauri.conf.json

pkg_ver=$(jq -r '.version' "$PJ")
tauri_ver=$(jq -r '.version' "$TC")
cargo_ver=$(awk ' /^\[package\]/{p=1; next} /^\[/{p=0} p && $0 ~ /^version *=/ { match($0, /"([^"]+)"/, m); if (m[1]!="") { print m[1]; exit } }' "$CT")

echo "package.json:       $pkg_ver"
echo "tauri.conf.json:    $tauri_ver"
echo "Cargo.toml (pkg):   $cargo_ver"

ok=1
if [ "$pkg_ver" != "$tauri_ver" ] || [ "$pkg_ver" != "$cargo_ver" ]; then
  echo "ERROR: Versions are not in sync." >&2
  ok=0
fi

echo "Scanning for stale version strings..."
rg -n --hidden -g '!.git' -e '1\.1\.7' || echo "No stale 1.1.7 references found."

if [ $ok -eq 0 ]; then exit 1; fi
echo "Version sync check passed."

Length of output: 1422


Ensure Application Version Sync in CI

The package.json, tauri.conf.json, and Cargo.toml package versions are all correctly bumped to 1.1.8. To prevent drift (and avoid noisy lockfile entries), add a CI check that:

  • Verifies these three version fields match
  • Fails if any still reference the prior version (e.g. 1.1.7)
  • Skips lockfiles like bun.lock/Cargo.lock

Example script to include in your CI pipeline:

#!/usr/bin/env bash
set -euo pipefail

PJ="frontend/package.json"
TC="frontend/src-tauri/tauri.conf.json"
CT="frontend/src-tauri/Cargo.toml"

pkg_ver=$(jq -r .version "$PJ")
tauri_ver=$(jq -r .version "$TC")
cargo_ver=$(
  awk '
    /^\[package\]/{p=1; next}
    /^\[/{p=0}
    p && $0 ~ /^version *=/ {
      match($0, /"([^"]+)"/, m)
      if (m[1]!="") { print m[1]; exit }
    }
  ' "$CT"
)

if [[ "$pkg_ver" != "$tauri_ver" ]] || [[ "$pkg_ver" != "$cargo_ver" ]]; then
  echo "🚨 Version mismatch: package.json ($pkg_ver), tauri.conf.json ($tauri_ver), Cargo.toml ($cargo_ver)" >&2
  exit 1
fi

# Check only application files for stale references
if rg -q -g 'frontend/package.json' \
         -g 'frontend/src-tauri/tauri.conf.json' \
         -g 'frontend/src-tauri/Cargo.toml' \
         -e '1\.1\.7'; then
  echo "🚨 Stale '1.1.7' reference found in application files" >&2
  exit 1
fi

echo "✅ Application versions are in sync (v$pkg_ver)."

Implementing this will catch any future version drift without flagging dependency lockfiles.

🤖 Prompt for AI Agents
In frontend/package.json at line 4, the version is updated to 1.1.8 but there is
no CI check to ensure version consistency across package.json, tauri.conf.json,
and Cargo.toml. To fix this, add a CI script that extracts the version from
these three files, compares them, and fails if any mismatch is found or if any
still reference the old version 1.1.7. The script should skip lockfiles like
bun.lock and Cargo.lock to avoid false positives. Integrate this script into the
CI pipeline to enforce version synchronization and prevent drift.

"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "maple"
version = "1.1.7"
version = "1.1.8"
description = "Maple AI"
authors = ["tony@opensecret.cloud"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src-tauri/gen/apple/maple_iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.7</string>
<string>1.1.8</string>
<key>CFBundleVersion</key>
<string>1.1.7</string>
<string>1.1.8</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src-tauri/gen/apple/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ targets:
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
CFBundleShortVersionString: 1.1.7
CFBundleVersion: 1.1.7
CFBundleShortVersionString: 1.1.8
CFBundleVersion: 1.1.8
entitlements:
path: maple_iOS/maple_iOS.entitlements
scheme:
Expand Down
2 changes: 1 addition & 1 deletion frontend/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Maple",
"version": "1.1.7",
"version": "1.1.8",
"identifier": "cloud.opensecret.maple",
"build": {
"frontendDist": "../dist",
Expand Down
Loading