agl 42.0.0 → 42.1.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 +6 -0
- package/dist_serve/bundle.js +2493 -2143
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +2 -2
- package/dist_ts/classes.authstore.d.ts +2 -0
- package/dist_ts/classes.authstore.js +50 -17
- package/dist_ts/classes.controller.d.ts +71 -2
- package/dist_ts/classes.controller.js +500 -113
- package/dist_ts/classes.controllerdevices.d.ts +128 -0
- package/dist_ts/classes.controllerdevices.js +472 -0
- package/dist_ts/classes.sessionfeed.d.ts +10 -1
- package/dist_ts/classes.sessionfeed.js +12 -2
- package/dist_ts/classes.validation.d.ts +2 -0
- package/dist_ts/classes.validation.js +2 -2
- package/dist_ts/functions.deviceapi.d.ts +28 -0
- package/dist_ts/functions.deviceapi.js +246 -0
- package/dist_ts/functions.deviceproof.d.ts +33 -0
- package/dist_ts/functions.deviceproof.js +93 -0
- package/dist_ts/functions.remotecli.d.ts +1 -1
- package/dist_ts/functions.remotecli.js +12 -7
- package/dist_ts/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +6 -1
- package/dist_ts_interfaces/devices.d.ts +331 -0
- package/dist_ts_interfaces/devices.js +34 -0
- package/dist_ts_interfaces/index.d.ts +2 -0
- package/dist_ts_interfaces/index.js +3 -1
- package/dist_ts_interfaces/interfaces.d.ts +4 -2
- package/dist_ts_interfaces/interfaces.js +3 -2
- package/dist_ts_interfaces/mcprequests.d.ts +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -1
- package/dist_ts_interfaces/requests.devices.d.ts +89 -0
- package/dist_ts_interfaces/requests.devices.js +2 -0
- package/dist_ts_interfaces/requests.js +1 -1
- package/package.json +1 -1
- package/readme.md +36 -4
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +2 -2
- package/ts/classes.authstore.ts +46 -14
- package/ts/classes.controller.ts +697 -167
- package/ts/classes.controllerdevices.ts +469 -0
- package/ts/classes.sessionfeed.ts +13 -1
- package/ts/classes.validation.ts +1 -1
- package/ts/functions.deviceapi.ts +295 -0
- package/ts/functions.deviceproof.ts +118 -0
- package/ts/functions.remotecli.ts +11 -5
- package/ts/interfaces.auth.ts +5 -0
- package/ts_interfaces/devices.schema.json +890 -0
- package/ts_interfaces/devices.ts +392 -0
- package/ts_interfaces/index.ts +2 -0
- package/ts_interfaces/interfaces.ts +4 -1
- package/ts_interfaces/mcprequests.ts +1 -1
- package/ts_interfaces/requests.devices.ts +95 -0
- package/ts_interfaces/requests.ts +10 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.controllersocketclient.ts +27 -0
- package/ts_web/elements.devices.ts +752 -0
- package/ts_web/elements.harnesscontrollerapp.ts +18 -1
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
type IAccountsOpenConfigurationDetail,
|
|
16
16
|
type IAccountsOpenTerminalDetail,
|
|
17
17
|
} from './elements.accounts.js';
|
|
18
|
+
import { AglDevices } from './elements.devices.js';
|
|
18
19
|
import type {
|
|
19
20
|
IPromptQueueReleaseDetail,
|
|
20
21
|
TPromptQueueReleaseAction,
|
|
@@ -1002,7 +1003,7 @@ const browserSidebarSections: plugins.deesCatalog.IHarnessSidebarSection[] = [
|
|
|
1002
1003
|
];
|
|
1003
1004
|
const sidebarWidthDefault = 292;
|
|
1004
1005
|
/** The sections of the Settings modal. */
|
|
1005
|
-
type TSettingsSectionId = 'general' | 'intelligence' | 'configuration' | 'projects' | 'accounts' | 'codex';
|
|
1006
|
+
type TSettingsSectionId = 'general' | 'intelligence' | 'configuration' | 'projects' | 'accounts' | 'devices' | 'codex';
|
|
1006
1007
|
/** The Settings section that resolves each Session Intelligence remedy. */
|
|
1007
1008
|
const sessionIntelligenceRemedySettingsSections: Record<
|
|
1008
1009
|
interfaces.TControllerSessionIntelligenceRemedy,
|
|
@@ -16940,6 +16941,11 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
16940
16941
|
return this.settingsModalRef?.shadowRoot?.querySelector<AglAccounts>('agl-accounts') ?? null;
|
|
16941
16942
|
}
|
|
16942
16943
|
|
|
16944
|
+
/** The Devices screen, while Settings shows it. */
|
|
16945
|
+
private devicesScreen(): AglDevices | null {
|
|
16946
|
+
return this.settingsModalRef?.shadowRoot?.querySelector<AglDevices>('agl-devices') ?? null;
|
|
16947
|
+
}
|
|
16948
|
+
|
|
16943
16949
|
private async handleControllerEvent(eventArg: interfaces.IControllerEvent): Promise<void> {
|
|
16944
16950
|
if (!this.authenticated) {
|
|
16945
16951
|
return;
|
|
@@ -17138,6 +17144,12 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
17138
17144
|
void this.accountsScreen()?.refreshClaude();
|
|
17139
17145
|
return;
|
|
17140
17146
|
}
|
|
17147
|
+
if (eventArg.type === 'devices.changed') {
|
|
17148
|
+
// A device paired, was revoked, or came or went: the Devices screen reads the list again; the change of a
|
|
17149
|
+
// pairing names its code, so the pairing dialog that shows that code turns into the device.
|
|
17150
|
+
void this.devicesScreen()?.refresh(eventArg.devicePairing);
|
|
17151
|
+
return;
|
|
17152
|
+
}
|
|
17141
17153
|
if (eventArg.type === 'accounts.changed') {
|
|
17142
17154
|
// The controller owns the account view and announces every change of it. The screen re-reads
|
|
17143
17155
|
// on this event and on nothing else, which is why it needs no poll and no timer.
|
|
@@ -18143,6 +18155,7 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
18143
18155
|
{ id: 'configuration', title: 'Configuration', description: 'The master configuration every harness is projected from.', icon: 'lucide:Files' },
|
|
18144
18156
|
{ id: 'projects', title: 'Projects', description: 'Registered projects and the directories new conversations can use.', icon: 'lucide:FolderTree' },
|
|
18145
18157
|
{ id: 'accounts', title: 'Accounts', description: 'The subscriptions AGL places work on.', icon: 'lucide:Users' },
|
|
18158
|
+
{ id: 'devices', title: 'Devices', description: 'The phones and computers paired with this controller.', icon: 'lucide:Smartphone' },
|
|
18146
18159
|
{ id: 'codex', title: 'Codex connections', description: 'The Codex servers AGL talks to, and which one each project\'s new conversations use.', icon: 'lucide:Terminal' },
|
|
18147
18160
|
] as const satisfies readonly { id: TSettingsSectionId; title: string; description: string; icon: string }[];
|
|
18148
18161
|
let activeSection: TSettingsSectionId = initialSectionArg;
|
|
@@ -18232,6 +18245,10 @@ ${entry.detail.stack}`}</pre>`}
|
|
|
18232
18245
|
@accounts-open-terminal=${this.handleAccountsOpenTerminal}
|
|
18233
18246
|
@accounts-open-configuration=${this.handleAccountsOpenConfiguration}></agl-accounts>
|
|
18234
18247
|
</section>
|
|
18248
|
+
<section class="aglSettingsPanel" data-settings-panel="devices" aria-label="Devices"
|
|
18249
|
+
?hidden=${activeSection !== 'devices'} ?inert=${activeSection !== 'devices'}>
|
|
18250
|
+
<agl-devices .client=${this.socketClient}></agl-devices>
|
|
18251
|
+
</section>
|
|
18235
18252
|
<section class="aglSettingsPanel" data-settings-panel="codex" aria-label="Codex connections"
|
|
18236
18253
|
?hidden=${activeSection !== 'codex'} ?inert=${activeSection !== 'codex'}>
|
|
18237
18254
|
<harness-codex-connections .client=${this.socketClient}
|