mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
93 lines
3.5 KiB
Swift
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"),
|
|
]),
|
|
])
|