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
62 lines
1.9 KiB
Swift
62 lines
1.9 KiB
Swift
// swift-tools-version: 6.2
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "BotKit",
|
|
platforms: [
|
|
.iOS(.v18),
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(name: "HanzoBotProtocol", targets: ["HanzoBotProtocol"]),
|
|
.library(name: "BotKit", targets: ["BotKit"]),
|
|
.library(name: "BotChatUI", targets: ["BotChatUI"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.0"),
|
|
.package(url: "https://github.com/gonzalezreal/textual", exact: "0.3.1"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "HanzoBotProtocol",
|
|
path: "Sources/HanzoBotProtocol",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "BotKit",
|
|
dependencies: [
|
|
"HanzoBotProtocol",
|
|
.product(name: "ElevenLabsKit", package: "ElevenLabsKit"),
|
|
],
|
|
path: "Sources/BotKit",
|
|
resources: [
|
|
.process("Resources"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "BotChatUI",
|
|
dependencies: [
|
|
"BotKit",
|
|
.product(
|
|
name: "Textual",
|
|
package: "textual",
|
|
condition: .when(platforms: [.macOS, .iOS])),
|
|
],
|
|
path: "Sources/BotChatUI",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.testTarget(
|
|
name: "BotKitTests",
|
|
dependencies: ["BotKit", "BotChatUI"],
|
|
path: "Tests/BotKitTests",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
])
|