@ai-ecoverse/slicc-spectrum 1.11.0 → 1.12.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,7 +5,7 @@ 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]>;
@@ -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;
@@ -83,7 +83,7 @@ export interface Question {
83
83
  answer?: string;
84
84
  }
85
85
  export type DelegationKind = 'feed' | 'scoop' | 'drop' | 'sprinkle';
86
- export type ErrorAction = 'retry' | 'settings' | 'change-model' | 'login';
86
+ export type ErrorAction = 'retry' | 'settings' | 'change-model' | 'login' | 'drop-turn';
87
87
  export interface CheckItem {
88
88
  text: string;
89
89
  tone?: CardTone;
@@ -241,6 +241,7 @@ export interface AgentPort extends Subscribable<AgentEvents> {
241
241
  freeze(agentId: string): void;
242
242
  thaw(id: string): Agent | null;
243
243
  discard(id: string): void;
244
+ rewind?(agentId: string, messageId: string): Promise<Outgoing | null>;
244
245
  }
245
246
  export interface SlashCommand {
246
247
  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.12.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",