@deepagents/experimental 6.1.0 → 7.0.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 +151 -10
- package/dist/coding-agent-reminders/types.d.ts.map +1 -1
- package/dist/index.js +3084 -1206
- package/dist/index.js.map +4 -4
- package/dist/providers/claude/index.d.ts +4 -0
- package/dist/providers/claude/index.d.ts.map +1 -0
- package/dist/providers/claude/index.js +196 -0
- package/dist/providers/claude/index.js.map +7 -0
- package/dist/providers/claude/local-credentials.d.ts +3 -0
- package/dist/providers/claude/local-credentials.d.ts.map +1 -0
- package/dist/providers/codex/generate-via-stream.d.ts +8 -0
- package/dist/providers/codex/generate-via-stream.d.ts.map +1 -0
- package/dist/providers/codex/index.d.ts +4 -0
- package/dist/providers/codex/index.d.ts.map +1 -0
- package/dist/providers/codex/index.js +358 -0
- package/dist/providers/codex/index.js.map +7 -0
- package/dist/providers/codex/local-credentials.d.ts +4 -0
- package/dist/providers/codex/local-credentials.d.ts.map +1 -0
- package/dist/providers/language-model-provider.d.ts +5 -0
- package/dist/providers/language-model-provider.d.ts.map +1 -0
- package/dist/zukhruf/agent.d.ts +17 -2
- package/dist/zukhruf/agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts +2 -2
- package/dist/zukhruf/collaboration/agent-tool-context.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts +1807 -3
- package/dist/zukhruf/collaboration/collaboration-tools.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/spawn-agent.d.ts.map +1 -1
- package/dist/zukhruf/collaboration/wait-agent.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts +6 -7
- package/dist/zukhruf/control-plane/agent-control-plane.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts +1 -0
- package/dist/zukhruf/control-plane/agent-declaration-registry.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts +6 -3
- package/dist/zukhruf/control-plane/agent-status-projector.d.ts.map +1 -1
- package/dist/zukhruf/control-plane/agent-thread.d.ts.map +1 -1
- package/dist/zukhruf/index.d.ts +7 -3
- package/dist/zukhruf/index.d.ts.map +1 -1
- package/dist/zukhruf/index.js +3085 -1207
- package/dist/zukhruf/index.js.map +4 -4
- package/dist/zukhruf/{multi-agent-v2-config.d.ts → multi-agent-config.d.ts} +14 -9
- package/dist/zukhruf/multi-agent-config.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts +76 -0
- package/dist/zukhruf/plugins/conversation-scheduling/conversation-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts +13 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.js +999 -0
- package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +7 -0
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts +19 -0
- package/dist/zukhruf/plugins/conversation-scheduling/pg-boss.wake-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts +1305 -0
- package/dist/zukhruf/plugins/conversation-scheduling/tools.d.ts.map +1 -0
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts +12 -0
- package/dist/zukhruf/plugins/conversation-scheduling/wake-scheduler.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/index.d.ts +50 -0
- package/dist/zukhruf/plugins/http/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/index.js +618 -0
- package/dist/zukhruf/plugins/http/index.js.map +7 -0
- package/dist/zukhruf/plugins/http/parse.d.ts +3 -0
- package/dist/zukhruf/plugins/http/parse.d.ts.map +1 -0
- package/dist/zukhruf/plugins/http/validator.d.ts +64 -0
- package/dist/zukhruf/plugins/http/validator.d.ts.map +1 -0
- package/dist/zukhruf/plugins/mcp/index.d.ts +8 -0
- package/dist/zukhruf/plugins/mcp/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/mcp/index.js +25 -0
- package/dist/zukhruf/plugins/mcp/index.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/http.d.ts +45 -0
- package/dist/zukhruf/plugins/schedules/http.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/http.js +528 -0
- package/dist/zukhruf/plugins/schedules/http.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/index.d.ts +35 -0
- package/dist/zukhruf/plugins/schedules/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/index.js +1873 -0
- package/dist/zukhruf/plugins/schedules/index.js.map +7 -0
- package/dist/zukhruf/plugins/schedules/schedule-files.d.ts +6 -0
- package/dist/zukhruf/plugins/schedules/schedule-files.d.ts.map +1 -0
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts +157 -0
- package/dist/zukhruf/plugins/schedules/scheduled-tasks.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/http.d.ts +27 -0
- package/dist/zukhruf/plugins/uploads/http.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/http.js +426 -0
- package/dist/zukhruf/plugins/uploads/http.js.map +7 -0
- package/dist/zukhruf/plugins/uploads/index.d.ts +73 -0
- package/dist/zukhruf/plugins/uploads/index.d.ts.map +1 -0
- package/dist/zukhruf/plugins/uploads/index.js +247 -0
- package/dist/zukhruf/plugins/uploads/index.js.map +7 -0
- package/dist/zukhruf/queue/pg-boss-notifications.d.ts +10 -0
- package/dist/zukhruf/queue/pg-boss-notifications.d.ts.map +1 -0
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts +8 -11
- package/dist/zukhruf/queue/pg-boss.turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/queue/turn-queue.d.ts +43 -38
- package/dist/zukhruf/queue/turn-queue.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-runtime.d.ts +163 -43
- package/dist/zukhruf/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts +9 -2
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
- package/dist/zukhruf/runtime/approval-controller.d.ts +10 -25
- package/dist/zukhruf/runtime/approval-controller.d.ts.map +1 -1
- package/dist/zukhruf/runtime/compaction.d.ts +47 -0
- package/dist/zukhruf/runtime/compaction.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/change-source.d.ts +19 -0
- package/dist/zukhruf/runtime/conversation-status/change-source.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts +84 -0
- package/dist/zukhruf/runtime/conversation-status/child-progress.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts +22 -0
- package/dist/zukhruf/runtime/conversation-status/pg-boss-change-source.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts +62 -0
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -0
- package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts +20 -0
- package/dist/zukhruf/runtime/conversation-status/status-publishing-turn-queue.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/agent-skills.d.ts +22 -0
- package/dist/zukhruf/runtime/plugin/agent-skills.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts +14 -0
- package/dist/zukhruf/runtime/plugin/plugin-agents.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts +8 -0
- package/dist/zukhruf/runtime/plugin/plugin-bindings.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts +7 -0
- package/dist/zukhruf/runtime/plugin/plugin-context-composition.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts +38 -0
- package/dist/zukhruf/runtime/plugin/plugin-manager.d.ts.map +1 -0
- package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts +10 -0
- package/dist/zukhruf/runtime/plugin/plugin-tool-composition.d.ts.map +1 -0
- package/dist/zukhruf/tool.d.ts +5 -1
- package/dist/zukhruf/tool.d.ts.map +1 -1
- package/package.json +74 -6
- package/dist/zukhruf/multi-agent-v2-config.d.ts.map +0 -1
- package/dist/zukhruf/runtime/agent-skills.d.ts +0 -9
- package/dist/zukhruf/runtime/agent-skills.d.ts.map +0 -1
- package/dist/zukhruf/runtime/approval-job-id.d.ts +0 -3
- package/dist/zukhruf/runtime/approval-job-id.d.ts.map +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const childActivitySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
type: z.ZodEnum<{
|
|
5
|
+
message: "message";
|
|
6
|
+
spawn: "spawn";
|
|
7
|
+
followup: "followup";
|
|
8
|
+
interrupt: "interrupt";
|
|
9
|
+
completion: "completion";
|
|
10
|
+
}>;
|
|
11
|
+
at: z.ZodNumber;
|
|
12
|
+
actorPath: z.ZodString;
|
|
13
|
+
targetPath: z.ZodString;
|
|
14
|
+
streamId: z.ZodString;
|
|
15
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
completed: "completed";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
cancelled: "cancelled";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type ChildActivity = z.infer<typeof childActivitySchema>;
|
|
22
|
+
/** One receipt per operation kind, never a transcript or an activity log. */
|
|
23
|
+
export declare const childActivitiesSchema: z.ZodRecord<z.ZodEnum<{
|
|
24
|
+
message: "message";
|
|
25
|
+
spawn: "spawn";
|
|
26
|
+
followup: "followup";
|
|
27
|
+
interrupt: "interrupt";
|
|
28
|
+
completion: "completion";
|
|
29
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
type: z.ZodEnum<{
|
|
32
|
+
message: "message";
|
|
33
|
+
spawn: "spawn";
|
|
34
|
+
followup: "followup";
|
|
35
|
+
interrupt: "interrupt";
|
|
36
|
+
completion: "completion";
|
|
37
|
+
}>;
|
|
38
|
+
at: z.ZodNumber;
|
|
39
|
+
actorPath: z.ZodString;
|
|
40
|
+
targetPath: z.ZodString;
|
|
41
|
+
streamId: z.ZodString;
|
|
42
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
completed: "completed";
|
|
44
|
+
failed: "failed";
|
|
45
|
+
cancelled: "cancelled";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
export declare const childActivityMetadataSchema: z.ZodObject<{
|
|
49
|
+
childActivities: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
50
|
+
message: "message";
|
|
51
|
+
spawn: "spawn";
|
|
52
|
+
followup: "followup";
|
|
53
|
+
interrupt: "interrupt";
|
|
54
|
+
completion: "completion";
|
|
55
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
type: z.ZodEnum<{
|
|
58
|
+
message: "message";
|
|
59
|
+
spawn: "spawn";
|
|
60
|
+
followup: "followup";
|
|
61
|
+
interrupt: "interrupt";
|
|
62
|
+
completion: "completion";
|
|
63
|
+
}>;
|
|
64
|
+
at: z.ZodNumber;
|
|
65
|
+
actorPath: z.ZodString;
|
|
66
|
+
targetPath: z.ZodString;
|
|
67
|
+
streamId: z.ZodString;
|
|
68
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
completed: "completed";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
cancelled: "cancelled";
|
|
72
|
+
}>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
}, z.core.$loose>;
|
|
75
|
+
export interface ChildProgress {
|
|
76
|
+
chatId: string;
|
|
77
|
+
treeId: string;
|
|
78
|
+
path: string;
|
|
79
|
+
parentChatId: string;
|
|
80
|
+
declarationName: string;
|
|
81
|
+
state: 'pending' | 'queued' | 'running' | 'waitingOnApproval' | 'waitingOnUserInput' | 'completed' | 'failed' | 'interrupted';
|
|
82
|
+
activities: Partial<Record<ChildActivity['type'], ChildActivity>>;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=child-progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"child-progress.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/conversation-status/child-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;iBAQ9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;kBAGjC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEtC,CAAC;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EACD,SAAS,GACT,QAAQ,GACR,SAAS,GACT,mBAAmB,GACnB,oBAAoB,GACpB,WAAW,GACX,QAAQ,GACR,aAAa,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;CACnE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PgBoss } from 'pg-boss';
|
|
2
|
+
import type { ConversationId } from '../../mailbox/types.ts';
|
|
3
|
+
import type { ConversationStatusChangeHint, ConversationStatusChangeSource } from './change-source.ts';
|
|
4
|
+
export declare const DEFAULT_CONVERSATION_STATUS_CHANNEL = "zukhruf_conversation_status";
|
|
5
|
+
export interface PgBossConversationStatusChangeSourceOptions {
|
|
6
|
+
channel?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Conversation status hints over the pg-boss database connection.
|
|
10
|
+
*
|
|
11
|
+
* `notify` raises `pg_notify` through `executeSql`; `subscribe` uses the
|
|
12
|
+
* optional `IDatabase.listen`, which pg-boss implements for its pooled
|
|
13
|
+
* Postgres driver (dedicated client, keepalive, re-LISTEN) and for the PGlite
|
|
14
|
+
* adapter (in-process). A database without `listen` is rejected up front.
|
|
15
|
+
*/
|
|
16
|
+
export declare class PgBossConversationStatusChangeSource implements ConversationStatusChangeSource {
|
|
17
|
+
#private;
|
|
18
|
+
constructor(boss: PgBoss, options?: PgBossConversationStatusChangeSourceOptions);
|
|
19
|
+
notify(conversation: ConversationId): Promise<void>;
|
|
20
|
+
subscribe(signal: AbortSignal): Promise<AsyncIterable<ConversationStatusChangeHint>>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=pg-boss-change-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pg-boss-change-source.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/conversation-status/pg-boss-change-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,mCAAmC,gCACjB,CAAC;AAEhC,MAAM,WAAW,2CAA2C;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,qBAAa,oCAAqC,YAAW,8BAA8B;;gBAKvF,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,2CAAgD;IAMrD,MAAM,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnD,SAAS,CACb,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;CAiCxD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type ContextStore, type StreamManager } from '@deepagents/context';
|
|
2
|
+
import type { AgentDirectory } from '../../control-plane/agent-directory.ts';
|
|
3
|
+
import type { AgentThread } from '../../control-plane/agent-thread.ts';
|
|
4
|
+
import type { ConversationId } from '../../mailbox/types.ts';
|
|
5
|
+
import type { TurnQueue } from '../../queue/turn-queue.ts';
|
|
6
|
+
import type { ConversationStatusChangeSource } from './change-source.ts';
|
|
7
|
+
import { type ChildActivity, type ChildProgress } from './child-progress.ts';
|
|
8
|
+
/** Why an active conversation is not making progress on its own. */
|
|
9
|
+
export type ConversationActiveFlag = 'waitingOnApproval' | 'waitingOnUserInput';
|
|
10
|
+
/**
|
|
11
|
+
* Codex-shaped conversation status (`thread/status/changed`): a conversation
|
|
12
|
+
* is `active` while durable work is queued or running, or while its head turn
|
|
13
|
+
* waits on a host decision; `systemError` after its latest turn failed.
|
|
14
|
+
*/
|
|
15
|
+
export type ConversationStatus = {
|
|
16
|
+
type: 'idle';
|
|
17
|
+
} | {
|
|
18
|
+
type: 'active';
|
|
19
|
+
activeFlags: readonly ConversationActiveFlag[];
|
|
20
|
+
} | {
|
|
21
|
+
type: 'systemError';
|
|
22
|
+
};
|
|
23
|
+
export interface ConversationStatusChange {
|
|
24
|
+
type: 'change';
|
|
25
|
+
conversation: ConversationId;
|
|
26
|
+
status: ConversationStatus;
|
|
27
|
+
child?: ChildProgress;
|
|
28
|
+
}
|
|
29
|
+
export type ConversationStatusEvent = ConversationStatusChange | {
|
|
30
|
+
type: 'reset';
|
|
31
|
+
};
|
|
32
|
+
export interface ConversationStatusProjectorOptions {
|
|
33
|
+
store: ContextStore;
|
|
34
|
+
streams: StreamManager;
|
|
35
|
+
queue: TurnQueue;
|
|
36
|
+
directory: AgentDirectory;
|
|
37
|
+
/** Cross-process wake hints; absent means in-process changes only. */
|
|
38
|
+
changeSource?: ConversationStatusChangeSource;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Derives conversation status from durable state and publishes changes.
|
|
42
|
+
*
|
|
43
|
+
* `read` is the authority and is correct from any process. `publish` re-reads
|
|
44
|
+
* and emits only when the status differs from the last one published by this
|
|
45
|
+
* process, so callers signal "something may have changed" without tracking
|
|
46
|
+
* transitions themselves.
|
|
47
|
+
*/
|
|
48
|
+
export declare class ConversationStatusProjector {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(options: ConversationStatusProjectorOptions);
|
|
51
|
+
read(conversation: ConversationId): Promise<ConversationStatus>;
|
|
52
|
+
children(conversation: ConversationId): Promise<ChildProgress[]>;
|
|
53
|
+
/** Records successful runtime operations outside the transport mailbox. */
|
|
54
|
+
recordActivity(thread: AgentThread, activity: ChildActivity): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Re-reads the status after a local transition, emits it if it changed, and
|
|
57
|
+
* hints other processes. Never rejects.
|
|
58
|
+
*/
|
|
59
|
+
publish(conversation: ConversationId): Promise<void>;
|
|
60
|
+
subscribe(signal: AbortSignal): Promise<AsyncIterable<ConversationStatusEvent>>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=projector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projector.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/conversation-status/projector.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EA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CAClB,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,aAAa,GACtB,OAAO,CAAC,IAAI,CAAC;IAmEhB;;;OAGG;IACH,OAAO,CAAC,YAAY,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB9C,SAAS,CACb,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;CA6InD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ConversationId } from '../../mailbox/types.ts';
|
|
2
|
+
import { type ConsumeContext, type ConsumeOptions, type TurnActivity, TurnQueue, type TurnRef } from '../../queue/turn-queue.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Publishes the target conversation's status after every durable push.
|
|
5
|
+
*
|
|
6
|
+
* `push` is the single seam every queued turn crosses — host asks, spawned
|
|
7
|
+
* children, mailbox wakes, and approval recovery — so decorating it here keeps
|
|
8
|
+
* the "queued" transition visible without touching each producer.
|
|
9
|
+
*/
|
|
10
|
+
export declare class StatusPublishingTurnQueue extends TurnQueue {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(inner: TurnQueue, publish: (conversation: ConversationId) => Promise<void>);
|
|
13
|
+
push(turn: TurnRef): Promise<void>;
|
|
14
|
+
getTurnActivity(conversation: Pick<TurnRef, 'chatId' | 'userId'>): Promise<TurnActivity>;
|
|
15
|
+
getCurrentTurn(conversation: Pick<TurnRef, 'chatId' | 'userId'>): Promise<TurnRef | undefined>;
|
|
16
|
+
cancel(streamId: string): Promise<void>;
|
|
17
|
+
consume(handler: (turn: TurnRef, context: ConsumeContext) => Promise<void>, options: ConsumeOptions): Promise<AsyncDisposable>;
|
|
18
|
+
resumeParked(chatId: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=status-publishing-turn-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-publishing-turn-queue.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/conversation-status/status-publishing-turn-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,SAAS,EACT,KAAK,OAAO,EACb,MAAM,2BAA2B,CAAC;AAEnC;;;;;;GAMG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;;gBAKpD,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC;IAO3C,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAKxC,eAAe,CACtB,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAC/C,OAAO,CAAC,YAAY,CAAC;IAIf,cAAc,CACrB,YAAY,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC,GAC/C,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;IAItB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,OAAO,CACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,EAClE,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC;IAIlB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type AvailableSkill, type ContextFragment } from '@deepagents/context';
|
|
2
|
+
import type { AgentDeclaration, ZukhrufSandbox } from '../../agent.ts';
|
|
3
|
+
export interface AgentSkills {
|
|
4
|
+
available: readonly AvailableSkill[];
|
|
5
|
+
fragments: readonly ContextFragment[];
|
|
6
|
+
}
|
|
7
|
+
export interface PluginSkills {
|
|
8
|
+
available: readonly AvailableSkill[];
|
|
9
|
+
files: readonly {
|
|
10
|
+
path: string;
|
|
11
|
+
content: Buffer;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
/** Collects plugin skill sources and composes validated selections per agent. */
|
|
15
|
+
export declare class PluginSkillComposition {
|
|
16
|
+
#private;
|
|
17
|
+
add(directories: readonly (string | URL)[]): void;
|
|
18
|
+
compose(declarations: Iterable<AgentDeclaration>): ReadonlyMap<string, PluginSkills>;
|
|
19
|
+
}
|
|
20
|
+
export declare function discoverAgentSkills(sandbox: ZukhrufSandbox, signal?: AbortSignal): Promise<AgentSkills>;
|
|
21
|
+
export declare function createAgentSkills(available: readonly AvailableSkill[]): AgentSkills;
|
|
22
|
+
//# sourceMappingURL=agent-skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-skills.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/agent-skills.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IACrC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IACrC,KAAK,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACrD;AAKD,iFAAiF;AACjF,qBAAa,sBAAsB;;IAGjC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE,GAAG,IAAI;IAIjD,OAAO,CACL,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GACvC,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC;CA4FrC;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,cAAc,EAAE,GACnC,WAAW,CAIb"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AgentDeclaration } from '../../agent.ts';
|
|
2
|
+
import { AgentDeclarationRegistry } from '../../control-plane/agent-declaration-registry.ts';
|
|
3
|
+
import type { AgentPluginDefinition, AgentPluginInstance } from '../agent-runtime.ts';
|
|
4
|
+
/** Owns plugin-contributed agents, their provenance, and the combined graph. */
|
|
5
|
+
export declare class PluginAgentComposition {
|
|
6
|
+
#private;
|
|
7
|
+
readonly declarations: AgentDeclarationRegistry;
|
|
8
|
+
readonly owners: ReadonlyMap<string, string>;
|
|
9
|
+
constructor(root: AgentDeclaration, configuredRoot: AgentDeclaration, plugins: readonly {
|
|
10
|
+
readonly definition: AgentPluginDefinition;
|
|
11
|
+
readonly instance: AgentPluginInstance;
|
|
12
|
+
}[]);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=plugin-agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-agents.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/plugin-agents.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,gFAAgF;AAChF,qBAAa,sBAAsB;;IACjC,QAAQ,CAAC,YAAY,EAAE,wBAAwB,CAAC;IAChD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAG3C,IAAI,EAAE,gBAAgB,EACtB,cAAc,EAAE,gBAAgB,EAChC,OAAO,EAAE,SAAS;QAChB,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;QAC3C,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACxC,EAAE;CAwKN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentPluginBinding, AgentPluginBindings, AgentPluginDefinition } from '../agent-runtime.ts';
|
|
2
|
+
/** Validates plugin declarations and supplies each plugin's declared bindings. */
|
|
3
|
+
export declare class PluginBindings {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(definitions: readonly AgentPluginDefinition[] | undefined, bindings: readonly AgentPluginBinding[] | undefined);
|
|
6
|
+
resolve(definition: AgentPluginDefinition): AgentPluginBindings;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=plugin-bindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-bindings.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/plugin-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,kFAAkF;AAClF,qBAAa,cAAc;;gBAIvB,WAAW,EAAE,SAAS,qBAAqB,EAAE,GAAG,SAAS,EACzD,QAAQ,EAAE,SAAS,kBAAkB,EAAE,GAAG,SAAS;IA8ErD,OAAO,CAAC,UAAU,EAAE,qBAAqB,GAAG,mBAAmB;CAsBhE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Composes plugin context while reserving the runtime's own namespace. */
|
|
2
|
+
export declare class PluginContextComposition {
|
|
3
|
+
#private;
|
|
4
|
+
readonly values: Record<string, unknown>;
|
|
5
|
+
add(plugin: string, context: Readonly<Record<string, unknown>>): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=plugin-context-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-context-composition.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/plugin-context-composition.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,qBAAa,wBAAwB;;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAG9C,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;CAYtE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Telemetry } from 'ai';
|
|
2
|
+
import type { AgentDeclaration } from '../../agent.ts';
|
|
3
|
+
import { createCollaborationTools } from '../../collaboration/collaboration-tools.ts';
|
|
4
|
+
import type { AgentDeclarationRegistry } from '../../control-plane/agent-declaration-registry.ts';
|
|
5
|
+
import type { ConversationId } from '../../mailbox/types.ts';
|
|
6
|
+
import type { ResolvedMultiAgentHostConfig } from '../../multi-agent-config.ts';
|
|
7
|
+
import type { ZukhrufToolSet } from '../../tool.ts';
|
|
8
|
+
import type { AgentPluginBinding, AgentPluginDefinition, AgentPluginHost, AgentPluginInstance, AgentPluginToolContext } from '../agent-runtime.ts';
|
|
9
|
+
import { type PluginSkills } from './agent-skills.ts';
|
|
10
|
+
/** Owns plugin instances, their composed contributions, and initialization resources. */
|
|
11
|
+
export declare class PluginManager implements AsyncDisposable {
|
|
12
|
+
#private;
|
|
13
|
+
readonly collaborationTools: ReturnType<typeof createCollaborationTools>;
|
|
14
|
+
readonly declarations: AgentDeclarationRegistry;
|
|
15
|
+
readonly agentOwners: ReadonlyMap<string, string>;
|
|
16
|
+
readonly tools: ZukhrufToolSet;
|
|
17
|
+
readonly skillsByAgent: ReadonlyMap<string, PluginSkills>;
|
|
18
|
+
readonly runtimeContext: Readonly<Record<string, unknown>>;
|
|
19
|
+
constructor(root: AgentDeclaration, bindings: readonly AgentPluginBinding[] | undefined, multiAgent: ResolvedMultiAgentHostConfig);
|
|
20
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
21
|
+
get<Instance extends object>(definition: AgentPluginDefinition<Instance>): AgentPluginInstance & Instance;
|
|
22
|
+
configureTelemetry(context: AgentPluginToolContext, telemetry: AgentDeclaration['telemetry']): Omit<import("ai").TelemetryOptions, "integrations"> | {
|
|
23
|
+
integrations: Telemetry[];
|
|
24
|
+
isEnabled?: boolean;
|
|
25
|
+
recordInputs?: boolean;
|
|
26
|
+
recordOutputs?: boolean;
|
|
27
|
+
functionId?: string;
|
|
28
|
+
includeRuntimeContext?: {
|
|
29
|
+
[x: string]: boolean | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
includeToolsContext?: {} | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
get reconcilesAvailability(): boolean;
|
|
34
|
+
startWorkers(host: AgentPluginHost, workers: AsyncDisposableStack, waitForActive: boolean): Promise<void>;
|
|
35
|
+
initialize(host: AgentPluginHost): Promise<void>;
|
|
36
|
+
conversationAvailable(host: AgentPluginHost, conversation: ConversationId): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/plugin-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB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B,EAC7B,aAAa,EAAE,OAAO,GACrB,OAAO,CAAC,IAAI,CAAC;IAOV,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAehD,qBAAqB,CACzB,IAAI,EAAE,eAAe,EACrB,YAAY,EAAE,cAAc,GAC3B,OAAO,CAAC,IAAI,CAAC;CAgBjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentDeclaration } from '../../agent.ts';
|
|
2
|
+
import type { ZukhrufToolSet } from '../../tool.ts';
|
|
3
|
+
/** Collects shared tool contributions and publishes validated snapshots. */
|
|
4
|
+
export declare class PluginToolComposition {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(reservedNames: readonly string[]);
|
|
7
|
+
add(plugin: string, tools: ZukhrufToolSet): void;
|
|
8
|
+
compose(declarations: Iterable<AgentDeclaration>): ZukhrufToolSet;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=plugin-tool-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-tool-composition.d.ts","sourceRoot":"","sources":["../../../../src/zukhruf/runtime/plugin/plugin-tool-composition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,4EAA4E;AAC5E,qBAAa,qBAAqB;;gBAIpB,aAAa,EAAE,SAAS,MAAM,EAAE;IAI5C,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI;IAahD,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,cAAc;CAclE"}
|
package/dist/zukhruf/tool.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { type Tool, type ToolExecuteFunction, type ToolSet } from 'ai';
|
|
1
|
+
import { type JSONSchema7, type Tool, type ToolExecuteFunction, type ToolSet } from 'ai';
|
|
2
|
+
export type ClientToolSet = Record<string, {
|
|
3
|
+
inputSchema: JSONSchema7;
|
|
4
|
+
description: string;
|
|
5
|
+
}>;
|
|
2
6
|
export type ToolRecovery = 'idempotent';
|
|
3
7
|
export type ZukhrufTool<INPUT, OUTPUT, CONTEXT extends Record<string, unknown>> = Tool<INPUT, OUTPUT, CONTEXT> & {
|
|
4
8
|
/** Allows one automatic replay after a worker crash. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/zukhruf/tool.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/zukhruf/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,mBAAmB,EACxB,KAAK,OAAO,EAEb,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,MAAM,EACN;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAClD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC;AAExC,MAAM,MAAM,WAAW,CACrB,KAAK,EACL,MAAM,EACN,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACrC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG;IACjC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,GAClC,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAAC;AAE9C,wBAAgB,UAAU,CACxB,KAAK,EACL,MAAM,EACN,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAEvC,UAAU,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
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/JanuaryLabs/deepagents#readme",
|
|
14
14
|
"type": "module",
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=24.0.0"
|
|
17
|
+
},
|
|
15
18
|
"main": "./dist/index.js",
|
|
16
19
|
"module": "./dist/index.js",
|
|
17
20
|
"types": "./dist/index.d.ts",
|
|
@@ -27,10 +30,55 @@
|
|
|
27
30
|
"import": "./dist/coding-agent-reminders/index.js",
|
|
28
31
|
"default": "./dist/coding-agent-reminders/index.js"
|
|
29
32
|
},
|
|
33
|
+
"./providers/codex": {
|
|
34
|
+
"types": "./dist/providers/codex/index.d.ts",
|
|
35
|
+
"import": "./dist/providers/codex/index.js",
|
|
36
|
+
"default": "./dist/providers/codex/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./providers/claude": {
|
|
39
|
+
"types": "./dist/providers/claude/index.d.ts",
|
|
40
|
+
"import": "./dist/providers/claude/index.js",
|
|
41
|
+
"default": "./dist/providers/claude/index.js"
|
|
42
|
+
},
|
|
30
43
|
"./zukhruf": {
|
|
31
44
|
"types": "./dist/zukhruf/index.d.ts",
|
|
32
45
|
"import": "./dist/zukhruf/index.js",
|
|
33
46
|
"default": "./dist/zukhruf/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./zukhruf/mcp": {
|
|
49
|
+
"types": "./dist/zukhruf/plugins/mcp/index.d.ts",
|
|
50
|
+
"import": "./dist/zukhruf/plugins/mcp/index.js",
|
|
51
|
+
"default": "./dist/zukhruf/plugins/mcp/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./zukhruf/http": {
|
|
54
|
+
"types": "./dist/zukhruf/plugins/http/index.d.ts",
|
|
55
|
+
"import": "./dist/zukhruf/plugins/http/index.js",
|
|
56
|
+
"default": "./dist/zukhruf/plugins/http/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./zukhruf/conversation-scheduling": {
|
|
59
|
+
"types": "./dist/zukhruf/plugins/conversation-scheduling/index.d.ts",
|
|
60
|
+
"import": "./dist/zukhruf/plugins/conversation-scheduling/index.js",
|
|
61
|
+
"default": "./dist/zukhruf/plugins/conversation-scheduling/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./zukhruf/schedules": {
|
|
64
|
+
"types": "./dist/zukhruf/plugins/schedules/index.d.ts",
|
|
65
|
+
"import": "./dist/zukhruf/plugins/schedules/index.js",
|
|
66
|
+
"default": "./dist/zukhruf/plugins/schedules/index.js"
|
|
67
|
+
},
|
|
68
|
+
"./zukhruf/schedules/http": {
|
|
69
|
+
"types": "./dist/zukhruf/plugins/schedules/http.d.ts",
|
|
70
|
+
"import": "./dist/zukhruf/plugins/schedules/http.js",
|
|
71
|
+
"default": "./dist/zukhruf/plugins/schedules/http.js"
|
|
72
|
+
},
|
|
73
|
+
"./zukhruf/uploads": {
|
|
74
|
+
"types": "./dist/zukhruf/plugins/uploads/index.d.ts",
|
|
75
|
+
"import": "./dist/zukhruf/plugins/uploads/index.js",
|
|
76
|
+
"default": "./dist/zukhruf/plugins/uploads/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./zukhruf/uploads/http": {
|
|
79
|
+
"types": "./dist/zukhruf/plugins/uploads/http.d.ts",
|
|
80
|
+
"import": "./dist/zukhruf/plugins/uploads/http.js",
|
|
81
|
+
"default": "./dist/zukhruf/plugins/uploads/http.js"
|
|
34
82
|
}
|
|
35
83
|
},
|
|
36
84
|
"files": [
|
|
@@ -43,17 +91,37 @@
|
|
|
43
91
|
"access": "public"
|
|
44
92
|
},
|
|
45
93
|
"dependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"ai": "^
|
|
94
|
+
"@ai-sdk/anthropic": "^4.0.46",
|
|
95
|
+
"@ai-sdk/code-mode": "^1.0.42",
|
|
96
|
+
"@ai-sdk/mcp": "2.0.41",
|
|
97
|
+
"@ai-sdk/openai": "^4.0.67",
|
|
98
|
+
"@deepagents/context": "7.0.0",
|
|
99
|
+
"@deepagents/compaction": "7.0.0",
|
|
100
|
+
"@deepagents/elements": "7.0.0",
|
|
101
|
+
"@iarna/toml": "^2.2.5",
|
|
102
|
+
"@napi-rs/keyring": "^2.1.0",
|
|
103
|
+
"@opencoredev/loginwithchatgpt-core": "^0.2.0",
|
|
104
|
+
"ai": "^7.0.85",
|
|
105
|
+
"atomically": "^2.1.1",
|
|
106
|
+
"cron-parser": "5.6.2",
|
|
107
|
+
"cronstrue": "^3.24.0",
|
|
108
|
+
"fast-content-type-parse": "^3.0.0",
|
|
109
|
+
"hono": "^4.12.33",
|
|
48
110
|
"just-bash": "^3.2.0",
|
|
49
|
-
"pg-boss": "^12.
|
|
111
|
+
"pg-boss": "^12.29.0",
|
|
112
|
+
"proper-lockfile": "^4.1.2",
|
|
113
|
+
"rrule": "^2.8.1",
|
|
50
114
|
"tiny-tfidf": "^1.0.0",
|
|
51
115
|
"uuid": "^14.0.1",
|
|
52
|
-
"
|
|
116
|
+
"yaml": "^2.9.0",
|
|
117
|
+
"zod": "^4.4.3",
|
|
118
|
+
"@ai-sdk/provider-utils": "^5.0.34",
|
|
119
|
+
"@ai-sdk/provider": "^4.0.9"
|
|
53
120
|
},
|
|
54
121
|
"devDependencies": {
|
|
55
|
-
"@ai-sdk/provider": "^4.0.
|
|
122
|
+
"@ai-sdk/provider": "^4.0.9",
|
|
56
123
|
"@electric-sql/pglite": "^0.5.4",
|
|
124
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
57
125
|
"just-bash": "^3.2.0"
|
|
58
126
|
}
|
|
59
127
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"multi-agent-v2-config.d.ts","sourceRoot":"","sources":["../../src/zukhruf/multi-agent-v2-config.ts"],"names":[],"mappings":"AAqBA,qEAAqE;AACrE,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,2EAA2E;IAC3E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,8BAA8B;IAC7C,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,GAAE,sBAA2B,GACjC,8BAA8B,CA2EhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type AvailableSkill, type ContextFragment } from '@deepagents/context';
|
|
2
|
-
import type { ZukhrufSandbox } from '../agent.ts';
|
|
3
|
-
export interface AgentSkills {
|
|
4
|
-
available: readonly AvailableSkill[];
|
|
5
|
-
fragments: readonly ContextFragment[];
|
|
6
|
-
}
|
|
7
|
-
export declare function discoverAgentSkills(sandbox: ZukhrufSandbox, signal?: AbortSignal): Promise<AgentSkills>;
|
|
8
|
-
export declare function createAgentSkills(available: readonly AvailableSkill[]): AgentSkills;
|
|
9
|
-
//# sourceMappingURL=agent-skills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-skills.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/agent-skills.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,SAAS,cAAc,EAAE,CAAC;IACrC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;CACvC;AAID,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,cAAc,EAAE,GACnC,WAAW,CAIb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approval-job-id.d.ts","sourceRoot":"","sources":["../../../src/zukhruf/runtime/approval-job-id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAgB,aAAa,CAC3B,YAAY,EAAE,cAAc,EAC5B,UAAU,EAAE,MAAM,GACjB,MAAM,CAER"}
|