mesedi 0.7.0 → 0.7.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.
Files changed (62) hide show
  1. package/README.md +114 -24
  2. package/dist/anthropic_integration.js +1 -1
  3. package/dist/anthropic_integration.js.map +1 -1
  4. package/dist/client.d.ts +1 -1
  5. package/dist/client.js +1 -1
  6. package/dist/client.js.map +1 -1
  7. package/dist/cohere_integration.d.ts +1 -1
  8. package/dist/cohere_integration.js +3 -3
  9. package/dist/cohere_integration.js.map +1 -1
  10. package/dist/errors.d.ts +27 -3
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +68 -7
  13. package/dist/errors.js.map +1 -1
  14. package/dist/events.d.ts +1 -1
  15. package/dist/events.js +10 -10
  16. package/dist/events.js.map +1 -1
  17. package/dist/gemini_integration.d.ts +2 -2
  18. package/dist/gemini_integration.js +3 -3
  19. package/dist/gemini_integration.js.map +1 -1
  20. package/dist/halt_stream.js +1 -1
  21. package/dist/halt_stream.js.map +1 -1
  22. package/dist/integrations/_integration_helpers.d.ts +98 -0
  23. package/dist/integrations/_integration_helpers.d.ts.map +1 -0
  24. package/dist/integrations/_integration_helpers.js +149 -0
  25. package/dist/integrations/_integration_helpers.js.map +1 -0
  26. package/dist/integrations/langchain.d.ts +4 -4
  27. package/dist/integrations/langchain.d.ts.map +1 -1
  28. package/dist/integrations/langchain.js +239 -13
  29. package/dist/integrations/langchain.js.map +1 -1
  30. package/dist/integrations/langgraph.d.ts +6 -6
  31. package/dist/integrations/langgraph.js +6 -6
  32. package/dist/integrations/mastra.d.ts +13 -7
  33. package/dist/integrations/mastra.d.ts.map +1 -1
  34. package/dist/integrations/mastra.js +237 -23
  35. package/dist/integrations/mastra.js.map +1 -1
  36. package/dist/integrations/openai_agents.d.ts +3 -3
  37. package/dist/integrations/openai_agents.js +3 -3
  38. package/dist/integrations/promptfoo.d.ts +1 -1
  39. package/dist/integrations/promptfoo.js +1 -1
  40. package/dist/integrations/ragas.d.ts +1 -1
  41. package/dist/integrations/ragas.js +1 -1
  42. package/dist/integrations/vectara.d.ts +3 -3
  43. package/dist/integrations/vectara.js +3 -3
  44. package/dist/observe.d.ts +16 -16
  45. package/dist/observe.js +8 -8
  46. package/dist/ollama_integration.d.ts +5 -5
  47. package/dist/ollama_integration.js +10 -10
  48. package/dist/ollama_integration.js.map +1 -1
  49. package/dist/openai_integration.d.ts +3 -3
  50. package/dist/openai_integration.js +6 -6
  51. package/dist/openai_integration.js.map +1 -1
  52. package/dist/tool.d.ts +34 -0
  53. package/dist/tool.d.ts.map +1 -1
  54. package/dist/tool.js +46 -4
  55. package/dist/tool.js.map +1 -1
  56. package/dist/truncate.d.ts +4 -4
  57. package/dist/truncate.js +4 -4
  58. package/dist/vertex_gemini_integration.d.ts +2 -2
  59. package/dist/vertex_gemini_integration.js +2 -2
  60. package/dist/wrap.d.ts +3 -3
  61. package/dist/wrap.js +1 -1
  62. package/package.json +19 -7
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Vertex AI Gemini TypeScript SDK monkey-patch — auto-emit llm_call
2
+ * Vertex AI Gemini TypeScript SDK monkey-patch: auto-emit llm_call
3
3
  * events for every GenerativeModel.generateContent() call inside a
4
4
  * wrap()'d execution against the Vertex AI surface
5
5
  * (@google-cloud/vertexai package).
6
6
  *
7
7
  * Same provider tag ("gemini") and same canonical error_class map
8
8
  * as instrumentGemini. Customers running both surfaces call both
9
- * instrumentGemini() and instrumentVertexGemini() — each patches a
9
+ * instrumentGemini() and instrumentVertexGemini(): each patches a
10
10
  * different package's class. Provider_incident detection sees one
11
11
  * signal regardless of which surface was hit.
12
12
  *
package/dist/wrap.d.ts CHANGED
@@ -61,7 +61,7 @@ export interface WrapOptions {
61
61
  */
62
62
  budget?: Budget;
63
63
  /**
64
- * Mesedi #5: optional per-execution tenant identifier from the
64
+ * optional per-execution tenant identifier from the
65
65
  * host SaaS application (an end-user ID, customer ID, etc.). When
66
66
  * set, every execution this wrap produces is attributed to that
67
67
  * tenant and surfaces in `GET /reports/cost-by-tenant`. Omit on
@@ -76,7 +76,7 @@ export interface WrapOptions {
76
76
  */
77
77
  tenant_id?: string;
78
78
  /**
79
- * Mesedi #11 (Wave 1.2.b): optional human-readable agent name. When
79
+ * (): optional human-readable agent name. When
80
80
  * set, `emitAgentHandoff` will use it as a fallback when the caller
81
81
  * does not pass `fromAgent`, letting multi-agent code avoid
82
82
  * repeating the same string at every handoff site:
@@ -91,7 +91,7 @@ export interface WrapOptions {
91
91
  *
92
92
  * Explicit `fromAgent` always wins. If neither is supplied while
93
93
  * inside `wrap()`, `emitAgentHandoff` throws an Error rather than
94
- * silently emitting an `unknown` source agent — the topology graph
94
+ * silently emitting an `unknown` source agent: the topology graph
95
95
  * powers cascading_failure / coordination_deadlock clustering and
96
96
  * must not be polluted.
97
97
  */
package/dist/wrap.js CHANGED
@@ -79,7 +79,7 @@ export function wrap(fnOrOpts, maybeFn) {
79
79
  status: Status.STARTED,
80
80
  started_at: utcNowRfc3339(),
81
81
  sdk_language: "typescript",
82
- sdk_version: "0.7.0",
82
+ sdk_version: "0.7.1",
83
83
  // Optional tenant_id flows through to the wire body via
84
84
  // executionStartPayload's omitempty-style assignment.
85
85
  ...(opts.tenant_id !== undefined ? { tenant_id: opts.tenant_id } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mesedi",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Mesedi SDK — guardians for autonomous AI agents. Detect failures, halt runaways, escalate first occurrence.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://mesedi.ai",
@@ -43,10 +43,10 @@
43
43
  }
44
44
  },
45
45
  "peerDependencies": {
46
- "ai": ">=3.0.0",
46
+ "@langchain/core": ">=0.3.0 <2.0.0",
47
47
  "@mastra/core": ">=1.0.0",
48
48
  "@mastra/observability": ">=1.0.0",
49
- "@langchain/core": ">=0.3.0 <0.5.0"
49
+ "ai": ">=3.0.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "ai": {
@@ -93,11 +93,23 @@
93
93
  "provenance": true
94
94
  },
95
95
  "devDependencies": {
96
- "typescript": "^5.4.0",
97
- "@types/node": "^20.11.0",
98
- "vitest": "^4.1.9",
96
+ "@ai-sdk/anthropic": "^4.0.8",
97
+ "@langchain/anthropic": "^1.5.1",
98
+ "@langchain/core": "^1.2.1",
99
99
  "@mastra/core": "^1.48.0",
100
100
  "@mastra/observability": "^1.15.2",
101
- "@langchain/core": "^0.3.0"
101
+ "@types/node": "^20.11.0",
102
+ "typescript": "^5.4.0",
103
+ "vitest": "^4.1.9"
104
+ },
105
+ "//overrides": "Pins patched versions of dev-only transitive deps flagged by Dependabot. All are pulled in by the framework-adapter devDependencies (@mastra/@langchain/@ai-sdk) and NONE ship in the published package (files = dist + README, dependencies = none), so this is Security-tab hygiene, not a runtime fix. Each pin is the first-patched version within the same major, so the adapters stay compatible.",
106
+ "overrides": {
107
+ "fast-uri": "3.1.5",
108
+ "ip-address": "10.3.1",
109
+ "js-yaml": "3.15.1",
110
+ "nanoid": "3.3.18",
111
+ "postcss": "8.5.23",
112
+ "hono": "4.12.34",
113
+ "@hono/node-server": "1.19.15"
102
114
  }
103
115
  }