Files
bot/apps/macos/Package.swift
zeekay 08582cc303 Rebrand OpenClaw → Hanzo Bot across entire codebase
Complete rename of all OpenClaw/OPENCLAW/openclaw references to
Hanzo Bot/BOT/bot naming convention:

- Env vars: OPENCLAW_* → BOT_* (18 patterns)
- Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json
- Packages: @openclaw/* → @hanzo/bot-*
- Domains: openclaw.ai → hanzo.bot
- Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot
- mDNS: _openclaw-gw._tcp → _bot-gw._tcp
- Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES
- CI: docker-release.yml adds :latest tag on main branch
2026-02-11 11:13:08 -08:00

93 lines
3.5 KiB
Swift

// swift-tools-version: 6.2
// Package manifest for the HanzoBot macOS companion (menu bar app + IPC library).
import PackageDescription
let package = Package(
name: "HanzoBot",
platforms: [
.macOS(.v15),
],
products: [
.library(name: "BotIPC", targets: ["BotIPC"]),
.library(name: "BotDiscovery", targets: ["BotDiscovery"]),
.executable(name: "HanzoBot", targets: ["HanzoBot"]),
.executable(name: "hanzo-bot-mac", targets: ["BotMacCLI"]),
],
dependencies: [
.package(url: "https://github.com/orchetect/MenuBarExtraAccess", exact: "1.2.2"),
.package(url: "https://github.com/swiftlang/swift-subprocess.git", from: "0.1.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.8.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.8.1"),
.package(url: "https://github.com/steipete/Peekaboo.git", branch: "main"),
.package(path: "../shared/BotKit"),
.package(path: "../../Swabble"),
],
targets: [
.target(
name: "BotIPC",
dependencies: [],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.target(
name: "BotDiscovery",
dependencies: [
.product(name: "BotKit", package: "BotKit"),
],
path: "Sources/BotDiscovery",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.executableTarget(
name: "HanzoBot",
dependencies: [
"BotIPC",
"BotDiscovery",
.product(name: "BotKit", package: "BotKit"),
.product(name: "BotChatUI", package: "BotKit"),
.product(name: "HanzoBotProtocol", package: "BotKit"),
.product(name: "SwabbleKit", package: "swabble"),
.product(name: "MenuBarExtraAccess", package: "MenuBarExtraAccess"),
.product(name: "Subprocess", package: "swift-subprocess"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Sparkle", package: "Sparkle"),
.product(name: "PeekabooBridge", package: "Peekaboo"),
.product(name: "PeekabooAutomationKit", package: "Peekaboo"),
],
exclude: [
"Resources/Info.plist",
],
resources: [
.copy("Resources/HanzoBot.icns"),
.copy("Resources/DeviceModels"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.executableTarget(
name: "BotMacCLI",
dependencies: [
"BotDiscovery",
.product(name: "BotKit", package: "BotKit"),
.product(name: "HanzoBotProtocol", package: "BotKit"),
],
path: "Sources/BotMacCLI",
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
]),
.testTarget(
name: "BotIPCTests",
dependencies: [
"BotIPC",
"HanzoBot",
"BotDiscovery",
.product(name: "HanzoBotProtocol", package: "BotKit"),
.product(name: "SwabbleKit", package: "swabble"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency"),
.enableExperimentalFeature("SwiftTesting"),
]),
])