@dual-os/linear-api 6.0.5 → 6.1.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.
Files changed (52) hide show
  1. package/README.md +2 -1
  2. package/Runner.js +3 -3
  3. package/Runner.js.map +2 -2
  4. package/bundle-inventory.json +1 -1
  5. package/dist/auth.js +4 -4
  6. package/dist/channel/internal/webhook.d.ts +3 -0
  7. package/dist/channel/internal/webhook.d.ts.map +1 -1
  8. package/dist/channel/internal/webhook.js +3 -3
  9. package/dist/channel/linear-app-client.d.ts +1 -0
  10. package/dist/channel/linear-app-client.d.ts.map +1 -1
  11. package/dist/channel/linear-app-client.js +3 -3
  12. package/dist/channel/linear-app-definition.d.ts +3 -0
  13. package/dist/channel/linear-app-definition.d.ts.map +1 -1
  14. package/dist/channel/linear-app-definition.js +3 -3
  15. package/dist/channel/linear-app.d.ts +1 -0
  16. package/dist/channel/linear-app.d.ts.map +1 -1
  17. package/dist/channel/linear-app.js +6 -6
  18. package/dist/generated/http.js +5 -5
  19. package/dist/generated/operations.js +6 -6
  20. package/dist/generated/plugin.js +8 -8
  21. package/dist/plugin.d.ts +3 -0
  22. package/dist/plugin.d.ts.map +1 -1
  23. package/dist/plugin.js +11 -11
  24. package/dist/triggers.js +7 -7
  25. package/dual-contracts.json +1 -0
  26. package/dual-plugin.json +1 -1
  27. package/package.json +1 -1
  28. package/{plugin-evq9z31a.js → plugin-2s4a8q89.js} +3 -3
  29. package/{plugin-292sech3.js → plugin-7dyhjnyq.js} +3 -3
  30. package/{plugin-acwx0zjc.js → plugin-8540346t.js} +5 -5
  31. package/{plugin-aaq7c99y.js → plugin-8gk6v58x.js} +4 -3
  32. package/{plugin-aaq7c99y.js.map → plugin-8gk6v58x.js.map} +3 -3
  33. package/{plugin-0pkez622.js → plugin-bysj8fds.js} +45 -30
  34. package/{plugin-0pkez622.js.map → plugin-bysj8fds.js.map} +5 -4
  35. package/{plugin-c5xtmfce.js → plugin-cfmatvhp.js} +3 -3
  36. package/{plugin-5d2kw2pq.js → plugin-d9nmerg6.js} +10 -9
  37. package/{plugin-5d2kw2pq.js.map → plugin-d9nmerg6.js.map} +3 -3
  38. package/{plugin-jgac4d6v.js → plugin-r9hrxt0e.js} +3 -3
  39. package/{plugin-9vdeenc2.js → plugin-rmaz7x3d.js} +268 -131
  40. package/{plugin-9vdeenc2.js.map → plugin-rmaz7x3d.js.map} +8 -9
  41. package/{plugin-03c4ezxj.js → plugin-s6xrx2a0.js} +5 -4
  42. package/plugin-s6xrx2a0.js.map +10 -0
  43. package/{plugin-pbx41zqr.js → plugin-v011a9pv.js} +19 -3
  44. package/plugin-v011a9pv.js.map +10 -0
  45. package/plugin-03c4ezxj.js.map +0 -10
  46. package/plugin-pbx41zqr.js.map +0 -10
  47. /package/licenses/{@dual-os_sdk@0.9.0 → @dual-os_sdk@0.11.0}/LICENSE +0 -0
  48. /package/{plugin-evq9z31a.js.map → plugin-2s4a8q89.js.map} +0 -0
  49. /package/{plugin-292sech3.js.map → plugin-7dyhjnyq.js.map} +0 -0
  50. /package/{plugin-acwx0zjc.js.map → plugin-8540346t.js.map} +0 -0
  51. /package/{plugin-c5xtmfce.js.map → plugin-cfmatvhp.js.map} +0 -0
  52. /package/{plugin-jgac4d6v.js.map → plugin-r9hrxt0e.js.map} +0 -0
@@ -3900,7 +3900,7 @@ var flatten3 = (self) => flatMap5(self, identity);
3900
3900
  var map6 = /* @__PURE__ */ dual(2, (self, f) => new ContImpl(self, mapCont, f));
3901
3901
  var mapEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMap(self, f) : map6(self, f));
3902
3902
  var mapErrorEager = /* @__PURE__ */ dual(2, (self, f) => effectIsExit(self) ? exitMapError(self, f) : mapError3(self, f));
3903
- var mapBothEager = /* @__PURE__ */ dual(2, (self, options) => effectIsExit(self) ? exitMapBoth(self, options) : mapBoth(self, options));
3903
+ var mapBothEager = /* @__PURE__ */ dual(2, (self, options) => effectIsExit(self) ? exitMapBoth(self, options) : mapBoth2(self, options));
3904
3904
  var exitInterrupt = (fiberId) => exitFailCause(causeInterrupt(fiberId));
3905
3905
  var exitIsSuccess = (self) => self._tag === "Success";
3906
3906
  var exitIsFailure = (self) => self._tag === "Failure";
@@ -4021,7 +4021,7 @@ var catchReason2 = /* @__PURE__ */ dual((args) => isEffect2(args[0]), (self, err
4021
4021
  return orElse ? orElse(reason, e) : fail8(e);
4022
4022
  }));
4023
4023
  var mapError3 = /* @__PURE__ */ dual(2, (self, f) => catchCause(self, (cause) => failCause2(causeMap(cause, f))));
4024
- var mapBoth = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
4024
+ var mapBoth2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(self, {
4025
4025
  onFailure: (cause) => failCause2(causeMap(cause, options.onFailure)),
4026
4026
  onSuccess: (a) => sync2(() => options.onSuccess(a))
4027
4027
  }));
@@ -5977,6 +5977,7 @@ var catchCause2 = catchCause;
5977
5977
  var catchIf = catchIf2;
5978
5978
  var catchCauseIf = catchCauseIf2;
5979
5979
  var mapError = mapError3;
5980
+ var mapBoth = mapBoth2;
5980
5981
  var orDie = orDie2;
5981
5982
  var tapError3 = tapError2;
5982
5983
  var ignore = ignore2;
@@ -9585,33 +9586,33 @@ var toType2 = /* @__PURE__ */ memoizeIdempotent((ast) => {
9585
9586
  return type;
9586
9587
  });
9587
9588
  var toEncoded = /* @__PURE__ */ memoizeIdempotent((ast) => {
9588
- return toType2(flip2(ast));
9589
+ return toType2(flip3(ast));
9589
9590
  });
9590
9591
  function flipEncoding(ast, encoding) {
9591
9592
  const links = encoding;
9592
9593
  const len = links.length;
9593
9594
  const last = links[len - 1];
9594
- const ls = [new Link(flip2(replaceEncoding(ast, undefined)), links[0].transformation.flip())];
9595
+ const ls = [new Link(flip3(replaceEncoding(ast, undefined)), links[0].transformation.flip())];
9595
9596
  for (let i = 1;i < len; i++) {
9596
- ls.unshift(new Link(flip2(links[i - 1].to), links[i].transformation.flip()));
9597
+ ls.unshift(new Link(flip3(links[i - 1].to), links[i].transformation.flip()));
9597
9598
  }
9598
- const to = flip2(last.to);
9599
+ const to = flip3(last.to);
9599
9600
  if (to.encoding) {
9600
9601
  return replaceEncoding(to, [...to.encoding, ...ls]);
9601
9602
  } else {
9602
9603
  return replaceEncoding(to, ls);
9603
9604
  }
9604
9605
  }
9605
- var flip2 = /* @__PURE__ */ memoize((ast) => {
9606
+ var flip3 = /* @__PURE__ */ memoize((ast) => {
9606
9607
  if (ast.encoding) {
9607
9608
  return flipEncoding(ast, ast.encoding);
9608
9609
  }
9609
9610
  const owner = getContextOwner(ast);
9610
9611
  if (owner !== ast) {
9611
- const flipped = flip2(owner);
9612
+ const flipped = flip3(owner);
9612
9613
  return flipped === owner ? ast : replaceContext(flipped, ast.context);
9613
9614
  }
9614
- return "flip" in ast ? ast.flip(flip2) : ("recur" in ast) ? ast.recur(flip2) : ast;
9615
+ return "flip" in ast ? ast.flip(flip3) : ("recur" in ast) ? ast.recur(flip3) : ast;
9615
9616
  });
9616
9617
  function fromConst(ast, value) {
9617
9618
  const succeed = value === 0 ? sameExit : succeed7(value);
@@ -10150,7 +10151,7 @@ function decodeUnknownOption(schema, options) {
10150
10151
  }
10151
10152
  var decodeOption2 = decodeUnknownOption;
10152
10153
  function encodeUnknownEffect(schema, options) {
10153
- const parser = run2(flip2(schema.ast));
10154
+ const parser = run2(flip3(schema.ast));
10154
10155
  return options === undefined ? parser : (input, overrideOptions) => parser(input, mergeParseOptions(options, overrideOptions));
10155
10156
  }
10156
10157
  var mergeParseOptions = (options, overrideOptions) => overrideOptions ? {
@@ -11948,6 +11949,19 @@ var optional = /* @__PURE__ */ lambda((self) => {
11948
11949
  var toType = /* @__PURE__ */ lambda((schema) => make19(toType2(schema.ast), {
11949
11950
  schema
11950
11951
  }));
11952
+ var FlipTypeId = "~effect/Schema/flip";
11953
+ function isFlip$(schema) {
11954
+ return hasProperty(schema, FlipTypeId) && schema[FlipTypeId] === FlipTypeId;
11955
+ }
11956
+ function flip(schema) {
11957
+ if (isFlip$(schema)) {
11958
+ return schema.schema.rebuild(flip3(schema.ast));
11959
+ }
11960
+ return make19(flip3(schema.ast), {
11961
+ [FlipTypeId]: FlipTypeId,
11962
+ schema
11963
+ });
11964
+ }
11951
11965
  function Literal(literal) {
11952
11966
  const out = make19(new Literal2(literal), {
11953
11967
  literal,
@@ -13731,6 +13745,46 @@ var filterMapArray = /* @__PURE__ */ dual(2, (self, filter) => transformPull(sel
13731
13745
  }
13732
13746
  return isReadonlyArrayNonEmpty(passes) ? succeed4(passes) : flatMap3(pull, loop);
13733
13747
  }))));
13748
+ var mapAccum = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, initial, f, options) => fromTransform((upstream, scope) => map4(toTransform(self)(upstream, scope), (pull) => {
13749
+ let state = initial();
13750
+ let current;
13751
+ let index = 0;
13752
+ let cause;
13753
+ const pullNext = matchCauseEffect2(pull, {
13754
+ onFailure(cause_) {
13755
+ cause = cause_;
13756
+ const b = options?.onHalt && options.onHalt(state);
13757
+ return b && b.length > 0 ? succeed4([state, b]) : failCause(cause_);
13758
+ },
13759
+ onSuccess(a) {
13760
+ const b = f(state, a);
13761
+ return isArray(b) ? succeed4(b) : b;
13762
+ }
13763
+ });
13764
+ const pump = suspend(function loop() {
13765
+ if (current === undefined) {
13766
+ if (cause)
13767
+ return failCause(cause);
13768
+ return flatMap3(pullNext, ([newState, values]) => {
13769
+ state = newState;
13770
+ if (values.length === 0) {
13771
+ return loop();
13772
+ } else if (values.length === 1) {
13773
+ return succeed4(values[0]);
13774
+ }
13775
+ current = values;
13776
+ return loop();
13777
+ });
13778
+ }
13779
+ const next = current[index++];
13780
+ if (index >= current.length) {
13781
+ current = undefined;
13782
+ index = 0;
13783
+ }
13784
+ return succeed4(next);
13785
+ });
13786
+ return pump;
13787
+ })));
13734
13788
  var tapError4 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed4(tapError3(pull, (err) => isDone3(err) ? void_2 : asVoid2(f(err))))));
13735
13789
  var mergeAll3 = /* @__PURE__ */ dual(2, (channels, {
13736
13790
  bufferSize = 16,
@@ -14053,6 +14107,13 @@ var merge = /* @__PURE__ */ dual((args) => isStream(args[0]) && isStream(args[1]
14053
14107
  var mergeEffect2 = /* @__PURE__ */ dual(2, (self, effect) => self.channel.pipe(mergeEffect(effect), fromChannel));
14054
14108
  var filterMap2 = /* @__PURE__ */ dual(2, (self, filter) => fromChannel(filterMapArray(toChannel(self), filter)));
14055
14109
  var tapError = /* @__PURE__ */ dual(2, (self, f) => self.channel.pipe(tapError4(f), fromChannel));
14110
+ var emptyArr = /* @__PURE__ */ empty();
14111
+ var mapAccumEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, initial, f, options) => self.channel.pipe(flattenArray, mapAccum(initial, (state, a) => map4(f(state, a), ([state, values]) => [state, isReadonlyArrayNonEmpty(values) ? of(values) : empty()]), options?.onHalt ? {
14112
+ onHalt(state) {
14113
+ const arr = options.onHalt(state);
14114
+ return isReadonlyArrayNonEmpty(arr) ? of(arr) : emptyArr;
14115
+ }
14116
+ } : undefined), fromChannel));
14056
14117
  var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope) => sync(() => {
14057
14118
  let done2;
14058
14119
  let leftover;
@@ -14086,17 +14147,10 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
14086
14147
  return acc;
14087
14148
  });
14088
14149
  var runHead = (self) => map4(runHead2(self.channel), map(getUnsafe2(0)));
14089
- var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runForEach(self.channel, (arr) => {
14090
- let i = 0;
14091
- return whileLoop2({
14092
- while: () => i < arr.length,
14093
- body: () => f(arr[i++]),
14094
- step: constVoid
14095
- });
14096
- }));
14097
14150
  var runDrain = (self) => runDrain2(self.channel);
14098
14151
  var mkString = (self) => runFold(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
14099
14152
  var mkArrayBuffer = (self) => map4(mkUint8Array(self.channel), (bytes) => bytes.buffer);
14153
+ var mkUint8Array2 = (self) => mkUint8Array(self.channel);
14100
14154
  var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
14101
14155
  let currentResolve = undefined;
14102
14156
  let fiber = undefined;
@@ -15266,7 +15320,7 @@ var fetch = /* @__PURE__ */ make25((request, url, signal, fiber) => {
15266
15320
  return send(undefined);
15267
15321
  });
15268
15322
  var layer2 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed4(fetch));
15269
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15323
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/_virtual/_rolldown/runtime.js
15270
15324
  var __defProp = Object.defineProperty;
15271
15325
  var __exportAll3 = (all, no_symbols) => {
15272
15326
  let target = {};
@@ -15280,7 +15334,7 @@ var __exportAll3 = (all, no_symbols) => {
15280
15334
  return target;
15281
15335
  };
15282
15336
 
15283
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15337
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DefinitionError.js
15284
15338
  var DefinitionIdentifierKindSchema = Literals([
15285
15339
  "dual",
15286
15340
  "plugin",
@@ -15332,7 +15386,7 @@ var DuplicateAuthMethodIdentifierError = class extends TaggedError2()("Duplicate
15332
15386
  }) {
15333
15387
  };
15334
15388
 
15335
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15389
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/identifier.js
15336
15390
  var identifierSchema = String3.check(isPattern2(/^[a-z0-9]+(?:-[a-z0-9]+)*$/));
15337
15391
  var isIdentifier = is(identifierSchema);
15338
15392
  var validateIdentifier = (kind, identifier) => {
@@ -15357,12 +15411,12 @@ var validateIdentifier = (kind, identifier) => {
15357
15411
  });
15358
15412
  };
15359
15413
 
15360
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15414
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/proto.js
15361
15415
  var PipeableProto = { pipe() {
15362
15416
  return pipeArguments(this, arguments);
15363
15417
  } };
15364
15418
 
15365
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15419
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Action.js
15366
15420
  var Action_exports = /* @__PURE__ */ __exportAll3({
15367
15421
  ActionHandlerError: () => ActionHandlerError,
15368
15422
  RetryableActionHandlerError: () => RetryableActionHandlerError,
@@ -15475,7 +15529,7 @@ var make26 = (identifier, options) => {
15475
15529
  };
15476
15530
  var isAction = (u) => hasProperty(u, TypeId29);
15477
15531
 
15478
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15532
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodBinding.js
15479
15533
  var makeBinding = (options) => ({
15480
15534
  connectionId: options.connectionId,
15481
15535
  method: options.method,
@@ -15485,7 +15539,7 @@ var makeBinding = (options) => ({
15485
15539
  });
15486
15540
  var isBindingForMethod = (binding, method) => binding.method === method;
15487
15541
 
15488
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15542
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuth2TokenRefresher.js
15489
15543
  var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15490
15544
  OAuth2TokenRefresher: () => OAuth2TokenRefresher_exports,
15491
15545
  Service: () => Service3
@@ -15493,7 +15547,7 @@ var OAuth2TokenRefresher_exports = /* @__PURE__ */ __exportAll3({
15493
15547
  var Service3 = class extends Service()("@dual-os/sdk/AuthMethod/OAuth2TokenRefresher") {
15494
15548
  };
15495
15549
 
15496
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15550
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethodExecution.js
15497
15551
  var hookError = (methodIdentifier, operation, cause) => new AuthMethodHookError({
15498
15552
  cause,
15499
15553
  methodIdentifier,
@@ -15655,7 +15709,7 @@ var test = (method, material, context) => {
15655
15709
  return decodeMaterial(method, material).pipe(flatMap3((decodedMaterial) => testHook === undefined ? succeed4({ ok: true }) : runHook(impl.identifier, "test", () => testHook(decodedMaterial, hookContext(context)))));
15656
15710
  };
15657
15711
 
15658
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15712
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AuthMethod.js
15659
15713
  var AuthMethod_exports = /* @__PURE__ */ __exportAll3({
15660
15714
  AuthMethodHookError: () => AuthMethodHookError,
15661
15715
  AuthMethodHookOperation: () => AuthMethodHookOperation,
@@ -15829,18 +15883,29 @@ var oauth2 = (identifier, options) => {
15829
15883
  };
15830
15884
  var isAuthMethod = (u) => hasProperty(u, TypeId30);
15831
15885
 
15832
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ToolFile.js
15833
- var Schema = TaggedStruct("ToolFile", {
15834
- contentBase64: String3.annotate({
15835
- contentEncoding: "base64",
15836
- description: "Complete file bytes in Base64. Preserve this field without truncation."
15837
- }),
15838
- contentType: NullOr(String3),
15839
- filename: NullOr(String3),
15886
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
15887
+ var File3 = TaggedStruct("File", {
15888
+ contentType: String3,
15889
+ id: NonEmptyString,
15890
+ name: String3,
15840
15891
  sizeBytes: Natural
15892
+ }).annotate({ description: "A file: pass the reference a file input or an earlier step returned." });
15893
+ var FileError = class extends TaggedError2()("FileError", {
15894
+ cause: optionalKey(Redacted(Unknown, { disallowJsonEncode: true })),
15895
+ message: String3
15896
+ }) {
15897
+ };
15898
+ var Service4 = class extends Service()("@dual-os/sdk/Files/Service") {
15899
+ };
15900
+ var service3 = pipe(serviceOption(Service4), flatMap3(fromOption2(() => FileError.make({ message: "Files are only available during a Dual plugin invocation" }))));
15901
+ var read = fnUntraced(function* (file) {
15902
+ return yield* (yield* service3).read(file);
15903
+ });
15904
+ var write = fnUntraced(function* (file) {
15905
+ return yield* (yield* service3).write(file);
15841
15906
  });
15842
15907
 
15843
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
15908
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannel.js
15844
15909
  var AgentChannel_exports = /* @__PURE__ */ __exportAll3({
15845
15910
  AccessOutcome: () => AccessOutcome,
15846
15911
  AgentChannel: () => AgentChannel_exports,
@@ -15869,6 +15934,7 @@ var AgentChannel_exports = /* @__PURE__ */ __exportAll3({
15869
15934
  Reaction: () => Reaction,
15870
15935
  Request: () => Request2,
15871
15936
  RequiredChecks: () => RequiredChecks,
15937
+ SenderDetails: () => SenderDetails,
15872
15938
  Stop: () => Stop,
15873
15939
  Timestamp: () => Timestamp,
15874
15940
  TypeId: () => TypeId31,
@@ -15883,6 +15949,7 @@ var AgentChannel_exports = /* @__PURE__ */ __exportAll3({
15883
15949
  projectContract: () => projectContract,
15884
15950
  resultByteLimit: () => resultByteLimit,
15885
15951
  resultSchema: () => resultSchema,
15952
+ senderDetails: () => senderDetails,
15886
15953
  validateDefinition: () => validateDefinition
15887
15954
  });
15888
15955
  var TypeId31 = "@dual-os/sdk/AgentChannel";
@@ -15906,7 +15973,9 @@ var Features = Struct({
15906
15973
  mentions: Boolean2,
15907
15974
  operations: optionalKey(ArraySchema(OperationKind)),
15908
15975
  readContext: optionalKey(Boolean2),
15976
+ readSender: optionalKey(Boolean2),
15909
15977
  replies: Boolean2,
15978
+ senderDetails: optionalKey(Boolean2),
15910
15979
  responseWindowMs: optionalKey(Int.check(isGreaterThan3(0))),
15911
15980
  threads: Boolean2
15912
15981
  });
@@ -15971,11 +16040,47 @@ var VerifiedIdentity = Struct({
15971
16040
  conversation: Destination,
15972
16041
  senderKey: Key
15973
16042
  });
16043
+ var DisplayText = NonEmptyString.check(isMaxLength(256), isPattern2(/^[^\p{Cc}]+$/u));
16044
+ var SenderEmail = NonEmptyString.check(isMaxLength(320), isPattern2(/^[^\s@\p{Cc}]+@[^\s@\p{Cc}]+$/u));
16045
+ var SenderDetails = Struct({
16046
+ senderEmail: optionalKey(SenderEmail),
16047
+ senderHandle: optionalKey(DisplayText),
16048
+ senderName: optionalKey(DisplayText)
16049
+ });
16050
+ var clip = (text, max) => {
16051
+ let kept = "";
16052
+ for (const character of text) {
16053
+ if (kept.length + character.length > max)
16054
+ break;
16055
+ kept += character;
16056
+ }
16057
+ return kept;
16058
+ };
16059
+ var display2 = (value) => liftPredicate(clip((value ?? "").replace(/\p{Cc}+/gu, " ").trim(), 256).trim(), (text) => text !== "");
16060
+ var senderDetails = (values) => {
16061
+ const email = liftPredicate((values.email ?? "").trim(), is(SenderEmail));
16062
+ const handle = display2((values.handle ?? "").replace(/^@+/u, ""));
16063
+ const name = display2(values.name);
16064
+ return {
16065
+ ...match(email, {
16066
+ onNone: () => ({}),
16067
+ onSome: (senderEmail) => ({ senderEmail })
16068
+ }),
16069
+ ...match(handle, {
16070
+ onNone: () => ({}),
16071
+ onSome: (senderHandle) => ({ senderHandle })
16072
+ }),
16073
+ ...match(name, {
16074
+ onNone: () => ({}),
16075
+ onSome: (senderName) => ({ senderName })
16076
+ })
16077
+ };
16078
+ };
15974
16079
  var AccessOutcome = Struct({ decision: Literals(["allow", "deny"]) });
15975
16080
  var Verification = Struct({ verified: Literal(true) });
15976
16081
  var Exposure = Literals(["webhook", "host"]);
15977
16082
  var RequiredChecks = Tuple2([Literal("access")]);
15978
- var Message = Struct({
16083
+ var messageFields = {
15979
16084
  content: Content,
15980
16085
  conversation: Destination,
15981
16086
  eventKey: Key,
@@ -15985,6 +16090,11 @@ var Message = Struct({
15985
16090
  respond: Boolean2,
15986
16091
  senderKey: Key,
15987
16092
  timestamp: Timestamp
16093
+ };
16094
+ var KeyedMessage = Struct(messageFields);
16095
+ var Message = Struct({
16096
+ ...messageFields,
16097
+ ...SenderDetails.fields
15988
16098
  });
15989
16099
  var DeliveryUpdate = Struct({
15990
16100
  deliveryKey: Key,
@@ -16018,6 +16128,12 @@ var Event = Union([
16018
16128
  DeliveryUpdate,
16019
16129
  Stop
16020
16130
  ]);
16131
+ var KeyedEvent = Union([
16132
+ KeyedMessage,
16133
+ Echo,
16134
+ DeliveryUpdate,
16135
+ Stop
16136
+ ]);
16021
16137
  var Reaction = Literals([
16022
16138
  "thumbs_up",
16023
16139
  "thumbs_down",
@@ -16102,12 +16218,32 @@ var contextMessageFields = {
16102
16218
  text: Text,
16103
16219
  timestamp: Timestamp
16104
16220
  };
16105
- var TextContextMessage = Struct(contextMessageFields);
16221
+ var contextAssets = { assets: optionalKey(ArraySchema(Asset).check(isMaxLength(20))) };
16222
+ var contextSender = {
16223
+ senderEmail: SenderDetails.fields.senderEmail,
16224
+ senderHandle: SenderDetails.fields.senderHandle
16225
+ };
16106
16226
  var ContextMessage = Struct({
16107
16227
  ...contextMessageFields,
16108
- assets: optionalKey(ArraySchema(Asset).check(isMaxLength(20)))
16228
+ ...contextAssets,
16229
+ ...contextSender
16230
+ });
16231
+ var TextContextMessage = Struct(contextMessageFields);
16232
+ var AssetContextMessage = Struct({
16233
+ ...contextMessageFields,
16234
+ ...contextAssets
16235
+ });
16236
+ var SenderContextMessage = Struct({
16237
+ ...contextMessageFields,
16238
+ ...contextSender
16109
16239
  });
16110
- var AssetFile = Schema.check(makeFilter2((file) => file.sizeBytes > 0 && file.sizeBytes <= 10485760 && file.contentBase64.length <= 13981016));
16240
+ var contextMessageFor = (features) => {
16241
+ const sender = features.senderDetails === true;
16242
+ if (features.assets && features.readContext === true)
16243
+ return sender ? ContextMessage : AssetContextMessage;
16244
+ return sender ? SenderContextMessage : TextContextMessage;
16245
+ };
16246
+ var AssetFile = File3.check(makeFilter2((file) => file.sizeBytes > 0 && file.sizeBytes <= 10485760));
16111
16247
  var FailureCode = Literals([
16112
16248
  "rejected",
16113
16249
  "unauthorized",
@@ -16205,7 +16341,7 @@ var installedResultSchema = (state, features) => {
16205
16341
  ...operation,
16206
16342
  verified: Literal(true),
16207
16343
  deniedEventKeys: optionalKey(ArraySchema(Key).check(isMaxLength(100))),
16208
- events: ArraySchema(Event).check(isMaxLength(100)),
16344
+ events: ArraySchema(features === undefined || features.senderDetails === true ? Event : KeyedEvent).check(isMaxLength(100)),
16209
16345
  response: optionalKey(WebhookResponse),
16210
16346
  activationProof: optionalKey(Literal("verified"))
16211
16347
  }),
@@ -16239,7 +16375,7 @@ var installedResultSchema = (state, features) => {
16239
16375
  Struct({
16240
16376
  kind: Literal("read_context"),
16241
16377
  ...operation,
16242
- messages: ArraySchema(features === undefined || features.assets && features.readContext === true ? ContextMessage : TextContextMessage).check(isMaxLength(200))
16378
+ messages: ArraySchema(features === undefined ? ContextMessage : contextMessageFor(features)).check(isMaxLength(200))
16243
16379
  })
16244
16380
  ]);
16245
16381
  };
@@ -16259,8 +16395,32 @@ var readAssetResult = Struct({
16259
16395
  kind: Literal("read_asset"),
16260
16396
  operationKey: Key
16261
16397
  });
16262
- var commandSchema = (state) => Union([installedCommandSchema(state), readAssetCommand(state)]);
16263
- var resultSchema = (state, features) => Union([installedResultSchema(state, features), readAssetResult]);
16398
+ var readSenderCommand = (state) => Struct({
16399
+ extensions: optionalKey(Extensions),
16400
+ identity: VerifiedIdentity,
16401
+ installationKey: Key,
16402
+ kind: Literal("read_sender"),
16403
+ operationKey: Key,
16404
+ state
16405
+ });
16406
+ var readSenderResult = Struct({
16407
+ ...SenderDetails.fields,
16408
+ extensions: optionalKey(Extensions),
16409
+ kind: Literal("read_sender"),
16410
+ operationKey: Key,
16411
+ senderKey: Key
16412
+ });
16413
+ var readsSender = (features) => features === undefined || features.readSender === true;
16414
+ var commandSchema = (state, features) => Union([
16415
+ installedCommandSchema(state),
16416
+ readAssetCommand(state),
16417
+ ...readsSender(features) ? [readSenderCommand(state)] : []
16418
+ ]);
16419
+ var resultSchema = (state, features) => Union([
16420
+ installedResultSchema(state, features),
16421
+ readAssetResult,
16422
+ ...readsSender(features) ? [readSenderResult] : []
16423
+ ]);
16264
16424
  var resultByteLimit = 2097152;
16265
16425
  function contextResult(operationKey, context) {
16266
16426
  const messages = [];
@@ -16301,7 +16461,7 @@ var projectContract = (definition, project = (schema) => toJsonSchemaDocument2(s
16301
16461
  exposure: definition.exposure,
16302
16462
  extensionsSchemaJson: Object.fromEntries(Object.entries(definition.extensions ?? {}).map(([key, schema]) => [key, project(schema)])),
16303
16463
  featuresJson: definition.features,
16304
- operationInputSchemaJson: project(commandSchema(definition.state)),
16464
+ operationInputSchemaJson: project(commandSchema(definition.state, definition.features)),
16305
16465
  operationOutputSchemaJson: project(resultSchema(definition.state, definition.features)),
16306
16466
  requiredChecks: definition.requiredChecks,
16307
16467
  stateSchemaJson: project(definition.state)
@@ -16357,7 +16517,7 @@ var DefinitionSchema = Struct({
16357
16517
  state: SchemaDefinition
16358
16518
  }).check(makeFilter2(({ features }) => {
16359
16519
  const operations = features.operations ?? [];
16360
- return operations.includes("present_outcome") && new Set(operations).size === operations.length && (features.maxTextLength === undefined || operations.includes("create_message"));
16520
+ return operations.includes("present_outcome") && new Set(operations).size === operations.length && (features.maxTextLength === undefined || operations.includes("create_message")) && (features.readSender !== true || features.senderDetails === true);
16361
16521
  }));
16362
16522
  var validateDefinition = (definition, providerId, methods) => {
16363
16523
  try {
@@ -16412,7 +16572,7 @@ var make28 = (identifier, options) => {
16412
16572
  };
16413
16573
  var isAgentChannel = (value) => hasProperty(value, TypeId31);
16414
16574
 
16415
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
16575
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/handler-context.js
16416
16576
  var groupKeyPrefix = "@dual-os/sdk/Plugin/Handlers/";
16417
16577
  var handlerGroupKey = (pluginId) => `${groupKeyPrefix}${pluginId}`;
16418
16578
  var isGroupKey = startsWith(groupKeyPrefix);
@@ -16433,13 +16593,13 @@ var findHandler = (context, providerId, handlerKey) => {
16433
16593
  return isMap(group) ? group.get(handlerKey) : undefined;
16434
16594
  };
16435
16595
 
16436
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
16596
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/schema-runtime.js
16437
16597
  function decodeJson(schema, value) {
16438
16598
  return decodeUnknownEffect(toCodecJson2(schema))(value);
16439
16599
  }
16440
16600
  var decodeJsonMapError = (schema, value, mapError2) => decodeJson(schema, value).pipe(mapError(mapError2));
16441
16601
 
16442
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
16602
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/ConnectionResolver.js
16443
16603
  var ConnectionIdNotAllowedError = class extends TaggedError2()("ConnectionIdNotAllowedError", {
16444
16604
  connectionId: String3,
16445
16605
  phase: optional(String3),
@@ -16532,10 +16692,10 @@ var ConnectionResolverStoreError = class extends TaggedError2()("ConnectionResol
16532
16692
  ])
16533
16693
  }) {
16534
16694
  };
16535
- var Service4 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
16695
+ var Service5 = class extends Service()("@dual-os/sdk/ConnectionResolver") {
16536
16696
  };
16537
16697
 
16538
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
16698
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-execution.js
16539
16699
  var knownAuthMethodIds = (methods) => methods.map((method) => method.identifier);
16540
16700
  var fullAuthMethodId = (providerId, method) => `${providerId}/${method.identifier}`;
16541
16701
  var findMethod = (providerId, methods, methodId) => methods.find((method) => method.identifier === methodId || fullAuthMethodId(providerId, method) === methodId);
@@ -16570,7 +16730,7 @@ var failConnectionIdNotAllowed = (targetKind, targetId, phase, providerId, conne
16570
16730
  targetKind
16571
16731
  }));
16572
16732
  var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods, connectionId, context) => gen(function* () {
16573
- const resolved = yield* (yield* Service4).resolve({
16733
+ const resolved = yield* (yield* Service5).resolve({
16574
16734
  target: {
16575
16735
  providerId,
16576
16736
  targetId,
@@ -16595,7 +16755,7 @@ var resolveRuntimeConnection = (targetKind, targetId, phase, providerId, methods
16595
16755
  });
16596
16756
  });
16597
16757
 
16598
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
16758
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime-shared.js
16599
16759
  var decodeConfig = (triggerId, schema, value) => decodeJsonMapError(schema, value, (error) => new InvalidTriggerConfigError({
16600
16760
  description: error.message,
16601
16761
  triggerId
@@ -16730,7 +16890,7 @@ var withRuntimeContext = (entry, phase, connectionId, context2, run) => {
16730
16890
  return resolveRuntimeConnection("trigger", entry.triggerId, phase, entry.providerId, requiredAuthMethods, connectionId, context2).pipe(flatMap3((binding) => run(runtimeContext(authRuntimeContext(binding)))));
16731
16891
  };
16732
16892
 
16733
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16893
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/trigger-runtime.js
16734
16894
  var runPhase = (options) => gen(function* () {
16735
16895
  const { entry, phase, request } = options;
16736
16896
  const runtime = yield* options.hook;
@@ -16813,7 +16973,7 @@ var poll2 = (entry, request) => runPhase({
16813
16973
  phase: "poll",
16814
16974
  request
16815
16975
  });
16816
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16976
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Trigger.js
16817
16977
  var Trigger_exports = /* @__PURE__ */ __exportAll3({
16818
16978
  InvalidTriggerConfigError: () => InvalidTriggerConfigError,
16819
16979
  InvalidTriggerOutputError: () => InvalidTriggerOutputError,
@@ -17025,10 +17185,10 @@ var verify2 = verify;
17025
17185
  var parse3 = parse2;
17026
17186
  var poll3 = poll2;
17027
17187
 
17028
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
17188
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/collection-utils.js
17029
17189
  var appendElements = (existing, additions) => [...existing, ...additions];
17030
17190
 
17031
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
17191
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/children.js
17032
17192
  var partitionChildren = (children) => ({
17033
17193
  actions: children.filter(isAction),
17034
17194
  groups: children.filter(isGroup),
@@ -17068,7 +17228,7 @@ var assertUniqueMixedChildIdentifiers = (ownerKind, ownerIdentifier, existing, a
17068
17228
  assertAdditions(ownerKind, ownerIdentifier, seenChildren(existing), additions.map((addition) => [addition, childKind(addition)]));
17069
17229
  };
17070
17230
 
17071
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
17231
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Group.js
17072
17232
  var Group_exports = /* @__PURE__ */ __exportAll3({
17073
17233
  TypeId: () => TypeId33,
17074
17234
  add: () => add4,
@@ -17130,7 +17290,7 @@ var withAction = dual(2, (value, action) => appendChildren(value, [action], "act
17130
17290
  var withTrigger = dual(2, (value, trigger) => appendChildren(value, [trigger], "trigger"));
17131
17291
  var add4 = dual((args) => isGroup(args[0]), (group, ...children) => appendChildren(group, children));
17132
17292
 
17133
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17293
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/auth-runtime.js
17134
17294
  var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17135
17295
  const seen = /* @__PURE__ */ new Set;
17136
17296
  for (const method of methods) {
@@ -17143,7 +17303,7 @@ var assertNoDuplicateAuthMethodIdentifiers = (providerIdentifier, methods) => {
17143
17303
  }
17144
17304
  };
17145
17305
 
17146
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17306
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/capabilities.js
17147
17307
  var walkCapabilities = (provider, select) => {
17148
17308
  const entries = [];
17149
17309
  const visit = (owner, prefix) => {
@@ -17162,7 +17322,7 @@ var walkCapabilities = (provider, select) => {
17162
17322
  return entries;
17163
17323
  };
17164
17324
 
17165
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17325
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/plugin-handlers.js
17166
17326
  var missingDeclaration = (kind, localId, pluginId) => {
17167
17327
  throw new Error(`missing ${kind} handler for "${localId}" in plugin "${pluginId}"`);
17168
17328
  };
@@ -17207,7 +17367,7 @@ var toHandlers = (plugin, handlers) => gen(function* () {
17207
17367
  return makeUnsafe(/* @__PURE__ */ new Map([[handlerGroupKey(plugin.identifier), map]]));
17208
17368
  });
17209
17369
 
17210
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17370
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Plugin.js
17211
17371
  var Plugin_exports = /* @__PURE__ */ __exportAll3({
17212
17372
  TypeId: () => TypeId34,
17213
17373
  add: () => add5,
@@ -17378,7 +17538,7 @@ var toLayer2 = (plugin, build) => effectContext(gen(function* () {
17378
17538
  return yield* toHandlers(plugin, handlers);
17379
17539
  }));
17380
17540
 
17381
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17541
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AgentChannelRuntime.js
17382
17542
  var ConnectionContext = Struct({
17383
17543
  actor: optionalKey(Union([Struct({
17384
17544
  kind: Literal("user"),
@@ -17413,7 +17573,7 @@ var AccessInput = Struct({
17413
17573
  deploymentSettings: Unknown,
17414
17574
  identity: VerifiedIdentity
17415
17575
  });
17416
- var Service5 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17576
+ var Service6 = class extends Service()("@dual-os/sdk/AgentChannelRuntime") {
17417
17577
  };
17418
17578
  var fail11 = (code) => new ChannelError({ code });
17419
17579
  var safe = (effect2, code) => effect2.pipe(catchCause2((cause) => hasInterrupts(cause) ? interrupt : fail5(fail11(code))));
@@ -17465,7 +17625,7 @@ var resolveAuth = fn("AgentChannelRuntime.resolveAuth")(function* (providerId, c
17465
17625
  }
17466
17626
  if (connectionId === undefined)
17467
17627
  return yield* fail11("invalid_auth");
17468
- const resolver = yield* serviceOption(Service4);
17628
+ const resolver = yield* serviceOption(Service5);
17469
17629
  if (isNone(resolver))
17470
17630
  return yield* fail11("invalid_auth");
17471
17631
  const raw = yield* safe(suspend(() => resolver.value.resolve({
@@ -17513,7 +17673,7 @@ var find = (plugins, pin) => {
17513
17673
  };
17514
17674
  }
17515
17675
  };
17516
- var layer4 = (plugins) => effect(Service5, gen(function* () {
17676
+ var layer4 = (plugins) => effect(Service6, gen(function* () {
17517
17677
  const context2 = yield* context();
17518
17678
  const get = fn("AgentChannelRuntime.get")(function* (input) {
17519
17679
  const pin = yield* decode4(Pin, input, "invalid_input");
@@ -17569,6 +17729,8 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17569
17729
  return yield* fail11("invalid_input");
17570
17730
  if (command.kind === "read_context" && (definition.features.readContext !== true || !checkMessage(definition.features, command.destination, { text: "" })))
17571
17731
  return yield* fail11("unsupported_feature");
17732
+ if (command.kind === "read_asset" && !definition.features.assets || command.kind === "read_sender" && definition.features.readSender !== true)
17733
+ return yield* fail11("unsupported_feature");
17572
17734
  const handler = fromNullishOr(findHandler(context2, found.provider.identifier, handlerKey2(request.channelId)));
17573
17735
  if (isNone(handler))
17574
17736
  return yield* fail11("handler_unavailable");
@@ -17577,6 +17739,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17577
17739
  const kind = command.kind;
17578
17740
  const deliveryKey = command.kind === "deliver" ? command.deliveryKey : undefined;
17579
17741
  const assetKey = command.kind === "read_asset" ? command.asset.assetKey : undefined;
17742
+ const senderKey = command.kind === "read_sender" ? command.identity.senderKey : undefined;
17580
17743
  const adapterContext = {
17581
17744
  definitionSettings,
17582
17745
  deploymentSettings,
@@ -17586,9 +17749,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17586
17749
  return yield* fail11("handler_unavailable");
17587
17750
  if (command.kind === "receive")
17588
17751
  yield* decodeData(Verification, yield* invokeHandler(handler.value, suspend(() => handler.value.runtime.verify(command.request, adapterContext))), "invalid_result");
17589
- if (command.kind === "read_asset") {
17590
- if (!definition.features.assets)
17591
- return yield* fail11("unsupported_feature");
17752
+ if (command.kind === "read_asset" || command.kind === "read_sender") {
17592
17753
  if ((yield* decodeData(AccessOutcome, yield* invokeHandler(handler.value, suspend(() => handler.value.runtime.checkAccess(command.identity, adapterContext))), "invalid_result")).decision !== "allow")
17593
17754
  return yield* new ChannelError({
17594
17755
  code: "provider_failure",
@@ -17597,7 +17758,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17597
17758
  }
17598
17759
  const output = yield* invokeHandler(handler.value, suspend(() => handler.value.runtime.execute(command, adapterContext)));
17599
17760
  const result = yield* decodeData(resultSchema(toType(definition.state), definition.features), output, "invalid_result", kind === "read_asset");
17600
- if (result.kind !== kind || result.operationKey !== operationKey || result.kind === "deliver" && result.deliveryKey !== deliveryKey || result.kind === "read_asset" && result.assetKey !== assetKey)
17761
+ if (result.kind !== kind || result.operationKey !== operationKey || result.kind === "deliver" && result.deliveryKey !== deliveryKey || result.kind === "read_asset" && result.assetKey !== assetKey || result.kind === "read_sender" && result.senderKey !== senderKey)
17601
17762
  return yield* fail11("invalid_result");
17602
17763
  yield* checkExtensions(definition, result.extensions, "invalid_result");
17603
17764
  if (result.kind === "deliver" && result.status === "pending" && !definition.features.deliveryState)
@@ -17653,7 +17814,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17653
17814
  const value = yield* decodeData(schema, request.value, "invalid_input");
17654
17815
  return yield* json2(yield* safe(encodeUnknownEffect2(schema)(value, strict), "invalid_input"), "invalid_input");
17655
17816
  });
17656
- return Service5.of({
17817
+ return Service6.of({
17657
17818
  checkAccess: (input) => run(checkAccess(input)),
17658
17819
  decodeDefinitionSettings: (input) => run(decodeSettings("definitionSettings")(input)),
17659
17820
  decodeDeploymentSettings: (input) => run(decodeSettings("deploymentSettings")(input)),
@@ -17662,7 +17823,7 @@ var layer4 = (plugins) => effect(Service5, gen(function* () {
17662
17823
  });
17663
17824
  }));
17664
17825
 
17665
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17826
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/AiProvider.js
17666
17827
  var TypeId35 = "@dual-os/sdk/AiProvider";
17667
17828
  var RuntimeConfig = Struct({
17668
17829
  apiKey: optional(String3),
@@ -17720,7 +17881,7 @@ var withAuthMethods2 = dual(2, (provider, methods) => {
17720
17881
  var withAuthMethod2 = dual(2, (provider, method) => withAuthMethods2(provider, [method]));
17721
17882
  var withRuntimeConfig = dual(2, (provider, resolve) => makeProvider2(optionsFromProvider(provider), provider.authMethods, resolve));
17722
17883
 
17723
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17884
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/actions.js
17724
17885
  var entriesOf = (installation) => walkCapabilities(installation.plugin, (owner) => owner.actions).map(({ localId, canonicalId, node }) => ({
17725
17886
  action: node,
17726
17887
  actionId: canonicalId,
@@ -17741,7 +17902,7 @@ var resolveAction = (installations, actionId, version) => {
17741
17902
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17742
17903
  };
17743
17904
 
17744
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17905
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/triggers.js
17745
17906
  var entriesOf2 = (installation) => walkCapabilities(installation.plugin, (owner) => owner.triggers).map((walked) => ({
17746
17907
  authMethods: installation.plugin.authMethods,
17747
17908
  localId: walked.localId,
@@ -17762,7 +17923,7 @@ var resolveRuntimeTrigger = (installations, triggerId, version) => {
17762
17923
  return entry === undefined || version !== undefined && entry.pluginVersion !== version ? undefined : entry;
17763
17924
  };
17764
17925
 
17765
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17926
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/registry.js
17766
17927
  var authMethodId = (providerId, methodId) => `${providerId}/${methodId}`;
17767
17928
  var schemaJson = (schema) => toJsonSchemaDocument2(schema, { onExcessProperty: "error" });
17768
17929
  var authMethodMetadataJson = (method) => {
@@ -17921,7 +18082,7 @@ var materializeResolvedRegistry = (input) => {
17921
18082
  };
17922
18083
  };
17923
18084
 
17924
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
18085
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRegistry.js
17925
18086
  var TriggerNotFoundError = class extends TaggedError2()("TriggerNotFoundError", { triggerId: String3 }) {
17926
18087
  };
17927
18088
  var materializePlugin = (plugin, options) => ({
@@ -17940,7 +18101,7 @@ var materializePlugin = (plugin, options) => ({
17940
18101
  }).providers
17941
18102
  });
17942
18103
 
17943
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
18104
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/internal/dual/invoke.js
17944
18105
  var FieldIssue = class extends Class4("FieldIssue")({
17945
18106
  message: String3,
17946
18107
  path: String3
@@ -18013,7 +18174,7 @@ var invokeResolvedActionJson = (providerId, actionId, pluginVersion, action, aut
18013
18174
  fields: schemaErrorFields(error)
18014
18175
  }))));
18015
18176
 
18016
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
18177
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/DualRuntime.js
18017
18178
  var install = (plugin, version) => ({
18018
18179
  plugin,
18019
18180
  version
@@ -18080,7 +18241,7 @@ var toLayer = (app) => {
18080
18241
  })) : succeed4(method);
18081
18242
  };
18082
18243
  return effect(Service2, gen(function* () {
18083
- const channels = yield* Service5;
18244
+ const channels = yield* Service6;
18084
18245
  const context2 = yield* context();
18085
18246
  const appContext = indexGroups(context2);
18086
18247
  const provideRuntimeContext = (effect2) => effect2.pipe(updateContext2((input) => merge2(appContext, input)));
@@ -18217,29 +18378,7 @@ var toLayer = (app) => {
18217
18378
  })).pipe(provide(layer4(app.plugins.map((installation) => installation.plugin))), provide(app.layer));
18218
18379
  };
18219
18380
 
18220
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/Files.js
18221
- var File3 = TaggedStruct("File", {
18222
- contentType: String3,
18223
- id: NonEmptyString,
18224
- name: String3,
18225
- sizeBytes: Natural
18226
- }).annotate({ description: "A file: pass the reference a file input or an earlier step returned." });
18227
- var FileError = class extends TaggedError2()("FileError", {
18228
- cause: optionalKey(Redacted(Unknown, { disallowJsonEncode: true })),
18229
- message: String3
18230
- }) {
18231
- };
18232
- var Service6 = class extends Service()("@dual-os/sdk/Files/Service") {
18233
- };
18234
- var service3 = pipe(serviceOption(Service6), flatMap3(fromOption2(() => FileError.make({ message: "Files are only available when Dual calls the action" }))));
18235
- var read = fnUntraced(function* (file) {
18236
- return yield* (yield* service3).read(file);
18237
- });
18238
- var write = fnUntraced(function* (file) {
18239
- return yield* (yield* service3).write(file);
18240
- });
18241
-
18242
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18381
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/OAuthFlow.js
18243
18382
  var OAuthConnectionValidationFailed = class extends TaggedError2()("OAuthConnectionValidationFailed", {
18244
18383
  cause: optionalKey(Redacted(Defect())),
18245
18384
  message: String3
@@ -18655,7 +18794,7 @@ var oauth2TokenRefresherLayer = effect(Service3, gen(function* () {
18655
18794
  }).pipe(map4((refreshed) => refreshed.tokens)) });
18656
18795
  }));
18657
18796
 
18658
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18797
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/remote-runtime.js
18659
18798
  var Identity = Struct({
18660
18799
  artifactDigest: String3.check(isPattern2(/^[a-f0-9]{128}$/u)),
18661
18800
  invocationId: NonEmptyString,
@@ -18836,13 +18975,14 @@ function failure(error) {
18836
18975
  retryable: false
18837
18976
  };
18838
18977
  }
18839
- var unavailableFiles = Service6.of({
18978
+ var unavailableFiles = Service4.of({
18840
18979
  read: () => fail5(FileError.make({ message: "Dual Files is not available to this operation" })),
18841
18980
  write: () => fail5(FileError.make({ message: "Dual Files is not available to this operation" }))
18842
18981
  });
18843
- var filesUnavailable = succeed3(Service6, unavailableFiles);
18982
+ var filesUnavailable = succeed3(Service4, unavailableFiles);
18844
18983
  var FileFailure = Struct({ message: String3 });
18845
18984
  function filesService(access, http) {
18985
+ let writes = 0;
18846
18986
  const client = mapRequest(http, flow(prependUrl(`${access.url}/api/plugin-files`), bearerToken(access.token)));
18847
18987
  function call(request, read) {
18848
18988
  return pipe(gen(function* () {
@@ -18855,13 +18995,16 @@ function filesService(access, http) {
18855
18995
  message: "Cannot reach Dual Files"
18856
18996
  })));
18857
18997
  }
18858
- return Service6.of({
18998
+ return Service4.of({
18859
18999
  read: (file) => call(get7(`/${encodeURIComponent(file.id)}`), (response) => map4(response.arrayBuffer, (buffer) => new Uint8Array(buffer))),
18860
- write: (file) => call(pipe(post("", { urlParams: { name: file.name } }), bodyUint8Array(file.bytes, file.contentType ?? undefined)), (response) => flatMap3(response.json, decodeUnknownEffect(File3)))
19000
+ write: (file) => suspend(() => call(pipe(post("", { urlParams: {
19001
+ name: file.name,
19002
+ writeIndex: `${writes++}`
19003
+ } }), bodyUint8Array(file.bytes, file.contentType ?? undefined)), (response) => flatMap3(response.json, decodeUnknownEffect(File3))))
18861
19004
  });
18862
19005
  }
18863
19006
  function connectionService(request) {
18864
- return Service4.of({ resolve: (input) => {
19007
+ return Service5.of({ resolve: (input) => {
18865
19008
  const selected = request.connection;
18866
19009
  if (selected === undefined)
18867
19010
  return fail5(ConnectionRequiredError.make(input.target));
@@ -18968,7 +19111,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18968
19111
  },
18969
19112
  identity: request.identity
18970
19113
  };
18971
- return yield* pipe(run3(request), provideService(Service4, connectionService(request)), provideService(Service6, pipe(fromUndefinedOr(request.files), flatMap((access) => map(http, (client) => filesService(access, client))), getOrElse(() => unavailableFiles))), flatMap3(fnUntraced(function* (value) {
19114
+ return yield* pipe(run3(request), provideService(Service5, connectionService(request)), provideService(Service4, pipe(fromUndefinedOr(request.files), flatMap((access) => map(http, (client) => filesService(access, client))), getOrElse(() => unavailableFiles))), flatMap3(fnUntraced(function* (value) {
18972
19115
  if (value === undefined)
18973
19116
  return {
18974
19117
  _tag: "success",
@@ -18995,7 +19138,7 @@ var execute = fn("RemoteRuntime.execute")(function* (request) {
18995
19138
  })));
18996
19139
  });
18997
19140
 
18998
- // ../../../../node_modules/.bun/@dual-os+sdk@0.9.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
19141
+ // ../../../../node_modules/.bun/@dual-os+sdk@0.11.0+a827849ded09603e/node_modules/@dual-os/sdk/dist/PluginRuntime.js
18999
19142
  var PluginExecutionError = class extends TaggedError2()("PluginExecutionError", {
19000
19143
  category: Literals([
19001
19144
  "transport",
@@ -19009,6 +19152,7 @@ var PluginExecutionError = class extends TaggedError2()("PluginExecutionError",
19009
19152
  }) {
19010
19153
  };
19011
19154
  var maxPayloadBytes = 1048576;
19155
+ var maxResponseBytes = 52428800;
19012
19156
  var maxMetadataBytes = 67108864;
19013
19157
  var maxChannelResultBytes = 16777216;
19014
19158
  var OAuthContinuation = Struct({
@@ -19111,7 +19255,7 @@ function responseLimit(request) {
19111
19255
  return maxMetadataBytes;
19112
19256
  if ("context" in request && request.operation._tag === "channelExecute")
19113
19257
  return maxChannelResultBytes;
19114
- return maxPayloadBytes;
19258
+ return maxResponseBytes;
19115
19259
  }
19116
19260
  var Invocation = Struct({
19117
19261
  entrypoint: String3.check(isPattern2(/^[A-Za-z0-9_-]+(?:[./][A-Za-z0-9_-]+)*$/u)),
@@ -19132,24 +19276,17 @@ var encodeRequest = fnUntraced(function* (request) {
19132
19276
  return encoded;
19133
19277
  });
19134
19278
  var readBounded = fnUntraced(function* (input, maximum = maxPayloadBytes) {
19135
- const output = {
19136
- bytes: Buffer.alloc(maximum),
19137
- size: 0
19138
- };
19139
- yield* pipe(input, runForEach2((chunk) => gen(function* () {
19140
- if (output.size + chunk.byteLength > maximum)
19141
- return yield* PluginExecutionError.make({
19142
- category: "protocol",
19143
- message: "Plugin payload exceeds its transport limit"
19144
- });
19145
- Buffer.from(chunk).copy(output.bytes, output.size);
19146
- output.size += chunk.byteLength;
19147
- })), mapError((cause) => PluginExecutionError.make({
19148
- cause: make4(cause),
19279
+ return yield* pipe(input, mapAccumEffect(() => 0, (size, chunk) => size + chunk.byteLength > maximum ? fail5(PluginExecutionError.make({
19149
19280
  category: "protocol",
19150
- message: "Cannot read plugin payload"
19151
- })));
19152
- return output.bytes.toString("utf8", 0, output.size);
19281
+ message: "Plugin payload exceeds its transport limit"
19282
+ })) : succeed4([size + chunk.byteLength, [chunk]])), mkUint8Array2, mapBoth({
19283
+ onSuccess: (bytes) => Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength).toString("utf8"),
19284
+ onFailure: (cause) => PluginExecutionError.make({
19285
+ cause: make4(cause),
19286
+ category: "protocol",
19287
+ message: "Cannot read plugin payload"
19288
+ })
19289
+ }));
19153
19290
  });
19154
19291
  var verifyResponse = fnUntraced(function* (request, response) {
19155
19292
  if (response.identity.invocationId !== request.identity.invocationId || response.identity.artifactDigest !== request.identity.artifactDigest || response.identity.organizationId !== request.identity.organizationId || response.identity.pluginKey !== request.identity.pluginKey || response.identity.pluginVersion !== request.identity.pluginVersion)
@@ -19257,7 +19394,7 @@ var execute3 = fnUntraced(function* (request) {
19257
19394
  return yield* executeChannelSettings(request);
19258
19395
  });
19259
19396
 
19260
- export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isObject, hasProperty, equals, byReferenceUnsafe, format, NodeInspectSymbol, toJson, BaseProto, PipeInspectableProto, Prototype, String2, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, fromEntries, toEntries, has, map2, ensure, match3, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, takeRight, findFirst, sort, sortWith, zip, contains, empty, of, map3, flatMap2, getSomes, filterMap, filter2, reduce, fromNullishOr2, every, some2, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, TaggedClass, Error2, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope, make, makeUnsafe3, addFinalizerExit, addFinalizer, forkUnsafe, close, makeMemoMapUnsafe, buildWithMemoMap, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, between, toUpperCase, toLowerCase, capitalize, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, flatten, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchIf, catchCauseIf, mapError, orDie, ignore, ignoreCause, timeout, timeoutOrElse, sleep, raceFirst, filterOrElse, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transform, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, Finite, Int, Natural, isMaxLength, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Uint8ArrayFromHex, DateTimeUtcFromString, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, whenOr, discriminatorsExhaustive, orElse2, __exportAll3, empty5, HttpClientError, InvalidUrlError, makeWith, post, put, del, setMethod, setHeader, setHeaders, bearerToken, acceptJson, setUrl, setUrlParam, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, Schema, AgentChannel_exports, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, File3, read, write, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19397
+ export { pipeArguments, dual, identity, constVoid, pipe, flow, isString, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isObject, hasProperty, equals, byReferenceUnsafe, format, NodeInspectSymbol, toJson, BaseProto, PipeInspectableProto, Prototype, String2, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrNull, getOrUndefined, liftThrowable, map, flatMap, filter, liftPredicate, Service, makeUnsafe, add, getUnsafe, get, Reference, succeed, fail, failVoid, fromOption, try_, isSuccess, match2, getOrThrow, fromEntries, toEntries, has, map2, ensure, match3, append, appendAll, isArray, isReadonlyArrayNonEmpty, getUnsafe2, head, headNonEmpty, takeRight, findFirst, sort, sortWith, zip, contains, empty, of, map3, flatMap2, getSomes, filterMap, filter2, reduce, fromNullishOr2, every, some2, dedupe, join, fromInputUnsafe, isFinite, millis, toMillis, TaggedClass, Error2, TaggedError, scopeRemoveFinalizerUnsafe, fiberEnterUninterruptibleUnsafe, fail2, squash, hasInterrupts, Done, done, UnknownError, succeed2, fail3, void_, isSuccess2, isFailure, makeUnsafe2, _await, done2, fail4, isDone, isDoneUnsafe, doneUnsafe, Scope, make, makeUnsafe3, addFinalizerExit, addFinalizer, forkUnsafe, close, makeMemoMapUnsafe, buildWithMemoMap, buildWithScope, succeed3, effect, mergeAll, provide, provideMerge, currentTimeMillis, increment, between, toUpperCase, toLowerCase, capitalize, replace, trim, slice, isEmpty, isNonEmpty, split, startsWith, endsWith, match4, replaceAll, catchDone, isDoneCause, isEffect, all, forEach, promise, tryPromise, succeed4, suspend, sync, void_2, undefined_, callback, never, gen, fail5, failSync, failCause, die, try_2, withFiber, fromOption2, flatMap3, flatten, andThen, tap, result, map4, as, zipWith, catch_, catchTag, catchReason, catchIf, catchCauseIf, mapError, mapBoth, orDie, ignore, ignoreCause, timeout, timeoutOrElse, sleep, raceFirst, filterOrElse, matchEffect, context, provideContext, serviceOption, provideService, scope, scoped, acquireRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt, uninterruptible, uninterruptibleMask, forever, forkChild, forkIn, forkScoped, runFork, runForkWith, runCallbackWith, runCallback, runPromise, runPromiseWith, runPromiseExit, runPromiseExitWith, runSync, runSyncWith, runSyncExit, runSyncExitWith, fnUntraced, fn, clockWith, effectify, await_, join2, interrupt2, getCurrent, runIn, make2, sliding, offer, offerUnsafe, failCauseUnsafe, endUnsafe, take, poll, encode, encode2, decode, makeZoned, make3, toUtc, toDateUtc, toEpochMillis, formatIso, formatIsoOffset, isRedacted, make4, value, empty2, empty3, InvalidValue, compose, transformEffect, is, decodeUnknownEffect, decodeEffect, decodeOption, encodeEffect, isSchema, optionalKey, optional, toType, flip, Literal, Never, Unknown, String3, Number3, Boolean2, Struct, Record, StructWithRest, ArraySchema, Union, Literals, NullOr, suspend2, decodeTo, tag, TaggedStruct, Finite, Int, Natural, isMaxLength, NonEmptyString, Defect, fromJsonString, Uint8Array2, Uint8ArrayFromBase64, Uint8ArrayFromHex, DateTimeUtcFromString, Error3, TaggedError2, toEquivalence, Json, makeUnsafe4, make5, get2, set, update, fromTransform, toTransform, mapDone, unwrap, isStream, fromChannel, fromEffect, fromPull, callback2, empty4, suspend3, fail6, fromIterable, paginate, unwrap2, mapEffect, flatMap4, drainFork, merge, filterMap2, tapError, transduce, decodeText, splitLines, run, runCollect, runHead, runDrain, mkString, layer, fromUnknown, value2, when, whenOr, discriminatorsExhaustive, orElse2, __exportAll3, empty5, HttpClientError, InvalidUrlError, makeWith, post, put, del, setMethod, setHeader, setHeaders, bearerToken, acceptJson, setUrl, setUrlParam, setBody, bodyUint8Array, bodyJsonUnsafe, bodyFormDataRecord, schemaBodyJson, HttpClient, transformResponse, filterStatusOk, mapRequest, mapRequestEffect, RequestInit, layer2, Action_exports, ActionHandlerError, fromHttpClientFailure, AuthMethod_exports, File3, read, write, AgentChannel_exports, Key, Event, commandSchema, materializePlugin, Trigger_exports, fromPlugin, Service2, toLayer, Group_exports, layer3, oauth2TokenRefresherLayer, Plugin_exports, make6, isPlugin, filesUnavailable, PluginExecutionError, decodeInput, encodeOutput, responseLimit, execute3 };
19261
19398
 
19262
- //# debugId=264CD1DF2B65347764756E2164756E21
19263
- //# sourceMappingURL=plugin-9vdeenc2.js.map
19399
+ //# debugId=5490887BCA64018E64756E2164756E21
19400
+ //# sourceMappingURL=plugin-rmaz7x3d.js.map