@deepagents/experimental 7.6.0 → 7.7.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/dist/index.js +9 -8
- package/dist/index.js.map +2 -2
- package/dist/zukhruf/agent.d.ts +6 -2
- package/dist/zukhruf/agent.d.ts.map +1 -1
- package/dist/zukhruf/index.js +9 -8
- package/dist/zukhruf/index.js.map +2 -2
- package/dist/zukhruf/plugins/conversation-scheduling/index.js +1 -1
- package/dist/zukhruf/plugins/conversation-scheduling/index.js.map +2 -2
- package/dist/zukhruf/plugins/http/index.d.ts.map +1 -1
- package/dist/zukhruf/plugins/http/index.js +11 -13
- package/dist/zukhruf/plugins/http/index.js.map +2 -2
- package/dist/zukhruf/plugins/schedules/http.js +1 -0
- package/dist/zukhruf/plugins/schedules/http.js.map +2 -2
- package/dist/zukhruf/plugins/schedules/index.js +1 -1
- package/dist/zukhruf/plugins/schedules/index.js.map +2 -2
- package/dist/zukhruf/plugins/uploads/http.js +1 -0
- package/dist/zukhruf/plugins/uploads/http.js.map +2 -2
- package/dist/zukhruf/runtime/agent-turn-executor.d.ts.map +1 -1
- package/dist/zukhruf/runtime/conversation-status/projector.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/zukhruf/agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TelemetryOptions } from 'ai';
|
|
2
2
|
import type { CompactOptions, CompactionTrigger } from '@deepagents/compaction';
|
|
3
|
-
import type { AgentControls, AgentModel, AgentSandbox, ContextFragment, CreateAgent } from '@deepagents/context';
|
|
3
|
+
import type { AgentControls, AgentModel, AgentSandbox, BashToolkitTools, ContextFragment, CreateAgent } from '@deepagents/context';
|
|
4
4
|
import type { AgentPluginDefinition } from './runtime/agent-runtime.ts';
|
|
5
5
|
import type { ZukhrufToolSet } from './tool.ts';
|
|
6
6
|
/**
|
|
@@ -12,7 +12,11 @@ export interface SandboxContext {
|
|
|
12
12
|
chatId: string;
|
|
13
13
|
userId: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Needs both file tools: the uploads plugin tells the model to read attached
|
|
17
|
+
* images with `readFile`.
|
|
18
|
+
*/
|
|
19
|
+
export type ZukhrufSandbox = AgentSandbox<BashToolkitTools> & {
|
|
16
20
|
/** Absolute directory containing this conversation's files and skills. Omit to disable discovery. */
|
|
17
21
|
readonly workingDirectory?: string;
|
|
18
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/zukhruf/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,eAAe,EACf,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/zukhruf/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAA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uBAAwB,SAAQ,gBAAgB;IAC/D,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,OAAO,EAAE,SAAS,qBAAqB,EAAE,CAAC;CAC3C;AAED,wBAAgB,WAAW,CACzB,WAAW,EAAE,gBAAgB,GAC5B,uBAAuB,CAwBzB"}
|
package/dist/zukhruf/index.js
CHANGED
|
@@ -3319,7 +3319,7 @@ var ConversationSandboxes = class {
|
|
|
3319
3319
|
};
|
|
3320
3320
|
|
|
3321
3321
|
// packages/experimental/src/zukhruf/runtime/conversation-status/projector.ts
|
|
3322
|
-
import { Latch } from "@zukhruf/async";
|
|
3322
|
+
import { Future, Latch } from "@zukhruf/async";
|
|
3323
3323
|
import { Mutex } from "@zukhruf/mutex";
|
|
3324
3324
|
import { MemoryStore } from "@zukhruf/mutex/memory";
|
|
3325
3325
|
import { EventEmitter, on } from "node:events";
|
|
@@ -3362,8 +3362,8 @@ var Detached = class {
|
|
|
3362
3362
|
var DETACHED = new Detached();
|
|
3363
3363
|
var RemoteAttachment = class {
|
|
3364
3364
|
abort = new AbortController();
|
|
3365
|
-
/**
|
|
3366
|
-
connected = new
|
|
3365
|
+
/** Resolves when the source subscribes; rejects with the error that stopped it. */
|
|
3366
|
+
connected = new Future();
|
|
3367
3367
|
/** Opens when the consume loop has stopped. */
|
|
3368
3368
|
ended = new Latch();
|
|
3369
3369
|
};
|
|
@@ -3547,10 +3547,11 @@ var ConversationStatusProjector = class _ConversationStatusProjector {
|
|
|
3547
3547
|
this.#remote = remote;
|
|
3548
3548
|
void this.#consumeRemote(source, remote);
|
|
3549
3549
|
}
|
|
3550
|
-
|
|
3551
|
-
|
|
3550
|
+
try {
|
|
3551
|
+
await remote.connected.wait();
|
|
3552
|
+
} catch (error) {
|
|
3552
3553
|
await this.#detachRemote();
|
|
3553
|
-
throw
|
|
3554
|
+
throw error;
|
|
3554
3555
|
}
|
|
3555
3556
|
}
|
|
3556
3557
|
async #detachRemote() {
|
|
@@ -3566,7 +3567,7 @@ var ConversationStatusProjector = class _ConversationStatusProjector {
|
|
|
3566
3567
|
try {
|
|
3567
3568
|
const events = await source.subscribe(remote.abort.signal);
|
|
3568
3569
|
connected = true;
|
|
3569
|
-
remote.connected.
|
|
3570
|
+
remote.connected.resolve();
|
|
3570
3571
|
for await (const event of events) {
|
|
3571
3572
|
if (event.type === "reset") {
|
|
3572
3573
|
this.#emit(event);
|
|
@@ -3581,7 +3582,7 @@ var ConversationStatusProjector = class _ConversationStatusProjector {
|
|
|
3581
3582
|
});
|
|
3582
3583
|
}
|
|
3583
3584
|
} catch (error) {
|
|
3584
|
-
if (!connected) remote.connected.
|
|
3585
|
+
if (!connected) remote.connected.reject(error);
|
|
3585
3586
|
if (connected && !(Error.isError(error) && error.name === "AbortError")) {
|
|
3586
3587
|
this.#emit({ type: "error", error });
|
|
3587
3588
|
}
|