@ai-ecoverse/slicc-agent 6.9.0 → 6.11.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,4 +1,8 @@
1
1
  import type { Provider } from '@earendil-works/pi-ai';
2
+ export interface FieldOption {
3
+ value: string;
4
+ label: string;
5
+ }
2
6
  export interface FieldInput {
3
7
  name: string;
4
8
  label: string;
@@ -6,6 +10,8 @@ export interface FieldInput {
6
10
  placeholder?: string;
7
11
  help?: string;
8
12
  customBase?: true;
13
+ options?: readonly FieldOption[];
14
+ value?: string;
9
15
  }
10
16
  export interface FieldSpec extends FieldInput {
11
17
  env(value: string): Record<string, string> | string;
@@ -22,6 +28,7 @@ export interface KeyProvider {
22
28
  export declare function httpsBase(value: string): URL | undefined;
23
29
  export declare const AZURE = "azure";
24
30
  export declare function azureBase(env: Readonly<Record<string, string>>): string | undefined;
31
+ export declare const DEFAULT_REGION = "us-west-2";
25
32
  export declare const REGION_FIELD: FieldSpec;
26
33
  export declare const KEY_PROVIDERS: readonly KeyProvider[];
27
34
  export type ProviderAuth = 'api-key' | 'oauth' | 'fields' | 'local';
@@ -358,6 +358,11 @@ export interface AccountField {
358
358
  placeholder?: string;
359
359
  help?: string;
360
360
  customBase?: true;
361
+ options?: readonly {
362
+ value: string;
363
+ label: string;
364
+ }[];
365
+ value?: string;
361
366
  }
362
367
  export interface ProviderOption {
363
368
  id: string;
@@ -400,8 +405,9 @@ export interface AgentSettings {
400
405
  connect(providerId: string, secret: string | null, fields: Record<string, string> | null, context: Context): Promise<void>;
401
406
  disconnect(providerId: string, context: Context): Promise<void>;
402
407
  remove(providerId: string, context: Context): Promise<void>;
408
+ serverUrl(providerId: string, context: Context): Promise<string | null>;
403
409
  signIn(providerId: string, context: Context): Promise<SignIn | McpSignIn | null>;
404
410
  dismissMoved(context: Context): Promise<void>;
405
411
  }
406
- export declare const SETTINGS_METHODS: ("connect" | "disconnect" | "dismissMoved" | "remove" | "signIn")[];
412
+ export declare const SETTINGS_METHODS: ("connect" | "disconnect" | "dismissMoved" | "remove" | "serverUrl" | "signIn")[];
407
413
  export declare const AgentSettings: RemoteContract;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-agent",
3
- "version": "6.9.0",
3
+ "version": "6.11.0",
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",
@@ -67,7 +67,7 @@
67
67
  "@ai-ecoverse/slicc-kernel": "1.128.0",
68
68
  "@ai-ecoverse/slicc-scrub": "1.0.0",
69
69
  "@ai-ecoverse/slicc-shared-web": "1.24.2",
70
- "@ai-ecoverse/slicc-spectrum": "1.90.0",
70
+ "@ai-ecoverse/slicc-spectrum": "1.92.0",
71
71
  "@ai-ecoverse/wasm-bash": "5.3.0-20",
72
72
  "@ai-ecoverse/wasm-coreutils": "9.12.0-10",
73
73
  "@ai-ecoverse/wasm-git": "2.55.0-17",