plural-agent 0.2.2__tar.gz → 0.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plural_agent-0.2.2 → plural_agent-0.2.4}/PKG-INFO +2 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/README.md +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/package.json +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/feed.ts +11 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/link.ts +2 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/presenter.ts +3 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/projection.ts +28 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/protocol/commands.schema.json +334 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/protocol/commands.ts +127 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/protocol/events.schema.json +558 -4
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/protocol/events.ts +203 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/protocol/index.ts +6 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/reduce.ts +30 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/session.ts +7 -0
- plural_agent-0.2.4/client/test/admission.test.ts +97 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/fixtures/golden.json +1092 -45
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/link.test.ts +12 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/presenter.test.ts +8 -1
- plural_agent-0.2.4/client/test/projection.test.ts +77 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/support/host.ts +3 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/configuration.md +4 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/protocol.md +2 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/self-hosting.md +3 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/threat-model.md +2 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/usage.md +29 -5
- {plural_agent-0.2.2 → plural_agent-0.2.4}/install.sh +20 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/package-lock.json +3 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/scripts/gen_fixtures.py +20 -0
- plural_agent-0.2.4/src/plural/__init__.py +1 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/cli/main.py +11 -6
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/client/projection.py +5 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/client/reconnect.py +8 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/chat.py +1 -22
- plural_agent-0.2.4/src/plural/core/joins.py +43 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/ports.py +4 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/roles.py +18 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/state.py +47 -0
- plural_agent-0.2.4/src/plural/core/visibility.py +28 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/actor.py +242 -7
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/bootstrap.py +16 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/config.py +5 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/gateway.py +25 -4
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/inbox.py +6 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/invites.py +22 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/publisher.py +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/transport/direct.py +19 -4
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/commands.py +67 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/events.py +79 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/models.py +96 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/relay/rooms.py +11 -4
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/support.py +1 -1
- plural_agent-0.2.4/tests/e2e/test_admission.py +329 -0
- plural_agent-0.2.4/tests/e2e/test_board.py +130 -0
- plural_agent-0.2.4/tests/e2e/test_selection.py +45 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/integration/test_relay_limits.py +15 -1
- plural_agent-0.2.4/tests/unit/test_board_budget.py +31 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_chat.py +8 -6
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_cli.py +1 -1
- plural_agent-0.2.4/tests/unit/test_joins.py +189 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/package.json +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/App.tsx +76 -12
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/cli.tsx +7 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/commands.ts +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Cards.tsx +10 -12
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Inbox.tsx +29 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/SettingsDialog.tsx +9 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Sidebar.tsx +6 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Splash.tsx +13 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/StatusBar.tsx +1 -1
- plural_agent-0.2.4/tui/src/failure.ts +24 -0
- plural_agent-0.2.4/tui/src/lib/sound.ts +12 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/sessions.ts +8 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/settings.ts +5 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/settingsModel.ts +34 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/update.ts +7 -0
- plural_agent-0.2.4/tui/test/admission.test.tsx +200 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/app.test.tsx +19 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/chat.test.tsx +6 -3
- plural_agent-0.2.4/tui/test/failure.test.tsx +94 -0
- plural_agent-0.2.4/tui/test/installer.test.ts +75 -0
- plural_agent-0.2.4/tui/test/join-notifications.test.tsx +90 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/model-tab.test.tsx +3 -3
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/settings.test.ts +6 -0
- plural_agent-0.2.4/tui/test/sound.test.ts +24 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/update.test.ts +17 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/package.json +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/App.tsx +2 -0
- plural_agent-0.2.4/web/src/components/Board.module.css +24 -0
- plural_agent-0.2.4/web/src/components/Board.tsx +414 -0
- plural_agent-0.2.4/web/src/components/Canvas.module.css +19 -0
- plural_agent-0.2.4/web/src/components/Canvas.tsx +111 -0
- plural_agent-0.2.4/web/src/components/Composer.module.css +19 -0
- plural_agent-0.2.4/web/src/components/Composer.tsx +214 -0
- plural_agent-0.2.4/web/src/components/DiffView.module.css +13 -0
- plural_agent-0.2.4/web/src/components/DiffView.tsx +38 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/InviteDialog.module.css +2 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/InviteDialog.tsx +13 -6
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/Logo.tsx +5 -3
- plural_agent-0.2.4/web/src/components/QuoteButton.module.css +2 -0
- plural_agent-0.2.4/web/src/components/QuoteButton.tsx +79 -0
- plural_agent-0.2.4/web/src/components/SelectionLayer.module.css +3 -0
- plural_agent-0.2.4/web/src/components/SelectionLayer.tsx +92 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/TopBar.module.css +5 -5
- plural_agent-0.2.4/web/src/components/TopBar.test.tsx +13 -0
- plural_agent-0.2.4/web/src/components/feed/Activity.module.css +12 -0
- plural_agent-0.2.4/web/src/components/feed/Activity.tsx +19 -0
- plural_agent-0.2.4/web/src/components/feed/DocCard.module.css +7 -0
- plural_agent-0.2.4/web/src/components/feed/DocCard.tsx +26 -0
- plural_agent-0.2.4/web/src/components/feed/Feed.module.css +35 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/feed/Feed.test.tsx +3 -3
- plural_agent-0.2.4/web/src/components/feed/Feed.tsx +184 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/feed/Markdown.module.css +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/feed/Markdown.tsx +21 -4
- plural_agent-0.2.4/web/src/components/feed/ToolLine.module.css +24 -0
- plural_agent-0.2.4/web/src/components/feed/ToolLine.tsx +78 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/inbox/ApprovalCard.tsx +1 -1
- plural_agent-0.2.4/web/src/components/inbox/Inbox.module.css +12 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/inbox/Inbox.tsx +4 -1
- plural_agent-0.2.4/web/src/components/inbox/JoinCard.test.tsx +30 -0
- plural_agent-0.2.4/web/src/components/inbox/JoinCard.tsx +38 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/inbox/ProposalCard.tsx +1 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/inbox/items.ts +3 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/People.tsx +2 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/Sidebar.module.css +6 -6
- plural_agent-0.2.4/web/src/hooks/useAttachments.ts +103 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useHotkeys.ts +3 -0
- plural_agent-0.2.4/web/src/hooks/useSession.test.ts +54 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useSession.ts +34 -5
- plural_agent-0.2.4/web/src/hooks/useShareSelection.ts +41 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useStickToBottom.ts +2 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useSubmit.ts +27 -2
- plural_agent-0.2.4/web/src/lib/activity.test.ts +37 -0
- plural_agent-0.2.4/web/src/lib/activity.ts +54 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/alert.test.ts +43 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/alert.ts +37 -5
- plural_agent-0.2.4/web/src/lib/board.test.ts +21 -0
- plural_agent-0.2.4/web/src/lib/board.ts +145 -0
- plural_agent-0.2.4/web/src/lib/canvas.test.ts +67 -0
- plural_agent-0.2.4/web/src/lib/canvas.ts +133 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/commands.ts +2 -1
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/links.test.ts +7 -0
- plural_agent-0.2.4/web/src/lib/quote.test.ts +23 -0
- plural_agent-0.2.4/web/src/lib/quote.ts +35 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/saved.ts +1 -1
- plural_agent-0.2.4/web/src/lib/selection.ts +62 -0
- plural_agent-0.2.4/web/src/lib/sha256.test.ts +19 -0
- plural_agent-0.2.4/web/src/lib/sha256.ts +52 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/screens/JoinScreen.module.css +2 -2
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/screens/JoinScreen.tsx +6 -6
- plural_agent-0.2.4/web/src/screens/RoomScreen.module.css +15 -0
- plural_agent-0.2.4/web/src/screens/RoomScreen.tsx +289 -0
- plural_agent-0.2.4/web/src/styles/base.css +31 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/styles/tokens.css +15 -11
- plural_agent-0.2.2/client/test/projection.test.ts +0 -44
- plural_agent-0.2.2/src/plural/__init__.py +0 -1
- plural_agent-0.2.2/web/src/components/Composer.module.css +0 -10
- plural_agent-0.2.2/web/src/components/Composer.tsx +0 -121
- plural_agent-0.2.2/web/src/components/feed/Feed.module.css +0 -17
- plural_agent-0.2.2/web/src/components/feed/Feed.tsx +0 -82
- plural_agent-0.2.2/web/src/components/feed/ToolLine.module.css +0 -25
- plural_agent-0.2.2/web/src/components/feed/ToolLine.tsx +0 -69
- plural_agent-0.2.2/web/src/components/inbox/Inbox.module.css +0 -11
- plural_agent-0.2.2/web/src/screens/RoomScreen.module.css +0 -18
- plural_agent-0.2.2/web/src/screens/RoomScreen.tsx +0 -130
- plural_agent-0.2.2/web/src/styles/base.css +0 -31
- {plural_agent-0.2.2 → plural_agent-0.2.4}/.github/workflows/ci.yml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/.github/workflows/release.yml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/.gitignore +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/CONTRIBUTING.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/LICENSE +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/SECURITY.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/chat.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/decode.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/diff.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/index.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/slash.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/tools.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/src/wire.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/chat.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/golden.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/queue.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/relay.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/test/session.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/client/tsconfig.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/Caddyfile +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/cloud-init.yaml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/docker-compose.yml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/host-entrypoint.sh +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/host.Dockerfile +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/launchd/dev.plural.host.plist +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/railway/host.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/railway/relay.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/relay.Dockerfile +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/deploy/systemd/plural-host.service +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0001-hexagonal-event-sourced-host.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0002-own-harness-official-sdk-providers.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0003-simple-compaction.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0004-prompt-modes.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0005-typescript-client.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/adr/0006-fullscreen-opentui.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/assets/logo.png +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/docs/development.md +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/package.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/pyproject.toml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/render.yaml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/scripts/gen_schema.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/scripts/install-native-renderer.sh +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/scripts/install.sh +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/compaction.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/context.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/events.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/gate.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/interrupt.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/loop.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/mcp.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/messages.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/anthropic_api.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/anthropic_oauth.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/base.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/claude_code.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/codex_cli.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/fake.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/openai_compat.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/providers/web_search.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/sandbox/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/sandbox/base.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/sandbox/local.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/skills.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/base.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/bash.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/diffs.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/edit.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/glob.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/grep.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/ls.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/read.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/registry.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/search.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/skills.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/streaming.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/truncation.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/web.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/agent/tools/write.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/cli/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/client/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/client/connection.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/approvals.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/errors.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/policies.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/policy/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/policy/engine.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/policy/rejections.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/policy/rules.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/proposals.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/core/provenance.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/agent_run.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/approval_registry.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/attachments.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/control.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/history.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/policy_gate.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/system.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/transport/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/transport/base.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/host/transport/relay_link.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/capability.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/codec.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/envelope.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/protocol/relay.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/relay/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/relay/app.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/relay/limits.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/security/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/security/keys.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/security/secrets.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/security/tokens.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/jsonl_export.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/migrations/0001_init.sql +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/migrations/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/sessions.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/src/plural/storage/sqlite_store.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/conftest.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/doubles.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/__init__.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/conftest.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_abort.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_agent_control.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_chat.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_compaction.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_flow.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_history.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_mcp.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_permission_mode.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_policy.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_prompt_mode.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_queue.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_rejections.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_relay_recovery.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_skills.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_tool_output.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/e2e/test_typing.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/fixtures/echo_mcp.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/fixtures/protocol/prompt_submit.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/harness/test_compaction.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/harness/test_loop.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/harness/test_swap.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/harness/test_tool_streaming.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/integration/test_host_control.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/integration/test_host_flow.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/integration/test_host_process.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/loop_support.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_anthropic_oauth.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_attachments.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_bootstrap.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_claude_code.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_codex_cli.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_context.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_control.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_history.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_line_stream.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_mcp.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_policies.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_policy.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_policy_gate.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_projection.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_protocol.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_providers.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_rejections.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_roles.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_security.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_sessions.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_skills.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_sqlite_store.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_state.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_tools.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_web_search.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tests/unit/test_web_tools.py +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/bunfig.toml +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/dev/demo.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/agent.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/alerts.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/anthropicOAuth.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/args.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/code.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Composer.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Spinner.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Toast.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/TopBar.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Tray.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/components/Working.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/control.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/credentials.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/feed.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/host-process.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/joined.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/clipboard.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/diff.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/highlight.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/progress.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/tools.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/lib/wrap.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/logo.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/mcpCatalog.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/options.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/picker.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/presets.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/print.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/share.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/startup.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/syntax.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/theme.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/trays.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/src/tunnel.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/alerts.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/anthropic-oauth.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/args.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/commands.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/diff.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/e2e.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/feed.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/headless.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/highlight.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/options.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/paste.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/picker.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/print-e2e.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/resume.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/sessions.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/setup.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/share.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/startup.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/stores.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/support/fake-session.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/toast.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/test/tunnel.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/tui/tsconfig.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/uv.lock +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/index.html +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/TopBar.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/feed/Markdown.test.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/AgentStatus.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/PromptMode.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/Queue.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/Rules.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/Section.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/components/side/Sidebar.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useNow.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useToast.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/hooks/useTyping.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/clipboard.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/colors.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/commands.test.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/cx.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/links.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/lib/logo-grid.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/main.tsx +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/src/vite-env.d.ts +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/tsconfig.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/vercel.json +0 -0
- {plural_agent-0.2.2 → plural_agent-0.2.4}/web/vite.config.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: plural-agent
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Multiplayer sessions for one AI agent: shared context, host approvals, attribution, isolation.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Plural-Organization/Plural
|
|
6
6
|
Project-URL: Issues, https://github.com/Plural-Organization/Plural/issues
|
|
@@ -86,7 +86,7 @@ plural
|
|
|
86
86
|
|
|
87
87
|
come back to a session later with `plural -r` (or `plural -c` for the latest one of this folder), and ask once from a script with `plural -p "…"`. see [usage](docs/usage.md).
|
|
88
88
|
|
|
89
|
-
the first line in the conversation is
|
|
89
|
+
the first line in the conversation is the room link. send it to a teammate, now or later: it does not expire, and you let each person in:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
92
|
plural join "ws://…"
|
|
@@ -50,7 +50,7 @@ plural
|
|
|
50
50
|
|
|
51
51
|
come back to a session later with `plural -r` (or `plural -c` for the latest one of this folder), and ask once from a script with `plural -p "…"`. see [usage](docs/usage.md).
|
|
52
52
|
|
|
53
|
-
the first line in the conversation is
|
|
53
|
+
the first line in the conversation is the room link. send it to a teammate, now or later: it does not expire, and you let each person in:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
56
|
plural join "ws://…"
|
|
@@ -12,7 +12,7 @@ export type ToolStatus = "running" | "ok" | "failed";
|
|
|
12
12
|
|
|
13
13
|
export type FeedItem =
|
|
14
14
|
| { kind: "banner"; id: string; room: string; version: string; guestLink: string | null }
|
|
15
|
-
| { kind: "user"; id: string; participantId: string; name: string; role: Role; viaProposal: boolean; text: string }
|
|
15
|
+
| { kind: "user"; id: string; participantId: string; name: string; role: Role; viaProposal: boolean; text: string; files?: string[] }
|
|
16
16
|
| {
|
|
17
17
|
kind: "chat";
|
|
18
18
|
id: string;
|
|
@@ -26,7 +26,7 @@ export type FeedItem =
|
|
|
26
26
|
}
|
|
27
27
|
| { kind: "assistant"; id: string; text: string; streaming: boolean }
|
|
28
28
|
| { kind: "tool"; id: string; call: ToolCallView; status: ToolStatus; output: string; diff: string | null; live: string }
|
|
29
|
-
| { kind: "notice"; id: string; tone: Tone; text: string };
|
|
29
|
+
| { kind: "notice"; id: string; tone: Tone; text: string; action?: "board" };
|
|
30
30
|
|
|
31
31
|
export interface Feed {
|
|
32
32
|
items: FeedItem[];
|
|
@@ -84,6 +84,12 @@ export function absorb(feed: Feed, event: Event, projection: Projection): Feed {
|
|
|
84
84
|
: feed;
|
|
85
85
|
case "session.snapshot":
|
|
86
86
|
return loadHistory(feed, withDefaults(event.state), event.streaming, projection.meId);
|
|
87
|
+
case "board.opened": {
|
|
88
|
+
const counter = feed.counter + 1;
|
|
89
|
+
const who = event.by === projection.meId ? "you" : nameOf(event.by);
|
|
90
|
+
const text = event.open ? `${who} opened the board` : `${who} closed the board`;
|
|
91
|
+
return { ...feed, counter, items: [...feed.items, { kind: "notice", id: `n${counter}`, tone: "dim", text, ...(event.open ? { action: "board" as const } : {}) }] };
|
|
92
|
+
}
|
|
87
93
|
case "chat.posted":
|
|
88
94
|
return {
|
|
89
95
|
...feed,
|
|
@@ -142,6 +148,7 @@ export function absorb(feed: Feed, event: Event, projection: Projection): Feed {
|
|
|
142
148
|
role: author?.role ?? event.provenance.initiator_role,
|
|
143
149
|
viaProposal: event.provenance.origin === "proposal",
|
|
144
150
|
text: event.text,
|
|
151
|
+
files: event.attachments.map((id) => state.attachments[id]?.name ?? "a file"),
|
|
145
152
|
},
|
|
146
153
|
],
|
|
147
154
|
};
|
|
@@ -338,7 +345,8 @@ function fromEntry(entry: TranscriptEntry, state: SessionState, counter: number)
|
|
|
338
345
|
};
|
|
339
346
|
}
|
|
340
347
|
case "assistant":
|
|
341
|
-
|
|
348
|
+
// The message id, as in the live feed, so every client names the same reply the same way.
|
|
349
|
+
return entry.text ? { kind: "assistant", id: entry.id, text: entry.text, streaming: false } : null;
|
|
342
350
|
case "tool":
|
|
343
351
|
if (entry.tool === null) {
|
|
344
352
|
return null;
|
|
@@ -3,6 +3,7 @@ export interface JoinLink {
|
|
|
3
3
|
room: string;
|
|
4
4
|
invite: string | null;
|
|
5
5
|
token: string | null;
|
|
6
|
+
join: string | null;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export function parseLink(raw: string): JoinLink {
|
|
@@ -24,5 +25,6 @@ export function parseLink(raw: string): JoinLink {
|
|
|
24
25
|
room,
|
|
25
26
|
invite: parsed.searchParams.get("invite"),
|
|
26
27
|
token: parsed.searchParams.get("token"),
|
|
28
|
+
join: parsed.searchParams.get("join"),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
@@ -53,7 +53,9 @@ export interface ContextMeter {
|
|
|
53
53
|
|
|
54
54
|
export function contextMeter(state: SessionState): ContextMeter | null {
|
|
55
55
|
const context = state.context;
|
|
56
|
-
|
|
56
|
+
// These are the host's canonical labels for the OAuth connection presets.
|
|
57
|
+
const oauth = /^(Claude OAuth|Claude Code|Codex CLI)(?: ·|$)/.test(state.agent);
|
|
58
|
+
if (oauth || context === null || context.window <= 0) {
|
|
57
59
|
return null;
|
|
58
60
|
}
|
|
59
61
|
const share = context.tokens / context.window;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event, EventRecord, Participant, PolicyRuleView, SessionState } from "./protocol";
|
|
1
|
+
import type { BoardCursor, Event, EventRecord, Participant, PolicyRuleView, SessionState, TextSelection } from "./protocol";
|
|
2
2
|
import { emptyState, reduce } from "./reduce";
|
|
3
3
|
|
|
4
4
|
export class Projection {
|
|
@@ -6,9 +6,12 @@ export class Projection {
|
|
|
6
6
|
streaming: Record<string, string> = {};
|
|
7
7
|
reasoning = 0;
|
|
8
8
|
typing = new Set<string>();
|
|
9
|
+
selections = new Map<string, TextSelection>();
|
|
10
|
+
cursors = new Map<string, BoardCursor>();
|
|
9
11
|
compacting: { tokens: number; since: number } | null = null;
|
|
10
12
|
basePolicy: PolicyRuleView[] = [];
|
|
11
13
|
agent = "";
|
|
14
|
+
waiting = false;
|
|
12
15
|
meId: string | null = null;
|
|
13
16
|
ready = false;
|
|
14
17
|
|
|
@@ -24,6 +27,8 @@ export class Projection {
|
|
|
24
27
|
this.state = state;
|
|
25
28
|
this.streaming = { ...streaming };
|
|
26
29
|
this.typing = new Set(typing);
|
|
30
|
+
this.selections = new Map();
|
|
31
|
+
this.cursors = new Map();
|
|
27
32
|
this.reasoning = 0;
|
|
28
33
|
this.compacting = null;
|
|
29
34
|
this.ready = true;
|
|
@@ -53,6 +58,12 @@ export class Projection {
|
|
|
53
58
|
break;
|
|
54
59
|
case "participant.revoked":
|
|
55
60
|
this.typing.delete(event.participant_id);
|
|
61
|
+
this.selections.delete(event.participant_id);
|
|
62
|
+
this.cursors.delete(event.participant_id);
|
|
63
|
+
break;
|
|
64
|
+
case "participant.left":
|
|
65
|
+
this.selections.delete(event.participant_id);
|
|
66
|
+
this.cursors.delete(event.participant_id);
|
|
56
67
|
break;
|
|
57
68
|
default:
|
|
58
69
|
break;
|
|
@@ -73,6 +84,22 @@ export class Projection {
|
|
|
73
84
|
}
|
|
74
85
|
return;
|
|
75
86
|
}
|
|
87
|
+
if (event.type === "participant.selected") {
|
|
88
|
+
if (event.selection === null) {
|
|
89
|
+
this.selections.delete(event.participant_id);
|
|
90
|
+
} else {
|
|
91
|
+
this.selections.set(event.participant_id, event.selection);
|
|
92
|
+
}
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (event.type === "participant.cursor") {
|
|
96
|
+
if (event.cursor === null) {
|
|
97
|
+
this.cursors.delete(event.participant_id);
|
|
98
|
+
} else {
|
|
99
|
+
this.cursors.set(event.participant_id, event.cursor);
|
|
100
|
+
}
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
76
103
|
if (event.type !== "message.delta") {
|
|
77
104
|
return;
|
|
78
105
|
}
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$defs": {
|
|
3
|
+
"AdmissionMode": {
|
|
4
|
+
"enum": [
|
|
5
|
+
"approve",
|
|
6
|
+
"open"
|
|
7
|
+
],
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"AdmissionSet": {
|
|
11
|
+
"properties": {
|
|
12
|
+
"mode": {
|
|
13
|
+
"$ref": "#/$defs/AdmissionMode"
|
|
14
|
+
},
|
|
15
|
+
"type": {
|
|
16
|
+
"const": "link.set_admission",
|
|
17
|
+
"default": "link.set_admission",
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"mode"
|
|
23
|
+
],
|
|
24
|
+
"type": "object"
|
|
25
|
+
},
|
|
3
26
|
"ApprovalDecision": {
|
|
4
27
|
"enum": [
|
|
5
28
|
"once",
|
|
@@ -29,6 +52,159 @@
|
|
|
29
52
|
],
|
|
30
53
|
"type": "object"
|
|
31
54
|
},
|
|
55
|
+
"BoardClear": {
|
|
56
|
+
"properties": {
|
|
57
|
+
"type": {
|
|
58
|
+
"const": "board.clear",
|
|
59
|
+
"default": "board.clear",
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"type": "object"
|
|
64
|
+
},
|
|
65
|
+
"BoardCursor": {
|
|
66
|
+
"description": "Where someone points on the board; with ink, the pen is down and draws.",
|
|
67
|
+
"properties": {
|
|
68
|
+
"color": {
|
|
69
|
+
"anyOf": [
|
|
70
|
+
{
|
|
71
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "null"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"default": null
|
|
79
|
+
},
|
|
80
|
+
"ink": {
|
|
81
|
+
"default": false,
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"width": {
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"maximum": 40,
|
|
88
|
+
"minimum": 0.5,
|
|
89
|
+
"type": "number"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "null"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"default": null
|
|
96
|
+
},
|
|
97
|
+
"x": {
|
|
98
|
+
"maximum": 4,
|
|
99
|
+
"minimum": 0,
|
|
100
|
+
"type": "number"
|
|
101
|
+
},
|
|
102
|
+
"y": {
|
|
103
|
+
"maximum": 4,
|
|
104
|
+
"minimum": 0,
|
|
105
|
+
"type": "number"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"x",
|
|
110
|
+
"y"
|
|
111
|
+
],
|
|
112
|
+
"type": "object"
|
|
113
|
+
},
|
|
114
|
+
"BoardDraw": {
|
|
115
|
+
"properties": {
|
|
116
|
+
"color": {
|
|
117
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"kind": {
|
|
121
|
+
"$ref": "#/$defs/BoardShape",
|
|
122
|
+
"default": "pen"
|
|
123
|
+
},
|
|
124
|
+
"points": {
|
|
125
|
+
"items": {
|
|
126
|
+
"maximum": 4,
|
|
127
|
+
"minimum": 0,
|
|
128
|
+
"type": "number"
|
|
129
|
+
},
|
|
130
|
+
"maxItems": 4000,
|
|
131
|
+
"minItems": 2,
|
|
132
|
+
"type": "array"
|
|
133
|
+
},
|
|
134
|
+
"text": {
|
|
135
|
+
"anyOf": [
|
|
136
|
+
{
|
|
137
|
+
"maxLength": 500,
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "null"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"default": null
|
|
146
|
+
},
|
|
147
|
+
"type": {
|
|
148
|
+
"const": "board.draw",
|
|
149
|
+
"default": "board.draw",
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"width": {
|
|
153
|
+
"maximum": 40,
|
|
154
|
+
"minimum": 0.5,
|
|
155
|
+
"type": "number"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"color",
|
|
160
|
+
"width",
|
|
161
|
+
"points"
|
|
162
|
+
],
|
|
163
|
+
"type": "object"
|
|
164
|
+
},
|
|
165
|
+
"BoardErase": {
|
|
166
|
+
"properties": {
|
|
167
|
+
"stroke_id": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"type": {
|
|
171
|
+
"const": "board.erase",
|
|
172
|
+
"default": "board.erase",
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": [
|
|
177
|
+
"stroke_id"
|
|
178
|
+
],
|
|
179
|
+
"type": "object"
|
|
180
|
+
},
|
|
181
|
+
"BoardOpen": {
|
|
182
|
+
"properties": {
|
|
183
|
+
"open": {
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"type": {
|
|
187
|
+
"const": "board.open",
|
|
188
|
+
"default": "board.open",
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"open"
|
|
194
|
+
],
|
|
195
|
+
"type": "object"
|
|
196
|
+
},
|
|
197
|
+
"BoardShape": {
|
|
198
|
+
"enum": [
|
|
199
|
+
"pen",
|
|
200
|
+
"line",
|
|
201
|
+
"arrow",
|
|
202
|
+
"rect",
|
|
203
|
+
"ellipse",
|
|
204
|
+
"text"
|
|
205
|
+
],
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
32
208
|
"ChatSend": {
|
|
33
209
|
"properties": {
|
|
34
210
|
"mentions": {
|
|
@@ -90,6 +266,29 @@
|
|
|
90
266
|
},
|
|
91
267
|
"type": "object"
|
|
92
268
|
},
|
|
269
|
+
"CursorSet": {
|
|
270
|
+
"properties": {
|
|
271
|
+
"cursor": {
|
|
272
|
+
"anyOf": [
|
|
273
|
+
{
|
|
274
|
+
"$ref": "#/$defs/BoardCursor"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "null"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
"type": {
|
|
282
|
+
"const": "presence.cursor",
|
|
283
|
+
"default": "presence.cursor",
|
|
284
|
+
"type": "string"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"required": [
|
|
288
|
+
"cursor"
|
|
289
|
+
],
|
|
290
|
+
"type": "object"
|
|
291
|
+
},
|
|
93
292
|
"Delivery": {
|
|
94
293
|
"enum": [
|
|
95
294
|
"now",
|
|
@@ -155,6 +354,10 @@
|
|
|
155
354
|
},
|
|
156
355
|
"InviteCreate": {
|
|
157
356
|
"properties": {
|
|
357
|
+
"reusable": {
|
|
358
|
+
"default": false,
|
|
359
|
+
"type": "boolean"
|
|
360
|
+
},
|
|
158
361
|
"role": {
|
|
159
362
|
"$ref": "#/$defs/Role",
|
|
160
363
|
"default": "participant"
|
|
@@ -173,6 +376,41 @@
|
|
|
173
376
|
},
|
|
174
377
|
"type": "object"
|
|
175
378
|
},
|
|
379
|
+
"JoinDecide": {
|
|
380
|
+
"properties": {
|
|
381
|
+
"decision": {
|
|
382
|
+
"enum": [
|
|
383
|
+
"allow",
|
|
384
|
+
"viewer",
|
|
385
|
+
"deny"
|
|
386
|
+
],
|
|
387
|
+
"type": "string"
|
|
388
|
+
},
|
|
389
|
+
"request_id": {
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
"type": {
|
|
393
|
+
"const": "join.decide",
|
|
394
|
+
"default": "join.decide",
|
|
395
|
+
"type": "string"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"required": [
|
|
399
|
+
"request_id",
|
|
400
|
+
"decision"
|
|
401
|
+
],
|
|
402
|
+
"type": "object"
|
|
403
|
+
},
|
|
404
|
+
"LinkRevoke": {
|
|
405
|
+
"properties": {
|
|
406
|
+
"type": {
|
|
407
|
+
"const": "link.revoke",
|
|
408
|
+
"default": "link.revoke",
|
|
409
|
+
"type": "string"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"type": "object"
|
|
413
|
+
},
|
|
176
414
|
"McpAdd": {
|
|
177
415
|
"properties": {
|
|
178
416
|
"args": {
|
|
@@ -545,6 +783,29 @@
|
|
|
545
783
|
},
|
|
546
784
|
"type": "object"
|
|
547
785
|
},
|
|
786
|
+
"SelectionSet": {
|
|
787
|
+
"properties": {
|
|
788
|
+
"selection": {
|
|
789
|
+
"anyOf": [
|
|
790
|
+
{
|
|
791
|
+
"$ref": "#/$defs/TextSelection"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"type": "null"
|
|
795
|
+
}
|
|
796
|
+
]
|
|
797
|
+
},
|
|
798
|
+
"type": {
|
|
799
|
+
"const": "presence.select",
|
|
800
|
+
"default": "presence.select",
|
|
801
|
+
"type": "string"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"required": [
|
|
805
|
+
"selection"
|
|
806
|
+
],
|
|
807
|
+
"type": "object"
|
|
808
|
+
},
|
|
548
809
|
"SessionHello": {
|
|
549
810
|
"properties": {
|
|
550
811
|
"client": {
|
|
@@ -561,6 +822,17 @@
|
|
|
561
822
|
],
|
|
562
823
|
"default": null
|
|
563
824
|
},
|
|
825
|
+
"join": {
|
|
826
|
+
"anyOf": [
|
|
827
|
+
{
|
|
828
|
+
"type": "string"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"type": "null"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"default": null
|
|
835
|
+
},
|
|
564
836
|
"name": {
|
|
565
837
|
"anyOf": [
|
|
566
838
|
{
|
|
@@ -673,6 +945,32 @@
|
|
|
673
945
|
],
|
|
674
946
|
"type": "object"
|
|
675
947
|
},
|
|
948
|
+
"TextSelection": {
|
|
949
|
+
"description": "Text someone has selected, as offsets into the text of one item on screen.\n\nThe anchor names the item (a feed entry or a canvas document); every client lays\nout the same items, so the offsets point at the same words for everyone.",
|
|
950
|
+
"properties": {
|
|
951
|
+
"anchor": {
|
|
952
|
+
"maxLength": 200,
|
|
953
|
+
"minLength": 1,
|
|
954
|
+
"type": "string"
|
|
955
|
+
},
|
|
956
|
+
"end": {
|
|
957
|
+
"maximum": 1000000,
|
|
958
|
+
"minimum": 0,
|
|
959
|
+
"type": "integer"
|
|
960
|
+
},
|
|
961
|
+
"start": {
|
|
962
|
+
"maximum": 1000000,
|
|
963
|
+
"minimum": 0,
|
|
964
|
+
"type": "integer"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"required": [
|
|
968
|
+
"anchor",
|
|
969
|
+
"start",
|
|
970
|
+
"end"
|
|
971
|
+
],
|
|
972
|
+
"type": "object"
|
|
973
|
+
},
|
|
676
974
|
"TypingSet": {
|
|
677
975
|
"properties": {
|
|
678
976
|
"type": {
|
|
@@ -695,11 +993,18 @@
|
|
|
695
993
|
"discriminator": {
|
|
696
994
|
"mapping": {
|
|
697
995
|
"approval.respond": "#/$defs/ApprovalRespond",
|
|
996
|
+
"board.clear": "#/$defs/BoardClear",
|
|
997
|
+
"board.draw": "#/$defs/BoardDraw",
|
|
998
|
+
"board.erase": "#/$defs/BoardErase",
|
|
999
|
+
"board.open": "#/$defs/BoardOpen",
|
|
698
1000
|
"chat.send": "#/$defs/ChatSend",
|
|
699
1001
|
"context.compact": "#/$defs/ContextCompact",
|
|
700
1002
|
"file.attach": "#/$defs/FileAttach",
|
|
701
1003
|
"history.get": "#/$defs/HistoryGet",
|
|
702
1004
|
"invite.create": "#/$defs/InviteCreate",
|
|
1005
|
+
"join.decide": "#/$defs/JoinDecide",
|
|
1006
|
+
"link.revoke": "#/$defs/LinkRevoke",
|
|
1007
|
+
"link.set_admission": "#/$defs/AdmissionSet",
|
|
703
1008
|
"mcp.add": "#/$defs/McpAdd",
|
|
704
1009
|
"mcp.import": "#/$defs/McpImport",
|
|
705
1010
|
"mcp.remove": "#/$defs/McpRemove",
|
|
@@ -709,6 +1014,8 @@
|
|
|
709
1014
|
"participant.set_role": "#/$defs/ParticipantSetRole",
|
|
710
1015
|
"policy.add": "#/$defs/PolicyAdd",
|
|
711
1016
|
"policy.remove": "#/$defs/PolicyRemove",
|
|
1017
|
+
"presence.cursor": "#/$defs/CursorSet",
|
|
1018
|
+
"presence.select": "#/$defs/SelectionSet",
|
|
712
1019
|
"presence.typing": "#/$defs/TypingSet",
|
|
713
1020
|
"prompt.submit": "#/$defs/PromptSubmit",
|
|
714
1021
|
"proposal.decide": "#/$defs/ProposalDecide",
|
|
@@ -748,6 +1055,15 @@
|
|
|
748
1055
|
{
|
|
749
1056
|
"$ref": "#/$defs/InviteCreate"
|
|
750
1057
|
},
|
|
1058
|
+
{
|
|
1059
|
+
"$ref": "#/$defs/JoinDecide"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"$ref": "#/$defs/LinkRevoke"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"$ref": "#/$defs/AdmissionSet"
|
|
1066
|
+
},
|
|
751
1067
|
{
|
|
752
1068
|
"$ref": "#/$defs/ParticipantSetRole"
|
|
753
1069
|
},
|
|
@@ -790,6 +1106,24 @@
|
|
|
790
1106
|
{
|
|
791
1107
|
"$ref": "#/$defs/TypingSet"
|
|
792
1108
|
},
|
|
1109
|
+
{
|
|
1110
|
+
"$ref": "#/$defs/SelectionSet"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"$ref": "#/$defs/CursorSet"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"$ref": "#/$defs/BoardOpen"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"$ref": "#/$defs/BoardDraw"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"$ref": "#/$defs/BoardErase"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"$ref": "#/$defs/BoardClear"
|
|
1126
|
+
},
|
|
793
1127
|
{
|
|
794
1128
|
"$ref": "#/$defs/QueueCancel"
|
|
795
1129
|
},
|