@ai-ecoverse/slicc-agent 3.22.0 → 3.24.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.
- package/README.md +29 -16
- package/dist/agents.js.map +2 -2
- package/dist/freezer/index.js +255 -71
- package/dist/freezer/index.js.map +3 -3
- package/dist/host.js +3 -0
- package/dist/host.js.map +2 -2
- package/dist/spectrum/agent-port.js +10 -2
- package/dist/spectrum/agent-port.js.map +2 -2
- package/dist/spectrum/messages.js +13 -0
- package/dist/spectrum/messages.js.map +2 -2
- package/dist/system.js +1 -1
- package/dist/system.js.map +1 -1
- package/dist/types/agents.d.ts +2 -0
- package/dist/types/freezer/index.d.ts +12 -4
- package/package.json +5 -5
|
@@ -7,6 +7,7 @@ export type Answer = {
|
|
|
7
7
|
code: number;
|
|
8
8
|
out: string;
|
|
9
9
|
};
|
|
10
|
+
export type ConversationKind = 'cone' | 'scoop' | 'agent';
|
|
10
11
|
export interface FrozenCone {
|
|
11
12
|
id: string;
|
|
12
13
|
name: string;
|
|
@@ -14,7 +15,11 @@ export interface FrozenCone {
|
|
|
14
15
|
model: string;
|
|
15
16
|
messages: number;
|
|
16
17
|
frozenAt: number;
|
|
18
|
+
kind: ConversationKind;
|
|
19
|
+
live: boolean;
|
|
20
|
+
thawedAs: string | null;
|
|
17
21
|
}
|
|
22
|
+
export declare const THAWED_KIND = "slicc.thawed";
|
|
18
23
|
export type Frozen = {
|
|
19
24
|
id: string;
|
|
20
25
|
name: string;
|
|
@@ -23,7 +28,7 @@ export type Frozen = {
|
|
|
23
28
|
export interface FreezerAttach {
|
|
24
29
|
harness: Harness;
|
|
25
30
|
agents: Agents;
|
|
26
|
-
env: Pick<ExecutionEnv, 'remove'>;
|
|
31
|
+
env: Pick<ExecutionEnv, 'remove' | 'exists'>;
|
|
27
32
|
title?: (transcript: string, model: string, context: Context) => Promise<string | undefined>;
|
|
28
33
|
extract?: (conversation: number, tail: number, context: Context, cone: string) => Promise<unknown>;
|
|
29
34
|
now?: () => number;
|
|
@@ -34,17 +39,20 @@ export interface FreezerRuntime {
|
|
|
34
39
|
newChat(agentId: string, context: Context): Promise<string | null>;
|
|
35
40
|
thaw(id: string, context: Context): Promise<string>;
|
|
36
41
|
discard(id: string, context: Context): Promise<void>;
|
|
42
|
+
refresh(): Promise<readonly FrozenCone[]>;
|
|
43
|
+
touch(): void;
|
|
37
44
|
frozenTarget(target: LickTarget): Frozen | undefined;
|
|
38
45
|
command(argv: readonly string[], caller: string | null, context: Context): Promise<Answer>;
|
|
39
46
|
close(): void;
|
|
40
47
|
}
|
|
41
|
-
export declare const USAGE = "usage:\n freezer list every
|
|
48
|
+
export declare const USAGE = "usage:\n freezer list every conversation: id, kind, name, title, messages, when\n freezer show <id> a conversation as Markdown\n freezer thaw <id> continue a stopped conversation as a cone\n\nDelete a cone, or start a new conversation, from the chat toolbar or the command palette.\n";
|
|
49
|
+
export declare const TOUCH_MS = 500;
|
|
42
50
|
export declare function modelName(model: {
|
|
43
51
|
provider: string;
|
|
44
52
|
modelId: string;
|
|
45
53
|
} | undefined): string;
|
|
46
54
|
export declare function firstLine(entries: readonly EntryRecord[]): string;
|
|
47
|
-
export declare function markdown(record: FrozenRecord, entries: readonly EntryRecord[]): string;
|
|
48
|
-
export declare function
|
|
55
|
+
export declare function markdown(record: Pick<FrozenRecord, 'title' | 'name' | 'model' | 'frozenAt'>, entries: readonly EntryRecord[]): string;
|
|
56
|
+
export declare function thawedNote(kind: ConversationKind, name: string, folder: string, kept: boolean): string;
|
|
49
57
|
export declare function frozenTarget(state: Readonly<AgentsState>, target: LickTarget): Frozen | undefined;
|
|
50
58
|
export declare function attachFreezer(options: FreezerAttach): FreezerRuntime;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.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",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"release": "semantic-release"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@ai-ecoverse/slicc-kernel": "1.
|
|
64
|
+
"@ai-ecoverse/slicc-kernel": "1.26.3",
|
|
65
65
|
"@ai-ecoverse/slicc-shared-web": "1.11.0",
|
|
66
|
-
"@ai-ecoverse/slicc-spectrum": "1.
|
|
66
|
+
"@ai-ecoverse/slicc-spectrum": "1.39.0",
|
|
67
67
|
"@ai-ecoverse/wasm-bash": "5.3.0-8",
|
|
68
68
|
"@ai-ecoverse/wasm-coreutils": "9.7.0-3",
|
|
69
69
|
"@ai-ecoverse/wasm-git": "2.55.0-9",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"@sqlite.org/sqlite-wasm": "3.53.4-build2"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@ai-ecoverse/slicc-kernel": ">=1.
|
|
92
|
-
"@ai-ecoverse/slicc-spectrum": "^1.
|
|
91
|
+
"@ai-ecoverse/slicc-kernel": ">=1.26.3 <2",
|
|
92
|
+
"@ai-ecoverse/slicc-spectrum": "^1.39.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"@ai-ecoverse/slicc-spectrum": {
|