@ai-ecoverse/slicc-spectrum 1.61.0 → 1.62.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 +3 -3
- package/dist/slicc-dummy.js +13 -0
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +62 -2
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/composer.d.ts +7 -2
- package/dist/types/dummy/agent.d.ts +3 -1
- package/dist/types/dummy/index.d.ts +3 -2
- package/dist/types/model/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '@adobe/spectrum-wc/components/button/swc-button.js';
|
|
2
2
|
import '@adobe/spectrum-wc/components/close-button/swc-close-button.js';
|
|
3
|
+
import '@adobe/spectrum-wc/components/progress-circle/swc-progress-circle.js';
|
|
3
4
|
import '@adobe/spectrum-wc/patterns/ai-toolkit/prompt-field/swc-prompt-field.js';
|
|
4
5
|
import '@adobe/spectrum-wc/patterns/ai-toolkit/upload-attachment/swc-upload-attachment.js';
|
|
5
6
|
import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
|
|
@@ -9,7 +10,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-file-text.js';
|
|
|
9
10
|
import '@adobe/spectrum-wc-icons/swc-icon-lock.js';
|
|
10
11
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
11
12
|
import type { Attachment, Outgoing, SendMode, SliccModel } from '../model/types.js';
|
|
12
|
-
import {
|
|
13
|
+
import { ThemedElement } from './base.js';
|
|
13
14
|
export declare const limit: number;
|
|
14
15
|
export interface Choice {
|
|
15
16
|
value: string;
|
|
@@ -41,7 +42,7 @@ export declare function trigger(text: string, caret: number): {
|
|
|
41
42
|
start: number;
|
|
42
43
|
query: string;
|
|
43
44
|
} | null;
|
|
44
|
-
export declare class SliccComposer extends
|
|
45
|
+
export declare class SliccComposer extends ThemedElement {
|
|
45
46
|
#private;
|
|
46
47
|
static properties: {
|
|
47
48
|
model: {
|
|
@@ -59,12 +60,16 @@ export declare class SliccComposer extends ModelElement {
|
|
|
59
60
|
dictating: {
|
|
60
61
|
state: boolean;
|
|
61
62
|
};
|
|
63
|
+
blocked: {
|
|
64
|
+
state: boolean;
|
|
65
|
+
};
|
|
62
66
|
agent: {};
|
|
63
67
|
};
|
|
64
68
|
value: string;
|
|
65
69
|
attachments: Attachment[];
|
|
66
70
|
popup: Popup | null;
|
|
67
71
|
dictating: boolean;
|
|
72
|
+
blocked: boolean;
|
|
68
73
|
agent: string;
|
|
69
74
|
constructor();
|
|
70
75
|
static styles: import("lit").CSSResult[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Emitter } from '../model/emitter.js';
|
|
2
|
-
import type { Agent, AgentEvents, AgentPort, FrozenCone, LickChannel, LickState, Message, Outgoing, SlashCommand, Thinking, UserMessage } from '../model/types.js';
|
|
2
|
+
import type { Agent, AgentEvents, AgentHold, AgentPort, FrozenCone, LickChannel, LickState, Message, Outgoing, SlashCommand, Thinking, 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 {
|
|
@@ -32,6 +32,8 @@ export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPor
|
|
|
32
32
|
drop(agentId: string): Promise<void>;
|
|
33
33
|
createCone(name: string): Promise<Agent>;
|
|
34
34
|
lick(agentId: string, channel: LickChannel, title: string, text: string, body?: string): void;
|
|
35
|
+
hold(): AgentHold | null;
|
|
36
|
+
setHold(hold: AgentHold | null): void;
|
|
35
37
|
frozen(): readonly FrozenCone[];
|
|
36
38
|
freeze(agentId: string): void;
|
|
37
39
|
thaw(id: string): Agent | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SliccModel } from '../model/types.js';
|
|
1
|
+
import type { AgentHold, SliccModel } from '../model/types.js';
|
|
2
2
|
import { type ApprovalScenario, DummyApprovals } from './approvals.js';
|
|
3
3
|
import { type BrowserScenario, DummyBrowser } from './browser.js';
|
|
4
4
|
import { type ChangesScenario } from './changes.js';
|
|
@@ -25,6 +25,7 @@ export interface DummyOptions {
|
|
|
25
25
|
approvals?: ApprovalScenario | 'off';
|
|
26
26
|
follow?: FollowScenario | 'off';
|
|
27
27
|
vault?: VaultScenario | 'off';
|
|
28
|
+
hold?: AgentHold['reason'] | 'off';
|
|
28
29
|
browser?: BrowserScenario;
|
|
29
30
|
sprinkles?: 'builtin' | 'cones';
|
|
30
31
|
monitor?: 'dummy' | 'agent';
|
|
@@ -39,4 +40,4 @@ export interface DummyModel extends SliccModel {
|
|
|
39
40
|
follow?: DummyFollow;
|
|
40
41
|
vault?: DummyVault;
|
|
41
42
|
}
|
|
42
|
-
export declare function createDummyModel({ delay, storage, updates, packages, confirm, mounts, network, tailnet, links, changes, notices, tabs, approvals, follow, vault, browser: scenario, sprinkles, monitor, }?: DummyOptions): DummyModel;
|
|
43
|
+
export declare function createDummyModel({ delay, storage, updates, packages, confirm, mounts, network, tailnet, links, changes, notices, tabs, approvals, follow, vault, hold, browser: scenario, sprinkles, monitor, }?: DummyOptions): DummyModel;
|
|
@@ -213,6 +213,10 @@ export interface Outgoing {
|
|
|
213
213
|
attachments?: Attachment[];
|
|
214
214
|
mode?: SendMode;
|
|
215
215
|
}
|
|
216
|
+
export interface AgentHold {
|
|
217
|
+
reason: 'waiting' | 'locked';
|
|
218
|
+
held: number;
|
|
219
|
+
}
|
|
216
220
|
export interface AgentEvents {
|
|
217
221
|
agents: readonly Agent[];
|
|
218
222
|
active: string;
|
|
@@ -222,6 +226,7 @@ export interface AgentEvents {
|
|
|
222
226
|
};
|
|
223
227
|
messages: string;
|
|
224
228
|
frozen: readonly FrozenCone[];
|
|
229
|
+
hold: AgentHold | null;
|
|
225
230
|
}
|
|
226
231
|
export interface AgentPort extends Subscribable<AgentEvents> {
|
|
227
232
|
list(): readonly Agent[];
|
|
@@ -251,6 +256,7 @@ export interface AgentPort extends Subscribable<AgentEvents> {
|
|
|
251
256
|
rewind?(agentId: string, messageId: string): Promise<Outgoing | null>;
|
|
252
257
|
drop?(agentId: string): Promise<void>;
|
|
253
258
|
createCone?(name: string): Promise<Agent>;
|
|
259
|
+
hold?(): AgentHold | null;
|
|
254
260
|
}
|
|
255
261
|
export interface SlashCommand {
|
|
256
262
|
name: string;
|
package/package.json
CHANGED