@ai-ecoverse/slicc-agent 4.3.0 → 4.3.1

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.
@@ -2,6 +2,7 @@ import type { CredentialStore, Provider } from '@earendil-works/pi-ai';
2
2
  import { type MutableModels } from '@earendil-works/pi-ai/models';
3
3
  import { type Budget } from './adobe.ts';
4
4
  import type { McpAccounts } from './mcp/index.ts';
5
+ import type { KeysMoved } from './secrets/legacy.ts';
5
6
  import type { VaultRecords } from './secrets/records.ts';
6
7
  import type { PlainStore } from './secrets/store.ts';
7
8
  import type { AccountField, AgentSettings } from './services.ts';
@@ -37,4 +38,5 @@ export declare function createAgentSettings(models: MutableModels, sources: Sett
37
38
  usage?: UsageReader;
38
39
  every?: number;
39
40
  mcp?: McpAccounts;
41
+ moved?: KeysMoved;
40
42
  }): Promise<AgentSettings>;
@@ -4,6 +4,7 @@ import { AgentAdapter } from './agent-port.ts';
4
4
  import { ChangesAdapter } from './changes-port.ts';
5
5
  import { MemoryAdapter } from './memory-port.ts';
6
6
  import { MonitorAdapter } from './monitor-port.ts';
7
+ import { NoticesAdapter } from './notices-port.ts';
7
8
  import { PageAdapter, type PageOptions } from './page-port.ts';
8
9
  import { type Login, SettingsAdapter } from './settings-port.ts';
9
10
  import { SprinkleAdapter } from './sprinkle-port.ts';
@@ -13,6 +14,7 @@ export { ChangesAdapter, type ChangesEvents } from './changes-port.ts';
13
14
  export { MemoryAdapter } from './memory-port.ts';
14
15
  export { assistant, errorAction, errorPart, isBusy, queued, textOf, toMessages, } from './messages.ts';
15
16
  export { MonitorAdapter, type MonitorAdapterOptions, type MonitorInput, monitorSnapshot, } from './monitor-port.ts';
17
+ export { KEYS_MOVED, movedNotice, NoticesAdapter } from './notices-port.ts';
16
18
  export { PageAdapter, type PageDocument, type PageOptions, type PageRun, type PageTarget, } from './page-port.ts';
17
19
  export { type Login, SETTINGS_KEY, SettingsAdapter } from './settings-port.ts';
18
20
  export { SprinkleAdapter } from './sprinkle-port.ts';
@@ -32,5 +34,6 @@ export declare function createAgentModel(connection: AgentConnection, options?:
32
34
  memory: MemoryAdapter;
33
35
  changes: ChangesAdapter;
34
36
  monitor: MonitorAdapter;
37
+ notices: NoticesAdapter;
35
38
  page: PageAdapter | null;
36
39
  };
@@ -36,6 +36,8 @@ interface ModelMessage {
36
36
  }
37
37
  export declare function textOf(content: ModelMessage['content']): string;
38
38
  export declare function fromPatch(patch: string): ToolCall['diff'];
39
+ export declare const CONNECT_IT = "Connect it in Settings \u203A Accounts.";
40
+ export declare function providerName(provider: string | undefined, fallback?: string): string;
39
41
  export declare function errorPart(error: string, provider?: string): MessagePart;
40
42
  export declare function errorAction(message: string): ErrorAction;
41
43
  export declare function assistant(id: string, message: ModelMessage, status?: AssistantStatus): AssistantMessage;
@@ -0,0 +1,15 @@
1
+ import type { Notice, NoticesPort } from '@ai-ecoverse/slicc-spectrum/ui';
2
+ import type { AgentSettings } from '../services.ts';
3
+ import { type Report } from './attempt.ts';
4
+ import { Emitter } from './emitter.ts';
5
+ export declare const KEYS_MOVED = "keys-moved";
6
+ export declare function movedNotice(accounts: readonly string[]): Notice;
7
+ export declare class NoticesAdapter extends Emitter<{
8
+ notices: readonly Notice[];
9
+ }> implements NoticesPort {
10
+ #private;
11
+ constructor(settings: AgentSettings, report: Report);
12
+ list(): readonly Notice[];
13
+ act(): Promise<void>;
14
+ dismiss(id: string): void;
15
+ }
@@ -0,0 +1,15 @@
1
+ import type { ConversationView, EntryRecord } from '@earendil-works/pi-durable';
2
+ export type Run = {
3
+ name: string;
4
+ input: string;
5
+ output: string;
6
+ done: boolean;
7
+ };
8
+ export type Cluster = {
9
+ runs: Run[];
10
+ at: number;
11
+ settled: boolean;
12
+ };
13
+ export declare function callIdsOf(views: readonly ConversationView[]): Set<string>;
14
+ export declare function clusterOf(entries: readonly EntryRecord[], callIds: readonly string[]): Cluster | undefined;
15
+ export declare function describe(runs: readonly Run[]): string;
@@ -1,5 +1,5 @@
1
1
  import { type Context, type ReplicatedState } from '@earendil-works/chord';
2
- import { type ConversationView, type EntryRecord, type Harness } from '@earendil-works/pi-durable';
2
+ import { type ConversationView, type Harness } from '@earendil-works/pi-durable';
3
3
  import type { Agents } from '../agents.ts';
4
4
  import type { VaultState } from '../secrets/vault.ts';
5
5
  import { type Labeler } from './generate.ts';
@@ -16,14 +16,6 @@ export declare function visibleLabels(labels: ReplicatedState<Record<string, str
16
16
  };
17
17
  export declare function watchLabel(labels: ReplicatedState<Record<string, string>>, waitMs?: number): (_agentId: string, callIds: readonly string[]) => Promise<string | null>;
18
18
  export declare function cleanLabel(text: string): string;
19
- export type Run = {
20
- name: string;
21
- input: string;
22
- output: string;
23
- at: number;
24
- };
25
- export declare function clusterOf(entries: readonly EntryRecord[], callIds: readonly string[]): Run[] | undefined;
26
- export declare function describe(runs: readonly Run[]): string;
27
19
  export interface LabelsAttach {
28
20
  harness: Pick<Harness, 'commit'>;
29
21
  agents: Pick<Agents, 'conversation'>;
@@ -31,6 +23,8 @@ export interface LabelsAttach {
31
23
  vault?: Pick<ReplicatedState<VaultState>, 'value'>;
32
24
  now?: () => number;
33
25
  perMinute?: number;
26
+ pollMs?: number;
27
+ settleMs?: number;
34
28
  }
35
29
  export interface LabelsRuntime {
36
30
  labels: ReplicatedState<Record<string, string>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-agent",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "SLICC's agent core on pi durable: an agent worker, session storage, remoting and pi extensions",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -63,8 +63,8 @@
63
63
  "devDependencies": {
64
64
  "@ai-ecoverse/slicc-kernel": "1.47.1",
65
65
  "@ai-ecoverse/slicc-scrub": "1.0.0",
66
- "@ai-ecoverse/slicc-shared-web": "1.13.3",
67
- "@ai-ecoverse/slicc-spectrum": "1.69.2",
66
+ "@ai-ecoverse/slicc-shared-web": "1.14.0",
67
+ "@ai-ecoverse/slicc-spectrum": "1.72.0",
68
68
  "@ai-ecoverse/wasm-bash": "5.3.0-18",
69
69
  "@ai-ecoverse/wasm-coreutils": "9.12.0-5",
70
70
  "@ai-ecoverse/wasm-git": "2.55.0-15",
@@ -74,7 +74,7 @@
74
74
  "fake-indexeddb": "6.2.5",
75
75
  "lefthook": "2.1.17",
76
76
  "monocart-coverage-reports": "2.13.2",
77
- "playwright-core": "1.63.0",
77
+ "playwright-core": "1.64.0",
78
78
  "semantic-release": "25.0.9",
79
79
  "typescript": "7.0.2"
80
80
  },