diff --git a/apps/omega-mac/.gitignore b/apps/omega-mac/.gitignore new file mode 100644 index 0000000..24e5b0a --- /dev/null +++ b/apps/omega-mac/.gitignore @@ -0,0 +1 @@ +.build diff --git a/apps/omega-mac/OmegaMac/Services/OpenAITypes.swift b/apps/omega-mac/OmegaMac/Services/OpenAITypes.swift index 522c75c..aca5a36 100644 --- a/apps/omega-mac/OmegaMac/Services/OpenAITypes.swift +++ b/apps/omega-mac/OmegaMac/Services/OpenAITypes.swift @@ -89,7 +89,7 @@ struct JSONSchemaProperty: Encodable { } } -enum JSONSchemaAdditional: Encodable { +indirect enum JSONSchemaAdditional: Encodable { case bool(Bool) case typed(JSONSchemaProperty) diff --git a/apps/omega-mac/OmegaMac/Views/Chat/ChatInputBar.swift b/apps/omega-mac/OmegaMac/Views/Chat/ChatInputBar.swift index 8697733..61d0f42 100644 --- a/apps/omega-mac/OmegaMac/Views/Chat/ChatInputBar.swift +++ b/apps/omega-mac/OmegaMac/Views/Chat/ChatInputBar.swift @@ -32,7 +32,7 @@ struct ChatInputBar: View { Button(action: onSend) { Image(systemName: "arrow.up.circle.fill") .font(.title2) - .foregroundStyle(canSend ? .accent : .tertiary) + .foregroundStyle(canSend ? Color.accentColor : Color.secondary) } .buttonStyle(.borderless) .disabled(!canSend) diff --git a/apps/omega-mac/OmegaMac/Views/Chat/MessageBubble.swift b/apps/omega-mac/OmegaMac/Views/Chat/MessageBubble.swift index 0e61f81..c13f0bc 100644 --- a/apps/omega-mac/OmegaMac/Views/Chat/MessageBubble.swift +++ b/apps/omega-mac/OmegaMac/Views/Chat/MessageBubble.swift @@ -23,7 +23,7 @@ struct MessageBubble: View { .font(.body) .foregroundStyle(.white) .padding(12) - .background(.accent) + .background(Color.accentColor) .clipShape(RoundedRectangle(cornerRadius: 12)) .textSelection(.enabled) } diff --git a/apps/omega-mac/OmegaMac/Views/Chat/MessageList.swift b/apps/omega-mac/OmegaMac/Views/Chat/MessageList.swift index 5caba91..d6f9b42 100644 --- a/apps/omega-mac/OmegaMac/Views/Chat/MessageList.swift +++ b/apps/omega-mac/OmegaMac/Views/Chat/MessageList.swift @@ -71,7 +71,7 @@ struct MessageList: View { if isStreaming { Rectangle() - .fill(.accent) + .fill(Color.accentColor) .frame(width: 2, height: 16) .opacity(0.8) .modifier(PulseAnimation()) diff --git a/apps/omega-mac/OmegaMac/Views/Chat/StreamingIndicator.swift b/apps/omega-mac/OmegaMac/Views/Chat/StreamingIndicator.swift index 2ee907e..db71b7c 100644 --- a/apps/omega-mac/OmegaMac/Views/Chat/StreamingIndicator.swift +++ b/apps/omega-mac/OmegaMac/Views/Chat/StreamingIndicator.swift @@ -7,7 +7,7 @@ struct StreamingIndicator: View { var body: some View { HStack(spacing: 6) { Image(systemName: "sparkles") - .foregroundStyle(.accent) + .foregroundStyle(Color.accentColor) .font(.caption) Text("Omega is thinking" + String(repeating: ".", count: dotCount)) diff --git a/apps/omega-mac/OmegaMac/Views/Shared/EmptyStateView.swift b/apps/omega-mac/OmegaMac/Views/Shared/EmptyStateView.swift index 61338e0..1b4533d 100644 --- a/apps/omega-mac/OmegaMac/Views/Shared/EmptyStateView.swift +++ b/apps/omega-mac/OmegaMac/Views/Shared/EmptyStateView.swift @@ -7,7 +7,7 @@ struct EmptyStateView: View { VStack(spacing: 20) { Image(systemName: "star.circle.fill") .font(.system(size: 56)) - .foregroundStyle(.accent) + .foregroundStyle(Color.accentColor) .symbolEffect(.pulse, options: .repeating) Text("Omega") @@ -43,7 +43,7 @@ struct EmptyStateView: View { HStack(spacing: 10) { Image(systemName: icon) .frame(width: 20) - .foregroundStyle(.accent) + .foregroundStyle(Color.accentColor) Text(text) .font(.callout) .foregroundStyle(.secondary) diff --git a/apps/omega-mac/Package.resolved b/apps/omega-mac/Package.resolved new file mode 100644 index 0000000..807bab3 --- /dev/null +++ b/apps/omega-mac/Package.resolved @@ -0,0 +1,33 @@ +{ + "originHash" : "4ab20d6f9b3760314be6c8d471432a312fe8c0dbb4f3f28d71f6a6e9d6f6262d", + "pins" : [ + { + "identity" : "networkimage", + "kind" : "remoteSourceControl", + "location" : "https://github.com/gonzalezreal/NetworkImage", + "state" : { + "revision" : "2849f5323265386e200484b0d0f896e73c3411b9", + "version" : "6.0.1" + } + }, + { + "identity" : "swift-cmark", + "kind" : "remoteSourceControl", + "location" : "https://github.com/swiftlang/swift-cmark", + "state" : { + "revision" : "5d9bdaa4228b381639fff09403e39a04926e2dbe", + "version" : "0.7.1" + } + }, + { + "identity" : "swift-markdown-ui", + "kind" : "remoteSourceControl", + "location" : "https://github.com/gonzalezreal/swift-markdown-ui", + "state" : { + "revision" : "5f613358148239d0292c0cef674a3c2314737f9e", + "version" : "2.4.1" + } + } + ], + "version" : 3 +}