eleven / ocho Public

Clone
git clone https://amadan.net/eleven/ocho

Plain git — no account needed to clone.

Download

Download this file

1import Foundation
2
3// 🤖 Loads the bundled conversation-script documents (Flows/<name>.json —
4// byte-derived copies of web/static/apps/<name>.flow.js, drift-gated by
5// test/flow.test.mjs) for the native flow interpreter (FlowEngine).
6public enum AppFlows {
7 public static func flow(_ name: String) -> FlowJSON? {
8 guard let url = Bundle.module.url(forResource: name, withExtension: "json", subdirectory: "Flows"),
9 let data = try? Data(contentsOf: url) else { return nil }
10 return FlowJSON.parse(data)
11 }
12}
13
14// 🤖 The brand mark for Eleven-the-guide's threads: the app icon (the purple
15// "11" tile — web parity: welcome.js wears /static/icon-192.png), bundled per
16// the each-surface-embeds-its-own-copy convention in CLAUDE.md. Eleven has no
17// gender and no face — the mark is the product's, worn where an avatar goes.
18public enum ElevenBrand {
19 public static let icon: PlatformImage? = {
20 guard let url = Bundle.module.url(forResource: "icon-192", withExtension: "png", subdirectory: "Icons"),
21 let data = try? Data(contentsOf: url) else { return nil }
22 return PlatformImage(data: data)
23 }()
24}
25