@m4trix/core 0.13.0 → 0.14.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.cjs CHANGED
@@ -1568,12 +1568,11 @@ var DepedencyLayer = {
1568
1568
  name,
1569
1569
  _name: def.name,
1570
1570
  config: def.config,
1571
- decodeConfig,
1572
- define() {
1573
- return dep;
1574
- }
1571
+ decodeConfig
1575
1572
  };
1576
- return dep;
1573
+ return Object.assign(dep, {
1574
+ define: () => dep
1575
+ });
1577
1576
  }
1578
1577
  };
1579
1578
  function toLayerArray(layers) {
@@ -1592,6 +1591,15 @@ function assertUniqueLayerNames(layers) {
1592
1591
  seen.add(key);
1593
1592
  }
1594
1593
  }
1594
+ var DoneTypeId = Symbol.for("sunken-trove/Done");
1595
+ var Done = {
1596
+ of(value) {
1597
+ return { [DoneTypeId]: DoneTypeId, _tag: "Done", done: value };
1598
+ },
1599
+ is(u) {
1600
+ return typeof u === "object" && u !== null && DoneTypeId in u && u[DoneTypeId] === DoneTypeId;
1601
+ }
1602
+ };
1595
1603
  var Skill = class _Skill {
1596
1604
  constructor(params) {
1597
1605
  this._inputSchema = params.inputSchema;
@@ -1698,7 +1706,7 @@ var Skill = class _Skill {
1698
1706
  for (const c of chunks) {
1699
1707
  yield c;
1700
1708
  }
1701
- yield { _tag: "Done", done: decodedDone };
1709
+ yield Done.of(decodedDone);
1702
1710
  },
1703
1711
  invoke: async (input, runtime) => {
1704
1712
  const decodedInput = effect.Effect.runSync(
@@ -1931,6 +1939,7 @@ exports.Channel = Channel;
1931
1939
  exports.ChannelName = ChannelName;
1932
1940
  exports.ConfiguredChannel = ConfiguredChannel;
1933
1941
  exports.DepedencyLayer = DepedencyLayer;
1942
+ exports.Done = Done;
1934
1943
  exports.EventMetaSchema = EventMetaSchema;
1935
1944
  exports.ExposeAuthError = ExposeAuthError;
1936
1945
  exports.ExpressEndpoint = ExpressEndpoint;