Repository navigation
Conversation
A new Ask page in the sidebar (⌘⇧A from the app menu and the menu bar item) for CONVERSATION_CONTRACT: conversations on the left, the thread on the right, a composer at the bottom. Every message starts one round; the reply is drawn as it is written from the round's Analysis event stream (assistant.delta), with the agent's current step under it, then the settled message — text, the notes it drew on, what the agent did — is read back from the conversation. A round still running when the page opens is picked up where it is. The backend refuses sending without the Pro `ai_chat` capability; the refusal is shown as is. - InkletPresentationKit: Conversation, ConversationMessage, citation, action, detail, page and send-result DTOs; status lines for the chat kernel's activity kinds (searching_notes with stats.matches, reading_note, creating_card, switching_display). - InkletAPI: conversations list / create / read / messages / delete, and sendMessage with an Idempotency-Key that keeps the backend's error code. - AskModel (owned by AppModel, cleared on sign-out) and AskView.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macOS half of
CONVERSATION_CONTRACT.md(inklet-sdk). Needs inklethq/backend#50 deployed (and inklethq/worker#21) before the page answers; until then sending is refused with the backend's error, shown in an alert.What it adds
assistant.delta, polled like the composer's runs), with the agent's current step under it (agent.activity), then the settled message — text, the notes it drew on, what the agent did — is read back from the conversation. A round still running when the page opens is picked up where it is.AnalysisEventDTO.displayTextknows the chat kernel's activity kinds.conversations,createConversation,conversation(id:),conversationMessages,deleteConversation,sendMessage(Idempotency-Key;reply_in_progress/plan_upgrade_requiredkeep their codes).AppModeland cleared on sign-out with everything else.Tests
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer xcrun swift test: 75 tests pass, includingConversationModelsTests(message decoding, open/closed states, the send result's reply handle, activity status lines).