@ai-ecoverse/slicc-spectrum 1.75.0 → 1.77.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.
@@ -30,9 +30,9 @@ export declare class SliccChat extends ThemedElement {
30
30
  constructor();
31
31
  static styles: import("lit").CSSResult[];
32
32
  protected subscribe(model: SliccModel): Array<() => void>;
33
- protected updated(): void;
34
33
  connectedCallback(): void;
35
34
  disconnectedCallback(): void;
35
+ protected updated(): void;
36
36
  protected firstUpdated(): void;
37
37
  focus(): void;
38
38
  get busyReason(): string | null;
@@ -9,5 +9,6 @@ export declare class Dips extends Emitter<{
9
9
  list(): readonly string[];
10
10
  has(id: string): boolean;
11
11
  detach(id: string): void;
12
+ attach(id: string): void;
12
13
  }
13
14
  export declare function dipsOf(node: Node): Dips | null;
@@ -12,6 +12,7 @@ import '@adobe/spectrum-wc/patterns/ai-toolkit/system-message/swc-system-message
12
12
  import '@adobe/spectrum-wc/patterns/ai-toolkit/user-message/swc-user-message.js';
13
13
  import '@adobe/spectrum-wc-icons/swc-icon-alert-diamond.js';
14
14
  import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
15
+ import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
15
16
  import '@adobe/spectrum-wc-icons/swc-icon-cancel.js';
16
17
  import '@adobe/spectrum-wc-icons/swc-icon-checkmark.js';
17
18
  import '@adobe/spectrum-wc-icons/swc-icon-clock-pending.js';
@@ -29,7 +30,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-tools.js';
29
30
  import '@adobe/spectrum-wc-icons/swc-icon-user-group.js';
30
31
  import '@adobe/spectrum-wc-icons/swc-icon-web-page.js';
31
32
  import { nothing, type TemplateResult } from 'lit';
32
- import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, SliccModel, SystemMessage, ToolCall, ToolMessage, ToolStatus, UserMessage } from '../model/types.js';
33
+ import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, Question, SliccModel, SystemMessage, ToolCall, ToolMessage, ToolStatus, UserMessage } from '../model/types.js';
33
34
  export interface Handlers {
34
35
  color: 'light' | 'dark';
35
36
  model: SliccModel | null;
@@ -84,6 +85,7 @@ export interface CardOptions {
84
85
  }
85
86
  export declare function tool(call: ToolCall, color?: 'light' | 'dark', options?: CardOptions): TemplateResult;
86
87
  export declare const clusterSize = 3;
88
+ export declare function questionTurn(item: Question, handlers: Handlers, pile: Pile): TemplateResult;
87
89
  export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean, extra?: ToolCall[]): Array<TemplateResult | typeof nothing>;
88
90
  export declare function toolTail(message: Message, showThinking: boolean): boolean;
89
91
  export declare function toolOnly(message: Message, showThinking: boolean): ToolCall[] | null;
@@ -91,6 +93,13 @@ export declare function user(message: UserMessage, stamp?: boolean): TemplateRes
91
93
  export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean, suggestion?: string | null, extra?: ToolCall[], stamp?: boolean): TemplateResult;
92
94
  export declare function toolMessage(message: ToolMessage, context?: RunContext & Partial<Pick<Handlers, 'suggest'>>, extra?: ToolCall[], suggestion?: string | null, stamp?: boolean): TemplateResult;
93
95
  export declare function system(message: SystemMessage, handlers: Handlers): TemplateResult;
94
- export declare function lick(message: LickMessage, handlers: Handlers, stamp?: boolean): TemplateResult;
96
+ export declare function pendingApproval(message: Message): boolean;
97
+ export declare function waiting(message: Message, now?: number): boolean;
98
+ export declare function show(turn: HTMLElement): void;
99
+ export interface Pile {
100
+ stack: number;
101
+ }
102
+ export declare const flatPile: Pile;
103
+ export declare function lick(message: LickMessage, handlers: Handlers, stamp?: boolean, pile?: Pile): TemplateResult;
95
104
  export declare const messageCss: import("lit").CSSResult;
96
105
  export {};
@@ -0,0 +1 @@
1
+ export declare const status = "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <title>Status</title>\n <style>\n * { box-sizing: border-box; margin: 0; padding: 0; }\n body {\n font-family: var(--s2-font-family, 'Adobe Clean', -apple-system, system-ui, sans-serif);\n background: transparent;\n color: var(--s2-content-default, #e8e8e8);\n font-size: 14px;\n }\n .card {\n display: grid;\n gap: 12px;\n padding: 8px 20px 12px;\n }\n .row { display: flex; align-items: center; gap: 10px; }\n .dot {\n flex: none;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--dot);\n }\n .name { flex: 1; font-weight: 600; }\n .meta { font-size: 12px; color: var(--s2-content-subdued, #9a9a9a); }\n .steps { list-style: none; display: grid; gap: 6px; }\n .steps label { display: flex; align-items: center; gap: 8px; cursor: pointer; }\n .actions { display: flex; justify-content: flex-end; gap: 8px; }\n button {\n font: inherit;\n padding: 6px 12px;\n border-radius: 999px;\n border: 1px solid var(--s2-gray-400, rgba(128, 128, 128, 0.5));\n background: transparent;\n color: inherit;\n cursor: pointer;\n }\n button.primary {\n background: var(--s2-accent, #3b63fb);\n border-color: transparent;\n color: #fff;\n }\n </style>\n </head>\n <body>\n <div class=\"card\">\n <div class=\"row\" style=\"--dot: #2d9d78\">\n <span class=\"dot\"></span>\n <span class=\"name\">PR #58 \u00B7 Add retries for upstream timeouts</span>\n <span class=\"meta\">4 of 4 checks</span>\n </div>\n <div class=\"row\" style=\"--dot: #e68619\">\n <span class=\"dot\"></span>\n <span class=\"name\">Visual regression suite</span>\n <span class=\"meta\">2 snapshots changed</span>\n </div>\n <div class=\"row\" style=\"--dot: #2d9d78\">\n <span class=\"dot\"></span>\n <span class=\"name\">Staging</span>\n <span class=\"meta\">/health answered in 2 ms</span>\n </div>\n <ul class=\"steps\">\n <li><label><input type=\"checkbox\" checked /> TTL fix merged</label></li>\n <li><label><input type=\"checkbox\" /> Merge the retry pull request</label></li>\n <li><label><input type=\"checkbox\" /> Update the forecast docs to Celsius</label></li>\n <li><label><input type=\"checkbox\" /> Tag 1.9.0</label></li>\n </ul>\n <div class=\"actions\">\n <button type=\"button\" data-action=\"review\">Review snapshots</button>\n <button type=\"button\" class=\"primary\" data-action=\"continue\">Continue</button>\n </div>\n </div>\n <script>\n document.querySelector('.actions').addEventListener('click', function (event) {\n var action = event.target.getAttribute('data-action');\n if (!action || !window.slicc) return;\n var done = document.querySelectorAll('.steps input:checked').length;\n slicc.lick({ action: action, data: { done: done } });\n });\n </script>\n </body>\n</html>\n";
@@ -211,6 +211,7 @@ export interface LickMessage {
211
211
  count?: number;
212
212
  state?: LickState;
213
213
  severity?: 'warn' | 'error';
214
+ expiresAt?: number;
214
215
  }
215
216
  export type Message = UserMessage | AssistantMessage | SystemMessage | ToolMessage | LickMessage;
216
217
  export interface Outgoing {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.75.0",
3
+ "version": "1.77.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",
@@ -72,7 +72,7 @@
72
72
  "devDependencies": {
73
73
  "@adobe/spectrum-wc": "2.0.0-beta.5",
74
74
  "@adobe/spectrum-wc-icons": "2.0.0-beta.5",
75
- "@ai-ecoverse/slicc-kernel": "1.94.2",
75
+ "@ai-ecoverse/slicc-kernel": "1.95.0",
76
76
  "@ai-ecoverse/slicc-shared-web": "1.20.0",
77
77
  "@ai-ecoverse/slicc-vault": "1.9.1",
78
78
  "@ai-ecoverse/wasm-bash": "5.3.0-18",