@keska/sandbox 0.48.0 → 0.49.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.d.ts +0 -8
- package/dist/index.js +0 -23
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6232,14 +6232,6 @@ declare class Agent {
|
|
|
6232
6232
|
newSandbox(opts?: Omit<SandboxCreateParams, "agentId" | "image"> & {
|
|
6233
6233
|
image?: string;
|
|
6234
6234
|
}): Promise<Sandbox>;
|
|
6235
|
-
/** Chat goes through agent-kit. This client creates conversations and login tokens. */
|
|
6236
|
-
sendMessage(_body: string): Promise<string>;
|
|
6237
|
-
/** Chat goes through agent-kit. */
|
|
6238
|
-
subscribe(): Promise<never>;
|
|
6239
|
-
/** Chat goes through agent-kit. */
|
|
6240
|
-
history(): AsyncGenerator<never>;
|
|
6241
|
-
/** Messaging off is reported first. A messaging agent still chats through agent-kit. */
|
|
6242
|
-
private chatElsewhere;
|
|
6243
6235
|
}
|
|
6244
6236
|
/** Copied onto an agent at create. Later edits do not change existing agents. */
|
|
6245
6237
|
declare class Template {
|
package/dist/index.js
CHANGED
|
@@ -5554,29 +5554,6 @@ var Agent = class {
|
|
|
5554
5554
|
profile: opts.profile ?? (this.profileId || void 0)
|
|
5555
5555
|
});
|
|
5556
5556
|
}
|
|
5557
|
-
/** Chat goes through agent-kit. This client creates conversations and login tokens. */
|
|
5558
|
-
async sendMessage(_body) {
|
|
5559
|
-
this.chatElsewhere();
|
|
5560
|
-
}
|
|
5561
|
-
/** Chat goes through agent-kit. */
|
|
5562
|
-
async subscribe() {
|
|
5563
|
-
this.chatElsewhere();
|
|
5564
|
-
}
|
|
5565
|
-
/** Chat goes through agent-kit. */
|
|
5566
|
-
// biome-ignore lint/correctness/useYield: this stub only rejects; chat is agent-kit
|
|
5567
|
-
async *history() {
|
|
5568
|
-
this.chatElsewhere();
|
|
5569
|
-
}
|
|
5570
|
-
/** Messaging off is reported first. A messaging agent still chats through agent-kit. */
|
|
5571
|
-
chatElsewhere() {
|
|
5572
|
-
if (!this.messaging) {
|
|
5573
|
-
throw new SandboxError("messaging is off for this agent", {
|
|
5574
|
-
code: "failed_precondition",
|
|
5575
|
-
reason: "AGENT_MESSAGING_OFF"
|
|
5576
|
-
});
|
|
5577
|
-
}
|
|
5578
|
-
throw new SandboxError("chat with agent-kit", { code: "failed_precondition", reason: "USE_AGENT_KIT" });
|
|
5579
|
-
}
|
|
5580
5557
|
};
|
|
5581
5558
|
var Template = class {
|
|
5582
5559
|
constructor(client, info) {
|