@ai-ecoverse/slicc-spectrum 1.11.0 → 1.13.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.
@@ -1,5 +1,5 @@
1
1
  import { type PropertyValues, type TemplateResult } from 'lit';
2
- import type { Attachment, SendMode, SliccModel } from '../model/types.js';
2
+ import type { Attachment, Outgoing, SendMode, SliccModel } from '../model/types.js';
3
3
  import { ModelElement } from './base.js';
4
4
  export declare const limit: number;
5
5
  export interface Choice {
@@ -59,6 +59,7 @@ export declare class SliccComposer extends ModelElement {
59
59
  protected willUpdate(changed: PropertyValues<this>): void;
60
60
  protected subscribe(model: SliccModel): Array<() => void>;
61
61
  focus(): void;
62
+ restore(message: Outgoing): void;
62
63
  send(mode?: SendMode): void;
63
64
  addFiles(files: readonly File[]): Promise<void>;
64
65
  detach(id: string): void;
@@ -5,18 +5,18 @@ export interface Handlers {
5
5
  model: SliccModel | null;
6
6
  answer(questionId: string, answer: string): void;
7
7
  resolve(messageId: string, state: Exclude<LickState, 'pending'>): void;
8
- action(action: ErrorAction): void;
8
+ action(action: ErrorAction, messageId?: string): void;
9
9
  open(path: string): void;
10
10
  }
11
11
  export declare const lickLabels: Record<LickChannel, [string, string]>;
12
12
  export declare function time(at: number): string;
13
13
  export declare function day(at: number): string;
14
14
  export declare function size(bytes: number): string;
15
- export declare function tool(call: ToolCall): TemplateResult;
15
+ export declare function tool(call: ToolCall, color?: 'light' | 'dark'): TemplateResult;
16
16
  export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean, streaming: boolean): Array<TemplateResult | typeof nothing>;
17
17
  export declare function user(message: UserMessage): TemplateResult;
18
18
  export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean): TemplateResult;
19
- export declare function toolMessage(message: ToolMessage): TemplateResult;
19
+ export declare function toolMessage(message: ToolMessage, color?: 'light' | 'dark'): TemplateResult;
20
20
  export declare function system(message: SystemMessage, handlers: Handlers): TemplateResult;
21
21
  export declare function lick(message: LickMessage, handlers: Handlers): TemplateResult;
22
22
  export declare const messageCss: import("lit").CSSResult;
@@ -21,6 +21,7 @@ export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPor
21
21
  answer(agentId: string, questionId: string, answer: string): void;
22
22
  resolveLick(agentId: string, messageId: string, state: Exclude<LickState, 'pending'>): void;
23
23
  compact(agentId: string): void;
24
+ rewind(agentId: string, messageId: string): Promise<Outgoing | null>;
24
25
  clear(agentId: string): void;
25
26
  setModel(agentId: string, model: string): void;
26
27
  setThinking(agentId: string, thinking: Thinking): void;
@@ -26,6 +26,11 @@ export interface ToolCall {
26
26
  image?: string;
27
27
  agentId?: string;
28
28
  pid?: number;
29
+ meta?: string;
30
+ diff?: {
31
+ before: string;
32
+ after: string;
33
+ };
29
34
  }
30
35
  export type AttachmentKind = 'image' | 'text' | 'file' | 'secret';
31
36
  export interface Attachment {
@@ -83,7 +88,7 @@ export interface Question {
83
88
  answer?: string;
84
89
  }
85
90
  export type DelegationKind = 'feed' | 'scoop' | 'drop' | 'sprinkle';
86
- export type ErrorAction = 'retry' | 'settings' | 'change-model' | 'login';
91
+ export type ErrorAction = 'retry' | 'settings' | 'change-model' | 'login' | 'drop-turn';
87
92
  export interface CheckItem {
88
93
  text: string;
89
94
  tone?: CardTone;
@@ -241,6 +246,7 @@ export interface AgentPort extends Subscribable<AgentEvents> {
241
246
  freeze(agentId: string): void;
242
247
  thaw(id: string): Agent | null;
243
248
  discard(id: string): void;
249
+ rewind?(agentId: string, messageId: string): Promise<Outgoing | null>;
244
250
  }
245
251
  export interface SlashCommand {
246
252
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.11.0",
3
+ "version": "1.13.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",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "devDependencies": {
73
73
  "@ai-ecoverse/slicc-kernel": "1.13.0",
74
- "@ai-ecoverse/slicc-shared-web": "1.5.0",
74
+ "@ai-ecoverse/slicc-shared-web": "1.5.1",
75
75
  "@ai-ecoverse/wasm-bash": "5.3.0-7",
76
76
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",
77
77
  "@biomejs/biome": "2.5.15",