@ai-ecoverse/slicc-spectrum 1.19.0 → 1.21.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.
@@ -4,6 +4,7 @@ import type { SliccModel } from '../model/types.js';
4
4
  import { ThemedElement } from './base.js';
5
5
  import { Dips } from './dips.js';
6
6
  import { type DocumentKind, type ScreenClass, type Surface } from './panels.js';
7
+ import { TerminalPanels } from './terminals.js';
7
8
  export declare class SliccApp extends ThemedElement {
8
9
  #private;
9
10
  static properties: {
@@ -22,6 +23,7 @@ export declare class SliccApp extends ThemedElement {
22
23
  storage: Storage | null;
23
24
  layoutKey: string;
24
25
  readonly dips: Dips;
26
+ readonly terminalPanels: TerminalPanels;
25
27
  constructor();
26
28
  static styles: import("lit").CSSResult[];
27
29
  get dock(): SliccDock;
@@ -38,6 +40,7 @@ export declare class SliccApp extends ThemedElement {
38
40
  get storageKey(): string;
39
41
  resetLayout(): void;
40
42
  show(id: string): void;
43
+ newTerminal(): void;
41
44
  open(kind: DocumentKind, path: string): void;
42
45
  toggleColor(): void;
43
46
  render(): TemplateResult;
@@ -1,24 +1,27 @@
1
+ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
2
+ import '@adobe/spectrum-wc/components/button/swc-button.js';
3
+ import '@adobe/spectrum-wc/components/close-button/swc-close-button.js';
4
+ import '@adobe/spectrum-wc/components/progress-circle/swc-progress-circle.js';
5
+ import '@adobe/spectrum-wc/components/status-light/swc-status-light.js';
1
6
  import { type TemplateResult } from 'lit';
2
7
  import type { SliccModel } from '../model/types.js';
3
8
  import { ModelElement } from './base.js';
4
9
  export declare function normalize(input: string): string;
10
+ export declare function host(url: string): string;
11
+ export declare const refresh = 10000;
5
12
  export declare class SliccBrowser extends ModelElement {
6
13
  #private;
7
14
  static properties: {
8
15
  model: {
9
16
  attribute: boolean;
10
17
  };
11
- shot: {
12
- state: boolean;
13
- };
14
18
  address: {
15
19
  state: boolean;
16
20
  };
17
21
  };
18
- shot: string;
19
22
  address: string;
20
23
  constructor();
21
- static styles: import("lit").CSSResult[];
24
+ static styles: import("lit").CSSResult;
22
25
  protected subscribe(model: SliccModel): Array<() => void>;
23
26
  focus(): void;
24
27
  render(): TemplateResult;
@@ -1,3 +1,5 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/action-group/swc-action-group.js';
1
3
  import { type TemplateResult } from 'lit';
2
4
  import type { SliccModel } from '../model/types.js';
3
5
  import { ModelElement, ThemedElement } from './base.js';
@@ -1,3 +1,5 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/button/swc-button.js';
1
3
  import { type TemplateResult } from 'lit';
2
4
  import type { GitStatusEntry } from '../components/file-tree.js';
3
5
  import type { Change, FileEntry, SliccModel } from '../model/types.js';
@@ -15,6 +17,12 @@ export declare const letters: {
15
17
  readonly modified: 'M';
16
18
  readonly deleted: 'D';
17
19
  };
20
+ export declare const statusLabels: {
21
+ readonly added: 'Added';
22
+ readonly modified: 'Modified';
23
+ readonly deleted: 'Deleted';
24
+ };
25
+ export declare function statusMark(status: Change['status'], announce?: boolean): TemplateResult;
18
26
  export declare class SliccFiles extends ModelElement {
19
27
  #private;
20
28
  static properties: {
@@ -1,3 +1,5 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
1
3
  import { type TemplateResult } from 'lit';
2
4
  import type { SliccModel } from '../model/types.js';
3
5
  import { ModelElement } from './base.js';
@@ -1,8 +1,13 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
3
+ import '@adobe/spectrum-wc/components/button/swc-button.js';
4
+ import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
1
5
  import { type TemplateResult } from 'lit';
2
6
  import type { Memory, MemoryTag, SliccModel } from '../model/types.js';
3
7
  import { ModelElement } from './base.js';
4
8
  export type TagFilter = MemoryTag | 'all' | 'untagged';
5
9
  export declare function visible(memories: readonly Memory[], scope: string, tag: TagFilter, query: string): Memory[];
10
+ export declare const tagLabels: Record<MemoryTag, string>;
6
11
  export declare function sections(memories: readonly Memory[]): Array<[string, Memory[]]>;
7
12
  export declare class SliccMemory extends ModelElement {
8
13
  #private;
@@ -1,8 +1,19 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
3
+ import '@adobe/spectrum-wc/components/meter/swc-meter.js';
4
+ import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
5
+ import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
1
6
  import { type TemplateResult } from 'lit';
2
7
  import type { MonitorSection, MonitorStatus, SliccModel } from '../model/types.js';
3
8
  import { ModelElement } from './base.js';
4
9
  export declare function sparkline(points: readonly number[], width?: number, height?: number): string;
5
10
  export declare function health(section: MonitorSection): MonitorStatus;
11
+ export declare function meterVariant(ratio: number): 'informative' | 'notice' | 'negative';
12
+ export declare const surfaces: Record<string, string>;
13
+ export declare function attention(section: MonitorSection): {
14
+ variant: 'negative' | 'notice';
15
+ text: string;
16
+ } | null;
6
17
  export declare class SliccMonitor extends ModelElement {
7
18
  #private;
8
19
  static styles: import("lit").CSSResult[];
@@ -1,5 +1,5 @@
1
1
  import type { PanelParams, SliccDock } from '../components/dock.js';
2
- import type { SliccModel, Sprinkle } from '../model/types.js';
2
+ import type { SliccModel, Sprinkle, TerminalInfo } from '../model/types.js';
3
3
  export type Direction = 'left' | 'right' | 'above' | 'below' | 'within';
4
4
  export type Side = 'left' | 'center' | 'right';
5
5
  export type ScreenClass = 'phone' | 'tablet' | 'desktop';
@@ -40,10 +40,15 @@ export declare function openChat(dock: SliccDock, agent: {
40
40
  name: string;
41
41
  }, screen: ScreenClass, focus?: boolean, reveal?: boolean): string;
42
42
  export declare function openDocument(dock: SliccDock, kind: DocumentKind, path: string, screen: ScreenClass): string;
43
+ export declare function terminalPanel(terminal: string): string;
44
+ export declare function terminalOf(id: string | null | undefined): string | null;
45
+ export declare function terminalPanels(dock: SliccDock): string[];
46
+ export declare function terminalTitle(info: TerminalInfo): string;
47
+ export declare function openTerminal(dock: SliccDock, info: TerminalInfo, screen: ScreenClass): string;
43
48
  export declare function defaultLayout(dock: SliccDock, screen: ScreenClass, agent: {
44
49
  id: string;
45
50
  name: string;
46
- } | null, items?: readonly Surface[]): void;
51
+ } | null, items?: readonly Surface[], terminals?: readonly TerminalInfo[]): void;
47
52
  export declare function closed(dock: SliccDock, items?: readonly Surface[]): Surface[];
48
53
  export declare function sprinkleSurface(sprinkle: Sprinkle): Surface;
49
54
  export declare function dropPlacement(panel: string | null, position: string): Placement | null;
@@ -1,25 +1,36 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
1
2
  import { type TemplateResult } from 'lit';
2
- import type { SliccModel } from '../model/types.js';
3
+ import type { TerminalBackend } from '../backend.js';
4
+ import type { SliccDock } from '../components/dock.js';
5
+ import type { SliccModel, TerminalPort } from '../model/types.js';
6
+ import type { SliccTerminal } from '../slicc-terminal.js';
3
7
  import { ThemedElement } from './base.js';
8
+ import { type ScreenClass } from './panels.js';
4
9
  export declare function deepActive(root: Document | ShadowRoot): HTMLElement | null;
5
- export declare class SliccTerminals extends ThemedElement {
10
+ export declare const scrollback: number;
11
+ export declare function keep(port: TerminalPort, id: string): TerminalBackend;
12
+ export declare class SliccTerminalPanel extends ThemedElement {
6
13
  #private;
7
14
  static properties: {
8
15
  model: {
9
16
  attribute: boolean;
10
17
  };
11
- active: {
12
- state: boolean;
13
- };
18
+ terminal: {};
14
19
  };
15
- active: string;
20
+ terminal: string;
16
21
  constructor();
17
22
  static styles: import("lit").CSSResult[];
18
23
  protected subscribe(model: SliccModel): Array<() => void>;
19
24
  focus(): void;
20
- select(id: string): void;
21
- add(): void;
22
- close(id: string): void;
25
+ get screen(): SliccTerminal | null;
23
26
  protected updated(): void;
24
27
  render(): TemplateResult;
25
28
  }
29
+ export declare class TerminalPanels {
30
+ #private;
31
+ attach(dock: SliccDock, port: () => TerminalPort | undefined, screen: () => ScreenClass): void;
32
+ activated(id: string | null): void;
33
+ sync(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
34
+ show(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
35
+ create(dock: SliccDock, port: TerminalPort, screen: ScreenClass): void;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.19.0",
3
+ "version": "1.21.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",
@@ -73,7 +73,7 @@
73
73
  "@adobe/spectrum-wc": "2.0.0-beta.4",
74
74
  "@adobe/spectrum-wc-icons": "2.0.0-beta.4",
75
75
  "@ai-ecoverse/slicc-kernel": "1.16.0",
76
- "@ai-ecoverse/slicc-shared-web": "1.7.1",
76
+ "@ai-ecoverse/slicc-shared-web": "1.8.0",
77
77
  "@ai-ecoverse/wasm-bash": "5.3.0-7",
78
78
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",
79
79
  "@biomejs/biome": "2.5.15",