@ai-ecoverse/slicc-spectrum 2.0.2 → 2.1.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.
@@ -8,7 +8,7 @@ import '@adobe/spectrum-wc/patterns/ai-toolkit/conversation-thread/swc-conversat
8
8
  import '@adobe/spectrum-wc-icons/swc-icon-attach.js';
9
9
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-down.js';
10
10
  import '@adobe/spectrum-wc-icons/swc-icon-new.js';
11
- import { type TemplateResult } from 'lit';
11
+ import { type PropertyValues, type TemplateResult } from 'lit';
12
12
  import type { Message, SliccModel } from '../model/types.js';
13
13
  import { ThemedElement } from './base.js';
14
14
  export declare function carriesFiles(event: DragEvent): boolean;
@@ -40,6 +40,7 @@ export declare class SliccChat extends ThemedElement {
40
40
  protected subscribe(model: SliccModel): Array<() => void>;
41
41
  connectedCallback(): void;
42
42
  disconnectedCallback(): void;
43
+ protected willUpdate(changed: PropertyValues): void;
43
44
  protected updated(): void;
44
45
  protected firstUpdated(): void;
45
46
  focus(): void;
@@ -15,6 +15,7 @@ export declare class Ends {
15
15
  #private;
16
16
  constructor(root: () => ParentNode, changed: () => void);
17
17
  has(id: string): boolean;
18
+ hidden(id: string): boolean;
18
19
  clear(): void;
19
20
  observe(): void;
20
21
  disconnect(): void;
@@ -4,6 +4,8 @@ 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
+ olderTicks: number;
8
+ readonly olderCalls: string[];
7
9
  importProfile?: AgentPort['importProfile'];
8
10
  importCancel?: AgentPort['importCancel'];
9
11
  importing?: AgentPort['importing'];
@@ -33,7 +35,10 @@ export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPor
33
35
  clear(agentId: string): void;
34
36
  setModel(agentId: string, model: string): void;
35
37
  setThinking(agentId: string, thinking: Thinking): void;
36
- older(): Promise<readonly Message[]>;
38
+ paginate(keep: number, size: number, ids?: readonly string[]): void;
39
+ failOlder(times?: number): void;
40
+ hasOlder(agentId: string): boolean;
41
+ older(agentId: string): Promise<readonly Message[]>;
37
42
  commands(agentId: string): readonly SlashCommand[];
38
43
  ready(): Promise<void>;
39
44
  createScoop(parentId: string, name: string): Agent;
@@ -47,6 +47,7 @@ export interface DummyOptions {
47
47
  import?: ImportScenario | 'off';
48
48
  login?: DummyLogin;
49
49
  budget?: BudgetScenario;
50
+ older?: 'paged' | 'off';
50
51
  }
51
52
  export interface DummyModel extends SliccModel {
52
53
  settings: DummySettings;
@@ -63,4 +64,4 @@ export interface DummyModel extends SliccModel {
63
64
  export declare function vaultAccounts(accounts: readonly Account[]): Account[];
64
65
  export declare const docsUrl = "https://docs.example/mcp";
65
66
  export declare const movedDocs = "https://docs.eu.example/mcp";
66
- export declare function createDummyModel({ delay, storage, updates, packages, confirm, beta, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, asks, follow, vault, guests, accounts, providers, mcp, servers, transport, hold, readonly, agent: arrival, browser: scenario, sprinkles, monitor, import: imports, login, budget, }?: DummyOptions): DummyModel;
67
+ export declare function createDummyModel({ delay, storage, updates, packages, confirm, beta, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, asks, follow, vault, guests, accounts, providers, mcp, servers, transport, hold, readonly, agent: arrival, browser: scenario, sprinkles, monitor, import: imports, login, budget, older, }?: DummyOptions): DummyModel;
@@ -293,6 +293,7 @@ export interface AgentPort extends Subscribable<AgentEvents> {
293
293
  setModel(agentId: string, model: string): void;
294
294
  setThinking(agentId: string, thinking: Thinking): void;
295
295
  older(agentId: string, before: string): Promise<readonly Message[]>;
296
+ hasOlder?(agentId: string): boolean;
296
297
  commands(agentId: string): readonly SlashCommand[];
297
298
  toolLabel?(agentId: string, callIds: readonly string[]): Promise<string | null>;
298
299
  ready(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "2.0.2",
3
+ "version": "2.1.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",
@@ -89,11 +89,11 @@
89
89
  "@wterm/core": "0.5.7",
90
90
  "@wterm/dom": "0.5.7",
91
91
  "@wterm/ghostty": "0.5.7",
92
- "dockview-core": "8.8.1",
92
+ "dockview-core": "8.8.2",
93
93
  "esbuild": "0.28.2",
94
94
  "happy-dom": "21.0.4",
95
95
  "lefthook": "2.2.2",
96
- "lucide": "1.64.0",
96
+ "lucide": "1.65.0",
97
97
  "mdast-util-from-markdown": "2.1.0",
98
98
  "mdast-util-gfm-autolink-literal": "2.0.1",
99
99
  "mdast-util-gfm-strikethrough": "2.0.1",