apps 0.0.1-beta.27 → 0.0.1-beta.28
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/framework-reference.json +1 -1
- package/js/{chunk-3TEX4ZND.js → chunk-GLIAMV2R.js} +11 -11
- package/js/{chunk-TX2XCAL6.js → chunk-GQ7GCZ4J.js} +1 -1
- package/js/{chunk-7AZNPMQH.js → chunk-JN3PEGMW.js} +58 -3
- package/js/{chunk-HIJW4LWC.js → chunk-L76NWXM5.js} +13 -4
- package/js/{chunk-4OD7PHQL.js → chunk-MWCLJQRI.js} +2 -2
- package/js/{chunk-7R5JY5H7.js → chunk-TE2HPDZG.js} +91 -0
- package/js/{chunk-T2UFJKZR.js → chunk-VF3X26ZO.js} +2 -2
- package/js/{chunk-AHI26TO6.js → chunk-VIQQ52V7.js} +3 -3
- package/js/contracts.js +13 -1
- package/js/effect.js +5 -5
- package/js/graphql.js +13 -8
- package/js/host.js +5 -5
- package/js/index.js +7 -3
- package/js/mcp/effect.js +7 -7
- package/js/mcp/stdio.js +7 -7
- package/js/mcp.js +8 -8
- package/js/openapi.js +9 -5
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/graphql.d.ts +2 -1
- package/types/apps/src/contracts/host.d.ts +1 -0
- package/types/apps/src/contracts/mcp.d.ts +2 -1
- package/types/apps/src/contracts/network.d.ts +84 -0
- package/types/apps/src/contracts/openapi.d.ts +2 -1
- package/types/apps/src/implementation/elicitation.d.ts +8 -8
- package/types/apps/src/implementation/graphql.d.ts +4 -3
- package/types/apps/src/implementation/mcp-call.d.ts +3 -2
- package/types/apps/src/implementation/mcp-client.d.ts +7 -6
- package/types/apps/src/implementation/mcp-stdio.d.ts +1 -1
- package/types/apps/src/implementation/mcp-tools.d.ts +2 -1
- package/types/apps/src/implementation/mcp.d.ts +7 -6
- package/types/apps/src/implementation/network.d.ts +16 -0
- package/types/apps/src/implementation/openapi-compile.d.ts +1 -1
- package/types/apps/src/implementation/openapi-request.d.ts +2 -1
- package/types/apps/src/implementation/router-catalog.d.ts +6 -6
- package/types/apps/src/implementation/skills.d.ts +2 -2
- package/types/apps/src/index.d.ts +1 -0
- package/types/apps/src/mcp.d.ts +7 -7
- package/types/apps/src/skills.d.ts +4 -4
package/js/mcp/stdio.js
CHANGED
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
answeredError,
|
|
4
4
|
mcpClient,
|
|
5
5
|
mcpJsonSchemaValidator
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-VIQQ52V7.js";
|
|
7
7
|
import {
|
|
8
8
|
protocolRouter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-MWCLJQRI.js";
|
|
10
10
|
import "../chunk-BCSNKUAC.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-GLIAMV2R.js";
|
|
12
12
|
import "../chunk-VUVBMNKC.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-JN3PEGMW.js";
|
|
14
14
|
import "../chunk-TSLG2WPA.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-VF3X26ZO.js";
|
|
16
16
|
import "../chunk-XBQTJP76.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-GQ7GCZ4J.js";
|
|
18
18
|
import "../chunk-KQCMHI3K.js";
|
|
19
19
|
import {
|
|
20
20
|
McpError,
|
|
21
21
|
ProcessConfig
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-TE2HPDZG.js";
|
|
23
23
|
import "../chunk-M2KEEOIQ.js";
|
|
24
24
|
import "../chunk-BRGF7VFN.js";
|
|
25
25
|
import "../chunk-NSBRV4FJ.js";
|
package/js/mcp.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpClientEffect,
|
|
3
3
|
mcpHealthEffect
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L76NWXM5.js";
|
|
5
5
|
import {
|
|
6
6
|
catalogCache,
|
|
7
7
|
catalogScope
|
|
8
8
|
} from "./chunk-ZZOCEUTB.js";
|
|
9
9
|
import {
|
|
10
10
|
adaptMcpTool
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VIQQ52V7.js";
|
|
12
12
|
import {
|
|
13
13
|
protocolOperations
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MWCLJQRI.js";
|
|
15
15
|
import "./chunk-BCSNKUAC.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-GLIAMV2R.js";
|
|
17
17
|
import {
|
|
18
18
|
cacheKey
|
|
19
19
|
} from "./chunk-VUVBMNKC.js";
|
|
20
20
|
import {
|
|
21
21
|
operationDescription
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JN3PEGMW.js";
|
|
23
23
|
import "./chunk-TSLG2WPA.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VF3X26ZO.js";
|
|
25
25
|
import "./chunk-XBQTJP76.js";
|
|
26
26
|
import {
|
|
27
27
|
nativeOperation,
|
|
28
28
|
routerDeclaration
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GQ7GCZ4J.js";
|
|
30
30
|
import "./chunk-KQCMHI3K.js";
|
|
31
31
|
import {
|
|
32
32
|
McpCredentialsUnverified,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
McpServerHeader,
|
|
35
35
|
McpToolMetadata,
|
|
36
36
|
McpToolsOptions
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-TE2HPDZG.js";
|
|
38
38
|
import "./chunk-M2KEEOIQ.js";
|
|
39
39
|
import "./chunk-BRGF7VFN.js";
|
|
40
40
|
import "./chunk-NSBRV4FJ.js";
|
package/js/openapi.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
protocolOperations,
|
|
10
10
|
protocolRouter
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MWCLJQRI.js";
|
|
12
12
|
import {
|
|
13
13
|
OpenapiCompileError,
|
|
14
14
|
OpenapiCompileErrorCode,
|
|
@@ -20,20 +20,21 @@ import {
|
|
|
20
20
|
OpenapiSkippedOperation,
|
|
21
21
|
OpenapiToolsOptions,
|
|
22
22
|
defaultOpenapiResponseLimits,
|
|
23
|
+
failOnNetworkRefusal,
|
|
23
24
|
isOpenapiFileSchema,
|
|
24
25
|
isOpenapiJsonSequence,
|
|
25
26
|
isOpenapiReadMethod,
|
|
26
27
|
isOpenapiTextMedia,
|
|
27
28
|
openapiBinaryResultSchema,
|
|
28
29
|
openapiMediaKind
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JN3PEGMW.js";
|
|
30
31
|
import "./chunk-TSLG2WPA.js";
|
|
31
32
|
import {
|
|
32
33
|
fromPromise,
|
|
33
34
|
nativeOperation,
|
|
34
35
|
routerDeclaration,
|
|
35
36
|
toPromise
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GQ7GCZ4J.js";
|
|
37
38
|
import {
|
|
38
39
|
accountProviderError,
|
|
39
40
|
httpProviderError
|
|
@@ -41,16 +42,18 @@ import {
|
|
|
41
42
|
import {
|
|
42
43
|
ApiErrorRecovery,
|
|
43
44
|
ApiErrorResponse,
|
|
45
|
+
NetworkRefused,
|
|
44
46
|
OpenapiResponseError,
|
|
45
47
|
RouterMeta,
|
|
46
48
|
defaultOpenapiErrorLimits
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TE2HPDZG.js";
|
|
48
50
|
import "./chunk-M2KEEOIQ.js";
|
|
49
51
|
import {
|
|
50
52
|
ProviderError,
|
|
51
53
|
cacheLimits
|
|
52
54
|
} from "./chunk-BRGF7VFN.js";
|
|
53
55
|
import "./chunk-NSBRV4FJ.js";
|
|
56
|
+
import "./chunk-YXKXKGN6.js";
|
|
54
57
|
import {
|
|
55
58
|
FetchHttpClient_exports
|
|
56
59
|
} from "./chunk-V2I3MMPM.js";
|
|
@@ -338,6 +341,7 @@ function createRequest(config) {
|
|
|
338
341
|
catch: () => new OpenapiError({ reason: "invalid_input" })
|
|
339
342
|
});
|
|
340
343
|
const response = yield* HttpClient_exports.withScope(client).execute(request);
|
|
344
|
+
yield* failOnNetworkRefusal(response);
|
|
341
345
|
if (response.status < 200 || response.status >= 300) {
|
|
342
346
|
const provider = httpProviderError(response.status, response.headers);
|
|
343
347
|
if (provider !== void 0 && provider.reason !== "rejected") return yield* provider;
|
|
@@ -374,7 +378,7 @@ function createRequest(config) {
|
|
|
374
378
|
Effect_exports.provideService(FetchHttpClient_exports.RequestInit, { redirect: "manual" }),
|
|
375
379
|
Effect_exports.provide(FetchHttpClient_exports.layer),
|
|
376
380
|
Effect_exports.mapError(
|
|
377
|
-
(error) => error instanceof ProviderError && account?.id !== void 0 ? accountProviderError(error, account.id) : error instanceof OpenapiError || error instanceof OpenapiResponseError || error instanceof ProviderError ? error : new OpenapiError({ reason: "request" })
|
|
381
|
+
(error) => error instanceof ProviderError && account?.id !== void 0 ? accountProviderError(error, account.id) : error instanceof OpenapiError || error instanceof OpenapiResponseError || error instanceof ProviderError || error instanceof NetworkRefused ? error : new OpenapiError({ reason: "request" })
|
|
378
382
|
)
|
|
379
383
|
);
|
|
380
384
|
return {
|