@m4trix/core 0.11.1 → 0.12.0

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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { HttpStreamOptions, MessageStream, Pump, Source, StreamChunk, StreamTransformer, ensureFullWords, httpStreamResponse } from './stream/index.js';
2
2
  import { Socket } from 'socket.io';
3
3
  export { FormatType, MessageFilterType, TransformMessages } from './helper/index.js';
4
- export { Agent, AgentBinding, AgentFactory, AgentNetwork, AgentNetworkEvent, AgentNetworkEventDef, AnyAgent, AuthResult, Channel, ChannelDef, ChannelName, ConfiguredChannel, ContextEvents, EmitPayload, EnvelopeLike, EventEnvelope, EventMeta, EventMetaSchema, EventPlane, ExposeAuthError, ExposeOptions, ExposeRequest, ExposeSelect, ExposedAPI, ExposedStream, ExpressEndpoint, ExpressEndpointOptions, ExpressHandler, ExpressRequest, ExpressResponse, LayerName, LayersFromDeps, NextEndpoint, NextEndpointOptions, NextGetHandler, OnRequestContext, RunEvents, SetupContext, Sink, SinkDef, Skill, SkillDefineContext, SkillDependency, SkillDependencyDef, SkillInstance, SkillRuntimeOptions, SpawnCallbackContext, SpawnFn, SpawnerBuilder, StreamFactory, UnboundEvent, consoleTracer, consoleTracerLayer, formatSSE, isHttpStreamSink, toSSEStream } from './matrix/index.js';
4
+ export { Agent, AgentBinding, AgentFactory, AgentNetwork, AgentNetworkEvent, AgentNetworkEventDef, AnyAgent, AuthResult, Channel, ChannelDef, ChannelName, ConfiguredChannel, ContextEvents, DepedencyLayer, DepedencyLayerDef, EmitPayload, EnvelopeLike, EventEnvelope, EventMeta, EventMetaSchema, EventPlane, ExposeAuthError, ExposeOptions, ExposeRequest, ExposeSelect, ExposedAPI, ExposedStream, ExpressEndpoint, ExpressEndpointOptions, ExpressHandler, ExpressRequest, ExpressResponse, LayerName, LayersFromDeps, NextEndpoint, NextEndpointOptions, NextGetHandler, OnRequestContext, RunEvents, SetupContext, Sink, SinkDef, Skill, SkillDefineContext, SkillInstance, SkillRuntimeOptions, SpawnCallbackContext, SpawnFn, SpawnerBuilder, StreamFactory, UnboundEvent, consoleTracer, consoleTracerLayer, formatSSE, isHttpStreamSink, toSSEStream } from './matrix/index.js';
5
5
  export { Schema as S } from 'effect';
6
6
  import '@langchain/core/messages';
7
7
  import 'effect/ParseResult';
package/dist/index.js CHANGED
@@ -1828,7 +1828,7 @@ var LayerName = Brand.refined(
1828
1828
  (s) => typeof s === "string" && CAMEL_CASE_REGEX.test(s),
1829
1829
  (s) => Brand.error(`Expected camelCase (e.g. myLayerFoo), got: ${s}`)
1830
1830
  );
1831
- var SkillDependency = {
1831
+ var DepedencyLayer = {
1832
1832
  of(config) {
1833
1833
  const name = LayerName(config.name);
1834
1834
  const decode = Schema.decodeUnknown(config.shape);
@@ -1897,7 +1897,7 @@ var Skill = class _Skill {
1897
1897
  doneSchema: schema
1898
1898
  });
1899
1899
  }
1900
- use(...layers) {
1900
+ dependsOn(...layers) {
1901
1901
  const normalized = toLayerArray(layers);
1902
1902
  const allLayers = [...this._layers, ...normalized];
1903
1903
  assertUniqueLayerNames(allLayers);
@@ -2184,6 +2184,6 @@ var consoleTracerLayer = Layer.setTracer(
2184
2184
  consoleTracer
2185
2185
  );
2186
2186
 
2187
- export { Agent, AgentFactory, AgentNetwork, AgentNetworkEvent, Channel, ChannelName, ConfiguredChannel, EventMetaSchema, ExposeAuthError, ExpressEndpoint, LayerName, NextEndpoint, Pump, Sink, Skill, SkillDependency, SocketIoFactory, TransformMessages, consoleTracer, consoleTracerLayer, ensureFullWords, formatSSE, httpStreamResponse, isHttpStreamSink, toSSEStream };
2187
+ export { Agent, AgentFactory, AgentNetwork, AgentNetworkEvent, Channel, ChannelName, ConfiguredChannel, DepedencyLayer, EventMetaSchema, ExposeAuthError, ExpressEndpoint, LayerName, NextEndpoint, Pump, Sink, Skill, SocketIoFactory, TransformMessages, consoleTracer, consoleTracerLayer, ensureFullWords, formatSSE, httpStreamResponse, isHttpStreamSink, toSSEStream };
2188
2188
  //# sourceMappingURL=out.js.map
2189
2189
  //# sourceMappingURL=index.js.map