apps 0.0.1-beta.28 → 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 (38) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-SDLIDQXG.js → chunk-2D2PKLGQ.js} +117 -196
  3. package/js/{chunk-MWCLJQRI.js → chunk-3SPRHIEE.js} +2 -2
  4. package/js/{chunk-TSLG2WPA.js → chunk-4N26L465.js} +1 -1
  5. package/js/chunk-5ZHHO4OM.js +92 -0
  6. package/js/{chunk-GLIAMV2R.js → chunk-6NK26ONC.js} +7 -7
  7. package/js/{chunk-GQ7GCZ4J.js → chunk-6VWYEQ4X.js} +1 -1
  8. package/js/{chunk-VIQQ52V7.js → chunk-AE4FWJQU.js} +3 -3
  9. package/js/{chunk-V2I3MMPM.js → chunk-BBTELEAN.js} +1 -1
  10. package/js/{chunk-TE2HPDZG.js → chunk-BSRU52RU.js} +1 -1
  11. package/js/{chunk-L76NWXM5.js → chunk-IMCEF6KE.js} +6 -6
  12. package/js/{chunk-NSBRV4FJ.js → chunk-MYCVMDWI.js} +44 -6
  13. package/js/{chunk-VF3X26ZO.js → chunk-OI5CKSBU.js} +2 -2
  14. package/js/{chunk-PTUZSCEV.js → chunk-P46HIAX6.js} +1 -1
  15. package/js/{chunk-JN3PEGMW.js → chunk-PUC24GZP.js} +32 -7
  16. package/js/{chunk-YXKXKGN6.js → chunk-WGBI5MVX.js} +2 -2
  17. package/js/client.js +9 -7
  18. package/js/contracts.js +4 -2
  19. package/js/effect.js +11 -10
  20. package/js/graphql.js +15 -14
  21. package/js/host.js +11 -10
  22. package/js/index.js +6 -4
  23. package/js/mcp/effect.js +13 -12
  24. package/js/mcp/stdio.js +13 -12
  25. package/js/mcp.js +14 -13
  26. package/js/openapi.js +184 -151
  27. package/js/skills/effect.js +4 -2
  28. package/js/skills.js +8 -7
  29. package/js/ui/auth.js +3 -3
  30. package/js/ui/contracts.js +3 -2
  31. package/js/ui/serving.js +7 -6
  32. package/package.json +1 -1
  33. package/runtime.json +1 -1
  34. package/types/apps/src/contracts/openapi.d.ts +22 -1
  35. package/types/apps/src/contracts/skills.d.ts +18 -5
  36. package/types/apps/src/implementation/openapi-compile.d.ts +7 -0
  37. package/types/utils/src/api-error.d.ts +48 -0
  38. package/js/{chunk-B5YJQU45.js → chunk-XGN5IFOZ.js} +2 -2
@@ -19,10 +19,7 @@ import {
19
19
  text,
20
20
  uint8Array,
21
21
  urlParams
22
- } from "./chunk-B5YJQU45.js";
23
- import {
24
- JsonValue
25
- } from "./chunk-PWF2DRJ3.js";
22
+ } from "./chunk-XGN5IFOZ.js";
26
23
  import {
27
24
  Cause,
28
25
  Defect,
@@ -31,7 +28,6 @@ import {
31
28
  Literal,
32
29
  Never,
33
30
  RecordFromUrlParams,
34
- Schema_exports,
35
31
  Service,
36
32
  String as String2,
37
33
  Struct,
@@ -123,34 +119,6 @@ import {
123
119
  __export
124
120
  } from "./chunk-CZ7CSFO4.js";
125
121
 
126
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApi.js
127
- var HttpApi_exports = {};
128
- __export(HttpApi_exports, {
129
- AdditionalSchemas: () => AdditionalSchemas,
130
- ParseOptions: () => ParseOptions,
131
- isHttpApi: () => isHttpApi,
132
- make: () => make4,
133
- reflect: () => reflect
134
- });
135
-
136
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApiEndpoint.js
137
- var HttpApiEndpoint_exports = {};
138
- __export(HttpApiEndpoint_exports, {
139
- delete: () => del,
140
- get: () => get2,
141
- getErrorSchemas: () => getErrorSchemas,
142
- getPayloadSchemas: () => getPayloadSchemas,
143
- getSuccessSchemas: () => getSuccessSchemas,
144
- head: () => head,
145
- isHttpApiEndpoint: () => isHttpApiEndpoint,
146
- make: () => make3,
147
- options: () => options,
148
- patch: () => patch,
149
- post: () => post,
150
- put: () => put,
151
- query: () => query
152
- });
153
-
154
122
  // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApiSchema.js
155
123
  var HttpApiSchema_exports = {};
156
124
  __export(HttpApiSchema_exports, {
@@ -655,6 +623,24 @@ function getStatusErrorSchema(schema) {
655
623
  return getStatusError(schema.ast);
656
624
  }
657
625
 
626
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApiEndpoint.js
627
+ var HttpApiEndpoint_exports = {};
628
+ __export(HttpApiEndpoint_exports, {
629
+ delete: () => del,
630
+ get: () => get2,
631
+ getErrorSchemas: () => getErrorSchemas,
632
+ getPayloadSchemas: () => getPayloadSchemas,
633
+ getSuccessSchemas: () => getSuccessSchemas,
634
+ head: () => head,
635
+ isHttpApiEndpoint: () => isHttpApiEndpoint,
636
+ make: () => make3,
637
+ options: () => options,
638
+ patch: () => patch,
639
+ post: () => post,
640
+ put: () => put,
641
+ query: () => query
642
+ });
643
+
658
644
  // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/internal/mediaType.js
659
645
  function normalize(contentType) {
660
646
  const normalized = contentType.toLowerCase().trim();
@@ -990,6 +976,14 @@ var head = /* @__PURE__ */ make3("HEAD");
990
976
  var options = /* @__PURE__ */ make3("OPTIONS");
991
977
 
992
978
  // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApi.js
979
+ var HttpApi_exports = {};
980
+ __export(HttpApi_exports, {
981
+ AdditionalSchemas: () => AdditionalSchemas,
982
+ ParseOptions: () => ParseOptions,
983
+ isHttpApi: () => isHttpApi,
984
+ make: () => make4,
985
+ reflect: () => reflect
986
+ });
993
987
  var TypeId2 = "~effect/httpapi/HttpApi";
994
988
  var isHttpApi = (u) => hasProperty(u, TypeId2);
995
989
  var Proto2 = {
@@ -1109,6 +1103,88 @@ var AdditionalSchemas = class extends (/* @__PURE__ */ Service()("effect/httpapi
1109
1103
  var ParseOptions = class extends (/* @__PURE__ */ Service()("effect/httpapi/HttpApi/ParseOptions")) {
1110
1104
  };
1111
1105
 
1106
+ // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApiGroup.js
1107
+ var HttpApiGroup_exports = {};
1108
+ __export(HttpApiGroup_exports, {
1109
+ isHttpApiGroup: () => isHttpApiGroup,
1110
+ make: () => make5
1111
+ });
1112
+ var TypeId3 = "~effect/httpapi/HttpApiGroup";
1113
+ var isHttpApiGroup = (u) => hasProperty(u, TypeId3);
1114
+ var Proto3 = {
1115
+ [TypeId3]: TypeId3,
1116
+ add(...toAdd) {
1117
+ const endpoints = {
1118
+ ...this.endpoints
1119
+ };
1120
+ for (const endpoint2 of toAdd) {
1121
+ assignProperty(endpoints, endpoint2.identifier, endpoint2);
1122
+ }
1123
+ return makeProto3({
1124
+ ...optionsFromGroup(this),
1125
+ endpoints
1126
+ });
1127
+ },
1128
+ prefix(prefix) {
1129
+ return makeProto3({
1130
+ ...optionsFromGroup(this),
1131
+ endpoints: map(this.endpoints, (endpoint2) => endpoint2.prefix(prefix))
1132
+ });
1133
+ },
1134
+ middleware(middleware) {
1135
+ return makeProto3({
1136
+ ...optionsFromGroup(this),
1137
+ endpoints: map(this.endpoints, (endpoint2) => endpoint2.middleware(middleware))
1138
+ });
1139
+ },
1140
+ annotateMerge(annotations) {
1141
+ return makeProto3({
1142
+ ...optionsFromGroup(this),
1143
+ annotations: merge(this.annotations, annotations)
1144
+ });
1145
+ },
1146
+ annotate(annotation, value) {
1147
+ return makeProto3({
1148
+ ...optionsFromGroup(this),
1149
+ annotations: add(this.annotations, annotation, value)
1150
+ });
1151
+ },
1152
+ annotateEndpointsMerge(annotations) {
1153
+ return makeProto3({
1154
+ ...optionsFromGroup(this),
1155
+ endpoints: map(this.endpoints, (endpoint2) => endpoint2.annotateMerge(annotations))
1156
+ });
1157
+ },
1158
+ annotateEndpoints(annotation, value) {
1159
+ return makeProto3({
1160
+ ...optionsFromGroup(this),
1161
+ endpoints: map(this.endpoints, (endpoint2) => endpoint2.annotate(annotation, value))
1162
+ });
1163
+ },
1164
+ pipe() {
1165
+ return pipeArguments(this, arguments);
1166
+ }
1167
+ };
1168
+ var optionsFromGroup = (group2) => ({
1169
+ identifier: group2.identifier,
1170
+ topLevel: group2.topLevel,
1171
+ endpoints: group2.endpoints,
1172
+ annotations: group2.annotations
1173
+ });
1174
+ var makeProto3 = (options2) => {
1175
+ function HttpApiGroup() {
1176
+ }
1177
+ Object.setPrototypeOf(HttpApiGroup, Proto3);
1178
+ HttpApiGroup.key = `effect/httpapi/HttpApiGroup/${options2.identifier}`;
1179
+ return Object.assign(HttpApiGroup, options2);
1180
+ };
1181
+ var make5 = (identifier, options2) => makeProto3({
1182
+ identifier,
1183
+ topLevel: options2?.topLevel ?? false,
1184
+ endpoints: {},
1185
+ annotations: empty()
1186
+ });
1187
+
1112
1188
  // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/internal/path.js
1113
1189
  var emptyParamNames = /* @__PURE__ */ new Set();
1114
1190
  function getParamNames(schema) {
@@ -1122,7 +1198,7 @@ var HttpApiClient_exports = {};
1122
1198
  __export(HttpApiClient_exports, {
1123
1199
  endpoint: () => endpoint,
1124
1200
  group: () => group,
1125
- make: () => make5,
1201
+ make: () => make6,
1126
1202
  makeClient: () => makeClient,
1127
1203
  makeWith: () => makeWith,
1128
1204
  urlBuilder: () => urlBuilder
@@ -1156,7 +1232,7 @@ var makeClient = (api, options2) => gen(function* () {
1156
1232
  const {
1157
1233
  group: group2,
1158
1234
  endpoint: endpoint2,
1159
- errors: errors2,
1235
+ errors,
1160
1236
  successes,
1161
1237
  mergedAnnotations
1162
1238
  } = onEndpointOptions;
@@ -1166,7 +1242,7 @@ var makeClient = (api, options2) => gen(function* () {
1166
1242
  orElse: statusOrElse
1167
1243
  };
1168
1244
  const errorAlternatives = /* @__PURE__ */ new Map();
1169
- for (const [status2, schemas] of errors2.entries()) {
1245
+ for (const [status2, schemas] of errors.entries()) {
1170
1246
  const grouped = groupSchemasByContentType(schemas);
1171
1247
  for (const [contentType, schemas2] of grouped.entries()) {
1172
1248
  addResponseAlternative(errorAlternatives, status2, contentType, schemasToResponse(schemas2, parseOptions));
@@ -1246,7 +1322,7 @@ var makeClient = (api, options2) => gen(function* () {
1246
1322
  }
1247
1323
  });
1248
1324
  });
1249
- var make5 = (api, options2) => flatMap(HttpClient, (httpClient) => makeWith(api, {
1325
+ var make6 = (api, options2) => flatMap(HttpClient, (httpClient) => makeWith(api, {
1250
1326
  ...options2,
1251
1327
  httpClient: options2?.transformClient ? options2.transformClient(httpClient) : httpClient
1252
1328
  }));
@@ -1632,165 +1708,10 @@ function getEncodePayloadSchemaFromBody(schema, method) {
1632
1708
  return out;
1633
1709
  }
1634
1710
 
1635
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/httpapi/HttpApiGroup.js
1636
- var HttpApiGroup_exports = {};
1637
- __export(HttpApiGroup_exports, {
1638
- isHttpApiGroup: () => isHttpApiGroup,
1639
- make: () => make6
1640
- });
1641
- var TypeId3 = "~effect/httpapi/HttpApiGroup";
1642
- var isHttpApiGroup = (u) => hasProperty(u, TypeId3);
1643
- var Proto3 = {
1644
- [TypeId3]: TypeId3,
1645
- add(...toAdd) {
1646
- const endpoints = {
1647
- ...this.endpoints
1648
- };
1649
- for (const endpoint2 of toAdd) {
1650
- assignProperty(endpoints, endpoint2.identifier, endpoint2);
1651
- }
1652
- return makeProto3({
1653
- ...optionsFromGroup(this),
1654
- endpoints
1655
- });
1656
- },
1657
- prefix(prefix) {
1658
- return makeProto3({
1659
- ...optionsFromGroup(this),
1660
- endpoints: map(this.endpoints, (endpoint2) => endpoint2.prefix(prefix))
1661
- });
1662
- },
1663
- middleware(middleware) {
1664
- return makeProto3({
1665
- ...optionsFromGroup(this),
1666
- endpoints: map(this.endpoints, (endpoint2) => endpoint2.middleware(middleware))
1667
- });
1668
- },
1669
- annotateMerge(annotations) {
1670
- return makeProto3({
1671
- ...optionsFromGroup(this),
1672
- annotations: merge(this.annotations, annotations)
1673
- });
1674
- },
1675
- annotate(annotation, value) {
1676
- return makeProto3({
1677
- ...optionsFromGroup(this),
1678
- annotations: add(this.annotations, annotation, value)
1679
- });
1680
- },
1681
- annotateEndpointsMerge(annotations) {
1682
- return makeProto3({
1683
- ...optionsFromGroup(this),
1684
- endpoints: map(this.endpoints, (endpoint2) => endpoint2.annotateMerge(annotations))
1685
- });
1686
- },
1687
- annotateEndpoints(annotation, value) {
1688
- return makeProto3({
1689
- ...optionsFromGroup(this),
1690
- endpoints: map(this.endpoints, (endpoint2) => endpoint2.annotate(annotation, value))
1691
- });
1692
- },
1693
- pipe() {
1694
- return pipeArguments(this, arguments);
1695
- }
1696
- };
1697
- var optionsFromGroup = (group2) => ({
1698
- identifier: group2.identifier,
1699
- topLevel: group2.topLevel,
1700
- endpoints: group2.endpoints,
1701
- annotations: group2.annotations
1702
- });
1703
- var makeProto3 = (options2) => {
1704
- function HttpApiGroup() {
1705
- }
1706
- Object.setPrototypeOf(HttpApiGroup, Proto3);
1707
- HttpApiGroup.key = `effect/httpapi/HttpApiGroup/${options2.identifier}`;
1708
- return Object.assign(HttpApiGroup, options2);
1709
- };
1710
- var make6 = (identifier, options2) => makeProto3({
1711
- identifier,
1712
- topLevel: options2?.topLevel ?? false,
1713
- endpoints: {},
1714
- annotations: empty()
1715
- });
1716
-
1717
- // src/contracts/ui.ts
1718
- var UiContext = Schema_exports.Struct({
1719
- deployment: Schema_exports.NonEmptyString,
1720
- profile: Schema_exports.optional(Schema_exports.NonEmptyString),
1721
- expectedProfileRevision: Schema_exports.optional(Schema_exports.Int)
1722
- });
1723
- var UiOperation = Schema_exports.Struct({
1724
- ...UiContext.fields,
1725
- name: Schema_exports.NonEmptyString,
1726
- input: JsonValue
1727
- });
1728
- var UiUnauthorized = class extends Schema_exports.TaggedError()(
1729
- "UiUnauthorized",
1730
- {},
1731
- { httpApiStatus: 401 }
1732
- ) {
1733
- };
1734
- var UiForbidden = class extends Schema_exports.TaggedError()(
1735
- "UiForbidden",
1736
- {},
1737
- { httpApiStatus: 403 }
1738
- ) {
1739
- };
1740
- var UiDeploymentChanged = class extends Schema_exports.TaggedError()(
1741
- "UiDeploymentChanged",
1742
- {},
1743
- { httpApiStatus: 409 }
1744
- ) {
1745
- };
1746
- var UiFailed = class extends Schema_exports.TaggedError()(
1747
- "UiFailed",
1748
- {
1749
- reason: Schema_exports.Literals(["unavailable", "operation_failed", "account_required"])
1750
- },
1751
- { httpApiStatus: 422 }
1752
- ) {
1753
- };
1754
- var UiSnapshot = Schema_exports.Union([
1755
- Schema_exports.Struct({
1756
- type: Schema_exports.Literal("snapshot"),
1757
- value: JsonValue,
1758
- trace: Schema_exports.optional(Schema_exports.Unknown)
1759
- }),
1760
- Schema_exports.Struct({ type: Schema_exports.Literal("failure"), error: UiFailed }),
1761
- Schema_exports.Struct({ type: Schema_exports.Literal("heartbeat") })
1762
- ]);
1763
- var errors = [UiUnauthorized, UiForbidden, UiDeploymentChanged, UiFailed];
1764
- var AppUiApi = HttpApi_exports.make("app-ui").add(
1765
- HttpApiGroup_exports.make("ui").add(
1766
- HttpApiEndpoint_exports.post("query", "/_executor/api/query", {
1767
- payload: UiOperation,
1768
- success: JsonValue,
1769
- error: errors
1770
- })
1771
- ).add(
1772
- HttpApiEndpoint_exports.post("mutate", "/_executor/api/mutate", {
1773
- payload: UiOperation,
1774
- success: JsonValue,
1775
- error: errors
1776
- })
1777
- ).add(
1778
- HttpApiEndpoint_exports.post("subscribe", "/_executor/api/subscribe", {
1779
- payload: UiOperation,
1780
- success: HttpApiSchema_exports.StreamSse({ data: UiSnapshot, error: Schema_exports.Union(errors) }),
1781
- error: errors
1782
- })
1783
- )
1784
- );
1785
-
1786
1711
  export {
1712
+ HttpApiSchema_exports,
1713
+ HttpApiEndpoint_exports,
1714
+ HttpApi_exports,
1787
1715
  HttpApiClient_exports,
1788
- UiContext,
1789
- UiOperation,
1790
- UiUnauthorized,
1791
- UiForbidden,
1792
- UiDeploymentChanged,
1793
- UiFailed,
1794
- UiSnapshot,
1795
- AppUiApi
1716
+ HttpApiGroup_exports
1796
1717
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  fixedRouter
3
- } from "./chunk-JN3PEGMW.js";
3
+ } from "./chunk-PUC24GZP.js";
4
4
  import {
5
5
  nativeOperation,
6
6
  operationDeclaration,
7
7
  routerDeclaration
8
- } from "./chunk-GQ7GCZ4J.js";
8
+ } from "./chunk-6VWYEQ4X.js";
9
9
 
10
10
  // src/implementation/protocol-operations.ts
11
11
  var protocolOperations = (operations, kinds = {}) => {
@@ -5,7 +5,7 @@ import {
5
5
  SkillDefinitionInvalid,
6
6
  SkillFile,
7
7
  SkillFilePath
8
- } from "./chunk-NSBRV4FJ.js";
8
+ } from "./chunk-MYCVMDWI.js";
9
9
  import {
10
10
  Effect_exports,
11
11
  Schema_exports
@@ -0,0 +1,92 @@
1
+ import {
2
+ JsonValue
3
+ } from "./chunk-PWF2DRJ3.js";
4
+ import {
5
+ HttpApiEndpoint_exports,
6
+ HttpApiGroup_exports,
7
+ HttpApiSchema_exports,
8
+ HttpApi_exports
9
+ } from "./chunk-2D2PKLGQ.js";
10
+ import {
11
+ Schema_exports
12
+ } from "./chunk-NXTXZ635.js";
13
+
14
+ // src/contracts/ui.ts
15
+ var UiContext = Schema_exports.Struct({
16
+ deployment: Schema_exports.NonEmptyString,
17
+ profile: Schema_exports.optional(Schema_exports.NonEmptyString),
18
+ expectedProfileRevision: Schema_exports.optional(Schema_exports.Int)
19
+ });
20
+ var UiOperation = Schema_exports.Struct({
21
+ ...UiContext.fields,
22
+ name: Schema_exports.NonEmptyString,
23
+ input: JsonValue
24
+ });
25
+ var UiUnauthorized = class extends Schema_exports.TaggedError()(
26
+ "UiUnauthorized",
27
+ {},
28
+ { httpApiStatus: 401 }
29
+ ) {
30
+ };
31
+ var UiForbidden = class extends Schema_exports.TaggedError()(
32
+ "UiForbidden",
33
+ {},
34
+ { httpApiStatus: 403 }
35
+ ) {
36
+ };
37
+ var UiDeploymentChanged = class extends Schema_exports.TaggedError()(
38
+ "UiDeploymentChanged",
39
+ {},
40
+ { httpApiStatus: 409 }
41
+ ) {
42
+ };
43
+ var UiFailed = class extends Schema_exports.TaggedError()(
44
+ "UiFailed",
45
+ {
46
+ reason: Schema_exports.Literals(["unavailable", "operation_failed", "account_required"])
47
+ },
48
+ { httpApiStatus: 422 }
49
+ ) {
50
+ };
51
+ var UiSnapshot = Schema_exports.Union([
52
+ Schema_exports.Struct({
53
+ type: Schema_exports.Literal("snapshot"),
54
+ value: JsonValue,
55
+ trace: Schema_exports.optional(Schema_exports.Unknown)
56
+ }),
57
+ Schema_exports.Struct({ type: Schema_exports.Literal("failure"), error: UiFailed }),
58
+ Schema_exports.Struct({ type: Schema_exports.Literal("heartbeat") })
59
+ ]);
60
+ var errors = [UiUnauthorized, UiForbidden, UiDeploymentChanged, UiFailed];
61
+ var AppUiApi = HttpApi_exports.make("app-ui").add(
62
+ HttpApiGroup_exports.make("ui").add(
63
+ HttpApiEndpoint_exports.post("query", "/_executor/api/query", {
64
+ payload: UiOperation,
65
+ success: JsonValue,
66
+ error: errors
67
+ })
68
+ ).add(
69
+ HttpApiEndpoint_exports.post("mutate", "/_executor/api/mutate", {
70
+ payload: UiOperation,
71
+ success: JsonValue,
72
+ error: errors
73
+ })
74
+ ).add(
75
+ HttpApiEndpoint_exports.post("subscribe", "/_executor/api/subscribe", {
76
+ payload: UiOperation,
77
+ success: HttpApiSchema_exports.StreamSse({ data: UiSnapshot, error: Schema_exports.Union(errors) }),
78
+ error: errors
79
+ })
80
+ )
81
+ );
82
+
83
+ export {
84
+ UiContext,
85
+ UiOperation,
86
+ UiUnauthorized,
87
+ UiForbidden,
88
+ UiDeploymentChanged,
89
+ UiFailed,
90
+ UiSnapshot,
91
+ AppUiApi
92
+ };
@@ -11,17 +11,17 @@ import {
11
11
  parseMcpError,
12
12
  readCatalog,
13
13
  routerSkills
14
- } from "./chunk-JN3PEGMW.js";
14
+ } from "./chunk-PUC24GZP.js";
15
15
  import {
16
16
  folderSkillsEffect
17
- } from "./chunk-TSLG2WPA.js";
17
+ } from "./chunk-4N26L465.js";
18
18
  import {
19
19
  ResponseStatusError,
20
20
  authorDatabase,
21
21
  isApp,
22
22
  toEffectApp,
23
23
  unavailableStorage
24
- } from "./chunk-VF3X26ZO.js";
24
+ } from "./chunk-OI5CKSBU.js";
25
25
  import {
26
26
  parseDatabaseSchema
27
27
  } from "./chunk-XBQTJP76.js";
@@ -31,7 +31,7 @@ import {
31
31
  locate,
32
32
  nativeOperation,
33
33
  toPromise
34
- } from "./chunk-GQ7GCZ4J.js";
34
+ } from "./chunk-6VWYEQ4X.js";
35
35
  import {
36
36
  accountProviderError,
37
37
  httpProviderError,
@@ -83,7 +83,7 @@ import {
83
83
  defaultWebhookTransportLimits,
84
84
  maxInputProblems,
85
85
  workflowDurationMillis
86
- } from "./chunk-TE2HPDZG.js";
86
+ } from "./chunk-BSRU52RU.js";
87
87
  import {
88
88
  CacheError
89
89
  } from "./chunk-BRGF7VFN.js";
@@ -91,10 +91,10 @@ import {
91
91
  AppSkills,
92
92
  SkillFile,
93
93
  SkillLoadFailed
94
- } from "./chunk-NSBRV4FJ.js";
94
+ } from "./chunk-MYCVMDWI.js";
95
95
  import {
96
96
  captureTelemetry
97
- } from "./chunk-YXKXKGN6.js";
97
+ } from "./chunk-WGBI5MVX.js";
98
98
  import {
99
99
  decoderOf,
100
100
  importedJsonSchema,
@@ -3,7 +3,7 @@ import {
3
3
  RouterKey,
4
4
  RouterMeta,
5
5
  reservedRouterKeys
6
- } from "./chunk-TE2HPDZG.js";
6
+ } from "./chunk-BSRU52RU.js";
7
7
  import {
8
8
  decoderOf
9
9
  } from "./chunk-YML53Z7H.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  prepareElicitation
3
- } from "./chunk-GLIAMV2R.js";
3
+ } from "./chunk-6NK26ONC.js";
4
4
  import {
5
5
  fromPromise
6
- } from "./chunk-GQ7GCZ4J.js";
6
+ } from "./chunk-6VWYEQ4X.js";
7
7
  import {
8
8
  bodyUpstreamError
9
9
  } from "./chunk-KQCMHI3K.js";
@@ -18,7 +18,7 @@ import {
18
18
  defaultElicitationLimits,
19
19
  defaultMcpClientLimits,
20
20
  mcpSdkTimerCeilingMs
21
- } from "./chunk-TE2HPDZG.js";
21
+ } from "./chunk-BSRU52RU.js";
22
22
  import {
23
23
  jsonSchemaDecoder,
24
24
  nestJsonSchema,
@@ -4,7 +4,7 @@ import {
4
4
  fromWeb,
5
5
  layerMergedContext,
6
6
  make2 as make
7
- } from "./chunk-B5YJQU45.js";
7
+ } from "./chunk-XGN5IFOZ.js";
8
8
  import {
9
9
  Reference,
10
10
  Service,
@@ -18,7 +18,7 @@ import {
18
18
  AppSkillName,
19
19
  AppSkills,
20
20
  SkillLoadFailed
21
- } from "./chunk-NSBRV4FJ.js";
21
+ } from "./chunk-MYCVMDWI.js";
22
22
  import {
23
23
  AccountId,
24
24
  HttpUrl,
@@ -3,10 +3,10 @@ import {
3
3
  answeredError,
4
4
  mcpClient,
5
5
  mcpJsonSchemaValidator
6
- } from "./chunk-VIQQ52V7.js";
6
+ } from "./chunk-AE4FWJQU.js";
7
7
  import {
8
8
  failOnNetworkRefusal
9
- } from "./chunk-JN3PEGMW.js";
9
+ } from "./chunk-PUC24GZP.js";
10
10
  import {
11
11
  accountProviderError,
12
12
  bodyUpstreamError,
@@ -21,20 +21,20 @@ import {
21
21
  NetworkRefused,
22
22
  defaultMcpClientLimits,
23
23
  mcpHealthReserveMs
24
- } from "./chunk-TE2HPDZG.js";
24
+ } from "./chunk-BSRU52RU.js";
25
25
  import {
26
26
  ProviderError
27
27
  } from "./chunk-BRGF7VFN.js";
28
28
  import {
29
29
  captureTelemetry
30
- } from "./chunk-YXKXKGN6.js";
30
+ } from "./chunk-WGBI5MVX.js";
31
31
  import {
32
32
  FetchHttpClient_exports
33
- } from "./chunk-V2I3MMPM.js";
33
+ } from "./chunk-BBTELEAN.js";
34
34
  import {
35
35
  HttpClientRequest_exports,
36
36
  HttpClient_exports
37
- } from "./chunk-B5YJQU45.js";
37
+ } from "./chunk-XGN5IFOZ.js";
38
38
  import {
39
39
  Clock_exports,
40
40
  Deferred_exports,