@ai-ecoverse/slicc-agent 3.17.1 → 3.18.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 +22 -2
- package/bin/agent +1 -1
- package/dist/agents.js +8 -5
- package/dist/agents.js.map +2 -2
- package/dist/client.js +3 -1
- package/dist/client.js.map +2 -2
- package/dist/control.js +17 -1
- package/dist/control.js.map +2 -2
- package/dist/freezer/index.js +272 -0
- package/dist/freezer/index.js.map +7 -0
- package/dist/freezer/title.js +40 -0
- package/dist/freezer/title.js.map +7 -0
- package/dist/gelatiere/index.js +1 -1
- package/dist/gelatiere/index.js.map +2 -2
- package/dist/host.js +5 -2
- package/dist/host.js.map +2 -2
- package/dist/licks/licks.js +20 -1
- package/dist/licks/licks.js.map +2 -2
- package/dist/main.js +13 -1
- package/dist/main.js.map +2 -2
- package/dist/memory/extract.js +2 -2
- package/dist/memory/extract.js.map +2 -2
- package/dist/memory/index.js +1 -0
- package/dist/memory/index.js.map +2 -2
- package/dist/scoops/cli.js +18 -5
- package/dist/scoops/cli.js.map +2 -2
- package/dist/scoops/index.js +3 -2
- package/dist/scoops/index.js.map +2 -2
- package/dist/scoops/requests.js +1 -1
- package/dist/scoops/requests.js.map +2 -2
- package/dist/services.js.map +2 -2
- package/dist/spectrum/agent-port.js +48 -7
- package/dist/spectrum/agent-port.js.map +2 -2
- package/dist/spectrum/index.js +1 -1
- package/dist/spectrum/index.js.map +2 -2
- package/dist/sprinkles/index.js +15 -6
- package/dist/sprinkles/index.js.map +2 -2
- package/dist/types/agents.d.ts +14 -0
- package/dist/types/client.d.ts +2 -0
- package/dist/types/control.d.ts +2 -1
- package/dist/types/freezer/index.d.ts +49 -0
- package/dist/types/freezer/title.d.ts +6 -0
- package/dist/types/host.d.ts +2 -0
- package/dist/types/licks/licks.d.ts +7 -0
- package/dist/types/memory/extract.d.ts +1 -1
- package/dist/types/memory/index.d.ts +1 -0
- package/dist/types/scoops/cli.d.ts +3 -1
- package/dist/types/scoops/index.d.ts +1 -0
- package/dist/types/scoops/requests.d.ts +1 -1
- package/dist/types/services.d.ts +6 -0
- package/dist/types/spectrum/agent-port.d.ts +8 -4
- package/dist/types/spectrum/index.d.ts +3 -2
- package/dist/types/sprinkles/index.d.ts +2 -1
- package/package.json +1 -1
- package/packages/vfs-root/gelatiere/GELATIERE.md +1 -0
|
@@ -2,9 +2,12 @@ import type { Agent, AgentEvents, AgentPort, FrozenCone, Message, Outgoing, Slas
|
|
|
2
2
|
import type { AgentConnection } from '../client.ts';
|
|
3
3
|
import { Emitter } from './emitter.ts';
|
|
4
4
|
export declare const CONE = "cone";
|
|
5
|
+
export type NewChat = 'freeze' | 'reset';
|
|
5
6
|
export declare class AgentAdapter extends Emitter<AgentEvents> implements AgentPort {
|
|
6
7
|
#private;
|
|
7
|
-
constructor(connection: AgentConnection
|
|
8
|
+
constructor(connection: AgentConnection, options?: {
|
|
9
|
+
newChat?: NewChat;
|
|
10
|
+
});
|
|
8
11
|
ready(): Promise<void>;
|
|
9
12
|
list(): readonly Agent[];
|
|
10
13
|
active(): string;
|
|
@@ -20,7 +23,8 @@ export declare class AgentAdapter extends Emitter<AgentEvents> implements AgentP
|
|
|
20
23
|
answer(): void;
|
|
21
24
|
resolveLick(agentId: string, messageId: string, state: 'confirmed' | 'dismissed'): void;
|
|
22
25
|
compact(): void;
|
|
23
|
-
clear(): void;
|
|
26
|
+
clear(agentId?: string): void;
|
|
27
|
+
freeze(agentId?: string): void;
|
|
24
28
|
setModel(agentId: string, model: string): void;
|
|
25
29
|
setThinking(agentId: string, level: Thinking): void;
|
|
26
30
|
older(): Promise<readonly Message[]>;
|
|
@@ -29,6 +33,6 @@ export declare class AgentAdapter extends Emitter<AgentEvents> implements AgentP
|
|
|
29
33
|
drop(agentId: string): Promise<void>;
|
|
30
34
|
createCone(name: string): Promise<Agent>;
|
|
31
35
|
frozen(): readonly FrozenCone[];
|
|
32
|
-
thaw(): Agent | null;
|
|
33
|
-
discard(): void;
|
|
36
|
+
thaw(id: string): Agent | null;
|
|
37
|
+
discard(id: string): void;
|
|
34
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AgentConnection } from '../client.ts';
|
|
2
|
-
import { AgentAdapter } from './agent-port.ts';
|
|
2
|
+
import { AgentAdapter, type NewChat } from './agent-port.ts';
|
|
3
3
|
import { MemoryAdapter } from './memory-port.ts';
|
|
4
4
|
import { type Login, SettingsAdapter } from './settings-port.ts';
|
|
5
5
|
import { SprinkleAdapter } from './sprinkle-port.ts';
|
|
6
6
|
import { TrayAdapter } from './tray-port.ts';
|
|
7
|
-
export { AgentAdapter, CONE } from './agent-port.ts';
|
|
7
|
+
export { AgentAdapter, CONE, type NewChat } from './agent-port.ts';
|
|
8
8
|
export { MemoryAdapter } from './memory-port.ts';
|
|
9
9
|
export { assistant, errorAction, errorPart, isBusy, queued, textOf, toMessages, } from './messages.ts';
|
|
10
10
|
export { type Login, SETTINGS_KEY, SettingsAdapter } from './settings-port.ts';
|
|
@@ -13,6 +13,7 @@ export { TrayAdapter } from './tray-port.ts';
|
|
|
13
13
|
export declare function createAgentModel(connection: AgentConnection, options?: {
|
|
14
14
|
storage?: Pick<Storage, 'getItem' | 'setItem'> | null;
|
|
15
15
|
login?: Login;
|
|
16
|
+
newChat?: NewChat;
|
|
16
17
|
}): {
|
|
17
18
|
agent: AgentAdapter;
|
|
18
19
|
settings: SettingsAdapter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Context, type JsonValue, type ReplicatedState } from '@earendil-works/chord';
|
|
2
2
|
import type { Harness } from '@earendil-works/pi-durable';
|
|
3
3
|
import type { ExecutionEnv } from '@earendil-works/pi-durable/env';
|
|
4
|
-
import type
|
|
4
|
+
import { type Agents } from '../agents.ts';
|
|
5
5
|
import type { Licks } from '../licks/licks.ts';
|
|
6
6
|
import { type Sprinkle } from './sprinkles.ts';
|
|
7
7
|
export type Answer = {
|
|
@@ -34,6 +34,7 @@ export interface SprinklesAttach {
|
|
|
34
34
|
intercept?: (id: string, payload: SprinklePayload, context: Context) => Promise<boolean>;
|
|
35
35
|
}
|
|
36
36
|
export declare const USAGE = "usage:\n sprinkle list every sprinkle in /home/sprinkles, with its owner\n sprinkle show <name> show a sprinkle in your chat\n sprinkle own <name> [<agent>] send its messages to <agent> (cone, cone-<n> or a scoop's handle)\n\nA sprinkle is an .shtml file in /home/sprinkles, as <name>.shtml or <name>/<name>.shtml.\nEvery one of them has a button in the rail; edit the file and the open panel reloads.\n";
|
|
37
|
+
export declare function ownerOf(agents: Agents, owner: string | undefined): string;
|
|
37
38
|
export declare function setupSprinkles(): {
|
|
38
39
|
attach(options: SprinklesAttach, context: Context): Promise<SprinklesRuntime>;
|
|
39
40
|
};
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ You can edit this file to change what the gelatiere does on each pass.
|
|
|
7
7
|
- `gelatiere list --all --json`: everything already suggested, and what was taken or dismissed. Never suggest a dismissed id again, and don't repeat a taken one.
|
|
8
8
|
- The installed skills: `ls ~/.pi/agent/skills ~/.agents/skills /var/lib/slicc/agent/skills 2>/dev/null`.
|
|
9
9
|
- `agent list --agents` for the roles, and `ls ~/.slicc` for schedules, watches and webhooks.
|
|
10
|
+
- `freezer list`, then `freezer show <id>` for chats frozen since your last pass (your memory notes say when that was): what the user worked on and where they got stuck.
|
|
10
11
|
2. **Think of at most three suggestions** that would help this user next week. Use these kinds:
|
|
11
12
|
- `use-case`: something SLICC can do for them that they haven't tried, with a `prompt` the cone can run as if the user typed it;
|
|
12
13
|
- `tip`: a habit or setting worth changing, with no action;
|