apps 0.0.1-beta.3 → 0.0.1-beta.30

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 (139) hide show
  1. package/README.md +68 -44
  2. package/framework-reference.json +1 -1
  3. package/js/{chunk-G7ZIRKMK.js → chunk-2D2PKLGQ.js} +118 -197
  4. package/js/chunk-3SPRHIEE.js +42 -0
  5. package/js/{chunk-FDNTX5QJ.js → chunk-4N26L465.js} +2 -2
  6. package/js/chunk-5ZHHO4OM.js +92 -0
  7. package/js/{chunk-EVJUVWN2.js → chunk-65SZ23BK.js} +2 -2
  8. package/js/{chunk-M6ZRRIBI.js → chunk-6JBTHTI5.js} +1 -1
  9. package/js/{chunk-J7O55ZV7.js → chunk-6NK26ONC.js} +332 -187
  10. package/js/chunk-6VWYEQ4X.js +254 -0
  11. package/js/{chunk-RN2MXB4R.js → chunk-AE4FWJQU.js} +128 -24
  12. package/js/{chunk-HDJH3RPR.js → chunk-BBTELEAN.js} +2 -2
  13. package/js/{chunk-LGIYBDWA.js → chunk-BRGF7VFN.js} +65 -1
  14. package/js/{chunk-MYYEW3RA.js → chunk-BSRU52RU.js} +984 -61
  15. package/js/{chunk-FZJOYIZO.js → chunk-BTJMXW4I.js} +1 -1
  16. package/js/{chunk-HDTGZWP2.js → chunk-IMCEF6KE.js} +139 -32
  17. package/js/chunk-KQCMHI3K.js +118 -0
  18. package/js/{chunk-BMOIAIVR.js → chunk-M2KEEOIQ.js} +49 -1
  19. package/js/{chunk-YEJOQEII.js → chunk-MYCVMDWI.js} +45 -7
  20. package/js/{chunk-FW5HBOIK.js → chunk-NXTXZ635.js} +1841 -1701
  21. package/js/chunk-OD3KFKZD.js +1617 -0
  22. package/js/{chunk-JN55AYQH.js → chunk-OI5CKSBU.js} +61 -32
  23. package/js/{chunk-NQ3OMCA5.js → chunk-P46HIAX6.js} +2 -2
  24. package/js/chunk-PUC24GZP.js +801 -0
  25. package/js/{chunk-SATWJKN6.js → chunk-PWF2DRJ3.js} +1 -1
  26. package/js/{chunk-D47C7KG5.js → chunk-VUVBMNKC.js} +2 -2
  27. package/js/{chunk-ZCAMUXSG.js → chunk-WGBI5MVX.js} +3 -4
  28. package/js/{chunk-T2LAZCAD.js → chunk-WQ5MVBTP.js} +1 -1
  29. package/js/{chunk-PLCMJREA.js → chunk-XBQTJP76.js} +60 -20
  30. package/js/{chunk-QKHR7BMF.js → chunk-XGN5IFOZ.js} +3 -3
  31. package/js/{chunk-WFSQXYUT.js → chunk-YML53Z7H.js} +42 -5
  32. package/js/{chunk-5MQZEB6Y.js → chunk-ZZOCEUTB.js} +37 -12
  33. package/js/client.js +120 -84
  34. package/js/contracts.js +110 -16
  35. package/js/effect.js +20 -20
  36. package/js/{es-APDZKREY.js → es-DIULA3ZF.js} +62 -1659
  37. package/js/graphql.js +58 -54
  38. package/js/host.js +20 -20
  39. package/js/index.js +247 -204
  40. package/js/mcp/effect.js +24 -22
  41. package/js/mcp/stdio.js +35 -30
  42. package/js/mcp.js +105 -68
  43. package/js/openapi.js +4087 -1503
  44. package/js/react.js +3 -3
  45. package/js/skills/effect.js +5 -3
  46. package/js/skills.js +15 -15
  47. package/js/storage/facet.js +4 -4
  48. package/js/ui/auth/contracts.js +2 -2
  49. package/js/ui/auth.js +5 -5
  50. package/js/ui/contracts.js +5 -4
  51. package/js/ui/serving.js +8516 -214
  52. package/package.json +1 -1
  53. package/runtime.json +1 -1
  54. package/types/app-data/src/contracts/database.d.ts +33 -6
  55. package/types/app-data/src/implementation/schema.d.ts +2 -17
  56. package/types/apps/src/contracts/api-response-error.d.ts +4 -0
  57. package/types/apps/src/contracts/app.d.ts +7 -6
  58. package/types/apps/src/contracts/failure.d.ts +54 -0
  59. package/types/apps/src/contracts/graphql.d.ts +2 -1
  60. package/types/apps/src/contracts/host.d.ts +34 -11
  61. package/types/apps/src/contracts/mcp.d.ts +91 -10
  62. package/types/apps/src/contracts/network.d.ts +84 -0
  63. package/types/apps/src/contracts/openapi-compile.d.ts +31 -3
  64. package/types/apps/src/contracts/openapi.d.ts +45 -9
  65. package/types/apps/src/contracts/operations.d.ts +5 -6
  66. package/types/apps/src/contracts/protocol-version.d.ts +2 -2
  67. package/types/apps/src/contracts/protocols/1.d.ts +251 -69
  68. package/types/apps/src/contracts/protocols/2.d.ts +710 -0
  69. package/types/apps/src/contracts/protocols/3.d.ts +716 -0
  70. package/types/apps/src/contracts/protocols/4.d.ts +1298 -0
  71. package/types/apps/src/contracts/protocols/5.d.ts +1174 -0
  72. package/types/apps/src/contracts/protocols/6.d.ts +1620 -0
  73. package/types/apps/src/contracts/protocols/7.d.ts +1784 -0
  74. package/types/apps/src/contracts/protocols/8.d.ts +1119 -0
  75. package/types/apps/src/contracts/protocols/oauth.d.ts +89 -0
  76. package/types/apps/src/contracts/provider-error.d.ts +9 -0
  77. package/types/apps/src/contracts/provider.d.ts +115 -10
  78. package/types/apps/src/contracts/router.d.ts +59 -0
  79. package/types/apps/src/contracts/skills.d.ts +18 -5
  80. package/types/apps/src/contracts/storage.d.ts +3 -3
  81. package/types/apps/src/contracts/ui.d.ts +18 -0
  82. package/types/apps/src/contracts/workflows.d.ts +34 -3
  83. package/types/apps/src/graphql.d.ts +1 -3
  84. package/types/apps/src/implementation/account-router.d.ts +12 -0
  85. package/types/apps/src/implementation/app.d.ts +5 -4
  86. package/types/apps/src/implementation/browser-scripts.gen.d.ts +6 -0
  87. package/types/apps/src/implementation/catalog-cache.d.ts +34 -4
  88. package/types/apps/src/implementation/elicitation.d.ts +9 -9
  89. package/types/apps/src/implementation/failure-detail.d.ts +46 -0
  90. package/types/apps/src/implementation/graphql-catalog.d.ts +4 -7
  91. package/types/apps/src/implementation/graphql.d.ts +4 -3
  92. package/types/apps/src/implementation/mcp-call.d.ts +6 -5
  93. package/types/apps/src/implementation/mcp-catalog.d.ts +7 -8
  94. package/types/apps/src/implementation/mcp-client.d.ts +49 -25
  95. package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
  96. package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
  97. package/types/apps/src/implementation/mcp.d.ts +52 -25
  98. package/types/apps/src/implementation/network.d.ts +16 -0
  99. package/types/apps/src/implementation/openapi-compile.d.ts +27 -6
  100. package/types/apps/src/implementation/openapi-document.d.ts +35 -8
  101. package/types/apps/src/implementation/openapi-names.d.ts +9 -4
  102. package/types/apps/src/implementation/openapi-request.d.ts +10 -2
  103. package/types/apps/src/implementation/openapi-source.d.ts +8 -6
  104. package/types/apps/src/implementation/openapi-upgrade.d.ts +4 -0
  105. package/types/apps/src/implementation/operations.d.ts +36 -3
  106. package/types/apps/src/implementation/protocol-operations.d.ts +6 -4
  107. package/types/apps/src/implementation/provider-error.d.ts +28 -1
  108. package/types/apps/src/implementation/provider.d.ts +19 -5
  109. package/types/apps/src/implementation/router-catalog.d.ts +224 -0
  110. package/types/apps/src/implementation/router.d.ts +68 -0
  111. package/types/apps/src/implementation/runtime-yield.d.ts +7 -0
  112. package/types/apps/src/implementation/schema.d.ts +52 -1
  113. package/types/apps/src/implementation/skills.d.ts +2 -2
  114. package/types/apps/src/implementation/storage.d.ts +5 -3
  115. package/types/apps/src/implementation/ui-account-notice.d.ts +9 -0
  116. package/types/apps/src/implementation/ui-client.d.ts +2 -2
  117. package/types/apps/src/implementation/ui-document.d.ts +5 -0
  118. package/types/apps/src/implementation/ui-errors.d.ts +1 -1
  119. package/types/apps/src/implementation/ui-serving.d.ts +10 -4
  120. package/types/apps/src/implementation/ui-watch.d.ts +1 -1
  121. package/types/apps/src/implementation/upstream-error.d.ts +7 -0
  122. package/types/apps/src/implementation/webhooks.d.ts +1 -1
  123. package/types/apps/src/implementation/workflow-context.d.ts +11 -3
  124. package/types/apps/src/index.d.ts +29 -11
  125. package/types/apps/src/mcp-stdio.d.ts +2 -5
  126. package/types/apps/src/mcp.d.ts +25 -5
  127. package/types/apps/src/openapi.d.ts +6 -6
  128. package/types/apps/src/skills.d.ts +4 -4
  129. package/types/telemetry/src/browser-operations.d.ts +5 -2
  130. package/types/telemetry/src/config.d.ts +2 -2
  131. package/types/utils/src/api-error.d.ts +48 -0
  132. package/js/chunk-PYUYJRSK.js +0 -93
  133. package/js/chunk-SWPD52J7.js +0 -35
  134. package/js/chunk-W7D7WVSY.js +0 -18
  135. package/js/chunk-Z5NMEGJN.js +0 -29
  136. package/js/chunk-ZJWDMTE3.js +0 -63
  137. package/types/apps/src/contracts/dynamic-tools.d.ts +0 -13
  138. package/types/apps/src/implementation/account-operations.d.ts +0 -151
  139. package/types/apps/src/implementation/dynamic-tools.d.ts +0 -8
package/js/client.js CHANGED
@@ -1,40 +1,41 @@
1
1
  import {
2
2
  AppUiApi,
3
- HttpApiClient_exports,
4
3
  UiContext,
5
4
  UiDeploymentChanged,
6
5
  UiFailed
7
- } from "./chunk-G7ZIRKMK.js";
6
+ } from "./chunk-5ZHHO4OM.js";
8
7
  import {
9
8
  AsyncResult_exports,
10
9
  AtomRegistry_exports,
11
10
  Atom_exports,
12
11
  queryResult
13
- } from "./chunk-EVJUVWN2.js";
14
- import "./chunk-M6ZRRIBI.js";
12
+ } from "./chunk-65SZ23BK.js";
13
+ import "./chunk-6JBTHTI5.js";
15
14
  import {
16
15
  OtlpExporter_exports,
17
- TraceContext,
18
16
  externalTrace,
19
17
  pendingSpan,
20
18
  telemetryLayer,
21
19
  traceLinks
22
- } from "./chunk-ZCAMUXSG.js";
20
+ } from "./chunk-WGBI5MVX.js";
23
21
  import {
24
22
  FetchHttpClient_exports
25
- } from "./chunk-HDJH3RPR.js";
26
- import {
27
- HttpClientError_exports
28
- } from "./chunk-QKHR7BMF.js";
23
+ } from "./chunk-BBTELEAN.js";
29
24
  import {
30
25
  decoderOf
31
- } from "./chunk-WFSQXYUT.js";
26
+ } from "./chunk-YML53Z7H.js";
32
27
  import {
33
28
  StorageName
34
- } from "./chunk-FZJOYIZO.js";
29
+ } from "./chunk-BTJMXW4I.js";
35
30
  import {
36
31
  JsonValue
37
- } from "./chunk-SATWJKN6.js";
32
+ } from "./chunk-PWF2DRJ3.js";
33
+ import {
34
+ HttpApiClient_exports
35
+ } from "./chunk-2D2PKLGQ.js";
36
+ import {
37
+ HttpClientError_exports
38
+ } from "./chunk-XGN5IFOZ.js";
38
39
  import {
39
40
  Cause_exports,
40
41
  Clock_exports,
@@ -47,12 +48,13 @@ import {
47
48
  Logger_exports,
48
49
  ManagedRuntime_exports,
49
50
  Option_exports,
51
+ Queue_exports,
50
52
  Schedule_exports,
51
53
  Schema_exports,
52
54
  Semaphore_exports,
53
55
  Stream_exports,
54
56
  Tracer_exports
55
- } from "./chunk-FW5HBOIK.js";
57
+ } from "./chunk-NXTXZ635.js";
56
58
  import "./chunk-CZ7CSFO4.js";
57
59
 
58
60
  // src/contracts/live.ts
@@ -448,21 +450,6 @@ var observeBrowserPerformance = Effect_exports.gen(function* () {
448
450
  };
449
451
  });
450
452
 
451
- // ../telemetry/src/browser-operations.ts
452
- var BrowserOperationFailure = Schema_exports.Struct({
453
- error_type: Schema_exports.Literals([
454
- "BrowserDecodeFailed",
455
- "BrowserTransportFailed",
456
- "BrowserOperationFailed"
457
- ]),
458
- trace_id: TraceContext.fields.traceId,
459
- span_id: TraceContext.fields.spanId,
460
- page_id: Schema_exports.String
461
- });
462
- var ResponseTrace = Context_exports.Reference("telemetry/ResponseTrace", {
463
- defaultValue: () => void 0
464
- });
465
-
466
453
  // ../telemetry/src/browser.ts
467
454
  var BrowserTelemetry = class extends Context_exports.Service()("executor/BrowserTelemetry") {
468
455
  };
@@ -809,6 +796,33 @@ var makeOptimisticClient = (transport) => {
809
796
  };
810
797
 
811
798
  // src/implementation/ui-client.ts
799
+ var resubscribeDelay = Schedule_exports.min([
800
+ Schedule_exports.exponential("1 second"),
801
+ Schedule_exports.spaced("1 minute")
802
+ ]).pipe(Schedule_exports.jittered);
803
+ var appFailure = (error) => Schema_exports.is(UiFailed)(error) && error.reason === "operation_failed";
804
+ var resubscribes = (error) => HttpClientError_exports.isHttpClientError(error) || Cause_exports.isTimeoutError(error) || Schema_exports.is(UiFailed)(error) && error.reason !== "account_required";
805
+ var Retrying = class {
806
+ constructor(error, previous) {
807
+ this.error = error;
808
+ this.previous = previous;
809
+ }
810
+ error;
811
+ previous;
812
+ };
813
+ var visibleResult = (result) => {
814
+ const current = AsyncResult_exports.value(result);
815
+ if (Option_exports.isNone(current) || !(current.value instanceof Retrying)) {
816
+ return result;
817
+ }
818
+ const previous = Option_exports.map(
819
+ Option_exports.fromUndefinedOr(current.value.previous),
820
+ AsyncResult_exports.success
821
+ );
822
+ return AsyncResult_exports.isSuccess(result) ? AsyncResult_exports.failureWithPrevious(Cause_exports.fail(current.value.error), { previous, waiting: true }) : AsyncResult_exports.failureWithPrevious(AsyncResult_exports.isFailure(result) ? result.cause : Cause_exports.empty, {
823
+ previous
824
+ });
825
+ };
812
826
  var createAppClient = () => {
813
827
  const { runtime, atoms } = makeBrowserTelemetry(
814
828
  browserSettings("/_executor/api/telemetry", "executor-app-web")
@@ -863,7 +877,8 @@ var createAppClient = () => {
863
877
  Stream_exports.suspend(() => {
864
878
  let previous;
865
879
  let attempts = 0;
866
- return Stream_exports.unwrap(
880
+ let latest;
881
+ const subscription = Stream_exports.unwrap(
867
882
  Effect_exports.gen(function* () {
868
883
  const attempt = attempts++;
869
884
  const first = yield* pendingSpan("ui.app.first_result", {
@@ -911,53 +926,55 @@ var createAppClient = () => {
911
926
  Stream_exports.timeout("45 seconds"),
912
927
  Stream_exports.concat(Stream_exports.fail(new UiFailed({ reason: "unavailable" }))),
913
928
  Stream_exports.filter((frame) => frame.type !== "heartbeat"),
914
- Stream_exports.mapEffect((frame) => {
915
- if (frame.type === "failure") return Effect_exports.fail(frame.error);
916
- const server = externalTrace(frame.trace);
917
- return Effect_exports.gen(function* () {
918
- const value = yield* Schema_exports.decodeUnknownEffect(decoderOf(output))(
919
- frame.value
920
- ).pipe(Effect_exports.mapError(() => new UiFailed({ reason: "operation_failed" })));
921
- const received = yield* Effect_exports.currentSpan;
922
- const receivedAt = clock.currentTimeMillisUnsafe();
923
- const currentRevision = revision++;
924
- yield* Effect_exports.annotateCurrentSpan({
925
- "executor.operation.name": name,
926
- "executor.snapshot.revision": currentRevision,
927
- "browser.query.elapsed_ms": receivedAt - started,
928
- "executor.trace.context_valid": Option_exports.isSome(server)
929
- });
930
- yield* first.finish(Exit_exports.void);
931
- let committed = false;
932
- return {
933
- value,
934
- commit: () => {
935
- if (committed) return;
936
- committed = true;
937
- const committedAt = clock.currentTimeMillisUnsafe();
938
- runtime.runFork(
939
- Effect_exports.void.pipe(
940
- Effect_exports.withSpan("ui.app.result.commit", {
941
- parent: received,
942
- attributes: {
943
- "executor.operation.name": name,
944
- "executor.snapshot.revision": currentRevision,
945
- "browser.query.elapsed_ms": committedAt - started,
946
- "browser.query.receive_to_commit_ms": committedAt - receivedAt,
947
- "browser.page.hidden": document.visibilityState === "hidden"
948
- }
949
- })
950
- )
951
- );
952
- }
953
- };
954
- }).pipe(
955
- Effect_exports.withSpan("ui.app.result.receive", {
956
- parent: Option_exports.isSome(server) ? server.value : first.span,
957
- kind: "consumer"
958
- })
959
- );
960
- }),
929
+ Stream_exports.mapEffect(
930
+ (frame) => {
931
+ if (frame.type === "failure") return Effect_exports.fail(frame.error);
932
+ const server = externalTrace(frame.trace);
933
+ return Effect_exports.gen(function* () {
934
+ const value = yield* Schema_exports.decodeUnknownEffect(decoderOf(output))(
935
+ frame.value
936
+ ).pipe(Effect_exports.mapError(() => new AppQueryFailed()));
937
+ const received = yield* Effect_exports.currentSpan;
938
+ const receivedAt = clock.currentTimeMillisUnsafe();
939
+ const currentRevision = revision++;
940
+ yield* Effect_exports.annotateCurrentSpan({
941
+ "executor.operation.name": name,
942
+ "executor.snapshot.revision": currentRevision,
943
+ "browser.query.elapsed_ms": receivedAt - started,
944
+ "executor.trace.context_valid": Option_exports.isSome(server)
945
+ });
946
+ yield* first.finish(Exit_exports.void);
947
+ let committed = false;
948
+ return {
949
+ value,
950
+ commit: () => {
951
+ if (committed) return;
952
+ committed = true;
953
+ const committedAt = clock.currentTimeMillisUnsafe();
954
+ runtime.runFork(
955
+ Effect_exports.void.pipe(
956
+ Effect_exports.withSpan("ui.app.result.commit", {
957
+ parent: received,
958
+ attributes: {
959
+ "executor.operation.name": name,
960
+ "executor.snapshot.revision": currentRevision,
961
+ "browser.query.elapsed_ms": committedAt - started,
962
+ "browser.query.receive_to_commit_ms": committedAt - receivedAt,
963
+ "browser.page.hidden": document.visibilityState === "hidden"
964
+ }
965
+ })
966
+ )
967
+ );
968
+ }
969
+ };
970
+ }).pipe(
971
+ Effect_exports.withSpan("ui.app.result.receive", {
972
+ parent: Option_exports.isSome(server) ? server.value : first.span,
973
+ kind: "consumer"
974
+ })
975
+ );
976
+ }
977
+ ),
961
978
  Stream_exports.onExit(finish),
962
979
  Stream_exports.provideService(Tracer_exports.ParentSpan, first.span)
963
980
  );
@@ -968,16 +985,35 @@ var createAppClient = () => {
968
985
  Stream_exports.catch(
969
986
  (error) => Schema_exports.is(UiDeploymentChanged)(error) ? Stream_exports.unwrap(deploymentChanged.pipe(Effect_exports.as(Stream_exports.never))) : Stream_exports.fail(error)
970
987
  ),
971
- Stream_exports.retry(
972
- Schedule_exports.spaced("1 second").pipe(
973
- Schedule_exports.while(
974
- ({ input: input2 }) => HttpClientError_exports.isHttpClientError(input2) || Cause_exports.isTimeoutError(input2) || Schema_exports.is(UiFailed)(input2)
975
- )
976
- )
988
+ Stream_exports.tap(
989
+ (value) => Effect_exports.sync(() => {
990
+ latest = value;
991
+ })
977
992
  )
978
993
  );
994
+ return Stream_exports.unwrap(
995
+ Effect_exports.gen(function* () {
996
+ const retrying = yield* Queue_exports.unbounded();
997
+ return Stream_exports.merge(
998
+ subscription.pipe(
999
+ Stream_exports.retry(
1000
+ resubscribeDelay.pipe(
1001
+ Schedule_exports.while(
1002
+ ({ input: input2 }) => !resubscribes(input2) ? false : appFailure(input2) ? Queue_exports.offer(retrying, new Retrying(input2, latest)).pipe(
1003
+ Effect_exports.as(true)
1004
+ ) : true
1005
+ )
1006
+ )
1007
+ )
1008
+ ),
1009
+ // Shown outside the retried stream, so they do not reset its delay.
1010
+ Stream_exports.fromQueue(retrying),
1011
+ { haltStrategy: "left" }
1012
+ );
1013
+ })
1014
+ );
979
1015
  })
980
- ).pipe(Atom_exports.map(queryResult));
1016
+ ).pipe(Atom_exports.map((result) => queryResult(visibleResult(result))));
981
1017
  const optimistic = makeOptimisticClient({
982
1018
  source,
983
1019
  read: (name, input, output) => request("query", name, input, output),
package/js/contracts.js CHANGED
@@ -1,7 +1,12 @@
1
1
  import {
2
+ AccountCheckCommand,
3
+ AccountCheckResult,
4
+ AccountInfo,
5
+ ApiErrorResponse,
2
6
  ApprovalElicitation,
3
7
  ApprovalResponse,
4
8
  CalendarSchedule,
9
+ CredentialHost,
5
10
  DeclaredAuthMethod,
6
11
  DeclaredProvider,
7
12
  DeclaredRequirements,
@@ -9,7 +14,9 @@ import {
9
14
  ElicitationLimits,
10
15
  ElicitationReply,
11
16
  ElicitationResponse,
17
+ FetchOptionUnsupported,
12
18
  FormElicitation,
19
+ HostAccountCheckError,
13
20
  HostAccountsInvalid,
14
21
  HostCallError,
15
22
  HostDataError,
@@ -19,6 +26,7 @@ import {
19
26
  HostInputInvalid,
20
27
  HostInspectError,
21
28
  HostInvocation,
29
+ HostKindMismatch,
22
30
  HostOperationFailed,
23
31
  HostOperationNotFound,
24
32
  HostOutputInvalid,
@@ -26,10 +34,14 @@ import {
26
34
  HostRequestInvalid,
27
35
  HostRequirementsError,
28
36
  HostResponse,
37
+ HostRouterError,
29
38
  HostToolApprovalRequired,
30
39
  HostToolBlocked,
31
40
  HostToolNotFound,
32
41
  HostToolPolicyFailed,
42
+ HostedCatalog,
43
+ HostedCatalogSummary,
44
+ HostedRouter,
33
45
  HostedTool,
34
46
  HostedToolSummary,
35
47
  HostedWebhook,
@@ -41,13 +53,20 @@ import {
41
53
  ManualWebhookSetup,
42
54
  McpClientLimits,
43
55
  McpError,
56
+ NetworkRefusal,
57
+ NetworkRefused,
44
58
  NonRetryableError,
45
59
  OAuthClientAuth,
46
60
  OAuthSecretClientAuth,
61
+ OAuthTokenRequestFormat,
62
+ OAuthTokenResponse,
63
+ OpenapiResponseError,
47
64
  OperationSchedule,
48
- OperationToolPrefixes,
49
65
  ResolvedAccount,
50
66
  ResolvedAccounts,
67
+ RouterIcon,
68
+ RouterKey,
69
+ RouterMeta,
51
70
  ScheduleTiming,
52
71
  SkillCatalogResponse,
53
72
  SkillSources,
@@ -61,11 +80,13 @@ import {
61
80
  WorkflowControlCommand,
62
81
  WorkflowDuration,
63
82
  WorkflowFailure,
83
+ WorkflowFailureDetail,
64
84
  WorkflowName,
65
85
  WorkflowReplay,
66
86
  WorkflowRpcCommand,
67
87
  WorkflowRpcResult,
68
88
  WorkflowRun,
89
+ WorkflowRunFailure,
69
90
  WorkflowRunId,
70
91
  WorkflowRunPage,
71
92
  WorkflowStepOptions,
@@ -77,16 +98,47 @@ import {
77
98
  frameworkProtocol,
78
99
  indexCommand,
79
100
  inspectCommand,
101
+ maxApiErrorInstructionsLength,
102
+ maxApiErrorMessageLength,
80
103
  maxInputProblems,
81
104
  minimumIntervalMilliseconds,
105
+ networkRefusalHeader,
106
+ networkRefusalResponse,
107
+ networkRefusalStatus,
82
108
  protocol1,
109
+ protocol2,
110
+ protocol3,
111
+ protocol4,
112
+ protocol5,
113
+ protocol6,
114
+ protocol7,
115
+ protocol8,
83
116
  selectTools,
84
117
  skillCatalog,
85
118
  skillsCommand,
86
119
  workflowDurationMillis
87
- } from "./chunk-MYYEW3RA.js";
88
- import "./chunk-BMOIAIVR.js";
89
- import "./chunk-LGIYBDWA.js";
120
+ } from "./chunk-BSRU52RU.js";
121
+ import {
122
+ DatabaseFieldReserved,
123
+ DatabaseLimitExceeded
124
+ } from "./chunk-M2KEEOIQ.js";
125
+ import {
126
+ FailureCode,
127
+ FailureDetail,
128
+ FailureFieldName,
129
+ FailureFieldValue,
130
+ FailureFields,
131
+ FailureMessage,
132
+ FailureName,
133
+ FailurePhase,
134
+ FailureSource,
135
+ ProviderError,
136
+ UpstreamError,
137
+ maxFailureFieldLength,
138
+ maxFailureFields,
139
+ maxFailureMessageLength,
140
+ maxUpstreamMessageLength
141
+ } from "./chunk-BRGF7VFN.js";
90
142
  import {
91
143
  AppSkillMetadata,
92
144
  AppSkillName,
@@ -99,27 +151,25 @@ import {
99
151
  SkillServiceName,
100
152
  skillFormatLimits,
101
153
  skillLoadLimits
102
- } from "./chunk-YEJOQEII.js";
103
- import {
104
- ApiErrorResponse,
105
- OpenapiResponseError
106
- } from "./chunk-SWPD52J7.js";
107
- import {
108
- ProviderError
109
- } from "./chunk-W7D7WVSY.js";
154
+ } from "./chunk-MYCVMDWI.js";
110
155
  import {
111
156
  AppStorageError,
112
157
  AppStorageUnavailable,
113
158
  StorageName
114
- } from "./chunk-FZJOYIZO.js";
159
+ } from "./chunk-BTJMXW4I.js";
115
160
  import {
116
161
  AccountId,
117
162
  HttpUrl
118
- } from "./chunk-SATWJKN6.js";
119
- import "./chunk-FW5HBOIK.js";
163
+ } from "./chunk-PWF2DRJ3.js";
164
+ import "./chunk-2D2PKLGQ.js";
165
+ import "./chunk-XGN5IFOZ.js";
166
+ import "./chunk-NXTXZ635.js";
120
167
  import "./chunk-CZ7CSFO4.js";
121
168
  export {
169
+ AccountCheckCommand,
170
+ AccountCheckResult,
122
171
  AccountId,
172
+ AccountInfo,
123
173
  ApiErrorResponse,
124
174
  AppSkillMetadata,
125
175
  AppSkillName,
@@ -130,6 +180,9 @@ export {
130
180
  ApprovalElicitation,
131
181
  ApprovalResponse,
132
182
  CalendarSchedule,
183
+ CredentialHost,
184
+ DatabaseFieldReserved,
185
+ DatabaseLimitExceeded,
133
186
  DeclaredAuthMethod,
134
187
  DeclaredProvider,
135
188
  DeclaredRequirements,
@@ -137,7 +190,18 @@ export {
137
190
  ElicitationLimits,
138
191
  ElicitationReply,
139
192
  ElicitationResponse,
193
+ FailureCode,
194
+ FailureDetail,
195
+ FailureFieldName,
196
+ FailureFieldValue,
197
+ FailureFields,
198
+ FailureMessage,
199
+ FailureName,
200
+ FailurePhase,
201
+ FailureSource,
202
+ FetchOptionUnsupported,
140
203
  FormElicitation,
204
+ HostAccountCheckError,
141
205
  HostAccountsInvalid,
142
206
  HostCallError,
143
207
  HostDataError,
@@ -147,6 +211,7 @@ export {
147
211
  HostInputInvalid,
148
212
  HostInspectError,
149
213
  HostInvocation,
214
+ HostKindMismatch,
150
215
  HostOperationFailed,
151
216
  HostOperationNotFound,
152
217
  HostOutputInvalid,
@@ -154,10 +219,14 @@ export {
154
219
  HostRequestInvalid,
155
220
  HostRequirementsError,
156
221
  HostResponse,
222
+ HostRouterError,
157
223
  HostToolApprovalRequired,
158
224
  HostToolBlocked,
159
225
  HostToolNotFound,
160
226
  HostToolPolicyFailed,
227
+ HostedCatalog,
228
+ HostedCatalogSummary,
229
+ HostedRouter,
161
230
  HostedTool,
162
231
  HostedToolSummary,
163
232
  HostedWebhook,
@@ -170,15 +239,21 @@ export {
170
239
  ManualWebhookSetup,
171
240
  McpClientLimits,
172
241
  McpError,
242
+ NetworkRefusal,
243
+ NetworkRefused,
173
244
  NonRetryableError,
174
245
  OAuthClientAuth,
175
246
  OAuthSecretClientAuth,
247
+ OAuthTokenRequestFormat,
248
+ OAuthTokenResponse,
176
249
  OpenapiResponseError,
177
250
  OperationSchedule,
178
- OperationToolPrefixes,
179
251
  ProviderError,
180
252
  ResolvedAccount,
181
253
  ResolvedAccounts,
254
+ RouterIcon,
255
+ RouterKey,
256
+ RouterMeta,
182
257
  ScheduleTiming,
183
258
  SkillCatalogResponse,
184
259
  SkillDefinitionInvalid,
@@ -190,6 +265,7 @@ export {
190
265
  StorageName,
191
266
  ToolResultObservation,
192
267
  TrustedToolApproval,
268
+ UpstreamError,
193
269
  WebhookCommand,
194
270
  WebhookRequestData,
195
271
  WebhookResponseData,
@@ -198,11 +274,13 @@ export {
198
274
  WorkflowControlCommand,
199
275
  WorkflowDuration,
200
276
  WorkflowFailure,
277
+ WorkflowFailureDetail,
201
278
  WorkflowName,
202
279
  WorkflowReplay,
203
280
  WorkflowRpcCommand,
204
281
  WorkflowRpcResult,
205
282
  WorkflowRun,
283
+ WorkflowRunFailure,
206
284
  WorkflowRunId,
207
285
  WorkflowRunPage,
208
286
  WorkflowStepOptions,
@@ -214,9 +292,25 @@ export {
214
292
  frameworkProtocol,
215
293
  indexCommand,
216
294
  inspectCommand,
295
+ maxApiErrorInstructionsLength,
296
+ maxApiErrorMessageLength,
297
+ maxFailureFieldLength,
298
+ maxFailureFields,
299
+ maxFailureMessageLength,
217
300
  maxInputProblems,
301
+ maxUpstreamMessageLength,
218
302
  minimumIntervalMilliseconds,
303
+ networkRefusalHeader,
304
+ networkRefusalResponse,
305
+ networkRefusalStatus,
219
306
  protocol1,
307
+ protocol2,
308
+ protocol3,
309
+ protocol4,
310
+ protocol5,
311
+ protocol6,
312
+ protocol7,
313
+ protocol8,
220
314
  selectTools,
221
315
  skillCatalog,
222
316
  skillFormatLimits,
package/js/effect.js CHANGED
@@ -3,37 +3,37 @@ import {
3
3
  ApprovalDecision,
4
4
  createAppHandler,
5
5
  prepareElicitation
6
- } from "./chunk-J7O55ZV7.js";
7
- import "./chunk-D47C7KG5.js";
8
- import "./chunk-FDNTX5QJ.js";
9
- import "./chunk-JN55AYQH.js";
10
- import "./chunk-PLCMJREA.js";
11
- import "./chunk-PYUYJRSK.js";
12
- import "./chunk-ZJWDMTE3.js";
6
+ } from "./chunk-6NK26ONC.js";
7
+ import "./chunk-VUVBMNKC.js";
8
+ import "./chunk-PUC24GZP.js";
9
+ import "./chunk-4N26L465.js";
10
+ import "./chunk-OI5CKSBU.js";
11
+ import "./chunk-XBQTJP76.js";
12
+ import "./chunk-6VWYEQ4X.js";
13
+ import "./chunk-KQCMHI3K.js";
13
14
  import {
14
15
  ToolAnnotations
15
- } from "./chunk-MYYEW3RA.js";
16
- import "./chunk-BMOIAIVR.js";
17
- import "./chunk-LGIYBDWA.js";
18
- import "./chunk-YEJOQEII.js";
19
- import "./chunk-SWPD52J7.js";
20
- import "./chunk-W7D7WVSY.js";
21
- import "./chunk-ZCAMUXSG.js";
22
- import "./chunk-HDJH3RPR.js";
23
- import "./chunk-QKHR7BMF.js";
16
+ } from "./chunk-BSRU52RU.js";
17
+ import "./chunk-M2KEEOIQ.js";
18
+ import "./chunk-BRGF7VFN.js";
19
+ import "./chunk-MYCVMDWI.js";
20
+ import "./chunk-WGBI5MVX.js";
21
+ import "./chunk-BBTELEAN.js";
24
22
  import {
25
23
  compileJsonSchemaDecoder,
26
24
  decoderOf,
27
25
  jsonSchemaDecoder,
28
26
  wrap
29
- } from "./chunk-WFSQXYUT.js";
30
- import "./chunk-FZJOYIZO.js";
27
+ } from "./chunk-YML53Z7H.js";
28
+ import "./chunk-BTJMXW4I.js";
31
29
  import {
32
30
  HttpUrl,
33
31
  JsonObject,
34
32
  ValidationError
35
- } from "./chunk-SATWJKN6.js";
36
- import "./chunk-FW5HBOIK.js";
33
+ } from "./chunk-PWF2DRJ3.js";
34
+ import "./chunk-2D2PKLGQ.js";
35
+ import "./chunk-XGN5IFOZ.js";
36
+ import "./chunk-NXTXZ635.js";
37
37
  import "./chunk-CZ7CSFO4.js";
38
38
  export {
39
39
  ApprovalDecision,