@mcpmesh/core 1.4.1 → 2.0.0-beta.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/index.d.ts CHANGED
@@ -1,5 +1,102 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Producer-side handle bound to a single job. Application code receives one
5
+ * via DDDI injection (the inbound tool wrapper, next dispatch); the
6
+ * constructor is also exposed for tests and the claim worker dispatch path.
7
+ *
8
+ * Each controller owns a per-instance coalescing queue plus a background
9
+ * batching tick that flushes mid-flight progress deltas to the registry on a
10
+ * fixed cadence. The tick is shut down (with a final flush) when the
11
+ * controller is dropped by JS GC.
12
+ */
13
+ export declare class JobController {
14
+ /**
15
+ * Construct a controller bound to `(jobId, instanceId)` against the
16
+ * given `registryUrl`. Spawns a per-controller background batching tick
17
+ * so mid-flight `updateProgress` calls reach the registry on the
18
+ * configured cadence (default 2s); the tick is torn down with a final
19
+ * flush when the controller is dropped.
20
+ */
21
+ constructor(jobId: string, instanceId: string, registryUrl: string)
22
+ /** The job ID this controller is bound to. */
23
+ get jobId(): string
24
+ /**
25
+ * Enqueue a progress update. Coalesces with any prior pending progress
26
+ * for this job — only the latest survives the next batch flush.
27
+ */
28
+ updateProgress(progress: number, message?: string | undefined | null): Promise<void>
29
+ /**
30
+ * Mark the job complete with the given result. Flushes immediately.
31
+ * `result` is any JSON-shaped JS value (object/array/primitive) —
32
+ * mirrors MCP's "results are JSON" contract.
33
+ */
34
+ complete(result: any): Promise<void>
35
+ /** Mark the job failed with the given error reason. Flushes immediately. */
36
+ fail(error: string): Promise<void>
37
+ /**
38
+ * Whether `complete` / `fail` has already been called on this
39
+ * controller. The TS dispatch wrapper uses this to decide whether a
40
+ * returning user function needs an auto-`complete` — users who already
41
+ * `await job.complete(...)` closed out the row, so the wrapper must
42
+ * NOT double-flush.
43
+ *
44
+ * Sync from JS's perspective: returns a Promise<boolean> because the
45
+ * underlying queue read is async, but the call is short.
46
+ */
47
+ isTerminal(): Promise<boolean>
48
+ /**
49
+ * Voluntarily release the lease so a peer replica can re-claim and
50
+ * retry. Used by the TS dispatch wrapper when a handler raises a
51
+ * retryOn-matched exception (issue #894): instead of marking the row
52
+ * terminal=failed, the SDK calls `releaseLease` so the registry resets
53
+ * `owner_instance_id` and a peer replica picks up the row within ~5s
54
+ * via the HEAD-heartbeat path. Note: release does NOT increment
55
+ * `attempt_count` — the claim that picked the row up already counted
56
+ * this attempt; the next claim will count the next attempt.
57
+ *
58
+ * Marks terminal locally before the backend call to fence racing
59
+ * progress updates from the now-defunct attempt (mirror of
60
+ * `JobController::release_lease` in Rust core).
61
+ */
62
+ releaseLease(reason?: string | undefined | null): Promise<void>
63
+ }
64
+ export type JsJobController = JobController
65
+
66
+ /**
67
+ * Consumer-side handle: returned by [`submit_job_napi`] and exposes
68
+ * `wait` / `status` / `cancel` for code that wants to await a remote job.
69
+ */
70
+ export declare class JobProxy {
71
+ /**
72
+ * Construct a proxy bound to a known `jobId` + `registryUrl`. Normally
73
+ * callers obtain a proxy via [`submit_job_napi`] / DDDI injection
74
+ * rather than constructing one directly.
75
+ */
76
+ constructor(jobId: string, registryUrl: string)
77
+ /** The job ID this proxy is bound to. */
78
+ get jobId(): string
79
+ /**
80
+ * Read the latest job state from the registry (single GET).
81
+ * Returns the full job row as a JSON object.
82
+ */
83
+ status(): Promise<any>
84
+ /**
85
+ * Poll until the job reaches a terminal state. Returns the result
86
+ * payload as a JS value (object/array/primitive) on success;
87
+ * rejects with a "timeout: ..." error on `timeoutSecs`, or
88
+ * "cancelled" / other reason on non-success terminal.
89
+ */
90
+ wait(timeoutSecs?: number | undefined | null): Promise<any>
91
+ /**
92
+ * Request cancellation. The registry forwards the signal to the
93
+ * owner replica when alive. Resolves once the registry has
94
+ * acknowledged.
95
+ */
96
+ cancel(reason?: string | undefined | null): Promise<void>
97
+ }
98
+ export type JsJobProxy = JobProxy
99
+
3
100
  /** Handle to a running agent runtime (TypeScript wrapper). */
4
101
  export declare class JsAgentHandle {
5
102
  /**
@@ -42,6 +139,26 @@ export declare class JsAgentHandle {
42
139
  * @returns true if the update was sent successfully
43
140
  */
44
141
  updatePort(port: number): Promise<boolean>
142
+ /**
143
+ * Update the A2A surfaces and agent_type registered with the registry
144
+ * (issue #938 — mid-flight `mesh.a2a.mount(...)` parity with Python's
145
+ * per-heartbeat `_build_a2a_surfaces`).
146
+ *
147
+ * Uses smart diffing — only triggers a full heartbeat when either the
148
+ * agent_type or the serialized surfaces JSON has actually changed.
149
+ * Empty-string surfaces payloads are treated as `null` so the wire
150
+ * stays clean (matches the constructor-time normalization).
151
+ *
152
+ * Call this from the SDK after each `mesh.a2a.mount(...)` so deferred
153
+ * mounts (mounts registered after `startAgent()` / first heartbeat) are
154
+ * reflected in the next heartbeat envelope rather than silently dropped.
155
+ *
156
+ * @param agentType - New agent_type ("a2a", "api", or "mcp_agent")
157
+ * @param surfaces - JSON-encoded surfaces array (matches `JsAgentSpec.surfaces`),
158
+ * or null to clear the field
159
+ * @returns true if the update was sent successfully
160
+ */
161
+ updateSurfaces(agentType: string, surfaces?: string | undefined | null): Promise<boolean>
45
162
  }
46
163
 
47
164
  /**
@@ -61,6 +178,33 @@ export declare function addToolResults(stateJson: string, toolResultsJson: strin
61
178
  */
62
179
  export declare function autoDetectIp(): string
63
180
 
181
+ /**
182
+ * Await the cancel token registered for `jobId` in the process-wide
183
+ * cancel registry. Resolves when the token fires (i.e.
184
+ * [`cancel_active_job_napi`] was called for this `jobId`), or
185
+ * immediately if no token is currently registered (already terminal /
186
+ * never claimed) — callers don't hang on stale jobs.
187
+ *
188
+ * Used by the TS proxy to wire outbound `AbortController`s to the
189
+ * active job's cancel token: when the registry's
190
+ * `POST /jobs/{job_id}/cancel` route fires the token, the proxy aborts
191
+ * in-flight outbound `fetch()` requests so cancel propagates to
192
+ * downstream calls instead of stalling on socket reads. Without this,
193
+ * the producer-side cancel only flips `JobController.is_terminal()`
194
+ * after the outer await returns — outbound HTTP work the handler
195
+ * kicked off keeps running in the background.
196
+ *
197
+ * napi-rs maps `pub async fn -> ()` to `Promise<void>` on the JS side.
198
+ *
199
+ * Resolves on EITHER explicit cancel OR the registry's natural-end
200
+ * signal. Without the latter, futures awaiting a job that finishes
201
+ * without an explicit cancel would hang forever (the snapshot Arc
202
+ * keeps the cancel token alive past `unregister_active_job`), leaking
203
+ * one Rust task + one JS Promise per outbound call. With the `ended`
204
+ * signal, awaiters wake when the registry tears down the entry.
205
+ */
206
+ export declare function awaitJobCancel(jobId: string): Promise<void>
207
+
64
208
  /**
65
209
  * Build a JSON-RPC 2.0 request envelope.
66
210
  *
@@ -97,6 +241,17 @@ export declare function buildResponseFormat(provider: string, schemaJson: string
97
241
  */
98
242
  export declare function callTool(endpoint: string, toolName: string, argsJson: string | undefined | null, headersJson: string | undefined | null, timeoutMs: number, maxRetries: number): Promise<string>
99
243
 
244
+ /**
245
+ * Fire the cancel token registered for `jobId` in the process-wide
246
+ * cancel registry, if any. Returns `true` iff a token was found and
247
+ * fired (matches [`crate::cancel_registry::cancel_active_job`] semantics).
248
+ *
249
+ * Used by the SDK-owned `POST /jobs/{job_id}/cancel` HTTP route — when the
250
+ * registry forwards a cancel to this replica, the route handler calls this
251
+ * to abort the in-flight job. (Route wiring lands in the next dispatch.)
252
+ */
253
+ export declare function cancelActiveJob(jobId: string): boolean
254
+
100
255
  /**
101
256
  * Clean up temporary TLS credential files.
102
257
  *
@@ -112,6 +267,17 @@ export declare function cleanupTls(): void
112
267
  */
113
268
  export declare function createAgenticLoop(configJson: string): string
114
269
 
270
+ /**
271
+ * Snapshot of the active job context on the current Tokio task, or `null`
272
+ * if no job is in scope.
273
+ *
274
+ * Source of truth is the Rust [`crate::job_context`] (set via
275
+ * `with_job` / `run_as_job` by the inbound HTTP wrapper or claim worker).
276
+ * JS code typically reads the AsyncLocalStorage mirror — this binding is
277
+ * for cross-FFI parity / debugging / Rust-originated paths.
278
+ */
279
+ export declare function currentJob(): JobContextSnapshot | null
280
+
115
281
  /** Check if any tool schema property contains x-media-type. */
116
282
  export declare function detectMediaParams(schemaJson: string): boolean
117
283
 
@@ -229,6 +395,22 @@ export declare function getVendorCapabilities(provider: string): string
229
395
  */
230
396
  export declare function initTracePublisher(): Promise<boolean>
231
397
 
398
+ /**
399
+ * Compute the `X-Mesh-Job-Id` / `X-Mesh-Timeout` header values for the
400
+ * active job context, if any.
401
+ *
402
+ * Returns `null` when no job context is active on the current task.
403
+ * The TS outbound HTTP layer (e.g. the proxy `createProxy` factory)
404
+ * merges these into the request headers alongside any existing
405
+ * `X-Trace-Id` propagation.
406
+ *
407
+ * Header *name shape*: this function returns a plain object the SDK can
408
+ * destructure or spread into a request-headers map. We deliberately do NOT
409
+ * reach across into a JS `Headers` instance here — that's TS-runtime
410
+ * territory (Express/Fetch/undici) and varies between transport stacks.
411
+ */
412
+ export declare function injectJobHeaders(): JobHeaders | null
413
+
232
414
  /** Inject trace context into JSON-RPC arguments. */
233
415
  export declare function injectTraceContext(argsJson: string, traceId: string, spanId: string, propagatedHeadersJson?: string | undefined | null): string
234
416
 
@@ -249,6 +431,33 @@ export declare function isTracePublisherAvailable(): Promise<boolean>
249
431
  */
250
432
  export declare function isTracingEnabled(): boolean
251
433
 
434
+ /**
435
+ * Snapshot of the active job context returned by [`current_job_napi`].
436
+ * Mirrors the TS-side `JobContextSnapshot` interface in `job-context.ts`.
437
+ */
438
+ export interface JobContextSnapshot {
439
+ jobId: string
440
+ /** `None` if no deadline is set on the active context. */
441
+ deadlineSecsRemaining?: number
442
+ }
443
+
444
+ /**
445
+ * Headers injected by [`inject_job_headers_napi`].
446
+ *
447
+ * Both fields are optional individually: when an active context has no
448
+ * deadline, `xMeshTimeout` is `None`. When no job context is active at all,
449
+ * the function returns `None` instead of an empty object.
450
+ */
451
+ export interface JobHeaders {
452
+ /** `X-Mesh-Job-Id` header value. */
453
+ xMeshJobId: string
454
+ /**
455
+ * `X-Mesh-Timeout` header value (seconds remaining as decimal string),
456
+ * or `None` if the active context has no deadline.
457
+ */
458
+ xMeshTimeout?: string
459
+ }
460
+
252
461
  /** Agent specification for TypeScript. */
253
462
  export interface JsAgentSpec {
254
463
  /** Base agent name (shared across replicas, e.g., "fortuna") */
@@ -286,6 +495,15 @@ export interface JsAgentSpec {
286
495
  llmAgents?: Array<JsLlmAgentSpec>
287
496
  /** Heartbeat interval in seconds */
288
497
  heartbeatInterval: number
498
+ /**
499
+ * A2A surfaces JSON (issue #933 — TS A2A producer parity with Python /
500
+ * Java). Optional — populated only when `agent_type=a2a` and the SDK has
501
+ * at least one `mesh.a2a.mount(...)` surface registered. Stored as a
502
+ * JSON-encoded string to match the Python `surfaces: Option<String>`
503
+ * shape on `AgentSpec`; the Rust core re-parses before forwarding
504
+ * verbatim to the registry's `MeshAgentRegistration.surfaces` field.
505
+ */
506
+ surfaces?: string
289
507
  }
290
508
 
291
509
  /** Dependency specification for TypeScript. */
@@ -299,6 +517,12 @@ export interface JsDependencySpec {
299
517
  tags: string
300
518
  /** Version constraint (e.g., ">=2.0.0") */
301
519
  version?: string
520
+ /** Issue #547: canonical normalized expected schema (serialized JSON string) */
521
+ expectedSchemaCanonical?: string
522
+ /** Issue #547: SHA256 hash (sha256:<hex>) of expected_schema_canonical */
523
+ expectedSchemaHash?: string
524
+ /** Issue #547: schema match mode ("subset" or "strict") */
525
+ matchMode?: string
302
526
  }
303
527
 
304
528
  /**
@@ -338,6 +562,12 @@ export interface JsLlmProviderInfo {
338
562
  model?: string
339
563
  /** Vendor name for handler selection (e.g., "gemini", "anthropic") */
340
564
  vendor?: string
565
+ /**
566
+ * Provider tool's @mesh.tool kwargs as a JSON string. SDKs decode this
567
+ * to configure the provider proxy from the producer's advertised
568
+ * behavior (e.g. `stream_type`).
569
+ */
570
+ kwargs?: string
341
571
  }
342
572
 
343
573
  /**
@@ -381,6 +611,12 @@ export interface JsMeshEvent {
381
611
  * This allows SDKs to inject the resolved dependency at the correct position.
382
612
  */
383
613
  depIndex?: number
614
+ /**
615
+ * Producer's @mesh.tool kwargs as a JSON string (for dependency_available
616
+ * and dependency_changed). SDKs decode this to configure the consumer-side
617
+ * proxy from the producer's advertised behavior (issue #645 bug 2).
618
+ */
619
+ kwargs?: string
384
620
  /** Function ID of the LLM agent (for llm_tools_updated, llm_provider_available) */
385
621
  functionId?: string
386
622
  /** List of available tools (for llm_tools_updated event) */
@@ -409,6 +645,18 @@ export interface JsToolSpec {
409
645
  dependencies: Array<JsDependencySpec>
410
646
  /** JSON Schema for input parameters (MCP format) - serialized JSON string */
411
647
  inputSchema?: string
648
+ /** Issue #547: raw JSON Schema for output (return type) - serialized JSON string */
649
+ outputSchema?: string
650
+ /** Issue #547: canonical normalized input schema (post-normalize) - serialized JSON string */
651
+ inputSchemaCanonical?: string
652
+ /** Issue #547: SHA256 hash (sha256:<hex>) of input_schema_canonical */
653
+ inputSchemaHash?: string
654
+ /** Issue #547: canonical normalized output schema - serialized JSON string */
655
+ outputSchemaCanonical?: string
656
+ /** Issue #547: SHA256 hash (sha256:<hex>) of output_schema_canonical */
657
+ outputSchemaHash?: string
658
+ /** Issue #547: normalizer warnings (list of strings) */
659
+ schemaWarnings?: Array<string>
412
660
  /** LLM filter specification (for @mesh.llm decorated functions) - serialized JSON string */
413
661
  llmFilter?: string
414
662
  /** LLM provider specification (for mesh delegation) - serialized JSON string */
@@ -426,6 +674,15 @@ export declare function makeSchemaStrict(schemaJson: string, addAllRequired?: bo
426
674
  /** Check if a header matches the propagation allowlist. */
427
675
  export declare function matchesPropagateHeader(headerName: string, allowlistCsv: string): boolean
428
676
 
677
+ /**
678
+ * Normalize a raw JSON schema into canonical form + SHA256 hash (Issue #547).
679
+ *
680
+ * Returns a JSON string with fields: canonical, hash, verdict, warnings.
681
+ * Mirrors the Python `normalize_schema_py` binding so TypeScript runtimes can
682
+ * emit the same canonical form + hash as Python producers/consumers.
683
+ */
684
+ export declare function normalizeSchema(rawJson: string, origin?: string | undefined | null): string
685
+
429
686
  /**
430
687
  * Parse SSE or plain JSON response and extract JSON data.
431
688
  *
@@ -520,3 +777,32 @@ export declare function startAgent(spec: JsAgentSpec): JsAgentHandle
520
777
 
521
778
  /** Strip markdown code fences from content. */
522
779
  export declare function stripCodeFences(text: string): string
780
+
781
+ /**
782
+ * Submit a new job via the registry and return a [`JsJobProxy`].
783
+ *
784
+ * Mirrors [`SubmitJobArgs`] field-for-field. Single-arg shape matches
785
+ * Python's PyO3 binding.
786
+ */
787
+ export declare function submitJob(args: SubmitJobArgs): Promise<JobProxy>
788
+
789
+ /**
790
+ * Arguments for [`submit_job_napi`]. Mirrors [`SubmitJobArgs`]
791
+ * field-for-field; `payload` is any JSON-shaped JS value.
792
+ *
793
+ * Optional `i64` fields are typed as `Option<i64>` — JavaScript Number
794
+ * safely represents integers up to 2^53; callers passing unix-epoch
795
+ * timestamps stay well inside that range.
796
+ */
797
+ export interface SubmitJobArgs {
798
+ registryUrl: string
799
+ capability: string
800
+ payload: any
801
+ submittedBy: string
802
+ ownerInstanceId?: string
803
+ maxDuration?: number
804
+ maxRetries?: number
805
+ totalDeadline?: number
806
+ }
807
+
808
+ export declare function withJobAsync(jobId: string, deadlineSecs: number | undefined | null, body: Promise<any>): Promise<any>
package/index.js CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('@mcpmesh/core-android-arm64')
79
79
  const bindingPackageVersion = require('@mcpmesh/core-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('@mcpmesh/core-android-arm-eabi')
95
95
  const bindingPackageVersion = require('@mcpmesh/core-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('@mcpmesh/core-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('@mcpmesh/core-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('@mcpmesh/core-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('@mcpmesh/core-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@mcpmesh/core-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('@mcpmesh/core-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('@mcpmesh/core-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('@mcpmesh/core-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('@mcpmesh/core-darwin-universal')
184
184
  const bindingPackageVersion = require('@mcpmesh/core-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('@mcpmesh/core-darwin-x64')
200
200
  const bindingPackageVersion = require('@mcpmesh/core-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('@mcpmesh/core-darwin-arm64')
216
216
  const bindingPackageVersion = require('@mcpmesh/core-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('@mcpmesh/core-freebsd-x64')
236
236
  const bindingPackageVersion = require('@mcpmesh/core-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('@mcpmesh/core-freebsd-arm64')
252
252
  const bindingPackageVersion = require('@mcpmesh/core-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('@mcpmesh/core-linux-x64-musl')
273
273
  const bindingPackageVersion = require('@mcpmesh/core-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('@mcpmesh/core-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('@mcpmesh/core-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('@mcpmesh/core-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('@mcpmesh/core-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('@mcpmesh/core-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('@mcpmesh/core-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('@mcpmesh/core-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('@mcpmesh/core-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('@mcpmesh/core-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('@mcpmesh/core-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('@mcpmesh/core-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('@mcpmesh/core-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('@mcpmesh/core-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('@mcpmesh/core-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('@mcpmesh/core-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('@mcpmesh/core-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('@mcpmesh/core-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('@mcpmesh/core-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@mcpmesh/core-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('@mcpmesh/core-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@mcpmesh/core-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('@mcpmesh/core-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('@mcpmesh/core-openharmony-arm64')
478
478
  const bindingPackageVersion = require('@mcpmesh/core-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('@mcpmesh/core-openharmony-x64')
494
494
  const bindingPackageVersion = require('@mcpmesh/core-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('@mcpmesh/core-openharmony-arm')
510
510
  const bindingPackageVersion = require('@mcpmesh/core-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '1.4.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 1.4.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '2.0.0-beta.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 2.0.0-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -576,14 +576,21 @@ if (!nativeBinding) {
576
576
  }
577
577
 
578
578
  module.exports = nativeBinding
579
+ module.exports.JobController = nativeBinding.JobController
580
+ module.exports.JsJobController = nativeBinding.JsJobController
581
+ module.exports.JobProxy = nativeBinding.JobProxy
582
+ module.exports.JsJobProxy = nativeBinding.JsJobProxy
579
583
  module.exports.JsAgentHandle = nativeBinding.JsAgentHandle
580
584
  module.exports.addToolResults = nativeBinding.addToolResults
581
585
  module.exports.autoDetectIp = nativeBinding.autoDetectIp
586
+ module.exports.awaitJobCancel = nativeBinding.awaitJobCancel
582
587
  module.exports.buildJsonrpcRequest = nativeBinding.buildJsonrpcRequest
583
588
  module.exports.buildResponseFormat = nativeBinding.buildResponseFormat
584
589
  module.exports.callTool = nativeBinding.callTool
590
+ module.exports.cancelActiveJob = nativeBinding.cancelActiveJob
585
591
  module.exports.cleanupTls = nativeBinding.cleanupTls
586
592
  module.exports.createAgenticLoop = nativeBinding.createAgenticLoop
593
+ module.exports.currentJob = nativeBinding.currentJob
587
594
  module.exports.detectMediaParams = nativeBinding.detectMediaParams
588
595
  module.exports.determineOutputMode = nativeBinding.determineOutputMode
589
596
  module.exports.extractContent = nativeBinding.extractContent
@@ -601,12 +608,14 @@ module.exports.getRedisUrl = nativeBinding.getRedisUrl
601
608
  module.exports.getTlsConfig = nativeBinding.getTlsConfig
602
609
  module.exports.getVendorCapabilities = nativeBinding.getVendorCapabilities
603
610
  module.exports.initTracePublisher = nativeBinding.initTracePublisher
611
+ module.exports.injectJobHeaders = nativeBinding.injectJobHeaders
604
612
  module.exports.injectTraceContext = nativeBinding.injectTraceContext
605
613
  module.exports.isSimpleSchema = nativeBinding.isSimpleSchema
606
614
  module.exports.isTracePublisherAvailable = nativeBinding.isTracePublisherAvailable
607
615
  module.exports.isTracingEnabled = nativeBinding.isTracingEnabled
608
616
  module.exports.makeSchemaStrict = nativeBinding.makeSchemaStrict
609
617
  module.exports.matchesPropagateHeader = nativeBinding.matchesPropagateHeader
618
+ module.exports.normalizeSchema = nativeBinding.normalizeSchema
610
619
  module.exports.parseSseResponse = nativeBinding.parseSseResponse
611
620
  module.exports.parseSseResponseToObject = nativeBinding.parseSseResponseToObject
612
621
  module.exports.prepareTls = nativeBinding.prepareTls
@@ -618,3 +627,5 @@ module.exports.resolveConfigInt = nativeBinding.resolveConfigInt
618
627
  module.exports.sanitizeSchema = nativeBinding.sanitizeSchema
619
628
  module.exports.startAgent = nativeBinding.startAgent
620
629
  module.exports.stripCodeFences = nativeBinding.stripCodeFences
630
+ module.exports.submitJob = nativeBinding.submitJob
631
+ module.exports.withJobAsync = nativeBinding.withJobAsync
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpmesh/core",
3
- "version": "1.4.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "MCP Mesh Rust core bindings for Node.js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",