@ai-ecoverse/slicc-spectrum 1.103.1 → 1.103.3

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.
@@ -15,4 +15,11 @@ export interface AnsiRun {
15
15
  export declare const terminalPalette: import("lit").CSSResult;
16
16
  export declare function parseAnsi(text: string, streaming?: boolean): AnsiRun[];
17
17
  export declare function stripAnsi(text: string): string;
18
- export declare function ansi(text: string, streaming?: boolean): Array<TemplateResult | string>;
18
+ type Rgb = [number, number, number];
19
+ export interface Surface {
20
+ card: [Rgb, Rgb];
21
+ text: [Rgb, Rgb];
22
+ }
23
+ export declare function readSurface(root: Node & ParentNode): Surface | undefined;
24
+ export declare function ansi(text: string, streaming?: boolean, surface?: Surface): Array<TemplateResult | string>;
25
+ export {};
@@ -20,12 +20,14 @@ import '@adobe/spectrum-wc-icons/swc-icon-lock.js';
20
20
  import '@spectrum-web-components/help-text/sp-help-text.js';
21
21
  import { type TemplateResult } from 'lit';
22
22
  import type { AccountSignIn, AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, Question, Seat, SliccModel, SystemMessage, ToolCall, ToolMessage, UserMessage } from '../model/types.js';
23
+ import { type Surface } from './ansi.js';
23
24
  import { type Copied } from './sign-in.js';
24
25
  import type { ViewSet } from './view-state.js';
25
26
  export interface Handlers {
26
27
  color: 'light' | 'dark';
27
28
  model: SliccModel | null;
28
29
  readOnly: boolean;
30
+ surface?: Surface;
29
31
  answer(questionId: string, answer: string): void;
30
32
  resolve(messageId: string, state: Exclude<LickState, 'pending'>): void;
31
33
  action(action: ErrorAction, messageId?: string, account?: string): void;
@@ -66,7 +68,7 @@ export interface Owner {
66
68
  at: number;
67
69
  stamp?: boolean;
68
70
  }
69
- export type RunContext = Pick<Handlers, 'color' | 'model' | 'owners' | 'agentId' | 'runs'> & {
71
+ export type RunContext = Pick<Handlers, 'color' | 'model' | 'owners' | 'agentId' | 'runs' | 'surface'> & {
70
72
  anchor?: string;
71
73
  };
72
74
  export interface Joined {
@@ -1,7 +1,7 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
2
  import type { AuditEntry, AuditPage, Availability, ButtonConfig, ButtonEvent, ButtonMessage, ErrorCode, ImportKind, ImportPick, ImportResult, PolicyNotice, PopupIntent, PutOptions, RecordKind, RefusedRule, RequestState, SealResult, SecretView, VaultButton, VaultEndpointChange, VaultEvents, VaultList, VaultPort, VaultStatus } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
- export type VaultScenario = 'empty' | 'secrets' | 'policy' | 'notice' | 'locked' | 'request' | 'backup' | 'waiting' | 'purged' | 'endpoints-fail';
4
+ export type VaultScenario = 'empty' | 'secrets' | 'policy' | 'notice' | 'locked' | 'request' | 'backup' | 'waiting' | 'purged' | 'session' | 'endpoints-fail';
5
5
  export declare function vaultSecrets(now?: number): SecretView[];
6
6
  export declare function accountRecords(now?: number, pin?: string): SecretView[];
7
7
  export declare function vaultAudit(now?: number): AuditEntry[];
@@ -9,6 +9,7 @@ export declare function vaultOlder(now?: number): AuditEntry[];
9
9
  export declare function vaultRefused(): RefusedRule[];
10
10
  export declare function vaultPurged(now?: number): AuditEntry;
11
11
  export declare function vaultPinned(now?: number): AuditEntry;
12
+ export declare function vaultSessions(now?: number): AuditEntry[];
12
13
  export declare function vaultPolicy(now?: number): AuditEntry;
13
14
  export declare function vaultNotice(now?: number): PolicyNotice;
14
15
  export declare function vaultFixtures(scenario: VaultScenario, now?: number): {
@@ -26,4 +26,4 @@ export { DummyTabs, tabsFixtures } from './dummy/tabs.js';
26
26
  export type { BetaScenario, DummyUpdatesOptions, PackageConfirm, PackageScenario, UpdateScenario, } from './dummy/updates.js';
27
27
  export { betaFixtures, DummyUpdates, packageFixtures, updateFixtures, } from './dummy/updates.js';
28
28
  export type { VaultScenario } from './dummy/vault.js';
29
- export { DummyVault, DummyVaultButton, vaultAudit, vaultFixtures, vaultNotice, vaultOlder, vaultPinned, vaultPolicy, vaultPurged, vaultRefused, vaultSecrets, } from './dummy/vault.js';
29
+ export { DummyVault, DummyVaultButton, vaultAudit, vaultFixtures, vaultNotice, vaultOlder, vaultPinned, vaultPolicy, vaultPurged, vaultRefused, vaultSecrets, vaultSessions, } from './dummy/vault.js';
@@ -1195,6 +1195,19 @@ export interface InjectionEntry extends AuditBase {
1195
1195
  rule: Rule;
1196
1196
  exit: ExitName;
1197
1197
  }
1198
+ export type SessionProtocol = 'http1' | 'smtp' | 'pg';
1199
+ export interface SessionEntry extends AuditBase {
1200
+ type: 'session';
1201
+ session: string;
1202
+ domain: string;
1203
+ port: number;
1204
+ protocol: SessionProtocol;
1205
+ position: string;
1206
+ rule: number;
1207
+ verifiedBy?: 'roots' | 'anchored';
1208
+ anchor?: string;
1209
+ exit: ExitName;
1210
+ }
1198
1211
  export interface RevealEntry extends AuditBase {
1199
1212
  type: 'materialize';
1200
1213
  grant?: ExecGrant;
@@ -1264,7 +1277,7 @@ export interface PolicyEntry {
1264
1277
  changes?: PolicyChange[];
1265
1278
  warning?: string;
1266
1279
  }
1267
- export type AuditEntry = InjectionEntry | McpEntry | RevealEntry | SealEntry | RemoveEntry | RefreshEntry | EndpointsEntry | PolicyEntry;
1280
+ export type AuditEntry = InjectionEntry | SessionEntry | McpEntry | RevealEntry | SealEntry | RemoveEntry | RefreshEntry | EndpointsEntry | PolicyEntry;
1268
1281
  export interface AuditPage {
1269
1282
  audit: AuditEntry[];
1270
1283
  more: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.103.1",
3
+ "version": "1.103.3",
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",
@@ -53,7 +53,7 @@
53
53
  "start": "npm run build && node test/integration/chrome.mjs",
54
54
  "pretest": "npm run build && playwright-core install --no-shell chromium",
55
55
  "test": "node --test ${TEST_CONCURRENCY:+--test-concurrency=$TEST_CONCURRENCY} --test-global-setup=node_modules/@ai-ecoverse/slicc-shared-web/harness/global.mjs 'test/integration/*.test.mjs'",
56
- "test:unit": "NODE_NO_WARNINGS=1 mcr -c node_modules/@ai-ecoverse/slicc-shared-web/mcr.config.mjs node --test 'test/unit/**/*.test.mjs'",
56
+ "test:unit": "NODE_NO_WARNINGS=1 mcr -c mcr.config.mjs node --test 'test/unit/**/*.test.mjs'",
57
57
  "typecheck": "tsc && tsc -p compat",
58
58
  "lint": "slicc-lint",
59
59
  "format": "biome check --write ."
@@ -73,14 +73,14 @@
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.136.2",
77
- "@ai-ecoverse/slicc-shared-web": "1.29.0",
78
- "@ai-ecoverse/slicc-vault": "1.9.2",
76
+ "@ai-ecoverse/slicc-kernel": "1.137.0",
77
+ "@ai-ecoverse/slicc-shared-web": "1.29.1",
78
+ "@ai-ecoverse/slicc-vault": "1.15.1",
79
79
  "@ai-ecoverse/wasm-bash": "5.3.0-22",
80
- "@ai-ecoverse/wasm-coreutils": "9.12.0-11",
80
+ "@ai-ecoverse/wasm-coreutils": "9.12.0-12",
81
81
  "@biomejs/biome": "2.5.15",
82
82
  "@fontsource/source-code-pro": "5.3.1",
83
- "@happy-dom/global-registrator": "20.14.6",
83
+ "@happy-dom/global-registrator": "21.0.3",
84
84
  "@pierre/diffs": "1.5.2",
85
85
  "@pierre/trees": "1.0.0-beta.6",
86
86
  "@spectrum-web-components/action-button": "1.12.4",
@@ -105,7 +105,7 @@
105
105
  "@wterm/ghostty": "0.5.4",
106
106
  "dockview-core": "8.5.1",
107
107
  "esbuild": "0.28.2",
108
- "happy-dom": "20.14.6",
108
+ "happy-dom": "21.0.3",
109
109
  "lefthook": "2.2.2",
110
110
  "lucide": "1.56.0",
111
111
  "mdast-util-from-markdown": "2.1.0",