@ai-ecoverse/slicc-spectrum 1.27.1 → 1.27.2

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.
@@ -21,8 +21,10 @@ export interface Command {
21
21
  name: string;
22
22
  detail: string;
23
23
  args?(model: SliccModel): Choice[];
24
+ available?(model: SliccModel): boolean;
24
25
  run(model: SliccModel, agentId: string, arg: string): void;
25
26
  }
27
+ export declare function available(model: SliccModel): Command[];
26
28
  export declare const commands: Command[];
27
29
  export type PopupKind = 'command' | 'argument' | 'mention' | 'file' | 'secret';
28
30
  export interface Popup {
@@ -244,7 +244,7 @@ export interface AgentPort extends Subscribable<AgentEvents> {
244
244
  ready(): Promise<void>;
245
245
  createScoop(parentId: string, name: string): Agent;
246
246
  frozen(): readonly FrozenCone[];
247
- freeze(agentId: string): void;
247
+ freeze?(agentId: string): void;
248
248
  thaw(id: string): Agent | null;
249
249
  discard(id: string): void;
250
250
  rewind?(agentId: string, messageId: string): Promise<Outgoing | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
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",