@ai-ecoverse/slicc-spectrum 1.103.3 → 1.104.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 +12 -5
- package/dist/slicc-dummy.js +30 -2
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +101 -70
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/approvals.d.ts +3 -1
- package/dist/types/dummy/approvals.d.ts +1 -1
- package/dist/types/dummy/network.d.ts +2 -1
- package/dist/types/dummy.d.ts +1 -1
- package/dist/types/model/types.d.ts +13 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
|
2
2
|
import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
|
|
3
3
|
import '@spectrum-web-components/alert-dialog/sp-alert-dialog.js';
|
|
4
4
|
import { type PropertyValues } from 'lit';
|
|
5
|
-
import type { Approval, ApprovalDecision, GuestMessageApproval, GuestToolApproval, SliccModel, SudoApproval } from '../model/types.js';
|
|
5
|
+
import type { Approval, ApprovalDecision, GuestMessageApproval, GuestToolApproval, SliccModel, SudoApproval, TrayApproval } from '../model/types.js';
|
|
6
6
|
import { ModelElement } from './base.js';
|
|
7
7
|
export { deadline } from './messages.js';
|
|
8
8
|
export declare function countdown(ms: number): string;
|
|
@@ -17,6 +17,8 @@ export declare function secretRules(command: string, cwd?: string | null): Secre
|
|
|
17
17
|
export declare function alwaysHint(approval: SudoApproval): string;
|
|
18
18
|
export declare function guestAlwaysHint(approval: GuestMessageApproval | GuestToolApproval): string;
|
|
19
19
|
export declare function guestAsking(approval: GuestMessageApproval | GuestToolApproval): string;
|
|
20
|
+
export declare function trayTitle(approval: TrayApproval): string;
|
|
21
|
+
export declare function trayAsking(approval: TrayApproval): string;
|
|
20
22
|
export declare function approved(approval: Approval): string;
|
|
21
23
|
export declare function truncated(approval: Approval): boolean;
|
|
22
24
|
export declare function guestWaiting(approval: GuestMessageApproval | GuestToolApproval): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Emitter } from '../model/emitter.js';
|
|
2
2
|
import type { Approval, ApprovalDecision, ApprovalEnd, ApprovalsEvents, ApprovalsPort } from '../model/types.js';
|
|
3
3
|
import type { Clock } from './clock.js';
|
|
4
|
-
export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'guest' | 'guest-follower' | 'guest-always' | 'long' | 'guest-args' | 'guest-empty' | 'guest-truncated' | 'none';
|
|
4
|
+
export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'guest' | 'guest-follower' | 'guest-always' | 'long' | 'guest-args' | 'guest-empty' | 'guest-truncated' | 'tray' | 'tray-url' | 'tray-rotate' | 'tray-unlink' | 'tray-expired' | 'none';
|
|
5
5
|
export declare const guestArgs: string;
|
|
6
6
|
export declare function approvalFixtures(scenario: ApprovalScenario, now?: number): Approval[];
|
|
7
7
|
export declare class DummyApprovals extends Emitter<ApprovalsEvents> implements ApprovalsPort {
|
|
@@ -4,7 +4,7 @@ import type { Clock } from './clock.js';
|
|
|
4
4
|
import type { DummyFiles } from './files.js';
|
|
5
5
|
export type NetworkScenario = 'ok' | 'limited' | 'failing';
|
|
6
6
|
export type TailnetScenario = 'off' | 'needs-login' | 'running' | 'failed';
|
|
7
|
-
export type LinksScenario = 'none' | 'preparing' | 'linked' | 'reconnecting' | 'exit' | 'prompt' | 'denied' | 'remote' | 'followers' | 'pairing' | 'pairing-notray' | 'forgotten';
|
|
7
|
+
export type LinksScenario = 'none' | 'preparing' | 'linked' | 'reconnecting' | 'exit' | 'prompt' | 'denied' | 'remote' | 'followers' | 'pairing' | 'pairing-notray' | 'forgotten' | 'outdated';
|
|
8
8
|
export type LeadersScenario = 'connected' | 'failed' | 'unlinked' | 'disconnected' | 'two';
|
|
9
9
|
export declare function leadersFixtures(scenario: LeadersScenario): Leader[];
|
|
10
10
|
export declare function networkFixtures(scenario: NetworkScenario, now?: number): NetworkStatus;
|
|
@@ -17,6 +17,7 @@ export declare const pairingRefused = "That isn\u2019t a pairing link from slicc
|
|
|
17
17
|
export declare const pairingStopped = "slicc on this computer stopped answering. Run slicc pair again.";
|
|
18
18
|
export declare const pairedDevice: LinkedDevice;
|
|
19
19
|
export declare const forgottenDevice: LinkedDevice;
|
|
20
|
+
export declare const outdatedDevice: LinkedDevice;
|
|
20
21
|
export declare function grant(device: LinkedDevice, key: AccessKey, allowed: boolean): LinkedDevice;
|
|
21
22
|
export declare function linksFixtures(scenario: LinksScenario, rotation?: number): {
|
|
22
23
|
links: NetworkLinks;
|
package/dist/types/dummy.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { DummyImport, importBefore, importCancelled, importCones, importNotV6, i
|
|
|
16
16
|
export type { DummyModel, DummyOptions } from './dummy/index.js';
|
|
17
17
|
export { createDummyModel, movedDocs } from './dummy/index.js';
|
|
18
18
|
export type { LeadersScenario, NetworkScenario, TailnetScenario } from './dummy/network.js';
|
|
19
|
-
export { DummyNetwork, forgottenDevice, joinUrl, leadersFixtures, linksFixtures, networkFixtures, pairedDevice, pairingCode, pairingRefused, pairingStopped, tailnetFixtures, } from './dummy/network.js';
|
|
19
|
+
export { DummyNetwork, forgottenDevice, joinUrl, leadersFixtures, linksFixtures, networkFixtures, outdatedDevice, pairedDevice, pairingCode, pairingRefused, pairingStopped, tailnetFixtures, } from './dummy/network.js';
|
|
20
20
|
export type { NoticeScenario } from './dummy/notices.js';
|
|
21
21
|
export { DummyNotices, noticeFixtures } from './dummy/notices.js';
|
|
22
22
|
export { providerAccount, providerAccounts, providerFixtures } from './dummy/providers.js';
|
|
@@ -997,7 +997,19 @@ export interface GuestToolApproval {
|
|
|
997
997
|
always: boolean;
|
|
998
998
|
verdict?: ApprovalVerdict;
|
|
999
999
|
}
|
|
1000
|
-
export
|
|
1000
|
+
export interface TrayApproval {
|
|
1001
|
+
id: string;
|
|
1002
|
+
kind: 'tray';
|
|
1003
|
+
op: 'url' | 'rotate' | 'unlink';
|
|
1004
|
+
requester: ApprovalRequester;
|
|
1005
|
+
device?: {
|
|
1006
|
+
id: string;
|
|
1007
|
+
name: string;
|
|
1008
|
+
};
|
|
1009
|
+
createdAt: number;
|
|
1010
|
+
expiresAt: number;
|
|
1011
|
+
}
|
|
1012
|
+
export type Approval = SudoApproval | GuestMessageApproval | GuestToolApproval | TrayApproval;
|
|
1001
1013
|
export type ApprovalEnd = 'answered' | 'withdrawn' | 'expired';
|
|
1002
1014
|
export interface ApprovalsEvents {
|
|
1003
1015
|
approvals: readonly Approval[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.104.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",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@adobe/spectrum-wc": "2.0.0-beta.5",
|
|
75
75
|
"@adobe/spectrum-wc-icons": "2.0.0-beta.5",
|
|
76
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
77
|
-
"@ai-ecoverse/slicc-shared-web": "1.29.
|
|
76
|
+
"@ai-ecoverse/slicc-kernel": "1.141.2",
|
|
77
|
+
"@ai-ecoverse/slicc-shared-web": "1.29.8",
|
|
78
78
|
"@ai-ecoverse/slicc-vault": "1.15.1",
|
|
79
79
|
"@ai-ecoverse/wasm-bash": "5.3.0-22",
|
|
80
80
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-12",
|