@ai-ecoverse/slicc-spectrum 1.94.2 → 1.95.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,6 +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
12
  import { DummyTabs, type TabsScenario } from './tabs.js';
12
13
  import { DummyUpdates, type PackageConfirm, type PackageScenario, type UpdateScenario } from './updates.js';
13
14
  import { DummyVault, type VaultScenario } from './vault.js';
@@ -31,6 +32,7 @@ export interface DummyOptions {
31
32
  guests?: GuestsScenario | 'off';
32
33
  accounts?: 'settings' | 'vault';
33
34
  providers?: 'connected' | 'none' | 'all';
35
+ transport?: DummyTransport;
34
36
  hold?: AgentHold['reason'] | 'off';
35
37
  readonly?: 'version' | 'off';
36
38
  browser?: BrowserScenario;
@@ -40,6 +42,7 @@ export interface DummyOptions {
40
42
  login?: 'ok' | 'fail';
41
43
  }
42
44
  export interface DummyModel extends SliccModel {
45
+ settings: DummySettings;
43
46
  browser: DummyBrowser;
44
47
  updates: DummyUpdates;
45
48
  network?: DummyNetwork;
@@ -51,4 +54,4 @@ export interface DummyModel extends SliccModel {
51
54
  guests?: DummyGuests;
52
55
  }
53
56
  export declare function vaultAccounts(accounts: readonly Account[]): Account[];
54
- export declare function createDummyModel({ delay, storage, updates, packages, confirm, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, follow, vault, guests, accounts, providers, hold, readonly, browser: scenario, sprinkles, monitor, import: imports, login, }?: DummyOptions): DummyModel;
57
+ export declare function createDummyModel({ delay, storage, updates, packages, confirm, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, follow, vault, guests, accounts, providers, transport, hold, readonly, browser: scenario, sprinkles, monitor, import: imports, login, }?: DummyOptions): DummyModel;
@@ -1,4 +1,4 @@
1
1
  import type { Account, ProviderOption } from '../model/types.js';
2
2
  export declare const providerFixtures: readonly ProviderOption[];
3
3
  export declare function providerAccount(option: ProviderOption): Account;
4
- export declare function providerAccounts(rows: readonly Account[]): Account[];
4
+ export declare function providerAccounts(rows: readonly Account[], transport?: 'none'): Account[];
@@ -3,6 +3,7 @@ import type { Account, ModelOption, ProviderOption, Settings, SettingsEvents, Se
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
+ export type DummyTransport = 'none' | 'extension' | 'link';
6
7
  export declare class DummySettings extends Emitter<SettingsEvents> implements SettingsPort {
7
8
  #private;
8
9
  readonly connects: Array<{
@@ -12,11 +13,12 @@ export declare class DummySettings extends Emitter<SettingsEvents> implements Se
12
13
  }>;
13
14
  providers?: () => readonly ProviderOption[];
14
15
  remove?: (id: string) => Promise<void>;
15
- 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[]);
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);
16
17
  get(): Settings;
17
18
  update(patch: Partial<Settings>): void;
18
19
  models(): readonly ModelOption[];
19
20
  accounts(): readonly Account[];
21
+ setTransport(transport: DummyTransport): void;
20
22
  connect(id: string, secret?: string, fields?: Record<string, string>): Promise<void>;
21
23
  cancel(id: string): void;
22
24
  disconnect(id: string): void;
@@ -20,6 +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
24
  export type { TabsScenario } from './dummy/tabs.js';
24
25
  export { DummyTabs, tabsFixtures } from './dummy/tabs.js';
25
26
  export type { DummyUpdatesOptions, PackageConfirm, PackageScenario, UpdateScenario, } from './dummy/updates.js';
@@ -460,6 +460,7 @@ export interface Account {
460
460
  status: AccountStatus;
461
461
  auth?: 'oauth' | 'api-key' | 'local';
462
462
  needs?: 'cors-free-transport';
463
+ blocked?: 'cors-free-transport';
463
464
  group?: 'providers' | 'mcp';
464
465
  secret?: 'api-key' | 'token';
465
466
  store?: 'vault';
@@ -507,6 +508,7 @@ export interface ProviderOption {
507
508
  fields?: AccountField[];
508
509
  keyUrl?: string;
509
510
  needs?: 'cors-free-transport';
511
+ blocked?: 'cors-free-transport';
510
512
  vaultName?: string;
511
513
  }
512
514
  export interface ModelOption {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.94.2",
3
+ "version": "1.95.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",