@ai-ecoverse/slicc-spectrum 1.22.1 → 1.23.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.
Files changed (31) hide show
  1. package/README.md +11 -2
  2. package/dist/{chunk-DYPK5BE5.js → chunk-2TAFZNVG.js} +3 -3
  3. package/dist/{chunk-JDJ5OA3V.js → chunk-5I2AIF5I.js} +3 -1
  4. package/dist/{chunk-6BOZVNM2.js → chunk-CHSUKIQC.js} +2 -2
  5. package/dist/{chunk-UGQPYZPJ.js → chunk-DYJTIU34.js} +4 -4
  6. package/dist/{chunk-LCUJINFQ.js → chunk-KD66QY2Y.js} +70 -1
  7. package/dist/chunk-KD66QY2Y.js.map +7 -0
  8. package/dist/{chunk-BALQPQXE.js → chunk-LMDPCBR2.js} +8 -72
  9. package/dist/chunk-LMDPCBR2.js.map +7 -0
  10. package/dist/{chunk-VGYK6PQ4.js → chunk-QROWP6N7.js} +4 -4
  11. package/dist/{chunk-7C2RFOQL.js → chunk-Z2IOQT73.js} +3 -3
  12. package/dist/slicc-dummy.js +53 -0
  13. package/dist/slicc-dummy.js.map +3 -3
  14. package/dist/slicc-ui.js +5017 -4524
  15. package/dist/slicc-ui.js.map +4 -4
  16. package/dist/types/app/agents.d.ts +13 -0
  17. package/dist/types/app/app.d.ts +1 -0
  18. package/dist/types/app/confirm.d.ts +41 -0
  19. package/dist/types/app/messages.d.ts +3 -0
  20. package/dist/types/dummy/agent.d.ts +2 -0
  21. package/dist/types/model/types.d.ts +3 -0
  22. package/dist/types/ui.d.ts +4 -4
  23. package/package.json +3 -1
  24. package/dist/chunk-BALQPQXE.js.map +0 -7
  25. package/dist/chunk-LCUJINFQ.js.map +0 -7
  26. /package/dist/{chunk-DYPK5BE5.js.map → chunk-2TAFZNVG.js.map} +0 -0
  27. /package/dist/{chunk-JDJ5OA3V.js.map → chunk-5I2AIF5I.js.map} +0 -0
  28. /package/dist/{chunk-6BOZVNM2.js.map → chunk-CHSUKIQC.js.map} +0 -0
  29. /package/dist/{chunk-UGQPYZPJ.js.map → chunk-DYJTIU34.js.map} +0 -0
  30. /package/dist/{chunk-VGYK6PQ4.js.map → chunk-QROWP6N7.js.map} +0 -0
  31. /package/dist/{chunk-7C2RFOQL.js.map → chunk-Z2IOQT73.js.map} +0 -0
@@ -1,9 +1,22 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc/components/tooltip/swc-tooltip.js';
3
+ import '@adobe/spectrum-wc-icons/swc-icon-close.js';
1
4
  import { type TemplateResult } from 'lit';
2
5
  import type { Agent, SliccModel } from '../model/types.js';
3
6
  import { ModelElement } from './base.js';
4
7
  export declare function ordered(agents: readonly Agent[]): Agent[];
5
8
  export declare class SliccAgents extends ModelElement {
6
9
  #private;
10
+ static properties: {
11
+ model: {
12
+ attribute: boolean;
13
+ };
14
+ errors: {
15
+ state: boolean;
16
+ };
17
+ };
18
+ errors: Record<string, string>;
19
+ constructor();
7
20
  static styles: import("lit").CSSResult[];
8
21
  protected subscribe(model: SliccModel): Array<() => void>;
9
22
  focus(): void;
@@ -7,6 +7,7 @@ import { type DocumentKind, type ScreenClass, type Surface } from './panels.js';
7
7
  import { TerminalPanels } from './terminals.js';
8
8
  export declare function changeCount(count: number): string;
9
9
  export declare const allAgents = "slicc:all-agents";
10
+ export declare const newCone = "slicc:new-cone";
10
11
  export declare const railPitch = 52;
11
12
  export declare const phoneRail: string[];
12
13
  export declare function railCapacity(width: number, count: number): number;
@@ -1,5 +1,8 @@
1
1
  import '@adobe/spectrum-wc/components/button/swc-button.js';
2
2
  import '@spectrum-web-components/alert-dialog/sp-alert-dialog.js';
3
+ import '@spectrum-web-components/field-label/sp-field-label.js';
4
+ import '@spectrum-web-components/help-text/sp-help-text.js';
5
+ import '@spectrum-web-components/textfield/sp-textfield.js';
3
6
  import { LitElement, type TemplateResult } from 'lit';
4
7
  export type ConfirmVariant = 'destructive' | 'confirmation';
5
8
  export interface ConfirmOptions {
@@ -9,6 +12,14 @@ export interface ConfirmOptions {
9
12
  variant?: ConfirmVariant;
10
13
  trigger?: HTMLElement | null;
11
14
  }
15
+ export interface PromptOptions {
16
+ title: string;
17
+ label: string;
18
+ action: string;
19
+ value?: string;
20
+ trigger?: HTMLElement | null;
21
+ submit?: (value: string) => Promise<void>;
22
+ }
12
23
  export declare class SliccConfirm extends LitElement {
13
24
  #private;
14
25
  static properties: {
@@ -30,3 +41,33 @@ export declare class SliccConfirm extends LitElement {
30
41
  render(): TemplateResult;
31
42
  }
32
43
  export declare function confirm(options: ConfirmOptions): Promise<boolean>;
44
+ export declare class SliccPrompt extends LitElement {
45
+ #private;
46
+ static properties: {
47
+ heading: {};
48
+ label: {};
49
+ action: {};
50
+ value: {};
51
+ error: {
52
+ state: boolean;
53
+ };
54
+ pending: {
55
+ state: boolean;
56
+ };
57
+ };
58
+ heading: string;
59
+ label: string;
60
+ action: string;
61
+ value: string;
62
+ error: string;
63
+ pending: boolean;
64
+ trigger: HTMLElement | null;
65
+ submit: ((value: string) => Promise<void>) | null;
66
+ constructor();
67
+ static styles: import("lit").CSSResult;
68
+ get result(): Promise<string | null>;
69
+ protected firstUpdated(): Promise<void>;
70
+ disconnectedCallback(): void;
71
+ render(): TemplateResult;
72
+ }
73
+ export declare function prompt(options: PromptOptions): Promise<string | null>;
@@ -1,3 +1,6 @@
1
+ import '@adobe/spectrum-wc/components/badge/swc-badge.js';
2
+ import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
3
+ import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
1
4
  import { nothing, type TemplateResult } from 'lit';
2
5
  import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, MessagePart, SliccModel, SystemMessage, ToolCall, ToolMessage, UserMessage } from '../model/types.js';
3
6
  export interface Handlers {
@@ -29,6 +29,8 @@ export declare class DummyAgent extends Emitter<AgentEvents> implements AgentPor
29
29
  commands(): readonly SlashCommand[];
30
30
  ready(): Promise<void>;
31
31
  createScoop(parentId: string, name: string): Agent;
32
+ drop(agentId: string): Promise<void>;
33
+ createCone(name: string): Promise<Agent>;
32
34
  lick(agentId: string, channel: LickChannel, title: string, text: string, body?: string): void;
33
35
  frozen(): readonly FrozenCone[];
34
36
  freeze(agentId: string): void;
@@ -204,6 +204,7 @@ export interface LickMessage {
204
204
  body?: string;
205
205
  count?: number;
206
206
  state?: LickState;
207
+ severity?: 'warn' | 'error';
207
208
  }
208
209
  export type Message = UserMessage | AssistantMessage | SystemMessage | ToolMessage | LickMessage;
209
210
  export interface Outgoing {
@@ -247,6 +248,8 @@ export interface AgentPort extends Subscribable<AgentEvents> {
247
248
  thaw(id: string): Agent | null;
248
249
  discard(id: string): void;
249
250
  rewind?(agentId: string, messageId: string): Promise<Outgoing | null>;
251
+ drop?(agentId: string): Promise<void>;
252
+ createCone?(name: string): Promise<Agent>;
250
253
  }
251
254
  export interface SlashCommand {
252
255
  name: string;
@@ -5,7 +5,7 @@ import { SliccBrowser } from './app/browser.js';
5
5
  import { SliccChanges, SliccDiffPanel } from './app/changes.js';
6
6
  import { SliccChat } from './app/chat.js';
7
7
  import { SliccComposer } from './app/composer.js';
8
- import { SliccConfirm } from './app/confirm.js';
8
+ import { SliccConfirm, SliccPrompt } from './app/confirm.js';
9
9
  import { SliccFiles, SliccFileView } from './app/files.js';
10
10
  import { SliccUpdates } from './app/updates.js';
11
11
  import { SliccCodeView, SliccDiffView } from './components/code-view.js';
@@ -13,8 +13,8 @@ import { SliccDock } from './components/dock.js';
13
13
  import { SliccFileTree } from './components/file-tree.js';
14
14
  export type { Color } from './app/base.js';
15
15
  export { resolveColor } from './app/base.js';
16
- export type { ConfirmOptions, ConfirmVariant } from './app/confirm.js';
17
- export { confirm } from './app/confirm.js';
16
+ export type { ConfirmOptions, ConfirmVariant, PromptOptions } from './app/confirm.js';
17
+ export { confirm, prompt } from './app/confirm.js';
18
18
  export type { GrammarKind } from './app/grammars.js';
19
19
  export { grammarBase, setGrammarBase } from './app/grammars.js';
20
20
  export type { Placement, Surface } from './app/panels.js';
@@ -25,5 +25,5 @@ export type { GitStatusEntry } from './components/file-tree.js';
25
25
  export type { Listener, Subscribable } from './model/emitter.js';
26
26
  export { Emitter } from './model/emitter.js';
27
27
  export type * from './model/types.js';
28
- export { SliccAgents, SliccApp, SliccBrowser, SliccChanges, SliccChat, SliccCodeView, SliccComposer, SliccConfirm, SliccDiffPanel, SliccDiffView, SliccDock, SliccFiles, SliccFileTree, SliccFileView, SliccUpdates, };
28
+ export { SliccAgents, SliccApp, SliccBrowser, SliccChanges, SliccChat, SliccCodeView, SliccComposer, SliccConfirm, SliccDiffPanel, SliccDiffView, SliccDock, SliccFiles, SliccFileTree, SliccFileView, SliccPrompt, SliccUpdates, };
29
29
  export declare function define(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.22.1",
3
+ "version": "1.23.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",
@@ -87,6 +87,8 @@
87
87
  "@spectrum-web-components/alert-dialog": "1.12.4",
88
88
  "@spectrum-web-components/badge": "1.12.4",
89
89
  "@spectrum-web-components/button": "1.12.4",
90
+ "@spectrum-web-components/field-label": "1.12.4",
91
+ "@spectrum-web-components/help-text": "1.12.4",
90
92
  "@spectrum-web-components/menu": "1.12.4",
91
93
  "@spectrum-web-components/picker": "1.12.4",
92
94
  "@spectrum-web-components/progress-circle": "1.12.4",