@ai-ecoverse/slicc-spectrum 1.6.0 → 1.8.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.
@@ -10,12 +10,23 @@ export declare class SliccSettings extends ModelElement {
10
10
  pending: {
11
11
  state: boolean;
12
12
  };
13
+ entering: {
14
+ state: boolean;
15
+ };
16
+ failure: {
17
+ state: boolean;
18
+ };
13
19
  };
14
20
  pending: ReadonlySet<string>;
21
+ entering: string | null;
22
+ failure: {
23
+ id: string;
24
+ message: string;
25
+ } | null;
15
26
  constructor();
16
27
  static styles: import("lit").CSSResult[];
17
28
  protected subscribe(model: SliccModel): Array<() => void>;
18
29
  focus(): void;
19
- connect(id: string): Promise<void>;
30
+ connect(id: string, secret?: string): Promise<void>;
20
31
  render(): TemplateResult;
21
32
  }
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
- import type { Agent, AgentEvents, AgentPort, FrozenCone, LickChannel, LickState, Message, Outgoing, UserMessage } from '../model/types.js';
2
+ import type { Agent, AgentEvents, 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 {
@@ -23,6 +23,10 @@ export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPor
23
23
  compact(agentId: string): void;
24
24
  clear(agentId: string): void;
25
25
  setModel(agentId: string, model: string): void;
26
+ setThinking(agentId: string, thinking: Thinking): void;
27
+ older(): Promise<readonly Message[]>;
28
+ commands(): readonly SlashCommand[];
29
+ ready(): Promise<void>;
26
30
  createScoop(parentId: string, name: string): Agent;
27
31
  lick(agentId: string, channel: LickChannel, title: string, text: string, body?: string): void;
28
32
  frozen(): readonly FrozenCone[];
@@ -8,6 +8,6 @@ export declare class DummySettings extends Emitter<SettingsEvents> implements Se
8
8
  update(patch: Partial<Settings>): void;
9
9
  models(): readonly ModelOption[];
10
10
  accounts(): readonly Account[];
11
- connect(id: string): Promise<void>;
11
+ connect(id: string, secret?: string): Promise<void>;
12
12
  disconnect(id: string): void;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
- import type { Agent, AgentEvents, AgentPort, BrowserEvents, BrowserPort, BrowserTab, FrozenCone, Memory, MemoryEvents, MemoryPort, Message, MonitorEvents, MonitorPort, MonitorSnapshot, SprinkleEvents, SprinklePort, TrayEvents, TrayPort, TrayStatus, UserMessage } from '../model/types.js';
2
+ import type { Agent, AgentEvents, AgentPort, BrowserEvents, BrowserPort, BrowserTab, FrozenCone, Memory, MemoryEvents, MemoryPort, Message, MonitorEvents, MonitorPort, MonitorSnapshot, SlashCommand, SprinkleEvents, SprinklePort, TrayEvents, TrayPort, TrayStatus, UserMessage } from '../model/types.js';
3
3
  export declare class IdleAgent extends Emitter<AgentEvents> implements AgentPort {
4
4
  list(): readonly Agent[];
5
5
  active(): string;
@@ -16,6 +16,10 @@ export declare class IdleAgent extends Emitter<AgentEvents> implements AgentPort
16
16
  compact(): void;
17
17
  clear(): void;
18
18
  setModel(): void;
19
+ setThinking(): void;
20
+ older(): Promise<readonly Message[]>;
21
+ commands(): readonly SlashCommand[];
22
+ ready(): Promise<void>;
19
23
  createScoop(): Agent;
20
24
  frozen(): readonly FrozenCone[];
21
25
  freeze(): void;
@@ -11,6 +11,8 @@ export interface Agent {
11
11
  model: string;
12
12
  contextFill: number;
13
13
  unread: number;
14
+ thinking?: Thinking;
15
+ frozen?: boolean;
14
16
  }
15
17
  export type ToolStatus = 'running' | 'done' | 'error' | 'cancelled';
16
18
  export interface ToolCall {
@@ -22,6 +24,8 @@ export interface ToolCall {
22
24
  status: ToolStatus;
23
25
  paths: string[];
24
26
  image?: string;
27
+ agentId?: string;
28
+ pid?: number;
25
29
  }
26
30
  export type AttachmentKind = 'image' | 'text' | 'file' | 'secret';
27
31
  export interface Attachment {
@@ -132,6 +136,8 @@ export type MessagePart = {
132
136
  action?: ErrorAction;
133
137
  };
134
138
  export type SendMode = 'send' | 'steer' | 'queue';
139
+ export type DeliveredAs = 'run' | 'steer' | 'follow-up';
140
+ export type MessageOrigin = 'user' | 'follower' | 'guest';
135
141
  export interface UserMessage {
136
142
  id: string;
137
143
  role: 'user';
@@ -141,12 +147,16 @@ export interface UserMessage {
141
147
  mode?: SendMode;
142
148
  queued?: boolean;
143
149
  from?: string;
150
+ delivered?: DeliveredAs;
151
+ origin?: MessageOrigin;
144
152
  }
145
153
  export type AssistantStatus = 'streaming' | 'done' | 'stopped' | 'error';
146
154
  export interface Usage {
147
155
  input: number;
148
156
  output: number;
149
157
  cost: number;
158
+ cacheRead?: number;
159
+ cacheWrite?: number;
150
160
  }
151
161
  export interface AssistantMessage {
152
162
  id: string;
@@ -221,12 +231,20 @@ export interface AgentPort extends Subscribable<AgentEvents> {
221
231
  compact(agentId: string): void;
222
232
  clear(agentId: string): void;
223
233
  setModel(agentId: string, model: string): void;
234
+ setThinking(agentId: string, thinking: Thinking): void;
235
+ older(agentId: string, before: string): Promise<readonly Message[]>;
236
+ commands(agentId: string): readonly SlashCommand[];
237
+ ready(): Promise<void>;
224
238
  createScoop(parentId: string, name: string): Agent;
225
239
  frozen(): readonly FrozenCone[];
226
240
  freeze(agentId: string): void;
227
241
  thaw(id: string): Agent | null;
228
242
  discard(id: string): void;
229
243
  }
244
+ export interface SlashCommand {
245
+ name: string;
246
+ description: string;
247
+ }
230
248
  export interface FrozenCone {
231
249
  id: string;
232
250
  name: string;
@@ -319,11 +337,15 @@ export interface Account {
319
337
  provider: string;
320
338
  identity: string;
321
339
  status: AccountStatus;
340
+ auth?: 'oauth' | 'api-key' | 'local';
341
+ needs?: 'cors-free-transport';
322
342
  }
323
343
  export interface ModelOption {
324
344
  id: string;
325
345
  label: string;
326
346
  provider: string;
347
+ kind?: 'chat' | 'classifier';
348
+ reasoning?: boolean;
327
349
  }
328
350
  export interface SettingsEvents {
329
351
  settings: Settings;
@@ -334,7 +356,7 @@ export interface SettingsPort extends Subscribable<SettingsEvents> {
334
356
  update(patch: Partial<Settings>): void;
335
357
  models(): readonly ModelOption[];
336
358
  accounts(): readonly Account[];
337
- connect(id: string): Promise<void>;
359
+ connect(id: string, secret?: string): Promise<void>;
338
360
  disconnect(id: string): void;
339
361
  }
340
362
  export type MemoryTag = 'user' | 'feedback' | 'project';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.6.0",
3
+ "version": "1.8.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",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "devDependencies": {
73
- "@ai-ecoverse/slicc-kernel": "1.8.10",
73
+ "@ai-ecoverse/slicc-kernel": "1.8.12",
74
74
  "@ai-ecoverse/slicc-shared-web": "1.4.1",
75
75
  "@ai-ecoverse/wasm-bash": "5.3.0-7",
76
76
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",