@ai-ecoverse/slicc-spectrum 1.68.3 → 1.69.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.
@@ -1,11 +1,15 @@
1
1
  import '@adobe/spectrum-wc/components/action-button/swc-action-button.js';
2
2
  import '@adobe/spectrum-wc/components/tooltip/swc-tooltip.js';
3
+ import '@adobe/spectrum-wc-icons/swc-icon-add.js';
3
4
  import '@adobe/spectrum-wc-icons/swc-icon-close.js';
4
5
  import '@adobe/spectrum-wc-icons/swc-icon-delete.js';
5
6
  import { type TemplateResult } from 'lit';
6
7
  import type { Agent, SliccModel } from '../model/types.js';
7
8
  import { ModelElement } from './base.js';
8
9
  export declare function ordered(agents: readonly Agent[]): Agent[];
10
+ export declare function creatable(model: SliccModel | null | undefined): boolean;
11
+ export declare function createCone(model: SliccModel, trigger: HTMLElement): Promise<Agent | undefined>;
12
+ export declare function fillShown(fill: number): boolean;
9
13
  export declare class SliccAgents extends ModelElement {
10
14
  #private;
11
15
  static properties: {
@@ -8,7 +8,11 @@ export declare function countdown(ms: number): string;
8
8
  export declare function asking(approval: Approval): string;
9
9
  export declare function sudo(approval: Approval): string;
10
10
  export declare const certain: (rules: string) => boolean;
11
- export declare function secretRules(approval: Approval): string | null;
11
+ export interface SecretRulesVerdict {
12
+ certain: string | null;
13
+ maybe: string | null;
14
+ }
15
+ export declare function secretRules(command: string, cwd?: string | null): SecretRulesVerdict;
12
16
  export declare function waiting(model: SliccModel | null, now: number): Approval[];
13
17
  export declare class SliccApprovals extends ModelElement {
14
18
  #private;
@@ -9,6 +9,7 @@ import '@adobe/spectrum-wc-icons/swc-icon-alert-triangle.js';
9
9
  import '@adobe/spectrum-wc-icons/swc-icon-camera.js';
10
10
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-down.js';
11
11
  import '@adobe/spectrum-wc-icons/swc-icon-chevron-left.js';
12
+ import '@adobe/spectrum-wc-icons/swc-icon-chevron-right.js';
12
13
  import '@adobe/spectrum-wc-icons/swc-icon-close.js';
13
14
  import '@adobe/spectrum-wc-icons/swc-icon-code.js';
14
15
  import '@adobe/spectrum-wc-icons/swc-icon-copy.js';
@@ -32,6 +33,7 @@ export declare function since(at: number, now?: number): string;
32
33
  export declare function describe(action: BrowserAction): string;
33
34
  export declare const refresh = 10000;
34
35
  export declare const fresh = 3000;
36
+ export declare const actionPage = 50;
35
37
  export declare class SliccBrowser extends ModelElement {
36
38
  #private;
37
39
  static properties: {
@@ -1,13 +1,14 @@
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';
4
+ export type ApprovalScenario = 'agent' | 'user' | 'many' | 'follower' | 'fail' | 'soon' | 'elsewhere' | 'withdrawn' | 'secrets' | 'none';
5
5
  export declare function approvalFixtures(scenario: ApprovalScenario, now?: number): Approval[];
6
6
  export declare class DummyApprovals extends Emitter<ApprovalsEvents> implements ApprovalsPort {
7
7
  #private;
8
8
  decisions: Array<[string, ApprovalDecision]>;
9
9
  decide?: (id: string, decision: ApprovalDecision) => Promise<void>;
10
10
  constructor(scenario: ApprovalScenario, time: Clock);
11
+ raise(approval: Approval): void;
11
12
  end(id: string, reason: ApprovalEnd): void;
12
13
  list(): readonly Approval[];
13
14
  }
@@ -4,6 +4,11 @@ import type { Clock } from './clock.js';
4
4
  export type BrowserScenario = 'idle' | 'driving' | 'off';
5
5
  export type ActionDraft = Omit<BrowserAction, 'id' | 'at' | 'status'> & Partial<Pick<BrowserAction, 'status' | 'at'>>;
6
6
  export declare function page(tab: BrowserTab, mark?: number): string;
7
+ export declare const actionLimits: {
8
+ perTab: number;
9
+ total: number;
10
+ age: number;
11
+ };
7
12
  export declare function browserHistory(scenario: BrowserScenario, now?: number): ActionDraft[];
8
13
  export declare const drive: readonly ActionDraft[];
9
14
  export declare class DummyBrowser extends Emitter<BrowserEvents> implements BrowserPort {
@@ -1,7 +1,7 @@
1
1
  export type { ApprovalScenario } from './dummy/approvals.js';
2
2
  export { approvalFixtures, DummyApprovals } from './dummy/approvals.js';
3
3
  export type { ActionDraft, BrowserScenario } from './dummy/browser.js';
4
- export { browserHistory, DummyBrowser, page } from './dummy/browser.js';
4
+ export { actionLimits, browserHistory, DummyBrowser, page } from './dummy/browser.js';
5
5
  export type { ChangesScenario } from './dummy/changes.js';
6
6
  export { DummyChanges } from './dummy/changes.js';
7
7
  export type { DummyMount, MountScenario } from './dummy/files.js';
@@ -18,6 +18,8 @@ import { SliccVaultButton } from './app/vault.js';
18
18
  import { SliccCodeView, SliccDiffView } from './components/code-view.js';
19
19
  import { SliccDock } from './components/dock.js';
20
20
  import { SliccFileTree } from './components/file-tree.js';
21
+ export type { SecretRulesVerdict } from './app/approvals.js';
22
+ export { secretRules } from './app/approvals.js';
21
23
  export type { Color } from './app/base.js';
22
24
  export { resolveColor } from './app/base.js';
23
25
  export type { ConfirmOptions, ConfirmVariant, PromptOptions } from './app/confirm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-spectrum",
3
- "version": "1.68.3",
3
+ "version": "1.69.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",
@@ -72,9 +72,9 @@
72
72
  "devDependencies": {
73
73
  "@adobe/spectrum-wc": "2.0.0-beta.4",
74
74
  "@adobe/spectrum-wc-icons": "2.0.0-beta.4",
75
- "@ai-ecoverse/slicc-kernel": "1.82.0",
75
+ "@ai-ecoverse/slicc-kernel": "1.85.1",
76
76
  "@ai-ecoverse/slicc-shared-web": "1.13.1",
77
- "@ai-ecoverse/slicc-vault": "1.9.0",
77
+ "@ai-ecoverse/slicc-vault": "1.9.1",
78
78
  "@ai-ecoverse/wasm-bash": "5.3.0-18",
79
79
  "@ai-ecoverse/wasm-coreutils": "9.7.0-3",
80
80
  "@biomejs/biome": "2.5.15",