agl 43.1.0 → 43.3.0
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.
- package/changelog.md +32 -0
- package/dist_serve/bundle.js +5950 -5530
- package/dist_serve/bundle.js.map +2 -2
- package/dist_serve/bundle.js.third-party-notices.json +31 -31
- package/dist_serve/bundle.js.third-party-notices.txt +31 -31
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +521 -17
- package/dist_ts/aglapi/interfaces.d.ts +3 -0
- package/dist_ts/aglapi/interfaces.js +2 -1
- package/dist_ts/classes.accountsactions.d.ts +3 -1
- package/dist_ts/classes.accountsactions.js +21 -3
- package/dist_ts/classes.authmodels.js +17 -4
- package/dist_ts/classes.authstore.js +16 -2
- package/dist_ts/classes.claudeharness.d.ts +16 -0
- package/dist_ts/classes.claudeharness.js +24 -2
- package/dist_ts/classes.cli.d.ts +4 -2
- package/dist_ts/classes.cli.js +6 -3
- package/dist_ts/classes.codexclientadapter.d.ts +11 -0
- package/dist_ts/classes.codexclientadapter.js +14 -2
- package/dist_ts/classes.controller.d.ts +175 -11
- package/dist_ts/classes.controller.js +1213 -173
- package/dist_ts/classes.controllerdevices.d.ts +2 -0
- package/dist_ts/classes.controllerdevices.js +6 -1
- package/dist_ts/classes.controllermanagement.d.ts +14 -4
- package/dist_ts/classes.controllermanagement.js +20 -2
- package/dist_ts/classes.gatewayclient.d.ts +115 -0
- package/dist_ts/classes.gatewayclient.js +336 -0
- package/dist_ts/classes.gatewayclientstore.d.ts +97 -0
- package/dist_ts/classes.gatewayclientstore.js +261 -0
- package/dist_ts/classes.inbox.d.ts +72 -0
- package/dist_ts/classes.inbox.js +231 -0
- package/dist_ts/classes.inferencerouter.d.ts +19 -0
- package/dist_ts/classes.inferencerouter.js +15 -3
- package/dist_ts/classes.inferenceservice.d.ts +9 -0
- package/dist_ts/classes.inferenceservice.js +28 -2
- package/dist_ts/classes.mcpclient.d.ts +4 -1
- package/dist_ts/classes.mcpclient.js +42 -6
- package/dist_ts/classes.mcpcontrollerhost.d.ts +3 -1
- package/dist_ts/classes.mcpcontrollerhost.js +11 -1
- package/dist_ts/classes.mcptools.d.ts +3 -3
- package/dist_ts/classes.mcptools.js +38 -8
- package/dist_ts/classes.mcpvalidation.d.ts +5 -0
- package/dist_ts/classes.mcpvalidation.js +38 -2
- package/dist_ts/classes.nativesessions.d.ts +17 -4
- package/dist_ts/classes.nativesessions.js +41 -9
- package/dist_ts/classes.opencodeclient.d.ts +23 -2
- package/dist_ts/classes.opencodeclient.js +47 -3
- package/dist_ts/classes.proxycontrol.d.ts +11 -0
- package/dist_ts/classes.proxycontrol.js +7 -1
- package/dist_ts/classes.proxycontrolclient.d.ts +17 -0
- package/dist_ts/classes.proxycontrolclient.js +35 -1
- package/dist_ts/classes.proxydaemon.js +8 -1
- package/dist_ts/classes.proxymonitor.d.ts +7 -0
- package/dist_ts/classes.proxymonitor.js +13 -1
- package/dist_ts/classes.publishedset.d.ts +38 -0
- package/dist_ts/classes.publishedset.js +50 -0
- package/dist_ts/classes.sessionfeed.d.ts +3 -3
- package/dist_ts/classes.sessionfeed.js +18 -26
- package/dist_ts/classes.systemmetricssampler.d.ts +6 -0
- package/dist_ts/classes.systemmetricssampler.js +15 -3
- package/dist_ts/classes.ticketstore.d.ts +50 -3
- package/dist_ts/classes.ticketstore.js +45 -8
- package/dist_ts/classes.trustedproxysecrets.d.ts +2 -0
- package/dist_ts/classes.trustedproxysecrets.js +5 -1
- package/dist_ts/driver/classes.directreports.d.ts +14 -4
- package/dist_ts/driver/classes.directreports.js +25 -6
- package/dist_ts/driver/classes.driverservice.d.ts +44 -3
- package/dist_ts/driver/classes.driverservice.js +50 -16
- package/dist_ts/fleet/classes.claudeworkers.d.ts +21 -5
- package/dist_ts/fleet/classes.claudeworkers.js +142 -46
- package/dist_ts/fleet/classes.codexworkers.d.ts +16 -4
- package/dist_ts/fleet/classes.codexworkers.js +22 -5
- package/dist_ts/fleet/classes.workercommand.d.ts +6 -1
- package/dist_ts/fleet/classes.workercommand.js +15 -4
- package/dist_ts/fleet/classes.workers.d.ts +5 -1
- package/dist_ts/fleet/classes.workers.js +8 -2
- package/dist_ts/fleet/functions.unbounddrivers.js +2 -2
- package/dist_ts/fleet/functions.workervalidation.js +2 -2
- package/dist_ts/fleet/interfaces.workers.d.ts +21 -3
- package/dist_ts/fleet/interfaces.workers.js +1 -1
- package/dist_ts/functions.agentmessage.d.ts +3 -0
- package/dist_ts/functions.agentmessage.js +4 -1
- package/dist_ts/functions.controllermanagementsurface.d.ts +4 -0
- package/dist_ts/functions.controllermanagementsurface.js +15 -1
- package/dist_ts/functions.deviceapi.d.ts +151 -4
- package/dist_ts/functions.deviceapi.js +893 -38
- package/dist_ts/functions.fleetworkercli.d.ts +1 -1
- package/dist_ts/functions.fleetworkercli.js +11 -8
- package/dist_ts/functions.gatewaycli.d.ts +24 -0
- package/dist_ts/functions.gatewaycli.js +395 -0
- package/dist_ts/functions.gatewayroute.d.ts +135 -0
- package/dist_ts/functions.gatewayroute.js +366 -0
- package/dist_ts/functions.inferencecli.js +32 -1
- package/dist_ts/functions.inferencecliarguments.d.ts +8 -2
- package/dist_ts/functions.inferencecliarguments.js +31 -3
- package/dist_ts/functions.mcpfleetworkertools.js +2 -2
- package/dist_ts/functions.proxycapacity.d.ts +50 -0
- package/dist_ts/functions.proxycapacity.js +142 -0
- package/dist_ts/functions.proxycapacitycli.d.ts +30 -0
- package/dist_ts/functions.proxycapacitycli.js +65 -0
- package/dist_ts/functions.remotecli.d.ts +30 -3
- package/dist_ts/functions.remotecli.js +44 -18
- package/dist_ts/functions.ticketvalidation.js +11 -2
- package/dist_ts/interfaces.auth.d.ts +25 -4
- package/dist_ts/interfaces.auth.js +15 -1
- package/dist_ts/plugins.d.ts +5 -1
- package/dist_ts/plugins.js +10 -2
- package/dist_ts_authswitch/authority-contract.d.ts +25 -0
- package/dist_ts_authswitch/authority-contract.js +1 -1
- package/dist_ts_authswitch/authority-overview.d.ts +8 -0
- package/dist_ts_authswitch/authority-overview.js +17 -6
- package/dist_ts_authswitch/authority-placement.d.ts +20 -16
- package/dist_ts_authswitch/authority-placement.js +19 -26
- package/dist_ts_authswitch/authority-renewal.d.ts +34 -0
- package/dist_ts_authswitch/authority-renewal.js +56 -0
- package/dist_ts_authswitch/authority-usagelimit.d.ts +29 -0
- package/dist_ts_authswitch/authority-usagelimit.js +66 -2
- package/dist_ts_authswitch/authority-usagewindows.d.ts +6 -0
- package/dist_ts_authswitch/authority-usagewindows.js +15 -1
- package/dist_ts_authswitch/classes.authoritybroker.d.ts +8 -0
- package/dist_ts_authswitch/classes.authoritybroker.js +35 -2
- package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritycli.js +44 -3
- package/dist_ts_authswitch/classes.authorityclient.d.ts +6 -1
- package/dist_ts_authswitch/classes.authorityclient.js +12 -4
- package/dist_ts_authswitch/classes.authoritydaemon.js +8 -1
- package/dist_ts_authswitch/classes.authoritydatabase.js +6 -2
- package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
- package/dist_ts_authswitch/classes.authoritymodels.js +21 -5
- package/dist_ts_interfaces/devices.d.ts +1012 -5
- package/dist_ts_interfaces/devices.js +68 -2
- package/dist_ts_interfaces/fleetworkers.d.ts +5 -3
- package/dist_ts_interfaces/gateway.d.ts +151 -0
- package/dist_ts_interfaces/gateway.js +66 -0
- package/dist_ts_interfaces/inbox.d.ts +234 -0
- package/dist_ts_interfaces/inbox.js +101 -0
- package/dist_ts_interfaces/index.d.ts +3 -0
- package/dist_ts_interfaces/index.js +4 -1
- package/dist_ts_interfaces/interfaces.d.ts +10 -3
- package/dist_ts_interfaces/interfaces.js +4 -2
- package/dist_ts_interfaces/management.d.ts +4 -4
- package/dist_ts_interfaces/management.js +3 -2
- package/dist_ts_interfaces/mcprequests.d.ts +48 -6
- package/dist_ts_interfaces/mcprequests.js +12 -1
- package/dist_ts_interfaces/mcpworkspacerequests.d.ts +4 -1
- package/dist_ts_interfaces/mcpworkspacerequests.js +1 -1
- package/dist_ts_interfaces/nativesessions.d.ts +16 -3
- package/dist_ts_interfaces/plugins.d.ts +2 -1
- package/dist_ts_interfaces/plugins.js +4 -2
- package/dist_ts_interfaces/proxycapacity.d.ts +99 -0
- package/dist_ts_interfaces/proxycapacity.js +74 -0
- package/dist_ts_interfaces/requests.accounts.d.ts +21 -0
- package/dist_ts_interfaces/requests.accounts.js +3 -1
- package/dist_ts_interfaces/requests.d.ts +3 -2
- package/dist_ts_interfaces/requests.js +1 -1
- package/docs/authswitch.md +20 -1
- package/package.json +6 -5
- package/readme.md +191 -31
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +520 -16
- package/ts/aglapi/interfaces.ts +1 -0
- package/ts/classes.accountsactions.ts +30 -3
- package/ts/classes.authmodels.ts +22 -3
- package/ts/classes.authstore.ts +15 -1
- package/ts/classes.claudeharness.ts +27 -1
- package/ts/classes.cli.ts +7 -3
- package/ts/classes.codexclientadapter.ts +14 -1
- package/ts/classes.controller.ts +1428 -249
- package/ts/classes.controllerdevices.ts +6 -0
- package/ts/classes.controllermanagement.ts +40 -7
- package/ts/classes.gatewayclient.ts +401 -0
- package/ts/classes.gatewayclientstore.ts +272 -0
- package/ts/classes.inbox.ts +239 -0
- package/ts/classes.inferencerouter.ts +27 -2
- package/ts/classes.inferenceservice.ts +28 -1
- package/ts/classes.mcpclient.ts +42 -3
- package/ts/classes.mcpcontrollerhost.ts +15 -0
- package/ts/classes.mcptools.ts +42 -9
- package/ts/classes.mcpvalidation.ts +32 -1
- package/ts/classes.nativesessions.ts +50 -12
- package/ts/classes.opencodeclient.ts +55 -4
- package/ts/classes.proxycontrol.ts +16 -0
- package/ts/classes.proxycontrolclient.ts +30 -0
- package/ts/classes.proxydaemon.ts +8 -0
- package/ts/classes.proxymonitor.ts +12 -0
- package/ts/classes.publishedset.ts +56 -0
- package/ts/classes.sessionfeed.ts +17 -20
- package/ts/classes.systemmetricssampler.ts +13 -2
- package/ts/classes.ticketstore.ts +73 -12
- package/ts/classes.trustedproxysecrets.ts +5 -0
- package/ts/driver/classes.directreports.ts +25 -6
- package/ts/driver/classes.driverservice.ts +75 -14
- package/ts/fleet/classes.claudeworkers.ts +112 -39
- package/ts/fleet/classes.codexworkers.ts +21 -6
- package/ts/fleet/classes.workercommand.ts +14 -4
- package/ts/fleet/classes.workers.ts +9 -2
- package/ts/fleet/functions.unbounddrivers.ts +1 -1
- package/ts/fleet/functions.workervalidation.ts +1 -1
- package/ts/fleet/interfaces.workers.ts +20 -5
- package/ts/functions.agentmessage.ts +3 -0
- package/ts/functions.controllermanagementsurface.ts +15 -0
- package/ts/functions.deviceapi.ts +1071 -34
- package/ts/functions.fleetworkercli.ts +10 -7
- package/ts/functions.gatewaycli.ts +436 -0
- package/ts/functions.gatewayroute.ts +429 -0
- package/ts/functions.inferencecli.ts +26 -0
- package/ts/functions.inferencecliarguments.ts +30 -4
- package/ts/functions.mcpfleetworkertools.ts +1 -1
- package/ts/functions.proxycapacity.ts +191 -0
- package/ts/functions.proxycapacitycli.ts +104 -0
- package/ts/functions.remotecli.ts +56 -20
- package/ts/functions.ticketvalidation.ts +11 -1
- package/ts/interfaces.auth.ts +36 -4
- package/ts/plugins.ts +12 -0
- package/ts_authswitch/authority-contract.ts +20 -0
- package/ts_authswitch/authority-overview.ts +28 -6
- package/ts_authswitch/authority-placement.ts +27 -32
- package/ts_authswitch/authority-renewal.ts +64 -0
- package/ts_authswitch/authority-usagelimit.ts +84 -1
- package/ts_authswitch/authority-usagewindows.ts +13 -0
- package/ts_authswitch/classes.authoritybroker.ts +34 -1
- package/ts_authswitch/classes.authoritycli.ts +49 -2
- package/ts_authswitch/classes.authorityclient.ts +14 -4
- package/ts_authswitch/classes.authoritydaemon.ts +9 -1
- package/ts_authswitch/classes.authoritydatabase.ts +5 -1
- package/ts_authswitch/classes.authoritymodels.ts +23 -3
- package/ts_authswitch/native-contracts.md +21 -0
- package/ts_authswitch/readme.md +1 -1
- package/ts_interfaces/devices.schema.json +3573 -603
- package/ts_interfaces/devices.ts +1093 -4
- package/ts_interfaces/fleetworkers.ts +5 -3
- package/ts_interfaces/gateway.ts +242 -0
- package/ts_interfaces/inbox.ts +287 -0
- package/ts_interfaces/index.ts +3 -0
- package/ts_interfaces/interfaces.ts +9 -2
- package/ts_interfaces/management.ts +6 -4
- package/ts_interfaces/mcprequests.ts +61 -4
- package/ts_interfaces/mcpworkspacerequests.ts +4 -2
- package/ts_interfaces/nativesessions.ts +17 -3
- package/ts_interfaces/plugins.ts +3 -1
- package/ts_interfaces/proxycapacity.ts +162 -0
- package/ts_interfaces/requests.accounts.ts +20 -0
- package/ts_interfaces/requests.ts +4 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/accounts.plugins.ts +4 -2
- package/ts_web/classes.accountsreadmodel.ts +33 -0
- package/ts_web/classes.browserpresentation.ts +19 -6
- package/ts_web/classes.inboxfeed.ts +329 -0
- package/ts_web/classes.nativesessionstate.ts +9 -23
- package/ts_web/elements.accounts.ts +121 -113
- package/ts_web/elements.configurationpane.ts +24 -37
- package/ts_web/elements.deployments.ts +66 -2
- package/ts_web/elements.devices.ts +4 -17
- package/ts_web/elements.flexlimitstrip.ts +21 -70
- package/ts_web/elements.harnesscontrollerapp.ts +198 -222
- package/ts_web/elements.inbox.ts +808 -0
- package/ts_web/functions.inbox.ts +95 -0
- package/ts_web/functions.sessioncards.ts +40 -0
- package/ts_web/plugins.ts +2 -0
|
@@ -31,11 +31,15 @@ import { AglConfigurationPane, type IConfigurationOpenSettingsDetail,
|
|
|
31
31
|
import { AglTicketBoard } from './elements.ticketboard.js';
|
|
32
32
|
import { AglMetricsBoard } from './elements.metricsboard.js';
|
|
33
33
|
import { AglDeployments } from './elements.deployments.js';
|
|
34
|
+
import { type IInboxOpenDetail } from './elements.inbox.js';
|
|
35
|
+
import './elements.inbox.js';
|
|
36
|
+
import { InboxFeed } from './classes.inboxfeed.js';
|
|
34
37
|
import { deploymentsAttentionCount, deploymentsHref } from './functions.deployments.js';
|
|
35
38
|
import { AglFleetWorker } from './elements.fleetworker.js';
|
|
36
39
|
import { AglNativeSession } from './elements.nativesession.js';
|
|
37
40
|
import type { ISessionIntelligenceRemedyDetail } from './classes.nativesessionstate.js';
|
|
38
41
|
import { ElicitationCards, elicitationReply } from './classes.elicitationcards.js';
|
|
42
|
+
import { permissionCard, questionCardId, questionCards } from './functions.sessioncards.js';
|
|
39
43
|
import {
|
|
40
44
|
renderSessionChat,
|
|
41
45
|
sessionIntelligenceAvailabilityAction,
|
|
@@ -1144,6 +1148,22 @@ const codexRejoinIsRunning = (rejoinArg: interfaces.IControllerCodexRejoinStatus
|
|
|
1144
1148
|
*/
|
|
1145
1149
|
const codexUsageLimitNotice = 'To run Codex on another account, choose Use for Codex on it in Settings → Accounts.';
|
|
1146
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* The harnesses a new conversation can run on, in the order the New conversation box offers them. Its toggle is
|
|
1153
|
+
* `allowEmpty`: nothing is chosen until the owner picks, so AGL never starts a harness nobody chose.
|
|
1154
|
+
*/
|
|
1155
|
+
const newConversationHarnesses = ['opencode', 'flex', 'codex', 'claude'] as const satisfies readonly TBrowserSessionHarnessId[];
|
|
1156
|
+
const newConversationHarnessOptions: plugins.deesCatalog.TMultitoggleOption[] = newConversationHarnesses.map(
|
|
1157
|
+
(harnessIdArg) => ({ key: harnessIdArg, label: sessionHarnessLabel(harnessIdArg) }),
|
|
1158
|
+
);
|
|
1159
|
+
|
|
1160
|
+
/** Codex's collaboration modes as the activity strip offers them; Plan keeps its tone while it is the mode. */
|
|
1161
|
+
const codexCollaborationModes = ['default', 'plan'] as const satisfies readonly interfaces.TControllerCodexCollaborationMode[];
|
|
1162
|
+
const codexCollaborationModeOptions: plugins.deesCatalog.TMultitoggleOption[] = [
|
|
1163
|
+
{ key: 'default', label: 'Default' },
|
|
1164
|
+
{ key: 'plan', label: 'Plan', tone: 'info' },
|
|
1165
|
+
];
|
|
1166
|
+
|
|
1147
1167
|
const codexModeOutcomeUnknownNotice = 'The Codex mode change outcome is unknown. Send, Steer, Queue, slash commands, and model changes are unavailable for this conversation.';
|
|
1148
1168
|
|
|
1149
1169
|
export const controllerClampSidebarWidth = (widthArg: number): number => Math.min(
|
|
@@ -1573,13 +1593,7 @@ class AglSystemStatsPanel extends plugins.deesElement.DeesElement {
|
|
|
1573
1593
|
h2 { margin: 0; font-size: 14px; font-weight: 700; }
|
|
1574
1594
|
.freshness { margin-top: 3px; color: var(--dees-color-text-muted); font-size: 11px; }
|
|
1575
1595
|
.freshness.stale { color: var(--dees-color-text-warning); }
|
|
1576
|
-
.close {
|
|
1577
|
-
flex: 0 0 auto; border: 1px solid var(--dees-color-border-subtle);
|
|
1578
|
-
border-radius: var(--dees-radius-sm); padding: 3px 8px;
|
|
1579
|
-
background: transparent; color: inherit; font: inherit; cursor: pointer;
|
|
1580
|
-
}
|
|
1581
|
-
.close:hover, .close:focus-visible { background: var(--dees-color-bg-secondary); }
|
|
1582
|
-
.close:focus-visible { outline: 2px solid var(--dees-color-accent-primary); outline-offset: 2px; }
|
|
1596
|
+
.close { flex: 0 0 auto; }
|
|
1583
1597
|
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
|
|
1584
1598
|
.summary.stale .stat { border-style: dashed; }
|
|
1585
1599
|
.summary.stale .statLabel,
|
|
@@ -1624,7 +1638,7 @@ class AglSystemStatsPanel extends plugins.deesElement.DeesElement {
|
|
|
1624
1638
|
}
|
|
1625
1639
|
|
|
1626
1640
|
public focusClose(): void {
|
|
1627
|
-
this.shadowRoot?.querySelector<
|
|
1641
|
+
void this.shadowRoot?.querySelector<plugins.deesCatalog.DeesButton>('.close')?.focus({ preventScroll: true });
|
|
1628
1642
|
}
|
|
1629
1643
|
|
|
1630
1644
|
private readonly requestClose = (): void => {
|
|
@@ -1742,7 +1756,7 @@ class AglSystemStatsPanel extends plugins.deesElement.DeesElement {
|
|
|
1742
1756
|
: `Live sample ${formatMetricTime(metrics!.sampledAt)} · ${ageSeconds}s old${stale ? ' · stale' : ''}`}
|
|
1743
1757
|
</div>
|
|
1744
1758
|
</div>
|
|
1745
|
-
<button class="close"
|
|
1759
|
+
<dees-button class="close" size="sm" @clicked=${this.requestClose}>Close</dees-button>
|
|
1746
1760
|
</div>
|
|
1747
1761
|
<div class=${`summary ${stale ? 'stale' : ''}`}>
|
|
1748
1762
|
<div class="stat"><span class="statLabel">CPU · whole system</span><span class=${`statValue ${this.highCpuWarning ? 'critical' : ''}`}>${formatPercentage(metrics?.cpuUsagePercent)}</span>
|
|
@@ -2361,6 +2375,10 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
2361
2375
|
private readonly answeredPermissionCards = new Map<string, plugins.deesCatalog.IHarnessPermissionRequest>();
|
|
2362
2376
|
// MCP elicitation cards of the viewed session: a card and its refusal keep their objects across renders.
|
|
2363
2377
|
private readonly elicitationCards = new ElicitationCards(controllerRuntimeIdToUiKey);
|
|
2378
|
+
/** The Inbox, listed on connect and kept current by `inbox.changed`; the header counts what waits. */
|
|
2379
|
+
private readonly inboxFeed = new InboxFeed({
|
|
2380
|
+
list: () => this.socketClient.fire<interfaces.IReq_ControllerInboxList>('controller.inbox.list', {}),
|
|
2381
|
+
});
|
|
2364
2382
|
// Multi-question requests answer card-by-card; the reply fires once all
|
|
2365
2383
|
// cards of the request are in.
|
|
2366
2384
|
private readonly pendingQuestionBatchAnswers = new Map<string, Map<number, string[]>>();
|
|
@@ -2662,6 +2680,10 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
2662
2680
|
@plugins.deesElement.state()
|
|
2663
2681
|
accessor deploymentsSelected = false;
|
|
2664
2682
|
|
|
2683
|
+
/** Whether the main pane shows the Inbox. */
|
|
2684
|
+
@plugins.deesElement.state()
|
|
2685
|
+
accessor inboxSelected = false;
|
|
2686
|
+
|
|
2665
2687
|
/** How many deploy targets run less than their newest release, rolled back or do not answer: the header badge. */
|
|
2666
2688
|
@plugins.deesElement.state()
|
|
2667
2689
|
accessor deploymentsAttention = 0;
|
|
@@ -2753,6 +2775,8 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
2753
2775
|
// The workspace editor's Monaco comes from the controller's own origin, which serves the very
|
|
2754
2776
|
// build the catalog pins; its language workers start there too.
|
|
2755
2777
|
libLoader.provideMonacoBaseUrl(interfaces.controllerMonacoAssetPath);
|
|
2778
|
+
// The header counts what waits in the Inbox.
|
|
2779
|
+
this.inboxFeed.subscribe(() => this.requestUpdate());
|
|
2756
2780
|
this.socketClient = new ControllerSocketClient({
|
|
2757
2781
|
onStatus: (statusArg) => this.handleConnectionStatus(statusArg),
|
|
2758
2782
|
onControllerEvent: (eventArg) => this.handleControllerEvent(eventArg),
|
|
@@ -2901,20 +2925,9 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
2901
2925
|
transform: none;
|
|
2902
2926
|
}
|
|
2903
2927
|
|
|
2928
|
+
/* The link sits centred under the sign-in; stretched, its host would be wider than the face a click reaches. */
|
|
2904
2929
|
.tempPasswordToggle {
|
|
2905
|
-
|
|
2906
|
-
border: none;
|
|
2907
|
-
background: transparent;
|
|
2908
|
-
padding: var(--dees-spacing-sm);
|
|
2909
|
-
color: var(--dees-color-text-secondary);
|
|
2910
|
-
font: inherit;
|
|
2911
|
-
font-size: var(--dees-font-control-size-sm);
|
|
2912
|
-
text-decoration: underline;
|
|
2913
|
-
cursor: pointer;
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
.tempPasswordToggle:hover {
|
|
2917
|
-
color: var(--dees-color-text-primary);
|
|
2930
|
+
align-self: center;
|
|
2918
2931
|
}
|
|
2919
2932
|
|
|
2920
2933
|
.tempPasswordForm {
|
|
@@ -3165,49 +3178,6 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
3165
3178
|
margin: 0;
|
|
3166
3179
|
}
|
|
3167
3180
|
|
|
3168
|
-
.pathSuggestionHint {
|
|
3169
|
-
padding: 4px var(--dees-spacing-sm);
|
|
3170
|
-
color: var(--dees-color-text-muted);
|
|
3171
|
-
font-size: var(--dees-font-caption2-size);
|
|
3172
|
-
line-height: 1.4;
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
.pathSuggestionList {
|
|
3176
|
-
display: grid;
|
|
3177
|
-
max-height: 190px;
|
|
3178
|
-
overflow-y: auto;
|
|
3179
|
-
padding: var(--dees-spacing-xs);
|
|
3180
|
-
gap: 2px;
|
|
3181
|
-
border-bottom: 1px solid var(--dees-color-border-subtle);
|
|
3182
|
-
background: var(--dees-color-bg-primary);
|
|
3183
|
-
}
|
|
3184
|
-
|
|
3185
|
-
.pathSuggestion {
|
|
3186
|
-
display: flex;
|
|
3187
|
-
align-items: center;
|
|
3188
|
-
gap: var(--dees-spacing-sm);
|
|
3189
|
-
width: 100%;
|
|
3190
|
-
padding: 6px var(--dees-spacing-sm);
|
|
3191
|
-
border: none;
|
|
3192
|
-
border-radius: var(--dees-radius-md);
|
|
3193
|
-
background: transparent;
|
|
3194
|
-
color: var(--dees-color-text-primary);
|
|
3195
|
-
font-family: var(--dees-font-family-mono);
|
|
3196
|
-
font-size: var(--dees-font-caption1-size);
|
|
3197
|
-
text-align: left;
|
|
3198
|
-
cursor: pointer;
|
|
3199
|
-
}
|
|
3200
|
-
|
|
3201
|
-
.pathSuggestion:hover {
|
|
3202
|
-
background: var(--dees-color-bg-secondary);
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
.pathSuggestion span {
|
|
3206
|
-
overflow: hidden;
|
|
3207
|
-
text-overflow: ellipsis;
|
|
3208
|
-
white-space: nowrap;
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
3181
|
.projectsRootHint {
|
|
3212
3182
|
padding: var(--dees-spacing-xs) var(--dees-spacing-sm) 0;
|
|
3213
3183
|
color: var(--dees-color-text-secondary);
|
|
@@ -3383,54 +3353,8 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
3383
3353
|
color: var(--dees-color-text-primary);
|
|
3384
3354
|
}
|
|
3385
3355
|
|
|
3386
|
-
.
|
|
3387
|
-
display: inline-flex;
|
|
3356
|
+
.codexCollaborationModeToggle {
|
|
3388
3357
|
min-width: 150px;
|
|
3389
|
-
padding: 2px;
|
|
3390
|
-
border-radius: var(--dees-radius-lg);
|
|
3391
|
-
background: var(--dees-color-fill-tertiary);
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
.codexCollaborationModeButton {
|
|
3395
|
-
flex: 1 1 0;
|
|
3396
|
-
min-height: 24px;
|
|
3397
|
-
padding: 1px 10px;
|
|
3398
|
-
border: 0;
|
|
3399
|
-
border-radius: calc(var(--dees-radius-lg) - 2px);
|
|
3400
|
-
background: transparent;
|
|
3401
|
-
color: var(--dees-color-text-secondary);
|
|
3402
|
-
font: 600 12px/1.35 var(--dees-font-family);
|
|
3403
|
-
cursor: pointer;
|
|
3404
|
-
}
|
|
3405
|
-
|
|
3406
|
-
.codexCollaborationModeButton[aria-pressed='true'] {
|
|
3407
|
-
background: var(--dees-color-control-thumb);
|
|
3408
|
-
color: var(--dees-color-text-primary);
|
|
3409
|
-
box-shadow: var(--dees-shadow-xs);
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
.codexCollaborationModeButton.plan[aria-pressed='true'] {
|
|
3413
|
-
background: color-mix(in srgb, var(--dees-color-accent-primary) 14%, var(--dees-color-control-thumb));
|
|
3414
|
-
color: var(--dees-color-accent-primary);
|
|
3415
|
-
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dees-color-accent-primary) 45%, transparent);
|
|
3416
|
-
}
|
|
3417
|
-
|
|
3418
|
-
.codexCollaborationModeButton:focus-visible {
|
|
3419
|
-
outline: 2px solid var(--dees-color-focus-ring);
|
|
3420
|
-
outline-offset: 1px;
|
|
3421
|
-
}
|
|
3422
|
-
|
|
3423
|
-
.codexCollaborationModeButton:disabled {
|
|
3424
|
-
opacity: .5;
|
|
3425
|
-
cursor: default;
|
|
3426
|
-
}
|
|
3427
|
-
|
|
3428
|
-
.codexCollaborationModeButton[aria-pressed='true']:disabled {
|
|
3429
|
-
opacity: 1;
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
@media (pointer: coarse) {
|
|
3433
|
-
.codexCollaborationModeButton { min-height: 44px; }
|
|
3434
3358
|
}
|
|
3435
3359
|
|
|
3436
3360
|
.codexDiffSummary {
|
|
@@ -3876,7 +3800,6 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
3876
3800
|
text-transform: uppercase;
|
|
3877
3801
|
}
|
|
3878
3802
|
|
|
3879
|
-
.newConversationHarnesses,
|
|
3880
3803
|
.newConversationSecondary {
|
|
3881
3804
|
display: flex;
|
|
3882
3805
|
flex-wrap: wrap;
|
|
@@ -3894,20 +3817,6 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
3894
3817
|
gap: var(--dees-spacing-xs);
|
|
3895
3818
|
}
|
|
3896
3819
|
|
|
3897
|
-
.newConversationStandardDir {
|
|
3898
|
-
display: flex;
|
|
3899
|
-
align-items: center;
|
|
3900
|
-
gap: var(--dees-spacing-xs);
|
|
3901
|
-
padding: 3px 8px;
|
|
3902
|
-
border: 1px solid var(--dees-color-border-subtle);
|
|
3903
|
-
border-radius: var(--dees-radius-lg);
|
|
3904
|
-
background: transparent;
|
|
3905
|
-
color: var(--dees-color-text-muted);
|
|
3906
|
-
font: inherit;
|
|
3907
|
-
font-size: 12px;
|
|
3908
|
-
cursor: pointer;
|
|
3909
|
-
}
|
|
3910
|
-
|
|
3911
3820
|
.statusBar {
|
|
3912
3821
|
position: relative;
|
|
3913
3822
|
display: flex;
|
|
@@ -4569,6 +4478,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
4569
4478
|
this.boardSelected = false;
|
|
4570
4479
|
this.metricsSelected = false;
|
|
4571
4480
|
this.deploymentsSelected = false;
|
|
4481
|
+
this.inboxSelected = false;
|
|
4572
4482
|
this.fleetWorkerSelected = '';
|
|
4573
4483
|
this.nativeSessionSelected = undefined;
|
|
4574
4484
|
this.directReportViews = undefined;
|
|
@@ -4579,6 +4489,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
4579
4489
|
this.sessionFeedRevision = 0;
|
|
4580
4490
|
this.sessionFeedBufferedDeltas = undefined;
|
|
4581
4491
|
this.sessionFeedRequestId += 1;
|
|
4492
|
+
this.inboxFeed.clear();
|
|
4582
4493
|
this.resourceViewSelected = false;
|
|
4583
4494
|
this.driverStatus = undefined;
|
|
4584
4495
|
this.selectedSessionId = undefined;
|
|
@@ -5277,6 +5188,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
5277
5188
|
this.refreshDeploymentsAttention(),
|
|
5278
5189
|
this.refreshDirectReports(),
|
|
5279
5190
|
this.refreshSessionFeed(),
|
|
5191
|
+
this.inboxFeed.refresh(),
|
|
5280
5192
|
]);
|
|
5281
5193
|
void this.retryStaleDraftSessionCleanup();
|
|
5282
5194
|
void this.refreshModelCatalog();
|
|
@@ -8386,7 +8298,8 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
8386
8298
|
);
|
|
8387
8299
|
const standaloneResourceSelected = this.selectedSessionId === undefined
|
|
8388
8300
|
&& (isNonEmptyString(this.selectedResourceId) || this.selectedConfigurationResource !== undefined
|
|
8389
|
-
|| this.boardSelected || this.metricsSelected || this.deploymentsSelected || this.
|
|
8301
|
+
|| this.boardSelected || this.metricsSelected || this.deploymentsSelected || this.inboxSelected
|
|
8302
|
+
|| this.fleetWorkerSelected !== ''
|
|
8390
8303
|
|| this.nativeSessionSelected !== undefined);
|
|
8391
8304
|
if (
|
|
8392
8305
|
!selectedStillExists
|
|
@@ -10643,6 +10556,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
10643
10556
|
this.boardSelected = false;
|
|
10644
10557
|
this.metricsSelected = false;
|
|
10645
10558
|
this.deploymentsSelected = false;
|
|
10559
|
+
this.inboxSelected = false;
|
|
10646
10560
|
this.fleetWorkerSelected = '';
|
|
10647
10561
|
this.nativeSessionSelected = undefined;
|
|
10648
10562
|
this.resourceViewSelected = false;
|
|
@@ -12551,6 +12465,18 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
12551
12465
|
|| modeChanging;
|
|
12552
12466
|
const modeDispatchFenced = isSessionRuntimeId(detailArg.session.id)
|
|
12553
12467
|
&& this.codexModeDispatchIsFenced(detailArg.session.id);
|
|
12468
|
+
// The mode the toggle shows: only one Codex confirmed. Without one it shows none, and then it is always disabled,
|
|
12469
|
+
// so no choice is offered or drawn while the mode is unknown. A mode change in flight or of unknown outcome and a
|
|
12470
|
+
// Codex that is not ready disable it as well.
|
|
12471
|
+
const modeShown = !modeUnconfirmed && activity.collaborationMode ? activity.collaborationMode.mode : '';
|
|
12472
|
+
const modeDisabled = modeShown === ''
|
|
12473
|
+
|| modeDispatchFenced
|
|
12474
|
+
|| !this.codexHarnessIsReady();
|
|
12475
|
+
// A running turn, another writer or another composer request in flight: the confirmed mode stays legible at full
|
|
12476
|
+
// contrast, but no pointer or key changes it.
|
|
12477
|
+
const modeReadOnly = this.composerMutationPending()
|
|
12478
|
+
|| turnRunning
|
|
12479
|
+
|| activity.writer !== 'idle';
|
|
12554
12480
|
const steeringHint = activity.writer === 'agl'
|
|
12555
12481
|
&& turnRunning
|
|
12556
12482
|
&& !modeDispatchFenced
|
|
@@ -12590,22 +12516,23 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
|
|
|
12590
12516
|
${modeControlVisible ? plugins.deesElement.html`
|
|
12591
12517
|
<div class="codexCollaborationMode">
|
|
12592
12518
|
<span class="codexCollaborationModeLabel">Mode</span>
|
|
12593
|
-
<
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12519
|
+
<dees-input-multitoggle
|
|
12520
|
+
class="codexCollaborationModeToggle"
|
|
12521
|
+
size="sm"
|
|
12522
|
+
label="Codex collaboration mode"
|
|
12523
|
+
.labelPosition=${'none'}
|
|
12524
|
+
.options=${codexCollaborationModeOptions}
|
|
12525
|
+
.selectedOption=${modeShown}
|
|
12526
|
+
.disabled=${modeDisabled}
|
|
12527
|
+
.readOnly=${modeReadOnly}
|
|
12528
|
+
@change=${(eventArg: Event) => {
|
|
12529
|
+
// The toggle shows the mode Codex confirmed: the pick goes back at once and is only a request.
|
|
12530
|
+
const toggle = eventArg.currentTarget as plugins.deesCatalog.DeesInputMultitoggle;
|
|
12531
|
+
const picked = codexCollaborationModes.find((modeArg) => modeArg === toggle.selectedOption);
|
|
12532
|
+
toggle.selectedOption = modeShown;
|
|
12533
|
+
if (picked) this.updateCodexCollaborationMode(picked);
|
|
12534
|
+
}}
|
|
12535
|
+
></dees-input-multitoggle>
|
|
12609
12536
|
</div>
|
|
12610
12537
|
` : ''}
|
|
12611
12538
|
${turnDiff ? plugins.deesElement.html`
|
|
@@ -13888,7 +13815,7 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
13888
13815
|
for (const candidateArg of sourceArg.questions) {
|
|
13889
13816
|
const requestKey = controllerRuntimeIdToUiKey(candidateArg.id);
|
|
13890
13817
|
const matchedIndex = candidateArg.questions.findIndex((_questionArg, indexArg) => (
|
|
13891
|
-
cardId === (candidateArg.questions.length
|
|
13818
|
+
cardId === questionCardId(requestKey, candidateArg.questions.length, indexArg)
|
|
13892
13819
|
));
|
|
13893
13820
|
if (matchedIndex >= 0) {
|
|
13894
13821
|
request = candidateArg;
|
|
@@ -17095,6 +17022,11 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
17095
17022
|
if (eventArg.sessionFeed) this.applySessionFeedDelta(eventArg.sessionFeed);
|
|
17096
17023
|
return;
|
|
17097
17024
|
}
|
|
17025
|
+
// Inbox deltas change the Inbox and its header count, nothing else on screen.
|
|
17026
|
+
if (eventArg.type === 'inbox.changed') {
|
|
17027
|
+
this.inboxFeed.apply(eventArg.inbox);
|
|
17028
|
+
return;
|
|
17029
|
+
}
|
|
17098
17030
|
// Usage deltas reach only a browser that watches a usage window: the metrics board's.
|
|
17099
17031
|
if (eventArg.type === 'usage.changed') {
|
|
17100
17032
|
if (eventArg.usageDelta) this.metricsBoard()?.applyDelta(eventArg.usageDelta);
|
|
@@ -17398,6 +17330,7 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
17398
17330
|
this.boardSelected = false;
|
|
17399
17331
|
this.metricsSelected = false;
|
|
17400
17332
|
this.deploymentsSelected = false;
|
|
17333
|
+
this.inboxSelected = false;
|
|
17401
17334
|
this.fleetWorkerSelected = '';
|
|
17402
17335
|
this.nativeSessionSelected = undefined;
|
|
17403
17336
|
this.resourceViewSelected = false;
|
|
@@ -17547,10 +17480,20 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
17547
17480
|
}
|
|
17548
17481
|
}
|
|
17549
17482
|
|
|
17550
|
-
|
|
17551
|
-
|
|
17483
|
+
/**
|
|
17484
|
+
* A picked directory: the field already reported it as typed (`input`), so the debounced read for the path itself
|
|
17485
|
+
* is dropped and the directories inside it are read at once.
|
|
17486
|
+
*/
|
|
17487
|
+
private readonly handlePathSuggestionSelect = (
|
|
17488
|
+
eventArg: CustomEvent<plugins.deesCatalog.IInputTextSuggestionSelectDetail>,
|
|
17489
|
+
): void => {
|
|
17490
|
+
if (this.suggestDebounce) {
|
|
17491
|
+
clearTimeout(this.suggestDebounce);
|
|
17492
|
+
this.suggestDebounce = undefined;
|
|
17493
|
+
}
|
|
17494
|
+
this.newConversationDirectory = eventArg.detail.value;
|
|
17552
17495
|
this.newConversationError = '';
|
|
17553
|
-
void this.fireSuggest(`${
|
|
17496
|
+
void this.fireSuggest(`${eventArg.detail.value}/`);
|
|
17554
17497
|
};
|
|
17555
17498
|
|
|
17556
17499
|
private readonly handleModelChange = (
|
|
@@ -19858,15 +19801,15 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
19858
19801
|
: ''}
|
|
19859
19802
|
`
|
|
19860
19803
|
: plugins.deesElement.html`
|
|
19861
|
-
<button
|
|
19804
|
+
<dees-button
|
|
19862
19805
|
class="tempPasswordToggle"
|
|
19863
|
-
|
|
19806
|
+
type="link"
|
|
19807
|
+
size="sm"
|
|
19808
|
+
@clicked=${() => {
|
|
19864
19809
|
this.showTempPasswordForm = true;
|
|
19865
19810
|
this.tempPasswordError = '';
|
|
19866
19811
|
}}
|
|
19867
|
-
>
|
|
19868
|
-
Use a CLI temporary password
|
|
19869
|
-
</button>
|
|
19812
|
+
>Use a CLI temporary password</dees-button>
|
|
19870
19813
|
`}
|
|
19871
19814
|
</section>
|
|
19872
19815
|
`;
|
|
@@ -20033,6 +19976,7 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
20033
19976
|
@clicked=${this.showErrorJournalModal}
|
|
20034
19977
|
></dees-button>`}
|
|
20035
19978
|
${this.renderDriverButton(current === 'driver')}
|
|
19979
|
+
${this.renderInboxButton(current === 'inbox')}
|
|
20036
19980
|
${(['terminal', 'browser', 'workspace'] as const).map((kindArg) => plugins.deesElement.html`
|
|
20037
19981
|
<dees-button
|
|
20038
19982
|
class=${`${kindArg}sButton headerNavButton resourceNavButton`}
|
|
@@ -20199,6 +20143,8 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
20199
20143
|
? this.renderNativeSession(this.nativeSessionSelected)
|
|
20200
20144
|
: this.boardSelected
|
|
20201
20145
|
? this.renderBoard()
|
|
20146
|
+
: this.inboxSelected
|
|
20147
|
+
? this.renderInbox()
|
|
20202
20148
|
: this.metricsSelected
|
|
20203
20149
|
? this.renderMetrics()
|
|
20204
20150
|
: this.deploymentsSelected
|
|
@@ -20360,57 +20306,45 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
20360
20306
|
placeholder=${this.standardProjectDirectories[0]
|
|
20361
20307
|
? `${this.standardProjectDirectories[0]}/my-project`
|
|
20362
20308
|
: '/an/absolute/path'}
|
|
20309
|
+
.suggestions=${directory === '' ? [] : this.pathSuggestions.map((suggestionArg) => suggestionArg.path)}
|
|
20363
20310
|
@input=${this.handleNewConversationDirectoryInput}
|
|
20311
|
+
@suggestion-select=${this.handlePathSuggestionSelect}
|
|
20364
20312
|
></dees-input-text>
|
|
20365
20313
|
</label>
|
|
20366
|
-
${directory !== '' && this.pathSuggestions.length > 0
|
|
20367
|
-
? plugins.deesElement.html`
|
|
20368
|
-
<div class="pathSuggestionList" role="listbox">
|
|
20369
|
-
${this.pathSuggestions.map((suggestionArg) => plugins.deesElement.html`
|
|
20370
|
-
<button
|
|
20371
|
-
class="pathSuggestion"
|
|
20372
|
-
role="option"
|
|
20373
|
-
@click=${() => this.handlePathSuggestionClick(suggestionArg)}
|
|
20374
|
-
>
|
|
20375
|
-
<dees-icon icon="lucide:Folder" iconSize="13"></dees-icon>
|
|
20376
|
-
<span>${suggestionArg.path}</span>
|
|
20377
|
-
</button>
|
|
20378
|
-
`)}
|
|
20379
|
-
</div>
|
|
20380
|
-
`
|
|
20381
|
-
: ''}
|
|
20382
20314
|
${this.standardProjectDirectories.length > 0
|
|
20383
20315
|
? plugins.deesElement.html`
|
|
20384
20316
|
<div class="newConversationStandardDirs">
|
|
20385
20317
|
${this.standardProjectDirectories.map((directoryArg) => plugins.deesElement.html`
|
|
20386
|
-
<button
|
|
20318
|
+
<dees-button
|
|
20387
20319
|
class="newConversationStandardDir"
|
|
20388
|
-
type="
|
|
20389
|
-
|
|
20320
|
+
type="outline"
|
|
20321
|
+
size="sm"
|
|
20322
|
+
shape="pill"
|
|
20323
|
+
icon="lucide:Folder"
|
|
20324
|
+
@clicked=${() => {
|
|
20390
20325
|
this.newConversationDirectory = `${directoryArg}/`;
|
|
20391
20326
|
this.newConversationError = '';
|
|
20392
20327
|
}}
|
|
20393
|
-
>
|
|
20394
|
-
<dees-icon icon="lucide:Folder" iconSize="13"></dees-icon>
|
|
20395
|
-
<span>${directoryArg}</span>
|
|
20396
|
-
</button>
|
|
20328
|
+
>${directoryArg}</dees-button>
|
|
20397
20329
|
`)}
|
|
20398
20330
|
</div>
|
|
20399
20331
|
`
|
|
20400
20332
|
: ''}
|
|
20401
20333
|
<div class="newConversationField">
|
|
20402
20334
|
<span class="newConversationLabel">Harness</span>
|
|
20403
|
-
<
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20335
|
+
<dees-input-multitoggle
|
|
20336
|
+
class="newConversationHarness"
|
|
20337
|
+
size="sm"
|
|
20338
|
+
label="Harness"
|
|
20339
|
+
.labelPosition=${'none'}
|
|
20340
|
+
.allowEmpty=${true}
|
|
20341
|
+
.options=${newConversationHarnessOptions}
|
|
20342
|
+
.selectedOption=${harnessId ?? ''}
|
|
20343
|
+
@change=${(eventArg: CustomEvent<{ selectedOption?: unknown }>) => {
|
|
20344
|
+
const picked = newConversationHarnesses.find((candidateArg) => candidateArg === eventArg.detail?.selectedOption);
|
|
20345
|
+
if (picked) this.selectNewConversationHarness(picked);
|
|
20346
|
+
}}
|
|
20347
|
+
></dees-input-multitoggle>
|
|
20414
20348
|
</div>
|
|
20415
20349
|
${harnessId === undefined
|
|
20416
20350
|
? plugins.deesElement.html`
|
|
@@ -20481,9 +20415,10 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
20481
20415
|
* The header entry whose view the main pane shows, in the main pane's own precedence: a fleet
|
|
20482
20416
|
* worker, a native session or a configuration resource is no header view.
|
|
20483
20417
|
*/
|
|
20484
|
-
private headerNavCurrent(): 'driver' | 'board' | 'deployments' | 'metrics' | interfaces.TControllerResourceKind | undefined {
|
|
20418
|
+
private headerNavCurrent(): 'driver' | 'inbox' | 'board' | 'deployments' | 'metrics' | interfaces.TControllerResourceKind | undefined {
|
|
20485
20419
|
if (this.fleetWorkerSelected || this.nativeSessionSelected) return undefined;
|
|
20486
20420
|
if (this.boardSelected) return 'board';
|
|
20421
|
+
if (this.inboxSelected) return 'inbox';
|
|
20487
20422
|
if (this.deploymentsSelected) return 'deployments';
|
|
20488
20423
|
if (this.metricsSelected) return 'metrics';
|
|
20489
20424
|
if (this.selectedConfigurationResource) return undefined;
|
|
@@ -20836,6 +20771,19 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
20836
20771
|
});
|
|
20837
20772
|
}
|
|
20838
20773
|
|
|
20774
|
+
/** Shows the Inbox, which the header button opens. */
|
|
20775
|
+
private openInbox(): Promise<void> {
|
|
20776
|
+
if (this.inboxSelected) return Promise.resolve();
|
|
20777
|
+
return this.leaveWorkspaceThen(() => {
|
|
20778
|
+
this.beginWorkspaceSelection();
|
|
20779
|
+
this.selectedResourceId = '';
|
|
20780
|
+
this.deselectConversationForStandaloneResource();
|
|
20781
|
+
void this.closeBrowserView();
|
|
20782
|
+
this.closeTerminalView();
|
|
20783
|
+
this.inboxSelected = true;
|
|
20784
|
+
});
|
|
20785
|
+
}
|
|
20786
|
+
|
|
20839
20787
|
/** Reads the deploy status for the header badge; `deployments.changed` reads it again. */
|
|
20840
20788
|
private async refreshDeploymentsAttention(): Promise<void> {
|
|
20841
20789
|
const generation = this.connectionGeneration;
|
|
@@ -21149,7 +21097,7 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
21149
21097
|
* not track yet becomes first, its terminal, the fleet worker bound to a native session, or the native session
|
|
21150
21098
|
* itself, where it runs and with no project. A row that cannot open says why in the sidebar.
|
|
21151
21099
|
*/
|
|
21152
|
-
private async openSessionFeedRow(rowArg: interfaces.IControllerSessionFeedRow): Promise<void> {
|
|
21100
|
+
private async openSessionFeedRow(rowArg: Pick<interfaces.IControllerSessionFeedRow, 'name' | 'open'>): Promise<void> {
|
|
21153
21101
|
const open = rowArg.open;
|
|
21154
21102
|
if (open.kind === 'native') {
|
|
21155
21103
|
if (open.workerName) return this.openFleetWorker(open.workerName);
|
|
@@ -21519,6 +21467,57 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
21519
21467
|
`;
|
|
21520
21468
|
}
|
|
21521
21469
|
|
|
21470
|
+
private renderInbox(): plugins.deesElement.TemplateResult {
|
|
21471
|
+
return plugins.deesElement.html`
|
|
21472
|
+
<agl-inbox .feed=${this.inboxFeed} .sender=${this.socketClient} @agl-inbox-open=${this.handleInboxOpen}></agl-inbox>
|
|
21473
|
+
`;
|
|
21474
|
+
}
|
|
21475
|
+
|
|
21476
|
+
/** "Open in session", "Open ticket" and "Open Driver" of an Inbox item: its home, wherever it lives. */
|
|
21477
|
+
private readonly handleInboxOpen = (eventArg: CustomEvent<IInboxOpenDetail>): void => {
|
|
21478
|
+
const item = eventArg.detail?.item;
|
|
21479
|
+
if (item) void this.openInboxItemHome(item);
|
|
21480
|
+
};
|
|
21481
|
+
|
|
21482
|
+
private async openInboxItemHome(itemArg: interfaces.TControllerInboxItem): Promise<void> {
|
|
21483
|
+
const where = itemArg.where;
|
|
21484
|
+
const row = 'rowId' in where ? this.sessionFeedRows.find((rowArg) => rowArg.id === where.rowId) : undefined;
|
|
21485
|
+
switch (where.kind) {
|
|
21486
|
+
case 'ticket': return this.openTicketOnBoard(where.ticketKey);
|
|
21487
|
+
case 'driver': return this.openDriver();
|
|
21488
|
+
// A subagent's prompt is answered in its parent conversation, which shows its children's requests.
|
|
21489
|
+
case 'conversation': case 'child':
|
|
21490
|
+
return this.openSessionFeedRow(row ?? { name: where.name, open: {
|
|
21491
|
+
kind: 'conversation', projectId: where.projectId, sessionId: where.kind === 'child' ? where.parentSessionId : where.sessionId,
|
|
21492
|
+
} });
|
|
21493
|
+
// The feed row names the fleet worker a native session belongs to; without one the session opens where it runs.
|
|
21494
|
+
case 'native': return row ? this.openSessionFeedRow(row) : this.openNativeSession(where.session);
|
|
21495
|
+
}
|
|
21496
|
+
}
|
|
21497
|
+
|
|
21498
|
+
/** The header's Inbox button: how many items wait for the owner, amber while any does. */
|
|
21499
|
+
private renderInboxButton(currentArg: boolean): plugins.deesElement.TemplateResult {
|
|
21500
|
+
const waiting = this.inboxFeed.total;
|
|
21501
|
+
const description = waiting > 0 ? `Inbox: ${waiting} wait${waiting === 1 ? 's' : ''} for you` : 'Inbox: nothing waits for you';
|
|
21502
|
+
return plugins.deesElement.html`
|
|
21503
|
+
<dees-button
|
|
21504
|
+
class="inboxButton headerNavButton"
|
|
21505
|
+
type="ghost"
|
|
21506
|
+
size=${this.compactHeader ? 'icon' : 'sm'}
|
|
21507
|
+
title=${description}
|
|
21508
|
+
.ariaLabel=${description}
|
|
21509
|
+
.pressed=${currentArg}
|
|
21510
|
+
aria-current=${currentArg ? 'page' : 'false'}
|
|
21511
|
+
.badge=${waiting > 0 ? (waiting > 99 ? '99+' : waiting) : undefined}
|
|
21512
|
+
.badgeVariant=${'warning'}
|
|
21513
|
+
@clicked=${() => void this.openInbox()}
|
|
21514
|
+
>
|
|
21515
|
+
<dees-icon icon="lucide:Inbox" iconSize="14"></dees-icon>
|
|
21516
|
+
Inbox
|
|
21517
|
+
</dees-button>
|
|
21518
|
+
`;
|
|
21519
|
+
}
|
|
21520
|
+
|
|
21522
21521
|
private renderMetrics(): plugins.deesElement.TemplateResult {
|
|
21523
21522
|
return plugins.deesElement.html`<agl-metrics-board .sender=${this.socketClient}></agl-metrics-board>`;
|
|
21524
21523
|
}
|
|
@@ -22090,26 +22089,14 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
22090
22089
|
...(isOpenCode ? (detailArg.childAttention ?? []).flatMap((attentionArg) => attentionArg.questions) : []),
|
|
22091
22090
|
];
|
|
22092
22091
|
for (const requestArg of pendingQuestions) {
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
pendingQuestionCardIds.add(
|
|
22099
|
-
harnessQuestions.push(
|
|
22100
|
-
|
|
22101
|
-
id: cardId,
|
|
22102
|
-
sessionId: controllerRuntimeIdToUiKey(requestArg.sessionId),
|
|
22103
|
-
question: questionArg.question,
|
|
22104
|
-
options: questionArg.options.map((optionArg) => ({
|
|
22105
|
-
label: optionArg.label,
|
|
22106
|
-
description: optionArg.description,
|
|
22107
|
-
})),
|
|
22108
|
-
multiSelect: questionArg.multiple === true,
|
|
22109
|
-
allowCustom: questionArg.custom !== false,
|
|
22110
|
-
},
|
|
22111
|
-
);
|
|
22112
|
-
});
|
|
22092
|
+
for (const card of questionCards(
|
|
22093
|
+
requestArg,
|
|
22094
|
+
controllerRuntimeIdToUiKey(requestArg.id),
|
|
22095
|
+
controllerRuntimeIdToUiKey(requestArg.sessionId),
|
|
22096
|
+
)) {
|
|
22097
|
+
pendingQuestionCardIds.add(card.id);
|
|
22098
|
+
harnessQuestions.push(this.answeredQuestionCards.get(card.id) ?? card);
|
|
22099
|
+
}
|
|
22113
22100
|
}
|
|
22114
22101
|
for (const [cardId, card] of this.answeredQuestionCards) {
|
|
22115
22102
|
// The transcript version of a just-answered question replaces the
|
|
@@ -22128,19 +22115,8 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
22128
22115
|
const permissionId = controllerRuntimeIdToUiKey(permissionArg.id);
|
|
22129
22116
|
pendingPermissionIds.add(permissionId);
|
|
22130
22117
|
harnessPermissions.push(
|
|
22131
|
-
this.answeredPermissionCards.get(permissionId)
|
|
22132
|
-
|
|
22133
|
-
sessionId: controllerRuntimeIdToUiKey(permissionArg.sessionId),
|
|
22134
|
-
createdAt: permissionArg.createdAt,
|
|
22135
|
-
title: permissionArg.title || 'Permission requested',
|
|
22136
|
-
type: permissionArg.type,
|
|
22137
|
-
metadata: {
|
|
22138
|
-
...(permissionArg.patterns.length > 0
|
|
22139
|
-
? { patterns: permissionArg.patterns }
|
|
22140
|
-
: {}),
|
|
22141
|
-
...permissionArg.metadata,
|
|
22142
|
-
},
|
|
22143
|
-
},
|
|
22118
|
+
this.answeredPermissionCards.get(permissionId)
|
|
22119
|
+
?? permissionCard(permissionArg, permissionId, controllerRuntimeIdToUiKey(permissionArg.sessionId)),
|
|
22144
22120
|
);
|
|
22145
22121
|
}
|
|
22146
22122
|
for (const [permissionId, card] of this.answeredPermissionCards) {
|