@ai-ecoverse/slicc-spectrum 1.103.3 → 1.104.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 +9 -2
- package/dist/slicc-dummy.js +22 -0
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +100 -69
- 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/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 {
|
|
@@ -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.0",
|
|
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.140.2",
|
|
77
|
+
"@ai-ecoverse/slicc-shared-web": "1.29.6",
|
|
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",
|