8000 Local network access authorization for SpeziLLMFog by philippzagar · Pull Request #112 · StanfordSpezi/SpeziLLM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Local network access authorization for SpeziLLMFog #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 27, 2025

Conversation

philippzagar
Copy link
Member
@philippzagar philippzagar commented Apr 25, 2025

Local network access authorization for SpeziLLMFog

♻️ Current situation & Problem

Since iOS 18, Bonjour mDNS service discovery for http and https requires users to grant access to the local network.
Right now, the OS popup is triggered upon the first chat message that is dispatched to a fog node in the network, which fails as the authorization is not immediately granted.

⚙️ Release Notes

  • Add authorization view for local network access in SpeziLLMFog LLMFogDiscoveryAuthorizationView

📚 Documentation

Added in-line documentation for all added components.

✅ Testing

Very hard to test in CI, tested manually on device.

📝 Code of Conduct & Contributing Guidelines

By creating and submitting this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@philippzagar philippzagar added the enhancement New feature or request label Apr 25, 2025
@philippzagar philippzagar self-assigned this Apr 25, 2025
Copy link
codecov bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.49%. Comparing base (d9bdabb) to head (9ad02ba).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #112   +/-   ##
=======================================
  Coverage   43.49%   43.49%           
=======================================
  Files          67       67           
  Lines         476      476           
=======================================
  Hits          207      207           
  Misses        269      269           
Files with missing lines Coverage Δ
Sources/SpeziLLM/Views/LLMChatView.swift 100.00% <ø> (ø)
...urces/SpeziLLMLocal/LLMLocalSession+Generate.swift 0.00% <ø> (ø)
Sources/SpeziLLMLocal/LLMLocalSession+Setup.swift 0.00% <ø> (ø)
Sources/SpeziLLMLocal/LLMLocalSession.swift 0.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9bdabb...9ad02ba. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@philippzagar philippzagar changed the title Improve local network access authorization for SpeziLLMFog Local network access authorization for SpeziLLMFog Apr 27, 2025
@philippzagar philippzagar marked this pull request as ready for review April 27, 2025 10:50
@philippzagar philippzagar requested review from LeonNissen, Copilot, PSchmiedmayer and RealLast and removed request for Copilot April 27, 2025 12:27
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces local network access authorization for SpeziLLMFog by adding the onboarding view for fog node discovery and updating related documentation and tests. Key changes include:

  • A new LLMFogDiscoveryAuthorizationView and its supporting requester and error handling components.
  • Updates in onboarding flows and adjustments in conditional compilation for simulator vs. non-simulator behavior.
  • Documentation updates to guide developers on setting up Info.plist entries for local network access.

Reviewed Changes

Copilot reviewed 27 out of 30 changed files in this pull request and generated no comments.

File Description
Tests/UITests/TestApp/LLMFog/Onboarding/* Added onboarding flows for local network access authorization
Sources/SpeziLLMLocal/* Updated conditional compilation for simulator and non-simulator setups
Sources/SpeziLLMFog/DisoveryAuthorization/* New components to request and handle local network authorization
README.md Documentation updates guiding Info.plist configuration for Bonjour discovery
Files not reviewed (3)
  • Sources/SpeziLLMFog/Resources/Localizable.xcstrings: Language not supported
  • Tests/UITests/TestApp/Info.plist: Language not supported
  • Tests/UITests/TestApp/Info.plist.license: Language not supported
Comments suppressed due to low confidence (1)

Sources/SpeziLLMFog/DisoveryAuthorization/LLMFogDiscoveryAuthoriationView+Requester.swift:1

  • The file name appears to have a typo. Consider renaming 'LLMFogDiscoveryAuthoriationView+Requester.swift' to 'LLMFogDiscoveryAuthorizationView+Requester.swift' for consistency.
LLMFogDiscoveryAuthoriationView+Requester.swift

Copy link
Member
@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great; thank you @philippzagar!

@philippzagar philippzagar merged commit 64ea041 into main Apr 27, 2025
31 of 34 checks passed
@philippzagar philippzagar deleted the feat/improve-fog-generation branch April 27, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0