@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.
- package/README.md +10 -8
- package/dist/slicc-dummy.js +46 -13
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +40 -10
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/dummy/approvals.d.ts +1 -1
- package/dist/types/dummy/live.d.ts +1 -1
- package/dist/types/model/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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