@segmentstream/agent 0.61.1 → 0.61.2
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/CHANGELOG.md +8 -0
- package/dist/_chunks/{build-metadata-tWgFNcVM.mjs → build-metadata-DdnXSpJ7.mjs} +1 -1
- package/dist/extension/lib/browser.d.ts +7 -3
- package/dist/extension/lib/browser.mjs +1 -0
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/telegram/adapter.mjs +1 -1
- package/dist/extension/lib/telegram/health.mjs +1 -1
- package/dist/extension/lib/telegram/lifecycle.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.61.2
|
|
4
|
+
|
|
5
|
+
`segmentstream__browser` fails at once, with the reason `in_use`, while a member signs the agent
|
|
6
|
+
in to a site in its browser or resets the browser from the console, instead of waiting: the
|
|
7
|
+
browser is the member's until they finish. Its message states that fact, as the tool's other
|
|
8
|
+
failures do; what the agent does then is the workspace's to say in its instructions. Agents on an
|
|
9
|
+
earlier release report such a call as a browser that could not be opened.
|
|
10
|
+
|
|
3
11
|
## 0.61.1
|
|
4
12
|
|
|
5
13
|
Pins @segmentstream/ontology 0.126.0.
|
|
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
|
|
|
4
4
|
const __filename = __eveFileURLToPath(import.meta.url);
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
|
-
var version = "0.61.
|
|
7
|
+
var version = "0.61.2";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -25,11 +25,15 @@ export interface AgentBrowser {
|
|
|
25
25
|
readonly expiresAt: string;
|
|
26
26
|
readonly opened: boolean;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Why the agent has no browser for this call: `in_use` while a member signs the agent in to a site
|
|
30
|
+
* in its browser, or resets the browser. The message states the fact, as the tool's other failures
|
|
31
|
+
* do, and names no address; what the agent does then is the workspace's to say in its instructions.
|
|
32
|
+
*/
|
|
29
33
|
export declare class AgentBrowserError extends Error {
|
|
30
|
-
readonly reason: "unavailable" | "busy" | "failed";
|
|
34
|
+
readonly reason: "unavailable" | "busy" | "in_use" | "failed";
|
|
31
35
|
readonly name = "AgentBrowserError";
|
|
32
|
-
constructor(reason: "unavailable" | "busy" | "failed", message: string);
|
|
36
|
+
constructor(reason: "unavailable" | "busy" | "in_use" | "failed", message: string);
|
|
33
37
|
}
|
|
34
38
|
/**
|
|
35
39
|
* The workspace agent's live browser, or a new one: SegmentStream reuses the live browser while it
|
|
@@ -57,6 +57,7 @@ async function openAgentBrowser(input) {
|
|
|
57
57
|
}
|
|
58
58
|
if (code === "agent_browser_unavailable") throw new AgentBrowserError("unavailable", "This workspace's agent has no browser: its region has none, or its profile is not provisioned yet.");
|
|
59
59
|
if (code === "agent_browser_busy") throw new AgentBrowserError("busy", "The agent's browser is still being opened.");
|
|
60
|
+
if (code === "agent_browser_in_use") throw new AgentBrowserError("in_use", "A member is using the agent's browser.");
|
|
60
61
|
throw new AgentBrowserError("failed", `The agent's browser could not be opened (${response.status}); request ${requestId}.`);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
|
|
|
4
4
|
const __filename = __eveFileURLToPath(import.meta.url);
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
|
-
export { t as agentBuild } from "../../_chunks/build-metadata-
|
|
7
|
+
export { t as agentBuild } from "../../_chunks/build-metadata-DdnXSpJ7.mjs";
|
|
@@ -10,7 +10,7 @@ import { groupRoutingHealth } from "../group-routing/health.mjs";
|
|
|
10
10
|
import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
|
|
11
11
|
import { handleWorkspaceCallback, isWorkspaceCallback } from "./callbacks.mjs";
|
|
12
12
|
import { telegramText, withTelegramTexts } from "./texts.mjs";
|
|
13
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
13
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-DdnXSpJ7.mjs";
|
|
14
14
|
import { attachmentLifecycle } from "./lifecycle.mjs";
|
|
15
15
|
import { manifestOf } from "../../config.mjs";
|
|
16
16
|
import { gatewayAttachmentDescriber } from "./attachment-description.mjs";
|
|
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
|
|
|
4
4
|
const __filename = __eveFileURLToPath(import.meta.url);
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
7
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-DdnXSpJ7.mjs";
|
|
8
8
|
import { runtimeRequestFailure } from "./runtime-request.mjs";
|
|
9
9
|
import { GET } from "eve/channels";
|
|
10
10
|
const HEALTH_ROUTE = "/eve/v1/telegram/health";
|
|
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
|
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
7
|
import { E as OntologyActionNotPermitted, Ft as principalRuntimeSource, It as runtimeEnvelope, L as needsConfirmation, Lt as telegramRuntimeSource, W as member, c as currentInboundRequest, j as ontologyTools, k as actionToolName } from "../../../_chunks/principal-TJ6zB2rF.mjs";
|
|
8
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
8
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-DdnXSpJ7.mjs";
|
|
9
9
|
import { object } from "../confirmation-description.mjs";
|
|
10
10
|
var AttachmentLifecycleNotPermitted = class extends Error {
|
|
11
11
|
code = "attachment_lifecycle_not_permitted";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.2",
|
|
4
4
|
"description": "The SegmentStream workspace agent: the ontology as tools, acting as the member who writes, and the browser, Telegram, WhatsApp and Slack through the workspace's connections.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|