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
10 changes: 10 additions & 0 deletions .github/workflows/macos-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@ jobs:
version: "0.13.0"
python-version: "3.13"
- name: Swift transport regressions and native build
env:
SUPERQODE_FACTORY_PREVIEW_DIR: ${{ runner.temp }}/factory-previews
run: |
echo "::add-matcher::.github/matchers/swift.json"
set -o pipefail
swift test --build-system native --package-path apps/macos -c release 2>&1 | tee "$RUNNER_TEMP/superqode-swift-tests.log"
- name: Upload Factory native previews
if: always()
uses: actions/upload-artifact@v4
with:
name: factory-native-previews
path: ${{ runner.temp }}/factory-previews/*.png
if-no-files-found: ignore
- name: Report native test failures in check annotations
if: failure()
run: |
Expand Down Expand Up @@ -171,6 +180,7 @@ jobs:
with:
name: native-smoke-report
path: |
${{ runner.temp }}/factory-previews/*.png
apps/macos/artifacts/smoke-report.json
apps/macos/artifacts/navigation-main-thread-sample.txt
apps/macos/artifacts/native-app-stderr.log
Expand Down
11 changes: 10 additions & 1 deletion apps/macos/BETA-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# SuperQode for macOS public beta 0.5.2
# SuperQode for macOS public beta 0.5.3

Version 0.5.3 (build 60) bundles Python engine 2.33.3.

- Factory Describe now opens with a focused, five-step journey: Describe, Connect, Review, Run and Verify. An interactive map shows your location and evidence-based milestones; detailed setup and all workflow starters remain available under Advanced setup.
- Added **Watch a Factory work**, an interactive presentation available from Welcome and Factory Studio without a project or model connection. Play, pause, step back or restart a checkout-total repair, and approve the demo's human-review step before the illustrated verification continues.
- Presentation mode stays labelled **Scripted demo**, makes no model calls, changes no files and creates no quality record or release authority. Its final step can create the existing real sample for an actual agent trial.
- Added animated transitions, active-step feedback, keyboard demo controls and Reduce Motion support. The progress strip no longer duplicates the guided Describe map.

## 0.5.2 (build 59)

Version 0.5.2 (build 59) bundles Python engine 2.33.3.

Expand Down
19 changes: 19 additions & 0 deletions apps/macos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ ACP session after setup exits successfully.

On the welcome guide, **Build your factory** opens Factory Studio for the project you already have open. With no project open, it asks you to choose a folder first.

## Guided Factory setup and presentation demo

Factory Studio's Describe page shows one step at a time: Describe, Connect,
Review, Run and Verify. Use the map to revisit a step. Model selection, source
review, protected acceptance, worker execution and release decisions keep their
existing engine contracts. Advanced setup contains the detailed model controls,
local draft recovery and all workflow starters.

Choose **Play demo** from Welcome, or **Demo** in Factory Studio, to present the
checkout-total Factory without opening a repository or connecting a model.
Use Play/Pause, Next, Back and Restart; Left/Right arrows step through the story
and Escape closes it. Playback stops at Human review until you choose **Approve
demo repair**. Motion respects the macOS Reduce Motion setting, and playback
pauses when the window loses focus.

This is a scripted illustration with zero model calls and zero file changes.
Its results do not create SuperGauge evidence or authorize a release. At the end,
you can explicitly create a disposable real sample and run a normal agent trial.

## Start coding

1. Open the DMG, drag SuperQode to Applications and launch it from Applications.
Expand Down
2 changes: 2 additions & 0 deletions apps/macos/Sources/SuperQode/FactoryDemoStartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import AppKit

/// A new sample directory only. Creation never calls a model or starts a worker.
struct FactoryDemoStartView: View {
var onCreated: (() -> Void)? = nil
@EnvironmentObject private var app: Workspace
@State private var creating = false
@State private var createdPath = ""
Expand All @@ -28,6 +29,7 @@ struct FactoryDemoStartView: View {
guard !createdPath.isEmpty else { throw EngineError(message: "The sample directory was not returned.") }
if app.projectID == project, app.section == section, app.showWelcome == welcome {
try await app.open(createdPath, landing: .factory)
onCreated?()
}
} catch { failure = error.localizedDescription }
}
Expand Down
59 changes: 59 additions & 0 deletions apps/macos/Sources/SuperQode/FactoryFlowMap.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import SwiftUI

struct FactoryFlowNode: Identifiable {
let id: Int
let title: String
let symbol: String
let completed: Bool
}

/// The selected node is a page, not a claim that its work has completed.
struct FactoryFlowMap: View {
let nodes: [FactoryFlowNode]
let selection: Int
var working = false
var enabled = true
var onSelect: ((Int) -> Void)?
@Environment(\.accessibilityReduceMotion) private var reduceMotion

var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 8) {
ForEach(nodes) { node in
if node.id != nodes.first?.id {
Image(systemName: "chevron.right").font(.caption2).foregroundStyle(.tertiary)
}
Button { onSelect?(node.id) } label: {
VStack(spacing: 6) {
ZStack {
RoundedRectangle(cornerRadius: 16)
.fill(node.id == selection ? Brand.purple.opacity(0.14) : Color.primary.opacity(0.035))
RoundedRectangle(cornerRadius: 16)
.strokeBorder(node.id == selection ? Brand.purple.opacity(0.65) : Color.primary.opacity(0.08), lineWidth: node.id == selection ? 2 : 1)
Image(systemName: node.completed ? "checkmark" : node.symbol)
.font(.system(size: 21, weight: .medium))
.foregroundStyle(node.completed ? Color.green : node.id == selection ? Brand.purple : Color.secondary)
.symbolEffect(.pulse, options: .repeating, isActive: working && node.id == selection && !reduceMotion)
}.frame(width: 52, height: 52)
Text(node.title).font(.caption.weight(node.id == selection ? .semibold : .regular))
.foregroundStyle(node.id == selection ? Color.primary : Color.secondary)
}.frame(minWidth: 76).padding(.vertical, 4)
.contentShape(Rectangle())
}.buttonStyle(FactoryFlowButtonStyle())
.disabled(onSelect == nil || !enabled)
.accessibilityLabel(node.title + (node.completed ? ", completed" : node.id == selection ? ", selected" : ""))
}
}.padding(.horizontal, 2)
}
.animation(reduceMotion ? nil : .spring(response: 0.35, dampingFraction: 0.8), value: selection)
.accessibilityIdentifier("factory.flow.map")
}
}

private struct FactoryFlowButtonStyle: ButtonStyle {
@Environment(\.accessibilityReduceMotion) private var reduceMotion
func makeBody(configuration: Configuration) -> some View {
configuration.label.scaleEffect(configuration.isPressed && !reduceMotion ? 0.96 : 1)
.animation(reduceMotion ? nil : .spring(response: 0.22, dampingFraction: 0.7), value: configuration.isPressed)
}
}
Loading
Loading