@ai-ecoverse/slicc-spectrum 1.48.0 → 1.49.1
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/README.md +4 -4
- package/dist/slicc-dummy.js +48 -4
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +93 -13
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/network.d.ts +10 -3
- package/dist/types/dummy/network.d.ts +2 -1
- package/dist/types/model/types.d.ts +10 -1
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-cloud-state-slow-connection.js';
|
|
|
10
10
|
import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
|
|
11
11
|
import '@adobe/spectrum-wc-icons/swc-icon-info-circle.js';
|
|
12
12
|
import { type TemplateResult } from 'lit';
|
|
13
|
-
import type { BrowserAutomation, LinkedDevice, LinkState, NetworkExit, NetworkLinks, NetworkRoute, NetworkStatus, SliccModel, TailnetState, TailnetStatus } from '../model/types.js';
|
|
13
|
+
import type { BrowserAutomation, LinkedDevice, LinkState, NetworkExit, NetworkLinks, NetworkRoute, NetworkStatus, RemoteControlMode, SliccModel, TailnetState, TailnetStatus } from '../model/types.js';
|
|
14
14
|
import { ModelElement } from './base.js';
|
|
15
15
|
export { command } from './reach.js';
|
|
16
16
|
export declare const networkHealth: Record<NetworkStatus['health'], readonly ['positive' | 'notice' | 'negative', string]>;
|
|
@@ -20,8 +20,15 @@ export declare function browserLine(browser: BrowserAutomation, links?: NetworkL
|
|
|
20
20
|
export declare const tailnetStates: Record<TailnetState, readonly ['neutral' | 'info' | 'positive' | 'notice' | 'negative', string]>;
|
|
21
21
|
export declare function tailnetAddress(addresses: readonly string[]): string | undefined;
|
|
22
22
|
export declare function exitNodeValue(tailnet: TailnetStatus): string;
|
|
23
|
-
export declare const linkStates: Record<LinkState, readonly ['info' | 'positive' | 'notice', string]>;
|
|
24
|
-
export
|
|
23
|
+
export declare const linkStates: Record<LinkState, readonly ['neutral' | 'info' | 'positive' | 'notice', string]>;
|
|
24
|
+
export declare const controlBadges: Record<RemoteControlMode, string>;
|
|
25
|
+
export interface RemoteLight {
|
|
26
|
+
mode: RemoteControlMode;
|
|
27
|
+
text: string;
|
|
28
|
+
tooltip: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function remoteLight(status: NetworkStatus | undefined): RemoteLight | null;
|
|
31
|
+
export type LinksSummary = 'permission' | 'none' | 'reconnecting' | 'connecting' | 'offline' | 'linked';
|
|
25
32
|
export declare function linksSummary(links: NetworkLinks): LinksSummary;
|
|
26
33
|
export declare function linksLight(links: NetworkLinks): readonly ['neutral' | 'info' | 'positive' | 'notice', string];
|
|
27
34
|
export declare function exitValue(exit: NetworkExit | undefined): string;
|
|
@@ -3,7 +3,7 @@ import type { NetworkExit, NetworkLinks, NetworkPort, NetworkStatus, TailnetStat
|
|
|
3
3
|
import type { Clock } from './clock.js';
|
|
4
4
|
export type NetworkScenario = 'ok' | 'limited' | 'failing';
|
|
5
5
|
export type TailnetScenario = 'off' | 'needs-login' | 'running' | 'failed';
|
|
6
|
-
export type LinksScenario = 'none' | 'preparing' | 'linked' | 'reconnecting' | 'exit' | 'prompt' | 'denied';
|
|
6
|
+
export type LinksScenario = 'none' | 'preparing' | 'linked' | 'reconnecting' | 'exit' | 'prompt' | 'denied' | 'remote';
|
|
7
7
|
export declare function networkFixtures(scenario: NetworkScenario, now?: number): NetworkStatus;
|
|
8
8
|
export declare function tailnetFixtures(scenario: TailnetScenario): TailnetStatus;
|
|
9
9
|
export declare function joinUrl(rotation?: number): string;
|
|
@@ -18,6 +18,7 @@ export declare class DummyNetwork extends Emitter<{
|
|
|
18
18
|
scenario: NetworkScenario;
|
|
19
19
|
setExit?: (exit: NetworkExit) => Promise<void>;
|
|
20
20
|
unlink?: (id: string) => Promise<void>;
|
|
21
|
+
setRemoteControl?: (id: string, allowed: boolean) => Promise<void>;
|
|
21
22
|
rotateJoinUrl?: () => Promise<void>;
|
|
22
23
|
retryLinks?: () => Promise<void>;
|
|
23
24
|
constructor(scenario: NetworkScenario, clock: Clock, tailnet?: TailnetScenario, links?: LinksScenario);
|
|
@@ -567,6 +567,7 @@ export interface PackageItem {
|
|
|
567
567
|
commands: readonly string[];
|
|
568
568
|
requires?: readonly string[];
|
|
569
569
|
notes?: readonly string[];
|
|
570
|
+
warnings?: readonly string[];
|
|
570
571
|
state: PackageState;
|
|
571
572
|
version: string | null;
|
|
572
573
|
offered: string | null;
|
|
@@ -615,7 +616,12 @@ export interface NetworkStatus {
|
|
|
615
616
|
}
|
|
616
617
|
export type LinkMode = 'local' | 'remote';
|
|
617
618
|
export type LinkOffer = 'net' | 'http' | 'ssh';
|
|
618
|
-
export type LinkState = 'connecting' | 'connected' | 'reconnecting';
|
|
619
|
+
export type LinkState = 'connecting' | 'connected' | 'reconnecting' | 'offline';
|
|
620
|
+
export interface RemoteControl {
|
|
621
|
+
allowed: boolean;
|
|
622
|
+
fixed?: boolean;
|
|
623
|
+
}
|
|
624
|
+
export type RemoteControlMode = 'prompt' | 'watch';
|
|
619
625
|
export interface LinkedBrowser {
|
|
620
626
|
runtime: string;
|
|
621
627
|
name: string;
|
|
@@ -631,6 +637,8 @@ export interface LinkedDevice {
|
|
|
631
637
|
exit: boolean;
|
|
632
638
|
state: LinkState;
|
|
633
639
|
browsers?: readonly LinkedBrowser[];
|
|
640
|
+
control?: RemoteControl;
|
|
641
|
+
controlling?: RemoteControlMode;
|
|
634
642
|
}
|
|
635
643
|
export interface NetworkLinks {
|
|
636
644
|
joinUrl: string | null;
|
|
@@ -676,6 +684,7 @@ export interface NetworkPort extends Subscribable<{
|
|
|
676
684
|
logoutTailnet?(): Promise<void>;
|
|
677
685
|
setExit?(exit: NetworkExit): Promise<void>;
|
|
678
686
|
unlink?(id: string): Promise<void>;
|
|
687
|
+
setRemoteControl?(id: string, allowed: boolean): Promise<void>;
|
|
679
688
|
rotateJoinUrl?(): Promise<void>;
|
|
680
689
|
retryLinks?(): Promise<void>;
|
|
681
690
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.49.1",
|
|
4
4
|
"description": "Web components for SLICC on Spectrum Web Components: the terminal, the app shell and its surfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@adobe/spectrum-wc-icons": "2.0.0-beta.4",
|
|
75
75
|
"@ai-ecoverse/slicc-kernel": "1.42.2",
|
|
76
76
|
"@ai-ecoverse/slicc-shared-web": "1.12.1",
|
|
77
|
-
"@ai-ecoverse/wasm-bash": "5.3.0-
|
|
77
|
+
"@ai-ecoverse/wasm-bash": "5.3.0-17",
|
|
78
78
|
"@ai-ecoverse/wasm-coreutils": "9.7.0-3",
|
|
79
79
|
"@biomejs/biome": "2.5.15",
|
|
80
80
|
"@fontsource/source-code-pro": "5.3.0",
|