@ai-ecoverse/slicc-spectrum 1.69.1 → 1.70.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 +6 -6
- package/dist/slicc-dummy.js +111 -3
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +60806 -60230
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/browser.d.ts +1 -0
- package/dist/types/app/files.d.ts +8 -0
- package/dist/types/app/memory.d.ts +7 -1
- package/dist/types/app/messages.d.ts +44 -5
- package/dist/types/app/search.d.ts +10 -0
- package/dist/types/app/tool-runs.d.ts +27 -0
- package/dist/types/components/file-tree.d.ts +3 -0
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-code.js';
|
|
|
15
15
|
import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
|
|
16
16
|
import '@adobe/spectrum-wc-icons/swc-icon-cursor-click.js';
|
|
17
17
|
import '@adobe/spectrum-wc-icons/swc-icon-globe-grid.js';
|
|
18
|
+
import '@adobe/spectrum-wc-icons/swc-icon-hand.js';
|
|
18
19
|
import '@adobe/spectrum-wc-icons/swc-icon-keyboard.js';
|
|
19
20
|
import '@adobe/spectrum-wc-icons/swc-icon-link.js';
|
|
20
21
|
import '@adobe/spectrum-wc-icons/swc-icon-open-in.js';
|
|
@@ -59,6 +59,12 @@ export declare class SliccFiles extends ModelElement {
|
|
|
59
59
|
error: {
|
|
60
60
|
state: boolean;
|
|
61
61
|
};
|
|
62
|
+
query: {
|
|
63
|
+
state: boolean;
|
|
64
|
+
};
|
|
65
|
+
unmatched: {
|
|
66
|
+
state: boolean;
|
|
67
|
+
};
|
|
62
68
|
};
|
|
63
69
|
count: number;
|
|
64
70
|
mounted: readonly string[];
|
|
@@ -68,6 +74,8 @@ export declare class SliccFiles extends ModelElement {
|
|
|
68
74
|
waiting: readonly string[];
|
|
69
75
|
inserting: ReadonlySet<string>;
|
|
70
76
|
error: string;
|
|
77
|
+
query: string;
|
|
78
|
+
unmatched: boolean;
|
|
71
79
|
constructor();
|
|
72
80
|
static styles: import("lit").CSSResult[];
|
|
73
81
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
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
|
+
import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
|
|
4
5
|
import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
|
|
5
6
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
6
|
-
import type { Memory, MemoryTag, SliccModel } from '../model/types.js';
|
|
7
|
+
import type { Memory, MemoryScope, MemoryTag, SliccModel } from '../model/types.js';
|
|
7
8
|
import { ModelElement } from './base.js';
|
|
8
9
|
export type TagFilter = MemoryTag | 'all' | 'untagged';
|
|
10
|
+
export declare const everyone = "*";
|
|
9
11
|
export declare function visible(memories: readonly Memory[], scope: string, tag: TagFilter, query: string): Memory[];
|
|
12
|
+
export declare function inScope(memories: readonly Memory[], scope: string): number;
|
|
13
|
+
export declare function emptyNote(total: number, filtered: boolean, scope: MemoryScope | null): string;
|
|
14
|
+
export declare function scopeLabel(scope: MemoryScope): MemoryScope;
|
|
10
15
|
export declare const scopeGroups: {
|
|
11
16
|
readonly cones: 'Cones';
|
|
12
17
|
readonly roles: 'Roles';
|
|
13
18
|
};
|
|
14
19
|
export declare const tagLabels: Record<MemoryTag, string>;
|
|
20
|
+
export declare const tagVariants: Record<MemoryTag, string>;
|
|
15
21
|
export declare function sections(memories: readonly Memory[]): Array<[string, Memory[]]>;
|
|
16
22
|
export declare class SliccMemory extends ModelElement {
|
|
17
23
|
#private;
|
|
@@ -13,8 +13,10 @@ import '@adobe/spectrum-wc/patterns/ai-toolkit/user-message/swc-user-message.js'
|
|
|
13
13
|
import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
|
|
14
14
|
import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
|
|
15
15
|
import '@adobe/spectrum-wc-icons/swc-icon-cancel.js';
|
|
16
|
+
import '@adobe/spectrum-wc-icons/swc-icon-checkmark.js';
|
|
16
17
|
import '@adobe/spectrum-wc-icons/swc-icon-checkmark-circle.js';
|
|
17
18
|
import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
|
|
19
|
+
import '@adobe/spectrum-wc-icons/swc-icon-clock-pending.js';
|
|
18
20
|
import '@adobe/spectrum-wc-icons/swc-icon-code.js';
|
|
19
21
|
import '@adobe/spectrum-wc-icons/swc-icon-data.js';
|
|
20
22
|
import '@adobe/spectrum-wc-icons/swc-icon-edit.js';
|
|
@@ -29,7 +31,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-tools.js';
|
|
|
29
31
|
import '@adobe/spectrum-wc-icons/swc-icon-user-group.js';
|
|
30
32
|
import '@adobe/spectrum-wc-icons/swc-icon-web-page.js';
|
|
31
33
|
import { nothing, type TemplateResult } from 'lit';
|
|
32
|
-
import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, MessagePart, SliccModel, SystemMessage, ToolCall, ToolMessage, UserMessage } from '../model/types.js';
|
|
34
|
+
import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, SliccModel, SystemMessage, ToolCall, ToolMessage, ToolStatus, UserMessage } from '../model/types.js';
|
|
33
35
|
export interface Handlers {
|
|
34
36
|
color: 'light' | 'dark';
|
|
35
37
|
model: SliccModel | null;
|
|
@@ -41,17 +43,54 @@ export interface Handlers {
|
|
|
41
43
|
open(path: string): void;
|
|
42
44
|
show(surfaceId: string): void;
|
|
43
45
|
suggest(text: string): void;
|
|
46
|
+
owners?: ReadonlyMap<string, Owner>;
|
|
44
47
|
}
|
|
48
|
+
export interface Owner {
|
|
49
|
+
id?: string;
|
|
50
|
+
at: number;
|
|
51
|
+
}
|
|
52
|
+
export type RunContext = Pick<Handlers, 'color' | 'model' | 'owners'>;
|
|
45
53
|
export declare const lickLabels: Record<LickChannel, [string, string]>;
|
|
54
|
+
interface ToolKind {
|
|
55
|
+
id: string;
|
|
56
|
+
one: string;
|
|
57
|
+
many: string;
|
|
58
|
+
icon: TemplateResult;
|
|
59
|
+
}
|
|
60
|
+
export declare function toolKind(name: string): ToolKind;
|
|
61
|
+
export declare function toolSummary(calls: ToolCall[]): string;
|
|
62
|
+
export declare function state(status: ToolStatus, label?: string): TemplateResult;
|
|
63
|
+
export declare function statusLabel(status: ToolStatus): string;
|
|
64
|
+
export declare function overall(calls: readonly ToolCall[]): [ToolStatus, string];
|
|
65
|
+
type Target = {
|
|
66
|
+
type: 'site';
|
|
67
|
+
host: string;
|
|
68
|
+
} | {
|
|
69
|
+
type: 'file';
|
|
70
|
+
path: string;
|
|
71
|
+
};
|
|
72
|
+
export declare function target(command: string): Target | null;
|
|
73
|
+
export declare function chip(call: ToolCall, model?: SliccModel | null): TemplateResult;
|
|
46
74
|
export declare function time(at: number): string;
|
|
47
75
|
export declare function day(at: number): string;
|
|
48
76
|
export declare function size(bytes: number): string;
|
|
49
77
|
export declare function host(url: string): string | null;
|
|
50
|
-
export
|
|
51
|
-
|
|
78
|
+
export interface CardOptions {
|
|
79
|
+
open?: boolean;
|
|
80
|
+
run?: boolean;
|
|
81
|
+
owner?: Owner;
|
|
82
|
+
model?: SliccModel | null;
|
|
83
|
+
toggle?: (event: Event) => void;
|
|
84
|
+
}
|
|
85
|
+
export declare function tool(call: ToolCall, color?: 'light' | 'dark', options?: CardOptions): TemplateResult;
|
|
86
|
+
export declare const clusterSize = 3;
|
|
87
|
+
export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean, extra?: ToolCall[]): Array<TemplateResult | typeof nothing>;
|
|
88
|
+
export declare function toolTail(message: Message, showThinking: boolean): boolean;
|
|
89
|
+
export declare function toolOnly(message: Message, showThinking: boolean): ToolCall[] | null;
|
|
52
90
|
export declare function user(message: UserMessage): TemplateResult;
|
|
53
|
-
export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean, suggestion?: string | null): TemplateResult;
|
|
54
|
-
export declare function toolMessage(message: ToolMessage,
|
|
91
|
+
export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean, suggestion?: string | null, extra?: ToolCall[]): TemplateResult;
|
|
92
|
+
export declare function toolMessage(message: ToolMessage, context?: RunContext & Partial<Pick<Handlers, 'suggest'>>, extra?: ToolCall[], suggestion?: string | null): TemplateResult;
|
|
55
93
|
export declare function system(message: SystemMessage, handlers: Handlers): TemplateResult;
|
|
56
94
|
export declare function lick(message: LickMessage, handlers: Handlers): TemplateResult;
|
|
57
95
|
export declare const messageCss: import("lit").CSSResult;
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@spectrum-web-components/search/sp-search.js';
|
|
2
|
+
import { type TemplateResult } from 'lit';
|
|
3
|
+
export interface SearchOptions {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
input: (value: string) => void;
|
|
7
|
+
keydown?: (event: KeyboardEvent) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const searchCss: import("lit").CSSResult;
|
|
10
|
+
export declare function search(options: SearchOptions): TemplateResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LitElement, type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel, ToolCall } from '../model/types.js';
|
|
3
|
+
import { type Owner } from './messages.js';
|
|
4
|
+
export declare class SliccToolRuns extends LitElement {
|
|
5
|
+
#private;
|
|
6
|
+
static properties: {
|
|
7
|
+
calls: {
|
|
8
|
+
attribute: boolean;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
attribute: boolean;
|
|
12
|
+
};
|
|
13
|
+
model: {
|
|
14
|
+
attribute: boolean;
|
|
15
|
+
};
|
|
16
|
+
owners: {
|
|
17
|
+
attribute: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
calls: ToolCall[];
|
|
21
|
+
color: 'light' | 'dark';
|
|
22
|
+
model: SliccModel | null;
|
|
23
|
+
owners: ReadonlyMap<string, Owner> | null;
|
|
24
|
+
constructor();
|
|
25
|
+
protected createRenderRoot(): HTMLElement;
|
|
26
|
+
render(): TemplateResult;
|
|
27
|
+
}
|
|
@@ -5,6 +5,9 @@ export declare class SliccFileTree extends HTMLElement {
|
|
|
5
5
|
static loaded: boolean;
|
|
6
6
|
get paths(): readonly string[];
|
|
7
7
|
set paths(value: readonly string[]);
|
|
8
|
+
get query(): string;
|
|
9
|
+
set query(value: string);
|
|
10
|
+
get empty(): boolean;
|
|
8
11
|
get gitStatus(): readonly GitStatusEntry[];
|
|
9
12
|
set gitStatus(value: readonly GitStatusEntry[]);
|
|
10
13
|
get expanded(): readonly string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.70.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",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@adobe/spectrum-wc": "2.0.0-beta.4",
|
|
74
74
|
"@adobe/spectrum-wc-icons": "2.0.0-beta.4",
|
|
75
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
76
|
-
"@ai-ecoverse/slicc-shared-web": "1.13.
|
|
75
|
+
"@ai-ecoverse/slicc-kernel": "1.87.0",
|
|
76
|
+
"@ai-ecoverse/slicc-shared-web": "1.13.2",
|
|
77
77
|
"@ai-ecoverse/slicc-vault": "1.9.1",
|
|
78
78
|
"@ai-ecoverse/wasm-bash": "5.3.0-18",
|
|
79
79
|
"@ai-ecoverse/wasm-coreutils": "9.7.0-3",
|