Skip to content

Settings › AI: the TypeSafe Jev key and the Jev Workflows toggle - #45

Open
MasterYoav wants to merge 4 commits into
masterfrom
jev-ai-settings
Open

MasterYoav wants to merge 4 commits into
masterfrom
jev-ai-settings

Conversation

@MasterYoav

Copy link
Copy Markdown
Owner

Settings › AI (was Agents) with TypeSafe Jev (spec).

  • JevClient (XBotBrain): one POST to https://api.typesafe.ai/v1/systemone with yes/no, choice and score questions; injected transport; 401/422/429/529, offline and timeouts become sentences that never contain the key.
  • JevSettings (XBotCore): the key only in the Keychain (dev.xbot.jev); the app shows that one is saved and its length. Model (default jev-latest), Check ("Jev answered in N ms."), Remove.
  • Jev Workflows toggle, off by default; nothing calls Jev while it's off.
  • Docs: UI spec, security (new Keychain item, new outbound endpoint, what's sent to Jev).

Verified: tests pass (JevClientTests 15, JevSettingsTests 12); Settings › AI checked on screen. Not verified: a real call from the app (needs your key; XBOT_LIVE_JEV=1 live test is opt-in).

Questions (noul, choice, score), answers parsed from a real response,
401/422/429/529, offline and timeouts as sentences that never carry the key.
The Agents tab becomes AI. The key goes to the Keychain only (dev.xbot.jev),
shown as saved with its length; Check, Remove, model, and the toggle (user
defaults, off by default). Opt-in live test with XBOT_LIVE_JEV=1. Docs: UI spec,
security (new Keychain item and outbound endpoint).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant