apps 0.0.1-beta.137 → 0.0.1-beta.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/mcp.js CHANGED
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-4IHYJUSW.js";
4
+ } from "./chunk-T2PEBOBK.js";
5
5
  import {
6
6
  protocolOperations
7
- } from "./chunk-BHOGON7O.js";
7
+ } from "./chunk-WTRNAN4H.js";
8
8
  import {
9
9
  adaptMcpTool,
10
10
  mcpClientEffect,
11
11
  mcpHealthEffect
12
- } from "./chunk-HJYWHBL6.js";
12
+ } from "./chunk-2CMT4JYG.js";
13
13
  import "./chunk-BCSNKUAC.js";
14
- import "./chunk-ALK2PZFV.js";
14
+ import "./chunk-KOL4PQIA.js";
15
15
  import {
16
16
  cacheKey
17
- } from "./chunk-FPXXIDM7.js";
17
+ } from "./chunk-W4WVDYQU.js";
18
18
  import {
19
19
  operationDescription
20
- } from "./chunk-O7QDONVA.js";
21
- import "./chunk-J6SZ2WCE.js";
20
+ } from "./chunk-R62755EK.js";
21
+ import "./chunk-YF7TYPDS.js";
22
22
  import "./chunk-34RH47V5.js";
23
- import "./chunk-LEYOBSZJ.js";
23
+ import "./chunk-GGDUOJT5.js";
24
24
  import {
25
25
  nativeOperation,
26
26
  routerDeclaration
27
- } from "./chunk-NQWNKC4A.js";
27
+ } from "./chunk-DXAVGW7B.js";
28
28
  import {
29
29
  fromPromise,
30
30
  method
31
- } from "./chunk-KVQJJ3GO.js";
31
+ } from "./chunk-RBSXSRPU.js";
32
32
  import {
33
33
  McpCredentialsUnverified,
34
34
  McpError,
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-7MPPHKRW.js";
39
39
  import "./chunk-QTX7OUFH.js";
40
40
  import "./chunk-WXHRUWNT.js";
41
- import "./chunk-4DDYGBK6.js";
41
+ import "./chunk-JH3MOQZR.js";
42
42
  import "./chunk-I6QAWNUM.js";
43
43
  import "./chunk-LSOHA2RH.js";
44
44
  import "./chunk-H2K7OZ47.js";
package/js/openapi.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  protocolOperations,
10
10
  protocolRouter
11
- } from "./chunk-BHOGON7O.js";
11
+ } from "./chunk-WTRNAN4H.js";
12
12
  import {
13
13
  OpenapiCompileError,
14
14
  OpenapiCompileErrorCode,
@@ -24,20 +24,20 @@ import {
24
24
  OpenapiToolsOptions,
25
25
  defaultOpenapiResponseLimits,
26
26
  isOpenapiFileSchema,
27
- isOpenapiJsonSequence,
27
+ isOpenapiJsonMedia,
28
28
  isOpenapiReadMethod,
29
29
  isOpenapiTextMedia,
30
30
  openapiBinaryResultSchema,
31
31
  openapiMediaKind
32
- } from "./chunk-O7QDONVA.js";
32
+ } from "./chunk-R62755EK.js";
33
33
  import {
34
34
  failOnNetworkRefusal
35
- } from "./chunk-J6SZ2WCE.js";
35
+ } from "./chunk-YF7TYPDS.js";
36
36
  import "./chunk-34RH47V5.js";
37
37
  import {
38
38
  nativeOperation,
39
39
  routerDeclaration
40
- } from "./chunk-NQWNKC4A.js";
40
+ } from "./chunk-DXAVGW7B.js";
41
41
  import {
42
42
  accountProviderError,
43
43
  bodyUpstreamError,
@@ -47,7 +47,7 @@ import {
47
47
  providerErrorDetail,
48
48
  statedUpstream,
49
49
  toPromise
50
- } from "./chunk-KVQJJ3GO.js";
50
+ } from "./chunk-RBSXSRPU.js";
51
51
  import {
52
52
  ApiErrorRecovery,
53
53
  ApiErrorResponse,
@@ -68,7 +68,7 @@ import {
68
68
  } from "./chunk-WXHRUWNT.js";
69
69
  import {
70
70
  owned
71
- } from "./chunk-4DDYGBK6.js";
71
+ } from "./chunk-JH3MOQZR.js";
72
72
  import {
73
73
  FetchHttpClient_exports
74
74
  } from "./chunk-I6QAWNUM.js";
@@ -425,11 +425,12 @@ function createRequest(config) {
425
425
  data.set(chunk, offset);
426
426
  offset += chunk.length;
427
427
  }
428
+ if (isOpenapiJsonMedia(contentType))
429
+ return yield* Schema_exports.decodeUnknownEffect(Schema_exports.fromJsonString(Schema_exports.Json))(
430
+ new TextDecoder().decode(data)
431
+ ).pipe(Effect_exports.mapError(() => unreadable));
428
432
  if (!isOpenapiTextMedia(contentType)) return { base64: Base64_exports.encode(data), contentType };
429
- const text = new TextDecoder().decode(data);
430
- return contentType.includes("json") && !isOpenapiJsonSequence(contentType) ? yield* Schema_exports.decodeUnknownEffect(Schema_exports.fromJsonString(Schema_exports.Json))(text).pipe(
431
- Effect_exports.mapError(() => unreadable)
432
- ) : text;
433
+ return new TextDecoder().decode(data);
433
434
  })
434
435
  ).pipe(
435
436
  owned("upstream", "provider.openapi.call", {
@@ -2114,7 +2115,7 @@ function responseSchema(document, operation, at, method2) {
2114
2115
  const media = Object.entries(record2(content));
2115
2116
  if (media.length === 0) return void 0;
2116
2117
  for (const [type, body] of media) {
2117
- if (!type.includes("json") || isOpenapiJsonSequence(type)) {
2118
+ if (!isOpenapiJsonMedia(type)) {
2118
2119
  shapes.push(
2119
2120
  () => isOpenapiTextMedia(type) ? { type: "string" } : openapiBinaryResultSchema
2120
2121
  );
package/js/skills.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  catalogCache,
3
3
  catalogScope
4
- } from "./chunk-4IHYJUSW.js";
5
- import "./chunk-FPXXIDM7.js";
4
+ } from "./chunk-T2PEBOBK.js";
5
+ import "./chunk-W4WVDYQU.js";
6
6
  import {
7
7
  failOnNetworkRefusal
8
- } from "./chunk-J6SZ2WCE.js";
8
+ } from "./chunk-YF7TYPDS.js";
9
9
  import {
10
10
  folderSkillsEffect,
11
11
  skillFromFiles
@@ -16,7 +16,7 @@ import {
16
16
  httpProviderError,
17
17
  method,
18
18
  toPromise
19
- } from "./chunk-KVQJJ3GO.js";
19
+ } from "./chunk-RBSXSRPU.js";
20
20
  import {
21
21
  NetworkRefused,
22
22
  ProviderError,
@@ -35,7 +35,7 @@ import {
35
35
  import {
36
36
  wrap
37
37
  } from "./chunk-WXHRUWNT.js";
38
- import "./chunk-4DDYGBK6.js";
38
+ import "./chunk-JH3MOQZR.js";
39
39
  import {
40
40
  FetchHttpClient_exports
41
41
  } from "./chunk-I6QAWNUM.js";
package/js/ui/serving.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-OBT33ZDK.js";
10
10
  import {
11
11
  CurrentTelemetryConfig
12
- } from "../chunk-4DDYGBK6.js";
12
+ } from "../chunk-JH3MOQZR.js";
13
13
  import "../chunk-I6QAWNUM.js";
14
14
  import "../chunk-LSOHA2RH.js";
15
15
  import "../chunk-H2K7OZ47.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.137",
3
+ "version": "0.0.1-beta.139",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,