@ai-ecoverse/slicc-spectrum 1.94.1 → 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.
- package/README.md +6 -4
- package/dist/{chunk-2R4DLSKG.js → chunk-QGY4KBEB.js} +21 -7
- package/dist/{chunk-2R4DLSKG.js.map → chunk-QGY4KBEB.js.map} +2 -2
- package/dist/slicc-dummy.js +7 -5
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-kernel-model.js +1 -1
- package/dist/slicc-ui.js +11565 -4892
- package/dist/slicc-ui.js.map +4 -4
- package/dist/types/app/markdown.d.ts +1 -31
- package/dist/types/dummy/index.d.ts +4 -1
- package/dist/types/dummy/providers.d.ts +1 -1
- package/dist/types/dummy/settings.d.ts +3 -1
- package/dist/types/dummy.d.ts +1 -0
- package/dist/types/model/types.d.ts +2 -0
- package/package.json +12 -2
|
@@ -1,33 +1,3 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
export interface ListItem {
|
|
3
|
-
text: string;
|
|
4
|
-
task: boolean | null;
|
|
5
|
-
children: Block | null;
|
|
6
|
-
}
|
|
7
|
-
export type Block = {
|
|
8
|
-
type: 'code';
|
|
9
|
-
lang: string;
|
|
10
|
-
text: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: 'heading';
|
|
13
|
-
level: number;
|
|
14
|
-
text: string;
|
|
15
|
-
} | {
|
|
16
|
-
type: 'list';
|
|
17
|
-
ordered: boolean;
|
|
18
|
-
items: ListItem[];
|
|
19
|
-
} | {
|
|
20
|
-
type: 'table';
|
|
21
|
-
rows: string[][];
|
|
22
|
-
} | {
|
|
23
|
-
type: 'quote';
|
|
24
|
-
text: string;
|
|
25
|
-
} | {
|
|
26
|
-
type: 'rule';
|
|
27
|
-
} | {
|
|
28
|
-
type: 'paragraph';
|
|
29
|
-
text: string;
|
|
30
|
-
};
|
|
31
|
-
export declare function inline(text: string): TemplateResult[];
|
|
32
|
-
export declare function parse(text: string): Block[];
|
|
33
2
|
export declare function markdown(text: string): TemplateResult;
|
|
3
|
+
export declare const markdownCss: import("lit").CSSResult;
|
|
@@ -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;
|
package/dist/types/dummy.d.ts
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -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.128.
|
|
76
|
+
"@ai-ecoverse/slicc-kernel": "1.128.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",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@spectrum-web-components/switch": "1.12.4",
|
|
99
99
|
"@spectrum-web-components/textfield": "1.12.4",
|
|
100
100
|
"@spectrum-web-components/theme": "1.12.4",
|
|
101
|
+
"@types/mdast": "4.0.4",
|
|
101
102
|
"@types/node": "26.6.5",
|
|
102
103
|
"@wterm/core": "0.5.4",
|
|
103
104
|
"@wterm/dom": "0.5.4",
|
|
@@ -107,6 +108,15 @@
|
|
|
107
108
|
"happy-dom": "20.14.6",
|
|
108
109
|
"lefthook": "2.2.1",
|
|
109
110
|
"lucide": "1.55.0",
|
|
111
|
+
"mdast-util-from-markdown": "2.1.0",
|
|
112
|
+
"mdast-util-gfm-autolink-literal": "2.0.1",
|
|
113
|
+
"mdast-util-gfm-strikethrough": "2.0.1",
|
|
114
|
+
"mdast-util-gfm-table": "2.0.0",
|
|
115
|
+
"mdast-util-gfm-task-list-item": "2.0.0",
|
|
116
|
+
"micromark-extension-gfm-autolink-literal": "2.1.0",
|
|
117
|
+
"micromark-extension-gfm-strikethrough": "2.1.0",
|
|
118
|
+
"micromark-extension-gfm-table": "2.1.2",
|
|
119
|
+
"micromark-extension-gfm-task-list-item": "2.1.0",
|
|
110
120
|
"monocart-coverage-reports": "2.13.2",
|
|
111
121
|
"playwright-core": "1.64.0",
|
|
112
122
|
"semantic-release": "25.0.9",
|