Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions .github/workflows/apfelkern-update-contract.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defaults:
jobs:
build:
runs-on: macos-26
timeout-minutes: 5
timeout-minutes: 10
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand All @@ -29,7 +29,9 @@ jobs:
ios/.packages
ios/build
!ios/build/Index.noindex
key: build-${{ runner.os }}-${{ hashFiles('ios/Crumble.xcodeproj/project.pbxproj', 'ios/Crumble.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}
# apfelkern is in the key so a contract update saves a fresh build instead of recompiling it on every run.
key: build-${{ runner.os }}-${{ hashFiles('ios/Crumble.xcodeproj/project.pbxproj', 'ios/Crumble.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved', 'apfelkern/Package.swift', 'apfelkern/Package.resolved', 'apfelkern/Sources/**') }}
restore-keys: build-${{ runner.os }}-
- run: ./scripts/build.sh
lint:
runs-on: macos-26
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Native macOS and iOS clients for Crumble and the Swift package they share.

```mermaid
flowchart LR
Contract["bot contract-vX.Y.Z\n(apfelkern/Contract)"] --> Apfelkern["apfelkern\nGenerated client, models, delivery & BotAvatar"]
Contract["bot contract\n(apfelkern/Contract)"] --> Apfelkern["apfelkern\nGenerated client, models, delivery & BotAvatar"]
Apfelkern --> macOS["macos\nCrumble for macOS"]
Apfelkern --> iOS["ios\nCrumble for iOS & iPadOS"]
```
Expand All @@ -24,7 +24,6 @@ Workflows in `.github/workflows` run only when their directory or `apfelkern` ch
- `apfelkern.yml`: verifies the generated client, builds, tests, and lints `apfelkern`.
- `macos.yml`: runs `swift test` and `swiftlint` for the macOS app.
- `ios.yml`: builds the unsigned iOS app and test targets and runs `swiftlint` (simulator tests run locally).
- `apfelkern-update-contract.yml`: checks weekly for a new `bot` contract release and opens a verified pull request.

The canonical glossary is [`bot/GLOSSARY.md`](https://github.com/crumble-project/bot/blob/main/GLOSSARY.md).

Expand Down
3 changes: 3 additions & 0 deletions apfelkern/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

- Add outside calls: `CallRequest` (a bot's proposal to call someone other than the owner, read from a `request_call` result or `APIClient.callRequests(_:)`), `approveCallRequest`, `declineCallRequest`, and `callRequestTranscript`, and `CallRequestBoard`, whose decisions show pending until the server confirms and whose refused approval exposes the server's text. `CallEvent` gains `callee`, and `shownInChat(_:)` hides the `call-started` event of an outside call and shows a call request card. Add `CallRequest.stateLabel`, `callRequest(for:in:)`, `callNoticeDetail(_:request:)`, and `callTranscriptLines(_:)`. `noticeTitle(_:)` names a `call_request` notice **Call request**.
- Update the contract copy for the voice gateway. `Message` gains `call`, a `CallEvent` with the call's ID and direction. Add `CallMarker`, which reads a `call-started` or `call-ended` event and the `call` notice whose end woke the bot, and `gatewayOrigin(_:)`, which reads "Spoken on a call" for a spoken message. `noticeTitle(_:)` names a `call` notice **Call**. `BotAvatar` gains `CallMarkerView`, and `GatewayOriginLabel` shows a phone for a spoken message.
- `scripts/contract.py --update DIRECTORY` copies the contract files from a directory such as `bot/openapi/`. `Contract/` no longer carries `pin.json`, `SHA256SUMS`, `CHANGELOG.md`, or `source-commit.txt`, and the weekly contract update workflow is gone.
- Add `BotAvatarPicker`: the portrait opens `BotAvatarEditor` in a popover.
- Add `ComposerDrafts`, unsent text by conversation, and `GroupChatHost.composerDrafts`, which replaces `groupComposerDrafts`.
- Add `ThinkingLevel.available(for:in:)` and `ActivityEntry.failed`. `BotAvatar` gains `ReasoningField`, `DesktopModelField`, and `ActivityErrorBadge`.
Expand Down
3 changes: 0 additions & 3 deletions apfelkern/Contract/CHANGELOG.md

This file was deleted.

8 changes: 0 additions & 8 deletions apfelkern/Contract/SHA256SUMS

This file was deleted.

23 changes: 23 additions & 0 deletions apfelkern/Contract/chat-snapshot.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,29 @@
],
"additionalProperties": true
},
"call": {
"type": "object",
"properties": {
"callId": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"inbound",
"outbound"
]
},
"callee": {
"type": "string"
}
},
"required": [
"callId",
"direction"
],
"additionalProperties": true
},
"attachments": {
"type": "array",
"items": {
Expand Down
23 changes: 23 additions & 0 deletions apfelkern/Contract/group-chat-snapshot.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,29 @@
],
"additionalProperties": true
},
"call": {
"type": "object",
"properties": {
"callId": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"inbound",
"outbound"
]
},
"callee": {
"type": "string"
}
},
"required": [
"callId",
"direction"
],
"additionalProperties": true
},
"attachments": {
"type": "array",
"items": {
Expand Down
Loading
Loading