@ai-ecoverse/slicc-spectrum 1.103.0 → 1.103.2

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 {};
@@ -19,6 +19,7 @@ export declare const startingKey = "slicc-spectrum.starting";
19
19
  export declare function reattach(files: readonly {
20
20
  name: string;
21
21
  }[]): string;
22
+ export declare function flushStarting(node: Node, model: SliccModel): () => void;
22
23
  export interface Choice {
23
24
  value: string;
24
25
  label: string;
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.103.0",
3
+ "version": "1.103.2",
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,6 @@
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'",
57
56
  "typecheck": "tsc && tsc -p compat",
58
57
  "lint": "slicc-lint",
59
58
  "format": "biome check --write ."
@@ -73,14 +72,13 @@
73
72
  "devDependencies": {
74
73
  "@adobe/spectrum-wc": "2.0.0-beta.5",
75
74
  "@adobe/spectrum-wc-icons": "2.0.0-beta.5",
76
- "@ai-ecoverse/slicc-kernel": "1.135.7",
77
- "@ai-ecoverse/slicc-shared-web": "1.28.0",
75
+ "@ai-ecoverse/slicc-kernel": "1.136.8",
76
+ "@ai-ecoverse/slicc-shared-web": "1.29.1",
78
77
  "@ai-ecoverse/slicc-vault": "1.9.2",
79
- "@ai-ecoverse/wasm-bash": "5.3.0-21",
80
- "@ai-ecoverse/wasm-coreutils": "9.12.0-11",
78
+ "@ai-ecoverse/wasm-bash": "5.3.0-22",
79
+ "@ai-ecoverse/wasm-coreutils": "9.12.0-12",
81
80
  "@biomejs/biome": "2.5.15",
82
81
  "@fontsource/source-code-pro": "5.3.1",
83
- "@happy-dom/global-registrator": "20.14.6",
84
82
  "@pierre/diffs": "1.5.2",
85
83
  "@pierre/trees": "1.0.0-beta.6",
86
84
  "@spectrum-web-components/action-button": "1.12.4",
@@ -105,8 +103,7 @@
105
103
  "@wterm/ghostty": "0.5.4",
106
104
  "dockview-core": "8.5.1",
107
105
  "esbuild": "0.28.2",
108
- "happy-dom": "20.14.6",
109
- "lefthook": "2.2.1",
106
+ "lefthook": "2.2.2",
110
107
  "lucide": "1.56.0",
111
108
  "mdast-util-from-markdown": "2.1.0",
112
109
  "mdast-util-gfm-autolink-literal": "2.0.1",