managed-deepagents 0.7.1-dev.10 → 0.7.1-dev.12

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.
@@ -1,5 +1,5 @@
1
1
  import { createMiddleware } from "langchain";
2
2
  export declare const CHANNEL_RESPONSE_FORMAT_MIDDLEWARE_NAME = "mda-channel-response-format";
3
- export declare const SLACK_MRKDWN_INSTRUCTIONS = "Your final response is automatically posted to Slack. Reply directly to the user using Slack-compatible mrkdwn. Do not make a tool call or search for a Slack tool to send the response.";
3
+ export declare const SLACK_MARKDOWN_INSTRUCTIONS = "Write your final response using standard Markdown. In prose, format URLs as explicit Markdown links, such as [label](https://example.com), or autolinks, such as <https://example.com>, rather than bare URLs. Preserve literal URLs inside code.";
4
4
  export declare function createChannelResponseFormatMiddleware(): ReturnType<typeof createMiddleware>;
5
5
  //# sourceMappingURL=response-format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-format.d.ts","sourceRoot":"","sources":["../../src/channels/response-format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,WAAW,CAAC;AAOhE,eAAO,MAAM,uCAAuC,gCACrB,CAAC;AAEhC,eAAO,MAAM,yBAAyB,6LACsJ,CAAC;AAkC7L,wBAAgB,qCAAqC,IAAI,UAAU,CACjE,OAAO,gBAAgB,CACxB,CAWA"}
1
+ {"version":3,"file":"response-format.d.ts","sourceRoot":"","sources":["../../src/channels/response-format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,WAAW,CAAC;AAOhE,eAAO,MAAM,uCAAuC,gCACrB,CAAC;AAEhC,eAAO,MAAM,2BAA2B,sPAC6M,CAAC;AAkCtP,wBAAgB,qCAAqC,IAAI,UAAU,CACjE,OAAO,gBAAgB,CACxB,CAWA"}
@@ -2,7 +2,7 @@ import { SystemMessage } from "@langchain/core/messages";
2
2
  import { createMiddleware } from "langchain";
3
3
  import { resolveRuntimeConfigurable, } from "../runtime/identity-runtime.js";
4
4
  export const CHANNEL_RESPONSE_FORMAT_MIDDLEWARE_NAME = "mda-channel-response-format";
5
- export const SLACK_MRKDWN_INSTRUCTIONS = "Your final response is automatically posted to Slack. Reply directly to the user using Slack-compatible mrkdwn. Do not make a tool call or search for a Slack tool to send the response.";
5
+ export const SLACK_MARKDOWN_INSTRUCTIONS = "Write your final response using standard Markdown. In prose, format URLs as explicit Markdown links, such as [label](https://example.com), or autolinks, such as <https://example.com>, rather than bare URLs. Preserve literal URLs inside code.";
6
6
  function sourceProvider(request) {
7
7
  const configurable = resolveRuntimeConfigurable(request.runtime);
8
8
  const user = configurable?.langgraph_auth_user;
@@ -17,13 +17,13 @@ function systemMessageBlocks(request) {
17
17
  }
18
18
  return Array.isArray(existing) ? existing : [];
19
19
  }
20
- function appendSlackMrkdwnInstructions(request) {
20
+ function appendSlackMarkdownInstructions(request) {
21
21
  return {
22
22
  ...request,
23
23
  systemMessage: new SystemMessage({
24
24
  content: [
25
25
  ...systemMessageBlocks(request),
26
- { type: "text", text: SLACK_MRKDWN_INSTRUCTIONS },
26
+ { type: "text", text: SLACK_MARKDOWN_INSTRUCTIONS },
27
27
  ],
28
28
  }),
29
29
  };
@@ -33,7 +33,7 @@ export function createChannelResponseFormatMiddleware() {
33
33
  name: CHANNEL_RESPONSE_FORMAT_MIDDLEWARE_NAME,
34
34
  async wrapModelCall(request, handler) {
35
35
  return handler(sourceProvider(request) === "slack"
36
- ? appendSlackMrkdwnInstructions(request)
36
+ ? appendSlackMarkdownInstructions(request)
37
37
  : request);
38
38
  },
39
39
  });
@@ -1 +1 @@
1
- {"version":3,"file":"response-format.js","sourceRoot":"","sources":["../../src/channels/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAqB,MAAM,WAAW,CAAC;AAEhE,OAAO,EACL,0BAA0B,GAE3B,MAAM,gCAAgC,CAAC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AE,CAAC;AACrE,CAAC;AAED,SAAS,+BAA+B,CAAC,OAAqB;IAC5D,OAAO;QACL,GAAG,OAAO;QACV,aAAa,EAAE,IAAI,aAAa,CAAC;YAC/B,OAAO,EAAE;gBACP,GAAG,mBAAmB,CAAC,OAAO,CAAC;gBAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE;aACpD;SACF,CAAC;KACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qCAAqC;IAGnD,OAAO,gBAAgB,CAAC;QACtB,IAAI,EAAE,uCAAuC;QAC7C,KAAK,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO;YAClC,OAAO,OAAO,CACZ,cAAc,CAAC,OAAO,CAAC,KAAK,OAAO;gBACjC,CAAC,CAAC,+BAA+B,CAAC,OAAO,CAAC;gBAC1C,CAAC,CAAC,OAAO,CACZ,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "managed-deepagents",
3
- "version": "0.7.1-dev.10",
3
+ "version": "0.7.1-dev.12",
4
4
  "description": "Managed Deep Agents — the `defineDeepAgent` authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.",
5
5
  "keywords": [
6
6
  "langchain",
@@ -66,12 +66,12 @@
66
66
  "zod": "^4.4.3"
67
67
  },
68
68
  "optionalDependencies": {
69
- "@langchain/managed-deepagents-darwin-arm64": "0.7.1-dev.10",
70
- "@langchain/managed-deepagents-darwin-x64": "0.7.1-dev.10",
71
- "@langchain/managed-deepagents-linux-arm64": "0.7.1-dev.10",
72
- "@langchain/managed-deepagents-linux-x64": "0.7.1-dev.10",
73
- "@langchain/managed-deepagents-win32-arm64": "0.7.1-dev.10",
74
- "@langchain/managed-deepagents-win32-x64": "0.7.1-dev.10"
69
+ "@langchain/managed-deepagents-darwin-arm64": "0.7.1-dev.12",
70
+ "@langchain/managed-deepagents-darwin-x64": "0.7.1-dev.12",
71
+ "@langchain/managed-deepagents-linux-arm64": "0.7.1-dev.12",
72
+ "@langchain/managed-deepagents-linux-x64": "0.7.1-dev.12",
73
+ "@langchain/managed-deepagents-win32-arm64": "0.7.1-dev.12",
74
+ "@langchain/managed-deepagents-win32-x64": "0.7.1-dev.12"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26.1.1",