@ai-ecoverse/slicc-spectrum 1.67.1 → 1.68.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/README.md +4 -4
- package/dist/slicc-dummy.js +14 -7
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +114 -66
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/network.d.ts +8 -5
- package/dist/types/app/reach.d.ts +6 -3
- package/dist/types/model/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19,10 +19,13 @@ import { type ConfirmOptions } from './confirm.js';
|
|
|
19
19
|
export { command } from './reach.js';
|
|
20
20
|
export declare const networkHealth: Record<NetworkStatus['health'], readonly ['positive' | 'notice' | 'negative', string]>;
|
|
21
21
|
export declare const automation: Record<NonNullable<BrowserAutomation['via']> | 'none', string>;
|
|
22
|
+
export declare function exitDevice(status: NetworkStatus): LinkedDevice | undefined;
|
|
23
|
+
export declare function localExit(status: NetworkStatus): boolean;
|
|
22
24
|
export declare function automationOf(browser: BrowserAutomation): keyof typeof automation;
|
|
23
|
-
export declare function browserLine(browser: BrowserAutomation,
|
|
25
|
+
export declare function browserLine(browser: BrowserAutomation, status: NetworkStatus): string;
|
|
24
26
|
export declare const tailnetStates: Record<TailnetState, readonly ['neutral' | 'info' | 'positive' | 'notice' | 'negative', string]>;
|
|
25
27
|
export declare function tailnetAddress(addresses: readonly string[]): string | undefined;
|
|
28
|
+
export declare function tailnetLine(status: NetworkStatus): string;
|
|
26
29
|
export declare function exitNodeValue(tailnet: TailnetStatus): string;
|
|
27
30
|
export declare const linkStates: Record<LinkState, readonly ['neutral' | 'info' | 'positive' | 'notice', string]>;
|
|
28
31
|
export declare const controlBadges: Record<RemoteControlMode, string>;
|
|
@@ -45,8 +48,8 @@ export declare function linksLight(links: NetworkLinks): readonly ['neutral' | '
|
|
|
45
48
|
export declare function exitValue(exit: NetworkExit | undefined): string;
|
|
46
49
|
export declare function parseExit(value: string): NetworkExit;
|
|
47
50
|
export declare function unlinkBody(device: LinkedDevice, isExit: boolean): string;
|
|
48
|
-
export declare const wholeWeb: ReadonlySet<NetworkRoute |
|
|
49
|
-
export declare function routeOf(status: NetworkStatus): NetworkRoute |
|
|
51
|
+
export declare const wholeWeb: ReadonlySet<NetworkRoute | null>;
|
|
52
|
+
export declare function routeOf(status: NetworkStatus): NetworkRoute | null;
|
|
50
53
|
export declare function routeLine(status: NetworkStatus): string;
|
|
51
54
|
export declare function networkLabel(status: NetworkStatus): string;
|
|
52
55
|
export declare const networkIcon: Record<NetworkStatus['health'], TemplateResult>;
|
|
@@ -91,7 +94,7 @@ export declare class SliccNetwork extends ModelElement {
|
|
|
91
94
|
};
|
|
92
95
|
};
|
|
93
96
|
checking: boolean;
|
|
94
|
-
copied:
|
|
97
|
+
copied: string | null;
|
|
95
98
|
uncopied: boolean;
|
|
96
99
|
error: string;
|
|
97
100
|
busy: string;
|
|
@@ -106,6 +109,6 @@ export declare class SliccNetwork extends ModelElement {
|
|
|
106
109
|
reveal(section: string): void;
|
|
107
110
|
focus(): void;
|
|
108
111
|
check(): Promise<void>;
|
|
109
|
-
copy(): Promise<void>;
|
|
112
|
+
copy(text?: string): Promise<void>;
|
|
110
113
|
render(): TemplateResult;
|
|
111
114
|
}
|
|
@@ -2,14 +2,17 @@ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
|
2
2
|
import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
|
|
3
3
|
import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
|
|
4
4
|
import { type TemplateResult } from 'lit';
|
|
5
|
-
export declare const command = "
|
|
5
|
+
export declare const command = "curl -fsSL https://get.sliccy.ai/slicc | sh";
|
|
6
|
+
export declare const startCommand = "slicc";
|
|
7
|
+
export declare const nodeCommand = "npx sliccy@next";
|
|
6
8
|
export declare const reachStyles: import("lit").CSSResult;
|
|
7
9
|
export interface Reach {
|
|
8
10
|
intro: string;
|
|
9
11
|
extensionUrl?: string;
|
|
10
|
-
copied:
|
|
12
|
+
copied: string | null;
|
|
11
13
|
uncopied: boolean;
|
|
12
|
-
copy: () => void;
|
|
14
|
+
copy: (text: string) => void;
|
|
13
15
|
}
|
|
16
|
+
export declare function breakable(text: string): TemplateResult[];
|
|
14
17
|
export declare function reach({ intro, extensionUrl, copied, uncopied, copy }: Reach): TemplateResult;
|
|
15
18
|
export declare function copyText(text: string): Promise<boolean>;
|
|
@@ -631,7 +631,7 @@ export interface UpdatesPort extends Subscribable<UpdatesEvents> {
|
|
|
631
631
|
packages?(): readonly PackageItem[];
|
|
632
632
|
actPackage?(id: string, action: PackageAction): Promise<void>;
|
|
633
633
|
}
|
|
634
|
-
export type NetworkRoute = 'proxy' | 'extension' | 'tailnet' | 'page';
|
|
634
|
+
export type NetworkRoute = 'proxy' | 'extension' | 'tailnet' | 'page' | 'link';
|
|
635
635
|
export interface NetworkFailure {
|
|
636
636
|
url: string;
|
|
637
637
|
error: string;
|
package/package.json
CHANGED