@ai-ecoverse/slicc-spectrum 1.36.0 → 1.37.1

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.
@@ -11,7 +11,7 @@ export declare const newCone = "slicc:new-cone";
11
11
  export declare const railPitch = 52;
12
12
  export declare const phoneRail: string[];
13
13
  export declare function railCapacity(width: number, count: number): number;
14
- export declare function updatesVariant(status: string): 'negative' | 'info' | 'notice';
14
+ export declare function updatesVariant(status: string): 'negative' | 'info' | 'notice' | 'neutral';
15
15
  export declare function finishTransitions(root: ShadowRoot): void;
16
16
  export declare class SliccApp extends ThemedElement {
17
17
  #private;
@@ -1,11 +1,18 @@
1
1
  import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
2
  import '@adobe/spectrum-wc/components/action-group/swc-action-group.js';
3
3
  import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
4
+ import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
4
5
  import { type TemplateResult } from 'lit';
5
6
  import type { Change, ChangesPort, SliccModel } from '../model/types.js';
6
7
  import { ModelElement, ThemedElement } from './base.js';
7
8
  export declare function revertPaths(port: ChangesPort, paths: readonly string[]): Promise<string>;
8
9
  export declare function groups(changes: readonly Change[]): Array<[string, Change[]]>;
10
+ export declare function commands(text: string): {
11
+ parts: Array<string | {
12
+ code: string;
13
+ }>;
14
+ codes: string[];
15
+ };
9
16
  export declare class SliccChanges extends ModelElement {
10
17
  #private;
11
18
  static properties: {
@@ -15,12 +22,21 @@ export declare class SliccChanges extends ModelElement {
15
22
  error: {
16
23
  state: boolean;
17
24
  };
25
+ copied: {
26
+ state: boolean;
27
+ };
28
+ uncopied: {
29
+ state: boolean;
30
+ };
18
31
  };
19
32
  error: string;
33
+ copied: string;
34
+ uncopied: boolean;
20
35
  constructor();
21
36
  static styles: import("lit").CSSResult[];
22
37
  protected subscribe(model: SliccModel): Array<() => void>;
23
38
  focus(): void;
39
+ copy(code: string): Promise<void>;
24
40
  render(): TemplateResult;
25
41
  }
26
42
  export declare class SliccDiffPanel extends ThemedElement {
@@ -3,7 +3,7 @@ import type { Change, ChangesPort } from '../model/types.js';
3
3
  import type { DummyFiles } from './files.js';
4
4
  export type ChangesScenario = 'files' | 'git' | 'nogit';
5
5
  export declare const repos: string[];
6
- export declare const noGit = "Changes needs git and a git repository. Install git with pnpm add -g @ai-ecoverse/wasm-git, then git init, or clone with slicc-node or the extension connected.";
6
+ export declare const noGit = "Changes needs git, and git isn\u2019t installed. Install it with `pnpm add -g @ai-ecoverse/wasm-git`, then run `git init` in a folder under /home, or clone with slicc-node or the extension connected.";
7
7
  export declare class DummyChanges implements ChangesPort {
8
8
  #private;
9
9
  constructor(files: DummyFiles, git: boolean);
@@ -1,7 +1,7 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
2
  import type { UpdateAction, UpdateItem, UpdatesPort } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
- export type UpdateScenario = 'current' | 'boot' | 'available' | 'restart' | 'failure';
4
+ export type UpdateScenario = 'current' | 'boot' | 'starting' | 'available' | 'restart' | 'failure';
5
5
  export declare function updateFixtures(scenario: UpdateScenario): readonly UpdateItem[];
6
6
  export declare class DummyUpdates extends Emitter<{
7
7
  items: readonly UpdateItem[];
@@ -506,7 +506,7 @@ export interface TrayPort extends Subscribable<TrayEvents> {
506
506
  disconnect(): void;
507
507
  }
508
508
  export type UpdateKind = 'bios' | 'kernel' | 'agent' | 'grammars' | 'global' | 'skills' | 'ui';
509
- export type UpdateState = 'current' | 'queued' | 'checking' | 'downloading' | 'linking' | 'installed' | 'available' | 'ready' | 'failed';
509
+ export type UpdateState = 'current' | 'queued' | 'starting' | 'checking' | 'downloading' | 'linking' | 'installed' | 'available' | 'ready' | 'failed';
510
510
  export type UpdateAction = 'retry' | 'restart-agent' | 'reload' | 'update-now';
511
511
  export interface UpdateItem {
512
512
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.36.0",
3
+ "version": "1.37.1",
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.26.1",
76
- "@ai-ecoverse/slicc-shared-web": "1.10.0",
76
+ "@ai-ecoverse/slicc-shared-web": "1.10.1",
77
77
  "@ai-ecoverse/wasm-bash": "5.3.0-8",
78
78
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",
79
79
  "@biomejs/biome": "2.5.15",