@ai-ecoverse/slicc-spectrum 2.9.1 → 2.10.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.
@@ -9,7 +9,6 @@ import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
9
9
  import '@adobe/spectrum-wc-icons/swc-icon-camera.js';
10
10
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-down.js';
11
11
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-left.js';
12
- import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
13
12
  import '@adobe/spectrum-wc-icons/swc-icon-close.js';
14
13
  import '@adobe/spectrum-wc-icons/swc-icon-code.js';
15
14
  import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
@@ -32,6 +31,34 @@ export declare function host(url: string): string;
32
31
  export declare function place(url: string): string;
33
32
  export declare function since(at: number, now?: number): string;
34
33
  export declare function describe(action: BrowserAction): string;
34
+ export declare function recentActions(all: readonly BrowserAction[], shown: number): BrowserAction[];
35
+ export type FoldedAction = {
36
+ action: BrowserAction;
37
+ count: number;
38
+ };
39
+ export declare function sameAction(a: BrowserAction, b: BrowserAction): boolean;
40
+ export declare function foldActions(actions: readonly BrowserAction[]): FoldedAction[];
41
+ export declare function pickImage(frame: {
42
+ src: string;
43
+ at: number;
44
+ } | null | undefined, shot: {
45
+ src: string;
46
+ at: number;
47
+ } | null | undefined, watching: boolean): {
48
+ src: string;
49
+ at: number;
50
+ } | null;
51
+ export declare function frameSize(box: {
52
+ width: number;
53
+ height: number;
54
+ } | null | undefined, dpr?: number, prior?: {
55
+ width: number;
56
+ height: number;
57
+ } | null): {
58
+ width: number;
59
+ height: number;
60
+ key: string;
61
+ } | null;
35
62
  export declare const refresh = 10000;
36
63
  export declare const fresh = 3000;
37
64
  export declare const actionPage = 50;
@@ -2,7 +2,7 @@ import { Emitter } from '../model/emitter.js';
2
2
  import type { Approval, ApprovalDecision, ApprovalEnd, ApprovalsEvents, ApprovalsPort, PendingRequest, SecretApproval } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
4
  import type { DummyVault } from './vault.js';
5
- export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'judge-denied' | 'level-1' | 'level-2' | 'level-3' | 'checking' | 'no-verdict' | 'legacy' | 'guest' | 'guest-follower' | 'guest-always' | 'long' | 'controls-cr' | 'controls-lf' | 'controls-place' | 'controls-cwd' | 'guest-args' | 'guest-empty' | 'guest-truncated' | 'tray' | 'tray-url' | 'tray-rotate' | 'tray-unlink' | 'tray-expired' | 'secret' | 'secret-enter' | 'secret-reveal' | 'secret-long' | 'click' | 'click-remote' | 'capture' | 'none';
5
+ export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'judge-denied' | 'level-1' | 'level-2' | 'level-3' | 'checking' | 'no-verdict' | 'legacy' | 'guest' | 'guest-follower' | 'guest-always' | 'long' | 'controls-cr' | 'controls-lf' | 'controls-place' | 'controls-cwd' | 'guest-args' | 'guest-empty' | 'guest-truncated' | 'tray' | 'tray-url' | 'tray-rotate' | 'tray-unlink' | 'tray-expired' | 'secret' | 'secret-enter' | 'secret-reveal' | 'secret-long' | 'click' | 'click-remote' | 'capture' | 'stop' | 'none';
6
6
  export declare const guestArgs: string;
7
7
  export declare function pendingAsk(approval: SecretApproval): PendingRequest;
8
8
  export declare function approvalFixtures(scenario: ApprovalScenario, now?: number): Approval[];
@@ -24,7 +24,17 @@ export declare class DummyBrowser extends Emitter<BrowserEvents> implements Brow
24
24
  finish(id: string, error?: string): void;
25
25
  run(script: readonly ActionDraft[]): Promise<void>;
26
26
  release(agentId: string): void;
27
- watch(tabId: string): () => void;
27
+ lastWatch(): {
28
+ tabId: string;
29
+ size?: {
30
+ width: number;
31
+ height: number;
32
+ };
33
+ } | null;
34
+ watch(tabId: string, size?: {
35
+ width: number;
36
+ height: number;
37
+ }): () => void;
28
38
  activate(id: string): void;
29
39
  open(url: string, agentId?: string | null): BrowserTab;
30
40
  navigate(id: string, url: string): void;
@@ -984,7 +984,7 @@ export interface NoticesPort extends Subscribable<{
984
984
  act(id: string, action: string): Promise<void>;
985
985
  dismiss(id: string): void;
986
986
  }
987
- export type ApprovalDecision = 'once' | 'always' | 'deny';
987
+ export type ApprovalDecision = 'once' | 'always' | 'deny' | 'stop';
988
988
  export interface ApprovalRequester {
989
989
  kind: 'agent' | 'user' | 'guest';
990
990
  name: string;
@@ -1012,6 +1012,7 @@ export interface SudoApproval {
1012
1012
  verdict?: ApprovalVerdict;
1013
1013
  judging?: boolean;
1014
1014
  verdictError?: string;
1015
+ stoppable?: boolean;
1015
1016
  }
1016
1017
  export interface GuestMessageApproval {
1017
1018
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "2.9.1",
3
+ "version": "2.10.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",