@segmentstream/agent 0.72.1 → 0.72.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.72.2
4
+
5
+ Pins @segmentstream/ontology 0.148.0.
6
+
3
7
  ## 0.72.1
4
8
 
5
9
  With `channels.telegram.appLinks: "miniApp"`, a confirmation card's links to the app, in its text and
@@ -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.72.1";
7
+ var version = "0.72.2";
8
8
  function agentBuild(environment = process.env) {
9
9
  return {
10
10
  agent: version,
@@ -12,7 +12,7 @@ function makeRedactor(values = []) {
12
12
  return (input) => {
13
13
  let text = input;
14
14
  for (const value of secrets) text = text.replaceAll(value, "[REDACTED]");
15
- return redactCopyContext(redactPrivateKeys(text)).replace(/\b(?:postgres(?:ql)?|mysql|mongodb(?:\+srv)?):\/\/\S+/gi, "[REDACTED CONNECTION URI]").replace(/\b(?:sscli_(?:access_|key_)?v1|ssbrowser_(?:link_)?v1)\.[a-f0-9-]{36}\.[A-Za-z0-9_-]{43}\b/gi, "[REDACTED CLI CREDENTIAL]").replace(/\b(?:Bearer|Basic)\s+[A-Za-z0-9+/_=.:~-]+/gi, "[REDACTED AUTHORIZATION]").replace(/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g, "[REDACTED JWT]").replace(/\b(?:sk|rk|vercel_blob_rw|vercel_blob_r|access_token|refresh_token)_[A-Za-z0-9._~-]{8,}/g, "[REDACTED]").replace(/\b([a-z][a-z0-9+.-]*:\/\/)[^\s/@]+@/gi, "$1[REDACTED]@").replace(/([?&](?:access_token|api_key|apikey|key|password|refresh_token|secret|token|signature|sig)=)[^&#\s]*/gi, "$1[REDACTED]").replace(/((?:["']?)(?:password|passwd|credential|secret|client_secret|api_key|access_token|refresh_token|authorization|cookie|set-cookie|token)(?:["']?)\s*[:=]\s*)(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\s,;})]+)/gi, "$1[REDACTED]").replace(/(Key\s*\([^)]*\)\s*=\s*)\([\s\S]*/gi, (match, prefix) => {
15
+ return redactCopyContext(redactPrivateKeys(text)).replace(/https:\/\/(?:checkout\.stripe\.com\/|pay\.stripe\.com\/receipts\/)[^\s"'<>]+/gi, "[REDACTED PAYMENT URL]").replace(/\b(?:postgres(?:ql)?|mysql|mongodb(?:\+srv)?):\/\/\S+/gi, "[REDACTED CONNECTION URI]").replace(/\b(?:sscli_(?:access_|key_)?v1|ssbrowser_(?:link_)?v1)\.[a-f0-9-]{36}\.[A-Za-z0-9_-]{43}\b/gi, "[REDACTED CLI CREDENTIAL]").replace(/\b(?:Bearer|Basic)\s+[A-Za-z0-9+/_=.:~-]+/gi, "[REDACTED AUTHORIZATION]").replace(/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g, "[REDACTED JWT]").replace(/\b(?:sk|rk|vercel_blob_rw|vercel_blob_r|access_token|refresh_token)_[A-Za-z0-9._~-]{8,}/g, "[REDACTED]").replace(/\b([a-z][a-z0-9+.-]*:\/\/)[^\s/@]+@/gi, "$1[REDACTED]@").replace(/([?&](?:access_token|api_key|apikey|key|password|refresh_token|secret|token|signature|sig)=)[^&#\s]*/gi, "$1[REDACTED]").replace(/((?:["']?)(?:password|passwd|credential|secret|client_secret|api_key|access_token|refresh_token|authorization|cookie|set-cookie|token)(?:["']?)\s*[:=]\s*)(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\s,;})]+)/gi, "$1[REDACTED]").replace(/(Key\s*\([^)]*\)\s*=\s*)\([\s\S]*/gi, (match, prefix) => {
16
16
  const end = Math.max(...[") already exists", ") is not present"].map((ending) => match.lastIndexOf(ending)));
17
17
  return `${prefix}([REDACTED])${end < 0 ? "" : match.slice(end + 1)}`;
18
18
  }).replace(/(Failing row contains\s+)[\s\S]*/gi, "$1[REDACTED]").replace(/(SQL statement\s+)[\s\S]*/gi, "$1[REDACTED]").replace(/(JSON data, line \d+:\s*)[\s\S]*/gi, "$1[REDACTED]").replace(/((?:Token|Escape sequence|but found)\s+")[\s\S]*/gi, (match, prefix) => {
@@ -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-BYjTrJf6.mjs";
7
+ export { t as agentBuild } from "../../_chunks/build-metadata-BqO3Ozio.mjs";
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import { channelKey } from "./channel-scope.mjs";
8
8
  import { proxyEnvironment } from "./environment.mjs";
9
9
  import { runtimeToken } from "./runtime-token.mjs";
10
- import { r as workflowValue } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
10
+ import { r as workflowValue } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
11
11
  function replyOperation(key) {
12
12
  return `reply:${key}`;
13
13
  }
@@ -10,7 +10,7 @@ import { groupRoutingHealth } from "../group-routing/health.mjs";
10
10
  import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
11
11
  import { handleWorkspaceCallback } from "./callbacks.mjs";
12
12
  import { telegramText, withTelegramTexts } from "./texts.mjs";
13
- import { t as agentBuild } from "../../../_chunks/build-metadata-BYjTrJf6.mjs";
13
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BqO3Ozio.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-BYjTrJf6.mjs";
7
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BqO3Ozio.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, Et as principalRuntimeSource, L as needsConfirmation, Ot as runtimeEnvelope, W as member, c as currentInboundRequest, j as ontologyTools, k as actionToolName, kt as telegramRuntimeSource } from "../../../_chunks/principal-Cw1NtCkj.mjs";
8
- import { t as agentBuild } from "../../../_chunks/build-metadata-BYjTrJf6.mjs";
8
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BqO3Ozio.mjs";
9
9
  import { object } from "../confirmation-description.mjs";
10
10
  var AttachmentLifecycleNotPermitted = class extends Error {
11
11
  code = "attachment_lifecycle_not_permitted";
@@ -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 toWorkflowSerializable, n as workflowToolResult, r as workflowValue } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ export { t as toWorkflowSerializable, n as workflowToolResult, r as workflowValue } from "../../_chunks/workflow-serializable-gzv5MZ5P.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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
8
8
  import { ID_INPUT, attachmentForModel, attachmentOwner, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
9
9
  import { G as memberTool } from "../../_chunks/principal-Cw1NtCkj.mjs";
10
10
  import { defineTool } from "eve/tools";
@@ -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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
8
8
  import { attachmentForModel, attachmentOwner, toolAttachments } from "../lib/attachment-tools.mjs";
9
9
  import { G as memberTool } from "../../_chunks/principal-Cw1NtCkj.mjs";
10
10
  import { defineTool } from "eve/tools";
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import { Dt as readableRuntimeEnvelope, G as memberTool, H as actorOf, M as promotionTarget, Ot as runtimeEnvelope, P as actionApproval, j as ontologyTools, y as MAXIMUM_ATTACHMENT_BYTES } from "../../_chunks/principal-Cw1NtCkj.mjs";
8
8
  import segmentstream from "../extension.mjs";
9
9
  import { SANDBOX_TOOL, requireAgentTool } from "../lib/agent-tools.mjs";
10
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
10
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
11
11
  import { contentTypeOf } from "../lib/attachment-formats.mjs";
12
12
  import { sandboxFile } from "../lib/sandbox-session.mjs";
13
13
  import { attachmentForModel, attachmentOwner, optionalObject, optionalString, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { readStoredFile } from "../lib/stored-files.mjs";
8
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
8
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
9
9
  import { ID_INPUT, attachmentOwner, headerArgument, optionalString, pageInteger, readOutput, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
10
10
  import { G as memberTool } from "../../_chunks/principal-Cw1NtCkj.mjs";
11
11
  import { defineTool } from "eve/tools";
@@ -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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
8
8
  import segmentstream from "../extension.mjs";
9
9
  import { Ft as chatChannel, G as memberTool, Pt as chatAddressOf } from "../../_chunks/principal-Cw1NtCkj.mjs";
10
10
  import { channelOf } from "../config.mjs";
@@ -10,7 +10,7 @@ import { SANDBOX_TOOL, holdsAgentTool, requireAgentTool } from "../lib/agent-too
10
10
  import { attachmentOwner, optionalString, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
11
11
  import { sessionSandbox } from "../lib/sandbox-session.mjs";
12
12
  import { storedFileGrant } from "../lib/stored-files.mjs";
13
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
13
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
14
14
  import { createHash } from "node:crypto";
15
15
  import { defineDynamic, defineTool } from "eve/tools";
16
16
  const STAGED_FILES_DIRECTORY = "/workspace/.segmentstream/files";
@@ -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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
8
8
  import { ID_INPUT, attachmentForModel, attachmentOwner, boundedResultPage, headerArgument, optionalString, pageInteger, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
9
9
  import { readSheets, typedTable } from "../lib/attachment-tables.mjs";
10
10
  import { queryTable } from "../lib/attachment-query.mjs";
@@ -8,7 +8,7 @@ import segmentstream from "../extension.mjs";
8
8
  import { BROWSER_TOOL, SANDBOX_TOOL, holdsAgentTool, requireAgentTool } from "../lib/agent-tools.mjs";
9
9
  import { BROWSER_PYTHON, SCREENSHOT_DIRECTORY, openAgentBrowser, runBrowserScript } from "../lib/browser.mjs";
10
10
  import { sessionSandbox } from "../lib/sandbox-session.mjs";
11
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
11
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
12
12
  import { defineDynamic, defineTool } from "eve/tools";
13
13
  const MAXIMUM_CODE_CHARACTERS = 5e4;
14
14
  function inputOf(value) {
@@ -11,7 +11,7 @@ import { Ft as chatChannel, Pt as chatAddressOf, i as memberIdOf } from "../../_
11
11
  import { appOrigin } from "../lib/environment.mjs";
12
12
  import { agentIdentities } from "../lib/identities.mjs";
13
13
  import { runtimeToken } from "../lib/runtime-token.mjs";
14
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
14
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
15
15
  import { defineDynamic, defineTool } from "eve/tools";
16
16
  const MAX_REASON = 1e3;
17
17
  function handoffChat(principal) {
@@ -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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
7
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
8
8
  import { K as notForGuests, Pt as chatAddressOf, i as memberIdOf } from "../../_chunks/principal-Cw1NtCkj.mjs";
9
9
  import { agentTaskIdOf, agentTaskSessions } from "../lib/agent-task.mjs";
10
10
  import { stringArgument } from "../lib/attachment-tools.mjs";
@@ -8,7 +8,7 @@ import segmentstream from "../extension.mjs";
8
8
  import { agentTaskIdOf } from "../lib/agent-task.mjs";
9
9
  import { revisionOf } from "../lib/review/revision.mjs";
10
10
  import { optionalString, stringArgument } from "../lib/attachment-tools.mjs";
11
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
11
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
12
12
  import { defineDynamic, defineTool } from "eve/tools";
13
13
  const unanswered = defineTool({
14
14
  availableInSubagents: false,
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import segmentstream from "../extension.mjs";
8
8
  import { holdsAgentTool, requireAgentTool } from "../lib/agent-tools.mjs";
9
9
  import { fetchWebPage } from "../lib/web-fetch.mjs";
10
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
10
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
11
11
  import { defineDynamic, defineTool } from "eve/tools";
12
12
  const FORMATS = [
13
13
  "markdown",
@@ -8,7 +8,7 @@ import segmentstream from "../extension.mjs";
8
8
  import { WEB_SEARCH_TOOL, holdsAgentTool, requireAgentTool } from "../lib/agent-tools.mjs";
9
9
  import { recordGuestSpend } from "../lib/guest-usage.mjs";
10
10
  import { MAXIMUM_OBJECTIVE_CHARACTERS, searchWeb } from "../lib/web-search.mjs";
11
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
11
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
12
12
  import { defineDynamic, defineTool } from "eve/tools";
13
13
  function inputOf(value) {
14
14
  const input = value ?? {};
@@ -10,7 +10,7 @@ import { SANDBOX_TOOL, holdsAgentTool, requireAgentTool } from "../lib/agent-too
10
10
  import { appOrigin } from "../lib/environment.mjs";
11
11
  import { runtimeToken } from "../lib/runtime-token.mjs";
12
12
  import { sessionSandbox } from "../lib/sandbox-session.mjs";
13
- import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
13
+ import { n as workflowToolResult } from "../../_chunks/workflow-serializable-gzv5MZ5P.mjs";
14
14
  import { copyWorkspaceSource, workspaceSourceReader } from "../lib/workspace-source.mjs";
15
15
  import { defineDynamic, defineTool } from "eve/tools";
16
16
  const tool = defineTool({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/agent",
3
- "version": "0.72.1",
3
+ "version": "0.72.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",
@@ -80,7 +80,7 @@
80
80
  "@chat-adapter/state-memory": "4.42.0",
81
81
  "@chat-adapter/telegram": "4.41.0",
82
82
  "@chat-adapter/whatsapp": "4.42.0",
83
- "@segmentstream/ontology": "0.147.0",
83
+ "@segmentstream/ontology": "0.148.0",
84
84
  "@vercel/oidc": "^3.8.4",
85
85
  "ai": "^7.0.172",
86
86
  "chat": "4.42.0",