apps 0.0.1-beta.34 → 0.0.1-beta.35

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 (78) hide show
  1. package/framework-reference.json +1 -1
  2. package/js/{chunk-PUBNIORL.js → chunk-5CQMUXW7.js} +2 -2
  3. package/js/{chunk-DSUKW6KJ.js → chunk-5KNA2Z5I.js} +13 -11
  4. package/js/{chunk-UMCMZFXW.js → chunk-73AV3JVU.js} +1 -1
  5. package/js/{chunk-6ZJ2H6P4.js → chunk-A4O72Z3A.js} +298 -190
  6. package/js/{chunk-FBBXFFFJ.js → chunk-BI45HZWM.js} +2 -2
  7. package/js/{chunk-DXGWKNTQ.js → chunk-BI6R577B.js} +2 -2
  8. package/js/{chunk-IU6OK5G2.js → chunk-ENJCQWVF.js} +3 -3
  9. package/js/{chunk-OX233L7N.js → chunk-FFTALB6S.js} +2 -2
  10. package/js/{chunk-DASNNAP4.js → chunk-HDAQBRT5.js} +391 -14
  11. package/js/{chunk-HW3DPBZR.js → chunk-I7CNZ4CM.js} +1 -1
  12. package/js/{chunk-QKVZGWGZ.js → chunk-IA3VSGR4.js} +7 -7
  13. package/js/{chunk-EXGKN554.js → chunk-IJQ5LE74.js} +9805 -9254
  14. package/js/{chunk-5JVNM3CQ.js → chunk-IU7CCCUC.js} +12 -12
  15. package/js/{chunk-Q7Q5JTRW.js → chunk-JU7F4PRK.js} +2 -2
  16. package/js/{chunk-QZD2RZ4S.js → chunk-KBXQOJYW.js} +8 -8
  17. package/js/{chunk-CJY5X26R.js → chunk-KOOJUMLR.js} +86 -50
  18. package/js/{chunk-ETLILMHY.js → chunk-KZFV3WCJ.js} +21 -19
  19. package/js/{chunk-MYH3QZ4L.js → chunk-LUROQKFP.js} +9 -9
  20. package/js/{chunk-ZOY7PDMI.js → chunk-NHCFIWN5.js} +1 -1
  21. package/js/chunk-NHUHTWAF.js +0 -0
  22. package/js/{chunk-QYM4STZW.js → chunk-PHO7HXTC.js} +149 -353
  23. package/js/{chunk-O3OAFU7Q.js → chunk-POOIHRPF.js} +2 -2
  24. package/js/{chunk-AUFVX4KM.js → chunk-RSNZDT4L.js} +2 -2
  25. package/js/{chunk-EPUWF4ZG.js → chunk-SRB2WDU7.js} +3 -3
  26. package/js/{chunk-MFHUR5SB.js → chunk-TADLIUEU.js} +4 -4
  27. package/js/{chunk-5OM6HBNU.js → chunk-UWOIEJ56.js} +18 -18
  28. package/js/chunk-V5DWGYRK.js +268 -0
  29. package/js/{chunk-QUEPZ67T.js → chunk-VBVOPW4U.js} +3 -3
  30. package/js/{chunk-GZ4UHXRT.js → chunk-WDBUOIWV.js} +3 -3
  31. package/js/{chunk-6KG4DZD7.js → chunk-Y3XN4X4Q.js} +1 -1
  32. package/js/{chunk-UKMIHP2G.js → chunk-YW333DH3.js} +4 -4
  33. package/js/{chunk-O4QOPXQT.js → chunk-YYK6GEMC.js} +11 -11
  34. package/js/client.js +12 -11
  35. package/js/contracts.js +10 -9
  36. package/js/effect.js +23 -21
  37. package/js/graphql.js +25 -23
  38. package/js/host.js +23 -21
  39. package/js/index.js +16 -14
  40. package/js/mcp/effect.js +25 -23
  41. package/js/mcp/stdio.js +25 -23
  42. package/js/mcp.js +27 -25
  43. package/js/openapi.js +22 -21
  44. package/js/react.js +3 -3
  45. package/js/skills/effect.js +6 -5
  46. package/js/skills.js +18 -16
  47. package/js/storage/facet.js +19 -345
  48. package/js/ui/auth/contracts.js +2 -2
  49. package/js/ui/auth.js +5 -5
  50. package/js/ui/contracts.js +6 -5
  51. package/js/ui/serving.js +10 -9
  52. package/package.json +3 -3
  53. package/runtime.json +1 -1
  54. package/types/app-data/src/implementation/sqlite.d.ts +1 -1
  55. package/types/apps/src/contracts/elicitation.d.ts +6 -6
  56. package/types/apps/src/contracts/protocols/1.d.ts +4 -4
  57. package/types/apps/src/contracts/protocols/2.d.ts +4 -4
  58. package/types/apps/src/contracts/protocols/3.d.ts +4 -4
  59. package/types/apps/src/contracts/protocols/4.d.ts +4 -4
  60. package/types/apps/src/contracts/protocols/5.d.ts +4 -4
  61. package/types/apps/src/contracts/protocols/6.d.ts +4 -4
  62. package/types/apps/src/contracts/protocols/7.d.ts +4 -4
  63. package/types/apps/src/contracts/protocols/8.d.ts +4 -4
  64. package/types/apps/src/contracts/ui.d.ts +1 -1
  65. package/types/apps/src/implementation/live.d.ts +2 -2
  66. package/types/apps/src/implementation/network.d.ts +1 -1
  67. package/types/apps/src/implementation/optimistic.d.ts +1 -1
  68. package/types/apps/src/implementation/query-commit.d.ts +1 -1
  69. package/types/apps/src/implementation/ui-auth.d.ts +1 -1
  70. package/types/apps/src/implementation/ui-client.d.ts +1 -1
  71. package/types/apps/src/implementation/ui-serving.d.ts +1 -1
  72. package/types/apps/src/react.d.ts +1 -1
  73. package/types/telemetry/src/browser-operations.d.ts +1 -1
  74. package/types/telemetry/src/browser.d.ts +2 -2
  75. package/types/telemetry/src/layer.d.ts +2 -2
  76. package/types/telemetry/src/relay.d.ts +2 -2
  77. package/types/telemetry/src/transport.d.ts +1 -1
  78. package/types/utils/src/api-error.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FetchHttpClient_exports
3
- } from "./chunk-MFHUR5SB.js";
3
+ } from "./chunk-TADLIUEU.js";
4
4
  import {
5
5
  HttpBody_exports,
6
6
  HttpClient,
@@ -16,9 +16,11 @@ import {
16
16
  post,
17
17
  retryTransient,
18
18
  setBody,
19
+ tap,
20
+ tapError,
19
21
  transformResponse,
20
22
  uint8Array
21
- } from "./chunk-CJY5X26R.js";
23
+ } from "./chunk-KOOJUMLR.js";
22
24
  import {
23
25
  Array as Array2,
24
26
  Boolean2 as Boolean,
@@ -53,7 +55,7 @@ import {
53
55
  UndefinedOr,
54
56
  addDelay,
55
57
  addFinalizer,
56
- all,
58
+ all2 as all,
57
59
  allocate,
58
60
  andThen,
59
61
  annotateLogs,
@@ -107,7 +109,7 @@ import {
107
109
  prettyErrors,
108
110
  provideMerge,
109
111
  provideService,
110
- randomHex,
112
+ random,
111
113
  run2 as run,
112
114
  runtime,
113
115
  schema,
@@ -125,7 +127,7 @@ import {
125
127
  withDefault2 as withDefault,
126
128
  withTracerEnabled,
127
129
  zero
128
- } from "./chunk-EXGKN554.js";
130
+ } from "./chunk-IJQ5LE74.js";
129
131
  import {
130
132
  __export
131
133
  } from "./chunk-CZ7CSFO4.js";
@@ -941,7 +943,7 @@ var spanAttributes = (clock, recordAll = false) => Layer_exports.effect(Tracer_e
941
943
  );
942
944
  var allowlistedSpans = spanAttributes();
943
945
 
944
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpLogger.js
946
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpLogger.js
945
947
  var OtlpLogger_exports = {};
946
948
  __export(OtlpLogger_exports, {
947
949
  layer: () => layer2,
@@ -949,7 +951,7 @@ __export(OtlpLogger_exports, {
949
951
  make: () => make6
950
952
  });
951
953
 
952
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/internal/otlpEnv.js
954
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/internal/otlpEnv.js
953
955
  var exporterList = (path) => Array2(String2, path).pipe(map3((_) => _.map((_2) => _2.toLowerCase().trim()).filter((_2) => _2 !== "")));
954
956
  var headersRecord = (path) => Record(String2, StringFromUriComponent, path);
955
957
  var headers = (signal) => headersRecord(`OTEL_EXPORTER_OTLP_${signal}_HEADERS`).pipe(orElse(() => headersRecord("OTEL_EXPORTER_OTLP_HEADERS")), withDefault(void 0));
@@ -960,7 +962,7 @@ var endpoint = (signal) => URL2(`OTEL_EXPORTER_OTLP_${signal}_ENDPOINT`).pipe(or
960
962
  }))), withDefault(void 0));
961
963
  var exporters = (signal) => exporterList(`OTEL_${signal}_EXPORTER`).pipe(withDefault([]));
962
964
 
963
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpExporter.js
965
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpExporter.js
964
966
  var OtlpExporter_exports = {};
965
967
  __export(OtlpExporter_exports, {
966
968
  Flusher: () => Flusher,
@@ -1015,7 +1017,7 @@ var make4 = /* @__PURE__ */ fnUntraced(function* (options) {
1015
1017
  const scope = get(services, Scope);
1016
1018
  const exportInterval = max(fromInputUnsafe(options.exportInterval), zero);
1017
1019
  let disabledUntil = void 0;
1018
- const client = filterStatusOk(get(services, HttpClient)).pipe(transformResponse(provideService(TracerPropagationEnabled, false)), retryTransient({
1020
+ const client = get(services, HttpClient).pipe(tap((response) => ignore(response.arrayBuffer)), tapError((error) => error.response ? ignore(error.response.arrayBuffer) : void_), filterStatusOk, transformResponse(provideService(TracerPropagationEnabled, false)), retryTransient({
1019
1021
  schedule: policy,
1020
1022
  times: 3
1021
1023
  }));
@@ -1072,7 +1074,7 @@ var make4 = /* @__PURE__ */ fnUntraced(function* (options) {
1072
1074
  };
1073
1075
  });
1074
1076
 
1075
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpResource.js
1077
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpResource.js
1076
1078
  var make5 = (options) => {
1077
1079
  const resourceAttributes = options.attributes ? entriesToAttributes(Object.entries(options.attributes)) : [];
1078
1080
  resourceAttributes.push({
@@ -1161,7 +1163,7 @@ var unknownToAttributeValue = (value) => {
1161
1163
  }
1162
1164
  };
1163
1165
 
1164
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpSerialization.js
1166
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpSerialization.js
1165
1167
  var OtlpSerialization_exports = {};
1166
1168
  __export(OtlpSerialization_exports, {
1167
1169
  OtlpSerialization: () => OtlpSerialization,
@@ -1169,7 +1171,7 @@ __export(OtlpSerialization_exports, {
1169
1171
  layerProtobuf: () => layerProtobuf
1170
1172
  });
1171
1173
 
1172
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/internal/protobuf.js
1174
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/internal/protobuf.js
1173
1175
  var WireType2 = {
1174
1176
  Varint: 0,
1175
1177
  Fixed64: 1,
@@ -1238,7 +1240,7 @@ var messageField = (fieldNumber, message) => lengthDelimitedField(fieldNumber, m
1238
1240
  var repeatedField = (fieldNumber, values, encode) => concat(...values.map((v) => messageField(fieldNumber, encode(v))));
1239
1241
  var optionalStringField = (fieldNumber, value) => value !== void 0 && value !== "" ? stringField(fieldNumber, value) : new Uint8Array(0);
1240
1242
 
1241
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/internal/otlpProtobuf.js
1243
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/internal/otlpProtobuf.js
1242
1244
  var encodeAnyValue = (value) => {
1243
1245
  if (value.stringValue !== void 0 && value.stringValue !== null) {
1244
1246
  return stringField(1, value.stringValue);
@@ -1293,7 +1295,7 @@ var encodeScopeLogs = (scopeLogs) => concat(messageField(1, encodeInstrumentatio
1293
1295
  var encodeResourceLogs = (resourceLogs) => concat(messageField(1, encodeResource(resourceLogs.resource)), repeatedField(2, resourceLogs.scopeLogs, encodeScopeLogs), optionalStringField(3, resourceLogs.schemaUrl));
1294
1296
  var encodeLogsData = (logsData) => repeatedField(1, logsData.resourceLogs, encodeResourceLogs);
1295
1297
 
1296
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpSerialization.js
1298
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpSerialization.js
1297
1299
  var OtlpSerialization = class extends (/* @__PURE__ */ Service()("effect/observability/OtlpSerialization")) {
1298
1300
  };
1299
1301
  var layerJson = /* @__PURE__ */ succeed(OtlpSerialization, {
@@ -1307,7 +1309,7 @@ var layerProtobuf = /* @__PURE__ */ succeed(OtlpSerialization, {
1307
1309
  logs: (logs) => uint8Array(encodeLogsData(logs), "application/x-protobuf")
1308
1310
  });
1309
1311
 
1310
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpLogger.js
1312
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpLogger.js
1311
1313
  var make6 = /* @__PURE__ */ fnUntraced(function* (options) {
1312
1314
  const serialization = yield* OtlpSerialization;
1313
1315
  const otelResource = yield* fromConfig(options.resource);
@@ -1473,7 +1475,7 @@ var ESeverityNumber = {
1473
1475
  SEVERITY_NUMBER_FATAL4: 24
1474
1476
  };
1475
1477
 
1476
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpMetrics.js
1478
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpMetrics.js
1477
1479
  var OtlpMetrics_exports = {};
1478
1480
  __export(OtlpMetrics_exports, {
1479
1481
  layer: () => layer3,
@@ -1936,7 +1938,7 @@ var EAggregationTemporality = {
1936
1938
  AGGREGATION_TEMPORALITY_CUMULATIVE: 2
1937
1939
  };
1938
1940
 
1939
- // ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect+effect@c7d1ffff31a3e2ae0b0b+a654a55b752bdb24/node_modules/effect/dist/unstable/observability/OtlpTracer.js
1941
+ // ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/observability/OtlpTracer.js
1940
1942
  var OtlpTracer_exports = {};
1941
1943
  __export(OtlpTracer_exports, {
1942
1944
  layer: () => layer4,
@@ -2051,10 +2053,10 @@ var SpanImpl = class {
2051
2053
  };
2052
2054
  }
2053
2055
  get traceId() {
2054
- return this._traceId ??= isSome(this.parent) ? this.parent.value.traceId : randomHex(32);
2056
+ return this._traceId ??= isSome(this.parent) ? this.parent.value.traceId : random(32);
2055
2057
  }
2056
2058
  get spanId() {
2057
- return this._spanId ??= randomHex(16);
2059
+ return this._spanId ??= random(16);
2058
2060
  }
2059
2061
  get attributes() {
2060
2062
  return this._attributes ??= /* @__PURE__ */ new Map();
@@ -3,16 +3,16 @@ import {
3
3
  answeredError,
4
4
  mcpClient,
5
5
  mcpJsonSchemaValidator
6
- } from "./chunk-QKVZGWGZ.js";
6
+ } from "./chunk-IA3VSGR4.js";
7
7
  import {
8
8
  failOnNetworkRefusal
9
- } from "./chunk-EPUWF4ZG.js";
9
+ } from "./chunk-SRB2WDU7.js";
10
10
  import {
11
11
  accountProviderError,
12
12
  bodyUpstreamError,
13
13
  httpProviderError,
14
14
  providerErrorDetail
15
- } from "./chunk-IU6OK5G2.js";
15
+ } from "./chunk-ENJCQWVF.js";
16
16
  import {
17
17
  McpCredentialsUnverified,
18
18
  McpError,
@@ -20,21 +20,21 @@ import {
20
20
  McpToolsOptions,
21
21
  defaultMcpClientLimits,
22
22
  mcpHealthReserveMs
23
- } from "./chunk-DSUKW6KJ.js";
23
+ } from "./chunk-5KNA2Z5I.js";
24
24
  import {
25
25
  NetworkRefused,
26
26
  ProviderError
27
- } from "./chunk-DXGWKNTQ.js";
27
+ } from "./chunk-BI6R577B.js";
28
28
  import {
29
29
  captureTelemetry
30
- } from "./chunk-ETLILMHY.js";
30
+ } from "./chunk-KZFV3WCJ.js";
31
31
  import {
32
32
  FetchHttpClient_exports
33
- } from "./chunk-MFHUR5SB.js";
33
+ } from "./chunk-TADLIUEU.js";
34
34
  import {
35
35
  HttpClientRequest_exports,
36
36
  HttpClient_exports
37
- } from "./chunk-CJY5X26R.js";
37
+ } from "./chunk-KOOJUMLR.js";
38
38
  import {
39
39
  Clock_exports,
40
40
  Deferred_exports,
@@ -46,7 +46,7 @@ import {
46
46
  Ref_exports,
47
47
  Schema_exports,
48
48
  Stream_exports
49
- } from "./chunk-EXGKN554.js";
49
+ } from "./chunk-IJQ5LE74.js";
50
50
 
51
51
  // src/implementation/mcp.ts
52
52
  import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Schema_exports
3
- } from "./chunk-EXGKN554.js";
3
+ } from "./chunk-IJQ5LE74.js";
4
4
 
5
5
  // src/contracts/ui-auth.ts
6
6
  var AppSignInId = Schema_exports.String.check(Schema_exports.isPattern(/^[a-f0-9]{64}$/)).pipe(
File without changes