@ai-ecoverse/slicc-spectrum 2.9.2 → 2.11.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.
@@ -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[];
@@ -1,6 +1,6 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
2
  import type { LiveItem, LivePort, Switch, SwitchesPort } from '../model/types.js';
3
- export type LiveScenario = 'screen' | 'both' | 'empty';
3
+ export type LiveScenario = 'screen' | 'both' | 'ended' | 'empty';
4
4
  export declare function liveFixtures(scenario: LiveScenario, now?: number): LiveItem[];
5
5
  export declare class DummyLive extends Emitter<{
6
6
  items: readonly LiveItem[];
@@ -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;
@@ -1144,6 +1145,7 @@ export interface LiveItem {
1144
1145
  what: string;
1145
1146
  asker: string;
1146
1147
  since: number;
1148
+ endedAt?: number;
1147
1149
  action: {
1148
1150
  label: string;
1149
1151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "2.9.2",
3
+ "version": "2.11.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",