@ai-ecoverse/slicc-spectrum 1.111.3 → 1.112.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.
@@ -23,6 +23,9 @@ export declare function trayAsking(approval: TrayApproval): string;
23
23
  export declare function approved(approval: Approval): string;
24
24
  export declare function truncated(approval: Approval): boolean;
25
25
  export declare function guestWaiting(approval: GuestMessageApproval | GuestToolApproval): string;
26
+ type Judged = GuestMessageApproval | GuestToolApproval | SudoApproval;
27
+ export declare function offersAlways(approval: Approval): boolean;
28
+ export declare function verdictNote(approval: Judged): string;
26
29
  export declare function waiting(model: SliccModel | null, now: number): Approval[];
27
30
  export declare class SliccApprovals extends ModelElement {
28
31
  #private;
@@ -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' | 'judge-denied' | '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' | 'none';
4
+ 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' | '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 {
@@ -987,8 +987,11 @@ export interface ApprovalRequester {
987
987
  agentId?: string;
988
988
  where?: string;
989
989
  }
990
+ export type ApprovalLevel = 1 | 2 | 3;
990
991
  export interface ApprovalVerdict {
991
- decision: 'allow' | 'deny' | 'unsure';
992
+ level?: ApprovalLevel;
993
+ aligned?: boolean;
994
+ decision?: 'allow' | 'deny' | 'unsure';
992
995
  reason: string;
993
996
  }
994
997
  export interface SudoApproval {
@@ -1003,6 +1006,8 @@ export interface SudoApproval {
1003
1006
  always: boolean;
1004
1007
  alwaysScope?: 'cwd';
1005
1008
  verdict?: ApprovalVerdict;
1009
+ judging?: boolean;
1010
+ verdictError?: string;
1006
1011
  }
1007
1012
  export interface GuestMessageApproval {
1008
1013
  id: string;
@@ -1020,6 +1025,8 @@ export interface GuestMessageApproval {
1020
1025
  expiresAt: number;
1021
1026
  always: boolean;
1022
1027
  verdict?: ApprovalVerdict;
1028
+ judging?: boolean;
1029
+ verdictError?: string;
1023
1030
  }
1024
1031
  export interface GuestToolApproval {
1025
1032
  id: string;
@@ -1035,6 +1042,8 @@ export interface GuestToolApproval {
1035
1042
  expiresAt: number;
1036
1043
  always: boolean;
1037
1044
  verdict?: ApprovalVerdict;
1045
+ judging?: boolean;
1046
+ verdictError?: string;
1038
1047
  }
1039
1048
  export interface TrayApproval {
1040
1049
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.111.3",
3
+ "version": "1.112.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",
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@adobe/spectrum-wc": "2.0.0-beta.6",
64
64
  "@adobe/spectrum-wc-icons": "2.0.0-beta.6",
65
- "@ai-ecoverse/slicc-cdp": "1.45.0",
65
+ "@ai-ecoverse/slicc-cdp": "1.45.2",
66
66
  "@ai-ecoverse/slicc-kernel": "1.173.3",
67
67
  "@ai-ecoverse/slicc-shared-web": "2.13.10",
68
68
  "@ai-ecoverse/slicc-vault": "1.22.0",
@@ -93,7 +93,7 @@
93
93
  "esbuild": "0.28.2",
94
94
  "happy-dom": "21.0.4",
95
95
  "lefthook": "2.2.2",
96
- "lucide": "1.62.0",
96
+ "lucide": "1.63.0",
97
97
  "mdast-util-from-markdown": "2.1.0",
98
98
  "mdast-util-gfm-autolink-literal": "2.0.1",
99
99
  "mdast-util-gfm-strikethrough": "2.0.1",