@ai-ecoverse/slicc-spectrum 1.27.3 → 1.28.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.
- package/README.md +4 -4
- package/dist/slicc-dummy.js +34 -5
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +80 -29
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/chat.d.ts +2 -1
- package/dist/types/app/memory.d.ts +6 -1
- package/dist/types/app/messages.d.ts +1 -0
- package/dist/types/dummy/memory.d.ts +3 -2
- package/dist/types/model/types.d.ts +8 -1
- package/package.json +2 -2
package/dist/types/app/chat.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
|
2
2
|
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
3
3
|
import '@adobe/spectrum-wc/patterns/ai-toolkit/conversation-thread/swc-conversation-thread.js';
|
|
4
4
|
import { type TemplateResult } from 'lit';
|
|
5
|
-
import type { SliccModel } from '../model/types.js';
|
|
5
|
+
import type { Message, SliccModel } from '../model/types.js';
|
|
6
6
|
import { ThemedElement } from './base.js';
|
|
7
|
+
export declare function failedTurns(messages: readonly Message[], messageId: string): string[];
|
|
7
8
|
export declare class SliccChat extends ThemedElement {
|
|
8
9
|
#private;
|
|
9
10
|
static properties: {
|
|
@@ -2,11 +2,15 @@ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
|
|
|
2
2
|
import '@adobe/spectrum-wc/components/badge/swc-badge.js';
|
|
3
3
|
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
4
4
|
import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
|
|
5
|
-
import { type TemplateResult } from 'lit';
|
|
5
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
6
6
|
import type { Memory, MemoryTag, SliccModel } from '../model/types.js';
|
|
7
7
|
import { ModelElement } from './base.js';
|
|
8
8
|
export type TagFilter = MemoryTag | 'all' | 'untagged';
|
|
9
9
|
export declare function visible(memories: readonly Memory[], scope: string, tag: TagFilter, query: string): Memory[];
|
|
10
|
+
export declare const scopeGroups: {
|
|
11
|
+
readonly cones: 'Cones';
|
|
12
|
+
readonly roles: 'Roles';
|
|
13
|
+
};
|
|
10
14
|
export declare const tagLabels: Record<MemoryTag, string>;
|
|
11
15
|
export declare function sections(memories: readonly Memory[]): Array<[string, Memory[]]>;
|
|
12
16
|
export declare class SliccMemory extends ModelElement {
|
|
@@ -40,5 +44,6 @@ export declare class SliccMemory extends ModelElement {
|
|
|
40
44
|
static styles: import("lit").CSSResult[];
|
|
41
45
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
42
46
|
focus(): void;
|
|
47
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
43
48
|
render(): TemplateResult;
|
|
44
49
|
}
|
|
@@ -26,6 +26,7 @@ export interface Handlers {
|
|
|
26
26
|
answer(questionId: string, answer: string): void;
|
|
27
27
|
resolve(messageId: string, state: Exclude<LickState, 'pending'>): void;
|
|
28
28
|
action(action: ErrorAction, messageId?: string): void;
|
|
29
|
+
dropping(messageId: string): number;
|
|
29
30
|
open(path: string): void;
|
|
30
31
|
show(surfaceId: string): void;
|
|
31
32
|
suggest(text: string): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Emitter } from '../model/emitter.js';
|
|
2
|
-
import type { Memory, MemoryDraft, MemoryEvents, MemoryPort } from '../model/types.js';
|
|
2
|
+
import type { Memory, MemoryDraft, MemoryEvents, MemoryPort, MemoryScope } from '../model/types.js';
|
|
3
3
|
export declare class DummyMemory extends Emitter<MemoryEvents> implements MemoryPort {
|
|
4
4
|
#private;
|
|
5
|
-
constructor(memories: readonly Memory[]);
|
|
5
|
+
constructor(memories: readonly Memory[], scopes?: () => readonly MemoryScope[]);
|
|
6
|
+
scopes(): readonly MemoryScope[];
|
|
6
7
|
list(): readonly Memory[];
|
|
7
8
|
save(draft: MemoryDraft): Memory;
|
|
8
9
|
remove(id: string): void;
|
|
@@ -383,8 +383,14 @@ export interface Memory {
|
|
|
383
383
|
body: string;
|
|
384
384
|
tag: MemoryTag | null;
|
|
385
385
|
updatedAt: number;
|
|
386
|
+
source?: 'entry' | 'notes';
|
|
386
387
|
}
|
|
387
|
-
export
|
|
388
|
+
export interface MemoryScope {
|
|
389
|
+
id: string;
|
|
390
|
+
label: string;
|
|
391
|
+
group?: 'cones' | 'roles';
|
|
392
|
+
}
|
|
393
|
+
export type MemoryDraft = Omit<Memory, 'id' | 'updatedAt' | 'source'> & {
|
|
388
394
|
id?: string;
|
|
389
395
|
};
|
|
390
396
|
export interface MemoryEvents {
|
|
@@ -394,6 +400,7 @@ export interface MemoryPort extends Subscribable<MemoryEvents> {
|
|
|
394
400
|
list(): readonly Memory[];
|
|
395
401
|
save(memory: MemoryDraft): Memory;
|
|
396
402
|
remove(id: string): void;
|
|
403
|
+
scopes?(): readonly MemoryScope[];
|
|
397
404
|
}
|
|
398
405
|
export type MonitorStatus = 'active' | 'idle' | 'warn' | 'error';
|
|
399
406
|
export interface MonitorVital {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.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.19.0",
|
|
76
|
-
"@ai-ecoverse/slicc-shared-web": "1.
|
|
76
|
+
"@ai-ecoverse/slicc-shared-web": "1.10.0",
|
|
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",
|