@ai-ecoverse/slicc-spectrum 1.101.3 → 1.103.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.
@@ -17,6 +17,8 @@ export declare function secretRules(command: string, cwd?: string | null): Secre
17
17
  export declare function alwaysHint(approval: SudoApproval): string;
18
18
  export declare function guestAlwaysHint(approval: GuestMessageApproval | GuestToolApproval): string;
19
19
  export declare function guestAsking(approval: GuestMessageApproval | GuestToolApproval): string;
20
+ export declare function approved(approval: Approval): string;
21
+ export declare function truncated(approval: Approval): boolean;
20
22
  export declare function guestWaiting(approval: GuestMessageApproval | GuestToolApproval): string;
21
23
  export declare function waiting(model: SliccModel | null, now: number): Approval[];
22
24
  export declare class SliccApprovals extends ModelElement {
@@ -0,0 +1,22 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc-icons/swc-icon-chevron-down.js';
3
+ import { type TemplateResult } from 'lit';
4
+ export declare const toShow = "Show the full command to allow it.";
5
+ export declare const toScroll = "Scroll to the end of the command to allow it.";
6
+ export declare const clampCss: import("lit").CSSResult;
7
+ export declare class Cuts {
8
+ #private;
9
+ constructor(root: () => ParentNode, changed: () => void);
10
+ get(id: string): boolean | undefined;
11
+ measure(): void;
12
+ disconnect(): void;
13
+ }
14
+ export declare class Ends {
15
+ #private;
16
+ constructor(root: () => ParentNode, changed: () => void);
17
+ has(id: string): boolean;
18
+ clear(): void;
19
+ observe(): void;
20
+ disconnect(): void;
21
+ }
22
+ export declare function fullCommand(shown: boolean, toggle: () => void): TemplateResult;
@@ -0,0 +1 @@
1
+ export declare function guard(text: string, growing?: boolean): string;
@@ -13,25 +13,14 @@ 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
15
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
16
- import '@adobe/spectrum-wc-icons/swc-icon-cancel.js';
17
- import '@adobe/spectrum-wc-icons/swc-icon-checkmark.js';
18
- import '@adobe/spectrum-wc-icons/swc-icon-clock-pending.js';
19
- import '@adobe/spectrum-wc-icons/swc-icon-code.js';
20
- import '@adobe/spectrum-wc-icons/swc-icon-data.js';
21
- import '@adobe/spectrum-wc-icons/swc-icon-edit.js';
22
16
  import '@adobe/spectrum-wc-icons/swc-icon-file.js';
23
17
  import '@adobe/spectrum-wc-icons/swc-icon-file-text.js';
24
- import '@adobe/spectrum-wc-icons/swc-icon-globe-grid.js';
25
18
  import '@adobe/spectrum-wc-icons/swc-icon-info-circle.js';
26
19
  import '@adobe/spectrum-wc-icons/swc-icon-lock.js';
27
- import '@adobe/spectrum-wc-icons/swc-icon-plugin.js';
28
- import '@adobe/spectrum-wc-icons/swc-icon-search.js';
29
- import '@adobe/spectrum-wc-icons/swc-icon-tools.js';
30
- import '@adobe/spectrum-wc-icons/swc-icon-user-group.js';
31
- import '@adobe/spectrum-wc-icons/swc-icon-web-page.js';
32
20
  import '@spectrum-web-components/help-text/sp-help-text.js';
33
- import { nothing, type TemplateResult } from 'lit';
34
- import type { AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, Question, Seat, SliccModel, SystemMessage, ToolCall, ToolMessage, ToolStatus, UserMessage } from '../model/types.js';
21
+ import { type TemplateResult } from 'lit';
22
+ import type { AccountSignIn, AssistantMessage, ErrorAction, LickChannel, LickMessage, LickState, Message, MessagePart, Question, Seat, SliccModel, SystemMessage, ToolCall, ToolMessage, UserMessage } from '../model/types.js';
23
+ import { type Copied } from './sign-in.js';
35
24
  import type { ViewSet } from './view-state.js';
36
25
  export interface Handlers {
37
26
  color: 'light' | 'dark';
@@ -42,6 +31,7 @@ export interface Handlers {
42
31
  action(action: ErrorAction, messageId?: string, account?: string): void;
43
32
  login?(account: string, messageId: string): Login | undefined;
44
33
  cancelLogin?(account: string, messageId: string): void;
34
+ copySignIn?(account: string, messageId: string, code: string): void;
45
35
  dropping(messageId: string): number;
46
36
  open(path: string): void;
47
37
  show(surfaceId: string): void;
@@ -50,10 +40,16 @@ export interface Handlers {
50
40
  agentId?: string;
51
41
  seat?: string;
52
42
  licks?: ViewSet;
43
+ runs?: ViewSet;
53
44
  detail?: {
54
45
  has(id: string): boolean;
55
46
  toggle(id: string): void;
56
47
  };
48
+ commands?: {
49
+ cut(id: string): boolean | undefined;
50
+ has(id: string): boolean;
51
+ toggle(id: string): void;
52
+ };
57
53
  }
58
54
  export interface Login {
59
55
  state: 'idle' | 'signing-in' | 'connected';
@@ -62,56 +58,46 @@ export interface Login {
62
58
  window?: boolean;
63
59
  waited?: boolean;
64
60
  provider?: string;
61
+ signIn?: AccountSignIn;
62
+ copied?: Copied;
65
63
  }
66
64
  export interface Owner {
67
65
  id?: string;
68
66
  at: number;
69
67
  stamp?: boolean;
70
68
  }
71
- export type RunContext = Pick<Handlers, 'color' | 'model' | 'owners' | 'agentId'>;
69
+ export type RunContext = Pick<Handlers, 'color' | 'model' | 'owners' | 'agentId' | 'runs'> & {
70
+ anchor?: string;
71
+ };
72
+ export interface Joined {
73
+ calls: ToolCall[];
74
+ live: boolean;
75
+ stopped?: boolean;
76
+ }
77
+ export declare const alone: Joined;
72
78
  export declare const lickLabels: Record<LickChannel, [string, string]>;
73
79
  interface ToolKind {
74
80
  id: string;
75
81
  one: string;
76
82
  many: string;
77
- icon: TemplateResult;
78
83
  }
79
84
  export declare function toolKind(name: string): ToolKind;
80
- export declare function toolSummary(calls: ToolCall[]): string;
81
- export declare function statusLabel(status: ToolStatus): string;
82
- export declare function overall(calls: readonly ToolCall[]): [ToolStatus, string];
83
- type Target = {
84
- type: 'site';
85
- host: string;
86
- } | {
87
- type: 'file';
88
- path: string;
89
- };
90
- export declare function target(command: string): Target | null;
91
- export declare function chip(call: ToolCall, model?: SliccModel | null): TemplateResult;
85
+ export declare function toolSummary(calls: readonly ToolCall[]): string;
92
86
  export declare function time(at: number): string;
93
87
  export declare function deadline(at: number): string;
94
88
  export declare function day(at: number): string;
95
89
  export declare function stamps(messages: readonly Message[]): Set<string>;
96
90
  export declare function size(bytes: number): string;
97
91
  export declare function host(url: string): string | null;
98
- export interface CardOptions {
99
- open?: boolean;
100
- run?: boolean;
101
- owner?: Owner;
102
- model?: SliccModel | null;
103
- toggle?: (event: Event) => void;
104
- }
105
- export declare function tool(call: ToolCall, color?: 'light' | 'dark', options?: CardOptions): TemplateResult;
106
- export declare const clusterSize = 3;
92
+ export declare function step(call: ToolCall, context: RunContext, id?: string): TemplateResult | TemplateResult[];
107
93
  export declare function questionTurn(item: Question, handlers: Handlers): TemplateResult;
108
- export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean, extra?: ToolCall[]): Array<TemplateResult | typeof nothing>;
94
+ export declare function parts(entries: MessagePart[], handlers: Handlers, showThinking: boolean): TemplateResult[];
109
95
  export declare function toolTail(message: Message, showThinking: boolean): boolean;
110
96
  export declare function toolOnly(message: Message, showThinking: boolean): ToolCall[] | null;
111
97
  export declare function mine(message: UserMessage, seat: Pick<Seat, 'id' | 'label'>): boolean;
112
98
  export declare function user(message: UserMessage, stamp?: boolean, seat?: Seat): TemplateResult;
113
- export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean, suggestion?: string | null, extra?: ToolCall[], stamp?: boolean): TemplateResult;
114
- export declare function toolMessage(message: ToolMessage, context?: RunContext & Partial<Pick<Handlers, 'suggest'>>, extra?: ToolCall[], suggestion?: string | null, stamp?: boolean): TemplateResult;
99
+ export declare function assistant(message: AssistantMessage, name: string, model: string, handlers: Handlers, showThinking: boolean, suggestion?: string | null, joined?: Joined, stamp?: boolean): TemplateResult;
100
+ export declare function toolMessage(message: ToolMessage, context?: RunContext & Partial<Pick<Handlers, 'suggest'>>, joined?: Joined, suggestion?: string | null, stamp?: boolean): TemplateResult;
115
101
  export declare function system(message: SystemMessage, handlers: Handlers): TemplateResult;
116
102
  export declare function pendingApproval(message: Message): boolean;
117
103
  export declare function waiting(message: Message, now?: number): boolean;
@@ -10,7 +10,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-checkmark.js';
10
10
  import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
11
11
  import '@spectrum-web-components/field-label/sp-field-label.js';
12
12
  import { type TemplateResult } from 'lit';
13
- import type { Account, ProviderOption, SliccModel } from '../model/types.js';
13
+ import type { Account, ConnectOptions, ProviderOption, SliccModel } from '../model/types.js';
14
14
  import { ThemedElement } from './base.js';
15
15
  export declare function matchProviders(options: readonly ProviderOption[], query: string): ProviderOption[];
16
16
  export declare const mcpRegistrations = "slicc-spectrum.mcp-endpoints";
@@ -77,7 +77,7 @@ export declare class SliccSettings extends ThemedElement {
77
77
  protected subscribe(model: SliccModel): Array<() => void>;
78
78
  focus(): void;
79
79
  reveal(section: string): void;
80
- connect(id: string, secret?: string, fields?: Record<string, string>): Promise<void>;
80
+ connect(id: string, secret?: string, fields?: Record<string, string>, options?: ConnectOptions): Promise<void>;
81
81
  keep(account: Account, value: string, fields?: Record<string, string>): Promise<void>;
82
82
  get busyReason(): string | null;
83
83
  protected updated(changed: Map<PropertyKey, unknown>): void;
@@ -1,3 +1,8 @@
1
+ import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
+ import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
3
+ import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
4
+ import { nothing, type TemplateResult } from 'lit';
5
+ import type { AccountSignIn } from '../model/types.js';
1
6
  export declare const continuing = "Continue in the sign-in window that opened.";
2
7
  export declare const closed = "Closed the sign-in window? Cancel, then Log in again.";
3
8
  export declare const signInWait: {
@@ -10,3 +15,17 @@ export declare class SignInWaits {
10
15
  waited(key: string): boolean;
11
16
  done(key: string): void;
12
17
  }
18
+ export declare const signInCopy: {
19
+ shownFor: number;
20
+ };
21
+ export type Copied = 'done' | 'failed';
22
+ export declare class SignInCopies {
23
+ #private;
24
+ constructor(update: () => void);
25
+ state(key: string): Copied | undefined;
26
+ copy(key: string, code: string): Promise<void>;
27
+ }
28
+ export declare const signInHosts: ReadonlyMap<string, readonly string[]>;
29
+ export declare function signInPage(id: string, url: string): string | null;
30
+ export declare function signInDetails(id: string, signIn: AccountSignIn | undefined, copied: Copied | undefined, copy: (code: string) => void, size?: 's' | 'm'): TemplateResult | typeof nothing;
31
+ export declare const signInCss: import("lit").CSSResult;
@@ -1,35 +1,38 @@
1
1
  import { LitElement, type TemplateResult } from 'lit';
2
2
  import type { SliccModel, ToolCall } from '../model/types.js';
3
- import { type Owner } from './messages.js';
4
- export declare class SliccToolRuns extends LitElement {
3
+ export declare const hold = 1000;
4
+ export declare class SliccStatusLabel extends LitElement {
5
5
  #private;
6
6
  static properties: {
7
- calls: {
7
+ text: {
8
8
  attribute: boolean;
9
9
  };
10
- agent: {
10
+ note: {
11
11
  attribute: boolean;
12
12
  };
13
- color: {
13
+ state: {
14
14
  attribute: boolean;
15
15
  };
16
- model: {
16
+ calls: {
17
17
  attribute: boolean;
18
18
  };
19
- owners: {
19
+ agent: {
20
+ attribute: boolean;
21
+ };
22
+ model: {
20
23
  attribute: boolean;
21
24
  };
22
25
  };
26
+ text: string;
27
+ note: string;
28
+ state: 'active' | 'complete' | 'stopped';
23
29
  calls: ToolCall[];
24
30
  agent: string;
25
- color: 'light' | 'dark';
26
31
  model: SliccModel | null;
27
- owners: ReadonlyMap<string, Owner> | null;
28
32
  constructor();
29
33
  protected createRenderRoot(): HTMLElement;
30
- connectedCallback(): void;
31
34
  disconnectedCallback(): void;
35
+ get shown(): string;
32
36
  protected willUpdate(): void;
33
- protected updated(): void;
34
37
  render(): TemplateResult;
35
38
  }
@@ -4,12 +4,16 @@ import '@adobe/spectrum-wc/components/divider/swc-divider.js';
4
4
  import '@adobe/spectrum-wc/components/progress-bar/swc-progress-bar.js';
5
5
  import '@adobe/spectrum-wc/components/status-light/swc-status-light.js';
6
6
  import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
7
- import { type TemplateResult } from 'lit';
7
+ import { type PropertyValues, type TemplateResult } from 'lit';
8
8
  import type { PackageAction, PackageItem, SliccModel, UpdateAction, UpdateItem, UpdateRelease, UpdatesPort } from '../model/types.js';
9
9
  import { ModelElement } from './base.js';
10
10
  export declare function betaText(items: readonly UpdateItem[]): string | null;
11
11
  export declare function npmMeta(item: UpdateItem): string | null;
12
12
  export declare function npmNote(item: UpdateItem): string | null;
13
+ export declare const plainLimit = 300;
14
+ export declare function stripped(text: string): string;
15
+ export declare function plain(text: string, limit?: number): string;
16
+ export declare function withheldText(reason: string, prefix?: string): string;
13
17
  export declare function requiresText(item: PackageItem, all: readonly PackageItem[]): string | null;
14
18
  export declare const notesLimit = 8192;
15
19
  interface Notes {
@@ -20,6 +24,7 @@ interface Notes {
20
24
  }
21
25
  export declare function releaseNotes(release: UpdateRelease, name?: string): Notes;
22
26
  export declare function whatsNew(releases: readonly UpdateRelease[] | undefined, from: string | null, to: string | null, name?: string): readonly Notes[];
27
+ export declare const npmPage: (name: string) => string;
23
28
  type Failures = ReadonlyMap<string, string>;
24
29
  export declare function updatesStatus(items: readonly UpdateItem[]): string | null;
25
30
  export declare class UpdateVisibility {
@@ -45,11 +50,19 @@ export declare class SliccUpdates extends ModelElement {
45
50
  problems: {
46
51
  state: boolean;
47
52
  };
53
+ refreshing: {
54
+ state: boolean;
55
+ };
56
+ still: {
57
+ state: boolean;
58
+ };
48
59
  };
49
60
  pending: ReadonlySet<string>;
50
61
  failures: Failures;
51
62
  busy: ReadonlyMap<string, PackageAction>;
52
63
  problems: Failures;
64
+ refreshing: boolean;
65
+ still: boolean;
53
66
  constructor();
54
67
  get busyReason(): string | null;
55
68
  static styles: import("lit").CSSResult[];
@@ -57,6 +70,9 @@ export declare class SliccUpdates extends ModelElement {
57
70
  focus(): void;
58
71
  act(id: string, action: UpdateAction): Promise<void>;
59
72
  actPackage(id: string, action: PackageAction): Promise<void>;
73
+ refreshPackages(): Promise<void>;
74
+ protected willUpdate(changed: PropertyValues): void;
75
+ protected updated(changed: PropertyValues): void;
60
76
  render(): TemplateResult;
61
77
  }
62
78
  export {};
@@ -1,7 +1,8 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
2
  import type { Approval, ApprovalDecision, ApprovalEnd, ApprovalsEvents, ApprovalsPort } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
- export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'guest' | 'guest-follower' | 'guest-always' | 'none';
4
+ export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'guest' | 'guest-follower' | 'guest-always' | 'long' | 'guest-args' | 'guest-empty' | 'guest-truncated' | 'none';
5
+ export declare const guestArgs: string;
5
6
  export declare function approvalFixtures(scenario: ApprovalScenario, now?: number): Approval[];
6
7
  export declare class DummyApprovals extends Emitter<ApprovalsEvents> implements ApprovalsPort {
7
8
  #private;
@@ -1,4 +1,4 @@
1
- import type { Account, Agent, BrowserTab, Change, Message, ModelOption, Settings, TerminalInfo, UserMessage } from '../model/types.js';
1
+ import type { Account, AccountSignIn, Agent, BrowserTab, Change, Message, ModelOption, Settings, TerminalInfo, UserMessage } from '../model/types.js';
2
2
  export declare const files: Record<string, string>;
3
3
  export declare const directories: string[];
4
4
  export declare const mountPoint = "/mnt/photos";
@@ -9,6 +9,12 @@ export declare const models: ModelOption[];
9
9
  export declare const laterModels: ModelOption[];
10
10
  export declare const defaults: Settings;
11
11
  export declare const accounts: Account[];
12
+ export declare const dualAccount: Account;
13
+ export declare const codexAccount: Account;
14
+ export declare const deviceSignIn: AccountSignIn;
15
+ export declare const pageSignIn: AccountSignIn;
16
+ export declare const lookalikeSignIn: AccountSignIn;
17
+ export declare const signIns: ReadonlyMap<string, AccountSignIn>;
12
18
  export declare const agents: Agent[];
13
19
  export declare const queues: Record<string, UserMessage[]>;
14
20
  export declare const conversations: Record<string, Message[]>;
@@ -8,7 +8,7 @@ import { DummyGuests, type GuestsScenario } from './guests.js';
8
8
  import { type ImportScenario } from './import.js';
9
9
  import { DummyNetwork, type LeadersScenario, type LinksScenario, type NetworkScenario, type TailnetScenario } from './network.js';
10
10
  import { DummyNotices, type NoticeScenario } from './notices.js';
11
- import { DummySettings, type DummyTransport } from './settings.js';
11
+ import { type DummyLogin, DummySettings, type DummyTransport } from './settings.js';
12
12
  import { DummyTabs, type TabsScenario } from './tabs.js';
13
13
  import { type BetaScenario, DummyUpdates, type PackageConfirm, type PackageScenario, type UpdateScenario } from './updates.js';
14
14
  import { DummyVault, type VaultScenario } from './vault.js';
@@ -28,10 +28,11 @@ export interface DummyOptions {
28
28
  notices?: NoticeScenario | 'off';
29
29
  tabs?: TabsScenario | 'off';
30
30
  approvals?: ApprovalScenario | 'off';
31
+ asks?: 'long' | 'off';
31
32
  follow?: FollowScenario | 'off';
32
33
  vault?: VaultScenario | 'off';
33
34
  guests?: GuestsScenario | 'off';
34
- accounts?: 'settings' | 'vault';
35
+ accounts?: 'settings' | 'vault' | 'dual';
35
36
  providers?: 'connected' | 'none' | 'all';
36
37
  mcp?: 'moved';
37
38
  transport?: DummyTransport;
@@ -42,7 +43,7 @@ export interface DummyOptions {
42
43
  sprinkles?: 'builtin' | 'cones';
43
44
  monitor?: 'dummy' | 'agent';
44
45
  import?: ImportScenario | 'off';
45
- login?: 'ok' | 'fail';
46
+ login?: DummyLogin;
46
47
  }
47
48
  export interface DummyModel extends SliccModel {
48
49
  settings: DummySettings;
@@ -59,4 +60,4 @@ export interface DummyModel extends SliccModel {
59
60
  export declare function vaultAccounts(accounts: readonly Account[]): Account[];
60
61
  export declare const docsUrl = "https://docs.example/mcp";
61
62
  export declare const movedDocs = "https://docs.eu.example/mcp";
62
- export declare function createDummyModel({ delay, storage, updates, packages, confirm, beta, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, follow, vault, guests, accounts, providers, mcp, transport, hold, readonly, agent: arrival, browser: scenario, sprinkles, monitor, import: imports, login, }?: DummyOptions): DummyModel;
63
+ 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, transport, hold, readonly, agent: arrival, browser: scenario, sprinkles, monitor, import: imports, login, }?: DummyOptions): DummyModel;
@@ -5,6 +5,8 @@ export interface Effects {
5
5
  agentId: string;
6
6
  }
7
7
  export type Step = {
8
+ type: 'turn';
9
+ } | {
8
10
  type: 'part';
9
11
  part: MessagePart;
10
12
  } | {
@@ -21,9 +23,12 @@ export type Step = {
21
23
  output: string;
22
24
  paths: string[];
23
25
  ticks: number;
26
+ streamed?: boolean;
24
27
  chunks?: string[];
25
28
  effect?: (effects: Effects) => Promise<unknown> | unknown;
26
29
  };
30
+ export declare const leakyCommand: string;
31
+ export declare const replayLabel = "Rebuild the cache-key fixtures for every city";
27
32
  export declare function label(title: string): string | null;
28
33
  export declare function script(prompt: string, attachments?: readonly Attachment[]): {
29
34
  steps: Step[];
@@ -1,25 +1,27 @@
1
1
  import { Emitter } from '../model/emitter.js';
2
- import type { Account, ModelOption, ProviderOption, Settings, SettingsEvents, SettingsPort } from '../model/types.js';
2
+ import type { Account, ConnectOptions, ModelOption, ProviderOption, Settings, SettingsEvents, SettingsPort } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
4
  export declare const dummySettingsKey = "slicc-ui.settings";
5
5
  export declare const signInClosed = "The sign-in window was closed before it finished.";
6
6
  export type DummyTransport = 'none' | 'extension' | 'link';
7
+ export type DummyLogin = 'ok' | 'fail' | 'code' | 'url' | 'lookalike';
7
8
  export declare class DummySettings extends Emitter<SettingsEvents> implements SettingsPort {
8
9
  #private;
9
10
  readonly connects: Array<{
10
11
  id: string;
11
12
  gesture: boolean | null;
12
13
  fields?: Record<string, string>;
14
+ options?: ConnectOptions;
13
15
  }>;
14
16
  providers?: () => readonly ProviderOption[];
15
17
  remove?: (id: string) => Promise<void>;
16
- constructor(defaults: Settings, models: readonly ModelOption[], accounts: readonly Account[], storage: Storage | null, clock: Clock, keys?: readonly string[], gated?: boolean, login?: 'ok' | 'fail', providers?: readonly ProviderOption[], transport?: DummyTransport);
18
+ constructor(defaults: Settings, models: readonly ModelOption[], accounts: readonly Account[], storage: Storage | null, clock: Clock, keys?: readonly string[], gated?: boolean, login?: DummyLogin, providers?: readonly ProviderOption[], transport?: DummyTransport);
17
19
  get(): Settings;
18
20
  update(patch: Partial<Settings>): void;
19
21
  models(): readonly ModelOption[];
20
22
  accounts(): readonly Account[];
21
23
  setTransport(transport: DummyTransport): void;
22
- connect(id: string, secret?: string, fields?: Record<string, string>): Promise<void>;
24
+ connect(id: string, secret?: string, fields?: Record<string, string>, options?: ConnectOptions): Promise<void>;
23
25
  cancel(id: string): void;
24
26
  disconnect(id: string): void;
25
27
  }
@@ -2,5 +2,7 @@ import type { Agent, Message, UserMessage } from '../model/types.js';
2
2
  export declare function picture(label: string, from: string, to: string, width?: number, height?: number): string;
3
3
  export declare function tone(seconds?: number, frequency?: number, rate?: number): string;
4
4
  export declare const showcaseAgent: Agent;
5
+ export declare const longCommand: string;
6
+ export declare function longAsk(now?: number): Message;
5
7
  export declare function showcase(): Message[];
6
8
  export declare function showcaseQueue(): UserMessage[];
@@ -2,7 +2,7 @@ import { Emitter } from '../model/emitter.js';
2
2
  import type { PackageAction, PackageItem, UpdateAction, UpdateItem, UpdatesEvents, UpdatesPort } from '../model/types.js';
3
3
  import type { Clock } from './clock.js';
4
4
  export type UpdateScenario = 'current' | 'boot' | 'starting' | 'available' | 'restart' | 'failure';
5
- export type PackageScenario = 'mixed' | 'empty' | 'fail' | 'user' | 'elsewhere';
5
+ export type PackageScenario = 'mixed' | 'empty' | 'fail' | 'user' | 'elsewhere' | 'npm' | 'checking' | 'offline';
6
6
  export type BetaScenario = 'offered' | 'installed' | 'blocked' | 'failed';
7
7
  export type PackageConfirm = (options: {
8
8
  title: string;
@@ -22,6 +22,7 @@ export declare class DummyUpdates extends Emitter<UpdatesEvents> implements Upda
22
22
  #private;
23
23
  packages?: () => readonly PackageItem[];
24
24
  actPackage?: (id: string, action: PackageAction) => Promise<void>;
25
+ refreshPackages?: () => Promise<void>;
25
26
  developer?: () => boolean;
26
27
  setDeveloper?: (on: boolean) => Promise<void>;
27
28
  constructor(scenario: UpdateScenario, clock: Clock, options?: DummyUpdatesOptions);
@@ -20,7 +20,7 @@ export { DummyNetwork, forgottenDevice, joinUrl, leadersFixtures, linksFixtures,
20
20
  export type { NoticeScenario } from './dummy/notices.js';
21
21
  export { DummyNotices, noticeFixtures } from './dummy/notices.js';
22
22
  export { providerAccount, providerAccounts, providerFixtures } from './dummy/providers.js';
23
- export type { DummySettings, DummyTransport } from './dummy/settings.js';
23
+ export type { DummyLogin, DummySettings, DummyTransport } from './dummy/settings.js';
24
24
  export type { TabsScenario } from './dummy/tabs.js';
25
25
  export { DummyTabs, tabsFixtures } from './dummy/tabs.js';
26
26
  export type { BetaScenario, DummyUpdatesOptions, PackageConfirm, PackageScenario, UpdateScenario, } from './dummy/updates.js';
@@ -457,6 +457,13 @@ export interface Settings {
457
457
  diffStyle: 'unified' | 'split';
458
458
  }
459
459
  export type AccountStatus = 'connected' | 'expired' | 'disconnected' | 'signing-in';
460
+ export interface AccountSignIn {
461
+ url: string;
462
+ code?: string;
463
+ }
464
+ export interface ConnectOptions {
465
+ method: 'sign-in' | 'key';
466
+ }
460
467
  export interface Account {
461
468
  id: string;
462
469
  provider: string;
@@ -473,6 +480,7 @@ export interface Account {
473
480
  description?: string;
474
481
  vaultName?: string;
475
482
  url?: string;
483
+ signIn?: AccountSignIn;
476
484
  }
477
485
  export interface AccountField {
478
486
  name: string;
@@ -537,7 +545,7 @@ export interface SettingsPort extends Subscribable<SettingsEvents> {
537
545
  update(patch: Partial<Settings>): void;
538
546
  models(): readonly ModelOption[];
539
547
  accounts(): readonly Account[];
540
- connect(id: string, secret?: string, fields?: Record<string, string>): Promise<void>;
548
+ connect(id: string, secret?: string, fields?: Record<string, string>, options?: ConnectOptions): Promise<void>;
541
549
  disconnect(id: string): void;
542
550
  cancel?(id: string): void;
543
551
  providers?(): readonly ProviderOption[];
@@ -740,6 +748,13 @@ export interface PackageItem {
740
748
  version: string | null;
741
749
  offered: string | null;
742
750
  size?: number;
751
+ unpacked?: true;
752
+ registry?: 'checking' | 'unreachable';
753
+ withheld?: string;
754
+ newer?: {
755
+ version: string;
756
+ reason: string;
757
+ };
743
758
  progress: InstallProgress | null;
744
759
  error: string | null;
745
760
  actions: readonly PackageAction[];
@@ -759,6 +774,7 @@ export interface UpdatesPort extends Subscribable<UpdatesEvents> {
759
774
  act(id: string, action: UpdateAction): Promise<void>;
760
775
  packages?(): readonly PackageItem[];
761
776
  actPackage?(id: string, action: PackageAction): Promise<void>;
777
+ refreshPackages?(): Promise<void>;
762
778
  developer?(): boolean;
763
779
  setDeveloper?(on: boolean): Promise<void>;
764
780
  }
@@ -974,6 +990,8 @@ export interface GuestToolApproval {
974
990
  agentName?: string;
975
991
  tool: string;
976
992
  summary: string;
993
+ args?: string;
994
+ argsTruncated?: boolean;
977
995
  createdAt: number;
978
996
  expiresAt: number;
979
997
  always: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.101.3",
3
+ "version": "1.103.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",
@@ -73,11 +73,11 @@
73
73
  "devDependencies": {
74
74
  "@adobe/spectrum-wc": "2.0.0-beta.5",
75
75
  "@adobe/spectrum-wc-icons": "2.0.0-beta.5",
76
- "@ai-ecoverse/slicc-kernel": "1.134.3",
77
- "@ai-ecoverse/slicc-shared-web": "1.27.0",
76
+ "@ai-ecoverse/slicc-kernel": "1.135.7",
77
+ "@ai-ecoverse/slicc-shared-web": "1.28.0",
78
78
  "@ai-ecoverse/slicc-vault": "1.9.2",
79
79
  "@ai-ecoverse/wasm-bash": "5.3.0-21",
80
- "@ai-ecoverse/wasm-coreutils": "9.12.0-10",
80
+ "@ai-ecoverse/wasm-coreutils": "9.12.0-11",
81
81
  "@biomejs/biome": "2.5.15",
82
82
  "@fontsource/source-code-pro": "5.3.1",
83
83
  "@happy-dom/global-registrator": "20.14.6",
@@ -107,7 +107,7 @@
107
107
  "esbuild": "0.28.2",
108
108
  "happy-dom": "20.14.6",
109
109
  "lefthook": "2.2.1",
110
- "lucide": "1.55.0",
110
+ "lucide": "1.56.0",
111
111
  "mdast-util-from-markdown": "2.1.0",
112
112
  "mdast-util-gfm-autolink-literal": "2.0.1",
113
113
  "mdast-util-gfm-strikethrough": "2.0.1",