@ai-ecoverse/slicc-agent 6.19.5 → 6.19.7
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 +3 -3
- package/dist/guests/guard.js +27 -2
- package/dist/guests/guard.js.map +2 -2
- package/dist/kernel/groups.js +5 -1
- package/dist/kernel/groups.js.map +2 -2
- package/dist/kernel/lineage.js +54 -0
- package/dist/kernel/lineage.js.map +7 -0
- package/dist/licks/licks.js +19 -3
- package/dist/licks/licks.js.map +2 -2
- package/dist/licks/sources.js +2 -1
- package/dist/licks/sources.js.map +2 -2
- package/dist/scoops/cli.js +66 -19
- package/dist/scoops/cli.js.map +2 -2
- package/dist/scoops/extension.js +44 -16
- package/dist/scoops/extension.js.map +2 -2
- package/dist/scoops/service.js +8 -6
- package/dist/scoops/service.js.map +2 -2
- package/dist/scoops/taints.js +2 -6
- package/dist/scoops/taints.js.map +2 -2
- package/dist/types/guests/guard.d.ts +5 -0
- package/dist/types/kernel/client.d.ts +2 -0
- package/dist/types/kernel/groups.d.ts +3 -1
- package/dist/types/kernel/lineage.d.ts +12 -0
- package/dist/types/licks/licks.d.ts +3 -0
- package/dist/types/licks/sources.d.ts +2 -0
- package/dist/types/scoops/cli.d.ts +2 -1
- package/dist/types/scoops/extension.d.ts +5 -1
- package/dist/types/scoops/service.d.ts +3 -2
- package/dist/types/scoops/taints.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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 {
|
|
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.
|
|
3
|
+
"version": "6.19.7",
|
|
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.
|
|
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",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"typescript": "7.0.2"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@ai-ecoverse/slicc-browsers": "1.
|
|
88
|
+
"@ai-ecoverse/slicc-browsers": "1.17.0",
|
|
89
89
|
"@ai-ecoverse/slicc-vault": "1.15.3",
|
|
90
90
|
"@aws-sdk/middleware-websocket": "^3.972.54",
|
|
91
91
|
"@earendil-works/chord": "1.3.0",
|