Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge remote-tracking branch 'origin/main' into feat/swarm-project-github-access

bitcoinbuilder24b53fe98516
diff --cc backend/src/superTabs/read/views.ts
index e8ac09de7,b80a9741f..a44a0dff0
--- a/backend/src/superTabs/read/views.ts
+++ b/backend/src/superTabs/read/views.ts
@@@ -3,8 -3,8 +3,8 @@@
* plus the private-conversation check, each record sent in its part's envelope. Time-based and cross-part values go only
* in `derived`, so a part never changes without a new version (Lead's ruling).
*/
- import { isLeads, visibleState, type Actor, type Agent, type Conversation, type SuperTabState } from '../model.js'
+ import { isLeads, seenMachineIds, visibleState, withSeenRequirement, type Actor, type Agent, type Conversation, type SuperTabState } from '../model.js'
-import { machineSlots, teamAccountRequired, teamWorkRefusal, type ContributedMachine } from '../machines.js'
+import { machineSlots, teamAccountRequired, teamAccountSwarm, teamWorkRefusal, type ContributedMachine } from '../machines.js'
import * as store from '../parts/index.js'
import type { Part, SwarmParts } from '../parts/index.js'
import { canReadGroup } from '../projects.js'
diff --cc cli/src/superTabs/service.ts
index a32b45771,8b0bcfecb..4a9a140fa
--- a/cli/src/superTabs/service.ts
+++ b/cli/src/superTabs/service.ts
@@@ -177,14 -180,9 +181,15 @@@ export async function sharedSwarm(sourc
return false
}
+/** Whether the Swarm a person just joined or added this Mac to uses Harness Team accounts: false only when its server
+ * says it does not, so a read that fails still offers, as before. */
+export async function teamAccountsIn(sources: SwarmSources, tabId: string): Promise<boolean> {
+ return sources.reads.read(tabId).then(read => read.teamAccounts, () => true)
+}
+
export interface SuperTabServiceOptions {
prepareContribution?: typeof prepareContribution
+ setMachineAgents?: typeof setMachineAgents
capacity?: typeof readCapabilities
host?: (core: CoreApi, machineId: string, options: SuperTabHostOptions) => SuperTabHost
reservations?: (core: CoreApi, machineId: string) => ReservationBook
diff --cc desktop/lib/super_tabs/project_sidebar.dart
index f0009ad9e,a51273f94..d83fc4f3e
--- a/desktop/lib/super_tabs/project_sidebar.dart
+++ b/desktop/lib/super_tabs/project_sidebar.dart
@@@ -192,126 -203,131 +204,145 @@@ class ProjectSidebar extends StatelessW
return Padding(
padding: const EdgeInsets.only(bottom: 2),
child: Material(
- color: selected ? grid.AppSurface.selectedFill : Colors.transparent,
+ color: highlighted ? grid.AppSurface.selectedFill : Colors.transparent,
borderRadius: BorderRadius.circular(DesktopChrome.rowRadius),
clipBehavior: Clip.antiAlias,
- child: InkWell(
- key: ValueKey(key ?? 'super-group-${group.id}'),
- onTap: project == null
- ? () => onSelect(group.id)
- : () {
- if (selected || !expanded) {
- controller.toggleProject(project.id);
- }
- if (!selected) onSelect(group.id);
- },
- hoverColor: grid.AppSurface.hoverFill,
- focusColor: grid.AppSurface.hoverFill,
- borderRadius: BorderRadius.circular(DesktopChrome.rowRadius),
- child: Row(
- children: [
- SizedBox(width: SuperTabSectionHeading.indentFor(0)),
- SizedBox(
- width: _iconColumn,
- child: project != null || label != null ? _channelMark() : null,
- ),
- Expanded(
- child: Semantics(
- label: project?.isPrivate == true ? 'Private project' : null,
- selected: selected,
- expanded: project == null ? null : expanded,
- child: Tooltip(
- message:
- label ??
- project?.name ??
- SuperTabWorkgroupName.plain(group),
- child: ConstrainedBox(
- constraints: const BoxConstraints(minHeight: 36),
- child: Padding(
- padding: const EdgeInsets.symmetric(vertical: 8),
- child: Row(
- children: [
- Expanded(
- child: label == null && project == null
- ? SuperTabWorkgroupName(group, style: style)
- : Column(
- crossAxisAlignment:
- CrossAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Text(
- label ?? project!.name,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: style,
- ),
- // Teammates' agents cannot push to its repository yet (project_github.dart).
- if (project != null)
- ProjectGitHubLine(
- controller: controller,
- project: project,
- ),
- ],
+ // The chevron stands beside the row's own click, not inside it: the
+ // name opens and the chevron toggles.
+ child: Row(
+ children: [
+ Expanded(
+ child: _arrowToggles(
+ project,
+ expanded: expanded,
+ child: InkWell(
+ key: ValueKey(key ?? 'super-group-${group.id}'),
+ onTap: () => onSelect(group.id),
+ hoverColor: grid.AppSurface.hoverFill,
+ focusColor: grid.AppSurface.hoverFill,
+ borderRadius: BorderRadius.circular(DesktopChrome.rowRadius),
+ child: Row(
+ children: [
+ SizedBox(width: SuperTabSectionHeading.indentFor(0)),
+ SizedBox(
+ width: _iconColumn,
+ child: project != null || label != null
+ ? _channelMark()
+ : null,
+ ),
+ Expanded(
+ child: Semantics(
+ label: project?.isPrivate == true
+ ? 'Private project'
+ : null,
+ selected: selected,
+ child: Tooltip(
+ message:
+ label ??
+ project?.name ??
+ SuperTabWorkgroupName.plain(group),
+ child: ConstrainedBox(
+ constraints: const BoxConstraints(minHeight: 36),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(
+ vertical: 8,
+ ),
+ child: Row(
+ children: [
+ Expanded(
+ child: label == null && project == null
+ ? SuperTabWorkgroupName(
+ group,
+ style: style,
+ )
- : Text(
- label ?? project!.name,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: style,
++ : Column(
++ crossAxisAlignment:
++ CrossAxisAlignment.start,
++ mainAxisSize: MainAxisSize.min,
++ children: [
++ Text(
++ label ?? project!.name,
++ maxLines: 1,
++ overflow:
++ TextOverflow.ellipsis,
++ style: style,
++ ),
++ // Teammates' agents cannot push to its repository yet (project_github.dart).
++ if (project != null)
++ ProjectGitHubLine(
++ controller: controller,
++ project: project,
++ ),
++ ],
+ ),
),
- ),
- if (project?.isPrivate == true) ...[
- const SizedBox(width: 8),
- Tooltip(
- message: 'Private project',
- child: Icon(
- AppIcons.lock,
- size: 14,
- color: DesktopChrome.muted,
+ if (project?.isPrivate == true) ...[
+ const SizedBox(width: 8),
+ Tooltip(
+ message: 'Private project',
+ child: Icon(
+ AppIcons.lock,
+ size: 14,
+ color: DesktopChrome.muted,
+ ),
+ ),
+ ],
+ ],
),
),
- ],
- ],
- ),
- ),
- ),
- ),
- ),
- ),
- if (projectPmUnread > 0)
- Padding(
- padding: const EdgeInsets.only(left: 4),
- child: SuperTabPmUnread(
- projectPmUnread,
- key: ValueKey('super-project-pm-unread-${project!.id}'),
- onTap: () => _openPmChat(project.id),
- ),
- ),
- SizedBox(
- width: _iconColumn,
- child: Center(
- child: waiting
- ? Tooltip(
- message: 'Needs a human',
- child: Text(
- '?',
- style: DesktopChrome.control(
- color: grid.AppPalette.warn,
- medium: true,
),
),
- )
- : unread
- ? Semantics(
- label: 'Unread messages',
- child: Container(
- width: _dotSize,
- height: _dotSize,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: DesktopChrome.accent,
+ ),
+ ),
+ if (projectPmUnread > 0)
+ Padding(
+ padding: const EdgeInsets.only(left: 4),
+ child: SuperTabPmUnread(
+ projectPmUnread,
+ key: ValueKey(
+ 'super-project-pm-unread-${project!.id}',
),
+ onTap: () => _openPmChat(project.id),
),
- )
- : null,
+ ),
+ SizedBox(
+ width: _iconColumn,
+ child: Center(
+ child: waiting
+ ? Tooltip(
+ message: 'Needs a human',
+ child: Text(
+ '?',
+ style: DesktopChrome.control(
+ color: grid.AppPalette.warn,
+ medium: true,
+ ),
+ ),
+ )
+ : unread
+ ? Semantics(
+ label: 'Unread messages',
+ child: Container(
+ width: _dotSize,
+ height: _dotSize,
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ color: DesktopChrome.accent,
+ ),
+ ),
+ )
+ : null,
+ ),
+ ),
+ ],
+ ),
),
),
- ],
- ),
+ ),
+ // At the far right edge, since it is always there and the dot
+ // beside it comes and goes (Dee, 2026-10-28).
+ if (project != null) _toggle(project, expanded: expanded),
+ ],
),
),
);