@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.
- package/README.md +2 -2
- package/dist/slicc-dummy.js +34 -1
- package/dist/slicc-dummy.js.map +3 -3
- package/dist/slicc-ui.js +26 -5
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/composer.d.ts +2 -1
- package/dist/types/app/messages.d.ts +1 -1
- package/dist/types/dummy/agent.d.ts +1 -0
- package/dist/types/model/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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