@ai-ecoverse/slicc-spectrum 1.94.2 → 1.96.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.
- package/README.md +12 -5
- package/dist/{chunk-2R4DLSKG.js → chunk-CVMI4FSY.js} +55 -8
- package/dist/{chunk-2R4DLSKG.js.map → chunk-CVMI4FSY.js.map} +2 -2
- package/dist/slicc-dummy.js +39 -7
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-kernel-model.js +1 -1
- package/dist/slicc-ui.js +234 -28
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/settings.d.ts +1 -0
- package/dist/types/dummy/index.d.ts +7 -1
- package/dist/types/dummy/providers.d.ts +1 -1
- package/dist/types/dummy/settings.d.ts +3 -1
- package/dist/types/dummy/vault.d.ts +1 -1
- package/dist/types/dummy.d.ts +2 -1
- package/dist/types/model/types.d.ts +7 -0
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ import { type TemplateResult } from 'lit';
|
|
|
12
12
|
import type { Account, ProviderOption, SliccModel } from '../model/types.js';
|
|
13
13
|
import { ThemedElement } from './base.js';
|
|
14
14
|
export declare function matchProviders(options: readonly ProviderOption[], query: string): ProviderOption[];
|
|
15
|
+
export declare const mcpRegistrations = "slicc-spectrum.mcp-endpoints";
|
|
15
16
|
export declare class SliccSettings extends ThemedElement {
|
|
16
17
|
#private;
|
|
17
18
|
static properties: {
|
|
@@ -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,8 @@ export interface DummyOptions {
|
|
|
31
32
|
guests?: GuestsScenario | 'off';
|
|
32
33
|
accounts?: 'settings' | 'vault';
|
|
33
34
|
providers?: 'connected' | 'none' | 'all';
|
|
35
|
+
mcp?: 'moved';
|
|
36
|
+
transport?: DummyTransport;
|
|
34
37
|
hold?: AgentHold['reason'] | 'off';
|
|
35
38
|
readonly?: 'version' | 'off';
|
|
36
39
|
browser?: BrowserScenario;
|
|
@@ -40,6 +43,7 @@ export interface DummyOptions {
|
|
|
40
43
|
login?: 'ok' | 'fail';
|
|
41
44
|
}
|
|
42
45
|
export interface DummyModel extends SliccModel {
|
|
46
|
+
settings: DummySettings;
|
|
43
47
|
browser: DummyBrowser;
|
|
44
48
|
updates: DummyUpdates;
|
|
45
49
|
network?: DummyNetwork;
|
|
@@ -51,4 +55,6 @@ export interface DummyModel extends SliccModel {
|
|
|
51
55
|
guests?: DummyGuests;
|
|
52
56
|
}
|
|
53
57
|
export declare function vaultAccounts(accounts: readonly Account[]): Account[];
|
|
54
|
-
export declare
|
|
58
|
+
export declare const docsUrl = "https://docs.example/mcp";
|
|
59
|
+
export declare const movedDocs = "https://docs.eu.example/mcp";
|
|
60
|
+
export declare function createDummyModel({ delay, storage, updates, packages, confirm, mounts, network, tailnet, links, leaders, changes, notices, tabs, approvals, follow, vault, guests, accounts, providers, mcp, 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;
|
|
@@ -3,7 +3,7 @@ import type { AuditEntry, AuditPage, Availability, ButtonConfig, ButtonEvent, Bu
|
|
|
3
3
|
import type { Clock } from './clock.js';
|
|
4
4
|
export type VaultScenario = 'empty' | 'secrets' | 'policy' | 'notice' | 'locked' | 'request' | 'backup' | 'waiting' | 'purged' | 'endpoints-fail';
|
|
5
5
|
export declare function vaultSecrets(now?: number): SecretView[];
|
|
6
|
-
export declare function accountRecords(now?: number): SecretView[];
|
|
6
|
+
export declare function accountRecords(now?: number, pin?: string): SecretView[];
|
|
7
7
|
export declare function vaultAudit(now?: number): AuditEntry[];
|
|
8
8
|
export declare function vaultOlder(now?: number): AuditEntry[];
|
|
9
9
|
export declare function vaultRefused(): RefusedRule[];
|
package/dist/types/dummy.d.ts
CHANGED
|
@@ -14,12 +14,13 @@ export { DummyGuests, guestsFixtures, guestsPolicy, guestsRefused, guestsUnavail
|
|
|
14
14
|
export type { ImportScenario } from './dummy/import.js';
|
|
15
15
|
export { DummyImport, importBefore, importCancelled, importCones, importNotV6, importPreview, importReport, importTotal, } from './dummy/import.js';
|
|
16
16
|
export type { DummyModel, DummyOptions } from './dummy/index.js';
|
|
17
|
-
export { createDummyModel } from './dummy/index.js';
|
|
17
|
+
export { createDummyModel, movedDocs } from './dummy/index.js';
|
|
18
18
|
export type { LeadersScenario, NetworkScenario, TailnetScenario } from './dummy/network.js';
|
|
19
19
|
export { DummyNetwork, forgottenDevice, joinUrl, leadersFixtures, linksFixtures, networkFixtures, pairedDevice, pairingCode, pairingRefused, pairingStopped, tailnetFixtures, } from './dummy/network.js';
|
|
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';
|
|
@@ -215,6 +215,8 @@ export interface LickMessage {
|
|
|
215
215
|
state?: LickState;
|
|
216
216
|
severity?: 'warn' | 'error';
|
|
217
217
|
expiresAt?: number;
|
|
218
|
+
summary?: string;
|
|
219
|
+
report?: string;
|
|
218
220
|
}
|
|
219
221
|
export type Message = UserMessage | AssistantMessage | SystemMessage | ToolMessage | LickMessage;
|
|
220
222
|
export interface Outgoing {
|
|
@@ -460,6 +462,7 @@ export interface Account {
|
|
|
460
462
|
status: AccountStatus;
|
|
461
463
|
auth?: 'oauth' | 'api-key' | 'local';
|
|
462
464
|
needs?: 'cors-free-transport';
|
|
465
|
+
blocked?: 'cors-free-transport';
|
|
463
466
|
group?: 'providers' | 'mcp';
|
|
464
467
|
secret?: 'api-key' | 'token';
|
|
465
468
|
store?: 'vault';
|
|
@@ -467,6 +470,7 @@ export interface Account {
|
|
|
467
470
|
keyUrl?: string;
|
|
468
471
|
description?: string;
|
|
469
472
|
vaultName?: string;
|
|
473
|
+
url?: string;
|
|
470
474
|
}
|
|
471
475
|
export interface AccountField {
|
|
472
476
|
name: string;
|
|
@@ -507,6 +511,7 @@ export interface ProviderOption {
|
|
|
507
511
|
fields?: AccountField[];
|
|
508
512
|
keyUrl?: string;
|
|
509
513
|
needs?: 'cors-free-transport';
|
|
514
|
+
blocked?: 'cors-free-transport';
|
|
510
515
|
vaultName?: string;
|
|
511
516
|
}
|
|
512
517
|
export interface ModelOption {
|
|
@@ -1019,6 +1024,8 @@ export interface SecretView {
|
|
|
1019
1024
|
provider?: string;
|
|
1020
1025
|
account?: string;
|
|
1021
1026
|
server?: string;
|
|
1027
|
+
url?: string;
|
|
1028
|
+
pinned?: true;
|
|
1022
1029
|
settings?: Record<string, string>;
|
|
1023
1030
|
domains: string[];
|
|
1024
1031
|
rules: Rule[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.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,7 +73,7 @@
|
|
|
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.
|
|
76
|
+
"@ai-ecoverse/slicc-kernel": "1.130.2",
|
|
77
77
|
"@ai-ecoverse/slicc-shared-web": "1.24.2",
|
|
78
78
|
"@ai-ecoverse/slicc-vault": "1.9.2",
|
|
79
79
|
"@ai-ecoverse/wasm-bash": "5.3.0-20",
|