@ai-ecoverse/slicc-spectrum 1.108.0 → 1.108.2
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 -6
- package/dist/{chunk-XQHRTHDQ.js → chunk-BUSDBLS7.js} +8 -4
- package/dist/{chunk-XQHRTHDQ.js.map → chunk-BUSDBLS7.js.map} +2 -2
- package/dist/slicc-dummy.js +61 -5
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +67 -16
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/secrets.d.ts +2 -1
- package/dist/types/app/settings.d.ts +2 -0
- package/dist/types/dummy/vault.d.ts +4 -3
- package/dist/types/dummy.d.ts +1 -1
- package/dist/types/model/types.d.ts +12 -1
- package/dist/types/model/values.d.ts +2 -1
- package/package.json +5 -5
|
@@ -24,7 +24,8 @@ export declare function sourceLine(secret: SecretView, devices: readonly LinkedD
|
|
|
24
24
|
export declare function revealed(name: string, entries: readonly AuditEntry[], now?: number, more?: boolean): TemplateResult | null;
|
|
25
25
|
export declare function changes(entry: PolicyEntry, devices: readonly LinkedDevice[]): string[][];
|
|
26
26
|
export declare function endpointsLine(entry: EndpointsEntry, named?: (provider: string) => string): TemplateResult;
|
|
27
|
-
export declare function
|
|
27
|
+
export declare function returned(entries: readonly AuditEntry[]): Map<number, boolean>;
|
|
28
|
+
export declare function auditLine(entry: AuditEntry, devices: readonly LinkedDevice[], named?: (provider: string) => string, back?: ReadonlyMap<number, boolean>): TemplateResult;
|
|
28
29
|
export declare function merged(...pages: ReadonlyArray<readonly AuditEntry[]>): AuditEntry[];
|
|
29
30
|
export declare function replaceable(secret: SecretView): boolean;
|
|
30
31
|
export declare function filename(now?: number): string;
|
|
@@ -12,6 +12,8 @@ import '@spectrum-web-components/field-label/sp-field-label.js';
|
|
|
12
12
|
import { type TemplateResult } from 'lit';
|
|
13
13
|
import type { Account, ConnectOptions, McpRefusal, ProviderOption, SliccModel } from '../model/types.js';
|
|
14
14
|
import { ThemedElement } from './base.js';
|
|
15
|
+
type ServerLeft = ['record' | 'url', unknown];
|
|
16
|
+
export declare function serverLeft(account: Account, left: readonly ServerLeft[]): string;
|
|
15
17
|
type ServerField = 'name' | 'url' | 'form';
|
|
16
18
|
export declare function matchProviders(options: readonly ProviderOption[], query: string): ProviderOption[];
|
|
17
19
|
export declare const mcpRegistrations = "slicc-spectrum.mcp-endpoints";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Emitter } from '../model/emitter.js';
|
|
2
|
-
import type { AuditEntry, AuditPage, Availability, ButtonConfig, ButtonEvent, ButtonMessage, ErrorCode, ImportKind, ImportPick, ImportResult, PolicyNotice, PopupIntent, PutOptions, RecordKind, RefusedRule, RequestState, SealResult, SecretView, VaultButton, VaultEndpointChange, VaultEvents, VaultList, VaultPort, VaultStatus } from '../model/types.js';
|
|
2
|
+
import type { AuditEntry, AuditPage, Availability, ButtonConfig, ButtonEvent, ButtonMessage, ErrorCode, ImportKind, ImportPick, ImportResult, PolicyNotice, PopupIntent, PutOptions, RecordKind, RefusedRule, RequestState, SealResult, SecretView, VaultButton, VaultEndpointChange, VaultError, VaultEvents, VaultList, VaultPort, VaultStatus } from '../model/types.js';
|
|
3
3
|
import type { Clock } from './clock.js';
|
|
4
|
-
export type VaultScenario = 'empty' | 'secrets' | 'policy' | 'notice' | 'locked' | 'request' | 'backup' | 'waiting' | 'purged' | 'session' | 'endpoints-fail';
|
|
4
|
+
export type VaultScenario = 'empty' | 'secrets' | 'policy' | 'notice' | 'locked' | 'paused' | 'request' | 'backup' | 'waiting' | 'purged' | 'session' | 'endpoints-fail';
|
|
5
5
|
export declare function vaultSecrets(now?: number): SecretView[];
|
|
6
6
|
export declare function accountRecords(now?: number, pin?: string): SecretView[];
|
|
7
7
|
export declare function vaultAudit(now?: number): AuditEntry[];
|
|
@@ -11,6 +11,7 @@ export declare function vaultPurged(now?: number): AuditEntry;
|
|
|
11
11
|
export declare function vaultPinned(now?: number): AuditEntry;
|
|
12
12
|
export declare function vaultSessions(now?: number): AuditEntry[];
|
|
13
13
|
export declare function vaultPolicy(now?: number): AuditEntry;
|
|
14
|
+
export declare function vaultPaused(now?: number): AuditEntry[];
|
|
14
15
|
export declare function vaultNotice(now?: number): PolicyNotice;
|
|
15
16
|
export declare function vaultFixtures(scenario: VaultScenario, now?: number): {
|
|
16
17
|
status: VaultStatus;
|
|
@@ -54,7 +55,7 @@ export declare class DummyVault extends Emitter<VaultEvents> implements VaultPor
|
|
|
54
55
|
list(): VaultList | null;
|
|
55
56
|
availability(): Availability;
|
|
56
57
|
arrive(): void;
|
|
57
|
-
fail(code: ErrorCode, message: string): void;
|
|
58
|
+
fail(code: ErrorCode, message: string, cause?: VaultError['cause']): void;
|
|
58
59
|
acknowledge(notice: string): Promise<void>;
|
|
59
60
|
dismissBackupReminder(): Promise<void>;
|
|
60
61
|
audit(before?: number, limit?: number): Promise<AuditPage>;
|
package/dist/types/dummy.d.ts
CHANGED
|
@@ -26,4 +26,4 @@ export { DummyTabs, tabsFixtures } from './dummy/tabs.js';
|
|
|
26
26
|
export type { BetaScenario, DummyUpdatesOptions, PackageConfirm, PackageScenario, UpdateScenario, } from './dummy/updates.js';
|
|
27
27
|
export { betaFixtures, DummyUpdates, packageFixtures, updateFixtures, } from './dummy/updates.js';
|
|
28
28
|
export type { VaultScenario } from './dummy/vault.js';
|
|
29
|
-
export { DummyVault, DummyVaultButton, vaultAudit, vaultFixtures, vaultNotice, vaultOlder, vaultPinned, vaultPolicy, vaultPurged, vaultRefused, vaultSecrets, vaultSessions, } from './dummy/vault.js';
|
|
29
|
+
export { DummyVault, DummyVaultButton, vaultAudit, vaultFixtures, vaultNotice, vaultOlder, vaultPaused, vaultPinned, vaultPolicy, vaultPurged, vaultRefused, vaultSecrets, vaultSessions, } from './dummy/vault.js';
|
|
@@ -1082,6 +1082,7 @@ export type ErrorCode = 'EINVAL' | 'ENOENT' | 'EACCES' | 'EEXIST' | 'EAGAIN' | '
|
|
|
1082
1082
|
export interface VaultError {
|
|
1083
1083
|
code: ErrorCode;
|
|
1084
1084
|
message: string;
|
|
1085
|
+
cause?: 'policy-paused';
|
|
1085
1086
|
}
|
|
1086
1087
|
export type VaultFailure = Error & VaultError;
|
|
1087
1088
|
export type ExitName = 'page' | 'proxy' | 'vault-direct' | 'local-proxy' | 'cli-v' | 'tailscale' | 'local-link' | `device:${DeviceId}`;
|
|
@@ -1140,6 +1141,14 @@ export interface ScrubState {
|
|
|
1140
1141
|
ready: boolean;
|
|
1141
1142
|
}
|
|
1142
1143
|
export type BackupReminder = 'due' | 'dismissed' | null;
|
|
1144
|
+
export interface PolicyFileState {
|
|
1145
|
+
path: string;
|
|
1146
|
+
sha256: string | null;
|
|
1147
|
+
accepted: boolean;
|
|
1148
|
+
warnings: string[];
|
|
1149
|
+
absent?: true;
|
|
1150
|
+
paused?: true;
|
|
1151
|
+
}
|
|
1143
1152
|
export interface VaultStatus {
|
|
1144
1153
|
version: string;
|
|
1145
1154
|
protocol: 1;
|
|
@@ -1151,6 +1160,7 @@ export interface VaultStatus {
|
|
|
1151
1160
|
notices?: number;
|
|
1152
1161
|
exportedAt?: number | null;
|
|
1153
1162
|
backupReminder?: BackupReminder;
|
|
1163
|
+
policy?: PolicyFileState[];
|
|
1154
1164
|
}
|
|
1155
1165
|
export type Availability = 'connecting' | 'waiting' | 'locked' | 'ready';
|
|
1156
1166
|
export type Widening = {
|
|
@@ -1303,7 +1313,8 @@ export interface PolicyEntry {
|
|
|
1303
1313
|
id: string;
|
|
1304
1314
|
at: number;
|
|
1305
1315
|
file: PolicyFile;
|
|
1306
|
-
sha256: string;
|
|
1316
|
+
sha256: string | null;
|
|
1317
|
+
absent?: true;
|
|
1307
1318
|
accepted: boolean;
|
|
1308
1319
|
widened?: Widening[];
|
|
1309
1320
|
changes?: PolicyChange[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ErrorCode, VaultFailure } from './types.js';
|
|
2
2
|
export declare function valueProblem(value: string): string | null;
|
|
3
3
|
export declare function nameProblem(name: string): string | null;
|
|
4
|
-
export declare function vaultFailure(code: ErrorCode, message: string): VaultFailure;
|
|
4
|
+
export declare function vaultFailure(code: ErrorCode, message: string, cause?: VaultFailure['cause']): VaultFailure;
|
|
5
5
|
export declare function isVaultFailure(error: unknown): error is VaultFailure;
|
|
6
|
+
export declare function isPolicyPaused(error: unknown): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-spectrum",
|
|
3
|
-
"version": "1.108.
|
|
3
|
+
"version": "1.108.2",
|
|
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",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@adobe/spectrum-wc": "2.0.0-beta.5",
|
|
64
64
|
"@adobe/spectrum-wc-icons": "2.0.0-beta.5",
|
|
65
|
-
"@ai-ecoverse/slicc-cdp": "1.43.
|
|
66
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
65
|
+
"@ai-ecoverse/slicc-cdp": "1.43.1",
|
|
66
|
+
"@ai-ecoverse/slicc-kernel": "1.172.0",
|
|
67
67
|
"@ai-ecoverse/slicc-shared-web": "2.13.7",
|
|
68
|
-
"@ai-ecoverse/slicc-vault": "1.
|
|
68
|
+
"@ai-ecoverse/slicc-vault": "1.20.0",
|
|
69
69
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
70
70
|
"@ai-ecoverse/wasm-coreutils": "9.12.0-15",
|
|
71
|
-
"@biomejs/biome": "2.6.
|
|
71
|
+
"@biomejs/biome": "2.6.3",
|
|
72
72
|
"@fontsource/source-code-pro": "5.3.1",
|
|
73
73
|
"@happy-dom/global-registrator": "21.0.4",
|
|
74
74
|
"@pierre/diffs": "1.6.1",
|