@ai-ecoverse/slicc-agent 6.19.5 → 6.19.6

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,6 +1,7 @@
1
1
  import type { Context } from '@earendil-works/chord';
2
2
  import type { Conversation, Harness } from '@earendil-works/pi-durable';
3
3
  import type { ExecutionEnv } from '@earendil-works/pi-durable/env';
4
+ import type { InheritedTaint } from '../guests/guard.ts';
4
5
  import type { Activity } from '../kernel/activity.ts';
5
6
  import type { Jobs } from '../kernel/jobs.ts';
6
7
  import { type Attachment } from './attachment.ts';
@@ -37,6 +38,7 @@ export interface WebhookDelivery {
37
38
  body: unknown;
38
39
  verified?: boolean;
39
40
  attachment?: Attachment;
41
+ taints?: readonly InheritedTaint[];
40
42
  }
41
43
  export declare function withAttachment(delivery: WebhookDelivery, fetcher: typeof fetch | undefined): Promise<WebhookDelivery>;
42
44
  export interface LickSources {
@@ -3,6 +3,7 @@ import type { Harness } from '@earendil-works/pi-durable';
3
3
  import type { ExecutionEnv } from '@earendil-works/pi-durable/env';
4
4
  import type { Agents, AgentsState } from '../agents.ts';
5
5
  import type { InheritedTaint } from '../guests/guard.ts';
6
+ import type { Lineage } from '../kernel/lineage.ts';
6
7
  import { type Layout } from '../layout.ts';
7
8
  import type { Licks } from '../licks/licks.ts';
8
9
  import { type WebhookDelivery } from '../licks/sources.ts';
@@ -68,7 +69,7 @@ export declare function last(parsed: Flags, flag: string): string | undefined;
68
69
  export declare class CallerError extends Error {
69
70
  }
70
71
  export declare function taintsOf(deps: Deps, request: Request, who: Caller, context: Context): Promise<InheritedTaint[]>;
71
- export declare function callerOf(agents: Agents, request: Request): Caller;
72
+ export declare function callerOf(agents: Agents, request: Request, lineage: Lineage | undefined): Caller;
72
73
  export declare function readText(deps: Deps, value: string, request: Request, context: Context): Promise<string>;
73
74
  export declare function prompts(deps: Deps, argv: readonly string[], request: Request, context: Context): Promise<string[]>;
74
75
  export type Choice = {
@@ -1,11 +1,13 @@
1
1
  import type { Context } from '@earendil-works/chord';
2
2
  import { type ConversationId, type Extension, type Submission, type Tx } from '@earendil-works/pi-durable';
3
- import { type ScoopRecord } from '../agents.ts';
3
+ import { type AgentsState, type ScoopRecord } from '../agents.ts';
4
+ import { type InheritedTaint } from '../guests/guard.ts';
4
5
  import { type Layout } from '../layout.ts';
5
6
  import type { LickEvent } from '../licks/licks.ts';
6
7
  import { type ScoopsHost } from './service.ts';
7
8
  export declare const PREVIEW = 1000;
8
9
  type Lookup = () => Promise<ScoopsHost>;
10
+ export declare function scoopTainted(host: Pick<ScoopsHost, 'harness'>, state: Readonly<AgentsState>, scoops: readonly string[], event: LickEvent, context: Context, extra?: readonly InheritedTaint[]): Promise<LickEvent>;
9
11
  export declare function scoopFacts(record: Pick<ScoopRecord, 'name' | 'folder' | 'role'> & {
10
12
  cone?: string;
11
13
  }, layout?: Layout): string;
@@ -37,6 +39,7 @@ export declare function waitTask(lookup: Lookup): import("@earendil-works/pi-dur
37
39
  scoops: string[];
38
40
  cone: string;
39
41
  deadline: number;
42
+ taints?: InheritedTaint[];
40
43
  }, {
41
44
  phase: 'start';
42
45
  } | {
@@ -63,6 +66,7 @@ export declare function scoopTasks(lookup: Lookup): {
63
66
  scoops: string[];
64
67
  cone: string;
65
68
  deadline: number;
69
+ taints?: InheritedTaint[];
66
70
  }, {
67
71
  phase: 'start';
68
72
  } | {
@@ -126,7 +126,8 @@ export declare function agentChange(request: SpawnRequest, folder: string, host:
126
126
  export declare function askerName(state: Readonly<AgentsState>, asker: string | null): string;
127
127
  export declare function createScoops(host: Promise<ScoopsHost>, tasks: () => ScoopTasks): {
128
128
  detach: (made: readonly number[], target: string, context: Context) => Promise<void>;
129
- note: (id: string, text: string, context: Context) => Promise<Answer>;
129
+ note: (id: string, text: string, taints: readonly InheritedTaint[], context: Context) => Promise<Answer>;
130
+ lineage: (pid: number | null) => Promise<import("../kernel/lineage.ts").Lineage | undefined>;
130
131
  spawn: (request: SpawnRequest, context: Context) => Promise<Answer>;
131
132
  feed: (id: string, prompt: string, options: FeedOptions, context: Context) => Promise<Answer>;
132
133
  stop: (id: string, fromAgent: boolean, context: Context) => Promise<Answer>;
@@ -135,7 +136,7 @@ export declare function createScoops(host: Promise<ScoopsHost>, tasks: () => Sco
135
136
  list: (coneId: string | null, context: Context) => Promise<ScoopSummary[]>;
136
137
  busy: (conversation: number, context: Context) => Promise<boolean>;
137
138
  working: (ids: readonly string[], context: Context) => Promise<string[]>;
138
- notifyWhenDone: (coneId: string, ids: string[], deadline: number, context: Context) => Promise<void>;
139
+ notifyWhenDone: (coneId: string, ids: string[], deadline: number, taints: readonly InheritedTaint[], context: Context) => Promise<void>;
139
140
  };
140
141
  export declare function modelOf(value: string | undefined): {
141
142
  provider: string;
@@ -1,5 +1,5 @@
1
1
  import type { Context } from '@earendil-works/chord';
2
- import { type Harness } from '@earendil-works/pi-durable';
2
+ import type { Harness } from '@earendil-works/pi-durable';
3
3
  import { type AgentsState } from '../agents.ts';
4
4
  import { type InheritedTaint } from '../guests/guard.ts';
5
5
  type Reader = Pick<Harness, 'submission' | 'snapshot'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-agent",
3
- "version": "6.19.5",
3
+ "version": "6.19.6",
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
  "devDependencies": {
68
68
  "@ai-ecoverse/slicc-kernel": "1.143.5",
69
69
  "@ai-ecoverse/slicc-scrub": "1.0.0",
70
- "@ai-ecoverse/slicc-shared-web": "1.30.4",
70
+ "@ai-ecoverse/slicc-shared-web": "1.30.5",
71
71
  "@ai-ecoverse/slicc-spectrum": "1.104.3",
72
72
  "@ai-ecoverse/wasi-fnox": "1.39.0-6",
73
73
  "@ai-ecoverse/wasm-bash": "5.3.0-23",