@ai-ecoverse/slicc-spectrum 1.1.0 → 1.2.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 +29 -6
- package/dist/{chunk-4RGMMAR4.js → chunk-4GQ6THC2.js} +3 -3
- package/dist/{chunk-H5WU2XYY.js → chunk-5XWUZJTT.js} +2 -2
- package/dist/chunk-64K5VONJ.js +11 -0
- package/dist/chunk-64K5VONJ.js.map +7 -0
- package/dist/{chunk-J45KH7MF.js → chunk-6JNYNXUQ.js} +2 -2
- package/dist/chunk-6JYCQXDO.js +8 -0
- package/dist/chunk-6JYCQXDO.js.map +7 -0
- package/dist/{chunk-ZTPYBVZL.js → chunk-6N3GZNXH.js} +3 -3
- package/dist/chunk-6ODADG7T.js +8 -0
- package/dist/chunk-6ODADG7T.js.map +7 -0
- package/dist/chunk-6T3O5K6R.js +8 -0
- package/dist/{chunk-MR7SU4GJ.js → chunk-7PY7B3ZW.js} +2 -2
- package/dist/{chunk-Q4AC2O6Z.js → chunk-AXQFWXYZ.js} +8 -2
- package/dist/chunk-BDOI3WEE.js +8 -0
- package/dist/chunk-BDOI3WEE.js.map +7 -0
- package/dist/chunk-BHAGWMDD.js +8 -0
- package/dist/chunk-BHAGWMDD.js.map +7 -0
- package/dist/chunk-C7X653JJ.js +8 -0
- package/dist/chunk-CGS66GRP.js +11 -0
- package/dist/chunk-CGS66GRP.js.map +7 -0
- package/dist/chunk-CONYKGKV.js +11 -0
- package/dist/chunk-CONYKGKV.js.map +7 -0
- package/dist/chunk-CU7BC2RI.js +11 -0
- package/dist/chunk-CU7BC2RI.js.map +7 -0
- package/dist/chunk-EX57SDII.js +8 -0
- package/dist/chunk-EX57SDII.js.map +7 -0
- package/dist/chunk-GKXQPI4G.js +8 -0
- package/dist/chunk-GKXQPI4G.js.map +7 -0
- package/dist/{chunk-FN3Y2AYJ.js → chunk-I2NMYJ25.js} +3 -3
- package/dist/chunk-I2NMYJ25.js.map +7 -0
- package/dist/chunk-I4OYHPAU.js +11 -0
- package/dist/chunk-I4OYHPAU.js.map +7 -0
- package/dist/{chunk-MTF6JFSL.js → chunk-J3QOBXZJ.js} +2 -2
- package/dist/chunk-JBYBW627.js +8 -0
- package/dist/chunk-JBYBW627.js.map +7 -0
- package/dist/chunk-JWTAKXQS.js +8 -0
- package/dist/chunk-JWTAKXQS.js.map +7 -0
- package/dist/chunk-KMP5HO3E.js +11 -0
- package/dist/chunk-KMP5HO3E.js.map +7 -0
- package/dist/chunk-KWPU2PY3.js +14 -0
- package/dist/chunk-KWPU2PY3.js.map +7 -0
- package/dist/chunk-KYBD6ZRT.js +8 -0
- package/dist/chunk-KYBD6ZRT.js.map +7 -0
- package/dist/chunk-LBXW6XNL.js +18 -0
- package/dist/chunk-LBXW6XNL.js.map +7 -0
- package/dist/chunk-LDR4U5KX.js +8 -0
- package/dist/chunk-LDR4U5KX.js.map +7 -0
- package/dist/chunk-LII3WY6Y.js +11 -0
- package/dist/chunk-LII3WY6Y.js.map +7 -0
- package/dist/chunk-LY7WVBCB.js +10 -0
- package/dist/chunk-LY7WVBCB.js.map +7 -0
- package/dist/chunk-MJVAL555.js +8 -0
- package/dist/chunk-MJVAL555.js.map +7 -0
- package/dist/chunk-NLDFGCIL.js +11 -0
- package/dist/chunk-NLDFGCIL.js.map +7 -0
- package/dist/{chunk-SZ33GAVH.js → chunk-OFQ56DAN.js} +5 -5
- package/dist/chunk-S5EGO4NA.js +11 -0
- package/dist/chunk-S5EGO4NA.js.map +7 -0
- package/dist/{chunk-24WRGUXG.js → chunk-T2LAT2D6.js} +2 -2
- package/dist/chunk-TAZBKRHT.js +10 -0
- package/dist/chunk-TAZBKRHT.js.map +7 -0
- package/dist/chunk-TK4ZJ7LA.js +5346 -0
- package/dist/chunk-TK4ZJ7LA.js.map +7 -0
- package/dist/chunk-UCIBH53C.js +11 -0
- package/dist/chunk-UCIBH53C.js.map +7 -0
- package/dist/chunk-XZM23TK4.js +11 -0
- package/dist/chunk-XZM23TK4.js.map +7 -0
- package/dist/chunk-YPQKCWWG.js +19 -0
- package/dist/chunk-YPQKCWWG.js.map +7 -0
- package/dist/chunk-YX6SI5VA.js +11 -0
- package/dist/chunk-YX6SI5VA.js.map +7 -0
- package/dist/slicc-dummy.js +1475 -57
- package/dist/slicc-dummy.js.map +4 -4
- package/dist/slicc-terminal.js +7 -5344
- package/dist/slicc-terminal.js.map +4 -4
- package/dist/slicc-ui.js +56839 -17869
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/app.d.ts +5 -11
- package/dist/types/app/base.d.ts +9 -1
- package/dist/types/app/browser.d.ts +25 -0
- package/dist/types/app/changes.d.ts +24 -0
- package/dist/types/app/chat.d.ts +2 -14
- package/dist/types/app/composer.d.ts +69 -0
- package/dist/types/app/files.d.ts +56 -0
- package/dist/types/app/freezer.d.ts +11 -0
- package/dist/types/app/markdown.d.ts +12 -3
- package/dist/types/app/memory.d.ts +39 -0
- package/dist/types/app/messages.d.ts +21 -0
- package/dist/types/app/monitor.d.ts +11 -0
- package/dist/types/app/panels.d.ts +11 -3
- package/dist/types/app/settings.d.ts +21 -0
- package/dist/types/app/spectrum.d.ts +18 -0
- package/dist/types/app/sprinkle.d.ts +18 -0
- package/dist/types/app/terminals.d.ts +25 -0
- package/dist/types/app/tray.d.ts +25 -0
- package/dist/types/components/code-view.d.ts +47 -0
- package/dist/types/components/file-tree.d.ts +18 -0
- package/dist/types/dummy/agent.d.ts +21 -3
- package/dist/types/dummy/extras.d.ts +8 -0
- package/dist/types/dummy/fixtures.d.ts +2 -1
- package/dist/types/dummy/memory.d.ts +9 -0
- package/dist/types/dummy/monitor.d.ts +9 -0
- package/dist/types/dummy/script.d.ts +8 -2
- package/dist/types/dummy/showcase.d.ts +6 -0
- package/dist/types/dummy/sprinkles.d.ts +9 -0
- package/dist/types/dummy/tray.d.ts +10 -0
- package/dist/types/model/types.d.ts +280 -8
- package/dist/types/ui.d.ts +11 -3
- package/package.json +6 -1
- package/dist/chunk-T5QFSUYQ.js +0 -8
- /package/dist/{chunk-4RGMMAR4.js.map → chunk-4GQ6THC2.js.map} +0 -0
- /package/dist/{chunk-FN3Y2AYJ.js.map → chunk-5XWUZJTT.js.map} +0 -0
- /package/dist/{chunk-J45KH7MF.js.map → chunk-6JNYNXUQ.js.map} +0 -0
- /package/dist/{chunk-ZTPYBVZL.js.map → chunk-6N3GZNXH.js.map} +0 -0
- /package/dist/{chunk-H5WU2XYY.js.map → chunk-6T3O5K6R.js.map} +0 -0
- /package/dist/{chunk-MR7SU4GJ.js.map → chunk-7PY7B3ZW.js.map} +0 -0
- /package/dist/{chunk-Q4AC2O6Z.js.map → chunk-AXQFWXYZ.js.map} +0 -0
- /package/dist/{chunk-T5QFSUYQ.js.map → chunk-C7X653JJ.js.map} +0 -0
- /package/dist/{chunk-MTF6JFSL.js.map → chunk-J3QOBXZJ.js.map} +0 -0
- /package/dist/{chunk-SZ33GAVH.js.map → chunk-OFQ56DAN.js.map} +0 -0
- /package/dist/{chunk-24WRGUXG.js.map → chunk-T2LAT2D6.js.map} +0 -0
package/dist/types/app/app.d.ts
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
2
|
import type { SliccDock } from '../components/dock.js';
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
5
|
-
import { type ScreenClass } from './panels.js';
|
|
6
|
-
export
|
|
7
|
-
export declare function resolveColor(scheme: ColorScheme, prefersDark: boolean): Color;
|
|
8
|
-
export declare class SliccApp extends ModelElement {
|
|
3
|
+
import type { SliccModel } from '../model/types.js';
|
|
4
|
+
import { ThemedElement } from './base.js';
|
|
5
|
+
import { type DocumentKind, type ScreenClass } from './panels.js';
|
|
6
|
+
export declare class SliccApp extends ThemedElement {
|
|
9
7
|
#private;
|
|
10
8
|
static properties: {
|
|
11
9
|
model: {
|
|
12
10
|
attribute: boolean;
|
|
13
11
|
};
|
|
14
|
-
prefersDark: {
|
|
15
|
-
state: boolean;
|
|
16
|
-
};
|
|
17
12
|
screen: {
|
|
18
13
|
reflect: boolean;
|
|
19
14
|
};
|
|
20
15
|
};
|
|
21
|
-
prefersDark: boolean;
|
|
22
16
|
screen: ScreenClass;
|
|
23
17
|
storage: Storage | null;
|
|
24
18
|
layoutKey: string;
|
|
25
19
|
constructor();
|
|
26
20
|
static styles: import("lit").CSSResult[];
|
|
27
|
-
get color(): Color;
|
|
28
21
|
get dock(): SliccDock;
|
|
29
22
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
30
23
|
connectedCallback(): void;
|
|
@@ -35,6 +28,7 @@ export declare class SliccApp extends ModelElement {
|
|
|
35
28
|
get storageKey(): string;
|
|
36
29
|
resetLayout(): void;
|
|
37
30
|
show(id: string): void;
|
|
31
|
+
open(kind: DocumentKind, path: string): void;
|
|
38
32
|
toggleColor(): void;
|
|
39
33
|
render(): TemplateResult;
|
|
40
34
|
}
|
package/dist/types/app/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
-
import type { AgentStatus, SliccModel } from '../model/types.js';
|
|
2
|
+
import type { AgentStatus, ColorScheme, SliccModel } from '../model/types.js';
|
|
3
3
|
export declare class ModelElement extends LitElement {
|
|
4
4
|
#private;
|
|
5
5
|
static properties: {
|
|
@@ -11,10 +11,18 @@ export declare class ModelElement extends LitElement {
|
|
|
11
11
|
model: SliccModel | null;
|
|
12
12
|
constructor();
|
|
13
13
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
14
|
+
protected focusOn(selector: string): void;
|
|
14
15
|
connectedCallback(): void;
|
|
15
16
|
disconnectedCallback(): void;
|
|
16
17
|
protected willUpdate(changed: PropertyValues): void;
|
|
17
18
|
}
|
|
19
|
+
export type Color = 'light' | 'dark';
|
|
20
|
+
export declare function resolveColor(scheme: ColorScheme, prefersDark: boolean): Color;
|
|
21
|
+
export declare class ThemedElement extends ModelElement {
|
|
22
|
+
#private;
|
|
23
|
+
get color(): Color;
|
|
24
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
25
|
+
}
|
|
18
26
|
export declare const statusVariant: {
|
|
19
27
|
readonly idle: 'neutral';
|
|
20
28
|
readonly thinking: 'info';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare function normalize(input: string): string;
|
|
5
|
+
export declare class SliccBrowser extends ModelElement {
|
|
6
|
+
#private;
|
|
7
|
+
static properties: {
|
|
8
|
+
model: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
shot: {
|
|
12
|
+
state: boolean;
|
|
13
|
+
};
|
|
14
|
+
address: {
|
|
15
|
+
state: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
shot: string;
|
|
19
|
+
address: string;
|
|
20
|
+
constructor();
|
|
21
|
+
static styles: import("lit").CSSResult[];
|
|
22
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
23
|
+
focus(): void;
|
|
24
|
+
render(): TemplateResult;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement, ThemedElement } from './base.js';
|
|
4
|
+
export declare class SliccChanges extends ModelElement {
|
|
5
|
+
#private;
|
|
6
|
+
static styles: import("lit").CSSResult[];
|
|
7
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
8
|
+
focus(): void;
|
|
9
|
+
render(): TemplateResult;
|
|
10
|
+
}
|
|
11
|
+
export declare class SliccDiffPanel extends ThemedElement {
|
|
12
|
+
#private;
|
|
13
|
+
static properties: {
|
|
14
|
+
model: {
|
|
15
|
+
attribute: boolean;
|
|
16
|
+
};
|
|
17
|
+
path: {};
|
|
18
|
+
};
|
|
19
|
+
path: string;
|
|
20
|
+
constructor();
|
|
21
|
+
static styles: import("lit").CSSResult[];
|
|
22
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
23
|
+
render(): TemplateResult;
|
|
24
|
+
}
|
package/dist/types/app/chat.d.ts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
2
|
import type { SliccModel } from '../model/types.js';
|
|
3
|
-
import {
|
|
4
|
-
export declare class SliccChat extends
|
|
3
|
+
import { ThemedElement } from './base.js';
|
|
4
|
+
export declare class SliccChat extends ThemedElement {
|
|
5
5
|
#private;
|
|
6
|
-
static properties: {
|
|
7
|
-
model: {
|
|
8
|
-
attribute: boolean;
|
|
9
|
-
};
|
|
10
|
-
draft: {
|
|
11
|
-
state: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
draft: string;
|
|
15
|
-
constructor();
|
|
16
6
|
static styles: import("lit").CSSResult[];
|
|
17
7
|
protected subscribe(model: SliccModel): Array<() => void>;
|
|
18
8
|
protected firstUpdated(): void;
|
|
19
9
|
focus(): void;
|
|
20
|
-
send(): void;
|
|
21
|
-
stop(): void;
|
|
22
10
|
render(): TemplateResult;
|
|
23
11
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { Attachment, SendMode, SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare const limit: number;
|
|
5
|
+
export interface Choice {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
detail: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Command {
|
|
11
|
+
name: string;
|
|
12
|
+
detail: string;
|
|
13
|
+
args?(model: SliccModel): Choice[];
|
|
14
|
+
run(model: SliccModel, agentId: string, arg: string): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const commands: Command[];
|
|
17
|
+
export type PopupKind = 'command' | 'argument' | 'mention' | 'file' | 'secret';
|
|
18
|
+
export interface Popup {
|
|
19
|
+
kind: PopupKind;
|
|
20
|
+
start: number;
|
|
21
|
+
query: string;
|
|
22
|
+
items: Choice[];
|
|
23
|
+
index: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function readFile(file: Blob): Promise<string>;
|
|
26
|
+
export declare function filter(items: Choice[], query: string): Choice[];
|
|
27
|
+
export declare function trigger(text: string, caret: number): {
|
|
28
|
+
kind: PopupKind;
|
|
29
|
+
start: number;
|
|
30
|
+
query: string;
|
|
31
|
+
} | null;
|
|
32
|
+
export declare class SliccComposer extends ModelElement {
|
|
33
|
+
#private;
|
|
34
|
+
static properties: {
|
|
35
|
+
model: {
|
|
36
|
+
attribute: boolean;
|
|
37
|
+
};
|
|
38
|
+
value: {
|
|
39
|
+
state: boolean;
|
|
40
|
+
};
|
|
41
|
+
attachments: {
|
|
42
|
+
state: boolean;
|
|
43
|
+
};
|
|
44
|
+
popup: {
|
|
45
|
+
state: boolean;
|
|
46
|
+
};
|
|
47
|
+
dictating: {
|
|
48
|
+
state: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
value: string;
|
|
52
|
+
attachments: Attachment[];
|
|
53
|
+
popup: Popup | null;
|
|
54
|
+
dictating: boolean;
|
|
55
|
+
constructor();
|
|
56
|
+
static styles: import("lit").CSSResult[];
|
|
57
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
58
|
+
focus(): void;
|
|
59
|
+
send(mode?: SendMode): void;
|
|
60
|
+
addFiles(files: readonly File[]): Promise<void>;
|
|
61
|
+
detach(id: string): void;
|
|
62
|
+
screenshot(): Promise<void>;
|
|
63
|
+
attachPath(path: string): Promise<void>;
|
|
64
|
+
shareSecret(name: string): void;
|
|
65
|
+
openPopup(kind: 'file' | 'secret'): void;
|
|
66
|
+
pick(choice: Choice): void;
|
|
67
|
+
dictate(): void;
|
|
68
|
+
render(): TemplateResult;
|
|
69
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { GitStatusEntry } from '../components/file-tree.js';
|
|
3
|
+
import type { Change, FileEntry, SliccModel } from '../model/types.js';
|
|
4
|
+
import { ModelElement, ThemedElement } from './base.js';
|
|
5
|
+
export declare function relative(path: string): string;
|
|
6
|
+
export declare function basename(path: string): string;
|
|
7
|
+
export declare function treePaths(entries: readonly FileEntry[]): string[];
|
|
8
|
+
export declare function treeStatus(changes: readonly Change[]): GitStatusEntry[];
|
|
9
|
+
export declare function ancestors(paths: readonly string[]): string[];
|
|
10
|
+
export declare function agentName(model: SliccModel | null, id: string | null): string;
|
|
11
|
+
export declare function request(target: EventTarget, type: 'open-file' | 'open-diff', path: string): void;
|
|
12
|
+
export declare const panelCss: import("lit").CSSResult;
|
|
13
|
+
export declare const letters: {
|
|
14
|
+
readonly added: 'A';
|
|
15
|
+
readonly modified: 'M';
|
|
16
|
+
readonly deleted: 'D';
|
|
17
|
+
};
|
|
18
|
+
export declare class SliccFiles extends ModelElement {
|
|
19
|
+
#private;
|
|
20
|
+
static properties: {
|
|
21
|
+
model: {
|
|
22
|
+
attribute: boolean;
|
|
23
|
+
};
|
|
24
|
+
count: {
|
|
25
|
+
state: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
count: number;
|
|
29
|
+
constructor();
|
|
30
|
+
static styles: import("lit").CSSResult[];
|
|
31
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
32
|
+
focus(): void;
|
|
33
|
+
render(): TemplateResult;
|
|
34
|
+
}
|
|
35
|
+
export declare class SliccFileView extends ThemedElement {
|
|
36
|
+
#private;
|
|
37
|
+
static properties: {
|
|
38
|
+
model: {
|
|
39
|
+
attribute: boolean;
|
|
40
|
+
};
|
|
41
|
+
path: {};
|
|
42
|
+
text: {
|
|
43
|
+
state: boolean;
|
|
44
|
+
};
|
|
45
|
+
missing: {
|
|
46
|
+
state: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
path: string;
|
|
50
|
+
text: string | null;
|
|
51
|
+
missing: boolean;
|
|
52
|
+
constructor();
|
|
53
|
+
static styles: import("lit").CSSResult[];
|
|
54
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
55
|
+
render(): TemplateResult;
|
|
56
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare function ago(at: number, now?: number): string;
|
|
5
|
+
export declare class SliccFreezer extends ModelElement {
|
|
6
|
+
#private;
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
9
|
+
focus(): void;
|
|
10
|
+
render(): TemplateResult;
|
|
11
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
|
|
2
|
+
export interface ListItem {
|
|
3
|
+
text: string;
|
|
4
|
+
task: boolean | null;
|
|
5
|
+
children: Block | null;
|
|
6
|
+
}
|
|
7
|
+
export type Block = {
|
|
3
8
|
type: 'code';
|
|
4
9
|
lang: string;
|
|
5
10
|
text: string;
|
|
@@ -10,10 +15,15 @@ type Block = {
|
|
|
10
15
|
} | {
|
|
11
16
|
type: 'list';
|
|
12
17
|
ordered: boolean;
|
|
13
|
-
items:
|
|
18
|
+
items: ListItem[];
|
|
14
19
|
} | {
|
|
15
20
|
type: 'table';
|
|
16
21
|
rows: string[][];
|
|
22
|
+
} | {
|
|
23
|
+
type: 'quote';
|
|
24
|
+
text: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'rule';
|
|
17
27
|
} | {
|
|
18
28
|
type: 'paragraph';
|
|
19
29
|
text: string;
|
|
@@ -21,4 +31,3 @@ type Block = {
|
|
|
21
31
|
export declare function inline(text: string): TemplateResult[];
|
|
22
32
|
export declare function parse(text: string): Block[];
|
|
23
33
|
export declare function markdown(text: string): TemplateResult;
|
|
24
|
-
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { Memory, MemoryTag, SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export type TagFilter = MemoryTag | 'all' | 'untagged';
|
|
5
|
+
export declare function visible(memories: readonly Memory[], scope: string, tag: TagFilter, query: string): Memory[];
|
|
6
|
+
export declare function sections(memories: readonly Memory[]): Array<[string, Memory[]]>;
|
|
7
|
+
export declare class SliccMemory extends ModelElement {
|
|
8
|
+
#private;
|
|
9
|
+
static properties: {
|
|
10
|
+
model: {
|
|
11
|
+
attribute: boolean;
|
|
12
|
+
};
|
|
13
|
+
query: {
|
|
14
|
+
state: boolean;
|
|
15
|
+
};
|
|
16
|
+
tag: {
|
|
17
|
+
state: boolean;
|
|
18
|
+
};
|
|
19
|
+
scope: {
|
|
20
|
+
state: boolean;
|
|
21
|
+
};
|
|
22
|
+
open: {
|
|
23
|
+
state: boolean;
|
|
24
|
+
};
|
|
25
|
+
editing: {
|
|
26
|
+
state: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
query: string;
|
|
30
|
+
tag: TagFilter;
|
|
31
|
+
scope: string;
|
|
32
|
+
open: string | null;
|
|
33
|
+
editing: string | null;
|
|
34
|
+
constructor();
|
|
35
|
+
static styles: import("lit").CSSResult[];
|
|
36
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
37
|
+
focus(): void;
|
|
38
|
+
render(): TemplateResult;
|
|
39
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { nothing, type TemplateResult } from 'lit';
|
|
2
|
+
import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, MessagePart, SystemMessage, ToolCall, ToolMessage, UserMessage } from '../model/types.js';
|
|
3
|
+
export interface Handlers {
|
|
4
|
+
color: 'light' | 'dark';
|
|
5
|
+
answer(questionId: string, answer: string): void;
|
|
6
|
+
resolve(messageId: string, state: Exclude<LickState, 'pending'>): void;
|
|
7
|
+
action(action: ErrorAction): void;
|
|
8
|
+
open(path: string): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const lickLabels: Record<LickChannel, [string, string]>;
|
|
11
|
+
export declare function time(at: number): string;
|
|
12
|
+
export declare function day(at: number): string;
|
|
13
|
+
export declare function size(bytes: number): string;
|
|
14
|
+
export declare function tool(call: ToolCall): TemplateResult;
|
|
15
|
+
export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean, streaming: boolean): Array<TemplateResult | typeof nothing>;
|
|
16
|
+
export declare function user(message: UserMessage): TemplateResult;
|
|
17
|
+
export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean): TemplateResult;
|
|
18
|
+
export declare function toolMessage(message: ToolMessage): TemplateResult;
|
|
19
|
+
export declare function system(message: SystemMessage, handlers: Handlers): TemplateResult;
|
|
20
|
+
export declare function lick(message: LickMessage, handlers: Handlers): TemplateResult;
|
|
21
|
+
export declare const messageCss: import("lit").CSSResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { MonitorSection, MonitorStatus, SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare function sparkline(points: readonly number[], width?: number, height?: number): string;
|
|
5
|
+
export declare function health(section: MonitorSection): MonitorStatus;
|
|
6
|
+
export declare class SliccMonitor extends ModelElement {
|
|
7
|
+
#private;
|
|
8
|
+
static styles: import("lit").CSSResult[];
|
|
9
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
10
|
+
render(): TemplateResult;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SliccDock } from '../components/dock.js';
|
|
2
|
-
import type { SliccModel } from '../model/types.js';
|
|
1
|
+
import type { PanelParams, SliccDock } from '../components/dock.js';
|
|
2
|
+
import type { SliccModel, Sprinkle } from '../model/types.js';
|
|
3
3
|
export type Direction = 'left' | 'right' | 'above' | 'below' | 'within';
|
|
4
4
|
export type Side = 'left' | 'center' | 'right';
|
|
5
5
|
export type ScreenClass = 'phone' | 'tablet' | 'desktop';
|
|
@@ -22,10 +22,18 @@ export interface Surface {
|
|
|
22
22
|
width?: number;
|
|
23
23
|
}
|
|
24
24
|
export declare const surfaces: Surface[];
|
|
25
|
+
export type DocumentKind = 'file' | 'diff';
|
|
26
|
+
export declare const documents: Record<DocumentKind, {
|
|
27
|
+
tag: string;
|
|
28
|
+
title(path: string): string;
|
|
29
|
+
}>;
|
|
25
30
|
export declare function screenClass(width: number): ScreenClass;
|
|
26
31
|
export declare function surface(id: string): Surface | undefined;
|
|
27
|
-
export declare function create(tag: string, model: SliccModel): HTMLElement;
|
|
32
|
+
export declare function create(tag: string, model: SliccModel, params?: PanelParams): HTMLElement;
|
|
28
33
|
export declare function placement(dock: SliccDock, side: Side, screen: ScreenClass): Placement;
|
|
29
34
|
export declare function openSurface(dock: SliccDock, item: Surface, screen: ScreenClass): void;
|
|
35
|
+
export declare function openDocument(dock: SliccDock, kind: DocumentKind, path: string, screen: ScreenClass): string;
|
|
30
36
|
export declare function defaultLayout(dock: SliccDock, screen: ScreenClass): void;
|
|
31
37
|
export declare function closed(dock: SliccDock): Surface[];
|
|
38
|
+
export declare function sprinkleSurface(sprinkle: Sprinkle): Surface;
|
|
39
|
+
export declare function openSprinkle(dock: SliccDock, sprinkle: Sprinkle, screen: ScreenClass): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare class SliccSettings extends ModelElement {
|
|
5
|
+
#private;
|
|
6
|
+
static properties: {
|
|
7
|
+
model: {
|
|
8
|
+
attribute: boolean;
|
|
9
|
+
};
|
|
10
|
+
pending: {
|
|
11
|
+
state: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
pending: ReadonlySet<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
17
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
18
|
+
focus(): void;
|
|
19
|
+
connect(id: string): Promise<void>;
|
|
20
|
+
render(): TemplateResult;
|
|
21
|
+
}
|
|
@@ -3,6 +3,7 @@ import '@spectrum-web-components/theme/spectrum-two/theme-light.js';
|
|
|
3
3
|
import '@spectrum-web-components/theme/spectrum-two/theme-dark.js';
|
|
4
4
|
import '@spectrum-web-components/theme/spectrum-two/scale-medium.js';
|
|
5
5
|
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
6
|
+
import '@spectrum-web-components/action-group/sp-action-group.js';
|
|
6
7
|
import '@spectrum-web-components/action-menu/sp-action-menu.js';
|
|
7
8
|
import '@spectrum-web-components/badge/sp-badge.js';
|
|
8
9
|
import '@spectrum-web-components/button/sp-button.js';
|
|
@@ -11,9 +12,26 @@ import '@spectrum-web-components/menu/sp-menu-divider.js';
|
|
|
11
12
|
import '@spectrum-web-components/menu/sp-menu-item.js';
|
|
12
13
|
import '@spectrum-web-components/picker/sp-picker.js';
|
|
13
14
|
import '@spectrum-web-components/progress-circle/sp-progress-circle.js';
|
|
15
|
+
import '@spectrum-web-components/search/sp-search.js';
|
|
16
|
+
import '@spectrum-web-components/switch/sp-switch.js';
|
|
14
17
|
import '@spectrum-web-components/textfield/sp-textfield.js';
|
|
15
18
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-chat.js';
|
|
19
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-add.js';
|
|
20
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark.js';
|
|
21
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-compare.js';
|
|
16
22
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-contrast.js';
|
|
23
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-filter.js';
|
|
24
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-checkmark-circle.js';
|
|
25
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-data.js';
|
|
26
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-history.js';
|
|
27
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-lightbulb.js';
|
|
28
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-globe-grid.js';
|
|
29
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-code.js';
|
|
30
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-folder.js';
|
|
31
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-microphone.js';
|
|
32
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-refresh.js';
|
|
33
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-revert.js';
|
|
17
34
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-send.js';
|
|
18
35
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-user-group.js';
|
|
36
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-settings.js';
|
|
19
37
|
import '@spectrum-web-components/icons-workflow/icons/sp-icon-view-grid.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ThemedElement } from './base.js';
|
|
4
|
+
export declare function themed(source: string, color: 'light' | 'dark'): string;
|
|
5
|
+
export declare class SliccSprinkle extends ThemedElement {
|
|
6
|
+
#private;
|
|
7
|
+
static properties: {
|
|
8
|
+
model: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
sprinkle: {};
|
|
12
|
+
};
|
|
13
|
+
sprinkle: string;
|
|
14
|
+
constructor();
|
|
15
|
+
static styles: import("lit").CSSResult;
|
|
16
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
17
|
+
render(): TemplateResult;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel } from '../model/types.js';
|
|
3
|
+
import { ThemedElement } from './base.js';
|
|
4
|
+
export declare function deepActive(root: Document | ShadowRoot): HTMLElement | null;
|
|
5
|
+
export declare class SliccTerminals extends ThemedElement {
|
|
6
|
+
#private;
|
|
7
|
+
static properties: {
|
|
8
|
+
model: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
active: {
|
|
12
|
+
state: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
active: string;
|
|
16
|
+
constructor();
|
|
17
|
+
static styles: import("lit").CSSResult[];
|
|
18
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
19
|
+
focus(): void;
|
|
20
|
+
select(id: string): void;
|
|
21
|
+
add(): void;
|
|
22
|
+
close(id: string): void;
|
|
23
|
+
protected updated(): void;
|
|
24
|
+
render(): TemplateResult;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { SliccModel, TrayConnection } from '../model/types.js';
|
|
3
|
+
import { ModelElement } from './base.js';
|
|
4
|
+
export declare const connectionVariant: Record<TrayConnection, string>;
|
|
5
|
+
export declare class SliccTray extends ModelElement {
|
|
6
|
+
#private;
|
|
7
|
+
static properties: {
|
|
8
|
+
model: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
};
|
|
11
|
+
open: {
|
|
12
|
+
state: boolean;
|
|
13
|
+
};
|
|
14
|
+
copied: {
|
|
15
|
+
state: boolean;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
open: boolean;
|
|
19
|
+
copied: boolean;
|
|
20
|
+
constructor();
|
|
21
|
+
static styles: import("lit").CSSResult[];
|
|
22
|
+
protected subscribe(model: SliccModel): Array<() => void>;
|
|
23
|
+
copy(): Promise<void>;
|
|
24
|
+
render(): TemplateResult;
|
|
25
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type CodeColor = 'light' | 'dark';
|
|
2
|
+
interface Viewer {
|
|
3
|
+
cleanUp(): void;
|
|
4
|
+
}
|
|
5
|
+
declare abstract class PierreView extends HTMLElement {
|
|
6
|
+
#private;
|
|
7
|
+
static observedAttributes: string[];
|
|
8
|
+
get path(): string;
|
|
9
|
+
set path(value: string);
|
|
10
|
+
get color(): CodeColor;
|
|
11
|
+
set color(value: CodeColor);
|
|
12
|
+
protected options(): {
|
|
13
|
+
theme: {
|
|
14
|
+
light: string;
|
|
15
|
+
dark: string;
|
|
16
|
+
};
|
|
17
|
+
themeType: CodeColor;
|
|
18
|
+
overflow: 'scroll';
|
|
19
|
+
disableFileHeader: boolean;
|
|
20
|
+
};
|
|
21
|
+
protected abstract draw(container: HTMLElement): Viewer | null;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
attributeChangedCallback(): void;
|
|
25
|
+
refresh(): void;
|
|
26
|
+
protected empty(container: HTMLElement, text: string): null;
|
|
27
|
+
}
|
|
28
|
+
export declare class SliccCodeView extends PierreView {
|
|
29
|
+
#private;
|
|
30
|
+
get contents(): string | null;
|
|
31
|
+
set contents(value: string | null);
|
|
32
|
+
protected draw(container: HTMLElement): Viewer | null;
|
|
33
|
+
}
|
|
34
|
+
export type DiffStyle = 'unified' | 'split';
|
|
35
|
+
export declare class SliccDiffView extends PierreView {
|
|
36
|
+
#private;
|
|
37
|
+
static observedAttributes: string[];
|
|
38
|
+
get oldText(): string | null;
|
|
39
|
+
set oldText(value: string | null);
|
|
40
|
+
get newText(): string | null;
|
|
41
|
+
set newText(value: string | null);
|
|
42
|
+
get diffStyle(): DiffStyle;
|
|
43
|
+
set diffStyle(value: DiffStyle);
|
|
44
|
+
protected draw(container: HTMLElement): Viewer | null;
|
|
45
|
+
}
|
|
46
|
+
export declare function defineCodeViews(): void;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FileTree, type GitStatusEntry } from '@pierre/trees';
|
|
2
|
+
export type { GitStatusEntry };
|
|
3
|
+
export declare class SliccFileTree extends HTMLElement {
|
|
4
|
+
#private;
|
|
5
|
+
static loaded: boolean;
|
|
6
|
+
get paths(): readonly string[];
|
|
7
|
+
set paths(value: readonly string[]);
|
|
8
|
+
get gitStatus(): readonly GitStatusEntry[];
|
|
9
|
+
set gitStatus(value: readonly GitStatusEntry[]);
|
|
10
|
+
get expanded(): readonly string[];
|
|
11
|
+
set expanded(value: readonly string[]);
|
|
12
|
+
get tree(): FileTree | null;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
focus(): void;
|
|
16
|
+
reveal(path: string, focus?: boolean): void;
|
|
17
|
+
}
|
|
18
|
+
export declare function defineFileTree(): void;
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
import { Emitter } from '../model/emitter.js';
|
|
2
|
-
import type { Agent, AgentEvents, AgentPort, Message } from '../model/types.js';
|
|
2
|
+
import type { Agent, AgentEvents, AgentPort, FrozenCone, LickChannel, LickState, Message, Outgoing, UserMessage } from '../model/types.js';
|
|
3
3
|
import type { Clock } from './clock.js';
|
|
4
4
|
import { type Effects } from './script.js';
|
|
5
5
|
export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPort {
|
|
6
6
|
#private;
|
|
7
|
-
constructor(agents: readonly Agent[], conversations: Record<string, readonly Message[]>, effects: Omit<Effects, 'agentId'>, clock: Clock
|
|
7
|
+
constructor(agents: readonly Agent[], conversations: Record<string, readonly Message[]>, effects: Omit<Effects, 'agentId'>, clock: Clock, queues?: Record<string, readonly UserMessage[]>, frozen?: ReadonlyArray<{
|
|
8
|
+
cone: FrozenCone;
|
|
9
|
+
messages: readonly Message[];
|
|
10
|
+
}>);
|
|
8
11
|
list(): readonly Agent[];
|
|
9
12
|
active(): string;
|
|
10
13
|
select(id: string): void;
|
|
11
14
|
messages(agentId: string): readonly Message[];
|
|
12
|
-
|
|
15
|
+
queue(agentId: string): readonly UserMessage[];
|
|
16
|
+
busy(agentId: string): boolean;
|
|
17
|
+
suggestion(agentId: string): string | null;
|
|
18
|
+
unqueue(agentId: string, messageId: string): void;
|
|
19
|
+
send(agentId: string, input: string | Outgoing): Promise<void>;
|
|
13
20
|
stop(agentId: string): void;
|
|
21
|
+
answer(agentId: string, questionId: string, answer: string): void;
|
|
22
|
+
resolveLick(agentId: string, messageId: string, state: Exclude<LickState, 'pending'>): void;
|
|
23
|
+
compact(agentId: string): void;
|
|
24
|
+
clear(agentId: string): void;
|
|
25
|
+
setModel(agentId: string, model: string): void;
|
|
26
|
+
createScoop(parentId: string, name: string): Agent;
|
|
27
|
+
lick(agentId: string, channel: LickChannel, title: string, text: string, body?: string): void;
|
|
28
|
+
frozen(): readonly FrozenCone[];
|
|
29
|
+
freeze(agentId: string): void;
|
|
30
|
+
thaw(id: string): Agent | null;
|
|
31
|
+
discard(id: string): void;
|
|
14
32
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FrozenCone, Memory, Message, Sprinkle, TrayStatus } from '../model/types.js';
|
|
2
|
+
export declare const frozen: Array<{
|
|
3
|
+
cone: FrozenCone;
|
|
4
|
+
messages: Message[];
|
|
5
|
+
}>;
|
|
6
|
+
export declare const memories: Memory[];
|
|
7
|
+
export declare const sprinkles: Sprinkle[];
|
|
8
|
+
export declare const tray: TrayStatus;
|